@cerberus-design/react 0.14.2 → 0.15.0-next-7669d47
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 +374 -80
- package/build/legacy/components/Accordion.cjs +4 -187
- package/build/legacy/components/Accordion.cjs.map +1 -1
- package/build/legacy/components/Accordion.client.cjs +64 -0
- package/build/legacy/components/Accordion.client.cjs.map +1 -0
- package/build/legacy/components/AccordionItemGroup.cjs +41 -185
- package/build/legacy/components/AccordionItemGroup.cjs.map +1 -1
- package/build/legacy/components/Admonition.cjs +89 -239
- package/build/legacy/components/Admonition.cjs.map +1 -1
- package/build/legacy/components/Admonition.client.cjs +219 -0
- package/build/legacy/components/Admonition.client.cjs.map +1 -0
- package/build/legacy/components/AnimatingUploadIcon.cjs.map +1 -1
- package/build/legacy/components/Avatar.cjs +23 -174
- package/build/legacy/components/Avatar.cjs.map +1 -1
- package/build/legacy/components/Checkbox.cjs +22 -168
- package/build/legacy/components/Checkbox.cjs.map +1 -1
- package/build/legacy/components/DatePicker.client.cjs +129 -272
- package/build/legacy/components/DatePicker.client.cjs.map +1 -1
- package/build/legacy/components/DatePicker.server.cjs +17 -271
- package/build/legacy/components/DatePicker.server.cjs.map +1 -1
- package/build/legacy/components/Dialog.cjs +86 -0
- package/build/legacy/components/Dialog.cjs.map +1 -0
- package/build/legacy/components/Dialog.client.cjs +95 -0
- package/build/legacy/components/Dialog.client.cjs.map +1 -0
- package/build/legacy/components/FileStatus.cjs +62 -212
- package/build/legacy/components/FileStatus.cjs.map +1 -1
- package/build/legacy/components/FileUploader.cjs +29 -180
- package/build/legacy/components/FileUploader.cjs.map +1 -1
- package/build/legacy/components/Input.cjs +20 -172
- package/build/legacy/components/Input.cjs.map +1 -1
- package/build/legacy/components/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/Notification.cjs +26 -176
- package/build/legacy/components/Notification.cjs.map +1 -1
- package/build/legacy/components/Select.cjs +26 -178
- package/build/legacy/components/Select.cjs.map +1 -1
- package/build/legacy/components/Tag.cjs +16 -167
- package/build/legacy/components/Tag.cjs.map +1 -1
- package/build/legacy/components/Toggle.cjs +20 -172
- package/build/legacy/components/Toggle.cjs.map +1 -1
- package/build/legacy/config/defineIcons.cjs +3 -39
- package/build/legacy/config/defineIcons.cjs.map +1 -1
- package/build/legacy/config/{cerbIcons.cjs → index.cjs} +22 -29
- package/build/legacy/config/index.cjs.map +1 -0
- package/build/legacy/config/types.cjs +19 -0
- package/build/legacy/config/types.cjs.map +1 -0
- package/build/legacy/context/cerberus.cjs +46 -0
- package/build/legacy/context/cerberus.cjs.map +1 -0
- package/build/legacy/context/confirm-modal.cjs +105 -321
- package/build/legacy/context/confirm-modal.cjs.map +1 -1
- package/build/legacy/context/cta-modal.cjs +137 -336
- package/build/legacy/context/cta-modal.cjs.map +1 -1
- package/build/legacy/context/notification-center/store.cjs +66 -0
- package/build/legacy/context/notification-center/store.cjs.map +1 -0
- package/build/legacy/context/notification-center/types.cjs +19 -0
- package/build/legacy/context/notification-center/types.cjs.map +1 -0
- package/build/legacy/context/notification-center.cjs +142 -249
- package/build/legacy/context/notification-center.cjs.map +1 -1
- package/build/legacy/context/prompt-modal.cjs +185 -388
- package/build/legacy/context/prompt-modal.cjs.map +1 -1
- package/build/legacy/index.cjs +1577 -1456
- package/build/legacy/index.cjs.map +1 -1
- package/build/modern/_tsup-dts-rollup.d.ts +374 -80
- package/build/modern/{chunk-BVCXVZAF.js → chunk-25HMVHLT.js} +6 -5
- package/build/modern/chunk-25HMVHLT.js.map +1 -0
- package/build/modern/chunk-36N4527B.js +1 -0
- package/build/modern/chunk-5EWCH7AI.js +82 -0
- package/build/modern/chunk-5EWCH7AI.js.map +1 -0
- package/build/modern/chunk-5SNLQZYP.js +25 -0
- package/build/modern/chunk-5SNLQZYP.js.map +1 -0
- package/build/modern/chunk-6BN3XKQF.js +42 -0
- package/build/modern/chunk-6BN3XKQF.js.map +1 -0
- package/build/modern/{chunk-2UXE5PDG.js → chunk-7NN3SJ7W.js} +1 -1
- package/build/modern/chunk-7NN3SJ7W.js.map +1 -0
- package/build/modern/{chunk-KWJ5FKX7.js → chunk-BAWZBF5Q.js} +5 -3
- package/build/modern/chunk-BAWZBF5Q.js.map +1 -0
- package/build/modern/{chunk-6BH5J5GF.js → chunk-BHB56M7S.js} +31 -46
- package/build/modern/chunk-BHB56M7S.js.map +1 -0
- package/build/modern/{chunk-HKJMLWVP.js → chunk-EDARV2EI.js} +5 -4
- package/build/modern/chunk-EDARV2EI.js.map +1 -0
- package/build/modern/{chunk-5OVH3INN.js → chunk-FGCO27TC.js} +25 -53
- package/build/modern/chunk-FGCO27TC.js.map +1 -0
- package/build/modern/{chunk-PVIMOXSO.js → chunk-GCQMH4QA.js} +5 -4
- package/build/modern/chunk-GCQMH4QA.js.map +1 -0
- package/build/modern/chunk-GITT5645.js +20 -0
- package/build/modern/chunk-GITT5645.js.map +1 -0
- package/build/modern/{chunk-TJCFYL5W.js → chunk-IGHMP4WA.js} +1 -20
- package/build/modern/chunk-IGHMP4WA.js.map +1 -0
- package/build/modern/chunk-ISCJ542I.js +82 -0
- package/build/modern/chunk-ISCJ542I.js.map +1 -0
- package/build/modern/{chunk-HVKM54BA.js → chunk-IW3LIRDG.js} +1 -1
- package/build/modern/chunk-IW3LIRDG.js.map +1 -0
- package/build/modern/chunk-JAROS4Q3.js +180 -0
- package/build/modern/chunk-JAROS4Q3.js.map +1 -0
- package/build/modern/{chunk-BE4EOU2P.js → chunk-JIRW4XOJ.js} +1 -1
- package/build/modern/chunk-JIRW4XOJ.js.map +1 -0
- package/build/modern/chunk-KDDPAJMR.js +9 -0
- package/build/modern/chunk-KDDPAJMR.js.map +1 -0
- package/build/modern/{chunk-XOROL3JY.js → chunk-KKHL3ZO4.js} +5 -4
- package/build/modern/chunk-KKHL3ZO4.js.map +1 -0
- package/build/modern/{chunk-U36UZJGZ.js → chunk-MZ3UCDUL.js} +5 -4
- package/build/modern/chunk-MZ3UCDUL.js.map +1 -0
- package/build/modern/{chunk-T2JOPPGL.js → chunk-N24COMHJ.js} +11 -4
- package/build/modern/chunk-N24COMHJ.js.map +1 -0
- package/build/modern/chunk-NJSETNRL.js +68 -0
- package/build/modern/chunk-NJSETNRL.js.map +1 -0
- package/build/modern/{chunk-XY6WL55R.js → chunk-NUMM4TNC.js} +1 -1
- package/build/modern/chunk-NUMM4TNC.js.map +1 -0
- package/build/modern/{chunk-FXLLRVAM.js → chunk-O6LFWUHI.js} +8 -6
- package/build/modern/chunk-O6LFWUHI.js.map +1 -0
- package/build/modern/{chunk-JJZQGR7A.js → chunk-RDRD6ACD.js} +9 -6
- package/build/modern/chunk-RDRD6ACD.js.map +1 -0
- package/build/modern/{chunk-XXWR7UGH.js → chunk-SD3OVTHT.js} +75 -103
- package/build/modern/chunk-SD3OVTHT.js.map +1 -0
- package/build/modern/chunk-TFL56AYR.js +56 -0
- package/build/modern/chunk-TFL56AYR.js.map +1 -0
- package/build/modern/chunk-V3M3ZOQI.js +38 -0
- package/build/modern/chunk-V3M3ZOQI.js.map +1 -0
- package/build/modern/{chunk-QK7R2XJM.js → chunk-XQICKZH4.js} +6 -5
- package/build/modern/chunk-XQICKZH4.js.map +1 -0
- package/build/modern/chunk-XZGXRRSQ.js +31 -0
- package/build/modern/chunk-XZGXRRSQ.js.map +1 -0
- package/build/modern/{chunk-KPUYKHLW.js → chunk-YKKNWILF.js} +71 -15
- package/build/modern/chunk-YKKNWILF.js.map +1 -0
- package/build/modern/{chunk-Q7BRMIBR.js → chunk-ZL6ZITLA.js} +1 -1
- package/build/modern/chunk-ZL6ZITLA.js.map +1 -0
- package/build/modern/components/Accordion.client.js +9 -0
- package/build/modern/components/Accordion.client.js.map +1 -0
- package/build/modern/components/Accordion.js +1 -7
- package/build/modern/components/AccordionItemGroup.js +4 -6
- package/build/modern/components/Admonition.client.js +11 -0
- package/build/modern/components/Admonition.client.js.map +1 -0
- package/build/modern/components/Admonition.js +4 -6
- package/build/modern/components/AnimatingUploadIcon.js +1 -1
- package/build/modern/components/Avatar.js +3 -5
- package/build/modern/components/Checkbox.js +2 -5
- package/build/modern/components/DatePicker.client.js +8 -7
- package/build/modern/components/DatePicker.server.js +3 -13
- package/build/modern/components/Dialog.client.js +10 -0
- package/build/modern/components/Dialog.client.js.map +1 -0
- package/build/modern/components/Dialog.js +24 -0
- package/build/modern/components/Dialog.js.map +1 -0
- package/build/modern/components/FileStatus.js +3 -6
- package/build/modern/components/FileUploader.js +3 -6
- package/build/modern/components/Input.js +2 -5
- 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/Notification.js +2 -5
- package/build/modern/components/Select.js +2 -5
- package/build/modern/components/Tag.js +3 -5
- package/build/modern/components/Toggle.js +2 -5
- package/build/modern/config/defineIcons.js +2 -5
- package/build/modern/config/index.js +14 -0
- package/build/modern/config/index.js.map +1 -0
- package/build/modern/config/types.js +2 -0
- package/build/modern/config/types.js.map +1 -0
- package/build/modern/context/cerberus.js +10 -0
- package/build/modern/context/cerberus.js.map +1 -0
- package/build/modern/context/confirm-modal.js +5 -13
- package/build/modern/context/cta-modal.js +7 -14
- package/build/modern/context/notification-center/store.js +15 -0
- package/build/modern/context/notification-center/store.js.map +1 -0
- package/build/modern/context/notification-center/types.js +1 -0
- package/build/modern/context/notification-center/types.js.map +1 -0
- package/build/modern/context/notification-center.js +5 -7
- package/build/modern/context/prompt-modal.js +8 -15
- package/build/modern/index.js +111 -75
- package/build/modern/index.js.map +1 -1
- package/package.json +4 -8
- package/src/components/Accordion.client.tsx +46 -0
- package/src/components/Accordion.tsx +0 -37
- package/src/components/AccordionItemGroup.tsx +1 -1
- package/src/components/Admonition.client.tsx +73 -0
- package/src/components/Admonition.tsx +1 -70
- package/src/components/AnimatingUploadIcon.tsx +3 -3
- package/src/components/Avatar.tsx +5 -2
- package/src/components/Checkbox.tsx +10 -3
- package/src/components/DatePicker.client.tsx +111 -15
- package/src/components/DatePicker.server.tsx +2 -75
- package/src/components/Dialog.client.tsx +39 -0
- package/src/components/Dialog.tsx +165 -0
- package/src/components/FileStatus.tsx +5 -3
- package/src/components/FileUploader.tsx +3 -2
- package/src/components/Input.tsx +4 -2
- package/src/components/Modal.tsx +1 -16
- package/src/components/ModalDescription.tsx +1 -8
- package/src/components/ModalHeader.tsx +1 -10
- package/src/components/ModalHeading.tsx +1 -8
- package/src/components/Notification.tsx +9 -4
- package/src/components/Select.tsx +5 -2
- package/src/components/Tag.tsx +5 -2
- package/src/components/Toggle.tsx +4 -3
- package/src/config/defineIcons.ts +28 -16
- package/src/config/index.ts +28 -0
- package/src/config/types.ts +42 -0
- package/src/context/cerberus.tsx +44 -0
- package/src/context/confirm-modal.tsx +44 -42
- package/src/context/cta-modal.tsx +25 -38
- package/src/context/notification-center/store.ts +88 -0
- package/src/context/notification-center/types.ts +28 -0
- package/src/context/notification-center.tsx +81 -46
- package/src/context/prompt-modal.tsx +101 -103
- package/src/index.ts +15 -8
- package/build/legacy/config/cerbIcons.cjs.map +0 -1
- package/build/modern/chunk-2UXE5PDG.js.map +0 -1
- package/build/modern/chunk-5OVH3INN.js.map +0 -1
- package/build/modern/chunk-6BH5J5GF.js.map +0 -1
- package/build/modern/chunk-BC5SZDYY.js +0 -132
- package/build/modern/chunk-BC5SZDYY.js.map +0 -1
- package/build/modern/chunk-BE4EOU2P.js.map +0 -1
- package/build/modern/chunk-BVCXVZAF.js.map +0 -1
- package/build/modern/chunk-CRII2HNX.js +0 -55
- package/build/modern/chunk-CRII2HNX.js.map +0 -1
- package/build/modern/chunk-CVTON5DQ.js +0 -162
- package/build/modern/chunk-CVTON5DQ.js.map +0 -1
- package/build/modern/chunk-FXLLRVAM.js.map +0 -1
- package/build/modern/chunk-HKJMLWVP.js.map +0 -1
- package/build/modern/chunk-HVKM54BA.js.map +0 -1
- package/build/modern/chunk-JJZQGR7A.js.map +0 -1
- package/build/modern/chunk-KPUYKHLW.js.map +0 -1
- package/build/modern/chunk-KWJ5FKX7.js.map +0 -1
- package/build/modern/chunk-PVIMOXSO.js.map +0 -1
- package/build/modern/chunk-Q7BRMIBR.js.map +0 -1
- package/build/modern/chunk-QK7R2XJM.js.map +0 -1
- package/build/modern/chunk-QMF5ZNDG.js +0 -27
- package/build/modern/chunk-QMF5ZNDG.js.map +0 -1
- package/build/modern/chunk-QQOWWMZ3.js +0 -138
- package/build/modern/chunk-QQOWWMZ3.js.map +0 -1
- package/build/modern/chunk-T2JOPPGL.js.map +0 -1
- package/build/modern/chunk-TJCFYL5W.js.map +0 -1
- package/build/modern/chunk-U36UZJGZ.js.map +0 -1
- package/build/modern/chunk-XOROL3JY.js.map +0 -1
- package/build/modern/chunk-XXWR7UGH.js.map +0 -1
- package/build/modern/chunk-XY6WL55R.js.map +0 -1
- package/build/modern/config/cerbIcons.js +0 -9
- package/src/config/cerbIcons.ts +0 -73
- /package/build/modern/{config/cerbIcons.js.map → chunk-36N4527B.js.map} +0 -0
|
@@ -13,8 +13,6 @@ import { AvatarVariantProps } from '@cerberus/styled-system/recipes';
|
|
|
13
13
|
import { ButtonHTMLAttributes } from 'react';
|
|
14
14
|
import { ButtonVariantProps } from '@cerberus/styled-system/recipes';
|
|
15
15
|
import { CancelDrop } from '@dnd-kit/core';
|
|
16
|
-
import { CarbonIconProps } from '@cerberus/icons';
|
|
17
|
-
import { CarbonIconType } from '@cerberus/icons';
|
|
18
16
|
import { ChangeEvent } from 'react';
|
|
19
17
|
import { CheckboxVariantProps } from '@cerberus/styled-system/recipes';
|
|
20
18
|
import { ClientRect as ClientRect_2 } from '@dnd-kit/core';
|
|
@@ -43,7 +41,14 @@ import { defaultCoordinates } from '@dnd-kit/core';
|
|
|
43
41
|
import { defaultDropAnimation } from '@dnd-kit/core';
|
|
44
42
|
import { defaultDropAnimationSideEffects } from '@dnd-kit/core';
|
|
45
43
|
import { defaultScreenReaderInstructions } from '@dnd-kit/core';
|
|
44
|
+
import { Dialog as Dialog_2 } from '@ark-ui/react';
|
|
45
|
+
import { DialogCloseTriggerProps } from '@ark-ui/react';
|
|
46
|
+
import { DialogContentProps } from '@ark-ui/react';
|
|
46
47
|
import { DialogHTMLAttributes } from 'react';
|
|
48
|
+
import { DialogRootProps } from '@ark-ui/react';
|
|
49
|
+
import { DialogTitleProps } from '@ark-ui/react';
|
|
50
|
+
import { DialogVariantProps } from '@cerberus/styled-system/recipes';
|
|
51
|
+
import type { Dispatch } from 'react';
|
|
47
52
|
import { DistanceMeasurement } from '@dnd-kit/core';
|
|
48
53
|
import { DndContext } from '@dnd-kit/core';
|
|
49
54
|
import { DndContextDescriptor } from '@dnd-kit/core';
|
|
@@ -159,10 +164,6 @@ import { UseDroppableArguments } from '@dnd-kit/core';
|
|
|
159
164
|
import { useSensor } from '@dnd-kit/core';
|
|
160
165
|
import { useSensors } from '@dnd-kit/core';
|
|
161
166
|
|
|
162
|
-
declare let $cerberusIcons: Required<DefinedIcons>;
|
|
163
|
-
export { $cerberusIcons }
|
|
164
|
-
export { $cerberusIcons as $cerberusIcons_alias_1 }
|
|
165
|
-
|
|
166
167
|
/**
|
|
167
168
|
* The context provider for the Accordion family.
|
|
168
169
|
* @definition [Accordion docs](https://cerberus.digitalu.design/react/accordion)
|
|
@@ -325,6 +326,18 @@ export { Activators }
|
|
|
325
326
|
|
|
326
327
|
export { Active }
|
|
327
328
|
|
|
329
|
+
/**
|
|
330
|
+
* Adds a notification to the notification center.
|
|
331
|
+
* @param dispatch The dispatch function.
|
|
332
|
+
* @param options The notification options.
|
|
333
|
+
*/
|
|
334
|
+
export declare function addNotification(dispatch: Dispatch<AddNotifyAction>, options: AddNotifyAction['payload']): void;
|
|
335
|
+
|
|
336
|
+
export declare type AddNotifyAction = {
|
|
337
|
+
type: 'ADD_NOTIFICATION';
|
|
338
|
+
payload: NotificationOption;
|
|
339
|
+
};
|
|
340
|
+
|
|
328
341
|
/**
|
|
329
342
|
* The `Admonition` component is used to create an admonition.
|
|
330
343
|
* @example
|
|
@@ -405,7 +418,9 @@ export declare function AnimatingUploadIcon(props: AnimatingUploadIconProps): JS
|
|
|
405
418
|
* This module contains an animating icon to use for the FileStatus component.
|
|
406
419
|
* @module
|
|
407
420
|
*/
|
|
408
|
-
export declare
|
|
421
|
+
export declare interface AnimatingUploadIconProps {
|
|
422
|
+
size?: 16 | 20 | 24 | 32;
|
|
423
|
+
}
|
|
409
424
|
|
|
410
425
|
export { Announcements }
|
|
411
426
|
|
|
@@ -523,6 +538,19 @@ export { ButtonProps as ButtonProps_alias_1 }
|
|
|
523
538
|
|
|
524
539
|
export { CancelDrop }
|
|
525
540
|
|
|
541
|
+
/**
|
|
542
|
+
* Cerberus configuration provider.
|
|
543
|
+
* @param props.config The Cerberus configuration created with
|
|
544
|
+
* `makeSystemConfig` helper.
|
|
545
|
+
*/
|
|
546
|
+
declare function CerberusProvider(props: PropsWithChildren<CerberusProviderProps>): JSX_2.Element;
|
|
547
|
+
export { CerberusProvider }
|
|
548
|
+
export { CerberusProvider as CerberusProvider_alias_1 }
|
|
549
|
+
|
|
550
|
+
declare interface CerberusProviderProps {
|
|
551
|
+
config: SystemConfig;
|
|
552
|
+
}
|
|
553
|
+
|
|
526
554
|
/**
|
|
527
555
|
* Checkbox component
|
|
528
556
|
* @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)
|
|
@@ -621,6 +649,16 @@ declare interface CircularProgressProps extends SVGProps<SVGSVGElement> {
|
|
|
621
649
|
export { CircularProgressProps }
|
|
622
650
|
export { CircularProgressProps as CircularProgressProps_alias_1 }
|
|
623
651
|
|
|
652
|
+
/**
|
|
653
|
+
* Clears the notification state.
|
|
654
|
+
* @param dispatch The dispatch function.
|
|
655
|
+
*/
|
|
656
|
+
export declare function clearNotificationState(dispatch: Dispatch<ClearNotifyAction>): void;
|
|
657
|
+
|
|
658
|
+
export declare type ClearNotifyAction = {
|
|
659
|
+
type: 'CLEAR_NOTIFICATIONS';
|
|
660
|
+
};
|
|
661
|
+
|
|
624
662
|
declare type ClickableTagProps = HTMLAttributes<HTMLSpanElement> & {
|
|
625
663
|
/**
|
|
626
664
|
* The gradient to apply to the tag. Not available when the onClick prop is
|
|
@@ -813,7 +851,9 @@ export { DatePicker as DatePicker_alias_1 }
|
|
|
813
851
|
* </Field>
|
|
814
852
|
* ```
|
|
815
853
|
*/
|
|
816
|
-
declare function DatePickerCalendar(
|
|
854
|
+
declare function DatePickerCalendar(props: {
|
|
855
|
+
withModal?: boolean;
|
|
856
|
+
}): JSX_2.Element;
|
|
817
857
|
export { DatePickerCalendar }
|
|
818
858
|
export { DatePickerCalendar as DatePickerCalendar_alias_1 }
|
|
819
859
|
|
|
@@ -831,7 +871,9 @@ export { DatePickerCalendar as DatePickerCalendar_alias_1 }
|
|
|
831
871
|
* </Field>
|
|
832
872
|
* ```
|
|
833
873
|
*/
|
|
834
|
-
declare function DatePickerContent(props: DatePickerContentProps
|
|
874
|
+
declare function DatePickerContent(props: DatePickerContentProps & {
|
|
875
|
+
withModal?: boolean;
|
|
876
|
+
}): JSX_2.Element;
|
|
835
877
|
export { DatePickerContent }
|
|
836
878
|
export { DatePickerContent as DatePickerContent_alias_1 }
|
|
837
879
|
|
|
@@ -1043,8 +1085,6 @@ export { defaultDropAnimation }
|
|
|
1043
1085
|
|
|
1044
1086
|
export { defaultDropAnimationSideEffects }
|
|
1045
1087
|
|
|
1046
|
-
export declare const defaultIcons: DefinedIcons;
|
|
1047
|
-
|
|
1048
1088
|
export { defaultScreenReaderInstructions }
|
|
1049
1089
|
|
|
1050
1090
|
/**
|
|
@@ -1055,34 +1095,51 @@ declare type DefaultThemes = 'cerberus' | 'acheron';
|
|
|
1055
1095
|
export { DefaultThemes }
|
|
1056
1096
|
export { DefaultThemes as DefaultThemes_alias_1 }
|
|
1057
1097
|
|
|
1058
|
-
|
|
1059
|
-
accordionIndicator
|
|
1060
|
-
avatar
|
|
1061
|
-
calendar
|
|
1062
|
-
calendarPrev
|
|
1063
|
-
calendarNext
|
|
1064
|
-
checkbox?:
|
|
1065
|
-
close
|
|
1066
|
-
confirmModal
|
|
1067
|
-
delete
|
|
1068
|
-
promptModal
|
|
1069
|
-
waitingFileUploader
|
|
1070
|
-
fileUploader?:
|
|
1071
|
-
indeterminate?:
|
|
1072
|
-
infoNotification
|
|
1073
|
-
successNotification
|
|
1074
|
-
warningNotification
|
|
1075
|
-
dangerNotification
|
|
1076
|
-
invalid:
|
|
1077
|
-
invalidAlt
|
|
1078
|
-
redo
|
|
1079
|
-
selectArrow
|
|
1080
|
-
toggleChecked
|
|
1098
|
+
declare interface DefinedIcons<T extends IconType = IconType> {
|
|
1099
|
+
accordionIndicator: T;
|
|
1100
|
+
avatar: T;
|
|
1101
|
+
calendar: T;
|
|
1102
|
+
calendarPrev: T;
|
|
1103
|
+
calendarNext: T;
|
|
1104
|
+
checkbox?: T;
|
|
1105
|
+
close: T;
|
|
1106
|
+
confirmModal: T;
|
|
1107
|
+
delete: T;
|
|
1108
|
+
promptModal: T;
|
|
1109
|
+
waitingFileUploader: T;
|
|
1110
|
+
fileUploader?: T;
|
|
1111
|
+
indeterminate?: T;
|
|
1112
|
+
infoNotification: T;
|
|
1113
|
+
successNotification: T;
|
|
1114
|
+
warningNotification: T;
|
|
1115
|
+
dangerNotification: T;
|
|
1116
|
+
invalid: T;
|
|
1117
|
+
invalidAlt: T;
|
|
1118
|
+
redo: T;
|
|
1119
|
+
selectArrow: T;
|
|
1120
|
+
toggleChecked: T;
|
|
1081
1121
|
}
|
|
1122
|
+
export { DefinedIcons }
|
|
1123
|
+
export { DefinedIcons as DefinedIcons_alias_1 }
|
|
1124
|
+
export { DefinedIcons as DefinedIcons_alias_2 }
|
|
1082
1125
|
|
|
1083
|
-
|
|
1126
|
+
/**
|
|
1127
|
+
* Defines the icons that will be used in Cerberus React components via the
|
|
1128
|
+
* CerberusProvider.
|
|
1129
|
+
* @param icons The icons that will be used in Cerberus React components.
|
|
1130
|
+
* @returns Icons object compatible with the CerberusProvider SystemConfig.
|
|
1131
|
+
* @example
|
|
1132
|
+
* ```tsx
|
|
1133
|
+
* const icons = defineIcons({
|
|
1134
|
+
* accordionIndicator: MyAccordionIndicatorIcon,
|
|
1135
|
+
* ...
|
|
1136
|
+
* })
|
|
1137
|
+
* ```
|
|
1138
|
+
*/
|
|
1139
|
+
declare function defineIcons<T extends IconType>(icons: DefinedIcons): Required<DefinedIcons<T>>;
|
|
1084
1140
|
export { defineIcons }
|
|
1085
1141
|
export { defineIcons as defineIcons_alias_1 }
|
|
1142
|
+
export { defineIcons as defineIcons_alias_2 }
|
|
1086
1143
|
|
|
1087
1144
|
declare interface DestructiveConfirmOptions extends BaseConfirmOptions {
|
|
1088
1145
|
/**
|
|
@@ -1097,6 +1154,162 @@ declare interface DestructiveConfirmOptions extends BaseConfirmOptions {
|
|
|
1097
1154
|
export { DestructiveConfirmOptions }
|
|
1098
1155
|
export { DestructiveConfirmOptions as DestructiveConfirmOptions_alias_1 }
|
|
1099
1156
|
|
|
1157
|
+
/**
|
|
1158
|
+
* The content of the dialog. Must be used within the `DialogProvider` component.
|
|
1159
|
+
* @definition [Dialog docs](https://cerberus.digitalu.design/react/dialog)
|
|
1160
|
+
* @example
|
|
1161
|
+
* ```tsx
|
|
1162
|
+
* <DialogProvider>
|
|
1163
|
+
* <DialogTrigger asChild>
|
|
1164
|
+
* <Button>Open Dialog</Button>
|
|
1165
|
+
* </DialogTrigger>
|
|
1166
|
+
* <Dialog>
|
|
1167
|
+
* <Text>Dialog Content</Text>
|
|
1168
|
+
* </Dialog>
|
|
1169
|
+
* </DialogProvider>
|
|
1170
|
+
* ```
|
|
1171
|
+
*/
|
|
1172
|
+
declare function Dialog(props: DialogProps): JSX_2.Element;
|
|
1173
|
+
export { Dialog }
|
|
1174
|
+
export { Dialog as Dialog_alias_1 }
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* The backdrop of the dialog. Must be used within the `DialogProvider`
|
|
1178
|
+
* component.
|
|
1179
|
+
*/
|
|
1180
|
+
declare const DialogBackdrop: ForwardRefExoticComponent<Dialog_2.BackdropProps & RefAttributes<HTMLDivElement>>;
|
|
1181
|
+
export { DialogBackdrop }
|
|
1182
|
+
export { DialogBackdrop as DialogBackdrop_alias_1 }
|
|
1183
|
+
|
|
1184
|
+
/**
|
|
1185
|
+
* This module contains client-side components for the Dialog family.
|
|
1186
|
+
* @module @cerberus-design/react/dialog
|
|
1187
|
+
*/
|
|
1188
|
+
declare function DialogCloseIconTrigger(props: DialogCloseTriggerProps): JSX_2.Element;
|
|
1189
|
+
export { DialogCloseIconTrigger }
|
|
1190
|
+
export { DialogCloseIconTrigger as DialogCloseIconTrigger_alias_1 }
|
|
1191
|
+
|
|
1192
|
+
/**
|
|
1193
|
+
* The trigger that closes the dialog. Must be used within the `DialogProvider`
|
|
1194
|
+
* component.
|
|
1195
|
+
* @definition [Dialog docs](https://cerberus.digitalu.design/react/dialog)
|
|
1196
|
+
* @example
|
|
1197
|
+
* ```tsx
|
|
1198
|
+
* <DialogProvider>
|
|
1199
|
+
* <DialogTrigger asChild>
|
|
1200
|
+
* <Button>Open Dialog</Button>
|
|
1201
|
+
* </DialogTrigger>
|
|
1202
|
+
* <Dialog>
|
|
1203
|
+
* <Text>Dialog Content</Text>
|
|
1204
|
+
* <DialogCloseTrigger>Close</DialogCloseTrigger>
|
|
1205
|
+
* </Dialog>
|
|
1206
|
+
* </DialogProvider>
|
|
1207
|
+
* ```
|
|
1208
|
+
*/
|
|
1209
|
+
declare const DialogCloseTrigger: ForwardRefExoticComponent<Dialog_2.CloseTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
1210
|
+
export { DialogCloseTrigger }
|
|
1211
|
+
export { DialogCloseTrigger as DialogCloseTrigger_alias_1 }
|
|
1212
|
+
|
|
1213
|
+
/**
|
|
1214
|
+
* The content of the dialog. Must be used within the `DialogProvider`
|
|
1215
|
+
* component.
|
|
1216
|
+
*/
|
|
1217
|
+
declare const DialogContent: ForwardRefExoticComponent<Dialog_2.ContentProps & RefAttributes<HTMLDivElement>>;
|
|
1218
|
+
export { DialogContent }
|
|
1219
|
+
export { DialogContent as DialogContent_alias_1 }
|
|
1220
|
+
|
|
1221
|
+
/**
|
|
1222
|
+
* The description of the dialog. Must be used within the `DialogContent` component.
|
|
1223
|
+
* @definition [Dialog docs](https://cerberus.digitalu.design/react/dialog)
|
|
1224
|
+
* @example
|
|
1225
|
+
* ```tsx
|
|
1226
|
+
* <DialogProvider>
|
|
1227
|
+
* <DialogTrigger asChild>
|
|
1228
|
+
* <Button>Open Dialog</Button>
|
|
1229
|
+
* </DialogTrigger>
|
|
1230
|
+
* <Dialog>
|
|
1231
|
+
* <DialogHeading>Dialog Title</DialogHeading>
|
|
1232
|
+
* <DialogDescription>Dialog Description</DialogDescription>
|
|
1233
|
+
* </Dialog>
|
|
1234
|
+
* </DialogProvider>
|
|
1235
|
+
* ```
|
|
1236
|
+
*/
|
|
1237
|
+
declare function DialogDescription(props: DialogTitleProps): JSX_2.Element;
|
|
1238
|
+
export { DialogDescription }
|
|
1239
|
+
export { DialogDescription as DialogDescription_alias_1 }
|
|
1240
|
+
|
|
1241
|
+
/**
|
|
1242
|
+
* The heading of the dialog. Must be used within the `DialogContent` component.
|
|
1243
|
+
* @definition [Dialog docs](https://cerberus.digitalu.design/react/dialog)
|
|
1244
|
+
* @example
|
|
1245
|
+
* ```tsx
|
|
1246
|
+
* <DialogProvider>
|
|
1247
|
+
* <DialogTrigger asChild>
|
|
1248
|
+
* <Button>Open Dialog</Button>
|
|
1249
|
+
* </DialogTrigger>
|
|
1250
|
+
* <Dialog>
|
|
1251
|
+
* <DialogHeading>Dialog Title</DialogHeading>
|
|
1252
|
+
* <Text>Dialog Content</Text>
|
|
1253
|
+
* </Dialog>
|
|
1254
|
+
* </DialogProvider>
|
|
1255
|
+
* ```
|
|
1256
|
+
*/
|
|
1257
|
+
declare function DialogHeading(props: DialogTitleProps): JSX_2.Element;
|
|
1258
|
+
export { DialogHeading }
|
|
1259
|
+
export { DialogHeading as DialogHeading_alias_1 }
|
|
1260
|
+
|
|
1261
|
+
/**
|
|
1262
|
+
* The positioner of the dialog. Must be used within the `DialogProvider`
|
|
1263
|
+
* component.
|
|
1264
|
+
*/
|
|
1265
|
+
declare const DialogPositioner: ForwardRefExoticComponent<Dialog_2.PositionerProps & RefAttributes<HTMLDivElement>>;
|
|
1266
|
+
export { DialogPositioner }
|
|
1267
|
+
export { DialogPositioner as DialogPositioner_alias_1 }
|
|
1268
|
+
|
|
1269
|
+
declare interface DialogProps extends Omit<DialogContentProps, 'size'>, DialogVariantProps {
|
|
1270
|
+
}
|
|
1271
|
+
export { DialogProps }
|
|
1272
|
+
export { DialogProps as DialogProps_alias_1 }
|
|
1273
|
+
|
|
1274
|
+
/**
|
|
1275
|
+
* The provider that controls the dialog components.
|
|
1276
|
+
* @definition [Dialog docs](https://cerberus.digitalu.design/react/dialog)
|
|
1277
|
+
* @example
|
|
1278
|
+
* ```tsx
|
|
1279
|
+
* <DialogProvider>
|
|
1280
|
+
* <DialogTrigger asChild>
|
|
1281
|
+
* <Button>Open Dialog</Button>
|
|
1282
|
+
* </DialogTrigger>
|
|
1283
|
+
* <Dialog>
|
|
1284
|
+
* <Text>Dialog Content</Text>
|
|
1285
|
+
* <DialogCloseTrigger>Close</DialogCloseTrigger>
|
|
1286
|
+
* </Dialog>
|
|
1287
|
+
* </DialogProvider>
|
|
1288
|
+
* ```
|
|
1289
|
+
*/
|
|
1290
|
+
declare function DialogProvider(props: DialogProviderProps): JSX_2.Element;
|
|
1291
|
+
export { DialogProvider }
|
|
1292
|
+
export { DialogProvider as DialogProvider_alias_1 }
|
|
1293
|
+
|
|
1294
|
+
declare type DialogProviderProps = DialogRootProps;
|
|
1295
|
+
export { DialogProviderProps }
|
|
1296
|
+
export { DialogProviderProps as DialogProviderProps_alias_1 }
|
|
1297
|
+
|
|
1298
|
+
/**
|
|
1299
|
+
* The trigger that opens the dialog. Must be used within the `DialogProvider`
|
|
1300
|
+
* component.
|
|
1301
|
+
* @definition [Dialog docs](https://cerberus.digitalu.design/react/dialog)
|
|
1302
|
+
* @example
|
|
1303
|
+
* ```tsx
|
|
1304
|
+
* <DialogTrigger asChild>
|
|
1305
|
+
* <Button>Open Dialog</Button>
|
|
1306
|
+
* </DialogTrigger>
|
|
1307
|
+
* ```
|
|
1308
|
+
*/
|
|
1309
|
+
declare const DialogTrigger: ForwardRefExoticComponent<Dialog_2.TriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
1310
|
+
export { DialogTrigger }
|
|
1311
|
+
export { DialogTrigger as DialogTrigger_alias_1 }
|
|
1312
|
+
|
|
1100
1313
|
export { DistanceMeasurement }
|
|
1101
1314
|
|
|
1102
1315
|
export { DndContext }
|
|
@@ -1613,7 +1826,10 @@ declare interface IconButtonRawProps extends ButtonHTMLAttributes<HTMLButtonElem
|
|
|
1613
1826
|
export { IconButtonRawProps }
|
|
1614
1827
|
export { IconButtonRawProps as IconButtonRawProps_alias_1 }
|
|
1615
1828
|
|
|
1616
|
-
|
|
1829
|
+
declare type IconType = ElementType;
|
|
1830
|
+
export { IconType }
|
|
1831
|
+
export { IconType as IconType_alias_1 }
|
|
1832
|
+
export { IconType as IconType_alias_2 }
|
|
1617
1833
|
|
|
1618
1834
|
/**
|
|
1619
1835
|
* Indeterminate icon for Checkbox component
|
|
@@ -1773,6 +1989,34 @@ declare type LegendProps = HTMLAttributes<HTMLLegendElement> & LabelVariantProps
|
|
|
1773
1989
|
export { LegendProps }
|
|
1774
1990
|
export { LegendProps as LegendProps_alias_1 }
|
|
1775
1991
|
|
|
1992
|
+
/**
|
|
1993
|
+
* Create a system configuration object to be used on the CerberusProvider.
|
|
1994
|
+
* @param options The system configuration options you want to customize.
|
|
1995
|
+
* @returns A CerberusProvider-compatible system configuration object.
|
|
1996
|
+
* @example
|
|
1997
|
+
* ```tsx
|
|
1998
|
+
* const icons = defineIcons({
|
|
1999
|
+
* accordionIndicator: MyAccordionIndicatorIcon,
|
|
2000
|
+
* ...
|
|
2001
|
+
* })
|
|
2002
|
+
* const config = makeSystemConfig({
|
|
2003
|
+
* icons,
|
|
2004
|
+
* })
|
|
2005
|
+
*
|
|
2006
|
+
* // In your app
|
|
2007
|
+
* <CerberusProvider config={config}>
|
|
2008
|
+
* <App />
|
|
2009
|
+
* </CerberusProvider>
|
|
2010
|
+
* ```
|
|
2011
|
+
*/
|
|
2012
|
+
declare function makeSystemConfig(options: SystemConfig): SystemConfig;
|
|
2013
|
+
export { makeSystemConfig }
|
|
2014
|
+
export { makeSystemConfig as makeSystemConfig_alias_1 }
|
|
2015
|
+
|
|
2016
|
+
export declare function MatchAvatar(props: MatchAvatarProps): JSX_2.Element;
|
|
2017
|
+
|
|
2018
|
+
declare type MatchAvatarProps = AdmonitionVariantProps;
|
|
2019
|
+
|
|
1776
2020
|
export { MeasuringConfiguration }
|
|
1777
2021
|
|
|
1778
2022
|
export { MeasuringFrequency }
|
|
@@ -1912,36 +2156,14 @@ export { MenuTrigger }
|
|
|
1912
2156
|
export { MenuTrigger as MenuTrigger_alias_1 }
|
|
1913
2157
|
|
|
1914
2158
|
/**
|
|
1915
|
-
*
|
|
1916
|
-
* @see https://cerberus.digitalu.design/react/modal
|
|
1917
|
-
* @example
|
|
1918
|
-
* ```tsx
|
|
1919
|
-
* const { modalRef } = useModal()
|
|
1920
|
-
*
|
|
1921
|
-
* <Modal ref={modalRef}>
|
|
1922
|
-
* <Avatar icon={SomeIcon} />
|
|
1923
|
-
* <ModalHeader>
|
|
1924
|
-
* <ModalHeading>Modal Heading</ModalHeading>
|
|
1925
|
-
* <ModalDescription>Modal description</ModalDescription>
|
|
1926
|
-
* </ModalHeader>
|
|
1927
|
-
*
|
|
1928
|
-
* {props.children}
|
|
1929
|
-
* </Modal>
|
|
1930
|
-
* ```
|
|
2159
|
+
* @deprecated use `Dialog` instead
|
|
1931
2160
|
*/
|
|
1932
2161
|
declare const Modal: ForwardRefExoticComponent<ModalProps & RefAttributes<HTMLDialogElement>>;
|
|
1933
2162
|
export { Modal }
|
|
1934
2163
|
export { Modal as Modal_alias_1 }
|
|
1935
2164
|
|
|
1936
2165
|
/**
|
|
1937
|
-
*
|
|
1938
|
-
* @see https://cerberus.digitalu.design/react/modal
|
|
1939
|
-
* @example
|
|
1940
|
-
* ```tsx
|
|
1941
|
-
* <Modal>
|
|
1942
|
-
* <ModalDescription>Modal Heading</ModalDescription>
|
|
1943
|
-
* </Modal>
|
|
1944
|
-
* ```
|
|
2166
|
+
* @deprecated use `DialogDescription` instead
|
|
1945
2167
|
*/
|
|
1946
2168
|
declare function ModalDescription(props: ModalDescriptionProps): JSX_2.Element;
|
|
1947
2169
|
export { ModalDescription }
|
|
@@ -1956,16 +2178,7 @@ export { ModalDescriptionProps }
|
|
|
1956
2178
|
export { ModalDescriptionProps as ModalDescriptionProps_alias_1 }
|
|
1957
2179
|
|
|
1958
2180
|
/**
|
|
1959
|
-
*
|
|
1960
|
-
* @see https://cerberus.digitalu.design/react/modal
|
|
1961
|
-
* @example
|
|
1962
|
-
* ```tsx
|
|
1963
|
-
* <Modal>
|
|
1964
|
-
* <ModalHeader>
|
|
1965
|
-
* <h2>Modal Heading</h2>
|
|
1966
|
-
* </ModalHeader>
|
|
1967
|
-
* </Modal>
|
|
1968
|
-
* ```
|
|
2181
|
+
* @deprecated there is no replacement for this component
|
|
1969
2182
|
*/
|
|
1970
2183
|
declare function ModalHeader(props: ModalHeaderProps): JSX_2.Element;
|
|
1971
2184
|
export { ModalHeader }
|
|
@@ -1980,14 +2193,7 @@ export { ModalHeaderProps }
|
|
|
1980
2193
|
export { ModalHeaderProps as ModalHeaderProps_alias_1 }
|
|
1981
2194
|
|
|
1982
2195
|
/**
|
|
1983
|
-
*
|
|
1984
|
-
* @see https://cerberus.digitalu.design/react/modal
|
|
1985
|
-
* @example
|
|
1986
|
-
* ```tsx
|
|
1987
|
-
* <Modal>
|
|
1988
|
-
* <ModalHeading>Modal Heading</ModalHeading>
|
|
1989
|
-
* </Modal>
|
|
1990
|
-
* ```
|
|
2196
|
+
* @deprecated use `DialogHeading` instead
|
|
1991
2197
|
*/
|
|
1992
2198
|
declare function ModalHeading(props: ModalHeadingProps): JSX_2.Element;
|
|
1993
2199
|
export { ModalHeading }
|
|
@@ -2249,6 +2455,19 @@ declare function NotificationCenter(props: PropsWithChildren<NotificationsProvid
|
|
|
2249
2455
|
export { NotificationCenter }
|
|
2250
2456
|
export { NotificationCenter as NotificationCenter_alias_1 }
|
|
2251
2457
|
|
|
2458
|
+
/**
|
|
2459
|
+
* This module contains the reducer store and actions for the notification
|
|
2460
|
+
* center.
|
|
2461
|
+
* @module notification-center/store
|
|
2462
|
+
*/
|
|
2463
|
+
/**
|
|
2464
|
+
* The reducer for the notification center.
|
|
2465
|
+
* @param state An array of notifications.
|
|
2466
|
+
* @param action An action to take on the notifications.
|
|
2467
|
+
* @returns The new state of the notifications.
|
|
2468
|
+
*/
|
|
2469
|
+
export declare function notificationCenterReducer(state: NotificationsStore, action: AddNotifyAction | RemoveNotifyAction | UpdateNotifyAction | ClearNotifyAction): NotificationsStore;
|
|
2470
|
+
|
|
2252
2471
|
/**
|
|
2253
2472
|
* Used to render the description of a notification.
|
|
2254
2473
|
* @see https://cerberus.digitalu.design/react/notification
|
|
@@ -2277,14 +2496,26 @@ declare type NotificationHeadingProps = BaseNotificationHeadingProps & Notificat
|
|
|
2277
2496
|
export { NotificationHeadingProps }
|
|
2278
2497
|
export { NotificationHeadingProps as NotificationHeadingProps_alias_1 }
|
|
2279
2498
|
|
|
2499
|
+
export declare type NotificationOption = NotifyOptions & {
|
|
2500
|
+
state: 'open' | 'closed';
|
|
2501
|
+
};
|
|
2502
|
+
|
|
2280
2503
|
declare type NotificationProps = NotificationBaseProps & NotificationVariantProps;
|
|
2281
2504
|
export { NotificationProps }
|
|
2282
2505
|
export { NotificationProps as NotificationProps_alias_1 }
|
|
2283
2506
|
|
|
2284
|
-
declare type NotificationsProviderProps = PortalProps
|
|
2507
|
+
declare type NotificationsProviderProps = PortalProps & {
|
|
2508
|
+
/**
|
|
2509
|
+
* The duration in milliseconds to show the notification.
|
|
2510
|
+
* @default 6000
|
|
2511
|
+
*/
|
|
2512
|
+
duration?: number;
|
|
2513
|
+
};
|
|
2285
2514
|
export { NotificationsProviderProps }
|
|
2286
2515
|
export { NotificationsProviderProps as NotificationsProviderProps_alias_1 }
|
|
2287
2516
|
|
|
2517
|
+
export declare type NotificationsStore = NotificationOption[];
|
|
2518
|
+
|
|
2288
2519
|
declare interface NotificationsValue {
|
|
2289
2520
|
notify: (options: NotifyOptions) => void;
|
|
2290
2521
|
}
|
|
@@ -2546,12 +2777,39 @@ export { RadioRecipe as RadioRecipe_alias_1 }
|
|
|
2546
2777
|
* </Field>
|
|
2547
2778
|
* ```
|
|
2548
2779
|
*/
|
|
2549
|
-
declare function RangePickerInput(props:
|
|
2780
|
+
declare function RangePickerInput(props: RangePickerInputProps): JSX_2.Element;
|
|
2550
2781
|
export { RangePickerInput }
|
|
2551
2782
|
export { RangePickerInput as RangePickerInput_alias_1 }
|
|
2552
2783
|
|
|
2784
|
+
declare interface RangePickerInputProps extends Omit<DatePickerInputProps, 'defaultValue'> {
|
|
2785
|
+
/**
|
|
2786
|
+
* The defaultValue to add for the inputs. The first item is the start date
|
|
2787
|
+
* and the second item is the end date.
|
|
2788
|
+
*/
|
|
2789
|
+
defaultValue?: [
|
|
2790
|
+
InputHTMLAttributes<HTMLInputElement>['defaultValue'],
|
|
2791
|
+
InputHTMLAttributes<HTMLInputElement>['defaultValue']
|
|
2792
|
+
];
|
|
2793
|
+
}
|
|
2794
|
+
export { RangePickerInputProps }
|
|
2795
|
+
export { RangePickerInputProps as RangePickerInputProps_alias_1 }
|
|
2796
|
+
|
|
2553
2797
|
export { rectIntersection }
|
|
2554
2798
|
|
|
2799
|
+
/**
|
|
2800
|
+
* Removes a notification from the notification center.
|
|
2801
|
+
* @param dispatch The dispatch function.
|
|
2802
|
+
* @param id The id of the notification to remove.
|
|
2803
|
+
*/
|
|
2804
|
+
export declare function removeNotification(dispatch: Dispatch<RemoveNotifyAction>, id: RemoveNotifyAction['payload']['id']): void;
|
|
2805
|
+
|
|
2806
|
+
export declare type RemoveNotifyAction = {
|
|
2807
|
+
type: 'REMOVE_NOTIFICATION';
|
|
2808
|
+
payload: {
|
|
2809
|
+
id: Required<NotificationOption['id']>;
|
|
2810
|
+
};
|
|
2811
|
+
};
|
|
2812
|
+
|
|
2555
2813
|
/**
|
|
2556
2814
|
* This module provides a hook to get Cerberus colors from the document root.
|
|
2557
2815
|
* @module useRootColors
|
|
@@ -2803,6 +3061,20 @@ declare type StaticTagProps = HTMLAttributes<HTMLSpanElement> & TagVariantProps
|
|
|
2803
3061
|
export { StaticTagProps }
|
|
2804
3062
|
export { StaticTagProps as StaticTagProps_alias_1 }
|
|
2805
3063
|
|
|
3064
|
+
/**
|
|
3065
|
+
* This module contains the types for the Cerberus React configuration.
|
|
3066
|
+
* @module config.types
|
|
3067
|
+
*/
|
|
3068
|
+
declare interface SystemConfig {
|
|
3069
|
+
/**
|
|
3070
|
+
* The icons that will be used in Cerberus React components.
|
|
3071
|
+
*/
|
|
3072
|
+
icons: Required<DefinedIcons>;
|
|
3073
|
+
}
|
|
3074
|
+
export { SystemConfig }
|
|
3075
|
+
export { SystemConfig as SystemConfig_alias_1 }
|
|
3076
|
+
export { SystemConfig as SystemConfig_alias_2 }
|
|
3077
|
+
|
|
2806
3078
|
/**
|
|
2807
3079
|
* The trigger for the Tabs group.
|
|
2808
3080
|
* @definition [Tabs docs](https://cerberus.digitalu.design/react/tabs)
|
|
@@ -3344,6 +3616,28 @@ export { TrProps as TrProps_alias_1 }
|
|
|
3344
3616
|
|
|
3345
3617
|
export { UniqueIdentifier }
|
|
3346
3618
|
|
|
3619
|
+
/**
|
|
3620
|
+
* Updates a notification in the notification center.
|
|
3621
|
+
* @param dispatch The dispatch function.
|
|
3622
|
+
* @param options The notification options.
|
|
3623
|
+
*/
|
|
3624
|
+
export declare function updateNotificationState(dispatch: Dispatch<UpdateNotifyAction>, options: UpdateNotifyAction['payload']): void;
|
|
3625
|
+
|
|
3626
|
+
export declare type UpdateNotifyAction = {
|
|
3627
|
+
type: 'UPDATE_NOTIFICATION';
|
|
3628
|
+
payload: {
|
|
3629
|
+
id: Required<NotificationOption['id']>;
|
|
3630
|
+
} & Partial<NotificationOption>;
|
|
3631
|
+
};
|
|
3632
|
+
|
|
3633
|
+
/**
|
|
3634
|
+
* Returns the Cerberus configuration context.
|
|
3635
|
+
* @returns The Cerberus configuration context.
|
|
3636
|
+
*/
|
|
3637
|
+
declare function useCerberusContext(): SystemConfig;
|
|
3638
|
+
export { useCerberusContext }
|
|
3639
|
+
export { useCerberusContext as useCerberusContext_alias_1 }
|
|
3640
|
+
|
|
3347
3641
|
declare function useConfirmModal(): ConfirmModalValue;
|
|
3348
3642
|
export { useConfirmModal }
|
|
3349
3643
|
export { useConfirmModal as useConfirmModal_alias_1 }
|