@uipath/apollo-wind 0.10.0 → 0.11.0-pr295.af4e744
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/custom/canvas-studio.cjs +133 -0
- package/dist/components/custom/canvas-studio.d.ts +99 -0
- package/dist/components/custom/canvas-studio.js +93 -0
- package/dist/components/custom/canvas.cjs +44 -0
- package/dist/components/custom/canvas.d.ts +14 -0
- package/dist/components/custom/canvas.js +10 -0
- package/dist/components/custom/chat-composer.cjs +105 -0
- package/dist/components/custom/chat-composer.d.ts +15 -0
- package/dist/components/custom/chat-composer.js +71 -0
- package/dist/components/custom/chat-first-experience.cjs +87 -0
- package/dist/components/custom/chat-first-experience.d.ts +24 -0
- package/dist/components/custom/chat-first-experience.js +53 -0
- package/dist/components/custom/chat-prompt-suggestions.cjs +49 -0
- package/dist/components/custom/chat-prompt-suggestions.d.ts +18 -0
- package/dist/components/custom/chat-prompt-suggestions.js +15 -0
- package/dist/components/custom/chat-steps-view.cjs +308 -0
- package/dist/components/custom/chat-steps-view.d.ts +38 -0
- package/dist/components/custom/chat-steps-view.js +274 -0
- package/dist/components/custom/flow-node.cjs +76 -0
- package/dist/components/custom/flow-node.d.ts +20 -0
- package/dist/components/custom/flow-node.js +42 -0
- package/dist/components/custom/flow-properties-bar.cjs +103 -0
- package/dist/components/custom/flow-properties-bar.d.ts +21 -0
- package/dist/components/custom/flow-properties-bar.js +69 -0
- package/dist/components/custom/flow-properties-expanded.cjs +328 -0
- package/dist/components/custom/flow-properties-expanded.d.ts +21 -0
- package/dist/components/custom/flow-properties-expanded.js +294 -0
- package/dist/components/custom/flow-properties-simple.cjs +364 -0
- package/dist/components/custom/flow-properties-simple.d.ts +62 -0
- package/dist/components/custom/flow-properties-simple.js +330 -0
- package/dist/components/custom/flow-properties.cjs +56 -0
- package/dist/components/custom/flow-properties.d.ts +28 -0
- package/dist/components/custom/flow-properties.js +22 -0
- package/dist/components/custom/global-header.cjs +422 -0
- package/dist/components/custom/global-header.d.ts +38 -0
- package/dist/components/custom/global-header.js +388 -0
- package/dist/components/custom/grid-maestro.cjs +62 -0
- package/dist/components/custom/grid-maestro.d.ts +19 -0
- package/dist/components/custom/grid-maestro.js +22 -0
- package/dist/components/custom/page-header.cjs +92 -0
- package/dist/components/custom/page-header.d.ts +43 -0
- package/dist/components/custom/page-header.js +58 -0
- package/dist/components/custom/panel-delegate.cjs +285 -0
- package/dist/components/custom/panel-delegate.d.ts +34 -0
- package/dist/components/custom/panel-delegate.js +251 -0
- package/dist/components/custom/panel-flow.cjs +262 -0
- package/dist/components/custom/panel-flow.d.ts +38 -0
- package/dist/components/custom/panel-flow.js +225 -0
- package/dist/components/custom/panel-maestro.cjs +74 -0
- package/dist/components/custom/panel-maestro.d.ts +30 -0
- package/dist/components/custom/panel-maestro.js +40 -0
- package/dist/components/custom/panel-studio.cjs +122 -0
- package/dist/components/custom/panel-studio.d.ts +48 -0
- package/dist/components/custom/panel-studio.js +85 -0
- package/dist/components/custom/toolbar-canvas.cjs +124 -0
- package/dist/components/custom/toolbar-canvas.d.ts +15 -0
- package/dist/components/custom/toolbar-canvas.js +90 -0
- package/dist/components/custom/toolbar-view.cjs +121 -0
- package/dist/components/custom/toolbar-view.d.ts +14 -0
- package/dist/components/custom/toolbar-view.js +87 -0
- package/dist/components/custom/viewport-guard.cjs +92 -0
- package/dist/components/custom/viewport-guard.d.ts +23 -0
- package/dist/components/custom/viewport-guard.js +55 -0
- package/dist/components/forms/field-renderer.cjs +3 -1
- package/dist/components/forms/field-renderer.js +3 -1
- package/dist/components/forms/form-designer.cjs +13 -2
- package/dist/components/forms/form-designer.js +13 -2
- package/dist/components/forms/rules-engine.d.ts +1 -1
- package/dist/components/ui/breadcrumb.cjs +1 -2
- package/dist/components/ui/breadcrumb.js +1 -2
- package/dist/components/ui/button-group.cjs +5 -3
- package/dist/components/ui/button-group.d.ts +2 -2
- package/dist/components/ui/button-group.js +5 -3
- package/dist/components/ui/button.cjs +3 -3
- package/dist/components/ui/button.js +3 -3
- package/dist/components/ui/chart.cjs +223 -0
- package/dist/components/ui/chart.d.ts +40 -0
- package/dist/components/ui/chart.js +174 -0
- package/dist/components/ui/code-block.cjs +258 -0
- package/dist/components/ui/code-block.d.ts +48 -0
- package/dist/components/ui/code-block.js +207 -0
- package/dist/components/ui/data-table.cjs +22 -4
- package/dist/components/ui/data-table.d.ts +5 -2
- package/dist/components/ui/data-table.js +23 -5
- package/dist/components/ui/editable-cell.cjs +3 -10
- package/dist/components/ui/editable-cell.js +3 -10
- package/dist/components/ui/empty-state.cjs +17 -6
- package/dist/components/ui/empty-state.d.ts +7 -0
- package/dist/components/ui/empty-state.js +17 -6
- package/dist/components/ui/file-upload.cjs +8 -0
- package/dist/components/ui/file-upload.js +8 -0
- package/dist/components/ui/index.cjs +289 -149
- package/dist/components/ui/index.d.ts +2 -3
- package/dist/components/ui/index.js +2 -3
- package/dist/components/ui/multi-select.cjs +3 -10
- package/dist/components/ui/multi-select.js +3 -10
- package/dist/components/ui/pagination.cjs +0 -1
- package/dist/components/ui/pagination.js +0 -1
- package/dist/components/ui/resizable.d.ts +1 -1
- package/dist/components/ui/tree-view.cjs +1117 -0
- package/dist/components/ui/tree-view.d.ts +95 -0
- package/dist/components/ui/tree-view.js +1083 -0
- package/dist/foundation/Future/colors.cjs +92 -0
- package/dist/foundation/Future/colors.d.ts +132 -0
- package/dist/foundation/Future/colors.js +43 -0
- package/dist/foundation/Future/radius.cjs +46 -0
- package/dist/foundation/Future/radius.d.ts +33 -0
- package/dist/foundation/Future/radius.js +12 -0
- package/dist/foundation/Future/responsive.cjs +49 -0
- package/dist/foundation/Future/responsive.d.ts +40 -0
- package/dist/foundation/Future/responsive.js +12 -0
- package/dist/foundation/Future/shadows.cjs +48 -0
- package/dist/foundation/Future/shadows.d.ts +29 -0
- package/dist/foundation/Future/shadows.js +11 -0
- package/dist/foundation/Future/spacing.cjs +71 -0
- package/dist/foundation/Future/spacing.d.ts +80 -0
- package/dist/foundation/Future/spacing.js +31 -0
- package/dist/foundation/Future/strokes.cjs +59 -0
- package/dist/foundation/Future/strokes.d.ts +49 -0
- package/dist/foundation/Future/strokes.js +19 -0
- package/dist/foundation/Future/types.cjs +18 -0
- package/dist/foundation/Future/types.d.ts +25 -0
- package/dist/foundation/Future/types.js +0 -0
- package/dist/foundation/Future/typography.cjs +79 -0
- package/dist/foundation/Future/typography.d.ts +86 -0
- package/dist/foundation/Future/typography.js +33 -0
- package/dist/index.cjs +131 -221
- package/dist/index.d.ts +4 -3
- package/dist/index.js +3 -4
- package/dist/src/foundation/Future/themes.css +279 -0
- package/dist/styles.css +1941 -605
- package/dist/tailwind.css +874 -87
- package/dist/templates/Admin/settings-admin.d.ts +5 -0
- package/dist/templates/Admin/template-admin.d.ts +86 -0
- package/dist/templates/Delegate/template-delegate.d.ts +26 -0
- package/dist/templates/EmptyErrors/error-components.d.ts +3 -0
- package/dist/templates/Experiments/ideas-AnimatedGradientText.d.ts +23 -0
- package/dist/templates/Flow/template-flow.d.ts +57 -0
- package/dist/templates/Maestro/template-maestro.d.ts +52 -0
- package/dist/templates/Studio/template-studio.d.ts +102 -0
- package/dist/templates/{vscode-example.d.ts → VisualStudio/shell.d.ts} +1 -1
- package/package.json +12 -1
- package/dist/components/ui/menubar.cjs +0 -210
- package/dist/components/ui/menubar.d.ts +0 -28
- package/dist/components/ui/menubar.js +0 -131
- package/dist/components/ui/navigation-menu.cjs +0 -122
- package/dist/components/ui/navigation-menu.d.ts +0 -12
- package/dist/components/ui/navigation-menu.js +0 -64
- package/dist/examples/admin-layout-example.cjs +0 -490
- package/dist/examples/admin-layout-example.d.ts +0 -92
- package/dist/examples/admin-layout-example.js +0 -411
- package/dist/examples/app-shell-example.cjs +0 -452
- package/dist/examples/app-shell-example.d.ts +0 -52
- package/dist/examples/app-shell-example.js +0 -418
- package/dist/examples/dashboard-example.cjs +0 -590
- package/dist/examples/dashboard-example.d.ts +0 -11
- package/dist/examples/dashboard-example.js +0 -556
- package/dist/examples/data-management-example.cjs +0 -584
- package/dist/examples/data-management-example.d.ts +0 -1
- package/dist/examples/data-management-example.js +0 -550
- package/dist/examples/flow-editor-layout-example.cjs +0 -309
- package/dist/examples/flow-editor-layout-example.d.ts +0 -22
- package/dist/examples/flow-editor-layout-example.js +0 -269
- package/dist/examples/flow-start-example.cjs +0 -467
- package/dist/examples/flow-start-example.d.ts +0 -30
- package/dist/examples/flow-start-example.js +0 -433
- package/dist/examples/form-builder-example.cjs +0 -674
- package/dist/examples/form-builder-example.js +0 -640
- package/dist/examples/new-project-example.cjs +0 -550
- package/dist/examples/new-project-example.d.ts +0 -30
- package/dist/examples/new-project-example.js +0 -516
- package/dist/examples/settings-example.cjs +0 -864
- package/dist/examples/settings-example.d.ts +0 -1
- package/dist/examples/settings-example.js +0 -830
- package/dist/examples/vscode-example.cjs +0 -340
- package/dist/examples/vscode-example.d.ts +0 -80
- package/dist/examples/vscode-example.js +0 -270
- package/dist/templates/admin-layout-example.d.ts +0 -92
- package/dist/templates/app-shell-example.d.ts +0 -52
- package/dist/templates/dashboard-example.d.ts +0 -11
- package/dist/templates/data-management-example.d.ts +0 -1
- package/dist/templates/flow-editor-layout-example.d.ts +0 -22
- package/dist/templates/flow-start-example.d.ts +0 -30
- package/dist/templates/form-builder-example.d.ts +0 -1
- package/dist/templates/new-project-example.d.ts +0 -30
- package/dist/templates/settings-example.d.ts +0 -1
- /package/dist/{examples → templates/Forms}/form-builder-example.d.ts +0 -0
|
@@ -95,17 +95,10 @@ function EditableCell({ cell, onUpdate }) {
|
|
|
95
95
|
"aria-label": "Toggle"
|
|
96
96
|
})
|
|
97
97
|
});
|
|
98
|
-
const cellContent = isEditing ? renderEditMode() : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("
|
|
99
|
-
|
|
98
|
+
const cellContent = isEditing ? renderEditMode() : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
|
|
99
|
+
type: "button",
|
|
100
|
+
className: (0, index_cjs_namespaceObject.cn)('min-h-[32px] px-2 py-1.5 -mx-2 rounded cursor-pointer w-full text-left', 'hover:bg-muted/50 transition-colors', 'flex items-center bg-transparent border-0'),
|
|
100
101
|
onClick: ()=>setIsEditing(true),
|
|
101
|
-
onKeyDown: (e)=>{
|
|
102
|
-
if ('Enter' === e.key || ' ' === e.key) {
|
|
103
|
-
e.preventDefault();
|
|
104
|
-
setIsEditing(true);
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
tabIndex: 0,
|
|
108
|
-
role: "button",
|
|
109
102
|
"aria-label": `Edit ${cell.column.id}`,
|
|
110
103
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
111
104
|
className: (0, index_cjs_namespaceObject.cn)('truncate', !value && 'text-muted-foreground'),
|
|
@@ -66,17 +66,10 @@ function EditableCell({ cell, onUpdate }) {
|
|
|
66
66
|
"aria-label": "Toggle"
|
|
67
67
|
})
|
|
68
68
|
});
|
|
69
|
-
const cellContent = isEditing ? renderEditMode() : /*#__PURE__*/ jsx("
|
|
70
|
-
|
|
69
|
+
const cellContent = isEditing ? renderEditMode() : /*#__PURE__*/ jsx("button", {
|
|
70
|
+
type: "button",
|
|
71
|
+
className: cn('min-h-[32px] px-2 py-1.5 -mx-2 rounded cursor-pointer w-full text-left', 'hover:bg-muted/50 transition-colors', 'flex items-center bg-transparent border-0'),
|
|
71
72
|
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
73
|
"aria-label": `Edit ${cell.column.id}`,
|
|
81
74
|
children: /*#__PURE__*/ jsx("span", {
|
|
82
75
|
className: cn('truncate', !value && 'text-muted-foreground'),
|
|
@@ -30,25 +30,31 @@ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
|
30
30
|
const external_react_namespaceObject = require("react");
|
|
31
31
|
const external_button_cjs_namespaceObject = require("./button.cjs");
|
|
32
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)
|
|
33
|
+
const EmptyState = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ icon, code, title, description, action, secondaryAction, className, children, ...props }, ref)=>{
|
|
34
|
+
const hasSimpleActions = !children && (action || secondaryAction);
|
|
35
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
34
36
|
ref: ref,
|
|
35
37
|
className: (0, index_cjs_namespaceObject.cn)('flex flex-col items-center justify-center p-8 text-center', className),
|
|
36
38
|
...props,
|
|
37
39
|
children: [
|
|
38
40
|
icon && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
39
|
-
className: "mb-6 flex
|
|
41
|
+
className: "mb-6 flex items-center justify-center",
|
|
40
42
|
children: icon
|
|
41
43
|
}),
|
|
44
|
+
code && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h1", {
|
|
45
|
+
className: "text-[40px] font-bold tracking-[-0.8px] leading-none mb-4",
|
|
46
|
+
children: code
|
|
47
|
+
}),
|
|
42
48
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h3", {
|
|
43
49
|
className: "text-xl font-semibold tracking-tight",
|
|
44
50
|
children: title
|
|
45
51
|
}),
|
|
46
52
|
description && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
|
|
47
|
-
className: "mt-3
|
|
53
|
+
className: "mt-3 max-w-md text-sm text-muted-foreground leading-relaxed",
|
|
48
54
|
children: description
|
|
49
55
|
}),
|
|
50
|
-
|
|
51
|
-
className: "flex flex-wrap items-center justify-center gap-2",
|
|
56
|
+
hasSimpleActions && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
57
|
+
className: "mt-6 flex flex-wrap items-center justify-center gap-2",
|
|
52
58
|
children: [
|
|
53
59
|
action && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_button_cjs_namespaceObject.Button, {
|
|
54
60
|
onClick: action.onClick,
|
|
@@ -60,9 +66,14 @@ const EmptyState = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ ic
|
|
|
60
66
|
children: secondaryAction.label
|
|
61
67
|
})
|
|
62
68
|
]
|
|
69
|
+
}),
|
|
70
|
+
children && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
71
|
+
className: "mt-6 flex flex-wrap items-center justify-center gap-2",
|
|
72
|
+
children: children
|
|
63
73
|
})
|
|
64
74
|
]
|
|
65
|
-
})
|
|
75
|
+
});
|
|
76
|
+
});
|
|
66
77
|
EmptyState.displayName = 'EmptyState';
|
|
67
78
|
exports.EmptyState = __webpack_exports__.EmptyState;
|
|
68
79
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export interface EmptyStateProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/** Optional visual element displayed above the content (icon, illustration, video, etc.) */
|
|
3
4
|
icon?: React.ReactNode;
|
|
5
|
+
/** Optional large status code displayed above the title (e.g. "404", "500") */
|
|
6
|
+
code?: string;
|
|
7
|
+
/** Primary heading — always visible */
|
|
4
8
|
title: string;
|
|
9
|
+
/** Optional body text below the title */
|
|
5
10
|
description?: string;
|
|
11
|
+
/** Simple primary action — ignored when children are provided */
|
|
6
12
|
action?: {
|
|
7
13
|
label: string;
|
|
8
14
|
onClick: () => void;
|
|
9
15
|
};
|
|
16
|
+
/** Simple secondary action — ignored when children are provided */
|
|
10
17
|
secondaryAction?: {
|
|
11
18
|
label: string;
|
|
12
19
|
onClick: () => void;
|
|
@@ -2,25 +2,31 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { Button } from "./button.js";
|
|
4
4
|
import { cn } from "../../lib/index.js";
|
|
5
|
-
const EmptyState = /*#__PURE__*/ forwardRef(({ icon, title, description, action, secondaryAction, className, ...props }, ref)
|
|
5
|
+
const EmptyState = /*#__PURE__*/ forwardRef(({ icon, code, title, description, action, secondaryAction, className, children, ...props }, ref)=>{
|
|
6
|
+
const hasSimpleActions = !children && (action || secondaryAction);
|
|
7
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
6
8
|
ref: ref,
|
|
7
9
|
className: cn('flex flex-col items-center justify-center p-8 text-center', className),
|
|
8
10
|
...props,
|
|
9
11
|
children: [
|
|
10
12
|
icon && /*#__PURE__*/ jsx("div", {
|
|
11
|
-
className: "mb-6 flex
|
|
13
|
+
className: "mb-6 flex items-center justify-center",
|
|
12
14
|
children: icon
|
|
13
15
|
}),
|
|
16
|
+
code && /*#__PURE__*/ jsx("h1", {
|
|
17
|
+
className: "text-[40px] font-bold tracking-[-0.8px] leading-none mb-4",
|
|
18
|
+
children: code
|
|
19
|
+
}),
|
|
14
20
|
/*#__PURE__*/ jsx("h3", {
|
|
15
21
|
className: "text-xl font-semibold tracking-tight",
|
|
16
22
|
children: title
|
|
17
23
|
}),
|
|
18
24
|
description && /*#__PURE__*/ jsx("p", {
|
|
19
|
-
className: "mt-3
|
|
25
|
+
className: "mt-3 max-w-md text-sm text-muted-foreground leading-relaxed",
|
|
20
26
|
children: description
|
|
21
27
|
}),
|
|
22
|
-
|
|
23
|
-
className: "flex flex-wrap items-center justify-center gap-2",
|
|
28
|
+
hasSimpleActions && /*#__PURE__*/ jsxs("div", {
|
|
29
|
+
className: "mt-6 flex flex-wrap items-center justify-center gap-2",
|
|
24
30
|
children: [
|
|
25
31
|
action && /*#__PURE__*/ jsx(Button, {
|
|
26
32
|
onClick: action.onClick,
|
|
@@ -32,8 +38,13 @@ const EmptyState = /*#__PURE__*/ forwardRef(({ icon, title, description, action,
|
|
|
32
38
|
children: secondaryAction.label
|
|
33
39
|
})
|
|
34
40
|
]
|
|
41
|
+
}),
|
|
42
|
+
children && /*#__PURE__*/ jsx("div", {
|
|
43
|
+
className: "mt-6 flex flex-wrap items-center justify-center gap-2",
|
|
44
|
+
children: children
|
|
35
45
|
})
|
|
36
46
|
]
|
|
37
|
-
})
|
|
47
|
+
});
|
|
48
|
+
});
|
|
38
49
|
EmptyState.displayName = 'EmptyState';
|
|
39
50
|
export { EmptyState };
|
|
@@ -164,12 +164,20 @@ function FileUpload({ onFilesChange, accept, multiple = false, disabled = false,
|
|
|
164
164
|
className: (0, index_cjs_namespaceObject.cn)('w-full', className),
|
|
165
165
|
children: [
|
|
166
166
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
167
|
+
role: "group",
|
|
168
|
+
"aria-label": "File upload area",
|
|
167
169
|
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'),
|
|
168
170
|
onDragEnter: handleDragEnter,
|
|
169
171
|
onDragOver: handleDragOver,
|
|
170
172
|
onDragLeave: handleDragLeave,
|
|
171
173
|
onDrop: handleDrop,
|
|
172
174
|
onClick: handleClick,
|
|
175
|
+
onKeyDown: (e)=>{
|
|
176
|
+
if ('Enter' === e.key || ' ' === e.key) {
|
|
177
|
+
e.preventDefault();
|
|
178
|
+
handleClick();
|
|
179
|
+
}
|
|
180
|
+
},
|
|
173
181
|
children: [
|
|
174
182
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("input", {
|
|
175
183
|
ref: inputRef,
|
|
@@ -136,12 +136,20 @@ function FileUpload({ onFilesChange, accept, multiple = false, disabled = false,
|
|
|
136
136
|
className: cn('w-full', className),
|
|
137
137
|
children: [
|
|
138
138
|
/*#__PURE__*/ jsxs("div", {
|
|
139
|
+
role: "group",
|
|
140
|
+
"aria-label": "File upload area",
|
|
139
141
|
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'),
|
|
140
142
|
onDragEnter: handleDragEnter,
|
|
141
143
|
onDragOver: handleDragOver,
|
|
142
144
|
onDragLeave: handleDragLeave,
|
|
143
145
|
onDrop: handleDrop,
|
|
144
146
|
onClick: handleClick,
|
|
147
|
+
onKeyDown: (e)=>{
|
|
148
|
+
if ('Enter' === e.key || ' ' === e.key) {
|
|
149
|
+
e.preventDefault();
|
|
150
|
+
handleClick();
|
|
151
|
+
}
|
|
152
|
+
},
|
|
145
153
|
children: [
|
|
146
154
|
/*#__PURE__*/ jsx("input", {
|
|
147
155
|
ref: inputRef,
|