@melodicdev/components 1.0.2 → 1.0.3
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.
- package/README.md +4 -4
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ Add a single `<link>` tag to your HTML. It includes design tokens (light + dark
|
|
|
26
26
|
> **Production tip:** Pin to a specific version and use the minified build to avoid unexpected changes:
|
|
27
27
|
> ```html
|
|
28
28
|
> <link melodic-styles rel="stylesheet"
|
|
29
|
-
> href="https://unpkg.com/@melodicdev/components@1.0.
|
|
29
|
+
> href="https://unpkg.com/@melodicdev/components@1.0.3/assets/melodic-components.min.css">
|
|
30
30
|
> ```
|
|
31
31
|
|
|
32
32
|
The `melodic-styles` attribute has no special browser meaning — it's just a convenient selector if you ever need to find or replace the element from JavaScript:
|
|
@@ -80,9 +80,9 @@ If you're not using a bundler, you can load everything — styles, fonts, and al
|
|
|
80
80
|
<html data-theme="light">
|
|
81
81
|
<head>
|
|
82
82
|
<link melodic-styles rel="stylesheet"
|
|
83
|
-
href="https://unpkg.com/@melodicdev/components@1.0.
|
|
83
|
+
href="https://unpkg.com/@melodicdev/components@1.0.3/assets/melodic-components.min.css">
|
|
84
84
|
<script type="module"
|
|
85
|
-
src="https://unpkg.com/@melodicdev/components@1.0.
|
|
85
|
+
src="https://unpkg.com/@melodicdev/components@1.0.3/assets/melodic-components.min.js"></script>
|
|
86
86
|
</head>
|
|
87
87
|
<body>
|
|
88
88
|
<ml-button>Hello</ml-button>
|
|
@@ -97,7 +97,7 @@ The theme API is available as a named export from the module:
|
|
|
97
97
|
|
|
98
98
|
```html
|
|
99
99
|
<script type="module">
|
|
100
|
-
import { applyTheme } from 'https://unpkg.com/@melodicdev/components@1.0.
|
|
100
|
+
import { applyTheme } from 'https://unpkg.com/@melodicdev/components@1.0.3/assets/melodic-components.min.js';
|
|
101
101
|
applyTheme('dark');
|
|
102
102
|
</script>
|
|
103
103
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@melodicdev/components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Themeable UI component library built on the Melodic Framework",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Melodic Development",
|
|
@@ -181,6 +181,10 @@
|
|
|
181
181
|
"types": "./lib/components/forms/radio-card-group/index.d.ts",
|
|
182
182
|
"default": "./lib/components/forms/radio-card-group/index.js"
|
|
183
183
|
},
|
|
184
|
+
"./select": {
|
|
185
|
+
"types": "./lib/components/forms/select/index.d.ts",
|
|
186
|
+
"default": "./lib/components/forms/select/index.js"
|
|
187
|
+
},
|
|
184
188
|
"./sidebar": {
|
|
185
189
|
"types": "./lib/components/navigation/sidebar/index.d.ts",
|
|
186
190
|
"default": "./lib/components/navigation/sidebar/index.js"
|