@uipath/apollo-wind 2.36.1 → 2.37.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/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/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 +12 -4
- package/dist/components/ui/file-upload.d.ts +4 -1
- package/dist/components/ui/file-upload.js +13 -5
- 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 +193 -143
- package/dist/components/ui/index.d.ts +5 -0
- package/dist/components/ui/index.js +5 -0
- package/dist/components/ui/input-group.cjs +59 -15
- package/dist/components/ui/input-group.d.ts +5 -1
- package/dist/components/ui/input-group.js +61 -17
- package/dist/components/ui/input.cjs +31 -6
- package/dist/components/ui/input.d.ts +7 -0
- package/dist/components/ui/input.js +33 -8
- 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/lockable-value-field/lockable-value-field.cjs +38 -5
- package/dist/components/ui/lockable-value-field/lockable-value-field.d.ts +1 -1
- package/dist/components/ui/lockable-value-field/lockable-value-field.js +38 -5
- package/dist/components/ui/lockable-value-field/types.d.ts +9 -1
- package/dist/components/ui/multi-select.cjs +5 -1
- package/dist/components/ui/multi-select.d.ts +3 -0
- package/dist/components/ui/multi-select.js +5 -1
- 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 +208 -128
- 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
|
@@ -36,36 +36,42 @@ const external_react_namespaceObject = require("react");
|
|
|
36
36
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
37
37
|
const Card = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
38
38
|
ref: ref,
|
|
39
|
+
"data-slot": "card",
|
|
39
40
|
className: (0, index_cjs_namespaceObject.cn)('rounded-lg border border-border-de-emp bg-card text-card-foreground shadow-sm', className),
|
|
40
41
|
...props
|
|
41
42
|
}));
|
|
42
43
|
Card.displayName = 'Card';
|
|
43
44
|
const CardHeader = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
44
45
|
ref: ref,
|
|
46
|
+
"data-slot": "card-header",
|
|
45
47
|
className: (0, index_cjs_namespaceObject.cn)('flex flex-col space-y-1.5 p-6', className),
|
|
46
48
|
...props
|
|
47
49
|
}));
|
|
48
50
|
CardHeader.displayName = 'CardHeader';
|
|
49
51
|
const CardTitle = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
50
52
|
ref: ref,
|
|
53
|
+
"data-slot": "card-title",
|
|
51
54
|
className: (0, index_cjs_namespaceObject.cn)('text-2xl font-semibold leading-none tracking-tight', className),
|
|
52
55
|
...props
|
|
53
56
|
}));
|
|
54
57
|
CardTitle.displayName = 'CardTitle';
|
|
55
58
|
const CardDescription = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
56
59
|
ref: ref,
|
|
60
|
+
"data-slot": "card-description",
|
|
57
61
|
className: (0, index_cjs_namespaceObject.cn)('text-sm text-muted-foreground', className),
|
|
58
62
|
...props
|
|
59
63
|
}));
|
|
60
64
|
CardDescription.displayName = "CardDescription";
|
|
61
65
|
const CardContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
62
66
|
ref: ref,
|
|
67
|
+
"data-slot": "card-content",
|
|
63
68
|
className: (0, index_cjs_namespaceObject.cn)('p-6 pt-0', className),
|
|
64
69
|
...props
|
|
65
70
|
}));
|
|
66
71
|
CardContent.displayName = 'CardContent';
|
|
67
72
|
const CardFooter = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
68
73
|
ref: ref,
|
|
74
|
+
"data-slot": "card-footer",
|
|
69
75
|
className: (0, index_cjs_namespaceObject.cn)('flex items-center p-6 pt-0', className),
|
|
70
76
|
...props
|
|
71
77
|
}));
|
|
@@ -3,36 +3,42 @@ import { forwardRef } from "react";
|
|
|
3
3
|
import { cn } from "../../lib/index.js";
|
|
4
4
|
const Card = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("div", {
|
|
5
5
|
ref: ref,
|
|
6
|
+
"data-slot": "card",
|
|
6
7
|
className: cn('rounded-lg border border-border-de-emp bg-card text-card-foreground shadow-sm', className),
|
|
7
8
|
...props
|
|
8
9
|
}));
|
|
9
10
|
Card.displayName = 'Card';
|
|
10
11
|
const CardHeader = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("div", {
|
|
11
12
|
ref: ref,
|
|
13
|
+
"data-slot": "card-header",
|
|
12
14
|
className: cn('flex flex-col space-y-1.5 p-6', className),
|
|
13
15
|
...props
|
|
14
16
|
}));
|
|
15
17
|
CardHeader.displayName = 'CardHeader';
|
|
16
18
|
const CardTitle = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("div", {
|
|
17
19
|
ref: ref,
|
|
20
|
+
"data-slot": "card-title",
|
|
18
21
|
className: cn('text-2xl font-semibold leading-none tracking-tight', className),
|
|
19
22
|
...props
|
|
20
23
|
}));
|
|
21
24
|
CardTitle.displayName = 'CardTitle';
|
|
22
25
|
const CardDescription = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("div", {
|
|
23
26
|
ref: ref,
|
|
27
|
+
"data-slot": "card-description",
|
|
24
28
|
className: cn('text-sm text-muted-foreground', className),
|
|
25
29
|
...props
|
|
26
30
|
}));
|
|
27
31
|
CardDescription.displayName = "CardDescription";
|
|
28
32
|
const CardContent = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("div", {
|
|
29
33
|
ref: ref,
|
|
34
|
+
"data-slot": "card-content",
|
|
30
35
|
className: cn('p-6 pt-0', className),
|
|
31
36
|
...props
|
|
32
37
|
}));
|
|
33
38
|
CardContent.displayName = 'CardContent';
|
|
34
39
|
const CardFooter = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("div", {
|
|
35
40
|
ref: ref,
|
|
41
|
+
"data-slot": "card-footer",
|
|
36
42
|
className: cn('flex items-center p-6 pt-0', className),
|
|
37
43
|
...props
|
|
38
44
|
}));
|
|
@@ -33,6 +33,7 @@ const external_react_namespaceObject = require("react");
|
|
|
33
33
|
const utils_cjs_namespaceObject = require("../../lib/utils.cjs");
|
|
34
34
|
const Checkbox = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_checkbox_namespaceObject.Root, {
|
|
35
35
|
ref: ref,
|
|
36
|
+
"data-slot": "checkbox",
|
|
36
37
|
className: (0, utils_cjs_namespaceObject.cn)('peer h-4 w-4 shrink-0 cursor-pointer rounded-sm border border-border ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground', 'future:hover:border-border-hover future:data-[state=checked]:border-foreground-accent future:data-[state=checked]:bg-foreground-accent future:data-[state=checked]:text-current', className),
|
|
37
38
|
...props,
|
|
38
39
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_checkbox_namespaceObject.Indicator, {
|
|
@@ -5,6 +5,7 @@ import { forwardRef } from "react";
|
|
|
5
5
|
import { cn } from "../../lib/utils.js";
|
|
6
6
|
const Checkbox = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Root, {
|
|
7
7
|
ref: ref,
|
|
8
|
+
"data-slot": "checkbox",
|
|
8
9
|
className: cn('peer h-4 w-4 shrink-0 cursor-pointer rounded-sm border border-border ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground', 'future:hover:border-border-hover future:data-[state=checked]:border-foreground-accent future:data-[state=checked]:bg-foreground-accent future:data-[state=checked]:text-current', className),
|
|
9
10
|
...props,
|
|
10
11
|
children: /*#__PURE__*/ jsx(Indicator, {
|
|
@@ -28,10 +28,27 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
CollapsibleContent: ()=>CollapsibleContent,
|
|
29
29
|
CollapsibleTrigger: ()=>CollapsibleTrigger
|
|
30
30
|
});
|
|
31
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
32
|
const react_collapsible_namespaceObject = require("@radix-ui/react-collapsible");
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
|
|
33
|
+
const external_react_namespaceObject = require("react");
|
|
34
|
+
const Collapsible = /*#__PURE__*/ external_react_namespaceObject.forwardRef((props, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_collapsible_namespaceObject.Root, {
|
|
35
|
+
ref: ref,
|
|
36
|
+
"data-slot": "collapsible",
|
|
37
|
+
...props
|
|
38
|
+
}));
|
|
39
|
+
Collapsible.displayName = 'Collapsible';
|
|
40
|
+
const CollapsibleTrigger = /*#__PURE__*/ external_react_namespaceObject.forwardRef((props, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_collapsible_namespaceObject.CollapsibleTrigger, {
|
|
41
|
+
ref: ref,
|
|
42
|
+
"data-slot": "collapsible-trigger",
|
|
43
|
+
...props
|
|
44
|
+
}));
|
|
45
|
+
CollapsibleTrigger.displayName = 'CollapsibleTrigger';
|
|
46
|
+
const CollapsibleContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef((props, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_collapsible_namespaceObject.CollapsibleContent, {
|
|
47
|
+
ref: ref,
|
|
48
|
+
"data-slot": "collapsible-content",
|
|
49
|
+
...props
|
|
50
|
+
}));
|
|
51
|
+
CollapsibleContent.displayName = 'CollapsibleContent';
|
|
35
52
|
exports.Collapsible = __webpack_exports__.Collapsible;
|
|
36
53
|
exports.CollapsibleContent = __webpack_exports__.CollapsibleContent;
|
|
37
54
|
exports.CollapsibleTrigger = __webpack_exports__.CollapsibleTrigger;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
2
|
-
|
|
3
|
-
declare const
|
|
4
|
-
declare const
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const Collapsible: React.ForwardRefExoticComponent<Omit<CollapsiblePrimitive.CollapsibleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const CollapsibleTrigger: React.ForwardRefExoticComponent<Omit<CollapsiblePrimitive.CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const CollapsibleContent: React.ForwardRefExoticComponent<Omit<CollapsiblePrimitive.CollapsibleContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
6
|
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
@@ -1,5 +1,22 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
1
2
|
import { CollapsibleContent, CollapsibleTrigger, Root } from "@radix-ui/react-collapsible";
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
const Collapsible = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(Root, {
|
|
5
|
+
ref: ref,
|
|
6
|
+
"data-slot": "collapsible",
|
|
7
|
+
...props
|
|
8
|
+
}));
|
|
9
|
+
Collapsible.displayName = 'Collapsible';
|
|
10
|
+
const collapsible_CollapsibleTrigger = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(CollapsibleTrigger, {
|
|
11
|
+
ref: ref,
|
|
12
|
+
"data-slot": "collapsible-trigger",
|
|
13
|
+
...props
|
|
14
|
+
}));
|
|
15
|
+
collapsible_CollapsibleTrigger.displayName = 'CollapsibleTrigger';
|
|
16
|
+
const collapsible_CollapsibleContent = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(CollapsibleContent, {
|
|
17
|
+
ref: ref,
|
|
18
|
+
"data-slot": "collapsible-content",
|
|
19
|
+
...props
|
|
20
|
+
}));
|
|
21
|
+
collapsible_CollapsibleContent.displayName = 'CollapsibleContent';
|
|
5
22
|
export { Collapsible, collapsible_CollapsibleContent as CollapsibleContent, collapsible_CollapsibleTrigger as CollapsibleTrigger };
|
|
@@ -25,7 +25,7 @@ var __webpack_require__ = {};
|
|
|
25
25
|
var __webpack_exports__ = {};
|
|
26
26
|
__webpack_require__.r(__webpack_exports__);
|
|
27
27
|
__webpack_require__.d(__webpack_exports__, {
|
|
28
|
-
Combobox: ()=>
|
|
28
|
+
Combobox: ()=>combobox_Combobox
|
|
29
29
|
});
|
|
30
30
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
31
|
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
@@ -34,16 +34,18 @@ const external_button_cjs_namespaceObject = require("./button.cjs");
|
|
|
34
34
|
const external_command_cjs_namespaceObject = require("./command.cjs");
|
|
35
35
|
const external_popover_cjs_namespaceObject = require("./popover.cjs");
|
|
36
36
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
37
|
-
|
|
37
|
+
const combobox_Combobox = /*#__PURE__*/ external_react_namespaceObject.forwardRef(function({ items, value, onValueChange, placeholder = 'Select an option...', searchPlaceholder = 'Search...', emptyText = 'No results found.', disabled, className }, ref) {
|
|
38
38
|
const [open, setOpen] = external_react_namespaceObject.useState(false);
|
|
39
39
|
const selectedItem = items.find((item)=>item.value === value);
|
|
40
40
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_popover_cjs_namespaceObject.Popover, {
|
|
41
|
+
"data-slot": "combobox",
|
|
41
42
|
open: open,
|
|
42
43
|
onOpenChange: setOpen,
|
|
43
44
|
children: [
|
|
44
45
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverTrigger, {
|
|
45
46
|
asChild: true,
|
|
46
47
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button, {
|
|
48
|
+
ref: ref,
|
|
47
49
|
variant: "outline",
|
|
48
50
|
role: "combobox",
|
|
49
51
|
"aria-expanded": open,
|
|
@@ -92,7 +94,7 @@ function Combobox({ items, value, onValueChange, placeholder = 'Select an option
|
|
|
92
94
|
})
|
|
93
95
|
]
|
|
94
96
|
});
|
|
95
|
-
}
|
|
97
|
+
});
|
|
96
98
|
exports.Combobox = __webpack_exports__.Combobox;
|
|
97
99
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
98
100
|
"Combobox"
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
export interface ComboboxItem {
|
|
2
3
|
value: string;
|
|
3
4
|
label: string;
|
|
@@ -12,4 +13,4 @@ export interface ComboboxProps {
|
|
|
12
13
|
disabled?: boolean;
|
|
13
14
|
className?: string;
|
|
14
15
|
}
|
|
15
|
-
export declare
|
|
16
|
+
export declare const Combobox: React.ForwardRefExoticComponent<ComboboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Check, ChevronsUpDown } from "lucide-react";
|
|
4
|
-
import { useState } from "react";
|
|
4
|
+
import { forwardRef, useState } from "react";
|
|
5
5
|
import { Button } from "./button.js";
|
|
6
6
|
import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from "./command.js";
|
|
7
7
|
import { Popover, PopoverContent, PopoverTrigger } from "./popover.js";
|
|
8
8
|
import { cn } from "../../lib/index.js";
|
|
9
|
-
|
|
9
|
+
const combobox_Combobox = /*#__PURE__*/ forwardRef(function({ items, value, onValueChange, placeholder = 'Select an option...', searchPlaceholder = 'Search...', emptyText = 'No results found.', disabled, className }, ref) {
|
|
10
10
|
const [open, setOpen] = useState(false);
|
|
11
11
|
const selectedItem = items.find((item)=>item.value === value);
|
|
12
12
|
return /*#__PURE__*/ jsxs(Popover, {
|
|
13
|
+
"data-slot": "combobox",
|
|
13
14
|
open: open,
|
|
14
15
|
onOpenChange: setOpen,
|
|
15
16
|
children: [
|
|
16
17
|
/*#__PURE__*/ jsx(PopoverTrigger, {
|
|
17
18
|
asChild: true,
|
|
18
19
|
children: /*#__PURE__*/ jsxs(Button, {
|
|
20
|
+
ref: ref,
|
|
19
21
|
variant: "outline",
|
|
20
22
|
role: "combobox",
|
|
21
23
|
"aria-expanded": open,
|
|
@@ -64,5 +66,5 @@ function Combobox({ items, value, onValueChange, placeholder = 'Select an option
|
|
|
64
66
|
})
|
|
65
67
|
]
|
|
66
68
|
});
|
|
67
|
-
}
|
|
68
|
-
export { Combobox };
|
|
69
|
+
});
|
|
70
|
+
export { combobox_Combobox as Combobox };
|
|
@@ -42,11 +42,13 @@ const external_dialog_cjs_namespaceObject = require("./dialog.cjs");
|
|
|
42
42
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
43
43
|
const Command = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command, {
|
|
44
44
|
ref: ref,
|
|
45
|
+
"data-slot": "command",
|
|
45
46
|
className: (0, index_cjs_namespaceObject.cn)('flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground', className),
|
|
46
47
|
...props
|
|
47
48
|
}));
|
|
48
49
|
Command.displayName = external_cmdk_namespaceObject.Command.displayName;
|
|
49
50
|
const CommandDialog = ({ children, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_dialog_cjs_namespaceObject.Dialog, {
|
|
51
|
+
"data-slot": "command-dialog",
|
|
50
52
|
...props,
|
|
51
53
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_dialog_cjs_namespaceObject.DialogContent, {
|
|
52
54
|
className: "overflow-hidden p-0 shadow-lg",
|
|
@@ -65,6 +67,7 @@ const CommandInput = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({
|
|
|
65
67
|
}),
|
|
66
68
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Input, {
|
|
67
69
|
ref: ref,
|
|
70
|
+
"data-slot": "command-input",
|
|
68
71
|
className: (0, index_cjs_namespaceObject.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),
|
|
69
72
|
...props
|
|
70
73
|
})
|
|
@@ -73,35 +76,41 @@ const CommandInput = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({
|
|
|
73
76
|
CommandInput.displayName = external_cmdk_namespaceObject.Command.Input.displayName;
|
|
74
77
|
const CommandList = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.List, {
|
|
75
78
|
ref: ref,
|
|
79
|
+
"data-slot": "command-list",
|
|
76
80
|
className: (0, index_cjs_namespaceObject.cn)('max-h-[300px] overflow-y-auto overflow-x-hidden', className),
|
|
77
81
|
...props
|
|
78
82
|
}));
|
|
79
83
|
CommandList.displayName = external_cmdk_namespaceObject.Command.List.displayName;
|
|
80
84
|
const CommandEmpty = /*#__PURE__*/ external_react_namespaceObject.forwardRef((props, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Empty, {
|
|
81
85
|
ref: ref,
|
|
86
|
+
"data-slot": "command-empty",
|
|
82
87
|
className: "py-6 text-center text-sm",
|
|
83
88
|
...props
|
|
84
89
|
}));
|
|
85
90
|
CommandEmpty.displayName = external_cmdk_namespaceObject.Command.Empty.displayName;
|
|
86
91
|
const CommandGroup = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Group, {
|
|
87
92
|
ref: ref,
|
|
93
|
+
"data-slot": "command-group",
|
|
88
94
|
className: (0, index_cjs_namespaceObject.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),
|
|
89
95
|
...props
|
|
90
96
|
}));
|
|
91
97
|
CommandGroup.displayName = external_cmdk_namespaceObject.Command.Group.displayName;
|
|
92
98
|
const CommandSeparator = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Separator, {
|
|
93
99
|
ref: ref,
|
|
100
|
+
"data-slot": "command-separator",
|
|
94
101
|
className: (0, index_cjs_namespaceObject.cn)('-mx-1 h-px bg-border', className),
|
|
95
102
|
...props
|
|
96
103
|
}));
|
|
97
104
|
CommandSeparator.displayName = external_cmdk_namespaceObject.Command.Separator.displayName;
|
|
98
105
|
const CommandItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Item, {
|
|
99
106
|
ref: ref,
|
|
107
|
+
"data-slot": "command-item",
|
|
100
108
|
className: (0, index_cjs_namespaceObject.cn)("relative flex cursor-default gap-2 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 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", className),
|
|
101
109
|
...props
|
|
102
110
|
}));
|
|
103
111
|
CommandItem.displayName = external_cmdk_namespaceObject.Command.Item.displayName;
|
|
104
112
|
const CommandShortcut = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
113
|
+
"data-slot": "command-shortcut",
|
|
105
114
|
className: (0, index_cjs_namespaceObject.cn)('ml-auto text-xs tracking-widest text-muted-foreground', className),
|
|
106
115
|
...props
|
|
107
116
|
});
|
|
@@ -6,11 +6,13 @@ import { Dialog, DialogContent } from "./dialog.js";
|
|
|
6
6
|
import { cn } from "../../lib/index.js";
|
|
7
7
|
const command_Command = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Command, {
|
|
8
8
|
ref: ref,
|
|
9
|
+
"data-slot": "command",
|
|
9
10
|
className: cn('flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground', className),
|
|
10
11
|
...props
|
|
11
12
|
}));
|
|
12
13
|
command_Command.displayName = Command.displayName;
|
|
13
14
|
const CommandDialog = ({ children, ...props })=>/*#__PURE__*/ jsx(Dialog, {
|
|
15
|
+
"data-slot": "command-dialog",
|
|
14
16
|
...props,
|
|
15
17
|
children: /*#__PURE__*/ jsx(DialogContent, {
|
|
16
18
|
className: "overflow-hidden p-0 shadow-lg",
|
|
@@ -29,6 +31,7 @@ const CommandInput = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*
|
|
|
29
31
|
}),
|
|
30
32
|
/*#__PURE__*/ jsx(Command.Input, {
|
|
31
33
|
ref: ref,
|
|
34
|
+
"data-slot": "command-input",
|
|
32
35
|
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
36
|
...props
|
|
34
37
|
})
|
|
@@ -37,35 +40,41 @@ const CommandInput = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*
|
|
|
37
40
|
CommandInput.displayName = Command.Input.displayName;
|
|
38
41
|
const CommandList = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Command.List, {
|
|
39
42
|
ref: ref,
|
|
43
|
+
"data-slot": "command-list",
|
|
40
44
|
className: cn('max-h-[300px] overflow-y-auto overflow-x-hidden', className),
|
|
41
45
|
...props
|
|
42
46
|
}));
|
|
43
47
|
CommandList.displayName = Command.List.displayName;
|
|
44
48
|
const CommandEmpty = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(Command.Empty, {
|
|
45
49
|
ref: ref,
|
|
50
|
+
"data-slot": "command-empty",
|
|
46
51
|
className: "py-6 text-center text-sm",
|
|
47
52
|
...props
|
|
48
53
|
}));
|
|
49
54
|
CommandEmpty.displayName = Command.Empty.displayName;
|
|
50
55
|
const CommandGroup = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Command.Group, {
|
|
51
56
|
ref: ref,
|
|
57
|
+
"data-slot": "command-group",
|
|
52
58
|
className: cn('overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground', className),
|
|
53
59
|
...props
|
|
54
60
|
}));
|
|
55
61
|
CommandGroup.displayName = Command.Group.displayName;
|
|
56
62
|
const CommandSeparator = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Command.Separator, {
|
|
57
63
|
ref: ref,
|
|
64
|
+
"data-slot": "command-separator",
|
|
58
65
|
className: cn('-mx-1 h-px bg-border', className),
|
|
59
66
|
...props
|
|
60
67
|
}));
|
|
61
68
|
CommandSeparator.displayName = Command.Separator.displayName;
|
|
62
69
|
const CommandItem = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Command.Item, {
|
|
63
70
|
ref: ref,
|
|
71
|
+
"data-slot": "command-item",
|
|
64
72
|
className: cn("relative flex cursor-default gap-2 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 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", className),
|
|
65
73
|
...props
|
|
66
74
|
}));
|
|
67
75
|
CommandItem.displayName = Command.Item.displayName;
|
|
68
76
|
const CommandShortcut = ({ className, ...props })=>/*#__PURE__*/ jsx("span", {
|
|
77
|
+
"data-slot": "command-shortcut",
|
|
69
78
|
className: cn('ml-auto text-xs tracking-widest text-muted-foreground', className),
|
|
70
79
|
...props
|
|
71
80
|
});
|
|
@@ -46,14 +46,42 @@ const react_context_menu_namespaceObject = require("@radix-ui/react-context-menu
|
|
|
46
46
|
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
47
47
|
const external_react_namespaceObject = require("react");
|
|
48
48
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
49
|
-
const ContextMenu = react_context_menu_namespaceObject.Root
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
const
|
|
49
|
+
const ContextMenu = (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Root, {
|
|
50
|
+
"data-slot": "context-menu",
|
|
51
|
+
...props
|
|
52
|
+
});
|
|
53
|
+
ContextMenu.displayName = 'ContextMenu';
|
|
54
|
+
const ContextMenuTrigger = /*#__PURE__*/ external_react_namespaceObject.forwardRef((props, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Trigger, {
|
|
55
|
+
ref: ref,
|
|
56
|
+
"data-slot": "context-menu-trigger",
|
|
57
|
+
...props
|
|
58
|
+
}));
|
|
59
|
+
ContextMenuTrigger.displayName = react_context_menu_namespaceObject.Trigger.displayName;
|
|
60
|
+
const ContextMenuGroup = /*#__PURE__*/ external_react_namespaceObject.forwardRef((props, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Group, {
|
|
61
|
+
ref: ref,
|
|
62
|
+
"data-slot": "context-menu-group",
|
|
63
|
+
...props
|
|
64
|
+
}));
|
|
65
|
+
ContextMenuGroup.displayName = react_context_menu_namespaceObject.Group.displayName;
|
|
66
|
+
const ContextMenuPortal = (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Portal, {
|
|
67
|
+
"data-slot": "context-menu-portal",
|
|
68
|
+
...props
|
|
69
|
+
});
|
|
70
|
+
ContextMenuPortal.displayName = 'ContextMenuPortal';
|
|
71
|
+
const ContextMenuSub = (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Sub, {
|
|
72
|
+
"data-slot": "context-menu-sub",
|
|
73
|
+
...props
|
|
74
|
+
});
|
|
75
|
+
ContextMenuSub.displayName = 'ContextMenuSub';
|
|
76
|
+
const ContextMenuRadioGroup = /*#__PURE__*/ external_react_namespaceObject.forwardRef((props, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.RadioGroup, {
|
|
77
|
+
ref: ref,
|
|
78
|
+
"data-slot": "context-menu-radio-group",
|
|
79
|
+
...props
|
|
80
|
+
}));
|
|
81
|
+
ContextMenuRadioGroup.displayName = react_context_menu_namespaceObject.RadioGroup.displayName;
|
|
55
82
|
const ContextMenuSubTrigger = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, inset, children, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_context_menu_namespaceObject.SubTrigger, {
|
|
56
83
|
ref: ref,
|
|
84
|
+
"data-slot": "context-menu-sub-trigger",
|
|
57
85
|
className: (0, index_cjs_namespaceObject.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),
|
|
58
86
|
...props,
|
|
59
87
|
children: [
|
|
@@ -66,6 +94,7 @@ const ContextMenuSubTrigger = /*#__PURE__*/ external_react_namespaceObject.forwa
|
|
|
66
94
|
ContextMenuSubTrigger.displayName = react_context_menu_namespaceObject.SubTrigger.displayName;
|
|
67
95
|
const ContextMenuSubContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.SubContent, {
|
|
68
96
|
ref: ref,
|
|
97
|
+
"data-slot": "context-menu-sub-content",
|
|
69
98
|
className: (0, index_cjs_namespaceObject.cn)('z-50 min-w-[8rem] overflow-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-context-menu-content-transform-origin]', className),
|
|
70
99
|
...props
|
|
71
100
|
}));
|
|
@@ -73,6 +102,7 @@ ContextMenuSubContent.displayName = react_context_menu_namespaceObject.SubConten
|
|
|
73
102
|
const ContextMenuContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Portal, {
|
|
74
103
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Content, {
|
|
75
104
|
ref: ref,
|
|
105
|
+
"data-slot": "context-menu-content",
|
|
76
106
|
className: (0, index_cjs_namespaceObject.cn)('z-50 max-h-[--radix-context-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 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 origin-[--radix-context-menu-content-transform-origin]', className),
|
|
77
107
|
...props
|
|
78
108
|
})
|
|
@@ -80,12 +110,14 @@ const ContextMenuContent = /*#__PURE__*/ external_react_namespaceObject.forwardR
|
|
|
80
110
|
ContextMenuContent.displayName = react_context_menu_namespaceObject.Content.displayName;
|
|
81
111
|
const ContextMenuItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, inset, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Item, {
|
|
82
112
|
ref: ref,
|
|
113
|
+
"data-slot": "context-menu-item",
|
|
83
114
|
className: (0, index_cjs_namespaceObject.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),
|
|
84
115
|
...props
|
|
85
116
|
}));
|
|
86
117
|
ContextMenuItem.displayName = react_context_menu_namespaceObject.Item.displayName;
|
|
87
118
|
const ContextMenuCheckboxItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, children, checked, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_context_menu_namespaceObject.CheckboxItem, {
|
|
88
119
|
ref: ref,
|
|
120
|
+
"data-slot": "context-menu-checkbox-item",
|
|
89
121
|
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 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className),
|
|
90
122
|
checked: checked,
|
|
91
123
|
...props,
|
|
@@ -104,6 +136,7 @@ const ContextMenuCheckboxItem = /*#__PURE__*/ external_react_namespaceObject.for
|
|
|
104
136
|
ContextMenuCheckboxItem.displayName = react_context_menu_namespaceObject.CheckboxItem.displayName;
|
|
105
137
|
const ContextMenuRadioItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, children, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_context_menu_namespaceObject.RadioItem, {
|
|
106
138
|
ref: ref,
|
|
139
|
+
"data-slot": "context-menu-radio-item",
|
|
107
140
|
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 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className),
|
|
108
141
|
...props,
|
|
109
142
|
children: [
|
|
@@ -121,17 +154,20 @@ const ContextMenuRadioItem = /*#__PURE__*/ external_react_namespaceObject.forwar
|
|
|
121
154
|
ContextMenuRadioItem.displayName = react_context_menu_namespaceObject.RadioItem.displayName;
|
|
122
155
|
const ContextMenuLabel = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, inset, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Label, {
|
|
123
156
|
ref: ref,
|
|
157
|
+
"data-slot": "context-menu-label",
|
|
124
158
|
className: (0, index_cjs_namespaceObject.cn)('px-2 py-1.5 text-sm font-semibold text-foreground', inset && 'pl-8', className),
|
|
125
159
|
...props
|
|
126
160
|
}));
|
|
127
161
|
ContextMenuLabel.displayName = react_context_menu_namespaceObject.Label.displayName;
|
|
128
162
|
const ContextMenuSeparator = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Separator, {
|
|
129
163
|
ref: ref,
|
|
164
|
+
"data-slot": "context-menu-separator",
|
|
130
165
|
className: (0, index_cjs_namespaceObject.cn)('-mx-1 my-1 h-px bg-border', className),
|
|
131
166
|
...props
|
|
132
167
|
}));
|
|
133
168
|
ContextMenuSeparator.displayName = react_context_menu_namespaceObject.Separator.displayName;
|
|
134
169
|
const ContextMenuShortcut = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
170
|
+
"data-slot": "context-menu-shortcut",
|
|
135
171
|
className: (0, index_cjs_namespaceObject.cn)('ml-auto text-xs tracking-widest text-muted-foreground', className),
|
|
136
172
|
...props
|
|
137
173
|
});
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
declare const ContextMenu:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
declare const
|
|
8
|
-
declare const
|
|
3
|
+
declare const ContextMenu: {
|
|
4
|
+
(props: React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
declare const ContextMenuTrigger: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuTriggerProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
8
|
+
declare const ContextMenuGroup: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const ContextMenuPortal: {
|
|
10
|
+
(props: React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
declare const ContextMenuSub: {
|
|
14
|
+
(props: React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
declare const ContextMenuRadioGroup: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
18
|
declare const ContextMenuSubTrigger: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
10
19
|
inset?: boolean;
|
|
11
20
|
} & React.RefAttributes<HTMLDivElement>>;
|