@odx/icons 4.9.0 → 4.9.1
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/CHANGELOG.md +7 -0
- package/README.md +1 -19
- package/package.json +3 -4
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ import '@odx/icons/core/user';
|
|
|
49
49
|
|
|
50
50
|
### Properties
|
|
51
51
|
|
|
52
|
-
- **name**: string - `<set-name>::<name>`
|
|
52
|
+
- **name**: string - `<set-name>::<name>`
|
|
53
53
|
- **size**: string - one of `xs` | `sm` | `md` | `lg` | `xl` | `xxl`
|
|
54
54
|
|
|
55
55
|
#### Deprecated
|
|
@@ -84,13 +84,6 @@ Set the CSS `font-size` property on the element to define a custom size.
|
|
|
84
84
|
<odx-icon name="safety::alarm"></odx-icon>
|
|
85
85
|
```
|
|
86
86
|
|
|
87
|
-
#### CDN
|
|
88
|
-
|
|
89
|
-
```html
|
|
90
|
-
<script src="https://esm.sh/@odx/icons" type="module"></script>
|
|
91
|
-
<script src="https://esm.sh/@odx/icons/<set-name>" type="module"></script>
|
|
92
|
-
```
|
|
93
|
-
|
|
94
87
|
### JavaScript Example
|
|
95
88
|
|
|
96
89
|
```js
|
|
@@ -107,17 +100,6 @@ icon.name='core::user'
|
|
|
107
100
|
document.body.appendChild(icon);
|
|
108
101
|
```
|
|
109
102
|
|
|
110
|
-
### Import specific icon sets
|
|
111
|
-
To optimize your bundle, you can import only the specific icon set you need:
|
|
112
|
-
|
|
113
|
-
```js
|
|
114
|
-
// All icon sets
|
|
115
|
-
import '@odx/icons/all';
|
|
116
|
-
|
|
117
|
-
// Core icons (default set)
|
|
118
|
-
import '@odx/icons/core';
|
|
119
|
-
```
|
|
120
|
-
|
|
121
103
|
### SCSS Example
|
|
122
104
|
|
|
123
105
|
```scss
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odx/icons",
|
|
3
3
|
"description": "A library of icon assets for ODX",
|
|
4
|
-
"version": "4.9.
|
|
4
|
+
"version": "4.9.1",
|
|
5
5
|
"author": "Drägerwerk AG & Co.KGaA",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
7
7
|
"homepage": "https://odx.draeger.com",
|
|
@@ -15,11 +15,10 @@
|
|
|
15
15
|
],
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@odx/assets-utils": "^6.
|
|
18
|
+
"@odx/assets-utils": "^6.3.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@odx/assets-cli": "0.0.0"
|
|
22
|
-
"@odx-internal/config-typescript": "0.0.0"
|
|
21
|
+
"@odx/assets-cli": "0.0.0"
|
|
23
22
|
},
|
|
24
23
|
"sideEffects": true,
|
|
25
24
|
"exports": {
|