@nice2dev/icons 1.1.10 → 1.2.0
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 +70 -0
- package/dist/cjs/createIcon.js +1 -8
- package/dist/cjs/icons/accessibility.js +0 -13
- package/dist/cjs/icons/actions.js +0 -25
- package/dist/cjs/icons/ai.js +0 -15
- package/dist/cjs/icons/brand.js +0 -11
- package/dist/cjs/icons/business.js +0 -25
- package/dist/cjs/icons/devtech.js +0 -39
- package/dist/cjs/icons/ecommerce.js +0 -16
- package/dist/cjs/icons/education.js +0 -17
- package/dist/cjs/icons/files.js +0 -31
- package/dist/cjs/icons/fintech.js +0 -14
- package/dist/cjs/icons/food.js +0 -16
- package/dist/cjs/icons/fun.js +0 -13
- package/dist/cjs/icons/gaming.js +0 -15
- package/dist/cjs/icons/health.js +0 -14
- package/dist/cjs/icons/legal.js +0 -13
- package/dist/cjs/icons/media.js +0 -23
- package/dist/cjs/icons/navigation.js +0 -14
- package/dist/cjs/icons/realestate.js +0 -17
- package/dist/cjs/icons/saas.js +0 -13
- package/dist/cjs/icons/science.js +1 -18
- package/dist/cjs/icons/shapes.js +0 -22
- package/dist/cjs/icons/smarthome.js +0 -13
- package/dist/cjs/icons/social.js +0 -18
- package/dist/cjs/icons/sports.js +0 -14
- package/dist/cjs/icons/sustainability.js +0 -15
- package/dist/cjs/icons/travel.js +0 -15
- package/dist/cjs/icons/ui.js +0 -28
- package/dist/cjs/icons/weather.js +0 -20
- package/dist/cjs/index.js +0 -4
- package/dist/cjs/nicetodev-icons.css +1 -1
- package/dist/cjs/rsc.js +1 -1
- package/dist/cjs/variantProps.js +2 -7
- package/dist/esm/createIcon.js +1 -8
- package/dist/esm/icons/accessibility.js +0 -13
- package/dist/esm/icons/actions.js +0 -25
- package/dist/esm/icons/ai.js +0 -15
- package/dist/esm/icons/brand.js +0 -11
- package/dist/esm/icons/business.js +0 -25
- package/dist/esm/icons/devtech.js +0 -39
- package/dist/esm/icons/ecommerce.js +0 -16
- package/dist/esm/icons/education.js +0 -17
- package/dist/esm/icons/files.js +0 -31
- package/dist/esm/icons/fintech.js +0 -14
- package/dist/esm/icons/food.js +0 -16
- package/dist/esm/icons/fun.js +0 -13
- package/dist/esm/icons/gaming.js +0 -15
- package/dist/esm/icons/health.js +0 -14
- package/dist/esm/icons/legal.js +0 -13
- package/dist/esm/icons/media.js +0 -23
- package/dist/esm/icons/navigation.js +0 -14
- package/dist/esm/icons/realestate.js +0 -17
- package/dist/esm/icons/saas.js +0 -13
- package/dist/esm/icons/science.js +1 -18
- package/dist/esm/icons/shapes.js +0 -22
- package/dist/esm/icons/smarthome.js +0 -13
- package/dist/esm/icons/social.js +0 -18
- package/dist/esm/icons/sports.js +0 -14
- package/dist/esm/icons/sustainability.js +0 -15
- package/dist/esm/icons/travel.js +0 -15
- package/dist/esm/icons/ui.js +0 -28
- package/dist/esm/icons/weather.js +0 -20
- package/dist/esm/index.js +1 -2
- package/dist/esm/nicetodev-icons.css +1 -1
- package/dist/esm/rsc.js +1 -1
- package/dist/esm/variantProps.js +3 -7
- package/dist/types/NtdIconMorph.d.ts +1 -1
- package/dist/types/createIcon.d.ts +1 -9
- package/dist/types/index.d.ts +2 -12
- package/dist/types/rsc.d.ts +1 -3
- package/dist/types/tailwind-plugin.d.ts +1 -1
- package/dist/types/types.d.ts +1 -2
- package/dist/types/variantProps.d.ts +3 -11
- package/package.json +1 -1
package/dist/types/types.d.ts
CHANGED
|
@@ -29,7 +29,6 @@ export type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'xxl' | 'xxxl'
|
|
|
29
29
|
* - `'wireframe'` — Thin uniform construction lines: every shape, including interior detail `outline` drops.
|
|
30
30
|
* - `'duotone'` — Two-tone rendering with a filled background layer at reduced opacity.
|
|
31
31
|
* - `'cutout'` — Knockout/cutout: colored background shape with icon silhouette cut out.
|
|
32
|
-
* - `'flat'` — Deprecated alias for `'cutout'`.
|
|
33
32
|
* - `'sharp'` — Solid variant with sharp corners (no rounded edges).
|
|
34
33
|
* - `'rounded'` — Solid variant with extra-rounded corners.
|
|
35
34
|
* - `'mini'` — Compact variant optimized for small sizes (12-16px).
|
|
@@ -46,7 +45,7 @@ export type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'xxl' | 'xxxl'
|
|
|
46
45
|
* <NtdHeart variant="vivid" primaryColor="#e74c3c" secondaryColor="#f472b6" /> // Colorful
|
|
47
46
|
* ```
|
|
48
47
|
*/
|
|
49
|
-
export type IconVariant = 'solid' | 'outline' | 'wireframe' | 'duotone' | 'cutout' | '
|
|
48
|
+
export type IconVariant = 'solid' | 'outline' | 'wireframe' | 'duotone' | 'cutout' | 'sharp' | 'rounded' | 'mini' | '3d' | 'vivid';
|
|
50
49
|
/**
|
|
51
50
|
* Shape of the background for the `'cutout'` variant.
|
|
52
51
|
*
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @file variantProps.ts
|
|
3
3
|
* @description Discriminated unions and strict prop validation per icon variant.
|
|
4
4
|
*
|
|
5
|
-
* Provides narrowed prop types for each icon variant (solid, outline, duotone,
|
|
6
|
-
* sharp, rounded, mini, 3d) with variant-specific required/optional props.
|
|
5
|
+
* Provides narrowed prop types for each icon variant (solid, outline, duotone, cutout,
|
|
6
|
+
* sharp, rounded, mini, 3d, vivid) with variant-specific required/optional props.
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
9
|
* ```tsx
|
|
@@ -61,12 +61,6 @@ export interface CutoutIconProps extends SharedIconProps {
|
|
|
61
61
|
secondaryColor?: string;
|
|
62
62
|
cutoutShape?: CutoutShape;
|
|
63
63
|
}
|
|
64
|
-
/** @deprecated Use `CutoutIconProps` with `variant="cutout"` instead. */
|
|
65
|
-
export interface FlatIconProps extends SharedIconProps {
|
|
66
|
-
variant: 'flat';
|
|
67
|
-
secondaryColor?: string;
|
|
68
|
-
cutoutShape?: CutoutShape;
|
|
69
|
-
}
|
|
70
64
|
/** Props for `variant="sharp"` — solid with sharp corners. */
|
|
71
65
|
export interface SharpIconProps extends SharedIconProps {
|
|
72
66
|
variant: 'sharp';
|
|
@@ -110,7 +104,7 @@ export interface VividIconProps extends SharedIconProps {
|
|
|
110
104
|
* }
|
|
111
105
|
* ```
|
|
112
106
|
*/
|
|
113
|
-
export type VariantIconProps = SolidIconProps | OutlineIconProps | DuotoneIconProps | CutoutIconProps |
|
|
107
|
+
export type VariantIconProps = SolidIconProps | OutlineIconProps | DuotoneIconProps | CutoutIconProps | SharpIconProps | RoundedIconProps | MiniIconProps | ThreeDIconProps | VividIconProps;
|
|
114
108
|
/** Narrows to `SolidIconProps` when `variant === 'solid'`. */
|
|
115
109
|
export declare function isSolidProps(props: VariantIconProps): props is SolidIconProps;
|
|
116
110
|
/** Narrows to `OutlineIconProps` when `variant === 'outline'`. */
|
|
@@ -119,8 +113,6 @@ export declare function isOutlineProps(props: VariantIconProps): props is Outlin
|
|
|
119
113
|
export declare function isDuotoneProps(props: VariantIconProps): props is DuotoneIconProps;
|
|
120
114
|
/** Narrows to `CutoutIconProps` when `variant === 'cutout'`. */
|
|
121
115
|
export declare function isCutoutProps(props: VariantIconProps): props is CutoutIconProps;
|
|
122
|
-
/** @deprecated Use `isCutoutProps` instead. Narrows to `FlatIconProps` when `variant === 'flat'`. */
|
|
123
|
-
export declare function isFlatProps(props: VariantIconProps): props is FlatIconProps;
|
|
124
116
|
/** Narrows to `SharpIconProps` when `variant === 'sharp'`. */
|
|
125
117
|
export declare function isSharpProps(props: VariantIconProps): props is SharpIconProps;
|
|
126
118
|
/** Narrows to `RoundedIconProps` when `variant === 'rounded'`. */
|
package/package.json
CHANGED