@solibo/solibo-ui 0.3.19 → 0.3.21
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/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index32.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/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -0
- package/dist/assets/index8.css +1 -1
- package/dist/components/_widget/index.cjs +1 -1
- package/dist/components/_widget/index.js +1 -1
- package/dist/components/accordion/index.cjs +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/app-link/index.cjs +1 -1
- package/dist/components/app-link/index.js +1 -1
- package/dist/components/aside/index.cjs +1 -1
- package/dist/components/aside/index.js +1 -1
- package/dist/components/badge/index.cjs +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/banner/index.cjs +1 -1
- package/dist/components/banner/index.js +1 -1
- package/dist/components/branding/index.cjs +1 -1
- package/dist/components/branding/index.js +1 -1
- package/dist/components/button/index.cjs +1 -1
- package/dist/components/button/index.cjs.map +1 -1
- package/dist/components/button/index.js +19 -14
- package/dist/components/button/index.js.map +1 -1
- package/dist/components/checkbox/index.cjs +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/controls/index.cjs +2 -0
- package/dist/components/controls/index.cjs.map +1 -0
- package/dist/components/controls/index.js +13 -0
- package/dist/components/controls/index.js.map +1 -0
- package/dist/components/dialog/index.cjs +1 -1
- package/dist/components/dialog/index.js +3 -3
- package/dist/components/figure/index.cjs +1 -1
- package/dist/components/figure/index.js +1 -1
- package/dist/components/form/index.cjs +1 -1
- package/dist/components/form/index.cjs.map +1 -1
- package/dist/components/form/index.js +9 -8
- package/dist/components/form/index.js.map +1 -1
- package/dist/components/group/index.cjs +1 -1
- package/dist/components/group/index.cjs.map +1 -1
- package/dist/components/group/index.js +9 -8
- package/dist/components/group/index.js.map +1 -1
- package/dist/components/header/index.cjs +1 -1
- package/dist/components/header/index.js +7 -7
- package/dist/components/icon/index.cjs +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.js +7 -7
- package/dist/components/link/index.cjs +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list/index.cjs +1 -1
- package/dist/components/list/index.cjs.map +1 -1
- package/dist/components/list/index.js +17 -17
- package/dist/components/list/index.js.map +1 -1
- package/dist/components/loading/index.cjs +1 -1
- package/dist/components/loading/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 +11 -11
- package/dist/components/message/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 +18 -16
- package/dist/components/nav/index.js.map +1 -1
- package/dist/components/table/index.cjs +1 -1
- package/dist/components/table/index.js +13 -13
- package/dist/components/toast/index.cjs +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toggle/index.cjs +1 -1
- package/dist/components/toggle/index.cjs.map +1 -1
- package/dist/components/toggle/index.js +17 -17
- package/dist/components/toggle/index.js.map +1 -1
- package/dist/helpers-Dbey5Ztb.js +25 -0
- package/dist/helpers-Dbey5Ztb.js.map +1 -0
- package/dist/helpers-fOobx0tS.cjs +2 -0
- package/dist/helpers-fOobx0tS.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +17 -13
- package/dist/index.js +54 -52
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/form/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/form/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nexport type FormProps = React.FormHTMLAttributes<HTMLFormElement> & {\n animation?: string;\n children?: React.ReactNode;\n className?: string;\n inline?: boolean;\n};\n\nexport const Form = ({ animation, children, className, inline = false, ...props }: FormProps) => {\n return (\n <form\n className={cx(className, inline && styles.inline, styles.form)}\n data-animation={animation}\n {...props}\n >\n {children && children}\n </form>\n );\n};\n"],"names":["Form","animation","children","className","inline","props","cx","styles","form"],"mappings":"wNAWaA,EAAOA,CAAC,CAAEC,UAAAA,EAAWC,SAAAA,EAAUC,UAAAA,EAAWC,OAAAA,EAAS,GAAO,GAAGC,CAAiB,UAEtF,OAAA,CACC,UAAWC,EAAAA,EAAGH,EAAWC,GAAUG,EAAOH,OAAQG,EAAOC,IAAI,EAC7D,iBAAgBP,EAChB,GAAII,EAAM,iBAAA,OAETH,YAAYA,EACf"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { t as s } from "../../classix-DG18itHa.js";
|
|
3
|
-
import '../../assets/index13.css';const
|
|
4
|
-
form:
|
|
5
|
-
inline:
|
|
3
|
+
import '../../assets/index13.css';const a = "_form_1by0q_1", f = "_inline_1by0q_17", n = {
|
|
4
|
+
form: a,
|
|
5
|
+
inline: f
|
|
6
6
|
}, _ = ({
|
|
7
|
-
animation:
|
|
8
|
-
children:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
animation: m,
|
|
8
|
+
children: o,
|
|
9
|
+
className: r,
|
|
10
|
+
inline: t = !1,
|
|
11
|
+
...i
|
|
12
|
+
}) => /* @__PURE__ */ e("form", { className: s(r, t && n.inline, n.form), "data-animation": m, ...i, "data-component": "form", children: o && o });
|
|
12
13
|
export {
|
|
13
14
|
_ as Form
|
|
14
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/form/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/form/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nexport type FormProps = React.FormHTMLAttributes<HTMLFormElement> & {\n animation?: string;\n children?: React.ReactNode;\n className?: string;\n inline?: boolean;\n};\n\nexport const Form = ({ animation, children, className, inline = false, ...props }: FormProps) => {\n return (\n <form\n className={cx(className, inline && styles.inline, styles.form)}\n data-animation={animation}\n {...props}\n >\n {children && children}\n </form>\n );\n};\n"],"names":["Form","animation","children","className","inline","props","cx","styles","form"],"mappings":";;;;;GAWaA,IAAOA,CAAC;AAAA,EAAEC,WAAAA;AAAAA,EAAWC,UAAAA;AAAAA,EAAUC,WAAAA;AAAAA,EAAWC,QAAAA,IAAS;AAAA,EAAO,GAAGC;AAAiB,wBAEtF,QAAA,EACC,WAAWC,EAAGH,GAAWC,KAAUG,EAAOH,QAAQG,EAAOC,IAAI,GAC7D,kBAAgBP,GAChB,GAAII,GAAM,kBAAA,QAETH,eAAYA,GACf;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index11.css');const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index11.css');const s=require("react/jsx-runtime"),u=require("../../classix-5H4IWnMA.cjs"),n="_group_g6ddz_1",a={group:n},c=({animation:o,children:t,className:r,...e})=>s.jsx("div",{className:u.t(r,a.group),"data-animation":o,...e,"data-component":"group",children:t});exports.Group=c;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/group/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/group/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nexport type GroupProps = React.HTMLAttributes<HTMLDivElement> & {\n animation?: string;\n children: React.ReactNode;\n};\n\nexport const Group = ({ animation, children, className, ...props }: GroupProps) => {\n return (\n <div\n className={cx(className, styles.group)}\n data-animation={animation}\n {...props}\n >\n {children}\n </div>\n );\n};\n"],"names":["Group","animation","children","className","props","jsx","cx","styles","group"],"mappings":"4LASaA,EAAQA,CAAC,CAAEC,UAAAA,EAAWC,SAAAA,EAAUC,UAAAA,EAAW,GAAGC,CAAkB,IAEzEC,EAAAA,IAAC,MAAA,CACC,UAAWC,EAAAA,EAAGH,EAAWI,EAAOC,KAAK,EACrC,iBAAgBP,EAChB,GAAIG,EAAM,iBAAA,QAETF,SAAAA,EACH"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { t as
|
|
3
|
-
import '../../assets/index11.css';const
|
|
4
|
-
group:
|
|
5
|
-
},
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { t as n } from "../../classix-DG18itHa.js";
|
|
3
|
+
import '../../assets/index11.css';const s = "_group_g6ddz_1", m = {
|
|
4
|
+
group: s
|
|
5
|
+
}, c = ({
|
|
6
6
|
animation: o,
|
|
7
7
|
children: r,
|
|
8
|
-
className:
|
|
9
|
-
|
|
8
|
+
className: t,
|
|
9
|
+
...p
|
|
10
|
+
}) => /* @__PURE__ */ a("div", { className: n(t, m.group), "data-animation": o, ...p, "data-component": "group", children: r });
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
+
c as Group
|
|
12
13
|
};
|
|
13
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/group/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/group/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nexport type GroupProps = React.HTMLAttributes<HTMLDivElement> & {\n animation?: string;\n children: React.ReactNode;\n};\n\nexport const Group = ({ animation, children, className, ...props }: GroupProps) => {\n return (\n <div\n className={cx(className, styles.group)}\n data-animation={animation}\n {...props}\n >\n {children}\n </div>\n );\n};\n"],"names":["Group","animation","children","className","props","jsx","cx","styles","group"],"mappings":";;;;GASaA,IAAQA,CAAC;AAAA,EAAEC,WAAAA;AAAAA,EAAWC,UAAAA;AAAAA,EAAUC,WAAAA;AAAAA,EAAW,GAAGC;AAAkB,MAEzE,gBAAAC,EAAC,OAAA,EACC,WAAWC,EAAGH,GAAWI,EAAOC,KAAK,GACrC,kBAAgBP,GAChB,GAAIG,GAAM,kBAAA,SAETF,UAAAA,GACH;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index10.css');const r=require("react/jsx-runtime"),o=require("../../classix-5H4IWnMA.cjs"),s="
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index10.css');const r=require("react/jsx-runtime"),o=require("../../classix-5H4IWnMA.cjs"),s="_header_fh66b_1",u="_jumbo_fh66b_46",e={header:s,jumbo:u},d={default:e.default,jumbo:e.jumbo},n=({children:t,variant:a="default"})=>r.jsx("header",{className:o.t(e.header,d[a]),"data-component":"header",children:t});exports.Header=n;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { t as r } from "../../classix-DG18itHa.js";
|
|
3
|
-
import '../../assets/index10.css';const
|
|
4
|
-
header:
|
|
5
|
-
jumbo:
|
|
6
|
-
},
|
|
3
|
+
import '../../assets/index10.css';const d = "_header_fh66b_1", m = "_jumbo_fh66b_46", e = {
|
|
4
|
+
header: d,
|
|
5
|
+
jumbo: m
|
|
6
|
+
}, s = {
|
|
7
7
|
default: e.default,
|
|
8
8
|
jumbo: e.jumbo
|
|
9
|
-
},
|
|
9
|
+
}, h = ({
|
|
10
10
|
children: o,
|
|
11
11
|
variant: t = "default"
|
|
12
|
-
}) => /* @__PURE__ */ a("header", { className: r(e.header,
|
|
12
|
+
}) => /* @__PURE__ */ a("header", { className: r(e.header, s[t]), "data-component": "header", children: o });
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
h as Header
|
|
15
15
|
};
|
|
16
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index37.css');const o=require("react/jsx-runtime"),r=require("../../classix-5H4IWnMA.cjs"),t=require("../../icons-BKi-xxXA.cjs"),l="_icon_wciqx_1",m="_small_wciqx_9",_="_medium_wciqx_14",g="_large_wciqx_19",u="_danger_wciqx_24",d="_primary_wciqx_32",w="_white_wciqx_36",e={icon:l,small:m,medium:_,large:g,danger:u,default:"_default_wciqx_28",primary:d,white:w,"gap-right":"_gap-right_wciqx_40","gap-left":"_gap-left_wciqx_44"},q={large:e.large,medium:e.medium,small:e.small},x={danger:e.danger,default:e.default,primary:e.primary,white:e.white},p=({gap:n="none",name:i,size:c="medium",variant:s="default"})=>{const a={maskImage:t.embedSVG(t.iconPaths[i].toString())};return o.jsx("span",{className:r.t(n!=="none"&&e[`gap-${n}`],q[c],e.icon,x[s]),style:a})},y=()=>Object.keys(t.iconPaths);exports.Icon=p;exports.Icons=y;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { t as m } from "../../classix-DG18itHa.js";
|
|
3
3
|
import { e as o, a as i } from "../../icons-BSp58j2P.js";
|
|
4
|
-
import '../../assets/
|
|
4
|
+
import '../../assets/index37.css';const _ = "_icon_wciqx_1", l = "_small_wciqx_9", g = "_medium_wciqx_14", d = "_large_wciqx_19", w = "_danger_wciqx_24", p = "_primary_wciqx_32", u = "_white_wciqx_36", e = {
|
|
5
5
|
icon: _,
|
|
6
6
|
small: l,
|
|
7
7
|
medium: g,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index8.css');const n=require("react/jsx-runtime"),u=require("../../classix-5H4IWnMA.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index8.css');const n=require("react/jsx-runtime"),u=require("../../classix-5H4IWnMA.cjs"),d="_layout_2dz1m_12",l="_dashboard_2dz1m_24",r="_home_2dz1m_28",o={layout:d,dashboard:l,home:r},c=({children:t,isLoading:a=!1,feature:s,...e})=>n.jsx("main",{className:u.t(o.layout,o[s],a&&"is-loading"),...e,"data-component":"layout",children:t});exports.Layout=c;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { t as
|
|
3
|
-
import '../../assets/index8.css';const
|
|
4
|
-
layout:
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { t as n } from "../../classix-DG18itHa.js";
|
|
3
|
+
import '../../assets/index8.css';const r = "_layout_2dz1m_12", e = "_dashboard_2dz1m_24", l = "_home_2dz1m_28", o = {
|
|
4
|
+
layout: r,
|
|
5
5
|
dashboard: e,
|
|
6
6
|
home: l
|
|
7
|
-
},
|
|
7
|
+
}, u = ({
|
|
8
8
|
children: a,
|
|
9
9
|
isLoading: t = !1,
|
|
10
10
|
feature: s,
|
|
11
11
|
...m
|
|
12
|
-
}) => /* @__PURE__ */
|
|
12
|
+
}) => /* @__PURE__ */ d("main", { className: n(o.layout, o[s], t && "is-loading"), ...m, "data-component": "layout", children: a });
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
u as Layout
|
|
15
15
|
};
|
|
16
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index38.css');const l=require("react/jsx-runtime"),s=require("../../classix-5H4IWnMA.cjs"),m="_link_8fl9a_1",o="_primary_8fl9a_7",c="_danger_8fl9a_13",_="_minimal_8fl9a_21",n={link:m,primary:o,danger:c,minimal:_},k=({children:i,className:a,to:r="#",variant:e="primary",...t})=>l.jsx("a",{className:s.t(a,n.link,n[e]),href:r,...t,"data-component":"link",children:i});exports.Link=k;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { t as o } from "../../classix-DG18itHa.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index38.css';const _ = "_link_8fl9a_1", s = "_primary_8fl9a_7", e = "_danger_8fl9a_13", c = "_minimal_8fl9a_21", n = {
|
|
4
4
|
link: _,
|
|
5
5
|
primary: s,
|
|
6
6
|
danger: e,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index7.css');const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index7.css');const r=require("react/jsx-runtime"),u=require("../../classix-5H4IWnMA.cjs"),a=require("../../helpers-fOobx0tS.cjs"),m="_list_mg08n_1",h="_columns_mg08n_26",e={list:m,columns:h};function _({children:n,className:i,columns:s=1,style:l,...o}){const t=Number.isFinite(s)?Math.max(1,Math.floor(s)):1,c={...l,"--list-columns":t};return r.jsx("ul",{className:u.t(i,e.list,t>1&&e.columns),style:c,...o,"data-component":"list",children:a.wrapChildren(n)})}exports.List=_;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/list/index.tsx"],"sourcesContent":["import cx from 'classix';\nimport
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/list/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport { wrapChildren } from '@/lib/helpers';\n\nimport styles from './styles.module.css';\n\nexport type ListProps = React.ComponentPropsWithoutRef<'ul'> & {\n columns?: number;\n};\n\nexport function List({ children, className, columns = 1, style, ...props }: ListProps) {\n const cols = Number.isFinite(columns) ? Math.max(1, Math.floor(columns)) : 1;\n\n type withVars = React.CSSProperties & {\n '--list-columns'?: number;\n };\n\n const withVars: withVars = {\n ...style,\n '--list-columns': cols,\n };\n\n return (\n <ul\n className={cx(className, styles.list, cols > 1 && styles.columns)}\n style={withVars}\n {...props}\n >\n {wrapChildren(children)}\n </ul>\n );\n}\n"],"names":["List","children","className","columns","style","props","cols","Number","isFinite","Math","max","floor","withVars","jsx","cx","styles","list","wrapChildren"],"mappings":"kQAUO,SAASA,EAAK,CAAEC,SAAAA,EAAUC,UAAAA,EAAWC,QAAAA,EAAU,EAAGC,MAAAA,EAAO,GAAGC,CAAiB,EAAG,CACrF,MAAMC,EAAOC,OAAOC,SAASL,CAAO,EAAIM,KAAKC,IAAI,EAAGD,KAAKE,MAAMR,CAAO,CAAC,EAAI,EAMrES,EAAqB,CACzB,GAAGR,EACH,iBAAkBE,CAAAA,EAGpB,OACEO,EAAAA,IAAC,MACC,UAAWC,EAAAA,EAAGZ,EAAWa,EAAOC,KAAMV,EAAO,GAAKS,EAAOZ,OAAO,EAChE,MAAOS,EACP,GAAIP,EAAM,iBAAA,OAETY,SAAAA,EAAAA,aAAahB,CAAQ,EACxB,CAEJ"}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { t as
|
|
3
|
-
import
|
|
4
|
-
import '../../assets/index7.css';const
|
|
5
|
-
list:
|
|
6
|
-
columns:
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { t as a } from "../../classix-DG18itHa.js";
|
|
3
|
+
import { w as e } from "../../helpers-Dbey5Ztb.js";
|
|
4
|
+
import '../../assets/index7.css';const u = "_list_mg08n_1", p = "_columns_mg08n_26", o = {
|
|
5
|
+
list: u,
|
|
6
|
+
columns: p
|
|
7
7
|
};
|
|
8
|
-
function
|
|
9
|
-
children:
|
|
10
|
-
className:
|
|
11
|
-
columns:
|
|
12
|
-
style:
|
|
13
|
-
...
|
|
8
|
+
function d({
|
|
9
|
+
children: n,
|
|
10
|
+
className: l,
|
|
11
|
+
columns: t = 1,
|
|
12
|
+
style: i,
|
|
13
|
+
...m
|
|
14
14
|
}) {
|
|
15
|
-
const
|
|
16
|
-
...
|
|
17
|
-
"--list-columns":
|
|
15
|
+
const s = Number.isFinite(t) ? Math.max(1, Math.floor(t)) : 1, r = {
|
|
16
|
+
...i,
|
|
17
|
+
"--list-columns": s
|
|
18
18
|
};
|
|
19
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ c("ul", { className: a(l, o.list, s > 1 && o.columns), style: r, ...m, "data-component": "list", children: e(n) });
|
|
20
20
|
}
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
d as List
|
|
23
23
|
};
|
|
24
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/list/index.tsx"],"sourcesContent":["import cx from 'classix';\nimport
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/list/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport { wrapChildren } from '@/lib/helpers';\n\nimport styles from './styles.module.css';\n\nexport type ListProps = React.ComponentPropsWithoutRef<'ul'> & {\n columns?: number;\n};\n\nexport function List({ children, className, columns = 1, style, ...props }: ListProps) {\n const cols = Number.isFinite(columns) ? Math.max(1, Math.floor(columns)) : 1;\n\n type withVars = React.CSSProperties & {\n '--list-columns'?: number;\n };\n\n const withVars: withVars = {\n ...style,\n '--list-columns': cols,\n };\n\n return (\n <ul\n className={cx(className, styles.list, cols > 1 && styles.columns)}\n style={withVars}\n {...props}\n >\n {wrapChildren(children)}\n </ul>\n );\n}\n"],"names":["List","children","className","columns","style","props","cols","Number","isFinite","Math","max","floor","withVars","jsx","cx","styles","list","wrapChildren"],"mappings":";;;;;;;AAUO,SAASA,EAAK;AAAA,EAAEC,UAAAA;AAAAA,EAAUC,WAAAA;AAAAA,EAAWC,SAAAA,IAAU;AAAA,EAAGC,OAAAA;AAAAA,EAAO,GAAGC;AAAiB,GAAG;AACrF,QAAMC,IAAOC,OAAOC,SAASL,CAAO,IAAIM,KAAKC,IAAI,GAAGD,KAAKE,MAAMR,CAAO,CAAC,IAAI,GAMrES,IAAqB;AAAA,IACzB,GAAGR;AAAAA,IACH,kBAAkBE;AAAAA,EAAAA;AAGpB,SACE,gBAAAO,EAAC,QACC,WAAWC,EAAGZ,GAAWa,EAAOC,MAAMV,IAAO,KAAKS,EAAOZ,OAAO,GAChE,OAAOS,GACP,GAAIP,GAAM,kBAAA,QAETY,UAAAA,EAAahB,CAAQ,GACxB;AAEJ;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index18.css');const n=require("react/jsx-runtime"),i=require("../../classix-5H4IWnMA.cjs"),c="_loading_1ytlq_23",d="_spin_1ytlq_1",_="_ping_1ytlq_39",r="_sticky_1ytlq_65",s={loading:c,default:"_default_1ytlq_28",spin:d,ping:_,sticky:r},g=({variant:o="default",size:t,sticky:l=!1,...a})=>{const e={"--border-size":t?t/8+"px":void 0,"--size":t?t+"px":void 0};return n.jsx("div",{className:i.t(s.loading,l&&s.sticky),"data-component":"loading",children:n.jsx("span",{className:i.t(s.loading,s[o]),style:e,...a})})};exports.Loading=g;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { t as s } from "../../classix-DG18itHa.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index18.css';const c = "_loading_1ytlq_23", _ = "_spin_1ytlq_1", p = "_ping_1ytlq_39", e = "_sticky_1ytlq_65", n = {
|
|
4
4
|
loading: c,
|
|
5
5
|
default: "_default_1ytlq_28",
|
|
6
6
|
spin: _,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index39.css');const s=require("react/jsx-runtime"),o=require("../../classix-5H4IWnMA.cjs"),r=require("../icon/index.cjs"),c="_message_wgn3d_1",g="_preview_wgn3d_35",t={message:c,preview:g},d=({content:n,id:a,preview:i,type:e="default"})=>s.jsxs("div",{className:o.t(t.message,i&&t.preview),"data-id":a,"data-type":e,"data-component":"message",children:[e=="system"&&s.jsx(r.Icon,{gap:"right",name:"info"}),n]});exports.Message=d;
|
|
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 { Icon } from '../icon';\nimport styles from './styles.module.css';\n\nexport type MessageOptions = {\n content: React.ReactNode;\n id: string;\n preview?: boolean;\n type?: 'default' | 'minimal' | 'system' | 'user';\n};\n\nexport const Message = ({ content, id, preview, type = 'default' }: MessageOptions) => {\n return (\n <div\n className={cx(styles.message, preview && styles.preview)}\n data-id={id}\n data-type={type}\n >\n {type == 'system' && <Icon
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/message/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport { Icon } from '../icon';\nimport styles from './styles.module.css';\n\nexport type MessageOptions = {\n content: React.ReactNode;\n id: string;\n preview?: boolean;\n type?: 'default' | 'minimal' | 'system' | 'user';\n};\n\nexport const Message = ({ content, id, preview, type = 'default' }: MessageOptions) => {\n return (\n <div\n className={cx(styles.message, preview && styles.preview)}\n data-id={id}\n data-type={type}\n >\n {type == 'system' && (\n <Icon\n gap='right'\n name='info'\n />\n )}\n {content}\n </div>\n );\n};\n"],"names":["Message","content","id","preview","type","jsxs","cx","styles","message","jsx","Icon"],"mappings":"+PAYaA,EAAUA,CAAC,CAAEC,QAAAA,EAASC,GAAAA,EAAIC,QAAAA,EAASC,KAAAA,EAAO,SAA0B,IAE7EC,EAAAA,KAAC,MAAA,CACC,UAAWC,EAAAA,EAAGC,EAAOC,QAASL,GAAWI,EAAOJ,OAAO,EACvD,UAASD,EACT,YAAWE,EAAK,iBAAA,UAEfA,SAAAA,CAAAA,GAAQ,UACPK,EAAAA,IAACC,EAAAA,KAAA,CACC,IAAI,QACJ,KAAK,OAAM,EAGdT,CAAAA,EACH"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { t as
|
|
3
|
-
import { Icon as
|
|
4
|
-
import '../../assets/
|
|
5
|
-
message:
|
|
6
|
-
preview:
|
|
2
|
+
import { t as n } from "../../classix-DG18itHa.js";
|
|
3
|
+
import { Icon as i } from "../icon/index.js";
|
|
4
|
+
import '../../assets/index39.css';const g = "_message_wgn3d_1", p = "_preview_wgn3d_35", s = {
|
|
5
|
+
message: g,
|
|
6
|
+
preview: p
|
|
7
7
|
}, _ = ({
|
|
8
|
-
content:
|
|
9
|
-
id:
|
|
10
|
-
preview:
|
|
8
|
+
content: t,
|
|
9
|
+
id: a,
|
|
10
|
+
preview: m,
|
|
11
11
|
type: e = "default"
|
|
12
|
-
}) => /* @__PURE__ */ o("div", { className:
|
|
13
|
-
e == "system" && /* @__PURE__ */ r(
|
|
14
|
-
|
|
12
|
+
}) => /* @__PURE__ */ o("div", { className: n(s.message, m && s.preview), "data-id": a, "data-type": e, "data-component": "message", children: [
|
|
13
|
+
e == "system" && /* @__PURE__ */ r(i, { gap: "right", name: "info" }),
|
|
14
|
+
t
|
|
15
15
|
] });
|
|
16
16
|
export {
|
|
17
17
|
_ as Message
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/message/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport { Icon } from '../icon';\nimport styles from './styles.module.css';\n\nexport type MessageOptions = {\n content: React.ReactNode;\n id: string;\n preview?: boolean;\n type?: 'default' | 'minimal' | 'system' | 'user';\n};\n\nexport const Message = ({ content, id, preview, type = 'default' }: MessageOptions) => {\n return (\n <div\n className={cx(styles.message, preview && styles.preview)}\n data-id={id}\n data-type={type}\n >\n {type == 'system' && <Icon
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/message/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport { Icon } from '../icon';\nimport styles from './styles.module.css';\n\nexport type MessageOptions = {\n content: React.ReactNode;\n id: string;\n preview?: boolean;\n type?: 'default' | 'minimal' | 'system' | 'user';\n};\n\nexport const Message = ({ content, id, preview, type = 'default' }: MessageOptions) => {\n return (\n <div\n className={cx(styles.message, preview && styles.preview)}\n data-id={id}\n data-type={type}\n >\n {type == 'system' && (\n <Icon\n gap='right'\n name='info'\n />\n )}\n {content}\n </div>\n );\n};\n"],"names":["Message","content","id","preview","type","jsxs","cx","styles","message","jsx","Icon"],"mappings":";;;;;;GAYaA,IAAUA,CAAC;AAAA,EAAEC,SAAAA;AAAAA,EAASC,IAAAA;AAAAA,EAAIC,SAAAA;AAAAA,EAASC,MAAAA,IAAO;AAA0B,MAE7E,gBAAAC,EAAC,OAAA,EACC,WAAWC,EAAGC,EAAOC,SAASL,KAAWI,EAAOJ,OAAO,GACvD,WAASD,GACT,aAAWE,GAAK,kBAAA,WAEfA,UAAAA;AAAAA,EAAAA,KAAQ,YACP,gBAAAK,EAACC,GAAA,EACC,KAAI,SACJ,MAAK,QAAM;AAAA,EAGdT;AAAAA,GACH;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index40.css');const i=require("react/jsx-runtime"),r=require("../../classix-5H4IWnMA.cjs"),c="_nav_1g1sp_1",_="_horizontal_1g1sp_7",p="_tabs_1g1sp_17",v="_pills_1g1sp_38",t={nav:c,horizontal:_,tabs:p,pills:v},u={default:t.default,pills:t.pills,tabs:t.tabs},d=({animation:s,children:n,className:o,horizontal:a=!1,variant:l="default",...e})=>i.jsx("nav",{className:r.t(o,a&&t.horizontal,t.nav,u[l]),"data-animation":s,"data-orientation":a?"horizontal":"vertical",...e,"data-component":"nav",children:n});exports.Nav=d;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/nav/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/nav/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nconst variants = {\n default: styles.default,\n pills: styles.pills,\n tabs: styles.tabs,\n};\n\nexport type NavProps = React.HTMLAttributes<HTMLElement> & {\n animation?: string;\n children?: React.ReactNode;\n className?: string;\n horizontal?: boolean;\n variant?: keyof typeof variants;\n};\n\nexport const Nav = ({\n animation,\n children,\n className,\n horizontal = false,\n variant = 'default',\n ...props\n}: NavProps) => {\n return (\n <nav\n className={cx(\n className,\n horizontal && styles.horizontal,\n styles.nav,\n variants[variant]\n )}\n data-animation={animation}\n data-orientation={horizontal ? 'horizontal' : 'vertical'}\n {...props}\n >\n {children}\n </nav>\n );\n};\n"],"names":["variants","default","styles","pills","tabs","Nav","animation","children","className","horizontal","variant","props","jsx","cx","nav"],"mappings":"mRAIMA,EAAW,CACfC,QAASC,EAAOD,QAChBE,MAAOD,EAAOC,MACdC,KAAMF,EAAOE,IACf,EAUaC,EAAMA,CAAC,CAClBC,UAAAA,EACAC,SAAAA,EACAC,UAAAA,EACAC,WAAAA,EAAa,GACbC,QAAAA,EAAU,UACV,GAAGC,CACK,IAENC,MAAC,MAAA,CACC,UAAWC,EAAAA,EACTL,EACAC,GAAcP,EAAOO,WACrBP,EAAOY,IACPd,EAASU,CAAO,CAClB,EACA,iBAAgBJ,EAChB,mBAAkBG,EAAa,aAAe,WAC9C,GAAIE,EAAM,iBAAA,MAETJ,SAAAA,CAAAA,CACH"}
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { t as
|
|
3
|
-
import '../../assets/
|
|
4
|
-
nav:
|
|
5
|
-
horizontal:
|
|
6
|
-
tabs:
|
|
7
|
-
pills:
|
|
8
|
-
},
|
|
9
|
-
default:
|
|
10
|
-
pills:
|
|
11
|
-
tabs:
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { t as p } from "../../classix-DG18itHa.js";
|
|
3
|
+
import '../../assets/index40.css';const _ = "_nav_1g1sp_1", e = "_horizontal_1g1sp_7", c = "_tabs_1g1sp_17", v = "_pills_1g1sp_38", a = {
|
|
4
|
+
nav: _,
|
|
5
|
+
horizontal: e,
|
|
6
|
+
tabs: c,
|
|
7
|
+
pills: v
|
|
8
|
+
}, m = {
|
|
9
|
+
default: a.default,
|
|
10
|
+
pills: a.pills,
|
|
11
|
+
tabs: a.tabs
|
|
12
12
|
}, b = ({
|
|
13
|
-
animation:
|
|
14
|
-
children:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
animation: s,
|
|
14
|
+
children: n,
|
|
15
|
+
className: o,
|
|
16
|
+
horizontal: t = !1,
|
|
17
|
+
variant: l = "default",
|
|
18
|
+
...i
|
|
19
|
+
}) => /* @__PURE__ */ r("nav", { className: p(o, t && a.horizontal, a.nav, m[l]), "data-animation": s, "data-orientation": t ? "horizontal" : "vertical", ...i, "data-component": "nav", children: n });
|
|
18
20
|
export {
|
|
19
21
|
b as Nav
|
|
20
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/nav/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/nav/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nconst variants = {\n default: styles.default,\n pills: styles.pills,\n tabs: styles.tabs,\n};\n\nexport type NavProps = React.HTMLAttributes<HTMLElement> & {\n animation?: string;\n children?: React.ReactNode;\n className?: string;\n horizontal?: boolean;\n variant?: keyof typeof variants;\n};\n\nexport const Nav = ({\n animation,\n children,\n className,\n horizontal = false,\n variant = 'default',\n ...props\n}: NavProps) => {\n return (\n <nav\n className={cx(\n className,\n horizontal && styles.horizontal,\n styles.nav,\n variants[variant]\n )}\n data-animation={animation}\n data-orientation={horizontal ? 'horizontal' : 'vertical'}\n {...props}\n >\n {children}\n </nav>\n );\n};\n"],"names":["variants","default","styles","pills","tabs","Nav","animation","children","className","horizontal","variant","props","jsx","cx","nav"],"mappings":";;;;;;;GAIMA,IAAW;AAAA,EACfC,SAASC,EAAOD;AAAAA,EAChBE,OAAOD,EAAOC;AAAAA,EACdC,MAAMF,EAAOE;AACf,GAUaC,IAAMA,CAAC;AAAA,EAClBC,WAAAA;AAAAA,EACAC,UAAAA;AAAAA,EACAC,WAAAA;AAAAA,EACAC,YAAAA,IAAa;AAAA,EACbC,SAAAA,IAAU;AAAA,EACV,GAAGC;AACK,MAEN,gBAAAC,EAAC,OAAA,EACC,WAAWC,EACTL,GACAC,KAAcP,EAAOO,YACrBP,EAAOY,KACPd,EAASU,CAAO,CAClB,GACA,kBAAgBJ,GAChB,oBAAkBG,IAAa,eAAe,YAC9C,GAAIE,GAAM,kBAAA,OAETJ,UAAAA,EAAAA,CACH;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index4.css');const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index4.css');const q=require("react/jsx-runtime"),A=require("react"),R="_table_k4bpz_1",T={table:R},_=({children:C,locale:i,...S})=>{const l=A.useRef(null),v=(n,r,t)=>{n.querySelectorAll("th[data-type]").forEach(e=>{e===r?(e.dataset.dir=t,e.setAttribute("aria-sort",t==="asc"?"ascending":"descending")):(delete e.dataset.dir,e.setAttribute("aria-sort","none"))})},h=A.useCallback(n=>{var m,N;const r=l.current;if(!r)return;const t=(m=n.target)==null?void 0:m.closest("th");if(!t)return;const s=r.tHead;if(!s||!s.contains(t))return;const e=t.cellIndex;if(e<0)return;const a=(N=r.tBodies)==null?void 0:N[0];if(!a)return;const u=t.getAttribute("data-type");if(!u)return;const b=t.dataset.dir==="asc"?"desc":"asc";v(s,t,b);const d=b==="asc"?1:-1,f=Array.from(a.rows);f.sort((j,k)=>{var g,x;const p=(((g=j.cells[e])==null?void 0:g.textContent)??"").trim(),y=(((x=k.cells[e])==null?void 0:x.textContent)??"").trim();if(u==="number"){const o=Number.parseFloat(p),c=Number.parseFloat(y);return Number.isNaN(o)&&Number.isNaN(c)?0:Number.isNaN(o)?1:Number.isNaN(c)?-1:(o-c)*d}return p.localeCompare(y,i,{sensitivity:"base"})*d}),a.append(...f)},[i]);return q.jsx("table",{className:T.table,onClick:h,ref:l,...S,"data-component":"table",children:C})};exports.Table=_;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as _ } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as w, useCallback as F } from "react";
|
|
3
|
-
import '../../assets/index4.css';const j = "
|
|
3
|
+
import '../../assets/index4.css';const j = "_table_k4bpz_1", q = {
|
|
4
4
|
table: j
|
|
5
|
-
},
|
|
6
|
-
children:
|
|
5
|
+
}, E = ({
|
|
6
|
+
children: C,
|
|
7
7
|
locale: i,
|
|
8
|
-
...
|
|
8
|
+
...g
|
|
9
9
|
}) => {
|
|
10
|
-
const l = w(null),
|
|
10
|
+
const l = w(null), h = (n, r, t) => {
|
|
11
11
|
n.querySelectorAll("th[data-type]").forEach((e) => {
|
|
12
12
|
e === r ? (e.dataset.dir = t, e.setAttribute("aria-sort", t === "asc" ? "ascending" : "descending")) : (delete e.dataset.dir, e.setAttribute("aria-sort", "none"));
|
|
13
13
|
});
|
|
14
|
-
},
|
|
14
|
+
}, k = F((n) => {
|
|
15
15
|
var f, N;
|
|
16
16
|
const r = l.current;
|
|
17
17
|
if (!r) return;
|
|
@@ -26,11 +26,11 @@ import '../../assets/index4.css';const j = "_table_geevi_1", q = {
|
|
|
26
26
|
const u = t.getAttribute("data-type");
|
|
27
27
|
if (!u) return;
|
|
28
28
|
const b = t.dataset.dir === "asc" ? "desc" : "asc";
|
|
29
|
-
|
|
29
|
+
h(s, t, b);
|
|
30
30
|
const d = b === "asc" ? 1 : -1, m = Array.from(a.rows);
|
|
31
|
-
m.sort((
|
|
32
|
-
var
|
|
33
|
-
const p = (((
|
|
31
|
+
m.sort((v, S) => {
|
|
32
|
+
var x, A;
|
|
33
|
+
const p = (((x = v.cells[e]) == null ? void 0 : x.textContent) ?? "").trim(), y = (((A = S.cells[e]) == null ? void 0 : A.textContent) ?? "").trim();
|
|
34
34
|
if (u === "number") {
|
|
35
35
|
const o = Number.parseFloat(p), c = Number.parseFloat(y);
|
|
36
36
|
return Number.isNaN(o) && Number.isNaN(c) ? 0 : Number.isNaN(o) ? 1 : Number.isNaN(c) ? -1 : (o - c) * d;
|
|
@@ -40,9 +40,9 @@ import '../../assets/index4.css';const j = "_table_geevi_1", q = {
|
|
|
40
40
|
}) * d;
|
|
41
41
|
}), a.append(...m);
|
|
42
42
|
}, [i]);
|
|
43
|
-
return /* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */ _("table", { className: q.table, onClick: k, ref: l, ...g, "data-component": "table", children: C });
|
|
44
44
|
};
|
|
45
45
|
export {
|
|
46
|
-
|
|
46
|
+
E as Table
|
|
47
47
|
};
|
|
48
48
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index41.css');const a=require("react/jsx-runtime"),f=require("../../classix-5H4IWnMA.cjs"),n=require("react"),j=require("../icon/index.cjs"),h="_toast_h2jok_1",l="_active_h2jok_18",d="_error_h2jok_24",m="_info_h2jok_28",v="_success_h2jok_33",o={toast:h,active:l,error:d,info:m,success:v},k=({label:i,type:t="success",onClick:u,onExitComplete:e,open:r=!0})=>{const[_,c]=n.useState(!1);return n.useEffect(()=>{if(!r)return c(!1);const s=requestAnimationFrame(()=>c(!0));return()=>cancelAnimationFrame(s)},[r]),a.jsxs("div",{"aria-live":t==="error"?"assertive":"polite",className:f.t(o.toast,o[t],_&&o.active),onClick:u,onTransitionEnd:s=>{r||s.propertyName!=="opacity"||s.currentTarget!==s.target||e==null||e()},"data-component":"toast",children:[a.jsx(j.Icon,{name:t}),i]})};exports.Toast=k;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -2,7 +2,7 @@ import { jsxs as _, jsx as u } from "react/jsx-runtime";
|
|
|
2
2
|
import { t as f } from "../../classix-DG18itHa.js";
|
|
3
3
|
import { useState as m, useEffect as h } from "react";
|
|
4
4
|
import { Icon as j } from "../icon/index.js";
|
|
5
|
-
import '../../assets/
|
|
5
|
+
import '../../assets/index41.css';const k = "_toast_h2jok_1", v = "_active_h2jok_18", d = "_error_h2jok_24", l = "_info_h2jok_28", T = "_success_h2jok_33", a = {
|
|
6
6
|
toast: k,
|
|
7
7
|
active: v,
|
|
8
8
|
error: d,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index2.css');const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index2.css');const e=require("react/jsx-runtime"),l=require("../loading/index.cjs"),g="_toggle_1rg2x_1",r="_thumb_1rg2x_15",i="_track_1rg2x_25",t={toggle:g,thumb:r,track:i},u=({checked:n,disabled:o,isLoading:s,label:a,onChange:c})=>e.jsxs("label",{className:t.toggle,"data-component":"toggle",children:[e.jsx("input",{checked:n,disabled:o||s,onChange:c,type:"checkbox"}),e.jsx("span",{"aria-hidden":"true",className:t.track,children:s?e.jsx(l.Loading,{size:24}):e.jsx("span",{className:t.thumb})}),e.jsx("span",{className:"toggle",children:a})]});exports.Toggle=u;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/toggle/index.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/toggle/index.tsx"],"sourcesContent":["import { Loading } from '../loading';\nimport styles from './styles.module.css';\n\nexport type ToggleProps = {\n checked?: boolean;\n disabled?: boolean;\n isLoading?: boolean;\n label?: string;\n onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;\n};\n\nexport const Toggle = ({ checked, disabled, isLoading, label, onChange }: ToggleProps) => {\n return (\n <label className={styles.toggle}>\n <input\n checked={checked}\n disabled={disabled || isLoading}\n onChange={onChange}\n type='checkbox'\n />\n <span\n aria-hidden='true'\n className={styles.track}\n >\n {isLoading ? <Loading size={24} /> : <span className={styles.thumb} />}\n </span>\n <span className='toggle'>{label}</span>\n </label>\n );\n};\n"],"names":["Toggle","checked","disabled","isLoading","label","onChange","styles","toggle","jsx","track","Loading","thumb"],"mappings":"gPAWaA,EAASA,CAAC,CAAEC,QAAAA,EAASC,SAAAA,EAAUC,UAAAA,EAAWC,MAAAA,EAAOC,SAAAA,CAAsB,WAE/E,QAAA,CAAM,UAAWC,EAAOC,OAAO,iBAAA,SAC9B,SAAA,CAAAC,MAAC,SACC,QAAAP,EACA,SAAUC,GAAYC,EACtB,SAAAE,EACA,KAAK,WAAU,QAEhB,OAAA,CACC,cAAY,OACZ,UAAWC,EAAOG,MAEjBN,SAAAA,EAAYK,EAAAA,IAACE,UAAA,CAAQ,KAAM,KAASF,MAAC,QAAK,UAAWF,EAAOK,MAAM,EACrE,EACAH,EAAAA,IAAC,OAAA,CAAK,UAAU,SAAUJ,SAAAA,CAAAA,CAAM,CAAA,EAClC"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import '../../assets/index2.css';const
|
|
4
|
-
toggle:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
},
|
|
8
|
-
checked:
|
|
9
|
-
disabled:
|
|
10
|
-
isLoading:
|
|
11
|
-
label:
|
|
12
|
-
onChange:
|
|
13
|
-
}) => /* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */ t("input", { checked:
|
|
15
|
-
/* @__PURE__ */ t("span", { "aria-hidden": "true", className: e.track, children: /* @__PURE__ */ t("span", { className:
|
|
16
|
-
/* @__PURE__ */ t("span", { className: "toggle", children:
|
|
1
|
+
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Loading as g } from "../loading/index.js";
|
|
3
|
+
import '../../assets/index2.css';const n = "_toggle_1rg2x_1", m = "_thumb_1rg2x_15", h = "_track_1rg2x_25", e = {
|
|
4
|
+
toggle: n,
|
|
5
|
+
thumb: m,
|
|
6
|
+
track: h
|
|
7
|
+
}, _ = ({
|
|
8
|
+
checked: a,
|
|
9
|
+
disabled: o,
|
|
10
|
+
isLoading: s,
|
|
11
|
+
label: c,
|
|
12
|
+
onChange: r
|
|
13
|
+
}) => /* @__PURE__ */ l("label", { className: e.toggle, "data-component": "toggle", children: [
|
|
14
|
+
/* @__PURE__ */ t("input", { checked: a, disabled: o || s, onChange: r, type: "checkbox" }),
|
|
15
|
+
/* @__PURE__ */ t("span", { "aria-hidden": "true", className: e.track, children: s ? /* @__PURE__ */ t(g, { size: 24 }) : /* @__PURE__ */ t("span", { className: e.thumb }) }),
|
|
16
|
+
/* @__PURE__ */ t("span", { className: "toggle", children: c })
|
|
17
17
|
] });
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
_ as Toggle
|
|
20
20
|
};
|
|
21
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/toggle/index.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/toggle/index.tsx"],"sourcesContent":["import { Loading } from '../loading';\nimport styles from './styles.module.css';\n\nexport type ToggleProps = {\n checked?: boolean;\n disabled?: boolean;\n isLoading?: boolean;\n label?: string;\n onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;\n};\n\nexport const Toggle = ({ checked, disabled, isLoading, label, onChange }: ToggleProps) => {\n return (\n <label className={styles.toggle}>\n <input\n checked={checked}\n disabled={disabled || isLoading}\n onChange={onChange}\n type='checkbox'\n />\n <span\n aria-hidden='true'\n className={styles.track}\n >\n {isLoading ? <Loading size={24} /> : <span className={styles.thumb} />}\n </span>\n <span className='toggle'>{label}</span>\n </label>\n );\n};\n"],"names":["Toggle","checked","disabled","isLoading","label","onChange","styles","toggle","jsx","track","Loading","thumb"],"mappings":";;;;;;GAWaA,IAASA,CAAC;AAAA,EAAEC,SAAAA;AAAAA,EAASC,UAAAA;AAAAA,EAAUC,WAAAA;AAAAA,EAAWC,OAAAA;AAAAA,EAAOC,UAAAA;AAAsB,wBAE/E,SAAA,EAAM,WAAWC,EAAOC,QAAO,kBAAA,UAC9B,UAAA;AAAA,EAAA,gBAAAC,EAAC,WACC,SAAAP,GACA,UAAUC,KAAYC,GACtB,UAAAE,GACA,MAAK,YAAU;AAAA,oBAEhB,QAAA,EACC,eAAY,QACZ,WAAWC,EAAOG,OAEjBN,UAAAA,IAAY,gBAAAK,EAACE,GAAA,EAAQ,MAAM,QAAS,gBAAAF,EAAC,UAAK,WAAWF,EAAOK,OAAM,GACrE;AAAA,EACA,gBAAAH,EAAC,QAAA,EAAK,WAAU,UAAUJ,UAAAA,EAAAA,CAAM;AAAA,GAClC;"}
|