@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
@@ -1,4 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { c } from "react/compiler-runtime";
2
3
  import { useCallback, useEffect, useRef, useState } from "react";
3
4
  import { format } from "date-fns";
4
5
  import { CalendarIcon } from "lucide-react";
@@ -69,9 +70,9 @@ function EditableCell({ cell, onUpdate }) {
69
70
  const cellContent = isEditing ? renderEditMode() : /*#__PURE__*/ jsx("div", {
70
71
  className: cn('min-h-[32px] px-2 py-1.5 -mx-2 rounded cursor-pointer', 'hover:bg-muted/50 transition-colors', 'flex items-center w-full'),
71
72
  onClick: ()=>setIsEditing(true),
72
- onKeyDown: (e)=>{
73
- if ('Enter' === e.key || ' ' === e.key) {
74
- e.preventDefault();
73
+ onKeyDown: (e_0)=>{
74
+ if ('Enter' === e_0.key || ' ' === e_0.key) {
75
+ e_0.preventDefault();
75
76
  setIsEditing(true);
76
77
  }
77
78
  },
@@ -128,7 +129,7 @@ function EditableCell({ cell, onUpdate }) {
128
129
  ref: inputRef,
129
130
  type: "number",
130
131
  value: value,
131
- onChange: (e)=>setValue(e.target.valueAsNumber),
132
+ onChange: (e_2)=>setValue(e_2.target.valueAsNumber),
132
133
  onBlur: handleSave,
133
134
  onKeyDown: handleKeyDown,
134
135
  min: meta?.min,
@@ -141,7 +142,7 @@ function EditableCell({ cell, onUpdate }) {
141
142
  ref: inputRef,
142
143
  type: "text",
143
144
  value: String(value ?? ''),
144
- onChange: (e)=>setValue(e.target.value),
145
+ onChange: (e_1)=>setValue(e_1.target.value),
145
146
  onBlur: handleSave,
146
147
  onKeyDown: handleKeyDown,
147
148
  placeholder: meta?.placeholder,
@@ -174,46 +175,109 @@ function createEditableColumn(accessorKey, header, meta) {
174
175
  meta
175
176
  };
176
177
  }
177
- function DatePickerCell({ value, onValueChange, onClose, placeholder }) {
178
+ function DatePickerCell(t0) {
179
+ const $ = c(24);
180
+ const { value, onValueChange, onClose, placeholder } = t0;
178
181
  const [open, setOpen] = useState(true);
179
- return /*#__PURE__*/ jsxs(Popover, {
180
- open: open,
181
- onOpenChange: (isOpen)=>{
182
+ let t1;
183
+ if ($[0] !== onClose) {
184
+ t1 = (isOpen)=>{
182
185
  setOpen(isOpen);
183
186
  if (!isOpen) onClose();
184
- },
185
- children: [
186
- /*#__PURE__*/ jsx(PopoverTrigger, {
187
- asChild: true,
188
- children: /*#__PURE__*/ jsxs(Button, {
189
- variant: "outline",
190
- className: cn('h-8 -mx-2 w-full justify-start text-left font-normal text-sm', !value && 'text-muted-foreground'),
191
- children: [
192
- /*#__PURE__*/ jsx(CalendarIcon, {
193
- className: "mr-2 h-4 w-4 shrink-0"
194
- }),
195
- /*#__PURE__*/ jsx("span", {
196
- className: "truncate",
197
- children: value ? format(value, 'PP') : placeholder
198
- })
199
- ]
200
- })
201
- }),
202
- /*#__PURE__*/ jsx(PopoverContent, {
203
- className: "w-auto p-0",
204
- align: "start",
205
- children: /*#__PURE__*/ jsx(Calendar, {
206
- mode: "single",
207
- selected: value,
208
- onSelect: (date)=>{
209
- onValueChange(date);
210
- setOpen(false);
211
- onClose();
212
- },
213
- initialFocus: true
214
- })
187
+ };
188
+ $[0] = onClose;
189
+ $[1] = t1;
190
+ } else t1 = $[1];
191
+ const t2 = !value && "text-muted-foreground";
192
+ let t3;
193
+ if ($[2] !== t2) {
194
+ t3 = cn("h-8 -mx-2 w-full justify-start text-left font-normal text-sm", t2);
195
+ $[2] = t2;
196
+ $[3] = t3;
197
+ } else t3 = $[3];
198
+ let t4;
199
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
200
+ t4 = /*#__PURE__*/ jsx(CalendarIcon, {
201
+ className: "mr-2 h-4 w-4 shrink-0"
202
+ });
203
+ $[4] = t4;
204
+ } else t4 = $[4];
205
+ let t5;
206
+ if ($[5] !== placeholder || $[6] !== value) {
207
+ t5 = value ? format(value, "PP") : placeholder;
208
+ $[5] = placeholder;
209
+ $[6] = value;
210
+ $[7] = t5;
211
+ } else t5 = $[7];
212
+ let t6;
213
+ if ($[8] !== t5) {
214
+ t6 = /*#__PURE__*/ jsx("span", {
215
+ className: "truncate",
216
+ children: t5
217
+ });
218
+ $[8] = t5;
219
+ $[9] = t6;
220
+ } else t6 = $[9];
221
+ let t7;
222
+ if ($[10] !== t3 || $[11] !== t6) {
223
+ t7 = /*#__PURE__*/ jsx(PopoverTrigger, {
224
+ asChild: true,
225
+ children: /*#__PURE__*/ jsxs(Button, {
226
+ variant: "outline",
227
+ className: t3,
228
+ children: [
229
+ t4,
230
+ t6
231
+ ]
215
232
  })
216
- ]
217
- });
233
+ });
234
+ $[10] = t3;
235
+ $[11] = t6;
236
+ $[12] = t7;
237
+ } else t7 = $[12];
238
+ let t8;
239
+ if ($[13] !== onClose || $[14] !== onValueChange) {
240
+ t8 = (date)=>{
241
+ onValueChange(date);
242
+ setOpen(false);
243
+ onClose();
244
+ };
245
+ $[13] = onClose;
246
+ $[14] = onValueChange;
247
+ $[15] = t8;
248
+ } else t8 = $[15];
249
+ let t9;
250
+ if ($[16] !== t8 || $[17] !== value) {
251
+ t9 = /*#__PURE__*/ jsx(PopoverContent, {
252
+ className: "w-auto p-0",
253
+ align: "start",
254
+ children: /*#__PURE__*/ jsx(Calendar, {
255
+ mode: "single",
256
+ selected: value,
257
+ onSelect: t8,
258
+ initialFocus: true
259
+ })
260
+ });
261
+ $[16] = t8;
262
+ $[17] = value;
263
+ $[18] = t9;
264
+ } else t9 = $[18];
265
+ let t10;
266
+ if ($[19] !== open || $[20] !== t1 || $[21] !== t7 || $[22] !== t9) {
267
+ t10 = /*#__PURE__*/ jsxs(Popover, {
268
+ open: open,
269
+ onOpenChange: t1,
270
+ children: [
271
+ t7,
272
+ t9
273
+ ]
274
+ });
275
+ $[19] = open;
276
+ $[20] = t1;
277
+ $[21] = t7;
278
+ $[22] = t9;
279
+ $[23] = t10;
280
+ } else t10 = $[23];
281
+ return t10;
218
282
  }
219
283
  export { EditableCell, createEditableColumn };
@@ -27,42 +27,115 @@ __webpack_require__.d(__webpack_exports__, {
27
27
  EmptyState: ()=>EmptyState
28
28
  });
29
29
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
+ const compiler_runtime_namespaceObject = require("react/compiler-runtime");
30
31
  const external_react_namespaceObject = require("react");
31
32
  const external_button_cjs_namespaceObject = require("./button.cjs");
32
33
  const index_cjs_namespaceObject = require("../../lib/index.cjs");
33
- const EmptyState = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ icon, title, description, action, secondaryAction, className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
34
- ref: ref,
35
- className: (0, index_cjs_namespaceObject.cn)('flex flex-col items-center justify-center p-8 text-center', className),
36
- ...props,
37
- children: [
38
- icon && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
39
- className: "mb-6 flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",
40
- children: icon
41
- }),
42
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h3", {
43
- className: "text-xl font-semibold tracking-tight",
44
- children: title
45
- }),
46
- description && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
47
- className: "mt-3 mb-6 max-w-md text-sm text-muted-foreground leading-relaxed",
48
- children: description
49
- }),
50
- (action || secondaryAction) && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
51
- className: "flex flex-wrap items-center justify-center gap-2",
52
- children: [
53
- action && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_button_cjs_namespaceObject.Button, {
54
- onClick: action.onClick,
55
- children: action.label
56
- }),
57
- secondaryAction && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_button_cjs_namespaceObject.Button, {
58
- variant: "outline",
59
- onClick: secondaryAction.onClick,
60
- children: secondaryAction.label
61
- })
62
- ]
63
- })
64
- ]
65
- }));
34
+ const EmptyState = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
35
+ const $ = (0, compiler_runtime_namespaceObject.c)(27);
36
+ let action;
37
+ let className;
38
+ let description;
39
+ let icon;
40
+ let props;
41
+ let secondaryAction;
42
+ let title;
43
+ if ($[0] !== t0) {
44
+ ({ icon, title, description, action, secondaryAction, className, ...props } = t0);
45
+ $[0] = t0;
46
+ $[1] = action;
47
+ $[2] = className;
48
+ $[3] = description;
49
+ $[4] = icon;
50
+ $[5] = props;
51
+ $[6] = secondaryAction;
52
+ $[7] = title;
53
+ } else {
54
+ action = $[1];
55
+ className = $[2];
56
+ description = $[3];
57
+ icon = $[4];
58
+ props = $[5];
59
+ secondaryAction = $[6];
60
+ title = $[7];
61
+ }
62
+ let t1;
63
+ if ($[8] !== className) {
64
+ t1 = (0, index_cjs_namespaceObject.cn)("flex flex-col items-center justify-center p-8 text-center", className);
65
+ $[8] = className;
66
+ $[9] = t1;
67
+ } else t1 = $[9];
68
+ let t2;
69
+ if ($[10] !== icon) {
70
+ t2 = icon && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
71
+ className: "mb-6 flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",
72
+ children: icon
73
+ });
74
+ $[10] = icon;
75
+ $[11] = t2;
76
+ } else t2 = $[11];
77
+ let t3;
78
+ if ($[12] !== title) {
79
+ t3 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h3", {
80
+ className: "text-xl font-semibold tracking-tight",
81
+ children: title
82
+ });
83
+ $[12] = title;
84
+ $[13] = t3;
85
+ } else t3 = $[13];
86
+ let t4;
87
+ if ($[14] !== description) {
88
+ t4 = description && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
89
+ className: "mt-3 mb-6 max-w-md text-sm text-muted-foreground leading-relaxed",
90
+ children: description
91
+ });
92
+ $[14] = description;
93
+ $[15] = t4;
94
+ } else t4 = $[15];
95
+ let t5;
96
+ if ($[16] !== action || $[17] !== secondaryAction) {
97
+ t5 = (action || secondaryAction) && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
98
+ className: "flex flex-wrap items-center justify-center gap-2",
99
+ children: [
100
+ action && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_button_cjs_namespaceObject.Button, {
101
+ onClick: action.onClick,
102
+ children: action.label
103
+ }),
104
+ secondaryAction && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_button_cjs_namespaceObject.Button, {
105
+ variant: "outline",
106
+ onClick: secondaryAction.onClick,
107
+ children: secondaryAction.label
108
+ })
109
+ ]
110
+ });
111
+ $[16] = action;
112
+ $[17] = secondaryAction;
113
+ $[18] = t5;
114
+ } else t5 = $[18];
115
+ let t6;
116
+ if ($[19] !== props || $[20] !== ref || $[21] !== t1 || $[22] !== t2 || $[23] !== t3 || $[24] !== t4 || $[25] !== t5) {
117
+ t6 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
118
+ ref: ref,
119
+ className: t1,
120
+ ...props,
121
+ children: [
122
+ t2,
123
+ t3,
124
+ t4,
125
+ t5
126
+ ]
127
+ });
128
+ $[19] = props;
129
+ $[20] = ref;
130
+ $[21] = t1;
131
+ $[22] = t2;
132
+ $[23] = t3;
133
+ $[24] = t4;
134
+ $[25] = t5;
135
+ $[26] = t6;
136
+ } else t6 = $[26];
137
+ return t6;
138
+ });
66
139
  EmptyState.displayName = 'EmptyState';
67
140
  exports.EmptyState = __webpack_exports__.EmptyState;
68
141
  for(var __webpack_i__ in __webpack_exports__)if (-1 === [
@@ -1,39 +1,112 @@
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 { Button } from "./button.js";
4
5
  import { cn } from "../../lib/index.js";
5
- const EmptyState = /*#__PURE__*/ forwardRef(({ icon, title, description, action, secondaryAction, className, ...props }, ref)=>/*#__PURE__*/ jsxs("div", {
6
- ref: ref,
7
- className: cn('flex flex-col items-center justify-center p-8 text-center', className),
8
- ...props,
9
- children: [
10
- icon && /*#__PURE__*/ jsx("div", {
11
- className: "mb-6 flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",
12
- children: icon
13
- }),
14
- /*#__PURE__*/ jsx("h3", {
15
- className: "text-xl font-semibold tracking-tight",
16
- children: title
17
- }),
18
- description && /*#__PURE__*/ jsx("p", {
19
- className: "mt-3 mb-6 max-w-md text-sm text-muted-foreground leading-relaxed",
20
- children: description
21
- }),
22
- (action || secondaryAction) && /*#__PURE__*/ jsxs("div", {
23
- className: "flex flex-wrap items-center justify-center gap-2",
24
- children: [
25
- action && /*#__PURE__*/ jsx(Button, {
26
- onClick: action.onClick,
27
- children: action.label
28
- }),
29
- secondaryAction && /*#__PURE__*/ jsx(Button, {
30
- variant: "outline",
31
- onClick: secondaryAction.onClick,
32
- children: secondaryAction.label
33
- })
34
- ]
35
- })
36
- ]
37
- }));
6
+ const EmptyState = /*#__PURE__*/ forwardRef((t0, ref)=>{
7
+ const $ = c(27);
8
+ let action;
9
+ let className;
10
+ let description;
11
+ let icon;
12
+ let props;
13
+ let secondaryAction;
14
+ let title;
15
+ if ($[0] !== t0) {
16
+ ({ icon, title, description, action, secondaryAction, className, ...props } = t0);
17
+ $[0] = t0;
18
+ $[1] = action;
19
+ $[2] = className;
20
+ $[3] = description;
21
+ $[4] = icon;
22
+ $[5] = props;
23
+ $[6] = secondaryAction;
24
+ $[7] = title;
25
+ } else {
26
+ action = $[1];
27
+ className = $[2];
28
+ description = $[3];
29
+ icon = $[4];
30
+ props = $[5];
31
+ secondaryAction = $[6];
32
+ title = $[7];
33
+ }
34
+ let t1;
35
+ if ($[8] !== className) {
36
+ t1 = cn("flex flex-col items-center justify-center p-8 text-center", className);
37
+ $[8] = className;
38
+ $[9] = t1;
39
+ } else t1 = $[9];
40
+ let t2;
41
+ if ($[10] !== icon) {
42
+ t2 = icon && /*#__PURE__*/ jsx("div", {
43
+ className: "mb-6 flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",
44
+ children: icon
45
+ });
46
+ $[10] = icon;
47
+ $[11] = t2;
48
+ } else t2 = $[11];
49
+ let t3;
50
+ if ($[12] !== title) {
51
+ t3 = /*#__PURE__*/ jsx("h3", {
52
+ className: "text-xl font-semibold tracking-tight",
53
+ children: title
54
+ });
55
+ $[12] = title;
56
+ $[13] = t3;
57
+ } else t3 = $[13];
58
+ let t4;
59
+ if ($[14] !== description) {
60
+ t4 = description && /*#__PURE__*/ jsx("p", {
61
+ className: "mt-3 mb-6 max-w-md text-sm text-muted-foreground leading-relaxed",
62
+ children: description
63
+ });
64
+ $[14] = description;
65
+ $[15] = t4;
66
+ } else t4 = $[15];
67
+ let t5;
68
+ if ($[16] !== action || $[17] !== secondaryAction) {
69
+ t5 = (action || secondaryAction) && /*#__PURE__*/ jsxs("div", {
70
+ className: "flex flex-wrap items-center justify-center gap-2",
71
+ children: [
72
+ action && /*#__PURE__*/ jsx(Button, {
73
+ onClick: action.onClick,
74
+ children: action.label
75
+ }),
76
+ secondaryAction && /*#__PURE__*/ jsx(Button, {
77
+ variant: "outline",
78
+ onClick: secondaryAction.onClick,
79
+ children: secondaryAction.label
80
+ })
81
+ ]
82
+ });
83
+ $[16] = action;
84
+ $[17] = secondaryAction;
85
+ $[18] = t5;
86
+ } else t5 = $[18];
87
+ let t6;
88
+ if ($[19] !== props || $[20] !== ref || $[21] !== t1 || $[22] !== t2 || $[23] !== t3 || $[24] !== t4 || $[25] !== t5) {
89
+ t6 = /*#__PURE__*/ jsxs("div", {
90
+ ref: ref,
91
+ className: t1,
92
+ ...props,
93
+ children: [
94
+ t2,
95
+ t3,
96
+ t4,
97
+ t5
98
+ ]
99
+ });
100
+ $[19] = props;
101
+ $[20] = ref;
102
+ $[21] = t1;
103
+ $[22] = t2;
104
+ $[23] = t3;
105
+ $[24] = t4;
106
+ $[25] = t5;
107
+ $[26] = t6;
108
+ } else t6 = $[26];
109
+ return t6;
110
+ });
38
111
  EmptyState.displayName = 'EmptyState';
39
112
  export { EmptyState };