@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,219 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
3
|
+
import { format } from "date-fns";
|
|
4
|
+
import { CalendarIcon } from "lucide-react";
|
|
5
|
+
import { cn } from "../../lib/index.js";
|
|
6
|
+
import { Input } from "./input.js";
|
|
7
|
+
import { Checkbox } from "./checkbox.js";
|
|
8
|
+
import { Button } from "./button.js";
|
|
9
|
+
import { Calendar } from "./calendar.js";
|
|
10
|
+
import { Popover, PopoverContent, PopoverTrigger } from "./popover.js";
|
|
11
|
+
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "./select.js";
|
|
12
|
+
function EditableCell({ cell, onUpdate }) {
|
|
13
|
+
const initialValue = cell.getValue();
|
|
14
|
+
const meta = cell.column.columnDef.meta;
|
|
15
|
+
const type = meta?.type ?? 'text';
|
|
16
|
+
const [isEditing, setIsEditing] = useState(false);
|
|
17
|
+
const [value, setValue] = useState(initialValue);
|
|
18
|
+
const inputRef = useRef(null);
|
|
19
|
+
useEffect(()=>{
|
|
20
|
+
setValue(initialValue);
|
|
21
|
+
}, [
|
|
22
|
+
initialValue
|
|
23
|
+
]);
|
|
24
|
+
useEffect(()=>{
|
|
25
|
+
if (isEditing && inputRef.current) {
|
|
26
|
+
inputRef.current.focus();
|
|
27
|
+
inputRef.current.select();
|
|
28
|
+
}
|
|
29
|
+
}, [
|
|
30
|
+
isEditing
|
|
31
|
+
]);
|
|
32
|
+
const handleSave = useCallback(()=>{
|
|
33
|
+
if (value !== initialValue) onUpdate(value);
|
|
34
|
+
setIsEditing(false);
|
|
35
|
+
}, [
|
|
36
|
+
value,
|
|
37
|
+
initialValue,
|
|
38
|
+
onUpdate
|
|
39
|
+
]);
|
|
40
|
+
const handleCancel = useCallback(()=>{
|
|
41
|
+
setValue(initialValue);
|
|
42
|
+
setIsEditing(false);
|
|
43
|
+
}, [
|
|
44
|
+
initialValue
|
|
45
|
+
]);
|
|
46
|
+
const handleKeyDown = useCallback((e)=>{
|
|
47
|
+
if ('Enter' === e.key) {
|
|
48
|
+
e.preventDefault();
|
|
49
|
+
handleSave();
|
|
50
|
+
} else if ('Escape' === e.key) {
|
|
51
|
+
e.preventDefault();
|
|
52
|
+
handleCancel();
|
|
53
|
+
}
|
|
54
|
+
}, [
|
|
55
|
+
handleSave,
|
|
56
|
+
handleCancel
|
|
57
|
+
]);
|
|
58
|
+
if ('checkbox' === type) return /*#__PURE__*/ jsx("div", {
|
|
59
|
+
className: "flex items-center justify-center",
|
|
60
|
+
children: /*#__PURE__*/ jsx(Checkbox, {
|
|
61
|
+
checked: Boolean(value),
|
|
62
|
+
onCheckedChange: (checked)=>{
|
|
63
|
+
setValue(checked);
|
|
64
|
+
onUpdate(checked);
|
|
65
|
+
},
|
|
66
|
+
"aria-label": "Toggle"
|
|
67
|
+
})
|
|
68
|
+
});
|
|
69
|
+
const cellContent = isEditing ? renderEditMode() : /*#__PURE__*/ jsx("div", {
|
|
70
|
+
className: cn('min-h-[32px] px-2 py-1.5 -mx-2 rounded cursor-pointer', 'hover:bg-muted/50 transition-colors', 'flex items-center w-full'),
|
|
71
|
+
onClick: ()=>setIsEditing(true),
|
|
72
|
+
onKeyDown: (e)=>{
|
|
73
|
+
if ('Enter' === e.key || ' ' === e.key) {
|
|
74
|
+
e.preventDefault();
|
|
75
|
+
setIsEditing(true);
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
tabIndex: 0,
|
|
79
|
+
role: "button",
|
|
80
|
+
"aria-label": `Edit ${cell.column.id}`,
|
|
81
|
+
children: /*#__PURE__*/ jsx("span", {
|
|
82
|
+
className: cn('truncate', !value && 'text-muted-foreground'),
|
|
83
|
+
children: formatDisplayValue(value, type, meta?.options)
|
|
84
|
+
})
|
|
85
|
+
});
|
|
86
|
+
return cellContent;
|
|
87
|
+
function renderEditMode() {
|
|
88
|
+
switch(type){
|
|
89
|
+
case 'select':
|
|
90
|
+
return /*#__PURE__*/ jsxs(Select, {
|
|
91
|
+
value: String(value ?? ''),
|
|
92
|
+
onValueChange: (newValue)=>{
|
|
93
|
+
setValue(newValue);
|
|
94
|
+
onUpdate(newValue);
|
|
95
|
+
setIsEditing(false);
|
|
96
|
+
},
|
|
97
|
+
open: true,
|
|
98
|
+
onOpenChange: (open)=>{
|
|
99
|
+
if (!open) setIsEditing(false);
|
|
100
|
+
},
|
|
101
|
+
children: [
|
|
102
|
+
/*#__PURE__*/ jsx(SelectTrigger, {
|
|
103
|
+
className: "h-8 -mx-2 w-full",
|
|
104
|
+
children: /*#__PURE__*/ jsx(SelectValue, {
|
|
105
|
+
placeholder: meta?.placeholder ?? 'Select...'
|
|
106
|
+
})
|
|
107
|
+
}),
|
|
108
|
+
/*#__PURE__*/ jsx(SelectContent, {
|
|
109
|
+
children: meta?.options?.map((option)=>/*#__PURE__*/ jsx(SelectItem, {
|
|
110
|
+
value: option.value,
|
|
111
|
+
children: option.label
|
|
112
|
+
}, option.value))
|
|
113
|
+
})
|
|
114
|
+
]
|
|
115
|
+
});
|
|
116
|
+
case 'date':
|
|
117
|
+
return /*#__PURE__*/ jsx(DatePickerCell, {
|
|
118
|
+
value: value instanceof Date ? value : value ? new Date(value) : void 0,
|
|
119
|
+
onValueChange: (date)=>{
|
|
120
|
+
setValue(date);
|
|
121
|
+
onUpdate(date);
|
|
122
|
+
},
|
|
123
|
+
onClose: ()=>setIsEditing(false),
|
|
124
|
+
placeholder: meta?.placeholder ?? 'Pick date'
|
|
125
|
+
});
|
|
126
|
+
case 'number':
|
|
127
|
+
return /*#__PURE__*/ jsx(Input, {
|
|
128
|
+
ref: inputRef,
|
|
129
|
+
type: "number",
|
|
130
|
+
value: value,
|
|
131
|
+
onChange: (e)=>setValue(e.target.valueAsNumber),
|
|
132
|
+
onBlur: handleSave,
|
|
133
|
+
onKeyDown: handleKeyDown,
|
|
134
|
+
min: meta?.min,
|
|
135
|
+
max: meta?.max,
|
|
136
|
+
className: "h-8 -mx-2 w-full"
|
|
137
|
+
});
|
|
138
|
+
case 'text':
|
|
139
|
+
default:
|
|
140
|
+
return /*#__PURE__*/ jsx(Input, {
|
|
141
|
+
ref: inputRef,
|
|
142
|
+
type: "text",
|
|
143
|
+
value: String(value ?? ''),
|
|
144
|
+
onChange: (e)=>setValue(e.target.value),
|
|
145
|
+
onBlur: handleSave,
|
|
146
|
+
onKeyDown: handleKeyDown,
|
|
147
|
+
placeholder: meta?.placeholder,
|
|
148
|
+
className: "h-8 -mx-2 w-full"
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
function formatDisplayValue(value, type, options) {
|
|
154
|
+
if (null == value || '' === value) return '—';
|
|
155
|
+
switch(type){
|
|
156
|
+
case 'select':
|
|
157
|
+
{
|
|
158
|
+
const option = options?.find((o)=>o.value === value);
|
|
159
|
+
return option?.label ?? String(value);
|
|
160
|
+
}
|
|
161
|
+
case 'date':
|
|
162
|
+
if (value instanceof Date) return format(value, 'PP');
|
|
163
|
+
return format(new Date(value), 'PP');
|
|
164
|
+
case 'checkbox':
|
|
165
|
+
return value ? 'Yes' : 'No';
|
|
166
|
+
default:
|
|
167
|
+
return String(value);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
function createEditableColumn(accessorKey, header, meta) {
|
|
171
|
+
return {
|
|
172
|
+
accessorKey,
|
|
173
|
+
header,
|
|
174
|
+
meta
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
function DatePickerCell({ value, onValueChange, onClose, placeholder }) {
|
|
178
|
+
const [open, setOpen] = useState(true);
|
|
179
|
+
return /*#__PURE__*/ jsxs(Popover, {
|
|
180
|
+
open: open,
|
|
181
|
+
onOpenChange: (isOpen)=>{
|
|
182
|
+
setOpen(isOpen);
|
|
183
|
+
if (!isOpen) onClose();
|
|
184
|
+
},
|
|
185
|
+
children: [
|
|
186
|
+
/*#__PURE__*/ jsx(PopoverTrigger, {
|
|
187
|
+
asChild: true,
|
|
188
|
+
children: /*#__PURE__*/ jsxs(Button, {
|
|
189
|
+
variant: "outline",
|
|
190
|
+
className: cn('h-8 -mx-2 w-full justify-start text-left font-normal text-sm', !value && 'text-muted-foreground'),
|
|
191
|
+
children: [
|
|
192
|
+
/*#__PURE__*/ jsx(CalendarIcon, {
|
|
193
|
+
className: "mr-2 h-4 w-4 shrink-0"
|
|
194
|
+
}),
|
|
195
|
+
/*#__PURE__*/ jsx("span", {
|
|
196
|
+
className: "truncate",
|
|
197
|
+
children: value ? format(value, 'PP') : placeholder
|
|
198
|
+
})
|
|
199
|
+
]
|
|
200
|
+
})
|
|
201
|
+
}),
|
|
202
|
+
/*#__PURE__*/ jsx(PopoverContent, {
|
|
203
|
+
className: "w-auto p-0",
|
|
204
|
+
align: "start",
|
|
205
|
+
children: /*#__PURE__*/ jsx(Calendar, {
|
|
206
|
+
mode: "single",
|
|
207
|
+
selected: value,
|
|
208
|
+
onSelect: (date)=>{
|
|
209
|
+
onValueChange(date);
|
|
210
|
+
setOpen(false);
|
|
211
|
+
onClose();
|
|
212
|
+
},
|
|
213
|
+
initialFocus: true
|
|
214
|
+
})
|
|
215
|
+
})
|
|
216
|
+
]
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
export { EditableCell, createEditableColumn };
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
EmptyState: ()=>EmptyState
|
|
28
|
+
});
|
|
29
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
+
const external_react_namespaceObject = require("react");
|
|
31
|
+
const external_button_cjs_namespaceObject = require("./button.cjs");
|
|
32
|
+
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
33
|
+
const EmptyState = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ icon, title, description, action, secondaryAction, className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
34
|
+
ref: ref,
|
|
35
|
+
className: (0, index_cjs_namespaceObject.cn)('flex flex-col items-center justify-center p-8 text-center', className),
|
|
36
|
+
...props,
|
|
37
|
+
children: [
|
|
38
|
+
icon && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
39
|
+
className: "mb-6 flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",
|
|
40
|
+
children: icon
|
|
41
|
+
}),
|
|
42
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h3", {
|
|
43
|
+
className: "text-xl font-semibold tracking-tight",
|
|
44
|
+
children: title
|
|
45
|
+
}),
|
|
46
|
+
description && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
|
|
47
|
+
className: "mt-3 mb-6 max-w-md text-sm text-muted-foreground leading-relaxed",
|
|
48
|
+
children: description
|
|
49
|
+
}),
|
|
50
|
+
(action || secondaryAction) && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
51
|
+
className: "flex flex-wrap items-center justify-center gap-2",
|
|
52
|
+
children: [
|
|
53
|
+
action && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_button_cjs_namespaceObject.Button, {
|
|
54
|
+
onClick: action.onClick,
|
|
55
|
+
children: action.label
|
|
56
|
+
}),
|
|
57
|
+
secondaryAction && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_button_cjs_namespaceObject.Button, {
|
|
58
|
+
variant: "outline",
|
|
59
|
+
onClick: secondaryAction.onClick,
|
|
60
|
+
children: secondaryAction.label
|
|
61
|
+
})
|
|
62
|
+
]
|
|
63
|
+
})
|
|
64
|
+
]
|
|
65
|
+
}));
|
|
66
|
+
EmptyState.displayName = 'EmptyState';
|
|
67
|
+
exports.EmptyState = __webpack_exports__.EmptyState;
|
|
68
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
69
|
+
"EmptyState"
|
|
70
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
71
|
+
Object.defineProperty(exports, '__esModule', {
|
|
72
|
+
value: true
|
|
73
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface EmptyStateProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
icon?: React.ReactNode;
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
action?: {
|
|
7
|
+
label: string;
|
|
8
|
+
onClick: () => void;
|
|
9
|
+
};
|
|
10
|
+
secondaryAction?: {
|
|
11
|
+
label: string;
|
|
12
|
+
onClick: () => void;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export { EmptyState };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { Button } from "./button.js";
|
|
4
|
+
import { cn } from "../../lib/index.js";
|
|
5
|
+
const EmptyState = /*#__PURE__*/ forwardRef(({ icon, title, description, action, secondaryAction, className, ...props }, ref)=>/*#__PURE__*/ jsxs("div", {
|
|
6
|
+
ref: ref,
|
|
7
|
+
className: cn('flex flex-col items-center justify-center p-8 text-center', className),
|
|
8
|
+
...props,
|
|
9
|
+
children: [
|
|
10
|
+
icon && /*#__PURE__*/ jsx("div", {
|
|
11
|
+
className: "mb-6 flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",
|
|
12
|
+
children: icon
|
|
13
|
+
}),
|
|
14
|
+
/*#__PURE__*/ jsx("h3", {
|
|
15
|
+
className: "text-xl font-semibold tracking-tight",
|
|
16
|
+
children: title
|
|
17
|
+
}),
|
|
18
|
+
description && /*#__PURE__*/ jsx("p", {
|
|
19
|
+
className: "mt-3 mb-6 max-w-md text-sm text-muted-foreground leading-relaxed",
|
|
20
|
+
children: description
|
|
21
|
+
}),
|
|
22
|
+
(action || secondaryAction) && /*#__PURE__*/ jsxs("div", {
|
|
23
|
+
className: "flex flex-wrap items-center justify-center gap-2",
|
|
24
|
+
children: [
|
|
25
|
+
action && /*#__PURE__*/ jsx(Button, {
|
|
26
|
+
onClick: action.onClick,
|
|
27
|
+
children: action.label
|
|
28
|
+
}),
|
|
29
|
+
secondaryAction && /*#__PURE__*/ jsx(Button, {
|
|
30
|
+
variant: "outline",
|
|
31
|
+
onClick: secondaryAction.onClick,
|
|
32
|
+
children: secondaryAction.label
|
|
33
|
+
})
|
|
34
|
+
]
|
|
35
|
+
})
|
|
36
|
+
]
|
|
37
|
+
}));
|
|
38
|
+
EmptyState.displayName = 'EmptyState';
|
|
39
|
+
export { EmptyState };
|
|
@@ -0,0 +1,236 @@
|
|
|
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
|
+
FileUpload: ()=>FileUpload
|
|
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 index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
35
|
+
function FileUpload({ onFilesChange, accept, multiple = false, disabled = false, maxSize, className, showPreview = false }) {
|
|
36
|
+
const [files, setFiles] = external_react_namespaceObject.useState([]);
|
|
37
|
+
const [isDragging, setIsDragging] = external_react_namespaceObject.useState(false);
|
|
38
|
+
const [error, setError] = external_react_namespaceObject.useState('');
|
|
39
|
+
const [previews, setPreviews] = external_react_namespaceObject.useState([]);
|
|
40
|
+
const inputRef = external_react_namespaceObject.useRef(null);
|
|
41
|
+
const validateFiles = (fileList)=>{
|
|
42
|
+
setError('');
|
|
43
|
+
const validFiles = [];
|
|
44
|
+
for (const file of fileList){
|
|
45
|
+
if (maxSize && file.size > maxSize) {
|
|
46
|
+
setError(`File "${file.name}" exceeds maximum size of ${formatFileSize(maxSize)}`);
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
const isDuplicate = files.some((existingFile)=>existingFile.name === file.name && existingFile.size === file.size);
|
|
50
|
+
if (!isDuplicate) validFiles.push(file);
|
|
51
|
+
}
|
|
52
|
+
return validFiles;
|
|
53
|
+
};
|
|
54
|
+
const handleFiles = (fileList)=>{
|
|
55
|
+
if (!fileList || 0 === fileList.length) return;
|
|
56
|
+
const filesArray = Array.from(fileList);
|
|
57
|
+
const validFiles = validateFiles(filesArray);
|
|
58
|
+
if (0 === validFiles.length) return;
|
|
59
|
+
const newFiles = multiple ? [
|
|
60
|
+
...files,
|
|
61
|
+
...validFiles
|
|
62
|
+
] : validFiles;
|
|
63
|
+
setFiles(newFiles);
|
|
64
|
+
onFilesChange?.(newFiles);
|
|
65
|
+
if (showPreview) {
|
|
66
|
+
const newPreviews = [];
|
|
67
|
+
validFiles.forEach((file)=>{
|
|
68
|
+
if (file.type.startsWith('image/')) {
|
|
69
|
+
const reader = new FileReader();
|
|
70
|
+
reader.onloadend = ()=>{
|
|
71
|
+
newPreviews.push(reader.result);
|
|
72
|
+
if (newPreviews.length === validFiles.filter((f)=>f.type.startsWith('image/')).length) setPreviews(multiple ? [
|
|
73
|
+
...previews,
|
|
74
|
+
...newPreviews
|
|
75
|
+
] : newPreviews);
|
|
76
|
+
};
|
|
77
|
+
reader.readAsDataURL(file);
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
const removeFile = (index)=>{
|
|
83
|
+
const newFiles = files.filter((_, i)=>i !== index);
|
|
84
|
+
setFiles(newFiles);
|
|
85
|
+
onFilesChange?.(newFiles);
|
|
86
|
+
if (showPreview) {
|
|
87
|
+
const newPreviews = previews.filter((_, i)=>i !== index);
|
|
88
|
+
setPreviews(newPreviews);
|
|
89
|
+
}
|
|
90
|
+
setError('');
|
|
91
|
+
};
|
|
92
|
+
const handleDragEnter = (e)=>{
|
|
93
|
+
e.preventDefault();
|
|
94
|
+
e.stopPropagation();
|
|
95
|
+
if (!disabled) setIsDragging(true);
|
|
96
|
+
};
|
|
97
|
+
const handleDragLeave = (e)=>{
|
|
98
|
+
e.preventDefault();
|
|
99
|
+
e.stopPropagation();
|
|
100
|
+
setIsDragging(false);
|
|
101
|
+
};
|
|
102
|
+
const handleDragOver = (e)=>{
|
|
103
|
+
e.preventDefault();
|
|
104
|
+
e.stopPropagation();
|
|
105
|
+
};
|
|
106
|
+
const handleDrop = (e)=>{
|
|
107
|
+
e.preventDefault();
|
|
108
|
+
e.stopPropagation();
|
|
109
|
+
setIsDragging(false);
|
|
110
|
+
if (!disabled) handleFiles(e.dataTransfer.files);
|
|
111
|
+
};
|
|
112
|
+
const handleInputChange = (e)=>{
|
|
113
|
+
handleFiles(e.target.files);
|
|
114
|
+
if (inputRef.current) inputRef.current.value = '';
|
|
115
|
+
};
|
|
116
|
+
const handleClick = ()=>{
|
|
117
|
+
if (!disabled) inputRef.current?.click();
|
|
118
|
+
};
|
|
119
|
+
const formatFileSize = (bytes)=>{
|
|
120
|
+
if (0 === bytes) return '0 Bytes';
|
|
121
|
+
const k = 1024;
|
|
122
|
+
const sizes = [
|
|
123
|
+
'Bytes',
|
|
124
|
+
'KB',
|
|
125
|
+
'MB',
|
|
126
|
+
'GB'
|
|
127
|
+
];
|
|
128
|
+
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
129
|
+
return Math.round(bytes / k ** i * 100) / 100 + ' ' + sizes[i];
|
|
130
|
+
};
|
|
131
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
132
|
+
className: (0, index_cjs_namespaceObject.cn)('w-full', className),
|
|
133
|
+
children: [
|
|
134
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
135
|
+
className: (0, index_cjs_namespaceObject.cn)('relative flex flex-col items-center justify-center w-full h-32 px-4 py-6 border-2 border-dashed rounded-lg cursor-pointer transition-colors', isDragging ? 'border-primary bg-primary/5' : 'border-input bg-background hover:bg-accent/50', disabled && 'opacity-50 cursor-not-allowed hover:bg-background', error && 'border-destructive'),
|
|
136
|
+
onDragEnter: handleDragEnter,
|
|
137
|
+
onDragOver: handleDragOver,
|
|
138
|
+
onDragLeave: handleDragLeave,
|
|
139
|
+
onDrop: handleDrop,
|
|
140
|
+
onClick: handleClick,
|
|
141
|
+
children: [
|
|
142
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("input", {
|
|
143
|
+
ref: inputRef,
|
|
144
|
+
type: "file",
|
|
145
|
+
className: "hidden",
|
|
146
|
+
accept: accept,
|
|
147
|
+
multiple: multiple,
|
|
148
|
+
disabled: disabled,
|
|
149
|
+
onChange: handleInputChange,
|
|
150
|
+
"aria-label": "File upload"
|
|
151
|
+
}),
|
|
152
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Upload, {
|
|
153
|
+
className: "w-8 h-8 mb-2 text-muted-foreground"
|
|
154
|
+
}),
|
|
155
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("p", {
|
|
156
|
+
className: "text-sm text-muted-foreground text-center",
|
|
157
|
+
children: [
|
|
158
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
159
|
+
className: "font-semibold",
|
|
160
|
+
children: "Click to upload"
|
|
161
|
+
}),
|
|
162
|
+
" or drag and drop"
|
|
163
|
+
]
|
|
164
|
+
}),
|
|
165
|
+
accept && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
|
|
166
|
+
className: "text-xs text-muted-foreground mt-1",
|
|
167
|
+
children: accept.split(',').join(', ')
|
|
168
|
+
}),
|
|
169
|
+
maxSize && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("p", {
|
|
170
|
+
className: "text-xs text-muted-foreground",
|
|
171
|
+
children: [
|
|
172
|
+
"Max size: ",
|
|
173
|
+
formatFileSize(maxSize)
|
|
174
|
+
]
|
|
175
|
+
})
|
|
176
|
+
]
|
|
177
|
+
}),
|
|
178
|
+
error && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
|
|
179
|
+
className: "text-sm text-destructive mt-2",
|
|
180
|
+
children: error
|
|
181
|
+
}),
|
|
182
|
+
files.length > 0 && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
183
|
+
className: "mt-4 space-y-2",
|
|
184
|
+
children: files.map((file, index)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
185
|
+
className: "flex items-center justify-between p-3 bg-accent/50 rounded-md",
|
|
186
|
+
children: [
|
|
187
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
188
|
+
className: "flex items-center gap-3 flex-1 min-w-0",
|
|
189
|
+
children: [
|
|
190
|
+
showPreview && previews[index] && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("img", {
|
|
191
|
+
src: previews[index],
|
|
192
|
+
alt: file.name,
|
|
193
|
+
className: "w-10 h-10 object-cover rounded"
|
|
194
|
+
}),
|
|
195
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
196
|
+
className: "flex-1 min-w-0",
|
|
197
|
+
children: [
|
|
198
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
|
|
199
|
+
className: "text-sm font-medium truncate",
|
|
200
|
+
children: file.name
|
|
201
|
+
}),
|
|
202
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
|
|
203
|
+
className: "text-xs text-muted-foreground",
|
|
204
|
+
children: formatFileSize(file.size)
|
|
205
|
+
})
|
|
206
|
+
]
|
|
207
|
+
})
|
|
208
|
+
]
|
|
209
|
+
}),
|
|
210
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_button_cjs_namespaceObject.Button, {
|
|
211
|
+
variant: "ghost",
|
|
212
|
+
size: "icon",
|
|
213
|
+
className: "h-8 w-8",
|
|
214
|
+
"aria-label": `Remove ${file.name}`,
|
|
215
|
+
onClick: (e)=>{
|
|
216
|
+
e.stopPropagation();
|
|
217
|
+
removeFile(index);
|
|
218
|
+
},
|
|
219
|
+
disabled: disabled,
|
|
220
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.X, {
|
|
221
|
+
className: "h-4 w-4"
|
|
222
|
+
})
|
|
223
|
+
})
|
|
224
|
+
]
|
|
225
|
+
}, index))
|
|
226
|
+
})
|
|
227
|
+
]
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
exports.FileUpload = __webpack_exports__.FileUpload;
|
|
231
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
232
|
+
"FileUpload"
|
|
233
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
234
|
+
Object.defineProperty(exports, '__esModule', {
|
|
235
|
+
value: true
|
|
236
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface FileUploadProps {
|
|
2
|
+
onFilesChange?: (files: File[]) => void;
|
|
3
|
+
accept?: string;
|
|
4
|
+
multiple?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
maxSize?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
showPreview?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function FileUpload({ onFilesChange, accept, multiple, disabled, maxSize, className, showPreview, }: FileUploadProps): import("react/jsx-runtime").JSX.Element;
|