@cerberus-design/react 0.14.2-next-a928afd → 0.14.2-next-0052cda
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 +111 -34
- 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 +119 -268
- 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/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/Notification.cjs +25 -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 +58 -207
- package/build/legacy/context/confirm-modal.cjs.map +1 -1
- package/build/legacy/context/cta-modal.cjs +57 -209
- package/build/legacy/context/cta-modal.cjs.map +1 -1
- package/build/legacy/context/notification-center.cjs +55 -206
- package/build/legacy/context/notification-center.cjs.map +1 -1
- package/build/legacy/context/prompt-modal.cjs +83 -233
- package/build/legacy/context/prompt-modal.cjs.map +1 -1
- package/build/legacy/index.cjs +950 -930
- package/build/legacy/index.cjs.map +1 -1
- package/build/modern/_tsup-dts-rollup.d.ts +111 -34
- 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-6BH5J5GF.js → chunk-CCTLGF5U.js} +18 -17
- package/build/modern/chunk-CCTLGF5U.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-FXLLRVAM.js → chunk-EMNBMH7Z.js} +13 -11
- package/build/modern/chunk-EMNBMH7Z.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-KWJ5FKX7.js → chunk-JQCRDZNI.js} +8 -6
- package/build/modern/chunk-JQCRDZNI.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-JJZQGR7A.js → chunk-KF35CYT4.js} +8 -6
- package/build/modern/chunk-KF35CYT4.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-CVTON5DQ.js → chunk-N3L3PEMF.js} +2 -2
- package/build/modern/chunk-NJSETNRL.js +68 -0
- package/build/modern/chunk-NJSETNRL.js.map +1 -0
- package/build/modern/{chunk-XXWR7UGH.js → chunk-QKZZHZL4.js} +22 -21
- package/build/modern/chunk-QKZZHZL4.js.map +1 -0
- package/build/modern/{chunk-KPUYKHLW.js → chunk-UMF2TWZN.js} +59 -9
- package/build/modern/chunk-UMF2TWZN.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-5OVH3INN.js → chunk-Z64YZ5IH.js} +18 -18
- package/build/modern/chunk-Z64YZ5IH.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/FileStatus.js +4 -7
- package/build/modern/components/FileUploader.js +3 -6
- package/build/modern/components/Input.js +2 -5
- 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 +6 -9
- package/build/modern/context/cta-modal.js +6 -9
- package/build/modern/context/notification-center.js +3 -6
- package/build/modern/context/prompt-modal.js +8 -11
- package/build/modern/index.js +105 -94
- 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 +79 -7
- package/src/components/DatePicker.server.tsx +2 -75
- package/src/components/FileStatus.tsx +5 -3
- package/src/components/FileUploader.tsx +3 -2
- package/src/components/Input.tsx +4 -2
- package/src/components/Notification.tsx +7 -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 +4 -2
- package/src/context/cta-modal.tsx +5 -4
- package/src/context/prompt-modal.tsx +4 -2
- package/src/index.ts +3 -1
- package/build/legacy/config/cerbIcons.cjs.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-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-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-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/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
- /package/build/modern/{chunk-CVTON5DQ.js.map → chunk-N3L3PEMF.js.map} +0 -0
|
@@ -1,26 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Portal
|
|
3
3
|
} from "./chunk-IQJDVFPP.js";
|
|
4
|
-
import {
|
|
5
|
-
useFieldContext
|
|
6
|
-
} from "./chunk-UZDVOIW5.js";
|
|
7
4
|
import {
|
|
8
5
|
DatePickerContext,
|
|
9
6
|
DatePickerTable,
|
|
10
7
|
DatePickerTableCell,
|
|
11
8
|
DatePickerTableCellTrigger,
|
|
12
9
|
DatePickerTableHeader,
|
|
13
|
-
DatePickerTrigger,
|
|
14
10
|
DatePickerView,
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
11
|
+
DatePickerViewControl
|
|
12
|
+
} from "./chunk-5EWCH7AI.js";
|
|
13
|
+
import {
|
|
14
|
+
IconButton
|
|
15
|
+
} from "./chunk-APD6IX5R.js";
|
|
16
|
+
import {
|
|
17
|
+
Button
|
|
18
|
+
} from "./chunk-EXGKZGML.js";
|
|
19
|
+
import {
|
|
20
|
+
useFieldContext
|
|
21
|
+
} from "./chunk-UZDVOIW5.js";
|
|
22
|
+
import {
|
|
23
|
+
useCerberusContext
|
|
24
|
+
} from "./chunk-GITT5645.js";
|
|
17
25
|
|
|
18
26
|
// src/components/DatePicker.client.tsx
|
|
19
27
|
import {
|
|
20
28
|
DatePicker as ArkDP
|
|
21
29
|
} from "@ark-ui/react";
|
|
22
|
-
import { datePicker } from "@cerberus/styled-system/recipes";
|
|
23
|
-
import { cx } from "@cerberus/styled-system/css";
|
|
30
|
+
import { datePicker, iconButton } from "@cerberus/styled-system/recipes";
|
|
31
|
+
import { css, cx } from "@cerberus/styled-system/css";
|
|
24
32
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
25
33
|
var datePickerStyles = datePicker();
|
|
26
34
|
function DatePicker(props) {
|
|
@@ -36,6 +44,46 @@ function DatePicker(props) {
|
|
|
36
44
|
}
|
|
37
45
|
);
|
|
38
46
|
}
|
|
47
|
+
function DatePickerViewControlGroup(props) {
|
|
48
|
+
const { icons } = useCerberusContext();
|
|
49
|
+
const { calendarPrev: PrevIcon, calendarNext: NextIcon } = icons;
|
|
50
|
+
return /* @__PURE__ */ jsxs(DatePickerViewControl, { ...props, children: [
|
|
51
|
+
/* @__PURE__ */ jsx(ArkDP.PrevTrigger, { asChild: true, children: /* @__PURE__ */ jsx(IconButton, { ariaLabel: "Previous", size: "sm", children: /* @__PURE__ */ jsx(PrevIcon, {}) }) }),
|
|
52
|
+
/* @__PURE__ */ jsx(ArkDP.ViewTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
53
|
+
Button,
|
|
54
|
+
{
|
|
55
|
+
className: css({
|
|
56
|
+
h: "2rem",
|
|
57
|
+
paddingInline: "md"
|
|
58
|
+
}),
|
|
59
|
+
shape: "rounded",
|
|
60
|
+
size: "sm",
|
|
61
|
+
usage: "ghost",
|
|
62
|
+
children: /* @__PURE__ */ jsx(ArkDP.RangeText, {})
|
|
63
|
+
}
|
|
64
|
+
) }),
|
|
65
|
+
/* @__PURE__ */ jsx(ArkDP.NextTrigger, { asChild: true, children: /* @__PURE__ */ jsx(IconButton, { ariaLabel: "Next", size: "sm", children: /* @__PURE__ */ jsx(NextIcon, {}) }) })
|
|
66
|
+
] });
|
|
67
|
+
}
|
|
68
|
+
function DatePickerTrigger(props) {
|
|
69
|
+
const { icons } = useCerberusContext();
|
|
70
|
+
const { calendar: CalendarIcon } = icons;
|
|
71
|
+
return /* @__PURE__ */ jsx(
|
|
72
|
+
ArkDP.Trigger,
|
|
73
|
+
{
|
|
74
|
+
...props,
|
|
75
|
+
className: cx(
|
|
76
|
+
props.className,
|
|
77
|
+
iconButton({
|
|
78
|
+
size: "sm",
|
|
79
|
+
usage: "ghost"
|
|
80
|
+
}),
|
|
81
|
+
datePickerStyles.trigger
|
|
82
|
+
),
|
|
83
|
+
children: /* @__PURE__ */ jsx(CalendarIcon, {})
|
|
84
|
+
}
|
|
85
|
+
);
|
|
86
|
+
}
|
|
39
87
|
function DatePickerInput(props) {
|
|
40
88
|
const { invalid, ...fieldStates } = useFieldContext();
|
|
41
89
|
return /* @__PURE__ */ jsxs(ArkDP.Control, { className: datePickerStyles.control, children: [
|
|
@@ -150,6 +198,8 @@ function DatePickerCalendar() {
|
|
|
150
198
|
|
|
151
199
|
export {
|
|
152
200
|
DatePicker,
|
|
201
|
+
DatePickerViewControlGroup,
|
|
202
|
+
DatePickerTrigger,
|
|
153
203
|
DatePickerInput,
|
|
154
204
|
RangePickerInput,
|
|
155
205
|
DatePickerContent,
|
|
@@ -158,4 +208,4 @@ export {
|
|
|
158
208
|
DatePickerYearView,
|
|
159
209
|
DatePickerCalendar
|
|
160
210
|
};
|
|
161
|
-
//# sourceMappingURL=chunk-
|
|
211
|
+
//# sourceMappingURL=chunk-UMF2TWZN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/DatePicker.client.tsx"],"sourcesContent":["'use client'\n\nimport {\n DatePicker as ArkDP,\n type DatePickerContentProps,\n type DatePickerInputProps,\n type DatePickerRootProps,\n type DatePickerTriggerProps,\n type DatePickerViewControlProps,\n type DatePickerViewProps,\n} from '@ark-ui/react'\nimport { Portal } from './Portal'\nimport { datePicker, iconButton } from '@cerberus/styled-system/recipes'\nimport { css, cx } from '@cerberus/styled-system/css'\nimport { useFieldContext } from '../context/field'\nimport {\n DatePickerView,\n DatePickerContext,\n DatePickerTable,\n DatePickerTableHeader,\n DatePickerTableCellTrigger,\n DatePickerTableCell,\n DatePickerViewControl,\n} from './DatePicker.server'\nimport { IconButton } from './IconButton'\nimport { Button } from './Button'\nimport { useCerberusContext } from '../context/cerberus'\n\n/**\n * This module contains the DatePicker client family components.\n * @module DatePicker:client\n */\n\n// We are not exposing this to the public API\nconst datePickerStyles = datePicker()\n\n/**\n * The main context provider for the DatePicker family components.\n * @definition [Date Picker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <Field>\n * <DatePicker name=\"start_date\">\n * <DatePickerLabel>Start date</DatePickerLabel>\n * <DatePickerInput />\n * <DatePickerCalendar />\n * </DatePicker>\n * </Field>\n * ```\n */\nexport function DatePicker(props: DatePickerRootProps) {\n const states = useFieldContext()\n\n // TODO: Remove this once the bug is fixed: https://github.com/chakra-ui/ark/issues/3112\n\n // There is a bug with the Root component that causes random date selection\n // onBlur after the first selection if the format prop is used.\n // const handleFormat = useCallback((value: DateValue) => {\n // return formatISOToMilitary(value.toString())\n // }, [])\n\n return (\n <ArkDP.Root\n {...props}\n {...states}\n positioning={{\n placement: 'bottom-start',\n }}\n />\n )\n}\n\n/**\n * An abstraction of the DatePicker control that contains the prev, view, and\n * next triggers which control the calendar output.\n * @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <DatePickerViewControlGroup />\n * ```\n */\nexport function DatePickerViewControlGroup(props: DatePickerViewControlProps) {\n const { icons } = useCerberusContext()\n const { calendarPrev: PrevIcon, calendarNext: NextIcon } = icons\n return (\n <DatePickerViewControl {...props}>\n <ArkDP.PrevTrigger asChild>\n <IconButton ariaLabel=\"Previous\" size=\"sm\">\n <PrevIcon />\n </IconButton>\n </ArkDP.PrevTrigger>\n\n <ArkDP.ViewTrigger asChild>\n <Button\n className={css({\n h: '2rem',\n paddingInline: 'md',\n })}\n shape=\"rounded\"\n size=\"sm\"\n usage=\"ghost\"\n >\n <ArkDP.RangeText />\n </Button>\n </ArkDP.ViewTrigger>\n\n <ArkDP.NextTrigger asChild>\n <IconButton ariaLabel=\"Next\" size=\"sm\">\n <NextIcon />\n </IconButton>\n </ArkDP.NextTrigger>\n </DatePickerViewControl>\n )\n}\n\n/**\n * The trigger component for the DatePicker which opens the calendar.\n * @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <DatePickerTrigger />\n * ```\n */\nexport function DatePickerTrigger(props: DatePickerTriggerProps) {\n const { icons } = useCerberusContext()\n const { calendar: CalendarIcon } = icons\n return (\n <ArkDP.Trigger\n {...props}\n className={cx(\n props.className,\n iconButton({\n size: 'sm',\n usage: 'ghost',\n }),\n datePickerStyles.trigger,\n )}\n >\n <CalendarIcon />\n </ArkDP.Trigger>\n )\n}\n\n/**\n * The input component for the DatePicker.\n * @definition [Date Picker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <Field>\n * <DatePicker name=\"start_date\">\n * <DatePickerLabel>Start date</DatePickerLabel>\n * <DatePickerInput />\n * <DatePickerCalendar />\n * </DatePicker>\n * </Field>\n * ```\n */\nexport function DatePickerInput(props: DatePickerInputProps) {\n const { invalid, ...fieldStates } = useFieldContext()\n return (\n <ArkDP.Control className={datePickerStyles.control}>\n <DatePickerTrigger />\n <ArkDP.Input\n {...props}\n {...fieldStates}\n {...(invalid && { 'aria-invalid': true })}\n className={cx(props.className, datePickerStyles.input)}\n placeholder={props.placeholder ?? 'DD MMM YYYY'}\n maxLength={11}\n />\n </ArkDP.Control>\n )\n}\n\n/**\n * The input component for the DatePicker that uses ranges.\n * @definition [Date Picker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <Field>\n * <DatePicker name=\"start_date\" selection=\"range\">\n * <DatePickerLabel>Start date</DatePickerLabel>\n * <RangePickerInput />\n * <DatePickerCalendar />\n * </DatePicker>\n * </Field>\n * ```\n */\nexport function RangePickerInput(props: DatePickerInputProps) {\n const { invalid, ...fieldStates } = useFieldContext()\n return (\n <ArkDP.Control data-range className={datePickerStyles.control}>\n <DatePickerTrigger />\n <ArkDP.Input\n {...props}\n {...fieldStates}\n {...(invalid && { 'aria-invalid': true })}\n data-range-input\n className={cx(props.className, datePickerStyles.input)}\n placeholder={props.placeholder ?? 'DD MMM YYYY'}\n maxLength={11}\n index={0}\n />\n <ArkDP.Input\n {...props}\n {...fieldStates}\n {...(invalid && { 'aria-invalid': true })}\n data-range-input\n data-range-end-input\n className={cx(props.className, datePickerStyles.input)}\n placeholder={props.placeholder ?? 'DD MMM YYYY'}\n maxLength={11}\n index={1}\n />\n </ArkDP.Control>\n )\n}\n\n/**\n * The content component for the DatePicker which contains the calendar.\n * @definition [Date Picker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <Field>\n * <DatePicker name=\"start_date\">\n * <DatePickerLabel>Start date</DatePickerLabel>\n * <DatePickerInput />\n * <DatePickerCalendar />\n * </DatePicker>\n * </Field>\n * ```\n */\nexport function DatePickerContent(props: DatePickerContentProps) {\n const { children, ...contentProps } = props\n return (\n <Portal>\n <ArkDP.Positioner className={datePickerStyles.positioner}>\n <ArkDP.Content\n {...contentProps}\n className={cx(contentProps.className, datePickerStyles.content)}\n >\n {children}\n </ArkDP.Content>\n </ArkDP.Positioner>\n </Portal>\n )\n}\n\n/**\n * The day view component for the DatePicker.\n * @definition [Date Picker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <Field>\n * <DatePicker name=\"start_date\">\n * <DatePickerLabel>Start date</DatePickerLabel>\n * <DatePickerInput />\n * <DatePickerCalendar />\n * </DatePicker>\n * </Field>\n * ```\n */\nexport function DatePickerDayView(props: Omit<DatePickerViewProps, 'view'>) {\n function isToday(date: ArkDP.DateValue): boolean {\n const today = new Date()\n const formatted = today.toISOString().split('T')[0]\n const arkDate = `${date.year}-${String(date.month).padStart(2, '0')}-${String(date.day).padStart(2, '0')}`\n return formatted === arkDate\n }\n\n function isPastDay(date: ArkDP.DateValue): boolean {\n const today = new Date()\n const arkDate = `${date.year}-${String(date.month).padStart(2, '0')}-${String(date.day).padStart(2, '0')}`\n return new Date(arkDate) < today\n }\n\n function getDayValue(date: ArkDP.DateValue): 'today' | 'past' | 'future' {\n if (isToday(date)) return 'today'\n if (isPastDay(date)) return 'past'\n return 'future'\n }\n\n return (\n <DatePickerView {...props} view=\"day\">\n <DatePickerContext>\n {(datePicker) => (\n <>\n <DatePickerViewControlGroup />\n\n <DatePickerTable>\n <ArkDP.TableHead>\n <ArkDP.TableRow>\n {datePicker.weekDays.map((weekDay, id) => (\n <DatePickerTableHeader key={id}>\n {weekDay.narrow}\n </DatePickerTableHeader>\n ))}\n </ArkDP.TableRow>\n </ArkDP.TableHead>\n\n <ArkDP.TableBody>\n {datePicker.weeks.map((week, id) => (\n <ArkDP.TableRow key={id}>\n {week.map((day, id) => (\n <DatePickerTableCell key={id} value={day}>\n <DatePickerTableCellTrigger\n data-date={getDayValue(day)}\n >\n {day.day}\n </DatePickerTableCellTrigger>\n </DatePickerTableCell>\n ))}\n </ArkDP.TableRow>\n ))}\n </ArkDP.TableBody>\n </DatePickerTable>\n </>\n )}\n </DatePickerContext>\n </DatePickerView>\n )\n}\n\n/**\n * The month view component for the DatePicker.\n * @definition [Date Picker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <Field>\n * <DatePicker name=\"start_date\">\n * <DatePickerLabel>Start date</DatePickerLabel>\n * <DatePickerInput />\n * <DatePickerCalendar />\n * </DatePicker>\n * </Field>\n * ```\n */\nexport function DatePickerMonthView(props: Omit<DatePickerViewProps, 'view'>) {\n return (\n <ArkDP.View {...props} view=\"month\">\n <ArkDP.Context>\n {(datePicker) => (\n <>\n <DatePickerViewControlGroup />\n\n <DatePickerTable>\n <ArkDP.TableBody>\n {datePicker\n .getMonthsGrid({ columns: 4, format: 'short' })\n .map((months, id) => (\n <ArkDP.TableRow key={id}>\n {months.map((month, id) => (\n <DatePickerTableCell key={id} value={month.value}>\n <DatePickerTableCellTrigger>\n {month.label}\n </DatePickerTableCellTrigger>\n </DatePickerTableCell>\n ))}\n </ArkDP.TableRow>\n ))}\n </ArkDP.TableBody>\n </DatePickerTable>\n </>\n )}\n </ArkDP.Context>\n </ArkDP.View>\n )\n}\n\n/**\n * The year view component for the DatePicker.\n * @definition [Date Picker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <Field>\n * <DatePicker name=\"start_date\">\n * <DatePickerLabel>Start date</DatePickerLabel>\n * <DatePickerInput />\n * <DatePickerCalendar />\n * </DatePicker>\n * </Field>\n * ```\n */\nexport function DatePickerYearView(props: Omit<DatePickerViewProps, 'view'>) {\n return (\n <ArkDP.View {...props} view=\"year\">\n <ArkDP.Context>\n {(datePicker) => (\n <>\n <DatePickerViewControlGroup />\n\n <DatePickerTable>\n <ArkDP.TableBody>\n {datePicker.getYearsGrid({ columns: 4 }).map((years, id) => (\n <ArkDP.TableRow key={id}>\n {years.map((year, id) => (\n <DatePickerTableCell key={id} value={year.value}>\n <DatePickerTableCellTrigger>\n {year.label}\n </DatePickerTableCellTrigger>\n </DatePickerTableCell>\n ))}\n </ArkDP.TableRow>\n ))}\n </ArkDP.TableBody>\n </DatePickerTable>\n </>\n )}\n </ArkDP.Context>\n </ArkDP.View>\n )\n}\n\n/**\n * An abstraction of the DatePicker content components that contain the\n * different calendar views and controls.\n * @definition [Date Picker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <Field>\n * <DatePicker name=\"start_date\">\n * <DatePickerLabel>Start date</DatePickerLabel>\n * <DatePickerInput />\n * <DatePickerCalendar />\n * </DatePicker>\n * </Field>\n * ```\n */\nexport function DatePickerCalendar() {\n return (\n <DatePickerContent>\n <DatePickerDayView />\n <DatePickerMonthView />\n <DatePickerYearView />\n </DatePickerContent>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;AAAA,EACE,cAAc;AAAA,OAOT;AAEP,SAAS,YAAY,kBAAkB;AACvC,SAAS,KAAK,UAAU;AAiDpB,SAgOM,UAhON,KAuBA,YAvBA;AA5BJ,IAAM,mBAAmB,WAAW;AA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qB;AACnC,SACE,qBAAC,qBACC;AAAA,wBAAC,qBAAkB;AAAA,IACnB,oBAAC,uBAAoB;AAAA,IACrB,oBAAC,sBAAmB;AAAA,KACtB;AAEJ;","names":["datePicker","id"]}
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
useFieldContext
|
|
3
3
|
} from "./chunk-UZDVOIW5.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./chunk-
|
|
5
|
+
useCerberusContext
|
|
6
|
+
} from "./chunk-GITT5645.js";
|
|
7
7
|
|
|
8
8
|
// src/components/Toggle.tsx
|
|
9
9
|
import { cx } from "@cerberus/styled-system/css";
|
|
@@ -16,7 +16,8 @@ function Toggle(props) {
|
|
|
16
16
|
const { size, describedBy, ...nativeProps } = props;
|
|
17
17
|
const styles = toggle({ size });
|
|
18
18
|
const { invalid, ...state } = useFieldContext();
|
|
19
|
-
const
|
|
19
|
+
const { icons } = useCerberusContext();
|
|
20
|
+
const CheckedIcon = icons.toggleChecked;
|
|
20
21
|
return /* @__PURE__ */ jsxs(
|
|
21
22
|
"span",
|
|
22
23
|
{
|
|
@@ -44,7 +45,7 @@ function Toggle(props) {
|
|
|
44
45
|
justify: "center"
|
|
45
46
|
})
|
|
46
47
|
),
|
|
47
|
-
children: /* @__PURE__ */ jsx(
|
|
48
|
+
children: /* @__PURE__ */ jsx(CheckedIcon, {})
|
|
48
49
|
}
|
|
49
50
|
)
|
|
50
51
|
]
|
|
@@ -55,4 +56,4 @@ function Toggle(props) {
|
|
|
55
56
|
export {
|
|
56
57
|
Toggle
|
|
57
58
|
};
|
|
58
|
-
//# sourceMappingURL=chunk-
|
|
59
|
+
//# sourceMappingURL=chunk-XQICKZH4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/Toggle.tsx"],"sourcesContent":["'use client'\n\nimport { cx } from '@cerberus/styled-system/css'\nimport { hstack, vstack } from '@cerberus/styled-system/patterns'\nimport {\n toggle,\n type ToggleVariantProps,\n} from '@cerberus/styled-system/recipes'\nimport type { InputHTMLAttributes } from 'react'\nimport { useFieldContext } from '../context/field'\nimport { useCerberusContext } from '../context/cerberus'\n\n/**\n * This module provides a toggle component.\n * @module\n */\n\nexport type ToggleBase = Omit<\n InputHTMLAttributes<HTMLInputElement>,\n 'size' | 'id' | 'value'\n> & {\n /**\n * The FieldMessage providing context for the Toggle.\n */\n describedBy?: string\n /**\n * A unique identifier for the Toggle. Required for accessibility.\n */\n id: string\n /**\n * The value of the Toggle.\n */\n value: string\n}\nexport type ToggleProps = ToggleBase & ToggleVariantProps\n\n/**\n * The Toggle component is used to switch between two states. Optionally\n * combine with the `useToggle` hook.\n * @see https://cerberus.digitalu.design/react/toggle\n * @example\n * ```tsx\n * const { checked, handleChange } = useToggle({ checked: 'toggle' })\n *\n * <Hstack justify=\"space-between\" w=\"full\">\n * <Field>\n * <Label htmlFor=\"toggle\">Show notifications</Label>\n * <Toggle\n * checked={checked === 'toggle'}\n * id=\"toggle\"\n * onChange={handleChange}\n * value=\"toggle\"\n * />\n * </Field>\n * </Hstack>\n * ```\n */\nexport function Toggle(props: ToggleProps) {\n const { size, describedBy, ...nativeProps } = props\n const styles = toggle({ size })\n const { invalid, ...state } = useFieldContext()\n const { icons } = useCerberusContext()\n const CheckedIcon = icons.toggleChecked\n\n return (\n <span\n className={cx('group', styles.track, hstack())}\n data-checked={props.checked || props.defaultChecked}\n >\n <input\n {...nativeProps}\n {...state}\n {...(describedBy && { 'aria-describedby': describedBy })}\n {...(invalid && { 'aria-invalid': true })}\n className={cx('peer', styles.input)}\n role=\"switch\"\n type=\"checkbox\"\n />\n <span\n className={cx(\n styles.thumb,\n vstack({\n justify: 'center',\n }),\n )}\n >\n <CheckedIcon />\n </span>\n </span>\n )\n}\n"],"mappings":";;;;;;;;AAEA,SAAS,UAAU;AACnB,SAAS,QAAQ,cAAc;AAC/B;AAAA,EACE;AAAA,OAEK;AA0DH,SAIE,KAJF;AARG,SAAS,OAAO,OAAoB;AACzC,QAAM,EAAE,MAAM,aAAa,GAAG,YAAY,IAAI;AAC9C,QAAM,SAAS,OAAO,EAAE,KAAK,CAAC;AAC9B,QAAM,EAAE,SAAS,GAAG,MAAM,IAAI,gBAAgB;AAC9C,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,cAAc,MAAM;AAE1B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,GAAG,SAAS,OAAO,OAAO,OAAO,CAAC;AAAA,MAC7C,gBAAc,MAAM,WAAW,MAAM;AAAA,MAErC;AAAA;AAAA,UAAC;AAAA;AAAA,YACE,GAAG;AAAA,YACH,GAAG;AAAA,YACH,GAAI,eAAe,EAAE,oBAAoB,YAAY;AAAA,YACrD,GAAI,WAAW,EAAE,gBAAgB,KAAK;AAAA,YACvC,WAAW,GAAG,QAAQ,OAAO,KAAK;AAAA,YAClC,MAAK;AAAA,YACL,MAAK;AAAA;AAAA,QACP;AAAA,QACA;AAAA,UAAC;AAAA;AAAA,YACC,WAAW;AAAA,cACT,OAAO;AAAA,cACP,OAAO;AAAA,gBACL,SAAS;AAAA,cACX,CAAC;AAAA,YACH;AAAA,YAEA,8BAAC,eAAY;AAAA;AAAA,QACf;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useCerberusContext
|
|
3
|
+
} from "./chunk-GITT5645.js";
|
|
4
|
+
|
|
5
|
+
// src/components/Accordion.client.tsx
|
|
6
|
+
import { Accordion as ArkAccordion } from "@ark-ui/react";
|
|
7
|
+
import { cx } from "@cerberus/styled-system/css";
|
|
8
|
+
import {
|
|
9
|
+
accordion
|
|
10
|
+
} from "@cerberus/styled-system/recipes";
|
|
11
|
+
import { jsx } from "react/jsx-runtime";
|
|
12
|
+
function AccordionItemIndicator(props) {
|
|
13
|
+
const { size, ...indicatorProps } = props;
|
|
14
|
+
const styles = accordion({ size });
|
|
15
|
+
const iconSize = size === "sm" ? 16 : "24";
|
|
16
|
+
const { icons } = useCerberusContext();
|
|
17
|
+
const ChevronDown = icons.accordionIndicator;
|
|
18
|
+
return /* @__PURE__ */ jsx(
|
|
19
|
+
ArkAccordion.ItemIndicator,
|
|
20
|
+
{
|
|
21
|
+
...indicatorProps,
|
|
22
|
+
className: cx(indicatorProps.className, styles.itemIndicator),
|
|
23
|
+
children: /* @__PURE__ */ jsx(ChevronDown, { size: iconSize })
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export {
|
|
29
|
+
AccordionItemIndicator
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=chunk-XZGXRRSQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/Accordion.client.tsx"],"sourcesContent":["'use client'\n\nimport { Accordion as ArkAccordion } from '@ark-ui/react'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n accordion,\n type AccordionVariantProps,\n} from '@cerberus/styled-system/recipes'\nimport { useCerberusContext } from '../context/cerberus'\n\nexport type AccordionItemIndicatorProps = ArkAccordion.ItemIndicatorProps &\n AccordionVariantProps\n\n/**\n * The indicator for the Accordion component.\n * @definition [ARK docs](https://ark-ui.com/react/docs/components/accordion)\n * @definition [Accordion docs](https://cerberus.digitalu.design/react/accordion)\n * @example\n * ```tsx\n * <Accordion>\n * <AccordionItem value=\"one\">\n * <AccordionTrigger>\n * Accordion Item 1\n * <AccordionIndicator />\n * </AccordionTrigger>\n * <AccordionContent>Accordion Item 1 content</AccordionContent>\n * </AccordionItem>\n * </Accordion>\n * ```\n * */\nexport function AccordionItemIndicator(props: AccordionItemIndicatorProps) {\n const { size, ...indicatorProps } = props\n const styles = accordion({ size })\n const iconSize = size === 'sm' ? 16 : '24'\n const { icons } = useCerberusContext()\n const ChevronDown = icons.accordionIndicator\n\n return (\n <ArkAccordion.ItemIndicator\n {...indicatorProps}\n className={cx(indicatorProps.className, styles.itemIndicator)}\n >\n <ChevronDown size={iconSize} />\n </ArkAccordion.ItemIndicator>\n )\n}\n"],"mappings":";;;;;AAEA,SAAS,aAAa,oBAAoB;AAC1C,SAAS,UAAU;AACnB;AAAA,EACE;AAAA,OAEK;AAmCD;AAZC,SAAS,uBAAuB,OAAoC;AACzE,QAAM,EAAE,MAAM,GAAG,eAAe,IAAI;AACpC,QAAM,SAAS,UAAU,EAAE,KAAK,CAAC;AACjC,QAAM,WAAW,SAAS,OAAO,KAAK;AACtC,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,cAAc,MAAM;AAE1B,SACE;AAAA,IAAC,aAAa;AAAA,IAAb;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,eAAe,WAAW,OAAO,aAAa;AAAA,MAE5D,8BAAC,eAAY,MAAM,UAAU;AAAA;AAAA,EAC/B;AAEJ;","names":[]}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Modal
|
|
3
|
-
} from "./chunk-BE4EOU2P.js";
|
|
4
|
-
import {
|
|
5
|
-
ModalDescription
|
|
6
|
-
} from "./chunk-Q7BRMIBR.js";
|
|
7
1
|
import {
|
|
8
2
|
ModalHeader
|
|
9
3
|
} from "./chunk-XY6WL55R.js";
|
|
10
4
|
import {
|
|
11
5
|
ModalHeading
|
|
12
6
|
} from "./chunk-2UXE5PDG.js";
|
|
7
|
+
import {
|
|
8
|
+
Modal
|
|
9
|
+
} from "./chunk-BE4EOU2P.js";
|
|
10
|
+
import {
|
|
11
|
+
ModalDescription
|
|
12
|
+
} from "./chunk-Q7BRMIBR.js";
|
|
13
13
|
import {
|
|
14
14
|
Portal
|
|
15
15
|
} from "./chunk-IQJDVFPP.js";
|
|
16
16
|
import {
|
|
17
17
|
IconButton
|
|
18
18
|
} from "./chunk-APD6IX5R.js";
|
|
19
|
+
import {
|
|
20
|
+
Avatar
|
|
21
|
+
} from "./chunk-GCQMH4QA.js";
|
|
19
22
|
import {
|
|
20
23
|
Button
|
|
21
24
|
} from "./chunk-EXGKZGML.js";
|
|
22
|
-
import {
|
|
23
|
-
Avatar
|
|
24
|
-
} from "./chunk-PVIMOXSO.js";
|
|
25
25
|
import {
|
|
26
26
|
Show
|
|
27
27
|
} from "./chunk-BUVVRQLZ.js";
|
|
28
|
-
import {
|
|
29
|
-
trapFocus
|
|
30
|
-
} from "./chunk-JIZQFTW6.js";
|
|
31
|
-
import {
|
|
32
|
-
$cerberusIcons
|
|
33
|
-
} from "./chunk-QMF5ZNDG.js";
|
|
34
28
|
import {
|
|
35
29
|
useModal
|
|
36
30
|
} from "./chunk-KGQG5JGW.js";
|
|
31
|
+
import {
|
|
32
|
+
useCerberusContext
|
|
33
|
+
} from "./chunk-GITT5645.js";
|
|
34
|
+
import {
|
|
35
|
+
trapFocus
|
|
36
|
+
} from "./chunk-JIZQFTW6.js";
|
|
37
37
|
|
|
38
38
|
// src/context/cta-modal.tsx
|
|
39
39
|
import {
|
|
@@ -52,9 +52,9 @@ function CTAModal(props) {
|
|
|
52
52
|
const { modalRef, show, close } = useModal();
|
|
53
53
|
const [content, setContent] = useState(null);
|
|
54
54
|
const focusTrap = trapFocus(modalRef);
|
|
55
|
-
const FallbackIcon = $cerberusIcons.confirmModal;
|
|
56
55
|
const confirmIcon = content?.icon;
|
|
57
|
-
const {
|
|
56
|
+
const { icons } = useCerberusContext();
|
|
57
|
+
const { close: CloseIcon, confirmModal: FallbackIcon } = icons;
|
|
58
58
|
const handleShow = useCallback(
|
|
59
59
|
(options) => {
|
|
60
60
|
const maxActions = 2;
|
|
@@ -151,4 +151,4 @@ export {
|
|
|
151
151
|
CTAModal,
|
|
152
152
|
useCTAModal
|
|
153
153
|
};
|
|
154
|
-
//# sourceMappingURL=chunk-
|
|
154
|
+
//# sourceMappingURL=chunk-Z64YZ5IH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/context/cta-modal.tsx"],"sourcesContent":["'use client'\n\nimport {\n createContext,\n useCallback,\n useContext,\n useMemo,\n useState,\n type MouseEvent,\n type MouseEventHandler,\n type PropsWithChildren,\n type ReactNode,\n} from 'react'\nimport { Portal } from '../components/Portal'\nimport { Button } from '../components/Button'\nimport { trapFocus } from '../aria-helpers/trap-focus.aria'\nimport { Show } from '../components/Show'\nimport { Modal } from '../components/Modal'\nimport { useModal } from '../hooks/useModal'\nimport { ModalHeader } from '../components/ModalHeader'\nimport { ModalHeading } from '../components/ModalHeading'\nimport { ModalDescription } from '../components/ModalDescription'\nimport { Avatar } from '../components/Avatar'\nimport { IconButton } from '../components/IconButton'\nimport { useCerberusContext } from './cerberus'\nimport { HStack } from '@cerberus/styled-system/jsx'\nimport { css } from '@cerberus/styled-system/css'\nimport { VStack } from '@cerberus/styled-system/jsx'\n\n/**\n * This module provides a context and hook for the cta modal.\n * @module\n */\n\nexport interface ShowCTAModalOptions {\n /**\n * The heading of the cta modal.\n */\n heading: string\n /**\n * The description of the cta modal.\n */\n description?: string\n /**\n * The icon used for the modal Avatar.\n */\n icon?: ReactNode\n /**\n * The actions for the cta modal. Max of 2 actions.\n */\n actions: {\n text: string\n onClick: MouseEventHandler<HTMLButtonElement>\n }[]\n}\n\nexport interface CTAModalValue {\n show: (options: ShowCTAModalOptions) => void\n}\n\nconst CTAModalContext = createContext<CTAModalValue | null>(null)\n\nexport type CTAModalProviderProps = PropsWithChildren<unknown>\n\n/**\n * Provides a CTA modal to the app.\n * @see https://cerberus.digitalu.design/react/cta-modal\n * @example\n * ```tsx\n * // Wrap the Provider around the root of the feature.\n * <CTAModal>\n * <SomeFeatureSection />\n * </CTAModal>\n *\n * // Use the hook to show the cta modal.\n * const cta = useCTAModal()\n *\n * const handleClick = useCallback(async () => {\n * const userConsent = await cta.show({\n * heading: 'Create or copy a Cohort',\n * description:\n * 'Create a new cohort or copy and existing one.',\n * icon: <Copy size={24} />,\n * actions: [\n * {\n * text: 'Create Cohort',\n * onClick: () => {},\n * {\n * text: 'Copy Cohort',\n * onClick: () => {}\n * }\n * })\n * setConsent(userConsent)\n * }, [cta])\n * ```\n */\nexport function CTAModal(props: PropsWithChildren<CTAModalProviderProps>) {\n const { modalRef, show, close } = useModal()\n const [content, setContent] = useState<ShowCTAModalOptions | null>(null)\n const focusTrap = trapFocus(modalRef)\n const confirmIcon = content?.icon\n\n const { icons } = useCerberusContext()\n const { close: CloseIcon, confirmModal: FallbackIcon } = icons\n\n const handleShow = useCallback(\n (options: ShowCTAModalOptions) => {\n const maxActions = 2\n if (options.actions.length > maxActions) {\n throw new Error(\n `CTA Modal only supports a maximum of ${maxActions} actions.`,\n )\n }\n setContent({ ...options })\n show()\n },\n [show],\n )\n\n const handleActionClick = useCallback(\n (event: MouseEvent<HTMLButtonElement>) => {\n const index = event.currentTarget.getAttribute('data-index')\n const action = content?.actions[Number(index)]\n const { onClick } = action || {}\n onClick?.(event)\n close()\n },\n [content, close],\n )\n\n const value = useMemo(\n () => ({\n show: handleShow,\n }),\n [handleShow],\n )\n\n return (\n <CTAModalContext.Provider value={value}>\n {props.children}\n\n <Portal>\n <Modal onKeyDown={focusTrap} ref={modalRef}>\n <span\n className={css({\n padding: 'md',\n position: 'absolute',\n right: 0,\n top: 0,\n zIndex: 'decorator',\n })}\n >\n <IconButton ariaLabel=\"Close modal\" onClick={close}>\n <CloseIcon />\n </IconButton>\n </span>\n\n <VStack gap=\"xl\" w=\"full\">\n <ModalHeader>\n <VStack gap=\"lg\" w=\"full\">\n <Avatar\n ariaLabel=\"\"\n gradient=\"charon-light\"\n icon={\n <Show\n when={Boolean(confirmIcon)}\n fallback={<FallbackIcon size={24} />}\n >\n {confirmIcon}\n </Show>\n }\n src=\"\"\n />\n <ModalHeading>{content?.heading}</ModalHeading>\n <ModalDescription>{content?.description}</ModalDescription>\n </VStack>\n </ModalHeader>\n\n <HStack gap=\"md\" w=\"full\">\n <Show when={Boolean(content?.actions?.length)}>\n {content?.actions?.map((action, index) => (\n <Button\n data-index={index}\n className={css({\n w: '1/2',\n })}\n key={index}\n onClick={handleActionClick}\n shape=\"rounded\"\n usage=\"outlined\"\n >\n {action.text}\n </Button>\n ))}\n </Show>\n </HStack>\n </VStack>\n </Modal>\n </Portal>\n </CTAModalContext.Provider>\n )\n}\n\nexport function useCTAModal(): CTAModalValue {\n const context = useContext(CTAModalContext)\n if (context === null) {\n throw new Error('useCTAModal must be used within a CTAModal Provider')\n }\n return context\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AAaP,SAAS,cAAc;AACvB,SAAS,WAAW;AACpB,SAAS,cAAc;AA8HT,cAMA,YANA;AA7Fd,IAAM,kBAAkB,cAAoC,IAAI;AAoCzD,SAAS,SAAS,OAAiD;AACxE,QAAM,EAAE,UAAU,MAAM,MAAM,IAAI,SAAS;AAC3C,QAAM,CAAC,SAAS,UAAU,IAAI,SAAqC,IAAI;AACvE,QAAM,YAAY,UAAU,QAAQ;AACpC,QAAM,cAAc,SAAS;AAE7B,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,EAAE,OAAO,WAAW,cAAc,aAAa,IAAI;AAEzD,QAAM,aAAa;AAAA,IACjB,CAAC,YAAiC;AAChC,YAAM,aAAa;AACnB,UAAI,QAAQ,QAAQ,SAAS,YAAY;AACvC,cAAM,IAAI;AAAA,UACR,wCAAwC,UAAU;AAAA,QACpD;AAAA,MACF;AACA,iBAAW,EAAE,GAAG,QAAQ,CAAC;AACzB,WAAK;AAAA,IACP;AAAA,IACA,CAAC,IAAI;AAAA,EACP;AAEA,QAAM,oBAAoB;AAAA,IACxB,CAAC,UAAyC;AACxC,YAAM,QAAQ,MAAM,cAAc,aAAa,YAAY;AAC3D,YAAM,SAAS,SAAS,QAAQ,OAAO,KAAK,CAAC;AAC7C,YAAM,EAAE,QAAQ,IAAI,UAAU,CAAC;AAC/B,gBAAU,KAAK;AACf,YAAM;AAAA,IACR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AO;AAAA;AAAA,UALH;AAAA,QAMP,CACD,GACH,GACF;AAAA,SACF;AAAA,OACF,GACF;AAAA,KACF;AAEJ;AAEO,SAAS,cAA6B;AAC3C,QAAM,UAAU,WAAW,eAAe;AAC1C,MAAI,YAAY,MAAM;AACpB,UAAM,IAAI,MAAM,qDAAqD;AAAA,EACvE;AACA,SAAO;AACT;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -2,18 +2,12 @@ import {
|
|
|
2
2
|
Accordion,
|
|
3
3
|
AccordionItem,
|
|
4
4
|
AccordionItemContent,
|
|
5
|
-
AccordionItemIndicator,
|
|
6
5
|
AccordionItemTrigger
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-QMF5ZNDG.js";
|
|
9
|
-
import "../chunk-CRII2HNX.js";
|
|
10
|
-
import "../chunk-E3PAEB7Y.js";
|
|
11
|
-
import "../chunk-HVKM54BA.js";
|
|
6
|
+
} from "../chunk-IGHMP4WA.js";
|
|
12
7
|
export {
|
|
13
8
|
Accordion,
|
|
14
9
|
AccordionItem,
|
|
15
10
|
AccordionItemContent,
|
|
16
|
-
AccordionItemIndicator,
|
|
17
11
|
AccordionItemTrigger
|
|
18
12
|
};
|
|
19
13
|
//# sourceMappingURL=Accordion.js.map
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AccordionItemGroup
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-TJCFYL5W.js";
|
|
3
|
+
} from "../chunk-JQCRDZNI.js";
|
|
5
4
|
import "../chunk-BUVVRQLZ.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-HVKM54BA.js";
|
|
5
|
+
import "../chunk-XZGXRRSQ.js";
|
|
6
|
+
import "../chunk-GITT5645.js";
|
|
7
|
+
import "../chunk-IGHMP4WA.js";
|
|
10
8
|
export {
|
|
11
9
|
AccordionItemGroup
|
|
12
10
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -2,13 +2,11 @@ import {
|
|
|
2
2
|
Admonition,
|
|
3
3
|
AdmonitionDescription,
|
|
4
4
|
AdmonitionHeading
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-NJSETNRL.js";
|
|
6
|
+
import "../chunk-ISCJ542I.js";
|
|
7
|
+
import "../chunk-GCQMH4QA.js";
|
|
7
8
|
import "../chunk-BUVVRQLZ.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-CRII2HNX.js";
|
|
10
|
-
import "../chunk-E3PAEB7Y.js";
|
|
11
|
-
import "../chunk-HVKM54BA.js";
|
|
9
|
+
import "../chunk-GITT5645.js";
|
|
12
10
|
export {
|
|
13
11
|
Admonition,
|
|
14
12
|
AdmonitionDescription,
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import {
|
|
2
3
|
Avatar
|
|
3
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-GCQMH4QA.js";
|
|
4
5
|
import "../chunk-BUVVRQLZ.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-CRII2HNX.js";
|
|
7
|
-
import "../chunk-E3PAEB7Y.js";
|
|
8
|
-
import "../chunk-HVKM54BA.js";
|
|
6
|
+
import "../chunk-GITT5645.js";
|
|
9
7
|
export {
|
|
10
8
|
Avatar
|
|
11
9
|
};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Checkbox
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-N24COMHJ.js";
|
|
5
5
|
import "../chunk-UZDVOIW5.js";
|
|
6
6
|
import "../chunk-BUVVRQLZ.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-CRII2HNX.js";
|
|
9
|
-
import "../chunk-E3PAEB7Y.js";
|
|
10
|
-
import "../chunk-HVKM54BA.js";
|
|
7
|
+
import "../chunk-GITT5645.js";
|
|
11
8
|
export {
|
|
12
9
|
Checkbox
|
|
13
10
|
};
|
|
@@ -6,18 +6,17 @@ import {
|
|
|
6
6
|
DatePickerDayView,
|
|
7
7
|
DatePickerInput,
|
|
8
8
|
DatePickerMonthView,
|
|
9
|
+
DatePickerTrigger,
|
|
10
|
+
DatePickerViewControlGroup,
|
|
9
11
|
DatePickerYearView,
|
|
10
12
|
RangePickerInput
|
|
11
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-UMF2TWZN.js";
|
|
12
14
|
import "../chunk-IQJDVFPP.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-BC5SZDYY.js";
|
|
15
|
+
import "../chunk-5EWCH7AI.js";
|
|
15
16
|
import "../chunk-APD6IX5R.js";
|
|
16
17
|
import "../chunk-EXGKZGML.js";
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-E3PAEB7Y.js";
|
|
20
|
-
import "../chunk-HVKM54BA.js";
|
|
18
|
+
import "../chunk-UZDVOIW5.js";
|
|
19
|
+
import "../chunk-GITT5645.js";
|
|
21
20
|
export {
|
|
22
21
|
DatePicker,
|
|
23
22
|
DatePickerCalendar,
|
|
@@ -25,6 +24,8 @@ export {
|
|
|
25
24
|
DatePickerDayView,
|
|
26
25
|
DatePickerInput,
|
|
27
26
|
DatePickerMonthView,
|
|
27
|
+
DatePickerTrigger,
|
|
28
|
+
DatePickerViewControlGroup,
|
|
28
29
|
DatePickerYearView,
|
|
29
30
|
RangePickerInput
|
|
30
31
|
};
|
|
@@ -5,17 +5,9 @@ import {
|
|
|
5
5
|
DatePickerTableCell,
|
|
6
6
|
DatePickerTableCellTrigger,
|
|
7
7
|
DatePickerTableHeader,
|
|
8
|
-
DatePickerTrigger,
|
|
9
8
|
DatePickerView,
|
|
10
|
-
DatePickerViewControl
|
|
11
|
-
|
|
12
|
-
} from "../chunk-BC5SZDYY.js";
|
|
13
|
-
import "../chunk-APD6IX5R.js";
|
|
14
|
-
import "../chunk-EXGKZGML.js";
|
|
15
|
-
import "../chunk-QMF5ZNDG.js";
|
|
16
|
-
import "../chunk-CRII2HNX.js";
|
|
17
|
-
import "../chunk-E3PAEB7Y.js";
|
|
18
|
-
import "../chunk-HVKM54BA.js";
|
|
9
|
+
DatePickerViewControl
|
|
10
|
+
} from "../chunk-5EWCH7AI.js";
|
|
19
11
|
export {
|
|
20
12
|
DatePickerContext,
|
|
21
13
|
DatePickerLabel,
|
|
@@ -23,9 +15,7 @@ export {
|
|
|
23
15
|
DatePickerTableCell,
|
|
24
16
|
DatePickerTableCellTrigger,
|
|
25
17
|
DatePickerTableHeader,
|
|
26
|
-
DatePickerTrigger,
|
|
27
18
|
DatePickerView,
|
|
28
|
-
DatePickerViewControl
|
|
29
|
-
DatePickerViewControlGroup
|
|
19
|
+
DatePickerViewControl
|
|
30
20
|
};
|
|
31
21
|
//# sourceMappingURL=DatePicker.server.js.map
|
|
@@ -2,17 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
FileStatus,
|
|
4
4
|
processStatus
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-EMNBMH7Z.js";
|
|
6
6
|
import "../chunk-WZJ5UQNM.js";
|
|
7
|
+
import "../chunk-APD6IX5R.js";
|
|
7
8
|
import "../chunk-JWIJHSI6.js";
|
|
9
|
+
import "../chunk-GCQMH4QA.js";
|
|
8
10
|
import "../chunk-UZDVOIW5.js";
|
|
9
|
-
import "../chunk-APD6IX5R.js";
|
|
10
|
-
import "../chunk-PVIMOXSO.js";
|
|
11
11
|
import "../chunk-BUVVRQLZ.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-CRII2HNX.js";
|
|
14
|
-
import "../chunk-E3PAEB7Y.js";
|
|
15
|
-
import "../chunk-HVKM54BA.js";
|
|
12
|
+
import "../chunk-GITT5645.js";
|
|
16
13
|
export {
|
|
17
14
|
FileStatus,
|
|
18
15
|
processStatus
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
FileUploader
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-25HMVHLT.js";
|
|
5
|
+
import "../chunk-GCQMH4QA.js";
|
|
6
6
|
import "../chunk-BUVVRQLZ.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-CRII2HNX.js";
|
|
9
|
-
import "../chunk-E3PAEB7Y.js";
|
|
10
|
-
import "../chunk-HVKM54BA.js";
|
|
7
|
+
import "../chunk-GITT5645.js";
|
|
11
8
|
export {
|
|
12
9
|
FileUploader
|
|
13
10
|
};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Input
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-MZ3UCDUL.js";
|
|
5
5
|
import "../chunk-UZDVOIW5.js";
|
|
6
6
|
import "../chunk-BUVVRQLZ.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-CRII2HNX.js";
|
|
9
|
-
import "../chunk-E3PAEB7Y.js";
|
|
10
|
-
import "../chunk-HVKM54BA.js";
|
|
7
|
+
import "../chunk-GITT5645.js";
|
|
11
8
|
export {
|
|
12
9
|
Input
|
|
13
10
|
};
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Notification
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-KF35CYT4.js";
|
|
5
|
+
import "../chunk-GITT5645.js";
|
|
5
6
|
import "../chunk-JIZQFTW6.js";
|
|
6
|
-
import "../chunk-QMF5ZNDG.js";
|
|
7
|
-
import "../chunk-CRII2HNX.js";
|
|
8
|
-
import "../chunk-E3PAEB7Y.js";
|
|
9
|
-
import "../chunk-HVKM54BA.js";
|
|
10
7
|
export {
|
|
11
8
|
Notification
|
|
12
9
|
};
|
|
@@ -2,13 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Option,
|
|
4
4
|
Select
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-KKHL3ZO4.js";
|
|
6
6
|
import "../chunk-UZDVOIW5.js";
|
|
7
7
|
import "../chunk-BUVVRQLZ.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-CRII2HNX.js";
|
|
10
|
-
import "../chunk-E3PAEB7Y.js";
|
|
11
|
-
import "../chunk-HVKM54BA.js";
|
|
8
|
+
import "../chunk-GITT5645.js";
|
|
12
9
|
export {
|
|
13
10
|
Option,
|
|
14
11
|
Select
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import {
|
|
2
3
|
Tag
|
|
3
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-EDARV2EI.js";
|
|
4
5
|
import "../chunk-BUVVRQLZ.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-CRII2HNX.js";
|
|
7
|
-
import "../chunk-E3PAEB7Y.js";
|
|
8
|
-
import "../chunk-HVKM54BA.js";
|
|
6
|
+
import "../chunk-GITT5645.js";
|
|
9
7
|
export {
|
|
10
8
|
Tag
|
|
11
9
|
};
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Toggle
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-XQICKZH4.js";
|
|
5
5
|
import "../chunk-UZDVOIW5.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-CRII2HNX.js";
|
|
8
|
-
import "../chunk-E3PAEB7Y.js";
|
|
9
|
-
import "../chunk-HVKM54BA.js";
|
|
6
|
+
import "../chunk-GITT5645.js";
|
|
10
7
|
export {
|
|
11
8
|
Toggle
|
|
12
9
|
};
|