@waveso/ui 0.8.1 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion.d.ts +2 -2
- package/dist/accordion.js +0 -1
- package/dist/action-bar.d.ts +7 -3
- package/dist/action-bar.js +5 -1
- package/dist/alert-dialog.d.ts +5 -3
- package/dist/alert-dialog.js +6 -3
- package/dist/alert.d.ts +2 -2
- package/dist/alert.js +1 -2
- package/dist/animate.d.ts +15 -5
- package/dist/animate.js +1 -1
- package/dist/aspect-ratio.d.ts +1 -1
- package/dist/aspect-ratio.js +0 -1
- package/dist/autocomplete.d.ts +2 -2
- package/dist/autocomplete.js +0 -1
- package/dist/avatar.d.ts +2 -2
- package/dist/avatar.js +0 -1
- package/dist/badge.d.ts +2 -2
- package/dist/breadcrumb.d.ts +2 -2
- package/dist/breadcrumb.js +0 -1
- package/dist/button-group.d.ts +2 -2
- package/dist/button-group.js +0 -1
- package/dist/button.d.ts +4 -4
- package/dist/button.js +2 -1
- package/dist/card.d.ts +2 -2
- package/dist/card.js +0 -1
- package/dist/checkbox.d.ts +2 -2
- package/dist/checkbox.js +0 -1
- package/dist/collapsible.d.ts +2 -2
- package/dist/collapsible.js +0 -1
- package/dist/combobox.d.ts +9 -8
- package/dist/combobox.js +1 -1
- package/dist/context-menu.d.ts +2 -2
- package/dist/context-menu.js +0 -1
- package/dist/count.d.ts +1 -1
- package/dist/count.js +2 -2
- package/dist/dialog.d.ts +5 -8
- package/dist/dialog.js +3 -8
- package/dist/direction.d.ts +6 -1
- package/dist/drawer.d.ts +7 -2
- package/dist/drawer.js +31 -29
- package/dist/encrypted-text.d.ts +2 -2
- package/dist/encrypted-text.js +1 -1
- package/dist/field.d.ts +2 -2
- package/dist/field.js +0 -1
- package/dist/film-grain.d.ts +1 -1
- package/dist/film-grain.js +0 -1
- package/dist/form.d.ts +2 -2
- package/dist/form.js +1 -1
- package/dist/gradient-reveal-text.js +2 -2
- package/dist/infinite-scroll.d.ts +4 -5
- package/dist/infinite-scroll.js +3 -2
- package/dist/input-group.d.ts +4 -4
- package/dist/input-group.js +1 -2
- package/dist/input-otp.d.ts +2 -2
- package/dist/input-otp.js +2 -2
- package/dist/input.d.ts +4 -3
- package/dist/input.js +0 -1
- package/dist/item.d.ts +4 -4
- package/dist/item.js +1 -2
- package/dist/kbd.d.ts +1 -1
- package/dist/kbd.js +0 -1
- package/dist/label.d.ts +2 -2
- package/dist/label.js +0 -1
- package/dist/lib/internal-icons.d.ts +1 -1
- package/dist/lib/internal-icons.js +0 -1
- package/dist/masonry.d.ts +2 -2
- package/dist/masonry.js +1 -1
- package/dist/menu.d.ts +2 -2
- package/dist/menu.js +0 -1
- package/dist/menubar.d.ts +2 -2
- package/dist/menubar.js +0 -1
- package/dist/pagination.d.ts +2 -2
- package/dist/pagination.js +0 -2
- package/dist/popover.d.ts +9 -2
- package/dist/popover.js +2 -3
- package/dist/preview-card.d.ts +6 -3
- package/dist/preview-card.js +2 -3
- package/dist/progress.d.ts +2 -2
- package/dist/progress.js +3 -4
- package/dist/radio-group.d.ts +2 -2
- package/dist/radio-group.js +0 -1
- package/dist/radio.d.ts +2 -2
- package/dist/radio.js +0 -1
- package/dist/scroll-area.d.ts +2 -2
- package/dist/scroll-area.js +0 -1
- package/dist/select.d.ts +2 -2
- package/dist/select.js +0 -1
- package/dist/separator.d.ts +2 -2
- package/dist/separator.js +0 -1
- package/dist/sidebar.d.ts +74 -51
- package/dist/sidebar.js +2 -2
- package/dist/skeleton.d.ts +2 -2
- package/dist/skeleton.js +0 -1
- package/dist/slider.d.ts +2 -2
- package/dist/slider.js +1 -1
- package/dist/spinner.d.ts +2 -2
- package/dist/spinner.js +0 -1
- package/dist/switch.d.ts +2 -2
- package/dist/switch.js +0 -1
- package/dist/table.d.ts +2 -2
- package/dist/table.js +0 -1
- package/dist/tabs.d.ts +2 -2
- package/dist/tabs.js +0 -1
- package/dist/textarea.d.ts +2 -2
- package/dist/textarea.js +0 -1
- package/dist/toast.d.ts +7 -6
- package/dist/toast.js +2 -2
- package/dist/toggle-group.d.ts +1 -1
- package/dist/toggle-group.js +7 -7
- package/dist/toggle.d.ts +2 -2
- package/dist/toggle.js +0 -1
- package/dist/tooltip.d.ts +2 -2
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.d.ts +1 -1
- package/dist/typewriter.js +1 -1
- package/package.json +6 -2
package/dist/popover.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "./lib/utils.js";
|
|
3
3
|
import { resolveFinalFocus } from "./lib/focus.js";
|
|
4
|
-
import "react";
|
|
5
4
|
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
import { Popover as Popover$1 } from "@base-ui/react/popover";
|
|
7
6
|
//#region src/popover.tsx
|
|
@@ -37,14 +36,14 @@ function PopoverBackdrop({ className, ...props }) {
|
|
|
37
36
|
...props
|
|
38
37
|
});
|
|
39
38
|
}
|
|
40
|
-
function PopoverContent({ className, align = "center", alignOffset = 0, side = "bottom", sideOffset = 4, anchor, restoreFocusOnClose, finalFocus, ...props }) {
|
|
39
|
+
function PopoverContent({ className, positionerClassName, align = "center", alignOffset = 0, side = "bottom", sideOffset = 4, anchor, restoreFocusOnClose, finalFocus, ...props }) {
|
|
41
40
|
return /* @__PURE__ */ jsx(PopoverPortal, { children: /* @__PURE__ */ jsx(PopoverPositioner, {
|
|
42
41
|
anchor,
|
|
43
42
|
align,
|
|
44
43
|
alignOffset,
|
|
45
44
|
side,
|
|
46
45
|
sideOffset,
|
|
47
|
-
className: "isolate z-50",
|
|
46
|
+
className: cn("isolate z-50", positionerClassName),
|
|
48
47
|
children: /* @__PURE__ */ jsx(Popover$1.Popup, {
|
|
49
48
|
"data-slot": "popover-content",
|
|
50
49
|
className: cn("motion-pop-md bg-elevated text-contrast ring-contrast/10 z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-md p-2.5 text-sm shadow-md ring-1 outline-hidden", className),
|
package/dist/preview-card.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
import { PreviewCard as PreviewCard$1 } from "@base-ui/react/preview-card";
|
|
4
4
|
|
|
5
5
|
//#region src/preview-card.d.ts
|
|
@@ -8,7 +8,9 @@ type PreviewCardTriggerProps = React.ComponentProps<typeof PreviewCard$1.Trigger
|
|
|
8
8
|
type PreviewCardPortalProps = React.ComponentProps<typeof PreviewCard$1.Portal>;
|
|
9
9
|
type PreviewCardPositionerProps = React.ComponentProps<typeof PreviewCard$1.Positioner>;
|
|
10
10
|
type PreviewCardPopupProps = React.ComponentProps<typeof PreviewCard$1.Popup>;
|
|
11
|
-
type PreviewCardContentProps = PreviewCardPopupProps & Pick<PreviewCardPositionerProps, "align" | "alignOffset" | "side" | "sideOffset" | "anchor"
|
|
11
|
+
type PreviewCardContentProps = PreviewCardPopupProps & Pick<PreviewCardPositionerProps, "align" | "alignOffset" | "side" | "sideOffset" | "anchor"> & {
|
|
12
|
+
positionerClassName?: string;
|
|
13
|
+
};
|
|
12
14
|
declare function PreviewCard({
|
|
13
15
|
...props
|
|
14
16
|
}: PreviewCardProps): _$react_jsx_runtime0.JSX.Element;
|
|
@@ -24,6 +26,7 @@ declare function PreviewCardPositioner({
|
|
|
24
26
|
}: PreviewCardPositionerProps): _$react_jsx_runtime0.JSX.Element;
|
|
25
27
|
declare function PreviewCardContent({
|
|
26
28
|
className,
|
|
29
|
+
positionerClassName,
|
|
27
30
|
side,
|
|
28
31
|
sideOffset,
|
|
29
32
|
align,
|
|
@@ -32,4 +35,4 @@ declare function PreviewCardContent({
|
|
|
32
35
|
...props
|
|
33
36
|
}: PreviewCardContentProps): _$react_jsx_runtime0.JSX.Element;
|
|
34
37
|
//#endregion
|
|
35
|
-
export { PreviewCard, PreviewCardContent, PreviewCardPortal, PreviewCardPositioner, PreviewCardTrigger };
|
|
38
|
+
export { PreviewCard, PreviewCardContent, type PreviewCardContentProps, PreviewCardPortal, type PreviewCardPortalProps, PreviewCardPositioner, type PreviewCardPositionerProps, type PreviewCardProps, PreviewCardTrigger, type PreviewCardTriggerProps };
|
package/dist/preview-card.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "./lib/utils.js";
|
|
3
|
-
import "react";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { PreviewCard as PreviewCard$1 } from "@base-ui/react/preview-card";
|
|
6
5
|
//#region src/preview-card.tsx
|
|
@@ -29,14 +28,14 @@ function PreviewCardPositioner({ className, ...props }) {
|
|
|
29
28
|
...props
|
|
30
29
|
});
|
|
31
30
|
}
|
|
32
|
-
function PreviewCardContent({ className, side = "bottom", sideOffset = 4, align = "center", alignOffset = 0, anchor, ...props }) {
|
|
31
|
+
function PreviewCardContent({ className, positionerClassName, side = "bottom", sideOffset = 4, align = "center", alignOffset = 0, anchor, ...props }) {
|
|
33
32
|
return /* @__PURE__ */ jsx(PreviewCardPortal, { children: /* @__PURE__ */ jsx(PreviewCardPositioner, {
|
|
34
33
|
anchor,
|
|
35
34
|
align,
|
|
36
35
|
alignOffset,
|
|
37
36
|
side,
|
|
38
37
|
sideOffset,
|
|
39
|
-
className: "isolate z-50",
|
|
38
|
+
className: cn("isolate z-50", positionerClassName),
|
|
40
39
|
children: /* @__PURE__ */ jsx(PreviewCard$1.Popup, {
|
|
41
40
|
"data-slot": "preview-card-content",
|
|
42
41
|
className: cn("motion-pop-md bg-elevated text-contrast ring-contrast/10 z-50 w-64 origin-(--transform-origin) rounded-md p-2.5 text-sm shadow-md ring-1 outline-hidden", className),
|
package/dist/progress.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
import { Progress as Progress$1 } from "@base-ui/react/progress";
|
|
4
4
|
|
|
5
5
|
//#region src/progress.d.ts
|
|
@@ -31,4 +31,4 @@ declare function ProgressValue({
|
|
|
31
31
|
...props
|
|
32
32
|
}: ProgressValueProps): _$react_jsx_runtime0.JSX.Element;
|
|
33
33
|
//#endregion
|
|
34
|
-
export { Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue };
|
|
34
|
+
export { Progress, ProgressIndicator, type ProgressIndicatorProps, ProgressLabel, type ProgressLabelProps, type ProgressProps, ProgressTrack, type ProgressTrackProps, ProgressValue, type ProgressValueProps };
|
package/dist/progress.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "./lib/utils.js";
|
|
3
|
-
import "react";
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { Progress as Progress$1 } from "@base-ui/react/progress";
|
|
6
5
|
//#region src/progress.tsx
|
|
7
|
-
function Progress({ className, children, value, ...props }) {
|
|
6
|
+
function Progress({ className, children, value = null, ...props }) {
|
|
8
7
|
return /* @__PURE__ */ jsxs(Progress$1.Root, {
|
|
9
8
|
value,
|
|
10
9
|
"data-slot": "progress",
|
|
11
|
-
className: cn("flex flex-wrap gap-3", className),
|
|
10
|
+
className: cn("group/progress flex flex-wrap gap-3", className),
|
|
12
11
|
...props,
|
|
13
12
|
children: [children, /* @__PURE__ */ jsx(ProgressTrack, { children: /* @__PURE__ */ jsx(ProgressIndicator, {}) })]
|
|
14
13
|
});
|
|
@@ -23,7 +22,7 @@ function ProgressTrack({ className, ...props }) {
|
|
|
23
22
|
function ProgressIndicator({ className, ...props }) {
|
|
24
23
|
return /* @__PURE__ */ jsx(Progress$1.Indicator, {
|
|
25
24
|
"data-slot": "progress-indicator",
|
|
26
|
-
className: cn("bg-primary h-full transition-[width]", className),
|
|
25
|
+
className: cn("bg-primary h-full transition-[width]", "group-data-indeterminate/progress:w-2/5 group-data-indeterminate/progress:animate-pulse", className),
|
|
27
26
|
...props
|
|
28
27
|
});
|
|
29
28
|
}
|
package/dist/radio-group.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Radio } from "./radio.js";
|
|
2
|
-
import * as React from "react";
|
|
3
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
4
|
import { RadioGroup as RadioGroup$1 } from "@base-ui/react/radio-group";
|
|
5
5
|
|
|
6
6
|
//#region src/radio-group.d.ts
|
|
@@ -14,4 +14,4 @@ declare function RadioGroupItem({
|
|
|
14
14
|
...props
|
|
15
15
|
}: RadioGroupItemProps): _$react_jsx_runtime0.JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
|
-
export { RadioGroup, RadioGroupItem };
|
|
17
|
+
export { RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps };
|
package/dist/radio-group.js
CHANGED
package/dist/radio.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
import { Radio as Radio$1 } from "@base-ui/react/radio";
|
|
4
4
|
|
|
5
5
|
//#region src/radio.d.ts
|
|
@@ -14,4 +14,4 @@ declare function RadioIndicator({
|
|
|
14
14
|
...props
|
|
15
15
|
}: RadioIndicatorProps): _$react_jsx_runtime0.JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
|
-
export { Radio, RadioIndicator };
|
|
17
|
+
export { Radio, RadioIndicator, type RadioIndicatorProps, type RadioProps };
|
package/dist/radio.js
CHANGED
package/dist/scroll-area.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
import { ScrollArea as ScrollArea$1 } from "@base-ui/react/scroll-area";
|
|
4
4
|
|
|
5
5
|
//#region src/scroll-area.d.ts
|
|
@@ -16,4 +16,4 @@ declare function ScrollBar({
|
|
|
16
16
|
...props
|
|
17
17
|
}: ScrollBarProps): _$react_jsx_runtime0.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
|
-
export { ScrollArea, ScrollBar };
|
|
19
|
+
export { ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps };
|
package/dist/scroll-area.js
CHANGED
package/dist/select.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
import { Select as Select$1 } from "@base-ui/react/select";
|
|
4
4
|
|
|
5
5
|
//#region src/select.d.ts
|
|
@@ -80,4 +80,4 @@ declare function SelectScrollDownButton({
|
|
|
80
80
|
...props
|
|
81
81
|
}: SelectScrollDownButtonProps): _$react_jsx_runtime0.JSX.Element;
|
|
82
82
|
//#endregion
|
|
83
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectList, SelectPortal, SelectPositioner, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
|
83
|
+
export { Select, SelectContent, type SelectContentProps, SelectGroup, type SelectGroupProps, SelectItem, type SelectItemProps, SelectLabel, type SelectLabelProps, SelectList, type SelectListProps, SelectPortal, type SelectPortalProps, SelectPositioner, type SelectPositionerProps, type SelectProps, SelectScrollDownButton, type SelectScrollDownButtonProps, SelectScrollUpButton, type SelectScrollUpButtonProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps };
|
package/dist/select.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "./lib/utils.js";
|
|
3
3
|
import { CheckIcon, ChevronDownIcon, ChevronUpIcon, ChevronsUpDownIcon } from "./lib/internal-icons.js";
|
|
4
|
-
import "react";
|
|
5
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
5
|
import { Select as Select$1 } from "@base-ui/react/select";
|
|
7
6
|
//#region src/select.tsx
|
package/dist/separator.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
import { Separator as Separator$1 } from "@base-ui/react/separator";
|
|
4
4
|
|
|
5
5
|
//#region src/separator.d.ts
|
|
@@ -10,4 +10,4 @@ declare function Separator({
|
|
|
10
10
|
...props
|
|
11
11
|
}: SeparatorProps): _$react_jsx_runtime0.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { Separator };
|
|
13
|
+
export { Separator, type SeparatorProps };
|
package/dist/separator.js
CHANGED
package/dist/sidebar.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { Button } from "./button.js";
|
|
|
2
2
|
import { Separator } from "./separator.js";
|
|
3
3
|
import { Input } from "./input.js";
|
|
4
4
|
import { TooltipContent } from "./tooltip.js";
|
|
5
|
-
import * as React from "react";
|
|
6
5
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
|
+
import * as React from "react";
|
|
7
7
|
import { VariantProps } from "class-variance-authority";
|
|
8
8
|
import { useRender } from "@base-ui/react/use-render";
|
|
9
9
|
import * as _$class_variance_authority_types0 from "class-variance-authority/types";
|
|
@@ -44,18 +44,7 @@ type SidebarContextProps = {
|
|
|
44
44
|
toggleSidebar: () => void;
|
|
45
45
|
};
|
|
46
46
|
declare function useSidebar(): SidebarContextProps;
|
|
47
|
-
|
|
48
|
-
defaultOpen,
|
|
49
|
-
open: openProp,
|
|
50
|
-
onOpenChange: setOpenProp,
|
|
51
|
-
persist,
|
|
52
|
-
keyboardShortcut,
|
|
53
|
-
mobileBreakpoint,
|
|
54
|
-
className,
|
|
55
|
-
style,
|
|
56
|
-
children,
|
|
57
|
-
...props
|
|
58
|
-
}: React.ComponentProps<"div"> & {
|
|
47
|
+
type SidebarProviderProps = React.ComponentProps<"div"> & {
|
|
59
48
|
defaultOpen?: boolean;
|
|
60
49
|
open?: boolean;
|
|
61
50
|
onOpenChange?: (open: boolean) => void;
|
|
@@ -74,7 +63,24 @@ declare function SidebarProvider({
|
|
|
74
63
|
persist?: (open: boolean) => void; /** Key for Cmd/Ctrl+key toggle shortcut. Defaults to "b". Pass `false` to disable. */
|
|
75
64
|
keyboardShortcut?: string | false; /** Breakpoint (px) below which the sidebar uses a mobile drawer. Defaults to 768. */
|
|
76
65
|
mobileBreakpoint?: number;
|
|
77
|
-
}
|
|
66
|
+
};
|
|
67
|
+
declare function SidebarProvider({
|
|
68
|
+
defaultOpen,
|
|
69
|
+
open: openProp,
|
|
70
|
+
onOpenChange: setOpenProp,
|
|
71
|
+
persist,
|
|
72
|
+
keyboardShortcut,
|
|
73
|
+
mobileBreakpoint,
|
|
74
|
+
className,
|
|
75
|
+
style,
|
|
76
|
+
children,
|
|
77
|
+
...props
|
|
78
|
+
}: SidebarProviderProps): _$react_jsx_runtime0.JSX.Element;
|
|
79
|
+
type SidebarProps = React.ComponentProps<"div"> & {
|
|
80
|
+
side?: "left" | "right";
|
|
81
|
+
variant?: "sidebar" | "floating" | "inset";
|
|
82
|
+
collapsible?: "offcanvas" | "icon" | "none";
|
|
83
|
+
};
|
|
78
84
|
declare function Sidebar({
|
|
79
85
|
side,
|
|
80
86
|
variant,
|
|
@@ -82,75 +88,89 @@ declare function Sidebar({
|
|
|
82
88
|
className,
|
|
83
89
|
children,
|
|
84
90
|
...props
|
|
85
|
-
}:
|
|
86
|
-
|
|
87
|
-
variant?: "sidebar" | "floating" | "inset";
|
|
88
|
-
collapsible?: "offcanvas" | "icon" | "none";
|
|
89
|
-
}): _$react_jsx_runtime0.JSX.Element;
|
|
91
|
+
}: SidebarProps): _$react_jsx_runtime0.JSX.Element;
|
|
92
|
+
type SidebarTriggerProps = React.ComponentProps<typeof Button>;
|
|
90
93
|
declare function SidebarTrigger({
|
|
91
94
|
className,
|
|
92
95
|
onClick,
|
|
93
96
|
...props
|
|
94
|
-
}:
|
|
97
|
+
}: SidebarTriggerProps): _$react_jsx_runtime0.JSX.Element;
|
|
98
|
+
type SidebarRailProps = React.ComponentProps<"button">;
|
|
95
99
|
declare function SidebarRail({
|
|
96
100
|
className,
|
|
97
101
|
...props
|
|
98
|
-
}:
|
|
102
|
+
}: SidebarRailProps): _$react_jsx_runtime0.JSX.Element;
|
|
103
|
+
type SidebarInsetProps = React.ComponentProps<"main">;
|
|
99
104
|
declare function SidebarInset({
|
|
100
105
|
className,
|
|
101
106
|
...props
|
|
102
|
-
}:
|
|
107
|
+
}: SidebarInsetProps): _$react_jsx_runtime0.JSX.Element;
|
|
108
|
+
type SidebarInputProps = React.ComponentProps<typeof Input>;
|
|
103
109
|
declare function SidebarInput({
|
|
104
110
|
className,
|
|
105
111
|
...props
|
|
106
|
-
}:
|
|
112
|
+
}: SidebarInputProps): _$react_jsx_runtime0.JSX.Element;
|
|
113
|
+
type SidebarHeaderProps = React.ComponentProps<"div">;
|
|
107
114
|
declare function SidebarHeader({
|
|
108
115
|
className,
|
|
109
116
|
...props
|
|
110
|
-
}:
|
|
117
|
+
}: SidebarHeaderProps): _$react_jsx_runtime0.JSX.Element;
|
|
118
|
+
type SidebarFooterProps = React.ComponentProps<"div">;
|
|
111
119
|
declare function SidebarFooter({
|
|
112
120
|
className,
|
|
113
121
|
...props
|
|
114
|
-
}:
|
|
122
|
+
}: SidebarFooterProps): _$react_jsx_runtime0.JSX.Element;
|
|
123
|
+
type SidebarSeparatorProps = React.ComponentProps<typeof Separator>;
|
|
115
124
|
declare function SidebarSeparator({
|
|
116
125
|
className,
|
|
117
126
|
...props
|
|
118
|
-
}:
|
|
127
|
+
}: SidebarSeparatorProps): _$react_jsx_runtime0.JSX.Element;
|
|
128
|
+
type SidebarContentProps = React.ComponentProps<"div">;
|
|
119
129
|
declare function SidebarContent({
|
|
120
130
|
className,
|
|
121
131
|
style,
|
|
122
132
|
...props
|
|
123
|
-
}:
|
|
133
|
+
}: SidebarContentProps): _$react_jsx_runtime0.JSX.Element;
|
|
134
|
+
type SidebarGroupProps = React.ComponentProps<"div">;
|
|
124
135
|
declare function SidebarGroup({
|
|
125
136
|
className,
|
|
126
137
|
...props
|
|
127
|
-
}:
|
|
138
|
+
}: SidebarGroupProps): _$react_jsx_runtime0.JSX.Element;
|
|
139
|
+
type SidebarGroupLabelProps = useRender.ComponentProps<"div"> & React.ComponentProps<"div">;
|
|
128
140
|
declare function SidebarGroupLabel({
|
|
129
141
|
className,
|
|
130
142
|
render,
|
|
131
143
|
...props
|
|
132
|
-
}:
|
|
144
|
+
}: SidebarGroupLabelProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
145
|
+
type SidebarGroupActionProps = useRender.ComponentProps<"button"> & React.ComponentProps<"button">;
|
|
133
146
|
declare function SidebarGroupAction({
|
|
134
147
|
className,
|
|
135
148
|
render,
|
|
136
149
|
...props
|
|
137
|
-
}:
|
|
150
|
+
}: SidebarGroupActionProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
151
|
+
type SidebarGroupContentProps = React.ComponentProps<"div">;
|
|
138
152
|
declare function SidebarGroupContent({
|
|
139
153
|
className,
|
|
140
154
|
...props
|
|
141
|
-
}:
|
|
155
|
+
}: SidebarGroupContentProps): _$react_jsx_runtime0.JSX.Element;
|
|
156
|
+
type SidebarMenuProps = React.ComponentProps<"ul">;
|
|
142
157
|
declare function SidebarMenu({
|
|
143
158
|
className,
|
|
144
159
|
...props
|
|
145
|
-
}:
|
|
160
|
+
}: SidebarMenuProps): _$react_jsx_runtime0.JSX.Element;
|
|
161
|
+
type SidebarMenuItemProps = React.ComponentProps<"li">;
|
|
146
162
|
declare function SidebarMenuItem({
|
|
147
163
|
className,
|
|
148
164
|
...props
|
|
149
|
-
}:
|
|
165
|
+
}: SidebarMenuItemProps): _$react_jsx_runtime0.JSX.Element;
|
|
150
166
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
151
167
|
variant?: "default" | "outline" | null | undefined;
|
|
152
168
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
153
169
|
} & _$class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
170
|
+
type SidebarMenuButtonProps = useRender.ComponentProps<"button"> & React.ComponentProps<"button"> & {
|
|
171
|
+
isActive?: boolean;
|
|
172
|
+
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
173
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>;
|
|
154
174
|
declare function SidebarMenuButton({
|
|
155
175
|
render,
|
|
156
176
|
isActive,
|
|
@@ -159,46 +179,49 @@ declare function SidebarMenuButton({
|
|
|
159
179
|
tooltip,
|
|
160
180
|
className,
|
|
161
181
|
...props
|
|
162
|
-
}:
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
}
|
|
182
|
+
}: SidebarMenuButtonProps): _$react_jsx_runtime0.JSX.Element;
|
|
183
|
+
type SidebarMenuActionProps = useRender.ComponentProps<"button"> & React.ComponentProps<"button"> & {
|
|
184
|
+
showOnHover?: boolean;
|
|
185
|
+
};
|
|
166
186
|
declare function SidebarMenuAction({
|
|
167
187
|
className,
|
|
168
188
|
render,
|
|
169
189
|
showOnHover,
|
|
170
190
|
...props
|
|
171
|
-
}:
|
|
172
|
-
|
|
173
|
-
}): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
191
|
+
}: SidebarMenuActionProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
192
|
+
type SidebarMenuBadgeProps = React.ComponentProps<"div">;
|
|
174
193
|
declare function SidebarMenuBadge({
|
|
175
194
|
className,
|
|
176
195
|
...props
|
|
177
|
-
}:
|
|
196
|
+
}: SidebarMenuBadgeProps): _$react_jsx_runtime0.JSX.Element;
|
|
197
|
+
type SidebarMenuSkeletonProps = React.ComponentProps<"div"> & {
|
|
198
|
+
showIcon?: boolean;
|
|
199
|
+
};
|
|
178
200
|
declare function SidebarMenuSkeleton({
|
|
179
201
|
className,
|
|
180
202
|
showIcon,
|
|
181
203
|
...props
|
|
182
|
-
}:
|
|
183
|
-
|
|
184
|
-
}): _$react_jsx_runtime0.JSX.Element;
|
|
204
|
+
}: SidebarMenuSkeletonProps): _$react_jsx_runtime0.JSX.Element;
|
|
205
|
+
type SidebarMenuSubProps = React.ComponentProps<"ul">;
|
|
185
206
|
declare function SidebarMenuSub({
|
|
186
207
|
className,
|
|
187
208
|
...props
|
|
188
|
-
}:
|
|
209
|
+
}: SidebarMenuSubProps): _$react_jsx_runtime0.JSX.Element;
|
|
210
|
+
type SidebarMenuSubItemProps = React.ComponentProps<"li">;
|
|
189
211
|
declare function SidebarMenuSubItem({
|
|
190
212
|
className,
|
|
191
213
|
...props
|
|
192
|
-
}:
|
|
214
|
+
}: SidebarMenuSubItemProps): _$react_jsx_runtime0.JSX.Element;
|
|
215
|
+
type SidebarMenuSubButtonProps = useRender.ComponentProps<"a"> & React.ComponentProps<"a"> & {
|
|
216
|
+
size?: "sm" | "md";
|
|
217
|
+
isActive?: boolean;
|
|
218
|
+
};
|
|
193
219
|
declare function SidebarMenuSubButton({
|
|
194
220
|
render,
|
|
195
221
|
size,
|
|
196
222
|
isActive,
|
|
197
223
|
className,
|
|
198
224
|
...props
|
|
199
|
-
}:
|
|
200
|
-
size?: "sm" | "md";
|
|
201
|
-
isActive?: boolean;
|
|
202
|
-
}): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
225
|
+
}: SidebarMenuSubButtonProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
203
226
|
//#endregion
|
|
204
|
-
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, cookiePersist, localStoragePersist, useSidebar };
|
|
227
|
+
export { Sidebar, SidebarContent, type SidebarContentProps, SidebarFooter, type SidebarFooterProps, SidebarGroup, SidebarGroupAction, type SidebarGroupActionProps, SidebarGroupContent, type SidebarGroupContentProps, SidebarGroupLabel, type SidebarGroupLabelProps, type SidebarGroupProps, SidebarHeader, type SidebarHeaderProps, SidebarInput, type SidebarInputProps, SidebarInset, type SidebarInsetProps, SidebarMenu, SidebarMenuAction, type SidebarMenuActionProps, SidebarMenuBadge, type SidebarMenuBadgeProps, SidebarMenuButton, type SidebarMenuButtonProps, SidebarMenuItem, type SidebarMenuItemProps, type SidebarMenuProps, SidebarMenuSkeleton, type SidebarMenuSkeletonProps, SidebarMenuSub, SidebarMenuSubButton, type SidebarMenuSubButtonProps, SidebarMenuSubItem, type SidebarMenuSubItemProps, type SidebarMenuSubProps, type SidebarProps, SidebarProvider, type SidebarProviderProps, SidebarRail, type SidebarRailProps, SidebarSeparator, type SidebarSeparatorProps, SidebarTrigger, type SidebarTriggerProps, cookiePersist, localStoragePersist, sidebarMenuButtonVariants, useSidebar };
|
package/dist/sidebar.js
CHANGED
|
@@ -8,8 +8,8 @@ import { Drawer, DrawerContent, DrawerDescription, DrawerHeader, DrawerTitle } f
|
|
|
8
8
|
import { Skeleton } from "./skeleton.js";
|
|
9
9
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./tooltip.js";
|
|
10
10
|
import { useIsMobile } from "./hooks/use-mobile.js";
|
|
11
|
-
import * as React from "react";
|
|
12
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
import * as React from "react";
|
|
13
13
|
import { cva } from "class-variance-authority";
|
|
14
14
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
15
15
|
import { useRender } from "@base-ui/react/use-render";
|
|
@@ -397,4 +397,4 @@ function SidebarMenuSubButton({ render, size = "md", isActive = false, className
|
|
|
397
397
|
});
|
|
398
398
|
}
|
|
399
399
|
//#endregion
|
|
400
|
-
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, cookiePersist, localStoragePersist, useSidebar };
|
|
400
|
+
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, cookiePersist, localStoragePersist, sidebarMenuButtonVariants, useSidebar };
|
package/dist/skeleton.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/skeleton.d.ts
|
|
5
5
|
type SkeletonProps = React.ComponentProps<"div">;
|
|
@@ -8,4 +8,4 @@ declare function Skeleton({
|
|
|
8
8
|
...props
|
|
9
9
|
}: SkeletonProps): _$react_jsx_runtime0.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { Skeleton };
|
|
11
|
+
export { Skeleton, type SkeletonProps };
|
package/dist/skeleton.js
CHANGED
package/dist/slider.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
import { Slider as Slider$1 } from "@base-ui/react/slider";
|
|
4
4
|
|
|
5
5
|
//#region src/slider.d.ts
|
|
@@ -25,4 +25,4 @@ declare function Slider({
|
|
|
25
25
|
...props
|
|
26
26
|
}: SliderProps): _$react_jsx_runtime0.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
|
-
export { Slider };
|
|
28
|
+
export { Slider, type SliderProps };
|
package/dist/slider.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "./lib/utils.js";
|
|
3
|
-
import * as React from "react";
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
import { Slider as Slider$1 } from "@base-ui/react/slider";
|
|
6
6
|
//#region src/slider.tsx
|
|
7
7
|
function Slider({ className, controlClassName, defaultValue, value, min = 0, max = 100, orientation = "horizontal", "aria-label": ariaLabel, getThumbAriaLabel, ...props }) {
|
package/dist/spinner.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/spinner.d.ts
|
|
5
5
|
type SpinnerProps = React.ComponentProps<"svg">;
|
|
@@ -8,4 +8,4 @@ declare function Spinner({
|
|
|
8
8
|
...props
|
|
9
9
|
}: SpinnerProps): _$react_jsx_runtime0.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { Spinner };
|
|
11
|
+
export { Spinner, type SpinnerProps };
|
package/dist/spinner.js
CHANGED
package/dist/switch.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import { Switch as Switch$1 } from "@base-ui/react/switch";
|
|
5
5
|
import * as _$class_variance_authority_types0 from "class-variance-authority/types";
|
|
@@ -15,4 +15,4 @@ declare function Switch({
|
|
|
15
15
|
...props
|
|
16
16
|
}: SwitchProps): _$react_jsx_runtime0.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
|
-
export { Switch, switchVariants };
|
|
18
|
+
export { Switch, type SwitchProps, switchVariants };
|
package/dist/switch.js
CHANGED
package/dist/table.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/table.d.ts
|
|
5
5
|
type TableProps = React.ComponentProps<"table">;
|
|
@@ -43,4 +43,4 @@ declare function TableCaption({
|
|
|
43
43
|
...props
|
|
44
44
|
}: TableCaptionProps): _$react_jsx_runtime0.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
|
-
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
46
|
+
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
package/dist/tabs.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import { Tabs as Tabs$1 } from "@base-ui/react/tabs";
|
|
5
5
|
import * as _$class_variance_authority_types0 from "class-variance-authority/types";
|
|
@@ -32,4 +32,4 @@ declare function TabsContent({
|
|
|
32
32
|
...props
|
|
33
33
|
}: TabsContentProps): _$react_jsx_runtime0.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
|
-
export { Tabs, TabsContent, TabsList, TabsTrigger, tabsListVariants };
|
|
35
|
+
export { Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, tabsListVariants };
|
package/dist/tabs.js
CHANGED
package/dist/textarea.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/textarea.d.ts
|
|
5
5
|
type TextareaProps = Omit<React.ComponentProps<"textarea">, "onChange"> & {
|
|
@@ -13,4 +13,4 @@ declare function Textarea({
|
|
|
13
13
|
...props
|
|
14
14
|
}: TextareaProps): _$react_jsx_runtime0.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { Textarea };
|
|
16
|
+
export { Textarea, type TextareaProps };
|