@ngrok/mantle 0.90.4 → 0.91.1

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 (183) hide show
  1. package/dist/accordion.d.ts +3 -5
  2. package/dist/agent.json +7 -7
  3. package/dist/{alert-CTAmHdLa.d.ts → alert-BV0VWU2o.d.ts} +5 -7
  4. package/dist/{alert-xJELJxL4.js → alert-QXHRO9ji.js} +1 -1
  5. package/dist/alert-center.d.ts +2 -4
  6. package/dist/alert-center.js +1 -1
  7. package/dist/alert-dialog.d.ts +5 -7
  8. package/dist/alert-dialog.js +1 -1
  9. package/dist/alert.d.ts +1 -1
  10. package/dist/alert.js +1 -1
  11. package/dist/anchor.d.ts +2 -6
  12. package/dist/app-layout.d.ts +9 -27
  13. package/dist/app-layout.js +1 -1
  14. package/dist/area-chart.d.ts +2 -4
  15. package/dist/area-chart.js +1 -1
  16. package/dist/{as-child-D23mGo4f.d.ts → as-child-DFxX3U2i.d.ts} +0 -2
  17. package/dist/avatar.d.ts +2 -4
  18. package/dist/badge.d.ts +3 -5
  19. package/dist/bar-chart.d.ts +2 -4
  20. package/dist/bar-chart.js +1 -1
  21. package/dist/breadcrumb.d.ts +2 -6
  22. package/dist/breadcrumb.js +1 -1
  23. package/dist/browser-only.d.ts +0 -2
  24. package/dist/{button-BZT5f79d.d.ts → button-BFAvonp1.d.ts} +3 -7
  25. package/dist/{button-mzUR1U0Y.d.ts → button-BOCRKR5v.d.ts} +3 -7
  26. package/dist/button-CZ-q7fYv.js +1 -0
  27. package/dist/button-Cwrv2Mwv.js +1 -0
  28. package/dist/{button-BRjAW1ec.d.ts → button-Dt9LZMT5.d.ts} +5 -7
  29. package/dist/{button-BCoI4bhP.d.ts → button-L4exxu_L.d.ts} +0 -2
  30. package/dist/button.d.ts +4 -4
  31. package/dist/button.js +1 -1
  32. package/dist/calendar.d.ts +1 -3
  33. package/dist/card.d.ts +3 -5
  34. package/dist/centered-layout.d.ts +9 -32
  35. package/dist/chart-D2LtDZtV.js +2 -0
  36. package/dist/{chart-23KQ1ZNO.d.ts → chart-ynMysD16.d.ts} +40 -15
  37. package/dist/checkbox.d.ts +2 -4
  38. package/dist/{choice-BCiyqLgO.d.ts → choice-BLR0_MeB.d.ts} +3 -5
  39. package/dist/choice.d.ts +1 -1
  40. package/dist/{code-block-D5eDP379.d.ts → code-block-Bqw9VyK_.d.ts} +0 -22
  41. package/dist/code-block.d.ts +4 -12
  42. package/dist/code-block.js +6 -6
  43. package/dist/code-block_highlight-utils.d.ts +1 -1
  44. package/dist/code.d.ts +2 -4
  45. package/dist/color.d.ts +1 -1
  46. package/dist/combobox.d.ts +4 -6
  47. package/dist/combobox.js +1 -1
  48. package/dist/command.d.ts +3 -13
  49. package/dist/command.js +1 -1
  50. package/dist/cx.d.ts +0 -6
  51. package/dist/{data-slot-CChfb_cv.d.ts → data-slot-B-LqAcBB.d.ts} +0 -2
  52. package/dist/data-table.d.ts +5 -9
  53. package/dist/data-table.js +1 -1
  54. package/dist/description-list.d.ts +3 -5
  55. package/dist/{dialog-CgwSNHs1.d.ts → dialog-DedsCsnk.d.ts} +3 -5
  56. package/dist/{dialog-CZYD3xL-.d.ts → dialog-Dp0QGWwo.d.ts} +0 -2
  57. package/dist/dialog-eL61O8eg.js +1 -0
  58. package/dist/dialog.d.ts +2 -2
  59. package/dist/dialog.js +1 -1
  60. package/dist/{direction-BjU0bPST.d.ts → direction-CpRzTtZh.d.ts} +0 -2
  61. package/dist/{dropdown-menu-Cef0Cz2B.d.ts → dropdown-menu-ByQQIsQE.d.ts} +2 -4
  62. package/dist/dropdown-menu-C4C1x-7W.js +1 -0
  63. package/dist/dropdown-menu.d.ts +1 -2
  64. package/dist/dropdown-menu.js +1 -1
  65. package/dist/empty.d.ts +3 -5
  66. package/dist/{field-7QeiTFwl.d.ts → field-V_gnkcmN.d.ts} +0 -2
  67. package/dist/field.d.ts +7 -15
  68. package/dist/field.js +1 -1
  69. package/dist/flag.d.ts +1 -5
  70. package/dist/hooks.d.ts +1 -37
  71. package/dist/hover-card.d.ts +1 -3
  72. package/dist/hover-card.js +1 -1
  73. package/dist/{icon-ucVgZeXn.d.ts → icon-ByLVhdYq.d.ts} +2 -4
  74. package/dist/{icon-D1RY5Tcj.d.ts → icon-CgNqu-fl.d.ts} +0 -2
  75. package/dist/{icon-r2NvfTWW.d.ts → icon-DXDyhy2N.d.ts} +2 -4
  76. package/dist/icon.d.ts +3 -3
  77. package/dist/icons-exKDODyp.js +1 -0
  78. package/dist/icons.d.ts +3 -17
  79. package/dist/icons.js +1 -1
  80. package/dist/{in-view-Ch5vJtWo.d.ts → in-view-B3nMAzfE.d.ts} +0 -6
  81. package/dist/{index-DorCusfG.d.ts → index-BZhHLrBi.d.ts} +0 -2
  82. package/dist/{index-DA4ig3gj.d.ts → index-C6s5cGCr.d.ts} +2 -10
  83. package/dist/{input-eEKzP3cE.js → input-CpQ6jlpI.js} +1 -1
  84. package/dist/{input-bbB1tC0h.d.ts → input-Dx5owTCc.d.ts} +2 -6
  85. package/dist/input.d.ts +3 -7
  86. package/dist/input.js +1 -1
  87. package/dist/kbd.d.ts +1 -3
  88. package/dist/{label-C-KbNls8.d.ts → label-Dn5CPJUj.d.ts} +1 -3
  89. package/dist/label.d.ts +1 -1
  90. package/dist/layer-container.d.ts +0 -2
  91. package/dist/line-chart.d.ts +2 -4
  92. package/dist/line-chart.js +1 -1
  93. package/dist/list.d.ts +2 -8
  94. package/dist/live-region.d.ts +2 -4
  95. package/dist/llms.txt +4 -4
  96. package/dist/main.d.ts +1 -3
  97. package/dist/mantle-dark.css +2 -12
  98. package/dist/mantle.css +86 -13
  99. package/dist/media-object.d.ts +2 -4
  100. package/dist/migrations/0011-eliminate-high-contrast.yml +869 -0
  101. package/dist/multi-select.d.ts +4 -6
  102. package/dist/multi-select.js +1 -1
  103. package/dist/otp-input.d.ts +3 -5
  104. package/dist/pagination.d.ts +3 -7
  105. package/dist/pagination.js +1 -1
  106. package/dist/{popover-Dvls7-j4.d.ts → popover-BfB2I9G0.d.ts} +1 -3
  107. package/dist/{popover-oQDUvcZ2.js → popover-q2-rCY1q.js} +1 -1
  108. package/dist/popover.d.ts +1 -1
  109. package/dist/popover.js +1 -1
  110. package/dist/progress.d.ts +1 -7
  111. package/dist/progress.js +1 -1
  112. package/dist/qr-code.d.ts +2 -4
  113. package/dist/radio-group.d.ts +2 -4
  114. package/dist/radio-group.js +1 -1
  115. package/dist/sandbar.d.ts +5 -8
  116. package/dist/sandbar.js +1 -1
  117. package/dist/sandboxed-on-click.d.ts +1 -3
  118. package/dist/scatter-plot.d.ts +2 -4
  119. package/dist/scatter-plot.js +1 -1
  120. package/dist/select-BdF_CnfJ.js +1 -0
  121. package/dist/{select-DlohFa54.d.ts → select-CRp_ndSJ.d.ts} +3 -5
  122. package/dist/select.d.ts +1 -1
  123. package/dist/select.js +1 -1
  124. package/dist/selectable-list.d.ts +3 -5
  125. package/dist/selectable-list.js +1 -1
  126. package/dist/{separator-BWGjCIl7.d.ts → separator-DNovVsrx.d.ts} +3 -5
  127. package/dist/separator.d.ts +1 -1
  128. package/dist/shake-u3qyeThI.js +1 -0
  129. package/dist/sheet-BIyuxMmF.js +1 -0
  130. package/dist/sheet.d.ts +3 -5
  131. package/dist/sheet.js +1 -1
  132. package/dist/sidebar.d.ts +5 -9
  133. package/dist/sidebar.js +1 -1
  134. package/dist/{skeleton-zfqoDAxT.js → skeleton-DBpI-ko5.js} +1 -1
  135. package/dist/skeleton.d.ts +2 -4
  136. package/dist/skeleton.js +1 -1
  137. package/dist/skip-to-main-link.d.ts +1 -3
  138. package/dist/slider.d.ts +1 -3
  139. package/dist/{slot-Q996Hqk9.d.ts → slot-C0OCJjdJ.d.ts} +2 -4
  140. package/dist/slot.d.ts +1 -1
  141. package/dist/split-button.d.ts +5 -7
  142. package/dist/split-button.js +1 -1
  143. package/dist/strata.d.ts +2 -4
  144. package/dist/switch.d.ts +2 -4
  145. package/dist/switch.js +1 -1
  146. package/dist/{table-BhzITa19.d.ts → table-vT6Okwfa.d.ts} +1 -3
  147. package/dist/table.d.ts +1 -1
  148. package/dist/tabs.d.ts +3 -5
  149. package/dist/text-area.d.ts +2 -4
  150. package/dist/text-area.js +1 -1
  151. package/dist/theme-CBGxDNFc.js +1 -0
  152. package/dist/theme-switcher.d.ts +67 -213
  153. package/dist/theme-switcher.js +1 -1
  154. package/dist/{theme-6OxNhf6l.d.ts → theme-w1CrMM-x.d.ts} +3 -5
  155. package/dist/theme.d.ts +78 -177
  156. package/dist/theme.js +1 -1
  157. package/dist/toast.d.ts +4 -6
  158. package/dist/toast.js +1 -1
  159. package/dist/tooltip-BwMlCD6k.js +1 -0
  160. package/dist/{tooltip-CngH7Kl6.d.ts → tooltip-NcLIeBy5.d.ts} +1 -3
  161. package/dist/tooltip.d.ts +1 -1
  162. package/dist/tooltip.js +1 -1
  163. package/dist/truncated-text.d.ts +2 -4
  164. package/dist/truncated-text.js +1 -1
  165. package/dist/types.d.ts +3 -3
  166. package/dist/utils.d.ts +2 -4
  167. package/dist/visually-hidden.d.ts +2 -4
  168. package/dist/well.d.ts +3 -5
  169. package/dist/{with-style-props-Dq5Vntqy.d.ts → with-style-props-CuT30s0W.d.ts} +0 -2
  170. package/package.json +2 -10
  171. package/dist/button-Bkl_QYpp.js +0 -1
  172. package/dist/button-b2HKEIE2.js +0 -1
  173. package/dist/chart-BfJ835dr.js +0 -2
  174. package/dist/dialog-C9QGvVNG.js +0 -1
  175. package/dist/dropdown-menu-DMA8dGxZ.d.ts +0 -1
  176. package/dist/dropdown-menu-j4RbBbGa.js +0 -1
  177. package/dist/icons-CW9lV9E1.js +0 -1
  178. package/dist/mantle-dark-high-contrast.css +0 -354
  179. package/dist/mantle-light-high-contrast.css +0 -353
  180. package/dist/select-Os5GVejP.js +0 -1
  181. package/dist/sheet-CAFS09pT.js +0 -1
  182. package/dist/theme-Dzem-qRB.js +0 -1
  183. package/dist/tooltip-NhYXqStK.js +0 -1
@@ -0,0 +1 @@
1
+ import{t as e}from"./cx-CK7o_rVv.js";import{t}from"./data-slot-EM6s2WEU.js";import{t as n}from"./icon-kK0c-POG.js";import{r}from"./layer-container-DLf-6eBz.js";import{n as i}from"./separator-BPE-A8tw.js";import{c as a}from"react/compiler-runtime";import{jsx as o,jsxs as s}from"react/jsx-runtime";import{Slottable as c}from"@radix-ui/react-slot";import{CheckIcon as l}from"@phosphor-icons/react/Check";import{CaretRightIcon as u}from"@phosphor-icons/react/CaretRight";import{CheckboxItem as d,Content as f,Group as p,Item as m,ItemIndicator as h,Label as g,Portal as _,RadioGroup as v,RadioItem as y,Root as b,Sub as x,SubContent as S,SubTrigger as C,Trigger as w}from"@radix-ui/react-dropdown-menu";const T=b,E=e=>{let n=a(8),r,i;n[0]===e?(r=n[1],i=n[2]):({"data-slot":r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let s;n[3]===r?s=n[4]:(s=t(r,`dropdown-menu-trigger`),n[3]=r,n[4]=s);let c;return n[5]!==i||n[6]!==s?(c=/* @__PURE__ */ o(w,{"data-slot":s,...i}),n[5]=i,n[6]=s,n[7]=c):c=n[7],c},D=n=>{let r=a(12),i,s,c;r[0]===n?(i=r[1],s=r[2],c=r[3]):({"data-slot":s,className:i,...c}=n,r[0]=n,r[1]=i,r[2]=s,r[3]=c);let l;r[4]===s?l=r[5]:(l=t(s,`dropdown-menu-group`),r[4]=s,r[5]=l);let u;r[6]===i?u=r[7]:(u=e(`space-y-px`,i),r[6]=i,r[7]=u);let d;return r[8]!==c||r[9]!==l||r[10]!==u?(d=/* @__PURE__ */ o(p,{"data-slot":l,className:u,...c}),r[8]=c,r[9]=l,r[10]=u,r[11]=d):d=r[11],d},O=e=>{let t=a(6),n,i;t[0]===e?(n=t[1],i=t[2]):({container:n,...i}=e,t[0]=e,t[1]=n,t[2]=i);let s=r(),c=n??s,l;return t[3]!==i||t[4]!==c?(l=/* @__PURE__ */ o(_,{container:c,...i}),t[3]=i,t[4]=c,t[5]=l):l=t[5],l},k={Root:T,CheckboxItem:r=>{let i=a(19),u,f,p,m,g;i[0]===r?(u=i[1],f=i[2],p=i[3],m=i[4],g=i[5]):({"data-slot":m,className:p,children:f,checked:u,...g}=r,i[0]=r,i[1]=u,i[2]=f,i[3]=p,i[4]=m,i[5]=g);let _;i[6]===m?_=i[7]:(_=t(m,`dropdown-menu-checkbox-item`),i[6]=m,i[7]=_);let v;i[8]===p?v=i[9]:(v=e(`text-strong data-disabled:pointer-events-none data-disabled:opacity-50 relative flex cursor-pointer select-none items-center gap-2 rounded-md py-1.5 pl-2 pr-9 text-sm font-normal outline-hidden`,`data-highlighted:bg-active-menu-item`,`aria-checked:bg-selected-menu-item`,`data-highlighted:aria-checked:bg-active-selected-menu-item!`,`[&>[data-slot=dropdown-menu-checkbox-item-label]>svg]:size-5 [&_svg]:shrink-0`,p),i[8]=p,i[9]=v);let y;i[10]===Symbol.for(`react.memo_cache_sentinel`)?(y=/* @__PURE__ */ o(`span`,{className:`absolute right-2 flex items-center`,children:/* @__PURE__ */ o(h,{children:/* @__PURE__ */ o(n,{svg:/* @__PURE__ */ o(l,{weight:`bold`}),className:`size-4 text-accent-600`})})}),i[10]=y):y=i[10];let b;i[11]===f?b=i[12]:(b=/* @__PURE__ */ o(c,{child:f,children:j}),i[11]=f,i[12]=b);let x;return i[13]!==u||i[14]!==g||i[15]!==_||i[16]!==v||i[17]!==b?(x=/* @__PURE__ */ s(d,{"data-slot":_,className:v,checked:u,...g,children:[y,b]}),i[13]=u,i[14]=g,i[15]=_,i[16]=v,i[17]=b,i[18]=x):x=i[18],x},Content:n=>{let r=a(20),i,s,c,l,u,d;r[0]===n?(i=r[1],s=r[2],c=r[3],l=r[4],u=r[5],d=r[6]):({className:i,"data-slot":s,onClick:c,loop:u,width:d,...l}=n,r[0]=n,r[1]=i,r[2]=s,r[3]=c,r[4]=l,r[5]=u,r[6]=d);let p=u===void 0||u,m;r[7]===s?m=r[8]:(m=t(s,`dropdown-menu-content`),r[7]=s,r[8]=m);let h=d===`trigger`&&`w-(--radix-dropdown-menu-trigger-width)`,g;r[9]!==i||r[10]!==h?(g=e(`scrollbar`,`text-popover-foreground border-popover bg-popover p-1.25 z-50 min-w-32 overflow-hidden rounded-md border shadow-xl outline-hidden space-y-px font-sans`,`data-side-bottom:slide-in-from-top-1 data-side-left:slide-in-from-right-1 data-side-right:slide-in-from-left-1 data-side-top:slide-in-from-bottom-1 data-side-bottom:slide-out-to-top-1 data-side-left:slide-out-to-right-1 data-side-right:slide-out-to-left-1 data-side-top:slide-out-to-bottom-1 duration-200 ease-out-strong data-state-closed:duration-150 motion-reduce:animate-none! data-state-closed:animate-out data-state-closed:fade-out-0 data-state-closed:zoom-out-95 data-state-open:animate-in data-state-open:fade-in-0 data-state-open:zoom-in-95`,`my-2 max-h-[calc(var(--radix-dropdown-menu-content-available-height)-16px)] overflow-auto`,h,i),r[9]=i,r[10]=h,r[11]=g):g=r[11];let _;r[12]===c?_=r[13]:(_=e=>{e.stopPropagation(),c?.(e)},r[12]=c,r[13]=_);let v;return r[14]!==p||r[15]!==l||r[16]!==m||r[17]!==g||r[18]!==_?(v=/* @__PURE__ */ o(O,{children:/* @__PURE__ */ o(f,{"data-slot":m,className:g,loop:p,onClick:_,...l})}),r[14]=p,r[15]=l,r[16]=m,r[17]=g,r[18]=_,r[19]=v):v=r[19],v},Group:D,Item:n=>{let r=a(14),i,s,c,l;r[0]===n?(i=r[1],s=r[2],c=r[3],l=r[4]):({"data-slot":s,className:i,inset:c,...l}=n,r[0]=n,r[1]=i,r[2]=s,r[3]=c,r[4]=l);let u;r[5]===s?u=r[6]:(u=t(s,`dropdown-menu-item`),r[5]=s,r[6]=u);let d=c&&`pl-8`,f;r[7]!==i||r[8]!==d?(f=e(`relative flex cursor-pointer select-none items-center rounded-md px-2 py-1.5 text-strong text-sm font-normal outline-hidden transition-colors`,`data-highlighted:bg-active-menu-item`,`focus:bg-accent focus:text-accent-foreground`,`data-disabled:cursor-default data-disabled:opacity-50`,`[&>svg]:size-5 [&_svg]:shrink-0`,d,i),r[7]=i,r[8]=d,r[9]=f):f=r[9];let p;return r[10]!==l||r[11]!==u||r[12]!==f?(p=/* @__PURE__ */ o(m,{"data-slot":u,className:f,...l}),r[10]=l,r[11]=u,r[12]=f,r[13]=p):p=r[13],p},Label:n=>{let r=a(14),i,s,c,l;r[0]===n?(i=r[1],s=r[2],c=r[3],l=r[4]):({"data-slot":s,className:i,inset:c,...l}=n,r[0]=n,r[1]=i,r[2]=s,r[3]=c,r[4]=l);let u;r[5]===s?u=r[6]:(u=t(s,`dropdown-menu-label`),r[5]=s,r[6]=u);let d=c&&`pl-8`,f;r[7]!==i||r[8]!==d?(f=e(`px-2 py-1.5 text-sm font-medium`,d,i),r[7]=i,r[8]=d,r[9]=f):f=r[9];let p;return r[10]!==l||r[11]!==u||r[12]!==f?(p=/* @__PURE__ */ o(g,{"data-slot":u,className:f,...l}),r[10]=l,r[11]=u,r[12]=f,r[13]=p):p=r[13],p},RadioGroup:n=>{let r=a(12),i,s,c;r[0]===n?(i=r[1],s=r[2],c=r[3]):({"data-slot":s,className:i,...c}=n,r[0]=n,r[1]=i,r[2]=s,r[3]=c);let l;r[4]===s?l=r[5]:(l=t(s,`dropdown-menu-radio-group`),r[4]=s,r[5]=l);let u;r[6]===i?u=r[7]:(u=e(`space-y-px`,i),r[6]=i,r[7]=u);let d;return r[8]!==c||r[9]!==l||r[10]!==u?(d=/* @__PURE__ */ o(v,{"data-slot":l,className:u,...c}),r[8]=c,r[9]=l,r[10]=u,r[11]=d):d=r[11],d},RadioItem:r=>{let i=a(17),u,d,f,p;i[0]===r?(u=i[1],d=i[2],f=i[3],p=i[4]):({"data-slot":f,className:d,children:u,...p}=r,i[0]=r,i[1]=u,i[2]=d,i[3]=f,i[4]=p);let m;i[5]===f?m=i[6]:(m=t(f,`dropdown-menu-radio-item`),i[5]=f,i[6]=m);let g;i[7]===d?g=i[8]:(g=e(`group/dropdown-menu-radio-item`,`text-strong data-disabled:pointer-events-none data-disabled:opacity-50 relative flex cursor-pointer select-none items-center gap-2 rounded-md py-1.5 px-2 text-sm font-normal outline-none`,`data-highlighted:bg-active-menu-item`,`aria-checked:bg-selected-menu-item aria-checked:pr-9`,`data-highlighted:aria-checked:bg-active-selected-menu-item!`,`[&>[data-slot=dropdown-menu-radio-item-label]>svg]:size-5 [&_svg]:shrink-0`,d),i[7]=d,i[8]=g);let _;i[9]===Symbol.for(`react.memo_cache_sentinel`)?(_=/* @__PURE__ */ o(`span`,{className:`absolute right-2 items-center hidden group-aria-checked/dropdown-menu-radio-item:flex`,children:/* @__PURE__ */ o(h,{children:/* @__PURE__ */ o(n,{svg:/* @__PURE__ */ o(l,{weight:`bold`}),className:`size-4 text-accent-600`})})}),i[9]=_):_=i[9];let v;i[10]===u?v=i[11]:(v=/* @__PURE__ */ o(c,{child:u,children:M}),i[10]=u,i[11]=v);let b;return i[12]!==p||i[13]!==m||i[14]!==g||i[15]!==v?(b=/* @__PURE__ */ s(y,{"data-slot":m,className:g,...p,children:[_,v]}),i[12]=p,i[13]=m,i[14]=g,i[15]=v,i[16]=b):b=i[16],b},Separator:n=>{let r=a(12),s,c,l;r[0]===n?(s=r[1],c=r[2],l=r[3]):({"data-slot":c,className:s,...l}=n,r[0]=n,r[1]=s,r[2]=c,r[3]=l);let u;r[4]===c?u=r[5]:(u=t(c,`dropdown-menu-separator`),r[4]=c,r[5]=u);let d;r[6]===s?d=r[7]:(d=e(`-mx-1.25 my-1 w-auto`,s),r[6]=s,r[7]=d);let f;return r[8]!==l||r[9]!==u||r[10]!==d?(f=/* @__PURE__ */ o(i,{"data-slot":u,className:d,...l}),r[8]=l,r[9]=u,r[10]=d,r[11]=f):f=r[11],f},Shortcut:n=>{let r=a(12),i,s,c;r[0]===n?(i=r[1],s=r[2],c=r[3]):({"data-slot":s,className:i,...c}=n,r[0]=n,r[1]=i,r[2]=s,r[3]=c);let l;r[4]===s?l=r[5]:(l=t(s,`dropdown-menu-shortcut`),r[4]=s,r[5]=l);let u;r[6]===i?u=r[7]:(u=e(`ml-auto text-xs tracking-widest opacity-60`,i),r[6]=i,r[7]=u);let d;return r[8]!==c||r[9]!==l||r[10]!==u?(d=/* @__PURE__ */ o(`span`,{"data-slot":l,className:u,...c,translate:`no`}),r[8]=c,r[9]=l,r[10]=u,r[11]=d):d=r[11],d},Sub:x,SubContent:n=>{let r=a(14),i,s,c,l;r[0]===n?(i=r[1],s=r[2],c=r[3],l=r[4]):({"data-slot":s,className:i,loop:l,...c}=n,r[0]=n,r[1]=i,r[2]=s,r[3]=c,r[4]=l);let u=l===void 0||l,d;r[5]===s?d=r[6]:(d=t(s,`dropdown-menu-sub-content`),r[5]=s,r[6]=d);let f;r[7]===i?f=r[8]:(f=e(`scrollbar`,`text-popover-foreground border-popover bg-popover p-1.25 data-state-closed:animate-out data-state-closed:fade-out-0 data-state-closed:zoom-out-95 data-state-open:animate-in data-state-open:fade-in-0 data-state-open:zoom-in-95 data-side-bottom:slide-in-from-top-1 data-side-left:slide-in-from-right-1 data-side-right:slide-in-from-left-1 data-side-top:slide-in-from-bottom-1 data-side-bottom:slide-out-to-top-1 data-side-left:slide-out-to-right-1 data-side-right:slide-out-to-left-1 data-side-top:slide-out-to-bottom-1 duration-200 ease-out-strong data-state-closed:duration-150 motion-reduce:animate-none! z-50 min-w-32 overflow-hidden rounded-md border shadow-xl space-y-px font-sans`,`my-2 max-h-[calc(var(--radix-dropdown-menu-content-available-height)-16px)] overflow-auto`,i),r[7]=i,r[8]=f);let p;return r[9]!==u||r[10]!==c||r[11]!==d||r[12]!==f?(p=/* @__PURE__ */ o(O,{children:/* @__PURE__ */ o(S,{"data-slot":d,className:f,loop:u,...c})}),r[9]=u,r[10]=c,r[11]=d,r[12]=f,r[13]=p):p=r[13],p},SubTrigger:r=>{let i=a(19),l,d,f,p,m;i[0]===r?(l=i[1],d=i[2],f=i[3],p=i[4],m=i[5]):({"data-slot":f,className:d,inset:p,children:l,...m}=r,i[0]=r,i[1]=l,i[2]=d,i[3]=f,i[4]=p,i[5]=m);let h;i[6]===f?h=i[7]:(h=t(f,`dropdown-menu-sub-trigger`),i[6]=f,i[7]=h);let g=p&&`pl-8`,_;i[8]!==d||i[9]!==g?(_=e(`focus:bg-accent data-state-open:bg-accent relative flex select-none items-center rounded-md py-1.5 pl-2 pr-9 text-sm outline-hidden`,`data-highlighted:bg-active-menu-item data-state-open:bg-active-menu-item`,`[&>[data-slot=dropdown-menu-sub-trigger-label]>svg]:size-5 [&_svg]:shrink-0`,g,d),i[8]=d,i[9]=g,i[10]=_):_=i[10];let v;i[11]===l?v=i[12]:(v=/* @__PURE__ */ o(c,{child:l,children:A}),i[11]=l,i[12]=v);let y;i[13]===Symbol.for(`react.memo_cache_sentinel`)?(y=/* @__PURE__ */ o(`span`,{className:`absolute right-2 flex items-center`,children:/* @__PURE__ */ o(n,{svg:/* @__PURE__ */ o(u,{weight:`bold`}),className:`size-4`})}),i[13]=y):y=i[13];let b;return i[14]!==m||i[15]!==h||i[16]!==_||i[17]!==v?(b=/* @__PURE__ */ s(C,{"data-slot":h,className:_,...m,children:[v,y]}),i[14]=m,i[15]=h,i[16]=_,i[17]=v,i[18]=b):b=i[18],b},Trigger:E};function A(e){return/* @__PURE__ */ o(`span`,{"data-slot":`dropdown-menu-sub-trigger-label`,className:`contents`,children:e})}function j(e){return/* @__PURE__ */ o(`span`,{"data-slot":`dropdown-menu-checkbox-item-label`,className:`contents`,children:e})}function M(e){return/* @__PURE__ */ o(`span`,{"data-slot":`dropdown-menu-radio-item-label`,className:`contents`,children:e})}export{k as t};
@@ -1,3 +1,2 @@
1
- import { t as DropdownMenu } from "./dropdown-menu-Cef0Cz2B.js";
2
- import "./dropdown-menu-DMA8dGxZ.js";
1
+ import { t as DropdownMenu } from "./dropdown-menu-ByQQIsQE.js";
3
2
  export { DropdownMenu };
@@ -1 +1 @@
1
- export{t as DropdownMenu}from"./dropdown-menu-j4RbBbGa.js";
1
+ export{t as DropdownMenu}from"./dropdown-menu-C4C1x-7W.js";
package/dist/empty.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- import { n as WithAsChild } from "./as-child-D23mGo4f.js";
2
- import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
3
- import { t as SvgAttributes } from "./icon-D1RY5Tcj.js";
1
+ import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
2
+ import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
3
+ import { t as SvgAttributes } from "./icon-CgNqu-fl.js";
4
4
  import { ComponentProps, ReactNode } from "react";
5
- //#region src/components/empty/empty.d.ts
6
5
  /**
7
6
  * The root container for an empty state. Centers content horizontally
8
7
  * with consistent vertical padding and max-width.
@@ -252,5 +251,4 @@ declare const Empty: {
252
251
  */
253
252
  readonly Actions: typeof Actions;
254
253
  };
255
- //#endregion
256
254
  export { Empty };
@@ -1,5 +1,4 @@
1
1
  import { AriaAttributes, ReactNode } from "react";
2
- //#region src/components/field/validation.d.ts
3
2
  /**
4
3
  * The shared validation state vocabulary for Mantle form controls.
5
4
  *
@@ -94,5 +93,4 @@ declare const resolveValidation: (validation: ValidationProp | undefined) => "er
94
93
  * controls receive `aria-invalid=false` unless `defaultAriaInvalid` is false.
95
94
  */
96
95
  declare const parseValidation: ({ "aria-invalid": ariaInvalid, defaultAriaInvalid, validation: validationProp }: ParseValidationOptions) => ParsedValidation;
97
- //#endregion
98
96
  export { ValidationState as a, parseValidation as c, ValidationProp as i, resolveValidation as l, ParsedValidation as n, WithValidation as o, Validation as r, isAriaInvalid as s, AriaInvalid as t };
package/dist/field.d.ts CHANGED
@@ -1,12 +1,11 @@
1
- import { n as WithAsChild } from "./as-child-D23mGo4f.js";
2
- import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
3
- import { i as IconButtonIntent, n as IconButtonProps, r as IconButtonAppearance } from "./button-BZT5f79d.js";
4
- import { a as ValidationState, c as parseValidation, i as ValidationProp, l as resolveValidation, n as ParsedValidation, o as WithValidation, r as Validation, s as isAriaInvalid, t as AriaInvalid } from "./field-7QeiTFwl.js";
5
- import { t as Label } from "./label-C-KbNls8.js";
6
- import { t as Slot } from "./slot-Q996Hqk9.js";
7
- import { t as Popover } from "./popover-Dvls7-j4.js";
1
+ import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
2
+ import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
3
+ import { i as IconButtonIntent, n as IconButtonProps, r as IconButtonAppearance } from "./button-BFAvonp1.js";
4
+ import { a as ValidationState, c as parseValidation, i as ValidationProp, l as resolveValidation, n as ParsedValidation, o as WithValidation, r as Validation, s as isAriaInvalid, t as AriaInvalid } from "./field-V_gnkcmN.js";
5
+ import { t as Label } from "./label-Dn5CPJUj.js";
6
+ import { t as Slot } from "./slot-C0OCJjdJ.js";
7
+ import { t as Popover } from "./popover-BfB2I9G0.js";
8
8
  import { ComponentProps, ReactElement, ReactNode } from "react";
9
- //#region src/components/field/field-context.d.ts
10
9
  /**
11
10
  * ARIA and identity props that `Field.Control` applies to the field's
12
11
  * focusable control. `id` and `name` come from the surrounding `Field.Item`
@@ -35,16 +34,12 @@ type FieldControlAriaProps = {
35
34
  */
36
35
  name?: string;
37
36
  };
38
- //#endregion
39
- //#region src/components/field/error-helpers.d.ts
40
37
  /**
41
38
  * A validation message accepted by `Field.Errors`. Non-string absence values
42
39
  * are allowed so consumers can pass mapped validator output directly while
43
40
  * still rendering only real strings.
44
41
  */
45
42
  type FieldErrorMessage = string | null | undefined | false;
46
- //#endregion
47
- //#region src/components/field/field.d.ts
48
43
  /**
49
44
  * Renders a semantic `<fieldset>` for grouping related controls under a
50
45
  * single accessible name. Resets the default browser fieldset chrome
@@ -1236,8 +1231,6 @@ declare const Field: {
1236
1231
  */
1237
1232
  readonly ErrorItem: typeof FieldErrorItem;
1238
1233
  };
1239
- //#endregion
1240
- //#region src/components/field/field-error-messages.d.ts
1241
1234
  /**
1242
1235
  * Shapes commonly found in `field.state.meta.errors` from TanStack React Form
1243
1236
  * across its built-in validators (Standard Schema / Zod issues, raw strings,
@@ -1269,5 +1262,4 @@ type FieldError = {
1269
1262
  * ```
1270
1263
  */
1271
1264
  declare const toErrorMessages: (errors: readonly FieldError[] | null | undefined) => string[];
1272
- //#endregion
1273
1265
  export { type AriaInvalid, Field, type FieldError, type ParsedValidation, type Validation, type ValidationProp, type ValidationState, type WithValidation, isAriaInvalid, parseValidation, resolveValidation, toErrorMessages };
package/dist/field.js CHANGED
@@ -1 +1 @@
1
- import{t as e}from"./use-isomorphic-layout-effect-DdTRtMY-.js";import{t}from"./cx-CK7o_rVv.js";import{t as n}from"./data-slot-EM6s2WEU.js";import{t as r}from"./slot-DdYN1L1C.js";import{t as i}from"./button-Bkl_QYpp.js";import{i as a,n as o,r as s,t as c}from"./field-CPvjazWN.js";import{n as l,r as u,t as d}from"./field-Bihblt8U.js";import{t as f}from"./label-nHqqYS7e.js";import{t as p}from"./popover-oQDUvcZ2.js";import{c as m}from"react/compiler-runtime";import{Children as h,Fragment as g,cloneElement as _,isValidElement as v,useContext as y,useId as b,useState as x}from"react";import S from"tiny-invariant";import{jsx as C}from"react/jsx-runtime";import{QuestionIcon as w}from"@phosphor-icons/react/Question";const T=e=>{let t=[],n=/* @__PURE__ */ new Set;for(let r of e??[]){if(typeof r!=`string`)continue;let e=r.trim();e.length===0||n.has(e)||(n.add(e),t.push(e))}return t},E=e=>!(e==null||typeof e==`boolean`||typeof e==`string`&&e.trim().length===0),D=({children:e,errorItemType:t})=>{let n=!1;return h.forEach(e,e=>{n||e==null||typeof e==`boolean`||(typeof e==`string`?e.trim().length>0&&(n=!0):n=v(e)?e.type===t?E(e.props.children):e.type!==g||D({children:e.props.children,errorItemType:t}):!0)}),n},O=e=>{let r=m(14),i,a,o,s;r[0]===e?(i=r[1],a=r[2],o=r[3],s=r[4]):({"data-slot":a,className:i,ref:s,...o}=e,r[0]=e,r[1]=i,r[2]=a,r[3]=o,r[4]=s);let c;r[5]===a?c=r[6]:(c=n(a,`field-set`),r[5]=a,r[6]=c);let l;r[7]===i?l=r[8]:(l=t(`flex w-full min-w-0 flex-col gap-4 border-0 p-0`,i),r[7]=i,r[8]=l);let u;return r[9]!==o||r[10]!==s||r[11]!==c||r[12]!==l?(u=/* @__PURE__ */ C(`fieldset`,{ref:s,"data-slot":c,className:l,...o}),r[9]=o,r[10]=s,r[11]=c,r[12]=l,r[13]=u):u=r[13],u},k=e=>{let n=m(10),r,i,a;n[0]===e?(r=n[1],i=n[2],a=n[3]):({className:r,ref:a,...i}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a);let o;n[4]===r?o=n[5]:(o=t(`text-strong mb-1.5 text-sm font-medium font-sans`,r),n[4]=r,n[5]=o);let s;return n[6]!==i||n[7]!==a||n[8]!==o?(s=/* @__PURE__ */ C(`legend`,{ref:a,"data-slot":`field-legend`,className:o,...i}),n[6]=i,n[7]=a,n[8]=o,n[9]=s):s=n[9],s},A=e=>{let t=m(7),n,r;t[0]===e?(n=t[1],r=t[2]):({ref:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=y(l)?.controlId,a;return t[3]!==n||t[4]!==r||t[5]!==i?(a=/* @__PURE__ */ C(f,{ref:r,...n,htmlFor:i}),t[3]=n,t[4]=r,t[5]=i,t[6]=a):a=t[6],a},j=e=>{let i=m(16),a,o,s,c,l;i[0]===e?(a=i[1],o=i[2],s=i[3],c=i[4],l=i[5]):({"data-slot":s,asChild:a,className:o,ref:l,...c}=e,i[0]=e,i[1]=a,i[2]=o,i[3]=s,i[4]=c,i[5]=l);let u=a?r:`p`,d;i[6]===s?d=i[7]:(d=n(s,`field-label-text`),i[6]=s,i[7]=d);let f;i[8]===o?f=i[9]:(f=t(`text-strong text-sm font-medium font-sans`,o),i[8]=o,i[9]=f);let p;return i[10]!==u||i[11]!==c||i[12]!==l||i[13]!==d||i[14]!==f?(p=/* @__PURE__ */ C(u,{ref:l,"data-slot":d,className:f,...c}),i[10]=u,i[11]=c,i[12]=l,i[13]=d,i[14]=f,i[15]=p):p=i[15],p},M=e=>{let i=m(16),a,o,s,c,l;i[0]===e?(a=i[1],o=i[2],s=i[3],c=i[4],l=i[5]):({"data-slot":s,asChild:a,className:o,ref:l,...c}=e,i[0]=e,i[1]=a,i[2]=o,i[3]=s,i[4]=c,i[5]=l);let u=a?r:`div`,d;i[6]===s?d=i[7]:(d=n(s,`field-label-row`),i[6]=s,i[7]=d);let f;i[8]===o?f=i[9]:(f=t(`flex items-center gap-1`,o),i[8]=o,i[9]=f);let p;return i[10]!==u||i[11]!==c||i[12]!==l||i[13]!==d||i[14]!==f?(p=/* @__PURE__ */ C(u,{ref:l,"data-slot":d,className:f,...c}),i[10]=u,i[11]=c,i[12]=l,i[13]=d,i[14]=f,i[15]=p):p=i[15],p},N=p.Root,P=/* @__PURE__ */ C(w,{}),F=e=>{let n=m(22),r,a,o,s,c,l,u,d,f;n[0]===e?(r=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],d=n[8],f=n[9]):({appearance:c,className:r,icon:l,intent:u,label:a,ref:s,size:d,type:f,...o}=e,n[0]=e,n[1]=r,n[2]=a,n[3]=o,n[4]=s,n[5]=c,n[6]=l,n[7]=u,n[8]=d,n[9]=f);let h=c===void 0?`ghost`:c,g=l===void 0?P:l,_=u===void 0?`neutral`:u,v=d===void 0?`xs`:d,y=f===void 0?`button`:f,b;n[10]===r?b=n[11]:(b=t(`text-body -my-0.5`,r),n[10]=r,n[11]=b);let x;return n[12]!==h||n[13]!==g||n[14]!==_||n[15]!==a||n[16]!==o||n[17]!==s||n[18]!==v||n[19]!==b||n[20]!==y?(x=/* @__PURE__ */ C(p.Trigger,{asChild:!0,children:/* @__PURE__ */ C(i,{ref:s,appearance:h,className:b,icon:g,intent:_,label:a,size:v,type:y,...o})}),n[12]=h,n[13]=g,n[14]=_,n[15]=a,n[16]=o,n[17]=s,n[18]=v,n[19]=b,n[20]=y,n[21]=x):x=n[21],x},I=e=>{let t=m(10),r,i,a;t[0]===e?(r=t[1],i=t[2],a=t[3]):({"data-slot":r,ref:a,...i}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=a);let o;t[4]===r?o=t[5]:(o=n(r,`field-help-content`),t[4]=r,t[5]=o);let s;return t[6]!==i||t[7]!==a||t[8]!==o?(s=/* @__PURE__ */ C(p.Content,{ref:a,"data-slot":o,...i}),t[6]=i,t[7]=a,t[8]=o,t[9]=s):s=t[9],s},L=e=>{let i=m(18),a,o,s,c,l,u;i[0]===e?(a=i[1],o=i[2],s=i[3],c=i[4],l=i[5],u=i[6]):({"data-slot":c,asChild:a,children:o,className:s,ref:u,...l}=e,i[0]=e,i[1]=a,i[2]=o,i[3]=s,i[4]=c,i[5]=l,i[6]=u);let d=a?r:`span`,f;i[7]===c?f=i[8]:(f=n(c,`field-optional`),i[7]=c,i[8]=f);let p;i[9]===s?p=i[10]:(p=t(`text-muted text-sm font-normal font-sans`,s),i[9]=s,i[10]=p);let h=o??`(Optional)`,g;return i[11]!==d||i[12]!==l||i[13]!==u||i[14]!==f||i[15]!==p||i[16]!==h?(g=/* @__PURE__ */ C(d,{ref:u,"data-slot":f,className:p,...l,children:h}),i[11]=d,i[12]=l,i[13]=u,i[14]=f,i[15]=p,i[16]=h,i[17]=g):g=i[17],g},R=e=>{let i=m(16),a,o,s,c,l;i[0]===e?(a=i[1],o=i[2],s=i[3],c=i[4],l=i[5]):({"data-slot":s,asChild:a,className:o,ref:l,...c}=e,i[0]=e,i[1]=a,i[2]=o,i[3]=s,i[4]=c,i[5]=l);let u=a?r:`div`,d;i[6]===s?d=i[7]:(d=n(s,`field-group`),i[6]=s,i[7]=d);let f;i[8]===o?f=i[9]:(f=t(`flex w-full flex-col gap-4`,o),i[8]=o,i[9]=f);let p;return i[10]!==u||i[11]!==c||i[12]!==l||i[13]!==d||i[14]!==f?(p=/* @__PURE__ */ C(u,{ref:l,"data-slot":d,className:f,...c}),i[10]=u,i[11]=c,i[12]=l,i[13]=d,i[14]=f,i[15]=p):p=i[15],p},z=e=>{let i=m(37),o,s,u,d,f,p,h,g,_;i[0]===e?(o=i[1],s=i[2],u=i[3],d=i[4],f=i[5],p=i[6],h=i[7],g=i[8],_=i[9]):({"data-slot":d,asChild:o,children:s,className:u,id:f,name:p,ref:g,validation:_,...h}=e,i[0]=e,i[1]=o,i[2]=s,i[3]=u,i[4]=d,i[5]=f,i[6]=p,i[7]=h,i[8]=g,i[9]=_);let v=o?r:`div`,y=b(),S=f??y,w=b(),T=b(),[E,D]=x(!1),O=_??(E?`error`:void 0),k;i[10]===O?k=i[11]:(k=a(O),i[10]=O,i[11]=k);let A=k,j;i[12]===Symbol.for(`react.memo_cache_sentinel`)?(j=()=>(D(!0),()=>{D(!1)}),i[12]=j):j=i[12];let M=j,N;i[13]!==S||i[14]!==w||i[15]!==T||i[16]!==p||i[17]!==A?(N={controlId:S,descriptionId:w,errorId:T,name:p,registerError:M,validation:A},i[13]=S,i[14]=w,i[15]=T,i[16]=p,i[17]=A,i[18]=N):N=i[18];let P=N,F;i[19]===d?F=i[20]:(F=n(d,`field-item`),i[19]=d,i[20]=F);let I;i[21]===u?I=i[22]:(I=t(`flex w-full flex-col gap-1.5`,u),i[21]=u,i[22]=I);let L;i[23]!==v||i[24]!==s||i[25]!==h||i[26]!==g||i[27]!==F||i[28]!==I||i[29]!==A?(L=/* @__PURE__ */ C(v,{ref:g,"data-slot":F,"data-validation":A,className:I,...h,children:s}),i[23]=v,i[24]=s,i[25]=h,i[26]=g,i[27]=F,i[28]=I,i[29]=A,i[30]=L):L=i[30];let R;i[31]!==L||i[32]!==A?(R=/* @__PURE__ */ C(c,{validation:A,children:L}),i[31]=L,i[32]=A,i[33]=R):R=i[33];let z;return i[34]!==P||i[35]!==R?(z=/* @__PURE__ */ C(l.Provider,{value:P,children:R}),i[34]=P,i[35]=R,i[36]=z):z=i[36],z},B=e=>{let t=m(30),n,i,a;t[0]===e?(n=t[1],i=t[2],a=t[3]):({children:n,ref:a,...i}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=a);let o=y(l),s,f,p,h,g,b,x,w,T;if(t[4]!==n||t[5]!==o||t[6]!==i||t[7]!==a){T=Symbol.for(`react.early_return_sentinel`);bb0:{let e=u({context:o});if(typeof n==`function`){T=/* @__PURE__ */ C(c,{validation:e.validation,children:/* @__PURE__ */ C(d.Provider,{value:o?e.ariaProps:null,children:n(e.ariaProps)})});break bb0}S(v(n),`Field.Control expects a single React element child (or a render-prop function). Got a non-element value (string, array, fragment, null, or undefined). Wrap the control in a single element, or use the function child form: <Field.Control>{(props) => <YourControl {...props} />}</Field.Control>.`),p=c,w=e.validation,f=d.Provider,x=o?e.ariaProps:null,s=r,h=a,g=i,b=_(n,e.ariaProps)}t[4]=n,t[5]=o,t[6]=i,t[7]=a,t[8]=s,t[9]=f,t[10]=p,t[11]=h,t[12]=g,t[13]=b,t[14]=x,t[15]=w,t[16]=T}else s=t[8],f=t[9],p=t[10],h=t[11],g=t[12],b=t[13],x=t[14],w=t[15],T=t[16];if(T!==Symbol.for(`react.early_return_sentinel`))return T;let E;t[17]!==s||t[18]!==h||t[19]!==g||t[20]!==b?(E=/* @__PURE__ */ C(s,{ref:h,...g,children:b}),t[17]=s,t[18]=h,t[19]=g,t[20]=b,t[21]=E):E=t[21];let D;t[22]!==f||t[23]!==x||t[24]!==E?(D=/* @__PURE__ */ C(f,{value:x,children:E}),t[22]=f,t[23]=x,t[24]=E,t[25]=D):D=t[25];let O;return t[26]!==p||t[27]!==w||t[28]!==D?(O=/* @__PURE__ */ C(p,{validation:w,children:D}),t[26]=p,t[27]=w,t[28]=D,t[29]=O):O=t[29],O},V=e=>{let i=m(17),a,o,s,c,u;i[0]===e?(a=i[1],o=i[2],s=i[3],c=i[4],u=i[5]):({"data-slot":s,asChild:a,className:o,ref:u,...c}=e,i[0]=e,i[1]=a,i[2]=o,i[3]=s,i[4]=c,i[5]=u);let d=a?r:`p`,f=y(l),p;i[6]===s?p=i[7]:(p=n(s,`field-description`),i[6]=s,i[7]=p);let h=f?.descriptionId,g;i[8]===o?g=i[9]:(g=t(`text-body text-sm leading-4`,`[:where([data-slot=field-error-list]+&)]:-mt-1.5`,o),i[8]=o,i[9]=g);let _;return i[10]!==d||i[11]!==c||i[12]!==u||i[13]!==p||i[14]!==h||i[15]!==g?(_=/* @__PURE__ */ C(d,{ref:u,"data-slot":p,id:h,className:g,...c}),i[10]=d,i[11]=c,i[12]=u,i[13]=p,i[14]=h,i[15]=g,i[16]=_):_=i[16],_},H=e=>{let r=m(16),i,a,o,s,c;if(r[0]===e?(i=r[1],a=r[2],o=r[3],s=r[4],c=r[5]):({"data-slot":o,children:i,className:a,ref:c,...s}=e,r[0]=e,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=c),!E(i))return null;let l;r[6]===o?l=r[7]:(l=n(o,`field-error`),r[6]=o,r[7]=l);let u;r[8]===a?u=r[9]:(u=t(`text-danger-600 text-sm leading-4`,a),r[8]=a,r[9]=u);let d;return r[10]!==i||r[11]!==s||r[12]!==c||r[13]!==l||r[14]!==u?(d=/* @__PURE__ */ C(`li`,{ref:c,"data-slot":l,className:u,...s,children:i}),r[10]=i,r[11]=s,r[12]=c,r[13]=l,r[14]=u,r[15]=d):d=r[15],d},U=e=>{let t=m(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({messages:n,ref:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=T(n).map(K),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==i||t[8]!==a?(o=/* @__PURE__ */ C(W,{ref:i,...r,children:a}),t[6]=r,t[7]=i,t[8]=a,t[9]=o):o=t[9],o},W=i=>{let a=m(25),o,s,c,u,d,f;a[0]===i?(o=a[1],s=a[2],c=a[3],u=a[4],d=a[5],f=a[6]):({"data-slot":u,asChild:o,children:s,className:c,ref:f,...d}=i,a[0]=i,a[1]=o,a[2]=s,a[3]=c,a[4]=u,a[5]=d,a[6]=f);let p;a[7]===s?p=a[8]:(p=D({children:s,errorItemType:H}),a[7]=s,a[8]=p);let h=p,g=y(l),_=g?.registerError,v,b;if(a[9]!==h||a[10]!==_?(v=()=>{if(h&&_!=null)return _()},b=[h,_],a[9]=h,a[10]=_,a[11]=v,a[12]=b):(v=a[11],b=a[12]),e(v,b),!h)return null;let x=o?r:`ul`,S;a[13]===u?S=a[14]:(S=n(u,`field-error-list`),a[13]=u,a[14]=S);let w=g?.errorId,T;a[15]===c?T=a[16]:(T=t(`m-0 flex w-full flex-col list-none p-0`,c),a[15]=c,a[16]=T);let E;return a[17]!==x||a[18]!==s||a[19]!==d||a[20]!==f||a[21]!==S||a[22]!==w||a[23]!==T?(E=/* @__PURE__ */ C(x,{ref:f,"data-slot":S,id:w,role:`list`,className:T,...d,children:s}),a[17]=x,a[18]=s,a[19]=d,a[20]=f,a[21]=S,a[22]=w,a[23]=T,a[24]=E):E=a[24],E},G={Item:z,Control:B,Group:R,Set:O,Legend:k,Label:A,LabelText:j,LabelRow:M,Help:N,HelpTrigger:F,HelpContent:I,Optional:L,Description:V,Errors:U,ErrorList:W,ErrorItem:H};function K(e){return/* @__PURE__ */ C(H,{children:e},e)}const q=e=>T(e?.map(e=>typeof e==`string`||!e?e:e.message));export{G as Field,o as isAriaInvalid,s as parseValidation,a as resolveValidation,q as toErrorMessages};
1
+ import{t as e}from"./use-isomorphic-layout-effect-DdTRtMY-.js";import{t}from"./cx-CK7o_rVv.js";import{t as n}from"./data-slot-EM6s2WEU.js";import{t as r}from"./slot-DdYN1L1C.js";import{t as i}from"./button-Cwrv2Mwv.js";import{i as a,n as o,r as s,t as c}from"./field-CPvjazWN.js";import{n as l,r as u,t as d}from"./field-Bihblt8U.js";import{t as f}from"./label-nHqqYS7e.js";import{t as p}from"./popover-q2-rCY1q.js";import{c as m}from"react/compiler-runtime";import{Children as h,Fragment as g,cloneElement as _,isValidElement as v,useContext as y,useId as b,useState as x}from"react";import S from"tiny-invariant";import{jsx as C}from"react/jsx-runtime";import{QuestionIcon as w}from"@phosphor-icons/react/Question";const T=e=>{let t=[],n=/* @__PURE__ */ new Set;for(let r of e??[]){if(typeof r!=`string`)continue;let e=r.trim();e.length===0||n.has(e)||(n.add(e),t.push(e))}return t},E=e=>!(e==null||typeof e==`boolean`||typeof e==`string`&&e.trim().length===0),D=({children:e,errorItemType:t})=>{let n=!1;return h.forEach(e,e=>{n||e==null||typeof e==`boolean`||(typeof e==`string`?e.trim().length>0&&(n=!0):n=v(e)?e.type===t?E(e.props.children):e.type!==g||D({children:e.props.children,errorItemType:t}):!0)}),n},O=e=>{let r=m(14),i,a,o,s;r[0]===e?(i=r[1],a=r[2],o=r[3],s=r[4]):({"data-slot":a,className:i,ref:s,...o}=e,r[0]=e,r[1]=i,r[2]=a,r[3]=o,r[4]=s);let c;r[5]===a?c=r[6]:(c=n(a,`field-set`),r[5]=a,r[6]=c);let l;r[7]===i?l=r[8]:(l=t(`flex w-full min-w-0 flex-col gap-4 border-0 p-0`,i),r[7]=i,r[8]=l);let u;return r[9]!==o||r[10]!==s||r[11]!==c||r[12]!==l?(u=/* @__PURE__ */ C(`fieldset`,{ref:s,"data-slot":c,className:l,...o}),r[9]=o,r[10]=s,r[11]=c,r[12]=l,r[13]=u):u=r[13],u},k=e=>{let n=m(10),r,i,a;n[0]===e?(r=n[1],i=n[2],a=n[3]):({className:r,ref:a,...i}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a);let o;n[4]===r?o=n[5]:(o=t(`text-strong mb-1.5 text-sm font-medium font-sans`,r),n[4]=r,n[5]=o);let s;return n[6]!==i||n[7]!==a||n[8]!==o?(s=/* @__PURE__ */ C(`legend`,{ref:a,"data-slot":`field-legend`,className:o,...i}),n[6]=i,n[7]=a,n[8]=o,n[9]=s):s=n[9],s},A=e=>{let t=m(7),n,r;t[0]===e?(n=t[1],r=t[2]):({ref:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=y(l)?.controlId,a;return t[3]!==n||t[4]!==r||t[5]!==i?(a=/* @__PURE__ */ C(f,{ref:r,...n,htmlFor:i}),t[3]=n,t[4]=r,t[5]=i,t[6]=a):a=t[6],a},j=e=>{let i=m(16),a,o,s,c,l;i[0]===e?(a=i[1],o=i[2],s=i[3],c=i[4],l=i[5]):({"data-slot":s,asChild:a,className:o,ref:l,...c}=e,i[0]=e,i[1]=a,i[2]=o,i[3]=s,i[4]=c,i[5]=l);let u=a?r:`p`,d;i[6]===s?d=i[7]:(d=n(s,`field-label-text`),i[6]=s,i[7]=d);let f;i[8]===o?f=i[9]:(f=t(`text-strong text-sm font-medium font-sans`,o),i[8]=o,i[9]=f);let p;return i[10]!==u||i[11]!==c||i[12]!==l||i[13]!==d||i[14]!==f?(p=/* @__PURE__ */ C(u,{ref:l,"data-slot":d,className:f,...c}),i[10]=u,i[11]=c,i[12]=l,i[13]=d,i[14]=f,i[15]=p):p=i[15],p},M=e=>{let i=m(16),a,o,s,c,l;i[0]===e?(a=i[1],o=i[2],s=i[3],c=i[4],l=i[5]):({"data-slot":s,asChild:a,className:o,ref:l,...c}=e,i[0]=e,i[1]=a,i[2]=o,i[3]=s,i[4]=c,i[5]=l);let u=a?r:`div`,d;i[6]===s?d=i[7]:(d=n(s,`field-label-row`),i[6]=s,i[7]=d);let f;i[8]===o?f=i[9]:(f=t(`flex items-center gap-1`,o),i[8]=o,i[9]=f);let p;return i[10]!==u||i[11]!==c||i[12]!==l||i[13]!==d||i[14]!==f?(p=/* @__PURE__ */ C(u,{ref:l,"data-slot":d,className:f,...c}),i[10]=u,i[11]=c,i[12]=l,i[13]=d,i[14]=f,i[15]=p):p=i[15],p},N=p.Root,P=/* @__PURE__ */ C(w,{}),F=e=>{let n=m(22),r,a,o,s,c,l,u,d,f;n[0]===e?(r=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],d=n[8],f=n[9]):({appearance:c,className:r,icon:l,intent:u,label:a,ref:s,size:d,type:f,...o}=e,n[0]=e,n[1]=r,n[2]=a,n[3]=o,n[4]=s,n[5]=c,n[6]=l,n[7]=u,n[8]=d,n[9]=f);let h=c===void 0?`ghost`:c,g=l===void 0?P:l,_=u===void 0?`neutral`:u,v=d===void 0?`xs`:d,y=f===void 0?`button`:f,b;n[10]===r?b=n[11]:(b=t(`text-body -my-0.5`,r),n[10]=r,n[11]=b);let x;return n[12]!==h||n[13]!==g||n[14]!==_||n[15]!==a||n[16]!==o||n[17]!==s||n[18]!==v||n[19]!==b||n[20]!==y?(x=/* @__PURE__ */ C(p.Trigger,{asChild:!0,children:/* @__PURE__ */ C(i,{ref:s,appearance:h,className:b,icon:g,intent:_,label:a,size:v,type:y,...o})}),n[12]=h,n[13]=g,n[14]=_,n[15]=a,n[16]=o,n[17]=s,n[18]=v,n[19]=b,n[20]=y,n[21]=x):x=n[21],x},I=e=>{let t=m(10),r,i,a;t[0]===e?(r=t[1],i=t[2],a=t[3]):({"data-slot":r,ref:a,...i}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=a);let o;t[4]===r?o=t[5]:(o=n(r,`field-help-content`),t[4]=r,t[5]=o);let s;return t[6]!==i||t[7]!==a||t[8]!==o?(s=/* @__PURE__ */ C(p.Content,{ref:a,"data-slot":o,...i}),t[6]=i,t[7]=a,t[8]=o,t[9]=s):s=t[9],s},L=e=>{let i=m(18),a,o,s,c,l,u;i[0]===e?(a=i[1],o=i[2],s=i[3],c=i[4],l=i[5],u=i[6]):({"data-slot":c,asChild:a,children:o,className:s,ref:u,...l}=e,i[0]=e,i[1]=a,i[2]=o,i[3]=s,i[4]=c,i[5]=l,i[6]=u);let d=a?r:`span`,f;i[7]===c?f=i[8]:(f=n(c,`field-optional`),i[7]=c,i[8]=f);let p;i[9]===s?p=i[10]:(p=t(`text-muted text-sm font-normal font-sans`,s),i[9]=s,i[10]=p);let h=o??`(Optional)`,g;return i[11]!==d||i[12]!==l||i[13]!==u||i[14]!==f||i[15]!==p||i[16]!==h?(g=/* @__PURE__ */ C(d,{ref:u,"data-slot":f,className:p,...l,children:h}),i[11]=d,i[12]=l,i[13]=u,i[14]=f,i[15]=p,i[16]=h,i[17]=g):g=i[17],g},R=e=>{let i=m(16),a,o,s,c,l;i[0]===e?(a=i[1],o=i[2],s=i[3],c=i[4],l=i[5]):({"data-slot":s,asChild:a,className:o,ref:l,...c}=e,i[0]=e,i[1]=a,i[2]=o,i[3]=s,i[4]=c,i[5]=l);let u=a?r:`div`,d;i[6]===s?d=i[7]:(d=n(s,`field-group`),i[6]=s,i[7]=d);let f;i[8]===o?f=i[9]:(f=t(`flex w-full flex-col gap-4`,o),i[8]=o,i[9]=f);let p;return i[10]!==u||i[11]!==c||i[12]!==l||i[13]!==d||i[14]!==f?(p=/* @__PURE__ */ C(u,{ref:l,"data-slot":d,className:f,...c}),i[10]=u,i[11]=c,i[12]=l,i[13]=d,i[14]=f,i[15]=p):p=i[15],p},z=e=>{let i=m(37),o,s,u,d,f,p,h,g,_;i[0]===e?(o=i[1],s=i[2],u=i[3],d=i[4],f=i[5],p=i[6],h=i[7],g=i[8],_=i[9]):({"data-slot":d,asChild:o,children:s,className:u,id:f,name:p,ref:g,validation:_,...h}=e,i[0]=e,i[1]=o,i[2]=s,i[3]=u,i[4]=d,i[5]=f,i[6]=p,i[7]=h,i[8]=g,i[9]=_);let v=o?r:`div`,y=b(),S=f??y,w=b(),T=b(),[E,D]=x(!1),O=_??(E?`error`:void 0),k;i[10]===O?k=i[11]:(k=a(O),i[10]=O,i[11]=k);let A=k,j;i[12]===Symbol.for(`react.memo_cache_sentinel`)?(j=()=>(D(!0),()=>{D(!1)}),i[12]=j):j=i[12];let M=j,N;i[13]!==S||i[14]!==w||i[15]!==T||i[16]!==p||i[17]!==A?(N={controlId:S,descriptionId:w,errorId:T,name:p,registerError:M,validation:A},i[13]=S,i[14]=w,i[15]=T,i[16]=p,i[17]=A,i[18]=N):N=i[18];let P=N,F;i[19]===d?F=i[20]:(F=n(d,`field-item`),i[19]=d,i[20]=F);let I;i[21]===u?I=i[22]:(I=t(`flex w-full flex-col gap-1.5`,u),i[21]=u,i[22]=I);let L;i[23]!==v||i[24]!==s||i[25]!==h||i[26]!==g||i[27]!==F||i[28]!==I||i[29]!==A?(L=/* @__PURE__ */ C(v,{ref:g,"data-slot":F,"data-validation":A,className:I,...h,children:s}),i[23]=v,i[24]=s,i[25]=h,i[26]=g,i[27]=F,i[28]=I,i[29]=A,i[30]=L):L=i[30];let R;i[31]!==L||i[32]!==A?(R=/* @__PURE__ */ C(c,{validation:A,children:L}),i[31]=L,i[32]=A,i[33]=R):R=i[33];let z;return i[34]!==P||i[35]!==R?(z=/* @__PURE__ */ C(l.Provider,{value:P,children:R}),i[34]=P,i[35]=R,i[36]=z):z=i[36],z},B=e=>{let t=m(30),n,i,a;t[0]===e?(n=t[1],i=t[2],a=t[3]):({children:n,ref:a,...i}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=a);let o=y(l),s,f,p,h,g,b,x,w,T;if(t[4]!==n||t[5]!==o||t[6]!==i||t[7]!==a){T=Symbol.for(`react.early_return_sentinel`);bb0:{let e=u({context:o});if(typeof n==`function`){T=/* @__PURE__ */ C(c,{validation:e.validation,children:/* @__PURE__ */ C(d.Provider,{value:o?e.ariaProps:null,children:n(e.ariaProps)})});break bb0}S(v(n),`Field.Control expects a single React element child (or a render-prop function). Got a non-element value (string, array, fragment, null, or undefined). Wrap the control in a single element, or use the function child form: <Field.Control>{(props) => <YourControl {...props} />}</Field.Control>.`),p=c,w=e.validation,f=d.Provider,x=o?e.ariaProps:null,s=r,h=a,g=i,b=_(n,e.ariaProps)}t[4]=n,t[5]=o,t[6]=i,t[7]=a,t[8]=s,t[9]=f,t[10]=p,t[11]=h,t[12]=g,t[13]=b,t[14]=x,t[15]=w,t[16]=T}else s=t[8],f=t[9],p=t[10],h=t[11],g=t[12],b=t[13],x=t[14],w=t[15],T=t[16];if(T!==Symbol.for(`react.early_return_sentinel`))return T;let E;t[17]!==s||t[18]!==h||t[19]!==g||t[20]!==b?(E=/* @__PURE__ */ C(s,{ref:h,...g,children:b}),t[17]=s,t[18]=h,t[19]=g,t[20]=b,t[21]=E):E=t[21];let D;t[22]!==f||t[23]!==x||t[24]!==E?(D=/* @__PURE__ */ C(f,{value:x,children:E}),t[22]=f,t[23]=x,t[24]=E,t[25]=D):D=t[25];let O;return t[26]!==p||t[27]!==w||t[28]!==D?(O=/* @__PURE__ */ C(p,{validation:w,children:D}),t[26]=p,t[27]=w,t[28]=D,t[29]=O):O=t[29],O},V=e=>{let i=m(17),a,o,s,c,u;i[0]===e?(a=i[1],o=i[2],s=i[3],c=i[4],u=i[5]):({"data-slot":s,asChild:a,className:o,ref:u,...c}=e,i[0]=e,i[1]=a,i[2]=o,i[3]=s,i[4]=c,i[5]=u);let d=a?r:`p`,f=y(l),p;i[6]===s?p=i[7]:(p=n(s,`field-description`),i[6]=s,i[7]=p);let h=f?.descriptionId,g;i[8]===o?g=i[9]:(g=t(`text-body text-sm leading-4`,`[:where([data-slot=field-error-list]+&)]:-mt-1.5`,o),i[8]=o,i[9]=g);let _;return i[10]!==d||i[11]!==c||i[12]!==u||i[13]!==p||i[14]!==h||i[15]!==g?(_=/* @__PURE__ */ C(d,{ref:u,"data-slot":p,id:h,className:g,...c}),i[10]=d,i[11]=c,i[12]=u,i[13]=p,i[14]=h,i[15]=g,i[16]=_):_=i[16],_},H=e=>{let r=m(16),i,a,o,s,c;if(r[0]===e?(i=r[1],a=r[2],o=r[3],s=r[4],c=r[5]):({"data-slot":o,children:i,className:a,ref:c,...s}=e,r[0]=e,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=c),!E(i))return null;let l;r[6]===o?l=r[7]:(l=n(o,`field-error`),r[6]=o,r[7]=l);let u;r[8]===a?u=r[9]:(u=t(`text-danger-600 text-sm leading-4`,a),r[8]=a,r[9]=u);let d;return r[10]!==i||r[11]!==s||r[12]!==c||r[13]!==l||r[14]!==u?(d=/* @__PURE__ */ C(`li`,{ref:c,"data-slot":l,className:u,...s,children:i}),r[10]=i,r[11]=s,r[12]=c,r[13]=l,r[14]=u,r[15]=d):d=r[15],d},U=e=>{let t=m(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({messages:n,ref:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=T(n).map(K),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==i||t[8]!==a?(o=/* @__PURE__ */ C(W,{ref:i,...r,children:a}),t[6]=r,t[7]=i,t[8]=a,t[9]=o):o=t[9],o},W=i=>{let a=m(25),o,s,c,u,d,f;a[0]===i?(o=a[1],s=a[2],c=a[3],u=a[4],d=a[5],f=a[6]):({"data-slot":u,asChild:o,children:s,className:c,ref:f,...d}=i,a[0]=i,a[1]=o,a[2]=s,a[3]=c,a[4]=u,a[5]=d,a[6]=f);let p;a[7]===s?p=a[8]:(p=D({children:s,errorItemType:H}),a[7]=s,a[8]=p);let h=p,g=y(l),_=g?.registerError,v,b;if(a[9]!==h||a[10]!==_?(v=()=>{if(h&&_!=null)return _()},b=[h,_],a[9]=h,a[10]=_,a[11]=v,a[12]=b):(v=a[11],b=a[12]),e(v,b),!h)return null;let x=o?r:`ul`,S;a[13]===u?S=a[14]:(S=n(u,`field-error-list`),a[13]=u,a[14]=S);let w=g?.errorId,T;a[15]===c?T=a[16]:(T=t(`m-0 flex w-full flex-col list-none p-0`,c),a[15]=c,a[16]=T);let E;return a[17]!==x||a[18]!==s||a[19]!==d||a[20]!==f||a[21]!==S||a[22]!==w||a[23]!==T?(E=/* @__PURE__ */ C(x,{ref:f,"data-slot":S,id:w,role:`list`,className:T,...d,children:s}),a[17]=x,a[18]=s,a[19]=d,a[20]=f,a[21]=S,a[22]=w,a[23]=T,a[24]=E):E=a[24],E},G={Item:z,Control:B,Group:R,Set:O,Legend:k,Label:A,LabelText:j,LabelRow:M,Help:N,HelpTrigger:F,HelpContent:I,Optional:L,Description:V,Errors:U,ErrorList:W,ErrorItem:H};function K(e){return/* @__PURE__ */ C(H,{children:e},e)}const q=e=>T(e?.map(e=>typeof e==`string`||!e?e:e.message));export{G as Field,o as isAriaInvalid,s as parseValidation,a as resolveValidation,q as toErrorMessages};
package/dist/flag.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
1
+ import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
2
2
  import { ComponentProps } from "react";
3
- //#region src/components/flag/country-code.d.ts
4
3
  /** All valid values for a flag
5
4
  * @see https://www.flagpack.xyz/docs/flag-index
6
5
  */
@@ -18,8 +17,6 @@ type CountryCode = (typeof countryCodes)[number];
18
17
  * ```
19
18
  */
20
19
  declare function isCountryCode(value: unknown): value is CountryCode;
21
- //#endregion
22
- //#region src/components/flag/flag.d.ts
23
20
  declare const sizes: readonly ["s", "m", "l"];
24
21
  type Size = (typeof sizes)[number];
25
22
  type Props = Omit<ComponentProps<"div">, "children"> & {
@@ -84,5 +81,4 @@ type Props = Omit<ComponentProps<"div">, "children"> & {
84
81
  * ```
85
82
  */
86
83
  declare function Flag({ "data-slot": dataSlot, className, code, size, loading, ...props }: Props): import("react").JSX.Element;
87
- //#endregion
88
84
  export { type CountryCode, Flag, type Props as FlagProps, countryCodes, isCountryCode };
package/dist/hooks.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- import { n as MarginType, o as useComposedRefs, s as copyToClipboard } from "./in-view-Ch5vJtWo.js";
1
+ import { n as MarginType, o as useComposedRefs, s as copyToClipboard } from "./in-view-B3nMAzfE.js";
2
2
  import { RefObject, useLayoutEffect } from "react";
3
- //#region src/hooks/use-breakpoint.d.ts
4
3
  /**
5
4
  * Tailwind CSS breakpoints in descending order (largest → smallest).
6
5
  *
@@ -102,8 +101,6 @@ declare function useBreakpoint(): Breakpoint;
102
101
  * const isBelowMd = useIsBelowBreakpoint("md");
103
102
  */
104
103
  declare function useIsBelowBreakpoint(breakpoint: TailwindBreakpoint): boolean;
105
- //#endregion
106
- //#region src/hooks/use-callback-ref.d.ts
107
104
  /**
108
105
  * Returns a memoized callback that always invokes the latest version of
109
106
  * `callback`, while preserving a stable function identity across renders.
@@ -133,8 +130,6 @@ declare function useIsBelowBreakpoint(breakpoint: TailwindBreakpoint): boolean;
133
130
  * return <MemoizedList onSelect={onSelect} />;
134
131
  */
135
132
  declare function useCallbackRef<T extends (...args: never[]) => unknown>(callback: T | undefined): T;
136
- //#endregion
137
- //#region src/hooks/use-copy-to-clipboard.d.ts
138
133
  /**
139
134
  * React hook that returns a stable async function for copying a string to
140
135
  * the system clipboard.
@@ -166,8 +161,6 @@ declare function useCallbackRef<T extends (...args: never[]) => unknown>(callbac
166
161
  * return <button onClick={handleCopy}>Copy token</button>;
167
162
  */
168
163
  declare function useCopyToClipboard(): typeof copyToClipboard;
169
- //#endregion
170
- //#region src/hooks/use-debounce.d.ts
171
164
  /**
172
165
  * Options for {@link useDebounce}.
173
166
  */
@@ -203,8 +196,6 @@ type Options$1 = {
203
196
  * ```
204
197
  */
205
198
  declare function useDebounce<T>(value: T, options: Options$1): T;
206
- //#endregion
207
- //#region src/hooks/use-debounced-callback.d.ts
208
199
  /**
209
200
  * Options for {@link useDebouncedCallback}.
210
201
  */
@@ -255,8 +246,6 @@ type Options = {
255
246
  * );
256
247
  */
257
248
  declare function useDebouncedCallback<T extends (...args: unknown[]) => unknown>(callbackFn: T, options: Options): (...args: Parameters<T>) => void;
258
- //#endregion
259
- //#region src/hooks/use-focus-trap.d.ts
260
249
  /**
261
250
  * The options for {@link useFocusTrap}.
262
251
  *
@@ -315,8 +304,6 @@ type UseFocusTrapOptions = {
315
304
  * ```
316
305
  */
317
306
  declare function useFocusTrap(ref: RefObject<HTMLElement | null>, { active }?: UseFocusTrapOptions): void;
318
- //#endregion
319
- //#region src/hooks/use-inert-siblings.d.ts
320
307
  /**
321
308
  * The options for {@link useInertSiblings}.
322
309
  *
@@ -370,8 +357,6 @@ type UseInertSiblingsOptions = {
370
357
  * ```
371
358
  */
372
359
  declare function useInertSiblings(ref: RefObject<HTMLElement | null>, { active }?: UseInertSiblingsOptions): void;
373
- //#endregion
374
- //#region src/hooks/use-is-hydrated.d.ts
375
360
  /**
376
361
  * Returns `false` during server rendering and the initial hydration render,
377
362
  * then `true` on the client — without hydration mismatches, because React
@@ -397,8 +382,6 @@ declare function useInertSiblings(ref: RefObject<HTMLElement | null>, { active }
397
382
  * ```
398
383
  */
399
384
  declare function useIsHydrated(): boolean;
400
- //#endregion
401
- //#region src/hooks/use-is-hydrated-after-paint.d.ts
402
385
  /**
403
386
  * Returns `false` on the server, in the hydration render, and in the mount
404
387
  * commit, then `true` from the next animation frame.
@@ -428,8 +411,6 @@ declare function useIsHydrated(): boolean;
428
411
  * ```
429
412
  */
430
413
  declare function useIsHydratedAfterPaint(): boolean;
431
- //#endregion
432
- //#region src/hooks/use-isomorphic-layout-effect.d.ts
433
414
  /**
434
415
  * A drop-in replacement for `useLayoutEffect` that does not warn during
435
416
  * server-side rendering.
@@ -463,8 +444,6 @@ declare function useIsHydratedAfterPaint(): boolean;
463
444
  * return <div ref={ref}>Width: {width}</div>;
464
445
  */
465
446
  export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
466
- //#endregion
467
- //#region src/hooks/use-local-storage.d.ts
468
447
  /**
469
448
  * SSR-safe `useSyncExternalStore`-backed localStorage string state.
470
449
  *
@@ -503,8 +482,6 @@ export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
503
482
  * ```
504
483
  */
505
484
  declare function useLocalStorage(key: string, defaultValue: string): readonly [value: string, setValue: (next: string) => void];
506
- //#endregion
507
- //#region src/hooks/use-matches-media-query.d.ts
508
485
  /**
509
486
  * React hook that subscribes to a CSS media query and returns whether it
510
487
  * currently matches, re-rendering whenever the result changes.
@@ -534,8 +511,6 @@ declare function useLocalStorage(key: string, defaultValue: string): readonly [v
534
511
  * return isPortrait ? <PortraitLayout /> : <LandscapeLayout />;
535
512
  */
536
513
  export declare function useMatchesMediaQuery(query: string): boolean;
537
- //#endregion
538
- //#region src/hooks/use-session-storage.d.ts
539
514
  /**
540
515
  * SSR-safe `useSyncExternalStore`-backed sessionStorage string state. The
541
516
  * per-tab sibling of {@link useLocalStorage}, with the same contract:
@@ -570,8 +545,6 @@ export declare function useMatchesMediaQuery(query: string): boolean;
570
545
  * ```
571
546
  */
572
547
  declare function useSessionStorage(key: string, defaultValue: string): readonly [value: string, setValue: (next: string) => void];
573
- //#endregion
574
- //#region src/hooks/use-prefers-reduced-motion.d.ts
575
548
  /**
576
549
  * Imperatively reads the current `prefers-reduced-motion` preference once at
577
550
  * the time of the call.
@@ -628,8 +601,6 @@ export declare function getPrefersReducedMotion(): boolean;
628
601
  * return <Carousel autoplay={!prefersReducedMotion} />;
629
602
  */
630
603
  export declare function usePrefersReducedMotion(): boolean;
631
- //#endregion
632
- //#region src/hooks/use-scroll-behavior.d.ts
633
604
  /**
634
605
  * `scroll-behavior` values:
635
606
  *
@@ -677,8 +648,6 @@ type ScrollBehavior = "auto" | "smooth";
677
648
  * @see CSS `scroll-behavior` property (values: `"auto"`, `"smooth"`).
678
649
  */
679
650
  export declare function useScrollBehavior(): ScrollBehavior;
680
- //#endregion
681
- //#region src/hooks/use-swipe-to-dismiss.d.ts
682
651
  /**
683
652
  * The direction a swipe travels to dismiss the target: the edge it slides
684
653
  * off. A panel on the right edge of the page dismisses to the `"right"`.
@@ -812,8 +781,6 @@ type UseSwipeToDismissOptions = {
812
781
  * ```
813
782
  */
814
783
  declare function useSwipeToDismiss(handle: RefObject<HTMLElement | null>, options: UseSwipeToDismissOptions): void;
815
- //#endregion
816
- //#region src/hooks/use-in-view.d.ts
817
784
  /**
818
785
  * Options for the `useInView` hook.
819
786
  */
@@ -881,8 +848,6 @@ type UseInViewOptions = {
881
848
  * const isInView = useInView(ref, { amount: 0.5 });
882
849
  */
883
850
  declare function useInView(ref: RefObject<Element | null>, { root, margin, amount, once, initial }?: UseInViewOptions): boolean;
884
- //#endregion
885
- //#region src/hooks/use-undo-redo.d.ts
886
851
  type UseUndoRedoReturn<T> = {
887
852
  /** Whether there are actions to undo. */
888
853
  canUndo: boolean;
@@ -964,5 +929,4 @@ type UseUndoRedoReturn<T> = {
964
929
  * );
965
930
  */
966
931
  declare function useUndoRedo<T extends NonNullable<unknown>>(): UseUndoRedoReturn<T>;
967
- //#endregion
968
932
  export { type Breakpoint, type SwipeDirection, type SwipeProperty, type TailwindBreakpoint, type UseFocusTrapOptions, type UseInViewOptions, type UseInertSiblingsOptions, type UseSwipeToDismissOptions, type UseUndoRedoReturn, breakpoints, useBreakpoint, useCallbackRef, useComposedRefs, useCopyToClipboard, useDebounce, useDebouncedCallback, useFocusTrap, useInView, useInertSiblings, useIsBelowBreakpoint, useIsHydrated, useIsHydratedAfterPaint, useLocalStorage, useSessionStorage, useSwipeToDismiss, useUndoRedo };
@@ -1,7 +1,6 @@
1
- import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
1
+ import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
2
2
  import { ComponentProps } from "react";
3
3
  import { Arrow, Content, Portal, Root, Trigger } from "@radix-ui/react-hover-card";
4
- //#region src/components/hover-card/hover-card.d.ts
5
4
  /**
6
5
  * A floating card that appears when a user hovers over a trigger element.
7
6
  * This is the root, stateful component that manages the open/closed state of the hover card.
@@ -316,5 +315,4 @@ declare const HoverCard: {
316
315
  */
317
316
  readonly Trigger: typeof Trigger$1;
318
317
  };
319
- //#endregion
320
318
  export { HoverCard };
@@ -1 +1 @@
1
- import{t as e}from"./cx-CK7o_rVv.js";import{t}from"./data-slot-EM6s2WEU.js";import{n,r}from"./layer-container-DLf-6eBz.js";import{c as i}from"react/compiler-runtime";import{jsx as a,jsxs as o}from"react/jsx-runtime";import{Arrow as s,Content as c,Portal as l,Root as u,Trigger as d}from"@radix-ui/react-hover-card";const f=e=>{let t=i(8),n,r,o;t[0]===e?(n=t[1],r=t[2],o=t[3]):({closeDelay:r,openDelay:o,...n}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o);let s=r===void 0?300:r,c=o===void 0?100:o,l;return t[4]!==s||t[5]!==c||t[6]!==n?(l=/* @__PURE__ */ a(u,{closeDelay:s,openDelay:c,...n}),t[4]=s,t[5]=c,t[6]=n,t[7]=l):l=t[7],l},p=e=>{let n=i(8),r,o;n[0]===e?(r=n[1],o=n[2]):({"data-slot":r,...o}=e,n[0]=e,n[1]=r,n[2]=o);let s;n[3]===r?s=n[4]:(s=t(r,`hover-card-trigger`),n[3]=r,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=/* @__PURE__ */ a(d,{"data-slot":s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c},m=e=>{let t=i(9),o,s;t[0]===e?(o=t[1],s=t[2]):({container:o,...s}=e,t[0]=e,t[1]=o,t[2]=s);let c=r(),u=o??c,d;t[3]!==s||t[4]!==u?(d=/* @__PURE__ */ a(l,{container:u,...s}),t[3]=s,t[4]=u,t[5]=d):d=t[5];let f;return t[6]!==u||t[7]!==d?(f=/* @__PURE__ */ a(n.Provider,{value:u,children:d}),t[6]=u,t[7]=d,t[8]=f):f=t[8],f},h={Root:f,Arrow:n=>{let r=i(20),c,l,u,d,f;r[0]===n?(c=r[1],l=r[2],u=r[3],d=r[4],f=r[5]):({"data-slot":l,className:c,height:d,width:f,...u}=n,r[0]=n,r[1]=c,r[2]=l,r[3]=u,r[4]=d,r[5]=f);let p=d===void 0?7:d,m=f===void 0?14:f,h;r[6]===l?h=r[7]:(h=t(l,`hover-card-arrow`),r[6]=l,r[7]=h);let g;r[8]===c?g=r[9]:(g=e(`fill-[var(--background-color-popover)]`,`[clip-path:inset(0_-200%_-200%_-200%)]`,`[filter:drop-shadow(0_0_4px_color-mix(in_oklab,var(--shadow-color)_var(--shadow-first-opacity),transparent))]`,c),r[8]=c,r[9]=g);let _,v;r[10]===Symbol.for(`react.memo_cache_sentinel`)?(_=/* @__PURE__ */ a(`polygon`,{points:`0,0 30,0 15,10`}),v=/* @__PURE__ */ a(`polyline`,{className:`stroke-[color:var(--border-color-popover)]`,fill:`none`,points:`0,0 15,10 30,0`,strokeWidth:1.5,vectorEffect:`non-scaling-stroke`}),r[10]=_,r[11]=v):(_=r[10],v=r[11]);let y;r[12]===g?y=r[13]:(y=/* @__PURE__ */ o(`svg`,{className:g,children:[_,v]}),r[12]=g,r[13]=y);let b;return r[14]!==p||r[15]!==u||r[16]!==h||r[17]!==y||r[18]!==m?(b=/* @__PURE__ */ a(s,{"aria-hidden":`true`,asChild:!0,"data-slot":h,height:p,width:m,...u,children:y}),r[14]=p,r[15]=u,r[16]=h,r[17]=y,r[18]=m,r[19]=b):b=r[19],b},Content:n=>{let r=i(20),o,s,l,u,d,f;r[0]===n?(o=r[1],s=r[2],l=r[3],u=r[4],d=r[5],f=r[6]):({"data-slot":s,className:o,onClick:l,align:d,sideOffset:f,...u}=n,r[0]=n,r[1]=o,r[2]=s,r[3]=l,r[4]=u,r[5]=d,r[6]=f);let p=d===void 0?`center`:d,h=f===void 0?4:f,g;r[7]===s?g=r[8]:(g=t(s,`hover-card-content`),r[7]=s,r[8]=g);let _;r[9]===o?_=r[10]:(_=e(`relative`,`bg-popover border-popover z-50 w-64 rounded-md border p-4 shadow-md outline-hidden`,`data-state-open:animate-in data-state-closed:animate-out data-state-closed:fade-out-0 data-state-open:fade-in-0 data-state-closed:zoom-out-95 data-state-open:zoom-in-95 data-side-bottom:slide-in-from-top-2 data-side-left:slide-in-from-right-2 data-side-right:slide-in-from-left-2 data-side-top:slide-in-from-bottom-2`,o),r[9]=o,r[10]=_);let v;r[11]===l?v=r[12]:(v=e=>{e.stopPropagation(),l?.(e)},r[11]=l,r[12]=v);let y;return r[13]!==p||r[14]!==u||r[15]!==h||r[16]!==g||r[17]!==_||r[18]!==v?(y=/* @__PURE__ */ a(m,{children:/* @__PURE__ */ a(c,{"data-slot":g,align:p,sideOffset:h,className:_,onClick:v,...u})}),r[13]=p,r[14]=u,r[15]=h,r[16]=g,r[17]=_,r[18]=v,r[19]=y):y=r[19],y},Portal:m,Trigger:p};export{h as HoverCard};
1
+ import{t as e}from"./cx-CK7o_rVv.js";import{t}from"./data-slot-EM6s2WEU.js";import{n,r}from"./layer-container-DLf-6eBz.js";import{c as i}from"react/compiler-runtime";import{jsx as a,jsxs as o}from"react/jsx-runtime";import{Arrow as s,Content as c,Portal as l,Root as u,Trigger as d}from"@radix-ui/react-hover-card";const f=e=>{let t=i(8),n,r,o;t[0]===e?(n=t[1],r=t[2],o=t[3]):({closeDelay:r,openDelay:o,...n}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o);let s=r===void 0?300:r,c=o===void 0?100:o,l;return t[4]!==s||t[5]!==c||t[6]!==n?(l=/* @__PURE__ */ a(u,{closeDelay:s,openDelay:c,...n}),t[4]=s,t[5]=c,t[6]=n,t[7]=l):l=t[7],l},p=e=>{let n=i(8),r,o;n[0]===e?(r=n[1],o=n[2]):({"data-slot":r,...o}=e,n[0]=e,n[1]=r,n[2]=o);let s;n[3]===r?s=n[4]:(s=t(r,`hover-card-trigger`),n[3]=r,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=/* @__PURE__ */ a(d,{"data-slot":s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c},m=e=>{let t=i(9),o,s;t[0]===e?(o=t[1],s=t[2]):({container:o,...s}=e,t[0]=e,t[1]=o,t[2]=s);let c=r(),u=o??c,d;t[3]!==s||t[4]!==u?(d=/* @__PURE__ */ a(l,{container:u,...s}),t[3]=s,t[4]=u,t[5]=d):d=t[5];let f;return t[6]!==u||t[7]!==d?(f=/* @__PURE__ */ a(n.Provider,{value:u,children:d}),t[6]=u,t[7]=d,t[8]=f):f=t[8],f},h={Root:f,Arrow:n=>{let r=i(20),c,l,u,d,f;r[0]===n?(c=r[1],l=r[2],u=r[3],d=r[4],f=r[5]):({"data-slot":l,className:c,height:d,width:f,...u}=n,r[0]=n,r[1]=c,r[2]=l,r[3]=u,r[4]=d,r[5]=f);let p=d===void 0?7:d,m=f===void 0?14:f,h;r[6]===l?h=r[7]:(h=t(l,`hover-card-arrow`),r[6]=l,r[7]=h);let g;r[8]===c?g=r[9]:(g=e(`fill-[var(--background-color-popover)]`,`[clip-path:inset(0_-200%_-200%_-200%)]`,`[filter:drop-shadow(0_0_4px_color-mix(in_oklab,var(--shadow-color)_var(--shadow-first-opacity),transparent))]`,c),r[8]=c,r[9]=g);let _,v;r[10]===Symbol.for(`react.memo_cache_sentinel`)?(_=/* @__PURE__ */ a(`polygon`,{points:`0,0 30,0 15,10`}),v=/* @__PURE__ */ a(`polyline`,{className:`stroke-[color:var(--border-color-popover)]`,fill:`none`,points:`0,0 15,10 30,0`,strokeWidth:1.5,vectorEffect:`non-scaling-stroke`}),r[10]=_,r[11]=v):(_=r[10],v=r[11]);let y;r[12]===g?y=r[13]:(y=/* @__PURE__ */ o(`svg`,{className:g,children:[_,v]}),r[12]=g,r[13]=y);let b;return r[14]!==p||r[15]!==u||r[16]!==h||r[17]!==y||r[18]!==m?(b=/* @__PURE__ */ a(s,{"aria-hidden":`true`,asChild:!0,"data-slot":h,height:p,width:m,...u,children:y}),r[14]=p,r[15]=u,r[16]=h,r[17]=y,r[18]=m,r[19]=b):b=r[19],b},Content:n=>{let r=i(20),o,s,l,u,d,f;r[0]===n?(o=r[1],s=r[2],l=r[3],u=r[4],d=r[5],f=r[6]):({"data-slot":s,className:o,onClick:l,align:d,sideOffset:f,...u}=n,r[0]=n,r[1]=o,r[2]=s,r[3]=l,r[4]=u,r[5]=d,r[6]=f);let p=d===void 0?`center`:d,h=f===void 0?4:f,g;r[7]===s?g=r[8]:(g=t(s,`hover-card-content`),r[7]=s,r[8]=g);let _;r[9]===o?_=r[10]:(_=e(`relative`,`bg-popover border-popover z-50 w-64 rounded-md border p-4 shadow-md outline-hidden`,`data-state-open:animate-in data-state-closed:animate-out data-state-closed:fade-out-0 data-state-open:fade-in-0 data-state-closed:zoom-out-95 data-state-open:zoom-in-95 data-side-bottom:slide-in-from-top-1 data-side-left:slide-in-from-right-1 data-side-right:slide-in-from-left-1 data-side-top:slide-in-from-bottom-1 data-side-bottom:slide-out-to-top-1 data-side-left:slide-out-to-right-1 data-side-right:slide-out-to-left-1 data-side-top:slide-out-to-bottom-1 duration-200 ease-out-strong data-state-closed:duration-150 motion-reduce:animate-none!`,o),r[9]=o,r[10]=_);let v;r[11]===l?v=r[12]:(v=e=>{e.stopPropagation(),l?.(e)},r[11]=l,r[12]=v);let y;return r[13]!==p||r[14]!==u||r[15]!==h||r[16]!==g||r[17]!==_||r[18]!==v?(y=/* @__PURE__ */ a(m,{children:/* @__PURE__ */ a(c,{"data-slot":g,align:p,sideOffset:h,className:_,onClick:v,...u})}),r[13]=p,r[14]=u,r[15]=h,r[16]=g,r[17]=_,r[18]=v,r[19]=y):y=r[19],y},Portal:m,Trigger:p};export{h as HoverCard};
@@ -1,7 +1,6 @@
1
- import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
2
- import { t as SvgAttributes } from "./icon-D1RY5Tcj.js";
1
+ import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
2
+ import { t as SvgAttributes } from "./icon-CgNqu-fl.js";
3
3
  import { ReactNode } from "react";
4
- //#region src/components/icon/icon.d.ts
5
4
  type IconProps = Omit<SvgAttributes, "children"> & {
6
5
  /**
7
6
  * A single SVG icon element.
@@ -31,5 +30,4 @@ type IconProps = Omit<SvgAttributes, "children"> & {
31
30
  * ```
32
31
  */
33
32
  declare const Icon: ({ "data-slot": dataSlot, className, style, svg, ref, ...props }: IconProps) => import("react").JSX.Element;
34
- //#endregion
35
33
  export { IconProps as n, Icon as t };
@@ -1,5 +1,4 @@
1
1
  import { ComponentProps } from "react";
2
- //#region src/components/icon/types.d.ts
3
2
  /**
4
3
  * Props accepted by SVG-rendering primitives in mantle (`Icon`, `SvgOnly`, and
5
4
  * icon-bearing parts of other components). Extends the standard React `<svg>`
@@ -24,5 +23,4 @@ type SvgAttributes = ComponentProps<"svg"> & {
24
23
  */
25
24
  "data-slot"?: string;
26
25
  };
27
- //#endregion
28
26
  export { SvgAttributes as t };
@@ -1,7 +1,6 @@
1
- import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
2
- import { t as SvgAttributes } from "./icon-D1RY5Tcj.js";
1
+ import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
2
+ import { t as SvgAttributes } from "./icon-CgNqu-fl.js";
3
3
  import { ReactNode } from "react";
4
- //#region src/components/icon/svg-only.d.ts
5
4
  type SvgOnlyProps = Omit<SvgAttributes, "children"> & {
6
5
  /**
7
6
  * A single SVG icon element.
@@ -39,5 +38,4 @@ type NamedSvgProps = SvgAttributes & {
39
38
  * ```
40
39
  */
41
40
  declare const SvgOnly: ({ "data-slot": dataSlot, className, style, svg, ref, ...props }: SvgOnlyProps) => import("react").ReactElement<NamedSvgProps, string | import("react").JSXElementConstructor<any>>;
42
- //#endregion
43
41
  export { SvgOnlyProps as n, SvgOnly as t };
package/dist/icon.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as SvgAttributes } from "./icon-D1RY5Tcj.js";
2
- import { n as IconProps, t as Icon } from "./icon-ucVgZeXn.js";
3
- import { n as SvgOnlyProps, t as SvgOnly } from "./icon-r2NvfTWW.js";
1
+ import { t as SvgAttributes } from "./icon-CgNqu-fl.js";
2
+ import { n as IconProps, t as Icon } from "./icon-ByLVhdYq.js";
3
+ import { n as SvgOnlyProps, t as SvgOnly } from "./icon-DXDyhy2N.js";
4
4
  export { Icon, type IconProps, type SvgAttributes, SvgOnly, type SvgOnlyProps };
@@ -0,0 +1 @@
1
+ import{s as e}from"./theme-CBGxDNFc.js";import{c as t}from"react/compiler-runtime";import{jsx as n}from"react/jsx-runtime";import{DesktopIcon as r}from"@phosphor-icons/react/Desktop";import{MoonIcon as i}from"@phosphor-icons/react/Moon";import{SunIcon as a}from"@phosphor-icons/react/Sun";function o(r){let i=t(3),a=e(),o;return i[0]!==a||i[1]!==r?(o=/* @__PURE__ */ n(s,{theme:a,...r}),i[0]=a,i[1]=r,i[2]=o):o=i[2],o}function s(e){let o=t(9),s,c;switch(o[0]===e?(s=o[1],c=o[2]):({theme:c,...s}=e,o[0]=e,o[1]=s,o[2]=c),c){case`system`:{let e;return o[3]===s?e=o[4]:(e=/* @__PURE__ */ n(r,{...s}),o[3]=s,o[4]=e),e}case`light`:{let e;return o[5]===s?e=o[6]:(e=/* @__PURE__ */ n(a,{...s}),o[5]=s,o[6]=e),e}case`dark`:{let e;return o[7]===s?e=o[8]:(e=/* @__PURE__ */ n(i,{...s}),o[7]=s,o[8]=e),e}}}export{s as n,o as t};
package/dist/icons.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- import { t as SvgAttributes } from "./icon-D1RY5Tcj.js";
2
- import { a as AlphanumericSortingDirection, c as TimeSortingDirection, o as SortingDirection, s as SortingMode } from "./direction-BjU0bPST.js";
3
- import { i as Theme } from "./theme-6OxNhf6l.js";
1
+ import { t as SvgAttributes } from "./icon-CgNqu-fl.js";
2
+ import { a as AlphanumericSortingDirection, c as TimeSortingDirection, o as SortingDirection, s as SortingMode } from "./direction-CpRzTtZh.js";
3
+ import { i as Theme } from "./theme-w1CrMM-x.js";
4
4
  import { ComponentProps } from "react";
5
- //#region src/components/icons/sort.d.ts
6
5
  type Props = SvgAttributes & ({
7
6
  mode: Extract<SortingMode, "alphanumeric">;
8
7
  /**
@@ -33,8 +32,6 @@ type Props = SvgAttributes & ({
33
32
  * ```
34
33
  */
35
34
  declare const SortIcon: ({ mode, direction, ...props }: Props) => import("react").JSX.Element;
36
- //#endregion
37
- //#region src/components/icons/traffic-policy-file.d.ts
38
35
  /**
39
36
  * An icon representing a traffic policy file.
40
37
  *
@@ -46,14 +43,10 @@ declare const SortIcon: ({ mode, direction, ...props }: Props) => import("react"
46
43
  * ```
47
44
  */
48
45
  declare function TrafficPolicyFileIcon(props: SvgAttributes): import("react").JSX.Element;
49
- //#endregion
50
- //#region src/components/icons/theme.d.ts
51
46
  /**
52
47
  * An icon that automatically adapts to the current applied theme.
53
48
  * - `light`: SunIcon
54
49
  * - `dark`: MoonIcon
55
- * - `light-high-contrast`: SunIcon (fill)
56
- * - `dark-high-contrast`: MoonIcon (fill)
57
50
  *
58
51
  * @see https://mantle.ngrok.com/components/data-display/icons
59
52
  *
@@ -72,8 +65,6 @@ type ThemeIconProps = SvgAttributes & {
72
65
  * - `system`: DesktopIcon
73
66
  * - `light`: SunIcon
74
67
  * - `dark`: MoonIcon
75
- * - `light-high-contrast`: SunIcon (fill)
76
- * - `dark-high-contrast`: MoonIcon (fill)
77
68
  *
78
69
  * @see https://mantle.ngrok.com/components/data-display/icons
79
70
  *
@@ -83,8 +74,6 @@ type ThemeIconProps = SvgAttributes & {
83
74
  * ```
84
75
  */
85
76
  declare function ThemeIcon({ theme, ...props }: ThemeIconProps): import("react").JSX.Element;
86
- //#endregion
87
- //#region src/components/icons/types.d.ts
88
77
  /**
89
78
  * Props for an inline svg icon. The icon owns its `viewBox`, `fill`, and
90
79
  * paths, and fills with `currentColor`, so the `color` CSS property sets the
@@ -100,8 +89,6 @@ declare function ThemeIcon({ theme, ...props }: ThemeIconProps): import("react")
100
89
  * ```
101
90
  */
102
91
  type InlineIconProps = Omit<ComponentProps<"svg">, "xmlns" | "fill" | "viewBox" | "color" | "children">;
103
- //#endregion
104
- //#region src/components/icons/ngrok.d.ts
105
92
  /**
106
93
  * An inline svg icon that renders the ngrok wordmark logo. The `color` CSS property sets the fill.
107
94
  *
@@ -124,5 +111,4 @@ declare function NgrokWordmarkIcon(props: InlineIconProps): import("react").JSX.
124
111
  * ```
125
112
  */
126
113
  declare function NgrokLettermarkIcon(props: InlineIconProps): import("react").JSX.Element;
127
- //#endregion
128
114
  export { AutoThemeIcon, type InlineIconProps, NgrokLettermarkIcon, NgrokWordmarkIcon, SortIcon, ThemeIcon, TrafficPolicyFileIcon };
package/dist/icons.js CHANGED
@@ -1 +1 @@
1
- import{t as e}from"./icons-CSwTVV2m.js";import{t}from"./icons-CDLz5lpI.js";import{n,t as r}from"./icons-CW9lV9E1.js";import{c as i}from"react/compiler-runtime";import{jsx as a}from"react/jsx-runtime";function o(e){let t=i(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=/* @__PURE__ */ a(`path`,{d:`M32.272 12.011c-1.298-1.466-2.904-2.205-4.812-2.205-1.176 0-2.26.233-3.255.7a7.995 7.995 0 0 0-2.581 1.906 9.205 9.205 0 0 0-1.715 2.853 9.773 9.773 0 0 0-.628 3.546c0 1.25.194 2.39.58 3.419.362.98.918 1.877 1.635 2.636A7.543 7.543 0 0 0 24 26.584c.965.41 2.025.617 3.176.617.522 0 1.005-.041 1.445-.116.439-.075.858-.2 1.26-.37.4-.175.79-.398 1.18-.664.385-.27.792-.612 1.21-1.018v4.353h-.005v.421h-5.33l-4.005 4.64v.798h15.037v-24.98h-5.697v1.746Zm-.014 7.979a4.25 4.25 0 0 1-.786 1.215 3.555 3.555 0 0 1-2.592 1.1 3.627 3.627 0 0 1-1.464-.292 3.508 3.508 0 0 1-1.166-.808 3.93 3.93 0 0 1-1.054-2.72c0-.519.097-1.006.298-1.457a3.77 3.77 0 0 1 .804-1.181 4.114 4.114 0 0 1 1.162-.808 3.484 3.484 0 0 1 2.817-.016c.448.19.844.463 1.181.81.336.347.6.743.804 1.194.202.452.298.95.298 1.493 0 .505-.104 1.005-.302 1.47m-16.261-7.708a6.173 6.173 0 0 0-2.06-1.602 4.875 4.875 0 0 0-.57-.22 6.383 6.383 0 0 0-.923-.216H8.383L5.697 13.39v-3.082H.002v16.61h5.695V15.712h5.35l.444-.01v11.214h5.697V16.528c0-.885-.084-1.674-.25-2.366a4.655 4.655 0 0 0-.941-1.877zm38.367-2.018h-6.213l-2.47 2.863v-2.864h-5.7v16.61h5.71l.004-11.117h4.144l4.526-5.26zm31.051 7.672 7.79-7.392v-.281H85.7l-5.975 5.991V0h-5.696v26.87h5.696v-6.766l6.262 6.763h7.663v-.316l-8.233-8.617zm-16.11-5.78a9.436 9.436 0 0 0-3.085-1.842 10.953 10.953 0 0 0-3.855-.664c-1.407 0-2.705.226-3.884.678a9.611 9.611 0 0 0-3.072 1.858 8.488 8.488 0 0 0-2.016 2.788 8.281 8.281 0 0 0-.722 3.449c0 1.362.24 2.596.722 3.707a8.52 8.52 0 0 0 2.002 2.862c.85.798 1.86 1.415 3.036 1.847 1.177.432 2.455.647 3.842.647 1.406 0 2.707-.215 3.919-.647 1.204-.431 2.24-1.04 3.098-1.833a8.583 8.583 0 0 0 2.031-2.816c.493-1.09.742-2.29.742-3.611 0-1.316-.244-2.52-.722-3.612a8.424 8.424 0 0 0-2.035-2.81Zm-3.558 7.864c-.2.461-.463.869-.786 1.215a3.573 3.573 0 0 1-2.592 1.1c-.502 0-.981-.096-1.434-.291a3.44 3.44 0 0 1-1.16-.809 4.155 4.155 0 0 1-.788-1.215 3.825 3.825 0 0 1-.297-1.537c0-.517.098-1.004.297-1.456.201-.451.46-.849.787-1.194a3.579 3.579 0 0 1 2.597-1.1c.502 0 .98.096 1.43.29.448.19.839.461 1.16.81.328.345.586.752.786 1.214.2.461.297.954.297 1.471 0 .538-.096 1.04-.297 1.502`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=/* @__PURE__ */ a(`svg`,{fill:`currentColor`,height:`1em`,viewBox:`0 0 94 36`,width:`2.61em`,...e,children:n}),t[1]=e,t[2]=r),r}function s(e){let t=i(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=/* @__PURE__ */ a(`path`,{d:`M27.2 6.18a9.47 9.47 0 0 0-3.12-2.5A9.42 9.42 0 0 0 21.82 3h-6.14l-4.06 4.9V3.1H3V29h8.62V11.53h8.09l.67-.02v17.48H29V12.8c0-1.37-.13-2.6-.38-3.68a7.35 7.35 0 0 0-1.42-2.93Z`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=/* @__PURE__ */ a(`svg`,{fill:`currentColor`,height:`1em`,viewBox:`0 0 32 32`,width:`1em`,...e,children:n}),t[1]=e,t[2]=r),r}export{r as AutoThemeIcon,s as NgrokLettermarkIcon,o as NgrokWordmarkIcon,t as SortIcon,n as ThemeIcon,e as TrafficPolicyFileIcon};
1
+ import{t as e}from"./icons-CSwTVV2m.js";import{t}from"./icons-CDLz5lpI.js";import{n,t as r}from"./icons-exKDODyp.js";import{c as i}from"react/compiler-runtime";import{jsx as a}from"react/jsx-runtime";function o(e){let t=i(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=/* @__PURE__ */ a(`path`,{d:`M32.272 12.011c-1.298-1.466-2.904-2.205-4.812-2.205-1.176 0-2.26.233-3.255.7a7.995 7.995 0 0 0-2.581 1.906 9.205 9.205 0 0 0-1.715 2.853 9.773 9.773 0 0 0-.628 3.546c0 1.25.194 2.39.58 3.419.362.98.918 1.877 1.635 2.636A7.543 7.543 0 0 0 24 26.584c.965.41 2.025.617 3.176.617.522 0 1.005-.041 1.445-.116.439-.075.858-.2 1.26-.37.4-.175.79-.398 1.18-.664.385-.27.792-.612 1.21-1.018v4.353h-.005v.421h-5.33l-4.005 4.64v.798h15.037v-24.98h-5.697v1.746Zm-.014 7.979a4.25 4.25 0 0 1-.786 1.215 3.555 3.555 0 0 1-2.592 1.1 3.627 3.627 0 0 1-1.464-.292 3.508 3.508 0 0 1-1.166-.808 3.93 3.93 0 0 1-1.054-2.72c0-.519.097-1.006.298-1.457a3.77 3.77 0 0 1 .804-1.181 4.114 4.114 0 0 1 1.162-.808 3.484 3.484 0 0 1 2.817-.016c.448.19.844.463 1.181.81.336.347.6.743.804 1.194.202.452.298.95.298 1.493 0 .505-.104 1.005-.302 1.47m-16.261-7.708a6.173 6.173 0 0 0-2.06-1.602 4.875 4.875 0 0 0-.57-.22 6.383 6.383 0 0 0-.923-.216H8.383L5.697 13.39v-3.082H.002v16.61h5.695V15.712h5.35l.444-.01v11.214h5.697V16.528c0-.885-.084-1.674-.25-2.366a4.655 4.655 0 0 0-.941-1.877zm38.367-2.018h-6.213l-2.47 2.863v-2.864h-5.7v16.61h5.71l.004-11.117h4.144l4.526-5.26zm31.051 7.672 7.79-7.392v-.281H85.7l-5.975 5.991V0h-5.696v26.87h5.696v-6.766l6.262 6.763h7.663v-.316l-8.233-8.617zm-16.11-5.78a9.436 9.436 0 0 0-3.085-1.842 10.953 10.953 0 0 0-3.855-.664c-1.407 0-2.705.226-3.884.678a9.611 9.611 0 0 0-3.072 1.858 8.488 8.488 0 0 0-2.016 2.788 8.281 8.281 0 0 0-.722 3.449c0 1.362.24 2.596.722 3.707a8.52 8.52 0 0 0 2.002 2.862c.85.798 1.86 1.415 3.036 1.847 1.177.432 2.455.647 3.842.647 1.406 0 2.707-.215 3.919-.647 1.204-.431 2.24-1.04 3.098-1.833a8.583 8.583 0 0 0 2.031-2.816c.493-1.09.742-2.29.742-3.611 0-1.316-.244-2.52-.722-3.612a8.424 8.424 0 0 0-2.035-2.81Zm-3.558 7.864c-.2.461-.463.869-.786 1.215a3.573 3.573 0 0 1-2.592 1.1c-.502 0-.981-.096-1.434-.291a3.44 3.44 0 0 1-1.16-.809 4.155 4.155 0 0 1-.788-1.215 3.825 3.825 0 0 1-.297-1.537c0-.517.098-1.004.297-1.456.201-.451.46-.849.787-1.194a3.579 3.579 0 0 1 2.597-1.1c.502 0 .98.096 1.43.29.448.19.839.461 1.16.81.328.345.586.752.786 1.214.2.461.297.954.297 1.471 0 .538-.096 1.04-.297 1.502`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=/* @__PURE__ */ a(`svg`,{fill:`currentColor`,height:`1em`,viewBox:`0 0 94 36`,width:`2.61em`,...e,children:n}),t[1]=e,t[2]=r),r}function s(e){let t=i(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=/* @__PURE__ */ a(`path`,{d:`M27.2 6.18a9.47 9.47 0 0 0-3.12-2.5A9.42 9.42 0 0 0 21.82 3h-6.14l-4.06 4.9V3.1H3V29h8.62V11.53h8.09l.67-.02v17.48H29V12.8c0-1.37-.13-2.6-.38-3.68a7.35 7.35 0 0 0-1.42-2.93Z`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=/* @__PURE__ */ a(`svg`,{fill:`currentColor`,height:`1em`,viewBox:`0 0 32 32`,width:`1em`,...e,children:n}),t[1]=e,t[2]=r),r}export{r as AutoThemeIcon,s as NgrokLettermarkIcon,o as NgrokWordmarkIcon,t as SortIcon,n as ThemeIcon,e as TrafficPolicyFileIcon};
@@ -1,5 +1,4 @@
1
1
  import { Ref, RefCallback } from "react";
2
- //#region src/utils/copy-to-clipboard.d.ts
3
2
  /**
4
3
  * Copy the given string to the clipboard. Uses the Clipboard API when
5
4
  * available and falls back to an `execCommand("copy")` polyfill for older
@@ -9,8 +8,6 @@ import { Ref, RefCallback } from "react";
9
8
  * API and the polyfill fail — `await` the call to observe success.
10
9
  */
11
10
  declare function copyToClipboard(value: string): Promise<void>;
12
- //#endregion
13
- //#region src/utils/compose-refs/compose-refs.d.ts
14
11
  type PossibleRef<T> = Ref<T> | undefined;
15
12
  /**
16
13
  * A utility that composes multiple refs into a single callback ref. Accepts
@@ -51,8 +48,6 @@ declare function composeRefs<T>(...refs: PossibleRef<T>[]): RefCallback<T>;
51
48
  * }
52
49
  */
53
50
  declare function useComposedRefs<T>(firstRef: PossibleRef<T>, secondRef: PossibleRef<T>, thirdRef?: PossibleRef<T>): RefCallback<T>;
54
- //#endregion
55
- //#region src/utils/in-view.d.ts
56
51
  type MarginValue = `${number}${"px" | "%"}`;
57
52
  /**
58
53
  * Margin string used to expand or contract the intersection root's bounding box.
@@ -115,5 +110,4 @@ type ViewChangeHandler = (entry: IntersectionObserverEntry) => void;
115
110
  * stop();
116
111
  */
117
112
  declare function inView(element: Element, onStart: (element: Element, entry: IntersectionObserverEntry) => void | ViewChangeHandler, { root, margin: rootMargin, amount }?: InViewOptions): VoidFunction;
118
- //#endregion
119
113
  export { composeRefs as a, inView as i, MarginType as n, useComposedRefs as o, ViewChangeHandler as r, copyToClipboard as s, InViewOptions as t };
@@ -1,4 +1,3 @@
1
- //#region src/utils/color/colors.d.ts
2
1
  /**
3
2
  * Color palette named colors
4
3
  */
@@ -35,5 +34,4 @@ type Color = (typeof colors)[number];
35
34
  * Check if a value is a named mantle color
36
35
  */
37
36
  declare const isColor: (value: unknown) => value is Color;
38
- //#endregion
39
37
  export { functionalColors as a, isNamedColor as c, colors as i, namedColors as l, FunctionalColor as n, isColor as o, NamedColor as r, isFunctionalColor as s, Color as t };
@@ -1,30 +1,23 @@
1
- import "./as-child-D23mGo4f.js";
2
- import "./with-style-props-Dq5Vntqy.js";
1
+ import "./as-child-DFxX3U2i.js";
2
+ import "./with-style-props-CuT30s0W.js";
3
3
  import { CSSProperties } from "react";
4
4
  import { VariantProps } from "class-variance-authority";
5
- //#region src/types/booleanish.d.ts
6
5
  type Booleanish = boolean | "true" | "false";
7
6
  /**
8
7
  * Parse/coerce a booleanish value (boolean | "true" | "false") into a boolean.
9
8
  * @default false if the value is not a boolean or "true"
10
9
  */
11
10
  declare function parseBooleanish(value: Booleanish | (string & {}) | undefined | null): boolean;
12
- //#endregion
13
- //#region src/types/deep-non-nullable.d.ts
14
11
  /**
15
12
  * Makes all properties in an object non-nullable, recursively.
16
13
  */
17
14
  type DeepNonNullable<Type> = { [Property in keyof Type]-?: Type[Property] & {}; };
18
- //#endregion
19
- //#region src/types/variant-props.d.ts
20
15
  /**
21
16
  * Variant props that are optional and cannot be `null`.
22
17
  *
23
18
  * Using VariantProps directly from CVA produces that can be `null`, which is not what we want.
24
19
  */
25
20
  type VariantProps$1<Variants extends (props: Record<PropertyKey, unknown> | undefined) => string> = Partial<DeepNonNullable<VariantProps<Variants>>>;
26
- //#endregion
27
- //#region src/types/css-properties.d.ts
28
21
  /**
29
22
  * A CSS custom property (CSS variable) name.
30
23
  *
@@ -58,5 +51,4 @@ type CssProperties = CSSProperties & Record<CssVariableName, string | number>;
58
51
  * style={$cssProperties({ display: "block", "--gap": 8 })}
59
52
  */
60
53
  declare const $cssProperties: <T extends CssProperties = CssProperties>(input: T) => CSSProperties;
61
- //#endregion
62
54
  export { Booleanish as a, DeepNonNullable as i, CssProperties as n, parseBooleanish as o, VariantProps$1 as r, $cssProperties as t };