@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
@@ -1 +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-CPvjazWN.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
+ 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-CPvjazWN.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 motion-safe:data-validation-error:animate-shake`,`has-[>[data-validation=error]]:border-danger-600 focus-within:has-[>[data-validation=error]]:border-danger-600 focus-within:has-[>[data-validation=error]]:ring-focus-danger motion-safe:has-[>[data-validation=error]]:animate-shake`,`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,7 +1,6 @@
1
- import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
2
- import { o as WithValidation } from "./field-7QeiTFwl.js";
1
+ import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
2
+ import { o as WithValidation } from "./field-V_gnkcmN.js";
3
3
  import { ComponentProps, PropsWithChildren } from "react";
4
- //#region src/components/input/types.d.ts
5
4
  /**
6
5
  * (Not a Boolean attribute!) The autocomplete attribute takes as its value a space-separated string that describes what,
7
6
  * if any, type of autocomplete functionality the input should provide. A typical implementation of autocomplete recalls
@@ -46,8 +45,6 @@ type WithInputType = {
46
45
  */
47
46
  type?: InputType;
48
47
  };
49
- //#endregion
50
- //#region src/components/input/input.d.ts
51
48
  type BaseProps = WithAutoComplete & WithInputType & WithValidation;
52
49
  /**
53
50
  * The props for the `Input` component.
@@ -85,5 +82,4 @@ type InputCaptureProps = Omit<ComponentProps<"input">, "autoComplete" | "type">
85
82
  * ```
86
83
  */
87
84
  declare const InputCapture: ({ "aria-invalid": _ariaInvalid, "data-slot": dataSlot, className, ref, validation: _validation, ...restProps }: InputCaptureProps) => import("react").JSX.Element;
88
- //#endregion
89
85
  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,8 +1,7 @@
1
- import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
2
- import { o as WithValidation, r as Validation } from "./field-7QeiTFwl.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";
1
+ import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
2
+ import { o as WithValidation, r as Validation } from "./field-V_gnkcmN.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-Dx5owTCc.js";
4
4
  import { ComponentProps } from "react";
5
- //#region src/components/input/password-input.d.ts
6
5
  /**
7
6
  * The props for the `PasswordInput` component.
8
7
  */
@@ -92,8 +91,6 @@ type PasswordInputProps = Omit<ComponentProps<"input">, "autoComplete" | "type">
92
91
  * ```
93
92
  */
94
93
  declare const PasswordInput: ({ "data-slot": dataSlot, disabled, id: idProp, onValueVisibilityChange, ref, showValue, ...props }: PasswordInputProps) => import("react").JSX.Element;
95
- //#endregion
96
- //#region src/components/input/is-input.d.ts
97
94
  /**
98
95
  * Type guard for an `HTMLInputElement`. On the server, where `HTMLInputElement`
99
96
  * is not defined, it returns `false`.
@@ -110,5 +107,4 @@ declare const PasswordInput: ({ "data-slot": dataSlot, disabled, id: idProp, onV
110
107
  * ```
111
108
  */
112
109
  export declare function isInput(value: unknown): value is HTMLInputElement;
113
- //#endregion
114
110
  export { type AutoComplete, Input, InputCapture, type InputCaptureProps, type InputProps, type InputType, PasswordInput, type PasswordInputProps, type Validation, type WithAutoComplete, type WithInputType, type WithValidation };
package/dist/input.js CHANGED
@@ -1 +1 @@
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{t as r}from"./use-prefers-reduced-motion-DimzRx-M.js";import{n as i,t as a}from"./input-eEKzP3cE.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||r()||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(i,{}),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(a,{"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{a as Input,i as InputCapture,h as PasswordInput,o 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{t as r}from"./use-prefers-reduced-motion-DimzRx-M.js";import{n as i,t as a}from"./input-CpQ6jlpI.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||r()||e.animate([{scale:`1 0.5`},{scale:`1`}],{duration:200,easing:`cubic-bezier(0.23, 1, 0.32, 1)`})},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(i,{}),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(a,{"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{a as Input,i as InputCapture,h as PasswordInput,o as isInput};
package/dist/kbd.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/kbd/kbd.d.ts
4
3
  /**
5
4
  * A square, centered keyboard "key" chip for rendering shortcut hints —
6
5
  * "K", "⌘", "⌃", "Enter". Renders a native `<kbd>` element so screen
@@ -56,5 +55,4 @@ import { ComponentProps } from "react";
56
55
  * ```
57
56
  */
58
57
  declare function Kbd({ "data-slot": dataSlot, children, className, ...props }: Omit<ComponentProps<"kbd">, "translate"> & WithDataSlot): import("react").JSX.Element;
59
- //#endregion
60
58
  export { Kbd };
@@ -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/label/label.d.ts
4
3
  type LabelProps = ComponentProps<"label"> & {
5
4
  /**
6
5
  * If set, the label will appear disabled.
@@ -70,5 +69,4 @@ type LabelProps = ComponentProps<"label"> & {
70
69
  * ```
71
70
  */
72
71
  declare const Label: ({ "data-slot": dataSlot, "aria-disabled": _ariaDisabled, children, className, disabled, onMouseDown, ref, ...props }: LabelProps) => import("react").JSX.Element;
73
- //#endregion
74
72
  export { Label as t };
package/dist/label.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as Label } from "./label-C-KbNls8.js";
1
+ import { t as Label } from "./label-Dn5CPJUj.js";
2
2
  export { Label };
@@ -1,5 +1,4 @@
1
1
  import { ComponentProps } from "react";
2
- //#region src/utils/layer-container/layer-container.d.ts
3
2
  /**
4
3
  * The portal target for floating layers composed inside an overlay.
5
4
  *
@@ -53,5 +52,4 @@ declare function useLayerContainer(): Element | DocumentFragment | null;
53
52
  * ```
54
53
  */
55
54
  declare function LayerContainer({ children, ref, ...props }: ComponentProps<"div">): import("react").JSX.Element;
56
- //#endregion
57
55
  export { LayerContainer, LayerContainerContext, useLayerContainer };
@@ -1,5 +1,4 @@
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
- //#region src/components/line-chart/line-chart.d.ts
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-ynMysD16.js";
3
2
  /**
4
3
  * Props for {@link LineChart.Root}. Lines encode value by vertical position,
5
4
  * not length from a baseline, so the full y domain stays overridable via
@@ -42,7 +41,7 @@ type LineChartLineProps = {
42
41
  * not change the series slot or its paired point shape. When omitted, the
43
42
  * series paints the color from its slot.
44
43
  *
45
- * A static color (raw hex) cannot follow the four themes, so prefer a
44
+ * A static color (raw hex) cannot follow the two themes, so prefer a
46
45
  * `var(--your-token)` declared per theme. A series that carries good/bad
47
46
  * meaning should wear the semantic status colors, never a categorical slot.
48
47
  */
@@ -580,5 +579,4 @@ declare const LineChart: {
580
579
  */
581
580
  readonly CopyButton: typeof CopyButton;
582
581
  };
583
- //#endregion
584
582
  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-BfJ835dr.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};
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-D2LtDZtV.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};
package/dist/list.d.ts CHANGED
@@ -1,7 +1,6 @@
1
- import { n as WithAsChild } from "./as-child-D23mGo4f.js";
2
- import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
1
+ import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
2
+ import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
3
3
  import { CSSProperties, ComponentProps, ReactNode, Ref } from "react";
4
- //#region src/components/list/primitive.d.ts
5
4
  /**
6
5
  * ARIA semantics for a {@link Root} / `VirtualRoot` collection and its
7
6
  * {@link Item}s. The element is always a `<div>` — per WAI-ARIA the *role*
@@ -71,8 +70,6 @@ type ListRootProps$1 = ComponentProps<"div"> & {
71
70
  */
72
71
  isItemDisabled?: (index: number) => boolean;
73
72
  };
74
- //#endregion
75
- //#region src/components/list/virtual.d.ts
76
73
  /**
77
74
  * Props for {@link VirtualRoot}. The same surface as the plain `Root` plus the
78
75
  * virtualizer knobs.
@@ -94,8 +91,6 @@ type VirtualRootProps = ListRootProps$1 & {
94
91
  /** Rows rendered beyond the visible window on each side. The buffer keeps the active row mounted for `aria-activedescendant`. */
95
92
  overscan?: number;
96
93
  };
97
- //#endregion
98
- //#region src/components/list/list.d.ts
99
94
  /**
100
95
  * Props for `List.Root` — the internal list primitive's `Root` props, minus
101
96
  * `semantics` (a `List` is always a `role="list"`) and the grid-only
@@ -444,5 +439,4 @@ declare const List: {
444
439
  */
445
440
  readonly ItemDescription: typeof ItemDescription;
446
441
  };
447
- //#endregion
448
442
  export { List, type ListItemProps, type ListRootProps, type ListVirtualRootProps };
@@ -1,7 +1,6 @@
1
- import { n as WithAsChild } from "./as-child-D23mGo4f.js";
2
- import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
1
+ import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
2
+ import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
3
3
  import { ComponentProps } from "react";
4
- //#region src/components/live-region/live-region.d.ts
5
4
  type LiveRegionProps = ComponentProps<"span"> & WithAsChild & {
6
5
  /**
7
6
  * How urgently a screen reader announces a changed message: `"polite"`
@@ -65,5 +64,4 @@ type LiveRegionProps = ComponentProps<"span"> & WithAsChild & {
65
64
  * ```
66
65
  */
67
66
  declare const LiveRegion: ({ "data-slot": dataSlot, asChild, className, politeness, ref, ...props }: LiveRegionProps) => import("react").JSX.Element;
68
- //#endregion
69
67
  export { LiveRegion };
package/dist/llms.txt CHANGED
@@ -1,6 +1,6 @@
1
- # @ngrok/mantle (0.90.4)
1
+ # @ngrok/mantle (0.91.1)
2
2
 
3
- > Offline index shipped inside the @ngrok/mantle npm package. The full records, with examples and sibling boundaries, are in agent.json beside this file. Live docs: https://mantle.ngrok.com/for-ai-agents.
3
+ > Offline index shipped inside the @ngrok/mantle npm package. The full records, with examples and sibling boundaries, are in agent.json beside this file. Neither file lists props: read the bundled type declarations (`<subpath>.d.ts` beside this file) for every prop and its JSDoc. Live docs: https://mantle.ngrok.com/for-ai-agents.
4
4
 
5
5
  Docs: https://mantle.ngrok.com/
6
6
  Agent guide: https://mantle.ngrok.com/for-ai-agents
@@ -85,8 +85,8 @@ Full text: https://mantle.ngrok.com/llms-full.txt
85
85
  - **Table** (`@ngrok/mantle/table`): A structured way to display data in rows and columns.
86
86
  - **Tabs** (`@ngrok/mantle/tabs`): Layered sections of content, called tab panels, that show one at a time.
87
87
  - **Text Area** (`@ngrok/mantle/text-area`): A multi-line plain-text editing control.
88
- - **Theme** (`@ngrok/mantle/theme`): Theme primitives (ThemeProvider, MantleStyleSheets, and FOUC prevention) for light, dark, and high-contrast modes.
89
- - **Theme Switcher** (`@ngrok/mantle/theme-switcher`): The canonical picker for mantle's five themes (a compact dropdown switcher), plus a radio group that embeds theme selection in any dropdown menu.
88
+ - **Theme** (`@ngrok/mantle/theme`): Theme primitives (ThemeProvider, MantleStyleSheets, and FOUC prevention) for light and dark modes that follow the OS by default.
89
+ - **Theme Switcher** (`@ngrok/mantle/theme-switcher`): The canonical light/dark toggle for headers and toolbars, plus the same toggle as one item for account menus.
90
90
  - **Toast** (`@ngrok/mantle/toast`): A succinct message that appears temporarily. Also called: notification, snackbar.
91
91
  - **Tooltip** (`@ngrok/mantle/tooltip`): A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.
92
92
  - **Truncated Text** (`@ngrok/mantle/truncated-text`): Renders one long opaque value on a single line and keeps its tail visible when it overflows.
package/dist/main.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/main/main.d.ts
4
3
  /**
5
4
  * A focusable `<main>` landmark for the page's primary content. Renders with
6
5
  * `id="main"` and `tabIndex={-1}` so a skip link (or any programmatic focus
@@ -52,5 +51,4 @@ import { ComponentProps } from "react";
52
51
  * ```
53
52
  */
54
53
  declare const Main: ({ className, "data-slot": dataSlot, ...props }: Omit<ComponentProps<"main">, "id" | "tabIndex"> & WithDataSlot) => import("react").JSX.Element;
55
- //#endregion
56
54
  export { Main };
@@ -2,24 +2,14 @@
2
2
  MARK: DARK DEFS
3
3
 
4
4
  The last selector applies this entire block to `.invert-theme` subtrees on
5
- light pages (any page with no other theme active): an inverted island is the
5
+ light pages (any page that is not dark): an inverted island is the
6
6
  opposite theme's own definitions re-declared on the island element. See
7
7
  MARK: INVERT THEME in mantle.css for the full strategy.
8
8
  */
9
9
  :root.dark,
10
10
  :root[data-theme="dark"]:not([data-applied-theme]),
11
11
  :root[data-applied-theme="dark"],
12
- :root:not(
13
- .dark,
14
- [data-theme="dark"]:not([data-applied-theme]),
15
- [data-applied-theme="dark"],
16
- .light-high-contrast,
17
- [data-theme="light-high-contrast"]:not([data-applied-theme]),
18
- [data-applied-theme="light-high-contrast"],
19
- .dark-high-contrast,
20
- [data-theme="dark-high-contrast"]:not([data-applied-theme]),
21
- [data-applied-theme="dark-high-contrast"]
22
- )
12
+ :root:not(.dark, [data-theme="dark"]:not([data-applied-theme]), [data-applied-theme="dark"])
23
13
  .invert-theme {
24
14
  color-scheme: dark;
25
15
 
package/dist/mantle.css CHANGED
@@ -174,6 +174,39 @@ MARK: THEME
174
174
  /* A strong ease-out for UI that enters, exits, or changes shape in under 300ms.
175
175
  Tailwind's `--ease-out` is too shallow to read as a settle at 200ms. */
176
176
  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
177
+ /* One damped shake when a form control enters the error state.
178
+ The first swing eases out, so the control answers at once. The other swings
179
+ ease in and out, so the control settles like a spring and not in steps. */
180
+ --animate-shake: shake 300ms ease-in-out;
181
+ @keyframes shake {
182
+ 0% {
183
+ translate: 0;
184
+ animation-timing-function: ease-out;
185
+ }
186
+ 20% {
187
+ translate: -4px;
188
+ }
189
+ 40% {
190
+ translate: 3px;
191
+ }
192
+ 60% {
193
+ translate: -2px;
194
+ }
195
+ 80% {
196
+ translate: 1px;
197
+ }
198
+ 100% {
199
+ translate: 0;
200
+ }
201
+ }
202
+ /* Keeps a portal positioner mounted while its content plays the exit. Radix waits for an
203
+ animation on the portal child itself, and these keyframes change nothing on screen. */
204
+ --animate-exit-hold: exit-hold 150ms;
205
+ @keyframes exit-hold {
206
+ to {
207
+ opacity: 1;
208
+ }
209
+ }
177
210
  /* The narrowest workspace row that holds the expanded rail (13rem), the content card at
178
211
  the side panel's floor (21rem), the panel itself (21rem), and the three gutters (1.5rem).
179
212
  Below it `AppLayout.SidePanel` floats over the card, so the page is never narrower than
@@ -736,26 +769,26 @@ MARK: COMPONENT GEOMETRY
736
769
  MARK: INVERT THEME
737
770
 
738
771
  The `invert-theme` class renders a DOM subtree in the opposite theme of the
739
- page: light ⇄ dark and light-high-contrast ⇄ dark-high-contrast.
772
+ page: light ⇄ dark.
740
773
 
741
774
  Mechanism: every mantle color utility resolves a CSS custom property at the
742
775
  element that uses it, and custom properties inherit — so re-declaring the
743
776
  theme variables on one element re-themes its entire subtree. Each theme
744
- block's selector list therefore also matches `.invert-theme` subtrees on its
745
- pair partner's pages (see the LIGHT DEFS selector above and the equivalent
746
- extensions in the three theme stylesheets); the island is styled by the
747
- opposite theme's own single-source-of-truth declarations, never by a copy.
777
+ block's selector list therefore also matches `.invert-theme` subtrees on the
778
+ opposite theme's pages (see the LIGHT DEFS selector above and the equivalent
779
+ extension in mantle-dark.css); the island is styled by the opposite theme's
780
+ own single-source-of-truth declarations, never by a copy.
748
781
 
749
782
  Requirements and limitations:
750
- - The opposite theme's stylesheet must be applied. `MantleStyleSheets` loads
751
- theme pairs together (the active theme's partner also gets `media="all"`),
752
- so this holds automatically for apps using mantle's theme infrastructure.
783
+ - The opposite theme's stylesheet must be applied. `MantleStyleSheets` applies
784
+ the dark stylesheet on every page, so this holds automatically for apps using
785
+ mantle's theme infrastructure.
753
786
  - Portaled floating content (dropdown menus, tooltips, dialogs, …) escapes
754
787
  the island's DOM subtree and renders in the page theme. Pass `invert-theme`
755
788
  in the floating part's `className` to invert it too.
756
- - Theme variant utilities (`dark:*`, `light:*`, `high-contrast:*`,
757
- `dark-high-contrast:*`) key off the page theme classes on `:root`, not the
758
- inversion scope, so they do not flip inside an island. This includes the six
789
+ - Theme variant utilities (`dark:*`, `light:*`) key off the page theme
790
+ classes on `:root`, not the inversion scope, so they do not flip inside an
791
+ island. This includes the six
759
792
  mantle internals that still carry variant-gated tweaks — Progress Bar,
760
793
  Progress Donut, RadioGroup, Skeleton, Table, and Toast — so composing those
761
794
  inside an island mixes page-variant selection with island-resolved variables
@@ -862,8 +895,6 @@ MARK: CUSTOM VARIANTS
862
895
  */
863
896
  @custom-variant light (&:where(.light, .light *, [data-theme="light"]:not([data-applied-theme]), [data-applied-theme="light"]));
864
897
  @custom-variant dark (&:where(.dark, .dark *, [data-theme="dark"]:not([data-applied-theme]), [data-applied-theme="dark"]));
865
- @custom-variant high-contrast (&:where(.light-high-contrast, .light-high-contrast *, [data-theme="light-high-contrast"]:not([data-applied-theme]), [data-applied-theme="light-high-contrast"]));
866
- @custom-variant dark-high-contrast (&:where(.dark-high-contrast, .dark-high-contrast *, [data-theme="dark-high-contrast"]:not([data-applied-theme]), [data-applied-theme="dark-high-contrast"]));
867
898
 
868
899
  @custom-variant aria-collapsed (&[aria-expanded="false"]);
869
900
  @custom-variant aria-invalid (&[aria-invalid="true"]);
@@ -1435,3 +1466,45 @@ pre[data-slot="code-block-code"]:has(.mantle-code-fold-toggle)
1435
1466
  min-width: 0;
1436
1467
  flex: 1 1 auto;
1437
1468
  }
1469
+
1470
+ /*
1471
+ * The theme swap that `ThemeSwitcher` starts. The new theme grows in a circle
1472
+ * from the button over the old one, so neither snapshot fades or blends: the
1473
+ * default crossfade adds the two images together inside the circle.
1474
+ */
1475
+ :root[data-theme-transition]::view-transition-old(root),
1476
+ :root[data-theme-transition]::view-transition-new(root) {
1477
+ animation: none;
1478
+ mix-blend-mode: normal;
1479
+ }
1480
+
1481
+ /*
1482
+ * The new snapshot is live, so a color transition would fade inside the circle
1483
+ * while the rest of the page shows the new theme. Stop transitions during the
1484
+ * swap. The icon of the switcher and of the menu item keeps its own swap.
1485
+ */
1486
+ :root[data-theme-transition]
1487
+ :not([data-slot~="theme-switcher"] *, [data-slot~="theme-dropdown-menu-item"] *),
1488
+ :root[data-theme-transition]
1489
+ :not([data-slot~="theme-switcher"] *, [data-slot~="theme-dropdown-menu-item"] *)::before,
1490
+ :root[data-theme-transition]
1491
+ :not([data-slot~="theme-switcher"] *, [data-slot~="theme-dropdown-menu-item"] *)::after {
1492
+ transition: none !important;
1493
+ }
1494
+
1495
+ /*
1496
+ * A dialog or a menu that closes as the swap starts, such as a command
1497
+ * palette, would freeze in the old snapshot outside the circle. Without an
1498
+ * exit animation it unmounts before the snapshot. The dialog positioner
1499
+ * animates only to hold the exit, so it stops too.
1500
+ */
1501
+ :root[data-theme-transition]
1502
+ :is(
1503
+ [data-slot~="dialog-overlay"],
1504
+ [data-slot~="dialog-content"],
1505
+ [data-slot~="dropdown-menu-content"],
1506
+ [data-slot~="dropdown-menu-sub-content"]
1507
+ )[data-state="closed"],
1508
+ :root[data-theme-transition] [data-slot~="dialog-positioner"] {
1509
+ animation: none !important;
1510
+ }
@@ -1,7 +1,6 @@
1
- import { n as WithAsChild } from "./as-child-D23mGo4f.js";
2
- import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
1
+ import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
2
+ import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
3
3
  import { ComponentProps } from "react";
4
- //#region src/components/media-object/media-object.d.ts
5
4
  type Props = ComponentProps<"div"> & WithAsChild & WithDataSlot;
6
5
  /**
7
6
  * The media object is an image/icon (media) to the left, with descriptive
@@ -172,5 +171,4 @@ declare const MediaObject: {
172
171
  */
173
172
  readonly Content: typeof Content;
174
173
  };
175
- //#endregion
176
174
  export { MediaObject };