@uipath/apollo-wind 2.36.0 → 2.36.2
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/dist/components/custom/flow-properties-simple.cjs +1 -0
- package/dist/components/custom/flow-properties-simple.js +1 -0
- package/dist/components/custom/panel-delegate.cjs +1 -1
- package/dist/components/custom/panel-delegate.js +1 -1
- package/dist/components/custom/panel-flow.cjs +2 -1
- package/dist/components/custom/panel-flow.js +2 -1
- package/dist/components/forms/field-renderer.cjs +1 -0
- package/dist/components/forms/field-renderer.js +1 -0
- package/dist/components/forms/form-designer.cjs +25 -9
- package/dist/components/forms/form-designer.js +25 -9
- package/dist/components/forms/form-examples.cjs +1 -1
- package/dist/components/forms/form-examples.js +1 -1
- package/dist/components/forms/form-state-viewer.cjs +4 -7
- package/dist/components/forms/form-state-viewer.js +4 -7
- package/dist/components/forms/metadata-form.cjs +1 -1
- package/dist/components/forms/metadata-form.js +1 -1
- package/dist/components/ui/accordion.cjs +9 -1
- package/dist/components/ui/accordion.d.ts +1 -1
- package/dist/components/ui/accordion.js +9 -1
- package/dist/components/ui/alert-dialog.cjs +25 -4
- package/dist/components/ui/alert-dialog.d.ts +9 -3
- package/dist/components/ui/alert-dialog.js +25 -4
- package/dist/components/ui/alert.cjs +3 -0
- package/dist/components/ui/alert.js +3 -0
- package/dist/components/ui/aspect-ratio.cjs +8 -1
- package/dist/components/ui/aspect-ratio.d.ts +2 -1
- package/dist/components/ui/aspect-ratio.js +8 -1
- package/dist/components/ui/avatar.cjs +25 -4
- package/dist/components/ui/avatar.d.ts +8 -2
- package/dist/components/ui/avatar.js +21 -3
- package/dist/components/ui/badge.cjs +1 -0
- package/dist/components/ui/badge.js +1 -0
- package/dist/components/ui/breadcrumb.cjs +7 -0
- package/dist/components/ui/breadcrumb.js +7 -0
- package/dist/components/ui/button-group.cjs +3 -0
- package/dist/components/ui/button-group.js +3 -0
- package/dist/components/ui/button.cjs +1 -0
- package/dist/components/ui/button.js +1 -0
- package/dist/components/ui/card.cjs +6 -0
- package/dist/components/ui/card.js +6 -0
- package/dist/components/ui/checkbox.cjs +1 -0
- package/dist/components/ui/checkbox.js +1 -0
- package/dist/components/ui/collapsible.cjs +20 -3
- package/dist/components/ui/collapsible.d.ts +4 -3
- package/dist/components/ui/collapsible.js +20 -3
- package/dist/components/ui/combobox.cjs +5 -3
- package/dist/components/ui/combobox.d.ts +2 -1
- package/dist/components/ui/combobox.js +6 -4
- package/dist/components/ui/command.cjs +9 -0
- package/dist/components/ui/command.js +9 -0
- package/dist/components/ui/context-menu.cjs +42 -6
- package/dist/components/ui/context-menu.d.ts +15 -6
- package/dist/components/ui/context-menu.js +42 -6
- package/dist/components/ui/data-table.cjs +2 -0
- package/dist/components/ui/data-table.js +2 -0
- package/dist/components/ui/date-picker.cjs +11 -6
- package/dist/components/ui/date-picker.d.ts +3 -3
- package/dist/components/ui/date-picker.js +10 -5
- package/dist/components/ui/datetime-picker.cjs +5 -3
- package/dist/components/ui/datetime-picker.d.ts +2 -1
- package/dist/components/ui/datetime-picker.js +6 -4
- package/dist/components/ui/dialog.cjs +1 -1
- package/dist/components/ui/dialog.js +1 -1
- package/dist/components/ui/drawer.cjs +29 -5
- package/dist/components/ui/drawer.d.ts +11 -4
- package/dist/components/ui/drawer.js +29 -5
- package/dist/components/ui/dropdown-menu.cjs +42 -6
- package/dist/components/ui/dropdown-menu.d.ts +15 -6
- package/dist/components/ui/dropdown-menu.js +42 -6
- package/dist/components/ui/editable-cell.cjs +2 -0
- package/dist/components/ui/editable-cell.js +2 -0
- package/dist/components/ui/empty-state.cjs +1 -0
- package/dist/components/ui/empty-state.js +1 -0
- package/dist/components/ui/file-upload.cjs +5 -3
- package/dist/components/ui/file-upload.d.ts +1 -1
- package/dist/components/ui/file-upload.js +6 -4
- package/dist/components/ui/hover-card.cjs +12 -2
- package/dist/components/ui/hover-card.d.ts +5 -2
- package/dist/components/ui/hover-card.js +12 -2
- package/dist/components/ui/index.cjs +189 -139
- package/dist/components/ui/index.d.ts +5 -0
- package/dist/components/ui/index.js +5 -0
- package/dist/components/ui/input.cjs +1 -0
- package/dist/components/ui/input.js +1 -0
- package/dist/components/ui/label.cjs +1 -0
- package/dist/components/ui/label.js +1 -0
- package/dist/components/ui/layout/column.cjs +1 -0
- package/dist/components/ui/layout/column.js +1 -0
- package/dist/components/ui/layout/grid.cjs +1 -0
- package/dist/components/ui/layout/grid.js +1 -0
- package/dist/components/ui/layout/row.cjs +1 -0
- package/dist/components/ui/layout/row.js +1 -0
- package/dist/components/ui/multi-select.cjs +1 -0
- package/dist/components/ui/multi-select.js +1 -0
- package/dist/components/ui/pagination.cjs +7 -0
- package/dist/components/ui/pagination.js +7 -0
- package/dist/components/ui/popover.cjs +18 -3
- package/dist/components/ui/popover.d.ts +6 -3
- package/dist/components/ui/popover.js +18 -3
- package/dist/components/ui/progress.cjs +1 -0
- package/dist/components/ui/progress.js +1 -0
- package/dist/components/ui/prompt-editor/components/EditorToolbar.cjs +5 -2
- package/dist/components/ui/prompt-editor/components/EditorToolbar.js +5 -2
- package/dist/components/ui/radio-group.cjs +2 -0
- package/dist/components/ui/radio-group.js +2 -0
- package/dist/components/ui/resizable.cjs +2 -0
- package/dist/components/ui/resizable.js +2 -0
- package/dist/components/ui/scroll-area.cjs +2 -0
- package/dist/components/ui/scroll-area.js +2 -0
- package/dist/components/ui/search.cjs +2 -0
- package/dist/components/ui/search.js +2 -0
- package/dist/components/ui/select.cjs +24 -3
- package/dist/components/ui/select.d.ts +6 -3
- package/dist/components/ui/select.js +24 -3
- package/dist/components/ui/separator.cjs +1 -0
- package/dist/components/ui/separator.js +1 -0
- package/dist/components/ui/sheet.cjs +29 -5
- package/dist/components/ui/sheet.d.ts +10 -4
- package/dist/components/ui/sheet.js +29 -5
- package/dist/components/ui/skeleton.cjs +1 -0
- package/dist/components/ui/skeleton.js +1 -0
- package/dist/components/ui/slider.cjs +1 -0
- package/dist/components/ui/slider.js +1 -0
- package/dist/components/ui/sonner.cjs +1 -0
- package/dist/components/ui/sonner.js +1 -0
- package/dist/components/ui/spinner.cjs +1 -0
- package/dist/components/ui/spinner.js +1 -0
- package/dist/components/ui/stats-card.cjs +26 -12
- package/dist/components/ui/stats-card.d.ts +6 -3
- package/dist/components/ui/stats-card.js +22 -11
- package/dist/components/ui/stepper.cjs +1 -0
- package/dist/components/ui/stepper.js +1 -0
- package/dist/components/ui/switch.cjs +1 -0
- package/dist/components/ui/switch.js +1 -0
- package/dist/components/ui/table.cjs +9 -0
- package/dist/components/ui/table.js +9 -0
- package/dist/components/ui/tabs.cjs +10 -1
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/components/ui/tabs.js +10 -1
- package/dist/components/ui/textarea.cjs +1 -0
- package/dist/components/ui/textarea.js +1 -0
- package/dist/components/ui/toggle-group.cjs +2 -0
- package/dist/components/ui/toggle-group.js +2 -0
- package/dist/components/ui/toggle.cjs +1 -0
- package/dist/components/ui/toggle.js +1 -0
- package/dist/components/ui/tooltip.cjs +22 -4
- package/dist/components/ui/tooltip.d.ts +13 -4
- package/dist/components/ui/tooltip.js +22 -4
- package/dist/components/ui/tree-view.cjs +17 -9
- package/dist/components/ui/tree-view.d.ts +2 -1
- package/dist/components/ui/tree-view.js +18 -10
- package/dist/foundation/Future/index.cjs +107 -0
- package/dist/foundation/Future/index.d.ts +8 -0
- package/dist/foundation/Future/index.js +8 -0
- package/dist/foundation/index.cjs +58 -0
- package/dist/foundation/index.d.ts +1 -0
- package/dist/foundation/index.js +1 -0
- package/dist/index.cjs +52 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -1
- package/dist/styles.css +124 -123
- package/package.json +2 -5
- package/dist/components/UiPath/index.cjs +0 -5
- package/dist/components/UiPath/index.d.ts +0 -1
- package/dist/components/UiPath/index.js +0 -0
|
@@ -47,14 +47,42 @@ const external_lucide_react_namespaceObject = require("lucide-react");
|
|
|
47
47
|
const external_react_namespaceObject = require("react");
|
|
48
48
|
const external_portal_container_cjs_namespaceObject = require("./portal-container.cjs");
|
|
49
49
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
50
|
-
const DropdownMenu = react_dropdown_menu_namespaceObject.Root
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
const
|
|
50
|
+
const DropdownMenu = (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Root, {
|
|
51
|
+
"data-slot": "dropdown-menu",
|
|
52
|
+
...props
|
|
53
|
+
});
|
|
54
|
+
DropdownMenu.displayName = 'DropdownMenu';
|
|
55
|
+
const DropdownMenuTrigger = /*#__PURE__*/ external_react_namespaceObject.forwardRef((props, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Trigger, {
|
|
56
|
+
ref: ref,
|
|
57
|
+
"data-slot": "dropdown-menu-trigger",
|
|
58
|
+
...props
|
|
59
|
+
}));
|
|
60
|
+
DropdownMenuTrigger.displayName = react_dropdown_menu_namespaceObject.Trigger.displayName;
|
|
61
|
+
const DropdownMenuGroup = /*#__PURE__*/ external_react_namespaceObject.forwardRef((props, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Group, {
|
|
62
|
+
ref: ref,
|
|
63
|
+
"data-slot": "dropdown-menu-group",
|
|
64
|
+
...props
|
|
65
|
+
}));
|
|
66
|
+
DropdownMenuGroup.displayName = react_dropdown_menu_namespaceObject.Group.displayName;
|
|
67
|
+
const DropdownMenuPortal = (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Portal, {
|
|
68
|
+
"data-slot": "dropdown-menu-portal",
|
|
69
|
+
...props
|
|
70
|
+
});
|
|
71
|
+
DropdownMenuPortal.displayName = 'DropdownMenuPortal';
|
|
72
|
+
const DropdownMenuSub = (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Sub, {
|
|
73
|
+
"data-slot": "dropdown-menu-sub",
|
|
74
|
+
...props
|
|
75
|
+
});
|
|
76
|
+
DropdownMenuSub.displayName = 'DropdownMenuSub';
|
|
77
|
+
const DropdownMenuRadioGroup = /*#__PURE__*/ external_react_namespaceObject.forwardRef((props, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.RadioGroup, {
|
|
78
|
+
ref: ref,
|
|
79
|
+
"data-slot": "dropdown-menu-radio-group",
|
|
80
|
+
...props
|
|
81
|
+
}));
|
|
82
|
+
DropdownMenuRadioGroup.displayName = react_dropdown_menu_namespaceObject.RadioGroup.displayName;
|
|
56
83
|
const DropdownMenuSubTrigger = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, inset, children, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_dropdown_menu_namespaceObject.SubTrigger, {
|
|
57
84
|
ref: ref,
|
|
85
|
+
"data-slot": "dropdown-menu-sub-trigger",
|
|
58
86
|
className: (0, index_cjs_namespaceObject.cn)('flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0', inset && 'pl-8', className),
|
|
59
87
|
...props,
|
|
60
88
|
children: [
|
|
@@ -67,6 +95,7 @@ const DropdownMenuSubTrigger = /*#__PURE__*/ external_react_namespaceObject.forw
|
|
|
67
95
|
DropdownMenuSubTrigger.displayName = react_dropdown_menu_namespaceObject.SubTrigger.displayName;
|
|
68
96
|
const DropdownMenuSubContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.SubContent, {
|
|
69
97
|
ref: ref,
|
|
98
|
+
"data-slot": "dropdown-menu-sub-content",
|
|
70
99
|
className: (0, index_cjs_namespaceObject.cn)('z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg future:rounded-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 origin-[--radix-dropdown-menu-content-transform-origin]', className),
|
|
71
100
|
...props
|
|
72
101
|
}));
|
|
@@ -77,6 +106,7 @@ const DropdownMenuContent = /*#__PURE__*/ external_react_namespaceObject.forward
|
|
|
77
106
|
container: resolvedContainer,
|
|
78
107
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Content, {
|
|
79
108
|
ref: ref,
|
|
109
|
+
"data-slot": "dropdown-menu-content",
|
|
80
110
|
sideOffset: sideOffset,
|
|
81
111
|
className: (0, index_cjs_namespaceObject.cn)('z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md future:rounded-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 origin-[--radix-dropdown-menu-content-transform-origin]', className),
|
|
82
112
|
...props
|
|
@@ -86,12 +116,14 @@ const DropdownMenuContent = /*#__PURE__*/ external_react_namespaceObject.forward
|
|
|
86
116
|
DropdownMenuContent.displayName = react_dropdown_menu_namespaceObject.Content.displayName;
|
|
87
117
|
const DropdownMenuItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, inset, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Item, {
|
|
88
118
|
ref: ref,
|
|
119
|
+
"data-slot": "dropdown-menu-item",
|
|
89
120
|
className: (0, index_cjs_namespaceObject.cn)('relative flex cursor-default select-none items-center gap-2 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 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0', inset && 'pl-8', className),
|
|
90
121
|
...props
|
|
91
122
|
}));
|
|
92
123
|
DropdownMenuItem.displayName = react_dropdown_menu_namespaceObject.Item.displayName;
|
|
93
124
|
const DropdownMenuCheckboxItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, children, checked, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_dropdown_menu_namespaceObject.CheckboxItem, {
|
|
94
125
|
ref: ref,
|
|
126
|
+
"data-slot": "dropdown-menu-checkbox-item",
|
|
95
127
|
className: (0, index_cjs_namespaceObject.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),
|
|
96
128
|
checked: checked,
|
|
97
129
|
...props,
|
|
@@ -110,6 +142,7 @@ const DropdownMenuCheckboxItem = /*#__PURE__*/ external_react_namespaceObject.fo
|
|
|
110
142
|
DropdownMenuCheckboxItem.displayName = react_dropdown_menu_namespaceObject.CheckboxItem.displayName;
|
|
111
143
|
const DropdownMenuRadioItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, children, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_dropdown_menu_namespaceObject.RadioItem, {
|
|
112
144
|
ref: ref,
|
|
145
|
+
"data-slot": "dropdown-menu-radio-item",
|
|
113
146
|
className: (0, index_cjs_namespaceObject.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),
|
|
114
147
|
...props,
|
|
115
148
|
children: [
|
|
@@ -127,17 +160,20 @@ const DropdownMenuRadioItem = /*#__PURE__*/ external_react_namespaceObject.forwa
|
|
|
127
160
|
DropdownMenuRadioItem.displayName = react_dropdown_menu_namespaceObject.RadioItem.displayName;
|
|
128
161
|
const DropdownMenuLabel = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, inset, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Label, {
|
|
129
162
|
ref: ref,
|
|
163
|
+
"data-slot": "dropdown-menu-label",
|
|
130
164
|
className: (0, index_cjs_namespaceObject.cn)('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className),
|
|
131
165
|
...props
|
|
132
166
|
}));
|
|
133
167
|
DropdownMenuLabel.displayName = react_dropdown_menu_namespaceObject.Label.displayName;
|
|
134
168
|
const DropdownMenuSeparator = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Separator, {
|
|
135
169
|
ref: ref,
|
|
170
|
+
"data-slot": "dropdown-menu-separator",
|
|
136
171
|
className: (0, index_cjs_namespaceObject.cn)('-mx-1 my-1 h-px bg-surface-overlay', className),
|
|
137
172
|
...props
|
|
138
173
|
}));
|
|
139
174
|
DropdownMenuSeparator.displayName = react_dropdown_menu_namespaceObject.Separator.displayName;
|
|
140
175
|
const DropdownMenuShortcut = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
176
|
+
"data-slot": "dropdown-menu-shortcut",
|
|
141
177
|
className: (0, index_cjs_namespaceObject.cn)('ml-auto text-xs tracking-widest opacity-60', className),
|
|
142
178
|
...props
|
|
143
179
|
});
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { type PortalContainerOverride } from './portal-container';
|
|
4
|
-
declare const DropdownMenu:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
declare const
|
|
9
|
-
declare const
|
|
4
|
+
declare const DropdownMenu: {
|
|
5
|
+
(props: React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const DropdownMenuPortal: {
|
|
11
|
+
(props: React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
declare const DropdownMenuSub: {
|
|
15
|
+
(props: React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
19
|
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
11
20
|
inset?: boolean;
|
|
12
21
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -5,14 +5,42 @@ import { Check, ChevronRight, Circle } from "lucide-react";
|
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
6
|
import { useResolvedPortalContainer } from "./portal-container.js";
|
|
7
7
|
import { cn } from "../../lib/index.js";
|
|
8
|
-
const DropdownMenu = Root
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const
|
|
8
|
+
const DropdownMenu = (props)=>/*#__PURE__*/ jsx(Root, {
|
|
9
|
+
"data-slot": "dropdown-menu",
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
DropdownMenu.displayName = 'DropdownMenu';
|
|
13
|
+
const DropdownMenuTrigger = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(Trigger, {
|
|
14
|
+
ref: ref,
|
|
15
|
+
"data-slot": "dropdown-menu-trigger",
|
|
16
|
+
...props
|
|
17
|
+
}));
|
|
18
|
+
DropdownMenuTrigger.displayName = Trigger.displayName;
|
|
19
|
+
const DropdownMenuGroup = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(Group, {
|
|
20
|
+
ref: ref,
|
|
21
|
+
"data-slot": "dropdown-menu-group",
|
|
22
|
+
...props
|
|
23
|
+
}));
|
|
24
|
+
DropdownMenuGroup.displayName = Group.displayName;
|
|
25
|
+
const DropdownMenuPortal = (props)=>/*#__PURE__*/ jsx(Portal, {
|
|
26
|
+
"data-slot": "dropdown-menu-portal",
|
|
27
|
+
...props
|
|
28
|
+
});
|
|
29
|
+
DropdownMenuPortal.displayName = 'DropdownMenuPortal';
|
|
30
|
+
const DropdownMenuSub = (props)=>/*#__PURE__*/ jsx(Sub, {
|
|
31
|
+
"data-slot": "dropdown-menu-sub",
|
|
32
|
+
...props
|
|
33
|
+
});
|
|
34
|
+
DropdownMenuSub.displayName = 'DropdownMenuSub';
|
|
35
|
+
const DropdownMenuRadioGroup = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(RadioGroup, {
|
|
36
|
+
ref: ref,
|
|
37
|
+
"data-slot": "dropdown-menu-radio-group",
|
|
38
|
+
...props
|
|
39
|
+
}));
|
|
40
|
+
DropdownMenuRadioGroup.displayName = RadioGroup.displayName;
|
|
14
41
|
const DropdownMenuSubTrigger = /*#__PURE__*/ forwardRef(({ className, inset, children, ...props }, ref)=>/*#__PURE__*/ jsxs(SubTrigger, {
|
|
15
42
|
ref: ref,
|
|
43
|
+
"data-slot": "dropdown-menu-sub-trigger",
|
|
16
44
|
className: cn('flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0', inset && 'pl-8', className),
|
|
17
45
|
...props,
|
|
18
46
|
children: [
|
|
@@ -25,6 +53,7 @@ const DropdownMenuSubTrigger = /*#__PURE__*/ forwardRef(({ className, inset, chi
|
|
|
25
53
|
DropdownMenuSubTrigger.displayName = SubTrigger.displayName;
|
|
26
54
|
const DropdownMenuSubContent = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(SubContent, {
|
|
27
55
|
ref: ref,
|
|
56
|
+
"data-slot": "dropdown-menu-sub-content",
|
|
28
57
|
className: cn('z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg future:rounded-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 origin-[--radix-dropdown-menu-content-transform-origin]', className),
|
|
29
58
|
...props
|
|
30
59
|
}));
|
|
@@ -35,6 +64,7 @@ const DropdownMenuContent = /*#__PURE__*/ forwardRef(({ className, sideOffset =
|
|
|
35
64
|
container: resolvedContainer,
|
|
36
65
|
children: /*#__PURE__*/ jsx(Content, {
|
|
37
66
|
ref: ref,
|
|
67
|
+
"data-slot": "dropdown-menu-content",
|
|
38
68
|
sideOffset: sideOffset,
|
|
39
69
|
className: cn('z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md future:rounded-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 origin-[--radix-dropdown-menu-content-transform-origin]', className),
|
|
40
70
|
...props
|
|
@@ -44,12 +74,14 @@ const DropdownMenuContent = /*#__PURE__*/ forwardRef(({ className, sideOffset =
|
|
|
44
74
|
DropdownMenuContent.displayName = Content.displayName;
|
|
45
75
|
const DropdownMenuItem = /*#__PURE__*/ forwardRef(({ className, inset, ...props }, ref)=>/*#__PURE__*/ jsx(Item, {
|
|
46
76
|
ref: ref,
|
|
77
|
+
"data-slot": "dropdown-menu-item",
|
|
47
78
|
className: cn('relative flex cursor-default select-none items-center gap-2 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 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0', inset && 'pl-8', className),
|
|
48
79
|
...props
|
|
49
80
|
}));
|
|
50
81
|
DropdownMenuItem.displayName = Item.displayName;
|
|
51
82
|
const DropdownMenuCheckboxItem = /*#__PURE__*/ forwardRef(({ className, children, checked, ...props }, ref)=>/*#__PURE__*/ jsxs(CheckboxItem, {
|
|
52
83
|
ref: ref,
|
|
84
|
+
"data-slot": "dropdown-menu-checkbox-item",
|
|
53
85
|
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),
|
|
54
86
|
checked: checked,
|
|
55
87
|
...props,
|
|
@@ -68,6 +100,7 @@ const DropdownMenuCheckboxItem = /*#__PURE__*/ forwardRef(({ className, children
|
|
|
68
100
|
DropdownMenuCheckboxItem.displayName = CheckboxItem.displayName;
|
|
69
101
|
const DropdownMenuRadioItem = /*#__PURE__*/ forwardRef(({ className, children, ...props }, ref)=>/*#__PURE__*/ jsxs(RadioItem, {
|
|
70
102
|
ref: ref,
|
|
103
|
+
"data-slot": "dropdown-menu-radio-item",
|
|
71
104
|
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),
|
|
72
105
|
...props,
|
|
73
106
|
children: [
|
|
@@ -85,17 +118,20 @@ const DropdownMenuRadioItem = /*#__PURE__*/ forwardRef(({ className, children, .
|
|
|
85
118
|
DropdownMenuRadioItem.displayName = RadioItem.displayName;
|
|
86
119
|
const DropdownMenuLabel = /*#__PURE__*/ forwardRef(({ className, inset, ...props }, ref)=>/*#__PURE__*/ jsx(Label, {
|
|
87
120
|
ref: ref,
|
|
121
|
+
"data-slot": "dropdown-menu-label",
|
|
88
122
|
className: cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className),
|
|
89
123
|
...props
|
|
90
124
|
}));
|
|
91
125
|
DropdownMenuLabel.displayName = Label.displayName;
|
|
92
126
|
const DropdownMenuSeparator = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Separator, {
|
|
93
127
|
ref: ref,
|
|
128
|
+
"data-slot": "dropdown-menu-separator",
|
|
94
129
|
className: cn('-mx-1 my-1 h-px bg-surface-overlay', className),
|
|
95
130
|
...props
|
|
96
131
|
}));
|
|
97
132
|
DropdownMenuSeparator.displayName = Separator.displayName;
|
|
98
133
|
const DropdownMenuShortcut = ({ className, ...props })=>/*#__PURE__*/ jsx("span", {
|
|
134
|
+
"data-slot": "dropdown-menu-shortcut",
|
|
99
135
|
className: cn('ml-auto text-xs tracking-widest opacity-60', className),
|
|
100
136
|
...props
|
|
101
137
|
});
|
|
@@ -85,6 +85,7 @@ function EditableCell({ cell, onUpdate }) {
|
|
|
85
85
|
handleCancel
|
|
86
86
|
]);
|
|
87
87
|
if ('checkbox' === type) return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
88
|
+
"data-slot": "editable-cell",
|
|
88
89
|
className: "flex items-center justify-center",
|
|
89
90
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_checkbox_cjs_namespaceObject.Checkbox, {
|
|
90
91
|
checked: Boolean(value),
|
|
@@ -97,6 +98,7 @@ function EditableCell({ cell, onUpdate }) {
|
|
|
97
98
|
});
|
|
98
99
|
const cellContent = isEditing ? renderEditMode() : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
|
|
99
100
|
type: "button",
|
|
101
|
+
"data-slot": "editable-cell",
|
|
100
102
|
className: (0, index_cjs_namespaceObject.cn)('min-h-[32px] px-2 py-1.5 -mx-2 rounded cursor-pointer w-full text-left', 'hover:bg-muted/50 transition-colors', 'flex items-center bg-transparent border-0'),
|
|
101
103
|
onClick: ()=>setIsEditing(true),
|
|
102
104
|
"aria-label": `Edit ${cell.column.id}`,
|
|
@@ -56,6 +56,7 @@ function EditableCell({ cell, onUpdate }) {
|
|
|
56
56
|
handleCancel
|
|
57
57
|
]);
|
|
58
58
|
if ('checkbox' === type) return /*#__PURE__*/ jsx("div", {
|
|
59
|
+
"data-slot": "editable-cell",
|
|
59
60
|
className: "flex items-center justify-center",
|
|
60
61
|
children: /*#__PURE__*/ jsx(Checkbox, {
|
|
61
62
|
checked: Boolean(value),
|
|
@@ -68,6 +69,7 @@ function EditableCell({ cell, onUpdate }) {
|
|
|
68
69
|
});
|
|
69
70
|
const cellContent = isEditing ? renderEditMode() : /*#__PURE__*/ jsx("button", {
|
|
70
71
|
type: "button",
|
|
72
|
+
"data-slot": "editable-cell",
|
|
71
73
|
className: cn('min-h-[32px] px-2 py-1.5 -mx-2 rounded cursor-pointer w-full text-left', 'hover:bg-muted/50 transition-colors', 'flex items-center bg-transparent border-0'),
|
|
72
74
|
onClick: ()=>setIsEditing(true),
|
|
73
75
|
"aria-label": `Edit ${cell.column.id}`,
|
|
@@ -34,6 +34,7 @@ const EmptyState = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ ic
|
|
|
34
34
|
const hasSimpleActions = !children && (action || secondaryAction);
|
|
35
35
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
36
36
|
ref: ref,
|
|
37
|
+
"data-slot": "empty-state",
|
|
37
38
|
className: (0, index_cjs_namespaceObject.cn)('flex flex-col items-center justify-center p-8 text-center', className),
|
|
38
39
|
...props,
|
|
39
40
|
children: [
|
|
@@ -6,6 +6,7 @@ const EmptyState = /*#__PURE__*/ forwardRef(({ icon, code, title, description, a
|
|
|
6
6
|
const hasSimpleActions = !children && (action || secondaryAction);
|
|
7
7
|
return /*#__PURE__*/ jsxs("div", {
|
|
8
8
|
ref: ref,
|
|
9
|
+
"data-slot": "empty-state",
|
|
9
10
|
className: cn('flex flex-col items-center justify-center p-8 text-center', className),
|
|
10
11
|
...props,
|
|
11
12
|
children: [
|
|
@@ -25,14 +25,14 @@ var __webpack_require__ = {};
|
|
|
25
25
|
var __webpack_exports__ = {};
|
|
26
26
|
__webpack_require__.r(__webpack_exports__);
|
|
27
27
|
__webpack_require__.d(__webpack_exports__, {
|
|
28
|
-
FileUpload: ()=>
|
|
28
|
+
FileUpload: ()=>file_upload_FileUpload
|
|
29
29
|
});
|
|
30
30
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
31
|
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
32
32
|
const external_react_namespaceObject = require("react");
|
|
33
33
|
const external_button_cjs_namespaceObject = require("./button.cjs");
|
|
34
34
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
35
|
-
|
|
35
|
+
const file_upload_FileUpload = /*#__PURE__*/ external_react_namespaceObject.forwardRef(function({ id, ariaLabel, onFilesChange, accept, multiple = false, disabled = false, maxSize, className, showPreview = false, errors, onBlur }, ref) {
|
|
36
36
|
const [files, setFiles] = external_react_namespaceObject.useState([]);
|
|
37
37
|
const [isDragging, setIsDragging] = external_react_namespaceObject.useState(false);
|
|
38
38
|
const [fileErrors, setFileErrors] = external_react_namespaceObject.useState(new Map());
|
|
@@ -161,6 +161,8 @@ function FileUpload({ id, ariaLabel, onFilesChange, accept, multiple = false, di
|
|
|
161
161
|
return Math.round(bytes / k ** i * 100) / 100 + ' ' + sizes[i];
|
|
162
162
|
};
|
|
163
163
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("fieldset", {
|
|
164
|
+
ref: ref,
|
|
165
|
+
"data-slot": "file-upload",
|
|
164
166
|
className: (0, index_cjs_namespaceObject.cn)('m-0 min-w-0 w-full border-0 p-0', className),
|
|
165
167
|
onBlur: (event)=>{
|
|
166
168
|
if (!event.currentTarget.contains(event.relatedTarget)) onBlur?.(event);
|
|
@@ -280,7 +282,7 @@ function FileUpload({ id, ariaLabel, onFilesChange, accept, multiple = false, di
|
|
|
280
282
|
})
|
|
281
283
|
]
|
|
282
284
|
});
|
|
283
|
-
}
|
|
285
|
+
});
|
|
284
286
|
exports.FileUpload = __webpack_exports__.FileUpload;
|
|
285
287
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
286
288
|
"FileUpload"
|
|
@@ -27,4 +27,4 @@ export interface FileUploadProps {
|
|
|
27
27
|
errors?: Record<string, string>;
|
|
28
28
|
onBlur?: React.FocusEventHandler<HTMLFieldSetElement>;
|
|
29
29
|
}
|
|
30
|
-
export declare
|
|
30
|
+
export declare const FileUpload: React.ForwardRefExoticComponent<FileUploadProps & React.RefAttributes<HTMLFieldSetElement>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Upload, X } from "lucide-react";
|
|
4
|
-
import { useRef, useState } from "react";
|
|
4
|
+
import { forwardRef, useRef, useState } from "react";
|
|
5
5
|
import { Button } from "./button.js";
|
|
6
6
|
import { cn } from "../../lib/index.js";
|
|
7
|
-
|
|
7
|
+
const file_upload_FileUpload = /*#__PURE__*/ forwardRef(function({ id, ariaLabel, onFilesChange, accept, multiple = false, disabled = false, maxSize, className, showPreview = false, errors, onBlur }, ref) {
|
|
8
8
|
const [files, setFiles] = useState([]);
|
|
9
9
|
const [isDragging, setIsDragging] = useState(false);
|
|
10
10
|
const [fileErrors, setFileErrors] = useState(new Map());
|
|
@@ -133,6 +133,8 @@ function FileUpload({ id, ariaLabel, onFilesChange, accept, multiple = false, di
|
|
|
133
133
|
return Math.round(bytes / k ** i * 100) / 100 + ' ' + sizes[i];
|
|
134
134
|
};
|
|
135
135
|
return /*#__PURE__*/ jsxs("fieldset", {
|
|
136
|
+
ref: ref,
|
|
137
|
+
"data-slot": "file-upload",
|
|
136
138
|
className: cn('m-0 min-w-0 w-full border-0 p-0', className),
|
|
137
139
|
onBlur: (event)=>{
|
|
138
140
|
if (!event.currentTarget.contains(event.relatedTarget)) onBlur?.(event);
|
|
@@ -252,5 +254,5 @@ function FileUpload({ id, ariaLabel, onFilesChange, accept, multiple = false, di
|
|
|
252
254
|
})
|
|
253
255
|
]
|
|
254
256
|
});
|
|
255
|
-
}
|
|
256
|
-
export { FileUpload };
|
|
257
|
+
});
|
|
258
|
+
export { file_upload_FileUpload as FileUpload };
|
|
@@ -32,10 +32,20 @@ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
|
32
32
|
const react_hover_card_namespaceObject = require("@radix-ui/react-hover-card");
|
|
33
33
|
const external_react_namespaceObject = require("react");
|
|
34
34
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
35
|
-
const HoverCard = react_hover_card_namespaceObject.Root
|
|
36
|
-
|
|
35
|
+
const HoverCard = (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_hover_card_namespaceObject.Root, {
|
|
36
|
+
"data-slot": "hover-card",
|
|
37
|
+
...props
|
|
38
|
+
});
|
|
39
|
+
HoverCard.displayName = 'HoverCard';
|
|
40
|
+
const HoverCardTrigger = /*#__PURE__*/ external_react_namespaceObject.forwardRef((props, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_hover_card_namespaceObject.Trigger, {
|
|
41
|
+
ref: ref,
|
|
42
|
+
"data-slot": "hover-card-trigger",
|
|
43
|
+
...props
|
|
44
|
+
}));
|
|
45
|
+
HoverCardTrigger.displayName = react_hover_card_namespaceObject.Trigger.displayName;
|
|
37
46
|
const HoverCardContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, align = 'center', sideOffset = 4, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_hover_card_namespaceObject.Content, {
|
|
38
47
|
ref: ref,
|
|
48
|
+
"data-slot": "hover-card-content",
|
|
39
49
|
align: align,
|
|
40
50
|
sideOffset: sideOffset,
|
|
41
51
|
className: (0, index_cjs_namespaceObject.cn)('z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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 origin-[--radix-hover-card-content-transform-origin]', className),
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
declare const HoverCard:
|
|
4
|
-
|
|
3
|
+
declare const HoverCard: {
|
|
4
|
+
(props: React.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
declare const HoverCardTrigger: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
5
8
|
declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
9
|
export { HoverCard, HoverCardTrigger, HoverCardContent };
|
|
@@ -2,10 +2,20 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Content, Root, Trigger } from "@radix-ui/react-hover-card";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
4
|
import { cn } from "../../lib/index.js";
|
|
5
|
-
const HoverCard = Root
|
|
6
|
-
|
|
5
|
+
const HoverCard = (props)=>/*#__PURE__*/ jsx(Root, {
|
|
6
|
+
"data-slot": "hover-card",
|
|
7
|
+
...props
|
|
8
|
+
});
|
|
9
|
+
HoverCard.displayName = 'HoverCard';
|
|
10
|
+
const HoverCardTrigger = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(Trigger, {
|
|
11
|
+
ref: ref,
|
|
12
|
+
"data-slot": "hover-card-trigger",
|
|
13
|
+
...props
|
|
14
|
+
}));
|
|
15
|
+
HoverCardTrigger.displayName = Trigger.displayName;
|
|
7
16
|
const HoverCardContent = /*#__PURE__*/ forwardRef(({ className, align = 'center', sideOffset = 4, ...props }, ref)=>/*#__PURE__*/ jsx(Content, {
|
|
8
17
|
ref: ref,
|
|
18
|
+
"data-slot": "hover-card-content",
|
|
9
19
|
align: align,
|
|
10
20
|
sideOffset: sideOffset,
|
|
11
21
|
className: cn('z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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 origin-[--radix-hover-card-content-transform-origin]', className),
|