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

@digibib/deichman-ui

v7.3.4

Published

Deichman style-guide and component library

Downloads

15

Readme

Deichman-ui

NPM version Bundle size

Style-guide and component library for the Oslo public libraries

Built with

Developing

Local development is done via React-storybook. Clone the repo and run:

  npm i
  npm start

New components

Before adding a new Component, make sure this is a generic utility-component. If it's not, add it to the project where it will be used. I.E, an "Accordion" is generic, a "LibraryDetailsCard" is probably not.

New component checklist:

| | Requirement | Description | | --- | --------------------------- | --------------------------------------------------------------------------------- | | ✅ | The component is semantic | Use HTML5 markup, the correct font hierarchy etc. | | ✅ | The component is documented | Ensure the component has a Component.md file, a story and proptype definitions. | | ✅ | The component is accessible | Usable with a keyboard, correct :focus-styles, correct aria-roles. | | ✅ | The component is tested | Cross-browser testing. |

Icons

All icons are stored in the /src/assets/icons folder.

Adding a new icon:
  • Export the icons for web!
  • It's important that they're as lean as possible since they'll be downloaded by all visitors. Use this Optimizer if possible.
  • Make sure the new icon has the same size/style/line width as the old files.
  • Add the icon to the folder and run npm run icons.
  • After the output file has been created (public/icons.svg), You need to manually replace any hex color values (taken from the source files) with currentColor. This will allow the icons to easily be colored when used. NB: Check the commit well to ensure you didn't edit any old icons/colors).
  • Add the new icon to the stories/1-Base/3-icons.stories.js file.
  • Publish new version of Deichman-UI.

Publishing

Make sure to update the changelog if there's any breaking changes.

To publish a new version of the library to npm:

  npm version {major/minor/patch}
  git push --tags
  git push origin master
  npm publish

To publish/update the docs:

  npm run deploy-storybook

CDN Cache

jsDelivr will cache the @latest tag for 24 hours, if you're using the latest version and wish to purge the cache, visit https://purge.jsdelivr.net/npm/@digibib/deichman-ui@latest/dist/index.css