@cerberus-design/react 0.16.0-next-1e5283a → 0.16.0-next-004ae01
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/build/legacy/_tsup-dts-rollup.d.cts +298 -0
- package/build/legacy/components/combobox/combobox.cjs +224 -0
- package/build/legacy/components/combobox/combobox.cjs.map +1 -0
- package/build/legacy/components/combobox/index.cjs +326 -0
- package/build/legacy/components/combobox/index.cjs.map +1 -0
- package/build/legacy/components/combobox/item-group.cjs +178 -0
- package/build/legacy/components/combobox/item-group.cjs.map +1 -0
- package/build/legacy/components/combobox/item.cjs +192 -0
- package/build/legacy/components/combobox/item.cjs.map +1 -0
- package/build/legacy/components/combobox/parts.cjs +168 -0
- package/build/legacy/components/combobox/parts.cjs.map +1 -0
- package/build/legacy/components/combobox/primitives.cjs +182 -0
- package/build/legacy/components/combobox/primitives.cjs.map +1 -0
- package/build/legacy/components/combobox/use-stateful-collection.cjs +72 -0
- package/build/legacy/components/combobox/use-stateful-collection.cjs.map +1 -0
- package/build/legacy/components/select/index.cjs.map +1 -1
- package/build/legacy/components/select/select.cjs.map +1 -1
- package/build/legacy/index.cjs +960 -700
- package/build/legacy/index.cjs.map +1 -1
- package/build/modern/_tsup-dts-rollup.d.ts +298 -0
- package/build/modern/{chunk-4WKM2MJC.js → chunk-3B4SFTQB.js} +2 -2
- package/build/modern/chunk-FZ53535Q.js +18 -0
- package/build/modern/chunk-FZ53535Q.js.map +1 -0
- package/build/modern/chunk-HIC7Z23X.js +37 -0
- package/build/modern/chunk-HIC7Z23X.js.map +1 -0
- package/build/modern/chunk-J7SAFAW3.js +44 -0
- package/build/modern/chunk-J7SAFAW3.js.map +1 -0
- package/build/modern/{chunk-C45HS2C4.js → chunk-MH6CIBDU.js} +4 -4
- package/build/modern/chunk-ML2IKLMJ.js +1 -0
- package/build/modern/chunk-ML2IKLMJ.js.map +1 -0
- package/build/modern/chunk-MR4DX76C.js +38 -0
- package/build/modern/chunk-MR4DX76C.js.map +1 -0
- package/build/modern/chunk-NR5XDIJ7.js +148 -0
- package/build/modern/chunk-NR5XDIJ7.js.map +1 -0
- package/build/modern/{chunk-OOUNB643.js → chunk-R7MPDSXX.js} +7 -7
- package/build/modern/{chunk-6DAOKE6Z.js → chunk-RKVY2HJ3.js} +4 -4
- package/build/modern/{chunk-MTZDZXZM.js → chunk-U5XRQ2JZ.js} +2 -2
- package/build/modern/{chunk-CF3EHG42.js → chunk-VTQ6RW3Z.js} +7 -7
- package/build/modern/chunk-XBUXVNTY.js +22 -0
- package/build/modern/chunk-XBUXVNTY.js.map +1 -0
- package/build/modern/{chunk-6ICNCCPD.js → chunk-YLKFZGBY.js} +1 -1
- package/build/modern/chunk-YLKFZGBY.js.map +1 -0
- package/build/modern/components/FileStatus.js +3 -3
- package/build/modern/components/combobox/combobox.js +13 -0
- package/build/modern/components/combobox/combobox.js.map +1 -0
- package/build/modern/components/combobox/index.js +60 -0
- package/build/modern/components/combobox/index.js.map +1 -0
- package/build/modern/components/combobox/item-group.js +9 -0
- package/build/modern/components/combobox/item-group.js.map +1 -0
- package/build/modern/components/combobox/item.js +11 -0
- package/build/modern/components/combobox/item.js.map +1 -0
- package/build/modern/components/combobox/parts.js +8 -0
- package/build/modern/components/combobox/parts.js.map +1 -0
- package/build/modern/components/combobox/primitives.js +35 -0
- package/build/modern/components/combobox/primitives.js.map +1 -0
- package/build/modern/components/combobox/use-stateful-collection.js +9 -0
- package/build/modern/components/combobox/use-stateful-collection.js.map +1 -0
- package/build/modern/components/cta-dialog/index.js +3 -3
- package/build/modern/components/cta-dialog/provider.js +3 -3
- package/build/modern/components/dialog/dialog.js +2 -2
- package/build/modern/components/dialog/index.js +2 -2
- package/build/modern/components/select/index.js +1 -1
- package/build/modern/components/select/select.js +1 -1
- package/build/modern/context/confirm-modal.js +3 -3
- package/build/modern/context/notification-center.js +2 -2
- package/build/modern/context/prompt-modal.js +9 -9
- package/build/modern/index.js +187 -134
- package/build/modern/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/combobox/combobox.tsx +66 -0
- package/src/components/combobox/index.ts +6 -0
- package/src/components/combobox/item-group.tsx +19 -0
- package/src/components/combobox/item.tsx +30 -0
- package/src/components/combobox/parts.ts +101 -0
- package/src/components/combobox/primitives.tsx +209 -0
- package/src/components/combobox/use-stateful-collection.ts +65 -0
- package/src/components/select/select.tsx +1 -0
- package/src/index.ts +1 -0
- package/build/modern/chunk-6ICNCCPD.js.map +0 -1
- /package/build/modern/{chunk-4WKM2MJC.js.map → chunk-3B4SFTQB.js.map} +0 -0
- /package/build/modern/{chunk-C45HS2C4.js.map → chunk-MH6CIBDU.js.map} +0 -0
- /package/build/modern/{chunk-OOUNB643.js.map → chunk-R7MPDSXX.js.map} +0 -0
- /package/build/modern/{chunk-6DAOKE6Z.js.map → chunk-RKVY2HJ3.js.map} +0 -0
- /package/build/modern/{chunk-MTZDZXZM.js.map → chunk-U5XRQ2JZ.js.map} +0 -0
- /package/build/modern/{chunk-CF3EHG42.js.map → chunk-VTQ6RW3Z.js.map} +0 -0
package/build/modern/index.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
NavMenuTrigger
|
|
3
|
-
} from "./chunk-245SMQ45.js";
|
|
4
|
-
import {
|
|
5
|
-
FieldsetLabel
|
|
6
|
-
} from "./chunk-DRDNNRU3.js";
|
|
7
1
|
import {
|
|
8
2
|
Label
|
|
9
3
|
} from "./chunk-LT62577B.js";
|
|
@@ -26,47 +20,38 @@ import {
|
|
|
26
20
|
NavMenuList,
|
|
27
21
|
getPosition
|
|
28
22
|
} from "./chunk-AIJ75ENY.js";
|
|
23
|
+
import {
|
|
24
|
+
NavMenuTrigger
|
|
25
|
+
} from "./chunk-245SMQ45.js";
|
|
29
26
|
import {
|
|
30
27
|
FieldMessage
|
|
31
28
|
} from "./chunk-L7N24B6B.js";
|
|
32
29
|
import {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./chunk-MTZDZXZM.js";
|
|
36
|
-
import {
|
|
37
|
-
NavMenu,
|
|
38
|
-
useNavMenuContext
|
|
39
|
-
} from "./chunk-6WS765J3.js";
|
|
40
|
-
import {
|
|
41
|
-
NotificationCenter,
|
|
42
|
-
useNotificationCenter
|
|
43
|
-
} from "./chunk-6DAOKE6Z.js";
|
|
30
|
+
FieldsetLabel
|
|
31
|
+
} from "./chunk-DRDNNRU3.js";
|
|
44
32
|
import {
|
|
45
33
|
PromptModal,
|
|
46
34
|
usePromptModal
|
|
47
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-R7MPDSXX.js";
|
|
48
36
|
import {
|
|
49
37
|
ThemeProvider,
|
|
50
38
|
useThemeContext
|
|
51
39
|
} from "./chunk-EB37HRCN.js";
|
|
52
|
-
import {
|
|
53
|
-
Tbody
|
|
54
|
-
} from "./chunk-ZR37P4NZ.js";
|
|
55
|
-
import {
|
|
56
|
-
Td
|
|
57
|
-
} from "./chunk-3R4TIF2X.js";
|
|
58
|
-
import {
|
|
59
|
-
Th
|
|
60
|
-
} from "./chunk-SGKHA4EB.js";
|
|
61
|
-
import {
|
|
62
|
-
Thead
|
|
63
|
-
} from "./chunk-Y6QQCRQV.js";
|
|
64
40
|
import {
|
|
65
41
|
Tooltip
|
|
66
42
|
} from "./chunk-LPALHB6R.js";
|
|
67
43
|
import {
|
|
68
|
-
|
|
69
|
-
|
|
44
|
+
ConfirmModal,
|
|
45
|
+
useConfirmModal
|
|
46
|
+
} from "./chunk-U5XRQ2JZ.js";
|
|
47
|
+
import {
|
|
48
|
+
NavMenu,
|
|
49
|
+
useNavMenuContext
|
|
50
|
+
} from "./chunk-6WS765J3.js";
|
|
51
|
+
import {
|
|
52
|
+
NotificationCenter,
|
|
53
|
+
useNotificationCenter
|
|
54
|
+
} from "./chunk-RKVY2HJ3.js";
|
|
70
55
|
import {
|
|
71
56
|
Table,
|
|
72
57
|
Tr
|
|
@@ -87,25 +72,17 @@ import {
|
|
|
87
72
|
Tag
|
|
88
73
|
} from "./chunk-MISIUX63.js";
|
|
89
74
|
import {
|
|
90
|
-
|
|
91
|
-
} from "./chunk-
|
|
92
|
-
import {
|
|
93
|
-
FeatureFlags,
|
|
94
|
-
useFeatureFlags
|
|
95
|
-
} from "./chunk-CJFW36DZ.js";
|
|
96
|
-
import {
|
|
97
|
-
FileStatus,
|
|
98
|
-
processStatus
|
|
99
|
-
} from "./chunk-CF3EHG42.js";
|
|
75
|
+
Tbody
|
|
76
|
+
} from "./chunk-ZR37P4NZ.js";
|
|
100
77
|
import {
|
|
101
|
-
|
|
102
|
-
} from "./chunk-
|
|
78
|
+
Td
|
|
79
|
+
} from "./chunk-3R4TIF2X.js";
|
|
103
80
|
import {
|
|
104
|
-
|
|
105
|
-
} from "./chunk-
|
|
81
|
+
Th
|
|
82
|
+
} from "./chunk-SGKHA4EB.js";
|
|
106
83
|
import {
|
|
107
|
-
|
|
108
|
-
} from "./chunk-
|
|
84
|
+
Thead
|
|
85
|
+
} from "./chunk-Y6QQCRQV.js";
|
|
109
86
|
import {
|
|
110
87
|
Menu,
|
|
111
88
|
MenuContent,
|
|
@@ -122,14 +99,8 @@ import {
|
|
|
122
99
|
NotificationDescription
|
|
123
100
|
} from "./chunk-UXY3KCC3.js";
|
|
124
101
|
import {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
AdmonitionHeading
|
|
128
|
-
} from "./chunk-DXBZ3HMY.js";
|
|
129
|
-
import "./chunk-2HOUQ2DX.js";
|
|
130
|
-
import {
|
|
131
|
-
CircularProgress
|
|
132
|
-
} from "./chunk-6QHOKCV3.js";
|
|
102
|
+
NotificationHeading
|
|
103
|
+
} from "./chunk-SLHYBPJ5.js";
|
|
133
104
|
import {
|
|
134
105
|
DatePicker,
|
|
135
106
|
DatePickerCalendar,
|
|
@@ -155,15 +126,26 @@ import {
|
|
|
155
126
|
import {
|
|
156
127
|
Droppable
|
|
157
128
|
} from "./chunk-TKI2CKHH.js";
|
|
158
|
-
import "./chunk-V4YYGGMH.js";
|
|
159
129
|
import {
|
|
160
|
-
|
|
161
|
-
} from "./chunk-
|
|
130
|
+
FeatureFlag
|
|
131
|
+
} from "./chunk-BIDE4IJG.js";
|
|
162
132
|
import {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
} from "./chunk-
|
|
166
|
-
import
|
|
133
|
+
FeatureFlags,
|
|
134
|
+
useFeatureFlags
|
|
135
|
+
} from "./chunk-CJFW36DZ.js";
|
|
136
|
+
import {
|
|
137
|
+
FileStatus,
|
|
138
|
+
processStatus
|
|
139
|
+
} from "./chunk-VTQ6RW3Z.js";
|
|
140
|
+
import {
|
|
141
|
+
ProgressBar
|
|
142
|
+
} from "./chunk-WZJ5UQNM.js";
|
|
143
|
+
import {
|
|
144
|
+
FileUploader
|
|
145
|
+
} from "./chunk-7SU6FCTJ.js";
|
|
146
|
+
import {
|
|
147
|
+
Legend
|
|
148
|
+
} from "./chunk-RBNOEAWJ.js";
|
|
167
149
|
import {
|
|
168
150
|
AccordionItemGroup
|
|
169
151
|
} from "./chunk-WN7TJX6J.js";
|
|
@@ -176,6 +158,75 @@ import {
|
|
|
176
158
|
AccordionItemContent,
|
|
177
159
|
AccordionItemTrigger
|
|
178
160
|
} from "./chunk-AZRFYQO7.js";
|
|
161
|
+
import {
|
|
162
|
+
Admonition,
|
|
163
|
+
AdmonitionDescription,
|
|
164
|
+
AdmonitionHeading
|
|
165
|
+
} from "./chunk-DXBZ3HMY.js";
|
|
166
|
+
import "./chunk-2HOUQ2DX.js";
|
|
167
|
+
import {
|
|
168
|
+
CircularProgress
|
|
169
|
+
} from "./chunk-6QHOKCV3.js";
|
|
170
|
+
import "./chunk-2LF3HPNA.js";
|
|
171
|
+
import {
|
|
172
|
+
Option,
|
|
173
|
+
Select
|
|
174
|
+
} from "./chunk-YLKFZGBY.js";
|
|
175
|
+
import {
|
|
176
|
+
OptionGroup,
|
|
177
|
+
OptionGroupLabel
|
|
178
|
+
} from "./chunk-IASVL7CW.js";
|
|
179
|
+
import {
|
|
180
|
+
SelectParts
|
|
181
|
+
} from "./chunk-XTNGF4D6.js";
|
|
182
|
+
import "./chunk-UDY6USHW.js";
|
|
183
|
+
import {
|
|
184
|
+
Switch
|
|
185
|
+
} from "./chunk-OVHCXBBI.js";
|
|
186
|
+
import "./chunk-CAZ3EICD.js";
|
|
187
|
+
import {
|
|
188
|
+
SwitchParts
|
|
189
|
+
} from "./chunk-KQQPZJEI.js";
|
|
190
|
+
import {
|
|
191
|
+
SwitchControl,
|
|
192
|
+
SwitchHiddenInput,
|
|
193
|
+
SwitchLabel,
|
|
194
|
+
SwitchRoot,
|
|
195
|
+
SwitchThumb
|
|
196
|
+
} from "./chunk-LZWNHXRP.js";
|
|
197
|
+
import "./chunk-V4YYGGMH.js";
|
|
198
|
+
import {
|
|
199
|
+
ToggleParts
|
|
200
|
+
} from "./chunk-2CVGNLIM.js";
|
|
201
|
+
import {
|
|
202
|
+
ToggleIndicator,
|
|
203
|
+
ToggleRoot
|
|
204
|
+
} from "./chunk-CIMY2U22.js";
|
|
205
|
+
import "./chunk-V3M3ZOQI.js";
|
|
206
|
+
import "./chunk-TYPULJMJ.js";
|
|
207
|
+
import {
|
|
208
|
+
Field
|
|
209
|
+
} from "./chunk-FBS7AX76.js";
|
|
210
|
+
import {
|
|
211
|
+
FieldParts
|
|
212
|
+
} from "./chunk-6I2FW4WI.js";
|
|
213
|
+
import {
|
|
214
|
+
FieldErrorText,
|
|
215
|
+
FieldHelperText,
|
|
216
|
+
FieldInput,
|
|
217
|
+
FieldLabel,
|
|
218
|
+
FieldRequiredIndicator,
|
|
219
|
+
FieldRoot,
|
|
220
|
+
FieldTextarea,
|
|
221
|
+
Input,
|
|
222
|
+
Textarea
|
|
223
|
+
} from "./chunk-VSTOSLFS.js";
|
|
224
|
+
import {
|
|
225
|
+
FieldStartIndicator
|
|
226
|
+
} from "./chunk-Z52R6ABJ.js";
|
|
227
|
+
import {
|
|
228
|
+
FieldStatusIndicator
|
|
229
|
+
} from "./chunk-CNA2VKAH.js";
|
|
179
230
|
import "./chunk-IDTAB2UJ.js";
|
|
180
231
|
import {
|
|
181
232
|
Fieldset
|
|
@@ -222,18 +273,58 @@ import {
|
|
|
222
273
|
RatingLabel,
|
|
223
274
|
RatingRoot
|
|
224
275
|
} from "./chunk-W47QEZD5.js";
|
|
225
|
-
import "./chunk-
|
|
276
|
+
import "./chunk-TIJAFPHQ.js";
|
|
226
277
|
import {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
278
|
+
Checkbox
|
|
279
|
+
} from "./chunk-UNRQAXLJ.js";
|
|
280
|
+
import "./chunk-EL4MX2PG.js";
|
|
230
281
|
import {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
} from "./chunk-IASVL7CW.js";
|
|
282
|
+
Text
|
|
283
|
+
} from "./chunk-RU5LOXWI.js";
|
|
234
284
|
import {
|
|
235
|
-
|
|
236
|
-
} from "./chunk-
|
|
285
|
+
CheckboxParts
|
|
286
|
+
} from "./chunk-KWZ3CEG6.js";
|
|
287
|
+
import {
|
|
288
|
+
CheckboxControl,
|
|
289
|
+
CheckboxGroup,
|
|
290
|
+
CheckboxHiddenInput,
|
|
291
|
+
CheckboxIndicator,
|
|
292
|
+
CheckboxLabel,
|
|
293
|
+
CheckboxRoot
|
|
294
|
+
} from "./chunk-BPRF34DU.js";
|
|
295
|
+
import "./chunk-ML2IKLMJ.js";
|
|
296
|
+
import {
|
|
297
|
+
ComboItemGroup
|
|
298
|
+
} from "./chunk-FZ53535Q.js";
|
|
299
|
+
import {
|
|
300
|
+
ComboItemWithIndicator
|
|
301
|
+
} from "./chunk-XBUXVNTY.js";
|
|
302
|
+
import {
|
|
303
|
+
Combobox
|
|
304
|
+
} from "./chunk-J7SAFAW3.js";
|
|
305
|
+
import {
|
|
306
|
+
ComboboxParts
|
|
307
|
+
} from "./chunk-HIC7Z23X.js";
|
|
308
|
+
import {
|
|
309
|
+
ComboItemText,
|
|
310
|
+
ComboboxClearTrigger,
|
|
311
|
+
ComboboxContent,
|
|
312
|
+
ComboboxControl,
|
|
313
|
+
ComboboxInput,
|
|
314
|
+
ComboboxItem,
|
|
315
|
+
ComboboxItemGroup,
|
|
316
|
+
ComboboxItemGroupLabel,
|
|
317
|
+
ComboboxItemIndicator,
|
|
318
|
+
ComboboxItemText,
|
|
319
|
+
ComboboxLabel,
|
|
320
|
+
ComboboxPositioner,
|
|
321
|
+
ComboboxRoot,
|
|
322
|
+
ComboboxStartIcon,
|
|
323
|
+
ComboboxTrigger
|
|
324
|
+
} from "./chunk-NR5XDIJ7.js";
|
|
325
|
+
import {
|
|
326
|
+
useStatefulCollection
|
|
327
|
+
} from "./chunk-MR4DX76C.js";
|
|
237
328
|
import {
|
|
238
329
|
SelectClearTrigger,
|
|
239
330
|
SelectContent,
|
|
@@ -252,45 +343,11 @@ import {
|
|
|
252
343
|
SelectValueText,
|
|
253
344
|
createSelectCollection
|
|
254
345
|
} from "./chunk-QCBLRACK.js";
|
|
255
|
-
import "./chunk-UDY6USHW.js";
|
|
256
|
-
import {
|
|
257
|
-
Switch
|
|
258
|
-
} from "./chunk-OVHCXBBI.js";
|
|
259
|
-
import "./chunk-CAZ3EICD.js";
|
|
260
|
-
import {
|
|
261
|
-
SwitchParts
|
|
262
|
-
} from "./chunk-KQQPZJEI.js";
|
|
263
|
-
import {
|
|
264
|
-
SwitchControl,
|
|
265
|
-
SwitchHiddenInput,
|
|
266
|
-
SwitchLabel,
|
|
267
|
-
SwitchRoot,
|
|
268
|
-
SwitchThumb
|
|
269
|
-
} from "./chunk-LZWNHXRP.js";
|
|
270
|
-
import "./chunk-TIJAFPHQ.js";
|
|
271
|
-
import {
|
|
272
|
-
Checkbox
|
|
273
|
-
} from "./chunk-UNRQAXLJ.js";
|
|
274
|
-
import "./chunk-EL4MX2PG.js";
|
|
275
|
-
import {
|
|
276
|
-
Text
|
|
277
|
-
} from "./chunk-RU5LOXWI.js";
|
|
278
|
-
import {
|
|
279
|
-
CheckboxParts
|
|
280
|
-
} from "./chunk-KWZ3CEG6.js";
|
|
281
|
-
import {
|
|
282
|
-
CheckboxControl,
|
|
283
|
-
CheckboxGroup,
|
|
284
|
-
CheckboxHiddenInput,
|
|
285
|
-
CheckboxIndicator,
|
|
286
|
-
CheckboxLabel,
|
|
287
|
-
CheckboxRoot
|
|
288
|
-
} from "./chunk-BPRF34DU.js";
|
|
289
346
|
import "./chunk-IKDXADLX.js";
|
|
290
347
|
import {
|
|
291
348
|
CTAModal,
|
|
292
349
|
useCTAModal
|
|
293
|
-
} from "./chunk-
|
|
350
|
+
} from "./chunk-3B4SFTQB.js";
|
|
294
351
|
import "./chunk-4LSTU6WU.js";
|
|
295
352
|
import "./chunk-MVO2GNUA.js";
|
|
296
353
|
import {
|
|
@@ -308,13 +365,10 @@ import {
|
|
|
308
365
|
} from "./chunk-NZKE7C53.js";
|
|
309
366
|
import {
|
|
310
367
|
Dialog
|
|
311
|
-
} from "./chunk-
|
|
368
|
+
} from "./chunk-MH6CIBDU.js";
|
|
312
369
|
import {
|
|
313
370
|
IconButton
|
|
314
371
|
} from "./chunk-APD6IX5R.js";
|
|
315
|
-
import {
|
|
316
|
-
Portal
|
|
317
|
-
} from "./chunk-IQJDVFPP.js";
|
|
318
372
|
import {
|
|
319
373
|
DialogParts
|
|
320
374
|
} from "./chunk-FCSO6N2Y.js";
|
|
@@ -329,30 +383,9 @@ import {
|
|
|
329
383
|
DialogRoot,
|
|
330
384
|
DialogTrigger
|
|
331
385
|
} from "./chunk-D7UIWAFO.js";
|
|
332
|
-
import "./chunk-TYPULJMJ.js";
|
|
333
|
-
import {
|
|
334
|
-
Field
|
|
335
|
-
} from "./chunk-FBS7AX76.js";
|
|
336
|
-
import {
|
|
337
|
-
FieldParts
|
|
338
|
-
} from "./chunk-6I2FW4WI.js";
|
|
339
386
|
import {
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
FieldInput,
|
|
343
|
-
FieldLabel,
|
|
344
|
-
FieldRequiredIndicator,
|
|
345
|
-
FieldRoot,
|
|
346
|
-
FieldTextarea,
|
|
347
|
-
Input,
|
|
348
|
-
Textarea
|
|
349
|
-
} from "./chunk-VSTOSLFS.js";
|
|
350
|
-
import {
|
|
351
|
-
FieldStartIndicator
|
|
352
|
-
} from "./chunk-Z52R6ABJ.js";
|
|
353
|
-
import {
|
|
354
|
-
FieldStatusIndicator
|
|
355
|
-
} from "./chunk-CNA2VKAH.js";
|
|
387
|
+
Portal
|
|
388
|
+
} from "./chunk-IQJDVFPP.js";
|
|
356
389
|
import {
|
|
357
390
|
CerberusProvider,
|
|
358
391
|
useCerberusContext
|
|
@@ -444,6 +477,25 @@ export {
|
|
|
444
477
|
CheckboxParts,
|
|
445
478
|
CheckboxRoot,
|
|
446
479
|
CircularProgress,
|
|
480
|
+
ComboItemGroup,
|
|
481
|
+
ComboItemText,
|
|
482
|
+
ComboItemWithIndicator,
|
|
483
|
+
Combobox,
|
|
484
|
+
ComboboxClearTrigger,
|
|
485
|
+
ComboboxContent,
|
|
486
|
+
ComboboxControl,
|
|
487
|
+
ComboboxInput,
|
|
488
|
+
ComboboxItem,
|
|
489
|
+
ComboboxItemGroup,
|
|
490
|
+
ComboboxItemGroupLabel,
|
|
491
|
+
ComboboxItemIndicator,
|
|
492
|
+
ComboboxItemText,
|
|
493
|
+
ComboboxLabel,
|
|
494
|
+
ComboboxParts,
|
|
495
|
+
ComboboxPositioner,
|
|
496
|
+
ComboboxRoot,
|
|
497
|
+
ComboboxStartIcon,
|
|
498
|
+
ComboboxTrigger,
|
|
447
499
|
ConfirmModal,
|
|
448
500
|
DateFormats,
|
|
449
501
|
DatePicker,
|
|
@@ -623,6 +675,7 @@ export {
|
|
|
623
675
|
useNotificationCenter,
|
|
624
676
|
usePromptModal,
|
|
625
677
|
useRootColors,
|
|
678
|
+
useStatefulCollection,
|
|
626
679
|
useTabsContext,
|
|
627
680
|
useTheme,
|
|
628
681
|
useThemeContext,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * This module is the entry point for the Cerberus React package.\n * @module\n */\n\n// deprecated\n\nexport * from './components/deprecated/FieldMessage'\nexport * from './components/deprecated/FieldsetLabel'\nexport * from './components/deprecated/Label'\nexport * from './components/deprecated/Modal'\nexport * from './components/deprecated/ModalHeader'\nexport * from './components/deprecated/ModalHeading'\nexport * from './components/deprecated/ModalDescription'\nexport * from './components/deprecated/NavMenuTrigger'\nexport * from './components/deprecated/NavMenuList'\nexport * from './components/deprecated/NavMenuLink'\nexport * from './hooks/useDate'\nexport * from './hooks/useModal'\nexport * from './hooks/useToggle'\n\n// components\n\nexport * from './components/Accordion'\nexport * from './components/Accordion.client'\nexport * from './components/AccordionItemGroup'\nexport * from './components/Admonition'\nexport * from './components/Avatar'\nexport * from './components/button/index'\nexport * from './components/checkbox/index'\nexport * from './components/CircularProgress'\nexport * from './components/cta-dialog/index'\nexport * from './components/DatePicker.client'\nexport * from './components/DatePicker.server'\nexport * from './components/dialog/index'\nexport * from './components/Droppable'\nexport * from './components/FeatureFlag'\nexport * from './components/field/index'\nexport * from './components/fieldset/index'\nexport * from './components/FileStatus'\nexport * from './components/FileUploader'\nexport * from './components/for'\nexport * from './components/IconButton'\nexport * from './components/Legend'\nexport * from './components/Menu'\nexport * from './components/Notification'\nexport * from './components/NotificationHeading'\nexport * from './components/NotificationDescription'\nexport * from './components/Portal'\nexport * from './components/ProgressBar'\nexport * from './components/radio/index'\nexport * from './components/rating/index'\nexport * from './components/select/index'\nexport * from './components/Show'\nexport * from './components/Spinner'\nexport * from './components/switch/index'\nexport * from './components/Tabs.client'\nexport * from './components/Table'\nexport * from './components/Thead'\nexport * from './components/Th'\nexport * from './components/Td'\nexport * from './components/Tbody'\nexport * from './components/Tag'\nexport * from './components/Text'\nexport * from './components/toggle/index'\nexport * from './components/Tooltip'\n\n// context\n\nexport * from './context/cerberus'\nexport * from './context/confirm-modal'\nexport * from './context/feature-flags'\nexport * from './context/navMenu'\nexport * from './context/notification-center'\nexport * from './context/prompt-modal'\nexport * from './context/tabs'\nexport * from './context/theme'\n\n// hooks\n\nexport * from './hooks/useTheme'\nexport * from './hooks/useRootColors'\n\n// aria-helpers\n\nexport * from './aria-helpers/nav-menu.aria'\nexport * from './aria-helpers/trap-focus.aria'\n\n// utils\n\nexport * from './config/index'\nexport * from './utils/index'\n\n// shared types\n\nexport * from './types'\n\n// 3rd party\n\nexport * from '@dnd-kit/core'\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * This module is the entry point for the Cerberus React package.\n * @module\n */\n\n// deprecated\n\nexport * from './components/deprecated/FieldMessage'\nexport * from './components/deprecated/FieldsetLabel'\nexport * from './components/deprecated/Label'\nexport * from './components/deprecated/Modal'\nexport * from './components/deprecated/ModalHeader'\nexport * from './components/deprecated/ModalHeading'\nexport * from './components/deprecated/ModalDescription'\nexport * from './components/deprecated/NavMenuTrigger'\nexport * from './components/deprecated/NavMenuList'\nexport * from './components/deprecated/NavMenuLink'\nexport * from './hooks/useDate'\nexport * from './hooks/useModal'\nexport * from './hooks/useToggle'\n\n// components\n\nexport * from './components/Accordion'\nexport * from './components/Accordion.client'\nexport * from './components/AccordionItemGroup'\nexport * from './components/Admonition'\nexport * from './components/Avatar'\nexport * from './components/button/index'\nexport * from './components/checkbox/index'\nexport * from './components/CircularProgress'\nexport * from './components/combobox/index'\nexport * from './components/cta-dialog/index'\nexport * from './components/DatePicker.client'\nexport * from './components/DatePicker.server'\nexport * from './components/dialog/index'\nexport * from './components/Droppable'\nexport * from './components/FeatureFlag'\nexport * from './components/field/index'\nexport * from './components/fieldset/index'\nexport * from './components/FileStatus'\nexport * from './components/FileUploader'\nexport * from './components/for'\nexport * from './components/IconButton'\nexport * from './components/Legend'\nexport * from './components/Menu'\nexport * from './components/Notification'\nexport * from './components/NotificationHeading'\nexport * from './components/NotificationDescription'\nexport * from './components/Portal'\nexport * from './components/ProgressBar'\nexport * from './components/radio/index'\nexport * from './components/rating/index'\nexport * from './components/select/index'\nexport * from './components/Show'\nexport * from './components/Spinner'\nexport * from './components/switch/index'\nexport * from './components/Tabs.client'\nexport * from './components/Table'\nexport * from './components/Thead'\nexport * from './components/Th'\nexport * from './components/Td'\nexport * from './components/Tbody'\nexport * from './components/Tag'\nexport * from './components/Text'\nexport * from './components/toggle/index'\nexport * from './components/Tooltip'\n\n// context\n\nexport * from './context/cerberus'\nexport * from './context/confirm-modal'\nexport * from './context/feature-flags'\nexport * from './context/navMenu'\nexport * from './context/notification-center'\nexport * from './context/prompt-modal'\nexport * from './context/tabs'\nexport * from './context/theme'\n\n// hooks\n\nexport * from './hooks/useTheme'\nexport * from './hooks/useRootColors'\n\n// aria-helpers\n\nexport * from './aria-helpers/nav-menu.aria'\nexport * from './aria-helpers/trap-focus.aria'\n\n// utils\n\nexport * from './config/index'\nexport * from './utils/index'\n\n// shared types\n\nexport * from './types'\n\n// 3rd party\n\nexport * from '@dnd-kit/core'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoGA,cAAc;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cerberus-design/react",
|
|
3
|
-
"version": "0.16.0-next-
|
|
3
|
+
"version": "0.16.0-next-004ae01",
|
|
4
4
|
"description": "The Cerberus Design React component library.",
|
|
5
5
|
"browserslist": "> 0.25%, not dead",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"react-dom": "^18",
|
|
27
27
|
"tsup": "^8.1.0",
|
|
28
28
|
"@cerberus-design/configs": "0.0.0",
|
|
29
|
-
"@cerberus/styled-system": "npm:@cerberus-design/styled-system@0.16.0-next-
|
|
29
|
+
"@cerberus/styled-system": "npm:@cerberus-design/styled-system@0.16.0-next-004ae01"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
3
|
+
import type { ComboboxRootProps } from '@ark-ui/react/combobox'
|
|
4
|
+
import type { ComboboxVariantProps } from '@cerberus/styled-system/recipes'
|
|
5
|
+
import { useCerberusContext } from '../../context/cerberus'
|
|
6
|
+
import type { SelectCollectionItem } from '../select/select'
|
|
7
|
+
import { type FieldInputProps } from '../field/index'
|
|
8
|
+
import { Portal } from '../Portal'
|
|
9
|
+
import { Show } from '../Show'
|
|
10
|
+
import { ComboboxParts } from './parts'
|
|
11
|
+
import { ComboboxStartIcon } from './primitives'
|
|
12
|
+
|
|
13
|
+
export interface ComboboxProps
|
|
14
|
+
extends ComboboxRootProps<SelectCollectionItem>,
|
|
15
|
+
ComboboxVariantProps {
|
|
16
|
+
/**
|
|
17
|
+
* The label that appears above the combobox input.
|
|
18
|
+
*/
|
|
19
|
+
label?: string
|
|
20
|
+
/**
|
|
21
|
+
* The icon that appears at the start of the combobox input.
|
|
22
|
+
*/
|
|
23
|
+
startIcon?: FieldInputProps['startIcon']
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function Combobox(props: ComboboxProps) {
|
|
27
|
+
const { label, children, startIcon, ...rootProps } = props
|
|
28
|
+
|
|
29
|
+
const { icons } = useCerberusContext()
|
|
30
|
+
const { selectArrow: SelectArrow, close: CloseIcon } = icons
|
|
31
|
+
|
|
32
|
+
const hasStartIcon = Boolean(startIcon)
|
|
33
|
+
|
|
34
|
+
return (
|
|
35
|
+
<ComboboxParts.Root {...rootProps}>
|
|
36
|
+
<Show when={Boolean(label)}>
|
|
37
|
+
<ComboboxParts.Label>{label}</ComboboxParts.Label>
|
|
38
|
+
</Show>
|
|
39
|
+
|
|
40
|
+
<ComboboxParts.Control>
|
|
41
|
+
<Show when={hasStartIcon}>
|
|
42
|
+
<ComboboxStartIcon>{startIcon}</ComboboxStartIcon>
|
|
43
|
+
</Show>
|
|
44
|
+
|
|
45
|
+
<ComboboxParts.Input
|
|
46
|
+
{...(hasStartIcon && { 'data-has': 'start-indicator' })}
|
|
47
|
+
/>
|
|
48
|
+
|
|
49
|
+
<ComboboxParts.ClearTrigger>
|
|
50
|
+
<CloseIcon />
|
|
51
|
+
</ComboboxParts.ClearTrigger>
|
|
52
|
+
<ComboboxParts.Trigger>
|
|
53
|
+
<SelectArrow />
|
|
54
|
+
</ComboboxParts.Trigger>
|
|
55
|
+
</ComboboxParts.Control>
|
|
56
|
+
|
|
57
|
+
<Portal>
|
|
58
|
+
<ComboboxParts.Positioner>
|
|
59
|
+
<ComboboxParts.Content size={rootProps.size}>
|
|
60
|
+
{children}
|
|
61
|
+
</ComboboxParts.Content>
|
|
62
|
+
</ComboboxParts.Positioner>
|
|
63
|
+
</Portal>
|
|
64
|
+
</ComboboxParts.Root>
|
|
65
|
+
)
|
|
66
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ComboboxItemGroupProps } from '@ark-ui/react/combobox'
|
|
2
|
+
import { ComboboxParts } from './parts'
|
|
3
|
+
|
|
4
|
+
export interface ComboItemGroupProps extends ComboboxItemGroupProps {
|
|
5
|
+
/**
|
|
6
|
+
* The label that appears for the combobox item group.
|
|
7
|
+
*/
|
|
8
|
+
label?: string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function ComboItemGroup(props: ComboItemGroupProps) {
|
|
12
|
+
const { label, children, ...groupProps } = props
|
|
13
|
+
return (
|
|
14
|
+
<ComboboxParts.ItemGroup {...groupProps}>
|
|
15
|
+
<ComboboxParts.ItemGroupLabel>{label}</ComboboxParts.ItemGroupLabel>
|
|
16
|
+
{children}
|
|
17
|
+
</ComboboxParts.ItemGroup>
|
|
18
|
+
)
|
|
19
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
3
|
+
import type { ComboboxItemProps } from '@ark-ui/react'
|
|
4
|
+
import { useCerberusContext } from '../../context/cerberus'
|
|
5
|
+
import { ComboboxParts } from './parts'
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* This module contains the ComboboxItemWithIndicator component.
|
|
9
|
+
* @module 'combobox/item'
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* An abstraction of the ComboboxItem component that includes an indicator.
|
|
14
|
+
* @description [Combobox Docs](https://cerberus.digitalu.design/react/combobox)
|
|
15
|
+
* @description [Ark Docs](https://ark-ui.com/react/docs/components/combobox)
|
|
16
|
+
*/
|
|
17
|
+
export function ComboItemWithIndicator(props: ComboboxItemProps) {
|
|
18
|
+
const { icons } = useCerberusContext()
|
|
19
|
+
const { selectChecked: CheckedIcon } = icons
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<ComboboxParts.Item {...props}>
|
|
23
|
+
<ComboboxParts.ItemIndicator>
|
|
24
|
+
<CheckedIcon />
|
|
25
|
+
</ComboboxParts.ItemIndicator>
|
|
26
|
+
|
|
27
|
+
{props.children}
|
|
28
|
+
</ComboboxParts.Item>
|
|
29
|
+
)
|
|
30
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import type { ElementType } from 'react'
|
|
2
|
+
import {
|
|
3
|
+
ComboboxClearTrigger,
|
|
4
|
+
ComboboxContent,
|
|
5
|
+
ComboboxControl,
|
|
6
|
+
ComboboxInput,
|
|
7
|
+
ComboboxItem,
|
|
8
|
+
ComboboxItemGroup,
|
|
9
|
+
ComboboxItemGroupLabel,
|
|
10
|
+
ComboboxItemIndicator,
|
|
11
|
+
ComboboxItemText,
|
|
12
|
+
ComboboxLabel,
|
|
13
|
+
ComboboxPositioner,
|
|
14
|
+
ComboboxRoot,
|
|
15
|
+
ComboboxTrigger,
|
|
16
|
+
} from './primitives'
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* This module contains the parts of the Combobox parts.
|
|
20
|
+
* @module 'combobox/parts'
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
interface ComboboxPartsValue {
|
|
24
|
+
/**
|
|
25
|
+
* The context provider for the Select component.
|
|
26
|
+
*/
|
|
27
|
+
Root: ElementType
|
|
28
|
+
/**
|
|
29
|
+
* The label that appears above the select input.
|
|
30
|
+
*/
|
|
31
|
+
Label: ElementType
|
|
32
|
+
/**
|
|
33
|
+
* The control that wraps the select trigger.
|
|
34
|
+
*/
|
|
35
|
+
Control: ElementType
|
|
36
|
+
/**
|
|
37
|
+
* The filterable input of the combobox.
|
|
38
|
+
*/
|
|
39
|
+
Input: ElementType
|
|
40
|
+
/**
|
|
41
|
+
* The trigger that opens the dropdown.
|
|
42
|
+
*/
|
|
43
|
+
Trigger: ElementType
|
|
44
|
+
/**
|
|
45
|
+
* The trigger to clear the select input.
|
|
46
|
+
*/
|
|
47
|
+
ClearTrigger: ElementType
|
|
48
|
+
/**
|
|
49
|
+
* The positioner that wraps the content.
|
|
50
|
+
*/
|
|
51
|
+
Positioner: ElementType
|
|
52
|
+
/**
|
|
53
|
+
* The content of the select component.
|
|
54
|
+
*/
|
|
55
|
+
Content: ElementType
|
|
56
|
+
/**
|
|
57
|
+
* A group of items in the select component.
|
|
58
|
+
*/
|
|
59
|
+
ItemGroup: ElementType
|
|
60
|
+
/**
|
|
61
|
+
* The label for a group of items in the select component.
|
|
62
|
+
*/
|
|
63
|
+
ItemGroupLabel: ElementType
|
|
64
|
+
/**
|
|
65
|
+
* An individual item in the select component.
|
|
66
|
+
*/
|
|
67
|
+
Item: ElementType
|
|
68
|
+
/**
|
|
69
|
+
* The text that labels a single radio of the field.
|
|
70
|
+
*/
|
|
71
|
+
ItemText: ElementType
|
|
72
|
+
/**
|
|
73
|
+
* The indicator that appears when the item has been selected.
|
|
74
|
+
*/
|
|
75
|
+
ItemIndicator: ElementType
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* An Object containing the parts of the Radio component. For users that
|
|
80
|
+
* prefer Object component syntax.
|
|
81
|
+
*
|
|
82
|
+
* @remarks
|
|
83
|
+
*
|
|
84
|
+
* When using object component syntax, you import the ComboboxParts object and
|
|
85
|
+
* the entire family of components vs. only what you use.
|
|
86
|
+
*/
|
|
87
|
+
export const ComboboxParts: ComboboxPartsValue = {
|
|
88
|
+
Root: ComboboxRoot,
|
|
89
|
+
Label: ComboboxLabel,
|
|
90
|
+
Control: ComboboxControl,
|
|
91
|
+
Input: ComboboxInput,
|
|
92
|
+
Trigger: ComboboxTrigger,
|
|
93
|
+
ClearTrigger: ComboboxClearTrigger,
|
|
94
|
+
Positioner: ComboboxPositioner,
|
|
95
|
+
Content: ComboboxContent,
|
|
96
|
+
ItemGroup: ComboboxItemGroup,
|
|
97
|
+
ItemGroupLabel: ComboboxItemGroupLabel,
|
|
98
|
+
Item: ComboboxItem,
|
|
99
|
+
ItemText: ComboboxItemText,
|
|
100
|
+
ItemIndicator: ComboboxItemIndicator,
|
|
101
|
+
}
|