@odx/icons 4.0.0-rc.31 → 4.0.0-rc.32
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 +3 -3
- package/dist/src/loader.d.ts +1 -1
- package/dist/src/loader.js +1 -1
- package/dist/src/main.d.ts +2 -1
- package/dist/src/main.js +2 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -140,7 +140,7 @@ import '@odx/icons/core';
|
|
|
140
140
|
#### CDN Example
|
|
141
141
|
|
|
142
142
|
```js
|
|
143
|
-
import
|
|
143
|
+
import loadIcons from '@odx/icons/loader';
|
|
144
144
|
|
|
145
145
|
/*
|
|
146
146
|
interface AssetLoaderOptions {
|
|
@@ -149,7 +149,7 @@ interface AssetLoaderOptions {
|
|
|
149
149
|
loadMetadata?: boolean; // default: false
|
|
150
150
|
}
|
|
151
151
|
*/
|
|
152
|
-
|
|
152
|
+
loadIcons('<set-name>', options);
|
|
153
153
|
```
|
|
154
154
|
|
|
155
155
|
### Browser Support
|
|
@@ -166,4 +166,4 @@ This library leverages modern web technologies such as Shadow DOM for encapsulat
|
|
|
166
166
|
|
|
167
167
|
## Live demo ⭐
|
|
168
168
|
|
|
169
|
-
For a overview of all available assets please refer to our [**Asset Viewer**](https://assets.draeger.com/icons).
|
|
169
|
+
For a overview of all available assets please refer to our [**Asset Viewer**](https://assets.draeger.com/icons).
|
package/dist/src/loader.d.ts
CHANGED
package/dist/src/loader.js
CHANGED
package/dist/src/main.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type ExtractAssetName, type ExtractAssetSet
|
|
1
|
+
import { type ExtractAssetName, type ExtractAssetSet } from '@odx/assets-utils';
|
|
2
|
+
import { OdxAssetElement } from '@odx/assets-utils/element';
|
|
2
3
|
declare global {
|
|
3
4
|
export interface _OdxIcon {
|
|
4
5
|
}
|
package/dist/src/main.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { registerAssetElement } from '@odx/assets-utils';
|
|
2
|
+
import { OdxAssetElement } from '@odx/assets-utils/element';
|
|
2
3
|
export class OdxIconElement extends OdxAssetElement {
|
|
3
4
|
static assetAttributes = [
|
|
4
5
|
{ name: 'color', values: ['currentColor'], attributes: ['fill', 'stroke'] },
|
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.0.0-rc.
|
|
4
|
+
"version": "4.0.0-rc.32",
|
|
5
5
|
"author": "Drägerwerk AG & Co.KGaA",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
7
7
|
"homepage": "https://odx.draeger.com",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"generate-assets": "npx generate-assets && biome check --write --no-errors-on-unmatched --files-ignore-unknown=true"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@odx/assets-utils": "^
|
|
24
|
+
"@odx/assets-utils": "^3.0.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@odx/assets-cli": "*",
|