@vitrumui/react 2.1.0 → 2.2.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.
- package/dist/chunk-3PI52YDW.js +2 -0
- package/dist/chunk-5SFK3G6B.js +2 -0
- package/dist/chunk-ASEUOSAG.js +2 -0
- package/dist/chunk-DQXR25V7.js +2 -0
- package/dist/chunk-DZ5R2SIY.js +2 -0
- package/dist/chunk-EVRORS2V.js +2 -0
- package/dist/chunk-FD4ZDHK5.js +2 -0
- package/dist/chunk-M2P35UPM.js +2 -0
- package/dist/chunk-M56667YV.js +2 -0
- package/dist/chunk-NKRH4Q2H.js +2 -0
- package/dist/chunk-NMLNS3EY.js +2 -0
- package/dist/chunk-QNDTUM4A.js +2 -0
- package/dist/chunk-SZZKVHNS.js +2 -0
- package/dist/chunk-TUMBPPSO.js +2 -0
- package/dist/chunk-VZQYTEGC.js +2 -0
- package/dist/chunk-WZESQXKC.js +2 -0
- package/dist/controls/Checkbox.d.ts +21 -3
- package/dist/controls/Checkbox.js +1 -1
- package/dist/controls/RangeSlider.d.ts +10 -2
- package/dist/controls/RangeSlider.js +1 -1
- package/dist/controls/Switch.d.ts +11 -2
- package/dist/controls/Switch.js +1 -1
- package/dist/controls/glass/runtime.d.ts +88 -0
- package/dist/controls/shared.d.ts +25 -1
- package/dist/glass-action-button.js +1 -1
- package/dist/glass-badge.d.ts +4 -2
- package/dist/glass-badge.js +1 -1
- package/dist/glass-button-group.js +1 -1
- package/dist/glass-button.d.ts +2 -2
- package/dist/glass-button.js +1 -1
- package/dist/glass-card.js +1 -1
- package/dist/glass-dropdown-menu.js +1 -1
- package/dist/glass-droplet-row.d.ts +3 -0
- package/dist/glass-layer.d.ts +52 -3
- package/dist/glass-menu.js +1 -1
- package/dist/glass-popover.js +1 -1
- package/dist/glass-popup.d.ts +15 -1
- package/dist/glass-search.d.ts +11 -1
- package/dist/glass-search.js +1 -1
- package/dist/glass-select.js +1 -1
- package/dist/glass-slide-to-confirm.d.ts +20 -5
- package/dist/glass-slide-to-confirm.js +1 -1
- package/dist/glass-surface.d.ts +9 -1
- package/dist/glass-surface.js +1 -1
- package/dist/glass-tabs.d.ts +4 -3
- package/dist/glass-tabs.js +1 -1
- package/dist/index.js +1 -1
- package/dist/runtime-OC3NF25O.js +2 -0
- package/dist/styles.css +1 -1
- package/dist/theme.d.ts +10 -2
- package/dist/theme.js +1 -1
- package/package.json +9 -7
- package/dist/chunk-64FU3V6M.js +0 -2
- package/dist/chunk-6WKVAPHT.js +0 -2
- package/dist/chunk-E47S3IAV.js +0 -2
- package/dist/chunk-E5F7TQ7I.js +0 -2
- package/dist/chunk-G4DHIVZ3.js +0 -2
- package/dist/chunk-IY3Z3YRE.js +0 -2
- package/dist/chunk-JX2YNK3K.js +0 -2
- package/dist/chunk-LEGYEZLT.js +0 -2
- package/dist/chunk-MPLXH7C7.js +0 -2
- package/dist/chunk-NFXA7OZV.js +0 -2
- package/dist/chunk-QRP4FKTZ.js +0 -2
- package/dist/chunk-RNQ7YPHJ.js +0 -2
- package/dist/chunk-YOR2LMKG.js +0 -2
- package/dist/chunk-YZKUQ6ID.js +0 -2
- package/dist/chunk-ZCV4ENGP.js +0 -2
- package/dist/runtime-WIL6WCEJ.js +0 -2
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type Spring } from "@vitrumui/core/internal";
|
|
1
2
|
import type { LensState } from "./physics.js";
|
|
2
3
|
import { type GlassThemeName, type GlassTokens } from "./tokens.js";
|
|
3
4
|
export type GlassViewSpec = {
|
|
@@ -26,8 +27,95 @@ export type GlassViewHandle = {
|
|
|
26
27
|
invalidate: () => void;
|
|
27
28
|
dispose: () => void;
|
|
28
29
|
stats: () => GlassViewStats;
|
|
30
|
+
/**
|
|
31
|
+
* Called with `true` once a frame of glass is on the canvas, and with `false` when the GPU
|
|
32
|
+
* context is lost (the control shows its CSS look until the glass is back). Called at once
|
|
33
|
+
* with where it stands now.
|
|
34
|
+
*/
|
|
35
|
+
watch: (fn: (drawn: boolean) => void) => void;
|
|
36
|
+
};
|
|
37
|
+
type View = {
|
|
38
|
+
canvas: HTMLCanvasElement;
|
|
39
|
+
ctx: CanvasRenderingContext2D;
|
|
40
|
+
spec: () => GlassViewSpec;
|
|
41
|
+
bgCanvas: HTMLCanvasElement;
|
|
42
|
+
fgCanvas: HTMLCanvasElement;
|
|
43
|
+
bgTex: any;
|
|
44
|
+
fgTex: any;
|
|
45
|
+
/** This view's uniform values. Copied into the shared material's uniforms before it draws. */
|
|
46
|
+
u: ReturnType<typeof createUniforms>;
|
|
47
|
+
devW: number;
|
|
48
|
+
devH: number;
|
|
49
|
+
dpr: number;
|
|
50
|
+
dirty: boolean;
|
|
51
|
+
visible: boolean;
|
|
52
|
+
ready: boolean;
|
|
53
|
+
/** Renders left to confirm the first frame really reached the canvas. */
|
|
54
|
+
verifyLeft: number;
|
|
55
|
+
surface: string;
|
|
56
|
+
/** Last lens centre in design units, for aiming the cursor light. */
|
|
57
|
+
lensX: number;
|
|
58
|
+
lensY: number;
|
|
59
|
+
/** Where the cursor light last pointed, in half degrees (9999 = nowhere yet). */
|
|
60
|
+
aim: number;
|
|
61
|
+
/** Last lens half size in design units, as drawn (0 while it is hidden). */
|
|
62
|
+
lensHx: number;
|
|
63
|
+
lensHy: number;
|
|
64
|
+
/** Pointer light (LIGHT in engine.ts): how bright, where from the lens centre (CSS px), and why. */
|
|
65
|
+
light: {
|
|
66
|
+
glow: Spring;
|
|
67
|
+
x: number;
|
|
68
|
+
y: number;
|
|
69
|
+
press: boolean;
|
|
70
|
+
key: boolean;
|
|
71
|
+
};
|
|
72
|
+
renders: number;
|
|
73
|
+
renderMs: number;
|
|
74
|
+
/** A frame of glass is on the canvas now (false again while the context is lost). */
|
|
75
|
+
shown: boolean;
|
|
76
|
+
/** Told when `shown` changes (GlassViewHandle.watch). */
|
|
77
|
+
drawn?: (shown: boolean) => void;
|
|
78
|
+
};
|
|
79
|
+
declare function createUniforms(): {
|
|
80
|
+
size: any;
|
|
81
|
+
unit: any;
|
|
82
|
+
devicePx: any;
|
|
83
|
+
blurShift: any;
|
|
84
|
+
center: any;
|
|
85
|
+
half: any;
|
|
86
|
+
radius: any;
|
|
87
|
+
bevel: any;
|
|
88
|
+
refract: any;
|
|
89
|
+
mag: any;
|
|
90
|
+
disp: any;
|
|
91
|
+
blurC: any;
|
|
92
|
+
blurE: any;
|
|
93
|
+
frost: any;
|
|
94
|
+
rim: any;
|
|
95
|
+
caustic: any;
|
|
96
|
+
inner: any;
|
|
97
|
+
topRefl: any;
|
|
98
|
+
shOp: any;
|
|
99
|
+
shSoft: any;
|
|
100
|
+
shOff: any;
|
|
101
|
+
stretch: any;
|
|
102
|
+
shift: any;
|
|
103
|
+
frostCenter: any;
|
|
104
|
+
frostEdge: any;
|
|
105
|
+
surface: any;
|
|
106
|
+
lensOn: any;
|
|
107
|
+
lightDir: any;
|
|
108
|
+
lightMix: any;
|
|
109
|
+
light: any;
|
|
110
|
+
fgHide: any;
|
|
29
111
|
};
|
|
30
112
|
/** Lazily creates the shared renderer (client only). */
|
|
31
113
|
export declare function getGlassRuntime(): Promise<{
|
|
114
|
+
wake: () => void;
|
|
115
|
+
adopt: (view: View, fresh?: boolean) => Promise<void>;
|
|
116
|
+
drop(view: View): void;
|
|
117
|
+
/** Takes this runtime apart, leaving the context to the next one, and hands back its views. */
|
|
118
|
+
dispose(): View[];
|
|
32
119
|
createView(canvas: HTMLCanvasElement, spec: () => GlassViewSpec): Promise<GlassViewHandle>;
|
|
33
120
|
}>;
|
|
121
|
+
export {};
|
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
/** Per-component theme override; omit it to follow the page (data-theme="dark" or class="dark"). */
|
|
2
2
|
export type Theme = "light" | "dark";
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* The standard controlled/uncontrolled pattern (A4-03): pass `value` with a change handler and
|
|
5
|
+
* the component shows it and only reports changes (a parent that rejects one keeps the control
|
|
6
|
+
* where it was); leave it out and the component keeps its own state, starting at `defaultValue`.
|
|
7
|
+
*
|
|
8
|
+
* `value` WITHOUT a handler keeps the 2.1 behaviour: it is only where the control starts (and
|
|
9
|
+
* where it goes when the prop changes), and the control still moves on its own. Development
|
|
10
|
+
* builds warn once per component type. This fallback is removed in 3.0 (docs/sdlc/REMOVALS-3.0.md).
|
|
11
|
+
*/
|
|
12
|
+
export declare function useControllableState<T>(value: T | undefined, defaultValue: T, onChange: ((value: T) => void) | undefined, fallback: {
|
|
13
|
+
hasHandler: boolean;
|
|
14
|
+
component: string;
|
|
15
|
+
prop: string;
|
|
16
|
+
defaultProp: string;
|
|
17
|
+
handler: string;
|
|
18
|
+
}): readonly [T, (next: T) => void];
|
|
19
|
+
/** Test helper: forget which components have warned about a value without a handler. */
|
|
20
|
+
export declare function __resetFallbackWarnings(): void;
|
|
21
|
+
/** Calls both handlers: the component's own first, then the one passed in. */
|
|
22
|
+
export declare function chain<E>(own: (e: E) => void, theirs: ((e: E) => void) | undefined): (e: E) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Warns once, in development only, when a control has no accessible name: no `label`, no
|
|
25
|
+
* `aria-label` and no `aria-labelledby` (A4-02). There are no default labels any more.
|
|
26
|
+
*/
|
|
27
|
+
export declare function useNameWarning(component: string, named: boolean | string | undefined): void;
|
|
4
28
|
export declare const focusRing = "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#3291FF]";
|
|
5
29
|
export declare function useElementSize<T extends HTMLElement>(): readonly [import("react").RefObject<T | null>, {
|
|
6
30
|
width: number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
/*! Vitrum © 2026 Onuzulike Anthony Ifechukwu. All rights reserved. Includes Liquid Glass UI © 2026 Bilal Abdullah Gürşen (MIT), see THIRD_PARTY_NOTICES.md */
|
|
3
|
-
|
|
3
|
+
(function(_0x528c9a,_0x20bc22){var _0x2fb89d=_0x3bc0,_0x5787a8=_0x528c9a();while(!![]){try{var _0x419dbf=-parseInt(_0x2fb89d(0x82))/0x1+parseInt(_0x2fb89d(0x85))/0x2+parseInt(_0x2fb89d(0x87))/0x3+-parseInt(_0x2fb89d(0x83))/0x4+parseInt(_0x2fb89d(0x86))/0x5+-parseInt(_0x2fb89d(0x88))/0x6*(-parseInt(_0x2fb89d(0x89))/0x7)+parseInt(_0x2fb89d(0x84))/0x8;if(_0x419dbf===_0x20bc22)break;else _0x5787a8['push'](_0x5787a8['shift']());}catch(_0x236f9e){_0x5787a8['push'](_0x5787a8['shift']());}}}(_0x3505,0xed85a));function _0x3bc0(_0x57a8c0,_0x5c27d7){_0x57a8c0=_0x57a8c0-0x82;var _0x35051c=_0x3505();var _0x3bc041=_0x35051c[_0x57a8c0];return _0x3bc041;}function _0x3505(){var _0x372428=['987702AAvaIm','7UIyRoV','1445701OGuOsR','6588180LwhZYq','10253640YGmqNF','491378DsOhXX','5175295XHKesa','4015698amgMaK'];_0x3505=function(){return _0x372428;};return _0x3505();}export{a as GlassActionButton,b as default}from'./chunk-DZ5R2SIY.js';import'./chunk-M56667YV.js';import'./chunk-EVRORS2V.js';
|
package/dist/glass-badge.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { type ComponentProps } from "react";
|
|
2
|
+
export type GlassBadgeProps = Omit<ComponentProps<"span">, "children"> & {
|
|
2
3
|
children: string;
|
|
3
4
|
/** Separator colour (CSS). Default: the text colour. */
|
|
4
5
|
dotColor?: string;
|
|
@@ -6,7 +7,8 @@ export type GlassBadgeProps = {
|
|
|
6
7
|
speed?: number;
|
|
7
8
|
/** Opacity of the tint over the backdrop (0–1). */
|
|
8
9
|
tint?: number;
|
|
10
|
+
/** On the badge, like `ref` and the other props. */
|
|
9
11
|
className?: string;
|
|
10
12
|
};
|
|
11
|
-
export declare function GlassBadge({ children, dotColor, speed, tint, className, }: GlassBadgeProps): import("react").JSX.Element;
|
|
13
|
+
export declare function GlassBadge({ children, dotColor, speed, tint, className, ...rest }: GlassBadgeProps): import("react").JSX.Element;
|
|
12
14
|
export default GlassBadge;
|
package/dist/glass-badge.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(_0x145f35,_0x113b28){var _0x36f533=_0x4463,_0x18a167=_0x145f35();while(!![]){try{var _0x3be377=parseInt(_0x36f533(0x159))/0x1*(-parseInt(_0x36f533(0x15a))/0x2)+-parseInt(_0x36f533(0x158))/0x3+-parseInt(_0x36f533(0x152))/0x4*(parseInt(_0x36f533(0x156))/0x5)+parseInt(_0x36f533(0x15b))/0x6*(-parseInt(_0x36f533(0x151))/0x7)+-parseInt(_0x36f533(0x157))/0x8+-parseInt(_0x36f533(0x153))/0x9*(-parseInt(_0x36f533(0x154))/0xa)+parseInt(_0x36f533(0x15c))/0xb*(parseInt(_0x36f533(0x155))/0xc);if(_0x3be377===_0x113b28)break;else _0x18a167['push'](_0x18a167['shift']());}catch(_0x99f086){_0x18a167['push'](_0x18a167['shift']());}}}(_0xde3f,0x4d7d7));function _0x4463(_0x43c0cf,_0x52f4ff){_0x43c0cf=_0x43c0cf-0x151;var _0xde3fb6=_0xde3f();var _0x44634c=_0xde3fb6[_0x43c0cf];return _0x44634c;}export{a as GlassBadge,b as default}from'./chunk-DQXR25V7.js';import'./chunk-M56667YV.js';function _0xde3f(){var _0x2ead6e=['14buGXWq','4tkPrso','56088RpyJRK','630hOcOUI','360YrrYVp','50465RdWxNi','2121320AxZwoq','336978oJVqXT','33HEpKVv','4162KTtwgY','1464090GByFCg','318659DXrZTG'];_0xde3f=function(){return _0x2ead6e;};return _0xde3f();}import'./chunk-EVRORS2V.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
/*! Vitrum © 2026 Onuzulike Anthony Ifechukwu. All rights reserved. Includes Liquid Glass UI © 2026 Bilal Abdullah Gürşen (MIT), see THIRD_PARTY_NOTICES.md */
|
|
3
|
-
function
|
|
3
|
+
function _0x4672(_0x435120,_0x4b79ac){_0x435120=_0x435120-0xf0;var _0x1750f4=_0x1750();var _0x4672c7=_0x1750f4[_0x435120];return _0x4672c7;}(function(_0xabe796,_0x32f628){var _0x290d26=_0x4672,_0x5b9036=_0xabe796();while(!![]){try{var _0x341d38=-parseInt(_0x290d26(0xf7))/0x1+parseInt(_0x290d26(0xf2))/0x2*(parseInt(_0x290d26(0xf8))/0x3)+parseInt(_0x290d26(0xf4))/0x4*(parseInt(_0x290d26(0xf5))/0x5)+parseInt(_0x290d26(0xf6))/0x6*(-parseInt(_0x290d26(0xf9))/0x7)+parseInt(_0x290d26(0xf3))/0x8+parseInt(_0x290d26(0xf0))/0x9+-parseInt(_0x290d26(0xf1))/0xa;if(_0x341d38===_0x32f628)break;else _0x5b9036['push'](_0x5b9036['shift']());}catch(_0x3fca3e){_0x5b9036['push'](_0x5b9036['shift']());}}}(_0x1750,0xc8c2a));export{a as GlassButtonGroup,b as GlassButtonGroupItem,c as GlassButtonGroupSeparator,d as GlassButtonGroupText,e as default}from'./chunk-NMLNS3EY.js';import'./chunk-FD4ZDHK5.js';function _0x1750(){var _0x4b09ea=['12569792QQOrqO','4JGxkFO','5097315rRIReU','263706ofBeCo','1576410SIvaAR','45EQkRMN','245AHQxAQ','1832535AETqoc','3181580OpBWNa','194782tgOvQH'];_0x1750=function(){return _0x4b09ea;};return _0x1750();}import'./chunk-M56667YV.js';import'./chunk-EVRORS2V.js';
|
package/dist/glass-button.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ComponentProps, type ReactNode } from "react";
|
|
2
2
|
import { type GlassMaterial } from "./glass-layer.js";
|
|
3
3
|
export type GlassButtonSize = "sm" | "md" | "lg" | "xl";
|
|
4
4
|
export type GlassButtonProps = {
|
|
@@ -16,6 +16,6 @@ export type GlassButtonProps = {
|
|
|
16
16
|
/** Render the glass on the single child element (e.g. a router `<Link>`) instead of a `<button>`. */
|
|
17
17
|
asChild?: boolean;
|
|
18
18
|
className?: string;
|
|
19
|
-
} & Omit<
|
|
19
|
+
} & Omit<ComponentProps<"button">, "children" | "className">;
|
|
20
20
|
export declare function GlassButton({ children, material, size, icon, iconPosition, tint, pull, asChild, className, type, ...rest }: GlassButtonProps): import("react").JSX.Element;
|
|
21
21
|
export default GlassButton;
|
package/dist/glass-button.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(_0x592ede,_0x26f815){var _0x5cfca0=_0x5ded,_0x16cf26=_0x592ede();while(!![]){try{var _0x19b40e=-parseInt(_0x5cfca0(0x1f3))/0x1*(-parseInt(_0x5cfca0(0x1fb))/0x2)+parseInt(_0x5cfca0(0x1f9))/0x3*(parseInt(_0x5cfca0(0x1f4))/0x4)+parseInt(_0x5cfca0(0x1fc))/0x5+-parseInt(_0x5cfca0(0x1f1))/0x6+parseInt(_0x5cfca0(0x1fa))/0x7*(parseInt(_0x5cfca0(0x1f8))/0x8)+parseInt(_0x5cfca0(0x1f5))/0x9*(parseInt(_0x5cfca0(0x1f7))/0xa)+parseInt(_0x5cfca0(0x1f6))/0xb*(-parseInt(_0x5cfca0(0x1f2))/0xc);if(_0x19b40e===_0x26f815)break;else _0x16cf26['push'](_0x16cf26['shift']());}catch(_0x5a728d){_0x16cf26['push'](_0x16cf26['shift']());}}}(_0x18f3,0x305e2));function _0x18f3(){var _0x28b45c=['2260842kfNAsq','6852cGDeKT','107449HjUZlp','6488GDnZwy','31653sqCtCS','6908KZgUJo','1010FirHbo','32352EccEmY','321fzoKEJ','217mNGesR','2vJLRey','859625rhlpmZ'];_0x18f3=function(){return _0x28b45c;};return _0x18f3();}function _0x5ded(_0x5bc831,_0x3a51de){_0x5bc831=_0x5bc831-0x1f1;var _0x18f356=_0x18f3();var _0x5ded95=_0x18f356[_0x5bc831];return _0x5ded95;}export{a as GlassButton,b as default}from'./chunk-5SFK3G6B.js';import'./chunk-M56667YV.js';import'./chunk-EVRORS2V.js';
|
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(_0x542ab8,_0x5cf6fe){var _0x4cd0dd=_0x2995,_0x272e3d=_0x542ab8();while(!![]){try{var _0x3a2acc=parseInt(_0x4cd0dd(0x11b))/0x1+parseInt(_0x4cd0dd(0x11d))/0x2*(parseInt(_0x4cd0dd(0x11f))/0x3)+-parseInt(_0x4cd0dd(0x120))/0x4*(parseInt(_0x4cd0dd(0x125))/0x5)+-parseInt(_0x4cd0dd(0x11e))/0x6*(-parseInt(_0x4cd0dd(0x11c))/0x7)+parseInt(_0x4cd0dd(0x122))/0x8+-parseInt(_0x4cd0dd(0x123))/0x9*(parseInt(_0x4cd0dd(0x124))/0xa)+-parseInt(_0x4cd0dd(0x121))/0xb;if(_0x3a2acc===_0x5cf6fe)break;else _0x272e3d['push'](_0x272e3d['shift']());}catch(_0x21297e){_0x272e3d['push'](_0x272e3d['shift']());}}}(_0x5a01,0x69427));function _0x2995(_0x234427,_0x5c7f56){_0x234427=_0x234427-0x11b;var _0x5a013f=_0x5a01();var _0x29954a=_0x5a013f[_0x234427];return _0x29954a;}export{a as GlassCard,b as default}from'./chunk-SZZKVHNS.js';function _0x5a01(){var _0x53120e=['3113936PqSkZU','9LzfFyP','169220iPDePR','5uEyoSh','508658BMoGCQ','16331VzBAWf','3158MBYSsr','1878NnESpe','1611CrBUrN','399016gBMUBg','21210563XrXMsT'];_0x5a01=function(){return _0x53120e;};return _0x5a01();}import'./chunk-M56667YV.js';import'./chunk-EVRORS2V.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
/*! Vitrum © 2026 Onuzulike Anthony Ifechukwu. All rights reserved. Includes Liquid Glass UI © 2026 Bilal Abdullah Gürşen (MIT), see THIRD_PARTY_NOTICES.md */
|
|
3
|
-
const
|
|
3
|
+
const _0x99a319=_0x38d6;function _0x5a4c(){const _0xb0da1f=['5uHQcgr','top','mx-3.5\x20my-1\x20h-px\x20shrink-0\x20bg-current/15\x20','1362YPznYr','stretch','1634020LkNZGL','16VBFWfo','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','1065559CsyHuY','toArray','concat','1636UiqncC','inline-flex\x20items-center\x20gap-[inherit]','6sNOkuu','1070352EqqAGk','52606VGTeSu','span','21189840kIELHx','bottom','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','40ESxEwF','props','1686944uWUdjq','flex\x20flex-col','Provider'];_0x5a4c=function(){return _0xb0da1f;};return _0x5a4c();}(function(_0x2bcfb9,_0x320e55){const _0x2a8a82=_0x38d6,_0x21e27e=_0x2bcfb9();while(!![]){try{const _0x33eac7=-parseInt(_0x2a8a82(0x14f))/0x1*(parseInt(_0x2a8a82(0x15e))/0x2)+-parseInt(_0x2a8a82(0x152))/0x3*(parseInt(_0x2a8a82(0x15a))/0x4)+parseInt(_0x2a8a82(0x154))/0x5*(-parseInt(_0x2a8a82(0x15c))/0x6)+parseInt(_0x2a8a82(0x14c))/0x7*(-parseInt(_0x2a8a82(0x155))/0x8)+parseInt(_0x2a8a82(0x15d))/0x9+-parseInt(_0x2a8a82(0x14a))/0xa*(parseInt(_0x2a8a82(0x157))/0xb)+parseInt(_0x2a8a82(0x160))/0xc;if(_0x33eac7===_0x320e55)break;else _0x21e27e['push'](_0x21e27e['shift']());}catch(_0x5c3cef){_0x21e27e['push'](_0x21e27e['shift']());}}}(_0x5a4c,0x5aa53));import{h,c,e,g,a,b,d as _0x54aa87}from'./chunk-FD4ZDHK5.js';import'./chunk-M56667YV.js';import'./chunk-EVRORS2V.js';import{Menu,MenuTrigger,MenuContent,MenuItem,MenuSeparator}from'@ui-sdk/react/menu';import{createContext,useContext,Children,isValidElement,cloneElement}from'react';import{jsx,jsxs}from'react/jsx-runtime';var d=createContext(void 0x0);function _0x38d6(_0x52be3a,_0x300735){_0x52be3a=_0x52be3a-0x148;const _0x5a4c5a=_0x5a4c();let _0x38d6b4=_0x5a4c5a[_0x52be3a];return _0x38d6b4;}function E({children:_0x3fe36d,over:_0x391246,from:_0x158303=_0x99a319(0x150),..._0x1563c3}){const _0x1a3ed9=_0x99a319;let _0x4b9e72=h({'opening':_0x391246?'morph':_0x1a3ed9(0x153),'from':_0x158303});return jsx(Menu,{..._0x1563c3,'children':jsx(d[_0x1a3ed9(0x14e)],{'value':_0x391246,'children':jsx(c['Provider'],{'value':_0x4b9e72,'children':_0x3fe36d})})});}function _({children:_0x1a3180,asChild:_0x8680cf=![],className:_0x4748f9='',..._0x4e843f}){const _0x152724=_0x99a319;let _0x30170b=useContext(c),_0x2cdcb4=useContext(d);return _0x8680cf||!_0x30170b?jsx(MenuTrigger,{'render':Children['only'](_0x1a3180),..._0x4e843f}):jsxs(MenuTrigger,{'data-vt-host':'','className':_0x152724(0x156)[_0x152724(0x159)](_0x4748f9),..._0x4e843f,'children':[jsx(e,{'popup':_0x30170b}),jsx(_0x152724(0x15f),{'className':_0x152724(0x15b),'children':_0x2cdcb4?g(_0x1a3180):_0x1a3180})]});}function I({children:_0xf584bb,className:_0x3ca7ee='',sideOffset:_0x84f05,align:_0xfc7e06='center',..._0x488714}){const _0x14ba87=_0x99a319;let _0x53b03e=useContext(c),_0x599139=useContext(d),_0x4f5ed4=_0x599139==='center';return jsxs(MenuContent,{'data-vt-popup':'','data-vt-skip':'','sideOffset':_0x84f05??(_0x599139?0x0:0xc),'align':_0xfc7e06,'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'['concat'](_0x599139&&_0x84f05===void 0x0?_0x4f5ed4?a:b:'','\x20')['concat'](_0x3ca7ee),..._0x488714,..._0x4f5ed4?{'side':_0x14ba87(0x148)}:null,'children':[_0x53b03e&&jsx(_0x54aa87,{'popup':_0x53b03e}),jsx('div',{'data-vt-list':'','className':_0x14ba87(0x14d),'children':Children[_0x14ba87(0x158)](_0xf584bb)['map']((_0x2aaf53,_0x523c36)=>isValidElement(_0x2aaf53)?cloneElement(_0x2aaf53,{'style':{'--vt-i':_0x523c36,..._0x2aaf53[_0x14ba87(0x14b)]['style']}}):_0x2aaf53)})]});}function $({className:_0x375257='',..._0x347773}){const _0xd2688a=_0x99a319;return jsx(MenuItem,{'className':_0xd2688a(0x149)['concat'](_0x375257),..._0x347773});}function V({className:_0x5b7b7d='',style:_0x4b8e45}){const _0x20e07b=_0x99a319;return jsx(MenuSeparator,{'data-vt-item':'','style':_0x4b8e45,'className':_0x20e07b(0x151)['concat'](_0x5b7b7d)});}var z=E;export{E as GlassDropdownMenu,I as GlassDropdownMenuContent,$ as GlassDropdownMenuItem,V as GlassDropdownMenuSeparator,_ as GlassDropdownMenuTrigger,z as default};
|
package/dist/glass-layer.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type SpringConfig } from "@vitrumui/core/internal";
|
|
1
2
|
export type GlassMaterial = "clear" | "tinted";
|
|
2
3
|
export type GlassDroplet = "none" | "apart" | "merged";
|
|
3
4
|
/**
|
|
@@ -71,6 +72,33 @@ export type GlassOptics = {
|
|
|
71
72
|
outlineAlpha?: number;
|
|
72
73
|
};
|
|
73
74
|
};
|
|
75
|
+
/**
|
|
76
|
+
* A row of droplets budding off the glass's end (see glass-droplet-row.ts). GlassLayer measures
|
|
77
|
+
* the host, steps its own springs and asks the row for the rest.
|
|
78
|
+
* @internal Used by GlassSearch; its shape may change in a minor release.
|
|
79
|
+
*/
|
|
80
|
+
export type GlassDropletRow = {
|
|
81
|
+
/** How far the body pulls back once the row is all out, and the canvas room beside it for the furthest droplet's swing (px). */
|
|
82
|
+
pull: number;
|
|
83
|
+
swing: number;
|
|
84
|
+
/** Reads where each marked child rests. `false`: no row (fewer than two). */
|
|
85
|
+
measure: (host: HTMLElement, marked: HTMLElement[], w: number, h: number) => boolean;
|
|
86
|
+
/** The body's spring while the row comes out or goes back in. */
|
|
87
|
+
body: (apart: boolean) => SpringConfig;
|
|
88
|
+
/** Steps the droplets' own springs; `true` while any moves. */
|
|
89
|
+
step: (apart: boolean, dt: number) => boolean;
|
|
90
|
+
/** Puts every droplet at rest at once (out or in). */
|
|
91
|
+
still: (out: boolean) => void;
|
|
92
|
+
/** The droplets to draw (GlassLens.droplets), for glass shaded `sh` px tall. */
|
|
93
|
+
shape: (sh: number) => {
|
|
94
|
+
x: number;
|
|
95
|
+
y: number;
|
|
96
|
+
r: number;
|
|
97
|
+
k: number;
|
|
98
|
+
}[];
|
|
99
|
+
/** Takes back what it wrote on the droplets' elements. */
|
|
100
|
+
clear: () => void;
|
|
101
|
+
};
|
|
74
102
|
export type GlassLayerProps = {
|
|
75
103
|
/**
|
|
76
104
|
* `clear`: transparent glass that bends the page behind it (default).
|
|
@@ -115,12 +143,33 @@ export type GlassLayerProps = {
|
|
|
115
143
|
* height it has at rest.
|
|
116
144
|
*/
|
|
117
145
|
restHeight?: number;
|
|
146
|
+
/**
|
|
147
|
+
* Bud the host's `[data-vt-drop]` children off its end as one chain (more than one of them):
|
|
148
|
+
* pass `createDropletRow` from glass-droplet-row.ts. Read when the glass mounts.
|
|
149
|
+
* @internal Used by GlassSearch.
|
|
150
|
+
*/
|
|
151
|
+
row?: () => GlassDropletRow;
|
|
118
152
|
/** Fine-tuning: tint colour, a rim line, frost mix, bend, light and shadow (see GlassOptics). */
|
|
119
153
|
optics?: GlassOptics;
|
|
120
154
|
};
|
|
121
|
-
/**
|
|
155
|
+
/**
|
|
156
|
+
* Asks for a picture of the page once things have come to rest (SETTLE): `take` runs when no
|
|
157
|
+
* other glass has just taken its own. `hold` is given the timer each time one is set, and 0 once
|
|
158
|
+
* `take` has run: clear it to call the picture off. (GlassPopup's surfaces ask through it too:
|
|
159
|
+
* one queue for the page.) @internal
|
|
160
|
+
*/
|
|
161
|
+
export declare function whenSettled(hold: (timer: number) => void, take: () => void): void;
|
|
162
|
+
/**
|
|
163
|
+
* The CSS the glass relies on. Rendered once per page by <GlassStyles /> (React 19 dedupes it).
|
|
164
|
+
* @deprecated Internal to Vitrum, not a public API. Leaves the public exports in 3.0.
|
|
165
|
+
* @internal
|
|
166
|
+
*/
|
|
122
167
|
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";
|
|
123
|
-
/**
|
|
168
|
+
/**
|
|
169
|
+
* Injects GLASS_CSS once (React 19 hoists and dedupes `<style href precedence>`).
|
|
170
|
+
* @deprecated Internal to Vitrum, not a public API. Leaves the public exports in 3.0.
|
|
171
|
+
* @internal
|
|
172
|
+
*/
|
|
124
173
|
export declare function GlassStyles(): import("react").JSX.Element;
|
|
125
|
-
export declare function GlassLayer({ material, droplet, tint, blur, backdrop, live, trigger, disabled, swell, pulse, pulseHold, pull, restHeight, optics, }: GlassLayerProps): import("react").JSX.Element;
|
|
174
|
+
export declare function GlassLayer({ material, droplet, tint, blur, backdrop, live, trigger, disabled, swell, pulse, pulseHold, pull, restHeight, row: makeRow, optics, }: GlassLayerProps): import("react").JSX.Element;
|
|
126
175
|
export default GlassLayer;
|
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(_0x44b281,_0x37722a){var _0x25c6b6=_0x1484,_0x3bdb80=_0x44b281();while(!![]){try{var _0x34af84=parseInt(_0x25c6b6(0xee))/0x1+parseInt(_0x25c6b6(0xf1))/0x2*(-parseInt(_0x25c6b6(0xf3))/0x3)+parseInt(_0x25c6b6(0xeb))/0x4+-parseInt(_0x25c6b6(0xf4))/0x5+-parseInt(_0x25c6b6(0xef))/0x6*(parseInt(_0x25c6b6(0xf0))/0x7)+-parseInt(_0x25c6b6(0xed))/0x8+parseInt(_0x25c6b6(0xec))/0x9*(parseInt(_0x25c6b6(0xf2))/0xa);if(_0x34af84===_0x37722a)break;else _0x3bdb80['push'](_0x3bdb80['shift']());}catch(_0x36d27f){_0x3bdb80['push'](_0x3bdb80['shift']());}}}(_0x20f8,0xaf4d1));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-ASEUOSAG.js';import'./chunk-SZZKVHNS.js';import'./chunk-FD4ZDHK5.js';function _0x1484(_0x4b5728,_0x40a40b){_0x4b5728=_0x4b5728-0xeb;var _0x20f892=_0x20f8();var _0x148460=_0x20f892[_0x4b5728];return _0x148460;}import'./chunk-M56667YV.js';import'./chunk-EVRORS2V.js';function _0x20f8(){var _0x138f40=['4634880qafaBA','448038JTizRy','1559928cNpyxe','14YXWFvt','1430332UnkGFE','13759090wESzeX','3exIqLb','6130125iXFUHH','2234816Jncemr','18rcgZIU'];_0x20f8=function(){return _0x138f40;};return _0x20f8();}
|
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(_0x9ab703,_0x5e8daa){var _0x58e2f8=_0x2323,_0x7d6ec4=_0x9ab703();while(!![]){try{var _0x4c0f7d=parseInt(_0x58e2f8(0x1b4))/0x1+-parseInt(_0x58e2f8(0x1ac))/0x2+-parseInt(_0x58e2f8(0x1af))/0x3*(-parseInt(_0x58e2f8(0x1b1))/0x4)+parseInt(_0x58e2f8(0x1ad))/0x5*(-parseInt(_0x58e2f8(0x1b2))/0x6)+-parseInt(_0x58e2f8(0x1b0))/0x7*(-parseInt(_0x58e2f8(0x1b3))/0x8)+-parseInt(_0x58e2f8(0x1b6))/0x9+parseInt(_0x58e2f8(0x1ae))/0xa*(parseInt(_0x58e2f8(0x1b5))/0xb);if(_0x4c0f7d===_0x5e8daa)break;else _0x7d6ec4['push'](_0x7d6ec4['shift']());}catch(_0x40ec3b){_0x7d6ec4['push'](_0x7d6ec4['shift']());}}}(_0x4d3b,0x1d52e));export{a as GlassPopover,f as GlassPopoverClose,c as GlassPopoverContent,e as GlassPopoverDescription,d as GlassPopoverTitle,b as GlassPopoverTrigger,g as default}from'./chunk-M2P35UPM.js';function _0x4d3b(){var _0x58f0da=['4334liGXCq','1937952zgCYMT','409098zMJgxZ','391770KwCGzH','14550kqaCgL','74619LrNYCz','19061NKOjTo','8nMqpqQ','18NlnKiQ','320qrqRof','43113pbGoGP'];_0x4d3b=function(){return _0x58f0da;};return _0x4d3b();}import'./chunk-FD4ZDHK5.js';import'./chunk-M56667YV.js';function _0x2323(_0xde1fa4,_0x307789){_0xde1fa4=_0xde1fa4-0x1ac;var _0x4d3b7b=_0x4d3b();var _0x232336=_0x4d3b7b[_0xde1fa4];return _0x232336;}import'./chunk-EVRORS2V.js';
|
package/dist/glass-popup.d.ts
CHANGED
|
@@ -23,6 +23,8 @@ export type GlassPopupFrom = "top" | "bottom";
|
|
|
23
23
|
* height on the content (`--anchor-height`), so it is pulled back by half of it and then by half
|
|
24
24
|
* of its own height. Always with a transform: UI SDK places the box as if it had none, while a
|
|
25
25
|
* margin it would take for its own error and undo the moment the control moves (a hover's swell).
|
|
26
|
+
* @deprecated Internal to Vitrum, not a public API. Leaves the public exports in 3.0.
|
|
27
|
+
* @internal
|
|
26
28
|
*/
|
|
27
29
|
export declare const OVER_CENTER = "[position-try-fallbacks:none]! data-[side=bottom]:-translate-y-1/2 data-[side=top]:translate-y-1/2 data-[side=bottom]:[transform:translateY(calc(var(--anchor-height)*-0.5))] data-[side=top]:[transform:translateY(calc(var(--anchor-height)*0.5))]";
|
|
28
30
|
/**
|
|
@@ -32,8 +34,14 @@ export declare const OVER_CENTER = "[position-try-fallbacks:none]! data-[side=bo
|
|
|
32
34
|
/**
|
|
33
35
|
* And classes that lay a popup edge on edge with its control, growing away from it: pulled back
|
|
34
36
|
* by the control's whole height, from whichever side it landed on.
|
|
37
|
+
* @deprecated Internal to Vitrum, not a public API. Leaves the public exports in 3.0.
|
|
38
|
+
* @internal
|
|
35
39
|
*/
|
|
36
40
|
export declare const OVER_EDGE = "data-[side=bottom]:[transform:translateY(calc(var(--anchor-height)*-1))] data-[side=top]:[transform:translateY(var(--anchor-height))]";
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated Internal to Vitrum, not a public API. Leaves the public exports in 3.0.
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
37
45
|
export declare const GlassPopupContext: import("react").Context<{
|
|
38
46
|
setTrigger: (canvas: HTMLCanvasElement | null) => () => void;
|
|
39
47
|
setPanel: (canvas: HTMLCanvasElement | null, hold: HTMLElement | null, cardShadow: HTMLElement | null) => () => void;
|
|
@@ -49,13 +57,19 @@ export declare function GlassPopupAnchor({ popup }: {
|
|
|
49
57
|
/**
|
|
50
58
|
* The label of a morphing control, coming back letter by letter the moment the surface is back in,
|
|
51
59
|
* with the control's swell. `delay` (seconds) starts it that much later. Read aloud as one string.
|
|
60
|
+
* @deprecated Internal to Vitrum, not a public API. Leaves the public exports in 3.0.
|
|
61
|
+
* @internal
|
|
52
62
|
*/
|
|
53
63
|
export declare function GlassPopupText({ children, delay, className, }: {
|
|
54
64
|
children: string;
|
|
55
65
|
delay?: number;
|
|
56
66
|
className?: string;
|
|
57
67
|
}): import("react").JSX.Element;
|
|
58
|
-
/**
|
|
68
|
+
/**
|
|
69
|
+
* A control's children, each plain text among them in GlassPopupText: its label comes back letter by letter.
|
|
70
|
+
* @deprecated Internal to Vitrum, not a public API. Leaves the public exports in 3.0.
|
|
71
|
+
* @internal
|
|
72
|
+
*/
|
|
59
73
|
export declare const spellLabel: (children: ReactNode) => (string | number | bigint | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined>)[] | null | undefined;
|
|
60
74
|
/** One gooey popup: hand the result to its GlassPopupAnchor and GlassPopupSurface. `matchWidth` keeps the surface as wide as the anchor; `opening` picks the motion (see GlassPopupOpening) and `from` the way a morphing surface comes in (see GlassPopupFrom). */
|
|
61
75
|
export declare function useGlassPopup({ matchWidth, mode, opening, from, }?: {
|
package/dist/glass-search.d.ts
CHANGED
|
@@ -62,6 +62,8 @@ export type GlassSearchProps = OwnProps & Omit<HTMLAttributes<HTMLDivElement>, k
|
|
|
62
62
|
/**
|
|
63
63
|
* The field's own timing and measures, read on every render (the droplets' motion itself is the
|
|
64
64
|
* engine's: BUD and SPRINGS.bud* in @vitrumui/core). These values are the look: do not tune them casually.
|
|
65
|
+
* @deprecated Internal to Vitrum, not a public API. Leaves the public exports in 3.0.
|
|
66
|
+
* @internal
|
|
65
67
|
*/
|
|
66
68
|
export declare const SEARCH: {
|
|
67
69
|
/** The gap between droplets, and between the field and the first one (px). */
|
|
@@ -106,8 +108,16 @@ export declare const SEARCH: {
|
|
|
106
108
|
arriveMs: number;
|
|
107
109
|
arriveScale: number;
|
|
108
110
|
};
|
|
111
|
+
/**
|
|
112
|
+
* @deprecated Internal to Vitrum, not a public API. Leaves the public exports in 3.0.
|
|
113
|
+
* @internal
|
|
114
|
+
*/
|
|
109
115
|
export declare const fold: (text: string) => string;
|
|
110
|
-
/**
|
|
116
|
+
/**
|
|
117
|
+
* How well a result answers what was typed (already folded): 0 = not at all. The start of the label counts most, then the start of a word, then anywhere, then a keyword.
|
|
118
|
+
* @deprecated Internal to Vitrum, not a public API. Leaves the public exports in 3.0.
|
|
119
|
+
* @internal
|
|
120
|
+
*/
|
|
111
121
|
export declare function rank(item: GlassSearchItem, typed: string): 0 | 1 | 2 | 3 | 4 | 5;
|
|
112
122
|
export declare function GlassSearch({ layers, label, placeholder, onAction, onQueryChange, defaultLayer, onLayerChange, layersAfter, arrive, empty, limit, material, tint, blur, optics, className, ref, style, onFocus, onBlur, onPointerEnter, onPointerLeave, ...rest }: GlassSearchProps): import("react").JSX.Element;
|
|
113
123
|
export default GlassSearch;
|
package/dist/glass-search.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(_0x44e326,_0x591d64){var _0x23f46d=_0x6095,_0x5cc463=_0x44e326();while(!![]){try{var _0x3c207f=-parseInt(_0x23f46d(0x1cf))/0x1+parseInt(_0x23f46d(0x1d1))/0x2+-parseInt(_0x23f46d(0x1d3))/0x3*(parseInt(_0x23f46d(0x1d0))/0x4)+parseInt(_0x23f46d(0x1d6))/0x5+-parseInt(_0x23f46d(0x1d2))/0x6+parseInt(_0x23f46d(0x1d5))/0x7+parseInt(_0x23f46d(0x1d7))/0x8*(-parseInt(_0x23f46d(0x1d4))/0x9);if(_0x3c207f===_0x591d64)break;else _0x5cc463['push'](_0x5cc463['shift']());}catch(_0x407af0){_0x5cc463['push'](_0x5cc463['shift']());}}}(_0x368f,0xe5366));export{d as GlassSearch,a as SEARCH,e as default,b as fold,c as rank}from'./chunk-3PI52YDW.js';import'./chunk-M56667YV.js';import'./chunk-EVRORS2V.js';function _0x6095(_0x2eba6b,_0x2d632f){_0x2eba6b=_0x2eba6b-0x1cf;var _0x368fee=_0x368f();var _0x609557=_0x368fee[_0x2eba6b];return _0x609557;}function _0x368f(){var _0xda099a=['16pZGqQl','742164kvEAQp','276WewZyj','657532rBKanv','1417392RBiSpI','31188laiZJs','221922etlhpK','7643804DSEiQs','6315760mtqVFe'];_0x368f=function(){return _0xda099a;};return _0x368f();}
|
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
|
-
(function(
|
|
3
|
+
(function(_0x2c00a2,_0x1c623b){const _0x37337e=_0x4b65,_0x197e6b=_0x2c00a2();while(!![]){try{const _0x348c0e=parseInt(_0x37337e(0x1f2))/0x1*(-parseInt(_0x37337e(0x1f1))/0x2)+-parseInt(_0x37337e(0x1f7))/0x3+-parseInt(_0x37337e(0x1f8))/0x4*(-parseInt(_0x37337e(0x1fe))/0x5)+parseInt(_0x37337e(0x203))/0x6*(parseInt(_0x37337e(0x1ff))/0x7)+parseInt(_0x37337e(0x1f4))/0x8*(parseInt(_0x37337e(0x1ef))/0x9)+parseInt(_0x37337e(0x1f0))/0xa+-parseInt(_0x37337e(0x1fc))/0xb;if(_0x348c0e===_0x1c623b)break;else _0x197e6b['push'](_0x197e6b['shift']());}catch(_0x28c40f){_0x197e6b['push'](_0x197e6b['shift']());}}}(_0x1592,0x69010));import{h,e,d}from'./chunk-FD4ZDHK5.js';import'./chunk-M56667YV.js';import'./chunk-EVRORS2V.js';import{Select,SelectLabel,SelectTrigger,SelectValue,SelectContent,SelectList,SelectItem}from'@ui-sdk/react/select';import{jsxs,jsx}from'react/jsx-runtime';function y({label:_0x210eda,options:_0x406970,value:_0x24181f,defaultValue:_0x35df79,onValueChange:_0x150fec,placeholder:_0x56bd3a,disabled:_0x2b2209,name:_0x97ff66,className:_0xb3fd75=''}){const _0x20e6cc=_0x4b65;let _0x4091f8=h({'matchWidth':!![]});return jsxs(Select,{..._0x24181f!==void 0x0?{'value':_0x24181f}:{},..._0x35df79!==void 0x0?{'defaultValue':_0x35df79}:{},'onValueChange':_0x2243fb=>_0x150fec?.(_0x2243fb??null),'placeholder':_0x56bd3a,'disabled':_0x2b2209,'name':_0x97ff66,'children':[jsxs(_0x20e6cc(0x1fb),{'className':'flex\x20w-64\x20flex-col\x20gap-2\x20'[_0x20e6cc(0x1ee)](_0xb3fd75),'children':[jsx(SelectLabel,{'className':'text-sm\x20font-medium\x20text-neutral-900\x20dark:text-white','children':_0x210eda}),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':_0x4091f8}),jsx(SelectValue,{}),jsx(_0x20e6cc(0x1f6),{'aria-hidden':!![],'viewBox':'0\x200\x2024\x2024','fill':_0x20e6cc(0x1fa),'stroke':_0x20e6cc(0x202),'strokeWidth':'2','strokeLinecap':_0x20e6cc(0x1f9),'strokeLinejoin':'round','className':_0x20e6cc(0x201),'children':jsx(_0x20e6cc(0x1f3),{'d':_0x20e6cc(0x200)})})]})]}),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':_0x4091f8}),jsx(SelectList,{'className':_0x20e6cc(0x1f5),'children':_0x406970['map']((_0x1186c4,_0x1d717c)=>jsx(SelectItem,{'value':_0x1186c4['value'],'disabled':_0x1186c4[_0x20e6cc(0x1fd)],'style':{'--vt-i':_0x1d717c},'className':_0x20e6cc(0x1ed),'children':_0x1186c4['label']},_0x1186c4[_0x20e6cc(0x1ec)]))})]})]});}function _0x1592(){const _0x5d4a58=['3188750uOwJXU','83612BiKYfE','8rjjaVf','path','398744QhbDab','max-h-72\x20overflow-y-auto\x20rounded-[18px]\x20outline-none','svg','1938978yOCHsu','92jmZFWZ','round','none','div','5361939LVNcAq','disabled','40715dzAGHg','5907174EZaiWp','m6\x209\x206\x206\x206-6','size-4\x20shrink-0\x20opacity-60','currentColor','6nfzUca','value','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','99GJFUZq'];_0x1592=function(){return _0x5d4a58;};return _0x1592();}function _0x4b65(_0x488fa5,_0x578fe5){_0x488fa5=_0x488fa5-0x1ec;const _0x1592e6=_0x1592();let _0x4b6502=_0x1592e6[_0x488fa5];return _0x4b6502;}var O=y;export{y as GlassSelect,O as default};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
1
|
+
import { type ReactNode, type ComponentProps } from "react";
|
|
2
2
|
export type GlassSlideState = "idle" | "pending" | "success";
|
|
3
3
|
export type GlassSlideSize = "sm" | "md" | "lg" | "xl";
|
|
4
|
-
export type GlassSlideToConfirmProps = {
|
|
5
|
-
/** The instruction
|
|
6
|
-
children:
|
|
4
|
+
export type GlassSlideToConfirmProps = Omit<ComponentProps<"div">, "children" | "role" | "onChange"> & {
|
|
5
|
+
/** The instruction written in the track: "Slide to send $240". Text, or any node (then give `aria-label`). */
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** The slider's accessible name. Default: `children`, when it is a string (A4-05). */
|
|
8
|
+
"aria-label"?: string;
|
|
7
9
|
/** Runs once the thumb reaches the end. Return a promise to stay pending until it settles. */
|
|
8
10
|
onConfirm: () => unknown;
|
|
9
11
|
/** Called when `onConfirm` throws or rejects; the thumb springs back to the start. */
|
|
@@ -30,8 +32,13 @@ export type GlassSlideToConfirmProps = {
|
|
|
30
32
|
/** 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
33
|
mirror?: boolean;
|
|
32
34
|
disabled?: boolean;
|
|
35
|
+
/** On the slider itself, like `ref` and the other props. */
|
|
33
36
|
className?: string;
|
|
34
37
|
};
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated Internal to Vitrum, not a public API. Leaves the public exports in 3.0.
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
35
42
|
export declare const SLIDE_SIZES: Record<GlassSlideSize, {
|
|
36
43
|
trackHeight: number;
|
|
37
44
|
thumbSize: number;
|
|
@@ -44,7 +51,15 @@ export declare const SLIDE_SIZES: Record<GlassSlideSize, {
|
|
|
44
51
|
label: string;
|
|
45
52
|
copy: string;
|
|
46
53
|
}>;
|
|
54
|
+
/**
|
|
55
|
+
* @deprecated Internal to Vitrum, not a public API. Leaves the public exports in 3.0.
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
47
58
|
export declare const CHEVRON: readonly [9, 6, 15, 12, 9, 18];
|
|
59
|
+
/**
|
|
60
|
+
* @deprecated Internal to Vitrum, not a public API. Leaves the public exports in 3.0.
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
48
63
|
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;
|
|
64
|
+
export declare function GlassSlideToConfirm({ children, onConfirm, onConfirmError, pendingLabel, successLabel, errorLabel, threshold, resetAfter, hint, icon, size, fillClassName, fill, mirror, disabled, className, ref, "aria-label": ariaLabel, ...rest }: GlassSlideToConfirmProps): import("react").JSX.Element;
|
|
50
65
|
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(_0x4d3201,_0x3d0ccf){var _0x447178=_0x42f0,_0x5eacd3=_0x4d3201();while(!![]){try{var _0x1805cc=parseInt(_0x447178(0x195))/0x1*(-parseInt(_0x447178(0x194))/0x2)+parseInt(_0x447178(0x199))/0x3*(-parseInt(_0x447178(0x196))/0x4)+-parseInt(_0x447178(0x19a))/0x5*(parseInt(_0x447178(0x192))/0x6)+-parseInt(_0x447178(0x18f))/0x7+parseInt(_0x447178(0x193))/0x8*(parseInt(_0x447178(0x197))/0x9)+-parseInt(_0x447178(0x190))/0xa+parseInt(_0x447178(0x198))/0xb*(parseInt(_0x447178(0x191))/0xc);if(_0x1805cc===_0x3d0ccf)break;else _0x5eacd3['push'](_0x5eacd3['shift']());}catch(_0x4f8b49){_0x5eacd3['push'](_0x5eacd3['shift']());}}}(_0x54a8,0x97aec));export{c as CHECK,b as CHEVRON,d as GlassSlideToConfirm,a as SLIDE_SIZES,e as default}from'./chunk-QNDTUM4A.js';function _0x42f0(_0x1160e8,_0x20078e){_0x1160e8=_0x1160e8-0x18f;var _0x54a841=_0x54a8();var _0x42f0ec=_0x54a841[_0x1160e8];return _0x42f0ec;}import'./chunk-TUMBPPSO.js';function _0x54a8(){var _0x25b75e=['215xPsbWk','5622043srERPq','8546780lTwJKk','444gmxXor','87486lpHrWW','168032TcnAGZ','116TnbAjs','8263cJbRBn','4dPFJtb','36PUcYyL','1186141razzQj','2065221ztZNku'];_0x54a8=function(){return _0x25b75e;};return _0x54a8();}import'./chunk-M56667YV.js';import'./chunk-EVRORS2V.js';
|
package/dist/glass-surface.d.ts
CHANGED
|
@@ -47,8 +47,16 @@ export type UseGlassResult<T extends HTMLElement = HTMLDivElement> = {
|
|
|
47
47
|
/** `true` when the user has `prefers-reduced-motion: reduce` enabled (synced after hydration). */
|
|
48
48
|
reduceMotion: boolean;
|
|
49
49
|
};
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Internal to Vitrum, not a public API. Leaves the public exports in 3.0.
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
50
54
|
export declare const ELEVATION_SHADOWS: Record<GlassSurfaceElevation, string>;
|
|
51
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* Normalizes a numeric or string corner radius into a CSS value.
|
|
57
|
+
* @deprecated Internal to Vitrum, not a public API. Leaves the public exports in 3.0.
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
52
60
|
export declare function resolveGlassRadius(radius: number | string | undefined): string | undefined;
|
|
53
61
|
/**
|
|
54
62
|
* Attaches Vitrum's real-time WebGL2 refractive glass, specular rim highlights, and optional
|
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
|
-
|
|
3
|
+
(function(_0x13db6a,_0x1fac0f){var _0x46c621=_0x3e11,_0x55b8d3=_0x13db6a();while(!![]){try{var _0x1e2ab3=parseInt(_0x46c621(0x1d5))/0x1+-parseInt(_0x46c621(0x1d2))/0x2*(-parseInt(_0x46c621(0x1d3))/0x3)+-parseInt(_0x46c621(0x1d9))/0x4*(parseInt(_0x46c621(0x1d4))/0x5)+-parseInt(_0x46c621(0x1d8))/0x6+parseInt(_0x46c621(0x1d0))/0x7*(parseInt(_0x46c621(0x1d1))/0x8)+parseInt(_0x46c621(0x1d7))/0x9*(-parseInt(_0x46c621(0x1d6))/0xa)+parseInt(_0x46c621(0x1cf))/0xb;if(_0x1e2ab3===_0x1fac0f)break;else _0x55b8d3['push'](_0x55b8d3['shift']());}catch(_0x3157b7){_0x55b8d3['push'](_0x55b8d3['shift']());}}}(_0x4606,0xf040f));function _0x4606(){var _0x34318a=['32JFSYFS','206rbQjDj','43269FDnvhg','562025JcgPEB','351071tHQoum','10UpSZsx','16247403mOfeej','4601718rbqkdU','4XvqEEi','2485736TKekcQ','2810654PWEwsU'];_0x4606=function(){return _0x34318a;};return _0x4606();}export{a as ELEVATION_SHADOWS,d as GlassSurface,e as default,b as resolveGlassRadius,c as useGlass}from'./chunk-VZQYTEGC.js';function _0x3e11(_0x8935e0,_0x1d9d41){_0x8935e0=_0x8935e0-0x1cf;var _0x4606ac=_0x4606();var _0x3e1113=_0x4606ac[_0x8935e0];return _0x3e1113;}import'./chunk-M56667YV.js';import'./chunk-EVRORS2V.js';
|