@ngrok/mantle 0.87.0 → 0.89.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 (234) hide show
  1. package/dist/accordion.d.ts +10 -9
  2. package/dist/accordion.js +1 -1
  3. package/dist/agent.json +2 -1
  4. package/dist/{alert-DCVfviBx.d.ts → alert-BzPDUaU7.d.ts} +16 -15
  5. package/dist/alert-CZYYlx9q.js +1 -0
  6. package/dist/alert-center.d.ts +7 -7
  7. package/dist/alert-center.js +1 -1
  8. package/dist/alert-dialog.d.ts +17 -16
  9. package/dist/alert-dialog.js +1 -1
  10. package/dist/alert-vfeV_hso.js +1 -0
  11. package/dist/alert.d.ts +1 -1
  12. package/dist/alert.js +1 -1
  13. package/dist/anchor-CgcbWEUs.js +1 -0
  14. package/dist/anchor.js +1 -1
  15. package/dist/app-layout.d.ts +1128 -45
  16. package/dist/app-layout.js +1 -1
  17. package/dist/area-chart.d.ts +41 -18
  18. package/dist/area-chart.js +1 -1
  19. package/dist/avatar.js +1 -1
  20. package/dist/badge.d.ts +3 -2
  21. package/dist/badge.js +1 -1
  22. package/dist/bar-chart.d.ts +37 -13
  23. package/dist/bar-chart.js +1 -1
  24. package/dist/breadcrumb.js +1 -1
  25. package/dist/browser-only.js +1 -1
  26. package/dist/button-69InNC_m.js +1 -0
  27. package/dist/button-BMfUxs_j.js +1 -0
  28. package/dist/{button-DO53OA70.d.ts → button-CHoYpOzx.d.ts} +5 -4
  29. package/dist/{button-B52_vczK.js → button-D8rr-1AB.js} +1 -1
  30. package/dist/{button-crUf0hbR.d.ts → button-DL7V4bzW.d.ts} +5 -4
  31. package/dist/button-b2HKEIE2.js +1 -0
  32. package/dist/{button-B5i9n7Qp.d.ts → button-mzUR1U0Y.d.ts} +5 -4
  33. package/dist/button.d.ts +3 -3
  34. package/dist/button.js +1 -1
  35. package/dist/calendar.d.ts +3 -2
  36. package/dist/calendar.js +1 -1
  37. package/dist/card.d.ts +8 -7
  38. package/dist/card.js +1 -1
  39. package/dist/centered-layout.js +1 -1
  40. package/dist/{chart-DgaWVBqi.d.ts → chart-23KQ1ZNO.d.ts} +128 -62
  41. package/dist/chart-BRkJfptA.js +2 -0
  42. package/dist/checkbox-C3N2afhB.js +1 -0
  43. package/dist/checkbox.d.ts +3 -2
  44. package/dist/checkbox.js +1 -1
  45. package/dist/{choice-PESu-9s8.d.ts → choice-BCiyqLgO.d.ts} +12 -11
  46. package/dist/choice-DQmecLfy.js +1 -0
  47. package/dist/choice.d.ts +1 -1
  48. package/dist/choice.js +1 -1
  49. package/dist/code-block-4Esx_gV-.js +12 -0
  50. package/dist/code-block.d.ts +17 -16
  51. package/dist/code-block.js +6 -6
  52. package/dist/code-block_highlight-utils.js +1 -1
  53. package/dist/code.d.ts +2 -1
  54. package/dist/code.js +1 -1
  55. package/dist/combobox.d.ts +15 -14
  56. package/dist/combobox.js +1 -1
  57. package/dist/command.d.ts +13 -13
  58. package/dist/command.js +1 -1
  59. package/dist/cx-CK7o_rVv.js +1 -0
  60. package/dist/cx.js +1 -1
  61. package/dist/data-table.d.ts +32 -31
  62. package/dist/data-table.js +1 -1
  63. package/dist/description-list.d.ts +10 -6
  64. package/dist/description-list.js +1 -1
  65. package/dist/dialog-BDzapPLR.js +1 -0
  66. package/dist/{dialog-DXpqpdJj.d.ts → dialog-DQdeqvq-.d.ts} +28 -15
  67. package/dist/dialog.d.ts +1 -1
  68. package/dist/dialog.js +1 -1
  69. package/dist/dropdown-menu-CWUzGFgf.d.ts +1 -0
  70. package/dist/{dropdown-menu-BloQKE_y.d.ts → dropdown-menu-CpRsyt_F.d.ts} +17 -17
  71. package/dist/dropdown-menu-CutWQ0bl.js +1 -0
  72. package/dist/dropdown-menu.d.ts +2 -2
  73. package/dist/dropdown-menu.js +1 -1
  74. package/dist/empty.d.ts +7 -6
  75. package/dist/empty.js +1 -1
  76. package/dist/field.d.ts +16 -15
  77. package/dist/field.js +1 -1
  78. package/dist/flag.d.ts +3 -2
  79. package/dist/flag.js +1 -1
  80. package/dist/hooks.d.ts +36 -1
  81. package/dist/hooks.js +1 -1
  82. package/dist/hover-card.d.ts +5 -4
  83. package/dist/hover-card.js +1 -1
  84. package/dist/icon-BudQMD2S.js +1 -0
  85. package/dist/icon-kK0c-POG.js +1 -0
  86. package/dist/{icon-w0HUe7tr.d.ts → icon-r2NvfTWW.d.ts} +3 -2
  87. package/dist/{icon-BmJ57Tgh.d.ts → icon-ucVgZeXn.d.ts} +3 -2
  88. package/dist/icon.d.ts +2 -2
  89. package/dist/icon.js +1 -1
  90. package/dist/icons-BMZnm4hM.js +1 -0
  91. package/dist/{icons-Bu-2boul.js → icons-CH3tD_wq.js} +1 -1
  92. package/dist/icons-CSwTVV2m.js +1 -0
  93. package/dist/icons.js +1 -1
  94. package/dist/in-view-Dxv_GrUU.js +1 -0
  95. package/dist/input-D_DjD9lT.js +1 -0
  96. package/dist/{input-DpnC3Xgj.d.ts → input-bbB1tC0h.d.ts} +3 -2
  97. package/dist/input.d.ts +5 -4
  98. package/dist/input.js +1 -1
  99. package/dist/kbd-CLHsJ99p.js +1 -0
  100. package/dist/kbd.d.ts +2 -1
  101. package/dist/kbd.js +1 -1
  102. package/dist/label-5T8i7I4X.js +1 -0
  103. package/dist/{label-Bnfe9YJ6.d.ts → label-C-KbNls8.d.ts} +3 -2
  104. package/dist/label.d.ts +1 -1
  105. package/dist/label.js +1 -1
  106. package/dist/{layer-container-R7aux3n8.js → layer-container-DLf-6eBz.js} +1 -1
  107. package/dist/layer-container.js +1 -1
  108. package/dist/line-chart.d.ts +40 -15
  109. package/dist/line-chart.js +1 -1
  110. package/dist/list-DOVZoz9t.js +1 -0
  111. package/dist/list.d.ts +3 -2
  112. package/dist/list.js +1 -1
  113. package/dist/live-region-DQ1QLv3L.js +1 -0
  114. package/dist/live-region.d.ts +3 -2
  115. package/dist/live-region.js +1 -1
  116. package/dist/llms.txt +2 -1
  117. package/dist/{main-Dv2zuT_b.js → main-CC1L9IsH.js} +1 -1
  118. package/dist/main.js +1 -1
  119. package/dist/mantle.css +12 -20
  120. package/dist/media-object.js +1 -1
  121. package/dist/multi-select.d.ts +23 -22
  122. package/dist/multi-select.js +1 -1
  123. package/dist/otp-input.d.ts +9 -8
  124. package/dist/otp-input.js +1 -1
  125. package/dist/pagination.d.ts +9 -8
  126. package/dist/pagination.js +1 -1
  127. package/dist/{popover-Cco1nw8I.d.ts → popover-Dvls7-j4.d.ts} +5 -4
  128. package/dist/popover-oQDUvcZ2.js +1 -0
  129. package/dist/popover.d.ts +1 -1
  130. package/dist/popover.js +1 -1
  131. package/dist/primitive-B-6XILB2.js +1 -0
  132. package/dist/progress.d.ts +9 -8
  133. package/dist/progress.js +1 -1
  134. package/dist/qr-code.d.ts +9 -8
  135. package/dist/qr-code.js +1 -1
  136. package/dist/radio-group.d.ts +19 -18
  137. package/dist/radio-group.js +1 -1
  138. package/dist/sandbar.d.ts +7 -7
  139. package/dist/sandbar.js +1 -1
  140. package/dist/{sandboxed-on-click-BLvvSqOP.js → sandboxed-on-click-C7pPu-2M.js} +1 -1
  141. package/dist/sandboxed-on-click.js +1 -1
  142. package/dist/scatter-plot.d.ts +39 -14
  143. package/dist/scatter-plot.js +1 -1
  144. package/dist/{select-BITJP7I5.d.ts → select-CxXb3aiC.d.ts} +3 -3
  145. package/dist/select-DcL0-duV.js +1 -0
  146. package/dist/select.d.ts +1 -1
  147. package/dist/select.js +1 -1
  148. package/dist/selectable-list.d.ts +16 -15
  149. package/dist/selectable-list.js +1 -1
  150. package/dist/separator-DvPe27fH.js +1 -0
  151. package/dist/{separator-Bo4nY_3M.d.ts → separator-HzGvuD0B.d.ts} +4 -3
  152. package/dist/separator.d.ts +1 -1
  153. package/dist/separator.js +1 -1
  154. package/dist/sheet-DND_KjmS.js +1 -0
  155. package/dist/sheet.d.ts +13 -12
  156. package/dist/sheet.js +1 -1
  157. package/dist/sidebar.d.ts +149 -95
  158. package/dist/sidebar.js +1 -1
  159. package/dist/skeleton-zfqoDAxT.js +1 -0
  160. package/dist/skeleton.d.ts +3 -2
  161. package/dist/skeleton.js +1 -1
  162. package/dist/skip-to-main-link.js +1 -1
  163. package/dist/slider.d.ts +3 -2
  164. package/dist/slider.js +1 -1
  165. package/dist/{slot-BsvE2ntj.js → slot-DdYN1L1C.js} +1 -1
  166. package/dist/{slot-DdgxmuI5.d.ts → slot-Q996Hqk9.d.ts} +1 -1
  167. package/dist/slot.d.ts +1 -1
  168. package/dist/slot.js +1 -1
  169. package/dist/split-button.d.ts +6 -5
  170. package/dist/split-button.js +1 -1
  171. package/dist/switch.d.ts +3 -2
  172. package/dist/switch.js +1 -1
  173. package/dist/{table-DEI-qvSC.d.ts → table-BhzITa19.d.ts} +10 -9
  174. package/dist/table-DBbKqOVq.js +1 -0
  175. package/dist/table.d.ts +1 -1
  176. package/dist/table.js +1 -1
  177. package/dist/tabs.d.ts +172 -33
  178. package/dist/tabs.js +1 -1
  179. package/dist/text-area.d.ts +3 -2
  180. package/dist/text-area.js +1 -1
  181. package/dist/theme-BlCZHClJ.js +1 -0
  182. package/dist/theme-switcher.d.ts +3 -3
  183. package/dist/theme-switcher.js +1 -1
  184. package/dist/theme.js +1 -1
  185. package/dist/toast.d.ts +10 -9
  186. package/dist/toast.js +1 -1
  187. package/dist/{tooltip-nuUCoqq8.d.ts → tooltip-CngH7Kl6.d.ts} +7 -6
  188. package/dist/tooltip-NhYXqStK.js +1 -0
  189. package/dist/tooltip.d.ts +1 -1
  190. package/dist/tooltip.js +1 -1
  191. package/dist/truncated-text.d.ts +138 -0
  192. package/dist/truncated-text.js +1 -0
  193. package/dist/types.js +1 -1
  194. package/dist/{use-breakpoint-CjyNk0fi.js → use-breakpoint--mo7kr9d.js} +1 -1
  195. package/dist/use-is-hydrated-after-paint-r9Cl2mGp.js +1 -0
  196. package/dist/utils.js +1 -1
  197. package/dist/visually-hidden.d.ts +2 -1
  198. package/dist/visually-hidden.js +1 -1
  199. package/dist/well.d.ts +3 -2
  200. package/dist/well.js +1 -1
  201. package/package.json +17 -16
  202. package/dist/alert-OP_-aGJD.js +0 -1
  203. package/dist/anchor-BnMhJYS4.js +0 -1
  204. package/dist/button-BFpCB99R.js +0 -1
  205. package/dist/button-Dij5vCQG.js +0 -1
  206. package/dist/button-pwkdtR3U.js +0 -1
  207. package/dist/chart-aZLMj4xx.js +0 -2
  208. package/dist/checkbox-DbJSqSNN.js +0 -1
  209. package/dist/choice-SRyLguqU.js +0 -1
  210. package/dist/code-block-BE3Q0iAo.js +0 -12
  211. package/dist/cx-0HCjnNv1.js +0 -1
  212. package/dist/dialog-HIdb5d3I.js +0 -1
  213. package/dist/dropdown-menu-BR_AQNMj.js +0 -1
  214. package/dist/dropdown-menu-Dlpb7600.d.ts +0 -1
  215. package/dist/icon-BT8FnkkJ.js +0 -1
  216. package/dist/icon-U24NfYv7.js +0 -1
  217. package/dist/icons-BQRcOU6J.js +0 -1
  218. package/dist/icons-C3rVfpx9.js +0 -1
  219. package/dist/in-view-T_AAYaaF.js +0 -1
  220. package/dist/input-yq0jLE4e.js +0 -1
  221. package/dist/kbd-CJ8hNZfS.js +0 -1
  222. package/dist/label-BAy0Mg59.js +0 -1
  223. package/dist/list-BleZ-43e.js +0 -1
  224. package/dist/live-region-B2vJRvPH.js +0 -1
  225. package/dist/popover-BJ5XNwzD.js +0 -1
  226. package/dist/primitive-w3wFk2La.js +0 -1
  227. package/dist/select-CUWLEeuf.js +0 -1
  228. package/dist/separator-D98be0gY.js +0 -1
  229. package/dist/sheet-B5x8EO9Y.js +0 -1
  230. package/dist/skeleton-bVDP8BzY.js +0 -1
  231. package/dist/table-D2jh52KA.js +0 -1
  232. package/dist/theme-C1kFFdIk.js +0 -1
  233. package/dist/tooltip-H03l7E4Y.js +0 -1
  234. /package/dist/{types-D85fCNV3.js → css-properties-D85fCNV3.js} +0 -0
@@ -1 +1 @@
1
- import{t as e}from"./cx-0HCjnNv1.js";import{n as t,r as n}from"./layer-container-R7aux3n8.js";import{c as r}from"react/compiler-runtime";import{jsx as i,jsxs as a}from"react/jsx-runtime";import{Arrow as o,Content as s,Portal as c,Root as l,Trigger as u}from"@radix-ui/react-hover-card";const d=e=>{let t=r(8),n,a,o;t[0]===e?(n=t[1],a=t[2],o=t[3]):({closeDelay:a,openDelay:o,...n}=e,t[0]=e,t[1]=n,t[2]=a,t[3]=o);let s=a===void 0?300:a,c=o===void 0?100:o,u;return t[4]!==s||t[5]!==c||t[6]!==n?(u=i(l,{closeDelay:s,openDelay:c,...n}),t[4]=s,t[5]=c,t[6]=n,t[7]=u):u=t[7],u},f=e=>{let t=r(2),n;return t[0]===e?n=t[1]:(n=i(u,{"data-slot":`hover-card-trigger`,...e}),t[0]=e,t[1]=n),n},p=e=>{let a=r(9),o,s;a[0]===e?(o=a[1],s=a[2]):({container:o,...s}=e,a[0]=e,a[1]=o,a[2]=s);let l=n(),u=o??l,d;a[3]!==s||a[4]!==u?(d=i(c,{container:u,...s}),a[3]=s,a[4]=u,a[5]=d):d=a[5];let f;return a[6]!==u||a[7]!==d?(f=i(t.Provider,{value:u,children:d}),a[6]=u,a[7]=d,a[8]=f):f=a[8],f},m={Root:d,Arrow:t=>{let n=r(16),s,c,l,u;n[0]===t?(s=n[1],c=n[2],l=n[3],u=n[4]):({className:s,height:l,width:u,...c}=t,n[0]=t,n[1]=s,n[2]=c,n[3]=l,n[4]=u);let d=l===void 0?7:l,f=u===void 0?14:u,p;n[5]===s?p=n[6]:(p=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))]`,s),n[5]=s,n[6]=p);let m,h;n[7]===Symbol.for(`react.memo_cache_sentinel`)?(m=i(`polygon`,{points:`0,0 30,0 15,10`}),h=i(`polyline`,{className:`stroke-[color:var(--border-color-popover)]`,fill:`none`,points:`0,0 15,10 30,0`,strokeWidth:1.5,vectorEffect:`non-scaling-stroke`}),n[7]=m,n[8]=h):(m=n[7],h=n[8]);let g;n[9]===p?g=n[10]:(g=a(`svg`,{className:p,children:[m,h]}),n[9]=p,n[10]=g);let _;return n[11]!==d||n[12]!==c||n[13]!==g||n[14]!==f?(_=i(o,{"aria-hidden":`true`,asChild:!0,"data-slot":`hover-card-arrow`,height:d,width:f,...c,children:g}),n[11]=d,n[12]=c,n[13]=g,n[14]=f,n[15]=_):_=n[15],_},Content:t=>{let n=r(16),a,o,c,l,u;n[0]===t?(a=n[1],o=n[2],c=n[3],l=n[4],u=n[5]):({className:a,onClick:o,align:l,sideOffset:u,...c}=t,n[0]=t,n[1]=a,n[2]=o,n[3]=c,n[4]=l,n[5]=u);let d=l===void 0?`center`:l,f=u===void 0?4:u,m;n[6]===a?m=n[7]:(m=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`,a),n[6]=a,n[7]=m);let h;n[8]===o?h=n[9]:(h=e=>{e.stopPropagation(),o?.(e)},n[8]=o,n[9]=h);let g;return n[10]!==d||n[11]!==c||n[12]!==f||n[13]!==m||n[14]!==h?(g=i(p,{children:i(s,{"data-slot":`hover-card-content`,align:d,sideOffset:f,className:m,onClick:h,...c})}),n[10]=d,n[11]=c,n[12]=f,n[13]=m,n[14]=h,n[15]=g):g=n[15],g},Portal:p,Trigger:f};export{m 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-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};
@@ -0,0 +1 @@
1
+ import{t as e}from"./cx-CK7o_rVv.js";import{t}from"./data-slot-EM6s2WEU.js";import{Children as n,cloneElement as r,isValidElement as i}from"react";import a from"tiny-invariant";const o=e=>e!=null&&n.toArray(e).some(e=>i(e)&&e.type===`title`),s=e=>e[`aria-label`]!=null||e[`aria-labelledby`]!=null||e[`aria-hidden`]!=null||e.role!=null||e.alt!=null||o(e.children),c=({"data-slot":o,className:c,style:l,svg:u,ref:d,...f})=>{a(i(u)&&n.only(u),`SvgOnly must be passed a single SVG icon as a JSX tag.`);let p=!s(f)&&!s(u.props);return r(u,{"data-slot":t(o,`svg-only`),...p&&{"aria-hidden":!0},...f,className:e(`shrink-0`,c,u.props.className),style:{...l,...u.props.style},ref:d})};export{c as t};
@@ -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-BudQMD2S.js";import{c as r}from"react/compiler-runtime";import{jsx as i}from"react/jsx-runtime";const a=a=>{let o=r(18),s,c,l,u,d,f;o[0]===a?(s=o[1],c=o[2],l=o[3],u=o[4],d=o[5],f=o[6]):({"data-slot":c,className:s,style:d,svg:f,ref:u,...l}=a,o[0]=a,o[1]=s,o[2]=c,o[3]=l,o[4]=u,o[5]=d,o[6]=f);let p;o[7]===c?p=o[8]:(p=t(c,`icon`),o[7]=c,o[8]=p);let m;o[9]===s?m=o[10]:(m=e(`size-5`,s),o[9]=s,o[10]=m);let h;return o[11]!==l||o[12]!==u||o[13]!==d||o[14]!==f||o[15]!==p||o[16]!==m?(h=/* @__PURE__ */ i(n,{ref:u,"data-slot":p,className:m,style:d,svg:f,...l}),o[11]=l,o[12]=u,o[13]=d,o[14]=f,o[15]=p,o[16]=m,o[17]=h):h=o[17],h};export{a as t};
@@ -1,3 +1,4 @@
1
+ import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
1
2
  import { t as SvgAttributes } from "./icon-D1RY5Tcj.js";
2
3
  import { ReactNode } from "react";
3
4
  //#region src/components/icon/svg-only.d.ts
@@ -6,7 +7,7 @@ type SvgOnlyProps = Omit<SvgAttributes, "children"> & {
6
7
  * A single SVG icon element.
7
8
  */
8
9
  svg: ReactNode;
9
- };
10
+ } & WithDataSlot;
10
11
  type NamedSvgProps = SvgAttributes & {
11
12
  /**
12
13
  * Phosphor's `alt` prop. `IconBase` renders it as a `<title>` child, so it
@@ -37,6 +38,6 @@ type NamedSvgProps = SvgAttributes & {
37
38
  * <SvgOnly svg={<ShrimpIcon />} role="img" aria-label="Shrimp" />
38
39
  * ```
39
40
  */
40
- declare const SvgOnly: ({ className, style, svg, ref, ...props }: SvgOnlyProps) => import("react").ReactElement<NamedSvgProps, string | import("react").JSXElementConstructor<any>>;
41
+ declare const SvgOnly: ({ "data-slot": dataSlot, className, style, svg, ref, ...props }: SvgOnlyProps) => import("react").ReactElement<NamedSvgProps, string | import("react").JSXElementConstructor<any>>;
41
42
  //#endregion
42
43
  export { SvgOnlyProps as n, SvgOnly as t };
@@ -1,3 +1,4 @@
1
+ import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
1
2
  import { t as SvgAttributes } from "./icon-D1RY5Tcj.js";
2
3
  import { ReactNode } from "react";
3
4
  //#region src/components/icon/icon.d.ts
@@ -6,7 +7,7 @@ type IconProps = Omit<SvgAttributes, "children"> & {
6
7
  * A single SVG icon element.
7
8
  */
8
9
  svg: ReactNode;
9
- };
10
+ } & WithDataSlot;
10
11
  /**
11
12
  * Decorates an svg icon with automatic sizing styles and a `shrink-0` class.
12
13
  *
@@ -29,6 +30,6 @@ type IconProps = Omit<SvgAttributes, "children"> & {
29
30
  * <Icon svg={<ShrimpIcon />} role="img" aria-label="Shrimp" />
30
31
  * ```
31
32
  */
32
- declare const Icon: ({ className, style, svg, ref, ...props }: IconProps) => import("react").JSX.Element;
33
+ declare const Icon: ({ "data-slot": dataSlot, className, style, svg, ref, ...props }: IconProps) => import("react").JSX.Element;
33
34
  //#endregion
34
35
  export { IconProps as n, Icon as t };
package/dist/icon.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import { t as SvgAttributes } from "./icon-D1RY5Tcj.js";
2
- import { n as IconProps, t as Icon } from "./icon-BmJ57Tgh.js";
3
- import { n as SvgOnlyProps, t as SvgOnly } from "./icon-w0HUe7tr.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";
4
4
  export { Icon, type IconProps, type SvgAttributes, SvgOnly, type SvgOnlyProps };
package/dist/icon.js CHANGED
@@ -1 +1 @@
1
- import{t as e}from"./icon-U24NfYv7.js";import{t}from"./icon-BT8FnkkJ.js";export{t as Icon,e as SvgOnly};
1
+ import{t as e}from"./icon-BudQMD2S.js";import{t}from"./icon-kK0c-POG.js";export{t as Icon,e as SvgOnly};
@@ -0,0 +1 @@
1
+ import{s as e}from"./theme-BlCZHClJ.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(13),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}case`light-high-contrast`:{let e;return o[9]===s?e=o[10]:(e=/* @__PURE__ */ n(a,{...s,weight:`fill`}),o[9]=s,o[10]=e),e}case`dark-high-contrast`:{let e;return o[11]===s?e=o[12]:(e=/* @__PURE__ */ n(i,{...s,weight:`fill`}),o[11]=s,o[12]=e),e}}}export{s as n,o as t};
@@ -1 +1 @@
1
- import{i as e}from"./direction-Wa9W2F61.js";import{c as t}from"react/compiler-runtime";import{jsx as n}from"react/jsx-runtime";import{SortAscendingIcon as r}from"@phosphor-icons/react/SortAscending";import{SortDescendingIcon as i}from"@phosphor-icons/react/SortDescending";const a=a=>{let o=t(12),s,c,l;switch(o[0]===a?(s=o[1],c=o[2],l=o[3]):({mode:c,direction:s,...l}=a,o[0]=a,o[1]=s,o[2]=c,o[3]=l),c){case`alphanumeric`:switch(s){case`asc`:{let e;return o[4]===l?e=o[5]:(e=n(r,{...l}),o[4]=l,o[5]=e),e}case`desc`:{let e;return o[6]===l?e=o[7]:(e=n(i,{...l}),o[6]=l,o[7]=e),e}default:throw Error(`Invalid alphanumeric sorting direction given: "${s}"`)}case`time`:switch(e(s)){case`oldest-to-newest`:{let e;return o[8]===l?e=o[9]:(e=n(i,{...l}),o[8]=l,o[9]=e),e}case`newest-to-oldest`:{let e;return o[10]===l?e=o[11]:(e=n(r,{...l}),o[10]=l,o[11]=e),e}default:throw Error(`Invalid time sorting direction given: "${s}"`)}}};export{a as t};
1
+ import{i as e}from"./direction-Wa9W2F61.js";import{c as t}from"react/compiler-runtime";import{jsx as n}from"react/jsx-runtime";import{SortAscendingIcon as r}from"@phosphor-icons/react/SortAscending";import{SortDescendingIcon as i}from"@phosphor-icons/react/SortDescending";const a=a=>{let o=t(12),s,c,l;switch(o[0]===a?(s=o[1],c=o[2],l=o[3]):({mode:c,direction:s,...l}=a,o[0]=a,o[1]=s,o[2]=c,o[3]=l),c){case`alphanumeric`:switch(s){case`asc`:{let e;return o[4]===l?e=o[5]:(e=/* @__PURE__ */ n(r,{...l}),o[4]=l,o[5]=e),e}case`desc`:{let e;return o[6]===l?e=o[7]:(e=/* @__PURE__ */ n(i,{...l}),o[6]=l,o[7]=e),e}default:throw Error(`Invalid alphanumeric sorting direction given: "${s}"`)}case`time`:switch(e(s)){case`oldest-to-newest`:{let e;return o[8]===l?e=o[9]:(e=/* @__PURE__ */ n(i,{...l}),o[8]=l,o[9]=e),e}case`newest-to-oldest`:{let e;return o[10]===l?e=o[11]:(e=/* @__PURE__ */ n(r,{...l}),o[10]=l,o[11]=e),e}default:throw Error(`Invalid time sorting direction given: "${s}"`)}}};export{a as t};
@@ -0,0 +1 @@
1
+ import{c as e}from"react/compiler-runtime";import{jsx as t,jsxs as n}from"react/jsx-runtime";function r(r){let i=e(5),a,o,s;i[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=/* @__PURE__ */ t(`path`,{fill:`none`,d:`M0 0h256v256H0z`}),o=/* @__PURE__ */ t(`path`,{d:`m213.7 82.3-56-56c-1.5-1.5-3.5-2.3-5.7-2.3H56c-8.8 0-16 7.2-16 16v88c0 4.4 3.6 8 8 8s8-3.6 8-8V40h88v48c0 4.4 3.6 8 8 8h48v120h-40c-4.4 0-8 3.6-8 8s3.6 8 8 8h40c8.8 0 16-7.2 16-16V88c0-2.1-.8-4.2-2.3-5.7zm-53.7-31L188.7 80H160V51.3z`}),s=/* @__PURE__ */ t(`path`,{d:`M124.6 194.5h-6.8v-27.3h6.8c1.9 0 3.4-1.5 3.4-3.4s-1.5-3.4-3.4-3.4h-6.8v-10.2c0-3.8-3.1-6.8-6.8-6.8H63.3c-3.8 0-6.8 3.1-6.8 6.8v10.2h-6.8c-1.9 0-3.4 1.5-3.4 3.4s1.5 3.4 3.4 3.4h6.8v27.3h-6.8c-1.9 0-3.4 1.5-3.4 3.4s1.5 3.4 3.4 3.4h6.8v23.9c0 3.8 3.1 6.8 6.8 6.8H111c3.8 0 6.8-3.1 6.8-6.8v-23.9h6.8c1.9 0 3.4-1.5 3.4-3.4s-1.5-3.4-3.4-3.4zm-37.5-11.9c-6.6 0-11.9-5.3-11.9-11.9s5.3-11.9 11.9-11.9S99 164.1 99 170.7s-5.3 11.9-11.9 11.9zm0 10.2c6.6 0 11.9 5.3 11.9 11.9s-5.3 11.9-11.9 11.9-11.9-5.3-11.9-11.9 5.3-11.9 11.9-11.9z`}),i[0]=a,i[1]=o,i[2]=s):(a=i[0],o=i[1],s=i[2]);let c;return i[3]===r?c=i[4]:(c=/* @__PURE__ */ n(`svg`,{fill:`currentColor`,height:`1em`,viewBox:`0 0 256 256`,width:`1em`,...r,children:[a,o,s]}),i[3]=r,i[4]=c),c}export{r as t};
package/dist/icons.js CHANGED
@@ -1 +1 @@
1
- import{t as e}from"./icons-C3rVfpx9.js";import{t}from"./icons-Bu-2boul.js";import{n,t as r}from"./icons-BQRcOU6J.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=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=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=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=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-CH3tD_wq.js";import{n,t as r}from"./icons-BMZnm4hM.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};
@@ -0,0 +1 @@
1
+ const e={some:0,all:1};function t(t,n,{root:r,margin:i,amount:a=`some`}={}){let o=/* @__PURE__ */ new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target);if(e.isIntersecting!==!!t){if(e.isIntersecting){let t=n(e.target,e);typeof t==`function`?o.set(e.target,t):s.unobserve(e.target)}else typeof t==`function`&&(t(e),o.delete(e.target))}})},{root:r,rootMargin:i,threshold:typeof a==`number`?a:e[a]});return s.observe(t),()=>{s.unobserve(t),s.disconnect()}}export{t};
@@ -0,0 +1 @@
1
+ import{n as e}from"./compose-refs-sFdxsL7k.js";import{t}from"./cx-CK7o_rVv.js";import{t as n}from"./data-slot-EM6s2WEU.js";import{t as r}from"./icon-kK0c-POG.js";import{t as i}from"./booleanish-BfvnW6vy.js";import{t as a}from"./clsx-DUGZgXfJ.js";import{a as o,r as s}from"./field-Bpptk_9t.js";import{c}from"react/compiler-runtime";import{createContext as l,useContext as u,useRef as d}from"react";import{jsx as f,jsxs as p}from"react/jsx-runtime";import{CheckCircleIcon as m}from"@phosphor-icons/react/CheckCircle";import{WarningIcon as h}from"@phosphor-icons/react/Warning";import{WarningDiamondIcon as g}from"@phosphor-icons/react/WarningDiamond";const _=e=>{let t=c(17),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({children:n,className:r,ref:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=!!n,s=d(null);if(o){let e;return t[5]!==n||t[6]!==r||t[7]!==i||t[8]!==a?(e=/* @__PURE__ */ f(b,{className:r,forwardedRef:a,innerRef:s,...i,children:n}),t[5]=n,t[6]=r,t[7]=i,t[8]=a,t[9]=e):e=t[9],e}let l;t[10]===i?l=t[11]:(l=/* @__PURE__ */ f(v,{...i}),t[10]=i,t[11]=l);let u;return t[12]!==r||t[13]!==i||t[14]!==a||t[15]!==l?(u=/* @__PURE__ */ f(b,{...i,className:r,forwardedRef:a,innerRef:s,children:l}),t[12]=r,t[13]=i,t[14]=a,t[15]=l,t[16]=u):u=t[16],u},v=r=>{let i=c(31),a,l,d,p,m,h;i[0]===r?(a=i[1],l=i[2],d=i[3],p=i[4],m=i[5],h=i[6]):({"aria-invalid":a,"data-slot":p,className:d,ref:m,validation:l,...h}=r,i[0]=r,i[1]=a,i[2]=l,i[3]=d,i[4]=p,i[5]=m,i[6]=h);let g=u(y),_,v,b,x,S;i[7]===g?(_=i[8],v=i[9],b=i[10],x=i[11],S=i[12]):({"aria-invalid":v,forwardedRef:b,innerRef:x,validation:S,..._}=g,i[7]=g,i[8]=_,i[9]=v,i[10]=b,i[11]=x,i[12]=S);let C=o(),w=v??a,T=S??l??C,E;i[13]!==w||i[14]!==T?(E=s({"aria-invalid":w,validation:T}),i[13]=w,i[14]=T,i[15]=E):E=i[15];let{ariaInvalid:D,validation:O}=E,k=h.type??_.type??`text`,A;i[16]!==_||i[17]!==h||i[18]!==k?(A={..._,...h,type:k},i[16]=_,i[17]=h,i[18]=k,i[19]=A):A=i[19];let j=A,M=e(m,b,x),N;i[20]===p?N=i[21]:(N=n(p,`input-capture`),i[20]=p,i[21]=N);let P;i[22]===d?P=i[23]:(P=t(`placeholder:text-placeholder min-w-0 flex-1 bg-transparent text-left autofill:shadow-[inset_0_0_0px_1000px_var(--color-blue-50)] focus:outline-hidden`,d),i[22]=d,i[23]=P);let F;return i[24]!==D||i[25]!==M||i[26]!==j||i[27]!==N||i[28]!==P||i[29]!==O?(F=/* @__PURE__ */ f(`input`,{"aria-invalid":D,"data-slot":N,"data-validation":O,className:P,ref:M,...j}),i[24]=D,i[25]=M,i[26]=j,i[27]=N,i[28]=P,i[29]=O,i[30]=F):F=i[30],F},y=l({validation:void 0,innerRef:{current:null}}),b=e=>{let r=c(51),a,l,u,d,m,h,g,_,v,b,S,C;r[0]===e?(a=r[1],l=r[2],u=r[3],d=r[4],m=r[5],h=r[6],g=r[7],_=r[8],v=r[9],b=r[10],S=r[11],C=r[12]):({"aria-invalid":l,"aria-disabled":a,"data-slot":h,children:d,className:m,disabled:g,forwardedRef:_,innerRef:v,style:S,type:C,validation:u,...b}=e,r[0]=e,r[1]=a,r[2]=l,r[3]=u,r[4]=d,r[5]=m,r[6]=h,r[7]=g,r[8]=_,r[9]=v,r[10]=b,r[11]=S,r[12]=C);let w=o(),T=u??w,E;r[13]!==l||r[14]!==T?(E=s({"aria-invalid":l,validation:T}),r[13]=l,r[14]=T,r[15]=E):E=r[15];let{validation:D}=E,O;r[16]!==a||r[17]!==l||r[18]!==u||r[19]!==g||r[20]!==_||r[21]!==v||r[22]!==b||r[23]!==C?(O={"aria-invalid":l,"aria-disabled":a,disabled:g,type:C,validation:u,...b,forwardedRef:_,innerRef:v},r[16]=a,r[17]=l,r[18]=u,r[19]=g,r[20]=_,r[21]=v,r[22]=b,r[23]=C,r[24]=O):O=r[24];let k=O,A;r[25]===h?A=r[26]:(A=n(h,`input`),r[25]=h,r[26]=A);let j;r[27]!==a||r[28]!==g?(j=i(g??a)||void 0,r[27]=a,r[28]=g,r[29]=j):j=r[29];let M=D||void 0,N;r[30]===m?N=r[31]:(N=t(`pointer-coarse:text-base h-9 text-sm`,`bg-form relative flex w-full items-center gap-1.5 rounded-md border px-3 py-2 file:border-0 file:bg-transparent file:text-sm file:font-medium focus-within:outline-hidden focus-within:ring-4`,`data-disabled:opacity-50`,`has-[input:not(:first-child)]:ps-2.5 has-[input:not(:last-child)]:pe-2.5 [&>:not(input)]:shrink-0 [&_svg]:size-5`,`border-form text-strong focus-within:border-accent-600 focus-within:ring-focus-accent`,`data-validation-success:border-success-600 focus-within:data-validation-success:border-success-600 focus-within:data-validation-success:ring-focus-success`,`data-validation-warning:border-warning-600 focus-within:data-validation-warning:border-warning-600 focus-within:data-validation-warning:ring-focus-warning`,`data-validation-error:border-danger-600 focus-within:data-validation-error:border-danger-600 focus-within:data-validation-error:ring-focus-danger`,`autofill:shadow-[inset_0_0_0px_1000px_var(--color-blue-50)] has-autofill:bg-blue-50 has-autofill:[-webkit-text-fill-color:var(--text-color-strong)]`,m),r[30]=m,r[31]=N);let P,F;r[32]===v?(P=r[33],F=r[34]):(P=e=>{e.target!==v?.current&&e.preventDefault()},F=e=>{let t=v.current;t!=null&&e.detail!==0&&t.focus()},r[32]=v,r[33]=P,r[34]=F);let I;r[35]!==b.name||r[36]!==D?(I=/* @__PURE__ */ f(x,{name:b.name,validation:D}),r[35]=b.name,r[36]=D,r[37]=I):I=r[37];let L;r[38]!==d||r[39]!==S||r[40]!==I||r[41]!==A||r[42]!==j||r[43]!==M||r[44]!==N||r[45]!==P||r[46]!==F?(L=/* @__PURE__ */ p(`div`,{role:`none`,"data-slot":A,"data-disabled":j,"data-validation":M,className:N,onMouseDown:P,onClick:F,style:S,children:[d,I]}),r[38]=d,r[39]=S,r[40]=I,r[41]=A,r[42]=j,r[43]=M,r[44]=N,r[45]=P,r[46]=F,r[47]=L):L=r[47];let R;return r[48]!==k||r[49]!==L?(R=/* @__PURE__ */ f(y.Provider,{value:k,children:L}),r[48]=k,r[49]=L,r[50]=R):R=r[50],R},x=e=>{let t=c(9),{name:n,validation:i}=e;switch(i){case`error`:{let e;t[0]===n?e=t[1]:(e=a(`The value entered for the`,n,`input has failed validation.`),t[0]=n,t[1]=e);let i;t[2]===e?i=t[3]:(i=/* @__PURE__ */ f(`span`,{className:`sr-only`,children:e}),t[2]=e,t[3]=i);let o;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=/* @__PURE__ */ f(r,{svg:/* @__PURE__ */ f(h,{"aria-hidden":!0,weight:`fill`})}),t[4]=o):o=t[4];let s;return t[5]===i?s=t[6]:(s=/* @__PURE__ */ p(`div`,{className:`text-danger-600 order-last select-none`,children:[i,o]}),t[5]=i,t[6]=s),s}case`success`:{let e;return t[7]===Symbol.for(`react.memo_cache_sentinel`)?(e=/* @__PURE__ */ f(`div`,{className:`text-success-600 order-last select-none`,children:/* @__PURE__ */ f(r,{svg:/* @__PURE__ */ f(m,{weight:`fill`})})}),t[7]=e):e=t[7],e}case`warning`:{let e;return t[8]===Symbol.for(`react.memo_cache_sentinel`)?(e=/* @__PURE__ */ f(`div`,{className:`text-warning-600 order-last select-none`,children:/* @__PURE__ */ f(r,{svg:/* @__PURE__ */ f(g,{weight:`fill`})})}),t[8]=e):e=t[8],e}default:return null}};export{v as n,_ as t};
@@ -1,3 +1,4 @@
1
+ import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
1
2
  import { o as WithValidation } from "./field-7QeiTFwl.js";
2
3
  import { ComponentProps, PropsWithChildren } from "react";
3
4
  //#region src/components/input/types.d.ts
@@ -68,7 +69,7 @@ type InputProps = Omit<ComponentProps<"input">, "autoComplete" | "type"> & BaseP
68
69
  * ```
69
70
  */
70
71
  declare const Input: ({ children, className, ref, ...props }: InputProps) => import("react").JSX.Element;
71
- type InputCaptureProps = Omit<ComponentProps<"input">, "autoComplete" | "type"> & BaseProps;
72
+ type InputCaptureProps = Omit<ComponentProps<"input">, "autoComplete" | "type"> & BaseProps & WithDataSlot;
72
73
  /**
73
74
  * The actual <input /> element that captures user input.
74
75
  * Used internally by Input component or when you need direct control over the input element.
@@ -83,6 +84,6 @@ type InputCaptureProps = Omit<ComponentProps<"input">, "autoComplete" | "type">
83
84
  * </Input>
84
85
  * ```
85
86
  */
86
- declare const InputCapture: ({ "aria-invalid": _ariaInvalid, className, ref, validation: _validation, ...restProps }: InputCaptureProps) => import("react").JSX.Element;
87
+ declare const InputCapture: ({ "aria-invalid": _ariaInvalid, "data-slot": dataSlot, className, ref, validation: _validation, ...restProps }: InputCaptureProps) => import("react").JSX.Element;
87
88
  //#endregion
88
89
  export { AutoComplete as a, WithInputType as c, InputProps as i, InputCapture as n, InputType as o, InputCaptureProps as r, WithAutoComplete as s, Input as t };
package/dist/input.d.ts CHANGED
@@ -1,5 +1,6 @@
1
+ import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
1
2
  import { o as WithValidation, r as Validation } from "./field-7QeiTFwl.js";
2
- import { a as AutoComplete, c as WithInputType, i as InputProps, n as InputCapture, o as InputType, r as InputCaptureProps, s as WithAutoComplete, t as Input } from "./input-DpnC3Xgj.js";
3
+ import { a as AutoComplete, c as WithInputType, i as InputProps, n as InputCapture, o as InputType, r as InputCaptureProps, s as WithAutoComplete, t as Input } from "./input-bbB1tC0h.js";
3
4
  import { ComponentProps } from "react";
4
5
  //#region src/components/input/password-input.d.ts
5
6
  /**
@@ -17,7 +18,7 @@ type PasswordInputProps = Omit<ComponentProps<"input">, "autoComplete" | "type">
17
18
  * next value. When omitted, the toggle owns the visibility and starts hidden.
18
19
  */
19
20
  showValue?: boolean;
20
- };
21
+ } & WithDataSlot;
21
22
  /**
22
23
  * An input optimized for password and other sensitive-value entry. Renders a
23
24
  * native `<input type="password">` with a built-in trailing button that
@@ -51,7 +52,7 @@ type PasswordInputProps = Omit<ComponentProps<"input">, "autoComplete" | "type">
51
52
  *
52
53
  * | Data Attribute | Value | Description |
53
54
  * | --- | --- | --- |
54
- * | `data-slot` | `"password-input"` | The chrome around the input. |
55
+ * | `data-slot` | `"password-input input"` | The chrome around the input, joined ahead of `Input`'s own slot. |
55
56
  * | `data-slot` | `"input-capture"` | The `<input>` element. |
56
57
  * | `data-slot` | `"password-input-toggle"` | The visibility toggle button. |
57
58
  * | `data-disabled` | present when disabled | On the chrome. Style with `data-disabled:`. |
@@ -90,7 +91,7 @@ type PasswordInputProps = Omit<ComponentProps<"input">, "autoComplete" | "type">
90
91
  * }
91
92
  * ```
92
93
  */
93
- declare const PasswordInput: ({ disabled, id: idProp, onValueVisibilityChange, ref, showValue, ...props }: PasswordInputProps) => import("react").JSX.Element;
94
+ declare const PasswordInput: ({ "data-slot": dataSlot, disabled, id: idProp, onValueVisibilityChange, ref, showValue, ...props }: PasswordInputProps) => import("react").JSX.Element;
94
95
  //#endregion
95
96
  //#region src/components/input/is-input.d.ts
96
97
  /**
package/dist/input.js CHANGED
@@ -1 +1 @@
1
- import{t as e}from"./use-isomorphic-layout-effect-DdTRtMY-.js";import{t}from"./icon-BT8FnkkJ.js";import{n,t as r}from"./input-yq0jLE4e.js";import{t as i}from"./use-prefers-reduced-motion-Cj9tJ181.js";import{t as a}from"./input-DQyN6gN0.js";import{c as o}from"react/compiler-runtime";import{useId as s,useRef as c,useState as l}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{EyeIcon as f}from"@phosphor-icons/react/Eye";import{EyeClosedIcon as p}from"@phosphor-icons/react/EyeClosed";const m=a=>{let m=o(30),h,g,_,v,y,b;m[0]===a?(h=m[1],g=m[2],_=m[3],v=m[4],y=m[5],b=m[6]):({disabled:h,id:g,onValueVisibilityChange:_,ref:y,showValue:b,...v}=a,m[0]=a,m[1]=h,m[2]=g,m[3]=_,m[4]=v,m[5]=y,m[6]=b);let x=s(),S=g??x,C=b!=null,[w,T]=l(!1),E=C?b:w,D=E?`text`:`password`,O=E?f:p,k=c(null),A=c(E),j,M;m[7]===E?(j=m[8],M=m[9]):(j=()=>{if(A.current===E)return;A.current=E;let e=k.current;e==null||i()||e.animate([{transform:`scaleY(0)`},{transform:`scaleY(1)`}],{duration:200,easing:`ease-out`})},M=[E],m[7]=E,m[8]=j,m[9]=M),e(j,M);let N;m[10]===Symbol.for(`react.memo_cache_sentinel`)?(N=u(n,{}),m[10]=N):N=m[10];let P;m[11]!==C||m[12]!==_||m[13]!==E?(P=()=>{let e=!E;C||T(e),_?.(e)},m[11]=C,m[12]=_,m[13]=E,m[14]=P):P=m[14];let F;m[15]===O?F=m[16]:(F=u(t,{ref:k,svg:u(O,{"aria-hidden":!0})}),m[15]=O,m[16]=F);let I;m[17]!==h||m[18]!==S||m[19]!==E||m[20]!==P||m[21]!==F?(I=u(`button`,{type:`button`,disabled:h,"data-slot":`password-input-toggle`,"aria-label":`Show value`,"aria-pressed":E,"aria-controls":S,className:`text-body hover:text-strong focus-visible:ring-focus-accent ml-1 cursor-pointer rounded-xs bg-inherit p-0 focus-visible:ring-2 focus-visible:outline-hidden`,onClick:P,children:F}),m[17]=h,m[18]=S,m[19]=E,m[20]=P,m[21]=F,m[22]=I):I=m[22];let L;return m[23]!==h||m[24]!==S||m[25]!==v||m[26]!==y||m[27]!==I||m[28]!==D?(L=d(r,{"data-slot":`password-input`,disabled:h,id:S,type:D,ref:y,...v,children:[N,I]}),m[23]=h,m[24]=S,m[25]=v,m[26]=y,m[27]=I,m[28]=D,m[29]=L):L=m[29],L};export{r as Input,n as InputCapture,m as PasswordInput,a as isInput};
1
+ import{t as e}from"./use-isomorphic-layout-effect-DdTRtMY-.js";import{t}from"./data-slot-EM6s2WEU.js";import{t as n}from"./icon-kK0c-POG.js";import{n as r,t as i}from"./input-D_DjD9lT.js";import{t as a}from"./use-prefers-reduced-motion-Cj9tJ181.js";import{t as o}from"./input-DQyN6gN0.js";import{c as s}from"react/compiler-runtime";import{useId as c,useRef as l,useState as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";import{EyeIcon as p}from"@phosphor-icons/react/Eye";import{EyeClosedIcon as m}from"@phosphor-icons/react/EyeClosed";const h=o=>{let h=s(34),g,_,v,y,b,x,S;h[0]===o?(g=h[1],_=h[2],v=h[3],y=h[4],b=h[5],x=h[6],S=h[7]):({"data-slot":g,disabled:_,id:v,onValueVisibilityChange:y,ref:x,showValue:S,...b}=o,h[0]=o,h[1]=g,h[2]=_,h[3]=v,h[4]=y,h[5]=b,h[6]=x,h[7]=S);let C=c(),w=v??C,T=S!=null,[E,D]=u(!1),O=T?S:E,k=O?`text`:`password`,A=O?p:m,j=l(null),M=l(O),N,P;h[8]===O?(N=h[9],P=h[10]):(N=()=>{if(M.current===O)return;M.current=O;let e=j.current;e==null||a()||e.animate([{transform:`scaleY(0)`},{transform:`scaleY(1)`}],{duration:200,easing:`ease-out`})},P=[O],h[8]=O,h[9]=N,h[10]=P),e(N,P);let F;h[11]===g?F=h[12]:(F=t(g,`password-input`),h[11]=g,h[12]=F);let I;h[13]===Symbol.for(`react.memo_cache_sentinel`)?(I=/* @__PURE__ */ d(r,{}),h[13]=I):I=h[13];let L;h[14]!==T||h[15]!==y||h[16]!==O?(L=()=>{let e=!O;T||D(e),y?.(e)},h[14]=T,h[15]=y,h[16]=O,h[17]=L):L=h[17];let R;h[18]===A?R=h[19]:(R=/* @__PURE__ */ d(n,{ref:j,svg:/* @__PURE__ */ d(A,{"aria-hidden":!0})}),h[18]=A,h[19]=R);let z;h[20]!==_||h[21]!==w||h[22]!==O||h[23]!==L||h[24]!==R?(z=/* @__PURE__ */ d(`button`,{type:`button`,disabled:_,"data-slot":`password-input-toggle`,"aria-label":`Show value`,"aria-pressed":O,"aria-controls":w,className:`text-body hover:text-strong focus-visible:ring-focus-accent ml-1 cursor-pointer rounded-xs bg-inherit p-0 focus-visible:ring-2 focus-visible:outline-hidden`,onClick:L,children:R}),h[20]=_,h[21]=w,h[22]=O,h[23]=L,h[24]=R,h[25]=z):z=h[25];let B;return h[26]!==_||h[27]!==w||h[28]!==b||h[29]!==x||h[30]!==F||h[31]!==z||h[32]!==k?(B=/* @__PURE__ */ f(i,{"data-slot":F,disabled:_,id:w,type:k,ref:x,...b,children:[I,z]}),h[26]=_,h[27]=w,h[28]=b,h[29]=x,h[30]=F,h[31]=z,h[32]=k,h[33]=B):B=h[33],B};export{i as Input,r as InputCapture,h as PasswordInput,o as isInput};
@@ -0,0 +1 @@
1
+ import{t as e}from"./cx-CK7o_rVv.js";import{t}from"./data-slot-EM6s2WEU.js";import{c as n}from"react/compiler-runtime";import{jsx as r}from"react/jsx-runtime";function i(i){let a=n(14),o,s,c,l;a[0]===i?(o=a[1],s=a[2],c=a[3],l=a[4]):({"data-slot":c,children:o,className:s,...l}=i,a[0]=i,a[1]=o,a[2]=s,a[3]=c,a[4]=l);let u;a[5]===c?u=a[6]:(u=t(c,`kbd`),a[5]=c,a[6]=u);let d;a[7]===s?d=a[8]:(d=e(`[font-kerning:normal] [font-variant-ligatures:common-ligatures_contextual]`,`appearance-none tabular-nums inline-grid place-items-center size-5 bg-neutral-500/15 px-1 rounded text-mono leading-none font-mono`,s),a[7]=s,a[8]=d);let f;return a[9]!==o||a[10]!==l||a[11]!==u||a[12]!==d?(f=/* @__PURE__ */ r(`kbd`,{"data-slot":u,className:d,...l,translate:`no`,children:o}),a[9]=o,a[10]=l,a[11]=u,a[12]=d,a[13]=f):f=a[13],f}export{i as t};
package/dist/kbd.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
1
2
  import { ComponentProps } from "react";
2
3
  //#region src/components/kbd/kbd.d.ts
3
4
  /**
@@ -54,6 +55,6 @@ import { ComponentProps } from "react";
54
55
  * </span>
55
56
  * ```
56
57
  */
57
- declare function Kbd({ children, className, ...props }: Omit<ComponentProps<"kbd">, "translate">): import("react").JSX.Element;
58
+ declare function Kbd({ "data-slot": dataSlot, children, className, ...props }: Omit<ComponentProps<"kbd">, "translate"> & WithDataSlot): import("react").JSX.Element;
58
59
  //#endregion
59
60
  export { Kbd };
package/dist/kbd.js CHANGED
@@ -1 +1 @@
1
- import{t as e}from"./kbd-CJ8hNZfS.js";export{e as Kbd};
1
+ export{t as Kbd}from"./kbd-CLHsJ99p.js";
@@ -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"./booleanish-BfvnW6vy.js";import{c as r}from"react/compiler-runtime";import{jsx as i}from"react/jsx-runtime";const a=a=>{let o=r(26),s,c,l,u,d,f,p,m;o[0]===a?(s=o[1],c=o[2],l=o[3],u=o[4],d=o[5],f=o[6],p=o[7],m=o[8]):({"data-slot":u,"aria-disabled":s,children:c,className:l,disabled:d,onMouseDown:f,ref:m,...p}=a,o[0]=a,o[1]=s,o[2]=c,o[3]=l,o[4]=u,o[5]=d,o[6]=f,o[7]=p,o[8]=m);let h;o[9]!==s||o[10]!==d?(h=n(d??s)||void 0,o[9]=s,o[10]=d,o[11]=h):h=o[11];let g;o[12]===u?g=o[13]:(g=t(u,`label`),o[12]=u,o[13]=g);let _;o[14]===l?_=o[15]:(_=e(`text-strong cursor-pointer text-sm peer-disabled:cursor-default has-disabled:cursor-default data-disabled:cursor-default font-sans`,`[:where(&:not(:has(input,textarea,select,button,[contenteditable])))]:font-medium`,l),o[14]=l,o[15]=_);let v;o[16]===f?v=o[17]:(v=e=>{e.target.closest(`button, input, select, textarea`)||(f?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault())},o[16]=f,o[17]=v);let y;return o[18]!==c||o[19]!==p||o[20]!==m||o[21]!==h||o[22]!==g||o[23]!==_||o[24]!==v?(y=/* @__PURE__ */ i(`label`,{"data-disabled":h,"data-slot":g,className:_,onMouseDown:v,ref:m,...p,children:c}),o[18]=c,o[19]=p,o[20]=m,o[21]=h,o[22]=g,o[23]=_,o[24]=v,o[25]=y):y=o[25],y};export{a as t};
@@ -1,3 +1,4 @@
1
+ import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
1
2
  import { ComponentProps } from "react";
2
3
  //#region src/components/label/label.d.ts
3
4
  type LabelProps = ComponentProps<"label"> & {
@@ -5,7 +6,7 @@ type LabelProps = ComponentProps<"label"> & {
5
6
  * If set, the label will appear disabled.
6
7
  */
7
8
  disabled?: boolean;
8
- };
9
+ } & WithDataSlot;
9
10
  /**
10
11
  * A caption for a form control — input, checkbox, radio, switch, select.
11
12
  * Renders a native `<label>`. Pair every form control with a `Label` so the
@@ -68,6 +69,6 @@ type LabelProps = ComponentProps<"label"> & {
68
69
  * </Label>
69
70
  * ```
70
71
  */
71
- declare const Label: ({ "aria-disabled": _ariaDisabled, children, className, disabled, onMouseDown, ref, ...props }: LabelProps) => import("react").JSX.Element;
72
+ declare const Label: ({ "data-slot": dataSlot, "aria-disabled": _ariaDisabled, children, className, disabled, onMouseDown, ref, ...props }: LabelProps) => import("react").JSX.Element;
72
73
  //#endregion
73
74
  export { Label as t };
package/dist/label.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as Label } from "./label-Bnfe9YJ6.js";
1
+ import { t as Label } from "./label-C-KbNls8.js";
2
2
  export { Label };
package/dist/label.js CHANGED
@@ -1 +1 @@
1
- import{t as e}from"./label-BAy0Mg59.js";export{e as Label};
1
+ export{t as Label}from"./label-5T8i7I4X.js";
@@ -1 +1 @@
1
- import{n as e}from"./compose-refs-sFdxsL7k.js";import{c as t}from"react/compiler-runtime";import{createContext as n,useContext as r,useState as i}from"react";import{jsx as a}from"react/jsx-runtime";const o=n(null);function s(){return r(o)}function c(n){let r=t(11),s,c,l;r[0]===n?(s=r[1],c=r[2],l=r[3]):({children:s,ref:l,...c}=n,r[0]=n,r[1]=s,r[2]=c,r[3]=l);let[u,d]=i(null),f=e(l,d),p;r[4]!==s||r[5]!==u?(p=a(o.Provider,{value:u,children:s}),r[4]=s,r[5]=u,r[6]=p):p=r[6];let m;return r[7]!==f||r[8]!==c||r[9]!==p?(m=a(`div`,{ref:f,...c,children:p}),r[7]=f,r[8]=c,r[9]=p,r[10]=m):m=r[10],m}export{o as n,s as r,c as t};
1
+ import{n as e}from"./compose-refs-sFdxsL7k.js";import{c as t}from"react/compiler-runtime";import{createContext as n,useContext as r,useState as i}from"react";import{jsx as a}from"react/jsx-runtime";const o=n(null);function s(){return r(o)}function c(n){let r=t(11),s,c,l;r[0]===n?(s=r[1],c=r[2],l=r[3]):({children:s,ref:l,...c}=n,r[0]=n,r[1]=s,r[2]=c,r[3]=l);let[u,d]=i(null),f=e(l,d),p;r[4]!==s||r[5]!==u?(p=/* @__PURE__ */ a(o.Provider,{value:u,children:s}),r[4]=s,r[5]=u,r[6]=p):p=r[6];let m;return r[7]!==f||r[8]!==c||r[9]!==p?(m=/* @__PURE__ */ a(`div`,{ref:f,...c,children:p}),r[7]=f,r[8]=c,r[9]=p,r[10]=m):m=r[10],m}export{o as n,s as r,c as t};
@@ -1 +1 @@
1
- import{n as e,r as t,t as n}from"./layer-container-R7aux3n8.js";export{n as LayerContainer,e as LayerContainerContext,t as useLayerContainer};
1
+ export{t as LayerContainer,n as LayerContainerContext,r as useLayerContainer}from"./layer-container-DLf-6eBz.js";
@@ -1,11 +1,11 @@
1
- import { _ as PointShape, a as LegendPrimitiveProps, c as XAxisPrimitiveProps, f as ChartDatum, g as CurveKind, h as ContinuousXScale, i as GridPrimitiveProps, l as YAxisPrimitiveProps, m as ChartSeriesSlot, n as ChartRootBaseProps, o as ReferenceLinePrimitiveProps, p as ChartDatumEvent, r as CopyButtonPrimitiveProps, s as TooltipPrimitiveProps, t as ChartAccessibilityProps, v as SeriesColor } from "./chart-DgaWVBqi.js";
1
+ import { _ as CurveKind, a as GridPrimitiveProps, c as TooltipPrimitiveProps, g as ContinuousXScale, h as ChartSeriesSlot, i as CopyButtonPrimitiveProps, l as XAxisPrimitiveProps, m as ChartDatumEvent, n as ChartMode, o as LegendPrimitiveProps, p as ChartDatum, r as ChartRootBaseProps, s as ReferenceLinePrimitiveProps, t as ChartAccessibilityProps, u as YAxisPrimitiveProps, v as PointShape, y as SeriesColor } from "./chart-23KQ1ZNO.js";
2
2
  //#region src/components/line-chart/line-chart.d.ts
3
3
  /**
4
4
  * Props for {@link LineChart.Root}. Lines encode value by vertical position,
5
5
  * not length from a baseline, so the full y domain stays overridable via
6
6
  * `yDomain` — and lines never stack, so there is no `stacked` prop.
7
7
  */
8
- type LineChartRootProps<TDatum extends ChartDatum = ChartDatum> = Omit<ChartRootBaseProps, "stacked"> & ChartAccessibilityProps & {
8
+ type LineChartRootProps<TDatum extends ChartDatum = ChartDatum, TMode extends ChartMode = "interactive"> = Omit<ChartRootBaseProps, "stacked"> & ChartAccessibilityProps<TMode> & {
9
9
  /** Rows of data; each `LineChart.Line` reads one numeric key per row. */
10
10
  data: readonly TDatum[];
11
11
  /** The key of each row's x value. */
@@ -106,19 +106,41 @@ type LineChartCopyButtonProps = CopyButtonPrimitiveProps;
106
106
  * The root of a line chart: owns the data, the scales, the canvas renderer,
107
107
  * and the entire interaction contract (a crosshair snapped to the nearest x
108
108
  * with a tooltip reading every series, keyboard stepping with polite
109
- * announcements, an sr-only data table, Enter/Space + click activation).
110
- * Rendering is canvas with min/max decimation, so series of 100k+ points stay
111
- * smooth. Compose the chrome and series parts as children.
109
+ * announcements, an sr-only description, an sr-only data table, Enter/Space +
110
+ * click activation). Rendering is canvas with min/max decimation, so series
111
+ * of 100k+ points stay smooth. Compose the chrome and series parts as
112
+ * children.
113
+ *
114
+ * A Root mounts dormant: a shell of the plot, the named overlay, and its
115
+ * sr-only description. It builds its canvas, its hover layers, and its engine
116
+ * once it comes within one viewport of the visible area, takes focus, or
117
+ * prints (on-screen charts first, a few milliseconds at a time), and it mounts
118
+ * the sr-only data table once focus lands inside it. A list of charts pays
119
+ * for the ones a reader can see, and a page of sparklines holds no hidden
120
+ * tables until a reader asks for one.
112
121
  *
113
122
  * The Root's own subtree is addressable by slot: `line-chart` on the wrapper,
114
123
  * then `line-chart-plot`, `line-chart-canvas`, `line-chart-crosshair`,
115
- * `line-chart-hover-band`, `line-chart-markers`, `line-chart-tooltip`, and
116
- * `line-chart-data-table`. A line chart shows the crosshair and one marker dot
117
- * per series, and never the band, but all three layers mount on every kind.
124
+ * `line-chart-hover-band`, `line-chart-markers`, `line-chart-tooltip`,
125
+ * `line-chart-description`, and, once focus lands inside the chart,
126
+ * `line-chart-data-table`. A line chart shows the crosshair and one marker
127
+ * dot per series, and never the band. The canvas and the three layers are
128
+ * engine-owned: absent from server HTML and from a dormant chart, inserted at
129
+ * activation (near the viewport, on focus, or before print). A static or
130
+ * decorative chart inserts the canvas alone. The tooltip
131
+ * surface mounts on the first hover or keyboard step and stays.
118
132
  * Each hover dot carries `chart-active-point` plus a `data-shape` of
119
133
  * `"circle"`, `"square"`, `"triangle"`, `"diamond"`, `"triangle-down"`,
120
134
  * `"plus"`, `"cross"`, or `"star"`, naming the glyph its series wears.
121
135
  *
136
+ * **Data attributes:**
137
+ *
138
+ * | Data Attribute | Value | Description |
139
+ * | --- | --- | --- |
140
+ * | `data-slot` | `"line-chart-description"` | The `sr-only` description the overlay's `aria-describedby` points at: the chart kind, the point count, the x range, the series labels, and, on an interactive chart, the keyboard instructions. Omitted when `mode="decorative"`. |
141
+ * | `data-slot` | `"line-chart-data-table"` | The `sr-only` data table. Mounts once focus lands inside the chart (`data-state` flips to `"engaged"`) and stays. Interactive charts only. |
142
+ * | `data-state` | `"dormant"` \| `"engaged"` | On the Root. Flips to `"engaged"` once focus lands inside the chart, and never flips back. The data table mounts with it. Visibility paints the chart but never flips it. Interactive charts only. |
143
+ *
122
144
  * @see https://mantle.ngrok.com/components/charts/line-chart#linechartroot
123
145
  *
124
146
  * @example
@@ -140,7 +162,7 @@ type LineChartCopyButtonProps = CopyButtonPrimitiveProps;
140
162
  * </LineChart.Root>
141
163
  * ```
142
164
  */
143
- declare const Root: <TDatum extends ChartDatum = ChartDatum>(props: LineChartRootProps<TDatum>) => import("react").JSX.Element;
165
+ declare const Root: <TDatum extends ChartDatum = ChartDatum, TMode extends ChartMode = "interactive">(props: LineChartRootProps<TDatum, TMode>) => import("react").JSX.Element;
144
166
  /**
145
167
  * One line series. Renders nothing itself — it registers the series with the
146
168
  * chart, which paints it on canvas. Compose one `Line` per series; `null` and
@@ -329,10 +351,13 @@ declare const CopyButton: (props: LineChartCopyButtonProps) => import("react").J
329
351
  * A canvas-rendered line chart for trends over a continuous x — time above
330
352
  * all. Series colors come from the theme's validated `--color-chart-*`
331
353
  * tokens; lines keep a fixed slot color for the chart's lifetime even as
332
- * other series are filtered in and out. Interaction — a crosshair snapped to
333
- * the nearest x with an every-series tooltip, keyboard stepping, aria-live
334
- * announcements, and an sr-only data table — ships with `Root`
335
- * unconditionally. Min/max decimation keeps 100k+ point series smooth.
354
+ * other series are filtered in and out. Interaction ships with `Root`
355
+ * unconditionally: a crosshair snapped to the nearest x with an every-series
356
+ * tooltip, keyboard stepping, aria-live announcements, and an sr-only
357
+ * description. A Root paints and allocates its canvas once it comes within
358
+ * one viewport of the visible area or takes focus, and it mounts its sr-only
359
+ * data table once focus lands inside it. Min/max decimation keeps 100k+ point
360
+ * series smooth.
336
361
  *
337
362
  * **CSS variables (public API):**
338
363
  *
@@ -345,7 +370,7 @@ declare const CopyButton: (props: LineChartCopyButtonProps) => import("react").J
345
370
  * `LineChart.Line` sets one series and takes any CSS color. To restyle a slot itself,
346
371
  * redeclare its token on `Root` —
347
372
  * `className="[--color-chart-1:var(--color-brand)]"`. The engine resolves every
348
- * token through a probe inside `Root`, so a declaration scoped there wins for
373
+ * token from `Root`'s computed style, so a declaration scoped there wins for
349
374
  * that chart and leaves every other chart on the page alone.
350
375
  *
351
376
  * @see https://mantle.ngrok.com/components/charts/line-chart
@@ -556,4 +581,4 @@ declare const LineChart: {
556
581
  readonly CopyButton: typeof CopyButton;
557
582
  };
558
583
  //#endregion
559
- export { type ChartDatumEvent, LineChart, type LineChartCopyButtonProps, type LineChartGridProps, type LineChartLegendProps, type LineChartLineProps, type LineChartReferenceLineProps, type LineChartRootProps, type LineChartTooltipProps, type LineChartXAxisProps, type LineChartYAxisProps };
584
+ export { type ChartDatumEvent, type ChartMode, LineChart, type LineChartCopyButtonProps, type LineChartGridProps, type LineChartLegendProps, type LineChartLineProps, type LineChartReferenceLineProps, type LineChartRootProps, type LineChartTooltipProps, type LineChartXAxisProps, type LineChartYAxisProps };
@@ -1 +1 @@
1
- import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"./chart-aZLMj4xx.js";import{c as l}from"react/compiler-runtime";import{jsx as u}from"react/jsx-runtime";const d={Root:e=>{let t=l(2),n;return t[0]===e?n=t[1]:(n=u(o,{kind:`line`,componentName:`LineChart`,slotName:`line-chart`,...e}),t[0]=e,t[1]=n),n},Line:e=>a(`LineChart.Line`,`line`,e),Grid:e=>n(`LineChart.Grid`,e),XAxis:e=>t(`LineChart.XAxis`,e),YAxis:e=>r(`LineChart.YAxis`,e),ReferenceLine:t=>e(`LineChart.ReferenceLine`,t),Tooltip:e=>s(`LineChart.Tooltip`,e),Legend:e=>{let t=l(2),n;return t[0]===e?n=t[1]:(n=u(i,{partName:`LineChart.Legend`,slotName:`line-chart`,...e}),t[0]=e,t[1]=n),n},CopyButton:e=>{let t=l(2),n;return t[0]===e?n=t[1]:(n=u(c,{partName:`LineChart.CopyButton`,slotName:`line-chart`,...e}),t[0]=e,t[1]=n),n}};export{d as LineChart};
1
+ import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"./chart-BRkJfptA.js";import{c as l}from"react/compiler-runtime";import{jsx as u}from"react/jsx-runtime";const d={Root:e=>{let t=l(2),n;return t[0]===e?n=t[1]:(n=/* @__PURE__ */ u(o,{kind:`line`,componentName:`LineChart`,slotName:`line-chart`,...e}),t[0]=e,t[1]=n),n},Line:e=>a(`LineChart.Line`,`line`,e),Grid:e=>n(`LineChart.Grid`,e),XAxis:e=>t(`LineChart.XAxis`,e),YAxis:e=>r(`LineChart.YAxis`,e),ReferenceLine:t=>e(`LineChart.ReferenceLine`,t),Tooltip:e=>s(`LineChart.Tooltip`,e),Legend:e=>{let t=l(2),n;return t[0]===e?n=t[1]:(n=/* @__PURE__ */ u(i,{partName:`LineChart.Legend`,slotName:`line-chart`,...e}),t[0]=e,t[1]=n),n},CopyButton:e=>{let t=l(2),n;return t[0]===e?n=t[1]:(n=/* @__PURE__ */ u(c,{partName:`LineChart.CopyButton`,slotName:`line-chart`,...e}),t[0]=e,t[1]=n),n}};export{d as LineChart};
@@ -0,0 +1 @@
1
+ import{n as e}from"./compose-refs-sFdxsL7k.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"./interactive-target-BXScNeOr.js";import{c as a}from"react/compiler-runtime";import{Children as o,createContext as s,isValidElement as c,useContext as l,useEffect as u,useId as d,useRef as f,useState as p}from"react";import m from"tiny-invariant";import{jsx as h}from"react/jsx-runtime";import{useVirtualizer as g}from"@tanstack/react-virtual";const _=s(null);function v(e){let t=l(_);return m(t,`List.${e} must be composed inside List.Root / List.VirtualRoot (or a SelectableList viewport).`),t}const y=s(null),b=s(null);function x(e){return c(e)?e.props.disabled===!0:!1}function S({start:e,step:t,count:n,isItemDisabled:r}){for(let i=e;i>=0&&i<n;i+=t)if(!r(i))return i;return-1}const C=`a[href]:not([tabindex="-1"]), button:not(:disabled):not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])`;function w(e){let t=e.matches(C)?e:e.querySelector(C);return t instanceof HTMLElement?t:null}function T(e){let t=e instanceof Element?e.closest(`[data-index]`):null;if(t==null)return null;let n=Number(t.getAttribute(`data-index`));return!Number.isInteger(n)||n<0?null:{item:t,index:n}}function E({count:e,isItemDisabled:t,focusItemAt:n}){return{onKeyDown:r=>{if(r.target instanceof HTMLElement&&(r.target.isContentEditable||r.target.tagName===`INPUT`||r.target.tagName===`TEXTAREA`||r.target.tagName===`SELECT`)||r.altKey||r.ctrlKey||r.metaKey)return;let i=T(r.target);if(i==null)return;let a=-1,o=1;switch(r.key){case`ArrowDown`:o=1,a=S({start:i.index+1,step:o,count:e,isItemDisabled:t});break;case`ArrowUp`:o=-1,a=S({start:i.index-1,step:o,count:e,isItemDisabled:t});break;case`Home`:o=1,a=S({start:0,step:o,count:e,isItemDisabled:t});break;case`End`:o=-1,a=S({start:e-1,step:o,count:e,isItemDisabled:t});break;default:return}r.preventDefault(),a>=0&&a!==i.index&&n(a,o)}}}function D(e){let t=a(41),{count:n,enabled:r,isItemDisabled:o,onActivate:s,itemId:c,scrollToIndex:l}=e,[d,m]=p(-1),h=f(!1),g=d>=n?n-1:d,_,v;if(t[0]!==d||t[1]!==n?(_=()=>{d>=n&&m(n-1)},v=[d,n],t[0]=d,t[1]=n,t[2]=_,t[3]=v):(_=t[2],v=t[3]),u(_,v),!r){let e;return t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e={activeIndex:-1,collectionProps:{}},t[4]=e):e=t[4],e}let y;t[5]===o?y=t[6]:(y=e=>o?.(e)??!1,t[5]=o,t[6]=y);let b=y,x;t[7]!==n||t[8]!==b?(x=(e,t)=>S({start:e,step:t,count:n,isItemDisabled:b}),t[7]=n,t[8]=b,t[9]=x):x=t[9];let C=x,w;t[10]===l?w=t[11]:(w=e=>{e<0||(m(e),l(e))},t[10]=l,t[11]=w);let E=w,D;t[12]!==g||t[13]!==c?(D=g>=0?c(g):void 0,t[12]=g,t[13]=c,t[14]=D):D=t[14];let O;t[15]===b?O=t[16]:(O=e=>{let t=T(e.target);t!=null&&!b(t.index)?(m(t.index),h.current=!1):h.current=!0},t[15]=b,t[16]=O);let k;t[17]!==b||t[18]!==s?(k=e=>{if(e.defaultPrevented)return;let t=T(e.target);t==null||b(t.index)||i(e.target,t.item)||(m(t.index),s?.(t.index))},t[17]=b,t[18]=s,t[19]=k):k=t[19];let A;t[20]!==n||t[21]!==C||t[22]!==b?(A=e=>{if(e.target!==e.currentTarget){let t=T(e.target);t!=null&&!b(t.index)&&m(t.index),e.target instanceof HTMLElement&&e.target.tabIndex>=0||e.currentTarget.focus({preventScroll:!0}),h.current=!1;return}let t=h.current;h.current=!1,n>0&&!t&&m(e=>e<0?C(0,1):e)},t[20]=n,t[21]=C,t[22]=b,t[23]=A):A=t[23];let j;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(j=e=>{e.currentTarget.contains(e.relatedTarget)||(m(-1),h.current=!1)},t[24]=j):j=t[24];let M;t[25]!==E||t[26]!==g||t[27]!==n||t[28]!==C||t[29]!==b||t[30]!==s?(M=e=>{if(e.target===e.currentTarget&&!(e.altKey||e.ctrlKey||e.metaKey)){h.current=!1;bb104:switch(e.key){case`ArrowDown`:e.preventDefault(),E(C(g<0?0:g+1,1));break bb104;case`ArrowUp`:e.preventDefault(),E(g<0?C(0,1):C(g-1,-1));break bb104;case`Home`:e.preventDefault(),E(C(0,1));break bb104;case`End`:e.preventDefault(),E(C(n-1,-1));break bb104;case` `:case`Enter`:!e.repeat&&g>=0&&!b(g)&&(e.preventDefault(),s?.(g));break bb104}}},t[25]=E,t[26]=g,t[27]=n,t[28]=C,t[29]=b,t[30]=s,t[31]=M):M=t[31];let N;t[32]!==M||t[33]!==D||t[34]!==O||t[35]!==k||t[36]!==A?(N={tabIndex:0,"aria-activedescendant":D,onMouseDown:O,onClick:k,onFocus:A,onBlur:j,onKeyDown:M},t[32]=M,t[33]=D,t[34]=O,t[35]=k,t[36]=A,t[37]=N):N=t[37];let P;return t[38]!==g||t[39]!==N?(P={activeIndex:g,collectionProps:N},t[38]=g,t[39]=N,t[40]=P):P=t[40],P}function O(e){let t=a(25),{count:n,focusItemAt:r,isItemDisabled:i,onActivate:o,itemId:s,scrollToIndex:c,semantics:l}=e,u=d(),f;t[0]===l?f=t[1]:(f={semantics:l},t[0]=l,t[1]=f);let p=f,m;t[2]!==u||t[3]!==s?(m=s??(e=>`${u}-item-${e}`),t[2]=u,t[3]=s,t[4]=m):m=t[4];let h=m,g=l===`grid`,_;t[5]!==n||t[6]!==i||t[7]!==o||t[8]!==h||t[9]!==c||t[10]!==g?(_={count:n,enabled:g,isItemDisabled:i,onActivate:o,itemId:h,scrollToIndex:c},t[5]=n,t[6]=i,t[7]=o,t[8]=h,t[9]=c,t[10]=g,t[11]=_):_=t[11];let{activeIndex:v,collectionProps:y}=D(_),b=s==null?h:null,x;t[12]!==v||t[13]!==b?(x={activeIndex:v,stampItemId:b},t[12]=v,t[13]=b,t[14]=x):x=t[14];let S=x,C;t[15]!==n||t[16]!==r||t[17]!==y||t[18]!==i||t[19]!==l?(C=l===`list`?E({count:n,isItemDisabled:i,focusItemAt:r}):y,t[15]=n,t[16]=r,t[17]=y,t[18]=i,t[19]=l,t[20]=C):C=t[20];let w=C,T;return t[21]!==w||t[22]!==S||t[23]!==p?(T={collectionProps:w,gridNav:S,listContext:p},t[21]=w,t[22]=S,t[23]=p,t[24]=T):T=t[24],T}function k(e){let r=a(26),{"aria-label":i,"aria-labelledby":o,"aria-multiselectable":s,children:c,className:l,collectionProps:u,gridNav:d,listContext:f,viewportProps:p,ref:m}=e,g,v;r[0]===p?(g=r[1],v=r[2]):({"data-slot":g,...v}=p,r[0]=p,r[1]=g,r[2]=v);let y;r[3]===g?y=r[4]:(y=n(g,`list`),r[3]=g,r[4]=y);let x;r[5]===l?x=r[6]:(x=t(`border-popover bg-popover scrollbar overscroll-none overflow-x-hidden overflow-y-auto rounded-md border p-1`,l),r[5]=l,r[6]=x);let S=f.semantics===`grid`?`grid`:`list`,C;r[7]!==i||r[8]!==o||r[9]!==s||r[10]!==c||r[11]!==u||r[12]!==S?(C=/* @__PURE__ */ h(`div`,{"data-slot":`list-collection`,role:S,"aria-label":i,"aria-labelledby":o,"aria-multiselectable":s,className:`relative flex w-full flex-col gap-px outline-hidden`,...u,children:c}),r[7]=i,r[8]=o,r[9]=s,r[10]=c,r[11]=u,r[12]=S,r[13]=C):C=r[13];let w;r[14]!==m||r[15]!==y||r[16]!==x||r[17]!==C||r[18]!==v?(w=/* @__PURE__ */ h(`div`,{ref:m,"data-slot":y,className:x,...v,children:C}),r[14]=m,r[15]=y,r[16]=x,r[17]=C,r[18]=v,r[19]=w):w=r[19];let T;r[20]!==d||r[21]!==w?(T=/* @__PURE__ */ h(b.Provider,{value:d,children:w}),r[20]=d,r[21]=w,r[22]=T):T=r[22];let E;return r[23]!==f||r[24]!==T?(E=/* @__PURE__ */ h(_.Provider,{value:f,children:T}),r[23]=f,r[24]=T,r[25]=E):E=r[25],E}const A=i=>{let o=a(43),s,c,u,d,f,p,m,g,_;o[0]===i?(s=o[1],c=o[2],u=o[3],d=o[4],f=o[5],p=o[6],m=o[7],g=o[8],_=o[9]):({"data-slot":d,asChild:s,children:c,className:u,disabled:g,ref:p,selected:_,style:m,...f}=i,o[0]=i,o[1]=s,o[2]=c,o[3]=u,o[4]=d,o[5]=f,o[6]=p,o[7]=m,o[8]=g,o[9]=_);let x=g!==void 0&&g,S=_!==void 0&&_,{semantics:C}=v(`Item`),w=l(y),T=l(b),E=C===`grid`,D=s?r:`div`,O=w?.placement??null,k=w?.index,A=E&&T!=null&&k!=null&&T.activeIndex===k,j=O?.measureRef??null,M=e(p,j),N;o[10]===d?N=o[11]:(N=n(d,`list-item`),o[10]=d,o[11]=N);let P;o[12]!==T||o[13]!==k||o[14]!==E||o[15]!==f?(P=E&&k!=null&&T?.stampItemId!=null?T.stampItemId(k):f.id,o[12]=T,o[13]=k,o[14]=E,o[15]=f,o[16]=P):P=o[16];let F=S?`selected`:`unselected`,I=x||void 0,L=A||void 0,R=E?`row`:`listitem`,z=E?S:void 0,B=E&&x?!0:f[`aria-disabled`],V=E?O?.posInSet:void 0,H=E?void 0:O?.posInSet,U=E?void 0:O?.setSize,W=!x&&`hover:bg-active-menu-item hover:data-[state=selected]:bg-active-selected-menu-item`,G=!E&&!x&&`has-[:focus-visible]:bg-active-menu-item has-[:focus-visible]:data-[state=selected]:bg-active-selected-menu-item`,K;o[17]!==u||o[18]!==W||o[19]!==G?(K=t(`rounded-md data-[state=selected]:bg-selected-menu-item data-[active]:bg-active-menu-item data-[active]:data-[state=selected]:bg-active-selected-menu-item`,W,G,u),o[17]=u,o[18]=W,o[19]=G,o[20]=K):K=o[20];let q;o[21]!==O||o[22]!==m?(q=O?{...m,...O.style}:m,o[21]=O,o[22]=m,o[23]=q):q=o[23];let J;return o[24]!==D||o[25]!==c||o[26]!==M||o[27]!==k||o[28]!==f||o[29]!==B||o[30]!==V||o[31]!==H||o[32]!==U||o[33]!==K||o[34]!==q||o[35]!==N||o[36]!==P||o[37]!==F||o[38]!==I||o[39]!==L||o[40]!==R||o[41]!==z?(J=/* @__PURE__ */ h(D,{ref:M,"data-slot":N,...f,id:P,"data-index":k,"data-state":F,"data-disabled":I,"data-active":L,role:R,"aria-selected":z,"aria-disabled":B,"aria-rowindex":V,"aria-posinset":H,"aria-setsize":U,className:K,style:q,children:c}),o[24]=D,o[25]=c,o[26]=M,o[27]=k,o[28]=f,o[29]=B,o[30]=V,o[31]=H,o[32]=U,o[33]=K,o[34]=q,o[35]=N,o[36]=P,o[37]=F,o[38]=I,o[39]=L,o[40]=R,o[41]=z,o[42]=J):J=o[42],J};function j(e){let t=a(5),{children:n,index:r}=e,i;t[0]===r?i=t[1]:(i={index:r,placement:null},t[0]=r,t[1]=i);let o=i,s;return t[2]!==n||t[3]!==o?(s=/* @__PURE__ */ h(y.Provider,{value:o,children:n}),t[2]=n,t[3]=o,t[4]=s):s=t[4],s}const M=t=>{let n=a(40),r,i,s,l,u,d,p,m,g,_,v;n[0]===t?(r=n[1],i=n[2],s=n[3],l=n[4],u=n[5],d=n[6],p=n[7],m=n[8],g=n[9],_=n[10],v=n[11]):({"aria-label":r,"aria-labelledby":i,"aria-multiselectable":s,children:l,className:u,isItemDisabled:d,onActivate:m,itemId:p,ref:_,semantics:v,...g}=t,n[0]=t,n[1]=r,n[2]=i,n[3]=s,n[4]=l,n[5]=u,n[6]=d,n[7]=p,n[8]=m,n[9]=g,n[10]=_,n[11]=v);let y=v===void 0?`list`:v,b=f(null),S=e(b,_),C;n[12]===l?C=n[13]:(C=o.toArray(l).filter(c),n[12]=l,n[13]=C);let T=C,E;n[14]===Symbol.for(`react.memo_cache_sentinel`)?(E=e=>{b.current?.querySelector(`[data-index="${e}"]`)?.scrollIntoView({block:`nearest`})},n[14]=E):E=n[14];let D=E,A;n[15]===T.length?A=n[16]:(A=(e,t)=>{let n=b.current;if(n!=null)for(let r=e;r>=0&&r<T.length;r+=t){let e=n.querySelector(`[data-index="${r}"]`);if(e==null)continue;let t=w(e);if(t!=null){t.focus({preventScroll:!0}),e.scrollIntoView({block:`nearest`});return}}},n[15]=T.length,n[16]=A);let j=A,M;n[17]!==d||n[18]!==T?(M=d??(e=>x(T[e])),n[17]=d,n[18]=T,n[19]=M):M=n[19];let P;n[20]!==j||n[21]!==T.length||n[22]!==p||n[23]!==m||n[24]!==y||n[25]!==M?(P={count:T.length,focusItemAt:j,isItemDisabled:M,onActivate:m,itemId:p,scrollToIndex:D,semantics:y},n[20]=j,n[21]=T.length,n[22]=p,n[23]=m,n[24]=y,n[25]=M,n[26]=P):P=n[26];let{collectionProps:F,gridNav:I,listContext:L}=O(P),R;n[27]===T?R=n[28]:(R=T.map(N),n[27]=T,n[28]=R);let z;return n[29]!==r||n[30]!==i||n[31]!==s||n[32]!==u||n[33]!==F||n[34]!==S||n[35]!==I||n[36]!==L||n[37]!==g||n[38]!==R?(z=/* @__PURE__ */ h(k,{"aria-label":r,"aria-labelledby":i,"aria-multiselectable":s,className:u,collectionProps:F,gridNav:I,listContext:L,viewportProps:g,ref:S,children:R}),n[29]=r,n[30]=i,n[31]=s,n[32]=u,n[33]=F,n[34]=S,n[35]=I,n[36]=L,n[37]=g,n[38]=R,n[39]=z):z=n[39],z};function N(e,t){return/* @__PURE__ */ h(j,{index:t,children:e},e.key??t)}function P({virtualItem:e,count:t,measureRef:n}){return{posInSet:e.index+1,setSize:t,measureRef:n,style:{position:`absolute`,left:0,top:0,width:`100%`,transform:`translateY(${e.start}px)`}}}function F(e){let t=a(10),{children:n,count:r,measureRef:i,virtualItem:o}=e,s=o.index,c;t[0]!==r||t[1]!==i||t[2]!==o?(c=P({virtualItem:o,count:r,measureRef:i}),t[0]=r,t[1]=i,t[2]=o,t[3]=c):c=t[3];let l;t[4]!==c||t[5]!==o.index?(l={index:s,placement:c},t[4]=c,t[5]=o.index,t[6]=l):l=t[6];let u=l,d;return t[7]!==n||t[8]!==u?(d=/* @__PURE__ */ h(y.Provider,{value:u,children:n}),t[7]=n,t[8]=u,t[9]=d):d=t[9],d}function I({count:e,estimateItemHeight:t,getItemKey:n,overscan:r,scrollRef:i}){"use no memo";let a=g({count:e,getScrollElement:()=>i.current,estimateSize:()=>t,getItemKey:n,overscan:r,gap:1,initialRect:{width:0,height:t*(r+1)}});return{virtualItems:a.getVirtualItems(),totalSize:a.getTotalSize(),measureElement:a.measureElement,scrollToIndex:a.scrollToIndex}}const L=t=>{let n=a(68),r,i,s,l,d,p,m,g,_,v,y,b,S;n[0]===t?(r=n[1],i=n[2],s=n[3],l=n[4],d=n[5],p=n[6],m=n[7],g=n[8],_=n[9],v=n[10],y=n[11],b=n[12],S=n[13]):({"aria-label":r,"aria-labelledby":i,"aria-multiselectable":s,children:l,className:d,estimateItemHeight:y,isItemDisabled:p,onActivate:g,overscan:b,itemId:m,ref:v,semantics:S,..._}=t,n[0]=t,n[1]=r,n[2]=i,n[3]=s,n[4]=l,n[5]=d,n[6]=p,n[7]=m,n[8]=g,n[9]=_,n[10]=v,n[11]=y,n[12]=b,n[13]=S);let C=y===void 0?44:y,T=b===void 0?8:b,E=S===void 0?`list`:S,D=f(null),A=e(D,v),j;n[14]===l?j=n[15]:(j=o.toArray(l).filter(c),n[14]=l,n[15]=j);let M=j,N=M.length,P;n[16]===M?P=n[17]:(P=e=>M[e]?.key??e,n[16]=M,n[17]=P);let L=P,R;n[18]!==N||n[19]!==C||n[20]!==L||n[21]!==T?(R={count:N,estimateItemHeight:C,getItemKey:L,overscan:T,scrollRef:D},n[18]=N,n[19]=C,n[20]=L,n[21]=T,n[22]=R):R=n[22];let{virtualItems:z,totalSize:B,measureElement:V,scrollToIndex:H}=I(R),U;n[23]===H?U=n[24]:(U=e=>H(e,{align:`auto`}),n[23]=H,n[24]=U);let W=U,G=f(null),K,q;n[25]===Symbol.for(`react.memo_cache_sentinel`)?(K=()=>()=>{G.current!=null&&cancelAnimationFrame(G.current)},q=[],n[25]=K,n[26]=q):(K=n[25],q=n[26]),u(K,q);let J;n[27]!==N||n[28]!==W?(J=(e,t)=>{G.current!=null&&(cancelAnimationFrame(G.current),G.current=null);let n=e,r=0,i=()=>{G.current=null;let e=D.current;if(e==null||n<0||n>=N)return;W(n);let a=e.querySelector(`[data-index="${n}"]`);if(a!=null){let e=w(a);if(e!=null){e.focus({preventScroll:!0});return}n+=t,r=0}r+=1,r<10&&(G.current=requestAnimationFrame(i))};i()},n[27]=N,n[28]=W,n[29]=J):J=n[29];let ee=J,Y;n[30]!==p||n[31]!==M?(Y=p??(e=>x(M[e])),n[30]=p,n[31]=M,n[32]=Y):Y=n[32];let X;n[33]!==N||n[34]!==ee||n[35]!==m||n[36]!==g||n[37]!==W||n[38]!==E||n[39]!==Y?(X={count:N,focusItemAt:ee,isItemDisabled:Y,onActivate:g,itemId:m,scrollToIndex:W,semantics:E},n[33]=N,n[34]=ee,n[35]=m,n[36]=g,n[37]=W,n[38]=E,n[39]=Y,n[40]=X):X=n[40];let{collectionProps:te,gridNav:ne,listContext:re}=O(X),ie=z.some(e=>e.index===ne.activeIndex)?te[`aria-activedescendant`]:void 0,ae=E===`grid`?N:void 0,oe=`${B}px`,Z;n[41]===oe?Z=n[42]:(Z={height:oe},n[41]=oe,n[42]=Z);let Q;n[43]!==te||n[44]!==ie||n[45]!==ae||n[46]!==Z?(Q={...te,"aria-activedescendant":ie,"aria-rowcount":ae,style:Z},n[43]=te,n[44]=ie,n[45]=ae,n[46]=Z,n[47]=Q):Q=n[47];let $;if(n[48]!==N||n[49]!==M||n[50]!==V||n[51]!==z){let e;n[53]!==N||n[54]!==M||n[55]!==V?(e=e=>{let t=M[e.index];return t==null?null:/* @__PURE__ */ h(F,{virtualItem:e,count:N,measureRef:V,children:t},e.key)},n[53]=N,n[54]=M,n[55]=V,n[56]=e):e=n[56],$=z.map(e),n[48]=N,n[49]=M,n[50]=V,n[51]=z,n[52]=$}else $=n[52];let se;return n[57]!==r||n[58]!==i||n[59]!==s||n[60]!==d||n[61]!==A||n[62]!==ne||n[63]!==re||n[64]!==_||n[65]!==Q||n[66]!==$?(se=/* @__PURE__ */ h(k,{"aria-label":r,"aria-labelledby":i,"aria-multiselectable":s,className:d,collectionProps:Q,gridNav:ne,listContext:re,viewportProps:_,ref:A,children:$}),n[57]=r,n[58]=i,n[59]=s,n[60]=d,n[61]=A,n[62]=ne,n[63]=re,n[64]=_,n[65]=Q,n[66]=$,n[67]=se):se=n[67],se};export{A as n,M as r,L as t};
package/dist/list.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { n as WithAsChild } from "./as-child-D23mGo4f.js";
2
+ import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
2
3
  import { CSSProperties, ComponentProps, ReactNode, Ref } from "react";
3
4
  //#region src/components/list/primitive.d.ts
4
5
  /**
@@ -267,7 +268,7 @@ declare const Item: ({ asChild, className, current, disabled, onClick, ref, ...p
267
268
  * </List.Root>
268
269
  * ```
269
270
  */
270
- declare const ItemTitle: ({ className, ref, ...props }: ComponentProps<"span">) => import("react").JSX.Element;
271
+ declare const ItemTitle: ({ "data-slot": dataSlot, className, ref, ...props }: ComponentProps<"span"> & WithDataSlot) => import("react").JSX.Element;
271
272
  /**
272
273
  * The de-emphasized sub-line inside a `List.Item`, in the muted body color. A
273
274
  * styled `<span>`.
@@ -286,7 +287,7 @@ declare const ItemTitle: ({ className, ref, ...props }: ComponentProps<"span">)
286
287
  * </List.Root>
287
288
  * ```
288
289
  */
289
- declare const ItemDescription: ({ className, ref, ...props }: ComponentProps<"span">) => import("react").JSX.Element;
290
+ declare const ItemDescription: ({ "data-slot": dataSlot, className, ref, ...props }: ComponentProps<"span"> & WithDataSlot) => import("react").JSX.Element;
290
291
  /**
291
292
  * A scrollable, optionally-virtualized list of clickable items — the action /
292
293
  * navigation counterpart to `SelectableList` (e.g. an account switcher or SSO
package/dist/list.js CHANGED
@@ -1 +1 @@
1
- import{t as e}from"./cx-0HCjnNv1.js";import{t}from"./slot-BsvE2ntj.js";import{n,r,t as i}from"./list-BleZ-43e.js";import{c as a}from"react/compiler-runtime";import{jsx as o}from"react/jsx-runtime";const s={Root:e=>{let t=a(2),n;return t[0]===e?n=t[1]:(n=o(r,{semantics:`list`,...e}),t[0]=e,t[1]=n),n},VirtualRoot:e=>{let t=a(2),n;return t[0]===e?n=t[1]:(n=o(i,{semantics:`list`,...e}),t[0]=e,t[1]=n),n},Item:r=>{let i=a(34),s,l,u,d,f,p,m;i[0]===r?(s=i[1],l=i[2],u=i[3],d=i[4],f=i[5],p=i[6],m=i[7]):({asChild:s,className:l,current:u,disabled:d,onClick:f,ref:m,...p}=r,i[0]=r,i[1]=s,i[2]=l,i[3]=u,i[4]=d,i[5]=f,i[6]=p,i[7]=m);let h=s?t:`button`,g=u||void 0,_;i[8]!==s||i[9]!==d?(_=s?{"aria-disabled":d||void 0,tabIndex:d?-1:void 0}:{type:`button`,disabled:d},i[8]=s,i[9]=d,i[10]=_):_=i[10];let v;i[11]!==s||i[12]!==d||i[13]!==f?(v=e=>{if(s&&d){e.preventDefault(),e.stopPropagation();return}f?.(e)},i[11]=s,i[12]=d,i[13]=f,i[14]=v):v=i[14];let y;i[15]===l?y=i[16]:(y=e(`flex w-full cursor-pointer flex-col gap-0.5 rounded-md bg-transparent px-2 py-1.5 text-left text-sm`,`disabled:cursor-default disabled:opacity-50 aria-disabled:cursor-default aria-disabled:opacity-50 aria-disabled:pointer-events-none`,`focus-visible:outline-hidden`,l),i[15]=l,i[16]=y);let b;i[17]!==s||i[18]!==d||i[19]!==p?(b=s&&d?c:p.onClickCapture,i[17]=s,i[18]=d,i[19]=p,i[20]=b):b=i[20];let x;i[21]!==h||i[22]!==p||i[23]!==m||i[24]!==g||i[25]!==_||i[26]!==v||i[27]!==y||i[28]!==b?(x=o(h,{ref:m,"data-slot":`list-item-control`,"aria-current":g,..._,onClick:v,className:y,...p,onClickCapture:b}),i[21]=h,i[22]=p,i[23]=m,i[24]=g,i[25]=_,i[26]=v,i[27]=y,i[28]=b,i[29]=x):x=i[29];let S;return i[30]!==u||i[31]!==d||i[32]!==x?(S=o(n,{selected:u,disabled:d,children:x}),i[30]=u,i[31]=d,i[32]=x,i[33]=S):S=i[33],S},ItemTitle:t=>{let n=a(10),r,i,s;n[0]===t?(r=n[1],i=n[2],s=n[3]):({className:r,ref:s,...i}=t,n[0]=t,n[1]=r,n[2]=i,n[3]=s);let c;n[4]===r?c=n[5]:(c=e(`text-strong font-medium`,r),n[4]=r,n[5]=c);let l;return n[6]!==i||n[7]!==s||n[8]!==c?(l=o(`span`,{ref:s,"data-slot":`list-item-title`,className:c,...i}),n[6]=i,n[7]=s,n[8]=c,n[9]=l):l=n[9],l},ItemDescription:t=>{let n=a(10),r,i,s;n[0]===t?(r=n[1],i=n[2],s=n[3]):({className:r,ref:s,...i}=t,n[0]=t,n[1]=r,n[2]=i,n[3]=s);let c;n[4]===r?c=n[5]:(c=e(`text-body leading-4`,r),n[4]=r,n[5]=c);let l;return n[6]!==i||n[7]!==s||n[8]!==c?(l=o(`span`,{ref:s,"data-slot":`list-item-description`,className:c,...i}),n[6]=i,n[7]=s,n[8]=c,n[9]=l):l=n[9],l}};function c(e){e.preventDefault(),e.stopPropagation()}export{s as List};
1
+ import{t as e}from"./cx-CK7o_rVv.js";import{t}from"./data-slot-EM6s2WEU.js";import{t as n}from"./slot-DdYN1L1C.js";import{n as r,r as i,t as a}from"./list-DOVZoz9t.js";import{c as o}from"react/compiler-runtime";import{jsx as s}from"react/jsx-runtime";const c={Root:e=>{let t=o(2),n;return t[0]===e?n=t[1]:(n=/* @__PURE__ */ s(i,{semantics:`list`,...e}),t[0]=e,t[1]=n),n},VirtualRoot:e=>{let t=o(2),n;return t[0]===e?n=t[1]:(n=/* @__PURE__ */ s(a,{semantics:`list`,...e}),t[0]=e,t[1]=n),n},Item:t=>{let i=o(34),a,c,u,d,f,p,m;i[0]===t?(a=i[1],c=i[2],u=i[3],d=i[4],f=i[5],p=i[6],m=i[7]):({asChild:a,className:c,current:u,disabled:d,onClick:f,ref:m,...p}=t,i[0]=t,i[1]=a,i[2]=c,i[3]=u,i[4]=d,i[5]=f,i[6]=p,i[7]=m);let h=a?n:`button`,g=u||void 0,_;i[8]!==a||i[9]!==d?(_=a?{"aria-disabled":d||void 0,tabIndex:d?-1:void 0}:{type:`button`,disabled:d},i[8]=a,i[9]=d,i[10]=_):_=i[10];let v;i[11]!==a||i[12]!==d||i[13]!==f?(v=e=>{a&&d?(e.preventDefault(),e.stopPropagation()):f?.(e)},i[11]=a,i[12]=d,i[13]=f,i[14]=v):v=i[14];let y;i[15]===c?y=i[16]:(y=e(`flex w-full cursor-pointer flex-col gap-0.5 rounded-md bg-transparent px-2 py-1.5 text-left text-sm`,`disabled:cursor-default disabled:opacity-50 aria-disabled:cursor-default aria-disabled:opacity-50 aria-disabled:pointer-events-none`,`focus-visible:outline-hidden`,c),i[15]=c,i[16]=y);let b;i[17]!==a||i[18]!==d||i[19]!==p?(b=a&&d?l:p.onClickCapture,i[17]=a,i[18]=d,i[19]=p,i[20]=b):b=i[20];let x;i[21]!==h||i[22]!==p||i[23]!==m||i[24]!==g||i[25]!==_||i[26]!==v||i[27]!==y||i[28]!==b?(x=/* @__PURE__ */ s(h,{ref:m,"data-slot":`list-item-control`,"aria-current":g,..._,onClick:v,className:y,...p,onClickCapture:b}),i[21]=h,i[22]=p,i[23]=m,i[24]=g,i[25]=_,i[26]=v,i[27]=y,i[28]=b,i[29]=x):x=i[29];let S;return i[30]!==u||i[31]!==d||i[32]!==x?(S=/* @__PURE__ */ s(r,{selected:u,disabled:d,children:x}),i[30]=u,i[31]=d,i[32]=x,i[33]=S):S=i[33],S},ItemTitle:n=>{let r=o(14),i,a,c,l;r[0]===n?(i=r[1],a=r[2],c=r[3],l=r[4]):({"data-slot":a,className:i,ref:l,...c}=n,r[0]=n,r[1]=i,r[2]=a,r[3]=c,r[4]=l);let u;r[5]===a?u=r[6]:(u=t(a,`list-item-title`),r[5]=a,r[6]=u);let d;r[7]===i?d=r[8]:(d=e(`text-strong font-medium`,i),r[7]=i,r[8]=d);let f;return r[9]!==c||r[10]!==l||r[11]!==u||r[12]!==d?(f=/* @__PURE__ */ s(`span`,{ref:l,"data-slot":u,className:d,...c}),r[9]=c,r[10]=l,r[11]=u,r[12]=d,r[13]=f):f=r[13],f},ItemDescription:n=>{let r=o(14),i,a,c,l;r[0]===n?(i=r[1],a=r[2],c=r[3],l=r[4]):({"data-slot":a,className:i,ref:l,...c}=n,r[0]=n,r[1]=i,r[2]=a,r[3]=c,r[4]=l);let u;r[5]===a?u=r[6]:(u=t(a,`list-item-description`),r[5]=a,r[6]=u);let d;r[7]===i?d=r[8]:(d=e(`text-body leading-4`,i),r[7]=i,r[8]=d);let f;return r[9]!==c||r[10]!==l||r[11]!==u||r[12]!==d?(f=/* @__PURE__ */ s(`span`,{ref:l,"data-slot":u,className:d,...c}),r[9]=c,r[10]=l,r[11]=u,r[12]=d,r[13]=f):f=r[13],f}};function l(e){e.preventDefault(),e.stopPropagation()}export{c as List};
@@ -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"./slot-DdYN1L1C.js";import{c as r}from"react/compiler-runtime";import{jsx as i}from"react/jsx-runtime";const a=a=>{let o=r(19),s,c,l,u,d,f;o[0]===a?(s=o[1],c=o[2],l=o[3],u=o[4],d=o[5],f=o[6]):({"data-slot":l,asChild:s,className:c,politeness:f,ref:d,...u}=a,o[0]=a,o[1]=s,o[2]=c,o[3]=l,o[4]=u,o[5]=d,o[6]=f);let p=f===void 0?`polite`:f,m=s?n:`span`,h;o[7]===l?h=o[8]:(h=t(l,`live-region`),o[7]=l,o[8]=h);let g=p===`assertive`?`alert`:`status`,_=p===`assertive`?void 0:`polite`,v;o[9]===c?v=o[10]:(v=e(`sr-only`,c),o[9]=c,o[10]=v);let y;return o[11]!==m||o[12]!==u||o[13]!==d||o[14]!==h||o[15]!==g||o[16]!==_||o[17]!==v?(y=/* @__PURE__ */ i(m,{ref:d,"data-slot":h,role:g,"aria-live":_,"aria-atomic":`true`,className:v,...u}),o[11]=m,o[12]=u,o[13]=d,o[14]=h,o[15]=g,o[16]=_,o[17]=v,o[18]=y):y=o[18],y};export{a as t};
@@ -1,4 +1,5 @@
1
1
  import { n as WithAsChild } from "./as-child-D23mGo4f.js";
2
+ import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
2
3
  import { ComponentProps } from "react";
3
4
  //#region src/components/live-region/live-region.d.ts
4
5
  type LiveRegionProps = ComponentProps<"span"> & WithAsChild & {
@@ -10,7 +11,7 @@ type LiveRegionProps = ComponentProps<"span"> & WithAsChild & {
10
11
  * @default "polite"
11
12
  */
12
13
  politeness?: "polite" | "assertive";
13
- };
14
+ } & WithDataSlot;
14
15
  /**
15
16
  * Announces its text to screen readers when the text changes. Renders a
16
17
  * persistent, visually hidden `<span>` live region with `role="status"` and
@@ -63,6 +64,6 @@ type LiveRegionProps = ComponentProps<"span"> & WithAsChild & {
63
64
  * }
64
65
  * ```
65
66
  */
66
- declare const LiveRegion: ({ asChild, className, politeness, ref, ...props }: LiveRegionProps) => import("react").JSX.Element;
67
+ declare const LiveRegion: ({ "data-slot": dataSlot, asChild, className, politeness, ref, ...props }: LiveRegionProps) => import("react").JSX.Element;
67
68
  //#endregion
68
69
  export { LiveRegion };
@@ -1 +1 @@
1
- import{t as e}from"./live-region-B2vJRvPH.js";export{e as LiveRegion};
1
+ export{t as LiveRegion}from"./live-region-DQ1QLv3L.js";
package/dist/llms.txt CHANGED
@@ -1,4 +1,4 @@
1
- # @ngrok/mantle (0.87.0)
1
+ # @ngrok/mantle (0.89.0)
2
2
 
3
3
  > Offline discovery hint shipped inside the @ngrok/mantle npm package. Authoritative metadata lives at https://mantle.ngrok.com/for-ai-agents.
4
4
 
@@ -91,6 +91,7 @@ Full text: https://mantle.ngrok.com/llms-full.txt
91
91
  - `@ngrok/mantle/theme-switcher`
92
92
  - `@ngrok/mantle/toast`
93
93
  - `@ngrok/mantle/tooltip`
94
+ - `@ngrok/mantle/truncated-text`
94
95
  - `@ngrok/mantle/types`
95
96
  - `@ngrok/mantle/utils`
96
97
  - `@ngrok/mantle/visually-hidden`
@@ -1 +1 @@
1
- import{t as e}from"./cx-0HCjnNv1.js";import{t}from"./data-slot-EM6s2WEU.js";import{c as n}from"react/compiler-runtime";import{jsx as r}from"react/jsx-runtime";const i=i=>{let a=n(12),o,s,c;a[0]===i?(o=a[1],s=a[2],c=a[3]):({className:o,"data-slot":s,...c}=i,a[0]=i,a[1]=o,a[2]=s,a[3]=c);let l;a[4]===s?l=a[5]:(l=t(s,`main`),a[4]=s,a[5]=l);let u;a[6]===o?u=a[7]:(u=e(`focus:outline-hidden`,o),a[6]=o,a[7]=u);let d;return a[8]!==c||a[9]!==l||a[10]!==u?(d=r(`main`,{...c,"data-slot":l,id:`main`,tabIndex:-1,className:u}),a[8]=c,a[9]=l,a[10]=u,a[11]=d):d=a[11],d};export{i as t};
1
+ import{t as e}from"./cx-CK7o_rVv.js";import{t}from"./data-slot-EM6s2WEU.js";import{c as n}from"react/compiler-runtime";import{jsx as r}from"react/jsx-runtime";const i=i=>{let a=n(12),o,s,c;a[0]===i?(o=a[1],s=a[2],c=a[3]):({className:o,"data-slot":s,...c}=i,a[0]=i,a[1]=o,a[2]=s,a[3]=c);let l;a[4]===s?l=a[5]:(l=t(s,`main`),a[4]=s,a[5]=l);let u;a[6]===o?u=a[7]:(u=e(`focus:outline-hidden`,o),a[6]=o,a[7]=u);let d;return a[8]!==c||a[9]!==l||a[10]!==u?(d=/* @__PURE__ */ r(`main`,{...c,"data-slot":l,id:`main`,tabIndex:-1,className:u}),a[8]=c,a[9]=l,a[10]=u,a[11]=d):d=a[11],d};export{i as t};
package/dist/main.js CHANGED
@@ -1 +1 @@
1
- import{t as e}from"./main-Dv2zuT_b.js";export{e as Main};
1
+ export{t as Main}from"./main-CC1L9IsH.js";