@cerberus-design/react 0.7.4 → 0.8.0-next-e3b4e2b
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 +592 -7
- package/build/legacy/chunk-2VPKILZ6.js +122 -0
- package/build/legacy/chunk-2VPKILZ6.js.map +1 -0
- package/build/legacy/chunk-3C2DJSEE.js +16 -0
- package/build/legacy/chunk-3C2DJSEE.js.map +1 -0
- package/build/legacy/chunk-3GXISGPS.js +47 -0
- package/build/legacy/chunk-3GXISGPS.js.map +1 -0
- package/build/legacy/{chunk-2ATICEW3.js → chunk-6F34A7NZ.js} +4 -2
- package/build/legacy/chunk-6F34A7NZ.js.map +1 -0
- package/build/legacy/chunk-7VJOPJVX.js +29 -0
- package/build/legacy/chunk-7VJOPJVX.js.map +1 -0
- package/build/legacy/chunk-A5WYZVUR.js +28 -0
- package/build/legacy/chunk-A5WYZVUR.js.map +1 -0
- package/build/legacy/{chunk-XGNAFSMG.js → chunk-AAKIOHAX.js} +3 -3
- package/build/{modern/chunk-6TXQZ3PB.js → legacy/chunk-BEYPMC73.js} +2 -2
- package/build/legacy/chunk-GVNPFXKL.js +26 -0
- package/build/legacy/chunk-GVNPFXKL.js.map +1 -0
- package/build/legacy/chunk-HW76XVA3.js +22 -0
- package/build/legacy/chunk-HW76XVA3.js.map +1 -0
- package/build/legacy/{chunk-JWQJLOX4.js → chunk-IL5ELPTT.js} +2 -2
- package/build/legacy/{chunk-CU7HXAKM.js → chunk-JJGZRBIR.js} +4 -4
- package/build/legacy/{chunk-7CZ3NIGH.js → chunk-L46XIE3D.js} +11 -11
- package/build/legacy/chunk-LF2QFS5S.js +76 -0
- package/build/legacy/chunk-LF2QFS5S.js.map +1 -0
- package/build/legacy/chunk-N3FUF4TB.js +12 -0
- package/build/legacy/chunk-N3FUF4TB.js.map +1 -0
- package/build/legacy/chunk-PJ3744I6.js +24 -0
- package/build/legacy/chunk-PJ3744I6.js.map +1 -0
- package/build/legacy/chunk-SMCEFK6Q.js +63 -0
- package/build/legacy/chunk-SMCEFK6Q.js.map +1 -0
- package/build/legacy/{chunk-5GEC53G7.js → chunk-XB4ZRAH4.js} +5 -5
- package/build/legacy/chunk-XREC5IJE.js +24 -0
- package/build/legacy/chunk-XREC5IJE.js.map +1 -0
- package/build/legacy/components/Button.js +1 -1
- package/build/legacy/components/Droppable.js +8 -0
- package/build/legacy/components/Droppable.js.map +1 -0
- package/build/legacy/components/FileUploader.js +11 -0
- package/build/legacy/components/FileUploader.js.map +1 -0
- package/build/legacy/components/Input.js +4 -4
- package/build/legacy/components/Label.js +2 -2
- package/build/legacy/components/Notification.js +11 -0
- package/build/legacy/components/Notification.js.map +1 -0
- package/build/legacy/components/NotificationDescription.js +7 -0
- package/build/legacy/components/NotificationDescription.js.map +1 -0
- package/build/legacy/components/NotificationHeading.js +7 -0
- package/build/legacy/components/NotificationHeading.js.map +1 -0
- package/build/legacy/components/Table.js +9 -0
- package/build/legacy/components/Table.js.map +1 -0
- package/build/legacy/components/Tbody.js +7 -0
- package/build/legacy/components/Tbody.js.map +1 -0
- package/build/legacy/components/Td.js +7 -0
- package/build/legacy/components/Td.js.map +1 -0
- package/build/legacy/components/Th.js +8 -0
- package/build/legacy/components/Th.js.map +1 -0
- package/build/legacy/components/Thead.js +7 -0
- package/build/legacy/components/Thead.js.map +1 -0
- 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 +19 -0
- package/build/legacy/context/notification-center.js.map +1 -0
- package/build/legacy/context/prompt-modal.js +7 -7
- package/build/legacy/index.js +86 -35
- package/build/legacy/index.js.map +1 -1
- package/build/modern/_tsup-dts-rollup.d.ts +592 -7
- package/build/modern/chunk-3C2DJSEE.js +16 -0
- package/build/modern/chunk-3C2DJSEE.js.map +1 -0
- package/build/modern/chunk-3GXISGPS.js +47 -0
- package/build/modern/chunk-3GXISGPS.js.map +1 -0
- package/build/modern/chunk-4N2L357B.js +76 -0
- package/build/modern/chunk-4N2L357B.js.map +1 -0
- package/build/modern/{chunk-2ATICEW3.js → chunk-6F34A7NZ.js} +4 -2
- package/build/modern/chunk-6F34A7NZ.js.map +1 -0
- package/build/modern/chunk-7VJOPJVX.js +29 -0
- package/build/modern/chunk-7VJOPJVX.js.map +1 -0
- package/build/modern/chunk-A5WYZVUR.js +28 -0
- package/build/modern/chunk-A5WYZVUR.js.map +1 -0
- package/build/{legacy/chunk-6TXQZ3PB.js → modern/chunk-BEYPMC73.js} +2 -2
- package/build/modern/chunk-GVNPFXKL.js +26 -0
- package/build/modern/chunk-GVNPFXKL.js.map +1 -0
- package/build/modern/chunk-HW76XVA3.js +22 -0
- package/build/modern/chunk-HW76XVA3.js.map +1 -0
- package/build/modern/{chunk-JWQJLOX4.js → chunk-IL5ELPTT.js} +2 -2
- package/build/modern/chunk-IOG6XIR5.js +62 -0
- package/build/modern/chunk-IOG6XIR5.js.map +1 -0
- package/build/modern/{chunk-CU7HXAKM.js → chunk-JJGZRBIR.js} +4 -4
- package/build/modern/{chunk-FAXDUWAU.js → chunk-LTDNZRUY.js} +11 -11
- package/build/modern/chunk-N3FUF4TB.js +12 -0
- package/build/modern/chunk-N3FUF4TB.js.map +1 -0
- package/build/modern/chunk-PJ3744I6.js +24 -0
- package/build/modern/chunk-PJ3744I6.js.map +1 -0
- package/build/modern/chunk-QO2UXGW4.js +122 -0
- package/build/modern/chunk-QO2UXGW4.js.map +1 -0
- package/build/modern/{chunk-5GEC53G7.js → chunk-XB4ZRAH4.js} +5 -5
- package/build/modern/chunk-XREC5IJE.js +24 -0
- package/build/modern/chunk-XREC5IJE.js.map +1 -0
- package/build/modern/{chunk-TPRGGEVJ.js → chunk-Y5IY7O23.js} +3 -3
- package/build/modern/components/Button.js +1 -1
- package/build/modern/components/Droppable.js +8 -0
- package/build/modern/components/Droppable.js.map +1 -0
- package/build/modern/components/FileUploader.js +11 -0
- package/build/modern/components/FileUploader.js.map +1 -0
- package/build/modern/components/Input.js +4 -4
- package/build/modern/components/Label.js +2 -2
- package/build/modern/components/Notification.js +11 -0
- package/build/modern/components/Notification.js.map +1 -0
- package/build/modern/components/NotificationDescription.js +7 -0
- package/build/modern/components/NotificationDescription.js.map +1 -0
- package/build/modern/components/NotificationHeading.js +7 -0
- package/build/modern/components/NotificationHeading.js.map +1 -0
- package/build/modern/components/Table.js +9 -0
- package/build/modern/components/Table.js.map +1 -0
- package/build/modern/components/Tbody.js +7 -0
- package/build/modern/components/Tbody.js.map +1 -0
- package/build/modern/components/Td.js +7 -0
- package/build/modern/components/Td.js.map +1 -0
- package/build/modern/components/Th.js +8 -0
- package/build/modern/components/Th.js.map +1 -0
- package/build/modern/components/Thead.js +7 -0
- package/build/modern/components/Thead.js.map +1 -0
- 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 +19 -0
- package/build/modern/context/notification-center.js.map +1 -0
- package/build/modern/context/prompt-modal.js +7 -7
- package/build/modern/index.js +86 -35
- package/build/modern/index.js.map +1 -1
- package/package.json +5 -2
- package/src/components/Button.tsx +6 -3
- package/src/components/Droppable.tsx +33 -0
- package/src/components/FileUploader.tsx +55 -0
- package/src/components/Notification.tsx +98 -0
- package/src/components/NotificationDescription.tsx +31 -0
- package/src/components/NotificationHeading.tsx +28 -0
- package/src/components/Table.tsx +58 -0
- package/src/components/Tbody.tsx +31 -0
- package/src/components/Td.tsx +34 -0
- package/src/components/Th.tsx +56 -0
- package/src/components/Thead.tsx +24 -0
- package/src/config/cerbIcons.ts +20 -4
- package/src/context/notification-center.tsx +181 -0
- package/src/index.ts +15 -0
- package/build/legacy/chunk-2ATICEW3.js.map +0 -1
- package/build/legacy/chunk-C45DY4VE.js +0 -17
- package/build/legacy/chunk-C45DY4VE.js.map +0 -1
- package/build/modern/chunk-2ATICEW3.js.map +0 -1
- package/build/modern/chunk-C45DY4VE.js +0 -17
- package/build/modern/chunk-C45DY4VE.js.map +0 -1
- /package/build/legacy/{chunk-XGNAFSMG.js.map → chunk-AAKIOHAX.js.map} +0 -0
- /package/build/legacy/{chunk-6TXQZ3PB.js.map → chunk-BEYPMC73.js.map} +0 -0
- /package/build/legacy/{chunk-JWQJLOX4.js.map → chunk-IL5ELPTT.js.map} +0 -0
- /package/build/legacy/{chunk-CU7HXAKM.js.map → chunk-JJGZRBIR.js.map} +0 -0
- /package/build/legacy/{chunk-7CZ3NIGH.js.map → chunk-L46XIE3D.js.map} +0 -0
- /package/build/legacy/{chunk-5GEC53G7.js.map → chunk-XB4ZRAH4.js.map} +0 -0
- /package/build/modern/{chunk-6TXQZ3PB.js.map → chunk-BEYPMC73.js.map} +0 -0
- /package/build/modern/{chunk-JWQJLOX4.js.map → chunk-IL5ELPTT.js.map} +0 -0
- /package/build/modern/{chunk-CU7HXAKM.js.map → chunk-JJGZRBIR.js.map} +0 -0
- /package/build/modern/{chunk-FAXDUWAU.js.map → chunk-LTDNZRUY.js.map} +0 -0
- /package/build/modern/{chunk-5GEC53G7.js.map → chunk-XB4ZRAH4.js.map} +0 -0
- /package/build/modern/{chunk-TPRGGEVJ.js.map → chunk-Y5IY7O23.js.map} +0 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Show
|
|
3
|
+
} from "./chunk-4O4QFF4S.js";
|
|
4
|
+
import {
|
|
5
|
+
$cerberusIcons
|
|
6
|
+
} from "./chunk-BEYPMC73.js";
|
|
7
|
+
|
|
8
|
+
// src/components/FileUploader.tsx
|
|
9
|
+
import { cx } from "@cerberus/styled-system/css";
|
|
10
|
+
import { circle, vstack } from "@cerberus/styled-system/patterns";
|
|
11
|
+
import { fileUploader, modalIcon } from "@cerberus/styled-system/recipes";
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
function FileUploader(props) {
|
|
14
|
+
var _a;
|
|
15
|
+
const styles = fileUploader();
|
|
16
|
+
const Icon = $cerberusIcons.fileUploader;
|
|
17
|
+
return /* @__PURE__ */ jsxs(
|
|
18
|
+
"div",
|
|
19
|
+
{
|
|
20
|
+
className: cx(
|
|
21
|
+
vstack({
|
|
22
|
+
justify: "center"
|
|
23
|
+
}),
|
|
24
|
+
styles.container
|
|
25
|
+
),
|
|
26
|
+
children: [
|
|
27
|
+
/* @__PURE__ */ jsx("span", { className: cx(styles.icon, modalIcon(), circle()), children: /* @__PURE__ */ jsx(Icon, {}) }),
|
|
28
|
+
/* @__PURE__ */ jsxs(
|
|
29
|
+
"label",
|
|
30
|
+
{
|
|
31
|
+
className: cx(
|
|
32
|
+
vstack({
|
|
33
|
+
justify: "center"
|
|
34
|
+
}),
|
|
35
|
+
styles.label
|
|
36
|
+
),
|
|
37
|
+
htmlFor: props.name,
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ jsx(Show, { when: Boolean(props.heading), children: /* @__PURE__ */ jsx("p", { className: styles.heading, children: props.heading }) }),
|
|
40
|
+
"Import ",
|
|
41
|
+
(_a = props.accept) == null ? void 0 : _a.replace(",", ", "),
|
|
42
|
+
" files",
|
|
43
|
+
/* @__PURE__ */ jsx("p", { className: styles.description, children: "Or click to upload" }),
|
|
44
|
+
/* @__PURE__ */ jsx(
|
|
45
|
+
"input",
|
|
46
|
+
{
|
|
47
|
+
...props,
|
|
48
|
+
className: cx(props.className, styles.input),
|
|
49
|
+
type: "file"
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
FileUploader
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=chunk-SMCEFK6Q.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/FileUploader.tsx"],"sourcesContent":["'use client'\n\nimport { cx } from '@cerberus/styled-system/css'\nimport { circle, vstack } from '@cerberus/styled-system/patterns'\nimport { type InputHTMLAttributes } from 'react'\nimport { Show } from './Show'\nimport { fileUploader, modalIcon } from '@cerberus/styled-system/recipes'\nimport { $cerberusIcons } from '../config/defineIcons'\n\nexport interface FileUploaderProps\n extends InputHTMLAttributes<HTMLInputElement> {\n heading?: string\n name: string\n}\n\nexport function FileUploader(props: FileUploaderProps) {\n const styles = fileUploader()\n const Icon = $cerberusIcons.fileUploader\n\n return (\n <div\n className={cx(\n vstack({\n justify: 'center',\n }),\n styles.container,\n )}\n >\n <span className={cx(styles.icon, modalIcon(), circle())}>\n <Icon />\n </span>\n\n <label\n className={cx(\n vstack({\n justify: 'center',\n }),\n styles.label,\n )}\n htmlFor={props.name}\n >\n <Show when={Boolean(props.heading)}>\n <p className={styles.heading}>{props.heading}</p>\n </Show>\n Import {props.accept?.replace(',', ', ')} files\n <p className={styles.description}>Or click to upload</p>\n <input\n {...props}\n className={cx(props.className, styles.input)}\n type=\"file\"\n />\n </label>\n </div>\n )\n}\n"],"mappings":";;;;;;;;AAEA,SAAS,UAAU;AACnB,SAAS,QAAQ,cAAc;AAG/B,SAAS,cAAc,iBAAiB;AAuBhC,cAGF,YAHE;AAdD,SAAS,aAAa,OAA0B;AAfvD;AAgBE,QAAM,SAAS,aAAa;AAC5B,QAAM,OAAO,eAAe;AAE5B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT,OAAO;AAAA,UACL,SAAS;AAAA,QACX,CAAC;AAAA,QACD,OAAO;AAAA,MACT;AAAA,MAEA;AAAA,4BAAC,UAAK,WAAW,GAAG,OAAO,MAAM,UAAU,GAAG,OAAO,CAAC,GACpD,8BAAC,QAAK,GACR;AAAA,QAEA;AAAA,UAAC;AAAA;AAAA,YACC,WAAW;AAAA,cACT,OAAO;AAAA,gBACL,SAAS;AAAA,cACX,CAAC;AAAA,cACD,OAAO;AAAA,YACT;AAAA,YACA,SAAS,MAAM;AAAA,YAEf;AAAA,kCAAC,QAAK,MAAM,QAAQ,MAAM,OAAO,GAC/B,8BAAC,OAAE,WAAW,OAAO,SAAU,gBAAM,SAAQ,GAC/C;AAAA,cAAO;AAAA,eACC,WAAM,WAAN,mBAAc,QAAQ,KAAK;AAAA,cAAM;AAAA,cACzC,oBAAC,OAAE,WAAW,OAAO,aAAa,gCAAkB;AAAA,cACpD;AAAA,gBAAC;AAAA;AAAA,kBACE,GAAG;AAAA,kBACJ,WAAW,GAAG,MAAM,WAAW,OAAO,KAAK;AAAA,kBAC3C,MAAK;AAAA;AAAA,cACP;AAAA;AAAA;AAAA,QACF;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Show
|
|
3
|
-
} from "./chunk-4O4QFF4S.js";
|
|
4
1
|
import {
|
|
5
2
|
useFieldContext
|
|
6
3
|
} from "./chunk-ZAU4JVLL.js";
|
|
4
|
+
import {
|
|
5
|
+
Show
|
|
6
|
+
} from "./chunk-4O4QFF4S.js";
|
|
7
7
|
import {
|
|
8
8
|
$cerberusIcons
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BEYPMC73.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-XB4ZRAH4.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// src/components/Td.tsx
|
|
2
|
+
import { cx } from "@cerberus/styled-system/css";
|
|
3
|
+
import { td } from "@cerberus/styled-system/recipes";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
function Td(props) {
|
|
6
|
+
const { size, ...nativeProps } = props;
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
"td",
|
|
9
|
+
{
|
|
10
|
+
...nativeProps,
|
|
11
|
+
className: cx(
|
|
12
|
+
nativeProps.className,
|
|
13
|
+
td({
|
|
14
|
+
size
|
|
15
|
+
})
|
|
16
|
+
)
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
Td
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=chunk-XREC5IJE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/Td.tsx"],"sourcesContent":["import { cx } from '@cerberus/styled-system/css'\nimport { td, type TdVariantProps } from '@cerberus/styled-system/recipes'\nimport type { TableHTMLAttributes } from 'react'\n\n/**\n * Th component for the Td component\n * @module\n */\n\nexport type TdBaseProps = TableHTMLAttributes<HTMLTableCellElement>\nexport type TdProps = TdBaseProps & TdVariantProps\n\n/**\n * Styles for the Th component\n * @definition [Table docs](https://cerberus.digitalu.design/react/table)\n * @example\n * ```tsx\n * <Td>Data cell</Td>\n * ```\n */\nexport function Td(props: TdProps) {\n const { size, ...nativeProps } = props\n return (\n <td\n {...nativeProps}\n className={cx(\n nativeProps.className,\n td({\n size,\n }),\n )}\n />\n )\n}\n"],"mappings":";AAAA,SAAS,UAAU;AACnB,SAAS,UAA+B;AAsBpC;AAHG,SAAS,GAAG,OAAgB;AACjC,QAAM,EAAE,MAAM,GAAG,YAAY,IAAI;AACjC,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,WAAW;AAAA,QACT,YAAY;AAAA,QACZ,GAAG;AAAA,UACD;AAAA,QACF,CAAC;AAAA,MACH;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Input
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-4O4QFF4S.js";
|
|
4
|
+
} from "../chunk-XB4ZRAH4.js";
|
|
6
5
|
import "../chunk-ZAU4JVLL.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-4O4QFF4S.js";
|
|
7
|
+
import "../chunk-BEYPMC73.js";
|
|
8
|
+
import "../chunk-GVNPFXKL.js";
|
|
9
9
|
export {
|
|
10
10
|
Input
|
|
11
11
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Toggle
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-IL5ELPTT.js";
|
|
5
5
|
import "../chunk-ZAU4JVLL.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-BEYPMC73.js";
|
|
7
|
+
import "../chunk-GVNPFXKL.js";
|
|
8
8
|
export {
|
|
9
9
|
Toggle
|
|
10
10
|
};
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ConfirmModal,
|
|
4
4
|
useConfirmModal
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-AAKIOHAX.js";
|
|
6
6
|
import "../chunk-4CAT3FHV.js";
|
|
7
7
|
import "../chunk-2UFNQM55.js";
|
|
8
8
|
import "../chunk-4M4LCQ43.js";
|
|
9
9
|
import "../chunk-QU7UV5DB.js";
|
|
10
10
|
import "../chunk-JB7IQ2BM.js";
|
|
11
11
|
import "../chunk-JJP2TFTU.js";
|
|
12
|
-
import "../chunk-
|
|
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-BEYPMC73.js";
|
|
16
|
+
import "../chunk-GVNPFXKL.js";
|
|
17
17
|
import "../chunk-TZNYJ3G7.js";
|
|
18
18
|
export {
|
|
19
19
|
ConfirmModal,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
NotificationCenter,
|
|
4
|
+
useNotificationCenter
|
|
5
|
+
} from "../chunk-2VPKILZ6.js";
|
|
6
|
+
import "../chunk-LF2QFS5S.js";
|
|
7
|
+
import "../chunk-HW76XVA3.js";
|
|
8
|
+
import "../chunk-3C2DJSEE.js";
|
|
9
|
+
import "../chunk-4CAT3FHV.js";
|
|
10
|
+
import "../chunk-6F34A7NZ.js";
|
|
11
|
+
import "../chunk-4O4QFF4S.js";
|
|
12
|
+
import "../chunk-KESKDLX6.js";
|
|
13
|
+
import "../chunk-BEYPMC73.js";
|
|
14
|
+
import "../chunk-GVNPFXKL.js";
|
|
15
|
+
export {
|
|
16
|
+
NotificationCenter,
|
|
17
|
+
useNotificationCenter
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=notification-center.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
import {
|
|
3
3
|
PromptModal,
|
|
4
4
|
usePromptModal
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-L46XIE3D.js";
|
|
6
6
|
import "../chunk-4CAT3FHV.js";
|
|
7
|
+
import "../chunk-XB4ZRAH4.js";
|
|
8
|
+
import "../chunk-JJGZRBIR.js";
|
|
7
9
|
import "../chunk-2UFNQM55.js";
|
|
8
10
|
import "../chunk-4M4LCQ43.js";
|
|
9
11
|
import "../chunk-QU7UV5DB.js";
|
|
10
12
|
import "../chunk-JB7IQ2BM.js";
|
|
11
13
|
import "../chunk-JJP2TFTU.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-5GEC53G7.js";
|
|
14
|
-
import "../chunk-CU7HXAKM.js";
|
|
15
|
-
import "../chunk-4O4QFF4S.js";
|
|
14
|
+
import "../chunk-6F34A7NZ.js";
|
|
16
15
|
import "../chunk-ZAU4JVLL.js";
|
|
16
|
+
import "../chunk-4O4QFF4S.js";
|
|
17
17
|
import "../chunk-KESKDLX6.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-BEYPMC73.js";
|
|
19
|
+
import "../chunk-GVNPFXKL.js";
|
|
20
20
|
import "../chunk-TZNYJ3G7.js";
|
|
21
21
|
export {
|
|
22
22
|
PromptModal,
|
package/build/legacy/index.js
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PromptModal,
|
|
3
|
+
usePromptModal
|
|
4
|
+
} from "./chunk-L46XIE3D.js";
|
|
5
|
+
import {
|
|
6
|
+
Th
|
|
7
|
+
} from "./chunk-3GXISGPS.js";
|
|
8
|
+
import {
|
|
9
|
+
Thead
|
|
10
|
+
} from "./chunk-N3FUF4TB.js";
|
|
1
11
|
import {
|
|
2
12
|
Toggle
|
|
3
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-IL5ELPTT.js";
|
|
4
14
|
import {
|
|
5
15
|
ConfirmModal,
|
|
6
16
|
useConfirmModal
|
|
7
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-AAKIOHAX.js";
|
|
8
18
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import {
|
|
13
|
-
Portal
|
|
14
|
-
} from "./chunk-4CAT3FHV.js";
|
|
15
|
-
import {
|
|
16
|
-
Radio
|
|
17
|
-
} from "./chunk-PH64POOB.js";
|
|
19
|
+
NotificationCenter,
|
|
20
|
+
useNotificationCenter
|
|
21
|
+
} from "./chunk-2VPKILZ6.js";
|
|
18
22
|
import {
|
|
19
23
|
Tab
|
|
20
24
|
} from "./chunk-NE5NHILF.js";
|
|
@@ -24,12 +28,54 @@ import {
|
|
|
24
28
|
import {
|
|
25
29
|
TabPanel
|
|
26
30
|
} from "./chunk-U72VPIZA.js";
|
|
31
|
+
import {
|
|
32
|
+
Table,
|
|
33
|
+
Tr
|
|
34
|
+
} from "./chunk-A5WYZVUR.js";
|
|
27
35
|
import {
|
|
28
36
|
Tag
|
|
29
37
|
} from "./chunk-EVEEQRH6.js";
|
|
38
|
+
import {
|
|
39
|
+
Tbody
|
|
40
|
+
} from "./chunk-PJ3744I6.js";
|
|
41
|
+
import {
|
|
42
|
+
Td
|
|
43
|
+
} from "./chunk-XREC5IJE.js";
|
|
30
44
|
import {
|
|
31
45
|
Textarea
|
|
32
46
|
} from "./chunk-TCO46FK7.js";
|
|
47
|
+
import {
|
|
48
|
+
NavMenuList,
|
|
49
|
+
getPosition
|
|
50
|
+
} from "./chunk-PMCYXRAH.js";
|
|
51
|
+
import {
|
|
52
|
+
NavMenuTrigger
|
|
53
|
+
} from "./chunk-RPZAPUCF.js";
|
|
54
|
+
import {
|
|
55
|
+
NavMenu,
|
|
56
|
+
useNavMenuContext
|
|
57
|
+
} from "./chunk-KJUCHZHV.js";
|
|
58
|
+
import {
|
|
59
|
+
Notification
|
|
60
|
+
} from "./chunk-LF2QFS5S.js";
|
|
61
|
+
import {
|
|
62
|
+
NotificationDescription
|
|
63
|
+
} from "./chunk-HW76XVA3.js";
|
|
64
|
+
import {
|
|
65
|
+
NotificationHeading
|
|
66
|
+
} from "./chunk-3C2DJSEE.js";
|
|
67
|
+
import {
|
|
68
|
+
Portal
|
|
69
|
+
} from "./chunk-4CAT3FHV.js";
|
|
70
|
+
import {
|
|
71
|
+
Radio
|
|
72
|
+
} from "./chunk-PH64POOB.js";
|
|
73
|
+
import {
|
|
74
|
+
Input
|
|
75
|
+
} from "./chunk-XB4ZRAH4.js";
|
|
76
|
+
import {
|
|
77
|
+
Label
|
|
78
|
+
} from "./chunk-JJGZRBIR.js";
|
|
33
79
|
import {
|
|
34
80
|
Modal
|
|
35
81
|
} from "./chunk-2UFNQM55.js";
|
|
@@ -48,17 +94,6 @@ import {
|
|
|
48
94
|
import {
|
|
49
95
|
NavMenuLink
|
|
50
96
|
} from "./chunk-6DIGPXAD.js";
|
|
51
|
-
import {
|
|
52
|
-
NavMenuList,
|
|
53
|
-
getPosition
|
|
54
|
-
} from "./chunk-PMCYXRAH.js";
|
|
55
|
-
import {
|
|
56
|
-
NavMenuTrigger
|
|
57
|
-
} from "./chunk-RPZAPUCF.js";
|
|
58
|
-
import {
|
|
59
|
-
NavMenu,
|
|
60
|
-
useNavMenuContext
|
|
61
|
-
} from "./chunk-KJUCHZHV.js";
|
|
62
97
|
import {
|
|
63
98
|
MODE_KEY,
|
|
64
99
|
THEME_KEY,
|
|
@@ -71,7 +106,10 @@ import {
|
|
|
71
106
|
} from "./chunk-SCQVXJBT.js";
|
|
72
107
|
import {
|
|
73
108
|
Button
|
|
74
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-6F34A7NZ.js";
|
|
110
|
+
import {
|
|
111
|
+
Droppable
|
|
112
|
+
} from "./chunk-7VJOPJVX.js";
|
|
75
113
|
import {
|
|
76
114
|
FeatureFlag
|
|
77
115
|
} from "./chunk-VULPMZUW.js";
|
|
@@ -83,21 +121,18 @@ import {
|
|
|
83
121
|
FieldMessage
|
|
84
122
|
} from "./chunk-VGHVH2T3.js";
|
|
85
123
|
import {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
Input
|
|
90
|
-
} from "./chunk-5GEC53G7.js";
|
|
124
|
+
Field,
|
|
125
|
+
useFieldContext
|
|
126
|
+
} from "./chunk-ZAU4JVLL.js";
|
|
91
127
|
import {
|
|
92
|
-
|
|
93
|
-
} from "./chunk-
|
|
128
|
+
FileUploader
|
|
129
|
+
} from "./chunk-SMCEFK6Q.js";
|
|
94
130
|
import {
|
|
95
131
|
Show
|
|
96
132
|
} from "./chunk-4O4QFF4S.js";
|
|
97
133
|
import {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
} from "./chunk-ZAU4JVLL.js";
|
|
134
|
+
IconButton
|
|
135
|
+
} from "./chunk-SLHX5K6I.js";
|
|
101
136
|
import "./chunk-55J6XMHW.js";
|
|
102
137
|
import {
|
|
103
138
|
createNavTriggerProps
|
|
@@ -116,19 +151,24 @@ import {
|
|
|
116
151
|
import {
|
|
117
152
|
$cerberusIcons,
|
|
118
153
|
defineIcons
|
|
119
|
-
} from "./chunk-
|
|
120
|
-
import "./chunk-
|
|
154
|
+
} from "./chunk-BEYPMC73.js";
|
|
155
|
+
import "./chunk-GVNPFXKL.js";
|
|
121
156
|
import {
|
|
122
157
|
useModal
|
|
123
158
|
} from "./chunk-TZNYJ3G7.js";
|
|
159
|
+
|
|
160
|
+
// src/index.ts
|
|
161
|
+
export * from "@dnd-kit/core";
|
|
124
162
|
export {
|
|
125
163
|
$cerberusIcons,
|
|
126
164
|
Button,
|
|
127
165
|
ConfirmModal,
|
|
166
|
+
Droppable,
|
|
128
167
|
FeatureFlag,
|
|
129
168
|
FeatureFlags,
|
|
130
169
|
Field,
|
|
131
170
|
FieldMessage,
|
|
171
|
+
FileUploader,
|
|
132
172
|
IconButton,
|
|
133
173
|
Input,
|
|
134
174
|
Label,
|
|
@@ -142,6 +182,10 @@ export {
|
|
|
142
182
|
NavMenuLink,
|
|
143
183
|
NavMenuList,
|
|
144
184
|
NavMenuTrigger,
|
|
185
|
+
Notification,
|
|
186
|
+
NotificationCenter,
|
|
187
|
+
NotificationDescription,
|
|
188
|
+
NotificationHeading,
|
|
145
189
|
Portal,
|
|
146
190
|
PromptModal,
|
|
147
191
|
Radio,
|
|
@@ -150,12 +194,18 @@ export {
|
|
|
150
194
|
Tab,
|
|
151
195
|
TabList,
|
|
152
196
|
TabPanel,
|
|
197
|
+
Table,
|
|
153
198
|
Tabs,
|
|
154
199
|
TabsContext,
|
|
155
200
|
Tag,
|
|
201
|
+
Tbody,
|
|
202
|
+
Td,
|
|
156
203
|
Textarea,
|
|
204
|
+
Th,
|
|
205
|
+
Thead,
|
|
157
206
|
ThemeProvider,
|
|
158
207
|
Toggle,
|
|
208
|
+
Tr,
|
|
159
209
|
createNavTriggerProps,
|
|
160
210
|
defineIcons,
|
|
161
211
|
getPosition,
|
|
@@ -165,6 +215,7 @@ export {
|
|
|
165
215
|
useFieldContext,
|
|
166
216
|
useModal,
|
|
167
217
|
useNavMenuContext,
|
|
218
|
+
useNotificationCenter,
|
|
168
219
|
usePromptModal,
|
|
169
220
|
useTabsContext,
|
|
170
221
|
useTabsKeyboardNavigation,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
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/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/Radio'\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0EA,cAAc;","names":[]}
|