@uipath/apollo-wind 0.7.2-pr188.4865fad
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/LICENSE +21 -0
- package/README.md +188 -0
- package/dist/components/forms/data-fetcher.cjs +250 -0
- package/dist/components/forms/data-fetcher.d.ts +173 -0
- package/dist/components/forms/data-fetcher.js +207 -0
- package/dist/components/forms/demo-mocks.cjs +1031 -0
- package/dist/components/forms/demo-mocks.d.ts +10 -0
- package/dist/components/forms/demo-mocks.js +997 -0
- package/dist/components/forms/field-renderer.cjs +595 -0
- package/dist/components/forms/field-renderer.d.ts +14 -0
- package/dist/components/forms/field-renderer.js +561 -0
- package/dist/components/forms/form-designer.cjs +2314 -0
- package/dist/components/forms/form-designer.d.ts +1 -0
- package/dist/components/forms/form-designer.js +2280 -0
- package/dist/components/forms/form-examples.cjs +962 -0
- package/dist/components/forms/form-examples.d.ts +46 -0
- package/dist/components/forms/form-examples.js +907 -0
- package/dist/components/forms/form-plugins.cjs +225 -0
- package/dist/components/forms/form-plugins.d.ts +11 -0
- package/dist/components/forms/form-plugins.js +176 -0
- package/dist/components/forms/form-schema.cjs +56 -0
- package/dist/components/forms/form-schema.d.ts +324 -0
- package/dist/components/forms/form-schema.js +13 -0
- package/dist/components/forms/form-state-viewer.cjs +498 -0
- package/dist/components/forms/form-state-viewer.d.ts +15 -0
- package/dist/components/forms/form-state-viewer.js +464 -0
- package/dist/components/forms/index.cjs +103 -0
- package/dist/components/forms/index.d.ts +13 -0
- package/dist/components/forms/index.js +9 -0
- package/dist/components/forms/metadata-form.cjs +400 -0
- package/dist/components/forms/metadata-form.d.ts +16 -0
- package/dist/components/forms/metadata-form.js +366 -0
- package/dist/components/forms/rules-engine.cjs +343 -0
- package/dist/components/forms/rules-engine.d.ts +99 -0
- package/dist/components/forms/rules-engine.js +293 -0
- package/dist/components/forms/schema-serializer.cjs +250 -0
- package/dist/components/forms/schema-serializer.d.ts +27 -0
- package/dist/components/forms/schema-serializer.js +213 -0
- package/dist/components/forms/schema-viewer.cjs +157 -0
- package/dist/components/forms/schema-viewer.d.ts +29 -0
- package/dist/components/forms/schema-viewer.js +117 -0
- package/dist/components/forms/validation-converter.cjs +154 -0
- package/dist/components/forms/validation-converter.d.ts +42 -0
- package/dist/components/forms/validation-converter.js +114 -0
- package/dist/components/ui/accordion.cjs +82 -0
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/accordion.js +39 -0
- package/dist/components/ui/alert-dialog.cjs +126 -0
- package/dist/components/ui/alert-dialog.d.ts +20 -0
- package/dist/components/ui/alert-dialog.js +62 -0
- package/dist/components/ui/alert.cjs +77 -0
- package/dist/components/ui/alert.d.ts +8 -0
- package/dist/components/ui/alert.js +37 -0
- package/dist/components/ui/aspect-ratio.cjs +38 -0
- package/dist/components/ui/aspect-ratio.d.ts +3 -0
- package/dist/components/ui/aspect-ratio.js +4 -0
- package/dist/components/ui/avatar.cjs +63 -0
- package/dist/components/ui/avatar.d.ts +6 -0
- package/dist/components/ui/avatar.js +23 -0
- package/dist/components/ui/badge.cjs +63 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/badge.js +26 -0
- package/dist/components/ui/breadcrumb.cjs +118 -0
- package/dist/components/ui/breadcrumb.d.ts +19 -0
- package/dist/components/ui/breadcrumb.js +66 -0
- package/dist/components/ui/button-group.cjs +68 -0
- package/dist/components/ui/button-group.d.ts +14 -0
- package/dist/components/ui/button-group.js +28 -0
- package/dist/components/ui/button.cjs +78 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/button.js +41 -0
- package/dist/components/ui/calendar.cjs +144 -0
- package/dist/components/ui/calendar.d.ts +8 -0
- package/dist/components/ui/calendar.js +107 -0
- package/dist/components/ui/card.cjs +89 -0
- package/dist/components/ui/card.d.ts +8 -0
- package/dist/components/ui/card.js +40 -0
- package/dist/components/ui/checkbox.cjs +52 -0
- package/dist/components/ui/checkbox.d.ts +6 -0
- package/dist/components/ui/checkbox.js +18 -0
- package/dist/components/ui/collapsible.cjs +45 -0
- package/dist/components/ui/collapsible.d.ts +5 -0
- package/dist/components/ui/collapsible.js +5 -0
- package/dist/components/ui/combobox.cjs +102 -0
- package/dist/components/ui/combobox.d.ts +15 -0
- package/dist/components/ui/combobox.js +68 -0
- package/dist/components/ui/command.cjs +131 -0
- package/dist/components/ui/command.d.ts +80 -0
- package/dist/components/ui/command.js +73 -0
- package/dist/components/ui/context-menu.cjs +173 -0
- package/dist/components/ui/context-menu.d.ts +27 -0
- package/dist/components/ui/context-menu.js +97 -0
- package/dist/components/ui/data-table.cjs +292 -0
- package/dist/components/ui/data-table.d.ts +23 -0
- package/dist/components/ui/data-table.js +252 -0
- package/dist/components/ui/date-picker.cjs +118 -0
- package/dist/components/ui/date-picker.d.ts +21 -0
- package/dist/components/ui/date-picker.js +81 -0
- package/dist/components/ui/datetime-picker.cjs +154 -0
- package/dist/components/ui/datetime-picker.d.ts +9 -0
- package/dist/components/ui/datetime-picker.js +120 -0
- package/dist/components/ui/dialog.cjs +159 -0
- package/dist/components/ui/dialog.d.ts +15 -0
- package/dist/components/ui/dialog.js +98 -0
- package/dist/components/ui/drawer.cjs +116 -0
- package/dist/components/ui/drawer.d.ts +18 -0
- package/dist/components/ui/drawer.js +55 -0
- package/dist/components/ui/dropdown-menu.cjs +174 -0
- package/dist/components/ui/dropdown-menu.d.ts +27 -0
- package/dist/components/ui/dropdown-menu.js +98 -0
- package/dist/components/ui/editable-cell.cjs +256 -0
- package/dist/components/ui/editable-cell.d.ts +24 -0
- package/dist/components/ui/editable-cell.js +219 -0
- package/dist/components/ui/empty-state.cjs +73 -0
- package/dist/components/ui/empty-state.d.ts +16 -0
- package/dist/components/ui/empty-state.js +39 -0
- package/dist/components/ui/file-upload.cjs +236 -0
- package/dist/components/ui/file-upload.d.ts +10 -0
- package/dist/components/ui/file-upload.js +202 -0
- package/dist/components/ui/hover-card.cjs +55 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/hover-card.js +15 -0
- package/dist/components/ui/index.cjs +546 -0
- package/dist/components/ui/index.d.ts +55 -0
- package/dist/components/ui/index.js +55 -0
- package/dist/components/ui/input.cjs +45 -0
- package/dist/components/ui/input.d.ts +5 -0
- package/dist/components/ui/input.js +11 -0
- package/dist/components/ui/label.cjs +47 -0
- package/dist/components/ui/label.d.ts +7 -0
- package/dist/components/ui/label.js +13 -0
- package/dist/components/ui/layout/column.cjs +84 -0
- package/dist/components/ui/layout/column.d.ts +21 -0
- package/dist/components/ui/layout/column.js +50 -0
- package/dist/components/ui/layout/grid.cjs +101 -0
- package/dist/components/ui/layout/grid.d.ts +22 -0
- package/dist/components/ui/layout/grid.js +67 -0
- package/dist/components/ui/layout/index.cjs +44 -0
- package/dist/components/ui/layout/index.d.ts +7 -0
- package/dist/components/ui/layout/index.js +4 -0
- package/dist/components/ui/layout/row.cjs +84 -0
- package/dist/components/ui/layout/row.d.ts +21 -0
- package/dist/components/ui/layout/row.js +50 -0
- package/dist/components/ui/layout/types.cjs +18 -0
- package/dist/components/ui/layout/types.d.ts +149 -0
- package/dist/components/ui/layout/types.js +0 -0
- package/dist/components/ui/layout/utils.cjs +324 -0
- package/dist/components/ui/layout/utils.d.ts +76 -0
- package/dist/components/ui/layout/utils.js +239 -0
- package/dist/components/ui/menubar.cjs +210 -0
- package/dist/components/ui/menubar.d.ts +28 -0
- package/dist/components/ui/menubar.js +131 -0
- package/dist/components/ui/multi-select.cjs +187 -0
- package/dist/components/ui/multi-select.d.ts +18 -0
- package/dist/components/ui/multi-select.js +153 -0
- package/dist/components/ui/navigation-menu.cjs +122 -0
- package/dist/components/ui/navigation-menu.d.ts +12 -0
- package/dist/components/ui/navigation-menu.js +64 -0
- package/dist/components/ui/pagination.cjs +131 -0
- package/dist/components/ui/pagination.d.ts +28 -0
- package/dist/components/ui/pagination.js +79 -0
- package/dist/components/ui/popover.cjs +61 -0
- package/dist/components/ui/popover.d.ts +7 -0
- package/dist/components/ui/popover.js +18 -0
- package/dist/components/ui/progress.cjs +51 -0
- package/dist/components/ui/progress.d.ts +4 -0
- package/dist/components/ui/progress.js +17 -0
- package/dist/components/ui/radio-group.cjs +61 -0
- package/dist/components/ui/radio-group.d.ts +5 -0
- package/dist/components/ui/radio-group.js +24 -0
- package/dist/components/ui/resizable.cjs +60 -0
- package/dist/components/ui/resizable.d.ts +23 -0
- package/dist/components/ui/resizable.js +20 -0
- package/dist/components/ui/scroll-area.cjs +67 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/scroll-area.js +30 -0
- package/dist/components/ui/search.cjs +153 -0
- package/dist/components/ui/search.d.ts +19 -0
- package/dist/components/ui/search.js +116 -0
- package/dist/components/ui/select.cjs +151 -0
- package/dist/components/ui/select.d.ts +13 -0
- package/dist/components/ui/select.js +90 -0
- package/dist/components/ui/separator.cjs +47 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/separator.js +13 -0
- package/dist/components/ui/sheet.cjs +142 -0
- package/dist/components/ui/sheet.d.ts +25 -0
- package/dist/components/ui/sheet.js +81 -0
- package/dist/components/ui/skeleton.cjs +43 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/skeleton.js +9 -0
- package/dist/components/ui/slider.cjs +63 -0
- package/dist/components/ui/slider.d.ts +4 -0
- package/dist/components/ui/slider.js +29 -0
- package/dist/components/ui/sonner.cjs +76 -0
- package/dist/components/ui/sonner.d.ts +4 -0
- package/dist/components/ui/sonner.js +39 -0
- package/dist/components/ui/spinner.cjs +78 -0
- package/dist/components/ui/spinner.d.ts +11 -0
- package/dist/components/ui/spinner.js +41 -0
- package/dist/components/ui/stats-card.cjs +102 -0
- package/dist/components/ui/stats-card.d.ts +15 -0
- package/dist/components/ui/stats-card.js +68 -0
- package/dist/components/ui/stepper.cjs +99 -0
- package/dist/components/ui/stepper.d.ts +14 -0
- package/dist/components/ui/stepper.js +65 -0
- package/dist/components/ui/switch.cjs +48 -0
- package/dist/components/ui/switch.d.ts +4 -0
- package/dist/components/ui/switch.js +14 -0
- package/dist/components/ui/table.cjs +110 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/table.js +55 -0
- package/dist/components/ui/tabs.cjs +67 -0
- package/dist/components/ui/tabs.d.ts +7 -0
- package/dist/components/ui/tabs.js +24 -0
- package/dist/components/ui/textarea.cjs +44 -0
- package/dist/components/ui/textarea.d.ts +4 -0
- package/dist/components/ui/textarea.js +10 -0
- package/dist/components/ui/toggle-group.cjs +73 -0
- package/dist/components/ui/toggle-group.d.ts +12 -0
- package/dist/components/ui/toggle-group.js +36 -0
- package/dist/components/ui/toggle.cjs +71 -0
- package/dist/components/ui/toggle.d.ts +12 -0
- package/dist/components/ui/toggle.js +34 -0
- package/dist/components/ui/tooltip.cjs +58 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/components/ui/tooltip.js +15 -0
- package/dist/examples/admin-layout-example.d.ts +92 -0
- package/dist/examples/app-shell-example.d.ts +52 -0
- package/dist/examples/dashboard-example.d.ts +11 -0
- package/dist/examples/data-management-example.d.ts +1 -0
- package/dist/examples/flow-editor-layout-example.d.ts +22 -0
- package/dist/examples/flow-start-example.d.ts +30 -0
- package/dist/examples/form-builder-example.d.ts +1 -0
- package/dist/examples/new-project-example.d.ts +30 -0
- package/dist/examples/settings-example.d.ts +1 -0
- package/dist/examples/vscode-example.d.ts +80 -0
- package/dist/index.cjs +830 -0
- package/dist/index.d.ts +86 -0
- package/dist/index.js +67 -0
- package/dist/lib/index.cjs +42 -0
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.js +2 -0
- package/dist/lib/utils.cjs +70 -0
- package/dist/lib/utils.d.ts +14 -0
- package/dist/lib/utils.js +30 -0
- package/dist/postcss.config.export.cjs +43 -0
- package/dist/postcss.config.export.js +9 -0
- package/dist/styles.css +6868 -0
- package/dist/tailwind.css +239 -0
- package/dist/tailwind.preset.cjs +77 -0
- package/dist/tailwind.preset.js +43 -0
- package/package.json +157 -0
- package/postcss.config.export.js +9 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
var __webpack_require__ = {};
|
|
4
|
+
(()=>{
|
|
5
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
6
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: definition[key]
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
})();
|
|
12
|
+
(()=>{
|
|
13
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
14
|
+
})();
|
|
15
|
+
(()=>{
|
|
16
|
+
__webpack_require__.r = (exports1)=>{
|
|
17
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
18
|
+
value: 'Module'
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
21
|
+
value: true
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
})();
|
|
25
|
+
var __webpack_exports__ = {};
|
|
26
|
+
__webpack_require__.r(__webpack_exports__);
|
|
27
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
28
|
+
Combobox: ()=>Combobox
|
|
29
|
+
});
|
|
30
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
|
+
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
32
|
+
const external_react_namespaceObject = require("react");
|
|
33
|
+
const external_button_cjs_namespaceObject = require("./button.cjs");
|
|
34
|
+
const external_command_cjs_namespaceObject = require("./command.cjs");
|
|
35
|
+
const external_popover_cjs_namespaceObject = require("./popover.cjs");
|
|
36
|
+
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
37
|
+
function Combobox({ items, value, onValueChange, placeholder = 'Select an option...', searchPlaceholder = 'Search...', emptyText = 'No results found.', disabled, className }) {
|
|
38
|
+
const [open, setOpen] = external_react_namespaceObject.useState(false);
|
|
39
|
+
const selectedItem = items.find((item)=>item.value === value);
|
|
40
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_popover_cjs_namespaceObject.Popover, {
|
|
41
|
+
open: open,
|
|
42
|
+
onOpenChange: setOpen,
|
|
43
|
+
children: [
|
|
44
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverTrigger, {
|
|
45
|
+
asChild: true,
|
|
46
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button, {
|
|
47
|
+
variant: "outline",
|
|
48
|
+
role: "combobox",
|
|
49
|
+
"aria-expanded": open,
|
|
50
|
+
"aria-label": selectedItem ? selectedItem.label : placeholder,
|
|
51
|
+
className: (0, index_cjs_namespaceObject.cn)('w-[280px] justify-between', className),
|
|
52
|
+
disabled: disabled,
|
|
53
|
+
children: [
|
|
54
|
+
selectedItem ? selectedItem.label : placeholder,
|
|
55
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronsUpDown, {
|
|
56
|
+
className: "opacity-50"
|
|
57
|
+
})
|
|
58
|
+
]
|
|
59
|
+
})
|
|
60
|
+
}),
|
|
61
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverContent, {
|
|
62
|
+
className: "w-[280px] p-0",
|
|
63
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_command_cjs_namespaceObject.Command, {
|
|
64
|
+
children: [
|
|
65
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_command_cjs_namespaceObject.CommandInput, {
|
|
66
|
+
placeholder: searchPlaceholder
|
|
67
|
+
}),
|
|
68
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_command_cjs_namespaceObject.CommandList, {
|
|
69
|
+
children: [
|
|
70
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_command_cjs_namespaceObject.CommandEmpty, {
|
|
71
|
+
children: emptyText
|
|
72
|
+
}),
|
|
73
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_command_cjs_namespaceObject.CommandGroup, {
|
|
74
|
+
children: items.map((item)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_command_cjs_namespaceObject.CommandItem, {
|
|
75
|
+
value: item.value,
|
|
76
|
+
onSelect: (currentValue)=>{
|
|
77
|
+
onValueChange?.(currentValue === value ? '' : currentValue);
|
|
78
|
+
setOpen(false);
|
|
79
|
+
},
|
|
80
|
+
children: [
|
|
81
|
+
item.label,
|
|
82
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Check, {
|
|
83
|
+
className: (0, index_cjs_namespaceObject.cn)('ml-auto', value === item.value ? 'opacity-100' : 'opacity-0')
|
|
84
|
+
})
|
|
85
|
+
]
|
|
86
|
+
}, item.value))
|
|
87
|
+
})
|
|
88
|
+
]
|
|
89
|
+
})
|
|
90
|
+
]
|
|
91
|
+
})
|
|
92
|
+
})
|
|
93
|
+
]
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
exports.Combobox = __webpack_exports__.Combobox;
|
|
97
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
98
|
+
"Combobox"
|
|
99
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
100
|
+
Object.defineProperty(exports, '__esModule', {
|
|
101
|
+
value: true
|
|
102
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ComboboxItem {
|
|
2
|
+
value: string;
|
|
3
|
+
label: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ComboboxProps {
|
|
6
|
+
items: ComboboxItem[];
|
|
7
|
+
value?: string;
|
|
8
|
+
onValueChange?: (value: string) => void;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
searchPlaceholder?: string;
|
|
11
|
+
emptyText?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function Combobox({ items, value, onValueChange, placeholder, searchPlaceholder, emptyText, disabled, className, }: ComboboxProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Check, ChevronsUpDown } from "lucide-react";
|
|
4
|
+
import { useState } from "react";
|
|
5
|
+
import { Button } from "./button.js";
|
|
6
|
+
import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from "./command.js";
|
|
7
|
+
import { Popover, PopoverContent, PopoverTrigger } from "./popover.js";
|
|
8
|
+
import { cn } from "../../lib/index.js";
|
|
9
|
+
function Combobox({ items, value, onValueChange, placeholder = 'Select an option...', searchPlaceholder = 'Search...', emptyText = 'No results found.', disabled, className }) {
|
|
10
|
+
const [open, setOpen] = useState(false);
|
|
11
|
+
const selectedItem = items.find((item)=>item.value === value);
|
|
12
|
+
return /*#__PURE__*/ jsxs(Popover, {
|
|
13
|
+
open: open,
|
|
14
|
+
onOpenChange: setOpen,
|
|
15
|
+
children: [
|
|
16
|
+
/*#__PURE__*/ jsx(PopoverTrigger, {
|
|
17
|
+
asChild: true,
|
|
18
|
+
children: /*#__PURE__*/ jsxs(Button, {
|
|
19
|
+
variant: "outline",
|
|
20
|
+
role: "combobox",
|
|
21
|
+
"aria-expanded": open,
|
|
22
|
+
"aria-label": selectedItem ? selectedItem.label : placeholder,
|
|
23
|
+
className: cn('w-[280px] justify-between', className),
|
|
24
|
+
disabled: disabled,
|
|
25
|
+
children: [
|
|
26
|
+
selectedItem ? selectedItem.label : placeholder,
|
|
27
|
+
/*#__PURE__*/ jsx(ChevronsUpDown, {
|
|
28
|
+
className: "opacity-50"
|
|
29
|
+
})
|
|
30
|
+
]
|
|
31
|
+
})
|
|
32
|
+
}),
|
|
33
|
+
/*#__PURE__*/ jsx(PopoverContent, {
|
|
34
|
+
className: "w-[280px] p-0",
|
|
35
|
+
children: /*#__PURE__*/ jsxs(Command, {
|
|
36
|
+
children: [
|
|
37
|
+
/*#__PURE__*/ jsx(CommandInput, {
|
|
38
|
+
placeholder: searchPlaceholder
|
|
39
|
+
}),
|
|
40
|
+
/*#__PURE__*/ jsxs(CommandList, {
|
|
41
|
+
children: [
|
|
42
|
+
/*#__PURE__*/ jsx(CommandEmpty, {
|
|
43
|
+
children: emptyText
|
|
44
|
+
}),
|
|
45
|
+
/*#__PURE__*/ jsx(CommandGroup, {
|
|
46
|
+
children: items.map((item)=>/*#__PURE__*/ jsxs(CommandItem, {
|
|
47
|
+
value: item.value,
|
|
48
|
+
onSelect: (currentValue)=>{
|
|
49
|
+
onValueChange?.(currentValue === value ? '' : currentValue);
|
|
50
|
+
setOpen(false);
|
|
51
|
+
},
|
|
52
|
+
children: [
|
|
53
|
+
item.label,
|
|
54
|
+
/*#__PURE__*/ jsx(Check, {
|
|
55
|
+
className: cn('ml-auto', value === item.value ? 'opacity-100' : 'opacity-0')
|
|
56
|
+
})
|
|
57
|
+
]
|
|
58
|
+
}, item.value))
|
|
59
|
+
})
|
|
60
|
+
]
|
|
61
|
+
})
|
|
62
|
+
]
|
|
63
|
+
})
|
|
64
|
+
})
|
|
65
|
+
]
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
export { Combobox };
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
Command: ()=>Command,
|
|
28
|
+
CommandEmpty: ()=>CommandEmpty,
|
|
29
|
+
CommandGroup: ()=>CommandGroup,
|
|
30
|
+
CommandShortcut: ()=>CommandShortcut,
|
|
31
|
+
CommandSeparator: ()=>CommandSeparator,
|
|
32
|
+
CommandDialog: ()=>CommandDialog,
|
|
33
|
+
CommandInput: ()=>CommandInput,
|
|
34
|
+
CommandItem: ()=>CommandItem,
|
|
35
|
+
CommandList: ()=>CommandList
|
|
36
|
+
});
|
|
37
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
38
|
+
const external_cmdk_namespaceObject = require("cmdk");
|
|
39
|
+
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
40
|
+
const external_react_namespaceObject = require("react");
|
|
41
|
+
const external_dialog_cjs_namespaceObject = require("./dialog.cjs");
|
|
42
|
+
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
43
|
+
const Command = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command, {
|
|
44
|
+
ref: ref,
|
|
45
|
+
className: (0, index_cjs_namespaceObject.cn)('flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground', className),
|
|
46
|
+
...props
|
|
47
|
+
}));
|
|
48
|
+
Command.displayName = external_cmdk_namespaceObject.Command.displayName;
|
|
49
|
+
const CommandDialog = ({ children, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_dialog_cjs_namespaceObject.Dialog, {
|
|
50
|
+
...props,
|
|
51
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_dialog_cjs_namespaceObject.DialogContent, {
|
|
52
|
+
className: "overflow-hidden p-0 shadow-lg",
|
|
53
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Command, {
|
|
54
|
+
className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",
|
|
55
|
+
children: children
|
|
56
|
+
})
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
const CommandInput = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
60
|
+
className: "flex items-center border-b px-3",
|
|
61
|
+
"cmdk-input-wrapper": "",
|
|
62
|
+
children: [
|
|
63
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Search, {
|
|
64
|
+
className: "mr-2 h-4 w-4 shrink-0 opacity-50"
|
|
65
|
+
}),
|
|
66
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Input, {
|
|
67
|
+
ref: ref,
|
|
68
|
+
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
|
+
...props
|
|
70
|
+
})
|
|
71
|
+
]
|
|
72
|
+
}));
|
|
73
|
+
CommandInput.displayName = external_cmdk_namespaceObject.Command.Input.displayName;
|
|
74
|
+
const CommandList = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.List, {
|
|
75
|
+
ref: ref,
|
|
76
|
+
className: (0, index_cjs_namespaceObject.cn)('max-h-[300px] overflow-y-auto overflow-x-hidden', className),
|
|
77
|
+
...props
|
|
78
|
+
}));
|
|
79
|
+
CommandList.displayName = external_cmdk_namespaceObject.Command.List.displayName;
|
|
80
|
+
const CommandEmpty = /*#__PURE__*/ external_react_namespaceObject.forwardRef((props, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Empty, {
|
|
81
|
+
ref: ref,
|
|
82
|
+
className: "py-6 text-center text-sm",
|
|
83
|
+
...props
|
|
84
|
+
}));
|
|
85
|
+
CommandEmpty.displayName = external_cmdk_namespaceObject.Command.Empty.displayName;
|
|
86
|
+
const CommandGroup = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Group, {
|
|
87
|
+
ref: ref,
|
|
88
|
+
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
|
+
...props
|
|
90
|
+
}));
|
|
91
|
+
CommandGroup.displayName = external_cmdk_namespaceObject.Command.Group.displayName;
|
|
92
|
+
const CommandSeparator = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Separator, {
|
|
93
|
+
ref: ref,
|
|
94
|
+
className: (0, index_cjs_namespaceObject.cn)('-mx-1 h-px bg-border', className),
|
|
95
|
+
...props
|
|
96
|
+
}));
|
|
97
|
+
CommandSeparator.displayName = external_cmdk_namespaceObject.Command.Separator.displayName;
|
|
98
|
+
const CommandItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Item, {
|
|
99
|
+
ref: ref,
|
|
100
|
+
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
|
+
...props
|
|
102
|
+
}));
|
|
103
|
+
CommandItem.displayName = external_cmdk_namespaceObject.Command.Item.displayName;
|
|
104
|
+
const CommandShortcut = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
105
|
+
className: (0, index_cjs_namespaceObject.cn)('ml-auto text-xs tracking-widest text-muted-foreground', className),
|
|
106
|
+
...props
|
|
107
|
+
});
|
|
108
|
+
CommandShortcut.displayName = 'CommandShortcut';
|
|
109
|
+
exports.Command = __webpack_exports__.Command;
|
|
110
|
+
exports.CommandDialog = __webpack_exports__.CommandDialog;
|
|
111
|
+
exports.CommandEmpty = __webpack_exports__.CommandEmpty;
|
|
112
|
+
exports.CommandGroup = __webpack_exports__.CommandGroup;
|
|
113
|
+
exports.CommandInput = __webpack_exports__.CommandInput;
|
|
114
|
+
exports.CommandItem = __webpack_exports__.CommandItem;
|
|
115
|
+
exports.CommandList = __webpack_exports__.CommandList;
|
|
116
|
+
exports.CommandSeparator = __webpack_exports__.CommandSeparator;
|
|
117
|
+
exports.CommandShortcut = __webpack_exports__.CommandShortcut;
|
|
118
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
119
|
+
"Command",
|
|
120
|
+
"CommandDialog",
|
|
121
|
+
"CommandEmpty",
|
|
122
|
+
"CommandGroup",
|
|
123
|
+
"CommandInput",
|
|
124
|
+
"CommandItem",
|
|
125
|
+
"CommandList",
|
|
126
|
+
"CommandSeparator",
|
|
127
|
+
"CommandShortcut"
|
|
128
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
129
|
+
Object.defineProperty(exports, '__esModule', {
|
|
130
|
+
value: true
|
|
131
|
+
});
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { type DialogProps } from '@radix-ui/react-dialog';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
6
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
7
|
+
} & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild" | "key"> & {
|
|
10
|
+
label?: string;
|
|
11
|
+
shouldFilter?: boolean;
|
|
12
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
value?: string;
|
|
15
|
+
onValueChange?: (value: string) => void;
|
|
16
|
+
loop?: boolean;
|
|
17
|
+
disablePointerSelection?: boolean;
|
|
18
|
+
vimBindings?: boolean;
|
|
19
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
declare const CommandDialog: ({ children, ...props }: DialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
|
22
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
23
|
+
} & {
|
|
24
|
+
asChild?: boolean;
|
|
25
|
+
}, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
26
|
+
value?: string;
|
|
27
|
+
onValueChange?: (search: string) => void;
|
|
28
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
29
|
+
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
30
|
+
children?: React.ReactNode;
|
|
31
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
32
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
33
|
+
} & {
|
|
34
|
+
asChild?: boolean;
|
|
35
|
+
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild" | "key"> & {
|
|
36
|
+
label?: string;
|
|
37
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
+
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
39
|
+
children?: React.ReactNode;
|
|
40
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
41
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
42
|
+
} & {
|
|
43
|
+
asChild?: boolean;
|
|
44
|
+
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild" | "key"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
45
|
+
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
46
|
+
children?: React.ReactNode;
|
|
47
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
48
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
49
|
+
} & {
|
|
50
|
+
asChild?: boolean;
|
|
51
|
+
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild" | "key">, "heading" | "value"> & {
|
|
52
|
+
heading?: React.ReactNode;
|
|
53
|
+
value?: string;
|
|
54
|
+
forceMount?: boolean;
|
|
55
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
56
|
+
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
57
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
58
|
+
} & {
|
|
59
|
+
asChild?: boolean;
|
|
60
|
+
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild" | "key"> & {
|
|
61
|
+
alwaysRender?: boolean;
|
|
62
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
63
|
+
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
64
|
+
children?: React.ReactNode;
|
|
65
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
66
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
67
|
+
} & {
|
|
68
|
+
asChild?: boolean;
|
|
69
|
+
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild" | "key">, "onSelect" | "disabled" | "value"> & {
|
|
70
|
+
disabled?: boolean;
|
|
71
|
+
onSelect?: (value: string) => void;
|
|
72
|
+
value?: string;
|
|
73
|
+
keywords?: string[];
|
|
74
|
+
forceMount?: boolean;
|
|
75
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
76
|
+
declare const CommandShortcut: {
|
|
77
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
78
|
+
displayName: string;
|
|
79
|
+
};
|
|
80
|
+
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Command } from "cmdk";
|
|
3
|
+
import { Search } from "lucide-react";
|
|
4
|
+
import { forwardRef } from "react";
|
|
5
|
+
import { Dialog, DialogContent } from "./dialog.js";
|
|
6
|
+
import { cn } from "../../lib/index.js";
|
|
7
|
+
const command_Command = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Command, {
|
|
8
|
+
ref: ref,
|
|
9
|
+
className: cn('flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground', className),
|
|
10
|
+
...props
|
|
11
|
+
}));
|
|
12
|
+
command_Command.displayName = Command.displayName;
|
|
13
|
+
const CommandDialog = ({ children, ...props })=>/*#__PURE__*/ jsx(Dialog, {
|
|
14
|
+
...props,
|
|
15
|
+
children: /*#__PURE__*/ jsx(DialogContent, {
|
|
16
|
+
className: "overflow-hidden p-0 shadow-lg",
|
|
17
|
+
children: /*#__PURE__*/ jsx(command_Command, {
|
|
18
|
+
className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",
|
|
19
|
+
children: children
|
|
20
|
+
})
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
const CommandInput = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsxs("div", {
|
|
24
|
+
className: "flex items-center border-b px-3",
|
|
25
|
+
"cmdk-input-wrapper": "",
|
|
26
|
+
children: [
|
|
27
|
+
/*#__PURE__*/ jsx(Search, {
|
|
28
|
+
className: "mr-2 h-4 w-4 shrink-0 opacity-50"
|
|
29
|
+
}),
|
|
30
|
+
/*#__PURE__*/ jsx(Command.Input, {
|
|
31
|
+
ref: ref,
|
|
32
|
+
className: cn('flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50', className),
|
|
33
|
+
...props
|
|
34
|
+
})
|
|
35
|
+
]
|
|
36
|
+
}));
|
|
37
|
+
CommandInput.displayName = Command.Input.displayName;
|
|
38
|
+
const CommandList = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Command.List, {
|
|
39
|
+
ref: ref,
|
|
40
|
+
className: cn('max-h-[300px] overflow-y-auto overflow-x-hidden', className),
|
|
41
|
+
...props
|
|
42
|
+
}));
|
|
43
|
+
CommandList.displayName = Command.List.displayName;
|
|
44
|
+
const CommandEmpty = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(Command.Empty, {
|
|
45
|
+
ref: ref,
|
|
46
|
+
className: "py-6 text-center text-sm",
|
|
47
|
+
...props
|
|
48
|
+
}));
|
|
49
|
+
CommandEmpty.displayName = Command.Empty.displayName;
|
|
50
|
+
const CommandGroup = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Command.Group, {
|
|
51
|
+
ref: ref,
|
|
52
|
+
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
|
+
...props
|
|
54
|
+
}));
|
|
55
|
+
CommandGroup.displayName = Command.Group.displayName;
|
|
56
|
+
const CommandSeparator = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Command.Separator, {
|
|
57
|
+
ref: ref,
|
|
58
|
+
className: cn('-mx-1 h-px bg-border', className),
|
|
59
|
+
...props
|
|
60
|
+
}));
|
|
61
|
+
CommandSeparator.displayName = Command.Separator.displayName;
|
|
62
|
+
const CommandItem = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Command.Item, {
|
|
63
|
+
ref: ref,
|
|
64
|
+
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
|
+
...props
|
|
66
|
+
}));
|
|
67
|
+
CommandItem.displayName = Command.Item.displayName;
|
|
68
|
+
const CommandShortcut = ({ className, ...props })=>/*#__PURE__*/ jsx("span", {
|
|
69
|
+
className: cn('ml-auto text-xs tracking-widest text-muted-foreground', className),
|
|
70
|
+
...props
|
|
71
|
+
});
|
|
72
|
+
CommandShortcut.displayName = 'CommandShortcut';
|
|
73
|
+
export { command_Command as Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
var __webpack_require__ = {};
|
|
4
|
+
(()=>{
|
|
5
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
6
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: definition[key]
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
})();
|
|
12
|
+
(()=>{
|
|
13
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
14
|
+
})();
|
|
15
|
+
(()=>{
|
|
16
|
+
__webpack_require__.r = (exports1)=>{
|
|
17
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
18
|
+
value: 'Module'
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
21
|
+
value: true
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
})();
|
|
25
|
+
var __webpack_exports__ = {};
|
|
26
|
+
__webpack_require__.r(__webpack_exports__);
|
|
27
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
28
|
+
ContextMenuContent: ()=>ContextMenuContent,
|
|
29
|
+
ContextMenuCheckboxItem: ()=>ContextMenuCheckboxItem,
|
|
30
|
+
ContextMenuRadioItem: ()=>ContextMenuRadioItem,
|
|
31
|
+
ContextMenuGroup: ()=>ContextMenuGroup,
|
|
32
|
+
ContextMenuSubTrigger: ()=>ContextMenuSubTrigger,
|
|
33
|
+
ContextMenuTrigger: ()=>ContextMenuTrigger,
|
|
34
|
+
ContextMenuSubContent: ()=>ContextMenuSubContent,
|
|
35
|
+
ContextMenu: ()=>ContextMenu,
|
|
36
|
+
ContextMenuItem: ()=>ContextMenuItem,
|
|
37
|
+
ContextMenuPortal: ()=>ContextMenuPortal,
|
|
38
|
+
ContextMenuShortcut: ()=>ContextMenuShortcut,
|
|
39
|
+
ContextMenuLabel: ()=>ContextMenuLabel,
|
|
40
|
+
ContextMenuRadioGroup: ()=>ContextMenuRadioGroup,
|
|
41
|
+
ContextMenuSeparator: ()=>ContextMenuSeparator,
|
|
42
|
+
ContextMenuSub: ()=>ContextMenuSub
|
|
43
|
+
});
|
|
44
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
45
|
+
const react_context_menu_namespaceObject = require("@radix-ui/react-context-menu");
|
|
46
|
+
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
47
|
+
const external_react_namespaceObject = require("react");
|
|
48
|
+
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
49
|
+
const ContextMenu = react_context_menu_namespaceObject.Root;
|
|
50
|
+
const ContextMenuTrigger = react_context_menu_namespaceObject.Trigger;
|
|
51
|
+
const ContextMenuGroup = react_context_menu_namespaceObject.Group;
|
|
52
|
+
const ContextMenuPortal = react_context_menu_namespaceObject.Portal;
|
|
53
|
+
const ContextMenuSub = react_context_menu_namespaceObject.Sub;
|
|
54
|
+
const ContextMenuRadioGroup = react_context_menu_namespaceObject.RadioGroup;
|
|
55
|
+
const ContextMenuSubTrigger = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, inset, children, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_context_menu_namespaceObject.SubTrigger, {
|
|
56
|
+
ref: ref,
|
|
57
|
+
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
|
+
...props,
|
|
59
|
+
children: [
|
|
60
|
+
children,
|
|
61
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronRight, {
|
|
62
|
+
className: "ml-auto h-4 w-4"
|
|
63
|
+
})
|
|
64
|
+
]
|
|
65
|
+
}));
|
|
66
|
+
ContextMenuSubTrigger.displayName = react_context_menu_namespaceObject.SubTrigger.displayName;
|
|
67
|
+
const ContextMenuSubContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.SubContent, {
|
|
68
|
+
ref: ref,
|
|
69
|
+
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 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
|
+
...props
|
|
71
|
+
}));
|
|
72
|
+
ContextMenuSubContent.displayName = react_context_menu_namespaceObject.SubContent.displayName;
|
|
73
|
+
const ContextMenuContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Portal, {
|
|
74
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Content, {
|
|
75
|
+
ref: ref,
|
|
76
|
+
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 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
|
+
...props
|
|
78
|
+
})
|
|
79
|
+
}));
|
|
80
|
+
ContextMenuContent.displayName = react_context_menu_namespaceObject.Content.displayName;
|
|
81
|
+
const ContextMenuItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, inset, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Item, {
|
|
82
|
+
ref: ref,
|
|
83
|
+
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
|
+
...props
|
|
85
|
+
}));
|
|
86
|
+
ContextMenuItem.displayName = react_context_menu_namespaceObject.Item.displayName;
|
|
87
|
+
const ContextMenuCheckboxItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, children, checked, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_context_menu_namespaceObject.CheckboxItem, {
|
|
88
|
+
ref: ref,
|
|
89
|
+
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
|
+
checked: checked,
|
|
91
|
+
...props,
|
|
92
|
+
children: [
|
|
93
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
94
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
95
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.ItemIndicator, {
|
|
96
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Check, {
|
|
97
|
+
className: "h-4 w-4"
|
|
98
|
+
})
|
|
99
|
+
})
|
|
100
|
+
}),
|
|
101
|
+
children
|
|
102
|
+
]
|
|
103
|
+
}));
|
|
104
|
+
ContextMenuCheckboxItem.displayName = react_context_menu_namespaceObject.CheckboxItem.displayName;
|
|
105
|
+
const ContextMenuRadioItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, children, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_context_menu_namespaceObject.RadioItem, {
|
|
106
|
+
ref: ref,
|
|
107
|
+
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
|
+
...props,
|
|
109
|
+
children: [
|
|
110
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
111
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
112
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.ItemIndicator, {
|
|
113
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Circle, {
|
|
114
|
+
className: "h-2 w-2 fill-current"
|
|
115
|
+
})
|
|
116
|
+
})
|
|
117
|
+
}),
|
|
118
|
+
children
|
|
119
|
+
]
|
|
120
|
+
}));
|
|
121
|
+
ContextMenuRadioItem.displayName = react_context_menu_namespaceObject.RadioItem.displayName;
|
|
122
|
+
const ContextMenuLabel = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, inset, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Label, {
|
|
123
|
+
ref: ref,
|
|
124
|
+
className: (0, index_cjs_namespaceObject.cn)('px-2 py-1.5 text-sm font-semibold text-foreground', inset && 'pl-8', className),
|
|
125
|
+
...props
|
|
126
|
+
}));
|
|
127
|
+
ContextMenuLabel.displayName = react_context_menu_namespaceObject.Label.displayName;
|
|
128
|
+
const ContextMenuSeparator = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Separator, {
|
|
129
|
+
ref: ref,
|
|
130
|
+
className: (0, index_cjs_namespaceObject.cn)('-mx-1 my-1 h-px bg-border', className),
|
|
131
|
+
...props
|
|
132
|
+
}));
|
|
133
|
+
ContextMenuSeparator.displayName = react_context_menu_namespaceObject.Separator.displayName;
|
|
134
|
+
const ContextMenuShortcut = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
135
|
+
className: (0, index_cjs_namespaceObject.cn)('ml-auto text-xs tracking-widest text-muted-foreground', className),
|
|
136
|
+
...props
|
|
137
|
+
});
|
|
138
|
+
ContextMenuShortcut.displayName = 'ContextMenuShortcut';
|
|
139
|
+
exports.ContextMenu = __webpack_exports__.ContextMenu;
|
|
140
|
+
exports.ContextMenuCheckboxItem = __webpack_exports__.ContextMenuCheckboxItem;
|
|
141
|
+
exports.ContextMenuContent = __webpack_exports__.ContextMenuContent;
|
|
142
|
+
exports.ContextMenuGroup = __webpack_exports__.ContextMenuGroup;
|
|
143
|
+
exports.ContextMenuItem = __webpack_exports__.ContextMenuItem;
|
|
144
|
+
exports.ContextMenuLabel = __webpack_exports__.ContextMenuLabel;
|
|
145
|
+
exports.ContextMenuPortal = __webpack_exports__.ContextMenuPortal;
|
|
146
|
+
exports.ContextMenuRadioGroup = __webpack_exports__.ContextMenuRadioGroup;
|
|
147
|
+
exports.ContextMenuRadioItem = __webpack_exports__.ContextMenuRadioItem;
|
|
148
|
+
exports.ContextMenuSeparator = __webpack_exports__.ContextMenuSeparator;
|
|
149
|
+
exports.ContextMenuShortcut = __webpack_exports__.ContextMenuShortcut;
|
|
150
|
+
exports.ContextMenuSub = __webpack_exports__.ContextMenuSub;
|
|
151
|
+
exports.ContextMenuSubContent = __webpack_exports__.ContextMenuSubContent;
|
|
152
|
+
exports.ContextMenuSubTrigger = __webpack_exports__.ContextMenuSubTrigger;
|
|
153
|
+
exports.ContextMenuTrigger = __webpack_exports__.ContextMenuTrigger;
|
|
154
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
155
|
+
"ContextMenu",
|
|
156
|
+
"ContextMenuCheckboxItem",
|
|
157
|
+
"ContextMenuContent",
|
|
158
|
+
"ContextMenuGroup",
|
|
159
|
+
"ContextMenuItem",
|
|
160
|
+
"ContextMenuLabel",
|
|
161
|
+
"ContextMenuPortal",
|
|
162
|
+
"ContextMenuRadioGroup",
|
|
163
|
+
"ContextMenuRadioItem",
|
|
164
|
+
"ContextMenuSeparator",
|
|
165
|
+
"ContextMenuShortcut",
|
|
166
|
+
"ContextMenuSub",
|
|
167
|
+
"ContextMenuSubContent",
|
|
168
|
+
"ContextMenuSubTrigger",
|
|
169
|
+
"ContextMenuTrigger"
|
|
170
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
171
|
+
Object.defineProperty(exports, '__esModule', {
|
|
172
|
+
value: true
|
|
173
|
+
});
|