@cerberus-design/react 0.14.2-next-a928afd → 0.14.2-next-0052cda
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 +111 -34
- package/build/legacy/components/Accordion.cjs +4 -187
- package/build/legacy/components/Accordion.cjs.map +1 -1
- package/build/legacy/components/Accordion.client.cjs +64 -0
- package/build/legacy/components/Accordion.client.cjs.map +1 -0
- package/build/legacy/components/AccordionItemGroup.cjs +41 -185
- package/build/legacy/components/AccordionItemGroup.cjs.map +1 -1
- package/build/legacy/components/Admonition.cjs +89 -239
- package/build/legacy/components/Admonition.cjs.map +1 -1
- package/build/legacy/components/Admonition.client.cjs +219 -0
- package/build/legacy/components/Admonition.client.cjs.map +1 -0
- package/build/legacy/components/AnimatingUploadIcon.cjs.map +1 -1
- package/build/legacy/components/Avatar.cjs +23 -174
- package/build/legacy/components/Avatar.cjs.map +1 -1
- package/build/legacy/components/Checkbox.cjs +22 -168
- package/build/legacy/components/Checkbox.cjs.map +1 -1
- package/build/legacy/components/DatePicker.client.cjs +119 -268
- package/build/legacy/components/DatePicker.client.cjs.map +1 -1
- package/build/legacy/components/DatePicker.server.cjs +17 -271
- package/build/legacy/components/DatePicker.server.cjs.map +1 -1
- package/build/legacy/components/FileStatus.cjs +62 -212
- package/build/legacy/components/FileStatus.cjs.map +1 -1
- package/build/legacy/components/FileUploader.cjs +29 -180
- package/build/legacy/components/FileUploader.cjs.map +1 -1
- package/build/legacy/components/Input.cjs +20 -172
- package/build/legacy/components/Input.cjs.map +1 -1
- package/build/legacy/components/Notification.cjs +25 -176
- package/build/legacy/components/Notification.cjs.map +1 -1
- package/build/legacy/components/Select.cjs +26 -178
- package/build/legacy/components/Select.cjs.map +1 -1
- package/build/legacy/components/Tag.cjs +16 -167
- package/build/legacy/components/Tag.cjs.map +1 -1
- package/build/legacy/components/Toggle.cjs +20 -172
- package/build/legacy/components/Toggle.cjs.map +1 -1
- package/build/legacy/config/defineIcons.cjs +3 -39
- package/build/legacy/config/defineIcons.cjs.map +1 -1
- package/build/legacy/config/{cerbIcons.cjs → index.cjs} +22 -29
- package/build/legacy/config/index.cjs.map +1 -0
- package/build/legacy/config/types.cjs +19 -0
- package/build/legacy/config/types.cjs.map +1 -0
- package/build/legacy/context/cerberus.cjs +46 -0
- package/build/legacy/context/cerberus.cjs.map +1 -0
- package/build/legacy/context/confirm-modal.cjs +58 -207
- package/build/legacy/context/confirm-modal.cjs.map +1 -1
- package/build/legacy/context/cta-modal.cjs +57 -209
- package/build/legacy/context/cta-modal.cjs.map +1 -1
- package/build/legacy/context/notification-center.cjs +55 -206
- package/build/legacy/context/notification-center.cjs.map +1 -1
- package/build/legacy/context/prompt-modal.cjs +83 -233
- package/build/legacy/context/prompt-modal.cjs.map +1 -1
- package/build/legacy/index.cjs +950 -930
- package/build/legacy/index.cjs.map +1 -1
- package/build/modern/_tsup-dts-rollup.d.ts +111 -34
- package/build/modern/{chunk-BVCXVZAF.js → chunk-25HMVHLT.js} +6 -5
- package/build/modern/chunk-25HMVHLT.js.map +1 -0
- package/build/modern/chunk-36N4527B.js +1 -0
- package/build/modern/chunk-5EWCH7AI.js +82 -0
- package/build/modern/chunk-5EWCH7AI.js.map +1 -0
- package/build/modern/chunk-5SNLQZYP.js +25 -0
- package/build/modern/chunk-5SNLQZYP.js.map +1 -0
- package/build/modern/{chunk-6BH5J5GF.js → chunk-CCTLGF5U.js} +18 -17
- package/build/modern/chunk-CCTLGF5U.js.map +1 -0
- package/build/modern/{chunk-HKJMLWVP.js → chunk-EDARV2EI.js} +5 -4
- package/build/modern/chunk-EDARV2EI.js.map +1 -0
- package/build/modern/{chunk-FXLLRVAM.js → chunk-EMNBMH7Z.js} +13 -11
- package/build/modern/chunk-EMNBMH7Z.js.map +1 -0
- package/build/modern/{chunk-PVIMOXSO.js → chunk-GCQMH4QA.js} +5 -4
- package/build/modern/chunk-GCQMH4QA.js.map +1 -0
- package/build/modern/chunk-GITT5645.js +20 -0
- package/build/modern/chunk-GITT5645.js.map +1 -0
- package/build/modern/{chunk-TJCFYL5W.js → chunk-IGHMP4WA.js} +1 -20
- package/build/modern/chunk-IGHMP4WA.js.map +1 -0
- package/build/modern/chunk-ISCJ542I.js +82 -0
- package/build/modern/chunk-ISCJ542I.js.map +1 -0
- package/build/modern/{chunk-HVKM54BA.js → chunk-IW3LIRDG.js} +1 -1
- package/build/modern/chunk-IW3LIRDG.js.map +1 -0
- package/build/modern/{chunk-KWJ5FKX7.js → chunk-JQCRDZNI.js} +8 -6
- package/build/modern/chunk-JQCRDZNI.js.map +1 -0
- package/build/modern/chunk-KDDPAJMR.js +9 -0
- package/build/modern/chunk-KDDPAJMR.js.map +1 -0
- package/build/modern/{chunk-JJZQGR7A.js → chunk-KF35CYT4.js} +8 -6
- package/build/modern/chunk-KF35CYT4.js.map +1 -0
- package/build/modern/{chunk-XOROL3JY.js → chunk-KKHL3ZO4.js} +5 -4
- package/build/modern/chunk-KKHL3ZO4.js.map +1 -0
- package/build/modern/{chunk-U36UZJGZ.js → chunk-MZ3UCDUL.js} +5 -4
- package/build/modern/chunk-MZ3UCDUL.js.map +1 -0
- package/build/modern/{chunk-T2JOPPGL.js → chunk-N24COMHJ.js} +11 -4
- package/build/modern/chunk-N24COMHJ.js.map +1 -0
- package/build/modern/{chunk-CVTON5DQ.js → chunk-N3L3PEMF.js} +2 -2
- package/build/modern/chunk-NJSETNRL.js +68 -0
- package/build/modern/chunk-NJSETNRL.js.map +1 -0
- package/build/modern/{chunk-XXWR7UGH.js → chunk-QKZZHZL4.js} +22 -21
- package/build/modern/chunk-QKZZHZL4.js.map +1 -0
- package/build/modern/{chunk-KPUYKHLW.js → chunk-UMF2TWZN.js} +59 -9
- package/build/modern/chunk-UMF2TWZN.js.map +1 -0
- package/build/modern/{chunk-QK7R2XJM.js → chunk-XQICKZH4.js} +6 -5
- package/build/modern/chunk-XQICKZH4.js.map +1 -0
- package/build/modern/chunk-XZGXRRSQ.js +31 -0
- package/build/modern/chunk-XZGXRRSQ.js.map +1 -0
- package/build/modern/{chunk-5OVH3INN.js → chunk-Z64YZ5IH.js} +18 -18
- package/build/modern/chunk-Z64YZ5IH.js.map +1 -0
- package/build/modern/components/Accordion.client.js +9 -0
- package/build/modern/components/Accordion.client.js.map +1 -0
- package/build/modern/components/Accordion.js +1 -7
- package/build/modern/components/AccordionItemGroup.js +4 -6
- package/build/modern/components/Admonition.client.js +11 -0
- package/build/modern/components/Admonition.client.js.map +1 -0
- package/build/modern/components/Admonition.js +4 -6
- package/build/modern/components/AnimatingUploadIcon.js +1 -1
- package/build/modern/components/Avatar.js +3 -5
- package/build/modern/components/Checkbox.js +2 -5
- package/build/modern/components/DatePicker.client.js +8 -7
- package/build/modern/components/DatePicker.server.js +3 -13
- package/build/modern/components/FileStatus.js +4 -7
- package/build/modern/components/FileUploader.js +3 -6
- package/build/modern/components/Input.js +2 -5
- package/build/modern/components/Notification.js +2 -5
- package/build/modern/components/Select.js +2 -5
- package/build/modern/components/Tag.js +3 -5
- package/build/modern/components/Toggle.js +2 -5
- package/build/modern/config/defineIcons.js +2 -5
- package/build/modern/config/index.js +14 -0
- package/build/modern/config/index.js.map +1 -0
- package/build/modern/config/types.js +2 -0
- package/build/modern/config/types.js.map +1 -0
- package/build/modern/context/cerberus.js +10 -0
- package/build/modern/context/cerberus.js.map +1 -0
- package/build/modern/context/confirm-modal.js +6 -9
- package/build/modern/context/cta-modal.js +6 -9
- package/build/modern/context/notification-center.js +3 -6
- package/build/modern/context/prompt-modal.js +8 -11
- package/build/modern/index.js +105 -94
- package/build/modern/index.js.map +1 -1
- package/package.json +4 -8
- package/src/components/Accordion.client.tsx +46 -0
- package/src/components/Accordion.tsx +0 -37
- package/src/components/AccordionItemGroup.tsx +1 -1
- package/src/components/Admonition.client.tsx +73 -0
- package/src/components/Admonition.tsx +1 -70
- package/src/components/AnimatingUploadIcon.tsx +3 -3
- package/src/components/Avatar.tsx +5 -2
- package/src/components/Checkbox.tsx +10 -3
- package/src/components/DatePicker.client.tsx +79 -7
- package/src/components/DatePicker.server.tsx +2 -75
- package/src/components/FileStatus.tsx +5 -3
- package/src/components/FileUploader.tsx +3 -2
- package/src/components/Input.tsx +4 -2
- package/src/components/Notification.tsx +7 -4
- package/src/components/Select.tsx +5 -2
- package/src/components/Tag.tsx +5 -2
- package/src/components/Toggle.tsx +4 -3
- package/src/config/defineIcons.ts +28 -16
- package/src/config/index.ts +28 -0
- package/src/config/types.ts +42 -0
- package/src/context/cerberus.tsx +44 -0
- package/src/context/confirm-modal.tsx +4 -2
- package/src/context/cta-modal.tsx +5 -4
- package/src/context/prompt-modal.tsx +4 -2
- package/src/index.ts +3 -1
- package/build/legacy/config/cerbIcons.cjs.map +0 -1
- package/build/modern/chunk-5OVH3INN.js.map +0 -1
- package/build/modern/chunk-6BH5J5GF.js.map +0 -1
- package/build/modern/chunk-BC5SZDYY.js +0 -132
- package/build/modern/chunk-BC5SZDYY.js.map +0 -1
- package/build/modern/chunk-BVCXVZAF.js.map +0 -1
- package/build/modern/chunk-CRII2HNX.js +0 -55
- package/build/modern/chunk-CRII2HNX.js.map +0 -1
- package/build/modern/chunk-FXLLRVAM.js.map +0 -1
- package/build/modern/chunk-HKJMLWVP.js.map +0 -1
- package/build/modern/chunk-HVKM54BA.js.map +0 -1
- package/build/modern/chunk-JJZQGR7A.js.map +0 -1
- package/build/modern/chunk-KPUYKHLW.js.map +0 -1
- package/build/modern/chunk-KWJ5FKX7.js.map +0 -1
- package/build/modern/chunk-PVIMOXSO.js.map +0 -1
- package/build/modern/chunk-QK7R2XJM.js.map +0 -1
- package/build/modern/chunk-QMF5ZNDG.js +0 -27
- package/build/modern/chunk-QMF5ZNDG.js.map +0 -1
- package/build/modern/chunk-QQOWWMZ3.js +0 -138
- package/build/modern/chunk-QQOWWMZ3.js.map +0 -1
- package/build/modern/chunk-T2JOPPGL.js.map +0 -1
- package/build/modern/chunk-TJCFYL5W.js.map +0 -1
- package/build/modern/chunk-U36UZJGZ.js.map +0 -1
- package/build/modern/chunk-XOROL3JY.js.map +0 -1
- package/build/modern/chunk-XXWR7UGH.js.map +0 -1
- package/build/modern/config/cerbIcons.js +0 -9
- package/src/config/cerbIcons.ts +0 -73
- /package/build/modern/{config/cerbIcons.js.map → chunk-36N4527B.js.map} +0 -0
- /package/build/modern/{chunk-CVTON5DQ.js.map → chunk-N3L3PEMF.js.map} +0 -0
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
$cerberusIcons,
|
|
3
2
|
defineIcons
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-CRII2HNX.js";
|
|
3
|
+
} from "../chunk-5SNLQZYP.js";
|
|
6
4
|
import "../chunk-E3PAEB7Y.js";
|
|
7
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-IW3LIRDG.js";
|
|
8
6
|
export {
|
|
9
|
-
$cerberusIcons,
|
|
10
7
|
defineIcons
|
|
11
8
|
};
|
|
12
9
|
//# sourceMappingURL=defineIcons.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
makeSystemConfig
|
|
3
|
+
} from "../chunk-KDDPAJMR.js";
|
|
4
|
+
import {
|
|
5
|
+
defineIcons
|
|
6
|
+
} from "../chunk-5SNLQZYP.js";
|
|
7
|
+
import "../chunk-E3PAEB7Y.js";
|
|
8
|
+
import "../chunk-IW3LIRDG.js";
|
|
9
|
+
import "../chunk-36N4527B.js";
|
|
10
|
+
export {
|
|
11
|
+
defineIcons,
|
|
12
|
+
makeSystemConfig
|
|
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":[]}
|
|
@@ -2,21 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ConfirmModal,
|
|
4
4
|
useConfirmModal
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-BE4EOU2P.js";
|
|
7
|
-
import "../chunk-Q7BRMIBR.js";
|
|
5
|
+
} from "../chunk-CCTLGF5U.js";
|
|
8
6
|
import "../chunk-XY6WL55R.js";
|
|
9
7
|
import "../chunk-2UXE5PDG.js";
|
|
8
|
+
import "../chunk-BE4EOU2P.js";
|
|
9
|
+
import "../chunk-Q7BRMIBR.js";
|
|
10
10
|
import "../chunk-IQJDVFPP.js";
|
|
11
|
+
import "../chunk-GCQMH4QA.js";
|
|
11
12
|
import "../chunk-EXGKZGML.js";
|
|
12
|
-
import "../chunk-PVIMOXSO.js";
|
|
13
13
|
import "../chunk-BUVVRQLZ.js";
|
|
14
|
-
import "../chunk-JIZQFTW6.js";
|
|
15
|
-
import "../chunk-QMF5ZNDG.js";
|
|
16
|
-
import "../chunk-CRII2HNX.js";
|
|
17
|
-
import "../chunk-E3PAEB7Y.js";
|
|
18
|
-
import "../chunk-HVKM54BA.js";
|
|
19
14
|
import "../chunk-KGQG5JGW.js";
|
|
15
|
+
import "../chunk-GITT5645.js";
|
|
16
|
+
import "../chunk-JIZQFTW6.js";
|
|
20
17
|
export {
|
|
21
18
|
ConfirmModal,
|
|
22
19
|
useConfirmModal
|
|
@@ -2,22 +2,19 @@
|
|
|
2
2
|
import {
|
|
3
3
|
CTAModal,
|
|
4
4
|
useCTAModal
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-BE4EOU2P.js";
|
|
7
|
-
import "../chunk-Q7BRMIBR.js";
|
|
5
|
+
} from "../chunk-Z64YZ5IH.js";
|
|
8
6
|
import "../chunk-XY6WL55R.js";
|
|
9
7
|
import "../chunk-2UXE5PDG.js";
|
|
8
|
+
import "../chunk-BE4EOU2P.js";
|
|
9
|
+
import "../chunk-Q7BRMIBR.js";
|
|
10
10
|
import "../chunk-IQJDVFPP.js";
|
|
11
11
|
import "../chunk-APD6IX5R.js";
|
|
12
|
+
import "../chunk-GCQMH4QA.js";
|
|
12
13
|
import "../chunk-EXGKZGML.js";
|
|
13
|
-
import "../chunk-PVIMOXSO.js";
|
|
14
14
|
import "../chunk-BUVVRQLZ.js";
|
|
15
|
-
import "../chunk-JIZQFTW6.js";
|
|
16
|
-
import "../chunk-QMF5ZNDG.js";
|
|
17
|
-
import "../chunk-CRII2HNX.js";
|
|
18
|
-
import "../chunk-E3PAEB7Y.js";
|
|
19
|
-
import "../chunk-HVKM54BA.js";
|
|
20
15
|
import "../chunk-KGQG5JGW.js";
|
|
16
|
+
import "../chunk-GITT5645.js";
|
|
17
|
+
import "../chunk-JIZQFTW6.js";
|
|
21
18
|
export {
|
|
22
19
|
CTAModal,
|
|
23
20
|
useCTAModal
|
|
@@ -2,18 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
NotificationCenter,
|
|
4
4
|
useNotificationCenter
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-N3L3PEMF.js";
|
|
6
|
+
import "../chunk-KF35CYT4.js";
|
|
7
7
|
import "../chunk-UXY3KCC3.js";
|
|
8
8
|
import "../chunk-SLHYBPJ5.js";
|
|
9
9
|
import "../chunk-IQJDVFPP.js";
|
|
10
10
|
import "../chunk-EXGKZGML.js";
|
|
11
11
|
import "../chunk-BUVVRQLZ.js";
|
|
12
|
+
import "../chunk-GITT5645.js";
|
|
12
13
|
import "../chunk-JIZQFTW6.js";
|
|
13
|
-
import "../chunk-QMF5ZNDG.js";
|
|
14
|
-
import "../chunk-CRII2HNX.js";
|
|
15
|
-
import "../chunk-E3PAEB7Y.js";
|
|
16
|
-
import "../chunk-HVKM54BA.js";
|
|
17
14
|
export {
|
|
18
15
|
NotificationCenter,
|
|
19
16
|
useNotificationCenter
|
|
@@ -2,24 +2,21 @@
|
|
|
2
2
|
import {
|
|
3
3
|
PromptModal,
|
|
4
4
|
usePromptModal
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-QKZZHZL4.js";
|
|
6
|
+
import "../chunk-XY6WL55R.js";
|
|
7
|
+
import "../chunk-2UXE5PDG.js";
|
|
8
|
+
import "../chunk-MZ3UCDUL.js";
|
|
6
9
|
import "../chunk-NMF2HYWO.js";
|
|
7
10
|
import "../chunk-BE4EOU2P.js";
|
|
8
11
|
import "../chunk-Q7BRMIBR.js";
|
|
9
|
-
import "../chunk-XY6WL55R.js";
|
|
10
|
-
import "../chunk-2UXE5PDG.js";
|
|
11
|
-
import "../chunk-U36UZJGZ.js";
|
|
12
12
|
import "../chunk-IQJDVFPP.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-GCQMH4QA.js";
|
|
14
14
|
import "../chunk-EXGKZGML.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-UZDVOIW5.js";
|
|
16
16
|
import "../chunk-BUVVRQLZ.js";
|
|
17
|
-
import "../chunk-JIZQFTW6.js";
|
|
18
|
-
import "../chunk-QMF5ZNDG.js";
|
|
19
|
-
import "../chunk-CRII2HNX.js";
|
|
20
|
-
import "../chunk-E3PAEB7Y.js";
|
|
21
|
-
import "../chunk-HVKM54BA.js";
|
|
22
17
|
import "../chunk-KGQG5JGW.js";
|
|
18
|
+
import "../chunk-GITT5645.js";
|
|
19
|
+
import "../chunk-JIZQFTW6.js";
|
|
23
20
|
export {
|
|
24
21
|
PromptModal,
|
|
25
22
|
usePromptModal
|
package/build/modern/index.js
CHANGED
|
@@ -1,15 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
NotificationCenter,
|
|
3
|
-
useNotificationCenter
|
|
4
|
-
} from "./chunk-CVTON5DQ.js";
|
|
5
1
|
import {
|
|
6
2
|
PromptModal,
|
|
7
3
|
usePromptModal
|
|
8
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QKZZHZL4.js";
|
|
9
5
|
import {
|
|
10
6
|
ThemeProvider,
|
|
11
7
|
useThemeContext
|
|
12
8
|
} from "./chunk-EB37HRCN.js";
|
|
9
|
+
import {
|
|
10
|
+
Tooltip
|
|
11
|
+
} from "./chunk-LPALHB6R.js";
|
|
12
|
+
import {
|
|
13
|
+
ConfirmModal,
|
|
14
|
+
useConfirmModal
|
|
15
|
+
} from "./chunk-CCTLGF5U.js";
|
|
16
|
+
import {
|
|
17
|
+
CTAModal,
|
|
18
|
+
useCTAModal
|
|
19
|
+
} from "./chunk-Z64YZ5IH.js";
|
|
20
|
+
import {
|
|
21
|
+
NotificationCenter,
|
|
22
|
+
useNotificationCenter
|
|
23
|
+
} from "./chunk-N3L3PEMF.js";
|
|
24
|
+
import {
|
|
25
|
+
Tag
|
|
26
|
+
} from "./chunk-EDARV2EI.js";
|
|
27
|
+
import {
|
|
28
|
+
Tbody
|
|
29
|
+
} from "./chunk-ZR37P4NZ.js";
|
|
30
|
+
import {
|
|
31
|
+
Td
|
|
32
|
+
} from "./chunk-3R4TIF2X.js";
|
|
13
33
|
import {
|
|
14
34
|
Text
|
|
15
35
|
} from "./chunk-RU5LOXWI.js";
|
|
@@ -24,22 +44,14 @@ import {
|
|
|
24
44
|
} from "./chunk-Y6QQCRQV.js";
|
|
25
45
|
import {
|
|
26
46
|
Toggle
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import {
|
|
29
|
-
Tooltip
|
|
30
|
-
} from "./chunk-LPALHB6R.js";
|
|
31
|
-
import {
|
|
32
|
-
ConfirmModal,
|
|
33
|
-
useConfirmModal
|
|
34
|
-
} from "./chunk-6BH5J5GF.js";
|
|
47
|
+
} from "./chunk-XQICKZH4.js";
|
|
35
48
|
import {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
} from "./chunk-5OVH3INN.js";
|
|
49
|
+
Radio
|
|
50
|
+
} from "./chunk-FTPZHG6J.js";
|
|
39
51
|
import {
|
|
40
52
|
Option,
|
|
41
53
|
Select
|
|
42
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-KKHL3ZO4.js";
|
|
43
55
|
import {
|
|
44
56
|
Spinner
|
|
45
57
|
} from "./chunk-7SYJFI5E.js";
|
|
@@ -60,14 +72,14 @@ import {
|
|
|
60
72
|
useTabsContext
|
|
61
73
|
} from "./chunk-RZ7NG77U.js";
|
|
62
74
|
import {
|
|
63
|
-
|
|
64
|
-
} from "./chunk-
|
|
75
|
+
ModalHeader
|
|
76
|
+
} from "./chunk-XY6WL55R.js";
|
|
65
77
|
import {
|
|
66
|
-
|
|
67
|
-
} from "./chunk-
|
|
78
|
+
ModalHeading
|
|
79
|
+
} from "./chunk-2UXE5PDG.js";
|
|
68
80
|
import {
|
|
69
|
-
|
|
70
|
-
} from "./chunk-
|
|
81
|
+
NavMenuLink
|
|
82
|
+
} from "./chunk-WPVDQRRF.js";
|
|
71
83
|
import {
|
|
72
84
|
NavMenuList,
|
|
73
85
|
getPosition
|
|
@@ -81,7 +93,7 @@ import {
|
|
|
81
93
|
} from "./chunk-6WS765J3.js";
|
|
82
94
|
import {
|
|
83
95
|
Notification
|
|
84
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-KF35CYT4.js";
|
|
85
97
|
import {
|
|
86
98
|
NotificationDescription
|
|
87
99
|
} from "./chunk-UXY3KCC3.js";
|
|
@@ -89,8 +101,11 @@ import {
|
|
|
89
101
|
NotificationHeading
|
|
90
102
|
} from "./chunk-SLHYBPJ5.js";
|
|
91
103
|
import {
|
|
92
|
-
|
|
93
|
-
} from "./chunk-
|
|
104
|
+
FileUploader
|
|
105
|
+
} from "./chunk-25HMVHLT.js";
|
|
106
|
+
import {
|
|
107
|
+
Input
|
|
108
|
+
} from "./chunk-MZ3UCDUL.js";
|
|
94
109
|
import {
|
|
95
110
|
Label
|
|
96
111
|
} from "./chunk-NMF2HYWO.js";
|
|
@@ -113,14 +128,33 @@ import {
|
|
|
113
128
|
ModalDescription
|
|
114
129
|
} from "./chunk-Q7BRMIBR.js";
|
|
115
130
|
import {
|
|
116
|
-
|
|
117
|
-
|
|
131
|
+
DatePicker,
|
|
132
|
+
DatePickerCalendar,
|
|
133
|
+
DatePickerContent,
|
|
134
|
+
DatePickerDayView,
|
|
135
|
+
DatePickerInput,
|
|
136
|
+
DatePickerMonthView,
|
|
137
|
+
DatePickerTrigger,
|
|
138
|
+
DatePickerViewControlGroup,
|
|
139
|
+
DatePickerYearView,
|
|
140
|
+
RangePickerInput
|
|
141
|
+
} from "./chunk-UMF2TWZN.js";
|
|
118
142
|
import {
|
|
119
|
-
|
|
120
|
-
} from "./chunk-
|
|
143
|
+
Portal
|
|
144
|
+
} from "./chunk-IQJDVFPP.js";
|
|
121
145
|
import {
|
|
122
|
-
|
|
123
|
-
|
|
146
|
+
DatePickerContext,
|
|
147
|
+
DatePickerLabel,
|
|
148
|
+
DatePickerTable,
|
|
149
|
+
DatePickerTableCell,
|
|
150
|
+
DatePickerTableCellTrigger,
|
|
151
|
+
DatePickerTableHeader,
|
|
152
|
+
DatePickerView,
|
|
153
|
+
DatePickerViewControl
|
|
154
|
+
} from "./chunk-5EWCH7AI.js";
|
|
155
|
+
import {
|
|
156
|
+
Droppable
|
|
157
|
+
} from "./chunk-TKI2CKHH.js";
|
|
124
158
|
import {
|
|
125
159
|
FeatureFlag
|
|
126
160
|
} from "./chunk-BIDE4IJG.js";
|
|
@@ -137,63 +171,47 @@ import {
|
|
|
137
171
|
import {
|
|
138
172
|
FileStatus,
|
|
139
173
|
processStatus
|
|
140
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-EMNBMH7Z.js";
|
|
141
175
|
import {
|
|
142
176
|
ProgressBar
|
|
143
177
|
} from "./chunk-WZJ5UQNM.js";
|
|
178
|
+
import {
|
|
179
|
+
IconButton
|
|
180
|
+
} from "./chunk-APD6IX5R.js";
|
|
144
181
|
import {
|
|
145
182
|
FieldMessage
|
|
146
183
|
} from "./chunk-JWIJHSI6.js";
|
|
147
184
|
import {
|
|
148
|
-
|
|
149
|
-
} from "./chunk-
|
|
150
|
-
import {
|
|
151
|
-
Input
|
|
152
|
-
} from "./chunk-U36UZJGZ.js";
|
|
185
|
+
AccordionItemGroup
|
|
186
|
+
} from "./chunk-JQCRDZNI.js";
|
|
153
187
|
import {
|
|
154
|
-
|
|
155
|
-
|
|
188
|
+
Admonition,
|
|
189
|
+
AdmonitionDescription,
|
|
190
|
+
AdmonitionHeading
|
|
191
|
+
} from "./chunk-NJSETNRL.js";
|
|
192
|
+
import "./chunk-ISCJ542I.js";
|
|
156
193
|
import {
|
|
157
|
-
|
|
158
|
-
} from "./chunk-
|
|
194
|
+
Avatar
|
|
195
|
+
} from "./chunk-GCQMH4QA.js";
|
|
159
196
|
import {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
DatePickerContent,
|
|
163
|
-
DatePickerDayView,
|
|
164
|
-
DatePickerInput,
|
|
165
|
-
DatePickerMonthView,
|
|
166
|
-
DatePickerYearView,
|
|
167
|
-
RangePickerInput
|
|
168
|
-
} from "./chunk-KPUYKHLW.js";
|
|
197
|
+
Button
|
|
198
|
+
} from "./chunk-EXGKZGML.js";
|
|
169
199
|
import {
|
|
170
|
-
|
|
171
|
-
} from "./chunk-
|
|
200
|
+
Checkbox
|
|
201
|
+
} from "./chunk-N24COMHJ.js";
|
|
172
202
|
import {
|
|
173
203
|
Field,
|
|
174
204
|
useFieldContext
|
|
175
205
|
} from "./chunk-UZDVOIW5.js";
|
|
176
206
|
import {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
DatePickerTable,
|
|
180
|
-
DatePickerTableCell,
|
|
181
|
-
DatePickerTableCellTrigger,
|
|
182
|
-
DatePickerTableHeader,
|
|
183
|
-
DatePickerTrigger,
|
|
184
|
-
DatePickerView,
|
|
185
|
-
DatePickerViewControl,
|
|
186
|
-
DatePickerViewControlGroup
|
|
187
|
-
} from "./chunk-BC5SZDYY.js";
|
|
188
|
-
import {
|
|
189
|
-
IconButton
|
|
190
|
-
} from "./chunk-APD6IX5R.js";
|
|
207
|
+
CircularProgress
|
|
208
|
+
} from "./chunk-6QHOKCV3.js";
|
|
191
209
|
import {
|
|
192
|
-
|
|
193
|
-
} from "./chunk-
|
|
210
|
+
Show
|
|
211
|
+
} from "./chunk-BUVVRQLZ.js";
|
|
194
212
|
import {
|
|
195
|
-
|
|
196
|
-
} from "./chunk-
|
|
213
|
+
useModal
|
|
214
|
+
} from "./chunk-KGQG5JGW.js";
|
|
197
215
|
import {
|
|
198
216
|
useRootColors
|
|
199
217
|
} from "./chunk-RMVJK26W.js";
|
|
@@ -213,26 +231,18 @@ import {
|
|
|
213
231
|
setLocalStorage
|
|
214
232
|
} from "./chunk-FQLMPEYX.js";
|
|
215
233
|
import {
|
|
216
|
-
|
|
217
|
-
} from "./chunk-
|
|
234
|
+
AccordionItemIndicator
|
|
235
|
+
} from "./chunk-XZGXRRSQ.js";
|
|
236
|
+
import {
|
|
237
|
+
CerberusProvider,
|
|
238
|
+
useCerberusContext
|
|
239
|
+
} from "./chunk-GITT5645.js";
|
|
218
240
|
import {
|
|
219
241
|
Accordion,
|
|
220
242
|
AccordionItem,
|
|
221
243
|
AccordionItemContent,
|
|
222
|
-
AccordionItemIndicator,
|
|
223
244
|
AccordionItemTrigger
|
|
224
|
-
} from "./chunk-
|
|
225
|
-
import {
|
|
226
|
-
Admonition,
|
|
227
|
-
AdmonitionDescription,
|
|
228
|
-
AdmonitionHeading
|
|
229
|
-
} from "./chunk-QQOWWMZ3.js";
|
|
230
|
-
import {
|
|
231
|
-
Avatar
|
|
232
|
-
} from "./chunk-PVIMOXSO.js";
|
|
233
|
-
import {
|
|
234
|
-
Show
|
|
235
|
-
} from "./chunk-BUVVRQLZ.js";
|
|
245
|
+
} from "./chunk-IGHMP4WA.js";
|
|
236
246
|
import "./chunk-55J6XMHW.js";
|
|
237
247
|
import {
|
|
238
248
|
createNavTriggerProps
|
|
@@ -241,12 +251,14 @@ import {
|
|
|
241
251
|
trapFocus
|
|
242
252
|
} from "./chunk-JIZQFTW6.js";
|
|
243
253
|
import {
|
|
244
|
-
|
|
254
|
+
makeSystemConfig
|
|
255
|
+
} from "./chunk-KDDPAJMR.js";
|
|
256
|
+
import {
|
|
245
257
|
defineIcons
|
|
246
|
-
} from "./chunk-
|
|
247
|
-
import "./chunk-CRII2HNX.js";
|
|
258
|
+
} from "./chunk-5SNLQZYP.js";
|
|
248
259
|
import "./chunk-E3PAEB7Y.js";
|
|
249
|
-
import "./chunk-
|
|
260
|
+
import "./chunk-IW3LIRDG.js";
|
|
261
|
+
import "./chunk-36N4527B.js";
|
|
250
262
|
import {
|
|
251
263
|
DateFormats,
|
|
252
264
|
formatISOToMilitary,
|
|
@@ -254,14 +266,10 @@ import {
|
|
|
254
266
|
formatMilitaryToISO,
|
|
255
267
|
useDate
|
|
256
268
|
} from "./chunk-3BM6MZ4A.js";
|
|
257
|
-
import {
|
|
258
|
-
useModal
|
|
259
|
-
} from "./chunk-KGQG5JGW.js";
|
|
260
269
|
|
|
261
270
|
// src/index.ts
|
|
262
271
|
export * from "@dnd-kit/core";
|
|
263
272
|
export {
|
|
264
|
-
$cerberusIcons,
|
|
265
273
|
Accordion,
|
|
266
274
|
AccordionItem,
|
|
267
275
|
AccordionItemContent,
|
|
@@ -274,6 +282,7 @@ export {
|
|
|
274
282
|
Avatar,
|
|
275
283
|
Button,
|
|
276
284
|
CTAModal,
|
|
285
|
+
CerberusProvider,
|
|
277
286
|
Checkbox,
|
|
278
287
|
CircularProgress,
|
|
279
288
|
ConfirmModal,
|
|
@@ -365,10 +374,12 @@ export {
|
|
|
365
374
|
formatNotifyCount,
|
|
366
375
|
getLocalStorage,
|
|
367
376
|
getPosition,
|
|
377
|
+
makeSystemConfig,
|
|
368
378
|
processStatus,
|
|
369
379
|
setLocalStorage,
|
|
370
380
|
trapFocus,
|
|
371
381
|
useCTAModal,
|
|
382
|
+
useCerberusContext,
|
|
372
383
|
useConfirmModal,
|
|
373
384
|
useDate,
|
|
374
385
|
useFeatureFlags,
|
|
@@ -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// components\n\nexport * from './components/Accordion'\nexport * from './components/AccordionItemGroup'\nexport * from './components/Admonition'\nexport * from './components/Avatar'\nexport * from './components/Button'\nexport * from './components/Checkbox'\nexport * from './components/CircularProgress'\nexport * from './components/DatePicker.client'\nexport * from './components/DatePicker.server'\nexport * from './components/Droppable'\nexport * from './components/FieldMessage'\nexport * from './components/FeatureFlag'\nexport * from './components/Fieldset'\nexport * from './components/FieldsetLabel'\nexport * from './components/FileStatus'\nexport * from './components/FileUploader'\nexport * from './components/IconButton'\nexport * from './components/Input'\nexport * from './components/Label'\nexport * from './components/Legend'\nexport * from './components/Menu'\nexport * from './components/Modal'\nexport * from './components/ModalHeader'\nexport * from './components/ModalHeading'\nexport * from './components/ModalDescription'\nexport * from './components/NavMenuTrigger'\nexport * from './components/NavMenuList'\nexport * from './components/NavMenuLink'\nexport * from './components/Notification'\nexport * from './components/NotificationHeading'\nexport * from './components/NotificationDescription'\nexport * from './components/Portal'\nexport * from './components/ProgressBar'\nexport * from './components/Radio'\nexport * from './components/Select'\nexport * from './components/Spinner'\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/Textarea'\nexport * from './components/Toggle'\nexport * from './components/Tooltip'\nexport * from './components/Show'\n\n// context\n\nexport * from './context/confirm-modal'\nexport * from './context/cta-modal'\nexport * from './context/feature-flags'\nexport * from './context/field'\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/useDate'\nexport * from './hooks/useModal'\nexport * from './hooks/useTheme'\nexport * from './hooks/useToggle'\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/
|
|
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// 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'\nexport * from './components/Checkbox'\nexport * from './components/CircularProgress'\nexport * from './components/DatePicker.client'\nexport * from './components/DatePicker.server'\nexport * from './components/Droppable'\nexport * from './components/FieldMessage'\nexport * from './components/FeatureFlag'\nexport * from './components/Fieldset'\nexport * from './components/FieldsetLabel'\nexport * from './components/FileStatus'\nexport * from './components/FileUploader'\nexport * from './components/IconButton'\nexport * from './components/Input'\nexport * from './components/Label'\nexport * from './components/Legend'\nexport * from './components/Menu'\nexport * from './components/Modal'\nexport * from './components/ModalHeader'\nexport * from './components/ModalHeading'\nexport * from './components/ModalDescription'\nexport * from './components/NavMenuTrigger'\nexport * from './components/NavMenuList'\nexport * from './components/NavMenuLink'\nexport * from './components/Notification'\nexport * from './components/NotificationHeading'\nexport * from './components/NotificationDescription'\nexport * from './components/Portal'\nexport * from './components/ProgressBar'\nexport * from './components/Radio'\nexport * from './components/Select'\nexport * from './components/Spinner'\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/Textarea'\nexport * from './components/Toggle'\nexport * from './components/Tooltip'\nexport * from './components/Show'\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/field'\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/useDate'\nexport * from './hooks/useModal'\nexport * from './hooks/useTheme'\nexport * from './hooks/useToggle'\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8FA,cAAc;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cerberus-design/react",
|
|
3
|
-
"version": "0.14.2-next-
|
|
3
|
+
"version": "0.14.2-next-0052cda",
|
|
4
4
|
"description": "The Cerberus Design React component library.",
|
|
5
5
|
"browserslist": "> 0.25%, not dead",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -14,13 +14,9 @@
|
|
|
14
14
|
"react": "*",
|
|
15
15
|
"react-dom": "*"
|
|
16
16
|
},
|
|
17
|
-
"optionalDependencies": {
|
|
18
|
-
"@cerberus/icons": "npm:@jsr/cerberus__icons"
|
|
19
|
-
},
|
|
20
17
|
"dependencies": {
|
|
21
18
|
"@ark-ui/react": "^4.4.0",
|
|
22
|
-
"@dnd-kit/core": "^6.1.0"
|
|
23
|
-
"@cerberus/icons": "npm:@jsr/cerberus__icons@0.14.1"
|
|
19
|
+
"@dnd-kit/core": "^6.1.0"
|
|
24
20
|
},
|
|
25
21
|
"devDependencies": {
|
|
26
22
|
"@microsoft/api-extractor": "^7.46.2",
|
|
@@ -29,8 +25,8 @@
|
|
|
29
25
|
"react": "^18",
|
|
30
26
|
"react-dom": "^18",
|
|
31
27
|
"tsup": "^8.1.0",
|
|
32
|
-
"@cerberus/
|
|
33
|
-
"@cerberus-
|
|
28
|
+
"@cerberus-design/configs": "0.0.0",
|
|
29
|
+
"@cerberus/styled-system": "npm:@cerberus-design/styled-system@0.14.2-next-0052cda"
|
|
34
30
|
},
|
|
35
31
|
"publishConfig": {
|
|
36
32
|
"access": "public"
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
3
|
+
import { Accordion as ArkAccordion } from '@ark-ui/react'
|
|
4
|
+
import { cx } from '@cerberus/styled-system/css'
|
|
5
|
+
import {
|
|
6
|
+
accordion,
|
|
7
|
+
type AccordionVariantProps,
|
|
8
|
+
} from '@cerberus/styled-system/recipes'
|
|
9
|
+
import { useCerberusContext } from '../context/cerberus'
|
|
10
|
+
|
|
11
|
+
export type AccordionItemIndicatorProps = ArkAccordion.ItemIndicatorProps &
|
|
12
|
+
AccordionVariantProps
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The indicator for the Accordion component.
|
|
16
|
+
* @definition [ARK docs](https://ark-ui.com/react/docs/components/accordion)
|
|
17
|
+
* @definition [Accordion docs](https://cerberus.digitalu.design/react/accordion)
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* <Accordion>
|
|
21
|
+
* <AccordionItem value="one">
|
|
22
|
+
* <AccordionTrigger>
|
|
23
|
+
* Accordion Item 1
|
|
24
|
+
* <AccordionIndicator />
|
|
25
|
+
* </AccordionTrigger>
|
|
26
|
+
* <AccordionContent>Accordion Item 1 content</AccordionContent>
|
|
27
|
+
* </AccordionItem>
|
|
28
|
+
* </Accordion>
|
|
29
|
+
* ```
|
|
30
|
+
* */
|
|
31
|
+
export function AccordionItemIndicator(props: AccordionItemIndicatorProps) {
|
|
32
|
+
const { size, ...indicatorProps } = props
|
|
33
|
+
const styles = accordion({ size })
|
|
34
|
+
const iconSize = size === 'sm' ? 16 : '24'
|
|
35
|
+
const { icons } = useCerberusContext()
|
|
36
|
+
const ChevronDown = icons.accordionIndicator
|
|
37
|
+
|
|
38
|
+
return (
|
|
39
|
+
<ArkAccordion.ItemIndicator
|
|
40
|
+
{...indicatorProps}
|
|
41
|
+
className={cx(indicatorProps.className, styles.itemIndicator)}
|
|
42
|
+
>
|
|
43
|
+
<ChevronDown size={iconSize} />
|
|
44
|
+
</ArkAccordion.ItemIndicator>
|
|
45
|
+
)
|
|
46
|
+
}
|
|
@@ -4,7 +4,6 @@ import {
|
|
|
4
4
|
accordion,
|
|
5
5
|
type AccordionVariantProps,
|
|
6
6
|
} from '@cerberus/styled-system/recipes'
|
|
7
|
-
import { $cerberusIcons } from '../config/defineIcons'
|
|
8
7
|
|
|
9
8
|
export type AccordionProps = ArkAccordion.RootProps & AccordionVariantProps
|
|
10
9
|
|
|
@@ -93,42 +92,6 @@ export function AccordionItemTrigger(props: AccordionItemTriggerProps) {
|
|
|
93
92
|
)
|
|
94
93
|
}
|
|
95
94
|
|
|
96
|
-
export type AccordionItemIndicatorProps = ArkAccordion.ItemIndicatorProps &
|
|
97
|
-
AccordionVariantProps
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* The indicator for the Accordion component.
|
|
101
|
-
* @definition [ARK docs](https://ark-ui.com/react/docs/components/accordion)
|
|
102
|
-
* @definition [Accordion docs](https://cerberus.digitalu.design/react/accordion)
|
|
103
|
-
* @example
|
|
104
|
-
* ```tsx
|
|
105
|
-
* <Accordion>
|
|
106
|
-
* <AccordionItem value="one">
|
|
107
|
-
* <AccordionTrigger>
|
|
108
|
-
* Accordion Item 1
|
|
109
|
-
* <AccordionIndicator />
|
|
110
|
-
* </AccordionTrigger>
|
|
111
|
-
* <AccordionContent>Accordion Item 1 content</AccordionContent>
|
|
112
|
-
* </AccordionItem>
|
|
113
|
-
* </Accordion>
|
|
114
|
-
* ```
|
|
115
|
-
* */
|
|
116
|
-
export function AccordionItemIndicator(props: AccordionItemIndicatorProps) {
|
|
117
|
-
const { size, ...indicatorProps } = props
|
|
118
|
-
const styles = accordion({ size })
|
|
119
|
-
const iconSize = size === 'sm' ? 16 : '24'
|
|
120
|
-
const { accordionIndicator: ChevronDown } = $cerberusIcons
|
|
121
|
-
|
|
122
|
-
return (
|
|
123
|
-
<ArkAccordion.ItemIndicator
|
|
124
|
-
{...indicatorProps}
|
|
125
|
-
className={cx(indicatorProps.className, styles.itemIndicator)}
|
|
126
|
-
>
|
|
127
|
-
<ChevronDown size={iconSize} />
|
|
128
|
-
</ArkAccordion.ItemIndicator>
|
|
129
|
-
)
|
|
130
|
-
}
|
|
131
|
-
|
|
132
95
|
export type AccordionItemContentProps = ArkAccordion.ItemContentProps &
|
|
133
96
|
AccordionVariantProps
|
|
134
97
|
|
|
@@ -5,10 +5,10 @@ import { Show } from './Show'
|
|
|
5
5
|
import {
|
|
6
6
|
AccordionItem,
|
|
7
7
|
AccordionItemContent,
|
|
8
|
-
AccordionItemIndicator,
|
|
9
8
|
AccordionItemTrigger,
|
|
10
9
|
} from './Accordion'
|
|
11
10
|
import { css } from '@cerberus/styled-system/css'
|
|
11
|
+
import { AccordionItemIndicator } from './Accordion.client'
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* This module contains an abstraction of the AccordionItem components.
|