@odx/icons 4.0.0-rc.42 → 4.0.0-rc.44
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 +1 -16
- package/assets/all.scss +2214 -0
- package/assets/core/rutube.json +4 -0
- package/assets/core/rutube.svg +1 -0
- package/assets/core/sustainable-supply-chain.json +4 -0
- package/assets/core/sustainable-supply-chain.svg +1 -0
- package/dist/generated/core/rutube.d.ts +8 -0
- package/dist/generated/core/rutube.js +2 -0
- package/dist/generated/core/sustainable-supply-chain.d.ts +8 -0
- package/dist/generated/core/sustainable-supply-chain.js +2 -0
- package/dist/generated/core-metadata.js +2 -0
- package/dist/generated/core.d.ts +2 -0
- package/dist/generated/core.js +2 -0
- package/dist/main.js +3 -1
- package/main.scss +1 -1
- package/package.json +4 -9
- package/dist/loader.d.ts +0 -3
- package/dist/loader.js +0 -4
package/README.md
CHANGED
|
@@ -124,7 +124,7 @@ import '@odx/icons/core';
|
|
|
124
124
|
### SCSS Example
|
|
125
125
|
|
|
126
126
|
```scss
|
|
127
|
-
@use "@odx/icons/
|
|
127
|
+
@use "@odx/icons/scss" as odxIcons;
|
|
128
128
|
|
|
129
129
|
.my-icon-user {
|
|
130
130
|
@include odxIcons.icon("core::user");
|
|
@@ -137,21 +137,6 @@ import '@odx/icons/core';
|
|
|
137
137
|
|
|
138
138
|
> We use the `::after` pseudo element to apply our svg image mask, ensure you don't override those styles.
|
|
139
139
|
|
|
140
|
-
#### CDN Example
|
|
141
|
-
|
|
142
|
-
```js
|
|
143
|
-
import loadIcons from '@odx/icons/loader';
|
|
144
|
-
|
|
145
|
-
/*
|
|
146
|
-
interface AssetLoaderOptions {
|
|
147
|
-
cdn?: string; // default: 'https://esm.sh'
|
|
148
|
-
loadCustomElement?: boolean; // default: false
|
|
149
|
-
loadMetadata?: boolean; // default: false
|
|
150
|
-
}
|
|
151
|
-
*/
|
|
152
|
-
loadIcons('<set-name>', options);
|
|
153
|
-
```
|
|
154
|
-
|
|
155
140
|
#### Migration from Version < 4.x.x
|
|
156
141
|
|
|
157
142
|
In order to migrate from versions prior to 4.x.x, you need to update your imports and usage as follows:
|