@codefast/ui 0.3.16-canary.3 → 0.4.0-canary.5
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 +112 -0
- package/README.md +27 -16
- package/dist/components/accordion.d.mts +7 -22
- package/dist/components/accordion.mjs +26 -29
- package/dist/components/alert-dialog.d.mts +27 -26
- package/dist/components/alert-dialog.mjs +53 -45
- package/dist/components/alert.d.mts +12 -2
- package/dist/components/alert.mjs +15 -6
- package/dist/components/aspect-ratio.d.mts +2 -2
- package/dist/components/aspect-ratio.mjs +2 -3
- package/dist/components/avatar.d.mts +41 -5
- package/dist/components/avatar.mjs +40 -10
- package/dist/components/badge.mjs +4 -4
- package/dist/components/breadcrumb.d.mts +1 -0
- package/dist/components/breadcrumb.mjs +11 -10
- package/dist/components/button-group.d.mts +1 -1
- package/dist/components/button-group.mjs +6 -7
- package/dist/components/button.d.mts +0 -1
- package/dist/components/button.mjs +7 -7
- package/dist/components/calendar.d.mts +6 -2
- package/dist/components/calendar.mjs +39 -43
- package/dist/components/card.d.mts +4 -2
- package/dist/components/card.mjs +9 -9
- package/dist/components/carousel.d.mts +16 -4
- package/dist/components/carousel.mjs +25 -12
- package/dist/components/chart.d.mts +8 -3
- package/dist/components/chart.mjs +21 -15
- package/dist/components/checkbox-cards.mjs +6 -6
- package/dist/components/checkbox-group.mjs +6 -7
- package/dist/components/checkbox.d.mts +2 -2
- package/dist/components/checkbox.mjs +8 -9
- package/dist/components/collapsible.d.mts +4 -4
- package/dist/components/collapsible.mjs +4 -5
- package/dist/components/command.d.mts +11 -1
- package/dist/components/command.mjs +35 -32
- package/dist/components/context-menu.d.mts +22 -15
- package/dist/components/context-menu.mjs +44 -39
- package/dist/components/dialog.d.mts +19 -23
- package/dist/components/dialog.mjs +48 -47
- package/dist/components/direction.d.mts +24 -0
- package/dist/components/direction.mjs +18 -0
- package/dist/components/drawer.d.mts +2 -20
- package/dist/components/drawer.mjs +17 -25
- package/dist/components/dropdown-menu.d.mts +22 -15
- package/dist/components/dropdown-menu.mjs +41 -37
- package/dist/components/empty.mjs +5 -5
- package/dist/components/field.d.mts +1 -1
- package/dist/components/field.mjs +11 -12
- package/dist/components/form.d.mts +6 -7
- package/dist/components/form.mjs +6 -7
- package/dist/components/hover-card.d.mts +5 -5
- package/dist/components/hover-card.mjs +14 -12
- package/dist/components/input-group.d.mts +1 -1
- package/dist/components/input-group.mjs +12 -7
- package/dist/components/input-number.d.mts +3 -1
- package/dist/components/input-number.mjs +49 -27
- package/dist/components/input-otp.mjs +9 -7
- package/dist/components/input-password.mjs +1 -4
- package/dist/components/input-search.mjs +3 -5
- package/dist/components/input.mjs +1 -2
- package/dist/components/item.mjs +9 -9
- package/dist/components/kbd.mjs +1 -1
- package/dist/components/label.d.mts +2 -2
- package/dist/components/label.mjs +3 -4
- package/dist/components/menubar.d.mts +22 -16
- package/dist/components/menubar.mjs +54 -47
- package/dist/components/native-select.d.mts +5 -1
- package/dist/components/native-select.mjs +9 -6
- package/dist/components/navigation-menu.d.mts +30 -8
- package/dist/components/navigation-menu.mjs +33 -23
- package/dist/components/pagination.d.mts +6 -0
- package/dist/components/pagination.mjs +26 -11
- package/dist/components/popover.d.mts +40 -7
- package/dist/components/popover.mjs +46 -14
- package/dist/components/progress-circle.d.mts +1 -1
- package/dist/components/progress-circle.mjs +1 -2
- package/dist/components/progress.d.mts +2 -2
- package/dist/components/progress.mjs +5 -6
- package/dist/components/radio-cards.d.mts +3 -3
- package/dist/components/radio-cards.mjs +11 -11
- package/dist/components/radio-group.d.mts +3 -3
- package/dist/components/radio-group.mjs +9 -9
- package/dist/components/radio.mjs +2 -3
- package/dist/components/resizable.mjs +3 -8
- package/dist/components/scroll-area.d.mts +5 -5
- package/dist/components/scroll-area.mjs +13 -10
- package/dist/components/select.d.mts +14 -14
- package/dist/components/select.mjs +47 -47
- package/dist/components/separator.d.mts +2 -2
- package/dist/components/separator.mjs +3 -4
- package/dist/components/sheet.d.mts +13 -14
- package/dist/components/sheet.mjs +41 -39
- package/dist/components/sidebar.d.mts +2 -3
- package/dist/components/sidebar.mjs +46 -46
- package/dist/components/skeleton.mjs +1 -1
- package/dist/components/slider.d.mts +2 -2
- package/dist/components/slider.mjs +9 -11
- package/dist/components/sonner.mjs +11 -3
- package/dist/components/spinner.mjs +6 -7
- package/dist/components/switch.d.mts +5 -2
- package/dist/components/switch.mjs +7 -7
- package/dist/components/table.mjs +10 -10
- package/dist/components/tabs.d.mts +8 -5
- package/dist/components/tabs.mjs +18 -12
- package/dist/components/textarea.mjs +1 -1
- package/dist/components/toggle-group.d.mts +9 -6
- package/dist/components/toggle-group.mjs +19 -20
- package/dist/components/toggle.d.mts +2 -3
- package/dist/components/toggle.mjs +4 -6
- package/dist/components/tooltip.d.mts +7 -6
- package/dist/components/tooltip.mjs +19 -17
- package/dist/hooks/use-animated-value.mjs +0 -1
- package/dist/hooks/use-copy-to-clipboard.mjs +0 -1
- package/dist/hooks/use-is-mobile.mjs +0 -1
- package/dist/hooks/use-media-query.mjs +0 -1
- package/dist/hooks/use-mutation-observer.mjs +0 -1
- package/dist/hooks/use-pagination.mjs +0 -1
- package/dist/index.d.mts +15 -13
- package/dist/index.mjs +18 -16
- package/dist/primitives/checkbox-group.d.mts +9 -10
- package/dist/primitives/checkbox-group.mjs +14 -19
- package/dist/primitives/input-number.d.mts +3 -3
- package/dist/primitives/input-number.mjs +3 -5
- package/dist/primitives/input.d.mts +4 -4
- package/dist/primitives/input.mjs +2 -3
- package/dist/primitives/progress-circle.d.mts +3 -3
- package/dist/primitives/progress-circle.mjs +2 -3
- package/dist/variants/alert.d.mts +1 -1
- package/dist/variants/alert.mjs +3 -13
- package/dist/variants/badge.d.mts +6 -4
- package/dist/variants/badge.mjs +7 -34
- package/dist/variants/button-group.d.mts +2 -2
- package/dist/variants/button-group.mjs +3 -14
- package/dist/variants/button.d.mts +12 -10
- package/dist/variants/button.mjs +15 -57
- package/dist/variants/empty.d.mts +1 -1
- package/dist/variants/empty.mjs +2 -7
- package/dist/variants/field.d.mts +3 -3
- package/dist/variants/field.mjs +4 -22
- package/dist/variants/input-group.d.mts +9 -9
- package/dist/variants/input-group.mjs +11 -70
- package/dist/variants/input-number.d.mts +45 -0
- package/dist/variants/input-number.mjs +40 -0
- package/dist/variants/item.d.mts +5 -4
- package/dist/variants/item.mjs +9 -31
- package/dist/variants/navigation-menu.d.mts +1 -1
- package/dist/variants/navigation-menu.mjs +1 -5
- package/dist/variants/progress-circle.d.mts +1 -1
- package/dist/variants/progress-circle.mjs +1 -5
- package/dist/variants/scroll-area.d.mts +2 -2
- package/dist/variants/scroll-area.mjs +3 -8
- package/dist/variants/separator.mjs +6 -6
- package/dist/variants/sheet.d.mts +4 -4
- package/dist/variants/sheet.mjs +5 -38
- package/dist/variants/sidebar.d.mts +4 -4
- package/dist/variants/sidebar.mjs +6 -23
- package/dist/variants/tabs.d.mts +18 -0
- package/dist/variants/tabs.mjs +15 -0
- package/dist/variants/toggle.d.mts +4 -4
- package/dist/variants/toggle.mjs +9 -27
- package/package.json +27 -44
- package/src/components/accordion.tsx +26 -68
- package/src/components/alert-dialog.tsx +70 -86
- package/src/components/alert.tsx +27 -19
- package/src/components/aspect-ratio.tsx +1 -4
- package/src/components/avatar.tsx +99 -12
- package/src/components/badge.tsx +5 -8
- package/src/components/breadcrumb.tsx +18 -24
- package/src/components/button-group.tsx +10 -20
- package/src/components/button.tsx +8 -19
- package/src/components/calendar.tsx +77 -132
- package/src/components/card.tsx +16 -22
- package/src/components/carousel.tsx +40 -58
- package/src/components/chart.tsx +41 -92
- package/src/components/checkbox-cards.tsx +11 -30
- package/src/components/checkbox-group.tsx +6 -28
- package/src/components/checkbox.tsx +6 -26
- package/src/components/collapsible.tsx +1 -4
- package/src/components/command.tsx +52 -65
- package/src/components/context-menu.tsx +46 -125
- package/src/components/dialog.tsx +49 -101
- package/src/components/direction.tsx +32 -0
- package/src/components/drawer.tsx +17 -79
- package/src/components/dropdown-menu.tsx +39 -118
- package/src/components/empty.tsx +6 -20
- package/src/components/field.tsx +19 -52
- package/src/components/form.tsx +19 -61
- package/src/components/hover-card.tsx +4 -27
- package/src/components/input-group.tsx +13 -52
- package/src/components/input-number.tsx +55 -75
- package/src/components/input-otp.tsx +19 -38
- package/src/components/input-password.tsx +5 -29
- package/src/components/input-search.tsx +6 -23
- package/src/components/input.tsx +1 -17
- package/src/components/item.tsx +17 -31
- package/src/components/kbd.tsx +2 -14
- package/src/components/label.tsx +2 -10
- package/src/components/menubar.tsx +34 -125
- package/src/components/native-select.tsx +21 -30
- package/src/components/navigation-menu.tsx +34 -94
- package/src/components/pagination.tsx +28 -34
- package/src/components/popover.tsx +66 -35
- package/src/components/progress-circle.tsx +7 -25
- package/src/components/progress.tsx +3 -16
- package/src/components/radio-cards.tsx +8 -27
- package/src/components/radio-group.tsx +7 -27
- package/src/components/radio.tsx +3 -24
- package/src/components/resizable.tsx +5 -26
- package/src/components/scroll-area.tsx +12 -32
- package/src/components/select.tsx +37 -60
- package/src/components/separator.tsx +4 -18
- package/src/components/sheet.tsx +37 -74
- package/src/components/sidebar.tsx +47 -177
- package/src/components/skeleton.tsx +1 -3
- package/src/components/slider.tsx +7 -36
- package/src/components/sonner.tsx +16 -6
- package/src/components/spinner.tsx +6 -15
- package/src/components/switch.tsx +8 -30
- package/src/components/table.tsx +18 -35
- package/src/components/tabs.tsx +16 -34
- package/src/components/textarea.tsx +1 -15
- package/src/components/toggle-group.tsx +34 -38
- package/src/components/toggle.tsx +4 -13
- package/src/components/tooltip.tsx +11 -37
- package/src/css/foundation/base.css +74 -0
- package/src/css/foundation/motion.css +69 -0
- package/src/css/foundation/source.css +10 -0
- package/src/css/foundation/tokens.css +107 -0
- package/src/css/foundation/variants.css +121 -0
- package/src/css/preset.css +13 -214
- package/src/css/style.css +9 -1
- package/src/css/{amber.css → themes/amber.css} +29 -0
- package/src/css/{blue.css → themes/blue.css} +29 -0
- package/src/css/{cyan.css → themes/cyan.css} +29 -0
- package/src/css/{emerald.css → themes/emerald.css} +29 -0
- package/src/css/{fuchsia.css → themes/fuchsia.css} +29 -0
- package/src/css/{gray.css → themes/gray.css} +29 -0
- package/src/css/{green.css → themes/green.css} +29 -0
- package/src/css/{indigo.css → themes/indigo.css} +29 -0
- package/src/css/{lime.css → themes/lime.css} +29 -0
- package/src/css/{neutral.css → themes/neutral.css} +29 -0
- package/src/css/{orange.css → themes/orange.css} +29 -0
- package/src/css/{pink.css → themes/pink.css} +29 -0
- package/src/css/{purple.css → themes/purple.css} +29 -0
- package/src/css/{red.css → themes/red.css} +29 -0
- package/src/css/{rose.css → themes/rose.css} +29 -0
- package/src/css/{sky.css → themes/sky.css} +29 -0
- package/src/css/{slate.css → themes/slate.css} +29 -0
- package/src/css/{stone.css → themes/stone.css} +29 -0
- package/src/css/{teal.css → themes/teal.css} +29 -0
- package/src/css/{violet.css → themes/violet.css} +29 -0
- package/src/css/{yellow.css → themes/yellow.css} +29 -0
- package/src/css/{zinc.css → themes/zinc.css} +29 -0
- package/src/hooks/use-animated-value.ts +1 -7
- package/src/hooks/use-copy-to-clipboard.ts +1 -6
- package/src/hooks/use-is-mobile.ts +0 -2
- package/src/hooks/use-media-query.ts +0 -2
- package/src/hooks/use-mutation-observer.ts +0 -3
- package/src/hooks/use-pagination.ts +0 -2
- package/src/index.ts +39 -80
- package/src/primitives/checkbox-group.tsx +25 -39
- package/src/primitives/input-number.tsx +17 -63
- package/src/primitives/input.tsx +8 -24
- package/src/primitives/progress-circle.tsx +13 -43
- package/src/variants/alert.ts +3 -14
- package/src/variants/badge.ts +8 -35
- package/src/variants/button-group.ts +5 -18
- package/src/variants/button.ts +21 -58
- package/src/variants/empty.ts +2 -11
- package/src/variants/field.ts +6 -19
- package/src/variants/input-group.ts +12 -64
- package/src/variants/input-number.ts +65 -0
- package/src/variants/item.ts +10 -32
- package/src/variants/navigation-menu.ts +1 -8
- package/src/variants/progress-circle.ts +1 -2
- package/src/variants/scroll-area.ts +3 -9
- package/src/variants/separator.ts +6 -7
- package/src/variants/sheet.ts +6 -39
- package/src/variants/sidebar.ts +7 -27
- package/src/variants/tabs.ts +34 -0
- package/src/variants/toggle.ts +9 -28
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { buttonVariants } from "../variants/button.mjs";
|
|
1
|
+
import { Dialog as Dialog$1 } from "radix-ui";
|
|
3
2
|
import { ComponentProps, JSX } from "react";
|
|
4
|
-
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
5
3
|
|
|
6
4
|
//#region src/components/dialog.d.ts
|
|
7
5
|
/**
|
|
8
6
|
* @since 0.3.16-canary.0
|
|
9
7
|
*/
|
|
10
|
-
type DialogProps = ComponentProps<typeof
|
|
8
|
+
type DialogProps = ComponentProps<typeof Dialog$1.Root>;
|
|
11
9
|
/**
|
|
12
10
|
* @since 0.3.16-canary.0
|
|
13
11
|
*/
|
|
@@ -17,7 +15,7 @@ declare function Dialog({
|
|
|
17
15
|
/**
|
|
18
16
|
* @since 0.3.16-canary.0
|
|
19
17
|
*/
|
|
20
|
-
type DialogTriggerProps = ComponentProps<typeof
|
|
18
|
+
type DialogTriggerProps = ComponentProps<typeof Dialog$1.Trigger>;
|
|
21
19
|
/**
|
|
22
20
|
* @since 0.3.16-canary.0
|
|
23
21
|
*/
|
|
@@ -27,13 +25,8 @@ declare function DialogTrigger({
|
|
|
27
25
|
/**
|
|
28
26
|
* @since 0.3.16-canary.0
|
|
29
27
|
*/
|
|
30
|
-
interface DialogContentProps extends ComponentProps<typeof
|
|
31
|
-
|
|
32
|
-
close?: string;
|
|
33
|
-
content?: string;
|
|
34
|
-
overlay?: string;
|
|
35
|
-
wrapper?: string;
|
|
36
|
-
};
|
|
28
|
+
interface DialogContentProps extends ComponentProps<typeof Dialog$1.Content> {
|
|
29
|
+
showCloseButton?: boolean;
|
|
37
30
|
}
|
|
38
31
|
/**
|
|
39
32
|
* @since 0.3.16-canary.0
|
|
@@ -41,7 +34,7 @@ interface DialogContentProps extends ComponentProps<typeof DialogPrimitive.Conte
|
|
|
41
34
|
declare function DialogContent({
|
|
42
35
|
children,
|
|
43
36
|
className,
|
|
44
|
-
|
|
37
|
+
showCloseButton,
|
|
45
38
|
...props
|
|
46
39
|
}: DialogContentProps): JSX.Element;
|
|
47
40
|
/**
|
|
@@ -56,6 +49,11 @@ declare function DialogHeader({
|
|
|
56
49
|
...props
|
|
57
50
|
}: DialogHeaderProps): JSX.Element;
|
|
58
51
|
/**
|
|
52
|
+
* Optional scrollable region for long content. When used, the Header and Footer
|
|
53
|
+
* stay pinned (shrink-0) and only this body scrolls; without it, the whole
|
|
54
|
+
* Content scrolls via its own max-height. This is a codefast enhancement over
|
|
55
|
+
* radix-vega, which has no scroll handling for tall dialogs.
|
|
56
|
+
*
|
|
59
57
|
* @since 0.3.16-canary.0
|
|
60
58
|
*/
|
|
61
59
|
type DialogBodyProps = ComponentProps<"div">;
|
|
@@ -69,18 +67,22 @@ declare function DialogBody({
|
|
|
69
67
|
/**
|
|
70
68
|
* @since 0.3.16-canary.0
|
|
71
69
|
*/
|
|
72
|
-
|
|
70
|
+
interface DialogFooterProps extends ComponentProps<"div"> {
|
|
71
|
+
showCloseButton?: boolean;
|
|
72
|
+
}
|
|
73
73
|
/**
|
|
74
74
|
* @since 0.3.16-canary.0
|
|
75
75
|
*/
|
|
76
76
|
declare function DialogFooter({
|
|
77
|
+
children,
|
|
77
78
|
className,
|
|
79
|
+
showCloseButton,
|
|
78
80
|
...props
|
|
79
81
|
}: DialogFooterProps): JSX.Element;
|
|
80
82
|
/**
|
|
81
83
|
* @since 0.3.16-canary.0
|
|
82
84
|
*/
|
|
83
|
-
type DialogTitleProps = ComponentProps<typeof
|
|
85
|
+
type DialogTitleProps = ComponentProps<typeof Dialog$1.Title>;
|
|
84
86
|
/**
|
|
85
87
|
* @since 0.3.16-canary.0
|
|
86
88
|
*/
|
|
@@ -91,7 +93,7 @@ declare function DialogTitle({
|
|
|
91
93
|
/**
|
|
92
94
|
* @since 0.3.16-canary.0
|
|
93
95
|
*/
|
|
94
|
-
type DialogDescriptionProps = ComponentProps<typeof
|
|
96
|
+
type DialogDescriptionProps = ComponentProps<typeof Dialog$1.Description>;
|
|
95
97
|
/**
|
|
96
98
|
* @since 0.3.16-canary.0
|
|
97
99
|
*/
|
|
@@ -102,17 +104,11 @@ declare function DialogDescription({
|
|
|
102
104
|
/**
|
|
103
105
|
* @since 0.3.16-canary.0
|
|
104
106
|
*/
|
|
105
|
-
|
|
106
|
-
size?: VariantProps<typeof buttonVariants>["size"];
|
|
107
|
-
variant?: VariantProps<typeof buttonVariants>["variant"];
|
|
108
|
-
}
|
|
107
|
+
type DialogCloseProps = ComponentProps<typeof Dialog$1.Close>;
|
|
109
108
|
/**
|
|
110
109
|
* @since 0.3.16-canary.0
|
|
111
110
|
*/
|
|
112
111
|
declare function DialogClose({
|
|
113
|
-
className,
|
|
114
|
-
size,
|
|
115
|
-
variant,
|
|
116
112
|
...props
|
|
117
113
|
}: DialogCloseProps): JSX.Element;
|
|
118
114
|
//#endregion
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import { cn } from "../lib/utils.mjs";
|
|
3
|
-
import {
|
|
2
|
+
import { Button } from "./button.mjs";
|
|
4
3
|
import { XIcon } from "lucide-react";
|
|
4
|
+
import { Dialog as Dialog$1 } from "radix-ui";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
7
6
|
//#region src/components/dialog.tsx
|
|
8
7
|
/**
|
|
9
8
|
* @since 0.3.16-canary.0
|
|
10
9
|
*/
|
|
11
10
|
function Dialog({ ...props }) {
|
|
12
|
-
return /* @__PURE__ */ jsx(
|
|
11
|
+
return /* @__PURE__ */ jsx(Dialog$1.Root, {
|
|
13
12
|
"data-slot": "dialog",
|
|
14
13
|
...props
|
|
15
14
|
});
|
|
@@ -18,7 +17,7 @@ function Dialog({ ...props }) {
|
|
|
18
17
|
* @since 0.3.16-canary.0
|
|
19
18
|
*/
|
|
20
19
|
function DialogTrigger({ ...props }) {
|
|
21
|
-
return /* @__PURE__ */ jsx(
|
|
20
|
+
return /* @__PURE__ */ jsx(Dialog$1.Trigger, {
|
|
22
21
|
"data-slot": "dialog-trigger",
|
|
23
22
|
...props
|
|
24
23
|
});
|
|
@@ -26,38 +25,38 @@ function DialogTrigger({ ...props }) {
|
|
|
26
25
|
/**
|
|
27
26
|
* @since 0.3.16-canary.0
|
|
28
27
|
*/
|
|
29
|
-
function DialogContent({ children, className,
|
|
30
|
-
return /* @__PURE__ */ jsxs(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
38
|
-
className: cn("relative row-start-2 flex w-full flex-col", "rounded-t-2xl border", "bg-popover text-popover-foreground shadow-lg", "sm:max-w-lg sm:rounded-2xl", classNames?.content, className),
|
|
28
|
+
function DialogContent({ children, className, showCloseButton = true, ...props }) {
|
|
29
|
+
return /* @__PURE__ */ jsxs(Dialog$1.Portal, {
|
|
30
|
+
"data-slot": "dialog-portal",
|
|
31
|
+
children: [/* @__PURE__ */ jsx(Dialog$1.Overlay, {
|
|
32
|
+
className: "fixed inset-0 isolate z-50 bg-black/10 ease-gentle supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:animation-duration-overlay-in data-open:fade-in-0 data-closed:animate-out data-closed:ease-exit data-closed:animation-duration-overlay-out data-closed:fade-out-0",
|
|
33
|
+
"data-slot": "dialog-overlay"
|
|
34
|
+
}), /* @__PURE__ */ jsxs(Dialog$1.Content, {
|
|
35
|
+
className: cn("fixed start-1/2 top-1/2 z-50 flex max-h-[calc(100dvh-2rem)] w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 flex-col gap-6 overflow-y-auto rounded-xl bg-popover p-6 text-sm text-popover-foreground ring-1 ring-foreground/10 ease-ui outline-none sm:max-w-md rtl:translate-x-1/2 data-open:animate-in data-open:animation-duration-overlay-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:ease-exit data-closed:animation-duration-overlay-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
|
|
39
36
|
"data-slot": "dialog-content",
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
size: "icon",
|
|
44
|
-
variant: "ghost"
|
|
45
|
-
}),
|
|
37
|
+
...props,
|
|
38
|
+
children: [children, showCloseButton ? /* @__PURE__ */ jsx(Dialog$1.Close, {
|
|
39
|
+
asChild: true,
|
|
46
40
|
"data-slot": "dialog-close",
|
|
47
|
-
children:
|
|
48
|
-
className: "
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
41
|
+
children: /* @__PURE__ */ jsxs(Button, {
|
|
42
|
+
className: "absolute end-4 top-4",
|
|
43
|
+
size: "icon-sm",
|
|
44
|
+
variant: "ghost",
|
|
45
|
+
children: [/* @__PURE__ */ jsx(XIcon, {}), /* @__PURE__ */ jsx("span", {
|
|
46
|
+
className: "sr-only",
|
|
47
|
+
children: "Close"
|
|
48
|
+
})]
|
|
49
|
+
})
|
|
50
|
+
}) : null]
|
|
51
|
+
})]
|
|
52
|
+
});
|
|
54
53
|
}
|
|
55
54
|
/**
|
|
56
55
|
* @since 0.3.16-canary.0
|
|
57
56
|
*/
|
|
58
57
|
function DialogHeader({ className, ...props }) {
|
|
59
|
-
return /* @__PURE__ */ jsx("
|
|
60
|
-
className: cn("flex shrink-0 flex-col gap-
|
|
58
|
+
return /* @__PURE__ */ jsx("div", {
|
|
59
|
+
className: cn("flex shrink-0 flex-col gap-2", className),
|
|
61
60
|
"data-slot": "dialog-header",
|
|
62
61
|
...props
|
|
63
62
|
});
|
|
@@ -66,8 +65,8 @@ function DialogHeader({ className, ...props }) {
|
|
|
66
65
|
* @since 0.3.16-canary.0
|
|
67
66
|
*/
|
|
68
67
|
function DialogBody({ className, ...props }) {
|
|
69
|
-
return /* @__PURE__ */ jsx("
|
|
70
|
-
className: cn("overflow-auto
|
|
68
|
+
return /* @__PURE__ */ jsx("div", {
|
|
69
|
+
className: cn("-mx-6 min-h-0 flex-1 overflow-y-auto px-6", className),
|
|
71
70
|
"data-slot": "dialog-body",
|
|
72
71
|
...props
|
|
73
72
|
});
|
|
@@ -75,19 +74,26 @@ function DialogBody({ className, ...props }) {
|
|
|
75
74
|
/**
|
|
76
75
|
* @since 0.3.16-canary.0
|
|
77
76
|
*/
|
|
78
|
-
function DialogFooter({ className, ...props }) {
|
|
79
|
-
return /* @__PURE__ */
|
|
80
|
-
className: cn("flex shrink-0 flex-col-reverse gap-2
|
|
77
|
+
function DialogFooter({ children, className, showCloseButton = false, ...props }) {
|
|
78
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
79
|
+
className: cn("flex shrink-0 flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
81
80
|
"data-slot": "dialog-footer",
|
|
82
|
-
...props
|
|
81
|
+
...props,
|
|
82
|
+
children: [children, showCloseButton ? /* @__PURE__ */ jsx(Dialog$1.Close, {
|
|
83
|
+
asChild: true,
|
|
84
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
85
|
+
variant: "outline",
|
|
86
|
+
children: "Close"
|
|
87
|
+
})
|
|
88
|
+
}) : null]
|
|
83
89
|
});
|
|
84
90
|
}
|
|
85
91
|
/**
|
|
86
92
|
* @since 0.3.16-canary.0
|
|
87
93
|
*/
|
|
88
94
|
function DialogTitle({ className, ...props }) {
|
|
89
|
-
return /* @__PURE__ */ jsx(
|
|
90
|
-
className: cn("
|
|
95
|
+
return /* @__PURE__ */ jsx(Dialog$1.Title, {
|
|
96
|
+
className: cn("font-heading leading-none font-medium", className),
|
|
91
97
|
"data-slot": "dialog-title",
|
|
92
98
|
...props
|
|
93
99
|
});
|
|
@@ -96,8 +102,8 @@ function DialogTitle({ className, ...props }) {
|
|
|
96
102
|
* @since 0.3.16-canary.0
|
|
97
103
|
*/
|
|
98
104
|
function DialogDescription({ className, ...props }) {
|
|
99
|
-
return /* @__PURE__ */ jsx(
|
|
100
|
-
className: cn("text-sm text-muted-foreground", className),
|
|
105
|
+
return /* @__PURE__ */ jsx(Dialog$1.Description, {
|
|
106
|
+
className: cn("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", className),
|
|
101
107
|
"data-slot": "dialog-description",
|
|
102
108
|
...props
|
|
103
109
|
});
|
|
@@ -105,13 +111,8 @@ function DialogDescription({ className, ...props }) {
|
|
|
105
111
|
/**
|
|
106
112
|
* @since 0.3.16-canary.0
|
|
107
113
|
*/
|
|
108
|
-
function DialogClose({
|
|
109
|
-
return /* @__PURE__ */ jsx(
|
|
110
|
-
className: buttonVariants({
|
|
111
|
-
className,
|
|
112
|
-
size,
|
|
113
|
-
variant
|
|
114
|
-
}),
|
|
114
|
+
function DialogClose({ ...props }) {
|
|
115
|
+
return /* @__PURE__ */ jsx(Dialog$1.Close, {
|
|
115
116
|
"data-slot": "dialog-close",
|
|
116
117
|
...props
|
|
117
118
|
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Direction } from "radix-ui";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/direction.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* @since 0.4.0-canary.4
|
|
7
|
+
*/
|
|
8
|
+
type DirectionProviderProps = ComponentProps<typeof Direction.DirectionProvider> & {
|
|
9
|
+
direction?: ComponentProps<typeof Direction.DirectionProvider>["dir"];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @since 0.4.0-canary.4
|
|
13
|
+
*/
|
|
14
|
+
declare function DirectionProvider({
|
|
15
|
+
dir,
|
|
16
|
+
direction,
|
|
17
|
+
children
|
|
18
|
+
}: DirectionProviderProps): import("react").JSX.Element;
|
|
19
|
+
/**
|
|
20
|
+
* @since 0.4.0-canary.4
|
|
21
|
+
*/
|
|
22
|
+
declare const useDirection: typeof Direction.useDirection;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { DirectionProvider, type DirectionProviderProps, useDirection };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Direction } from "radix-ui";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/direction.tsx
|
|
4
|
+
/**
|
|
5
|
+
* @since 0.4.0-canary.4
|
|
6
|
+
*/
|
|
7
|
+
function DirectionProvider({ dir, direction, children }) {
|
|
8
|
+
return /* @__PURE__ */ jsx(Direction.DirectionProvider, {
|
|
9
|
+
dir: direction ?? dir,
|
|
10
|
+
children
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @since 0.4.0-canary.4
|
|
15
|
+
*/
|
|
16
|
+
const useDirection = Direction.useDirection;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { DirectionProvider, useDirection };
|
|
@@ -28,20 +28,13 @@ declare function DrawerTrigger({
|
|
|
28
28
|
/**
|
|
29
29
|
* @since 0.3.16-canary.0
|
|
30
30
|
*/
|
|
31
|
-
|
|
32
|
-
classNames?: {
|
|
33
|
-
content?: string;
|
|
34
|
-
handle?: string;
|
|
35
|
-
overlay?: string;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
31
|
+
type DrawerContentProps = ComponentProps<typeof Drawer$1.Content>;
|
|
38
32
|
/**
|
|
39
33
|
* @since 0.3.16-canary.0
|
|
40
34
|
*/
|
|
41
35
|
declare function DrawerContent({
|
|
42
36
|
children,
|
|
43
37
|
className,
|
|
44
|
-
classNames,
|
|
45
38
|
...props
|
|
46
39
|
}: DrawerContentProps): JSX.Element;
|
|
47
40
|
/**
|
|
@@ -55,17 +48,6 @@ declare function DrawerHeader({
|
|
|
55
48
|
className,
|
|
56
49
|
...props
|
|
57
50
|
}: DrawerHeaderProps): JSX.Element;
|
|
58
|
-
/**
|
|
59
|
-
* @since 0.3.16-canary.0
|
|
60
|
-
*/
|
|
61
|
-
type DrawerBodyProps = ComponentProps<"div">;
|
|
62
|
-
/**
|
|
63
|
-
* @since 0.3.16-canary.0
|
|
64
|
-
*/
|
|
65
|
-
declare function DrawerBody({
|
|
66
|
-
className,
|
|
67
|
-
...props
|
|
68
|
-
}: DrawerBodyProps): JSX.Element;
|
|
69
51
|
/**
|
|
70
52
|
* @since 0.3.16-canary.0
|
|
71
53
|
*/
|
|
@@ -116,4 +98,4 @@ declare function DrawerClose({
|
|
|
116
98
|
...props
|
|
117
99
|
}: DrawerCloseProps): JSX.Element;
|
|
118
100
|
//#endregion
|
|
119
|
-
export { Drawer,
|
|
101
|
+
export { Drawer, DrawerClose, type DrawerCloseProps, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerProps, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import { cn } from "../lib/utils.mjs";
|
|
3
2
|
import { buttonVariants } from "../variants/button.mjs";
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -26,23 +25,26 @@ function DrawerTrigger({ ...props }) {
|
|
|
26
25
|
/**
|
|
27
26
|
* @since 0.3.16-canary.0
|
|
28
27
|
*/
|
|
29
|
-
function DrawerContent({ children, className,
|
|
30
|
-
return /* @__PURE__ */ jsxs(Drawer$1.Portal, {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
28
|
+
function DrawerContent({ children, className, ...props }) {
|
|
29
|
+
return /* @__PURE__ */ jsxs(Drawer$1.Portal, {
|
|
30
|
+
"data-slot": "drawer-portal",
|
|
31
|
+
children: [/* @__PURE__ */ jsx(Drawer$1.Overlay, {
|
|
32
|
+
className: "fixed inset-0 z-50 bg-black/10 ease-gentle supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:animation-duration-panel-in data-open:fade-in-0 data-closed:animate-out data-closed:ease-exit data-closed:animation-duration-panel-out data-closed:fade-out-0",
|
|
33
|
+
"data-slot": "drawer-overlay"
|
|
34
|
+
}), /* @__PURE__ */ jsxs(Drawer$1.Content, {
|
|
35
|
+
className: cn("group/drawer-content fixed z-50 flex h-auto flex-col bg-popover text-sm text-popover-foreground data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:start-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-e-xl data-[vaul-drawer-direction=left]:border-e data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:end-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-s-xl data-[vaul-drawer-direction=right]:border-s data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm", className),
|
|
36
|
+
"data-slot": "drawer-content",
|
|
37
|
+
...props,
|
|
38
|
+
children: [/* @__PURE__ */ jsx("div", { className: "mx-auto mt-4 hidden h-1.5 w-25 shrink-0 rounded-full bg-muted group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), children]
|
|
39
|
+
})]
|
|
40
|
+
});
|
|
39
41
|
}
|
|
40
42
|
/**
|
|
41
43
|
* @since 0.3.16-canary.0
|
|
42
44
|
*/
|
|
43
45
|
function DrawerHeader({ className, ...props }) {
|
|
44
46
|
return /* @__PURE__ */ jsx("div", {
|
|
45
|
-
className: cn("flex flex-col gap-
|
|
47
|
+
className: cn("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-start", className),
|
|
46
48
|
"data-slot": "drawer-header",
|
|
47
49
|
...props
|
|
48
50
|
});
|
|
@@ -50,19 +52,9 @@ function DrawerHeader({ className, ...props }) {
|
|
|
50
52
|
/**
|
|
51
53
|
* @since 0.3.16-canary.0
|
|
52
54
|
*/
|
|
53
|
-
function DrawerBody({ className, ...props }) {
|
|
54
|
-
return /* @__PURE__ */ jsx("main", {
|
|
55
|
-
className: cn("overflow-auto", "px-6 py-2", className),
|
|
56
|
-
"data-slot": "drawer-body",
|
|
57
|
-
...props
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* @since 0.3.16-canary.0
|
|
62
|
-
*/
|
|
63
55
|
function DrawerFooter({ className, ...props }) {
|
|
64
56
|
return /* @__PURE__ */ jsx("div", {
|
|
65
|
-
className: cn("flex flex-col gap-2
|
|
57
|
+
className: cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
66
58
|
"data-slot": "drawer-footer",
|
|
67
59
|
...props
|
|
68
60
|
});
|
|
@@ -72,7 +64,7 @@ function DrawerFooter({ className, ...props }) {
|
|
|
72
64
|
*/
|
|
73
65
|
function DrawerTitle({ className, ...props }) {
|
|
74
66
|
return /* @__PURE__ */ jsx(Drawer$1.Title, {
|
|
75
|
-
className: cn("font-
|
|
67
|
+
className: cn("font-heading font-medium text-foreground", className),
|
|
76
68
|
"data-slot": "drawer-title",
|
|
77
69
|
...props
|
|
78
70
|
});
|
|
@@ -102,4 +94,4 @@ function DrawerClose({ className, size, variant, ...props }) {
|
|
|
102
94
|
});
|
|
103
95
|
}
|
|
104
96
|
//#endregion
|
|
105
|
-
export { Drawer,
|
|
97
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { DropdownMenu as DropdownMenu$1 } from "radix-ui";
|
|
1
2
|
import { ComponentProps, JSX } from "react";
|
|
2
|
-
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
3
3
|
|
|
4
4
|
//#region src/components/dropdown-menu.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* @since 0.3.16-canary.0
|
|
7
7
|
*/
|
|
8
|
-
type DropdownMenuProps = ComponentProps<typeof
|
|
8
|
+
type DropdownMenuProps = ComponentProps<typeof DropdownMenu$1.Root>;
|
|
9
9
|
/**
|
|
10
10
|
* @since 0.3.16-canary.0
|
|
11
11
|
*/
|
|
@@ -15,7 +15,7 @@ declare function DropdownMenu({
|
|
|
15
15
|
/**
|
|
16
16
|
* @since 0.3.16-canary.0
|
|
17
17
|
*/
|
|
18
|
-
type DropdownMenuTriggerProps = ComponentProps<typeof
|
|
18
|
+
type DropdownMenuTriggerProps = ComponentProps<typeof DropdownMenu$1.Trigger>;
|
|
19
19
|
/**
|
|
20
20
|
* @since 0.3.16-canary.0
|
|
21
21
|
*/
|
|
@@ -25,7 +25,7 @@ declare function DropdownMenuTrigger({
|
|
|
25
25
|
/**
|
|
26
26
|
* @since 0.3.16-canary.0
|
|
27
27
|
*/
|
|
28
|
-
type DropdownMenuGroupProps = ComponentProps<typeof
|
|
28
|
+
type DropdownMenuGroupProps = ComponentProps<typeof DropdownMenu$1.Group>;
|
|
29
29
|
/**
|
|
30
30
|
* @since 0.3.16-canary.0
|
|
31
31
|
*/
|
|
@@ -35,7 +35,7 @@ declare function DropdownMenuGroup({
|
|
|
35
35
|
/**
|
|
36
36
|
* @since 0.3.16-canary.0
|
|
37
37
|
*/
|
|
38
|
-
type DropdownMenuSubProps = ComponentProps<typeof
|
|
38
|
+
type DropdownMenuSubProps = ComponentProps<typeof DropdownMenu$1.Sub>;
|
|
39
39
|
/**
|
|
40
40
|
* @since 0.3.16-canary.0
|
|
41
41
|
*/
|
|
@@ -45,7 +45,7 @@ declare function DropdownMenuSub({
|
|
|
45
45
|
/**
|
|
46
46
|
* @since 0.3.16-canary.0
|
|
47
47
|
*/
|
|
48
|
-
type DropdownMenuRadioGroupProps = ComponentProps<typeof
|
|
48
|
+
type DropdownMenuRadioGroupProps = ComponentProps<typeof DropdownMenu$1.RadioGroup>;
|
|
49
49
|
/**
|
|
50
50
|
* @since 0.3.16-canary.0
|
|
51
51
|
*/
|
|
@@ -55,7 +55,7 @@ declare function DropdownMenuRadioGroup({
|
|
|
55
55
|
/**
|
|
56
56
|
* @since 0.3.16-canary.0
|
|
57
57
|
*/
|
|
58
|
-
interface DropdownMenuSubTriggerProps extends ComponentProps<typeof
|
|
58
|
+
interface DropdownMenuSubTriggerProps extends ComponentProps<typeof DropdownMenu$1.SubTrigger> {
|
|
59
59
|
inset?: boolean;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
@@ -70,7 +70,7 @@ declare function DropdownMenuSubTrigger({
|
|
|
70
70
|
/**
|
|
71
71
|
* @since 0.3.16-canary.0
|
|
72
72
|
*/
|
|
73
|
-
type DropdownMenuSubContentProps = ComponentProps<typeof
|
|
73
|
+
type DropdownMenuSubContentProps = ComponentProps<typeof DropdownMenu$1.SubContent>;
|
|
74
74
|
/**
|
|
75
75
|
* @since 0.3.16-canary.0
|
|
76
76
|
*/
|
|
@@ -81,11 +81,12 @@ declare function DropdownMenuSubContent({
|
|
|
81
81
|
/**
|
|
82
82
|
* @since 0.3.16-canary.0
|
|
83
83
|
*/
|
|
84
|
-
type DropdownMenuContentProps = ComponentProps<typeof
|
|
84
|
+
type DropdownMenuContentProps = ComponentProps<typeof DropdownMenu$1.Content>;
|
|
85
85
|
/**
|
|
86
86
|
* @since 0.3.16-canary.0
|
|
87
87
|
*/
|
|
88
88
|
declare function DropdownMenuContent({
|
|
89
|
+
align,
|
|
89
90
|
className,
|
|
90
91
|
sideOffset,
|
|
91
92
|
...props
|
|
@@ -93,7 +94,7 @@ declare function DropdownMenuContent({
|
|
|
93
94
|
/**
|
|
94
95
|
* @since 0.3.16-canary.0
|
|
95
96
|
*/
|
|
96
|
-
interface DropdownMenuItemProps extends ComponentProps<typeof
|
|
97
|
+
interface DropdownMenuItemProps extends ComponentProps<typeof DropdownMenu$1.Item> {
|
|
97
98
|
inset?: boolean;
|
|
98
99
|
variant?: "default" | "destructive";
|
|
99
100
|
}
|
|
@@ -109,7 +110,9 @@ declare function DropdownMenuItem({
|
|
|
109
110
|
/**
|
|
110
111
|
* @since 0.3.16-canary.0
|
|
111
112
|
*/
|
|
112
|
-
|
|
113
|
+
interface DropdownMenuCheckboxItemProps extends ComponentProps<typeof DropdownMenu$1.CheckboxItem> {
|
|
114
|
+
inset?: boolean;
|
|
115
|
+
}
|
|
113
116
|
/**
|
|
114
117
|
* @since 0.3.16-canary.0
|
|
115
118
|
*/
|
|
@@ -117,24 +120,28 @@ declare function DropdownMenuCheckboxItem({
|
|
|
117
120
|
checked,
|
|
118
121
|
children,
|
|
119
122
|
className,
|
|
123
|
+
inset,
|
|
120
124
|
...props
|
|
121
125
|
}: DropdownMenuCheckboxItemProps): JSX.Element;
|
|
122
126
|
/**
|
|
123
127
|
* @since 0.3.16-canary.0
|
|
124
128
|
*/
|
|
125
|
-
|
|
129
|
+
interface DropdownMenuRadioItemProps extends ComponentProps<typeof DropdownMenu$1.RadioItem> {
|
|
130
|
+
inset?: boolean;
|
|
131
|
+
}
|
|
126
132
|
/**
|
|
127
133
|
* @since 0.3.16-canary.0
|
|
128
134
|
*/
|
|
129
135
|
declare function DropdownMenuRadioItem({
|
|
130
136
|
children,
|
|
131
137
|
className,
|
|
138
|
+
inset,
|
|
132
139
|
...props
|
|
133
140
|
}: DropdownMenuRadioItemProps): JSX.Element;
|
|
134
141
|
/**
|
|
135
142
|
* @since 0.3.16-canary.0
|
|
136
143
|
*/
|
|
137
|
-
interface DropdownMenuLabelProps extends ComponentProps<typeof
|
|
144
|
+
interface DropdownMenuLabelProps extends ComponentProps<typeof DropdownMenu$1.Label> {
|
|
138
145
|
inset?: boolean;
|
|
139
146
|
}
|
|
140
147
|
/**
|
|
@@ -148,7 +155,7 @@ declare function DropdownMenuLabel({
|
|
|
148
155
|
/**
|
|
149
156
|
* @since 0.3.16-canary.0
|
|
150
157
|
*/
|
|
151
|
-
type DropdownMenuSeparatorProps = ComponentProps<typeof
|
|
158
|
+
type DropdownMenuSeparatorProps = ComponentProps<typeof DropdownMenu$1.Separator>;
|
|
152
159
|
/**
|
|
153
160
|
* @since 0.3.16-canary.0
|
|
154
161
|
*/
|
|
@@ -170,7 +177,7 @@ declare function DropdownMenuShortcut({
|
|
|
170
177
|
/**
|
|
171
178
|
* @since 0.3.16-canary.0
|
|
172
179
|
*/
|
|
173
|
-
type DropdownMenuArrowProps = ComponentProps<typeof
|
|
180
|
+
type DropdownMenuArrowProps = ComponentProps<typeof DropdownMenu$1.Arrow>;
|
|
174
181
|
/**
|
|
175
182
|
* @since 0.3.16-canary.0
|
|
176
183
|
*/
|