@admin-layout/tailwind-ui 12.0.16-alpha.93 → 12.2.1-alpha.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/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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import*as DropdownMenuPrimitive from'@radix-ui/react-dropdown-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 DropdownMenu = DropdownMenuPrimitive.Root;
|
|
2
2
|
const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
3
3
|
const DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
4
4
|
const DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
@@ -9,19 +9,18 @@ const DropdownMenuSubTrigger = React.forwardRef(({
|
|
|
9
9
|
inset,
|
|
10
10
|
children,
|
|
11
11
|
...props
|
|
12
|
-
}, ref) =>
|
|
12
|
+
}, ref) => React.createElement(DropdownMenuPrimitive.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 data-[state=open]:bg-accent', 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
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
21
20
|
const DropdownMenuSubContent = React.forwardRef(({
|
|
22
21
|
className,
|
|
23
22
|
...props
|
|
24
|
-
}, ref) =>
|
|
23
|
+
}, ref) => React.createElement(DropdownMenuPrimitive.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-lg 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
|
|
@@ -31,20 +30,18 @@ const DropdownMenuContent = React.forwardRef(({
|
|
|
31
30
|
className,
|
|
32
31
|
sideOffset = 4,
|
|
33
32
|
...props
|
|
34
|
-
}, ref) =>
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
})
|
|
41
|
-
}));
|
|
33
|
+
}, ref) => React.createElement(DropdownMenuPrimitive.Portal, null, React.createElement(DropdownMenuPrimitive.Content, {
|
|
34
|
+
ref: ref,
|
|
35
|
+
sideOffset: sideOffset,
|
|
36
|
+
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),
|
|
37
|
+
...props
|
|
38
|
+
})));
|
|
42
39
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
43
40
|
const DropdownMenuItem = React.forwardRef(({
|
|
44
41
|
className,
|
|
45
42
|
inset,
|
|
46
43
|
...props
|
|
47
|
-
}, ref) =>
|
|
44
|
+
}, ref) => React.createElement(DropdownMenuPrimitive.Item, {
|
|
48
45
|
ref: ref,
|
|
49
46
|
className: cn('relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', inset && 'pl-8', className),
|
|
50
47
|
...props
|
|
@@ -55,44 +52,36 @@ const DropdownMenuCheckboxItem = React.forwardRef(({
|
|
|
55
52
|
children,
|
|
56
53
|
checked,
|
|
57
54
|
...props
|
|
58
|
-
}, ref) =>
|
|
55
|
+
}, ref) => React.createElement(DropdownMenuPrimitive.CheckboxItem, {
|
|
59
56
|
ref: ref,
|
|
60
57
|
className: cn('relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className),
|
|
61
58
|
checked: checked,
|
|
62
|
-
...props
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
})
|
|
69
|
-
})
|
|
70
|
-
}), children]
|
|
71
|
-
}));
|
|
59
|
+
...props
|
|
60
|
+
}, React.createElement("span", {
|
|
61
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center"
|
|
62
|
+
}, React.createElement(DropdownMenuPrimitive.ItemIndicator, null, React.createElement(Check, {
|
|
63
|
+
className: "h-4 w-4"
|
|
64
|
+
}))), children));
|
|
72
65
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
73
66
|
const DropdownMenuRadioItem = React.forwardRef(({
|
|
74
67
|
className,
|
|
75
68
|
children,
|
|
76
69
|
...props
|
|
77
|
-
}, ref) =>
|
|
70
|
+
}, ref) => React.createElement(DropdownMenuPrimitive.RadioItem, {
|
|
78
71
|
ref: ref,
|
|
79
72
|
className: cn('relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className),
|
|
80
|
-
...props
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
})
|
|
87
|
-
})
|
|
88
|
-
}), children]
|
|
89
|
-
}));
|
|
73
|
+
...props
|
|
74
|
+
}, React.createElement("span", {
|
|
75
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center"
|
|
76
|
+
}, React.createElement(DropdownMenuPrimitive.ItemIndicator, null, React.createElement(Circle, {
|
|
77
|
+
className: "h-2 w-2 fill-current"
|
|
78
|
+
}))), children));
|
|
90
79
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
91
80
|
const DropdownMenuLabel = React.forwardRef(({
|
|
92
81
|
className,
|
|
93
82
|
inset,
|
|
94
83
|
...props
|
|
95
|
-
}, ref) =>
|
|
84
|
+
}, ref) => React.createElement(DropdownMenuPrimitive.Label, {
|
|
96
85
|
ref: ref,
|
|
97
86
|
className: cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className),
|
|
98
87
|
...props
|
|
@@ -101,7 +90,7 @@ DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
|
101
90
|
const DropdownMenuSeparator = React.forwardRef(({
|
|
102
91
|
className,
|
|
103
92
|
...props
|
|
104
|
-
}, ref) =>
|
|
93
|
+
}, ref) => React.createElement(DropdownMenuPrimitive.Separator, {
|
|
105
94
|
ref: ref,
|
|
106
95
|
className: cn('-mx-1 my-1 h-px bg-muted', className),
|
|
107
96
|
...props
|
|
@@ -111,7 +100,7 @@ const DropdownMenuShortcut = ({
|
|
|
111
100
|
className,
|
|
112
101
|
...props
|
|
113
102
|
}) => {
|
|
114
|
-
return
|
|
103
|
+
return React.createElement("span", {
|
|
115
104
|
className: cn('ml-auto text-xs tracking-widest opacity-60', className),
|
|
116
105
|
...props
|
|
117
106
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-menu.js","sources":["../../src/shardui/dropdown-menu.tsx"],"sourcesContent":[null],"names":[
|
|
1
|
+
{"version":3,"file":"dropdown-menu.js","sources":["../../src/shardui/dropdown-menu.tsx"],"sourcesContent":[null],"names":[],"mappings":"4PAUA,MAAA,YAAM,GAAA,qBAAiB,CAAA;AAEvB,MAAA,mBAAM,GAAA,qBAAkB,CAAA;AAExB,MAAA,iBAAM,GAAA,qBAAe,CAAA;AAErB,MAAA,kBAAM,GAAA,qBAAsB,CAAA;AAE5B,MAAA,eAAM,GAAA,qBAAsB,CAAA;4BAGL,GAAA,qBAAA,CAAA;+CAepB,CAAA,CAAA;AAGH,EAAA,SAAA;AAeA,EAAA,KAAA;AAkBA,EAAA;;oDAeG,CAAA,UAAA,EAAA;AAGH,EAAA,GAAA,EAAA,GAAA;AAuBA,EAAA,SAAA,EAAA,EAAM,CAAA,sIAAqB,EAAA,KAAA,IAAA,MAAA,EAAA,SAAA,CAAA;AAsB3B,EAAA,GAAA;aAGgB,KAAA,CAAO,aAAA,CAAA,YAAA,EAAA;;AAWvB,CAAA,CAAA,CAAA;AAQA,sBAAM,CAAA,WAAoB,GAAA,qBAAA,CAAA,UAAA,CAAA,WAAA;AAA6B,MAAA,sBAAA,GAAA,KAAM,CAAA,UAAA,CAAA,CAAA;;EAE3D,GAAA;AAGF,CAAA,EAAA,GAAA,KACI,KAAA,CAAA,aACA,CAAA,qBACA,CAAA,UAAmB,EACnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/shardui/form.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
3
3
|
import { ControllerProps, FieldPath, FieldValues } from 'react-hook-form';
|
|
4
4
|
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
5
|
-
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) =>
|
|
5
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => React.JSX.Element;
|
|
6
6
|
declare const useFormField: () => {
|
|
7
7
|
invalid: boolean;
|
|
8
8
|
isDirty: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/shardui/form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAc,eAAe,EAAE,SAAS,EAAE,WAAW,EAAgC,MAAM,iBAAiB,CAAC;AAKpH,QAAA,MAAM,IAAI,4MAAe,CAAC;AAW1B,QAAA,MAAM,SAAS,GACX,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EACjE,cAEC,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/shardui/form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAc,eAAe,EAAE,SAAS,EAAE,WAAW,EAAgC,MAAM,iBAAiB,CAAC;AAKpH,QAAA,MAAM,IAAI,4MAAe,CAAC;AAW1B,QAAA,MAAM,SAAS,GACX,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EACjE,cAEC,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,sBAMtC,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;CAqBjB,CAAC;AAQF,QAAA,MAAM,QAAQ,6GAUb,CAAC;AAGF,QAAA,MAAM,SAAS,yJAOb,CAAC;AAGH,QAAA,MAAM,WAAW,8JAchB,CAAC;AAGF,QAAA,MAAM,eAAe,yHAQpB,CAAC;AAGF,QAAA,MAAM,WAAW,yHAoBhB,CAAC;AAGF,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC"}
|
package/lib/shardui/form.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import {Slot}from'@radix-ui/react-slot';import {useFormContext,FormProvider,Controller}from'react-hook-form';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';import {Label}from'./label.js';const Form = FormProvider;
|
|
2
2
|
const FormFieldContext = React.createContext({});
|
|
3
3
|
const FormField = ({
|
|
4
4
|
...props
|
|
5
5
|
}) => {
|
|
6
|
-
return
|
|
6
|
+
return React.createElement(FormFieldContext.Provider, {
|
|
7
7
|
value: {
|
|
8
8
|
name: props.name
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
});
|
|
9
|
+
}
|
|
10
|
+
}, React.createElement(Controller, {
|
|
11
|
+
...props
|
|
12
|
+
}));
|
|
14
13
|
};
|
|
15
14
|
const useFormField = () => {
|
|
16
15
|
const fieldContext = React.useContext(FormFieldContext);
|
|
@@ -41,16 +40,15 @@ const FormItem = React.forwardRef(({
|
|
|
41
40
|
...props
|
|
42
41
|
}, ref) => {
|
|
43
42
|
const id = React.useId();
|
|
44
|
-
return
|
|
43
|
+
return React.createElement(FormItemContext.Provider, {
|
|
45
44
|
value: {
|
|
46
45
|
id
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
});
|
|
46
|
+
}
|
|
47
|
+
}, React.createElement("div", {
|
|
48
|
+
ref: ref,
|
|
49
|
+
className: cn('space-y-2', className),
|
|
50
|
+
...props
|
|
51
|
+
}));
|
|
54
52
|
});
|
|
55
53
|
FormItem.displayName = 'FormItem';
|
|
56
54
|
const FormLabel = React.forwardRef(({
|
|
@@ -61,7 +59,7 @@ const FormLabel = React.forwardRef(({
|
|
|
61
59
|
error,
|
|
62
60
|
formItemId
|
|
63
61
|
} = useFormField();
|
|
64
|
-
return
|
|
62
|
+
return React.createElement(Label, {
|
|
65
63
|
ref: ref,
|
|
66
64
|
className: cn(error && 'text-destructive', className),
|
|
67
65
|
htmlFor: formItemId,
|
|
@@ -78,7 +76,7 @@ const FormControl = React.forwardRef(({
|
|
|
78
76
|
formDescriptionId,
|
|
79
77
|
formMessageId
|
|
80
78
|
} = useFormField();
|
|
81
|
-
return
|
|
79
|
+
return React.createElement(Slot, {
|
|
82
80
|
ref: ref,
|
|
83
81
|
id: formItemId,
|
|
84
82
|
"aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
|
|
@@ -94,7 +92,7 @@ const FormDescription = React.forwardRef(({
|
|
|
94
92
|
const {
|
|
95
93
|
formDescriptionId
|
|
96
94
|
} = useFormField();
|
|
97
|
-
return
|
|
95
|
+
return React.createElement("p", {
|
|
98
96
|
ref: ref,
|
|
99
97
|
id: formDescriptionId,
|
|
100
98
|
className: cn('text-sm text-muted-foreground', className),
|
|
@@ -115,12 +113,11 @@ const FormMessage = React.forwardRef(({
|
|
|
115
113
|
if (!body) {
|
|
116
114
|
return null;
|
|
117
115
|
}
|
|
118
|
-
return
|
|
116
|
+
return React.createElement("p", {
|
|
119
117
|
ref: ref,
|
|
120
118
|
id: formMessageId,
|
|
121
119
|
className: cn('text-sm font-medium text-destructive', className),
|
|
122
|
-
...props
|
|
123
|
-
|
|
124
|
-
});
|
|
120
|
+
...props
|
|
121
|
+
}, body);
|
|
125
122
|
});
|
|
126
123
|
FormMessage.displayName = 'FormMessage';export{Form,FormControl,FormDescription,FormField,FormItem,FormLabel,FormMessage,useFormField};//# sourceMappingURL=form.js.map
|
package/lib/shardui/form.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.js","sources":["../../src/shardui/form.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form.js","sources":["../../src/shardui/form.tsx"],"sourcesContent":[null],"names":[],"mappings":"+QAgCA,MAAA;;;;;;;;;;;GAqBE,CAAA,CAAA;AAQF;AAaA,MAAA,YAAM,GAAA,MAAS;AAUf,EAAA,MAAA,YAAM,GAAA,KAAW,CAAA,UAAA,CAAA,gBAAA,CAAA;AAiBjB,EAAA,MAAA,WAAM,GAAA,KAAA,CAAA,UAAe,CAAA,eAAA,CAAA;AAWrB,EAAA,MAAA;AAuBA,IAAA,aAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import*as HoverCardPrimitive from'@radix-ui/react-hover-card';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const HoverCard = HoverCardPrimitive.Root;
|
|
2
2
|
const HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
3
3
|
const HoverCardContent = React.forwardRef(({
|
|
4
4
|
className,
|
|
5
5
|
align = 'center',
|
|
6
6
|
sideOffset = 4,
|
|
7
7
|
...props
|
|
8
|
-
}, ref) =>
|
|
8
|
+
}, ref) => React.createElement(HoverCardPrimitive.Content, {
|
|
9
9
|
ref: ref,
|
|
10
10
|
align: align,
|
|
11
11
|
sideOffset: sideOffset,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hover-card.js","sources":["../../src/shardui/hover-card.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hover-card.js","sources":["../../src/shardui/hover-card.tsx"],"sourcesContent":[null],"names":[],"mappings":"iMAOA,MAAA,SAAM,GAAA,kBAAgB,CAAA;AAEtB,MAAA,gBAAM,GAAA,kBAAgB,CAAA;AAiBtB,MAAA,mCAAsC,CAAA,CAAA;;;;;;;;;;;;"}
|
package/lib/shardui/input-otp.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import {OTPInput,OTPInputContext}from'input-otp';import {Dot}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const InputOTP = React.forwardRef(({
|
|
2
2
|
className,
|
|
3
3
|
containerClassName,
|
|
4
4
|
...props
|
|
5
|
-
}, ref) =>
|
|
5
|
+
}, ref) => React.createElement(OTPInput, {
|
|
6
6
|
ref: ref,
|
|
7
7
|
containerClassName: cn('flex items-center gap-2 has-[:disabled]:opacity-50', containerClassName),
|
|
8
8
|
className: cn('disabled:cursor-not-allowed', className),
|
|
@@ -12,7 +12,7 @@ InputOTP.displayName = 'InputOTP';
|
|
|
12
12
|
const InputOTPGroup = React.forwardRef(({
|
|
13
13
|
className,
|
|
14
14
|
...props
|
|
15
|
-
}, ref) =>
|
|
15
|
+
}, ref) => React.createElement("div", {
|
|
16
16
|
ref: ref,
|
|
17
17
|
className: cn('flex items-center', className),
|
|
18
18
|
...props
|
|
@@ -29,25 +29,22 @@ const InputOTPSlot = React.forwardRef(({
|
|
|
29
29
|
hasFakeCaret,
|
|
30
30
|
isActive
|
|
31
31
|
} = inputOTPContext.slots[index];
|
|
32
|
-
return
|
|
32
|
+
return React.createElement("div", {
|
|
33
33
|
ref: ref,
|
|
34
34
|
className: cn('relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md', isActive && 'z-10 ring-2 ring-ring ring-offset-background', className),
|
|
35
|
-
...props
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
})]
|
|
42
|
-
});
|
|
35
|
+
...props
|
|
36
|
+
}, char, hasFakeCaret && React.createElement("div", {
|
|
37
|
+
className: "pointer-events-none absolute inset-0 flex items-center justify-center"
|
|
38
|
+
}, React.createElement("div", {
|
|
39
|
+
className: "h-4 w-px animate-caret-blink bg-foreground duration-1000"
|
|
40
|
+
})));
|
|
43
41
|
});
|
|
44
42
|
InputOTPSlot.displayName = 'InputOTPSlot';
|
|
45
43
|
const InputOTPSeparator = React.forwardRef(({
|
|
46
44
|
...props
|
|
47
|
-
}, ref) =>
|
|
45
|
+
}, ref) => React.createElement("div", {
|
|
48
46
|
ref: ref,
|
|
49
47
|
role: "separator",
|
|
50
|
-
...props
|
|
51
|
-
|
|
52
|
-
}));
|
|
48
|
+
...props
|
|
49
|
+
}, React.createElement(Dot, null)));
|
|
53
50
|
InputOTPSeparator.displayName = 'InputOTPSeparator';export{InputOTP,InputOTPGroup,InputOTPSeparator,InputOTPSlot};//# sourceMappingURL=input-otp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-otp.js","sources":["../../src/shardui/input-otp.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"input-otp.js","sources":["../../src/shardui/input-otp.tsx"],"sourcesContent":[null],"names":[],"mappings":";;oBAYY;;;;;;;;;;;;;;;;;;;;;;AAMZ,CAAA,EAAA,GAAA,KAAA;AAKA,EAAA,MAAA,eAAM,GAAY,KAAA,CAAA,UAAA,CAAA,eAAA,CAAA;;;AA4BlB,IAAA,YAAM;AASN,IAAA;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/shardui/input.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Input = React.forwardRef(({
|
|
2
2
|
className,
|
|
3
3
|
type,
|
|
4
4
|
...props
|
|
5
5
|
}, ref) => {
|
|
6
|
-
return
|
|
6
|
+
return React.createElement("input", {
|
|
7
7
|
type: type,
|
|
8
8
|
className: cn('flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm', className),
|
|
9
9
|
ref: ref,
|
package/lib/shardui/input.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"input.js","sources":["../../src/shardui/input.tsx"],"sourcesContent":[null],"names":[],"mappings":"mIAqBA,MAAA,KAAS,GAAK,KAAG,CAAA,UAAA,CAAA,CAAA;;;;;;;;;;;;"}
|
package/lib/shardui/label.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
3
3
|
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
-
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/types").ClassProp) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
4
|
+
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/dist/types").ClassProp) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
5
5
|
export { Label };
|
|
6
6
|
//# sourceMappingURL=label.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../src/shardui/label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAMlE,QAAA,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../src/shardui/label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAMlE,QAAA,MAAM,KAAK,qPAKT,CAAC;AAGH,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
package/lib/shardui/label.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import*as LabelPrimitive from'@radix-ui/react-label';import {cva}from'class-variance-authority';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const labelVariants = cva('text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70');
|
|
2
2
|
const Label = React.forwardRef(({
|
|
3
3
|
className,
|
|
4
4
|
...props
|
|
5
|
-
}, ref) =>
|
|
5
|
+
}, ref) => React.createElement(LabelPrimitive.Root, {
|
|
6
6
|
ref: ref,
|
|
7
7
|
className: cn(labelVariants(), className),
|
|
8
8
|
...props
|
package/lib/shardui/label.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"label.js","sources":["../../src/shardui/label.tsx"],"sourcesContent":[null],"names":[],"mappings":"mOAgBA,MAAA,aAAiB,GAAA,GAAA,CAAA,4FAAA,CAAA;;;;;;;;;"}
|
package/lib/shardui/menubar.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ declare const MenubarLabel: React.ForwardRefExoticComponent<Omit<MenubarPrimitiv
|
|
|
27
27
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
28
28
|
declare const MenubarSeparator: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
29
29
|
declare const MenubarShortcut: {
|
|
30
|
-
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>):
|
|
30
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
31
31
|
displayname: string;
|
|
32
32
|
};
|
|
33
33
|
export { Menubar, MenubarMenu, MenubarTrigger, MenubarContent, MenubarItem, MenubarSeparator, MenubarLabel, MenubarCheckboxItem, MenubarRadioGroup, MenubarRadioItem, MenubarPortal, MenubarSubContent, MenubarSubTrigger, MenubarGroup, MenubarSub, MenubarShortcut, };
|
package/lib/shardui/menubar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import*as MenubarPrimitive from'@radix-ui/react-menubar';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 MenubarMenu = MenubarPrimitive.Menu;
|
|
2
2
|
const MenubarGroup = MenubarPrimitive.Group;
|
|
3
3
|
const MenubarPortal = MenubarPrimitive.Portal;
|
|
4
4
|
const MenubarSub = MenubarPrimitive.Sub;
|
|
@@ -6,7 +6,7 @@ const MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
|
|
6
6
|
const Menubar = React.forwardRef(({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}, ref) =>
|
|
9
|
+
}, ref) => React.createElement(MenubarPrimitive.Root, {
|
|
10
10
|
ref: ref,
|
|
11
11
|
className: cn('flex h-10 items-center space-x-1 rounded-md border bg-background p-1', className),
|
|
12
12
|
...props
|
|
@@ -15,7 +15,7 @@ Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
|
15
15
|
const MenubarTrigger = React.forwardRef(({
|
|
16
16
|
className,
|
|
17
17
|
...props
|
|
18
|
-
}, ref) =>
|
|
18
|
+
}, ref) => React.createElement(MenubarPrimitive.Trigger, {
|
|
19
19
|
ref: ref,
|
|
20
20
|
className: cn('flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground', className),
|
|
21
21
|
...props
|
|
@@ -26,19 +26,18 @@ const MenubarSubTrigger = React.forwardRef(({
|
|
|
26
26
|
inset,
|
|
27
27
|
children,
|
|
28
28
|
...props
|
|
29
|
-
}, ref) =>
|
|
29
|
+
}, ref) => React.createElement(MenubarPrimitive.SubTrigger, {
|
|
30
30
|
ref: ref,
|
|
31
31
|
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),
|
|
32
|
-
...props
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}));
|
|
32
|
+
...props
|
|
33
|
+
}, children, React.createElement(ChevronRight, {
|
|
34
|
+
className: "ml-auto h-4 w-4"
|
|
35
|
+
})));
|
|
37
36
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
38
37
|
const MenubarSubContent = React.forwardRef(({
|
|
39
38
|
className,
|
|
40
39
|
...props
|
|
41
|
-
}, ref) =>
|
|
40
|
+
}, ref) => React.createElement(MenubarPrimitive.SubContent, {
|
|
42
41
|
ref: ref,
|
|
43
42
|
className: cn('z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground 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),
|
|
44
43
|
...props
|
|
@@ -50,22 +49,20 @@ const MenubarContent = React.forwardRef(({
|
|
|
50
49
|
alignOffset = -4,
|
|
51
50
|
sideOffset = 8,
|
|
52
51
|
...props
|
|
53
|
-
}, ref) =>
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
})
|
|
62
|
-
}));
|
|
52
|
+
}, ref) => React.createElement(MenubarPrimitive.Portal, null, React.createElement(MenubarPrimitive.Content, {
|
|
53
|
+
ref: ref,
|
|
54
|
+
align: align,
|
|
55
|
+
alignOffset: alignOffset,
|
|
56
|
+
sideOffset: sideOffset,
|
|
57
|
+
className: cn('z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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),
|
|
58
|
+
...props
|
|
59
|
+
})));
|
|
63
60
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
64
61
|
const MenubarItem = React.forwardRef(({
|
|
65
62
|
className,
|
|
66
63
|
inset,
|
|
67
64
|
...props
|
|
68
|
-
}, ref) =>
|
|
65
|
+
}, ref) => React.createElement(MenubarPrimitive.Item, {
|
|
69
66
|
ref: ref,
|
|
70
67
|
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),
|
|
71
68
|
...props
|
|
@@ -76,44 +73,36 @@ const MenubarCheckboxItem = React.forwardRef(({
|
|
|
76
73
|
children,
|
|
77
74
|
checked,
|
|
78
75
|
...props
|
|
79
|
-
}, ref) =>
|
|
76
|
+
}, ref) => React.createElement(MenubarPrimitive.CheckboxItem, {
|
|
80
77
|
ref: ref,
|
|
81
78
|
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),
|
|
82
79
|
checked: checked,
|
|
83
|
-
...props
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
})
|
|
90
|
-
})
|
|
91
|
-
}), children]
|
|
92
|
-
}));
|
|
80
|
+
...props
|
|
81
|
+
}, React.createElement("span", {
|
|
82
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center"
|
|
83
|
+
}, React.createElement(MenubarPrimitive.ItemIndicator, null, React.createElement(Check, {
|
|
84
|
+
className: "h-4 w-4"
|
|
85
|
+
}))), children));
|
|
93
86
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
94
87
|
const MenubarRadioItem = React.forwardRef(({
|
|
95
88
|
className,
|
|
96
89
|
children,
|
|
97
90
|
...props
|
|
98
|
-
}, ref) =>
|
|
91
|
+
}, ref) => React.createElement(MenubarPrimitive.RadioItem, {
|
|
99
92
|
ref: ref,
|
|
100
93
|
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),
|
|
101
|
-
...props
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
})
|
|
108
|
-
})
|
|
109
|
-
}), children]
|
|
110
|
-
}));
|
|
94
|
+
...props
|
|
95
|
+
}, React.createElement("span", {
|
|
96
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center"
|
|
97
|
+
}, React.createElement(MenubarPrimitive.ItemIndicator, null, React.createElement(Circle, {
|
|
98
|
+
className: "h-2 w-2 fill-current"
|
|
99
|
+
}))), children));
|
|
111
100
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
112
101
|
const MenubarLabel = React.forwardRef(({
|
|
113
102
|
className,
|
|
114
103
|
inset,
|
|
115
104
|
...props
|
|
116
|
-
}, ref) =>
|
|
105
|
+
}, ref) => React.createElement(MenubarPrimitive.Label, {
|
|
117
106
|
ref: ref,
|
|
118
107
|
className: cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className),
|
|
119
108
|
...props
|
|
@@ -122,7 +111,7 @@ MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
|
122
111
|
const MenubarSeparator = React.forwardRef(({
|
|
123
112
|
className,
|
|
124
113
|
...props
|
|
125
|
-
}, ref) =>
|
|
114
|
+
}, ref) => React.createElement(MenubarPrimitive.Separator, {
|
|
126
115
|
ref: ref,
|
|
127
116
|
className: cn('-mx-1 my-1 h-px bg-muted', className),
|
|
128
117
|
...props
|
|
@@ -132,7 +121,7 @@ const MenubarShortcut = ({
|
|
|
132
121
|
className,
|
|
133
122
|
...props
|
|
134
123
|
}) => {
|
|
135
|
-
return
|
|
124
|
+
return React.createElement("span", {
|
|
136
125
|
className: cn('ml-auto text-xs tracking-widest text-muted-foreground', className),
|
|
137
126
|
...props
|
|
138
127
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menubar.js","sources":["../../src/shardui/menubar.tsx"],"sourcesContent":[null],"names":[
|
|
1
|
+
{"version":3,"file":"menubar.js","sources":["../../src/shardui/menubar.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;AAM0C,MAAA,UAAA,GAAA,gBAAA,CAAA;AAE1C,MAAA,iBAAM,GAAY,gBAAA,CAAA;AAElB,MAAA,OAAA,GAAM,KAAA,CAAA,UAAa,CAAA,CAAA;AAEnB,EAAA,SAAA;AAEA,EAAA,GAAA;AAEA,CAAA,EAAA,GAAA,KAAA,KAAM,CAAA,aAAO,CAAA,gBAAA,CAAA,IAAA,EAAA;AAYb,EAAA,GAAA,EAAA,GAAA;AAeA,EAAA,aAAM,CAAA,sEAAiB,EAAA,SAAA,CAAA;;;AAqBvB,OAAA,CAAA,WAAM,GAAA,gBAAiB,CAAA,IAAA,CAAA,WAAA;AAevB,MAAA,cAAM,GAAA,KAAc,CAAA,UAAA,CAAA,CAAA;AAoBpB,EAAA;;+CAeG,CAAA,OAAA,EAAA;AAGH,EAAA,GAAA,EAAA,GAAA;AAuBA,EAAA,SAAA,EAAA,EAAM,CAAA,wNAmBH,EAAA,SAAA,CAAA;AAGH,EAAA,GAAA;;6CAWG,CAAA,OAAA,CAAA,WAAA;AAGH,MAAA,iBAAM,GAAA,KAAgB,CAAA,UAAA,CAAA,CAAA;AAQtB,EAAA;AAAkD,EAAA,KAAA;;EAEhD,GAAA;AAGF,CAAA,EAAA,GAAA,KACI,KAAO,CAAA,cAEP,gBACA,CAAA,UAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,7 +3,7 @@ import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
|
3
3
|
declare const NavigationMenu: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
4
4
|
declare const NavigationMenuList: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React.RefAttributes<HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
5
5
|
declare const NavigationMenuItem: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
6
|
-
declare const navigationMenuTriggerStyle: (props?: import("class-variance-authority/types").ClassProp) => string;
|
|
6
|
+
declare const navigationMenuTriggerStyle: (props?: import("class-variance-authority/dist/types").ClassProp) => string;
|
|
7
7
|
declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
8
8
|
declare const NavigationMenuContent: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
declare const NavigationMenuLink: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-menu.d.ts","sourceRoot":"","sources":["../../src/shardui/navigation-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,uBAAuB,MAAM,iCAAiC,CAAC;AAM3E,QAAA,MAAM,cAAc,iKAYlB,CAAC;AAGH,QAAA,MAAM,kBAAkB,+KAStB,CAAC;AAGH,QAAA,MAAM,kBAAkB,uHAA+B,CAAC;AAExD,QAAA,MAAM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"navigation-menu.d.ts","sourceRoot":"","sources":["../../src/shardui/navigation-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,uBAAuB,MAAM,iCAAiC,CAAC;AAM3E,QAAA,MAAM,cAAc,iKAYlB,CAAC;AAGH,QAAA,MAAM,kBAAkB,+KAStB,CAAC;AAGH,QAAA,MAAM,kBAAkB,uHAA+B,CAAC;AAExD,QAAA,MAAM,0BAA0B,6EAE/B,CAAC;AAEF,QAAA,MAAM,qBAAqB,oLAezB,CAAC;AAGH,QAAA,MAAM,qBAAqB,8KAYzB,CAAC;AAGH,QAAA,MAAM,kBAAkB,2HAA+B,CAAC;AAExD,QAAA,MAAM,sBAAsB,+KAc1B,CAAC;AAGH,QAAA,MAAM,uBAAuB,gLAc3B,CAAC;AAGH,OAAO,EACH,0BAA0B,EAC1B,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,GACzB,CAAC"}
|