@solibo/solibo-ui 1.0.29 → 1.1.0
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/index15.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index47.css +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 +1 -1
- package/dist/components/aside/index.js.map +1 -1
- package/dist/components/avatar/index.cjs +1 -1
- package/dist/components/avatar/index.cjs.map +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/index.js.map +1 -1
- package/dist/components/badge/index.cjs +1 -1
- package/dist/components/badge/index.cjs.map +1 -1
- package/dist/components/badge/index.js +9 -9
- package/dist/components/badge/index.js.map +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 +7 -7
- package/dist/components/button/index.js.map +1 -1
- package/dist/components/checkbox/index.cjs +1 -1
- package/dist/components/checkbox/index.cjs.map +1 -1
- package/dist/components/checkbox/index.js +2 -2
- package/dist/components/checkbox/index.js.map +1 -1
- package/dist/components/chip/index.cjs +1 -1
- package/dist/components/chip/index.cjs.map +1 -1
- package/dist/components/chip/index.js +4 -4
- package/dist/components/chip/index.js.map +1 -1
- package/dist/components/collapsible/index.cjs +1 -1
- package/dist/components/collapsible/index.cjs.map +1 -1
- package/dist/components/collapsible/index.js +5 -5
- package/dist/components/collapsible/index.js.map +1 -1
- package/dist/components/controls/index.cjs +1 -1
- package/dist/components/controls/index.js +1 -1
- package/dist/components/croppable/index.cjs +1 -1
- package/dist/components/croppable/index.cjs.map +1 -1
- package/dist/components/croppable/index.js +21 -21
- package/dist/components/croppable/index.js.map +1 -1
- package/dist/components/dialog/index.cjs +1 -1
- package/dist/components/dialog/index.cjs.map +1 -1
- package/dist/components/dialog/index.js +13 -13
- package/dist/components/dialog/index.js.map +1 -1
- package/dist/components/dropdown/index.cjs +1 -1
- package/dist/components/dropdown/index.cjs.map +1 -1
- package/dist/components/dropdown/index.js +43 -43
- package/dist/components/dropdown/index.js.map +1 -1
- package/dist/components/dropzone/index.cjs +1 -1
- package/dist/components/dropzone/index.cjs.map +1 -1
- package/dist/components/dropzone/index.js +16 -16
- package/dist/components/dropzone/index.js.map +1 -1
- package/dist/components/editor/index.cjs +2 -2
- package/dist/components/editor/index.cjs.map +1 -1
- package/dist/components/editor/index.js +473 -473
- package/dist/components/editor/index.js.map +1 -1
- package/dist/components/file/index.cjs +1 -1
- package/dist/components/file/index.cjs.map +1 -1
- package/dist/components/file/index.js +34 -34
- package/dist/components/file/index.js.map +1 -1
- package/dist/components/header/index.cjs +1 -1
- package/dist/components/header/index.js +25 -25
- package/dist/components/icon/index.cjs +1 -1
- package/dist/components/icon/index.cjs.map +1 -1
- package/dist/components/icon/index.js +16 -16
- package/dist/components/icon/index.js.map +1 -1
- package/dist/components/input/index.cjs +1 -1
- package/dist/components/input/index.js +2 -2
- package/dist/components/list/index.cjs +1 -1
- package/dist/components/list/index.js +13 -13
- package/dist/components/menu/index.cjs +1 -1
- package/dist/components/menu/index.cjs.map +1 -1
- package/dist/components/menu/index.js +18 -18
- package/dist/components/menu/index.js.map +1 -1
- package/dist/components/message/index.cjs +1 -1
- package/dist/components/message/index.cjs.map +1 -1
- package/dist/components/message/index.js +20 -20
- package/dist/components/message/index.js.map +1 -1
- package/dist/components/messages/index.cjs +1 -1
- package/dist/components/messages/index.cjs.map +1 -1
- package/dist/components/messages/index.js +70 -39
- package/dist/components/messages/index.js.map +1 -1
- package/dist/components/nav/index.cjs +1 -1
- package/dist/components/nav/index.cjs.map +1 -1
- package/dist/components/nav/index.js +2 -2
- package/dist/components/nav/index.js.map +1 -1
- package/dist/components/portal/index.cjs +1 -1
- package/dist/components/portal/index.cjs.map +1 -1
- package/dist/components/portal/index.js +7 -7
- package/dist/components/portal/index.js.map +1 -1
- package/dist/components/search/index.cjs +1 -1
- package/dist/components/search/index.cjs.map +1 -1
- package/dist/components/search/index.js +3 -3
- package/dist/components/search/index.js.map +1 -1
- package/dist/components/select/index.cjs +1 -1
- package/dist/components/select/index.js +2 -2
- package/dist/components/table/index.cjs +1 -1
- package/dist/components/table/index.cjs.map +1 -1
- package/dist/components/table/index.js +11 -11
- package/dist/components/table/index.js.map +1 -1
- package/dist/components/toast/index.cjs +1 -1
- package/dist/components/toast/index.cjs.map +1 -1
- package/dist/components/toast/index.js +6 -6
- package/dist/components/toast/index.js.map +1 -1
- package/dist/components/tooltip/index.cjs +1 -1
- package/dist/components/tooltip/index.cjs.map +1 -1
- package/dist/components/tooltip/index.js +6 -6
- package/dist/components/tooltip/index.js.map +1 -1
- package/dist/icons-B_uIKmIp.cjs +2 -0
- package/dist/icons-B_uIKmIp.cjs.map +1 -0
- package/dist/icons-Dm2kyF0g.js +211 -0
- package/dist/icons-Dm2kyF0g.js.map +1 -0
- package/dist/{index-BAxpgMzb.js → index-DycOZMJl.js} +7 -7
- package/dist/index-DycOZMJl.js.map +1 -0
- package/dist/index-Y3jsTJhs.cjs +2 -0
- package/dist/index-Y3jsTJhs.cjs.map +1 -0
- package/dist/{index-DMGGDV9J.js → index-m3slpD7c.js} +3 -3
- package/dist/index-m3slpD7c.js.map +1 -0
- package/dist/index-rXfEqyt5.cjs +2 -0
- package/dist/index-rXfEqyt5.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +161 -129
- package/dist/index.js +2 -2
- package/dist/{menu-popover-D1ALaiV5.cjs → menu-popover-CM3v5s-5.cjs} +2 -2
- package/dist/menu-popover-CM3v5s-5.cjs.map +1 -0
- package/dist/{menu-popover-DQHDIw-8.js → menu-popover-DOkciab5.js} +19 -19
- package/dist/menu-popover-DOkciab5.js.map +1 -0
- package/dist/tokens.json +1 -1
- package/package.json +3 -1
- package/dist/icons-BkaMeh-J.js +0 -176
- package/dist/icons-BkaMeh-J.js.map +0 -1
- package/dist/icons-Lq3pr85X.cjs +0 -2
- package/dist/icons-Lq3pr85X.cjs.map +0 -1
- package/dist/index-BAxpgMzb.js.map +0 -1
- package/dist/index-BOiGSTKz.cjs +0 -2
- package/dist/index-BOiGSTKz.cjs.map +0 -1
- package/dist/index-BlnG4Rbh.cjs +0 -2
- package/dist/index-BlnG4Rbh.cjs.map +0 -1
- package/dist/index-DMGGDV9J.js.map +0 -1
- package/dist/menu-popover-D1ALaiV5.cjs.map +0 -1
- package/dist/menu-popover-DQHDIw-8.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index43.css');const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index43.css');const e=require("react/jsx-runtime"),j=require("../figure/index.cjs"),_=require("../icon/index.cjs"),f=require("../button/index.cjs"),N="_file_1427u_1",F="_action_1427u_14",b="_details_1427u_62",g="_name_1427u_69",I="_extension_1427u_81",P="_subtitle_1427u_91",t={file:N,action:F,delete:"_delete_1427u_15",details:b,"name-line":"_name-line_1427u_69",name:g,extension:I,subtitle:P},q={".doc":"FileDoc",".docx":"FileDoc",".pdf":"FilePdf",".ppt":"FilePpt",".pptx":"FilePpt",".xls":"FileXls",".xlsx":"FileXls"},v=({deleteAccessibleLabel:u,name:s,onClick:n,onDelete:a,ref:m,subtitle:r,url:d})=>{const i=s.lastIndexOf("."),x=i>0&&i<s.length-1,p=x?s.slice(0,i):s,c=x?s.slice(i):"",h=q[c.toLowerCase()]??"FileText",o=e.jsxs(e.Fragment,{children:[e.jsx(j.Figure,{children:e.jsx(_.Icon,{name:h})}),e.jsxs("span",{className:t.details,children:[e.jsxs("span",{className:t["name-line"],children:[e.jsx("span",{className:t.name,children:p}),c&&e.jsx("span",{className:t.extension,children:c})]}),r&&e.jsx("span",{className:t.subtitle,children:r})]})]});return e.jsxs("div",{className:t.file,ref:m,"data-component":"file",children:[d?e.jsx("a",{className:t.action,href:d,onClick:l=>{l.stopPropagation(),n&&(l.preventDefault(),n())},title:s,children:o}):n?e.jsx("button",{"aria-label":s,className:t.action,"data-actionable":"true",onClick:l=>{l.stopPropagation(),n()},title:s,type:"button",children:o}):e.jsx("div",{className:t.action,title:s,children:o}),a&&e.jsx(f.Button,{"aria-label":u??`Delete ${s}`,className:t.delete,onClick:()=>a(),variant:"simple",children:e.jsx(_.Icon,{name:"Trash",size:"small"})})]})};exports.File=v;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/file/index.tsx"],"sourcesContent":["import { Figure } from '@/components/figure';\nimport { Icon
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/file/index.tsx"],"sourcesContent":["import { Figure } from '@/components/figure';\nimport { Icon, type IconName } from '@/components/icon';\n\nimport { Button } from '../button';\nimport styles from './styles.module.css';\n\nconst documentIconNames: Record<string, IconName> = {\n '.doc': 'FileDoc',\n '.docx': 'FileDoc',\n '.pdf': 'FilePdf',\n '.ppt': 'FilePpt',\n '.pptx': 'FilePpt',\n '.xls': 'FileXls',\n '.xlsx': 'FileXls',\n};\n\nexport type FileProps = React.ComponentPropsWithRef<'div'> & {\n deleteAccessibleLabel?: string;\n name: string;\n onClick?: () => void;\n onDelete?: () => void;\n subtitle?: string;\n url?: string;\n};\n\nexport const File = ({\n deleteAccessibleLabel,\n name,\n onClick,\n onDelete,\n ref,\n subtitle,\n url,\n}: FileProps) => {\n const extensionIndex = name.lastIndexOf('.');\n const hasExtension = extensionIndex > 0 && extensionIndex < name.length - 1;\n const fileName = hasExtension ? name.slice(0, extensionIndex) : name;\n const extension = hasExtension ? name.slice(extensionIndex) : '';\n const documentIconName = documentIconNames[extension.toLowerCase()] ?? 'FileText';\n const content = (\n <>\n <Figure>\n <Icon\n name={documentIconName}\n />\n </Figure>\n <span className={styles.details}>\n <span className={styles['name-line']}>\n <span className={styles.name}>{fileName}</span>\n {extension && <span className={styles.extension}>{extension}</span>}\n </span>\n {subtitle && <span className={styles.subtitle}>{subtitle}</span>}\n </span>\n </>\n );\n\n return (\n <div\n className={styles.file}\n ref={ref}\n >\n {url ? (\n <a\n className={styles.action}\n href={url}\n onClick={(event) => {\n event.stopPropagation();\n\n if (onClick) {\n event.preventDefault();\n onClick();\n }\n }}\n title={name}\n >\n {content}\n </a>\n ) : onClick ? (\n <button\n aria-label={name}\n className={styles.action}\n data-actionable='true'\n onClick={(event) => {\n event.stopPropagation();\n onClick();\n }}\n title={name}\n type='button'\n >\n {content}\n </button>\n ) : (\n <div\n className={styles.action}\n title={name}\n >\n {content}\n </div>\n )}\n {onDelete && (\n <Button\n aria-label={deleteAccessibleLabel ?? `Delete ${name}`}\n className={styles.delete}\n onClick={() => onDelete()}\n variant='simple'\n >\n <Icon\n name='Trash'\n size='small'\n />\n </Button>\n )}\n </div>\n );\n};\n"],"names":["documentIconNames","File","deleteAccessibleLabel","name","onClick","onDelete","ref","subtitle","url","extensionIndex","lastIndexOf","hasExtension","length","fileName","slice","extension","documentIconName","toLowerCase","content","jsxs","Fragment","jsx","Figure","Icon","styles","details","file","action","event","stopPropagation","preventDefault","Button","delete"],"mappings":"6cAMMA,EAA8C,CAClD,OAAQ,UACR,QAAS,UACT,OAAQ,UACR,OAAQ,UACR,QAAS,UACT,OAAQ,UACR,QAAS,SACX,EAWaC,EAAOA,CAAC,CACnBC,sBAAAA,EACAC,KAAAA,EACAC,QAAAA,EACAC,SAAAA,EACAC,IAAAA,EACAC,SAAAA,EACAC,IAAAA,CACS,IAAM,CACf,MAAMC,EAAiBN,EAAKO,YAAY,GAAG,EACrCC,EAAeF,EAAiB,GAAKA,EAAiBN,EAAKS,OAAS,EACpEC,EAAWF,EAAeR,EAAKW,MAAM,EAAGL,CAAc,EAAIN,EAC1DY,EAAYJ,EAAeR,EAAKW,MAAML,CAAc,EAAI,GACxDO,EAAmBhB,EAAkBe,EAAUE,YAAAA,CAAa,GAAK,WACjEC,EACJC,EAAAA,KAAAC,EAAAA,SAAA,CACE,SAAA,CAAAC,MAACC,EAAAA,OAAA,CACC,SAAAD,EAAAA,IAACE,EAAAA,KAAA,CACC,KAAMP,EAAiB,EAE3B,EACAG,EAAAA,KAAC,OAAA,CAAK,UAAWK,EAAOC,QACtB,SAAA,CAAAN,EAAAA,KAAC,OAAA,CAAK,UAAWK,EAAO,WAAW,EACjC,SAAA,CAAAH,EAAAA,IAAC,OAAA,CAAK,UAAWG,EAAOrB,KAAOU,SAAAA,EAAS,EACvCE,GAAaM,EAAAA,IAAC,OAAA,CAAK,UAAWG,EAAOT,UAAYA,SAAAA,CAAAA,CAAU,CAAA,EAC9D,EACCR,GAAYc,EAAAA,IAAC,OAAA,CAAK,UAAWG,EAAOjB,SAAWA,SAAAA,CAAAA,CAAS,CAAA,CAAA,CAC3D,CAAA,EACF,EAGF,cACG,MAAA,CACC,UAAWiB,EAAOE,KAClB,IAAApB,EAAS,iBAAA,OAERE,SAAAA,CAAAA,EACCa,EAAAA,IAAC,KACC,UAAWG,EAAOG,OAClB,KAAMnB,EACN,QAAUoB,GAAU,CAClBA,EAAMC,gBAAAA,EAEFzB,IACFwB,EAAME,eAAAA,EACN1B,EAAAA,EAEJ,EACA,MAAOD,EAENe,SAAAA,CAAAA,CACH,EACEd,EACFiB,EAAAA,IAAC,SAAA,CACC,aAAYlB,EACZ,UAAWqB,EAAOG,OAClB,kBAAgB,OAChB,QAAUC,GAAU,CAClBA,EAAMC,gBAAAA,EACNzB,EAAAA,CACF,EACA,MAAOD,EACP,KAAK,SAEJe,SAAAA,CAAAA,CACH,EAEAG,EAAAA,IAAC,MAAA,CACC,UAAWG,EAAOG,OAClB,MAAOxB,EAENe,SAAAA,EACH,EAEDb,SACE0B,SAAA,CACC,aAAY7B,GAAyB,UAAUC,CAAI,GACnD,UAAWqB,EAAOQ,OAClB,QAAS,IAAM3B,IACf,QAAQ,SAER,SAAAgB,EAAAA,IAACE,QACC,KAAK,QACL,KAAK,OAAA,CAAO,CAAA,CAEhB,CAAA,EAEJ,CAEJ"}
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Figure as
|
|
3
|
-
import { Icon as
|
|
4
|
-
import { Button as
|
|
5
|
-
import '../../assets/index43.css';const
|
|
6
|
-
file:
|
|
7
|
-
action:
|
|
1
|
+
import { jsxs as a, jsx as t, Fragment as N } from "react/jsx-runtime";
|
|
2
|
+
import { Figure as F } from "../figure/index.js";
|
|
3
|
+
import { Icon as _ } from "../icon/index.js";
|
|
4
|
+
import { Button as b } from "../button/index.js";
|
|
5
|
+
import '../../assets/index43.css';const g = "_file_1427u_1", I = "_action_1427u_14", P = "_details_1427u_62", v = "_name_1427u_69", D = "_extension_1427u_81", j = "_subtitle_1427u_91", n = {
|
|
6
|
+
file: g,
|
|
7
|
+
action: I,
|
|
8
8
|
delete: "_delete_1427u_15",
|
|
9
|
-
details:
|
|
9
|
+
details: P,
|
|
10
10
|
"name-line": "_name-line_1427u_69",
|
|
11
|
-
name:
|
|
12
|
-
extension:
|
|
13
|
-
subtitle:
|
|
14
|
-
},
|
|
15
|
-
".doc": "
|
|
16
|
-
".docx": "
|
|
17
|
-
".pdf": "
|
|
18
|
-
".ppt": "
|
|
19
|
-
".pptx": "
|
|
20
|
-
".xls": "
|
|
21
|
-
".xlsx": "
|
|
22
|
-
},
|
|
23
|
-
deleteAccessibleLabel:
|
|
11
|
+
name: v,
|
|
12
|
+
extension: D,
|
|
13
|
+
subtitle: j
|
|
14
|
+
}, y = {
|
|
15
|
+
".doc": "FileDoc",
|
|
16
|
+
".docx": "FileDoc",
|
|
17
|
+
".pdf": "FilePdf",
|
|
18
|
+
".ppt": "FilePpt",
|
|
19
|
+
".pptx": "FilePpt",
|
|
20
|
+
".xls": "FileXls",
|
|
21
|
+
".xlsx": "FileXls"
|
|
22
|
+
}, B = ({
|
|
23
|
+
deleteAccessibleLabel: u,
|
|
24
24
|
name: e,
|
|
25
25
|
onClick: s,
|
|
26
|
-
onDelete:
|
|
26
|
+
onDelete: r,
|
|
27
27
|
ref: x,
|
|
28
|
-
subtitle:
|
|
28
|
+
subtitle: d,
|
|
29
29
|
url: m
|
|
30
30
|
}) => {
|
|
31
|
-
const
|
|
32
|
-
/* @__PURE__ */ t(
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
/* @__PURE__ */
|
|
31
|
+
const i = e.lastIndexOf("."), p = i > 0 && i < e.length - 1, f = p ? e.slice(0, i) : e, o = p ? e.slice(i) : "", h = y[o.toLowerCase()] ?? "FileText", c = /* @__PURE__ */ a(N, { children: [
|
|
32
|
+
/* @__PURE__ */ t(F, { children: /* @__PURE__ */ t(_, { name: h }) }),
|
|
33
|
+
/* @__PURE__ */ a("span", { className: n.details, children: [
|
|
34
|
+
/* @__PURE__ */ a("span", { className: n["name-line"], children: [
|
|
35
35
|
/* @__PURE__ */ t("span", { className: n.name, children: f }),
|
|
36
|
-
|
|
36
|
+
o && /* @__PURE__ */ t("span", { className: n.extension, children: o })
|
|
37
37
|
] }),
|
|
38
|
-
|
|
38
|
+
d && /* @__PURE__ */ t("span", { className: n.subtitle, children: d })
|
|
39
39
|
] })
|
|
40
40
|
] });
|
|
41
|
-
return /* @__PURE__ */
|
|
41
|
+
return /* @__PURE__ */ a("div", { className: n.file, ref: x, "data-component": "file", children: [
|
|
42
42
|
m ? /* @__PURE__ */ t("a", { className: n.action, href: m, onClick: (l) => {
|
|
43
43
|
l.stopPropagation(), s && (l.preventDefault(), s());
|
|
44
|
-
}, title: e, children:
|
|
44
|
+
}, title: e, children: c }) : s ? /* @__PURE__ */ t("button", { "aria-label": e, className: n.action, "data-actionable": "true", onClick: (l) => {
|
|
45
45
|
l.stopPropagation(), s();
|
|
46
|
-
}, title: e, type: "button", children:
|
|
47
|
-
|
|
46
|
+
}, title: e, type: "button", children: c }) : /* @__PURE__ */ t("div", { className: n.action, title: e, children: c }),
|
|
47
|
+
r && /* @__PURE__ */ t(b, { "aria-label": u ?? `Delete ${e}`, className: n.delete, onClick: () => r(), variant: "simple", children: /* @__PURE__ */ t(_, { name: "Trash", size: "small" }) })
|
|
48
48
|
] });
|
|
49
49
|
};
|
|
50
50
|
export {
|
|
51
|
-
|
|
51
|
+
B as File
|
|
52
52
|
};
|
|
53
53
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/file/index.tsx"],"sourcesContent":["import { Figure } from '@/components/figure';\nimport { Icon
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/file/index.tsx"],"sourcesContent":["import { Figure } from '@/components/figure';\nimport { Icon, type IconName } from '@/components/icon';\n\nimport { Button } from '../button';\nimport styles from './styles.module.css';\n\nconst documentIconNames: Record<string, IconName> = {\n '.doc': 'FileDoc',\n '.docx': 'FileDoc',\n '.pdf': 'FilePdf',\n '.ppt': 'FilePpt',\n '.pptx': 'FilePpt',\n '.xls': 'FileXls',\n '.xlsx': 'FileXls',\n};\n\nexport type FileProps = React.ComponentPropsWithRef<'div'> & {\n deleteAccessibleLabel?: string;\n name: string;\n onClick?: () => void;\n onDelete?: () => void;\n subtitle?: string;\n url?: string;\n};\n\nexport const File = ({\n deleteAccessibleLabel,\n name,\n onClick,\n onDelete,\n ref,\n subtitle,\n url,\n}: FileProps) => {\n const extensionIndex = name.lastIndexOf('.');\n const hasExtension = extensionIndex > 0 && extensionIndex < name.length - 1;\n const fileName = hasExtension ? name.slice(0, extensionIndex) : name;\n const extension = hasExtension ? name.slice(extensionIndex) : '';\n const documentIconName = documentIconNames[extension.toLowerCase()] ?? 'FileText';\n const content = (\n <>\n <Figure>\n <Icon\n name={documentIconName}\n />\n </Figure>\n <span className={styles.details}>\n <span className={styles['name-line']}>\n <span className={styles.name}>{fileName}</span>\n {extension && <span className={styles.extension}>{extension}</span>}\n </span>\n {subtitle && <span className={styles.subtitle}>{subtitle}</span>}\n </span>\n </>\n );\n\n return (\n <div\n className={styles.file}\n ref={ref}\n >\n {url ? (\n <a\n className={styles.action}\n href={url}\n onClick={(event) => {\n event.stopPropagation();\n\n if (onClick) {\n event.preventDefault();\n onClick();\n }\n }}\n title={name}\n >\n {content}\n </a>\n ) : onClick ? (\n <button\n aria-label={name}\n className={styles.action}\n data-actionable='true'\n onClick={(event) => {\n event.stopPropagation();\n onClick();\n }}\n title={name}\n type='button'\n >\n {content}\n </button>\n ) : (\n <div\n className={styles.action}\n title={name}\n >\n {content}\n </div>\n )}\n {onDelete && (\n <Button\n aria-label={deleteAccessibleLabel ?? `Delete ${name}`}\n className={styles.delete}\n onClick={() => onDelete()}\n variant='simple'\n >\n <Icon\n name='Trash'\n size='small'\n />\n </Button>\n )}\n </div>\n );\n};\n"],"names":["documentIconNames","File","deleteAccessibleLabel","name","onClick","onDelete","ref","subtitle","url","extensionIndex","lastIndexOf","hasExtension","length","fileName","slice","extension","documentIconName","toLowerCase","content","jsxs","Fragment","jsx","Figure","Icon","styles","details","file","action","event","stopPropagation","preventDefault","Button","delete"],"mappings":";;;;;;;;;;;;;GAMMA,IAA8C;AAAA,EAClD,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,SAAS;AACX,GAWaC,IAAOA,CAAC;AAAA,EACnBC,uBAAAA;AAAAA,EACAC,MAAAA;AAAAA,EACAC,SAAAA;AAAAA,EACAC,UAAAA;AAAAA,EACAC,KAAAA;AAAAA,EACAC,UAAAA;AAAAA,EACAC,KAAAA;AACS,MAAM;AACf,QAAMC,IAAiBN,EAAKO,YAAY,GAAG,GACrCC,IAAeF,IAAiB,KAAKA,IAAiBN,EAAKS,SAAS,GACpEC,IAAWF,IAAeR,EAAKW,MAAM,GAAGL,CAAc,IAAIN,GAC1DY,IAAYJ,IAAeR,EAAKW,MAAML,CAAc,IAAI,IACxDO,IAAmBhB,EAAkBe,EAAUE,YAAAA,CAAa,KAAK,YACjEC,IACJ,gBAAAC,EAAAC,GAAA,EACE,UAAA;AAAA,IAAA,gBAAAC,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACE,GAAA,EACC,MAAMP,GAAiB,GAE3B;AAAA,IACA,gBAAAG,EAAC,QAAA,EAAK,WAAWK,EAAOC,SACtB,UAAA;AAAA,MAAA,gBAAAN,EAAC,QAAA,EAAK,WAAWK,EAAO,WAAW,GACjC,UAAA;AAAA,QAAA,gBAAAH,EAAC,QAAA,EAAK,WAAWG,EAAOrB,MAAOU,UAAAA,GAAS;AAAA,QACvCE,KAAa,gBAAAM,EAAC,QAAA,EAAK,WAAWG,EAAOT,WAAYA,UAAAA,EAAAA,CAAU;AAAA,MAAA,GAC9D;AAAA,MACCR,KAAY,gBAAAc,EAAC,QAAA,EAAK,WAAWG,EAAOjB,UAAWA,UAAAA,EAAAA,CAAS;AAAA,IAAA,EAAA,CAC3D;AAAA,EAAA,GACF;AAGF,2BACG,OAAA,EACC,WAAWiB,EAAOE,MAClB,KAAApB,GAAS,kBAAA,QAERE,UAAAA;AAAAA,IAAAA,IACC,gBAAAa,EAAC,OACC,WAAWG,EAAOG,QAClB,MAAMnB,GACN,SAAUoB,CAAAA,MAAU;AAClBA,MAAAA,EAAMC,gBAAAA,GAEFzB,MACFwB,EAAME,eAAAA,GACN1B,EAAAA;AAAAA,IAEJ,GACA,OAAOD,GAENe,UAAAA,EAAAA,CACH,IACEd,IACF,gBAAAiB,EAAC,UAAA,EACC,cAAYlB,GACZ,WAAWqB,EAAOG,QAClB,mBAAgB,QAChB,SAAUC,CAAAA,MAAU;AAClBA,MAAAA,EAAMC,gBAAAA,GACNzB,EAAAA;AAAAA,IACF,GACA,OAAOD,GACP,MAAK,UAEJe,UAAAA,EAAAA,CACH,IAEA,gBAAAG,EAAC,OAAA,EACC,WAAWG,EAAOG,QAClB,OAAOxB,GAENe,UAAAA,GACH;AAAA,IAEDb,uBACE0B,GAAA,EACC,cAAY7B,KAAyB,UAAUC,CAAI,IACnD,WAAWqB,EAAOQ,QAClB,SAAS,MAAM3B,KACf,SAAQ,UAER,UAAA,gBAAAgB,EAACE,KACC,MAAK,SACL,MAAK,QAAA,CAAO,EAAA,CAEhB;AAAA,EAAA,GAEJ;AAEJ;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index18.css');const t=require("react/jsx-runtime"),u=require("../../classix-5H4IWnMA.cjs"),_="
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index18.css');const t=require("react/jsx-runtime"),u=require("../../classix-5H4IWnMA.cjs"),_="_header_1gfvy_1",m="_controls_1gfvy_68",j="_cta_1gfvy_95",f="_jumbo_1gfvy_144",e={header:_,controls:m,cta:j,"header-content":"_header-content_1gfvy_107",jumbo:f},v={default:e.default,jumbo:e.jumbo},y=({backButton:o,capitalize:r=!1,children:d,controls:s,cta:a,header:l,subHeader:i,variant:h="default"})=>{const c=t.jsxs("div",{className:e["header-content"],children:[o,l,i]}),n=s?t.jsxs("div",{className:e.controls,children:[c,s]}):c;return t.jsxs("header",{className:u.t(e.header,v[h],r&&e.capitalize),"data-component":"header",children:[a?t.jsxs("div",{className:e.cta,children:[n,a]}):n,d]})};exports.Header=y;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { t as
|
|
3
|
-
import '../../assets/index18.css';const
|
|
4
|
-
header:
|
|
5
|
-
controls:
|
|
6
|
-
cta:
|
|
7
|
-
"header-content": "_header-
|
|
8
|
-
jumbo:
|
|
1
|
+
import { jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { t as _ } from "../../classix-DG18itHa.js";
|
|
3
|
+
import '../../assets/index18.css';const i = "_header_1gfvy_1", f = "_controls_1gfvy_68", u = "_cta_1gfvy_95", v = "_jumbo_1gfvy_144", e = {
|
|
4
|
+
header: i,
|
|
5
|
+
controls: f,
|
|
6
|
+
cta: u,
|
|
7
|
+
"header-content": "_header-content_1gfvy_107",
|
|
8
|
+
jumbo: v
|
|
9
9
|
}, j = {
|
|
10
10
|
default: e.default,
|
|
11
11
|
jumbo: e.jumbo
|
|
12
|
-
},
|
|
12
|
+
}, g = ({
|
|
13
13
|
backButton: r,
|
|
14
14
|
capitalize: s = !1,
|
|
15
15
|
children: d,
|
|
16
|
-
controls:
|
|
17
|
-
cta:
|
|
16
|
+
controls: a,
|
|
17
|
+
cta: o,
|
|
18
18
|
header: l,
|
|
19
|
-
subHeader:
|
|
20
|
-
variant:
|
|
19
|
+
subHeader: h,
|
|
20
|
+
variant: m = "default"
|
|
21
21
|
}) => {
|
|
22
|
-
const
|
|
22
|
+
const c = /* @__PURE__ */ t("div", { className: e["header-content"], children: [
|
|
23
23
|
r,
|
|
24
24
|
l,
|
|
25
|
-
|
|
26
|
-
] }),
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
] }) :
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
] }) :
|
|
25
|
+
h
|
|
26
|
+
] }), n = a ? /* @__PURE__ */ t("div", { className: e.controls, children: [
|
|
27
|
+
c,
|
|
28
|
+
a
|
|
29
|
+
] }) : c;
|
|
30
|
+
return /* @__PURE__ */ t("header", { className: _(e.header, j[m], s && e.capitalize), "data-component": "header", children: [
|
|
31
|
+
o ? /* @__PURE__ */ t("div", { className: e.cta, children: [
|
|
32
|
+
n,
|
|
33
|
+
o
|
|
34
|
+
] }) : n,
|
|
35
35
|
d
|
|
36
36
|
] });
|
|
37
37
|
};
|
|
38
38
|
export {
|
|
39
|
-
|
|
39
|
+
g as Header
|
|
40
40
|
};
|
|
41
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index44.css');const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index44.css');const g=require("react/jsx-runtime"),m=require("../../classix-5H4IWnMA.cjs"),o=require("../../icons-B_uIKmIp.cjs"),r="_icon_1dkgk_1",l="_small_1dkgk_10",d="_medium_1dkgk_15",_="_large_1dkgk_20",k="_danger_1dkgk_25",e={icon:r,small:l,medium:d,large:_,danger:k,"gap-right":"_gap-right_1dkgk_29","gap-left":"_gap-left_1dkgk_33"},u={large:e.large,medium:e.medium,small:e.small},p={danger:e.danger},y=({gap:n="none",name:t,size:a="medium",variant:s,weight:c})=>{const i={maskImage:o.iconSVG(t,void 0,c)};return g.jsx("span",{"aria-hidden":"true",className:m.t(n!=="none"&&e[`gap-${n}`],u[a],e.icon,s&&p[s]),style:i,"data-component":"icon"})},I=()=>o.iconNames;exports.Icon=y;exports.getIconNames=I;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/icon/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport { type IconName,
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/icon/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport { type IconName, iconNames, iconSVG, type IconWeight } from './icons';\nimport styles from './styles.module.css';\n\nexport type { IconName, IconWeight } from './icons';\n\nconst sizes = {\n large: styles.large,\n medium: styles.medium,\n small: styles.small,\n};\n\nconst variants = {\n danger: styles.danger,\n};\n\nexport type IconProps = {\n gap?: 'left' | 'none' | 'right';\n name: IconName;\n size?: keyof typeof sizes;\n variant?: keyof typeof variants;\n weight?: IconWeight;\n};\n\nexport const Icon = ({ gap = 'none', name, size = 'medium', variant, weight }: IconProps) => {\n const iconStyle = {\n maskImage: iconSVG(name, undefined, weight),\n } as React.CSSProperties;\n\n return (\n <span\n aria-hidden='true'\n className={cx(\n gap !== 'none' && styles[`gap-${gap}`],\n sizes[size],\n styles.icon,\n variant && variants[variant]\n )}\n style={iconStyle}\n />\n );\n};\n\nexport const getIconNames = (): readonly IconName[] => iconNames;\n"],"names":["sizes","large","styles","medium","small","variants","danger","Icon","gap","name","size","variant","weight","iconStyle","maskImage","iconSVG","undefined","jsx","cx","icon","getIconNames","iconNames"],"mappings":"sZAOMA,EAAQ,CACZC,MAAOC,EAAOD,MACdE,OAAQD,EAAOC,OACfC,MAAOF,EAAOE,KAChB,EAEMC,EAAW,CACfC,OAAQJ,EAAOI,MACjB,EAUaC,EAAOA,CAAC,CAAEC,IAAAA,EAAM,OAAQC,KAAAA,EAAMC,KAAAA,EAAO,SAAUC,QAAAA,EAASC,OAAAA,CAAkB,IAAM,CAC3F,MAAMC,EAAY,CAChBC,UAAWC,EAAAA,QAAQN,EAAMO,OAAWJ,CAAM,CAAA,EAG5C,OACEK,EAAAA,IAAC,OAAA,CACC,cAAY,OACZ,UAAWC,IACTV,IAAQ,QAAUN,EAAO,OAAOM,CAAG,EAAE,EACrCR,EAAMU,CAAI,EACVR,EAAOiB,KACPR,GAAWN,EAASM,CAAO,CAC7B,EACA,MAAOE,EAAU,iBAAA,MAAA,CAAA,CAGvB,EAEaO,EAAeA,IAA2BC,EAAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
4
|
-
import '../../assets/index44.css';const
|
|
5
|
-
icon:
|
|
6
|
-
small:
|
|
1
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
+
import { t as i } from "../../classix-DG18itHa.js";
|
|
3
|
+
import { a as c, i as r } from "../../icons-Dm2kyF0g.js";
|
|
4
|
+
import '../../assets/index44.css';const d = "_icon_1dkgk_1", l = "_small_1dkgk_10", _ = "_medium_1dkgk_15", k = "_large_1dkgk_20", p = "_danger_1dkgk_25", n = {
|
|
5
|
+
icon: d,
|
|
6
|
+
small: l,
|
|
7
7
|
medium: _,
|
|
8
8
|
large: k,
|
|
9
9
|
danger: p,
|
|
@@ -15,20 +15,20 @@ import '../../assets/index44.css';const l = "_icon_1dkgk_1", d = "_small_1dkgk_1
|
|
|
15
15
|
small: n.small
|
|
16
16
|
}, f = {
|
|
17
17
|
danger: n.danger
|
|
18
|
-
},
|
|
19
|
-
fill: s,
|
|
18
|
+
}, N = ({
|
|
20
19
|
gap: e = "none",
|
|
21
20
|
name: o,
|
|
22
|
-
size:
|
|
23
|
-
variant: a
|
|
21
|
+
size: s = "medium",
|
|
22
|
+
variant: a,
|
|
23
|
+
weight: m
|
|
24
24
|
}) => {
|
|
25
|
-
const
|
|
26
|
-
maskImage:
|
|
25
|
+
const t = {
|
|
26
|
+
maskImage: r(o, void 0, m)
|
|
27
27
|
};
|
|
28
|
-
return /* @__PURE__ */
|
|
29
|
-
}, x = () =>
|
|
28
|
+
return /* @__PURE__ */ g("span", { "aria-hidden": "true", className: i(e !== "none" && n[`gap-${e}`], u[s], n.icon, a && f[a]), style: t, "data-component": "icon" });
|
|
29
|
+
}, x = () => c;
|
|
30
30
|
export {
|
|
31
|
-
|
|
32
|
-
x as
|
|
31
|
+
N as Icon,
|
|
32
|
+
x as getIconNames
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/icon/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport { type IconName,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/icon/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport { type IconName, iconNames, iconSVG, type IconWeight } from './icons';\nimport styles from './styles.module.css';\n\nexport type { IconName, IconWeight } from './icons';\n\nconst sizes = {\n large: styles.large,\n medium: styles.medium,\n small: styles.small,\n};\n\nconst variants = {\n danger: styles.danger,\n};\n\nexport type IconProps = {\n gap?: 'left' | 'none' | 'right';\n name: IconName;\n size?: keyof typeof sizes;\n variant?: keyof typeof variants;\n weight?: IconWeight;\n};\n\nexport const Icon = ({ gap = 'none', name, size = 'medium', variant, weight }: IconProps) => {\n const iconStyle = {\n maskImage: iconSVG(name, undefined, weight),\n } as React.CSSProperties;\n\n return (\n <span\n aria-hidden='true'\n className={cx(\n gap !== 'none' && styles[`gap-${gap}`],\n sizes[size],\n styles.icon,\n variant && variants[variant]\n )}\n style={iconStyle}\n />\n );\n};\n\nexport const getIconNames = (): readonly IconName[] => iconNames;\n"],"names":["sizes","large","styles","medium","small","variants","danger","Icon","gap","name","size","variant","weight","iconStyle","maskImage","iconSVG","undefined","jsx","cx","icon","getIconNames","iconNames"],"mappings":";;;;;;;;;;;GAOMA,IAAQ;AAAA,EACZC,OAAOC,EAAOD;AAAAA,EACdE,QAAQD,EAAOC;AAAAA,EACfC,OAAOF,EAAOE;AAChB,GAEMC,IAAW;AAAA,EACfC,QAAQJ,EAAOI;AACjB,GAUaC,IAAOA,CAAC;AAAA,EAAEC,KAAAA,IAAM;AAAA,EAAQC,MAAAA;AAAAA,EAAMC,MAAAA,IAAO;AAAA,EAAUC,SAAAA;AAAAA,EAASC,QAAAA;AAAkB,MAAM;AAC3F,QAAMC,IAAY;AAAA,IAChBC,WAAWC,EAAQN,GAAMO,QAAWJ,CAAM;AAAA,EAAA;AAG5C,SACE,gBAAAK,EAAC,QAAA,EACC,eAAY,QACZ,WAAWC,EACTV,MAAQ,UAAUN,EAAO,OAAOM,CAAG,EAAE,GACrCR,EAAMU,CAAI,GACVR,EAAOiB,MACPR,KAAWN,EAASM,CAAO,CAC7B,GACA,OAAOE,GAAU,kBAAA,OAAA,CAAA;AAGvB,GAEaO,IAAeA,MAA2BC;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("../../classix-5H4IWnMA.cjs");require("react");require("../../icons-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("../../classix-5H4IWnMA.cjs");require("react");require("../../icons-B_uIKmIp.cjs");require("../../use-touched-Bq5Gjbpz.cjs");const e=require("../../index-rXfEqyt5.cjs");exports.Input=e.Input;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../classix-DG18itHa.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../../icons-
|
|
4
|
+
import "../../icons-Dm2kyF0g.js";
|
|
5
5
|
import "../../use-touched-B999bBr8.js";
|
|
6
|
-
import { I as a } from "../../index-
|
|
6
|
+
import { I as a } from "../../index-m3slpD7c.js";
|
|
7
7
|
export {
|
|
8
8
|
a as Input
|
|
9
9
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index47.css');const r=require("react/jsx-runtime"),N=require("../../classix-5H4IWnMA.cjs"),l=require("react");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index47.css');const r=require("react/jsx-runtime"),N=require("../../classix-5H4IWnMA.cjs"),l=require("react");function g(t){return l.isValidElement(t)&&t.type===l.Fragment}function w(t,e=[]){return l.Children.forEach(t,n=>{g(n)?w(n.props.children,e):e.push(n)}),e}function x(t,{wrapper:e="li"}={}){return w(t).filter(s=>s!==null).map((s,i)=>{if(l.isValidElement(s)&&s.type===e)return s;const c=l.isValidElement(s)&&s.key!=null?s.key:i;return l.createElement(e,{key:c},s)})}const d="_controls_1ywr2_1",z="_horizontal_1ywr2_6",F="_list_1ywr2_17",V="_columns_1ywr2_53",b="_compact_1ywr2_70",o={controls:d,horizontal:z,list:F,columns:V,compact:b},j=(t,e)=>{typeof t=="function"?t(e):t&&(t.current=e)};function k({children:t,className:e,columns:n=1,compact:u=!1,controls:s,horizontal:i,ordered:c,ref:m,style:E,...f}){const y=Number.isFinite(n)?Math.max(1,Math.floor(n)):1,_=N.t(e,o.list,y>1&&o.columns,i&&o.horizontal,u&&o.compact),p={...E,"--list-columns":y},h=c?r.jsx("ol",{className:_,ref:a=>j(m,a),style:p,...f,children:x(t)}):r.jsx("ul",{className:_,ref:a=>j(m,a),style:p,...f,children:x(t)});return s==null?h:r.jsxs(r.Fragment,{children:[r.jsx("div",{className:o.controls,children:s}),h]})}exports.List=k;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -9,7 +9,7 @@ function N(t, s = []) {
|
|
|
9
9
|
d(l) ? N(l.props.children, s) : s.push(l);
|
|
10
10
|
}), s;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function w(t, {
|
|
13
13
|
wrapper: s = "li"
|
|
14
14
|
} = {}) {
|
|
15
15
|
return N(t).filter((n) => n !== null).map((n, r) => {
|
|
@@ -21,16 +21,16 @@ function h(t, {
|
|
|
21
21
|
}, n);
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
const
|
|
25
|
-
controls:
|
|
26
|
-
horizontal:
|
|
27
|
-
list:
|
|
28
|
-
columns:
|
|
29
|
-
compact:
|
|
24
|
+
const g = "_controls_1ywr2_1", k = "_horizontal_1ywr2_6", C = "_list_1ywr2_17", j = "_columns_1ywr2_53", v = "_compact_1ywr2_70", o = {
|
|
25
|
+
controls: g,
|
|
26
|
+
horizontal: k,
|
|
27
|
+
list: C,
|
|
28
|
+
columns: j,
|
|
29
|
+
compact: v
|
|
30
30
|
}, E = (t, s) => {
|
|
31
31
|
typeof t == "function" ? t(s) : t && (t.current = s);
|
|
32
32
|
};
|
|
33
|
-
function
|
|
33
|
+
function b({
|
|
34
34
|
children: t,
|
|
35
35
|
className: s,
|
|
36
36
|
columns: l = 1,
|
|
@@ -42,16 +42,16 @@ function w({
|
|
|
42
42
|
style: x,
|
|
43
43
|
...f
|
|
44
44
|
}) {
|
|
45
|
-
const _ = Number.isFinite(l) ? Math.max(1, Math.floor(l)) : 1,
|
|
45
|
+
const _ = Number.isFinite(l) ? Math.max(1, Math.floor(l)) : 1, y = V(s, o.list, _ > 1 && o.columns, r && o.horizontal, m && o.compact), p = {
|
|
46
46
|
...x,
|
|
47
47
|
"--list-columns": _
|
|
48
|
-
},
|
|
49
|
-
return n == null ?
|
|
48
|
+
}, h = i ? /* @__PURE__ */ a("ol", { className: y, ref: (c) => E(u, c), style: p, ...f, children: w(t) }) : /* @__PURE__ */ a("ul", { className: y, ref: (c) => E(u, c), style: p, ...f, children: w(t) });
|
|
49
|
+
return n == null ? h : /* @__PURE__ */ z(F, { children: [
|
|
50
50
|
/* @__PURE__ */ a("div", { className: o.controls, children: n }),
|
|
51
|
-
|
|
51
|
+
h
|
|
52
52
|
] });
|
|
53
53
|
}
|
|
54
54
|
export {
|
|
55
|
-
|
|
55
|
+
b as List
|
|
56
56
|
};
|
|
57
57
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),x=require("../button/index.cjs"),j=require("../icon/index.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),x=require("../button/index.cjs"),j=require("../icon/index.cjs"),i=require("../../menu-popover-CM3v5s-5.cjs");function M(e){return[...e].sort((n,a)=>+!!n.isDanger-+!!a.isDanger)}const v=e=>M(e).map(n=>({button:r.jsxs(x.Button,{"aria-label":n.accessibleLabel,disabled:n.disabled,children:[n.icon&&r.jsx(j.Icon,{gap:"right",name:n.icon,size:"small"}),r.jsx("span",{children:n.label})]}),id:n.id,isActive:n.isActive,isDanger:n.isDanger,value:n})),D=({inline:e=!1,items:n,menuAccessibleLabel:a="Menu",onItemSelect:s,triggerAccessibleLabel:l="Open menu",triggerIcon:p="DotsThreeVertical",triggerLabel:b,variant:g="popover"})=>{const t=v(n);return g==="simple"?r.jsx(i.MenuActionList,{actions:t,menuAccessibleLabel:a,onSelect:o=>{var u;(u=o.onSelect)==null||u.call(o),s==null||s(o)},"data-component":"menu"}):r.jsx(i.MenuPopover,{inline:e,triggerAccessibleLabel:l,triggerIcon:p,triggerLabel:b,"data-component":"menu",children:({close:o,initialFocus:u})=>r.jsx(i.MenuActionList,{actions:t,initialFocus:u,menuAccessibleLabel:a,onSelect:c=>{var d;(d=c.onSelect)==null||d.call(c),s==null||s(c),o()},usesMenuSemantics:!0})})};exports.Menu=D;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/menu/index.tsx"],"sourcesContent":["import { Button } from '@/components/button';\nimport { Icon
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/menu/index.tsx"],"sourcesContent":["import { Button } from '@/components/button';\nimport { Icon, type IconName } from '@/components/icon';\n\nimport { type MenuAction, MenuActionList } from './action-list';\nimport { MenuPopover } from './menu-popover';\n\nexport type MenuItem = {\n accessibleLabel?: string;\n disabled?: boolean;\n icon?: IconName;\n id?: string;\n isActive?: boolean;\n isDanger?: boolean;\n label: React.ReactNode;\n onSelect?: () => void;\n};\n\ntype MenuSharedProps = {\n items: MenuItem[];\n menuAccessibleLabel?: string;\n onItemSelect?: (item: MenuItem) => void;\n};\n\ntype PopoverMenuProps = {\n inline?: boolean;\n triggerAccessibleLabel?: string;\n triggerIcon?: IconName;\n triggerLabel?: React.ReactNode;\n variant?: 'popover';\n};\n\ntype SimpleMenuProps = {\n inline?: never;\n triggerAccessibleLabel?: never;\n triggerIcon?: never;\n triggerLabel?: never;\n variant: 'simple';\n};\n\nexport type MenuProps = MenuSharedProps & (PopoverMenuProps | SimpleMenuProps);\n\nfunction sortDangerItemsLast(items: MenuItem[]) {\n return [...items].sort(\n (left, right) => Number(Boolean(left.isDanger)) - Number(Boolean(right.isDanger))\n );\n}\n\nconst getActions = (items: MenuItem[]): MenuAction<MenuItem>[] =>\n sortDangerItemsLast(items).map((item) => ({\n button: (\n <Button\n aria-label={item.accessibleLabel}\n disabled={item.disabled}\n >\n {item.icon && (\n <Icon\n gap='right'\n name={item.icon}\n size='small'\n />\n )}\n <span>{item.label}</span>\n </Button>\n ),\n id: item.id,\n isActive: item.isActive,\n isDanger: item.isDanger,\n value: item,\n }));\n\nexport const Menu = ({\n inline = false,\n items,\n menuAccessibleLabel = 'Menu',\n onItemSelect,\n triggerAccessibleLabel = 'Open menu',\n triggerIcon = 'DotsThreeVertical',\n triggerLabel,\n variant = 'popover',\n}: MenuProps) => {\n const actions = getActions(items);\n\n if (variant === 'simple') {\n return (\n <MenuActionList\n actions={actions}\n menuAccessibleLabel={menuAccessibleLabel}\n onSelect={(item) => {\n item.onSelect?.();\n onItemSelect?.(item);\n }}\n />\n );\n }\n\n return (\n <MenuPopover\n inline={inline}\n triggerAccessibleLabel={triggerAccessibleLabel}\n triggerIcon={triggerIcon}\n triggerLabel={triggerLabel}\n >\n {({ close, initialFocus }) => (\n <MenuActionList\n actions={actions}\n initialFocus={initialFocus}\n menuAccessibleLabel={menuAccessibleLabel}\n onSelect={(item) => {\n item.onSelect?.();\n onItemSelect?.(item);\n close();\n }}\n usesMenuSemantics\n />\n )}\n </MenuPopover>\n );\n};\n"],"names":["sortDangerItemsLast","items","sort","left","right","Number","Boolean","isDanger","getActions","map","item","button","Button","accessibleLabel","disabled","icon","Icon","jsx","label","id","isActive","value","Menu","inline","menuAccessibleLabel","onItemSelect","triggerAccessibleLabel","triggerIcon","triggerLabel","variant","actions","MenuActionList","onSelect","MenuPopover","close","initialFocus"],"mappings":"kOAyCA,SAASA,EAAoBC,EAAmB,CAC9C,MAAO,CAAC,GAAGA,CAAK,EAAEC,KAChB,CAACC,EAAMC,IAAUC,CAAOC,EAAQH,EAAKI,SAAaF,CAAOC,EAAQF,EAAMG,QACzE,CACF,CAEA,MAAMC,EAAcP,GAClBD,EAAoBC,CAAK,EAAEQ,IAAKC,IAAU,CACxCC,cACGC,SAAA,CACC,aAAYF,EAAKG,gBACjB,SAAUH,EAAKI,SAEdJ,SAAAA,CAAAA,EAAKK,YACHC,EAAAA,KAAA,CACC,IAAI,QACJ,KAAMN,EAAKK,KACX,KAAK,OAAA,CAAO,EAGhBE,EAAAA,IAAC,OAAA,CAAMP,SAAAA,EAAKQ,KAAAA,CAAM,CAAA,EACpB,EAEFC,GAAIT,EAAKS,GACTC,SAAUV,EAAKU,SACfb,SAAUG,EAAKH,SACfc,MAAOX,CACT,EAAE,EAESY,EAAOA,CAAC,CACnBC,OAAAA,EAAS,GACTtB,MAAAA,EACAuB,oBAAAA,EAAsB,OACtBC,aAAAA,EACAC,uBAAAA,EAAyB,YACzBC,YAAAA,EAAc,oBACdC,aAAAA,EACAC,QAAAA,EAAU,SACD,IAAM,CACf,MAAMC,EAAUtB,EAAWP,CAAK,EAEhC,OAAI4B,IAAY,SAEZZ,EAAAA,IAACc,EAAAA,eAAA,CACC,QAAAD,EACA,oBAAAN,EACA,SAAWd,GAAS,QAClBA,EAAAA,EAAKsB,WAALtB,MAAAA,EAAAA,KAAAA,GACAe,GAAAA,MAAAA,EAAef,EACjB,EAAE,iBAAA,OAAA,EAMNO,MAACgB,EAAAA,aACC,OAAAV,EACA,uBAAAG,EACA,YAAAC,EACA,aAAAC,EAA2B,iBAAA,OAE1B,SAAA,CAAC,CAAEM,MAAAA,EAAOC,aAAAA,CAAAA,IACTlB,EAAAA,IAACc,EAAAA,eAAA,CACC,QAAAD,EACA,aAAAK,EACA,oBAAAX,EACA,SAAWd,GAAS,QAClBA,EAAAA,EAAKsB,WAALtB,MAAAA,EAAAA,KAAAA,GACAe,GAAAA,MAAAA,EAAef,GACfwB,EAAAA,CACF,EACA,kBAAiB,EAAA,CAAA,EAGvB,CAEJ"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { Button as
|
|
3
|
-
import { Icon as
|
|
4
|
-
import { M as d, a as
|
|
5
|
-
function t(
|
|
6
|
-
return [...
|
|
1
|
+
import { jsx as o, jsxs as D } from "react/jsx-runtime";
|
|
2
|
+
import { Button as M } from "../button/index.js";
|
|
3
|
+
import { Icon as h } from "../icon/index.js";
|
|
4
|
+
import { M as d, a as v } from "../../menu-popover-DOkciab5.js";
|
|
5
|
+
function t(s) {
|
|
6
|
+
return [...s].sort((n, u) => +!!n.isDanger - +!!u.isDanger);
|
|
7
7
|
}
|
|
8
|
-
const x = (
|
|
9
|
-
button: /* @__PURE__ */ M
|
|
10
|
-
n.icon && /* @__PURE__ */ o(
|
|
8
|
+
const x = (s) => t(s).map((n) => ({
|
|
9
|
+
button: /* @__PURE__ */ D(M, { "aria-label": n.accessibleLabel, disabled: n.disabled, children: [
|
|
10
|
+
n.icon && /* @__PURE__ */ o(h, { gap: "right", name: n.icon, size: "small" }),
|
|
11
11
|
/* @__PURE__ */ o("span", { children: n.label })
|
|
12
12
|
] }),
|
|
13
13
|
id: n.id,
|
|
@@ -15,25 +15,25 @@ const x = (a) => t(a).map((n) => ({
|
|
|
15
15
|
isDanger: n.isDanger,
|
|
16
16
|
value: n
|
|
17
17
|
})), N = ({
|
|
18
|
-
inline:
|
|
18
|
+
inline: s = !1,
|
|
19
19
|
items: n,
|
|
20
20
|
menuAccessibleLabel: u = "Menu",
|
|
21
21
|
onItemSelect: r,
|
|
22
22
|
triggerAccessibleLabel: e = "Open menu",
|
|
23
|
-
triggerIcon:
|
|
24
|
-
triggerLabel:
|
|
25
|
-
variant:
|
|
23
|
+
triggerIcon: g = "DotsThreeVertical",
|
|
24
|
+
triggerLabel: b,
|
|
25
|
+
variant: f = "popover"
|
|
26
26
|
}) => {
|
|
27
27
|
const c = x(n);
|
|
28
|
-
return
|
|
28
|
+
return f === "simple" ? /* @__PURE__ */ o(d, { actions: c, menuAccessibleLabel: u, onSelect: (a) => {
|
|
29
29
|
var i;
|
|
30
|
-
(i =
|
|
31
|
-
}, "data-component": "menu" }) : /* @__PURE__ */ o(
|
|
32
|
-
close:
|
|
30
|
+
(i = a.onSelect) == null || i.call(a), r == null || r(a);
|
|
31
|
+
}, "data-component": "menu" }) : /* @__PURE__ */ o(v, { inline: s, triggerAccessibleLabel: e, triggerIcon: g, triggerLabel: b, "data-component": "menu", children: ({
|
|
32
|
+
close: a,
|
|
33
33
|
initialFocus: i
|
|
34
34
|
}) => /* @__PURE__ */ o(d, { actions: c, initialFocus: i, menuAccessibleLabel: u, onSelect: (p) => {
|
|
35
35
|
var l;
|
|
36
|
-
(l = p.onSelect) == null || l.call(p), r == null || r(p),
|
|
36
|
+
(l = p.onSelect) == null || l.call(p), r == null || r(p), a();
|
|
37
37
|
}, usesMenuSemantics: !0 }) });
|
|
38
38
|
};
|
|
39
39
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/menu/index.tsx"],"sourcesContent":["import { Button } from '@/components/button';\nimport { Icon
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/menu/index.tsx"],"sourcesContent":["import { Button } from '@/components/button';\nimport { Icon, type IconName } from '@/components/icon';\n\nimport { type MenuAction, MenuActionList } from './action-list';\nimport { MenuPopover } from './menu-popover';\n\nexport type MenuItem = {\n accessibleLabel?: string;\n disabled?: boolean;\n icon?: IconName;\n id?: string;\n isActive?: boolean;\n isDanger?: boolean;\n label: React.ReactNode;\n onSelect?: () => void;\n};\n\ntype MenuSharedProps = {\n items: MenuItem[];\n menuAccessibleLabel?: string;\n onItemSelect?: (item: MenuItem) => void;\n};\n\ntype PopoverMenuProps = {\n inline?: boolean;\n triggerAccessibleLabel?: string;\n triggerIcon?: IconName;\n triggerLabel?: React.ReactNode;\n variant?: 'popover';\n};\n\ntype SimpleMenuProps = {\n inline?: never;\n triggerAccessibleLabel?: never;\n triggerIcon?: never;\n triggerLabel?: never;\n variant: 'simple';\n};\n\nexport type MenuProps = MenuSharedProps & (PopoverMenuProps | SimpleMenuProps);\n\nfunction sortDangerItemsLast(items: MenuItem[]) {\n return [...items].sort(\n (left, right) => Number(Boolean(left.isDanger)) - Number(Boolean(right.isDanger))\n );\n}\n\nconst getActions = (items: MenuItem[]): MenuAction<MenuItem>[] =>\n sortDangerItemsLast(items).map((item) => ({\n button: (\n <Button\n aria-label={item.accessibleLabel}\n disabled={item.disabled}\n >\n {item.icon && (\n <Icon\n gap='right'\n name={item.icon}\n size='small'\n />\n )}\n <span>{item.label}</span>\n </Button>\n ),\n id: item.id,\n isActive: item.isActive,\n isDanger: item.isDanger,\n value: item,\n }));\n\nexport const Menu = ({\n inline = false,\n items,\n menuAccessibleLabel = 'Menu',\n onItemSelect,\n triggerAccessibleLabel = 'Open menu',\n triggerIcon = 'DotsThreeVertical',\n triggerLabel,\n variant = 'popover',\n}: MenuProps) => {\n const actions = getActions(items);\n\n if (variant === 'simple') {\n return (\n <MenuActionList\n actions={actions}\n menuAccessibleLabel={menuAccessibleLabel}\n onSelect={(item) => {\n item.onSelect?.();\n onItemSelect?.(item);\n }}\n />\n );\n }\n\n return (\n <MenuPopover\n inline={inline}\n triggerAccessibleLabel={triggerAccessibleLabel}\n triggerIcon={triggerIcon}\n triggerLabel={triggerLabel}\n >\n {({ close, initialFocus }) => (\n <MenuActionList\n actions={actions}\n initialFocus={initialFocus}\n menuAccessibleLabel={menuAccessibleLabel}\n onSelect={(item) => {\n item.onSelect?.();\n onItemSelect?.(item);\n close();\n }}\n usesMenuSemantics\n />\n )}\n </MenuPopover>\n );\n};\n"],"names":["sortDangerItemsLast","items","sort","left","right","Number","Boolean","isDanger","getActions","map","item","button","Button","accessibleLabel","disabled","icon","Icon","jsx","label","id","isActive","value","Menu","inline","menuAccessibleLabel","onItemSelect","triggerAccessibleLabel","triggerIcon","triggerLabel","variant","actions","MenuActionList","onSelect","MenuPopover","close","initialFocus"],"mappings":";;;;AAyCA,SAASA,EAAoBC,GAAmB;AAC9C,SAAO,CAAC,GAAGA,CAAK,EAAEC,KAChB,CAACC,GAAMC,MAAUC,CAAOC,EAAQH,EAAKI,WAAaF,CAAOC,EAAQF,EAAMG,QACzE;AACF;AAEA,MAAMC,IAAaA,CAACP,MAClBD,EAAoBC,CAAK,EAAEQ,IAAKC,CAAAA,OAAU;AAAA,EACxCC,0BACGC,GAAA,EACC,cAAYF,EAAKG,iBACjB,UAAUH,EAAKI,UAEdJ,UAAAA;AAAAA,IAAAA,EAAKK,0BACHC,GAAA,EACC,KAAI,SACJ,MAAMN,EAAKK,MACX,MAAK,QAAA,CAAO;AAAA,IAGhB,gBAAAE,EAAC,QAAA,EAAMP,UAAAA,EAAKQ,MAAAA,CAAM;AAAA,EAAA,GACpB;AAAA,EAEFC,IAAIT,EAAKS;AAAAA,EACTC,UAAUV,EAAKU;AAAAA,EACfb,UAAUG,EAAKH;AAAAA,EACfc,OAAOX;AACT,EAAE,GAESY,IAAOA,CAAC;AAAA,EACnBC,QAAAA,IAAS;AAAA,EACTtB,OAAAA;AAAAA,EACAuB,qBAAAA,IAAsB;AAAA,EACtBC,cAAAA;AAAAA,EACAC,wBAAAA,IAAyB;AAAA,EACzBC,aAAAA,IAAc;AAAA,EACdC,cAAAA;AAAAA,EACAC,SAAAA,IAAU;AACD,MAAM;AACf,QAAMC,IAAUtB,EAAWP,CAAK;AAEhC,SAAI4B,MAAY,WAEZ,gBAAAZ,EAACc,GAAA,EACC,SAAAD,GACA,qBAAAN,GACA,UAAWd,CAAAA,MAAS;;AAClBA,KAAAA,IAAAA,EAAKsB,aAALtB,QAAAA,EAAAA,KAAAA,IACAe,KAAAA,QAAAA,EAAef;AAAAA,EACjB,GAAE,kBAAA,QAAA,IAMN,gBAAAO,EAACgB,KACC,QAAAV,GACA,wBAAAG,GACA,aAAAC,GACA,cAAAC,GAA2B,kBAAA,QAE1B,UAAA,CAAC;AAAA,IAAEM,OAAAA;AAAAA,IAAOC,cAAAA;AAAAA,EAAAA,MACT,gBAAAlB,EAACc,GAAA,EACC,SAAAD,GACA,cAAAK,GACA,qBAAAX,GACA,UAAWd,CAAAA,MAAS;;AAClBA,KAAAA,IAAAA,EAAKsB,aAALtB,QAAAA,EAAAA,KAAAA,IACAe,KAAAA,QAAAA,EAAef,IACfwB,EAAAA;AAAAA,EACF,GACA,mBAAiB,GAAA,CAAA,GAGvB;AAEJ;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index15.css');const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index15.css');const e=require("react/jsx-runtime"),v=require("../../classix-5H4IWnMA.cjs"),x=require("../avatar/index.cjs"),y=require("../icon/index.cjs"),h="_attachments_1yja9_1",w="_message_1yja9_11",S="_timestamp_1yja9_142",b="_preview_1yja9_147",a={attachments:h,"message-group":"_message-group_1yja9_11",message:w,timestamp:S,preview:b},f=({appearance:o="default",attachments:m,author:t,authorColor:r,authorImageUrl:l,authorRole:d,content:g,iconName:_="Info",id:p,preview:j,timestamp:c,timestampText:u,type:s="default"})=>{const n=c?new Date(c):void 0,i=n?e.jsx("time",{className:a.timestamp,dateTime:n.toISOString(),children:u??n.toLocaleString()}):null;return e.jsxs("div",{className:a["message-group"],"data-message-type":s,"data-component":"message",children:[t&&e.jsx(x.Avatar,{accessibleLabel:t,color:r,imageUrl:l,name:t,role:d}),s==="system"&&i,e.jsxs("div",{className:v.t(a.message,j&&a.preview),"data-appearance":o,"data-id":p,"data-type":s,children:[s=="system"&&e.jsx(y.Icon,{gap:"right",name:_}),g]}),m&&e.jsx("div",{className:a.attachments,children:m}),s!=="system"&&i]})};exports.Message=f;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/message/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport { IconName } from '@/components/icon
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/message/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport type { IconName } from '@/components/icon';\n\nimport { Avatar, type AvatarColor } from '../avatar';\nimport { Icon } from '../icon';\nimport styles from './styles.module.css';\n\nexport type MessageOptions = {\n appearance?: 'default' | 'document' | 'file';\n attachments?: React.ReactNode;\n author?: string;\n authorColor?: AvatarColor;\n authorImageUrl?: string;\n authorRole?: string;\n content: React.ReactNode;\n iconName?: IconName;\n id: string;\n preview?: boolean;\n timestamp?: Date | string;\n timestampText?: React.ReactNode;\n type?: 'default' | 'minimal' | 'system' | 'user';\n};\n\nexport const Message = ({\n appearance = 'default',\n attachments,\n author,\n authorColor,\n authorImageUrl,\n authorRole,\n content,\n iconName = 'Info',\n id,\n preview,\n timestamp,\n timestampText,\n type = 'default',\n}: MessageOptions) => {\n const date = timestamp ? new Date(timestamp) : undefined;\n const timestampElement = date ? (\n <time\n className={styles.timestamp}\n dateTime={date.toISOString()}\n >\n {timestampText ?? date.toLocaleString()}\n </time>\n ) : null;\n\n return (\n <div\n className={styles['message-group']}\n data-message-type={type}\n >\n {author && (\n <Avatar\n accessibleLabel={author}\n color={authorColor}\n imageUrl={authorImageUrl}\n name={author}\n role={authorRole}\n />\n )}\n {type === 'system' && timestampElement}\n <div\n className={cx(styles.message, preview && styles.preview)}\n data-appearance={appearance}\n data-id={id}\n data-type={type}\n >\n {type == 'system' && (\n <Icon\n gap='right'\n name={iconName}\n />\n )}\n {content}\n </div>\n {attachments && <div className={styles.attachments}>{attachments}</div>}\n {type !== 'system' && timestampElement}\n </div>\n );\n};\n"],"names":["Message","appearance","attachments","author","authorColor","authorImageUrl","authorRole","content","iconName","id","preview","timestamp","timestampText","type","date","Date","undefined","timestampElement","jsx","styles","toISOString","toLocaleString","jsxs","Avatar","cx","message","Icon"],"mappings":"wZAwBaA,EAAUA,CAAC,CACtBC,WAAAA,EAAa,UACbC,YAAAA,EACAC,OAAAA,EACAC,YAAAA,EACAC,eAAAA,EACAC,WAAAA,EACAC,QAAAA,EACAC,SAAAA,EAAW,OACXC,GAAAA,EACAC,QAAAA,EACAC,UAAAA,EACAC,cAAAA,EACAC,KAAAA,EAAO,SACO,IAAM,CACpB,MAAMC,EAAOH,EAAY,IAAII,KAAKJ,CAAS,EAAIK,OACzCC,EAAmBH,EACvBI,EAAAA,IAAC,OAAA,CACC,UAAWC,EAAOR,UAClB,SAAUG,EAAKM,cAEdR,SAAAA,GAAiBE,EAAKO,eAAAA,EACzB,EACE,KAEJ,OACEC,OAAC,OACC,UAAWH,EAAO,eAAe,EACjC,oBAAmBN,EAAK,iBAAA,UAEvBV,SAAAA,CAAAA,GACCe,EAAAA,IAACK,EAAAA,OAAA,CACC,gBAAiBpB,EACjB,MAAOC,EACP,SAAUC,EACV,KAAMF,EACN,KAAMG,CAAAA,CAAW,EAGpBO,IAAS,UAAYI,EACtBK,EAAAA,KAAC,MAAA,CACC,UAAWE,EAAAA,EAAGL,EAAOM,QAASf,GAAWS,EAAOT,OAAO,EACvD,kBAAiBT,EACjB,UAASQ,EACT,YAAWI,EAEVA,SAAAA,CAAAA,GAAQ,UACPK,EAAAA,IAACQ,EAAAA,KAAA,CACC,IAAI,QACJ,KAAMlB,EAAS,EAGlBD,CAAAA,EACH,EACCL,GAAegB,EAAAA,IAAC,MAAA,CAAI,UAAWC,EAAOjB,YAAcA,SAAAA,EAAY,EAChEW,IAAS,UAAYI,CAAAA,EACxB,CAEJ"}
|