@codefast/ui 0.3.11 → 0.3.12-canary.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/CHANGELOG.md +15 -0
- package/README.md +4 -0
- package/dist/components/accordion.d.ts +11 -29
- package/dist/components/accordion.d.ts.map +1 -0
- package/dist/components/accordion.js +10 -37
- package/dist/components/alert-dialog.d.ts +25 -60
- package/dist/components/alert-dialog.d.ts.map +1 -0
- package/dist/components/alert-dialog.js +16 -69
- package/dist/components/alert.d.ts +16 -27
- package/dist/components/alert.d.ts.map +1 -0
- package/dist/components/alert.js +22 -30
- package/dist/components/aspect-ratio.d.ts +5 -8
- package/dist/components/aspect-ratio.d.ts.map +1 -0
- package/dist/components/aspect-ratio.js +5 -7
- package/dist/components/avatar.d.ts +7 -17
- package/dist/components/avatar.d.ts.map +1 -0
- package/dist/components/avatar.js +7 -18
- package/dist/components/badge.d.ts +15 -21
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/badge.js +23 -20
- package/dist/components/breadcrumb.d.ts +13 -35
- package/dist/components/breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb.js +13 -49
- package/dist/components/button-group.d.ts +15 -29
- package/dist/components/button-group.d.ts.map +1 -0
- package/dist/components/button-group.js +22 -27
- package/dist/components/button.d.ts +26 -35
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/button.js +43 -51
- package/dist/components/calendar.d.ts +10 -24
- package/dist/components/calendar.d.ts.map +1 -0
- package/dist/components/calendar.js +75 -92
- package/dist/components/card.d.ts +11 -34
- package/dist/components/card.d.ts.map +1 -0
- package/dist/components/card.js +11 -39
- package/dist/components/carousel.d.ts +25 -55
- package/dist/components/carousel.d.ts.map +1 -0
- package/dist/components/carousel.js +82 -114
- package/dist/components/chart.d.ts +37 -72
- package/dist/components/chart.d.ts.map +1 -0
- package/dist/components/chart.js +161 -150
- package/dist/components/checkbox-cards.d.ts +9 -15
- package/dist/components/checkbox-cards.d.ts.map +1 -0
- package/dist/components/checkbox-cards.js +8 -22
- package/dist/components/checkbox-group.d.ts +9 -16
- package/dist/components/checkbox-group.d.ts.map +1 -0
- package/dist/components/checkbox-group.js +7 -19
- package/dist/components/checkbox.d.ts +5 -9
- package/dist/components/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox.js +6 -14
- package/dist/components/collapsible.d.ts +7 -14
- package/dist/components/collapsible.d.ts.map +1 -0
- package/dist/components/collapsible.js +7 -15
- package/dist/components/command.d.ts +24 -55
- package/dist/components/command.d.ts.map +1 -0
- package/dist/components/command.js +18 -69
- package/dist/components/context-menu.d.ts +23 -72
- package/dist/components/context-menu.d.ts.map +1 -0
- package/dist/components/context-menu.js +21 -89
- package/dist/components/dialog.d.ts +23 -53
- package/dist/components/dialog.d.ts.map +1 -0
- package/dist/components/dialog.js +20 -72
- package/dist/components/drawer.d.ts +29 -60
- package/dist/components/drawer.d.ts.map +1 -0
- package/dist/components/drawer.js +16 -58
- package/dist/components/dropdown-menu.d.ts +23 -73
- package/dist/components/dropdown-menu.d.ts.map +1 -0
- package/dist/components/dropdown-menu.js +21 -96
- package/dist/components/empty.d.ts +16 -37
- package/dist/components/empty.d.ts.map +1 -0
- package/dist/components/empty.js +24 -44
- package/dist/components/field.d.ts +26 -63
- package/dist/components/field.d.ts.map +1 -0
- package/dist/components/field.js +46 -89
- package/dist/components/form.d.ts +16 -37
- package/dist/components/form.d.ts.map +1 -0
- package/dist/components/form.js +50 -66
- package/dist/components/hover-card.d.ts +8 -21
- package/dist/components/hover-card.d.ts.map +1 -0
- package/dist/components/hover-card.js +8 -23
- package/dist/components/input-group.d.ts +29 -53
- package/dist/components/input-group.d.ts.map +1 -0
- package/dist/components/input-group.js +59 -66
- package/dist/components/input-number.d.ts +8 -28
- package/dist/components/input-number.d.ts.map +1 -0
- package/dist/components/input-number.js +14 -55
- package/dist/components/input-otp.d.ts +11 -24
- package/dist/components/input-otp.d.ts.map +1 -0
- package/dist/components/input-otp.js +13 -34
- package/dist/components/input-password.d.ts +6 -12
- package/dist/components/input-password.d.ts.map +1 -0
- package/dist/components/input-password.js +10 -31
- package/dist/components/input-search.d.ts +9 -18
- package/dist/components/input-search.d.ts.map +1 -0
- package/dist/components/input-search.js +16 -44
- package/dist/components/input.d.ts +5 -10
- package/dist/components/input.d.ts.map +1 -0
- package/dist/components/input.js +5 -9
- package/dist/components/item.d.ts +33 -69
- package/dist/components/item.d.ts.map +1 -0
- package/dist/components/item.js +47 -90
- package/dist/components/kbd.d.ts +6 -13
- package/dist/components/kbd.d.ts.map +1 -0
- package/dist/components/kbd.js +6 -13
- package/dist/components/label.d.ts +5 -9
- package/dist/components/label.d.ts.map +1 -0
- package/dist/components/label.js +5 -8
- package/dist/components/menubar.d.ts +24 -80
- package/dist/components/menubar.d.ts.map +1 -0
- package/dist/components/menubar.js +23 -99
- package/dist/components/native-select.d.ts +7 -16
- package/dist/components/native-select.d.ts.map +1 -0
- package/dist/components/native-select.js +7 -25
- package/dist/components/navigation-menu.d.ts +13 -36
- package/dist/components/navigation-menu.d.ts.map +1 -0
- package/dist/components/navigation-menu.js +25 -61
- package/dist/components/pagination.d.ts +15 -35
- package/dist/components/pagination.d.ts.map +1 -0
- package/dist/components/pagination.js +13 -55
- package/dist/components/popover.d.ts +9 -24
- package/dist/components/popover.d.ts.map +1 -0
- package/dist/components/popover.js +9 -27
- package/dist/components/progress-circle.d.ts +89 -106
- package/dist/components/progress-circle.d.ts.map +1 -0
- package/dist/components/progress-circle.js +70 -103
- package/dist/components/progress.d.ts +5 -10
- package/dist/components/progress.d.ts.map +1 -0
- package/dist/components/progress.js +7 -13
- package/dist/components/radio-cards.d.ts +5 -10
- package/dist/components/radio-cards.d.ts.map +1 -0
- package/dist/components/radio-cards.js +7 -21
- package/dist/components/radio-group.d.ts +6 -13
- package/dist/components/radio-group.d.ts.map +1 -0
- package/dist/components/radio-group.js +6 -17
- package/dist/components/radio.d.ts +6 -12
- package/dist/components/radio.d.ts.map +1 -0
- package/dist/components/radio.js +5 -10
- package/dist/components/resizable.d.ts +8 -18
- package/dist/components/resizable.d.ts.map +1 -0
- package/dist/components/resizable.js +7 -21
- package/dist/components/scroll-area.d.ts +21 -33
- package/dist/components/scroll-area.d.ts.map +1 -0
- package/dist/components/scroll-area.js +64 -84
- package/dist/components/select.d.ts +17 -50
- package/dist/components/select.d.ts.map +1 -0
- package/dist/components/select.js +26 -78
- package/dist/components/separator.d.ts +20 -29
- package/dist/components/separator.d.ts.map +1 -0
- package/dist/components/separator.js +27 -36
- package/dist/components/sheet.d.ts +30 -62
- package/dist/components/sheet.d.ts.map +1 -0
- package/dist/components/sheet.js +36 -80
- package/dist/components/sidebar.d.ts +67 -160
- package/dist/components/sidebar.d.ts.map +1 -0
- package/dist/components/sidebar.js +166 -301
- package/dist/components/skeleton.d.ts +5 -9
- package/dist/components/skeleton.d.ts.map +1 -0
- package/dist/components/skeleton.js +5 -8
- package/dist/components/slider.d.ts +5 -13
- package/dist/components/slider.d.ts.map +1 -0
- package/dist/components/slider.js +12 -34
- package/dist/components/sonner.d.ts +8 -10
- package/dist/components/sonner.d.ts.map +1 -0
- package/dist/components/sonner.js +13 -16
- package/dist/components/spinner.d.ts +6 -12
- package/dist/components/spinner.d.ts.map +1 -0
- package/dist/components/spinner.js +20 -33
- package/dist/components/switch.d.ts +5 -9
- package/dist/components/switch.d.ts.map +1 -0
- package/dist/components/switch.js +5 -12
- package/dist/components/table.d.ts +12 -37
- package/dist/components/table.d.ts.map +1 -0
- package/dist/components/table.js +12 -47
- package/dist/components/tabs.d.ts +8 -21
- package/dist/components/tabs.d.ts.map +1 -0
- package/dist/components/tabs.js +8 -23
- package/dist/components/textarea.d.ts +5 -9
- package/dist/components/textarea.d.ts.map +1 -0
- package/dist/components/textarea.js +5 -8
- package/dist/components/toggle-group.d.ts +10 -24
- package/dist/components/toggle-group.d.ts.map +1 -0
- package/dist/components/toggle-group.js +20 -38
- package/dist/components/toggle.d.ts +18 -25
- package/dist/components/toggle.d.ts.map +1 -0
- package/dist/components/toggle.js +24 -29
- package/dist/components/tooltip.d.ts +9 -24
- package/dist/components/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip.js +9 -28
- package/dist/hooks/use-animated-value.d.ts +2 -4
- package/dist/hooks/use-animated-value.d.ts.map +1 -0
- package/dist/hooks/use-animated-value.js +67 -58
- package/dist/hooks/use-copy-to-clipboard.d.ts +6 -11
- package/dist/hooks/use-copy-to-clipboard.d.ts.map +1 -0
- package/dist/hooks/use-copy-to-clipboard.js +42 -39
- package/dist/hooks/use-is-mobile.d.ts +2 -4
- package/dist/hooks/use-is-mobile.d.ts.map +1 -0
- package/dist/hooks/use-is-mobile.js +20 -23
- package/dist/hooks/use-media-query.d.ts +2 -4
- package/dist/hooks/use-media-query.d.ts.map +1 -0
- package/dist/hooks/use-media-query.js +49 -46
- package/dist/hooks/use-mutation-observer.d.ts +3 -6
- package/dist/hooks/use-mutation-observer.d.ts.map +1 -0
- package/dist/hooks/use-mutation-observer.js +33 -34
- package/dist/hooks/use-pagination.d.ts +15 -22
- package/dist/hooks/use-pagination.d.ts.map +1 -0
- package/dist/hooks/use-pagination.js +99 -99
- package/dist/index.d.ts +131 -69
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +68 -69
- package/dist/primitives/checkbox-group.d.ts +84 -105
- package/dist/primitives/checkbox-group.d.ts.map +1 -0
- package/dist/primitives/checkbox-group.js +91 -105
- package/dist/primitives/input-number.d.ts +41 -51
- package/dist/primitives/input-number.d.ts.map +1 -0
- package/dist/primitives/input-number.js +417 -473
- package/dist/primitives/input.d.ts +43 -48
- package/dist/primitives/input.d.ts.map +1 -0
- package/dist/primitives/input.js +67 -66
- package/dist/primitives/progress-circle.d.ts +49 -79
- package/dist/primitives/progress-circle.d.ts.map +1 -0
- package/dist/primitives/progress-circle.js +134 -149
- package/package.json +17 -10
- package/{dist → src}/css/preset.css +1 -1
- /package/{dist → src}/css/amber.css +0 -0
- /package/{dist → src}/css/blue.css +0 -0
- /package/{dist → src}/css/cyan.css +0 -0
- /package/{dist → src}/css/emerald.css +0 -0
- /package/{dist → src}/css/fuchsia.css +0 -0
- /package/{dist → src}/css/gray.css +0 -0
- /package/{dist → src}/css/green.css +0 -0
- /package/{dist → src}/css/indigo.css +0 -0
- /package/{dist → src}/css/lime.css +0 -0
- /package/{dist → src}/css/neutral.css +0 -0
- /package/{dist → src}/css/orange.css +0 -0
- /package/{dist → src}/css/pink.css +0 -0
- /package/{dist → src}/css/purple.css +0 -0
- /package/{dist → src}/css/red.css +0 -0
- /package/{dist → src}/css/rose.css +0 -0
- /package/{dist → src}/css/sky.css +0 -0
- /package/{dist → src}/css/slate.css +0 -0
- /package/{dist → src}/css/stone.css +0 -0
- /package/{dist → src}/css/style.css +0 -0
- /package/{dist → src}/css/teal.css +0 -0
- /package/{dist → src}/css/violet.css +0 -0
- /package/{dist → src}/css/yellow.css +0 -0
- /package/{dist → src}/css/zinc.css +0 -0
|
@@ -1,57 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
type CommandProps = ComponentProps<typeof Command$1>;
|
|
7
|
-
declare function Command({
|
|
8
|
-
className,
|
|
9
|
-
...props
|
|
10
|
-
}: CommandProps): JSX.Element;
|
|
1
|
+
import type { ComponentProps, JSX } from "react";
|
|
2
|
+
import { Command as CommandPrimitive } from "cmdk";
|
|
3
|
+
import { Dialog } from "#components/dialog";
|
|
4
|
+
type CommandProps = ComponentProps<typeof CommandPrimitive>;
|
|
5
|
+
declare function Command({ className, ...props }: CommandProps): JSX.Element;
|
|
11
6
|
type CommandDialogProps = ComponentProps<typeof Dialog>;
|
|
12
|
-
declare function CommandDialog({
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}:
|
|
21
|
-
type
|
|
22
|
-
declare function
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
declare function CommandEmpty({
|
|
28
|
-
className,
|
|
29
|
-
...props
|
|
30
|
-
}: CommandEmptyProps): JSX.Element;
|
|
31
|
-
type CommandGroupProps = ComponentProps<typeof Command$1.Group>;
|
|
32
|
-
declare function CommandGroup({
|
|
33
|
-
className,
|
|
34
|
-
...props
|
|
35
|
-
}: CommandGroupProps): JSX.Element;
|
|
36
|
-
type CommandSeparatorProps = ComponentProps<typeof Command$1.Separator>;
|
|
37
|
-
declare function CommandSeparator({
|
|
38
|
-
className,
|
|
39
|
-
...props
|
|
40
|
-
}: CommandSeparatorProps): JSX.Element;
|
|
41
|
-
type CommandItemProps = ComponentProps<typeof Command$1.Item>;
|
|
42
|
-
declare function CommandItem({
|
|
43
|
-
className,
|
|
44
|
-
...props
|
|
45
|
-
}: CommandItemProps): JSX.Element;
|
|
46
|
-
type CommandLoadingProps = ComponentProps<typeof Command$1.Loading>;
|
|
47
|
-
declare function CommandLoading({
|
|
48
|
-
className,
|
|
49
|
-
...props
|
|
50
|
-
}: CommandLoadingProps): JSX.Element;
|
|
7
|
+
declare function CommandDialog({ children, ...props }: CommandDialogProps): JSX.Element;
|
|
8
|
+
type CommandInputProps = ComponentProps<typeof CommandPrimitive.Input>;
|
|
9
|
+
declare function CommandInput({ className, ...props }: CommandInputProps): JSX.Element;
|
|
10
|
+
type CommandListProps = ComponentProps<typeof CommandPrimitive.List>;
|
|
11
|
+
declare function CommandList({ className, ...props }: CommandListProps): JSX.Element;
|
|
12
|
+
type CommandEmptyProps = ComponentProps<typeof CommandPrimitive.Empty>;
|
|
13
|
+
declare function CommandEmpty({ className, ...props }: CommandEmptyProps): JSX.Element;
|
|
14
|
+
type CommandGroupProps = ComponentProps<typeof CommandPrimitive.Group>;
|
|
15
|
+
declare function CommandGroup({ className, ...props }: CommandGroupProps): JSX.Element;
|
|
16
|
+
type CommandSeparatorProps = ComponentProps<typeof CommandPrimitive.Separator>;
|
|
17
|
+
declare function CommandSeparator({ className, ...props }: CommandSeparatorProps): JSX.Element;
|
|
18
|
+
type CommandItemProps = ComponentProps<typeof CommandPrimitive.Item>;
|
|
19
|
+
declare function CommandItem({ className, ...props }: CommandItemProps): JSX.Element;
|
|
20
|
+
type CommandLoadingProps = ComponentProps<typeof CommandPrimitive.Loading>;
|
|
21
|
+
declare function CommandLoading({ className, ...props }: CommandLoadingProps): JSX.Element;
|
|
51
22
|
type CommandShortcutProps = ComponentProps<"span">;
|
|
52
|
-
declare function CommandShortcut({
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
//#endregion
|
|
57
|
-
export { Command, CommandDialog, type CommandDialogProps, CommandEmpty, type CommandEmptyProps, CommandGroup, type CommandGroupProps, CommandInput, type CommandInputProps, CommandItem, type CommandItemProps, CommandList, type CommandListProps, CommandLoading, type CommandLoadingProps, type CommandProps, CommandSeparator, type CommandSeparatorProps, CommandShortcut, type CommandShortcutProps };
|
|
23
|
+
declare function CommandShortcut({ className, ...props }: CommandShortcutProps): JSX.Element;
|
|
24
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, };
|
|
25
|
+
export type { CommandDialogProps, CommandEmptyProps, CommandGroupProps, CommandInputProps, CommandItemProps, CommandListProps, CommandLoadingProps, CommandProps, CommandSeparatorProps, CommandShortcutProps, };
|
|
26
|
+
//# sourceMappingURL=command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/components/command.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAIjD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAGnD,OAAO,EAAE,MAAM,EAAiD,MAAM,oBAAoB,CAAC;AAM3F,KAAK,YAAY,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,C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B,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,CAAC;AAErE,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CAW3E;AAMD,KAAK,mBAAmB,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,CAAC;AAE3E,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,GAAG,GAAG,CAAC,OAAO,CAQjF;AAMD,KAAK,oBAAoB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;AAEnD,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,GAAG,GAAG,CAAC,OAAO,CAQnF;AAMD,OAAO,EACL,OAAO,EACP,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,eAAe,GAChB,CAAC;AACF,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACZ,qBAAqB,EACrB,oBAAoB,GACrB,CAAC"}
|
|
@@ -1,92 +1,41 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { cn } from "@codefast/tailwind-variants";
|
|
4
|
-
import { SearchIcon } from "lucide-react";
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
4
|
import { VisuallyHidden } from "@radix-ui/react-visually-hidden";
|
|
7
|
-
import { Command as
|
|
8
|
-
|
|
5
|
+
import { Command as CommandPrimitive } from "cmdk";
|
|
6
|
+
import { SearchIcon } from "lucide-react";
|
|
7
|
+
import { Dialog, DialogContent, DialogDescription, DialogTitle } from "#components/dialog";
|
|
9
8
|
function Command({ className, ...props }) {
|
|
10
|
-
|
|
11
|
-
className: cn("flex flex-col overflow-hidden rounded-[inherit] bg-popover text-popover-foreground outline-hidden", className),
|
|
12
|
-
"data-slot": "command",
|
|
13
|
-
...props
|
|
14
|
-
});
|
|
9
|
+
return (_jsx(CommandPrimitive, { className: cn("flex flex-col overflow-hidden rounded-[inherit] bg-popover text-popover-foreground outline-hidden", className), "data-slot": "command", ...props }));
|
|
15
10
|
}
|
|
16
11
|
function CommandDialog({ children, ...props }) {
|
|
17
|
-
|
|
18
|
-
"data-slot": "command-dialog",
|
|
19
|
-
...props,
|
|
20
|
-
children: /* @__PURE__ */ jsxs(DialogContent, {
|
|
21
|
-
className: "rounded-t-lg sm:rounded-lg",
|
|
22
|
-
"data-slot": "command-dialog-content",
|
|
23
|
-
children: [/* @__PURE__ */ jsxs(VisuallyHidden, { children: [/* @__PURE__ */ jsx(DialogTitle, { children: "Search command" }), /* @__PURE__ */ jsx(DialogDescription, { children: "Use the search bar to find and select the desired command." })] }), /* @__PURE__ */ jsx(Command, {
|
|
24
|
-
className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input]]:h-12",
|
|
25
|
-
children
|
|
26
|
-
})]
|
|
27
|
-
})
|
|
28
|
-
});
|
|
12
|
+
return (_jsx(Dialog, { "data-slot": "command-dialog", ...props, children: _jsxs(DialogContent, { className: "rounded-t-lg sm:rounded-lg", "data-slot": "command-dialog-content", children: [_jsxs(VisuallyHidden, { children: [_jsx(DialogTitle, { children: "Search command" }), _jsx(DialogDescription, { children: "Use the search bar to find and select the desired command." })] }), _jsx(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input]]:h-12", children: children })] }) }));
|
|
29
13
|
}
|
|
30
14
|
function CommandInput({ className, ...props }) {
|
|
31
|
-
|
|
32
|
-
"cmdk-input-wrapper": true,
|
|
33
|
-
className: "flex items-center gap-2 border-b px-3",
|
|
34
|
-
"data-slot": "command-input-wrapper",
|
|
35
|
-
children: [/* @__PURE__ */ jsx(SearchIcon, { className: "size-4 shrink-0 opacity-50" }), /* @__PURE__ */ jsx(Command$1.Input, {
|
|
36
|
-
className: cn("flex h-10 w-full text-base outline-hidden placeholder:text-muted-foreground disabled:opacity-50 md:text-sm", className),
|
|
37
|
-
"data-slot": "command-input",
|
|
38
|
-
...props
|
|
39
|
-
})]
|
|
40
|
-
});
|
|
15
|
+
return (_jsxs("div", { "cmdk-input-wrapper": true, className: "flex items-center gap-2 border-b px-3", "data-slot": "command-input-wrapper", children: [_jsx(SearchIcon, { className: "size-4 shrink-0 opacity-50" }), _jsx(CommandPrimitive.Input, { className: cn("flex h-10 w-full text-base outline-hidden placeholder:text-muted-foreground disabled:opacity-50 md:text-sm", className), "data-slot": "command-input", ...props })] }));
|
|
41
16
|
}
|
|
42
17
|
function CommandList({ className, ...props }) {
|
|
43
|
-
|
|
44
|
-
className: cn("max-h-75 overflow-x-hidden overflow-y-auto", className),
|
|
45
|
-
"data-slot": "command-list",
|
|
46
|
-
...props
|
|
47
|
-
});
|
|
18
|
+
return (_jsx(CommandPrimitive.List, { className: cn("max-h-75 overflow-x-hidden overflow-y-auto", className), "data-slot": "command-list", ...props }));
|
|
48
19
|
}
|
|
49
20
|
function CommandEmpty({ className, ...props }) {
|
|
50
|
-
|
|
51
|
-
className: cn("py-6 text-center text-sm", className),
|
|
52
|
-
"data-slot": "command-empty",
|
|
53
|
-
...props
|
|
54
|
-
});
|
|
21
|
+
return (_jsx(CommandPrimitive.Empty, { className: cn("py-6 text-center text-sm", className), "data-slot": "command-empty", ...props }));
|
|
55
22
|
}
|
|
56
23
|
function CommandGroup({ className, ...props }) {
|
|
57
|
-
|
|
58
|
-
className: cn("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", className),
|
|
59
|
-
"data-slot": "command-group",
|
|
60
|
-
...props
|
|
61
|
-
});
|
|
24
|
+
return (_jsx(CommandPrimitive.Group, { className: cn("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", className), "data-slot": "command-group", ...props }));
|
|
62
25
|
}
|
|
63
26
|
function CommandSeparator({ className, ...props }) {
|
|
64
|
-
|
|
65
|
-
className: cn("-mx-1 h-px bg-border", className),
|
|
66
|
-
"data-slot": "command-separator",
|
|
67
|
-
...props
|
|
68
|
-
});
|
|
27
|
+
return (_jsx(CommandPrimitive.Separator, { className: cn("-mx-1 h-px bg-border", className), "data-slot": "command-separator", ...props }));
|
|
69
28
|
}
|
|
70
29
|
function CommandItem({ className, ...props }) {
|
|
71
|
-
|
|
72
|
-
className: cn("group/command-item relative flex cursor-default items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none aria-disabled:opacity-50 aria-selected:bg-accent aria-selected:text-accent-foreground [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground", className),
|
|
73
|
-
"data-slot": "command-item",
|
|
74
|
-
...props
|
|
75
|
-
});
|
|
30
|
+
return (_jsx(CommandPrimitive.Item, { className: cn("group/command-item relative flex cursor-default items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none aria-disabled:opacity-50 aria-selected:bg-accent aria-selected:text-accent-foreground [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground", className), "data-slot": "command-item", ...props }));
|
|
76
31
|
}
|
|
77
32
|
function CommandLoading({ className, ...props }) {
|
|
78
|
-
|
|
79
|
-
className: cn("flex justify-center p-2", className),
|
|
80
|
-
"data-slot": "command-loading",
|
|
81
|
-
...props
|
|
82
|
-
});
|
|
33
|
+
return (_jsx(CommandPrimitive.Loading, { className: cn("flex justify-center p-2", className), "data-slot": "command-loading", ...props }));
|
|
83
34
|
}
|
|
84
35
|
function CommandShortcut({ className, ...props }) {
|
|
85
|
-
|
|
86
|
-
className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className),
|
|
87
|
-
"data-slot": "command-shortcut",
|
|
88
|
-
...props
|
|
89
|
-
});
|
|
36
|
+
return (_jsx("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), "data-slot": "command-shortcut", ...props }));
|
|
90
37
|
}
|
|
91
|
-
|
|
92
|
-
|
|
38
|
+
/* -----------------------------------------------------------------------------
|
|
39
|
+
* Exports
|
|
40
|
+
* -------------------------------------------------------------------------- */
|
|
41
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, };
|
|
@@ -1,91 +1,42 @@
|
|
|
1
|
-
import { ComponentProps, JSX } from "react";
|
|
1
|
+
import type { ComponentProps, JSX } from "react";
|
|
2
2
|
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
3
|
-
|
|
4
|
-
//#region src/components/context-menu.d.ts
|
|
5
3
|
type ContextMenuProps = ComponentProps<typeof ContextMenuPrimitive.Root>;
|
|
6
|
-
declare function ContextMenu({
|
|
7
|
-
...props
|
|
8
|
-
}: ContextMenuProps): JSX.Element;
|
|
4
|
+
declare function ContextMenu({ ...props }: ContextMenuProps): JSX.Element;
|
|
9
5
|
type ContextMenuTriggerProps = ComponentProps<typeof ContextMenuPrimitive.Trigger>;
|
|
10
|
-
declare function ContextMenuTrigger({
|
|
11
|
-
...props
|
|
12
|
-
}: ContextMenuTriggerProps): JSX.Element;
|
|
6
|
+
declare function ContextMenuTrigger({ ...props }: ContextMenuTriggerProps): JSX.Element;
|
|
13
7
|
type ContextMenuGroupProps = ComponentProps<typeof ContextMenuPrimitive.Group>;
|
|
14
|
-
declare function ContextMenuGroup({
|
|
15
|
-
...props
|
|
16
|
-
}: ContextMenuGroupProps): JSX.Element;
|
|
8
|
+
declare function ContextMenuGroup({ ...props }: ContextMenuGroupProps): JSX.Element;
|
|
17
9
|
type ContextMenuSubProps = ComponentProps<typeof ContextMenuPrimitive.Sub>;
|
|
18
|
-
declare function ContextMenuSub({
|
|
19
|
-
...props
|
|
20
|
-
}: ContextMenuSubProps): JSX.Element;
|
|
10
|
+
declare function ContextMenuSub({ ...props }: ContextMenuSubProps): JSX.Element;
|
|
21
11
|
type ContextMenuRadioGroupProps = ComponentProps<typeof ContextMenuPrimitive.RadioGroup>;
|
|
22
|
-
declare function ContextMenuRadioGroup({
|
|
23
|
-
...props
|
|
24
|
-
}: ContextMenuRadioGroupProps): JSX.Element;
|
|
12
|
+
declare function ContextMenuRadioGroup({ ...props }: ContextMenuRadioGroupProps): JSX.Element;
|
|
25
13
|
interface ContextMenuSubTriggerProps extends ComponentProps<typeof ContextMenuPrimitive.SubTrigger> {
|
|
26
|
-
|
|
14
|
+
inset?: boolean;
|
|
27
15
|
}
|
|
28
|
-
declare function ContextMenuSubTrigger({
|
|
29
|
-
children,
|
|
30
|
-
className,
|
|
31
|
-
inset,
|
|
32
|
-
...props
|
|
33
|
-
}: ContextMenuSubTriggerProps): JSX.Element;
|
|
16
|
+
declare function ContextMenuSubTrigger({ children, className, inset, ...props }: ContextMenuSubTriggerProps): JSX.Element;
|
|
34
17
|
type ContextMenuSubContentProps = ComponentProps<typeof ContextMenuPrimitive.SubContent>;
|
|
35
|
-
declare function ContextMenuSubContent({
|
|
36
|
-
className,
|
|
37
|
-
...props
|
|
38
|
-
}: ContextMenuSubContentProps): JSX.Element;
|
|
18
|
+
declare function ContextMenuSubContent({ className, ...props }: ContextMenuSubContentProps): JSX.Element;
|
|
39
19
|
type ContextMenuContentProps = ComponentProps<typeof ContextMenuPrimitive.Content>;
|
|
40
|
-
declare function ContextMenuContent({
|
|
41
|
-
className,
|
|
42
|
-
...props
|
|
43
|
-
}: ContextMenuContentProps): JSX.Element;
|
|
20
|
+
declare function ContextMenuContent({ className, ...props }: ContextMenuContentProps): JSX.Element;
|
|
44
21
|
interface ContextMenuItemProps extends ComponentProps<typeof ContextMenuPrimitive.Item> {
|
|
45
|
-
|
|
46
|
-
|
|
22
|
+
inset?: boolean;
|
|
23
|
+
variant?: "default" | "destructive";
|
|
47
24
|
}
|
|
48
|
-
declare function ContextMenuItem({
|
|
49
|
-
className,
|
|
50
|
-
inset,
|
|
51
|
-
variant,
|
|
52
|
-
...props
|
|
53
|
-
}: ContextMenuItemProps): JSX.Element;
|
|
25
|
+
declare function ContextMenuItem({ className, inset, variant, ...props }: ContextMenuItemProps): JSX.Element;
|
|
54
26
|
type ContextMenuCheckboxItemProps = ComponentProps<typeof ContextMenuPrimitive.CheckboxItem>;
|
|
55
|
-
declare function ContextMenuCheckboxItem({
|
|
56
|
-
checked,
|
|
57
|
-
children,
|
|
58
|
-
className,
|
|
59
|
-
...props
|
|
60
|
-
}: ContextMenuCheckboxItemProps): JSX.Element;
|
|
27
|
+
declare function ContextMenuCheckboxItem({ checked, children, className, ...props }: ContextMenuCheckboxItemProps): JSX.Element;
|
|
61
28
|
type ContextMenuRadioItemProps = ComponentProps<typeof ContextMenuPrimitive.RadioItem>;
|
|
62
|
-
declare function ContextMenuRadioItem({
|
|
63
|
-
children,
|
|
64
|
-
className,
|
|
65
|
-
...props
|
|
66
|
-
}: ContextMenuRadioItemProps): JSX.Element;
|
|
29
|
+
declare function ContextMenuRadioItem({ children, className, ...props }: ContextMenuRadioItemProps): JSX.Element;
|
|
67
30
|
interface ContextMenuLabelProps extends ComponentProps<typeof ContextMenuPrimitive.Label> {
|
|
68
|
-
|
|
31
|
+
inset?: boolean;
|
|
69
32
|
}
|
|
70
|
-
declare function ContextMenuLabel({
|
|
71
|
-
className,
|
|
72
|
-
inset,
|
|
73
|
-
...props
|
|
74
|
-
}: ContextMenuLabelProps): JSX.Element;
|
|
33
|
+
declare function ContextMenuLabel({ className, inset, ...props }: ContextMenuLabelProps): JSX.Element;
|
|
75
34
|
type ContextMenuSeparatorProps = ComponentProps<typeof ContextMenuPrimitive.Separator>;
|
|
76
|
-
declare function ContextMenuSeparator({
|
|
77
|
-
className,
|
|
78
|
-
...props
|
|
79
|
-
}: ContextMenuSeparatorProps): JSX.Element;
|
|
35
|
+
declare function ContextMenuSeparator({ className, ...props }: ContextMenuSeparatorProps): JSX.Element;
|
|
80
36
|
type ContextMenuShortcutProps = ComponentProps<"span">;
|
|
81
|
-
declare function ContextMenuShortcut({
|
|
82
|
-
className,
|
|
83
|
-
...props
|
|
84
|
-
}: ContextMenuShortcutProps): JSX.Element;
|
|
37
|
+
declare function ContextMenuShortcut({ className, ...props }: ContextMenuShortcutProps): JSX.Element;
|
|
85
38
|
type ContextMenuArrowProps = ComponentProps<typeof ContextMenuPrimitive.Arrow>;
|
|
86
|
-
declare function ContextMenuArrow({
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
//#endregion
|
|
91
|
-
export { ContextMenu, ContextMenuArrow, type ContextMenuArrowProps, ContextMenuCheckboxItem, type ContextMenuCheckboxItemProps, ContextMenuContent, type ContextMenuContentProps, ContextMenuGroup, type ContextMenuGroupProps, ContextMenuItem, type ContextMenuItemProps, ContextMenuLabel, type ContextMenuLabelProps, type ContextMenuProps, ContextMenuRadioGroup, type ContextMenuRadioGroupProps, ContextMenuRadioItem, type ContextMenuRadioItemProps, ContextMenuSeparator, type ContextMenuSeparatorProps, ContextMenuShortcut, type ContextMenuShortcutProps, ContextMenuSub, ContextMenuSubContent, type ContextMenuSubContentProps, type ContextMenuSubProps, ContextMenuSubTrigger, type ContextMenuSubTriggerProps, ContextMenuTrigger, type ContextMenuTriggerProps };
|
|
39
|
+
declare function ContextMenuArrow({ className, ...props }: ContextMenuArrowProps): JSX.Element;
|
|
40
|
+
export { ContextMenu, ContextMenuArrow, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, };
|
|
41
|
+
export type { ContextMenuArrowProps, ContextMenuCheckboxItemProps, ContextMenuContentProps, ContextMenuGroupProps, ContextMenuItemProps, ContextMenuLabelProps, ContextMenuProps, ContextMenuRadioGroupProps, ContextMenuRadioItemProps, ContextMenuSeparatorProps, ContextMenuShortcutProps, ContextMenuSubContentProps, ContextMenuSubProps, ContextMenuSubTriggerProps, ContextMenuTriggerProps, };
|
|
42
|
+
//# sourceMappingURL=context-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../src/components/context-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGjD,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAOrE,KAAK,gBAAgB,GAAG,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,CAAC;AAEzE,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CAEhE;AAMD,KAAK,uBAAuB,GAAG,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAEnF,iBAAS,kBAAkB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAE9E;AAMD,KAAK,qBAAqB,GAAG,cAAc,CAAC,OAAO,oBAAoB,CAAC,KAAK,CAAC,CAAC;AAE/E,i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AE,GAAG,KAAK,EAAE,EAAE,qBAAqB,GAAG,GAAG,CAAC,OAAO,CAQrF;AAMD,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,uBAAuB,EACvB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,GACnB,CAAC;AACF,YAAY,EACV,qBAAqB,EACrB,4BAA4B,EAC5B,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,0BAA0B,EAC1B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,0BAA0B,EAC1B,mBAAmB,EACnB,0BAA0B,EAC1B,uBAAuB,GACxB,CAAC"}
|
|
@@ -1,122 +1,54 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
3
|
import { cn } from "@codefast/tailwind-variants";
|
|
3
|
-
import { CheckIcon, ChevronRightIcon, DotIcon } from "lucide-react";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
6
|
-
|
|
5
|
+
import { CheckIcon, ChevronRightIcon, DotIcon } from "lucide-react";
|
|
7
6
|
function ContextMenu({ ...props }) {
|
|
8
|
-
|
|
9
|
-
"data-slot": "context-menu",
|
|
10
|
-
...props
|
|
11
|
-
});
|
|
7
|
+
return _jsx(ContextMenuPrimitive.Root, { "data-slot": "context-menu", ...props });
|
|
12
8
|
}
|
|
13
9
|
function ContextMenuTrigger({ ...props }) {
|
|
14
|
-
|
|
15
|
-
"data-slot": "context-menu-trigger",
|
|
16
|
-
...props
|
|
17
|
-
});
|
|
10
|
+
return _jsx(ContextMenuPrimitive.Trigger, { "data-slot": "context-menu-trigger", ...props });
|
|
18
11
|
}
|
|
19
12
|
function ContextMenuGroup({ ...props }) {
|
|
20
|
-
|
|
21
|
-
"data-slot": "context-menu-group",
|
|
22
|
-
...props
|
|
23
|
-
});
|
|
13
|
+
return _jsx(ContextMenuPrimitive.Group, { "data-slot": "context-menu-group", ...props });
|
|
24
14
|
}
|
|
25
15
|
function ContextMenuSub({ ...props }) {
|
|
26
|
-
|
|
27
|
-
"data-slot": "context-menu-sub",
|
|
28
|
-
...props
|
|
29
|
-
});
|
|
16
|
+
return _jsx(ContextMenuPrimitive.Sub, { "data-slot": "context-menu-sub", ...props });
|
|
30
17
|
}
|
|
31
18
|
function ContextMenuRadioGroup({ ...props }) {
|
|
32
|
-
|
|
33
|
-
"data-slot": "context-menu-radio-group",
|
|
34
|
-
...props
|
|
35
|
-
});
|
|
19
|
+
return _jsx(ContextMenuPrimitive.RadioGroup, { "data-slot": "context-menu-radio-group", ...props });
|
|
36
20
|
}
|
|
37
21
|
function ContextMenuSubTrigger({ children, className, inset, ...props }) {
|
|
38
|
-
|
|
39
|
-
className: cn("flex cursor-default items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
40
|
-
"data-inset": inset,
|
|
41
|
-
"data-slot": "context-menu-sub-trigger",
|
|
42
|
-
...props,
|
|
43
|
-
children: [children, /* @__PURE__ */ jsx(ChevronRightIcon, { className: "ml-auto size-4" })]
|
|
44
|
-
});
|
|
22
|
+
return (_jsxs(ContextMenuPrimitive.SubTrigger, { className: cn("flex cursor-default items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), "data-inset": inset, "data-slot": "context-menu-sub-trigger", ...props, children: [children, _jsx(ChevronRightIcon, { className: "ml-auto size-4" })] }));
|
|
45
23
|
}
|
|
46
24
|
function ContextMenuSubContent({ className, ...props }) {
|
|
47
|
-
|
|
48
|
-
className: cn("z-50 min-w-32 origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-lg border bg-popover p-1 text-popover-foreground shadow-lg ease-ui data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=top]:slide-in-from-bottom-2", className),
|
|
49
|
-
"data-slot": "context-menu-sub-content",
|
|
50
|
-
...props
|
|
51
|
-
}) });
|
|
25
|
+
return (_jsx(ContextMenuPrimitive.Portal, { children: _jsx(ContextMenuPrimitive.SubContent, { className: cn("z-50 min-w-32 origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-lg border bg-popover p-1 text-popover-foreground shadow-lg ease-ui data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=top]:slide-in-from-bottom-2", className), "data-slot": "context-menu-sub-content", ...props }) }));
|
|
52
26
|
}
|
|
53
27
|
function ContextMenuContent({ className, ...props }) {
|
|
54
|
-
|
|
55
|
-
className: cn("z-50 max-h-(--radix-context-menu-content-available-height) min-w-32 origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border bg-popover p-1 text-popover-foreground shadow-lg ease-ui data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=top]:slide-in-from-bottom-2", className),
|
|
56
|
-
"data-slot": "context-menu-content",
|
|
57
|
-
...props
|
|
58
|
-
}) });
|
|
28
|
+
return (_jsx(ContextMenuPrimitive.Portal, { children: _jsx(ContextMenuPrimitive.Content, { className: cn("z-50 max-h-(--radix-context-menu-content-available-height) min-w-32 origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border bg-popover p-1 text-popover-foreground shadow-lg ease-ui data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=top]:slide-in-from-bottom-2", className), "data-slot": "context-menu-content", ...props }) }));
|
|
59
29
|
}
|
|
60
30
|
function ContextMenuItem({ className, inset, variant, ...props }) {
|
|
61
|
-
|
|
62
|
-
className: cn("group/context-menu-item relative flex cursor-default items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground aria-disabled:opacity-50 data-inset:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80", className),
|
|
63
|
-
"data-inset": inset,
|
|
64
|
-
"data-slot": "context-menu-item",
|
|
65
|
-
"data-variant": variant,
|
|
66
|
-
...props
|
|
67
|
-
});
|
|
31
|
+
return (_jsx(ContextMenuPrimitive.Item, { className: cn("group/context-menu-item relative flex cursor-default items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground aria-disabled:opacity-50 data-inset:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80", className), "data-inset": inset, "data-slot": "context-menu-item", "data-variant": variant, ...props }));
|
|
68
32
|
}
|
|
69
33
|
function ContextMenuCheckboxItem({ checked, children, className, ...props }) {
|
|
70
|
-
|
|
71
|
-
checked,
|
|
72
|
-
className: cn("group/context-menu-item relative flex cursor-default items-center gap-x-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground aria-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
73
|
-
"data-slot": "context-menu-checkbox-item",
|
|
74
|
-
...props,
|
|
75
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
76
|
-
className: "absolute left-2 flex items-center justify-center",
|
|
77
|
-
children: /* @__PURE__ */ jsx(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) })
|
|
78
|
-
}), children]
|
|
79
|
-
});
|
|
34
|
+
return (_jsxs(ContextMenuPrimitive.CheckboxItem, { checked: checked, className: cn("group/context-menu-item relative flex cursor-default items-center gap-x-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground aria-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), "data-slot": "context-menu-checkbox-item", ...props, children: [_jsx("span", { className: "absolute left-2 flex items-center justify-center", children: _jsx(ContextMenuPrimitive.ItemIndicator, { children: _jsx(CheckIcon, { className: "size-4" }) }) }), children] }));
|
|
80
35
|
}
|
|
81
36
|
function ContextMenuRadioItem({ children, className, ...props }) {
|
|
82
|
-
|
|
83
|
-
className: cn("group/context-menu-item relative flex cursor-default items-center gap-x-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground aria-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
84
|
-
"data-slot": "context-menu-radio-item",
|
|
85
|
-
...props,
|
|
86
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
87
|
-
className: "absolute left-2 flex items-center justify-center",
|
|
88
|
-
children: /* @__PURE__ */ jsx(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(DotIcon, { className: "size-4 fill-current" }) })
|
|
89
|
-
}), children]
|
|
90
|
-
});
|
|
37
|
+
return (_jsxs(ContextMenuPrimitive.RadioItem, { className: cn("group/context-menu-item relative flex cursor-default items-center gap-x-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground aria-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), "data-slot": "context-menu-radio-item", ...props, children: [_jsx("span", { className: "absolute left-2 flex items-center justify-center", children: _jsx(ContextMenuPrimitive.ItemIndicator, { children: _jsx(DotIcon, { className: "size-4 fill-current" }) }) }), children] }));
|
|
91
38
|
}
|
|
92
39
|
function ContextMenuLabel({ className, inset, ...props }) {
|
|
93
|
-
|
|
94
|
-
className: cn("flex items-center gap-x-2 px-2 py-1.5 text-sm font-semibold data-inset:pl-8", className),
|
|
95
|
-
"data-inset": inset,
|
|
96
|
-
"data-slot": "context-menu-label",
|
|
97
|
-
...props
|
|
98
|
-
});
|
|
40
|
+
return (_jsx(ContextMenuPrimitive.Label, { className: cn("flex items-center gap-x-2 px-2 py-1.5 text-sm font-semibold data-inset:pl-8", className), "data-inset": inset, "data-slot": "context-menu-label", ...props }));
|
|
99
41
|
}
|
|
100
42
|
function ContextMenuSeparator({ className, ...props }) {
|
|
101
|
-
|
|
102
|
-
className: cn("mx-2 my-1 h-px bg-border", className),
|
|
103
|
-
"data-slot": "context-menu-separator",
|
|
104
|
-
...props
|
|
105
|
-
});
|
|
43
|
+
return (_jsx(ContextMenuPrimitive.Separator, { className: cn("mx-2 my-1 h-px bg-border", className), "data-slot": "context-menu-separator", ...props }));
|
|
106
44
|
}
|
|
107
45
|
function ContextMenuShortcut({ className, ...props }) {
|
|
108
|
-
|
|
109
|
-
className: cn("ml-auto text-xs tracking-widest text-muted-foreground group-data-[variant=destructive]/context-menu-item:text-destructive/80", className),
|
|
110
|
-
"data-slot": "context-menu-shortcut",
|
|
111
|
-
...props
|
|
112
|
-
});
|
|
46
|
+
return (_jsx("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground group-data-[variant=destructive]/context-menu-item:text-destructive/80", className), "data-slot": "context-menu-shortcut", ...props }));
|
|
113
47
|
}
|
|
114
48
|
function ContextMenuArrow({ className, ...props }) {
|
|
115
|
-
|
|
116
|
-
className: cn("fill-popover", className),
|
|
117
|
-
"data-slot": "context-menu-arrow",
|
|
118
|
-
...props
|
|
119
|
-
});
|
|
49
|
+
return (_jsx(ContextMenuPrimitive.Arrow, { className: cn("fill-popover", className), "data-slot": "context-menu-arrow", ...props }));
|
|
120
50
|
}
|
|
121
|
-
|
|
122
|
-
|
|
51
|
+
/* -----------------------------------------------------------------------------
|
|
52
|
+
* Exports
|
|
53
|
+
* -------------------------------------------------------------------------- */
|
|
54
|
+
export { ContextMenu, ContextMenuArrow, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, };
|
|
@@ -1,65 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ComponentProps, JSX } from "react";
|
|
1
|
+
import type { VariantProps } from "@codefast/tailwind-variants";
|
|
2
|
+
import type { ComponentProps, JSX } from "react";
|
|
4
3
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
5
|
-
|
|
6
|
-
//#region src/components/dialog.d.ts
|
|
4
|
+
import { buttonVariants } from "#components/button";
|
|
7
5
|
type DialogProps = ComponentProps<typeof DialogPrimitive.Root>;
|
|
8
|
-
declare function Dialog({
|
|
9
|
-
...props
|
|
10
|
-
}: DialogProps): JSX.Element;
|
|
6
|
+
declare function Dialog({ ...props }: DialogProps): JSX.Element;
|
|
11
7
|
type DialogTriggerProps = ComponentProps<typeof DialogPrimitive.Trigger>;
|
|
12
|
-
declare function DialogTrigger({
|
|
13
|
-
...props
|
|
14
|
-
}: DialogTriggerProps): JSX.Element;
|
|
8
|
+
declare function DialogTrigger({ ...props }: DialogTriggerProps): JSX.Element;
|
|
15
9
|
interface DialogContentProps extends ComponentProps<typeof DialogPrimitive.Content> {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
10
|
+
classNames?: {
|
|
11
|
+
close?: string;
|
|
12
|
+
content?: string;
|
|
13
|
+
overlay?: string;
|
|
14
|
+
wrapper?: string;
|
|
15
|
+
};
|
|
22
16
|
}
|
|
23
|
-
declare function DialogContent({
|
|
24
|
-
children,
|
|
25
|
-
className,
|
|
26
|
-
classNames,
|
|
27
|
-
...props
|
|
28
|
-
}: DialogContentProps): JSX.Element;
|
|
17
|
+
declare function DialogContent({ children, className, classNames, ...props }: DialogContentProps): JSX.Element;
|
|
29
18
|
type DialogHeaderProps = ComponentProps<"div">;
|
|
30
|
-
declare function DialogHeader({
|
|
31
|
-
className,
|
|
32
|
-
...props
|
|
33
|
-
}: DialogHeaderProps): JSX.Element;
|
|
19
|
+
declare function DialogHeader({ className, ...props }: DialogHeaderProps): JSX.Element;
|
|
34
20
|
type DialogBodyProps = ComponentProps<"div">;
|
|
35
|
-
declare function DialogBody({
|
|
36
|
-
className,
|
|
37
|
-
...props
|
|
38
|
-
}: DialogBodyProps): JSX.Element;
|
|
21
|
+
declare function DialogBody({ className, ...props }: DialogBodyProps): JSX.Element;
|
|
39
22
|
type DialogFooterProps = ComponentProps<"div">;
|
|
40
|
-
declare function DialogFooter({
|
|
41
|
-
className,
|
|
42
|
-
...props
|
|
43
|
-
}: DialogFooterProps): JSX.Element;
|
|
23
|
+
declare function DialogFooter({ className, ...props }: DialogFooterProps): JSX.Element;
|
|
44
24
|
type DialogTitleProps = ComponentProps<typeof DialogPrimitive.Title>;
|
|
45
|
-
declare function DialogTitle({
|
|
46
|
-
className,
|
|
47
|
-
...props
|
|
48
|
-
}: DialogTitleProps): JSX.Element;
|
|
25
|
+
declare function DialogTitle({ className, ...props }: DialogTitleProps): JSX.Element;
|
|
49
26
|
type DialogDescriptionProps = ComponentProps<typeof DialogPrimitive.Description>;
|
|
50
|
-
declare function DialogDescription({
|
|
51
|
-
className,
|
|
52
|
-
...props
|
|
53
|
-
}: DialogDescriptionProps): JSX.Element;
|
|
27
|
+
declare function DialogDescription({ className, ...props }: DialogDescriptionProps): JSX.Element;
|
|
54
28
|
interface DialogCloseProps extends Omit<ComponentProps<typeof DialogPrimitive.Close>, "ref"> {
|
|
55
|
-
|
|
56
|
-
|
|
29
|
+
size?: VariantProps<typeof buttonVariants>["size"];
|
|
30
|
+
variant?: VariantProps<typeof buttonVariants>["variant"];
|
|
57
31
|
}
|
|
58
|
-
declare function DialogClose({
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
...props
|
|
63
|
-
}: DialogCloseProps): JSX.Element;
|
|
64
|
-
//#endregion
|
|
65
|
-
export { Dialog, DialogBody, type DialogBodyProps, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps };
|
|
32
|
+
declare function DialogClose({ className, size, variant, ...props }: DialogCloseProps): JSX.Element;
|
|
33
|
+
export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, };
|
|
34
|
+
export type { DialogBodyProps, DialogCloseProps, DialogContentProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogProps, DialogTitleProps, DialogTriggerProps, };
|
|
35
|
+
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/components/dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGjD,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAG1D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAMpD,KAAK,WAAW,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC;AAE/D,iBAAS,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,GAAG,GAAG,CAAC,OAAO,CAEtD;AAMD,KAAK,kBAAkB,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,CAAC;AAEzE,iBAAS,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAEpE;AAMD,UAAU,kBAAmB,SA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