@cerberus-design/react 0.9.2-next-250bba5 → 0.9.2-next-74f2c67
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 +730 -117
- 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.map +1 -1
- 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 +70 -74
- package/build/legacy/components/FileStatus.cjs.map +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.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.map +1 -1
- 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.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.map +1 -1
- 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.map +1 -1
- package/build/legacy/hooks/useModal.cjs.map +1 -1
- package/build/legacy/hooks/useTheme.cjs.map +1 -1
- package/build/legacy/hooks/useToggle.cjs.map +1 -1
- package/build/legacy/index.cjs +5 -5
- package/build/legacy/index.cjs.map +1 -1
- package/build/modern/_tsup-dts-rollup.d.ts +730 -117
- package/build/modern/aria-helpers/tabs.aria.js +2 -2
- package/build/modern/{chunk-LAOQSNMN.js → chunk-2RPWSVRX.js} +6 -6
- 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-A6CLBPFE.js → chunk-3O6UTN3J.js} +1 -1
- 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-IXOJLCNO.js → chunk-7SYJFI5E.js} +1 -1
- package/build/modern/chunk-7SYJFI5E.js.map +1 -0
- package/build/modern/{chunk-GABTVDSB.js → chunk-AUAPBPGW.js} +3 -3
- 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-ZBEHDXFT.js → chunk-E6QFLLXH.js} +13 -13
- package/build/modern/chunk-E6QFLLXH.js.map +1 -0
- package/build/modern/{chunk-S3MTABYX.js → chunk-EB37HRCN.js} +2 -2
- package/build/modern/chunk-EB37HRCN.js.map +1 -0
- package/build/modern/{chunk-JXJ6VFZO.js → chunk-EJOXOICK.js} +1 -1
- 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-RQPDRHRP.js → chunk-I35HMGJQ.js} +3 -3
- package/build/modern/chunk-I35HMGJQ.js.map +1 -0
- package/build/modern/{chunk-CMKBUSGN.js → chunk-ILZKQP6R.js} +10 -10
- package/build/modern/chunk-ILZKQP6R.js.map +1 -0
- package/build/modern/{chunk-GKUDLVOV.js → chunk-ITOIXNJS.js} +2 -2
- package/build/modern/{chunk-BTEEBIVN.js → chunk-JCGWTIR4.js} +3 -3
- 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-AEDGCR25.js → chunk-NUGDTZCL.js} +7 -7
- package/build/modern/chunk-NUGDTZCL.js.map +1 -0
- package/build/modern/{chunk-XPVDT4VF.js → chunk-O6JYYVO7.js} +3 -3
- 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-RBZAEOKN.js → chunk-S7XGIQY6.js} +6 -3
- 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-SSY3KX3F.js → chunk-WZOYPFUU.js} +3 -3
- 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-G6O7KRQ6.js → chunk-ZFK33MVD.js} +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 -2
- package/build/modern/hooks/useModal.js +1 -1
- package/build/modern/hooks/useTheme.js +1 -1
- package/build/modern/hooks/useToggle.js +1 -1
- package/build/modern/index.js +51 -51
- package/package.json +3 -3
- 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 +1 -1
- 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 +38 -11
- package/src/components/FileUploader.tsx +10 -0
- 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 +14 -4
- 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 +12 -5
- 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 +28 -2
- 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 +17 -0
- 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 +17 -0
- package/src/context/prompt-modal.tsx +39 -1
- package/src/context/tabs.tsx +31 -4
- package/src/context/theme.tsx +29 -1
- package/src/hooks/useModal.ts +14 -0
- package/src/hooks/useTheme.ts +21 -0
- package/src/hooks/useToggle.ts +22 -0
- 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-A6CLBPFE.js.map +0 -1
- package/build/modern/chunk-AEDGCR25.js.map +0 -1
- package/build/modern/chunk-BTEEBIVN.js.map +0 -1
- package/build/modern/chunk-C5HLLGME.js.map +0 -1
- package/build/modern/chunk-CMKBUSGN.js.map +0 -1
- package/build/modern/chunk-G6O7KRQ6.js.map +0 -1
- package/build/modern/chunk-GABTVDSB.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-IXOJLCNO.js.map +0 -1
- package/build/modern/chunk-JB7IQ2BM.js.map +0 -1
- package/build/modern/chunk-JXJ6VFZO.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-LAOQSNMN.js.map +0 -1
- package/build/modern/chunk-N3FUF4TB.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-RBZAEOKN.js.map +0 -1
- package/build/modern/chunk-RPZAPUCF.js.map +0 -1
- package/build/modern/chunk-RQPDRHRP.js.map +0 -1
- package/build/modern/chunk-S3MTABYX.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-SSY3KX3F.js.map +0 -1
- package/build/modern/chunk-TCO46FK7.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-VULPMZUW.js.map +0 -1
- package/build/modern/chunk-XPVDT4VF.js.map +0 -1
- package/build/modern/chunk-XREC5IJE.js.map +0 -1
- package/build/modern/chunk-ZAU4JVLL.js.map +0 -1
- package/build/modern/chunk-ZBEHDXFT.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';
|
|
@@ -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 }
|
|
@@ -266,7 +301,7 @@ export declare function CheckmarkIcon(props: CheckboxIconProps): JSX_2.Element;
|
|
|
266
301
|
* @param props.now - The current value of the CircularProgress
|
|
267
302
|
* @param props.title - The title of the CircularProgress for a11y
|
|
268
303
|
* @param props.label - What is shown below the now value (default: 'Done')
|
|
269
|
-
* @
|
|
304
|
+
* @see https://cerberus.digitalu.design/react/progress-indicators
|
|
270
305
|
* @example
|
|
271
306
|
* ```tsx
|
|
272
307
|
* <CircularProgress now={24} title="Course completion" label="done" />
|
|
@@ -298,10 +333,31 @@ export { CircularProgressProps }
|
|
|
298
333
|
export { CircularProgressProps as CircularProgressProps_alias_1 }
|
|
299
334
|
|
|
300
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
|
+
*/
|
|
301
340
|
gradient?: never;
|
|
341
|
+
/**
|
|
342
|
+
* The palette to use for the tag. Not available when the onClick prop is
|
|
343
|
+
* provided.
|
|
344
|
+
*/
|
|
302
345
|
palette?: never;
|
|
346
|
+
/**
|
|
347
|
+
* The action to be performed when the tag is clicked.
|
|
348
|
+
*/
|
|
303
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
|
+
*/
|
|
304
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
|
+
*/
|
|
305
361
|
usage: 'filled';
|
|
306
362
|
};
|
|
307
363
|
export { ClickableTagProps }
|
|
@@ -325,6 +381,7 @@ export { ColorModes as ColorModes_alias_1 }
|
|
|
325
381
|
|
|
326
382
|
/**
|
|
327
383
|
* Provides a confirm modal to the app.
|
|
384
|
+
* @see https://cerberus.digitalu.design/react/confirm-modal
|
|
328
385
|
* @example
|
|
329
386
|
* ```tsx
|
|
330
387
|
* // Wrap the Provider around the root of the feature.
|
|
@@ -386,6 +443,10 @@ export declare const defaultIcons: DefinedIcons;
|
|
|
386
443
|
|
|
387
444
|
export { defaultScreenReaderInstructions }
|
|
388
445
|
|
|
446
|
+
/**
|
|
447
|
+
* This module provides a context and hook for the theme.
|
|
448
|
+
* @module Theme
|
|
449
|
+
*/
|
|
389
450
|
declare type DefaultThemes = 'cerberus' | 'acheron';
|
|
390
451
|
export { DefaultThemes }
|
|
391
452
|
export { DefaultThemes as DefaultThemes_alias_1 }
|
|
@@ -458,6 +519,16 @@ export { DropAnimationKeyframeResolver }
|
|
|
458
519
|
|
|
459
520
|
export { DropAnimationSideEffects }
|
|
460
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
|
+
*/
|
|
461
532
|
declare function Droppable(props: PropsWithChildren<DroppableProps>): JSX_2.Element;
|
|
462
533
|
export { Droppable }
|
|
463
534
|
export { Droppable as Droppable_alias_1 }
|
|
@@ -469,16 +540,26 @@ export { DroppableContainers }
|
|
|
469
540
|
export { DroppableMeasuring }
|
|
470
541
|
|
|
471
542
|
declare interface DroppableProps extends Omit<HtmlHTMLAttributes<HTMLDivElement>, 'id'>, UseDroppableArguments {
|
|
543
|
+
/**
|
|
544
|
+
* If the item has been dropped.
|
|
545
|
+
*/
|
|
472
546
|
dropped?: boolean;
|
|
473
547
|
}
|
|
474
548
|
export { DroppableProps }
|
|
475
549
|
export { DroppableProps as DroppableProps_alias_1 }
|
|
476
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
|
+
*/
|
|
477
555
|
declare function FeatureFlag(props: PropsWithChildren<FeatureFlagProps>): JSX_2.Element;
|
|
478
556
|
export { FeatureFlag }
|
|
479
557
|
export { FeatureFlag as FeatureFlag_alias_1 }
|
|
480
558
|
|
|
481
559
|
declare interface FeatureFlagProps {
|
|
560
|
+
/**
|
|
561
|
+
* The name of the feature flag to check.
|
|
562
|
+
*/
|
|
482
563
|
flag: string;
|
|
483
564
|
}
|
|
484
565
|
export { FeatureFlagProps }
|
|
@@ -492,7 +573,7 @@ export { FeatureFlagProviderProps as FeatureFlagProviderProps_alias_1 }
|
|
|
492
573
|
|
|
493
574
|
/**
|
|
494
575
|
* Provides feature flags to the application.
|
|
495
|
-
* @
|
|
576
|
+
* @see https://cerberus.digitalu.design/react/feature-flags
|
|
496
577
|
* @example
|
|
497
578
|
* ```tsx
|
|
498
579
|
* // This should be a JSON file or a server response.
|
|
@@ -526,14 +607,35 @@ declare interface FeatureFlagValue {
|
|
|
526
607
|
export { FeatureFlagValue }
|
|
527
608
|
export { FeatureFlagValue as FeatureFlagValue_alias_1 }
|
|
528
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
|
+
*/
|
|
529
614
|
declare function Field(props: PropsWithChildren<FieldContextValue>): JSX.Element;
|
|
530
615
|
export { Field }
|
|
531
616
|
export { Field as Field_alias_1 }
|
|
532
617
|
|
|
618
|
+
/**
|
|
619
|
+
* This module provides a context and hook for the field.
|
|
620
|
+
* @module Field
|
|
621
|
+
*/
|
|
533
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
|
+
*/
|
|
534
627
|
disabled?: boolean;
|
|
628
|
+
/**
|
|
629
|
+
* Whether the field is read-only.
|
|
630
|
+
*/
|
|
535
631
|
readOnly?: boolean;
|
|
632
|
+
/**
|
|
633
|
+
* Whether the field is required.
|
|
634
|
+
*/
|
|
536
635
|
required?: boolean;
|
|
636
|
+
/**
|
|
637
|
+
* Whether the field is invalid.
|
|
638
|
+
*/
|
|
537
639
|
invalid?: boolean;
|
|
538
640
|
}
|
|
539
641
|
export { FieldContextValue }
|
|
@@ -541,7 +643,7 @@ export { FieldContextValue as FieldContextValue_alias_1 }
|
|
|
541
643
|
|
|
542
644
|
/**
|
|
543
645
|
* A component that provides feedback about the field.
|
|
544
|
-
* @
|
|
646
|
+
* @see https://cerberus.digitalu.design/react/field-message
|
|
545
647
|
* @example
|
|
546
648
|
* ```tsx
|
|
547
649
|
* <Field>
|
|
@@ -557,41 +659,58 @@ declare function FieldMessage(props: FieldMessageProps): JSX_2.Element;
|
|
|
557
659
|
export { FieldMessage }
|
|
558
660
|
export { FieldMessage as FieldMessage_alias_1 }
|
|
559
661
|
|
|
662
|
+
/**
|
|
663
|
+
* This module contains the FieldMessage component.
|
|
664
|
+
* @module
|
|
665
|
+
*/
|
|
560
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
|
+
*/
|
|
561
673
|
id: string;
|
|
562
674
|
}
|
|
563
675
|
export { FieldMessageBaseProps }
|
|
564
676
|
export { FieldMessageBaseProps as FieldMessageBaseProps_alias_1 }
|
|
565
677
|
|
|
566
|
-
declare type FieldMessageProps = FieldMessageBaseProps &
|
|
678
|
+
declare type FieldMessageProps = FieldMessageBaseProps & FieldMessageVariantProps;
|
|
567
679
|
export { FieldMessageProps }
|
|
568
680
|
export { FieldMessageProps as FieldMessageProps_alias_1 }
|
|
569
681
|
|
|
570
|
-
/**
|
|
571
|
-
* This module contains the FieldMessage component.
|
|
572
|
-
* @module
|
|
573
|
-
*/
|
|
574
|
-
declare type FieldMessageRecipe = RecipeVariantProps<typeof fieldMessage>;
|
|
575
|
-
export { FieldMessageRecipe }
|
|
576
|
-
export { FieldMessageRecipe as FieldMessageRecipe_alias_1 }
|
|
577
|
-
|
|
578
682
|
declare interface FileBaseStatusProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onClick'> {
|
|
683
|
+
/**
|
|
684
|
+
* The name of the file.
|
|
685
|
+
*/
|
|
579
686
|
file: string;
|
|
580
|
-
|
|
687
|
+
/**
|
|
688
|
+
* The percentage of the file that has been processed.
|
|
689
|
+
*/
|
|
690
|
+
now: ProgressBarProps['now'];
|
|
691
|
+
/**
|
|
692
|
+
* The status of the file.
|
|
693
|
+
*/
|
|
581
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
|
+
*/
|
|
582
706
|
onClick: (status: FileStatusActions, e: MouseEvent_2<HTMLButtonElement>) => void;
|
|
583
707
|
}
|
|
584
708
|
export { FileBaseStatusProps }
|
|
585
709
|
export { FileBaseStatusProps as FileBaseStatusProps_alias_1 }
|
|
586
710
|
|
|
587
711
|
/**
|
|
588
|
-
*
|
|
589
|
-
* @
|
|
590
|
-
* file: string,
|
|
591
|
-
* now: number,
|
|
592
|
-
* status: keyof typeof fileStatus,
|
|
593
|
-
* action: (status: FileStatusActions, e: MouseEvent<HTMLButtonElement>) => void
|
|
594
|
-
* }.
|
|
712
|
+
* A component that displays the status of a file during file processing.
|
|
713
|
+
* @see https://cerberus.digitalu.design/react/file-uploader
|
|
595
714
|
* @example
|
|
596
715
|
* ```tsx
|
|
597
716
|
* <FileStatus file="file.txt" now={0} status={processStatus.TODO} action={(status, e) => console.log(status, e)} />
|
|
@@ -601,6 +720,9 @@ declare function FileStatus(props: FileStatusProps): JSX_2.Element;
|
|
|
601
720
|
export { FileStatus }
|
|
602
721
|
export { FileStatus as FileStatus_alias_1 }
|
|
603
722
|
|
|
723
|
+
/**
|
|
724
|
+
* The actions that can be performed on a file.
|
|
725
|
+
*/
|
|
604
726
|
declare type FileStatusActions = 'cancel' | 'retry' | 'delete';
|
|
605
727
|
export { FileStatusActions }
|
|
606
728
|
export { FileStatusActions as FileStatusActions_alias_1 }
|
|
@@ -609,6 +731,14 @@ export { FileStatusActions as FileStatusActions_alias_1 }
|
|
|
609
731
|
* This module contains the FileStatus component.
|
|
610
732
|
* @module
|
|
611
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
|
+
*/
|
|
612
742
|
declare type FileStatusKey = (typeof processStatus)[keyof typeof processStatus];
|
|
613
743
|
export { FileStatusKey }
|
|
614
744
|
export { FileStatusKey as FileStatusKey_alias_1 }
|
|
@@ -617,12 +747,22 @@ declare type FileStatusProps = FileBaseStatusProps & FileStatusVariantProps;
|
|
|
617
747
|
export { FileStatusProps }
|
|
618
748
|
export { FileStatusProps as FileStatusProps_alias_1 }
|
|
619
749
|
|
|
750
|
+
/**
|
|
751
|
+
* A component that allows the user to upload files.
|
|
752
|
+
* @see https://cerberus.digitalu.design/react/file-uploader
|
|
753
|
+
*/
|
|
620
754
|
declare function FileUploader(props: FileUploaderProps): JSX_2.Element;
|
|
621
755
|
export { FileUploader }
|
|
622
756
|
export { FileUploader as FileUploader_alias_1 }
|
|
623
757
|
|
|
624
758
|
declare interface FileUploaderProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
759
|
+
/**
|
|
760
|
+
* The optional heading to display in the FileUploader component.
|
|
761
|
+
*/
|
|
625
762
|
heading?: string;
|
|
763
|
+
/**
|
|
764
|
+
* The name of the file input element.
|
|
765
|
+
*/
|
|
626
766
|
name: string;
|
|
627
767
|
}
|
|
628
768
|
export { FileUploaderProps }
|
|
@@ -632,14 +772,35 @@ export { getClientRect }
|
|
|
632
772
|
|
|
633
773
|
export { getFirstCollision }
|
|
634
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
|
+
*/
|
|
635
780
|
declare function getPosition(position: Positions): GetPositionResult;
|
|
636
781
|
export { getPosition }
|
|
637
782
|
export { getPosition as getPosition_alias_1 }
|
|
638
783
|
|
|
784
|
+
/**
|
|
785
|
+
* This module contains the NavMenuList component.
|
|
786
|
+
* @module
|
|
787
|
+
*/
|
|
639
788
|
declare interface GetPositionResult {
|
|
789
|
+
/**
|
|
790
|
+
* The left position of the element.
|
|
791
|
+
*/
|
|
640
792
|
left: string;
|
|
793
|
+
/**
|
|
794
|
+
* The right position of the element.
|
|
795
|
+
*/
|
|
641
796
|
right: string;
|
|
797
|
+
/**
|
|
798
|
+
* The top position of the element.
|
|
799
|
+
*/
|
|
642
800
|
top: string;
|
|
801
|
+
/**
|
|
802
|
+
* The bottom position of the element.
|
|
803
|
+
*/
|
|
643
804
|
bottom: string;
|
|
644
805
|
}
|
|
645
806
|
|
|
@@ -647,13 +808,13 @@ export { getScrollableAncestors }
|
|
|
647
808
|
|
|
648
809
|
/**
|
|
649
810
|
* A component that allows the user to perform actions using an icon
|
|
650
|
-
* @
|
|
811
|
+
* @see https://cerberus.digitalu.design/react/icon-button
|
|
651
812
|
*/
|
|
652
813
|
declare function IconButton(props: IconButtonProps): JSX.Element;
|
|
653
814
|
export { IconButton }
|
|
654
815
|
export { IconButton as IconButton_alias_1 }
|
|
655
816
|
|
|
656
|
-
declare type IconButtonProps = IconButtonRawProps &
|
|
817
|
+
declare type IconButtonProps = IconButtonRawProps & IconButtonVariantProps;
|
|
657
818
|
export { IconButtonProps }
|
|
658
819
|
export { IconButtonProps as IconButtonProps_alias_1 }
|
|
659
820
|
|
|
@@ -662,16 +823,20 @@ export { IconButtonProps as IconButtonProps_alias_1 }
|
|
|
662
823
|
* @module
|
|
663
824
|
*/
|
|
664
825
|
declare interface IconButtonRawProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
826
|
+
/**
|
|
827
|
+
* The aria-label attribute for the icon button.
|
|
828
|
+
*/
|
|
665
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
|
+
*/
|
|
666
835
|
tooltipPosition?: Positions;
|
|
667
836
|
}
|
|
668
837
|
export { IconButtonRawProps }
|
|
669
838
|
export { IconButtonRawProps as IconButtonRawProps_alias_1 }
|
|
670
839
|
|
|
671
|
-
declare type IconButtonRecipeProps = RecipeVariantProps<typeof iconButton>;
|
|
672
|
-
export { IconButtonRecipeProps }
|
|
673
|
-
export { IconButtonRecipeProps as IconButtonRecipeProps_alias_1 }
|
|
674
|
-
|
|
675
840
|
export declare type IconType = CarbonIconType | ElementType;
|
|
676
841
|
|
|
677
842
|
/**
|
|
@@ -683,33 +848,53 @@ declare interface IndeterminateIconProps extends SVGProps<SVGSVGElement> {
|
|
|
683
848
|
}
|
|
684
849
|
|
|
685
850
|
declare type IndeterminateProgressBarProps = {
|
|
686
|
-
|
|
851
|
+
/**
|
|
852
|
+
* The state of the progress bar.
|
|
853
|
+
*/
|
|
854
|
+
indeterminate?: true;
|
|
855
|
+
/**
|
|
856
|
+
* The current value of the progress bar.
|
|
857
|
+
*/
|
|
687
858
|
now?: never;
|
|
688
859
|
};
|
|
689
860
|
export { IndeterminateProgressBarProps }
|
|
690
861
|
export { IndeterminateProgressBarProps as IndeterminateProgressBarProps_alias_1 }
|
|
691
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
|
+
*/
|
|
692
869
|
declare function Input(props: InputProps): JSX_2.Element;
|
|
693
870
|
export { Input }
|
|
694
871
|
export { Input as Input_alias_1 }
|
|
695
872
|
|
|
696
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
|
+
*/
|
|
697
877
|
describedBy?: string;
|
|
878
|
+
/**
|
|
879
|
+
* The unique identifier for the input element. Required for accessibility.
|
|
880
|
+
*/
|
|
698
881
|
id: string;
|
|
882
|
+
/**
|
|
883
|
+
* An optional icon to display at the start of the input.
|
|
884
|
+
*/
|
|
699
885
|
startIcon?: ReactNode;
|
|
886
|
+
/**
|
|
887
|
+
* An optional icon to display at the end of the input.
|
|
888
|
+
*/
|
|
700
889
|
endIcon?: ReactNode;
|
|
701
890
|
}
|
|
702
891
|
export { InputBaseProps }
|
|
703
892
|
export { InputBaseProps as InputBaseProps_alias_1 }
|
|
704
893
|
|
|
705
|
-
declare type InputProps = InputBaseProps &
|
|
894
|
+
declare type InputProps = InputBaseProps & InputVariantProps;
|
|
706
895
|
export { InputProps }
|
|
707
896
|
export { InputProps as InputProps_alias_1 }
|
|
708
897
|
|
|
709
|
-
declare type InputRecipeProps = RecipeVariantProps<typeof input>;
|
|
710
|
-
export { InputRecipeProps }
|
|
711
|
-
export { InputRecipeProps as InputRecipeProps_alias_1 }
|
|
712
|
-
|
|
713
898
|
export { KeyboardCode }
|
|
714
899
|
|
|
715
900
|
export { KeyboardCodes }
|
|
@@ -723,13 +908,14 @@ export { KeyboardSensorOptions }
|
|
|
723
908
|
export { KeyboardSensorProps }
|
|
724
909
|
|
|
725
910
|
/**
|
|
726
|
-
* A
|
|
911
|
+
* A a11y compliant label component.
|
|
727
912
|
* @definition [ARIA Forms](https://www.a11yproject.com/checklist/#forms)
|
|
728
|
-
* @
|
|
913
|
+
* @see https://cerberus.digitalu.design/react/label
|
|
729
914
|
* @example
|
|
730
915
|
* ```tsx
|
|
731
916
|
* <Field required>
|
|
732
|
-
* <Label htmlFor="
|
|
917
|
+
* <Label htmlFor="search" hidden>Search everything</Label>
|
|
918
|
+
* <Input id="search" startIcon={Search} type="text" />
|
|
733
919
|
* </Field>
|
|
734
920
|
* ```
|
|
735
921
|
*/
|
|
@@ -737,25 +923,27 @@ declare function Label(props: PropsWithChildren<LabelProps>): JSX_2.Element;
|
|
|
737
923
|
export { Label }
|
|
738
924
|
export { Label as Label_alias_1 }
|
|
739
925
|
|
|
926
|
+
/**
|
|
927
|
+
* This module contains the Label component.
|
|
928
|
+
* @module
|
|
929
|
+
*/
|
|
740
930
|
declare interface LabelBaseProps extends HTMLAttributes<HTMLLabelElement> {
|
|
931
|
+
/**
|
|
932
|
+
* The unique identifier for the input element. Required for accessibility.
|
|
933
|
+
*/
|
|
741
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
|
+
*/
|
|
742
938
|
hidden?: boolean;
|
|
743
939
|
}
|
|
744
940
|
export { LabelBaseProps }
|
|
745
941
|
export { LabelBaseProps as LabelBaseProps_alias_1 }
|
|
746
942
|
|
|
747
|
-
declare type LabelProps = LabelBaseProps &
|
|
943
|
+
declare type LabelProps = LabelBaseProps & LabelVariantProps;
|
|
748
944
|
export { LabelProps }
|
|
749
945
|
export { LabelProps as LabelProps_alias_1 }
|
|
750
946
|
|
|
751
|
-
/**
|
|
752
|
-
* This module contains the Label component.
|
|
753
|
-
* @module
|
|
754
|
-
*/
|
|
755
|
-
declare type LabelRecipeProps = RecipeVariantProps<typeof label>;
|
|
756
|
-
export { LabelRecipeProps }
|
|
757
|
-
export { LabelRecipeProps as LabelRecipeProps_alias_1 }
|
|
758
|
-
|
|
759
947
|
export { MeasuringConfiguration }
|
|
760
948
|
|
|
761
949
|
export { MeasuringFrequency }
|
|
@@ -764,14 +952,19 @@ export { MeasuringStrategy }
|
|
|
764
952
|
|
|
765
953
|
/**
|
|
766
954
|
* The Modal component is the root element for a customizable modal.
|
|
955
|
+
* @see https://cerberus.digitalu.design/react/modal
|
|
767
956
|
* @example
|
|
768
957
|
* ```tsx
|
|
769
958
|
* const { modalRef } = useModal()
|
|
770
959
|
*
|
|
771
960
|
* <Modal ref={modalRef}>
|
|
772
|
-
* <
|
|
773
|
-
* <
|
|
774
|
-
*
|
|
961
|
+
* <Avatar icon={SomeIcon} />
|
|
962
|
+
* <ModalHeader>
|
|
963
|
+
* <ModalHeading>Modal Heading</ModalHeading>
|
|
964
|
+
* <ModalDescription>Modal description</ModalDescription>
|
|
965
|
+
* </ModalHeader>
|
|
966
|
+
*
|
|
967
|
+
* {props.children}
|
|
775
968
|
* </Modal>
|
|
776
969
|
* ```
|
|
777
970
|
*/
|
|
@@ -781,6 +974,7 @@ export { Modal as Modal_alias_1 }
|
|
|
781
974
|
|
|
782
975
|
/**
|
|
783
976
|
* The ModalDescription component is a heading element for a customizable modal.
|
|
977
|
+
* @see https://cerberus.digitalu.design/react/modal
|
|
784
978
|
* @example
|
|
785
979
|
* ```tsx
|
|
786
980
|
* <Modal>
|
|
@@ -802,6 +996,7 @@ export { ModalDescriptionProps as ModalDescriptionProps_alias_1 }
|
|
|
802
996
|
|
|
803
997
|
/**
|
|
804
998
|
* The ModalHeader component is a header element for a customizable modal.
|
|
999
|
+
* @see https://cerberus.digitalu.design/react/modal
|
|
805
1000
|
* @example
|
|
806
1001
|
* ```tsx
|
|
807
1002
|
* <Modal>
|
|
@@ -825,6 +1020,7 @@ export { ModalHeaderProps as ModalHeaderProps_alias_1 }
|
|
|
825
1020
|
|
|
826
1021
|
/**
|
|
827
1022
|
* The ModalHeading component is a heading element for a customizable modal.
|
|
1023
|
+
* @see https://cerberus.digitalu.design/react/modal
|
|
828
1024
|
* @example
|
|
829
1025
|
* ```tsx
|
|
830
1026
|
* <Modal>
|
|
@@ -864,24 +1060,61 @@ export { MouseSensor }
|
|
|
864
1060
|
|
|
865
1061
|
export { MouseSensorOptions }
|
|
866
1062
|
|
|
1063
|
+
/**
|
|
1064
|
+
* Provides the nav menu state for all the NavMenu family components.
|
|
1065
|
+
* @see https://cerberus.digitalu.design/react/nav-menu
|
|
1066
|
+
*/
|
|
867
1067
|
declare function NavMenu(props: PropsWithChildren): JSX.Element;
|
|
868
1068
|
export { NavMenu }
|
|
869
1069
|
export { NavMenu as NavMenu_alias_1 }
|
|
870
1070
|
|
|
871
1071
|
declare interface NavMenuContextValue {
|
|
1072
|
+
/**
|
|
1073
|
+
* The ref for the trigger button.
|
|
1074
|
+
*/
|
|
872
1075
|
triggerRef: NavTriggerRef | null;
|
|
1076
|
+
/**
|
|
1077
|
+
* The ref for the menu.
|
|
1078
|
+
*/
|
|
873
1079
|
menuRef: NavMenuRef | null;
|
|
1080
|
+
/**
|
|
1081
|
+
* Whether the menu is expanded.
|
|
1082
|
+
*/
|
|
874
1083
|
expanded: boolean;
|
|
1084
|
+
/**
|
|
1085
|
+
* Called when the menu button is clicked.
|
|
1086
|
+
*/
|
|
875
1087
|
onToggle: () => void;
|
|
876
1088
|
}
|
|
877
1089
|
export { NavMenuContextValue }
|
|
878
1090
|
export { NavMenuContextValue as NavMenuContextValue_alias_1 }
|
|
879
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
|
+
*/
|
|
880
1105
|
declare function NavMenuLink(props: NavMenuLinkProps): JSX.Element;
|
|
881
1106
|
export { NavMenuLink }
|
|
882
1107
|
export { NavMenuLink as NavMenuLink_alias_1 }
|
|
883
1108
|
|
|
1109
|
+
/**
|
|
1110
|
+
* This module contains the NavMenuLink component.
|
|
1111
|
+
* @module
|
|
1112
|
+
*/
|
|
884
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
|
+
*/
|
|
885
1118
|
as?: ElementType;
|
|
886
1119
|
}
|
|
887
1120
|
export { NavMenuLinkProps }
|
|
@@ -890,14 +1123,16 @@ export { NavMenuLinkProps as NavMenuLinkProps_alias_1 }
|
|
|
890
1123
|
/**
|
|
891
1124
|
* A component that allows the user to display a menu of navigation links.
|
|
892
1125
|
* @definition [Disclosure Nav](https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/examples/disclosure-navigation/)
|
|
893
|
-
* @
|
|
1126
|
+
* @see https://cerberus.digitalu.design/react/nav-menu
|
|
894
1127
|
*
|
|
895
1128
|
* @example
|
|
896
1129
|
* ```tsx
|
|
897
|
-
* <
|
|
898
|
-
* <
|
|
899
|
-
*
|
|
900
|
-
* </
|
|
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>
|
|
901
1136
|
* ```
|
|
902
1137
|
**/
|
|
903
1138
|
declare function NavMenuList(props: NavMenuListProps): JSX.Element;
|
|
@@ -905,7 +1140,15 @@ export { NavMenuList }
|
|
|
905
1140
|
export { NavMenuList as NavMenuList_alias_1 }
|
|
906
1141
|
|
|
907
1142
|
declare interface NavMenuListProps extends HTMLAttributes<HTMLUListElement> {
|
|
1143
|
+
/**
|
|
1144
|
+
* The unique identifier for the NavMenuList. Required for accessibility.
|
|
1145
|
+
*/
|
|
908
1146
|
id: string;
|
|
1147
|
+
/**
|
|
1148
|
+
* The position of the NavMenuList.
|
|
1149
|
+
* @type 'top' | 'right' | 'bottom' | 'left'
|
|
1150
|
+
* @default 'bottom'
|
|
1151
|
+
*/
|
|
909
1152
|
position?: Positions;
|
|
910
1153
|
}
|
|
911
1154
|
export { NavMenuListProps }
|
|
@@ -931,7 +1174,19 @@ declare function NavMenuTrigger(props: NavMenuTriggerProps): JSX.Element;
|
|
|
931
1174
|
export { NavMenuTrigger }
|
|
932
1175
|
export { NavMenuTrigger as NavMenuTrigger_alias_1 }
|
|
933
1176
|
|
|
1177
|
+
/**
|
|
1178
|
+
* This module contains the NavMenuTrigger component.
|
|
1179
|
+
* @module
|
|
1180
|
+
*/
|
|
934
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
|
+
*/
|
|
935
1190
|
as?: ElementType;
|
|
936
1191
|
}
|
|
937
1192
|
export { NavMenuTriggerProps }
|
|
@@ -949,28 +1204,39 @@ declare interface NavTriggerAriaValues {
|
|
|
949
1204
|
export { NavTriggerAriaValues }
|
|
950
1205
|
export { NavTriggerAriaValues as NavTriggerAriaValues_alias_1 }
|
|
951
1206
|
|
|
1207
|
+
/**
|
|
1208
|
+
* This module provides a context and hook for the nav menu.
|
|
1209
|
+
* @module NavMenu
|
|
1210
|
+
*/
|
|
952
1211
|
declare type NavTriggerRef = RefObject<HTMLButtonElement>;
|
|
953
1212
|
export { NavTriggerRef }
|
|
954
1213
|
export { NavTriggerRef as NavTriggerRef_alias_1 }
|
|
955
1214
|
|
|
956
1215
|
declare type NonIndeterminateProgressBarProps = {
|
|
1216
|
+
/**
|
|
1217
|
+
* The state of the progress bar.
|
|
1218
|
+
*/
|
|
957
1219
|
indeterminate?: never;
|
|
1220
|
+
/**
|
|
1221
|
+
* The current value of the progress bar.
|
|
1222
|
+
*/
|
|
958
1223
|
now: number;
|
|
959
1224
|
};
|
|
960
1225
|
export { NonIndeterminateProgressBarProps }
|
|
961
1226
|
export { NonIndeterminateProgressBarProps as NonIndeterminateProgressBarProps_alias_1 }
|
|
962
1227
|
|
|
963
1228
|
/**
|
|
964
|
-
*
|
|
965
|
-
*
|
|
966
|
-
* @
|
|
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
|
|
967
1233
|
* @example
|
|
968
1234
|
* ```tsx
|
|
969
1235
|
* <Notification id="info:1" open>
|
|
970
1236
|
* <NotificationHeading>Info Notification</NotificationHeading>
|
|
971
|
-
*
|
|
972
|
-
*
|
|
973
|
-
*
|
|
1237
|
+
* <NotificationDescription>
|
|
1238
|
+
* This is a description with a <a href="#">link</a> in the message.
|
|
1239
|
+
* </NotificationDescription>
|
|
974
1240
|
* </Notification>
|
|
975
1241
|
* ```
|
|
976
1242
|
*/
|
|
@@ -979,7 +1245,13 @@ export { Notification_2 as Notification }
|
|
|
979
1245
|
export { Notification_2 as Notification_alias_1 }
|
|
980
1246
|
|
|
981
1247
|
declare interface NotificationBaseProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, 'onClose'> {
|
|
1248
|
+
/**
|
|
1249
|
+
* The unique id of the notification. Required for the onClose callback.
|
|
1250
|
+
*/
|
|
982
1251
|
id: string;
|
|
1252
|
+
/**
|
|
1253
|
+
* Called when the close button is clicked.
|
|
1254
|
+
*/
|
|
983
1255
|
onClose?: (e: MouseEvent_2<HTMLButtonElement>) => void;
|
|
984
1256
|
}
|
|
985
1257
|
export { NotificationBaseProps }
|
|
@@ -987,6 +1259,7 @@ export { NotificationBaseProps as NotificationBaseProps_alias_1 }
|
|
|
987
1259
|
|
|
988
1260
|
/**
|
|
989
1261
|
* Provides a notification center to the app.
|
|
1262
|
+
* @see https://cerberus.digitalu.design/react/notification
|
|
990
1263
|
* @example
|
|
991
1264
|
* ```tsx
|
|
992
1265
|
* // Wrap the Provider around the root of the feature.
|
|
@@ -1011,7 +1284,9 @@ export { NotificationCenter }
|
|
|
1011
1284
|
export { NotificationCenter as NotificationCenter_alias_1 }
|
|
1012
1285
|
|
|
1013
1286
|
/**
|
|
1014
|
-
*
|
|
1287
|
+
* Used to render the description of a notification.
|
|
1288
|
+
* @see https://cerberus.digitalu.design/react/notification
|
|
1289
|
+
* @memberof module:NotificationCenter
|
|
1015
1290
|
* @param props - The anything a HTMLParagraphElement can accept.
|
|
1016
1291
|
*/
|
|
1017
1292
|
declare function NotificationDescription(props: NotificationDescriptionProps): JSX_2.Element;
|
|
@@ -1023,7 +1298,9 @@ export { NotificationDescriptionProps }
|
|
|
1023
1298
|
export { NotificationDescriptionProps as NotificationDescriptionProps_alias_1 }
|
|
1024
1299
|
|
|
1025
1300
|
/**
|
|
1026
|
-
*
|
|
1301
|
+
* Used to render the heading of a notification.
|
|
1302
|
+
* @see https://cerberus.digitalu.design/react/notification
|
|
1303
|
+
* @memberof module:NotificationCenter
|
|
1027
1304
|
* @param props - The anything a HTMLParagraphElement can accept.
|
|
1028
1305
|
*/
|
|
1029
1306
|
declare function NotificationHeading(props: NotificationHeadingProps): JSX_2.Element;
|
|
@@ -1054,10 +1331,26 @@ export { NotificationsValue as NotificationsValue_alias_1 }
|
|
|
1054
1331
|
* @module
|
|
1055
1332
|
*/
|
|
1056
1333
|
declare interface NotifyOptions {
|
|
1334
|
+
/**
|
|
1335
|
+
* The palette of the notification.
|
|
1336
|
+
* @default 'info'
|
|
1337
|
+
*/
|
|
1057
1338
|
palette: 'info' | 'success' | 'warning' | 'danger';
|
|
1339
|
+
/**
|
|
1340
|
+
* The heading of the notification.
|
|
1341
|
+
*/
|
|
1058
1342
|
heading: string;
|
|
1343
|
+
/**
|
|
1344
|
+
* The unique id of the notification.
|
|
1345
|
+
*/
|
|
1059
1346
|
id?: string;
|
|
1347
|
+
/**
|
|
1348
|
+
* The description of the notification.
|
|
1349
|
+
*/
|
|
1060
1350
|
description?: ReactNode;
|
|
1351
|
+
/**
|
|
1352
|
+
* The action to take when the notification is closed
|
|
1353
|
+
*/
|
|
1061
1354
|
onClose?: () => void;
|
|
1062
1355
|
}
|
|
1063
1356
|
export { NotifyOptions }
|
|
@@ -1095,8 +1388,8 @@ export { pointerWithin }
|
|
|
1095
1388
|
|
|
1096
1389
|
/**
|
|
1097
1390
|
* The Portal component is used to render children into a DOM node that exists outside the DOM hierarchy of the parent component.
|
|
1098
|
-
* @
|
|
1099
|
-
* @
|
|
1391
|
+
* @see https://cerberus.digitalu.design/react/portal
|
|
1392
|
+
* @definition [React Portal Docs](https://react.dev/reference/react-dom/createPortal)
|
|
1100
1393
|
*/
|
|
1101
1394
|
declare function Portal(props: PropsWithChildren<PortalProps>): ReactPortal;
|
|
1102
1395
|
export { Portal }
|
|
@@ -1107,7 +1400,14 @@ export { Portal as Portal_alias_1 }
|
|
|
1107
1400
|
* @module
|
|
1108
1401
|
*/
|
|
1109
1402
|
declare interface PortalProps {
|
|
1403
|
+
/**
|
|
1404
|
+
* The root container to render the children into.
|
|
1405
|
+
* @default document.body
|
|
1406
|
+
*/
|
|
1110
1407
|
container?: Element | DocumentFragment;
|
|
1408
|
+
/**
|
|
1409
|
+
* An optional key to use for the Portal component.
|
|
1410
|
+
*/
|
|
1111
1411
|
key?: null | string;
|
|
1112
1412
|
}
|
|
1113
1413
|
export { PortalProps }
|
|
@@ -1136,9 +1436,7 @@ export { processStatus as processStatus_alias_1 }
|
|
|
1136
1436
|
|
|
1137
1437
|
/**
|
|
1138
1438
|
* The ProgressBar component is used to display the progress of a task.
|
|
1139
|
-
* @
|
|
1140
|
-
* @param props.now - The current value of the progress bar
|
|
1141
|
-
* @param props.indeterminate - Whether the progress bar is indeterminate
|
|
1439
|
+
* @see https://cerberus.digitalu.design/react/progress-indicators
|
|
1142
1440
|
* @example
|
|
1143
1441
|
* ```tsx
|
|
1144
1442
|
* <ProgressBar value={75} />
|
|
@@ -1163,6 +1461,7 @@ export { ProgressBarProps as ProgressBarProps_alias_1 }
|
|
|
1163
1461
|
|
|
1164
1462
|
/**
|
|
1165
1463
|
* Provides a prompt modal to the app.
|
|
1464
|
+
* @see https://cerberus.digitalu.design/react/prompt-modal
|
|
1166
1465
|
* @example
|
|
1167
1466
|
* ```tsx
|
|
1168
1467
|
* // Wrap the Provider around the root of the feature.
|
|
@@ -1197,6 +1496,21 @@ export { PromptModalProviderProps }
|
|
|
1197
1496
|
export { PromptModalProviderProps as PromptModalProviderProps_alias_1 }
|
|
1198
1497
|
|
|
1199
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
|
+
*/
|
|
1200
1514
|
show: (options: ShowPromptModalOptions) => Promise<string>;
|
|
1201
1515
|
}
|
|
1202
1516
|
export { PromptModalValue }
|
|
@@ -1206,11 +1520,35 @@ declare type PromptShowResult = ((value: string | PromiseLike<string>) => void)
|
|
|
1206
1520
|
export { PromptShowResult }
|
|
1207
1521
|
export { PromptShowResult as PromptShowResult_alias_1 }
|
|
1208
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
|
+
*/
|
|
1209
1544
|
declare function Radio(props: PropsWithChildren<RadioProps>): JSX_2.Element;
|
|
1210
1545
|
export { Radio }
|
|
1211
1546
|
export { Radio as Radio_alias_1 }
|
|
1212
1547
|
|
|
1213
1548
|
declare interface RadioBaseProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
1549
|
+
/**
|
|
1550
|
+
* A unique identifier for the radio button. Required for accessibility.
|
|
1551
|
+
*/
|
|
1214
1552
|
id: string;
|
|
1215
1553
|
}
|
|
1216
1554
|
export { RadioBaseProps }
|
|
@@ -1220,7 +1558,11 @@ declare type RadioProps = RadioBaseProps & RadioRecipe;
|
|
|
1220
1558
|
export { RadioProps }
|
|
1221
1559
|
export { RadioProps as RadioProps_alias_1 }
|
|
1222
1560
|
|
|
1223
|
-
|
|
1561
|
+
/**
|
|
1562
|
+
* This module contains the Radio component.
|
|
1563
|
+
* @module
|
|
1564
|
+
*/
|
|
1565
|
+
declare type RadioRecipe = RecipeVariantProps<typeof radio>;
|
|
1224
1566
|
export { RadioRecipe }
|
|
1225
1567
|
export { RadioRecipe as RadioRecipe_alias_1 }
|
|
1226
1568
|
|
|
@@ -1229,16 +1571,19 @@ export { rectIntersection }
|
|
|
1229
1571
|
export { ScreenReaderInstructions }
|
|
1230
1572
|
|
|
1231
1573
|
/**
|
|
1232
|
-
*
|
|
1233
|
-
*
|
|
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
|
|
1234
1577
|
* @example
|
|
1235
1578
|
* ```tsx
|
|
1236
|
-
* <
|
|
1237
|
-
*
|
|
1238
|
-
*
|
|
1239
|
-
*
|
|
1240
|
-
*
|
|
1241
|
-
* </
|
|
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>
|
|
1242
1587
|
* ```
|
|
1243
1588
|
*/
|
|
1244
1589
|
declare function Select(props: SelectProps): JSX_2.Element;
|
|
@@ -1250,7 +1595,13 @@ export { Select as Select_alias_1 }
|
|
|
1250
1595
|
* @module
|
|
1251
1596
|
*/
|
|
1252
1597
|
declare type SelectProps = Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size'> & SelectVariantProps & {
|
|
1598
|
+
/**
|
|
1599
|
+
* The unique id of the select element. Required for accessibility.
|
|
1600
|
+
*/
|
|
1253
1601
|
id: string;
|
|
1602
|
+
/**
|
|
1603
|
+
* The id of the FieldMessage that describes the select element.
|
|
1604
|
+
*/
|
|
1254
1605
|
describedBy?: string;
|
|
1255
1606
|
};
|
|
1256
1607
|
export { SelectProps }
|
|
@@ -1279,21 +1630,30 @@ export { Sensors }
|
|
|
1279
1630
|
* @module
|
|
1280
1631
|
*/
|
|
1281
1632
|
declare type SharedAvatarProps = {
|
|
1633
|
+
/**
|
|
1634
|
+
* An optional icon to show when no src or ariaLabel is provided.
|
|
1635
|
+
*/
|
|
1282
1636
|
icon?: ReactNode;
|
|
1637
|
+
/**
|
|
1638
|
+
* The size of the avatar.
|
|
1639
|
+
*/
|
|
1283
1640
|
width?: number;
|
|
1641
|
+
/**
|
|
1642
|
+
* The size of the avatar.
|
|
1643
|
+
*/
|
|
1284
1644
|
height?: number;
|
|
1285
1645
|
};
|
|
1286
1646
|
export { SharedAvatarProps }
|
|
1287
1647
|
export { SharedAvatarProps as SharedAvatarProps_alias_1 }
|
|
1288
1648
|
|
|
1289
1649
|
/**
|
|
1290
|
-
* Conditionally render
|
|
1291
|
-
*
|
|
1292
|
-
* @
|
|
1650
|
+
* Conditionally render a memoized version of the children or optional fallback
|
|
1651
|
+
* content.
|
|
1652
|
+
* @see https://cerberus.digitalu.design/react/show
|
|
1293
1653
|
* @example
|
|
1294
1654
|
* ```tsx
|
|
1295
|
-
* <Show when={
|
|
1296
|
-
*
|
|
1655
|
+
* <Show when={isLoggedIn} fallback={<Navigate to="/login" />}>
|
|
1656
|
+
* <Dashboard />
|
|
1297
1657
|
* </Show>
|
|
1298
1658
|
*/
|
|
1299
1659
|
declare function Show(props: PropsWithChildren<ShowProps>): ReactNode;
|
|
@@ -1305,10 +1665,26 @@ export { Show as Show_alias_1 }
|
|
|
1305
1665
|
* @module
|
|
1306
1666
|
*/
|
|
1307
1667
|
declare interface ShowConfirmModalOptions {
|
|
1668
|
+
/**
|
|
1669
|
+
* The kind of confirm modal to show.
|
|
1670
|
+
* @default 'non-destructive'
|
|
1671
|
+
*/
|
|
1308
1672
|
kind?: 'destructive' | 'non-destructive';
|
|
1673
|
+
/**
|
|
1674
|
+
* The heading of the confirm modal.
|
|
1675
|
+
*/
|
|
1309
1676
|
heading: string;
|
|
1677
|
+
/**
|
|
1678
|
+
* The description of the confirm modal.
|
|
1679
|
+
*/
|
|
1310
1680
|
description?: string;
|
|
1681
|
+
/**
|
|
1682
|
+
* The text for the action button.
|
|
1683
|
+
*/
|
|
1311
1684
|
actionText: string;
|
|
1685
|
+
/**
|
|
1686
|
+
* The text for the cancel button.
|
|
1687
|
+
*/
|
|
1312
1688
|
cancelText: string;
|
|
1313
1689
|
}
|
|
1314
1690
|
export { ShowConfirmModalOptions }
|
|
@@ -1316,21 +1692,50 @@ export { ShowConfirmModalOptions as ShowConfirmModalOptions_alias_1 }
|
|
|
1316
1692
|
|
|
1317
1693
|
/**
|
|
1318
1694
|
* This module provides a context and hook for the prompt modal.
|
|
1319
|
-
* @module
|
|
1695
|
+
* @module PromptModal
|
|
1320
1696
|
*/
|
|
1321
1697
|
declare interface ShowPromptModalOptions {
|
|
1698
|
+
/**
|
|
1699
|
+
* The kind of prompt modal to show.
|
|
1700
|
+
* @default 'non-destructive'
|
|
1701
|
+
*/
|
|
1322
1702
|
kind?: 'destructive' | 'non-destructive';
|
|
1703
|
+
/**
|
|
1704
|
+
* The heading of the prompt modal.
|
|
1705
|
+
*/
|
|
1323
1706
|
heading: string;
|
|
1707
|
+
/**
|
|
1708
|
+
* The description of the prompt modal.
|
|
1709
|
+
*/
|
|
1324
1710
|
description?: string;
|
|
1711
|
+
/**
|
|
1712
|
+
* The key to confirm the action.
|
|
1713
|
+
*/
|
|
1325
1714
|
key: string;
|
|
1715
|
+
/**
|
|
1716
|
+
* The text for the action button.
|
|
1717
|
+
*/
|
|
1326
1718
|
actionText: string;
|
|
1719
|
+
/**
|
|
1720
|
+
* The text for the cancel button.
|
|
1721
|
+
*/
|
|
1327
1722
|
cancelText: string;
|
|
1328
1723
|
}
|
|
1329
1724
|
export { ShowPromptModalOptions }
|
|
1330
1725
|
export { ShowPromptModalOptions as ShowPromptModalOptions_alias_1 }
|
|
1331
1726
|
|
|
1727
|
+
/**
|
|
1728
|
+
* This module contains the Show component.
|
|
1729
|
+
* @module
|
|
1730
|
+
*/
|
|
1332
1731
|
declare interface ShowProps {
|
|
1732
|
+
/**
|
|
1733
|
+
* The condition to render memoized children or the fallback content.
|
|
1734
|
+
*/
|
|
1333
1735
|
when: boolean | null | undefined;
|
|
1736
|
+
/**
|
|
1737
|
+
* The children to render when the condition is false.
|
|
1738
|
+
*/
|
|
1334
1739
|
fallback?: ReactNode;
|
|
1335
1740
|
}
|
|
1336
1741
|
export { ShowProps }
|
|
@@ -1341,13 +1746,17 @@ export { ShowResult }
|
|
|
1341
1746
|
export { ShowResult as ShowResult_alias_1 }
|
|
1342
1747
|
|
|
1343
1748
|
/**
|
|
1344
|
-
* The Spinner component is used to display a loading indicator.
|
|
1345
|
-
*
|
|
1346
|
-
* @
|
|
1347
|
-
* @description [Spinner Docs](https://cerberus.digitalu.design/react/loading-states/)
|
|
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/
|
|
1348
1752
|
* @example
|
|
1349
1753
|
* ```tsx
|
|
1350
|
-
* <
|
|
1754
|
+
* <Button>
|
|
1755
|
+
* <Show when={loading} fallback={<>Save</>}>
|
|
1756
|
+
* Saving
|
|
1757
|
+
* <Spinner size={24} />
|
|
1758
|
+
* </Show>
|
|
1759
|
+
* </Button>
|
|
1351
1760
|
* ```
|
|
1352
1761
|
*/
|
|
1353
1762
|
declare function Spinner(props: SpinnerProps): JSX_2.Element;
|
|
@@ -1359,6 +1768,9 @@ export { Spinner as Spinner_alias_1 }
|
|
|
1359
1768
|
* @module
|
|
1360
1769
|
*/
|
|
1361
1770
|
declare type SpinnerProps = SVGProps<SVGSVGElement> & {
|
|
1771
|
+
/**
|
|
1772
|
+
* The size of the spinner
|
|
1773
|
+
*/
|
|
1362
1774
|
size?: number | string;
|
|
1363
1775
|
};
|
|
1364
1776
|
export { SpinnerProps }
|
|
@@ -1369,6 +1781,10 @@ export { SpinnerProps as SpinnerProps_alias_1 }
|
|
|
1369
1781
|
* @module
|
|
1370
1782
|
*/
|
|
1371
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
|
+
*/
|
|
1372
1788
|
onClick?: never;
|
|
1373
1789
|
};
|
|
1374
1790
|
export { StaticTagProps }
|
|
@@ -1377,13 +1793,16 @@ export { StaticTagProps as StaticTagProps_alias_1 }
|
|
|
1377
1793
|
/**
|
|
1378
1794
|
* The Tab component provides a tab element to be used in a TabList.
|
|
1379
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)
|
|
1380
|
-
* @
|
|
1381
|
-
* @
|
|
1796
|
+
* @see https://cerberus.digitalu.design/react/tabs
|
|
1797
|
+
* @memberof module:Tabs
|
|
1382
1798
|
* @example
|
|
1383
1799
|
* ```tsx
|
|
1384
|
-
* <
|
|
1385
|
-
*
|
|
1386
|
-
* </Tab>
|
|
1800
|
+
* <Tabs>
|
|
1801
|
+
* <TabList description="Profile settings">
|
|
1802
|
+
* <Tab value="overview">Overview</Tab>
|
|
1803
|
+
* </TabList>
|
|
1804
|
+
* <TabPanel tab="overview">...</TabPanel>
|
|
1805
|
+
* </Tabs>
|
|
1387
1806
|
* ```
|
|
1388
1807
|
*/
|
|
1389
1808
|
declare function Tab(props: TabProps): JSX_2.Element;
|
|
@@ -1391,9 +1810,9 @@ export { Tab }
|
|
|
1391
1810
|
export { Tab as Tab_alias_1 }
|
|
1392
1811
|
|
|
1393
1812
|
/**
|
|
1394
|
-
*
|
|
1395
|
-
* @definition [Table
|
|
1396
|
-
* @
|
|
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.
|
|
1397
1816
|
* @example
|
|
1398
1817
|
* ```tsx
|
|
1399
1818
|
* <Table caption="Basic Table">
|
|
@@ -1410,6 +1829,9 @@ export { Table as Table_alias_1 }
|
|
|
1410
1829
|
* @module
|
|
1411
1830
|
*/
|
|
1412
1831
|
declare interface TableProps extends TableHTMLAttributes<HTMLTableElement> {
|
|
1832
|
+
/**
|
|
1833
|
+
* An easy to understand description of the table. Required for accessibility.
|
|
1834
|
+
*/
|
|
1413
1835
|
caption: string;
|
|
1414
1836
|
}
|
|
1415
1837
|
export { TableProps }
|
|
@@ -1417,7 +1839,8 @@ export { TableProps as TableProps_alias_1 }
|
|
|
1417
1839
|
|
|
1418
1840
|
/**
|
|
1419
1841
|
* The TabList component provides a container for tab elements.
|
|
1420
|
-
* @
|
|
1842
|
+
* @see https://cerberus.digitalu.design/react/tabs
|
|
1843
|
+
* @memberof module:Tabs
|
|
1421
1844
|
* @example
|
|
1422
1845
|
* ```tsx
|
|
1423
1846
|
* <TabList description="Button details">
|
|
@@ -1435,14 +1858,19 @@ export { TabList as TabList_alias_1 }
|
|
|
1435
1858
|
* @module
|
|
1436
1859
|
*/
|
|
1437
1860
|
declare interface TabListProps extends HTMLAttributes<HTMLDivElement> {
|
|
1861
|
+
/**
|
|
1862
|
+
* A description of what the tab list contains. Required for accessibility.
|
|
1863
|
+
*/
|
|
1438
1864
|
description: string;
|
|
1439
1865
|
}
|
|
1440
1866
|
export { TabListProps }
|
|
1441
1867
|
export { TabListProps as TabListProps_alias_1 }
|
|
1442
1868
|
|
|
1443
1869
|
/**
|
|
1444
|
-
* The TabPanel component provides a panel element to be used in a Tabs
|
|
1445
|
-
*
|
|
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
|
|
1446
1874
|
* @example
|
|
1447
1875
|
* ```tsx
|
|
1448
1876
|
* <TabPanel tab="overview">
|
|
@@ -1459,6 +1887,9 @@ export { TabPanel as TabPanel_alias_1 }
|
|
|
1459
1887
|
* @module
|
|
1460
1888
|
*/
|
|
1461
1889
|
declare interface TabPanelProps extends HTMLAttributes<HTMLDivElement> {
|
|
1890
|
+
/**
|
|
1891
|
+
* The unique value of the Tab that is associated with the TabPanel.
|
|
1892
|
+
*/
|
|
1462
1893
|
tab: string;
|
|
1463
1894
|
}
|
|
1464
1895
|
export { TabPanelProps }
|
|
@@ -1469,6 +1900,10 @@ export { TabPanelProps as TabPanelProps_alias_1 }
|
|
|
1469
1900
|
* @module
|
|
1470
1901
|
*/
|
|
1471
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
|
+
*/
|
|
1472
1907
|
value: string;
|
|
1473
1908
|
}
|
|
1474
1909
|
export { TabProps }
|
|
@@ -1476,9 +1911,7 @@ export { TabProps as TabProps_alias_1 }
|
|
|
1476
1911
|
|
|
1477
1912
|
/**
|
|
1478
1913
|
* The Tabs component provides a context to manage tab state.
|
|
1479
|
-
* @
|
|
1480
|
-
* @param active - the default active tab id,
|
|
1481
|
-
* @param cache - whether to cache the active tab state in local storage
|
|
1914
|
+
* @see https://cerberus.digitalu.design/react/tabs
|
|
1482
1915
|
* @example
|
|
1483
1916
|
* ```tsx
|
|
1484
1917
|
* <Tabs cache>
|
|
@@ -1503,21 +1936,46 @@ export { TabsContext as TabsContext_alias_1 }
|
|
|
1503
1936
|
|
|
1504
1937
|
/**
|
|
1505
1938
|
* This module provides a Tabs component and a hook to access its context.
|
|
1506
|
-
* @module
|
|
1939
|
+
* @module Tabs
|
|
1507
1940
|
*/
|
|
1508
1941
|
declare interface TabsContextValue {
|
|
1942
|
+
/**
|
|
1943
|
+
* The ref for the tabs.
|
|
1944
|
+
*/
|
|
1509
1945
|
tabs: MutableRefObject<HTMLButtonElement[]>;
|
|
1946
|
+
/**
|
|
1947
|
+
* The id of the tabs component.
|
|
1948
|
+
*/
|
|
1510
1949
|
id: string;
|
|
1950
|
+
/**
|
|
1951
|
+
* The active tab id.
|
|
1952
|
+
*/
|
|
1511
1953
|
active: string;
|
|
1954
|
+
/**
|
|
1955
|
+
* The styles for the tabs.
|
|
1956
|
+
*/
|
|
1512
1957
|
styles: Pretty<Record<'tabList' | 'tab' | 'tabPanel', string>>;
|
|
1958
|
+
/**
|
|
1959
|
+
* Called when the active tab is updated.
|
|
1960
|
+
*/
|
|
1513
1961
|
onTabUpdate: (active: string) => void;
|
|
1514
1962
|
}
|
|
1515
1963
|
export { TabsContextValue }
|
|
1516
1964
|
export { TabsContextValue as TabsContextValue_alias_1 }
|
|
1517
1965
|
|
|
1518
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
|
+
*/
|
|
1519
1971
|
id?: string;
|
|
1972
|
+
/**
|
|
1973
|
+
* The default active tab id.
|
|
1974
|
+
*/
|
|
1520
1975
|
active?: string;
|
|
1976
|
+
/**
|
|
1977
|
+
* Whether to cache the active tab state in local storage.
|
|
1978
|
+
*/
|
|
1521
1979
|
cache?: boolean;
|
|
1522
1980
|
}
|
|
1523
1981
|
export { TabsProps }
|
|
@@ -1525,7 +1983,7 @@ export { TabsProps as TabsProps_alias_1 }
|
|
|
1525
1983
|
|
|
1526
1984
|
/**
|
|
1527
1985
|
* The Tag component is used to display a meta descriptions.
|
|
1528
|
-
* @
|
|
1986
|
+
* @see https://cerberus.digitalu.design/react/tag
|
|
1529
1987
|
* @example
|
|
1530
1988
|
* ```tsx
|
|
1531
1989
|
* <Tag>Tag</Tag>
|
|
@@ -1541,7 +1999,8 @@ export { TagProps as TagProps_alias_1 }
|
|
|
1541
1999
|
|
|
1542
2000
|
/**
|
|
1543
2001
|
* The TBody component is used to render a table body.
|
|
1544
|
-
* @
|
|
2002
|
+
* @see https://cerberus.digitalu.design/react/table
|
|
2003
|
+
* @memberof module:Table
|
|
1545
2004
|
* @example
|
|
1546
2005
|
* ```tsx
|
|
1547
2006
|
* <TBody>
|
|
@@ -1553,6 +2012,10 @@ declare function Tbody(props: TbodyProps): JSX_2.Element;
|
|
|
1553
2012
|
export { Tbody }
|
|
1554
2013
|
export { Tbody as Tbody_alias_1 }
|
|
1555
2014
|
|
|
2015
|
+
/**
|
|
2016
|
+
* This module provides a TBody component.
|
|
2017
|
+
* @module
|
|
2018
|
+
*/
|
|
1556
2019
|
declare type TbodyBaseProps = TableHTMLAttributes<HTMLTableSectionElement>;
|
|
1557
2020
|
export { TbodyBaseProps }
|
|
1558
2021
|
export { TbodyBaseProps as TbodyBaseProps_alias_1 }
|
|
@@ -1563,7 +2026,8 @@ export { TbodyProps as TbodyProps_alias_1 }
|
|
|
1563
2026
|
|
|
1564
2027
|
/**
|
|
1565
2028
|
* Styles for the Th component
|
|
1566
|
-
* @
|
|
2029
|
+
* @see https://cerberus.digitalu.design/react/table
|
|
2030
|
+
* @memberof module:Table
|
|
1567
2031
|
* @example
|
|
1568
2032
|
* ```tsx
|
|
1569
2033
|
* <Td>Data cell</Td>
|
|
@@ -1587,7 +2051,7 @@ export { TdProps as TdProps_alias_1 }
|
|
|
1587
2051
|
|
|
1588
2052
|
/**
|
|
1589
2053
|
* A component that allows the user to input large blocks of text.
|
|
1590
|
-
* @
|
|
2054
|
+
* @see https://cerberus.digitalu.design/react/textarea
|
|
1591
2055
|
*/
|
|
1592
2056
|
declare function Textarea(props: TextareaProps): JSX.Element;
|
|
1593
2057
|
export { Textarea }
|
|
@@ -1598,23 +2062,37 @@ export { Textarea as Textarea_alias_1 }
|
|
|
1598
2062
|
* @module
|
|
1599
2063
|
*/
|
|
1600
2064
|
declare interface TextareaBaseProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'id'> {
|
|
2065
|
+
/**
|
|
2066
|
+
* The ID of the FieldMessage that describes the textarea.
|
|
2067
|
+
*/
|
|
1601
2068
|
describedBy?: string;
|
|
2069
|
+
/**
|
|
2070
|
+
* The unique id of the textarea.
|
|
2071
|
+
*/
|
|
1602
2072
|
id: string;
|
|
1603
2073
|
}
|
|
1604
2074
|
export { TextareaBaseProps }
|
|
1605
2075
|
export { TextareaBaseProps as TextareaBaseProps_alias_1 }
|
|
1606
2076
|
|
|
1607
|
-
declare type TextareaProps =
|
|
2077
|
+
declare type TextareaProps = InputVariantProps & TextareaBaseProps;
|
|
1608
2078
|
export { TextareaProps }
|
|
1609
2079
|
export { TextareaProps as TextareaProps_alias_1 }
|
|
1610
2080
|
|
|
1611
2081
|
/**
|
|
1612
2082
|
* Styles for the Th component
|
|
1613
|
-
* @
|
|
2083
|
+
* @see https://cerberus.digitalu.design/react/table
|
|
2084
|
+
* @memberof module:Table
|
|
1614
2085
|
* @example
|
|
1615
2086
|
* ```tsx
|
|
1616
2087
|
* <Th>Header 1</Th>
|
|
1617
2088
|
* ```
|
|
2089
|
+
* @example
|
|
2090
|
+
* ```tsx
|
|
2091
|
+
* <Th onClick={handleClick}>
|
|
2092
|
+
* Names
|
|
2093
|
+
* <SortIcon />
|
|
2094
|
+
* </Th>
|
|
2095
|
+
* ```
|
|
1618
2096
|
*/
|
|
1619
2097
|
declare function Th(props: ThProps): JSX_2.Element;
|
|
1620
2098
|
export { Th }
|
|
@@ -1625,6 +2103,10 @@ export { Th as Th_alias_1 }
|
|
|
1625
2103
|
* @module
|
|
1626
2104
|
*/
|
|
1627
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
|
+
*/
|
|
1628
2110
|
onClick?: (e: MouseEvent_2<HTMLButtonElement>) => void;
|
|
1629
2111
|
};
|
|
1630
2112
|
export { ThBaseProps }
|
|
@@ -1632,7 +2114,8 @@ export { ThBaseProps as ThBaseProps_alias_1 }
|
|
|
1632
2114
|
|
|
1633
2115
|
/**
|
|
1634
2116
|
* The Thead component is used to render a table header.
|
|
1635
|
-
* @
|
|
2117
|
+
* @see https://cerberus.digitalu.design/react/table
|
|
2118
|
+
* @memberof module:Table
|
|
1636
2119
|
* @example
|
|
1637
2120
|
* ```tsx
|
|
1638
2121
|
* <Thead>
|
|
@@ -1652,21 +2135,39 @@ declare type TheadProps = TableHTMLAttributes<HTMLTableSectionElement>;
|
|
|
1652
2135
|
export { TheadProps }
|
|
1653
2136
|
export { TheadProps as TheadProps_alias_1 }
|
|
1654
2137
|
|
|
2138
|
+
/**
|
|
2139
|
+
* This module provides a hook for using the theme.
|
|
2140
|
+
* @module
|
|
2141
|
+
*/
|
|
1655
2142
|
declare const THEME_KEY = "cerberus-theme";
|
|
1656
2143
|
export { THEME_KEY }
|
|
1657
2144
|
export { THEME_KEY as THEME_KEY_alias_1 }
|
|
1658
2145
|
|
|
1659
2146
|
declare interface ThemeContextValue<T extends string = DefaultThemes> {
|
|
2147
|
+
/**
|
|
2148
|
+
* The current theme.
|
|
2149
|
+
*/
|
|
1660
2150
|
theme: CustomThemes<T>;
|
|
2151
|
+
/**
|
|
2152
|
+
* The current color mode.
|
|
2153
|
+
*/
|
|
1661
2154
|
mode: ColorModes;
|
|
2155
|
+
/**
|
|
2156
|
+
* Called when the theme is updated.
|
|
2157
|
+
*/
|
|
1662
2158
|
updateTheme: (theme: T) => void;
|
|
2159
|
+
/**
|
|
2160
|
+
* Called when the color mode is updated.
|
|
2161
|
+
*/
|
|
1663
2162
|
updateMode: (mode: ColorModes) => void;
|
|
1664
2163
|
}
|
|
1665
2164
|
export { ThemeContextValue }
|
|
1666
2165
|
export { ThemeContextValue as ThemeContextValue_alias_1 }
|
|
1667
2166
|
|
|
1668
2167
|
/**
|
|
1669
|
-
* 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
|
|
1670
2171
|
* @example
|
|
1671
2172
|
* ```tsx
|
|
1672
2173
|
* <ThemeProvider>
|
|
@@ -1679,7 +2180,13 @@ export { ThemeProvider }
|
|
|
1679
2180
|
export { ThemeProvider as ThemeProvider_alias_1 }
|
|
1680
2181
|
|
|
1681
2182
|
declare interface ThemeProviderProps extends UseThemeOptions {
|
|
2183
|
+
/**
|
|
2184
|
+
* The default theme.
|
|
2185
|
+
*/
|
|
1682
2186
|
defaultTheme?: DefaultThemes;
|
|
2187
|
+
/**
|
|
2188
|
+
* The default color mode.
|
|
2189
|
+
*/
|
|
1683
2190
|
defaultColorMode?: ColorModes;
|
|
1684
2191
|
}
|
|
1685
2192
|
export { ThemeProviderProps }
|
|
@@ -1689,20 +2196,60 @@ declare type ThProps = ThBaseProps & ThVariantProps;
|
|
|
1689
2196
|
export { ThProps }
|
|
1690
2197
|
export { ThProps as ThProps_alias_1 }
|
|
1691
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
|
+
*/
|
|
1692
2220
|
declare function Toggle(props: ToggleProps): JSX_2.Element;
|
|
1693
2221
|
export { Toggle }
|
|
1694
2222
|
export { Toggle as Toggle_alias_1 }
|
|
1695
2223
|
|
|
2224
|
+
/**
|
|
2225
|
+
* This module provides a toggle component.
|
|
2226
|
+
* @module
|
|
2227
|
+
*/
|
|
1696
2228
|
declare type ToggleBase = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'id' | 'value'> & {
|
|
2229
|
+
/**
|
|
2230
|
+
* The FieldMessage providing context for the Toggle.
|
|
2231
|
+
*/
|
|
1697
2232
|
describedBy?: string;
|
|
2233
|
+
/**
|
|
2234
|
+
* A unique identifier for the Toggle. Required for accessibility.
|
|
2235
|
+
*/
|
|
1698
2236
|
id: string;
|
|
2237
|
+
/**
|
|
2238
|
+
* The value of the Toggle.
|
|
2239
|
+
*/
|
|
1699
2240
|
value: string;
|
|
1700
2241
|
};
|
|
1701
2242
|
export { ToggleBase }
|
|
1702
2243
|
export { ToggleBase as ToggleBase_alias_1 }
|
|
1703
2244
|
|
|
1704
2245
|
declare interface ToggleHookReturn {
|
|
2246
|
+
/**
|
|
2247
|
+
* The checked state.
|
|
2248
|
+
*/
|
|
1705
2249
|
checked: string;
|
|
2250
|
+
/**
|
|
2251
|
+
* A custom handler to be called when the checked state changes.
|
|
2252
|
+
*/
|
|
1706
2253
|
handleChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
1707
2254
|
}
|
|
1708
2255
|
export { ToggleHookReturn }
|
|
@@ -1762,14 +2309,26 @@ export { useDroppable }
|
|
|
1762
2309
|
|
|
1763
2310
|
export { UseDroppableArguments }
|
|
1764
2311
|
|
|
2312
|
+
/**
|
|
2313
|
+
* Used to retrieve the context of the FeatureFlags provider.
|
|
2314
|
+
*/
|
|
1765
2315
|
declare function useFeatureFlags(key: string): boolean;
|
|
1766
2316
|
export { useFeatureFlags }
|
|
1767
2317
|
export { useFeatureFlags as useFeatureFlags_alias_1 }
|
|
1768
2318
|
|
|
2319
|
+
/**
|
|
2320
|
+
* Used to access the field context.
|
|
2321
|
+
* @returns The field context.
|
|
2322
|
+
*/
|
|
1769
2323
|
declare function useFieldContext(): FieldContextValue;
|
|
1770
2324
|
export { useFieldContext }
|
|
1771
2325
|
export { useFieldContext as useFieldContext_alias_1 }
|
|
1772
2326
|
|
|
2327
|
+
/**
|
|
2328
|
+
* Provides a hook for using a custom modal.
|
|
2329
|
+
* @memberof module:Modal
|
|
2330
|
+
* @returns The modal hook.
|
|
2331
|
+
*/
|
|
1773
2332
|
declare function useModal(): UseModalReturnValue;
|
|
1774
2333
|
export { useModal }
|
|
1775
2334
|
export { useModal as useModal_alias_1 }
|
|
@@ -1779,11 +2338,24 @@ export { useModal as useModal_alias_1 }
|
|
|
1779
2338
|
* @module
|
|
1780
2339
|
*/
|
|
1781
2340
|
declare interface UseModalReturnValue {
|
|
2341
|
+
/**
|
|
2342
|
+
* The ref for the modal.
|
|
2343
|
+
*/
|
|
1782
2344
|
modalRef: RefObject<HTMLDialogElement>;
|
|
2345
|
+
/**
|
|
2346
|
+
* Shows the modal.
|
|
2347
|
+
*/
|
|
1783
2348
|
show: () => void;
|
|
2349
|
+
/**
|
|
2350
|
+
* Closes the modal.
|
|
2351
|
+
*/
|
|
1784
2352
|
close: () => void;
|
|
1785
2353
|
}
|
|
1786
2354
|
|
|
2355
|
+
/**
|
|
2356
|
+
* Used to access the nav menu context.
|
|
2357
|
+
* @returns The nav menu context.
|
|
2358
|
+
*/
|
|
1787
2359
|
declare function useNavMenuContext(): NavMenuContextValue;
|
|
1788
2360
|
export { useNavMenuContext }
|
|
1789
2361
|
export { useNavMenuContext as useNavMenuContext_alias_1 }
|
|
@@ -1805,6 +2377,9 @@ declare function useNotificationCenter(): NotificationsValue;
|
|
|
1805
2377
|
export { useNotificationCenter }
|
|
1806
2378
|
export { useNotificationCenter as useNotificationCenter_alias_1 }
|
|
1807
2379
|
|
|
2380
|
+
/**
|
|
2381
|
+
* Used to retrieve the context of the PromptModal provider.
|
|
2382
|
+
*/
|
|
1808
2383
|
declare function usePromptModal(): PromptModalValue;
|
|
1809
2384
|
export { usePromptModal }
|
|
1810
2385
|
export { usePromptModal as usePromptModal_alias_1 }
|
|
@@ -1813,6 +2388,10 @@ export { useSensor }
|
|
|
1813
2388
|
|
|
1814
2389
|
export { useSensors }
|
|
1815
2390
|
|
|
2391
|
+
/**
|
|
2392
|
+
* Used to access the tabs context.
|
|
2393
|
+
* @returns The tabs context.
|
|
2394
|
+
*/
|
|
1816
2395
|
declare function useTabsContext(): TabsContextValue;
|
|
1817
2396
|
export { useTabsContext }
|
|
1818
2397
|
export { useTabsContext as useTabsContext_alias_1 }
|
|
@@ -1823,28 +2402,62 @@ declare function useTabsKeyboardNavigation(): {
|
|
|
1823
2402
|
export { useTabsKeyboardNavigation }
|
|
1824
2403
|
export { useTabsKeyboardNavigation as useTabsKeyboardNavigation_alias_1 }
|
|
1825
2404
|
|
|
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
|
+
*/
|
|
1826
2412
|
declare function useTheme<C extends string = DefaultThemes>(defaultTheme?: CustomThemes<C>, defaultColorMode?: ColorModes, options?: UseThemeOptions<C>): ThemeContextValue<C>;
|
|
1827
2413
|
export { useTheme }
|
|
1828
2414
|
export { useTheme as useTheme_alias_1 }
|
|
1829
2415
|
|
|
2416
|
+
/**
|
|
2417
|
+
* Used to access the theme context.
|
|
2418
|
+
*/
|
|
1830
2419
|
declare function useThemeContext(): ThemeContextValue<DefaultThemes>;
|
|
1831
2420
|
export { useThemeContext }
|
|
1832
2421
|
export { useThemeContext as useThemeContext_alias_1 }
|
|
1833
2422
|
|
|
1834
2423
|
declare interface UseThemeOptions<T extends string = DefaultThemes> {
|
|
2424
|
+
/**
|
|
2425
|
+
* Whether to cache the theme in local storage.
|
|
2426
|
+
*/
|
|
1835
2427
|
cache?: boolean;
|
|
2428
|
+
/**
|
|
2429
|
+
* Called when the theme is updated.
|
|
2430
|
+
*/
|
|
1836
2431
|
updateTheme?: (theme: T) => void;
|
|
2432
|
+
/**
|
|
2433
|
+
* Called when the color mode is updated.
|
|
2434
|
+
*/
|
|
1837
2435
|
updateMode?: (mode: ColorModes) => void;
|
|
1838
2436
|
}
|
|
1839
2437
|
export { UseThemeOptions }
|
|
1840
2438
|
export { UseThemeOptions as UseThemeOptions_alias_1 }
|
|
1841
2439
|
|
|
2440
|
+
/**
|
|
2441
|
+
* Provides a hook for using a toggle.
|
|
2442
|
+
* @see https://cerberus.digitalu.design/react/use-toggle
|
|
2443
|
+
* @memberof module:Toggle
|
|
2444
|
+
*/
|
|
1842
2445
|
declare function useToggle(options?: UseToggleOptions): ToggleHookReturn;
|
|
1843
2446
|
export { useToggle }
|
|
1844
2447
|
export { useToggle as useToggle_alias_1 }
|
|
1845
2448
|
|
|
2449
|
+
/**
|
|
2450
|
+
* This module provides a hook for using a toggle.
|
|
2451
|
+
* @module useToggle
|
|
2452
|
+
*/
|
|
1846
2453
|
declare interface UseToggleOptions {
|
|
2454
|
+
/**
|
|
2455
|
+
* The initial checked state.
|
|
2456
|
+
*/
|
|
1847
2457
|
checked?: string;
|
|
2458
|
+
/**
|
|
2459
|
+
* Called when the checked state changes.
|
|
2460
|
+
*/
|
|
1848
2461
|
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
1849
2462
|
}
|
|
1850
2463
|
export { UseToggleOptions }
|