@cerberus-design/react 0.8.0-next-79fb5c6 → 0.8.0-next-9aba71d
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.ts +65 -5
- package/build/legacy/{chunk-VQMP3PBJ.js → chunk-23UPROCG.js} +3 -3
- package/build/legacy/{chunk-VQMP3PBJ.js.map → chunk-23UPROCG.js.map} +1 -1
- package/build/legacy/{chunk-RQPDRHRP.js → chunk-2FK7NR7Y.js} +4 -4
- package/build/legacy/{chunk-6PN23MAZ.js → chunk-3RRNMPFC.js} +2 -2
- package/build/{modern/chunk-R6DGIPXN.js → legacy/chunk-4FD33RTW.js} +5 -5
- package/build/legacy/{chunk-C7447UIN.js → chunk-53QBTZZF.js} +5 -5
- package/build/legacy/{chunk-HQIRGWY3.js → chunk-5WVXIAG2.js} +2 -2
- package/build/legacy/chunk-7NX4RGDB.js +218 -0
- package/build/legacy/chunk-7NX4RGDB.js.map +1 -0
- package/build/{modern/chunk-K3X3OMAA.js → legacy/chunk-GUECLKHY.js} +9 -1
- package/build/legacy/chunk-GUECLKHY.js.map +1 -0
- package/build/{modern/chunk-MVV3VTY2.js → legacy/chunk-ID3XWGLY.js} +2 -2
- package/build/legacy/{chunk-BI6UZBJB.js → chunk-JHAI4ZHG.js} +2 -2
- package/build/legacy/{chunk-7EDCTSAP.js → chunk-KUQZECNS.js} +5 -5
- package/build/legacy/{chunk-RHMGQNFD.js → chunk-RHG26FYL.js} +5 -5
- package/build/legacy/{chunk-XKID4ZMW.js → chunk-TJI2SJCZ.js} +10 -10
- package/build/{modern/chunk-JJP2TFTU.js → legacy/chunk-VCR5C6Q3.js} +1 -1
- package/build/legacy/chunk-VCR5C6Q3.js.map +1 -0
- package/build/legacy/components/Checkbox.js +4 -4
- package/build/legacy/components/FileStatus.js +17 -0
- package/build/legacy/components/FileStatus.js.map +1 -0
- package/build/legacy/components/FileUploader.js +3 -3
- package/build/legacy/components/Input.js +4 -4
- package/build/legacy/components/Label.js +2 -2
- package/build/legacy/components/ModalIcon.js +1 -1
- package/build/legacy/components/Notification.js +3 -3
- package/build/legacy/components/Select.js +4 -4
- package/build/legacy/components/Toggle.js +3 -3
- package/build/legacy/config/cerbIcons.js +1 -1
- package/build/legacy/config/defineIcons.js +2 -2
- package/build/legacy/context/confirm-modal.js +4 -4
- package/build/legacy/context/notification-center.js +4 -4
- package/build/legacy/context/prompt-modal.js +7 -7
- package/build/legacy/index.js +33 -27
- package/build/legacy/index.js.map +1 -1
- package/build/modern/_tsup-dts-rollup.d.ts +65 -5
- package/build/modern/{chunk-RQPDRHRP.js → chunk-2FK7NR7Y.js} +4 -4
- package/build/{legacy/chunk-R6DGIPXN.js → modern/chunk-4FD33RTW.js} +5 -5
- package/build/modern/{chunk-C7447UIN.js → chunk-53QBTZZF.js} +5 -5
- package/build/modern/{chunk-HQIRGWY3.js → chunk-5WVXIAG2.js} +2 -2
- package/build/modern/chunk-7NX4RGDB.js +218 -0
- package/build/modern/chunk-7NX4RGDB.js.map +1 -0
- package/build/modern/{chunk-HVICMTKV.js → chunk-EJIMJWPB.js} +2 -2
- package/build/{legacy/chunk-K3X3OMAA.js → modern/chunk-GUECLKHY.js} +9 -1
- package/build/modern/chunk-GUECLKHY.js.map +1 -0
- package/build/modern/{chunk-R4V7FTYK.js → chunk-GZY6CH7D.js} +5 -5
- package/build/{legacy/chunk-MVV3VTY2.js → modern/chunk-ID3XWGLY.js} +2 -2
- package/build/modern/{chunk-RHMGQNFD.js → chunk-RHG26FYL.js} +5 -5
- package/build/modern/{chunk-66OTWSEH.js → chunk-S6CMAXQF.js} +10 -10
- package/build/modern/{chunk-EKUUJB37.js → chunk-TF3HRELU.js} +3 -3
- package/build/modern/{chunk-EKUUJB37.js.map → chunk-TF3HRELU.js.map} +1 -1
- package/build/{legacy/chunk-JJP2TFTU.js → modern/chunk-VCR5C6Q3.js} +1 -1
- package/build/modern/chunk-VCR5C6Q3.js.map +1 -0
- package/build/modern/{chunk-ETIKSLRO.js → chunk-VPWBSZAR.js} +2 -2
- package/build/modern/components/Checkbox.js +4 -4
- package/build/modern/components/FileStatus.js +17 -0
- package/build/modern/components/FileStatus.js.map +1 -0
- package/build/modern/components/FileUploader.js +3 -3
- package/build/modern/components/Input.js +4 -4
- package/build/modern/components/Label.js +2 -2
- package/build/modern/components/ModalIcon.js +1 -1
- package/build/modern/components/Notification.js +3 -3
- package/build/modern/components/Select.js +4 -4
- package/build/modern/components/Toggle.js +3 -3
- package/build/modern/config/cerbIcons.js +1 -1
- package/build/modern/config/defineIcons.js +2 -2
- package/build/modern/context/confirm-modal.js +4 -4
- package/build/modern/context/notification-center.js +4 -4
- package/build/modern/context/prompt-modal.js +7 -7
- package/build/modern/index.js +33 -27
- package/build/modern/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/FileStatus.tsx +246 -0
- package/src/components/FileUploader.tsx +1 -1
- package/src/components/ModalIcon.tsx +2 -2
- package/src/config/cerbIcons.ts +12 -0
- package/src/index.ts +1 -0
- package/build/legacy/chunk-JJP2TFTU.js.map +0 -1
- package/build/legacy/chunk-K3X3OMAA.js.map +0 -1
- package/build/modern/chunk-JJP2TFTU.js.map +0 -1
- package/build/modern/chunk-K3X3OMAA.js.map +0 -1
- /package/build/legacy/{chunk-RQPDRHRP.js.map → chunk-2FK7NR7Y.js.map} +0 -0
- /package/build/legacy/{chunk-6PN23MAZ.js.map → chunk-3RRNMPFC.js.map} +0 -0
- /package/build/legacy/{chunk-R6DGIPXN.js.map → chunk-4FD33RTW.js.map} +0 -0
- /package/build/legacy/{chunk-C7447UIN.js.map → chunk-53QBTZZF.js.map} +0 -0
- /package/build/legacy/{chunk-HQIRGWY3.js.map → chunk-5WVXIAG2.js.map} +0 -0
- /package/build/legacy/{chunk-MVV3VTY2.js.map → chunk-ID3XWGLY.js.map} +0 -0
- /package/build/legacy/{chunk-BI6UZBJB.js.map → chunk-JHAI4ZHG.js.map} +0 -0
- /package/build/legacy/{chunk-7EDCTSAP.js.map → chunk-KUQZECNS.js.map} +0 -0
- /package/build/legacy/{chunk-RHMGQNFD.js.map → chunk-RHG26FYL.js.map} +0 -0
- /package/build/legacy/{chunk-XKID4ZMW.js.map → chunk-TJI2SJCZ.js.map} +0 -0
- /package/build/modern/{chunk-RQPDRHRP.js.map → chunk-2FK7NR7Y.js.map} +0 -0
- /package/build/modern/{chunk-R6DGIPXN.js.map → chunk-4FD33RTW.js.map} +0 -0
- /package/build/modern/{chunk-C7447UIN.js.map → chunk-53QBTZZF.js.map} +0 -0
- /package/build/modern/{chunk-HQIRGWY3.js.map → chunk-5WVXIAG2.js.map} +0 -0
- /package/build/modern/{chunk-HVICMTKV.js.map → chunk-EJIMJWPB.js.map} +0 -0
- /package/build/modern/{chunk-R4V7FTYK.js.map → chunk-GZY6CH7D.js.map} +0 -0
- /package/build/modern/{chunk-MVV3VTY2.js.map → chunk-ID3XWGLY.js.map} +0 -0
- /package/build/modern/{chunk-RHMGQNFD.js.map → chunk-RHG26FYL.js.map} +0 -0
- /package/build/modern/{chunk-66OTWSEH.js.map → chunk-S6CMAXQF.js.map} +0 -0
- /package/build/modern/{chunk-ETIKSLRO.js.map → chunk-VPWBSZAR.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/ModalIcon.tsx"],"sourcesContent":["import { cx } from '@cerberus/styled-system/css'\nimport { circle } from '@cerberus/styled-system/patterns'\nimport {\n modalIcon,\n type ModalIconVariantProps,\n} from '@cerberus/styled-system/recipes'\nimport type { HTMLAttributes, PropsWithChildren } from 'react'\n\nexport type ModalIconProps = HTMLAttributes<HTMLDivElement> &\n ModalIconVariantProps\n\nexport function ModalIcon(props: PropsWithChildren<ModalIconProps>) {\n const { palette, ...nativeProps } = props\n return (\n <div\n {...nativeProps}\n className={cx(\n nativeProps.className,\n modalIcon({\n palette,\n }),\n circle(),\n )}\n >\n {props.children}\n </div>\n )\n}\n"],"mappings":";AAAA,SAAS,UAAU;AACnB,SAAS,cAAc;AACvB;AAAA,EACE;AAAA,OAEK;AASH;AAHG,SAAS,UAAU,OAA0C;AAClE,QAAM,EAAE,SAAS,GAAG,YAAY,IAAI;AACpC,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,WAAW;AAAA,QACT,YAAY;AAAA,QACZ,UAAU;AAAA,UACR;AAAA,QACF,CAAC;AAAA,QACD,OAAO;AAAA,MACT;AAAA,MAEC,gBAAM;AAAA;AAAA,EACT;AAEJ;","names":[]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Checkbox
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-ZAU4JVLL.js";
|
|
4
|
+
} from "../chunk-4FD33RTW.js";
|
|
6
5
|
import "../chunk-4O4QFF4S.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-ZAU4JVLL.js";
|
|
7
|
+
import "../chunk-5WVXIAG2.js";
|
|
8
|
+
import "../chunk-GUECLKHY.js";
|
|
9
9
|
import "../chunk-CP7OUC2Q.js";
|
|
10
10
|
export {
|
|
11
11
|
Checkbox
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
FileStatus,
|
|
4
|
+
processStatus
|
|
5
|
+
} from "../chunk-7NX4RGDB.js";
|
|
6
|
+
import "../chunk-TYTEREKZ.js";
|
|
7
|
+
import "../chunk-SLHX5K6I.js";
|
|
8
|
+
import "../chunk-VGHVH2T3.js";
|
|
9
|
+
import "../chunk-ZAU4JVLL.js";
|
|
10
|
+
import "../chunk-5WVXIAG2.js";
|
|
11
|
+
import "../chunk-GUECLKHY.js";
|
|
12
|
+
import "../chunk-CP7OUC2Q.js";
|
|
13
|
+
export {
|
|
14
|
+
FileStatus,
|
|
15
|
+
processStatus
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=FileStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
FileUploader
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-23UPROCG.js";
|
|
5
5
|
import "../chunk-4O4QFF4S.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-5WVXIAG2.js";
|
|
7
|
+
import "../chunk-GUECLKHY.js";
|
|
8
8
|
import "../chunk-CP7OUC2Q.js";
|
|
9
9
|
export {
|
|
10
10
|
FileUploader
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Input
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-ZAU4JVLL.js";
|
|
4
|
+
} from "../chunk-53QBTZZF.js";
|
|
6
5
|
import "../chunk-4O4QFF4S.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-ZAU4JVLL.js";
|
|
7
|
+
import "../chunk-5WVXIAG2.js";
|
|
8
|
+
import "../chunk-GUECLKHY.js";
|
|
9
9
|
import "../chunk-CP7OUC2Q.js";
|
|
10
10
|
export {
|
|
11
11
|
Input
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Notification
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-JHAI4ZHG.js";
|
|
5
5
|
import "../chunk-KESKDLX6.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-5WVXIAG2.js";
|
|
7
|
+
import "../chunk-GUECLKHY.js";
|
|
8
8
|
import "../chunk-CP7OUC2Q.js";
|
|
9
9
|
export {
|
|
10
10
|
Notification
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Option,
|
|
4
4
|
Select
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-ZAU4JVLL.js";
|
|
5
|
+
} from "../chunk-RHG26FYL.js";
|
|
7
6
|
import "../chunk-4O4QFF4S.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-ZAU4JVLL.js";
|
|
8
|
+
import "../chunk-5WVXIAG2.js";
|
|
9
|
+
import "../chunk-GUECLKHY.js";
|
|
10
10
|
import "../chunk-CP7OUC2Q.js";
|
|
11
11
|
export {
|
|
12
12
|
Option,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Toggle
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-ID3XWGLY.js";
|
|
5
5
|
import "../chunk-ZAU4JVLL.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-5WVXIAG2.js";
|
|
7
|
+
import "../chunk-GUECLKHY.js";
|
|
8
8
|
import "../chunk-CP7OUC2Q.js";
|
|
9
9
|
export {
|
|
10
10
|
Toggle
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ConfirmModal,
|
|
4
4
|
useConfirmModal
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-KUQZECNS.js";
|
|
6
|
+
import "../chunk-VCR5C6Q3.js";
|
|
6
7
|
import "../chunk-4CAT3FHV.js";
|
|
7
8
|
import "../chunk-2UFNQM55.js";
|
|
8
9
|
import "../chunk-4M4LCQ43.js";
|
|
9
10
|
import "../chunk-QU7UV5DB.js";
|
|
10
11
|
import "../chunk-JB7IQ2BM.js";
|
|
11
|
-
import "../chunk-JJP2TFTU.js";
|
|
12
12
|
import "../chunk-6F34A7NZ.js";
|
|
13
13
|
import "../chunk-4O4QFF4S.js";
|
|
14
14
|
import "../chunk-KESKDLX6.js";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-5WVXIAG2.js";
|
|
16
|
+
import "../chunk-GUECLKHY.js";
|
|
17
17
|
import "../chunk-CP7OUC2Q.js";
|
|
18
18
|
import "../chunk-TZNYJ3G7.js";
|
|
19
19
|
export {
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import {
|
|
3
3
|
NotificationCenter,
|
|
4
4
|
useNotificationCenter
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-3RRNMPFC.js";
|
|
6
|
+
import "../chunk-JHAI4ZHG.js";
|
|
7
7
|
import "../chunk-HW76XVA3.js";
|
|
8
8
|
import "../chunk-3C2DJSEE.js";
|
|
9
9
|
import "../chunk-4CAT3FHV.js";
|
|
10
10
|
import "../chunk-6F34A7NZ.js";
|
|
11
11
|
import "../chunk-4O4QFF4S.js";
|
|
12
12
|
import "../chunk-KESKDLX6.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-5WVXIAG2.js";
|
|
14
|
+
import "../chunk-GUECLKHY.js";
|
|
15
15
|
import "../chunk-CP7OUC2Q.js";
|
|
16
16
|
export {
|
|
17
17
|
NotificationCenter,
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
import {
|
|
3
3
|
PromptModal,
|
|
4
4
|
usePromptModal
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-TJI2SJCZ.js";
|
|
6
|
+
import "../chunk-VCR5C6Q3.js";
|
|
6
7
|
import "../chunk-4CAT3FHV.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-53QBTZZF.js";
|
|
9
|
+
import "../chunk-2FK7NR7Y.js";
|
|
9
10
|
import "../chunk-2UFNQM55.js";
|
|
10
11
|
import "../chunk-4M4LCQ43.js";
|
|
11
12
|
import "../chunk-QU7UV5DB.js";
|
|
12
13
|
import "../chunk-JB7IQ2BM.js";
|
|
13
|
-
import "../chunk-JJP2TFTU.js";
|
|
14
14
|
import "../chunk-6F34A7NZ.js";
|
|
15
|
-
import "../chunk-ZAU4JVLL.js";
|
|
16
15
|
import "../chunk-4O4QFF4S.js";
|
|
16
|
+
import "../chunk-ZAU4JVLL.js";
|
|
17
17
|
import "../chunk-KESKDLX6.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-5WVXIAG2.js";
|
|
19
|
+
import "../chunk-GUECLKHY.js";
|
|
20
20
|
import "../chunk-CP7OUC2Q.js";
|
|
21
21
|
import "../chunk-TZNYJ3G7.js";
|
|
22
22
|
export {
|
package/build/legacy/index.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NotificationCenter,
|
|
3
3
|
useNotificationCenter
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3RRNMPFC.js";
|
|
5
5
|
import {
|
|
6
6
|
PromptModal,
|
|
7
7
|
usePromptModal
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TJI2SJCZ.js";
|
|
9
|
+
import {
|
|
10
|
+
Tag
|
|
11
|
+
} from "./chunk-EVEEQRH6.js";
|
|
9
12
|
import {
|
|
10
13
|
Tbody
|
|
11
14
|
} from "./chunk-PJ3744I6.js";
|
|
@@ -23,18 +26,18 @@ import {
|
|
|
23
26
|
} from "./chunk-N3FUF4TB.js";
|
|
24
27
|
import {
|
|
25
28
|
Toggle
|
|
26
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ID3XWGLY.js";
|
|
27
30
|
import {
|
|
28
31
|
ConfirmModal,
|
|
29
32
|
useConfirmModal
|
|
30
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-KUQZECNS.js";
|
|
31
34
|
import {
|
|
32
35
|
Radio
|
|
33
36
|
} from "./chunk-PH64POOB.js";
|
|
34
37
|
import {
|
|
35
38
|
Option,
|
|
36
39
|
Select
|
|
37
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-RHG26FYL.js";
|
|
38
41
|
import {
|
|
39
42
|
Tab
|
|
40
43
|
} from "./chunk-NE5NHILF.js";
|
|
@@ -49,8 +52,8 @@ import {
|
|
|
49
52
|
Tr
|
|
50
53
|
} from "./chunk-A5WYZVUR.js";
|
|
51
54
|
import {
|
|
52
|
-
|
|
53
|
-
} from "./chunk-
|
|
55
|
+
ModalIcon
|
|
56
|
+
} from "./chunk-VCR5C6Q3.js";
|
|
54
57
|
import {
|
|
55
58
|
NavMenuLink
|
|
56
59
|
} from "./chunk-6DIGPXAD.js";
|
|
@@ -67,7 +70,7 @@ import {
|
|
|
67
70
|
} from "./chunk-KJUCHZHV.js";
|
|
68
71
|
import {
|
|
69
72
|
Notification
|
|
70
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-JHAI4ZHG.js";
|
|
71
74
|
import {
|
|
72
75
|
NotificationDescription
|
|
73
76
|
} from "./chunk-HW76XVA3.js";
|
|
@@ -78,17 +81,14 @@ import {
|
|
|
78
81
|
Portal
|
|
79
82
|
} from "./chunk-4CAT3FHV.js";
|
|
80
83
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
83
|
-
import {
|
|
84
|
-
IconButton
|
|
85
|
-
} from "./chunk-SLHX5K6I.js";
|
|
84
|
+
FileUploader
|
|
85
|
+
} from "./chunk-23UPROCG.js";
|
|
86
86
|
import {
|
|
87
87
|
Input
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-53QBTZZF.js";
|
|
89
89
|
import {
|
|
90
90
|
Label
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-2FK7NR7Y.js";
|
|
92
92
|
import {
|
|
93
93
|
Modal
|
|
94
94
|
} from "./chunk-2UFNQM55.js";
|
|
@@ -101,9 +101,6 @@ import {
|
|
|
101
101
|
import {
|
|
102
102
|
ModalHeading
|
|
103
103
|
} from "./chunk-JB7IQ2BM.js";
|
|
104
|
-
import {
|
|
105
|
-
ModalIcon
|
|
106
|
-
} from "./chunk-JJP2TFTU.js";
|
|
107
104
|
import {
|
|
108
105
|
MODE_KEY,
|
|
109
106
|
THEME_KEY,
|
|
@@ -119,7 +116,7 @@ import {
|
|
|
119
116
|
} from "./chunk-6F34A7NZ.js";
|
|
120
117
|
import {
|
|
121
118
|
Checkbox
|
|
122
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-4FD33RTW.js";
|
|
123
120
|
import {
|
|
124
121
|
Droppable
|
|
125
122
|
} from "./chunk-7VJOPJVX.js";
|
|
@@ -130,6 +127,19 @@ import {
|
|
|
130
127
|
FeatureFlags,
|
|
131
128
|
useFeatureFlags
|
|
132
129
|
} from "./chunk-4M3EUP57.js";
|
|
130
|
+
import {
|
|
131
|
+
Show
|
|
132
|
+
} from "./chunk-4O4QFF4S.js";
|
|
133
|
+
import {
|
|
134
|
+
FileStatus,
|
|
135
|
+
processStatus
|
|
136
|
+
} from "./chunk-7NX4RGDB.js";
|
|
137
|
+
import {
|
|
138
|
+
ProgressBar
|
|
139
|
+
} from "./chunk-TYTEREKZ.js";
|
|
140
|
+
import {
|
|
141
|
+
IconButton
|
|
142
|
+
} from "./chunk-SLHX5K6I.js";
|
|
133
143
|
import {
|
|
134
144
|
FieldMessage
|
|
135
145
|
} from "./chunk-VGHVH2T3.js";
|
|
@@ -137,12 +147,6 @@ import {
|
|
|
137
147
|
Field,
|
|
138
148
|
useFieldContext
|
|
139
149
|
} from "./chunk-ZAU4JVLL.js";
|
|
140
|
-
import {
|
|
141
|
-
FileUploader
|
|
142
|
-
} from "./chunk-VQMP3PBJ.js";
|
|
143
|
-
import {
|
|
144
|
-
Show
|
|
145
|
-
} from "./chunk-4O4QFF4S.js";
|
|
146
150
|
import "./chunk-55J6XMHW.js";
|
|
147
151
|
import {
|
|
148
152
|
createNavTriggerProps
|
|
@@ -161,8 +165,8 @@ import {
|
|
|
161
165
|
import {
|
|
162
166
|
$cerberusIcons,
|
|
163
167
|
defineIcons
|
|
164
|
-
} from "./chunk-
|
|
165
|
-
import "./chunk-
|
|
168
|
+
} from "./chunk-5WVXIAG2.js";
|
|
169
|
+
import "./chunk-GUECLKHY.js";
|
|
166
170
|
import "./chunk-CP7OUC2Q.js";
|
|
167
171
|
import {
|
|
168
172
|
useModal
|
|
@@ -180,6 +184,7 @@ export {
|
|
|
180
184
|
FeatureFlags,
|
|
181
185
|
Field,
|
|
182
186
|
FieldMessage,
|
|
187
|
+
FileStatus,
|
|
183
188
|
FileUploader,
|
|
184
189
|
IconButton,
|
|
185
190
|
Input,
|
|
@@ -224,6 +229,7 @@ export {
|
|
|
224
229
|
createNavTriggerProps,
|
|
225
230
|
defineIcons,
|
|
226
231
|
getPosition,
|
|
232
|
+
processStatus,
|
|
227
233
|
trapFocus,
|
|
228
234
|
useConfirmModal,
|
|
229
235
|
useFeatureFlags,
|
|
@@ -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/Button'\nexport * from './components/Checkbox'\nexport * from './components/Droppable'\nexport * from './components/FieldMessage'\nexport * from './components/FeatureFlag'\nexport * from './components/FileUploader'\nexport * from './components/IconButton'\nexport * from './components/Input'\nexport * from './components/Label'\nexport * from './components/Modal'\nexport * from './components/ModalHeader'\nexport * from './components/ModalHeading'\nexport * from './components/ModalDescription'\nexport * from './components/ModalIcon'\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/Tab'\nexport * from './components/TabList'\nexport * from './components/TabPanel'\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/Textarea'\nexport * from './components/Toggle'\nexport * from './components/Show'\n\n// context\n\nexport * from './context/confirm-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/useModal'\nexport * from './hooks/useTheme'\nexport * from './hooks/useToggle'\n\n// aria-helpers\n\nexport * from './aria-helpers/nav-menu.aria'\nexport * from './aria-helpers/tabs.aria'\nexport * from './aria-helpers/trap-focus.aria'\n\n// utils\n\nexport * from './config/defineIcons'\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/Button'\nexport * from './components/Checkbox'\nexport * from './components/Droppable'\nexport * from './components/FieldMessage'\nexport * from './components/FeatureFlag'\nexport * from './components/FileStatus'\nexport * from './components/FileUploader'\nexport * from './components/IconButton'\nexport * from './components/Input'\nexport * from './components/Label'\nexport * from './components/Modal'\nexport * from './components/ModalHeader'\nexport * from './components/ModalHeading'\nexport * from './components/ModalDescription'\nexport * from './components/ModalIcon'\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/Tab'\nexport * from './components/TabList'\nexport * from './components/TabPanel'\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/Textarea'\nexport * from './components/Toggle'\nexport * from './components/Show'\n\n// context\n\nexport * from './context/confirm-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/useModal'\nexport * from './hooks/useTheme'\nexport * from './hooks/useToggle'\n\n// aria-helpers\n\nexport * from './aria-helpers/nav-menu.aria'\nexport * from './aria-helpers/tabs.aria'\nexport * from './aria-helpers/trap-focus.aria'\n\n// utils\n\nexport * from './config/defineIcons'\n\n// shared types\n\nexport * from './types'\n\n// 3rd party\n\nexport * from '@dnd-kit/core'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8EA,cAAc;","names":[]}
|
|
@@ -54,6 +54,7 @@ import { DroppableContainers } from '@dnd-kit/core';
|
|
|
54
54
|
import { DroppableMeasuring } from '@dnd-kit/core';
|
|
55
55
|
import { ElementType } from 'react';
|
|
56
56
|
import { fieldMessage } from '@cerberus/styled-system/recipes';
|
|
57
|
+
import { FileStatusVariantProps } from '@cerberus/styled-system/recipes';
|
|
57
58
|
import { ForwardRefExoticComponent } from 'react';
|
|
58
59
|
import { getClientRect } from '@dnd-kit/core';
|
|
59
60
|
import { getFirstCollision } from '@dnd-kit/core';
|
|
@@ -319,7 +320,9 @@ export { DefaultThemes as DefaultThemes_alias_1 }
|
|
|
319
320
|
|
|
320
321
|
export declare interface DefinedIcons {
|
|
321
322
|
checkbox?: IconType;
|
|
323
|
+
close?: IconType;
|
|
322
324
|
confirmModal?: IconType;
|
|
325
|
+
delete?: IconType;
|
|
323
326
|
promptModal?: IconType;
|
|
324
327
|
fileUploader?: IconType;
|
|
325
328
|
indeterminate?: IconType;
|
|
@@ -328,6 +331,8 @@ export declare interface DefinedIcons {
|
|
|
328
331
|
warningNotification?: IconType;
|
|
329
332
|
dangerNotification?: IconType;
|
|
330
333
|
invalid: IconType;
|
|
334
|
+
invalidAlt?: IconType;
|
|
335
|
+
redo?: IconType;
|
|
331
336
|
selectArrow?: IconType;
|
|
332
337
|
toggleChecked?: IconType;
|
|
333
338
|
}
|
|
@@ -497,6 +502,48 @@ declare type FieldMessageRecipe = RecipeVariantProps<typeof fieldMessage>;
|
|
|
497
502
|
export { FieldMessageRecipe }
|
|
498
503
|
export { FieldMessageRecipe as FieldMessageRecipe_alias_1 }
|
|
499
504
|
|
|
505
|
+
declare interface FileBaseStatusProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onClick'> {
|
|
506
|
+
file: string;
|
|
507
|
+
now: number;
|
|
508
|
+
status: processStatus;
|
|
509
|
+
onClick: (status: FileStatusActions, e: MouseEvent_2<HTMLButtonElement>) => void;
|
|
510
|
+
}
|
|
511
|
+
export { FileBaseStatusProps }
|
|
512
|
+
export { FileBaseStatusProps as FileBaseStatusProps_alias_1 }
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* This component displays the status of a file.
|
|
516
|
+
* @param props - {
|
|
517
|
+
* file: string,
|
|
518
|
+
* now: number,
|
|
519
|
+
* status: keyof typeof fileStatus,
|
|
520
|
+
* action: (status: FileStatusActions, e: MouseEvent<HTMLButtonElement>) => void
|
|
521
|
+
* }.
|
|
522
|
+
* @example
|
|
523
|
+
* ```tsx
|
|
524
|
+
* <FileStatus file="file.txt" now={0} status={processStatus.TODO} action={(status, e) => console.log(status, e)} />
|
|
525
|
+
* ```
|
|
526
|
+
*/
|
|
527
|
+
declare function FileStatus(props: FileStatusProps): JSX_2.Element;
|
|
528
|
+
export { FileStatus }
|
|
529
|
+
export { FileStatus as FileStatus_alias_1 }
|
|
530
|
+
|
|
531
|
+
declare type FileStatusActions = 'cancel' | 'retry' | 'delete';
|
|
532
|
+
export { FileStatusActions }
|
|
533
|
+
export { FileStatusActions as FileStatusActions_alias_1 }
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* This module contains the FileStatus component.
|
|
537
|
+
* @module
|
|
538
|
+
*/
|
|
539
|
+
declare type FileStatusKey = (typeof processStatus)[keyof typeof processStatus];
|
|
540
|
+
export { FileStatusKey }
|
|
541
|
+
export { FileStatusKey as FileStatusKey_alias_1 }
|
|
542
|
+
|
|
543
|
+
declare type FileStatusProps = FileBaseStatusProps & FileStatusVariantProps;
|
|
544
|
+
export { FileStatusProps }
|
|
545
|
+
export { FileStatusProps as FileStatusProps_alias_1 }
|
|
546
|
+
|
|
500
547
|
declare function FileUploader(props: FileUploaderProps): JSX_2.Element;
|
|
501
548
|
export { FileUploader }
|
|
502
549
|
export { FileUploader as FileUploader_alias_1 }
|
|
@@ -728,11 +775,7 @@ declare function ModalIcon(props: PropsWithChildren<ModalIconProps>): JSX_2.Elem
|
|
|
728
775
|
export { ModalIcon }
|
|
729
776
|
export { ModalIcon as ModalIcon_alias_1 }
|
|
730
777
|
|
|
731
|
-
declare type
|
|
732
|
-
export { ModalIconBaseProps }
|
|
733
|
-
export { ModalIconBaseProps as ModalIconBaseProps_alias_1 }
|
|
734
|
-
|
|
735
|
-
declare type ModalIconProps = ModalIconBaseProps & ModalIconVariantProps;
|
|
778
|
+
declare type ModalIconProps = HTMLAttributes<HTMLDivElement> & ModalIconVariantProps;
|
|
736
779
|
export { ModalIconProps }
|
|
737
780
|
export { ModalIconProps as ModalIconProps_alias_1 }
|
|
738
781
|
|
|
@@ -1009,6 +1052,23 @@ declare type Positions = 'top' | 'right' | 'bottom' | 'left';
|
|
|
1009
1052
|
export { Positions }
|
|
1010
1053
|
export { Positions as Positions_alias_1 }
|
|
1011
1054
|
|
|
1055
|
+
/**
|
|
1056
|
+
* A helper object to represent the status of a file.
|
|
1057
|
+
* @example
|
|
1058
|
+
* ```tsx
|
|
1059
|
+
* import { fileStatus } from '@cerberus/react'
|
|
1060
|
+
* processStatus.TODO // 'todo'
|
|
1061
|
+
* ```
|
|
1062
|
+
*/
|
|
1063
|
+
declare const enum processStatus {
|
|
1064
|
+
TODO = "todo",
|
|
1065
|
+
PROCESSING = "processing",
|
|
1066
|
+
DONE = "done",
|
|
1067
|
+
ERROR = "error"
|
|
1068
|
+
}
|
|
1069
|
+
export { processStatus }
|
|
1070
|
+
export { processStatus as processStatus_alias_1 }
|
|
1071
|
+
|
|
1012
1072
|
/**
|
|
1013
1073
|
* The ProgressBar component is used to display the progress of a task.
|
|
1014
1074
|
* @param props - HTML div element attributes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useFieldContext
|
|
3
|
-
} from "./chunk-ZAU4JVLL.js";
|
|
4
1
|
import {
|
|
5
2
|
Show
|
|
6
3
|
} from "./chunk-4O4QFF4S.js";
|
|
4
|
+
import {
|
|
5
|
+
useFieldContext
|
|
6
|
+
} from "./chunk-ZAU4JVLL.js";
|
|
7
7
|
|
|
8
8
|
// src/components/Label.tsx
|
|
9
9
|
import { label } from "@cerberus/styled-system/recipes";
|
|
@@ -47,4 +47,4 @@ function Label(props) {
|
|
|
47
47
|
export {
|
|
48
48
|
Label
|
|
49
49
|
};
|
|
50
|
-
//# sourceMappingURL=chunk-
|
|
50
|
+
//# sourceMappingURL=chunk-2FK7NR7Y.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useFieldContext
|
|
3
|
-
} from "./chunk-ZAU4JVLL.js";
|
|
4
1
|
import {
|
|
5
2
|
Show
|
|
6
3
|
} from "./chunk-4O4QFF4S.js";
|
|
4
|
+
import {
|
|
5
|
+
useFieldContext
|
|
6
|
+
} from "./chunk-ZAU4JVLL.js";
|
|
7
7
|
import {
|
|
8
8
|
$cerberusIcons
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5WVXIAG2.js";
|
|
10
10
|
|
|
11
11
|
// src/components/Checkbox.tsx
|
|
12
12
|
import {
|
|
@@ -53,4 +53,4 @@ function Checkbox(props) {
|
|
|
53
53
|
export {
|
|
54
54
|
Checkbox
|
|
55
55
|
};
|
|
56
|
-
//# sourceMappingURL=chunk-
|
|
56
|
+
//# sourceMappingURL=chunk-4FD33RTW.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useFieldContext
|
|
3
|
-
} from "./chunk-ZAU4JVLL.js";
|
|
4
1
|
import {
|
|
5
2
|
Show
|
|
6
3
|
} from "./chunk-4O4QFF4S.js";
|
|
4
|
+
import {
|
|
5
|
+
useFieldContext
|
|
6
|
+
} from "./chunk-ZAU4JVLL.js";
|
|
7
7
|
import {
|
|
8
8
|
$cerberusIcons
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5WVXIAG2.js";
|
|
10
10
|
|
|
11
11
|
// src/components/Input.tsx
|
|
12
12
|
import { input } from "@cerberus/styled-system/recipes";
|
|
@@ -39,4 +39,4 @@ function Input(props) {
|
|
|
39
39
|
export {
|
|
40
40
|
Input
|
|
41
41
|
};
|
|
42
|
-
//# sourceMappingURL=chunk-
|
|
42
|
+
//# sourceMappingURL=chunk-53QBTZZF.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defaultIcons
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GUECLKHY.js";
|
|
4
4
|
|
|
5
5
|
// src/config/defineIcons.ts
|
|
6
6
|
function _validateIconsProperties(icons) {
|
|
@@ -24,4 +24,4 @@ export {
|
|
|
24
24
|
defineIcons,
|
|
25
25
|
$cerberusIcons
|
|
26
26
|
};
|
|
27
|
-
//# sourceMappingURL=chunk-
|
|
27
|
+
//# sourceMappingURL=chunk-5WVXIAG2.js.map
|