npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

tase-shared-components

v1.5.47

Published

Sharedlibs is a library of web-components built with [Stencil.js](https://stenciljs.com/) and [Tailwind CSS](https://tailwindcss.com/)

Downloads

32

Readme

Sharedlibs

About

Sharedlibs is a library of web-components built with Stencil.js and Tailwind CSS

Also used:

  • RxJS for api requests and state manipulation
  • Swiper for news popup and search modal
  • Floating UI for menus and dropdowns

For develepment use command npm start and port http://localhost:4200/

For production use npm build and npm publish (You need npm authorization for the last one)

The version set manualy in package.json and tase-global.ts

Stencil.js use two types of components:

  • Web Components
@Component({
  tag: 'todo-list',
  // additional options
})
export class TodoList {
  // implementation omitted
}

those can be:

    • shadow: true Preferred method. More or less predictable. Creates shadow dom for web-components. Works with Tailwind.
    • shadow: false Don't work with Tailwind, only with css
  • Functional Components
const Hello = (props) => <h1>Hello, {props.name}!</h1>;

Don't have state, don't work well with Tailwind, are buggy. Use only for the simplest things

Contains

  • Header + Search button
    <tase-header white-offset="100" fixed fetch-url="https://taseapi-wa-qa.azurewebsites.net/api/Cms?Route=header" transparent="true">
      <tase-search most-active-url="https://taseapi-wa-qa.azurewebsites.net/api/MarketTrends/most-active" search-url="https://taseapi-wa-qa.azurewebsites.net/api/Search"></tase-search>
    </tase-header>
  • Footer
    <tase-footer fetch-url="https://taseapi-wa-qa.azurewebsites.net/api/Cms?Route=footer"> </tase-footer>
  • Cookies policy
    <tase-cookies-policy fetch-url="https://taseapi-wa-qa.azurewebsites.net/api/Cms?Route=%2Ffloating"> </tase-cookies-policy>
  • Accessibility button (For high contrast mode)
    <tase-accessibility></tase-accessibility>
  • Scroll to Top button
    <tase-scroll-top></tase-scroll-top>
  • Skip to main content menu
    <tase-skip-to-main-content-menu element="#main1"> </tase-skip-to-main-content-menu>
  • Side menu for share button and customer service
    <tase-share-and-customer-service fetch-url="https://taseapi-wa-qa.azurewebsites.net/api/Cms?Route=%2Ffloating"> </tase-share-and-customer-service>
  • Focus trap, copy of this focus-trap but with more features
    • getFocus event
    • loseFocus event - It is very handy to close the drop-down menus on loss of focus
    • focusFirst attribute - it is very handy for modal windows to set the focus on the first element
    <tase-focus-trap></tase-focus-trap>

Specs

Adboe XD

  • home page header
  • home page menu - 1 & 2
  • Search popup
  • table page menu
  • stock lobby
  • mobile view
    • page header
    • page side nav
    • popup mobile

Figma

  • side menu for mobile
  • footer desktop and mobile UI
  • header UI for desktop and mobile, regular and white
  • header UI for tablet
  • header UI 4 states:
    • Desktop 1920px
    • Header 1200px
    • Tablet 768px
    • Mobile 414px

Adobe XD

  • Header UI
    • menu, popup animtaions and open state
  • Search open state
  • Side menu UI
  • Search modal UI, desktop and mobile
  • Footer UI, desktop and mobile

Figma

  • Icons
  • header UI desktop and mobile
  • sticky header (white one)
  • footer desktop, tablet and mobile
  • Side menu
  • Menu Popups
  • A lot of random elements

Adobe XD

  • Icons

Adobe XD

  • Search menu
  • "Install our app" header

Adobe XD

  • News Popup

Adobe XD

  • News Popup Mobile

Adobe XD

  • cookies policy