@waveso/ui 0.15.0 → 0.15.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/README.md +12 -10
- package/dist/accordion.d.ts +4 -20
- package/dist/action-bar.d.ts +1 -10
- package/dist/action-bar.js +2 -1
- package/dist/alert-dialog.d.ts +12 -52
- package/dist/alert.d.ts +5 -21
- package/dist/animate.d.ts +5 -48
- package/dist/animate.js +6 -4
- package/dist/aspect-ratio.d.ts +3 -8
- package/dist/autocomplete.d.ts +21 -88
- package/dist/avatar.d.ts +6 -27
- package/dist/badge.d.ts +3 -11
- package/dist/breadcrumb.d.ts +7 -31
- package/dist/button-group.d.ts +4 -19
- package/dist/button.d.ts +4 -12
- package/dist/card.d.ts +7 -31
- package/dist/checkbox.d.ts +1 -6
- package/dist/collapsible.d.ts +3 -12
- package/dist/combobox.d.ts +18 -81
- package/dist/context-menu.d.ts +15 -67
- package/dist/count.d.ts +1 -15
- package/dist/count.js +3 -2
- package/dist/dialog.d.ts +10 -41
- package/dist/direction.d.ts +0 -1
- package/dist/drawer.d.ts +11 -44
- package/dist/encrypted-text.d.ts +1 -14
- package/dist/encrypted-text.js +2 -1
- package/dist/field.d.ts +7 -28
- package/dist/film-grain-shader.d.ts +3 -4
- package/dist/film-grain-webgl.d.ts +2 -9
- package/dist/film-grain-webgl.js +4 -1
- package/dist/film-grain.d.ts +1 -11
- package/dist/form.d.ts +11 -30
- package/dist/gradient-reveal-text.d.ts +1 -14
- package/dist/hooks/use-mobile.d.ts +2 -3
- package/dist/infinite-scroll.d.ts +1 -16
- package/dist/input-group.d.ts +11 -37
- package/dist/input-otp.d.ts +4 -20
- package/dist/input.d.ts +3 -11
- package/dist/item.d.ts +14 -51
- package/dist/kbd.d.ts +2 -10
- package/dist/label.d.ts +1 -6
- package/dist/lib/focus.d.ts +3 -5
- package/dist/lib/internal-icons.d.ts +19 -22
- package/dist/lib/utils.d.ts +3 -5
- package/dist/lib/utils.js +2 -1
- package/dist/masonry.d.ts +2 -16
- package/dist/masonry.js +1 -1
- package/dist/menu.d.ts +15 -64
- package/dist/menubar.d.ts +16 -55
- package/dist/pagination.d.ts +9 -33
- package/dist/popover.d.ts +9 -43
- package/dist/preview-card.d.ts +5 -25
- package/dist/progress.d.ts +5 -24
- package/dist/radio-group.d.ts +2 -9
- package/dist/radio.d.ts +2 -10
- package/dist/scroll-area.d.ts +2 -12
- package/dist/select.d.ts +15 -64
- package/dist/separator.d.ts +1 -7
- package/dist/sidebar.d.ts +29 -126
- package/dist/sidebar.js +2 -2
- package/dist/skeleton.d.ts +1 -6
- package/dist/slider.d.ts +1 -14
- package/dist/slider.js +2 -2
- package/dist/spinner.d.ts +1 -6
- package/dist/switch.d.ts +2 -9
- package/dist/table.d.ts +8 -34
- package/dist/tabs.d.ts +5 -22
- package/dist/textarea.d.ts +3 -12
- package/dist/toast.d.ts +13 -39
- package/dist/toggle-group.d.ts +3 -19
- package/dist/toggle-group.js +13 -7
- package/dist/toggle.d.ts +3 -11
- package/dist/tooltip.d.ts +4 -24
- package/dist/typewriter.d.ts +1 -14
- package/package.json +52 -51
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region src/film-grain-shader.d.ts
|
|
2
|
-
declare const vertexShader = "\nattribute vec2 position;\nvarying vec2 vUv;\n\nvoid main() {\n vUv = position * 0.5 + 0.5;\n gl_Position = vec4(position, 0.0, 1.0);\n}\n";
|
|
3
|
-
declare const fragmentShader = "\nprecision highp float;\n\nuniform float uTime;\nuniform vec2 uResolution;\nuniform float uDensity;\nuniform float uOpacity;\nuniform float uFps;\nuniform vec3 uColor;\n\nvarying vec2 vUv;\n\n// Stable hash\nfloat hash(vec2 p, float seed) {\n return fract(sin(dot(p + seed, vec2(127.1, 311.7))) * 43758.5453123);\n}\n\n// Film response curve (soft toe + shoulder rolloff)\nfloat filmCurve(float x) {\n return smoothstep(0.0, 0.2, x) * (1.0 - smoothstep(0.8, 1.0, x));\n}\n\nvoid main() {\n vec2 uv = gl_FragCoord.xy;\n vec2 p = floor(uv);\n\n // Temporal coherence: blend between current and next frame seed\n float frame = floor(uTime * uFps);\n float t = fract(uTime * uFps);\n float seed = frame * 0.1731;\n\n // Multi-scale grain with inter-frame blending on fine layer\n float fineA = hash(p, seed);\n float fineB = hash(p, seed + 0.1731);\n float fine = mix(fineA, fineB, t);\n\n float medium = hash(floor(uv * 0.5), seed + 3.1);\n float coarse = hash(floor(uv * 0.25), seed + 7.93);\n\n float grain = fine * 0.65 + medium * 0.25 + coarse * 0.10;\n\n // Emulsion clumping (organic structure)\n float cluster = hash(floor(uv * 0.18), seed + 9.2);\n grain *= mix(0.75, 1.35, cluster);\n\n // Density threshold\n grain = smoothstep(1.0 - uDensity, 1.0, grain);\n\n // Film response curve (replaces raw pow gamma)\n grain = filmCurve(grain);\n\n // Micro-blur: sample neighbors for optical diffusion\n float n1 = hash(p + vec2(1.0, 0.0), seed);\n float n2 = hash(p - vec2(1.0, 0.0), seed);\n float n3 = hash(p + vec2(0.0, 1.0), seed);\n float n4 = hash(p - vec2(0.0, 1.0), seed);\n float neighbors = (n1 + n2 + n3 + n4) * 0.25;\n grain = mix(grain, neighbors, 0.15);\n\n // Chromatic aberration (reuse neighbor hashes)\n float rShift = n1 * 0.015;\n float bShift = n2 * 0.015;\n\n vec3 color = uColor * vec3(\n grain + rShift,\n grain,\n grain + bShift\n );\n\n color = clamp(color, 0.0, 1.0);\n\n gl_FragColor = vec4(color, grain * uOpacity);\n}\n";
|
|
4
|
-
//#endregion
|
|
5
|
-
export { fragmentShader, vertexShader };
|
|
2
|
+
export declare const vertexShader = "\nattribute vec2 position;\nvarying vec2 vUv;\n\nvoid main() {\n vUv = position * 0.5 + 0.5;\n gl_Position = vec4(position, 0.0, 1.0);\n}\n";
|
|
3
|
+
export declare const fragmentShader = "\nprecision highp float;\n\nuniform float uTime;\nuniform vec2 uResolution;\nuniform float uDensity;\nuniform float uOpacity;\nuniform float uFps;\nuniform vec3 uColor;\n\nvarying vec2 vUv;\n\n// Stable hash\nfloat hash(vec2 p, float seed) {\n return fract(sin(dot(p + seed, vec2(127.1, 311.7))) * 43758.5453123);\n}\n\n// Film response curve (soft toe + shoulder rolloff)\nfloat filmCurve(float x) {\n return smoothstep(0.0, 0.2, x) * (1.0 - smoothstep(0.8, 1.0, x));\n}\n\nvoid main() {\n vec2 uv = gl_FragCoord.xy;\n vec2 p = floor(uv);\n\n // Temporal coherence: blend between current and next frame seed\n float frame = floor(uTime * uFps);\n float t = fract(uTime * uFps);\n float seed = frame * 0.1731;\n\n // Multi-scale grain with inter-frame blending on fine layer\n float fineA = hash(p, seed);\n float fineB = hash(p, seed + 0.1731);\n float fine = mix(fineA, fineB, t);\n\n float medium = hash(floor(uv * 0.5), seed + 3.1);\n float coarse = hash(floor(uv * 0.25), seed + 7.93);\n\n float grain = fine * 0.65 + medium * 0.25 + coarse * 0.10;\n\n // Emulsion clumping (organic structure)\n float cluster = hash(floor(uv * 0.18), seed + 9.2);\n grain *= mix(0.75, 1.35, cluster);\n\n // Density threshold\n grain = smoothstep(1.0 - uDensity, 1.0, grain);\n\n // Film response curve (replaces raw pow gamma)\n grain = filmCurve(grain);\n\n // Micro-blur: sample neighbors for optical diffusion\n float n1 = hash(p + vec2(1.0, 0.0), seed);\n float n2 = hash(p - vec2(1.0, 0.0), seed);\n float n3 = hash(p + vec2(0.0, 1.0), seed);\n float n4 = hash(p - vec2(0.0, 1.0), seed);\n float neighbors = (n1 + n2 + n3 + n4) * 0.25;\n grain = mix(grain, neighbors, 0.15);\n\n // Chromatic aberration (reuse neighbor hashes)\n float rShift = n1 * 0.015;\n float bShift = n2 * 0.015;\n\n vec3 color = uColor * vec3(\n grain + rShift,\n grain,\n grain + bShift\n );\n\n color = clamp(color, 0.0, 1.0);\n\n gl_FragColor = vec4(color, grain * uOpacity);\n}\n";
|
|
4
|
+
//#endregion
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import * as _$react from "react";
|
|
2
|
-
|
|
3
1
|
//#region src/film-grain-webgl.d.ts
|
|
4
2
|
interface UseFilmGrainOptions {
|
|
5
3
|
density: number;
|
|
@@ -8,10 +6,5 @@ interface UseFilmGrainOptions {
|
|
|
8
6
|
/** Hex color for canvas fallback grain. Default '#ffffff' */
|
|
9
7
|
color?: string;
|
|
10
8
|
}
|
|
11
|
-
declare function useFilmGrain({
|
|
12
|
-
|
|
13
|
-
fps,
|
|
14
|
-
color
|
|
15
|
-
}: UseFilmGrainOptions): _$react.RefObject<HTMLCanvasElement | null>;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { useFilmGrain };
|
|
9
|
+
export declare function useFilmGrain({ density, fps, color }: UseFilmGrainOptions): import("react").RefObject<HTMLCanvasElement | null>;
|
|
10
|
+
//#endregion
|
package/dist/film-grain-webgl.js
CHANGED
|
@@ -92,7 +92,10 @@ function generateGrainTexture(width, height, density, color) {
|
|
|
92
92
|
const [r, g, b, a] = parseHex(color);
|
|
93
93
|
const imageData = ctx.createImageData(width, height);
|
|
94
94
|
const pixels = new Uint32Array(imageData.data.buffer);
|
|
95
|
-
for (let i = 0; i < pixels.length; i++) if (Math.random() < density)
|
|
95
|
+
for (let i = 0; i < pixels.length; i++) if (Math.random() < density) {
|
|
96
|
+
const variation = Math.round(a * (.4 + Math.random() * .6));
|
|
97
|
+
pixels[i] = (variation << 24 | b << 16 | g << 8 | r) >>> 0;
|
|
98
|
+
}
|
|
96
99
|
ctx.putImageData(imageData, 0, 0);
|
|
97
100
|
return offscreen;
|
|
98
101
|
}
|
package/dist/film-grain.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import * as React from "react";
|
|
3
|
-
|
|
4
2
|
//#region src/film-grain.d.ts
|
|
5
3
|
interface FilmGrainProps {
|
|
6
4
|
density?: number;
|
|
@@ -11,14 +9,6 @@ interface FilmGrainProps {
|
|
|
11
9
|
className?: string;
|
|
12
10
|
style?: React.CSSProperties;
|
|
13
11
|
}
|
|
14
|
-
declare function FilmGrain({
|
|
15
|
-
density,
|
|
16
|
-
opacity,
|
|
17
|
-
blendMode,
|
|
18
|
-
fps,
|
|
19
|
-
color,
|
|
20
|
-
className,
|
|
21
|
-
style
|
|
22
|
-
}: FilmGrainProps): _$react_jsx_runtime0.JSX.Element;
|
|
12
|
+
declare function FilmGrain({ density, opacity, blendMode, fps, color, className, style }: FilmGrainProps): React.JSX.Element;
|
|
23
13
|
//#endregion
|
|
24
14
|
export { FilmGrain, type FilmGrainProps };
|
package/dist/form.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { Field } from "./field.js";
|
|
2
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
2
|
import * as React from "react";
|
|
4
|
-
import * as _$react_hook_form0 from "react-hook-form";
|
|
5
3
|
import { ControllerFieldState, ControllerRenderProps, FieldPath, FieldValues, RegisterOptions, SubmitHandler, UseFormReturn, useForm, useWatch } from "react-hook-form";
|
|
6
|
-
|
|
7
4
|
//#region src/form.d.ts
|
|
8
5
|
type FormProps<TFieldValues extends FieldValues> = {
|
|
9
6
|
form: UseFormReturn<TFieldValues>;
|
|
@@ -13,11 +10,7 @@ type FormRootProps = React.ComponentProps<"form">;
|
|
|
13
10
|
type FormErrorProps = React.ComponentProps<"p">;
|
|
14
11
|
type FormActionsProps = React.ComponentProps<"div">;
|
|
15
12
|
type FormMessageProps = React.ComponentProps<"p">;
|
|
16
|
-
declare function Form<TFieldValues extends FieldValues>({
|
|
17
|
-
form,
|
|
18
|
-
onSubmit,
|
|
19
|
-
...props
|
|
20
|
-
}: FormProps<TFieldValues>): _$react_jsx_runtime0.JSX.Element;
|
|
13
|
+
declare function Form<TFieldValues extends FieldValues>({ form, onSubmit, ...props }: FormProps<TFieldValues>): React.JSX.Element;
|
|
21
14
|
/**
|
|
22
15
|
* Plain `<form>` element with RHF integration.
|
|
23
16
|
*
|
|
@@ -27,10 +20,7 @@ declare function Form<TFieldValues extends FieldValues>({
|
|
|
27
20
|
* provides validation, error handling, and submit management, the Base UI
|
|
28
21
|
* Form wrapper adds no value at the moment.
|
|
29
22
|
*/
|
|
30
|
-
declare function FormRoot({
|
|
31
|
-
className,
|
|
32
|
-
...props
|
|
33
|
-
}: FormRootProps): _$react_jsx_runtime0.JSX.Element;
|
|
23
|
+
declare function FormRoot({ className, ...props }: FormRootProps): React.JSX.Element;
|
|
34
24
|
type FormFieldRenderArgs<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> = {
|
|
35
25
|
id: string;
|
|
36
26
|
field: ControllerRenderProps<TFieldValues, TName>;
|
|
@@ -59,19 +49,10 @@ type FormFieldProps<TFieldValues extends FieldValues, TName extends FieldPath<TF
|
|
|
59
49
|
* It maps RHF Controller state onto Base UI's <Field> state so styling can
|
|
60
50
|
* rely on `data-[invalid]`, `data-[touched]`, `data-[dirty]`, etc.
|
|
61
51
|
*/
|
|
62
|
-
declare function FormField<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>(props: FormFieldProps<TFieldValues, TName>):
|
|
63
|
-
declare function FormError({
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}: FormErrorProps): _$react_jsx_runtime0.JSX.Element | null;
|
|
67
|
-
declare function FormActions({
|
|
68
|
-
className,
|
|
69
|
-
...props
|
|
70
|
-
}: FormActionsProps): _$react_jsx_runtime0.JSX.Element;
|
|
71
|
-
declare function FormMessage({
|
|
72
|
-
className,
|
|
73
|
-
...props
|
|
74
|
-
}: FormMessageProps): _$react_jsx_runtime0.JSX.Element;
|
|
52
|
+
declare function FormField<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>(props: FormFieldProps<TFieldValues, TName>): React.JSX.Element;
|
|
53
|
+
declare function FormError({ className, ...props }: FormErrorProps): React.JSX.Element | null;
|
|
54
|
+
declare function FormActions({ className, ...props }: FormActionsProps): React.JSX.Element;
|
|
55
|
+
declare function FormMessage({ className, ...props }: FormMessageProps): React.JSX.Element;
|
|
75
56
|
/**
|
|
76
57
|
* Convenience helper for mapping RHF field props onto either:
|
|
77
58
|
* - Base UI controls (use `onValueChange`)
|
|
@@ -83,15 +64,15 @@ declare function fieldControlProps<TFieldValues extends FieldValues, TName exten
|
|
|
83
64
|
invalid?: boolean;
|
|
84
65
|
native?: boolean;
|
|
85
66
|
}): {
|
|
86
|
-
"aria-describedby": string | undefined;
|
|
87
|
-
"aria-invalid": boolean | undefined;
|
|
88
|
-
onValueChange?: ((...event: any[]) => void) | undefined;
|
|
89
67
|
id: string | undefined;
|
|
90
68
|
name: TName;
|
|
91
|
-
ref:
|
|
69
|
+
ref: import("react-hook-form").RefCallBack;
|
|
92
70
|
value: string;
|
|
93
|
-
onBlur:
|
|
71
|
+
onBlur: import("react-hook-form").Noop;
|
|
94
72
|
onChange: (...event: any[]) => void;
|
|
73
|
+
onValueChange?: ((...event: any[]) => void) | undefined;
|
|
74
|
+
"aria-describedby": string | undefined;
|
|
75
|
+
"aria-invalid": boolean | undefined;
|
|
95
76
|
};
|
|
96
77
|
//#endregion
|
|
97
78
|
export { Form, FormActions, type FormActionsProps, FormError, type FormErrorProps, FormField, type FormFieldProps, type FormFieldRenderArgs, FormMessage, type FormMessageProps, type FormProps, FormRoot, type FormRootProps, fieldControlProps, useForm, useWatch };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
-
|
|
3
1
|
//#region src/gradient-reveal-text.d.ts
|
|
4
2
|
interface GradientRevealTextProps {
|
|
5
3
|
/** The text to display */
|
|
@@ -35,17 +33,6 @@ interface GradientRevealTextProps {
|
|
|
35
33
|
* <GradientRevealText text="BRAND" colors={["#ff0000", "#00ff00"]} />
|
|
36
34
|
* ```
|
|
37
35
|
*/
|
|
38
|
-
declare function GradientRevealText({
|
|
39
|
-
text,
|
|
40
|
-
duration,
|
|
41
|
-
colors,
|
|
42
|
-
baseOpacity,
|
|
43
|
-
hoverOpacity,
|
|
44
|
-
fontFamily,
|
|
45
|
-
spotlightSize,
|
|
46
|
-
strokeWidth: strokeWidthPx,
|
|
47
|
-
baseColor,
|
|
48
|
-
className
|
|
49
|
-
}: GradientRevealTextProps): _$react_jsx_runtime0.JSX.Element;
|
|
36
|
+
declare function GradientRevealText({ text, duration, colors, baseOpacity, hoverOpacity, fontFamily, spotlightSize, strokeWidth: strokeWidthPx, baseColor, className }: GradientRevealTextProps): import("react").JSX.Element;
|
|
50
37
|
//#endregion
|
|
51
38
|
export { GradientRevealText, type GradientRevealTextProps };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import * as React from "react";
|
|
3
|
-
|
|
4
2
|
//#region src/infinite-scroll.d.ts
|
|
5
3
|
type InfiniteScrollProps = React.ComponentProps<"div"> & {
|
|
6
4
|
onLoadMore: () => void;
|
|
@@ -13,19 +11,6 @@ type InfiniteScrollProps = React.ComponentProps<"div"> & {
|
|
|
13
11
|
loader?: React.ReactNode;
|
|
14
12
|
endMessage?: React.ReactNode;
|
|
15
13
|
};
|
|
16
|
-
declare function InfiniteScroll({
|
|
17
|
-
onLoadMore,
|
|
18
|
-
hasMore,
|
|
19
|
-
isLoading,
|
|
20
|
-
direction,
|
|
21
|
-
root,
|
|
22
|
-
rootMargin,
|
|
23
|
-
threshold,
|
|
24
|
-
loader,
|
|
25
|
-
endMessage,
|
|
26
|
-
className,
|
|
27
|
-
children,
|
|
28
|
-
...props
|
|
29
|
-
}: InfiniteScrollProps): _$react_jsx_runtime0.JSX.Element;
|
|
14
|
+
declare function InfiniteScroll({ onLoadMore, hasMore, isLoading, direction, root, rootMargin, threshold, loader, endMessage, className, children, ...props }: InfiniteScrollProps): React.JSX.Element;
|
|
30
15
|
//#endregion
|
|
31
16
|
export { InfiniteScroll, type InfiniteScrollProps };
|
package/dist/input-group.d.ts
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { Button } from "./button.js";
|
|
2
2
|
import { Input } from "./input.js";
|
|
3
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
3
|
import * as React from "react";
|
|
5
4
|
import { VariantProps } from "class-variance-authority";
|
|
6
|
-
import * as _$class_variance_authority_types0 from "class-variance-authority/types";
|
|
7
|
-
|
|
8
5
|
//#region src/input-group.d.ts
|
|
9
6
|
declare const inputGroupVariants: (props?: ({
|
|
10
|
-
size?: "default" | "
|
|
11
|
-
} &
|
|
7
|
+
size?: "default" | "lg" | "sm" | "xs" | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
12
9
|
type InputGroupProps = React.ComponentProps<"div"> & VariantProps<typeof inputGroupVariants>;
|
|
13
10
|
type InputGroupAddonProps = React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>;
|
|
14
11
|
type InputGroupButtonProps = Omit<React.ComponentProps<typeof Button>, "size" | "type"> & VariantProps<typeof inputGroupButtonVariants> & {
|
|
@@ -17,40 +14,17 @@ type InputGroupButtonProps = Omit<React.ComponentProps<typeof Button>, "size" |
|
|
|
17
14
|
type InputGroupTextProps = React.ComponentProps<"span">;
|
|
18
15
|
type InputGroupInputProps = React.ComponentProps<typeof Input>;
|
|
19
16
|
type InputGroupTextareaProps = React.ComponentProps<"textarea">;
|
|
20
|
-
declare function InputGroup({
|
|
21
|
-
className,
|
|
22
|
-
size,
|
|
23
|
-
...props
|
|
24
|
-
}: InputGroupProps): _$react_jsx_runtime0.JSX.Element;
|
|
17
|
+
declare function InputGroup({ className, size, ...props }: InputGroupProps): React.JSX.Element;
|
|
25
18
|
declare const inputGroupAddonVariants: (props?: ({
|
|
26
|
-
align?: "
|
|
27
|
-
} &
|
|
28
|
-
declare function InputGroupAddon({
|
|
29
|
-
className,
|
|
30
|
-
align,
|
|
31
|
-
...props
|
|
32
|
-
}: InputGroupAddonProps): _$react_jsx_runtime0.JSX.Element;
|
|
19
|
+
align?: "block-end" | "block-start" | "inline-end" | "inline-start" | null | undefined;
|
|
20
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
21
|
+
declare function InputGroupAddon({ className, align, ...props }: InputGroupAddonProps): React.JSX.Element;
|
|
33
22
|
declare const inputGroupButtonVariants: (props?: ({
|
|
34
23
|
size?: "default" | "icon" | null | undefined;
|
|
35
|
-
} &
|
|
36
|
-
declare function InputGroupButton({
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
size,
|
|
41
|
-
...props
|
|
42
|
-
}: InputGroupButtonProps): _$react_jsx_runtime0.JSX.Element;
|
|
43
|
-
declare function InputGroupText({
|
|
44
|
-
className,
|
|
45
|
-
...props
|
|
46
|
-
}: InputGroupTextProps): _$react_jsx_runtime0.JSX.Element;
|
|
47
|
-
declare function InputGroupInput({
|
|
48
|
-
className,
|
|
49
|
-
...props
|
|
50
|
-
}: InputGroupInputProps): _$react_jsx_runtime0.JSX.Element;
|
|
51
|
-
declare function InputGroupTextarea({
|
|
52
|
-
className,
|
|
53
|
-
...props
|
|
54
|
-
}: InputGroupTextareaProps): _$react_jsx_runtime0.JSX.Element;
|
|
24
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
25
|
+
declare function InputGroupButton({ className, type, variant, size, ...props }: InputGroupButtonProps): React.JSX.Element;
|
|
26
|
+
declare function InputGroupText({ className, ...props }: InputGroupTextProps): React.JSX.Element;
|
|
27
|
+
declare function InputGroupInput({ className, ...props }: InputGroupInputProps): React.JSX.Element;
|
|
28
|
+
declare function InputGroupTextarea({ className, ...props }: InputGroupTextareaProps): React.JSX.Element;
|
|
55
29
|
//#endregion
|
|
56
30
|
export { InputGroup, InputGroupAddon, type InputGroupAddonProps, InputGroupButton, type InputGroupButtonProps, InputGroupInput, type InputGroupInputProps, type InputGroupProps, InputGroupText, type InputGroupTextProps, InputGroupTextarea, type InputGroupTextareaProps, inputGroupAddonVariants, inputGroupButtonVariants, inputGroupVariants };
|
package/dist/input-otp.d.ts
CHANGED
|
@@ -1,33 +1,17 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import * as React from "react";
|
|
3
2
|
import { OTPInput } from "input-otp";
|
|
4
|
-
|
|
5
3
|
//#region src/input-otp.d.ts
|
|
6
4
|
type InputOTPProps = React.ComponentProps<typeof OTPInput> & {
|
|
7
5
|
containerClassName?: string;
|
|
8
6
|
};
|
|
9
|
-
declare function InputOTP({
|
|
10
|
-
className,
|
|
11
|
-
containerClassName,
|
|
12
|
-
...props
|
|
13
|
-
}: InputOTPProps): _$react_jsx_runtime0.JSX.Element;
|
|
7
|
+
declare function InputOTP({ className, containerClassName, ...props }: InputOTPProps): React.JSX.Element;
|
|
14
8
|
type InputOTPGroupProps = React.ComponentProps<"div">;
|
|
15
|
-
declare function InputOTPGroup({
|
|
16
|
-
className,
|
|
17
|
-
...props
|
|
18
|
-
}: InputOTPGroupProps): _$react_jsx_runtime0.JSX.Element;
|
|
9
|
+
declare function InputOTPGroup({ className, ...props }: InputOTPGroupProps): React.JSX.Element;
|
|
19
10
|
type InputOTPSlotProps = React.ComponentProps<"div"> & {
|
|
20
11
|
index: number;
|
|
21
12
|
};
|
|
22
|
-
declare function InputOTPSlot({
|
|
23
|
-
index,
|
|
24
|
-
className,
|
|
25
|
-
...props
|
|
26
|
-
}: InputOTPSlotProps): _$react_jsx_runtime0.JSX.Element;
|
|
13
|
+
declare function InputOTPSlot({ index, className, ...props }: InputOTPSlotProps): React.JSX.Element;
|
|
27
14
|
type InputOTPSeparatorProps = React.ComponentProps<"div">;
|
|
28
|
-
declare function InputOTPSeparator({
|
|
29
|
-
className,
|
|
30
|
-
...props
|
|
31
|
-
}: InputOTPSeparatorProps): _$react_jsx_runtime0.JSX.Element;
|
|
15
|
+
declare function InputOTPSeparator({ className, ...props }: InputOTPSeparatorProps): React.JSX.Element;
|
|
32
16
|
//#endregion
|
|
33
17
|
export { InputOTP, InputOTPGroup, type InputOTPGroupProps, type InputOTPProps, InputOTPSeparator, type InputOTPSeparatorProps, InputOTPSlot, type InputOTPSlotProps };
|
package/dist/input.d.ts
CHANGED
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import * as React from "react";
|
|
3
2
|
import { VariantProps } from "class-variance-authority";
|
|
4
3
|
import { Input as Input$1 } from "@base-ui/react/input";
|
|
5
|
-
import * as _$class_variance_authority_types0 from "class-variance-authority/types";
|
|
6
|
-
|
|
7
4
|
//#region src/input.d.ts
|
|
8
5
|
declare const inputVariants: (props?: ({
|
|
9
|
-
size?: "default" | "
|
|
10
|
-
} &
|
|
6
|
+
size?: "default" | "lg" | "sm" | "xs" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
8
|
type InputProps = Omit<React.ComponentProps<typeof Input$1>, "size"> & VariantProps<typeof inputVariants>;
|
|
12
|
-
declare function Input({
|
|
13
|
-
className,
|
|
14
|
-
type,
|
|
15
|
-
size,
|
|
16
|
-
...props
|
|
17
|
-
}: InputProps): _$react_jsx_runtime0.JSX.Element;
|
|
9
|
+
declare function Input({ className, type, size, ...props }: InputProps): React.JSX.Element;
|
|
18
10
|
//#endregion
|
|
19
11
|
export { Input, type InputProps, inputVariants };
|
package/dist/item.d.ts
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import { Separator } from "./separator.js";
|
|
2
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
2
|
import * as React from "react";
|
|
4
3
|
import { VariantProps } from "class-variance-authority";
|
|
5
4
|
import { useRender } from "@base-ui/react/use-render";
|
|
6
|
-
import * as _$class_variance_authority_types0 from "class-variance-authority/types";
|
|
7
|
-
|
|
8
5
|
//#region src/item.d.ts
|
|
9
6
|
declare const itemVariants: (props?: ({
|
|
10
|
-
variant?: "default" | "
|
|
7
|
+
variant?: "default" | "muted" | "outline" | null | undefined;
|
|
11
8
|
size?: "default" | "sm" | "xs" | null | undefined;
|
|
12
|
-
} &
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
10
|
declare const itemMediaVariants: (props?: ({
|
|
14
|
-
variant?: "default" | "
|
|
15
|
-
} &
|
|
11
|
+
variant?: "default" | "icon" | "image" | null | undefined;
|
|
12
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
13
|
type ItemGroupProps = React.ComponentProps<"div">;
|
|
17
14
|
type ItemSeparatorProps = React.ComponentProps<typeof Separator>;
|
|
18
15
|
type ItemProps = useRender.ComponentProps<"div"> & VariantProps<typeof itemVariants>;
|
|
@@ -23,49 +20,15 @@ type ItemDescriptionProps = React.ComponentProps<"p">;
|
|
|
23
20
|
type ItemActionsProps = React.ComponentProps<"div">;
|
|
24
21
|
type ItemHeaderProps = React.ComponentProps<"div">;
|
|
25
22
|
type ItemFooterProps = React.ComponentProps<"div">;
|
|
26
|
-
declare function ItemGroup({
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}:
|
|
30
|
-
declare function
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}:
|
|
34
|
-
declare function
|
|
35
|
-
|
|
36
|
-
variant,
|
|
37
|
-
size,
|
|
38
|
-
render,
|
|
39
|
-
...props
|
|
40
|
-
}: ItemProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
41
|
-
declare function ItemMedia({
|
|
42
|
-
className,
|
|
43
|
-
variant,
|
|
44
|
-
...props
|
|
45
|
-
}: ItemMediaProps): _$react_jsx_runtime0.JSX.Element;
|
|
46
|
-
declare function ItemContent({
|
|
47
|
-
className,
|
|
48
|
-
...props
|
|
49
|
-
}: ItemContentProps): _$react_jsx_runtime0.JSX.Element;
|
|
50
|
-
declare function ItemTitle({
|
|
51
|
-
className,
|
|
52
|
-
...props
|
|
53
|
-
}: ItemTitleProps): _$react_jsx_runtime0.JSX.Element;
|
|
54
|
-
declare function ItemDescription({
|
|
55
|
-
className,
|
|
56
|
-
...props
|
|
57
|
-
}: ItemDescriptionProps): _$react_jsx_runtime0.JSX.Element;
|
|
58
|
-
declare function ItemActions({
|
|
59
|
-
className,
|
|
60
|
-
...props
|
|
61
|
-
}: ItemActionsProps): _$react_jsx_runtime0.JSX.Element;
|
|
62
|
-
declare function ItemHeader({
|
|
63
|
-
className,
|
|
64
|
-
...props
|
|
65
|
-
}: ItemHeaderProps): _$react_jsx_runtime0.JSX.Element;
|
|
66
|
-
declare function ItemFooter({
|
|
67
|
-
className,
|
|
68
|
-
...props
|
|
69
|
-
}: ItemFooterProps): _$react_jsx_runtime0.JSX.Element;
|
|
23
|
+
declare function ItemGroup({ className, ...props }: ItemGroupProps): React.JSX.Element;
|
|
24
|
+
declare function ItemSeparator({ className, ...props }: ItemSeparatorProps): React.JSX.Element;
|
|
25
|
+
declare function Item({ className, variant, size, render, ...props }: ItemProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
26
|
+
declare function ItemMedia({ className, variant, ...props }: ItemMediaProps): React.JSX.Element;
|
|
27
|
+
declare function ItemContent({ className, ...props }: ItemContentProps): React.JSX.Element;
|
|
28
|
+
declare function ItemTitle({ className, ...props }: ItemTitleProps): React.JSX.Element;
|
|
29
|
+
declare function ItemDescription({ className, ...props }: ItemDescriptionProps): React.JSX.Element;
|
|
30
|
+
declare function ItemActions({ className, ...props }: ItemActionsProps): React.JSX.Element;
|
|
31
|
+
declare function ItemHeader({ className, ...props }: ItemHeaderProps): React.JSX.Element;
|
|
32
|
+
declare function ItemFooter({ className, ...props }: ItemFooterProps): React.JSX.Element;
|
|
70
33
|
//#endregion
|
|
71
34
|
export { Item, ItemActions, type ItemActionsProps, ItemContent, type ItemContentProps, ItemDescription, type ItemDescriptionProps, ItemFooter, type ItemFooterProps, ItemGroup, type ItemGroupProps, ItemHeader, type ItemHeaderProps, ItemMedia, type ItemMediaProps, type ItemProps, ItemSeparator, type ItemSeparatorProps, ItemTitle, type ItemTitleProps, itemMediaVariants, itemVariants };
|
package/dist/kbd.d.ts
CHANGED
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import * as React from "react";
|
|
3
|
-
|
|
4
2
|
//#region src/kbd.d.ts
|
|
5
3
|
type KbdProps = React.ComponentProps<"kbd">;
|
|
6
4
|
type KbdGroupProps = React.ComponentProps<"div">;
|
|
7
|
-
declare function Kbd({
|
|
8
|
-
|
|
9
|
-
...props
|
|
10
|
-
}: KbdProps): _$react_jsx_runtime0.JSX.Element;
|
|
11
|
-
declare function KbdGroup({
|
|
12
|
-
className,
|
|
13
|
-
...props
|
|
14
|
-
}: KbdGroupProps): _$react_jsx_runtime0.JSX.Element;
|
|
5
|
+
declare function Kbd({ className, ...props }: KbdProps): React.JSX.Element;
|
|
6
|
+
declare function KbdGroup({ className, ...props }: KbdGroupProps): React.JSX.Element;
|
|
15
7
|
//#endregion
|
|
16
8
|
export { Kbd, KbdGroup, type KbdGroupProps, type KbdProps };
|
package/dist/label.d.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import * as React from "react";
|
|
3
|
-
|
|
4
2
|
//#region src/label.d.ts
|
|
5
3
|
type LabelProps = React.ComponentProps<"label">;
|
|
6
|
-
declare function Label({
|
|
7
|
-
className,
|
|
8
|
-
...props
|
|
9
|
-
}: LabelProps): _$react_jsx_runtime0.JSX.Element;
|
|
4
|
+
declare function Label({ className, ...props }: LabelProps): React.JSX.Element;
|
|
10
5
|
//#endregion
|
|
11
6
|
export { Label, type LabelProps };
|
package/dist/lib/focus.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Menu } from "@base-ui/react/menu";
|
|
3
|
-
|
|
4
3
|
//#region src/lib/focus.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* The full shape Base UI's `finalFocus` prop accepts on the
|
|
@@ -25,7 +24,7 @@ type FinalFocus = NonNullable<React.ComponentProps<typeof Menu.Popup>["finalFocu
|
|
|
25
24
|
* expected focus return.
|
|
26
25
|
* - `"never"` — never auto-restore focus on close.
|
|
27
26
|
*/
|
|
28
|
-
type RestoreFocusOnClose = "always" | "keyboard" | "never";
|
|
27
|
+
export type RestoreFocusOnClose = "always" | "keyboard" | "never";
|
|
29
28
|
/**
|
|
30
29
|
* Resolve the high-level {@link RestoreFocusOnClose} policy to the
|
|
31
30
|
* Base UI `finalFocus` value.
|
|
@@ -36,6 +35,5 @@ type RestoreFocusOnClose = "always" | "keyboard" | "never";
|
|
|
36
35
|
* other — when `restoreFocusOnClose` is set it fully governs
|
|
37
36
|
* `finalFocus`.
|
|
38
37
|
*/
|
|
39
|
-
declare function resolveFinalFocus(restoreFocusOnClose: RestoreFocusOnClose | undefined, finalFocus: FinalFocus | undefined): FinalFocus | undefined;
|
|
40
|
-
//#endregion
|
|
41
|
-
export { RestoreFocusOnClose, resolveFinalFocus };
|
|
38
|
+
export declare function resolveFinalFocus(restoreFocusOnClose: RestoreFocusOnClose | undefined, finalFocus: FinalFocus | undefined): FinalFocus | undefined;
|
|
39
|
+
//#endregion
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import * as React from "react";
|
|
3
|
-
|
|
4
2
|
//#region src/lib/internal-icons.d.ts
|
|
5
3
|
type IconProps = React.SVGProps<SVGSVGElement>;
|
|
6
|
-
declare function ChevronDownIcon(props: IconProps):
|
|
7
|
-
declare function ChevronUpIcon(props: IconProps):
|
|
8
|
-
declare function ChevronLeftIcon(props: IconProps):
|
|
9
|
-
declare function ChevronRightIcon(props: IconProps):
|
|
10
|
-
declare function CheckIcon(props: IconProps):
|
|
11
|
-
declare function CloseIcon(props: IconProps):
|
|
12
|
-
declare function MinusIcon(props: IconProps):
|
|
13
|
-
declare function EllipsisIcon(props: IconProps):
|
|
14
|
-
declare function EllipsisVerticalIcon(props: IconProps):
|
|
15
|
-
declare function ChevronsUpDownIcon(props: IconProps):
|
|
16
|
-
declare function SidebarPanelIcon(props: IconProps):
|
|
17
|
-
declare function LoaderIcon(props: IconProps):
|
|
18
|
-
declare function AlertTriangleIcon(props: IconProps):
|
|
19
|
-
declare function SuccessCircleIcon(props: IconProps):
|
|
20
|
-
declare function InfoCircleIcon(props: IconProps):
|
|
21
|
-
declare function ErrorCircleIcon(props: IconProps):
|
|
22
|
-
declare function TrashIcon(props: IconProps):
|
|
23
|
-
declare function StarIcon(props: IconProps):
|
|
24
|
-
//#endregion
|
|
25
|
-
export { AlertTriangleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsUpDownIcon, CloseIcon, EllipsisIcon, EllipsisVerticalIcon, ErrorCircleIcon, InfoCircleIcon, LoaderIcon, MinusIcon, SidebarPanelIcon, StarIcon, SuccessCircleIcon, TrashIcon };
|
|
4
|
+
export declare function ChevronDownIcon(props: IconProps): React.JSX.Element;
|
|
5
|
+
export declare function ChevronUpIcon(props: IconProps): React.JSX.Element;
|
|
6
|
+
export declare function ChevronLeftIcon(props: IconProps): React.JSX.Element;
|
|
7
|
+
export declare function ChevronRightIcon(props: IconProps): React.JSX.Element;
|
|
8
|
+
export declare function CheckIcon(props: IconProps): React.JSX.Element;
|
|
9
|
+
export declare function CloseIcon(props: IconProps): React.JSX.Element;
|
|
10
|
+
export declare function MinusIcon(props: IconProps): React.JSX.Element;
|
|
11
|
+
export declare function EllipsisIcon(props: IconProps): React.JSX.Element;
|
|
12
|
+
export declare function EllipsisVerticalIcon(props: IconProps): React.JSX.Element;
|
|
13
|
+
export declare function ChevronsUpDownIcon(props: IconProps): React.JSX.Element;
|
|
14
|
+
export declare function SidebarPanelIcon(props: IconProps): React.JSX.Element;
|
|
15
|
+
export declare function LoaderIcon(props: IconProps): React.JSX.Element;
|
|
16
|
+
export declare function AlertTriangleIcon(props: IconProps): React.JSX.Element;
|
|
17
|
+
export declare function SuccessCircleIcon(props: IconProps): React.JSX.Element;
|
|
18
|
+
export declare function InfoCircleIcon(props: IconProps): React.JSX.Element;
|
|
19
|
+
export declare function ErrorCircleIcon(props: IconProps): React.JSX.Element;
|
|
20
|
+
export declare function TrashIcon(props: IconProps): React.JSX.Element;
|
|
21
|
+
export declare function StarIcon(props: IconProps): React.JSX.Element;
|
|
22
|
+
//#endregion
|
package/dist/lib/utils.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ClassValue } from "clsx";
|
|
2
|
-
|
|
3
2
|
//#region src/lib/utils.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* `cn()` is the single className helper.
|
|
@@ -35,7 +34,6 @@ import { ClassValue } from "clsx";
|
|
|
35
34
|
* ```
|
|
36
35
|
*/
|
|
37
36
|
type CnValue<State> = ClassValue | ((state: State) => ClassValue);
|
|
38
|
-
declare function cn(...inputs: ClassValue[]): string;
|
|
39
|
-
declare function cn<State>(...inputs: CnValue<State>[]): (state: State) => string;
|
|
40
|
-
//#endregion
|
|
41
|
-
export { cn };
|
|
37
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
|
38
|
+
export declare function cn<State>(...inputs: CnValue<State>[]): (state: State) => string;
|
|
39
|
+
//#endregion
|
package/dist/lib/utils.js
CHANGED
|
@@ -28,7 +28,8 @@ const twMerge = extendTailwindMerge({ extend: { classGroups: {
|
|
|
28
28
|
function cn(...inputs) {
|
|
29
29
|
if (!inputs.some((v) => typeof v === "function")) return twMerge(clsx(inputs));
|
|
30
30
|
return (state) => {
|
|
31
|
-
|
|
31
|
+
const resolved = inputs.map((v) => typeof v === "function" ? v(state) : v);
|
|
32
|
+
return twMerge(clsx(resolved));
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
35
|
//#endregion
|
package/dist/masonry.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import * as React from "react";
|
|
3
2
|
import { HTMLMotionProps } from "motion/react";
|
|
4
|
-
|
|
5
3
|
//#region src/masonry.d.ts
|
|
6
4
|
type MasonryProps = React.ComponentProps<"div"> & {
|
|
7
5
|
columns?: number;
|
|
@@ -12,19 +10,7 @@ type MasonryItemProps = Omit<HTMLMotionProps<"div">, "children"> & {
|
|
|
12
10
|
span?: number;
|
|
13
11
|
children?: React.ReactNode;
|
|
14
12
|
};
|
|
15
|
-
declare function Masonry({
|
|
16
|
-
|
|
17
|
-
columnWidth,
|
|
18
|
-
gap,
|
|
19
|
-
className,
|
|
20
|
-
children,
|
|
21
|
-
...props
|
|
22
|
-
}: MasonryProps): _$react_jsx_runtime0.JSX.Element;
|
|
23
|
-
declare function MasonryItem({
|
|
24
|
-
className,
|
|
25
|
-
span,
|
|
26
|
-
children,
|
|
27
|
-
...props
|
|
28
|
-
}: MasonryItemProps): _$react_jsx_runtime0.JSX.Element;
|
|
13
|
+
declare function Masonry({ columns, columnWidth, gap, className, children, ...props }: MasonryProps): React.JSX.Element;
|
|
14
|
+
declare function MasonryItem({ className, span, children, ...props }: MasonryItemProps): React.JSX.Element;
|
|
29
15
|
//#endregion
|
|
30
16
|
export { Masonry, MasonryItem, type MasonryItemProps, type MasonryProps };
|
package/dist/masonry.js
CHANGED
|
@@ -47,7 +47,7 @@ function Masonry({ columns, columnWidth, gap = 4, className, children, ...props
|
|
|
47
47
|
container.style.removeProperty("flex-direction");
|
|
48
48
|
container.style.removeProperty("gap");
|
|
49
49
|
const colWidth = (containerWidth - (colCount - 1) * gapPx) / colCount;
|
|
50
|
-
const columnBottoms =
|
|
50
|
+
const columnBottoms = Array.from({ length: colCount }, () => 0);
|
|
51
51
|
const topItems = [];
|
|
52
52
|
const regularItems = [];
|
|
53
53
|
for (const item of items) {
|