@uipath/apollo-wind 0.9.1 → 0.10.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.
|
@@ -32,29 +32,53 @@ const external_lucide_react_namespaceObject = require("lucide-react");
|
|
|
32
32
|
const external_react_namespaceObject = require("react");
|
|
33
33
|
const external_button_cjs_namespaceObject = require("./button.cjs");
|
|
34
34
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
35
|
-
function FileUpload({ onFilesChange, accept, multiple = false, disabled = false, maxSize, className, showPreview = false }) {
|
|
35
|
+
function FileUpload({ onFilesChange, accept, multiple = false, disabled = false, maxSize, className, showPreview = false, errors }) {
|
|
36
36
|
const [files, setFiles] = external_react_namespaceObject.useState([]);
|
|
37
37
|
const [isDragging, setIsDragging] = external_react_namespaceObject.useState(false);
|
|
38
|
-
const [
|
|
38
|
+
const [fileErrors, setFileErrors] = external_react_namespaceObject.useState(new Map());
|
|
39
39
|
const [previews, setPreviews] = external_react_namespaceObject.useState([]);
|
|
40
40
|
const inputRef = external_react_namespaceObject.useRef(null);
|
|
41
|
-
const
|
|
42
|
-
|
|
41
|
+
const isFileTypeAccepted = (file)=>{
|
|
42
|
+
if (!accept) return true;
|
|
43
|
+
const acceptedTypes = accept.split(',').map((type)=>type.trim().toLowerCase());
|
|
44
|
+
for (const acceptedType of acceptedTypes)if (acceptedType.endsWith('/*')) {
|
|
45
|
+
const baseType = acceptedType.slice(0, -2);
|
|
46
|
+
if (file.type.toLowerCase().startsWith(baseType)) return true;
|
|
47
|
+
} else if (acceptedType.includes('/')) {
|
|
48
|
+
if (file.type.toLowerCase() === acceptedType) return true;
|
|
49
|
+
} else if (acceptedType.startsWith('.')) {
|
|
50
|
+
if (file.name.toLowerCase().endsWith(acceptedType)) return true;
|
|
51
|
+
}
|
|
52
|
+
return false;
|
|
53
|
+
};
|
|
54
|
+
const validateFiles = (fileList, startIndex, existingErrors)=>{
|
|
43
55
|
const validFiles = [];
|
|
56
|
+
const errors = multiple ? new Map(existingErrors) : new Map();
|
|
44
57
|
for (const file of fileList){
|
|
58
|
+
const fileIndex = startIndex + validFiles.length;
|
|
59
|
+
if (!isFileTypeAccepted(file)) {
|
|
60
|
+
errors.set(fileIndex, 'File type not accepted');
|
|
61
|
+
validFiles.push(file);
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
45
64
|
if (maxSize && file.size > maxSize) {
|
|
46
|
-
|
|
65
|
+
errors.set(fileIndex, `Exceeds maximum size of ${formatFileSize(maxSize)}`);
|
|
66
|
+
validFiles.push(file);
|
|
47
67
|
continue;
|
|
48
68
|
}
|
|
49
69
|
const isDuplicate = files.some((existingFile)=>existingFile.name === file.name && existingFile.size === file.size);
|
|
50
70
|
if (!isDuplicate) validFiles.push(file);
|
|
51
71
|
}
|
|
52
|
-
return
|
|
72
|
+
return {
|
|
73
|
+
validFiles,
|
|
74
|
+
errors
|
|
75
|
+
};
|
|
53
76
|
};
|
|
54
77
|
const handleFiles = (fileList)=>{
|
|
55
78
|
if (!fileList || 0 === fileList.length) return;
|
|
56
79
|
const filesArray = Array.from(fileList);
|
|
57
|
-
const
|
|
80
|
+
const startIndex = multiple ? files.length : 0;
|
|
81
|
+
const { validFiles, errors } = validateFiles(filesArray, startIndex, fileErrors);
|
|
58
82
|
if (0 === validFiles.length) return;
|
|
59
83
|
const newFiles = multiple ? [
|
|
60
84
|
...files,
|
|
@@ -62,6 +86,7 @@ function FileUpload({ onFilesChange, accept, multiple = false, disabled = false,
|
|
|
62
86
|
] : validFiles;
|
|
63
87
|
setFiles(newFiles);
|
|
64
88
|
onFilesChange?.(newFiles);
|
|
89
|
+
setFileErrors(errors);
|
|
65
90
|
if (showPreview) {
|
|
66
91
|
const newPreviews = [];
|
|
67
92
|
validFiles.forEach((file)=>{
|
|
@@ -87,7 +112,14 @@ function FileUpload({ onFilesChange, accept, multiple = false, disabled = false,
|
|
|
87
112
|
const newPreviews = previews.filter((_, i)=>i !== index);
|
|
88
113
|
setPreviews(newPreviews);
|
|
89
114
|
}
|
|
90
|
-
|
|
115
|
+
setFileErrors((prev)=>{
|
|
116
|
+
const updated = new Map();
|
|
117
|
+
prev.forEach((error, i)=>{
|
|
118
|
+
if (i < index) updated.set(i, error);
|
|
119
|
+
else if (i > index) updated.set(i - 1, error);
|
|
120
|
+
});
|
|
121
|
+
return updated;
|
|
122
|
+
});
|
|
91
123
|
};
|
|
92
124
|
const handleDragEnter = (e)=>{
|
|
93
125
|
e.preventDefault();
|
|
@@ -132,7 +164,7 @@ function FileUpload({ onFilesChange, accept, multiple = false, disabled = false,
|
|
|
132
164
|
className: (0, index_cjs_namespaceObject.cn)('w-full', className),
|
|
133
165
|
children: [
|
|
134
166
|
/*#__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'
|
|
167
|
+
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'),
|
|
136
168
|
onDragEnter: handleDragEnter,
|
|
137
169
|
onDragOver: handleDragOver,
|
|
138
170
|
onDragLeave: handleDragLeave,
|
|
@@ -175,54 +207,62 @@ function FileUpload({ onFilesChange, accept, multiple = false, disabled = false,
|
|
|
175
207
|
})
|
|
176
208
|
]
|
|
177
209
|
}),
|
|
178
|
-
error && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
|
|
179
|
-
className: "text-sm text-destructive mt-2",
|
|
180
|
-
children: error
|
|
181
|
-
}),
|
|
182
210
|
files.length > 0 && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
183
211
|
className: "mt-4 space-y-2",
|
|
184
|
-
children: files.map((file, index)
|
|
185
|
-
|
|
212
|
+
children: files.map((file, index)=>{
|
|
213
|
+
const fileError = errors?.[file.name] ?? fileErrors.get(index);
|
|
214
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
215
|
+
className: (0, index_cjs_namespaceObject.cn)('flex flex-col p-3 rounded-md', fileError ? 'bg-destructive/10 border border-destructive/20' : 'bg-accent/50'),
|
|
186
216
|
children: [
|
|
187
217
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
188
|
-
className: "flex items-center
|
|
218
|
+
className: "flex items-center justify-between",
|
|
189
219
|
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
220
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
196
|
-
className: "flex-1 min-w-0",
|
|
221
|
+
className: "flex items-center gap-3 flex-1 min-w-0",
|
|
197
222
|
children: [
|
|
198
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("
|
|
199
|
-
|
|
200
|
-
|
|
223
|
+
showPreview && previews[index] && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("img", {
|
|
224
|
+
src: previews[index],
|
|
225
|
+
alt: file.name,
|
|
226
|
+
className: "w-10 h-10 object-cover rounded"
|
|
201
227
|
}),
|
|
202
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.
|
|
203
|
-
className: "
|
|
204
|
-
children:
|
|
228
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
229
|
+
className: "flex-1 min-w-0",
|
|
230
|
+
children: [
|
|
231
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
|
|
232
|
+
className: "text-sm font-medium truncate",
|
|
233
|
+
children: file.name
|
|
234
|
+
}),
|
|
235
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
|
|
236
|
+
className: "text-xs text-muted-foreground",
|
|
237
|
+
children: formatFileSize(file.size)
|
|
238
|
+
})
|
|
239
|
+
]
|
|
205
240
|
})
|
|
206
241
|
]
|
|
242
|
+
}),
|
|
243
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_button_cjs_namespaceObject.Button, {
|
|
244
|
+
variant: "ghost",
|
|
245
|
+
size: "icon",
|
|
246
|
+
className: "h-8 w-8",
|
|
247
|
+
"aria-label": `Remove ${file.name}`,
|
|
248
|
+
onClick: (e)=>{
|
|
249
|
+
e.stopPropagation();
|
|
250
|
+
removeFile(index);
|
|
251
|
+
},
|
|
252
|
+
disabled: disabled,
|
|
253
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.X, {
|
|
254
|
+
className: "h-4 w-4"
|
|
255
|
+
})
|
|
207
256
|
})
|
|
208
257
|
]
|
|
209
258
|
}),
|
|
210
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
211
|
-
|
|
212
|
-
|
|
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
|
-
})
|
|
259
|
+
fileError && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
|
|
260
|
+
className: "text-xs text-destructive mt-2",
|
|
261
|
+
children: fileError
|
|
223
262
|
})
|
|
224
263
|
]
|
|
225
|
-
}, index)
|
|
264
|
+
}, index);
|
|
265
|
+
})
|
|
226
266
|
})
|
|
227
267
|
]
|
|
228
268
|
});
|
|
@@ -6,5 +6,7 @@ export interface FileUploadProps {
|
|
|
6
6
|
maxSize?: number;
|
|
7
7
|
className?: string;
|
|
8
8
|
showPreview?: boolean;
|
|
9
|
+
/** External errors keyed by filename. Use this to set errors from outside (e.g., upload failures). */
|
|
10
|
+
errors?: Record<string, string>;
|
|
9
11
|
}
|
|
10
|
-
export declare function FileUpload({ onFilesChange, accept, multiple, disabled, maxSize, className, showPreview, }: FileUploadProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function FileUpload({ onFilesChange, accept, multiple, disabled, maxSize, className, showPreview, errors, }: FileUploadProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,29 +4,53 @@ import { Upload, X } from "lucide-react";
|
|
|
4
4
|
import { useRef, useState } from "react";
|
|
5
5
|
import { Button } from "./button.js";
|
|
6
6
|
import { cn } from "../../lib/index.js";
|
|
7
|
-
function FileUpload({ onFilesChange, accept, multiple = false, disabled = false, maxSize, className, showPreview = false }) {
|
|
7
|
+
function FileUpload({ onFilesChange, accept, multiple = false, disabled = false, maxSize, className, showPreview = false, errors }) {
|
|
8
8
|
const [files, setFiles] = useState([]);
|
|
9
9
|
const [isDragging, setIsDragging] = useState(false);
|
|
10
|
-
const [
|
|
10
|
+
const [fileErrors, setFileErrors] = useState(new Map());
|
|
11
11
|
const [previews, setPreviews] = useState([]);
|
|
12
12
|
const inputRef = useRef(null);
|
|
13
|
-
const
|
|
14
|
-
|
|
13
|
+
const isFileTypeAccepted = (file)=>{
|
|
14
|
+
if (!accept) return true;
|
|
15
|
+
const acceptedTypes = accept.split(',').map((type)=>type.trim().toLowerCase());
|
|
16
|
+
for (const acceptedType of acceptedTypes)if (acceptedType.endsWith('/*')) {
|
|
17
|
+
const baseType = acceptedType.slice(0, -2);
|
|
18
|
+
if (file.type.toLowerCase().startsWith(baseType)) return true;
|
|
19
|
+
} else if (acceptedType.includes('/')) {
|
|
20
|
+
if (file.type.toLowerCase() === acceptedType) return true;
|
|
21
|
+
} else if (acceptedType.startsWith('.')) {
|
|
22
|
+
if (file.name.toLowerCase().endsWith(acceptedType)) return true;
|
|
23
|
+
}
|
|
24
|
+
return false;
|
|
25
|
+
};
|
|
26
|
+
const validateFiles = (fileList, startIndex, existingErrors)=>{
|
|
15
27
|
const validFiles = [];
|
|
28
|
+
const errors = multiple ? new Map(existingErrors) : new Map();
|
|
16
29
|
for (const file of fileList){
|
|
30
|
+
const fileIndex = startIndex + validFiles.length;
|
|
31
|
+
if (!isFileTypeAccepted(file)) {
|
|
32
|
+
errors.set(fileIndex, 'File type not accepted');
|
|
33
|
+
validFiles.push(file);
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
17
36
|
if (maxSize && file.size > maxSize) {
|
|
18
|
-
|
|
37
|
+
errors.set(fileIndex, `Exceeds maximum size of ${formatFileSize(maxSize)}`);
|
|
38
|
+
validFiles.push(file);
|
|
19
39
|
continue;
|
|
20
40
|
}
|
|
21
41
|
const isDuplicate = files.some((existingFile)=>existingFile.name === file.name && existingFile.size === file.size);
|
|
22
42
|
if (!isDuplicate) validFiles.push(file);
|
|
23
43
|
}
|
|
24
|
-
return
|
|
44
|
+
return {
|
|
45
|
+
validFiles,
|
|
46
|
+
errors
|
|
47
|
+
};
|
|
25
48
|
};
|
|
26
49
|
const handleFiles = (fileList)=>{
|
|
27
50
|
if (!fileList || 0 === fileList.length) return;
|
|
28
51
|
const filesArray = Array.from(fileList);
|
|
29
|
-
const
|
|
52
|
+
const startIndex = multiple ? files.length : 0;
|
|
53
|
+
const { validFiles, errors } = validateFiles(filesArray, startIndex, fileErrors);
|
|
30
54
|
if (0 === validFiles.length) return;
|
|
31
55
|
const newFiles = multiple ? [
|
|
32
56
|
...files,
|
|
@@ -34,6 +58,7 @@ function FileUpload({ onFilesChange, accept, multiple = false, disabled = false,
|
|
|
34
58
|
] : validFiles;
|
|
35
59
|
setFiles(newFiles);
|
|
36
60
|
onFilesChange?.(newFiles);
|
|
61
|
+
setFileErrors(errors);
|
|
37
62
|
if (showPreview) {
|
|
38
63
|
const newPreviews = [];
|
|
39
64
|
validFiles.forEach((file)=>{
|
|
@@ -59,7 +84,14 @@ function FileUpload({ onFilesChange, accept, multiple = false, disabled = false,
|
|
|
59
84
|
const newPreviews = previews.filter((_, i)=>i !== index);
|
|
60
85
|
setPreviews(newPreviews);
|
|
61
86
|
}
|
|
62
|
-
|
|
87
|
+
setFileErrors((prev)=>{
|
|
88
|
+
const updated = new Map();
|
|
89
|
+
prev.forEach((error, i)=>{
|
|
90
|
+
if (i < index) updated.set(i, error);
|
|
91
|
+
else if (i > index) updated.set(i - 1, error);
|
|
92
|
+
});
|
|
93
|
+
return updated;
|
|
94
|
+
});
|
|
63
95
|
};
|
|
64
96
|
const handleDragEnter = (e)=>{
|
|
65
97
|
e.preventDefault();
|
|
@@ -104,7 +136,7 @@ function FileUpload({ onFilesChange, accept, multiple = false, disabled = false,
|
|
|
104
136
|
className: cn('w-full', className),
|
|
105
137
|
children: [
|
|
106
138
|
/*#__PURE__*/ jsxs("div", {
|
|
107
|
-
className: 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'
|
|
139
|
+
className: 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'),
|
|
108
140
|
onDragEnter: handleDragEnter,
|
|
109
141
|
onDragOver: handleDragOver,
|
|
110
142
|
onDragLeave: handleDragLeave,
|
|
@@ -147,54 +179,62 @@ function FileUpload({ onFilesChange, accept, multiple = false, disabled = false,
|
|
|
147
179
|
})
|
|
148
180
|
]
|
|
149
181
|
}),
|
|
150
|
-
error && /*#__PURE__*/ jsx("p", {
|
|
151
|
-
className: "text-sm text-destructive mt-2",
|
|
152
|
-
children: error
|
|
153
|
-
}),
|
|
154
182
|
files.length > 0 && /*#__PURE__*/ jsx("div", {
|
|
155
183
|
className: "mt-4 space-y-2",
|
|
156
|
-
children: files.map((file, index)
|
|
157
|
-
|
|
184
|
+
children: files.map((file, index)=>{
|
|
185
|
+
const fileError = errors?.[file.name] ?? fileErrors.get(index);
|
|
186
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
187
|
+
className: cn('flex flex-col p-3 rounded-md', fileError ? 'bg-destructive/10 border border-destructive/20' : 'bg-accent/50'),
|
|
158
188
|
children: [
|
|
159
189
|
/*#__PURE__*/ jsxs("div", {
|
|
160
|
-
className: "flex items-center
|
|
190
|
+
className: "flex items-center justify-between",
|
|
161
191
|
children: [
|
|
162
|
-
showPreview && previews[index] && /*#__PURE__*/ jsx("img", {
|
|
163
|
-
src: previews[index],
|
|
164
|
-
alt: file.name,
|
|
165
|
-
className: "w-10 h-10 object-cover rounded"
|
|
166
|
-
}),
|
|
167
192
|
/*#__PURE__*/ jsxs("div", {
|
|
168
|
-
className: "flex-1 min-w-0",
|
|
193
|
+
className: "flex items-center gap-3 flex-1 min-w-0",
|
|
169
194
|
children: [
|
|
170
|
-
/*#__PURE__*/ jsx("
|
|
171
|
-
|
|
172
|
-
|
|
195
|
+
showPreview && previews[index] && /*#__PURE__*/ jsx("img", {
|
|
196
|
+
src: previews[index],
|
|
197
|
+
alt: file.name,
|
|
198
|
+
className: "w-10 h-10 object-cover rounded"
|
|
173
199
|
}),
|
|
174
|
-
/*#__PURE__*/
|
|
175
|
-
className: "
|
|
176
|
-
children:
|
|
200
|
+
/*#__PURE__*/ jsxs("div", {
|
|
201
|
+
className: "flex-1 min-w-0",
|
|
202
|
+
children: [
|
|
203
|
+
/*#__PURE__*/ jsx("p", {
|
|
204
|
+
className: "text-sm font-medium truncate",
|
|
205
|
+
children: file.name
|
|
206
|
+
}),
|
|
207
|
+
/*#__PURE__*/ jsx("p", {
|
|
208
|
+
className: "text-xs text-muted-foreground",
|
|
209
|
+
children: formatFileSize(file.size)
|
|
210
|
+
})
|
|
211
|
+
]
|
|
177
212
|
})
|
|
178
213
|
]
|
|
214
|
+
}),
|
|
215
|
+
/*#__PURE__*/ jsx(Button, {
|
|
216
|
+
variant: "ghost",
|
|
217
|
+
size: "icon",
|
|
218
|
+
className: "h-8 w-8",
|
|
219
|
+
"aria-label": `Remove ${file.name}`,
|
|
220
|
+
onClick: (e)=>{
|
|
221
|
+
e.stopPropagation();
|
|
222
|
+
removeFile(index);
|
|
223
|
+
},
|
|
224
|
+
disabled: disabled,
|
|
225
|
+
children: /*#__PURE__*/ jsx(X, {
|
|
226
|
+
className: "h-4 w-4"
|
|
227
|
+
})
|
|
179
228
|
})
|
|
180
229
|
]
|
|
181
230
|
}),
|
|
182
|
-
/*#__PURE__*/ jsx(
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
className: "h-8 w-8",
|
|
186
|
-
"aria-label": `Remove ${file.name}`,
|
|
187
|
-
onClick: (e)=>{
|
|
188
|
-
e.stopPropagation();
|
|
189
|
-
removeFile(index);
|
|
190
|
-
},
|
|
191
|
-
disabled: disabled,
|
|
192
|
-
children: /*#__PURE__*/ jsx(X, {
|
|
193
|
-
className: "h-4 w-4"
|
|
194
|
-
})
|
|
231
|
+
fileError && /*#__PURE__*/ jsx("p", {
|
|
232
|
+
className: "text-xs text-destructive mt-2",
|
|
233
|
+
children: fileError
|
|
195
234
|
})
|
|
196
235
|
]
|
|
197
|
-
}, index)
|
|
236
|
+
}, index);
|
|
237
|
+
})
|
|
198
238
|
})
|
|
199
239
|
]
|
|
200
240
|
});
|
|
@@ -15,7 +15,7 @@ var __webpack_modules__ = {
|
|
|
15
15
|
"./avatar": function(module) {
|
|
16
16
|
module.exports = require("./avatar.cjs");
|
|
17
17
|
},
|
|
18
|
-
"
|
|
18
|
+
"@/components/ui/badge": function(module) {
|
|
19
19
|
module.exports = require("./badge.cjs");
|
|
20
20
|
},
|
|
21
21
|
"./breadcrumb": function(module) {
|
|
@@ -33,7 +33,7 @@ var __webpack_modules__ = {
|
|
|
33
33
|
"./card": function(module) {
|
|
34
34
|
module.exports = require("./card.cjs");
|
|
35
35
|
},
|
|
36
|
-
"
|
|
36
|
+
"./checkbox": function(module) {
|
|
37
37
|
module.exports = require("./checkbox.cjs");
|
|
38
38
|
},
|
|
39
39
|
"./collapsible": function(module) {
|
|
@@ -63,10 +63,10 @@ var __webpack_modules__ = {
|
|
|
63
63
|
"./drawer": function(module) {
|
|
64
64
|
module.exports = require("./drawer.cjs");
|
|
65
65
|
},
|
|
66
|
-
"
|
|
66
|
+
"./dropdown-menu": function(module) {
|
|
67
67
|
module.exports = require("./dropdown-menu.cjs");
|
|
68
68
|
},
|
|
69
|
-
"
|
|
69
|
+
"./editable-cell": function(module) {
|
|
70
70
|
module.exports = require("./editable-cell.cjs");
|
|
71
71
|
},
|
|
72
72
|
"./empty-state": function(module) {
|
|
@@ -147,7 +147,7 @@ var __webpack_modules__ = {
|
|
|
147
147
|
"./switch": function(module) {
|
|
148
148
|
module.exports = require("./switch.cjs");
|
|
149
149
|
},
|
|
150
|
-
"
|
|
150
|
+
"./table": function(module) {
|
|
151
151
|
module.exports = require("./table.cjs");
|
|
152
152
|
},
|
|
153
153
|
"./tabs": function(module) {
|
|
@@ -159,7 +159,7 @@ var __webpack_modules__ = {
|
|
|
159
159
|
"./toggle-group": function(module) {
|
|
160
160
|
module.exports = require("./toggle-group.cjs");
|
|
161
161
|
},
|
|
162
|
-
"
|
|
162
|
+
"./toggle": function(module) {
|
|
163
163
|
module.exports = require("./toggle.cjs");
|
|
164
164
|
},
|
|
165
165
|
"./tooltip": function(module) {
|
|
@@ -239,7 +239,7 @@ var __webpack_exports__ = {};
|
|
|
239
239
|
return _avatar__WEBPACK_IMPORTED_MODULE_4__[key];
|
|
240
240
|
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
241
241
|
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
242
|
-
var _badge__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("
|
|
242
|
+
var _badge__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("@/components/ui/badge");
|
|
243
243
|
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
244
244
|
for(var __WEBPACK_IMPORT_KEY__ in _badge__WEBPACK_IMPORTED_MODULE_5__)if ("default" !== __WEBPACK_IMPORT_KEY__) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
245
245
|
return _badge__WEBPACK_IMPORTED_MODULE_5__[key];
|
|
@@ -275,7 +275,7 @@ var __webpack_exports__ = {};
|
|
|
275
275
|
return _card__WEBPACK_IMPORTED_MODULE_10__[key];
|
|
276
276
|
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
277
277
|
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
278
|
-
var _checkbox__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("
|
|
278
|
+
var _checkbox__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("./checkbox");
|
|
279
279
|
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
280
280
|
for(var __WEBPACK_IMPORT_KEY__ in _checkbox__WEBPACK_IMPORTED_MODULE_11__)if ("default" !== __WEBPACK_IMPORT_KEY__) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
281
281
|
return _checkbox__WEBPACK_IMPORTED_MODULE_11__[key];
|
|
@@ -335,13 +335,13 @@ var __webpack_exports__ = {};
|
|
|
335
335
|
return _drawer__WEBPACK_IMPORTED_MODULE_20__[key];
|
|
336
336
|
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
337
337
|
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
338
|
-
var _dropdown_menu__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__("
|
|
338
|
+
var _dropdown_menu__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__("./dropdown-menu");
|
|
339
339
|
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
340
340
|
for(var __WEBPACK_IMPORT_KEY__ in _dropdown_menu__WEBPACK_IMPORTED_MODULE_21__)if ("default" !== __WEBPACK_IMPORT_KEY__) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
341
341
|
return _dropdown_menu__WEBPACK_IMPORTED_MODULE_21__[key];
|
|
342
342
|
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
343
343
|
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
344
|
-
var _editable_cell__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__("
|
|
344
|
+
var _editable_cell__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__("./editable-cell");
|
|
345
345
|
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
346
346
|
for(var __WEBPACK_IMPORT_KEY__ in _editable_cell__WEBPACK_IMPORTED_MODULE_22__)if ("default" !== __WEBPACK_IMPORT_KEY__) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
347
347
|
return _editable_cell__WEBPACK_IMPORTED_MODULE_22__[key];
|
|
@@ -503,7 +503,7 @@ var __webpack_exports__ = {};
|
|
|
503
503
|
return _switch__WEBPACK_IMPORTED_MODULE_48__[key];
|
|
504
504
|
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
505
505
|
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
506
|
-
var _table__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__("
|
|
506
|
+
var _table__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__("./table");
|
|
507
507
|
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
508
508
|
for(var __WEBPACK_IMPORT_KEY__ in _table__WEBPACK_IMPORTED_MODULE_49__)if ("default" !== __WEBPACK_IMPORT_KEY__) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
509
509
|
return _table__WEBPACK_IMPORTED_MODULE_49__[key];
|
|
@@ -527,7 +527,7 @@ var __webpack_exports__ = {};
|
|
|
527
527
|
return _toggle_group__WEBPACK_IMPORTED_MODULE_52__[key];
|
|
528
528
|
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
529
529
|
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
530
|
-
var _toggle__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__("
|
|
530
|
+
var _toggle__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__("./toggle");
|
|
531
531
|
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
532
532
|
for(var __WEBPACK_IMPORT_KEY__ in _toggle__WEBPACK_IMPORTED_MODULE_53__)if ("default" !== __WEBPACK_IMPORT_KEY__) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
533
533
|
return _toggle__WEBPACK_IMPORTED_MODULE_53__[key];
|