@uipath/apollo-wind 0.9.0 → 0.10.0-pr257.2a4b17b
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/forms/field-renderer.cjs +120 -69
- package/dist/components/forms/field-renderer.js +120 -69
- package/dist/components/forms/form-designer.cjs +2352 -1488
- package/dist/components/forms/form-designer.js +2353 -1489
- package/dist/components/forms/form-examples.cjs +10 -10
- package/dist/components/forms/form-examples.js +10 -10
- package/dist/components/forms/form-state-viewer.cjs +988 -433
- package/dist/components/forms/form-state-viewer.js +988 -433
- package/dist/components/forms/metadata-form.cjs +446 -170
- package/dist/components/forms/metadata-form.js +446 -170
- package/dist/components/forms/schema-viewer.cjs +173 -80
- package/dist/components/forms/schema-viewer.js +173 -80
- package/dist/components/ui/accordion.cjs +131 -27
- package/dist/components/ui/accordion.js +131 -27
- package/dist/components/ui/alert-dialog.cjs +273 -45
- package/dist/components/ui/alert-dialog.js +273 -45
- package/dist/components/ui/alert.cjs +106 -17
- package/dist/components/ui/alert.js +106 -17
- package/dist/components/ui/avatar.cjs +100 -15
- package/dist/components/ui/avatar.js +100 -15
- package/dist/components/ui/badge.cjs +36 -6
- package/dist/components/ui/badge.js +36 -6
- package/dist/components/ui/breadcrumb.cjs +258 -52
- package/dist/components/ui/breadcrumb.js +258 -52
- package/dist/components/ui/button-group.cjs +119 -19
- package/dist/components/ui/button-group.js +119 -19
- package/dist/components/ui/button.cjs +48 -8
- package/dist/components/ui/button.js +48 -8
- package/dist/components/ui/calendar.cjs +88 -30
- package/dist/components/ui/calendar.js +88 -30
- package/dist/components/ui/card.cjs +199 -30
- package/dist/components/ui/card.js +199 -30
- package/dist/components/ui/checkbox.cjs +42 -8
- package/dist/components/ui/checkbox.js +42 -8
- package/dist/components/ui/combobox.cjs +150 -53
- package/dist/components/ui/combobox.js +150 -53
- package/dist/components/ui/command.cjs +291 -53
- package/dist/components/ui/command.js +291 -53
- package/dist/components/ui/context-menu.cjs +370 -72
- package/dist/components/ui/context-menu.js +370 -72
- package/dist/components/ui/data-table.cjs +76 -39
- package/dist/components/ui/data-table.js +76 -39
- package/dist/components/ui/date-picker.cjs +179 -68
- package/dist/components/ui/date-picker.js +179 -68
- package/dist/components/ui/datetime-picker.cjs +225 -104
- package/dist/components/ui/datetime-picker.js +225 -104
- package/dist/components/ui/dialog.cjs +290 -78
- package/dist/components/ui/dialog.js +290 -78
- package/dist/components/ui/drawer.cjs +220 -39
- package/dist/components/ui/drawer.js +220 -39
- package/dist/components/ui/dropdown-menu.cjs +376 -73
- package/dist/components/ui/dropdown-menu.js +376 -73
- package/dist/components/ui/editable-cell.cjs +106 -42
- package/dist/components/ui/editable-cell.js +106 -42
- package/dist/components/ui/empty-state.cjs +106 -33
- package/dist/components/ui/empty-state.js +106 -33
- package/dist/components/ui/file-upload.cjs +405 -187
- package/dist/components/ui/file-upload.d.ts +3 -1
- package/dist/components/ui/file-upload.js +405 -187
- package/dist/components/ui/hover-card.cjs +46 -7
- package/dist/components/ui/hover-card.js +46 -7
- package/dist/components/ui/index.cjs +4 -4
- package/dist/components/ui/input.cjs +39 -6
- package/dist/components/ui/input.js +39 -6
- package/dist/components/ui/label.cjs +34 -5
- package/dist/components/ui/label.js +34 -5
- package/dist/components/ui/layout/column.cjs +209 -41
- package/dist/components/ui/layout/column.js +209 -41
- package/dist/components/ui/layout/grid.cjs +275 -60
- package/dist/components/ui/layout/grid.js +275 -60
- package/dist/components/ui/layout/row.cjs +209 -41
- package/dist/components/ui/layout/row.js +209 -41
- package/dist/components/ui/menubar.cjs +540 -106
- package/dist/components/ui/menubar.js +540 -106
- package/dist/components/ui/multi-select.cjs +289 -135
- package/dist/components/ui/multi-select.js +289 -135
- package/dist/components/ui/navigation-menu.cjs +244 -47
- package/dist/components/ui/navigation-menu.js +244 -47
- package/dist/components/ui/pagination.cjs +301 -65
- package/dist/components/ui/pagination.js +301 -65
- package/dist/components/ui/popover.cjs +48 -9
- package/dist/components/ui/popover.js +48 -9
- package/dist/components/ui/progress.cjs +48 -8
- package/dist/components/ui/progress.js +48 -8
- package/dist/components/ui/radio-group.cjs +74 -12
- package/dist/components/ui/radio-group.js +74 -12
- package/dist/components/ui/resizable.cjs +75 -10
- package/dist/components/ui/resizable.js +75 -10
- package/dist/components/ui/scroll-area.cjs +113 -21
- package/dist/components/ui/scroll-area.js +113 -21
- package/dist/components/ui/search.cjs +280 -98
- package/dist/components/ui/search.js +280 -98
- package/dist/components/ui/select.cjs +334 -68
- package/dist/components/ui/select.js +334 -68
- package/dist/components/ui/separator.cjs +48 -7
- package/dist/components/ui/separator.js +48 -7
- package/dist/components/ui/sheet.cjs +236 -50
- package/dist/components/ui/sheet.js +236 -50
- package/dist/components/ui/skeleton.cjs +31 -5
- package/dist/components/ui/skeleton.js +31 -5
- package/dist/components/ui/slider.cjs +71 -21
- package/dist/components/ui/slider.js +71 -21
- package/dist/components/ui/sonner.cjs +43 -15
- package/dist/components/ui/sonner.js +43 -15
- package/dist/components/ui/spinner.cjs +83 -21
- package/dist/components/ui/spinner.js +83 -21
- package/dist/components/ui/stats-card.cjs +169 -60
- package/dist/components/ui/stats-card.js +169 -60
- package/dist/components/ui/stepper.cjs +126 -57
- package/dist/components/ui/stepper.js +126 -57
- package/dist/components/ui/switch.cjs +42 -8
- package/dist/components/ui/switch.js +42 -8
- package/dist/components/ui/table.cjs +267 -42
- package/dist/components/ui/table.js +267 -42
- package/dist/components/ui/tabs.cjs +100 -15
- package/dist/components/ui/tabs.js +100 -15
- package/dist/components/ui/textarea.cjs +34 -5
- package/dist/components/ui/textarea.js +34 -5
- package/dist/components/ui/toggle-group.cjs +112 -19
- package/dist/components/ui/toggle-group.js +112 -19
- package/dist/components/ui/toggle.cjs +43 -6
- package/dist/components/ui/toggle.js +43 -6
- package/dist/components/ui/tooltip.cjs +40 -6
- package/dist/components/ui/tooltip.js +40 -6
- package/dist/examples/admin-layout-example.cjs +879 -347
- package/dist/examples/admin-layout-example.js +879 -347
- package/dist/examples/app-shell-example.cjs +14 -14
- package/dist/examples/app-shell-example.js +14 -14
- package/dist/examples/dashboard-example.cjs +495 -334
- package/dist/examples/dashboard-example.js +495 -334
- package/dist/examples/data-management-example.cjs +501 -303
- package/dist/examples/data-management-example.js +502 -304
- package/dist/examples/flow-editor-layout-example.cjs +435 -231
- package/dist/examples/flow-editor-layout-example.js +436 -232
- package/dist/examples/flow-start-example.cjs +508 -251
- package/dist/examples/flow-start-example.js +509 -252
- package/dist/examples/form-builder-example.cjs +1006 -602
- package/dist/examples/form-builder-example.js +1007 -603
- package/dist/examples/new-project-example.cjs +806 -474
- package/dist/examples/new-project-example.js +807 -475
- package/dist/examples/settings-example.cjs +792 -704
- package/dist/examples/settings-example.js +792 -704
- package/dist/examples/vscode-example.cjs +731 -236
- package/dist/examples/vscode-example.js +731 -236
- package/package.json +4 -1
|
@@ -1,98 +1,310 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
3
4
|
import { Close, Content, Description, Overlay, Portal, Root, Title, Trigger } from "@radix-ui/react-dialog";
|
|
4
5
|
import { XIcon } from "lucide-react";
|
|
5
6
|
import { forwardRef } from "react";
|
|
6
7
|
import { cn } from "../../lib/index.js";
|
|
7
|
-
function Dialog(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
function Dialog(t0) {
|
|
9
|
+
const $ = c(4);
|
|
10
|
+
let props;
|
|
11
|
+
if ($[0] !== t0) {
|
|
12
|
+
({ ...props } = t0);
|
|
13
|
+
$[0] = t0;
|
|
14
|
+
$[1] = props;
|
|
15
|
+
} else props = $[1];
|
|
16
|
+
let t1;
|
|
17
|
+
if ($[2] !== props) {
|
|
18
|
+
t1 = /*#__PURE__*/ jsx(Root, {
|
|
19
|
+
"data-slot": "dialog",
|
|
20
|
+
...props
|
|
21
|
+
});
|
|
22
|
+
$[2] = props;
|
|
23
|
+
$[3] = t1;
|
|
24
|
+
} else t1 = $[3];
|
|
25
|
+
return t1;
|
|
12
26
|
}
|
|
13
27
|
const dialog_DialogTrigger = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
28
|
+
const $ = c(3);
|
|
29
|
+
let t0;
|
|
30
|
+
if ($[0] !== props || $[1] !== ref) {
|
|
31
|
+
t0 = /*#__PURE__*/ jsx(Trigger, {
|
|
32
|
+
"data-slot": "dialog-trigger",
|
|
33
|
+
ref: ref,
|
|
34
|
+
...props
|
|
35
|
+
});
|
|
36
|
+
$[0] = props;
|
|
37
|
+
$[1] = ref;
|
|
38
|
+
$[2] = t0;
|
|
39
|
+
} else t0 = $[2];
|
|
40
|
+
return t0;
|
|
19
41
|
});
|
|
20
|
-
function DialogPortal(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
42
|
+
function DialogPortal(t0) {
|
|
43
|
+
const $ = c(4);
|
|
44
|
+
let props;
|
|
45
|
+
if ($[0] !== t0) {
|
|
46
|
+
({ ...props } = t0);
|
|
47
|
+
$[0] = t0;
|
|
48
|
+
$[1] = props;
|
|
49
|
+
} else props = $[1];
|
|
50
|
+
let t1;
|
|
51
|
+
if ($[2] !== props) {
|
|
52
|
+
t1 = /*#__PURE__*/ jsx(Portal, {
|
|
53
|
+
"data-slot": "dialog-portal",
|
|
54
|
+
...props
|
|
55
|
+
});
|
|
56
|
+
$[2] = props;
|
|
57
|
+
$[3] = t1;
|
|
58
|
+
} else t1 = $[3];
|
|
59
|
+
return t1;
|
|
25
60
|
}
|
|
26
61
|
const dialog_DialogClose = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
62
|
+
const $ = c(3);
|
|
63
|
+
let t0;
|
|
64
|
+
if ($[0] !== props || $[1] !== ref) {
|
|
65
|
+
t0 = /*#__PURE__*/ jsx(Close, {
|
|
66
|
+
"data-slot": "dialog-close",
|
|
67
|
+
ref: ref,
|
|
68
|
+
...props
|
|
69
|
+
});
|
|
70
|
+
$[0] = props;
|
|
71
|
+
$[1] = ref;
|
|
72
|
+
$[2] = t0;
|
|
73
|
+
} else t0 = $[2];
|
|
74
|
+
return t0;
|
|
32
75
|
});
|
|
33
|
-
const dialog_DialogOverlay = /*#__PURE__*/ forwardRef(function(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
...props
|
|
39
|
-
|
|
76
|
+
const dialog_DialogOverlay = /*#__PURE__*/ forwardRef(function(t0, ref) {
|
|
77
|
+
const $ = c(9);
|
|
78
|
+
let className;
|
|
79
|
+
let props;
|
|
80
|
+
if ($[0] !== t0) {
|
|
81
|
+
({ className, ...props } = t0);
|
|
82
|
+
$[0] = t0;
|
|
83
|
+
$[1] = className;
|
|
84
|
+
$[2] = props;
|
|
85
|
+
} else {
|
|
86
|
+
className = $[1];
|
|
87
|
+
props = $[2];
|
|
88
|
+
}
|
|
89
|
+
let t1;
|
|
90
|
+
if ($[3] !== className) {
|
|
91
|
+
t1 = cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed flex items-center justify-center inset-0 z-50 bg-black/50", className);
|
|
92
|
+
$[3] = className;
|
|
93
|
+
$[4] = t1;
|
|
94
|
+
} else t1 = $[4];
|
|
95
|
+
let t2;
|
|
96
|
+
if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
|
|
97
|
+
t2 = /*#__PURE__*/ jsx(Overlay, {
|
|
98
|
+
"data-slot": "dialog-overlay",
|
|
99
|
+
className: t1,
|
|
100
|
+
ref: ref,
|
|
101
|
+
...props
|
|
102
|
+
});
|
|
103
|
+
$[5] = props;
|
|
104
|
+
$[6] = ref;
|
|
105
|
+
$[7] = t1;
|
|
106
|
+
$[8] = t2;
|
|
107
|
+
} else t2 = $[8];
|
|
108
|
+
return t2;
|
|
40
109
|
});
|
|
41
|
-
const dialog_DialogContent = /*#__PURE__*/ forwardRef(function(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
110
|
+
const dialog_DialogContent = /*#__PURE__*/ forwardRef(function(t0, ref) {
|
|
111
|
+
const $ = c(15);
|
|
112
|
+
let children;
|
|
113
|
+
let className;
|
|
114
|
+
let props;
|
|
115
|
+
let t1;
|
|
116
|
+
if ($[0] !== t0) {
|
|
117
|
+
({ className, children, showCloseButton: t1, ...props } = t0);
|
|
118
|
+
$[0] = t0;
|
|
119
|
+
$[1] = children;
|
|
120
|
+
$[2] = className;
|
|
121
|
+
$[3] = props;
|
|
122
|
+
$[4] = t1;
|
|
123
|
+
} else {
|
|
124
|
+
children = $[1];
|
|
125
|
+
className = $[2];
|
|
126
|
+
props = $[3];
|
|
127
|
+
t1 = $[4];
|
|
128
|
+
}
|
|
129
|
+
const showCloseButton = void 0 === t1 ? true : t1;
|
|
130
|
+
let t2;
|
|
131
|
+
if ($[5] !== className) {
|
|
132
|
+
t2 = cn("bg-background 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 z-50 grid w-full max-w-[calc(100%-2rem)] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", className);
|
|
133
|
+
$[5] = className;
|
|
134
|
+
$[6] = t2;
|
|
135
|
+
} else t2 = $[6];
|
|
136
|
+
let t3;
|
|
137
|
+
if ($[7] !== showCloseButton) {
|
|
138
|
+
t3 = showCloseButton && /*#__PURE__*/ jsxs(Close, {
|
|
139
|
+
"data-slot": "dialog-close",
|
|
140
|
+
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
141
|
+
children: [
|
|
142
|
+
/*#__PURE__*/ jsx(XIcon, {}),
|
|
143
|
+
/*#__PURE__*/ jsx("span", {
|
|
144
|
+
className: "sr-only",
|
|
145
|
+
children: "Close"
|
|
146
|
+
})
|
|
147
|
+
]
|
|
148
|
+
});
|
|
149
|
+
$[7] = showCloseButton;
|
|
150
|
+
$[8] = t3;
|
|
151
|
+
} else t3 = $[8];
|
|
152
|
+
let t4;
|
|
153
|
+
if ($[9] !== children || $[10] !== props || $[11] !== ref || $[12] !== t2 || $[13] !== t3) {
|
|
154
|
+
t4 = /*#__PURE__*/ jsx(DialogPortal, {
|
|
155
|
+
"data-slot": "dialog-portal",
|
|
156
|
+
children: /*#__PURE__*/ jsx(dialog_DialogOverlay, {
|
|
157
|
+
children: /*#__PURE__*/ jsxs(Content, {
|
|
158
|
+
"data-slot": "dialog-content",
|
|
159
|
+
className: t2,
|
|
160
|
+
ref: ref,
|
|
161
|
+
...props,
|
|
162
|
+
children: [
|
|
163
|
+
children,
|
|
164
|
+
t3
|
|
165
|
+
]
|
|
166
|
+
})
|
|
64
167
|
})
|
|
65
|
-
})
|
|
66
|
-
|
|
168
|
+
});
|
|
169
|
+
$[9] = children;
|
|
170
|
+
$[10] = props;
|
|
171
|
+
$[11] = ref;
|
|
172
|
+
$[12] = t2;
|
|
173
|
+
$[13] = t3;
|
|
174
|
+
$[14] = t4;
|
|
175
|
+
} else t4 = $[14];
|
|
176
|
+
return t4;
|
|
67
177
|
});
|
|
68
|
-
function DialogHeader(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
178
|
+
function DialogHeader(t0) {
|
|
179
|
+
const $ = c(8);
|
|
180
|
+
let className;
|
|
181
|
+
let props;
|
|
182
|
+
if ($[0] !== t0) {
|
|
183
|
+
({ className, ...props } = t0);
|
|
184
|
+
$[0] = t0;
|
|
185
|
+
$[1] = className;
|
|
186
|
+
$[2] = props;
|
|
187
|
+
} else {
|
|
188
|
+
className = $[1];
|
|
189
|
+
props = $[2];
|
|
190
|
+
}
|
|
191
|
+
let t1;
|
|
192
|
+
if ($[3] !== className) {
|
|
193
|
+
t1 = cn("flex flex-col gap-2 text-center sm:text-left", className);
|
|
194
|
+
$[3] = className;
|
|
195
|
+
$[4] = t1;
|
|
196
|
+
} else t1 = $[4];
|
|
197
|
+
let t2;
|
|
198
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
199
|
+
t2 = /*#__PURE__*/ jsx("div", {
|
|
200
|
+
"data-slot": "dialog-header",
|
|
201
|
+
className: t1,
|
|
202
|
+
...props
|
|
203
|
+
});
|
|
204
|
+
$[5] = props;
|
|
205
|
+
$[6] = t1;
|
|
206
|
+
$[7] = t2;
|
|
207
|
+
} else t2 = $[7];
|
|
208
|
+
return t2;
|
|
74
209
|
}
|
|
75
|
-
function DialogFooter(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
210
|
+
function DialogFooter(t0) {
|
|
211
|
+
const $ = c(8);
|
|
212
|
+
let className;
|
|
213
|
+
let props;
|
|
214
|
+
if ($[0] !== t0) {
|
|
215
|
+
({ className, ...props } = t0);
|
|
216
|
+
$[0] = t0;
|
|
217
|
+
$[1] = className;
|
|
218
|
+
$[2] = props;
|
|
219
|
+
} else {
|
|
220
|
+
className = $[1];
|
|
221
|
+
props = $[2];
|
|
222
|
+
}
|
|
223
|
+
let t1;
|
|
224
|
+
if ($[3] !== className) {
|
|
225
|
+
t1 = cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className);
|
|
226
|
+
$[3] = className;
|
|
227
|
+
$[4] = t1;
|
|
228
|
+
} else t1 = $[4];
|
|
229
|
+
let t2;
|
|
230
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
231
|
+
t2 = /*#__PURE__*/ jsx("div", {
|
|
232
|
+
"data-slot": "dialog-footer",
|
|
233
|
+
className: t1,
|
|
234
|
+
...props
|
|
235
|
+
});
|
|
236
|
+
$[5] = props;
|
|
237
|
+
$[6] = t1;
|
|
238
|
+
$[7] = t2;
|
|
239
|
+
} else t2 = $[7];
|
|
240
|
+
return t2;
|
|
81
241
|
}
|
|
82
|
-
const dialog_DialogTitle = /*#__PURE__*/ forwardRef(function(
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
...props
|
|
88
|
-
|
|
242
|
+
const dialog_DialogTitle = /*#__PURE__*/ forwardRef(function(t0, ref) {
|
|
243
|
+
const $ = c(9);
|
|
244
|
+
let className;
|
|
245
|
+
let props;
|
|
246
|
+
if ($[0] !== t0) {
|
|
247
|
+
({ className, ...props } = t0);
|
|
248
|
+
$[0] = t0;
|
|
249
|
+
$[1] = className;
|
|
250
|
+
$[2] = props;
|
|
251
|
+
} else {
|
|
252
|
+
className = $[1];
|
|
253
|
+
props = $[2];
|
|
254
|
+
}
|
|
255
|
+
let t1;
|
|
256
|
+
if ($[3] !== className) {
|
|
257
|
+
t1 = cn("text-lg leading-none font-semibold", className);
|
|
258
|
+
$[3] = className;
|
|
259
|
+
$[4] = t1;
|
|
260
|
+
} else t1 = $[4];
|
|
261
|
+
let t2;
|
|
262
|
+
if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
|
|
263
|
+
t2 = /*#__PURE__*/ jsx(Title, {
|
|
264
|
+
"data-slot": "dialog-title",
|
|
265
|
+
className: t1,
|
|
266
|
+
ref: ref,
|
|
267
|
+
...props
|
|
268
|
+
});
|
|
269
|
+
$[5] = props;
|
|
270
|
+
$[6] = ref;
|
|
271
|
+
$[7] = t1;
|
|
272
|
+
$[8] = t2;
|
|
273
|
+
} else t2 = $[8];
|
|
274
|
+
return t2;
|
|
89
275
|
});
|
|
90
|
-
const dialog_DialogDescription = /*#__PURE__*/ forwardRef(function(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
...props
|
|
96
|
-
|
|
276
|
+
const dialog_DialogDescription = /*#__PURE__*/ forwardRef(function(t0, ref) {
|
|
277
|
+
const $ = c(9);
|
|
278
|
+
let className;
|
|
279
|
+
let props;
|
|
280
|
+
if ($[0] !== t0) {
|
|
281
|
+
({ className, ...props } = t0);
|
|
282
|
+
$[0] = t0;
|
|
283
|
+
$[1] = className;
|
|
284
|
+
$[2] = props;
|
|
285
|
+
} else {
|
|
286
|
+
className = $[1];
|
|
287
|
+
props = $[2];
|
|
288
|
+
}
|
|
289
|
+
let t1;
|
|
290
|
+
if ($[3] !== className) {
|
|
291
|
+
t1 = cn("text-muted-foreground text-sm", className);
|
|
292
|
+
$[3] = className;
|
|
293
|
+
$[4] = t1;
|
|
294
|
+
} else t1 = $[4];
|
|
295
|
+
let t2;
|
|
296
|
+
if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
|
|
297
|
+
t2 = /*#__PURE__*/ jsx(Description, {
|
|
298
|
+
"data-slot": "dialog-description",
|
|
299
|
+
className: t1,
|
|
300
|
+
ref: ref,
|
|
301
|
+
...props
|
|
302
|
+
});
|
|
303
|
+
$[5] = props;
|
|
304
|
+
$[6] = ref;
|
|
305
|
+
$[7] = t1;
|
|
306
|
+
$[8] = t2;
|
|
307
|
+
} else t2 = $[8];
|
|
308
|
+
return t2;
|
|
97
309
|
});
|
|
98
310
|
export { Dialog, dialog_DialogClose as DialogClose, dialog_DialogContent as DialogContent, dialog_DialogDescription as DialogDescription, DialogFooter, DialogHeader, dialog_DialogOverlay as DialogOverlay, DialogPortal, dialog_DialogTitle as DialogTitle, dialog_DialogTrigger as DialogTrigger };
|
|
@@ -37,6 +37,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
37
37
|
DrawerTitle: ()=>DrawerTitle
|
|
38
38
|
});
|
|
39
39
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
40
|
+
const compiler_runtime_namespaceObject = require("react/compiler-runtime");
|
|
40
41
|
const external_react_namespaceObject = require("react");
|
|
41
42
|
const external_vaul_namespaceObject = require("vaul");
|
|
42
43
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
@@ -44,50 +45,230 @@ const Drawer = external_vaul_namespaceObject.Drawer.Root;
|
|
|
44
45
|
const DrawerTrigger = external_vaul_namespaceObject.Drawer.Trigger;
|
|
45
46
|
const DrawerPortal = external_vaul_namespaceObject.Drawer.Portal;
|
|
46
47
|
const DrawerClose = external_vaul_namespaceObject.Drawer.Close;
|
|
47
|
-
const DrawerOverlay = /*#__PURE__*/ external_react_namespaceObject.forwardRef((
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
const DrawerOverlay = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
|
|
49
|
+
const $ = (0, compiler_runtime_namespaceObject.c)(9);
|
|
50
|
+
let className;
|
|
51
|
+
let props;
|
|
52
|
+
if ($[0] !== t0) {
|
|
53
|
+
({ className, ...props } = t0);
|
|
54
|
+
$[0] = t0;
|
|
55
|
+
$[1] = className;
|
|
56
|
+
$[2] = props;
|
|
57
|
+
} else {
|
|
58
|
+
className = $[1];
|
|
59
|
+
props = $[2];
|
|
60
|
+
}
|
|
61
|
+
let t1;
|
|
62
|
+
if ($[3] !== className) {
|
|
63
|
+
t1 = (0, index_cjs_namespaceObject.cn)("fixed inset-0 z-50 bg-black/80", className);
|
|
64
|
+
$[3] = className;
|
|
65
|
+
$[4] = t1;
|
|
66
|
+
} else t1 = $[4];
|
|
67
|
+
let t2;
|
|
68
|
+
if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
|
|
69
|
+
t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Overlay, {
|
|
70
|
+
ref: ref,
|
|
71
|
+
className: t1,
|
|
72
|
+
...props
|
|
73
|
+
});
|
|
74
|
+
$[5] = props;
|
|
75
|
+
$[6] = ref;
|
|
76
|
+
$[7] = t1;
|
|
77
|
+
$[8] = t2;
|
|
78
|
+
} else t2 = $[8];
|
|
79
|
+
return t2;
|
|
80
|
+
});
|
|
52
81
|
DrawerOverlay.displayName = external_vaul_namespaceObject.Drawer.Overlay.displayName;
|
|
53
|
-
const DrawerContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef((
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
]
|
|
68
|
-
}
|
|
82
|
+
const DrawerContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
|
|
83
|
+
const $ = (0, compiler_runtime_namespaceObject.c)(13);
|
|
84
|
+
let children;
|
|
85
|
+
let className;
|
|
86
|
+
let props;
|
|
87
|
+
if ($[0] !== t0) {
|
|
88
|
+
({ className, children, ...props } = t0);
|
|
89
|
+
$[0] = t0;
|
|
90
|
+
$[1] = children;
|
|
91
|
+
$[2] = className;
|
|
92
|
+
$[3] = props;
|
|
93
|
+
} else {
|
|
94
|
+
children = $[1];
|
|
95
|
+
className = $[2];
|
|
96
|
+
props = $[3];
|
|
97
|
+
}
|
|
98
|
+
let t1;
|
|
99
|
+
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
100
|
+
t1 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(DrawerOverlay, {});
|
|
101
|
+
$[4] = t1;
|
|
102
|
+
} else t1 = $[4];
|
|
103
|
+
let t2;
|
|
104
|
+
if ($[5] !== className) {
|
|
105
|
+
t2 = (0, index_cjs_namespaceObject.cn)("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background", className);
|
|
106
|
+
$[5] = className;
|
|
107
|
+
$[6] = t2;
|
|
108
|
+
} else t2 = $[6];
|
|
109
|
+
let t3;
|
|
110
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
111
|
+
t3 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
112
|
+
className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"
|
|
113
|
+
});
|
|
114
|
+
$[7] = t3;
|
|
115
|
+
} else t3 = $[7];
|
|
116
|
+
let t4;
|
|
117
|
+
if ($[8] !== children || $[9] !== props || $[10] !== ref || $[11] !== t2) {
|
|
118
|
+
t4 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(DrawerPortal, {
|
|
119
|
+
children: [
|
|
120
|
+
t1,
|
|
121
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_vaul_namespaceObject.Drawer.Content, {
|
|
122
|
+
ref: ref,
|
|
123
|
+
className: t2,
|
|
124
|
+
...props,
|
|
125
|
+
children: [
|
|
126
|
+
t3,
|
|
127
|
+
children
|
|
128
|
+
]
|
|
129
|
+
})
|
|
130
|
+
]
|
|
131
|
+
});
|
|
132
|
+
$[8] = children;
|
|
133
|
+
$[9] = props;
|
|
134
|
+
$[10] = ref;
|
|
135
|
+
$[11] = t2;
|
|
136
|
+
$[12] = t4;
|
|
137
|
+
} else t4 = $[12];
|
|
138
|
+
return t4;
|
|
139
|
+
});
|
|
69
140
|
DrawerContent.displayName = 'DrawerContent';
|
|
70
|
-
const DrawerHeader = (
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
141
|
+
const DrawerHeader = (t0)=>{
|
|
142
|
+
const $ = (0, compiler_runtime_namespaceObject.c)(8);
|
|
143
|
+
let className;
|
|
144
|
+
let props;
|
|
145
|
+
if ($[0] !== t0) {
|
|
146
|
+
({ className, ...props } = t0);
|
|
147
|
+
$[0] = t0;
|
|
148
|
+
$[1] = className;
|
|
149
|
+
$[2] = props;
|
|
150
|
+
} else {
|
|
151
|
+
className = $[1];
|
|
152
|
+
props = $[2];
|
|
153
|
+
}
|
|
154
|
+
let t1;
|
|
155
|
+
if ($[3] !== className) {
|
|
156
|
+
t1 = (0, index_cjs_namespaceObject.cn)("grid gap-1.5 p-4 text-center sm:text-left", className);
|
|
157
|
+
$[3] = className;
|
|
158
|
+
$[4] = t1;
|
|
159
|
+
} else t1 = $[4];
|
|
160
|
+
let t2;
|
|
161
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
162
|
+
t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
163
|
+
className: t1,
|
|
164
|
+
...props
|
|
165
|
+
});
|
|
166
|
+
$[5] = props;
|
|
167
|
+
$[6] = t1;
|
|
168
|
+
$[7] = t2;
|
|
169
|
+
} else t2 = $[7];
|
|
170
|
+
return t2;
|
|
171
|
+
};
|
|
74
172
|
DrawerHeader.displayName = 'DrawerHeader';
|
|
75
|
-
const DrawerFooter = (
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
173
|
+
const DrawerFooter = (t0)=>{
|
|
174
|
+
const $ = (0, compiler_runtime_namespaceObject.c)(8);
|
|
175
|
+
let className;
|
|
176
|
+
let props;
|
|
177
|
+
if ($[0] !== t0) {
|
|
178
|
+
({ className, ...props } = t0);
|
|
179
|
+
$[0] = t0;
|
|
180
|
+
$[1] = className;
|
|
181
|
+
$[2] = props;
|
|
182
|
+
} else {
|
|
183
|
+
className = $[1];
|
|
184
|
+
props = $[2];
|
|
185
|
+
}
|
|
186
|
+
let t1;
|
|
187
|
+
if ($[3] !== className) {
|
|
188
|
+
t1 = (0, index_cjs_namespaceObject.cn)("mt-auto flex flex-col gap-2 p-4", className);
|
|
189
|
+
$[3] = className;
|
|
190
|
+
$[4] = t1;
|
|
191
|
+
} else t1 = $[4];
|
|
192
|
+
let t2;
|
|
193
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
194
|
+
t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
195
|
+
className: t1,
|
|
196
|
+
...props
|
|
197
|
+
});
|
|
198
|
+
$[5] = props;
|
|
199
|
+
$[6] = t1;
|
|
200
|
+
$[7] = t2;
|
|
201
|
+
} else t2 = $[7];
|
|
202
|
+
return t2;
|
|
203
|
+
};
|
|
79
204
|
DrawerFooter.displayName = 'DrawerFooter';
|
|
80
|
-
const DrawerTitle = /*#__PURE__*/ external_react_namespaceObject.forwardRef((
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
205
|
+
const DrawerTitle = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
|
|
206
|
+
const $ = (0, compiler_runtime_namespaceObject.c)(9);
|
|
207
|
+
let className;
|
|
208
|
+
let props;
|
|
209
|
+
if ($[0] !== t0) {
|
|
210
|
+
({ className, ...props } = t0);
|
|
211
|
+
$[0] = t0;
|
|
212
|
+
$[1] = className;
|
|
213
|
+
$[2] = props;
|
|
214
|
+
} else {
|
|
215
|
+
className = $[1];
|
|
216
|
+
props = $[2];
|
|
217
|
+
}
|
|
218
|
+
let t1;
|
|
219
|
+
if ($[3] !== className) {
|
|
220
|
+
t1 = (0, index_cjs_namespaceObject.cn)("text-lg font-semibold leading-none tracking-tight", className);
|
|
221
|
+
$[3] = className;
|
|
222
|
+
$[4] = t1;
|
|
223
|
+
} else t1 = $[4];
|
|
224
|
+
let t2;
|
|
225
|
+
if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
|
|
226
|
+
t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Title, {
|
|
227
|
+
ref: ref,
|
|
228
|
+
className: t1,
|
|
229
|
+
...props
|
|
230
|
+
});
|
|
231
|
+
$[5] = props;
|
|
232
|
+
$[6] = ref;
|
|
233
|
+
$[7] = t1;
|
|
234
|
+
$[8] = t2;
|
|
235
|
+
} else t2 = $[8];
|
|
236
|
+
return t2;
|
|
237
|
+
});
|
|
85
238
|
DrawerTitle.displayName = external_vaul_namespaceObject.Drawer.Title.displayName;
|
|
86
|
-
const DrawerDescription = /*#__PURE__*/ external_react_namespaceObject.forwardRef((
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
239
|
+
const DrawerDescription = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
|
|
240
|
+
const $ = (0, compiler_runtime_namespaceObject.c)(9);
|
|
241
|
+
let className;
|
|
242
|
+
let props;
|
|
243
|
+
if ($[0] !== t0) {
|
|
244
|
+
({ className, ...props } = t0);
|
|
245
|
+
$[0] = t0;
|
|
246
|
+
$[1] = className;
|
|
247
|
+
$[2] = props;
|
|
248
|
+
} else {
|
|
249
|
+
className = $[1];
|
|
250
|
+
props = $[2];
|
|
251
|
+
}
|
|
252
|
+
let t1;
|
|
253
|
+
if ($[3] !== className) {
|
|
254
|
+
t1 = (0, index_cjs_namespaceObject.cn)("text-sm text-muted-foreground", className);
|
|
255
|
+
$[3] = className;
|
|
256
|
+
$[4] = t1;
|
|
257
|
+
} else t1 = $[4];
|
|
258
|
+
let t2;
|
|
259
|
+
if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
|
|
260
|
+
t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Description, {
|
|
261
|
+
ref: ref,
|
|
262
|
+
className: t1,
|
|
263
|
+
...props
|
|
264
|
+
});
|
|
265
|
+
$[5] = props;
|
|
266
|
+
$[6] = ref;
|
|
267
|
+
$[7] = t1;
|
|
268
|
+
$[8] = t2;
|
|
269
|
+
} else t2 = $[8];
|
|
270
|
+
return t2;
|
|
271
|
+
});
|
|
91
272
|
DrawerDescription.displayName = external_vaul_namespaceObject.Drawer.Description.displayName;
|
|
92
273
|
exports.Drawer = __webpack_exports__.Drawer;
|
|
93
274
|
exports.DrawerClose = __webpack_exports__.DrawerClose;
|