@nice2dev/icons 1.3.6 → 1.3.7
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 +44 -0
- package/README.md +4 -1
- package/dist/cjs/NiceIconStacker.js +4 -2
- package/dist/cjs/createIcon.js +2 -2
- package/dist/cjs/iconStack.js +3 -1
- package/dist/cjs/icons/actions.js +11 -4
- package/dist/cjs/icons/business.js +27 -17
- package/dist/cjs/icons/ecommerce.js +14 -4
- package/dist/cjs/icons/education.js +18 -11
- package/dist/cjs/icons/files.js +20 -12
- package/dist/cjs/icons/health.js +31 -15
- package/dist/cjs/icons/travel.js +4 -4
- package/dist/cjs/icons/ui.js +7 -6
- package/dist/cjs/icons/weather.js +4 -3
- package/dist/cjs/nicetodev-icons.css +1 -1
- package/dist/cjs/rsc.js +1 -1
- package/dist/cjs/stacking.js +12 -1
- package/dist/esm/NiceIconStacker.js +5 -3
- package/dist/esm/createIcon.js +2 -2
- package/dist/esm/iconStack.js +3 -1
- package/dist/esm/icons/actions.js +11 -4
- package/dist/esm/icons/business.js +28 -18
- package/dist/esm/icons/ecommerce.js +14 -4
- package/dist/esm/icons/education.js +18 -11
- package/dist/esm/icons/files.js +20 -12
- package/dist/esm/icons/health.js +31 -15
- package/dist/esm/icons/travel.js +4 -4
- package/dist/esm/icons/ui.js +7 -6
- package/dist/esm/icons/weather.js +5 -4
- package/dist/esm/nicetodev-icons.css +1 -1
- package/dist/esm/rsc.js +1 -1
- package/dist/esm/stacking.js +12 -2
- package/dist/types/iconStack.d.ts +6 -0
- package/dist/types/stacking.d.ts +5 -0
- package/dist/types/types.d.ts +11 -1
- package/package.json +2 -2
package/dist/types/types.d.ts
CHANGED
|
@@ -203,7 +203,7 @@ export interface NtdIconProps extends Omit<SVGProps<SVGSVGElement>, 'ref'> {
|
|
|
203
203
|
secondaryOpacity?: number;
|
|
204
204
|
/** Opacity for accent/detail elements (0-1) */
|
|
205
205
|
accentOpacity?: number;
|
|
206
|
-
/** Base stroke width for outline / duotone icons (default
|
|
206
|
+
/** Base stroke width for outline / duotone icons (default 1) */
|
|
207
207
|
strokeWidth?: number;
|
|
208
208
|
/** Stroke line cap style (default 'round') */
|
|
209
209
|
strokeLinecap?: 'round' | 'square' | 'butt';
|
|
@@ -296,6 +296,16 @@ export interface NtdIconProps extends Omit<SVGProps<SVGSVGElement>, 'ref'> {
|
|
|
296
296
|
* Its own contents and text turn with it.
|
|
297
297
|
*/
|
|
298
298
|
stackRotation?: number;
|
|
299
|
+
/**
|
|
300
|
+
* Moves this icon, when stacked in another, from where `stackAlign` puts it — in percent of the
|
|
301
|
+
* parent icon's width, positive to the right (1.3.7). `10` = a tenth of the parent across.
|
|
302
|
+
*/
|
|
303
|
+
stackOffsetX?: number;
|
|
304
|
+
/**
|
|
305
|
+
* Moves this icon, when stacked in another, from where `stackAlign` puts it — in percent of the
|
|
306
|
+
* parent icon's height, positive downwards (1.3.7).
|
|
307
|
+
*/
|
|
308
|
+
stackOffsetY?: number;
|
|
299
309
|
/** Accessible title for screen readers */
|
|
300
310
|
title?: string;
|
|
301
311
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nice2dev/icons",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"description": "Beautiful, lightweight, multi-color SVG icon library for React with animations",
|
|
5
5
|
"author": "NiceToDev <contact@nicetodev.com>",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
111
111
|
"@chromatic-com/storybook": "^5.3.1",
|
|
112
|
-
"@nice2dev/ui-core": "^1.3.
|
|
112
|
+
"@nice2dev/ui-core": "^1.3.7",
|
|
113
113
|
"@rollup/plugin-commonjs": "^29.0.3",
|
|
114
114
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
115
115
|
"@rollup/plugin-typescript": "^12.3.0",
|