@nice2dev/icons 1.0.0 → 1.0.3
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 +169 -7
- package/README.md +247 -2
- package/bin/ntd-icons.mjs +732 -0
- package/dist/cjs/NtdIconBadge.js +375 -0
- package/dist/cjs/NtdIconBadge.js.map +1 -0
- package/dist/cjs/NtdIconMorph.js +386 -0
- package/dist/cjs/NtdIconMorph.js.map +1 -0
- package/dist/cjs/NtdStateMorph.js +177 -0
- package/dist/cjs/NtdStateMorph.js.map +1 -0
- package/dist/cjs/createIcon.js +51 -4
- package/dist/cjs/createIcon.js.map +1 -1
- package/dist/cjs/figmaSync.js +308 -0
- package/dist/cjs/figmaSync.js.map +1 -0
- package/dist/cjs/iconAnalytics.js +189 -0
- package/dist/cjs/iconAnalytics.js.map +1 -0
- package/dist/cjs/iconMetadata.js +523 -0
- package/dist/cjs/iconMetadata.js.map +1 -0
- package/dist/cjs/iconStyles.js +597 -0
- package/dist/cjs/iconStyles.js.map +1 -0
- package/dist/cjs/icons/accessibility.js +168 -0
- package/dist/cjs/icons/accessibility.js.map +1 -0
- package/dist/cjs/icons/ai.js +191 -0
- package/dist/cjs/icons/ai.js.map +1 -0
- package/dist/cjs/icons/brand.js +70 -0
- package/dist/cjs/icons/brand.js.map +1 -1
- package/dist/cjs/icons/education.js +212 -0
- package/dist/cjs/icons/education.js.map +1 -0
- package/dist/cjs/icons/food.js +198 -0
- package/dist/cjs/icons/food.js.map +1 -0
- package/dist/cjs/icons/gaming.js +191 -0
- package/dist/cjs/icons/gaming.js.map +1 -0
- package/dist/cjs/icons/index.js +520 -0
- package/dist/cjs/icons/index.js.map +1 -0
- package/dist/cjs/icons/legal.js +168 -0
- package/dist/cjs/icons/legal.js.map +1 -0
- package/dist/cjs/icons/realestate.js +212 -0
- package/dist/cjs/icons/realestate.js.map +1 -0
- package/dist/cjs/icons/science.js +201 -0
- package/dist/cjs/icons/science.js.map +1 -0
- package/dist/cjs/icons/sports.js +176 -0
- package/dist/cjs/icons/sports.js.map +1 -0
- package/dist/cjs/icons/sustainability.js +193 -0
- package/dist/cjs/icons/sustainability.js.map +1 -0
- package/dist/cjs/icons/travel.js +184 -0
- package/dist/cjs/icons/travel.js.map +1 -0
- package/dist/cjs/index.js +265 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lottieIntegration.js +286 -0
- package/dist/cjs/lottieIntegration.js.map +1 -0
- package/dist/cjs/nicetodev-icons.css +1 -1
- package/dist/cjs/particleEffects.js +259 -0
- package/dist/cjs/particleEffects.js.map +1 -0
- package/dist/cjs/resolver.js +224 -0
- package/dist/cjs/resolver.js.map +1 -0
- package/dist/cjs/tailwind-plugin.js +340 -0
- package/dist/cjs/tailwind-plugin.js.map +1 -0
- package/dist/cjs/types.js +38 -0
- package/dist/cjs/types.js.map +1 -1
- package/dist/cjs/variantProps.js +78 -0
- package/dist/cjs/variantProps.js.map +1 -0
- package/dist/esm/NtdIconBadge.js +370 -0
- package/dist/esm/NtdIconBadge.js.map +1 -0
- package/dist/esm/NtdIconMorph.js +381 -0
- package/dist/esm/NtdIconMorph.js.map +1 -0
- package/dist/esm/NtdStateMorph.js +174 -0
- package/dist/esm/NtdStateMorph.js.map +1 -0
- package/dist/esm/createIcon.js +53 -6
- package/dist/esm/createIcon.js.map +1 -1
- package/dist/esm/figmaSync.js +304 -0
- package/dist/esm/figmaSync.js.map +1 -0
- package/dist/esm/iconAnalytics.js +185 -0
- package/dist/esm/iconAnalytics.js.map +1 -0
- package/dist/esm/iconMetadata.js +510 -0
- package/dist/esm/iconMetadata.js.map +1 -0
- package/dist/esm/iconStyles.js +585 -0
- package/dist/esm/iconStyles.js.map +1 -0
- package/dist/esm/icons/accessibility.js +153 -0
- package/dist/esm/icons/accessibility.js.map +1 -0
- package/dist/esm/icons/ai.js +174 -0
- package/dist/esm/icons/ai.js.map +1 -0
- package/dist/esm/icons/brand.js +67 -1
- package/dist/esm/icons/brand.js.map +1 -1
- package/dist/esm/icons/education.js +193 -0
- package/dist/esm/icons/education.js.map +1 -0
- package/dist/esm/icons/food.js +180 -0
- package/dist/esm/icons/food.js.map +1 -0
- package/dist/esm/icons/gaming.js +174 -0
- package/dist/esm/icons/gaming.js.map +1 -0
- package/dist/esm/icons/index.js +31 -0
- package/dist/esm/icons/index.js.map +1 -0
- package/dist/esm/icons/legal.js +153 -0
- package/dist/esm/icons/legal.js.map +1 -0
- package/dist/esm/icons/realestate.js +193 -0
- package/dist/esm/icons/realestate.js.map +1 -0
- package/dist/esm/icons/science.js +183 -0
- package/dist/esm/icons/science.js.map +1 -0
- package/dist/esm/icons/sports.js +160 -0
- package/dist/esm/icons/sports.js.map +1 -0
- package/dist/esm/icons/sustainability.js +176 -0
- package/dist/esm/icons/sustainability.js.map +1 -0
- package/dist/esm/icons/travel.js +167 -0
- package/dist/esm/icons/travel.js.map +1 -0
- package/dist/esm/index.js +27 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lottieIntegration.js +282 -0
- package/dist/esm/lottieIntegration.js.map +1 -0
- package/dist/esm/nicetodev-icons.css +1 -1
- package/dist/esm/particleEffects.js +257 -0
- package/dist/esm/particleEffects.js.map +1 -0
- package/dist/esm/resolver.js +221 -0
- package/dist/esm/resolver.js.map +1 -0
- package/dist/esm/tailwind-plugin.js +337 -0
- package/dist/esm/tailwind-plugin.js.map +1 -0
- package/dist/esm/types.js +37 -1
- package/dist/esm/types.js.map +1 -1
- package/dist/esm/variantProps.js +68 -0
- package/dist/esm/variantProps.js.map +1 -0
- package/dist/types/NtdIconBadge.d.ts +209 -0
- package/dist/types/NtdIconMorph.d.ts +183 -0
- package/dist/types/NtdStateMorph.d.ts +100 -0
- package/dist/types/client.d.ts +27 -0
- package/dist/types/design-tokens.d.ts +281 -0
- package/dist/types/figmaSync.d.ts +135 -0
- package/dist/types/headless-ui.d.ts +462 -0
- package/dist/types/iconAnalytics.d.ts +131 -0
- package/dist/types/iconMetadata.d.ts +123 -0
- package/dist/types/iconStyles.d.ts +104 -0
- package/dist/types/icons/accessibility.d.ts +39 -0
- package/dist/types/icons/ai.d.ts +43 -0
- package/dist/types/icons/brand.d.ts +4 -0
- package/dist/types/icons/education.d.ts +47 -0
- package/dist/types/icons/food.d.ts +45 -0
- package/dist/types/icons/gaming.d.ts +42 -0
- package/dist/types/icons/index.d.ts +12 -1
- package/dist/types/icons/legal.d.ts +39 -0
- package/dist/types/icons/realestate.d.ts +47 -0
- package/dist/types/icons/science.d.ts +45 -0
- package/dist/types/icons/sports.d.ts +41 -0
- package/dist/types/icons/sustainability.d.ts +43 -0
- package/dist/types/icons/travel.d.ts +43 -0
- package/dist/types/index.d.ts +28 -6
- package/dist/types/lottieIntegration.d.ts +173 -0
- package/dist/types/micro-interactions.d.ts +146 -0
- package/dist/types/microInteractions.d.ts +174 -0
- package/dist/types/particleEffects.d.ts +69 -0
- package/dist/types/resolver.d.ts +58 -0
- package/dist/types/rsc.d.ts +159 -0
- package/dist/types/tailwind-plugin.d.ts +100 -0
- package/dist/types/types.d.ts +100 -0
- package/dist/types/utilities.d.ts +221 -0
- package/dist/types/variantProps.d.ts +122 -0
- package/package.json +58 -5
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @file variantProps.ts
|
|
5
|
+
* @description Discriminated unions and strict prop validation per icon variant.
|
|
6
|
+
*
|
|
7
|
+
* Provides narrowed prop types for each icon variant (solid, outline, duotone, flat,
|
|
8
|
+
* sharp, rounded, mini, 3d) with variant-specific required/optional props.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* // Narrows to DuotoneIconProps — guarantees secondaryColor is accepted
|
|
13
|
+
* const props: VariantIconProps = {
|
|
14
|
+
* variant: 'duotone',
|
|
15
|
+
* primaryColor: '#3b82f6',
|
|
16
|
+
* secondaryColor: '#93c5fd',
|
|
17
|
+
* secondaryOpacity: 0.4,
|
|
18
|
+
* };
|
|
19
|
+
*
|
|
20
|
+
* // Type guard usage
|
|
21
|
+
* if (isDuotoneProps(props)) {
|
|
22
|
+
* props.secondaryColor; // string — narrowed
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
/* ────────────────────────────────────────────────────────────────────────────
|
|
27
|
+
TYPE GUARDS
|
|
28
|
+
───────────────────────────────────────────────────────────────────────────── */
|
|
29
|
+
/** Narrows to `SolidIconProps` when `variant === 'solid'`. */
|
|
30
|
+
function isSolidProps(props) {
|
|
31
|
+
return props.variant === 'solid';
|
|
32
|
+
}
|
|
33
|
+
/** Narrows to `OutlineIconProps` when `variant === 'outline'`. */
|
|
34
|
+
function isOutlineProps(props) {
|
|
35
|
+
return props.variant === 'outline';
|
|
36
|
+
}
|
|
37
|
+
/** Narrows to `DuotoneIconProps` when `variant === 'duotone'`. */
|
|
38
|
+
function isDuotoneProps(props) {
|
|
39
|
+
return props.variant === 'duotone';
|
|
40
|
+
}
|
|
41
|
+
/** Narrows to `FlatIconProps` when `variant === 'flat'`. */
|
|
42
|
+
function isFlatProps(props) {
|
|
43
|
+
return props.variant === 'flat';
|
|
44
|
+
}
|
|
45
|
+
/** Narrows to `SharpIconProps` when `variant === 'sharp'`. */
|
|
46
|
+
function isSharpProps(props) {
|
|
47
|
+
return props.variant === 'sharp';
|
|
48
|
+
}
|
|
49
|
+
/** Narrows to `RoundedIconProps` when `variant === 'rounded'`. */
|
|
50
|
+
function isRoundedProps(props) {
|
|
51
|
+
return props.variant === 'rounded';
|
|
52
|
+
}
|
|
53
|
+
/** Narrows to `MiniIconProps` when `variant === 'mini'`. */
|
|
54
|
+
function isMiniProps(props) {
|
|
55
|
+
return props.variant === 'mini';
|
|
56
|
+
}
|
|
57
|
+
/** Narrows to `ThreeDIconProps` when `variant === '3d'`. */
|
|
58
|
+
function isThreeDProps(props) {
|
|
59
|
+
return props.variant === '3d';
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Converts a discriminated `VariantIconProps` into the general `NtdIconProps`.
|
|
63
|
+
* Useful when passing narrowed props to actual icon components.
|
|
64
|
+
*/
|
|
65
|
+
function toIconProps(props) {
|
|
66
|
+
return props;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
exports.isDuotoneProps = isDuotoneProps;
|
|
70
|
+
exports.isFlatProps = isFlatProps;
|
|
71
|
+
exports.isMiniProps = isMiniProps;
|
|
72
|
+
exports.isOutlineProps = isOutlineProps;
|
|
73
|
+
exports.isRoundedProps = isRoundedProps;
|
|
74
|
+
exports.isSharpProps = isSharpProps;
|
|
75
|
+
exports.isSolidProps = isSolidProps;
|
|
76
|
+
exports.isThreeDProps = isThreeDProps;
|
|
77
|
+
exports.toIconProps = toIconProps;
|
|
78
|
+
//# sourceMappingURL=variantProps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variantProps.js","sources":["../../src/variantProps.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;;;;;;;;;AAsBG;AA0GH;;AAEgF;AAEhF;AACM,SAAU,YAAY,CAAC,KAAuB,EAAA;AAClD,IAAA,OAAO,KAAK,CAAC,OAAO,KAAK,OAAO;AAClC;AAEA;AACM,SAAU,cAAc,CAAC,KAAuB,EAAA;AACpD,IAAA,OAAO,KAAK,CAAC,OAAO,KAAK,SAAS;AACpC;AAEA;AACM,SAAU,cAAc,CAAC,KAAuB,EAAA;AACpD,IAAA,OAAO,KAAK,CAAC,OAAO,KAAK,SAAS;AACpC;AAEA;AACM,SAAU,WAAW,CAAC,KAAuB,EAAA;AACjD,IAAA,OAAO,KAAK,CAAC,OAAO,KAAK,MAAM;AACjC;AAEA;AACM,SAAU,YAAY,CAAC,KAAuB,EAAA;AAClD,IAAA,OAAO,KAAK,CAAC,OAAO,KAAK,OAAO;AAClC;AAEA;AACM,SAAU,cAAc,CAAC,KAAuB,EAAA;AACpD,IAAA,OAAO,KAAK,CAAC,OAAO,KAAK,SAAS;AACpC;AAEA;AACM,SAAU,WAAW,CAAC,KAAuB,EAAA;AACjD,IAAA,OAAO,KAAK,CAAC,OAAO,KAAK,MAAM;AACjC;AAEA;AACM,SAAU,aAAa,CAAC,KAAuB,EAAA;AACnD,IAAA,OAAO,KAAK,CAAC,OAAO,KAAK,IAAI;AAC/B;AAEA;;;AAGG;AACG,SAAU,WAAW,CAAC,KAAuB,EAAA;AACjD,IAAA,OAAO,KAAqB;AAC9B;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef, useState, useRef, useEffect } from 'react';
|
|
3
|
+
import { SIZE_MAP } from './types.js';
|
|
4
|
+
|
|
5
|
+
/* ────────────────────────────────────────────────────────────────────────────
|
|
6
|
+
CONSTANTS
|
|
7
|
+
───────────────────────────────────────────────────────────────────────────── */
|
|
8
|
+
const STATUS_COLORS = {
|
|
9
|
+
online: '#22c55e', // green-500
|
|
10
|
+
offline: '#6b7280', // gray-500
|
|
11
|
+
busy: '#ef4444', // red-500
|
|
12
|
+
away: '#f59e0b', // amber-500
|
|
13
|
+
dnd: '#ef4444', // red-500
|
|
14
|
+
invisible: '#9ca3af', // gray-400
|
|
15
|
+
};
|
|
16
|
+
const POSITION_STYLES = {
|
|
17
|
+
'top-right': { top: 0, right: 0, transform: 'translate(40%, -40%)' },
|
|
18
|
+
'top-left': { top: 0, left: 0, transform: 'translate(-40%, -40%)' },
|
|
19
|
+
'bottom-right': { bottom: 0, right: 0, transform: 'translate(40%, 40%)' },
|
|
20
|
+
'bottom-left': { bottom: 0, left: 0, transform: 'translate(-40%, 40%)' },
|
|
21
|
+
'top-center': { top: 0, left: '50%', transform: 'translate(-50%, -50%)' },
|
|
22
|
+
'bottom-center': { bottom: 0, left: '50%', transform: 'translate(-50%, 50%)' },
|
|
23
|
+
'center-right': { top: '50%', right: 0, transform: 'translate(50%, -50%)' },
|
|
24
|
+
'center-left': { top: '50%', left: 0, transform: 'translate(-50%, -50%)' },
|
|
25
|
+
};
|
|
26
|
+
const DOT_SIZES = {
|
|
27
|
+
sm: 6,
|
|
28
|
+
md: 8,
|
|
29
|
+
lg: 10,
|
|
30
|
+
};
|
|
31
|
+
/* ────────────────────────────────────────────────────────────────────────────
|
|
32
|
+
STYLES
|
|
33
|
+
───────────────────────────────────────────────────────────────────────────── */
|
|
34
|
+
const badgeStyles = `
|
|
35
|
+
.ntd-badge-container {
|
|
36
|
+
position: relative;
|
|
37
|
+
display: inline-flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.ntd-badge {
|
|
43
|
+
position: absolute;
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
font-size: 10px;
|
|
48
|
+
font-weight: 600;
|
|
49
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
50
|
+
line-height: 1;
|
|
51
|
+
white-space: nowrap;
|
|
52
|
+
border-radius: 9999px;
|
|
53
|
+
z-index: 1;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.ntd-badge--standard {
|
|
57
|
+
min-width: 18px;
|
|
58
|
+
height: 18px;
|
|
59
|
+
padding: 0 5px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.ntd-badge--dot {
|
|
63
|
+
width: 8px;
|
|
64
|
+
height: 8px;
|
|
65
|
+
padding: 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.ntd-badge--pill {
|
|
69
|
+
min-width: 20px;
|
|
70
|
+
height: 16px;
|
|
71
|
+
padding: 0 6px;
|
|
72
|
+
font-size: 9px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.ntd-badge--animated {
|
|
76
|
+
transition: transform 0.2s ease, opacity 0.2s ease;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.ntd-badge--enter {
|
|
80
|
+
animation: ntd-badge-pop 0.3s ease-out;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@keyframes ntd-badge-pop {
|
|
84
|
+
0% { transform: scale(0); opacity: 0; }
|
|
85
|
+
50% { transform: scale(1.2); }
|
|
86
|
+
100% { transform: scale(1); opacity: 1; }
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@keyframes ntd-badge-pulse {
|
|
90
|
+
0%, 100% { transform: scale(1); opacity: 1; }
|
|
91
|
+
50% { transform: scale(1.1); opacity: 0.8; }
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.ntd-badge--pulse {
|
|
95
|
+
animation: ntd-badge-pulse 1.5s ease-in-out infinite;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.ntd-status-dot {
|
|
99
|
+
position: absolute;
|
|
100
|
+
border-radius: 50%;
|
|
101
|
+
border: 2px solid white;
|
|
102
|
+
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
|
|
103
|
+
z-index: 1;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.ntd-status-dot--animated {
|
|
107
|
+
transition: background-color 0.3s ease, transform 0.3s ease;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@keyframes ntd-status-pulse {
|
|
111
|
+
0%, 100% {
|
|
112
|
+
box-shadow: 0 0 0 0 currentColor;
|
|
113
|
+
}
|
|
114
|
+
50% {
|
|
115
|
+
box-shadow: 0 0 0 4px transparent;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.ntd-status-dot--pulse {
|
|
120
|
+
animation: ntd-status-pulse 2s ease-in-out infinite;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.ntd-icon-overlay {
|
|
124
|
+
position: absolute;
|
|
125
|
+
display: flex;
|
|
126
|
+
align-items: center;
|
|
127
|
+
justify-content: center;
|
|
128
|
+
z-index: 1;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.ntd-icon-overlay--circular {
|
|
132
|
+
border-radius: 50%;
|
|
133
|
+
padding: 2px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@keyframes ntd-count-change {
|
|
137
|
+
0% { transform: scale(1); }
|
|
138
|
+
25% { transform: scale(1.3); }
|
|
139
|
+
50% { transform: scale(0.9); }
|
|
140
|
+
100% { transform: scale(1); }
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.ntd-badge--count-change {
|
|
144
|
+
animation: ntd-count-change 0.3s ease-out;
|
|
145
|
+
}
|
|
146
|
+
`;
|
|
147
|
+
// Inject styles
|
|
148
|
+
let stylesInjected = false;
|
|
149
|
+
function injectStyles() {
|
|
150
|
+
if (stylesInjected || typeof document === 'undefined')
|
|
151
|
+
return;
|
|
152
|
+
const styleId = 'ntd-badge-styles';
|
|
153
|
+
if (!document.getElementById(styleId)) {
|
|
154
|
+
const styleEl = document.createElement('style');
|
|
155
|
+
styleEl.id = styleId;
|
|
156
|
+
styleEl.textContent = badgeStyles;
|
|
157
|
+
document.head.appendChild(styleEl);
|
|
158
|
+
}
|
|
159
|
+
stylesInjected = true;
|
|
160
|
+
}
|
|
161
|
+
/* ────────────────────────────────────────────────────────────────────────────
|
|
162
|
+
NtdBadge COMPONENT
|
|
163
|
+
───────────────────────────────────────────────────────────────────────────── */
|
|
164
|
+
/**
|
|
165
|
+
* Badge overlay component for icons with notification counts.
|
|
166
|
+
*
|
|
167
|
+
* @example
|
|
168
|
+
* ```tsx
|
|
169
|
+
* // Basic notification badge
|
|
170
|
+
* <NtdBadge icon={NtdBell} count={3} />
|
|
171
|
+
*
|
|
172
|
+
* // Large count with max
|
|
173
|
+
* <NtdBadge icon={NtdInbox} count={150} maxCount={99} />
|
|
174
|
+
*
|
|
175
|
+
* // Pulsing badge
|
|
176
|
+
* <NtdBadge icon={NtdMessage} count={1} pulse />
|
|
177
|
+
*
|
|
178
|
+
* // Custom colors
|
|
179
|
+
* <NtdBadge
|
|
180
|
+
* icon={NtdHeart}
|
|
181
|
+
* count={5}
|
|
182
|
+
* badgeColor="#e91e63"
|
|
183
|
+
* textColor="white"
|
|
184
|
+
* />
|
|
185
|
+
* ```
|
|
186
|
+
*/
|
|
187
|
+
const NtdBadge = forwardRef(({ icon: Icon, count = 0, maxCount = 99, showZero = false, position = 'top-right', variant = 'standard', badgeColor = '#ef4444', textColor = '#ffffff', animated = true, pulse = false, iconProps = {}, className, style, 'aria-label': ariaLabel, }, ref) => {
|
|
188
|
+
var _a, _b;
|
|
189
|
+
const [isEntering, setIsEntering] = useState(false);
|
|
190
|
+
const [countChanging, setCountChanging] = useState(false);
|
|
191
|
+
const prevCountRef = useRef(count);
|
|
192
|
+
useEffect(() => {
|
|
193
|
+
injectStyles();
|
|
194
|
+
}, []);
|
|
195
|
+
// Handle count change animation
|
|
196
|
+
useEffect(() => {
|
|
197
|
+
if (animated && prevCountRef.current !== count && count > 0) {
|
|
198
|
+
setCountChanging(true);
|
|
199
|
+
const timer = setTimeout(() => setCountChanging(false), 300);
|
|
200
|
+
prevCountRef.current = count;
|
|
201
|
+
return () => clearTimeout(timer);
|
|
202
|
+
}
|
|
203
|
+
prevCountRef.current = count;
|
|
204
|
+
}, [count, animated]);
|
|
205
|
+
// Handle enter animation
|
|
206
|
+
useEffect(() => {
|
|
207
|
+
if (animated && count > 0) {
|
|
208
|
+
setIsEntering(true);
|
|
209
|
+
const timer = setTimeout(() => setIsEntering(false), 300);
|
|
210
|
+
return () => clearTimeout(timer);
|
|
211
|
+
}
|
|
212
|
+
}, []);
|
|
213
|
+
const shouldShowBadge = count > 0 || showZero;
|
|
214
|
+
const displayCount = count > maxCount ? `${maxCount}+` : count.toString();
|
|
215
|
+
const resolvedSize = typeof iconProps.size === 'number'
|
|
216
|
+
? iconProps.size
|
|
217
|
+
: (_b = SIZE_MAP[(_a = iconProps.size) !== null && _a !== void 0 ? _a : 'md']) !== null && _b !== void 0 ? _b : 24;
|
|
218
|
+
const badgeClasses = [
|
|
219
|
+
'ntd-badge',
|
|
220
|
+
`ntd-badge--${variant}`,
|
|
221
|
+
animated && 'ntd-badge--animated',
|
|
222
|
+
isEntering && 'ntd-badge--enter',
|
|
223
|
+
countChanging && 'ntd-badge--count-change',
|
|
224
|
+
pulse && 'ntd-badge--pulse',
|
|
225
|
+
].filter(Boolean).join(' ');
|
|
226
|
+
return (jsxs("div", { ref: ref, className: `ntd-badge-container ${className !== null && className !== void 0 ? className : ''}`, style: {
|
|
227
|
+
width: resolvedSize,
|
|
228
|
+
height: resolvedSize,
|
|
229
|
+
...style,
|
|
230
|
+
}, "aria-label": ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : (shouldShowBadge ? `${count} notifications` : undefined), children: [jsx(Icon, { ...iconProps }), shouldShowBadge && (jsx("span", { className: badgeClasses, style: {
|
|
231
|
+
...POSITION_STYLES[position],
|
|
232
|
+
backgroundColor: badgeColor,
|
|
233
|
+
color: textColor,
|
|
234
|
+
}, "aria-hidden": "true", children: variant !== 'dot' && displayCount }))] }));
|
|
235
|
+
});
|
|
236
|
+
NtdBadge.displayName = 'NtdBadge';
|
|
237
|
+
/* ────────────────────────────────────────────────────────────────────────────
|
|
238
|
+
NtdStatusDot COMPONENT
|
|
239
|
+
───────────────────────────────────────────────────────────────────────────── */
|
|
240
|
+
/**
|
|
241
|
+
* Status indicator dot overlay for icons.
|
|
242
|
+
*
|
|
243
|
+
* @example
|
|
244
|
+
* ```tsx
|
|
245
|
+
* // Online status
|
|
246
|
+
* <NtdStatusDot icon={NtdUser} status="online" />
|
|
247
|
+
*
|
|
248
|
+
* // Busy with pulse
|
|
249
|
+
* <NtdStatusDot icon={NtdUser} status="busy" pulse />
|
|
250
|
+
*
|
|
251
|
+
* // Custom position
|
|
252
|
+
* <NtdStatusDot icon={NtdUser} status="away" position="bottom-right" />
|
|
253
|
+
* ```
|
|
254
|
+
*/
|
|
255
|
+
const NtdStatusDot = forwardRef(({ icon: Icon, status, statusColor, position = 'bottom-right', dotSize = 'md', animated = true, pulse = false, iconProps = {}, className, style, }, ref) => {
|
|
256
|
+
var _a, _b;
|
|
257
|
+
useEffect(() => {
|
|
258
|
+
injectStyles();
|
|
259
|
+
}, []);
|
|
260
|
+
const resolvedColor = statusColor !== null && statusColor !== void 0 ? statusColor : STATUS_COLORS[status];
|
|
261
|
+
const resolvedDotSize = DOT_SIZES[dotSize];
|
|
262
|
+
const resolvedIconSize = typeof iconProps.size === 'number'
|
|
263
|
+
? iconProps.size
|
|
264
|
+
: (_b = SIZE_MAP[(_a = iconProps.size) !== null && _a !== void 0 ? _a : 'md']) !== null && _b !== void 0 ? _b : 24;
|
|
265
|
+
const dotClasses = [
|
|
266
|
+
'ntd-status-dot',
|
|
267
|
+
animated && 'ntd-status-dot--animated',
|
|
268
|
+
pulse && status === 'online' && 'ntd-status-dot--pulse',
|
|
269
|
+
].filter(Boolean).join(' ');
|
|
270
|
+
return (jsxs("div", { ref: ref, className: `ntd-badge-container ${className !== null && className !== void 0 ? className : ''}`, style: {
|
|
271
|
+
width: resolvedIconSize,
|
|
272
|
+
height: resolvedIconSize,
|
|
273
|
+
...style,
|
|
274
|
+
}, role: "status", "aria-label": `Status: ${status}`, children: [jsx(Icon, { ...iconProps }), jsx("span", { className: dotClasses, style: {
|
|
275
|
+
...POSITION_STYLES[position],
|
|
276
|
+
width: resolvedDotSize,
|
|
277
|
+
height: resolvedDotSize,
|
|
278
|
+
backgroundColor: resolvedColor,
|
|
279
|
+
color: resolvedColor,
|
|
280
|
+
}, "aria-hidden": "true" })] }));
|
|
281
|
+
});
|
|
282
|
+
NtdStatusDot.displayName = 'NtdStatusDot';
|
|
283
|
+
/* ────────────────────────────────────────────────────────────────────────────
|
|
284
|
+
NtdIconOverlay COMPONENT
|
|
285
|
+
───────────────────────────────────────────────────────────────────────────── */
|
|
286
|
+
/**
|
|
287
|
+
* Generic overlay component for composing icons.
|
|
288
|
+
*
|
|
289
|
+
* @example
|
|
290
|
+
* ```tsx
|
|
291
|
+
* // Folder with plus
|
|
292
|
+
* <NtdIconOverlay
|
|
293
|
+
* icon={NtdFolder}
|
|
294
|
+
* overlay={<NtdPlus size="xs" />}
|
|
295
|
+
* position="bottom-right"
|
|
296
|
+
* />
|
|
297
|
+
*
|
|
298
|
+
* // With circular background
|
|
299
|
+
* <NtdIconOverlay
|
|
300
|
+
* icon={NtdUser}
|
|
301
|
+
* overlay={<NtdCheck size="xs" primaryColor="white" />}
|
|
302
|
+
* circularBg
|
|
303
|
+
* overlayBg="#22c55e"
|
|
304
|
+
* />
|
|
305
|
+
* ```
|
|
306
|
+
*/
|
|
307
|
+
const NtdIconOverlay = forwardRef(({ icon: Icon, overlay, position = 'bottom-right', overlayScale = 0.5, overlayBg, circularBg = false, iconProps = {}, className, style, }, ref) => {
|
|
308
|
+
var _a, _b;
|
|
309
|
+
useEffect(() => {
|
|
310
|
+
injectStyles();
|
|
311
|
+
}, []);
|
|
312
|
+
const resolvedIconSize = typeof iconProps.size === 'number'
|
|
313
|
+
? iconProps.size
|
|
314
|
+
: (_b = SIZE_MAP[(_a = iconProps.size) !== null && _a !== void 0 ? _a : 'md']) !== null && _b !== void 0 ? _b : 24;
|
|
315
|
+
const overlaySize = resolvedIconSize * overlayScale;
|
|
316
|
+
const overlayClasses = [
|
|
317
|
+
'ntd-icon-overlay',
|
|
318
|
+
circularBg && 'ntd-icon-overlay--circular',
|
|
319
|
+
].filter(Boolean).join(' ');
|
|
320
|
+
return (jsxs("div", { ref: ref, className: `ntd-badge-container ${className !== null && className !== void 0 ? className : ''}`, style: {
|
|
321
|
+
width: resolvedIconSize,
|
|
322
|
+
height: resolvedIconSize,
|
|
323
|
+
...style,
|
|
324
|
+
}, children: [jsx(Icon, { ...iconProps }), jsx("div", { className: overlayClasses, style: {
|
|
325
|
+
...POSITION_STYLES[position],
|
|
326
|
+
width: overlaySize,
|
|
327
|
+
height: overlaySize,
|
|
328
|
+
backgroundColor: overlayBg,
|
|
329
|
+
}, children: overlay })] }));
|
|
330
|
+
});
|
|
331
|
+
NtdIconOverlay.displayName = 'NtdIconOverlay';
|
|
332
|
+
/**
|
|
333
|
+
* Stack two icons for composite imagery.
|
|
334
|
+
*
|
|
335
|
+
* @example
|
|
336
|
+
* ```tsx
|
|
337
|
+
* // Folder with star
|
|
338
|
+
* <NtdIconStack
|
|
339
|
+
* base={NtdFolder}
|
|
340
|
+
* overlay={NtdStar}
|
|
341
|
+
* overlayProps={{ primaryColor: '#fbbf24' }}
|
|
342
|
+
* />
|
|
343
|
+
*
|
|
344
|
+
* // Ban overlay (slash through)
|
|
345
|
+
* <NtdIconStack
|
|
346
|
+
* base={NtdCamera}
|
|
347
|
+
* overlay={NtdSlash}
|
|
348
|
+
* overlayProps={{ primaryColor: '#ef4444' }}
|
|
349
|
+
* position="center"
|
|
350
|
+
* />
|
|
351
|
+
* ```
|
|
352
|
+
*/
|
|
353
|
+
const NtdIconStack = forwardRef(({ base: BaseIcon, overlay: OverlayIcon, baseProps = {}, overlayProps = {}, position = 'bottom-right', overlayScale = 0.6, size, className, style, }, ref) => {
|
|
354
|
+
var _a, _b, _c;
|
|
355
|
+
const resolvedSize = size
|
|
356
|
+
? (typeof size === 'number' ? size : (_a = SIZE_MAP[size]) !== null && _a !== void 0 ? _a : 24)
|
|
357
|
+
: (typeof baseProps.size === 'number' ? baseProps.size : (_c = SIZE_MAP[(_b = baseProps.size) !== null && _b !== void 0 ? _b : 'md']) !== null && _c !== void 0 ? _c : 24);
|
|
358
|
+
const overlaySize = Math.round(resolvedSize * overlayScale);
|
|
359
|
+
return (jsxs("div", { ref: ref, className: `ntd-badge-container ${className !== null && className !== void 0 ? className : ''}`, style: {
|
|
360
|
+
width: resolvedSize,
|
|
361
|
+
height: resolvedSize,
|
|
362
|
+
...style,
|
|
363
|
+
}, children: [jsx(BaseIcon, { ...baseProps, size: resolvedSize }), jsx("div", { className: "ntd-icon-overlay", style: {
|
|
364
|
+
...POSITION_STYLES[position],
|
|
365
|
+
}, children: jsx(OverlayIcon, { ...overlayProps, size: overlaySize }) })] }));
|
|
366
|
+
});
|
|
367
|
+
NtdIconStack.displayName = 'NtdIconStack';
|
|
368
|
+
|
|
369
|
+
export { NtdBadge, NtdIconOverlay, NtdIconStack, NtdStatusDot };
|
|
370
|
+
//# sourceMappingURL=NtdIconBadge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NtdIconBadge.js","sources":["../../src/NtdIconBadge.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;AAqIA;;AAEgF;AAEhF,MAAM,aAAa,GAA+B;IAChD,MAAM,EAAE,SAAS;IACjB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,SAAS;IACf,GAAG,EAAE,SAAS;IACd,SAAS,EAAE,SAAS;CACrB;AAED,MAAM,eAAe,GAA+C;AAClE,IAAA,WAAW,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,sBAAsB,EAAE;AACpE,IAAA,UAAU,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,uBAAuB,EAAE;AACnE,IAAA,cAAc,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,qBAAqB,EAAE;AACzE,IAAA,aAAa,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,sBAAsB,EAAE;AACxE,IAAA,YAAY,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,uBAAuB,EAAE;AACzE,IAAA,eAAe,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,sBAAsB,EAAE;AAC9E,IAAA,cAAc,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,S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