@solibo/solibo-ui 1.0.15 → 1.0.17
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 +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/index18.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index47.css +1 -1
- package/dist/assets/index48.css +1 -1
- package/dist/assets/index49.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/menu-popover.css +1 -1
- package/dist/components/app-link/index.cjs +1 -1
- package/dist/components/app-link/index.js +8 -8
- package/dist/components/aside/index.cjs +1 -1
- package/dist/components/aside/index.js +11 -11
- package/dist/components/avatar/index.cjs +1 -1
- package/dist/components/avatar/index.cjs.map +1 -1
- package/dist/components/avatar/index.js +58 -58
- package/dist/components/badge/index.cjs +1 -1
- package/dist/components/badge/index.js +27 -27
- package/dist/components/banner/index.cjs +1 -1
- package/dist/components/banner/index.js +14 -14
- package/dist/components/button/index.cjs +1 -1
- package/dist/components/button/index.js +18 -18
- package/dist/components/card/index.cjs +1 -1
- package/dist/components/card/index.js +46 -46
- package/dist/components/checkbox/index.cjs +1 -1
- package/dist/components/checkbox/index.js +7 -7
- package/dist/components/collapsible/index.cjs +1 -1
- package/dist/components/collapsible/index.cjs.map +1 -1
- package/dist/components/collapsible/index.js +18 -37
- package/dist/components/collapsible/index.js.map +1 -1
- package/dist/components/controls/index.cjs +1 -1
- package/dist/components/controls/index.cjs.map +1 -1
- package/dist/components/controls/index.js +110 -90
- package/dist/components/controls/index.js.map +1 -1
- package/dist/components/croppable/index.cjs +1 -1
- package/dist/components/croppable/index.js +181 -181
- package/dist/components/dialog/index.cjs +1 -1
- package/dist/components/dialog/index.js +31 -31
- package/dist/components/dropdown/index.cjs +1 -1
- package/dist/components/dropdown/index.js +81 -81
- package/dist/components/editor/index.cjs +16 -16
- package/dist/components/editor/index.cjs.map +1 -1
- package/dist/components/editor/index.js +196 -196
- package/dist/components/file/index.cjs +1 -1
- package/dist/components/file/index.js +24 -24
- package/dist/components/header/index.cjs +1 -1
- package/dist/components/header/index.cjs.map +1 -1
- package/dist/components/header/index.js +14 -14
- package/dist/components/icon/index.cjs +1 -1
- package/dist/components/icon/index.js +20 -20
- 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 +24 -24
- package/dist/components/loading/index.cjs +1 -1
- package/dist/components/loading/index.js +11 -11
- package/dist/components/menu/index.cjs +1 -1
- package/dist/components/menu/index.js +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 +26 -26
- package/dist/components/messages/index.cjs +1 -1
- package/dist/components/messages/index.js +20 -20
- package/dist/components/nav/index.cjs +1 -1
- package/dist/components/nav/index.js +13 -13
- package/dist/components/popover/index.cjs +1 -1
- package/dist/components/popover/index.js +38 -38
- package/dist/components/portal/index.cjs +1 -1
- package/dist/components/portal/index.js +7 -7
- package/dist/components/search/index.cjs +1 -1
- package/dist/components/search/index.cjs.map +1 -1
- package/dist/components/search/index.js +36 -36
- package/dist/components/select/index.cjs +1 -1
- package/dist/components/select/index.js +2 -2
- package/dist/components/sortable/index.cjs +1 -1
- package/dist/components/sortable/index.js +74 -74
- package/dist/components/textarea/index.cjs +1 -1
- package/dist/components/textarea/index.js +15 -15
- package/dist/components/toasts/index.cjs +1 -1
- package/dist/components/toasts/index.js +4 -4
- package/dist/components/toggle/index.cjs +1 -1
- package/dist/components/toggle/index.js +6 -6
- package/dist/components/tooltip/index.cjs +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/{icons-Dj0vEOCB.js → icons-BkaMeh-J.js} +2 -1
- package/dist/{icons-DaZGJzI0.cjs.map → icons-BkaMeh-J.js.map} +1 -1
- package/dist/icons-Lq3pr85X.cjs +2 -0
- package/dist/icons-Lq3pr85X.cjs.map +1 -0
- package/dist/{index-DE2nzqL5.js → index-C-ESxR26.js} +24 -24
- package/dist/{index-DE2nzqL5.js.map → index-C-ESxR26.js.map} +1 -1
- package/dist/{index-Dn1v0qm6.cjs → index-CXge5nFf.cjs} +2 -2
- package/dist/{index-Dn1v0qm6.cjs.map → index-CXge5nFf.cjs.map} +1 -1
- package/dist/{index-CgA0NUMD.js → index-Rm3D-iwf.js} +2 -2
- package/dist/{index-CgA0NUMD.js.map → index-Rm3D-iwf.js.map} +1 -1
- package/dist/index-lALToPBm.cjs +2 -0
- package/dist/{index-DF8JisYI.cjs.map → index-lALToPBm.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +2 -2
- package/dist/{menu-popover-jTTxzTGZ.cjs → menu-popover-D1ALaiV5.cjs} +2 -2
- package/dist/{menu-popover-jTTxzTGZ.cjs.map → menu-popover-D1ALaiV5.cjs.map} +1 -1
- package/dist/{menu-popover-SiOOwab-.js → menu-popover-DQHDIw-8.js} +12 -12
- package/dist/{menu-popover-SiOOwab-.js.map → menu-popover-DQHDIw-8.js.map} +1 -1
- package/dist/tokens.json +1 -1
- package/package.json +1 -1
- package/dist/icons-DaZGJzI0.cjs +0 -2
- package/dist/icons-Dj0vEOCB.js.map +0 -1
- package/dist/index-DF8JisYI.cjs +0 -2
|
@@ -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"),h=require("../figure/index.cjs"),x=require("../icon/index.cjs"),j=require("../button/index.cjs"),N="_file_1427u_1",b="_action_1427u_14",g="_details_1427u_62",I="_name_1427u_69",q="_extension_1427u_81",v="_subtitle_1427u_91",n={file:N,action:b,delete:"_delete_1427u_15",details:g,"name-line":"_name-line_1427u_69",name:I,extension:q,subtitle:v},y={".doc":"document-doc",".docx":"document-doc",".pdf":"document-pdf",".ppt":"document-ppt",".pptx":"document-ppt",".xls":"document-xls",".xlsx":"document-xls"},F=({deleteAccessibleLabel:m,name:t,onClick:s,onDelete:a,ref:_,subtitle:d,url:r})=>{const c=t.lastIndexOf("."),u=c>0&&c<t.length-1,p=u?t.slice(0,c):t,i=u?t.slice(c):"",f=y[i.toLowerCase()]??"document",l=e.jsxs(e.Fragment,{children:[e.jsx(h.Figure,{children:e.jsx(x.Icon,{name:f,fill:!0})}),e.jsxs("span",{className:n.details,children:[e.jsxs("span",{className:n["name-line"],children:[e.jsx("span",{className:n.name,children:p}),i&&e.jsx("span",{className:n.extension,children:i})]}),d&&e.jsx("span",{className:n.subtitle,children:d})]})]});return e.jsxs("div",{className:n.file,ref:_,"data-component":"file",children:[r?e.jsx("a",{className:n.action,href:r,onClick:o=>{o.stopPropagation(),s&&(o.preventDefault(),s())},title:t,children:l}):s?e.jsx("button",{"aria-label":t,className:n.action,"data-actionable":"true",onClick:o=>{o.stopPropagation(),s()},title:t,type:"button",children:l}):e.jsx("div",{className:n.action,title:t,children:l}),a&&e.jsx(j.Button,{"aria-label":m??`Delete ${t}`,className:n.delete,onClick:()=>a(),variant:"simple",children:e.jsx(x.Icon,{name:"trash",size:"small",fill:!0})})]})};exports.File=F;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsxs as c, jsx as t, Fragment as
|
|
2
|
-
import { Figure as
|
|
3
|
-
import { Icon as
|
|
4
|
-
import { Button as
|
|
5
|
-
import '../../assets/index43.css';const
|
|
6
|
-
file:
|
|
7
|
-
action:
|
|
8
|
-
delete: "
|
|
9
|
-
details:
|
|
10
|
-
"name-line": "_name-
|
|
11
|
-
name:
|
|
12
|
-
extension:
|
|
13
|
-
subtitle:
|
|
14
|
-
},
|
|
1
|
+
import { jsxs as c, jsx as t, Fragment as N } from "react/jsx-runtime";
|
|
2
|
+
import { Figure as b } from "../figure/index.js";
|
|
3
|
+
import { Icon as p } from "../icon/index.js";
|
|
4
|
+
import { Button as g } from "../button/index.js";
|
|
5
|
+
import '../../assets/index43.css';const I = "_file_1427u_1", v = "_action_1427u_14", F = "_details_1427u_62", j = "_name_1427u_69", y = "_extension_1427u_81", P = "_subtitle_1427u_91", n = {
|
|
6
|
+
file: I,
|
|
7
|
+
action: v,
|
|
8
|
+
delete: "_delete_1427u_15",
|
|
9
|
+
details: F,
|
|
10
|
+
"name-line": "_name-line_1427u_69",
|
|
11
|
+
name: j,
|
|
12
|
+
extension: y,
|
|
13
|
+
subtitle: P
|
|
14
|
+
}, w = {
|
|
15
15
|
".doc": "document-doc",
|
|
16
16
|
".docx": "document-doc",
|
|
17
17
|
".pdf": "document-pdf",
|
|
@@ -19,35 +19,35 @@ import '../../assets/index43.css';const g = "_file_qqn4p_1", I = "_action_qqn4p_
|
|
|
19
19
|
".pptx": "document-ppt",
|
|
20
20
|
".xls": "document-xls",
|
|
21
21
|
".xlsx": "document-xls"
|
|
22
|
-
},
|
|
23
|
-
deleteAccessibleLabel:
|
|
22
|
+
}, E = ({
|
|
23
|
+
deleteAccessibleLabel: _,
|
|
24
24
|
name: e,
|
|
25
25
|
onClick: s,
|
|
26
26
|
onDelete: d,
|
|
27
27
|
ref: x,
|
|
28
|
-
subtitle:
|
|
29
|
-
url:
|
|
28
|
+
subtitle: r,
|
|
29
|
+
url: m
|
|
30
30
|
}) => {
|
|
31
|
-
const o = e.lastIndexOf("."),
|
|
32
|
-
/* @__PURE__ */ t(
|
|
31
|
+
const o = e.lastIndexOf("."), u = o > 0 && o < e.length - 1, f = u ? e.slice(0, o) : e, i = u ? e.slice(o) : "", h = w[i.toLowerCase()] ?? "document", a = /* @__PURE__ */ c(N, { children: [
|
|
32
|
+
/* @__PURE__ */ t(b, { children: /* @__PURE__ */ t(p, { name: h, fill: !0 }) }),
|
|
33
33
|
/* @__PURE__ */ c("span", { className: n.details, children: [
|
|
34
34
|
/* @__PURE__ */ c("span", { className: n["name-line"], children: [
|
|
35
35
|
/* @__PURE__ */ t("span", { className: n.name, children: f }),
|
|
36
36
|
i && /* @__PURE__ */ t("span", { className: n.extension, children: i })
|
|
37
37
|
] }),
|
|
38
|
-
|
|
38
|
+
r && /* @__PURE__ */ t("span", { className: n.subtitle, children: r })
|
|
39
39
|
] })
|
|
40
40
|
] });
|
|
41
41
|
return /* @__PURE__ */ c("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
44
|
}, title: e, children: a }) : s ? /* @__PURE__ */ t("button", { "aria-label": e, className: n.action, "data-actionable": "true", onClick: (l) => {
|
|
45
45
|
l.stopPropagation(), s();
|
|
46
46
|
}, title: e, type: "button", children: a }) : /* @__PURE__ */ t("div", { className: n.action, title: e, children: a }),
|
|
47
|
-
d && /* @__PURE__ */ t(
|
|
47
|
+
d && /* @__PURE__ */ t(g, { "aria-label": _ ?? `Delete ${e}`, className: n.delete, onClick: () => d(), variant: "simple", children: /* @__PURE__ */ t(p, { name: "trash", size: "small", fill: !0 }) })
|
|
48
48
|
] });
|
|
49
49
|
};
|
|
50
50
|
export {
|
|
51
|
-
|
|
51
|
+
E as File
|
|
52
52
|
};
|
|
53
53
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index18.css');const s=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index18.css');const s=require("react/jsx-runtime"),r=require("../../classix-5H4IWnMA.cjs"),c="_header_dygto_1",d="_capitalize_dygto_92",i="_jumbo_dygto_103",e={header:c,capitalize:d,jumbo:i},n={default:e.default,jumbo:e.jumbo},u=({capitalize:t=!1,children:a,variant:o="default"})=>s.jsx("header",{className:r.t(e.header,n[o],t&&e.capitalize),"data-component":"header",children:a});exports.Header=u;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/header/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nconst variants = {\n default: styles.default,\n jumbo: styles.jumbo,\n};\n\nexport type HeaderProps = {\n capitalize?: boolean;\n children: React.ReactNode;\n variant?: keyof typeof variants;\n};\n\nexport const Header = ({ capitalize = false, children, variant = 'default' }: HeaderProps) => {\n return (\n <header className={cx(styles.header, variants[variant], capitalize && styles.capitalize)}>\n {children}\n </header>\n );\n};\n"],"names":["variants","default","styles","jumbo","Header","capitalize","children","variant","jsx","cx","header"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/header/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nconst variants = {\n default: styles.default,\n jumbo: styles.jumbo,\n};\n\nexport type HeaderProps = {\n capitalize?: boolean;\n children: React.ReactNode;\n variant?: keyof typeof variants;\n};\n\nexport const Header = ({ capitalize = false, children, variant = 'default' }: HeaderProps) => {\n return (\n <header className={cx(styles.header, variants[variant], capitalize && styles.capitalize)}>\n {children}\n </header>\n );\n};\n"],"names":["variants","default","styles","jumbo","Header","capitalize","children","variant","jsx","cx","header"],"mappings":"iQAIMA,EAAW,CACfC,QAASC,EAAOD,QAChBE,MAAOD,EAAOC,KAChB,EAQaC,EAASA,CAAC,CAAEC,WAAAA,EAAa,GAAOC,SAAAA,EAAUC,QAAAA,EAAU,SAAuB,IAEpFC,EAAAA,IAAC,SAAA,CAAO,UAAWC,EAAAA,EAAGP,EAAOQ,OAAQV,EAASO,CAAO,EAAGF,GAAcH,EAAOG,UAAU,EAAE,iBAAA,SACtFC,SAAAA,EACH"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { t as
|
|
3
|
-
import '../../assets/index18.css';const
|
|
4
|
-
header:
|
|
5
|
-
capitalize:
|
|
6
|
-
jumbo:
|
|
7
|
-
},
|
|
8
|
-
default:
|
|
9
|
-
jumbo:
|
|
10
|
-
},
|
|
11
|
-
capitalize:
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { t as d } from "../../classix-DG18itHa.js";
|
|
3
|
+
import '../../assets/index18.css';const s = "_header_dygto_1", c = "_capitalize_dygto_92", i = "_jumbo_dygto_103", e = {
|
|
4
|
+
header: s,
|
|
5
|
+
capitalize: c,
|
|
6
|
+
jumbo: i
|
|
7
|
+
}, m = {
|
|
8
|
+
default: e.default,
|
|
9
|
+
jumbo: e.jumbo
|
|
10
|
+
}, u = ({
|
|
11
|
+
capitalize: a = !1,
|
|
12
12
|
children: t,
|
|
13
|
-
variant:
|
|
14
|
-
}) => /* @__PURE__ */
|
|
13
|
+
variant: o = "default"
|
|
14
|
+
}) => /* @__PURE__ */ r("header", { className: d(e.header, m[o], a && e.capitalize), "data-component": "header", children: t });
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
u as Header
|
|
17
17
|
};
|
|
18
18
|
//# 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 r=require("react/jsx-runtime"),g=require("../../classix-5H4IWnMA.cjs"),t=require("../../icons-Lq3pr85X.cjs"),l="_icon_1dkgk_1",d="_small_1dkgk_10",m="_medium_1dkgk_15",_="_large_1dkgk_20",k="_danger_1dkgk_25",e={icon:l,small:d,medium:m,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=({fill:o,gap:n="none",name:a,size:c="medium",variant:s})=>{const i={maskImage:t.iconSVG(a,o??!1)};return r.jsx("span",{"aria-hidden":"true",className:g.t(n!=="none"&&e[`gap-${n}`],u[c],e.icon,s&&p[s]),style:i,"data-component":"icon"})},I=()=>Object.keys(t.iconPaths);exports.Icon=y;exports.Icons=I;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { t as
|
|
3
|
-
import { i as
|
|
4
|
-
import '../../assets/index44.css';const
|
|
5
|
-
icon:
|
|
6
|
-
small:
|
|
7
|
-
medium:
|
|
8
|
-
large:
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { t as c } from "../../classix-DG18itHa.js";
|
|
3
|
+
import { i as g, a as i } from "../../icons-BkaMeh-J.js";
|
|
4
|
+
import '../../assets/index44.css';const l = "_icon_1dkgk_1", d = "_small_1dkgk_10", _ = "_medium_1dkgk_15", k = "_large_1dkgk_20", p = "_danger_1dkgk_25", n = {
|
|
5
|
+
icon: l,
|
|
6
|
+
small: d,
|
|
7
|
+
medium: _,
|
|
8
|
+
large: k,
|
|
9
9
|
danger: p,
|
|
10
|
-
"gap-right": "_gap-
|
|
11
|
-
"gap-left": "_gap-
|
|
10
|
+
"gap-right": "_gap-right_1dkgk_29",
|
|
11
|
+
"gap-left": "_gap-left_1dkgk_33"
|
|
12
12
|
}, u = {
|
|
13
13
|
large: n.large,
|
|
14
14
|
medium: n.medium,
|
|
15
15
|
small: n.small
|
|
16
16
|
}, f = {
|
|
17
17
|
danger: n.danger
|
|
18
|
-
},
|
|
19
|
-
fill:
|
|
18
|
+
}, j = ({
|
|
19
|
+
fill: s,
|
|
20
20
|
gap: e = "none",
|
|
21
|
-
name:
|
|
22
|
-
size:
|
|
23
|
-
variant:
|
|
21
|
+
name: o,
|
|
22
|
+
size: t = "medium",
|
|
23
|
+
variant: a
|
|
24
24
|
}) => {
|
|
25
|
-
const
|
|
26
|
-
maskImage:
|
|
25
|
+
const m = {
|
|
26
|
+
maskImage: g(o, s ?? !1)
|
|
27
27
|
};
|
|
28
|
-
return /* @__PURE__ */
|
|
29
|
-
}, x = () => Object.keys(
|
|
28
|
+
return /* @__PURE__ */ r("span", { "aria-hidden": "true", className: c(e !== "none" && n[`gap-${e}`], u[t], n.icon, a && f[a]), style: m, "data-component": "icon" });
|
|
29
|
+
}, x = () => Object.keys(i);
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
j as Icon,
|
|
32
32
|
x as Icons
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -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-Lq3pr85X.cjs");require("../../use-touched-Bq5Gjbpz.cjs");const e=require("../../index-lALToPBm.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-BkaMeh-J.js";
|
|
5
5
|
import "../../use-touched-B999bBr8.js";
|
|
6
|
-
import { I as a } from "../../index-
|
|
6
|
+
import { I as a } from "../../index-C-ESxR26.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
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index47.css');const i=require("react/jsx-runtime"),N=require("../../classix-5H4IWnMA.cjs"),l=require("react");function g(t){return l.isValidElement(t)&&t.type===l.Fragment}function j(t,e=[]){return l.Children.forEach(t,s=>{g(s)?j(s.props.children,e):e.push(s)}),e}function q(t,{wrapper:e="li"}={}){return j(t).filter(n=>n!==null).map((n,u)=>{if(l.isValidElement(n)&&n.type===e)return n;const o=l.isValidElement(n)&&n.key!=null?n.key:u;return l.createElement(e,{key:o},n)})}const p="_controls_uq9c5_1",d="_horizontal_uq9c5_6",z="_list_uq9c5_17",F="_columns_uq9c5_58",c={controls:p,horizontal:d,list:z,columns:F},x=(t,e)=>{typeof t=="function"?t(e):t&&(t.current=e)};function V({children:t,className:e,columns:s=1,controls:r,horizontal:n,ordered:u,ref:o,style:E,...m}){const f=Number.isFinite(s)?Math.max(1,Math.floor(s)):1,_=N.t(e,c.list,f>1&&c.columns,n&&c.horizontal),y={...E,"--list-columns":f},h=u?i.jsx("ol",{className:_,ref:a=>x(o,a),style:y,...m,children:q(t)}):i.jsx("ul",{className:_,ref:a=>x(o,a),style:y,...m,children:q(t)});return r==null?h:i.jsxs(i.Fragment,{children:[i.jsx("div",{className:c.controls,children:r}),h]})}exports.List=V;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { t as
|
|
1
|
+
import { jsx as u, jsxs as x, Fragment as z } from "react/jsx-runtime";
|
|
2
|
+
import { t as F } from "../../classix-DG18itHa.js";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import '../../assets/index47.css';function
|
|
4
|
+
import '../../assets/index47.css';function V(t) {
|
|
5
5
|
return e.isValidElement(t) && t.type === e.Fragment;
|
|
6
6
|
}
|
|
7
7
|
function N(t, n = []) {
|
|
8
8
|
return e.Children.forEach(t, (s) => {
|
|
9
|
-
|
|
9
|
+
V(s) ? N(s.props.children, n) : n.push(s);
|
|
10
10
|
}), n;
|
|
11
11
|
}
|
|
12
12
|
function p(t, {
|
|
13
13
|
wrapper: n = "li"
|
|
14
14
|
} = {}) {
|
|
15
|
-
return N(t).filter((l) => l !== null).map((l,
|
|
15
|
+
return N(t).filter((l) => l !== null).map((l, c) => {
|
|
16
16
|
if (e.isValidElement(l) && l.type === n)
|
|
17
17
|
return l;
|
|
18
|
-
const
|
|
18
|
+
const r = e.isValidElement(l) && l.key != null ? l.key : c;
|
|
19
19
|
return e.createElement(n, {
|
|
20
|
-
key:
|
|
20
|
+
key: r
|
|
21
21
|
}, l);
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
const
|
|
25
|
-
controls:
|
|
26
|
-
horizontal:
|
|
27
|
-
list:
|
|
28
|
-
columns:
|
|
24
|
+
const d = "_controls_uq9c5_1", g = "_horizontal_uq9c5_6", k = "_list_uq9c5_17", C = "_columns_uq9c5_58", i = {
|
|
25
|
+
controls: d,
|
|
26
|
+
horizontal: g,
|
|
27
|
+
list: k,
|
|
28
|
+
columns: C
|
|
29
29
|
}, E = (t, n) => {
|
|
30
30
|
typeof t == "function" ? t(n) : t && (t.current = n);
|
|
31
31
|
};
|
|
32
|
-
function
|
|
32
|
+
function M({
|
|
33
33
|
children: t,
|
|
34
34
|
className: n,
|
|
35
35
|
columns: s = 1,
|
|
36
|
-
controls:
|
|
36
|
+
controls: o,
|
|
37
37
|
horizontal: l,
|
|
38
|
-
ordered:
|
|
39
|
-
ref:
|
|
40
|
-
style:
|
|
41
|
-
...
|
|
38
|
+
ordered: c,
|
|
39
|
+
ref: r,
|
|
40
|
+
style: q,
|
|
41
|
+
...m
|
|
42
42
|
}) {
|
|
43
|
-
const f = Number.isFinite(s) ? Math.max(1, Math.floor(s)) : 1, _ =
|
|
44
|
-
...
|
|
43
|
+
const f = Number.isFinite(s) ? Math.max(1, Math.floor(s)) : 1, _ = F(n, i.list, f > 1 && i.columns, l && i.horizontal), y = {
|
|
44
|
+
...q,
|
|
45
45
|
"--list-columns": f
|
|
46
|
-
}, h =
|
|
47
|
-
return
|
|
48
|
-
/* @__PURE__ */
|
|
46
|
+
}, h = c ? /* @__PURE__ */ u("ol", { className: _, ref: (a) => E(r, a), style: y, ...m, children: p(t) }) : /* @__PURE__ */ u("ul", { className: _, ref: (a) => E(r, a), style: y, ...m, children: p(t) });
|
|
47
|
+
return o == null ? h : /* @__PURE__ */ x(z, { children: [
|
|
48
|
+
/* @__PURE__ */ u("div", { className: i.controls, children: o }),
|
|
49
49
|
h
|
|
50
50
|
] });
|
|
51
51
|
}
|
|
52
52
|
export {
|
|
53
|
-
|
|
53
|
+
M as List
|
|
54
54
|
};
|
|
55
55
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index48.css');const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index48.css');const t=require("react/jsx-runtime"),i=require("../../classix-5H4IWnMA.cjs"),e="_loading_1csd4_23",l="_spin_1csd4_1",_="_ping_1csd4_39",r="_sticky_1csd4_65",n={loading:e,default:"_default_1csd4_28",spin:l,ping:_,sticky:r},g=({variant:o="default",size:s,sticky:c=!1,...d})=>{const a={"--border-size":s?s/8+"px":void 0,"--size":s?s+"px":void 0};return t.jsx("div",{className:i.t(n.loading,c&&n.sticky),"data-component":"loading",children:t.jsx("span",{className:i.t(n.loading,n[o]),style:a,...d})})};exports.Loading=g;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { t
|
|
3
|
-
import '../../assets/index48.css';const l = "
|
|
2
|
+
import { t } from "../../classix-DG18itHa.js";
|
|
3
|
+
import '../../assets/index48.css';const l = "_loading_1csd4_23", _ = "_spin_1csd4_1", p = "_ping_1csd4_39", e = "_sticky_1csd4_65", n = {
|
|
4
4
|
loading: l,
|
|
5
|
-
default: "
|
|
5
|
+
default: "_default_1csd4_28",
|
|
6
6
|
spin: _,
|
|
7
7
|
ping: p,
|
|
8
8
|
sticky: e
|
|
9
9
|
}, m = ({
|
|
10
|
-
variant:
|
|
11
|
-
size:
|
|
12
|
-
sticky:
|
|
13
|
-
...
|
|
10
|
+
variant: i = "default",
|
|
11
|
+
size: s,
|
|
12
|
+
sticky: d = !1,
|
|
13
|
+
...c
|
|
14
14
|
}) => {
|
|
15
|
-
const
|
|
16
|
-
"--border-size":
|
|
17
|
-
"--size":
|
|
15
|
+
const a = {
|
|
16
|
+
"--border-size": s ? s / 8 + "px" : void 0,
|
|
17
|
+
"--size": s ? s + "px" : void 0
|
|
18
18
|
};
|
|
19
|
-
return /* @__PURE__ */ o("div", { className:
|
|
19
|
+
return /* @__PURE__ */ o("div", { className: t(n.loading, d && n.sticky), "data-component": "loading", children: /* @__PURE__ */ o("span", { className: t(n.loading, n[i]), style: a, ...c }) });
|
|
20
20
|
};
|
|
21
21
|
export {
|
|
22
22
|
m as Loading
|
|
@@ -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"),c=require("../../menu-popover-
|
|
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"),c=require("../../menu-popover-D1ALaiV5.cjs");function M(e){return[...e].sort((n,u)=>+!!n.isDanger-+!!u.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,{fill:!0,gap:"right",name:n.icon,size:"small"}),r.jsx("span",{children:n.label})]}),id:n.id,isActive:n.isActive,isDanger:n.isDanger,value:n})),f=({inline:e=!1,items:n,menuAccessibleLabel:u="Menu",onItemSelect:s,triggerAccessibleLabel:t="Open menu",triggerIcon:p="dots",triggerLabel:b,variant:g="popover"})=>{const d=v(n);return g==="simple"?r.jsx(c.MenuActionList,{actions:d,menuAccessibleLabel:u,onSelect:o=>{var a;(a=o.onSelect)==null||a.call(o),s==null||s(o)},"data-component":"menu"}):r.jsx(c.MenuPopover,{inline:e,triggerAccessibleLabel:t,triggerIcon:p,triggerLabel:b,"data-component":"menu",children:({close:o,initialFocus:a})=>r.jsx(c.MenuActionList,{actions:d,initialFocus:a,menuAccessibleLabel:u,onSelect:i=>{var l;(l=i.onSelect)==null||l.call(i),s==null||s(i),o()},usesMenuSemantics:!0})})};exports.Menu=f;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o, jsxs as M } from "react/jsx-runtime";
|
|
2
2
|
import { Button as v } from "../button/index.js";
|
|
3
3
|
import { Icon as D } from "../icon/index.js";
|
|
4
|
-
import { M as d, a as h } from "../../menu-popover-
|
|
4
|
+
import { M as d, a as h } from "../../menu-popover-DQHDIw-8.js";
|
|
5
5
|
function t(a) {
|
|
6
6
|
return [...a].sort((n, u) => +!!n.isDanger - +!!u.isDanger);
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
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"),
|
|
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"),j=require("../avatar/index.cjs"),h=require("../icon/index.cjs"),f="_attachments_opxtp_1",w="_message_opxtp_11",S="_timestamp_opxtp_125",b="_preview_opxtp_130",t={attachments:f,"message-group":"_message-group_opxtp_11",message:w,timestamp:S,preview:b},q=({appearance:c="default",attachments:i,author:a,authorColor:r,authorImageUrl:l,authorRole:p,content:d,iconName:g="info",id:_,preview:x,timestamp:m,timestampText:u,type:s="default"})=>{const n=m?new Date(m):void 0,o=n?e.jsx("time",{className:t.timestamp,dateTime:n.toISOString(),children:u??n.toLocaleString()}):null;return e.jsxs("div",{className:t["message-group"],"data-message-type":s,"data-component":"message",children:[a&&e.jsx(j.Avatar,{accessibleLabel:a,color:r,imageUrl:l,name:a,role:p}),s==="system"&&o,e.jsxs("div",{className:v.t(t.message,x&&t.preview),"data-appearance":c,"data-id":_,"data-type":s,children:[s=="system"&&e.jsx(h.Icon,{fill:!0,gap:"right",name:g}),d]}),i&&e.jsx("div",{className:t.attachments,children:i}),s!=="system"&&o]})};exports.Message=q;
|
|
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/icons.ts';\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 fill\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":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/message/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport { IconName } from '@/components/icon/icons.ts';\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 fill\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,gBACNa,EAAAA,KAAA,CACC,KAAI,GACJ,IAAI,QACJ,KAAMlB,CAAAA,CAAS,EAGlBD,CAAAA,EACH,EACCL,GAAegB,EAAAA,IAAC,MAAA,CAAI,UAAWC,EAAOjB,YAAcA,SAAAA,EAAY,EAChEW,IAAS,UAAYI,CAAAA,EACxB,CAEJ"}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { t as
|
|
3
|
-
import { Avatar as
|
|
4
|
-
import { Icon as
|
|
5
|
-
import '../../assets/index15.css';const
|
|
6
|
-
|
|
7
|
-
message:
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsx as s, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { t as h } from "../../classix-DG18itHa.js";
|
|
3
|
+
import { Avatar as u } from "../avatar/index.js";
|
|
4
|
+
import { Icon as w } from "../icon/index.js";
|
|
5
|
+
import '../../assets/index15.css';const N = "_attachments_opxtp_1", S = "_message_opxtp_11", b = "_timestamp_opxtp_125", j = "_preview_opxtp_130", t = {
|
|
6
|
+
attachments: N,
|
|
7
|
+
"message-group": "_message-group_opxtp_11",
|
|
8
|
+
message: S,
|
|
9
|
+
timestamp: b,
|
|
10
10
|
preview: j
|
|
11
11
|
}, D = ({
|
|
12
|
-
appearance:
|
|
13
|
-
attachments:
|
|
14
|
-
author:
|
|
15
|
-
authorColor:
|
|
16
|
-
authorImageUrl:
|
|
17
|
-
authorRole:
|
|
12
|
+
appearance: p = "default",
|
|
13
|
+
attachments: o,
|
|
14
|
+
author: a,
|
|
15
|
+
authorColor: c,
|
|
16
|
+
authorImageUrl: l,
|
|
17
|
+
authorRole: d,
|
|
18
18
|
content: g,
|
|
19
|
-
iconName:
|
|
20
|
-
id:
|
|
21
|
-
preview:
|
|
22
|
-
timestamp:
|
|
23
|
-
timestampText:
|
|
19
|
+
iconName: _ = "info",
|
|
20
|
+
id: v,
|
|
21
|
+
preview: f,
|
|
22
|
+
timestamp: i,
|
|
23
|
+
timestampText: x,
|
|
24
24
|
type: e = "default"
|
|
25
25
|
}) => {
|
|
26
|
-
const m =
|
|
27
|
-
return /* @__PURE__ */ n("div", { className:
|
|
28
|
-
|
|
26
|
+
const m = i ? new Date(i) : void 0, r = m ? /* @__PURE__ */ s("time", { className: t.timestamp, dateTime: m.toISOString(), children: x ?? m.toLocaleString() }) : null;
|
|
27
|
+
return /* @__PURE__ */ n("div", { className: t["message-group"], "data-message-type": e, "data-component": "message", children: [
|
|
28
|
+
a && /* @__PURE__ */ s(u, { accessibleLabel: a, color: c, imageUrl: l, name: a, role: d }),
|
|
29
29
|
e === "system" && r,
|
|
30
|
-
/* @__PURE__ */ n("div", { className:
|
|
31
|
-
e == "system" && /* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */ n("div", { className: h(t.message, f && t.preview), "data-appearance": p, "data-id": v, "data-type": e, children: [
|
|
31
|
+
e == "system" && /* @__PURE__ */ s(w, { fill: !0, gap: "right", name: _ }),
|
|
32
32
|
g
|
|
33
33
|
] }),
|
|
34
|
-
|
|
34
|
+
o && /* @__PURE__ */ s("div", { className: t.attachments, children: o }),
|
|
35
35
|
e !== "system" && r
|
|
36
36
|
] });
|
|
37
37
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index13.css');const s=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index13.css');const s=require("react/jsx-runtime"),S=require("../../classix-5H4IWnMA.cjs"),o=require("react"),h=require("../editor/index.cjs"),w=require("../list/index.cjs"),E=require("../tooltip/index.cjs"),I=require("../message/index.cjs"),L="_messages_pqp89_1",T="_fill_pqp89_20",p={messages:L,fill:T},H=({fill:g=!1,files:i,handleUpload:f,maxEditorRows:_=5,message:r="",messages:t,minEditorRows:q=1,onChange:x,onFilesChange:n,onSubmit:j,placeholder:y,sending:R,tooltipLabel:c})=>{var d;const a=o.useRef(null),[b,v]=o.useState([]),l=i??b,u=(d=t[t.length-1])==null?void 0:d.id,M=r.replace(/<[^>]*>/g,"").replace(/ /g," ").trim()==="";return o.useLayoutEffect(()=>{var m;const e=(m=a.current)==null?void 0:m.querySelector("[data-message-list]");!e||u===void 0||(e.scrollTop=e.scrollHeight)},[u]),s.jsxs("div",{className:S.t(p.messages,g&&p.fill),"data-component":"messages",ref:a,children:[s.jsx(w.List,{"data-message-list":!0,children:t.map(e=>s.jsx(I.Message,{...e},e.id))}),c&&s.jsx(E.Tooltip,{variant:"static",children:c}),s.jsx(h.Editor,{autofocus:!0,content:r,disabled:R||M&&l.length===0,files:l,maxRows:_,minRows:q,onChange:x,onFilesChange:e=>{i===void 0&&v(e),n==null||n(e)},onSubmit:j,onUpload:f,placeholder:y,submitLabel:"Send message"})]})};exports.Messages=H;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { t as
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { Editor as
|
|
5
|
-
import { List as
|
|
1
|
+
import { jsxs as x, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { t as E } from "../../classix-DG18itHa.js";
|
|
3
|
+
import { useRef as I, useState as L, useLayoutEffect as M } from "react";
|
|
4
|
+
import { Editor as S } from "../editor/index.js";
|
|
5
|
+
import { List as j } from "../list/index.js";
|
|
6
6
|
import { Tooltip as T } from "../tooltip/index.js";
|
|
7
7
|
import { Message as H } from "../message/index.js";
|
|
8
|
-
import '../../assets/index13.css';const N = "
|
|
8
|
+
import '../../assets/index13.css';const N = "_messages_pqp89_1", U = "_fill_pqp89_20", p = {
|
|
9
9
|
messages: N,
|
|
10
10
|
fill: U
|
|
11
11
|
}, K = ({
|
|
12
|
-
fill:
|
|
12
|
+
fill: d = !1,
|
|
13
13
|
files: r,
|
|
14
14
|
handleUpload: u,
|
|
15
15
|
maxEditorRows: g = 5,
|
|
16
16
|
message: i = "",
|
|
17
17
|
messages: t,
|
|
18
18
|
minEditorRows: _ = 1,
|
|
19
|
-
onChange:
|
|
19
|
+
onChange: q,
|
|
20
20
|
onFilesChange: o,
|
|
21
|
-
onSubmit:
|
|
22
|
-
placeholder:
|
|
23
|
-
sending:
|
|
21
|
+
onSubmit: v,
|
|
22
|
+
placeholder: y,
|
|
23
|
+
sending: R,
|
|
24
24
|
tooltipLabel: a
|
|
25
25
|
}) => {
|
|
26
26
|
var c;
|
|
27
|
-
const l =
|
|
28
|
-
return
|
|
29
|
-
var
|
|
30
|
-
const s = (
|
|
27
|
+
const l = I(null), [b, h] = L([]), m = r ?? b, n = (c = t[t.length - 1]) == null ? void 0 : c.id, w = i.replace(/<[^>]*>/g, "").replace(/ /g, " ").trim() === "";
|
|
28
|
+
return M(() => {
|
|
29
|
+
var f;
|
|
30
|
+
const s = (f = l.current) == null ? void 0 : f.querySelector("[data-message-list]");
|
|
31
31
|
!s || n === void 0 || (s.scrollTop = s.scrollHeight);
|
|
32
|
-
}, [n]), /* @__PURE__ */
|
|
33
|
-
/* @__PURE__ */ e(
|
|
32
|
+
}, [n]), /* @__PURE__ */ x("div", { className: E(p.messages, d && p.fill), "data-component": "messages", ref: l, children: [
|
|
33
|
+
/* @__PURE__ */ e(j, { "data-message-list": !0, children: t.map((s) => /* @__PURE__ */ e(H, { ...s }, s.id)) }),
|
|
34
34
|
a && /* @__PURE__ */ e(T, { variant: "static", children: a }),
|
|
35
|
-
/* @__PURE__ */ e(
|
|
36
|
-
r === void 0 &&
|
|
37
|
-
}, onSubmit:
|
|
35
|
+
/* @__PURE__ */ e(S, { autofocus: !0, content: i, disabled: R || w && m.length === 0, files: m, maxRows: g, minRows: _, onChange: q, onFilesChange: (s) => {
|
|
36
|
+
r === void 0 && h(s), o == null || o(s);
|
|
37
|
+
}, onSubmit: v, onUpload: u, placeholder: y, submitLabel: "Send message" })
|
|
38
38
|
] });
|
|
39
39
|
};
|
|
40
40
|
export {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index12.css');const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index12.css');const o=require("react/jsx-runtime"),r=require("../../classix-5H4IWnMA.cjs"),p=require("react"),h=require("../../icons-Lq3pr85X.cjs"),v="_nav_1hgi7_3",f="_label_1hgi7_9",g="_horizontal_1hgi7_17",m="_sidebar_1hgi7_27",N="_tabs_1hgi7_66",w="_pills_1hgi7_86",t={nav:v,label:f,horizontal:g,sidebar:m,tabs:N,pills:w},x={default:t.default,pills:t.pills,sidebar:t.sidebar,tabs:t.tabs},j=({className:e,...n})=>o.jsx("span",{className:r.t(e,t.label),...n,"data-component":"navlabel"}),q=({animation:e,children:n,className:c,horizontal:i=!1,variant:s="default",...d})=>{const[b,l]=p.useState(!1),u={"--icon-svg":h.iconSVG("chevron")};return o.jsx("nav",{className:r.t(c,i&&t.horizontal,t.nav,x[s]),"data-animation":e,"data-open":b?"true":"false","data-orientation":i?"horizontal":"vertical",onBlurCapture:a=>{if(s!=="pills"||window.innerWidth>960)return;const _=a.relatedTarget;a.currentTarget.contains(_)||l(!1)},onClick:()=>{s!=="pills"||window.innerWidth>960||l(a=>!a)},style:u,...d,"data-component":"nav",children:n})};exports.Nav=q;exports.NavLabel=j;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|