@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.
Files changed (145) hide show
  1. package/dist/components/forms/field-renderer.cjs +120 -69
  2. package/dist/components/forms/field-renderer.js +120 -69
  3. package/dist/components/forms/form-designer.cjs +2352 -1488
  4. package/dist/components/forms/form-designer.js +2353 -1489
  5. package/dist/components/forms/form-examples.cjs +10 -10
  6. package/dist/components/forms/form-examples.js +10 -10
  7. package/dist/components/forms/form-state-viewer.cjs +988 -433
  8. package/dist/components/forms/form-state-viewer.js +988 -433
  9. package/dist/components/forms/metadata-form.cjs +446 -170
  10. package/dist/components/forms/metadata-form.js +446 -170
  11. package/dist/components/forms/schema-viewer.cjs +173 -80
  12. package/dist/components/forms/schema-viewer.js +173 -80
  13. package/dist/components/ui/accordion.cjs +131 -27
  14. package/dist/components/ui/accordion.js +131 -27
  15. package/dist/components/ui/alert-dialog.cjs +273 -45
  16. package/dist/components/ui/alert-dialog.js +273 -45
  17. package/dist/components/ui/alert.cjs +106 -17
  18. package/dist/components/ui/alert.js +106 -17
  19. package/dist/components/ui/avatar.cjs +100 -15
  20. package/dist/components/ui/avatar.js +100 -15
  21. package/dist/components/ui/badge.cjs +36 -6
  22. package/dist/components/ui/badge.js +36 -6
  23. package/dist/components/ui/breadcrumb.cjs +258 -52
  24. package/dist/components/ui/breadcrumb.js +258 -52
  25. package/dist/components/ui/button-group.cjs +119 -19
  26. package/dist/components/ui/button-group.js +119 -19
  27. package/dist/components/ui/button.cjs +48 -8
  28. package/dist/components/ui/button.js +48 -8
  29. package/dist/components/ui/calendar.cjs +88 -30
  30. package/dist/components/ui/calendar.js +88 -30
  31. package/dist/components/ui/card.cjs +199 -30
  32. package/dist/components/ui/card.js +199 -30
  33. package/dist/components/ui/checkbox.cjs +42 -8
  34. package/dist/components/ui/checkbox.js +42 -8
  35. package/dist/components/ui/combobox.cjs +150 -53
  36. package/dist/components/ui/combobox.js +150 -53
  37. package/dist/components/ui/command.cjs +291 -53
  38. package/dist/components/ui/command.js +291 -53
  39. package/dist/components/ui/context-menu.cjs +370 -72
  40. package/dist/components/ui/context-menu.js +370 -72
  41. package/dist/components/ui/data-table.cjs +76 -39
  42. package/dist/components/ui/data-table.js +76 -39
  43. package/dist/components/ui/date-picker.cjs +179 -68
  44. package/dist/components/ui/date-picker.js +179 -68
  45. package/dist/components/ui/datetime-picker.cjs +225 -104
  46. package/dist/components/ui/datetime-picker.js +225 -104
  47. package/dist/components/ui/dialog.cjs +290 -78
  48. package/dist/components/ui/dialog.js +290 -78
  49. package/dist/components/ui/drawer.cjs +220 -39
  50. package/dist/components/ui/drawer.js +220 -39
  51. package/dist/components/ui/dropdown-menu.cjs +376 -73
  52. package/dist/components/ui/dropdown-menu.js +376 -73
  53. package/dist/components/ui/editable-cell.cjs +106 -42
  54. package/dist/components/ui/editable-cell.js +106 -42
  55. package/dist/components/ui/empty-state.cjs +106 -33
  56. package/dist/components/ui/empty-state.js +106 -33
  57. package/dist/components/ui/file-upload.cjs +405 -187
  58. package/dist/components/ui/file-upload.d.ts +3 -1
  59. package/dist/components/ui/file-upload.js +405 -187
  60. package/dist/components/ui/hover-card.cjs +46 -7
  61. package/dist/components/ui/hover-card.js +46 -7
  62. package/dist/components/ui/index.cjs +4 -4
  63. package/dist/components/ui/input.cjs +39 -6
  64. package/dist/components/ui/input.js +39 -6
  65. package/dist/components/ui/label.cjs +34 -5
  66. package/dist/components/ui/label.js +34 -5
  67. package/dist/components/ui/layout/column.cjs +209 -41
  68. package/dist/components/ui/layout/column.js +209 -41
  69. package/dist/components/ui/layout/grid.cjs +275 -60
  70. package/dist/components/ui/layout/grid.js +275 -60
  71. package/dist/components/ui/layout/row.cjs +209 -41
  72. package/dist/components/ui/layout/row.js +209 -41
  73. package/dist/components/ui/menubar.cjs +540 -106
  74. package/dist/components/ui/menubar.js +540 -106
  75. package/dist/components/ui/multi-select.cjs +289 -135
  76. package/dist/components/ui/multi-select.js +289 -135
  77. package/dist/components/ui/navigation-menu.cjs +244 -47
  78. package/dist/components/ui/navigation-menu.js +244 -47
  79. package/dist/components/ui/pagination.cjs +301 -65
  80. package/dist/components/ui/pagination.js +301 -65
  81. package/dist/components/ui/popover.cjs +48 -9
  82. package/dist/components/ui/popover.js +48 -9
  83. package/dist/components/ui/progress.cjs +48 -8
  84. package/dist/components/ui/progress.js +48 -8
  85. package/dist/components/ui/radio-group.cjs +74 -12
  86. package/dist/components/ui/radio-group.js +74 -12
  87. package/dist/components/ui/resizable.cjs +75 -10
  88. package/dist/components/ui/resizable.js +75 -10
  89. package/dist/components/ui/scroll-area.cjs +113 -21
  90. package/dist/components/ui/scroll-area.js +113 -21
  91. package/dist/components/ui/search.cjs +280 -98
  92. package/dist/components/ui/search.js +280 -98
  93. package/dist/components/ui/select.cjs +334 -68
  94. package/dist/components/ui/select.js +334 -68
  95. package/dist/components/ui/separator.cjs +48 -7
  96. package/dist/components/ui/separator.js +48 -7
  97. package/dist/components/ui/sheet.cjs +236 -50
  98. package/dist/components/ui/sheet.js +236 -50
  99. package/dist/components/ui/skeleton.cjs +31 -5
  100. package/dist/components/ui/skeleton.js +31 -5
  101. package/dist/components/ui/slider.cjs +71 -21
  102. package/dist/components/ui/slider.js +71 -21
  103. package/dist/components/ui/sonner.cjs +43 -15
  104. package/dist/components/ui/sonner.js +43 -15
  105. package/dist/components/ui/spinner.cjs +83 -21
  106. package/dist/components/ui/spinner.js +83 -21
  107. package/dist/components/ui/stats-card.cjs +169 -60
  108. package/dist/components/ui/stats-card.js +169 -60
  109. package/dist/components/ui/stepper.cjs +126 -57
  110. package/dist/components/ui/stepper.js +126 -57
  111. package/dist/components/ui/switch.cjs +42 -8
  112. package/dist/components/ui/switch.js +42 -8
  113. package/dist/components/ui/table.cjs +267 -42
  114. package/dist/components/ui/table.js +267 -42
  115. package/dist/components/ui/tabs.cjs +100 -15
  116. package/dist/components/ui/tabs.js +100 -15
  117. package/dist/components/ui/textarea.cjs +34 -5
  118. package/dist/components/ui/textarea.js +34 -5
  119. package/dist/components/ui/toggle-group.cjs +112 -19
  120. package/dist/components/ui/toggle-group.js +112 -19
  121. package/dist/components/ui/toggle.cjs +43 -6
  122. package/dist/components/ui/toggle.js +43 -6
  123. package/dist/components/ui/tooltip.cjs +40 -6
  124. package/dist/components/ui/tooltip.js +40 -6
  125. package/dist/examples/admin-layout-example.cjs +879 -347
  126. package/dist/examples/admin-layout-example.js +879 -347
  127. package/dist/examples/app-shell-example.cjs +14 -14
  128. package/dist/examples/app-shell-example.js +14 -14
  129. package/dist/examples/dashboard-example.cjs +495 -334
  130. package/dist/examples/dashboard-example.js +495 -334
  131. package/dist/examples/data-management-example.cjs +501 -303
  132. package/dist/examples/data-management-example.js +502 -304
  133. package/dist/examples/flow-editor-layout-example.cjs +435 -231
  134. package/dist/examples/flow-editor-layout-example.js +436 -232
  135. package/dist/examples/flow-start-example.cjs +508 -251
  136. package/dist/examples/flow-start-example.js +509 -252
  137. package/dist/examples/form-builder-example.cjs +1006 -602
  138. package/dist/examples/form-builder-example.js +1007 -603
  139. package/dist/examples/new-project-example.cjs +806 -474
  140. package/dist/examples/new-project-example.js +807 -475
  141. package/dist/examples/settings-example.cjs +792 -704
  142. package/dist/examples/settings-example.js +792 -704
  143. package/dist/examples/vscode-example.cjs +731 -236
  144. package/dist/examples/vscode-example.js +731 -236
  145. package/package.json +4 -1
@@ -37,6 +37,7 @@ __webpack_require__.d(__webpack_exports__, {
37
37
  AlertDialogAction: ()=>AlertDialogAction
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_button_cjs_namespaceObject = require("./button.cjs");
42
43
  const index_cjs_namespaceObject = require("../../lib/index.cjs");
@@ -44,58 +45,285 @@ const react_alert_dialog_namespaceObject = require("@radix-ui/react-alert-dialog
44
45
  const AlertDialog = react_alert_dialog_namespaceObject.Root;
45
46
  const AlertDialogTrigger = react_alert_dialog_namespaceObject.Trigger;
46
47
  const AlertDialogPortal = react_alert_dialog_namespaceObject.Portal;
47
- const AlertDialogOverlay = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Overlay, {
48
- className: (0, index_cjs_namespaceObject.cn)('fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0', className),
49
- ...props,
50
- ref: ref
51
- }));
48
+ const AlertDialogOverlay = /*#__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 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", 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)(react_alert_dialog_namespaceObject.Overlay, {
70
+ className: t1,
71
+ ...props,
72
+ ref: ref
73
+ });
74
+ $[5] = props;
75
+ $[6] = ref;
76
+ $[7] = t1;
77
+ $[8] = t2;
78
+ } else t2 = $[8];
79
+ return t2;
80
+ });
52
81
  AlertDialogOverlay.displayName = react_alert_dialog_namespaceObject.Overlay.displayName;
53
- const AlertDialogContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(AlertDialogPortal, {
54
- children: [
55
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(AlertDialogOverlay, {}),
56
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Content, {
57
- ref: ref,
58
- className: (0, index_cjs_namespaceObject.cn)('fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg', className),
59
- ...props
60
- })
61
- ]
62
- }));
82
+ const AlertDialogContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
83
+ const $ = (0, compiler_runtime_namespaceObject.c)(10);
84
+ let className;
85
+ let props;
86
+ if ($[0] !== t0) {
87
+ ({ className, ...props } = t0);
88
+ $[0] = t0;
89
+ $[1] = className;
90
+ $[2] = props;
91
+ } else {
92
+ className = $[1];
93
+ props = $[2];
94
+ }
95
+ let t1;
96
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
97
+ t1 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(AlertDialogOverlay, {});
98
+ $[3] = t1;
99
+ } else t1 = $[3];
100
+ let t2;
101
+ if ($[4] !== className) {
102
+ t2 = (0, index_cjs_namespaceObject.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg", className);
103
+ $[4] = className;
104
+ $[5] = t2;
105
+ } else t2 = $[5];
106
+ let t3;
107
+ if ($[6] !== props || $[7] !== ref || $[8] !== t2) {
108
+ t3 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(AlertDialogPortal, {
109
+ children: [
110
+ t1,
111
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Content, {
112
+ ref: ref,
113
+ className: t2,
114
+ ...props
115
+ })
116
+ ]
117
+ });
118
+ $[6] = props;
119
+ $[7] = ref;
120
+ $[8] = t2;
121
+ $[9] = t3;
122
+ } else t3 = $[9];
123
+ return t3;
124
+ });
63
125
  AlertDialogContent.displayName = react_alert_dialog_namespaceObject.Content.displayName;
64
- const AlertDialogHeader = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
65
- className: (0, index_cjs_namespaceObject.cn)('flex flex-col space-y-2 text-center sm:text-left', className),
66
- ...props
67
- });
126
+ const AlertDialogHeader = (t0)=>{
127
+ const $ = (0, compiler_runtime_namespaceObject.c)(8);
128
+ let className;
129
+ let props;
130
+ if ($[0] !== t0) {
131
+ ({ className, ...props } = t0);
132
+ $[0] = t0;
133
+ $[1] = className;
134
+ $[2] = props;
135
+ } else {
136
+ className = $[1];
137
+ props = $[2];
138
+ }
139
+ let t1;
140
+ if ($[3] !== className) {
141
+ t1 = (0, index_cjs_namespaceObject.cn)("flex flex-col space-y-2 text-center sm:text-left", className);
142
+ $[3] = className;
143
+ $[4] = t1;
144
+ } else t1 = $[4];
145
+ let t2;
146
+ if ($[5] !== props || $[6] !== t1) {
147
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
148
+ className: t1,
149
+ ...props
150
+ });
151
+ $[5] = props;
152
+ $[6] = t1;
153
+ $[7] = t2;
154
+ } else t2 = $[7];
155
+ return t2;
156
+ };
68
157
  AlertDialogHeader.displayName = 'AlertDialogHeader';
69
- const AlertDialogFooter = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
70
- className: (0, index_cjs_namespaceObject.cn)('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className),
71
- ...props
72
- });
158
+ const AlertDialogFooter = (t0)=>{
159
+ const $ = (0, compiler_runtime_namespaceObject.c)(8);
160
+ let className;
161
+ let props;
162
+ if ($[0] !== t0) {
163
+ ({ className, ...props } = t0);
164
+ $[0] = t0;
165
+ $[1] = className;
166
+ $[2] = props;
167
+ } else {
168
+ className = $[1];
169
+ props = $[2];
170
+ }
171
+ let t1;
172
+ if ($[3] !== className) {
173
+ t1 = (0, index_cjs_namespaceObject.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className);
174
+ $[3] = className;
175
+ $[4] = t1;
176
+ } else t1 = $[4];
177
+ let t2;
178
+ if ($[5] !== props || $[6] !== t1) {
179
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
180
+ className: t1,
181
+ ...props
182
+ });
183
+ $[5] = props;
184
+ $[6] = t1;
185
+ $[7] = t2;
186
+ } else t2 = $[7];
187
+ return t2;
188
+ };
73
189
  AlertDialogFooter.displayName = 'AlertDialogFooter';
74
- const AlertDialogTitle = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Title, {
75
- ref: ref,
76
- className: (0, index_cjs_namespaceObject.cn)('text-lg font-semibold', className),
77
- ...props
78
- }));
190
+ const AlertDialogTitle = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
191
+ const $ = (0, compiler_runtime_namespaceObject.c)(9);
192
+ let className;
193
+ let props;
194
+ if ($[0] !== t0) {
195
+ ({ className, ...props } = t0);
196
+ $[0] = t0;
197
+ $[1] = className;
198
+ $[2] = props;
199
+ } else {
200
+ className = $[1];
201
+ props = $[2];
202
+ }
203
+ let t1;
204
+ if ($[3] !== className) {
205
+ t1 = (0, index_cjs_namespaceObject.cn)("text-lg font-semibold", className);
206
+ $[3] = className;
207
+ $[4] = t1;
208
+ } else t1 = $[4];
209
+ let t2;
210
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
211
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Title, {
212
+ ref: ref,
213
+ className: t1,
214
+ ...props
215
+ });
216
+ $[5] = props;
217
+ $[6] = ref;
218
+ $[7] = t1;
219
+ $[8] = t2;
220
+ } else t2 = $[8];
221
+ return t2;
222
+ });
79
223
  AlertDialogTitle.displayName = react_alert_dialog_namespaceObject.Title.displayName;
80
- const AlertDialogDescription = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Description, {
81
- ref: ref,
82
- className: (0, index_cjs_namespaceObject.cn)('text-sm text-muted-foreground', className),
83
- ...props
84
- }));
224
+ const AlertDialogDescription = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
225
+ const $ = (0, compiler_runtime_namespaceObject.c)(9);
226
+ let className;
227
+ let props;
228
+ if ($[0] !== t0) {
229
+ ({ className, ...props } = t0);
230
+ $[0] = t0;
231
+ $[1] = className;
232
+ $[2] = props;
233
+ } else {
234
+ className = $[1];
235
+ props = $[2];
236
+ }
237
+ let t1;
238
+ if ($[3] !== className) {
239
+ t1 = (0, index_cjs_namespaceObject.cn)("text-sm text-muted-foreground", className);
240
+ $[3] = className;
241
+ $[4] = t1;
242
+ } else t1 = $[4];
243
+ let t2;
244
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
245
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Description, {
246
+ ref: ref,
247
+ className: t1,
248
+ ...props
249
+ });
250
+ $[5] = props;
251
+ $[6] = ref;
252
+ $[7] = t1;
253
+ $[8] = t2;
254
+ } else t2 = $[8];
255
+ return t2;
256
+ });
85
257
  AlertDialogDescription.displayName = react_alert_dialog_namespaceObject.Description.displayName;
86
- const AlertDialogAction = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Action, {
87
- ref: ref,
88
- className: (0, index_cjs_namespaceObject.cn)((0, external_button_cjs_namespaceObject.buttonVariants)(), className),
89
- ...props
90
- }));
258
+ const AlertDialogAction = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
259
+ const $ = (0, compiler_runtime_namespaceObject.c)(9);
260
+ let className;
261
+ let props;
262
+ if ($[0] !== t0) {
263
+ ({ className, ...props } = t0);
264
+ $[0] = t0;
265
+ $[1] = className;
266
+ $[2] = props;
267
+ } else {
268
+ className = $[1];
269
+ props = $[2];
270
+ }
271
+ let t1;
272
+ if ($[3] !== className) {
273
+ t1 = (0, index_cjs_namespaceObject.cn)((0, external_button_cjs_namespaceObject.buttonVariants)(), className);
274
+ $[3] = className;
275
+ $[4] = t1;
276
+ } else t1 = $[4];
277
+ let t2;
278
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
279
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Action, {
280
+ ref: ref,
281
+ className: t1,
282
+ ...props
283
+ });
284
+ $[5] = props;
285
+ $[6] = ref;
286
+ $[7] = t1;
287
+ $[8] = t2;
288
+ } else t2 = $[8];
289
+ return t2;
290
+ });
91
291
  AlertDialogAction.displayName = react_alert_dialog_namespaceObject.Action.displayName;
92
- const AlertDialogCancel = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Cancel, {
93
- ref: ref,
94
- className: (0, index_cjs_namespaceObject.cn)((0, external_button_cjs_namespaceObject.buttonVariants)({
95
- variant: 'outline'
96
- }), 'mt-2 sm:mt-0', className),
97
- ...props
98
- }));
292
+ const AlertDialogCancel = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
293
+ const $ = (0, compiler_runtime_namespaceObject.c)(9);
294
+ let className;
295
+ let props;
296
+ if ($[0] !== t0) {
297
+ ({ className, ...props } = t0);
298
+ $[0] = t0;
299
+ $[1] = className;
300
+ $[2] = props;
301
+ } else {
302
+ className = $[1];
303
+ props = $[2];
304
+ }
305
+ let t1;
306
+ if ($[3] !== className) {
307
+ t1 = (0, index_cjs_namespaceObject.cn)((0, external_button_cjs_namespaceObject.buttonVariants)({
308
+ variant: "outline"
309
+ }), "mt-2 sm:mt-0", className);
310
+ $[3] = className;
311
+ $[4] = t1;
312
+ } else t1 = $[4];
313
+ let t2;
314
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
315
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Cancel, {
316
+ ref: ref,
317
+ className: t1,
318
+ ...props
319
+ });
320
+ $[5] = props;
321
+ $[6] = ref;
322
+ $[7] = t1;
323
+ $[8] = t2;
324
+ } else t2 = $[8];
325
+ return t2;
326
+ });
99
327
  AlertDialogCancel.displayName = react_alert_dialog_namespaceObject.Cancel.displayName;
100
328
  exports.AlertDialog = __webpack_exports__.AlertDialog;
101
329
  exports.AlertDialogAction = __webpack_exports__.AlertDialogAction;
@@ -1,4 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { c } from "react/compiler-runtime";
2
3
  import { forwardRef } from "react";
3
4
  import { buttonVariants } from "./button.js";
4
5
  import { cn } from "../../lib/index.js";
@@ -6,57 +7,284 @@ import { Action, Cancel, Content, Description, Overlay, Portal, Root, Title, Tri
6
7
  const AlertDialog = Root;
7
8
  const AlertDialogTrigger = Trigger;
8
9
  const AlertDialogPortal = Portal;
9
- const AlertDialogOverlay = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Overlay, {
10
- className: cn('fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0', className),
11
- ...props,
12
- ref: ref
13
- }));
10
+ const AlertDialogOverlay = /*#__PURE__*/ forwardRef((t0, ref)=>{
11
+ const $ = c(9);
12
+ let className;
13
+ let props;
14
+ if ($[0] !== t0) {
15
+ ({ className, ...props } = t0);
16
+ $[0] = t0;
17
+ $[1] = className;
18
+ $[2] = props;
19
+ } else {
20
+ className = $[1];
21
+ props = $[2];
22
+ }
23
+ let t1;
24
+ if ($[3] !== className) {
25
+ t1 = cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className);
26
+ $[3] = className;
27
+ $[4] = t1;
28
+ } else t1 = $[4];
29
+ let t2;
30
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
31
+ t2 = /*#__PURE__*/ jsx(Overlay, {
32
+ className: t1,
33
+ ...props,
34
+ ref: ref
35
+ });
36
+ $[5] = props;
37
+ $[6] = ref;
38
+ $[7] = t1;
39
+ $[8] = t2;
40
+ } else t2 = $[8];
41
+ return t2;
42
+ });
14
43
  AlertDialogOverlay.displayName = Overlay.displayName;
15
- const AlertDialogContent = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsxs(AlertDialogPortal, {
16
- children: [
17
- /*#__PURE__*/ jsx(AlertDialogOverlay, {}),
18
- /*#__PURE__*/ jsx(Content, {
19
- ref: ref,
20
- className: cn('fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg', className),
21
- ...props
22
- })
23
- ]
24
- }));
44
+ const AlertDialogContent = /*#__PURE__*/ forwardRef((t0, ref)=>{
45
+ const $ = c(10);
46
+ let className;
47
+ let props;
48
+ if ($[0] !== t0) {
49
+ ({ className, ...props } = t0);
50
+ $[0] = t0;
51
+ $[1] = className;
52
+ $[2] = props;
53
+ } else {
54
+ className = $[1];
55
+ props = $[2];
56
+ }
57
+ let t1;
58
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
59
+ t1 = /*#__PURE__*/ jsx(AlertDialogOverlay, {});
60
+ $[3] = t1;
61
+ } else t1 = $[3];
62
+ let t2;
63
+ if ($[4] !== className) {
64
+ t2 = cn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg", className);
65
+ $[4] = className;
66
+ $[5] = t2;
67
+ } else t2 = $[5];
68
+ let t3;
69
+ if ($[6] !== props || $[7] !== ref || $[8] !== t2) {
70
+ t3 = /*#__PURE__*/ jsxs(AlertDialogPortal, {
71
+ children: [
72
+ t1,
73
+ /*#__PURE__*/ jsx(Content, {
74
+ ref: ref,
75
+ className: t2,
76
+ ...props
77
+ })
78
+ ]
79
+ });
80
+ $[6] = props;
81
+ $[7] = ref;
82
+ $[8] = t2;
83
+ $[9] = t3;
84
+ } else t3 = $[9];
85
+ return t3;
86
+ });
25
87
  AlertDialogContent.displayName = Content.displayName;
26
- const AlertDialogHeader = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
27
- className: cn('flex flex-col space-y-2 text-center sm:text-left', className),
28
- ...props
29
- });
88
+ const AlertDialogHeader = (t0)=>{
89
+ const $ = c(8);
90
+ let className;
91
+ let props;
92
+ if ($[0] !== t0) {
93
+ ({ className, ...props } = t0);
94
+ $[0] = t0;
95
+ $[1] = className;
96
+ $[2] = props;
97
+ } else {
98
+ className = $[1];
99
+ props = $[2];
100
+ }
101
+ let t1;
102
+ if ($[3] !== className) {
103
+ t1 = cn("flex flex-col space-y-2 text-center sm:text-left", className);
104
+ $[3] = className;
105
+ $[4] = t1;
106
+ } else t1 = $[4];
107
+ let t2;
108
+ if ($[5] !== props || $[6] !== t1) {
109
+ t2 = /*#__PURE__*/ jsx("div", {
110
+ className: t1,
111
+ ...props
112
+ });
113
+ $[5] = props;
114
+ $[6] = t1;
115
+ $[7] = t2;
116
+ } else t2 = $[7];
117
+ return t2;
118
+ };
30
119
  AlertDialogHeader.displayName = 'AlertDialogHeader';
31
- const AlertDialogFooter = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
32
- className: cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className),
33
- ...props
34
- });
120
+ const AlertDialogFooter = (t0)=>{
121
+ const $ = c(8);
122
+ let className;
123
+ let props;
124
+ if ($[0] !== t0) {
125
+ ({ className, ...props } = t0);
126
+ $[0] = t0;
127
+ $[1] = className;
128
+ $[2] = props;
129
+ } else {
130
+ className = $[1];
131
+ props = $[2];
132
+ }
133
+ let t1;
134
+ if ($[3] !== className) {
135
+ t1 = cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className);
136
+ $[3] = className;
137
+ $[4] = t1;
138
+ } else t1 = $[4];
139
+ let t2;
140
+ if ($[5] !== props || $[6] !== t1) {
141
+ t2 = /*#__PURE__*/ jsx("div", {
142
+ className: t1,
143
+ ...props
144
+ });
145
+ $[5] = props;
146
+ $[6] = t1;
147
+ $[7] = t2;
148
+ } else t2 = $[7];
149
+ return t2;
150
+ };
35
151
  AlertDialogFooter.displayName = 'AlertDialogFooter';
36
- const AlertDialogTitle = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Title, {
37
- ref: ref,
38
- className: cn('text-lg font-semibold', className),
39
- ...props
40
- }));
152
+ const AlertDialogTitle = /*#__PURE__*/ forwardRef((t0, ref)=>{
153
+ const $ = c(9);
154
+ let className;
155
+ let props;
156
+ if ($[0] !== t0) {
157
+ ({ className, ...props } = t0);
158
+ $[0] = t0;
159
+ $[1] = className;
160
+ $[2] = props;
161
+ } else {
162
+ className = $[1];
163
+ props = $[2];
164
+ }
165
+ let t1;
166
+ if ($[3] !== className) {
167
+ t1 = cn("text-lg font-semibold", className);
168
+ $[3] = className;
169
+ $[4] = t1;
170
+ } else t1 = $[4];
171
+ let t2;
172
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
173
+ t2 = /*#__PURE__*/ jsx(Title, {
174
+ ref: ref,
175
+ className: t1,
176
+ ...props
177
+ });
178
+ $[5] = props;
179
+ $[6] = ref;
180
+ $[7] = t1;
181
+ $[8] = t2;
182
+ } else t2 = $[8];
183
+ return t2;
184
+ });
41
185
  AlertDialogTitle.displayName = Title.displayName;
42
- const AlertDialogDescription = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Description, {
43
- ref: ref,
44
- className: cn('text-sm text-muted-foreground', className),
45
- ...props
46
- }));
186
+ const AlertDialogDescription = /*#__PURE__*/ forwardRef((t0, ref)=>{
187
+ const $ = c(9);
188
+ let className;
189
+ let props;
190
+ if ($[0] !== t0) {
191
+ ({ className, ...props } = t0);
192
+ $[0] = t0;
193
+ $[1] = className;
194
+ $[2] = props;
195
+ } else {
196
+ className = $[1];
197
+ props = $[2];
198
+ }
199
+ let t1;
200
+ if ($[3] !== className) {
201
+ t1 = cn("text-sm text-muted-foreground", className);
202
+ $[3] = className;
203
+ $[4] = t1;
204
+ } else t1 = $[4];
205
+ let t2;
206
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
207
+ t2 = /*#__PURE__*/ jsx(Description, {
208
+ ref: ref,
209
+ className: t1,
210
+ ...props
211
+ });
212
+ $[5] = props;
213
+ $[6] = ref;
214
+ $[7] = t1;
215
+ $[8] = t2;
216
+ } else t2 = $[8];
217
+ return t2;
218
+ });
47
219
  AlertDialogDescription.displayName = Description.displayName;
48
- const AlertDialogAction = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Action, {
49
- ref: ref,
50
- className: cn(buttonVariants(), className),
51
- ...props
52
- }));
220
+ const AlertDialogAction = /*#__PURE__*/ forwardRef((t0, ref)=>{
221
+ const $ = c(9);
222
+ let className;
223
+ let props;
224
+ if ($[0] !== t0) {
225
+ ({ className, ...props } = t0);
226
+ $[0] = t0;
227
+ $[1] = className;
228
+ $[2] = props;
229
+ } else {
230
+ className = $[1];
231
+ props = $[2];
232
+ }
233
+ let t1;
234
+ if ($[3] !== className) {
235
+ t1 = cn(buttonVariants(), className);
236
+ $[3] = className;
237
+ $[4] = t1;
238
+ } else t1 = $[4];
239
+ let t2;
240
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
241
+ t2 = /*#__PURE__*/ jsx(Action, {
242
+ ref: ref,
243
+ className: t1,
244
+ ...props
245
+ });
246
+ $[5] = props;
247
+ $[6] = ref;
248
+ $[7] = t1;
249
+ $[8] = t2;
250
+ } else t2 = $[8];
251
+ return t2;
252
+ });
53
253
  AlertDialogAction.displayName = Action.displayName;
54
- const AlertDialogCancel = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Cancel, {
55
- ref: ref,
56
- className: cn(buttonVariants({
57
- variant: 'outline'
58
- }), 'mt-2 sm:mt-0', className),
59
- ...props
60
- }));
254
+ const AlertDialogCancel = /*#__PURE__*/ forwardRef((t0, ref)=>{
255
+ const $ = c(9);
256
+ let className;
257
+ let props;
258
+ if ($[0] !== t0) {
259
+ ({ className, ...props } = t0);
260
+ $[0] = t0;
261
+ $[1] = className;
262
+ $[2] = props;
263
+ } else {
264
+ className = $[1];
265
+ props = $[2];
266
+ }
267
+ let t1;
268
+ if ($[3] !== className) {
269
+ t1 = cn(buttonVariants({
270
+ variant: "outline"
271
+ }), "mt-2 sm:mt-0", className);
272
+ $[3] = className;
273
+ $[4] = t1;
274
+ } else t1 = $[4];
275
+ let t2;
276
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
277
+ t2 = /*#__PURE__*/ jsx(Cancel, {
278
+ ref: ref,
279
+ className: t1,
280
+ ...props
281
+ });
282
+ $[5] = props;
283
+ $[6] = ref;
284
+ $[7] = t1;
285
+ $[8] = t2;
286
+ } else t2 = $[8];
287
+ return t2;
288
+ });
61
289
  AlertDialogCancel.displayName = Cancel.displayName;
62
290
  export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };