@cerberus-design/react 0.14.2-next-58af9c8 → 0.14.2-next-9116729
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 +186 -45
- package/build/legacy/components/DatePicker.client.cjs +12 -6
- package/build/legacy/components/DatePicker.client.cjs.map +1 -1
- package/build/legacy/components/Dialog.cjs +86 -0
- package/build/legacy/components/Dialog.cjs.map +1 -0
- package/build/legacy/components/Dialog.client.cjs +95 -0
- package/build/legacy/components/Dialog.client.cjs.map +1 -0
- package/build/legacy/components/Modal.cjs.map +1 -1
- package/build/legacy/components/ModalDescription.cjs.map +1 -1
- package/build/legacy/components/ModalHeader.cjs.map +1 -1
- package/build/legacy/components/ModalHeading.cjs.map +1 -1
- package/build/legacy/context/confirm-modal.cjs.map +1 -1
- package/build/legacy/context/cta-modal.cjs.map +1 -1
- package/build/legacy/context/notification-center.cjs +2 -2
- package/build/legacy/context/notification-center.cjs.map +1 -1
- package/build/legacy/context/prompt-modal.cjs.map +1 -1
- package/build/legacy/index.cjs +608 -517
- package/build/legacy/index.cjs.map +1 -1
- package/build/modern/_tsup-dts-rollup.d.ts +186 -45
- package/build/modern/chunk-6BN3XKQF.js +42 -0
- package/build/modern/chunk-6BN3XKQF.js.map +1 -0
- package/build/modern/{chunk-2UXE5PDG.js → chunk-7NN3SJ7W.js} +1 -1
- package/build/modern/chunk-7NN3SJ7W.js.map +1 -0
- package/build/modern/{chunk-YLMGZAKU.js → chunk-JAROS4Q3.js} +6 -6
- package/build/modern/chunk-JAROS4Q3.js.map +1 -0
- package/build/modern/{chunk-BE4EOU2P.js → chunk-JIRW4XOJ.js} +1 -1
- package/build/modern/chunk-JIRW4XOJ.js.map +1 -0
- package/build/modern/{chunk-YJI4Y7BH.js → chunk-MUTAYS3P.js} +5 -5
- package/build/modern/{chunk-XY6WL55R.js → chunk-NUMM4TNC.js} +1 -1
- package/build/modern/chunk-NUMM4TNC.js.map +1 -0
- package/build/modern/{chunk-USYM6XU6.js → chunk-O6LFWUHI.js} +4 -4
- package/build/modern/{chunk-XDDLXEFV.js → chunk-R4RFWDBM.js} +8 -8
- package/build/modern/chunk-TFL56AYR.js +56 -0
- package/build/modern/chunk-TFL56AYR.js.map +1 -0
- package/build/modern/{chunk-ZHBHPMTP.js → chunk-VGEK2DQB.js} +8 -8
- package/build/modern/{chunk-D252JE4V.js → chunk-YKKNWILF.js} +20 -14
- package/build/modern/chunk-YKKNWILF.js.map +1 -0
- package/build/modern/{chunk-Q7BRMIBR.js → chunk-ZL6ZITLA.js} +1 -1
- package/build/modern/chunk-ZL6ZITLA.js.map +1 -0
- package/build/modern/components/DatePicker.client.js +4 -4
- package/build/modern/components/Dialog.client.js +10 -0
- package/build/modern/components/Dialog.client.js.map +1 -0
- package/build/modern/components/Dialog.js +24 -0
- package/build/modern/components/Dialog.js.map +1 -0
- package/build/modern/components/FileStatus.js +2 -2
- package/build/modern/components/Modal.js +1 -1
- package/build/modern/components/ModalDescription.js +1 -1
- package/build/modern/components/ModalHeader.js +1 -1
- package/build/modern/components/ModalHeading.js +1 -1
- package/build/modern/context/confirm-modal.js +5 -5
- package/build/modern/context/cta-modal.js +6 -6
- package/build/modern/context/notification-center.js +2 -2
- package/build/modern/context/prompt-modal.js +6 -6
- package/build/modern/index.js +78 -54
- package/build/modern/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/DatePicker.client.tsx +32 -8
- package/src/components/Dialog.client.tsx +39 -0
- package/src/components/Dialog.tsx +165 -0
- package/src/components/Modal.tsx +1 -16
- package/src/components/ModalDescription.tsx +1 -8
- package/src/components/ModalHeader.tsx +1 -10
- package/src/components/ModalHeading.tsx +1 -8
- package/src/context/notification-center.tsx +2 -2
- package/src/index.ts +2 -0
- package/build/modern/chunk-2UXE5PDG.js.map +0 -1
- package/build/modern/chunk-BE4EOU2P.js.map +0 -1
- package/build/modern/chunk-D252JE4V.js.map +0 -1
- package/build/modern/chunk-Q7BRMIBR.js.map +0 -1
- package/build/modern/chunk-XY6WL55R.js.map +0 -1
- package/build/modern/chunk-YLMGZAKU.js.map +0 -1
- /package/build/modern/{chunk-YJI4Y7BH.js.map → chunk-MUTAYS3P.js.map} +0 -0
- /package/build/modern/{chunk-USYM6XU6.js.map → chunk-O6LFWUHI.js.map} +0 -0
- /package/build/modern/{chunk-XDDLXEFV.js.map → chunk-R4RFWDBM.js.map} +0 -0
- /package/build/modern/{chunk-ZHBHPMTP.js.map → chunk-VGEK2DQB.js.map} +0 -0
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
IconButton
|
|
6
|
-
} from "./chunk-APD6IX5R.js";
|
|
2
|
+
useFieldContext
|
|
3
|
+
} from "./chunk-UZDVOIW5.js";
|
|
7
4
|
import {
|
|
8
5
|
DatePickerContext,
|
|
9
6
|
DatePickerTable,
|
|
@@ -14,8 +11,11 @@ import {
|
|
|
14
11
|
DatePickerViewControl
|
|
15
12
|
} from "./chunk-5EWCH7AI.js";
|
|
16
13
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./chunk-
|
|
14
|
+
IconButton
|
|
15
|
+
} from "./chunk-APD6IX5R.js";
|
|
16
|
+
import {
|
|
17
|
+
Portal
|
|
18
|
+
} from "./chunk-IQJDVFPP.js";
|
|
19
19
|
import {
|
|
20
20
|
useCerberusContext
|
|
21
21
|
} from "./chunk-GITT5645.js";
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
} from "@ark-ui/react";
|
|
30
30
|
import { datePicker, iconButton } from "@cerberus/styled-system/recipes";
|
|
31
31
|
import { css, cx } from "@cerberus/styled-system/css";
|
|
32
|
+
import { useMemo } from "react";
|
|
32
33
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
33
34
|
var datePickerStyles = datePicker();
|
|
34
35
|
function DatePicker(props) {
|
|
@@ -103,15 +104,19 @@ function DatePickerInput(props) {
|
|
|
103
104
|
}
|
|
104
105
|
function RangePickerInput(props) {
|
|
105
106
|
const { invalid, ...fieldStates } = useFieldContext();
|
|
107
|
+
const { defaultValue, ...nativeProps } = props;
|
|
108
|
+
const startDate = useMemo(() => defaultValue?.[0], [defaultValue]);
|
|
109
|
+
const endDate = useMemo(() => defaultValue?.[1], [defaultValue]);
|
|
106
110
|
return /* @__PURE__ */ jsxs(ArkDP.Control, { "data-range": true, className: datePickerStyles.control, children: [
|
|
107
111
|
/* @__PURE__ */ jsx(DatePickerTrigger, {}),
|
|
108
112
|
/* @__PURE__ */ jsx(
|
|
109
113
|
ArkDP.Input,
|
|
110
114
|
{
|
|
111
|
-
...
|
|
115
|
+
...nativeProps,
|
|
112
116
|
...fieldStates,
|
|
113
117
|
...invalid && { "aria-invalid": true },
|
|
114
118
|
"data-range-input": true,
|
|
119
|
+
defaultValue: startDate,
|
|
115
120
|
className: cx(props.className, datePickerStyles.input),
|
|
116
121
|
placeholder: props.placeholder ?? "DD MMM YYYY",
|
|
117
122
|
maxLength: 11,
|
|
@@ -121,10 +126,11 @@ function RangePickerInput(props) {
|
|
|
121
126
|
/* @__PURE__ */ jsx(
|
|
122
127
|
ArkDP.Input,
|
|
123
128
|
{
|
|
124
|
-
...
|
|
129
|
+
...nativeProps,
|
|
125
130
|
...fieldStates,
|
|
126
131
|
...invalid && { "aria-invalid": true },
|
|
127
132
|
"data-range-input": true,
|
|
133
|
+
defaultValue: endDate,
|
|
128
134
|
"data-range-end-input": true,
|
|
129
135
|
className: cx(props.className, datePickerStyles.input),
|
|
130
136
|
placeholder: props.placeholder ?? "DD MMM YYYY",
|
|
@@ -135,8 +141,8 @@ function RangePickerInput(props) {
|
|
|
135
141
|
] });
|
|
136
142
|
}
|
|
137
143
|
function DatePickerContent(props) {
|
|
138
|
-
const { children, ...contentProps } = props;
|
|
139
|
-
return /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(ArkDP.Positioner, { className: datePickerStyles.positioner, children: /* @__PURE__ */ jsx(
|
|
144
|
+
const { children, withModal, ...contentProps } = props;
|
|
145
|
+
return /* @__PURE__ */ jsx(Portal, { disabled: withModal ?? false, children: /* @__PURE__ */ jsx(ArkDP.Positioner, { className: datePickerStyles.positioner, children: /* @__PURE__ */ jsx(
|
|
140
146
|
ArkDP.Content,
|
|
141
147
|
{
|
|
142
148
|
...contentProps,
|
|
@@ -188,8 +194,8 @@ function DatePickerYearView(props) {
|
|
|
188
194
|
/* @__PURE__ */ jsx(DatePickerTable, { children: /* @__PURE__ */ jsx(ArkDP.TableBody, { children: datePicker2.getYearsGrid({ columns: 4 }).map((years, id) => /* @__PURE__ */ jsx(ArkDP.TableRow, { children: years.map((year, id2) => /* @__PURE__ */ jsx(DatePickerTableCell, { value: year.value, children: /* @__PURE__ */ jsx(DatePickerTableCellTrigger, { children: year.label }) }, id2)) }, id)) }) })
|
|
189
195
|
] }) }) });
|
|
190
196
|
}
|
|
191
|
-
function DatePickerCalendar() {
|
|
192
|
-
return /* @__PURE__ */ jsxs(DatePickerContent, { children: [
|
|
197
|
+
function DatePickerCalendar(props) {
|
|
198
|
+
return /* @__PURE__ */ jsxs(DatePickerContent, { withModal: props.withModal, children: [
|
|
193
199
|
/* @__PURE__ */ jsx(DatePickerDayView, {}),
|
|
194
200
|
/* @__PURE__ */ jsx(DatePickerMonthView, {}),
|
|
195
201
|
/* @__PURE__ */ jsx(DatePickerYearView, {})
|
|
@@ -208,4 +214,4 @@ export {
|
|
|
208
214
|
DatePickerYearView,
|
|
209
215
|
DatePickerCalendar
|
|
210
216
|
};
|
|
211
|
-
//# sourceMappingURL=chunk-
|
|
217
|
+
//# sourceMappingURL=chunk-YKKNWILF.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'\nimport { useMemo, type InputHTMLAttributes } from 'react'\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\nexport interface RangePickerInputProps\n extends Omit<DatePickerInputProps, 'defaultValue'> {\n /**\n * The defaultValue to add for the inputs. The first item is the start date\n * and the second item is the end date.\n */\n defaultValue?: [\n InputHTMLAttributes<HTMLInputElement>['defaultValue'],\n InputHTMLAttributes<HTMLInputElement>['defaultValue'],\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: RangePickerInputProps) {\n const { invalid, ...fieldStates } = useFieldContext()\n const { defaultValue, ...nativeProps } = props\n\n const startDate = useMemo(() => defaultValue?.[0], [defaultValue])\n const endDate = useMemo(() => defaultValue?.[1], [defaultValue])\n\n return (\n <ArkDP.Control data-range className={datePickerStyles.control}>\n <DatePickerTrigger />\n <ArkDP.Input\n {...nativeProps}\n {...fieldStates}\n {...(invalid && { 'aria-invalid': true })}\n data-range-input\n defaultValue={startDate}\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 {...nativeProps}\n {...fieldStates}\n {...(invalid && { 'aria-invalid': true })}\n data-range-input\n defaultValue={endDate}\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(\n props: DatePickerContentProps & {\n withModal?: boolean\n },\n) {\n const { children, withModal, ...contentProps } = props\n return (\n <Portal disabled={withModal ?? false}>\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(props: { withModal?: boolean }) {\n return (\n <DatePickerContent withModal={props.withModal}>\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;AAcxB,SAAS,eAAyC;AAoC9C,SAuPM,UAvPN,KAuBA,YAvBA;AA5BJ,IAAM,mBAAmB,WAAW;AAgB7B,SAAS,WAAW,OAA4B;AACrD,QAAM,SAAS,gBAAgB;AAU/B,SACE;AAAA,IAAC,MAAM;AAAA,IAAN;AAAA,MACE,GAAG;AAAA,MACH,GAAG;AAAA,MACJ,aAAa;AAAA,QACX,WAAW;AAAA,MACb;AAAA;AAAA,EACF;AAEJ;AAWO,SAAS,2BAA2B,OAAmC;AAC5E,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,EAAE,cAAc,UAAU,cAAc,SAAS,IAAI;AAC3D,SACE,qBAAC,yBAAuB,GAAG,OACzB;AAAA,wBAAC,MAAM,aAAN,EAAkB,SAAO,MACxB,8BAAC,cAAW,WAAU,YAAW,MAAK,MACpC,8BAAC,YAAS,GACZ,GACF;AAAA,IAEA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x"],"sourcesContent":["import { cx } from '@cerberus/styled-system/css'\nimport { modal } from '@cerberus/styled-system/recipes'\nimport type { HTMLAttributes } from 'react'\n\n/**\n * This module contains the ModalDescription component for a customizable modal.\n * @module\n */\n\nexport type ModalDescriptionProps = HTMLAttributes<HTMLParagraphElement>\n\n/**\n * @deprecated use `DialogDescription` instead\n */\nexport function ModalDescription(props: ModalDescriptionProps) {\n return <p {...props} className={cx(props.className, modal().description)} />\n}\n"],"mappings":";AAAA,SAAS,UAAU;AACnB,SAAS,aAAa;AAcb;AADF,SAAS,iBAAiB,OAA8B;AAC7D,SAAO,oBAAC,OAAG,GAAG,OAAO,WAAW,GAAG,MAAM,WAAW,MAAM,EAAE,WAAW,GAAG;AAC5E;","names":[]}
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
DatePickerViewControlGroup,
|
|
11
11
|
DatePickerYearView,
|
|
12
12
|
RangePickerInput
|
|
13
|
-
} from "../chunk-
|
|
14
|
-
import "../chunk-IQJDVFPP.js";
|
|
15
|
-
import "../chunk-APD6IX5R.js";
|
|
16
|
-
import "../chunk-5EWCH7AI.js";
|
|
13
|
+
} from "../chunk-YKKNWILF.js";
|
|
17
14
|
import "../chunk-UZDVOIW5.js";
|
|
15
|
+
import "../chunk-5EWCH7AI.js";
|
|
16
|
+
import "../chunk-APD6IX5R.js";
|
|
17
|
+
import "../chunk-IQJDVFPP.js";
|
|
18
18
|
import "../chunk-GITT5645.js";
|
|
19
19
|
import "../chunk-EXGKZGML.js";
|
|
20
20
|
export {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Dialog,
|
|
3
|
+
DialogBackdrop,
|
|
4
|
+
DialogCloseTrigger,
|
|
5
|
+
DialogContent,
|
|
6
|
+
DialogDescription,
|
|
7
|
+
DialogHeading,
|
|
8
|
+
DialogPositioner,
|
|
9
|
+
DialogProvider,
|
|
10
|
+
DialogTrigger
|
|
11
|
+
} from "../chunk-TFL56AYR.js";
|
|
12
|
+
import "../chunk-IQJDVFPP.js";
|
|
13
|
+
export {
|
|
14
|
+
Dialog,
|
|
15
|
+
DialogBackdrop,
|
|
16
|
+
DialogCloseTrigger,
|
|
17
|
+
DialogContent,
|
|
18
|
+
DialogDescription,
|
|
19
|
+
DialogHeading,
|
|
20
|
+
DialogPositioner,
|
|
21
|
+
DialogProvider,
|
|
22
|
+
DialogTrigger
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=Dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
FileStatus,
|
|
4
4
|
processStatus
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-O6LFWUHI.js";
|
|
6
6
|
import "../chunk-WZJ5UQNM.js";
|
|
7
|
-
import "../chunk-APD6IX5R.js";
|
|
8
7
|
import "../chunk-JWIJHSI6.js";
|
|
9
8
|
import "../chunk-UZDVOIW5.js";
|
|
9
|
+
import "../chunk-APD6IX5R.js";
|
|
10
10
|
import "../chunk-GCQMH4QA.js";
|
|
11
11
|
import "../chunk-BUVVRQLZ.js";
|
|
12
12
|
import "../chunk-GITT5645.js";
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ConfirmModal,
|
|
4
4
|
useConfirmModal
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-MUTAYS3P.js";
|
|
6
|
+
import "../chunk-JIRW4XOJ.js";
|
|
7
|
+
import "../chunk-ZL6ZITLA.js";
|
|
8
|
+
import "../chunk-NUMM4TNC.js";
|
|
9
|
+
import "../chunk-7NN3SJ7W.js";
|
|
10
10
|
import "../chunk-IQJDVFPP.js";
|
|
11
11
|
import "../chunk-GCQMH4QA.js";
|
|
12
12
|
import "../chunk-BUVVRQLZ.js";
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
CTAModal,
|
|
4
4
|
useCTAModal
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-IQJDVFPP.js";
|
|
5
|
+
} from "../chunk-R4RFWDBM.js";
|
|
6
|
+
import "../chunk-JIRW4XOJ.js";
|
|
7
|
+
import "../chunk-ZL6ZITLA.js";
|
|
8
|
+
import "../chunk-NUMM4TNC.js";
|
|
9
|
+
import "../chunk-7NN3SJ7W.js";
|
|
11
10
|
import "../chunk-APD6IX5R.js";
|
|
11
|
+
import "../chunk-IQJDVFPP.js";
|
|
12
12
|
import "../chunk-GCQMH4QA.js";
|
|
13
13
|
import "../chunk-BUVVRQLZ.js";
|
|
14
14
|
import "../chunk-GITT5645.js";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
NotificationCenter,
|
|
4
4
|
useNotificationCenter
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-JAROS4Q3.js";
|
|
6
|
+
import "../chunk-RDRD6ACD.js";
|
|
6
7
|
import "../chunk-UXY3KCC3.js";
|
|
7
8
|
import "../chunk-SLHYBPJ5.js";
|
|
8
|
-
import "../chunk-RDRD6ACD.js";
|
|
9
9
|
import "../chunk-IQJDVFPP.js";
|
|
10
10
|
import "../chunk-BUVVRQLZ.js";
|
|
11
11
|
import "../chunk-GITT5645.js";
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
PromptModal,
|
|
4
4
|
usePromptModal
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-VGEK2DQB.js";
|
|
6
|
+
import "../chunk-JIRW4XOJ.js";
|
|
7
|
+
import "../chunk-ZL6ZITLA.js";
|
|
8
|
+
import "../chunk-NUMM4TNC.js";
|
|
9
|
+
import "../chunk-7NN3SJ7W.js";
|
|
10
10
|
import "../chunk-MZ3UCDUL.js";
|
|
11
11
|
import "../chunk-NMF2HYWO.js";
|
|
12
|
-
import "../chunk-IQJDVFPP.js";
|
|
13
12
|
import "../chunk-UZDVOIW5.js";
|
|
13
|
+
import "../chunk-IQJDVFPP.js";
|
|
14
14
|
import "../chunk-GCQMH4QA.js";
|
|
15
15
|
import "../chunk-BUVVRQLZ.js";
|
|
16
16
|
import "../chunk-GITT5645.js";
|
package/build/modern/index.js
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NotificationCenter,
|
|
3
3
|
useNotificationCenter
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JAROS4Q3.js";
|
|
5
5
|
import {
|
|
6
6
|
PromptModal,
|
|
7
7
|
usePromptModal
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VGEK2DQB.js";
|
|
9
9
|
import {
|
|
10
10
|
ThemeProvider,
|
|
11
11
|
useThemeContext
|
|
12
12
|
} from "./chunk-EB37HRCN.js";
|
|
13
|
+
import {
|
|
14
|
+
Textarea
|
|
15
|
+
} from "./chunk-JIJM6JFJ.js";
|
|
16
|
+
import {
|
|
17
|
+
Th
|
|
18
|
+
} from "./chunk-SGKHA4EB.js";
|
|
13
19
|
import {
|
|
14
20
|
Thead
|
|
15
21
|
} from "./chunk-Y6QQCRQV.js";
|
|
@@ -22,11 +28,14 @@ import {
|
|
|
22
28
|
import {
|
|
23
29
|
ConfirmModal,
|
|
24
30
|
useConfirmModal
|
|
25
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-MUTAYS3P.js";
|
|
26
32
|
import {
|
|
27
33
|
CTAModal,
|
|
28
34
|
useCTAModal
|
|
29
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-R4RFWDBM.js";
|
|
36
|
+
import {
|
|
37
|
+
Spinner
|
|
38
|
+
} from "./chunk-7SYJFI5E.js";
|
|
30
39
|
import {
|
|
31
40
|
Table,
|
|
32
41
|
Tr
|
|
@@ -56,11 +65,11 @@ import {
|
|
|
56
65
|
Text
|
|
57
66
|
} from "./chunk-RU5LOXWI.js";
|
|
58
67
|
import {
|
|
59
|
-
|
|
60
|
-
} from "./chunk-
|
|
68
|
+
NavMenuTrigger
|
|
69
|
+
} from "./chunk-PM7CWT3N.js";
|
|
61
70
|
import {
|
|
62
|
-
|
|
63
|
-
} from "./chunk-
|
|
71
|
+
Notification
|
|
72
|
+
} from "./chunk-RDRD6ACD.js";
|
|
64
73
|
import {
|
|
65
74
|
NotificationDescription
|
|
66
75
|
} from "./chunk-UXY3KCC3.js";
|
|
@@ -75,20 +84,29 @@ import {
|
|
|
75
84
|
Select
|
|
76
85
|
} from "./chunk-KKHL3ZO4.js";
|
|
77
86
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
87
|
+
Legend
|
|
88
|
+
} from "./chunk-ILQW5VZT.js";
|
|
89
|
+
import {
|
|
90
|
+
Menu,
|
|
91
|
+
MenuContent,
|
|
92
|
+
MenuGroupLabel,
|
|
93
|
+
MenuItem,
|
|
94
|
+
MenuItemGroup,
|
|
95
|
+
MenuSeparator,
|
|
96
|
+
MenuTrigger
|
|
97
|
+
} from "./chunk-RUR5MV54.js";
|
|
80
98
|
import {
|
|
81
99
|
Modal
|
|
82
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-JIRW4XOJ.js";
|
|
83
101
|
import {
|
|
84
102
|
ModalDescription
|
|
85
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-ZL6ZITLA.js";
|
|
86
104
|
import {
|
|
87
105
|
ModalHeader
|
|
88
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-NUMM4TNC.js";
|
|
89
107
|
import {
|
|
90
108
|
ModalHeading
|
|
91
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-7NN3SJ7W.js";
|
|
92
110
|
import {
|
|
93
111
|
NavMenuLink
|
|
94
112
|
} from "./chunk-WPVDQRRF.js";
|
|
@@ -96,26 +114,26 @@ import {
|
|
|
96
114
|
NavMenuList,
|
|
97
115
|
getPosition
|
|
98
116
|
} from "./chunk-UZVQ4INR.js";
|
|
99
|
-
import {
|
|
100
|
-
NavMenuTrigger
|
|
101
|
-
} from "./chunk-PM7CWT3N.js";
|
|
102
117
|
import {
|
|
103
118
|
NavMenu,
|
|
104
119
|
useNavMenuContext
|
|
105
120
|
} from "./chunk-6WS765J3.js";
|
|
106
121
|
import {
|
|
107
|
-
|
|
108
|
-
} from "./chunk-
|
|
122
|
+
Fieldset
|
|
123
|
+
} from "./chunk-3ZDFQO25.js";
|
|
109
124
|
import {
|
|
110
125
|
FieldsetLabel
|
|
111
126
|
} from "./chunk-PZAZKQMO.js";
|
|
112
127
|
import {
|
|
113
128
|
FileStatus,
|
|
114
129
|
processStatus
|
|
115
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-O6LFWUHI.js";
|
|
116
131
|
import {
|
|
117
132
|
ProgressBar
|
|
118
133
|
} from "./chunk-WZJ5UQNM.js";
|
|
134
|
+
import {
|
|
135
|
+
FieldMessage
|
|
136
|
+
} from "./chunk-JWIJHSI6.js";
|
|
119
137
|
import {
|
|
120
138
|
FileUploader
|
|
121
139
|
} from "./chunk-25HMVHLT.js";
|
|
@@ -125,18 +143,6 @@ import {
|
|
|
125
143
|
import {
|
|
126
144
|
Label
|
|
127
145
|
} from "./chunk-NMF2HYWO.js";
|
|
128
|
-
import {
|
|
129
|
-
Legend
|
|
130
|
-
} from "./chunk-ILQW5VZT.js";
|
|
131
|
-
import {
|
|
132
|
-
Menu,
|
|
133
|
-
MenuContent,
|
|
134
|
-
MenuGroupLabel,
|
|
135
|
-
MenuItem,
|
|
136
|
-
MenuItemGroup,
|
|
137
|
-
MenuSeparator,
|
|
138
|
-
MenuTrigger
|
|
139
|
-
} from "./chunk-RUR5MV54.js";
|
|
140
146
|
import {
|
|
141
147
|
Checkbox
|
|
142
148
|
} from "./chunk-N24COMHJ.js";
|
|
@@ -154,13 +160,11 @@ import {
|
|
|
154
160
|
DatePickerViewControlGroup,
|
|
155
161
|
DatePickerYearView,
|
|
156
162
|
RangePickerInput
|
|
157
|
-
} from "./chunk-
|
|
158
|
-
import {
|
|
159
|
-
Portal
|
|
160
|
-
} from "./chunk-IQJDVFPP.js";
|
|
163
|
+
} from "./chunk-YKKNWILF.js";
|
|
161
164
|
import {
|
|
162
|
-
|
|
163
|
-
|
|
165
|
+
Field,
|
|
166
|
+
useFieldContext
|
|
167
|
+
} from "./chunk-UZDVOIW5.js";
|
|
164
168
|
import {
|
|
165
169
|
DatePickerContext,
|
|
166
170
|
DatePickerLabel,
|
|
@@ -171,6 +175,26 @@ import {
|
|
|
171
175
|
DatePickerView,
|
|
172
176
|
DatePickerViewControl
|
|
173
177
|
} from "./chunk-5EWCH7AI.js";
|
|
178
|
+
import {
|
|
179
|
+
DialogCloseIconTrigger
|
|
180
|
+
} from "./chunk-6BN3XKQF.js";
|
|
181
|
+
import {
|
|
182
|
+
IconButton
|
|
183
|
+
} from "./chunk-APD6IX5R.js";
|
|
184
|
+
import {
|
|
185
|
+
Dialog,
|
|
186
|
+
DialogBackdrop,
|
|
187
|
+
DialogCloseTrigger,
|
|
188
|
+
DialogContent,
|
|
189
|
+
DialogDescription,
|
|
190
|
+
DialogHeading,
|
|
191
|
+
DialogPositioner,
|
|
192
|
+
DialogProvider,
|
|
193
|
+
DialogTrigger
|
|
194
|
+
} from "./chunk-TFL56AYR.js";
|
|
195
|
+
import {
|
|
196
|
+
Portal
|
|
197
|
+
} from "./chunk-IQJDVFPP.js";
|
|
174
198
|
import {
|
|
175
199
|
Droppable
|
|
176
200
|
} from "./chunk-TKI2CKHH.js";
|
|
@@ -181,16 +205,6 @@ import {
|
|
|
181
205
|
FeatureFlags,
|
|
182
206
|
useFeatureFlags
|
|
183
207
|
} from "./chunk-CJFW36DZ.js";
|
|
184
|
-
import {
|
|
185
|
-
FieldMessage
|
|
186
|
-
} from "./chunk-JWIJHSI6.js";
|
|
187
|
-
import {
|
|
188
|
-
Fieldset
|
|
189
|
-
} from "./chunk-3ZDFQO25.js";
|
|
190
|
-
import {
|
|
191
|
-
Field,
|
|
192
|
-
useFieldContext
|
|
193
|
-
} from "./chunk-UZDVOIW5.js";
|
|
194
208
|
import {
|
|
195
209
|
AccordionItemGroup
|
|
196
210
|
} from "./chunk-BAWZBF5Q.js";
|
|
@@ -245,6 +259,12 @@ import {
|
|
|
245
259
|
} from "./chunk-FQLMPEYX.js";
|
|
246
260
|
import "./chunk-V3M3ZOQI.js";
|
|
247
261
|
import "./chunk-55J6XMHW.js";
|
|
262
|
+
import {
|
|
263
|
+
createNavTriggerProps
|
|
264
|
+
} from "./chunk-JF76VIL3.js";
|
|
265
|
+
import {
|
|
266
|
+
trapFocus
|
|
267
|
+
} from "./chunk-JIZQFTW6.js";
|
|
248
268
|
import {
|
|
249
269
|
makeSystemConfig
|
|
250
270
|
} from "./chunk-KDDPAJMR.js";
|
|
@@ -254,12 +274,6 @@ import {
|
|
|
254
274
|
import "./chunk-E3PAEB7Y.js";
|
|
255
275
|
import "./chunk-IW3LIRDG.js";
|
|
256
276
|
import "./chunk-36N4527B.js";
|
|
257
|
-
import {
|
|
258
|
-
createNavTriggerProps
|
|
259
|
-
} from "./chunk-JF76VIL3.js";
|
|
260
|
-
import {
|
|
261
|
-
trapFocus
|
|
262
|
-
} from "./chunk-JIZQFTW6.js";
|
|
263
277
|
import {
|
|
264
278
|
DateFormats,
|
|
265
279
|
formatISOToMilitary,
|
|
@@ -305,6 +319,16 @@ export {
|
|
|
305
319
|
DatePickerViewControl,
|
|
306
320
|
DatePickerViewControlGroup,
|
|
307
321
|
DatePickerYearView,
|
|
322
|
+
Dialog,
|
|
323
|
+
DialogBackdrop,
|
|
324
|
+
DialogCloseIconTrigger,
|
|
325
|
+
DialogCloseTrigger,
|
|
326
|
+
DialogContent,
|
|
327
|
+
DialogDescription,
|
|
328
|
+
DialogHeading,
|
|
329
|
+
DialogPositioner,
|
|
330
|
+
DialogProvider,
|
|
331
|
+
DialogTrigger,
|
|
308
332
|
Droppable,
|
|
309
333
|
FeatureFlag,
|
|
310
334
|
FeatureFlags,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * This module is the entry point for the Cerberus React package.\n * @module\n */\n\n// components\n\nexport * from './components/Accordion'\nexport * from './components/Accordion.client'\nexport * from './components/AccordionItemGroup'\nexport * from './components/Admonition'\nexport * from './components/Avatar'\nexport * from './components/Button'\nexport * from './components/Checkbox'\nexport * from './components/CircularProgress'\nexport * from './components/DatePicker.client'\nexport * from './components/DatePicker.server'\nexport * from './components/Droppable'\nexport * from './components/FieldMessage'\nexport * from './components/FeatureFlag'\nexport * from './components/Fieldset'\nexport * from './components/FieldsetLabel'\nexport * from './components/FileStatus'\nexport * from './components/FileUploader'\nexport * from './components/IconButton'\nexport * from './components/Input'\nexport * from './components/Label'\nexport * from './components/Legend'\nexport * from './components/Menu'\nexport * from './components/Modal'\nexport * from './components/ModalHeader'\nexport * from './components/ModalHeading'\nexport * from './components/ModalDescription'\nexport * from './components/NavMenuTrigger'\nexport * from './components/NavMenuList'\nexport * from './components/NavMenuLink'\nexport * from './components/Notification'\nexport * from './components/NotificationHeading'\nexport * from './components/NotificationDescription'\nexport * from './components/Portal'\nexport * from './components/ProgressBar'\nexport * from './components/Radio'\nexport * from './components/Select'\nexport * from './components/Spinner'\nexport * from './components/Tabs.client'\nexport * from './components/Table'\nexport * from './components/Thead'\nexport * from './components/Th'\nexport * from './components/Td'\nexport * from './components/Tbody'\nexport * from './components/Tag'\nexport * from './components/Text'\nexport * from './components/Textarea'\nexport * from './components/Toggle'\nexport * from './components/Tooltip'\nexport * from './components/Show'\n\n// context\n\nexport * from './context/cerberus'\nexport * from './context/confirm-modal'\nexport * from './context/cta-modal'\nexport * from './context/feature-flags'\nexport * from './context/field'\nexport * from './context/navMenu'\nexport * from './context/notification-center'\nexport * from './context/prompt-modal'\nexport * from './context/tabs'\nexport * from './context/theme'\n\n// hooks\n\nexport * from './hooks/useDate'\nexport * from './hooks/useModal'\nexport * from './hooks/useTheme'\nexport * from './hooks/useToggle'\nexport * from './hooks/useRootColors'\n\n// aria-helpers\n\nexport * from './aria-helpers/nav-menu.aria'\nexport * from './aria-helpers/trap-focus.aria'\n\n// utils\n\nexport * from './config/index'\nexport * from './utils/index'\n\n// shared types\n\nexport * from './types'\n\n// 3rd party\n\nexport * from '@dnd-kit/core'\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * This module is the entry point for the Cerberus React package.\n * @module\n */\n\n// components\n\nexport * from './components/Accordion'\nexport * from './components/Accordion.client'\nexport * from './components/AccordionItemGroup'\nexport * from './components/Admonition'\nexport * from './components/Avatar'\nexport * from './components/Button'\nexport * from './components/Checkbox'\nexport * from './components/CircularProgress'\nexport * from './components/DatePicker.client'\nexport * from './components/DatePicker.server'\nexport * from './components/Dialog'\nexport * from './components/Dialog.client'\nexport * from './components/Droppable'\nexport * from './components/FieldMessage'\nexport * from './components/FeatureFlag'\nexport * from './components/Fieldset'\nexport * from './components/FieldsetLabel'\nexport * from './components/FileStatus'\nexport * from './components/FileUploader'\nexport * from './components/IconButton'\nexport * from './components/Input'\nexport * from './components/Label'\nexport * from './components/Legend'\nexport * from './components/Menu'\nexport * from './components/Modal'\nexport * from './components/ModalHeader'\nexport * from './components/ModalHeading'\nexport * from './components/ModalDescription'\nexport * from './components/NavMenuTrigger'\nexport * from './components/NavMenuList'\nexport * from './components/NavMenuLink'\nexport * from './components/Notification'\nexport * from './components/NotificationHeading'\nexport * from './components/NotificationDescription'\nexport * from './components/Portal'\nexport * from './components/ProgressBar'\nexport * from './components/Radio'\nexport * from './components/Select'\nexport * from './components/Spinner'\nexport * from './components/Tabs.client'\nexport * from './components/Table'\nexport * from './components/Thead'\nexport * from './components/Th'\nexport * from './components/Td'\nexport * from './components/Tbody'\nexport * from './components/Tag'\nexport * from './components/Text'\nexport * from './components/Textarea'\nexport * from './components/Toggle'\nexport * from './components/Tooltip'\nexport * from './components/Show'\n\n// context\n\nexport * from './context/cerberus'\nexport * from './context/confirm-modal'\nexport * from './context/cta-modal'\nexport * from './context/feature-flags'\nexport * from './context/field'\nexport * from './context/navMenu'\nexport * from './context/notification-center'\nexport * from './context/prompt-modal'\nexport * from './context/tabs'\nexport * from './context/theme'\n\n// hooks\n\nexport * from './hooks/useDate'\nexport * from './hooks/useModal'\nexport * from './hooks/useTheme'\nexport * from './hooks/useToggle'\nexport * from './hooks/useRootColors'\n\n// aria-helpers\n\nexport * from './aria-helpers/nav-menu.aria'\nexport * from './aria-helpers/trap-focus.aria'\n\n// utils\n\nexport * from './config/index'\nexport * from './utils/index'\n\n// shared types\n\nexport * from './types'\n\n// 3rd party\n\nexport * from '@dnd-kit/core'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgGA,cAAc;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cerberus-design/react",
|
|
3
|
-
"version": "0.14.2-next-
|
|
3
|
+
"version": "0.14.2-next-9116729",
|
|
4
4
|
"description": "The Cerberus Design React component library.",
|
|
5
5
|
"browserslist": "> 0.25%, not dead",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"react-dom": "^18",
|
|
27
27
|
"tsup": "^8.1.0",
|
|
28
28
|
"@cerberus-design/configs": "0.0.0",
|
|
29
|
-
"@cerberus/styled-system": "npm:@cerberus-design/styled-system@0.14.2-next-
|
|
29
|
+
"@cerberus/styled-system": "npm:@cerberus-design/styled-system@0.14.2-next-9116729"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|