@cerberus-design/react 0.8.0 → 0.8.1
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.ts → _tsup-dts-rollup.d.cts} +207 -5
- package/build/legacy/aria-helpers/nav-menu.aria.cjs +36 -0
- package/build/legacy/aria-helpers/nav-menu.aria.cjs.map +1 -0
- package/build/legacy/aria-helpers/tabs.aria.cjs +100 -0
- package/build/legacy/aria-helpers/tabs.aria.cjs.map +1 -0
- package/build/legacy/aria-helpers/trap-focus.aria.cjs +54 -0
- package/build/legacy/aria-helpers/trap-focus.aria.cjs.map +1 -0
- package/build/legacy/components/Button.cjs +50 -0
- package/build/legacy/components/Button.cjs.map +1 -0
- package/build/legacy/components/Checkbox.cjs +157 -0
- package/build/legacy/components/Checkbox.cjs.map +1 -0
- package/build/legacy/components/Droppable.cjs +54 -0
- package/build/legacy/components/Droppable.cjs.map +1 -0
- package/build/legacy/components/FeatureFlag.cjs +63 -0
- package/build/legacy/components/FeatureFlag.cjs.map +1 -0
- package/build/legacy/components/FieldMessage.cjs +59 -0
- package/build/legacy/components/FieldMessage.cjs.map +1 -0
- package/build/legacy/components/FileStatus.cjs +390 -0
- package/build/legacy/components/FileStatus.cjs.map +1 -0
- package/build/legacy/components/FileUploader.cjs +159 -0
- package/build/legacy/components/FileUploader.cjs.map +1 -0
- package/build/legacy/components/IconButton.cjs +53 -0
- package/build/legacy/components/IconButton.cjs.map +1 -0
- package/build/legacy/components/Input.cjs +145 -0
- package/build/legacy/components/Input.cjs.map +1 -0
- package/build/legacy/components/Label.cjs +93 -0
- package/build/legacy/components/Label.cjs.map +1 -0
- package/build/legacy/components/Modal.cjs +45 -0
- package/build/legacy/components/Modal.cjs.map +1 -0
- package/build/legacy/components/ModalDescription.cjs +36 -0
- package/build/legacy/components/ModalDescription.cjs.map +1 -0
- package/build/legacy/components/ModalHeader.cjs +49 -0
- package/build/legacy/components/ModalHeader.cjs.map +1 -0
- package/build/legacy/components/ModalHeading.cjs +36 -0
- package/build/legacy/components/ModalHeading.cjs.map +1 -0
- package/build/legacy/components/ModalIcon.cjs +51 -0
- package/build/legacy/components/ModalIcon.cjs.map +1 -0
- package/build/legacy/components/NavMenuLink.cjs +81 -0
- package/build/legacy/components/NavMenuLink.cjs.map +1 -0
- package/build/legacy/components/NavMenuList.cjs +131 -0
- package/build/legacy/components/NavMenuList.cjs.map +1 -0
- package/build/legacy/components/NavMenuTrigger.cjs +128 -0
- package/build/legacy/components/NavMenuTrigger.cjs.map +1 -0
- package/build/legacy/components/Notification.cjs +181 -0
- package/build/legacy/components/Notification.cjs.map +1 -0
- package/build/legacy/components/NotificationDescription.cjs +44 -0
- package/build/legacy/components/NotificationDescription.cjs.map +1 -0
- package/build/legacy/components/NotificationHeading.cjs +38 -0
- package/build/legacy/components/NotificationHeading.cjs.map +1 -0
- package/build/legacy/components/Portal.cjs +35 -0
- package/build/legacy/components/Portal.cjs.map +1 -0
- package/build/legacy/components/ProgressBar.cjs +61 -0
- package/build/legacy/components/ProgressBar.cjs.map +1 -0
- package/build/legacy/components/Radio.cjs +68 -0
- package/build/legacy/components/Radio.cjs.map +1 -0
- package/build/legacy/components/Select.cjs +170 -0
- package/build/legacy/components/Select.cjs.map +1 -0
- package/build/legacy/components/Show.cjs +40 -0
- package/build/legacy/components/Show.cjs.map +1 -0
- package/build/legacy/components/Tab.cjs +135 -0
- package/build/legacy/components/Tab.cjs.map +1 -0
- package/build/legacy/components/TabList.cjs +68 -0
- package/build/legacy/components/TabList.cjs.map +1 -0
- package/build/legacy/components/TabPanel.cjs +76 -0
- package/build/legacy/components/TabPanel.cjs.map +1 -0
- package/build/legacy/components/Table.cjs +53 -0
- package/build/legacy/components/Table.cjs.map +1 -0
- package/build/legacy/components/Tag.cjs +91 -0
- package/build/legacy/components/Tag.cjs.map +1 -0
- package/build/legacy/components/Tbody.cjs +48 -0
- package/build/legacy/components/Tbody.cjs.map +1 -0
- package/build/legacy/components/Td.cjs +48 -0
- package/build/legacy/components/Td.cjs.map +1 -0
- package/build/legacy/components/Textarea.cjs +71 -0
- package/build/legacy/components/Textarea.cjs.map +1 -0
- package/build/legacy/components/Th.cjs +80 -0
- package/build/legacy/components/Th.cjs.map +1 -0
- package/build/legacy/components/Thead.cjs +36 -0
- package/build/legacy/components/Thead.cjs.map +1 -0
- package/build/legacy/components/Toggle.cjs +151 -0
- package/build/legacy/components/Toggle.cjs.map +1 -0
- package/build/legacy/config/cerbIcons.cjs +88 -0
- package/build/legacy/config/cerbIcons.cjs.map +1 -0
- package/build/legacy/config/defineIcons.cjs +110 -0
- package/build/legacy/config/defineIcons.cjs.map +1 -0
- package/build/legacy/config/icons/checkbox.icons.cjs +67 -0
- package/build/legacy/config/icons/checkbox.icons.cjs.map +1 -0
- package/build/legacy/context/confirm-modal.cjs +371 -0
- package/build/legacy/context/confirm-modal.cjs.map +1 -0
- package/build/legacy/context/feature-flags.cjs +48 -0
- package/build/legacy/context/feature-flags.cjs.map +1 -0
- package/build/legacy/context/field.cjs +55 -0
- package/build/legacy/context/field.cjs.map +1 -0
- package/build/legacy/context/navMenu.cjs +70 -0
- package/build/legacy/context/navMenu.cjs.map +1 -0
- package/build/legacy/context/notification-center.cjs +347 -0
- package/build/legacy/context/notification-center.cjs.map +1 -0
- package/build/legacy/context/prompt-modal.cjs +508 -0
- package/build/legacy/context/prompt-modal.cjs.map +1 -0
- package/build/legacy/context/tabs.cjs +78 -0
- package/build/legacy/context/tabs.cjs.map +1 -0
- package/build/legacy/context/theme.cjs +104 -0
- package/build/legacy/context/theme.cjs.map +1 -0
- package/build/legacy/hooks/useModal.cjs +50 -0
- package/build/legacy/hooks/useModal.cjs.map +1 -0
- package/build/legacy/hooks/useTheme.cjs +87 -0
- package/build/legacy/hooks/useTheme.cjs.map +1 -0
- package/build/legacy/hooks/useToggle.cjs +47 -0
- package/build/legacy/hooks/useToggle.cjs.map +1 -0
- package/build/legacy/index.cjs +2165 -0
- package/build/legacy/index.cjs.map +1 -0
- package/build/legacy/types.cjs +19 -0
- package/build/legacy/types.cjs.map +1 -0
- package/build/modern/_tsup-dts-rollup.d.ts +207 -5
- package/build/{legacy/chunk-JJGZRBIR.js → modern/chunk-2FK7NR7Y.js} +8 -7
- package/build/{legacy/chunk-JJGZRBIR.js.map → modern/chunk-2FK7NR7Y.js.map} +1 -1
- package/build/modern/chunk-4FD33RTW.js +56 -0
- package/build/modern/chunk-4FD33RTW.js.map +1 -0
- package/build/modern/{chunk-XB4ZRAH4.js → chunk-53QBTZZF.js} +5 -5
- package/build/modern/{chunk-BEYPMC73.js → chunk-5WVXIAG2.js} +2 -2
- package/build/modern/chunk-7NX4RGDB.js +218 -0
- package/build/modern/chunk-7NX4RGDB.js.map +1 -0
- package/build/modern/chunk-CP7OUC2Q.js +42 -0
- package/build/modern/chunk-CP7OUC2Q.js.map +1 -0
- package/build/modern/{chunk-4N2L357B.js → chunk-EJIMJWPB.js} +2 -2
- package/build/{legacy/chunk-GVNPFXKL.js → modern/chunk-GUECLKHY.js} +18 -1
- package/build/modern/chunk-GUECLKHY.js.map +1 -0
- package/build/modern/{chunk-Y5IY7O23.js → chunk-GZY6CH7D.js} +5 -5
- package/build/{legacy/chunk-IL5ELPTT.js → modern/chunk-ID3XWGLY.js} +2 -2
- package/build/modern/chunk-RHG26FYL.js +68 -0
- package/build/modern/chunk-RHG26FYL.js.map +1 -0
- package/build/modern/{chunk-LTDNZRUY.js → chunk-S6CMAXQF.js} +10 -10
- package/build/modern/{chunk-IOG6XIR5.js → chunk-TF3HRELU.js} +3 -3
- package/build/modern/{chunk-IOG6XIR5.js.map → chunk-TF3HRELU.js.map} +1 -1
- package/build/modern/chunk-TYTEREKZ.js +39 -0
- package/build/modern/chunk-TYTEREKZ.js.map +1 -0
- package/build/{legacy/chunk-JJP2TFTU.js → modern/chunk-VCR5C6Q3.js} +1 -1
- package/build/modern/chunk-VCR5C6Q3.js.map +1 -0
- package/build/modern/{chunk-QO2UXGW4.js → chunk-VPWBSZAR.js} +2 -2
- package/build/modern/components/Checkbox.js +13 -0
- package/build/modern/components/FileStatus.js +17 -0
- package/build/modern/components/FileUploader.js +4 -3
- package/build/modern/components/Input.js +5 -4
- package/build/modern/components/Label.js +2 -2
- package/build/modern/components/ModalIcon.js +1 -1
- package/build/modern/components/Notification.js +4 -3
- package/build/modern/components/ProgressBar.js +7 -0
- package/build/modern/components/Select.js +15 -0
- package/build/modern/components/Toggle.js +4 -3
- package/build/modern/config/cerbIcons.js +2 -1
- package/build/modern/config/defineIcons.js +3 -2
- package/build/modern/config/icons/checkbox.icons.js +9 -0
- package/build/modern/context/confirm-modal.js +5 -4
- package/build/modern/context/notification-center.js +5 -4
- package/build/modern/context/prompt-modal.js +8 -7
- package/build/modern/index.js +59 -38
- package/build/modern/index.js.map +1 -1
- package/package.json +6 -6
- package/src/components/Checkbox.tsx +76 -0
- package/src/components/FileStatus.tsx +246 -0
- package/src/components/FileUploader.tsx +1 -1
- package/src/components/Label.tsx +3 -2
- package/src/components/ModalIcon.tsx +2 -2
- package/src/components/ProgressBar.tsx +61 -0
- package/src/components/Select.tsx +96 -0
- package/src/config/cerbIcons.ts +20 -0
- package/src/config/icons/checkbox.icons.tsx +49 -0
- package/src/index.ts +4 -0
- package/build/legacy/aria-helpers/nav-menu.aria.js +0 -7
- package/build/legacy/aria-helpers/tabs.aria.js +0 -9
- package/build/legacy/aria-helpers/trap-focus.aria.js +0 -7
- package/build/legacy/chunk-2UFNQM55.js +0 -21
- package/build/legacy/chunk-2UFNQM55.js.map +0 -1
- package/build/legacy/chunk-2VPKILZ6.js +0 -122
- package/build/legacy/chunk-2VPKILZ6.js.map +0 -1
- package/build/legacy/chunk-3C2DJSEE.js +0 -16
- package/build/legacy/chunk-3C2DJSEE.js.map +0 -1
- package/build/legacy/chunk-3GXISGPS.js +0 -47
- package/build/legacy/chunk-3GXISGPS.js.map +0 -1
- package/build/legacy/chunk-4CAT3FHV.js +0 -11
- package/build/legacy/chunk-4CAT3FHV.js.map +0 -1
- package/build/legacy/chunk-4M3EUP57.js +0 -22
- package/build/legacy/chunk-4M3EUP57.js.map +0 -1
- package/build/legacy/chunk-4M4LCQ43.js +0 -12
- package/build/legacy/chunk-4M4LCQ43.js.map +0 -1
- package/build/legacy/chunk-4O4QFF4S.js +0 -15
- package/build/legacy/chunk-4O4QFF4S.js.map +0 -1
- package/build/legacy/chunk-55J6XMHW.js +0 -1
- package/build/legacy/chunk-6DIGPXAD.js +0 -48
- package/build/legacy/chunk-6DIGPXAD.js.map +0 -1
- package/build/legacy/chunk-6F34A7NZ.js +0 -28
- package/build/legacy/chunk-6F34A7NZ.js.map +0 -1
- package/build/legacy/chunk-7VJOPJVX.js +0 -29
- package/build/legacy/chunk-7VJOPJVX.js.map +0 -1
- package/build/legacy/chunk-A5WYZVUR.js +0 -28
- package/build/legacy/chunk-A5WYZVUR.js.map +0 -1
- package/build/legacy/chunk-AAKIOHAX.js +0 -155
- package/build/legacy/chunk-AAKIOHAX.js.map +0 -1
- package/build/legacy/chunk-BEYPMC73.js +0 -27
- package/build/legacy/chunk-EVEEQRH6.js +0 -58
- package/build/legacy/chunk-EVEEQRH6.js.map +0 -1
- package/build/legacy/chunk-GKUDLVOV.js +0 -64
- package/build/legacy/chunk-GKUDLVOV.js.map +0 -1
- package/build/legacy/chunk-GVNPFXKL.js.map +0 -1
- package/build/legacy/chunk-HW76XVA3.js +0 -22
- package/build/legacy/chunk-HW76XVA3.js.map +0 -1
- package/build/legacy/chunk-ISPTI4GC.js +0 -32
- package/build/legacy/chunk-ISPTI4GC.js.map +0 -1
- package/build/legacy/chunk-JB7IQ2BM.js +0 -12
- package/build/legacy/chunk-JB7IQ2BM.js.map +0 -1
- package/build/legacy/chunk-JF76VIL3.js +0 -12
- package/build/legacy/chunk-JF76VIL3.js.map +0 -1
- package/build/legacy/chunk-JJP2TFTU.js.map +0 -1
- package/build/legacy/chunk-KESKDLX6.js +0 -30
- package/build/legacy/chunk-KESKDLX6.js.map +0 -1
- package/build/legacy/chunk-KF24CS4S.js +0 -58
- package/build/legacy/chunk-KF24CS4S.js.map +0 -1
- package/build/legacy/chunk-KJUCHZHV.js +0 -51
- package/build/legacy/chunk-KJUCHZHV.js.map +0 -1
- package/build/legacy/chunk-L46XIE3D.js +0 -208
- package/build/legacy/chunk-L46XIE3D.js.map +0 -1
- package/build/legacy/chunk-LF2QFS5S.js +0 -76
- package/build/legacy/chunk-N3FUF4TB.js +0 -12
- package/build/legacy/chunk-N3FUF4TB.js.map +0 -1
- package/build/legacy/chunk-NE5NHILF.js +0 -47
- package/build/legacy/chunk-NE5NHILF.js.map +0 -1
- package/build/legacy/chunk-PH64POOB.js +0 -33
- package/build/legacy/chunk-PH64POOB.js.map +0 -1
- package/build/legacy/chunk-PJ3744I6.js +0 -24
- package/build/legacy/chunk-PJ3744I6.js.map +0 -1
- package/build/legacy/chunk-PMCYXRAH.js +0 -86
- package/build/legacy/chunk-PMCYXRAH.js.map +0 -1
- package/build/legacy/chunk-QU7UV5DB.js +0 -25
- package/build/legacy/chunk-QU7UV5DB.js.map +0 -1
- package/build/legacy/chunk-RPZAPUCF.js +0 -81
- package/build/legacy/chunk-RPZAPUCF.js.map +0 -1
- package/build/legacy/chunk-SCQVXJBT.js +0 -22
- package/build/legacy/chunk-SCQVXJBT.js.map +0 -1
- package/build/legacy/chunk-SLHX5K6I.js +0 -29
- package/build/legacy/chunk-SLHX5K6I.js.map +0 -1
- package/build/legacy/chunk-SMCEFK6Q.js +0 -63
- package/build/legacy/chunk-SMCEFK6Q.js.map +0 -1
- package/build/legacy/chunk-SXXWC6UD.js +0 -83
- package/build/legacy/chunk-SXXWC6UD.js.map +0 -1
- package/build/legacy/chunk-TCO46FK7.js +0 -36
- package/build/legacy/chunk-TCO46FK7.js.map +0 -1
- package/build/legacy/chunk-TZNYJ3G7.js +0 -25
- package/build/legacy/chunk-TZNYJ3G7.js.map +0 -1
- package/build/legacy/chunk-U72VPIZA.js +0 -32
- package/build/legacy/chunk-U72VPIZA.js.map +0 -1
- package/build/legacy/chunk-VGHVH2T3.js +0 -24
- package/build/legacy/chunk-VGHVH2T3.js.map +0 -1
- package/build/legacy/chunk-VULPMZUW.js +0 -18
- package/build/legacy/chunk-VULPMZUW.js.map +0 -1
- package/build/legacy/chunk-XB4ZRAH4.js +0 -42
- package/build/legacy/chunk-XREC5IJE.js +0 -24
- package/build/legacy/chunk-XREC5IJE.js.map +0 -1
- package/build/legacy/chunk-ZAU4JVLL.js +0 -33
- package/build/legacy/chunk-ZAU4JVLL.js.map +0 -1
- package/build/legacy/components/Button.js +0 -7
- package/build/legacy/components/Droppable.js +0 -8
- package/build/legacy/components/Droppable.js.map +0 -1
- package/build/legacy/components/FeatureFlag.js +0 -10
- package/build/legacy/components/FeatureFlag.js.map +0 -1
- package/build/legacy/components/FieldMessage.js +0 -9
- package/build/legacy/components/FieldMessage.js.map +0 -1
- package/build/legacy/components/FileUploader.js +0 -11
- package/build/legacy/components/FileUploader.js.map +0 -1
- package/build/legacy/components/IconButton.js +0 -7
- package/build/legacy/components/IconButton.js.map +0 -1
- package/build/legacy/components/Input.js +0 -12
- package/build/legacy/components/Input.js.map +0 -1
- package/build/legacy/components/Label.js +0 -10
- package/build/legacy/components/Label.js.map +0 -1
- package/build/legacy/components/Modal.js +0 -7
- package/build/legacy/components/Modal.js.map +0 -1
- package/build/legacy/components/ModalDescription.js +0 -7
- package/build/legacy/components/ModalDescription.js.map +0 -1
- package/build/legacy/components/ModalHeader.js +0 -7
- package/build/legacy/components/ModalHeader.js.map +0 -1
- package/build/legacy/components/ModalHeading.js +0 -7
- package/build/legacy/components/ModalHeading.js.map +0 -1
- package/build/legacy/components/ModalIcon.js +0 -7
- package/build/legacy/components/ModalIcon.js.map +0 -1
- package/build/legacy/components/NavMenuLink.js +0 -8
- package/build/legacy/components/NavMenuLink.js.map +0 -1
- package/build/legacy/components/NavMenuList.js +0 -12
- package/build/legacy/components/NavMenuList.js.map +0 -1
- package/build/legacy/components/NavMenuTrigger.js +0 -11
- package/build/legacy/components/NavMenuTrigger.js.map +0 -1
- package/build/legacy/components/Notification.js +0 -11
- package/build/legacy/components/Notification.js.map +0 -1
- package/build/legacy/components/NotificationDescription.js +0 -7
- package/build/legacy/components/NotificationDescription.js.map +0 -1
- package/build/legacy/components/NotificationHeading.js +0 -7
- package/build/legacy/components/NotificationHeading.js.map +0 -1
- package/build/legacy/components/Portal.js +0 -7
- package/build/legacy/components/Portal.js.map +0 -1
- package/build/legacy/components/Radio.js +0 -9
- package/build/legacy/components/Radio.js.map +0 -1
- package/build/legacy/components/Show.js +0 -8
- package/build/legacy/components/Show.js.map +0 -1
- package/build/legacy/components/Tab.js +0 -10
- package/build/legacy/components/Tab.js.map +0 -1
- package/build/legacy/components/TabList.js +0 -9
- package/build/legacy/components/TabList.js.map +0 -1
- package/build/legacy/components/TabPanel.js +0 -10
- package/build/legacy/components/TabPanel.js.map +0 -1
- package/build/legacy/components/Table.js +0 -9
- package/build/legacy/components/Table.js.map +0 -1
- package/build/legacy/components/Tag.js +0 -8
- package/build/legacy/components/Tag.js.map +0 -1
- package/build/legacy/components/Tbody.js +0 -7
- package/build/legacy/components/Tbody.js.map +0 -1
- package/build/legacy/components/Td.js +0 -7
- package/build/legacy/components/Td.js.map +0 -1
- package/build/legacy/components/Textarea.js +0 -9
- package/build/legacy/components/Textarea.js.map +0 -1
- package/build/legacy/components/Th.js +0 -8
- package/build/legacy/components/Th.js.map +0 -1
- package/build/legacy/components/Thead.js +0 -7
- package/build/legacy/components/Thead.js.map +0 -1
- package/build/legacy/components/Toggle.js +0 -11
- package/build/legacy/components/Toggle.js.map +0 -1
- package/build/legacy/config/cerbIcons.js +0 -7
- package/build/legacy/config/cerbIcons.js.map +0 -1
- package/build/legacy/config/defineIcons.js +0 -10
- package/build/legacy/config/defineIcons.js.map +0 -1
- package/build/legacy/context/confirm-modal.js +0 -22
- package/build/legacy/context/confirm-modal.js.map +0 -1
- package/build/legacy/context/feature-flags.js +0 -10
- package/build/legacy/context/feature-flags.js.map +0 -1
- package/build/legacy/context/field.js +0 -10
- package/build/legacy/context/field.js.map +0 -1
- package/build/legacy/context/navMenu.js +0 -10
- package/build/legacy/context/navMenu.js.map +0 -1
- package/build/legacy/context/notification-center.js +0 -19
- package/build/legacy/context/notification-center.js.map +0 -1
- package/build/legacy/context/prompt-modal.js +0 -25
- package/build/legacy/context/prompt-modal.js.map +0 -1
- package/build/legacy/context/tabs.js +0 -12
- package/build/legacy/context/tabs.js.map +0 -1
- package/build/legacy/context/theme.js +0 -14
- package/build/legacy/context/theme.js.map +0 -1
- package/build/legacy/hooks/useModal.js +0 -8
- package/build/legacy/hooks/useModal.js.map +0 -1
- package/build/legacy/hooks/useTheme.js +0 -8
- package/build/legacy/hooks/useTheme.js.map +0 -1
- package/build/legacy/hooks/useToggle.js +0 -8
- package/build/legacy/hooks/useToggle.js.map +0 -1
- package/build/legacy/index.js +0 -226
- package/build/legacy/index.js.map +0 -1
- package/build/legacy/types.js +0 -2
- package/build/legacy/types.js.map +0 -1
- package/build/modern/chunk-4N2L357B.js.map +0 -1
- package/build/modern/chunk-BEYPMC73.js.map +0 -1
- package/build/modern/chunk-GVNPFXKL.js +0 -26
- package/build/modern/chunk-GVNPFXKL.js.map +0 -1
- package/build/modern/chunk-IL5ELPTT.js +0 -58
- package/build/modern/chunk-IL5ELPTT.js.map +0 -1
- package/build/modern/chunk-JJGZRBIR.js +0 -49
- package/build/modern/chunk-JJGZRBIR.js.map +0 -1
- package/build/modern/chunk-JJP2TFTU.js +0 -29
- package/build/modern/chunk-JJP2TFTU.js.map +0 -1
- package/build/modern/chunk-XB4ZRAH4.js.map +0 -1
- /package/build/legacy/{noExternals.d.ts → noExternals.d.cts} +0 -0
- /package/build/{legacy/chunk-XB4ZRAH4.js.map → modern/chunk-53QBTZZF.js.map} +0 -0
- /package/build/{legacy/chunk-BEYPMC73.js.map → modern/chunk-5WVXIAG2.js.map} +0 -0
- /package/build/{legacy/chunk-LF2QFS5S.js.map → modern/chunk-EJIMJWPB.js.map} +0 -0
- /package/build/modern/{chunk-Y5IY7O23.js.map → chunk-GZY6CH7D.js.map} +0 -0
- /package/build/{legacy/chunk-IL5ELPTT.js.map → modern/chunk-ID3XWGLY.js.map} +0 -0
- /package/build/modern/{chunk-LTDNZRUY.js.map → chunk-S6CMAXQF.js.map} +0 -0
- /package/build/modern/{chunk-QO2UXGW4.js.map → chunk-VPWBSZAR.js.map} +0 -0
- /package/build/{legacy/aria-helpers/nav-menu.aria.js.map → modern/components/Checkbox.js.map} +0 -0
- /package/build/{legacy/aria-helpers/tabs.aria.js.map → modern/components/FileStatus.js.map} +0 -0
- /package/build/{legacy/aria-helpers/trap-focus.aria.js.map → modern/components/ProgressBar.js.map} +0 -0
- /package/build/{legacy/chunk-55J6XMHW.js.map → modern/components/Select.js.map} +0 -0
- /package/build/{legacy/components/Button.js.map → modern/config/icons/checkbox.icons.js.map} +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
FileStatus,
|
|
4
|
+
processStatus
|
|
5
|
+
} from "../chunk-7NX4RGDB.js";
|
|
6
|
+
import "../chunk-TYTEREKZ.js";
|
|
7
|
+
import "../chunk-SLHX5K6I.js";
|
|
8
|
+
import "../chunk-VGHVH2T3.js";
|
|
9
|
+
import "../chunk-ZAU4JVLL.js";
|
|
10
|
+
import "../chunk-5WVXIAG2.js";
|
|
11
|
+
import "../chunk-GUECLKHY.js";
|
|
12
|
+
import "../chunk-CP7OUC2Q.js";
|
|
13
|
+
export {
|
|
14
|
+
FileStatus,
|
|
15
|
+
processStatus
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=FileStatus.js.map
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
FileUploader
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-TF3HRELU.js";
|
|
5
5
|
import "../chunk-4O4QFF4S.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-5WVXIAG2.js";
|
|
7
|
+
import "../chunk-GUECLKHY.js";
|
|
8
|
+
import "../chunk-CP7OUC2Q.js";
|
|
8
9
|
export {
|
|
9
10
|
FileUploader
|
|
10
11
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Input
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-ZAU4JVLL.js";
|
|
4
|
+
} from "../chunk-53QBTZZF.js";
|
|
6
5
|
import "../chunk-4O4QFF4S.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-ZAU4JVLL.js";
|
|
7
|
+
import "../chunk-5WVXIAG2.js";
|
|
8
|
+
import "../chunk-GUECLKHY.js";
|
|
9
|
+
import "../chunk-CP7OUC2Q.js";
|
|
9
10
|
export {
|
|
10
11
|
Input
|
|
11
12
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Notification
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-EJIMJWPB.js";
|
|
5
5
|
import "../chunk-JIZQFTW6.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-5WVXIAG2.js";
|
|
7
|
+
import "../chunk-GUECLKHY.js";
|
|
8
|
+
import "../chunk-CP7OUC2Q.js";
|
|
8
9
|
export {
|
|
9
10
|
Notification
|
|
10
11
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Option,
|
|
4
|
+
Select
|
|
5
|
+
} from "../chunk-RHG26FYL.js";
|
|
6
|
+
import "../chunk-4O4QFF4S.js";
|
|
7
|
+
import "../chunk-ZAU4JVLL.js";
|
|
8
|
+
import "../chunk-5WVXIAG2.js";
|
|
9
|
+
import "../chunk-GUECLKHY.js";
|
|
10
|
+
import "../chunk-CP7OUC2Q.js";
|
|
11
|
+
export {
|
|
12
|
+
Option,
|
|
13
|
+
Select
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=Select.js.map
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Toggle
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-ID3XWGLY.js";
|
|
5
5
|
import "../chunk-ZAU4JVLL.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-5WVXIAG2.js";
|
|
7
|
+
import "../chunk-GUECLKHY.js";
|
|
8
|
+
import "../chunk-CP7OUC2Q.js";
|
|
8
9
|
export {
|
|
9
10
|
Toggle
|
|
10
11
|
};
|
|
@@ -2,18 +2,19 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ConfirmModal,
|
|
4
4
|
useConfirmModal
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-GZY6CH7D.js";
|
|
6
|
+
import "../chunk-VCR5C6Q3.js";
|
|
6
7
|
import "../chunk-4CAT3FHV.js";
|
|
7
8
|
import "../chunk-2UFNQM55.js";
|
|
8
9
|
import "../chunk-4M4LCQ43.js";
|
|
9
10
|
import "../chunk-QU7UV5DB.js";
|
|
10
11
|
import "../chunk-JB7IQ2BM.js";
|
|
11
|
-
import "../chunk-JJP2TFTU.js";
|
|
12
12
|
import "../chunk-6F34A7NZ.js";
|
|
13
13
|
import "../chunk-4O4QFF4S.js";
|
|
14
14
|
import "../chunk-JIZQFTW6.js";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-5WVXIAG2.js";
|
|
16
|
+
import "../chunk-GUECLKHY.js";
|
|
17
|
+
import "../chunk-CP7OUC2Q.js";
|
|
17
18
|
import "../chunk-C5HLLGME.js";
|
|
18
19
|
export {
|
|
19
20
|
ConfirmModal,
|
|
@@ -2,16 +2,17 @@
|
|
|
2
2
|
import {
|
|
3
3
|
NotificationCenter,
|
|
4
4
|
useNotificationCenter
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-VPWBSZAR.js";
|
|
6
|
+
import "../chunk-EJIMJWPB.js";
|
|
7
7
|
import "../chunk-HW76XVA3.js";
|
|
8
8
|
import "../chunk-3C2DJSEE.js";
|
|
9
9
|
import "../chunk-4CAT3FHV.js";
|
|
10
10
|
import "../chunk-6F34A7NZ.js";
|
|
11
11
|
import "../chunk-4O4QFF4S.js";
|
|
12
12
|
import "../chunk-JIZQFTW6.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-5WVXIAG2.js";
|
|
14
|
+
import "../chunk-GUECLKHY.js";
|
|
15
|
+
import "../chunk-CP7OUC2Q.js";
|
|
15
16
|
export {
|
|
16
17
|
NotificationCenter,
|
|
17
18
|
useNotificationCenter
|
|
@@ -2,21 +2,22 @@
|
|
|
2
2
|
import {
|
|
3
3
|
PromptModal,
|
|
4
4
|
usePromptModal
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-S6CMAXQF.js";
|
|
6
|
+
import "../chunk-VCR5C6Q3.js";
|
|
6
7
|
import "../chunk-4CAT3FHV.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-53QBTZZF.js";
|
|
9
|
+
import "../chunk-2FK7NR7Y.js";
|
|
9
10
|
import "../chunk-2UFNQM55.js";
|
|
10
11
|
import "../chunk-4M4LCQ43.js";
|
|
11
12
|
import "../chunk-QU7UV5DB.js";
|
|
12
13
|
import "../chunk-JB7IQ2BM.js";
|
|
13
|
-
import "../chunk-JJP2TFTU.js";
|
|
14
14
|
import "../chunk-6F34A7NZ.js";
|
|
15
|
-
import "../chunk-ZAU4JVLL.js";
|
|
16
15
|
import "../chunk-4O4QFF4S.js";
|
|
16
|
+
import "../chunk-ZAU4JVLL.js";
|
|
17
17
|
import "../chunk-JIZQFTW6.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-5WVXIAG2.js";
|
|
19
|
+
import "../chunk-GUECLKHY.js";
|
|
20
|
+
import "../chunk-CP7OUC2Q.js";
|
|
20
21
|
import "../chunk-C5HLLGME.js";
|
|
21
22
|
export {
|
|
22
23
|
PromptModal,
|
package/build/modern/index.js
CHANGED
|
@@ -1,7 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
NotificationCenter,
|
|
3
|
+
useNotificationCenter
|
|
4
|
+
} from "./chunk-VPWBSZAR.js";
|
|
1
5
|
import {
|
|
2
6
|
PromptModal,
|
|
3
7
|
usePromptModal
|
|
4
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-S6CMAXQF.js";
|
|
9
|
+
import {
|
|
10
|
+
Tag
|
|
11
|
+
} from "./chunk-Z6IWNVPN.js";
|
|
12
|
+
import {
|
|
13
|
+
Tbody
|
|
14
|
+
} from "./chunk-PJ3744I6.js";
|
|
15
|
+
import {
|
|
16
|
+
Td
|
|
17
|
+
} from "./chunk-XREC5IJE.js";
|
|
18
|
+
import {
|
|
19
|
+
Textarea
|
|
20
|
+
} from "./chunk-TCO46FK7.js";
|
|
5
21
|
import {
|
|
6
22
|
Th
|
|
7
23
|
} from "./chunk-3GXISGPS.js";
|
|
@@ -10,15 +26,18 @@ import {
|
|
|
10
26
|
} from "./chunk-N3FUF4TB.js";
|
|
11
27
|
import {
|
|
12
28
|
Toggle
|
|
13
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ID3XWGLY.js";
|
|
14
30
|
import {
|
|
15
31
|
ConfirmModal,
|
|
16
32
|
useConfirmModal
|
|
17
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-GZY6CH7D.js";
|
|
18
34
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
35
|
+
Radio
|
|
36
|
+
} from "./chunk-PH64POOB.js";
|
|
37
|
+
import {
|
|
38
|
+
Option,
|
|
39
|
+
Select
|
|
40
|
+
} from "./chunk-RHG26FYL.js";
|
|
22
41
|
import {
|
|
23
42
|
Tab
|
|
24
43
|
} from "./chunk-SONHHNYQ.js";
|
|
@@ -33,17 +52,11 @@ import {
|
|
|
33
52
|
Tr
|
|
34
53
|
} from "./chunk-A5WYZVUR.js";
|
|
35
54
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import {
|
|
39
|
-
Tbody
|
|
40
|
-
} from "./chunk-PJ3744I6.js";
|
|
41
|
-
import {
|
|
42
|
-
Td
|
|
43
|
-
} from "./chunk-XREC5IJE.js";
|
|
55
|
+
ModalIcon
|
|
56
|
+
} from "./chunk-VCR5C6Q3.js";
|
|
44
57
|
import {
|
|
45
|
-
|
|
46
|
-
} from "./chunk-
|
|
58
|
+
NavMenuLink
|
|
59
|
+
} from "./chunk-6DIGPXAD.js";
|
|
47
60
|
import {
|
|
48
61
|
NavMenuList,
|
|
49
62
|
getPosition
|
|
@@ -57,7 +70,7 @@ import {
|
|
|
57
70
|
} from "./chunk-KJUCHZHV.js";
|
|
58
71
|
import {
|
|
59
72
|
Notification
|
|
60
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-EJIMJWPB.js";
|
|
61
74
|
import {
|
|
62
75
|
NotificationDescription
|
|
63
76
|
} from "./chunk-HW76XVA3.js";
|
|
@@ -68,14 +81,14 @@ import {
|
|
|
68
81
|
Portal
|
|
69
82
|
} from "./chunk-4CAT3FHV.js";
|
|
70
83
|
import {
|
|
71
|
-
|
|
72
|
-
} from "./chunk-
|
|
84
|
+
FileUploader
|
|
85
|
+
} from "./chunk-TF3HRELU.js";
|
|
73
86
|
import {
|
|
74
87
|
Input
|
|
75
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-53QBTZZF.js";
|
|
76
89
|
import {
|
|
77
90
|
Label
|
|
78
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-2FK7NR7Y.js";
|
|
79
92
|
import {
|
|
80
93
|
Modal
|
|
81
94
|
} from "./chunk-2UFNQM55.js";
|
|
@@ -88,12 +101,6 @@ import {
|
|
|
88
101
|
import {
|
|
89
102
|
ModalHeading
|
|
90
103
|
} from "./chunk-JB7IQ2BM.js";
|
|
91
|
-
import {
|
|
92
|
-
ModalIcon
|
|
93
|
-
} from "./chunk-JJP2TFTU.js";
|
|
94
|
-
import {
|
|
95
|
-
NavMenuLink
|
|
96
|
-
} from "./chunk-6DIGPXAD.js";
|
|
97
104
|
import {
|
|
98
105
|
MODE_KEY,
|
|
99
106
|
THEME_KEY,
|
|
@@ -107,6 +114,9 @@ import {
|
|
|
107
114
|
import {
|
|
108
115
|
Button
|
|
109
116
|
} from "./chunk-6F34A7NZ.js";
|
|
117
|
+
import {
|
|
118
|
+
Checkbox
|
|
119
|
+
} from "./chunk-4FD33RTW.js";
|
|
110
120
|
import {
|
|
111
121
|
Droppable
|
|
112
122
|
} from "./chunk-7VJOPJVX.js";
|
|
@@ -117,6 +127,19 @@ import {
|
|
|
117
127
|
FeatureFlags,
|
|
118
128
|
useFeatureFlags
|
|
119
129
|
} from "./chunk-4M3EUP57.js";
|
|
130
|
+
import {
|
|
131
|
+
Show
|
|
132
|
+
} from "./chunk-4O4QFF4S.js";
|
|
133
|
+
import {
|
|
134
|
+
FileStatus,
|
|
135
|
+
processStatus
|
|
136
|
+
} from "./chunk-7NX4RGDB.js";
|
|
137
|
+
import {
|
|
138
|
+
ProgressBar
|
|
139
|
+
} from "./chunk-TYTEREKZ.js";
|
|
140
|
+
import {
|
|
141
|
+
IconButton
|
|
142
|
+
} from "./chunk-SLHX5K6I.js";
|
|
120
143
|
import {
|
|
121
144
|
FieldMessage
|
|
122
145
|
} from "./chunk-VGHVH2T3.js";
|
|
@@ -124,15 +147,6 @@ import {
|
|
|
124
147
|
Field,
|
|
125
148
|
useFieldContext
|
|
126
149
|
} from "./chunk-ZAU4JVLL.js";
|
|
127
|
-
import {
|
|
128
|
-
FileUploader
|
|
129
|
-
} from "./chunk-IOG6XIR5.js";
|
|
130
|
-
import {
|
|
131
|
-
Show
|
|
132
|
-
} from "./chunk-4O4QFF4S.js";
|
|
133
|
-
import {
|
|
134
|
-
IconButton
|
|
135
|
-
} from "./chunk-SLHX5K6I.js";
|
|
136
150
|
import "./chunk-55J6XMHW.js";
|
|
137
151
|
import {
|
|
138
152
|
createNavTriggerProps
|
|
@@ -151,8 +165,9 @@ import {
|
|
|
151
165
|
import {
|
|
152
166
|
$cerberusIcons,
|
|
153
167
|
defineIcons
|
|
154
|
-
} from "./chunk-
|
|
155
|
-
import "./chunk-
|
|
168
|
+
} from "./chunk-5WVXIAG2.js";
|
|
169
|
+
import "./chunk-GUECLKHY.js";
|
|
170
|
+
import "./chunk-CP7OUC2Q.js";
|
|
156
171
|
import {
|
|
157
172
|
useModal
|
|
158
173
|
} from "./chunk-C5HLLGME.js";
|
|
@@ -162,12 +177,14 @@ export * from "@dnd-kit/core";
|
|
|
162
177
|
export {
|
|
163
178
|
$cerberusIcons,
|
|
164
179
|
Button,
|
|
180
|
+
Checkbox,
|
|
165
181
|
ConfirmModal,
|
|
166
182
|
Droppable,
|
|
167
183
|
FeatureFlag,
|
|
168
184
|
FeatureFlags,
|
|
169
185
|
Field,
|
|
170
186
|
FieldMessage,
|
|
187
|
+
FileStatus,
|
|
171
188
|
FileUploader,
|
|
172
189
|
IconButton,
|
|
173
190
|
Input,
|
|
@@ -186,9 +203,12 @@ export {
|
|
|
186
203
|
NotificationCenter,
|
|
187
204
|
NotificationDescription,
|
|
188
205
|
NotificationHeading,
|
|
206
|
+
Option,
|
|
189
207
|
Portal,
|
|
208
|
+
ProgressBar,
|
|
190
209
|
PromptModal,
|
|
191
210
|
Radio,
|
|
211
|
+
Select,
|
|
192
212
|
Show,
|
|
193
213
|
THEME_KEY,
|
|
194
214
|
Tab,
|
|
@@ -209,6 +229,7 @@ export {
|
|
|
209
229
|
createNavTriggerProps,
|
|
210
230
|
defineIcons,
|
|
211
231
|
getPosition,
|
|
232
|
+
processStatus,
|
|
212
233
|
trapFocus,
|
|
213
234
|
useConfirmModal,
|
|
214
235
|
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/Button'\nexport * from './components/Droppable'\nexport * from './components/FieldMessage'\nexport * from './components/FeatureFlag'\nexport * from './components/FileUploader'\nexport * from './components/IconButton'\nexport * from './components/Input'\nexport * from './components/Label'\nexport * from './components/Modal'\nexport * from './components/ModalHeader'\nexport * from './components/ModalHeading'\nexport * from './components/ModalDescription'\nexport * from './components/ModalIcon'\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/Radio'\nexport * from './components/Tab'\nexport * from './components/TabList'\nexport * from './components/TabPanel'\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/Textarea'\nexport * from './components/Toggle'\nexport * from './components/Show'\n\n// context\n\nexport * from './context/confirm-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/useModal'\nexport * from './hooks/useTheme'\nexport * from './hooks/useToggle'\n\n// aria-helpers\n\nexport * from './aria-helpers/nav-menu.aria'\nexport * from './aria-helpers/tabs.aria'\nexport * from './aria-helpers/trap-focus.aria'\n\n// utils\n\nexport * from './config/defineIcons'\n\n// shared types\n\nexport * from './types'\n\n// 3rd party\n\nexport * from '@dnd-kit/core'\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * This module is the entry point for the Cerberus React package.\n * @module\n */\n\n// components\n\nexport * from './components/Button'\nexport * from './components/Checkbox'\nexport * from './components/Droppable'\nexport * from './components/FieldMessage'\nexport * from './components/FeatureFlag'\nexport * from './components/FileStatus'\nexport * from './components/FileUploader'\nexport * from './components/IconButton'\nexport * from './components/Input'\nexport * from './components/Label'\nexport * from './components/Modal'\nexport * from './components/ModalHeader'\nexport * from './components/ModalHeading'\nexport * from './components/ModalDescription'\nexport * from './components/ModalIcon'\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/Tab'\nexport * from './components/TabList'\nexport * from './components/TabPanel'\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/Textarea'\nexport * from './components/Toggle'\nexport * from './components/Show'\n\n// context\n\nexport * from './context/confirm-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/useModal'\nexport * from './hooks/useTheme'\nexport * from './hooks/useToggle'\n\n// aria-helpers\n\nexport * from './aria-helpers/nav-menu.aria'\nexport * from './aria-helpers/tabs.aria'\nexport * from './aria-helpers/trap-focus.aria'\n\n// utils\n\nexport * from './config/defineIcons'\n\n// shared types\n\nexport * from './types'\n\n// 3rd party\n\nexport * from '@dnd-kit/core'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8EA,cAAc;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cerberus-design/react",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "The Cerberus Design React component library.",
|
|
5
5
|
"browserslist": "> 0.25%, not dead",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "build/legacy/index.cjs",
|
|
9
|
-
"module": "build/
|
|
9
|
+
"module": "build/modern/index.js",
|
|
10
10
|
"peerDependencies": {
|
|
11
11
|
"@cerberus/icons": "npm:@jsr/cerberus__icons",
|
|
12
12
|
"@cerberus/panda-preset": "npm:@jsr/cerberus__panda-preset",
|
|
@@ -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-design/styled-system": "0.8.
|
|
29
|
+
"@cerberus-design/styled-system": "0.8.1"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"default": "./build/modern/index.js"
|
|
64
64
|
},
|
|
65
65
|
"require": {
|
|
66
|
-
"types": "./build/
|
|
67
|
-
"default": "./build/
|
|
66
|
+
"types": "./build/legacy/_tsup-dts-rollup.d.cts",
|
|
67
|
+
"default": "./build/legacy/index.cjs"
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"./package.json": "./package.json"
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"typesVersions": {
|
|
73
73
|
"*": {
|
|
74
74
|
".": [
|
|
75
|
-
"build/legacy/_tsup-dts-rollup.d.
|
|
75
|
+
"build/legacy/_tsup-dts-rollup.d.cts"
|
|
76
76
|
]
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
checkbox,
|
|
5
|
+
type CheckboxVariantProps,
|
|
6
|
+
} from '@cerberus/styled-system/recipes'
|
|
7
|
+
import { vstack } from '@cerberus/styled-system/patterns'
|
|
8
|
+
import { cx } from '@cerberus/styled-system/css'
|
|
9
|
+
import type { InputHTMLAttributes } from 'react'
|
|
10
|
+
import { Show } from './Show'
|
|
11
|
+
import { useFieldContext } from '../context/field'
|
|
12
|
+
import { $cerberusIcons } from '../config/defineIcons'
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* This module contains the Checkbox component.
|
|
16
|
+
* @module
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
export type CheckboxProps = CheckboxVariantProps &
|
|
20
|
+
Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'id'> & {
|
|
21
|
+
describedBy?: string
|
|
22
|
+
id: string
|
|
23
|
+
mixed?: boolean
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Checkbox component
|
|
28
|
+
* @definition [ARIA Target Size](https://www.w3.org/WAI/WCAG21/Understanding/target-size.html#:~:text=Understanding%20SC%202.5.,%3ATarget%20Size%20(Level%20AAA)&text=The%20size%20of%20the%20target,Equivalent)
|
|
29
|
+
* @definition [ARIA Forms](https://www.a11yproject.com/checklist/#forms)
|
|
30
|
+
* @definition [Checkbox docs](https://cerberus.digitalu.design/react/checkbox)
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* <Field>
|
|
34
|
+
* <Checkbox id="legal" checked={checked.legal} onChange={handleChange} />
|
|
35
|
+
* </Field>
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export function Checkbox(props: CheckboxProps) {
|
|
39
|
+
const { describedBy, size, checked, mixed, ...nativeProps } = props
|
|
40
|
+
const { invalid, ...fieldStates } = useFieldContext()
|
|
41
|
+
const styles = checkbox({ size })
|
|
42
|
+
const { checkbox: CheckIcon, indeterminate: IndeterminateIcon } =
|
|
43
|
+
$cerberusIcons
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<div
|
|
47
|
+
className={cx(
|
|
48
|
+
styles.root,
|
|
49
|
+
vstack({
|
|
50
|
+
gap: '0',
|
|
51
|
+
justify: 'center',
|
|
52
|
+
}),
|
|
53
|
+
)}
|
|
54
|
+
>
|
|
55
|
+
<input
|
|
56
|
+
{...nativeProps}
|
|
57
|
+
{...fieldStates}
|
|
58
|
+
{...(describedBy && { 'aria-describedby': describedBy })}
|
|
59
|
+
{...(invalid && { 'aria-invalid': true })}
|
|
60
|
+
{...(mixed && { 'aria-checked': 'mixed' })}
|
|
61
|
+
className={cx('peer', nativeProps.className, styles.input)}
|
|
62
|
+
type="checkbox"
|
|
63
|
+
/>
|
|
64
|
+
<Show when={checked && !mixed}>
|
|
65
|
+
<span className={styles.icon}>
|
|
66
|
+
<CheckIcon />
|
|
67
|
+
</span>
|
|
68
|
+
</Show>
|
|
69
|
+
<Show when={mixed}>
|
|
70
|
+
<span className={styles.icon}>
|
|
71
|
+
<IndeterminateIcon />
|
|
72
|
+
</span>
|
|
73
|
+
</Show>
|
|
74
|
+
</div>
|
|
75
|
+
)
|
|
76
|
+
}
|