@waveso/ui 0.14.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 +24 -88
- package/dist/autocomplete.js +4 -2
- 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/button.js +6 -6
- 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 +24 -79
- package/dist/combobox.js +21 -7
- 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 +15 -37
- package/dist/input-group.js +25 -17
- package/dist/input-otp.d.ts +4 -20
- package/dist/input.d.ts +3 -11
- package/dist/input.js +4 -4
- 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 +19 -65
- package/dist/select.js +12 -2
- package/dist/separator.d.ts +1 -7
- package/dist/sidebar.d.ts +30 -127
- package/dist/sidebar.js +3 -3
- 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/styles.css +18 -0
- 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 +7 -10
- package/dist/textarea.js +14 -3
- 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
package/dist/tabs.d.ts
CHANGED
|
@@ -1,35 +1,18 @@
|
|
|
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 { Tabs as Tabs$1 } from "@base-ui/react/tabs";
|
|
5
|
-
import * as _$class_variance_authority_types0 from "class-variance-authority/types";
|
|
6
|
-
|
|
7
4
|
//#region src/tabs.d.ts
|
|
8
5
|
declare const tabsListVariants: (props?: ({
|
|
9
6
|
variant?: "default" | "line" | null | undefined;
|
|
10
|
-
} &
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
8
|
type TabsProps = React.ComponentProps<typeof Tabs$1.Root>;
|
|
12
9
|
type TabsListBaseProps = React.ComponentProps<typeof Tabs$1.List>;
|
|
13
10
|
type TabsListProps = TabsListBaseProps & VariantProps<typeof tabsListVariants>;
|
|
14
11
|
type TabsTriggerProps = React.ComponentProps<typeof Tabs$1.Tab>;
|
|
15
12
|
type TabsContentProps = React.ComponentProps<typeof Tabs$1.Panel>;
|
|
16
|
-
declare function Tabs({
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}: TabsProps): _$react_jsx_runtime0.JSX.Element;
|
|
21
|
-
declare function TabsList({
|
|
22
|
-
className,
|
|
23
|
-
variant,
|
|
24
|
-
...props
|
|
25
|
-
}: TabsListProps): _$react_jsx_runtime0.JSX.Element;
|
|
26
|
-
declare function TabsTrigger({
|
|
27
|
-
className,
|
|
28
|
-
...props
|
|
29
|
-
}: TabsTriggerProps): _$react_jsx_runtime0.JSX.Element;
|
|
30
|
-
declare function TabsContent({
|
|
31
|
-
className,
|
|
32
|
-
...props
|
|
33
|
-
}: TabsContentProps): _$react_jsx_runtime0.JSX.Element;
|
|
13
|
+
declare function Tabs({ className, orientation, ...props }: TabsProps): React.JSX.Element;
|
|
14
|
+
declare function TabsList({ className, variant, ...props }: TabsListProps): React.JSX.Element;
|
|
15
|
+
declare function TabsTrigger({ className, ...props }: TabsTriggerProps): React.JSX.Element;
|
|
16
|
+
declare function TabsContent({ className, ...props }: TabsContentProps): React.JSX.Element;
|
|
34
17
|
//#endregion
|
|
35
18
|
export { Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, tabsListVariants };
|
package/dist/textarea.d.ts
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
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
|
//#region src/textarea.d.ts
|
|
4
|
+
declare const textareaVariants: (props?: ({
|
|
5
|
+
size?: "default" | "lg" | "sm" | "xs" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5
7
|
type TextareaProps = Omit<React.ComponentProps<"textarea">, "onChange"> & {
|
|
6
8
|
onChange?: React.ChangeEventHandler<HTMLTextAreaElement>;
|
|
7
9
|
onValueChange?: (value: string) => void;
|
|
8
|
-
}
|
|
9
|
-
declare function Textarea({
|
|
10
|
-
className,
|
|
11
|
-
onChange,
|
|
12
|
-
onValueChange,
|
|
13
|
-
...props
|
|
14
|
-
}: TextareaProps): _$react_jsx_runtime0.JSX.Element;
|
|
10
|
+
} & VariantProps<typeof textareaVariants>;
|
|
11
|
+
declare function Textarea({ className, size, onChange, onValueChange, ...props }: TextareaProps): React.JSX.Element;
|
|
15
12
|
//#endregion
|
|
16
|
-
export { Textarea, type TextareaProps };
|
|
13
|
+
export { Textarea, type TextareaProps, textareaVariants };
|
package/dist/textarea.js
CHANGED
|
@@ -1,18 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "./lib/utils.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
4
5
|
//#region src/textarea.tsx
|
|
5
|
-
|
|
6
|
+
const textareaVariants = cva("bg-edge hover:border-focus focus-visible:border-focus focus-visible:ring-focus/50 aria-invalid:ring-destructive/30 aria-invalid:border-destructive resize-y resize-handle disabled:pointer-events-none placeholder:text-soft flex field-sizing-content w-full rounded-md border border-transparent motion-color outline-hidden focus-visible:ring-3 disabled:opacity-30 aria-invalid:ring-3", {
|
|
7
|
+
variants: { size: {
|
|
8
|
+
xs: "min-h-12 rounded-sm px-2 py-1 text-xs",
|
|
9
|
+
sm: "min-h-14 px-3 py-1.5 text-sm",
|
|
10
|
+
default: "min-h-16 px-3 py-2 text-base",
|
|
11
|
+
lg: "min-h-20 px-4 py-2.5 text-lg"
|
|
12
|
+
} },
|
|
13
|
+
defaultVariants: { size: "default" }
|
|
14
|
+
});
|
|
15
|
+
function Textarea({ className, size = "default", onChange, onValueChange, ...props }) {
|
|
6
16
|
function handleChange(e) {
|
|
7
17
|
onChange?.(e);
|
|
8
18
|
onValueChange?.(e.target.value);
|
|
9
19
|
}
|
|
10
20
|
return /* @__PURE__ */ jsx("textarea", {
|
|
11
21
|
"data-slot": "textarea",
|
|
12
|
-
|
|
22
|
+
"data-size": size,
|
|
23
|
+
className: cn(textareaVariants({ size }), className),
|
|
13
24
|
onChange: handleChange,
|
|
14
25
|
...props
|
|
15
26
|
});
|
|
16
27
|
}
|
|
17
28
|
//#endregion
|
|
18
|
-
export { Textarea };
|
|
29
|
+
export { Textarea, textareaVariants };
|
package/dist/toast.d.ts
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import * as React from "react";
|
|
3
2
|
import { Toast as Toast$1 } from "@base-ui/react/toast";
|
|
4
|
-
import * as _$class_variance_authority_types0 from "class-variance-authority/types";
|
|
5
|
-
import * as _$_base_ui_react0 from "@base-ui/react";
|
|
6
|
-
|
|
7
3
|
//#region src/toast.d.ts
|
|
8
4
|
declare const toastRootClass = "bg-elevated text-contrast ring-contrast/10 rounded-md p-4 text-sm shadow-md ring-1 outline-hidden";
|
|
9
5
|
declare const toastIconVariants: (props?: ({
|
|
10
|
-
type?: "
|
|
11
|
-
} &
|
|
6
|
+
type?: "error" | "info" | "loading" | "success" | "warning" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
12
8
|
declare const toastViewportVariants: (props?: ({
|
|
13
|
-
position?: "
|
|
14
|
-
} &
|
|
9
|
+
position?: "bottom-center" | "bottom-left" | "bottom-right" | "top-center" | "top-left" | "top-right" | null | undefined;
|
|
10
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
15
11
|
type ToastType = "loading" | "success" | "info" | "warning" | "error";
|
|
16
12
|
type ToastOptions = {
|
|
17
13
|
title?: string;
|
|
@@ -37,7 +33,7 @@ type ToastTitleProps = React.ComponentProps<typeof Toast$1.Title>;
|
|
|
37
33
|
type ToastDescriptionProps = React.ComponentProps<typeof Toast$1.Description>;
|
|
38
34
|
type ToastActionProps = React.ComponentProps<typeof Toast$1.Action>;
|
|
39
35
|
type ToastCloseProps = React.ComponentProps<typeof Toast$1.Close>;
|
|
40
|
-
declare const toastManager:
|
|
36
|
+
declare const toastManager: import("@base-ui/react").ToastManager<any>;
|
|
41
37
|
declare const toast: ((titleOrOptions: string | ToastOptions) => string) & {
|
|
42
38
|
success: (title: string, options?: Omit<ToastOptions, "type" | "title">) => string;
|
|
43
39
|
error: (title: string, options?: Omit<ToastOptions, "type" | "title">) => string;
|
|
@@ -46,36 +42,14 @@ declare const toast: ((titleOrOptions: string | ToastOptions) => string) & {
|
|
|
46
42
|
loading: (title: string, options?: Omit<ToastOptions, "type" | "title">) => string;
|
|
47
43
|
dismiss: (id: string) => void;
|
|
48
44
|
update: (id: string, updates: Partial<ToastOptions>) => void;
|
|
49
|
-
promise: <Value, T extends any = any>(promiseValue: Promise<Value>, options:
|
|
45
|
+
promise: <Value, T extends any = any>(promiseValue: Promise<Value>, options: import("@base-ui/react").ToastManagerPromiseOptions<Value, T>) => Promise<Value>;
|
|
50
46
|
};
|
|
51
|
-
declare function ToastIcon({
|
|
52
|
-
|
|
53
|
-
}:
|
|
54
|
-
declare function
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}:
|
|
58
|
-
declare function ToastTitle({
|
|
59
|
-
className,
|
|
60
|
-
...props
|
|
61
|
-
}: ToastTitleProps): _$react_jsx_runtime0.JSX.Element;
|
|
62
|
-
declare function ToastDescription({
|
|
63
|
-
className,
|
|
64
|
-
...props
|
|
65
|
-
}: ToastDescriptionProps): _$react_jsx_runtime0.JSX.Element;
|
|
66
|
-
declare function ToastAction({
|
|
67
|
-
className,
|
|
68
|
-
...props
|
|
69
|
-
}: ToastActionProps): _$react_jsx_runtime0.JSX.Element;
|
|
70
|
-
declare function ToastClose({
|
|
71
|
-
className,
|
|
72
|
-
children,
|
|
73
|
-
...props
|
|
74
|
-
}: ToastCloseProps): _$react_jsx_runtime0.JSX.Element;
|
|
75
|
-
declare function Toaster({
|
|
76
|
-
position,
|
|
77
|
-
limit,
|
|
78
|
-
timeout
|
|
79
|
-
}: ToasterProps): _$react_jsx_runtime0.JSX.Element | null;
|
|
47
|
+
declare function ToastIcon({ type }: ToastIconProps): React.JSX.Element | null;
|
|
48
|
+
declare function Toast({ className, ...props }: ToastProps): React.JSX.Element;
|
|
49
|
+
declare function ToastTitle({ className, ...props }: ToastTitleProps): React.JSX.Element;
|
|
50
|
+
declare function ToastDescription({ className, ...props }: ToastDescriptionProps): React.JSX.Element;
|
|
51
|
+
declare function ToastAction({ className, ...props }: ToastActionProps): React.JSX.Element;
|
|
52
|
+
declare function ToastClose({ className, children, ...props }: ToastCloseProps): React.JSX.Element;
|
|
53
|
+
declare function Toaster({ position, limit, timeout }: ToasterProps): React.JSX.Element | null;
|
|
80
54
|
//#endregion
|
|
81
55
|
export { Toast, ToastAction, type ToastActionProps, ToastClose, type ToastCloseProps, ToastDescription, type ToastDescriptionProps, ToastIcon, type ToastIconProps, type ToastOptions, type ToastProps, ToastTitle, type ToastTitleProps, type ToastType, Toaster, type ToasterPosition, type ToasterProps, toast, toastIconVariants, toastManager, toastRootClass, toastViewportVariants };
|
package/dist/toggle-group.d.ts
CHANGED
|
@@ -1,30 +1,14 @@
|
|
|
1
1
|
import { toggleVariants } from "./toggle.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import { Toggle } from "@base-ui/react/toggle";
|
|
5
5
|
import { ToggleGroup as ToggleGroup$1 } from "@base-ui/react/toggle-group";
|
|
6
|
-
|
|
7
6
|
//#region src/toggle-group.d.ts
|
|
8
7
|
type ToggleGroupProps = ToggleGroup$1.Props & VariantProps<typeof toggleVariants> & {
|
|
9
8
|
spacing?: number;
|
|
10
9
|
};
|
|
11
10
|
type ToggleGroupItemProps = Toggle.Props & VariantProps<typeof toggleVariants>;
|
|
12
|
-
declare function ToggleGroup({
|
|
13
|
-
|
|
14
|
-
variant,
|
|
15
|
-
size,
|
|
16
|
-
spacing,
|
|
17
|
-
orientation,
|
|
18
|
-
style,
|
|
19
|
-
children,
|
|
20
|
-
...props
|
|
21
|
-
}: ToggleGroupProps): _$react_jsx_runtime0.JSX.Element;
|
|
22
|
-
declare function ToggleGroupItem({
|
|
23
|
-
className,
|
|
24
|
-
children,
|
|
25
|
-
variant,
|
|
26
|
-
size,
|
|
27
|
-
...props
|
|
28
|
-
}: ToggleGroupItemProps): _$react_jsx_runtime0.JSX.Element;
|
|
11
|
+
declare function ToggleGroup({ className, variant, size, spacing, orientation, style, children, ...props }: ToggleGroupProps): React.JSX.Element;
|
|
12
|
+
declare function ToggleGroupItem({ className, children, variant, size, ...props }: ToggleGroupItemProps): React.JSX.Element;
|
|
29
13
|
//#endregion
|
|
30
14
|
export { ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps };
|
package/dist/toggle-group.js
CHANGED
|
@@ -13,6 +13,17 @@ const ToggleGroupContext = React.createContext({
|
|
|
13
13
|
orientation: "horizontal"
|
|
14
14
|
});
|
|
15
15
|
function ToggleGroup({ className, variant, size, spacing = 0, orientation = "horizontal", style, children, ...props }) {
|
|
16
|
+
const contextValue = React.useMemo(() => ({
|
|
17
|
+
variant,
|
|
18
|
+
size,
|
|
19
|
+
spacing,
|
|
20
|
+
orientation
|
|
21
|
+
}), [
|
|
22
|
+
variant,
|
|
23
|
+
size,
|
|
24
|
+
spacing,
|
|
25
|
+
orientation
|
|
26
|
+
]);
|
|
16
27
|
return /* @__PURE__ */ jsx(ToggleGroup$1, {
|
|
17
28
|
orientation,
|
|
18
29
|
"data-slot": "toggle-group",
|
|
@@ -20,18 +31,13 @@ function ToggleGroup({ className, variant, size, spacing = 0, orientation = "hor
|
|
|
20
31
|
"data-size": size,
|
|
21
32
|
"data-spacing": spacing,
|
|
22
33
|
style: {
|
|
23
|
-
...style
|
|
34
|
+
...style,
|
|
24
35
|
"--gap": spacing
|
|
25
36
|
},
|
|
26
37
|
className: cn("group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-md data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch data-[size=sm]:rounded-sm", className),
|
|
27
38
|
...props,
|
|
28
39
|
children: /* @__PURE__ */ jsx(ToggleGroupContext.Provider, {
|
|
29
|
-
value:
|
|
30
|
-
variant,
|
|
31
|
-
size,
|
|
32
|
-
spacing,
|
|
33
|
-
orientation
|
|
34
|
-
},
|
|
40
|
+
value: contextValue,
|
|
35
41
|
children
|
|
36
42
|
})
|
|
37
43
|
});
|
package/dist/toggle.d.ts
CHANGED
|
@@ -1,20 +1,12 @@
|
|
|
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 { Toggle as Toggle$1 } from "@base-ui/react/toggle";
|
|
5
|
-
import * as _$class_variance_authority_types0 from "class-variance-authority/types";
|
|
6
|
-
|
|
7
4
|
//#region src/toggle.d.ts
|
|
8
5
|
declare const toggleVariants: (props?: ({
|
|
9
6
|
variant?: "default" | "outline" | null | undefined;
|
|
10
|
-
size?: "default" | "
|
|
11
|
-
} &
|
|
7
|
+
size?: "default" | "lg" | "sm" | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
12
9
|
type ToggleProps = React.ComponentProps<typeof Toggle$1> & VariantProps<typeof toggleVariants>;
|
|
13
|
-
declare function Toggle({
|
|
14
|
-
className,
|
|
15
|
-
variant,
|
|
16
|
-
size,
|
|
17
|
-
...props
|
|
18
|
-
}: ToggleProps): _$react_jsx_runtime0.JSX.Element;
|
|
10
|
+
declare function Toggle({ className, variant, size, ...props }: ToggleProps): React.JSX.Element;
|
|
19
11
|
//#endregion
|
|
20
12
|
export { Toggle, type ToggleProps, toggleVariants };
|
package/dist/tooltip.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 { Tooltip as Tooltip$1 } from "@base-ui/react/tooltip";
|
|
4
|
-
|
|
5
3
|
//#region src/tooltip.d.ts
|
|
6
4
|
type TooltipProviderProps = React.ComponentProps<typeof Tooltip$1.Provider>;
|
|
7
5
|
type TooltipProps = React.ComponentProps<typeof Tooltip$1.Root>;
|
|
@@ -19,33 +17,15 @@ type TooltipContentProps = React.ComponentProps<typeof Tooltip$1.Popup> & {
|
|
|
19
17
|
* do NOT force `delay={0}`, which makes grouped tooltips fire on
|
|
20
18
|
* incidental mouse-over. Pass `delay` to override per provider.
|
|
21
19
|
*/
|
|
22
|
-
declare function TooltipProvider({
|
|
23
|
-
...props
|
|
24
|
-
}: TooltipProviderProps): _$react_jsx_runtime0.JSX.Element;
|
|
20
|
+
declare function TooltipProvider({ ...props }: TooltipProviderProps): React.JSX.Element;
|
|
25
21
|
/**
|
|
26
22
|
* Defaults to a non-hoverable popup (`disableHoverablePopup={true}`)
|
|
27
23
|
* because Wave tooltips are non-interactive labels; a hoverable popup is
|
|
28
24
|
* only needed when the tooltip contains links/controls. Pass
|
|
29
25
|
* `disableHoverablePopup={false}` for interactive tooltip content.
|
|
30
26
|
*/
|
|
31
|
-
declare function Tooltip({
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}: TooltipProps): _$react_jsx_runtime0.JSX.Element;
|
|
35
|
-
declare function TooltipTrigger({
|
|
36
|
-
children,
|
|
37
|
-
...props
|
|
38
|
-
}: TooltipTriggerProps): _$react_jsx_runtime0.JSX.Element;
|
|
39
|
-
declare function TooltipContent({
|
|
40
|
-
className,
|
|
41
|
-
positionerClassName,
|
|
42
|
-
side,
|
|
43
|
-
sideOffset,
|
|
44
|
-
align,
|
|
45
|
-
alignOffset,
|
|
46
|
-
anchor,
|
|
47
|
-
children,
|
|
48
|
-
...props
|
|
49
|
-
}: TooltipContentProps): _$react_jsx_runtime0.JSX.Element;
|
|
27
|
+
declare function Tooltip({ disableHoverablePopup, ...props }: TooltipProps): React.JSX.Element;
|
|
28
|
+
declare function TooltipTrigger({ children, ...props }: TooltipTriggerProps): React.JSX.Element;
|
|
29
|
+
declare function TooltipContent({ className, positionerClassName, side, sideOffset, align, alignOffset, anchor, children, ...props }: TooltipContentProps): React.JSX.Element;
|
|
50
30
|
//#endregion
|
|
51
31
|
export { Tooltip, TooltipContent, type TooltipContentProps, type TooltipProps, TooltipProvider, type TooltipProviderProps, TooltipTrigger, type TooltipTriggerProps };
|
package/dist/typewriter.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import { ReactElement } from "react";
|
|
3
|
-
|
|
4
2
|
//#region src/typewriter.d.ts
|
|
5
3
|
interface TextSegment {
|
|
6
4
|
text: string;
|
|
@@ -63,17 +61,6 @@ interface TypewriterProps {
|
|
|
63
61
|
* </Typewriter>
|
|
64
62
|
* ```
|
|
65
63
|
*/
|
|
66
|
-
declare function Typewriter({
|
|
67
|
-
text,
|
|
68
|
-
children,
|
|
69
|
-
speed,
|
|
70
|
-
delay,
|
|
71
|
-
cursor,
|
|
72
|
-
cursorChar,
|
|
73
|
-
onView,
|
|
74
|
-
once,
|
|
75
|
-
variant,
|
|
76
|
-
smoothDuration
|
|
77
|
-
}: TypewriterProps): _$react_jsx_runtime0.JSX.Element;
|
|
64
|
+
declare function Typewriter({ text, children, speed, delay, cursor, cursorChar, onView, once, variant, smoothDuration }: TypewriterProps): import("react").JSX.Element;
|
|
78
65
|
//#endregion
|
|
79
66
|
export { type TextSegment, Typewriter, type TypewriterProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@waveso/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"description": "Wave UI component library built on Base UI and Tailwind CSS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -42,31 +42,12 @@
|
|
|
42
42
|
"dist",
|
|
43
43
|
"package.json"
|
|
44
44
|
],
|
|
45
|
-
"scripts": {
|
|
46
|
-
"build": "tsdown",
|
|
47
|
-
"dev": "tsdown --watch",
|
|
48
|
-
"typecheck": "tsc --noEmit",
|
|
49
|
-
"lint": "biome check",
|
|
50
|
-
"lint:fix": "biome check --write",
|
|
51
|
-
"format": "biome format --write",
|
|
52
|
-
"test": "vitest run --passWithNoTests",
|
|
53
|
-
"test:watch": "vitest",
|
|
54
|
-
"check:package": "publint && attw --pack . --ignore-rules no-resolution",
|
|
55
|
-
"clean": "rm -rf dist",
|
|
56
|
-
"storybook": "storybook dev -p 6006",
|
|
57
|
-
"build-storybook": "storybook build",
|
|
58
|
-
"chromatic": "chromatic --exit-zero-on-changes",
|
|
59
|
-
"prepublishOnly": "npm run build",
|
|
60
|
-
"changeset": "changeset",
|
|
61
|
-
"version": "changeset version",
|
|
62
|
-
"release": "npm run build && changeset publish"
|
|
63
|
-
},
|
|
64
45
|
"peerDependencies": {
|
|
65
46
|
"@base-ui/react": "^1.6.0",
|
|
66
47
|
"class-variance-authority": "^0.7.0",
|
|
67
48
|
"clsx": "^2.0.0",
|
|
68
49
|
"input-otp": "^1.4.0",
|
|
69
|
-
"motion": "^12.0.0",
|
|
50
|
+
"motion": "^12.0.0 || ^13.0.0",
|
|
70
51
|
"react": "^19.0.0",
|
|
71
52
|
"react-dom": "^19.0.0",
|
|
72
53
|
"react-hook-form": "^7.0.0",
|
|
@@ -85,36 +66,56 @@
|
|
|
85
66
|
}
|
|
86
67
|
},
|
|
87
68
|
"devDependencies": {
|
|
88
|
-
"@arethetypeswrong/cli": "^0.18.
|
|
89
|
-
"@base-ui/react": "^1.
|
|
90
|
-
"@
|
|
91
|
-
"@
|
|
92
|
-
"@storybook/addon-
|
|
93
|
-
"@storybook/
|
|
94
|
-
"@
|
|
95
|
-
"@
|
|
96
|
-
"@testing-library/dom": "^
|
|
97
|
-
"@testing-library/
|
|
98
|
-
"@testing-library/
|
|
99
|
-
"@
|
|
100
|
-
"@types/react": "^19",
|
|
101
|
-
"
|
|
102
|
-
"chromatic": "^18.0.1",
|
|
69
|
+
"@arethetypeswrong/cli": "^0.18.5",
|
|
70
|
+
"@base-ui/react": "^1.8.0",
|
|
71
|
+
"@changesets/cli": "^3.0.3",
|
|
72
|
+
"@storybook/addon-a11y": "~10.6.0",
|
|
73
|
+
"@storybook/addon-docs": "~10.6.0",
|
|
74
|
+
"@storybook/react-vite": "~10.6.0",
|
|
75
|
+
"@tailwindcss/vite": "^4.3.3",
|
|
76
|
+
"@testing-library/dom": "^10.4.2",
|
|
77
|
+
"@testing-library/jest-dom": "^7.0.1",
|
|
78
|
+
"@testing-library/react": "^16.3.3",
|
|
79
|
+
"@testing-library/user-event": "^14.6.7",
|
|
80
|
+
"@types/react": "^19.3.0",
|
|
81
|
+
"@types/react-dom": "^19.3.0",
|
|
82
|
+
"chromatic": "^18.9.5",
|
|
103
83
|
"class-variance-authority": "^0.7.1",
|
|
104
84
|
"clsx": "^2.1.1",
|
|
105
|
-
"input-otp": "^1.
|
|
106
|
-
"jsdom": "^
|
|
107
|
-
"motion": "^
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"react
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
85
|
+
"input-otp": "^1.5.0",
|
|
86
|
+
"jsdom": "^30.1.1",
|
|
87
|
+
"motion": "^13.4.4",
|
|
88
|
+
"oxfmt": "0.71.0",
|
|
89
|
+
"oxlint": "^1.86.0",
|
|
90
|
+
"publint": "^0.3.24",
|
|
91
|
+
"react": "^19.3.0",
|
|
92
|
+
"react-dom": "^19.3.0",
|
|
93
|
+
"react-hook-form": "^7.89.0",
|
|
94
|
+
"storybook": "~10.6.0",
|
|
95
|
+
"tailwind-merge": "^3.7.0",
|
|
96
|
+
"tailwindcss": "^4.3.3",
|
|
97
|
+
"tsdown": "0.23.0",
|
|
98
|
+
"typescript": "^7.0.2",
|
|
99
|
+
"vite": "^8.3.1",
|
|
100
|
+
"vitest": "^5.0.2"
|
|
101
|
+
},
|
|
102
|
+
"scripts": {
|
|
103
|
+
"build": "tsdown",
|
|
104
|
+
"dev": "tsdown --watch",
|
|
105
|
+
"typecheck": "tsc --noEmit",
|
|
106
|
+
"lint": "oxlint",
|
|
107
|
+
"lint:fix": "oxlint --fix",
|
|
108
|
+
"format": "oxfmt --write '**/*.ts' '**/*.tsx'",
|
|
109
|
+
"format:check": "oxfmt --check '**/*.ts' '**/*.tsx'",
|
|
110
|
+
"test": "vitest run --passWithNoTests",
|
|
111
|
+
"test:watch": "vitest",
|
|
112
|
+
"check:package": "publint && attw --pack . --ignore-rules no-resolution",
|
|
113
|
+
"clean": "rm -rf dist",
|
|
114
|
+
"storybook": "storybook dev -p 6006",
|
|
115
|
+
"build-storybook": "storybook build",
|
|
116
|
+
"chromatic": "chromatic --exit-zero-on-changes",
|
|
117
|
+
"changeset": "changeset",
|
|
118
|
+
"version": "changeset version",
|
|
119
|
+
"release": "pnpm build && changeset publish"
|
|
119
120
|
}
|
|
120
|
-
}
|
|
121
|
+
}
|