@cerberus-design/react 0.19.3 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/legacy/_tsup-dts-rollup.d.cts +233 -4
- package/build/legacy/components/carousel/carousel.cjs +239 -0
- package/build/legacy/components/carousel/carousel.cjs.map +1 -0
- package/build/legacy/components/carousel/carousel.d.cts +2 -0
- package/build/legacy/components/carousel/index.cjs +257 -0
- package/build/legacy/components/carousel/index.cjs.map +1 -0
- package/build/legacy/components/carousel/index.d.cts +19 -0
- package/build/legacy/components/carousel/parts.cjs +198 -0
- package/build/legacy/components/carousel/parts.cjs.map +1 -0
- package/build/legacy/components/carousel/parts.d.cts +1 -0
- package/build/legacy/components/carousel/primitives.cjs +198 -0
- package/build/legacy/components/carousel/primitives.cjs.map +1 -0
- package/build/legacy/components/carousel/primitives.d.cts +16 -0
- package/build/legacy/index.cjs +490 -418
- package/build/legacy/index.cjs.map +1 -1
- package/build/legacy/index.d.cts +19 -0
- package/build/modern/_tsup-dts-rollup.d.ts +233 -4
- package/build/modern/{chunk-TBCTCQXG.js → chunk-2Z7IKMZC.js} +4 -4
- package/build/modern/{chunk-UAVGKLHV.js → chunk-CONG7TGJ.js} +5 -5
- package/build/modern/{chunk-JBYWQERR.js → chunk-LY6ULD43.js} +4 -4
- package/build/modern/chunk-PH3GZIQE.js +39 -0
- package/build/modern/chunk-PH3GZIQE.js.map +1 -0
- package/build/modern/chunk-RJTFRZAL.js +32 -0
- package/build/modern/chunk-RJTFRZAL.js.map +1 -0
- package/build/modern/chunk-VVZOWCNQ.js +27 -0
- package/build/modern/chunk-VVZOWCNQ.js.map +1 -0
- package/build/modern/chunk-YUAUGU3G.js +1 -0
- package/build/modern/chunk-YUAUGU3G.js.map +1 -0
- package/build/modern/components/carousel/carousel.d.ts +2 -0
- package/build/modern/components/carousel/carousel.js +15 -0
- package/build/modern/components/carousel/carousel.js.map +1 -0
- package/build/modern/components/carousel/index.d.ts +19 -0
- package/build/modern/components/carousel/index.js +36 -0
- package/build/modern/components/carousel/index.js.map +1 -0
- package/build/modern/components/carousel/parts.d.ts +1 -0
- package/build/modern/components/carousel/parts.js +12 -0
- package/build/modern/components/carousel/parts.js.map +1 -0
- package/build/modern/components/carousel/primitives.d.ts +16 -0
- package/build/modern/components/carousel/primitives.js +25 -0
- package/build/modern/components/carousel/primitives.js.map +1 -0
- package/build/modern/components/combobox/index.js +6 -6
- package/build/modern/components/cta-dialog/index.js +4 -4
- package/build/modern/components/cta-dialog/provider.js +4 -4
- package/build/modern/components/date-picker/calendar.js +2 -2
- package/build/modern/components/date-picker/index.js +8 -8
- package/build/modern/components/deprecated/Label.js +1 -1
- package/build/modern/components/dialog/index.js +3 -3
- package/build/modern/components/field/index.js +3 -3
- package/build/modern/components/file-upload/file-status.js +1 -1
- package/build/modern/components/file-upload/index.js +1 -1
- package/build/modern/components/notifications/center.js +2 -2
- package/build/modern/components/notifications/index.js +3 -3
- package/build/modern/components/radio/index.js +3 -3
- package/build/modern/components/select/index.js +3 -3
- package/build/modern/context/confirm-modal.js +1 -1
- package/build/modern/context/prompt-modal.js +2 -2
- package/build/modern/index.d.ts +19 -0
- package/build/modern/index.js +152 -125
- package/build/modern/index.js.map +1 -1
- package/package.json +4 -4
- package/src/components/carousel/carousel.tsx +55 -0
- package/src/components/carousel/index.ts +3 -0
- package/src/components/carousel/parts.ts +71 -0
- package/src/components/carousel/primitives.ts +58 -0
- package/src/index.ts +1 -0
- /package/build/modern/{chunk-TBCTCQXG.js.map → chunk-2Z7IKMZC.js.map} +0 -0
- /package/build/modern/{chunk-UAVGKLHV.js.map → chunk-CONG7TGJ.js.map} +0 -0
- /package/build/modern/{chunk-JBYWQERR.js.map → chunk-LY6ULD43.js.map} +0 -0
package/build/modern/index.js
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
import "./chunk-LRHHDORZ.js";
|
|
2
|
-
import {
|
|
3
|
-
Theme
|
|
4
|
-
} from "./chunk-K3YEOS6O.js";
|
|
5
|
-
import "./chunk-V4YYGGMH.js";
|
|
6
|
-
import {
|
|
7
|
-
ToggleParts
|
|
8
|
-
} from "./chunk-NHM5IWBE.js";
|
|
9
|
-
import {
|
|
10
|
-
ToggleIndicator,
|
|
11
|
-
ToggleRoot
|
|
12
|
-
} from "./chunk-VYJAPLLO.js";
|
|
13
1
|
import "./chunk-TLRRDNS3.js";
|
|
14
2
|
import {
|
|
15
3
|
Tooltip
|
|
@@ -25,24 +13,22 @@ import {
|
|
|
25
13
|
TooltipRoot,
|
|
26
14
|
TooltipTrigger
|
|
27
15
|
} from "./chunk-4O26WCRC.js";
|
|
28
|
-
import "./chunk-4HVKAHBX.js";
|
|
29
|
-
import {
|
|
30
|
-
Tabs
|
|
31
|
-
} from "./chunk-V5TUC5AS.js";
|
|
32
|
-
import {
|
|
33
|
-
TabsParts
|
|
34
|
-
} from "./chunk-7JNOY5MW.js";
|
|
35
|
-
import {
|
|
36
|
-
TabsContent,
|
|
37
|
-
TabsIndicator,
|
|
38
|
-
TabsList,
|
|
39
|
-
TabsRoot,
|
|
40
|
-
TabsTrigger
|
|
41
|
-
} from "./chunk-2UQWJSA6.js";
|
|
42
16
|
import "./chunk-EZTDGHEX.js";
|
|
43
17
|
import {
|
|
44
18
|
Tag
|
|
45
19
|
} from "./chunk-3Z6W4ZFA.js";
|
|
20
|
+
import "./chunk-LRHHDORZ.js";
|
|
21
|
+
import {
|
|
22
|
+
Theme
|
|
23
|
+
} from "./chunk-K3YEOS6O.js";
|
|
24
|
+
import "./chunk-V4YYGGMH.js";
|
|
25
|
+
import {
|
|
26
|
+
ToggleParts
|
|
27
|
+
} from "./chunk-NHM5IWBE.js";
|
|
28
|
+
import {
|
|
29
|
+
ToggleIndicator,
|
|
30
|
+
ToggleRoot
|
|
31
|
+
} from "./chunk-VYJAPLLO.js";
|
|
46
32
|
import "./chunk-M6WOFFOA.js";
|
|
47
33
|
import {
|
|
48
34
|
TableParts
|
|
@@ -62,6 +48,20 @@ import {
|
|
|
62
48
|
Thead,
|
|
63
49
|
Tr
|
|
64
50
|
} from "./chunk-SITE2UML.js";
|
|
51
|
+
import "./chunk-4HVKAHBX.js";
|
|
52
|
+
import {
|
|
53
|
+
Tabs
|
|
54
|
+
} from "./chunk-V5TUC5AS.js";
|
|
55
|
+
import {
|
|
56
|
+
TabsParts
|
|
57
|
+
} from "./chunk-7JNOY5MW.js";
|
|
58
|
+
import {
|
|
59
|
+
TabsContent,
|
|
60
|
+
TabsIndicator,
|
|
61
|
+
TabsList,
|
|
62
|
+
TabsRoot,
|
|
63
|
+
TabsTrigger
|
|
64
|
+
} from "./chunk-2UQWJSA6.js";
|
|
65
65
|
import "./chunk-UDY6USHW.js";
|
|
66
66
|
import {
|
|
67
67
|
Switch
|
|
@@ -77,26 +77,7 @@ import {
|
|
|
77
77
|
SwitchThumb
|
|
78
78
|
} from "./chunk-GTAIWUFQ.js";
|
|
79
79
|
import "./chunk-CAZ3EICD.js";
|
|
80
|
-
import "./chunk-ZOSGUATV.js";
|
|
81
|
-
import {
|
|
82
|
-
Rating
|
|
83
|
-
} from "./chunk-OX3NA6DQ.js";
|
|
84
|
-
import {
|
|
85
|
-
RatingParts
|
|
86
|
-
} from "./chunk-YWPXLHUO.js";
|
|
87
|
-
import {
|
|
88
|
-
RatingContext,
|
|
89
|
-
RatingControl,
|
|
90
|
-
RatingHiddenInput,
|
|
91
|
-
RatingItem,
|
|
92
|
-
RatingItemContext,
|
|
93
|
-
RatingLabel,
|
|
94
|
-
RatingRoot
|
|
95
|
-
} from "./chunk-JUSH26RO.js";
|
|
96
80
|
import "./chunk-B4GBNIU7.js";
|
|
97
|
-
import {
|
|
98
|
-
Select
|
|
99
|
-
} from "./chunk-HCH5I26B.js";
|
|
100
81
|
import {
|
|
101
82
|
OptionGroup,
|
|
102
83
|
OptionGroupLabel
|
|
@@ -104,16 +85,19 @@ import {
|
|
|
104
85
|
import {
|
|
105
86
|
Option
|
|
106
87
|
} from "./chunk-INQZQMLL.js";
|
|
88
|
+
import {
|
|
89
|
+
Select
|
|
90
|
+
} from "./chunk-HCH5I26B.js";
|
|
107
91
|
import {
|
|
108
92
|
SelectParts
|
|
109
93
|
} from "./chunk-SP7TSFMZ.js";
|
|
110
94
|
import "./chunk-OGYMMATX.js";
|
|
111
|
-
import {
|
|
112
|
-
Radio
|
|
113
|
-
} from "./chunk-KITDXURN.js";
|
|
114
95
|
import {
|
|
115
96
|
RadioParts
|
|
116
97
|
} from "./chunk-DH7SFE2R.js";
|
|
98
|
+
import {
|
|
99
|
+
Radio
|
|
100
|
+
} from "./chunk-KITDXURN.js";
|
|
117
101
|
import {
|
|
118
102
|
RadioGroup,
|
|
119
103
|
RadioGroupIndicator,
|
|
@@ -124,27 +108,22 @@ import {
|
|
|
124
108
|
RadioGroupLabel,
|
|
125
109
|
RadioGroupRoot
|
|
126
110
|
} from "./chunk-4O64W4BA.js";
|
|
127
|
-
import "./chunk-
|
|
111
|
+
import "./chunk-ZOSGUATV.js";
|
|
128
112
|
import {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
useNotificationCenter
|
|
132
|
-
} from "./chunk-JBYWQERR.js";
|
|
133
|
-
import "./chunk-JVAGLLOA.js";
|
|
134
|
-
import "./chunk-JHCKXQEK.js";
|
|
113
|
+
Rating
|
|
114
|
+
} from "./chunk-OX3NA6DQ.js";
|
|
135
115
|
import {
|
|
136
|
-
|
|
137
|
-
} from "./chunk-
|
|
116
|
+
RatingParts
|
|
117
|
+
} from "./chunk-YWPXLHUO.js";
|
|
138
118
|
import {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
import "./chunk-34U4QQ3I.js";
|
|
119
|
+
RatingContext,
|
|
120
|
+
RatingControl,
|
|
121
|
+
RatingHiddenInput,
|
|
122
|
+
RatingItem,
|
|
123
|
+
RatingItemContext,
|
|
124
|
+
RatingLabel,
|
|
125
|
+
RatingRoot
|
|
126
|
+
} from "./chunk-JUSH26RO.js";
|
|
148
127
|
import "./chunk-X5LBBTCV.js";
|
|
149
128
|
import {
|
|
150
129
|
Menu,
|
|
@@ -167,19 +146,27 @@ import {
|
|
|
167
146
|
MenuTriggerEl,
|
|
168
147
|
MenuTriggerItem
|
|
169
148
|
} from "./chunk-WGWEAB2Q.js";
|
|
170
|
-
import "./chunk-
|
|
149
|
+
import "./chunk-IOLYX3SY.js";
|
|
150
|
+
import "./chunk-MV2AU6UV.js";
|
|
171
151
|
import {
|
|
172
|
-
|
|
173
|
-
|
|
152
|
+
NotificationCenter,
|
|
153
|
+
toaster,
|
|
154
|
+
useNotificationCenter
|
|
155
|
+
} from "./chunk-LY6ULD43.js";
|
|
156
|
+
import "./chunk-JHCKXQEK.js";
|
|
157
|
+
import "./chunk-JVAGLLOA.js";
|
|
174
158
|
import {
|
|
175
|
-
|
|
176
|
-
} from "./chunk-
|
|
159
|
+
NotificationParts
|
|
160
|
+
} from "./chunk-L4KBNOWP.js";
|
|
177
161
|
import {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
162
|
+
NotificationActionTrigger,
|
|
163
|
+
NotificationCloseTrigger,
|
|
164
|
+
NotificationDescription,
|
|
165
|
+
NotificationHeading,
|
|
166
|
+
NotificationProvider,
|
|
167
|
+
NotificationRoot
|
|
168
|
+
} from "./chunk-LO6YTNOP.js";
|
|
169
|
+
import "./chunk-34U4QQ3I.js";
|
|
183
170
|
import {
|
|
184
171
|
FileStatus,
|
|
185
172
|
processStatus
|
|
@@ -195,6 +182,19 @@ import {
|
|
|
195
182
|
import {
|
|
196
183
|
FileUploader
|
|
197
184
|
} from "./chunk-CHEYITRR.js";
|
|
185
|
+
import "./chunk-IDTAB2UJ.js";
|
|
186
|
+
import {
|
|
187
|
+
Fieldset
|
|
188
|
+
} from "./chunk-VQUJGCZW.js";
|
|
189
|
+
import {
|
|
190
|
+
FieldsetParts
|
|
191
|
+
} from "./chunk-HMUQEMV2.js";
|
|
192
|
+
import {
|
|
193
|
+
FieldsetErrorText,
|
|
194
|
+
FieldsetHelperText,
|
|
195
|
+
FieldsetLegend,
|
|
196
|
+
FieldsetRoot
|
|
197
|
+
} from "./chunk-5B6LMHY2.js";
|
|
198
198
|
import "./chunk-JIXUOTH4.js";
|
|
199
199
|
import {
|
|
200
200
|
FeatureFlag
|
|
@@ -229,37 +229,23 @@ import {
|
|
|
229
229
|
parseDate,
|
|
230
230
|
today
|
|
231
231
|
} from "./chunk-ADI4DOEW.js";
|
|
232
|
-
import {
|
|
233
|
-
RangePickerInput
|
|
234
|
-
} from "./chunk-YR6G66UT.js";
|
|
235
|
-
import {
|
|
236
|
-
DatePicker
|
|
237
|
-
} from "./chunk-MVHFBVDA.js";
|
|
238
232
|
import {
|
|
239
233
|
DatePickerInput
|
|
240
234
|
} from "./chunk-IVQCMXV6.js";
|
|
241
|
-
import "./chunk-SKOX5PJI.js";
|
|
242
|
-
import "./chunk-IKDXADLX.js";
|
|
243
|
-
import {
|
|
244
|
-
CTAModal,
|
|
245
|
-
useCTAModal
|
|
246
|
-
} from "./chunk-UAVGKLHV.js";
|
|
247
|
-
import "./chunk-Q4CS3AKY.js";
|
|
248
235
|
import {
|
|
249
|
-
|
|
250
|
-
} from "./chunk-
|
|
251
|
-
import "./chunk-
|
|
252
|
-
import "./chunk-3X6VM5FS.js";
|
|
253
|
-
import {
|
|
254
|
-
createCTAModalActions
|
|
255
|
-
} from "./chunk-PLHYOCY3.js";
|
|
236
|
+
RangePickerInput
|
|
237
|
+
} from "./chunk-YR6G66UT.js";
|
|
238
|
+
import "./chunk-SKOX5PJI.js";
|
|
256
239
|
import {
|
|
257
240
|
DatePickerCalendar
|
|
258
|
-
} from "./chunk-
|
|
241
|
+
} from "./chunk-2Z7IKMZC.js";
|
|
242
|
+
import "./chunk-OG644D7M.js";
|
|
259
243
|
import "./chunk-O4W2BVE7.js";
|
|
260
244
|
import "./chunk-K3NML67W.js";
|
|
245
|
+
import {
|
|
246
|
+
DatePicker
|
|
247
|
+
} from "./chunk-MVHFBVDA.js";
|
|
261
248
|
import "./chunk-FSX64HPK.js";
|
|
262
|
-
import "./chunk-OG644D7M.js";
|
|
263
249
|
import "./chunk-X24O5DTP.js";
|
|
264
250
|
import {
|
|
265
251
|
DatePickerParts
|
|
@@ -290,20 +276,13 @@ import {
|
|
|
290
276
|
DatePickerViewTrigger,
|
|
291
277
|
DatePickerYearSelect
|
|
292
278
|
} from "./chunk-TJSHJF6G.js";
|
|
293
|
-
import "./chunk-
|
|
279
|
+
import "./chunk-ML2IKLMJ.js";
|
|
294
280
|
import {
|
|
295
|
-
|
|
296
|
-
} from "./chunk-
|
|
281
|
+
ComboItemGroup
|
|
282
|
+
} from "./chunk-7B2ZHSH3.js";
|
|
297
283
|
import {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
CircularProgressCircleTrack,
|
|
301
|
-
CircularProgressInfoGroup,
|
|
302
|
-
CircularProgressLabel,
|
|
303
|
-
CircularProgressRoot,
|
|
304
|
-
CircularProgressValueText
|
|
305
|
-
} from "./chunk-IYF5FS6N.js";
|
|
306
|
-
import "./chunk-ML2IKLMJ.js";
|
|
284
|
+
ComboItemWithIndicator
|
|
285
|
+
} from "./chunk-EZJMTWXK.js";
|
|
307
286
|
import {
|
|
308
287
|
useStatefulCollection
|
|
309
288
|
} from "./chunk-ET3UY6GV.js";
|
|
@@ -325,15 +304,37 @@ import {
|
|
|
325
304
|
SelectValueText,
|
|
326
305
|
createSelectCollection
|
|
327
306
|
} from "./chunk-LOJBIVY4.js";
|
|
307
|
+
import "./chunk-IKDXADLX.js";
|
|
328
308
|
import {
|
|
329
|
-
|
|
330
|
-
|
|
309
|
+
CTAModal,
|
|
310
|
+
useCTAModal
|
|
311
|
+
} from "./chunk-CONG7TGJ.js";
|
|
312
|
+
import "./chunk-Q4CS3AKY.js";
|
|
313
|
+
import "./chunk-3X6VM5FS.js";
|
|
331
314
|
import {
|
|
332
|
-
|
|
333
|
-
} from "./chunk-
|
|
315
|
+
createCTAModalActions
|
|
316
|
+
} from "./chunk-PLHYOCY3.js";
|
|
317
|
+
import "./chunk-4LSTU6WU.js";
|
|
318
|
+
import "./chunk-TIJAFPHQ.js";
|
|
334
319
|
import {
|
|
335
|
-
|
|
336
|
-
} from "./chunk-
|
|
320
|
+
Checkbox
|
|
321
|
+
} from "./chunk-45ZTZUCD.js";
|
|
322
|
+
import "./chunk-5IMS6G4G.js";
|
|
323
|
+
import {
|
|
324
|
+
CircularProgress
|
|
325
|
+
} from "./chunk-D7BCQ2CQ.js";
|
|
326
|
+
import {
|
|
327
|
+
CircularProgressCircle,
|
|
328
|
+
CircularProgressCircleRange,
|
|
329
|
+
CircularProgressCircleTrack,
|
|
330
|
+
CircularProgressInfoGroup,
|
|
331
|
+
CircularProgressLabel,
|
|
332
|
+
CircularProgressRoot,
|
|
333
|
+
CircularProgressValueText
|
|
334
|
+
} from "./chunk-IYF5FS6N.js";
|
|
335
|
+
import {
|
|
336
|
+
Combobox
|
|
337
|
+
} from "./chunk-2D6BHWPB.js";
|
|
337
338
|
import {
|
|
338
339
|
ComboboxParts
|
|
339
340
|
} from "./chunk-AQNXQVXP.js";
|
|
@@ -358,10 +359,26 @@ import "./chunk-CYC2YUKU.js";
|
|
|
358
359
|
import {
|
|
359
360
|
ButtonParts
|
|
360
361
|
} from "./chunk-N5D6HNGL.js";
|
|
361
|
-
import "./chunk-
|
|
362
|
+
import "./chunk-YUAUGU3G.js";
|
|
362
363
|
import {
|
|
363
|
-
|
|
364
|
-
} from "./chunk-
|
|
364
|
+
Carousel
|
|
365
|
+
} from "./chunk-RJTFRZAL.js";
|
|
366
|
+
import {
|
|
367
|
+
For
|
|
368
|
+
} from "./chunk-D2TQPEZQ.js";
|
|
369
|
+
import {
|
|
370
|
+
CarouselParts
|
|
371
|
+
} from "./chunk-VVZOWCNQ.js";
|
|
372
|
+
import {
|
|
373
|
+
CarouselControl,
|
|
374
|
+
CarouselIndicator,
|
|
375
|
+
CarouselIndicatorGroup,
|
|
376
|
+
CarouselItem,
|
|
377
|
+
CarouselItemGroup,
|
|
378
|
+
CarouselNextTrigger,
|
|
379
|
+
CarouselPrevTrigger,
|
|
380
|
+
CarouselRoot
|
|
381
|
+
} from "./chunk-PH3GZIQE.js";
|
|
365
382
|
import "./chunk-HYEFRC5Z.js";
|
|
366
383
|
import {
|
|
367
384
|
CheckboxParts
|
|
@@ -431,27 +448,27 @@ import {
|
|
|
431
448
|
usePromptModal
|
|
432
449
|
} from "./chunk-UZZ26IWW.js";
|
|
433
450
|
import "./chunk-TYPULJMJ.js";
|
|
451
|
+
import {
|
|
452
|
+
FieldParts
|
|
453
|
+
} from "./chunk-SFS5ILWG.js";
|
|
434
454
|
import {
|
|
435
455
|
Field
|
|
436
456
|
} from "./chunk-6LU43Z4K.js";
|
|
437
457
|
import "./chunk-TIQO4VNE.js";
|
|
438
|
-
import {
|
|
439
|
-
FieldParts
|
|
440
|
-
} from "./chunk-SFS5ILWG.js";
|
|
441
458
|
import "./chunk-NZP3XQNQ.js";
|
|
442
459
|
import {
|
|
443
460
|
Text
|
|
444
461
|
} from "./chunk-VPD3PPBW.js";
|
|
445
462
|
import "./chunk-DJOYRUNT.js";
|
|
463
|
+
import {
|
|
464
|
+
DialogParts
|
|
465
|
+
} from "./chunk-TKHDOZWN.js";
|
|
446
466
|
import {
|
|
447
467
|
DialogCloseIconTrigger
|
|
448
468
|
} from "./chunk-2KVC3OJ3.js";
|
|
449
469
|
import {
|
|
450
470
|
Dialog
|
|
451
471
|
} from "./chunk-OZTYYWIX.js";
|
|
452
|
-
import {
|
|
453
|
-
DialogParts
|
|
454
|
-
} from "./chunk-TKHDOZWN.js";
|
|
455
472
|
import {
|
|
456
473
|
DialogBackdrop,
|
|
457
474
|
DialogCloseTrigger,
|
|
@@ -595,6 +612,16 @@ export {
|
|
|
595
612
|
CTAModal,
|
|
596
613
|
CalendarDate,
|
|
597
614
|
Caption,
|
|
615
|
+
Carousel,
|
|
616
|
+
CarouselControl,
|
|
617
|
+
CarouselIndicator,
|
|
618
|
+
CarouselIndicatorGroup,
|
|
619
|
+
CarouselItem,
|
|
620
|
+
CarouselItemGroup,
|
|
621
|
+
CarouselNextTrigger,
|
|
622
|
+
CarouselParts,
|
|
623
|
+
CarouselPrevTrigger,
|
|
624
|
+
CarouselRoot,
|
|
598
625
|
CerberusProvider,
|
|
599
626
|
Checkbox,
|
|
600
627
|
CheckboxControl,
|
|
@@ -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/NavMenuTrigger'\nexport * from './components/deprecated/NavMenuList'\nexport * from './components/deprecated/NavMenuLink'\nexport * from './components/deprecated/Legend'\nexport * from './hooks/useDate'\nexport * from './hooks/useToggle'\nexport * from './components/Droppable'\n\n// components\n\nexport * from './components/admonition/index'\nexport * from './components/accordion/index'\nexport * from './components/avatar/index'\nexport * from './components/button/index'\nexport * from './components/checkbox/index'\nexport * from './components/circular-progress/index'\nexport * from './components/combobox/index'\nexport * from './components/cta-dialog/index'\nexport * from './components/date-picker/index'\nexport * from './components/dialog/index'\nexport * from './components/feature-flag/index'\nexport * from './components/field/index'\nexport * from './components/fieldset/index'\nexport * from './components/file-upload/index'\nexport * from './components/for/index'\nexport * from './components/icon-button/index'\nexport * from './components/menu/index'\nexport * from './components/notifications/index'\nexport * from './components/portal/index'\nexport * from './components/progress/index'\nexport * from './components/radio/index'\nexport * from './components/rating/index'\nexport * from './components/select/index'\nexport * from './components/show/index'\nexport * from './components/spinner/index'\nexport * from './components/switch/index'\nexport * from './components/table/index'\nexport * from './components/tabs/index'\nexport * from './components/tag/index'\nexport * from './components/text/index'\nexport * from './components/theme/index'\nexport * from './components/toggle/index'\nexport * from './components/tooltip/index'\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/prompt-modal'\nexport * from './context/theme'\n\n// hooks\n\nexport * from './hooks/useTheme'\nexport * from './hooks/useRootColors'\n\n// utils\n\nexport * from './config/index'\nexport * from './utils/index'\nexport * from './system/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/NavMenuTrigger'\nexport * from './components/deprecated/NavMenuList'\nexport * from './components/deprecated/NavMenuLink'\nexport * from './components/deprecated/Legend'\nexport * from './hooks/useDate'\nexport * from './hooks/useToggle'\nexport * from './components/Droppable'\n\n// components\n\nexport * from './components/admonition/index'\nexport * from './components/accordion/index'\nexport * from './components/avatar/index'\nexport * from './components/button/index'\nexport * from './components/carousel/index'\nexport * from './components/checkbox/index'\nexport * from './components/circular-progress/index'\nexport * from './components/combobox/index'\nexport * from './components/cta-dialog/index'\nexport * from './components/date-picker/index'\nexport * from './components/dialog/index'\nexport * from './components/feature-flag/index'\nexport * from './components/field/index'\nexport * from './components/fieldset/index'\nexport * from './components/file-upload/index'\nexport * from './components/for/index'\nexport * from './components/icon-button/index'\nexport * from './components/menu/index'\nexport * from './components/notifications/index'\nexport * from './components/portal/index'\nexport * from './components/progress/index'\nexport * from './components/radio/index'\nexport * from './components/rating/index'\nexport * from './components/select/index'\nexport * from './components/show/index'\nexport * from './components/spinner/index'\nexport * from './components/switch/index'\nexport * from './components/table/index'\nexport * from './components/tabs/index'\nexport * from './components/tag/index'\nexport * from './components/text/index'\nexport * from './components/theme/index'\nexport * from './components/toggle/index'\nexport * from './components/tooltip/index'\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/prompt-modal'\nexport * from './context/theme'\n\n// hooks\n\nexport * from './hooks/useTheme'\nexport * from './hooks/useRootColors'\n\n// utils\n\nexport * from './config/index'\nexport * from './utils/index'\nexport * from './system/index'\n\n// shared types\n\nexport * from './types'\n\n// 3rd party\n\nexport * from '@dnd-kit/core'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiFA,cAAc;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cerberus-design/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "The Cerberus Design React component library.",
|
|
5
5
|
"browserslist": "> 0.25%, not dead",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"react-dom": "*"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@ark-ui/react": "^5.
|
|
16
|
+
"@ark-ui/react": "^5.16.1",
|
|
17
17
|
"@dnd-kit/core": "^6.3.1"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"react": "^19.1.0",
|
|
26
26
|
"react-dom": "^19.1.0",
|
|
27
27
|
"tsup": "^8.4.0",
|
|
28
|
-
"@cerberus-design/
|
|
29
|
-
"@cerberus-design/
|
|
28
|
+
"@cerberus-design/configs": "0.0.0",
|
|
29
|
+
"@cerberus-design/panda-preset": "0.20.0"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react'
|
|
2
|
+
import { Show } from '../show/show'
|
|
3
|
+
import { For } from '../for/for'
|
|
4
|
+
import { CarouselParts } from './parts'
|
|
5
|
+
import type { CarouselRootProps } from './primitives'
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* This module contains an abstraction of the carousel family of components.
|
|
9
|
+
* @module carousel
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
export interface CarouselProps extends CarouselRootProps {
|
|
13
|
+
/**
|
|
14
|
+
* Whether to show the carousel indicators (dot list).
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
showIndicators?: boolean
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The Carousel component is an abstraction of the carousel family of
|
|
22
|
+
* components. It provides a simple interface for creating carousels with
|
|
23
|
+
* various configurations.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* This component uses the `CarouselParts` object to provide the necessary
|
|
27
|
+
* parts. For customization, we recommend using the `CarouselParts` object
|
|
28
|
+
* directly in combination with the `css` prop.
|
|
29
|
+
*/
|
|
30
|
+
function CarouselEl(props: PropsWithChildren<CarouselProps>) {
|
|
31
|
+
const { showIndicators = false, children, ...rootProps } = props
|
|
32
|
+
|
|
33
|
+
return (
|
|
34
|
+
<CarouselParts.Root {...rootProps}>
|
|
35
|
+
{children}
|
|
36
|
+
|
|
37
|
+
<Show when={showIndicators}>
|
|
38
|
+
<CarouselParts.IndicatorGroup>
|
|
39
|
+
<For each={Array.from({ length: props.slideCount ?? 0 })}>
|
|
40
|
+
{(_, idx) => <CarouselParts.Indicator key={idx} index={idx} />}
|
|
41
|
+
</For>
|
|
42
|
+
</CarouselParts.IndicatorGroup>
|
|
43
|
+
</Show>
|
|
44
|
+
</CarouselParts.Root>
|
|
45
|
+
)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export const Carousel = {
|
|
49
|
+
Root: CarouselEl,
|
|
50
|
+
ItemGroup: CarouselParts.ItemGroup,
|
|
51
|
+
Item: CarouselParts.Item,
|
|
52
|
+
Control: CarouselParts.Control,
|
|
53
|
+
PrevTrigger: CarouselParts.PrevTrigger,
|
|
54
|
+
NextTrigger: CarouselParts.NextTrigger,
|
|
55
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { ElementType } from 'react'
|
|
2
|
+
import {
|
|
3
|
+
CarouselRoot,
|
|
4
|
+
CarouselControl,
|
|
5
|
+
CarouselPrevTrigger,
|
|
6
|
+
CarouselNextTrigger,
|
|
7
|
+
CarouselIndicatorGroup,
|
|
8
|
+
CarouselIndicator,
|
|
9
|
+
CarouselItemGroup,
|
|
10
|
+
CarouselItem,
|
|
11
|
+
} from './primitives'
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* This module contains the parts of the Carousel component.
|
|
15
|
+
* @module 'carousel/parts'
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
interface CarouselPartsValue {
|
|
19
|
+
/**
|
|
20
|
+
* The context provider of the carousel.
|
|
21
|
+
*/
|
|
22
|
+
Root: ElementType
|
|
23
|
+
/**
|
|
24
|
+
* The control of the carousel.
|
|
25
|
+
*/
|
|
26
|
+
Control: ElementType
|
|
27
|
+
/**
|
|
28
|
+
* The previous trigger of the carousel.
|
|
29
|
+
*/
|
|
30
|
+
PrevTrigger: ElementType
|
|
31
|
+
/**
|
|
32
|
+
* The next trigger of the carousel.
|
|
33
|
+
*/
|
|
34
|
+
NextTrigger: ElementType
|
|
35
|
+
/**
|
|
36
|
+
* The indicator group of the carousel.
|
|
37
|
+
*/
|
|
38
|
+
IndicatorGroup: ElementType
|
|
39
|
+
/**
|
|
40
|
+
* The indicator of the carousel.
|
|
41
|
+
*/
|
|
42
|
+
Indicator: ElementType
|
|
43
|
+
/**
|
|
44
|
+
* The item group of the carousel.
|
|
45
|
+
*/
|
|
46
|
+
ItemGroup: ElementType
|
|
47
|
+
/**
|
|
48
|
+
* The item of the carousel.
|
|
49
|
+
*/
|
|
50
|
+
Item: ElementType
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* An Object containing the parts of the Button component. For users that
|
|
55
|
+
* prefer Object component syntax.
|
|
56
|
+
*
|
|
57
|
+
* @remarks
|
|
58
|
+
*
|
|
59
|
+
* When using object component syntax, you import the CarouselParts object and
|
|
60
|
+
* the entire family of components vs. only what you use.
|
|
61
|
+
*/
|
|
62
|
+
export const CarouselParts: CarouselPartsValue = {
|
|
63
|
+
Root: CarouselRoot,
|
|
64
|
+
Control: CarouselControl,
|
|
65
|
+
PrevTrigger: CarouselPrevTrigger,
|
|
66
|
+
NextTrigger: CarouselNextTrigger,
|
|
67
|
+
IndicatorGroup: CarouselIndicatorGroup,
|
|
68
|
+
Indicator: CarouselIndicator,
|
|
69
|
+
ItemGroup: CarouselItemGroup,
|
|
70
|
+
Item: CarouselItem,
|
|
71
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Carousel,
|
|
3
|
+
type CarouselRootProps as ArkRootProps,
|
|
4
|
+
type CarouselControlProps as ArkControlProps,
|
|
5
|
+
type CarouselPrevTriggerProps as ArkPrevTriggerProps,
|
|
6
|
+
type CarouselNextTriggerProps as ArkNextTriggerProps,
|
|
7
|
+
type CarouselIndicatorGroupProps as ArkIndicatorGroupProps,
|
|
8
|
+
type CarouselIndicatorProps as ArkIndicatorProps,
|
|
9
|
+
type CarouselItemGroupProps as ArkItemGroupProps,
|
|
10
|
+
type CarouselItemProps as ArkItemProps,
|
|
11
|
+
} from '@ark-ui/react/carousel'
|
|
12
|
+
import { carousel, type CarouselVariantProps } from 'styled-system/recipes'
|
|
13
|
+
import { createCerberusPrimitive } from '../../system/index'
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* This module contains the carousel primitives.
|
|
17
|
+
* @module carousel/primitives
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
const { withSlotRecipe } = createCerberusPrimitive(carousel)
|
|
21
|
+
|
|
22
|
+
// Primitives
|
|
23
|
+
|
|
24
|
+
export type CarouselRootProps = CarouselVariantProps & ArkRootProps
|
|
25
|
+
export const CarouselRoot = withSlotRecipe(Carousel.Root, 'root')
|
|
26
|
+
|
|
27
|
+
export type CarouselControlProps = CarouselVariantProps & ArkControlProps
|
|
28
|
+
export const CarouselControl = withSlotRecipe(Carousel.Control, 'control')
|
|
29
|
+
|
|
30
|
+
export type CarouselPrevTriggerProps = CarouselVariantProps &
|
|
31
|
+
ArkPrevTriggerProps
|
|
32
|
+
export const CarouselPrevTrigger = withSlotRecipe(
|
|
33
|
+
Carousel.PrevTrigger,
|
|
34
|
+
'prevTrigger',
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
export type CarouselNextTriggerProps = CarouselVariantProps &
|
|
38
|
+
ArkNextTriggerProps
|
|
39
|
+
export const CarouselNextTrigger = withSlotRecipe(
|
|
40
|
+
Carousel.NextTrigger,
|
|
41
|
+
'nextTrigger',
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
export type CarouselIndicatorGroupProps = CarouselVariantProps &
|
|
45
|
+
ArkIndicatorGroupProps
|
|
46
|
+
export const CarouselIndicatorGroup = withSlotRecipe(
|
|
47
|
+
Carousel.IndicatorGroup,
|
|
48
|
+
'indicatorGroup',
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
export type CarouselIndicatorProps = CarouselVariantProps & ArkIndicatorProps
|
|
52
|
+
export const CarouselIndicator = withSlotRecipe(Carousel.Indicator, 'indicator')
|
|
53
|
+
|
|
54
|
+
export type CarouselItemGroupProps = CarouselVariantProps & ArkItemGroupProps
|
|
55
|
+
export const CarouselItemGroup = withSlotRecipe(Carousel.ItemGroup, 'itemGroup')
|
|
56
|
+
|
|
57
|
+
export type CarouselItemProps = CarouselVariantProps & ArkItemProps
|
|
58
|
+
export const CarouselItem = withSlotRecipe(Carousel.Item, 'item')
|
package/src/index.ts
CHANGED
|
@@ -22,6 +22,7 @@ export * from './components/admonition/index'
|
|
|
22
22
|
export * from './components/accordion/index'
|
|
23
23
|
export * from './components/avatar/index'
|
|
24
24
|
export * from './components/button/index'
|
|
25
|
+
export * from './components/carousel/index'
|
|
25
26
|
export * from './components/checkbox/index'
|
|
26
27
|
export * from './components/circular-progress/index'
|
|
27
28
|
export * from './components/combobox/index'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|