@cerberus-design/react 0.15.0-next-7a184be → 0.15.0-next-47ecb2e
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 +319 -93
- package/build/legacy/components/checkbox/checkbox.cjs.map +1 -1
- package/build/legacy/components/checkbox/index.cjs.map +1 -1
- package/build/legacy/components/for.cjs.map +1 -1
- package/build/legacy/components/select/index.cjs +265 -0
- package/build/legacy/components/select/index.cjs.map +1 -0
- package/build/legacy/components/select/option-group.cjs +60 -0
- package/build/legacy/components/select/option-group.cjs.map +1 -0
- package/build/legacy/components/select/parts.cjs +153 -0
- package/build/legacy/components/select/parts.cjs.map +1 -0
- package/build/legacy/components/select/primitives.cjs +167 -0
- package/build/legacy/components/select/primitives.cjs.map +1 -0
- package/build/legacy/components/select/select.cjs +212 -0
- package/build/legacy/components/select/select.cjs.map +1 -0
- package/build/legacy/components/switch/index.cjs +118 -0
- package/build/legacy/components/switch/index.cjs.map +1 -0
- package/build/legacy/components/switch/parts.cjs +75 -0
- package/build/legacy/components/switch/parts.cjs.map +1 -0
- package/build/legacy/components/switch/primitives.cjs +72 -0
- package/build/legacy/components/switch/primitives.cjs.map +1 -0
- package/build/legacy/components/switch/switch-indicator.cjs +51 -0
- package/build/legacy/components/switch/switch-indicator.cjs.map +1 -0
- package/build/legacy/components/switch/switch.cjs +106 -0
- package/build/legacy/components/switch/switch.cjs.map +1 -0
- package/build/legacy/components/toggle/index.cjs +45 -0
- package/build/legacy/components/toggle/index.cjs.map +1 -0
- package/build/legacy/components/toggle/parts.cjs +41 -0
- package/build/legacy/components/toggle/parts.cjs.map +1 -0
- package/build/legacy/components/toggle/primitives.cjs +35 -0
- package/build/legacy/components/toggle/primitives.cjs.map +1 -0
- package/build/legacy/hooks/useToggle.cjs.map +1 -1
- package/build/legacy/index.cjs +617 -483
- package/build/legacy/index.cjs.map +1 -1
- package/build/modern/_tsup-dts-rollup.d.ts +319 -93
- package/build/modern/chunk-2CVGNLIM.js +15 -0
- package/build/modern/chunk-2CVGNLIM.js.map +1 -0
- package/build/modern/chunk-2LF3HPNA.js +1 -0
- package/build/modern/chunk-CAZ3EICD.js +16 -0
- package/build/modern/chunk-CAZ3EICD.js.map +1 -0
- package/build/modern/chunk-CIMY2U22.js +10 -0
- package/build/modern/chunk-CIMY2U22.js.map +1 -0
- package/build/modern/chunk-IASVL7CW.js +19 -0
- package/build/modern/chunk-IASVL7CW.js.map +1 -0
- package/build/modern/{chunk-REO5GUNC.js → chunk-ICTISECN.js} +1 -1
- package/build/modern/chunk-ICTISECN.js.map +1 -0
- package/build/modern/{chunk-77FJSNGD.js → chunk-IIH363FO.js} +1 -1
- package/build/modern/{chunk-77FJSNGD.js.map → chunk-IIH363FO.js.map} +1 -1
- package/build/modern/chunk-KQQPZJEI.js +21 -0
- package/build/modern/chunk-KQQPZJEI.js.map +1 -0
- package/build/modern/chunk-LZWNHXRP.js +48 -0
- package/build/modern/chunk-LZWNHXRP.js.map +1 -0
- package/build/modern/chunk-OVHCXBBI.js +22 -0
- package/build/modern/chunk-OVHCXBBI.js.map +1 -0
- package/build/modern/chunk-P3SF56LT.js +47 -0
- package/build/modern/chunk-P3SF56LT.js.map +1 -0
- package/build/modern/chunk-QCBLRACK.js +133 -0
- package/build/modern/chunk-QCBLRACK.js.map +1 -0
- package/build/modern/chunk-UDY6USHW.js +1 -0
- package/build/modern/chunk-V4YYGGMH.js +1 -0
- package/build/modern/chunk-XTNGF4D6.js +41 -0
- package/build/modern/chunk-XTNGF4D6.js.map +1 -0
- package/build/modern/{chunk-UNN4LHRS.js → chunk-Y4ZEJ2EF.js} +1 -1
- package/build/modern/chunk-Y4ZEJ2EF.js.map +1 -0
- package/build/modern/components/checkbox/checkbox.js +1 -1
- package/build/modern/components/checkbox/index.js +1 -1
- package/build/modern/components/for.js +1 -1
- package/build/modern/components/select/index.js +57 -0
- package/build/modern/components/select/index.js.map +1 -0
- package/build/modern/components/select/option-group.js +10 -0
- package/build/modern/components/select/option-group.js.map +1 -0
- package/build/modern/components/select/parts.js +8 -0
- package/build/modern/components/select/parts.js.map +1 -0
- package/build/modern/components/{Select.server.js → select/primitives.js} +8 -4
- package/build/modern/components/select/primitives.js.map +1 -0
- package/build/modern/components/select/select.js +15 -0
- package/build/modern/components/select/select.js.map +1 -0
- package/build/modern/components/switch/index.js +26 -0
- package/build/modern/components/switch/index.js.map +1 -0
- package/build/modern/components/switch/parts.js +8 -0
- package/build/modern/components/switch/parts.js.map +1 -0
- package/build/modern/components/switch/primitives.js +15 -0
- package/build/modern/components/switch/primitives.js.map +1 -0
- package/build/modern/components/switch/switch-indicator.js +9 -0
- package/build/modern/components/switch/switch-indicator.js.map +1 -0
- package/build/modern/components/switch/switch.js +11 -0
- package/build/modern/components/switch/switch.js.map +1 -0
- package/build/modern/components/toggle/index.js +14 -0
- package/build/modern/components/toggle/index.js.map +1 -0
- package/build/modern/components/toggle/parts.js +8 -0
- package/build/modern/components/toggle/parts.js.map +1 -0
- package/build/modern/components/toggle/primitives.js +9 -0
- package/build/modern/components/toggle/primitives.js.map +1 -0
- package/build/modern/context/confirm-modal.js +1 -1
- package/build/modern/context/cta-modal.js +2 -2
- package/build/modern/context/prompt-modal.js +1 -1
- package/build/modern/hooks/useToggle.js +1 -1
- package/build/modern/index.js +110 -72
- package/build/modern/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/checkbox/checkbox.tsx +4 -10
- package/src/components/for.tsx +1 -1
- package/src/components/select/index.ts +4 -0
- package/src/components/select/option-group.tsx +34 -0
- package/src/components/select/parts.ts +113 -0
- package/src/components/select/primitives.tsx +205 -0
- package/src/components/select/select.tsx +135 -0
- package/src/components/switch/index.ts +3 -0
- package/src/components/switch/parts.ts +53 -0
- package/src/components/switch/primitives.tsx +69 -0
- package/src/components/switch/switch-indicator.tsx +9 -0
- package/src/components/switch/switch.tsx +30 -0
- package/src/components/toggle/index.ts +2 -0
- package/src/components/toggle/parts.ts +32 -0
- package/src/components/toggle/primitives.tsx +17 -0
- package/src/hooks/useToggle.ts +1 -3
- package/src/index.ts +6 -6
- package/build/legacy/components/Select.cjs +0 -142
- package/build/legacy/components/Select.cjs.map +0 -1
- package/build/legacy/components/Select.server.cjs +0 -78
- package/build/legacy/components/Select.server.cjs.map +0 -1
- package/build/legacy/components/Toggle.cjs +0 -94
- package/build/legacy/components/Toggle.cjs.map +0 -1
- package/build/modern/chunk-GENS32QO.js +0 -61
- package/build/modern/chunk-GENS32QO.js.map +0 -1
- package/build/modern/chunk-REO5GUNC.js.map +0 -1
- package/build/modern/chunk-S2X5OEPK.js +0 -89
- package/build/modern/chunk-S2X5OEPK.js.map +0 -1
- package/build/modern/chunk-UNN4LHRS.js.map +0 -1
- package/build/modern/chunk-YWMPB2JR.js +0 -41
- package/build/modern/chunk-YWMPB2JR.js.map +0 -1
- package/build/modern/components/Select.js +0 -20
- package/build/modern/components/Toggle.js +0 -9
- package/src/components/Select.server.tsx +0 -80
- package/src/components/Select.tsx +0 -219
- package/src/components/Toggle.tsx +0 -98
- /package/build/modern/{components/Select.js.map → chunk-2LF3HPNA.js.map} +0 -0
- /package/build/modern/{components/Select.server.js.map → chunk-UDY6USHW.js.map} +0 -0
- /package/build/modern/{components/Toggle.js.map → chunk-V4YYGGMH.js.map} +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import "../../chunk-UDY6USHW.js";
|
|
2
|
+
import {
|
|
3
|
+
Switch
|
|
4
|
+
} from "../../chunk-OVHCXBBI.js";
|
|
5
|
+
import "../../chunk-CAZ3EICD.js";
|
|
6
|
+
import {
|
|
7
|
+
SwitchParts
|
|
8
|
+
} from "../../chunk-KQQPZJEI.js";
|
|
9
|
+
import {
|
|
10
|
+
SwitchControl,
|
|
11
|
+
SwitchHiddenInput,
|
|
12
|
+
SwitchLabel,
|
|
13
|
+
SwitchRoot,
|
|
14
|
+
SwitchThumb
|
|
15
|
+
} from "../../chunk-LZWNHXRP.js";
|
|
16
|
+
import "../../chunk-GITT5645.js";
|
|
17
|
+
export {
|
|
18
|
+
Switch,
|
|
19
|
+
SwitchControl,
|
|
20
|
+
SwitchHiddenInput,
|
|
21
|
+
SwitchLabel,
|
|
22
|
+
SwitchParts,
|
|
23
|
+
SwitchRoot,
|
|
24
|
+
SwitchThumb
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SwitchControl,
|
|
3
|
+
SwitchHiddenInput,
|
|
4
|
+
SwitchLabel,
|
|
5
|
+
SwitchRoot,
|
|
6
|
+
SwitchThumb
|
|
7
|
+
} from "../../chunk-LZWNHXRP.js";
|
|
8
|
+
export {
|
|
9
|
+
SwitchControl,
|
|
10
|
+
SwitchHiddenInput,
|
|
11
|
+
SwitchLabel,
|
|
12
|
+
SwitchRoot,
|
|
13
|
+
SwitchThumb
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=primitives.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Switch
|
|
3
|
+
} from "../../chunk-OVHCXBBI.js";
|
|
4
|
+
import "../../chunk-CAZ3EICD.js";
|
|
5
|
+
import "../../chunk-KQQPZJEI.js";
|
|
6
|
+
import "../../chunk-LZWNHXRP.js";
|
|
7
|
+
import "../../chunk-GITT5645.js";
|
|
8
|
+
export {
|
|
9
|
+
Switch
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=switch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "../../chunk-V4YYGGMH.js";
|
|
2
|
+
import {
|
|
3
|
+
ToggleParts
|
|
4
|
+
} from "../../chunk-2CVGNLIM.js";
|
|
5
|
+
import {
|
|
6
|
+
ToggleIndicator,
|
|
7
|
+
ToggleRoot
|
|
8
|
+
} from "../../chunk-CIMY2U22.js";
|
|
9
|
+
export {
|
|
10
|
+
ToggleIndicator,
|
|
11
|
+
ToggleParts,
|
|
12
|
+
ToggleRoot
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
useConfirmModal
|
|
5
5
|
} from "../chunk-H54FR7IP.js";
|
|
6
6
|
import "../chunk-TFL56AYR.js";
|
|
7
|
-
import "../chunk-IQJDVFPP.js";
|
|
8
7
|
import "../chunk-SXLPDPOZ.js";
|
|
8
|
+
import "../chunk-IQJDVFPP.js";
|
|
9
9
|
import "../chunk-GITT5645.js";
|
|
10
10
|
import "../chunk-6KZVE4HC.js";
|
|
11
11
|
import "../chunk-7SYJFI5E.js";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
useCTAModal
|
|
5
5
|
} from "../chunk-ZDANBCM3.js";
|
|
6
6
|
import "../chunk-6BN3XKQF.js";
|
|
7
|
-
import "../chunk-APD6IX5R.js";
|
|
8
7
|
import "../chunk-TFL56AYR.js";
|
|
9
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-APD6IX5R.js";
|
|
10
9
|
import "../chunk-SXLPDPOZ.js";
|
|
10
|
+
import "../chunk-IQJDVFPP.js";
|
|
11
11
|
import "../chunk-GITT5645.js";
|
|
12
12
|
import "../chunk-6KZVE4HC.js";
|
|
13
13
|
import "../chunk-7SYJFI5E.js";
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
usePromptModal
|
|
5
5
|
} from "../chunk-CMYD5KWA.js";
|
|
6
6
|
import "../chunk-TFL56AYR.js";
|
|
7
|
-
import "../chunk-IQJDVFPP.js";
|
|
8
7
|
import "../chunk-SXLPDPOZ.js";
|
|
8
|
+
import "../chunk-IQJDVFPP.js";
|
|
9
9
|
import "../chunk-RU5LOXWI.js";
|
|
10
10
|
import "../chunk-TYPULJMJ.js";
|
|
11
11
|
import "../chunk-FBS7AX76.js";
|
package/build/modern/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ModalHeader
|
|
3
|
-
} from "./chunk-AUALRL3U.js";
|
|
4
1
|
import {
|
|
5
2
|
ModalHeading
|
|
6
3
|
} from "./chunk-SWX5JWZR.js";
|
|
@@ -30,24 +27,8 @@ import {
|
|
|
30
27
|
ModalDescription
|
|
31
28
|
} from "./chunk-WECB67DC.js";
|
|
32
29
|
import {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./chunk-CMYD5KWA.js";
|
|
36
|
-
import {
|
|
37
|
-
ThemeProvider,
|
|
38
|
-
useThemeContext
|
|
39
|
-
} from "./chunk-EB37HRCN.js";
|
|
40
|
-
import {
|
|
41
|
-
For
|
|
42
|
-
} from "./chunk-77FJSNGD.js";
|
|
43
|
-
import {
|
|
44
|
-
ConfirmModal,
|
|
45
|
-
useConfirmModal
|
|
46
|
-
} from "./chunk-H54FR7IP.js";
|
|
47
|
-
import {
|
|
48
|
-
CTAModal,
|
|
49
|
-
useCTAModal
|
|
50
|
-
} from "./chunk-ZDANBCM3.js";
|
|
30
|
+
ModalHeader
|
|
31
|
+
} from "./chunk-AUALRL3U.js";
|
|
51
32
|
import {
|
|
52
33
|
NavMenu,
|
|
53
34
|
useNavMenuContext
|
|
@@ -57,49 +38,33 @@ import {
|
|
|
57
38
|
useNotificationCenter
|
|
58
39
|
} from "./chunk-FMRWRVUS.js";
|
|
59
40
|
import {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
Tbody
|
|
64
|
-
} from "./chunk-ZR37P4NZ.js";
|
|
41
|
+
PromptModal,
|
|
42
|
+
usePromptModal
|
|
43
|
+
} from "./chunk-CMYD5KWA.js";
|
|
65
44
|
import {
|
|
66
|
-
|
|
67
|
-
|
|
45
|
+
ThemeProvider,
|
|
46
|
+
useThemeContext
|
|
47
|
+
} from "./chunk-EB37HRCN.js";
|
|
68
48
|
import {
|
|
69
49
|
Th
|
|
70
50
|
} from "./chunk-SGKHA4EB.js";
|
|
71
51
|
import {
|
|
72
52
|
Thead
|
|
73
53
|
} from "./chunk-Y6QQCRQV.js";
|
|
74
|
-
import {
|
|
75
|
-
Toggle
|
|
76
|
-
} from "./chunk-GENS32QO.js";
|
|
77
54
|
import {
|
|
78
55
|
Tooltip
|
|
79
56
|
} from "./chunk-LPALHB6R.js";
|
|
80
57
|
import {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
OptionGroupLabel,
|
|
84
|
-
Select,
|
|
85
|
-
createSelectCollection
|
|
86
|
-
} from "./chunk-S2X5OEPK.js";
|
|
58
|
+
For
|
|
59
|
+
} from "./chunk-IIH363FO.js";
|
|
87
60
|
import {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
SelectItemIndicator,
|
|
96
|
-
SelectItemText,
|
|
97
|
-
SelectLabel,
|
|
98
|
-
SelectPositioner,
|
|
99
|
-
SelectRoot,
|
|
100
|
-
SelectTrigger,
|
|
101
|
-
SelectValueText
|
|
102
|
-
} from "./chunk-YWMPB2JR.js";
|
|
61
|
+
ConfirmModal,
|
|
62
|
+
useConfirmModal
|
|
63
|
+
} from "./chunk-H54FR7IP.js";
|
|
64
|
+
import {
|
|
65
|
+
CTAModal,
|
|
66
|
+
useCTAModal
|
|
67
|
+
} from "./chunk-ZDANBCM3.js";
|
|
103
68
|
import {
|
|
104
69
|
Table,
|
|
105
70
|
Tr
|
|
@@ -117,15 +82,14 @@ import {
|
|
|
117
82
|
useTabsContext
|
|
118
83
|
} from "./chunk-RZ7NG77U.js";
|
|
119
84
|
import {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
} from "./chunk-ZFFW5ELD.js";
|
|
85
|
+
Tag
|
|
86
|
+
} from "./chunk-MISIUX63.js";
|
|
123
87
|
import {
|
|
124
|
-
|
|
125
|
-
} from "./chunk-
|
|
88
|
+
Tbody
|
|
89
|
+
} from "./chunk-ZR37P4NZ.js";
|
|
126
90
|
import {
|
|
127
|
-
|
|
128
|
-
} from "./chunk-
|
|
91
|
+
Td
|
|
92
|
+
} from "./chunk-3R4TIF2X.js";
|
|
129
93
|
import {
|
|
130
94
|
Legend
|
|
131
95
|
} from "./chunk-RBNOEAWJ.js";
|
|
@@ -147,9 +111,6 @@ import {
|
|
|
147
111
|
import {
|
|
148
112
|
NotificationHeading
|
|
149
113
|
} from "./chunk-SLHYBPJ5.js";
|
|
150
|
-
import {
|
|
151
|
-
CircularProgress
|
|
152
|
-
} from "./chunk-6QHOKCV3.js";
|
|
153
114
|
import {
|
|
154
115
|
DatePicker,
|
|
155
116
|
DatePickerCalendar,
|
|
@@ -175,9 +136,6 @@ import {
|
|
|
175
136
|
import {
|
|
176
137
|
DialogCloseIconTrigger
|
|
177
138
|
} from "./chunk-6BN3XKQF.js";
|
|
178
|
-
import {
|
|
179
|
-
IconButton
|
|
180
|
-
} from "./chunk-APD6IX5R.js";
|
|
181
139
|
import {
|
|
182
140
|
Dialog,
|
|
183
141
|
DialogBackdrop,
|
|
@@ -189,9 +147,6 @@ import {
|
|
|
189
147
|
DialogProvider,
|
|
190
148
|
DialogTrigger
|
|
191
149
|
} from "./chunk-TFL56AYR.js";
|
|
192
|
-
import {
|
|
193
|
-
Portal
|
|
194
|
-
} from "./chunk-IQJDVFPP.js";
|
|
195
150
|
import {
|
|
196
151
|
Droppable
|
|
197
152
|
} from "./chunk-TKI2CKHH.js";
|
|
@@ -202,7 +157,19 @@ import {
|
|
|
202
157
|
FeatureFlags,
|
|
203
158
|
useFeatureFlags
|
|
204
159
|
} from "./chunk-CJFW36DZ.js";
|
|
205
|
-
import
|
|
160
|
+
import {
|
|
161
|
+
FileStatus,
|
|
162
|
+
processStatus
|
|
163
|
+
} from "./chunk-ZFFW5ELD.js";
|
|
164
|
+
import {
|
|
165
|
+
ProgressBar
|
|
166
|
+
} from "./chunk-WZJ5UQNM.js";
|
|
167
|
+
import {
|
|
168
|
+
IconButton
|
|
169
|
+
} from "./chunk-APD6IX5R.js";
|
|
170
|
+
import {
|
|
171
|
+
FileUploader
|
|
172
|
+
} from "./chunk-7SU6FCTJ.js";
|
|
206
173
|
import {
|
|
207
174
|
AccordionItemGroup
|
|
208
175
|
} from "./chunk-WN7TJX6J.js";
|
|
@@ -224,10 +191,70 @@ import "./chunk-2HOUQ2DX.js";
|
|
|
224
191
|
import {
|
|
225
192
|
Avatar
|
|
226
193
|
} from "./chunk-SXLPDPOZ.js";
|
|
194
|
+
import {
|
|
195
|
+
CircularProgress
|
|
196
|
+
} from "./chunk-6QHOKCV3.js";
|
|
197
|
+
import "./chunk-2LF3HPNA.js";
|
|
198
|
+
import {
|
|
199
|
+
OptionGroup,
|
|
200
|
+
OptionGroupLabel
|
|
201
|
+
} from "./chunk-IASVL7CW.js";
|
|
202
|
+
import {
|
|
203
|
+
Option,
|
|
204
|
+
Select
|
|
205
|
+
} from "./chunk-P3SF56LT.js";
|
|
206
|
+
import {
|
|
207
|
+
Portal
|
|
208
|
+
} from "./chunk-IQJDVFPP.js";
|
|
209
|
+
import {
|
|
210
|
+
SelectParts
|
|
211
|
+
} from "./chunk-XTNGF4D6.js";
|
|
212
|
+
import {
|
|
213
|
+
SelectClearTrigger,
|
|
214
|
+
SelectContent,
|
|
215
|
+
SelectControl,
|
|
216
|
+
SelectHiddenSelect,
|
|
217
|
+
SelectIndicator,
|
|
218
|
+
SelectItem,
|
|
219
|
+
SelectItemGroup,
|
|
220
|
+
SelectItemGroupLabel,
|
|
221
|
+
SelectItemIndicator,
|
|
222
|
+
SelectItemText,
|
|
223
|
+
SelectLabel,
|
|
224
|
+
SelectPositioner,
|
|
225
|
+
SelectRoot,
|
|
226
|
+
SelectTrigger,
|
|
227
|
+
SelectValueText,
|
|
228
|
+
createSelectCollection
|
|
229
|
+
} from "./chunk-QCBLRACK.js";
|
|
230
|
+
import "./chunk-UDY6USHW.js";
|
|
231
|
+
import {
|
|
232
|
+
Switch
|
|
233
|
+
} from "./chunk-OVHCXBBI.js";
|
|
234
|
+
import "./chunk-CAZ3EICD.js";
|
|
235
|
+
import {
|
|
236
|
+
SwitchParts
|
|
237
|
+
} from "./chunk-KQQPZJEI.js";
|
|
238
|
+
import {
|
|
239
|
+
SwitchControl,
|
|
240
|
+
SwitchHiddenInput,
|
|
241
|
+
SwitchLabel,
|
|
242
|
+
SwitchRoot,
|
|
243
|
+
SwitchThumb
|
|
244
|
+
} from "./chunk-LZWNHXRP.js";
|
|
245
|
+
import "./chunk-V4YYGGMH.js";
|
|
246
|
+
import {
|
|
247
|
+
ToggleParts
|
|
248
|
+
} from "./chunk-2CVGNLIM.js";
|
|
249
|
+
import {
|
|
250
|
+
ToggleIndicator,
|
|
251
|
+
ToggleRoot
|
|
252
|
+
} from "./chunk-CIMY2U22.js";
|
|
253
|
+
import "./chunk-V3M3ZOQI.js";
|
|
227
254
|
import "./chunk-TIJAFPHQ.js";
|
|
228
255
|
import {
|
|
229
256
|
Checkbox
|
|
230
|
-
} from "./chunk-
|
|
257
|
+
} from "./chunk-Y4ZEJ2EF.js";
|
|
231
258
|
import "./chunk-EL4MX2PG.js";
|
|
232
259
|
import {
|
|
233
260
|
Text
|
|
@@ -314,7 +341,7 @@ import {
|
|
|
314
341
|
} from "./chunk-EJOXOICK.js";
|
|
315
342
|
import {
|
|
316
343
|
useToggle
|
|
317
|
-
} from "./chunk-
|
|
344
|
+
} from "./chunk-ICTISECN.js";
|
|
318
345
|
import {
|
|
319
346
|
formatNotifyCount,
|
|
320
347
|
splitProps
|
|
@@ -487,6 +514,7 @@ export {
|
|
|
487
514
|
SelectClearTrigger,
|
|
488
515
|
SelectContent,
|
|
489
516
|
SelectControl,
|
|
517
|
+
SelectHiddenSelect,
|
|
490
518
|
SelectIndicator,
|
|
491
519
|
SelectItem,
|
|
492
520
|
SelectItemGroup,
|
|
@@ -494,12 +522,20 @@ export {
|
|
|
494
522
|
SelectItemIndicator,
|
|
495
523
|
SelectItemText,
|
|
496
524
|
SelectLabel,
|
|
525
|
+
SelectParts,
|
|
497
526
|
SelectPositioner,
|
|
498
527
|
SelectRoot,
|
|
499
528
|
SelectTrigger,
|
|
500
529
|
SelectValueText,
|
|
501
530
|
Show,
|
|
502
531
|
Spinner,
|
|
532
|
+
Switch,
|
|
533
|
+
SwitchControl,
|
|
534
|
+
SwitchHiddenInput,
|
|
535
|
+
SwitchLabel,
|
|
536
|
+
SwitchParts,
|
|
537
|
+
SwitchRoot,
|
|
538
|
+
SwitchThumb,
|
|
503
539
|
THEME_KEY,
|
|
504
540
|
Tab,
|
|
505
541
|
TabIndicator,
|
|
@@ -517,7 +553,9 @@ export {
|
|
|
517
553
|
Th,
|
|
518
554
|
Thead,
|
|
519
555
|
ThemeProvider,
|
|
520
|
-
|
|
556
|
+
ToggleIndicator,
|
|
557
|
+
ToggleParts,
|
|
558
|
+
ToggleRoot,
|
|
521
559
|
Tooltip,
|
|
522
560
|
Tr,
|
|
523
561
|
createNavTriggerProps,
|
|
@@ -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'\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/DatePicker.client'\nexport * from './components/DatePicker.server'\nexport * from './components/Dialog'\nexport * from './components/Dialog.client'\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/
|
|
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/DatePicker.client'\nexport * from './components/DatePicker.server'\nexport * from './components/Dialog'\nexport * from './components/Dialog.client'\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/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/cta-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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmGA,cAAc;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cerberus-design/react",
|
|
3
|
-
"version": "0.15.0-next-
|
|
3
|
+
"version": "0.15.0-next-47ecb2e",
|
|
4
4
|
"description": "The Cerberus Design React component library.",
|
|
5
5
|
"browserslist": "> 0.25%, not dead",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"react": "^18",
|
|
26
26
|
"react-dom": "^18",
|
|
27
27
|
"tsup": "^8.1.0",
|
|
28
|
-
"@cerberus/
|
|
29
|
-
"@cerberus-
|
|
28
|
+
"@cerberus-design/configs": "0.0.0",
|
|
29
|
+
"@cerberus/styled-system": "npm:@cerberus-design/styled-system@0.15.0-next-47ecb2e"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
@@ -13,16 +13,10 @@ import { CheckboxIcon } from './checkbox-icon'
|
|
|
13
13
|
export type CheckboxProps = CheckboxVariantProps & CheckboxRootProps
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* Checkbox component
|
|
17
|
-
*
|
|
18
|
-
* @
|
|
19
|
-
* @
|
|
20
|
-
* @example
|
|
21
|
-
* ```tsx
|
|
22
|
-
* <Field>
|
|
23
|
-
* <Checkbox id="legal" checked={checked.legal} onChange={handleChange} />
|
|
24
|
-
* </Field>
|
|
25
|
-
* ```
|
|
16
|
+
* Checkbox component is an abstraction of the primitives that displays a
|
|
17
|
+
* controlled checkbox with a label.
|
|
18
|
+
* @description [Cerberus Docs] https://cerberus.digitalu.design/react/checkbox
|
|
19
|
+
* @description [Ark Docs] https://ark-ui.com/docs/components/checkbox
|
|
26
20
|
*/
|
|
27
21
|
export function Checkbox(props: CheckboxProps) {
|
|
28
22
|
const { size, children, ...rootProps } = props
|
package/src/components/for.tsx
CHANGED
|
@@ -28,7 +28,7 @@ export interface ForProps<T> {
|
|
|
28
28
|
* ```
|
|
29
29
|
*/
|
|
30
30
|
export function For<
|
|
31
|
-
T extends string | number | Record<string, unknown> | undefined,
|
|
31
|
+
T extends string | number | Record<string, unknown> | object | undefined,
|
|
32
32
|
>(props: ForProps<T>) {
|
|
33
33
|
const mappableChildren = props.children as unknown as (
|
|
34
34
|
item: T,
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
SelectItemGroupLabelProps,
|
|
3
|
+
SelectItemGroupProps,
|
|
4
|
+
} from '@ark-ui/react/select'
|
|
5
|
+
import { SelectItemGroup, SelectItemGroupLabel } from './primitives'
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The OptionGroup component is a group of options in the dropdown list.
|
|
9
|
+
* @definition [Select docs](https://cerberus.digitalu.design/react/select)
|
|
10
|
+
* @definition [ARK docs](https://ark-ui.com/react/docs/components/select)
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* <OptionGroup>
|
|
14
|
+
* <OptionGroupLabel>Greek gods</OptionGroupLabel>
|
|
15
|
+
* ...
|
|
16
|
+
* </OptionGroup>
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export function OptionGroup(props: SelectItemGroupProps) {
|
|
20
|
+
return <SelectItemGroup {...props} />
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The OptionGroupLabel component is the label of the OptionGroup.
|
|
25
|
+
* @definition [Select docs](https://cerberus.digitalu.design/react/select)
|
|
26
|
+
* @definition [ARK docs](https://ark-ui.com/react/docs/components/select)
|
|
27
|
+
* @example
|
|
28
|
+
* ```tsx
|
|
29
|
+
* <OptionGroupLabel>Greek gods</OptionGroupLabel>
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export function OptionGroupLabel(props: SelectItemGroupLabelProps) {
|
|
33
|
+
return <SelectItemGroupLabel {...props} />
|
|
34
|
+
}
|