@cerberus-design/react 0.13.2 → 0.14.0-next-01a1b5e
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 +607 -129
- package/build/legacy/components/Accordion.cjs +101 -0
- package/build/legacy/components/Accordion.cjs.map +1 -0
- package/build/legacy/components/AccordionItemGroup.cjs +119 -0
- package/build/legacy/components/AccordionItemGroup.cjs.map +1 -0
- package/build/legacy/components/Admonition.cjs +3 -0
- package/build/legacy/components/Admonition.cjs.map +1 -1
- package/build/legacy/components/Avatar.cjs +3 -0
- package/build/legacy/components/Avatar.cjs.map +1 -1
- package/build/legacy/components/Checkbox.cjs +3 -0
- package/build/legacy/components/Checkbox.cjs.map +1 -1
- package/build/legacy/components/DatePicker.client.cjs +497 -0
- package/build/legacy/components/DatePicker.client.cjs.map +1 -0
- package/build/legacy/components/DatePicker.server.cjs +364 -0
- package/build/legacy/components/DatePicker.server.cjs.map +1 -0
- package/build/legacy/components/FileStatus.cjs +3 -0
- package/build/legacy/components/FileStatus.cjs.map +1 -1
- package/build/legacy/components/FileUploader.cjs +3 -0
- package/build/legacy/components/FileUploader.cjs.map +1 -1
- package/build/legacy/components/Input.cjs +3 -0
- package/build/legacy/components/Input.cjs.map +1 -1
- package/build/legacy/components/Notification.cjs +3 -0
- 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/ProgressBar.cjs.map +1 -1
- package/build/legacy/components/Select.cjs +3 -0
- package/build/legacy/components/Select.cjs.map +1 -1
- package/build/legacy/components/Tabs.client.cjs +104 -0
- package/build/legacy/components/Tabs.client.cjs.map +1 -0
- package/build/legacy/components/Tag.cjs +3 -0
- package/build/legacy/components/Tag.cjs.map +1 -1
- package/build/legacy/components/Text.cjs +59 -0
- package/build/legacy/components/Text.cjs.map +1 -0
- package/build/legacy/components/Toggle.cjs +3 -0
- package/build/legacy/components/Toggle.cjs.map +1 -1
- package/build/legacy/components/Tooltip.cjs +2 -2
- package/build/legacy/components/Tooltip.cjs.map +1 -1
- package/build/legacy/config/cerbIcons.cjs +3 -0
- package/build/legacy/config/cerbIcons.cjs.map +1 -1
- package/build/legacy/config/defineIcons.cjs +3 -0
- package/build/legacy/config/defineIcons.cjs.map +1 -1
- package/build/legacy/config/icons/checkbox.icons.cjs.map +1 -1
- package/build/legacy/context/confirm-modal.cjs +3 -0
- package/build/legacy/context/confirm-modal.cjs.map +1 -1
- package/build/legacy/context/cta-modal.cjs +5 -3
- package/build/legacy/context/cta-modal.cjs.map +1 -1
- package/build/legacy/context/notification-center.cjs +3 -0
- package/build/legacy/context/notification-center.cjs.map +1 -1
- package/build/legacy/context/prompt-modal.cjs +3 -0
- package/build/legacy/context/prompt-modal.cjs.map +1 -1
- package/build/legacy/context/tabs.cjs +53 -24
- package/build/legacy/context/tabs.cjs.map +1 -1
- package/build/legacy/hooks/useDate.cjs +8 -0
- package/build/legacy/hooks/useDate.cjs.map +1 -1
- package/build/legacy/index.cjs +1083 -711
- package/build/legacy/index.cjs.map +1 -1
- package/build/legacy/utils/index.cjs +21 -2
- package/build/legacy/utils/index.cjs.map +1 -1
- package/build/legacy/utils/localStorage.cjs +44 -0
- package/build/legacy/utils/localStorage.cjs.map +1 -0
- package/build/modern/_tsup-dts-rollup.d.ts +607 -129
- package/build/modern/chunk-2ZNIYPDV.js +47 -0
- package/build/modern/chunk-2ZNIYPDV.js.map +1 -0
- package/build/modern/chunk-34E3UFFB.js +75 -0
- package/build/modern/chunk-34E3UFFB.js.map +1 -0
- package/build/modern/{chunk-CZND26FC.js → chunk-3BM6MZ4A.js} +8 -1
- package/build/modern/{chunk-CZND26FC.js.map → chunk-3BM6MZ4A.js.map} +1 -1
- package/build/modern/{chunk-N4QTLDVM.js → chunk-4IMOKN2D.js} +3 -3
- package/build/modern/{chunk-F27AAKQ3.js → chunk-5KHU6MM5.js} +8 -2
- package/build/modern/chunk-5KHU6MM5.js.map +1 -0
- package/build/modern/{chunk-WFJWCZ7E.js → chunk-77B4HFKT.js} +13 -14
- package/build/modern/chunk-77B4HFKT.js.map +1 -0
- package/build/modern/{chunk-FBSESDWJ.js → chunk-BHSYQCDV.js} +16 -16
- package/build/modern/chunk-BHSYQCDV.js.map +1 -0
- package/build/modern/{chunk-SPZYPRZ6.js → chunk-BU5JK37R.js} +2 -2
- package/build/modern/{chunk-UTGEFJ3L.js → chunk-C5EHJUS5.js} +1 -1
- package/build/modern/{chunk-UTGEFJ3L.js.map → chunk-C5EHJUS5.js.map} +1 -1
- package/build/modern/{chunk-VERRHMW4.js → chunk-DDOTCGGA.js} +2 -2
- package/build/modern/{chunk-CP7OUC2Q.js → chunk-E3PAEB7Y.js} +1 -1
- package/build/modern/chunk-E3PAEB7Y.js.map +1 -0
- package/build/modern/{chunk-F72ZABKX.js → chunk-F4LTOZAN.js} +2 -2
- package/build/modern/{chunk-NKM6PISB.js → chunk-F7EWTOML.js} +2 -2
- package/build/modern/chunk-F7XWOSN3.js +39 -0
- package/build/modern/chunk-F7XWOSN3.js.map +1 -0
- package/build/modern/chunk-FQLMPEYX.js +18 -0
- package/build/modern/chunk-FQLMPEYX.js.map +1 -0
- package/build/modern/{chunk-7MM5KYEX.js → chunk-GI6CSUU4.js} +7 -7
- package/build/modern/{chunk-7SGPJM66.js → chunk-HP4ZN473.js} +2 -2
- package/build/modern/chunk-HP4ZN473.js.map +1 -0
- package/build/modern/chunk-IP5VFOPZ.js +132 -0
- package/build/modern/chunk-IP5VFOPZ.js.map +1 -0
- package/build/modern/{chunk-KML4CTMK.js → chunk-LPALHB6R.js} +3 -3
- package/build/modern/chunk-LPALHB6R.js.map +1 -0
- package/build/modern/{chunk-3XGLNXJJ.js → chunk-M73ECA25.js} +8 -8
- package/build/modern/chunk-M73ECA25.js.map +1 -0
- package/build/modern/chunk-N7O6D7BW.js +63 -0
- package/build/modern/chunk-N7O6D7BW.js.map +1 -0
- package/build/modern/{chunk-W4DXACNV.js → chunk-O7QVCF3H.js} +3 -3
- package/build/modern/chunk-RIZGWERR.js +161 -0
- package/build/modern/chunk-RIZGWERR.js.map +1 -0
- package/build/modern/chunk-RZ7NG77U.js +77 -0
- package/build/modern/chunk-RZ7NG77U.js.map +1 -0
- package/build/modern/{chunk-XL4JREDT.js → chunk-S25RHYZV.js} +2 -2
- package/build/modern/{chunk-SXIXDXG3.js → chunk-SLHYBPJ5.js} +1 -1
- package/build/modern/chunk-SLHYBPJ5.js.map +1 -0
- package/build/modern/{chunk-GRUXP3NG.js → chunk-T6U7AKKP.js} +10 -10
- package/build/modern/chunk-T6U7AKKP.js.map +1 -0
- package/build/modern/{chunk-XEW6TJJ4.js → chunk-UXY3KCC3.js} +1 -1
- package/build/modern/chunk-UXY3KCC3.js.map +1 -0
- package/build/modern/{chunk-NB6DV4VA.js → chunk-W2LSPRQ3.js} +2 -2
- package/build/modern/{chunk-KCANMM64.js → chunk-WZJ5UQNM.js} +1 -1
- package/build/modern/chunk-WZJ5UQNM.js.map +1 -0
- package/build/modern/{chunk-NMNONSHU.js → chunk-XVU2NQCW.js} +2 -2
- package/build/modern/components/Accordion.js +15 -0
- package/build/modern/components/AccordionItemGroup.js +9 -0
- package/build/modern/components/Admonition.js +5 -5
- package/build/modern/components/Avatar.js +4 -4
- package/build/modern/components/Checkbox.js +4 -4
- package/build/modern/components/DatePicker.client.js +31 -0
- package/build/modern/components/DatePicker.server.js +31 -0
- package/build/modern/components/FileStatus.js +7 -7
- package/build/modern/components/FileUploader.js +5 -5
- package/build/modern/components/Input.js +4 -4
- package/build/modern/components/Notification.js +4 -4
- package/build/modern/components/NotificationDescription.js +1 -1
- package/build/modern/components/NotificationHeading.js +1 -1
- package/build/modern/components/ProgressBar.js +1 -1
- package/build/modern/components/Select.js +4 -4
- package/build/modern/components/Tabs.client.js +18 -0
- package/build/modern/components/Tabs.client.js.map +1 -0
- package/build/modern/components/Tag.js +4 -4
- package/build/modern/components/Text.js +7 -0
- package/build/modern/components/Text.js.map +1 -0
- package/build/modern/components/Toggle.js +4 -4
- package/build/modern/components/Tooltip.js +1 -1
- package/build/modern/config/cerbIcons.js +2 -2
- package/build/modern/config/defineIcons.js +3 -3
- package/build/modern/config/icons/checkbox.icons.js +1 -1
- package/build/modern/context/confirm-modal.js +8 -8
- package/build/modern/context/cta-modal.js +8 -8
- package/build/modern/context/notification-center.js +7 -7
- package/build/modern/context/prompt-modal.js +11 -11
- package/build/modern/context/tabs.js +2 -1
- package/build/modern/hooks/useDate.js +3 -1
- package/build/modern/index.js +158 -94
- package/build/modern/index.js.map +1 -1
- package/build/modern/utils/index.js +8 -2
- package/build/modern/utils/localStorage.js +10 -0
- package/build/modern/utils/localStorage.js.map +1 -0
- package/package.json +2 -2
- package/src/components/Accordion.tsx +160 -0
- package/src/components/AccordionItemGroup.tsx +79 -0
- package/src/components/DatePicker.client.tsx +365 -0
- package/src/components/DatePicker.server.tsx +229 -0
- package/src/components/Notification.tsx +6 -3
- package/src/components/NotificationDescription.tsx +2 -2
- package/src/components/NotificationHeading.tsx +1 -2
- package/src/components/ProgressBar.tsx +1 -1
- package/src/components/Tabs.client.tsx +113 -0
- package/src/components/Text.tsx +70 -0
- package/src/components/Tooltip.tsx +2 -2
- package/src/config/cerbIcons.ts +9 -0
- package/src/config/icons/checkbox.icons.tsx +2 -2
- package/src/context/confirm-modal.tsx +1 -1
- package/src/context/cta-modal.tsx +6 -7
- package/src/context/notification-center.tsx +1 -1
- package/src/context/prompt-modal.tsx +1 -1
- package/src/context/tabs.tsx +66 -65
- package/src/hooks/useDate.ts +12 -0
- package/src/index.ts +6 -4
- package/src/utils/index.ts +2 -0
- package/src/utils/localStorage.ts +28 -0
- package/build/legacy/aria-helpers/tabs.aria.cjs +0 -100
- package/build/legacy/aria-helpers/tabs.aria.cjs.map +0 -1
- package/build/legacy/components/Tab.cjs +0 -135
- package/build/legacy/components/Tab.cjs.map +0 -1
- package/build/legacy/components/TabList.cjs +0 -69
- package/build/legacy/components/TabList.cjs.map +0 -1
- package/build/legacy/components/TabPanel.cjs +0 -76
- package/build/legacy/components/TabPanel.cjs.map +0 -1
- package/build/modern/aria-helpers/tabs.aria.js +0 -9
- package/build/modern/chunk-3XGLNXJJ.js.map +0 -1
- package/build/modern/chunk-7SGPJM66.js.map +0 -1
- package/build/modern/chunk-AYIRV5CL.js +0 -32
- package/build/modern/chunk-AYIRV5CL.js.map +0 -1
- package/build/modern/chunk-CP7OUC2Q.js.map +0 -1
- package/build/modern/chunk-F27AAKQ3.js.map +0 -1
- package/build/modern/chunk-FBSESDWJ.js.map +0 -1
- package/build/modern/chunk-GRUXP3NG.js.map +0 -1
- package/build/modern/chunk-ITOIXNJS.js +0 -64
- package/build/modern/chunk-ITOIXNJS.js.map +0 -1
- package/build/modern/chunk-KCANMM64.js.map +0 -1
- package/build/modern/chunk-KML4CTMK.js.map +0 -1
- package/build/modern/chunk-RIFQSCHT.js +0 -58
- package/build/modern/chunk-RIFQSCHT.js.map +0 -1
- package/build/modern/chunk-SLF6SIPB.js +0 -46
- package/build/modern/chunk-SLF6SIPB.js.map +0 -1
- package/build/modern/chunk-SXIXDXG3.js.map +0 -1
- package/build/modern/chunk-UKPF7JOB.js +0 -33
- package/build/modern/chunk-UKPF7JOB.js.map +0 -1
- package/build/modern/chunk-WFJWCZ7E.js.map +0 -1
- package/build/modern/chunk-XEW6TJJ4.js.map +0 -1
- package/build/modern/components/Tab.js +0 -10
- package/build/modern/components/TabList.js +0 -9
- package/build/modern/components/TabPanel.js +0 -10
- package/src/aria-helpers/tabs.aria.ts +0 -70
- package/src/components/Tab.tsx +0 -68
- package/src/components/TabList.tsx +0 -51
- package/src/components/TabPanel.tsx +0 -49
- /package/build/modern/{chunk-N4QTLDVM.js.map → chunk-4IMOKN2D.js.map} +0 -0
- /package/build/modern/{chunk-SPZYPRZ6.js.map → chunk-BU5JK37R.js.map} +0 -0
- /package/build/modern/{chunk-VERRHMW4.js.map → chunk-DDOTCGGA.js.map} +0 -0
- /package/build/modern/{chunk-F72ZABKX.js.map → chunk-F4LTOZAN.js.map} +0 -0
- /package/build/modern/{chunk-NKM6PISB.js.map → chunk-F7EWTOML.js.map} +0 -0
- /package/build/modern/{chunk-7MM5KYEX.js.map → chunk-GI6CSUU4.js.map} +0 -0
- /package/build/modern/{chunk-W4DXACNV.js.map → chunk-O7QVCF3H.js.map} +0 -0
- /package/build/modern/{chunk-XL4JREDT.js.map → chunk-S25RHYZV.js.map} +0 -0
- /package/build/modern/{chunk-NB6DV4VA.js.map → chunk-W2LSPRQ3.js.map} +0 -0
- /package/build/modern/{chunk-NMNONSHU.js.map → chunk-XVU2NQCW.js.map} +0 -0
- /package/build/modern/{aria-helpers/tabs.aria.js.map → components/Accordion.js.map} +0 -0
- /package/build/modern/components/{Tab.js.map → AccordionItemGroup.js.map} +0 -0
- /package/build/modern/components/{TabList.js.map → DatePicker.client.js.map} +0 -0
- /package/build/modern/components/{TabPanel.js.map → DatePicker.server.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { Accordion as Accordion_2 } from '@ark-ui/react';
|
|
2
|
+
import { AccordionVariantProps } from '@cerberus/styled-system/recipes';
|
|
3
3
|
import { Activator } from '@dnd-kit/core';
|
|
4
4
|
import { Activators } from '@dnd-kit/core';
|
|
5
5
|
import { Active } from '@dnd-kit/core';
|
|
@@ -10,6 +10,7 @@ import { applyModifiers } from '@dnd-kit/core';
|
|
|
10
10
|
import { AutoScrollActivator } from '@dnd-kit/core';
|
|
11
11
|
import { AutoScrollOptions } from '@dnd-kit/core';
|
|
12
12
|
import { AvatarVariantProps } from '@cerberus/styled-system/recipes';
|
|
13
|
+
import { BoxProps } from '@cerberus-design/styled-system/jsx';
|
|
13
14
|
import { ButtonHTMLAttributes } from 'react';
|
|
14
15
|
import { ButtonVariantProps } from '@cerberus/styled-system/recipes';
|
|
15
16
|
import { CancelDrop } from '@dnd-kit/core';
|
|
@@ -26,6 +27,18 @@ import { CollisionDetection } from '@dnd-kit/core';
|
|
|
26
27
|
import { Context } from 'react';
|
|
27
28
|
import { Data } from '@dnd-kit/core';
|
|
28
29
|
import { DataRef } from '@dnd-kit/core';
|
|
30
|
+
import { DatePicker as DatePicker_2 } from '@ark-ui/react';
|
|
31
|
+
import { DatePickerContentProps } from '@ark-ui/react';
|
|
32
|
+
import { DatePickerInputProps } from '@ark-ui/react';
|
|
33
|
+
import { DatePickerLabelProps } from '@ark-ui/react';
|
|
34
|
+
import { DatePickerRootProps } from '@ark-ui/react';
|
|
35
|
+
import { DatePickerTableCellProps } from '@ark-ui/react';
|
|
36
|
+
import { DatePickerTableCellTriggerProps } from '@ark-ui/react';
|
|
37
|
+
import { DatePickerTableHeaderProps } from '@ark-ui/react';
|
|
38
|
+
import { DatePickerTableProps } from '@ark-ui/react';
|
|
39
|
+
import { DatePickerTriggerProps } from '@ark-ui/react';
|
|
40
|
+
import { DatePickerViewControlProps } from '@ark-ui/react';
|
|
41
|
+
import { DatePickerViewProps } from '@ark-ui/react';
|
|
29
42
|
import { defaultAnnouncements } from '@dnd-kit/core';
|
|
30
43
|
import { defaultCoordinates } from '@dnd-kit/core';
|
|
31
44
|
import { defaultDropAnimation } from '@dnd-kit/core';
|
|
@@ -86,10 +99,9 @@ import { Menu as Menu_2 } from '@ark-ui/react';
|
|
|
86
99
|
import { Modifier } from '@dnd-kit/core';
|
|
87
100
|
import { Modifiers } from '@dnd-kit/core';
|
|
88
101
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
89
|
-
import
|
|
102
|
+
import { MouseEventHandler } from 'react';
|
|
90
103
|
import { MouseSensor } from '@dnd-kit/core';
|
|
91
104
|
import { MouseSensorOptions } from '@dnd-kit/core';
|
|
92
|
-
import { MutableRefObject } from 'react';
|
|
93
105
|
import { NotificationVariantProps } from '@cerberus/styled-system/recipes';
|
|
94
106
|
import type { OptionHTMLAttributes } from 'react';
|
|
95
107
|
import { Over } from '@dnd-kit/core';
|
|
@@ -123,6 +135,7 @@ import { SensorResponse } from '@dnd-kit/core';
|
|
|
123
135
|
import { Sensors } from '@dnd-kit/core';
|
|
124
136
|
import type { SVGProps } from 'react';
|
|
125
137
|
import type { TableHTMLAttributes } from 'react';
|
|
138
|
+
import { Tabs as Tabs_2 } from '@ark-ui/react/tabs';
|
|
126
139
|
import { TabsVariantProps } from '@cerberus/styled-system/recipes';
|
|
127
140
|
import { TagVariantProps } from '@cerberus/styled-system/recipes';
|
|
128
141
|
import { TbodyVariantProps } from '@cerberus/styled-system/recipes';
|
|
@@ -150,6 +163,162 @@ declare let $cerberusIcons: Required<DefinedIcons>;
|
|
|
150
163
|
export { $cerberusIcons }
|
|
151
164
|
export { $cerberusIcons as $cerberusIcons_alias_1 }
|
|
152
165
|
|
|
166
|
+
/**
|
|
167
|
+
* The context provider for the Accordion family.
|
|
168
|
+
* @definition [Accordion docs](https://cerberus.digitalu.design/react/accordion)
|
|
169
|
+
* @example
|
|
170
|
+
* ```tsx
|
|
171
|
+
* <Accordion>
|
|
172
|
+
* <AccordionItemGroup heading="Item 1 heading" value="one">
|
|
173
|
+
* This is the content
|
|
174
|
+
* </AccordionItemGroup>
|
|
175
|
+
* </Accordion>
|
|
176
|
+
* ```
|
|
177
|
+
*/
|
|
178
|
+
declare function Accordion(props: AccordionProps): JSX_2.Element;
|
|
179
|
+
export { Accordion }
|
|
180
|
+
export { Accordion as Accordion_alias_1 }
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* The item for the Accordion component.
|
|
184
|
+
* @definition [ARK docs](https://ark-ui.com/react/docs/components/accordion)
|
|
185
|
+
* @definition [Accordion docs](https://cerberus.digitalu.design/react/accordion)
|
|
186
|
+
* @example
|
|
187
|
+
* ```tsx
|
|
188
|
+
* <Accordion>
|
|
189
|
+
* <AccordionItem value="one">
|
|
190
|
+
* <AccordionTrigger>
|
|
191
|
+
* Accordion Item 1
|
|
192
|
+
* <AccordionIndicator />
|
|
193
|
+
* </AccordionTrigger>
|
|
194
|
+
* <AccordionContent>Accordion Item 1 content</AccordionContent>
|
|
195
|
+
* </AccordionItem>
|
|
196
|
+
* </Accordion>
|
|
197
|
+
* ```
|
|
198
|
+
*/
|
|
199
|
+
declare function AccordionItem(props: AccordionItemProps): JSX_2.Element;
|
|
200
|
+
export { AccordionItem }
|
|
201
|
+
export { AccordionItem as AccordionItem_alias_1 }
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* The content for the Accordion component.
|
|
205
|
+
* @definition [ARK docs](https://ark-ui.com/react/docs/components/accordion)
|
|
206
|
+
* @definition [Accordion docs](https://cerberus.digitalu.design/react/accordion)
|
|
207
|
+
* @example
|
|
208
|
+
* ```tsx
|
|
209
|
+
* <Accordion>
|
|
210
|
+
* <AccordionItem value="one">
|
|
211
|
+
* <AccordionTrigger>
|
|
212
|
+
* Accordion Item 1
|
|
213
|
+
* <AccordionIndicator />
|
|
214
|
+
* </AccordionTrigger>
|
|
215
|
+
* <AccordionContent>Accordion Item 1 content</AccordionContent>
|
|
216
|
+
* </AccordionItem>
|
|
217
|
+
* </Accordion>
|
|
218
|
+
* ```
|
|
219
|
+
* */
|
|
220
|
+
declare function AccordionItemContent(props: AccordionItemContentProps): JSX_2.Element;
|
|
221
|
+
export { AccordionItemContent }
|
|
222
|
+
export { AccordionItemContent as AccordionItemContent_alias_1 }
|
|
223
|
+
|
|
224
|
+
declare type AccordionItemContentProps = Accordion_2.ItemContentProps & AccordionVariantProps;
|
|
225
|
+
export { AccordionItemContentProps }
|
|
226
|
+
export { AccordionItemContentProps as AccordionItemContentProps_alias_1 }
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* A grouped item for the Accordion component.
|
|
230
|
+
* @definition [ARK docs](https://ark-ui.com/react/docs/components/accordion)
|
|
231
|
+
* @definition [Accordion docs](https://cerberus.digitalu.design/react/accordion)
|
|
232
|
+
* @example
|
|
233
|
+
* ```tsx
|
|
234
|
+
* <Accordion>
|
|
235
|
+
* <AccordionItemGroup heading="Accordion Item 1" value="one">
|
|
236
|
+
* Accordion Item 1 content
|
|
237
|
+
* </AccordionItemGroup>
|
|
238
|
+
* </Accordion>
|
|
239
|
+
* ```
|
|
240
|
+
*/
|
|
241
|
+
declare function AccordionItemGroup(props: PropsWithChildren<AccordionItemGroupProps>): JSX_2.Element;
|
|
242
|
+
export { AccordionItemGroup }
|
|
243
|
+
export { AccordionItemGroup as AccordionItemGroup_alias_1 }
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* This module contains an abstraction of the AccordionItem components.
|
|
247
|
+
* @module
|
|
248
|
+
*/
|
|
249
|
+
declare interface AccordionItemGroupBaseProps extends Accordion_2.ItemProps {
|
|
250
|
+
/**
|
|
251
|
+
* The heading of the accordion item to open and close the content.
|
|
252
|
+
*/
|
|
253
|
+
heading: string;
|
|
254
|
+
/**
|
|
255
|
+
* The position of the arrow indicator.
|
|
256
|
+
*/
|
|
257
|
+
indicatorPosition?: 'start' | 'end';
|
|
258
|
+
}
|
|
259
|
+
export { AccordionItemGroupBaseProps }
|
|
260
|
+
export { AccordionItemGroupBaseProps as AccordionItemGroupBaseProps_alias_1 }
|
|
261
|
+
|
|
262
|
+
declare type AccordionItemGroupProps = AccordionItemGroupBaseProps & AccordionVariantProps;
|
|
263
|
+
export { AccordionItemGroupProps }
|
|
264
|
+
export { AccordionItemGroupProps as AccordionItemGroupProps_alias_1 }
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* The indicator for the Accordion component.
|
|
268
|
+
* @definition [ARK docs](https://ark-ui.com/react/docs/components/accordion)
|
|
269
|
+
* @definition [Accordion docs](https://cerberus.digitalu.design/react/accordion)
|
|
270
|
+
* @example
|
|
271
|
+
* ```tsx
|
|
272
|
+
* <Accordion>
|
|
273
|
+
* <AccordionItem value="one">
|
|
274
|
+
* <AccordionTrigger>
|
|
275
|
+
* Accordion Item 1
|
|
276
|
+
* <AccordionIndicator />
|
|
277
|
+
* </AccordionTrigger>
|
|
278
|
+
* <AccordionContent>Accordion Item 1 content</AccordionContent>
|
|
279
|
+
* </AccordionItem>
|
|
280
|
+
* </Accordion>
|
|
281
|
+
* ```
|
|
282
|
+
* */
|
|
283
|
+
declare function AccordionItemIndicator(props: AccordionItemIndicatorProps): JSX_2.Element;
|
|
284
|
+
export { AccordionItemIndicator }
|
|
285
|
+
export { AccordionItemIndicator as AccordionItemIndicator_alias_1 }
|
|
286
|
+
|
|
287
|
+
declare type AccordionItemIndicatorProps = Accordion_2.ItemIndicatorProps & AccordionVariantProps;
|
|
288
|
+
export { AccordionItemIndicatorProps }
|
|
289
|
+
export { AccordionItemIndicatorProps as AccordionItemIndicatorProps_alias_1 }
|
|
290
|
+
|
|
291
|
+
declare type AccordionItemProps = Accordion_2.ItemProps & AccordionVariantProps;
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* The trigger for the Accordion component.
|
|
295
|
+
* @definition [ARK docs](https://ark-ui.com/react/docs/components/accordion)
|
|
296
|
+
* @definition [Accordion docs](https://cerberus.digitalu.design/react/accordion)
|
|
297
|
+
* @example
|
|
298
|
+
* ```tsx
|
|
299
|
+
* <Accordion>
|
|
300
|
+
* <AccordionItem value="one">
|
|
301
|
+
* <AccordionTrigger>
|
|
302
|
+
* Accordion Item 1
|
|
303
|
+
* <AccordionIndicator />
|
|
304
|
+
* </AccordionTrigger>
|
|
305
|
+
* <AccordionContent>Accordion Item 1 content</AccordionContent>
|
|
306
|
+
* </AccordionItem>
|
|
307
|
+
* </Accordion>
|
|
308
|
+
* ```
|
|
309
|
+
*/
|
|
310
|
+
declare function AccordionItemTrigger(props: AccordionItemTriggerProps): JSX_2.Element;
|
|
311
|
+
export { AccordionItemTrigger }
|
|
312
|
+
export { AccordionItemTrigger as AccordionItemTrigger_alias_1 }
|
|
313
|
+
|
|
314
|
+
declare type AccordionItemTriggerProps = Accordion_2.ItemTriggerProps & AccordionVariantProps;
|
|
315
|
+
export { AccordionItemTriggerProps }
|
|
316
|
+
export { AccordionItemTriggerProps as AccordionItemTriggerProps_alias_1 }
|
|
317
|
+
|
|
318
|
+
declare type AccordionProps = Accordion_2.RootProps & AccordionVariantProps;
|
|
319
|
+
export { AccordionProps }
|
|
320
|
+
export { AccordionProps as AccordionProps_alias_1 }
|
|
321
|
+
|
|
153
322
|
export { Activator }
|
|
154
323
|
|
|
155
324
|
export { Activators }
|
|
@@ -324,8 +493,7 @@ export { BaseConfirmOptions as BaseConfirmOptions_alias_1 }
|
|
|
324
493
|
* This module exports the NotificationDescription component.
|
|
325
494
|
* @module
|
|
326
495
|
*/
|
|
327
|
-
declare
|
|
328
|
-
}
|
|
496
|
+
declare type BaseNotificationDescriptionProps = HTMLAttributes<HTMLParagraphElement>;
|
|
329
497
|
export { BaseNotificationDescriptionProps }
|
|
330
498
|
export { BaseNotificationDescriptionProps as BaseNotificationDescriptionProps_alias_1 }
|
|
331
499
|
|
|
@@ -333,8 +501,7 @@ export { BaseNotificationDescriptionProps as BaseNotificationDescriptionProps_al
|
|
|
333
501
|
* This module exports the NotificationHeading component.
|
|
334
502
|
* @module
|
|
335
503
|
*/
|
|
336
|
-
declare
|
|
337
|
-
}
|
|
504
|
+
declare type BaseNotificationHeadingProps = HTMLAttributes<HTMLParagraphElement>;
|
|
338
505
|
export { BaseNotificationHeadingProps }
|
|
339
506
|
export { BaseNotificationHeadingProps as BaseNotificationHeadingProps_alias_1 }
|
|
340
507
|
|
|
@@ -376,8 +543,7 @@ export { Checkbox as Checkbox_alias_1 }
|
|
|
376
543
|
* This module contains substitute icons for the Checkbox component.
|
|
377
544
|
* @module
|
|
378
545
|
*/
|
|
379
|
-
declare
|
|
380
|
-
}
|
|
546
|
+
export declare type CheckboxIconProps = SVGProps<SVGSVGElement>;
|
|
381
547
|
|
|
382
548
|
/**
|
|
383
549
|
* This module contains the Checkbox component.
|
|
@@ -531,8 +697,7 @@ declare function ConfirmModal(props: PropsWithChildren<ConfirmModalProviderProps
|
|
|
531
697
|
export { ConfirmModal }
|
|
532
698
|
export { ConfirmModal as ConfirmModal_alias_1 }
|
|
533
699
|
|
|
534
|
-
declare
|
|
535
|
-
}
|
|
700
|
+
declare type ConfirmModalProviderProps = PropsWithChildren<unknown>;
|
|
536
701
|
export { ConfirmModalProviderProps }
|
|
537
702
|
export { ConfirmModalProviderProps as ConfirmModalProviderProps_alias_1 }
|
|
538
703
|
|
|
@@ -582,8 +747,7 @@ declare function CTAModal(props: PropsWithChildren<CTAModalProviderProps>): JSX_
|
|
|
582
747
|
export { CTAModal }
|
|
583
748
|
export { CTAModal as CTAModal_alias_1 }
|
|
584
749
|
|
|
585
|
-
declare
|
|
586
|
-
}
|
|
750
|
+
declare type CTAModalProviderProps = PropsWithChildren<unknown>;
|
|
587
751
|
export { CTAModalProviderProps }
|
|
588
752
|
export { CTAModalProviderProps as CTAModalProviderProps_alias_1 }
|
|
589
753
|
|
|
@@ -616,6 +780,261 @@ declare const DateFormats: {
|
|
|
616
780
|
export { DateFormats }
|
|
617
781
|
export { DateFormats as DateFormats_alias_1 }
|
|
618
782
|
|
|
783
|
+
/**
|
|
784
|
+
* The main context provider for the DatePicker family components.
|
|
785
|
+
* @definition [Date Picker docs](https://cerberus.digitalu.design/react/date-picker)
|
|
786
|
+
* @example
|
|
787
|
+
* ```tsx
|
|
788
|
+
* <Field>
|
|
789
|
+
* <DatePicker name="start_date">
|
|
790
|
+
* <DatePickerLabel>Start date</DatePickerLabel>
|
|
791
|
+
* <DatePickerInput />
|
|
792
|
+
* <DatePickerCalendar />
|
|
793
|
+
* </DatePicker>
|
|
794
|
+
* </Field>
|
|
795
|
+
* ```
|
|
796
|
+
*/
|
|
797
|
+
declare function DatePicker(props: DatePickerRootProps): JSX_2.Element;
|
|
798
|
+
export { DatePicker }
|
|
799
|
+
export { DatePicker as DatePicker_alias_1 }
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* An abstraction of the DatePicker content components that contain the
|
|
803
|
+
* different calendar views and controls.
|
|
804
|
+
* @definition [Date Picker docs](https://cerberus.digitalu.design/react/date-picker)
|
|
805
|
+
* @example
|
|
806
|
+
* ```tsx
|
|
807
|
+
* <Field>
|
|
808
|
+
* <DatePicker name="start_date">
|
|
809
|
+
* <DatePickerLabel>Start date</DatePickerLabel>
|
|
810
|
+
* <DatePickerInput />
|
|
811
|
+
* <DatePickerCalendar />
|
|
812
|
+
* </DatePicker>
|
|
813
|
+
* </Field>
|
|
814
|
+
* ```
|
|
815
|
+
*/
|
|
816
|
+
declare function DatePickerCalendar(): JSX_2.Element;
|
|
817
|
+
export { DatePickerCalendar }
|
|
818
|
+
export { DatePickerCalendar as DatePickerCalendar_alias_1 }
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* The content component for the DatePicker which contains the calendar.
|
|
822
|
+
* @definition [Date Picker docs](https://cerberus.digitalu.design/react/date-picker)
|
|
823
|
+
* @example
|
|
824
|
+
* ```tsx
|
|
825
|
+
* <Field>
|
|
826
|
+
* <DatePicker name="start_date">
|
|
827
|
+
* <DatePickerLabel>Start date</DatePickerLabel>
|
|
828
|
+
* <DatePickerInput />
|
|
829
|
+
* <DatePickerCalendar />
|
|
830
|
+
* </DatePicker>
|
|
831
|
+
* </Field>
|
|
832
|
+
* ```
|
|
833
|
+
*/
|
|
834
|
+
declare function DatePickerContent(props: DatePickerContentProps): JSX_2.Element;
|
|
835
|
+
export { DatePickerContent }
|
|
836
|
+
export { DatePickerContent as DatePickerContent_alias_1 }
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* The context component for the DatePicker which provides the DatePicker state.
|
|
840
|
+
* @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)
|
|
841
|
+
* @example
|
|
842
|
+
* ```tsx
|
|
843
|
+
* <DatePickerContext />
|
|
844
|
+
* ```
|
|
845
|
+
*/
|
|
846
|
+
declare const DatePickerContext: (props: DatePicker_2.ContextProps) => ReactNode;
|
|
847
|
+
export { DatePickerContext }
|
|
848
|
+
export { DatePickerContext as DatePickerContext_alias_1 }
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
* The day view component for the DatePicker.
|
|
852
|
+
* @definition [Date Picker docs](https://cerberus.digitalu.design/react/date-picker)
|
|
853
|
+
* @example
|
|
854
|
+
* ```tsx
|
|
855
|
+
* <Field>
|
|
856
|
+
* <DatePicker name="start_date">
|
|
857
|
+
* <DatePickerLabel>Start date</DatePickerLabel>
|
|
858
|
+
* <DatePickerInput />
|
|
859
|
+
* <DatePickerCalendar />
|
|
860
|
+
* </DatePicker>
|
|
861
|
+
* </Field>
|
|
862
|
+
* ```
|
|
863
|
+
*/
|
|
864
|
+
declare function DatePickerDayView(props: Omit<DatePickerViewProps, 'view'>): JSX_2.Element;
|
|
865
|
+
export { DatePickerDayView }
|
|
866
|
+
export { DatePickerDayView as DatePickerDayView_alias_1 }
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* The input component for the DatePicker.
|
|
870
|
+
* @definition [Date Picker docs](https://cerberus.digitalu.design/react/date-picker)
|
|
871
|
+
* @example
|
|
872
|
+
* ```tsx
|
|
873
|
+
* <Field>
|
|
874
|
+
* <DatePicker name="start_date">
|
|
875
|
+
* <DatePickerLabel>Start date</DatePickerLabel>
|
|
876
|
+
* <DatePickerInput />
|
|
877
|
+
* <DatePickerCalendar />
|
|
878
|
+
* </DatePicker>
|
|
879
|
+
* </Field>
|
|
880
|
+
* ```
|
|
881
|
+
*/
|
|
882
|
+
declare function DatePickerInput(props: DatePickerInputProps): JSX_2.Element;
|
|
883
|
+
export { DatePickerInput }
|
|
884
|
+
export { DatePickerInput as DatePickerInput_alias_1 }
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* The label component for the DatePicker.
|
|
888
|
+
* @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)
|
|
889
|
+
* @example
|
|
890
|
+
* ```tsx
|
|
891
|
+
* <DatePickerLabel>
|
|
892
|
+
* <DatePickerLabel.Label>...</DatePickerLabel.Label>
|
|
893
|
+
* </DatePickerLabel>
|
|
894
|
+
* ```
|
|
895
|
+
*/
|
|
896
|
+
declare function DatePickerLabel(props: DatePickerLabelProps): JSX_2.Element;
|
|
897
|
+
export { DatePickerLabel }
|
|
898
|
+
export { DatePickerLabel as DatePickerLabel_alias_1 }
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* The month view component for the DatePicker.
|
|
902
|
+
* @definition [Date Picker docs](https://cerberus.digitalu.design/react/date-picker)
|
|
903
|
+
* @example
|
|
904
|
+
* ```tsx
|
|
905
|
+
* <Field>
|
|
906
|
+
* <DatePicker name="start_date">
|
|
907
|
+
* <DatePickerLabel>Start date</DatePickerLabel>
|
|
908
|
+
* <DatePickerInput />
|
|
909
|
+
* <DatePickerCalendar />
|
|
910
|
+
* </DatePicker>
|
|
911
|
+
* </Field>
|
|
912
|
+
* ```
|
|
913
|
+
*/
|
|
914
|
+
declare function DatePickerMonthView(props: Omit<DatePickerViewProps, 'view'>): JSX_2.Element;
|
|
915
|
+
export { DatePickerMonthView }
|
|
916
|
+
export { DatePickerMonthView as DatePickerMonthView_alias_1 }
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* The table component for the DatePicker.
|
|
920
|
+
* @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)
|
|
921
|
+
* @example
|
|
922
|
+
* ```tsx
|
|
923
|
+
* <DatePickerTable />
|
|
924
|
+
* ```
|
|
925
|
+
*/
|
|
926
|
+
declare function DatePickerTable(props: DatePickerTableProps): JSX_2.Element;
|
|
927
|
+
export { DatePickerTable }
|
|
928
|
+
export { DatePickerTable as DatePickerTable_alias_1 }
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* The cell component for the DatePicker table.
|
|
932
|
+
* @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)
|
|
933
|
+
* @example
|
|
934
|
+
* ```tsx
|
|
935
|
+
* <DatePickerTableCell />
|
|
936
|
+
* ```
|
|
937
|
+
*/
|
|
938
|
+
declare function DatePickerTableCell(props: DatePickerTableCellProps): JSX_2.Element;
|
|
939
|
+
export { DatePickerTableCell }
|
|
940
|
+
export { DatePickerTableCell as DatePickerTableCell_alias_1 }
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* The cell component for the DatePicker table.
|
|
944
|
+
* @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)
|
|
945
|
+
* @example
|
|
946
|
+
* ```tsx
|
|
947
|
+
* <DatePickerTableCell />
|
|
948
|
+
* ```
|
|
949
|
+
*/
|
|
950
|
+
declare function DatePickerTableCellTrigger(props: DatePickerTableCellTriggerProps): JSX_2.Element;
|
|
951
|
+
export { DatePickerTableCellTrigger }
|
|
952
|
+
export { DatePickerTableCellTrigger as DatePickerTableCellTrigger_alias_1 }
|
|
953
|
+
|
|
954
|
+
/**
|
|
955
|
+
* The header component for the DatePicker table.
|
|
956
|
+
* @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)
|
|
957
|
+
* @example
|
|
958
|
+
* ```tsx
|
|
959
|
+
* <DatePickerTableHeader />
|
|
960
|
+
* ```
|
|
961
|
+
*/
|
|
962
|
+
declare function DatePickerTableHeader(props: DatePickerTableHeaderProps): JSX_2.Element;
|
|
963
|
+
export { DatePickerTableHeader }
|
|
964
|
+
export { DatePickerTableHeader as DatePickerTableHeader_alias_1 }
|
|
965
|
+
|
|
966
|
+
/**
|
|
967
|
+
* The trigger component for the DatePicker which opens the calendar.
|
|
968
|
+
* @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)
|
|
969
|
+
* @example
|
|
970
|
+
* ```tsx
|
|
971
|
+
* <DatePickerTrigger />
|
|
972
|
+
* ```
|
|
973
|
+
*/
|
|
974
|
+
declare function DatePickerTrigger(props: DatePickerTriggerProps): JSX_2.Element;
|
|
975
|
+
export { DatePickerTrigger }
|
|
976
|
+
export { DatePickerTrigger as DatePickerTrigger_alias_1 }
|
|
977
|
+
|
|
978
|
+
/**
|
|
979
|
+
* The view container which wraps the control and content components.
|
|
980
|
+
* @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)
|
|
981
|
+
* @example
|
|
982
|
+
* ```tsx
|
|
983
|
+
* <DatePickerView />
|
|
984
|
+
* ```
|
|
985
|
+
*/
|
|
986
|
+
declare const DatePickerView: ForwardRefExoticComponent<DatePicker_2.ViewProps & RefAttributes<HTMLDivElement>>;
|
|
987
|
+
export { DatePickerView }
|
|
988
|
+
export { DatePickerView as DatePickerView_alias_1 }
|
|
989
|
+
|
|
990
|
+
/**
|
|
991
|
+
* The control component for the DatePicker which wraps the triggers to switch
|
|
992
|
+
* between calendar views.
|
|
993
|
+
* @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)
|
|
994
|
+
* @example
|
|
995
|
+
* ```tsx
|
|
996
|
+
* <DatePickerViewControl>
|
|
997
|
+
* <PrevTrigger />
|
|
998
|
+
* <ViewTrigger />
|
|
999
|
+
* <NextTrigger />
|
|
1000
|
+
* </DatePickerViewControl>
|
|
1001
|
+
* ```
|
|
1002
|
+
*/
|
|
1003
|
+
declare function DatePickerViewControl(props: DatePickerViewControlProps): JSX_2.Element;
|
|
1004
|
+
export { DatePickerViewControl }
|
|
1005
|
+
export { DatePickerViewControl as DatePickerViewControl_alias_1 }
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* An abstraction of the DatePicker control that contains the prev, view, and
|
|
1009
|
+
* next triggers which control the calendar output.
|
|
1010
|
+
* @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)
|
|
1011
|
+
* @example
|
|
1012
|
+
* ```tsx
|
|
1013
|
+
* <DatePickerViewControlGroup />
|
|
1014
|
+
* ```
|
|
1015
|
+
*/
|
|
1016
|
+
declare function DatePickerViewControlGroup(props: DatePickerViewControlProps): JSX_2.Element;
|
|
1017
|
+
export { DatePickerViewControlGroup }
|
|
1018
|
+
export { DatePickerViewControlGroup as DatePickerViewControlGroup_alias_1 }
|
|
1019
|
+
|
|
1020
|
+
/**
|
|
1021
|
+
* The year view component for the DatePicker.
|
|
1022
|
+
* @definition [Date Picker docs](https://cerberus.digitalu.design/react/date-picker)
|
|
1023
|
+
* @example
|
|
1024
|
+
* ```tsx
|
|
1025
|
+
* <Field>
|
|
1026
|
+
* <DatePicker name="start_date">
|
|
1027
|
+
* <DatePickerLabel>Start date</DatePickerLabel>
|
|
1028
|
+
* <DatePickerInput />
|
|
1029
|
+
* <DatePickerCalendar />
|
|
1030
|
+
* </DatePicker>
|
|
1031
|
+
* </Field>
|
|
1032
|
+
* ```
|
|
1033
|
+
*/
|
|
1034
|
+
declare function DatePickerYearView(props: Omit<DatePickerViewProps, 'view'>): JSX_2.Element;
|
|
1035
|
+
export { DatePickerYearView }
|
|
1036
|
+
export { DatePickerYearView as DatePickerYearView_alias_1 }
|
|
1037
|
+
|
|
619
1038
|
export { defaultAnnouncements }
|
|
620
1039
|
|
|
621
1040
|
export { defaultCoordinates }
|
|
@@ -638,6 +1057,9 @@ export { DefaultThemes as DefaultThemes_alias_1 }
|
|
|
638
1057
|
|
|
639
1058
|
export declare interface DefinedIcons {
|
|
640
1059
|
avatar?: IconType;
|
|
1060
|
+
calendar?: IconType;
|
|
1061
|
+
calendarPrev?: IconType;
|
|
1062
|
+
calendarNext?: IconType;
|
|
641
1063
|
checkbox?: IconType;
|
|
642
1064
|
close?: IconType;
|
|
643
1065
|
confirmModal?: IconType;
|
|
@@ -1065,6 +1487,15 @@ declare interface FileUploaderProps extends InputHTMLAttributes<HTMLInputElement
|
|
|
1065
1487
|
export { FileUploaderProps }
|
|
1066
1488
|
export { FileUploaderProps as FileUploaderProps_alias_1 }
|
|
1067
1489
|
|
|
1490
|
+
/**
|
|
1491
|
+
* Formats a date string to US Military format.
|
|
1492
|
+
* @param date The date string to format (i.e., '2024-01-01')
|
|
1493
|
+
* @returns The formatted date string in US Military format (DD MMM YYYY)
|
|
1494
|
+
*/
|
|
1495
|
+
declare function formatISOToMilitary(date: string): string;
|
|
1496
|
+
export { formatISOToMilitary }
|
|
1497
|
+
export { formatISOToMilitary as formatISOToMilitary_alias_1 }
|
|
1498
|
+
|
|
1068
1499
|
/**
|
|
1069
1500
|
* Converts a string to US Military format. Used within the `useDate` hook.
|
|
1070
1501
|
* @param input The string to format
|
|
@@ -1105,6 +1536,17 @@ export { getClientRect }
|
|
|
1105
1536
|
|
|
1106
1537
|
export { getFirstCollision }
|
|
1107
1538
|
|
|
1539
|
+
/**
|
|
1540
|
+
* A utility function to get a value from local storage.
|
|
1541
|
+
* @param key The key to get from local storage.
|
|
1542
|
+
* @param defaultValue The fallback value if the key is not found.
|
|
1543
|
+
* @returns key or defaultValue
|
|
1544
|
+
*/
|
|
1545
|
+
declare function getLocalStorage<T extends string>(key: string, defaultValue: T): T;
|
|
1546
|
+
export { getLocalStorage }
|
|
1547
|
+
export { getLocalStorage as getLocalStorage_alias_1 }
|
|
1548
|
+
export { getLocalStorage as getLocalStorage_alias_2 }
|
|
1549
|
+
|
|
1108
1550
|
/**
|
|
1109
1551
|
* @deprecated use the {@link Menu} family instead
|
|
1110
1552
|
*/
|
|
@@ -1137,6 +1579,14 @@ declare interface GetPositionResult {
|
|
|
1137
1579
|
|
|
1138
1580
|
export { getScrollableAncestors }
|
|
1139
1581
|
|
|
1582
|
+
/**
|
|
1583
|
+
* This module exports a component for rendering text utilizing the styled-system JSX utility.
|
|
1584
|
+
* @module @cerberus-design/react/Text
|
|
1585
|
+
*/
|
|
1586
|
+
declare type Headings = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
1587
|
+
export { Headings }
|
|
1588
|
+
export { Headings as Headings_alias_1 }
|
|
1589
|
+
|
|
1140
1590
|
/**
|
|
1141
1591
|
* A component that allows the user to perform actions using an icon
|
|
1142
1592
|
* @see https://cerberus.digitalu.design/react/icon-button
|
|
@@ -1169,8 +1619,7 @@ export declare type IconType = CarbonIconType | ElementType;
|
|
|
1169
1619
|
*/
|
|
1170
1620
|
export declare function IndeterminateIcon(props: IndeterminateIconProps): JSX_2.Element;
|
|
1171
1621
|
|
|
1172
|
-
declare
|
|
1173
|
-
}
|
|
1622
|
+
export declare type IndeterminateIconProps = SVGProps<SVGSVGElement>;
|
|
1174
1623
|
|
|
1175
1624
|
declare type IndeterminateProgressBarProps = {
|
|
1176
1625
|
/**
|
|
@@ -1831,8 +2280,7 @@ declare type NotificationProps = NotificationBaseProps & NotificationVariantProp
|
|
|
1831
2280
|
export { NotificationProps }
|
|
1832
2281
|
export { NotificationProps as NotificationProps_alias_1 }
|
|
1833
2282
|
|
|
1834
|
-
declare
|
|
1835
|
-
}
|
|
2283
|
+
declare type NotificationsProviderProps = PortalProps;
|
|
1836
2284
|
export { NotificationsProviderProps }
|
|
1837
2285
|
export { NotificationsProviderProps as NotificationsProviderProps_alias_1 }
|
|
1838
2286
|
|
|
@@ -1969,8 +2417,7 @@ export { ProgressBar as ProgressBar_alias_1 }
|
|
|
1969
2417
|
* This module contains the ProgressBar component.
|
|
1970
2418
|
* @module
|
|
1971
2419
|
*/
|
|
1972
|
-
declare
|
|
1973
|
-
}
|
|
2420
|
+
declare type ProgressBarBaseProps = HTMLAttributes<HTMLDivElement>;
|
|
1974
2421
|
export { ProgressBarBaseProps }
|
|
1975
2422
|
export { ProgressBarBaseProps as ProgressBarBaseProps_alias_1 }
|
|
1976
2423
|
|
|
@@ -2009,8 +2456,7 @@ declare function PromptModal(props: PropsWithChildren<PromptModalProviderProps>)
|
|
|
2009
2456
|
export { PromptModal }
|
|
2010
2457
|
export { PromptModal as PromptModal_alias_1 }
|
|
2011
2458
|
|
|
2012
|
-
declare
|
|
2013
|
-
}
|
|
2459
|
+
declare type PromptModalProviderProps = PropsWithChildren<unknown>;
|
|
2014
2460
|
export { PromptModalProviderProps }
|
|
2015
2461
|
export { PromptModalProviderProps as PromptModalProviderProps_alias_1 }
|
|
2016
2462
|
|
|
@@ -2085,6 +2531,24 @@ declare type RadioRecipe = RecipeVariantProps<typeof radio>;
|
|
|
2085
2531
|
export { RadioRecipe }
|
|
2086
2532
|
export { RadioRecipe as RadioRecipe_alias_1 }
|
|
2087
2533
|
|
|
2534
|
+
/**
|
|
2535
|
+
* The input component for the DatePicker that uses ranges.
|
|
2536
|
+
* @definition [Date Picker docs](https://cerberus.digitalu.design/react/date-picker)
|
|
2537
|
+
* @example
|
|
2538
|
+
* ```tsx
|
|
2539
|
+
* <Field>
|
|
2540
|
+
* <DatePicker name="start_date" selection="range">
|
|
2541
|
+
* <DatePickerLabel>Start date</DatePickerLabel>
|
|
2542
|
+
* <RangePickerInput />
|
|
2543
|
+
* <DatePickerCalendar />
|
|
2544
|
+
* </DatePicker>
|
|
2545
|
+
* </Field>
|
|
2546
|
+
* ```
|
|
2547
|
+
*/
|
|
2548
|
+
declare function RangePickerInput(props: DatePickerInputProps): JSX_2.Element;
|
|
2549
|
+
export { RangePickerInput }
|
|
2550
|
+
export { RangePickerInput as RangePickerInput_alias_1 }
|
|
2551
|
+
|
|
2088
2552
|
export { rectIntersection }
|
|
2089
2553
|
|
|
2090
2554
|
/**
|
|
@@ -2161,6 +2625,16 @@ export { SensorResponse }
|
|
|
2161
2625
|
|
|
2162
2626
|
export { Sensors }
|
|
2163
2627
|
|
|
2628
|
+
/**
|
|
2629
|
+
* A utility function to set a value in local storage.
|
|
2630
|
+
* @param key The key to set in local storage.
|
|
2631
|
+
* @param value The value to set in local storage.
|
|
2632
|
+
*/
|
|
2633
|
+
declare function setLocalStorage<T>(key: string, value: T): void;
|
|
2634
|
+
export { setLocalStorage }
|
|
2635
|
+
export { setLocalStorage as setLocalStorage_alias_1 }
|
|
2636
|
+
export { setLocalStorage as setLocalStorage_alias_2 }
|
|
2637
|
+
|
|
2164
2638
|
/**
|
|
2165
2639
|
* This module contains the Avatar component.
|
|
2166
2640
|
* @module
|
|
@@ -2222,7 +2696,7 @@ declare interface ShowCTAModalOptions {
|
|
|
2222
2696
|
*/
|
|
2223
2697
|
actions: {
|
|
2224
2698
|
text: string;
|
|
2225
|
-
onClick:
|
|
2699
|
+
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
2226
2700
|
}[];
|
|
2227
2701
|
}
|
|
2228
2702
|
export { ShowCTAModalOptions }
|
|
@@ -2329,24 +2803,40 @@ export { StaticTagProps }
|
|
|
2329
2803
|
export { StaticTagProps as StaticTagProps_alias_1 }
|
|
2330
2804
|
|
|
2331
2805
|
/**
|
|
2332
|
-
* The
|
|
2333
|
-
* @definition [
|
|
2334
|
-
* @see https://cerberus.digitalu.design/react/tabs
|
|
2335
|
-
* @memberof module:Tabs
|
|
2806
|
+
* The trigger for the Tabs group.
|
|
2807
|
+
* @definition [Tabs docs](https://cerberus.digitalu.design/react/tabs)
|
|
2336
2808
|
* @example
|
|
2337
2809
|
* ```tsx
|
|
2338
2810
|
* <Tabs>
|
|
2339
|
-
*
|
|
2340
|
-
*
|
|
2811
|
+
* <TabList description="Profile settings">
|
|
2812
|
+
* <Tab value="overview">Overview</Tab>
|
|
2341
2813
|
* </TabList>
|
|
2342
2814
|
* <TabPanel tab="overview">...</TabPanel>
|
|
2343
2815
|
* </Tabs>
|
|
2344
2816
|
* ```
|
|
2345
2817
|
*/
|
|
2346
|
-
declare function Tab(props:
|
|
2818
|
+
declare function Tab(props: Tabs_2.TriggerProps): JSX_2.Element;
|
|
2347
2819
|
export { Tab }
|
|
2348
2820
|
export { Tab as Tab_alias_1 }
|
|
2349
2821
|
|
|
2822
|
+
/**
|
|
2823
|
+
* The indicator for the Tabs group which shows the active tab.
|
|
2824
|
+
* @definition [Tabs docs](https://cerberus.digitalu.design/react/tabs)
|
|
2825
|
+
* @example
|
|
2826
|
+
* ```tsx
|
|
2827
|
+
* <Tabs>
|
|
2828
|
+
* <TabList description="Profile settings">
|
|
2829
|
+
* <Tab value="overview">Overview</Tab>
|
|
2830
|
+
* <TabsIndicator />
|
|
2831
|
+
* </TabList>
|
|
2832
|
+
* <TabPanel tab="overview">...</TabPanel>
|
|
2833
|
+
* </Tabs>
|
|
2834
|
+
* ```
|
|
2835
|
+
*/
|
|
2836
|
+
declare function TabIndicator(props: Tabs_2.IndicatorProps): JSX_2.Element;
|
|
2837
|
+
export { TabIndicator }
|
|
2838
|
+
export { TabIndicator as TabIndicator_alias_1 }
|
|
2839
|
+
|
|
2350
2840
|
/**
|
|
2351
2841
|
* An accessible table component.
|
|
2352
2842
|
* @definition [ARIA Table pattern](https://www.w3.org/WAI/ARIA/apg/patterns/table/)
|
|
@@ -2376,95 +2866,45 @@ export { TableProps }
|
|
|
2376
2866
|
export { TableProps as TableProps_alias_1 }
|
|
2377
2867
|
|
|
2378
2868
|
/**
|
|
2379
|
-
*
|
|
2380
|
-
* @see https://cerberus.digitalu.design/react/tabs
|
|
2381
|
-
* @memberof module:Tabs
|
|
2382
|
-
* @example
|
|
2383
|
-
* ```tsx
|
|
2384
|
-
* <TabList description="Button details">
|
|
2385
|
-
* <Tab id="overview">Overview</Tab>
|
|
2386
|
-
* <Tab id="guidelines">Guidelines</Tab>
|
|
2387
|
-
* </TabList>
|
|
2388
|
-
* ```
|
|
2869
|
+
* @deprecated Use `TabsList` instead.
|
|
2389
2870
|
*/
|
|
2390
|
-
declare
|
|
2871
|
+
declare const TabList: typeof TabsList;
|
|
2391
2872
|
export { TabList }
|
|
2392
2873
|
export { TabList as TabList_alias_1 }
|
|
2393
2874
|
|
|
2394
2875
|
/**
|
|
2395
|
-
*
|
|
2396
|
-
* @
|
|
2397
|
-
*/
|
|
2398
|
-
declare interface TabListProps extends HTMLAttributes<HTMLDivElement> {
|
|
2399
|
-
/**
|
|
2400
|
-
* A description of what the tab list contains. Required for accessibility.
|
|
2401
|
-
*/
|
|
2402
|
-
description: string;
|
|
2403
|
-
}
|
|
2404
|
-
export { TabListProps }
|
|
2405
|
-
export { TabListProps as TabListProps_alias_1 }
|
|
2406
|
-
|
|
2407
|
-
/**
|
|
2408
|
-
* The TabPanel component provides a panel element to be used in a Tabs
|
|
2409
|
-
* provider.
|
|
2410
|
-
* @see https://cerberus.digitalu.design/react/tabs
|
|
2411
|
-
* @memberof module:Tabs
|
|
2876
|
+
* The content for the Tabs group.
|
|
2877
|
+
* @definition [Tabs docs](https://cerberus.digitalu.design/react/tabs)
|
|
2412
2878
|
* @example
|
|
2413
2879
|
* ```tsx
|
|
2414
|
-
* <
|
|
2415
|
-
*
|
|
2416
|
-
* </
|
|
2880
|
+
* <Tabs>
|
|
2881
|
+
* <TabList description="Profile settings">
|
|
2882
|
+
* <Tab value="overview">Overview</Tab>
|
|
2883
|
+
* </TabList>
|
|
2884
|
+
* <TabPanel tab="overview">...</TabPanel>
|
|
2885
|
+
* </Tabs>
|
|
2417
2886
|
* ```
|
|
2418
2887
|
*/
|
|
2419
|
-
declare function TabPanel(props:
|
|
2888
|
+
declare function TabPanel(props: Tabs_2.ContentProps): JSX_2.Element;
|
|
2420
2889
|
export { TabPanel }
|
|
2421
2890
|
export { TabPanel as TabPanel_alias_1 }
|
|
2422
2891
|
|
|
2423
|
-
/**
|
|
2424
|
-
* This module provides a TabPanel component.
|
|
2425
|
-
* @module
|
|
2426
|
-
*/
|
|
2427
|
-
declare interface TabPanelProps extends HTMLAttributes<HTMLDivElement> {
|
|
2428
|
-
/**
|
|
2429
|
-
* The unique value of the Tab that is associated with the TabPanel.
|
|
2430
|
-
*/
|
|
2431
|
-
tab: string;
|
|
2432
|
-
}
|
|
2433
|
-
export { TabPanelProps }
|
|
2434
|
-
export { TabPanelProps as TabPanelProps_alias_1 }
|
|
2435
|
-
|
|
2436
|
-
/**
|
|
2437
|
-
* This module provides a Tab component.
|
|
2438
|
-
* @module
|
|
2439
|
-
*/
|
|
2440
|
-
declare interface TabProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
2441
|
-
/**
|
|
2442
|
-
* The id of the tab that will be tracked as the active tab and used for aria
|
|
2443
|
-
* attributes.
|
|
2444
|
-
*/
|
|
2445
|
-
value: string;
|
|
2446
|
-
}
|
|
2447
|
-
export { TabProps }
|
|
2448
|
-
export { TabProps as TabProps_alias_1 }
|
|
2449
|
-
|
|
2450
2892
|
/**
|
|
2451
2893
|
* The Tabs component provides a context to manage tab state.
|
|
2452
|
-
* @
|
|
2894
|
+
* @definition [Tabs docs](https://cerberus.digitalu.design/react/tabs)
|
|
2453
2895
|
* @example
|
|
2454
2896
|
* ```tsx
|
|
2455
2897
|
* <Tabs cache>
|
|
2456
|
-
* <
|
|
2457
|
-
* <Tab
|
|
2458
|
-
* <Tab
|
|
2459
|
-
* </
|
|
2460
|
-
* <
|
|
2461
|
-
*
|
|
2462
|
-
* <TabPanel id="guidelines">Guidelines content</TabPanel>
|
|
2463
|
-
* </TabPanels>
|
|
2898
|
+
* <TabsList>
|
|
2899
|
+
* <Tab value="overview">Overview</Tab>
|
|
2900
|
+
* <Tab value="guidelines">Guidelines</Tab>
|
|
2901
|
+
* </TabsList>
|
|
2902
|
+
* <TabPanel value="overview">Overview content</TabPanel>
|
|
2903
|
+
* <TabPanel value="guidelines">Guidelines content</TabPanel>
|
|
2464
2904
|
* </Tabs>
|
|
2465
2905
|
* ```
|
|
2466
2906
|
*/
|
|
2467
|
-
declare function Tabs(props: PropsWithChildren<
|
|
2907
|
+
declare function Tabs(props: PropsWithChildren<TabsProviderProps>): JSX.Element;
|
|
2468
2908
|
export { Tabs }
|
|
2469
2909
|
export { Tabs as Tabs_alias_1 }
|
|
2470
2910
|
|
|
@@ -2477,47 +2917,62 @@ export { TabsContext as TabsContext_alias_1 }
|
|
|
2477
2917
|
* @module Tabs
|
|
2478
2918
|
*/
|
|
2479
2919
|
declare interface TabsContextValue {
|
|
2480
|
-
/**
|
|
2481
|
-
* The ref for the tabs.
|
|
2482
|
-
*/
|
|
2483
|
-
tabs: MutableRefObject<HTMLButtonElement[]>;
|
|
2484
|
-
/**
|
|
2485
|
-
* The id of the tabs component.
|
|
2486
|
-
*/
|
|
2487
|
-
id: string;
|
|
2488
|
-
/**
|
|
2489
|
-
* The active tab id.
|
|
2490
|
-
*/
|
|
2491
|
-
active: string;
|
|
2492
2920
|
/**
|
|
2493
2921
|
* The styles for the tabs.
|
|
2494
2922
|
*/
|
|
2495
|
-
styles:
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2923
|
+
styles: {
|
|
2924
|
+
list: Pretty<string>;
|
|
2925
|
+
trigger: Pretty<string>;
|
|
2926
|
+
content: Pretty<string>;
|
|
2927
|
+
indicator: Pretty<string>;
|
|
2928
|
+
};
|
|
2500
2929
|
}
|
|
2501
2930
|
export { TabsContextValue }
|
|
2502
2931
|
export { TabsContextValue as TabsContextValue_alias_1 }
|
|
2503
2932
|
|
|
2504
|
-
|
|
2933
|
+
/**
|
|
2934
|
+
* This module provides the Tabs family.
|
|
2935
|
+
* @module
|
|
2936
|
+
*/
|
|
2937
|
+
/**
|
|
2938
|
+
* The tab list container for the Tabs group.
|
|
2939
|
+
* @definition [Tabs docs](https://cerberus.digitalu.design/react/tabs)
|
|
2940
|
+
* @example
|
|
2941
|
+
* ```tsx
|
|
2942
|
+
* <Tabs>
|
|
2943
|
+
* <TabList description="Profile settings">
|
|
2944
|
+
* <Tab value="overview">Overview</Tab>
|
|
2945
|
+
* </TabList>
|
|
2946
|
+
* <TabPanel tab="overview">...</TabPanel>
|
|
2947
|
+
* </Tabs>
|
|
2948
|
+
* ```
|
|
2949
|
+
*/
|
|
2950
|
+
declare function TabsList(props: Tabs_2.ListProps): JSX_2.Element;
|
|
2951
|
+
export { TabsList }
|
|
2952
|
+
export { TabsList as TabsList_alias_1 }
|
|
2953
|
+
|
|
2954
|
+
declare interface TabsProviderBaseProps extends Tabs_2.RootProps {
|
|
2505
2955
|
/**
|
|
2506
2956
|
* A unique identifier for the Tabs component. Typically used when there are
|
|
2507
|
-
* multiple Tabs components on the same page
|
|
2957
|
+
* multiple Tabs components on the same page and you want to uniquely cache
|
|
2958
|
+
* the active tab state.
|
|
2508
2959
|
*/
|
|
2509
|
-
|
|
2960
|
+
uuid?: string;
|
|
2510
2961
|
/**
|
|
2511
|
-
* The default
|
|
2962
|
+
* The default tab to display when the component is first rendered.
|
|
2512
2963
|
*/
|
|
2513
|
-
|
|
2964
|
+
defaultValue?: string;
|
|
2514
2965
|
/**
|
|
2515
2966
|
* Whether to cache the active tab state in local storage.
|
|
2516
2967
|
*/
|
|
2517
2968
|
cache?: boolean;
|
|
2518
2969
|
}
|
|
2519
|
-
export {
|
|
2520
|
-
export {
|
|
2970
|
+
export { TabsProviderBaseProps }
|
|
2971
|
+
export { TabsProviderBaseProps as TabsProviderBaseProps_alias_1 }
|
|
2972
|
+
|
|
2973
|
+
declare type TabsProviderProps = TabsProviderBaseProps & TabsVariantProps;
|
|
2974
|
+
export { TabsProviderProps }
|
|
2975
|
+
export { TabsProviderProps as TabsProviderProps_alias_1 }
|
|
2521
2976
|
|
|
2522
2977
|
/**
|
|
2523
2978
|
* The Tag component is used to display a meta descriptions.
|
|
@@ -2587,6 +3042,22 @@ declare type TdProps = TdBaseProps & TdVariantProps;
|
|
|
2587
3042
|
export { TdProps }
|
|
2588
3043
|
export { TdProps as TdProps_alias_1 }
|
|
2589
3044
|
|
|
3045
|
+
/**
|
|
3046
|
+
* A component for rendering text utilizing the styled-system JSX utility.
|
|
3047
|
+
* @definition [Text docs](https://cerberus.digitalu.design/react/text)
|
|
3048
|
+
* @example
|
|
3049
|
+
* ```tsx
|
|
3050
|
+
* <Text as="h1" color="page.text.100" textStyle={{
|
|
3051
|
+
* base: 'heading-md',
|
|
3052
|
+
* md: 'heading-lg',
|
|
3053
|
+
* }}>
|
|
3054
|
+
* Hello, world!
|
|
3055
|
+
* </Text>
|
|
3056
|
+
*/
|
|
3057
|
+
declare function Text_2(props: PropsWithChildren<TextProps>): JSX_2.Element;
|
|
3058
|
+
export { Text_2 as Text }
|
|
3059
|
+
export { Text_2 as Text_alias_1 }
|
|
3060
|
+
|
|
2590
3061
|
/**
|
|
2591
3062
|
* A component that allows the user to input large blocks of text.
|
|
2592
3063
|
* @see https://cerberus.digitalu.design/react/textarea
|
|
@@ -2616,6 +3087,19 @@ declare type TextareaProps = InputVariantProps & TextareaBaseProps;
|
|
|
2616
3087
|
export { TextareaProps }
|
|
2617
3088
|
export { TextareaProps as TextareaProps_alias_1 }
|
|
2618
3089
|
|
|
3090
|
+
declare type TextElements = 'p' | 'strong' | 'em' | 'small' | 'span';
|
|
3091
|
+
export { TextElements }
|
|
3092
|
+
export { TextElements as TextElements_alias_1 }
|
|
3093
|
+
|
|
3094
|
+
declare interface TextProps extends BoxProps {
|
|
3095
|
+
/**
|
|
3096
|
+
* The element to render as. Defaults to 'p'.
|
|
3097
|
+
*/
|
|
3098
|
+
as?: TextElements | Headings;
|
|
3099
|
+
}
|
|
3100
|
+
export { TextProps }
|
|
3101
|
+
export { TextProps as TextProps_alias_1 }
|
|
3102
|
+
|
|
2619
3103
|
/**
|
|
2620
3104
|
* Styles for the Th component
|
|
2621
3105
|
* @see https://cerberus.digitalu.design/react/table
|
|
@@ -3040,12 +3524,6 @@ declare function useTabsContext(): TabsContextValue;
|
|
|
3040
3524
|
export { useTabsContext }
|
|
3041
3525
|
export { useTabsContext as useTabsContext_alias_1 }
|
|
3042
3526
|
|
|
3043
|
-
declare function useTabsKeyboardNavigation(): {
|
|
3044
|
-
ref: (tab: HTMLButtonElement) => void;
|
|
3045
|
-
};
|
|
3046
|
-
export { useTabsKeyboardNavigation }
|
|
3047
|
-
export { useTabsKeyboardNavigation as useTabsKeyboardNavigation_alias_1 }
|
|
3048
|
-
|
|
3049
3527
|
/**
|
|
3050
3528
|
* Provides a hook for using the theme for a single instance of the application.
|
|
3051
3529
|
* @see https://cerberus.digitalu.design/react/use-theme
|