@felleslosninger/minid-elements 0.0.91 → 0.0.93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +23 -1
  2. package/package.json +12 -12
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @felleslosninger/minid-elements
2
2
 
3
- This repository contains a collection of web components built with Lit.
3
+ This repository contains a collection of web components built with Lit. The web components are published at https://www.npmjs.com/package/@felleslosninger/minid-elements
4
4
 
5
5
  ## Installation
6
6
 
@@ -22,6 +22,28 @@ import '@felleslosninger/minid-elements/button';
22
22
  <mid-button variant="primary">Click me</mid-button>
23
23
  ```
24
24
 
25
+ ## CDN Usage
26
+ Alternatively, you can use MinId Elements directly from our CDN. Here's an example of how to include the components in your HTML file:
27
+
28
+ ```html
29
+ <!DOCTYPE html>
30
+ <html lang="en">
31
+ <head>
32
+ <meta charset="UTF-8">
33
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
34
+ <title>MinID CDN Example</title>
35
+ <link rel="stylesheet" href="https://cdn.minid.no/minid-elements/latest/index.css" />
36
+ <link rel="stylesheet" href="https://cdn.minid.no/minid-elements/latest/theme/digdir/tokens.css" />
37
+ <script type="module" src="https://cdn.minid.no/minid-elements/latest/index.js"></script>
38
+ </head>
39
+ <body>
40
+ <mid-button>Click me</mid-button>
41
+ </body>
42
+ </html>
43
+ ```
44
+ This example demonstrates how to include the mid-button component. You can replace this with any other component from the MinId Elements library.
45
+
46
+
25
47
  ## Documentation
26
48
  View the complete component documentation and examples in our Storybook:
27
49
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felleslosninger/minid-elements",
3
- "version": "0.0.91",
3
+ "version": "0.0.93",
4
4
  "description": "MinID Web Components",
5
5
  "author": "Digitaliseringsdirektoratet",
6
6
  "license": "MIT",
@@ -148,15 +148,15 @@
148
148
  "@digdir/designsystemet-theme": "^0.15.3",
149
149
  "@floating-ui/dom": "^1.6.10",
150
150
  "@navikt/aksel-icons": "^7.1.2",
151
- "@storybook/addon-controls": "^8.3.6",
152
- "@storybook/addon-docs": "^8.3.6",
153
- "@storybook/addon-essentials": "^8.3.6",
154
- "@storybook/addon-links": "^8.3.6",
155
- "@storybook/blocks": "^8.3.6",
156
- "@storybook/builder-vite": "^8.3.6",
157
- "@storybook/test": "^8.3.6",
158
- "@storybook/web-components": "^8.3.6",
159
- "@storybook/web-components-vite": "^8.3.6",
151
+ "@storybook/addon-controls": "^8.6.0",
152
+ "@storybook/addon-docs": "^8.6.0",
153
+ "@storybook/addon-essentials": "^8.6.0",
154
+ "@storybook/addon-links": "^8.6.0",
155
+ "@storybook/blocks": "^8.6.0",
156
+ "@storybook/builder-vite": "^8.6.0",
157
+ "@storybook/test": "^8.6.0",
158
+ "@storybook/web-components": "^8.6.0",
159
+ "@storybook/web-components-vite": "^8.6.0",
160
160
  "@tailwindcss/postcss": "^4.0.3",
161
161
  "@types/node": "^22.7.4",
162
162
  "@types/qrcode": "^1.5.5",
@@ -169,14 +169,14 @@
169
169
  "concurrently": "^9.0.1",
170
170
  "element-internals-polyfill": "^1.3.10",
171
171
  "eslint": "^8.52.0",
172
- "eslint-plugin-storybook": "^0.10.1",
172
+ "eslint-plugin-storybook": "^0.11.3",
173
173
  "postcss": "^8.5.1",
174
174
  "prettier": "^3.3.3",
175
175
  "prettier-plugin-tailwindcss": "^0.6.11",
176
176
  "rimraf": "^5.0.5",
177
177
  "rollup": "^4.2.0",
178
178
  "rollup-plugin-postcss-lit": "^2.1.0",
179
- "storybook": "^8.3.6",
179
+ "storybook": "^8.6.0",
180
180
  "tailwindcss": "^4.0.3",
181
181
  "terser": "^5.24.0",
182
182
  "tslib": "^2.8.0",