@vitrumui/react 1.1.0 → 2.0.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.
- package/LICENSE.md +1 -1
- package/README.md +1 -1
- package/THIRD_PARTY_NOTICES.md +56 -0
- package/dist/chunk-3FVJ6IEM.js +2 -0
- package/dist/chunk-5QIW5GHV.js +2 -0
- package/dist/chunk-5SBAJLEI.js +2 -0
- package/dist/chunk-AOEWAIGE.js +2 -0
- package/dist/chunk-BHVG3AD3.js +2 -0
- package/dist/chunk-FVKDZFPR.js +2 -0
- package/dist/chunk-IHAKQPCJ.js +2 -0
- package/dist/chunk-OXVTAI36.js +2 -0
- package/dist/chunk-QZRTCDJH.js +2 -0
- package/dist/chunk-RDUUCXZF.js +2 -0
- package/dist/chunk-Y7JTQQBA.js +2 -0
- package/dist/chunk-YOENTAPC.js +2 -0
- package/dist/chunk-YPSGSD6W.js +2 -0
- package/dist/chunk-ZCV4ENGP.js +1 -1
- package/dist/controls/Checkbox.js +1 -1
- package/dist/controls/RangeSlider.js +1 -1
- package/dist/controls/Switch.js +1 -1
- package/dist/glass-action-button.d.ts +3 -1
- package/dist/glass-action-button.js +1 -1
- package/dist/glass-badge.js +1 -1
- package/dist/glass-button-group.js +1 -1
- package/dist/glass-button.d.ts +3 -1
- package/dist/glass-button.js +1 -1
- package/dist/glass-card.d.ts +2 -2
- package/dist/glass-card.js +1 -1
- package/dist/glass-dropdown-menu.d.ts +15 -3
- package/dist/glass-dropdown-menu.js +1 -1
- package/dist/glass-layer.d.ts +17 -2
- package/dist/glass-menu.d.ts +60 -17
- package/dist/glass-menu.js +1 -1
- package/dist/glass-popover.d.ts +38 -8
- package/dist/glass-popover.js +1 -1
- package/dist/glass-popup.d.ts +43 -3
- package/dist/glass-select.js +1 -1
- package/dist/glass-slide-to-confirm.d.ts +19 -1
- package/dist/glass-slide-to-confirm.js +1 -1
- package/dist/glass-surface.js +1 -1
- package/dist/glass-tabs.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/runtime-SFKGJUVX.js +2 -0
- package/dist/styles.css +1 -1
- package/dist/theme.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-5H6FHJ6K.js +0 -2
- package/dist/chunk-BCPB75TR.js +0 -2
- package/dist/chunk-D6ZLXL4J.js +0 -2
- package/dist/chunk-E2KN4H6B.js +0 -2
- package/dist/chunk-IMUNBL7U.js +0 -2
- package/dist/chunk-KL26ZVD4.js +0 -2
- package/dist/chunk-P3SF73HG.js +0 -2
- package/dist/chunk-Q5GOHPZ3.js +0 -2
- package/dist/chunk-TIG2HRDS.js +0 -2
- package/dist/chunk-U3CZMSFP.js +0 -2
- package/dist/chunk-ULHSS732.js +0 -2
- package/dist/chunk-UMMRBERM.js +0 -2
- package/dist/chunk-YZILLPGA.js +0 -2
- package/dist/runtime-2U4MAR2W.js +0 -2
package/dist/glass-card.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
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<
|
|
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;
|
package/dist/glass-card.js
CHANGED
|
@@ -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(
|
|
3
|
+
(function(_0x1649e1,_0x1e5934){var _0x12eca8=_0xca51,_0x3188e5=_0x1649e1();while(!![]){try{var _0xb4b57=-parseInt(_0x12eca8(0x12a))/0x1*(parseInt(_0x12eca8(0x129))/0x2)+-parseInt(_0x12eca8(0x12f))/0x3*(-parseInt(_0x12eca8(0x128))/0x4)+-parseInt(_0x12eca8(0x12e))/0x5*(-parseInt(_0x12eca8(0x130))/0x6)+-parseInt(_0x12eca8(0x127))/0x7+-parseInt(_0x12eca8(0x12d))/0x8+-parseInt(_0x12eca8(0x132))/0x9*(parseInt(_0x12eca8(0x12b))/0xa)+parseInt(_0x12eca8(0x131))/0xb*(parseInt(_0x12eca8(0x12c))/0xc);if(_0xb4b57===_0x1e5934)break;else _0x3188e5['push'](_0x3188e5['shift']());}catch(_0x3ab89e){_0x3188e5['push'](_0x3188e5['shift']());}}}(_0xd70f,0x4468e));function _0xd70f(){var _0x5259bd=['52ZEkRRJ','8hfDkFm','57089gMSQLP','50NBipXL','6744BUMQHD','1829520KJqOxc','15XcrQKX','108597hkRXSA','879144YFgKlS','11143yEZQpW','544815cBLPmd','3076766JjmLFA'];_0xd70f=function(){return _0x5259bd;};return _0xd70f();}export{a as GlassCard,b as default}from'./chunk-5QIW5GHV.js';function _0xca51(_0x52070a,_0x51553a){_0x52070a=_0x52070a-0x127;var _0xd70fb3=_0xd70f();var _0xca51f0=_0xd70fb3[_0x52070a];return _0xca51f0;}import'./chunk-QZRTCDJH.js';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
|
-
|
|
3
|
+
(function(_0x390a49,_0x93733){const _0x1a3f4f=_0x4bf1,_0x34a509=_0x390a49();while(!![]){try{const _0x996211=parseInt(_0x1a3f4f(0x87))/0x1*(-parseInt(_0x1a3f4f(0x81))/0x2)+-parseInt(_0x1a3f4f(0x76))/0x3+parseInt(_0x1a3f4f(0x80))/0x4*(-parseInt(_0x1a3f4f(0x82))/0x5)+-parseInt(_0x1a3f4f(0x7a))/0x6*(-parseInt(_0x1a3f4f(0x7d))/0x7)+parseInt(_0x1a3f4f(0x7c))/0x8+parseInt(_0x1a3f4f(0x83))/0x9*(parseInt(_0x1a3f4f(0x7f))/0xa)+-parseInt(_0x1a3f4f(0x7e))/0xb;if(_0x996211===_0x93733)break;else _0x34a509['push'](_0x34a509['shift']());}catch(_0x32ec2e){_0x34a509['push'](_0x34a509['shift']());}}}(_0x4232,0x8fb98));import{h,c,e,g,a,b,d as _0x4e0d3d}from'./chunk-YOENTAPC.js';import'./chunk-QZRTCDJH.js';import'./chunk-ZCV4ENGP.js';import{Menu,MenuTrigger,MenuContent,MenuItem,MenuSeparator}from'@ui-sdk/react/menu';import{createContext,useContext,Children,isValidElement,cloneElement}from'react';function _0x4232(){const _0x17a44a=['concat','86235CPMIgI','toArray','3143238SKFEWF','center','Provider','bottom','6364458dPQcnb','flex\x20flex-col','5819352trcDdk','7VrRoID','2055086NXqJLJ','588680EOrRlD','156thzTRB','2XQDzKc','7085EMjtqM','27POlRga','props','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'];_0x4232=function(){return _0x17a44a;};return _0x4232();}import{jsx,jsxs}from'react/jsx-runtime';var d=createContext(void 0x0);function E({children:_0x1a5a28,over:_0x562e4b,from:_0x811946='top',..._0x2af5b9}){const _0x230468=_0x4bf1;let _0xc42381=h({'opening':_0x562e4b?'morph':'stretch','from':_0x811946});return jsx(Menu,{..._0x2af5b9,'children':jsx(d[_0x230468(0x78)],{'value':_0x562e4b,'children':jsx(c['Provider'],{'value':_0xc42381,'children':_0x1a5a28})})});}function _({children:_0x5ae15d,asChild:_0x23ff21=![],className:_0x3b2997='',..._0x454861}){let _0x5407b9=useContext(c),_0x5e79d3=useContext(d);return _0x23ff21||!_0x5407b9?jsx(MenuTrigger,{'render':Children['only'](_0x5ae15d),..._0x454861}):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'](_0x3b2997),..._0x454861,'children':[jsx(e,{'popup':_0x5407b9}),jsx('span',{'className':'inline-flex\x20items-center\x20gap-[inherit]','children':_0x5e79d3?g(_0x5ae15d):_0x5ae15d})]});}function I({children:_0x28a5cd,className:_0x1d0119='',sideOffset:_0xc99d88,align:_0x126a4e='center',..._0x312006}){const _0x3e3666=_0x4bf1;let _0x374fb6=useContext(c),_0x2d6a7a=useContext(d),_0x43f173=_0x2d6a7a===_0x3e3666(0x77);return jsxs(MenuContent,{'data-vt-popup':'','data-vt-skip':'','sideOffset':_0xc99d88??(_0x2d6a7a?0x0:0xc),'align':_0x126a4e,'className':_0x3e3666(0x85)[_0x3e3666(0x86)](_0x2d6a7a&&_0xc99d88===void 0x0?_0x43f173?a:b:'','\x20')['concat'](_0x1d0119),..._0x312006,..._0x43f173?{'side':_0x3e3666(0x79)}:null,'children':[_0x374fb6&&jsx(_0x4e0d3d,{'popup':_0x374fb6}),jsx('div',{'data-vt-list':'','className':_0x3e3666(0x7b),'children':Children[_0x3e3666(0x88)](_0x28a5cd)['map']((_0xf3c30d,_0x5a3d92)=>isValidElement(_0xf3c30d)?cloneElement(_0xf3c30d,{'style':{'--vt-i':_0x5a3d92,..._0xf3c30d[_0x3e3666(0x84)]['style']}}):_0xf3c30d)})]});}function $({className:_0xca7fed='',..._0x1cd31e}){const _0xa9e82d=_0x4bf1;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'[_0xa9e82d(0x86)](_0xca7fed),..._0x1cd31e});}function V({className:_0x3947ac='',style:_0x4d169e}){const _0x23eabf=_0x4bf1;return jsx(MenuSeparator,{'data-vt-item':'','style':_0x4d169e,'className':'mx-3.5\x20my-1\x20h-px\x20shrink-0\x20bg-current/15\x20'[_0x23eabf(0x86)](_0x3947ac)});}var z=E;function _0x4bf1(_0x35ffe2,_0x2831f8){_0x35ffe2=_0x35ffe2-0x76;const _0x4232d0=_0x4232();let _0x4bf1a8=_0x4232d0[_0x35ffe2];return _0x4bf1a8;}export{E as GlassDropdownMenu,I as GlassDropdownMenuContent,$ as GlassDropdownMenuItem,V as GlassDropdownMenuSeparator,_ as GlassDropdownMenuTrigger,z as default};
|
package/dist/glass-layer.d.ts
CHANGED
|
@@ -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;
|
package/dist/glass-menu.d.ts
CHANGED
|
@@ -1,43 +1,86 @@
|
|
|
1
|
-
import { MenuContent, MenuItem, MenuTrigger, type MenuProps } from "@ui-sdk/react/menu";
|
|
2
|
-
import { type
|
|
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
|
-
/**
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
|
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"
|
|
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
|
|
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
|
-
/**
|
|
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
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
40
|
-
export declare function
|
|
41
|
-
/**
|
|
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
|
+
/** Radio items that share one value: `value` / `defaultValue` / `onValueChange`. */
|
|
69
|
+
export declare function GlassMenuRadioGroup({ className, ...rest }: GlassMenuRadioGroupProps): import("react").JSX.Element;
|
|
70
|
+
/** One choice in a GlassMenuRadioGroup. */
|
|
71
|
+
export declare function GlassMenuRadioItem({ children, className, ...rest }: GlassMenuRadioItemProps): import("react").JSX.Element;
|
|
72
|
+
/** Items that belong together, named by a GlassMenuLabel inside. */
|
|
73
|
+
export declare function GlassMenuGroup({ className, ...rest }: GlassMenuGroupProps): import("react").JSX.Element;
|
|
74
|
+
/** The quiet heading of a group. */
|
|
42
75
|
export declare function GlassMenuLabel({ className, ...rest }: GlassMenuLabelProps): import("react").JSX.Element;
|
|
76
|
+
/** The keys of an item's shortcut, at its end: `⌘S`. */
|
|
77
|
+
export declare function GlassMenuShortcut({ className, ...rest }: GlassMenuShortcutProps): import("react").JSX.Element;
|
|
78
|
+
/** A hairline between items. */
|
|
79
|
+
export declare function GlassMenuSeparator({ className, }: GlassMenuSeparatorProps): import("react").JSX.Element;
|
|
80
|
+
/** A submenu: a GlassMenuSubTrigger and a GlassMenuSubContent, inside a menu's content. */
|
|
81
|
+
export declare function GlassMenuSub(props: GlassMenuSubProps): import("react").JSX.Element;
|
|
82
|
+
/** The row that opens its submenu, on hover, a press or the arrow key. */
|
|
83
|
+
export declare function GlassMenuSubTrigger({ children, className, ...rest }: GlassMenuSubTriggerProps): import("react").JSX.Element;
|
|
84
|
+
/** The submenu: a card of the same glass beside its row. It fades in where it lies, and out again. */
|
|
85
|
+
export declare function GlassMenuSubContent({ children, className, sideOffset, alignOffset, ...rest }: GlassMenuSubContentProps): import("react").JSX.Element;
|
|
43
86
|
export default GlassMenu;
|
package/dist/glass-menu.js
CHANGED
|
@@ -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(
|
|
3
|
+
(function(_0xcca45d,_0x5d2bdf){var _0x43f3c5=_0xe2f1,_0x36bedb=_0xcca45d();while(!![]){try{var _0x1e0b6e=parseInt(_0x43f3c5(0x127))/0x1+parseInt(_0x43f3c5(0x12a))/0x2*(-parseInt(_0x43f3c5(0x122))/0x3)+-parseInt(_0x43f3c5(0x121))/0x4+-parseInt(_0x43f3c5(0x124))/0x5+parseInt(_0x43f3c5(0x128))/0x6+parseInt(_0x43f3c5(0x126))/0x7*(-parseInt(_0x43f3c5(0x129))/0x8)+parseInt(_0x43f3c5(0x125))/0x9*(parseInt(_0x43f3c5(0x123))/0xa);if(_0x1e0b6e===_0x5d2bdf)break;else _0x36bedb['push'](_0x36bedb['shift']());}catch(_0x98888a){_0x36bedb['push'](_0x36bedb['shift']());}}}(_0x328b,0xa7897));function _0x328b(){var _0x47a857=['6392225zpkuWQ','9Kghhmz','28VGQXdN','407827zRwurH','3409794TplnQA','1542664HcORrI','2195512XfUCJv','5132984xXSsCM','3faOrIA','41408840iDqgtN'];_0x328b=function(){return _0x47a857;};return _0x328b();}function _0xe2f1(_0x1bf33c,_0x41a69c){_0x1bf33c=_0x1bf33c-0x121;var _0x328be9=_0x328b();var _0xe2f1c1=_0x328be9[_0x1bf33c];return _0xe2f1c1;}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-OXVTAI36.js';import'./chunk-5QIW5GHV.js';import'./chunk-YOENTAPC.js';import'./chunk-QZRTCDJH.js';import'./chunk-ZCV4ENGP.js';
|
package/dist/glass-popover.d.ts
CHANGED
|
@@ -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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
|
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;
|
package/dist/glass-popover.js
CHANGED
|
@@ -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(
|
|
3
|
+
(function(_0x407eeb,_0x36731c){var _0x228eb8=_0x1b8e,_0x12f95f=_0x407eeb();while(!![]){try{var _0x213196=parseInt(_0x228eb8(0x69))/0x1+parseInt(_0x228eb8(0x6a))/0x2+parseInt(_0x228eb8(0x68))/0x3+parseInt(_0x228eb8(0x6c))/0x4*(-parseInt(_0x228eb8(0x6d))/0x5)+-parseInt(_0x228eb8(0x6b))/0x6*(-parseInt(_0x228eb8(0x67))/0x7)+parseInt(_0x228eb8(0x66))/0x8+-parseInt(_0x228eb8(0x65))/0x9;if(_0x213196===_0x36731c)break;else _0x12f95f['push'](_0x12f95f['shift']());}catch(_0x527232){_0x12f95f['push'](_0x12f95f['shift']());}}}(_0x563f,0xdc556));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';function _0x1b8e(_0x141b8a,_0x53785b){_0x141b8a=_0x141b8a-0x65;var _0x563fee=_0x563f();var _0x1b8ebf=_0x563fee[_0x141b8a];return _0x1b8ebf;}function _0x563f(){var _0x1c04fb=['98685HsZUVw','23202873JvEmpS','12416720uHrITV','11424kbZgcS','2370183oAgUVf','568625kmNFGN','84934HRUdyL','3390eFJwdF','80nxXzew'];_0x563f=function(){return _0x1c04fb;};return _0x563f();}import'./chunk-QZRTCDJH.js';import'./chunk-ZCV4ENGP.js';
|
package/dist/glass-popup.d.ts
CHANGED
|
@@ -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
|
-
/**
|
|
24
|
-
|
|
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 {};
|
package/dist/glass-select.js
CHANGED
|
@@ -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
|
-
|
|
3
|
+
(function(_0x86c020,_0x80a941){const _0x1da348=_0x5202,_0x74e3e0=_0x86c020();while(!![]){try{const _0x5a70b4=-parseInt(_0x1da348(0x1c3))/0x1*(-parseInt(_0x1da348(0x1c2))/0x2)+parseInt(_0x1da348(0x1bd))/0x3+-parseInt(_0x1da348(0x1be))/0x4+-parseInt(_0x1da348(0x1bc))/0x5*(-parseInt(_0x1da348(0x1b9))/0x6)+-parseInt(_0x1da348(0x1bb))/0x7*(-parseInt(_0x1da348(0x1c4))/0x8)+parseInt(_0x1da348(0x1ba))/0x9*(parseInt(_0x1da348(0x1cb))/0xa)+-parseInt(_0x1da348(0x1c0))/0xb;if(_0x5a70b4===_0x80a941)break;else _0x74e3e0['push'](_0x74e3e0['shift']());}catch(_0x4ade75){_0x74e3e0['push'](_0x74e3e0['shift']());}}}(_0x81d7,0xe500c));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:_0x217bb4,options:_0x60015f,value:_0x59f44b,defaultValue:_0x4ac6ae,onValueChange:_0x45157e,placeholder:_0x3cf254,disabled:_0x2cef94,name:_0x4033ec,className:_0x15fed2=''}){const _0x5a94b8=_0x5202;let _0x5e1f92=h({'matchWidth':!![]});return jsxs(Select,{..._0x59f44b!==void 0x0?{'value':_0x59f44b}:{},..._0x4ac6ae!==void 0x0?{'defaultValue':_0x4ac6ae}:{},'onValueChange':_0x1b98da=>_0x45157e?.(_0x1b98da??null),'placeholder':_0x3cf254,'disabled':_0x2cef94,'name':_0x4033ec,'children':[jsxs('div',{'className':_0x5a94b8(0x1c7)[_0x5a94b8(0x1b8)](_0x15fed2),'children':[jsx(SelectLabel,{'className':'text-sm\x20font-medium\x20text-neutral-900\x20dark:text-white','children':_0x217bb4}),jsxs(SelectTrigger,{'data-vt-host':'','className':'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','children':[jsx(e,{'popup':_0x5e1f92}),jsx(SelectValue,{}),jsx('svg',{'aria-hidden':!![],'viewBox':'0\x200\x2024\x2024','fill':_0x5a94b8(0x1c8),'stroke':_0x5a94b8(0x1c6),'strokeWidth':'2','strokeLinecap':_0x5a94b8(0x1c1),'strokeLinejoin':_0x5a94b8(0x1c1),'className':'size-4\x20shrink-0\x20opacity-60','children':jsx(_0x5a94b8(0x1c9),{'d':'m6\x209\x206\x206\x206-6'})})]})]}),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(d,{'popup':_0x5e1f92}),jsx(SelectList,{'className':'max-h-72\x20overflow-y-auto\x20rounded-[18px]\x20outline-none','children':_0x60015f['map']((_0x448513,_0x41e6e3)=>jsx(SelectItem,{'value':_0x448513[_0x5a94b8(0x1c5)],'disabled':_0x448513[_0x5a94b8(0x1bf)],'style':{'--vt-i':_0x41e6e3},'className':_0x5a94b8(0x1cc),'children':_0x448513[_0x5a94b8(0x1ca)]},_0x448513[_0x5a94b8(0x1c5)]))})]})]});}function _0x81d7(){const _0x3f7282=['value','currentColor','flex\x20w-64\x20flex-col\x20gap-2\x20','none','path','label','2257690wSIUlv','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','concat','6QTmuNP','9XdGCgO','2057769RNtFkC','1961605uEkGCO','4639713PbIFSj','1900732OaJgme','disabled','19261792AxaZNJ','round','1411246eriWcf','1eWMGzu','8KXcwOx'];_0x81d7=function(){return _0x3f7282;};return _0x81d7();}var O=y;function _0x5202(_0x154adf,_0x41cf97){_0x154adf=_0x154adf-0x1b8;const _0x81d72f=_0x81d7();let _0x520221=_0x81d72f[_0x154adf];return _0x520221;}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
|
|
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
|
|
3
|
+
function _0x34a0(_0x3c8969,_0x2dfbb8){_0x3c8969=_0x3c8969-0x154;var _0x41af1a=_0x41af();var _0x34a0e4=_0x41af1a[_0x3c8969];return _0x34a0e4;}(function(_0x5eec68,_0x5900d5){var _0x506238=_0x34a0,_0x51041e=_0x5eec68();while(!![]){try{var _0x4802b5=parseInt(_0x506238(0x156))/0x1*(parseInt(_0x506238(0x159))/0x2)+-parseInt(_0x506238(0x158))/0x3+-parseInt(_0x506238(0x15f))/0x4*(parseInt(_0x506238(0x157))/0x5)+parseInt(_0x506238(0x15d))/0x6*(parseInt(_0x506238(0x155))/0x7)+-parseInt(_0x506238(0x15c))/0x8*(-parseInt(_0x506238(0x15e))/0x9)+-parseInt(_0x506238(0x15b))/0xa+parseInt(_0x506238(0x154))/0xb*(parseInt(_0x506238(0x15a))/0xc);if(_0x4802b5===_0x5900d5)break;else _0x51041e['push'](_0x51041e['shift']());}catch(_0x6de223){_0x51041e['push'](_0x51041e['shift']());}}}(_0x41af,0x55f61));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';import'./chunk-ZCV4ENGP.js';function _0x41af(){var _0x3874d4=['118520CsnblQ','6KDGLyc','423XRYLZw','4jxIpVH','25146lQgrYj','1314446kkmPSm','3zjbrww','3446395udXFJi','187137BumiTx','381266kNqQuu','348EzGIpu','4185210FBngpZ'];_0x41af=function(){return _0x3874d4;};return _0x41af();}
|
package/dist/glass-surface.js
CHANGED
|
@@ -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(
|
|
3
|
+
(function(_0x20c609,_0x38afc9){var _0x540d0f=_0x24a4,_0x30e9d8=_0x20c609();while(!![]){try{var _0xfa3c36=parseInt(_0x540d0f(0x10c))/0x1+-parseInt(_0x540d0f(0x111))/0x2+-parseInt(_0x540d0f(0x112))/0x3*(parseInt(_0x540d0f(0x10f))/0x4)+-parseInt(_0x540d0f(0x10e))/0x5+-parseInt(_0x540d0f(0x10d))/0x6+-parseInt(_0x540d0f(0x10b))/0x7+parseInt(_0x540d0f(0x110))/0x8;if(_0xfa3c36===_0x38afc9)break;else _0x30e9d8['push'](_0x30e9d8['shift']());}catch(_0x2eea9b){_0x30e9d8['push'](_0x30e9d8['shift']());}}}(_0x4dae,0x347f1));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';function _0x24a4(_0x17be21,_0x7324b5){_0x17be21=_0x17be21-0x10b;var _0x4dae80=_0x4dae();var _0x24a43f=_0x4dae80[_0x17be21];return _0x24a43f;}function _0x4dae(){var _0x5e9106=['757934LMKCGq','38433dyauLm','1062628pNfJGY','147277kWkDws','1555146mnOVvF','2000920zZhkRg','48LKdkLa','11293008felzjA'];_0x4dae=function(){return _0x5e9106;};return _0x4dae();}import'./chunk-ZCV4ENGP.js';
|
package/dist/glass-tabs.js
CHANGED
|
@@ -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
|
-
|
|
3
|
+
(function(_0x414a5b,_0x3a6757){var _0x59244b=_0xddef,_0x4b3326=_0x414a5b();while(!![]){try{var _0x5c6a11=-parseInt(_0x59244b(0x1f0))/0x1*(-parseInt(_0x59244b(0x1f4))/0x2)+-parseInt(_0x59244b(0x1eb))/0x3*(parseInt(_0x59244b(0x1ea))/0x4)+-parseInt(_0x59244b(0x1ec))/0x5*(-parseInt(_0x59244b(0x1ed))/0x6)+-parseInt(_0x59244b(0x1ef))/0x7+parseInt(_0x59244b(0x1f1))/0x8*(-parseInt(_0x59244b(0x1f2))/0x9)+-parseInt(_0x59244b(0x1e9))/0xa*(-parseInt(_0x59244b(0x1ee))/0xb)+parseInt(_0x59244b(0x1f3))/0xc;if(_0x5c6a11===_0x3a6757)break;else _0x4b3326['push'](_0x4b3326['shift']());}catch(_0x463f0e){_0x4b3326['push'](_0x4b3326['shift']());}}}(_0x3dd0,0x205e8));export{b as GlassTabs,c as default}from'./chunk-RDUUCXZF.js';function _0xddef(_0xf67c62,_0x574db6){_0xf67c62=_0xf67c62-0x1e9;var _0x3dd071=_0x3dd0();var _0xddefb=_0x3dd071[_0xf67c62];return _0xddefb;}function _0x3dd0(){var _0x4484be=['6065MBWvqD','222rNPzev','226204OjApEA','1421378uVnjoK','1082rrEYWx','1054072DjGyyR','18TnKryK','4552200TktrDy','226XGtjhA','100GnEmuY','4VcGETT','458943iZUgKw'];_0x3dd0=function(){return _0x4484be;};return _0x3dd0();}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";
|
package/dist/index.js
CHANGED
|
@@ -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(
|
|
3
|
+
(function(_0x3712f4,_0xe525c6){var _0x3aa303=_0x3a1a,_0x327f10=_0x3712f4();while(!![]){try{var _0x26e935=parseInt(_0x3aa303(0x1db))/0x1*(parseInt(_0x3aa303(0x1d2))/0x2)+parseInt(_0x3aa303(0x1d6))/0x3*(parseInt(_0x3aa303(0x1d9))/0x4)+parseInt(_0x3aa303(0x1d8))/0x5+parseInt(_0x3aa303(0x1d4))/0x6+parseInt(_0x3aa303(0x1d7))/0x7+parseInt(_0x3aa303(0x1da))/0x8*(parseInt(_0x3aa303(0x1d3))/0x9)+-parseInt(_0x3aa303(0x1d5))/0xa;if(_0x26e935===_0xe525c6)break;else _0x327f10['push'](_0x327f10['shift']());}catch(_0x155c6f){_0x327f10['push'](_0x327f10['shift']());}}}(_0x4101,0xc7d38));export{a as ELEVATION_SHADOWS,d as GlassSurface,b as resolveGlassRadius,c as useGlass}from'./chunk-AOEWAIGE.js';export{a as GlassButtonGroup,b as GlassButtonGroupItem,c as GlassButtonGroupSeparator,d as GlassButtonGroupText}from'./chunk-3FVJ6IEM.js';export{a as GlassActionButton}from'./chunk-IHAKQPCJ.js';export{a as GlassBadge}from'./chunk-5SBAJLEI.js';export{d as GlassSlideToConfirm}from'./chunk-BHVG3AD3.js';export{a as GlassButton}from'./chunk-FVKDZFPR.js';export{a as GlassLens,b as GlassTabs}from'./chunk-RDUUCXZF.js';function _0x3a1a(_0x1dd527,_0x28e3df){_0x1dd527=_0x1dd527-0x1d2;var _0x410151=_0x4101();var _0x3a1af8=_0x410151[_0x1dd527];return _0x3a1af8;}export{a as GlassPopover,f as GlassPopoverClose,c as GlassPopoverContent,e as GlassPopoverDescription,d as GlassPopoverTitle,b as GlassPopoverTrigger}from'./chunk-YPSGSD6W.js';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}from'./chunk-OXVTAI36.js';export{a as GlassCard}from'./chunk-5QIW5GHV.js';export{e as GlassPopupAnchor,c as GlassPopupContext,d as GlassPopupSurface,f as GlassPopupText,a as OVER_CENTER,b as OVER_EDGE,g as spellLabel,h as useGlassPopup}from'./chunk-YOENTAPC.js';function _0x4101(){var _0x49b55d=['5798072zbFvEP','3561zxJWua','2UKbDTH','18nMbKRb','8118924xXlzYH','50253720BpTxkl','12174ISrzOM','173460SWtmyj','7069975ZWKtIw','1576ETVxrZ'];_0x4101=function(){return _0x49b55d;};return _0x4101();}export{a as GLASS_CSS,c as GlassLayer,b as GlassStyles}from'./chunk-QZRTCDJH.js';export{b as VITRUM_THEME_NAMES,j as VitrumProvider,d as createGlassTheme,e as defineVitrumConfig,f as resolveThemeTokens,c as resolveVitrumTheme,g as themeToCssVars,i as useVitrumTheme,a as vitrumThemes}from'./chunk-ZCV4ENGP.js';export{setLicenseKey}from'@vitrumui/core';
|