@shortfuse/materialdesignweb 0.10.0 → 0.10.2

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 +8 -2
  2. package/package.json +38 -9
package/README.md CHANGED
@@ -8,7 +8,7 @@ Material Design 3 (Material You) Web Components — standards‑focused and zero
8
8
  Live demo: https://clshortfuse.github.io/materialdesignweb/
9
9
  Samples: https://clshortfuse.github.io/materialdesignweb/samples/
10
10
 
11
- ## Quick start (CDN)
11
+ ## Use the CDN (zero-install)
12
12
 
13
13
  ```html
14
14
  <script src="https://cdn.jsdelivr.net/npm/@shortfuse/materialdesignweb?color=6750A4"></script>
@@ -17,7 +17,13 @@ Samples: https://clshortfuse.github.io/materialdesignweb/samples/
17
17
 
18
18
  CDN theming params: `color`, `custom`, `lightness`, `resetCSS`.
19
19
 
20
- ## Install (ESM)
20
+ Access exports via `globalThis['@shortfuse/materialdesignweb']`:
21
+
22
+ ```js
23
+ const { CustomElement } = globalThis['@shortfuse/materialdesignweb'];
24
+ ```
25
+
26
+ ## Import what you need (ESM)
21
27
 
22
28
  ```bash
23
29
  npm install @shortfuse/materialdesignweb
package/package.json CHANGED
@@ -57,14 +57,43 @@
57
57
  "typescript": "^5.7.3"
58
58
  },
59
59
  "exports": {
60
- "./constants/*": "./constants/*",
61
- "./components/*": "./components/*",
62
- "./core/*": "./core/*",
63
- "./dom/*": "./dom/*",
64
- "./loaders/*": "./loaders/*",
65
- "./mixins/*": "./mixins/*",
66
- "./services/*": "./services/*",
67
- "./utils/*": "./utils/*"
60
+ "./constants/*.js": {
61
+ "types": "./types/constants/*.d.ts",
62
+ "import": "./constants/*.js"
63
+ },
64
+ "./components/*.js": {
65
+ "types": "./types/components/*.d.ts",
66
+ "import": "./components/*.js"
67
+ },
68
+ "./core/*.js": {
69
+ "types": "./types/core/*.d.ts",
70
+ "import": "./core/*.js"
71
+ },
72
+ "./dom/*.js": {
73
+ "types": "./types/dom/*.d.ts",
74
+ "import": "./dom/*.js"
75
+ },
76
+ "./loaders/*.js": {
77
+ "types": "./types/loaders/*.d.ts",
78
+ "import": "./loaders/*.js"
79
+ },
80
+ "./mixins/*.js": {
81
+ "types": "./types/mixins/*.d.ts",
82
+ "import": "./mixins/*.js"
83
+ },
84
+ "./services/*.js": {
85
+ "types": "./types/services/*.d.ts",
86
+ "import": "./services/*.js"
87
+ },
88
+ "./utils/*.js": {
89
+ "types": "./types/utils/*.d.ts",
90
+ "import": "./utils/*.js"
91
+ },
92
+ ".": {
93
+ "types": "./types/index.d.ts",
94
+ "import": "./index.js",
95
+ "require": "./dist/index.min.js"
96
+ }
68
97
  },
69
98
  "files": [
70
99
  "/api",
@@ -163,5 +192,5 @@
163
192
  ]
164
193
  }
165
194
  },
166
- "version": "0.10.0"
195
+ "version": "0.10.2"
167
196
  }