@fuf-stack/pixels 1.11.1 → 1.11.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/dist/Accordion/Accordion.cjs +0 -1
- package/dist/Accordion/Accordion.cjs.map +1 -1
- package/dist/Accordion/Accordion.d.cts +14 -14
- package/dist/Accordion/Accordion.d.cts.map +1 -1
- package/dist/Accordion/Accordion.d.ts +14 -14
- package/dist/Accordion/Accordion.d.ts.map +1 -1
- package/dist/Alert/Alert.cjs +19 -15
- package/dist/Alert/Alert.cjs.map +1 -1
- package/dist/Alert/Alert.d.cts +102 -66
- package/dist/Alert/Alert.d.cts.map +1 -1
- package/dist/Alert/Alert.d.ts +102 -66
- package/dist/Alert/Alert.d.ts.map +1 -1
- package/dist/Alert/Alert.js +19 -14
- package/dist/Alert/Alert.js.map +1 -1
- package/dist/Avatar/Avatar.cjs +0 -1
- package/dist/Avatar/Avatar.cjs.map +1 -1
- package/dist/AvatarGroup/AvatarGroup.cjs +0 -1
- package/dist/AvatarGroup/AvatarGroup.cjs.map +1 -1
- package/dist/Badge/Badge.cjs +0 -1
- package/dist/Badge/Badge.cjs.map +1 -1
- package/dist/Breadcrumb/Breadcrumb.cjs +10 -11
- package/dist/Breadcrumb/Breadcrumb.cjs.map +1 -1
- package/dist/Breadcrumb/Breadcrumb.js +10 -10
- package/dist/Breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/Button/Button.cjs +0 -1
- package/dist/Button/Button.cjs.map +1 -1
- package/dist/Button/subcomponents/LoadingSpinner.cjs +0 -1
- package/dist/Button/subcomponents/LoadingSpinner.cjs.map +1 -1
- package/dist/ButtonGroup/ButtonGroup.cjs +0 -1
- package/dist/ButtonGroup/ButtonGroup.cjs.map +1 -1
- package/dist/Card/Card.cjs +1 -2
- package/dist/Card/Card.cjs.map +1 -1
- package/dist/Card/Card.js +1 -1
- package/dist/Card/Card.js.map +1 -1
- package/dist/Drawer/Drawer.cjs +0 -1
- package/dist/Drawer/Drawer.cjs.map +1 -1
- package/dist/Drawer/Drawer.d.cts +16 -16
- package/dist/Drawer/Drawer.d.ts +16 -16
- package/dist/Json/Json.cjs +30 -23
- package/dist/Json/Json.cjs.map +1 -1
- package/dist/Json/Json.d.cts.map +1 -1
- package/dist/Json/Json.d.ts.map +1 -1
- package/dist/Json/Json.js +30 -22
- package/dist/Json/Json.js.map +1 -1
- package/dist/Json/subcomponents/CopiedRenderer.cjs +3 -4
- package/dist/Json/subcomponents/CopiedRenderer.cjs.map +1 -1
- package/dist/Json/subcomponents/CopiedRenderer.js +3 -3
- package/dist/Json/subcomponents/CopiedRenderer.js.map +1 -1
- package/dist/Json/subcomponents/ErrorRenderer.cjs +0 -1
- package/dist/Json/subcomponents/ErrorRenderer.cjs.map +1 -1
- package/dist/Json/subcomponents/NullRenderer.cjs +0 -1
- package/dist/Json/subcomponents/NullRenderer.cjs.map +1 -1
- package/dist/Label/Label.cjs +0 -1
- package/dist/Label/Label.cjs.map +1 -1
- package/dist/Label/Label.d.cts +52 -52
- package/dist/Label/Label.d.cts.map +1 -1
- package/dist/Label/Label.d.ts +52 -52
- package/dist/Label/Label.d.ts.map +1 -1
- package/dist/Menu/Menu.cjs +1 -2
- package/dist/Menu/Menu.cjs.map +1 -1
- package/dist/Menu/Menu.d.cts +10 -10
- package/dist/Menu/Menu.d.cts.map +1 -1
- package/dist/Menu/Menu.d.ts +10 -10
- package/dist/Menu/Menu.d.ts.map +1 -1
- package/dist/Menu/Menu.js +1 -1
- package/dist/Menu/Menu.js.map +1 -1
- package/dist/Menu/VerticalDotsIcon.cjs +0 -1
- package/dist/Menu/VerticalDotsIcon.cjs.map +1 -1
- package/dist/Modal/Modal.cjs +0 -1
- package/dist/Modal/Modal.cjs.map +1 -1
- package/dist/Modal/Modal.d.cts +10 -10
- package/dist/Modal/Modal.d.cts.map +1 -1
- package/dist/Modal/Modal.d.ts +10 -10
- package/dist/Modal/Modal.d.ts.map +1 -1
- package/dist/Modal/ModalHost.cjs +0 -1
- package/dist/Modal/ModalHost.cjs.map +1 -1
- package/dist/Modal/modalStore.cjs +0 -1
- package/dist/Modal/modalStore.cjs.map +1 -1
- package/dist/Popover/Popover.cjs +1 -2
- package/dist/Popover/Popover.cjs.map +1 -1
- package/dist/Popover/Popover.d.cts +10 -10
- package/dist/Popover/Popover.d.ts +10 -10
- package/dist/Popover/Popover.js +1 -1
- package/dist/Popover/Popover.js.map +1 -1
- package/dist/Progress/Progress.cjs +0 -1
- package/dist/Progress/Progress.cjs.map +1 -1
- package/dist/Progress/Progress.d.cts +32 -32
- package/dist/Progress/Progress.d.cts.map +1 -1
- package/dist/Progress/Progress.d.ts +32 -32
- package/dist/Progress/Progress.d.ts.map +1 -1
- package/dist/ProgressCircular/ProgressCircular.cjs +1 -2
- package/dist/ProgressCircular/ProgressCircular.cjs.map +1 -1
- package/dist/ProgressCircular/ProgressCircular.d.cts +35 -35
- package/dist/ProgressCircular/ProgressCircular.d.cts.map +1 -1
- package/dist/ProgressCircular/ProgressCircular.d.ts +35 -35
- package/dist/ProgressCircular/ProgressCircular.d.ts.map +1 -1
- package/dist/ProgressCircular/ProgressCircular.js +1 -1
- package/dist/ProgressCircular/ProgressCircular.js.map +1 -1
- package/dist/ScrollShadow/ScrollShadow.cjs +0 -1
- package/dist/ScrollShadow/ScrollShadow.cjs.map +1 -1
- package/dist/SearchInput/SearchInput.cjs +8 -9
- package/dist/SearchInput/SearchInput.cjs.map +1 -1
- package/dist/SearchInput/SearchInput.js +8 -8
- package/dist/SearchInput/SearchInput.js.map +1 -1
- package/dist/Table/Table.cjs +0 -1
- package/dist/Table/Table.cjs.map +1 -1
- package/dist/Tabs/Tabs.cjs +0 -1
- package/dist/Tabs/Tabs.cjs.map +1 -1
- package/dist/Toast/Toaster.cjs +0 -1
- package/dist/Toast/Toaster.cjs.map +1 -1
- package/dist/Toast/toast.cjs +2 -3
- package/dist/Toast/toast.cjs.map +1 -1
- package/dist/Toast/toast.d.cts +17 -17
- package/dist/Toast/toast.d.cts.map +1 -1
- package/dist/Toast/toast.d.ts +17 -17
- package/dist/Toast/toast.d.ts.map +1 -1
- package/dist/Toast/toast.js +2 -2
- package/dist/Toast/toast.js.map +1 -1
- package/dist/Tooltip/Tooltip.cjs +6 -7
- package/dist/Tooltip/Tooltip.cjs.map +1 -1
- package/dist/Tooltip/Tooltip.d.cts +6 -6
- package/dist/Tooltip/Tooltip.d.cts.map +1 -1
- package/dist/Tooltip/Tooltip.d.ts +6 -6
- package/dist/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/Tooltip/Tooltip.js +6 -6
- package/dist/Tooltip/Tooltip.js.map +1 -1
- package/dist/hooks/useDebounce/useDebounce.cjs +0 -1
- package/dist/hooks/useDebounce/useDebounce.cjs.map +1 -1
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.cjs +0 -1
- package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.cjs.map +1 -1
- package/dist/hooks/useLocalStorage/useLocalStorage.cjs +0 -1
- package/dist/hooks/useLocalStorage/useLocalStorage.cjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/useIdCompat.cjs +0 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/comps/useIdCompat.cjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/utils/useHighlight.cjs +0 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@uiw/react-json-view/esm/utils/useHighlight.cjs.map +1 -1
- package/package.json +4 -4
|
@@ -4,7 +4,7 @@ import { ReactNode } from "react";
|
|
|
4
4
|
//#region src/ProgressCircular/ProgressCircular.d.ts
|
|
5
5
|
declare const progressCircularVariants: ((props?: ({
|
|
6
6
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
7
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
7
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
8
8
|
hasError?: boolean | undefined;
|
|
9
9
|
isFinished?: boolean | undefined;
|
|
10
10
|
} & ({
|
|
@@ -16,7 +16,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
16
16
|
})) | undefined) => {
|
|
17
17
|
base: (slotProps?: ({
|
|
18
18
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
19
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
19
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
20
20
|
hasError?: boolean | undefined;
|
|
21
21
|
isFinished?: boolean | undefined;
|
|
22
22
|
} & ({
|
|
@@ -28,7 +28,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
28
28
|
})) | undefined) => string;
|
|
29
29
|
indicator: (slotProps?: ({
|
|
30
30
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
31
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
31
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
32
32
|
hasError?: boolean | undefined;
|
|
33
33
|
isFinished?: boolean | undefined;
|
|
34
34
|
} & ({
|
|
@@ -40,7 +40,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
40
40
|
})) | undefined) => string;
|
|
41
41
|
label: (slotProps?: ({
|
|
42
42
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
43
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
43
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
44
44
|
hasError?: boolean | undefined;
|
|
45
45
|
isFinished?: boolean | undefined;
|
|
46
46
|
} & ({
|
|
@@ -52,7 +52,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
52
52
|
})) | undefined) => string;
|
|
53
53
|
svg: (slotProps?: ({
|
|
54
54
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
55
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
55
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
56
56
|
hasError?: boolean | undefined;
|
|
57
57
|
isFinished?: boolean | undefined;
|
|
58
58
|
} & ({
|
|
@@ -64,7 +64,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
64
64
|
})) | undefined) => string;
|
|
65
65
|
svgWrapper: (slotProps?: ({
|
|
66
66
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
67
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
67
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
68
68
|
hasError?: boolean | undefined;
|
|
69
69
|
isFinished?: boolean | undefined;
|
|
70
70
|
} & ({
|
|
@@ -76,7 +76,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
76
76
|
})) | undefined) => string;
|
|
77
77
|
track: (slotProps?: ({
|
|
78
78
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
79
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
79
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
80
80
|
hasError?: boolean | undefined;
|
|
81
81
|
isFinished?: boolean | undefined;
|
|
82
82
|
} & ({
|
|
@@ -88,7 +88,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
88
88
|
})) | undefined) => string;
|
|
89
89
|
value: (slotProps?: ({
|
|
90
90
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
91
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
91
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
92
92
|
hasError?: boolean | undefined;
|
|
93
93
|
isFinished?: boolean | undefined;
|
|
94
94
|
} & ({
|
|
@@ -101,7 +101,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
101
101
|
} & {
|
|
102
102
|
base: (slotProps?: ({
|
|
103
103
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
104
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
104
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
105
105
|
hasError?: boolean | undefined;
|
|
106
106
|
isFinished?: boolean | undefined;
|
|
107
107
|
} & ({
|
|
@@ -113,7 +113,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
113
113
|
})) | undefined) => string;
|
|
114
114
|
indicator: (slotProps?: ({
|
|
115
115
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
116
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
116
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
117
117
|
hasError?: boolean | undefined;
|
|
118
118
|
isFinished?: boolean | undefined;
|
|
119
119
|
} & ({
|
|
@@ -125,7 +125,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
125
125
|
})) | undefined) => string;
|
|
126
126
|
label: (slotProps?: ({
|
|
127
127
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
128
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
128
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
129
129
|
hasError?: boolean | undefined;
|
|
130
130
|
isFinished?: boolean | undefined;
|
|
131
131
|
} & ({
|
|
@@ -137,7 +137,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
137
137
|
})) | undefined) => string;
|
|
138
138
|
svg: (slotProps?: ({
|
|
139
139
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
140
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
140
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
141
141
|
hasError?: boolean | undefined;
|
|
142
142
|
isFinished?: boolean | undefined;
|
|
143
143
|
} & ({
|
|
@@ -149,7 +149,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
149
149
|
})) | undefined) => string;
|
|
150
150
|
svgWrapper: (slotProps?: ({
|
|
151
151
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
152
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
152
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
153
153
|
hasError?: boolean | undefined;
|
|
154
154
|
isFinished?: boolean | undefined;
|
|
155
155
|
} & ({
|
|
@@ -161,7 +161,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
161
161
|
})) | undefined) => string;
|
|
162
162
|
track: (slotProps?: ({
|
|
163
163
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
164
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
164
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
165
165
|
hasError?: boolean | undefined;
|
|
166
166
|
isFinished?: boolean | undefined;
|
|
167
167
|
} & ({
|
|
@@ -173,7 +173,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
173
173
|
})) | undefined) => string;
|
|
174
174
|
value: (slotProps?: ({
|
|
175
175
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
176
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
176
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
177
177
|
hasError?: boolean | undefined;
|
|
178
178
|
isFinished?: boolean | undefined;
|
|
179
179
|
} & ({
|
|
@@ -186,7 +186,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
186
186
|
} & {}) & {
|
|
187
187
|
extend: ((props?: ({
|
|
188
188
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
189
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
189
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
190
190
|
hasError?: boolean | undefined;
|
|
191
191
|
isFinished?: boolean | undefined;
|
|
192
192
|
} & ({
|
|
@@ -198,7 +198,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
198
198
|
})) | undefined) => {} & {
|
|
199
199
|
base: (slotProps?: ({
|
|
200
200
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
201
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
201
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
202
202
|
hasError?: boolean | undefined;
|
|
203
203
|
isFinished?: boolean | undefined;
|
|
204
204
|
} & ({
|
|
@@ -210,7 +210,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
210
210
|
})) | undefined) => string;
|
|
211
211
|
indicator: (slotProps?: ({
|
|
212
212
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
213
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
213
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
214
214
|
hasError?: boolean | undefined;
|
|
215
215
|
isFinished?: boolean | undefined;
|
|
216
216
|
} & ({
|
|
@@ -222,7 +222,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
222
222
|
})) | undefined) => string;
|
|
223
223
|
label: (slotProps?: ({
|
|
224
224
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
225
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
225
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
226
226
|
hasError?: boolean | undefined;
|
|
227
227
|
isFinished?: boolean | undefined;
|
|
228
228
|
} & ({
|
|
@@ -234,7 +234,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
234
234
|
})) | undefined) => string;
|
|
235
235
|
svg: (slotProps?: ({
|
|
236
236
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
237
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
237
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
238
238
|
hasError?: boolean | undefined;
|
|
239
239
|
isFinished?: boolean | undefined;
|
|
240
240
|
} & ({
|
|
@@ -246,7 +246,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
246
246
|
})) | undefined) => string;
|
|
247
247
|
svgWrapper: (slotProps?: ({
|
|
248
248
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
249
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
249
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
250
250
|
hasError?: boolean | undefined;
|
|
251
251
|
isFinished?: boolean | undefined;
|
|
252
252
|
} & ({
|
|
@@ -258,7 +258,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
258
258
|
})) | undefined) => string;
|
|
259
259
|
track: (slotProps?: ({
|
|
260
260
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
261
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
261
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
262
262
|
hasError?: boolean | undefined;
|
|
263
263
|
isFinished?: boolean | undefined;
|
|
264
264
|
} & ({
|
|
@@ -270,7 +270,7 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
270
270
|
})) | undefined) => string;
|
|
271
271
|
value: (slotProps?: ({
|
|
272
272
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
273
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
273
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
274
274
|
hasError?: boolean | undefined;
|
|
275
275
|
isFinished?: boolean | undefined;
|
|
276
276
|
} & ({
|
|
@@ -351,13 +351,13 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
351
351
|
};
|
|
352
352
|
defaultVariants: {
|
|
353
353
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
354
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
354
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
355
355
|
hasError?: boolean | undefined;
|
|
356
356
|
isFinished?: boolean | undefined;
|
|
357
357
|
};
|
|
358
358
|
compoundVariants: ({
|
|
359
359
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | ("sm" | "md" | "lg" | "xs" | "xl")[] | undefined;
|
|
360
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" | "info" |
|
|
360
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | ("info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger")[] | undefined;
|
|
361
361
|
hasError?: boolean | boolean[] | undefined;
|
|
362
362
|
isFinished?: boolean | boolean[] | undefined;
|
|
363
363
|
} & ({
|
|
@@ -366,8 +366,8 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
366
366
|
label?: 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;
|
|
367
367
|
track?: 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;
|
|
368
368
|
svg?: 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;
|
|
369
|
-
indicator?: 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;
|
|
370
369
|
value?: 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;
|
|
370
|
+
indicator?: 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;
|
|
371
371
|
svgWrapper?: 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;
|
|
372
372
|
};
|
|
373
373
|
className?: never;
|
|
@@ -378,15 +378,15 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
378
378
|
label?: 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;
|
|
379
379
|
track?: 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;
|
|
380
380
|
svg?: 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;
|
|
381
|
-
indicator?: 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;
|
|
382
381
|
value?: 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;
|
|
382
|
+
indicator?: 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;
|
|
383
383
|
svgWrapper?: 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;
|
|
384
384
|
};
|
|
385
385
|
}))[];
|
|
386
386
|
compoundSlots: ({
|
|
387
|
-
slots: ("base" | "label" | "track" | "svg" | "
|
|
387
|
+
slots: ("base" | "label" | "track" | "svg" | "value" | "indicator" | "svgWrapper")[];
|
|
388
388
|
} & ({
|
|
389
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" | "info" |
|
|
389
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | ("info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger")[] | undefined;
|
|
390
390
|
hasError?: boolean | boolean[] | undefined;
|
|
391
391
|
isFinished?: boolean | boolean[] | undefined;
|
|
392
392
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | ("sm" | "md" | "lg" | "xs" | "xl")[] | undefined;
|
|
@@ -468,13 +468,13 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
468
468
|
};
|
|
469
469
|
defaultVariants: {
|
|
470
470
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
471
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" |
|
|
471
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
472
472
|
hasError?: boolean | undefined;
|
|
473
473
|
isFinished?: boolean | undefined;
|
|
474
474
|
};
|
|
475
475
|
compoundVariants: ({
|
|
476
476
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | ("sm" | "md" | "lg" | "xs" | "xl")[] | undefined;
|
|
477
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" | "info" |
|
|
477
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | ("info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger")[] | undefined;
|
|
478
478
|
hasError?: boolean | boolean[] | undefined;
|
|
479
479
|
isFinished?: boolean | boolean[] | undefined;
|
|
480
480
|
} & ({
|
|
@@ -483,8 +483,8 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
483
483
|
label?: 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;
|
|
484
484
|
track?: 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;
|
|
485
485
|
svg?: 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;
|
|
486
|
-
indicator?: 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;
|
|
487
486
|
value?: 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;
|
|
487
|
+
indicator?: 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;
|
|
488
488
|
svgWrapper?: 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;
|
|
489
489
|
};
|
|
490
490
|
className?: never;
|
|
@@ -495,15 +495,15 @@ declare const progressCircularVariants: ((props?: ({
|
|
|
495
495
|
label?: 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;
|
|
496
496
|
track?: 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;
|
|
497
497
|
svg?: 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;
|
|
498
|
-
indicator?: 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;
|
|
499
498
|
value?: 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;
|
|
499
|
+
indicator?: 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;
|
|
500
500
|
svgWrapper?: 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;
|
|
501
501
|
};
|
|
502
502
|
}))[];
|
|
503
503
|
compoundSlots: ({
|
|
504
|
-
slots: ("base" | "label" | "track" | "svg" | "
|
|
504
|
+
slots: ("base" | "label" | "track" | "svg" | "value" | "indicator" | "svgWrapper")[];
|
|
505
505
|
} & ({
|
|
506
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" | "info" |
|
|
506
|
+
color?: "info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger" | ("info" | "default" | "primary" | "secondary" | "success" | "warning" | "danger")[] | undefined;
|
|
507
507
|
hasError?: boolean | boolean[] | undefined;
|
|
508
508
|
isFinished?: boolean | boolean[] | undefined;
|
|
509
509
|
size?: "sm" | "md" | "lg" | "xs" | "xl" | ("sm" | "md" | "lg" | "xs" | "xl")[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressCircular.d.ts","names":[],"sources":["../../src/ProgressCircular/ProgressCircular.tsx"],"mappings":";;;;cAaa,wBAAA,IAAwB,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mbA8FX;mbAAA;obAAA;obAAA;kbAAA;wbAAA;
|
|
1
|
+
{"version":3,"file":"ProgressCircular.d.ts","names":[],"sources":["../../src/ProgressCircular/ProgressCircular.tsx"],"mappings":";;;;cAaa,wBAAA,IAAwB,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mbA8FX;mbAAA;obAAA;obAAA;kbAAA;obAAA;wbAAA;ybAAA;IAAA;;;;ubA2EzB;;;;;;;;;;;;;;;;;;;;;;;;;;KA7GI,YAAA,GAAe,OAAO,QAAQ,wBAAA;AAAA,KAC9B,SAAA,GAAY,WAAW,QAAQ,wBAAA;AAAA,UAEnB,qBAAA,SAA8B,YAAA;;EAE7C,SAAA;;EAEA,SAAA,GAAY,SAAA;;EAEZ,KAAA,GAAQ,YAAA;;EAER,gBAAA;;EAEA,oBAAA;;EAEA,MAAA,IAAU,OAAA,cAAqB,SAAA;;EAE/B,QAAA;;EAEA,OAAA;;EAEA,IAAA,GAAO,YAAA;;EAEP,WAAA;AAAA;;;;cAWI,gBAAA;EAAoB,SAAA;EAAA,SAAA;EAAA,MAAA;EAAA,QAAA;EAAA,OAAA;EAAA,gBAAA;EAAA,oBAAA;EAAA,IAAA;EAAA,KAAA;EAAA,WAAA,EAAA;AAAA,GAWvB,qBAAA,iCAAqB,GAAA,CAAA,OAAA"}
|
|
@@ -84,11 +84,11 @@ const ProgressCircular = ({ ariaLabel = "progress", className = void 0, format =
|
|
|
84
84
|
value = /* @__PURE__ */ jsx(FaCheck, { className: "text-success" });
|
|
85
85
|
}
|
|
86
86
|
return /* @__PURE__ */ jsx(CircularProgress, {
|
|
87
|
-
showValueLabel: true,
|
|
88
87
|
"aria-label": ariaLabel,
|
|
89
88
|
classNames,
|
|
90
89
|
color: Object.keys(circularProgress.variants.color).includes(color) ? progressColor : void 0,
|
|
91
90
|
disableAnimation: isInitialRenderCycle || disableAnimation,
|
|
91
|
+
showValueLabel: true,
|
|
92
92
|
strokeWidth,
|
|
93
93
|
value: percent || 0,
|
|
94
94
|
valueLabel: value
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressCircular.js","names":["heroCircularProgressVariants","HeroCircularProgress"],"sources":["../../src/ProgressCircular/ProgressCircular.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { CircularProgressProps as HeroCircularProgressProps } from '@heroui/progress';\nimport type { ReactNode } from 'react';\n\nimport { FaCheck, FaTimes } from 'react-icons/fa';\n\nimport { CircularProgress as HeroCircularProgress } from '@heroui/progress';\nimport { circularProgress as heroCircularProgressVariants } from '@heroui/theme';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { useIsInitialRenderCycle } from '../hooks/useIsInitialRenderCycle';\n\nexport const progressCircularVariants = tv({\n slots: {\n // wrapper around the whole component\n base: '',\n // indicator of the circle (finished part)\n indicator: '',\n // label next to the svgWrapper\n label: '',\n // wrapper for the circle\n svg: '',\n // wrapper around progress svg and value span\n svgWrapper: '',\n // track of the circle (not finished part)\n track: 'stroke-default-300',\n // outer span next to the svg\n value: '',\n },\n variants: {\n color: {\n info: {\n svg: 'text-info',\n },\n // see: https://github.com/heroui-inc/heroui/blob/canary/packages/core/theme/src/components/progress.ts\n ...heroCircularProgressVariants.variants.color,\n },\n hasError: {\n true: {\n svg: 'text-danger',\n },\n },\n isFinished: {\n true: {\n svg: 'text-success',\n },\n },\n size: {\n xs: {\n svg: 'h-10 w-10',\n value: 'text-[0.6rem]',\n },\n sm: {\n svg: 'h-12 w-12',\n value: 'text-xs',\n },\n md: {\n svg: 'h-16 w-16',\n value: 'text-md',\n },\n lg: {\n svg: 'h-20 w-20',\n value: 'text-lg',\n },\n xl: {\n svg: 'h-24 w-24',\n value: 'text-xl',\n },\n },\n },\n});\n\ntype VariantProps = TVProps<typeof progressCircularVariants>;\ntype ClassName = TVClassName<typeof progressCircularVariants>;\n\nexport interface ProgressCircularProps extends VariantProps {\n /** sets HTML aria-label attribute */\n ariaLabel?: string;\n /** CSS class name */\n className?: ClassName;\n /** color options */\n color?: VariantProps['color'];\n /** disables all animations */\n disableAnimation?: boolean;\n /** disables special finished state (checkmark icon and success color) */\n disableFinishedState?: boolean;\n /** formats the display value of the progress in the center */\n format?: (percent?: number) => ReactNode;\n /** enables error version */\n hasError?: boolean;\n /** percentage / progress of the circular progress bar */\n percent: number;\n /** size options */\n size?: VariantProps['size'];\n /** stroke width of the circular progress bar */\n strokeWidth?: number;\n}\n\n/** formats percent with percent sign */\nconst defaultFormat = (percent = 0) => {\n return `${percent}%`;\n};\n\n/**\n * ProgressCircular component based on [HeroUI CircularProgress](https://www.heroui.com/docs/components/circular-progress)\n */\nconst ProgressCircular = ({\n ariaLabel = 'progress',\n className = undefined,\n format = defaultFormat,\n hasError = false,\n percent,\n disableAnimation = false,\n disableFinishedState = false,\n size = 'md',\n color = 'info',\n strokeWidth: strokeWidthProp = undefined,\n}: ProgressCircularProps) => {\n // used to disable animation on initial render cycle\n const isInitialRenderCycle = useIsInitialRenderCycle();\n\n // Apply finished state if percent is 100 or more and not disabled by disableFinishedState\n const isFinished = !hasError && percent >= 100 && !disableFinishedState;\n\n const variants = progressCircularVariants({\n color,\n hasError,\n isFinished,\n size,\n });\n const classNames = variantsToClassNames(variants, className, 'base');\n\n // format value\n let value = format(percent);\n\n let strokeWidth = strokeWidthProp;\n // set strokeWidth based on size prop when no strokeWidth provided\n if (!strokeWidth) {\n switch (size) {\n case 'xs':\n strokeWidth = 2;\n break;\n case 'sm':\n strokeWidth = 1.8;\n break;\n default:\n strokeWidth = 1.6;\n break;\n }\n }\n\n // handle special states\n let progressColor: VariantProps['color'] = color;\n if (hasError) {\n progressColor = 'danger';\n value = <FaTimes className=\"text-danger\" />;\n } else if (isFinished) {\n progressColor = 'success';\n value = <FaCheck className=\"text-success\" />;\n }\n\n // pass only HeroUI colors as props\n const heroUiColor = Object.keys(\n heroCircularProgressVariants.variants.color,\n ).includes(color)\n ? (progressColor as HeroCircularProgressProps['color'])\n : undefined;\n\n return (\n <HeroCircularProgress\n
|
|
1
|
+
{"version":3,"file":"ProgressCircular.js","names":["heroCircularProgressVariants","HeroCircularProgress"],"sources":["../../src/ProgressCircular/ProgressCircular.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { CircularProgressProps as HeroCircularProgressProps } from '@heroui/progress';\nimport type { ReactNode } from 'react';\n\nimport { FaCheck, FaTimes } from 'react-icons/fa';\n\nimport { CircularProgress as HeroCircularProgress } from '@heroui/progress';\nimport { circularProgress as heroCircularProgressVariants } from '@heroui/theme';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { useIsInitialRenderCycle } from '../hooks/useIsInitialRenderCycle';\n\nexport const progressCircularVariants = tv({\n slots: {\n // wrapper around the whole component\n base: '',\n // indicator of the circle (finished part)\n indicator: '',\n // label next to the svgWrapper\n label: '',\n // wrapper for the circle\n svg: '',\n // wrapper around progress svg and value span\n svgWrapper: '',\n // track of the circle (not finished part)\n track: 'stroke-default-300',\n // outer span next to the svg\n value: '',\n },\n variants: {\n color: {\n info: {\n svg: 'text-info',\n },\n // see: https://github.com/heroui-inc/heroui/blob/canary/packages/core/theme/src/components/progress.ts\n ...heroCircularProgressVariants.variants.color,\n },\n hasError: {\n true: {\n svg: 'text-danger',\n },\n },\n isFinished: {\n true: {\n svg: 'text-success',\n },\n },\n size: {\n xs: {\n svg: 'h-10 w-10',\n value: 'text-[0.6rem]',\n },\n sm: {\n svg: 'h-12 w-12',\n value: 'text-xs',\n },\n md: {\n svg: 'h-16 w-16',\n value: 'text-md',\n },\n lg: {\n svg: 'h-20 w-20',\n value: 'text-lg',\n },\n xl: {\n svg: 'h-24 w-24',\n value: 'text-xl',\n },\n },\n },\n});\n\ntype VariantProps = TVProps<typeof progressCircularVariants>;\ntype ClassName = TVClassName<typeof progressCircularVariants>;\n\nexport interface ProgressCircularProps extends VariantProps {\n /** sets HTML aria-label attribute */\n ariaLabel?: string;\n /** CSS class name */\n className?: ClassName;\n /** color options */\n color?: VariantProps['color'];\n /** disables all animations */\n disableAnimation?: boolean;\n /** disables special finished state (checkmark icon and success color) */\n disableFinishedState?: boolean;\n /** formats the display value of the progress in the center */\n format?: (percent?: number) => ReactNode;\n /** enables error version */\n hasError?: boolean;\n /** percentage / progress of the circular progress bar */\n percent: number;\n /** size options */\n size?: VariantProps['size'];\n /** stroke width of the circular progress bar */\n strokeWidth?: number;\n}\n\n/** formats percent with percent sign */\nconst defaultFormat = (percent = 0) => {\n return `${percent}%`;\n};\n\n/**\n * ProgressCircular component based on [HeroUI CircularProgress](https://www.heroui.com/docs/components/circular-progress)\n */\nconst ProgressCircular = ({\n ariaLabel = 'progress',\n className = undefined,\n format = defaultFormat,\n hasError = false,\n percent,\n disableAnimation = false,\n disableFinishedState = false,\n size = 'md',\n color = 'info',\n strokeWidth: strokeWidthProp = undefined,\n}: ProgressCircularProps) => {\n // used to disable animation on initial render cycle\n const isInitialRenderCycle = useIsInitialRenderCycle();\n\n // Apply finished state if percent is 100 or more and not disabled by disableFinishedState\n const isFinished = !hasError && percent >= 100 && !disableFinishedState;\n\n const variants = progressCircularVariants({\n color,\n hasError,\n isFinished,\n size,\n });\n const classNames = variantsToClassNames(variants, className, 'base');\n\n // format value\n let value = format(percent);\n\n let strokeWidth = strokeWidthProp;\n // set strokeWidth based on size prop when no strokeWidth provided\n if (!strokeWidth) {\n switch (size) {\n case 'xs':\n strokeWidth = 2;\n break;\n case 'sm':\n strokeWidth = 1.8;\n break;\n default:\n strokeWidth = 1.6;\n break;\n }\n }\n\n // handle special states\n let progressColor: VariantProps['color'] = color;\n if (hasError) {\n progressColor = 'danger';\n value = <FaTimes className=\"text-danger\" />;\n } else if (isFinished) {\n progressColor = 'success';\n value = <FaCheck className=\"text-success\" />;\n }\n\n // pass only HeroUI colors as props\n const heroUiColor = Object.keys(\n heroCircularProgressVariants.variants.color,\n ).includes(color)\n ? (progressColor as HeroCircularProgressProps['color'])\n : undefined;\n\n return (\n <HeroCircularProgress\n aria-label={ariaLabel}\n classNames={classNames}\n color={heroUiColor}\n disableAnimation={isInitialRenderCycle || disableAnimation}\n showValueLabel\n strokeWidth={strokeWidth}\n // INFO: we do NOT use spinner animation when no percent provided\n value={percent || 0}\n valueLabel={value}\n />\n );\n};\n\nexport default ProgressCircular;\n"],"mappings":";;;;;;;AAaA,MAAa,2BAA2B,GAAG;CACzC,OAAO;EAEL,MAAM;EAEN,WAAW;EAEX,OAAO;EAEP,KAAK;EAEL,YAAY;EAEZ,OAAO;EAEP,OAAO;CACT;CACA,UAAU;EACR,OAAO;GACL,MAAM,EACJ,KAAK,YACP;GAEA,GAAGA,iBAA6B,SAAS;EAC3C;EACA,UAAU,EACR,MAAM,EACJ,KAAK,cACP,EACF;EACA,YAAY,EACV,MAAM,EACJ,KAAK,eACP,EACF;EACA,MAAM;GACJ,IAAI;IACF,KAAK;IACL,OAAO;GACT;GACA,IAAI;IACF,KAAK;IACL,OAAO;GACT;GACA,IAAI;IACF,KAAK;IACL,OAAO;GACT;GACA,IAAI;IACF,KAAK;IACL,OAAO;GACT;GACA,IAAI;IACF,KAAK;IACL,OAAO;GACT;EACF;CACF;AACF,CAAC;;AA6BD,MAAM,iBAAiB,UAAU,MAAM;CACrC,OAAO,GAAG,QAAQ;AACpB;;;;AAKA,MAAM,oBAAoB,EACxB,YAAY,YACZ,YAAY,KAAA,GACZ,SAAS,eACT,WAAW,OACX,SACA,mBAAmB,OACnB,uBAAuB,OACvB,OAAO,MACP,QAAQ,QACR,aAAa,kBAAkB,KAAA,QACJ;CAE3B,MAAM,uBAAuB,wBAAwB;CAGrD,MAAM,aAAa,CAAC,YAAY,WAAW,OAAO,CAAC;CAQnD,MAAM,aAAa,qBANF,yBAAyB;EACxC;EACA;EACA;EACA;CACF,CAC+C,GAAG,WAAW,MAAM;CAGnE,IAAI,QAAQ,OAAO,OAAO;CAE1B,IAAI,cAAc;CAElB,IAAI,CAAC,aACH,QAAQ,MAAR;EACE,KAAK;GACH,cAAc;GACd;EACF,KAAK;GACH,cAAc;GACd;EACF;GACE,cAAc;GACd;CACJ;CAIF,IAAI,gBAAuC;CAC3C,IAAI,UAAU;EACZ,gBAAgB;EAChB,QAAQ,oBAAC,SAAD,EAAS,WAAU,cAAe,CAAA;CAC5C,OAAO,IAAI,YAAY;EACrB,gBAAgB;EAChB,QAAQ,oBAAC,SAAD,EAAS,WAAU,eAAgB,CAAA;CAC7C;CASA,OACE,oBAACC,kBAAD;EACE,cAAY;EACA;EACZ,OAVgB,OAAO,KACzBD,iBAA6B,SAAS,KACxC,EAAE,SAAS,KAAK,IACX,gBACD,KAAA;EAOA,kBAAkB,wBAAwB;EAC1C,gBAAA;EACa;EAEb,OAAO,WAAW;EAClB,YAAY;CACb,CAAA;AAEL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollShadow.cjs","names":["ScrollShadow"],"sources":["../../src/ScrollShadow/ScrollShadow.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport { ScrollShadow } from '@heroui/scroll-shadow';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\nexport interface ScrollShadowProps {\n /** child components */\n children?: ReactNode;\n /** CSS class name */\n className?: string | string[];\n /** Hides the scrollbar */\n hideScrollBar?: boolean;\n /** Orientation of the scroll shadow */\n orientation?: 'horizontal' | 'vertical';\n /** Shadow size in pixels */\n size?: number;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\n/**\n * Scroll Shadow component based on [HeroUI Scroll Shadow](https://www.heroui.com//docs/components/scroll-shadow)\n */\nexport default ({\n children = null,\n className = undefined,\n hideScrollBar = false,\n orientation = 'vertical',\n size = 40,\n testId = undefined,\n}: ScrollShadowProps) => {\n return (\n <ScrollShadow\n className={cn(className)}\n data-testid={testId}\n hideScrollBar={hideScrollBar}\n orientation={orientation}\n size={size}\n >\n {children}\n </ScrollShadow>\n );\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScrollShadow.cjs","names":["ScrollShadow"],"sources":["../../src/ScrollShadow/ScrollShadow.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport { ScrollShadow } from '@heroui/scroll-shadow';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\nexport interface ScrollShadowProps {\n /** child components */\n children?: ReactNode;\n /** CSS class name */\n className?: string | string[];\n /** Hides the scrollbar */\n hideScrollBar?: boolean;\n /** Orientation of the scroll shadow */\n orientation?: 'horizontal' | 'vertical';\n /** Shadow size in pixels */\n size?: number;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\n/**\n * Scroll Shadow component based on [HeroUI Scroll Shadow](https://www.heroui.com//docs/components/scroll-shadow)\n */\nexport default ({\n children = null,\n className = undefined,\n hideScrollBar = false,\n orientation = 'vertical',\n size = 40,\n testId = undefined,\n}: ScrollShadowProps) => {\n return (\n <ScrollShadow\n className={cn(className)}\n data-testid={testId}\n hideScrollBar={hideScrollBar}\n orientation={orientation}\n size={size}\n >\n {children}\n </ScrollShadow>\n );\n};\n"],"mappings":";;;;;;;AAwBA,IAAA,wBAAgB,EACd,WAAW,MACX,YAAY,KAAA,GACZ,gBAAgB,OAChB,cAAc,YACd,OAAO,IACP,SAAS,KAAA,QACc;CACvB,OACE,iBAAA,GAAA,kBAAA,KAACA,sBAAAA,cAAD;EACE,YAAA,GAAA,uBAAA,IAAc,SAAS;EACvB,eAAa;EACE;EACF;EACP;EAEL;CACW,CAAA;AAElB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
require("../_virtual/_rolldown/runtime.cjs");
|
|
2
1
|
let _fuf_stack_pixel_utils = require("@fuf-stack/pixel-utils");
|
|
3
2
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
3
|
let react = require("react");
|
|
@@ -26,10 +25,16 @@ const SearchInput = ({ className: _className = void 0, disabled = false, endCont
|
|
|
26
25
|
};
|
|
27
26
|
const classNames = (0, _fuf_stack_pixel_utils.variantsToClassNames)(inputVariants(), _className, "base");
|
|
28
27
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_heroui_input.Input, {
|
|
29
|
-
isClearable: true,
|
|
30
28
|
autoComplete: "off",
|
|
29
|
+
classNames: {
|
|
30
|
+
base: classNames.base,
|
|
31
|
+
clearButton: classNames.clearButton,
|
|
32
|
+
input: classNames.input,
|
|
33
|
+
inputWrapper: classNames.inputWrapper
|
|
34
|
+
},
|
|
31
35
|
"data-testid": testId ? (0, _fuf_stack_pixel_utils.slugify)(testId) : void 0,
|
|
32
36
|
endContent,
|
|
37
|
+
isClearable: true,
|
|
33
38
|
isDisabled: disabled,
|
|
34
39
|
onChange: handleChange,
|
|
35
40
|
onClear: handleChange,
|
|
@@ -38,13 +43,7 @@ const SearchInput = ({ className: _className = void 0, disabled = false, endCont
|
|
|
38
43
|
size,
|
|
39
44
|
startContent: startContent ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_icons_fa.FaSearch, { className: "opacity-50" }),
|
|
40
45
|
value,
|
|
41
|
-
variant: "bordered"
|
|
42
|
-
classNames: {
|
|
43
|
-
base: classNames.base,
|
|
44
|
-
clearButton: classNames.clearButton,
|
|
45
|
-
input: classNames.input,
|
|
46
|
-
inputWrapper: classNames.inputWrapper
|
|
47
|
-
}
|
|
46
|
+
variant: "bordered"
|
|
48
47
|
});
|
|
49
48
|
};
|
|
50
49
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchInput.cjs","names":["HeroInput","FaSearch"],"sources":["../../src/SearchInput/SearchInput.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ChangeEvent, ReactNode } from 'react';\n\nimport { useState } from 'react';\nimport { FaSearch } from 'react-icons/fa';\n\nimport { Input as HeroInput } from '@heroui/input';\n\nimport { slugify, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// input variants\nexport const inputVariants = tv({\n slots: {\n /** wrapper around the whole input */\n base: '',\n /** clear button */\n clearButton: '',\n /** actual input element */\n input: '',\n /** inner wrapper (HeroUI inputWrapper slot) */\n inputWrapper: 'bg-content1 group-data-[focus=true]:border-focus',\n },\n});\n\ntype VariantProps = TVProps<typeof inputVariants>;\ntype ClassName = TVClassName<typeof inputVariants>;\n\nexport interface SearchInputProps extends VariantProps {\n /** CSS class name */\n className?: ClassName;\n /** input field is disabled */\n disabled?: boolean;\n /** added content to the end of the input Field. */\n endContent?: ReactNode;\n /** optional initial value of the input */\n initialValue?: string;\n /** callback that is fired when the value is changed or cleared */\n onChange: (value: string | null) => void;\n /** form field placeholder */\n placeholder?: string;\n /** size of the input */\n size?: 'sm' | 'md' | 'lg';\n /** content added to the start of the input field */\n startContent?: ReactNode;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\n/**\n * SearchInput component based on [HeroUI Input](https://www.heroui.com//docs/components/input)\n */\nconst SearchInput = ({\n className: _className = undefined,\n disabled = false,\n endContent = undefined,\n onChange,\n placeholder = undefined,\n size = undefined,\n startContent = undefined,\n testId = undefined,\n initialValue = undefined,\n}: SearchInputProps) => {\n // handle controlled value with initial value\n const [value, setValue] = useState(initialValue ?? '');\n\n const handleChange = (e?: ChangeEvent<HTMLInputElement>) => {\n setValue(e?.target?.value ?? '');\n onChange(e?.target?.value ?? null);\n };\n\n // classNames from slots\n const variants = inputVariants();\n const classNames = variantsToClassNames(variants, _className, 'base');\n\n return (\n <HeroInput\n
|
|
1
|
+
{"version":3,"file":"SearchInput.cjs","names":["HeroInput","FaSearch"],"sources":["../../src/SearchInput/SearchInput.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ChangeEvent, ReactNode } from 'react';\n\nimport { useState } from 'react';\nimport { FaSearch } from 'react-icons/fa';\n\nimport { Input as HeroInput } from '@heroui/input';\n\nimport { slugify, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// input variants\nexport const inputVariants = tv({\n slots: {\n /** wrapper around the whole input */\n base: '',\n /** clear button */\n clearButton: '',\n /** actual input element */\n input: '',\n /** inner wrapper (HeroUI inputWrapper slot) */\n inputWrapper: 'bg-content1 group-data-[focus=true]:border-focus',\n },\n});\n\ntype VariantProps = TVProps<typeof inputVariants>;\ntype ClassName = TVClassName<typeof inputVariants>;\n\nexport interface SearchInputProps extends VariantProps {\n /** CSS class name */\n className?: ClassName;\n /** input field is disabled */\n disabled?: boolean;\n /** added content to the end of the input Field. */\n endContent?: ReactNode;\n /** optional initial value of the input */\n initialValue?: string;\n /** callback that is fired when the value is changed or cleared */\n onChange: (value: string | null) => void;\n /** form field placeholder */\n placeholder?: string;\n /** size of the input */\n size?: 'sm' | 'md' | 'lg';\n /** content added to the start of the input field */\n startContent?: ReactNode;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\n/**\n * SearchInput component based on [HeroUI Input](https://www.heroui.com//docs/components/input)\n */\nconst SearchInput = ({\n className: _className = undefined,\n disabled = false,\n endContent = undefined,\n onChange,\n placeholder = undefined,\n size = undefined,\n startContent = undefined,\n testId = undefined,\n initialValue = undefined,\n}: SearchInputProps) => {\n // handle controlled value with initial value\n const [value, setValue] = useState(initialValue ?? '');\n\n const handleChange = (e?: ChangeEvent<HTMLInputElement>) => {\n setValue(e?.target?.value ?? '');\n onChange(e?.target?.value ?? null);\n };\n\n // classNames from slots\n const variants = inputVariants();\n const classNames = variantsToClassNames(variants, _className, 'base');\n\n return (\n <HeroInput\n // disable password manager integrations\n autoComplete=\"off\"\n classNames={{\n base: classNames.base,\n clearButton: classNames.clearButton,\n input: classNames.input,\n inputWrapper: classNames.inputWrapper,\n }}\n data-testid={testId ? slugify(testId) : undefined}\n endContent={endContent}\n isClearable\n isDisabled={disabled}\n onChange={handleChange}\n onClear={handleChange}\n placeholder={placeholder}\n radius=\"sm\"\n size={size}\n startContent={startContent ?? <FaSearch className=\"opacity-50\" />}\n value={value}\n variant=\"bordered\"\n />\n );\n};\n\nexport default SearchInput;\n"],"mappings":";;;;;;AAWA,MAAa,iBAAA,GAAA,uBAAA,IAAmB,EAC9B,OAAO;;CAEL,MAAM;;CAEN,aAAa;;CAEb,OAAO;;CAEP,cAAc;AAChB,EACF,CAAC;;;;AA6BD,MAAM,eAAe,EACnB,WAAW,aAAa,KAAA,GACxB,WAAW,OACX,aAAa,KAAA,GACb,UACA,cAAc,KAAA,GACd,OAAO,KAAA,GACP,eAAe,KAAA,GACf,SAAS,KAAA,GACT,eAAe,KAAA,QACO;CAEtB,MAAM,CAAC,OAAO,aAAA,GAAA,MAAA,UAAqB,gBAAgB,EAAE;CAErD,MAAM,gBAAgB,MAAsC;EAC1D,SAAS,GAAG,QAAQ,SAAS,EAAE;EAC/B,SAAS,GAAG,QAAQ,SAAS,IAAI;CACnC;CAIA,MAAM,cAAA,GAAA,uBAAA,sBADW,cAC8B,GAAG,YAAY,MAAM;CAEpE,OACE,iBAAA,GAAA,kBAAA,KAACA,cAAAA,OAAD;EAEE,cAAa;EACb,YAAY;GACV,MAAM,WAAW;GACjB,aAAa,WAAW;GACxB,OAAO,WAAW;GAClB,cAAc,WAAW;EAC3B;EACA,eAAa,UAAA,GAAA,uBAAA,SAAiB,MAAM,IAAI,KAAA;EAC5B;EACZ,aAAA;EACA,YAAY;EACZ,UAAU;EACV,SAAS;EACI;EACb,QAAO;EACD;EACN,cAAc,gBAAgB,iBAAA,GAAA,kBAAA,KAACC,eAAAA,UAAD,EAAU,WAAU,aAAc,CAAA;EACzD;EACP,SAAQ;CACT,CAAA;AAEL"}
|
|
@@ -25,10 +25,16 @@ const SearchInput = ({ className: _className = void 0, disabled = false, endCont
|
|
|
25
25
|
};
|
|
26
26
|
const classNames = variantsToClassNames(inputVariants(), _className, "base");
|
|
27
27
|
return /* @__PURE__ */ jsx(Input, {
|
|
28
|
-
isClearable: true,
|
|
29
28
|
autoComplete: "off",
|
|
29
|
+
classNames: {
|
|
30
|
+
base: classNames.base,
|
|
31
|
+
clearButton: classNames.clearButton,
|
|
32
|
+
input: classNames.input,
|
|
33
|
+
inputWrapper: classNames.inputWrapper
|
|
34
|
+
},
|
|
30
35
|
"data-testid": testId ? slugify(testId) : void 0,
|
|
31
36
|
endContent,
|
|
37
|
+
isClearable: true,
|
|
32
38
|
isDisabled: disabled,
|
|
33
39
|
onChange: handleChange,
|
|
34
40
|
onClear: handleChange,
|
|
@@ -37,13 +43,7 @@ const SearchInput = ({ className: _className = void 0, disabled = false, endCont
|
|
|
37
43
|
size,
|
|
38
44
|
startContent: startContent ?? /* @__PURE__ */ jsx(FaSearch, { className: "opacity-50" }),
|
|
39
45
|
value,
|
|
40
|
-
variant: "bordered"
|
|
41
|
-
classNames: {
|
|
42
|
-
base: classNames.base,
|
|
43
|
-
clearButton: classNames.clearButton,
|
|
44
|
-
input: classNames.input,
|
|
45
|
-
inputWrapper: classNames.inputWrapper
|
|
46
|
-
}
|
|
46
|
+
variant: "bordered"
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
49
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchInput.js","names":["HeroInput"],"sources":["../../src/SearchInput/SearchInput.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ChangeEvent, ReactNode } from 'react';\n\nimport { useState } from 'react';\nimport { FaSearch } from 'react-icons/fa';\n\nimport { Input as HeroInput } from '@heroui/input';\n\nimport { slugify, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// input variants\nexport const inputVariants = tv({\n slots: {\n /** wrapper around the whole input */\n base: '',\n /** clear button */\n clearButton: '',\n /** actual input element */\n input: '',\n /** inner wrapper (HeroUI inputWrapper slot) */\n inputWrapper: 'bg-content1 group-data-[focus=true]:border-focus',\n },\n});\n\ntype VariantProps = TVProps<typeof inputVariants>;\ntype ClassName = TVClassName<typeof inputVariants>;\n\nexport interface SearchInputProps extends VariantProps {\n /** CSS class name */\n className?: ClassName;\n /** input field is disabled */\n disabled?: boolean;\n /** added content to the end of the input Field. */\n endContent?: ReactNode;\n /** optional initial value of the input */\n initialValue?: string;\n /** callback that is fired when the value is changed or cleared */\n onChange: (value: string | null) => void;\n /** form field placeholder */\n placeholder?: string;\n /** size of the input */\n size?: 'sm' | 'md' | 'lg';\n /** content added to the start of the input field */\n startContent?: ReactNode;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\n/**\n * SearchInput component based on [HeroUI Input](https://www.heroui.com//docs/components/input)\n */\nconst SearchInput = ({\n className: _className = undefined,\n disabled = false,\n endContent = undefined,\n onChange,\n placeholder = undefined,\n size = undefined,\n startContent = undefined,\n testId = undefined,\n initialValue = undefined,\n}: SearchInputProps) => {\n // handle controlled value with initial value\n const [value, setValue] = useState(initialValue ?? '');\n\n const handleChange = (e?: ChangeEvent<HTMLInputElement>) => {\n setValue(e?.target?.value ?? '');\n onChange(e?.target?.value ?? null);\n };\n\n // classNames from slots\n const variants = inputVariants();\n const classNames = variantsToClassNames(variants, _className, 'base');\n\n return (\n <HeroInput\n
|
|
1
|
+
{"version":3,"file":"SearchInput.js","names":["HeroInput"],"sources":["../../src/SearchInput/SearchInput.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ChangeEvent, ReactNode } from 'react';\n\nimport { useState } from 'react';\nimport { FaSearch } from 'react-icons/fa';\n\nimport { Input as HeroInput } from '@heroui/input';\n\nimport { slugify, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// input variants\nexport const inputVariants = tv({\n slots: {\n /** wrapper around the whole input */\n base: '',\n /** clear button */\n clearButton: '',\n /** actual input element */\n input: '',\n /** inner wrapper (HeroUI inputWrapper slot) */\n inputWrapper: 'bg-content1 group-data-[focus=true]:border-focus',\n },\n});\n\ntype VariantProps = TVProps<typeof inputVariants>;\ntype ClassName = TVClassName<typeof inputVariants>;\n\nexport interface SearchInputProps extends VariantProps {\n /** CSS class name */\n className?: ClassName;\n /** input field is disabled */\n disabled?: boolean;\n /** added content to the end of the input Field. */\n endContent?: ReactNode;\n /** optional initial value of the input */\n initialValue?: string;\n /** callback that is fired when the value is changed or cleared */\n onChange: (value: string | null) => void;\n /** form field placeholder */\n placeholder?: string;\n /** size of the input */\n size?: 'sm' | 'md' | 'lg';\n /** content added to the start of the input field */\n startContent?: ReactNode;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\n/**\n * SearchInput component based on [HeroUI Input](https://www.heroui.com//docs/components/input)\n */\nconst SearchInput = ({\n className: _className = undefined,\n disabled = false,\n endContent = undefined,\n onChange,\n placeholder = undefined,\n size = undefined,\n startContent = undefined,\n testId = undefined,\n initialValue = undefined,\n}: SearchInputProps) => {\n // handle controlled value with initial value\n const [value, setValue] = useState(initialValue ?? '');\n\n const handleChange = (e?: ChangeEvent<HTMLInputElement>) => {\n setValue(e?.target?.value ?? '');\n onChange(e?.target?.value ?? null);\n };\n\n // classNames from slots\n const variants = inputVariants();\n const classNames = variantsToClassNames(variants, _className, 'base');\n\n return (\n <HeroInput\n // disable password manager integrations\n autoComplete=\"off\"\n classNames={{\n base: classNames.base,\n clearButton: classNames.clearButton,\n input: classNames.input,\n inputWrapper: classNames.inputWrapper,\n }}\n data-testid={testId ? slugify(testId) : undefined}\n endContent={endContent}\n isClearable\n isDisabled={disabled}\n onChange={handleChange}\n onClear={handleChange}\n placeholder={placeholder}\n radius=\"sm\"\n size={size}\n startContent={startContent ?? <FaSearch className=\"opacity-50\" />}\n value={value}\n variant=\"bordered\"\n />\n );\n};\n\nexport default SearchInput;\n"],"mappings":";;;;;;AAWA,MAAa,gBAAgB,GAAG,EAC9B,OAAO;;CAEL,MAAM;;CAEN,aAAa;;CAEb,OAAO;;CAEP,cAAc;AAChB,EACF,CAAC;;;;AA6BD,MAAM,eAAe,EACnB,WAAW,aAAa,KAAA,GACxB,WAAW,OACX,aAAa,KAAA,GACb,UACA,cAAc,KAAA,GACd,OAAO,KAAA,GACP,eAAe,KAAA,GACf,SAAS,KAAA,GACT,eAAe,KAAA,QACO;CAEtB,MAAM,CAAC,OAAO,YAAY,SAAS,gBAAgB,EAAE;CAErD,MAAM,gBAAgB,MAAsC;EAC1D,SAAS,GAAG,QAAQ,SAAS,EAAE;EAC/B,SAAS,GAAG,QAAQ,SAAS,IAAI;CACnC;CAIA,MAAM,aAAa,qBADF,cAC8B,GAAG,YAAY,MAAM;CAEpE,OACE,oBAACA,OAAD;EAEE,cAAa;EACb,YAAY;GACV,MAAM,WAAW;GACjB,aAAa,WAAW;GACxB,OAAO,WAAW;GAClB,cAAc,WAAW;EAC3B;EACA,eAAa,SAAS,QAAQ,MAAM,IAAI,KAAA;EAC5B;EACZ,aAAA;EACA,YAAY;EACZ,UAAU;EACV,SAAS;EACI;EACb,QAAO;EACD;EACN,cAAc,gBAAgB,oBAAC,UAAD,EAAU,WAAU,aAAc,CAAA;EACzD;EACP,SAAQ;CACT,CAAA;AAEL"}
|
package/dist/Table/Table.cjs
CHANGED
package/dist/Table/Table.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.cjs","names":["HeroTable","TableHeader","TableColumn","TableBody","TableRow","TableCell"],"sources":["../../src/Table/Table.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactNode } from 'react';\n\nimport {\n getKeyValue,\n Table as HeroTable,\n TableBody,\n TableCell,\n TableColumn,\n TableHeader,\n TableRow,\n} from '@heroui/table';\n\nimport { slugify, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// table styling variants\nexport const tableVariants = tv({\n slots: {\n base: '',\n wrapper: '',\n table: '',\n thead: '',\n tbody: '',\n tr: '',\n th: 'bg-content2',\n td: '',\n tfoot: '',\n sortIcon: '',\n emptyWrapper: '',\n loadingWrapper: '',\n },\n variants: {\n separation: {\n divider: {\n tr: 'divide-x rounded-lg border-b data-[last=true]:border-none [&:first-child:not([data-first=\"true\"])]:border-none',\n },\n 'divider-x': {\n tr: 'divide-x',\n },\n 'divider-y': {\n tr: 'rounded-lg border-b data-[last=true]:border-none [&:first-child:not([data-first=\"true\"])]:border-none',\n },\n 'striped-divider-x': {\n tr: 'divide-x',\n th: 'border-divider',\n td: 'border-divider first:rounded-s-lg last:rounded-e-lg group-data-[odd=true]:bg-content2',\n },\n striped: {\n tr: '',\n td: 'first:rounded-s-lg last:rounded-e-lg group-data-[odd=true]:bg-content2',\n },\n none: {},\n },\n },\n});\n\nexport type VariantProps = TVProps<typeof tableVariants>;\ntype ClassName = TVClassName<typeof tableVariants>;\n\nexport interface TableColumnProps {\n key: string;\n label: ReactNode;\n}\n\nexport interface TableRowProps {\n key: string | number;\n [key: string | number]: ReactNode;\n}\n\nexport interface TableProps extends VariantProps {\n /** Aria label for the Table. */\n ariaLabel?: string;\n /** Component to display at the bottom of the Table. */\n bottomContent?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** Objects with table data */\n columns: TableColumnProps[];\n /** Component to display if there are no rows! */\n emptyContent?: ReactNode;\n /** Determine if the Table should have a card like wrapper. */\n hasWrapper?: boolean;\n /** remove header */\n hideHeader?: boolean;\n /** Tells the Table to show the loading component. */\n loading?: boolean;\n /** Loading animation component. */\n loadingContent?: ReactNode;\n /** The maximum height of the table in pixels. Required when using virtualization. */\n maxTableHeight?: number;\n /** The fixed height of each row item in pixels. Required when using virtualization. */\n rowHeight?: number;\n /** Items displayed as rows in the Table. Should have key-value pair for each column. */\n rows?: TableRowProps[];\n /** Separation style for the rows & columns. */\n separation?:\n | 'none'\n | 'striped'\n | 'striped-divider-x'\n | 'divider-x'\n | 'divider-y'\n | 'divider';\n /** Keeps the header of the Table in view while scrolling a height limited Table. */\n stickyHeader?: boolean;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** Virtualize allows efficient rendering of large lists by only rendering items that are visible in the viewport. */\n virtualized?: boolean;\n}\n\n/**\n * Table component based on [HeroUI Table](https://www.heroui.com//docs/components/table)\n */\nconst Table = ({\n ariaLabel = undefined,\n bottomContent = undefined,\n className = undefined,\n columns,\n emptyContent = 'No rows to display.',\n hasWrapper = false,\n hideHeader = false,\n loading = false,\n loadingContent = undefined,\n maxTableHeight = undefined,\n rowHeight = undefined,\n rows = [],\n separation = 'none',\n stickyHeader = false,\n testId = undefined,\n virtualized = false,\n}: TableProps) => {\n const variants = tableVariants({ separation });\n const classNames = variantsToClassNames(variants, className, 'base');\n\n return (\n <HeroTable\n aria-label={ariaLabel}\n bottomContent={bottomContent}\n classNames={classNames}\n data-testid={testId ? slugify(testId) : null}\n hideHeader={hideHeader}\n isHeaderSticky={stickyHeader}\n isStriped={separation === 'striped' || separation === 'striped-divider-x'}\n isVirtualized={virtualized}\n maxTableHeight={maxTableHeight}\n removeWrapper={virtualized ? false : !hasWrapper} // always show wrapper if virtualized\n rowHeight={rowHeight}\n >\n <TableHeader columns={columns}>\n {(column: TableColumnProps) => {\n return <TableColumn key={column.key}>{column.label}</TableColumn>;\n }}\n </TableHeader>\n <TableBody\n emptyContent={emptyContent}\n isLoading={loading}\n items={rows}\n loadingContent={loadingContent ?? '...'} // TODO: use future spinner/loading component\n >\n {(item: TableRowProps) => {\n return (\n <TableRow\n key={item.key}\n // data-testid={`${slugify(testId || 'table')}_item_${slugify(JSON.stringify(item.testId || item.key))}`}\n >\n {(columnKey) => {\n return <TableCell>{getKeyValue(item, columnKey)}</TableCell>;\n }}\n </TableRow>\n );\n }}\n </TableBody>\n </HeroTable>\n );\n};\n\nexport default Table;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Table.cjs","names":["HeroTable","TableHeader","TableColumn","TableBody","TableRow","TableCell"],"sources":["../../src/Table/Table.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactNode } from 'react';\n\nimport {\n getKeyValue,\n Table as HeroTable,\n TableBody,\n TableCell,\n TableColumn,\n TableHeader,\n TableRow,\n} from '@heroui/table';\n\nimport { slugify, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// table styling variants\nexport const tableVariants = tv({\n slots: {\n base: '',\n wrapper: '',\n table: '',\n thead: '',\n tbody: '',\n tr: '',\n th: 'bg-content2',\n td: '',\n tfoot: '',\n sortIcon: '',\n emptyWrapper: '',\n loadingWrapper: '',\n },\n variants: {\n separation: {\n divider: {\n tr: 'divide-x rounded-lg border-b data-[last=true]:border-none [&:first-child:not([data-first=\"true\"])]:border-none',\n },\n 'divider-x': {\n tr: 'divide-x',\n },\n 'divider-y': {\n tr: 'rounded-lg border-b data-[last=true]:border-none [&:first-child:not([data-first=\"true\"])]:border-none',\n },\n 'striped-divider-x': {\n tr: 'divide-x',\n th: 'border-divider',\n td: 'border-divider first:rounded-s-lg last:rounded-e-lg group-data-[odd=true]:bg-content2',\n },\n striped: {\n tr: '',\n td: 'first:rounded-s-lg last:rounded-e-lg group-data-[odd=true]:bg-content2',\n },\n none: {},\n },\n },\n});\n\nexport type VariantProps = TVProps<typeof tableVariants>;\ntype ClassName = TVClassName<typeof tableVariants>;\n\nexport interface TableColumnProps {\n key: string;\n label: ReactNode;\n}\n\nexport interface TableRowProps {\n key: string | number;\n [key: string | number]: ReactNode;\n}\n\nexport interface TableProps extends VariantProps {\n /** Aria label for the Table. */\n ariaLabel?: string;\n /** Component to display at the bottom of the Table. */\n bottomContent?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** Objects with table data */\n columns: TableColumnProps[];\n /** Component to display if there are no rows! */\n emptyContent?: ReactNode;\n /** Determine if the Table should have a card like wrapper. */\n hasWrapper?: boolean;\n /** remove header */\n hideHeader?: boolean;\n /** Tells the Table to show the loading component. */\n loading?: boolean;\n /** Loading animation component. */\n loadingContent?: ReactNode;\n /** The maximum height of the table in pixels. Required when using virtualization. */\n maxTableHeight?: number;\n /** The fixed height of each row item in pixels. Required when using virtualization. */\n rowHeight?: number;\n /** Items displayed as rows in the Table. Should have key-value pair for each column. */\n rows?: TableRowProps[];\n /** Separation style for the rows & columns. */\n separation?:\n | 'none'\n | 'striped'\n | 'striped-divider-x'\n | 'divider-x'\n | 'divider-y'\n | 'divider';\n /** Keeps the header of the Table in view while scrolling a height limited Table. */\n stickyHeader?: boolean;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** Virtualize allows efficient rendering of large lists by only rendering items that are visible in the viewport. */\n virtualized?: boolean;\n}\n\n/**\n * Table component based on [HeroUI Table](https://www.heroui.com//docs/components/table)\n */\nconst Table = ({\n ariaLabel = undefined,\n bottomContent = undefined,\n className = undefined,\n columns,\n emptyContent = 'No rows to display.',\n hasWrapper = false,\n hideHeader = false,\n loading = false,\n loadingContent = undefined,\n maxTableHeight = undefined,\n rowHeight = undefined,\n rows = [],\n separation = 'none',\n stickyHeader = false,\n testId = undefined,\n virtualized = false,\n}: TableProps) => {\n const variants = tableVariants({ separation });\n const classNames = variantsToClassNames(variants, className, 'base');\n\n return (\n <HeroTable\n aria-label={ariaLabel}\n bottomContent={bottomContent}\n classNames={classNames}\n data-testid={testId ? slugify(testId) : null}\n hideHeader={hideHeader}\n isHeaderSticky={stickyHeader}\n isStriped={separation === 'striped' || separation === 'striped-divider-x'}\n isVirtualized={virtualized}\n maxTableHeight={maxTableHeight}\n removeWrapper={virtualized ? false : !hasWrapper} // always show wrapper if virtualized\n rowHeight={rowHeight}\n >\n <TableHeader columns={columns}>\n {(column: TableColumnProps) => {\n return <TableColumn key={column.key}>{column.label}</TableColumn>;\n }}\n </TableHeader>\n <TableBody\n emptyContent={emptyContent}\n isLoading={loading}\n items={rows}\n loadingContent={loadingContent ?? '...'} // TODO: use future spinner/loading component\n >\n {(item: TableRowProps) => {\n return (\n <TableRow\n key={item.key}\n // data-testid={`${slugify(testId || 'table')}_item_${slugify(JSON.stringify(item.testId || item.key))}`}\n >\n {(columnKey) => {\n return <TableCell>{getKeyValue(item, columnKey)}</TableCell>;\n }}\n </TableRow>\n );\n }}\n </TableBody>\n </HeroTable>\n );\n};\n\nexport default Table;\n"],"mappings":";;;;AAgBA,MAAa,iBAAA,GAAA,uBAAA,IAAmB;CAC9B,OAAO;EACL,MAAM;EACN,SAAS;EACT,OAAO;EACP,OAAO;EACP,OAAO;EACP,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,OAAO;EACP,UAAU;EACV,cAAc;EACd,gBAAgB;CAClB;CACA,UAAU,EACR,YAAY;EACV,SAAS,EACP,IAAI,mHACN;EACA,aAAa,EACX,IAAI,WACN;EACA,aAAa,EACX,IAAI,0GACN;EACA,qBAAqB;GACnB,IAAI;GACJ,IAAI;GACJ,IAAI;EACN;EACA,SAAS;GACP,IAAI;GACJ,IAAI;EACN;EACA,MAAM,CAAC;CACT,EACF;AACF,CAAC;;;;AA2DD,MAAM,SAAS,EACb,YAAY,KAAA,GACZ,gBAAgB,KAAA,GAChB,YAAY,KAAA,GACZ,SACA,eAAe,uBACf,aAAa,OACb,aAAa,OACb,UAAU,OACV,iBAAiB,KAAA,GACjB,iBAAiB,KAAA,GACjB,YAAY,KAAA,GACZ,OAAO,CAAC,GACR,aAAa,QACb,eAAe,OACf,SAAS,KAAA,GACT,cAAc,YACE;CAIhB,OACE,iBAAA,GAAA,kBAAA,MAACA,cAAAA,OAAD;EACE,cAAY;EACG;EACf,aAAA,GAAA,uBAAA,sBAPa,cAAc,EAAE,WAAW,CACG,GAAG,WAAW,MAMpC;EACrB,eAAa,UAAA,GAAA,uBAAA,SAAiB,MAAM,IAAI;EAC5B;EACZ,gBAAgB;EAChB,WAAW,eAAe,aAAa,eAAe;EACtD,eAAe;EACC;EAChB,eAAe,cAAc,QAAQ,CAAC;EAC3B;YAXb,CAaE,iBAAA,GAAA,kBAAA,KAACC,cAAAA,aAAD;GAAsB;cAClB,WAA6B;IAC7B,OAAO,iBAAA,GAAA,kBAAA,KAACC,cAAAA,aAAD,EAAA,UAA+B,OAAO,MAAmB,GAAvC,OAAO,GAAgC;GAClE;EACW,CAAA,GACb,iBAAA,GAAA,kBAAA,KAACC,cAAAA,WAAD;GACgB;GACd,WAAW;GACX,OAAO;GACP,gBAAgB,kBAAkB;cAEhC,SAAwB;IACxB,OACE,iBAAA,GAAA,kBAAA,KAACC,cAAAA,UAAD,EAAA,WAII,cAAc;KACd,OAAO,iBAAA,GAAA,kBAAA,KAACC,cAAAA,WAAD,EAAA,WAAA,GAAA,cAAA,aAAwB,MAAM,SAAS,EAAa,CAAA;IAC7D,EACQ,GANH,KAAK,GAMF;GAEd;EACS,CAAA,CACF;;AAEf"}
|
package/dist/Tabs/Tabs.cjs
CHANGED
package/dist/Tabs/Tabs.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.cjs","names":["HeroTabs","HeroTab"],"sources":["../../src/Tabs/Tabs.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactNode } from 'react';\n\nimport { Tab as HeroTab, Tabs as HeroTabs } from '@heroui/tabs';\n\nimport { slugify, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nexport const tabsVariants = tv({\n slots: {\n base: '',\n cursor: '',\n panel: '',\n tab: 'data-[hover-unselected=true]:opacity-100',\n tabContent: 'text-foreground',\n tabList: '',\n tabWrapper: '',\n },\n});\n\ntype VariantProps = TVProps<typeof tabsVariants>;\ntype ClassName = TVClassName<typeof tabsVariants>;\n\ntype Key = string | number;\n\nexport interface TabProps {\n /** Content to be displayed in the tab panel */\n content: ReactNode;\n /** Disables the tab so it can not be selected */\n disabled?: boolean;\n /** Unique identifier for the tab */\n key: Key;\n /** Label content displayed in the tab button */\n label: ReactNode;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\nexport interface TabsProps extends VariantProps {\n /** Accessible label for the tabs component */\n ariaLabel?: string;\n /** CSS class name */\n className?: ClassName;\n /** Key of the tab that should be selected by default */\n defaultSelectedKey?: string | number;\n /** Whether to destroy inactive tab panel DOM nodes */\n destroyInactiveTabPanel?: boolean;\n /** Whether the animation should be disabled. */\n disableAnimation?: boolean;\n /** Array of keys for the tabs to disable */\n disabledKeys?: string[];\n /** Whether tabs should take up full container width */\n fullWidth?: boolean;\n /** Callback fired when tab selection changes */\n onSelectionChange?: (key: Key | null) => void;\n /** Position of the tab list relative to the content */\n placement?: 'top' | 'bottom' | 'start' | 'end' | undefined;\n /** Radius of the tabs */\n radius?: 'none' | 'sm' | 'md' | 'lg' | 'full';\n /** Selected tab key (controlled) */\n selectedKey?: Key;\n /** Size of the tabs */\n size?: 'sm' | 'md' | 'lg';\n /** Array of tab configurations */\n tabs: TabProps[];\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** Style variant of the tabs */\n variant?: 'bordered' | 'light' | 'solid' | 'underlined';\n /** Whether to display tabs vertically */\n vertical?: boolean;\n}\n\n/**\n * Tabs component based on [HeroUI Tabs](https://www.heroui.com//docs/components/tabs)\n */\nconst Tabs = ({\n ariaLabel = undefined,\n className = undefined,\n defaultSelectedKey = undefined,\n destroyInactiveTabPanel = true,\n disableAnimation = false,\n disabledKeys = undefined,\n fullWidth = true,\n onSelectionChange = undefined,\n placement = undefined,\n radius = undefined,\n selectedKey = undefined,\n size = 'md',\n tabs,\n testId = 'tab',\n variant = 'solid',\n vertical = false,\n}: TabsProps) => {\n const variants = tabsVariants();\n const classNames = variantsToClassNames(variants, className, 'base');\n\n return (\n <HeroTabs\n aria-label={ariaLabel}\n classNames={classNames}\n defaultSelectedKey={defaultSelectedKey}\n destroyInactiveTabPanel={destroyInactiveTabPanel}\n disableAnimation={disableAnimation}\n disabledKeys={disabledKeys}\n fullWidth={fullWidth}\n isVertical={vertical}\n items={tabs || []}\n onSelectionChange={onSelectionChange}\n placement={placement}\n radius={radius}\n selectedKey={selectedKey}\n size={size}\n variant={variant}\n >\n {(item) => {\n return (\n <HeroTab\n key={item.key}\n data-testid={slugify(`${testId}_${item.testId ?? item.key}`)}\n isDisabled={!!item.disabled}\n title={item.label}\n >\n {item.content}\n </HeroTab>\n );\n }}\n </HeroTabs>\n );\n};\n\nexport default Tabs;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tabs.cjs","names":["HeroTabs","HeroTab"],"sources":["../../src/Tabs/Tabs.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactNode } from 'react';\n\nimport { Tab as HeroTab, Tabs as HeroTabs } from '@heroui/tabs';\n\nimport { slugify, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nexport const tabsVariants = tv({\n slots: {\n base: '',\n cursor: '',\n panel: '',\n tab: 'data-[hover-unselected=true]:opacity-100',\n tabContent: 'text-foreground',\n tabList: '',\n tabWrapper: '',\n },\n});\n\ntype VariantProps = TVProps<typeof tabsVariants>;\ntype ClassName = TVClassName<typeof tabsVariants>;\n\ntype Key = string | number;\n\nexport interface TabProps {\n /** Content to be displayed in the tab panel */\n content: ReactNode;\n /** Disables the tab so it can not be selected */\n disabled?: boolean;\n /** Unique identifier for the tab */\n key: Key;\n /** Label content displayed in the tab button */\n label: ReactNode;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\nexport interface TabsProps extends VariantProps {\n /** Accessible label for the tabs component */\n ariaLabel?: string;\n /** CSS class name */\n className?: ClassName;\n /** Key of the tab that should be selected by default */\n defaultSelectedKey?: string | number;\n /** Whether to destroy inactive tab panel DOM nodes */\n destroyInactiveTabPanel?: boolean;\n /** Whether the animation should be disabled. */\n disableAnimation?: boolean;\n /** Array of keys for the tabs to disable */\n disabledKeys?: string[];\n /** Whether tabs should take up full container width */\n fullWidth?: boolean;\n /** Callback fired when tab selection changes */\n onSelectionChange?: (key: Key | null) => void;\n /** Position of the tab list relative to the content */\n placement?: 'top' | 'bottom' | 'start' | 'end' | undefined;\n /** Radius of the tabs */\n radius?: 'none' | 'sm' | 'md' | 'lg' | 'full';\n /** Selected tab key (controlled) */\n selectedKey?: Key;\n /** Size of the tabs */\n size?: 'sm' | 'md' | 'lg';\n /** Array of tab configurations */\n tabs: TabProps[];\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** Style variant of the tabs */\n variant?: 'bordered' | 'light' | 'solid' | 'underlined';\n /** Whether to display tabs vertically */\n vertical?: boolean;\n}\n\n/**\n * Tabs component based on [HeroUI Tabs](https://www.heroui.com//docs/components/tabs)\n */\nconst Tabs = ({\n ariaLabel = undefined,\n className = undefined,\n defaultSelectedKey = undefined,\n destroyInactiveTabPanel = true,\n disableAnimation = false,\n disabledKeys = undefined,\n fullWidth = true,\n onSelectionChange = undefined,\n placement = undefined,\n radius = undefined,\n selectedKey = undefined,\n size = 'md',\n tabs,\n testId = 'tab',\n variant = 'solid',\n vertical = false,\n}: TabsProps) => {\n const variants = tabsVariants();\n const classNames = variantsToClassNames(variants, className, 'base');\n\n return (\n <HeroTabs\n aria-label={ariaLabel}\n classNames={classNames}\n defaultSelectedKey={defaultSelectedKey}\n destroyInactiveTabPanel={destroyInactiveTabPanel}\n disableAnimation={disableAnimation}\n disabledKeys={disabledKeys}\n fullWidth={fullWidth}\n isVertical={vertical}\n items={tabs || []}\n onSelectionChange={onSelectionChange}\n placement={placement}\n radius={radius}\n selectedKey={selectedKey}\n size={size}\n variant={variant}\n >\n {(item) => {\n return (\n <HeroTab\n key={item.key}\n data-testid={slugify(`${testId}_${item.testId ?? item.key}`)}\n isDisabled={!!item.disabled}\n title={item.label}\n >\n {item.content}\n </HeroTab>\n );\n }}\n </HeroTabs>\n );\n};\n\nexport default Tabs;\n"],"mappings":";;;;AAOA,MAAa,gBAAA,GAAA,uBAAA,IAAkB,EAC7B,OAAO;CACL,MAAM;CACN,QAAQ;CACR,OAAO;CACP,KAAK;CACL,YAAY;CACZ,SAAS;CACT,YAAY;AACd,EACF,CAAC;;;;AA0DD,MAAM,QAAQ,EACZ,YAAY,KAAA,GACZ,YAAY,KAAA,GACZ,qBAAqB,KAAA,GACrB,0BAA0B,MAC1B,mBAAmB,OACnB,eAAe,KAAA,GACf,YAAY,MACZ,oBAAoB,KAAA,GACpB,YAAY,KAAA,GACZ,SAAS,KAAA,GACT,cAAc,KAAA,GACd,OAAO,MACP,MACA,SAAS,OACT,UAAU,SACV,WAAW,YACI;CAIf,OACE,iBAAA,GAAA,kBAAA,KAACA,aAAAA,MAAD;EACE,cAAY;EACZ,aAAA,GAAA,uBAAA,sBANa,aAC8B,GAAG,WAAW,MAKpC;EACD;EACK;EACP;EACJ;EACH;EACX,YAAY;EACZ,OAAO,QAAQ,CAAC;EACG;EACR;EACH;EACK;EACP;EACG;aAEP,SAAS;GACT,OACE,iBAAA,GAAA,kBAAA,KAACC,aAAAA,KAAD;IAEE,gBAAA,GAAA,uBAAA,SAAqB,GAAG,OAAO,GAAG,KAAK,UAAU,KAAK,KAAK;IAC3D,YAAY,CAAC,CAAC,KAAK;IACnB,OAAO,KAAK;cAEX,KAAK;GACC,GANF,KAAK,GAMH;EAEb;CACQ,CAAA;AAEd"}
|