@ngrok/mantle 0.88.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 +6 -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.js +1 -1
  81. package/dist/hover-card.d.ts +5 -4
  82. package/dist/hover-card.js +1 -1
  83. package/dist/icon-BudQMD2S.js +1 -0
  84. package/dist/icon-kK0c-POG.js +1 -0
  85. package/dist/{icon-w0HUe7tr.d.ts → icon-r2NvfTWW.d.ts} +3 -2
  86. package/dist/{icon-BmJ57Tgh.d.ts → icon-ucVgZeXn.d.ts} +3 -2
  87. package/dist/icon.d.ts +2 -2
  88. package/dist/icon.js +1 -1
  89. package/dist/icons-BMZnm4hM.js +1 -0
  90. package/dist/{icons-Bu-2boul.js → icons-CH3tD_wq.js} +1 -1
  91. package/dist/icons-CSwTVV2m.js +1 -0
  92. package/dist/icons.js +1 -1
  93. package/dist/in-view-Dxv_GrUU.js +1 -0
  94. package/dist/input-D_DjD9lT.js +1 -0
  95. package/dist/{input-DpnC3Xgj.d.ts → input-bbB1tC0h.d.ts} +3 -2
  96. package/dist/input.d.ts +5 -4
  97. package/dist/input.js +1 -1
  98. package/dist/kbd-CLHsJ99p.js +1 -0
  99. package/dist/kbd.d.ts +2 -1
  100. package/dist/kbd.js +1 -1
  101. package/dist/label-5T8i7I4X.js +1 -0
  102. package/dist/{label-Bnfe9YJ6.d.ts → label-C-KbNls8.d.ts} +3 -2
  103. package/dist/label.d.ts +1 -1
  104. package/dist/label.js +1 -1
  105. package/dist/{layer-container-R7aux3n8.js → layer-container-DLf-6eBz.js} +1 -1
  106. package/dist/layer-container.js +1 -1
  107. package/dist/line-chart.d.ts +40 -15
  108. package/dist/line-chart.js +1 -1
  109. package/dist/list-DOVZoz9t.js +1 -0
  110. package/dist/list.d.ts +3 -2
  111. package/dist/list.js +1 -1
  112. package/dist/live-region-DQ1QLv3L.js +1 -0
  113. package/dist/live-region.d.ts +3 -2
  114. package/dist/live-region.js +1 -1
  115. package/dist/llms.txt +2 -1
  116. package/dist/{main-Dv2zuT_b.js → main-CC1L9IsH.js} +1 -1
  117. package/dist/main.js +1 -1
  118. package/dist/mantle.css +3 -0
  119. package/dist/media-object.js +1 -1
  120. package/dist/multi-select.d.ts +23 -22
  121. package/dist/multi-select.js +1 -1
  122. package/dist/otp-input.d.ts +9 -8
  123. package/dist/otp-input.js +1 -1
  124. package/dist/pagination.d.ts +9 -8
  125. package/dist/pagination.js +1 -1
  126. package/dist/{popover-Cco1nw8I.d.ts → popover-Dvls7-j4.d.ts} +5 -4
  127. package/dist/popover-oQDUvcZ2.js +1 -0
  128. package/dist/popover.d.ts +1 -1
  129. package/dist/popover.js +1 -1
  130. package/dist/primitive-B-6XILB2.js +1 -0
  131. package/dist/progress.d.ts +9 -8
  132. package/dist/progress.js +1 -1
  133. package/dist/qr-code.d.ts +9 -8
  134. package/dist/qr-code.js +1 -1
  135. package/dist/radio-group.d.ts +19 -18
  136. package/dist/radio-group.js +1 -1
  137. package/dist/sandbar.d.ts +7 -7
  138. package/dist/sandbar.js +1 -1
  139. package/dist/{sandboxed-on-click-BLvvSqOP.js → sandboxed-on-click-C7pPu-2M.js} +1 -1
  140. package/dist/sandboxed-on-click.js +1 -1
  141. package/dist/scatter-plot.d.ts +39 -14
  142. package/dist/scatter-plot.js +1 -1
  143. package/dist/{select-BITJP7I5.d.ts → select-CxXb3aiC.d.ts} +3 -3
  144. package/dist/select-DcL0-duV.js +1 -0
  145. package/dist/select.d.ts +1 -1
  146. package/dist/select.js +1 -1
  147. package/dist/selectable-list.d.ts +16 -15
  148. package/dist/selectable-list.js +1 -1
  149. package/dist/separator-DvPe27fH.js +1 -0
  150. package/dist/{separator-Bo4nY_3M.d.ts → separator-HzGvuD0B.d.ts} +4 -3
  151. package/dist/separator.d.ts +1 -1
  152. package/dist/separator.js +1 -1
  153. package/dist/sheet-DND_KjmS.js +1 -0
  154. package/dist/sheet.d.ts +13 -12
  155. package/dist/sheet.js +1 -1
  156. package/dist/sidebar.d.ts +147 -93
  157. package/dist/sidebar.js +1 -1
  158. package/dist/skeleton-zfqoDAxT.js +1 -0
  159. package/dist/skeleton.d.ts +3 -2
  160. package/dist/skeleton.js +1 -1
  161. package/dist/skip-to-main-link.js +1 -1
  162. package/dist/slider.d.ts +3 -2
  163. package/dist/slider.js +1 -1
  164. package/dist/{slot-BsvE2ntj.js → slot-DdYN1L1C.js} +1 -1
  165. package/dist/{slot-DdgxmuI5.d.ts → slot-Q996Hqk9.d.ts} +1 -1
  166. package/dist/slot.d.ts +1 -1
  167. package/dist/slot.js +1 -1
  168. package/dist/split-button.d.ts +6 -5
  169. package/dist/split-button.js +1 -1
  170. package/dist/switch.d.ts +3 -2
  171. package/dist/switch.js +1 -1
  172. package/dist/{table-DEI-qvSC.d.ts → table-BhzITa19.d.ts} +10 -9
  173. package/dist/table-DBbKqOVq.js +1 -0
  174. package/dist/table.d.ts +1 -1
  175. package/dist/table.js +1 -1
  176. package/dist/tabs.d.ts +2 -2
  177. package/dist/tabs.js +1 -1
  178. package/dist/text-area.d.ts +3 -2
  179. package/dist/text-area.js +1 -1
  180. package/dist/theme-BlCZHClJ.js +1 -0
  181. package/dist/theme-switcher.d.ts +3 -3
  182. package/dist/theme-switcher.js +1 -1
  183. package/dist/theme.js +1 -1
  184. package/dist/toast.d.ts +10 -9
  185. package/dist/toast.js +1 -1
  186. package/dist/{tooltip-nuUCoqq8.d.ts → tooltip-CngH7Kl6.d.ts} +7 -6
  187. package/dist/tooltip-NhYXqStK.js +1 -0
  188. package/dist/tooltip.d.ts +1 -1
  189. package/dist/tooltip.js +1 -1
  190. package/dist/truncated-text.d.ts +138 -0
  191. package/dist/truncated-text.js +1 -0
  192. package/dist/types.js +1 -1
  193. package/dist/use-breakpoint--mo7kr9d.js +1 -0
  194. package/dist/use-is-hydrated-after-paint-r9Cl2mGp.js +1 -0
  195. package/dist/utils.js +1 -1
  196. package/dist/visually-hidden.d.ts +2 -1
  197. package/dist/visually-hidden.js +1 -1
  198. package/dist/well.d.ts +3 -2
  199. package/dist/well.js +1 -1
  200. package/package.json +16 -15
  201. package/dist/alert-OP_-aGJD.js +0 -1
  202. package/dist/anchor-BnMhJYS4.js +0 -1
  203. package/dist/button-BFpCB99R.js +0 -1
  204. package/dist/button-Dij5vCQG.js +0 -1
  205. package/dist/button-pwkdtR3U.js +0 -1
  206. package/dist/chart-aZLMj4xx.js +0 -2
  207. package/dist/checkbox-DbJSqSNN.js +0 -1
  208. package/dist/choice-SRyLguqU.js +0 -1
  209. package/dist/code-block-BE3Q0iAo.js +0 -12
  210. package/dist/cx-0HCjnNv1.js +0 -1
  211. package/dist/dialog-HIdb5d3I.js +0 -1
  212. package/dist/dropdown-menu-BR_AQNMj.js +0 -1
  213. package/dist/dropdown-menu-Dlpb7600.d.ts +0 -1
  214. package/dist/icon-BT8FnkkJ.js +0 -1
  215. package/dist/icon-U24NfYv7.js +0 -1
  216. package/dist/icons-BQRcOU6J.js +0 -1
  217. package/dist/icons-C3rVfpx9.js +0 -1
  218. package/dist/in-view-T_AAYaaF.js +0 -1
  219. package/dist/input-yq0jLE4e.js +0 -1
  220. package/dist/kbd-CJ8hNZfS.js +0 -1
  221. package/dist/label-BAy0Mg59.js +0 -1
  222. package/dist/list-BleZ-43e.js +0 -1
  223. package/dist/live-region-B2vJRvPH.js +0 -1
  224. package/dist/popover-BJ5XNwzD.js +0 -1
  225. package/dist/primitive-w3wFk2La.js +0 -1
  226. package/dist/select-CUWLEeuf.js +0 -1
  227. package/dist/separator-D98be0gY.js +0 -1
  228. package/dist/sheet-B5x8EO9Y.js +0 -1
  229. package/dist/skeleton-bVDP8BzY.js +0 -1
  230. package/dist/table-D2jh52KA.js +0 -1
  231. package/dist/theme-C1kFFdIk.js +0 -1
  232. package/dist/tooltip-H03l7E4Y.js +0 -1
  233. package/dist/use-is-hydrated-after-paint-Drj0lNi4.js +0 -1
  234. /package/dist/{types-D85fCNV3.js → css-properties-D85fCNV3.js} +0 -0
@@ -1 +0,0 @@
1
- import{t as e}from"./cx-0HCjnNv1.js";import{n as t}from"./browser-only-Crr3sgA0.js";import{t as n}from"./use-matches-media-query-m860lols.js";import{n as r,t as i}from"./cookie-ca4g5CKp.js";import{c as a}from"react/compiler-runtime";import{createContext as o,useContext as s,useEffect as c,useRef as l,useState as u}from"react";import d from"tiny-invariant";import{jsx as f}from"react/jsx-runtime";const p=[`light`,`dark`,`light-high-contrast`,`dark-high-contrast`],m=[`system`,...p],h=e=>e;function g(e){return typeof e==`string`&&m.includes(e)}const _=e=>e;function v(e){return typeof e==`string`&&p.includes(e)}const y=`(prefers-color-scheme: dark)`,b=`(prefers-contrast: more)`,x=`mantle-ui-theme`,S=`system`,C=o(null);function w(e){let n=a(14),{children:r,forceTheme:i,ssrCookie:o}=e,s;n[0]!==i||n[1]!==o?(s=()=>{let e=F({cookie:t()?document.cookie:o});return E(e,{forceTheme:i}),e},n[0]=i,n[1]=o,n[2]=s):s=n[2];let[d,p]=u(s),m=l(null),h,_;n[3]===i?(h=n[4],_=n[5]):(h=()=>{let e=function(e){let t=e??F({cookie:document.cookie});p(t),E(t,{forceTheme:i})};e();try{`BroadcastChannel`in window&&(m.current=new BroadcastChannel(x),m.current.addEventListener(`message`,t=>{let n=t?.data?.theme;g(n)&&e(n)}))}catch{}let t=function(t){t.key===`${x}__ping`&&e()};window.addEventListener(`storage`,t);let n=window.matchMedia(y),r=window.matchMedia(b),a=function(){e()},o=function(){document.visibilityState===`visible`&&e()};return n.addEventListener(`change`,a),r.addEventListener(`change`,a),window.addEventListener(`pageshow`,a),document.addEventListener(`visibilitychange`,o),()=>{window.removeEventListener(`storage`,t),n.removeEventListener(`change`,a),r.removeEventListener(`change`,a),window.removeEventListener(`pageshow`,a),document.removeEventListener(`visibilitychange`,o),B(m.current),m.current=null}},_=[i],n[3]=i,n[4]=h,n[5]=_),c(h,_);let v;n[6]===i?v=n[7]:(v=e=>{z(e),p(e),E(e,{forceTheme:i}),L(e,{broadcastChannel:m.current,pingKey:`${x}__ping`})},n[6]=i,n[7]=v);let S;n[8]!==v||n[9]!==d?(S=[d,v],n[8]=v,n[9]=d,n[10]=S):S=n[10];let w=S,T;return n[11]!==r||n[12]!==w?(T=f(C.Provider,{value:w,children:r}),n[11]=r,n[12]=w,n[13]=T):T=n[13],T}function T(){let e=s(C);return d(e,`useTheme must be used within a ThemeProvider`),e}function E(e,{forceTheme:n}={}){if(!t())return;let r=window.document.documentElement,i=window.matchMedia(y).matches,a=window.matchMedia(b).matches,o=n??O(e,{prefersDarkMode:i,prefersHighContrast:a}),s=r.dataset.theme,c=r.dataset.appliedTheme,l=g(s)?s:void 0,u=v(c)?c:void 0;(l!==e||u!==o)&&(r.classList.remove(...p),r.classList.add(o),r.dataset.theme=e,r.dataset.appliedTheme=o)}function D(){if(!t())return{appliedTheme:void 0,theme:void 0};let e=window.document.documentElement,n=g(e.dataset.theme)?e.dataset.theme:void 0;return{appliedTheme:v(e.dataset.appliedTheme)?e.dataset.appliedTheme:void 0,theme:n}}function O(e,{prefersDarkMode:t,prefersHighContrast:n}){return e===`system`?A({prefersDarkMode:t,prefersHighContrast:n}):e}function k(){let e=a(4),t=s(C),r=t==null?`system`:t[0],i=n(y),o=n(b),c;return e[0]!==i||e[1]!==o||e[2]!==r?(c=O(r,{prefersDarkMode:i,prefersHighContrast:o}),e[0]=i,e[1]=o,e[2]=r,e[3]=c):c=e[3],c}function A({prefersDarkMode:e,prefersHighContrast:t}){return t?e?`dark-high-contrast`:`light-high-contrast`:e?`dark`:`light`}function j(e){let{storageKey:t,defaultTheme:n,themes:r,resolvedThemes:i,prefersDarkModeMediaQuery:a,prefersHighContrastMediaQuery:o,forceTheme:s}=e;function c(e){return typeof e==`string`&&r.includes(e)}function l(e){let t=document.cookie;if(!t)return null;try{let n=t.split(`;`).find(t=>t.trim().startsWith(`${e}=`))?.trim().slice(e.length+1);return n?decodeURIComponent(n):null}catch{return null}}function u(e,t){let n=new Date;n.setFullYear(n.getFullYear()+1);let r=window.location.hostname,i=window.location.protocol,a=r===`ngrok.com`||r.endsWith(`.ngrok.com`)?`; domain=.ngrok.com`:``,o=i===`https:`?`; Secure`:``;return`${e}=${encodeURIComponent(t)}; expires=${n.toUTCString()}; path=/${a}; SameSite=Lax${o}`}function d(e,t){try{document.cookie=u(e,t)}catch{}}function f(e,t,n){return e===`system`?n?t?`dark-high-contrast`:`light-high-contrast`:t?`dark`:`light`:e}let p=null,m=null,h=null;try{p=l(t)}catch{}if(c(p))h=p;else{try{m=window.localStorage?.getItem(t)??null}catch{}c(m)&&(h=m)}let g=c(h)?h:n,_=matchMedia(a).matches,v=matchMedia(o).matches,y=s??f(g,_,v),b=document.documentElement;if(b.dataset.appliedTheme!==y||b.dataset.theme!==g){for(let e of i)b.classList.remove(e);b.classList.add(y),b.dataset.theme=g,b.dataset.appliedTheme=y}let x=c(p);try{if(c(m)&&!x){d(t,m);try{window.localStorage.removeItem(t)}catch{}}else x||d(t,g)}catch{}}function M(e){let t={storageKey:x,defaultTheme:S,themes:m,resolvedThemes:p,prefersDarkModeMediaQuery:y,prefersHighContrastMediaQuery:b,forceTheme:e};return`(${j.toString()})(${JSON.stringify(t)})`}const N=e=>{let t=a(7),{forceTheme:n,nonce:r}=e,i;t[0]===n?i=t[1]:(i=M(n),t[0]=n,t[1]=i);let o;t[2]===i?o=t[3]:(o={__html:i},t[2]=i,t[3]=o);let s;return t[4]!==r||t[5]!==o?(s=f(`script`,{dangerouslySetInnerHTML:o,nonce:r,suppressHydrationWarning:!0}),t[4]=r,t[5]=o,t[6]=s):s=t[6],s};function P(n){let r=a(16),i;r[0]===n?i=r[1]:(i=n===void 0?{}:n,r[0]=n,r[1]=i);let o=i,s;r[2]===o?s=r[3]:(s=o??{},r[2]=o,r[3]=s);let{className:c,forceTheme:l,ssrCookie:u}=s,d=c===void 0?``:c,f,p;if(t()){let e;if(r[7]===Symbol.for(`react.memo_cache_sentinel`)){let t=window.matchMedia(y).matches,n=window.matchMedia(b).matches;f=F({cookie:document.cookie}),e=O(f,{prefersDarkMode:t,prefersHighContrast:n}),r[7]=e,r[8]=f}else e=r[7],f=r[8];p=e}else{let e;r[4]===u?(e=r[5],f=r[6]):(f=F({cookie:u}),e=O(f,{prefersDarkMode:!1,prefersHighContrast:!1}),r[4]=u,r[5]=e,r[6]=f),p=e}let m=l??p,h;r[9]!==m||r[10]!==d?(h=e(d,m),r[9]=m,r[10]=d,r[11]=h):h=r[11];let g;return r[12]!==m||r[13]!==f||r[14]!==h?(g={className:h,"data-applied-theme":m,"data-theme":f},r[12]=m,r[13]=f,r[14]=h,r[15]=g):g=r[15],g}function F({cookie:e}){if(!e)return S;let t=r(e,x);return g(t)?t:S}function I(e){return i(e,x)}function L(e,t){let{broadcastChannel:n,pingKey:r}=t;try{if(n){n.postMessage({theme:e,timestamp:Date.now()});return}}catch{}try{localStorage.setItem(r,JSON.stringify({theme:e,timestamp:Date.now()}))}catch{}}function R(e){let t=new Date;t.setFullYear(t.getFullYear()+1);let{hostname:n,protocol:r}=window.location,i=n===`ngrok.com`||n.endsWith(`.ngrok.com`)?`; domain=.ngrok.com`:``,a=r===`https:`?`; Secure`:``;return`${x}=${encodeURIComponent(e)}; expires=${t.toUTCString()}; path=/${i}; SameSite=Lax${a}`}function z(e){if(t())try{document.cookie=R(e)}catch{}}function B(e){if(e!=null)try{e.close()}catch{}}export{M as a,P as c,h as d,v as f,m as h,F as i,T as l,p as m,w as n,D as o,g as p,I as r,k as s,N as t,_ as u};
@@ -1 +0,0 @@
1
- import{t as e}from"./cx-0HCjnNv1.js";import{r as t}from"./layer-container-R7aux3n8.js";import{c as n}from"react/compiler-runtime";import{jsx as r,jsxs as i}from"react/jsx-runtime";import{Arrow as a,Content as o,Portal as s,Provider as c,Root as l,Trigger as u}from"@radix-ui/react-tooltip";const d=e=>{let t=n(6),i,a;t[0]===e?(i=t[1],a=t[2]):({delayDuration:a,...i}=e,t[0]=e,t[1]=i,t[2]=a);let o=(a===void 0?0:a)??0,s;return t[3]!==i||t[4]!==o?(s=r(c,{delayDuration:o,...i}),t[3]=i,t[4]=o,t[5]=s):s=t[5],s};function f(e){let t=n(2),i;return t[0]===e?i=t[1]:(i=r(l,{...e}),t[0]=e,t[1]=i),i}function p(e){let t=n(2),i;return t[0]===e?i=t[1]:(i=r(u,{"data-slot":`tooltip-trigger`,...e}),t[0]=e,t[1]=i),i}const m={Root:f,Content:c=>{let l=n(20),u,d,f,p,m;l[0]===c?(u=l[1],d=l[2],f=l[3],p=l[4],m=l[5]):({children:u,className:d,ref:p,sideOffset:m,...f}=c,l[0]=c,l[1]=u,l[2]=d,l[3]=f,l[4]=p,l[5]=m);let h=m===void 0?4:m,g=t(),_;l[6]===d?_=l[7]:(_=e(`bg-tooltip text-tooltip animate-in fade-in-0 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 data-state-closed:animate-out data-state-closed:fade-out-0 data-state-closed:zoom-out-95 z-50 max-w-72 overflow-visible wrap-break-word rounded-md px-3 py-1.5 text-sm font-sans shadow`,d),l[6]=d,l[7]=_);let v;l[8]===u?v=l[9]:(v=r(`div`,{"data-slot":`tooltip-label`,className:`contents`,children:u}),l[8]=u,l[9]=v);let y;l[10]===Symbol.for(`react.memo_cache_sentinel`)?(y=r(a,{asChild:!0,children:r(`div`,{className:`bg-tooltip z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-xs`})}),l[10]=y):y=l[10];let b;l[11]!==f||l[12]!==p||l[13]!==h||l[14]!==_||l[15]!==v?(b=i(o,{className:_,"data-slot":`tooltip-content`,ref:p,sideOffset:h,...f,children:[v,y]}),l[11]=f,l[12]=p,l[13]=h,l[14]=_,l[15]=v,l[16]=b):b=l[16];let x;return l[17]!==g||l[18]!==b?(x=r(s,{container:g,children:b}),l[17]=g,l[18]=b,l[19]=x):x=l[19],x},Trigger:p};export{d as n,m as t};
@@ -1 +0,0 @@
1
- import{c as e}from"react/compiler-runtime";import{useEffect as t,useState as n,useSyncExternalStore as r}from"react";const i=[`2xl`,`xl`,`lg`,`md`,`sm`,`xs`,`2xs`],a=[`default`,...i];function o(){return r(S,C,s)}function s(){return`default`}function c(t){let n=e(4),i;n[0]===t?i=n[1]:(i=T(t),n[0]=t,n[1]=i);let a;return n[2]===t?a=n[3]:(a=D(t),n[2]=t,n[3]=a),r(i,a,l)}function l(){return!1}const u={"2xl":`(min-width: 96rem)`,xl:`(min-width: 80rem)`,lg:`(min-width: 64rem)`,md:`(min-width: 48rem)`,sm:`(min-width: 40rem)`,xs:`(min-width: 30rem)`,"2xs":`(min-width: 22.5rem)`},d={"2xl":`(max-width: 95.99rem)`,xl:`(max-width: 79.99rem)`,lg:`(max-width: 63.99rem)`,md:`(max-width: 47.99rem)`,sm:`(max-width: 39.99rem)`,xs:`(max-width: 29.99rem)`,"2xs":`(max-width: 22.49rem)`};let f=null,p=null;function m(){return f||={"2xl":window.matchMedia(u[`2xl`]),xl:window.matchMedia(u.xl),lg:window.matchMedia(u.lg),md:window.matchMedia(u.md),sm:window.matchMedia(u.sm),xs:window.matchMedia(u.xs),"2xs":window.matchMedia(u[`2xs`])},f}function h(e){return p||={"2xl":window.matchMedia(d[`2xl`]),xl:window.matchMedia(d.xl),lg:window.matchMedia(d.lg),md:window.matchMedia(d.md),sm:window.matchMedia(d.sm),xs:window.matchMedia(d.xs),"2xs":window.matchMedia(d[`2xs`])},p[e]}let g=`default`;const _=new Set;let v=!1;function y(){let e=m();for(let t of i)if(e[t].matches)return t;return`default`}let b=!1;function x(){b||(b=!0,requestAnimationFrame(()=>{b=!1;let e=y();if(e!==g){g=e;for(let e of _)e()}}))}function S(e){if(_.add(e),!v){v=!0;let e=m();g=y();for(let t of Object.values(e))t.addEventListener(`change`,x)}return e(),()=>{if(_.delete(e),_.size===0&&v){v=!1;let e=m();for(let t of Object.values(e))t.removeEventListener(`change`,x)}}}function C(){return v||(g=y()),g}const w=new Map;function T(e){let t=w.get(e);return t||(t=t=>{let n=h(e),r=!1,i=()=>{r||(r=!0,requestAnimationFrame(()=>{r=!1,t()}))};return n.addEventListener(`change`,i),()=>{n.removeEventListener(`change`,i)}},w.set(e,t),t)}const E=new Map;function D(e){let t=E.get(e);return t||(t=()=>h(e).matches,E.set(e,t),t)}function O(){let r=e(2),[i,a]=n(!1),o,s;return r[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=()=>{let e=requestAnimationFrame(()=>{a(!0)});return()=>{cancelAnimationFrame(e)}},s=[],r[0]=o,r[1]=s):(o=r[0],s=r[1]),t(o,s),i}export{c as i,a as n,o as r,O as t};