@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 CHANGED
@@ -140,7 +140,7 @@ import '@odx/icons/core';
140
140
  #### CDN Example
141
141
 
142
142
  ```js
143
- import { loadAssets } from '@odx/assets-utils';
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
- loadAssets('@odx/icons@next', '<set-name>', options);
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).
@@ -1,3 +1,3 @@
1
- import { type AssetLoaderOptions } from '@odx/assets-utils';
1
+ import { type AssetLoaderOptions } from '@odx/assets-utils/loader';
2
2
  export default function (set: string, options?: AssetLoaderOptions): Promise<void>;
3
3
  //# sourceMappingURL=loader.d.ts.map
@@ -1,4 +1,4 @@
1
- import { loadAssets } from '@odx/assets-utils';
1
+ import { loadAssets } from '@odx/assets-utils/loader';
2
2
  export default function (set, options) {
3
3
  return loadAssets('@odx/icons@next', set, options);
4
4
  }
@@ -1,4 +1,5 @@
1
- import { type ExtractAssetName, type ExtractAssetSet, OdxAssetElement } from '@odx/assets-utils';
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 { OdxAssetElement, registerAssetElement } from '@odx/assets-utils';
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.31",
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": "^2.0.0"
24
+ "@odx/assets-utils": "^3.0.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@odx/assets-cli": "*",