@vitrumui/react 2.0.1 → 2.2.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 (68) hide show
  1. package/dist/chunk-2ASVBPU4.js +2 -0
  2. package/dist/chunk-3IIHEP6U.js +2 -0
  3. package/dist/chunk-4NMYG4TZ.js +2 -0
  4. package/dist/chunk-5RKCH57V.js +2 -0
  5. package/dist/chunk-5WUTOVNB.js +2 -0
  6. package/dist/chunk-CUPBYLM4.js +2 -0
  7. package/dist/chunk-EAZ62QSO.js +2 -0
  8. package/dist/chunk-EVRORS2V.js +2 -0
  9. package/dist/chunk-JQBQXLGN.js +2 -0
  10. package/dist/chunk-LMO3IKGQ.js +2 -0
  11. package/dist/chunk-LZNPHZ4X.js +2 -0
  12. package/dist/chunk-NKRH4Q2H.js +2 -0
  13. package/dist/chunk-TUMBPPSO.js +2 -0
  14. package/dist/chunk-VVSLSFDY.js +2 -0
  15. package/dist/chunk-XVVYMZ5F.js +2 -0
  16. package/dist/chunk-ZW3IR2KQ.js +2 -0
  17. package/dist/controls/Checkbox.d.ts +16 -3
  18. package/dist/controls/Checkbox.js +1 -1
  19. package/dist/controls/RangeSlider.d.ts +10 -2
  20. package/dist/controls/RangeSlider.js +1 -1
  21. package/dist/controls/Switch.d.ts +11 -2
  22. package/dist/controls/Switch.js +1 -1
  23. package/dist/controls/glass/runtime.d.ts +88 -0
  24. package/dist/controls/shared.d.ts +25 -1
  25. package/dist/glass-action-button.js +1 -1
  26. package/dist/glass-badge.d.ts +4 -2
  27. package/dist/glass-badge.js +1 -1
  28. package/dist/glass-button-group.js +1 -1
  29. package/dist/glass-button.d.ts +2 -2
  30. package/dist/glass-button.js +1 -1
  31. package/dist/glass-card.js +1 -1
  32. package/dist/glass-dropdown-menu.js +1 -1
  33. package/dist/glass-droplet-row.d.ts +3 -0
  34. package/dist/glass-layer.d.ts +59 -3
  35. package/dist/glass-menu.js +1 -1
  36. package/dist/glass-popover.js +1 -1
  37. package/dist/glass-popup.d.ts +15 -1
  38. package/dist/glass-search.d.ts +123 -0
  39. package/dist/glass-search.js +3 -0
  40. package/dist/glass-select.js +1 -1
  41. package/dist/glass-slide-to-confirm.d.ts +20 -5
  42. package/dist/glass-slide-to-confirm.js +1 -1
  43. package/dist/glass-surface.d.ts +9 -1
  44. package/dist/glass-surface.js +1 -1
  45. package/dist/glass-tabs.d.ts +4 -3
  46. package/dist/glass-tabs.js +1 -1
  47. package/dist/index.d.ts +1 -0
  48. package/dist/index.js +1 -1
  49. package/dist/runtime-OC3NF25O.js +2 -0
  50. package/dist/styles.css +1 -1
  51. package/dist/theme.d.ts +10 -2
  52. package/dist/theme.js +1 -1
  53. package/package.json +14 -8
  54. package/dist/chunk-3FVJ6IEM.js +0 -2
  55. package/dist/chunk-5QIW5GHV.js +0 -2
  56. package/dist/chunk-5SBAJLEI.js +0 -2
  57. package/dist/chunk-AOEWAIGE.js +0 -2
  58. package/dist/chunk-BHVG3AD3.js +0 -2
  59. package/dist/chunk-E5F7TQ7I.js +0 -2
  60. package/dist/chunk-FVKDZFPR.js +0 -2
  61. package/dist/chunk-G7NVFW5L.js +0 -2
  62. package/dist/chunk-IHAKQPCJ.js +0 -2
  63. package/dist/chunk-QZRTCDJH.js +0 -2
  64. package/dist/chunk-RDUUCXZF.js +0 -2
  65. package/dist/chunk-YOENTAPC.js +0 -2
  66. package/dist/chunk-YPSGSD6W.js +0 -2
  67. package/dist/chunk-ZCV4ENGP.js +0 -2
  68. package/dist/runtime-WIL6WCEJ.js +0 -2
@@ -1,7 +1,14 @@
1
+ import { type ComponentProps } from "react";
1
2
  import { type Theme } from "./shared.js";
2
- export type SwitchProps = {
3
+ export type SwitchProps = Omit<ComponentProps<"button">, "onChange" | "children" | "value" | "defaultValue" | "defaultChecked" | "type" | "role" | "color"> & {
4
+ /** On or off, controlled: the switch shows this and reports changes through `onCheckedChange`. */
3
5
  checked?: boolean;
6
+ /** Where an uncontrolled switch starts (default `false`). */
7
+ defaultChecked?: boolean;
8
+ onCheckedChange?: (checked: boolean) => void;
9
+ /** @deprecated Use `onCheckedChange`; `onChange` stays as an alias until 3.0. */
4
10
  onChange?: (checked: boolean) => void;
11
+ /** The visible label. Without one, give the switch an `aria-label` or `aria-labelledby`. */
5
12
  label?: string;
6
13
  description?: string;
7
14
  theme?: Theme;
@@ -14,6 +21,8 @@ export type SwitchProps = {
14
21
  lensScale?: number;
15
22
  refraction?: number;
16
23
  knobBounce?: number;
24
+ /** On the outermost element. `ref` and the other props go to the switch itself (the button). */
25
+ className?: string;
17
26
  };
18
- export declare function Switch({ checked, onChange, label, description, theme, color, size, labelSide, disabled, lensScale, refraction, knobBounce, }: SwitchProps): import("react").JSX.Element;
27
+ export declare function Switch({ checked, defaultChecked, onCheckedChange, onChange, label, description, theme, color, size, labelSide, disabled, lensScale, refraction, knobBounce, className, id: idProp, ...rest }: SwitchProps): import("react").JSX.Element;
19
28
  export default Switch;
@@ -1,3 +1,3 @@
1
1
  "use client";
2
2
  /*! Vitrum © 2026 Onuzulike Anthony Ifechukwu. All rights reserved. Includes Liquid Glass UI © 2026 Bilal Abdullah Gürşen (MIT), see THIRD_PARTY_NOTICES.md */
3
- function _0x1373(){const _0x4ab394=['446700efAdWX','startPos','left','324218RCQgGm','press','pos','abs','bottom','731370TPAoYp','dragPos','155dHbeZs','573704agugpG','pointerId','inline-flex\x20items-center\x20gap-3\x20','top','14Ppiwlb','pressed','label','1410638lgQxPO','clientX','45ERgMNd','setPointerCapture','span','startX','relative\x20shrink-0\x20cursor-pointer\x20touch-none\x20rounded-full\x20disabled:cursor-not-allowed\x20disabled:opacity-40\x20','55072yvpmuX','moved','current','div','flex-row-reverse','text-[12px]\x20text-neutral-500','907755hyWunS','pointer-events-none\x20absolute'];_0x1373=function(){return _0x4ab394;};return _0x1373();}(function(_0x384be7,_0x4e1ae1){const _0x118f74=_0x5472,_0x409f0d=_0x384be7();while(!![]){try{const _0x34af05=parseInt(_0x118f74(0xd1))/0x1+parseInt(_0x118f74(0xe0))/0x2+-parseInt(_0x118f74(0xed))/0x3+parseInt(_0x118f74(0xe7))/0x4*(-parseInt(_0x118f74(0xd8))/0x5)+parseInt(_0x118f74(0xef))/0x6+-parseInt(_0x118f74(0xdd))/0x7*(-parseInt(_0x118f74(0xd9))/0x8)+-parseInt(_0x118f74(0xe2))/0x9*(-parseInt(_0x118f74(0xd6))/0xa);if(_0x34af05===_0x4e1ae1)break;else _0x409f0d['push'](_0x409f0d['shift']());}catch(_0x57722d){_0x409f0d['push'](_0x409f0d['shift']());}}}(_0x1373,0xd7bf9));import{m,l,b,f,c,g,h,d,e,n,i}from'../chunk-E5F7TQ7I.js';import{useId,useRef}from'react';function _0x5472(_0x1438ce,_0x339c7f){_0x1438ce=_0x1438ce-0xd0;const _0x137304=_0x1373();let _0x547290=_0x137304[_0x1438ce];return _0x547290;}import{jsxs,jsx}from'react/jsx-runtime';var s={'w':0x89,'h':0x3c},a={'w':0x51,'h':0x33},k=(s['h']-a['h'])/0x2,o={'x':0x3c,'top':0x32,'bottom':0x82},et={'sm':0x16,'md':0x1c,'lg':0x24};function nt({checked:_0x145fad=![],onChange:_0x426589,label:_0x4de324='Notifications',description:_0x591759,theme:_0x4bd00f,color:_0x129f45,size:_0x42045c='md',labelSide:_0x4ae601='right',disabled:_0x8875d8=![],lensScale:_0x3416ca=1.55,refraction:_0x531590=0x1a,knobBounce:_0x1e3129=0.3}){const _0x57dedf=_0x5472;let _0x291541=useId(),[_0x40a264,_0x56c489]=m(_0x145fad,_0x426589),_0x7f349c=et[_0x42045c]/s['h'],_0x1f4f8f=s['w']*_0x7f349c,_0x3286f7=s['h']*_0x7f349c,_0x4649d1=s['w']-a['w']-k*0x2,_0x40a322=useRef({'pos':{'x':_0x40a264?0x1:0x0,'v':0x0},'press':{'x':0x0,'v':0x0},'pressed':![],'dragPos':null}),_0x1bce8e=useRef(null),_0x1db620=useRef(![]),{canvasRef:_0x45a309,ready:_0x1743d0}=l({'width':(s['w']+o['x']*0x2)*_0x7f349c,'height':(s['h']+o[_0x57dedf(0xdc)]+o['bottom'])*_0x7f349c,'unit':_0x7f349c,'cursorLight':!![],'step'(_0x248a47,_0x130288){const _0x4a5b53=_0x57dedf;let _0x5c0c82=_0x40a322['current'],_0x2108a5=_0x5c0c82[_0x4a5b53(0xd7)]??(_0x40a264?0x1:0x0);if(_0x130288)return _0x5c0c82[_0x4a5b53(0xd3)]={'x':_0x2108a5,'v':0x0},_0x5c0c82[_0x4a5b53(0xd2)]={'x':_0x5c0c82['pressed']?0x1:0x0,'v':0x0},![];let _0x47da52=_0x5c0c82[_0x4a5b53(0xd7)]===null&&Math[_0x4a5b53(0xd4)](_0x5c0c82['pos']['x']-_0x2108a5)>0.08,_0x4d2248=_0x5c0c82['dragPos']!==null?d(_0x5c0c82[_0x4a5b53(0xd3)],_0x2108a5,0x28,0x1,_0x248a47):d(_0x5c0c82[_0x4a5b53(0xd3)],_0x2108a5,0xf,0x1-_0x1e3129,_0x248a47),_0x37dd79=d(_0x5c0c82['press'],_0x5c0c82['pressed']||_0x47da52?0x1:0x0,e['omega'],e['zeta'],_0x248a47);return _0x4d2248||_0x37dd79;},'draw'(_0x1bc8b0,_0x466e97,_0xd30bfb){const _0x10d9ec=_0x57dedf;let _0x3a16ce=_0x40a322['current'];b(_0x1bc8b0,{'x':o['x']*_0x7f349c,'y':(o['top']+s['h']/0x2)*_0x7f349c,'length':_0x1f4f8f,'height':_0x3286f7,'fillEnd':(o['x']+s['w'])*_0x7f349c,'track':_0xd30bfb['track'],'accent':_0x129f45??_0xd30bfb['accent'],'fillOpacity':f(_0x3a16ce['pos']['x'])});let _0x12a634=a['h']*_0x3416ca/0x78,_0x398a86={...c(g,_0x12a634),'refraction':_0x531590,'cornerRadius':0x3e7};return{...h(_0x3a16ce['press']['x'],a,{'w':a['w']*_0x3416ca,'h':a['h']*_0x3416ca},0x1,_0x398a86),'x':o['x']+k+a['w']/0x2+_0x3a16ce[_0x10d9ec(0xd3)]['x']*_0x4649d1,'y':o['top']+s['h']/0x2,'stretchX':0x1,'stretchY':0x1,'shiftX':0x0,'frostCenter':'#ffffff','frostEdge':'#e9ebef'};}}),_0xe3fd07=_0xdbdcde=>_0xdbdcde[_0x57dedf(0xe1)]-_0xdbdcde['currentTarget']['getBoundingClientRect']()['left'],_0x59f59e=_0x318243=>{const _0x555e52=_0x57dedf;_0x8875d8||_0x318243['button']!==0x0||(_0x318243['currentTarget'][_0x555e52(0xe3)](_0x318243[_0x555e52(0xda)]),_0x40a322['current'][_0x555e52(0xde)]=!![],_0x1bce8e['current']={'startX':_0xe3fd07(_0x318243),'startPos':_0x40a264?0x1:0x0,'moved':![]});},_0x4838eb=_0x64cc0a=>{const _0x55d776=_0x57dedf;let _0x4352c8=_0x1bce8e[_0x55d776(0xe9)];if(!_0x4352c8)return;let _0x34b578=_0xe3fd07(_0x64cc0a)-_0x4352c8[_0x55d776(0xe5)];!_0x4352c8[_0x55d776(0xe8)]&&Math['abs'](_0x34b578)<0x3||(_0x4352c8['moved']=!![],_0x40a322[_0x55d776(0xe9)][_0x55d776(0xd7)]=f(_0x4352c8[_0x55d776(0xf0)]+_0x34b578/(_0x4649d1*_0x7f349c)));},_0x21f814=()=>{const _0x2d1d33=_0x57dedf;let _0x3c59c5=_0x1bce8e[_0x2d1d33(0xe9)];_0x1bce8e['current']=null;let _0x145bdf=_0x40a322['current'];if(_0x145bdf[_0x2d1d33(0xde)]=![],!_0x3c59c5)return;let _0x283345=_0x3c59c5[_0x2d1d33(0xe8)]?(_0x145bdf[_0x2d1d33(0xd7)]??0x0)>0.5:!_0x40a264;_0x145bdf['dragPos']=null,_0x1db620[_0x2d1d33(0xe9)]=!![],_0x56c489(_0x283345);},_0x32d542=jsxs('button',{'id':_0x291541,'type':'button','role':'switch','aria-checked':_0x40a264,'disabled':_0x8875d8,'onClick':()=>{const _0x28bb51=_0x57dedf;_0x1db620['current']?_0x1db620[_0x28bb51(0xe9)]=![]:_0x56c489(!_0x40a264);},'onPointerDown':_0x59f59e,'onPointerMove':_0x4838eb,'onPointerUp':_0x21f814,'onPointerCancel':_0x21f814,'className':_0x57dedf(0xe6)['concat'](n),'style':{'width':_0x1f4f8f,'height':_0x3286f7},'children':[!_0x1743d0&&jsx(i,{'on':_0x40a264,'color':_0x129f45,'width':_0x1f4f8f,'height':_0x3286f7,'knob':{'w':a['w']*_0x7f349c,'h':a['h']*_0x7f349c},'pad':k*_0x7f349c}),jsx('canvas',{'ref':_0x45a309,'data-vt-ready':_0x1743d0?'':void 0x0,'aria-hidden':'true','className':_0x57dedf(0xee),'style':{'left':-0x3c*_0x7f349c,'top':-0x32*_0x7f349c,'width':(s['w']+o['x']*0x2)*_0x7f349c,'height':(s['h']+o['top']+o[_0x57dedf(0xd5)])*_0x7f349c}})]});return _0x4de324?jsxs(_0x57dedf(0xea),{'data-theme':_0x4bd00f,'className':_0x57dedf(0xdb)['concat'](_0x4ae601===_0x57dedf(0xd0)?_0x57dedf(0xeb):''),'children':[_0x32d542,jsxs(_0x57dedf(0xdf),{'htmlFor':_0x291541,'className':'relative\x20flex\x20cursor-pointer\x20flex-col\x20select-none','children':[jsx(_0x57dedf(0xe4),{'className':'text-[13px]\x20font-medium\x20text-neutral-900\x20dark:text-white','children':_0x4de324}),_0x591759&&jsx(_0x57dedf(0xe4),{'className':_0x57dedf(0xec),'children':_0x591759})]})]}):jsx(_0x57dedf(0xe4),{'data-theme':_0x4bd00f,'className':'inline-flex','children':_0x32d542});}var ut=nt;export{nt as Switch,ut as default};
3
+ function _0x120d(){const _0x2895fb=['switch','current','pointer-events-none\x20absolute','checked','pos','inline-flex\x20items-center\x20gap-3\x20','569035YEwYbj','144BmPXIJ','accent','aria-label','#ffffff','8Wamqih','button','top','onClick','104820NXLywv','#e9ebef','onCheckedChange','dragPos','1073592aLdUlN','aria-labelledby','9429417lcFuLK','omega','startPos','64687qPzTQa','pressed','relative\x20shrink-0\x20cursor-pointer\x20touch-none\x20rounded-full\x20disabled:cursor-not-allowed\x20disabled:opacity-40\x20','relative\x20flex\x20cursor-pointer\x20flex-col\x20select-none','onPointerCancel','Switch','span','pointerId','div','concat','zeta','currentTarget','349432qLeKAY','635718rdEktO','moved','bottom','press'];_0x120d=function(){return _0x2895fb;};return _0x120d();}(function(_0x3788cf,_0x4ff1bb){const _0xdd9597=_0x2ff2,_0x42e050=_0x3788cf();while(!![]){try{const _0x341bdd=parseInt(_0xdd9597(0x10a))/0x1+parseInt(_0xdd9597(0x10b))/0x2+parseInt(_0xdd9597(0x122))/0x3+-parseInt(_0xdd9597(0x11e))/0x4+parseInt(_0xdd9597(0x115))/0x5+parseInt(_0xdd9597(0x116))/0x6*(parseInt(_0xdd9597(0x127))/0x7)+parseInt(_0xdd9597(0x11a))/0x8*(-parseInt(_0xdd9597(0x124))/0x9);if(_0x341bdd===_0x4ff1bb)break;else _0x42e050['push'](_0x42e050['shift']());}catch(_0x7e695){_0x42e050['push'](_0x42e050['shift']());}}}(_0x120d,0x4606c));import{l,b,f,c as _0x141e1d,g,h,d,e,i}from'../chunk-NKRH4Q2H.js';import{a as _0x339a3f,c,d as _0x397f59,b as _0xe8f72f}from'../chunk-TUMBPPSO.js';import{useId,useRef}from'react';import{jsxs,jsx}from'react/jsx-runtime';var s={'w':0x89,'h':0x3c},a={'w':0x51,'h':0x33},S=(s['h']-a['h'])/0x2,o={'x':0x3c,'top':0x32,'bottom':0x82},ie={'sm':0x16,'md':0x1c,'lg':0x24};function de({checked:_0x5cf9d5,defaultChecked:_0x44395e=![],onCheckedChange:_0x512efb,onChange:_0x30aea4,label:_0x30fe49,description:_0x50f401,theme:_0x422502,color:_0x5382d8,size:_0x35c51f='md',labelSide:_0x4c2fee='right',disabled:_0x57fab9=![],lensScale:_0x582579=1.55,refraction:_0x5b627f=0x1a,knobBounce:_0x23b064=0.3,className:_0x44c0a8='',id:_0x2d68b6,..._0x2a0af2}){const _0x1c7fc2=_0x2ff2;let _0x596964=useId(),_0x12a342=_0x2d68b6??_0x596964,[_0x355128,_0x580220]=_0x339a3f(_0x5cf9d5,_0x44395e,_0x2cc22e=>{_0x512efb?.(_0x2cc22e),_0x30aea4?.(_0x2cc22e);},{'hasHandler':!!(_0x512efb||_0x30aea4),'component':'Switch','prop':_0x1c7fc2(0x112),'defaultProp':'defaultChecked','handler':_0x1c7fc2(0x120)});c(_0x1c7fc2(0x103),_0x30fe49||_0x2a0af2[_0x1c7fc2(0x118)]||_0x2a0af2[_0x1c7fc2(0x123)]);let _0xd2e1ad=ie[_0x35c51f]/s['h'],_0x4d19b2=s['w']*_0xd2e1ad,_0x5ce05c=s['h']*_0xd2e1ad,_0x54fc04=s['w']-a['w']-S*0x2,_0x27e384=useRef({'pos':{'x':_0x355128?0x1:0x0,'v':0x0},'press':{'x':0x0,'v':0x0},'pressed':![],'dragPos':null}),_0x58f358=useRef(null),_0x411966=useRef(![]),{canvasRef:_0x3129d1,ready:_0x1269b7}=l({'width':(s['w']+o['x']*0x2)*_0xd2e1ad,'height':(s['h']+o[_0x1c7fc2(0x11c)]+o[_0x1c7fc2(0x10d)])*_0xd2e1ad,'unit':_0xd2e1ad,'cursorLight':!![],'step'(_0x3fd427,_0x5efd89){const _0x52cde4=_0x1c7fc2;let _0x1b7701=_0x27e384['current'],_0x4fc1fc=_0x1b7701['dragPos']??(_0x355128?0x1:0x0);if(_0x5efd89)return _0x1b7701['pos']={'x':_0x4fc1fc,'v':0x0},_0x1b7701[_0x52cde4(0x10e)]={'x':_0x1b7701[_0x52cde4(0x128)]?0x1:0x0,'v':0x0},![];let _0x44da92=_0x1b7701['dragPos']===null&&Math['abs'](_0x1b7701['pos']['x']-_0x4fc1fc)>0.08,_0xb1854f=_0x1b7701['dragPos']!==null?d(_0x1b7701['pos'],_0x4fc1fc,0x28,0x1,_0x3fd427):d(_0x1b7701[_0x52cde4(0x113)],_0x4fc1fc,0xf,0x1-_0x23b064,_0x3fd427),_0x310c41=d(_0x1b7701['press'],_0x1b7701['pressed']||_0x44da92?0x1:0x0,e[_0x52cde4(0x125)],e[_0x52cde4(0x108)],_0x3fd427);return _0xb1854f||_0x310c41;},'draw'(_0x6b4951,_0x14546c,_0x97593f){const _0xe89a7d=_0x1c7fc2;let _0x45f31c=_0x27e384['current'];b(_0x6b4951,{'x':o['x']*_0xd2e1ad,'y':(o[_0xe89a7d(0x11c)]+s['h']/0x2)*_0xd2e1ad,'length':_0x4d19b2,'height':_0x5ce05c,'fillEnd':(o['x']+s['w'])*_0xd2e1ad,'track':_0x97593f['track'],'accent':_0x5382d8??_0x97593f[_0xe89a7d(0x117)],'fillOpacity':f(_0x45f31c['pos']['x'])});let _0x38ec6b=a['h']*_0x582579/0x78,_0xbd43f8={..._0x141e1d(g,_0x38ec6b),'refraction':_0x5b627f,'cornerRadius':0x3e7};return{...h(_0x45f31c['press']['x'],a,{'w':a['w']*_0x582579,'h':a['h']*_0x582579},0x1,_0xbd43f8),'x':o['x']+S+a['w']/0x2+_0x45f31c[_0xe89a7d(0x113)]['x']*_0x54fc04,'y':o['top']+s['h']/0x2,'stretchX':0x1,'stretchY':0x1,'shiftX':0x0,'frostCenter':_0xe89a7d(0x119),'frostEdge':_0xe89a7d(0x11f)};}}),_0x31fe8d=_0x2881d9=>_0x2881d9['clientX']-_0x2881d9['currentTarget']['getBoundingClientRect']()['left'],_0x4d841b=_0x4c2c20=>{const _0x22f587=_0x1c7fc2;_0x57fab9||_0x4c2c20[_0x22f587(0x11b)]!==0x0||(_0x4c2c20[_0x22f587(0x109)]['setPointerCapture'](_0x4c2c20[_0x22f587(0x105)]),_0x27e384[_0x22f587(0x110)][_0x22f587(0x128)]=!![],_0x58f358['current']={'startX':_0x31fe8d(_0x4c2c20),'startPos':_0x355128?0x1:0x0,'moved':![]});},_0x5710f5=_0x216a2d=>{const _0x403e24=_0x1c7fc2;let _0x1c8438=_0x58f358[_0x403e24(0x110)];if(!_0x1c8438)return;let _0x4e4a45=_0x31fe8d(_0x216a2d)-_0x1c8438['startX'];!_0x1c8438[_0x403e24(0x10c)]&&Math['abs'](_0x4e4a45)<0x3||(_0x1c8438[_0x403e24(0x10c)]=!![],_0x27e384[_0x403e24(0x110)][_0x403e24(0x121)]=f(_0x1c8438[_0x403e24(0x126)]+_0x4e4a45/(_0x54fc04*_0xd2e1ad)));},_0x47034e=()=>{const _0x2b1746=_0x1c7fc2;let _0x517c44=_0x58f358['current'];_0x58f358[_0x2b1746(0x110)]=null;let _0x7e46b2=_0x27e384[_0x2b1746(0x110)];if(_0x7e46b2[_0x2b1746(0x128)]=![],!_0x517c44)return;let _0x35089e=_0x517c44[_0x2b1746(0x10c)]?(_0x7e46b2[_0x2b1746(0x121)]??0x0)>0.5:!_0x355128;_0x7e46b2['dragPos']=null,_0x411966['current']=!![],_0x580220(_0x35089e);},_0x292ebb=jsxs(_0x1c7fc2(0x11b),{..._0x2a0af2,'id':_0x12a342,'type':_0x1c7fc2(0x11b),'role':_0x1c7fc2(0x10f),'aria-checked':_0x355128,'disabled':_0x57fab9,'onClick':_0xe8f72f(()=>{_0x411966['current']?_0x411966['current']=![]:_0x580220(!_0x355128);},_0x2a0af2[_0x1c7fc2(0x11d)]),'onPointerDown':_0xe8f72f(_0x4d841b,_0x2a0af2['onPointerDown']),'onPointerMove':_0xe8f72f(_0x5710f5,_0x2a0af2['onPointerMove']),'onPointerUp':_0xe8f72f(_0x47034e,_0x2a0af2['onPointerUp']),'onPointerCancel':_0xe8f72f(_0x47034e,_0x2a0af2[_0x1c7fc2(0x102)]),'className':_0x1c7fc2(0x129)['concat'](_0x397f59),'style':{'width':_0x4d19b2,'height':_0x5ce05c},'children':[!_0x1269b7&&jsx(i,{'on':_0x355128,'color':_0x5382d8,'width':_0x4d19b2,'height':_0x5ce05c,'knob':{'w':a['w']*_0xd2e1ad,'h':a['h']*_0xd2e1ad},'pad':S*_0xd2e1ad}),jsx('canvas',{'ref':_0x3129d1,'data-vt-ready':_0x1269b7?'':void 0x0,'aria-hidden':'true','className':_0x1c7fc2(0x111),'style':{'left':-0x3c*_0xd2e1ad,'top':-0x32*_0xd2e1ad,'width':(s['w']+o['x']*0x2)*_0xd2e1ad,'height':(s['h']+o[_0x1c7fc2(0x11c)]+o['bottom'])*_0xd2e1ad}})]});return _0x30fe49?jsxs(_0x1c7fc2(0x106),{'data-theme':_0x422502,'className':_0x1c7fc2(0x114)[_0x1c7fc2(0x107)](_0x4c2fee==='left'?'flex-row-reverse':'','\x20')['concat'](_0x44c0a8),'children':[_0x292ebb,jsxs('label',{'htmlFor':_0x12a342,'className':_0x1c7fc2(0x101),'children':[jsx('span',{'className':'text-[13px]\x20font-medium\x20text-neutral-900\x20dark:text-white','children':_0x30fe49}),_0x50f401&&jsx('span',{'className':'text-[12px]\x20text-neutral-500','children':_0x50f401})]})]}):jsx(_0x1c7fc2(0x104),{'data-theme':_0x422502,'className':'inline-flex\x20'['concat'](_0x44c0a8),'children':_0x292ebb});}function _0x2ff2(_0x15d2b0,_0x2d4f79){_0x15d2b0=_0x15d2b0-0x101;const _0x120de4=_0x120d();let _0x2ff2cc=_0x120de4[_0x15d2b0];return _0x2ff2cc;}var we=de;export{de as Switch,we as default};
@@ -1,3 +1,4 @@
1
+ import { type Spring } from "@vitrumui/core/internal";
1
2
  import type { LensState } from "./physics.js";
2
3
  import { type GlassThemeName, type GlassTokens } from "./tokens.js";
3
4
  export type GlassViewSpec = {
@@ -26,8 +27,95 @@ export type GlassViewHandle = {
26
27
  invalidate: () => void;
27
28
  dispose: () => void;
28
29
  stats: () => GlassViewStats;
30
+ /**
31
+ * Called with `true` once a frame of glass is on the canvas, and with `false` when the GPU
32
+ * context is lost (the control shows its CSS look until the glass is back). Called at once
33
+ * with where it stands now.
34
+ */
35
+ watch: (fn: (drawn: boolean) => void) => void;
36
+ };
37
+ type View = {
38
+ canvas: HTMLCanvasElement;
39
+ ctx: CanvasRenderingContext2D;
40
+ spec: () => GlassViewSpec;
41
+ bgCanvas: HTMLCanvasElement;
42
+ fgCanvas: HTMLCanvasElement;
43
+ bgTex: any;
44
+ fgTex: any;
45
+ /** This view's uniform values. Copied into the shared material's uniforms before it draws. */
46
+ u: ReturnType<typeof createUniforms>;
47
+ devW: number;
48
+ devH: number;
49
+ dpr: number;
50
+ dirty: boolean;
51
+ visible: boolean;
52
+ ready: boolean;
53
+ /** Renders left to confirm the first frame really reached the canvas. */
54
+ verifyLeft: number;
55
+ surface: string;
56
+ /** Last lens centre in design units, for aiming the cursor light. */
57
+ lensX: number;
58
+ lensY: number;
59
+ /** Where the cursor light last pointed, in half degrees (9999 = nowhere yet). */
60
+ aim: number;
61
+ /** Last lens half size in design units, as drawn (0 while it is hidden). */
62
+ lensHx: number;
63
+ lensHy: number;
64
+ /** Pointer light (LIGHT in engine.ts): how bright, where from the lens centre (CSS px), and why. */
65
+ light: {
66
+ glow: Spring;
67
+ x: number;
68
+ y: number;
69
+ press: boolean;
70
+ key: boolean;
71
+ };
72
+ renders: number;
73
+ renderMs: number;
74
+ /** A frame of glass is on the canvas now (false again while the context is lost). */
75
+ shown: boolean;
76
+ /** Told when `shown` changes (GlassViewHandle.watch). */
77
+ drawn?: (shown: boolean) => void;
78
+ };
79
+ declare function createUniforms(): {
80
+ size: any;
81
+ unit: any;
82
+ devicePx: any;
83
+ blurShift: any;
84
+ center: any;
85
+ half: any;
86
+ radius: any;
87
+ bevel: any;
88
+ refract: any;
89
+ mag: any;
90
+ disp: any;
91
+ blurC: any;
92
+ blurE: any;
93
+ frost: any;
94
+ rim: any;
95
+ caustic: any;
96
+ inner: any;
97
+ topRefl: any;
98
+ shOp: any;
99
+ shSoft: any;
100
+ shOff: any;
101
+ stretch: any;
102
+ shift: any;
103
+ frostCenter: any;
104
+ frostEdge: any;
105
+ surface: any;
106
+ lensOn: any;
107
+ lightDir: any;
108
+ lightMix: any;
109
+ light: any;
110
+ fgHide: any;
29
111
  };
30
112
  /** Lazily creates the shared renderer (client only). */
31
113
  export declare function getGlassRuntime(): Promise<{
114
+ wake: () => void;
115
+ adopt: (view: View, fresh?: boolean) => Promise<void>;
116
+ drop(view: View): void;
117
+ /** Takes this runtime apart, leaving the context to the next one, and hands back its views. */
118
+ dispose(): View[];
32
119
  createView(canvas: HTMLCanvasElement, spec: () => GlassViewSpec): Promise<GlassViewHandle>;
33
120
  }>;
121
+ export {};
@@ -1,6 +1,30 @@
1
1
  /** Per-component theme override; omit it to follow the page (data-theme="dark" or class="dark"). */
2
2
  export type Theme = "light" | "dark";
3
- export declare function useSyncedState<T>(value: T, onChange?: (value: T) => void): readonly [T, (next: T) => void];
3
+ /**
4
+ * The standard controlled/uncontrolled pattern (A4-03): pass `value` with a change handler and
5
+ * the component shows it and only reports changes (a parent that rejects one keeps the control
6
+ * where it was); leave it out and the component keeps its own state, starting at `defaultValue`.
7
+ *
8
+ * `value` WITHOUT a handler keeps the 2.1 behaviour: it is only where the control starts (and
9
+ * where it goes when the prop changes), and the control still moves on its own. Development
10
+ * builds warn once per component type. This fallback is removed in 3.0 (docs/sdlc/REMOVALS-3.0.md).
11
+ */
12
+ export declare function useControllableState<T>(value: T | undefined, defaultValue: T, onChange: ((value: T) => void) | undefined, fallback: {
13
+ hasHandler: boolean;
14
+ component: string;
15
+ prop: string;
16
+ defaultProp: string;
17
+ handler: string;
18
+ }): readonly [T, (next: T) => void];
19
+ /** Test helper: forget which components have warned about a value without a handler. */
20
+ export declare function __resetFallbackWarnings(): void;
21
+ /** Calls both handlers: the component's own first, then the one passed in. */
22
+ export declare function chain<E>(own: (e: E) => void, theirs: ((e: E) => void) | undefined): (e: E) => void;
23
+ /**
24
+ * Warns once, in development only, when a control has no accessible name: no `label`, no
25
+ * `aria-label` and no `aria-labelledby` (A4-02). There are no default labels any more.
26
+ */
27
+ export declare function useNameWarning(component: string, named: boolean | string | undefined): void;
4
28
  export declare const focusRing = "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#3291FF]";
5
29
  export declare function useElementSize<T extends HTMLElement>(): readonly [import("react").RefObject<T | null>, {
6
30
  width: number;
@@ -1,3 +1,3 @@
1
1
  "use client";
2
2
  /*! Vitrum © 2026 Onuzulike Anthony Ifechukwu. All rights reserved. Includes Liquid Glass UI © 2026 Bilal Abdullah Gürşen (MIT), see THIRD_PARTY_NOTICES.md */
3
- (function(_0x541bf6,_0x3e4ccd){var _0x44f2ec=_0x4013,_0x114828=_0x541bf6();while(!![]){try{var _0x3a98fd=parseInt(_0x44f2ec(0x174))/0x1+-parseInt(_0x44f2ec(0x173))/0x2*(parseInt(_0x44f2ec(0x16f))/0x3)+-parseInt(_0x44f2ec(0x176))/0x4*(parseInt(_0x44f2ec(0x16e))/0x5)+parseInt(_0x44f2ec(0x172))/0x6+-parseInt(_0x44f2ec(0x171))/0x7+parseInt(_0x44f2ec(0x170))/0x8+-parseInt(_0x44f2ec(0x175))/0x9*(-parseInt(_0x44f2ec(0x16d))/0xa);if(_0x3a98fd===_0x3e4ccd)break;else _0x114828['push'](_0x114828['shift']());}catch(_0x3d375b){_0x114828['push'](_0x114828['shift']());}}}(_0x5cca,0x6b737));function _0x4013(_0x480ca6,_0xf7f5d3){_0x480ca6=_0x480ca6-0x16d;var _0x5cca10=_0x5cca();var _0x401353=_0x5cca10[_0x480ca6];return _0x401353;}export{a as GlassActionButton,b as default}from'./chunk-IHAKQPCJ.js';function _0x5cca(){var _0x176108=['114864WUCnlY','140tRXLHy','474093LaHLQd','193122WJpfyg','12JcDwYx','620HDPZan','1333235kyOEto','34626CHAivE','4365560UmQssE','2249296vKVhOX'];_0x5cca=function(){return _0x176108;};return _0x5cca();}import'./chunk-QZRTCDJH.js';import'./chunk-ZCV4ENGP.js';
3
+ (function(_0xcabca5,_0x5805f3){var _0x52da71=_0x33dc,_0x5850a4=_0xcabca5();while(!![]){try{var _0x43d279=-parseInt(_0x52da71(0xbb))/0x1*(parseInt(_0x52da71(0xb5))/0x2)+parseInt(_0x52da71(0xb4))/0x3+parseInt(_0x52da71(0xb9))/0x4+parseInt(_0x52da71(0xb3))/0x5+parseInt(_0x52da71(0xb8))/0x6+-parseInt(_0x52da71(0xb7))/0x7*(-parseInt(_0x52da71(0xb2))/0x8)+-parseInt(_0x52da71(0xba))/0x9*(parseInt(_0x52da71(0xb6))/0xa);if(_0x43d279===_0x5805f3)break;else _0x5850a4['push'](_0x5850a4['shift']());}catch(_0x52680c){_0x5850a4['push'](_0x5850a4['shift']());}}}(_0x5203,0x3f136));function _0x33dc(_0x3ae311,_0x5c7cd5){_0x3ae311=_0x3ae311-0xb2;var _0x520315=_0x5203();var _0x33dca6=_0x520315[_0x3ae311];return _0x33dca6;}function _0x5203(){var _0x59d6a9=['216IjHWaL','1529224JAahXj','1394490rEuRDi','1030341GElUGH','726lWMNtt','239810NzNztO','7eWGvnU','2732442YBQBvF','12480PAKxBo','351BKaLKB'];_0x5203=function(){return _0x59d6a9;};return _0x5203();}export{a as GlassActionButton,b as default}from'./chunk-EAZ62QSO.js';import'./chunk-ZW3IR2KQ.js';import'./chunk-EVRORS2V.js';
@@ -1,4 +1,5 @@
1
- export type GlassBadgeProps = {
1
+ import { type ComponentProps } from "react";
2
+ export type GlassBadgeProps = Omit<ComponentProps<"span">, "children"> & {
2
3
  children: string;
3
4
  /** Separator colour (CSS). Default: the text colour. */
4
5
  dotColor?: string;
@@ -6,7 +7,8 @@ export type GlassBadgeProps = {
6
7
  speed?: number;
7
8
  /** Opacity of the tint over the backdrop (0–1). */
8
9
  tint?: number;
10
+ /** On the badge, like `ref` and the other props. */
9
11
  className?: string;
10
12
  };
11
- export declare function GlassBadge({ children, dotColor, speed, tint, className, }: GlassBadgeProps): import("react").JSX.Element;
13
+ export declare function GlassBadge({ children, dotColor, speed, tint, className, ...rest }: GlassBadgeProps): import("react").JSX.Element;
12
14
  export default GlassBadge;
@@ -1,3 +1,3 @@
1
1
  "use client";
2
2
  /*! Vitrum © 2026 Onuzulike Anthony Ifechukwu. All rights reserved. Includes Liquid Glass UI © 2026 Bilal Abdullah Gürşen (MIT), see THIRD_PARTY_NOTICES.md */
3
- (function(_0x4a74a0,_0x551a0b){var _0x4d5f02=_0x1760,_0x167bdd=_0x4a74a0();while(!![]){try{var _0x53d2a9=-parseInt(_0x4d5f02(0x16f))/0x1+-parseInt(_0x4d5f02(0x171))/0x2+-parseInt(_0x4d5f02(0x16d))/0x3+-parseInt(_0x4d5f02(0x16c))/0x4+-parseInt(_0x4d5f02(0x16e))/0x5+parseInt(_0x4d5f02(0x170))/0x6+parseInt(_0x4d5f02(0x16b))/0x7;if(_0x53d2a9===_0x551a0b)break;else _0x167bdd['push'](_0x167bdd['shift']());}catch(_0x7b49a2){_0x167bdd['push'](_0x167bdd['shift']());}}}(_0x50f7,0xead0c));export{a as GlassBadge,b as default}from'./chunk-5SBAJLEI.js';function _0x1760(_0x223ff3,_0x35aba3){_0x223ff3=_0x223ff3-0x16b;var _0x50f7d2=_0x50f7();var _0x1760ae=_0x50f7d2[_0x223ff3];return _0x1760ae;}function _0x50f7(){var _0x418160=['8748415fjJYsY','1537033mHSxRI','8653104EgXGyh','1163894xgMUGd','37658397EIaatS','5642264jmojoD','1742766uiJHSL'];_0x50f7=function(){return _0x418160;};return _0x50f7();}import'./chunk-QZRTCDJH.js';import'./chunk-ZCV4ENGP.js';
3
+ function _0x1a2c(_0x3eb4ea,_0x55d644){_0x3eb4ea=_0x3eb4ea-0x18a;var _0x200844=_0x2008();var _0x1a2ce6=_0x200844[_0x3eb4ea];return _0x1a2ce6;}(function(_0x2c1b94,_0x36866e){var _0x385c54=_0x1a2c,_0x1e6f71=_0x2c1b94();while(!![]){try{var _0x2000e9=parseInt(_0x385c54(0x18d))/0x1+-parseInt(_0x385c54(0x191))/0x2+-parseInt(_0x385c54(0x18f))/0x3+-parseInt(_0x385c54(0x18a))/0x4*(-parseInt(_0x385c54(0x192))/0x5)+parseInt(_0x385c54(0x18b))/0x6*(-parseInt(_0x385c54(0x18e))/0x7)+parseInt(_0x385c54(0x18c))/0x8+parseInt(_0x385c54(0x190))/0x9;if(_0x2000e9===_0x36866e)break;else _0x1e6f71['push'](_0x1e6f71['shift']());}catch(_0x3029ab){_0x1e6f71['push'](_0x1e6f71['shift']());}}}(_0x2008,0xdc44a));export{a as GlassBadge,b as default}from'./chunk-XVVYMZ5F.js';function _0x2008(){var _0x57e050=['8031762rBMNHa','376712DvXCkC','1494637vAFPKI','7dXMWlg','2167707BGEANJ','17473797gEnlII','1654536QTyQKd','5jTWNnk','1229692CTJxuN'];_0x2008=function(){return _0x57e050;};return _0x2008();}import'./chunk-ZW3IR2KQ.js';import'./chunk-EVRORS2V.js';
@@ -1,3 +1,3 @@
1
1
  "use client";
2
2
  /*! Vitrum © 2026 Onuzulike Anthony Ifechukwu. All rights reserved. Includes Liquid Glass UI © 2026 Bilal Abdullah Gürşen (MIT), see THIRD_PARTY_NOTICES.md */
3
- (function(_0x528363,_0x59c0da){var _0x3d08bc=_0x271d,_0xa557a3=_0x528363();while(!![]){try{var _0x2ac540=parseInt(_0x3d08bc(0x152))/0x1*(parseInt(_0x3d08bc(0x153))/0x2)+parseInt(_0x3d08bc(0x154))/0x3*(-parseInt(_0x3d08bc(0x155))/0x4)+parseInt(_0x3d08bc(0x15c))/0x5+parseInt(_0x3d08bc(0x15a))/0x6*(-parseInt(_0x3d08bc(0x15b))/0x7)+-parseInt(_0x3d08bc(0x159))/0x8+-parseInt(_0x3d08bc(0x156))/0x9+parseInt(_0x3d08bc(0x157))/0xa*(parseInt(_0x3d08bc(0x158))/0xb);if(_0x2ac540===_0x59c0da)break;else _0xa557a3['push'](_0xa557a3['shift']());}catch(_0x115180){_0xa557a3['push'](_0xa557a3['shift']());}}}(_0x5ec2,0x32d66));export{a as GlassButtonGroup,b as GlassButtonGroupItem,c as GlassButtonGroupSeparator,d as GlassButtonGroupText,e as default}from'./chunk-3FVJ6IEM.js';import'./chunk-YOENTAPC.js';import'./chunk-QZRTCDJH.js';function _0x271d(_0x1b0a6e,_0x2668a6){_0x1b0a6e=_0x1b0a6e-0x152;var _0x5ec233=_0x5ec2();var _0x271d14=_0x5ec233[_0x1b0a6e];return _0x271d14;}function _0x5ec2(){var _0x4880aa=['156429ZrFvtT','4327930GvbmAi','11ypVkuD','1078192qlqXcL','373218lKtpnr','7ZjrtHz','226335EZLmzp','333763zVEgBW','2QgeVue','7077SilvmR','660uCpfhQ'];_0x5ec2=function(){return _0x4880aa;};return _0x5ec2();}import'./chunk-ZCV4ENGP.js';
3
+ function _0x7570(_0x159fc8,_0x95e81b){_0x159fc8=_0x159fc8-0x1a0;var _0x149111=_0x1491();var _0x757060=_0x149111[_0x159fc8];return _0x757060;}function _0x1491(){var _0x3ea02f=['457945VgPhhS','132chLjxJ','524wwfyTf','2792816YFWtMc','295561PkRoZt','3332318cuLUSl','4215ctvtVp','10801350fDyZwq','4207518eQzMly'];_0x1491=function(){return _0x3ea02f;};return _0x1491();}(function(_0x25ed0b,_0x15ec65){var _0x50fc62=_0x7570,_0x1b2169=_0x25ed0b();while(!![]){try{var _0x19bbc3=parseInt(_0x50fc62(0x1a0))/0x1+parseInt(_0x50fc62(0x1a5))/0x2+-parseInt(_0x50fc62(0x1a8))/0x3+parseInt(_0x50fc62(0x1a2))/0x4*(parseInt(_0x50fc62(0x1a6))/0x5)+-parseInt(_0x50fc62(0x1a1))/0x6*(-parseInt(_0x50fc62(0x1a4))/0x7)+parseInt(_0x50fc62(0x1a3))/0x8+-parseInt(_0x50fc62(0x1a7))/0x9;if(_0x19bbc3===_0x15ec65)break;else _0x1b2169['push'](_0x1b2169['shift']());}catch(_0x33e775){_0x1b2169['push'](_0x1b2169['shift']());}}}(_0x1491,0xde241));export{a as GlassButtonGroup,b as GlassButtonGroupItem,c as GlassButtonGroupSeparator,d as GlassButtonGroupText,e as default}from'./chunk-3IIHEP6U.js';import'./chunk-LZNPHZ4X.js';import'./chunk-ZW3IR2KQ.js';import'./chunk-EVRORS2V.js';
@@ -1,4 +1,4 @@
1
- import { type ButtonHTMLAttributes, type ReactNode } from "react";
1
+ import { type ComponentProps, type ReactNode } from "react";
2
2
  import { type GlassMaterial } from "./glass-layer.js";
3
3
  export type GlassButtonSize = "sm" | "md" | "lg" | "xl";
4
4
  export type GlassButtonProps = {
@@ -16,6 +16,6 @@ export type GlassButtonProps = {
16
16
  /** Render the glass on the single child element (e.g. a router `<Link>`) instead of a `<button>`. */
17
17
  asChild?: boolean;
18
18
  className?: string;
19
- } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className">;
19
+ } & Omit<ComponentProps<"button">, "children" | "className">;
20
20
  export declare function GlassButton({ children, material, size, icon, iconPosition, tint, pull, asChild, className, type, ...rest }: GlassButtonProps): import("react").JSX.Element;
21
21
  export default GlassButton;
@@ -1,3 +1,3 @@
1
1
  "use client";
2
2
  /*! Vitrum © 2026 Onuzulike Anthony Ifechukwu. All rights reserved. Includes Liquid Glass UI © 2026 Bilal Abdullah Gürşen (MIT), see THIRD_PARTY_NOTICES.md */
3
- (function(_0x3702c9,_0x1b9166){var _0x103f6d=_0x3286,_0x35647d=_0x3702c9();while(!![]){try{var _0xc949c3=parseInt(_0x103f6d(0x196))/0x1+-parseInt(_0x103f6d(0x19b))/0x2*(parseInt(_0x103f6d(0x19c))/0x3)+parseInt(_0x103f6d(0x19a))/0x4*(-parseInt(_0x103f6d(0x197))/0x5)+-parseInt(_0x103f6d(0x19d))/0x6+parseInt(_0x103f6d(0x199))/0x7+parseInt(_0x103f6d(0x194))/0x8*(-parseInt(_0x103f6d(0x195))/0x9)+parseInt(_0x103f6d(0x198))/0xa;if(_0xc949c3===_0x1b9166)break;else _0x35647d['push'](_0x35647d['shift']());}catch(_0x265867){_0x35647d['push'](_0x35647d['shift']());}}}(_0xb8ca,0xd5eb5));export{a as GlassButton,b as default}from'./chunk-FVKDZFPR.js';function _0x3286(_0x198c16,_0x23aa7f){_0x198c16=_0x198c16-0x194;var _0xb8ca96=_0xb8ca();var _0x32861e=_0xb8ca96[_0x198c16];return _0x32861e;}import'./chunk-QZRTCDJH.js';function _0xb8ca(){var _0x4a40a1=['9064VbwgiC','658XSstiN','11274fcmmRk','9436218OpDurO','53120fdxTWx','1215jmVDXf','240771oiflku','830hzMMZn','33130820FOThlG','9828007HZXuPc'];_0xb8ca=function(){return _0x4a40a1;};return _0xb8ca();}import'./chunk-ZCV4ENGP.js';
3
+ function _0x152b(){var _0x2253c0=['16723652ZbbhiB','30EwoHck','2knERiZ','2572443wESOxh','2411121EHKFKl','5iHnSuu','123634xzksTB','2010640ibKuLg','276NyAINY','3410756CArMdm','47346YOpiTe'];_0x152b=function(){return _0x2253c0;};return _0x152b();}(function(_0x469a7e,_0x210153){var _0xd5dc29=_0x2a12,_0x1f6e2e=_0x469a7e();while(!![]){try{var _0x15c5c7=parseInt(_0xd5dc29(0x1b7))/0x1+-parseInt(_0xd5dc29(0x1af))/0x2*(parseInt(_0xd5dc29(0x1b1))/0x3)+-parseInt(_0xd5dc29(0x1b6))/0x4*(-parseInt(_0xd5dc29(0x1b2))/0x5)+-parseInt(_0xd5dc29(0x1b5))/0x6*(-parseInt(_0xd5dc29(0x1b3))/0x7)+parseInt(_0xd5dc29(0x1b4))/0x8+-parseInt(_0xd5dc29(0x1b0))/0x9*(-parseInt(_0xd5dc29(0x1ae))/0xa)+-parseInt(_0xd5dc29(0x1ad))/0xb;if(_0x15c5c7===_0x210153)break;else _0x1f6e2e['push'](_0x1f6e2e['shift']());}catch(_0x4ba9b5){_0x1f6e2e['push'](_0x1f6e2e['shift']());}}}(_0x152b,0x7966b));export{a as GlassButton,b as default}from'./chunk-JQBQXLGN.js';function _0x2a12(_0x1530d6,_0x234d69){_0x1530d6=_0x1530d6-0x1ad;var _0x152b59=_0x152b();var _0x2a12e9=_0x152b59[_0x1530d6];return _0x2a12e9;}import'./chunk-ZW3IR2KQ.js';import'./chunk-EVRORS2V.js';
@@ -1,3 +1,3 @@
1
1
  "use client";
2
2
  /*! Vitrum © 2026 Onuzulike Anthony Ifechukwu. All rights reserved. Includes Liquid Glass UI © 2026 Bilal Abdullah Gürşen (MIT), see THIRD_PARTY_NOTICES.md */
3
- (function(_0x1f352a,_0x5598d4){var _0x4e7c08=_0x5514,_0x3347f6=_0x1f352a();while(!![]){try{var _0x313c4a=parseInt(_0x4e7c08(0x168))/0x1+parseInt(_0x4e7c08(0x16a))/0x2+parseInt(_0x4e7c08(0x169))/0x3+-parseInt(_0x4e7c08(0x164))/0x4+parseInt(_0x4e7c08(0x167))/0x5*(parseInt(_0x4e7c08(0x16b))/0x6)+-parseInt(_0x4e7c08(0x165))/0x7+parseInt(_0x4e7c08(0x166))/0x8*(-parseInt(_0x4e7c08(0x16c))/0x9);if(_0x313c4a===_0x5598d4)break;else _0x3347f6['push'](_0x3347f6['shift']());}catch(_0x4e7833){_0x3347f6['push'](_0x3347f6['shift']());}}}(_0x4a71,0xead50));export{a as GlassCard,b as default}from'./chunk-5QIW5GHV.js';import'./chunk-QZRTCDJH.js';function _0x5514(_0x207c7b,_0x56ebc5){_0x207c7b=_0x207c7b-0x164;var _0x4a715c=_0x4a71();var _0x5514c4=_0x4a715c[_0x207c7b];return _0x5514c4;}function _0x4a71(){var _0x1f54a2=['4697736ztUiuz','1348156MsBeXD','114sVTviP','1572849LAdWEW','3008100HnOoLk','6829018YTDUus','72DaibVV','258150coAvmB','1041360jOEpld'];_0x4a71=function(){return _0x1f54a2;};return _0x4a71();}import'./chunk-ZCV4ENGP.js';
3
+ function _0x53da(_0x43d359,_0x1fb6b0){_0x43d359=_0x43d359-0x1e8;var _0x1d45a7=_0x1d45();var _0x53dadb=_0x1d45a7[_0x43d359];return _0x53dadb;}(function(_0x1faca8,_0x2ab1c8){var _0x5ab728=_0x53da,_0x304184=_0x1faca8();while(!![]){try{var _0x33c437=-parseInt(_0x5ab728(0x1e8))/0x1+-parseInt(_0x5ab728(0x1ed))/0x2+parseInt(_0x5ab728(0x1ec))/0x3+-parseInt(_0x5ab728(0x1ee))/0x4+parseInt(_0x5ab728(0x1ea))/0x5*(-parseInt(_0x5ab728(0x1ef))/0x6)+parseInt(_0x5ab728(0x1e9))/0x7*(parseInt(_0x5ab728(0x1f0))/0x8)+parseInt(_0x5ab728(0x1eb))/0x9;if(_0x33c437===_0x2ab1c8)break;else _0x304184['push'](_0x304184['shift']());}catch(_0x8f0fcb){_0x304184['push'](_0x304184['shift']());}}}(_0x1d45,0x1b19c));export{a as GlassCard,b as default}from'./chunk-VVSLSFDY.js';function _0x1d45(){var _0xb84840=['101348KUDVow','737132eCYibI','745782iuOpNu','8mqtRwg','108698sIqJAA','1360198XkzYVQ','5LwHTSL','2396358XKImGm','355140UZKfgL'];_0x1d45=function(){return _0xb84840;};return _0x1d45();}import'./chunk-ZW3IR2KQ.js';import'./chunk-EVRORS2V.js';
@@ -1,3 +1,3 @@
1
1
  "use client";
2
2
  /*! Vitrum © 2026 Onuzulike Anthony Ifechukwu. All rights reserved. Includes Liquid Glass UI © 2026 Bilal Abdullah Gürşen (MIT), see THIRD_PARTY_NOTICES.md */
3
- const _0x442f5a=_0x5349;(function(_0x529758,_0x345603){const _0x5d3a33=_0x5349,_0x1751cd=_0x529758();while(!![]){try{const _0x137c22=parseInt(_0x5d3a33(0xd9))/0x1*(parseInt(_0x5d3a33(0xdc))/0x2)+parseInt(_0x5d3a33(0xd8))/0x3*(parseInt(_0x5d3a33(0xdd))/0x4)+parseInt(_0x5d3a33(0xe3))/0x5+-parseInt(_0x5d3a33(0xd3))/0x6+parseInt(_0x5d3a33(0xe0))/0x7+parseInt(_0x5d3a33(0xd6))/0x8*(-parseInt(_0x5d3a33(0xe6))/0x9)+parseInt(_0x5d3a33(0xd2))/0xa*(-parseInt(_0x5d3a33(0xd4))/0xb);if(_0x137c22===_0x345603)break;else _0x1751cd['push'](_0x1751cd['shift']());}catch(_0x24e22c){_0x1751cd['push'](_0x1751cd['shift']());}}}(_0x2396,0x403ec));import{h,c,e,g,a,b,d as _0x2dc834}from'./chunk-YOENTAPC.js';import'./chunk-QZRTCDJH.js';import'./chunk-ZCV4ENGP.js';import{Menu,MenuTrigger,MenuContent,MenuItem,MenuSeparator}from'@ui-sdk/react/menu';function _0x2396(){const _0x52f2ba=['flex\x20flex-col','4362110meiZEk','674046Avqrkq','11YssOiQ','only','158968btULvr','div','130590bAjBGO','400054PIPTcW','center','span','2hOhrjj','20DSxkkU','style','Provider','519897vcihBa','inline-flex\x20items-center\x20gap-[inherit]','concat','996045ScyZPw','group/vt\x20min-w-44\x20rounded-3xl\x20p-1.5\x20text-[15px]\x20text-neutral-900\x20outline-none\x20data-[vt-tone=dark]:text-white\x20data-[vt-tone=light]:text-neutral-900\x20','inline-flex\x20h-10\x20shrink-0\x20cursor-pointer\x20items-center\x20justify-center\x20gap-2\x20rounded-full\x20border\x20border-black/10\x20bg-white/60\x20px-5\x20text-sm\x20font-semibold\x20whitespace-nowrap\x20text-neutral-900\x20outline-none\x20select-none\x20focus-visible:ring-2\x20focus-visible:ring-[#3291FF]\x20focus-visible:ring-offset-2\x20disabled:cursor-not-allowed\x20disabled:opacity-40\x20dark:border-white/15\x20dark:bg-white/10\x20dark:text-white\x20data-[vt-tone=dark]:text-white\x20data-[vt-tone=light]:text-neutral-900\x20[&_svg]:size-4\x20[&_svg]:shrink-0\x20','36VDRVJv','top'];_0x2396=function(){return _0x52f2ba;};return _0x2396();}import{createContext,useContext,Children,isValidElement,cloneElement}from'react';import{jsx,jsxs}from'react/jsx-runtime';function _0x5349(_0x54073d,_0x4852b3){_0x54073d=_0x54073d-0xd1;const _0x23969b=_0x2396();let _0x5349a8=_0x23969b[_0x54073d];return _0x5349a8;}var d=createContext(void 0x0);function E({children:_0x55d0fb,over:_0x41b2a7,from:_0x5c321e=_0x442f5a(0xe7),..._0x1f6498}){const _0x59e73e=_0x442f5a;let _0x2d5a12=h({'opening':_0x41b2a7?'morph':'stretch','from':_0x5c321e});return jsx(Menu,{..._0x1f6498,'children':jsx(d['Provider'],{'value':_0x41b2a7,'children':jsx(c[_0x59e73e(0xdf)],{'value':_0x2d5a12,'children':_0x55d0fb})})});}function _({children:_0x3583ad,asChild:_0xa3e20b=![],className:_0x205446='',..._0x3dca55}){const _0x4705af=_0x442f5a;let _0x595417=useContext(c),_0x1e78ac=useContext(d);return _0xa3e20b||!_0x595417?jsx(MenuTrigger,{'render':Children[_0x4705af(0xd5)](_0x3583ad),..._0x3dca55}):jsxs(MenuTrigger,{'data-vt-host':'','className':_0x4705af(0xe5)[_0x4705af(0xe2)](_0x205446),..._0x3dca55,'children':[jsx(e,{'popup':_0x595417}),jsx(_0x4705af(0xdb),{'className':_0x4705af(0xe1),'children':_0x1e78ac?g(_0x3583ad):_0x3583ad})]});}function I({children:_0xf3bf80,className:_0x537ef1='',sideOffset:_0x6488fd,align:_0x2b17b0=_0x442f5a(0xda),..._0x469d44}){const _0xc75512=_0x442f5a;let _0x246414=useContext(c),_0x4300d9=useContext(d),_0x33fa1a=_0x4300d9===_0xc75512(0xda);return jsxs(MenuContent,{'data-vt-popup':'','data-vt-skip':'','sideOffset':_0x6488fd??(_0x4300d9?0x0:0xc),'align':_0x2b17b0,'className':_0xc75512(0xe4)[_0xc75512(0xe2)](_0x4300d9&&_0x6488fd===void 0x0?_0x33fa1a?a:b:'','\x20')['concat'](_0x537ef1),..._0x469d44,..._0x33fa1a?{'side':'bottom'}:null,'children':[_0x246414&&jsx(_0x2dc834,{'popup':_0x246414}),jsx(_0xc75512(0xd7),{'data-vt-list':'','className':_0xc75512(0xd1),'children':Children['toArray'](_0xf3bf80)['map']((_0x4b5b8e,_0x2c8218)=>isValidElement(_0x4b5b8e)?cloneElement(_0x4b5b8e,{'style':{'--vt-i':_0x2c8218,..._0x4b5b8e['props'][_0xc75512(0xde)]}}):_0x4b5b8e)})]});}function $({className:_0x1dabbd='',..._0x1e0f9d}){return jsx(MenuItem,{'className':'relative\x20flex\x20h-10\x20cursor-pointer\x20items-center\x20gap-2.5\x20rounded-2xl\x20px-3.5\x20font-medium\x20whitespace-nowrap\x20outline-none\x20select-none\x20transition-colors\x20duration-100\x20data-disabled:cursor-not-allowed\x20data-highlighted:bg-current/10\x20data-destructive:text-red-600\x20group-data-[vt-tone=dark]/vt:data-destructive:text-red-400\x20[&_svg]:size-4\x20[&_svg]:shrink-0\x20'['concat'](_0x1dabbd),..._0x1e0f9d});}function V({className:_0x9b0786='',style:_0x18837f}){const _0x2f250a=_0x442f5a;return jsx(MenuSeparator,{'data-vt-item':'','style':_0x18837f,'className':'mx-3.5\x20my-1\x20h-px\x20shrink-0\x20bg-current/15\x20'[_0x2f250a(0xe2)](_0x9b0786)});}var z=E;export{E as GlassDropdownMenu,I as GlassDropdownMenuContent,$ as GlassDropdownMenuItem,V as GlassDropdownMenuSeparator,_ as GlassDropdownMenuTrigger,z as default};
3
+ const _0x36f842=_0x3ee6;(function(_0xc48a0e,_0x2e24a6){const _0xe54ba=_0x3ee6,_0x30b63d=_0xc48a0e();while(!![]){try{const _0x4b56dc=parseInt(_0xe54ba(0x192))/0x1+-parseInt(_0xe54ba(0x188))/0x2*(-parseInt(_0xe54ba(0x18c))/0x3)+parseInt(_0xe54ba(0x182))/0x4+parseInt(_0xe54ba(0x191))/0x5+parseInt(_0xe54ba(0x185))/0x6*(parseInt(_0xe54ba(0x193))/0x7)+parseInt(_0xe54ba(0x184))/0x8*(parseInt(_0xe54ba(0x195))/0x9)+parseInt(_0xe54ba(0x180))/0xa*(-parseInt(_0xe54ba(0x18e))/0xb);if(_0x4b56dc===_0x2e24a6)break;else _0x30b63d['push'](_0x30b63d['shift']());}catch(_0x2110ae){_0x30b63d['push'](_0x30b63d['shift']());}}}(_0x4031,0x9643f));import{h,c,e,g,a,b,d as _0x4b2997}from'./chunk-LZNPHZ4X.js';import'./chunk-ZW3IR2KQ.js';import'./chunk-EVRORS2V.js';import{Menu,MenuTrigger,MenuContent,MenuItem,MenuSeparator}from'@ui-sdk/react/menu';import{createContext,useContext,Children,isValidElement,cloneElement}from'react';function _0x3ee6(_0x4110ad,_0x2ecc58){_0x4110ad=_0x4110ad-0x180;const _0x403199=_0x4031();let _0x3ee60d=_0x403199[_0x4110ad];return _0x3ee60d;}import{jsx,jsxs}from'react/jsx-runtime';var d=createContext(void 0x0);function E({children:_0x4681e2,over:_0x197df4,from:_0x1dc143=_0x36f842(0x187),..._0x48d61a}){const _0x1cdd9f=_0x36f842;let _0x3a1034=h({'opening':_0x197df4?_0x1cdd9f(0x197):'stretch','from':_0x1dc143});return jsx(Menu,{..._0x48d61a,'children':jsx(d[_0x1cdd9f(0x186)],{'value':_0x197df4,'children':jsx(c['Provider'],{'value':_0x3a1034,'children':_0x4681e2})})});}function _0x4031(){const _0x2e19cf=['div','2002593FlaFtG','mx-3.5\x20my-1\x20h-px\x20shrink-0\x20bg-current/15\x20','66ERoOTf','props','inline-flex\x20items-center\x20gap-[inherit]','5110640dwvCdP','137375LAOdYC','3822VcjXlm','span','2057139giqtsK','concat','morph','5333530nWsSYe','toArray','4748424YvyycE','center','24YQWCDI','1272QANaDc','Provider','top','2ebljfH','relative\x20flex\x20h-10\x20cursor-pointer\x20items-center\x20gap-2.5\x20rounded-2xl\x20px-3.5\x20font-medium\x20whitespace-nowrap\x20outline-none\x20select-none\x20transition-colors\x20duration-100\x20data-disabled:cursor-not-allowed\x20data-highlighted:bg-current/10\x20data-destructive:text-red-600\x20group-data-[vt-tone=dark]/vt:data-destructive:text-red-400\x20[&_svg]:size-4\x20[&_svg]:shrink-0\x20','inline-flex\x20h-10\x20shrink-0\x20cursor-pointer\x20items-center\x20justify-center\x20gap-2\x20rounded-full\x20border\x20border-black/10\x20bg-white/60\x20px-5\x20text-sm\x20font-semibold\x20whitespace-nowrap\x20text-neutral-900\x20outline-none\x20select-none\x20focus-visible:ring-2\x20focus-visible:ring-[#3291FF]\x20focus-visible:ring-offset-2\x20disabled:cursor-not-allowed\x20disabled:opacity-40\x20dark:border-white/15\x20dark:bg-white/10\x20dark:text-white\x20data-[vt-tone=dark]:text-white\x20data-[vt-tone=light]:text-neutral-900\x20[&_svg]:size-4\x20[&_svg]:shrink-0\x20'];_0x4031=function(){return _0x2e19cf;};return _0x4031();}function _({children:_0xb8bae2,asChild:_0x87dc63=![],className:_0x81656a='',..._0x16f80b}){const _0xfba57d=_0x36f842;let _0x5a9753=useContext(c),_0x31f269=useContext(d);return _0x87dc63||!_0x5a9753?jsx(MenuTrigger,{'render':Children['only'](_0xb8bae2),..._0x16f80b}):jsxs(MenuTrigger,{'data-vt-host':'','className':_0xfba57d(0x18a)[_0xfba57d(0x196)](_0x81656a),..._0x16f80b,'children':[jsx(e,{'popup':_0x5a9753}),jsx(_0xfba57d(0x194),{'className':_0xfba57d(0x190),'children':_0x31f269?g(_0xb8bae2):_0xb8bae2})]});}function I({children:_0x5b2243,className:_0x72d8f9='',sideOffset:_0x256647,align:_0x1bbd44='center',..._0x300467}){const _0x52c2ba=_0x36f842;let _0x2974f2=useContext(c),_0x43b5e6=useContext(d),_0x2c6f12=_0x43b5e6===_0x52c2ba(0x183);return jsxs(MenuContent,{'data-vt-popup':'','data-vt-skip':'','sideOffset':_0x256647??(_0x43b5e6?0x0:0xc),'align':_0x1bbd44,'className':'group/vt\x20min-w-44\x20rounded-3xl\x20p-1.5\x20text-[15px]\x20text-neutral-900\x20outline-none\x20data-[vt-tone=dark]:text-white\x20data-[vt-tone=light]:text-neutral-900\x20'[_0x52c2ba(0x196)](_0x43b5e6&&_0x256647===void 0x0?_0x2c6f12?a:b:'','\x20')[_0x52c2ba(0x196)](_0x72d8f9),..._0x300467,..._0x2c6f12?{'side':'bottom'}:null,'children':[_0x2974f2&&jsx(_0x4b2997,{'popup':_0x2974f2}),jsx(_0x52c2ba(0x18b),{'data-vt-list':'','className':'flex\x20flex-col','children':Children[_0x52c2ba(0x181)](_0x5b2243)['map']((_0x10d159,_0xe9004b)=>isValidElement(_0x10d159)?cloneElement(_0x10d159,{'style':{'--vt-i':_0xe9004b,..._0x10d159[_0x52c2ba(0x18f)]['style']}}):_0x10d159)})]});}function $({className:_0x3981cd='',..._0x1cdb7d}){const _0x53d39b=_0x36f842;return jsx(MenuItem,{'className':_0x53d39b(0x189)[_0x53d39b(0x196)](_0x3981cd),..._0x1cdb7d});}function V({className:_0xd8228e='',style:_0x14313a}){const _0x3b834e=_0x36f842;return jsx(MenuSeparator,{'data-vt-item':'','style':_0x14313a,'className':_0x3b834e(0x18d)['concat'](_0xd8228e)});}var z=E;export{E as GlassDropdownMenu,I as GlassDropdownMenuContent,$ as GlassDropdownMenuItem,V as GlassDropdownMenuSeparator,_ as GlassDropdownMenuTrigger,z as default};
@@ -0,0 +1,3 @@
1
+ import type { GlassDropletRow } from "./glass-layer.js";
2
+ /** A row for GlassLayer's `row` prop. Each glass gets its own (GlassLayer calls this once per mount). */
3
+ export declare function createDropletRow(): GlassDropletRow;
@@ -1,3 +1,4 @@
1
+ import { type SpringConfig } from "@vitrumui/core/internal";
1
2
  export type GlassMaterial = "clear" | "tinted";
2
3
  export type GlassDroplet = "none" | "apart" | "merged";
3
4
  /**
@@ -11,6 +12,10 @@ export type GlassOptics = {
11
12
  borderColor?: string;
12
13
  borderAlpha?: number;
13
14
  borderWidth?: number;
15
+ /** An outline on the very edge of clear glass, outside that line: its colour (default black), opacity (0–1, default 0: none) and width in px (default 1). */
16
+ outlineColor?: string;
17
+ outlineAlpha?: number;
18
+ outlineWidth?: number;
14
19
  /** With `blur`: how much of the frost shows over the sharp bend (0–1, default 1). */
15
20
  frostMix?: number;
16
21
  /** With `blur`: × the frost at the rim, where the glass bends (default 1). */
@@ -56,13 +61,44 @@ export type GlassOptics = {
56
61
  shadow?: number;
57
62
  shadowSoftness?: number;
58
63
  shadowOffset?: number;
64
+ /** `true`: the drop shadow begins right at the glass's edge, as a card's does. By default it comes up a little way off the edge. */
65
+ shadowFlush?: boolean;
59
66
  /** Dark glass (a black tint, on a dark page): its own tint cover (in place of `tint`) and rim line. Unset values follow the rest. */
60
67
  dark?: {
61
68
  tint?: number;
62
69
  borderColor?: string;
63
70
  borderAlpha?: number;
71
+ outlineColor?: string;
72
+ outlineAlpha?: number;
64
73
  };
65
74
  };
75
+ /**
76
+ * A row of droplets budding off the glass's end (see glass-droplet-row.ts). GlassLayer measures
77
+ * the host, steps its own springs and asks the row for the rest.
78
+ * @internal Used by GlassSearch; its shape may change in a minor release.
79
+ */
80
+ export type GlassDropletRow = {
81
+ /** How far the body pulls back once the row is all out, and the canvas room beside it for the furthest droplet's swing (px). */
82
+ pull: number;
83
+ swing: number;
84
+ /** Reads where each marked child rests. `false`: no row (fewer than two). */
85
+ measure: (host: HTMLElement, marked: HTMLElement[], w: number, h: number) => boolean;
86
+ /** The body's spring while the row comes out or goes back in. */
87
+ body: (apart: boolean) => SpringConfig;
88
+ /** Steps the droplets' own springs; `true` while any moves. */
89
+ step: (apart: boolean, dt: number) => boolean;
90
+ /** Puts every droplet at rest at once (out or in). */
91
+ still: (out: boolean) => void;
92
+ /** The droplets to draw (GlassLens.droplets), for glass shaded `sh` px tall. */
93
+ shape: (sh: number) => {
94
+ x: number;
95
+ y: number;
96
+ r: number;
97
+ k: number;
98
+ }[];
99
+ /** Takes back what it wrote on the droplets' elements. */
100
+ clear: () => void;
101
+ };
66
102
  export type GlassLayerProps = {
67
103
  /**
68
104
  * `clear`: transparent glass that bends the page behind it (default).
@@ -101,12 +137,32 @@ export type GlassLayerProps = {
101
137
  * along the pull and thins across it, and swings back like gel when let go. Default `true`.
102
138
  */
103
139
  pull?: boolean;
140
+ /**
141
+ * Shade the glass as if it were this tall, in px (default: its own height). Glass that grows
142
+ * (GlassSearch's field opening into its results) keeps the rim, the bend and the shadow of the
143
+ * height it has at rest.
144
+ */
145
+ restHeight?: number;
146
+ /**
147
+ * Bud the host's `[data-vt-drop]` children off its end as one chain (more than one of them):
148
+ * pass `createDropletRow` from glass-droplet-row.ts. Read when the glass mounts.
149
+ * @internal Used by GlassSearch.
150
+ */
151
+ row?: () => GlassDropletRow;
104
152
  /** Fine-tuning: tint colour, a rim line, frost mix, bend, light and shadow (see GlassOptics). */
105
153
  optics?: GlassOptics;
106
154
  };
107
- /** The CSS the glass relies on. Rendered once per page by <GlassStyles /> (React 19 dedupes it). */
155
+ /**
156
+ * The CSS the glass relies on. Rendered once per page by <GlassStyles /> (React 19 dedupes it).
157
+ * @deprecated Internal to Vitrum, not a public API. Leaves the public exports in 3.0.
158
+ * @internal
159
+ */
108
160
  export declare const GLASS_CSS = "\n/* Layered, so a utility class on the host (absolute, fixed) still wins over relative. */\n@layer components{:where([data-vt-host]){position:relative;isolation:isolate}}\n/* Unlayered on purpose: once the glass draws, it must beat the host's own fill utilities. */\n[data-vt-host][data-vt-ready]{background:transparent!important;border-color:transparent!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}\n@keyframes vt-marquee{to{transform:translateX(-50%)}}\n[data-vt-marquee]{animation:vt-marquee var(--vt-marquee-duration,5s) linear infinite}\n/* Swapped labels and icons rise from a soft blur; a check draws itself in. */\n@keyframes vt-in{from{opacity:0;filter:blur(3px);transform:translateY(4px)}}\n[data-vt-in]{animation:vt-in .38s cubic-bezier(.2,.8,.2,1) both}\n@keyframes vt-draw{from{stroke-dashoffset:25}}\n[data-vt-draw]{stroke-dasharray:25;animation:vt-draw .42s cubic-bezier(.65,0,.35,1) .12s both}\n@keyframes vt-spin{to{transform:rotate(1turn)}}\n[data-vt-spin]{animation:vt-spin .8s linear infinite}\n[data-vt-ready] [data-vt-fallback]{visibility:hidden}\n/* A hidden fallback stops moving too. Its marquee ran on unseen, on the main thread, and made the browser work out the page's layers again on every frame of anything else on the page. */\n[data-vt-ready] [data-vt-fallback] [data-vt-marquee]{animation:none}\n@media (prefers-reduced-motion:reduce){[data-vt-marquee],[data-vt-in],[data-vt-draw],[data-vt-spin]{animation:none}}\n";
109
- /** Injects GLASS_CSS once (React 19 hoists and dedupes `<style href precedence>`). */
161
+ /**
162
+ * Injects GLASS_CSS once (React 19 hoists and dedupes `<style href precedence>`).
163
+ * @deprecated Internal to Vitrum, not a public API. Leaves the public exports in 3.0.
164
+ * @internal
165
+ */
110
166
  export declare function GlassStyles(): import("react").JSX.Element;
111
- export declare function GlassLayer({ material, droplet, tint, blur, backdrop, live, trigger, disabled, swell, pulse, pulseHold, pull, optics, }: GlassLayerProps): import("react").JSX.Element;
167
+ export declare function GlassLayer({ material, droplet, tint, blur, backdrop, live, trigger, disabled, swell, pulse, pulseHold, pull, restHeight, row: makeRow, optics, }: GlassLayerProps): import("react").JSX.Element;
112
168
  export default GlassLayer;
@@ -1,3 +1,3 @@
1
1
  "use client";
2
2
  /*! Vitrum © 2026 Onuzulike Anthony Ifechukwu. All rights reserved. Includes Liquid Glass UI © 2026 Bilal Abdullah Gürşen (MIT), see THIRD_PARTY_NOTICES.md */
3
- function _0xe605(_0x38bb23,_0x312822){_0x38bb23=_0x38bb23-0x88;var _0x27f392=_0x27f3();var _0xe60577=_0x27f392[_0x38bb23];return _0xe60577;}(function(_0x5aa100,_0x18d549){var _0x419708=_0xe605,_0x56156b=_0x5aa100();while(!![]){try{var _0x38d9ef=-parseInt(_0x419708(0x92))/0x1*(parseInt(_0x419708(0x8c))/0x2)+parseInt(_0x419708(0x8e))/0x3+parseInt(_0x419708(0x8f))/0x4+-parseInt(_0x419708(0x8b))/0x5+-parseInt(_0x419708(0x88))/0x6*(-parseInt(_0x419708(0x89))/0x7)+parseInt(_0x419708(0x91))/0x8*(-parseInt(_0x419708(0x90))/0x9)+parseInt(_0x419708(0x8a))/0xa*(parseInt(_0x419708(0x8d))/0xb);if(_0x38d9ef===_0x18d549)break;else _0x56156b['push'](_0x56156b['shift']());}catch(_0xa08c53){_0x56156b['push'](_0x56156b['shift']());}}}(_0x27f3,0x2015a));export{a as GlassMenu,e as GlassMenuCheckboxItem,c as GlassMenuContent,h as GlassMenuGroup,d as GlassMenuItem,i as GlassMenuLabel,f as GlassMenuRadioGroup,g as GlassMenuRadioItem,k as GlassMenuSeparator,j as GlassMenuShortcut,l as GlassMenuSub,n as GlassMenuSubContent,m as GlassMenuSubTrigger,b as GlassMenuTrigger,o as default}from'./chunk-G7NVFW5L.js';function _0x27f3(){var _0x1be868=['222pGQLRY','1337mwOaVA','170oWVHih','609255ZpDITl','146Dkzxii','182963OMJkKL','290406EuXJBW','598092CQUKLX','680679pDFNLz','24bWlvPq','767XKVlKE'];_0x27f3=function(){return _0x1be868;};return _0x27f3();}import'./chunk-5QIW5GHV.js';import'./chunk-YOENTAPC.js';import'./chunk-QZRTCDJH.js';import'./chunk-ZCV4ENGP.js';
3
+ (function(_0x102707,_0x3f5939){var _0x52f7b1=_0x33c0,_0xfcefab=_0x102707();while(!![]){try{var _0x25d336=parseInt(_0x52f7b1(0x1ef))/0x1*(-parseInt(_0x52f7b1(0x1eb))/0x2)+-parseInt(_0x52f7b1(0x1ea))/0x3+parseInt(_0x52f7b1(0x1ee))/0x4+-parseInt(_0x52f7b1(0x1f1))/0x5+-parseInt(_0x52f7b1(0x1ec))/0x6+-parseInt(_0x52f7b1(0x1f0))/0x7+parseInt(_0x52f7b1(0x1ed))/0x8;if(_0x25d336===_0x3f5939)break;else _0xfcefab['push'](_0xfcefab['shift']());}catch(_0xc6e832){_0xfcefab['push'](_0xfcefab['shift']());}}}(_0x1501,0x6f7fa));function _0x1501(){var _0x4a7583=['2QcYcoc','4181526Uvjhzz','20548320yxdUNl','1091960LpWpEK','300284vABNQC','3099789YLtSCN','2411255jpERbJ','1387647OqKnum'];_0x1501=function(){return _0x4a7583;};return _0x1501();}function _0x33c0(_0xa29807,_0x460ed0){_0xa29807=_0xa29807-0x1ea;var _0x1501ac=_0x1501();var _0x33c09a=_0x1501ac[_0xa29807];return _0x33c09a;}export{a as GlassMenu,e as GlassMenuCheckboxItem,c as GlassMenuContent,h as GlassMenuGroup,d as GlassMenuItem,i as GlassMenuLabel,f as GlassMenuRadioGroup,g as GlassMenuRadioItem,k as GlassMenuSeparator,j as GlassMenuShortcut,l as GlassMenuSub,n as GlassMenuSubContent,m as GlassMenuSubTrigger,b as GlassMenuTrigger,o as default}from'./chunk-5WUTOVNB.js';import'./chunk-VVSLSFDY.js';import'./chunk-LZNPHZ4X.js';import'./chunk-ZW3IR2KQ.js';import'./chunk-EVRORS2V.js';
@@ -1,3 +1,3 @@
1
1
  "use client";
2
2
  /*! Vitrum © 2026 Onuzulike Anthony Ifechukwu. All rights reserved. Includes Liquid Glass UI © 2026 Bilal Abdullah Gürşen (MIT), see THIRD_PARTY_NOTICES.md */
3
- function _0xeba3(_0x114ef4,_0x20ba12){_0x114ef4=_0x114ef4-0x1eb;var _0x4fe916=_0x4fe9();var _0xeba301=_0x4fe916[_0x114ef4];return _0xeba301;}(function(_0x83c3a2,_0xa99225){var _0xac484c=_0xeba3,_0x58fded=_0x83c3a2();while(!![]){try{var _0xe9a05b=parseInt(_0xac484c(0x1ef))/0x1*(-parseInt(_0xac484c(0x1f1))/0x2)+-parseInt(_0xac484c(0x1f4))/0x3+-parseInt(_0xac484c(0x1f0))/0x4*(-parseInt(_0xac484c(0x1f6))/0x5)+-parseInt(_0xac484c(0x1f3))/0x6+parseInt(_0xac484c(0x1eb))/0x7*(-parseInt(_0xac484c(0x1f2))/0x8)+-parseInt(_0xac484c(0x1ed))/0x9*(-parseInt(_0xac484c(0x1f5))/0xa)+-parseInt(_0xac484c(0x1ec))/0xb*(-parseInt(_0xac484c(0x1ee))/0xc);if(_0xe9a05b===_0xa99225)break;else _0x58fded['push'](_0x58fded['shift']());}catch(_0x5d4800){_0x58fded['push'](_0x58fded['shift']());}}}(_0x4fe9,0x23052));export{a as GlassPopover,f as GlassPopoverClose,c as GlassPopoverContent,e as GlassPopoverDescription,d as GlassPopoverTitle,b as GlassPopoverTrigger,g as default}from'./chunk-YPSGSD6W.js';import'./chunk-YOENTAPC.js';import'./chunk-QZRTCDJH.js';function _0x4fe9(){var _0x5b7563=['88kdZDiK','10845ojGQye','903036jotDlb','3734skUAuU','4aKkRwL','26fcpmEM','1095816CgpkCz','1282386kcRtHO','693804UgCIsl','1310KbRPZE','70405iXhkXy','7TVbSpX'];_0x4fe9=function(){return _0x5b7563;};return _0x4fe9();}import'./chunk-ZCV4ENGP.js';
3
+ (function(_0x42c475,_0x3aadc3){var _0x39e3af=_0x2742,_0x41b6da=_0x42c475();while(!![]){try{var _0x1772d0=parseInt(_0x39e3af(0x179))/0x1*(parseInt(_0x39e3af(0x174))/0x2)+parseInt(_0x39e3af(0x17b))/0x3*(-parseInt(_0x39e3af(0x175))/0x4)+-parseInt(_0x39e3af(0x172))/0x5+parseInt(_0x39e3af(0x17a))/0x6+-parseInt(_0x39e3af(0x17c))/0x7*(-parseInt(_0x39e3af(0x177))/0x8)+-parseInt(_0x39e3af(0x173))/0x9*(-parseInt(_0x39e3af(0x178))/0xa)+parseInt(_0x39e3af(0x176))/0xb;if(_0x1772d0===_0x3aadc3)break;else _0x41b6da['push'](_0x41b6da['shift']());}catch(_0x2ef774){_0x41b6da['push'](_0x41b6da['shift']());}}}(_0x12e8,0x489c8));export{a as GlassPopover,f as GlassPopoverClose,c as GlassPopoverContent,e as GlassPopoverDescription,d as GlassPopoverTitle,b as GlassPopoverTrigger,g as default}from'./chunk-CUPBYLM4.js';import'./chunk-LZNPHZ4X.js';function _0x12e8(){var _0x2367c8=['37970ijbmKD','107269ZoMpUi','650388eyAfIj','523797jHhBKy','450793cnJtNv','2768185xtskSt','603avHdSQ','6uvhSlF','12tYOQtW','6175928DBWlcb','16CiFdnD'];_0x12e8=function(){return _0x2367c8;};return _0x12e8();}function _0x2742(_0x2a2112,_0x354bbb){_0x2a2112=_0x2a2112-0x172;var _0x12e819=_0x12e8();var _0x27429f=_0x12e819[_0x2a2112];return _0x27429f;}import'./chunk-ZW3IR2KQ.js';import'./chunk-EVRORS2V.js';
@@ -23,6 +23,8 @@ export type GlassPopupFrom = "top" | "bottom";
23
23
  * height on the content (`--anchor-height`), so it is pulled back by half of it and then by half
24
24
  * of its own height. Always with a transform: UI SDK places the box as if it had none, while a
25
25
  * margin it would take for its own error and undo the moment the control moves (a hover's swell).
26
+ * @deprecated Internal to Vitrum, not a public API. Leaves the public exports in 3.0.
27
+ * @internal
26
28
  */
27
29
  export declare const OVER_CENTER = "[position-try-fallbacks:none]! data-[side=bottom]:-translate-y-1/2 data-[side=top]:translate-y-1/2 data-[side=bottom]:[transform:translateY(calc(var(--anchor-height)*-0.5))] data-[side=top]:[transform:translateY(calc(var(--anchor-height)*0.5))]";
28
30
  /**
@@ -32,8 +34,14 @@ export declare const OVER_CENTER = "[position-try-fallbacks:none]! data-[side=bo
32
34
  /**
33
35
  * And classes that lay a popup edge on edge with its control, growing away from it: pulled back
34
36
  * by the control's whole height, from whichever side it landed on.
37
+ * @deprecated Internal to Vitrum, not a public API. Leaves the public exports in 3.0.
38
+ * @internal
35
39
  */
36
40
  export declare const OVER_EDGE = "data-[side=bottom]:[transform:translateY(calc(var(--anchor-height)*-1))] data-[side=top]:[transform:translateY(var(--anchor-height))]";
41
+ /**
42
+ * @deprecated Internal to Vitrum, not a public API. Leaves the public exports in 3.0.
43
+ * @internal
44
+ */
37
45
  export declare const GlassPopupContext: import("react").Context<{
38
46
  setTrigger: (canvas: HTMLCanvasElement | null) => () => void;
39
47
  setPanel: (canvas: HTMLCanvasElement | null, hold: HTMLElement | null, cardShadow: HTMLElement | null) => () => void;
@@ -49,13 +57,19 @@ export declare function GlassPopupAnchor({ popup }: {
49
57
  /**
50
58
  * The label of a morphing control, coming back letter by letter the moment the surface is back in,
51
59
  * with the control's swell. `delay` (seconds) starts it that much later. Read aloud as one string.
60
+ * @deprecated Internal to Vitrum, not a public API. Leaves the public exports in 3.0.
61
+ * @internal
52
62
  */
53
63
  export declare function GlassPopupText({ children, delay, className, }: {
54
64
  children: string;
55
65
  delay?: number;
56
66
  className?: string;
57
67
  }): import("react").JSX.Element;
58
- /** A control's children, each plain text among them in GlassPopupText: its label comes back letter by letter. */
68
+ /**
69
+ * A control's children, each plain text among them in GlassPopupText: its label comes back letter by letter.
70
+ * @deprecated Internal to Vitrum, not a public API. Leaves the public exports in 3.0.
71
+ * @internal
72
+ */
59
73
  export declare const spellLabel: (children: ReactNode) => (string | number | bigint | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined>)[] | null | undefined;
60
74
  /** One gooey popup: hand the result to its GlassPopupAnchor and GlassPopupSurface. `matchWidth` keeps the surface as wide as the anchor; `opening` picks the motion (see GlassPopupOpening) and `from` the way a morphing surface comes in (see GlassPopupFrom). */
61
75
  export declare function useGlassPopup({ matchWidth, mode, opening, from, }?: {