@cerberus-design/react 0.16.0-next-ba05f96 → 0.16.0-next-d049636
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 +198 -160
- package/build/legacy/components/accordion/index.cjs +178 -0
- package/build/legacy/components/accordion/index.cjs.map +1 -0
- package/build/legacy/components/accordion/item-group.cjs +166 -0
- package/build/legacy/components/accordion/item-group.cjs.map +1 -0
- package/build/legacy/components/accordion/item-indicator.cjs +114 -0
- package/build/legacy/components/accordion/item-indicator.cjs.map +1 -0
- package/build/legacy/components/accordion/parts.cjs +91 -0
- package/build/legacy/components/accordion/parts.cjs.map +1 -0
- package/build/legacy/components/{Accordion.cjs → accordion/primitives.cjs} +35 -32
- package/build/legacy/components/accordion/primitives.cjs.map +1 -0
- package/build/legacy/components/admonition/admonition.cjs +314 -0
- package/build/legacy/components/admonition/admonition.cjs.map +1 -0
- package/build/legacy/components/admonition/index.cjs +326 -0
- package/build/legacy/components/admonition/index.cjs.map +1 -0
- package/build/legacy/components/{Admonition.client.cjs → admonition/match-avatar.cjs} +61 -65
- package/build/legacy/components/admonition/match-avatar.cjs.map +1 -0
- package/build/legacy/components/admonition/parts.cjs +88 -0
- package/build/legacy/components/admonition/parts.cjs.map +1 -0
- package/build/legacy/components/admonition/primitives.cjs +85 -0
- package/build/legacy/components/admonition/primitives.cjs.map +1 -0
- package/build/legacy/index.cjs +1005 -976
- package/build/legacy/index.cjs.map +1 -1
- package/build/modern/_tsup-dts-rollup.d.ts +198 -160
- package/build/modern/{chunk-RHCTPSKT.js → chunk-2KPSUYFL.js} +4 -4
- package/build/modern/chunk-572S5CLA.js +41 -0
- package/build/modern/chunk-572S5CLA.js.map +1 -0
- package/build/modern/chunk-6OJ27QWV.js +21 -0
- package/build/modern/chunk-6OJ27QWV.js.map +1 -0
- package/build/modern/{chunk-3B4SFTQB.js → chunk-A45TFOGO.js} +4 -4
- package/build/modern/{chunk-RKVY2HJ3.js → chunk-AAGQR6B4.js} +4 -4
- package/build/modern/chunk-CPNKDKC2.js +64 -0
- package/build/modern/chunk-CPNKDKC2.js.map +1 -0
- package/build/modern/{chunk-J7SAFAW3.js → chunk-EKIAT7N7.js} +4 -4
- package/build/modern/{chunk-VTQ6RW3Z.js → chunk-EKZENP7X.js} +5 -5
- package/build/modern/{chunk-U5XRQ2JZ.js → chunk-EQPYRZ3X.js} +6 -6
- package/build/modern/chunk-FWVFM7RK.js +38 -0
- package/build/modern/chunk-FWVFM7RK.js.map +1 -0
- package/build/modern/{chunk-FBS7AX76.js → chunk-NTU5OYUF.js} +4 -4
- package/build/modern/chunk-R2V75WU6.js +1 -0
- package/build/modern/chunk-RKGFPKKK.js +59 -0
- package/build/modern/chunk-RKGFPKKK.js.map +1 -0
- package/build/modern/chunk-RQCJKDXU.js +21 -0
- package/build/modern/chunk-RQCJKDXU.js.map +1 -0
- package/build/modern/chunk-TM6TVO2D.js +78 -0
- package/build/modern/chunk-TM6TVO2D.js.map +1 -0
- package/build/modern/chunk-UR2NYAQC.js +1 -0
- package/build/modern/chunk-XBDEIBW2.js +21 -0
- package/build/modern/chunk-XBDEIBW2.js.map +1 -0
- package/build/modern/{chunk-QQCB6JXW.js → chunk-XTIIAYPU.js} +4 -4
- package/build/modern/{chunk-R7MPDSXX.js → chunk-XYDJ5TRW.js} +13 -13
- package/build/modern/components/DatePicker.client.js +3 -3
- package/build/modern/components/FileStatus.js +4 -4
- package/build/modern/components/accordion/index.js +31 -0
- package/build/modern/components/accordion/item-group.js +16 -0
- package/build/modern/components/accordion/item-indicator.js +11 -0
- package/build/modern/components/accordion/parts.js +8 -0
- package/build/modern/components/accordion/parts.js.map +1 -0
- package/build/modern/components/accordion/primitives.js +15 -0
- package/build/modern/components/accordion/primitives.js.map +1 -0
- package/build/modern/components/admonition/admonition.js +15 -0
- package/build/modern/components/admonition/admonition.js.map +1 -0
- package/build/modern/components/admonition/index.js +30 -0
- package/build/modern/components/admonition/index.js.map +1 -0
- package/build/modern/components/admonition/match-avatar.js +11 -0
- package/build/modern/components/admonition/match-avatar.js.map +1 -0
- package/build/modern/components/admonition/parts.js +8 -0
- package/build/modern/components/admonition/parts.js.map +1 -0
- package/build/modern/components/admonition/primitives.js +15 -0
- package/build/modern/components/admonition/primitives.js.map +1 -0
- package/build/modern/components/combobox/combobox.js +2 -2
- package/build/modern/components/combobox/index.js +7 -7
- package/build/modern/components/cta-dialog/index.js +4 -4
- package/build/modern/components/cta-dialog/provider.js +4 -4
- package/build/modern/components/deprecated/Label.js +2 -2
- package/build/modern/components/field/field.js +2 -2
- package/build/modern/components/field/index.js +2 -2
- package/build/modern/components/rating/index.js +2 -2
- package/build/modern/components/rating/rating.js +2 -2
- package/build/modern/components/select/index.js +4 -4
- package/build/modern/context/confirm-modal.js +4 -4
- package/build/modern/context/notification-center.js +3 -3
- package/build/modern/context/prompt-modal.js +12 -12
- package/build/modern/index.js +201 -182
- package/build/modern/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/accordion/index.ts +3 -0
- package/src/components/accordion/item-group.tsx +66 -0
- package/src/components/accordion/item-indicator.tsx +27 -0
- package/src/components/accordion/parts.ts +53 -0
- package/src/components/accordion/primitives.tsx +101 -0
- package/src/components/admonition/admonition.tsx +65 -0
- package/src/components/admonition/index.ts +3 -0
- package/src/components/admonition/match-avatar.tsx +84 -0
- package/src/components/admonition/parts.ts +53 -0
- package/src/components/admonition/primitives.tsx +73 -0
- package/src/index.ts +2 -4
- package/build/legacy/components/Accordion.cjs.map +0 -1
- package/build/legacy/components/Accordion.client.cjs +0 -64
- package/build/legacy/components/Accordion.client.cjs.map +0 -1
- package/build/legacy/components/AccordionItemGroup.cjs +0 -142
- package/build/legacy/components/AccordionItemGroup.cjs.map +0 -1
- package/build/legacy/components/Admonition.cjs +0 -273
- package/build/legacy/components/Admonition.cjs.map +0 -1
- package/build/legacy/components/Admonition.client.cjs.map +0 -1
- package/build/modern/chunk-2HOUQ2DX.js +0 -82
- package/build/modern/chunk-2HOUQ2DX.js.map +0 -1
- package/build/modern/chunk-AZRFYQO7.js +0 -60
- package/build/modern/chunk-AZRFYQO7.js.map +0 -1
- package/build/modern/chunk-DXBZ3HMY.js +0 -68
- package/build/modern/chunk-DXBZ3HMY.js.map +0 -1
- package/build/modern/chunk-WN7TJX6J.js +0 -41
- package/build/modern/chunk-WN7TJX6J.js.map +0 -1
- package/build/modern/chunk-XZGXRRSQ.js +0 -31
- package/build/modern/chunk-XZGXRRSQ.js.map +0 -1
- package/build/modern/components/Accordion.client.js +0 -9
- package/build/modern/components/Accordion.js +0 -13
- package/build/modern/components/AccordionItemGroup.js +0 -11
- package/build/modern/components/Admonition.client.js +0 -11
- package/build/modern/components/Admonition.js +0 -15
- package/src/components/Accordion.client.tsx +0 -46
- package/src/components/Accordion.tsx +0 -125
- package/src/components/AccordionItemGroup.tsx +0 -79
- package/src/components/Admonition.client.tsx +0 -73
- package/src/components/Admonition.tsx +0 -117
- /package/build/modern/{chunk-RHCTPSKT.js.map → chunk-2KPSUYFL.js.map} +0 -0
- /package/build/modern/{chunk-3B4SFTQB.js.map → chunk-A45TFOGO.js.map} +0 -0
- /package/build/modern/{chunk-RKVY2HJ3.js.map → chunk-AAGQR6B4.js.map} +0 -0
- /package/build/modern/{chunk-J7SAFAW3.js.map → chunk-EKIAT7N7.js.map} +0 -0
- /package/build/modern/{chunk-VTQ6RW3Z.js.map → chunk-EKZENP7X.js.map} +0 -0
- /package/build/modern/{chunk-U5XRQ2JZ.js.map → chunk-EQPYRZ3X.js.map} +0 -0
- /package/build/modern/{chunk-FBS7AX76.js.map → chunk-NTU5OYUF.js.map} +0 -0
- /package/build/modern/{components/Accordion.client.js.map → chunk-R2V75WU6.js.map} +0 -0
- /package/build/modern/{components/Accordion.js.map → chunk-UR2NYAQC.js.map} +0 -0
- /package/build/modern/{chunk-QQCB6JXW.js.map → chunk-XTIIAYPU.js.map} +0 -0
- /package/build/modern/{chunk-R7MPDSXX.js.map → chunk-XYDJ5TRW.js.map} +0 -0
- /package/build/modern/components/{AccordionItemGroup.js.map → accordion/index.js.map} +0 -0
- /package/build/modern/components/{Admonition.client.js.map → accordion/item-group.js.map} +0 -0
- /package/build/modern/components/{Admonition.js.map → accordion/item-indicator.js.map} +0 -0
package/build/modern/index.js
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Label
|
|
3
|
-
} from "./chunk-LT62577B.js";
|
|
4
|
-
import {
|
|
5
|
-
Modal
|
|
6
|
-
} from "./chunk-Q3I4H6EC.js";
|
|
7
|
-
import {
|
|
8
|
-
ModalDescription
|
|
9
|
-
} from "./chunk-WECB67DC.js";
|
|
10
1
|
import {
|
|
11
2
|
ModalHeader
|
|
12
3
|
} from "./chunk-AUALRL3U.js";
|
|
@@ -30,20 +21,22 @@ import {
|
|
|
30
21
|
FieldsetLabel
|
|
31
22
|
} from "./chunk-DRDNNRU3.js";
|
|
32
23
|
import {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
24
|
+
Label
|
|
25
|
+
} from "./chunk-LT62577B.js";
|
|
26
|
+
import {
|
|
27
|
+
Modal
|
|
28
|
+
} from "./chunk-Q3I4H6EC.js";
|
|
29
|
+
import {
|
|
30
|
+
ModalDescription
|
|
31
|
+
} from "./chunk-WECB67DC.js";
|
|
36
32
|
import {
|
|
37
33
|
ThemeProvider,
|
|
38
34
|
useThemeContext
|
|
39
35
|
} from "./chunk-EB37HRCN.js";
|
|
40
|
-
import {
|
|
41
|
-
Tooltip
|
|
42
|
-
} from "./chunk-LPALHB6R.js";
|
|
43
36
|
import {
|
|
44
37
|
ConfirmModal,
|
|
45
38
|
useConfirmModal
|
|
46
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-EQPYRZ3X.js";
|
|
47
40
|
import {
|
|
48
41
|
NavMenu,
|
|
49
42
|
useNavMenuContext
|
|
@@ -51,11 +44,11 @@ import {
|
|
|
51
44
|
import {
|
|
52
45
|
NotificationCenter,
|
|
53
46
|
useNotificationCenter
|
|
54
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-AAGQR6B4.js";
|
|
55
48
|
import {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
49
|
+
PromptModal,
|
|
50
|
+
usePromptModal
|
|
51
|
+
} from "./chunk-XYDJ5TRW.js";
|
|
59
52
|
import {
|
|
60
53
|
Tab,
|
|
61
54
|
TabIndicator,
|
|
@@ -84,14 +77,8 @@ import {
|
|
|
84
77
|
Thead
|
|
85
78
|
} from "./chunk-Y6QQCRQV.js";
|
|
86
79
|
import {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
MenuGroupLabel,
|
|
90
|
-
MenuItem,
|
|
91
|
-
MenuItemGroup,
|
|
92
|
-
MenuSeparator,
|
|
93
|
-
MenuTrigger
|
|
94
|
-
} from "./chunk-RUR5MV54.js";
|
|
80
|
+
Tooltip
|
|
81
|
+
} from "./chunk-LPALHB6R.js";
|
|
95
82
|
import {
|
|
96
83
|
Notification
|
|
97
84
|
} from "./chunk-RDRD6ACD.js";
|
|
@@ -102,27 +89,9 @@ import {
|
|
|
102
89
|
NotificationHeading
|
|
103
90
|
} from "./chunk-SLHYBPJ5.js";
|
|
104
91
|
import {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
DatePickerDayView,
|
|
109
|
-
DatePickerInput,
|
|
110
|
-
DatePickerMonthView,
|
|
111
|
-
DatePickerTrigger,
|
|
112
|
-
DatePickerViewControlGroup,
|
|
113
|
-
DatePickerYearView,
|
|
114
|
-
RangePickerInput
|
|
115
|
-
} from "./chunk-RHCTPSKT.js";
|
|
116
|
-
import {
|
|
117
|
-
DatePickerContext,
|
|
118
|
-
DatePickerLabel,
|
|
119
|
-
DatePickerTable,
|
|
120
|
-
DatePickerTableCell,
|
|
121
|
-
DatePickerTableCellTrigger,
|
|
122
|
-
DatePickerTableHeader,
|
|
123
|
-
DatePickerView,
|
|
124
|
-
DatePickerViewControl
|
|
125
|
-
} from "./chunk-5EWCH7AI.js";
|
|
92
|
+
Table,
|
|
93
|
+
Tr
|
|
94
|
+
} from "./chunk-B4CVET74.js";
|
|
126
95
|
import {
|
|
127
96
|
Droppable
|
|
128
97
|
} from "./chunk-TKI2CKHH.js";
|
|
@@ -136,7 +105,7 @@ import {
|
|
|
136
105
|
import {
|
|
137
106
|
FileStatus,
|
|
138
107
|
processStatus
|
|
139
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-EKZENP7X.js";
|
|
140
109
|
import {
|
|
141
110
|
ProgressBar
|
|
142
111
|
} from "./chunk-WZJ5UQNM.js";
|
|
@@ -147,35 +116,90 @@ import {
|
|
|
147
116
|
Legend
|
|
148
117
|
} from "./chunk-RBNOEAWJ.js";
|
|
149
118
|
import {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
119
|
+
Menu,
|
|
120
|
+
MenuContent,
|
|
121
|
+
MenuGroupLabel,
|
|
122
|
+
MenuItem,
|
|
123
|
+
MenuItemGroup,
|
|
124
|
+
MenuSeparator,
|
|
125
|
+
MenuTrigger
|
|
126
|
+
} from "./chunk-RUR5MV54.js";
|
|
127
|
+
import "./chunk-V4YYGGMH.js";
|
|
155
128
|
import {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
AccordionItemContent,
|
|
159
|
-
AccordionItemTrigger
|
|
160
|
-
} from "./chunk-AZRFYQO7.js";
|
|
129
|
+
ToggleParts
|
|
130
|
+
} from "./chunk-2CVGNLIM.js";
|
|
161
131
|
import {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
import "./chunk-2HOUQ2DX.js";
|
|
132
|
+
ToggleIndicator,
|
|
133
|
+
ToggleRoot
|
|
134
|
+
} from "./chunk-CIMY2U22.js";
|
|
135
|
+
import "./chunk-V3M3ZOQI.js";
|
|
167
136
|
import {
|
|
168
137
|
CircularProgress
|
|
169
138
|
} from "./chunk-6QHOKCV3.js";
|
|
170
|
-
import "./chunk-2LF3HPNA.js";
|
|
171
139
|
import {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
140
|
+
DatePicker,
|
|
141
|
+
DatePickerCalendar,
|
|
142
|
+
DatePickerContent,
|
|
143
|
+
DatePickerDayView,
|
|
144
|
+
DatePickerInput,
|
|
145
|
+
DatePickerMonthView,
|
|
146
|
+
DatePickerTrigger,
|
|
147
|
+
DatePickerViewControlGroup,
|
|
148
|
+
DatePickerYearView,
|
|
149
|
+
RangePickerInput
|
|
150
|
+
} from "./chunk-2KPSUYFL.js";
|
|
151
|
+
import {
|
|
152
|
+
DatePickerContext,
|
|
153
|
+
DatePickerLabel,
|
|
154
|
+
DatePickerTable,
|
|
155
|
+
DatePickerTableCell,
|
|
156
|
+
DatePickerTableCellTrigger,
|
|
157
|
+
DatePickerTableHeader,
|
|
158
|
+
DatePickerView,
|
|
159
|
+
DatePickerViewControl
|
|
160
|
+
} from "./chunk-5EWCH7AI.js";
|
|
161
|
+
import "./chunk-OGYMMATX.js";
|
|
162
|
+
import {
|
|
163
|
+
Radio
|
|
164
|
+
} from "./chunk-STLN7BMJ.js";
|
|
165
|
+
import {
|
|
166
|
+
RadioParts
|
|
167
|
+
} from "./chunk-FUL2VRDU.js";
|
|
168
|
+
import {
|
|
169
|
+
RadioGroup,
|
|
170
|
+
RadioGroupIndicator,
|
|
171
|
+
RadioGroupItem,
|
|
172
|
+
RadioGroupItemControl,
|
|
173
|
+
RadioGroupItemHiddenInput,
|
|
174
|
+
RadioGroupItemText,
|
|
175
|
+
RadioGroupLabel,
|
|
176
|
+
RadioGroupRoot
|
|
177
|
+
} from "./chunk-5RTNSVYU.js";
|
|
178
|
+
import "./chunk-ZOSGUATV.js";
|
|
179
|
+
import {
|
|
180
|
+
Rating
|
|
181
|
+
} from "./chunk-XTIIAYPU.js";
|
|
182
|
+
import {
|
|
183
|
+
RatingParts
|
|
184
|
+
} from "./chunk-OS73F4SR.js";
|
|
185
|
+
import {
|
|
186
|
+
RatingContext,
|
|
187
|
+
RatingControl,
|
|
188
|
+
RatingHiddenInput,
|
|
189
|
+
RatingItem,
|
|
190
|
+
RatingItemContext,
|
|
191
|
+
RatingLabel,
|
|
192
|
+
RatingRoot
|
|
193
|
+
} from "./chunk-W47QEZD5.js";
|
|
194
|
+
import "./chunk-2LF3HPNA.js";
|
|
175
195
|
import {
|
|
176
196
|
OptionGroup,
|
|
177
197
|
OptionGroupLabel
|
|
178
198
|
} from "./chunk-IASVL7CW.js";
|
|
199
|
+
import {
|
|
200
|
+
Option,
|
|
201
|
+
Select
|
|
202
|
+
} from "./chunk-YLKFZGBY.js";
|
|
179
203
|
import {
|
|
180
204
|
SelectParts
|
|
181
205
|
} from "./chunk-XTNGF4D6.js";
|
|
@@ -194,19 +218,47 @@ import {
|
|
|
194
218
|
SwitchRoot,
|
|
195
219
|
SwitchThumb
|
|
196
220
|
} from "./chunk-LZWNHXRP.js";
|
|
197
|
-
import "./chunk-
|
|
221
|
+
import "./chunk-IKDXADLX.js";
|
|
198
222
|
import {
|
|
199
|
-
|
|
200
|
-
|
|
223
|
+
CTAModal,
|
|
224
|
+
useCTAModal
|
|
225
|
+
} from "./chunk-A45TFOGO.js";
|
|
226
|
+
import "./chunk-4LSTU6WU.js";
|
|
227
|
+
import "./chunk-MVO2GNUA.js";
|
|
201
228
|
import {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
229
|
+
For
|
|
230
|
+
} from "./chunk-DXOKSZVQ.js";
|
|
231
|
+
import {
|
|
232
|
+
createCTAModalActions
|
|
233
|
+
} from "./chunk-PLHYOCY3.js";
|
|
234
|
+
import "./chunk-DJOYRUNT.js";
|
|
235
|
+
import {
|
|
236
|
+
DialogCloseIconTrigger
|
|
237
|
+
} from "./chunk-NZKE7C53.js";
|
|
238
|
+
import {
|
|
239
|
+
Dialog
|
|
240
|
+
} from "./chunk-MH6CIBDU.js";
|
|
241
|
+
import {
|
|
242
|
+
IconButton
|
|
243
|
+
} from "./chunk-APD6IX5R.js";
|
|
244
|
+
import {
|
|
245
|
+
DialogParts
|
|
246
|
+
} from "./chunk-FCSO6N2Y.js";
|
|
247
|
+
import {
|
|
248
|
+
DialogBackdrop,
|
|
249
|
+
DialogCloseTrigger,
|
|
250
|
+
DialogContent,
|
|
251
|
+
DialogDescription,
|
|
252
|
+
DialogHeading,
|
|
253
|
+
DialogPositioner,
|
|
254
|
+
DialogProvider,
|
|
255
|
+
DialogRoot,
|
|
256
|
+
DialogTrigger
|
|
257
|
+
} from "./chunk-D7UIWAFO.js";
|
|
206
258
|
import "./chunk-TYPULJMJ.js";
|
|
207
259
|
import {
|
|
208
260
|
Field
|
|
209
|
-
} from "./chunk-
|
|
261
|
+
} from "./chunk-NTU5OYUF.js";
|
|
210
262
|
import {
|
|
211
263
|
FieldParts
|
|
212
264
|
} from "./chunk-6I2FW4WI.js";
|
|
@@ -240,39 +292,35 @@ import {
|
|
|
240
292
|
FieldsetLegend,
|
|
241
293
|
FieldsetRoot
|
|
242
294
|
} from "./chunk-Z3FDG263.js";
|
|
243
|
-
import "./chunk-
|
|
295
|
+
import "./chunk-UR2NYAQC.js";
|
|
244
296
|
import {
|
|
245
|
-
|
|
246
|
-
} from "./chunk-
|
|
297
|
+
Admonition
|
|
298
|
+
} from "./chunk-572S5CLA.js";
|
|
299
|
+
import "./chunk-TM6TVO2D.js";
|
|
247
300
|
import {
|
|
248
|
-
|
|
249
|
-
} from "./chunk-
|
|
301
|
+
Avatar
|
|
302
|
+
} from "./chunk-SXLPDPOZ.js";
|
|
250
303
|
import {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
RadioGroupItem,
|
|
254
|
-
RadioGroupItemControl,
|
|
255
|
-
RadioGroupItemHiddenInput,
|
|
256
|
-
RadioGroupItemText,
|
|
257
|
-
RadioGroupLabel,
|
|
258
|
-
RadioGroupRoot
|
|
259
|
-
} from "./chunk-5RTNSVYU.js";
|
|
260
|
-
import "./chunk-ZOSGUATV.js";
|
|
304
|
+
AdmonitionParts
|
|
305
|
+
} from "./chunk-RQCJKDXU.js";
|
|
261
306
|
import {
|
|
262
|
-
|
|
263
|
-
|
|
307
|
+
AdmonitionContent,
|
|
308
|
+
AdmonitionDescription,
|
|
309
|
+
AdmonitionHeading,
|
|
310
|
+
AdmonitionIndicator,
|
|
311
|
+
AdmonitionRoot
|
|
312
|
+
} from "./chunk-RKGFPKKK.js";
|
|
313
|
+
import "./chunk-CYC2YUKU.js";
|
|
264
314
|
import {
|
|
265
|
-
|
|
266
|
-
} from "./chunk-
|
|
315
|
+
ButtonParts
|
|
316
|
+
} from "./chunk-2BIHLH4V.js";
|
|
267
317
|
import {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
RatingRoot
|
|
275
|
-
} from "./chunk-W47QEZD5.js";
|
|
318
|
+
Button,
|
|
319
|
+
ButtonIcon
|
|
320
|
+
} from "./chunk-6KZVE4HC.js";
|
|
321
|
+
import {
|
|
322
|
+
Spinner
|
|
323
|
+
} from "./chunk-7SYJFI5E.js";
|
|
276
324
|
import "./chunk-TIJAFPHQ.js";
|
|
277
325
|
import {
|
|
278
326
|
Checkbox
|
|
@@ -293,35 +341,15 @@ import {
|
|
|
293
341
|
CheckboxRoot
|
|
294
342
|
} from "./chunk-BPRF34DU.js";
|
|
295
343
|
import "./chunk-ML2IKLMJ.js";
|
|
344
|
+
import {
|
|
345
|
+
Combobox
|
|
346
|
+
} from "./chunk-EKIAT7N7.js";
|
|
296
347
|
import {
|
|
297
348
|
ComboItemGroup
|
|
298
349
|
} from "./chunk-FZ53535Q.js";
|
|
299
350
|
import {
|
|
300
351
|
ComboItemWithIndicator
|
|
301
352
|
} 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
353
|
import {
|
|
326
354
|
useStatefulCollection
|
|
327
355
|
} from "./chunk-MR4DX76C.js";
|
|
@@ -343,53 +371,29 @@ import {
|
|
|
343
371
|
SelectValueText,
|
|
344
372
|
createSelectCollection
|
|
345
373
|
} from "./chunk-QCBLRACK.js";
|
|
346
|
-
import "./chunk-IKDXADLX.js";
|
|
347
|
-
import {
|
|
348
|
-
CTAModal,
|
|
349
|
-
useCTAModal
|
|
350
|
-
} from "./chunk-3B4SFTQB.js";
|
|
351
|
-
import "./chunk-4LSTU6WU.js";
|
|
352
|
-
import "./chunk-MVO2GNUA.js";
|
|
353
|
-
import {
|
|
354
|
-
For
|
|
355
|
-
} from "./chunk-DXOKSZVQ.js";
|
|
356
|
-
import {
|
|
357
|
-
Avatar
|
|
358
|
-
} from "./chunk-SXLPDPOZ.js";
|
|
359
|
-
import {
|
|
360
|
-
createCTAModalActions
|
|
361
|
-
} from "./chunk-PLHYOCY3.js";
|
|
362
|
-
import "./chunk-DJOYRUNT.js";
|
|
363
|
-
import {
|
|
364
|
-
DialogCloseIconTrigger
|
|
365
|
-
} from "./chunk-NZKE7C53.js";
|
|
366
|
-
import {
|
|
367
|
-
Dialog
|
|
368
|
-
} from "./chunk-MH6CIBDU.js";
|
|
369
|
-
import {
|
|
370
|
-
IconButton
|
|
371
|
-
} from "./chunk-APD6IX5R.js";
|
|
372
|
-
import {
|
|
373
|
-
DialogParts
|
|
374
|
-
} from "./chunk-FCSO6N2Y.js";
|
|
375
|
-
import {
|
|
376
|
-
DialogBackdrop,
|
|
377
|
-
DialogCloseTrigger,
|
|
378
|
-
DialogContent,
|
|
379
|
-
DialogDescription,
|
|
380
|
-
DialogHeading,
|
|
381
|
-
DialogPositioner,
|
|
382
|
-
DialogProvider,
|
|
383
|
-
DialogRoot,
|
|
384
|
-
DialogTrigger
|
|
385
|
-
} from "./chunk-D7UIWAFO.js";
|
|
386
374
|
import {
|
|
387
375
|
Portal
|
|
388
376
|
} from "./chunk-IQJDVFPP.js";
|
|
389
377
|
import {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
378
|
+
ComboboxParts
|
|
379
|
+
} from "./chunk-HIC7Z23X.js";
|
|
380
|
+
import {
|
|
381
|
+
ComboItemText,
|
|
382
|
+
ComboboxClearTrigger,
|
|
383
|
+
ComboboxContent,
|
|
384
|
+
ComboboxControl,
|
|
385
|
+
ComboboxInput,
|
|
386
|
+
ComboboxItem,
|
|
387
|
+
ComboboxItemGroup,
|
|
388
|
+
ComboboxItemGroupLabel,
|
|
389
|
+
ComboboxItemIndicator,
|
|
390
|
+
ComboboxItemText,
|
|
391
|
+
ComboboxLabel,
|
|
392
|
+
ComboboxPositioner,
|
|
393
|
+
ComboboxRoot,
|
|
394
|
+
ComboboxStartIcon,
|
|
395
|
+
ComboboxTrigger
|
|
396
|
+
} from "./chunk-NR5XDIJ7.js";
|
|
393
397
|
import {
|
|
394
398
|
useModal
|
|
395
399
|
} from "./chunk-KGQG5JGW.js";
|
|
@@ -404,6 +408,19 @@ import {
|
|
|
404
408
|
import {
|
|
405
409
|
useToggle
|
|
406
410
|
} from "./chunk-ICTISECN.js";
|
|
411
|
+
import "./chunk-R2V75WU6.js";
|
|
412
|
+
import {
|
|
413
|
+
Accordion,
|
|
414
|
+
AccordionItemGroup
|
|
415
|
+
} from "./chunk-FWVFM7RK.js";
|
|
416
|
+
import "./chunk-6OJ27QWV.js";
|
|
417
|
+
import {
|
|
418
|
+
CerberusProvider,
|
|
419
|
+
useCerberusContext
|
|
420
|
+
} from "./chunk-GITT5645.js";
|
|
421
|
+
import {
|
|
422
|
+
Show
|
|
423
|
+
} from "./chunk-BUVVRQLZ.js";
|
|
407
424
|
import {
|
|
408
425
|
formatNotifyCount,
|
|
409
426
|
splitProps
|
|
@@ -412,20 +429,16 @@ import {
|
|
|
412
429
|
getLocalStorage,
|
|
413
430
|
setLocalStorage
|
|
414
431
|
} from "./chunk-FQLMPEYX.js";
|
|
415
|
-
import "./chunk-CYC2YUKU.js";
|
|
416
|
-
import {
|
|
417
|
-
ButtonParts
|
|
418
|
-
} from "./chunk-2BIHLH4V.js";
|
|
419
|
-
import {
|
|
420
|
-
Button,
|
|
421
|
-
ButtonIcon
|
|
422
|
-
} from "./chunk-6KZVE4HC.js";
|
|
423
432
|
import {
|
|
424
|
-
|
|
425
|
-
} from "./chunk-
|
|
433
|
+
AccordionParts
|
|
434
|
+
} from "./chunk-XBDEIBW2.js";
|
|
426
435
|
import {
|
|
427
|
-
|
|
428
|
-
|
|
436
|
+
AccordionItem,
|
|
437
|
+
AccordionItemContent,
|
|
438
|
+
AccordionItemIndicator,
|
|
439
|
+
AccordionItemTrigger,
|
|
440
|
+
AccordionRoot
|
|
441
|
+
} from "./chunk-CPNKDKC2.js";
|
|
429
442
|
import "./chunk-55J6XMHW.js";
|
|
430
443
|
import {
|
|
431
444
|
createNavTriggerProps
|
|
@@ -459,9 +472,15 @@ export {
|
|
|
459
472
|
AccordionItemGroup,
|
|
460
473
|
AccordionItemIndicator,
|
|
461
474
|
AccordionItemTrigger,
|
|
475
|
+
AccordionParts,
|
|
476
|
+
AccordionRoot,
|
|
462
477
|
Admonition,
|
|
478
|
+
AdmonitionContent,
|
|
463
479
|
AdmonitionDescription,
|
|
464
480
|
AdmonitionHeading,
|
|
481
|
+
AdmonitionIndicator,
|
|
482
|
+
AdmonitionParts,
|
|
483
|
+
AdmonitionRoot,
|
|
465
484
|
Avatar,
|
|
466
485
|
Button,
|
|
467
486
|
ButtonIcon,
|
|
@@ -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/
|
|
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/admonition/index'\nexport * from './components/accordion/index'\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkGA,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-d049636",
|
|
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-d049636"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { AccordionItemProps } from '@ark-ui/react/accordion'
|
|
2
|
+
import { type AccordionVariantProps } from '@cerberus/styled-system/recipes'
|
|
3
|
+
import { splitProps } from '../../utils/index'
|
|
4
|
+
import { Show } from '../Show'
|
|
5
|
+
import { AccordionParts } from './parts'
|
|
6
|
+
import { AccordionChevronItemIndicator } from './item-indicator'
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* This module contains an abstraction of the AccordionItem components.
|
|
10
|
+
* @module
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
// We are only exposing this to keep the API consistent
|
|
14
|
+
export const Accordion = AccordionParts.Root
|
|
15
|
+
|
|
16
|
+
export interface AccordionItemGroupProps
|
|
17
|
+
extends AccordionItemProps,
|
|
18
|
+
AccordionVariantProps {
|
|
19
|
+
/**
|
|
20
|
+
* The heading of the accordion item to open and close the content.
|
|
21
|
+
*/
|
|
22
|
+
heading: string
|
|
23
|
+
/**
|
|
24
|
+
* The position of the arrow indicator.
|
|
25
|
+
*/
|
|
26
|
+
indicatorPosition?: 'start' | 'end'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The AccordionItemGroup component is an abstraction of the Accordion primitive
|
|
31
|
+
* components which renders an accordion item with a heading and an indicator.
|
|
32
|
+
*
|
|
33
|
+
* It is a wrapper around the `AccordionParts.Item`, `AccordionParts.
|
|
34
|
+
* ItemTrigger`, `AccordionParts.ItemIndicator`, and `AccordionParts.ItemContent` components.
|
|
35
|
+
*
|
|
36
|
+
* @description [Cerberus docs](https://cerberus.digitalu.design/react/accordion)
|
|
37
|
+
* @description [Ark docs](https://ark-ui.com/react/docs/components/accordion)
|
|
38
|
+
*/
|
|
39
|
+
export function AccordionItemGroup(props: AccordionItemGroupProps) {
|
|
40
|
+
const [groupProps, itemProps] = splitProps(props, [
|
|
41
|
+
'heading',
|
|
42
|
+
'children',
|
|
43
|
+
'indicatorPosition',
|
|
44
|
+
])
|
|
45
|
+
const indicatorPosition = groupProps.indicatorPosition ?? 'end'
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<AccordionParts.Item {...itemProps}>
|
|
49
|
+
<AccordionParts.ItemTrigger data-indicator-position={indicatorPosition}>
|
|
50
|
+
<Show when={indicatorPosition === 'start'}>
|
|
51
|
+
<AccordionChevronItemIndicator />
|
|
52
|
+
</Show>
|
|
53
|
+
|
|
54
|
+
{groupProps.heading}
|
|
55
|
+
|
|
56
|
+
<Show when={indicatorPosition === 'end'}>
|
|
57
|
+
<AccordionChevronItemIndicator />
|
|
58
|
+
</Show>
|
|
59
|
+
</AccordionParts.ItemTrigger>
|
|
60
|
+
|
|
61
|
+
<AccordionParts.ItemContent>
|
|
62
|
+
{groupProps.children}
|
|
63
|
+
</AccordionParts.ItemContent>
|
|
64
|
+
</AccordionParts.Item>
|
|
65
|
+
)
|
|
66
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
3
|
+
import { type AccordionItemIndicatorProps } from '@ark-ui/react/accordion'
|
|
4
|
+
import { type AccordionVariantProps } from '@cerberus/styled-system/recipes'
|
|
5
|
+
import { useCerberusContext } from '../../context/cerberus'
|
|
6
|
+
import { AccordionParts } from './parts'
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* This module contains the internal AccordionItemIndicator component.
|
|
10
|
+
* @module 'accordion/item-indicator'
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
export function AccordionChevronItemIndicator(
|
|
14
|
+
props: AccordionItemIndicatorProps & AccordionVariantProps,
|
|
15
|
+
) {
|
|
16
|
+
const { size, ...indicatorProps } = props
|
|
17
|
+
const iconSize = size === 'sm' ? 16 : '24'
|
|
18
|
+
|
|
19
|
+
const { icons } = useCerberusContext()
|
|
20
|
+
const { accordionIndicator: ChevronDown } = icons
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<AccordionParts.ItemIndicator {...indicatorProps}>
|
|
24
|
+
<ChevronDown size={iconSize} />
|
|
25
|
+
</AccordionParts.ItemIndicator>
|
|
26
|
+
)
|
|
27
|
+
}
|