@codefast/ui 0.3.11-canary.1 → 0.3.11
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/CHANGELOG.md +36 -0
- package/README.md +34 -14
- package/dist/components/accordion.d.ts +29 -10
- package/dist/components/accordion.js +38 -37
- package/dist/components/alert-dialog.d.ts +60 -24
- package/dist/components/alert-dialog.js +69 -72
- package/dist/components/alert.d.ts +27 -15
- package/dist/components/alert.js +29 -31
- package/dist/components/aspect-ratio.d.ts +8 -4
- package/dist/components/aspect-ratio.js +7 -5
- package/dist/components/avatar.d.ts +17 -6
- package/dist/components/avatar.js +19 -17
- package/dist/components/badge.d.ts +21 -14
- package/dist/components/badge.js +19 -22
- package/dist/components/breadcrumb.d.ts +35 -12
- package/dist/components/breadcrumb.js +48 -54
- package/dist/components/button-group.d.ts +29 -14
- package/dist/components/button-group.js +27 -32
- package/dist/components/button.d.ts +35 -25
- package/dist/components/button.js +50 -48
- package/dist/components/calendar.d.ts +24 -9
- package/dist/components/calendar.js +92 -98
- package/dist/components/card.d.ts +34 -10
- package/dist/components/card.js +39 -37
- package/dist/components/carousel.d.ts +55 -24
- package/dist/components/carousel.js +113 -130
- package/dist/components/chart.d.ts +72 -36
- package/dist/components/chart.js +154 -166
- package/dist/components/checkbox-cards.d.ts +15 -8
- package/dist/components/checkbox-cards.js +22 -25
- package/dist/components/checkbox-group.d.ts +16 -8
- package/dist/components/checkbox-group.js +19 -19
- package/dist/components/checkbox.d.ts +9 -4
- package/dist/components/checkbox.js +14 -14
- package/dist/components/collapsible.d.ts +14 -6
- package/dist/components/collapsible.js +18 -16
- package/dist/components/command.d.ts +55 -23
- package/dist/components/command.js +70 -85
- package/dist/components/context-menu.d.ts +72 -22
- package/dist/components/context-menu.js +88 -109
- package/dist/components/dialog.d.ts +53 -22
- package/dist/components/dialog.js +71 -85
- package/dist/components/drawer.d.ts +60 -28
- package/dist/components/drawer.js +59 -67
- package/dist/components/dropdown-menu.d.ts +73 -22
- package/dist/components/dropdown-menu.js +95 -112
- package/dist/components/empty.d.ts +37 -15
- package/dist/components/empty.js +43 -45
- package/dist/components/field.d.ts +63 -25
- package/dist/components/field.js +88 -104
- package/dist/components/form.d.ts +37 -15
- package/dist/components/form.js +65 -70
- package/dist/components/hover-card.d.ts +21 -7
- package/dist/components/hover-card.js +24 -24
- package/dist/components/input-group.d.ts +53 -28
- package/dist/components/input-group.js +63 -77
- package/dist/components/input-number.d.ts +28 -7
- package/dist/components/input-number.js +55 -59
- package/dist/components/input-otp.d.ts +24 -10
- package/dist/components/input-otp.js +33 -37
- package/dist/components/input-password.d.ts +12 -5
- package/dist/components/input-password.js +31 -32
- package/dist/components/input-search.d.ts +18 -8
- package/dist/components/input-search.js +43 -41
- package/dist/components/input.d.ts +10 -4
- package/dist/components/input.js +9 -7
- package/dist/components/item.d.ts +69 -32
- package/dist/components/item.js +89 -92
- package/dist/components/kbd.d.ts +13 -5
- package/dist/components/kbd.js +13 -11
- package/dist/components/label.d.ts +9 -4
- package/dist/components/label.js +9 -7
- package/dist/components/menubar.d.ts +80 -23
- package/dist/components/menubar.js +97 -118
- package/dist/components/native-select.d.ts +16 -6
- package/dist/components/native-select.js +25 -26
- package/dist/components/navigation-menu.d.ts +36 -12
- package/dist/components/navigation-menu.js +60 -75
- package/dist/components/pagination.d.ts +35 -14
- package/dist/components/pagination.js +54 -69
- package/dist/components/popover.d.ts +24 -8
- package/dist/components/popover.js +28 -28
- package/dist/components/progress-circle.d.ts +106 -88
- package/dist/components/progress-circle.js +106 -138
- package/dist/components/progress.d.ts +10 -4
- package/dist/components/progress.js +14 -14
- package/dist/components/radio-cards.d.ts +10 -4
- package/dist/components/radio-cards.js +22 -23
- package/dist/components/radio-group.d.ts +13 -5
- package/dist/components/radio-group.js +18 -16
- package/dist/components/radio.d.ts +12 -5
- package/dist/components/radio.js +10 -8
- package/dist/components/resizable.d.ts +18 -7
- package/dist/components/resizable.js +22 -22
- package/dist/components/scroll-area.d.ts +33 -20
- package/dist/components/scroll-area.js +84 -88
- package/dist/components/select.d.ts +50 -16
- package/dist/components/select.js +77 -96
- package/dist/components/separator.d.ts +29 -19
- package/dist/components/separator.js +36 -34
- package/dist/components/sheet.d.ts +62 -29
- package/dist/components/sheet.js +79 -100
- package/dist/components/sidebar.d.ts +160 -66
- package/dist/components/sidebar.js +294 -336
- package/dist/components/skeleton.d.ts +9 -4
- package/dist/components/skeleton.js +8 -6
- package/dist/components/slider.d.ts +13 -4
- package/dist/components/slider.js +34 -40
- package/dist/components/sonner.d.ts +10 -7
- package/dist/components/sonner.js +16 -14
- package/dist/components/spinner.d.ts +12 -5
- package/dist/components/spinner.js +33 -35
- package/dist/components/switch.d.ts +9 -4
- package/dist/components/switch.js +13 -11
- package/dist/components/table.d.ts +37 -11
- package/dist/components/table.js +47 -45
- package/dist/components/tabs.d.ts +21 -7
- package/dist/components/tabs.js +24 -22
- package/dist/components/textarea.d.ts +9 -4
- package/dist/components/textarea.js +8 -6
- package/dist/components/toggle-group.d.ts +24 -9
- package/dist/components/toggle-group.js +41 -42
- package/dist/components/toggle.d.ts +25 -17
- package/dist/components/toggle.js +30 -28
- package/dist/components/tooltip.d.ts +24 -8
- package/dist/components/tooltip.js +29 -32
- package/dist/hooks/use-animated-value.d.ts +4 -1
- package/dist/hooks/use-animated-value.js +57 -36
- package/dist/hooks/use-copy-to-clipboard.d.ts +11 -5
- package/dist/hooks/use-copy-to-clipboard.js +39 -20
- package/dist/hooks/use-is-mobile.d.ts +4 -1
- package/dist/hooks/use-is-mobile.js +21 -1
- package/dist/hooks/use-media-query.d.ts +4 -1
- package/dist/hooks/use-media-query.js +45 -18
- package/dist/hooks/use-mutation-observer.d.ts +6 -2
- package/dist/hooks/use-mutation-observer.js +34 -16
- package/dist/hooks/use-pagination.d.ts +22 -14
- package/dist/hooks/use-pagination.js +100 -49
- package/dist/index.d.ts +69 -130
- package/dist/index.js +11 -11
- package/dist/primitives/checkbox-group.d.ts +105 -83
- package/dist/primitives/checkbox-group.js +111 -84
- package/dist/primitives/input-number.d.ts +51 -40
- package/dist/primitives/input-number.js +483 -350
- package/dist/primitives/input.d.ts +48 -42
- package/dist/primitives/input.js +65 -43
- package/dist/primitives/progress-circle.d.ts +79 -48
- package/dist/primitives/progress-circle.js +154 -105
- package/package.json +6 -7
package/dist/components/item.js
CHANGED
|
@@ -1,119 +1,116 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Separator } from "./separator.js";
|
|
2
2
|
import { cn, tv } from "@codefast/tailwind-variants";
|
|
3
3
|
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
-
import {
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/item.tsx
|
|
5
6
|
const itemVariants = tv({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
7
|
+
base: cn("group/item flex flex-wrap items-center rounded-lg border border-transparent text-sm outline-hidden transition-colors duration-100", "[a]:transition-colors [a]:hover:bg-accent/50", "focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50"),
|
|
8
|
+
defaultVariants: {
|
|
9
|
+
size: "default",
|
|
10
|
+
variant: "default"
|
|
11
|
+
},
|
|
12
|
+
variants: {
|
|
13
|
+
size: {
|
|
14
|
+
default: "gap-4 p-4",
|
|
15
|
+
sm: "gap-2.5 px-4 py-3"
|
|
16
|
+
},
|
|
17
|
+
variant: {
|
|
18
|
+
default: "bg-transparent",
|
|
19
|
+
muted: "bg-muted/50",
|
|
20
|
+
outline: "border-border"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
22
23
|
});
|
|
23
24
|
const itemMediaVariants = tv({
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
icon: "size-8 shrink-0 rounded-md border bg-muted [&_svg:not([class*='size-'])]:size-4",
|
|
32
|
-
image: "size-10 shrink-0 overflow-hidden rounded-md [&_img]:size-full [&_img]:object-cover"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
25
|
+
base: cn("flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:self-start", "group-has-[[data-slot=item-description]]/item:translate-y-0.5 [&_svg]:pointer-events-none"),
|
|
26
|
+
defaultVariants: { variant: "default" },
|
|
27
|
+
variants: { variant: {
|
|
28
|
+
default: "bg-transparent",
|
|
29
|
+
icon: "size-8 shrink-0 rounded-md border bg-muted [&_svg:not([class*='size-'])]:size-4",
|
|
30
|
+
image: "size-10 shrink-0 overflow-hidden rounded-md [&_img]:size-full [&_img]:object-cover"
|
|
31
|
+
} }
|
|
35
32
|
});
|
|
36
33
|
function ItemGroup({ className, ...props }) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
return /* @__PURE__ */ jsx("div", {
|
|
35
|
+
className: cn("group/item-group flex flex-col", className),
|
|
36
|
+
"data-slot": "item-group",
|
|
37
|
+
role: "list",
|
|
38
|
+
...props
|
|
39
|
+
});
|
|
43
40
|
}
|
|
44
41
|
function ItemSeparator({ className, ...props }) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
42
|
+
return /* @__PURE__ */ jsx(Separator, {
|
|
43
|
+
className: cn("my-0", className),
|
|
44
|
+
"data-slot": "item-separator",
|
|
45
|
+
orientation: "horizontal",
|
|
46
|
+
...props
|
|
47
|
+
});
|
|
51
48
|
}
|
|
52
49
|
function Item({ asChild = false, className, size = "default", variant = "default", ...props }) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
});
|
|
50
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : "div", {
|
|
51
|
+
className: itemVariants({
|
|
52
|
+
className,
|
|
53
|
+
size,
|
|
54
|
+
variant
|
|
55
|
+
}),
|
|
56
|
+
"data-size": size,
|
|
57
|
+
"data-slot": "item",
|
|
58
|
+
"data-variant": variant,
|
|
59
|
+
...props
|
|
60
|
+
});
|
|
65
61
|
}
|
|
66
62
|
function ItemMedia({ className, variant = "default", ...props }) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
63
|
+
return /* @__PURE__ */ jsx("div", {
|
|
64
|
+
className: itemMediaVariants({
|
|
65
|
+
className,
|
|
66
|
+
variant
|
|
67
|
+
}),
|
|
68
|
+
"data-slot": "item-media",
|
|
69
|
+
"data-variant": variant,
|
|
70
|
+
...props
|
|
71
|
+
});
|
|
76
72
|
}
|
|
77
73
|
function ItemContent({ className, ...props }) {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
74
|
+
return /* @__PURE__ */ jsx("div", {
|
|
75
|
+
className: cn("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none", className),
|
|
76
|
+
"data-slot": "item-content",
|
|
77
|
+
...props
|
|
78
|
+
});
|
|
83
79
|
}
|
|
84
80
|
function ItemTitle({ className, ...props }) {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
81
|
+
return /* @__PURE__ */ jsx("div", {
|
|
82
|
+
className: cn("flex w-fit items-center gap-2 text-sm leading-snug font-medium", className),
|
|
83
|
+
"data-slot": "item-title",
|
|
84
|
+
...props
|
|
85
|
+
});
|
|
90
86
|
}
|
|
91
87
|
function ItemDescription({ className, ...props }) {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
88
|
+
return /* @__PURE__ */ jsx("p", {
|
|
89
|
+
className: cn("line-clamp-2 text-sm leading-normal font-normal text-balance text-muted-foreground", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", className),
|
|
90
|
+
"data-slot": "item-description",
|
|
91
|
+
...props
|
|
92
|
+
});
|
|
97
93
|
}
|
|
98
94
|
function ItemActions({ className, ...props }) {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
95
|
+
return /* @__PURE__ */ jsx("div", {
|
|
96
|
+
className: cn("flex items-center gap-2", className),
|
|
97
|
+
"data-slot": "item-actions",
|
|
98
|
+
...props
|
|
99
|
+
});
|
|
104
100
|
}
|
|
105
101
|
function ItemHeader({ className, ...props }) {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
102
|
+
return /* @__PURE__ */ jsx("div", {
|
|
103
|
+
className: cn("flex basis-full items-center justify-between gap-2", className),
|
|
104
|
+
"data-slot": "item-header",
|
|
105
|
+
...props
|
|
106
|
+
});
|
|
111
107
|
}
|
|
112
108
|
function ItemFooter({ className, ...props }) {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
109
|
+
return /* @__PURE__ */ jsx("div", {
|
|
110
|
+
className: cn("flex basis-full items-center justify-between gap-2", className),
|
|
111
|
+
"data-slot": "item-footer",
|
|
112
|
+
...props
|
|
113
|
+
});
|
|
118
114
|
}
|
|
115
|
+
//#endregion
|
|
119
116
|
export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, itemMediaVariants, itemVariants };
|
package/dist/components/kbd.d.ts
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentProps, JSX } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/components/kbd.d.ts
|
|
2
4
|
type KbdProps = ComponentProps<"kbd">;
|
|
3
|
-
declare function Kbd({
|
|
5
|
+
declare function Kbd({
|
|
6
|
+
className,
|
|
7
|
+
...props
|
|
8
|
+
}: KbdProps): JSX.Element;
|
|
4
9
|
type KbdGroupProps = ComponentProps<"kbd">;
|
|
5
|
-
declare function KbdGroup({
|
|
6
|
-
|
|
7
|
-
|
|
10
|
+
declare function KbdGroup({
|
|
11
|
+
className,
|
|
12
|
+
...props
|
|
13
|
+
}: KbdGroupProps): JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { Kbd, KbdGroup, type KbdGroupProps, type KbdProps };
|
package/dist/components/kbd.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
1
|
import { cn } from "@codefast/tailwind-variants";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/kbd.tsx
|
|
3
4
|
function Kbd({ className, ...props }) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
return /* @__PURE__ */ jsx("kbd", {
|
|
6
|
+
className: cn("pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-md bg-muted px-1 font-sans text-xs font-medium text-muted-foreground select-none", "[&_svg:not([class*='size-'])]:size-3", "[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10", className),
|
|
7
|
+
"data-slot": "kbd",
|
|
8
|
+
...props
|
|
9
|
+
});
|
|
9
10
|
}
|
|
10
11
|
function KbdGroup({ className, ...props }) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
return /* @__PURE__ */ jsx("kbd", {
|
|
13
|
+
className: cn("inline-flex items-center gap-1", className),
|
|
14
|
+
"data-slot": "kbd-group",
|
|
15
|
+
...props
|
|
16
|
+
});
|
|
16
17
|
}
|
|
18
|
+
//#endregion
|
|
17
19
|
export { Kbd, KbdGroup };
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentProps, JSX } from "react";
|
|
2
2
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
3
|
+
|
|
4
|
+
//#region src/components/label.d.ts
|
|
3
5
|
type LabelProps = ComponentProps<typeof LabelPrimitive.Root>;
|
|
4
|
-
declare function Label({
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
declare function Label({
|
|
7
|
+
className,
|
|
8
|
+
...props
|
|
9
|
+
}: LabelProps): JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { Label, type LabelProps };
|
package/dist/components/label.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
import { cn } from "@codefast/tailwind-variants";
|
|
4
|
-
import {
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
5
|
+
//#region src/components/label.tsx
|
|
5
6
|
function Label({ className, ...props }) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
return /* @__PURE__ */ jsx(LabelPrimitive.Root, {
|
|
8
|
+
className: cn("inline-block text-sm leading-none font-medium group-data-disabled:opacity-50 peer-disabled:opacity-50 peer-aria-invalid:text-destructive peer-data-disabled:opacity-50 data-invalid:text-destructive", className),
|
|
9
|
+
"data-slot": "label",
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
11
12
|
}
|
|
13
|
+
//#endregion
|
|
12
14
|
export { Label };
|
|
@@ -1,43 +1,100 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentProps, JSX } from "react";
|
|
2
2
|
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
3
|
+
|
|
4
|
+
//#region src/components/menubar.d.ts
|
|
3
5
|
type MenubarProps = ComponentProps<typeof MenubarPrimitive.Root>;
|
|
4
|
-
declare function Menubar({
|
|
6
|
+
declare function Menubar({
|
|
7
|
+
className,
|
|
8
|
+
...props
|
|
9
|
+
}: MenubarProps): JSX.Element;
|
|
5
10
|
type MenubarMenuProps = ComponentProps<typeof MenubarPrimitive.Menu>;
|
|
6
|
-
declare function MenubarMenu({
|
|
11
|
+
declare function MenubarMenu({
|
|
12
|
+
...props
|
|
13
|
+
}: MenubarMenuProps): JSX.Element;
|
|
7
14
|
type MenubarGroupProps = ComponentProps<typeof MenubarPrimitive.Group>;
|
|
8
|
-
declare function MenubarGroup({
|
|
15
|
+
declare function MenubarGroup({
|
|
16
|
+
...props
|
|
17
|
+
}: MenubarGroupProps): JSX.Element;
|
|
9
18
|
type MenubarSubProps = ComponentProps<typeof MenubarPrimitive.Sub>;
|
|
10
|
-
declare function MenubarSub({
|
|
19
|
+
declare function MenubarSub({
|
|
20
|
+
...props
|
|
21
|
+
}: MenubarSubProps): JSX.Element;
|
|
11
22
|
type MenubarRadioGroupProps = ComponentProps<typeof MenubarPrimitive.RadioGroup>;
|
|
12
|
-
declare function MenubarRadioGroup({
|
|
23
|
+
declare function MenubarRadioGroup({
|
|
24
|
+
...props
|
|
25
|
+
}: MenubarRadioGroupProps): JSX.Element;
|
|
13
26
|
type MenubarTriggerProps = ComponentProps<typeof MenubarPrimitive.Trigger>;
|
|
14
|
-
declare function MenubarTrigger({
|
|
27
|
+
declare function MenubarTrigger({
|
|
28
|
+
className,
|
|
29
|
+
...props
|
|
30
|
+
}: MenubarTriggerProps): JSX.Element;
|
|
15
31
|
interface MenubarSubTriggerProps extends ComponentProps<typeof MenubarPrimitive.SubTrigger> {
|
|
16
|
-
|
|
32
|
+
inset?: boolean;
|
|
17
33
|
}
|
|
18
|
-
declare function MenubarSubTrigger({
|
|
34
|
+
declare function MenubarSubTrigger({
|
|
35
|
+
children,
|
|
36
|
+
className,
|
|
37
|
+
inset,
|
|
38
|
+
...props
|
|
39
|
+
}: MenubarSubTriggerProps): JSX.Element;
|
|
19
40
|
type MenubarSubContentProps = ComponentProps<typeof MenubarPrimitive.SubContent>;
|
|
20
|
-
declare function MenubarSubContent({
|
|
41
|
+
declare function MenubarSubContent({
|
|
42
|
+
className,
|
|
43
|
+
...props
|
|
44
|
+
}: MenubarSubContentProps): JSX.Element;
|
|
21
45
|
type MenubarContentProps = ComponentProps<typeof MenubarPrimitive.Content>;
|
|
22
|
-
declare function MenubarContent({
|
|
46
|
+
declare function MenubarContent({
|
|
47
|
+
align,
|
|
48
|
+
alignOffset,
|
|
49
|
+
className,
|
|
50
|
+
sideOffset,
|
|
51
|
+
...props
|
|
52
|
+
}: MenubarContentProps): JSX.Element;
|
|
23
53
|
interface MenubarItemProps extends ComponentProps<typeof MenubarPrimitive.Item> {
|
|
24
|
-
|
|
25
|
-
|
|
54
|
+
inset?: boolean;
|
|
55
|
+
variant?: "default" | "destructive";
|
|
26
56
|
}
|
|
27
|
-
declare function MenubarItem({
|
|
57
|
+
declare function MenubarItem({
|
|
58
|
+
className,
|
|
59
|
+
inset,
|
|
60
|
+
variant,
|
|
61
|
+
...props
|
|
62
|
+
}: MenubarItemProps): JSX.Element;
|
|
28
63
|
type MenubarCheckboxItemProps = ComponentProps<typeof MenubarPrimitive.CheckboxItem>;
|
|
29
|
-
declare function MenubarCheckboxItem({
|
|
64
|
+
declare function MenubarCheckboxItem({
|
|
65
|
+
checked,
|
|
66
|
+
children,
|
|
67
|
+
className,
|
|
68
|
+
...props
|
|
69
|
+
}: MenubarCheckboxItemProps): JSX.Element;
|
|
30
70
|
type MenubarRadioItemProps = ComponentProps<typeof MenubarPrimitive.RadioItem>;
|
|
31
|
-
declare function MenubarRadioItem({
|
|
71
|
+
declare function MenubarRadioItem({
|
|
72
|
+
children,
|
|
73
|
+
className,
|
|
74
|
+
...props
|
|
75
|
+
}: MenubarRadioItemProps): JSX.Element;
|
|
32
76
|
interface MenubarLabelProps extends ComponentProps<typeof MenubarPrimitive.Label> {
|
|
33
|
-
|
|
77
|
+
inset?: boolean;
|
|
34
78
|
}
|
|
35
|
-
declare function MenubarLabel({
|
|
79
|
+
declare function MenubarLabel({
|
|
80
|
+
className,
|
|
81
|
+
inset,
|
|
82
|
+
...props
|
|
83
|
+
}: MenubarLabelProps): JSX.Element;
|
|
36
84
|
type MenubarSeparatorProps = ComponentProps<typeof MenubarPrimitive.Separator>;
|
|
37
|
-
declare function MenubarSeparator({
|
|
85
|
+
declare function MenubarSeparator({
|
|
86
|
+
className,
|
|
87
|
+
...props
|
|
88
|
+
}: MenubarSeparatorProps): JSX.Element;
|
|
38
89
|
type MenubarShortcutProps = ComponentProps<"span">;
|
|
39
|
-
declare function MenubarShortcut({
|
|
90
|
+
declare function MenubarShortcut({
|
|
91
|
+
className,
|
|
92
|
+
...props
|
|
93
|
+
}: MenubarShortcutProps): JSX.Element;
|
|
40
94
|
type MenubarArrowProps = ComponentProps<typeof MenubarPrimitive.Arrow>;
|
|
41
|
-
declare function MenubarArrow({
|
|
42
|
-
|
|
43
|
-
|
|
95
|
+
declare function MenubarArrow({
|
|
96
|
+
className,
|
|
97
|
+
...props
|
|
98
|
+
}: MenubarArrowProps): JSX.Element;
|
|
99
|
+
//#endregion
|
|
100
|
+
export { Menubar, MenubarArrow, type MenubarArrowProps, MenubarCheckboxItem, type MenubarCheckboxItemProps, MenubarContent, type MenubarContentProps, MenubarGroup, type MenubarGroupProps, MenubarItem, type MenubarItemProps, MenubarLabel, type MenubarLabelProps, MenubarMenu, type MenubarMenuProps, type MenubarProps, MenubarRadioGroup, type MenubarRadioGroupProps, MenubarRadioItem, type MenubarRadioItemProps, MenubarSeparator, type MenubarSeparatorProps, MenubarShortcut, type MenubarShortcutProps, MenubarSub, MenubarSubContent, type MenubarSubContentProps, type MenubarSubProps, MenubarSubTrigger, type MenubarSubTriggerProps, MenubarTrigger, type MenubarTriggerProps };
|