@admin-layout/tailwind-ui 12.0.16-alpha.93 → 12.2.1-alpha.3
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/lib/components/Button/Button.d.ts +1 -1
- package/lib/components/Button/Button.d.ts.map +1 -1
- package/lib/components/Button/Button.js +6 -7
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/DatePicker/DatePicker.js +139 -157
- package/lib/components/DatePicker/DatePicker.js.map +1 -1
- package/lib/components/ErrorHandlers/ApplicationErrorHandler.d.ts +2 -1
- package/lib/components/ErrorHandlers/ApplicationErrorHandler.d.ts.map +1 -1
- package/lib/components/ErrorHandlers/ApplicationErrorHandler.js +2 -2
- package/lib/components/ErrorHandlers/ErrorBoundary.d.ts +2 -1
- package/lib/components/ErrorHandlers/ErrorBoundary.d.ts.map +1 -1
- package/lib/components/ErrorHandlers/ErrorBoundary.js +28 -35
- package/lib/components/ErrorHandlers/ErrorBoundary.js.map +1 -1
- package/lib/components/ErrorHandlers/LayoutErrorBoundary.d.ts +2 -1
- package/lib/components/ErrorHandlers/LayoutErrorBoundary.d.ts.map +1 -1
- package/lib/components/ErrorHandlers/LayoutErrorBoundary.js +15 -20
- package/lib/components/ErrorHandlers/LayoutErrorBoundary.js.map +1 -1
- package/lib/components/ErrorPages/403.d.ts +2 -1
- package/lib/components/ErrorPages/403.d.ts.map +1 -1
- package/lib/components/ErrorPages/403.js +18 -26
- package/lib/components/ErrorPages/403.js.map +1 -1
- package/lib/components/ErrorPages/404.d.ts +2 -1
- package/lib/components/ErrorPages/404.d.ts.map +1 -1
- package/lib/components/ErrorPages/404.js +18 -26
- package/lib/components/ErrorPages/404.js.map +1 -1
- package/lib/components/ErrorPages/500.d.ts +2 -1
- package/lib/components/ErrorPages/500.d.ts.map +1 -1
- package/lib/components/ErrorPages/500.js +18 -26
- package/lib/components/ErrorPages/500.js.map +1 -1
- package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.d.ts +2 -1
- package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.d.ts.map +1 -1
- package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.js +19 -24
- package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.js.map +1 -1
- package/lib/components/OTP/OTPInput.js +30 -32
- package/lib/components/OTP/OTPInput.js.map +1 -1
- package/lib/components/OTP/OTPVerification.js +55 -75
- package/lib/components/OTP/OTPVerification.js.map +1 -1
- package/lib/components/OTP/SingleInput.js +2 -2
- package/lib/components/OTP/SingleInput.js.map +1 -1
- package/lib/components/PageContainer/PageContainer.js +22 -29
- package/lib/components/PageContainer/PageContainer.js.map +1 -1
- package/lib/components/PageLoading/index.js +7 -8
- package/lib/components/PageLoading/index.js.map +1 -1
- package/lib/components/RJSFPreview/PreviewAsyncDropdown.d.ts +2 -1
- package/lib/components/RJSFPreview/PreviewAsyncDropdown.d.ts.map +1 -1
- package/lib/components/ReactTable/Table.d.ts +2 -1
- package/lib/components/ReactTable/Table.d.ts.map +1 -1
- package/lib/components/ReactTable/Table.js +71 -92
- package/lib/components/ReactTable/Table.js.map +1 -1
- package/lib/components/ReactTable/TableFilters.d.ts +3 -2
- package/lib/components/ReactTable/TableFilters.d.ts.map +1 -1
- package/lib/components/ReactTable/TableFilters.js +34 -40
- package/lib/components/ReactTable/TableFilters.js.map +1 -1
- package/lib/components/Search/SearchInput.d.ts +2 -1
- package/lib/components/Search/SearchInput.d.ts.map +1 -1
- package/lib/components/Search/SearchInput.js +13 -14
- package/lib/components/Search/SearchInput.js.map +1 -1
- package/lib/components/Select/Select.d.ts +6 -6
- package/lib/components/Select/Select.d.ts.map +1 -1
- package/lib/components/Select/Select.js +45 -60
- package/lib/components/Select/Select.js.map +1 -1
- package/lib/components/Spin/index.js +11 -14
- package/lib/components/Spin/index.js.map +1 -1
- package/lib/components/ThemeProvider/ThemeProvider.js +4 -5
- package/lib/components/ThemeProvider/ThemeProvider.js.map +1 -1
- package/lib/components/ThemeProvider/ThemeToggle.js +24 -27
- package/lib/components/ThemeProvider/ThemeToggle.js.map +1 -1
- package/lib/hooks/useToast.d.ts +1 -1
- package/lib/hooks/useToast.d.ts.map +1 -1
- package/lib/hooks/useToast.js +37 -46
- package/lib/hooks/useToast.js.map +1 -1
- package/lib/shardui/accordion.js +16 -20
- package/lib/shardui/accordion.js.map +1 -1
- package/lib/shardui/alert-dialog.d.ts +2 -2
- package/lib/shardui/alert-dialog.js +13 -15
- package/lib/shardui/alert-dialog.js.map +1 -1
- package/lib/shardui/alert.d.ts +1 -1
- package/lib/shardui/alert.d.ts.map +1 -1
- package/lib/shardui/alert.js +4 -4
- package/lib/shardui/alert.js.map +1 -1
- package/lib/shardui/avatar.js +4 -4
- package/lib/shardui/avatar.js.map +1 -1
- package/lib/shardui/badge.d.ts +2 -2
- package/lib/shardui/badge.d.ts.map +1 -1
- package/lib/shardui/badge.js +2 -2
- package/lib/shardui/badge.js.map +1 -1
- package/lib/shardui/breadcrumb.d.ts +2 -2
- package/lib/shardui/breadcrumb.js +16 -19
- package/lib/shardui/breadcrumb.js.map +1 -1
- package/lib/shardui/button.d.ts +1 -1
- package/lib/shardui/button.d.ts.map +1 -1
- package/lib/shardui/button.js +2 -2
- package/lib/shardui/button.js.map +1 -1
- package/lib/shardui/calendar.d.ts +1 -1
- package/lib/shardui/calendar.d.ts.map +1 -1
- package/lib/shardui/calendar.js +4 -4
- package/lib/shardui/card.js +7 -7
- package/lib/shardui/card.js.map +1 -1
- package/lib/shardui/carousel.js +33 -40
- package/lib/shardui/carousel.js.map +1 -1
- package/lib/shardui/chart.d.ts +1 -1
- package/lib/shardui/chart.d.ts.map +1 -1
- package/lib/shardui/chart.js +66 -81
- package/lib/shardui/chart.js.map +1 -1
- package/lib/shardui/checkbox.js +8 -10
- package/lib/shardui/checkbox.js.map +1 -1
- package/lib/shardui/command.d.ts +2 -2
- package/lib/shardui/command.d.ts.map +1 -1
- package/lib/shardui/command.js +24 -28
- package/lib/shardui/command.js.map +1 -1
- package/lib/shardui/context-menu.d.ts +1 -1
- package/lib/shardui/context-menu.js +30 -41
- package/lib/shardui/context-menu.js.map +1 -1
- package/lib/shardui/dialog.d.ts +2 -2
- package/lib/shardui/dialog.js +17 -22
- package/lib/shardui/dialog.js.map +1 -1
- package/lib/shardui/drawer.d.ts +3 -3
- package/lib/shardui/drawer.js +14 -17
- package/lib/shardui/drawer.js.map +1 -1
- package/lib/shardui/dropdown-menu.d.ts +1 -1
- package/lib/shardui/dropdown-menu.js +31 -42
- package/lib/shardui/dropdown-menu.js.map +1 -1
- package/lib/shardui/form.d.ts +1 -1
- package/lib/shardui/form.d.ts.map +1 -1
- package/lib/shardui/form.js +19 -22
- package/lib/shardui/form.js.map +1 -1
- package/lib/shardui/hover-card.js +2 -2
- package/lib/shardui/hover-card.js.map +1 -1
- package/lib/shardui/input-otp.js +13 -16
- package/lib/shardui/input-otp.js.map +1 -1
- package/lib/shardui/input.js +2 -2
- package/lib/shardui/input.js.map +1 -1
- package/lib/shardui/label.d.ts +1 -1
- package/lib/shardui/label.d.ts.map +1 -1
- package/lib/shardui/label.js +2 -2
- package/lib/shardui/label.js.map +1 -1
- package/lib/shardui/menubar.d.ts +1 -1
- package/lib/shardui/menubar.js +35 -46
- package/lib/shardui/menubar.js.map +1 -1
- package/lib/shardui/navigation-menu.d.ts +1 -1
- package/lib/shardui/navigation-menu.d.ts.map +1 -1
- package/lib/shardui/navigation-menu.js +24 -28
- package/lib/shardui/navigation-menu.js.map +1 -1
- package/lib/shardui/pagination.d.ts +5 -5
- package/lib/shardui/pagination.js +22 -30
- package/lib/shardui/pagination.js.map +1 -1
- package/lib/shardui/popover.js +8 -10
- package/lib/shardui/popover.js.map +1 -1
- package/lib/shardui/progress.js +9 -10
- package/lib/shardui/progress.js.map +1 -1
- package/lib/shardui/radio-group.js +9 -11
- package/lib/shardui/radio-group.js.map +1 -1
- package/lib/shardui/resizable.d.ts +5 -4
- package/lib/shardui/resizable.d.ts.map +1 -1
- package/lib/shardui/resizable.js +9 -11
- package/lib/shardui/resizable.js.map +1 -1
- package/lib/shardui/scroll-area.js +11 -14
- package/lib/shardui/scroll-area.js.map +1 -1
- package/lib/shardui/select.js +35 -49
- package/lib/shardui/select.js.map +1 -1
- package/lib/shardui/separator.js +2 -2
- package/lib/shardui/separator.js.map +1 -1
- package/lib/shardui/sheet.d.ts +3 -3
- package/lib/shardui/sheet.d.ts.map +1 -1
- package/lib/shardui/sheet.js +19 -24
- package/lib/shardui/sheet.js.map +1 -1
- package/lib/shardui/sidebar.d.ts +1 -1
- package/lib/shardui/sidebar.d.ts.map +1 -1
- package/lib/shardui/sidebar.js +88 -104
- package/lib/shardui/sidebar.js.map +1 -1
- package/lib/shardui/skeleton.d.ts +2 -1
- package/lib/shardui/skeleton.d.ts.map +1 -1
- package/lib/shardui/skeleton.js +2 -2
- package/lib/shardui/skeleton.js.map +1 -1
- package/lib/shardui/slider.js +10 -12
- package/lib/shardui/slider.js.map +1 -1
- package/lib/shardui/sonner.d.ts +2 -1
- package/lib/shardui/sonner.d.ts.map +1 -1
- package/lib/shardui/sonner.js +2 -2
- package/lib/shardui/sonner.js.map +1 -1
- package/lib/shardui/switch.js +6 -7
- package/lib/shardui/switch.js.map +1 -1
- package/lib/shardui/table.js +15 -16
- package/lib/shardui/table.js.map +1 -1
- package/lib/shardui/tabs.js +4 -4
- package/lib/shardui/tabs.js.map +1 -1
- package/lib/shardui/textarea.js +2 -2
- package/lib/shardui/textarea.js.map +1 -1
- package/lib/shardui/toast.d.ts +1 -1
- package/lib/shardui/toast.d.ts.map +1 -1
- package/lib/shardui/toast.js +11 -12
- package/lib/shardui/toast.js.map +1 -1
- package/lib/shardui/toaster.d.ts +2 -1
- package/lib/shardui/toaster.d.ts.map +1 -1
- package/lib/shardui/toaster.js +14 -21
- package/lib/shardui/toaster.js.map +1 -1
- package/lib/shardui/toggle-group.d.ts +2 -2
- package/lib/shardui/toggle-group.d.ts.map +1 -1
- package/lib/shardui/toggle-group.js +12 -15
- package/lib/shardui/toggle-group.js.map +1 -1
- package/lib/shardui/toggle.d.ts +2 -2
- package/lib/shardui/toggle.d.ts.map +1 -1
- package/lib/shardui/toggle.js +2 -2
- package/lib/shardui/toggle.js.map +1 -1
- package/lib/shardui/tooltip.js +2 -2
- package/lib/shardui/tooltip.js.map +1 -1
- package/package.json +3 -3
package/lib/shardui/command.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
|
19
19
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
20
|
interface CommandDialogProps extends DialogProps {
|
|
21
21
|
}
|
|
22
|
-
declare const CommandDialog: ({ children, ...props }: CommandDialogProps) =>
|
|
22
|
+
declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => React.JSX.Element;
|
|
23
23
|
declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
|
24
24
|
ref?: React.Ref<HTMLInputElement>;
|
|
25
25
|
} & {
|
|
@@ -76,7 +76,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
76
76
|
forceMount?: boolean;
|
|
77
77
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
78
78
|
declare const CommandShortcut: {
|
|
79
|
-
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>):
|
|
79
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
80
80
|
displayName: string;
|
|
81
81
|
};
|
|
82
82
|
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/shardui/command.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAO1D,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;sFAYX,CAAC;AAGH,UAAU,kBAAmB,SAAQ,WAAW;CAAG;AAEnD,QAAA,MAAM,aAAa,GAAI,wBAAwB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/shardui/command.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAO1D,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;sFAYX,CAAC;AAGH,UAAU,kBAAmB,SAAQ,WAAW;CAAG;AAEnD,QAAA,MAAM,aAAa,GAAI,wBAAwB,kBAAkB,sBAUhE,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;0FAehB,CAAC;AAIH,QAAA,MAAM,WAAW;;;;;;;;sFASf,CAAC;AAIH,QAAA,MAAM,YAAY;;;;;;uJAGqF,CAAC;AAIxG,QAAA,MAAM,YAAY;;;;;;;;;;sFAYhB,CAAC;AAIH,QAAA,MAAM,gBAAgB;;;;;;sFAKpB,CAAC;AAGH,QAAA,MAAM,WAAW;;;;;;;;;;;;sFAYf,CAAC;AAIH,QAAA,MAAM,eAAe;8BAA6B,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;;CAEtF,CAAC;AAGF,OAAO,EACH,OAAO,EACP,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,GACnB,CAAC"}
|
package/lib/shardui/command.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import {Command as Command$1}from'cmdk';import {Search}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';import {Dialog,DialogContent}from'./dialog.js';const Command = React.forwardRef(({
|
|
2
2
|
className,
|
|
3
3
|
...props
|
|
4
|
-
}, ref) =>
|
|
4
|
+
}, ref) => React.createElement(Command$1, {
|
|
5
5
|
ref: ref,
|
|
6
6
|
className: cn('flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground', className),
|
|
7
7
|
...props
|
|
@@ -11,42 +11,38 @@ const CommandDialog = ({
|
|
|
11
11
|
children,
|
|
12
12
|
...props
|
|
13
13
|
}) => {
|
|
14
|
-
return
|
|
15
|
-
...props
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
})
|
|
22
|
-
})
|
|
23
|
-
});
|
|
14
|
+
return React.createElement(Dialog, {
|
|
15
|
+
...props
|
|
16
|
+
}, React.createElement(DialogContent, {
|
|
17
|
+
className: "overflow-hidden p-0 shadow-lg"
|
|
18
|
+
}, React.createElement(Command, {
|
|
19
|
+
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-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5"
|
|
20
|
+
}, children)));
|
|
24
21
|
};
|
|
25
22
|
const CommandInput = React.forwardRef(({
|
|
26
23
|
className,
|
|
27
24
|
...props
|
|
28
|
-
}, ref) =>
|
|
25
|
+
}, ref) => React.createElement("div", {
|
|
29
26
|
className: "flex items-center border-b px-3",
|
|
30
|
-
"cmdk-input-wrapper": ""
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}));
|
|
27
|
+
"cmdk-input-wrapper": ""
|
|
28
|
+
}, React.createElement(Search, {
|
|
29
|
+
className: "mr-2 h-4 w-4 shrink-0 opacity-50"
|
|
30
|
+
}), React.createElement(Command$1.Input, {
|
|
31
|
+
ref: ref,
|
|
32
|
+
className: cn('flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50', className),
|
|
33
|
+
...props
|
|
34
|
+
})));
|
|
39
35
|
CommandInput.displayName = Command$1.Input.displayName;
|
|
40
36
|
const CommandList = React.forwardRef(({
|
|
41
37
|
className,
|
|
42
38
|
...props
|
|
43
|
-
}, ref) =>
|
|
39
|
+
}, ref) => React.createElement(Command$1.List, {
|
|
44
40
|
ref: ref,
|
|
45
41
|
className: cn('max-h-[300px] overflow-y-auto overflow-x-hidden', className),
|
|
46
42
|
...props
|
|
47
43
|
}));
|
|
48
44
|
CommandList.displayName = Command$1.List.displayName;
|
|
49
|
-
const CommandEmpty = React.forwardRef((props, ref) =>
|
|
45
|
+
const CommandEmpty = React.forwardRef((props, ref) => React.createElement(Command$1.Empty, {
|
|
50
46
|
ref: ref,
|
|
51
47
|
className: "py-6 text-center text-sm",
|
|
52
48
|
...props
|
|
@@ -55,7 +51,7 @@ CommandEmpty.displayName = Command$1.Empty.displayName;
|
|
|
55
51
|
const CommandGroup = React.forwardRef(({
|
|
56
52
|
className,
|
|
57
53
|
...props
|
|
58
|
-
}, ref) =>
|
|
54
|
+
}, ref) => React.createElement(Command$1.Group, {
|
|
59
55
|
ref: ref,
|
|
60
56
|
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),
|
|
61
57
|
...props
|
|
@@ -64,7 +60,7 @@ CommandGroup.displayName = Command$1.Group.displayName;
|
|
|
64
60
|
const CommandSeparator = React.forwardRef(({
|
|
65
61
|
className,
|
|
66
62
|
...props
|
|
67
|
-
}, ref) =>
|
|
63
|
+
}, ref) => React.createElement(Command$1.Separator, {
|
|
68
64
|
ref: ref,
|
|
69
65
|
className: cn('-mx-1 h-px bg-border', className),
|
|
70
66
|
...props
|
|
@@ -73,7 +69,7 @@ CommandSeparator.displayName = Command$1.Separator.displayName;
|
|
|
73
69
|
const CommandItem = React.forwardRef(({
|
|
74
70
|
className,
|
|
75
71
|
...props
|
|
76
|
-
}, ref) =>
|
|
72
|
+
}, ref) => React.createElement(Command$1.Item, {
|
|
77
73
|
ref: ref,
|
|
78
74
|
className: cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50", className),
|
|
79
75
|
...props
|
|
@@ -83,7 +79,7 @@ const CommandShortcut = ({
|
|
|
83
79
|
className,
|
|
84
80
|
...props
|
|
85
81
|
}) => {
|
|
86
|
-
return
|
|
82
|
+
return React.createElement("span", {
|
|
87
83
|
className: cn('ml-auto text-xs tracking-widest text-muted-foreground', className),
|
|
88
84
|
...props
|
|
89
85
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.js","sources":["../../src/shardui/command.tsx"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"file":"command.js","sources":["../../src/shardui/command.tsx"],"sourcesContent":[null],"names":["CommandPrimitive"],"mappings":";;;;;;;;;;;;;;AAuBA,IAAA,GAAA;AAAmD,GAAA,EAAA,KAAA,CAAA,aAAA,CAAA,aAAA,EAAA;AAEnD,IAAA,WAAM;AAYN,GAAA,EAAA,mBAAM,CAAA,OAAY,EAAA;;;;;;;;AAmBlB,EAAA,4CAAiB;;;;;;;;;AAajB,wBAAM,GAAYA,SAAA,CAAA,KAAA,CAAA,WAAA;;;;;;;AAOlB,EAAA,GAAA;;;;;;;;;;;AAgBA,EAAA,GAAA;;;;;;;AAQA,MAAA,gBAAM,GAAW,KAAA,CAAA,UAAA,CAAA,CAAA;;;;;;;;;;;;;AAgBjB,EAAA,GAAA,EAAA;AAAkD,EAAA,SAAA,EAAA,EAAA,CAAA,yPAAqC,EAAA,SAAA,CAAA;;CAEtF,CAAC;AAGF,WACI,CAAA,uBAEA,CAAA,IACA,CAAA,WAAW;;;;;;;;;;"}
|
|
@@ -21,7 +21,7 @@ declare const ContextMenuLabel: React.ForwardRefExoticComponent<Omit<ContextMenu
|
|
|
21
21
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
22
22
|
declare const ContextMenuSeparator: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
23
|
declare const ContextMenuShortcut: {
|
|
24
|
-
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>):
|
|
24
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
25
25
|
displayName: string;
|
|
26
26
|
};
|
|
27
27
|
export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextMenuLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuGroup, ContextMenuPortal, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuRadioGroup, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import*as ContextMenuPrimitive from'@radix-ui/react-context-menu';import {ChevronRight,Check,Circle}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const ContextMenu = ContextMenuPrimitive.Root;
|
|
2
2
|
const ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
|
3
3
|
const ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
4
4
|
const ContextMenuPortal = ContextMenuPrimitive.Portal;
|
|
@@ -9,19 +9,18 @@ const ContextMenuSubTrigger = React.forwardRef(({
|
|
|
9
9
|
inset,
|
|
10
10
|
children,
|
|
11
11
|
...props
|
|
12
|
-
}, ref) =>
|
|
12
|
+
}, ref) => React.createElement(ContextMenuPrimitive.SubTrigger, {
|
|
13
13
|
ref: ref,
|
|
14
14
|
className: cn('flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground', inset && 'pl-8', className),
|
|
15
|
-
...props
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}));
|
|
15
|
+
...props
|
|
16
|
+
}, children, React.createElement(ChevronRight, {
|
|
17
|
+
className: "ml-auto h-4 w-4"
|
|
18
|
+
})));
|
|
20
19
|
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
21
20
|
const ContextMenuSubContent = React.forwardRef(({
|
|
22
21
|
className,
|
|
23
22
|
...props
|
|
24
|
-
}, ref) =>
|
|
23
|
+
}, ref) => React.createElement(ContextMenuPrimitive.SubContent, {
|
|
25
24
|
ref: ref,
|
|
26
25
|
className: cn('z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', className),
|
|
27
26
|
...props
|
|
@@ -30,19 +29,17 @@ ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
|
30
29
|
const ContextMenuContent = React.forwardRef(({
|
|
31
30
|
className,
|
|
32
31
|
...props
|
|
33
|
-
}, ref) =>
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
})
|
|
39
|
-
}));
|
|
32
|
+
}, ref) => React.createElement(ContextMenuPrimitive.Portal, null, React.createElement(ContextMenuPrimitive.Content, {
|
|
33
|
+
ref: ref,
|
|
34
|
+
className: cn('z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', className),
|
|
35
|
+
...props
|
|
36
|
+
})));
|
|
40
37
|
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
41
38
|
const ContextMenuItem = React.forwardRef(({
|
|
42
39
|
className,
|
|
43
40
|
inset,
|
|
44
41
|
...props
|
|
45
|
-
}, ref) =>
|
|
42
|
+
}, ref) => React.createElement(ContextMenuPrimitive.Item, {
|
|
46
43
|
ref: ref,
|
|
47
44
|
className: cn('relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', inset && 'pl-8', className),
|
|
48
45
|
...props
|
|
@@ -53,44 +50,36 @@ const ContextMenuCheckboxItem = React.forwardRef(({
|
|
|
53
50
|
children,
|
|
54
51
|
checked,
|
|
55
52
|
...props
|
|
56
|
-
}, ref) =>
|
|
53
|
+
}, ref) => React.createElement(ContextMenuPrimitive.CheckboxItem, {
|
|
57
54
|
ref: ref,
|
|
58
55
|
className: cn('relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className),
|
|
59
56
|
checked: checked,
|
|
60
|
-
...props
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
})
|
|
67
|
-
})
|
|
68
|
-
}), children]
|
|
69
|
-
}));
|
|
57
|
+
...props
|
|
58
|
+
}, React.createElement("span", {
|
|
59
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center"
|
|
60
|
+
}, React.createElement(ContextMenuPrimitive.ItemIndicator, null, React.createElement(Check, {
|
|
61
|
+
className: "h-4 w-4"
|
|
62
|
+
}))), children));
|
|
70
63
|
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
|
|
71
64
|
const ContextMenuRadioItem = React.forwardRef(({
|
|
72
65
|
className,
|
|
73
66
|
children,
|
|
74
67
|
...props
|
|
75
|
-
}, ref) =>
|
|
68
|
+
}, ref) => React.createElement(ContextMenuPrimitive.RadioItem, {
|
|
76
69
|
ref: ref,
|
|
77
70
|
className: cn('relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className),
|
|
78
|
-
...props
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
})
|
|
85
|
-
})
|
|
86
|
-
}), children]
|
|
87
|
-
}));
|
|
71
|
+
...props
|
|
72
|
+
}, React.createElement("span", {
|
|
73
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center"
|
|
74
|
+
}, React.createElement(ContextMenuPrimitive.ItemIndicator, null, React.createElement(Circle, {
|
|
75
|
+
className: "h-2 w-2 fill-current"
|
|
76
|
+
}))), children));
|
|
88
77
|
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
|
|
89
78
|
const ContextMenuLabel = React.forwardRef(({
|
|
90
79
|
className,
|
|
91
80
|
inset,
|
|
92
81
|
...props
|
|
93
|
-
}, ref) =>
|
|
82
|
+
}, ref) => React.createElement(ContextMenuPrimitive.Label, {
|
|
94
83
|
ref: ref,
|
|
95
84
|
className: cn('px-2 py-1.5 text-sm font-semibold text-foreground', inset && 'pl-8', className),
|
|
96
85
|
...props
|
|
@@ -99,7 +88,7 @@ ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
|
99
88
|
const ContextMenuSeparator = React.forwardRef(({
|
|
100
89
|
className,
|
|
101
90
|
...props
|
|
102
|
-
}, ref) =>
|
|
91
|
+
}, ref) => React.createElement(ContextMenuPrimitive.Separator, {
|
|
103
92
|
ref: ref,
|
|
104
93
|
className: cn('-mx-1 my-1 h-px bg-border', className),
|
|
105
94
|
...props
|
|
@@ -109,7 +98,7 @@ const ContextMenuShortcut = ({
|
|
|
109
98
|
className,
|
|
110
99
|
...props
|
|
111
100
|
}) => {
|
|
112
|
-
return
|
|
101
|
+
return React.createElement("span", {
|
|
113
102
|
className: cn('ml-auto text-xs tracking-widest text-muted-foreground', className),
|
|
114
103
|
...props
|
|
115
104
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-menu.js","sources":["../../src/shardui/context-menu.tsx"],"sourcesContent":[null],"names":[
|
|
1
|
+
{"version":3,"file":"context-menu.js","sources":["../../src/shardui/context-menu.tsx"],"sourcesContent":[null],"names":[],"mappings":"0PAUA,MAAA,WAAM,GAAA,oBAAgB,CAAA;AAEtB,MAAA,kBAAM,GAAA,oBAAiB,CAAA;AAEvB,MAAA,gBAAM,GAAA,oBAAc,CAAA;AAEpB,MAAA,iBAAM,GAAA,oBAAqB,CAAA;AAE3B,MAAA,cAAM,GAAA,oBAAqB,CAAA;2BAGJ,GAAA,oBAAA,CAAA;8CAepB,CAAA,CAAA;AAGH,EAAA,SAAA;AAeA,EAAA,KAAA;AAiBA,EAAA;;mDAeG,CAAA,UAAA,EAAA;AAGH,EAAA,GAAA,EAAA,GAAA;AAuBA,EAAA,SAAA,EAAA,EAAM,CAAA,4MAmBH,EAAA,KAAA,IAAA,MAAA,EAAA,SAAA,CAAA;AAGH,EAAA,GAAA;aAGgB,KAAA,CAAO,aAAA,CAAA,YAAA,EAAA;;AAWvB,CAAA,CAAA,CAAA;AAQA,qBAAM,CAAA,WAAmB,GAAA,oBAAA,CAAA,UAAA,CAAA,WAAA;AAA6B,MAAA,qBAAA,GAAA,KAAK,CAAC,UAAA,CAAA,CAAA;;EAE1D,GAAA;AAGF,CAAA,EAAA,GAAA,KACI,KAAA,CAAA,aACA,CAAA,oBACA,CAAA,UACA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/shardui/dialog.d.ts
CHANGED
|
@@ -7,11 +7,11 @@ declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.Dialo
|
|
|
7
7
|
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
8
|
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
declare const DialogHeader: {
|
|
10
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>):
|
|
10
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
11
11
|
displayName: string;
|
|
12
12
|
};
|
|
13
13
|
declare const DialogFooter: {
|
|
14
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>):
|
|
14
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
15
15
|
displayName: string;
|
|
16
16
|
};
|
|
17
17
|
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
package/lib/shardui/dialog.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import*as DialogPrimitive from'@radix-ui/react-dialog';import {X}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Dialog = DialogPrimitive.Root;
|
|
2
2
|
const DialogTrigger = DialogPrimitive.Trigger;
|
|
3
3
|
const DialogPortal = DialogPrimitive.Portal;
|
|
4
4
|
const DialogOverlay = React.forwardRef(({
|
|
5
5
|
className,
|
|
6
6
|
...props
|
|
7
|
-
}, ref) =>
|
|
7
|
+
}, ref) => React.createElement(DialogPrimitive.Overlay, {
|
|
8
8
|
ref: ref,
|
|
9
9
|
className: cn('fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0', className),
|
|
10
10
|
...props
|
|
@@ -14,27 +14,22 @@ const DialogContent = React.forwardRef(({
|
|
|
14
14
|
className,
|
|
15
15
|
children,
|
|
16
16
|
...props
|
|
17
|
-
}, ref) =>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
children: "Close"
|
|
29
|
-
})]
|
|
30
|
-
})]
|
|
31
|
-
})]
|
|
32
|
-
}));
|
|
17
|
+
}, ref) => React.createElement(DialogPortal, null, React.createElement(DialogOverlay, null), React.createElement(DialogPrimitive.Content, {
|
|
18
|
+
ref: ref,
|
|
19
|
+
className: cn('fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg', className),
|
|
20
|
+
...props
|
|
21
|
+
}, children, React.createElement(DialogPrimitive.Close, {
|
|
22
|
+
className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"
|
|
23
|
+
}, React.createElement(X, {
|
|
24
|
+
className: "h-4 w-4"
|
|
25
|
+
}), React.createElement("span", {
|
|
26
|
+
className: "sr-only"
|
|
27
|
+
}, "Close")))));
|
|
33
28
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
34
29
|
const DialogHeader = ({
|
|
35
30
|
className,
|
|
36
31
|
...props
|
|
37
|
-
}) =>
|
|
32
|
+
}) => React.createElement("div", {
|
|
38
33
|
className: cn('flex flex-col space-y-1.5 text-center sm:text-left', className),
|
|
39
34
|
...props
|
|
40
35
|
});
|
|
@@ -42,7 +37,7 @@ DialogHeader.displayName = 'DialogHeader';
|
|
|
42
37
|
const DialogFooter = ({
|
|
43
38
|
className,
|
|
44
39
|
...props
|
|
45
|
-
}) =>
|
|
40
|
+
}) => React.createElement("div", {
|
|
46
41
|
className: cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className),
|
|
47
42
|
...props
|
|
48
43
|
});
|
|
@@ -50,7 +45,7 @@ DialogFooter.displayName = 'DialogFooter';
|
|
|
50
45
|
const DialogTitle = React.forwardRef(({
|
|
51
46
|
className,
|
|
52
47
|
...props
|
|
53
|
-
}, ref) =>
|
|
48
|
+
}, ref) => React.createElement(DialogPrimitive.Title, {
|
|
54
49
|
ref: ref,
|
|
55
50
|
className: cn('text-lg font-semibold leading-none tracking-tight', className),
|
|
56
51
|
...props
|
|
@@ -59,7 +54,7 @@ DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
|
59
54
|
const DialogDescription = React.forwardRef(({
|
|
60
55
|
className,
|
|
61
56
|
...props
|
|
62
|
-
}, ref) =>
|
|
57
|
+
}, ref) => React.createElement(DialogPrimitive.Description, {
|
|
63
58
|
ref: ref,
|
|
64
59
|
className: cn('text-sm text-muted-foreground', className),
|
|
65
60
|
...props
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.js","sources":["../../src/shardui/dialog.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dialog.js","sources":["../../src/shardui/dialog.tsx"],"sourcesContent":[null],"names":[],"mappings":"uNAUA,MAAA,MAAA,GAAM,eAAY,CAAA;AAElB,MAAA,aAAM,GAAA,eAAW,CAAA;AAEjB,MAAA,YAAM,GAAA,eAAa,CAAA;AAuCnB,MAAA,aAAM,GAAA,KAAY,CAAA,UAAA,CAAA,CAAA;AAA6B,EAAA,SAAA;;CAE9C,EAAC,GAAA,KAAA,KAAA,CAAA,aAAA,CAAA,eAAA,CAAA,OAAA,EAAA;AAGF,EAAA,GAAA,EAAA;AAA+C,EAAA,SAAA,EAAA,EAAA,CAAA,yJAAoC,EAAA,SAAA,CAAA;;CAElF,CAAC;AAGF,aAAA,CAAM,WAAW,GAAA,eAAA,CAAA,OAAA,CAAA,WAAA;AAYjB,MAAA,aAAM,GAAA,KAAA,CAAA,UAAiB,CAAA,CAAA;AAQvB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/shardui/drawer.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Drawer as DrawerPrimitive } from 'vaul';
|
|
3
3
|
declare const Drawer: {
|
|
4
|
-
({ shouldScaleBackground, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>):
|
|
4
|
+
({ shouldScaleBackground, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): React.JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
7
7
|
declare const DrawerTrigger: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -10,11 +10,11 @@ declare const DrawerClose: React.ForwardRefExoticComponent<import("@radix-ui/rea
|
|
|
10
10
|
declare const DrawerOverlay: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
declare const DrawerContent: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
declare const DrawerHeader: {
|
|
13
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>):
|
|
13
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
14
14
|
displayName: string;
|
|
15
15
|
};
|
|
16
16
|
declare const DrawerFooter: {
|
|
17
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>):
|
|
17
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
18
18
|
displayName: string;
|
|
19
19
|
};
|
|
20
20
|
declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
package/lib/shardui/drawer.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import {Drawer as Drawer$1}from'vaul';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Drawer = ({
|
|
2
2
|
shouldScaleBackground = true,
|
|
3
3
|
...props
|
|
4
|
-
}) =>
|
|
4
|
+
}) => React.createElement(Drawer$1.Root, {
|
|
5
5
|
shouldScaleBackground: shouldScaleBackground,
|
|
6
6
|
...props
|
|
7
7
|
});
|
|
@@ -12,7 +12,7 @@ const DrawerClose = Drawer$1.Close;
|
|
|
12
12
|
const DrawerOverlay = React.forwardRef(({
|
|
13
13
|
className,
|
|
14
14
|
...props
|
|
15
|
-
}, ref) =>
|
|
15
|
+
}, ref) => React.createElement(Drawer$1.Overlay, {
|
|
16
16
|
ref: ref,
|
|
17
17
|
className: cn('fixed inset-0 z-50 bg-black/80', className),
|
|
18
18
|
...props
|
|
@@ -22,21 +22,18 @@ const DrawerContent = React.forwardRef(({
|
|
|
22
22
|
className,
|
|
23
23
|
children,
|
|
24
24
|
...props
|
|
25
|
-
}, ref) =>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}), children]
|
|
33
|
-
})]
|
|
34
|
-
}));
|
|
25
|
+
}, ref) => React.createElement(DrawerPortal, null, React.createElement(DrawerOverlay, null), React.createElement(Drawer$1.Content, {
|
|
26
|
+
ref: ref,
|
|
27
|
+
className: cn('fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background', className),
|
|
28
|
+
...props
|
|
29
|
+
}, React.createElement("div", {
|
|
30
|
+
className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"
|
|
31
|
+
}), children)));
|
|
35
32
|
DrawerContent.displayName = 'DrawerContent';
|
|
36
33
|
const DrawerHeader = ({
|
|
37
34
|
className,
|
|
38
35
|
...props
|
|
39
|
-
}) =>
|
|
36
|
+
}) => React.createElement("div", {
|
|
40
37
|
className: cn('grid gap-1.5 p-4 text-center sm:text-left', className),
|
|
41
38
|
...props
|
|
42
39
|
});
|
|
@@ -44,7 +41,7 @@ DrawerHeader.displayName = 'DrawerHeader';
|
|
|
44
41
|
const DrawerFooter = ({
|
|
45
42
|
className,
|
|
46
43
|
...props
|
|
47
|
-
}) =>
|
|
44
|
+
}) => React.createElement("div", {
|
|
48
45
|
className: cn('mt-auto flex flex-col gap-2 p-4', className),
|
|
49
46
|
...props
|
|
50
47
|
});
|
|
@@ -52,7 +49,7 @@ DrawerFooter.displayName = 'DrawerFooter';
|
|
|
52
49
|
const DrawerTitle = React.forwardRef(({
|
|
53
50
|
className,
|
|
54
51
|
...props
|
|
55
|
-
}, ref) =>
|
|
52
|
+
}, ref) => React.createElement(Drawer$1.Title, {
|
|
56
53
|
ref: ref,
|
|
57
54
|
className: cn('text-lg font-semibold leading-none tracking-tight', className),
|
|
58
55
|
...props
|
|
@@ -61,7 +58,7 @@ DrawerTitle.displayName = Drawer$1.Title.displayName;
|
|
|
61
58
|
const DrawerDescription = React.forwardRef(({
|
|
62
59
|
className,
|
|
63
60
|
...props
|
|
64
|
-
}, ref) =>
|
|
61
|
+
}, ref) => React.createElement(Drawer$1.Description, {
|
|
65
62
|
ref: ref,
|
|
66
63
|
className: cn('text-sm text-muted-foreground', className),
|
|
67
64
|
...props
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.js","sources":["../../src/shardui/drawer.tsx"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"file":"drawer.js","sources":["../../src/shardui/drawer.tsx"],"sourcesContent":[null],"names":["DrawerPrimitive"],"mappings":"yKAK4D,MAAA,MAAA,GAAA,CAAA;;EAE1D,GAAA;AAGF,CAAA,KAAA,KAAA,CAAA,aAAM,CAAAA,QAAa,CAAA,IAAA,EAAA;AAEnB,EAAA,qBAAM,EAAA,qBAAY;AAElB,EAAA,GAAA;AAEA,CAAA;AAQA,MAAA,CAAA,WAAM,GAAA,QAAa;AAqBnB,MAAA,aAAM,GAAAA,QAAY,CAAA;AAA6B,MAAA,YAAA,GAAAA,QAAM,CAAA;;AAEnD,MAAA,aAAA,GAAA,KAAA,CAAA,UAAA,CAAA,CAAA;AAGF,EAAA;AAA+C,EAAA,GAAA;;EAE7C,GAAA,EAAA,GAAA;AAGF,EAAA,SAAA,EAAA,EAAM,CAAA,gCAAW,EAAA,SAAA,CAAA;AAYjB,EAAA,GAAA;AAQA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -21,7 +21,7 @@ declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMe
|
|
|
21
21
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
22
22
|
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
23
|
declare const DropdownMenuShortcut: {
|
|
24
|
-
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>):
|
|
24
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
25
25
|
displayName: string;
|
|
26
26
|
};
|
|
27
27
|
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
|