@cerberus-design/react 0.18.3 → 0.18.4
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 +87 -25
- package/build/legacy/components/FileStatus.cjs +34 -26
- package/build/legacy/components/FileStatus.cjs.map +1 -1
- package/build/legacy/components/Text.cjs +17 -23
- package/build/legacy/components/Text.cjs.map +1 -1
- package/build/legacy/components/checkbox/checkbox.cjs +17 -23
- package/build/legacy/components/checkbox/checkbox.cjs.map +1 -1
- package/build/legacy/components/checkbox/index.cjs +17 -23
- package/build/legacy/components/checkbox/index.cjs.map +1 -1
- package/build/legacy/components/cta-dialog/index.cjs +44 -35
- package/build/legacy/components/cta-dialog/index.cjs.map +1 -1
- package/build/legacy/components/cta-dialog/provider.cjs +44 -35
- package/build/legacy/components/cta-dialog/provider.cjs.map +1 -1
- package/build/legacy/components/date-picker/date-picker.cjs.map +1 -1
- package/build/legacy/components/date-picker/day-view.d.cts +1 -1
- package/build/legacy/components/date-picker/index.cjs +29 -21
- package/build/legacy/components/date-picker/index.cjs.map +1 -1
- package/build/legacy/components/date-picker/index.d.cts +6 -0
- package/build/legacy/components/date-picker/input.cjs +2 -2
- package/build/legacy/components/date-picker/input.cjs.map +1 -1
- package/build/legacy/components/date-picker/range-input.cjs +2 -9
- package/build/legacy/components/date-picker/range-input.cjs.map +1 -1
- package/build/legacy/components/deprecated/Label.cjs.map +1 -1
- package/build/legacy/components/dialog/close-icon-trigger.cjs.map +1 -1
- package/build/legacy/components/dialog/dialog.cjs +2 -2
- package/build/legacy/components/dialog/dialog.cjs.map +1 -1
- package/build/legacy/components/dialog/index.cjs +2 -2
- package/build/legacy/components/dialog/index.cjs.map +1 -1
- package/build/legacy/components/dialog/index.d.cts +1 -0
- package/build/legacy/components/dialog/parts.cjs +2 -2
- package/build/legacy/components/dialog/parts.cjs.map +1 -1
- package/build/legacy/components/dialog/primitives.cjs +2 -2
- package/build/legacy/components/dialog/primitives.cjs.map +1 -1
- package/build/legacy/components/field/field.cjs +15 -9
- package/build/legacy/components/field/field.cjs.map +1 -1
- package/build/legacy/components/field/helper-text.cjs +53 -0
- package/build/legacy/components/field/helper-text.cjs.map +1 -0
- package/build/legacy/components/field/helper-text.d.cts +1 -0
- package/build/legacy/components/field/index.cjs +15 -9
- package/build/legacy/components/field/index.cjs.map +1 -1
- package/build/legacy/components/field/parts.cjs +0 -1
- package/build/legacy/components/field/parts.cjs.map +1 -1
- package/build/legacy/components/field/primitives.cjs +0 -1
- package/build/legacy/components/field/primitives.cjs.map +1 -1
- package/build/legacy/context/confirm-modal.cjs +85 -58
- package/build/legacy/context/confirm-modal.cjs.map +1 -1
- package/build/legacy/context/field.cjs.map +1 -1
- package/build/legacy/context/prompt-modal.cjs +120 -118
- package/build/legacy/context/prompt-modal.cjs.map +1 -1
- package/build/legacy/index.cjs +767 -715
- package/build/legacy/index.cjs.map +1 -1
- package/build/legacy/index.d.cts +11 -0
- package/build/legacy/types.cjs.map +1 -1
- package/build/legacy/types.d.cts +1 -0
- package/build/modern/_tsup-dts-rollup.d.ts +87 -25
- package/build/modern/chunk-2U2JYN3D.js +15 -0
- package/build/modern/chunk-2U2JYN3D.js.map +1 -0
- package/build/modern/chunk-ADI4DOEW.js +17 -0
- package/build/modern/chunk-ADI4DOEW.js.map +1 -0
- package/build/modern/{chunk-GBCF6DOS.js → chunk-AN65HXHS.js} +2 -2
- package/build/modern/{chunk-Z2KBUTCO.js → chunk-BMDNCJUB.js} +2 -2
- package/build/modern/chunk-BMDNCJUB.js.map +1 -0
- package/build/modern/{chunk-F3XFJHGR.js → chunk-D7PY357P.js} +2 -2
- package/build/modern/{chunk-ILROS7ST.js → chunk-DVCTN3GN.js} +2 -2
- package/build/modern/{chunk-NP73HOHI.js → chunk-GJBUGESH.js} +3 -3
- package/build/modern/{chunk-NP73HOHI.js.map → chunk-GJBUGESH.js.map} +1 -1
- package/build/modern/{chunk-KABRV6TB.js → chunk-JXWNDJJW.js} +3 -3
- package/build/modern/{chunk-SSR3CWJZ.js → chunk-LUGOJGMO.js} +4 -4
- package/build/modern/chunk-LUGOJGMO.js.map +1 -0
- package/build/modern/{chunk-3IT3V3YA.js → chunk-M3TZCQ7J.js} +4 -4
- package/build/modern/{chunk-WEL43I6Y.js → chunk-OK3VJFQL.js} +1 -2
- package/build/modern/{chunk-WEL43I6Y.js.map → chunk-OK3VJFQL.js.map} +1 -1
- package/build/modern/{chunk-ADZRQNW3.js → chunk-P7FPAUWN.js} +3 -9
- package/build/modern/chunk-P7FPAUWN.js.map +1 -0
- package/build/modern/{chunk-OY7BOKWW.js → chunk-QBA6KLL7.js} +2 -2
- package/build/modern/chunk-RMSM3XPV.js +218 -0
- package/build/modern/chunk-RMSM3XPV.js.map +1 -0
- package/build/modern/{chunk-LEBDLXJE.js → chunk-RTLS6K4E.js} +9 -6
- package/build/modern/chunk-RTLS6K4E.js.map +1 -0
- package/build/modern/{chunk-A5UXCB4L.js → chunk-SHBKM6EW.js} +43 -34
- package/build/modern/chunk-SHBKM6EW.js.map +1 -0
- package/build/modern/{chunk-CEJIKL6N.js → chunk-T44C3KQO.js} +1 -1
- package/build/modern/chunk-T44C3KQO.js.map +1 -0
- package/build/modern/{chunk-V6EAWUCQ.js → chunk-TRT6OCHJ.js} +2 -2
- package/build/modern/chunk-WSOITM7D.js +182 -0
- package/build/modern/chunk-WSOITM7D.js.map +1 -0
- package/build/modern/chunk-ZPHPCKAG.js +41 -0
- package/build/modern/chunk-ZPHPCKAG.js.map +1 -0
- package/build/modern/components/FileStatus.js +5 -4
- package/build/modern/components/Text.js +1 -1
- package/build/modern/components/admonition/admonition.js +2 -2
- package/build/modern/components/admonition/index.js +2 -2
- package/build/modern/components/checkbox/checkbox.js +2 -2
- package/build/modern/components/checkbox/index.js +2 -2
- package/build/modern/components/cta-dialog/index.js +5 -5
- package/build/modern/components/cta-dialog/provider.js +5 -5
- package/build/modern/components/date-picker/date-picker.js +1 -1
- package/build/modern/components/date-picker/day-view.d.ts +1 -1
- package/build/modern/components/date-picker/index.d.ts +6 -0
- package/build/modern/components/date-picker/index.js +16 -5
- package/build/modern/components/date-picker/input.js +1 -1
- package/build/modern/components/date-picker/range-input.js +1 -2
- package/build/modern/components/deprecated/Label.js +5 -4
- package/build/modern/components/dialog/close-icon-trigger.js +2 -2
- package/build/modern/components/dialog/dialog.js +2 -2
- package/build/modern/components/dialog/index.d.ts +1 -0
- package/build/modern/components/dialog/index.js +4 -4
- package/build/modern/components/dialog/parts.js +2 -2
- package/build/modern/components/dialog/primitives.js +1 -1
- package/build/modern/components/field/field.js +3 -2
- package/build/modern/components/field/helper-text.d.ts +1 -0
- package/build/modern/components/field/helper-text.js +11 -0
- package/build/modern/components/field/index.js +4 -3
- package/build/modern/components/field/parts.js +2 -2
- package/build/modern/components/field/primitives.js +1 -1
- package/build/modern/components/notifications/index.js +1 -1
- package/build/modern/context/confirm-modal.js +5 -5
- package/build/modern/context/field.js +1 -1
- package/build/modern/context/prompt-modal.js +10 -9
- package/build/modern/index.d.ts +11 -0
- package/build/modern/index.js +52 -40
- package/build/modern/index.js.map +1 -1
- package/build/modern/types.d.ts +1 -0
- package/package.json +10 -9
- package/src/components/Text.tsx +20 -23
- package/src/components/cta-dialog/provider.tsx +6 -1
- package/src/components/date-picker/date-picker.tsx +8 -5
- package/src/components/date-picker/index.ts +10 -0
- package/src/components/date-picker/input.tsx +1 -1
- package/src/components/date-picker/range-input.tsx +9 -24
- package/src/components/dialog/dialog.tsx +4 -2
- package/src/components/dialog/index.ts +4 -0
- package/src/components/dialog/primitives.tsx +7 -4
- package/src/components/field/field.tsx +11 -9
- package/src/components/field/helper-text.tsx +20 -0
- package/src/components/field/primitives.tsx +0 -3
- package/src/context/confirm-modal.tsx +52 -30
- package/src/context/prompt-modal.tsx +36 -31
- package/src/types.ts +21 -0
- package/build/modern/chunk-A5UXCB4L.js.map +0 -1
- package/build/modern/chunk-ADZRQNW3.js.map +0 -1
- package/build/modern/chunk-CEJIKL6N.js.map +0 -1
- package/build/modern/chunk-DHKSNGQX.js +0 -156
- package/build/modern/chunk-DHKSNGQX.js.map +0 -1
- package/build/modern/chunk-L64HQGLQ.js +0 -47
- package/build/modern/chunk-L64HQGLQ.js.map +0 -1
- package/build/modern/chunk-LEBDLXJE.js.map +0 -1
- package/build/modern/chunk-P7DWMM56.js +0 -210
- package/build/modern/chunk-P7DWMM56.js.map +0 -1
- package/build/modern/chunk-SSR3CWJZ.js.map +0 -1
- package/build/modern/chunk-U3ISYEUF.js +0 -1
- package/build/modern/chunk-Z2KBUTCO.js.map +0 -1
- /package/build/modern/{chunk-GBCF6DOS.js.map → chunk-AN65HXHS.js.map} +0 -0
- /package/build/modern/{chunk-F3XFJHGR.js.map → chunk-D7PY357P.js.map} +0 -0
- /package/build/modern/{chunk-ILROS7ST.js.map → chunk-DVCTN3GN.js.map} +0 -0
- /package/build/modern/{chunk-KABRV6TB.js.map → chunk-JXWNDJJW.js.map} +0 -0
- /package/build/modern/{chunk-3IT3V3YA.js.map → chunk-M3TZCQ7J.js.map} +0 -0
- /package/build/modern/{chunk-OY7BOKWW.js.map → chunk-QBA6KLL7.js.map} +0 -0
- /package/build/modern/{chunk-V6EAWUCQ.js.map → chunk-TRT6OCHJ.js.map} +0 -0
- /package/build/modern/{chunk-U3ISYEUF.js.map → components/field/helper-text.js.map} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
DialogCloseIconTrigger
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-D7PY357P.js";
|
|
5
|
+
import "../../chunk-LUGOJGMO.js";
|
|
6
6
|
import "../../chunk-GITT5645.js";
|
|
7
7
|
import "../../chunk-UH6XSYYD.js";
|
|
8
8
|
export {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { OpenChangeDetails_alias_1 as OpenChangeDetails } from '../../_tsup-dts-rollup.js';
|
|
1
2
|
export { DialogParts_alias_1 as DialogParts } from '../../_tsup-dts-rollup.js';
|
|
2
3
|
export { DialogRoot_alias_1 as DialogRoot } from '../../_tsup-dts-rollup.js';
|
|
3
4
|
export { DialogTrigger_alias_1 as DialogTrigger } from '../../_tsup-dts-rollup.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "../../chunk-DJOYRUNT.js";
|
|
2
2
|
import {
|
|
3
3
|
DialogCloseIconTrigger
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-D7PY357P.js";
|
|
5
5
|
import {
|
|
6
6
|
Dialog
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-BMDNCJUB.js";
|
|
8
8
|
import {
|
|
9
9
|
DialogParts
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-TRT6OCHJ.js";
|
|
11
11
|
import {
|
|
12
12
|
DialogBackdrop,
|
|
13
13
|
DialogCloseTrigger,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
DialogProvider,
|
|
19
19
|
DialogRoot,
|
|
20
20
|
DialogTrigger
|
|
21
|
-
} from "../../chunk-
|
|
21
|
+
} from "../../chunk-LUGOJGMO.js";
|
|
22
22
|
import "../../chunk-GITT5645.js";
|
|
23
23
|
import "../../chunk-UH6XSYYD.js";
|
|
24
24
|
import "../../chunk-53YVHIGJ.js";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Field
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-RTLS6K4E.js";
|
|
4
|
+
import "../../chunk-2U2JYN3D.js";
|
|
5
|
+
import "../../chunk-OK3VJFQL.js";
|
|
5
6
|
import "../../chunk-EMDNETC7.js";
|
|
6
7
|
import "../../chunk-VIKVLJGG.js";
|
|
7
8
|
import "../../chunk-BL7G3577.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { HelperText } from '../../_tsup-dts-rollup.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
HelperText
|
|
3
|
+
} from "../../chunk-2U2JYN3D.js";
|
|
4
|
+
import "../../chunk-OK3VJFQL.js";
|
|
5
|
+
import "../../chunk-EMDNETC7.js";
|
|
6
|
+
import "../../chunk-VIKVLJGG.js";
|
|
7
|
+
import "../../chunk-GITT5645.js";
|
|
8
|
+
export {
|
|
9
|
+
HelperText
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=helper-text.js.map
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import "../../chunk-TYPULJMJ.js";
|
|
2
2
|
import {
|
|
3
3
|
FieldParts
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-DVCTN3GN.js";
|
|
5
5
|
import {
|
|
6
6
|
Field
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-RTLS6K4E.js";
|
|
8
|
+
import "../../chunk-2U2JYN3D.js";
|
|
8
9
|
import {
|
|
9
10
|
FieldErrorText,
|
|
10
11
|
FieldHelperText,
|
|
@@ -15,7 +16,7 @@ import {
|
|
|
15
16
|
FieldTextarea,
|
|
16
17
|
Input,
|
|
17
18
|
Textarea
|
|
18
|
-
} from "../../chunk-
|
|
19
|
+
} from "../../chunk-OK3VJFQL.js";
|
|
19
20
|
import {
|
|
20
21
|
FieldStartIndicator
|
|
21
22
|
} from "../../chunk-EMDNETC7.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FieldParts
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-DVCTN3GN.js";
|
|
4
|
+
import "../../chunk-OK3VJFQL.js";
|
|
5
5
|
import "../../chunk-EMDNETC7.js";
|
|
6
6
|
import "../../chunk-VIKVLJGG.js";
|
|
7
7
|
import "../../chunk-GITT5645.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import "../../chunk-IOLYX3SY.js";
|
|
2
|
+
import "../../chunk-MV2AU6UV.js";
|
|
2
3
|
import {
|
|
3
4
|
NotificationCenter,
|
|
4
5
|
toaster,
|
|
@@ -17,7 +18,6 @@ import {
|
|
|
17
18
|
NotificationProvider,
|
|
18
19
|
NotificationRoot
|
|
19
20
|
} from "../../chunk-SZOV7M64.js";
|
|
20
|
-
import "../../chunk-MV2AU6UV.js";
|
|
21
21
|
import "../../chunk-GB7W3YNU.js";
|
|
22
22
|
import "../../chunk-GITT5645.js";
|
|
23
23
|
import "../../chunk-AUI74W7J.js";
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ConfirmModal,
|
|
4
4
|
useConfirmModal
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-WSOITM7D.js";
|
|
6
6
|
import "../chunk-DJOYRUNT.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-D7PY357P.js";
|
|
8
|
+
import "../chunk-BMDNCJUB.js";
|
|
9
|
+
import "../chunk-TRT6OCHJ.js";
|
|
10
|
+
import "../chunk-LUGOJGMO.js";
|
|
11
11
|
import "../chunk-GB7W3YNU.js";
|
|
12
12
|
import "../chunk-CF4TCMJI.js";
|
|
13
13
|
import "../chunk-IUF74GEL.js";
|
|
@@ -2,18 +2,19 @@
|
|
|
2
2
|
import {
|
|
3
3
|
PromptModal,
|
|
4
4
|
usePromptModal
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-RMSM3XPV.js";
|
|
6
6
|
import "../chunk-DJOYRUNT.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-D7PY357P.js";
|
|
8
|
+
import "../chunk-BMDNCJUB.js";
|
|
9
|
+
import "../chunk-TRT6OCHJ.js";
|
|
10
|
+
import "../chunk-LUGOJGMO.js";
|
|
11
11
|
import "../chunk-GB7W3YNU.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-ZPHPCKAG.js";
|
|
13
13
|
import "../chunk-TYPULJMJ.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-DVCTN3GN.js";
|
|
15
|
+
import "../chunk-RTLS6K4E.js";
|
|
16
|
+
import "../chunk-2U2JYN3D.js";
|
|
17
|
+
import "../chunk-OK3VJFQL.js";
|
|
17
18
|
import "../chunk-EMDNETC7.js";
|
|
18
19
|
import "../chunk-VIKVLJGG.js";
|
|
19
20
|
import "../chunk-CF4TCMJI.js";
|
package/build/modern/index.d.ts
CHANGED
|
@@ -96,6 +96,12 @@ export { createCTAModalActions } from './_tsup-dts-rollup.js';
|
|
|
96
96
|
export { CTAButtonAction } from './_tsup-dts-rollup.js';
|
|
97
97
|
export { CTAModalAction } from './_tsup-dts-rollup.js';
|
|
98
98
|
export { CTAModalActionReturn } from './_tsup-dts-rollup.js';
|
|
99
|
+
export { parseDate } from './_tsup-dts-rollup.js';
|
|
100
|
+
export { DateValue } from './_tsup-dts-rollup.js';
|
|
101
|
+
export { CalendarDate } from './_tsup-dts-rollup.js';
|
|
102
|
+
export { today } from './_tsup-dts-rollup.js';
|
|
103
|
+
export { getLocalTimeZone } from './_tsup-dts-rollup.js';
|
|
104
|
+
export { DateFormatter } from './_tsup-dts-rollup.js';
|
|
99
105
|
export { DatePickerParts } from './_tsup-dts-rollup.js';
|
|
100
106
|
export { DatePickerLabel } from './_tsup-dts-rollup.js';
|
|
101
107
|
export { DatePickerControl } from './_tsup-dts-rollup.js';
|
|
@@ -126,6 +132,7 @@ export { DatePickerInput } from './_tsup-dts-rollup.js';
|
|
|
126
132
|
export { RangePickerInput } from './_tsup-dts-rollup.js';
|
|
127
133
|
export { RangePickerInputProps } from './_tsup-dts-rollup.js';
|
|
128
134
|
export { DatePickerCalendar } from './_tsup-dts-rollup.js';
|
|
135
|
+
export { OpenChangeDetails } from './_tsup-dts-rollup.js';
|
|
129
136
|
export { DialogParts } from './_tsup-dts-rollup.js';
|
|
130
137
|
export { DialogRoot } from './_tsup-dts-rollup.js';
|
|
131
138
|
export { DialogTrigger } from './_tsup-dts-rollup.js';
|
|
@@ -355,6 +362,7 @@ export { formatNotifyCount } from './_tsup-dts-rollup.js';
|
|
|
355
362
|
export { splitProps } from './_tsup-dts-rollup.js';
|
|
356
363
|
export { getLocalStorage } from './_tsup-dts-rollup.js';
|
|
357
364
|
export { setLocalStorage } from './_tsup-dts-rollup.js';
|
|
365
|
+
export { WithCss } from './_tsup-dts-rollup.js';
|
|
358
366
|
export { Positions } from './_tsup-dts-rollup.js';
|
|
359
367
|
export { DndContext } from './_tsup-dts-rollup.js';
|
|
360
368
|
export { DragOverlay } from './_tsup-dts-rollup.js';
|
|
@@ -399,6 +407,7 @@ export { KeyboardCode } from './_tsup-dts-rollup.js';
|
|
|
399
407
|
export { MouseSensor } from './_tsup-dts-rollup.js';
|
|
400
408
|
export { PointerSensor } from './_tsup-dts-rollup.js';
|
|
401
409
|
export { TouchSensor } from './_tsup-dts-rollup.js';
|
|
410
|
+
export { defaultKeyboardCoordinateGetter } from './_tsup-dts-rollup.js';
|
|
402
411
|
export { useSensors } from './_tsup-dts-rollup.js';
|
|
403
412
|
export { useSensor } from './_tsup-dts-rollup.js';
|
|
404
413
|
export { Activator } from './_tsup-dts-rollup.js';
|
|
@@ -436,6 +445,8 @@ export { DragEndEvent } from './_tsup-dts-rollup.js';
|
|
|
436
445
|
export { DragMoveEvent } from './_tsup-dts-rollup.js';
|
|
437
446
|
export { DragOverEvent } from './_tsup-dts-rollup.js';
|
|
438
447
|
export { DragStartEvent } from './_tsup-dts-rollup.js';
|
|
448
|
+
export { DragPendingEvent } from './_tsup-dts-rollup.js';
|
|
449
|
+
export { DragAbortEvent } from './_tsup-dts-rollup.js';
|
|
439
450
|
export { DragCancelEvent } from './_tsup-dts-rollup.js';
|
|
440
451
|
export { Translate } from './_tsup-dts-rollup.js';
|
|
441
452
|
export { UniqueIdentifier } from './_tsup-dts-rollup.js';
|
package/build/modern/index.js
CHANGED
|
@@ -100,6 +100,7 @@ import {
|
|
|
100
100
|
RatingRoot
|
|
101
101
|
} from "./chunk-IL677ECW.js";
|
|
102
102
|
import "./chunk-IOLYX3SY.js";
|
|
103
|
+
import "./chunk-MV2AU6UV.js";
|
|
103
104
|
import {
|
|
104
105
|
NotificationCenter,
|
|
105
106
|
toaster,
|
|
@@ -118,7 +119,6 @@ import {
|
|
|
118
119
|
NotificationProvider,
|
|
119
120
|
NotificationRoot
|
|
120
121
|
} from "./chunk-SZOV7M64.js";
|
|
121
|
-
import "./chunk-MV2AU6UV.js";
|
|
122
122
|
import "./chunk-IDTAB2UJ.js";
|
|
123
123
|
import {
|
|
124
124
|
Fieldset
|
|
@@ -150,26 +150,32 @@ import {
|
|
|
150
150
|
} from "./chunk-IIH4VDQA.js";
|
|
151
151
|
import {
|
|
152
152
|
Label
|
|
153
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-AN65HXHS.js";
|
|
154
154
|
import {
|
|
155
155
|
Legend
|
|
156
156
|
} from "./chunk-6MMH3Y2U.js";
|
|
157
|
-
import
|
|
157
|
+
import {
|
|
158
|
+
CalendarDate,
|
|
159
|
+
DateFormatter,
|
|
160
|
+
getLocalTimeZone,
|
|
161
|
+
parseDate,
|
|
162
|
+
today
|
|
163
|
+
} from "./chunk-ADI4DOEW.js";
|
|
158
164
|
import {
|
|
159
165
|
RangePickerInput
|
|
160
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-P7FPAUWN.js";
|
|
161
167
|
import {
|
|
162
168
|
DatePicker
|
|
163
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-T44C3KQO.js";
|
|
164
170
|
import {
|
|
165
171
|
DatePickerInput
|
|
166
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-GJBUGESH.js";
|
|
167
173
|
import "./chunk-ZL7AX5EM.js";
|
|
168
174
|
import "./chunk-IKDXADLX.js";
|
|
169
175
|
import {
|
|
170
176
|
CTAModal,
|
|
171
177
|
useCTAModal
|
|
172
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-SHBKM6EW.js";
|
|
173
179
|
import "./chunk-4LSTU6WU.js";
|
|
174
180
|
import "./chunk-QD3WAARV.js";
|
|
175
181
|
import {
|
|
@@ -273,7 +279,7 @@ import {
|
|
|
273
279
|
} from "./chunk-2IYWFZTK.js";
|
|
274
280
|
import {
|
|
275
281
|
Checkbox
|
|
276
|
-
} from "./chunk-
|
|
282
|
+
} from "./chunk-QBA6KLL7.js";
|
|
277
283
|
import "./chunk-NYEUNVKR.js";
|
|
278
284
|
import {
|
|
279
285
|
CheckboxParts
|
|
@@ -286,27 +292,6 @@ import {
|
|
|
286
292
|
CheckboxLabel,
|
|
287
293
|
CheckboxRoot
|
|
288
294
|
} from "./chunk-ENJUQNVT.js";
|
|
289
|
-
import "./chunk-UR2NYAQC.js";
|
|
290
|
-
import {
|
|
291
|
-
Admonition
|
|
292
|
-
} from "./chunk-3IT3V3YA.js";
|
|
293
|
-
import "./chunk-NJ37QRAI.js";
|
|
294
|
-
import {
|
|
295
|
-
AdmonitionParts
|
|
296
|
-
} from "./chunk-JQYW4IOC.js";
|
|
297
|
-
import {
|
|
298
|
-
AdmonitionContent,
|
|
299
|
-
AdmonitionDescription,
|
|
300
|
-
AdmonitionHeading,
|
|
301
|
-
AdmonitionIndicator,
|
|
302
|
-
AdmonitionRoot
|
|
303
|
-
} from "./chunk-OY33UHBG.js";
|
|
304
|
-
import {
|
|
305
|
-
useRootColors
|
|
306
|
-
} from "./chunk-XJQXHSH7.js";
|
|
307
|
-
import {
|
|
308
|
-
useToggle
|
|
309
|
-
} from "./chunk-ICTISECN.js";
|
|
310
295
|
import "./chunk-R2V75WU6.js";
|
|
311
296
|
import {
|
|
312
297
|
Accordion,
|
|
@@ -323,10 +308,31 @@ import {
|
|
|
323
308
|
AccordionItemTrigger,
|
|
324
309
|
AccordionRoot
|
|
325
310
|
} from "./chunk-BMPMMTX3.js";
|
|
311
|
+
import {
|
|
312
|
+
useRootColors
|
|
313
|
+
} from "./chunk-XJQXHSH7.js";
|
|
314
|
+
import {
|
|
315
|
+
useToggle
|
|
316
|
+
} from "./chunk-ICTISECN.js";
|
|
317
|
+
import "./chunk-UR2NYAQC.js";
|
|
318
|
+
import {
|
|
319
|
+
Admonition
|
|
320
|
+
} from "./chunk-M3TZCQ7J.js";
|
|
321
|
+
import {
|
|
322
|
+
AdmonitionParts
|
|
323
|
+
} from "./chunk-JQYW4IOC.js";
|
|
324
|
+
import {
|
|
325
|
+
AdmonitionContent,
|
|
326
|
+
AdmonitionDescription,
|
|
327
|
+
AdmonitionHeading,
|
|
328
|
+
AdmonitionIndicator,
|
|
329
|
+
AdmonitionRoot
|
|
330
|
+
} from "./chunk-OY33UHBG.js";
|
|
331
|
+
import "./chunk-NJ37QRAI.js";
|
|
326
332
|
import {
|
|
327
333
|
ConfirmModal,
|
|
328
334
|
useConfirmModal
|
|
329
|
-
} from "./chunk-
|
|
335
|
+
} from "./chunk-WSOITM7D.js";
|
|
330
336
|
import {
|
|
331
337
|
NavMenu,
|
|
332
338
|
useNavMenuContext
|
|
@@ -334,17 +340,17 @@ import {
|
|
|
334
340
|
import {
|
|
335
341
|
PromptModal,
|
|
336
342
|
usePromptModal
|
|
337
|
-
} from "./chunk-
|
|
343
|
+
} from "./chunk-RMSM3XPV.js";
|
|
338
344
|
import "./chunk-DJOYRUNT.js";
|
|
339
345
|
import {
|
|
340
346
|
DialogCloseIconTrigger
|
|
341
|
-
} from "./chunk-
|
|
347
|
+
} from "./chunk-D7PY357P.js";
|
|
342
348
|
import {
|
|
343
349
|
Dialog
|
|
344
|
-
} from "./chunk-
|
|
350
|
+
} from "./chunk-BMDNCJUB.js";
|
|
345
351
|
import {
|
|
346
352
|
DialogParts
|
|
347
|
-
} from "./chunk-
|
|
353
|
+
} from "./chunk-TRT6OCHJ.js";
|
|
348
354
|
import {
|
|
349
355
|
DialogBackdrop,
|
|
350
356
|
DialogCloseTrigger,
|
|
@@ -355,7 +361,7 @@ import {
|
|
|
355
361
|
DialogProvider,
|
|
356
362
|
DialogRoot,
|
|
357
363
|
DialogTrigger
|
|
358
|
-
} from "./chunk-
|
|
364
|
+
} from "./chunk-LUGOJGMO.js";
|
|
359
365
|
import {
|
|
360
366
|
Button,
|
|
361
367
|
ButtonIcon
|
|
@@ -381,7 +387,7 @@ import {
|
|
|
381
387
|
} from "./chunk-TV346AYO.js";
|
|
382
388
|
import {
|
|
383
389
|
Text
|
|
384
|
-
} from "./chunk-
|
|
390
|
+
} from "./chunk-ZPHPCKAG.js";
|
|
385
391
|
import {
|
|
386
392
|
Tooltip
|
|
387
393
|
} from "./chunk-L2EGF5AV.js";
|
|
@@ -396,14 +402,15 @@ import "./chunk-36N4527B.js";
|
|
|
396
402
|
import {
|
|
397
403
|
FileStatus,
|
|
398
404
|
processStatus
|
|
399
|
-
} from "./chunk-
|
|
405
|
+
} from "./chunk-JXWNDJJW.js";
|
|
400
406
|
import "./chunk-TYPULJMJ.js";
|
|
401
407
|
import {
|
|
402
408
|
FieldParts
|
|
403
|
-
} from "./chunk-
|
|
409
|
+
} from "./chunk-DVCTN3GN.js";
|
|
404
410
|
import {
|
|
405
411
|
Field
|
|
406
|
-
} from "./chunk-
|
|
412
|
+
} from "./chunk-RTLS6K4E.js";
|
|
413
|
+
import "./chunk-2U2JYN3D.js";
|
|
407
414
|
import {
|
|
408
415
|
FieldErrorText,
|
|
409
416
|
FieldHelperText,
|
|
@@ -414,7 +421,7 @@ import {
|
|
|
414
421
|
FieldTextarea,
|
|
415
422
|
Input,
|
|
416
423
|
Textarea
|
|
417
|
-
} from "./chunk-
|
|
424
|
+
} from "./chunk-OK3VJFQL.js";
|
|
418
425
|
import {
|
|
419
426
|
FieldStartIndicator
|
|
420
427
|
} from "./chunk-EMDNETC7.js";
|
|
@@ -523,6 +530,7 @@ export {
|
|
|
523
530
|
ButtonIcon,
|
|
524
531
|
ButtonParts,
|
|
525
532
|
CTAModal,
|
|
533
|
+
CalendarDate,
|
|
526
534
|
Caption,
|
|
527
535
|
CerberusProvider,
|
|
528
536
|
Checkbox,
|
|
@@ -555,6 +563,7 @@ export {
|
|
|
555
563
|
ComboboxTrigger,
|
|
556
564
|
ConfirmModal,
|
|
557
565
|
DateFormats,
|
|
566
|
+
DateFormatter,
|
|
558
567
|
DatePicker,
|
|
559
568
|
DatePickerCalendar,
|
|
560
569
|
DatePickerClearTrigger,
|
|
@@ -732,12 +741,15 @@ export {
|
|
|
732
741
|
formatMilitaryToISO,
|
|
733
742
|
formatNotifyCount,
|
|
734
743
|
getLocalStorage,
|
|
744
|
+
getLocalTimeZone,
|
|
735
745
|
getPosition,
|
|
736
746
|
makeSystemConfig,
|
|
747
|
+
parseDate,
|
|
737
748
|
processStatus,
|
|
738
749
|
setLocalStorage,
|
|
739
750
|
splitProps,
|
|
740
751
|
toaster,
|
|
752
|
+
today,
|
|
741
753
|
trapFocus,
|
|
742
754
|
useAvatarContext,
|
|
743
755
|
useCTAModal,
|
|
@@ -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// deprecated\n\nexport * from './components/deprecated/FieldMessage'\nexport * from './components/deprecated/FieldsetLabel'\nexport * from './components/deprecated/Label'\nexport * from './components/deprecated/NavMenuTrigger'\nexport * from './components/deprecated/NavMenuList'\nexport * from './components/deprecated/NavMenuLink'\nexport * from './components/deprecated/Legend'\nexport * from './hooks/useDate'\nexport * from './hooks/useToggle'\n\n// components\n\nexport * from './components/admonition/index'\nexport * from './components/accordion/index'\nexport * from './components/avatar/index'\nexport * from './components/button/index'\nexport * from './components/checkbox/index'\nexport * from './components/CircularProgress'\nexport * from './components/combobox/index'\nexport * from './components/cta-dialog/index'\nexport * from './components/date-picker/index'\nexport * from './components/dialog/index'\nexport * from './components/Droppable'\nexport * from './components/FeatureFlag'\nexport * from './components/field/index'\nexport * from './components/fieldset/index'\nexport * from './components/FileStatus'\nexport * from './components/FileUploader'\nexport * from './components/for'\nexport * from './components/IconButton'\nexport * from './components/Menu'\nexport * from './components/notifications/index'\nexport * from './components/Portal'\nexport * from './components/ProgressBar'\nexport * from './components/radio/index'\nexport * from './components/rating/index'\nexport * from './components/select/index'\nexport * from './components/Show'\nexport * from './components/Spinner'\nexport * from './components/switch/index'\nexport * from './components/table/index'\nexport * from './components/tabs/index'\nexport * from './components/Tag'\nexport * from './components/Text'\nexport * from './components/toggle/index'\nexport * from './components/Tooltip'\n\n// context\n\nexport * from './context/cerberus'\nexport * from './context/confirm-modal'\nexport * from './context/feature-flags'\nexport * from './context/navMenu'\nexport * from './context/prompt-modal'\nexport * from './context/theme'\n\n// hooks\n\nexport * from './hooks/useTheme'\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// deprecated\n\nexport * from './components/deprecated/FieldMessage'\nexport * from './components/deprecated/FieldsetLabel'\nexport * from './components/deprecated/Label'\nexport * from './components/deprecated/NavMenuTrigger'\nexport * from './components/deprecated/NavMenuList'\nexport * from './components/deprecated/NavMenuLink'\nexport * from './components/deprecated/Legend'\nexport * from './hooks/useDate'\nexport * from './hooks/useToggle'\n\n// components\n\nexport * from './components/admonition/index'\nexport * from './components/accordion/index'\nexport * from './components/avatar/index'\nexport * from './components/button/index'\nexport * from './components/checkbox/index'\nexport * from './components/CircularProgress'\nexport * from './components/combobox/index'\nexport * from './components/cta-dialog/index'\nexport * from './components/date-picker/index'\nexport * from './components/dialog/index'\nexport * from './components/Droppable'\nexport * from './components/FeatureFlag'\nexport * from './components/field/index'\nexport * from './components/fieldset/index'\nexport * from './components/FileStatus'\nexport * from './components/FileUploader'\nexport * from './components/for'\nexport * from './components/IconButton'\nexport * from './components/Menu'\nexport * from './components/notifications/index'\nexport * from './components/Portal'\nexport * from './components/ProgressBar'\nexport * from './components/radio/index'\nexport * from './components/rating/index'\nexport * from './components/select/index'\nexport * from './components/Show'\nexport * from './components/Spinner'\nexport * from './components/switch/index'\nexport * from './components/table/index'\nexport * from './components/tabs/index'\nexport * from './components/Tag'\nexport * from './components/Text'\nexport * from './components/toggle/index'\nexport * from './components/Tooltip'\n\n// context\n\nexport * from './context/cerberus'\nexport * from './context/confirm-modal'\nexport * from './context/feature-flags'\nexport * from './context/navMenu'\nexport * from './context/prompt-modal'\nexport * from './context/theme'\n\n// hooks\n\nexport * from './hooks/useTheme'\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoFA,cAAc;","names":[]}
|
package/build/modern/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cerberus-design/react",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.4",
|
|
4
4
|
"description": "The Cerberus Design React component library.",
|
|
5
5
|
"browserslist": "> 0.25%, not dead",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -8,24 +8,25 @@
|
|
|
8
8
|
"main": "build/legacy/index.cjs",
|
|
9
9
|
"module": "build/modern/index.js",
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@pandacss/dev": "^0.53.
|
|
11
|
+
"@pandacss/dev": "^0.53.7",
|
|
12
12
|
"react": "*",
|
|
13
13
|
"react-dom": "*"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@ark-ui/react": "^5.
|
|
17
|
-
"@dnd-kit/core": "^6.1
|
|
16
|
+
"@ark-ui/react": "^5.9.2",
|
|
17
|
+
"@dnd-kit/core": "^6.3.1"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@
|
|
21
|
-
"@
|
|
22
|
-
"@
|
|
20
|
+
"@internationalized/date": "^3.8.1",
|
|
21
|
+
"@microsoft/api-extractor": "^7.52.4",
|
|
22
|
+
"@pandacss/dev": "^0.53.7",
|
|
23
|
+
"@types/react": "^19.1.2",
|
|
23
24
|
"@types/react-dom": "^19.0.4",
|
|
24
25
|
"react": "^19.1.0",
|
|
25
26
|
"react-dom": "^19.1.0",
|
|
26
27
|
"tsup": "^8.4.0",
|
|
27
|
-
"@cerberus-design/
|
|
28
|
-
"@cerberus-design/
|
|
28
|
+
"@cerberus-design/configs": "0.0.0",
|
|
29
|
+
"@cerberus-design/panda-preset": "0.18.4"
|
|
29
30
|
},
|
|
30
31
|
"publishConfig": {
|
|
31
32
|
"access": "public"
|
package/src/components/Text.tsx
CHANGED
|
@@ -44,28 +44,25 @@ export interface TextProps extends PProps {
|
|
|
44
44
|
*/
|
|
45
45
|
export function Text(props: TextProps) {
|
|
46
46
|
const { as = 'p', ...pandaJSXProps } = props
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return <Small {...pandaJSXProps} />
|
|
66
|
-
case 'span':
|
|
67
|
-
return <Span {...pandaJSXProps} />
|
|
68
|
-
default:
|
|
69
|
-
return <P {...pandaJSXProps} />
|
|
47
|
+
|
|
48
|
+
const cache = {
|
|
49
|
+
h1: H1,
|
|
50
|
+
h2: H2,
|
|
51
|
+
h3: H3,
|
|
52
|
+
h4: H4,
|
|
53
|
+
h5: H5,
|
|
54
|
+
h6: H6,
|
|
55
|
+
strong: Strong,
|
|
56
|
+
em: Em,
|
|
57
|
+
small: Small,
|
|
58
|
+
span: Span,
|
|
59
|
+
p: P,
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
if (as in cache) {
|
|
63
|
+
const Component = cache[as as keyof typeof cache]
|
|
64
|
+
return <Component {...pandaJSXProps} />
|
|
70
65
|
}
|
|
66
|
+
|
|
67
|
+
return <P {...pandaJSXProps} />
|
|
71
68
|
}
|
|
@@ -105,7 +105,12 @@ export function CTAModal(props: PropsWithChildren<object>) {
|
|
|
105
105
|
{props.children}
|
|
106
106
|
|
|
107
107
|
<DialogProvider open={open} onOpenChange={(e) => setOpen(e.open)}>
|
|
108
|
-
<Dialog
|
|
108
|
+
<Dialog
|
|
109
|
+
size="sm"
|
|
110
|
+
style={{
|
|
111
|
+
'--dialog-content-min-h': 'auto',
|
|
112
|
+
}}
|
|
113
|
+
>
|
|
109
114
|
<DialogCloseIconTrigger />
|
|
110
115
|
|
|
111
116
|
<VStack gap="xl" w="full">
|
|
@@ -13,12 +13,15 @@ import { DatePickerParts } from './parts'
|
|
|
13
13
|
* @description [Ark Docs](https://ark-ui.com/react/docs/components/date-picker)
|
|
14
14
|
*/
|
|
15
15
|
export function DatePicker(props: DatePickerRootProps) {
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
16
|
+
// const handleFormat = useCallback((date: DateValue) => {
|
|
17
|
+
// const day = date.day.toString().padStart(2, '0')
|
|
18
|
+
// const year = date.year.toString()
|
|
19
|
+
// const formattedMonth = new DateFormatter('en-US', {
|
|
20
|
+
// month: 'short',
|
|
21
|
+
// }).format(date.toDate(getLocalTimeZone()))
|
|
19
22
|
|
|
20
|
-
//
|
|
21
|
-
// return
|
|
23
|
+
// // Format the date as "DD MMM YYYY"
|
|
24
|
+
// return `${day} ${formattedMonth} ${year}`
|
|
22
25
|
// }, [])
|
|
23
26
|
|
|
24
27
|
return (
|
|
@@ -4,3 +4,13 @@ export * from './date-picker'
|
|
|
4
4
|
export * from './input'
|
|
5
5
|
export * from './range-input'
|
|
6
6
|
export * from './calendar'
|
|
7
|
+
|
|
8
|
+
// external dependencies
|
|
9
|
+
|
|
10
|
+
export { parseDate, type DateValue } from '@ark-ui/react/date-picker'
|
|
11
|
+
export {
|
|
12
|
+
CalendarDate,
|
|
13
|
+
today,
|
|
14
|
+
getLocalTimeZone,
|
|
15
|
+
DateFormatter,
|
|
16
|
+
} from '@internationalized/date'
|