@solibo/solibo-ui 0.2.14 → 0.2.15
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/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +0 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -0
- package/dist/assets/index21.css +1 -0
- package/dist/assets/index22.css +1 -0
- package/dist/assets/index23.css +1 -0
- package/dist/assets/index24.css +1 -0
- package/dist/assets/index25.css +1 -0
- package/dist/assets/index26.css +1 -0
- package/dist/assets/index27.css +1 -0
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/styles.css +1 -0
- package/dist/components/accordion/index.cjs +1 -1
- package/dist/components/accordion/index.cjs.map +1 -1
- package/dist/components/accordion/index.js +14 -28
- package/dist/components/accordion/index.js.map +1 -1
- package/dist/components/aside/index.cjs +1 -1
- package/dist/components/aside/index.cjs.map +1 -1
- package/dist/components/aside/index.js +19 -17
- package/dist/components/aside/index.js.map +1 -1
- package/dist/components/banner/index.cjs +1 -1
- package/dist/components/banner/index.js +1 -1
- package/dist/components/branding/index.cjs +1 -1
- package/dist/components/branding/index.js +1 -1
- package/dist/components/button/index.cjs +1 -1
- package/dist/components/button/index.cjs.map +1 -1
- package/dist/components/button/index.js +49 -31
- package/dist/components/button/index.js.map +1 -1
- package/dist/components/card/index.cjs +1 -1
- package/dist/components/card/index.cjs.map +1 -1
- package/dist/components/card/index.js +34 -20
- package/dist/components/card/index.js.map +1 -1
- package/dist/components/checkbox/index.cjs +2 -0
- package/dist/components/checkbox/index.cjs.map +1 -0
- package/dist/components/checkbox/index.js +32 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/component/index.cjs +1 -1
- package/dist/components/component/index.js +9 -9
- package/dist/components/dialog/index.cjs +1 -1
- package/dist/components/dialog/index.cjs.map +1 -1
- package/dist/components/dialog/index.js +16 -17
- package/dist/components/dialog/index.js.map +1 -1
- package/dist/components/document/index.cjs +2 -0
- package/dist/components/document/index.cjs.map +1 -0
- package/dist/components/document/index.js +53 -0
- package/dist/components/document/index.js.map +1 -0
- package/dist/components/dropdown/index.cjs +1 -1
- package/dist/components/dropdown/index.cjs.map +1 -1
- package/dist/components/dropdown/index.js +20 -15
- package/dist/components/dropdown/index.js.map +1 -1
- package/dist/components/dropzone/index.cjs +2 -0
- package/dist/components/dropzone/index.cjs.map +1 -0
- package/dist/components/dropzone/index.js +63 -0
- package/dist/components/dropzone/index.js.map +1 -0
- package/dist/components/editor/index.cjs +2 -2
- package/dist/components/editor/index.js +2 -2
- package/dist/components/figure/index.cjs +1 -1
- package/dist/components/figure/index.js +3 -3
- package/dist/components/footer/index.cjs +2 -0
- package/dist/components/footer/index.cjs.map +1 -0
- package/dist/components/footer/index.js +15 -0
- package/dist/components/footer/index.js.map +1 -0
- package/dist/components/form/index.cjs +1 -1
- package/dist/components/form/index.cjs.map +1 -1
- package/dist/components/form/index.js +5 -5
- package/dist/components/form/index.js.map +1 -1
- package/dist/components/grid/index.cjs +2 -0
- package/dist/components/grid/index.cjs.map +1 -0
- package/dist/components/grid/index.js +140 -0
- package/dist/components/grid/index.js.map +1 -0
- package/dist/components/header/index.cjs +1 -1
- package/dist/components/header/index.cjs.map +1 -1
- package/dist/components/header/index.js +11 -10
- package/dist/components/header/index.js.map +1 -1
- package/dist/components/icon/index.cjs +1 -1
- package/dist/components/icon/index.cjs.map +1 -1
- package/dist/components/icon/index.js +53 -31
- package/dist/components/icon/index.js.map +1 -1
- package/dist/components/input/index.cjs +1 -1
- package/dist/components/input/index.cjs.map +1 -1
- package/dist/components/input/index.js +13 -13
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/layout/index.cjs +2 -0
- package/dist/components/layout/index.cjs.map +1 -0
- package/dist/components/layout/index.js +17 -0
- package/dist/components/layout/index.js.map +1 -0
- package/dist/components/link/index.cjs +1 -1
- package/dist/components/link/index.js +9 -9
- package/dist/components/list/index.cjs +1 -1
- package/dist/components/list/index.js +5 -5
- package/dist/components/loading/index.cjs +2 -0
- package/dist/components/loading/index.cjs.map +1 -0
- package/dist/components/loading/index.js +99 -0
- package/dist/components/loading/index.js.map +1 -0
- package/dist/components/nav/index.cjs +1 -1
- package/dist/components/nav/index.cjs.map +1 -1
- package/dist/components/nav/index.js +92 -24
- package/dist/components/nav/index.js.map +1 -1
- package/dist/components/picture/index.cjs +2 -0
- package/dist/components/picture/index.cjs.map +1 -0
- package/dist/components/picture/index.js +150 -0
- package/dist/components/picture/index.js.map +1 -0
- package/dist/components/toggle/index.cjs +2 -0
- package/dist/components/toggle/index.cjs.map +1 -0
- package/dist/components/toggle/index.js +39 -0
- package/dist/components/toggle/index.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +153 -21
- package/dist/index.js +40 -22
- package/dist/index.js.map +1 -1
- package/dist/styles.module-B_pXIacc.cjs +2 -0
- package/dist/styles.module-B_pXIacc.cjs.map +1 -0
- package/dist/styles.module-BhmNqlYd.js +7 -0
- package/dist/styles.module-BhmNqlYd.js.map +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/card/index.tsx"],"sourcesContent":["import { Header } from '@/components/header';\n\nimport styles from './styles.module.css';\n\nexport type CardProps = {\n
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/card/index.tsx"],"sourcesContent":["import cx from 'classix';\nimport type { DragEvent, ReactNode } from 'react';\n\nimport { Header } from '@/components/header';\n\nimport styles from './styles.module.css';\n\nexport type CardProps = {\n children?: ReactNode;\n contentHtml?: string;\n contentText?: string;\n draft?: boolean;\n headerText?: string;\n image?: ReactNode;\n onClick?: () => void;\n onDrop?: (event: DragEvent<HTMLElement>) => void;\n subHeaderText?: string;\n};\n\nexport const Card = ({\n children,\n contentHtml,\n contentText,\n draft = false,\n headerText,\n image,\n onClick,\n onDrop,\n subHeaderText,\n}: CardProps) => {\n return (\n <article\n className={cx(styles.card, draft && styles.draft)}\n onClick={onClick}\n onDrop={onDrop}\n >\n {image && <section className={styles.image}>{image}</section>}\n <section className={styles.content}>\n {headerText && (\n <Header\n size={2}\n label={headerText}\n subHeader={subHeaderText}\n />\n )}\n {contentText && <p>{contentText}</p>}\n {contentHtml && <div dangerouslySetInnerHTML={{ __html: contentHtml }}></div>}\n </section>\n {children}\n </article>\n );\n};\n"],"names":["Card","children","contentHtml","contentText","draft","headerText","image","onClick","onDrop","subHeaderText","jsxs","cx","styles","jsx","Header"],"mappings":"mTAmBaA,EAAO,CAAC,CACnB,SAAAC,EACA,YAAAC,EACA,YAAAC,EACA,MAAAC,EAAQ,GACR,WAAAC,EACA,MAAAC,EACA,QAAAC,EACA,OAAAC,EACA,cAAAC,CACF,IAEIC,EAAAA,KAAC,UAAA,CACC,UAAWC,EAAAA,EAAGC,EAAO,KAAMR,GAASQ,EAAO,KAAK,EAChD,QAAAL,EACA,OAAAC,EAEC,SAAA,CAAAF,GAASO,EAAAA,IAAC,UAAA,CAAQ,UAAWD,EAAO,MAAQ,SAAAN,EAAM,EACnDI,EAAAA,KAAC,UAAA,CAAQ,UAAWE,EAAO,QACxB,SAAA,CAAAP,GACCQ,EAAAA,IAACC,EAAAA,OAAA,CACC,KAAM,EACN,MAAOT,EACP,UAAWI,CAAA,CAAA,EAGdN,GAAeU,EAAAA,IAAC,IAAA,CAAG,SAAAV,CAAA,CAAY,EAC/BD,GAAeW,EAAAA,IAAC,MAAA,CAAI,wBAAyB,CAAE,OAAQX,EAAY,CAAG,CAAA,EACzE,EACCD,CAAA,CAAA,CAAA"}
|
|
@@ -1,32 +1,46 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { t as m } from "../../classix-DG18itHa.js";
|
|
3
|
+
import { Header as f } from "../header/index.js";
|
|
4
|
+
import '../../assets/index20.css';const h = "_card_jh3n1_1", j = "_image_jh3n1_14", p = "_content_jh3n1_26", g = "_draft_jh3n1_33", e = {
|
|
5
|
+
card: h,
|
|
6
|
+
image: j,
|
|
7
|
+
content: p,
|
|
8
|
+
draft: g
|
|
9
|
+
}, y = ({
|
|
10
|
+
children: o,
|
|
11
|
+
contentHtml: n,
|
|
12
|
+
contentText: a,
|
|
13
|
+
draft: d = !1,
|
|
14
|
+
headerText: s,
|
|
15
|
+
image: t,
|
|
16
|
+
onClick: i,
|
|
17
|
+
onDrop: _,
|
|
18
|
+
subHeaderText: l
|
|
19
|
+
}) => /* @__PURE__ */ c(
|
|
8
20
|
"article",
|
|
9
21
|
{
|
|
10
|
-
|
|
11
|
-
|
|
22
|
+
className: m(e.card, d && e.draft),
|
|
23
|
+
onClick: i,
|
|
24
|
+
onDrop: _,
|
|
12
25
|
children: [
|
|
13
|
-
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
|
|
16
|
-
|
|
26
|
+
t && /* @__PURE__ */ r("section", { className: e.image, children: t }),
|
|
27
|
+
/* @__PURE__ */ c("section", { className: e.content, children: [
|
|
28
|
+
s && /* @__PURE__ */ r(
|
|
29
|
+
f,
|
|
17
30
|
{
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
31
|
+
size: 2,
|
|
32
|
+
label: s,
|
|
33
|
+
subHeader: l
|
|
21
34
|
}
|
|
22
35
|
),
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
] })
|
|
36
|
+
a && /* @__PURE__ */ r("p", { children: a }),
|
|
37
|
+
n && /* @__PURE__ */ r("div", { dangerouslySetInnerHTML: { __html: n } })
|
|
38
|
+
] }),
|
|
39
|
+
o
|
|
26
40
|
]
|
|
27
41
|
}
|
|
28
42
|
);
|
|
29
43
|
export {
|
|
30
|
-
|
|
44
|
+
y as Card
|
|
31
45
|
};
|
|
32
46
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/card/index.tsx"],"sourcesContent":["import { Header } from '@/components/header';\n\nimport styles from './styles.module.css';\n\nexport type CardProps = {\n
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/card/index.tsx"],"sourcesContent":["import cx from 'classix';\nimport type { DragEvent, ReactNode } from 'react';\n\nimport { Header } from '@/components/header';\n\nimport styles from './styles.module.css';\n\nexport type CardProps = {\n children?: ReactNode;\n contentHtml?: string;\n contentText?: string;\n draft?: boolean;\n headerText?: string;\n image?: ReactNode;\n onClick?: () => void;\n onDrop?: (event: DragEvent<HTMLElement>) => void;\n subHeaderText?: string;\n};\n\nexport const Card = ({\n children,\n contentHtml,\n contentText,\n draft = false,\n headerText,\n image,\n onClick,\n onDrop,\n subHeaderText,\n}: CardProps) => {\n return (\n <article\n className={cx(styles.card, draft && styles.draft)}\n onClick={onClick}\n onDrop={onDrop}\n >\n {image && <section className={styles.image}>{image}</section>}\n <section className={styles.content}>\n {headerText && (\n <Header\n size={2}\n label={headerText}\n subHeader={subHeaderText}\n />\n )}\n {contentText && <p>{contentText}</p>}\n {contentHtml && <div dangerouslySetInnerHTML={{ __html: contentHtml }}></div>}\n </section>\n {children}\n </article>\n );\n};\n"],"names":["Card","children","contentHtml","contentText","draft","headerText","image","onClick","onDrop","subHeaderText","jsxs","cx","styles","jsx","Header"],"mappings":";;;;;;;;GAmBaA,IAAO,CAAC;AAAA,EACnB,UAAAC;AAAA,EACA,aAAAC;AAAA,EACA,aAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,YAAAC;AAAA,EACA,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,eAAAC;AACF,MAEI,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC,EAAGC,EAAO,MAAMR,KAASQ,EAAO,KAAK;AAAA,IAChD,SAAAL;AAAA,IACA,QAAAC;AAAA,IAEC,UAAA;AAAA,MAAAF,KAAS,gBAAAO,EAAC,WAAA,EAAQ,WAAWD,EAAO,OAAQ,UAAAN,GAAM;AAAA,MACnD,gBAAAI,EAAC,WAAA,EAAQ,WAAWE,EAAO,SACxB,UAAA;AAAA,QAAAP,KACC,gBAAAQ;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,MAAM;AAAA,YACN,OAAOT;AAAA,YACP,WAAWI;AAAA,UAAA;AAAA,QAAA;AAAA,QAGdN,KAAe,gBAAAU,EAAC,KAAA,EAAG,UAAAV,EAAA,CAAY;AAAA,QAC/BD,KAAe,gBAAAW,EAAC,OAAA,EAAI,yBAAyB,EAAE,QAAQX,IAAY,CAAG;AAAA,MAAA,GACzE;AAAA,MACCD;AAAA,IAAA;AAAA,EAAA;AAAA;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index19.css');const e=require("react/jsx-runtime"),i=require("../../classix-5H4IWnMA.cjs"),x=require("../../styles.module-B_pXIacc.cjs"),a="_checkbox_rz5v8_1",b={checkbox:a},h=({isChecked:s,isDefaultChecked:t,isDisabled:o,isLoading:c,label:l,onChange:n,...r})=>e.jsxs("label",{className:b.checkbox,children:[e.jsx("input",{checked:s,className:i.t(c&&x.loadingStyles.spinner),defaultChecked:t,disabled:o||c,onChange:n,type:"checkbox",...r}),e.jsx("span",{children:l})]});exports.Checkbox=h;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/checkbox/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport loadingStyles from '../loading/styles.module.css';\nimport styles from './styles.module.css';\n\nexport type CheckboxProps = React.InputHTMLAttributes<HTMLInputElement> & {\n isChecked?: boolean;\n isDefaultChecked?: boolean;\n isDisabled?: boolean;\n isLoading?: boolean;\n label?: string;\n onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;\n};\n\nexport const Checkbox = ({\n isChecked,\n isDefaultChecked,\n isDisabled,\n isLoading,\n label,\n onChange,\n ...props\n}: CheckboxProps) => {\n return (\n <label className={styles.checkbox}>\n <input\n checked={isChecked}\n className={cx(isLoading && loadingStyles.spinner)}\n defaultChecked={isDefaultChecked}\n disabled={isDisabled || isLoading}\n onChange={onChange}\n type='checkbox'\n {...props}\n />\n <span>{label}</span>\n </label>\n );\n};\n"],"names":["Checkbox","isChecked","isDefaultChecked","isDisabled","isLoading","label","onChange","props","jsxs","styles","jsx","cx","loadingStyles"],"mappings":"gPAcaA,EAAW,CAAC,CACvB,UAAAC,EACA,iBAAAC,EACA,WAAAC,EACA,UAAAC,EACA,MAAAC,EACA,SAAAC,EACA,GAAGC,CACL,IAEIC,EAAAA,KAAC,QAAA,CAAM,UAAWC,EAAO,SACvB,SAAA,CAAAC,EAAAA,IAAC,QAAA,CACC,QAAST,EACT,UAAWU,EAAAA,EAAGP,GAAaQ,EAAAA,cAAc,OAAO,EAChD,eAAgBV,EAChB,SAAUC,GAAcC,EACxB,SAAAE,EACA,KAAK,WACJ,GAAGC,CAAA,CAAA,EAENG,EAAAA,IAAC,QAAM,SAAAL,CAAA,CAAM,CAAA,EACf"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsxs as n, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { t as a } from "../../classix-DG18itHa.js";
|
|
3
|
+
import { l as x } from "../../styles.module-BhmNqlYd.js";
|
|
4
|
+
import '../../assets/index19.css';const b = "_checkbox_rz5v8_1", k = {
|
|
5
|
+
checkbox: b
|
|
6
|
+
}, i = ({
|
|
7
|
+
isChecked: o,
|
|
8
|
+
isDefaultChecked: s,
|
|
9
|
+
isDisabled: t,
|
|
10
|
+
isLoading: e,
|
|
11
|
+
label: r,
|
|
12
|
+
onChange: l,
|
|
13
|
+
...h
|
|
14
|
+
}) => /* @__PURE__ */ n("label", { className: k.checkbox, children: [
|
|
15
|
+
/* @__PURE__ */ c(
|
|
16
|
+
"input",
|
|
17
|
+
{
|
|
18
|
+
checked: o,
|
|
19
|
+
className: a(e && x.spinner),
|
|
20
|
+
defaultChecked: s,
|
|
21
|
+
disabled: t || e,
|
|
22
|
+
onChange: l,
|
|
23
|
+
type: "checkbox",
|
|
24
|
+
...h
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ c("span", { children: r })
|
|
28
|
+
] });
|
|
29
|
+
export {
|
|
30
|
+
i as Checkbox
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/checkbox/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport loadingStyles from '../loading/styles.module.css';\nimport styles from './styles.module.css';\n\nexport type CheckboxProps = React.InputHTMLAttributes<HTMLInputElement> & {\n isChecked?: boolean;\n isDefaultChecked?: boolean;\n isDisabled?: boolean;\n isLoading?: boolean;\n label?: string;\n onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;\n};\n\nexport const Checkbox = ({\n isChecked,\n isDefaultChecked,\n isDisabled,\n isLoading,\n label,\n onChange,\n ...props\n}: CheckboxProps) => {\n return (\n <label className={styles.checkbox}>\n <input\n checked={isChecked}\n className={cx(isLoading && loadingStyles.spinner)}\n defaultChecked={isDefaultChecked}\n disabled={isDisabled || isLoading}\n onChange={onChange}\n type='checkbox'\n {...props}\n />\n <span>{label}</span>\n </label>\n );\n};\n"],"names":["Checkbox","isChecked","isDefaultChecked","isDisabled","isLoading","label","onChange","props","jsxs","styles","jsx","cx","loadingStyles"],"mappings":";;;;;GAcaA,IAAW,CAAC;AAAA,EACvB,WAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,WAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MAEI,gBAAAC,EAAC,SAAA,EAAM,WAAWC,EAAO,UACvB,UAAA;AAAA,EAAA,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,SAAST;AAAA,MACT,WAAWU,EAAGP,KAAaQ,EAAc,OAAO;AAAA,MAChD,gBAAgBV;AAAA,MAChB,UAAUC,KAAcC;AAAA,MACxB,UAAAE;AAAA,MACA,MAAK;AAAA,MACJ,GAAGC;AAAA,IAAA;AAAA,EAAA;AAAA,EAEN,gBAAAG,EAAC,UAAM,UAAAL,EAAA,CAAM;AAAA,GACf;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index18.css');const e=require("react/jsx-runtime"),n=require("../icon/index.cjs"),i="_component_l8zgx_1",t={component:i},s=({...o})=>e.jsx("div",{className:t.component,...o,children:e.jsxs("article",{children:[e.jsx("h1",{children:"Hello world"}),e.jsxs("p",{children:["Lorem ipsum dolor sit amet consectetur adipisicing elit. Ad doloribus odio, aperiam enim provident voluptates, eos illum, error nihil amet iste necessitatibus ab unde accusantium in. ",e.jsx("b",{children:"Explicabo quod eius numquam?"})]}),e.jsx("a",{href:"/?path=/docs/introduction--docs",children:e.jsx(n.Icon,{name:"home",variant:"dialog"})}),e.jsx("p",{children:"Feel free to copy this folder to have a bare minimum component."})]})});exports.Component=s;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as o, jsxs as e } from "react/jsx-runtime";
|
|
2
2
|
import { Icon as n } from "../icon/index.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index18.css';const t = "_component_l8zgx_1", r = {
|
|
4
4
|
component: t
|
|
5
|
-
}, s = ({ ...i }) => /* @__PURE__ */
|
|
5
|
+
}, s = ({ ...i }) => /* @__PURE__ */ o(
|
|
6
6
|
"div",
|
|
7
7
|
{
|
|
8
8
|
className: r.component,
|
|
9
9
|
...i,
|
|
10
|
-
children: /* @__PURE__ */
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */
|
|
10
|
+
children: /* @__PURE__ */ e("article", { children: [
|
|
11
|
+
/* @__PURE__ */ o("h1", { children: "Hello world" }),
|
|
12
|
+
/* @__PURE__ */ e("p", { children: [
|
|
13
13
|
"Lorem ipsum dolor sit amet consectetur adipisicing elit. Ad doloribus odio, aperiam enim provident voluptates, eos illum, error nihil amet iste necessitatibus ab unde accusantium in. ",
|
|
14
|
-
/* @__PURE__ */
|
|
14
|
+
/* @__PURE__ */ o("b", { children: "Explicabo quod eius numquam?" })
|
|
15
15
|
] }),
|
|
16
|
-
/* @__PURE__ */
|
|
16
|
+
/* @__PURE__ */ o("a", { href: "/?path=/docs/introduction--docs", children: /* @__PURE__ */ o(
|
|
17
17
|
n,
|
|
18
18
|
{
|
|
19
19
|
name: "home",
|
|
20
20
|
variant: "dialog"
|
|
21
21
|
}
|
|
22
22
|
) }),
|
|
23
|
-
/* @__PURE__ */
|
|
23
|
+
/* @__PURE__ */ o("p", { children: "Feel free to copy this folder to have a bare minimum component." })
|
|
24
24
|
] })
|
|
25
25
|
}
|
|
26
26
|
);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index17.css');const t=require("react/jsx-runtime"),s=require("../button/index.cjs"),c="_dialog_fcarp_1",i="_wrapper_fcarp_22",d="_dialogButtons_fcarp_46",u="_closeButton_fcarp_53",o={dialog:c,wrapper:i,dialogButtons:d,closeButton:u},p=({button:a,children:e,message:n,title:r,...l})=>t.jsx("div",{className:o.wrapper,children:t.jsx("dialog",{className:o.dialog,...l,children:e||t.jsxs(t.Fragment,{children:[t.jsx(s.Button,{variant:"secondary",icon:"x",className:o.closeButton}),t.jsx("h2",{children:r}),t.jsx("p",{children:n}),t.jsxs("form",{method:"dialog",className:o.dialogButtons,children:[t.jsx(s.Button,{label:a,variant:"secondary"}),t.jsx(s.Button,{label:a,type:"submit",variant:"primary"})]})]})})});exports.Dialog=p;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/dialog/index.tsx"],"sourcesContent":["import { Button } from '../button';\nimport styles from './styles.module.css';\n\nexport type DialogProps = React.DialogHTMLAttributes<HTMLDialogElement> & {\n button?: string;\n children?: React.ReactNode;\n message?: string;\n title?: string;\n};\n\nexport const Dialog = ({\n button,\n children,\n message,\n title,\n\n ...props\n}: DialogProps) => {\n return (\n <div className={styles.wrapper}>\n <dialog\n className={styles.dialog}\n {...props}\n >\n {children ? (\n children\n ) : (\n <>\n <Button\n variant='secondary'\n
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/dialog/index.tsx"],"sourcesContent":["import { Button } from '../button';\nimport styles from './styles.module.css';\n\nexport type DialogProps = React.DialogHTMLAttributes<HTMLDialogElement> & {\n button?: string;\n children?: React.ReactNode;\n message?: string;\n title?: string;\n};\n\nexport const Dialog = ({\n button,\n children,\n message,\n title,\n\n ...props\n}: DialogProps) => {\n return (\n <div className={styles.wrapper}>\n <dialog\n className={styles.dialog}\n {...props}\n >\n {children ? (\n children\n ) : (\n <>\n <Button\n variant='secondary'\n icon='x'\n className={styles.closeButton}\n />\n <h2>{title}</h2>\n <p>{message}</p>\n <form\n method='dialog'\n className={styles.dialogButtons}\n >\n <Button\n label={button}\n variant='secondary'\n />\n <Button\n label={button}\n type='submit'\n variant='primary'\n />\n </form>\n </>\n )}\n </dialog>\n </div>\n );\n};\n"],"names":["Dialog","button","children","message","title","props","jsx","styles","jsxs","Fragment","Button"],"mappings":"2SAUaA,EAAS,CAAC,CACrB,OAAAC,EACA,SAAAC,EACA,QAAAC,EACA,MAAAC,EAEA,GAAGC,CACL,IAEIC,EAAAA,IAAC,MAAA,CAAI,UAAWC,EAAO,QACrB,SAAAD,EAAAA,IAAC,SAAA,CACC,UAAWC,EAAO,OACjB,GAAGF,EAEH,SAAAH,GAGCM,EAAAA,KAAAC,EAAAA,SAAA,CACE,SAAA,CAAAH,EAAAA,IAACI,EAAAA,OAAA,CACC,QAAQ,YACR,KAAK,IACL,UAAWH,EAAO,WAAA,CAAA,EAEpBD,EAAAA,IAAC,MAAI,SAAAF,CAAA,CAAM,EACXE,EAAAA,IAAC,KAAG,SAAAH,CAAA,CAAQ,EACZK,EAAAA,KAAC,OAAA,CACC,OAAO,SACP,UAAWD,EAAO,cAElB,SAAA,CAAAD,EAAAA,IAACI,EAAAA,OAAA,CACC,MAAOT,EACP,QAAQ,WAAA,CAAA,EAEVK,EAAAA,IAACI,EAAAA,OAAA,CACC,MAAOT,EACP,KAAK,SACL,QAAQ,SAAA,CAAA,CACV,CAAA,CAAA,CACF,CAAA,CACF,CAAA,CAAA,EAGN"}
|
|
@@ -1,47 +1,46 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as a, jsxs as l, Fragment as i } from "react/jsx-runtime";
|
|
2
2
|
import { Button as t } from "../button/index.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index17.css';const d = "_dialog_fcarp_1", p = "_wrapper_fcarp_22", m = "_dialogButtons_fcarp_46", g = "_closeButton_fcarp_53", o = {
|
|
4
4
|
dialog: d,
|
|
5
5
|
wrapper: p,
|
|
6
6
|
dialogButtons: m,
|
|
7
7
|
closeButton: g
|
|
8
8
|
}, B = ({
|
|
9
9
|
button: r,
|
|
10
|
-
children:
|
|
11
|
-
message:
|
|
12
|
-
title:
|
|
10
|
+
children: s,
|
|
11
|
+
message: e,
|
|
12
|
+
title: n,
|
|
13
13
|
...c
|
|
14
|
-
}) => /* @__PURE__ */
|
|
14
|
+
}) => /* @__PURE__ */ a("div", { className: o.wrapper, children: /* @__PURE__ */ a(
|
|
15
15
|
"dialog",
|
|
16
16
|
{
|
|
17
|
-
className:
|
|
17
|
+
className: o.dialog,
|
|
18
18
|
...c,
|
|
19
|
-
children:
|
|
20
|
-
/* @__PURE__ */
|
|
19
|
+
children: s || /* @__PURE__ */ l(i, { children: [
|
|
20
|
+
/* @__PURE__ */ a(
|
|
21
21
|
t,
|
|
22
22
|
{
|
|
23
23
|
variant: "secondary",
|
|
24
|
-
iconOnly: !0,
|
|
25
24
|
icon: "x",
|
|
26
|
-
className:
|
|
25
|
+
className: o.closeButton
|
|
27
26
|
}
|
|
28
27
|
),
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ a("h2", { children: n }),
|
|
29
|
+
/* @__PURE__ */ a("p", { children: e }),
|
|
30
|
+
/* @__PURE__ */ l(
|
|
32
31
|
"form",
|
|
33
32
|
{
|
|
34
33
|
method: "dialog",
|
|
35
|
-
className:
|
|
34
|
+
className: o.dialogButtons,
|
|
36
35
|
children: [
|
|
37
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ a(
|
|
38
37
|
t,
|
|
39
38
|
{
|
|
40
39
|
label: r,
|
|
41
40
|
variant: "secondary"
|
|
42
41
|
}
|
|
43
42
|
),
|
|
44
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ a(
|
|
45
44
|
t,
|
|
46
45
|
{
|
|
47
46
|
label: r,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/dialog/index.tsx"],"sourcesContent":["import { Button } from '../button';\nimport styles from './styles.module.css';\n\nexport type DialogProps = React.DialogHTMLAttributes<HTMLDialogElement> & {\n button?: string;\n children?: React.ReactNode;\n message?: string;\n title?: string;\n};\n\nexport const Dialog = ({\n button,\n children,\n message,\n title,\n\n ...props\n}: DialogProps) => {\n return (\n <div className={styles.wrapper}>\n <dialog\n className={styles.dialog}\n {...props}\n >\n {children ? (\n children\n ) : (\n <>\n <Button\n variant='secondary'\n
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/dialog/index.tsx"],"sourcesContent":["import { Button } from '../button';\nimport styles from './styles.module.css';\n\nexport type DialogProps = React.DialogHTMLAttributes<HTMLDialogElement> & {\n button?: string;\n children?: React.ReactNode;\n message?: string;\n title?: string;\n};\n\nexport const Dialog = ({\n button,\n children,\n message,\n title,\n\n ...props\n}: DialogProps) => {\n return (\n <div className={styles.wrapper}>\n <dialog\n className={styles.dialog}\n {...props}\n >\n {children ? (\n children\n ) : (\n <>\n <Button\n variant='secondary'\n icon='x'\n className={styles.closeButton}\n />\n <h2>{title}</h2>\n <p>{message}</p>\n <form\n method='dialog'\n className={styles.dialogButtons}\n >\n <Button\n label={button}\n variant='secondary'\n />\n <Button\n label={button}\n type='submit'\n variant='primary'\n />\n </form>\n </>\n )}\n </dialog>\n </div>\n );\n};\n"],"names":["Dialog","button","children","message","title","props","jsx","styles","jsxs","Fragment","Button"],"mappings":";;;;;;;GAUaA,IAAS,CAAC;AAAA,EACrB,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,SAAAC;AAAA,EACA,OAAAC;AAAA,EAEA,GAAGC;AACL,MAEI,gBAAAC,EAAC,OAAA,EAAI,WAAWC,EAAO,SACrB,UAAA,gBAAAD;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC,EAAO;AAAA,IACjB,GAAGF;AAAA,IAEH,UAAAH,KAGC,gBAAAM,EAAAC,GAAA,EACE,UAAA;AAAA,MAAA,gBAAAH;AAAA,QAACI;AAAA,QAAA;AAAA,UACC,SAAQ;AAAA,UACR,MAAK;AAAA,UACL,WAAWH,EAAO;AAAA,QAAA;AAAA,MAAA;AAAA,MAEpB,gBAAAD,EAAC,QAAI,UAAAF,EAAA,CAAM;AAAA,MACX,gBAAAE,EAAC,OAAG,UAAAH,EAAA,CAAQ;AAAA,MACZ,gBAAAK;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,QAAO;AAAA,UACP,WAAWD,EAAO;AAAA,UAElB,UAAA;AAAA,YAAA,gBAAAD;AAAA,cAACI;AAAA,cAAA;AAAA,gBACC,OAAOT;AAAA,gBACP,SAAQ;AAAA,cAAA;AAAA,YAAA;AAAA,YAEV,gBAAAK;AAAA,cAACI;AAAA,cAAA;AAAA,gBACC,OAAOT;AAAA,gBACP,MAAK;AAAA,gBACL,SAAQ;AAAA,cAAA;AAAA,YAAA;AAAA,UACV;AAAA,QAAA;AAAA,MAAA;AAAA,IACF,EAAA,CACF;AAAA,EAAA;AAAA,GAGN;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index16.css');const e=require("react/jsx-runtime"),s=require("../button/index.cjs"),r=require("../header/index.cjs"),t=require("../icon/index.cjs"),m="_document_5rt2n_1",u={document:m},a=({name:o,onClick:c,onDelete:n})=>e.jsxs("article",{onClick:c,className:u.document,children:[e.jsxs("section",{children:[e.jsx(t.Icon,{name:"document",size:"medium"}),e.jsx(r.Header,{label:o,size:3})]}),e.jsx(s.Button,{variant:"minimal",onClick:n?i=>{i.stopPropagation(),n()}:void 0,"aria-label":n?"Delete document":"Open document",children:e.jsx(t.Icon,{name:n?"x":"toDocument",size:"medium",variant:n?"deletable":"clickable"})})]});exports.Document=a;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/document/index.tsx"],"sourcesContent":["import { Button } from '@/components/button';\nimport { Header } from '@/components/header';\nimport { Icon } from '@/components/icon';\n\nimport styles from './styles.module.css';\n\nexport type DocumentProps = {\n name: string;\n onClick?: () => void;\n onDelete?: () => void;\n};\n\nexport const Document = ({ name, onClick, onDelete }: DocumentProps) => {\n return (\n <article\n onClick={onClick}\n className={styles.document}\n >\n <section>\n <Icon\n name={'document'}\n size={'medium'}\n />\n <Header\n label={name}\n size={3}\n />\n </section>\n <Button\n variant={'minimal'}\n onClick={\n onDelete\n ? (e) => {\n e.stopPropagation();\n onDelete();\n }\n : undefined\n }\n aria-label={onDelete ? 'Delete document' : 'Open document'}\n >\n <Icon\n name={onDelete ? 'x' : 'toDocument'}\n size={'medium'}\n variant={onDelete ? 'deletable' : 'clickable'}\n />\n </Button>\n </article>\n );\n};\n"],"names":["Document","name","onClick","onDelete","jsxs","styles","jsx","Icon","Header","Button","e"],"mappings":"2PAYaA,EAAW,CAAC,CAAE,KAAAC,EAAM,QAAAC,EAAS,SAAAC,KAEtCC,EAAAA,KAAC,UAAA,CACC,QAAAF,EACA,UAAWG,EAAO,SAElB,SAAA,CAAAD,OAAC,UAAA,CACC,SAAA,CAAAE,EAAAA,IAACC,EAAAA,KAAA,CACC,KAAM,WACN,KAAM,QAAA,CAAA,EAERD,EAAAA,IAACE,EAAAA,OAAA,CACC,MAAOP,EACP,KAAM,CAAA,CAAA,CACR,EACF,EACAK,EAAAA,IAACG,EAAAA,OAAA,CACC,QAAS,UACT,QACEN,EACKO,GAAM,CACLA,EAAE,gBAAA,EACFP,EAAA,CACF,EACA,OAEN,aAAYA,EAAW,kBAAoB,gBAE3C,SAAAG,EAAAA,IAACC,EAAAA,KAAA,CACC,KAAMJ,EAAW,IAAM,aACvB,KAAM,SACN,QAASA,EAAW,YAAc,WAAA,CAAA,CACpC,CAAA,CACF,CAAA,CAAA"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsxs as o, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { Button as r } from "../button/index.js";
|
|
3
|
+
import { Header as a } from "../header/index.js";
|
|
4
|
+
import { Icon as e } from "../icon/index.js";
|
|
5
|
+
import '../../assets/index16.css';const d = "_document_5rt2n_1", s = {
|
|
6
|
+
document: d
|
|
7
|
+
}, f = ({ name: n, onClick: i, onDelete: t }) => /* @__PURE__ */ o(
|
|
8
|
+
"article",
|
|
9
|
+
{
|
|
10
|
+
onClick: i,
|
|
11
|
+
className: s.document,
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ o("section", { children: [
|
|
14
|
+
/* @__PURE__ */ m(
|
|
15
|
+
e,
|
|
16
|
+
{
|
|
17
|
+
name: "document",
|
|
18
|
+
size: "medium"
|
|
19
|
+
}
|
|
20
|
+
),
|
|
21
|
+
/* @__PURE__ */ m(
|
|
22
|
+
a,
|
|
23
|
+
{
|
|
24
|
+
label: n,
|
|
25
|
+
size: 3
|
|
26
|
+
}
|
|
27
|
+
)
|
|
28
|
+
] }),
|
|
29
|
+
/* @__PURE__ */ m(
|
|
30
|
+
r,
|
|
31
|
+
{
|
|
32
|
+
variant: "minimal",
|
|
33
|
+
onClick: t ? (c) => {
|
|
34
|
+
c.stopPropagation(), t();
|
|
35
|
+
} : void 0,
|
|
36
|
+
"aria-label": t ? "Delete document" : "Open document",
|
|
37
|
+
children: /* @__PURE__ */ m(
|
|
38
|
+
e,
|
|
39
|
+
{
|
|
40
|
+
name: t ? "x" : "toDocument",
|
|
41
|
+
size: "medium",
|
|
42
|
+
variant: t ? "deletable" : "clickable"
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
export {
|
|
51
|
+
f as Document
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/document/index.tsx"],"sourcesContent":["import { Button } from '@/components/button';\nimport { Header } from '@/components/header';\nimport { Icon } from '@/components/icon';\n\nimport styles from './styles.module.css';\n\nexport type DocumentProps = {\n name: string;\n onClick?: () => void;\n onDelete?: () => void;\n};\n\nexport const Document = ({ name, onClick, onDelete }: DocumentProps) => {\n return (\n <article\n onClick={onClick}\n className={styles.document}\n >\n <section>\n <Icon\n name={'document'}\n size={'medium'}\n />\n <Header\n label={name}\n size={3}\n />\n </section>\n <Button\n variant={'minimal'}\n onClick={\n onDelete\n ? (e) => {\n e.stopPropagation();\n onDelete();\n }\n : undefined\n }\n aria-label={onDelete ? 'Delete document' : 'Open document'}\n >\n <Icon\n name={onDelete ? 'x' : 'toDocument'}\n size={'medium'}\n variant={onDelete ? 'deletable' : 'clickable'}\n />\n </Button>\n </article>\n );\n};\n"],"names":["Document","name","onClick","onDelete","jsxs","styles","jsx","Icon","Header","Button","e"],"mappings":";;;;;;GAYaA,IAAW,CAAC,EAAE,MAAAC,GAAM,SAAAC,GAAS,UAAAC,QAEtC,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,SAAAF;AAAA,IACA,WAAWG,EAAO;AAAA,IAElB,UAAA;AAAA,MAAA,gBAAAD,EAAC,WAAA,EACC,UAAA;AAAA,QAAA,gBAAAE;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,MAAM;AAAA,YACN,MAAM;AAAA,UAAA;AAAA,QAAA;AAAA,QAER,gBAAAD;AAAA,UAACE;AAAA,UAAA;AAAA,YACC,OAAOP;AAAA,YACP,MAAM;AAAA,UAAA;AAAA,QAAA;AAAA,MACR,GACF;AAAA,MACA,gBAAAK;AAAA,QAACG;AAAA,QAAA;AAAA,UACC,SAAS;AAAA,UACT,SACEN,IACI,CAACO,MAAM;AACL,YAAAA,EAAE,gBAAA,GACFP,EAAA;AAAA,UACF,IACA;AAAA,UAEN,cAAYA,IAAW,oBAAoB;AAAA,UAE3C,UAAA,gBAAAG;AAAA,YAACC;AAAA,YAAA;AAAA,cACC,MAAMJ,IAAW,MAAM;AAAA,cACvB,MAAM;AAAA,cACN,SAASA,IAAW,cAAc;AAAA,YAAA;AAAA,UAAA;AAAA,QACpC;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAAA;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index15.css');const n=require("react/jsx-runtime"),c=require("../../classix-5H4IWnMA.cjs"),d="_dropdown_1nq87_1",a="_inline_1nq87_15",u="_label_1nq87_25",e={dropdown:d,inline:a,label:u},_=({children:t,inline:i,label:s,placeholder:o,...r})=>{const l=n.jsxs("select",{className:c.t(e.dropdown,i&&e.inline),...r,children:[o&&n.jsx("option",{value:"",hidden:!0,children:o}),t]});return s?n.jsxs("label",{className:e.label,children:[s,l]}):l};exports.Dropdown=_;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/dropdown/index.tsx"],"sourcesContent":["import styles from './styles.module.css';\n\nexport type DropdownProps = {\n children?: React.ReactNode;\n label?: string;\n placeholder?: string;\n};\n\nexport const Dropdown = ({ children, label, placeholder, ...props }: DropdownProps) => {\n
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/dropdown/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nexport type DropdownProps = React.SelectHTMLAttributes<HTMLSelectElement> & {\n children?: React.ReactNode;\n inline?: boolean;\n label?: string;\n placeholder?: string;\n};\n\nexport const Dropdown = ({ children, inline, label, placeholder, ...props }: DropdownProps) => {\n const selectElement = (\n <select\n className={cx(styles.dropdown, inline && styles.inline)}\n {...props}\n >\n {placeholder && (\n <option\n value={''}\n hidden\n >\n {placeholder}\n </option>\n )}\n {children}\n </select>\n );\n\n if (!label) {\n return selectElement;\n }\n\n return (\n <label className={styles.label}>\n {label}\n {selectElement}\n </label>\n );\n};\n"],"names":["Dropdown","children","inline","label","placeholder","props","selectElement","jsxs","cx","styles","jsx"],"mappings":"4PAWaA,EAAW,CAAC,CAAE,SAAAC,EAAU,OAAAC,EAAQ,MAAAC,EAAO,YAAAC,EAAa,GAAGC,KAA2B,CAC7F,MAAMC,EACJC,EAAAA,KAAC,SAAA,CACC,UAAWC,EAAAA,EAAGC,EAAO,SAAUP,GAAUO,EAAO,MAAM,EACrD,GAAGJ,EAEH,SAAA,CAAAD,GACCM,EAAAA,IAAC,SAAA,CACC,MAAO,GACP,OAAM,GAEL,SAAAN,CAAA,CAAA,EAGJH,CAAA,CAAA,CAAA,EAIL,OAAKE,EAKHI,EAAAA,KAAC,QAAA,CAAM,UAAWE,EAAO,MACtB,SAAA,CAAAN,EACAG,CAAA,EACH,EAPOA,CASX"}
|
|
@@ -1,29 +1,34 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsxs as t, jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { t as c } from "../../classix-DG18itHa.js";
|
|
3
|
+
import '../../assets/index15.css';const _ = "_dropdown_1nq87_1", a = "_inline_1nq87_15", p = "_label_1nq87_25", n = {
|
|
4
|
+
dropdown: _,
|
|
5
|
+
inline: a,
|
|
6
|
+
label: p
|
|
7
|
+
}, b = ({ children: r, inline: s, label: e, placeholder: o, ...i }) => {
|
|
8
|
+
const l = /* @__PURE__ */ t(
|
|
8
9
|
"select",
|
|
9
10
|
{
|
|
10
|
-
className:
|
|
11
|
-
...
|
|
11
|
+
className: c(n.dropdown, s && n.inline),
|
|
12
|
+
...i,
|
|
12
13
|
children: [
|
|
13
|
-
o && /* @__PURE__ */
|
|
14
|
+
o && /* @__PURE__ */ d(
|
|
14
15
|
"option",
|
|
15
16
|
{
|
|
16
|
-
|
|
17
|
+
value: "",
|
|
17
18
|
hidden: !0,
|
|
18
19
|
children: o
|
|
19
20
|
}
|
|
20
21
|
),
|
|
21
|
-
|
|
22
|
+
r
|
|
22
23
|
]
|
|
23
24
|
}
|
|
24
|
-
)
|
|
25
|
-
|
|
25
|
+
);
|
|
26
|
+
return e ? /* @__PURE__ */ t("label", { className: n.label, children: [
|
|
27
|
+
e,
|
|
28
|
+
l
|
|
29
|
+
] }) : l;
|
|
30
|
+
};
|
|
26
31
|
export {
|
|
27
|
-
|
|
32
|
+
b as Dropdown
|
|
28
33
|
};
|
|
29
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/dropdown/index.tsx"],"sourcesContent":["import styles from './styles.module.css';\n\nexport type DropdownProps = {\n children?: React.ReactNode;\n label?: string;\n placeholder?: string;\n};\n\nexport const Dropdown = ({ children, label, placeholder, ...props }: DropdownProps) => {\n
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/dropdown/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nexport type DropdownProps = React.SelectHTMLAttributes<HTMLSelectElement> & {\n children?: React.ReactNode;\n inline?: boolean;\n label?: string;\n placeholder?: string;\n};\n\nexport const Dropdown = ({ children, inline, label, placeholder, ...props }: DropdownProps) => {\n const selectElement = (\n <select\n className={cx(styles.dropdown, inline && styles.inline)}\n {...props}\n >\n {placeholder && (\n <option\n value={''}\n hidden\n >\n {placeholder}\n </option>\n )}\n {children}\n </select>\n );\n\n if (!label) {\n return selectElement;\n }\n\n return (\n <label className={styles.label}>\n {label}\n {selectElement}\n </label>\n );\n};\n"],"names":["Dropdown","children","inline","label","placeholder","props","selectElement","jsxs","cx","styles","jsx"],"mappings":";;;;;;GAWaA,IAAW,CAAC,EAAE,UAAAC,GAAU,QAAAC,GAAQ,OAAAC,GAAO,aAAAC,GAAa,GAAGC,QAA2B;AAC7F,QAAMC,IACJ,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAGC,EAAO,UAAUP,KAAUO,EAAO,MAAM;AAAA,MACrD,GAAGJ;AAAA,MAEH,UAAA;AAAA,QAAAD,KACC,gBAAAM;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,OAAO;AAAA,YACP,QAAM;AAAA,YAEL,UAAAN;AAAA,UAAA;AAAA,QAAA;AAAA,QAGJH;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIL,SAAKE,IAKH,gBAAAI,EAAC,SAAA,EAAM,WAAWE,EAAO,OACtB,UAAA;AAAA,IAAAN;AAAA,IACAG;AAAA,EAAA,GACH,IAPOA;AASX;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index14.css');const l=require("react/jsx-runtime"),T=require("../../classix-5H4IWnMA.cjs"),o=require("react"),_=require("../icon/index.cjs"),q="_dropzone_1cqsl_1",M="_highlight_1cqsl_41",z={dropzone:q,highlight:M},I=e=>{var d;const[f,y]=o.useState(!1),[F,v]=o.useState({empty:[],oversize:[],wrongType:[]}),[p,x]=o.useState([]),[D,a]=o.useState(!1),r=(t,i)=>s=>{s.preventDefault(),s.stopPropagation(),t(i)},c=r(a,!0),S=r(a,!1),g=t=>{if(!t)return;const i=Array.from(t),s=i.filter(n=>n.size===0),u=e.maxFileSizeMB?i.filter(n=>n.size>e.maxFileSizeMB*1024*1024):[],m=e.mimeTypes?i.filter(n=>{var h;return!((h=e.mimeTypes)!=null&&h.includes(n.type))}):[],j=i.filter(n=>n.size>0&&(e.maxFileSizeMB?n.size<=e.maxFileSizeMB*1024*1024:!0)&&(e.mimeTypes?e.mimeTypes.includes(n.type):!0));x(j),s.length>0||u.length>0||m.length>0?(v({empty:s,oversize:u,wrongType:m}),y(!0),console.log("validFiles",p),console.log("invalidFiles",F)):e.onUpload(t),a(!1)};return l.jsxs("div",{className:T.t(z.dropzone,D?z.highlight:""),onDragEnter:c,onDragLeave:S,onDragOver:c,onDrop:t=>{var i;t.preventDefault(),g((i=t.dataTransfer)==null?void 0:i.files)},children:[f&&l.jsx(l.Fragment,{}),l.jsxs("label",{htmlFor:e.inputId??"file-upload",children:[l.jsx(_.Icon,{name:"upload",size:"large"}),l.jsx("span",{children:e.label}),l.jsx("input",{type:"file",multiple:e.isMultiple,accept:(d=e.mimeTypes)==null?void 0:d.join(", "),id:e.inputId??"file-upload",onChange:t=>g(t.target.files)})]})]})};exports.Dropzone=I;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/dropzone/index.tsx"],"sourcesContent":["import cx from 'classix';\nimport { useState } from 'react';\n\nimport { Icon } from '@/components/icon';\n\nimport styles from './styles.module.css';\n\nexport type DropzoneProps = {\n allowDirectoryUpload?: boolean;\n inputId?: string;\n isMultiple?: boolean;\n label?: string;\n maxFileSizeMB?: number;\n mimeTypes?: string[];\n onUpload: (uploadContent: File[] | FileList) => void;\n};\n\nexport const Dropzone = (props: DropzoneProps) => {\n const [showWarning, setShowWarning] = useState(false);\n const [invalidFiles, setInvalidFiles] = useState<{\n empty: File[];\n oversize: File[];\n wrongType: File[];\n }>({ empty: [], oversize: [], wrongType: [] });\n const [validFiles, setValidFiles] = useState<File[]>([]);\n const [dragging, setDragging] = useState(false);\n\n const makeDragHandler = (set: (v: boolean) => void, value: boolean) => (e: React.DragEvent) => {\n e.preventDefault();\n e.stopPropagation();\n set(value);\n };\n\n const onDragIn = makeDragHandler(setDragging, true);\n const onDragOut = makeDragHandler(setDragging, false);\n\n const handleUpload = (files: FileList | null) => {\n if (!files) {\n return;\n }\n\n const fileList = Array.from(files);\n\n const emptyFiles = fileList.filter((file) => file.size === 0);\n const oversizeFiles = props.maxFileSizeMB\n ? fileList.filter((file) => file.size > props.maxFileSizeMB! * 1024 * 1024)\n : [];\n const unsupportedFiles = props.mimeTypes\n ? fileList.filter((file) => !props.mimeTypes?.includes(file.type))\n : [];\n const validatedFiles = fileList.filter(\n (file) =>\n file.size > 0 &&\n (props.maxFileSizeMB ? file.size <= props.maxFileSizeMB * 1024 * 1024 : true) &&\n (props.mimeTypes ? props.mimeTypes.includes(file.type) : true)\n );\n\n setValidFiles(validatedFiles);\n\n if (emptyFiles.length > 0 || oversizeFiles.length > 0 || unsupportedFiles.length > 0) {\n setInvalidFiles({ empty: emptyFiles, oversize: oversizeFiles, wrongType: unsupportedFiles });\n setShowWarning(true);\n console.log('validFiles', validFiles);\n console.log('invalidFiles', invalidFiles);\n } else {\n props.onUpload(files);\n }\n\n setDragging(false);\n };\n\n return (\n <div\n className={cx(styles.dropzone, dragging ? styles.highlight : '')}\n onDragEnter={onDragIn}\n onDragLeave={onDragOut}\n onDragOver={onDragIn}\n onDrop={(e) => {\n e.preventDefault();\n handleUpload(e.dataTransfer?.files);\n }}\n >\n {/*TODO: show invalid files*/}\n {showWarning && <></>}\n\n <label htmlFor={props.inputId ?? 'file-upload'}>\n <Icon\n name={'upload'}\n size={'large'}\n />\n <span>{props.label}</span>\n <input\n type='file'\n multiple={props.isMultiple}\n accept={props.mimeTypes?.join(', ')}\n id={props.inputId ?? 'file-upload'}\n onChange={(e) => handleUpload(e.target.files)}\n />\n </label>\n </div>\n );\n};\n"],"names":["Dropzone","props","showWarning","setShowWarning","useState","invalidFiles","setInvalidFiles","validFiles","setValidFiles","dragging","setDragging","makeDragHandler","set","value","e","onDragIn","onDragOut","handleUpload","files","fileList","emptyFiles","file","oversizeFiles","unsupportedFiles","_a","validatedFiles","jsxs","cx","styles","jsx","Fragment","Icon"],"mappings":"wRAiBaA,EAAYC,GAAyB,OAChD,KAAM,CAACC,EAAaC,CAAc,EAAIC,EAAAA,SAAS,EAAK,EAC9C,CAACC,EAAcC,CAAe,EAAIF,EAAAA,SAIrC,CAAE,MAAO,CAAA,EAAI,SAAU,CAAA,EAAI,UAAW,CAAA,EAAI,EACvC,CAACG,EAAYC,CAAa,EAAIJ,EAAAA,SAAiB,CAAA,CAAE,EACjD,CAACK,EAAUC,CAAW,EAAIN,EAAAA,SAAS,EAAK,EAExCO,EAAkB,CAACC,EAA2BC,IAAoBC,GAAuB,CAC7FA,EAAE,eAAA,EACFA,EAAE,gBAAA,EACFF,EAAIC,CAAK,CACX,EAEME,EAAWJ,EAAgBD,EAAa,EAAI,EAC5CM,EAAYL,EAAgBD,EAAa,EAAK,EAE9CO,EAAgBC,GAA2B,CAC/C,GAAI,CAACA,EACH,OAGF,MAAMC,EAAW,MAAM,KAAKD,CAAK,EAE3BE,EAAaD,EAAS,OAAQE,GAASA,EAAK,OAAS,CAAC,EACtDC,EAAgBrB,EAAM,cACxBkB,EAAS,OAAQE,GAASA,EAAK,KAAOpB,EAAM,cAAiB,KAAO,IAAI,EACxE,CAAA,EACEsB,EAAmBtB,EAAM,UAC3BkB,EAAS,OAAQE,GAAA,OAAS,SAACG,EAAAvB,EAAM,YAAN,MAAAuB,EAAiB,SAASH,EAAK,OAAK,EAC/D,CAAA,EACEI,EAAiBN,EAAS,OAC7BE,GACCA,EAAK,KAAO,IACXpB,EAAM,cAAgBoB,EAAK,MAAQpB,EAAM,cAAgB,KAAO,KAAO,MACvEA,EAAM,UAAYA,EAAM,UAAU,SAASoB,EAAK,IAAI,EAAI,GAAA,EAG7Db,EAAciB,CAAc,EAExBL,EAAW,OAAS,GAAKE,EAAc,OAAS,GAAKC,EAAiB,OAAS,GACjFjB,EAAgB,CAAE,MAAOc,EAAY,SAAUE,EAAe,UAAWC,EAAkB,EAC3FpB,EAAe,EAAI,EACnB,QAAQ,IAAI,aAAcI,CAAU,EACpC,QAAQ,IAAI,eAAgBF,CAAY,GAExCJ,EAAM,SAASiB,CAAK,EAGtBR,EAAY,EAAK,CACnB,EAEA,OACEgB,EAAAA,KAAC,MAAA,CACC,UAAWC,EAAAA,EAAGC,EAAO,SAAUnB,EAAWmB,EAAO,UAAY,EAAE,EAC/D,YAAab,EACb,YAAaC,EACb,WAAYD,EACZ,OAASD,GAAM,OACbA,EAAE,eAAA,EACFG,GAAaO,EAAAV,EAAE,eAAF,YAAAU,EAAgB,KAAK,CACpC,EAGC,SAAA,CAAAtB,GAAe2B,EAAAA,IAAAC,EAAAA,SAAA,EAAE,EAElBJ,EAAAA,KAAC,QAAA,CAAM,QAASzB,EAAM,SAAW,cAC/B,SAAA,CAAA4B,EAAAA,IAACE,EAAAA,KAAA,CACC,KAAM,SACN,KAAM,OAAA,CAAA,EAERF,EAAAA,IAAC,OAAA,CAAM,SAAA5B,EAAM,KAAA,CAAM,EACnB4B,EAAAA,IAAC,QAAA,CACC,KAAK,OACL,SAAU5B,EAAM,WAChB,QAAQuB,EAAAvB,EAAM,YAAN,YAAAuB,EAAiB,KAAK,MAC9B,GAAIvB,EAAM,SAAW,cACrB,SAAWa,GAAMG,EAAaH,EAAE,OAAO,KAAK,CAAA,CAAA,CAC9C,CAAA,CACF,CAAA,CAAA,CAAA,CAGN"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { jsxs as f, jsx as o, Fragment as I } from "react/jsx-runtime";
|
|
2
|
+
import { t as M } from "../../classix-DG18itHa.js";
|
|
3
|
+
import { useState as s } from "react";
|
|
4
|
+
import { Icon as w } from "../icon/index.js";
|
|
5
|
+
import '../../assets/index14.css';const B = "_dropzone_1cqsl_1", j = "_highlight_1cqsl_41", z = {
|
|
6
|
+
dropzone: B,
|
|
7
|
+
highlight: j
|
|
8
|
+
}, U = (e) => {
|
|
9
|
+
var d;
|
|
10
|
+
const [p, F] = s(!1), [y, v] = s({ empty: [], oversize: [], wrongType: [] }), [D, T] = s([]), [x, a] = s(!1), r = (i, t) => (n) => {
|
|
11
|
+
n.preventDefault(), n.stopPropagation(), i(t);
|
|
12
|
+
}, g = r(a, !0), S = r(a, !1), m = (i) => {
|
|
13
|
+
if (!i)
|
|
14
|
+
return;
|
|
15
|
+
const t = Array.from(i), n = t.filter((l) => l.size === 0), c = e.maxFileSizeMB ? t.filter((l) => l.size > e.maxFileSizeMB * 1024 * 1024) : [], h = e.mimeTypes ? t.filter((l) => {
|
|
16
|
+
var u;
|
|
17
|
+
return !((u = e.mimeTypes) != null && u.includes(l.type));
|
|
18
|
+
}) : [], _ = t.filter(
|
|
19
|
+
(l) => l.size > 0 && (e.maxFileSizeMB ? l.size <= e.maxFileSizeMB * 1024 * 1024 : !0) && (e.mimeTypes ? e.mimeTypes.includes(l.type) : !0)
|
|
20
|
+
);
|
|
21
|
+
T(_), n.length > 0 || c.length > 0 || h.length > 0 ? (v({ empty: n, oversize: c, wrongType: h }), F(!0), console.log("validFiles", D), console.log("invalidFiles", y)) : e.onUpload(i), a(!1);
|
|
22
|
+
};
|
|
23
|
+
return /* @__PURE__ */ f(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
className: M(z.dropzone, x ? z.highlight : ""),
|
|
27
|
+
onDragEnter: g,
|
|
28
|
+
onDragLeave: S,
|
|
29
|
+
onDragOver: g,
|
|
30
|
+
onDrop: (i) => {
|
|
31
|
+
var t;
|
|
32
|
+
i.preventDefault(), m((t = i.dataTransfer) == null ? void 0 : t.files);
|
|
33
|
+
},
|
|
34
|
+
children: [
|
|
35
|
+
p && /* @__PURE__ */ o(I, {}),
|
|
36
|
+
/* @__PURE__ */ f("label", { htmlFor: e.inputId ?? "file-upload", children: [
|
|
37
|
+
/* @__PURE__ */ o(
|
|
38
|
+
w,
|
|
39
|
+
{
|
|
40
|
+
name: "upload",
|
|
41
|
+
size: "large"
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
/* @__PURE__ */ o("span", { children: e.label }),
|
|
45
|
+
/* @__PURE__ */ o(
|
|
46
|
+
"input",
|
|
47
|
+
{
|
|
48
|
+
type: "file",
|
|
49
|
+
multiple: e.isMultiple,
|
|
50
|
+
accept: (d = e.mimeTypes) == null ? void 0 : d.join(", "),
|
|
51
|
+
id: e.inputId ?? "file-upload",
|
|
52
|
+
onChange: (i) => m(i.target.files)
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
] })
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
U as Dropzone
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/dropzone/index.tsx"],"sourcesContent":["import cx from 'classix';\nimport { useState } from 'react';\n\nimport { Icon } from '@/components/icon';\n\nimport styles from './styles.module.css';\n\nexport type DropzoneProps = {\n allowDirectoryUpload?: boolean;\n inputId?: string;\n isMultiple?: boolean;\n label?: string;\n maxFileSizeMB?: number;\n mimeTypes?: string[];\n onUpload: (uploadContent: File[] | FileList) => void;\n};\n\nexport const Dropzone = (props: DropzoneProps) => {\n const [showWarning, setShowWarning] = useState(false);\n const [invalidFiles, setInvalidFiles] = useState<{\n empty: File[];\n oversize: File[];\n wrongType: File[];\n }>({ empty: [], oversize: [], wrongType: [] });\n const [validFiles, setValidFiles] = useState<File[]>([]);\n const [dragging, setDragging] = useState(false);\n\n const makeDragHandler = (set: (v: boolean) => void, value: boolean) => (e: React.DragEvent) => {\n e.preventDefault();\n e.stopPropagation();\n set(value);\n };\n\n const onDragIn = makeDragHandler(setDragging, true);\n const onDragOut = makeDragHandler(setDragging, false);\n\n const handleUpload = (files: FileList | null) => {\n if (!files) {\n return;\n }\n\n const fileList = Array.from(files);\n\n const emptyFiles = fileList.filter((file) => file.size === 0);\n const oversizeFiles = props.maxFileSizeMB\n ? fileList.filter((file) => file.size > props.maxFileSizeMB! * 1024 * 1024)\n : [];\n const unsupportedFiles = props.mimeTypes\n ? fileList.filter((file) => !props.mimeTypes?.includes(file.type))\n : [];\n const validatedFiles = fileList.filter(\n (file) =>\n file.size > 0 &&\n (props.maxFileSizeMB ? file.size <= props.maxFileSizeMB * 1024 * 1024 : true) &&\n (props.mimeTypes ? props.mimeTypes.includes(file.type) : true)\n );\n\n setValidFiles(validatedFiles);\n\n if (emptyFiles.length > 0 || oversizeFiles.length > 0 || unsupportedFiles.length > 0) {\n setInvalidFiles({ empty: emptyFiles, oversize: oversizeFiles, wrongType: unsupportedFiles });\n setShowWarning(true);\n console.log('validFiles', validFiles);\n console.log('invalidFiles', invalidFiles);\n } else {\n props.onUpload(files);\n }\n\n setDragging(false);\n };\n\n return (\n <div\n className={cx(styles.dropzone, dragging ? styles.highlight : '')}\n onDragEnter={onDragIn}\n onDragLeave={onDragOut}\n onDragOver={onDragIn}\n onDrop={(e) => {\n e.preventDefault();\n handleUpload(e.dataTransfer?.files);\n }}\n >\n {/*TODO: show invalid files*/}\n {showWarning && <></>}\n\n <label htmlFor={props.inputId ?? 'file-upload'}>\n <Icon\n name={'upload'}\n size={'large'}\n />\n <span>{props.label}</span>\n <input\n type='file'\n multiple={props.isMultiple}\n accept={props.mimeTypes?.join(', ')}\n id={props.inputId ?? 'file-upload'}\n onChange={(e) => handleUpload(e.target.files)}\n />\n </label>\n </div>\n );\n};\n"],"names":["Dropzone","props","showWarning","setShowWarning","useState","invalidFiles","setInvalidFiles","validFiles","setValidFiles","dragging","setDragging","makeDragHandler","set","value","e","onDragIn","onDragOut","handleUpload","files","fileList","emptyFiles","file","oversizeFiles","unsupportedFiles","_a","validatedFiles","jsxs","cx","styles","jsx","Fragment","Icon"],"mappings":";;;;;;;GAiBaA,IAAW,CAACC,MAAyB;;AAChD,QAAM,CAACC,GAAaC,CAAc,IAAIC,EAAS,EAAK,GAC9C,CAACC,GAAcC,CAAe,IAAIF,EAIrC,EAAE,OAAO,CAAA,GAAI,UAAU,CAAA,GAAI,WAAW,CAAA,GAAI,GACvC,CAACG,GAAYC,CAAa,IAAIJ,EAAiB,CAAA,CAAE,GACjD,CAACK,GAAUC,CAAW,IAAIN,EAAS,EAAK,GAExCO,IAAkB,CAACC,GAA2BC,MAAmB,CAACC,MAAuB;AAC7F,IAAAA,EAAE,eAAA,GACFA,EAAE,gBAAA,GACFF,EAAIC,CAAK;AAAA,EACX,GAEME,IAAWJ,EAAgBD,GAAa,EAAI,GAC5CM,IAAYL,EAAgBD,GAAa,EAAK,GAE9CO,IAAe,CAACC,MAA2B;AAC/C,QAAI,CAACA;AACH;AAGF,UAAMC,IAAW,MAAM,KAAKD,CAAK,GAE3BE,IAAaD,EAAS,OAAO,CAACE,MAASA,EAAK,SAAS,CAAC,GACtDC,IAAgBrB,EAAM,gBACxBkB,EAAS,OAAO,CAACE,MAASA,EAAK,OAAOpB,EAAM,gBAAiB,OAAO,IAAI,IACxE,CAAA,GACEsB,IAAmBtB,EAAM,YAC3BkB,EAAS,OAAO,CAACE,MAAA;;AAAS,gBAACG,IAAAvB,EAAM,cAAN,QAAAuB,EAAiB,SAASH,EAAK;AAAA,KAAK,IAC/D,CAAA,GACEI,IAAiBN,EAAS;AAAA,MAC9B,CAACE,MACCA,EAAK,OAAO,MACXpB,EAAM,gBAAgBoB,EAAK,QAAQpB,EAAM,gBAAgB,OAAO,OAAO,QACvEA,EAAM,YAAYA,EAAM,UAAU,SAASoB,EAAK,IAAI,IAAI;AAAA,IAAA;AAG7D,IAAAb,EAAciB,CAAc,GAExBL,EAAW,SAAS,KAAKE,EAAc,SAAS,KAAKC,EAAiB,SAAS,KACjFjB,EAAgB,EAAE,OAAOc,GAAY,UAAUE,GAAe,WAAWC,GAAkB,GAC3FpB,EAAe,EAAI,GACnB,QAAQ,IAAI,cAAcI,CAAU,GACpC,QAAQ,IAAI,gBAAgBF,CAAY,KAExCJ,EAAM,SAASiB,CAAK,GAGtBR,EAAY,EAAK;AAAA,EACnB;AAEA,SACE,gBAAAgB;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAGC,EAAO,UAAUnB,IAAWmB,EAAO,YAAY,EAAE;AAAA,MAC/D,aAAab;AAAA,MACb,aAAaC;AAAA,MACb,YAAYD;AAAA,MACZ,QAAQ,CAACD,MAAM;;AACb,QAAAA,EAAE,eAAA,GACFG,GAAaO,IAAAV,EAAE,iBAAF,gBAAAU,EAAgB,KAAK;AAAA,MACpC;AAAA,MAGC,UAAA;AAAA,QAAAtB,KAAe,gBAAA2B,EAAAC,GAAA,EAAE;AAAA,QAElB,gBAAAJ,EAAC,SAAA,EAAM,SAASzB,EAAM,WAAW,eAC/B,UAAA;AAAA,UAAA,gBAAA4B;AAAA,YAACE;AAAA,YAAA;AAAA,cACC,MAAM;AAAA,cACN,MAAM;AAAA,YAAA;AAAA,UAAA;AAAA,UAER,gBAAAF,EAAC,QAAA,EAAM,UAAA5B,EAAM,MAAA,CAAM;AAAA,UACnB,gBAAA4B;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,MAAK;AAAA,cACL,UAAU5B,EAAM;AAAA,cAChB,SAAQuB,IAAAvB,EAAM,cAAN,gBAAAuB,EAAiB,KAAK;AAAA,cAC9B,IAAIvB,EAAM,WAAW;AAAA,cACrB,UAAU,CAACa,MAAMG,EAAaH,EAAE,OAAO,KAAK;AAAA,YAAA;AAAA,UAAA;AAAA,QAC9C,EAAA,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|