neatkit 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/dist/Avatar-Belo7qAY.cjs +1 -0
  2. package/dist/Avatar-DjDCFqNG.js +55 -0
  3. package/dist/Avatar.cjs +1 -1
  4. package/dist/Avatar.js +2 -52
  5. package/dist/Boundary.cjs +1 -0
  6. package/dist/Boundary.js +176 -0
  7. package/dist/Button-BV5OUXpc.js +101 -0
  8. package/dist/Button-DU4j_IED.cjs +1 -0
  9. package/dist/Button.cjs +1 -1
  10. package/dist/Button.js +1 -1
  11. package/dist/Checkbox.cjs +1 -1
  12. package/dist/Checkbox.js +213 -2
  13. package/dist/Code-B7s_rN0G.cjs +4 -0
  14. package/dist/Code-Bp2X1k-g.js +224 -0
  15. package/dist/Code.cjs +1 -1
  16. package/dist/Code.js +1 -1
  17. package/dist/Divider-C7XGlr26.cjs +1 -0
  18. package/dist/{Divider-BE15WVDI.js → Divider-DZgpYpr-.js} +1 -1
  19. package/dist/Divider.cjs +1 -1
  20. package/dist/Divider.js +1 -1
  21. package/dist/Icon-BIBzgznI.cjs +1 -0
  22. package/dist/{Icon-uQmpr5P2.js → Icon-CxK1wlGk.js} +194 -181
  23. package/dist/Icon.cjs +1 -1
  24. package/dist/Icon.js +2 -35
  25. package/dist/Input.cjs +1 -1
  26. package/dist/Input.js +70 -79
  27. package/dist/Markdown.cjs +1 -31
  28. package/dist/Markdown.js +469 -18066
  29. package/dist/Modal.cjs +1 -1
  30. package/dist/Modal.js +100 -122
  31. package/dist/PinInput.cjs +1 -1
  32. package/dist/PinInput.js +1 -1
  33. package/dist/Popover.cjs +1 -1
  34. package/dist/Popover.js +171 -165
  35. package/dist/Radio.cjs +1 -1
  36. package/dist/Radio.js +86 -41
  37. package/dist/Select.cjs +1 -1
  38. package/dist/Select.js +326 -315
  39. package/dist/Sidebar.cjs +1 -0
  40. package/dist/Sidebar.js +490 -0
  41. package/dist/Skeleton.cjs +1 -1
  42. package/dist/Skeleton.js +20 -16
  43. package/dist/Switch.cjs +1 -1
  44. package/dist/Switch.js +1 -1
  45. package/dist/Table-CADupJEU.js +423 -0
  46. package/dist/Table-qetwZpTC.cjs +1 -0
  47. package/dist/Table.cjs +1 -1
  48. package/dist/Table.js +1 -1
  49. package/dist/TextArea.cjs +1 -1
  50. package/dist/TextArea.js +1 -1
  51. package/dist/Tooltip-B2d5ss7S.cjs +1 -0
  52. package/dist/Tooltip-BK64rkxV.js +231 -0
  53. package/dist/Tooltip.cjs +1 -1
  54. package/dist/Tooltip.js +2 -3
  55. package/dist/albert-sans-cb3e34c4.woff2 +0 -0
  56. package/dist/aria-Bntn6ad_.cjs +1 -0
  57. package/dist/aria-CeA9QfD1.js +15 -0
  58. package/dist/components/Boundary/Boundary.d.ts +65 -0
  59. package/dist/components/Boundary/contexts/BoundaryContext.d.ts +28 -0
  60. package/dist/components/Boundary/hooks/useBoundary.d.ts +19 -0
  61. package/dist/components/Boundary/hooks/useBoundaryWidth.d.ts +23 -0
  62. package/dist/components/Boundary/index.d.ts +2 -0
  63. package/dist/components/Boundary/utils/width.d.ts +11 -0
  64. package/dist/components/Checkbox/Checkbox.d.ts +9 -1
  65. package/dist/components/{CheckboxGroup → Checkbox/components}/CheckboxGroup.d.ts +2 -2
  66. package/dist/components/Checkbox/index.d.ts +1 -0
  67. package/dist/components/Checkbox/utils/checkbox-option.d.ts +17 -0
  68. package/dist/components/Icon/Icon.d.ts +1 -0
  69. package/dist/components/Icon/icons/GearIcon.d.ts +11 -0
  70. package/dist/components/Icon/icons/ImageIcon.d.ts +11 -0
  71. package/dist/components/Icon/index.d.ts +0 -33
  72. package/dist/components/Icon/utils/registry.d.ts +2 -0
  73. package/dist/components/Input/Input.d.ts +1 -9
  74. package/dist/components/Modal/Modal.d.ts +0 -4
  75. package/dist/components/PinInput/PinInput.d.ts +1 -1
  76. package/dist/components/Popover/Popover.d.ts +2 -6
  77. package/dist/components/Portal/Portal.d.ts +11 -8
  78. package/dist/components/Portal/hooks/useDismissableLayer.d.ts +2 -0
  79. package/dist/components/Portal/hooks/useFloatingPosition.d.ts +4 -3
  80. package/dist/components/Portal/hooks/useFocusTrap.d.ts +2 -0
  81. package/dist/components/Portal/hooks/useScrollLock.d.ts +9 -3
  82. package/dist/components/Portal/utils/boundary-focus.d.ts +23 -0
  83. package/dist/components/Portal/utils/floating-position.d.ts +43 -9
  84. package/dist/components/Portal/utils/overlay-stack.d.ts +22 -10
  85. package/dist/components/Portal/utils/scroll-container.d.ts +13 -0
  86. package/dist/components/Radio/Radio.d.ts +9 -1
  87. package/dist/components/{RadioGroup → Radio/components}/RadioGroup.d.ts +9 -2
  88. package/dist/components/Radio/index.d.ts +1 -0
  89. package/dist/components/Select/Select.d.ts +0 -2
  90. package/dist/components/Select/utils/listbox-position.d.ts +28 -0
  91. package/dist/components/Sidebar/Sidebar.d.ts +113 -0
  92. package/dist/components/Sidebar/components/SidebarFooter.d.ts +24 -0
  93. package/dist/components/Sidebar/components/SidebarGroup.d.ts +31 -0
  94. package/dist/components/Sidebar/components/SidebarHeader.d.ts +29 -0
  95. package/dist/components/Sidebar/components/SidebarItem.d.ts +46 -0
  96. package/dist/components/Sidebar/components/SidebarOverlay.d.ts +38 -0
  97. package/dist/components/Sidebar/components/SidebarPanel.d.ts +47 -0
  98. package/dist/components/Sidebar/components/SidebarTrigger.d.ts +47 -0
  99. package/dist/components/Sidebar/components/SidebarUser.d.ts +59 -0
  100. package/dist/components/Sidebar/hooks/usePresentation.d.ts +14 -0
  101. package/dist/components/Sidebar/hooks/useSidebar.d.ts +9 -0
  102. package/dist/components/Sidebar/index.d.ts +2 -0
  103. package/dist/components/Sidebar/utils/presentation.d.ts +12 -0
  104. package/dist/components/Sidebar/utils/state.d.ts +62 -0
  105. package/dist/components/Skeleton/Skeleton.d.ts +21 -5
  106. package/dist/components/Table/Table.d.ts +21 -249
  107. package/dist/components/Table/components/TableAction.d.ts +18 -0
  108. package/dist/components/Table/components/TableActionCell.d.ts +15 -0
  109. package/dist/components/Table/components/TableActionHeaderCell.d.ts +13 -0
  110. package/dist/components/Table/components/TableBody.d.ts +27 -0
  111. package/dist/components/Table/components/TableCell.d.ts +42 -0
  112. package/dist/components/Table/components/TableFoot.d.ts +19 -0
  113. package/dist/components/Table/components/TableHead.d.ts +19 -0
  114. package/dist/components/Table/components/TableHeaderCell.d.ts +23 -0
  115. package/dist/components/Table/components/TableRow.d.ts +67 -0
  116. package/dist/components/Table/contexts/TableContext.d.ts +4 -0
  117. package/dist/components/Table/hooks/useHorizontalOverflow.d.ts +25 -0
  118. package/dist/components/Table/index.d.ts +1 -1
  119. package/dist/components/Table/utils/cell.d.ts +25 -0
  120. package/dist/components/Table/utils/children.d.ts +18 -0
  121. package/dist/components/Table/utils/trigger.d.ts +54 -0
  122. package/dist/components/Tooltip/Tooltip.d.ts +10 -4
  123. package/dist/components/Tooltip/TooltipProvider.d.ts +1 -1
  124. package/dist/components/Tooltip/index.d.ts +0 -1
  125. package/dist/effects-D5CWf-Pl.js +8 -0
  126. package/dist/effects-D85L_7zM.cjs +1 -0
  127. package/dist/floating-position-DIjh2wnP.cjs +1 -0
  128. package/dist/floating-position-DvR6e334.js +50 -0
  129. package/dist/style.css +1 -1
  130. package/dist/tokens.d.ts +1 -0
  131. package/dist/useFloatingPosition-B3ZC-v3v.js +43 -0
  132. package/dist/useFloatingPosition-GzkP9dCc.cjs +1 -0
  133. package/dist/useFocusTrap-BrFZdMqQ.cjs +1 -0
  134. package/dist/useFocusTrap-DhVnlboe.js +136 -0
  135. package/dist/usePresence-B5RYv4e1.cjs +1 -0
  136. package/dist/usePresence-CqegYqy4.js +221 -0
  137. package/dist/useScrollLock-Drd7OZRC.js +62 -0
  138. package/dist/useScrollLock-Dy8MZaSn.cjs +1 -0
  139. package/dist/utils/aria.d.ts +9 -0
  140. package/dist/utils/effects.d.ts +12 -0
  141. package/package.json +12 -16
  142. package/dist/Button-BAsLfA0D.js +0 -99
  143. package/dist/Button-D7JUO6Fs.cjs +0 -1
  144. package/dist/Checkbox-BvXM9VyY.js +0 -68
  145. package/dist/Checkbox-VQifZrZZ.cjs +0 -1
  146. package/dist/CheckboxGroup.cjs +0 -1
  147. package/dist/CheckboxGroup.js +0 -144
  148. package/dist/Code-BP2ZCmUf.js +0 -7446
  149. package/dist/Code-eispVOW3.cjs +0 -6
  150. package/dist/Content.cjs +0 -1
  151. package/dist/Content.js +0 -144
  152. package/dist/Divider-CJYbFcSX.cjs +0 -1
  153. package/dist/Icon-D8IZceys.cjs +0 -1
  154. package/dist/RadioGroup.cjs +0 -1
  155. package/dist/RadioGroup.js +0 -51
  156. package/dist/RadioGroupContext-BX9KnDek.cjs +0 -1
  157. package/dist/RadioGroupContext-DbKM4zPZ.js +0 -5
  158. package/dist/Table-83unQQOi.cjs +0 -1
  159. package/dist/Table-Cw8u-pEW.js +0 -403
  160. package/dist/Tooltip-BB82wNOE.cjs +0 -1
  161. package/dist/Tooltip-CqWK_GRD.js +0 -236
  162. package/dist/aria-DHnOMyYp.js +0 -10
  163. package/dist/aria-DKxpE8cA.cjs +0 -1
  164. package/dist/components/CheckboxGroup/index.d.ts +0 -2
  165. package/dist/components/Content/Content.d.ts +0 -60
  166. package/dist/components/Content/hooks/useContentLayout.d.ts +0 -18
  167. package/dist/components/Content/index.d.ts +0 -2
  168. package/dist/components/Content/utils/layout.d.ts +0 -11
  169. package/dist/components/RadioGroup/index.d.ts +0 -2
  170. package/dist/useFloatingPosition-CxzhAvy8.js +0 -73
  171. package/dist/useFloatingPosition-D1FqYy0l.cjs +0 -1
  172. package/dist/useFocusTrap--cgjy78G.cjs +0 -1
  173. package/dist/useFocusTrap-Da4nEash.js +0 -134
  174. package/dist/usePresence-DSPt6aKi.js +0 -210
  175. package/dist/usePresence-qe92UTvK.cjs +0 -1
  176. /package/dist/components/{CheckboxGroup → Checkbox}/contexts/CheckboxGroupContext.d.ts +0 -0
  177. /package/dist/components/{CheckboxGroup → Checkbox}/hooks/useCheckboxGroup.d.ts +0 -0
  178. /package/dist/components/{RadioGroup → Radio}/contexts/RadioGroupContext.d.ts +0 -0
  179. /package/dist/components/{RadioGroup → Radio}/hooks/useRadioGroup.d.ts +0 -0
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),t=require("react"),C=require("./effects-D85L_7zM.cjs"),L=require("./reference-C2guRuR0.cjs"),x=require("./usePresence-B5RYv4e1.cjs"),D=require("./Text-DWYlIcPj.cjs"),J=require("./Button-DU4j_IED.cjs"),V=require("./useFocusTrap-BrFZdMqQ.cjs"),W=require("./useScrollLock-Dy8MZaSn.cjs"),X=require("./aria-Bntn6ad_.cjs"),Y=require("./Avatar-Belo7qAY.cjs"),Z=require("./Spinner-BXgw60UC.cjs"),ee=require("./Tooltip-B2d5ss7S.cjs"),ne=require("./units-PzuiQNnw.cjs"),B=new WeakMap;function K(s){const n=B.get(s);if(n)return n;const e={listeners:new Set,owner:null,state:void 0};return B.set(s,e),e}function re(s,n,e){const r=K(s);return r.owner!==null&&r.owner!==n?!1:(r.owner=n,r.state=e,r.listeners.forEach(p=>p()),!0)}function te(s,n){const e=B.get(s);!e||e.owner!==n||(e.owner=null,e.state=void 0,e.listeners.forEach(r=>r()))}function se(s){var n;return s?(n=B.get(s))==null?void 0:n.state:void 0}function ae(s,n){if(!s)return()=>{};const e=K(s);return e.listeners.add(n),()=>{e.listeners.delete(n)}}const ie=()=>{};function P(s){const n=x.useBoundary(s).boundaryElement,e=t.useCallback(p=>ae(n,p),[n]),r=t.useCallback(()=>se(n),[n]);return t.useSyncExternalStore(e,r,ie)}function O(s,n){return s==="both"||s===(n==="overlay"?"overlay":"inline")}const oe=t.forwardRef(function(n,e){const{children:r,className:p,presentation:c="both",...b}=n,o=P("Sidebar.Footer");return O(c,o==null?void 0:o.presentation)?i.jsx("div",{...b,ref:e,className:["nk-sidebar__footer",p].filter(Boolean).join(" "),children:r}):null}),le=t.forwardRef(function(n,e){const{"aria-label":r,"aria-labelledby":p,children:c,className:b,label:o,presentation:S="both",...v}=n,g=P("Sidebar.Group"),y=`${t.useId()}-label`,f=o!=null&&typeof o!="boolean"&&(typeof o!="string"||o.trim()!=="");if(!O(S,g==null?void 0:g.presentation))return null;const l=p??(r===void 0&&f?y:void 0),a=!!(r??l);return t.createElement(a?"nav":"div",{...v,ref:e,"aria-label":r,"aria-labelledby":l,className:["nk-sidebar__group",b].filter(Boolean).join(" ")},f?i.jsx(D.Text,{as:"h2",className:"nk-sidebar__group-label",id:y,size:"subtitle",weight:"medium",children:o}):null,i.jsx("ul",{className:"nk-sidebar__list",children:c}))}),ce=t.forwardRef(function(n,e){const{children:r,className:p,presentation:c="both",...b}=n,o=P("Sidebar.Header");return O(c,o==null?void 0:o.presentation)?i.jsx("div",{...b,ref:e,className:["nk-sidebar__header",p].filter(Boolean).join(" "),children:r}):null}),ue=t.forwardRef(function(n,e){const{active:r=!1,as:p,children:c,className:b,disabled:o=!1,icon:S,onClick:v,presentation:g="both",type:y,...f}=n,l=P("Sidebar.Item"),a=p??"button",u=a==="button",d=f,k=d.href!==void 0||d.to!==void 0;function m(_){if(o){_.preventDefault();return}v==null||v(_),l!=null&&l.open&&l.presentation==="overlay"&&!_.defaultPrevented&&l.requestOpenChange(!1,"item")}return O(g,l==null?void 0:l.presentation)?i.jsx("li",{className:"nk-sidebar__item-container",children:i.jsx(J.Button,{...f,ref:e,"aria-current":r?k?"page":"true":void 0,as:a,className:["nk-sidebar__item",b].filter(Boolean).join(" "),"data-active":r||void 0,disabled:o,fullWidth:!0,href:d.href,icon:S,onClick:m,shape:"rectangle",textAlignment:"left",type:u?y??"button":y,variant:"ghost",children:i.jsx("span",{className:"nk-sidebar__item-label",children:c})})}):null});function Q(s){const{"aria-label":n,"aria-labelledby":e,children:r,className:p,top:c,open:b,panelId:o,panelReference:S,presentation:v,side:g,state:y,style:f,width:l,...a}=s,u=v==="overlay",d=n??(e===void 0?"Sidebar":void 0),k=u&&b;let m=f;return(l!==void 0||c!==void 0)&&(m={...f},c!==void 0&&(m["--nk-sidebar-top-offset"]=c),l!==void 0&&(m["--nk-sidebar-width"]=l)),i.jsx("aside",{...a,ref:S,"aria-hidden":u&&!b?!0:void 0,"aria-label":u&&!b?void 0:d,"aria-labelledby":u&&!b?void 0:e,"aria-modal":k?"true":void 0,className:["nk-sidebar",p].filter(Boolean).join(" "),"data-responsive":v==="pending"||void 0,"data-side":g,"data-state":y,"data-variant":u?"overlay":"inline",id:o,role:k?"dialog":void 0,style:m,tabIndex:u?-1:void 0,children:i.jsx("div",{className:"nk-sidebar__body",children:r})})}function de(s){const{boundaries:n,initialFocusReference:e,lockScroll:r,ownerDocument:p,panelReference:c,presenceState:b,restoreFocus:o,sidebar:S,side:v,...g}=s,{id:y,open:f,requestOpenChange:l}=S,a=t.useContext(x.FocusScopeContext),u=t.useRef(null),[d,k]=t.useState(null),m=x.useBoundary("Sidebar").boundaryElement,_=x.useOverlayLayer(!0,m),T=t.useCallback(E=>{u.current=E,c(E),k(E)},[c]);C.useIsomorphicLayoutEffect(()=>{d&&(d.inert=!f)},[f,d]);const q=t.useCallback(()=>{l(!1,"escape")},[l]),j=t.useCallback(()=>{l(!1,"outside")},[l]);x.useDismissableLayer({boundary:m,active:f,boundaries:n,dismissOnEscape:!0,dismissOnPointerDownOutside:!0,layerId:_.id,onEscapeDismiss:q,onPointerDownOutsideDismiss:j,ownerDocument:p});const N=V.useFocusTrap({boundary:m,active:f,container:d,initialFocusReference:e??u,layerId:_.id,restoreFocus:o});return W.useScrollLock(r&&f,p,m),i.jsx(x.FocusScopeContext.Provider,{value:f?N:a,children:i.jsx("div",{className:"nk-sidebar__overlay","data-side":v,"data-state":b,role:"presentation",style:{zIndex:_.zIndex},children:i.jsx(Q,{...g,open:f,panelId:y,panelReference:T,presentation:"overlay",side:v,state:b})})})}function be(s){const{children:n}=s;if(n.type===t.Fragment)throw new Error("Sidebar.Trigger requires a single non-Fragment child");const e=P("Sidebar.Trigger"),r=n.props,p=L.getElementReference(n),c=e==null?void 0:e.registerTrigger,b=e==null?void 0:e.unregisterTrigger,o=t.useRef(null),S=t.useCallback(u=>{const d=o.current;d&&d!==u&&(b==null||b(d)),o.current=u,u&&(c==null||c(u)),L.assignElementReference(p,u)},[p,c,b]),v=t.useCallback(u=>{var d;(d=r.onClick)==null||d.call(r,u),!(u.defaultPrevented||!e)&&e.requestOpenChange(!e.open,"trigger")},[r,e]);if(!e)return null;const{id:g,open:y,presentation:f,variant:l}=e,a=y&&f==="overlay";return t.cloneElement(n,{"aria-controls":a?X.mergeIdentifiers(r["aria-controls"],g):r["aria-controls"],"aria-expanded":y,"aria-haspopup":r["aria-haspopup"]??"dialog",className:[r.className,"nk-sidebar__trigger"].filter(Boolean).join(" "),"data-sidebar-variant":l,onClick:v,ref:S})}const fe=t.forwardRef(function(n,e){const{actions:r,className:p,description:c,image:b,loading:o=!1,name:S,onClick:v,...g}=n,y=c!=null&&typeof c!="boolean",f=i.jsxs(i.Fragment,{children:[i.jsx(Y.Avatar,{alt:S,"aria-hidden":!0,className:"nk-sidebar__user-avatar",image:b}),i.jsxs("span",{className:"nk-sidebar__user-text",children:[i.jsx(D.Text,{as:"span",className:"nk-sidebar__user-name",children:S}),y?i.jsx(D.Text,{as:"span",className:"nk-sidebar__user-description",size:"caption",tone:"muted",children:c}):null]})]});return i.jsx("div",{...g,ref:e,className:["nk-sidebar__user",p].filter(Boolean).join(" "),children:o?i.jsx(Z.Spinner,{className:"nk-sidebar__user-spinner",size:16}):i.jsxs(i.Fragment,{children:[v?i.jsx("button",{className:"nk-sidebar__user-details",onClick:v,type:"button",children:f}):i.jsx("div",{className:"nk-sidebar__user-details",children:f}),r!==void 0&&r.length>0?i.jsx("div",{className:"nk-sidebar__user-actions",children:r.map(l=>{const{"aria-label":a,icon:u,label:d,...k}=l;return i.jsx(ee.Tooltip2,{content:d,children:i.jsx(J.Button,{...k,"aria-label":a??d,className:"nk-sidebar__user-action",icon:u,shape:"rectangle",type:"button",variant:"ghost"})},d)})}):null]})})}),pe=()=>()=>{},$=()=>{};function me(s,n){const e=s==="responsive"?n:void 0,r=t.useSyncExternalStore((e==null?void 0:e.subscribe)??pe,(e==null?void 0:e.read)??$,$);return s!=="responsive"?s:r===void 0?"pending":r>=ne.breakpoint("md")?"inline":"overlay"}const ve=t.forwardRef(function(n,e){var H;const{defaultOpen:r=!1,initialFocusReference:p,top:c,lockScroll:b=!0,onOpenChange:o,open:S,restoreFocus:v=!0,side:g="start",variant:y="responsive",width:f,...l}=n,a=x.useBoundary("Sidebar"),u=`${t.useId()}-sidebar`,d=t.useRef(Symbol("nk-sidebar")).current,k=t.useRef(null),m=me(y,a==null?void 0:a.width),_=S!==void 0,[T,q]=t.useState(r),j=_?S:T,N=t.useRef(o);C.useIsomorphicLayoutEffect(()=>{N.current=o});const E=t.useCallback((h,R)=>{var I;j!==h&&(_||q(h),(I=N.current)==null||I.call(N,h,R))},[_,j]),A=t.useCallback(h=>{k.current=h,L.assignElementReference(e??void 0,h)},[e]),w=t.useMemo(()=>[k],[]),M=t.useCallback(h=>{w.push({current:h})},[w]),U=t.useCallback(h=>{const R=w.findIndex(I=>I.current===h);R>0&&w.splice(R,1)},[w]),F=t.useMemo(()=>({id:u,open:j,presentation:m,registerTrigger:M,requestOpenChange:E,unregisterTrigger:U,variant:y}),[j,u,m,M,E,U,y]);C.useIsomorphicLayoutEffect(()=>{const h=a==null?void 0:a.boundaryElement;if(!h)return;if(re(h,d,F)===!1)throw new Error("A Boundary supports one Sidebar. Neatkit resolves Trigger, Group, and Item interactions against the single Sidebar published to the nearest Boundary, so give each Sidebar a Boundary of its own.")},[a==null?void 0:a.boundaryElement,d,F]),C.useIsomorphicLayoutEffect(()=>{const h=a==null?void 0:a.boundaryElement;if(h)return()=>te(h,d)},[a==null?void 0:a.boundaryElement,d]),t.useEffect(()=>{m==="inline"&&E(!1,"variant")},[m,E]);const z=x.usePresence(j&&m==="overlay"),G=((H=a==null?void 0:a.boundaryElement)==null?void 0:H.ownerDocument)??(typeof document>"u"?null:document);return m!=="overlay"?i.jsx(Q,{...l,top:c,open:!1,panelId:u,panelReference:A,presentation:m,side:g,width:f}):!z.present||!G?null:i.jsx(x.Portal,{children:i.jsx(de,{...l,initialFocusReference:p,lockScroll:b,ownerDocument:G,presenceState:z.state==="closing"?"closing":"open",boundaries:w,panelReference:A,restoreFocus:v,sidebar:F,side:g,width:f})})}),ye=Object.assign(ve,{Footer:oe,Group:le,Header:ce,Item:ue,Trigger:be,User:fe});exports.default=ye;
@@ -0,0 +1,490 @@
1
+ "use client";
2
+ import { jsx as d, jsxs as A, Fragment as K } from "react/jsx-runtime";
3
+ import { useCallback as k, useSyncExternalStore as X, forwardRef as I, useId as Y, createElement as ae, useContext as se, useRef as B, useState as Z, Fragment as ie, cloneElement as oe, useMemo as Q, useEffect as le } from "react";
4
+ import { u as R } from "./effects-D5CWf-Pl.js";
5
+ import { g as ce, a as ee } from "./reference-CXMr27nM.js";
6
+ import { b as z, F as V, d as de, e as ue, c as pe, P as be } from "./usePresence-CqegYqy4.js";
7
+ import { T as U } from "./Text-rN6iDo0V.js";
8
+ import { B as ne } from "./Button-BV5OUXpc.js";
9
+ import { u as fe } from "./useFocusTrap-DhVnlboe.js";
10
+ import { u as me } from "./useScrollLock-Drd7OZRC.js";
11
+ import { m as ve } from "./aria-CeA9QfD1.js";
12
+ import { A as ge } from "./Avatar-DjDCFqNG.js";
13
+ import { S as he } from "./Spinner-CVYvk6YK.js";
14
+ import { T as ye } from "./Tooltip-BK64rkxV.js";
15
+ import { b as Se } from "./units-BmjPCccF.js";
16
+ const L = /* @__PURE__ */ new WeakMap();
17
+ function re(t) {
18
+ const n = L.get(t);
19
+ if (n) return n;
20
+ const e = {
21
+ listeners: /* @__PURE__ */ new Set(),
22
+ owner: null,
23
+ state: void 0
24
+ };
25
+ return L.set(t, e), e;
26
+ }
27
+ function _e(t, n, e) {
28
+ const r = re(t);
29
+ return r.owner !== null && r.owner !== n ? !1 : (r.owner = n, r.state = e, r.listeners.forEach((b) => b()), !0);
30
+ }
31
+ function ke(t, n) {
32
+ const e = L.get(t);
33
+ !e || e.owner !== n || (e.owner = null, e.state = void 0, e.listeners.forEach((r) => r()));
34
+ }
35
+ function Ee(t) {
36
+ var n;
37
+ return t ? (n = L.get(t)) == null ? void 0 : n.state : void 0;
38
+ }
39
+ function Ne(t, n) {
40
+ if (!t) return () => {
41
+ };
42
+ const e = re(t);
43
+ return e.listeners.add(n), () => {
44
+ e.listeners.delete(n);
45
+ };
46
+ }
47
+ const Pe = () => {
48
+ };
49
+ function T(t) {
50
+ const n = z(t).boundaryElement, e = k(
51
+ (b) => Ne(n, b),
52
+ [n]
53
+ ), r = k(() => Ee(n), [n]);
54
+ return X(e, r, Pe);
55
+ }
56
+ function x(t, n) {
57
+ return t === "both" || t === (n === "overlay" ? "overlay" : "inline");
58
+ }
59
+ const we = I(
60
+ function(n, e) {
61
+ const { children: r, className: b, presentation: o = "both", ...u } = n, a = T("Sidebar.Footer");
62
+ return x(o, a == null ? void 0 : a.presentation) ? /* @__PURE__ */ d(
63
+ "div",
64
+ {
65
+ ...u,
66
+ ref: e,
67
+ className: ["nk-sidebar__footer", b].filter(Boolean).join(" "),
68
+ children: r
69
+ }
70
+ ) : null;
71
+ }
72
+ ), Ie = I(
73
+ function(n, e) {
74
+ const {
75
+ "aria-label": r,
76
+ "aria-labelledby": b,
77
+ children: o,
78
+ className: u,
79
+ label: a,
80
+ presentation: y = "both",
81
+ ...m
82
+ } = n, g = T("Sidebar.Group"), v = `${Y()}-label`, p = a != null && typeof a != "boolean" && (typeof a != "string" || a.trim() !== "");
83
+ if (!x(y, g == null ? void 0 : g.presentation))
84
+ return null;
85
+ const i = b ?? (r === void 0 && p ? v : void 0);
86
+ return ae(
87
+ !!(r ?? i) ? "nav" : "div",
88
+ {
89
+ ...m,
90
+ ref: e,
91
+ "aria-label": r,
92
+ "aria-labelledby": i,
93
+ className: ["nk-sidebar__group", u].filter(Boolean).join(" ")
94
+ },
95
+ p ? /* @__PURE__ */ d(
96
+ U,
97
+ {
98
+ as: "h2",
99
+ className: "nk-sidebar__group-label",
100
+ id: v,
101
+ size: "subtitle",
102
+ weight: "medium",
103
+ children: a
104
+ }
105
+ ) : null,
106
+ /* @__PURE__ */ d("ul", { className: "nk-sidebar__list", children: o })
107
+ );
108
+ }
109
+ ), Oe = I(
110
+ function(n, e) {
111
+ const { children: r, className: b, presentation: o = "both", ...u } = n, a = T("Sidebar.Header");
112
+ return x(o, a == null ? void 0 : a.presentation) ? /* @__PURE__ */ d(
113
+ "div",
114
+ {
115
+ ...u,
116
+ ref: e,
117
+ className: ["nk-sidebar__header", b].filter(Boolean).join(" "),
118
+ children: r
119
+ }
120
+ ) : null;
121
+ }
122
+ ), Be = I(
123
+ function(n, e) {
124
+ const {
125
+ active: r = !1,
126
+ as: b,
127
+ children: o,
128
+ className: u,
129
+ disabled: a = !1,
130
+ icon: y,
131
+ onClick: m,
132
+ presentation: g = "both",
133
+ type: v,
134
+ ...p
135
+ } = n, i = T("Sidebar.Item"), s = b ?? "button", l = s === "button", c = p, S = c.href !== void 0 || c.to !== void 0;
136
+ function f(_) {
137
+ if (a) {
138
+ _.preventDefault();
139
+ return;
140
+ }
141
+ m == null || m(_), i != null && i.open && i.presentation === "overlay" && !_.defaultPrevented && i.requestOpenChange(!1, "item");
142
+ }
143
+ return x(g, i == null ? void 0 : i.presentation) ? /* @__PURE__ */ d("li", { className: "nk-sidebar__item-container", children: /* @__PURE__ */ d(
144
+ ne,
145
+ {
146
+ ...p,
147
+ ref: e,
148
+ "aria-current": r ? S ? "page" : "true" : void 0,
149
+ as: s,
150
+ className: ["nk-sidebar__item", u].filter(Boolean).join(" "),
151
+ "data-active": r || void 0,
152
+ disabled: a,
153
+ fullWidth: !0,
154
+ href: c.href,
155
+ icon: y,
156
+ onClick: f,
157
+ shape: "rectangle",
158
+ textAlignment: "left",
159
+ type: l ? v ?? "button" : v,
160
+ variant: "ghost",
161
+ children: /* @__PURE__ */ d("span", { className: "nk-sidebar__item-label", children: o })
162
+ }
163
+ ) }) : null;
164
+ }
165
+ );
166
+ function te(t) {
167
+ const {
168
+ "aria-label": n,
169
+ "aria-labelledby": e,
170
+ children: r,
171
+ className: b,
172
+ top: o,
173
+ open: u,
174
+ panelId: a,
175
+ panelReference: y,
176
+ presentation: m,
177
+ side: g,
178
+ state: v,
179
+ style: p,
180
+ width: i,
181
+ ...s
182
+ } = t, l = m === "overlay", c = n ?? (e === void 0 ? "Sidebar" : void 0), S = l && u;
183
+ let f = p;
184
+ return (i !== void 0 || o !== void 0) && (f = { ...p }, o !== void 0 && (f["--nk-sidebar-top-offset"] = o), i !== void 0 && (f["--nk-sidebar-width"] = i)), /* @__PURE__ */ d(
185
+ "aside",
186
+ {
187
+ ...s,
188
+ ref: y,
189
+ "aria-hidden": l && !u ? !0 : void 0,
190
+ "aria-label": l && !u ? void 0 : c,
191
+ "aria-labelledby": l && !u ? void 0 : e,
192
+ "aria-modal": S ? "true" : void 0,
193
+ className: ["nk-sidebar", b].filter(Boolean).join(" "),
194
+ "data-responsive": m === "pending" || void 0,
195
+ "data-side": g,
196
+ "data-state": v,
197
+ "data-variant": l ? "overlay" : "inline",
198
+ id: a,
199
+ role: S ? "dialog" : void 0,
200
+ style: f,
201
+ tabIndex: l ? -1 : void 0,
202
+ children: /* @__PURE__ */ d("div", { className: "nk-sidebar__body", children: r })
203
+ }
204
+ );
205
+ }
206
+ function Te(t) {
207
+ const {
208
+ boundaries: n,
209
+ initialFocusReference: e,
210
+ lockScroll: r,
211
+ ownerDocument: b,
212
+ panelReference: o,
213
+ presenceState: u,
214
+ restoreFocus: a,
215
+ sidebar: y,
216
+ side: m,
217
+ ...g
218
+ } = t, { id: v, open: p, requestOpenChange: i } = y, s = se(V), l = B(null), [c, S] = Z(null), f = z("Sidebar").boundaryElement, _ = de(!0, f), C = k((E) => {
219
+ l.current = E, o(E), S(E);
220
+ }, [o]);
221
+ R(() => {
222
+ c && (c.inert = !p);
223
+ }, [p, c]);
224
+ const D = k(() => {
225
+ i(!1, "escape");
226
+ }, [i]), N = k(() => {
227
+ i(!1, "outside");
228
+ }, [i]);
229
+ ue({
230
+ boundary: f,
231
+ active: p,
232
+ boundaries: n,
233
+ dismissOnEscape: !0,
234
+ dismissOnPointerDownOutside: !0,
235
+ layerId: _.id,
236
+ onEscapeDismiss: D,
237
+ onPointerDownOutsideDismiss: N,
238
+ ownerDocument: b
239
+ });
240
+ const P = fe({
241
+ boundary: f,
242
+ active: p,
243
+ container: c,
244
+ initialFocusReference: e ?? l,
245
+ layerId: _.id,
246
+ restoreFocus: a
247
+ });
248
+ return me(r && p, b, f), /* @__PURE__ */ d(
249
+ V.Provider,
250
+ {
251
+ value: p ? P : s,
252
+ children: /* @__PURE__ */ d(
253
+ "div",
254
+ {
255
+ className: "nk-sidebar__overlay",
256
+ "data-side": m,
257
+ "data-state": u,
258
+ role: "presentation",
259
+ style: { zIndex: _.zIndex },
260
+ children: /* @__PURE__ */ d(
261
+ te,
262
+ {
263
+ ...g,
264
+ open: p,
265
+ panelId: v,
266
+ panelReference: C,
267
+ presentation: "overlay",
268
+ side: m,
269
+ state: u
270
+ }
271
+ )
272
+ }
273
+ )
274
+ }
275
+ );
276
+ }
277
+ function Fe(t) {
278
+ const { children: n } = t;
279
+ if (n.type === ie)
280
+ throw new Error("Sidebar.Trigger requires a single non-Fragment child");
281
+ const e = T("Sidebar.Trigger"), r = n.props, b = ce(n), o = e == null ? void 0 : e.registerTrigger, u = e == null ? void 0 : e.unregisterTrigger, a = B(null), y = k((l) => {
282
+ const c = a.current;
283
+ c && c !== l && (u == null || u(c)), a.current = l, l && (o == null || o(l)), ee(b, l);
284
+ }, [b, o, u]), m = k((l) => {
285
+ var c;
286
+ (c = r.onClick) == null || c.call(r, l), !(l.defaultPrevented || !e) && e.requestOpenChange(!e.open, "trigger");
287
+ }, [r, e]);
288
+ if (!e) return null;
289
+ const { id: g, open: v, presentation: p, variant: i } = e;
290
+ return oe(
291
+ n,
292
+ {
293
+ "aria-controls": v && p === "overlay" ? ve(r["aria-controls"], g) : r["aria-controls"],
294
+ "aria-expanded": v,
295
+ "aria-haspopup": r["aria-haspopup"] ?? "dialog",
296
+ className: [r.className, "nk-sidebar__trigger"].filter(Boolean).join(" "),
297
+ "data-sidebar-variant": i,
298
+ onClick: m,
299
+ ref: y
300
+ }
301
+ );
302
+ }
303
+ const Re = I(
304
+ function(n, e) {
305
+ const {
306
+ actions: r,
307
+ className: b,
308
+ description: o,
309
+ image: u,
310
+ loading: a = !1,
311
+ name: y,
312
+ onClick: m,
313
+ ...g
314
+ } = n, v = o != null && typeof o != "boolean", p = /* @__PURE__ */ A(K, { children: [
315
+ /* @__PURE__ */ d(
316
+ ge,
317
+ {
318
+ alt: y,
319
+ "aria-hidden": !0,
320
+ className: "nk-sidebar__user-avatar",
321
+ image: u
322
+ }
323
+ ),
324
+ /* @__PURE__ */ A("span", { className: "nk-sidebar__user-text", children: [
325
+ /* @__PURE__ */ d(U, { as: "span", className: "nk-sidebar__user-name", children: y }),
326
+ v ? /* @__PURE__ */ d(
327
+ U,
328
+ {
329
+ as: "span",
330
+ className: "nk-sidebar__user-description",
331
+ size: "caption",
332
+ tone: "muted",
333
+ children: o
334
+ }
335
+ ) : null
336
+ ] })
337
+ ] });
338
+ return /* @__PURE__ */ d(
339
+ "div",
340
+ {
341
+ ...g,
342
+ ref: e,
343
+ className: ["nk-sidebar__user", b].filter(Boolean).join(" "),
344
+ children: a ? /* @__PURE__ */ d(he, { className: "nk-sidebar__user-spinner", size: 16 }) : /* @__PURE__ */ A(K, { children: [
345
+ m ? /* @__PURE__ */ d(
346
+ "button",
347
+ {
348
+ className: "nk-sidebar__user-details",
349
+ onClick: m,
350
+ type: "button",
351
+ children: p
352
+ }
353
+ ) : /* @__PURE__ */ d("div", { className: "nk-sidebar__user-details", children: p }),
354
+ r !== void 0 && r.length > 0 ? /* @__PURE__ */ d("div", { className: "nk-sidebar__user-actions", children: r.map((i) => {
355
+ const {
356
+ "aria-label": s,
357
+ icon: l,
358
+ label: c,
359
+ ...S
360
+ } = i;
361
+ return /* @__PURE__ */ d(ye, { content: c, children: /* @__PURE__ */ d(
362
+ ne,
363
+ {
364
+ ...S,
365
+ "aria-label": s ?? c,
366
+ className: "nk-sidebar__user-action",
367
+ icon: l,
368
+ shape: "rectangle",
369
+ type: "button",
370
+ variant: "ghost"
371
+ }
372
+ ) }, c);
373
+ }) }) : null
374
+ ] })
375
+ }
376
+ );
377
+ }
378
+ ), Le = () => () => {
379
+ }, W = () => {
380
+ };
381
+ function xe(t, n) {
382
+ const e = t === "responsive" ? n : void 0, r = X(
383
+ (e == null ? void 0 : e.subscribe) ?? Le,
384
+ (e == null ? void 0 : e.read) ?? W,
385
+ W
386
+ );
387
+ return t !== "responsive" ? t : r === void 0 ? "pending" : r >= Se("md") ? "inline" : "overlay";
388
+ }
389
+ const Ce = I(function(n, e) {
390
+ var J;
391
+ const {
392
+ defaultOpen: r = !1,
393
+ initialFocusReference: b,
394
+ top: o,
395
+ lockScroll: u = !0,
396
+ onOpenChange: a,
397
+ open: y,
398
+ restoreFocus: m = !0,
399
+ side: g = "start",
400
+ variant: v = "responsive",
401
+ width: p,
402
+ ...i
403
+ } = n, s = z("Sidebar"), l = `${Y()}-sidebar`, c = B(Symbol("nk-sidebar")).current, S = B(null), f = xe(v, s == null ? void 0 : s.width), _ = y !== void 0, [C, D] = Z(r), N = _ ? y : C, P = B(a);
404
+ R(() => {
405
+ P.current = a;
406
+ });
407
+ const E = k((h, O) => {
408
+ var F;
409
+ N !== h && (_ || D(h), (F = P.current) == null || F.call(P, h, O));
410
+ }, [_, N]), G = k((h) => {
411
+ S.current = h, ee(e ?? void 0, h);
412
+ }, [e]), w = Q(
413
+ () => [S],
414
+ []
415
+ ), q = k((h) => {
416
+ w.push({ current: h });
417
+ }, [w]), H = k((h) => {
418
+ const O = w.findIndex((F) => F.current === h);
419
+ O > 0 && w.splice(O, 1);
420
+ }, [w]), j = Q(() => ({
421
+ id: l,
422
+ open: N,
423
+ presentation: f,
424
+ registerTrigger: q,
425
+ requestOpenChange: E,
426
+ unregisterTrigger: H,
427
+ variant: v
428
+ }), [
429
+ N,
430
+ l,
431
+ f,
432
+ q,
433
+ E,
434
+ H,
435
+ v
436
+ ]);
437
+ R(() => {
438
+ const h = s == null ? void 0 : s.boundaryElement;
439
+ if (!h) return;
440
+ if (_e(h, c, j) === !1)
441
+ throw new Error(
442
+ "A Boundary supports one Sidebar. Neatkit resolves Trigger, Group, and Item interactions against the single Sidebar published to the nearest Boundary, so give each Sidebar a Boundary of its own."
443
+ );
444
+ }, [s == null ? void 0 : s.boundaryElement, c, j]), R(() => {
445
+ const h = s == null ? void 0 : s.boundaryElement;
446
+ if (h)
447
+ return () => ke(h, c);
448
+ }, [s == null ? void 0 : s.boundaryElement, c]), le(() => {
449
+ f === "inline" && E(!1, "variant");
450
+ }, [f, E]);
451
+ const M = pe(N && f === "overlay"), $ = ((J = s == null ? void 0 : s.boundaryElement) == null ? void 0 : J.ownerDocument) ?? (typeof document > "u" ? null : document);
452
+ return f !== "overlay" ? /* @__PURE__ */ d(
453
+ te,
454
+ {
455
+ ...i,
456
+ top: o,
457
+ open: !1,
458
+ panelId: l,
459
+ panelReference: G,
460
+ presentation: f,
461
+ side: g,
462
+ width: p
463
+ }
464
+ ) : !M.present || !$ ? null : /* @__PURE__ */ d(be, { children: /* @__PURE__ */ d(
465
+ Te,
466
+ {
467
+ ...i,
468
+ initialFocusReference: b,
469
+ lockScroll: u,
470
+ ownerDocument: $,
471
+ presenceState: M.state === "closing" ? "closing" : "open",
472
+ boundaries: w,
473
+ panelReference: G,
474
+ restoreFocus: m,
475
+ sidebar: j,
476
+ side: g,
477
+ width: p
478
+ }
479
+ ) });
480
+ }), We = Object.assign(Ce, {
481
+ Footer: we,
482
+ Group: Ie,
483
+ Header: Oe,
484
+ Item: Be,
485
+ Trigger: Fe,
486
+ User: Re
487
+ });
488
+ export {
489
+ We as default
490
+ };
package/dist/Skeleton.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("react/jsx-runtime"),c=require("react"),u=c.forwardRef(function(t,r){const{"aria-hidden":a=!0,className:n,height:i="1em",shape:e="rectangle",style:s,width:l=e==="circle"?"1em":"100%",...o}=t;return d.jsx("div",{...o,ref:r,"aria-hidden":a,className:["nk-skeleton",n].filter(Boolean).join(" "),"data-shape":e,style:{...s,width:l,height:i}})});exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react/jsx-runtime"),u=require("react"),c=u.forwardRef(function(i,a){const{"aria-hidden":o=!0,className:r,height:e,shape:n="rectangle",style:s,width:t,...d}=i;return l.jsx("div",{...d,ref:a,"aria-hidden":o,className:["nk-skeleton",r].filter(Boolean).join(" "),"data-shape":n,style:{...e===void 0?void 0:{height:e},...t===void 0?void 0:{width:t},...s}})});exports.default=c;
package/dist/Skeleton.js CHANGED
@@ -1,24 +1,28 @@
1
- import { jsx as d } from "react/jsx-runtime";
2
- import { forwardRef as m } from "react";
3
- const p = m(function(t, a) {
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { forwardRef as f } from "react";
3
+ const p = f(function(t, a) {
4
4
  const {
5
- "aria-hidden": r = !0,
6
- className: n,
7
- height: o = "1em",
8
- shape: e = "rectangle",
9
- style: i,
10
- width: s = e === "circle" ? "1em" : "100%",
11
- ...l
5
+ "aria-hidden": i = !0,
6
+ className: r,
7
+ height: e,
8
+ shape: n = "rectangle",
9
+ style: d,
10
+ width: o,
11
+ ...s
12
12
  } = t;
13
- return /* @__PURE__ */ d(
13
+ return /* @__PURE__ */ l(
14
14
  "div",
15
15
  {
16
- ...l,
16
+ ...s,
17
17
  ref: a,
18
- "aria-hidden": r,
19
- className: ["nk-skeleton", n].filter(Boolean).join(" "),
20
- "data-shape": e,
21
- style: { ...i, width: s, height: o }
18
+ "aria-hidden": i,
19
+ className: ["nk-skeleton", r].filter(Boolean).join(" "),
20
+ "data-shape": n,
21
+ style: {
22
+ ...e === void 0 ? void 0 : { height: e },
23
+ ...o === void 0 ? void 0 : { width: o },
24
+ ...d
25
+ }
22
26
  }
23
27
  );
24
28
  });
package/dist/Switch.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),l=require("react"),d=require("./aria-DKxpE8cA.cjs"),o=l.forwardRef(function(s,t){const{"aria-invalid":e,className:n,disabled:i=!1,style:r,...c}=s;return a.jsxs("span",{className:["nk-switch",n].filter(Boolean).join(" "),"data-disabled":i||void 0,"data-invalid":d.hasInvalidState(e)||void 0,style:r,children:[a.jsx("input",{...c,ref:t,"aria-invalid":e,className:"nk-switch__control",disabled:i,role:"switch",type:"checkbox"}),a.jsx("span",{"aria-hidden":"true",className:"nk-switch__track",children:a.jsx("span",{className:"nk-switch__thumb"})})]})});exports.default=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),l=require("react"),d=require("./aria-Bntn6ad_.cjs"),o=l.forwardRef(function(s,t){const{"aria-invalid":e,className:n,disabled:i=!1,style:r,...c}=s;return a.jsxs("span",{className:["nk-switch",n].filter(Boolean).join(" "),"data-disabled":i||void 0,"data-invalid":d.hasInvalidState(e)||void 0,style:r,children:[a.jsx("input",{...c,ref:t,"aria-invalid":e,className:"nk-switch__control",disabled:i,role:"switch",type:"checkbox"}),a.jsx("span",{"aria-hidden":"true",className:"nk-switch__track",children:a.jsx("span",{className:"nk-switch__thumb"})})]})});exports.default=o;
package/dist/Switch.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsxs as l, jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as o } from "react";
3
- import { h as d } from "./aria-DHnOMyYp.js";
3
+ import { h as d } from "./aria-CeA9QfD1.js";
4
4
  const w = o(function(t, n) {
5
5
  const {
6
6
  "aria-invalid": i,