@solibo/solibo-ui 0.3.21 → 0.3.22

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.
Files changed (139) hide show
  1. package/dist/assets/index.css +1 -1
  2. package/dist/assets/index10.css +1 -1
  3. package/dist/assets/index11.css +1 -0
  4. package/dist/assets/index12.css +1 -1
  5. package/dist/assets/index13.css +1 -1
  6. package/dist/assets/index14.css +1 -1
  7. package/dist/assets/index15.css +1 -1
  8. package/dist/assets/index16.css +1 -1
  9. package/dist/assets/index17.css +1 -1
  10. package/dist/assets/index18.css +1 -1
  11. package/dist/assets/index19.css +1 -1
  12. package/dist/assets/index20.css +1 -1
  13. package/dist/assets/index21.css +1 -1
  14. package/dist/assets/index22.css +1 -1
  15. package/dist/assets/index23.css +1 -1
  16. package/dist/assets/index24.css +1 -1
  17. package/dist/assets/index25.css +1 -1
  18. package/dist/assets/index26.css +1 -1
  19. package/dist/assets/index27.css +1 -1
  20. package/dist/assets/index28.css +1 -1
  21. package/dist/assets/index29.css +1 -1
  22. package/dist/assets/index3.css +1 -1
  23. package/dist/assets/index30.css +1 -1
  24. package/dist/assets/index31.css +1 -1
  25. package/dist/assets/index32.css +1 -1
  26. package/dist/assets/index33.css +1 -1
  27. package/dist/assets/index34.css +1 -1
  28. package/dist/assets/index35.css +1 -1
  29. package/dist/assets/index36.css +1 -1
  30. package/dist/assets/index37.css +1 -1
  31. package/dist/assets/index38.css +1 -1
  32. package/dist/assets/index39.css +1 -1
  33. package/dist/assets/index4.css +1 -1
  34. package/dist/assets/index40.css +1 -1
  35. package/dist/assets/index5.css +1 -1
  36. package/dist/assets/index6.css +1 -1
  37. package/dist/assets/index7.css +1 -1
  38. package/dist/assets/index8.css +0 -1
  39. package/dist/assets/index9.css +1 -1
  40. package/dist/components/_avatar/index.cjs +1 -1
  41. package/dist/components/_avatar/index.js +1 -1
  42. package/dist/components/_card/index.cjs +1 -1
  43. package/dist/components/_card/index.js +1 -1
  44. package/dist/components/_collapsible/index.cjs +1 -1
  45. package/dist/components/_collapsible/index.js +1 -1
  46. package/dist/components/_croppable/index.cjs +1 -1
  47. package/dist/components/_croppable/index.js +1 -1
  48. package/dist/components/_dropzone/index.cjs +1 -1
  49. package/dist/components/_dropzone/index.cjs.map +1 -1
  50. package/dist/components/_dropzone/index.js +28 -28
  51. package/dist/components/_dropzone/index.js.map +1 -1
  52. package/dist/components/_editor/index.cjs +1 -1
  53. package/dist/components/_editor/index.js +1 -1
  54. package/dist/components/_messages/index.cjs +1 -1
  55. package/dist/components/_messages/index.cjs.map +1 -1
  56. package/dist/components/_messages/index.js +34 -8
  57. package/dist/components/_messages/index.js.map +1 -1
  58. package/dist/components/_portal/index.cjs +1 -1
  59. package/dist/components/_portal/index.js +1 -1
  60. package/dist/components/_sortable/index.cjs +2 -0
  61. package/dist/components/_sortable/index.cjs.map +1 -0
  62. package/dist/components/_sortable/index.js +40 -0
  63. package/dist/components/_sortable/index.js.map +1 -0
  64. package/dist/components/_toasts/index.cjs +1 -1
  65. package/dist/components/_toasts/index.js +1 -1
  66. package/dist/components/_widget/index.cjs +1 -1
  67. package/dist/components/_widget/index.js +1 -1
  68. package/dist/components/accordion/index.cjs +1 -1
  69. package/dist/components/accordion/index.js +1 -1
  70. package/dist/components/app-link/index.cjs +1 -1
  71. package/dist/components/app-link/index.js +1 -1
  72. package/dist/components/aside/index.cjs +1 -1
  73. package/dist/components/aside/index.js +1 -1
  74. package/dist/components/badge/index.cjs +1 -1
  75. package/dist/components/badge/index.js +1 -1
  76. package/dist/components/banner/index.cjs +1 -1
  77. package/dist/components/banner/index.js +1 -1
  78. package/dist/components/branding/index.cjs +1 -1
  79. package/dist/components/branding/index.js +1 -1
  80. package/dist/components/button/index.cjs +1 -1
  81. package/dist/components/button/index.js +1 -1
  82. package/dist/components/checkbox/index.cjs +1 -1
  83. package/dist/components/checkbox/index.js +2 -2
  84. package/dist/components/controls/index.cjs +1 -1
  85. package/dist/components/controls/index.js +1 -1
  86. package/dist/components/dialog/index.cjs +1 -1
  87. package/dist/components/dialog/index.js +1 -1
  88. package/dist/components/figure/index.cjs +1 -1
  89. package/dist/components/figure/index.js +1 -1
  90. package/dist/components/file/index.cjs +1 -1
  91. package/dist/components/file/index.js +1 -1
  92. package/dist/components/form/index.cjs +1 -1
  93. package/dist/components/form/index.js +1 -1
  94. package/dist/components/graph/index.cjs +1 -1
  95. package/dist/components/graph/index.js +1 -1
  96. package/dist/components/group/index.cjs +1 -1
  97. package/dist/components/group/index.js +1 -1
  98. package/dist/components/header/index.cjs +1 -1
  99. package/dist/components/header/index.js +1 -1
  100. package/dist/components/icon/index.cjs +1 -1
  101. package/dist/components/icon/index.cjs.map +1 -1
  102. package/dist/components/icon/index.js +27 -26
  103. package/dist/components/icon/index.js.map +1 -1
  104. package/dist/components/image/index.cjs +1 -1
  105. package/dist/components/image/index.js +1 -1
  106. package/dist/components/layout/index.cjs +1 -1
  107. package/dist/components/layout/index.js +4 -4
  108. package/dist/components/link/index.cjs +1 -1
  109. package/dist/components/link/index.js +1 -1
  110. package/dist/components/list/index.cjs +1 -1
  111. package/dist/components/list/index.cjs.map +1 -1
  112. package/dist/components/list/index.js +19 -16
  113. package/dist/components/list/index.js.map +1 -1
  114. package/dist/components/loading/index.cjs +1 -1
  115. package/dist/components/loading/index.js +1 -1
  116. package/dist/components/message/index.cjs +1 -1
  117. package/dist/components/message/index.js +7 -7
  118. package/dist/components/nav/index.cjs +1 -1
  119. package/dist/components/nav/index.js +1 -1
  120. package/dist/components/select/index.cjs +1 -1
  121. package/dist/components/select/index.js +1 -1
  122. package/dist/components/table/index.cjs +1 -1
  123. package/dist/components/table/index.js +1 -1
  124. package/dist/components/textarea/index.cjs +1 -1
  125. package/dist/components/textarea/index.cjs.map +1 -1
  126. package/dist/components/textarea/index.js +14 -14
  127. package/dist/components/textarea/index.js.map +1 -1
  128. package/dist/{icons-BKi-xxXA.cjs → icons-R4Ufm_3V.cjs} +2 -2
  129. package/dist/{icons-BKi-xxXA.cjs.map → icons-R4Ufm_3V.cjs.map} +1 -1
  130. package/dist/{icons-BSp58j2P.js → icons-VE52iqR8.js} +14 -9
  131. package/dist/{icons-BSp58j2P.js.map → icons-VE52iqR8.js.map} +1 -1
  132. package/dist/index.cjs +1 -1
  133. package/dist/index.d.ts +18 -6
  134. package/dist/index.js +58 -58
  135. package/package.json +1 -1
  136. package/dist/components/sortable/index.cjs +0 -2
  137. package/dist/components/sortable/index.cjs.map +0 -1
  138. package/dist/components/sortable/index.js +0 -44
  139. package/dist/components/sortable/index.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index35.css');const a=require("react/jsx-runtime"),c=require("../../classix-5H4IWnMA.cjs"),u=require("../icon/index.cjs"),l="_button_9mct5_1",d="_danger_9mct5_23",_="_minimal_9mct5_36",p="_primary_9mct5_48",t={button:l,danger:d,minimal:_,primary:p},b={danger:t.danger,default:t.default,minimal:t.minimal,primary:t.primary},g=({children:i,className:r,disabled:m=!1,icon:n,onClick:o,variant:e="default",...s})=>a.jsxs("button",{className:c.t(r,t.button,b[e]),disabled:m,onClick:o,type:"button",...s,"data-component":"button",children:[n&&a.jsx(u.Icon,{gap:"right",name:n,size:"small",variant:e==="minimal"?"default":"white"}),i]});exports.Button=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index32.css');const a=require("react/jsx-runtime"),c=require("../../classix-5H4IWnMA.cjs"),u=require("../icon/index.cjs"),l="_button_9mct5_1",d="_danger_9mct5_23",_="_minimal_9mct5_36",p="_primary_9mct5_48",t={button:l,danger:d,minimal:_,primary:p},b={danger:t.danger,default:t.default,minimal:t.minimal,primary:t.primary},g=({children:i,className:r,disabled:m=!1,icon:n,onClick:o,variant:e="default",...s})=>a.jsxs("button",{className:c.t(r,t.button,b[e]),disabled:m,onClick:o,type:"button",...s,"data-component":"button",children:[n&&a.jsx(u.Icon,{gap:"right",name:n,size:"small",variant:e==="minimal"?"default":"white"}),i]});exports.Button=g;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  import { jsxs as s, jsx as l } from "react/jsx-runtime";
2
2
  import { t as c } from "../../classix-DG18itHa.js";
3
3
  import { Icon as u } from "../icon/index.js";
4
- import '../../assets/index35.css';const p = "_button_9mct5_1", _ = "_danger_9mct5_23", d = "_minimal_9mct5_36", f = "_primary_9mct5_48", t = {
4
+ import '../../assets/index32.css';const p = "_button_9mct5_1", _ = "_danger_9mct5_23", d = "_minimal_9mct5_36", f = "_primary_9mct5_48", t = {
5
5
  button: p,
6
6
  danger: _,
7
7
  minimal: d,
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index17.css');const e=require("react/jsx-runtime"),x=require("../../icons-BKi-xxXA.cjs"),b=require("../loading/index.cjs"),h="_checkbox_1ce0k_1",k={checkbox:h},u=({checked:s,disabled:t,isLoading:c,label:o,onChange:n,...i})=>{const r={"--icon-svg":x.iconSVG("check")};return e.jsxs("label",{className:k.checkbox,"data-component":"checkbox",children:[c&&e.jsx(b.Loading,{size:24,sticky:!0}),e.jsx("input",{checked:s,disabled:t||c,onChange:n,type:"checkbox",style:r,...i}),o&&o]})};exports.Checkbox=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index13.css');const e=require("react/jsx-runtime"),x=require("../../icons-R4Ufm_3V.cjs"),b=require("../loading/index.cjs"),h="_checkbox_1ce0k_1",k={checkbox:h},u=({checked:s,disabled:t,isLoading:c,label:o,onChange:n,...i})=>{const r={"--icon-svg":x.iconSVG("check")};return e.jsxs("label",{className:k.checkbox,"data-component":"checkbox",children:[c&&e.jsx(b.Loading,{size:24,sticky:!0}),e.jsx("input",{checked:s,disabled:t||c,onChange:n,type:"checkbox",style:r,...i}),o&&o]})};exports.Checkbox=u;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  import { jsxs as h, jsx as e } from "react/jsx-runtime";
2
- import { i as k } from "../../icons-BSp58j2P.js";
2
+ import { i as k } from "../../icons-VE52iqR8.js";
3
3
  import { Loading as x } from "../loading/index.js";
4
- import '../../assets/index17.css';const b = "_checkbox_1ce0k_1", m = {
4
+ import '../../assets/index13.css';const b = "_checkbox_1ce0k_1", m = {
5
5
  checkbox: b
6
6
  }, d = ({
7
7
  checked: t,
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index16.css');const r=require("react/jsx-runtime"),t=require("../../helpers-fOobx0tS.cjs"),n="_wrapper_38jyj_16",c="_controls_38jyj_22",e={wrapper:n,controls:c},a=({children:o,...s})=>r.jsx("div",{className:e.wrapper,"data-component":"controls",children:r.jsx("div",{className:e.controls,children:r.jsx("menu",{"data-animation":"stagger",...s,children:t.wrapChildren(o)})})});exports.Controls=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index12.css');const r=require("react/jsx-runtime"),t=require("../../helpers-fOobx0tS.cjs"),n="_wrapper_38jyj_16",c="_controls_38jyj_22",e={wrapper:n,controls:c},a=({children:o,...s})=>r.jsx("div",{className:e.wrapper,"data-component":"controls",children:r.jsx("div",{className:e.controls,children:r.jsx("menu",{"data-animation":"stagger",...s,children:t.wrapChildren(o)})})});exports.Controls=a;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,6 +1,6 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { w as s } from "../../helpers-Dbey5Ztb.js";
3
- import '../../assets/index16.css';const a = "_wrapper_38jyj_16", e = "_controls_38jyj_22", o = {
3
+ import '../../assets/index12.css';const a = "_wrapper_38jyj_16", e = "_controls_38jyj_22", o = {
4
4
  wrapper: a,
5
5
  controls: e
6
6
  }, p = ({
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index15.css');const a=require("react/jsx-runtime"),s="_dialog_1b99l_1",t="_wrapper_1b99l_26",l={dialog:s,wrapper:t},n=({children:e,setOpen:o,...i})=>a.jsx("div",{className:l.wrapper,onClick:()=>o?o(!1):{},"data-component":"dialog",children:a.jsx("dialog",{className:l.dialog,onClick:r=>r.stopPropagation(),...i,children:e})});exports.Dialog=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index11.css');const a=require("react/jsx-runtime"),s="_dialog_1b99l_1",t="_wrapper_1b99l_26",l={dialog:s,wrapper:t},n=({children:e,setOpen:o,...i})=>a.jsx("div",{className:l.wrapper,onClick:()=>o?o(!1):{},"data-component":"dialog",children:a.jsx("dialog",{className:l.dialog,onClick:r=>r.stopPropagation(),...i,children:e})});exports.Dialog=n;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import '../../assets/index15.css';const s = "_dialog_1b99l_1", t = "_wrapper_1b99l_26", l = {
2
+ import '../../assets/index11.css';const s = "_dialog_1b99l_1", t = "_wrapper_1b99l_26", l = {
3
3
  dialog: s,
4
4
  wrapper: t
5
5
  }, e = ({
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index36.css');const s=require("react/jsx-runtime"),n=require("../../classix-5H4IWnMA.cjs"),c="_figure_dbdy8_1",f="_offset_dbdy8_19",r={figure:c,offset:f},u=({children:i,className:o,label:t,offset:e})=>s.jsxs("figure",{className:n.t(r.figure,e&&r.offset,o),style:{...e&&{[`--offset-${e}`]:"var(--offset)"}},"data-component":"figure",children:[i,t&&s.jsx("figcaption",{"data-content":"screen-reader",children:t})]});exports.Figure=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index33.css');const s=require("react/jsx-runtime"),n=require("../../classix-5H4IWnMA.cjs"),c="_figure_dbdy8_1",f="_offset_dbdy8_19",r={figure:c,offset:f},u=({children:i,className:o,label:t,offset:e})=>s.jsxs("figure",{className:n.t(r.figure,e&&r.offset,o),style:{...e&&{[`--offset-${e}`]:"var(--offset)"}},"data-component":"figure",children:[i,t&&s.jsx("figcaption",{"data-content":"screen-reader",children:t})]});exports.Figure=u;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,6 +1,6 @@
1
1
  import { jsxs as s, jsx as i } from "react/jsx-runtime";
2
2
  import { t as n } from "../../classix-DG18itHa.js";
3
- import '../../assets/index36.css';const c = "_figure_dbdy8_1", d = "_offset_dbdy8_19", r = {
3
+ import '../../assets/index33.css';const c = "_figure_dbdy8_1", d = "_offset_dbdy8_19", r = {
4
4
  figure: c,
5
5
  offset: d
6
6
  }, u = ({
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index14.css');const e=require("react/jsx-runtime"),l=require("../icon/index.cjs"),r="_file_1kh7b_1",o={file:r,delete:"_delete_1kh7b_45"},c=({name:i,onClick:t,onDelete:n,url:a})=>e.jsxs("div",{className:o.file,"data-component":"file",children:[e.jsxs("a",{href:a,onClick:s=>{s.stopPropagation(),(t||!a)&&(s.preventDefault(),t&&t())},role:a||t?"document":"auto",title:i,children:[e.jsx(l.Icon,{name:"document",size:"small",variant:"primary"}),i]}),n&&e.jsx("a",{"aria-label":"delete document",className:o.delete,onClick:()=>n(),tabIndex:0,children:e.jsx(l.Icon,{name:"trash",size:"small",variant:"danger"})})]});exports.File=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index10.css');const e=require("react/jsx-runtime"),l=require("../icon/index.cjs"),r="_file_1kh7b_1",o={file:r,delete:"_delete_1kh7b_45"},c=({name:i,onClick:t,onDelete:n,url:a})=>e.jsxs("div",{className:o.file,"data-component":"file",children:[e.jsxs("a",{href:a,onClick:s=>{s.stopPropagation(),(t||!a)&&(s.preventDefault(),t&&t())},role:a||t?"document":"auto",title:i,children:[e.jsx(l.Icon,{name:"document",size:"small",variant:"primary"}),i]}),n&&e.jsx("a",{"aria-label":"delete document",className:o.delete,onClick:()=>n(),tabIndex:0,children:e.jsx(l.Icon,{name:"trash",size:"small",variant:"danger"})})]});exports.File=c;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,6 +1,6 @@
1
1
  import { jsxs as n, jsx as a } from "react/jsx-runtime";
2
2
  import { Icon as s } from "../icon/index.js";
3
- import '../../assets/index14.css';const d = "_file_1kh7b_1", o = {
3
+ import '../../assets/index10.css';const d = "_file_1kh7b_1", o = {
4
4
  file: d,
5
5
  delete: "_delete_1kh7b_45"
6
6
  }, f = ({
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index13.css');const s=require("react/jsx-runtime"),m=require("../../classix-5H4IWnMA.cjs"),a="_form_1by0q_1",c="_inline_1by0q_17",e={form:a,inline:c},l=({animation:o,children:n,className:t,inline:r=!1,...i})=>s.jsx("form",{className:m.t(t,r&&e.inline,e.form),"data-animation":o,...i,"data-component":"form",children:n&&n});exports.Form=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index34.css');const s=require("react/jsx-runtime"),m=require("../../classix-5H4IWnMA.cjs"),a="_form_1by0q_1",c="_inline_1by0q_17",e={form:a,inline:c},l=({animation:o,children:n,className:t,inline:r=!1,...i})=>s.jsx("form",{className:m.t(t,r&&e.inline,e.form),"data-animation":o,...i,"data-component":"form",children:n&&n});exports.Form=l;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,6 +1,6 @@
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 a = "_form_1by0q_1", f = "_inline_1by0q_17", n = {
3
+ import '../../assets/index34.css';const a = "_form_1by0q_1", f = "_inline_1by0q_17", n = {
4
4
  form: a,
5
5
  inline: f
6
6
  }, _ = ({
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index12.css');const a=require("react/jsx-runtime"),b=require("../../classix-5H4IWnMA.cjs"),y=require("../loading/index.cjs"),j="_graph_1ayim_11",v="_plot_1ayim_20",N="_item_1ayim_30",f="_column_1ayim_36",M="_value_1ayim_44",V="_track_1ayim_54",k="_bar_1ayim_61",S="_label_1ayim_82",e={graph:j,plot:v,item:N,column:f,value:M,track:V,bar:k,label:S,"is-loading":"_is-loading_1ayim_91"},m=l=>Number.isFinite(l)?Math.max(0,l):0,q=({className:l,height:r,items:n=[],label:o,style:h,valueFormatter:_=c=>c.toLocaleString(),...u})=>{const c=n.reduce((s,t)=>Math.max(s,m(t.value)),0),p={...h,"--graph-columns":Math.max(n.length,1),"--graph-height":r||"calc(var(--unit) * 16)"};return a.jsxs("figure",{className:b.t(e.graph,l),style:p,...u,"data-component":"graph",children:[o&&a.jsx("figcaption",{"data-content":"screen-reader",children:o}),n.length>0?a.jsx("ul",{className:e.plot,children:n.map((s,t)=>{const i=m(s.value),d=c>0?i/c*100:0,g=i>0?Math.max(d,6):0,x={"--bar-color":s.color,"--bar-delay":t*50+"ms","--bar-height":g+"%"};return a.jsxs("li",{className:e.item,"data-component":"graph",children:[a.jsxs("div",{className:e.column,children:[a.jsx("span",{className:e.value,children:_(s.value)}),a.jsx("span",{className:e.track,children:a.jsx("span",{className:e.bar,style:x})})]}),a.jsx("span",{className:e.label,title:s.label,children:s.label})]},s.label+t)})}):a.jsx("div",{className:e["is-loading"],children:a.jsx(y.Loading,{})})]})};exports.Graph=q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index9.css');const a=require("react/jsx-runtime"),b=require("../../classix-5H4IWnMA.cjs"),y=require("../loading/index.cjs"),j="_graph_1ayim_11",v="_plot_1ayim_20",N="_item_1ayim_30",f="_column_1ayim_36",M="_value_1ayim_44",V="_track_1ayim_54",k="_bar_1ayim_61",S="_label_1ayim_82",e={graph:j,plot:v,item:N,column:f,value:M,track:V,bar:k,label:S,"is-loading":"_is-loading_1ayim_91"},m=l=>Number.isFinite(l)?Math.max(0,l):0,q=({className:l,height:r,items:n=[],label:o,style:h,valueFormatter:_=c=>c.toLocaleString(),...u})=>{const c=n.reduce((s,t)=>Math.max(s,m(t.value)),0),p={...h,"--graph-columns":Math.max(n.length,1),"--graph-height":r||"calc(var(--unit) * 16)"};return a.jsxs("figure",{className:b.t(e.graph,l),style:p,...u,"data-component":"graph",children:[o&&a.jsx("figcaption",{"data-content":"screen-reader",children:o}),n.length>0?a.jsx("ul",{className:e.plot,children:n.map((s,t)=>{const i=m(s.value),d=c>0?i/c*100:0,g=i>0?Math.max(d,6):0,x={"--bar-color":s.color,"--bar-delay":t*50+"ms","--bar-height":g+"%"};return a.jsxs("li",{className:e.item,"data-component":"graph",children:[a.jsxs("div",{className:e.column,children:[a.jsx("span",{className:e.value,children:_(s.value)}),a.jsx("span",{className:e.track,children:a.jsx("span",{className:e.bar,style:x})})]}),a.jsx("span",{className:e.label,title:s.label,children:s.label})]},s.label+t)})}):a.jsx("div",{className:e["is-loading"],children:a.jsx(y.Loading,{})})]})};exports.Graph=q;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
2
  import { t as N } from "../../classix-DG18itHa.js";
3
3
  import { Loading as v } from "../loading/index.js";
4
- import '../../assets/index12.css';const f = "_graph_1ayim_11", x = "_plot_1ayim_20", V = "_item_1ayim_30", k = "_column_1ayim_36", M = "_value_1ayim_44", w = "_track_1ayim_54", j = "_bar_1ayim_61", L = "_label_1ayim_82", a = {
4
+ import '../../assets/index9.css';const f = "_graph_1ayim_11", x = "_plot_1ayim_20", V = "_item_1ayim_30", k = "_column_1ayim_36", M = "_value_1ayim_44", w = "_track_1ayim_54", j = "_bar_1ayim_61", L = "_label_1ayim_82", a = {
5
5
  graph: f,
6
6
  plot: x,
7
7
  item: V,
@@ -1,2 +1,2 @@
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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index8.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,6 +1,6 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { t as n } from "../../classix-DG18itHa.js";
3
- import '../../assets/index11.css';const s = "_group_g6ddz_1", m = {
3
+ import '../../assets/index8.css';const s = "_group_g6ddz_1", m = {
4
4
  group: s
5
5
  }, c = ({
6
6
  animation: o,
@@ -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="_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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index7.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,6 +1,6 @@
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 d = "_header_fh66b_1", m = "_jumbo_fh66b_46", e = {
3
+ import '../../assets/index7.css';const d = "_header_fh66b_1", m = "_jumbo_fh66b_46", e = {
4
4
  header: d,
5
5
  jumbo: m
6
6
  }, s = {
@@ -1,2 +1,2 @@
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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index35.css');const r=require("react/jsx-runtime"),l=require("../../classix-5H4IWnMA.cjs"),i=require("../../icons-R4Ufm_3V.cjs"),_="_icon_wciqx_1",m="_small_wciqx_9",u="_medium_wciqx_14",d="_large_wciqx_19",g="_danger_wciqx_24",w="_primary_wciqx_32",q="_white_wciqx_36",e={icon:_,small:m,medium:u,large:d,danger:g,default:"_default_wciqx_28",primary:w,white:q,"gap-right":"_gap-right_wciqx_40","gap-left":"_gap-left_wciqx_44"},x={large:e.large,medium:e.medium,small:e.small},p={danger:e.danger,default:e.default,primary:e.primary,white:e.white},y=({fill:n,gap:t="none",name:c,size:a="medium",variant:s="default"})=>{const o={maskImage:i.iconSVG(c,n??!1)};return r.jsx("span",{className:l.t(t!=="none"&&e[`gap-${t}`],x[a],e.icon,p[s]),style:o,"data-component":"icon"})},f=()=>Object.keys(i.iconPaths);exports.Icon=y;exports.Icons=f;
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 } from './icons';\nimport { embedSVG, iconPaths } from './icons';\nimport styles from './styles.module.css';\n\nconst sizes = {\n large: styles.large,\n medium: styles.medium,\n small: styles.small,\n};\n\nconst variants = {\n danger: styles.danger,\n default: styles.default,\n primary: styles.primary,\n white: styles.white,\n};\n\nexport type IconProps = {\n gap?: 'left' | 'none' | 'right';\n name: IconName;\n size?: keyof typeof sizes;\n variant?: keyof typeof variants;\n loading?: boolean;\n};\n\nexport const Icon = ({ gap = 'none', name, size = 'medium', variant = 'default' }: IconProps) => {\n const iconStyle = {\n maskImage: embedSVG(iconPaths[name].toString()),\n } as React.CSSProperties;\n\n const iconElement = (\n <span\n className={cx(\n gap !== 'none' && styles[`gap-${gap}`],\n sizes[size],\n styles.icon,\n variants[variant]\n )}\n style={iconStyle}\n />\n );\n\n return iconElement;\n};\n\nexport const Icons = () => {\n return Object.keys(iconPaths);\n};\n"],"names":["sizes","large","styles","medium","small","variants","danger","default","primary","white","Icon","gap","name","size","variant","iconStyle","maskImage","embedSVG","iconPaths","toString","cx","icon","Icons","Object","keys"],"mappings":"6eAMMA,EAAQ,CACZC,MAAOC,EAAOD,MACdE,OAAQD,EAAOC,OACfC,MAAOF,EAAOE,KAChB,EAEMC,EAAW,CACfC,OAAQJ,EAAOI,OACfC,QAASL,EAAOK,QAChBC,QAASN,EAAOM,QAChBC,MAAOP,EAAOO,KAChB,EAUaC,EAAOA,CAAC,CAAEC,IAAAA,EAAM,OAAQC,KAAAA,EAAMC,KAAAA,EAAO,SAAUC,QAAAA,EAAU,SAAqB,IAAM,CAC/F,MAAMC,EAAY,CAChBC,UAAWC,EAAAA,SAASC,EAAAA,UAAUN,CAAI,EAAEO,UAAU,CAAA,EAehD,aAXG,OAAA,CACC,UAAWC,IACTT,IAAQ,QAAUT,EAAO,OAAOS,CAAG,EAAE,EACrCX,EAAMa,CAAI,EACVX,EAAOmB,KACPhB,EAASS,CAAO,CAClB,EACA,MAAOC,CAAAA,CAAU,CAKvB,EAEaO,EAAQA,IACZC,OAAOC,KAAKN,WAAS"}
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/icon/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport { IconName, iconSVG } from './icons';\nimport { iconPaths } from './icons';\nimport styles from './styles.module.css';\n\nconst sizes = {\n large: styles.large,\n medium: styles.medium,\n small: styles.small,\n};\n\nconst variants = {\n danger: styles.danger,\n default: styles.default,\n primary: styles.primary,\n white: styles.white,\n};\n\nexport type IconProps = {\n fill?: boolean;\n gap?: 'left' | 'none' | 'right';\n name: IconName;\n size?: keyof typeof sizes;\n variant?: keyof typeof variants;\n};\n\nexport const Icon = ({\n fill,\n gap = 'none',\n name,\n size = 'medium',\n variant = 'default',\n}: IconProps) => {\n const iconStyle = {\n maskImage: iconSVG(name, fill ?? false),\n } as React.CSSProperties;\n\n return (\n <span\n className={cx(\n gap !== 'none' && styles[`gap-${gap}`],\n sizes[size],\n styles.icon,\n variants[variant]\n )}\n style={iconStyle}\n />\n );\n};\n\nexport const Icons = () => {\n return Object.keys(iconPaths);\n};\n"],"names":["sizes","large","styles","medium","small","variants","danger","default","primary","white","Icon","fill","gap","name","size","variant","iconStyle","maskImage","iconSVG","jsx","cx","icon","Icons","Object","keys","iconPaths"],"mappings":"6eAMMA,EAAQ,CACZC,MAAOC,EAAOD,MACdE,OAAQD,EAAOC,OACfC,MAAOF,EAAOE,KAChB,EAEMC,EAAW,CACfC,OAAQJ,EAAOI,OACfC,QAASL,EAAOK,QAChBC,QAASN,EAAOM,QAChBC,MAAOP,EAAOO,KAChB,EAUaC,EAAOA,CAAC,CACnBC,KAAAA,EACAC,IAAAA,EAAM,OACNC,KAAAA,EACAC,KAAAA,EAAO,SACPC,QAAAA,EAAU,SACD,IAAM,CACf,MAAMC,EAAY,CAChBC,UAAWC,EAAAA,QAAQL,EAAMF,GAAQ,EAAK,CAAA,EAGxC,OACEQ,MAAC,QACC,UAAWC,EAAAA,EACTR,IAAQ,QAAUV,EAAO,OAAOU,CAAG,EAAE,EACrCZ,EAAMc,CAAI,EACVZ,EAAOmB,KACPhB,EAASU,CAAO,CAClB,EACA,MAAOC,EAAU,iBAAA,MAAA,CAAA,CAGvB,EAEaM,EAAQA,IACZC,OAAOC,KAAKC,WAAS"}
@@ -1,39 +1,40 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { t as m } from "../../classix-DG18itHa.js";
3
- import { e as o, a as i } from "../../icons-BSp58j2P.js";
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
- icon: _,
6
- small: l,
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { t as r } from "../../classix-DG18itHa.js";
3
+ import { i as m, a as _ } from "../../icons-VE52iqR8.js";
4
+ import '../../assets/index35.css';const l = "_icon_wciqx_1", d = "_small_wciqx_9", g = "_medium_wciqx_14", p = "_large_wciqx_19", w = "_danger_wciqx_24", u = "_primary_wciqx_32", x = "_white_wciqx_36", a = {
5
+ icon: l,
6
+ small: d,
7
7
  medium: g,
8
- large: d,
8
+ large: p,
9
9
  danger: w,
10
10
  default: "_default_wciqx_28",
11
- primary: p,
12
- white: u,
11
+ primary: u,
12
+ white: x,
13
13
  "gap-right": "_gap-right_wciqx_40",
14
14
  "gap-left": "_gap-left_wciqx_44"
15
- }, x = {
16
- large: e.large,
17
- medium: e.medium,
18
- small: e.small
19
15
  }, f = {
20
- danger: e.danger,
21
- default: e.default,
22
- primary: e.primary,
23
- white: e.white
24
- }, S = ({
25
- gap: t = "none",
26
- name: a,
16
+ large: a.large,
17
+ medium: a.medium,
18
+ small: a.small
19
+ }, q = {
20
+ danger: a.danger,
21
+ default: a.default,
22
+ primary: a.primary,
23
+ white: a.white
24
+ }, j = ({
25
+ fill: i,
26
+ gap: e = "none",
27
+ name: t,
27
28
  size: n = "medium",
28
29
  variant: c = "default"
29
30
  }) => {
30
- const r = {
31
- maskImage: o(i[a].toString())
31
+ const s = {
32
+ maskImage: m(t, i ?? !1)
32
33
  };
33
- return /* @__PURE__ */ s("span", { className: m(t !== "none" && e[`gap-${t}`], x[n], e.icon, f[c]), style: r });
34
- }, b = () => Object.keys(i);
34
+ return /* @__PURE__ */ o("span", { className: r(e !== "none" && a[`gap-${e}`], f[n], a.icon, q[c]), style: s, "data-component": "icon" });
35
+ }, k = () => Object.keys(_);
35
36
  export {
36
- S as Icon,
37
- b as Icons
37
+ j as Icon,
38
+ k as Icons
38
39
  };
39
40
  //# 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 } from './icons';\nimport { embedSVG, iconPaths } from './icons';\nimport styles from './styles.module.css';\n\nconst sizes = {\n large: styles.large,\n medium: styles.medium,\n small: styles.small,\n};\n\nconst variants = {\n danger: styles.danger,\n default: styles.default,\n primary: styles.primary,\n white: styles.white,\n};\n\nexport type IconProps = {\n gap?: 'left' | 'none' | 'right';\n name: IconName;\n size?: keyof typeof sizes;\n variant?: keyof typeof variants;\n loading?: boolean;\n};\n\nexport const Icon = ({ gap = 'none', name, size = 'medium', variant = 'default' }: IconProps) => {\n const iconStyle = {\n maskImage: embedSVG(iconPaths[name].toString()),\n } as React.CSSProperties;\n\n const iconElement = (\n <span\n className={cx(\n gap !== 'none' && styles[`gap-${gap}`],\n sizes[size],\n styles.icon,\n variants[variant]\n )}\n style={iconStyle}\n />\n );\n\n return iconElement;\n};\n\nexport const Icons = () => {\n return Object.keys(iconPaths);\n};\n"],"names":["sizes","large","styles","medium","small","variants","danger","default","primary","white","Icon","gap","name","size","variant","iconStyle","maskImage","embedSVG","iconPaths","toString","cx","icon","Icons","Object","keys"],"mappings":";;;;;;;;;;;;;;GAMMA,IAAQ;AAAA,EACZC,OAAOC,EAAOD;AAAAA,EACdE,QAAQD,EAAOC;AAAAA,EACfC,OAAOF,EAAOE;AAChB,GAEMC,IAAW;AAAA,EACfC,QAAQJ,EAAOI;AAAAA,EACfC,SAASL,EAAOK;AAAAA,EAChBC,SAASN,EAAOM;AAAAA,EAChBC,OAAOP,EAAOO;AAChB,GAUaC,IAAOA,CAAC;AAAA,EAAEC,KAAAA,IAAM;AAAA,EAAQC,MAAAA;AAAAA,EAAMC,MAAAA,IAAO;AAAA,EAAUC,SAAAA,IAAU;AAAqB,MAAM;AAC/F,QAAMC,IAAY;AAAA,IAChBC,WAAWC,EAASC,EAAUN,CAAI,EAAEO,UAAU;AAAA,EAAA;AAehD,2BAXG,QAAA,EACC,WAAWC,EACTT,MAAQ,UAAUT,EAAO,OAAOS,CAAG,EAAE,GACrCX,EAAMa,CAAI,GACVX,EAAOmB,MACPhB,EAASS,CAAO,CAClB,GACA,OAAOC,EAAAA,CAAU;AAKvB,GAEaO,IAAQA,MACZC,OAAOC,KAAKN,CAAS;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/icon/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport { IconName, iconSVG } from './icons';\nimport { iconPaths } from './icons';\nimport styles from './styles.module.css';\n\nconst sizes = {\n large: styles.large,\n medium: styles.medium,\n small: styles.small,\n};\n\nconst variants = {\n danger: styles.danger,\n default: styles.default,\n primary: styles.primary,\n white: styles.white,\n};\n\nexport type IconProps = {\n fill?: boolean;\n gap?: 'left' | 'none' | 'right';\n name: IconName;\n size?: keyof typeof sizes;\n variant?: keyof typeof variants;\n};\n\nexport const Icon = ({\n fill,\n gap = 'none',\n name,\n size = 'medium',\n variant = 'default',\n}: IconProps) => {\n const iconStyle = {\n maskImage: iconSVG(name, fill ?? false),\n } as React.CSSProperties;\n\n return (\n <span\n className={cx(\n gap !== 'none' && styles[`gap-${gap}`],\n sizes[size],\n styles.icon,\n variants[variant]\n )}\n style={iconStyle}\n />\n );\n};\n\nexport const Icons = () => {\n return Object.keys(iconPaths);\n};\n"],"names":["sizes","large","styles","medium","small","variants","danger","default","primary","white","Icon","fill","gap","name","size","variant","iconStyle","maskImage","iconSVG","jsx","cx","icon","Icons","Object","keys","iconPaths"],"mappings":";;;;;;;;;;;;;;GAMMA,IAAQ;AAAA,EACZC,OAAOC,EAAOD;AAAAA,EACdE,QAAQD,EAAOC;AAAAA,EACfC,OAAOF,EAAOE;AAChB,GAEMC,IAAW;AAAA,EACfC,QAAQJ,EAAOI;AAAAA,EACfC,SAASL,EAAOK;AAAAA,EAChBC,SAASN,EAAOM;AAAAA,EAChBC,OAAOP,EAAOO;AAChB,GAUaC,IAAOA,CAAC;AAAA,EACnBC,MAAAA;AAAAA,EACAC,KAAAA,IAAM;AAAA,EACNC,MAAAA;AAAAA,EACAC,MAAAA,IAAO;AAAA,EACPC,SAAAA,IAAU;AACD,MAAM;AACf,QAAMC,IAAY;AAAA,IAChBC,WAAWC,EAAQL,GAAMF,KAAQ,EAAK;AAAA,EAAA;AAGxC,SACE,gBAAAQ,EAAC,UACC,WAAWC,EACTR,MAAQ,UAAUV,EAAO,OAAOU,CAAG,EAAE,GACrCZ,EAAMc,CAAI,GACVZ,EAAOmB,MACPhB,EAASU,CAAO,CAClB,GACA,OAAOC,GAAU,kBAAA,OAAA,CAAA;AAGvB,GAEaM,IAAQA,MACZC,OAAOC,KAAKC,CAAS;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index9.css');const d=require("react/jsx-runtime"),c=require("react"),o="_image_nnuov_1",y={image:o};function S({fadeDurationMs:n=250,showOnError:r=!0,onLoad:a,onError:u,style:l,...t}){const i=c.useRef(null),[m,s]=c.useState(!1);c.useEffect(()=>{s(!1)},[t.src,t.srcSet]),c.useEffect(()=>{const e=i.current;e&&e.complete&&e.naturalWidth>0&&s(!0)},[t.src,t.srcSet]);const f=e=>{s(!0),a==null||a(e)},g=e=>{r&&s(!0),u==null||u(e)};return d.jsx("img",{...t,className:y.image,onLoad:f,onError:g,ref:i,style:{...l,opacity:m?1:0,"--duration-override":`${n}ms`},"data-component":"image"})}exports.Image=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index6.css');const d=require("react/jsx-runtime"),c=require("react"),o="_image_nnuov_1",y={image:o};function S({fadeDurationMs:n=250,showOnError:r=!0,onLoad:a,onError:u,style:l,...t}){const i=c.useRef(null),[m,s]=c.useState(!1);c.useEffect(()=>{s(!1)},[t.src,t.srcSet]),c.useEffect(()=>{const e=i.current;e&&e.complete&&e.naturalWidth>0&&s(!0)},[t.src,t.srcSet]);const f=e=>{s(!0),a==null||a(e)},g=e=>{r&&s(!0),u==null||u(e)};return d.jsx("img",{...t,className:y.image,onLoad:f,onError:g,ref:i,style:{...l,opacity:m?1:0,"--duration-override":`${n}ms`},"data-component":"image"})}exports.Image=S;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,6 +1,6 @@
1
1
  import { jsx as g } from "react/jsx-runtime";
2
2
  import { useRef as o, useState as h, useEffect as m } from "react";
3
- import '../../assets/index9.css';const y = "_image_nnuov_1", S = {
3
+ import '../../assets/index6.css';const y = "_image_nnuov_1", S = {
4
4
  image: y
5
5
  };
6
6
  function x({
@@ -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"),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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index5.css');const n=require("react/jsx-runtime"),u=require("../../classix-5H4IWnMA.cjs"),d="_layout_xmd1t_12",l="_dashboard_xmd1t_26",r="_home_xmd1t_30",t={layout:d,dashboard:l,home:r},c=({children:o,isLoading:a=!1,feature:s,...e})=>n.jsx("main",{className:u.t(t.layout,t[s],a&&"is-loading"),...e,"data-component":"layout",children:o});exports.Layout=c;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,15 +1,15 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
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 = {
3
+ import '../../assets/index5.css';const r = "_layout_xmd1t_12", e = "_dashboard_xmd1t_26", l = "_home_xmd1t_30", o = {
4
4
  layout: r,
5
5
  dashboard: e,
6
6
  home: l
7
7
  }, u = ({
8
- children: a,
9
- isLoading: t = !1,
8
+ children: t,
9
+ isLoading: a = !1,
10
10
  feature: s,
11
11
  ...m
12
- }) => /* @__PURE__ */ d("main", { className: n(o.layout, o[s], t && "is-loading"), ...m, "data-component": "layout", children: a });
12
+ }) => /* @__PURE__ */ d("main", { className: n(o.layout, o[s], a && "is-loading"), ...m, "data-component": "layout", children: t });
13
13
  export {
14
14
  u as Layout
15
15
  };
@@ -1,2 +1,2 @@
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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index36.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/index38.css';const _ = "_link_8fl9a_1", s = "_primary_8fl9a_7", e = "_danger_8fl9a_13", c = "_minimal_8fl9a_21", n = {
3
+ import '../../assets/index36.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 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=_;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index37.css');const c=require("react/jsx-runtime"),_=require("../../classix-5H4IWnMA.cjs"),r=require("../../helpers-fOobx0tS.cjs"),d="_list_1t7jo_1",j="_columns_1t7jo_25",x="_horizontal_1t7jo_31",t={list:d,columns:j,horizontal:x};function y({children:s,className:a,columns:o=1,horizontal:u,ordered:m,style:h,...l}){const n=Number.isFinite(o)?Math.max(1,Math.floor(o)):1,e=_.t(a,t.list,n>1&&t.columns,u&&t.horizontal),i={...h,"--list-columns":n};return m?c.jsx("ol",{className:e,style:i,...l,"data-component":"list",children:r.wrapChildren(s)}):c.jsx("ul",{className:e,style:i,...l,"data-component":"list",children:r.wrapChildren(s)})}exports.List=y;
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';\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
+ {"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 horizontal?: boolean;\n ordered?: boolean;\n};\n\nexport function List({\n children,\n className,\n columns = 1,\n horizontal,\n ordered,\n style,\n ...props\n}: ListProps) {\n const cols = Number.isFinite(columns) ? Math.max(1, Math.floor(columns)) : 1;\n\n const classes = cx(\n className,\n styles.list,\n cols > 1 && styles.columns,\n horizontal && styles.horizontal\n );\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 ordered ? (\n <ol\n className={classes}\n style={withVars}\n {...props}\n >\n {wrapChildren(children)}\n </ol>\n ) : (\n <ul\n className={classes}\n style={withVars}\n {...props}\n >\n {wrapChildren(children)}\n </ul>\n );\n}\n"],"names":["List","children","className","columns","horizontal","ordered","style","props","cols","Number","isFinite","Math","max","floor","classes","cx","styles","list","withVars","jsx","wrapChildren"],"mappings":"wSAYO,SAASA,EAAK,CACnBC,SAAAA,EACAC,UAAAA,EACAC,QAAAA,EAAU,EACVC,WAAAA,EACAC,QAAAA,EACAC,MAAAA,EACA,GAAGC,CACM,EAAG,CACZ,MAAMC,EAAOC,OAAOC,SAASP,CAAO,EAAIQ,KAAKC,IAAI,EAAGD,KAAKE,MAAMV,CAAO,CAAC,EAAI,EAErEW,EAAUC,EAAAA,EACdb,EACAc,EAAOC,KACPT,EAAO,GAAKQ,EAAOb,QACnBC,GAAcY,EAAOZ,UACvB,EAMMc,EAAqB,CACzB,GAAGZ,EACH,iBAAkBE,CAAAA,EAGpB,OAAOH,EACLc,EAAAA,IAAC,KAAA,CACC,UAAWL,EACX,MAAOI,EACP,GAAIX,EAAM,iBAAA,OAETa,SAAAA,EAAAA,aAAanB,CAAQ,CAAA,CACxB,EAEAkB,EAAAA,IAAC,KAAA,CACC,UAAWL,EACX,MAAOI,EACP,GAAIX,EAAM,iBAAA,OAETa,SAAAA,EAAAA,aAAanB,CAAQ,CAAA,CACxB,CAEJ"}
@@ -1,24 +1,27 @@
1
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
2
+ import { t as u } from "../../classix-DG18itHa.js";
3
+ import { w as r } from "../../helpers-Dbey5Ztb.js";
4
+ import '../../assets/index37.css';const f = "_list_1t7jo_1", p = "_columns_1t7jo_25", d = "_horizontal_1t7jo_31", t = {
5
+ list: f,
6
+ columns: p,
7
+ horizontal: d
7
8
  };
8
- function d({
9
- children: n,
10
- className: l,
11
- columns: t = 1,
12
- style: i,
13
- ...m
9
+ function x({
10
+ children: o,
11
+ className: m,
12
+ columns: s = 1,
13
+ horizontal: e,
14
+ ordered: h,
15
+ style: _,
16
+ ...l
14
17
  }) {
15
- const s = Number.isFinite(t) ? Math.max(1, Math.floor(t)) : 1, r = {
16
- ...i,
17
- "--list-columns": s
18
+ const n = Number.isFinite(s) ? Math.max(1, Math.floor(s)) : 1, i = u(m, t.list, n > 1 && t.columns, e && t.horizontal), a = {
19
+ ..._,
20
+ "--list-columns": n
18
21
  };
19
- return /* @__PURE__ */ c("ul", { className: a(l, o.list, s > 1 && o.columns), style: r, ...m, "data-component": "list", children: e(n) });
22
+ return h ? /* @__PURE__ */ c("ol", { className: i, style: a, ...l, "data-component": "list", children: r(o) }) : /* @__PURE__ */ c("ul", { className: i, style: a, ...l, "data-component": "list", children: r(o) });
20
23
  }
21
24
  export {
22
- d as List
25
+ x as List
23
26
  };
24
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
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
+ {"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 horizontal?: boolean;\n ordered?: boolean;\n};\n\nexport function List({\n children,\n className,\n columns = 1,\n horizontal,\n ordered,\n style,\n ...props\n}: ListProps) {\n const cols = Number.isFinite(columns) ? Math.max(1, Math.floor(columns)) : 1;\n\n const classes = cx(\n className,\n styles.list,\n cols > 1 && styles.columns,\n horizontal && styles.horizontal\n );\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 ordered ? (\n <ol\n className={classes}\n style={withVars}\n {...props}\n >\n {wrapChildren(children)}\n </ol>\n ) : (\n <ul\n className={classes}\n style={withVars}\n {...props}\n >\n {wrapChildren(children)}\n </ul>\n );\n}\n"],"names":["List","children","className","columns","horizontal","ordered","style","props","cols","Number","isFinite","Math","max","floor","classes","cx","styles","list","withVars","jsx","wrapChildren"],"mappings":";;;;;;;;AAYO,SAASA,EAAK;AAAA,EACnBC,UAAAA;AAAAA,EACAC,WAAAA;AAAAA,EACAC,SAAAA,IAAU;AAAA,EACVC,YAAAA;AAAAA,EACAC,SAAAA;AAAAA,EACAC,OAAAA;AAAAA,EACA,GAAGC;AACM,GAAG;AACZ,QAAMC,IAAOC,OAAOC,SAASP,CAAO,IAAIQ,KAAKC,IAAI,GAAGD,KAAKE,MAAMV,CAAO,CAAC,IAAI,GAErEW,IAAUC,EACdb,GACAc,EAAOC,MACPT,IAAO,KAAKQ,EAAOb,SACnBC,KAAcY,EAAOZ,UACvB,GAMMc,IAAqB;AAAA,IACzB,GAAGZ;AAAAA,IACH,kBAAkBE;AAAAA,EAAAA;AAGpB,SAAOH,IACL,gBAAAc,EAAC,MAAA,EACC,WAAWL,GACX,OAAOI,GACP,GAAIX,GAAM,kBAAA,QAETa,UAAAA,EAAanB,CAAQ,EAAA,CACxB,IAEA,gBAAAkB,EAAC,MAAA,EACC,WAAWL,GACX,OAAOI,GACP,GAAIX,GAAM,kBAAA,QAETa,UAAAA,EAAanB,CAAQ,EAAA,CACxB;AAEJ;"}
@@ -1,2 +1,2 @@
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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index14.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/index18.css';const c = "_loading_1ytlq_23", _ = "_spin_1ytlq_1", p = "_ping_1ytlq_39", e = "_sticky_1ytlq_65", n = {
3
+ import '../../assets/index14.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/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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index38.css');const s=require("react/jsx-runtime"),o=require("../../classix-5H4IWnMA.cjs"),r=require("../icon/index.cjs"),c="_message_1dzkv_1",d="_preview_1dzkv_36",t={message:c,preview:d},m=({content:a,id:n,preview:i,type:e="default"})=>s.jsxs("div",{className:o.t(t.message,i&&t.preview),"data-id":n,"data-type":e,"data-component":"message",children:[e=="system"&&s.jsx(r.Icon,{gap:"right",name:"info"}),a]});exports.Message=m;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,16 +1,16 @@
1
1
  import { jsxs as o, jsx as r } from "react/jsx-runtime";
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
2
+ import { t as i } from "../../classix-DG18itHa.js";
3
+ import { Icon as n } from "../icon/index.js";
4
+ import '../../assets/index38.css';const p = "_message_1dzkv_1", d = "_preview_1dzkv_36", s = {
5
+ message: p,
6
+ preview: d
7
7
  }, _ = ({
8
8
  content: t,
9
9
  id: a,
10
10
  preview: m,
11
11
  type: e = "default"
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" }),
12
+ }) => /* @__PURE__ */ o("div", { className: i(s.message, m && s.preview), "data-id": a, "data-type": e, "data-component": "message", children: [
13
+ e == "system" && /* @__PURE__ */ r(n, { gap: "right", name: "info" }),
14
14
  t
15
15
  ] });
16
16
  export {
@@ -1,2 +1,2 @@
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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index39.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,6 +1,6 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
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 = {
3
+ import '../../assets/index39.css';const _ = "_nav_1g1sp_1", e = "_horizontal_1g1sp_7", c = "_tabs_1g1sp_17", v = "_pills_1g1sp_38", a = {
4
4
  nav: _,
5
5
  horizontal: e,
6
6
  tabs: c,
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index6.css');const e=require("react/jsx-runtime"),n=require("../../classix-5H4IWnMA.cjs"),d=require("../../utils-D_TJ8wDc.cjs"),a="_select_kvjzq_1",q="_label_kvjzq_21",j="_required_kvjzq_25",s={select:a,label:q,required:j},_=({children:u,label:c,placeholder:l,...t})=>{const{touched:i,onBlur:o}=d.useTouched(t.value===""),r=e.jsxs("select",{className:n.t(s.select,i&&"touched"),onBlur:o,...t,children:[l&&e.jsx("option",{value:"",hidden:!0,children:l}),u]});return c?e.jsxs("label",{"data-component":"select",children:[e.jsx("span",{className:n.t(s.label,t.required&&s.required),children:c}),r]}):r};exports.Select=_;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index4.css');const e=require("react/jsx-runtime"),n=require("../../classix-5H4IWnMA.cjs"),d=require("../../utils-D_TJ8wDc.cjs"),a="_select_kvjzq_1",q="_label_kvjzq_21",j="_required_kvjzq_25",s={select:a,label:q,required:j},_=({children:u,label:c,placeholder:l,...t})=>{const{touched:i,onBlur:o}=d.useTouched(t.value===""),r=e.jsxs("select",{className:n.t(s.select,i&&"touched"),onBlur:o,...t,children:[l&&e.jsx("option",{value:"",hidden:!0,children:l}),u]});return c?e.jsxs("label",{"data-component":"select",children:[e.jsx("span",{className:n.t(s.label,t.required&&s.required),children:c}),r]}):r};exports.Select=_;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  import { jsxs as s, jsx as n } from "react/jsx-runtime";
2
2
  import { t as o } from "../../classix-DG18itHa.js";
3
3
  import { u as a } from "../../utils-DXIJVVzz.js";
4
- import '../../assets/index6.css';const m = "_select_kvjzq_1", _ = "_label_kvjzq_21", q = "_required_kvjzq_25", t = {
4
+ import '../../assets/index4.css';const m = "_select_kvjzq_1", _ = "_label_kvjzq_21", q = "_required_kvjzq_25", t = {
5
5
  select: m,
6
6
  label: _,
7
7
  required: q
@@ -1,2 +1,2 @@
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=_;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index3.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,6 +1,6 @@
1
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 = "_table_k4bpz_1", q = {
3
+ import '../../assets/index3.css';const j = "_table_k4bpz_1", q = {
4
4
  table: j
5
5
  }, E = ({
6
6
  children: C,
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index3.css');const e=require("react/jsx-runtime"),s=require("../../classix-5H4IWnMA.cjs"),d=require("../../utils-D_TJ8wDc.cjs"),a=require("../../styles.module--qoz6wR5.cjs"),m="_label_33pzt_1",p="_textarea_33pzt_5",r={label:m,textarea:p},y=({label:t,maxRows:l=12,minRows:n=3,required:o,value:c,...u})=>{const{touched:i,onBlur:x}=d.useTouched(c==="");return e.jsxs("label",{"data-component":"textarea",children:[t&&e.jsx("span",{className:s.t(r.label,o&&a.inputStyles.required),children:t}),e.jsx("textarea",{className:s.t(a.inputStyles.input,r.textarea,i&&"touched"),onBlur:x,...u,style:{"--min-rows":n,"--max-rows":l}})]})};exports.Textarea=y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index40.css');const e=require("react/jsx-runtime"),a=require("../../classix-5H4IWnMA.cjs"),d=require("../../utils-D_TJ8wDc.cjs"),r=require("../../styles.module--qoz6wR5.cjs"),m="_label_33pzt_1",p="_textarea_33pzt_5",l={label:m,textarea:p},y=({label:t,maxRows:n=12,minRows:o=3,required:c,value:s,...u})=>{const{touched:i,onBlur:x}=d.useTouched(s==="");return e.jsxs("label",{"data-component":"textarea",children:[t&&e.jsx("span",{className:a.t(l.label,c&&r.inputStyles.required),children:t}),e.jsx("textarea",{className:a.t(r.inputStyles.input,l.textarea,i&&"touched"),onBlur:x,...u,style:{"--min-rows":o,"--max-rows":n},value:s})]})};exports.Textarea=y;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../src/components/textarea/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport { useTouched } from '@/utils.ts';\n\nimport inputStyles from '../input/styles.module.css';\nimport styles from './styles.module.css';\n\nexport type TextareaProps = React.ComponentPropsWithoutRef<'textarea'> & {\n label?: string;\n maxRows?: number;\n minRows?: number;\n};\n\nexport const Textarea = ({\n label,\n maxRows = 12,\n minRows = 3,\n required,\n value,\n ...props\n}: TextareaProps) => {\n const { touched, onBlur } = useTouched(value === '');\n\n return (\n <label>\n {label && <span className={cx(styles.label, required && inputStyles.required)}>{label}</span>}\n <textarea\n className={cx(inputStyles.input, styles.textarea, touched && 'touched')}\n onBlur={onBlur}\n {...props}\n style={\n {\n '--min-rows': minRows,\n '--max-rows': maxRows,\n } as React.CSSProperties\n }\n ></textarea>\n </label>\n );\n};\n"],"names":["Textarea","label","maxRows","minRows","required","value","props","touched","onBlur","useTouched","jsxs","jsx","cx","styles","inputStyles","input","textarea"],"mappings":"iTAaaA,EAAWA,CAAC,CACvBC,MAAAA,EACAC,QAAAA,EAAU,GACVC,QAAAA,EAAU,EACVC,SAAAA,EACAC,MAAAA,EACA,GAAGC,CACU,IAAM,CACnB,KAAM,CAAEC,QAAAA,EAASC,OAAAA,CAAAA,EAAWC,EAAAA,WAAWJ,IAAU,EAAE,EAEnD,OACEK,EAAAA,KAAC,QAAA,CAAK,iBAAA,WACHT,SAAAA,CAAAA,GAASU,EAAAA,IAAC,OAAA,CAAK,UAAWC,EAAAA,EAAGC,EAAOZ,MAAOG,GAAYU,EAAAA,YAAYV,QAAQ,EAAIH,SAAAA,CAAAA,CAAM,EACtFU,EAAAA,IAAC,WAAA,CACC,UAAWC,EAAAA,EAAGE,EAAAA,YAAYC,MAAOF,EAAOG,SAAUT,GAAW,SAAS,EACtE,OAAAC,KACIF,EACJ,MACE,CACE,aAAcH,EACd,aAAcD,CAAAA,CAChB,CAEH,CAAA,EACH,CAEJ"}
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/textarea/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport { useTouched } from '@/utils.ts';\n\nimport inputStyles from '../input/styles.module.css';\nimport styles from './styles.module.css';\n\nexport type TextareaProps = React.ComponentPropsWithoutRef<'textarea'> & {\n label?: string;\n maxRows?: number;\n minRows?: number;\n};\n\nexport const Textarea = ({\n label,\n maxRows = 12,\n minRows = 3,\n required,\n value,\n ...props\n}: TextareaProps) => {\n const { touched, onBlur } = useTouched(value === '');\n\n return (\n <label>\n {label && <span className={cx(styles.label, required && inputStyles.required)}>{label}</span>}\n <textarea\n className={cx(inputStyles.input, styles.textarea, touched && 'touched')}\n onBlur={onBlur}\n {...props}\n style={\n {\n '--min-rows': minRows,\n '--max-rows': maxRows,\n } as React.CSSProperties\n }\n value={value}\n ></textarea>\n </label>\n );\n};\n"],"names":["Textarea","label","maxRows","minRows","required","value","props","touched","onBlur","useTouched","jsxs","jsx","cx","styles","inputStyles","input","textarea"],"mappings":"iTAaaA,EAAWA,CAAC,CACvBC,MAAAA,EACAC,QAAAA,EAAU,GACVC,QAAAA,EAAU,EACVC,SAAAA,EACAC,MAAAA,EACA,GAAGC,CACU,IAAM,CACnB,KAAM,CAAEC,QAAAA,EAASC,OAAAA,CAAAA,EAAWC,EAAAA,WAAWJ,IAAU,EAAE,EAEnD,OACEK,EAAAA,KAAC,QAAA,CAAK,iBAAA,WACHT,SAAAA,CAAAA,GAASU,EAAAA,IAAC,OAAA,CAAK,UAAWC,EAAAA,EAAGC,EAAOZ,MAAOG,GAAYU,EAAAA,YAAYV,QAAQ,EAAIH,SAAAA,CAAAA,CAAM,EACtFU,EAAAA,IAAC,WAAA,CACC,UAAWC,EAAAA,EAAGE,EAAAA,YAAYC,MAAOF,EAAOG,SAAUT,GAAW,SAAS,EACtE,OAAAC,KACIF,EACJ,MACE,CACE,aAAcH,EACd,aAAcD,CAAAA,EAGlB,MAAAG,CAAA,CACD,CAAA,EACH,CAEJ"}