@vitrumui/react 1.1.0 → 2.0.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 (63) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/THIRD_PARTY_NOTICES.md +56 -0
  4. package/dist/chunk-3FVJ6IEM.js +2 -0
  5. package/dist/chunk-5QIW5GHV.js +2 -0
  6. package/dist/chunk-5SBAJLEI.js +2 -0
  7. package/dist/chunk-AOEWAIGE.js +2 -0
  8. package/dist/chunk-BHVG3AD3.js +2 -0
  9. package/dist/chunk-E5F7TQ7I.js +2 -0
  10. package/dist/chunk-FVKDZFPR.js +2 -0
  11. package/dist/chunk-G7NVFW5L.js +2 -0
  12. package/dist/chunk-IHAKQPCJ.js +2 -0
  13. package/dist/chunk-QZRTCDJH.js +2 -0
  14. package/dist/chunk-RDUUCXZF.js +2 -0
  15. package/dist/chunk-YOENTAPC.js +2 -0
  16. package/dist/chunk-YPSGSD6W.js +2 -0
  17. package/dist/chunk-ZCV4ENGP.js +1 -1
  18. package/dist/controls/Checkbox.js +1 -1
  19. package/dist/controls/RangeSlider.js +1 -1
  20. package/dist/controls/Switch.js +1 -1
  21. package/dist/controls/glass/fallback.d.ts +31 -0
  22. package/dist/controls/glass/useGlassCanvas.d.ts +3 -0
  23. package/dist/glass-action-button.d.ts +3 -1
  24. package/dist/glass-action-button.js +1 -1
  25. package/dist/glass-badge.js +1 -1
  26. package/dist/glass-button-group.js +1 -1
  27. package/dist/glass-button.d.ts +3 -1
  28. package/dist/glass-button.js +1 -1
  29. package/dist/glass-card.d.ts +2 -2
  30. package/dist/glass-card.js +1 -1
  31. package/dist/glass-dropdown-menu.d.ts +15 -3
  32. package/dist/glass-dropdown-menu.js +1 -1
  33. package/dist/glass-layer.d.ts +17 -2
  34. package/dist/glass-menu.d.ts +62 -17
  35. package/dist/glass-menu.js +1 -1
  36. package/dist/glass-popover.d.ts +38 -8
  37. package/dist/glass-popover.js +1 -1
  38. package/dist/glass-popup.d.ts +43 -3
  39. package/dist/glass-select.js +1 -1
  40. package/dist/glass-slide-to-confirm.d.ts +19 -1
  41. package/dist/glass-slide-to-confirm.js +1 -1
  42. package/dist/glass-surface.js +1 -1
  43. package/dist/glass-tabs.js +1 -1
  44. package/dist/index.d.ts +3 -3
  45. package/dist/index.js +1 -1
  46. package/dist/runtime-WIL6WCEJ.js +2 -0
  47. package/dist/styles.css +1 -1
  48. package/dist/theme.js +1 -1
  49. package/package.json +5 -3
  50. package/dist/chunk-5H6FHJ6K.js +0 -2
  51. package/dist/chunk-BCPB75TR.js +0 -2
  52. package/dist/chunk-D6ZLXL4J.js +0 -2
  53. package/dist/chunk-E2KN4H6B.js +0 -2
  54. package/dist/chunk-IMUNBL7U.js +0 -2
  55. package/dist/chunk-KL26ZVD4.js +0 -2
  56. package/dist/chunk-P3SF73HG.js +0 -2
  57. package/dist/chunk-Q5GOHPZ3.js +0 -2
  58. package/dist/chunk-TIG2HRDS.js +0 -2
  59. package/dist/chunk-U3CZMSFP.js +0 -2
  60. package/dist/chunk-ULHSS732.js +0 -2
  61. package/dist/chunk-UMMRBERM.js +0 -2
  62. package/dist/chunk-YZILLPGA.js +0 -2
  63. package/dist/runtime-2U4MAR2W.js +0 -2
@@ -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(_0x19fee5,_0xf47507){var _0x39d799=_0x1de0,_0x4eed54=_0x19fee5();while(!![]){try{var _0x50dc9c=parseInt(_0x39d799(0x81))/0x1+-parseInt(_0x39d799(0x87))/0x2+-parseInt(_0x39d799(0x84))/0x3+parseInt(_0x39d799(0x86))/0x4*(-parseInt(_0x39d799(0x8a))/0x5)+-parseInt(_0x39d799(0x85))/0x6*(-parseInt(_0x39d799(0x82))/0x7)+parseInt(_0x39d799(0x88))/0x8+parseInt(_0x39d799(0x89))/0x9*(parseInt(_0x39d799(0x83))/0xa);if(_0x50dc9c===_0xf47507)break;else _0x4eed54['push'](_0x4eed54['shift']());}catch(_0x1aa789){_0x4eed54['push'](_0x4eed54['shift']());}}}(_0x1481,0x87594));function _0x1de0(_0x189ff5,_0x30dd09){_0x189ff5=_0x189ff5-0x81;var _0x148199=_0x1481();var _0x1de0a2=_0x148199[_0x189ff5];return _0x1de0a2;}export{a as GlassButtonGroup,b as GlassButtonGroupItem,c as GlassButtonGroupSeparator,d as GlassButtonGroupText,e as default}from'./chunk-YZILLPGA.js';import'./chunk-ULHSS732.js';import'./chunk-IMUNBL7U.js';function _0x1481(){var _0x37c42e=['608376YmVPOl','12JGWvte','12XMXQEq','1518112klNDro','3679792TrnTDN','1179gSNAAs','1140355hUfifa','1093056wAxhgY','2249002LZjVcn','370syZEyC'];_0x1481=function(){return _0x37c42e;};return _0x1481();}import'./chunk-ZCV4ENGP.js';
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';
@@ -11,9 +11,11 @@ export type GlassButtonProps = {
11
11
  iconPosition?: "start" | "end";
12
12
  /** Clear glass: how much tint covers the backdrop (0–1). */
13
13
  tint?: number;
14
+ /** Hold and drag: the button follows the pointer a little way, stretches along the pull and swings back when let go. Default `true`. */
15
+ pull?: boolean;
14
16
  /** Render the glass on the single child element (e.g. a router `<Link>`) instead of a `<button>`. */
15
17
  asChild?: boolean;
16
18
  className?: string;
17
19
  } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className">;
18
- export declare function GlassButton({ children, material, size, icon, iconPosition, tint, asChild, className, type, ...rest }: GlassButtonProps): import("react").JSX.Element;
20
+ export declare function GlassButton({ children, material, size, icon, iconPosition, tint, pull, asChild, className, type, ...rest }: GlassButtonProps): import("react").JSX.Element;
19
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(_0x213a05,_0x3c8a77){var _0x35306e=_0x42f6,_0x596573=_0x213a05();while(!![]){try{var _0x20c766=parseInt(_0x35306e(0x140))/0x1*(parseInt(_0x35306e(0x13f))/0x2)+parseInt(_0x35306e(0x13c))/0x3*(-parseInt(_0x35306e(0x13d))/0x4)+parseInt(_0x35306e(0x144))/0x5+-parseInt(_0x35306e(0x13e))/0x6*(-parseInt(_0x35306e(0x13b))/0x7)+parseInt(_0x35306e(0x141))/0x8+-parseInt(_0x35306e(0x143))/0x9+-parseInt(_0x35306e(0x142))/0xa;if(_0x20c766===_0x3c8a77)break;else _0x596573['push'](_0x596573['shift']());}catch(_0x1bad4c){_0x596573['push'](_0x596573['shift']());}}}(_0x5710,0x298b6));export{a as GlassButton,b as default}from'./chunk-BCPB75TR.js';function _0x42f6(_0x56792a,_0x48dd1d){_0x56792a=_0x56792a-0x13b;var _0x571037=_0x5710();var _0x42f67d=_0x571037[_0x56792a];return _0x42f67d;}import'./chunk-IMUNBL7U.js';function _0x5710(){var _0x1e202d=['1350720qpbEhj','283339egjGAg','3Dlcmgy','168572AYatXy','42qFVSej','2JPGJsW','7711WqvLKZ','1752776veiure','4832930AsFpSf','762201ClkbVH'];_0x5710=function(){return _0x1e202d;};return _0x5710();}import'./chunk-ZCV4ENGP.js';
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';
@@ -1,4 +1,4 @@
1
- import { type HTMLAttributes, type ReactNode } from "react";
1
+ import { type ComponentProps, type ReactNode } from "react";
2
2
  import { type GlassMaterial, type GlassOptics } from "./glass-layer.js";
3
3
  export type GlassCardProps = {
4
4
  children?: ReactNode;
@@ -13,6 +13,6 @@ export type GlassCardProps = {
13
13
  /** Fine-tuning of the glass: tint colour, a rim line, frost mix, bend, light and shadow. Merged over the card's own. */
14
14
  optics?: GlassOptics;
15
15
  className?: string;
16
- } & Omit<HTMLAttributes<HTMLDivElement>, "children" | "className">;
16
+ } & Omit<ComponentProps<"div">, "children" | "className">;
17
17
  export declare function GlassCard({ children, material, tint, blur, live, optics, className, style, ...rest }: GlassCardProps): import("react").JSX.Element;
18
18
  export default GlassCard;
@@ -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(_0x5c94a9,_0x606383){var _0x1cfc23=_0x393a,_0x275a47=_0x5c94a9();while(!![]){try{var _0x2191ab=parseInt(_0x1cfc23(0xcd))/0x1+-parseInt(_0x1cfc23(0xd0))/0x2+-parseInt(_0x1cfc23(0xcf))/0x3*(-parseInt(_0x1cfc23(0xc9))/0x4)+parseInt(_0x1cfc23(0xd1))/0x5+-parseInt(_0x1cfc23(0xd2))/0x6+parseInt(_0x1cfc23(0xcc))/0x7*(-parseInt(_0x1cfc23(0xce))/0x8)+parseInt(_0x1cfc23(0xcb))/0x9*(parseInt(_0x1cfc23(0xca))/0xa);if(_0x2191ab===_0x606383)break;else _0x275a47['push'](_0x275a47['shift']());}catch(_0x3a9eec){_0x275a47['push'](_0x275a47['shift']());}}}(_0x3036,0x3ee78));export{a as GlassCard,b as default}from'./chunk-KL26ZVD4.js';import'./chunk-IMUNBL7U.js';function _0x393a(_0x261350,_0x5032e5){_0x261350=_0x261350-0xc9;var _0x303603=_0x3036();var _0x393a02=_0x303603[_0x261350];return _0x393a02;}function _0x3036(){var _0x51f8c7=['1708782XwZheD','60TWRrIJ','4063310WLvarM','9hAsrLi','1133461FsEKyQ','435706Ftsial','16lPAPTe','14733MHGmOd','260192CyjkME','403465sFPcdy'];_0x3036=function(){return _0x51f8c7;};return _0x3036();}import'./chunk-ZCV4ENGP.js';
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';
@@ -1,6 +1,18 @@
1
1
  import { MenuContent, MenuItem, MenuTrigger, type MenuProps } from "@ui-sdk/react/menu";
2
2
  import { type CSSProperties, type ComponentProps, type ReactNode } from "react";
3
- export type GlassDropdownMenuProps = MenuProps;
3
+ export type GlassDropdownMenuProps = MenuProps & {
4
+ /**
5
+ * The control itself unfolds into the menu (Popover's opening). `center`: the menu lies around
6
+ * it. `edge`: from the control's own edge, growing away from it. Left out, the list swells out
7
+ * of the control on a neck.
8
+ */
9
+ over?: "center" | "edge";
10
+ /**
11
+ * With `over`: which way the menu comes into place. `top` (default): the control is thrown down
12
+ * and the menu comes down from above. `bottom`: the other way up.
13
+ */
14
+ from?: "top" | "bottom";
15
+ };
4
16
  export type GlassDropdownMenuTriggerProps = {
5
17
  children?: ReactNode;
6
18
  /** Put the trigger on the single child element (a GlassButtonGroupItem) instead of a glass button of its own. */
@@ -14,10 +26,10 @@ export type GlassDropdownMenuContentProps = {
14
26
  export type GlassDropdownMenuItemProps = {
15
27
  className?: string;
16
28
  } & Omit<ComponentProps<typeof MenuItem>, "className" | "render">;
17
- export declare function GlassDropdownMenu({ children, ...options }: GlassDropdownMenuProps): import("react").JSX.Element;
29
+ export declare function GlassDropdownMenu({ children, over, from, ...options }: GlassDropdownMenuProps): import("react").JSX.Element;
18
30
  /** The control that opens the menu: a glass button of its own, or with `asChild` your own element inside a GlassButtonGroup. */
19
31
  export declare function GlassDropdownMenuTrigger({ children, asChild, className, ...rest }: GlassDropdownMenuTriggerProps): import("react").JSX.Element;
20
- /** The list, centred on its control unless `align` says otherwise. Its children are items and separators; they arrive one after another. */
32
+ /** The list, centred on its control unless `align` says otherwise. Its children are items and separators; they arrive one after another (with `over`, together). */
21
33
  export declare function GlassDropdownMenuContent({ children, className, sideOffset, align, ...rest }: GlassDropdownMenuContentProps): import("react").JSX.Element;
22
34
  /** An action. Pressing it runs `onSelect` and closes the menu. `destructive` paints it red. */
23
35
  export declare function GlassDropdownMenuItem({ className, ...rest }: GlassDropdownMenuItemProps): import("react").JSX.Element;
@@ -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 _0x5551ef=_0x18f1;(function(_0x506446,_0x86f9ca){const _0x1ff03a=_0x18f1,_0x2bcf05=_0x506446();while(!![]){try{const _0x15807a=-parseInt(_0x1ff03a(0xfa))/0x1+-parseInt(_0x1ff03a(0xff))/0x2+parseInt(_0x1ff03a(0xf3))/0x3+-parseInt(_0x1ff03a(0xfc))/0x4*(parseInt(_0x1ff03a(0x101))/0x5)+parseInt(_0x1ff03a(0xf5))/0x6*(parseInt(_0x1ff03a(0xf7))/0x7)+-parseInt(_0x1ff03a(0x102))/0x8*(-parseInt(_0x1ff03a(0x103))/0x9)+-parseInt(_0x1ff03a(0xf2))/0xa*(-parseInt(_0x1ff03a(0xf8))/0xb);if(_0x15807a===_0x86f9ca)break;else _0x2bcf05['push'](_0x2bcf05['shift']());}catch(_0x12f7c2){_0x2bcf05['push'](_0x2bcf05['shift']());}}}(_0x4370,0x4a602));import{d,a,c,b}from'./chunk-ULHSS732.js';import'./chunk-IMUNBL7U.js';import'./chunk-ZCV4ENGP.js';import{Menu,MenuTrigger,MenuContent,MenuItem,MenuSeparator}from'@ui-sdk/react/menu';function _0x18f1(_0x33a35e,_0x1943fb){_0x33a35e=_0x33a35e-0xf2;const _0x437090=_0x4370();let _0x18f114=_0x437090[_0x33a35e];return _0x18f114;}import{useContext,Children,isValidElement,cloneElement}from'react';import{jsx,jsxs}from'react/jsx-runtime';function C({children:_0x12b43d,..._0x341771}){let _0x427d5a=d();return jsx(Menu,{..._0x341771,'children':jsx(a['Provider'],{'value':_0x427d5a,'children':_0x12b43d})});}function D({children:_0x1b47ae,asChild:_0x3bb8a9=![],className:_0x5f4861='',..._0x230cdd}){let _0x3e98f2=useContext(a);return _0x3bb8a9||!_0x3e98f2?jsx(MenuTrigger,{'render':Children['only'](_0x1b47ae),..._0x230cdd}):jsxs(MenuTrigger,{'data-vt-host':'','className':'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'['concat'](_0x5f4861),..._0x230cdd,'children':[jsx(c,{'popup':_0x3e98f2}),jsx('span',{'className':'inline-flex\x20items-center\x20gap-[inherit]','children':_0x1b47ae})]});}function k({children:_0x393f6a,className:_0x4fa734='',sideOffset:_0x3e7e03=0xc,align:_0x23b88e=_0x5551ef(0xf6),..._0x1a6b60}){const _0x270a71=_0x5551ef;let _0x5e02aa=useContext(a);return jsxs(MenuContent,{'data-vt-popup':'','data-vt-skip':'','sideOffset':_0x3e7e03,'align':_0x23b88e,'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'[_0x270a71(0xf9)](_0x4fa734),..._0x1a6b60,'children':[_0x5e02aa&&jsx(b,{'popup':_0x5e02aa}),jsx('div',{'data-vt-list':'','className':_0x270a71(0xf4),'children':Children[_0x270a71(0xfb)](_0x393f6a)['map']((_0x41b802,_0x57252e)=>isValidElement(_0x41b802)?cloneElement(_0x41b802,{'style':{'--vt-i':_0x57252e,..._0x41b802[_0x270a71(0xfd)]['style']}}):_0x41b802)})]});}function S({className:_0x696806='',..._0x575bd0}){const _0x146092=_0x5551ef;return jsx(MenuItem,{'className':_0x146092(0x100)[_0x146092(0xf9)](_0x696806),..._0x575bd0});}function T({className:_0x42761d='',style:_0x28717f}){const _0x4ad749=_0x5551ef;return jsx(MenuSeparator,{'data-vt-item':'','style':_0x28717f,'className':_0x4ad749(0xfe)['concat'](_0x42761d)});}var I=C;export{C as GlassDropdownMenu,k as GlassDropdownMenuContent,S as GlassDropdownMenuItem,T as GlassDropdownMenuSeparator,D as GlassDropdownMenuTrigger,I as default};function _0x4370(){const _0x2e2a7f=['2912418sRwiqp','center','7xXTkbk','517Tngmhk','concat','539379hHldDP','toArray','80RuBadt','props','mx-3.5\x20my-1\x20h-px\x20shrink-0\x20bg-current/15\x20','469668TBlRyN','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','14745qRwlqW','4158424iMlFFA','9BFEHRs','13810MiWOHM','203166tcoCzq','flex\x20flex-col'];_0x4370=function(){return _0x2e2a7f;};return _0x4370();}
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};
@@ -48,6 +48,8 @@ export type GlassOptics = {
48
48
  inner?: number;
49
49
  reflection?: number;
50
50
  caustic?: number;
51
+ /** Clear glass: × what the rim mirrors of the page around it (default 1, 0 = nothing). Tinted glass mirrors nothing. */
52
+ mirror?: number;
51
53
  /** The rim light leans towards the cursor (default true). */
52
54
  cursorLight?: boolean;
53
55
  /** The drop shadow: × its strength, softness and offset (each default 1). */
@@ -86,12 +88,25 @@ export type GlassLayerProps = {
86
88
  disabled?: boolean;
87
89
  /** Swell on hover and grow when pressed (default). `false` keeps the glass still under the pointer. */
88
90
  swell?: boolean;
91
+ /**
92
+ * Change it (a counter) and the glass answers once: it swells as if hovered and pressed for a
93
+ * moment. Meanwhile the host has `--vt-bend`, for content that stretches with it
94
+ * (`scale: var(--vt-bend, 1)`). Nothing happens on mount, or under reduced motion.
95
+ */
96
+ pulse?: unknown;
97
+ /** How long a pulse stays swollen before it lets go, in seconds (default 0.16: a nod). */
98
+ pulseHold?: number;
99
+ /**
100
+ * Hold the glass and drag: it follows the pointer a little way through a rubber band, stretches
101
+ * along the pull and thins across it, and swings back like gel when let go. Default `true`.
102
+ */
103
+ pull?: boolean;
89
104
  /** Fine-tuning: tint colour, a rim line, frost mix, bend, light and shadow (see GlassOptics). */
90
105
  optics?: GlassOptics;
91
106
  };
92
107
  /** The CSS the glass relies on. Rendered once per page by <GlassStyles /> (React 19 dedupes it). */
93
- 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@media (prefers-reduced-motion:reduce){[data-vt-marquee],[data-vt-in],[data-vt-draw],[data-vt-spin]{animation:none}}\n";
108
+ 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";
94
109
  /** Injects GLASS_CSS once (React 19 hoists and dedupes `<style href precedence>`). */
95
110
  export declare function GlassStyles(): import("react").JSX.Element;
96
- export declare function GlassLayer({ material, droplet, tint, blur, backdrop, live, trigger, disabled, swell, optics, }: GlassLayerProps): 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;
97
112
  export default GlassLayer;
@@ -1,43 +1,88 @@
1
- import { MenuContent, MenuItem, MenuTrigger, type MenuProps } from "@ui-sdk/react/menu";
2
- import { type CSSProperties, type ComponentProps, type HTMLAttributes, type ReactNode } from "react";
1
+ import { MenuCheckboxItem, MenuContent, MenuGroup, MenuGroupLabel, MenuItem, MenuRadioGroup, MenuRadioItem, MenuShortcut, MenuSubContent, MenuSubTrigger, MenuTrigger, type MenuProps, type MenuSubProps } from "@ui-sdk/react/menu";
2
+ import { type ComponentProps, type ReactNode } from "react";
3
3
  export type GlassMenuSide = "top" | "right" | "bottom" | "left";
4
4
  export type GlassMenuAlign = "start" | "center" | "end";
5
5
  export type GlassMenuProps = MenuProps;
6
+ export type GlassMenuSubProps = MenuSubProps;
6
7
  export type GlassMenuTriggerProps = {
7
8
  children?: ReactNode;
8
- /** Put the trigger on the single child element instead of a glass button of its own. */
9
+ /** Render the trigger on the single child element: a GlassButtonGroupItem, whose group's glass then grows into the menu. */
9
10
  asChild?: boolean;
10
11
  className?: string;
11
12
  } & Omit<ComponentProps<typeof MenuTrigger>, "children" | "className" | "render">;
12
13
  export type GlassMenuContentProps = {
13
14
  children?: ReactNode;
14
15
  className?: string;
15
- side?: GlassMenuSide;
16
- align?: GlassMenuAlign;
17
- sideOffset?: number;
18
- } & Omit<ComponentProps<typeof MenuContent>, "children" | "className" | "render" | "side" | "align" | "sideOffset">;
16
+ } & Omit<ComponentProps<typeof MenuContent>, "children" | "className" | "render">;
17
+ export type GlassMenuSubContentProps = {
18
+ children?: ReactNode;
19
+ className?: string;
20
+ } & Omit<ComponentProps<typeof MenuSubContent>, "children" | "className" | "render">;
19
21
  export type GlassMenuItemProps = {
20
22
  children?: ReactNode;
21
23
  /** Optional leading icon rendered before the label. */
22
24
  icon?: ReactNode;
23
- /** Optional trailing keyboard shortcut hint (e.g. "⌘D" or "⌫"). */
25
+ /** Optional trailing keyboard shortcut badge (e.g. "⌘E"). */
24
26
  shortcut?: ReactNode;
25
27
  className?: string;
26
- } & Omit<ComponentProps<typeof MenuItem>, "children" | "className" | "render" | "shortcut">;
28
+ } & Omit<ComponentProps<typeof MenuItem>, "children" | "className" | "render">;
29
+ export type GlassMenuCheckboxItemProps = {
30
+ children?: ReactNode;
31
+ className?: string;
32
+ } & Omit<ComponentProps<typeof MenuCheckboxItem>, "children" | "className" | "render">;
33
+ export type GlassMenuRadioGroupProps = {
34
+ className?: string;
35
+ } & Omit<ComponentProps<typeof MenuRadioGroup>, "className" | "render">;
36
+ export type GlassMenuRadioItemProps = {
37
+ children?: ReactNode;
38
+ className?: string;
39
+ } & Omit<ComponentProps<typeof MenuRadioItem>, "children" | "className" | "render">;
40
+ export type GlassMenuGroupProps = {
41
+ className?: string;
42
+ } & Omit<ComponentProps<typeof MenuGroup>, "className" | "render">;
43
+ export type GlassMenuLabelProps = {
44
+ className?: string;
45
+ } & Omit<ComponentProps<typeof MenuGroupLabel>, "className" | "render">;
46
+ export type GlassMenuShortcutProps = {
47
+ className?: string;
48
+ } & Omit<ComponentProps<typeof MenuShortcut>, "className" | "render">;
27
49
  export type GlassMenuSeparatorProps = {
28
50
  className?: string;
29
- style?: CSSProperties;
30
51
  };
31
- export type GlassMenuLabelProps = HTMLAttributes<HTMLDivElement>;
52
+ export type GlassMenuSubTriggerProps = {
53
+ children?: ReactNode;
54
+ className?: string;
55
+ } & Omit<ComponentProps<typeof MenuSubTrigger>, "children" | "className" | "render">;
32
56
  export declare function GlassMenu({ children, ...options }: GlassMenuProps): import("react").JSX.Element;
33
- /** The button whose glass grows into the menu, or with `asChild` your own element. */
57
+ /**
58
+ * The button whose glass becomes the menu. Round it for a single icon (`className="w-12 px-0"`, with an `aria-label`).
59
+ * With `asChild`, an item of a GlassButtonGroup inside the GlassMenu: the group's glass is the one that grows.
60
+ */
34
61
  export declare function GlassMenuTrigger({ children, asChild, className, ...rest }: GlassMenuTriggerProps): import("react").JSX.Element;
35
- /** The unified refractive glass menu surface, positioned on any side (`top`, `right`, `bottom`, `left`). */
62
+ /** The menu. `side` (default `bottom`) and `align` (default `start`) say where it lies against its button; it flips when there is no room. */
36
63
  export declare function GlassMenuContent({ children, className, side, align, sideOffset, ...rest }: GlassMenuContentProps): import("react").JSX.Element;
37
- /** A menu action with optional leading `icon`, trailing `shortcut`, `destructive` tone, and `disabled` state. */
64
+ /** An action. Pressing it runs `onSelect` and closes the menu. `destructive` paints it red. */
38
65
  export declare function GlassMenuItem({ children, icon, shortcut, className, ...rest }: GlassMenuItemProps): import("react").JSX.Element;
39
- /** A hairline separator between groups of items. */
40
- export declare function GlassMenuSeparator({ className, style, }: GlassMenuSeparatorProps): import("react").JSX.Element;
41
- /** A non-interactive section heading inside the menu. */
66
+ /** An option that is on or off: `checked` / `defaultChecked` / `onCheckedChange`. The menu stays open unless `closeOnSelect`. */
67
+ export declare function GlassMenuCheckboxItem({ children, className, ...rest }: GlassMenuCheckboxItemProps): import("react").JSX.Element;
68
+ export declare function GlassMenuRadioGroup({ className, ...rest }: GlassMenuRadioGroupProps): import("react").JSX.Element;
69
+ /** One choice in a GlassMenuRadioGroup. */
70
+ export declare function GlassMenuRadioItem({ children, className, ...rest }: GlassMenuRadioItemProps): import("react").JSX.Element;
71
+ /** Items that belong together, named by a GlassMenuLabel inside. */
72
+ export declare function GlassMenuGroup({ className, ...rest }: GlassMenuGroupProps): import("react").JSX.Element;
73
+ /**
74
+ * The quiet heading of a group. Inside GlassMenuGroup or GlassMenuRadioGroup it labels the group
75
+ * for assistive tech; on its own it is a plain section heading (it used to throw there).
76
+ */
42
77
  export declare function GlassMenuLabel({ className, ...rest }: GlassMenuLabelProps): import("react").JSX.Element;
78
+ /** The keys of an item's shortcut, at its end: `⌘S`. */
79
+ export declare function GlassMenuShortcut({ className, ...rest }: GlassMenuShortcutProps): import("react").JSX.Element;
80
+ /** A hairline between items. */
81
+ export declare function GlassMenuSeparator({ className, }: GlassMenuSeparatorProps): import("react").JSX.Element;
82
+ /** A submenu: a GlassMenuSubTrigger and a GlassMenuSubContent, inside a menu's content. */
83
+ export declare function GlassMenuSub(props: GlassMenuSubProps): import("react").JSX.Element;
84
+ /** The row that opens its submenu, on hover, a press or the arrow key. */
85
+ export declare function GlassMenuSubTrigger({ children, className, ...rest }: GlassMenuSubTriggerProps): import("react").JSX.Element;
86
+ /** The submenu: a card of the same glass beside its row. It fades in where it lies, and out again. */
87
+ export declare function GlassMenuSubContent({ children, className, sideOffset, alignOffset, ...rest }: GlassMenuSubContentProps): import("react").JSX.Element;
43
88
  export default GlassMenu;
@@ -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(_0x1cc502,_0x1061f9){var _0x3fe91d=_0x3b11,_0x3ad459=_0x1cc502();while(!![]){try{var _0x57b046=-parseInt(_0x3fe91d(0x15e))/0x1+parseInt(_0x3fe91d(0x160))/0x2*(parseInt(_0x3fe91d(0x164))/0x3)+parseInt(_0x3fe91d(0x15d))/0x4+-parseInt(_0x3fe91d(0x165))/0x5*(-parseInt(_0x3fe91d(0x163))/0x6)+-parseInt(_0x3fe91d(0x15f))/0x7+-parseInt(_0x3fe91d(0x162))/0x8+parseInt(_0x3fe91d(0x15c))/0x9*(parseInt(_0x3fe91d(0x161))/0xa);if(_0x57b046===_0x1061f9)break;else _0x3ad459['push'](_0x3ad459['shift']());}catch(_0x2bbc1b){_0x3ad459['push'](_0x3ad459['shift']());}}}(_0x881b,0x76f32));export{a as GlassMenu,c as GlassMenuContent,d as GlassMenuItem,f as GlassMenuLabel,e as GlassMenuSeparator,b as GlassMenuTrigger,g as default}from'./chunk-5H6FHJ6K.js';import'./chunk-ULHSS732.js';function _0x3b11(_0x5a84f5,_0x38e70b){_0x5a84f5=_0x5a84f5-0x15c;var _0x881b07=_0x881b();var _0x3b1111=_0x881b07[_0x5a84f5];return _0x3b1111;}import'./chunk-IMUNBL7U.js';function _0x881b(){var _0x59cf0e=['4883800DcOjmX','5904784EDYizI','332220JoXnUm','168WXdbdy','10FBpHDB','45sHvmWX','830560rsDkcs','809414xLewsc','6026706XOvtDl','4836KqNyFA'];_0x881b=function(){return _0x59cf0e;};return _0x881b();}import'./chunk-ZCV4ENGP.js';
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';
@@ -1,19 +1,49 @@
1
- import { PopoverContent, PopoverTrigger, type PopoverProps } from "@ui-sdk/react/popover";
1
+ import { PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, type PopoverProps } from "@ui-sdk/react/popover";
2
2
  import { type ComponentProps, type ReactNode } from "react";
3
- export type GlassPopoverProps = PopoverProps;
3
+ export type GlassPopoverProps = PopoverProps & {
4
+ /**
5
+ * Which way the popover comes into place. `bottom` (default): the button is thrown up and the
6
+ * popover comes up from below. `top`: the button is thrown down and it comes down from above.
7
+ */
8
+ from?: "top" | "bottom";
9
+ };
4
10
  export type GlassPopoverTriggerProps = {
5
11
  children?: ReactNode;
6
- /** Put the trigger on the single child element instead of a glass button of its own. */
12
+ /** Put the trigger on the single child element instead of rendering a glass button of its own. */
7
13
  asChild?: boolean;
8
14
  className?: string;
9
15
  } & Omit<ComponentProps<typeof PopoverTrigger>, "children" | "className" | "render">;
10
16
  export type GlassPopoverContentProps = {
11
17
  children?: ReactNode;
12
18
  className?: string;
13
- } & Omit<ComponentProps<typeof PopoverContent>, "children" | "className" | "render">;
14
- export declare function GlassPopover({ children, ...options }: GlassPopoverProps): import("react").JSX.Element;
15
- /** The button that unfolds into the popover, or with `asChild` your own interactive element. */
19
+ /**
20
+ * Where the popover lies over its button. `center` (default): around it, the button in its
21
+ * middle. `edge`: from the button's own edge, growing away from it (see `side`).
22
+ */
23
+ over?: "center" | "edge";
24
+ /** With `over="edge"`: which way the popover grows from its button, down (`bottom`) or up (`top`). It flips when there is no room. */
25
+ side?: "top" | "bottom";
26
+ } & Omit<ComponentProps<typeof PopoverContent>, "children" | "className" | "render" | "side" | "inline">;
27
+ export type GlassPopoverTitleProps = {
28
+ className?: string;
29
+ } & Omit<ComponentProps<typeof PopoverTitle>, "className" | "render">;
30
+ export type GlassPopoverDescriptionProps = {
31
+ className?: string;
32
+ } & Omit<ComponentProps<typeof PopoverDescription>, "className" | "render">;
33
+ export type GlassPopoverCloseProps = {
34
+ /** `quiet`: a soft button in the popover's own tone. `solid`: the main action. */
35
+ variant?: "quiet" | "solid";
36
+ className?: string;
37
+ } & Omit<ComponentProps<typeof PopoverClose>, "className" | "render">;
38
+ export declare function GlassPopover({ children, from, ...options }: GlassPopoverProps): import("react").JSX.Element;
39
+ /** The button that unfolds into the popover: Select's button, in Button's glass with its light and shadow. */
16
40
  export declare function GlassPopoverTrigger({ children, asChild, className, ...rest }: GlassPopoverTriggerProps): import("react").JSX.Element;
17
- /** The small glass surface the button unfolds into. Supports `side`, `align` and `sideOffset`. */
18
- export declare function GlassPopoverContent({ children, className, side, align, sideOffset, ...rest }: GlassPopoverContentProps): import("react").JSX.Element;
41
+ /** The popover, around its button (`over="edge"`: from its edge) and centred on it unless `align` says otherwise. Its children are yours. Pass `sideOffset` to place it yourself. */
42
+ export declare function GlassPopoverContent({ children, className, over, side, align, sideOffset, ...rest }: GlassPopoverContentProps): import("react").JSX.Element;
43
+ /** Names the popover (an `h2`). */
44
+ export declare function GlassPopoverTitle({ className, ...rest }: GlassPopoverTitleProps): import("react").JSX.Element;
45
+ /** Says what the popover is for (a `p`). */
46
+ export declare function GlassPopoverDescription({ className, ...rest }: GlassPopoverDescriptionProps): import("react").JSX.Element;
47
+ /** A button that closes the popover; `onClick` runs as it does. */
48
+ export declare function GlassPopoverClose({ variant, className, ...rest }: GlassPopoverCloseProps): import("react").JSX.Element;
19
49
  export default GlassPopover;
@@ -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(_0x400b5f,_0x17f1a5){var _0x2f61f1=_0x4b68,_0x54ebf7=_0x400b5f();while(!![]){try{var _0x10eb33=parseInt(_0x2f61f1(0x11c))/0x1+parseInt(_0x2f61f1(0x120))/0x2*(-parseInt(_0x2f61f1(0x11e))/0x3)+parseInt(_0x2f61f1(0x11d))/0x4+-parseInt(_0x2f61f1(0x116))/0x5*(-parseInt(_0x2f61f1(0x119))/0x6)+-parseInt(_0x2f61f1(0x11b))/0x7*(parseInt(_0x2f61f1(0x117))/0x8)+parseInt(_0x2f61f1(0x11f))/0x9*(-parseInt(_0x2f61f1(0x11a))/0xa)+-parseInt(_0x2f61f1(0x115))/0xb*(-parseInt(_0x2f61f1(0x118))/0xc);if(_0x10eb33===_0x17f1a5)break;else _0x54ebf7['push'](_0x54ebf7['shift']());}catch(_0x16d71d){_0x54ebf7['push'](_0x54ebf7['shift']());}}}(_0x41bd,0xee0d9));export{a as GlassPopover,c as GlassPopoverContent,b as GlassPopoverTrigger,d as default}from'./chunk-D6ZLXL4J.js';import'./chunk-ULHSS732.js';import'./chunk-IMUNBL7U.js';function _0x4b68(_0x36b252,_0x1d2953){_0x36b252=_0x36b252-0x115;var _0x41bde7=_0x41bd();var _0x4b6861=_0x41bde7[_0x36b252];return _0x4b6861;}import'./chunk-ZCV4ENGP.js';function _0x41bd(){var _0xe79526=['5464716GkCjWK','13167DGUaQK','279XiusVR','462mVBjvL','33nHaDSM','100255bvaPFt','208GRlcEn','354492XHQdVf','198xLaqII','191010CSYnjX','210847fiwfbI','1247716xHAYFc'];_0x41bd=function(){return _0xe79526;};return _0x41bd();}
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';
@@ -1,13 +1,39 @@
1
+ import { type ReactNode } from "react";
1
2
  /** The shared physics and shape of one popup: the anchor's canvas and the surface's both draw it. */
2
- declare function createMorph(matchWidth: boolean): {
3
+ declare function createMorph(matchWidth: boolean, opening: GlassPopupOpening, from: GlassPopupFrom): {
3
4
  setTrigger: (canvas: HTMLCanvasElement | null) => () => void;
4
5
  setPanel: (canvas: HTMLCanvasElement | null, hold: HTMLElement | null, cardShadow: HTMLElement | null) => () => void;
5
6
  };
6
7
  export type GlassPopup = ReturnType<typeof createMorph>;
8
+ /**
9
+ * How the surface comes out. `stretch`: it swells out of the control and holds on by a neck that
10
+ * thins and snaps. `morph`: the control itself becomes the surface, which then lies over it (give
11
+ * the content a negative `sideOffset`, the control's height). `grow`: the control's glass grows
12
+ * into the surface wherever it lies (below, above or beside the control) and shrinks back.
13
+ */
14
+ export type GlassPopupMode = "detach" | "unfold" | "pour";
15
+ export type GlassPopupOpening = "stretch" | "morph" | "grow";
16
+ /**
17
+ * With `opening: 'morph'`, which way the surface comes into place. `top`: the control is thrown
18
+ * down and the surface comes down from above. `bottom`: the other way up.
19
+ */
20
+ export type GlassPopupFrom = "top" | "bottom";
21
+ /**
22
+ * Classes that centre a popup over its control, whatever the control's height: UI SDK keeps that
23
+ * height on the content (`--anchor-height`), so it is pulled back by half of it and then by half
24
+ * of its own height. Always with a transform: UI SDK places the box as if it had none, while a
25
+ * margin it would take for its own error and undo the moment the control moves (a hover's swell).
26
+ */
27
+ 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))]";
7
28
  /**
8
29
  * The popup a control inside may anchor: GlassDropdownMenu provides it, and a GlassButtonGroup
9
30
  * under it becomes the anchor, so the menu swells out of the whole group.
10
31
  */
32
+ /**
33
+ * And classes that lay a popup edge on edge with its control, growing away from it: pulled back
34
+ * by the control's whole height, from whichever side it landed on.
35
+ */
36
+ export declare const OVER_EDGE = "data-[side=bottom]:[transform:translateY(calc(var(--anchor-height)*-1))] data-[side=top]:[transform:translateY(var(--anchor-height))]";
11
37
  export declare const GlassPopupContext: import("react").Context<{
12
38
  setTrigger: (canvas: HTMLCanvasElement | null) => () => void;
13
39
  setPanel: (canvas: HTMLCanvasElement | null, hold: HTMLElement | null, cardShadow: HTMLElement | null) => () => void;
@@ -20,8 +46,22 @@ export declare function GlassPopupSurface({ popup: morph }: {
20
46
  export declare function GlassPopupAnchor({ popup }: {
21
47
  popup: GlassPopup;
22
48
  }): import("react").JSX.Element;
23
- /** One gooey popup: hand the result to its GlassPopupAnchor and GlassPopupSurface. `matchWidth` keeps the surface as wide as the anchor. */
24
- export declare function useGlassPopup({ matchWidth, }?: {
49
+ /**
50
+ * The label of a morphing control, coming back letter by letter the moment the surface is back in,
51
+ * with the control's swell. `delay` (seconds) starts it that much later. Read aloud as one string.
52
+ */
53
+ export declare function GlassPopupText({ children, delay, className, }: {
54
+ children: string;
55
+ delay?: number;
56
+ className?: string;
57
+ }): import("react").JSX.Element;
58
+ /** A control's children, each plain text among them in GlassPopupText: its label comes back letter by letter. */
59
+ 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
+ /** 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
+ export declare function useGlassPopup({ matchWidth, mode, opening, from, }?: {
25
62
  matchWidth?: boolean;
63
+ mode?: GlassPopupMode;
64
+ opening?: GlassPopupOpening;
65
+ from?: GlassPopupFrom;
26
66
  }): GlassPopup;
27
67
  export {};
@@ -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 _0x1009(_0x4a6a6c,_0xf9fe93){_0x4a6a6c=_0x4a6a6c-0x192;const _0x14f3f2=_0x14f3();let _0x10097c=_0x14f3f2[_0x4a6a6c];return _0x10097c;}(function(_0x2066cc,_0x414bcb){const _0x4cf17e=_0x1009,_0x4b8c5e=_0x2066cc();while(!![]){try{const _0x2a7f1d=parseInt(_0x4cf17e(0x19b))/0x1*(-parseInt(_0x4cf17e(0x192))/0x2)+-parseInt(_0x4cf17e(0x1a0))/0x3+parseInt(_0x4cf17e(0x196))/0x4+parseInt(_0x4cf17e(0x197))/0x5+-parseInt(_0x4cf17e(0x19d))/0x6+-parseInt(_0x4cf17e(0x1a1))/0x7*(parseInt(_0x4cf17e(0x1a3))/0x8)+parseInt(_0x4cf17e(0x1a2))/0x9*(parseInt(_0x4cf17e(0x19c))/0xa);if(_0x2a7f1d===_0x414bcb)break;else _0x4b8c5e['push'](_0x4b8c5e['shift']());}catch(_0x4074fc){_0x4b8c5e['push'](_0x4b8c5e['shift']());}}}(_0x14f3,0x1cb0f));import{d,c,b}from'./chunk-ULHSS732.js';import'./chunk-IMUNBL7U.js';function _0x14f3(){const _0x204315=['label','relative\x20flex\x20h-10\x20cursor-pointer\x20items-center\x20rounded-2xl\x20px-3.5\x20font-medium\x20outline-none\x20select-none\x20data-disabled:cursor-not-allowed\x20data-disabled:opacity-40\x20data-highlighted:bg-black/8\x20data-selected:font-semibold\x20dark:data-highlighted:bg-white/12','1yBxDFI','2704210JHjnMD','760008bhNNUS','m6\x209\x206\x206\x206-6','concat','97323RrxwuJ','631834qCZmrZ','9BiSXKV','8yylPRM','disabled','map','98624EvIvtf','value','svg','path','389708SOVHqt','241770YcjWnA','flex\x20h-12\x20w-full\x20cursor-pointer\x20items-center\x20justify-between\x20rounded-full\x20border\x20border-black/10\x20bg-white/60\x20pr-4\x20pl-5\x20text-[15px]\x20font-medium\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'];_0x14f3=function(){return _0x204315;};return _0x14f3();}import'./chunk-ZCV4ENGP.js';import{Select,SelectLabel,SelectTrigger,SelectValue,SelectContent,SelectList,SelectItem}from'@ui-sdk/react/select';import{jsxs,jsx}from'react/jsx-runtime';function y({label:_0x2fad7f,options:_0x198f1a,value:_0x14a914,defaultValue:_0x1e936e,onValueChange:_0x4b01c4,placeholder:_0x39a9d4,disabled:_0x4c0e9c,name:_0x47b720,className:_0x372ce4=''}){const _0x2d0c4a=_0x1009;let _0x353141=d({'matchWidth':!![]});return jsxs(Select,{..._0x14a914!==void 0x0?{'value':_0x14a914}:{},..._0x1e936e!==void 0x0?{'defaultValue':_0x1e936e}:{},'onValueChange':_0x4c6624=>_0x4b01c4?.(_0x4c6624??null),'placeholder':_0x39a9d4,'disabled':_0x4c0e9c,'name':_0x47b720,'children':[jsxs('div',{'className':'flex\x20w-64\x20flex-col\x20gap-2\x20'[_0x2d0c4a(0x19f)](_0x372ce4),'children':[jsx(SelectLabel,{'className':'text-sm\x20font-medium\x20text-neutral-900\x20dark:text-white','children':_0x2fad7f}),jsxs(SelectTrigger,{'data-vt-host':'','className':_0x2d0c4a(0x198),'children':[jsx(c,{'popup':_0x353141}),jsx(SelectValue,{}),jsx(_0x2d0c4a(0x194),{'aria-hidden':!![],'viewBox':'0\x200\x2024\x2024','fill':'none','stroke':'currentColor','strokeWidth':'2','strokeLinecap':'round','strokeLinejoin':'round','className':'size-4\x20shrink-0\x20opacity-60','children':jsx(_0x2d0c4a(0x195),{'d':_0x2d0c4a(0x19e)})})]})]}),jsxs(SelectContent,{'data-vt-popup':'','data-vt-skip':'','sideOffset':0xc,'className':'rounded-3xl\x20p-1.5\x20text-[15px]\x20text-neutral-900\x20outline-none\x20data-[vt-tone=dark]:text-white\x20data-[vt-tone=light]:text-neutral-900','children':[jsx(b,{'popup':_0x353141}),jsx(SelectList,{'className':'max-h-72\x20overflow-y-auto\x20rounded-[18px]\x20outline-none','children':_0x198f1a[_0x2d0c4a(0x1a5)]((_0x17fb8c,_0x157908)=>jsx(SelectItem,{'value':_0x17fb8c['value'],'disabled':_0x17fb8c[_0x2d0c4a(0x1a4)],'style':{'--vt-i':_0x157908},'className':_0x2d0c4a(0x19a),'children':_0x17fb8c[_0x2d0c4a(0x199)]},_0x17fb8c[_0x2d0c4a(0x193)]))})]})]});}var O=y;export{y as GlassSelect,O as default};
3
+ (function(_0x66659f,_0x3d40b5){const _0x12756a=_0x4985,_0x2a5545=_0x66659f();while(!![]){try{const _0x56fe72=parseInt(_0x12756a(0x1b7))/0x1*(parseInt(_0x12756a(0x1bc))/0x2)+parseInt(_0x12756a(0x1b9))/0x3*(parseInt(_0x12756a(0x1b3))/0x4)+parseInt(_0x12756a(0x1b5))/0x5*(-parseInt(_0x12756a(0x1ad))/0x6)+parseInt(_0x12756a(0x1be))/0x7*(-parseInt(_0x12756a(0x1af))/0x8)+parseInt(_0x12756a(0x1b1))/0x9+-parseInt(_0x12756a(0x1b6))/0xa+parseInt(_0x12756a(0x1ac))/0xb;if(_0x56fe72===_0x3d40b5)break;else _0x2a5545['push'](_0x2a5545['shift']());}catch(_0x463e6f){_0x2a5545['push'](_0x2a5545['shift']());}}}(_0x1b8f,0x451c2));import{h,e,d}from'./chunk-YOENTAPC.js';import'./chunk-QZRTCDJH.js';import'./chunk-ZCV4ENGP.js';import{Select,SelectLabel,SelectTrigger,SelectValue,SelectContent,SelectList,SelectItem}from'@ui-sdk/react/select';import{jsxs,jsx}from'react/jsx-runtime';function y({label:_0x1c2326,options:_0x2f3317,value:_0x3f3922,defaultValue:_0x45790b,onValueChange:_0x2ebe48,placeholder:_0x1fcc9b,disabled:_0x5f266c,name:_0x210a56,className:_0x14e014=''}){const _0x36d3be=_0x4985;let _0x5d412e=h({'matchWidth':!![]});return jsxs(Select,{..._0x3f3922!==void 0x0?{'value':_0x3f3922}:{},..._0x45790b!==void 0x0?{'defaultValue':_0x45790b}:{},'onValueChange':_0x2caf7f=>_0x2ebe48?.(_0x2caf7f??null),'placeholder':_0x1fcc9b,'disabled':_0x5f266c,'name':_0x210a56,'children':[jsxs('div',{'className':'flex\x20w-64\x20flex-col\x20gap-2\x20'[_0x36d3be(0x1b0)](_0x14e014),'children':[jsx(SelectLabel,{'className':_0x36d3be(0x1bd),'children':_0x1c2326}),jsxs(SelectTrigger,{'data-vt-host':'','className':_0x36d3be(0x1bf),'children':[jsx(e,{'popup':_0x5d412e}),jsx(SelectValue,{}),jsx(_0x36d3be(0x1b2),{'aria-hidden':!![],'viewBox':_0x36d3be(0x1ae),'fill':'none','stroke':'currentColor','strokeWidth':'2','strokeLinecap':'round','strokeLinejoin':_0x36d3be(0x1ba),'className':'size-4\x20shrink-0\x20opacity-60','children':jsx(_0x36d3be(0x1b8),{'d':'m6\x209\x206\x206\x206-6'})})]})]}),jsxs(SelectContent,{'data-vt-popup':'','data-vt-skip':'','sideOffset':0xc,'className':_0x36d3be(0x1bb),'children':[jsx(d,{'popup':_0x5d412e}),jsx(SelectList,{'className':'max-h-72\x20overflow-y-auto\x20rounded-[18px]\x20outline-none','children':_0x2f3317[_0x36d3be(0x1b4)]((_0x3446e4,_0x475bbe)=>jsx(SelectItem,{'value':_0x3446e4['value'],'disabled':_0x3446e4['disabled'],'style':{'--vt-i':_0x475bbe},'className':'relative\x20flex\x20h-10\x20cursor-pointer\x20items-center\x20rounded-2xl\x20px-3.5\x20font-medium\x20outline-none\x20select-none\x20data-disabled:cursor-not-allowed\x20data-disabled:opacity-40\x20data-highlighted:bg-black/8\x20data-selected:font-semibold\x20dark:data-highlighted:bg-white/12','children':_0x3446e4['label']},_0x3446e4['value']))})]})]});}var O=y;function _0x4985(_0x5102e3,_0x1c9221){_0x5102e3=_0x5102e3-0x1ac;const _0x1b8fd2=_0x1b8f();let _0x49854b=_0x1b8fd2[_0x5102e3];return _0x49854b;}function _0x1b8f(){const _0x2b60c9=['5389780lLwObA','507999HPZroA','path','548106jSiwrj','round','rounded-3xl\x20p-1.5\x20text-[15px]\x20text-neutral-900\x20outline-none\x20data-[vt-tone=dark]:text-white\x20data-[vt-tone=light]:text-neutral-900','2UalUCP','text-sm\x20font-medium\x20text-neutral-900\x20dark:text-white','144718UmOJvy','flex\x20h-12\x20w-full\x20cursor-pointer\x20items-center\x20justify-between\x20rounded-full\x20border\x20border-black/10\x20bg-white/60\x20pr-4\x20pl-5\x20text-[15px]\x20font-medium\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','4598363EoxowV','6WFXcce','0\x200\x2024\x2024','56nwKPWd','concat','749925KGkFnM','svg','4XaxIOc','map','1126445mRFcex'];_0x1b8f=function(){return _0x2b60c9;};return _0x1b8f();}export{y as GlassSelect,O as default};
@@ -25,8 +25,26 @@ export type GlassSlideToConfirmProps = {
25
25
  size?: GlassSlideSize;
26
26
  /** Classes of the fill the thumb pulls behind it: its `bg-*` and the `text-*` written on it. */
27
27
  fillClassName?: string;
28
+ /** `false` leaves the track bare: the thumb pulls no fill behind it, and `fillClassName` colours the success alone. */
29
+ fill?: boolean;
30
+ /** The held thumb's rim mirrors the page around the track: a colourful neighbour lights the rim that faces it, and the icon glows. */
31
+ mirror?: boolean;
28
32
  disabled?: boolean;
29
33
  className?: string;
30
34
  };
31
- export declare function GlassSlideToConfirm({ children, onConfirm, onConfirmError, pendingLabel, successLabel, errorLabel, threshold, resetAfter, hint, icon, size, fillClassName, disabled, className, }: GlassSlideToConfirmProps): import("react").JSX.Element;
35
+ export declare const SLIDE_SIZES: Record<GlassSlideSize, {
36
+ trackHeight: number;
37
+ thumbSize: number;
38
+ inset: number;
39
+ iconSize: number;
40
+ host: string;
41
+ insetPos: string;
42
+ thumb: string;
43
+ fill: string;
44
+ label: string;
45
+ copy: string;
46
+ }>;
47
+ export declare const CHEVRON: readonly [9, 6, 15, 12, 9, 18];
48
+ export declare const CHECK: readonly [4.5, 12.75, 10.5, 18.75, 19.5, 5.25];
49
+ export declare function GlassSlideToConfirm({ children, onConfirm, onConfirmError, pendingLabel, successLabel, errorLabel, threshold, resetAfter, hint, icon, size, fillClassName, fill, mirror, disabled, className, }: GlassSlideToConfirmProps): import("react").JSX.Element;
32
50
  export default GlassSlideToConfirm;
@@ -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 _0xf1e3(){var _0xcb94c3=['20eTYoXy','8VmbWiN','2580545dVYvts','1464239KaxhhV','71811fHwusV','1566000OexrIB','10917iSRziL','104SzgOJV','1504071FAcUoO','4FwkGPX','707890tWYpem'];_0xf1e3=function(){return _0xcb94c3;};return _0xf1e3();}(function(_0x5ae267,_0x3b8017){var _0x525aa6=_0x4e3e,_0xb4e8b1=_0x5ae267();while(!![]){try{var _0x3b91f7=-parseInt(_0x525aa6(0x132))/0x1+parseInt(_0x525aa6(0x135))/0x2*(-parseInt(_0x525aa6(0x134))/0x3)+-parseInt(_0x525aa6(0x137))/0x4*(-parseInt(_0x525aa6(0x138))/0x5)+-parseInt(_0x525aa6(0x133))/0x6+-parseInt(_0x525aa6(0x13c))/0x7*(-parseInt(_0x525aa6(0x13a))/0x8)+-parseInt(_0x525aa6(0x136))/0x9+parseInt(_0x525aa6(0x139))/0xa*(parseInt(_0x525aa6(0x13b))/0xb);if(_0x3b91f7===_0x3b8017)break;else _0xb4e8b1['push'](_0xb4e8b1['shift']());}catch(_0x329755){_0xb4e8b1['push'](_0xb4e8b1['shift']());}}}(_0xf1e3,0x1fee3));export{a as GlassSlideToConfirm,b as default}from'./chunk-TIG2HRDS.js';import'./chunk-IMUNBL7U.js';function _0x4e3e(_0x117607,_0x1688bb){_0x117607=_0x117607-0x132;var _0xf1e3e3=_0xf1e3();var _0x4e3ecc=_0xf1e3e3[_0x117607];return _0x4e3ecc;}import'./chunk-ZCV4ENGP.js';
3
+ (function(_0x22d85e,_0x17bc3a){var _0x1e69e2=_0x525f,_0x5369c3=_0x22d85e();while(!![]){try{var _0x2a0445=parseInt(_0x1e69e2(0x127))/0x1*(-parseInt(_0x1e69e2(0x126))/0x2)+parseInt(_0x1e69e2(0x125))/0x3*(parseInt(_0x1e69e2(0x130))/0x4)+-parseInt(_0x1e69e2(0x128))/0x5+-parseInt(_0x1e69e2(0x12e))/0x6*(-parseInt(_0x1e69e2(0x12b))/0x7)+-parseInt(_0x1e69e2(0x12a))/0x8+parseInt(_0x1e69e2(0x129))/0x9*(parseInt(_0x1e69e2(0x12c))/0xa)+parseInt(_0x1e69e2(0x12f))/0xb*(-parseInt(_0x1e69e2(0x12d))/0xc);if(_0x2a0445===_0x17bc3a)break;else _0x5369c3['push'](_0x5369c3['shift']());}catch(_0x38f5a2){_0x5369c3['push'](_0x5369c3['shift']());}}}(_0x104c,0xdef19));export{c as CHECK,b as CHEVRON,d as GlassSlideToConfirm,a as SLIDE_SIZES,e as default}from'./chunk-BHVG3AD3.js';import'./chunk-QZRTCDJH.js';function _0x104c(){var _0x24d668=['1321784oPLJfL','413GjBXeQ','11633530kbeuIX','5708820dStZBX','100722pbkfeg','11IWDvKl','8mjFhDa','1709733UGqnyZ','2131946lEbsIB','1kbkVHA','3367500RMFwJT','9ebpvhF'];_0x104c=function(){return _0x24d668;};return _0x104c();}function _0x525f(_0x2aaa74,_0x12d7f0){_0x2aaa74=_0x2aaa74-0x125;var _0x104c29=_0x104c();var _0x525f2b=_0x104c29[_0x2aaa74];return _0x525f2b;}import'./chunk-ZCV4ENGP.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(_0x7f305d,_0x3b6925){var _0x2e213a=_0x2ee3,_0x2f1f16=_0x7f305d();while(!![]){try{var _0xfcb1d5=parseInt(_0x2e213a(0x1d8))/0x1+parseInt(_0x2e213a(0x1d9))/0x2+parseInt(_0x2e213a(0x1d6))/0x3*(parseInt(_0x2e213a(0x1cf))/0x4)+parseInt(_0x2e213a(0x1d7))/0x5+parseInt(_0x2e213a(0x1d2))/0x6*(-parseInt(_0x2e213a(0x1d1))/0x7)+parseInt(_0x2e213a(0x1d0))/0x8*(parseInt(_0x2e213a(0x1d4))/0x9)+parseInt(_0x2e213a(0x1d5))/0xa*(-parseInt(_0x2e213a(0x1d3))/0xb);if(_0xfcb1d5===_0x3b6925)break;else _0x2f1f16['push'](_0x2f1f16['shift']());}catch(_0x6e0b24){_0x2f1f16['push'](_0x2f1f16['shift']());}}}(_0x9656,0x244ba));function _0x2ee3(_0xf52dbf,_0x1503e4){_0xf52dbf=_0xf52dbf-0x1cf;var _0x965636=_0x9656();var _0x2ee3a1=_0x965636[_0xf52dbf];return _0x2ee3a1;}function _0x9656(){var _0x1a20a2=['68454dzqrYL','6170qdOeKO','200967FhIuCy','354640dKxewC','57711TmDzxK','536172xSBVaX','4EUXVSc','304kIredH','7meNyuU','822042LkRsPD','8327hiOjBT'];_0x9656=function(){return _0x1a20a2;};return _0x9656();}export{a as ELEVATION_SHADOWS,d as GlassSurface,e as default,b as resolveGlassRadius,c as useGlass}from'./chunk-P3SF73HG.js';import'./chunk-IMUNBL7U.js';import'./chunk-ZCV4ENGP.js';
3
+ (function(_0x4b13b6,_0x2ac8b3){var _0x6b719=_0x9185,_0xa4ec94=_0x4b13b6();while(!![]){try{var _0x289c07=parseInt(_0x6b719(0x6d))/0x1*(parseInt(_0x6b719(0x6f))/0x2)+-parseInt(_0x6b719(0x6b))/0x3*(parseInt(_0x6b719(0x69))/0x4)+-parseInt(_0x6b719(0x6e))/0x5+parseInt(_0x6b719(0x6a))/0x6+parseInt(_0x6b719(0x6c))/0x7+parseInt(_0x6b719(0x71))/0x8*(-parseInt(_0x6b719(0x70))/0x9)+parseInt(_0x6b719(0x72))/0xa;if(_0x289c07===_0x2ac8b3)break;else _0xa4ec94['push'](_0xa4ec94['shift']());}catch(_0x446059){_0xa4ec94['push'](_0xa4ec94['shift']());}}}(_0x3479,0x7dfd3));function _0x9185(_0x3a8cce,_0x59280c){_0x3a8cce=_0x3a8cce-0x69;var _0x3479cc=_0x3479();var _0x9185ac=_0x3479cc[_0x3a8cce];return _0x9185ac;}export{a as ELEVATION_SHADOWS,d as GlassSurface,e as default,b as resolveGlassRadius,c as useGlass}from'./chunk-AOEWAIGE.js';import'./chunk-QZRTCDJH.js';import'./chunk-ZCV4ENGP.js';function _0x3479(){var _0x562f76=['1072eqmIVV','4344900CDwtsr','301260pfjYLr','40788wCCOOy','33IeNzAZ','1948142AKoBoA','7MyJRjD','422825IShukb','288662morenp','20205OCesXL'];_0x3479=function(){return _0x562f76;};return _0x3479();}
@@ -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 _0x2926(_0x3afa53,_0x12f42c){_0x3afa53=_0x3afa53-0x16a;var _0x2d7ae0=_0x2d7a();var _0x2926f9=_0x2d7ae0[_0x3afa53];return _0x2926f9;}(function(_0x58d060,_0x142e9f){var _0x305c65=_0x2926,_0xf6c69c=_0x58d060();while(!![]){try{var _0x899363=-parseInt(_0x305c65(0x16a))/0x1+-parseInt(_0x305c65(0x171))/0x2*(-parseInt(_0x305c65(0x16d))/0x3)+-parseInt(_0x305c65(0x170))/0x4+parseInt(_0x305c65(0x16f))/0x5+-parseInt(_0x305c65(0x16e))/0x6+parseInt(_0x305c65(0x16b))/0x7+parseInt(_0x305c65(0x16c))/0x8;if(_0x899363===_0x142e9f)break;else _0xf6c69c['push'](_0xf6c69c['shift']());}catch(_0x49805e){_0xf6c69c['push'](_0xf6c69c['shift']());}}}(_0x2d7a,0x548d4));export{b as GlassTabs,c as default}from'./chunk-UMMRBERM.js';function _0x2d7a(){var _0x3aec7f=['591sHqlUK','2399190TCCbep','1599660QAeaPg','1127228wydouw','478mTAzpZ','6351scZpQp','4280052yHztqj','447168okheXw'];_0x2d7a=function(){return _0x3aec7f;};return _0x2d7a();}import'./chunk-IMUNBL7U.js';import'./chunk-ZCV4ENGP.js';
3
+ (function(_0x361a1f,_0xccfd99){var _0x2daabd=_0x3753,_0xf8aa8c=_0x361a1f();while(!![]){try{var _0x30029e=parseInt(_0x2daabd(0x112))/0x1*(-parseInt(_0x2daabd(0x10f))/0x2)+parseInt(_0x2daabd(0x113))/0x3*(parseInt(_0x2daabd(0x117))/0x4)+-parseInt(_0x2daabd(0x110))/0x5*(-parseInt(_0x2daabd(0x10e))/0x6)+parseInt(_0x2daabd(0x114))/0x7*(parseInt(_0x2daabd(0x115))/0x8)+parseInt(_0x2daabd(0x116))/0x9+parseInt(_0x2daabd(0x118))/0xa*(-parseInt(_0x2daabd(0x119))/0xb)+-parseInt(_0x2daabd(0x111))/0xc;if(_0x30029e===_0xccfd99)break;else _0xf8aa8c['push'](_0xf8aa8c['shift']());}catch(_0x5194b6){_0xf8aa8c['push'](_0xf8aa8c['shift']());}}}(_0x40c9,0x96896));function _0x40c9(){var _0x5f1986=['5225004fYtFfM','62836cfxDUT','159860rlJRAM','671JncZLb','18gecEZl','6SdyLdf','1827810RewsFG','21166152oDAipd','147233xVCQip','177HRyZVC','1792xsvaKP','37288wDVnJG'];_0x40c9=function(){return _0x5f1986;};return _0x40c9();}function _0x3753(_0x2bf142,_0x3ebcd8){_0x2bf142=_0x2bf142-0x10e;var _0x40c944=_0x40c9();var _0x3753e1=_0x40c944[_0x2bf142];return _0x3753e1;}export{b as GlassTabs,c as default}from'./chunk-RDUUCXZF.js';import'./chunk-QZRTCDJH.js';import'./chunk-ZCV4ENGP.js';
package/dist/index.d.ts CHANGED
@@ -5,10 +5,10 @@ export { GlassBadge, type GlassBadgeProps } from "./glass-badge.js";
5
5
  export { GlassSlideToConfirm, type GlassSlideToConfirmProps, type GlassSlideState, type GlassSlideSize, } from "./glass-slide-to-confirm.js";
6
6
  export { GlassCard, type GlassCardProps } from "./glass-card.js";
7
7
  export { GlassButtonGroup, GlassButtonGroupItem, GlassButtonGroupSeparator, GlassButtonGroupText, type GlassButtonGroupProps, type GlassButtonGroupItemProps, type GlassButtonGroupSize, type GlassButtonGroupOrientation, } from "./glass-button-group.js";
8
- export { GlassPopover, GlassPopoverTrigger, GlassPopoverContent, type GlassPopoverProps, type GlassPopoverTriggerProps, type GlassPopoverContentProps, } from "./glass-popover.js";
9
- export { GlassMenu, GlassMenuTrigger, GlassMenuContent, GlassMenuItem, GlassMenuSeparator, GlassMenuLabel, type GlassMenuProps, type GlassMenuTriggerProps, type GlassMenuContentProps, type GlassMenuItemProps, type GlassMenuSeparatorProps, type GlassMenuLabelProps, type GlassMenuSide, type GlassMenuAlign, } from "./glass-menu.js";
8
+ export { GlassPopover, GlassPopoverTrigger, GlassPopoverContent, GlassPopoverTitle, GlassPopoverDescription, GlassPopoverClose, type GlassPopoverProps, type GlassPopoverTriggerProps, type GlassPopoverContentProps, type GlassPopoverTitleProps, type GlassPopoverDescriptionProps, type GlassPopoverCloseProps, } from "./glass-popover.js";
9
+ export { GlassMenu, GlassMenuTrigger, GlassMenuContent, GlassMenuItem, GlassMenuCheckboxItem, GlassMenuRadioGroup, GlassMenuRadioItem, GlassMenuGroup, GlassMenuShortcut, GlassMenuSub, GlassMenuSubTrigger, GlassMenuSubContent, GlassMenuSeparator, GlassMenuLabel, type GlassMenuProps, type GlassMenuSubProps, type GlassMenuTriggerProps, type GlassMenuContentProps, type GlassMenuSubTriggerProps, type GlassMenuSubContentProps, type GlassMenuItemProps, type GlassMenuCheckboxItemProps, type GlassMenuRadioGroupProps, type GlassMenuRadioItemProps, type GlassMenuGroupProps, type GlassMenuShortcutProps, type GlassMenuSeparatorProps, type GlassMenuLabelProps, type GlassMenuSide, type GlassMenuAlign, } from "./glass-menu.js";
10
10
  export { GlassLens, type GlassLensProps } from "./glass-lens.js";
11
- export { GlassPopupAnchor, GlassPopupSurface, useGlassPopup, type GlassPopup, } from "./glass-popup.js";
11
+ export { GlassPopupAnchor, GlassPopupContext, GlassPopupSurface, GlassPopupText, OVER_CENTER, OVER_EDGE, spellLabel, useGlassPopup, type GlassPopup, type GlassPopupFrom, type GlassPopupMode, type GlassPopupOpening, } from "./glass-popup.js";
12
12
  export { GlassLayer, GlassStyles, GLASS_CSS, type GlassLayerProps, type GlassMaterial, type GlassDroplet, type GlassOptics, } from "./glass-layer.js";
13
13
  export { GlassSurface, useGlass, ELEVATION_SHADOWS, resolveGlassRadius, type GlassSurfaceProps, type GlassSurfaceElevation, type GlassHostProps, type UseGlassOptions, type UseGlassResult, } from "./glass-surface.js";
14
14
  export { VitrumProvider, useVitrumTheme, createGlassTheme, defineVitrumConfig, resolveVitrumTheme, resolveThemeTokens, themeToCssVars, vitrumThemes, VITRUM_THEME_NAMES, type VitrumProviderProps, type VitrumTheme, type VitrumThemeName, type VitrumThemeOverrides, type VitrumThemeDarkOverrides, type VitrumThemeContextValue, type VitrumColorScheme, type ResolvedColorScheme, type VitrumMotionPreset, type VitrumConfig, } from "./theme.js";