@cerberus-design/react 0.9.2 → 0.10.0-next-b1f50f5
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 +811 -126
- package/build/legacy/aria-helpers/tabs.aria.cjs.map +1 -1
- package/build/legacy/components/Avatar.cjs.map +1 -1
- package/build/legacy/components/Button.cjs.map +1 -1
- package/build/legacy/components/Checkbox.cjs.map +1 -1
- package/build/legacy/components/CircularProgress.cjs +180 -0
- package/build/legacy/components/CircularProgress.cjs.map +1 -0
- package/build/legacy/components/Droppable.cjs.map +1 -1
- package/build/legacy/components/FeatureFlag.cjs.map +1 -1
- package/build/legacy/components/FieldMessage.cjs.map +1 -1
- package/build/legacy/components/FileStatus.cjs +75 -79
- package/build/legacy/components/FileStatus.cjs.map +1 -1
- package/build/legacy/components/FileUploader.cjs +1 -1
- package/build/legacy/components/FileUploader.cjs.map +1 -1
- package/build/legacy/components/IconButton.cjs.map +1 -1
- package/build/legacy/components/Input.cjs.map +1 -1
- package/build/legacy/components/Label.cjs.map +1 -1
- package/build/legacy/components/Modal.cjs.map +1 -1
- package/build/legacy/components/ModalDescription.cjs.map +1 -1
- package/build/legacy/components/ModalHeader.cjs.map +1 -1
- package/build/legacy/components/ModalHeading.cjs.map +1 -1
- package/build/legacy/components/NavMenuLink.cjs.map +1 -1
- package/build/legacy/components/NavMenuList.cjs.map +1 -1
- package/build/legacy/components/NavMenuTrigger.cjs.map +1 -1
- package/build/legacy/components/Notification.cjs.map +1 -1
- package/build/legacy/components/NotificationDescription.cjs.map +1 -1
- package/build/legacy/components/NotificationHeading.cjs.map +1 -1
- package/build/legacy/components/Portal.cjs.map +1 -1
- package/build/legacy/components/ProgressBar.cjs +1 -1
- package/build/legacy/components/ProgressBar.cjs.map +1 -1
- package/build/legacy/components/Radio.cjs.map +1 -1
- package/build/legacy/components/Select.cjs.map +1 -1
- package/build/legacy/components/Show.cjs.map +1 -1
- package/build/legacy/components/Spinner.cjs +104 -0
- package/build/legacy/components/Spinner.cjs.map +1 -0
- package/build/legacy/components/Tab.cjs.map +1 -1
- package/build/legacy/components/TabList.cjs.map +1 -1
- package/build/legacy/components/TabPanel.cjs.map +1 -1
- package/build/legacy/components/Table.cjs.map +1 -1
- package/build/legacy/components/Tag.cjs +70 -4
- package/build/legacy/components/Tag.cjs.map +1 -1
- package/build/legacy/components/Tbody.cjs.map +1 -1
- package/build/legacy/components/Td.cjs.map +1 -1
- package/build/legacy/components/Textarea.cjs.map +1 -1
- package/build/legacy/components/Th.cjs.map +1 -1
- package/build/legacy/components/Thead.cjs.map +1 -1
- package/build/legacy/components/Toggle.cjs.map +1 -1
- package/build/legacy/context/confirm-modal.cjs +2 -2
- package/build/legacy/context/confirm-modal.cjs.map +1 -1
- package/build/legacy/context/feature-flags.cjs.map +1 -1
- package/build/legacy/context/field.cjs.map +1 -1
- package/build/legacy/context/navMenu.cjs.map +1 -1
- package/build/legacy/context/notification-center.cjs +50 -10
- package/build/legacy/context/notification-center.cjs.map +1 -1
- package/build/legacy/context/prompt-modal.cjs +2 -2
- package/build/legacy/context/prompt-modal.cjs.map +1 -1
- package/build/legacy/context/tabs.cjs.map +1 -1
- package/build/legacy/context/theme.cjs +37 -23
- package/build/legacy/context/theme.cjs.map +1 -1
- package/build/legacy/hooks/useModal.cjs.map +1 -1
- package/build/legacy/hooks/useTheme.cjs +41 -32
- package/build/legacy/hooks/useTheme.cjs.map +1 -1
- package/build/legacy/hooks/useToggle.cjs.map +1 -1
- package/build/legacy/index.cjs +605 -316
- package/build/legacy/index.cjs.map +1 -1
- package/build/modern/_tsup-dts-rollup.d.ts +811 -126
- package/build/modern/aria-helpers/tabs.aria.js +2 -2
- package/build/modern/{chunk-DGJPW76I.js → chunk-2RPWSVRX.js} +13 -13
- package/build/modern/chunk-2RPWSVRX.js.map +1 -0
- package/build/modern/{chunk-JB7IQ2BM.js → chunk-2UXE5PDG.js} +1 -1
- package/build/modern/chunk-2UXE5PDG.js.map +1 -0
- package/build/modern/{chunk-4CAT3FHV.js → chunk-2VX52EEJ.js} +1 -1
- package/build/modern/chunk-2VX52EEJ.js.map +1 -0
- package/build/modern/chunk-3O6UTN3J.js +155 -0
- package/build/modern/chunk-3O6UTN3J.js.map +1 -0
- package/build/modern/{chunk-UN3OAW56.js → chunk-477G5ZEL.js} +2 -2
- package/build/modern/chunk-477G5ZEL.js.map +1 -0
- package/build/modern/{chunk-PMCYXRAH.js → chunk-5V5MBSM3.js} +3 -3
- package/build/modern/chunk-5V5MBSM3.js.map +1 -0
- package/build/modern/{chunk-3GXISGPS.js → chunk-7K6PZBHN.js} +2 -2
- package/build/modern/chunk-7K6PZBHN.js.map +1 -0
- package/build/modern/chunk-7SYJFI5E.js +80 -0
- package/build/modern/chunk-7SYJFI5E.js.map +1 -0
- package/build/modern/{chunk-ZCIJRM2X.js → chunk-AUAPBPGW.js} +5 -5
- package/build/modern/chunk-AUAPBPGW.js.map +1 -0
- package/build/modern/{chunk-A5WYZVUR.js → chunk-B4CVET74.js} +1 -1
- package/build/modern/chunk-B4CVET74.js.map +1 -0
- package/build/modern/{chunk-2UFNQM55.js → chunk-BE4EOU2P.js} +1 -1
- package/build/modern/{chunk-2UFNQM55.js.map → chunk-BE4EOU2P.js.map} +1 -1
- package/build/modern/{chunk-VULPMZUW.js → chunk-BIDE4IJG.js} +3 -3
- package/build/modern/chunk-BIDE4IJG.js.map +1 -0
- package/build/modern/{chunk-4O4QFF4S.js → chunk-BUVVRQLZ.js} +1 -1
- package/build/modern/chunk-BUVVRQLZ.js.map +1 -0
- package/build/modern/{chunk-4M3EUP57.js → chunk-CJFW36DZ.js} +1 -1
- package/build/modern/chunk-CJFW36DZ.js.map +1 -0
- package/build/modern/{chunk-T7TOXGZT.js → chunk-E6QFLLXH.js} +21 -21
- package/build/modern/chunk-E6QFLLXH.js.map +1 -0
- package/build/modern/chunk-EB37HRCN.js +31 -0
- package/build/modern/chunk-EB37HRCN.js.map +1 -0
- package/build/modern/chunk-EJOXOICK.js +75 -0
- package/build/modern/chunk-EJOXOICK.js.map +1 -0
- package/build/modern/{chunk-6F34A7NZ.js → chunk-EXGKZGML.js} +1 -1
- package/build/modern/chunk-EXGKZGML.js.map +1 -0
- package/build/modern/{chunk-ISPTI4GC.js → chunk-EZYCKM7R.js} +2 -2
- package/build/modern/chunk-EZYCKM7R.js.map +1 -0
- package/build/modern/{chunk-4YJOK7JJ.js → chunk-GMG3B34U.js} +2 -2
- package/build/modern/chunk-GMG3B34U.js.map +1 -0
- package/build/modern/{chunk-U72VPIZA.js → chunk-HHVQ6LCA.js} +3 -3
- package/build/modern/chunk-HHVQ6LCA.js.map +1 -0
- package/build/modern/{chunk-XREC5IJE.js → chunk-HPM2XRWT.js} +1 -1
- package/build/modern/chunk-HPM2XRWT.js.map +1 -0
- package/build/modern/{chunk-2FK7NR7Y.js → chunk-I35HMGJQ.js} +5 -5
- package/build/modern/chunk-I35HMGJQ.js.map +1 -0
- package/build/modern/{chunk-WWJRKSM5.js → chunk-ILZKQP6R.js} +16 -16
- package/build/modern/chunk-ILZKQP6R.js.map +1 -0
- package/build/modern/{chunk-GKUDLVOV.js → chunk-ITOIXNJS.js} +2 -2
- package/build/modern/{chunk-XOVQGPIE.js → chunk-JCGWTIR4.js} +4 -4
- package/build/modern/chunk-JCGWTIR4.js.map +1 -0
- package/build/modern/{chunk-TCO46FK7.js → chunk-JIJM6JFJ.js} +2 -2
- package/build/modern/chunk-JIJM6JFJ.js.map +1 -0
- package/build/modern/{chunk-VGHVH2T3.js → chunk-JWIJHSI6.js} +5 -3
- package/build/modern/chunk-JWIJHSI6.js.map +1 -0
- package/build/modern/{chunk-6DIGPXAD.js → chunk-KBBASJIY.js} +2 -2
- package/build/modern/chunk-KBBASJIY.js.map +1 -0
- package/build/modern/{chunk-SONHHNYQ.js → chunk-LFWAJ5DX.js} +3 -3
- package/build/modern/chunk-LFWAJ5DX.js.map +1 -0
- package/build/modern/{chunk-PH64POOB.js → chunk-LJYCFFX7.js} +2 -2
- package/build/modern/chunk-LJYCFFX7.js.map +1 -0
- package/build/modern/{chunk-O6WHVUEW.js → chunk-NUGDTZCL.js} +59 -19
- package/build/modern/chunk-NUGDTZCL.js.map +1 -0
- package/build/modern/{chunk-VRPAW76S.js → chunk-O6JYYVO7.js} +5 -5
- package/build/modern/chunk-O6JYYVO7.js.map +1 -0
- package/build/modern/{chunk-KJUCHZHV.js → chunk-O75QAT4Z.js} +1 -1
- package/build/modern/chunk-O75QAT4Z.js.map +1 -0
- package/build/modern/{chunk-C5HLLGME.js → chunk-OW62FLJ6.js} +1 -1
- package/build/modern/chunk-OW62FLJ6.js.map +1 -0
- package/build/modern/{chunk-RPZAPUCF.js → chunk-OWKN5IV7.js} +3 -3
- package/build/modern/chunk-OWKN5IV7.js.map +1 -0
- package/build/modern/{chunk-PJ3744I6.js → chunk-PKQTTFWA.js} +1 -1
- package/build/modern/chunk-PKQTTFWA.js.map +1 -0
- package/build/modern/{chunk-N3FUF4TB.js → chunk-PKY46RRA.js} +1 -1
- package/build/modern/chunk-PKY46RRA.js.map +1 -0
- package/build/modern/{chunk-4M4LCQ43.js → chunk-Q7BRMIBR.js} +1 -1
- package/build/modern/{chunk-4M4LCQ43.js.map → chunk-Q7BRMIBR.js.map} +1 -1
- package/build/modern/{chunk-QEA6N6TN.js → chunk-REO5GUNC.js} +1 -1
- package/build/modern/chunk-REO5GUNC.js.map +1 -0
- package/build/modern/{chunk-KF24CS4S.js → chunk-RIFQSCHT.js} +1 -1
- package/build/modern/chunk-RIFQSCHT.js.map +1 -0
- package/build/modern/{chunk-Z6IWNVPN.js → chunk-S7XGIQY6.js} +10 -4
- package/build/modern/chunk-S7XGIQY6.js.map +1 -0
- package/build/modern/{chunk-3C2DJSEE.js → chunk-SXIXDXG3.js} +1 -1
- package/build/modern/chunk-SXIXDXG3.js.map +1 -0
- package/build/modern/{chunk-7VJOPJVX.js → chunk-TKI2CKHH.js} +1 -1
- package/build/modern/chunk-TKI2CKHH.js.map +1 -0
- package/build/modern/{chunk-SLHX5K6I.js → chunk-UBJBMOG7.js} +4 -2
- package/build/modern/chunk-UBJBMOG7.js.map +1 -0
- package/build/modern/{chunk-ZAU4JVLL.js → chunk-UZDVOIW5.js} +1 -1
- package/build/modern/chunk-UZDVOIW5.js.map +1 -0
- package/build/modern/{chunk-QZ6NS6VN.js → chunk-VG46RHBJ.js} +1 -1
- package/build/modern/chunk-VG46RHBJ.js.map +1 -0
- package/build/modern/{chunk-QU7UV5DB.js → chunk-WLEX22KS.js} +1 -1
- package/build/modern/chunk-WLEX22KS.js.map +1 -0
- package/build/modern/{chunk-FMFKM2AB.js → chunk-WZOYPFUU.js} +5 -5
- package/build/modern/chunk-WZOYPFUU.js.map +1 -0
- package/build/modern/{chunk-HW76XVA3.js → chunk-XEW6TJJ4.js} +1 -1
- package/build/modern/chunk-XEW6TJJ4.js.map +1 -0
- package/build/modern/{chunk-TYTEREKZ.js → chunk-ZFK33MVD.js} +2 -2
- package/build/modern/chunk-ZFK33MVD.js.map +1 -0
- package/build/modern/components/Avatar.js +2 -2
- package/build/modern/components/Button.js +1 -1
- package/build/modern/components/Checkbox.js +3 -3
- package/build/modern/components/CircularProgress.js +8 -0
- package/build/modern/components/CircularProgress.js.map +1 -0
- package/build/modern/components/Droppable.js +1 -1
- package/build/modern/components/FeatureFlag.js +3 -3
- package/build/modern/components/FieldMessage.js +2 -2
- package/build/modern/components/FileStatus.js +7 -7
- package/build/modern/components/FileUploader.js +3 -3
- package/build/modern/components/IconButton.js +1 -1
- package/build/modern/components/Input.js +3 -3
- package/build/modern/components/Label.js +3 -3
- package/build/modern/components/Modal.js +1 -1
- package/build/modern/components/ModalDescription.js +1 -1
- package/build/modern/components/ModalHeader.js +1 -1
- package/build/modern/components/ModalHeading.js +1 -1
- package/build/modern/components/NavMenuLink.js +2 -2
- package/build/modern/components/NavMenuList.js +3 -3
- package/build/modern/components/NavMenuTrigger.js +3 -3
- package/build/modern/components/Notification.js +1 -1
- package/build/modern/components/NotificationDescription.js +1 -1
- package/build/modern/components/NotificationHeading.js +1 -1
- package/build/modern/components/Portal.js +1 -1
- package/build/modern/components/ProgressBar.js +1 -1
- package/build/modern/components/Radio.js +2 -2
- package/build/modern/components/Select.js +3 -3
- package/build/modern/components/Show.js +1 -1
- package/build/modern/components/Spinner.js +7 -0
- package/build/modern/components/Spinner.js.map +1 -0
- package/build/modern/components/Tab.js +3 -3
- package/build/modern/components/TabList.js +2 -2
- package/build/modern/components/TabPanel.js +3 -3
- package/build/modern/components/Table.js +1 -1
- package/build/modern/components/Tag.js +5 -2
- package/build/modern/components/Tbody.js +1 -1
- package/build/modern/components/Td.js +1 -1
- package/build/modern/components/Textarea.js +2 -2
- package/build/modern/components/Th.js +2 -2
- package/build/modern/components/Thead.js +1 -1
- package/build/modern/components/Toggle.js +2 -2
- package/build/modern/context/confirm-modal.js +10 -10
- package/build/modern/context/feature-flags.js +1 -1
- package/build/modern/context/field.js +1 -1
- package/build/modern/context/navMenu.js +1 -1
- package/build/modern/context/notification-center.js +7 -7
- package/build/modern/context/prompt-modal.js +13 -13
- package/build/modern/context/tabs.js +1 -1
- package/build/modern/context/theme.js +2 -5
- package/build/modern/hooks/useModal.js +1 -1
- package/build/modern/hooks/useTheme.js +5 -1
- package/build/modern/hooks/useToggle.js +1 -1
- package/build/modern/index.js +78 -68
- package/build/modern/index.js.map +1 -1
- package/package.json +3 -4
- package/src/components/Avatar.tsx +28 -1
- package/src/components/Button.tsx +1 -1
- package/src/components/Checkbox.tsx +11 -1
- package/src/components/CircularProgress.tsx +170 -0
- package/src/components/Droppable.tsx +13 -0
- package/src/components/FeatureFlag.tsx +7 -0
- package/src/components/FieldMessage.tsx +13 -6
- package/src/components/FileStatus.tsx +43 -16
- package/src/components/FileUploader.tsx +11 -1
- package/src/components/IconButton.tsx +15 -5
- package/src/components/Input.tsx +21 -4
- package/src/components/Label.tsx +13 -8
- package/src/components/Modal.tsx +8 -3
- package/src/components/ModalDescription.tsx +1 -0
- package/src/components/ModalHeader.tsx +1 -0
- package/src/components/ModalHeading.tsx +1 -0
- package/src/components/NavMenuLink.tsx +22 -0
- package/src/components/NavMenuList.tsx +37 -5
- package/src/components/NavMenuTrigger.tsx +13 -0
- package/src/components/Notification.tsx +13 -6
- package/src/components/NotificationDescription.tsx +8 -6
- package/src/components/NotificationHeading.tsx +8 -6
- package/src/components/Portal.tsx +9 -2
- package/src/components/ProgressBar.tsx +15 -5
- package/src/components/Radio.tsx +29 -0
- package/src/components/Select.tsx +17 -8
- package/src/components/Show.tsx +16 -5
- package/src/components/Spinner.tsx +82 -0
- package/src/components/Tab.tsx +13 -5
- package/src/components/TabList.tsx +5 -1
- package/src/components/TabPanel.tsx +7 -2
- package/src/components/Table.tsx +6 -3
- package/src/components/Tag.tsx +34 -7
- package/src/components/Tbody.tsx +7 -1
- package/src/components/Td.tsx +2 -1
- package/src/components/Textarea.tsx +9 -4
- package/src/components/Th.tsx +13 -1
- package/src/components/Thead.tsx +2 -1
- package/src/components/Toggle.tsx +35 -0
- package/src/context/confirm-modal.tsx +19 -2
- package/src/context/feature-flags.tsx +4 -1
- package/src/context/field.tsx +26 -0
- package/src/context/navMenu.tsx +25 -0
- package/src/context/notification-center.tsx +84 -12
- package/src/context/prompt-modal.tsx +41 -3
- package/src/context/tabs.tsx +31 -4
- package/src/context/theme.tsx +47 -10
- package/src/hooks/useModal.ts +14 -0
- package/src/hooks/useTheme.ts +66 -17
- package/src/hooks/useToggle.ts +22 -0
- package/src/index.ts +2 -0
- package/build/modern/chunk-2FK7NR7Y.js.map +0 -1
- package/build/modern/chunk-3C2DJSEE.js.map +0 -1
- package/build/modern/chunk-3GXISGPS.js.map +0 -1
- package/build/modern/chunk-4CAT3FHV.js.map +0 -1
- package/build/modern/chunk-4M3EUP57.js.map +0 -1
- package/build/modern/chunk-4O4QFF4S.js.map +0 -1
- package/build/modern/chunk-4YJOK7JJ.js.map +0 -1
- package/build/modern/chunk-6DIGPXAD.js.map +0 -1
- package/build/modern/chunk-6F34A7NZ.js.map +0 -1
- package/build/modern/chunk-7VJOPJVX.js.map +0 -1
- package/build/modern/chunk-A5WYZVUR.js.map +0 -1
- package/build/modern/chunk-C5HLLGME.js.map +0 -1
- package/build/modern/chunk-DGJPW76I.js.map +0 -1
- package/build/modern/chunk-FMFKM2AB.js.map +0 -1
- package/build/modern/chunk-HW76XVA3.js.map +0 -1
- package/build/modern/chunk-ISPTI4GC.js.map +0 -1
- package/build/modern/chunk-JB7IQ2BM.js.map +0 -1
- package/build/modern/chunk-KF24CS4S.js.map +0 -1
- package/build/modern/chunk-KJUCHZHV.js.map +0 -1
- package/build/modern/chunk-N3FUF4TB.js.map +0 -1
- package/build/modern/chunk-O6WHVUEW.js.map +0 -1
- package/build/modern/chunk-PH64POOB.js.map +0 -1
- package/build/modern/chunk-PJ3744I6.js.map +0 -1
- package/build/modern/chunk-PMCYXRAH.js.map +0 -1
- package/build/modern/chunk-QEA6N6TN.js.map +0 -1
- package/build/modern/chunk-QU7UV5DB.js.map +0 -1
- package/build/modern/chunk-QZ6NS6VN.js.map +0 -1
- package/build/modern/chunk-RPZAPUCF.js.map +0 -1
- package/build/modern/chunk-SLHX5K6I.js.map +0 -1
- package/build/modern/chunk-SONHHNYQ.js.map +0 -1
- package/build/modern/chunk-SXXWC6UD.js +0 -83
- package/build/modern/chunk-SXXWC6UD.js.map +0 -1
- package/build/modern/chunk-T7TOXGZT.js.map +0 -1
- package/build/modern/chunk-TCO46FK7.js.map +0 -1
- package/build/modern/chunk-TYTEREKZ.js.map +0 -1
- package/build/modern/chunk-U72VPIZA.js.map +0 -1
- package/build/modern/chunk-UN3OAW56.js.map +0 -1
- package/build/modern/chunk-VGHVH2T3.js.map +0 -1
- package/build/modern/chunk-VRPAW76S.js.map +0 -1
- package/build/modern/chunk-VULPMZUW.js.map +0 -1
- package/build/modern/chunk-WWJRKSM5.js.map +0 -1
- package/build/modern/chunk-XOVQGPIE.js.map +0 -1
- package/build/modern/chunk-XREC5IJE.js.map +0 -1
- package/build/modern/chunk-Z6IWNVPN.js.map +0 -1
- package/build/modern/chunk-ZAU4JVLL.js.map +0 -1
- package/build/modern/chunk-ZCIJRM2X.js.map +0 -1
- /package/build/modern/{chunk-GKUDLVOV.js.map → chunk-ITOIXNJS.js.map} +0 -0
|
@@ -54,7 +54,7 @@ import { DroppableContainer } from '@dnd-kit/core';
|
|
|
54
54
|
import { DroppableContainers } from '@dnd-kit/core';
|
|
55
55
|
import { DroppableMeasuring } from '@dnd-kit/core';
|
|
56
56
|
import { ElementType } from 'react';
|
|
57
|
-
import {
|
|
57
|
+
import { FieldMessageVariantProps } from '@cerberus/styled-system/recipes';
|
|
58
58
|
import { FileStatusVariantProps } from '@cerberus/styled-system/recipes';
|
|
59
59
|
import { ForwardRefExoticComponent } from 'react';
|
|
60
60
|
import { getClientRect } from '@dnd-kit/core';
|
|
@@ -62,9 +62,9 @@ import { getFirstCollision } from '@dnd-kit/core';
|
|
|
62
62
|
import { getScrollableAncestors } from '@dnd-kit/core';
|
|
63
63
|
import { HTMLAttributes } from 'react';
|
|
64
64
|
import { HtmlHTMLAttributes } from 'react';
|
|
65
|
-
import {
|
|
66
|
-
import { input } from '@cerberus/styled-system/recipes';
|
|
65
|
+
import { IconButtonVariantProps } from '@cerberus/styled-system/recipes';
|
|
67
66
|
import { InputHTMLAttributes } from 'react';
|
|
67
|
+
import { InputVariantProps } from '@cerberus/styled-system/recipes';
|
|
68
68
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
69
69
|
import { KeyboardCode } from '@dnd-kit/core';
|
|
70
70
|
import { KeyboardCodes } from '@dnd-kit/core';
|
|
@@ -73,7 +73,7 @@ import type { KeyboardEventHandler } from 'react';
|
|
|
73
73
|
import { KeyboardSensor } from '@dnd-kit/core';
|
|
74
74
|
import { KeyboardSensorOptions } from '@dnd-kit/core';
|
|
75
75
|
import { KeyboardSensorProps } from '@dnd-kit/core';
|
|
76
|
-
import {
|
|
76
|
+
import { LabelVariantProps } from '@cerberus/styled-system/recipes';
|
|
77
77
|
import { MeasuringConfiguration } from '@dnd-kit/core';
|
|
78
78
|
import { MeasuringFrequency } from '@dnd-kit/core';
|
|
79
79
|
import { MeasuringStrategy } from '@dnd-kit/core';
|
|
@@ -98,8 +98,7 @@ import { PropsWithChildren } from 'react';
|
|
|
98
98
|
import { radio } from '@cerberus/styled-system/recipes';
|
|
99
99
|
import { ReactNode } from 'react';
|
|
100
100
|
import { ReactPortal } from 'react';
|
|
101
|
-
import { RecipeVariantProps } from '@cerberus/styled-system/
|
|
102
|
-
import type { RecipeVariantProps as RecipeVariantProps_2 } from '@cerberus/styled-system/types';
|
|
101
|
+
import type { RecipeVariantProps } from '@cerberus/styled-system/types';
|
|
103
102
|
import { rectIntersection } from '@dnd-kit/core';
|
|
104
103
|
import { RefAttributes } from 'react';
|
|
105
104
|
import { RefObject } from 'react';
|
|
@@ -118,7 +117,7 @@ import { Sensors } from '@dnd-kit/core';
|
|
|
118
117
|
import type { SVGProps } from 'react';
|
|
119
118
|
import type { TableHTMLAttributes } from 'react';
|
|
120
119
|
import { TabsVariantProps } from '@cerberus/styled-system/recipes';
|
|
121
|
-
import {
|
|
120
|
+
import { TagVariantProps } from '@cerberus/styled-system/recipes';
|
|
122
121
|
import { TbodyVariantProps } from '@cerberus/styled-system/recipes';
|
|
123
122
|
import { TdVariantProps } from '@cerberus/styled-system/recipes';
|
|
124
123
|
import type { TextareaHTMLAttributes } from 'react';
|
|
@@ -159,7 +158,7 @@ export { AutoScrollOptions }
|
|
|
159
158
|
|
|
160
159
|
/**
|
|
161
160
|
* The Avatar component is used to represent a user or entity. It will show an image if src provided, otherwise it will show the ariaLabel of the ariaLabel. If the ariaLabel is empty, it will show a `defineIcons().avatar` icon.
|
|
162
|
-
* @
|
|
161
|
+
* @see https://cerberus.digitalu.design/react/avatar
|
|
163
162
|
* @example
|
|
164
163
|
* ```tsx
|
|
165
164
|
* <Avatar
|
|
@@ -173,16 +172,34 @@ export { Avatar }
|
|
|
173
172
|
export { Avatar as Avatar_alias_1 }
|
|
174
173
|
|
|
175
174
|
declare type AvatarAsProps = SharedAvatarProps & {
|
|
175
|
+
/**
|
|
176
|
+
* An optional element to replace the image. Recommended for Next.js Image component.
|
|
177
|
+
*/
|
|
176
178
|
as: ReactNode;
|
|
179
|
+
/**
|
|
180
|
+
* The aria-label for the avatar needed for accessibility.
|
|
181
|
+
*/
|
|
177
182
|
ariaLabel?: never;
|
|
183
|
+
/**
|
|
184
|
+
* The source of the image.
|
|
185
|
+
*/
|
|
178
186
|
src?: never;
|
|
179
187
|
};
|
|
180
188
|
export { AvatarAsProps }
|
|
181
189
|
export { AvatarAsProps as AvatarAsProps_alias_1 }
|
|
182
190
|
|
|
183
191
|
declare type AvatarImageProps = HtmlHTMLAttributes<HTMLImageElement> & SharedAvatarProps & {
|
|
192
|
+
/**
|
|
193
|
+
* The aria-label for the avatar needed for accessibility.
|
|
194
|
+
*/
|
|
184
195
|
ariaLabel: string;
|
|
196
|
+
/**
|
|
197
|
+
* An optional element to replace the image. Recommended for Next.js Image component.
|
|
198
|
+
*/
|
|
185
199
|
as?: never;
|
|
200
|
+
/**
|
|
201
|
+
* The source of the image.
|
|
202
|
+
*/
|
|
186
203
|
src: string;
|
|
187
204
|
};
|
|
188
205
|
export { AvatarImageProps }
|
|
@@ -192,11 +209,19 @@ declare type AvatarProps = (HtmlHTMLAttributes<HTMLDivElement> & AvatarVariantPr
|
|
|
192
209
|
export { AvatarProps }
|
|
193
210
|
export { AvatarProps as AvatarProps_alias_1 }
|
|
194
211
|
|
|
212
|
+
/**
|
|
213
|
+
* This module exports the NotificationDescription component.
|
|
214
|
+
* @module
|
|
215
|
+
*/
|
|
195
216
|
declare interface BaseNotificationDescriptionProps extends HTMLAttributes<HTMLParagraphElement> {
|
|
196
217
|
}
|
|
197
218
|
export { BaseNotificationDescriptionProps }
|
|
198
219
|
export { BaseNotificationDescriptionProps as BaseNotificationDescriptionProps_alias_1 }
|
|
199
220
|
|
|
221
|
+
/**
|
|
222
|
+
* This module exports the NotificationHeading component.
|
|
223
|
+
* @module
|
|
224
|
+
*/
|
|
200
225
|
declare interface BaseNotificationHeadingProps extends HTMLAttributes<HTMLParagraphElement> {
|
|
201
226
|
}
|
|
202
227
|
export { BaseNotificationHeadingProps }
|
|
@@ -204,7 +229,7 @@ export { BaseNotificationHeadingProps as BaseNotificationHeadingProps_alias_1 }
|
|
|
204
229
|
|
|
205
230
|
/**
|
|
206
231
|
* A component that allows the user to perform actions
|
|
207
|
-
* @
|
|
232
|
+
* @see https://cerberus.digitalu.design/react/button
|
|
208
233
|
*/
|
|
209
234
|
declare function Button(props: ButtonProps): JSX.Element;
|
|
210
235
|
export { Button }
|
|
@@ -224,7 +249,7 @@ export { CancelDrop }
|
|
|
224
249
|
* Checkbox component
|
|
225
250
|
* @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)
|
|
226
251
|
* @definition [ARIA Forms](https://www.a11yproject.com/checklist/#forms)
|
|
227
|
-
* @
|
|
252
|
+
* @see https://cerberus.digitalu.design/react/checkbox
|
|
228
253
|
* @example
|
|
229
254
|
* ```tsx
|
|
230
255
|
* <Field>
|
|
@@ -248,8 +273,18 @@ declare interface CheckboxIconProps extends SVGProps<SVGSVGElement> {
|
|
|
248
273
|
* @module
|
|
249
274
|
*/
|
|
250
275
|
declare type CheckboxProps = CheckboxVariantProps & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'id'> & {
|
|
276
|
+
/**
|
|
277
|
+
* The id of the FieldMessage element describing the Checkbox.
|
|
278
|
+
*/
|
|
251
279
|
describedBy?: string;
|
|
280
|
+
/**
|
|
281
|
+
* The unique identifier for the checkbox. Required for accessibility.
|
|
282
|
+
*/
|
|
252
283
|
id: string;
|
|
284
|
+
/**
|
|
285
|
+
* Used to display a mixed checked state.
|
|
286
|
+
* @description [ARIA Mixed State](https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/examples/checkbox-mixed/)
|
|
287
|
+
*/
|
|
253
288
|
mixed?: boolean;
|
|
254
289
|
};
|
|
255
290
|
export { CheckboxProps }
|
|
@@ -260,11 +295,69 @@ export { CheckboxProps as CheckboxProps_alias_1 }
|
|
|
260
295
|
*/
|
|
261
296
|
export declare function CheckmarkIcon(props: CheckboxIconProps): JSX_2.Element;
|
|
262
297
|
|
|
298
|
+
/**
|
|
299
|
+
* The CircularProgress component is used to display a loading indicator.
|
|
300
|
+
* @param props - SVG element attributes
|
|
301
|
+
* @param props.now - The current value of the CircularProgress
|
|
302
|
+
* @param props.title - The title of the CircularProgress for a11y
|
|
303
|
+
* @param props.label - What is shown below the now value (default: 'Done')
|
|
304
|
+
* @see https://cerberus.digitalu.design/react/progress-indicators
|
|
305
|
+
* @example
|
|
306
|
+
* ```tsx
|
|
307
|
+
* <CircularProgress now={24} title="Course completion" label="done" />
|
|
308
|
+
* ```
|
|
309
|
+
*/
|
|
310
|
+
declare function CircularProgress(props: CircularProgressProps): JSX_2.Element;
|
|
311
|
+
export { CircularProgress }
|
|
312
|
+
export { CircularProgress as CircularProgress_alias_1 }
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* This module contains the CircularProgress component.
|
|
316
|
+
* @module
|
|
317
|
+
*/
|
|
318
|
+
declare interface CircularProgressProps extends SVGProps<SVGSVGElement> {
|
|
319
|
+
/**
|
|
320
|
+
* The current value of the CircularProgress
|
|
321
|
+
*/
|
|
322
|
+
now: number;
|
|
323
|
+
/**
|
|
324
|
+
* The title of the CircularProgress for a11y
|
|
325
|
+
*/
|
|
326
|
+
title: string;
|
|
327
|
+
/**
|
|
328
|
+
* What is shown below the now value (default: 'Done')
|
|
329
|
+
*/
|
|
330
|
+
label?: string;
|
|
331
|
+
}
|
|
332
|
+
export { CircularProgressProps }
|
|
333
|
+
export { CircularProgressProps as CircularProgressProps_alias_1 }
|
|
334
|
+
|
|
263
335
|
declare type ClickableTagProps = HTMLAttributes<HTMLSpanElement> & {
|
|
336
|
+
/**
|
|
337
|
+
* The gradient to apply to the tag. Not available when the onClick prop is
|
|
338
|
+
* provided.
|
|
339
|
+
*/
|
|
264
340
|
gradient?: never;
|
|
341
|
+
/**
|
|
342
|
+
* The palette to use for the tag. Not available when the onClick prop is
|
|
343
|
+
* provided.
|
|
344
|
+
*/
|
|
265
345
|
palette?: never;
|
|
346
|
+
/**
|
|
347
|
+
* The action to be performed when the tag is clicked.
|
|
348
|
+
*/
|
|
266
349
|
onClick: () => void;
|
|
350
|
+
/**
|
|
351
|
+
* The shape of the tag. Not available when the onClick prop is provided.
|
|
352
|
+
* @type 'pill' | 'rounded'
|
|
353
|
+
* @default 'pill'
|
|
354
|
+
*/
|
|
267
355
|
shape: 'pill';
|
|
356
|
+
/**
|
|
357
|
+
* The usage of the tag. Not available when the onClick prop is provided.
|
|
358
|
+
* @type 'filled' | 'outlined'
|
|
359
|
+
* @default 'filled'
|
|
360
|
+
*/
|
|
268
361
|
usage: 'filled';
|
|
269
362
|
};
|
|
270
363
|
export { ClickableTagProps }
|
|
@@ -282,12 +375,13 @@ export { CollisionDescriptor }
|
|
|
282
375
|
|
|
283
376
|
export { CollisionDetection }
|
|
284
377
|
|
|
285
|
-
declare type ColorModes = 'light' | 'dark';
|
|
378
|
+
declare type ColorModes = 'light' | 'dark' | 'system';
|
|
286
379
|
export { ColorModes }
|
|
287
380
|
export { ColorModes as ColorModes_alias_1 }
|
|
288
381
|
|
|
289
382
|
/**
|
|
290
383
|
* Provides a confirm modal to the app.
|
|
384
|
+
* @see https://cerberus.digitalu.design/react/confirm-modal
|
|
291
385
|
* @example
|
|
292
386
|
* ```tsx
|
|
293
387
|
* // Wrap the Provider around the root of the feature.
|
|
@@ -349,7 +443,11 @@ export declare const defaultIcons: DefinedIcons;
|
|
|
349
443
|
|
|
350
444
|
export { defaultScreenReaderInstructions }
|
|
351
445
|
|
|
352
|
-
|
|
446
|
+
/**
|
|
447
|
+
* This module provides a context and hook for the theme.
|
|
448
|
+
* @module Theme
|
|
449
|
+
*/
|
|
450
|
+
declare type DefaultThemes = 'cerberus' | 'acheron';
|
|
353
451
|
export { DefaultThemes }
|
|
354
452
|
export { DefaultThemes as DefaultThemes_alias_1 }
|
|
355
453
|
|
|
@@ -421,6 +519,16 @@ export { DropAnimationKeyframeResolver }
|
|
|
421
519
|
|
|
422
520
|
export { DropAnimationSideEffects }
|
|
423
521
|
|
|
522
|
+
/**
|
|
523
|
+
* A Cerberus component is used to define a drop target for draggable elements.
|
|
524
|
+
* @see https://dndkit.com/
|
|
525
|
+
* @example
|
|
526
|
+
* ```tsx
|
|
527
|
+
* <Droppable id="dropzone">
|
|
528
|
+
* <Draggable id="draggable">Drag me</Draggable>
|
|
529
|
+
* </Droppable>
|
|
530
|
+
* ```
|
|
531
|
+
*/
|
|
424
532
|
declare function Droppable(props: PropsWithChildren<DroppableProps>): JSX_2.Element;
|
|
425
533
|
export { Droppable }
|
|
426
534
|
export { Droppable as Droppable_alias_1 }
|
|
@@ -432,16 +540,26 @@ export { DroppableContainers }
|
|
|
432
540
|
export { DroppableMeasuring }
|
|
433
541
|
|
|
434
542
|
declare interface DroppableProps extends Omit<HtmlHTMLAttributes<HTMLDivElement>, 'id'>, UseDroppableArguments {
|
|
543
|
+
/**
|
|
544
|
+
* If the item has been dropped.
|
|
545
|
+
*/
|
|
435
546
|
dropped?: boolean;
|
|
436
547
|
}
|
|
437
548
|
export { DroppableProps }
|
|
438
549
|
export { DroppableProps as DroppableProps_alias_1 }
|
|
439
550
|
|
|
551
|
+
/**
|
|
552
|
+
* A component that allows you to show or hide content based on a feature flag.
|
|
553
|
+
* @see https://cerberus.digitalu.design/react/feature-flags
|
|
554
|
+
*/
|
|
440
555
|
declare function FeatureFlag(props: PropsWithChildren<FeatureFlagProps>): JSX_2.Element;
|
|
441
556
|
export { FeatureFlag }
|
|
442
557
|
export { FeatureFlag as FeatureFlag_alias_1 }
|
|
443
558
|
|
|
444
559
|
declare interface FeatureFlagProps {
|
|
560
|
+
/**
|
|
561
|
+
* The name of the feature flag to check.
|
|
562
|
+
*/
|
|
445
563
|
flag: string;
|
|
446
564
|
}
|
|
447
565
|
export { FeatureFlagProps }
|
|
@@ -455,7 +573,7 @@ export { FeatureFlagProviderProps as FeatureFlagProviderProps_alias_1 }
|
|
|
455
573
|
|
|
456
574
|
/**
|
|
457
575
|
* Provides feature flags to the application.
|
|
458
|
-
* @
|
|
576
|
+
* @see https://cerberus.digitalu.design/react/feature-flags
|
|
459
577
|
* @example
|
|
460
578
|
* ```tsx
|
|
461
579
|
* // This should be a JSON file or a server response.
|
|
@@ -489,14 +607,35 @@ declare interface FeatureFlagValue {
|
|
|
489
607
|
export { FeatureFlagValue }
|
|
490
608
|
export { FeatureFlagValue as FeatureFlagValue_alias_1 }
|
|
491
609
|
|
|
610
|
+
/**
|
|
611
|
+
* Provides the field state for a all related components used within a group.
|
|
612
|
+
* @see https://cerberus.digitalu.design/react/input
|
|
613
|
+
*/
|
|
492
614
|
declare function Field(props: PropsWithChildren<FieldContextValue>): JSX.Element;
|
|
493
615
|
export { Field }
|
|
494
616
|
export { Field as Field_alias_1 }
|
|
495
617
|
|
|
618
|
+
/**
|
|
619
|
+
* This module provides a context and hook for the field.
|
|
620
|
+
* @module Field
|
|
621
|
+
*/
|
|
496
622
|
declare interface FieldContextValue {
|
|
623
|
+
/**
|
|
624
|
+
* Whether the field is disabled.
|
|
625
|
+
* @description [Moz Input Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attributes)
|
|
626
|
+
*/
|
|
497
627
|
disabled?: boolean;
|
|
628
|
+
/**
|
|
629
|
+
* Whether the field is read-only.
|
|
630
|
+
*/
|
|
498
631
|
readOnly?: boolean;
|
|
632
|
+
/**
|
|
633
|
+
* Whether the field is required.
|
|
634
|
+
*/
|
|
499
635
|
required?: boolean;
|
|
636
|
+
/**
|
|
637
|
+
* Whether the field is invalid.
|
|
638
|
+
*/
|
|
500
639
|
invalid?: boolean;
|
|
501
640
|
}
|
|
502
641
|
export { FieldContextValue }
|
|
@@ -504,7 +643,7 @@ export { FieldContextValue as FieldContextValue_alias_1 }
|
|
|
504
643
|
|
|
505
644
|
/**
|
|
506
645
|
* A component that provides feedback about the field.
|
|
507
|
-
* @
|
|
646
|
+
* @see https://cerberus.digitalu.design/react/field-message
|
|
508
647
|
* @example
|
|
509
648
|
* ```tsx
|
|
510
649
|
* <Field>
|
|
@@ -520,41 +659,58 @@ declare function FieldMessage(props: FieldMessageProps): JSX_2.Element;
|
|
|
520
659
|
export { FieldMessage }
|
|
521
660
|
export { FieldMessage as FieldMessage_alias_1 }
|
|
522
661
|
|
|
662
|
+
/**
|
|
663
|
+
* This module contains the FieldMessage component.
|
|
664
|
+
* @module
|
|
665
|
+
*/
|
|
523
666
|
declare interface FieldMessageBaseProps extends HTMLAttributes<HTMLParagraphElement> {
|
|
667
|
+
/**
|
|
668
|
+
* The id of the FieldMessage element describing the field. Required for accessibility. It is considered best practice to use the `help` or `error` prefix to help screen readers identify the type of message.
|
|
669
|
+
*
|
|
670
|
+
* @example For help messages: `help:field_id`
|
|
671
|
+
* @example For error messages: `error:field_id`
|
|
672
|
+
*/
|
|
524
673
|
id: string;
|
|
525
674
|
}
|
|
526
675
|
export { FieldMessageBaseProps }
|
|
527
676
|
export { FieldMessageBaseProps as FieldMessageBaseProps_alias_1 }
|
|
528
677
|
|
|
529
|
-
declare type FieldMessageProps = FieldMessageBaseProps &
|
|
678
|
+
declare type FieldMessageProps = FieldMessageBaseProps & FieldMessageVariantProps;
|
|
530
679
|
export { FieldMessageProps }
|
|
531
680
|
export { FieldMessageProps as FieldMessageProps_alias_1 }
|
|
532
681
|
|
|
533
|
-
/**
|
|
534
|
-
* This module contains the FieldMessage component.
|
|
535
|
-
* @module
|
|
536
|
-
*/
|
|
537
|
-
declare type FieldMessageRecipe = RecipeVariantProps<typeof fieldMessage>;
|
|
538
|
-
export { FieldMessageRecipe }
|
|
539
|
-
export { FieldMessageRecipe as FieldMessageRecipe_alias_1 }
|
|
540
|
-
|
|
541
682
|
declare interface FileBaseStatusProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onClick'> {
|
|
683
|
+
/**
|
|
684
|
+
* The name of the file.
|
|
685
|
+
*/
|
|
542
686
|
file: string;
|
|
543
|
-
|
|
687
|
+
/**
|
|
688
|
+
* The percentage of the file that has been processed.
|
|
689
|
+
*/
|
|
690
|
+
now: ProgressBarProps['now'];
|
|
691
|
+
/**
|
|
692
|
+
* The status of the file.
|
|
693
|
+
*/
|
|
544
694
|
status: processStatus;
|
|
695
|
+
/**
|
|
696
|
+
* The action to perform on the file when a user clicks the
|
|
697
|
+
* button located at the end of the status card.
|
|
698
|
+
* @param status - The status of the file.
|
|
699
|
+
* @param e - The event object.
|
|
700
|
+
* @example
|
|
701
|
+
* ```tsx
|
|
702
|
+
* <FileStatus file="file.txt" now={0} status={processStatus.TODO} action={(status, e) => console.log(status, e)} />
|
|
703
|
+
* ```
|
|
704
|
+
* @default () => {}
|
|
705
|
+
*/
|
|
545
706
|
onClick: (status: FileStatusActions, e: MouseEvent_2<HTMLButtonElement>) => void;
|
|
546
707
|
}
|
|
547
708
|
export { FileBaseStatusProps }
|
|
548
709
|
export { FileBaseStatusProps as FileBaseStatusProps_alias_1 }
|
|
549
710
|
|
|
550
711
|
/**
|
|
551
|
-
*
|
|
552
|
-
* @
|
|
553
|
-
* file: string,
|
|
554
|
-
* now: number,
|
|
555
|
-
* status: keyof typeof fileStatus,
|
|
556
|
-
* action: (status: FileStatusActions, e: MouseEvent<HTMLButtonElement>) => void
|
|
557
|
-
* }.
|
|
712
|
+
* A component that displays the status of a file during file processing.
|
|
713
|
+
* @see https://cerberus.digitalu.design/react/file-uploader
|
|
558
714
|
* @example
|
|
559
715
|
* ```tsx
|
|
560
716
|
* <FileStatus file="file.txt" now={0} status={processStatus.TODO} action={(status, e) => console.log(status, e)} />
|
|
@@ -564,6 +720,9 @@ declare function FileStatus(props: FileStatusProps): JSX_2.Element;
|
|
|
564
720
|
export { FileStatus }
|
|
565
721
|
export { FileStatus as FileStatus_alias_1 }
|
|
566
722
|
|
|
723
|
+
/**
|
|
724
|
+
* The actions that can be performed on a file.
|
|
725
|
+
*/
|
|
567
726
|
declare type FileStatusActions = 'cancel' | 'retry' | 'delete';
|
|
568
727
|
export { FileStatusActions }
|
|
569
728
|
export { FileStatusActions as FileStatusActions_alias_1 }
|
|
@@ -572,6 +731,14 @@ export { FileStatusActions as FileStatusActions_alias_1 }
|
|
|
572
731
|
* This module contains the FileStatus component.
|
|
573
732
|
* @module
|
|
574
733
|
*/
|
|
734
|
+
/**
|
|
735
|
+
* The available values of the fileStatus helper Object.
|
|
736
|
+
* @example
|
|
737
|
+
* ```tsx
|
|
738
|
+
* import { fileStatus } from '@cerberus/react'
|
|
739
|
+
* processStatus.TODO // 'todo'
|
|
740
|
+
* ```
|
|
741
|
+
*/
|
|
575
742
|
declare type FileStatusKey = (typeof processStatus)[keyof typeof processStatus];
|
|
576
743
|
export { FileStatusKey }
|
|
577
744
|
export { FileStatusKey as FileStatusKey_alias_1 }
|
|
@@ -580,12 +747,22 @@ declare type FileStatusProps = FileBaseStatusProps & FileStatusVariantProps;
|
|
|
580
747
|
export { FileStatusProps }
|
|
581
748
|
export { FileStatusProps as FileStatusProps_alias_1 }
|
|
582
749
|
|
|
750
|
+
/**
|
|
751
|
+
* A component that allows the user to upload files.
|
|
752
|
+
* @see https://cerberus.digitalu.design/react/file-uploader
|
|
753
|
+
*/
|
|
583
754
|
declare function FileUploader(props: FileUploaderProps): JSX_2.Element;
|
|
584
755
|
export { FileUploader }
|
|
585
756
|
export { FileUploader as FileUploader_alias_1 }
|
|
586
757
|
|
|
587
758
|
declare interface FileUploaderProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
759
|
+
/**
|
|
760
|
+
* The optional heading to display in the FileUploader component.
|
|
761
|
+
*/
|
|
588
762
|
heading?: string;
|
|
763
|
+
/**
|
|
764
|
+
* The name of the file input element.
|
|
765
|
+
*/
|
|
589
766
|
name: string;
|
|
590
767
|
}
|
|
591
768
|
export { FileUploaderProps }
|
|
@@ -595,14 +772,35 @@ export { getClientRect }
|
|
|
595
772
|
|
|
596
773
|
export { getFirstCollision }
|
|
597
774
|
|
|
775
|
+
/**
|
|
776
|
+
* Returns the position of the NavMenuList based on the position prop.
|
|
777
|
+
* @param position - The position of the NavMenuList.
|
|
778
|
+
* @returns The position of the NavMenuList.
|
|
779
|
+
*/
|
|
598
780
|
declare function getPosition(position: Positions): GetPositionResult;
|
|
599
781
|
export { getPosition }
|
|
600
782
|
export { getPosition as getPosition_alias_1 }
|
|
601
783
|
|
|
784
|
+
/**
|
|
785
|
+
* This module contains the NavMenuList component.
|
|
786
|
+
* @module
|
|
787
|
+
*/
|
|
602
788
|
declare interface GetPositionResult {
|
|
789
|
+
/**
|
|
790
|
+
* The left position of the element.
|
|
791
|
+
*/
|
|
603
792
|
left: string;
|
|
793
|
+
/**
|
|
794
|
+
* The right position of the element.
|
|
795
|
+
*/
|
|
604
796
|
right: string;
|
|
797
|
+
/**
|
|
798
|
+
* The top position of the element.
|
|
799
|
+
*/
|
|
605
800
|
top: string;
|
|
801
|
+
/**
|
|
802
|
+
* The bottom position of the element.
|
|
803
|
+
*/
|
|
606
804
|
bottom: string;
|
|
607
805
|
}
|
|
608
806
|
|
|
@@ -610,13 +808,13 @@ export { getScrollableAncestors }
|
|
|
610
808
|
|
|
611
809
|
/**
|
|
612
810
|
* A component that allows the user to perform actions using an icon
|
|
613
|
-
* @
|
|
811
|
+
* @see https://cerberus.digitalu.design/react/icon-button
|
|
614
812
|
*/
|
|
615
813
|
declare function IconButton(props: IconButtonProps): JSX.Element;
|
|
616
814
|
export { IconButton }
|
|
617
815
|
export { IconButton as IconButton_alias_1 }
|
|
618
816
|
|
|
619
|
-
declare type IconButtonProps = IconButtonRawProps &
|
|
817
|
+
declare type IconButtonProps = IconButtonRawProps & IconButtonVariantProps;
|
|
620
818
|
export { IconButtonProps }
|
|
621
819
|
export { IconButtonProps as IconButtonProps_alias_1 }
|
|
622
820
|
|
|
@@ -625,16 +823,20 @@ export { IconButtonProps as IconButtonProps_alias_1 }
|
|
|
625
823
|
* @module
|
|
626
824
|
*/
|
|
627
825
|
declare interface IconButtonRawProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
826
|
+
/**
|
|
827
|
+
* The aria-label attribute for the icon button.
|
|
828
|
+
*/
|
|
628
829
|
ariaLabel: string;
|
|
830
|
+
/**
|
|
831
|
+
* The position of the tooltip relative to the icon button.
|
|
832
|
+
* @example 'top' | 'right' | 'bottom' | 'left'
|
|
833
|
+
* @default 'top'
|
|
834
|
+
*/
|
|
629
835
|
tooltipPosition?: Positions;
|
|
630
836
|
}
|
|
631
837
|
export { IconButtonRawProps }
|
|
632
838
|
export { IconButtonRawProps as IconButtonRawProps_alias_1 }
|
|
633
839
|
|
|
634
|
-
declare type IconButtonRecipeProps = RecipeVariantProps<typeof iconButton>;
|
|
635
|
-
export { IconButtonRecipeProps }
|
|
636
|
-
export { IconButtonRecipeProps as IconButtonRecipeProps_alias_1 }
|
|
637
|
-
|
|
638
840
|
export declare type IconType = CarbonIconType | ElementType;
|
|
639
841
|
|
|
640
842
|
/**
|
|
@@ -646,33 +848,53 @@ declare interface IndeterminateIconProps extends SVGProps<SVGSVGElement> {
|
|
|
646
848
|
}
|
|
647
849
|
|
|
648
850
|
declare type IndeterminateProgressBarProps = {
|
|
649
|
-
|
|
851
|
+
/**
|
|
852
|
+
* The state of the progress bar.
|
|
853
|
+
*/
|
|
854
|
+
indeterminate?: true;
|
|
855
|
+
/**
|
|
856
|
+
* The current value of the progress bar.
|
|
857
|
+
*/
|
|
650
858
|
now?: never;
|
|
651
859
|
};
|
|
652
860
|
export { IndeterminateProgressBarProps }
|
|
653
861
|
export { IndeterminateProgressBarProps as IndeterminateProgressBarProps_alias_1 }
|
|
654
862
|
|
|
863
|
+
/**
|
|
864
|
+
* A component that allows the user to input text. Must be wrapped in a Field
|
|
865
|
+
* component to keep track of the state for entire group of elements related to
|
|
866
|
+
* the field.
|
|
867
|
+
* @see https://cerberus.digitalu.design/react/input
|
|
868
|
+
*/
|
|
655
869
|
declare function Input(props: InputProps): JSX_2.Element;
|
|
656
870
|
export { Input }
|
|
657
871
|
export { Input as Input_alias_1 }
|
|
658
872
|
|
|
659
873
|
declare interface InputBaseProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'id' | 'size'> {
|
|
874
|
+
/**
|
|
875
|
+
* The id of the FieldMessage component used to describe the input. Required for accessibility.
|
|
876
|
+
*/
|
|
660
877
|
describedBy?: string;
|
|
878
|
+
/**
|
|
879
|
+
* The unique identifier for the input element. Required for accessibility.
|
|
880
|
+
*/
|
|
661
881
|
id: string;
|
|
882
|
+
/**
|
|
883
|
+
* An optional icon to display at the start of the input.
|
|
884
|
+
*/
|
|
662
885
|
startIcon?: ReactNode;
|
|
886
|
+
/**
|
|
887
|
+
* An optional icon to display at the end of the input.
|
|
888
|
+
*/
|
|
663
889
|
endIcon?: ReactNode;
|
|
664
890
|
}
|
|
665
891
|
export { InputBaseProps }
|
|
666
892
|
export { InputBaseProps as InputBaseProps_alias_1 }
|
|
667
893
|
|
|
668
|
-
declare type InputProps = InputBaseProps &
|
|
894
|
+
declare type InputProps = InputBaseProps & InputVariantProps;
|
|
669
895
|
export { InputProps }
|
|
670
896
|
export { InputProps as InputProps_alias_1 }
|
|
671
897
|
|
|
672
|
-
declare type InputRecipeProps = RecipeVariantProps<typeof input>;
|
|
673
|
-
export { InputRecipeProps }
|
|
674
|
-
export { InputRecipeProps as InputRecipeProps_alias_1 }
|
|
675
|
-
|
|
676
898
|
export { KeyboardCode }
|
|
677
899
|
|
|
678
900
|
export { KeyboardCodes }
|
|
@@ -686,13 +908,14 @@ export { KeyboardSensorOptions }
|
|
|
686
908
|
export { KeyboardSensorProps }
|
|
687
909
|
|
|
688
910
|
/**
|
|
689
|
-
* A
|
|
911
|
+
* A a11y compliant label component.
|
|
690
912
|
* @definition [ARIA Forms](https://www.a11yproject.com/checklist/#forms)
|
|
691
|
-
* @
|
|
913
|
+
* @see https://cerberus.digitalu.design/react/label
|
|
692
914
|
* @example
|
|
693
915
|
* ```tsx
|
|
694
916
|
* <Field required>
|
|
695
|
-
* <Label htmlFor="
|
|
917
|
+
* <Label htmlFor="search" hidden>Search everything</Label>
|
|
918
|
+
* <Input id="search" startIcon={Search} type="text" />
|
|
696
919
|
* </Field>
|
|
697
920
|
* ```
|
|
698
921
|
*/
|
|
@@ -700,25 +923,27 @@ declare function Label(props: PropsWithChildren<LabelProps>): JSX_2.Element;
|
|
|
700
923
|
export { Label }
|
|
701
924
|
export { Label as Label_alias_1 }
|
|
702
925
|
|
|
926
|
+
/**
|
|
927
|
+
* This module contains the Label component.
|
|
928
|
+
* @module
|
|
929
|
+
*/
|
|
703
930
|
declare interface LabelBaseProps extends HTMLAttributes<HTMLLabelElement> {
|
|
931
|
+
/**
|
|
932
|
+
* The unique identifier for the input element. Required for accessibility.
|
|
933
|
+
*/
|
|
704
934
|
htmlFor: string;
|
|
935
|
+
/**
|
|
936
|
+
* Used to hide the label from the UI while keeping it accessible to screen readers. Typically used for global search inputs that have no visible label.
|
|
937
|
+
*/
|
|
705
938
|
hidden?: boolean;
|
|
706
939
|
}
|
|
707
940
|
export { LabelBaseProps }
|
|
708
941
|
export { LabelBaseProps as LabelBaseProps_alias_1 }
|
|
709
942
|
|
|
710
|
-
declare type LabelProps = LabelBaseProps &
|
|
943
|
+
declare type LabelProps = LabelBaseProps & LabelVariantProps;
|
|
711
944
|
export { LabelProps }
|
|
712
945
|
export { LabelProps as LabelProps_alias_1 }
|
|
713
946
|
|
|
714
|
-
/**
|
|
715
|
-
* This module contains the Label component.
|
|
716
|
-
* @module
|
|
717
|
-
*/
|
|
718
|
-
declare type LabelRecipeProps = RecipeVariantProps<typeof label>;
|
|
719
|
-
export { LabelRecipeProps }
|
|
720
|
-
export { LabelRecipeProps as LabelRecipeProps_alias_1 }
|
|
721
|
-
|
|
722
947
|
export { MeasuringConfiguration }
|
|
723
948
|
|
|
724
949
|
export { MeasuringFrequency }
|
|
@@ -727,14 +952,19 @@ export { MeasuringStrategy }
|
|
|
727
952
|
|
|
728
953
|
/**
|
|
729
954
|
* The Modal component is the root element for a customizable modal.
|
|
955
|
+
* @see https://cerberus.digitalu.design/react/modal
|
|
730
956
|
* @example
|
|
731
957
|
* ```tsx
|
|
732
958
|
* const { modalRef } = useModal()
|
|
733
959
|
*
|
|
734
960
|
* <Modal ref={modalRef}>
|
|
735
|
-
* <
|
|
736
|
-
* <
|
|
737
|
-
*
|
|
961
|
+
* <Avatar icon={SomeIcon} />
|
|
962
|
+
* <ModalHeader>
|
|
963
|
+
* <ModalHeading>Modal Heading</ModalHeading>
|
|
964
|
+
* <ModalDescription>Modal description</ModalDescription>
|
|
965
|
+
* </ModalHeader>
|
|
966
|
+
*
|
|
967
|
+
* {props.children}
|
|
738
968
|
* </Modal>
|
|
739
969
|
* ```
|
|
740
970
|
*/
|
|
@@ -744,6 +974,7 @@ export { Modal as Modal_alias_1 }
|
|
|
744
974
|
|
|
745
975
|
/**
|
|
746
976
|
* The ModalDescription component is a heading element for a customizable modal.
|
|
977
|
+
* @see https://cerberus.digitalu.design/react/modal
|
|
747
978
|
* @example
|
|
748
979
|
* ```tsx
|
|
749
980
|
* <Modal>
|
|
@@ -765,6 +996,7 @@ export { ModalDescriptionProps as ModalDescriptionProps_alias_1 }
|
|
|
765
996
|
|
|
766
997
|
/**
|
|
767
998
|
* The ModalHeader component is a header element for a customizable modal.
|
|
999
|
+
* @see https://cerberus.digitalu.design/react/modal
|
|
768
1000
|
* @example
|
|
769
1001
|
* ```tsx
|
|
770
1002
|
* <Modal>
|
|
@@ -788,6 +1020,7 @@ export { ModalHeaderProps as ModalHeaderProps_alias_1 }
|
|
|
788
1020
|
|
|
789
1021
|
/**
|
|
790
1022
|
* The ModalHeading component is a heading element for a customizable modal.
|
|
1023
|
+
* @see https://cerberus.digitalu.design/react/modal
|
|
791
1024
|
* @example
|
|
792
1025
|
* ```tsx
|
|
793
1026
|
* <Modal>
|
|
@@ -827,24 +1060,61 @@ export { MouseSensor }
|
|
|
827
1060
|
|
|
828
1061
|
export { MouseSensorOptions }
|
|
829
1062
|
|
|
1063
|
+
/**
|
|
1064
|
+
* Provides the nav menu state for all the NavMenu family components.
|
|
1065
|
+
* @see https://cerberus.digitalu.design/react/nav-menu
|
|
1066
|
+
*/
|
|
830
1067
|
declare function NavMenu(props: PropsWithChildren): JSX.Element;
|
|
831
1068
|
export { NavMenu }
|
|
832
1069
|
export { NavMenu as NavMenu_alias_1 }
|
|
833
1070
|
|
|
834
1071
|
declare interface NavMenuContextValue {
|
|
1072
|
+
/**
|
|
1073
|
+
* The ref for the trigger button.
|
|
1074
|
+
*/
|
|
835
1075
|
triggerRef: NavTriggerRef | null;
|
|
1076
|
+
/**
|
|
1077
|
+
* The ref for the menu.
|
|
1078
|
+
*/
|
|
836
1079
|
menuRef: NavMenuRef | null;
|
|
1080
|
+
/**
|
|
1081
|
+
* Whether the menu is expanded.
|
|
1082
|
+
*/
|
|
837
1083
|
expanded: boolean;
|
|
1084
|
+
/**
|
|
1085
|
+
* Called when the menu button is clicked.
|
|
1086
|
+
*/
|
|
838
1087
|
onToggle: () => void;
|
|
839
1088
|
}
|
|
840
1089
|
export { NavMenuContextValue }
|
|
841
1090
|
export { NavMenuContextValue as NavMenuContextValue_alias_1 }
|
|
842
1091
|
|
|
1092
|
+
/**
|
|
1093
|
+
* The NavMenuLink component is a link element that is used within the NavMenu.
|
|
1094
|
+
* @see https://cerberus.digitalu.design/react/nav-menu
|
|
1095
|
+
* @example
|
|
1096
|
+
* ```tsx
|
|
1097
|
+
* <NavMenu>
|
|
1098
|
+
* <NavMenuList id="nav-menu-list" position="bottom">
|
|
1099
|
+
* <NavMenuLink href="/home">Home</NavMenuLink>
|
|
1100
|
+
* <NavMenuLink href="/about">About</NavMenuLink>
|
|
1101
|
+
* </NavMenuList>
|
|
1102
|
+
* </NavMenu>
|
|
1103
|
+
* ```
|
|
1104
|
+
*/
|
|
843
1105
|
declare function NavMenuLink(props: NavMenuLinkProps): JSX.Element;
|
|
844
1106
|
export { NavMenuLink }
|
|
845
1107
|
export { NavMenuLink as NavMenuLink_alias_1 }
|
|
846
1108
|
|
|
1109
|
+
/**
|
|
1110
|
+
* This module contains the NavMenuLink component.
|
|
1111
|
+
* @module
|
|
1112
|
+
*/
|
|
847
1113
|
declare interface NavMenuLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
1114
|
+
/**
|
|
1115
|
+
* The element type to render as. Recommended to use for Next apps with the
|
|
1116
|
+
* `Link` component.
|
|
1117
|
+
*/
|
|
848
1118
|
as?: ElementType;
|
|
849
1119
|
}
|
|
850
1120
|
export { NavMenuLinkProps }
|
|
@@ -853,14 +1123,16 @@ export { NavMenuLinkProps as NavMenuLinkProps_alias_1 }
|
|
|
853
1123
|
/**
|
|
854
1124
|
* A component that allows the user to display a menu of navigation links.
|
|
855
1125
|
* @definition [Disclosure Nav](https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/examples/disclosure-navigation/)
|
|
856
|
-
* @
|
|
1126
|
+
* @see https://cerberus.digitalu.design/react/nav-menu
|
|
857
1127
|
*
|
|
858
1128
|
* @example
|
|
859
1129
|
* ```tsx
|
|
860
|
-
* <
|
|
861
|
-
* <
|
|
862
|
-
*
|
|
863
|
-
* </
|
|
1130
|
+
* <NavMenu>
|
|
1131
|
+
* <NavMenuList id="nav-menu-list" position="bottom">
|
|
1132
|
+
* <NavMenuLink href="/home">Home</NavMenuLink>
|
|
1133
|
+
* <NavMenuLink href="/about">About</NavMenuLink>
|
|
1134
|
+
* </NavMenuList>
|
|
1135
|
+
* </NavMenu>
|
|
864
1136
|
* ```
|
|
865
1137
|
**/
|
|
866
1138
|
declare function NavMenuList(props: NavMenuListProps): JSX.Element;
|
|
@@ -868,7 +1140,15 @@ export { NavMenuList }
|
|
|
868
1140
|
export { NavMenuList as NavMenuList_alias_1 }
|
|
869
1141
|
|
|
870
1142
|
declare interface NavMenuListProps extends HTMLAttributes<HTMLUListElement> {
|
|
1143
|
+
/**
|
|
1144
|
+
* The unique identifier for the NavMenuList. Required for accessibility.
|
|
1145
|
+
*/
|
|
871
1146
|
id: string;
|
|
1147
|
+
/**
|
|
1148
|
+
* The position of the NavMenuList.
|
|
1149
|
+
* @type 'top' | 'right' | 'bottom' | 'left'
|
|
1150
|
+
* @default 'bottom'
|
|
1151
|
+
*/
|
|
872
1152
|
position?: Positions;
|
|
873
1153
|
}
|
|
874
1154
|
export { NavMenuListProps }
|
|
@@ -894,7 +1174,19 @@ declare function NavMenuTrigger(props: NavMenuTriggerProps): JSX.Element;
|
|
|
894
1174
|
export { NavMenuTrigger }
|
|
895
1175
|
export { NavMenuTrigger as NavMenuTrigger_alias_1 }
|
|
896
1176
|
|
|
1177
|
+
/**
|
|
1178
|
+
* This module contains the NavMenuTrigger component.
|
|
1179
|
+
* @module
|
|
1180
|
+
*/
|
|
897
1181
|
declare interface NavMenuTriggerProps extends ButtonHTMLAttributes<HTMLButtonElement>, ButtonProps, NavTriggerAriaValues {
|
|
1182
|
+
/**
|
|
1183
|
+
* The element type to render as. Recommended to use for an IconButton trigger vs a standard Button.
|
|
1184
|
+
* @default 'button'
|
|
1185
|
+
* @example
|
|
1186
|
+
* ```tsx
|
|
1187
|
+
* <NavMenuTrigger as={IconButton} href="/home" />
|
|
1188
|
+
* ```
|
|
1189
|
+
*/
|
|
898
1190
|
as?: ElementType;
|
|
899
1191
|
}
|
|
900
1192
|
export { NavMenuTriggerProps }
|
|
@@ -912,28 +1204,39 @@ declare interface NavTriggerAriaValues {
|
|
|
912
1204
|
export { NavTriggerAriaValues }
|
|
913
1205
|
export { NavTriggerAriaValues as NavTriggerAriaValues_alias_1 }
|
|
914
1206
|
|
|
1207
|
+
/**
|
|
1208
|
+
* This module provides a context and hook for the nav menu.
|
|
1209
|
+
* @module NavMenu
|
|
1210
|
+
*/
|
|
915
1211
|
declare type NavTriggerRef = RefObject<HTMLButtonElement>;
|
|
916
1212
|
export { NavTriggerRef }
|
|
917
1213
|
export { NavTriggerRef as NavTriggerRef_alias_1 }
|
|
918
1214
|
|
|
919
1215
|
declare type NonIndeterminateProgressBarProps = {
|
|
1216
|
+
/**
|
|
1217
|
+
* The state of the progress bar.
|
|
1218
|
+
*/
|
|
920
1219
|
indeterminate?: never;
|
|
1220
|
+
/**
|
|
1221
|
+
* The current value of the progress bar.
|
|
1222
|
+
*/
|
|
921
1223
|
now: number;
|
|
922
1224
|
};
|
|
923
1225
|
export { NonIndeterminateProgressBarProps }
|
|
924
1226
|
export { NonIndeterminateProgressBarProps as NonIndeterminateProgressBarProps_alias_1 }
|
|
925
1227
|
|
|
926
1228
|
/**
|
|
927
|
-
*
|
|
928
|
-
*
|
|
929
|
-
* @
|
|
1229
|
+
* A static Notification component that displays a message to the user. This
|
|
1230
|
+
* is typically only used when not utilizing the NotificationCenter.
|
|
1231
|
+
* @see https://cerberus.digitalu.design/react/notification
|
|
1232
|
+
* @memberof module:NotificationCenter
|
|
930
1233
|
* @example
|
|
931
1234
|
* ```tsx
|
|
932
1235
|
* <Notification id="info:1" open>
|
|
933
1236
|
* <NotificationHeading>Info Notification</NotificationHeading>
|
|
934
|
-
*
|
|
935
|
-
*
|
|
936
|
-
*
|
|
1237
|
+
* <NotificationDescription>
|
|
1238
|
+
* This is a description with a <a href="#">link</a> in the message.
|
|
1239
|
+
* </NotificationDescription>
|
|
937
1240
|
* </Notification>
|
|
938
1241
|
* ```
|
|
939
1242
|
*/
|
|
@@ -942,7 +1245,13 @@ export { Notification_2 as Notification }
|
|
|
942
1245
|
export { Notification_2 as Notification_alias_1 }
|
|
943
1246
|
|
|
944
1247
|
declare interface NotificationBaseProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, 'onClose'> {
|
|
1248
|
+
/**
|
|
1249
|
+
* The unique id of the notification. Required for the onClose callback.
|
|
1250
|
+
*/
|
|
945
1251
|
id: string;
|
|
1252
|
+
/**
|
|
1253
|
+
* Called when the close button is clicked.
|
|
1254
|
+
*/
|
|
946
1255
|
onClose?: (e: MouseEvent_2<HTMLButtonElement>) => void;
|
|
947
1256
|
}
|
|
948
1257
|
export { NotificationBaseProps }
|
|
@@ -950,6 +1259,7 @@ export { NotificationBaseProps as NotificationBaseProps_alias_1 }
|
|
|
950
1259
|
|
|
951
1260
|
/**
|
|
952
1261
|
* Provides a notification center to the app.
|
|
1262
|
+
* @see https://cerberus.digitalu.design/react/notification
|
|
953
1263
|
* @example
|
|
954
1264
|
* ```tsx
|
|
955
1265
|
* // Wrap the Provider around the root of the feature.
|
|
@@ -974,7 +1284,9 @@ export { NotificationCenter }
|
|
|
974
1284
|
export { NotificationCenter as NotificationCenter_alias_1 }
|
|
975
1285
|
|
|
976
1286
|
/**
|
|
977
|
-
*
|
|
1287
|
+
* Used to render the description of a notification.
|
|
1288
|
+
* @see https://cerberus.digitalu.design/react/notification
|
|
1289
|
+
* @memberof module:NotificationCenter
|
|
978
1290
|
* @param props - The anything a HTMLParagraphElement can accept.
|
|
979
1291
|
*/
|
|
980
1292
|
declare function NotificationDescription(props: NotificationDescriptionProps): JSX_2.Element;
|
|
@@ -986,7 +1298,9 @@ export { NotificationDescriptionProps }
|
|
|
986
1298
|
export { NotificationDescriptionProps as NotificationDescriptionProps_alias_1 }
|
|
987
1299
|
|
|
988
1300
|
/**
|
|
989
|
-
*
|
|
1301
|
+
* Used to render the heading of a notification.
|
|
1302
|
+
* @see https://cerberus.digitalu.design/react/notification
|
|
1303
|
+
* @memberof module:NotificationCenter
|
|
990
1304
|
* @param props - The anything a HTMLParagraphElement can accept.
|
|
991
1305
|
*/
|
|
992
1306
|
declare function NotificationHeading(props: NotificationHeadingProps): JSX_2.Element;
|
|
@@ -1017,10 +1331,26 @@ export { NotificationsValue as NotificationsValue_alias_1 }
|
|
|
1017
1331
|
* @module
|
|
1018
1332
|
*/
|
|
1019
1333
|
declare interface NotifyOptions {
|
|
1334
|
+
/**
|
|
1335
|
+
* The palette of the notification.
|
|
1336
|
+
* @default 'info'
|
|
1337
|
+
*/
|
|
1020
1338
|
palette: 'info' | 'success' | 'warning' | 'danger';
|
|
1339
|
+
/**
|
|
1340
|
+
* The heading of the notification.
|
|
1341
|
+
*/
|
|
1021
1342
|
heading: string;
|
|
1343
|
+
/**
|
|
1344
|
+
* The unique id of the notification.
|
|
1345
|
+
*/
|
|
1022
1346
|
id?: string;
|
|
1347
|
+
/**
|
|
1348
|
+
* The description of the notification.
|
|
1349
|
+
*/
|
|
1023
1350
|
description?: ReactNode;
|
|
1351
|
+
/**
|
|
1352
|
+
* The action to take when the notification is closed
|
|
1353
|
+
*/
|
|
1024
1354
|
onClose?: () => void;
|
|
1025
1355
|
}
|
|
1026
1356
|
export { NotifyOptions }
|
|
@@ -1058,8 +1388,8 @@ export { pointerWithin }
|
|
|
1058
1388
|
|
|
1059
1389
|
/**
|
|
1060
1390
|
* The Portal component is used to render children into a DOM node that exists outside the DOM hierarchy of the parent component.
|
|
1061
|
-
* @
|
|
1062
|
-
* @
|
|
1391
|
+
* @see https://cerberus.digitalu.design/react/portal
|
|
1392
|
+
* @definition [React Portal Docs](https://react.dev/reference/react-dom/createPortal)
|
|
1063
1393
|
*/
|
|
1064
1394
|
declare function Portal(props: PropsWithChildren<PortalProps>): ReactPortal;
|
|
1065
1395
|
export { Portal }
|
|
@@ -1070,7 +1400,14 @@ export { Portal as Portal_alias_1 }
|
|
|
1070
1400
|
* @module
|
|
1071
1401
|
*/
|
|
1072
1402
|
declare interface PortalProps {
|
|
1403
|
+
/**
|
|
1404
|
+
* The root container to render the children into.
|
|
1405
|
+
* @default document.body
|
|
1406
|
+
*/
|
|
1073
1407
|
container?: Element | DocumentFragment;
|
|
1408
|
+
/**
|
|
1409
|
+
* An optional key to use for the Portal component.
|
|
1410
|
+
*/
|
|
1074
1411
|
key?: null | string;
|
|
1075
1412
|
}
|
|
1076
1413
|
export { PortalProps }
|
|
@@ -1099,9 +1436,7 @@ export { processStatus as processStatus_alias_1 }
|
|
|
1099
1436
|
|
|
1100
1437
|
/**
|
|
1101
1438
|
* The ProgressBar component is used to display the progress of a task.
|
|
1102
|
-
* @
|
|
1103
|
-
* @param props.now - The current value of the progress bar
|
|
1104
|
-
* @param props.indeterminate - Whether the progress bar is indeterminate
|
|
1439
|
+
* @see https://cerberus.digitalu.design/react/progress-indicators
|
|
1105
1440
|
* @example
|
|
1106
1441
|
* ```tsx
|
|
1107
1442
|
* <ProgressBar value={75} />
|
|
@@ -1126,6 +1461,7 @@ export { ProgressBarProps as ProgressBarProps_alias_1 }
|
|
|
1126
1461
|
|
|
1127
1462
|
/**
|
|
1128
1463
|
* Provides a prompt modal to the app.
|
|
1464
|
+
* @see https://cerberus.digitalu.design/react/prompt-modal
|
|
1129
1465
|
* @example
|
|
1130
1466
|
* ```tsx
|
|
1131
1467
|
* // Wrap the Provider around the root of the feature.
|
|
@@ -1160,6 +1496,21 @@ export { PromptModalProviderProps }
|
|
|
1160
1496
|
export { PromptModalProviderProps as PromptModalProviderProps_alias_1 }
|
|
1161
1497
|
|
|
1162
1498
|
declare interface PromptModalValue {
|
|
1499
|
+
/**
|
|
1500
|
+
* The method to trigger the prompt modal.
|
|
1501
|
+
* @returns the value of the key if the action is confirmed.
|
|
1502
|
+
* @example
|
|
1503
|
+
* ```tsx
|
|
1504
|
+
* const accepted = await prompt.show({
|
|
1505
|
+
* kind: 'destructive',
|
|
1506
|
+
* heading: 'Delete channel?',
|
|
1507
|
+
* description:
|
|
1508
|
+
* 'This will permanently delete a channel on your account. There is no going back.',
|
|
1509
|
+
* key: CHANNEL_NAME,
|
|
1510
|
+
* actionText: 'Yes, delete channel',
|
|
1511
|
+
* cancelText: 'No, cancel',
|
|
1512
|
+
* })
|
|
1513
|
+
*/
|
|
1163
1514
|
show: (options: ShowPromptModalOptions) => Promise<string>;
|
|
1164
1515
|
}
|
|
1165
1516
|
export { PromptModalValue }
|
|
@@ -1169,11 +1520,35 @@ declare type PromptShowResult = ((value: string | PromiseLike<string>) => void)
|
|
|
1169
1520
|
export { PromptShowResult }
|
|
1170
1521
|
export { PromptShowResult as PromptShowResult_alias_1 }
|
|
1171
1522
|
|
|
1523
|
+
/**
|
|
1524
|
+
* The Radio component is used to allow users to select a single option from a list of options.
|
|
1525
|
+
* @see https://cerberus.digitalu.design/react/radio
|
|
1526
|
+
* @memberof module:Field
|
|
1527
|
+
* @example
|
|
1528
|
+
* ```tsx
|
|
1529
|
+
* <Field>
|
|
1530
|
+
* <fieldset name="fruit">
|
|
1531
|
+
* <Radio id="radio-1" name="fruit" value="1">
|
|
1532
|
+
* Option 1
|
|
1533
|
+
* </Radio>
|
|
1534
|
+
* <Radio id="radio-2" name="fruit" value="2">
|
|
1535
|
+
* Option 2
|
|
1536
|
+
* </Radio>
|
|
1537
|
+
* <Radio id="radio-3" name="fruit" value="3">
|
|
1538
|
+
* Option 3
|
|
1539
|
+
* </Radio>
|
|
1540
|
+
* </fieldset>
|
|
1541
|
+
* </Field>
|
|
1542
|
+
* ```
|
|
1543
|
+
*/
|
|
1172
1544
|
declare function Radio(props: PropsWithChildren<RadioProps>): JSX_2.Element;
|
|
1173
1545
|
export { Radio }
|
|
1174
1546
|
export { Radio as Radio_alias_1 }
|
|
1175
1547
|
|
|
1176
1548
|
declare interface RadioBaseProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
1549
|
+
/**
|
|
1550
|
+
* A unique identifier for the radio button. Required for accessibility.
|
|
1551
|
+
*/
|
|
1177
1552
|
id: string;
|
|
1178
1553
|
}
|
|
1179
1554
|
export { RadioBaseProps }
|
|
@@ -1183,7 +1558,11 @@ declare type RadioProps = RadioBaseProps & RadioRecipe;
|
|
|
1183
1558
|
export { RadioProps }
|
|
1184
1559
|
export { RadioProps as RadioProps_alias_1 }
|
|
1185
1560
|
|
|
1186
|
-
|
|
1561
|
+
/**
|
|
1562
|
+
* This module contains the Radio component.
|
|
1563
|
+
* @module
|
|
1564
|
+
*/
|
|
1565
|
+
declare type RadioRecipe = RecipeVariantProps<typeof radio>;
|
|
1187
1566
|
export { RadioRecipe }
|
|
1188
1567
|
export { RadioRecipe as RadioRecipe_alias_1 }
|
|
1189
1568
|
|
|
@@ -1192,16 +1571,19 @@ export { rectIntersection }
|
|
|
1192
1571
|
export { ScreenReaderInstructions }
|
|
1193
1572
|
|
|
1194
1573
|
/**
|
|
1195
|
-
*
|
|
1196
|
-
*
|
|
1574
|
+
* Used to allow users to select a single option from a list of options.
|
|
1575
|
+
* @see https://cerberus.digitalu.design/react/select
|
|
1576
|
+
* @memberof module:Field
|
|
1197
1577
|
* @example
|
|
1198
1578
|
* ```tsx
|
|
1199
|
-
* <
|
|
1200
|
-
*
|
|
1201
|
-
*
|
|
1202
|
-
*
|
|
1203
|
-
*
|
|
1204
|
-
* </
|
|
1579
|
+
* <Field>
|
|
1580
|
+
* <Select describedby="help:fruit" id="fruit">
|
|
1581
|
+
* <Option value="">Choose option</Option>
|
|
1582
|
+
* <Option value="one">Option 1</Option>
|
|
1583
|
+
* <Option value="two">Option 2</Option>
|
|
1584
|
+
* <Option value="three">Option 3</Option>
|
|
1585
|
+
* </Select>
|
|
1586
|
+
* </Field>
|
|
1205
1587
|
* ```
|
|
1206
1588
|
*/
|
|
1207
1589
|
declare function Select(props: SelectProps): JSX_2.Element;
|
|
@@ -1213,7 +1595,13 @@ export { Select as Select_alias_1 }
|
|
|
1213
1595
|
* @module
|
|
1214
1596
|
*/
|
|
1215
1597
|
declare type SelectProps = Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size'> & SelectVariantProps & {
|
|
1598
|
+
/**
|
|
1599
|
+
* The unique id of the select element. Required for accessibility.
|
|
1600
|
+
*/
|
|
1216
1601
|
id: string;
|
|
1602
|
+
/**
|
|
1603
|
+
* The id of the FieldMessage that describes the select element.
|
|
1604
|
+
*/
|
|
1217
1605
|
describedBy?: string;
|
|
1218
1606
|
};
|
|
1219
1607
|
export { SelectProps }
|
|
@@ -1242,21 +1630,30 @@ export { Sensors }
|
|
|
1242
1630
|
* @module
|
|
1243
1631
|
*/
|
|
1244
1632
|
declare type SharedAvatarProps = {
|
|
1633
|
+
/**
|
|
1634
|
+
* An optional icon to show when no src or ariaLabel is provided.
|
|
1635
|
+
*/
|
|
1245
1636
|
icon?: ReactNode;
|
|
1637
|
+
/**
|
|
1638
|
+
* The size of the avatar.
|
|
1639
|
+
*/
|
|
1246
1640
|
width?: number;
|
|
1641
|
+
/**
|
|
1642
|
+
* The size of the avatar.
|
|
1643
|
+
*/
|
|
1247
1644
|
height?: number;
|
|
1248
1645
|
};
|
|
1249
1646
|
export { SharedAvatarProps }
|
|
1250
1647
|
export { SharedAvatarProps as SharedAvatarProps_alias_1 }
|
|
1251
1648
|
|
|
1252
1649
|
/**
|
|
1253
|
-
* Conditionally render
|
|
1254
|
-
*
|
|
1255
|
-
* @
|
|
1650
|
+
* Conditionally render a memoized version of the children or optional fallback
|
|
1651
|
+
* content.
|
|
1652
|
+
* @see https://cerberus.digitalu.design/react/show
|
|
1256
1653
|
* @example
|
|
1257
1654
|
* ```tsx
|
|
1258
|
-
* <Show when={
|
|
1259
|
-
*
|
|
1655
|
+
* <Show when={isLoggedIn} fallback={<Navigate to="/login" />}>
|
|
1656
|
+
* <Dashboard />
|
|
1260
1657
|
* </Show>
|
|
1261
1658
|
*/
|
|
1262
1659
|
declare function Show(props: PropsWithChildren<ShowProps>): ReactNode;
|
|
@@ -1268,10 +1665,26 @@ export { Show as Show_alias_1 }
|
|
|
1268
1665
|
* @module
|
|
1269
1666
|
*/
|
|
1270
1667
|
declare interface ShowConfirmModalOptions {
|
|
1668
|
+
/**
|
|
1669
|
+
* The kind of confirm modal to show.
|
|
1670
|
+
* @default 'non-destructive'
|
|
1671
|
+
*/
|
|
1271
1672
|
kind?: 'destructive' | 'non-destructive';
|
|
1673
|
+
/**
|
|
1674
|
+
* The heading of the confirm modal.
|
|
1675
|
+
*/
|
|
1272
1676
|
heading: string;
|
|
1677
|
+
/**
|
|
1678
|
+
* The description of the confirm modal.
|
|
1679
|
+
*/
|
|
1273
1680
|
description?: string;
|
|
1681
|
+
/**
|
|
1682
|
+
* The text for the action button.
|
|
1683
|
+
*/
|
|
1274
1684
|
actionText: string;
|
|
1685
|
+
/**
|
|
1686
|
+
* The text for the cancel button.
|
|
1687
|
+
*/
|
|
1275
1688
|
cancelText: string;
|
|
1276
1689
|
}
|
|
1277
1690
|
export { ShowConfirmModalOptions }
|
|
@@ -1279,21 +1692,50 @@ export { ShowConfirmModalOptions as ShowConfirmModalOptions_alias_1 }
|
|
|
1279
1692
|
|
|
1280
1693
|
/**
|
|
1281
1694
|
* This module provides a context and hook for the prompt modal.
|
|
1282
|
-
* @module
|
|
1695
|
+
* @module PromptModal
|
|
1283
1696
|
*/
|
|
1284
1697
|
declare interface ShowPromptModalOptions {
|
|
1698
|
+
/**
|
|
1699
|
+
* The kind of prompt modal to show.
|
|
1700
|
+
* @default 'non-destructive'
|
|
1701
|
+
*/
|
|
1285
1702
|
kind?: 'destructive' | 'non-destructive';
|
|
1703
|
+
/**
|
|
1704
|
+
* The heading of the prompt modal.
|
|
1705
|
+
*/
|
|
1286
1706
|
heading: string;
|
|
1707
|
+
/**
|
|
1708
|
+
* The description of the prompt modal.
|
|
1709
|
+
*/
|
|
1287
1710
|
description?: string;
|
|
1711
|
+
/**
|
|
1712
|
+
* The key to confirm the action.
|
|
1713
|
+
*/
|
|
1288
1714
|
key: string;
|
|
1715
|
+
/**
|
|
1716
|
+
* The text for the action button.
|
|
1717
|
+
*/
|
|
1289
1718
|
actionText: string;
|
|
1719
|
+
/**
|
|
1720
|
+
* The text for the cancel button.
|
|
1721
|
+
*/
|
|
1290
1722
|
cancelText: string;
|
|
1291
1723
|
}
|
|
1292
1724
|
export { ShowPromptModalOptions }
|
|
1293
1725
|
export { ShowPromptModalOptions as ShowPromptModalOptions_alias_1 }
|
|
1294
1726
|
|
|
1727
|
+
/**
|
|
1728
|
+
* This module contains the Show component.
|
|
1729
|
+
* @module
|
|
1730
|
+
*/
|
|
1295
1731
|
declare interface ShowProps {
|
|
1732
|
+
/**
|
|
1733
|
+
* The condition to render memoized children or the fallback content.
|
|
1734
|
+
*/
|
|
1296
1735
|
when: boolean | null | undefined;
|
|
1736
|
+
/**
|
|
1737
|
+
* The children to render when the condition is false.
|
|
1738
|
+
*/
|
|
1297
1739
|
fallback?: ReactNode;
|
|
1298
1740
|
}
|
|
1299
1741
|
export { ShowProps }
|
|
@@ -1303,7 +1745,46 @@ declare type ShowResult = ((value: boolean | PromiseLike<boolean>) => void) | nu
|
|
|
1303
1745
|
export { ShowResult }
|
|
1304
1746
|
export { ShowResult as ShowResult_alias_1 }
|
|
1305
1747
|
|
|
1306
|
-
|
|
1748
|
+
/**
|
|
1749
|
+
* The Spinner component is used to display a loading indicator. Typically used
|
|
1750
|
+
* in buttons, modals, and other components that require a loading state.
|
|
1751
|
+
* @see https://cerberus.digitalu.design/react/loading-states/
|
|
1752
|
+
* @example
|
|
1753
|
+
* ```tsx
|
|
1754
|
+
* <Button>
|
|
1755
|
+
* <Show when={loading} fallback={<>Save</>}>
|
|
1756
|
+
* Saving
|
|
1757
|
+
* <Spinner size={24} />
|
|
1758
|
+
* </Show>
|
|
1759
|
+
* </Button>
|
|
1760
|
+
* ```
|
|
1761
|
+
*/
|
|
1762
|
+
declare function Spinner(props: SpinnerProps): JSX_2.Element;
|
|
1763
|
+
export { Spinner }
|
|
1764
|
+
export { Spinner as Spinner_alias_1 }
|
|
1765
|
+
|
|
1766
|
+
/**
|
|
1767
|
+
* This module contains the Spinner component.
|
|
1768
|
+
* @module
|
|
1769
|
+
*/
|
|
1770
|
+
declare type SpinnerProps = SVGProps<SVGSVGElement> & {
|
|
1771
|
+
/**
|
|
1772
|
+
* The size of the spinner
|
|
1773
|
+
*/
|
|
1774
|
+
size?: number | string;
|
|
1775
|
+
};
|
|
1776
|
+
export { SpinnerProps }
|
|
1777
|
+
export { SpinnerProps as SpinnerProps_alias_1 }
|
|
1778
|
+
|
|
1779
|
+
/**
|
|
1780
|
+
* This module contains the tag component.
|
|
1781
|
+
* @module
|
|
1782
|
+
*/
|
|
1783
|
+
declare type StaticTagProps = HTMLAttributes<HTMLSpanElement> & TagVariantProps & {
|
|
1784
|
+
/**
|
|
1785
|
+
* The action to be performed when the tag is clicked. Not available when
|
|
1786
|
+
* the palette or gradient props are provided.
|
|
1787
|
+
*/
|
|
1307
1788
|
onClick?: never;
|
|
1308
1789
|
};
|
|
1309
1790
|
export { StaticTagProps }
|
|
@@ -1312,13 +1793,16 @@ export { StaticTagProps as StaticTagProps_alias_1 }
|
|
|
1312
1793
|
/**
|
|
1313
1794
|
* The Tab component provides a tab element to be used in a TabList.
|
|
1314
1795
|
* @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)
|
|
1315
|
-
* @
|
|
1316
|
-
* @
|
|
1796
|
+
* @see https://cerberus.digitalu.design/react/tabs
|
|
1797
|
+
* @memberof module:Tabs
|
|
1317
1798
|
* @example
|
|
1318
1799
|
* ```tsx
|
|
1319
|
-
* <
|
|
1320
|
-
*
|
|
1321
|
-
* </Tab>
|
|
1800
|
+
* <Tabs>
|
|
1801
|
+
* <TabList description="Profile settings">
|
|
1802
|
+
* <Tab value="overview">Overview</Tab>
|
|
1803
|
+
* </TabList>
|
|
1804
|
+
* <TabPanel tab="overview">...</TabPanel>
|
|
1805
|
+
* </Tabs>
|
|
1322
1806
|
* ```
|
|
1323
1807
|
*/
|
|
1324
1808
|
declare function Tab(props: TabProps): JSX_2.Element;
|
|
@@ -1326,9 +1810,9 @@ export { Tab }
|
|
|
1326
1810
|
export { Tab as Tab_alias_1 }
|
|
1327
1811
|
|
|
1328
1812
|
/**
|
|
1329
|
-
*
|
|
1330
|
-
* @definition [Table
|
|
1331
|
-
* @
|
|
1813
|
+
* An accessible table component.
|
|
1814
|
+
* @definition [ARIA Table pattern](https://www.w3.org/WAI/ARIA/apg/patterns/table/)
|
|
1815
|
+
* @see https://cerberus.digitalu.design/react/table.
|
|
1332
1816
|
* @example
|
|
1333
1817
|
* ```tsx
|
|
1334
1818
|
* <Table caption="Basic Table">
|
|
@@ -1345,6 +1829,9 @@ export { Table as Table_alias_1 }
|
|
|
1345
1829
|
* @module
|
|
1346
1830
|
*/
|
|
1347
1831
|
declare interface TableProps extends TableHTMLAttributes<HTMLTableElement> {
|
|
1832
|
+
/**
|
|
1833
|
+
* An easy to understand description of the table. Required for accessibility.
|
|
1834
|
+
*/
|
|
1348
1835
|
caption: string;
|
|
1349
1836
|
}
|
|
1350
1837
|
export { TableProps }
|
|
@@ -1352,7 +1839,8 @@ export { TableProps as TableProps_alias_1 }
|
|
|
1352
1839
|
|
|
1353
1840
|
/**
|
|
1354
1841
|
* The TabList component provides a container for tab elements.
|
|
1355
|
-
* @
|
|
1842
|
+
* @see https://cerberus.digitalu.design/react/tabs
|
|
1843
|
+
* @memberof module:Tabs
|
|
1356
1844
|
* @example
|
|
1357
1845
|
* ```tsx
|
|
1358
1846
|
* <TabList description="Button details">
|
|
@@ -1370,14 +1858,19 @@ export { TabList as TabList_alias_1 }
|
|
|
1370
1858
|
* @module
|
|
1371
1859
|
*/
|
|
1372
1860
|
declare interface TabListProps extends HTMLAttributes<HTMLDivElement> {
|
|
1861
|
+
/**
|
|
1862
|
+
* A description of what the tab list contains. Required for accessibility.
|
|
1863
|
+
*/
|
|
1373
1864
|
description: string;
|
|
1374
1865
|
}
|
|
1375
1866
|
export { TabListProps }
|
|
1376
1867
|
export { TabListProps as TabListProps_alias_1 }
|
|
1377
1868
|
|
|
1378
1869
|
/**
|
|
1379
|
-
* The TabPanel component provides a panel element to be used in a Tabs
|
|
1380
|
-
*
|
|
1870
|
+
* The TabPanel component provides a panel element to be used in a Tabs
|
|
1871
|
+
* provider.
|
|
1872
|
+
* @see https://cerberus.digitalu.design/react/tabs
|
|
1873
|
+
* @memberof module:Tabs
|
|
1381
1874
|
* @example
|
|
1382
1875
|
* ```tsx
|
|
1383
1876
|
* <TabPanel tab="overview">
|
|
@@ -1394,6 +1887,9 @@ export { TabPanel as TabPanel_alias_1 }
|
|
|
1394
1887
|
* @module
|
|
1395
1888
|
*/
|
|
1396
1889
|
declare interface TabPanelProps extends HTMLAttributes<HTMLDivElement> {
|
|
1890
|
+
/**
|
|
1891
|
+
* The unique value of the Tab that is associated with the TabPanel.
|
|
1892
|
+
*/
|
|
1397
1893
|
tab: string;
|
|
1398
1894
|
}
|
|
1399
1895
|
export { TabPanelProps }
|
|
@@ -1404,6 +1900,10 @@ export { TabPanelProps as TabPanelProps_alias_1 }
|
|
|
1404
1900
|
* @module
|
|
1405
1901
|
*/
|
|
1406
1902
|
declare interface TabProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
1903
|
+
/**
|
|
1904
|
+
* The id of the tab that will be tracked as the active tab and used for aria
|
|
1905
|
+
* attributes.
|
|
1906
|
+
*/
|
|
1407
1907
|
value: string;
|
|
1408
1908
|
}
|
|
1409
1909
|
export { TabProps }
|
|
@@ -1411,9 +1911,7 @@ export { TabProps as TabProps_alias_1 }
|
|
|
1411
1911
|
|
|
1412
1912
|
/**
|
|
1413
1913
|
* The Tabs component provides a context to manage tab state.
|
|
1414
|
-
* @
|
|
1415
|
-
* @param active - the default active tab id,
|
|
1416
|
-
* @param cache - whether to cache the active tab state in local storage
|
|
1914
|
+
* @see https://cerberus.digitalu.design/react/tabs
|
|
1417
1915
|
* @example
|
|
1418
1916
|
* ```tsx
|
|
1419
1917
|
* <Tabs cache>
|
|
@@ -1438,21 +1936,46 @@ export { TabsContext as TabsContext_alias_1 }
|
|
|
1438
1936
|
|
|
1439
1937
|
/**
|
|
1440
1938
|
* This module provides a Tabs component and a hook to access its context.
|
|
1441
|
-
* @module
|
|
1939
|
+
* @module Tabs
|
|
1442
1940
|
*/
|
|
1443
1941
|
declare interface TabsContextValue {
|
|
1942
|
+
/**
|
|
1943
|
+
* The ref for the tabs.
|
|
1944
|
+
*/
|
|
1444
1945
|
tabs: MutableRefObject<HTMLButtonElement[]>;
|
|
1946
|
+
/**
|
|
1947
|
+
* The id of the tabs component.
|
|
1948
|
+
*/
|
|
1445
1949
|
id: string;
|
|
1950
|
+
/**
|
|
1951
|
+
* The active tab id.
|
|
1952
|
+
*/
|
|
1446
1953
|
active: string;
|
|
1954
|
+
/**
|
|
1955
|
+
* The styles for the tabs.
|
|
1956
|
+
*/
|
|
1447
1957
|
styles: Pretty<Record<'tabList' | 'tab' | 'tabPanel', string>>;
|
|
1958
|
+
/**
|
|
1959
|
+
* Called when the active tab is updated.
|
|
1960
|
+
*/
|
|
1448
1961
|
onTabUpdate: (active: string) => void;
|
|
1449
1962
|
}
|
|
1450
1963
|
export { TabsContextValue }
|
|
1451
1964
|
export { TabsContextValue as TabsContextValue_alias_1 }
|
|
1452
1965
|
|
|
1453
1966
|
declare interface TabsProps {
|
|
1967
|
+
/**
|
|
1968
|
+
* A unique identifier for the Tabs component. Typically used when there are
|
|
1969
|
+
* multiple Tabs components on the same page.
|
|
1970
|
+
*/
|
|
1454
1971
|
id?: string;
|
|
1972
|
+
/**
|
|
1973
|
+
* The default active tab id.
|
|
1974
|
+
*/
|
|
1455
1975
|
active?: string;
|
|
1976
|
+
/**
|
|
1977
|
+
* Whether to cache the active tab state in local storage.
|
|
1978
|
+
*/
|
|
1456
1979
|
cache?: boolean;
|
|
1457
1980
|
}
|
|
1458
1981
|
export { TabsProps }
|
|
@@ -1460,7 +1983,7 @@ export { TabsProps as TabsProps_alias_1 }
|
|
|
1460
1983
|
|
|
1461
1984
|
/**
|
|
1462
1985
|
* The Tag component is used to display a meta descriptions.
|
|
1463
|
-
* @
|
|
1986
|
+
* @see https://cerberus.digitalu.design/react/tag
|
|
1464
1987
|
* @example
|
|
1465
1988
|
* ```tsx
|
|
1466
1989
|
* <Tag>Tag</Tag>
|
|
@@ -1474,17 +1997,10 @@ declare type TagProps = StaticTagProps | ClickableTagProps;
|
|
|
1474
1997
|
export { TagProps }
|
|
1475
1998
|
export { TagProps as TagProps_alias_1 }
|
|
1476
1999
|
|
|
1477
|
-
/**
|
|
1478
|
-
* This module contains the tag component.
|
|
1479
|
-
* @module
|
|
1480
|
-
*/
|
|
1481
|
-
declare type TagRecipeProps = RecipeVariantProps_2<typeof tag>;
|
|
1482
|
-
export { TagRecipeProps }
|
|
1483
|
-
export { TagRecipeProps as TagRecipeProps_alias_1 }
|
|
1484
|
-
|
|
1485
2000
|
/**
|
|
1486
2001
|
* The TBody component is used to render a table body.
|
|
1487
|
-
* @
|
|
2002
|
+
* @see https://cerberus.digitalu.design/react/table
|
|
2003
|
+
* @memberof module:Table
|
|
1488
2004
|
* @example
|
|
1489
2005
|
* ```tsx
|
|
1490
2006
|
* <TBody>
|
|
@@ -1496,6 +2012,10 @@ declare function Tbody(props: TbodyProps): JSX_2.Element;
|
|
|
1496
2012
|
export { Tbody }
|
|
1497
2013
|
export { Tbody as Tbody_alias_1 }
|
|
1498
2014
|
|
|
2015
|
+
/**
|
|
2016
|
+
* This module provides a TBody component.
|
|
2017
|
+
* @module
|
|
2018
|
+
*/
|
|
1499
2019
|
declare type TbodyBaseProps = TableHTMLAttributes<HTMLTableSectionElement>;
|
|
1500
2020
|
export { TbodyBaseProps }
|
|
1501
2021
|
export { TbodyBaseProps as TbodyBaseProps_alias_1 }
|
|
@@ -1506,7 +2026,8 @@ export { TbodyProps as TbodyProps_alias_1 }
|
|
|
1506
2026
|
|
|
1507
2027
|
/**
|
|
1508
2028
|
* Styles for the Th component
|
|
1509
|
-
* @
|
|
2029
|
+
* @see https://cerberus.digitalu.design/react/table
|
|
2030
|
+
* @memberof module:Table
|
|
1510
2031
|
* @example
|
|
1511
2032
|
* ```tsx
|
|
1512
2033
|
* <Td>Data cell</Td>
|
|
@@ -1530,7 +2051,7 @@ export { TdProps as TdProps_alias_1 }
|
|
|
1530
2051
|
|
|
1531
2052
|
/**
|
|
1532
2053
|
* A component that allows the user to input large blocks of text.
|
|
1533
|
-
* @
|
|
2054
|
+
* @see https://cerberus.digitalu.design/react/textarea
|
|
1534
2055
|
*/
|
|
1535
2056
|
declare function Textarea(props: TextareaProps): JSX.Element;
|
|
1536
2057
|
export { Textarea }
|
|
@@ -1541,23 +2062,37 @@ export { Textarea as Textarea_alias_1 }
|
|
|
1541
2062
|
* @module
|
|
1542
2063
|
*/
|
|
1543
2064
|
declare interface TextareaBaseProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'id'> {
|
|
2065
|
+
/**
|
|
2066
|
+
* The ID of the FieldMessage that describes the textarea.
|
|
2067
|
+
*/
|
|
1544
2068
|
describedBy?: string;
|
|
2069
|
+
/**
|
|
2070
|
+
* The unique id of the textarea.
|
|
2071
|
+
*/
|
|
1545
2072
|
id: string;
|
|
1546
2073
|
}
|
|
1547
2074
|
export { TextareaBaseProps }
|
|
1548
2075
|
export { TextareaBaseProps as TextareaBaseProps_alias_1 }
|
|
1549
2076
|
|
|
1550
|
-
declare type TextareaProps =
|
|
2077
|
+
declare type TextareaProps = InputVariantProps & TextareaBaseProps;
|
|
1551
2078
|
export { TextareaProps }
|
|
1552
2079
|
export { TextareaProps as TextareaProps_alias_1 }
|
|
1553
2080
|
|
|
1554
2081
|
/**
|
|
1555
2082
|
* Styles for the Th component
|
|
1556
|
-
* @
|
|
2083
|
+
* @see https://cerberus.digitalu.design/react/table
|
|
2084
|
+
* @memberof module:Table
|
|
1557
2085
|
* @example
|
|
1558
2086
|
* ```tsx
|
|
1559
2087
|
* <Th>Header 1</Th>
|
|
1560
2088
|
* ```
|
|
2089
|
+
* @example
|
|
2090
|
+
* ```tsx
|
|
2091
|
+
* <Th onClick={handleClick}>
|
|
2092
|
+
* Names
|
|
2093
|
+
* <SortIcon />
|
|
2094
|
+
* </Th>
|
|
2095
|
+
* ```
|
|
1561
2096
|
*/
|
|
1562
2097
|
declare function Th(props: ThProps): JSX_2.Element;
|
|
1563
2098
|
export { Th }
|
|
@@ -1568,6 +2103,10 @@ export { Th as Th_alias_1 }
|
|
|
1568
2103
|
* @module
|
|
1569
2104
|
*/
|
|
1570
2105
|
declare type ThBaseProps = TableHTMLAttributes<HTMLTableCellElement> & {
|
|
2106
|
+
/**
|
|
2107
|
+
* Converts the Th into a actionable button. Called when the user clicks on
|
|
2108
|
+
* the Th.
|
|
2109
|
+
*/
|
|
1571
2110
|
onClick?: (e: MouseEvent_2<HTMLButtonElement>) => void;
|
|
1572
2111
|
};
|
|
1573
2112
|
export { ThBaseProps }
|
|
@@ -1575,7 +2114,8 @@ export { ThBaseProps as ThBaseProps_alias_1 }
|
|
|
1575
2114
|
|
|
1576
2115
|
/**
|
|
1577
2116
|
* The Thead component is used to render a table header.
|
|
1578
|
-
* @
|
|
2117
|
+
* @see https://cerberus.digitalu.design/react/table
|
|
2118
|
+
* @memberof module:Table
|
|
1579
2119
|
* @example
|
|
1580
2120
|
* ```tsx
|
|
1581
2121
|
* <Thead>
|
|
@@ -1595,21 +2135,39 @@ declare type TheadProps = TableHTMLAttributes<HTMLTableSectionElement>;
|
|
|
1595
2135
|
export { TheadProps }
|
|
1596
2136
|
export { TheadProps as TheadProps_alias_1 }
|
|
1597
2137
|
|
|
2138
|
+
/**
|
|
2139
|
+
* This module provides a hook for using the theme.
|
|
2140
|
+
* @module
|
|
2141
|
+
*/
|
|
1598
2142
|
declare const THEME_KEY = "cerberus-theme";
|
|
1599
2143
|
export { THEME_KEY }
|
|
1600
2144
|
export { THEME_KEY as THEME_KEY_alias_1 }
|
|
1601
2145
|
|
|
1602
2146
|
declare interface ThemeContextValue<T extends string = DefaultThemes> {
|
|
2147
|
+
/**
|
|
2148
|
+
* The current theme.
|
|
2149
|
+
*/
|
|
1603
2150
|
theme: CustomThemes<T>;
|
|
2151
|
+
/**
|
|
2152
|
+
* The current color mode.
|
|
2153
|
+
*/
|
|
1604
2154
|
mode: ColorModes;
|
|
2155
|
+
/**
|
|
2156
|
+
* Called when the theme is updated.
|
|
2157
|
+
*/
|
|
1605
2158
|
updateTheme: (theme: T) => void;
|
|
1606
|
-
|
|
2159
|
+
/**
|
|
2160
|
+
* Called when the color mode is updated.
|
|
2161
|
+
*/
|
|
2162
|
+
updateMode: (mode: ColorModes) => void;
|
|
1607
2163
|
}
|
|
1608
2164
|
export { ThemeContextValue }
|
|
1609
2165
|
export { ThemeContextValue as ThemeContextValue_alias_1 }
|
|
1610
2166
|
|
|
1611
2167
|
/**
|
|
1612
|
-
* A context provider that allows the user to set the theme and mode of the
|
|
2168
|
+
* A context provider that allows the user to set the theme and mode of the
|
|
2169
|
+
* application.
|
|
2170
|
+
* @see https://cerberus.digitalu.design/react/use-theme-context
|
|
1613
2171
|
* @example
|
|
1614
2172
|
* ```tsx
|
|
1615
2173
|
* <ThemeProvider>
|
|
@@ -1617,28 +2175,81 @@ export { ThemeContextValue as ThemeContextValue_alias_1 }
|
|
|
1617
2175
|
* </ThemeProvider>
|
|
1618
2176
|
* ```
|
|
1619
2177
|
*/
|
|
1620
|
-
declare function ThemeProvider(props: PropsWithChildren<
|
|
2178
|
+
declare function ThemeProvider(props: PropsWithChildren<ThemeProviderProps>): JSX.Element;
|
|
1621
2179
|
export { ThemeProvider }
|
|
1622
2180
|
export { ThemeProvider as ThemeProvider_alias_1 }
|
|
1623
2181
|
|
|
2182
|
+
declare interface ThemeProviderProps extends UseThemeOptions {
|
|
2183
|
+
/**
|
|
2184
|
+
* The default theme.
|
|
2185
|
+
*/
|
|
2186
|
+
defaultTheme?: DefaultThemes;
|
|
2187
|
+
/**
|
|
2188
|
+
* The default color mode.
|
|
2189
|
+
*/
|
|
2190
|
+
defaultColorMode?: ColorModes;
|
|
2191
|
+
}
|
|
2192
|
+
export { ThemeProviderProps }
|
|
2193
|
+
export { ThemeProviderProps as ThemeProviderProps_alias_1 }
|
|
2194
|
+
|
|
1624
2195
|
declare type ThProps = ThBaseProps & ThVariantProps;
|
|
1625
2196
|
export { ThProps }
|
|
1626
2197
|
export { ThProps as ThProps_alias_1 }
|
|
1627
2198
|
|
|
2199
|
+
/**
|
|
2200
|
+
* The Toggle component is used to switch between two states. Optionally
|
|
2201
|
+
* combine with the `useToggle` hook.
|
|
2202
|
+
* @see https://cerberus.digitalu.design/react/toggle
|
|
2203
|
+
* @example
|
|
2204
|
+
* ```tsx
|
|
2205
|
+
* const { checked, handleChange } = useToggle({ checked: 'toggle' })
|
|
2206
|
+
*
|
|
2207
|
+
* <Hstack justify="space-between" w="full">
|
|
2208
|
+
* <Field>
|
|
2209
|
+
* <Label htmlFor="toggle">Show notifications</Label>
|
|
2210
|
+
* <Toggle
|
|
2211
|
+
* checked={checked === 'toggle'}
|
|
2212
|
+
* id="toggle"
|
|
2213
|
+
* onChange={handleChange}
|
|
2214
|
+
* value="toggle"
|
|
2215
|
+
* />
|
|
2216
|
+
* </Field>
|
|
2217
|
+
* </Hstack>
|
|
2218
|
+
* ```
|
|
2219
|
+
*/
|
|
1628
2220
|
declare function Toggle(props: ToggleProps): JSX_2.Element;
|
|
1629
2221
|
export { Toggle }
|
|
1630
2222
|
export { Toggle as Toggle_alias_1 }
|
|
1631
2223
|
|
|
2224
|
+
/**
|
|
2225
|
+
* This module provides a toggle component.
|
|
2226
|
+
* @module
|
|
2227
|
+
*/
|
|
1632
2228
|
declare type ToggleBase = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'id' | 'value'> & {
|
|
2229
|
+
/**
|
|
2230
|
+
* The FieldMessage providing context for the Toggle.
|
|
2231
|
+
*/
|
|
1633
2232
|
describedBy?: string;
|
|
2233
|
+
/**
|
|
2234
|
+
* A unique identifier for the Toggle. Required for accessibility.
|
|
2235
|
+
*/
|
|
1634
2236
|
id: string;
|
|
2237
|
+
/**
|
|
2238
|
+
* The value of the Toggle.
|
|
2239
|
+
*/
|
|
1635
2240
|
value: string;
|
|
1636
2241
|
};
|
|
1637
2242
|
export { ToggleBase }
|
|
1638
2243
|
export { ToggleBase as ToggleBase_alias_1 }
|
|
1639
2244
|
|
|
1640
2245
|
declare interface ToggleHookReturn {
|
|
2246
|
+
/**
|
|
2247
|
+
* The checked state.
|
|
2248
|
+
*/
|
|
1641
2249
|
checked: string;
|
|
2250
|
+
/**
|
|
2251
|
+
* A custom handler to be called when the checked state changes.
|
|
2252
|
+
*/
|
|
1642
2253
|
handleChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
1643
2254
|
}
|
|
1644
2255
|
export { ToggleHookReturn }
|
|
@@ -1698,14 +2309,26 @@ export { useDroppable }
|
|
|
1698
2309
|
|
|
1699
2310
|
export { UseDroppableArguments }
|
|
1700
2311
|
|
|
2312
|
+
/**
|
|
2313
|
+
* Used to retrieve the context of the FeatureFlags provider.
|
|
2314
|
+
*/
|
|
1701
2315
|
declare function useFeatureFlags(key: string): boolean;
|
|
1702
2316
|
export { useFeatureFlags }
|
|
1703
2317
|
export { useFeatureFlags as useFeatureFlags_alias_1 }
|
|
1704
2318
|
|
|
2319
|
+
/**
|
|
2320
|
+
* Used to access the field context.
|
|
2321
|
+
* @returns The field context.
|
|
2322
|
+
*/
|
|
1705
2323
|
declare function useFieldContext(): FieldContextValue;
|
|
1706
2324
|
export { useFieldContext }
|
|
1707
2325
|
export { useFieldContext as useFieldContext_alias_1 }
|
|
1708
2326
|
|
|
2327
|
+
/**
|
|
2328
|
+
* Provides a hook for using a custom modal.
|
|
2329
|
+
* @memberof module:Modal
|
|
2330
|
+
* @returns The modal hook.
|
|
2331
|
+
*/
|
|
1709
2332
|
declare function useModal(): UseModalReturnValue;
|
|
1710
2333
|
export { useModal }
|
|
1711
2334
|
export { useModal as useModal_alias_1 }
|
|
@@ -1715,11 +2338,24 @@ export { useModal as useModal_alias_1 }
|
|
|
1715
2338
|
* @module
|
|
1716
2339
|
*/
|
|
1717
2340
|
declare interface UseModalReturnValue {
|
|
2341
|
+
/**
|
|
2342
|
+
* The ref for the modal.
|
|
2343
|
+
*/
|
|
1718
2344
|
modalRef: RefObject<HTMLDialogElement>;
|
|
2345
|
+
/**
|
|
2346
|
+
* Shows the modal.
|
|
2347
|
+
*/
|
|
1719
2348
|
show: () => void;
|
|
2349
|
+
/**
|
|
2350
|
+
* Closes the modal.
|
|
2351
|
+
*/
|
|
1720
2352
|
close: () => void;
|
|
1721
2353
|
}
|
|
1722
2354
|
|
|
2355
|
+
/**
|
|
2356
|
+
* Used to access the nav menu context.
|
|
2357
|
+
* @returns The nav menu context.
|
|
2358
|
+
*/
|
|
1723
2359
|
declare function useNavMenuContext(): NavMenuContextValue;
|
|
1724
2360
|
export { useNavMenuContext }
|
|
1725
2361
|
export { useNavMenuContext as useNavMenuContext_alias_1 }
|
|
@@ -1741,6 +2377,9 @@ declare function useNotificationCenter(): NotificationsValue;
|
|
|
1741
2377
|
export { useNotificationCenter }
|
|
1742
2378
|
export { useNotificationCenter as useNotificationCenter_alias_1 }
|
|
1743
2379
|
|
|
2380
|
+
/**
|
|
2381
|
+
* Used to retrieve the context of the PromptModal provider.
|
|
2382
|
+
*/
|
|
1744
2383
|
declare function usePromptModal(): PromptModalValue;
|
|
1745
2384
|
export { usePromptModal }
|
|
1746
2385
|
export { usePromptModal as usePromptModal_alias_1 }
|
|
@@ -1749,6 +2388,10 @@ export { useSensor }
|
|
|
1749
2388
|
|
|
1750
2389
|
export { useSensors }
|
|
1751
2390
|
|
|
2391
|
+
/**
|
|
2392
|
+
* Used to access the tabs context.
|
|
2393
|
+
* @returns The tabs context.
|
|
2394
|
+
*/
|
|
1752
2395
|
declare function useTabsContext(): TabsContextValue;
|
|
1753
2396
|
export { useTabsContext }
|
|
1754
2397
|
export { useTabsContext as useTabsContext_alias_1 }
|
|
@@ -1759,20 +2402,62 @@ declare function useTabsKeyboardNavigation(): {
|
|
|
1759
2402
|
export { useTabsKeyboardNavigation }
|
|
1760
2403
|
export { useTabsKeyboardNavigation as useTabsKeyboardNavigation_alias_1 }
|
|
1761
2404
|
|
|
1762
|
-
|
|
2405
|
+
/**
|
|
2406
|
+
* Provides a hook for using the theme for a single instance of the application.
|
|
2407
|
+
* @see https://cerberus.digitalu.design/react/use-theme
|
|
2408
|
+
* @param defaultTheme The default theme.
|
|
2409
|
+
* @param defaultColorMode The default color mode.
|
|
2410
|
+
* @param options Additional options.
|
|
2411
|
+
*/
|
|
2412
|
+
declare function useTheme<C extends string = DefaultThemes>(defaultTheme?: CustomThemes<C>, defaultColorMode?: ColorModes, options?: UseThemeOptions<C>): ThemeContextValue<C>;
|
|
1763
2413
|
export { useTheme }
|
|
1764
2414
|
export { useTheme as useTheme_alias_1 }
|
|
1765
2415
|
|
|
2416
|
+
/**
|
|
2417
|
+
* Used to access the theme context.
|
|
2418
|
+
*/
|
|
1766
2419
|
declare function useThemeContext(): ThemeContextValue<DefaultThemes>;
|
|
1767
2420
|
export { useThemeContext }
|
|
1768
2421
|
export { useThemeContext as useThemeContext_alias_1 }
|
|
1769
2422
|
|
|
2423
|
+
declare interface UseThemeOptions<T extends string = DefaultThemes> {
|
|
2424
|
+
/**
|
|
2425
|
+
* Whether to cache the theme in local storage.
|
|
2426
|
+
*/
|
|
2427
|
+
cache?: boolean;
|
|
2428
|
+
/**
|
|
2429
|
+
* Called when the theme is updated.
|
|
2430
|
+
*/
|
|
2431
|
+
updateTheme?: (theme: T) => void;
|
|
2432
|
+
/**
|
|
2433
|
+
* Called when the color mode is updated.
|
|
2434
|
+
*/
|
|
2435
|
+
updateMode?: (mode: ColorModes) => void;
|
|
2436
|
+
}
|
|
2437
|
+
export { UseThemeOptions }
|
|
2438
|
+
export { UseThemeOptions as UseThemeOptions_alias_1 }
|
|
2439
|
+
|
|
2440
|
+
/**
|
|
2441
|
+
* Provides a hook for using a toggle.
|
|
2442
|
+
* @see https://cerberus.digitalu.design/react/use-toggle
|
|
2443
|
+
* @memberof module:Toggle
|
|
2444
|
+
*/
|
|
1770
2445
|
declare function useToggle(options?: UseToggleOptions): ToggleHookReturn;
|
|
1771
2446
|
export { useToggle }
|
|
1772
2447
|
export { useToggle as useToggle_alias_1 }
|
|
1773
2448
|
|
|
2449
|
+
/**
|
|
2450
|
+
* This module provides a hook for using a toggle.
|
|
2451
|
+
* @module useToggle
|
|
2452
|
+
*/
|
|
1774
2453
|
declare interface UseToggleOptions {
|
|
2454
|
+
/**
|
|
2455
|
+
* The initial checked state.
|
|
2456
|
+
*/
|
|
1775
2457
|
checked?: string;
|
|
2458
|
+
/**
|
|
2459
|
+
* Called when the checked state changes.
|
|
2460
|
+
*/
|
|
1776
2461
|
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
1777
2462
|
}
|
|
1778
2463
|
export { UseToggleOptions }
|