@waveso/ui 0.15.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -22
- package/dist/accordion.d.ts +4 -20
- package/dist/accordion.js +2 -2
- package/dist/action-bar.d.ts +1 -10
- package/dist/action-bar.js +6 -5
- package/dist/alert-dialog.d.ts +12 -52
- package/dist/alert-dialog.js +5 -5
- package/dist/alert.d.ts +13 -22
- package/dist/alert.js +13 -4
- package/dist/animate.d.ts +6 -49
- package/dist/animate.js +8 -13
- package/dist/aspect-ratio.d.ts +3 -8
- package/dist/autocomplete.d.ts +21 -88
- package/dist/autocomplete.js +3 -3
- package/dist/avatar.d.ts +7 -28
- package/dist/avatar.js +4 -4
- package/dist/badge.d.ts +3 -11
- package/dist/badge.js +6 -6
- package/dist/breadcrumb.d.ts +7 -31
- package/dist/button-group.d.ts +7 -20
- package/dist/button-group.js +5 -4
- package/dist/button.d.ts +4 -12
- package/dist/button.js +6 -6
- package/dist/card.d.ts +16 -33
- package/dist/card.js +27 -14
- package/dist/checkbox.d.ts +1 -6
- package/dist/checkbox.js +2 -2
- package/dist/collapsible.d.ts +3 -12
- package/dist/combobox.d.ts +18 -81
- package/dist/combobox.js +4 -4
- package/dist/context-menu.d.ts +17 -68
- package/dist/context-menu.js +14 -14
- package/dist/count.d.ts +1 -15
- package/dist/count.js +3 -2
- package/dist/dialog.d.ts +10 -41
- package/dist/dialog.js +5 -5
- package/dist/direction.d.ts +0 -1
- package/dist/drawer.d.ts +11 -44
- package/dist/drawer.js +1 -1
- package/dist/encrypted-text.d.ts +15 -14
- package/dist/encrypted-text.js +205 -66
- package/dist/field.d.ts +27 -30
- package/dist/field.js +36 -8
- package/dist/fieldset.d.ts +14 -0
- package/dist/fieldset.js +26 -0
- 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 +23 -42
- package/dist/form.js +7 -4
- package/dist/glyph-matrix.d.ts +25 -0
- package/dist/glyph-matrix.js +266 -0
- package/dist/gradient-reveal-text.d.ts +4 -17
- package/dist/gradient-reveal-text.js +8 -8
- 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-group.js +1 -1
- package/dist/input-otp.d.ts +4 -20
- package/dist/input-otp.js +2 -2
- package/dist/input.d.ts +3 -11
- package/dist/input.js +1 -1
- package/dist/item.d.ts +14 -51
- package/dist/item.js +17 -11
- package/dist/kbd.d.ts +3 -11
- package/dist/kbd.js +2 -2
- package/dist/label.d.ts +1 -6
- package/dist/label.js +1 -1
- package/dist/lib/focus.d.ts +3 -5
- package/dist/lib/internal-icons.d.ts +19 -22
- package/dist/lib/merge-refs.d.ts +9 -0
- package/dist/lib/merge-refs.js +16 -0
- package/dist/lib/utils.d.ts +3 -5
- package/dist/lib/utils.js +9 -1
- package/dist/masonry.d.ts +2 -16
- package/dist/masonry.js +5 -3
- package/dist/menu.d.ts +17 -65
- package/dist/menu.js +7 -7
- package/dist/menubar.d.ts +16 -55
- package/dist/menubar.js +1 -1
- package/dist/pagination.d.ts +9 -33
- package/dist/pagination.js +1 -1
- package/dist/popover.d.ts +9 -43
- package/dist/popover.js +1 -1
- package/dist/preview-card.d.ts +5 -25
- package/dist/preview-card.js +1 -1
- package/dist/progress.d.ts +5 -24
- package/dist/progress.js +2 -2
- package/dist/radio-group.d.ts +2 -9
- package/dist/radio-group.js +1 -1
- package/dist/radio.d.ts +2 -10
- package/dist/radio.js +2 -2
- package/dist/resizable.d.ts +43 -0
- package/dist/resizable.js +53 -0
- package/dist/scroll-area.d.ts +14 -13
- package/dist/scroll-area.js +26 -7
- package/dist/select.d.ts +15 -64
- package/dist/select.js +4 -4
- package/dist/separator.d.ts +1 -7
- package/dist/separator.js +1 -1
- package/dist/sidebar.d.ts +29 -126
- package/dist/sidebar.js +14 -14
- package/dist/skeleton.d.ts +1 -6
- package/dist/slider.d.ts +1 -14
- package/dist/slider.js +5 -5
- package/dist/spinner.d.ts +8 -6
- package/dist/spinner.js +24 -6
- package/dist/styles.css +575 -182
- package/dist/switch.d.ts +2 -9
- package/dist/switch.js +6 -6
- package/dist/table.d.ts +14 -34
- package/dist/table.js +40 -9
- package/dist/tabs.d.ts +5 -22
- package/dist/tabs.js +3 -3
- package/dist/textarea.d.ts +3 -12
- package/dist/textarea.js +1 -1
- package/dist/toast.d.ts +13 -39
- package/dist/toast.js +4 -4
- package/dist/toggle-group.d.ts +3 -19
- package/dist/toggle-group.js +16 -10
- package/dist/toggle.d.ts +3 -11
- package/dist/toggle.js +11 -6
- package/dist/tooltip.d.ts +6 -24
- package/dist/tooltip.js +10 -6
- package/dist/typewriter.d.ts +1 -14
- package/dist/video-text.d.ts +25 -0
- package/dist/video-text.js +147 -0
- package/package.json +57 -51
package/dist/switch.d.ts
CHANGED
|
@@ -1,18 +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 { Switch as Switch$1 } from "@base-ui/react/switch";
|
|
5
|
-
import * as _$class_variance_authority_types0 from "class-variance-authority/types";
|
|
6
|
-
|
|
7
4
|
//#region src/switch.d.ts
|
|
8
5
|
declare const switchVariants: (props?: ({
|
|
9
6
|
size?: "default" | "sm" | null | undefined;
|
|
10
|
-
} &
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
8
|
type SwitchProps = React.ComponentProps<typeof Switch$1.Root> & VariantProps<typeof switchVariants>;
|
|
12
|
-
declare function Switch({
|
|
13
|
-
className,
|
|
14
|
-
size,
|
|
15
|
-
...props
|
|
16
|
-
}: SwitchProps): _$react_jsx_runtime0.JSX.Element;
|
|
9
|
+
declare function Switch({ className, size, ...props }: SwitchProps): React.JSX.Element;
|
|
17
10
|
//#endregion
|
|
18
11
|
export { Switch, type SwitchProps, switchVariants };
|
package/dist/switch.js
CHANGED
|
@@ -4,17 +4,17 @@ import { jsx } from "react/jsx-runtime";
|
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
5
|
import { Switch as Switch$1 } from "@base-ui/react/switch";
|
|
6
6
|
//#region src/switch.tsx
|
|
7
|
-
const switchVariants = cva("cursor-clickable data-checked:bg-primary data-unchecked:bg-
|
|
7
|
+
const switchVariants = cva("@container cursor-clickable data-checked:bg-primary data-unchecked:bg-shade data-unchecked:hover:border-focus focus-visible:border-focus focus-visible:ring-focus/50 aria-invalid:ring-danger/30 aria-invalid:border-danger peer relative inline-flex shrink-0 items-center rounded-full border border-transparent motion-color outline-hidden after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 aria-invalid:ring-3 data-disabled:pointer-events-none data-disabled:opacity-30", {
|
|
8
8
|
variants: { size: {
|
|
9
|
-
default: "h-
|
|
10
|
-
sm: "h-
|
|
9
|
+
default: "h-6 w-11 p-1",
|
|
10
|
+
sm: "h-4 w-7 p-0.5"
|
|
11
11
|
} },
|
|
12
12
|
defaultVariants: { size: "default" }
|
|
13
13
|
});
|
|
14
|
-
const switchThumbVariants = cva("bg-
|
|
14
|
+
const switchThumbVariants = cva("bg-white pointer-events-none block rounded-full ring-0 transition-transform data-checked:translate-x-[calc(100cqw_-_100%)] rtl:data-checked:-translate-x-[calc(100cqw_-_100%)] data-unchecked:translate-x-0 rtl:data-unchecked:-translate-x-0", {
|
|
15
15
|
variants: { size: {
|
|
16
|
-
default: "
|
|
17
|
-
sm: "
|
|
16
|
+
default: "h-4 w-6",
|
|
17
|
+
sm: "h-3 w-4"
|
|
18
18
|
} },
|
|
19
19
|
defaultVariants: { size: "default" }
|
|
20
20
|
});
|
package/dist/table.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/table.d.ts
|
|
5
3
|
type TableProps = React.ComponentProps<"table">;
|
|
6
4
|
type TableHeaderProps = React.ComponentProps<"thead">;
|
|
@@ -10,37 +8,19 @@ type TableRowProps = React.ComponentProps<"tr">;
|
|
|
10
8
|
type TableHeadProps = React.ComponentProps<"th">;
|
|
11
9
|
type TableCellProps = React.ComponentProps<"td">;
|
|
12
10
|
type TableCaptionProps = React.ComponentProps<"caption">;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}: TableHeaderProps):
|
|
21
|
-
declare function TableBody({
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}:
|
|
25
|
-
declare function
|
|
26
|
-
|
|
27
|
-
...props
|
|
28
|
-
}: TableFooterProps): _$react_jsx_runtime0.JSX.Element;
|
|
29
|
-
declare function TableRow({
|
|
30
|
-
className,
|
|
31
|
-
...props
|
|
32
|
-
}: TableRowProps): _$react_jsx_runtime0.JSX.Element;
|
|
33
|
-
declare function TableHead({
|
|
34
|
-
className,
|
|
35
|
-
...props
|
|
36
|
-
}: TableHeadProps): _$react_jsx_runtime0.JSX.Element;
|
|
37
|
-
declare function TableCell({
|
|
38
|
-
className,
|
|
39
|
-
...props
|
|
40
|
-
}: TableCellProps): _$react_jsx_runtime0.JSX.Element;
|
|
41
|
-
declare function TableCaption({
|
|
42
|
-
className,
|
|
43
|
-
...props
|
|
44
|
-
}: TableCaptionProps): _$react_jsx_runtime0.JSX.Element;
|
|
11
|
+
/**
|
|
12
|
+
* A data table. When it's wider than its container it scrolls sideways, and
|
|
13
|
+
* only then does the container become a focusable, named region, so keyboard
|
|
14
|
+
* users can scroll it: a table that fits isn't a stray tab stop. The region
|
|
15
|
+
* takes its name from the `TableCaption`, or from the table's `aria-label`.
|
|
16
|
+
*/
|
|
17
|
+
declare function Table({ className, ...props }: TableProps): React.JSX.Element;
|
|
18
|
+
declare function TableHeader({ className, ...props }: TableHeaderProps): React.JSX.Element;
|
|
19
|
+
declare function TableBody({ className, ...props }: TableBodyProps): React.JSX.Element;
|
|
20
|
+
declare function TableFooter({ className, ...props }: TableFooterProps): React.JSX.Element;
|
|
21
|
+
declare function TableRow({ className, ...props }: TableRowProps): React.JSX.Element;
|
|
22
|
+
declare function TableHead({ className, ...props }: TableHeadProps): React.JSX.Element;
|
|
23
|
+
declare function TableCell({ className, ...props }: TableCellProps): React.JSX.Element;
|
|
24
|
+
declare function TableCaption({ className, id, ...props }: TableCaptionProps): React.JSX.Element;
|
|
45
25
|
//#endregion
|
|
46
26
|
export { Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps };
|
package/dist/table.js
CHANGED
|
@@ -1,14 +1,43 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { cn } from "./lib/utils.js";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import * as React from "react";
|
|
3
5
|
//#region src/table.tsx
|
|
6
|
+
/**
|
|
7
|
+
* A data table. When it's wider than its container it scrolls sideways, and
|
|
8
|
+
* only then does the container become a focusable, named region, so keyboard
|
|
9
|
+
* users can scroll it: a table that fits isn't a stray tab stop. The region
|
|
10
|
+
* takes its name from the `TableCaption`, or from the table's `aria-label`.
|
|
11
|
+
*/
|
|
4
12
|
function Table({ className, ...props }) {
|
|
13
|
+
const containerRef = React.useRef(null);
|
|
14
|
+
const tableRef = React.useRef(null);
|
|
15
|
+
const [isScrollable, setIsScrollable] = React.useState(false);
|
|
16
|
+
const [captionId, setCaptionId] = React.useState();
|
|
17
|
+
React.useLayoutEffect(() => {
|
|
18
|
+
const container = containerRef.current;
|
|
19
|
+
const table = tableRef.current;
|
|
20
|
+
if (!container || !table) return;
|
|
21
|
+
const measure = () => {
|
|
22
|
+
setIsScrollable(container.scrollWidth > container.clientWidth);
|
|
23
|
+
setCaptionId(table.querySelector(":scope > caption")?.id || void 0);
|
|
24
|
+
};
|
|
25
|
+
measure();
|
|
26
|
+
const observer = new ResizeObserver(measure);
|
|
27
|
+
observer.observe(container);
|
|
28
|
+
observer.observe(table);
|
|
29
|
+
return () => observer.disconnect();
|
|
30
|
+
}, []);
|
|
5
31
|
return /* @__PURE__ */ jsx("div", {
|
|
32
|
+
ref: containerRef,
|
|
6
33
|
"data-slot": "table-container",
|
|
7
|
-
role: "region",
|
|
8
|
-
"aria-
|
|
9
|
-
|
|
34
|
+
role: isScrollable ? "region" : void 0,
|
|
35
|
+
"aria-labelledby": isScrollable ? captionId : void 0,
|
|
36
|
+
"aria-label": isScrollable && !captionId ? props["aria-label"] : void 0,
|
|
37
|
+
tabIndex: isScrollable ? 0 : void 0,
|
|
10
38
|
className: "relative w-full overflow-x-auto focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-focus/50",
|
|
11
39
|
children: /* @__PURE__ */ jsx("table", {
|
|
40
|
+
ref: tableRef,
|
|
12
41
|
"data-slot": "table",
|
|
13
42
|
className: cn("w-full caption-bottom text-sm", className),
|
|
14
43
|
...props
|
|
@@ -18,7 +47,7 @@ function Table({ className, ...props }) {
|
|
|
18
47
|
function TableHeader({ className, ...props }) {
|
|
19
48
|
return /* @__PURE__ */ jsx("thead", {
|
|
20
49
|
"data-slot": "table-header",
|
|
21
|
-
className: cn("[&_tr]:border-b [&_tr]:border-
|
|
50
|
+
className: cn("[&_tr]:border-b [&_tr]:border-contour", className),
|
|
22
51
|
...props
|
|
23
52
|
});
|
|
24
53
|
}
|
|
@@ -32,33 +61,35 @@ function TableBody({ className, ...props }) {
|
|
|
32
61
|
function TableFooter({ className, ...props }) {
|
|
33
62
|
return /* @__PURE__ */ jsx("tfoot", {
|
|
34
63
|
"data-slot": "table-footer",
|
|
35
|
-
className: cn("bg-secondary/50 border-t border-
|
|
64
|
+
className: cn("bg-secondary/50 border-t border-contour font-medium [&>tr]:last:border-b-0", className),
|
|
36
65
|
...props
|
|
37
66
|
});
|
|
38
67
|
}
|
|
39
68
|
function TableRow({ className, ...props }) {
|
|
40
69
|
return /* @__PURE__ */ jsx("tr", {
|
|
41
70
|
"data-slot": "table-row",
|
|
42
|
-
className: cn("hover:bg-
|
|
71
|
+
className: cn("hover:bg-highlight data-selected:bg-primary data-selected:text-white data-selected:**:data-[slot=checkbox]:border-white data-selected:**:focus-visible:ring-white/50 border-b border-contour motion-color", className),
|
|
43
72
|
...props
|
|
44
73
|
});
|
|
45
74
|
}
|
|
46
75
|
function TableHead({ className, ...props }) {
|
|
47
76
|
return /* @__PURE__ */ jsx("th", {
|
|
48
77
|
"data-slot": "table-head",
|
|
49
|
-
className: cn("text-contrast h-
|
|
78
|
+
className: cn("text-contrast h-12 px-3 text-start align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pe-0", className),
|
|
50
79
|
...props
|
|
51
80
|
});
|
|
52
81
|
}
|
|
53
82
|
function TableCell({ className, ...props }) {
|
|
54
83
|
return /* @__PURE__ */ jsx("td", {
|
|
55
84
|
"data-slot": "table-cell",
|
|
56
|
-
className: cn("p-
|
|
85
|
+
className: cn("p-3 align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0", className),
|
|
57
86
|
...props
|
|
58
87
|
});
|
|
59
88
|
}
|
|
60
|
-
function TableCaption({ className, ...props }) {
|
|
89
|
+
function TableCaption({ className, id, ...props }) {
|
|
90
|
+
const generatedId = React.useId();
|
|
61
91
|
return /* @__PURE__ */ jsx("caption", {
|
|
92
|
+
id: id ?? generatedId,
|
|
62
93
|
"data-slot": "table-caption",
|
|
63
94
|
className: cn("text-muted mt-4 text-sm", className),
|
|
64
95
|
...props
|
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/tabs.js
CHANGED
|
@@ -4,9 +4,9 @@ import { jsx } from "react/jsx-runtime";
|
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
5
|
import { Tabs as Tabs$1 } from "@base-ui/react/tabs";
|
|
6
6
|
//#region src/tabs.tsx
|
|
7
|
-
const tabsListVariants = cva("group/tabs-list inline-flex w-fit items-center justify-center rounded-md p-
|
|
7
|
+
const tabsListVariants = cva("group/tabs-list inline-flex w-fit items-center justify-center rounded-md p-1 text-muted group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none", {
|
|
8
8
|
variants: { variant: {
|
|
9
|
-
default: "bg-
|
|
9
|
+
default: "bg-shade",
|
|
10
10
|
line: "gap-1 bg-transparent"
|
|
11
11
|
} },
|
|
12
12
|
defaultVariants: { variant: "default" }
|
|
@@ -30,7 +30,7 @@ function TabsList({ className, variant = "default", ...props }) {
|
|
|
30
30
|
function TabsTrigger({ className, ...props }) {
|
|
31
31
|
return /* @__PURE__ */ jsx(Tabs$1.Tab, {
|
|
32
32
|
"data-slot": "tabs-trigger",
|
|
33
|
-
className: cn("cursor-clickable text-
|
|
33
|
+
className: cn("cursor-clickable text-muted hover:text-contrast relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-2 rounded-sm border border-transparent px-3 py-1 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2 text-sm font-medium whitespace-nowrap motion-color outline-hidden focus-visible:border-focus focus-visible:ring-focus/50 focus-visible:ring-3 data-disabled:pointer-events-none data-disabled:opacity-30 group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start group-data-[orientation=vertical]/tabs:py-1.5 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "data-active:bg-primary data-active:text-white", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent group-data-[variant=line]/tabs-list:data-active:text-contrast", "after:bg-contrast after:absolute after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-end-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100", className),
|
|
34
34
|
...props
|
|
35
35
|
});
|
|
36
36
|
}
|
package/dist/textarea.d.ts
CHANGED
|
@@ -1,22 +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
|
-
import * as _$class_variance_authority_types0 from "class-variance-authority/types";
|
|
5
|
-
|
|
6
3
|
//#region src/textarea.d.ts
|
|
7
4
|
declare const textareaVariants: (props?: ({
|
|
8
|
-
size?: "default" | "
|
|
9
|
-
} &
|
|
5
|
+
size?: "default" | "lg" | "sm" | "xs" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
7
|
type TextareaProps = Omit<React.ComponentProps<"textarea">, "onChange"> & {
|
|
11
8
|
onChange?: React.ChangeEventHandler<HTMLTextAreaElement>;
|
|
12
9
|
onValueChange?: (value: string) => void;
|
|
13
10
|
} & VariantProps<typeof textareaVariants>;
|
|
14
|
-
declare function Textarea({
|
|
15
|
-
className,
|
|
16
|
-
size,
|
|
17
|
-
onChange,
|
|
18
|
-
onValueChange,
|
|
19
|
-
...props
|
|
20
|
-
}: TextareaProps): _$react_jsx_runtime0.JSX.Element;
|
|
11
|
+
declare function Textarea({ className, size, onChange, onValueChange, ...props }: TextareaProps): React.JSX.Element;
|
|
21
12
|
//#endregion
|
|
22
13
|
export { Textarea, type TextareaProps, textareaVariants };
|
package/dist/textarea.js
CHANGED
|
@@ -3,7 +3,7 @@ import { cn } from "./lib/utils.js";
|
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
5
|
//#region src/textarea.tsx
|
|
6
|
-
const textareaVariants = cva("bg-
|
|
6
|
+
const textareaVariants = cva("bg-shade hover:border-focus focus-visible:border-focus focus-visible:ring-focus/50 aria-invalid:ring-danger/30 aria-invalid:border-danger 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
7
|
variants: { size: {
|
|
8
8
|
xs: "min-h-12 rounded-sm px-2 py-1 text-xs",
|
|
9
9
|
sm: "min-h-14 px-3 py-1.5 text-sm",
|
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/toast.js
CHANGED
|
@@ -8,11 +8,11 @@ import { Toast as Toast$1 } from "@base-ui/react/toast";
|
|
|
8
8
|
//#region src/toast.tsx
|
|
9
9
|
const toastRootClass = "bg-elevated text-contrast ring-contrast/10 rounded-md p-4 text-sm shadow-md ring-1 outline-hidden";
|
|
10
10
|
const toastIconVariants = cva("mt-0.5 size-4 shrink-0", { variants: { type: {
|
|
11
|
-
loading: "text-muted
|
|
11
|
+
loading: "text-muted motion-spin-sm",
|
|
12
12
|
success: "text-success",
|
|
13
13
|
info: "text-info",
|
|
14
14
|
warning: "text-warning",
|
|
15
|
-
error: "text-
|
|
15
|
+
error: "text-danger"
|
|
16
16
|
} } });
|
|
17
17
|
const toastViewportVariants = cva("fixed z-[100] flex w-full outline-hidden sm:max-w-sm", {
|
|
18
18
|
variants: { position: {
|
|
@@ -113,14 +113,14 @@ function ToastDescription({ className, ...props }) {
|
|
|
113
113
|
function ToastAction({ className, ...props }) {
|
|
114
114
|
return /* @__PURE__ */ jsx(Toast$1.Action, {
|
|
115
115
|
"data-slot": "toast-action",
|
|
116
|
-
className: cn("hover:bg-
|
|
116
|
+
className: cn("hover:bg-highlight inline-flex h-7 items-center rounded-md border border-contour px-2.5 text-xs font-medium transition-colors outline-hidden focus-visible:border-focus focus-visible:ring-focus/50 focus-visible:ring-3", className),
|
|
117
117
|
...props
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
function ToastClose({ className, children, ...props }) {
|
|
121
121
|
return /* @__PURE__ */ jsx(Toast$1.Close, {
|
|
122
122
|
"data-slot": "toast-close",
|
|
123
|
-
className: cn("text-muted hover:text-contrast shrink-0 rounded-md p-0.5 transition-colors outline-hidden focus-visible:ring-focus/50 focus-visible:ring-3", className),
|
|
123
|
+
className: cn("text-muted hover:bg-highlight hover:text-contrast shrink-0 rounded-md p-0.5 transition-colors outline-hidden focus-visible:ring-focus/50 focus-visible:ring-3", className),
|
|
124
124
|
...props,
|
|
125
125
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(CloseIcon, { className: "size-4" }), /* @__PURE__ */ jsx("span", {
|
|
126
126
|
className: "sr-only",
|
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
|
@@ -9,10 +9,21 @@ import { ToggleGroup as ToggleGroup$1 } from "@base-ui/react/toggle-group";
|
|
|
9
9
|
const ToggleGroupContext = React.createContext({
|
|
10
10
|
size: void 0,
|
|
11
11
|
variant: void 0,
|
|
12
|
-
spacing:
|
|
12
|
+
spacing: 2,
|
|
13
13
|
orientation: "horizontal"
|
|
14
14
|
});
|
|
15
|
-
function ToggleGroup({ className, variant, size, spacing =
|
|
15
|
+
function ToggleGroup({ className, variant, size, spacing = 2, 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
|
});
|
|
@@ -43,7 +49,7 @@ function ToggleGroupItem({ className, children, variant = "default", size = "def
|
|
|
43
49
|
"data-variant": context.variant ?? variant,
|
|
44
50
|
"data-size": context.size ?? size,
|
|
45
51
|
"data-spacing": context.spacing,
|
|
46
|
-
className: cn("shrink-0 group-data-[spacing=0]/toggle-group:
|
|
52
|
+
className: cn("shrink-0 group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:data-[variant=outline]:not-first:rounded-l-none group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:data-[variant=outline]:not-last:rounded-r-none group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:data-[variant=outline]:not-first:rounded-t-none group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:data-[variant=outline]:not-last:rounded-b-none group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t", toggleVariants({
|
|
47
53
|
variant: context.variant ?? variant,
|
|
48
54
|
size: context.size ?? size
|
|
49
55
|
}), className),
|
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" | "sm" | "lg" | null | undefined;
|
|
11
|
-
} &
|
|
7
|
+
size?: "default" | "icon" | "icon-lg" | "icon-sm" | "icon-xs" | "lg" | "sm" | "xs" | 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/toggle.js
CHANGED
|
@@ -4,16 +4,21 @@ import { jsx } from "react/jsx-runtime";
|
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
5
|
import { Toggle as Toggle$1 } from "@base-ui/react/toggle";
|
|
6
6
|
//#region src/toggle.tsx
|
|
7
|
-
const toggleVariants = cva("cursor-clickable
|
|
7
|
+
const toggleVariants = cva("cursor-clickable focus-visible:border-focus focus-visible:ring-focus/50 aria-invalid:ring-danger/30 aria-invalid:border-danger rounded-md border border-transparent bg-clip-padding font-medium focus-visible:ring-3 aria-invalid:ring-3 [&_svg:not([class*='size-'])]:size-4 inline-flex items-center justify-center whitespace-nowrap motion-color data-disabled:pointer-events-none data-disabled:opacity-30 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-hidden group/toggle select-none active:scale-[0.97]", {
|
|
8
8
|
variants: {
|
|
9
9
|
variant: {
|
|
10
|
-
default: "bg-
|
|
11
|
-
outline: "border-
|
|
10
|
+
default: "text-contrast hover:bg-highlight data-pressed:bg-primary data-pressed:text-white data-pressed:hover:bg-primary/80 not-supports-backdrop-filter:data-pressed:hover:bg-primary/90 data-pressed:hover:backdrop-blur-xl data-pressed:hover:backdrop-saturate-150",
|
|
11
|
+
outline: "border-shade bg-foundation hover:bg-highlight hover:text-contrast data-pressed:border-primary data-pressed:bg-primary data-pressed:text-white data-pressed:hover:bg-primary/80 not-supports-backdrop-filter:data-pressed:hover:bg-primary/90 data-pressed:hover:backdrop-blur-xl data-pressed:hover:backdrop-saturate-150"
|
|
12
12
|
},
|
|
13
13
|
size: {
|
|
14
|
-
default: "h-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
default: "h-9 min-w-9 gap-1.5 px-3 text-base has-data-[icon=inline-end]:pe-2.5 has-data-[icon=inline-start]:ps-2.5",
|
|
15
|
+
xs: "h-6 min-w-6 gap-1 rounded-sm px-2 text-xs has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2 [&_svg:not([class*='size-'])]:size-3",
|
|
16
|
+
sm: "h-8 min-w-8 gap-1 px-3 text-sm has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2",
|
|
17
|
+
lg: "h-11 min-w-11 gap-1.5 px-4 text-lg has-data-[icon=inline-end]:pe-3 has-data-[icon=inline-start]:ps-3",
|
|
18
|
+
icon: "size-9",
|
|
19
|
+
"icon-xs": "size-6 rounded-sm in-data-[slot=toggle-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
|
|
20
|
+
"icon-sm": "size-8",
|
|
21
|
+
"icon-lg": "size-11"
|
|
17
22
|
}
|
|
18
23
|
},
|
|
19
24
|
defaultVariants: {
|
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>;
|
|
@@ -13,39 +11,23 @@ type TooltipContentProps = React.ComponentProps<typeof Tooltip$1.Popup> & {
|
|
|
13
11
|
alignOffset?: React.ComponentProps<typeof Tooltip$1.Positioner>["alignOffset"];
|
|
14
12
|
anchor?: React.ComponentProps<typeof Tooltip$1.Positioner>["anchor"];
|
|
15
13
|
positionerClassName?: string;
|
|
14
|
+
/** Render the pointer arrow. Defaults to `false`. */
|
|
15
|
+
arrow?: boolean;
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* Inherits Base UI's 600ms open delay (hover-intent) — we deliberately
|
|
19
19
|
* do NOT force `delay={0}`, which makes grouped tooltips fire on
|
|
20
20
|
* incidental mouse-over. Pass `delay` to override per provider.
|
|
21
21
|
*/
|
|
22
|
-
declare function TooltipProvider({
|
|
23
|
-
...props
|
|
24
|
-
}: TooltipProviderProps): _$react_jsx_runtime0.JSX.Element;
|
|
22
|
+
declare function TooltipProvider({ ...props }: TooltipProviderProps): React.JSX.Element;
|
|
25
23
|
/**
|
|
26
24
|
* Defaults to a non-hoverable popup (`disableHoverablePopup={true}`)
|
|
27
25
|
* because Wave tooltips are non-interactive labels; a hoverable popup is
|
|
28
26
|
* only needed when the tooltip contains links/controls. Pass
|
|
29
27
|
* `disableHoverablePopup={false}` for interactive tooltip content.
|
|
30
28
|
*/
|
|
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;
|
|
29
|
+
declare function Tooltip({ disableHoverablePopup, ...props }: TooltipProps): React.JSX.Element;
|
|
30
|
+
declare function TooltipTrigger({ children, ...props }: TooltipTriggerProps): React.JSX.Element;
|
|
31
|
+
declare function TooltipContent({ className, positionerClassName, side, sideOffset, align, alignOffset, anchor, arrow, children, ...props }: TooltipContentProps): React.JSX.Element;
|
|
50
32
|
//#endregion
|
|
51
33
|
export { Tooltip, TooltipContent, type TooltipContentProps, type TooltipProps, TooltipProvider, type TooltipProviderProps, TooltipTrigger, type TooltipTriggerProps };
|