@solibo/solibo-ui 2.2.5 → 2.2.7

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 (127) hide show
  1. package/dist/assets/index.css +1 -1
  2. package/dist/components/app-link/index.cjs +0 -1
  3. package/dist/components/app-link/index.js +0 -1
  4. package/dist/components/app-shell/index.cjs +0 -1
  5. package/dist/components/app-shell/index.js +0 -1
  6. package/dist/components/aside/index.cjs +0 -1
  7. package/dist/components/aside/index.js +0 -1
  8. package/dist/components/avatar/index.cjs +0 -1
  9. package/dist/components/avatar/index.js +0 -1
  10. package/dist/components/badge/index.cjs +0 -1
  11. package/dist/components/badge/index.js +0 -1
  12. package/dist/components/banner/index.cjs +0 -1
  13. package/dist/components/banner/index.js +0 -1
  14. package/dist/components/branding/index.cjs +0 -1
  15. package/dist/components/branding/index.js +0 -1
  16. package/dist/components/button/index.cjs +0 -1
  17. package/dist/components/button/index.js +0 -1
  18. package/dist/components/card/index.cjs +0 -1
  19. package/dist/components/card/index.js +0 -1
  20. package/dist/components/checkbox/index.cjs +0 -1
  21. package/dist/components/checkbox/index.js +0 -1
  22. package/dist/components/chip/index.cjs +0 -1
  23. package/dist/components/chip/index.js +0 -1
  24. package/dist/components/clipboard/index.cjs +0 -1
  25. package/dist/components/clipboard/index.js +0 -1
  26. package/dist/components/collapsible/index.cjs +0 -1
  27. package/dist/components/collapsible/index.js +0 -1
  28. package/dist/components/controls/index.cjs +0 -1
  29. package/dist/components/controls/index.js +0 -1
  30. package/dist/components/croppable/index.cjs +0 -1
  31. package/dist/components/croppable/index.js +0 -1
  32. package/dist/components/dialog/index.cjs +0 -1
  33. package/dist/components/dialog/index.js +0 -1
  34. package/dist/components/divider/index.cjs +0 -1
  35. package/dist/components/divider/index.js +0 -1
  36. package/dist/components/dropdown/index.cjs +0 -1
  37. package/dist/components/dropdown/index.js +0 -1
  38. package/dist/components/dropzone/index.cjs +0 -1
  39. package/dist/components/dropzone/index.js +0 -1
  40. package/dist/components/editor/index.cjs +0 -1
  41. package/dist/components/editor/index.js +0 -1
  42. package/dist/components/empty-state/index.cjs +0 -1
  43. package/dist/components/empty-state/index.js +0 -1
  44. package/dist/components/fieldset/index.cjs +0 -1
  45. package/dist/components/fieldset/index.js +0 -1
  46. package/dist/components/figure/index.cjs +0 -1
  47. package/dist/components/figure/index.js +0 -1
  48. package/dist/components/file/index.cjs +0 -1
  49. package/dist/components/file/index.js +0 -1
  50. package/dist/components/footer/index.cjs +0 -1
  51. package/dist/components/footer/index.js +0 -1
  52. package/dist/components/form/index.cjs +0 -1
  53. package/dist/components/form/index.js +0 -1
  54. package/dist/components/graph/index.cjs +0 -1
  55. package/dist/components/graph/index.js +0 -1
  56. package/dist/components/group/index.cjs +0 -1
  57. package/dist/components/group/index.js +0 -1
  58. package/dist/components/header/index.cjs +0 -1
  59. package/dist/components/header/index.js +0 -1
  60. package/dist/components/icon/index.cjs +0 -1
  61. package/dist/components/icon/index.js +0 -1
  62. package/dist/components/iframe/index.cjs +0 -1
  63. package/dist/components/iframe/index.js +0 -1
  64. package/dist/components/image/index.cjs +0 -1
  65. package/dist/components/image/index.js +0 -1
  66. package/dist/components/input/index.cjs +0 -1
  67. package/dist/components/input/index.js +0 -1
  68. package/dist/components/link/index.cjs +0 -1
  69. package/dist/components/link/index.js +0 -1
  70. package/dist/components/list/index.cjs +0 -1
  71. package/dist/components/list/index.js +0 -1
  72. package/dist/components/loading/index.cjs +0 -1
  73. package/dist/components/loading/index.js +0 -1
  74. package/dist/components/menu/index.cjs +0 -1
  75. package/dist/components/menu/index.js +0 -1
  76. package/dist/components/message/index.cjs +0 -1
  77. package/dist/components/message/index.js +0 -1
  78. package/dist/components/messages/index.cjs +0 -1
  79. package/dist/components/messages/index.js +0 -1
  80. package/dist/components/nav/index.cjs +0 -1
  81. package/dist/components/nav/index.js +0 -1
  82. package/dist/components/object/index.cjs +0 -1
  83. package/dist/components/object/index.js +0 -1
  84. package/dist/components/page-layout/index.cjs +0 -1
  85. package/dist/components/page-layout/index.js +0 -1
  86. package/dist/components/panel/index.cjs +0 -1
  87. package/dist/components/panel/index.js +0 -1
  88. package/dist/components/popover/index.cjs +1 -2
  89. package/dist/components/popover/index.js +20 -21
  90. package/dist/components/portal/index.cjs +0 -1
  91. package/dist/components/portal/index.js +0 -1
  92. package/dist/components/search/index.cjs +0 -1
  93. package/dist/components/search/index.js +0 -1
  94. package/dist/components/select/index.cjs +0 -1
  95. package/dist/components/select/index.js +0 -1
  96. package/dist/components/sortable/index.cjs +0 -1
  97. package/dist/components/sortable/index.js +0 -1
  98. package/dist/components/table/index.cjs +0 -1
  99. package/dist/components/table/index.js +0 -1
  100. package/dist/components/textarea/index.cjs +0 -1
  101. package/dist/components/textarea/index.js +0 -1
  102. package/dist/components/toast/index.cjs +0 -1
  103. package/dist/components/toast/index.js +0 -1
  104. package/dist/components/toasts/index.cjs +0 -1
  105. package/dist/components/toasts/index.js +0 -1
  106. package/dist/components/toggle/index.cjs +0 -1
  107. package/dist/components/toggle/index.js +0 -1
  108. package/dist/components/toolbar/index.cjs +0 -1
  109. package/dist/components/toolbar/index.js +0 -1
  110. package/dist/components/tooltip/index.cjs +0 -1
  111. package/dist/components/tooltip/index.js +0 -1
  112. package/dist/components/widget/index.cjs +0 -1
  113. package/dist/components/widget/index.js +0 -1
  114. package/dist/icons-BIdcCH-v.cjs +0 -1
  115. package/dist/icons-DVeBguFb.js +0 -1
  116. package/dist/index-7blZaPiA.cjs +0 -1
  117. package/dist/index-Dd20d_9U.js +0 -1
  118. package/dist/index-Dx-KtGBg.js +0 -1
  119. package/dist/index-VLDsM9it.cjs +0 -1
  120. package/dist/index.cjs +0 -1
  121. package/dist/index.js +0 -1
  122. package/dist/menu-popover-Ceb_9V67.js +0 -1
  123. package/dist/menu-popover-bqblnK6P.cjs +0 -1
  124. package/dist/tokens.json +1 -1
  125. package/dist/use-touched-B999bBr8.js +0 -1
  126. package/dist/use-touched-Bq5Gjbpz.cjs +0 -1
  127. package/package.json +1 -1
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index22.css');const a=require("react/jsx-runtime"),b=require("classix"),j=require("../loading/index.cjs"),q="_graph_plhqd_11",v="_plot_plhqd_20",N="_item_plhqd_34",y="_column_plhqd_40",f="_value_plhqd_48",k="_track_plhqd_58",M="_bar_plhqd_65",V="_label_plhqd_87",l={graph:q,plot:v,item:N,column:y,value:f,track:k,bar:M,label:V,"is-loading":"_is-loading_plhqd_96"},h=s=>Number.isFinite(s)?Math.max(0,s):0,S=({accessibleLabel:s,className:i,height:r,items:n=[],style:p,valueFormatter:d=t=>t.toLocaleString(),...u})=>{const t=n.reduce((e,c)=>Math.max(e,h(c.value)),0),_={...p,"--graph-columns":Math.max(n.length,1),"--graph-height":r||"calc(var(--utils-tokens-unit) * 16)"};return a.jsxs("figure",{className:b(l.graph,i),style:_,...u,"data-component":"graph",children:[s&&a.jsx("figcaption",{"data-content":"screen-reader",children:s}),n.length>0?a.jsx("ul",{className:l.plot,children:n.map((e,c)=>{const o=h(e.value),m=t>0?o/t*100:0,g=o>0?Math.max(m,6):0,x={"--bar-color":e.color,"--bar-delay":c*50+"ms","--bar-height":g+"%"};return a.jsxs("li",{className:l.item,"data-component":"graph",children:[a.jsxs("div",{className:l.column,children:[a.jsx("span",{className:l.value,children:d(e.value)}),a.jsx("span",{className:l.track,children:a.jsx("span",{className:l.bar,style:x})})]}),a.jsx("span",{className:l.label,title:e.label,children:e.label})]},e.label+c)})}):a.jsx("div",{className:l["is-loading"],children:a.jsx(j.Loading,{})})]})};exports.Graph=S;
2
- //# sourceMappingURL=index.cjs.map
@@ -46,4 +46,3 @@ import '../../assets/index22.css';const x = "_graph_plhqd_11", f = "_plot_plhqd_
46
46
  export {
47
47
  G as Graph
48
48
  };
49
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index21.css');const g=require("react/jsx-runtime"),j=require("classix"),m="_row_13j4j_1",u="_stack_13j4j_2",f="_between_13j4j_19",w="_end_13j4j_23",b="_fields_13j4j_27",s={row:m,stack:u,between:f,end:w,fields:b},v={none:"0",small:"var(--shape-spacing-xs)",medium:"var(--shape-spacing-sm)",large:"var(--shape-spacing-md)"},x={start:"flex-start",center:"center",end:"flex-end"},k=({animation:a,align:t,children:r,className:o,constrainFields:c=!1,gap:d="none",justify:n,layout:e,style:i,stackOnMobile:l=!1,...p})=>{const _={...i,"--group-align":t?x[t]:e==="stack"?"stretch":"center","--group-gap":v[d]};return g.jsx("div",{className:j(o,e&&s[e],n&&s[n],c&&s.fields),"data-stack-on-mobile":l||void 0,"data-animation":a,"data-wrapper":!0,style:_,...p,"data-component":"group",children:r})};exports.Group=k;
2
- //# sourceMappingURL=index.cjs.map
@@ -38,4 +38,3 @@ import '../../assets/index21.css';const j = "_row_13j4j_1", f = "_stack_13j4j_2"
38
38
  export {
39
39
  G as Group
40
40
  };
41
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index20.css');const t=require("react/jsx-runtime"),l=require("classix"),m="_header_tbj7k_1",p="_controls_tbj7k_58",v="_cta_tbj7k_85",k="_sized_tbj7k_135",g="_details_tbj7k_139",x="_description_tbj7k_146",f="_warning_tbj7k_154",N="_value_tbj7k_159",y="_jumbo_tbj7k_164",w="_inset_tbj7k_174",z="_panel_tbj7k_178",e={header:m,controls:p,cta:v,"header-content":"_header-content_tbj7k_97",sized:k,details:g,description:x,warning:f,value:N,jumbo:y,inset:w,panel:z},q={default:e.default,jumbo:e.jumbo,panel:e.panel},H=({backButton:i,capitalize:d=!1,children:_,controls:a,details:n,cta:c,header:j,inset:h=!1,size:s,subHeader:u,variant:b="default"})=>{const o=t.jsxs("div",{className:e["header-content"],children:[i,j,u,n&&t.jsxs("div",{className:e.details,children:[t.jsx("div",{className:l(e.description,n.tone==="warning"&&e.warning),children:n.description}),n.value!=null&&t.jsx("strong",{className:e.value,children:n.value})]})]}),r=a?t.jsxs("div",{className:e.controls,children:[o,a]}):o;return t.jsxs("header",{className:l(e.header,q[b],d&&e.capitalize,h&&e.inset,s&&e.sized),style:s?{"--header-heading-size":`var(--typography-font-sizes-${s==="label"?"label-lg":s})`}:void 0,"data-component":"header",children:[c?t.jsxs("div",{className:e.cta,children:[r,c]}):r,_]})};exports.Header=H;
2
- //# sourceMappingURL=index.cjs.map
@@ -55,4 +55,3 @@ import '../../assets/index20.css';const u = "_header_tbj7k_1", v = "_controls_tb
55
55
  export {
56
56
  $ as Header
57
57
  };
58
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index49.css');const c=require("react/jsx-runtime"),r=require("classix"),l=require("../../icons-BIdcCH-v.cjs"),_="_icon_23h6o_1",m="_large_23h6o_10",g="_medium_23h6o_15",d="_small_23h6o_20",u="_tiny_23h6o_25",h="_danger_23h6o_30",n={icon:_,large:m,medium:g,small:d,tiny:u,danger:h,"gap-right":"_gap-right_23h6o_34","gap-left":"_gap-left_23h6o_38"},y={large:n.large,medium:n.medium,small:n.small,tiny:n.tiny},p={danger:n.danger},S=({gap:e="none",name:t,size:s="medium",variant:o,weight:i})=>{const a={maskImage:l.iconSVG(t,void 0,i)};return c.jsx("span",{"aria-hidden":"true",className:r(e!=="none"&&n[`gap-${e}`],y[s],n.icon,o&&p[o]),style:a,"data-component":"icon"})};exports.Icon=S;
2
- //# sourceMappingURL=index.cjs.map
@@ -32,4 +32,3 @@ import '../../assets/index49.css';const c = "_icon_23h6o_1", l = "_large_23h6o_1
32
32
  export {
33
33
  S as Icon
34
34
  };
35
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index19.css');const t=require("react/jsx-runtime"),A=require("classix"),i=require("react"),C=require("../button/index.cjs"),R=require("../controls/index.cjs"),V=require("../dialog/index.cjs"),$=require("../header/index.cjs"),b="_wrapper_vtkwq_1",X="_toolbar_vtkwq_6",J="_iframe_vtkwq_12",l={wrapper:b,toolbar:X,iframe:J,"fullscreen-iframe":"_fullscreen-iframe_vtkwq_18","print-content":"_print-content_vtkwq_23"},f=120,K=12e3,P=8,Q=({accessibleLabel:o,autoResize:s=!1,className:H,closeFullscreenLabel:F="Close fullscreen",fullscreenLabel:I="View in fullscreen",hasFullscreenView:O=!0,loading:N="lazy",onLoad:h,printContent:j,referrerPolicy:q="no-referrer",sandbox:y="",srcDoc:p,style:E,...M})=>{const w=i.useRef(null),a=i.useRef(null),c=i.useRef(null),[U,T]=i.useState(f),[_,g]=i.useState(!1),v=i.useCallback(()=>{a.current!==null&&(window.cancelAnimationFrame(a.current),a.current=null),c.current!==null&&(window.clearTimeout(c.current),c.current=null)},[]),x=i.useCallback(()=>{if(!s)return;const n=w.current,e=n==null?void 0:n.contentDocument;if(!n||!e)return;const m=n.style.height;try{n.style.height=`${f}px`;const u=e.querySelector("[data-iframe-content]")??e.body,d=u.getBoundingClientRect(),{body:k,documentElement:S}=e,G=Math.min(Math.max(Math.ceil(Math.max(u.scrollHeight,u.offsetHeight,d.height,k.scrollHeight,k.offsetHeight,S.scrollHeight,S.offsetHeight)+P),f),K);T(G)}catch{}finally{n.style.height=m}},[s]),r=i.useCallback(()=>{!s||a.current!==null||(a.current=window.requestAnimationFrame(()=>{a.current=null,x(),c.current!==null&&window.clearTimeout(c.current),c.current=window.setTimeout(()=>{c.current=null,x()},250)}))},[s,x]),B=n=>{var m,u;r();const e=(m=w.current)==null?void 0:m.contentDocument;Array.from((e==null?void 0:e.images)??[]).forEach(d=>{d.complete||(d.addEventListener("load",r,{once:!0}),d.addEventListener("error",r,{once:!0}))}),(u=e==null?void 0:e.fonts)==null||u.ready.then(r).catch(()=>{}),h==null||h(n)};return i.useEffect(()=>{if(s)return v(),T(f),r(),v},[s,v,r,p]),i.useEffect(()=>{var n;if(s)return window.addEventListener("resize",r),(n=window.visualViewport)==null||n.addEventListener("resize",r),()=>{var e;window.removeEventListener("resize",r),(e=window.visualViewport)==null||e.removeEventListener("resize",r)}},[s,r]),t.jsxs("div",{className:l.wrapper,"data-component":"iframe",children:[O&&t.jsx("div",{className:l.toolbar,children:t.jsx(C.Button,{"aria-expanded":_,"aria-haspopup":"dialog",onClick:()=>g(!0),variant:"tertiary",children:I})}),t.jsx("iframe",{...M,className:A(l.iframe,H),loading:N,onLoad:B,ref:w,referrerPolicy:q,sandbox:y,srcDoc:p,style:s?{...E,height:U,minHeight:f}:E,title:o}),!_&&t.jsx("div",{className:l["print-content"],"data-iframe-print-content":!0,children:j??t.jsx("p",{children:o})}),_&&t.jsxs(V.Dialog,{"aria-label":`${o} fullscreen`,controls:t.jsx(R.Controls,{children:t.jsx(C.Button,{onClick:()=>g(!1),children:F})}),fullscreen:!0,header:t.jsx($.Header,{children:t.jsx("h2",{children:o})}),open:!0,setOpen:g,children:[t.jsx("iframe",{...M,className:A(l.iframe,l["fullscreen-iframe"],H),loading:"eager",referrerPolicy:q,sandbox:y,srcDoc:p,title:`${o} fullscreen`}),t.jsx("div",{className:l["print-content"],"data-iframe-print-content":!0,children:j??t.jsx("p",{children:o})})]})]})};exports.Iframe=Q;
2
- //# sourceMappingURL=index.cjs.map
@@ -91,4 +91,3 @@ import '../../assets/index19.css';const Y = "_wrapper_vtkwq_1", Z = "_toolbar_vt
91
91
  export {
92
92
  ie as Iframe
93
93
  };
94
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index18.css');const d=require("react/jsx-runtime"),c=require("react"),o="_image_14j8z_1",y={image:o};function S({fadeDurationMs:n=250,showOnError:r=!0,onLoad:a,onError:i,style:l,...t}){const u=c.useRef(null),[m,s]=c.useState(!1);c.useEffect(()=>{s(!1)},[t.src,t.srcSet]),c.useEffect(()=>{const e=u.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),i==null||i(e)};return d.jsx("img",{...t,className:y.image,onLoad:f,onError:g,ref:u,style:{...l,opacity:m?1:0,"--duration-override":`${n}ms`},"data-component":"image"})}exports.Image=S;
2
- //# sourceMappingURL=index.cjs.map
@@ -32,4 +32,3 @@ function x({
32
32
  export {
33
33
  x as Image
34
34
  };
35
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("classix");require("react");require("../../icons-BIdcCH-v.cjs");require("../../use-touched-Bq5Gjbpz.cjs");const e=require("../../index-7blZaPiA.cjs");exports.Input=e.Input;
2
- //# sourceMappingURL=index.cjs.map
@@ -7,4 +7,3 @@ import { I as a } from "../../index-Dd20d_9U.js";
7
7
  export {
8
8
  a as Input
9
9
  };
10
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index51.css');const t=require("react/jsx-runtime"),o=require("classix"),c="_link_5i71r_1",l="_neutral_5i71r_19",m="_content_5i71r_24",_="_adornment_5i71r_33",d="_text_5i71r_37",u="_primary_5i71r_43",p="_danger_5i71r_49",x="_minimal_5i71r_57",n={link:c,neutral:l,content:m,adornment:_,text:d,primary:u,danger:p,minimal:x},k=({children:s,leading:e,trailing:r})=>t.jsxs("span",{className:n.content,"data-component":"linkcontent",children:[e!=null&&t.jsx("span",{className:n.adornment,children:e}),t.jsx("span",{className:n.text,children:s}),r!=null&&t.jsx("span",{className:n.adornment,children:r})]}),j=({children:s,className:e,to:r="#",variant:a="primary",...i})=>t.jsx("a",{className:o(e,n.link,n[a]),href:r,...i,"data-component":"link",children:s});exports.Link=j;exports.LinkContent=k;
2
- //# sourceMappingURL=index.cjs.map
@@ -28,4 +28,3 @@ export {
28
28
  f as Link,
29
29
  h as LinkContent
30
30
  };
31
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index52.css');const u=require("react/jsx-runtime"),H=require("classix"),r=require("react");function T(e){return r.isValidElement(e)&&e.type===r.Fragment}function O(e,n=[]){return r.Children.forEach(e,i=>{T(i)?O(i.props.children,n):n.push(i)}),n}function F(e,{wrapper:n="li"}={}){return O(e).filter(s=>s!==null).map((s,c)=>{if(r.isValidElement(s)&&s.type===n)return s;const m=r.isValidElement(s)&&s.key!=null?s.key:c;return r.createElement(n,{key:m,"data-component":"wrapchildren"},s)})}const V="_controls_uue68_1",A="_horizontal_uue68_9",I="_list_uue68_20",D="_columns_uue68_61",P="_masonry_uue68_71",$="_scrollable_uue68_81",G="_overflowing_uue68_88",J="_sized_uue68_111",K="_compact_uue68_123",l={controls:V,horizontal:A,list:I,columns:D,masonry:P,scrollable:$,overflowing:G,sized:J,compact:K},M=(e,n)=>{typeof e=="function"?e(n):e&&(e.current=n)};function Q({children:e,className:n,columns:i=1,columnWidth:b,compact:s=!1,controls:c,horizontal:m,layout:h="grid",maxVisibleItems:f,ordered:B,ref:p,style:S,...d}){const v=Number.isFinite(i)?Math.max(1,Math.floor(i)):1,y=r.useRef(null),[a,k]=r.useState(),o=h==="grid"&&v===1&&!m&&f!=null&&Number.isFinite(f)&&f>=1?Math.floor(f):void 0,w=!!o&&a!=null;r.useLayoutEffect(()=>{const t=y.current;if(!t||!o)return;const R=()=>{const g=Array.from(t.children).filter(j=>j instanceof HTMLElement&&getComputedStyle(j).display!=="none"),N=g[o-1],q=g.length>o&&N?N.getBoundingClientRect().bottom-t.getBoundingClientRect().top+t.scrollTop+(parseFloat(getComputedStyle(t).paddingBottom)||0):void 0;k(q)},_=new ResizeObserver(R),C=()=>{_.disconnect(),_.observe(t),Array.from(t.children).forEach(g=>_.observe(g)),R()},L=new MutationObserver(C);return L.observe(t,{childList:!0,subtree:!0,characterData:!0}),C(),()=>{_.disconnect(),L.disconnect()}},[e,o,w]);const x=H(n,l.list,h==="masonry"?l.masonry:v>1&&l.columns,!!o&&l.scrollable,w&&l.overflowing,m&&l.horizontal,s&&l.compact,b&&l.sized),z={...S,"--list-columns":v,"--list-column-width":b,"--list-max-height":o&&a!=null?`${a}px`:void 0},E=B?u.jsx("ol",{className:x,ref:t=>{y.current=t,M(p,t)},style:z,...d,tabIndex:d.tabIndex??(o&&a!=null?0:void 0),"data-component":"list",children:F(e)}):u.jsx("ul",{className:x,ref:t=>{y.current=t,M(p,t)},style:z,...d,tabIndex:d.tabIndex??(o&&a!=null?0:void 0),"data-component":"list",children:F(e)});return c==null?E:u.jsxs(u.Fragment,{children:[u.jsx("div",{className:l.controls,"data-component":"list",children:c}),E]})}exports.List=Q;
2
- //# sourceMappingURL=index.cjs.map
@@ -86,4 +86,3 @@ function nt({
86
86
  export {
87
87
  nt as List
88
88
  };
89
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index53.css');const l=require("react/jsx-runtime"),e=require("classix"),t="_loading_1jrs1_23",r="_spin_1jrs1_1",o="_small_1jrs1_40",_="_large_1jrs1_46",d="_ping_1jrs1_52",g="_fullscreen_1jrs1_78",u="_sticky_1jrs1_86",s={loading:t,default:"_default_1jrs1_29",spin:r,small:o,large:_,ping:d,fullscreen:g,sticky:u},m={fullscreen:s.fullscreen,large:s.large,medium:s.medium,small:s.small},j=({variant:n="default",size:a="medium",sticky:c=!1,...i})=>l.jsx("div",{className:e.cx(s.loading,c&&s.sticky),"data-component":"loading",children:l.jsx("span",{className:e.cx(s.loading,s[n],m[a]),...i})});exports.Loading=j;
2
- //# sourceMappingURL=index.cjs.map
@@ -23,4 +23,3 @@ import '../../assets/index53.css';const c = "_loading_1jrs1_23", o = "_spin_1jrs
23
23
  export {
24
24
  j as Loading
25
25
  };
26
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),j=require("../button/index.cjs"),M=require("../icon/index.cjs"),i=require("../../menu-popover-bqblnK6P.cjs");function v(e){return[...e].sort((n,a)=>+!!n.isDanger-+!!a.isDanger)}const D=e=>v(e).map(n=>({button:r.jsxs(j.Button,{"aria-label":n.accessibleLabel,disabled:n.disabled,children:[n.icon&&r.jsx(M.Icon,{gap:"right",name:n.icon,size:"small"}),r.jsx("span",{children:n.label})]}),id:n.id,isActive:n.isActive,isDanger:n.isDanger,value:n})),h=({inline:e=!1,items:n,menuAccessibleLabel:a="Menu",onItemSelect:s,triggerAccessibleLabel:l="Open menu",triggerIcon:p="DotsThreeVertical",triggerLabel:b,variant:g="popover"})=>{const d=D(n);return g==="simple"?r.jsx(i.MenuActionList,{actions:d,menuAccessibleLabel:a,onSelect:o=>{var u;(u=o.onSelect)==null||u.call(o),s==null||s(o)},"data-component":"menu"}):r.jsx(i.MenuPopover,{inline:e,triggerAccessibleLabel:l,triggerIcon:p,triggerLabel:b,"data-component":"menu",children:({close:o,initialFocus:u,isPositioned:x})=>r.jsx(i.MenuActionList,{actions:d,initialFocus:u,readyToFocus:x,menuAccessibleLabel:a,onSelect:c=>{var t;(t=c.onSelect)==null||t.call(c),s==null||s(c),o()},usesMenuSemantics:!0})})};exports.Menu=h;
2
- //# sourceMappingURL=index.cjs.map
@@ -40,4 +40,3 @@ const A = (o) => x(o).map((n) => ({
40
40
  export {
41
41
  T as Menu
42
42
  };
43
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index17.css');const e=require("react/jsx-runtime"),j=require("classix"),h=require("../avatar/index.cjs"),N=require("../icon/index.cjs"),w="_attachments_1crfp_1",y="_footer_1crfp_27",S="_message_1crfp_11",b="_timestamp_1crfp_147",q="_actions_1crfp_152",I="_preview_1crfp_164",s={attachments:w,"message-group":"_message-group_1crfp_11",footer:y,message:S,timestamp:b,actions:q,preview:I},M=({actions:o,appearance:m="default",attachments:i,author:a,authorColor:l,authorImageUrl:d,authorLink:_,authorRole:p,content:g,iconName:f="Info",id:u,preview:v,timestamp:r,timestampText:x,type:t="default"})=>{const c=r?new Date(r):void 0,n=c?e.jsx("time",{className:s.timestamp,dateTime:c.toISOString(),children:x??c.toLocaleString()}):null;return e.jsxs("div",{className:s["message-group"],"data-message-type":t,"data-component":"message",children:[a&&e.jsx(h.Avatar,{accessibleLabel:a,color:l,imageUrl:d,link:_,name:a,role:p}),t==="system"&&n,e.jsxs("div",{className:j(s.message,v&&s.preview),"data-appearance":m,"data-id":u,"data-type":t,children:[t=="system"&&e.jsx(N.Icon,{gap:"right",name:f,size:"tiny"}),g]}),i&&e.jsx("div",{className:s.attachments,children:i}),t!=="system"&&(o?e.jsxs("div",{className:s.footer,children:[n,e.jsx("div",{className:s.actions,"data-message-actions":!0,children:o})]}):n)]})};exports.Message=M;
2
- //# sourceMappingURL=index.cjs.map
@@ -45,4 +45,3 @@ import '../../assets/index17.css';const I = "_attachments_1crfp_1", S = "_footer
45
45
  export {
46
46
  M as Message
47
47
  };
48
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index15.css');const n=require("react/jsx-runtime"),D=require("classix"),r=require("react"),G=require("../editor/index.cjs"),I=require("../list/index.cjs"),J=require("../tooltip/index.cjs"),K=require("../message/index.cjs"),Q="_messages_6nen5_1",V="_fill_6nen5_20",j={messages:Q,fill:V},X=({fill:M=!1,files:u,handleUpload:y,inlineImages:c,maxEditorRows:Y=5,message:d="",messages:l,minEditorRows:b=1,onChange:H,onFilesChange:a,onInlineImagesChange:B,onSubmit:N,placeholder:O,sending:m,submitLabel:P="Send message",tooltipLabel:f})=>{var L;const v=r.useRef(null),o=r.useRef(!0),h=r.useRef(!1),[U,W]=r.useState([]),p=u??U,g=(L=l[l.length-1])==null?void 0:L.id,k=d.replace(/<[^>]*>/g,"").replace(/&nbsp;/g," ").trim()==="";return r.useLayoutEffect(()=>{var q;const e=(q=v.current)==null?void 0:q.querySelector("[data-message-list]");if(!e||g===void 0)return;const z=e.scrollHeight-e.scrollTop-e.clientHeight<450,_=!h.current||z;o.current=_,h.current=!0;const A=window.setTimeout(()=>{o.current=!1},5e3),E=()=>{e.scrollTop=e.scrollHeight};_&&E();const T=t=>{o.current&&t.target instanceof HTMLImageElement&&E()},x=t=>{t.deltaY<0&&(o.current=!1)};let i;const w=t=>{var s;i=(s=t.touches[0])==null?void 0:s.clientY},R=t=>{var S;const s=(S=t.touches[0])==null?void 0:S.clientY;s!==void 0&&i!==void 0&&s>i&&(o.current=!1),i=s};return e.addEventListener("load",T,!0),e.addEventListener("wheel",x,{passive:!0}),e.addEventListener("touchstart",w,{passive:!0}),e.addEventListener("touchmove",R,{passive:!0}),()=>{window.clearTimeout(A),e.removeEventListener("load",T,!0),e.removeEventListener("wheel",x),e.removeEventListener("touchstart",w),e.removeEventListener("touchmove",R)}},[g]),n.jsxs("div",{className:D(j.messages,M&&j.fill),ref:v,"data-component":"messages",children:[n.jsx(I.List,{"data-message-list":!0,children:l.map(e=>n.jsx(K.Message,{...e},e.id))}),f&&n.jsx(J.Tooltip,{variant:"static",children:f}),n.jsx(G.Editor,{autofocus:!0,content:d,disabled:m||k&&p.length===0&&!(c!=null&&c.length),files:p,inlineImages:c,isSubmitting:m,maxRows:Y,minRows:b,onChange:H,onFilesChange:e=>{u===void 0&&W(e),a==null||a(e)},onInlineImagesChange:B,onSubmit:N,onUpload:y,placeholder:O,submitLabel:P})]})};exports.Messages=X;
2
- //# sourceMappingURL=index.cjs.map
@@ -74,4 +74,3 @@ import '../../assets/index15.css';const Z = "_messages_6nen5_1", $ = "_fill_6nen
74
74
  export {
75
75
  ne as Messages
76
76
  };
77
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index14.css');const i=require("react/jsx-runtime"),r=require("classix"),b=require("react"),m=require("../../icons-BIdcCH-v.cjs"),v="_nav_1jlcq_3",p="_label_1jlcq_9",j="_item_1jlcq_17",q="_actions_1jlcq_36",g="_highlighted_1jlcq_60",f="_horizontal_1jlcq_64",N="_sidebar_1jlcq_74",w="_stacked_1jlcq_124",x="_tabs_1jlcq_141",k="_pills_1jlcq_161",t={nav:v,label:p,item:j,actions:q,highlighted:g,horizontal:f,sidebar:N,stacked:w,tabs:x,pills:k},y={default:t.default,pills:t.pills,sidebar:t.sidebar,tabs:t.tabs},z=({className:a,...e})=>i.jsx("span",{className:r(a,t.label),...e,"data-component":"navlabel"}),S=({actions:a,children:e,className:c,highlighted:n=!1,layout:s="row",...o})=>i.jsxs("div",{className:r(t.item,n&&t.highlighted,s==="stack"&&t.stacked,c),"data-nav-item":!0,...o,"data-component":"navitem",children:[e,a&&i.jsx("span",{className:t.actions,children:a})]}),C=({animation:a,children:e,className:c,horizontal:n=!1,variant:s="default",...o})=>{const[_,d]=b.useState(!1),h={"--icon-svg":m.iconSVG("CaretDown")};return i.jsx("nav",{className:r(c,n&&t.horizontal,t.nav,y[s]),"data-animation":a,"data-open":_?"true":"false","data-orientation":n?"horizontal":"vertical",onBlurCapture:l=>{if(s!=="pills"||window.innerWidth>960)return;const u=l.relatedTarget;l.currentTarget.contains(u)||d(!1)},onClick:()=>{s!=="pills"||window.innerWidth>960||d(l=>!l)},style:h,...o,"data-component":"nav",children:e})};exports.Nav=C;exports.NavItem=S;exports.NavLabel=z;
2
- //# sourceMappingURL=index.cjs.map
@@ -55,4 +55,3 @@ export {
55
55
  B as NavItem,
56
56
  W as NavLabel
57
57
  };
58
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index13.css');const e=require("react/jsx-runtime"),n="_object_18i7r_1",s={object:n},a=({accessibleLabel:c,url:t,...o})=>e.jsx("object",{"aria-label":c,className:s.object,data:t,type:"application/pdf",...o,"data-component":"objectcomponent",children:t&&e.jsxs(e.Fragment,{children:["We cannot show this file. You can try accessing it directly:",e.jsx("br",{}),e.jsx("a",{href:t,children:t})]})});exports.Object=a;
2
- //# sourceMappingURL=index.cjs.map
@@ -13,4 +13,3 @@ import '../../assets/index13.css';const s = "_object_18i7r_1", i = {
13
13
  export {
14
14
  b as Object
15
15
  };
16
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index12.css');const e=require("react/jsx-runtime"),y=require("classix"),p=require("../loading/index.cjs"),w="_layout_1nh7z_1",f="_constrained_1nh7z_7",z="_reading_1nh7z_12",m="_loading_1nh7z_40",n={layout:w,constrained:f,reading:z,"with-sidebar":"_with-sidebar_1nh7z_24","fill-viewport":"_fill-viewport_1nh7z_34",loading:m,"loading-content":"_loading-content_1nh7z_48","without-padding":"_without-padding_1nh7z_87"},b=({"aria-busy":l,children:s,className:d,contentLayout:t="default",contentMaxWidth:i,fillViewport:r=!1,loading:a=!1,loadingLabel:_="Loading",padding:c="default",sidebar:o,style:u,...g})=>{const h={...u,"--page-content-max-width":i};return e.jsxs("main",{"aria-busy":l??(a||void 0),className:y(n.layout,!!o&&n["with-sidebar"],r&&n["fill-viewport"],i&&t==="default"&&n.constrained,t==="reading"&&n.reading,c==="none"&&n["without-padding"],a&&n.loading,d),style:h,...g,"data-component":"pagelayout",children:[o,a?e.jsx("div",{className:n["loading-content"],role:"status","aria-label":_,children:e.jsx(p.Loading,{size:"large"})}):s]})};exports.PageLayout=b;
2
- //# sourceMappingURL=index.cjs.map
@@ -36,4 +36,3 @@ import '../../assets/index12.css';const y = "_layout_1nh7z_1", w = "_constrained
36
36
  export {
37
37
  L as PageLayout
38
38
  };
39
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index11.css');const n=require("react/jsx-runtime"),d=require("classix"),p=require("react"),f=require("../loading/index.cjs"),g="_panel_1c69h_1",h="_none_1c69h_15",b="_page_1c69h_19",m="_scrollable_1c69h_27",x="_surface_1c69h_32",y="_loading_1c69h_36",e={panel:g,default:"_default_1c69h_11",none:h,page:b,scrollable:m,surface:x,loading:y},j=({"aria-busy":l,as:c="div",children:s,className:o,loading:a=!1,loadingLabel:t="Loading",padding:r="default",scroll:_="hidden",surface:i=!1,...u})=>p.createElement(c,{...u,"aria-busy":a||l,children:a?n.jsx("div",{role:"status","aria-label":t,children:n.jsx(f.Loading,{})}):s,className:d(e.panel,e[r],_==="auto"&&e.scrollable,i&&e.surface,a&&e.loading,o),"data-component":"panel"});exports.Panel=j;
2
- //# sourceMappingURL=index.cjs.map
@@ -31,4 +31,3 @@ import '../../assets/index11.css';const u = "_panel_1c69h_1", h = "_none_1c69h_1
31
31
  export {
32
32
  N as Panel
33
33
  };
34
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index54.css');const _=require("react/jsx-runtime"),T=require("classix"),t=require("react"),K=require("react-dom"),N=require("../button/index.cjs"),O="_popover_12bds_1",H="_inline_12bds_6",W="_below_12bds_47",M="_above_12bds_52",U="_trigger_12bds_62",a={popover:O,inline:H,"popover-panel":"_popover-panel_12bds_26",below:W,above:M,"floating-panel":"_floating-panel_12bds_57",trigger:U,"inline-trigger":"_inline-trigger_12bds_66"},X=({children:v,inline:h=!1,triggerAccessibleLabel:k,triggerAriaHasPopup:C,triggerButtonContent:z})=>{const y=t.useRef(null),P=t.useRef(void 0),c=t.useRef(null),R=t.useId(),d=t.useRef(null),[n,D]=t.useState(!1),[F,x]=t.useState(!1),[u,B]=t.useState(),[f,E]=t.useState(!1),[m,S]=t.useState("right"),w=({initialFocus:e}={})=>{var r;P.current=e,B((r=d.current)==null?void 0:r.getBoundingClientRect()),x(!1),E(!1),S("right"),D(!0)},l=t.useCallback(({restoreFocus:e=!0}={})=>{var r;D(!1),e&&((r=d.current)==null||r.focus({preventScroll:!0}))},[]),L=e=>{n&&e.key==="Escape"&&l()},j=e=>{if(!n){if(e.key==="ArrowDown"){e.preventDefault(),w({initialFocus:"first"});return}e.key==="ArrowUp"&&(e.preventDefault(),w({initialFocus:"last"}))}};t.useEffect(()=>{if(!n)return;const e=s=>{var i,p;const o=s.target;(i=y.current)!=null&&i.contains(o)||(p=c.current)!=null&&p.contains(o)||l({restoreFocus:!1})},r=s=>{var o,i;s.target instanceof Node&&((o=c.current)!=null&&o.contains(s.target))||l({restoreFocus:((i=c.current)==null?void 0:i.contains(document.activeElement))??!1})};return document.addEventListener("mousedown",e),window.addEventListener("scroll",r,!0),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("scroll",r,!0)}},[l,n]);const g=t.useCallback(()=>{const e=c.current,r=d.current;if(!e||!r)return;const s=e.getBoundingClientRect(),o=r.getBoundingClientRect();B(o),x(!0);const i=o.top,p=window.innerHeight-o.bottom;E(s.height>p&&i>p),S(s.width>window.innerWidth-o.left&&o.right>window.innerWidth-o.left?"left":"right")},[]);t.useLayoutEffect(()=>{if(n)return g(),window.addEventListener("resize",g),()=>{window.removeEventListener("resize",g)}},[n,g]);const q=e=>{e.preventDefault(),e.stopPropagation(),n?l({restoreFocus:!1}):w()},A={"aria-controls":n?R:void 0,"aria-expanded":n,"aria-haspopup":C,"aria-label":k,className:h?a["inline-trigger"]:a.trigger,onClick:q,onKeyDown:j},I=[m==="left"?"translateX(-100%)":"",f?"translateY(calc(-100% - var(--shape-spacing-2xs)))":""].filter(Boolean).join(" "),b=n?_.jsx("div",{className:T(a["popover-panel"],a[f?"above":"below"],a["floating-panel"]),"data-horizontal-placement":m,"data-placement":f?"above":"below",id:R,ref:c,style:u?{left:m==="left"?u.right:u.left,position:"fixed",top:f?u.top:u.bottom,transform:I||void 0}:{position:"fixed",left:0,top:0},children:typeof v=="function"?v({close:l,initialFocus:P.current,isOpen:n,isPositioned:F}):v}):null;return _.jsxs("div",{className:T(a.popover,h&&a.inline),"data-open":n,onKeyDown:L,onClick:e=>{e.preventDefault(),e.stopPropagation()},ref:y,"data-component":"popover",children:[_.jsx(N.Button,{...A,ref:d,variant:"simple",children:z}),b&&typeof document<"u"?K.createPortal(b,document.body):b]})};exports.Popover=X;
2
- //# sourceMappingURL=index.cjs.map
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index54.css');const h=require("react/jsx-runtime"),T=require("classix"),t=require("react"),K=require("react-dom"),N=require("../button/index.cjs"),O="_popover_12bds_1",H="_inline_12bds_6",W="_below_12bds_47",M="_above_12bds_52",U="_trigger_12bds_62",a={popover:O,inline:H,"popover-panel":"_popover-panel_12bds_26",below:W,above:M,"floating-panel":"_floating-panel_12bds_57",trigger:U,"inline-trigger":"_inline-trigger_12bds_66"},X=({children:v,inline:m=!1,triggerAccessibleLabel:k,triggerAriaHasPopup:C,triggerButtonContent:z})=>{const y=t.useRef(null),P=t.useRef(void 0),c=t.useRef(null),R=t.useId(),d=t.useRef(null),[n,D]=t.useState(!1),[F,x]=t.useState(!1),[u,B]=t.useState(),[f,E]=t.useState(!1),[w,S]=t.useState("right"),b=({initialFocus:e}={})=>{var r;P.current=e,B((r=d.current)==null?void 0:r.getBoundingClientRect()),x(!1),E(!1),S("right"),D(!0)},l=t.useCallback(({restoreFocus:e=!0}={})=>{var r;D(!1),e&&((r=d.current)==null||r.focus({preventScroll:!0}))},[]),L=e=>{n&&e.key==="Escape"&&l()},j=e=>{if(!n){if(e.key==="ArrowDown"){e.preventDefault(),b({initialFocus:"first"});return}e.key==="ArrowUp"&&(e.preventDefault(),b({initialFocus:"last"}))}};t.useEffect(()=>{if(!n)return;const e=s=>{var i,p;const o=s.target;(i=y.current)!=null&&i.contains(o)||(p=c.current)!=null&&p.contains(o)||l({restoreFocus:!1})},r=s=>{var o,i;s.target instanceof Node&&((o=c.current)!=null&&o.contains(s.target))||l({restoreFocus:((i=c.current)==null?void 0:i.contains(document.activeElement))??!1})};return document.addEventListener("mousedown",e),window.addEventListener("scroll",r,!0),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("scroll",r,!0)}},[l,n]);const g=t.useCallback(()=>{const e=c.current,r=d.current;if(!e||!r)return;const s=e.getBoundingClientRect(),o=r.getBoundingClientRect();B(o),x(!0);const i=o.top,p=window.innerHeight-o.bottom;E(s.height>p&&i>p),S(s.width>window.innerWidth-o.left&&o.right>window.innerWidth-o.left?"left":"right")},[]);t.useLayoutEffect(()=>{if(n)return g(),window.addEventListener("resize",g),()=>{window.removeEventListener("resize",g)}},[n,g]);const q=e=>{e.preventDefault(),e.stopPropagation(),n?l({restoreFocus:!1}):b()},A={"aria-controls":n?R:void 0,"aria-expanded":n,"aria-haspopup":C,"aria-label":k,className:m?a["inline-trigger"]:a.trigger,onClick:q,onKeyDown:j},I=[w==="left"?"translateX(-100%)":"",f?"translateY(calc(-100% - var(--shape-spacing-2xs)))":""].filter(Boolean).join(" "),_=n?h.jsx("div",{className:T(a["popover-panel"],a[f?"above":"below"],a["floating-panel"]),"data-horizontal-placement":w,"data-placement":f?"above":"below",id:R,ref:c,style:u?{left:w==="left"?u.right:u.left,position:"fixed",top:f?u.top:u.bottom,transform:I||void 0}:{position:"fixed",left:0,top:0},children:typeof v=="function"?v({close:l,initialFocus:P.current,isOpen:n,isPositioned:F}):v}):null;return h.jsxs("div",{className:T(a.popover,m&&a.inline),"data-open":n,onKeyDown:L,onClick:e=>{e.preventDefault(),e.stopPropagation()},ref:y,"data-component":"popover",children:[h.jsx(N.Button,{...A,ref:d,variant:m?"simple":"tertiary",children:z}),_&&typeof document<"u"?K.createPortal(_,document.body):_]})};exports.Popover=X;
@@ -3,7 +3,7 @@ import z from "classix";
3
3
  import { useRef as m, useId as W, useState as f, useCallback as C, useEffect as U, useLayoutEffect as X } from "react";
4
4
  import { createPortal as Y } from "react-dom";
5
5
  import { Button as q } from "../button/index.js";
6
- import '../../assets/index54.css';const G = "_popover_12bds_1", J = "_inline_12bds_6", M = "_below_12bds_47", Q = "_above_12bds_52", V = "_trigger_12bds_62", s = {
6
+ import '../../assets/index54.css';const G = "_popover_12bds_1", J = "_inline_12bds_6", M = "_below_12bds_47", Q = "_above_12bds_52", V = "_trigger_12bds_62", i = {
7
7
  popover: G,
8
8
  inline: J,
9
9
  "popover-panel": "_popover-panel_12bds_26",
@@ -12,14 +12,14 @@ import '../../assets/index54.css';const G = "_popover_12bds_1", J = "_inline_12b
12
12
  "floating-panel": "_floating-panel_12bds_57",
13
13
  trigger: V,
14
14
  "inline-trigger": "_inline-trigger_12bds_66"
15
- }, ie = ({
15
+ }, se = ({
16
16
  children: v,
17
- inline: h = !1,
17
+ inline: w = !1,
18
18
  triggerAccessibleLabel: F,
19
19
  triggerAriaHasPopup: L,
20
20
  triggerButtonContent: A
21
21
  }) => {
22
- const y = m(null), P = m(void 0), l = m(null), B = W(), d = m(null), [t, D] = f(!1), [I, E] = f(!1), [c, x] = f(), [u, R] = f(!1), [w, T] = f("right"), b = ({
22
+ const y = m(null), P = m(void 0), l = m(null), B = W(), d = m(null), [t, D] = f(!1), [I, E] = f(!1), [c, x] = f(), [u, R] = f(!1), [b, T] = f("right"), _ = ({
23
23
  initialFocus: e
24
24
  } = {}) => {
25
25
  var n;
@@ -36,12 +36,12 @@ import '../../assets/index54.css';const G = "_popover_12bds_1", J = "_inline_12b
36
36
  }, N = (e) => {
37
37
  if (!t) {
38
38
  if (e.key === "ArrowDown") {
39
- e.preventDefault(), b({
39
+ e.preventDefault(), _({
40
40
  initialFocus: "first"
41
41
  });
42
42
  return;
43
43
  }
44
- e.key === "ArrowUp" && (e.preventDefault(), b({
44
+ e.key === "ArrowUp" && (e.preventDefault(), _({
45
45
  initialFocus: "last"
46
46
  }));
47
47
  }
@@ -50,15 +50,15 @@ import '../../assets/index54.css';const G = "_popover_12bds_1", J = "_inline_12b
50
50
  if (!t)
51
51
  return;
52
52
  const e = (r) => {
53
- var i, p;
53
+ var s, p;
54
54
  const o = r.target;
55
- (i = y.current) != null && i.contains(o) || (p = l.current) != null && p.contains(o) || a({
55
+ (s = y.current) != null && s.contains(o) || (p = l.current) != null && p.contains(o) || a({
56
56
  restoreFocus: !1
57
57
  });
58
58
  }, n = (r) => {
59
- var o, i;
59
+ var o, s;
60
60
  r.target instanceof Node && ((o = l.current) != null && o.contains(r.target)) || a({
61
- restoreFocus: ((i = l.current) == null ? void 0 : i.contains(document.activeElement)) ?? !1
61
+ restoreFocus: ((s = l.current) == null ? void 0 : s.contains(document.activeElement)) ?? !1
62
62
  });
63
63
  };
64
64
  return document.addEventListener("mousedown", e), window.addEventListener("scroll", n, !0), () => {
@@ -70,8 +70,8 @@ import '../../assets/index54.css';const G = "_popover_12bds_1", J = "_inline_12b
70
70
  if (!e || !n) return;
71
71
  const r = e.getBoundingClientRect(), o = n.getBoundingClientRect();
72
72
  x(o), E(!0);
73
- const i = o.top, p = window.innerHeight - o.bottom;
74
- R(r.height > p && i > p), T(r.width > window.innerWidth - o.left && o.right > window.innerWidth - o.left ? "left" : "right");
73
+ const s = o.top, p = window.innerHeight - o.bottom;
74
+ R(r.height > p && s > p), T(r.width > window.innerWidth - o.left && o.right > window.innerWidth - o.left ? "left" : "right");
75
75
  }, []);
76
76
  X(() => {
77
77
  if (t)
@@ -82,17 +82,17 @@ import '../../assets/index54.css';const G = "_popover_12bds_1", J = "_inline_12b
82
82
  const j = (e) => {
83
83
  e.preventDefault(), e.stopPropagation(), t ? a({
84
84
  restoreFocus: !1
85
- }) : b();
85
+ }) : _();
86
86
  }, O = {
87
87
  "aria-controls": t ? B : void 0,
88
88
  "aria-expanded": t,
89
89
  "aria-haspopup": L,
90
90
  "aria-label": F,
91
- className: h ? s["inline-trigger"] : s.trigger,
91
+ className: w ? i["inline-trigger"] : i.trigger,
92
92
  onClick: j,
93
93
  onKeyDown: N
94
- }, S = [w === "left" ? "translateX(-100%)" : "", u ? "translateY(calc(-100% - var(--shape-spacing-2xs)))" : ""].filter(Boolean).join(" "), _ = t ? /* @__PURE__ */ k("div", { className: z(s["popover-panel"], s[u ? "above" : "below"], s["floating-panel"]), "data-horizontal-placement": w, "data-placement": u ? "above" : "below", id: B, ref: l, style: c ? {
95
- left: w === "left" ? c.right : c.left,
94
+ }, S = [b === "left" ? "translateX(-100%)" : "", u ? "translateY(calc(-100% - var(--shape-spacing-2xs)))" : ""].filter(Boolean).join(" "), h = t ? /* @__PURE__ */ k("div", { className: z(i["popover-panel"], i[u ? "above" : "below"], i["floating-panel"]), "data-horizontal-placement": b, "data-placement": u ? "above" : "below", id: B, ref: l, style: c ? {
95
+ left: b === "left" ? c.right : c.left,
96
96
  position: "fixed",
97
97
  top: u ? c.top : c.bottom,
98
98
  transform: S || void 0
@@ -106,14 +106,13 @@ import '../../assets/index54.css';const G = "_popover_12bds_1", J = "_inline_12b
106
106
  isOpen: t,
107
107
  isPositioned: I
108
108
  }) : v }) : null;
109
- return /* @__PURE__ */ H("div", { className: z(s.popover, h && s.inline), "data-open": t, onKeyDown: K, onClick: (e) => {
109
+ return /* @__PURE__ */ H("div", { className: z(i.popover, w && i.inline), "data-open": t, onKeyDown: K, onClick: (e) => {
110
110
  e.preventDefault(), e.stopPropagation();
111
111
  }, ref: y, "data-component": "popover", children: [
112
- /* @__PURE__ */ k(q, { ...O, ref: d, variant: "simple", children: A }),
113
- _ && typeof document < "u" ? Y(_, document.body) : _
112
+ /* @__PURE__ */ k(q, { ...O, ref: d, variant: w ? "simple" : "tertiary", children: A }),
113
+ h && typeof document < "u" ? Y(h, document.body) : h
114
114
  ] });
115
115
  };
116
116
  export {
117
- ie as Popover
117
+ se as Popover
118
118
  };
119
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index10.css');const e=require("react/jsx-runtime"),c=require("classix"),i=require("../button/index.cjs"),a=require("../icon/index.cjs"),l=require("../aside/index.cjs"),_=require("../branding/index.cjs"),d=require("../figure/index.cjs"),u=require("../nav/index.cjs"),p="_portal_1wzqh_23",x="_content_1wzqh_279",g="_toggle_1wzqh_286",m="_open_1wzqh_337",n={portal:p,content:x,toggle:g,open:m},q=({children:t,portals:o,open:s,setOpen:r})=>e.jsxs(l.Aside,{className:c(n.portal,s&&n.open),sticky:!0,"data-component":"portal",children:[e.jsx(i.Button,{className:n.toggle,onClick:()=>r(!s),variant:"tertiary",children:e.jsx(a.Icon,{name:"SidebarSimple"})}),e.jsx(d.Figure,{children:e.jsx(_.Branding,{})}),e.jsxs("div",{className:n.content,children:[o&&e.jsx(u.Nav,{horizontal:!0,children:o}),t&&t]})]});exports.Portal=q;
2
- //# sourceMappingURL=index.cjs.map
@@ -27,4 +27,3 @@ import '../../assets/index10.css';const d = "_portal_1wzqh_23", h = "_content_1w
27
27
  export {
28
28
  k as Portal
29
29
  };
30
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index9.css');const a=require("react/jsx-runtime"),m=require("react"),b=require("../button/index.cjs"),I=require("../checkbox/index.cjs"),T=require("../chip/index.cjs"),H=require("../collapsible/index.cjs"),P=require("../controls/index.cjs"),z=require("../dialog/index.cjs"),A=require("../header/index.cjs"),E=require("../../index-7blZaPiA.cjs"),J="_search_wsuwb_3",K="_controls_wsuwb_15",Q="_chips_wsuwb_35",S="_radio_wsuwb_101",l={search:J,controls:K,chips:Q,"filter-dialog":"_filter-dialog_wsuwb_42","filter-groups":"_filter-groups_wsuwb_47","filter-group":"_filter-group_wsuwb_47","filter-option":"_filter-option_wsuwb_83","option-copy":"_option-copy_wsuwb_89",radio:S,"collapsible-options":"_collapsible-options_wsuwb_124"},U=({filterButtonLabel:x="Filters",filterDialogColumns:f=1,filterDialogTitle:k="Filters",filterGroups:d=[],onChange:q,onSelectedFiltersChange:i,removeFilterLabel:M=c=>`Remove ${c.label} filter`,resetLabel:u="Reset",searchLabel:$="Search",searchPlaceholder:O="Search",selectedFilters:t=[],showResultsLabel:B="Show results",value:D=""})=>{const c=m.useId(),[j,r]=m.useState(!1),R=m.useMemo(()=>new Map(d.flatMap(s=>{var n;return[...s.options,...((n=s.collapsible)==null?void 0:n.options)??[]]}).map(s=>[s.value,s])),[d]),h=t.flatMap(s=>{const n=R.get(s);return n?[n]:[]}),p=(s,n,e)=>{var N;if(!i)return;const _=new Set([...(e==null?void 0:e.options.map(o=>o.value))??[],...((N=e==null?void 0:e.collapsible)==null?void 0:N.options.map(o=>o.value))??[]]),y=t.filter(o=>!_.has(o));if(n&&(e==null?void 0:e.defaultValue)===s){i(y);return}i(n?(e==null?void 0:e.control)==="radio"||(e==null?void 0:e.selectionMode)==="single"?[...y,s]:[...new Set([...t,s])]:t.filter(o=>o!==s))},v=(s,n)=>{var e;return t.includes(s)||n.defaultValue===s&&![...n.options,...((e=n.collapsible)==null?void 0:e.options)??[]].some(_=>t.includes(_.value))},w=(s,n)=>a.jsx("div",{className:l["filter-option"],"data-component":"renderfilter",children:n.control==="radio"?a.jsxs("label",{className:l.radio,children:[a.jsx("input",{checked:v(s.value,n),name:`${c}-filter-${n.label??"group"}`,onChange:e=>p(s.value,e.target.checked,n),type:"radio"}),a.jsxs("span",{className:l["option-copy"],children:[s.label,s.description&&a.jsx("sub",{children:s.description})]})]}):a.jsx(I.Checkbox,{checked:v(s.value,n),label:a.jsxs("span",{className:l["option-copy"],children:[s.label,s.description&&a.jsx("sub",{children:s.description})]}),onChange:e=>p(s.value,e.target.checked,n)})},s.value);return a.jsxs("div",{className:l.search,"data-component":"search",children:[a.jsxs("div",{className:l.controls,children:[a.jsx(E.Input,{"aria-label":$,icon:"MagnifyingGlass",onChange:s=>q(s.target.value),placeholder:O,type:"search",value:D}),d.length>0&&a.jsx(b.Button,{"aria-expanded":j,"aria-haspopup":"dialog",badge:h.length,icon:"Funnel",onClick:()=>r(!0),variant:"tertiary",children:x})]}),h.length>0&&a.jsxs("div",{"aria-label":x,className:l.chips,children:[h.map(s=>a.jsx(T.Chip,{accessibleLabel:M(s),label:s.label,onDelete:()=>p(s.value,!1)},s.value)),a.jsx(b.Button,{onClick:()=>i==null?void 0:i([]),variant:"tertiary",children:u})]}),j&&a.jsx(z.Dialog,{"aria-labelledby":c,className:l["filter-dialog"],controls:a.jsxs(P.Controls,{children:[a.jsx(b.Button,{onClick:()=>{i==null||i([]),r(!1)},children:u}),a.jsx(b.Button,{onClick:()=>r(!1),variant:"primary",children:B})]}),header:a.jsx(A.Header,{children:a.jsx("h2",{id:c,children:k})}),open:!0,setOpen:r,children:a.jsx("div",{className:l["filter-groups"],"data-columns":f,children:d.map((s,n)=>a.jsxs("section",{"aria-labelledby":s.label?`${c}-${n}`:void 0,className:l["filter-group"],"data-column-span":s.columnSpan??1,role:s.control==="radio"?"radiogroup":"group",children:[s.label&&a.jsx("h3",{id:`${c}-${n}`,children:s.label}),s.options.map(e=>w(e,s)),s.collapsible&&a.jsx(H.Collapsible,{summary:s.collapsible.label,children:a.jsx("div",{className:l["collapsible-options"],children:s.collapsible.options.map(e=>w(e,s))})})]},s.label??n))})})]})};exports.Search=U;
2
- //# sourceMappingURL=index.cjs.map
@@ -86,4 +86,3 @@ import '../../assets/index9.css';const U = "_search_wsuwb_3", V = "_controls_wsu
86
86
  export {
87
87
  ia as Search
88
88
  };
89
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("classix");require("../../icons-BIdcCH-v.cjs");const e=require("../../index-VLDsM9it.cjs");require("../../use-touched-Bq5Gjbpz.cjs");exports.Select=e.Select;
2
- //# sourceMappingURL=index.cjs.map
@@ -6,4 +6,3 @@ import "../../use-touched-B999bBr8.js";
6
6
  export {
7
7
  e as Select
8
8
  };
9
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index8.css');const q=require("react/jsx-runtime"),X=require("classix"),s=require("react"),Z=require("../list/index.cjs"),G="_sortable_1h6pg_1",J="_dragging_1h6pg_13",K="_columns_1h6pg_36",Q="_pseudo_1h6pg_45",b={sortable:G,dragging:J,columns:K,pseudo:Q,"target-above":"_target-above_1h6pg_60","target-below":"_target-below_1h6pg_61"},k=s.createContext(null);function tt(){return s.useContext(k)}const h=a=>Number.parseFloat(a)||0,et=a=>{const w=a.firstElementChild,i=a.getBoundingClientRect();if(w){const y=w.getBoundingClientRect();return{borderRadius:window.getComputedStyle(w).borderRadius,height:y.height,width:y.width,wrapperHeight:i.height}}const u=window.getComputedStyle(a),A=h(u.borderLeftWidth)+h(u.borderRightWidth)+h(u.paddingLeft)+h(u.paddingRight),T=h(u.borderBottomWidth)+h(u.borderTopWidth)+h(u.paddingBottom)+h(u.paddingTop);return{borderRadius:u.borderRadius,height:Math.max(0,i.height-T),width:Math.max(0,i.width-A),wrapperHeight:i.height}};function nt({children:a,className:w,columns:i=1,isRearranging:u=!1,onChangeOrder:A,...T}){const y=Number.isFinite(i)?Math.max(1,Math.floor(i)):1,R=s.useMemo(()=>s.Children.toArray(a),[a]),l=s.useRef(-1),L=s.useMemo(()=>typeof window<"u"&&(navigator.maxTouchPoints>0||window.matchMedia("(pointer: coarse)").matches),[]),p=s.useRef(!1),_=s.useRef(null),v=s.useRef(null),x=s.useRef(null),I=s.useRef(0),C=s.useRef(null),g=s.useRef(null),E=s.useRef(o=>o.preventDefault()).current,[M,O]=s.useState({borderRadius:"0px",height:0,width:0,wrapperHeight:0}),[m,S]=s.useState(null),W={...T.style,"--sortable-placeholder-height":`${M.height}px`,"--sortable-placeholder-radius":M.borderRadius,"--sortable-placeholder-width":`${M.width}px`},H=(o,t)=>{if(t<0||t>=R.length||o===t)return;const c=R.slice(),[e]=c.splice(o,1);c.splice(t,0,e),A(c.map((n,r)=>({id:String(s.isValidElement(n)?n.props["data-id"]??`idx-${r}`:`idx-${r}`),weight:c.length-1-r})))},D=()=>{v.current!==null&&(clearTimeout(v.current),v.current=null)},B=()=>{g.current!==null&&(cancelAnimationFrame(g.current),g.current=null)},$=o=>{let t=(o==null?void 0:o.parentElement)??null;for(;t;){const{overflowY:c}=window.getComputedStyle(t);if(/(auto|scroll|overlay)/.test(c)&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.scrollingElement instanceof HTMLElement?document.scrollingElement:null},P=(o=!1)=>{D(),B(),window.removeEventListener("touchmove",E),C.current=null,p.current=!1,_.current=null,x.current=null,I.current=o?Date.now()+500:0,l.current=-1,S(null)},N=(o,t)=>{l.current=o,O(et(t)),S(o)},U=o=>o instanceof Element&&!!o.closest('button, a, input, textarea, select, option, [role="button"], [contenteditable="true"]'),Y=(o,t,c)=>{const e=l.current;if(!Number.isInteger(t)||e<0||t===e)return null;const n=o.getBoundingClientRect(),r=t===e+1?M.wrapperHeight:n.height,d=c>n.top+r/2?t+1:t;return d>e?d-1:d},j=(o,t)=>{var n;const c=(n=document.elementFromPoint(o,t))==null?void 0:n.closest("[data-sortable-index]");if(!c)return;const e=Y(c,Number(c.dataset.sortableIndex),t);e!==null&&(_.current=e,S(e))},V=o=>{const t=$(o);if(!t)return;const c=72,e=18,n=()=>{if(!p.current){g.current=null;return}const r=C.current;if(!r){g.current=requestAnimationFrame(n);return}const f=t===document.scrollingElement?{top:0,bottom:window.innerHeight}:t.getBoundingClientRect();let d=0;if(r.y<f.top+c){const F=Math.max(0,r.y-f.top);d=-e*(1-F/c)}else if(r.y>f.bottom-c){const F=Math.max(0,f.bottom-r.y);d=e*(1-F/c)}d!==0&&(t.scrollBy({top:d,behavior:"auto"}),j(r.x,r.y)),g.current=requestAnimationFrame(n)};B(),g.current=requestAnimationFrame(n)},z=()=>{l.current=-1,S(null)};return s.useEffect(()=>()=>{D(),B(),window.removeEventListener("touchmove",E)},[E]),q.jsx(Z.List,{className:X(w,b.sortable,y>1&&b.columns),columns:i,ordered:!0,style:W,...T,"data-component":"sortable",children:R.map((o,t)=>{const c=s.isValidElement(o)?o.key:null;return q.jsx("li",{"data-sortable-index":t,onClickCapture:e=>{I.current<=Date.now()||(e.preventDefault(),e.stopPropagation(),I.current=0)},className:X(m!==null&&m>t-10&&m<t+10&&b.pseudo,m===t&&l.current<t&&b["target-below"],m===t&&l.current>t&&b["target-above"],l.current===t&&b.dragging),onContextMenu:e=>{(p.current||v.current!==null)&&e.preventDefault()},onTouchStart:e=>{if(u||U(e.target))return;I.current=0;const n=e.touches[0];if(!n)return;const r=e.currentTarget;x.current={x:n.clientX,y:n.clientY},D(),v.current=setTimeout(()=>{N(t,r),p.current=!0,_.current=t,C.current={x:n.clientX,y:n.clientY},window.addEventListener("touchmove",E,{passive:!1}),V(r)},350)},onTouchMove:e=>{const n=e.touches[0];if(n){if(C.current={x:n.clientX,y:n.clientY},!p.current){const r=x.current;if(!r)return;Math.hypot(n.clientX-r.x,n.clientY-r.y)>8&&(D(),x.current=null);return}j(n.clientX,n.clientY)}},onTouchEnd:e=>{if(D(),!p.current){x.current=null;return}e.preventDefault();const n=l.current,r=_.current;n>=0&&r!==null&&n!==r&&H(n,r),P(!0)},onTouchCancel:()=>P(),draggable:!u&&!L,onDragEnd:()=>z(),onDragOver:e=>{e.preventDefault(),e.dataTransfer.dropEffect="move";const n=Y(e.currentTarget,t,e.clientY);n!==null&&S(n)},onDragStart:e=>{if(L){e.preventDefault();return}N(t,e.currentTarget),e.dataTransfer.setData("text/plain",""),e.dataTransfer.effectAllowed="move"},onDrop:e=>{e.preventDefault();const n=l.current,r=m;n<0||r===null||n===r||(H(n,r),z())},"data-component":"sortable",children:q.jsx(k.Provider,{value:{canMoveDown:t<R.length-1,canMoveUp:t>0,index:t,moveDown:()=>H(t,t+1),moveUp:()=>H(t,t-1)},children:o})},c??t)})})}exports.Sortable=nt;exports.useOptionalSortableItem=tt;
2
- //# sourceMappingURL=index.cjs.map
@@ -194,4 +194,3 @@ export {
194
194
  ht as Sortable,
195
195
  dt as useOptionalSortableItem
196
196
  };
197
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index7.css');const f=require("react/jsx-runtime"),l=require("react"),F=require("../icon/index.cjs"),k="_table_1egqd_1",z="_sortable_1egqd_27",h={table:k,sortable:z},m=r=>l.isValidElement(r),q=r=>l.Children.toArray(r).reduce((e,t)=>m(t)?e+(t.type==="td"||t.type==="th"?1:q(t.props.children)):e,0),S=r=>{for(const e of l.Children.toArray(r)){if(!m(e))continue;if(e.type==="tr")return q(e.props.children);const t=S(e.props.children);if(t!==null)return t}return null},j=(r,e)=>l.Children.map(r,t=>{if(!m(t))return t;let s=t.props.children===void 0?t.props.children:j(t.props.children,e),n;return t.type==="td"&&t.props["data-span"]==="all"&&(n={colSpan:e}),t.type==="th"&&t.props["data-type"]&&(s=f.jsxs("span",{className:h.sortable,children:[s,f.jsx(F.Icon,{name:"CaretUpDown"})]})),n||s!==t.props.children?l.cloneElement(t,n,s):t}),I=(r,e,t,s,n=1)=>{if(t==="text")return r.localeCompare(e,s,{sensitivity:"base"})*n;const c=t==="date"?Date.parse(r):Number.parseFloat(r),i=t==="date"?Date.parse(e):Number.parseFloat(e);return Number.isNaN(c)&&Number.isNaN(i)?0:Number.isNaN(c)?1:Number.isNaN(i)?-1:(c-i)*n},P=({children:r,locale:e,...t})=>{const s=l.useRef(null),n=S(r),c=n&&n>0?j(r,n):r,i=(d,u,o)=>{d.querySelectorAll("th[data-type]").forEach(a=>{a===u?(a.dataset.dir=o,a.setAttribute("aria-sort",o==="asc"?"ascending":"descending")):(delete a.dataset.dir,a.setAttribute("aria-sort","none"))})},v=l.useCallback(d=>{var x,g;const u=s.current;if(!u)return;const o=(x=d.target)==null?void 0:x.closest("th");if(!o)return;const p=u.tHead;if(!p||!p.contains(o))return;const a=o.cellIndex;if(a<0)return;const b=(g=u.tBodies)==null?void 0:g[0];if(!b)return;const y=o.getAttribute("data-type");if(!y)return;const C=o.dataset.dir==="asc"?"desc":"asc";i(p,o,C);const w=C==="asc"?1:-1,N=Array.from(b.rows);N.sort((E,R)=>{var _,A;const T=(((_=E.cells[a])==null?void 0:_.textContent)??"").trim(),D=(((A=R.cells[a])==null?void 0:A.textContent)??"").trim();return I(T,D,y,e,w)}),b.append(...N)},[e]);return f.jsx("table",{className:h.table,onClick:v,ref:s,...t,"data-component":"table",children:c})};exports.Table=P;
2
- //# sourceMappingURL=index.cjs.map
@@ -65,4 +65,3 @@ import '../../assets/index7.css';const P = "_table_1egqd_1", U = "_sortable_1egq
65
65
  export {
66
66
  L as Table
67
67
  };
68
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index6.css');const t=require("react/jsx-runtime"),x=require("classix"),s=require("../../use-touched-Bq5Gjbpz.cjs"),_="_label_mghuw_3",p="_caption_mghuw_7",g="_control_mghuw_12",w="_textarea_mghuw_22",b="_touched_mghuw_46",e={label:_,caption:p,control:g,textarea:w,touched:b},j=({className:n,label:o,maxRows:r=12,minRows:l=3,onBlur:u,required:a,style:d,value:c,...i})=>{const{touched:h,onBlur:m}=s.useTouched(c==="");return t.jsxs("label",{className:e.label,"data-component":"textarea",children:[o&&t.jsx("span",{className:e.caption,"data-required":a||void 0,children:o}),t.jsx("span",{className:e.control,children:t.jsx("textarea",{...i,className:x(e.textarea,n,h&&e.touched),onBlur:s.composeEventHandlers(m,u),required:a,style:{...d,"--min-rows":l,"--max-rows":r},value:c})})]})};exports.Textarea=j;
2
- //# sourceMappingURL=index.cjs.map
@@ -34,4 +34,3 @@ import '../../assets/index6.css';const w = "_label_mghuw_3", g = "_caption_mghuw
34
34
  export {
35
35
  T as Textarea
36
36
  };
37
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index5.css');const n=require("react/jsx-runtime"),l=require("classix"),o=require("react"),q=require("../icon/index.cjs"),d="_toast_12yql_1",f="_active_12yql_21",m="_error_12yql_27",y="_success_12yql_36",c={toast:d,active:f,error:m,success:y},v=({label:i,type:e="success",onClick:u,onExitComplete:s,open:t=!0})=>{const[_,a]=o.useState(!1);return o.useEffect(()=>{if(!t)return a(!1);const r=requestAnimationFrame(()=>a(!0));return()=>cancelAnimationFrame(r)},[t]),n.jsxs("div",{"aria-live":e==="error"?"assertive":"polite",className:l(c.toast,c[e],_&&c.active),onClick:u,onTransitionEnd:r=>{t||r.propertyName!=="opacity"||r.currentTarget!==r.target||s==null||s()},"data-component":"toast",children:[n.jsx(q.Icon,{name:e==="error"?"Warning":"CheckCircle"}),i]})};exports.Toast=v;
2
- //# sourceMappingURL=index.cjs.map
@@ -29,4 +29,3 @@ import '../../assets/index5.css';const v = "_toast_12yql_1", y = "_active_12yql_
29
29
  export {
30
30
  w as Toast
31
31
  };
32
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index4.css');const u=require("react/jsx-runtime"),i=require("react"),w=require("../toast/index.cjs"),p="_toasts_i467j_1",h={toasts:p},T=({defaultDurationMs:r=5e3,onRemove:m,toasts:n})=>{const d=i.useRef(new Map),[c,l]=i.useState(new Set),a=i.useCallback(e=>{l(s=>s.has(e)?s:new Set(s).add(e))},[]);return i.useEffect(()=>{const e=d.current,s=new Set(n.map(t=>t.id));l(t=>{const o=new Set([...t].filter(f=>s.has(f)));return o.size===t.size?t:o});for(const t of n){if(c.has(t.id)||e.has(t.id))continue;const o=t.durationMs??r;e.set(t.id,window.setTimeout(()=>{a(t.id)},o))}for(const[t,o]of e)s.has(t)&&!c.has(t)||(window.clearTimeout(o),e.delete(t))},[c,r,a,n]),i.useEffect(()=>{const e=d.current;return()=>{for(const s of e.values())window.clearTimeout(s);e.clear()}},[]),n.length?u.jsx("div",{className:h.toasts,"data-component":"toasts",children:n.map(e=>u.jsx(w.Toast,{label:e.label,onClick:()=>a(e.id),onExitComplete:()=>m(e.id),open:!c.has(e.id),type:e.type},e.id))}):null};exports.Toasts=T;
2
- //# sourceMappingURL=index.cjs.map
@@ -37,4 +37,3 @@ import '../../assets/index4.css';const v = "_toasts_i467j_1", S = {
37
37
  export {
38
38
  g as Toasts
39
39
  };
40
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index3.css');const t=require("react/jsx-runtime"),g=require("../loading/index.cjs"),i="_toggle_1frmq_3",d="_thumb_1frmq_12",m="_track_1frmq_23",e={toggle:i,thumb:d,track:m},u=({checked:s,disabled:c,isLoading:o,label:n,onChange:a})=>{const l=s!==void 0&&a===void 0;return t.jsxs("label",{className:e.toggle,onClick:r=>r.stopPropagation(),"data-component":"toggle",children:[t.jsx("input",{checked:s,disabled:c||o,onChange:a,readOnly:l,type:"checkbox"}),t.jsx("span",{"aria-hidden":"true",className:e.track,children:o?t.jsx(g.Loading,{}):t.jsx("span",{className:e.thumb})}),n&&t.jsx("span",{className:"toggle",children:n})]})};exports.Toggle=u;
2
- //# sourceMappingURL=index.cjs.map
@@ -21,4 +21,3 @@ import '../../assets/index3.css';const i = "_toggle_1frmq_3", d = "_thumb_1frmq_
21
21
  export {
22
22
  u as Toggle
23
23
  };
24
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index56.css');const a=require("react/jsx-runtime"),l=require("classix"),s="_toolbar_11xk1_1",n="_editor_11xk1_34",o={toolbar:s,default:"_default_11xk1_28",editor:n},c=({children:t,variant:e="default"})=>a.jsx("div",{className:l(o.toolbar,o[e]),onClick:r=>r.stopPropagation(),"data-component":"toolbar",children:t});exports.Toolbar=c;
2
- //# sourceMappingURL=index.cjs.map
@@ -11,4 +11,3 @@ import '../../assets/index56.css';const s = "_toolbar_11xk1_1", n = "_editor_11x
11
11
  export {
12
12
  d as Toolbar
13
13
  };
14
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index16.css');const o=require("react/jsx-runtime"),c=require("classix"),a=require("../icon/index.cjs"),t={static:"_static_r8l1k_1"},r={default:t.default,static:t.static},l=({variant:s="default",children:i,iconName:e,...n})=>o.jsxs("div",{className:c(t.tooltip,r[s]),...n,"data-component":"tooltip",children:[e&&o.jsx(a.Icon,{gap:"right",name:e}),i]});exports.Tooltip=l;
2
- //# sourceMappingURL=index.cjs.map
@@ -18,4 +18,3 @@ import '../../assets/index16.css';const t = {
18
18
  export {
19
19
  f as Tooltip
20
20
  };
21
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index2.css');const c=require("react/jsx-runtime"),i=require("classix"),l=require("../card/index.cjs"),a="_widget_4ck4n_1",d="_color1_4ck4n_26",_="_color2_4ck4n_30",u="_metric_4ck4n_55",g="_value_4ck4n_70",s={widget:a,color1:d,color2:_,metric:u,value:g},m=({children:o,className:t,color:n,metric:e,...r})=>c.jsx("div",{className:i(s.widget,t,n&&s[`color${n}`]),...r,"data-component":"widget",children:c.jsxs(l.Card,{children:[o,e&&c.jsxs("div",{className:s.metric,"aria-busy":e.busy,children:[c.jsx("span",{className:s.value,children:e.value}),e.children]})]})});exports.Widget=m;
2
- //# sourceMappingURL=index.cjs.map
@@ -23,4 +23,3 @@ import '../../assets/index2.css';const d = "_widget_4ck4n_1", _ = "_color1_4ck4n
23
23
  export {
24
24
  k as Widget
25
25
  };
26
- //# sourceMappingURL=index.js.map