7.3.4 • Published 2 years ago

@digibib/deichman-ui v7.3.4

Weekly downloads
21
License
MIT
Repository
github
Last release
2 years ago

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:
RequirementDescription
The component is semanticUse HTML5 markup, the correct font hierarchy etc.
The component is documentedEnsure the component has a Component.md file, a story and proptype definitions.
The component is accessibleUsable with a keyboard, correct :focus-styles, correct aria-roles.
The component is testedCross-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

7.3.1

2 years ago

7.3.0

2 years ago

7.3.4

2 years ago

7.3.3

2 years ago

7.3.2

2 years ago

7.2.3

2 years ago

7.2.2

3 years ago

7.2.1

3 years ago

7.2.0

3 years ago

7.1.1

3 years ago

7.1.0

4 years ago

7.0.2

4 years ago

7.0.1

4 years ago

7.0.0

4 years ago

6.9.1

4 years ago

6.9.0

4 years ago

6.8.1

4 years ago

6.8.0

4 years ago

6.7.2

4 years ago

6.7.1

5 years ago

6.7.0

5 years ago

6.6.0

5 years ago

6.5.0

5 years ago

6.4.3

5 years ago

6.4.2

5 years ago

6.4.1

5 years ago

6.4.0

5 years ago

6.3.1

5 years ago

6.3.0

5 years ago

6.2.0

5 years ago

6.1.0

5 years ago

6.0.1

5 years ago

6.0.0

5 years ago

5.2.0

5 years ago

5.1.0

5 years ago

5.0.10

5 years ago

5.0.9

5 years ago

5.0.8

5 years ago

5.0.7

5 years ago

5.0.6

5 years ago

5.0.5

5 years ago

5.0.4

5 years ago

5.0.3

5 years ago

5.0.2

5 years ago

5.0.1

5 years ago

5.0.0

5 years ago

4.4.5

5 years ago

4.4.4

5 years ago

4.4.3

5 years ago

4.4.2

5 years ago

4.4.1

5 years ago

4.4.0

5 years ago

4.3.1

5 years ago

4.3.0

5 years ago

4.2.0

5 years ago

4.1.1

5 years ago

4.1.0

5 years ago

4.0.3

5 years ago

4.0.2

5 years ago

4.0.1

5 years ago

4.0.0

5 years ago

3.7.2

5 years ago

3.7.1

5 years ago

3.7.0

5 years ago

3.6.1

5 years ago

3.6.0

5 years ago

3.5.8

5 years ago

3.5.7

5 years ago

3.5.6

5 years ago

3.5.5

5 years ago

3.5.4

5 years ago

3.5.3

5 years ago

3.5.2

5 years ago

3.5.1

5 years ago

3.5.0

5 years ago

3.4.1

5 years ago

3.4.0

5 years ago

3.3.1

5 years ago

3.3.0

5 years ago

3.2.0

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.0

5 years ago

2.5.4

5 years ago

2.5.3

5 years ago

2.5.2

5 years ago

2.5.1

5 years ago

2.5.0

5 years ago

2.4.4

5 years ago

2.4.3

5 years ago

2.4.2

5 years ago

2.4.1

5 years ago

2.4.0

5 years ago

2.3.0

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.0

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago