@fuf-stack/pixels 2.0.0-next.3 → 2.0.0-next.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/dist/Accordion/accordionVariants.d.mts +62 -62
- package/dist/Accordion/accordionVariants.mjs +3 -3
- package/dist/Accordion/accordionVariants.mjs.map +1 -1
- package/dist/Alert/alertVariants.d.mts +50 -50
- package/dist/Alert/alertVariants.mjs +10 -10
- package/dist/Alert/alertVariants.mjs.map +1 -1
- package/dist/Avatar/avatarVariants.d.mts +53 -53
- package/dist/Avatar/avatarVariants.mjs +4 -4
- package/dist/Avatar/avatarVariants.mjs.map +1 -1
- package/dist/AvatarGroup/avatarGroupVariants.d.mts +2 -2
- package/dist/Badge/badgeVariants.d.mts +30 -30
- package/dist/Badge/badgeVariants.mjs +4 -4
- package/dist/Badge/badgeVariants.mjs.map +1 -1
- package/dist/Breadcrumb/breadcrumbVariants.d.mts +160 -160
- package/dist/Breadcrumb/breadcrumbVariants.mjs +2 -2
- package/dist/Breadcrumb/breadcrumbVariants.mjs.map +1 -1
- package/dist/Button/Button.d.mts +7 -7
- package/dist/Button/Button.d.mts.map +1 -1
- package/dist/Button/Button.mjs +5 -5
- package/dist/Button/Button.mjs.map +1 -1
- package/dist/Button/buttonVariants.d.mts +29 -29
- package/dist/Button/buttonVariants.mjs +3 -3
- package/dist/Button/buttonVariants.mjs.map +1 -1
- package/dist/Card/Card.d.mts.map +1 -1
- package/dist/Card/Card.mjs.map +1 -1
- package/dist/Card/cardVariants.d.mts +18 -18
- package/dist/Card/cardVariants.mjs +2 -2
- package/dist/Card/cardVariants.mjs.map +1 -1
- package/dist/Drawer/drawerVariants.d.mts +93 -93
- package/dist/Drawer/drawerVariants.mjs +1 -1
- package/dist/Drawer/drawerVariants.mjs.map +1 -1
- package/dist/Json/Json.mjs +1 -1
- package/dist/Json/subcomponents/CopiedRenderer.mjs +2 -2
- package/dist/Json/subcomponents/CopiedRenderer.mjs.map +1 -1
- package/dist/Label/labelVariants.d.mts +86 -86
- package/dist/Label/labelVariants.mjs +3 -3
- package/dist/Label/labelVariants.mjs.map +1 -1
- package/dist/Menu/Menu.d.mts +6 -6
- package/dist/Menu/Menu.d.mts.map +1 -1
- package/dist/Menu/Menu.mjs +2 -2
- package/dist/Menu/Menu.mjs.map +1 -1
- package/dist/Menu/menuVariants.d.mts +36 -36
- package/dist/Menu/menuVariants.mjs +7 -7
- package/dist/Menu/menuVariants.mjs.map +1 -1
- package/dist/Modal/modalVariants.d.mts +43 -43
- package/dist/Modal/modalVariants.mjs +6 -6
- package/dist/Modal/modalVariants.mjs.map +1 -1
- package/dist/Popover/popoverVariants.d.mts +36 -36
- package/dist/Popover/popoverVariants.mjs +8 -8
- package/dist/Popover/popoverVariants.mjs.map +1 -1
- package/dist/Progress/progressVariants.d.mts +42 -42
- package/dist/ProgressCircular/progressCircularVariants.d.mts +80 -80
- package/dist/ScrollShadow/scrollShadowVariants.d.mts +1 -1
- package/dist/SearchInput/searchInputVariants.d.mts +26 -26
- package/dist/SearchInput/searchInputVariants.mjs +6 -6
- package/dist/SearchInput/searchInputVariants.mjs.map +1 -1
- package/dist/Table/tableVariants.d.mts +50 -50
- package/dist/Table/tableVariants.mjs +8 -8
- package/dist/Table/tableVariants.mjs.map +1 -1
- package/dist/Tabs/Tabs.d.mts +4 -4
- package/dist/Tabs/Tabs.d.mts.map +1 -1
- package/dist/Tabs/Tabs.mjs +4 -4
- package/dist/Tabs/Tabs.mjs.map +1 -1
- package/dist/Tabs/tabsVariants.d.mts +88 -88
- package/dist/Tabs/tabsVariants.mjs +5 -5
- package/dist/Tabs/tabsVariants.mjs.map +1 -1
- package/dist/Toast/Toaster.d.mts +4 -4
- package/dist/Toast/Toaster.d.mts.map +1 -1
- package/dist/Toast/Toaster.mjs +4 -4
- package/dist/Toast/Toaster.mjs.map +1 -1
- package/dist/Toast/toast.d.mts +2 -2
- package/dist/Toast/toast.d.mts.map +1 -1
- package/dist/Toast/toast.mjs +6 -6
- package/dist/Toast/toast.mjs.map +1 -1
- package/dist/Tooltip/subcomponents/TooltipTextTrigger.mjs +4 -1
- package/dist/Tooltip/subcomponents/TooltipTextTrigger.mjs.map +1 -1
- package/dist/Tooltip/subcomponents/TooltipTriggerElement.mjs +47 -3
- package/dist/Tooltip/subcomponents/TooltipTriggerElement.mjs.map +1 -1
- package/dist/Tooltip/tooltipVariants.d.mts +54 -54
- package/package.json +4 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TVClassName, TVProps } from "@fuf-stack/pixel-utils";
|
|
2
2
|
/** Corner badge surface, outline and content sizing */
|
|
3
3
|
export declare const badgeVariants: ((props?: ({
|
|
4
|
-
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | undefined;
|
|
5
4
|
size?: "sm" | "md" | "lg" | undefined;
|
|
6
|
-
placement?: "top-
|
|
5
|
+
placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
6
|
+
color?: "default" | "success" | "warning" | "danger" | "primary" | "secondary" | undefined;
|
|
7
7
|
isOneChar?: boolean | undefined;
|
|
8
8
|
isDot?: boolean | undefined;
|
|
9
9
|
noOutline?: boolean | undefined;
|
|
@@ -15,9 +15,9 @@ export declare const badgeVariants: ((props?: ({
|
|
|
15
15
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
16
16
|
})) | undefined) => {
|
|
17
17
|
badge: (slotProps?: ({
|
|
18
|
-
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | undefined;
|
|
19
18
|
size?: "sm" | "md" | "lg" | undefined;
|
|
20
|
-
placement?: "top-
|
|
19
|
+
placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
20
|
+
color?: "default" | "success" | "warning" | "danger" | "primary" | "secondary" | undefined;
|
|
21
21
|
isOneChar?: boolean | undefined;
|
|
22
22
|
isDot?: boolean | undefined;
|
|
23
23
|
noOutline?: boolean | undefined;
|
|
@@ -29,9 +29,9 @@ export declare const badgeVariants: ((props?: ({
|
|
|
29
29
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
30
30
|
})) | undefined) => string;
|
|
31
31
|
base: (slotProps?: ({
|
|
32
|
-
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | undefined;
|
|
33
32
|
size?: "sm" | "md" | "lg" | undefined;
|
|
34
|
-
placement?: "top-
|
|
33
|
+
placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
34
|
+
color?: "default" | "success" | "warning" | "danger" | "primary" | "secondary" | undefined;
|
|
35
35
|
isOneChar?: boolean | undefined;
|
|
36
36
|
isDot?: boolean | undefined;
|
|
37
37
|
noOutline?: boolean | undefined;
|
|
@@ -44,9 +44,9 @@ export declare const badgeVariants: ((props?: ({
|
|
|
44
44
|
})) | undefined) => string;
|
|
45
45
|
} & {
|
|
46
46
|
badge: (slotProps?: ({
|
|
47
|
-
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | undefined;
|
|
48
47
|
size?: "sm" | "md" | "lg" | undefined;
|
|
49
|
-
placement?: "top-
|
|
48
|
+
placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
49
|
+
color?: "default" | "success" | "warning" | "danger" | "primary" | "secondary" | undefined;
|
|
50
50
|
isOneChar?: boolean | undefined;
|
|
51
51
|
isDot?: boolean | undefined;
|
|
52
52
|
noOutline?: boolean | undefined;
|
|
@@ -58,9 +58,9 @@ export declare const badgeVariants: ((props?: ({
|
|
|
58
58
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
59
59
|
})) | undefined) => string;
|
|
60
60
|
base: (slotProps?: ({
|
|
61
|
-
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | undefined;
|
|
62
61
|
size?: "sm" | "md" | "lg" | undefined;
|
|
63
|
-
placement?: "top-
|
|
62
|
+
placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
63
|
+
color?: "default" | "success" | "warning" | "danger" | "primary" | "secondary" | undefined;
|
|
64
64
|
isOneChar?: boolean | undefined;
|
|
65
65
|
isDot?: boolean | undefined;
|
|
66
66
|
noOutline?: boolean | undefined;
|
|
@@ -73,9 +73,9 @@ export declare const badgeVariants: ((props?: ({
|
|
|
73
73
|
})) | undefined) => string;
|
|
74
74
|
} & {}) & {
|
|
75
75
|
extend: ((props?: ({
|
|
76
|
-
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | undefined;
|
|
77
76
|
size?: "sm" | "md" | "lg" | undefined;
|
|
78
|
-
placement?: "top-
|
|
77
|
+
placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
78
|
+
color?: "default" | "success" | "warning" | "danger" | "primary" | "secondary" | undefined;
|
|
79
79
|
isOneChar?: boolean | undefined;
|
|
80
80
|
isDot?: boolean | undefined;
|
|
81
81
|
noOutline?: boolean | undefined;
|
|
@@ -87,9 +87,9 @@ export declare const badgeVariants: ((props?: ({
|
|
|
87
87
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
88
88
|
})) | undefined) => {} & {
|
|
89
89
|
badge: (slotProps?: ({
|
|
90
|
-
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | undefined;
|
|
91
90
|
size?: "sm" | "md" | "lg" | undefined;
|
|
92
|
-
placement?: "top-
|
|
91
|
+
placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
92
|
+
color?: "default" | "success" | "warning" | "danger" | "primary" | "secondary" | undefined;
|
|
93
93
|
isOneChar?: boolean | undefined;
|
|
94
94
|
isDot?: boolean | undefined;
|
|
95
95
|
noOutline?: boolean | undefined;
|
|
@@ -101,9 +101,9 @@ export declare const badgeVariants: ((props?: ({
|
|
|
101
101
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
102
102
|
})) | undefined) => string;
|
|
103
103
|
base: (slotProps?: ({
|
|
104
|
-
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | undefined;
|
|
105
104
|
size?: "sm" | "md" | "lg" | undefined;
|
|
106
|
-
placement?: "top-
|
|
105
|
+
placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
106
|
+
color?: "default" | "success" | "warning" | "danger" | "primary" | "secondary" | undefined;
|
|
107
107
|
isOneChar?: boolean | undefined;
|
|
108
108
|
isDot?: boolean | undefined;
|
|
109
109
|
noOutline?: boolean | undefined;
|
|
@@ -185,17 +185,17 @@ export declare const badgeVariants: ((props?: ({
|
|
|
185
185
|
};
|
|
186
186
|
};
|
|
187
187
|
defaultVariants: {
|
|
188
|
-
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | undefined;
|
|
189
188
|
size?: "sm" | "md" | "lg" | undefined;
|
|
190
|
-
placement?: "top-
|
|
189
|
+
placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
190
|
+
color?: "default" | "success" | "warning" | "danger" | "primary" | "secondary" | undefined;
|
|
191
191
|
isOneChar?: boolean | undefined;
|
|
192
192
|
isDot?: boolean | undefined;
|
|
193
193
|
noOutline?: boolean | undefined;
|
|
194
194
|
};
|
|
195
195
|
compoundVariants: ({
|
|
196
|
-
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | ("primary" | "secondary" | "success" | "warning" | "danger" | "default")[] | undefined;
|
|
197
196
|
size?: "sm" | "md" | "lg" | ("sm" | "md" | "lg")[] | undefined;
|
|
198
|
-
placement?: "top-
|
|
197
|
+
placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | ("top-left" | "top-right" | "bottom-left" | "bottom-right")[] | undefined;
|
|
198
|
+
color?: "default" | "success" | "warning" | "danger" | "primary" | "secondary" | ("default" | "success" | "warning" | "danger" | "primary" | "secondary")[] | undefined;
|
|
199
199
|
isOneChar?: boolean | boolean[] | undefined;
|
|
200
200
|
isDot?: boolean | boolean[] | undefined;
|
|
201
201
|
noOutline?: boolean | boolean[] | undefined;
|
|
@@ -215,11 +215,11 @@ export declare const badgeVariants: ((props?: ({
|
|
|
215
215
|
compoundSlots: ({
|
|
216
216
|
slots: ("base" | "badge")[];
|
|
217
217
|
} & ({
|
|
218
|
-
color?: "
|
|
218
|
+
color?: "default" | "success" | "warning" | "danger" | "primary" | "secondary" | ("default" | "success" | "warning" | "danger" | "primary" | "secondary")[] | undefined;
|
|
219
219
|
isDot?: boolean | boolean[] | undefined;
|
|
220
220
|
isOneChar?: boolean | boolean[] | undefined;
|
|
221
221
|
noOutline?: boolean | boolean[] | undefined;
|
|
222
|
-
placement?: "top-
|
|
222
|
+
placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | ("top-left" | "top-right" | "bottom-left" | "bottom-right")[] | undefined;
|
|
223
223
|
size?: "sm" | "md" | "lg" | ("sm" | "md" | "lg")[] | undefined;
|
|
224
224
|
} & ({
|
|
225
225
|
class?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
@@ -228,7 +228,7 @@ export declare const badgeVariants: ((props?: ({
|
|
|
228
228
|
class?: never;
|
|
229
229
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
230
230
|
})))[];
|
|
231
|
-
variantKeys: ("
|
|
231
|
+
variantKeys: ("size" | "placement" | "color" | "isOneChar" | "isDot" | "noOutline")[];
|
|
232
232
|
};
|
|
233
233
|
base: undefined;
|
|
234
234
|
slots: {
|
|
@@ -299,17 +299,17 @@ export declare const badgeVariants: ((props?: ({
|
|
|
299
299
|
};
|
|
300
300
|
};
|
|
301
301
|
defaultVariants: {
|
|
302
|
-
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | undefined;
|
|
303
302
|
size?: "sm" | "md" | "lg" | undefined;
|
|
304
|
-
placement?: "top-
|
|
303
|
+
placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
304
|
+
color?: "default" | "success" | "warning" | "danger" | "primary" | "secondary" | undefined;
|
|
305
305
|
isOneChar?: boolean | undefined;
|
|
306
306
|
isDot?: boolean | undefined;
|
|
307
307
|
noOutline?: boolean | undefined;
|
|
308
308
|
};
|
|
309
309
|
compoundVariants: ({
|
|
310
|
-
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | ("primary" | "secondary" | "success" | "warning" | "danger" | "default")[] | undefined;
|
|
311
310
|
size?: "sm" | "md" | "lg" | ("sm" | "md" | "lg")[] | undefined;
|
|
312
|
-
placement?: "top-
|
|
311
|
+
placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | ("top-left" | "top-right" | "bottom-left" | "bottom-right")[] | undefined;
|
|
312
|
+
color?: "default" | "success" | "warning" | "danger" | "primary" | "secondary" | ("default" | "success" | "warning" | "danger" | "primary" | "secondary")[] | undefined;
|
|
313
313
|
isOneChar?: boolean | boolean[] | undefined;
|
|
314
314
|
isDot?: boolean | boolean[] | undefined;
|
|
315
315
|
noOutline?: boolean | boolean[] | undefined;
|
|
@@ -329,11 +329,11 @@ export declare const badgeVariants: ((props?: ({
|
|
|
329
329
|
compoundSlots: ({
|
|
330
330
|
slots: ("base" | "badge")[];
|
|
331
331
|
} & ({
|
|
332
|
-
color?: "
|
|
332
|
+
color?: "default" | "success" | "warning" | "danger" | "primary" | "secondary" | ("default" | "success" | "warning" | "danger" | "primary" | "secondary")[] | undefined;
|
|
333
333
|
isDot?: boolean | boolean[] | undefined;
|
|
334
334
|
isOneChar?: boolean | boolean[] | undefined;
|
|
335
335
|
noOutline?: boolean | boolean[] | undefined;
|
|
336
|
-
placement?: "top-
|
|
336
|
+
placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | ("top-left" | "top-right" | "bottom-left" | "bottom-right")[] | undefined;
|
|
337
337
|
size?: "sm" | "md" | "lg" | ("sm" | "md" | "lg")[] | undefined;
|
|
338
338
|
} & ({
|
|
339
339
|
class?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
@@ -342,7 +342,7 @@ export declare const badgeVariants: ((props?: ({
|
|
|
342
342
|
class?: never;
|
|
343
343
|
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
344
344
|
})))[];
|
|
345
|
-
variantKeys: ("
|
|
345
|
+
variantKeys: ("size" | "placement" | "color" | "isOneChar" | "isDot" | "noOutline")[];
|
|
346
346
|
};
|
|
347
347
|
export type VariantProps = TVProps<typeof badgeVariants>;
|
|
348
348
|
export type ClassName = TVClassName<typeof badgeVariants>;
|
|
@@ -4,7 +4,7 @@ import { tv } from "@fuf-stack/pixel-utils";
|
|
|
4
4
|
const badgeVariants = tv({
|
|
5
5
|
slots: {
|
|
6
6
|
/** Badge content positioned over the wrapped element */
|
|
7
|
-
badge: ["font-regular absolute z-10 box-border flex origin-center
|
|
7
|
+
badge: ["font-regular absolute z-10 box-border flex origin-center flex-wrap place-content-center items-center rounded-full whitespace-nowrap subpixel-antialiased select-none", "scale-100 opacity-100 transition-transform-opacity !duration-300 !ease-soft-spring motion-reduce:transition-none"],
|
|
8
8
|
/** Positioning container around the wrapped element */
|
|
9
9
|
base: "relative inline-flex shrink-0"
|
|
10
10
|
},
|
|
@@ -24,9 +24,9 @@ const badgeVariants = tv({
|
|
|
24
24
|
false: { badge: "border-2 border-background" }
|
|
25
25
|
},
|
|
26
26
|
placement: {
|
|
27
|
-
"top-right": { badge: "
|
|
28
|
-
"top-left": { badge: "
|
|
29
|
-
"bottom-right": { badge: "
|
|
27
|
+
"top-right": { badge: "top-[5%] right-[5%] translate-x-1/2 -translate-y-1/2" },
|
|
28
|
+
"top-left": { badge: "top-[5%] left-[5%] -translate-x-1/2 -translate-y-1/2" },
|
|
29
|
+
"bottom-right": { badge: "right-[5%] bottom-[5%] translate-x-1/2 translate-y-1/2" },
|
|
30
30
|
"bottom-left": { badge: "bottom-[5%] left-[5%] -translate-x-1/2 translate-y-1/2" }
|
|
31
31
|
},
|
|
32
32
|
size: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badgeVariants.mjs","names":[],"sources":["../../src/Badge/badgeVariants.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\n\nimport { tv } from '@fuf-stack/pixel-utils';\n\n/** Corner badge surface, outline and content sizing */\nexport const badgeVariants = tv({\n slots: {\n /** Badge content positioned over the wrapped element */\n badge: [\n // centered content inside the floating pill\n 'font-regular absolute z-10 box-border flex origin-center
|
|
1
|
+
{"version":3,"file":"badgeVariants.mjs","names":[],"sources":["../../src/Badge/badgeVariants.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\n\nimport { tv } from '@fuf-stack/pixel-utils';\n\n/** Corner badge surface, outline and content sizing */\nexport const badgeVariants = tv({\n slots: {\n /** Badge content positioned over the wrapped element */\n badge: [\n // centered content inside the floating pill\n 'font-regular absolute z-10 box-border flex origin-center flex-wrap place-content-center items-center rounded-full whitespace-nowrap subpixel-antialiased select-none',\n // retain appearance changes without animating reduced-motion users\n 'scale-100 opacity-100 transition-transform-opacity !duration-300 !ease-soft-spring motion-reduce:transition-none',\n ],\n /** Positioning container around the wrapped element */\n base: 'relative inline-flex shrink-0',\n },\n variants: {\n color: {\n default: { badge: 'bg-default text-default-foreground' },\n primary: { badge: 'bg-primary text-primary-foreground' },\n secondary: { badge: 'bg-secondary text-secondary-foreground' },\n success: { badge: 'bg-success text-success-foreground' },\n warning: { badge: 'bg-warning text-warning-foreground' },\n danger: { badge: 'bg-danger text-danger-foreground' },\n },\n isDot: { true: {} },\n isOneChar: { true: {} },\n noOutline: {\n true: { badge: 'border-0 border-transparent' },\n false: { badge: 'border-2 border-background' },\n },\n placement: {\n 'top-right': {\n badge: 'top-[5%] right-[5%] translate-x-1/2 -translate-y-1/2',\n },\n 'top-left': {\n badge: 'top-[5%] left-[5%] -translate-x-1/2 -translate-y-1/2',\n },\n 'bottom-right': {\n badge: 'right-[5%] bottom-[5%] translate-x-1/2 translate-y-1/2',\n },\n 'bottom-left': {\n badge: 'bottom-[5%] left-[5%] -translate-x-1/2 translate-y-1/2',\n },\n },\n size: {\n sm: { badge: 'px-1 text-tiny' },\n md: { badge: 'px-1 text-small' },\n lg: { badge: 'px-1 text-small' },\n },\n },\n compoundVariants: [\n { isOneChar: true, class: { badge: 'px-0' } },\n // fixed diameters for a single character\n {\n isOneChar: true,\n size: 'sm',\n class: { badge: 'h-4 min-h-4 w-4 min-w-4' },\n },\n {\n isOneChar: true,\n size: 'md',\n class: { badge: 'h-5 min-h-5 w-5 min-w-5' },\n },\n {\n isOneChar: true,\n size: 'lg',\n class: { badge: 'h-6 min-h-6 w-6 min-w-6' },\n },\n // empty strings retain the compact status dot\n { isDot: true, size: 'sm', class: { badge: 'h-3 min-h-3 w-3 min-w-3' } },\n {\n isDot: true,\n size: 'md',\n class: { badge: 'h-3.5 min-h-3.5 w-3.5 min-w-3.5' },\n },\n { isDot: true, size: 'lg', class: { badge: 'h-4 min-h-4 w-4 min-w-4' } },\n ],\n defaultVariants: {\n color: 'default',\n noOutline: false,\n placement: 'top-right',\n size: 'md',\n },\n});\n\nexport type VariantProps = TVProps<typeof badgeVariants>;\n\nexport type ClassName = TVClassName<typeof badgeVariants>;\n\nexport default badgeVariants;\n"],"mappings":";;;AAKA,MAAa,gBAAgB,GAAG;CAC9B,OAAO;;EAEL,OAAO,CAEL,wKAEA,kHACF;;EAEA,MAAM;CACR;CACA,UAAU;EACR,OAAO;GACL,SAAS,EAAE,OAAO,qCAAqC;GACvD,SAAS,EAAE,OAAO,qCAAqC;GACvD,WAAW,EAAE,OAAO,yCAAyC;GAC7D,SAAS,EAAE,OAAO,qCAAqC;GACvD,SAAS,EAAE,OAAO,qCAAqC;GACvD,QAAQ,EAAE,OAAO,mCAAmC;EACtD;EACA,OAAO,EAAE,MAAM,CAAC,EAAE;EAClB,WAAW,EAAE,MAAM,CAAC,EAAE;EACtB,WAAW;GACT,MAAM,EAAE,OAAO,8BAA8B;GAC7C,OAAO,EAAE,OAAO,6BAA6B;EAC/C;EACA,WAAW;GACT,aAAa,EACX,OAAO,uDACT;GACA,YAAY,EACV,OAAO,uDACT;GACA,gBAAgB,EACd,OAAO,yDACT;GACA,eAAe,EACb,OAAO,yDACT;EACF;EACA,MAAM;GACJ,IAAI,EAAE,OAAO,iBAAiB;GAC9B,IAAI,EAAE,OAAO,kBAAkB;GAC/B,IAAI,EAAE,OAAO,kBAAkB;EACjC;CACF;CACA,kBAAkB;EAChB;GAAE,WAAW;GAAM,OAAO,EAAE,OAAO,OAAO;EAAE;EAE5C;GACE,WAAW;GACX,MAAM;GACN,OAAO,EAAE,OAAO,0BAA0B;EAC5C;EACA;GACE,WAAW;GACX,MAAM;GACN,OAAO,EAAE,OAAO,0BAA0B;EAC5C;EACA;GACE,WAAW;GACX,MAAM;GACN,OAAO,EAAE,OAAO,0BAA0B;EAC5C;EAEA;GAAE,OAAO;GAAM,MAAM;GAAM,OAAO,EAAE,OAAO,0BAA0B;EAAE;EACvE;GACE,OAAO;GACP,MAAM;GACN,OAAO,EAAE,OAAO,kCAAkC;EACpD;EACA;GAAE,OAAO;GAAM,MAAM;GAAM,OAAO,EAAE,OAAO,0BAA0B;EAAE;CACzE;CACA,iBAAiB;EACf,OAAO;EACP,WAAW;EACX,WAAW;EACX,MAAM;CACR;AACF,CAAC"}
|