@nice2dev/icons 1.3.3 → 1.3.4
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 +39 -0
- package/README.md +12 -4
- package/dist/cjs/createIcon.js +4 -1
- package/dist/cjs/figmaExport.js +1 -0
- package/dist/cjs/iconParts.js +6 -5
- package/dist/cjs/icons/actions.js +11 -3
- package/dist/cjs/icons/business.js +8 -7
- package/dist/cjs/icons/education.js +18 -14
- package/dist/cjs/icons/files.js +10 -8
- package/dist/cjs/icons/index.js +1 -0
- package/dist/cjs/icons/media.js +41 -15
- package/dist/cjs/icons/navigation.js +8 -6
- package/dist/cjs/icons/realestate.js +5 -2
- package/dist/cjs/icons/shapes.js +16 -4
- package/dist/cjs/icons/travel.js +15 -14
- package/dist/cjs/icons/ui.js +41 -6
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/nicetodev-icons.css +1 -1
- package/dist/esm/createIcon.js +4 -1
- package/dist/esm/figmaExport.js +1 -0
- package/dist/esm/iconParts.js +6 -5
- package/dist/esm/icons/actions.js +11 -3
- package/dist/esm/icons/business.js +9 -8
- package/dist/esm/icons/education.js +18 -14
- package/dist/esm/icons/files.js +10 -8
- package/dist/esm/icons/index.js +1 -1
- package/dist/esm/icons/media.js +41 -15
- package/dist/esm/icons/navigation.js +8 -6
- package/dist/esm/icons/realestate.js +5 -2
- package/dist/esm/icons/shapes.js +16 -4
- package/dist/esm/icons/travel.js +15 -14
- package/dist/esm/icons/ui.js +41 -7
- package/dist/esm/index.js +1 -1
- package/dist/esm/nicetodev-icons.css +1 -1
- package/dist/types/iconParts.d.ts +2 -1
- package/dist/types/icons/index.d.ts +1 -1
- package/dist/types/icons/ui.d.ts +1 -0
- package/dist/types/types.d.ts +8 -3
- package/package.json +2 -2
package/dist/types/types.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ export type CutoutShape = 'rounded-square' | 'circle' | 'square' | 'hexagon' | '
|
|
|
71
71
|
* Each value maps to a `.ntd-anim-{name}` CSS class defined in `animations.css`.
|
|
72
72
|
*
|
|
73
73
|
* **Categories:**
|
|
74
|
-
* - **Core transforms:** spin, pulse, bounce, shake, float, flip, glow, wiggle, etc.
|
|
74
|
+
* - **Core transforms:** spin, pulse, bounce, shake, float, flip, glow, wiggle, turn, etc.
|
|
75
75
|
* - **Entrances (one-shot):** fade-in, slide-up, drop, rise, roll-in, vortex, meteor, etc.
|
|
76
76
|
* - **Exits (one-shot):** scale-out, fold, dissolve.
|
|
77
77
|
* - **Organic / natural:** breathe, drift, orbit, sway, tilt, pendulum, levitate, etc.
|
|
@@ -86,7 +86,9 @@ export type CutoutShape = 'rounded-square' | 'circle' | 'square' | 'hexagon' | '
|
|
|
86
86
|
* <NtdBell animation="shake" animationDuration="0.5s" />
|
|
87
87
|
* ```
|
|
88
88
|
*/
|
|
89
|
-
export type IconAnimation = 'spin' | 'spin-reverse' | 'pulse' | 'bounce' | 'shake' | 'float' | 'flip' | 'glow' | 'wiggle' | 'rubber' | 'swing' | 'tada' | 'heartbeat'
|
|
89
|
+
export type IconAnimation = 'spin' | 'spin-reverse' | 'pulse' | 'bounce' | 'shake' | 'float' | 'flip' | 'glow' | 'wiggle' | 'rubber' | 'swing' | 'tada' | 'heartbeat'
|
|
90
|
+
/** Turns the icon upside down, holds, turns it back and holds; NtdHourglass pours its sand. */
|
|
91
|
+
| 'turn' | 'fade-in' | 'slide-up' | 'slide-down' | 'slide-left' | 'slide-right' | 'drop' | 'rise' | 'roll-in' | 'materialize' | 'vortex' | 'meteor' | 'scale-in' | 'signature' | 'draw-sequence' | 'stroke-order' | 'glow-trace' | 'seal-stamp' | 'reveal' | 'typewriter' | 'unfold' | 'assemble' | 'draw' | 'draw-from-dot' | 'scale-out' | 'fold' | 'dissolve' | 'breathe' | 'drift' | 'orbit' | 'sway' | 'tilt' | 'rock' | 'pendulum' | 'levitate' | 'flap' | 'skate' | 'jello' | 'pop' | 'squeeze' | 'crush' | 'stretch' | 'stomp' | 'snap' | 'twist' | 'dash' | 'surge' | 'flash' | 'blink' | 'flicker' | 'vibrate' | 'tremble' | 'glitch' | 'neon' | 'earthquake' | 'wobble' | 'spiral' | 'warp' | 'morph' | 'zoom-pulse' | 'ripple' | 'radar' | 'ping' | 'implode' | 'explode' | 'scatter' | 'rotate-x' | 'draw-loop';
|
|
90
92
|
/**
|
|
91
93
|
* Named gradient presets.
|
|
92
94
|
*
|
|
@@ -209,7 +211,10 @@ export interface NtdIconProps extends Omit<SVGProps<SVGSVGElement>, 'ref'> {
|
|
|
209
211
|
strokeLinejoin?: 'round' | 'miter' | 'bevel';
|
|
210
212
|
/** CSS animation to apply */
|
|
211
213
|
animation?: IconAnimation;
|
|
212
|
-
/**
|
|
214
|
+
/**
|
|
215
|
+
* Animation duration override (CSS value). Also set as `--ntd-anim-duration`, so the parts an
|
|
216
|
+
* icon animates inside itself (NtdHourglass's sand under `turn`) keep in step.
|
|
217
|
+
*/
|
|
213
218
|
animationDuration?: string;
|
|
214
219
|
/** SMIL animation to apply (SVG-native, no CSS required) */
|
|
215
220
|
smilAnimation?: SmilAnimationType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nice2dev/icons",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
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.4",
|
|
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",
|