@fpkit/acss 0.5.8 → 0.5.12
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/README.md +425 -18
- package/libs/chunk-23ANBDCR.js +8 -0
- package/libs/chunk-23ANBDCR.js.map +1 -0
- package/libs/chunk-5M57K4SW.js +8 -0
- package/libs/chunk-5M57K4SW.js.map +1 -0
- package/libs/chunk-5ZM4XL44.js +8 -0
- package/libs/chunk-5ZM4XL44.js.map +1 -0
- package/libs/chunk-6BVXFW7U.cjs +15 -0
- package/libs/chunk-6BVXFW7U.cjs.map +1 -0
- package/libs/chunk-6TE5QEVE.cjs +13 -0
- package/libs/chunk-6TE5QEVE.cjs.map +1 -0
- package/libs/chunk-7K76RW2A.cjs +18 -0
- package/libs/chunk-7K76RW2A.cjs.map +1 -0
- package/libs/chunk-BHRQBJRY.js +8 -0
- package/libs/chunk-BHRQBJRY.js.map +1 -0
- package/libs/chunk-BIP2NY53.js +8 -0
- package/libs/chunk-BIP2NY53.js.map +1 -0
- package/libs/chunk-BSPKFLO4.js +8 -0
- package/libs/chunk-BSPKFLO4.js.map +1 -0
- package/libs/chunk-BV5CLH44.cjs +18 -0
- package/libs/chunk-BV5CLH44.cjs.map +1 -0
- package/libs/chunk-DKGJHKGW.js +9 -0
- package/libs/chunk-DKGJHKGW.js.map +1 -0
- package/libs/chunk-DV56L5YX.cjs +18 -0
- package/libs/chunk-DV56L5YX.cjs.map +1 -0
- package/libs/chunk-E3XP6BEX.cjs +16 -0
- package/libs/chunk-E3XP6BEX.cjs.map +1 -0
- package/libs/chunk-ECLD37WN.cjs +16 -0
- package/libs/chunk-ECLD37WN.cjs.map +1 -0
- package/libs/chunk-EQ67LF46.js +9 -0
- package/libs/chunk-EQ67LF46.js.map +1 -0
- package/libs/chunk-G55UJ53G.cjs +16 -0
- package/libs/chunk-G55UJ53G.cjs.map +1 -0
- package/libs/chunk-HYBZBN4G.js +8 -0
- package/libs/chunk-HYBZBN4G.js.map +1 -0
- package/libs/chunk-ICCKQ2GC.cjs +15 -0
- package/libs/chunk-ICCKQ2GC.cjs.map +1 -0
- package/libs/chunk-IYUN2EW3.cjs +15 -0
- package/libs/chunk-IYUN2EW3.cjs.map +1 -0
- package/libs/chunk-KKLTUJFB.cjs +31 -0
- package/libs/chunk-KKLTUJFB.cjs.map +1 -0
- package/libs/chunk-LHVJKDMA.cjs +15 -0
- package/libs/chunk-LHVJKDMA.cjs.map +1 -0
- package/libs/chunk-LIQJ7ZZR.js +8 -0
- package/libs/chunk-LIQJ7ZZR.js.map +1 -0
- package/libs/chunk-LL7HTLMS.cjs +15 -0
- package/libs/chunk-LL7HTLMS.cjs.map +1 -0
- package/libs/chunk-LT5KZ2QW.cjs +22 -0
- package/libs/chunk-LT5KZ2QW.cjs.map +1 -0
- package/libs/chunk-M5QL5TAE.cjs +14 -0
- package/libs/chunk-M5QL5TAE.cjs.map +1 -0
- package/libs/chunk-NE6YXTMC.js +7 -0
- package/libs/chunk-NE6YXTMC.js.map +1 -0
- package/libs/chunk-NHYXGV3L.js +8 -0
- package/libs/chunk-NHYXGV3L.js.map +1 -0
- package/libs/chunk-O6QZBB6G.js +9 -0
- package/libs/chunk-O6QZBB6G.js.map +1 -0
- package/libs/chunk-P7TTEYCD.js +7 -0
- package/libs/chunk-P7TTEYCD.js.map +1 -0
- package/libs/chunk-PPOOBUOS.js +8 -0
- package/libs/chunk-PPOOBUOS.js.map +1 -0
- package/libs/chunk-QCMV4VQZ.js +8 -0
- package/libs/chunk-QCMV4VQZ.js.map +1 -0
- package/libs/chunk-QVV34QEH.cjs +32 -0
- package/libs/chunk-QVV34QEH.cjs.map +1 -0
- package/libs/chunk-S7BABR7Z.cjs +13 -0
- package/libs/chunk-S7BABR7Z.cjs.map +1 -0
- package/libs/chunk-SXVZSWX6.js +11 -0
- package/libs/chunk-SXVZSWX6.js.map +1 -0
- package/libs/chunk-X3EVB7VS.cjs +15 -0
- package/libs/chunk-X3EVB7VS.cjs.map +1 -0
- package/libs/chunk-YWOYVRFT.js +9 -0
- package/libs/chunk-YWOYVRFT.js.map +1 -0
- package/libs/component-props-a8a2f97e.d.ts +38 -0
- package/libs/components/breadcrumbs/breadcrumb.cjs +20 -0
- package/libs/components/breadcrumbs/breadcrumb.cjs.map +1 -0
- package/libs/components/breadcrumbs/breadcrumb.d.cts +51 -0
- package/libs/components/breadcrumbs/breadcrumb.d.ts +51 -0
- package/libs/components/breadcrumbs/breadcrumb.js +5 -0
- package/libs/components/breadcrumbs/breadcrumb.js.map +1 -0
- package/libs/components/button.cjs +19 -0
- package/libs/components/button.cjs.map +1 -0
- package/libs/components/button.d.cts +16 -0
- package/libs/components/button.d.ts +16 -0
- package/libs/components/button.js +4 -0
- package/libs/components/button.js.map +1 -0
- package/libs/components/card.cjs +31 -0
- package/libs/components/card.cjs.map +1 -0
- package/libs/components/card.d.cts +58 -0
- package/libs/components/card.d.ts +58 -0
- package/libs/components/card.js +4 -0
- package/libs/components/card.js.map +1 -0
- package/libs/components/details/details.css +1 -1
- package/libs/components/details/details.css.map +1 -1
- package/libs/components/details/details.min.css +2 -2
- package/libs/components/dialog/dialog.cjs +22 -0
- package/libs/components/dialog/dialog.cjs.map +1 -0
- package/libs/components/dialog/dialog.d.cts +51 -0
- package/libs/components/dialog/dialog.d.ts +51 -0
- package/libs/components/dialog/dialog.js +7 -0
- package/libs/components/dialog/dialog.js.map +1 -0
- package/libs/components/form/fields.cjs +19 -0
- package/libs/components/form/fields.cjs.map +1 -0
- package/libs/components/form/fields.d.cts +24 -0
- package/libs/components/form/fields.d.ts +24 -0
- package/libs/components/form/fields.js +4 -0
- package/libs/components/form/fields.js.map +1 -0
- package/libs/components/form/inputs.cjs +19 -0
- package/libs/components/form/inputs.cjs.map +1 -0
- package/libs/components/form/inputs.d.cts +2 -0
- package/libs/components/form/inputs.d.ts +2 -0
- package/libs/components/form/inputs.js +4 -0
- package/libs/components/form/inputs.js.map +1 -0
- package/libs/components/form/textarea.cjs +19 -0
- package/libs/components/form/textarea.cjs.map +1 -0
- package/libs/components/form/textarea.d.cts +29 -0
- package/libs/components/form/textarea.d.ts +29 -0
- package/libs/components/form/textarea.js +4 -0
- package/libs/components/form/textarea.js.map +1 -0
- package/libs/components/heading/heading.cjs +10 -0
- package/libs/components/heading/heading.cjs.map +1 -0
- package/libs/components/heading/heading.d.cts +14 -0
- package/libs/components/heading/heading.d.ts +14 -0
- package/libs/components/heading/heading.js +4 -0
- package/libs/components/heading/heading.js.map +1 -0
- package/libs/components/icons/icon.cjs +19 -0
- package/libs/components/icons/icon.cjs.map +1 -0
- package/libs/{icons-31ace3de.d.ts → components/icons/icon.d.cts} +4 -58
- package/libs/components/icons/icon.d.ts +301 -0
- package/libs/components/icons/icon.js +4 -0
- package/libs/components/icons/icon.js.map +1 -0
- package/libs/components/link/link.cjs +19 -0
- package/libs/components/link/link.cjs.map +1 -0
- package/libs/components/link/link.d.cts +19 -0
- package/libs/components/link/link.d.ts +19 -0
- package/libs/components/link/link.js +4 -0
- package/libs/components/link/link.js.map +1 -0
- package/libs/components/list/list.cjs +23 -0
- package/libs/components/list/list.cjs.map +1 -0
- package/libs/components/list/list.d.cts +39 -0
- package/libs/components/list/list.d.ts +39 -0
- package/libs/components/list/list.js +4 -0
- package/libs/components/list/list.js.map +1 -0
- package/libs/components/modal.cjs +14 -0
- package/libs/components/modal.cjs.map +1 -0
- package/libs/components/modal.d.cts +35 -0
- package/libs/components/modal.d.ts +35 -0
- package/libs/components/modal.js +5 -0
- package/libs/components/modal.js.map +1 -0
- package/libs/components/nav/nav.cjs +28 -0
- package/libs/components/nav/nav.cjs.map +1 -0
- package/libs/components/nav/nav.d.cts +44 -0
- package/libs/components/nav/nav.d.ts +44 -0
- package/libs/components/nav/nav.js +5 -0
- package/libs/components/nav/nav.js.map +1 -0
- package/libs/components/popover/popover.cjs +23 -0
- package/libs/components/popover/popover.cjs.map +1 -0
- package/libs/components/popover/popover.d.cts +40 -0
- package/libs/components/popover/popover.d.ts +40 -0
- package/libs/components/popover/popover.js +4 -0
- package/libs/components/popover/popover.js.map +1 -0
- package/libs/components/tables/table.cjs +21 -0
- package/libs/components/tables/table.cjs.map +1 -0
- package/libs/components/tables/table.d.cts +36 -0
- package/libs/components/tables/table.d.ts +36 -0
- package/libs/components/tables/table.js +4 -0
- package/libs/components/tables/table.js.map +1 -0
- package/libs/components/text/text.cjs +23 -0
- package/libs/components/text/text.cjs.map +1 -0
- package/libs/components/text/text.d.cts +30 -0
- package/libs/components/text/text.d.ts +30 -0
- package/libs/components/text/text.js +4 -0
- package/libs/components/text/text.js.map +1 -0
- package/libs/icons.cjs +3 -2
- package/libs/icons.d.cts +3 -1
- package/libs/icons.d.ts +3 -1
- package/libs/icons.js +2 -1
- package/libs/index.cjs +152 -61
- package/libs/index.cjs.map +1 -1
- package/libs/index.css +1 -1
- package/libs/index.css.map +1 -1
- package/libs/index.d.cts +53 -459
- package/libs/index.d.ts +53 -459
- package/libs/index.js +24 -7
- package/libs/index.js.map +1 -1
- package/libs/inputs-f3a216db.d.ts +45 -0
- package/libs/ui-9a6f9f8d.d.ts +24 -0
- package/package.json +87 -2
- package/src/components/README.mdx +1 -1
- package/src/components/alert/README.mdx +1 -1
- package/src/components/alert/alert.stories.tsx +2 -2
- package/src/components/alert/elements/README.mdx +1 -1
- package/src/components/alert/elements/dismiss-button.stories.tsx +2 -2
- package/src/components/badge/badge.mdx +1 -1
- package/src/components/badge/badge.stories.tsx +2 -2
- package/src/components/breadcrumbs/README.mdx +91 -0
- package/src/components/breadcrumbs/breadcrumb.stories.tsx +2 -2
- package/src/components/breadcrumbs/breadcrumb.tsx +92 -87
- package/src/components/button.ts +2 -0
- package/src/components/buttons/README.mdx +1 -1
- package/src/components/buttons/button.stories.tsx +2 -2
- package/src/components/buttons/button.test.tsx +1 -1
- package/src/components/card.ts +2 -0
- package/src/components/cards/card.stories.tsx +2 -2
- package/src/components/details/README.mdx +1 -1
- package/src/components/details/details.scss +7 -0
- package/src/components/details/details.stories.tsx +2 -2
- package/src/components/dialog/README.mdx +1 -1
- package/src/components/dialog/dialog-modal.stories.tsx +2 -2
- package/src/components/dialog/dialog-modal.tsx +1 -1
- package/src/components/dialog/dialog.stories.tsx +2 -2
- package/src/components/dialog/views/README.mdx +1 -1
- package/src/components/dialog/views/dialog-header.stories.tsx +2 -2
- package/src/components/form/form.stories.tsx +2 -2
- package/src/components/form/input.stories.tsx +2 -2
- package/src/components/form/inputs.tsx +18 -24
- package/src/components/form/select.stories.tsx +2 -2
- package/src/components/fp.test.tsx +52 -50
- package/src/components/heading/heading.stories.tsx +2 -2
- package/src/components/icons/icon.stories.tsx +1 -1
- package/src/components/images/figure.stories.tsx +2 -2
- package/src/components/images/img.stories.tsx +2 -2
- package/src/components/layout/footer.stories.tsx +10 -19
- package/src/components/layout/landmarks.stories.tsx +22 -24
- package/src/components/layout/main.stories.tsx +21 -25
- package/src/components/link/link.stories.tsx +2 -2
- package/src/components/list/list.stories.tsx +2 -2
- package/src/components/modal.ts +1 -0
- package/src/components/nav/nav.stories.tsx +2 -2
- package/src/components/popover/popover.stories.tsx +2 -2
- package/src/components/progress/progress.stories.tsx +1 -1
- package/src/components/tag/tag.stories.tsx +2 -2
- package/src/components/text/text.stories.tsx +2 -2
- package/src/components/text-to-speech/TextToSpeech.stories.tsx +1 -1
- package/src/decorators/instructions.tsx +2 -1
- package/src/index.ts +43 -19
- package/src/patterns/page/page-header.stories.tsx +2 -2
- package/src/styles/details/details.css +8 -0
- package/src/styles/details/details.css.map +1 -1
- package/src/styles/index.css +8 -0
- package/src/styles/index.css.map +1 -1
- package/libs/chunk-PWVRDQ3R.js +0 -8
- package/libs/chunk-PWVRDQ3R.js.map +0 -1
- package/libs/chunk-SVS4MX3U.cjs +0 -31
- package/libs/chunk-SVS4MX3U.cjs.map +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { a as a$1 } from './chunk-QCMV4VQZ.js';
|
|
2
|
+
import { a } from './chunk-NE6YXTMC.js';
|
|
3
|
+
import e from 'react';
|
|
4
|
+
|
|
5
|
+
var l=({id:n,children:a$1,classes:r,modalRef:d,openOnMount:i,...t})=>e.createElement(a,{as:"dialog",id:n,classes:r,ref:d,open:i,onClick:o=>{o.currentTarget===o.target&&o.currentTarget.close();},...t},a$1);e.memo(l);l.displayName="Dialog";var u=({openChild:n,closeChild:a,modalHeader:r,modalFooter:d,children:i,showOpen:t=!1,...p})=>{let o=e.useRef(null),f=()=>{o.current&&(t?o.current.show():o.current.showModal());},M=()=>{o.current&&o.current.close();};return e.createElement(e.Fragment,null,e.createElement(l,{modalRef:o,openOnMount:t,...p},e.createElement("section",null,r,i,d??e.createElement("div",null,e.createElement(a$1,{type:"button",pointerDown:()=>{M();}},a||"Close")," "))),!t&&e.createElement(a$1,{type:"button",pointerDown:f},n||"Open Modal"))};u.displayName="Modal";
|
|
6
|
+
|
|
7
|
+
export { u as a };
|
|
8
|
+
//# sourceMappingURL=out.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-YWOYVRFT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/modal/modal.tsx","../src/components/modal/dialog.tsx"],"names":["React","ModalDialog","id","children","classes","modalRef","openOnMount","props","ui_default","e","dialog_default","Modal","openChild","closeChild","modalHeader","modalFooter","showOpen","dialogRef","openModal","closeModal","Button"],"mappings":"gFAAA,OAAOA,MAAW,QCClB,OAAOA,MAAW,QAmBX,IAAMC,EAAc,CAAC,CAC1B,GAAAC,EACA,SAAAC,EACA,QAAAC,EACA,SAAAC,EACA,YAAAC,EACA,GAAGC,CACL,IAQIP,EAAA,cAACQ,EAAA,CACC,GAAG,SACH,GAAIN,EACJ,QAASE,EACT,IAAKC,EACL,KAAMC,EACN,QAbsBG,GAA+C,CACnEA,EAAE,gBAAkBA,EAAE,QACxBA,EAAE,cAAc,MAAM,CAE1B,EAUK,GAAGF,GAEHJ,CACH,EAIGO,EAAQV,EAAM,KAAKC,CAAW,EACrCA,EAAY,YAAc,SDnBnB,IAAMU,EAAQ,CAAC,CACpB,UAAAC,EACA,WAAAC,EACA,YAAAC,EACA,YAAAC,EACA,SAAAZ,EACA,SAAAa,EAAW,GACX,GAAGT,CACL,IAAkB,CAChB,IAAMU,EAAYjB,EAAM,OAA0B,IAAI,EAChDkB,EAAY,IAAY,CACxBD,EAAU,UACRD,EAAUC,EAAU,QAAQ,KAAK,EAChCA,EAAU,QAAQ,UAAU,EAErC,EACME,EAAa,IAAM,CACnBF,EAAU,SACZA,EAAU,QAAQ,MAAM,CAE5B,EAEA,OACEjB,EAAA,cAAAA,EAAA,cACEA,EAAA,cAACC,EAAA,CAAY,SAAUgB,EAAW,YAAaD,EAAW,GAAGT,GAC3DP,EAAA,cAAC,eACEc,EACAX,EACAY,GACCf,EAAA,cAAC,WACCA,EAAA,cAACoB,EAAA,CACC,KAAK,SACL,YAAa,IAAM,CACjBD,EAAW,CACb,GAECN,GAAc,OACjB,EAAU,GACZ,CAEJ,CACF,EACC,CAACG,GACAhB,EAAA,cAACoB,EAAA,CAAO,KAAK,SAAS,YAAaF,GAChCN,GAAa,YAChB,CAEJ,CAEJ,EAEAD,EAAM,YAAc","sourcesContent":["import React from \"react\";\nimport { ComponentProps } from \"../../types\";\nimport { Button } from \"../buttons/button\";\nimport { ModalDialog } from \"./dialog\";\n\nexport interface ModalProps extends ComponentProps {\n /**\n * The child component/content for open button\n */\n openChild?: React.ReactNode;\n /**\n * The child component/content for close button\n */\n closeChild?: React.ReactNode;\n /**\n * The child component/content for modal header\n */\n modalHeader?: React.ReactNode;\n /**\n * The child component/content for modal footer\n */\n modalFooter?: React.ReactNode;\n /**\n * The child component/content for modal body\n */\n children: React.ReactNode;\n /**\n * Open modal on mount when set to true\n */\n showOpen?: boolean;\n}\nexport const Modal = ({\n openChild,\n closeChild,\n modalHeader,\n modalFooter,\n children,\n showOpen = false,\n ...props\n}: ModalProps) => {\n const dialogRef = React.useRef<HTMLDialogElement>(null);\n const openModal = (): void => {\n if (dialogRef.current) {\n if (showOpen) dialogRef.current.show();\n else dialogRef.current.showModal();\n }\n };\n const closeModal = () => {\n if (dialogRef.current) {\n dialogRef.current.close();\n }\n };\n\n return (\n <>\n <ModalDialog modalRef={dialogRef} openOnMount={showOpen} {...props}>\n <section>\n {modalHeader}\n {children}\n {modalFooter ?? (\n <div>\n <Button\n type=\"button\"\n pointerDown={() => {\n closeModal();\n }}\n >\n {closeChild || \"Close\"}\n </Button>{\" \"}\n </div>\n )}\n </section>\n </ModalDialog>\n {!showOpen && (\n <Button type=\"button\" pointerDown={openModal}>\n {openChild || \"Open Modal\"}\n </Button>\n )}\n </>\n );\n};\n\nModal.displayName = \"Modal\";\n","import UI from \"../ui\";\nimport React from \"react\";\n\nexport type DialogProps = {\n /**\n * React ref for dialog element\n */\n modalRef: React.RefObject<HTMLDialogElement>;\n /**\n * Handle close modal event\n */\n closeModal?: (e: React.SyntheticEvent<HTMLDialogElement>) => void;\n /**\n * open modal on mount\n */\n openOnMount?: boolean;\n} & React.ComponentProps<typeof UI>;\n/**\n * Dialog component\n */\nexport const ModalDialog = ({\n id,\n children,\n classes,\n modalRef,\n openOnMount,\n ...props\n}: DialogProps) => {\n const handleCloseModal = (e: React.SyntheticEvent<HTMLDialogElement>) => {\n if (e.currentTarget === e.target) {\n e.currentTarget.close();\n }\n };\n\n return (\n <UI\n as=\"dialog\"\n id={id}\n classes={classes}\n ref={modalRef}\n open={openOnMount}\n onClick={handleCloseModal}\n {...props}\n >\n {children}\n </UI>\n );\n};\n\nexport default React.memo(ModalDialog);\nModalDialog.displayName = \"Dialog\";\n"]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React__default, { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
interface ComponentProps {
|
|
4
|
+
/**
|
|
5
|
+
* The default child content/component to render.
|
|
6
|
+
*/
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Use default component styles
|
|
10
|
+
*/
|
|
11
|
+
renderStyles?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Component id attribute
|
|
14
|
+
*/
|
|
15
|
+
id?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Styles object
|
|
18
|
+
*/
|
|
19
|
+
styles?: React__default.CSSProperties;
|
|
20
|
+
/**
|
|
21
|
+
* Default styles object
|
|
22
|
+
*/
|
|
23
|
+
defaultStyles?: React__default.CSSProperties;
|
|
24
|
+
/**
|
|
25
|
+
* Component class attribute
|
|
26
|
+
*/
|
|
27
|
+
classes?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Style value for [data-style] attribute
|
|
30
|
+
*/
|
|
31
|
+
dataStyle?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Component ref attribute
|
|
34
|
+
*/
|
|
35
|
+
ref?: React__default.Ref<any>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { ComponentProps as C };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var chunkECLD37WN_cjs = require('../../chunk-ECLD37WN.cjs');
|
|
6
|
+
require('../../chunk-X3EVB7VS.cjs');
|
|
7
|
+
require('../../chunk-6TE5QEVE.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, 'Breadcrumb', {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkECLD37WN_cjs.a; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, 'default', {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkECLD37WN_cjs.b; }
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=out.js.map
|
|
20
|
+
//# sourceMappingURL=breadcrumb.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { F as FP } from '../../ui-9a6f9f8d.js';
|
|
3
|
+
import Link from '../link/link.cjs';
|
|
4
|
+
|
|
5
|
+
type customRoute = {
|
|
6
|
+
/** The path or id for routing */
|
|
7
|
+
path?: string;
|
|
8
|
+
/** The display name */
|
|
9
|
+
name: string;
|
|
10
|
+
/** The url if linking out */
|
|
11
|
+
url?: string;
|
|
12
|
+
};
|
|
13
|
+
type BreadcrumbProps = {
|
|
14
|
+
/** Array of custom route objects */
|
|
15
|
+
routes?: customRoute[];
|
|
16
|
+
/** Starting route node */
|
|
17
|
+
startRoute?: React__default.ReactNode;
|
|
18
|
+
startRouteUrl?: string;
|
|
19
|
+
/** Spacer node between routes */
|
|
20
|
+
spacer?: React__default.ReactNode;
|
|
21
|
+
/** String representing current route */
|
|
22
|
+
currentRoute?: string;
|
|
23
|
+
/** Prefix breadcrumb aria-label - "prefix breadcrumb" */
|
|
24
|
+
ariaLabelPrefix?: string;
|
|
25
|
+
/** Truncate breadcrumb text after this length */
|
|
26
|
+
truncateLength?: number;
|
|
27
|
+
/** Link props for breadcrumb links */
|
|
28
|
+
linkProps?: React__default.ComponentProps<typeof Link>;
|
|
29
|
+
} & React__default.ComponentProps<typeof FP>;
|
|
30
|
+
/**
|
|
31
|
+
* Navigation component for breadcrumbs.
|
|
32
|
+
*
|
|
33
|
+
* @param props - Props for the navigation component.
|
|
34
|
+
* @param props.startRoute - Starting route node. Default 'Home'.
|
|
35
|
+
* @param props.currentRoute - String representing current route.
|
|
36
|
+
* @param props.spacer - Spacer node between routes. Default '/'.
|
|
37
|
+
* @param props.routes - Array of custom route objects.
|
|
38
|
+
* @param props.styles - Styles object for the nav.
|
|
39
|
+
* @param props.id - Id for the nav.
|
|
40
|
+
* @param props.classes - Class names for the nav.
|
|
41
|
+
* @param props.children - Child components.
|
|
42
|
+
*/
|
|
43
|
+
declare const Breadcrumb: {
|
|
44
|
+
({ startRoute, startRouteUrl, currentRoute, spacer, routes, styles, id, classes, ariaLabelPrefix, truncateLength, linkProps, ...props }: BreadcrumbProps): React__default.JSX.Element;
|
|
45
|
+
displayName: string;
|
|
46
|
+
Nav: ({ styles, id, classes, children, ...props }: React__default.ComponentProps<typeof FP>) => React__default.JSX.Element;
|
|
47
|
+
List: ({ children, ...props }: React__default.ComponentProps<typeof FP>) => React__default.JSX.Element;
|
|
48
|
+
Items: ({ styles, id, classes, children, ...props }: React__default.ComponentProps<typeof FP>) => React__default.JSX.Element;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export { Breadcrumb, Breadcrumb as default };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { F as FP } from '../../ui-9a6f9f8d.js';
|
|
3
|
+
import Link from '../link/link.js';
|
|
4
|
+
|
|
5
|
+
type customRoute = {
|
|
6
|
+
/** The path or id for routing */
|
|
7
|
+
path?: string;
|
|
8
|
+
/** The display name */
|
|
9
|
+
name: string;
|
|
10
|
+
/** The url if linking out */
|
|
11
|
+
url?: string;
|
|
12
|
+
};
|
|
13
|
+
type BreadcrumbProps = {
|
|
14
|
+
/** Array of custom route objects */
|
|
15
|
+
routes?: customRoute[];
|
|
16
|
+
/** Starting route node */
|
|
17
|
+
startRoute?: React__default.ReactNode;
|
|
18
|
+
startRouteUrl?: string;
|
|
19
|
+
/** Spacer node between routes */
|
|
20
|
+
spacer?: React__default.ReactNode;
|
|
21
|
+
/** String representing current route */
|
|
22
|
+
currentRoute?: string;
|
|
23
|
+
/** Prefix breadcrumb aria-label - "prefix breadcrumb" */
|
|
24
|
+
ariaLabelPrefix?: string;
|
|
25
|
+
/** Truncate breadcrumb text after this length */
|
|
26
|
+
truncateLength?: number;
|
|
27
|
+
/** Link props for breadcrumb links */
|
|
28
|
+
linkProps?: React__default.ComponentProps<typeof Link>;
|
|
29
|
+
} & React__default.ComponentProps<typeof FP>;
|
|
30
|
+
/**
|
|
31
|
+
* Navigation component for breadcrumbs.
|
|
32
|
+
*
|
|
33
|
+
* @param props - Props for the navigation component.
|
|
34
|
+
* @param props.startRoute - Starting route node. Default 'Home'.
|
|
35
|
+
* @param props.currentRoute - String representing current route.
|
|
36
|
+
* @param props.spacer - Spacer node between routes. Default '/'.
|
|
37
|
+
* @param props.routes - Array of custom route objects.
|
|
38
|
+
* @param props.styles - Styles object for the nav.
|
|
39
|
+
* @param props.id - Id for the nav.
|
|
40
|
+
* @param props.classes - Class names for the nav.
|
|
41
|
+
* @param props.children - Child components.
|
|
42
|
+
*/
|
|
43
|
+
declare const Breadcrumb: {
|
|
44
|
+
({ startRoute, startRouteUrl, currentRoute, spacer, routes, styles, id, classes, ariaLabelPrefix, truncateLength, linkProps, ...props }: BreadcrumbProps): React__default.JSX.Element;
|
|
45
|
+
displayName: string;
|
|
46
|
+
Nav: ({ styles, id, classes, children, ...props }: React__default.ComponentProps<typeof FP>) => React__default.JSX.Element;
|
|
47
|
+
List: ({ children, ...props }: React__default.ComponentProps<typeof FP>) => React__default.JSX.Element;
|
|
48
|
+
Items: ({ styles, id, classes, children, ...props }: React__default.ComponentProps<typeof FP>) => React__default.JSX.Element;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export { Breadcrumb, Breadcrumb as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var chunkLHVJKDMA_cjs = require('../chunk-LHVJKDMA.cjs');
|
|
6
|
+
require('../chunk-6TE5QEVE.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, 'Button', {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return chunkLHVJKDMA_cjs.a; }
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, 'default', {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return chunkLHVJKDMA_cjs.b; }
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=out.js.map
|
|
19
|
+
//# sourceMappingURL=button.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { F as FP } from '../ui-9a6f9f8d.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
type ButtonProps = Partial<React__default.ComponentProps<typeof FP>> & {
|
|
5
|
+
/**
|
|
6
|
+
* The button type
|
|
7
|
+
* Required - 'button' | 'submit' | 'reset'
|
|
8
|
+
*/
|
|
9
|
+
type: 'button' | 'submit' | 'reset';
|
|
10
|
+
};
|
|
11
|
+
declare const Button: {
|
|
12
|
+
({ type, children, styles, disabled, classes, onPointerDown, onPointerOver, onPointerLeave, onClick, ...props }: ButtonProps): React__default.JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { Button, ButtonProps, Button as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { F as FP } from '../ui-9a6f9f8d.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
type ButtonProps = Partial<React__default.ComponentProps<typeof FP>> & {
|
|
5
|
+
/**
|
|
6
|
+
* The button type
|
|
7
|
+
* Required - 'button' | 'submit' | 'reset'
|
|
8
|
+
*/
|
|
9
|
+
type: 'button' | 'submit' | 'reset';
|
|
10
|
+
};
|
|
11
|
+
declare const Button: {
|
|
12
|
+
({ type, children, styles, disabled, classes, onPointerDown, onPointerOver, onPointerLeave, onClick, ...props }: ButtonProps): React__default.JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { Button, ButtonProps, Button as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var chunkBV5CLH44_cjs = require('../chunk-BV5CLH44.cjs');
|
|
6
|
+
require('../chunk-6TE5QEVE.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, 'Card', {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return chunkBV5CLH44_cjs.d; }
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, 'Content', {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return chunkBV5CLH44_cjs.b; }
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, 'Footer', {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return chunkBV5CLH44_cjs.c; }
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(exports, 'Title', {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () { return chunkBV5CLH44_cjs.a; }
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, 'default', {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () { return chunkBV5CLH44_cjs.e; }
|
|
29
|
+
});
|
|
30
|
+
//# sourceMappingURL=out.js.map
|
|
31
|
+
//# sourceMappingURL=card.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { F as FP } from '../ui-9a6f9f8d.js';
|
|
3
|
+
|
|
4
|
+
type CardProps = {
|
|
5
|
+
elm?: 'div' | 'aside' | 'section' | 'article';
|
|
6
|
+
title?: React__default.ReactNode;
|
|
7
|
+
footer?: React__default.ReactNode;
|
|
8
|
+
} & React__default.ComponentProps<typeof FP>;
|
|
9
|
+
declare const Title: {
|
|
10
|
+
({ children, className, styles, as, ...props }: React__default.PropsWithChildren<{
|
|
11
|
+
className?: string | undefined;
|
|
12
|
+
styles?: React__default.CSSProperties | undefined;
|
|
13
|
+
as?: React__default.ElementType<any> | undefined;
|
|
14
|
+
}>): React__default.JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
declare const Content: {
|
|
18
|
+
({ children, className, styles, ...props }: React__default.PropsWithChildren<{
|
|
19
|
+
className?: string | undefined;
|
|
20
|
+
styles?: React__default.CSSProperties | undefined;
|
|
21
|
+
}>): React__default.JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
declare const Footer: {
|
|
25
|
+
({ children, className, styles, ...props }: React__default.PropsWithChildren<{
|
|
26
|
+
className?: string | undefined;
|
|
27
|
+
styles?: React__default.CSSProperties | undefined;
|
|
28
|
+
}>): React__default.JSX.Element;
|
|
29
|
+
displayName: string;
|
|
30
|
+
};
|
|
31
|
+
declare const Card: {
|
|
32
|
+
({ elm, styles, children, classes, id, ...props }: CardProps): React__default.JSX.Element;
|
|
33
|
+
displayName: string;
|
|
34
|
+
Title: {
|
|
35
|
+
({ children, className, styles, as, ...props }: React__default.PropsWithChildren<{
|
|
36
|
+
className?: string | undefined;
|
|
37
|
+
styles?: React__default.CSSProperties | undefined;
|
|
38
|
+
as?: React__default.ElementType<any> | undefined;
|
|
39
|
+
}>): React__default.JSX.Element;
|
|
40
|
+
displayName: string;
|
|
41
|
+
};
|
|
42
|
+
Content: {
|
|
43
|
+
({ children, className, styles, ...props }: React__default.PropsWithChildren<{
|
|
44
|
+
className?: string | undefined;
|
|
45
|
+
styles?: React__default.CSSProperties | undefined;
|
|
46
|
+
}>): React__default.JSX.Element;
|
|
47
|
+
displayName: string;
|
|
48
|
+
};
|
|
49
|
+
Footer: {
|
|
50
|
+
({ children, className, styles, ...props }: React__default.PropsWithChildren<{
|
|
51
|
+
className?: string | undefined;
|
|
52
|
+
styles?: React__default.CSSProperties | undefined;
|
|
53
|
+
}>): React__default.JSX.Element;
|
|
54
|
+
displayName: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export { Card, CardProps, Content, Footer, Title, Card as default };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { F as FP } from '../ui-9a6f9f8d.js';
|
|
3
|
+
|
|
4
|
+
type CardProps = {
|
|
5
|
+
elm?: 'div' | 'aside' | 'section' | 'article';
|
|
6
|
+
title?: React__default.ReactNode;
|
|
7
|
+
footer?: React__default.ReactNode;
|
|
8
|
+
} & React__default.ComponentProps<typeof FP>;
|
|
9
|
+
declare const Title: {
|
|
10
|
+
({ children, className, styles, as, ...props }: React__default.PropsWithChildren<{
|
|
11
|
+
className?: string | undefined;
|
|
12
|
+
styles?: React__default.CSSProperties | undefined;
|
|
13
|
+
as?: React__default.ElementType<any> | undefined;
|
|
14
|
+
}>): React__default.JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
declare const Content: {
|
|
18
|
+
({ children, className, styles, ...props }: React__default.PropsWithChildren<{
|
|
19
|
+
className?: string | undefined;
|
|
20
|
+
styles?: React__default.CSSProperties | undefined;
|
|
21
|
+
}>): React__default.JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
declare const Footer: {
|
|
25
|
+
({ children, className, styles, ...props }: React__default.PropsWithChildren<{
|
|
26
|
+
className?: string | undefined;
|
|
27
|
+
styles?: React__default.CSSProperties | undefined;
|
|
28
|
+
}>): React__default.JSX.Element;
|
|
29
|
+
displayName: string;
|
|
30
|
+
};
|
|
31
|
+
declare const Card: {
|
|
32
|
+
({ elm, styles, children, classes, id, ...props }: CardProps): React__default.JSX.Element;
|
|
33
|
+
displayName: string;
|
|
34
|
+
Title: {
|
|
35
|
+
({ children, className, styles, as, ...props }: React__default.PropsWithChildren<{
|
|
36
|
+
className?: string | undefined;
|
|
37
|
+
styles?: React__default.CSSProperties | undefined;
|
|
38
|
+
as?: React__default.ElementType<any> | undefined;
|
|
39
|
+
}>): React__default.JSX.Element;
|
|
40
|
+
displayName: string;
|
|
41
|
+
};
|
|
42
|
+
Content: {
|
|
43
|
+
({ children, className, styles, ...props }: React__default.PropsWithChildren<{
|
|
44
|
+
className?: string | undefined;
|
|
45
|
+
styles?: React__default.CSSProperties | undefined;
|
|
46
|
+
}>): React__default.JSX.Element;
|
|
47
|
+
displayName: string;
|
|
48
|
+
};
|
|
49
|
+
Footer: {
|
|
50
|
+
({ children, className, styles, ...props }: React__default.PropsWithChildren<{
|
|
51
|
+
className?: string | undefined;
|
|
52
|
+
styles?: React__default.CSSProperties | undefined;
|
|
53
|
+
}>): React__default.JSX.Element;
|
|
54
|
+
displayName: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export { Card, CardProps, Content, Footer, Title, Card as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
details{--details-border: 0.0625rem solid #dfdfdf;--details-direction: column;--details-display: flex;--details-gap: 0rem;--details-h: max-content;--details-justify: flex-start;--details-px: 1.5rem;--details-py: 1rem;--details-radius: 0;--details-w: 100%;--max-h-closed: 6.25rem;--max-h-open: 50rem;--summary-align: center;--summary-cursor: pointer;--summary-display: flex;--summary-gap: 0.5rem;--summary-justify: flex-start;--summary-transitions: all 0.75s ease-in-out;interpolate-size:allow-keywords;display:var(--details-display);flex-direction:var(--details-direction);justify-content:var(--details-justify);gap:var(--details-gap);width:var(--details-w);border:var(--details-border);border-left:none;border-right:none;transition:var(--summary-transitions);max-height:var(--max-h-closed);overflow:clip}details+details{border-radius:0;border-top:none}details:first-of-type{border-radius:var(--details-radius) var(--details-radius) 0 0}details:last-of-type{border-radius:0 0 var(--details-radius) var(--details-radius)}details:only-of-type{border-radius:var(--details-radius)}details::marker{content:none}details summary{display:var(--summary-display);justify-content:var(--summary-justify);align-items:var(--summary-align);padding-inline:var(--summary-px, var(--details-px));padding-block:var(--summary-py, var(--details-py));gap:var(--summary-gap);list-style:none;border-top-left-radius:var(--details-radius);border-top-right-radius:var(--details-radius);transition:var(--summary-transitions)}details summary::-webkit-details-marker{display:none}details summary:focus-within{outline:none;border-bottom:solid 2px currentColor;background-color:#f5f5f5}details summary:hover{cursor:var(--summary-cursor)}details summary>section{width:var(--details-w)}details .list-styles summary{border-left:none;border-right:none}details>section{padding-inline:var(--details-px);padding-block:var(--details-py);margin-block-start:0;border:1px rgba(0,0,0,0) solid}details[open]{max-height:max-content;transition:var(--summary-transitions)}details[open]>summary{border-bottom:var(--details-border)}details[open]>section{max-height:var(--max-h-open)}/*# sourceMappingURL=details.css.map */
|
|
1
|
+
details{--details-border: 0.0625rem solid #dfdfdf;--details-direction: column;--details-display: flex;--details-gap: 0rem;--details-h: max-content;--details-justify: flex-start;--details-px: 1.5rem;--details-py: 1rem;--details-radius: 0;--details-w: 100%;--max-h-closed: 6.25rem;--max-h-open: 50rem;--summary-align: center;--summary-cursor: pointer;--summary-display: flex;--summary-gap: 0.5rem;--summary-justify: flex-start;--summary-transitions: all 0.75s ease-in-out;interpolate-size:allow-keywords;display:var(--details-display);flex-direction:var(--details-direction);justify-content:var(--details-justify);gap:var(--details-gap);width:var(--details-w);border:var(--details-border);border-left:none;border-right:none;transition:var(--summary-transitions);max-height:var(--max-h-closed);overflow:clip}details+details{border-radius:0;border-top:none}details:first-of-type{border-radius:var(--details-radius) var(--details-radius) 0 0}details:last-of-type{border-radius:0 0 var(--details-radius) var(--details-radius)}details:only-of-type{border-radius:var(--details-radius)}details::marker{content:none}details summary{display:var(--summary-display);justify-content:var(--summary-justify);align-items:var(--summary-align);padding-inline:var(--summary-px, var(--details-px));padding-block:var(--summary-py, var(--details-py));gap:var(--summary-gap);list-style:none;border-top-left-radius:var(--details-radius);border-top-right-radius:var(--details-radius);transition:var(--summary-transitions)}@supports(transition-behavior: allow-discrete){@starting-style{details summary{border-bottom:none;transition:var(--summary-transitions)}}}details summary::-webkit-details-marker{display:none}details summary:focus-within{outline:none;border-bottom:solid 2px currentColor;background-color:#f5f5f5}details summary:hover{cursor:var(--summary-cursor)}details summary>section{width:var(--details-w)}details .list-styles summary{border-left:none;border-right:none}details>section{padding-inline:var(--details-px);padding-block:var(--details-py);margin-block-start:0;border:1px rgba(0,0,0,0) solid}details[open]{max-height:max-content;transition:var(--summary-transitions)}details[open]>summary{border-bottom:var(--details-border)}details[open]>section{max-height:var(--max-h-open)}/*# sourceMappingURL=details.css.map */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../../src/components/details/details.scss"],"names":[],"mappings":"AAAA,QACE,0CACA,4BACA,wBACA,oBACA,yBACA,8BACA,qBACA,mBACA,oBACA,kBACA,wBACA,oBACA,wBACA,0BACA,wBACA,sBACA,8BACA,6CAEA,gCACA,+BACA,wCACA,uCACA,uBACA,uBACA,6BACA,iBACA,kBACA,sCACA,+BACA,cACA,gBACE,gBACA,gBAGF,sBACE,8DAGF,qBACE,8DAIF,qBACE,oCAGF,gBACE,aAGF,gBACE,+BACA,uCACA,iCACA,oDACA,mDACA,uBACA,gBACA,6CACA,8CACA,sCAEA,wCACE,aAGF,6BACE,aACA,qCACA,yBAIF,sBACE,6BAEF,wBACE,uBAKF,6BACE,iBACA,kBAIJ,gBACE,iCACA,gCACA,qBACA,+BAGF,cACE,uBACA,sCACA,sBACE,oCAEF,sBACE","file":"details.css"}
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../src/components/details/details.scss"],"names":[],"mappings":"AAAA,QACE,0CACA,4BACA,wBACA,oBACA,yBACA,8BACA,qBACA,mBACA,oBACA,kBACA,wBACA,oBACA,wBACA,0BACA,wBACA,sBACA,8BACA,6CAEA,gCACA,+BACA,wCACA,uCACA,uBACA,uBACA,6BACA,iBACA,kBACA,sCACA,+BACA,cACA,gBACE,gBACA,gBAGF,sBACE,8DAGF,qBACE,8DAIF,qBACE,oCAGF,gBACE,aAGF,gBACE,+BACA,uCACA,iCACA,oDACA,mDACA,uBACA,gBACA,6CACA,8CACA,sCAEA,+CACE,gBAbJ,gBAcM,mBACA,wCAIJ,wCACE,aAGF,6BACE,aACA,qCACA,yBAIF,sBACE,6BAEF,wBACE,uBAKF,6BACE,iBACA,kBAIJ,gBACE,iCACA,gCACA,qBACA,+BAGF,cACE,uBACA,sCACA,sBACE,oCAEF,sBACE","file":"details.css"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
details{--details-border: 0.0625rem solid #dfdfdf;--details-direction: column;--details-display: flex;--details-gap: 0rem;--details-h: max-content;--details-justify: flex-start;--details-px: 1.5rem;--details-py: 1rem;--details-radius: 0;--details-w: 100%;--max-h-closed: 6.25rem;--max-h-open: 50rem;--summary-align: center;--summary-cursor: pointer;--summary-display: flex;--summary-gap: 0.5rem;--summary-justify: flex-start;--summary-transitions: all 0.75s ease-in-out;interpolate-size:allow-keywords;display:var(--details-display);flex-direction:var(--details-direction);justify-content:var(--details-justify);gap:var(--details-gap);width:var(--details-w);border:var(--details-border);border-left:none;border-right:none;transition:var(--summary-transitions);max-height:var(--max-h-closed);overflow:clip}details+details{border-radius:0;border-top:none}details:first-of-type{border-radius:var(--details-radius) var(--details-radius) 0 0}details:last-of-type{border-radius:0 0 var(--details-radius) var(--details-radius)}details:only-of-type{border-radius:var(--details-radius)}details::marker{content:none}details summary{display:var(--summary-display);justify-content:var(--summary-justify);align-items:var(--summary-align);padding-inline:var(--summary-px, var(--details-px));padding-block:var(--summary-py, var(--details-py));gap:var(--summary-gap);list-style:none;border-top-left-radius:var(--details-radius);border-top-right-radius:var(--details-radius);transition:var(--summary-transitions)}details summary::-webkit-details-marker{display:none}details summary:focus-within{outline:none;border-bottom:solid 2px currentColor;background-color:#f5f5f5}details summary:hover{cursor:var(--summary-cursor)}details summary>section{width:var(--details-w)}details .list-styles summary{border-left:none;border-right:none}details>section{padding-inline:var(--details-px);padding-block:var(--details-py);margin-block-start:0;border:1px rgba(0,0,0,0) solid}details[open]{max-height:-moz-max-content;max-height:max-content;transition:var(--summary-transitions)}details[open]>summary{border-bottom:var(--details-border)}details[open]>section{max-height:var(--max-h-open)}
|
|
1
|
+
details{--details-border: 0.0625rem solid #dfdfdf;--details-direction: column;--details-display: flex;--details-gap: 0rem;--details-h: max-content;--details-justify: flex-start;--details-px: 1.5rem;--details-py: 1rem;--details-radius: 0;--details-w: 100%;--max-h-closed: 6.25rem;--max-h-open: 50rem;--summary-align: center;--summary-cursor: pointer;--summary-display: flex;--summary-gap: 0.5rem;--summary-justify: flex-start;--summary-transitions: all 0.75s ease-in-out;interpolate-size:allow-keywords;display:var(--details-display);flex-direction:var(--details-direction);justify-content:var(--details-justify);gap:var(--details-gap);width:var(--details-w);border:var(--details-border);border-left:none;border-right:none;transition:var(--summary-transitions);max-height:var(--max-h-closed);overflow:clip}details+details{border-radius:0;border-top:none}details:first-of-type{border-radius:var(--details-radius) var(--details-radius) 0 0}details:last-of-type{border-radius:0 0 var(--details-radius) var(--details-radius)}details:only-of-type{border-radius:var(--details-radius)}details::marker{content:none}details summary{display:var(--summary-display);justify-content:var(--summary-justify);align-items:var(--summary-align);padding-inline:var(--summary-px, var(--details-px));padding-block:var(--summary-py, var(--details-py));gap:var(--summary-gap);list-style:none;border-top-left-radius:var(--details-radius);border-top-right-radius:var(--details-radius);transition:var(--summary-transitions)}@supports(transition-behavior: allow-discrete){@starting-style{details summary{border-bottom:none;transition:var(--summary-transitions)}}}details summary::-webkit-details-marker{display:none}details summary:focus-within{outline:none;border-bottom:solid 2px currentColor;background-color:#f5f5f5}details summary:hover{cursor:var(--summary-cursor)}details summary>section{width:var(--details-w)}details .list-styles summary{border-left:none;border-right:none}details>section{padding-inline:var(--details-px);padding-block:var(--details-py);margin-block-start:0;border:1px rgba(0,0,0,0) solid}details[open]{max-height:-moz-max-content;max-height:max-content;transition:var(--summary-transitions)}details[open]>summary{border-bottom:var(--details-border)}details[open]>section{max-height:var(--max-h-open)}
|
|
2
2
|
|
|
3
|
-
/*# sourceMappingURL=data:application/json;base64,
|
|
3
|
+
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL2RldGFpbHMvZGV0YWlscy5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLFFBQ0UseUNBQUEsQ0FDQSwyQkFBQSxDQUNBLHVCQUFBLENBQ0EsbUJBQUEsQ0FDQSx3QkFBQSxDQUNBLDZCQUFBLENBQ0Esb0JBQUEsQ0FDQSxrQkFBQSxDQUNBLG1CQUFBLENBQ0EsaUJBQUEsQ0FDQSx1QkFBQSxDQUNBLG1CQUFBLENBQ0EsdUJBQUEsQ0FDQSx5QkFBQSxDQUNBLHVCQUFBLENBQ0EscUJBQUEsQ0FDQSw2QkFBQSxDQUNBLDRDQUFBLENBRUEsK0JBQUEsQ0FDQSw4QkFBQSxDQUNBLHVDQUFBLENBQ0Esc0NBQUEsQ0FDQSxzQkFBQSxDQUNBLHNCQUFBLENBQ0EsNEJBQUEsQ0FDQSxnQkFBQSxDQUNBLGlCQUFBLENBQ0EscUNBQUEsQ0FDQSw4QkFBQSxDQUNBLGFBQUEsQ0FDQSxnQkFDRSxlQUFBLENBQ0EsZUFBQSxDQUdGLHNCQUNFLDZEQUFBLENBR0YscUJBQ0UsNkRBQUEsQ0FJRixxQkFDRSxtQ0FBQSxDQUdGLGdCQUNFLFlBQUEsQ0FHRixnQkFDRSw4QkFBQSxDQUNBLHNDQUFBLENBQ0EsZ0NBQUEsQ0FDQSxtREFBQSxDQUNBLGtEQUFBLENBQ0Esc0JBQUEsQ0FDQSxlQUFBLENBQ0EsNENBQUEsQ0FDQSw2Q0FBQSxDQUNBLHFDQUFBLENBRUEsK0NBQ0UsZ0JBYkosZ0JBY00sa0JBQUEsQ0FDQSxxQ0FBQSxDQUFBLENBQUEsQ0FJSix3Q0FDRSxZQUFBLENBR0YsNkJBQ0UsWUFBQSxDQUNBLG9DQUFBLENBQ0Esd0JBQUEsQ0FJRixzQkFDRSw0QkFBQSxDQUVGLHdCQUNFLHNCQUFBLENBS0YsNkJBQ0UsZ0JBQUEsQ0FDQSxpQkFBQSxDQUlKLGdCQUNFLGdDQUFBLENBQ0EsK0JBQUEsQ0FDQSxvQkFBQSxDQUNBLDhCQUFBLENBR0YsY0FDRSwyQkFBQSxDQUFBLHNCQUFBLENBQ0EscUNBQUEsQ0FDQSxzQkFDRSxtQ0FBQSxDQUVGLHNCQUNFLDRCQUFBIiwiZmlsZSI6ImRldGFpbHMubWluLmNzcyJ9 */
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var chunk7K76RW2A_cjs = require('../../chunk-7K76RW2A.cjs');
|
|
6
|
+
require('../../chunk-M5QL5TAE.cjs');
|
|
7
|
+
require('../../chunk-KKLTUJFB.cjs');
|
|
8
|
+
require('../../chunk-LHVJKDMA.cjs');
|
|
9
|
+
require('../../chunk-6TE5QEVE.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
Object.defineProperty(exports, 'Dialog', {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunk7K76RW2A_cjs.a; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, 'default', {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunk7K76RW2A_cjs.b; }
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=out.js.map
|
|
22
|
+
//# sourceMappingURL=dialog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React__default, { CSSProperties } from 'react';
|
|
2
|
+
import { F as FP } from '../../ui-9a6f9f8d.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Defines the props for the Dialog component.
|
|
6
|
+
*
|
|
7
|
+
* @property {boolean} [showDialog] - Determines whether the dialog should be shown.
|
|
8
|
+
* @property {boolean} [isAlertDialog] - Determines whether the dialog should be displayed as an alert dialog.
|
|
9
|
+
* @property {() => void} [onClose] - A callback function to be called when the dialog is closed.
|
|
10
|
+
* @property {string} dialogTitle - The title of the dialog.
|
|
11
|
+
* @property {string} [dialogLabel] - An optional label for the dialog.
|
|
12
|
+
* @property {React.ReactNode} children - The content to be displayed inside the dialog.
|
|
13
|
+
* @property {() => void | Promise<void>} [onConfirm] - A callback function to be called when the user confirms the dialog.
|
|
14
|
+
* @property {string} [confirmLabel] - The label for the confirm button.
|
|
15
|
+
* @property {string} [cancelLabel] - The label for the cancel button.
|
|
16
|
+
* @property {string} [className] - An optional CSS class name to be applied to the dialog.
|
|
17
|
+
* @property {CSSProperties} [styles] - Optional inline styles to be applied to the dialog.
|
|
18
|
+
*/
|
|
19
|
+
type DialogModalProps = React__default.ComponentProps<typeof FP> & React__default.ComponentProps<"dialog"> & {
|
|
20
|
+
dialogTitle: string;
|
|
21
|
+
dialogLabel?: string;
|
|
22
|
+
children: React__default.ReactNode;
|
|
23
|
+
showDialog?: boolean;
|
|
24
|
+
isAlertDialog?: boolean;
|
|
25
|
+
onClose?: () => void;
|
|
26
|
+
onConfirm?: () => void | Promise<void>;
|
|
27
|
+
confirmLabel?: string;
|
|
28
|
+
cancelLabel?: string;
|
|
29
|
+
className?: string;
|
|
30
|
+
hideFooter?: boolean;
|
|
31
|
+
styles?: CSSProperties;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Renders a dialog modal component with customizable content and behavior.
|
|
35
|
+
*
|
|
36
|
+
* @param showDialog - Determines whether the dialog should be shown.
|
|
37
|
+
* @param isAlertDialog - Determines whether the dialog should be displayed as an alert dialog.
|
|
38
|
+
* @param onClose - A callback function to be called when the dialog is closed.
|
|
39
|
+
* @param dialogTitle - The title of the dialog.
|
|
40
|
+
* @param dialogLabel - An optional label for the dialog.
|
|
41
|
+
* @param children - The content to be displayed inside the dialog.
|
|
42
|
+
* @param onConfirm - A callback function to be called when the user confirms the dialog.
|
|
43
|
+
* @param confirmLabel - The label for the confirm button.
|
|
44
|
+
* @param cancelLabel - The label for the cancel button.
|
|
45
|
+
* @param className - An optional CSS class name to be applied to the dialog.
|
|
46
|
+
* @param styles - Optional inline styles to be applied to the dialog.
|
|
47
|
+
*/
|
|
48
|
+
declare const Dialog: React__default.FC<DialogModalProps>;
|
|
49
|
+
declare const _default: React__default.NamedExoticComponent<DialogModalProps>;
|
|
50
|
+
|
|
51
|
+
export { Dialog, _default as default };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React__default, { CSSProperties } from 'react';
|
|
2
|
+
import { F as FP } from '../../ui-9a6f9f8d.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Defines the props for the Dialog component.
|
|
6
|
+
*
|
|
7
|
+
* @property {boolean} [showDialog] - Determines whether the dialog should be shown.
|
|
8
|
+
* @property {boolean} [isAlertDialog] - Determines whether the dialog should be displayed as an alert dialog.
|
|
9
|
+
* @property {() => void} [onClose] - A callback function to be called when the dialog is closed.
|
|
10
|
+
* @property {string} dialogTitle - The title of the dialog.
|
|
11
|
+
* @property {string} [dialogLabel] - An optional label for the dialog.
|
|
12
|
+
* @property {React.ReactNode} children - The content to be displayed inside the dialog.
|
|
13
|
+
* @property {() => void | Promise<void>} [onConfirm] - A callback function to be called when the user confirms the dialog.
|
|
14
|
+
* @property {string} [confirmLabel] - The label for the confirm button.
|
|
15
|
+
* @property {string} [cancelLabel] - The label for the cancel button.
|
|
16
|
+
* @property {string} [className] - An optional CSS class name to be applied to the dialog.
|
|
17
|
+
* @property {CSSProperties} [styles] - Optional inline styles to be applied to the dialog.
|
|
18
|
+
*/
|
|
19
|
+
type DialogModalProps = React__default.ComponentProps<typeof FP> & React__default.ComponentProps<"dialog"> & {
|
|
20
|
+
dialogTitle: string;
|
|
21
|
+
dialogLabel?: string;
|
|
22
|
+
children: React__default.ReactNode;
|
|
23
|
+
showDialog?: boolean;
|
|
24
|
+
isAlertDialog?: boolean;
|
|
25
|
+
onClose?: () => void;
|
|
26
|
+
onConfirm?: () => void | Promise<void>;
|
|
27
|
+
confirmLabel?: string;
|
|
28
|
+
cancelLabel?: string;
|
|
29
|
+
className?: string;
|
|
30
|
+
hideFooter?: boolean;
|
|
31
|
+
styles?: CSSProperties;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Renders a dialog modal component with customizable content and behavior.
|
|
35
|
+
*
|
|
36
|
+
* @param showDialog - Determines whether the dialog should be shown.
|
|
37
|
+
* @param isAlertDialog - Determines whether the dialog should be displayed as an alert dialog.
|
|
38
|
+
* @param onClose - A callback function to be called when the dialog is closed.
|
|
39
|
+
* @param dialogTitle - The title of the dialog.
|
|
40
|
+
* @param dialogLabel - An optional label for the dialog.
|
|
41
|
+
* @param children - The content to be displayed inside the dialog.
|
|
42
|
+
* @param onConfirm - A callback function to be called when the user confirms the dialog.
|
|
43
|
+
* @param confirmLabel - The label for the confirm button.
|
|
44
|
+
* @param cancelLabel - The label for the cancel button.
|
|
45
|
+
* @param className - An optional CSS class name to be applied to the dialog.
|
|
46
|
+
* @param styles - Optional inline styles to be applied to the dialog.
|
|
47
|
+
*/
|
|
48
|
+
declare const Dialog: React__default.FC<DialogModalProps>;
|
|
49
|
+
declare const _default: React__default.NamedExoticComponent<DialogModalProps>;
|
|
50
|
+
|
|
51
|
+
export { Dialog, _default as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { a as Dialog, b as default } from '../../chunk-SXVZSWX6.js';
|
|
2
|
+
import '../../chunk-HYBZBN4G.js';
|
|
3
|
+
import '../../chunk-O6QZBB6G.js';
|
|
4
|
+
import '../../chunk-QCMV4VQZ.js';
|
|
5
|
+
import '../../chunk-NE6YXTMC.js';
|
|
6
|
+
//# sourceMappingURL=out.js.map
|
|
7
|
+
//# sourceMappingURL=dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var chunk6BVXFW7U_cjs = require('../../chunk-6BVXFW7U.cjs');
|
|
6
|
+
require('../../chunk-6TE5QEVE.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, 'Field', {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return chunk6BVXFW7U_cjs.a; }
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, 'default', {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return chunk6BVXFW7U_cjs.b; }
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=out.js.map
|
|
19
|
+
//# sourceMappingURL=fields.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|