@waveso/ui 0.8.0 → 0.9.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/dist/accordion.d.ts +1 -1
- package/dist/accordion.js +1 -1
- package/dist/action-bar.d.ts +5 -1
- package/dist/action-bar.js +5 -1
- package/dist/alert-dialog.d.ts +4 -2
- package/dist/alert-dialog.js +8 -4
- package/dist/alert.d.ts +1 -1
- package/dist/alert.js +1 -1
- package/dist/animate.d.ts +14 -4
- package/dist/autocomplete.d.ts +1 -1
- package/dist/autocomplete.js +4 -4
- package/dist/avatar.d.ts +1 -1
- package/dist/badge.d.ts +2 -2
- package/dist/breadcrumb.d.ts +1 -1
- package/dist/button-group.d.ts +3 -3
- package/dist/button-group.js +1 -0
- package/dist/button.d.ts +3 -3
- package/dist/button.js +3 -1
- package/dist/card.d.ts +1 -1
- package/dist/checkbox.d.ts +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/collapsible.d.ts +1 -1
- package/dist/combobox.d.ts +8 -7
- package/dist/combobox.js +2 -2
- package/dist/context-menu.d.ts +1 -1
- package/dist/context-menu.js +2 -2
- package/dist/dialog.d.ts +4 -7
- package/dist/dialog.js +4 -8
- package/dist/direction.d.ts +7 -2
- package/dist/drawer.d.ts +6 -1
- package/dist/drawer.js +31 -28
- package/dist/encrypted-text.d.ts +1 -1
- package/dist/form.d.ts +1 -1
- package/dist/infinite-scroll.d.ts +4 -5
- package/dist/infinite-scroll.js +2 -1
- package/dist/input-group.d.ts +3 -3
- package/dist/input-group.js +3 -3
- package/dist/input-otp.d.ts +1 -1
- package/dist/input-otp.js +1 -1
- package/dist/input.d.ts +3 -2
- package/dist/input.js +1 -1
- package/dist/item.d.ts +2 -2
- package/dist/item.js +2 -2
- package/dist/kbd.d.ts +1 -0
- package/dist/kbd.js +1 -0
- package/dist/label.d.ts +1 -1
- package/dist/lib/internal-icons.d.ts +2 -8
- package/dist/lib/internal-icons.js +3 -10
- package/dist/masonry.d.ts +1 -1
- package/dist/menu.d.ts +1 -1
- package/dist/menu.js +2 -2
- package/dist/menubar.d.ts +1 -1
- package/dist/pagination.d.ts +1 -1
- package/dist/popover.d.ts +8 -1
- package/dist/popover.js +2 -2
- package/dist/preview-card.d.ts +5 -2
- package/dist/preview-card.js +2 -2
- package/dist/progress.d.ts +1 -1
- package/dist/progress.js +3 -3
- package/dist/radio-group.d.ts +1 -1
- package/dist/radio.d.ts +1 -1
- package/dist/radio.js +1 -1
- package/dist/scroll-area.d.ts +1 -1
- package/dist/scroll-area.js +1 -1
- package/dist/select.d.ts +1 -1
- package/dist/select.js +1 -1
- package/dist/separator.d.ts +1 -1
- package/dist/sidebar.d.ts +73 -50
- package/dist/sidebar.js +2 -2
- package/dist/skeleton.d.ts +2 -1
- package/dist/skeleton.js +1 -0
- package/dist/slider.d.ts +1 -1
- package/dist/spinner.d.ts +2 -1
- package/dist/spinner.js +1 -0
- package/dist/styles.css +13 -9
- package/dist/switch.d.ts +1 -1
- package/dist/switch.js +1 -1
- package/dist/table.d.ts +1 -1
- package/dist/tabs.d.ts +1 -1
- package/dist/tabs.js +1 -1
- package/dist/textarea.d.ts +1 -1
- package/dist/textarea.js +1 -1
- package/dist/toast.d.ts +6 -5
- package/dist/toast.js +4 -4
- package/dist/toggle-group.d.ts +1 -1
- package/dist/toggle-group.js +6 -6
- package/dist/toggle.d.ts +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tooltip.d.ts +1 -1
- package/package.json +1 -1
package/dist/drawer.js
CHANGED
|
@@ -37,35 +37,38 @@ function DrawerOverlay({ className, ...props }) {
|
|
|
37
37
|
...props
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
return /* @__PURE__ */
|
|
40
|
+
function DrawerViewport({ className, ...props }) {
|
|
41
|
+
return /* @__PURE__ */ jsx(Drawer$1.Viewport, {
|
|
42
42
|
"data-slot": "drawer-viewport",
|
|
43
|
-
className: "fixed inset-0 z-50 outline-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
43
|
+
className: cn("fixed inset-0 z-50 outline-hidden", className),
|
|
44
|
+
...props
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function DrawerContent({ className, children, showCloseButton = false, ...props }) {
|
|
48
|
+
return /* @__PURE__ */ jsxs(DrawerPortal, { children: [/* @__PURE__ */ jsx(DrawerOverlay, {}), /* @__PURE__ */ jsx(DrawerViewport, { children: /* @__PURE__ */ jsxs(Drawer$1.Popup, {
|
|
49
|
+
"data-slot": "drawer-content",
|
|
50
|
+
className: cn("group/drawer-content bg-foundation fixed z-50 flex flex-col overflow-y-auto border-edge text-sm shadow-lg outline-hidden", "transition-[translate] duration-(--duration-lg) ease-(--ease) data-[swiping]:duration-0", "data-[swipe-direction=down]:inset-x-0 data-[swipe-direction=down]:bottom-0 data-[swipe-direction=down]:mt-24 data-[swipe-direction=down]:max-h-[80vh] data-[swipe-direction=down]:rounded-t-lg data-[swipe-direction=down]:border-t", "data-[swipe-direction=up]:inset-x-0 data-[swipe-direction=up]:top-0 data-[swipe-direction=up]:mb-24 data-[swipe-direction=up]:max-h-[80vh] data-[swipe-direction=up]:rounded-b-lg data-[swipe-direction=up]:border-b", "data-[swipe-direction=left]:inset-y-0 data-[swipe-direction=left]:left-0 data-[swipe-direction=left]:w-3/4 data-[swipe-direction=left]:rounded-r-lg data-[swipe-direction=left]:border-r data-[swipe-direction=left]:sm:max-w-sm", "data-[swipe-direction=right]:inset-y-0 data-[swipe-direction=right]:right-0 data-[swipe-direction=right]:w-3/4 data-[swipe-direction=right]:rounded-l-lg data-[swipe-direction=right]:border-l data-[swipe-direction=right]:sm:max-w-sm", "data-[swipe-direction=down]:data-[starting-style]:translate-y-full data-[swipe-direction=down]:data-[ending-style]:translate-y-full", "data-[swipe-direction=up]:data-[starting-style]:-translate-y-full data-[swipe-direction=up]:data-[ending-style]:-translate-y-full", "data-[swipe-direction=left]:data-[starting-style]:-translate-x-full data-[swipe-direction=left]:data-[ending-style]:-translate-x-full", "data-[swipe-direction=right]:data-[starting-style]:translate-x-full data-[swipe-direction=right]:data-[ending-style]:translate-x-full", className),
|
|
51
|
+
...props,
|
|
52
|
+
children: [
|
|
53
|
+
/* @__PURE__ */ jsx("div", {
|
|
54
|
+
"data-slot": "drawer-drag-handle",
|
|
55
|
+
className: "bg-secondary mx-auto mt-4 hidden h-1 w-[100px] shrink-0 rounded-full group-data-[swipe-direction=down]/drawer-content:block"
|
|
56
|
+
}),
|
|
57
|
+
children,
|
|
58
|
+
showCloseButton && /* @__PURE__ */ jsxs(Drawer$1.Close, {
|
|
59
|
+
"data-slot": "drawer-close",
|
|
60
|
+
render: /* @__PURE__ */ jsx(Button, {
|
|
61
|
+
variant: "ghost",
|
|
62
|
+
className: "absolute top-2 right-2",
|
|
63
|
+
size: "icon-sm"
|
|
52
64
|
}),
|
|
53
|
-
children,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}),
|
|
61
|
-
children: [/* @__PURE__ */ jsx(CloseIcon, {}), /* @__PURE__ */ jsx("span", {
|
|
62
|
-
className: "sr-only",
|
|
63
|
-
children: "Close"
|
|
64
|
-
})]
|
|
65
|
-
})
|
|
66
|
-
]
|
|
67
|
-
})
|
|
68
|
-
})] });
|
|
65
|
+
children: [/* @__PURE__ */ jsx(CloseIcon, {}), /* @__PURE__ */ jsx("span", {
|
|
66
|
+
className: "sr-only",
|
|
67
|
+
children: "Close"
|
|
68
|
+
})]
|
|
69
|
+
})
|
|
70
|
+
]
|
|
71
|
+
}) })] });
|
|
69
72
|
}
|
|
70
73
|
function DrawerHeader({ className, ...props }) {
|
|
71
74
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -96,4 +99,4 @@ function DrawerDescription({ className, ...props }) {
|
|
|
96
99
|
});
|
|
97
100
|
}
|
|
98
101
|
//#endregion
|
|
99
|
-
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
102
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DrawerViewport };
|
package/dist/encrypted-text.d.ts
CHANGED
package/dist/form.d.ts
CHANGED
|
@@ -94,4 +94,4 @@ declare function fieldControlProps<TFieldValues extends FieldValues, TName exten
|
|
|
94
94
|
onChange: (...event: any[]) => void;
|
|
95
95
|
};
|
|
96
96
|
//#endregion
|
|
97
|
-
export { Form, FormActions, FormError, FormField, type FormFieldProps, type FormFieldRenderArgs, FormMessage, FormRoot, fieldControlProps, useForm, useWatch };
|
|
97
|
+
export { Form, FormActions, type FormActionsProps, FormError, type FormErrorProps, FormField, type FormFieldProps, type FormFieldRenderArgs, FormMessage, type FormMessageProps, type FormProps, FormRoot, type FormRootProps, fieldControlProps, useForm, useWatch };
|
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/infinite-scroll.d.ts
|
|
5
|
-
type InfiniteScrollProps = {
|
|
5
|
+
type InfiniteScrollProps = React.ComponentProps<"div"> & {
|
|
6
6
|
onLoadMore: () => void;
|
|
7
7
|
hasMore: boolean;
|
|
8
8
|
isLoading?: boolean;
|
|
@@ -12,8 +12,6 @@ type InfiniteScrollProps = {
|
|
|
12
12
|
threshold?: number;
|
|
13
13
|
loader?: React.ReactNode;
|
|
14
14
|
endMessage?: React.ReactNode;
|
|
15
|
-
className?: string;
|
|
16
|
-
children?: React.ReactNode;
|
|
17
15
|
};
|
|
18
16
|
declare function InfiniteScroll({
|
|
19
17
|
onLoadMore,
|
|
@@ -26,7 +24,8 @@ declare function InfiniteScroll({
|
|
|
26
24
|
loader,
|
|
27
25
|
endMessage,
|
|
28
26
|
className,
|
|
29
|
-
children
|
|
27
|
+
children,
|
|
28
|
+
...props
|
|
30
29
|
}: InfiniteScrollProps): _$react_jsx_runtime0.JSX.Element;
|
|
31
30
|
//#endregion
|
|
32
|
-
export { InfiniteScroll,
|
|
31
|
+
export { InfiniteScroll, InfiniteScrollProps };
|
package/dist/infinite-scroll.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Spinner } from "./spinner.js";
|
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/infinite-scroll.tsx
|
|
7
|
-
function InfiniteScroll({ onLoadMore, hasMore, isLoading = false, direction = "down", root, rootMargin = "200px", threshold = 0, loader, endMessage, className, children }) {
|
|
7
|
+
function InfiniteScroll({ onLoadMore, hasMore, isLoading = false, direction = "down", root, rootMargin = "200px", threshold = 0, loader, endMessage, className, children, ...props }) {
|
|
8
8
|
const sentinelRef = React.useRef(null);
|
|
9
9
|
const onLoadMoreRef = React.useRef(onLoadMore);
|
|
10
10
|
React.useEffect(() => {
|
|
@@ -49,6 +49,7 @@ function InfiniteScroll({ onLoadMore, hasMore, isLoading = false, direction = "d
|
|
|
49
49
|
className: "h-px"
|
|
50
50
|
});
|
|
51
51
|
return /* @__PURE__ */ jsxs("div", {
|
|
52
|
+
...props,
|
|
52
53
|
"data-slot": "infinite-scroll",
|
|
53
54
|
"aria-busy": isLoading,
|
|
54
55
|
className: cn("flex flex-col", className),
|
package/dist/input-group.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ declare function InputGroup({
|
|
|
18
18
|
...props
|
|
19
19
|
}: InputGroupProps): _$react_jsx_runtime0.JSX.Element;
|
|
20
20
|
declare const inputGroupAddonVariants: (props?: ({
|
|
21
|
-
align?: "inline-
|
|
21
|
+
align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
|
|
22
22
|
} & _$class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
23
23
|
declare function InputGroupAddon({
|
|
24
24
|
className,
|
|
@@ -26,7 +26,7 @@ declare function InputGroupAddon({
|
|
|
26
26
|
...props
|
|
27
27
|
}: InputGroupAddonProps): _$react_jsx_runtime0.JSX.Element;
|
|
28
28
|
declare const inputGroupButtonVariants: (props?: ({
|
|
29
|
-
size?: "
|
|
29
|
+
size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
|
|
30
30
|
} & _$class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
31
31
|
declare function InputGroupButton({
|
|
32
32
|
className,
|
|
@@ -48,4 +48,4 @@ declare function InputGroupTextarea({
|
|
|
48
48
|
...props
|
|
49
49
|
}: InputGroupTextareaProps): _$react_jsx_runtime0.JSX.Element;
|
|
50
50
|
//#endregion
|
|
51
|
-
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea };
|
|
51
|
+
export { InputGroup, InputGroupAddon, InputGroupAddonProps, InputGroupButton, InputGroupButtonProps, InputGroupInput, InputGroupInputProps, InputGroupProps, InputGroupText, InputGroupTextProps, InputGroupTextarea, InputGroupTextareaProps, inputGroupAddonVariants, inputGroupButtonVariants };
|
package/dist/input-group.js
CHANGED
|
@@ -11,7 +11,7 @@ function InputGroup({ className, ...props }) {
|
|
|
11
11
|
return /* @__PURE__ */ jsx("div", {
|
|
12
12
|
"data-slot": "input-group",
|
|
13
13
|
role: "group",
|
|
14
|
-
className: cn("border-edge dark:bg-edge/30 has-[[data-slot=input-group-control]:focus-visible]:border-focus has-[[data-slot=input-group-control]:focus-visible]:ring-focus/50 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-disabled:bg-edge/50 dark:has-disabled:bg-edge/80 group/input-group relative flex h-8 w-full min-w-0 items-center rounded-md border transition-colors outline-
|
|
14
|
+
className: cn("border-edge dark:bg-edge/30 has-[[data-slot=input-group-control]:focus-visible]:border-focus has-[[data-slot=input-group-control]:focus-visible]:ring-focus/50 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-disabled:bg-edge/50 dark:has-disabled:bg-edge/80 group/input-group relative flex h-8 w-full min-w-0 items-center rounded-md border transition-colors outline-hidden in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:pointer-events-none has-disabled:cursor-not-allowed has-disabled:opacity-50 not-has-disabled:has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-3 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5", className),
|
|
15
15
|
...props
|
|
16
16
|
});
|
|
17
17
|
}
|
|
@@ -40,7 +40,7 @@ function InputGroupAddon({ className, align = "inline-start", ...props }) {
|
|
|
40
40
|
const inputGroupButtonVariants = cva("gap-2 text-sm shadow-none flex items-center", {
|
|
41
41
|
variants: { size: {
|
|
42
42
|
xs: "h-6 gap-1 rounded-sm px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
|
|
43
|
-
sm: "",
|
|
43
|
+
sm: "h-7 gap-1.5 rounded-sm px-2 [&>svg:not([class*='size-'])]:size-4",
|
|
44
44
|
"icon-xs": "size-6 rounded-sm p-0",
|
|
45
45
|
"icon-sm": "size-8 p-0"
|
|
46
46
|
} },
|
|
@@ -77,4 +77,4 @@ function InputGroupTextarea({ className, ...props }) {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
//#endregion
|
|
80
|
-
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea };
|
|
80
|
+
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, inputGroupAddonVariants, inputGroupButtonVariants };
|
package/dist/input-otp.d.ts
CHANGED
|
@@ -30,4 +30,4 @@ declare function InputOTPSeparator({
|
|
|
30
30
|
...props
|
|
31
31
|
}: InputOTPSeparatorProps): _$react_jsx_runtime0.JSX.Element;
|
|
32
32
|
//#endregion
|
|
33
|
-
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
|
33
|
+
export { InputOTP, InputOTPGroup, InputOTPGroupProps, InputOTPProps, InputOTPSeparator, InputOTPSeparatorProps, InputOTPSlot, InputOTPSlotProps };
|
package/dist/input-otp.js
CHANGED
|
@@ -26,7 +26,7 @@ function InputOTPSlot({ index, className, ...props }) {
|
|
|
26
26
|
return /* @__PURE__ */ jsxs("div", {
|
|
27
27
|
"data-slot": "input-otp-slot",
|
|
28
28
|
"data-active": isActive || void 0,
|
|
29
|
-
className: cn("border-edge dark:bg-edge/30 relative flex size-9 items-center justify-center border-y border-r text-sm motion-color outline-
|
|
29
|
+
className: cn("border-edge dark:bg-edge/30 relative flex size-9 items-center justify-center border-y border-r text-sm motion-color outline-hidden first:rounded-l-md first:border-l last:rounded-r-md", "data-active:border-focus data-active:ring-3 data-active:ring-focus/50 data-active:z-10", "group-has-aria-invalid/input-otp:border-destructive group-has-aria-invalid/input-otp:data-active:ring-3 group-has-aria-invalid/input-otp:data-active:ring-destructive/20 dark:group-has-aria-invalid/input-otp:data-active:ring-destructive/40", className),
|
|
30
30
|
...props,
|
|
31
31
|
children: [char, hasFakeCaret && /* @__PURE__ */ jsx("div", {
|
|
32
32
|
className: "pointer-events-none absolute inset-0 flex items-center justify-center",
|
package/dist/input.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import { Input as Input$1 } from "@base-ui/react/input";
|
|
3
4
|
|
|
4
5
|
//#region src/input.d.ts
|
|
5
|
-
type InputProps = React.ComponentProps<
|
|
6
|
+
type InputProps = React.ComponentProps<typeof Input$1>;
|
|
6
7
|
declare function Input({
|
|
7
8
|
className,
|
|
8
9
|
type,
|
|
9
10
|
...props
|
|
10
11
|
}: InputProps): _$react_jsx_runtime0.JSX.Element;
|
|
11
12
|
//#endregion
|
|
12
|
-
export { Input };
|
|
13
|
+
export { Input, InputProps };
|
package/dist/input.js
CHANGED
|
@@ -7,7 +7,7 @@ function Input({ className, type, ...props }) {
|
|
|
7
7
|
return /* @__PURE__ */ jsx(Input$1, {
|
|
8
8
|
type,
|
|
9
9
|
"data-slot": "input",
|
|
10
|
-
className: cn("dark:bg-edge/30 border-edge focus-visible:border-focus focus-visible:ring-focus/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-edge/50 dark:disabled:bg-edge/80 file:text-contrast placeholder:text-soft h-8 w-full min-w-0 rounded-md border bg-transparent px-2.5 py-1 text-base transition-colors outline-
|
|
10
|
+
className: cn("dark:bg-edge/30 border-edge focus-visible:border-focus focus-visible:ring-focus/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-edge/50 dark:disabled:bg-edge/80 file:text-contrast placeholder:text-soft h-8 w-full min-w-0 rounded-md border bg-transparent px-2.5 py-1 text-base transition-colors outline-hidden file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-3 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 md:text-sm", className),
|
|
11
11
|
...props
|
|
12
12
|
});
|
|
13
13
|
}
|
package/dist/item.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import * as _$class_variance_authority_types0 from "class-variance-authority/typ
|
|
|
8
8
|
//#region src/item.d.ts
|
|
9
9
|
declare const itemVariants: (props?: ({
|
|
10
10
|
variant?: "default" | "outline" | "muted" | null | undefined;
|
|
11
|
-
size?: "default" | "
|
|
11
|
+
size?: "default" | "sm" | "xs" | null | undefined;
|
|
12
12
|
} & _$class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
13
13
|
declare const itemMediaVariants: (props?: ({
|
|
14
14
|
variant?: "default" | "icon" | "image" | null | undefined;
|
|
@@ -68,4 +68,4 @@ declare function ItemFooter({
|
|
|
68
68
|
...props
|
|
69
69
|
}: ItemFooterProps): _$react_jsx_runtime0.JSX.Element;
|
|
70
70
|
//#endregion
|
|
71
|
-
export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle };
|
|
71
|
+
export { Item, ItemActions, ItemActionsProps, ItemContent, ItemContentProps, ItemDescription, ItemDescriptionProps, ItemFooter, ItemFooterProps, ItemGroup, ItemGroupProps, ItemHeader, ItemHeaderProps, ItemMedia, ItemMediaProps, ItemProps, ItemSeparator, ItemSeparatorProps, ItemTitle, ItemTitleProps, itemMediaVariants, itemVariants };
|
package/dist/item.js
CHANGED
|
@@ -7,7 +7,7 @@ import { cva } from "class-variance-authority";
|
|
|
7
7
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
8
8
|
import { useRender } from "@base-ui/react/use-render";
|
|
9
9
|
//#region src/item.tsx
|
|
10
|
-
const itemVariants = cva("[a]:hover:bg-secondary rounded-md border text-sm w-full group/item focus-visible:border-focus focus-visible:ring-focus/50 flex items-center flex-wrap outline-
|
|
10
|
+
const itemVariants = cva("[a]:hover:bg-secondary rounded-md border text-sm w-full group/item focus-visible:border-focus focus-visible:ring-focus/50 flex items-center flex-wrap outline-hidden motion-color focus-visible:ring-3", {
|
|
11
11
|
variants: {
|
|
12
12
|
variant: {
|
|
13
13
|
default: "border-transparent",
|
|
@@ -118,4 +118,4 @@ function ItemFooter({ className, ...props }) {
|
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
//#endregion
|
|
121
|
-
export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle };
|
|
121
|
+
export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, itemMediaVariants, itemVariants };
|
package/dist/kbd.d.ts
CHANGED
package/dist/kbd.js
CHANGED
package/dist/label.d.ts
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/internal-icons.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Internal-only SVG icons used by wave-ui components.
|
|
7
|
-
*
|
|
8
|
-
* NOT a public entry point — imported by components via relative paths.
|
|
9
|
-
*/
|
|
10
5
|
type IconProps = React.SVGProps<SVGSVGElement>;
|
|
11
6
|
declare function ChevronDownIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
|
|
12
7
|
declare function ChevronUpIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
|
|
@@ -19,8 +14,7 @@ declare function EllipsisIcon(props: IconProps): _$react_jsx_runtime0.JSX.Elemen
|
|
|
19
14
|
declare function EllipsisVerticalIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
|
|
20
15
|
declare function ChevronsUpDownIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
|
|
21
16
|
declare function SidebarPanelIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
|
|
22
|
-
|
|
23
|
-
declare const LoaderIcon: _$react.ForwardRefExoticComponent<Omit<IconProps, "ref"> & _$react.RefAttributes<SVGSVGElement>>;
|
|
17
|
+
declare function LoaderIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
|
|
24
18
|
declare function AlertTriangleIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
|
|
25
19
|
declare function SuccessCircleIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
|
|
26
20
|
declare function InfoCircleIcon(props: IconProps): _$react_jsx_runtime0.JSX.Element;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "react";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
//#region src/lib/internal-icons.tsx
|
|
4
|
-
/**
|
|
5
|
-
* Internal-only SVG icons used by wave-ui components.
|
|
6
|
-
*
|
|
7
|
-
* NOT a public entry point — imported by components via relative paths.
|
|
8
|
-
*/
|
|
9
4
|
const SVG_BASE = {
|
|
10
5
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11
6
|
width: 24,
|
|
@@ -134,11 +129,9 @@ function SidebarPanelIcon(props) {
|
|
|
134
129
|
}), /* @__PURE__ */ jsx("path", { d: "M9 3v18" })]
|
|
135
130
|
});
|
|
136
131
|
}
|
|
137
|
-
|
|
138
|
-
const LoaderIcon = forwardRef(function LoaderIcon(props, ref) {
|
|
132
|
+
function LoaderIcon(props) {
|
|
139
133
|
return /* @__PURE__ */ jsxs("svg", {
|
|
140
134
|
...SVG_BASE,
|
|
141
|
-
ref,
|
|
142
135
|
...props,
|
|
143
136
|
children: [
|
|
144
137
|
/* @__PURE__ */ jsx("path", { d: "M12 2v4" }),
|
|
@@ -151,7 +144,7 @@ const LoaderIcon = forwardRef(function LoaderIcon(props, ref) {
|
|
|
151
144
|
/* @__PURE__ */ jsx("path", { d: "m4.9 4.9 2.9 2.9" })
|
|
152
145
|
]
|
|
153
146
|
});
|
|
154
|
-
}
|
|
147
|
+
}
|
|
155
148
|
function AlertTriangleIcon(props) {
|
|
156
149
|
return /* @__PURE__ */ jsxs("svg", {
|
|
157
150
|
...SVG_BASE,
|
package/dist/masonry.d.ts
CHANGED
package/dist/menu.d.ts
CHANGED
|
@@ -101,4 +101,4 @@ declare function MenuShortcut({
|
|
|
101
101
|
...props
|
|
102
102
|
}: MenuShortcutProps): _$react_jsx_runtime0.JSX.Element;
|
|
103
103
|
//#endregion
|
|
104
|
-
export { Menu, MenuCheckboxItem, MenuContent, MenuGroup, MenuItem, MenuLabel, MenuPortal, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuShortcut, MenuSub, MenuSubContent, MenuSubTrigger, MenuTrigger };
|
|
104
|
+
export { Menu, MenuCheckboxItem, MenuCheckboxItemProps, MenuContent, MenuContentProps, MenuGroup, MenuGroupProps, MenuItem, MenuItemProps, MenuLabel, MenuLabelProps, MenuPortal, MenuPortalProps, MenuProps, MenuRadioGroup, MenuRadioGroupProps, MenuRadioItem, MenuRadioItemProps, MenuSeparator, MenuSeparatorProps, MenuShortcut, MenuShortcutProps, MenuSub, MenuSubContent, MenuSubContentProps, MenuSubProps, MenuSubTrigger, MenuSubTriggerProps, MenuTrigger, MenuTriggerProps, type RestoreFocusOnClose };
|
package/dist/menu.js
CHANGED
|
@@ -27,14 +27,14 @@ function MenuTrigger(props) {
|
|
|
27
27
|
function MenuContent({ align = "start", alignOffset = 0, side = "bottom", sideOffset = 4, className, restoreFocusOnClose, finalFocus, ...props }) {
|
|
28
28
|
return /* @__PURE__ */ jsx(MenuPortal, { children: /* @__PURE__ */ jsx(Menu$1.Positioner, {
|
|
29
29
|
"data-slot": "menu-positioner",
|
|
30
|
-
className: "isolate z-50 outline-
|
|
30
|
+
className: "isolate z-50 outline-hidden",
|
|
31
31
|
align,
|
|
32
32
|
alignOffset,
|
|
33
33
|
side,
|
|
34
34
|
sideOffset,
|
|
35
35
|
children: /* @__PURE__ */ jsx(Menu$1.Popup, {
|
|
36
36
|
"data-slot": "menu-content",
|
|
37
|
-
className: cn("motion-pop-md ring-contrast/10 bg-elevated text-contrast z-50 max-h-(--available-height) max-w-(--available-width) w-auto min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md p-1 shadow-md ring-1 outline-
|
|
37
|
+
className: cn("motion-pop-md ring-contrast/10 bg-elevated text-contrast z-50 max-h-(--available-height) max-w-(--available-width) w-auto min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md p-1 shadow-md ring-1 outline-hidden data-closed:overflow-hidden", className),
|
|
38
38
|
finalFocus: resolveFinalFocus(restoreFocusOnClose, finalFocus),
|
|
39
39
|
...props
|
|
40
40
|
})
|
package/dist/menubar.d.ts
CHANGED
|
@@ -74,4 +74,4 @@ declare function MenubarSubContent({
|
|
|
74
74
|
...props
|
|
75
75
|
}: MenubarSubContentProps): _$react_jsx_runtime0.JSX.Element;
|
|
76
76
|
//#endregion
|
|
77
|
-
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger };
|
|
77
|
+
export { Menubar, MenubarCheckboxItem, MenubarCheckboxItemProps, MenubarContent, MenubarContentProps, MenubarGroup, MenubarGroupProps, MenubarItem, MenubarItemProps, MenubarLabel, MenubarLabelProps, MenubarMenu, MenubarMenuProps, MenubarPortal, MenubarPortalProps, MenubarProps, MenubarRadioGroup, MenubarRadioGroupProps, MenubarRadioItem, MenubarRadioItemProps, MenubarSeparator, MenubarSeparatorProps, MenubarShortcut, MenubarShortcutProps, MenubarSub, MenubarSubContent, MenubarSubContentProps, MenubarSubProps, MenubarSubTrigger, MenubarSubTriggerProps, MenubarTrigger, MenubarTriggerProps };
|
package/dist/pagination.d.ts
CHANGED
|
@@ -48,4 +48,4 @@ declare function PaginationEllipsis({
|
|
|
48
48
|
...props
|
|
49
49
|
}: PaginationEllipsisProps): _$react_jsx_runtime0.JSX.Element;
|
|
50
50
|
//#endregion
|
|
51
|
-
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
|
|
51
|
+
export { Pagination, PaginationContent, PaginationContentProps, PaginationEllipsis, PaginationEllipsisProps, PaginationItem, PaginationItemProps, PaginationLink, PaginationLinkProps, PaginationNext, PaginationNextProps, PaginationPrevious, PaginationPreviousProps, PaginationProps };
|
package/dist/popover.d.ts
CHANGED
|
@@ -20,6 +20,12 @@ type PopoverContentProps = React.ComponentProps<typeof Popover$1.Popup> & Pick<R
|
|
|
20
20
|
* close doesn't keep it pinned visible. See {@link RestoreFocusOnClose}.
|
|
21
21
|
*/
|
|
22
22
|
restoreFocusOnClose?: RestoreFocusOnClose;
|
|
23
|
+
/**
|
|
24
|
+
* Escape hatch to style the underlying Positioner (the anchored
|
|
25
|
+
* wrapper), e.g. to override its `z-index` or width constraints.
|
|
26
|
+
* Applied alongside the default `isolate z-50`.
|
|
27
|
+
*/
|
|
28
|
+
positionerClassName?: string;
|
|
23
29
|
};
|
|
24
30
|
declare function Popover({
|
|
25
31
|
...props
|
|
@@ -40,6 +46,7 @@ declare function PopoverBackdrop({
|
|
|
40
46
|
}: PopoverBackdropProps): _$react_jsx_runtime0.JSX.Element;
|
|
41
47
|
declare function PopoverContent({
|
|
42
48
|
className,
|
|
49
|
+
positionerClassName,
|
|
43
50
|
align,
|
|
44
51
|
alignOffset,
|
|
45
52
|
side,
|
|
@@ -62,4 +69,4 @@ declare function PopoverDescription({
|
|
|
62
69
|
...props
|
|
63
70
|
}: PopoverDescriptionProps): _$react_jsx_runtime0.JSX.Element;
|
|
64
71
|
//#endregion
|
|
65
|
-
export { Popover, PopoverBackdrop, PopoverContent, PopoverDescription, PopoverHeader, PopoverPortal, PopoverPositioner, PopoverTitle, PopoverTrigger };
|
|
72
|
+
export { Popover, PopoverBackdrop, PopoverBackdropProps, PopoverContent, PopoverContentProps, PopoverDescription, PopoverDescriptionProps, PopoverHeader, PopoverHeaderProps, PopoverPortal, PopoverPortalProps, PopoverPositioner, PopoverPositionerProps, PopoverProps, PopoverTitle, PopoverTitleProps, PopoverTrigger, PopoverTriggerProps, type RestoreFocusOnClose };
|
package/dist/popover.js
CHANGED
|
@@ -37,14 +37,14 @@ function PopoverBackdrop({ className, ...props }) {
|
|
|
37
37
|
...props
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
function PopoverContent({ className, align = "center", alignOffset = 0, side = "bottom", sideOffset = 4, anchor, restoreFocusOnClose, finalFocus, ...props }) {
|
|
40
|
+
function PopoverContent({ className, positionerClassName, align = "center", alignOffset = 0, side = "bottom", sideOffset = 4, anchor, restoreFocusOnClose, finalFocus, ...props }) {
|
|
41
41
|
return /* @__PURE__ */ jsx(PopoverPortal, { children: /* @__PURE__ */ jsx(PopoverPositioner, {
|
|
42
42
|
anchor,
|
|
43
43
|
align,
|
|
44
44
|
alignOffset,
|
|
45
45
|
side,
|
|
46
46
|
sideOffset,
|
|
47
|
-
className: "isolate z-50",
|
|
47
|
+
className: cn("isolate z-50", positionerClassName),
|
|
48
48
|
children: /* @__PURE__ */ jsx(Popover$1.Popup, {
|
|
49
49
|
"data-slot": "popover-content",
|
|
50
50
|
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
|
@@ -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, PreviewCardContentProps, PreviewCardPortal, PreviewCardPortalProps, PreviewCardPositioner, PreviewCardPositionerProps, PreviewCardProps, PreviewCardTrigger, PreviewCardTriggerProps };
|
package/dist/preview-card.js
CHANGED
|
@@ -29,14 +29,14 @@ function PreviewCardPositioner({ className, ...props }) {
|
|
|
29
29
|
...props
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
function PreviewCardContent({ className, side = "bottom", sideOffset = 4, align = "center", alignOffset = 0, anchor, ...props }) {
|
|
32
|
+
function PreviewCardContent({ className, positionerClassName, side = "bottom", sideOffset = 4, align = "center", alignOffset = 0, anchor, ...props }) {
|
|
33
33
|
return /* @__PURE__ */ jsx(PreviewCardPortal, { children: /* @__PURE__ */ jsx(PreviewCardPositioner, {
|
|
34
34
|
anchor,
|
|
35
35
|
align,
|
|
36
36
|
alignOffset,
|
|
37
37
|
side,
|
|
38
38
|
sideOffset,
|
|
39
|
-
className: "isolate z-50",
|
|
39
|
+
className: cn("isolate z-50", positionerClassName),
|
|
40
40
|
children: /* @__PURE__ */ jsx(PreviewCard$1.Popup, {
|
|
41
41
|
"data-slot": "preview-card-content",
|
|
42
42
|
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
|
@@ -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, ProgressIndicatorProps, ProgressLabel, ProgressLabelProps, ProgressProps, ProgressTrack, ProgressTrackProps, ProgressValue, ProgressValueProps };
|
package/dist/progress.js
CHANGED
|
@@ -4,11 +4,11 @@ import "react";
|
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Progress as Progress$1 } from "@base-ui/react/progress";
|
|
6
6
|
//#region src/progress.tsx
|
|
7
|
-
function Progress({ className, children, value, ...props }) {
|
|
7
|
+
function Progress({ className, children, value = null, ...props }) {
|
|
8
8
|
return /* @__PURE__ */ jsxs(Progress$1.Root, {
|
|
9
9
|
value,
|
|
10
10
|
"data-slot": "progress",
|
|
11
|
-
className: cn("flex flex-wrap gap-3", className),
|
|
11
|
+
className: cn("group/progress flex flex-wrap gap-3", className),
|
|
12
12
|
...props,
|
|
13
13
|
children: [children, /* @__PURE__ */ jsx(ProgressTrack, { children: /* @__PURE__ */ jsx(ProgressIndicator, {}) })]
|
|
14
14
|
});
|
|
@@ -23,7 +23,7 @@ function ProgressTrack({ className, ...props }) {
|
|
|
23
23
|
function ProgressIndicator({ className, ...props }) {
|
|
24
24
|
return /* @__PURE__ */ jsx(Progress$1.Indicator, {
|
|
25
25
|
"data-slot": "progress-indicator",
|
|
26
|
-
className: cn("bg-primary h-full transition-[width]", className),
|
|
26
|
+
className: cn("bg-primary h-full transition-[width]", "group-data-indeterminate/progress:w-2/5 group-data-indeterminate/progress:animate-pulse", className),
|
|
27
27
|
...props
|
|
28
28
|
});
|
|
29
29
|
}
|
package/dist/radio-group.d.ts
CHANGED
package/dist/radio.d.ts
CHANGED
package/dist/radio.js
CHANGED
|
@@ -7,7 +7,7 @@ import { Radio as Radio$1 } from "@base-ui/react/radio";
|
|
|
7
7
|
function Radio({ className, ...props }) {
|
|
8
8
|
return /* @__PURE__ */ jsx(Radio$1.Root, {
|
|
9
9
|
"data-slot": "radio",
|
|
10
|
-
className: cn("cursor-clickable border-edge dark:bg-edge/30 data-checked:bg-primary data-checked:text-white data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive focus-visible:border-focus focus-visible:ring-focus/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 dark:aria-invalid:border-destructive/50 group/radio peer relative flex aspect-square size-4 shrink-0 rounded-full border outline-
|
|
10
|
+
className: cn("cursor-clickable border-edge dark:bg-edge/30 data-checked:bg-primary data-checked:text-white data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive focus-visible:border-focus focus-visible:ring-focus/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 dark:aria-invalid:border-destructive/50 group/radio peer relative flex aspect-square size-4 shrink-0 rounded-full border outline-hidden after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3", className),
|
|
11
11
|
...props,
|
|
12
12
|
children: /* @__PURE__ */ jsx(RadioIndicator, {})
|
|
13
13
|
});
|
package/dist/scroll-area.d.ts
CHANGED
package/dist/scroll-area.js
CHANGED
|
@@ -12,7 +12,7 @@ function ScrollArea({ className, children, ...props }) {
|
|
|
12
12
|
children: [
|
|
13
13
|
/* @__PURE__ */ jsx(ScrollArea$1.Viewport, {
|
|
14
14
|
"data-slot": "scroll-area-viewport",
|
|
15
|
-
className: "focus-visible:ring-focus/50 size-full rounded-[inherit] motion-color outline-
|
|
15
|
+
className: "focus-visible:ring-focus/50 size-full rounded-[inherit] motion-color outline-hidden focus-visible:ring-3 focus-visible:outline-1",
|
|
16
16
|
children
|
|
17
17
|
}),
|
|
18
18
|
/* @__PURE__ */ jsx(ScrollBar, {}),
|
package/dist/select.d.ts
CHANGED
|
@@ -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, SelectContentProps, SelectGroup, SelectGroupProps, SelectItem, SelectItemProps, SelectLabel, SelectLabelProps, SelectList, SelectListProps, SelectPortal, SelectPortalProps, SelectPositioner, SelectPositionerProps, SelectProps, SelectScrollDownButton, SelectScrollDownButtonProps, SelectScrollUpButton, SelectScrollUpButtonProps, SelectSeparator, SelectSeparatorProps, SelectTrigger, SelectTriggerProps, SelectValue, SelectValueProps };
|
package/dist/select.js
CHANGED
|
@@ -49,7 +49,7 @@ function SelectTrigger({ className, size = "default", children, ...props }) {
|
|
|
49
49
|
return /* @__PURE__ */ jsxs(Select$1.Trigger, {
|
|
50
50
|
"data-slot": "select-trigger",
|
|
51
51
|
"data-size": size,
|
|
52
|
-
className: cn("border-edge data-placeholder:text-soft dark:bg-edge/30 dark:hover:bg-edge/50 focus-visible:border-focus focus-visible:ring-focus/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 flex w-fit items-center justify-between gap-1.5 rounded-md border bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap motion-color outline-
|
|
52
|
+
className: cn("border-edge data-placeholder:text-soft dark:bg-edge/30 dark:hover:bg-edge/50 focus-visible:border-focus focus-visible:ring-focus/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 flex w-fit items-center justify-between gap-1.5 rounded-md border bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap motion-color outline-hidden select-none focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-sm *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
53
53
|
...props,
|
|
54
54
|
children: [children, /* @__PURE__ */ jsx(Select$1.Icon, {
|
|
55
55
|
"data-slot": "select-icon",
|
package/dist/separator.d.ts
CHANGED