@cerberus-design/react 0.12.0-next-635644c → 0.12.0-next-d7d547a
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 +81 -0
- package/build/legacy/context/notification-center.cjs +1 -1
- package/build/legacy/context/notification-center.cjs.map +1 -1
- package/build/legacy/hooks/useDate.cjs +122 -0
- package/build/legacy/hooks/useDate.cjs.map +1 -0
- package/build/legacy/index.cjs +100 -5
- package/build/legacy/index.cjs.map +1 -1
- package/build/modern/_tsup-dts-rollup.d.ts +81 -0
- package/build/modern/{chunk-ZBMA5G54.js → chunk-7MM5KYEX.js} +4 -4
- package/build/modern/chunk-CZND26FC.js +98 -0
- package/build/modern/chunk-CZND26FC.js.map +1 -0
- package/build/modern/{chunk-3FCUTX4S.js → chunk-J4LOSTEP.js} +13 -13
- package/build/modern/{chunk-ON64MA6L.js → chunk-KFGI37CO.js} +12 -12
- package/build/modern/{chunk-PNR7ZUAR.js → chunk-KUT2YEEQ.js} +7 -7
- package/build/modern/chunk-KUT2YEEQ.js.map +1 -0
- package/build/modern/{chunk-IFD2BUUW.js → chunk-NCUHRVW2.js} +15 -15
- package/build/modern/components/FileStatus.js +2 -2
- package/build/modern/context/confirm-modal.js +5 -5
- package/build/modern/context/cta-modal.js +5 -5
- package/build/modern/context/notification-center.js +3 -3
- package/build/modern/context/prompt-modal.js +6 -6
- package/build/modern/hooks/useDate.js +14 -0
- package/build/modern/hooks/useDate.js.map +1 -0
- package/build/modern/index.js +39 -29
- package/build/modern/index.js.map +1 -1
- package/package.json +3 -3
- package/src/context/notification-center.tsx +1 -1
- package/src/hooks/useDate.ts +164 -0
- package/src/index.ts +1 -0
- package/build/modern/chunk-PNR7ZUAR.js.map +0 -1
- /package/build/modern/{chunk-ZBMA5G54.js.map → chunk-7MM5KYEX.js.map} +0 -0
- /package/build/modern/{chunk-3FCUTX4S.js.map → chunk-J4LOSTEP.js.map} +0 -0
- /package/build/modern/{chunk-ON64MA6L.js.map → chunk-KFGI37CO.js.map} +0 -0
- /package/build/modern/{chunk-IFD2BUUW.js.map → chunk-NCUHRVW2.js.map} +0 -0
|
@@ -580,6 +580,21 @@ export { Data }
|
|
|
580
580
|
|
|
581
581
|
export { DataRef }
|
|
582
582
|
|
|
583
|
+
/**
|
|
584
|
+
* Date formatting options
|
|
585
|
+
* @example
|
|
586
|
+
* ```tsx
|
|
587
|
+
* const date = new Date()
|
|
588
|
+
* const formatted = date.format(DateFormats.USMilitary)
|
|
589
|
+
*/
|
|
590
|
+
declare const DateFormats: {
|
|
591
|
+
readonly ISO: string;
|
|
592
|
+
readonly USMilitary: string;
|
|
593
|
+
readonly Months: string[];
|
|
594
|
+
};
|
|
595
|
+
export { DateFormats }
|
|
596
|
+
export { DateFormats as DateFormats_alias_1 }
|
|
597
|
+
|
|
583
598
|
export { defaultAnnouncements }
|
|
584
599
|
|
|
585
600
|
export { defaultCoordinates }
|
|
@@ -1016,6 +1031,24 @@ declare interface FileUploaderProps extends InputHTMLAttributes<HTMLInputElement
|
|
|
1016
1031
|
export { FileUploaderProps }
|
|
1017
1032
|
export { FileUploaderProps as FileUploaderProps_alias_1 }
|
|
1018
1033
|
|
|
1034
|
+
/**
|
|
1035
|
+
* Converts a string to US Military format. Used within the `useDate` hook.
|
|
1036
|
+
* @param input The string to format
|
|
1037
|
+
* @returns The formatted string in US Military format (DD MMM YYYY)
|
|
1038
|
+
*/
|
|
1039
|
+
declare function formatMilitaryDate(input: string): string;
|
|
1040
|
+
export { formatMilitaryDate }
|
|
1041
|
+
export { formatMilitaryDate as formatMilitaryDate_alias_1 }
|
|
1042
|
+
|
|
1043
|
+
/**
|
|
1044
|
+
* Converts a string in US Military format to ISO format. Used within the `useDate` hook.
|
|
1045
|
+
* @param input The string to format
|
|
1046
|
+
* @returns The formatted string in ISO format (YYYY-MM-DD)
|
|
1047
|
+
*/
|
|
1048
|
+
declare function formatMilitaryToISO(input: string): string;
|
|
1049
|
+
export { formatMilitaryToISO }
|
|
1050
|
+
export { formatMilitaryToISO as formatMilitaryToISO_alias_1 }
|
|
1051
|
+
|
|
1019
1052
|
/**
|
|
1020
1053
|
* This module contains utility functions that are used across your app.
|
|
1021
1054
|
* @module Utils
|
|
@@ -2802,6 +2835,54 @@ declare function useCTAModal(): CTAModalValue;
|
|
|
2802
2835
|
export { useCTAModal }
|
|
2803
2836
|
export { useCTAModal as useCTAModal_alias_1 }
|
|
2804
2837
|
|
|
2838
|
+
/**
|
|
2839
|
+
* A hook for formatting and validating date inputs. The date format defaults to US Military format.
|
|
2840
|
+
* @example
|
|
2841
|
+
* ```tsx
|
|
2842
|
+
* const MyComponent = () => {
|
|
2843
|
+
* const date = useDate({ initialValue: '01 JAN 2024' })
|
|
2844
|
+
* return <input onChange={date.onChange} type="text" value={date.value} />
|
|
2845
|
+
* }
|
|
2846
|
+
*/
|
|
2847
|
+
declare function useDate(options?: UseDateOptions): UseDateReturn;
|
|
2848
|
+
export { useDate }
|
|
2849
|
+
export { useDate as useDate_alias_1 }
|
|
2850
|
+
|
|
2851
|
+
declare interface UseDateBase {
|
|
2852
|
+
/**
|
|
2853
|
+
* The format of the date input
|
|
2854
|
+
*/
|
|
2855
|
+
format?: string;
|
|
2856
|
+
/**
|
|
2857
|
+
* The callback to run when the date input changes
|
|
2858
|
+
*/
|
|
2859
|
+
onChange?: InputHTMLAttributes<HTMLInputElement>['onChange'];
|
|
2860
|
+
}
|
|
2861
|
+
export { UseDateBase }
|
|
2862
|
+
export { UseDateBase as UseDateBase_alias_1 }
|
|
2863
|
+
|
|
2864
|
+
declare interface UseDateOptions extends UseDateBase {
|
|
2865
|
+
/**
|
|
2866
|
+
* The initial value of the date input
|
|
2867
|
+
*/
|
|
2868
|
+
initialValue?: string;
|
|
2869
|
+
}
|
|
2870
|
+
export { UseDateOptions }
|
|
2871
|
+
export { UseDateOptions as UseDateOptions_alias_1 }
|
|
2872
|
+
|
|
2873
|
+
declare interface UseDateReturn extends UseDateBase {
|
|
2874
|
+
/**
|
|
2875
|
+
* The ISO formatted date string
|
|
2876
|
+
*/
|
|
2877
|
+
ISO: string;
|
|
2878
|
+
/**
|
|
2879
|
+
* The value of the date input
|
|
2880
|
+
*/
|
|
2881
|
+
value: string;
|
|
2882
|
+
}
|
|
2883
|
+
export { UseDateReturn }
|
|
2884
|
+
export { UseDateReturn as UseDateReturn_alias_1 }
|
|
2885
|
+
|
|
2805
2886
|
export { useDndContext }
|
|
2806
2887
|
|
|
2807
2888
|
export { UseDndContextReturnValue }
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
FieldMessage
|
|
9
9
|
} from "./chunk-JWIJHSI6.js";
|
|
10
|
-
import {
|
|
11
|
-
Avatar
|
|
12
|
-
} from "./chunk-SPZYPRZ6.js";
|
|
13
10
|
import {
|
|
14
11
|
Field
|
|
15
12
|
} from "./chunk-UZDVOIW5.js";
|
|
13
|
+
import {
|
|
14
|
+
Avatar
|
|
15
|
+
} from "./chunk-SPZYPRZ6.js";
|
|
16
16
|
import {
|
|
17
17
|
$cerberusIcons
|
|
18
18
|
} from "./chunk-VERRHMW4.js";
|
|
@@ -225,4 +225,4 @@ export {
|
|
|
225
225
|
processStatus,
|
|
226
226
|
FileStatus
|
|
227
227
|
};
|
|
228
|
-
//# sourceMappingURL=chunk-
|
|
228
|
+
//# sourceMappingURL=chunk-7MM5KYEX.js.map
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
// src/hooks/useDate.ts
|
|
2
|
+
import {
|
|
3
|
+
useState,
|
|
4
|
+
useCallback,
|
|
5
|
+
useMemo
|
|
6
|
+
} from "react";
|
|
7
|
+
function useDate(options) {
|
|
8
|
+
const initialValue = options?.initialValue ?? "";
|
|
9
|
+
const format = options?.format ?? DateFormats.USMilitary;
|
|
10
|
+
const onChange = options?.onChange;
|
|
11
|
+
const [value, setValue] = useState(initialValue);
|
|
12
|
+
const handleChange = useCallback(
|
|
13
|
+
(e) => {
|
|
14
|
+
const newValue = formatMilitaryDate(e.currentTarget.value);
|
|
15
|
+
if (onChange) onChange(e);
|
|
16
|
+
setValue(newValue);
|
|
17
|
+
},
|
|
18
|
+
[onChange]
|
|
19
|
+
);
|
|
20
|
+
return useMemo(
|
|
21
|
+
() => ({
|
|
22
|
+
format,
|
|
23
|
+
value,
|
|
24
|
+
ISO: formatMilitaryToISO(value),
|
|
25
|
+
onChange: handleChange
|
|
26
|
+
}),
|
|
27
|
+
[format, value, handleChange]
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
function formatMilitaryToISO(input) {
|
|
31
|
+
const [day, month, year] = input.split(" ");
|
|
32
|
+
const monthIndex = MONTHS.findIndex((m) => m.startsWith(month));
|
|
33
|
+
const monthNum = monthIndex + 1;
|
|
34
|
+
return `${year ?? "0000"}-${monthNum.toString().padStart(2, "0")}-${day.padStart(
|
|
35
|
+
2,
|
|
36
|
+
"0"
|
|
37
|
+
)}`;
|
|
38
|
+
}
|
|
39
|
+
function formatMilitaryDate(input) {
|
|
40
|
+
let formatted = input.toUpperCase().replace(/[^0-9A-Z]/g, "");
|
|
41
|
+
let day = "";
|
|
42
|
+
let month = "";
|
|
43
|
+
let year = "";
|
|
44
|
+
if (formatted.length >= 2) {
|
|
45
|
+
day = formatted.replace(/[^0-9]/g, "").slice(0, 2);
|
|
46
|
+
const dayNum = parseInt(day, 10);
|
|
47
|
+
if (dayNum > 31) day = "31";
|
|
48
|
+
else if (dayNum === 0) day = "01";
|
|
49
|
+
formatted = formatted.slice(2);
|
|
50
|
+
}
|
|
51
|
+
if (formatted.length >= 3) {
|
|
52
|
+
month = formatted.slice(0, 3);
|
|
53
|
+
const monthIndex = MONTHS.findIndex((m) => m.startsWith(month));
|
|
54
|
+
if (monthIndex !== -1) {
|
|
55
|
+
month = MONTHS[monthIndex];
|
|
56
|
+
} else {
|
|
57
|
+
month = month.replace(/[^A-Z]/g, "");
|
|
58
|
+
}
|
|
59
|
+
formatted = formatted.slice(3);
|
|
60
|
+
}
|
|
61
|
+
if (formatted.length > 0) {
|
|
62
|
+
year = formatted.slice(0, 4);
|
|
63
|
+
}
|
|
64
|
+
return [day, month, year].filter(Boolean).join(" ");
|
|
65
|
+
}
|
|
66
|
+
var DateFormats = {
|
|
67
|
+
get ISO() {
|
|
68
|
+
return "YYYY-MM-DD";
|
|
69
|
+
},
|
|
70
|
+
get USMilitary() {
|
|
71
|
+
return "DD MMM YYYY";
|
|
72
|
+
},
|
|
73
|
+
get Months() {
|
|
74
|
+
return MONTHS;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
var MONTHS = [
|
|
78
|
+
"JAN",
|
|
79
|
+
"FEB",
|
|
80
|
+
"MAR",
|
|
81
|
+
"APR",
|
|
82
|
+
"MAY",
|
|
83
|
+
"JUN",
|
|
84
|
+
"JUL",
|
|
85
|
+
"AUG",
|
|
86
|
+
"SEP",
|
|
87
|
+
"OCT",
|
|
88
|
+
"NOV",
|
|
89
|
+
"DEC"
|
|
90
|
+
];
|
|
91
|
+
|
|
92
|
+
export {
|
|
93
|
+
useDate,
|
|
94
|
+
formatMilitaryToISO,
|
|
95
|
+
formatMilitaryDate,
|
|
96
|
+
DateFormats
|
|
97
|
+
};
|
|
98
|
+
//# sourceMappingURL=chunk-CZND26FC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/hooks/useDate.ts"],"sourcesContent":["'use client'\n\nimport {\n useState,\n useCallback,\n ChangeEvent,\n useMemo,\n type InputHTMLAttributes,\n} from 'react'\n\nexport interface UseDateBase {\n /**\n * The format of the date input\n */\n format?: string\n /**\n * The callback to run when the date input changes\n */\n onChange?: InputHTMLAttributes<HTMLInputElement>['onChange']\n}\n\nexport interface UseDateOptions extends UseDateBase {\n /**\n * The initial value of the date input\n */\n initialValue?: string\n}\n\nexport interface UseDateReturn extends UseDateBase {\n /**\n * The ISO formatted date string\n */\n ISO: string\n /**\n * The value of the date input\n */\n value: string\n}\n\n/**\n * A hook for formatting and validating date inputs. The date format defaults to US Military format.\n * @example\n * ```tsx\n * const MyComponent = () => {\n * const date = useDate({ initialValue: '01 JAN 2024' })\n * return <input onChange={date.onChange} type=\"text\" value={date.value} />\n * }\n */\nexport function useDate(options?: UseDateOptions): UseDateReturn {\n const initialValue = options?.initialValue ?? ''\n const format = options?.format ?? DateFormats.USMilitary\n const onChange = options?.onChange\n const [value, setValue] = useState(initialValue)\n\n const handleChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n const newValue = formatMilitaryDate(e.currentTarget.value)\n if (onChange) onChange(e)\n setValue(newValue)\n },\n [onChange],\n )\n\n return useMemo(\n () => ({\n format,\n value,\n ISO: formatMilitaryToISO(value),\n onChange: handleChange,\n }),\n [format, value, handleChange],\n )\n}\n\n// helpers\n\n/**\n * Converts a string in US Military format to ISO format. Used within the `useDate` hook.\n * @param input The string to format\n * @returns The formatted string in ISO format (YYYY-MM-DD)\n */\nexport function formatMilitaryToISO(input: string) {\n const [day, month, year] = input.split(' ')\n const monthIndex = MONTHS.findIndex((m) => m.startsWith(month))\n const monthNum = monthIndex + 1\n return `${year ?? '0000'}-${monthNum.toString().padStart(2, '0')}-${day.padStart(\n 2,\n '0',\n )}`\n}\n\n/**\n * Converts a string to US Military format. Used within the `useDate` hook.\n * @param input The string to format\n * @returns The formatted string in US Military format (DD MMM YYYY)\n */\nexport function formatMilitaryDate(input: string): string {\n let formatted = input.toUpperCase().replace(/[^0-9A-Z]/g, '')\n let day = ''\n let month = ''\n let year = ''\n\n // Format day\n if (formatted.length >= 2) {\n day = formatted.replace(/[^0-9]/g, '').slice(0, 2)\n const dayNum = parseInt(day, 10)\n if (dayNum > 31) day = '31'\n else if (dayNum === 0) day = '01'\n formatted = formatted.slice(2)\n }\n\n // Format month\n if (formatted.length >= 3) {\n month = formatted.slice(0, 3)\n const monthIndex = MONTHS.findIndex((m) => m.startsWith(month))\n if (monthIndex !== -1) {\n month = MONTHS[monthIndex]\n } else {\n month = month.replace(/[^A-Z]/g, '')\n }\n formatted = formatted.slice(3)\n }\n\n // Format year\n if (formatted.length > 0) {\n year = formatted.slice(0, 4)\n }\n\n return [day, month, year].filter(Boolean).join(' ')\n}\n\n/**\n * Date formatting options\n * @example\n * ```tsx\n * const date = new Date()\n * const formatted = date.format(DateFormats.USMilitary)\n */\nexport const DateFormats = {\n get ISO() {\n return 'YYYY-MM-DD'\n },\n get USMilitary() {\n return 'DD MMM YYYY'\n },\n get Months() {\n return MONTHS\n },\n}\n\nconst MONTHS = [\n 'JAN',\n 'FEB',\n 'MAR',\n 'APR',\n 'MAY',\n 'JUN',\n 'JUL',\n 'AUG',\n 'SEP',\n 'OCT',\n 'NOV',\n 'DEC',\n]\n"],"mappings":";AAEA;AAAA,EACE;AAAA,EACA;AAAA,EAEA;AAAA,OAEK;AAwCA,SAAS,QAAQ,SAAyC;AAC/D,QAAM,eAAe,SAAS,gBAAgB;AAC9C,QAAM,SAAS,SAAS,UAAU,YAAY;AAC9C,QAAM,WAAW,SAAS;AAC1B,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAS,YAAY;AAE/C,QAAM,eAAe;AAAA,IACnB,CAAC,MAAqC;AACpC,YAAM,WAAW,mBAAmB,EAAE,cAAc,KAAK;AACzD,UAAI,SAAU,UAAS,CAAC;AACxB,eAAS,QAAQ;AAAA,IACnB;AAAA,IACA,CAAC,QAAQ;AAAA,EACX;AAEA,SAAO;AAAA,IACL,OAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA,KAAK,oBAAoB,KAAK;AAAA,MAC9B,UAAU;AAAA,IACZ;AAAA,IACA,CAAC,QAAQ,OAAO,YAAY;AAAA,EAC9B;AACF;AASO,SAAS,oBAAoB,OAAe;AACjD,QAAM,CAAC,KAAK,OAAO,IAAI,IAAI,MAAM,MAAM,GAAG;AAC1C,QAAM,aAAa,OAAO,UAAU,CAAC,MAAM,EAAE,WAAW,KAAK,CAAC;AAC9D,QAAM,WAAW,aAAa;AAC9B,SAAO,GAAG,QAA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A;AAAA,EACA;AACF;","names":[]}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ModalHeading
|
|
3
|
-
} from "./chunk-2UXE5PDG.js";
|
|
4
1
|
import {
|
|
5
2
|
Portal
|
|
6
3
|
} from "./chunk-K2PSHGS7.js";
|
|
4
|
+
import {
|
|
5
|
+
ModalHeader
|
|
6
|
+
} from "./chunk-ZFAIE47A.js";
|
|
7
|
+
import {
|
|
8
|
+
ModalHeading
|
|
9
|
+
} from "./chunk-2UXE5PDG.js";
|
|
7
10
|
import {
|
|
8
11
|
Modal
|
|
9
12
|
} from "./chunk-BE4EOU2P.js";
|
|
10
13
|
import {
|
|
11
14
|
ModalDescription
|
|
12
15
|
} from "./chunk-Q7BRMIBR.js";
|
|
13
|
-
import {
|
|
14
|
-
ModalHeader
|
|
15
|
-
} from "./chunk-ZFAIE47A.js";
|
|
16
16
|
import {
|
|
17
17
|
IconButton
|
|
18
18
|
} from "./chunk-APD6IX5R.js";
|
|
19
|
+
import {
|
|
20
|
+
useModal
|
|
21
|
+
} from "./chunk-KGQG5JGW.js";
|
|
19
22
|
import {
|
|
20
23
|
Avatar
|
|
21
24
|
} from "./chunk-SPZYPRZ6.js";
|
|
22
|
-
import {
|
|
23
|
-
Button
|
|
24
|
-
} from "./chunk-EXGKZGML.js";
|
|
25
25
|
import {
|
|
26
26
|
Show
|
|
27
27
|
} from "./chunk-BUVVRQLZ.js";
|
|
28
|
+
import {
|
|
29
|
+
Button
|
|
30
|
+
} from "./chunk-EXGKZGML.js";
|
|
28
31
|
import {
|
|
29
32
|
trapFocus
|
|
30
33
|
} from "./chunk-JIZQFTW6.js";
|
|
31
34
|
import {
|
|
32
35
|
$cerberusIcons
|
|
33
36
|
} from "./chunk-VERRHMW4.js";
|
|
34
|
-
import {
|
|
35
|
-
useModal
|
|
36
|
-
} from "./chunk-KGQG5JGW.js";
|
|
37
37
|
|
|
38
38
|
// src/context/cta-modal.tsx
|
|
39
39
|
import {
|
|
@@ -152,4 +152,4 @@ export {
|
|
|
152
152
|
CTAModal,
|
|
153
153
|
useCTAModal
|
|
154
154
|
};
|
|
155
|
-
//# sourceMappingURL=chunk-
|
|
155
|
+
//# sourceMappingURL=chunk-J4LOSTEP.js.map
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ModalHeading
|
|
3
|
-
} from "./chunk-2UXE5PDG.js";
|
|
4
1
|
import {
|
|
5
2
|
Portal
|
|
6
3
|
} from "./chunk-K2PSHGS7.js";
|
|
4
|
+
import {
|
|
5
|
+
ModalHeader
|
|
6
|
+
} from "./chunk-ZFAIE47A.js";
|
|
7
|
+
import {
|
|
8
|
+
ModalHeading
|
|
9
|
+
} from "./chunk-2UXE5PDG.js";
|
|
7
10
|
import {
|
|
8
11
|
Modal
|
|
9
12
|
} from "./chunk-BE4EOU2P.js";
|
|
@@ -11,26 +14,23 @@ import {
|
|
|
11
14
|
ModalDescription
|
|
12
15
|
} from "./chunk-Q7BRMIBR.js";
|
|
13
16
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./chunk-
|
|
17
|
+
useModal
|
|
18
|
+
} from "./chunk-KGQG5JGW.js";
|
|
16
19
|
import {
|
|
17
20
|
Avatar
|
|
18
21
|
} from "./chunk-SPZYPRZ6.js";
|
|
19
|
-
import {
|
|
20
|
-
Button
|
|
21
|
-
} from "./chunk-EXGKZGML.js";
|
|
22
22
|
import {
|
|
23
23
|
Show
|
|
24
24
|
} from "./chunk-BUVVRQLZ.js";
|
|
25
|
+
import {
|
|
26
|
+
Button
|
|
27
|
+
} from "./chunk-EXGKZGML.js";
|
|
25
28
|
import {
|
|
26
29
|
trapFocus
|
|
27
30
|
} from "./chunk-JIZQFTW6.js";
|
|
28
31
|
import {
|
|
29
32
|
$cerberusIcons
|
|
30
33
|
} from "./chunk-VERRHMW4.js";
|
|
31
|
-
import {
|
|
32
|
-
useModal
|
|
33
|
-
} from "./chunk-KGQG5JGW.js";
|
|
34
34
|
|
|
35
35
|
// src/context/confirm-modal.tsx
|
|
36
36
|
import {
|
|
@@ -176,4 +176,4 @@ export {
|
|
|
176
176
|
ConfirmModal,
|
|
177
177
|
useConfirmModal
|
|
178
178
|
};
|
|
179
|
-
//# sourceMappingURL=chunk-
|
|
179
|
+
//# sourceMappingURL=chunk-KFGI37CO.js.map
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Portal
|
|
3
|
+
} from "./chunk-K2PSHGS7.js";
|
|
1
4
|
import {
|
|
2
5
|
Notification
|
|
3
6
|
} from "./chunk-7SGPJM66.js";
|
|
@@ -8,14 +11,11 @@ import {
|
|
|
8
11
|
NotificationHeading
|
|
9
12
|
} from "./chunk-SXIXDXG3.js";
|
|
10
13
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./chunk-
|
|
14
|
+
Show
|
|
15
|
+
} from "./chunk-BUVVRQLZ.js";
|
|
13
16
|
import {
|
|
14
17
|
Button
|
|
15
18
|
} from "./chunk-EXGKZGML.js";
|
|
16
|
-
import {
|
|
17
|
-
Show
|
|
18
|
-
} from "./chunk-BUVVRQLZ.js";
|
|
19
19
|
|
|
20
20
|
// src/context/notification-center.tsx
|
|
21
21
|
import {
|
|
@@ -72,7 +72,7 @@ function NotificationCenter(props) {
|
|
|
72
72
|
palette: "action",
|
|
73
73
|
shape: "rounded",
|
|
74
74
|
size: "sm",
|
|
75
|
-
usage: "
|
|
75
|
+
usage: "ghost",
|
|
76
76
|
children: "Close all"
|
|
77
77
|
}
|
|
78
78
|
) }),
|
|
@@ -159,4 +159,4 @@ export {
|
|
|
159
159
|
NotificationCenter,
|
|
160
160
|
useNotificationCenter
|
|
161
161
|
};
|
|
162
|
-
//# sourceMappingURL=chunk-
|
|
162
|
+
//# sourceMappingURL=chunk-KUT2YEEQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/context/notification-center.tsx"],"sourcesContent":["'use client'\n\nimport {\n createContext,\n useCallback,\n useContext,\n useMemo,\n useState,\n type MouseEvent,\n type PropsWithChildren,\n type ReactNode,\n} from 'react'\nimport { Show } from '../components/Show'\nimport { NotificationHeading } from '../components/NotificationHeading'\nimport { NotificationDescription } from '../components/NotificationDescription'\nimport { Notification } from '../components/Notification'\nimport { animateIn, vstack } from '@cerberus/styled-system/patterns'\nimport { Portal, type PortalProps } from '../components/Portal'\nimport { notification } from '@cerberus/styled-system/recipes'\nimport { Button } from '../components/Button'\nimport { cx } from '@cerberus/styled-system/css'\n\n/**\n * This module provides a context and hook for notifications.\n * @module\n */\n\nexport interface NotifyOptions {\n /**\n * The palette of the notification.\n * @default 'info'\n */\n palette: 'info' | 'success' | 'warning' | 'danger'\n /**\n * The heading of the notification.\n */\n heading: string\n /**\n * The unique id of the notification.\n */\n id?: string\n /**\n * The description of the notification.\n */\n description?: ReactNode\n /**\n * The action to take when the notification is closed\n */\n onClose?: () => void\n}\n\nexport interface NotificationsValue {\n notify: (options: NotifyOptions) => void\n}\n\nconst NotificationsContext = createContext<NotificationsValue | null>(null)\n\nexport interface NotificationsProviderProps extends PortalProps {}\n\n/**\n * Provides a notification center to the app.\n * @see https://cerberus.digitalu.design/react/notification\n * @example\n * ```tsx\n * // Wrap the Provider around the root of the feature.\n * <Notifications>\n * <SomeFeatureSection />\n * </Notifications>\n *\n * // Use the hook to show a notification.\n * const notify = useNotifications()\n *\n * const handleClick = useCallback(() => {\n * notify({\n * palette: 'info',\n * heading: 'New feature!',\n * description: 'We have added a new feature to the app.',\n * })\n * }, [notify])\n * ```\n */\nexport function NotificationCenter(\n props: PropsWithChildren<NotificationsProviderProps>,\n) {\n const [activeNotifications, setActiveNotifications] = useState<\n NotifyOptions[]\n >([])\n const styles = notification()\n\n const handleNotify = useCallback((options: NotifyOptions) => {\n setActiveNotifications((prev) => {\n const id = `${options.palette}:${prev.length + 1}`\n return [...prev, { ...options, id }]\n })\n }, [])\n\n const handleClose = useCallback((e: MouseEvent<HTMLButtonElement>) => {\n const target = e.currentTarget as HTMLButtonElement\n setActiveNotifications((prev) => {\n const item = prev.find((option) => option.id === target.value)\n if (item?.onClose) item.onClose()\n return prev.filter((option) => option.id !== target.value)\n })\n }, [])\n\n const handleCloseAll = useCallback(() => {\n setActiveNotifications((prev) => {\n prev.forEach((item) => {\n if (item.onClose) item.onClose()\n })\n return []\n })\n }, [])\n\n const value = useMemo(\n () => ({\n notify: handleNotify,\n }),\n [handleNotify],\n )\n\n // For some reason, the vstack pattern alignItems is not registering here.\n // So we are forcing it with the style prop.\n\n return (\n <NotificationsContext.Provider value={value}>\n {props.children}\n\n <Show when={activeNotifications.length > 0}>\n <Portal container={props.container}>\n <div className={styles.center}>\n <Show when={activeNotifications.length >= 4}>\n <Button\n className={cx(styles.closeAll, animateIn())}\n onClick={handleCloseAll}\n palette=\"action\"\n shape=\"rounded\"\n size=\"sm\"\n usage=\"ghost\"\n >\n Close all\n </Button>\n </Show>\n <div\n className={vstack({\n alignItems: 'flex-end',\n gap: '4',\n })}\n style={{\n alignItems: 'flex-end',\n }}\n >\n {activeNotifications.map((option) => (\n <MatchNotification\n key={option.id}\n {...option}\n onClose={handleClose}\n />\n ))}\n </div>\n </div>\n </Portal>\n </Show>\n </NotificationsContext.Provider>\n )\n}\n\ninterface MatchNotificationProps extends Omit<NotifyOptions, 'onClose'> {\n onClose: (e: MouseEvent<HTMLButtonElement>) => void\n key: string | undefined\n}\n\nfunction MatchNotification(props: MatchNotificationProps) {\n const { palette, id, onClose, heading, description } = props\n\n switch (palette) {\n case 'success':\n return (\n <Notification\n id={id!}\n key={id}\n onClose={onClose}\n open\n palette=\"success\"\n >\n <NotificationHeading palette=\"success\">{heading}</NotificationHeading>\n <NotificationDescription palette=\"success\">\n {description}\n </NotificationDescription>\n </Notification>\n )\n\n case 'warning':\n return (\n <Notification\n id={id!}\n key={id}\n onClose={onClose}\n open\n palette=\"warning\"\n >\n <NotificationHeading palette=\"warning\">{heading}</NotificationHeading>\n <NotificationDescription palette=\"warning\">\n {description}\n </NotificationDescription>\n </Notification>\n )\n\n case 'danger':\n return (\n <Notification id={id!} key={id} onClose={onClose} open palette=\"danger\">\n <NotificationHeading palette=\"danger\">{heading}</NotificationHeading>\n <NotificationDescription palette=\"danger\">\n {description}\n </NotificationDescription>\n </Notification>\n )\n\n case 'info':\n default:\n return (\n <Notification id={id!} key={id} onClose={onClose} open palette=\"info\">\n <NotificationHeading palette=\"info\">{heading}</NotificationHeading>\n <NotificationDescription palette=\"info\">\n {description}\n </NotificationDescription>\n </Notification>\n )\n }\n}\n\n/**\n * The hook to use the NotificationCenter.\n * @returns The notify method to trigger a notification.\n * @example\n * ```tsx\n * const {notify} = useNotificationCenter()\n * notify({\n * palette: 'info',\n * heading: 'New feature',\n * description: 'We have added a new feature to the app.',\n * })\n * ```\n */\nexport function useNotificationCenter(): NotificationsValue {\n const context = useContext(NotificationsContext)\n if (!context) {\n throw new Error(\n 'useNotificationCenter must be used within a NotificationsProvider',\n )\n }\n return context\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAEA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAIK;AAKP,SAAS,WAAW,cAAc;AAElC,SAAS,oBAAoB;AAE7B,SAAS,UAAU;AA8GT,SAEI,KAFJ;AA3EV,IAAM,uBAAuB,cAAyC,IAAI;AA0BnE,SAAS,mBACd,OACA;AACA,QAAM,CAAC,qBAAqB,sBAAsB,IAAI,SAEpD,CAAC,CAAC;AACJ,QAAM,SAAS,aAAa;AAE5B,QAAM,eAAe,YAAY,CAAC,YAA2B;AAC3D,2BAAuB,CAAC,SAAS;AAC/B,YAAM,KAAK,GAAG,QAAQ,OAAO,IAAI,KAAK,SAAS,CAAC;AAChD,aAAO,CAAC,GAAG,MAAM,EAAE,GAAG,SAAS,GAAG,CAAC;AAAA,IACrC,CAAC;AAAA,EACH,GAAG,CAAC,CAAC;AAEL,QAAM,cAAc,YAAY,CAAC,MAAqC;AACpE,UAAM,SAAS,EAAE;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 -1,9 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ModalHeading
|
|
3
|
-
} from "./chunk-2UXE5PDG.js";
|
|
4
1
|
import {
|
|
5
2
|
Portal
|
|
6
3
|
} from "./chunk-K2PSHGS7.js";
|
|
4
|
+
import {
|
|
5
|
+
ModalHeader
|
|
6
|
+
} from "./chunk-ZFAIE47A.js";
|
|
7
|
+
import {
|
|
8
|
+
ModalHeading
|
|
9
|
+
} from "./chunk-2UXE5PDG.js";
|
|
7
10
|
import {
|
|
8
11
|
Input
|
|
9
12
|
} from "./chunk-NKM6PISB.js";
|
|
@@ -17,29 +20,26 @@ import {
|
|
|
17
20
|
ModalDescription
|
|
18
21
|
} from "./chunk-Q7BRMIBR.js";
|
|
19
22
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./chunk-
|
|
23
|
+
Field
|
|
24
|
+
} from "./chunk-UZDVOIW5.js";
|
|
25
|
+
import {
|
|
26
|
+
useModal
|
|
27
|
+
} from "./chunk-KGQG5JGW.js";
|
|
22
28
|
import {
|
|
23
29
|
Avatar
|
|
24
30
|
} from "./chunk-SPZYPRZ6.js";
|
|
25
|
-
import {
|
|
26
|
-
Button
|
|
27
|
-
} from "./chunk-EXGKZGML.js";
|
|
28
|
-
import {
|
|
29
|
-
Field
|
|
30
|
-
} from "./chunk-UZDVOIW5.js";
|
|
31
31
|
import {
|
|
32
32
|
Show
|
|
33
33
|
} from "./chunk-BUVVRQLZ.js";
|
|
34
|
+
import {
|
|
35
|
+
Button
|
|
36
|
+
} from "./chunk-EXGKZGML.js";
|
|
34
37
|
import {
|
|
35
38
|
trapFocus
|
|
36
39
|
} from "./chunk-JIZQFTW6.js";
|
|
37
40
|
import {
|
|
38
41
|
$cerberusIcons
|
|
39
42
|
} from "./chunk-VERRHMW4.js";
|
|
40
|
-
import {
|
|
41
|
-
useModal
|
|
42
|
-
} from "./chunk-KGQG5JGW.js";
|
|
43
43
|
|
|
44
44
|
// src/context/prompt-modal.tsx
|
|
45
45
|
import {
|
|
@@ -240,4 +240,4 @@ export {
|
|
|
240
240
|
PromptModal,
|
|
241
241
|
usePromptModal
|
|
242
242
|
};
|
|
243
|
-
//# sourceMappingURL=chunk-
|
|
243
|
+
//# sourceMappingURL=chunk-NCUHRVW2.js.map
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
FileStatus,
|
|
4
4
|
processStatus
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-7MM5KYEX.js";
|
|
6
6
|
import "../chunk-KCANMM64.js";
|
|
7
7
|
import "../chunk-APD6IX5R.js";
|
|
8
8
|
import "../chunk-JWIJHSI6.js";
|
|
9
|
-
import "../chunk-SPZYPRZ6.js";
|
|
10
9
|
import "../chunk-UZDVOIW5.js";
|
|
10
|
+
import "../chunk-SPZYPRZ6.js";
|
|
11
11
|
import "../chunk-BUVVRQLZ.js";
|
|
12
12
|
import "../chunk-VERRHMW4.js";
|
|
13
13
|
import "../chunk-F27AAKQ3.js";
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ConfirmModal,
|
|
4
4
|
useConfirmModal
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-2UXE5PDG.js";
|
|
5
|
+
} from "../chunk-KFGI37CO.js";
|
|
7
6
|
import "../chunk-K2PSHGS7.js";
|
|
7
|
+
import "../chunk-ZFAIE47A.js";
|
|
8
|
+
import "../chunk-2UXE5PDG.js";
|
|
8
9
|
import "../chunk-BE4EOU2P.js";
|
|
9
10
|
import "../chunk-Q7BRMIBR.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-KGQG5JGW.js";
|
|
11
12
|
import "../chunk-SPZYPRZ6.js";
|
|
12
|
-
import "../chunk-EXGKZGML.js";
|
|
13
13
|
import "../chunk-BUVVRQLZ.js";
|
|
14
|
+
import "../chunk-EXGKZGML.js";
|
|
14
15
|
import "../chunk-JIZQFTW6.js";
|
|
15
16
|
import "../chunk-VERRHMW4.js";
|
|
16
17
|
import "../chunk-F27AAKQ3.js";
|
|
17
18
|
import "../chunk-CP7OUC2Q.js";
|
|
18
19
|
import "../chunk-HVKM54BA.js";
|
|
19
|
-
import "../chunk-KGQG5JGW.js";
|
|
20
20
|
export {
|
|
21
21
|
ConfirmModal,
|
|
22
22
|
useConfirmModal
|
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
import {
|
|
3
3
|
CTAModal,
|
|
4
4
|
useCTAModal
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-2UXE5PDG.js";
|
|
5
|
+
} from "../chunk-J4LOSTEP.js";
|
|
7
6
|
import "../chunk-K2PSHGS7.js";
|
|
7
|
+
import "../chunk-ZFAIE47A.js";
|
|
8
|
+
import "../chunk-2UXE5PDG.js";
|
|
8
9
|
import "../chunk-BE4EOU2P.js";
|
|
9
10
|
import "../chunk-Q7BRMIBR.js";
|
|
10
|
-
import "../chunk-ZFAIE47A.js";
|
|
11
11
|
import "../chunk-APD6IX5R.js";
|
|
12
|
+
import "../chunk-KGQG5JGW.js";
|
|
12
13
|
import "../chunk-SPZYPRZ6.js";
|
|
13
|
-
import "../chunk-EXGKZGML.js";
|
|
14
14
|
import "../chunk-BUVVRQLZ.js";
|
|
15
|
+
import "../chunk-EXGKZGML.js";
|
|
15
16
|
import "../chunk-JIZQFTW6.js";
|
|
16
17
|
import "../chunk-VERRHMW4.js";
|
|
17
18
|
import "../chunk-F27AAKQ3.js";
|
|
18
19
|
import "../chunk-CP7OUC2Q.js";
|
|
19
20
|
import "../chunk-HVKM54BA.js";
|
|
20
|
-
import "../chunk-KGQG5JGW.js";
|
|
21
21
|
export {
|
|
22
22
|
CTAModal,
|
|
23
23
|
useCTAModal
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
NotificationCenter,
|
|
4
4
|
useNotificationCenter
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-KUT2YEEQ.js";
|
|
6
|
+
import "../chunk-K2PSHGS7.js";
|
|
6
7
|
import "../chunk-7SGPJM66.js";
|
|
7
8
|
import "../chunk-XEW6TJJ4.js";
|
|
8
9
|
import "../chunk-SXIXDXG3.js";
|
|
9
|
-
import "../chunk-K2PSHGS7.js";
|
|
10
|
-
import "../chunk-EXGKZGML.js";
|
|
11
10
|
import "../chunk-BUVVRQLZ.js";
|
|
11
|
+
import "../chunk-EXGKZGML.js";
|
|
12
12
|
import "../chunk-JIZQFTW6.js";
|
|
13
13
|
import "../chunk-VERRHMW4.js";
|
|
14
14
|
import "../chunk-F27AAKQ3.js";
|
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
import {
|
|
3
3
|
PromptModal,
|
|
4
4
|
usePromptModal
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-2UXE5PDG.js";
|
|
5
|
+
} from "../chunk-NCUHRVW2.js";
|
|
7
6
|
import "../chunk-K2PSHGS7.js";
|
|
7
|
+
import "../chunk-ZFAIE47A.js";
|
|
8
|
+
import "../chunk-2UXE5PDG.js";
|
|
8
9
|
import "../chunk-NKM6PISB.js";
|
|
9
10
|
import "../chunk-NMF2HYWO.js";
|
|
10
11
|
import "../chunk-BE4EOU2P.js";
|
|
11
12
|
import "../chunk-Q7BRMIBR.js";
|
|
12
|
-
import "../chunk-ZFAIE47A.js";
|
|
13
|
-
import "../chunk-SPZYPRZ6.js";
|
|
14
|
-
import "../chunk-EXGKZGML.js";
|
|
15
13
|
import "../chunk-UZDVOIW5.js";
|
|
14
|
+
import "../chunk-KGQG5JGW.js";
|
|
15
|
+
import "../chunk-SPZYPRZ6.js";
|
|
16
16
|
import "../chunk-BUVVRQLZ.js";
|
|
17
|
+
import "../chunk-EXGKZGML.js";
|
|
17
18
|
import "../chunk-JIZQFTW6.js";
|
|
18
19
|
import "../chunk-VERRHMW4.js";
|
|
19
20
|
import "../chunk-F27AAKQ3.js";
|
|
20
21
|
import "../chunk-CP7OUC2Q.js";
|
|
21
22
|
import "../chunk-HVKM54BA.js";
|
|
22
|
-
import "../chunk-KGQG5JGW.js";
|
|
23
23
|
export {
|
|
24
24
|
PromptModal,
|
|
25
25
|
usePromptModal
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
DateFormats,
|
|
4
|
+
formatMilitaryDate,
|
|
5
|
+
formatMilitaryToISO,
|
|
6
|
+
useDate
|
|
7
|
+
} from "../chunk-CZND26FC.js";
|
|
8
|
+
export {
|
|
9
|
+
DateFormats,
|
|
10
|
+
formatMilitaryDate,
|
|
11
|
+
formatMilitaryToISO,
|
|
12
|
+
useDate
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=useDate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|