@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
@@ -34,58 +34,283 @@ __webpack_require__.d(__webpack_exports__, {
34
34
  Table: ()=>Table
35
35
  });
36
36
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
37
+ const compiler_runtime_namespaceObject = require("react/compiler-runtime");
37
38
  const external_react_namespaceObject = require("react");
38
39
  const index_cjs_namespaceObject = require("../../lib/index.cjs");
39
- const Table = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
40
- className: "relative w-full overflow-auto",
41
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("table", {
40
+ const Table = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
41
+ const $ = (0, compiler_runtime_namespaceObject.c)(9);
42
+ let className;
43
+ let props;
44
+ if ($[0] !== t0) {
45
+ ({ className, ...props } = t0);
46
+ $[0] = t0;
47
+ $[1] = className;
48
+ $[2] = props;
49
+ } else {
50
+ className = $[1];
51
+ props = $[2];
52
+ }
53
+ let t1;
54
+ if ($[3] !== className) {
55
+ t1 = (0, index_cjs_namespaceObject.cn)("w-full caption-bottom text-sm", className);
56
+ $[3] = className;
57
+ $[4] = t1;
58
+ } else t1 = $[4];
59
+ let t2;
60
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
61
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
62
+ className: "relative w-full overflow-auto",
63
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("table", {
64
+ ref: ref,
65
+ className: t1,
66
+ ...props
67
+ })
68
+ });
69
+ $[5] = props;
70
+ $[6] = ref;
71
+ $[7] = t1;
72
+ $[8] = t2;
73
+ } else t2 = $[8];
74
+ return t2;
75
+ });
76
+ Table.displayName = 'Table';
77
+ const TableHeader = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
78
+ const $ = (0, compiler_runtime_namespaceObject.c)(9);
79
+ let className;
80
+ let props;
81
+ if ($[0] !== t0) {
82
+ ({ className, ...props } = t0);
83
+ $[0] = t0;
84
+ $[1] = className;
85
+ $[2] = props;
86
+ } else {
87
+ className = $[1];
88
+ props = $[2];
89
+ }
90
+ let t1;
91
+ if ($[3] !== className) {
92
+ t1 = (0, index_cjs_namespaceObject.cn)("[&_tr]:border-b", className);
93
+ $[3] = className;
94
+ $[4] = t1;
95
+ } else t1 = $[4];
96
+ let t2;
97
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
98
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("thead", {
42
99
  ref: ref,
43
- className: (0, index_cjs_namespaceObject.cn)('w-full caption-bottom text-sm', className),
100
+ className: t1,
44
101
  ...props
45
- })
46
- }));
47
- Table.displayName = 'Table';
48
- const TableHeader = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("thead", {
49
- ref: ref,
50
- className: (0, index_cjs_namespaceObject.cn)('[&_tr]:border-b', className),
51
- ...props
52
- }));
102
+ });
103
+ $[5] = props;
104
+ $[6] = ref;
105
+ $[7] = t1;
106
+ $[8] = t2;
107
+ } else t2 = $[8];
108
+ return t2;
109
+ });
53
110
  TableHeader.displayName = 'TableHeader';
54
- const TableBody = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("tbody", {
55
- ref: ref,
56
- className: (0, index_cjs_namespaceObject.cn)('[&_tr:last-child]:border-0', className),
57
- ...props
58
- }));
111
+ const TableBody = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
112
+ const $ = (0, compiler_runtime_namespaceObject.c)(9);
113
+ let className;
114
+ let props;
115
+ if ($[0] !== t0) {
116
+ ({ className, ...props } = t0);
117
+ $[0] = t0;
118
+ $[1] = className;
119
+ $[2] = props;
120
+ } else {
121
+ className = $[1];
122
+ props = $[2];
123
+ }
124
+ let t1;
125
+ if ($[3] !== className) {
126
+ t1 = (0, index_cjs_namespaceObject.cn)("[&_tr:last-child]:border-0", className);
127
+ $[3] = className;
128
+ $[4] = t1;
129
+ } else t1 = $[4];
130
+ let t2;
131
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
132
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("tbody", {
133
+ ref: ref,
134
+ className: t1,
135
+ ...props
136
+ });
137
+ $[5] = props;
138
+ $[6] = ref;
139
+ $[7] = t1;
140
+ $[8] = t2;
141
+ } else t2 = $[8];
142
+ return t2;
143
+ });
59
144
  TableBody.displayName = 'TableBody';
60
- const TableFooter = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("tfoot", {
61
- ref: ref,
62
- className: (0, index_cjs_namespaceObject.cn)('border-t bg-muted/50 font-medium [&>tr]:last:border-b-0', className),
63
- ...props
64
- }));
145
+ const TableFooter = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
146
+ const $ = (0, compiler_runtime_namespaceObject.c)(9);
147
+ let className;
148
+ let props;
149
+ if ($[0] !== t0) {
150
+ ({ className, ...props } = t0);
151
+ $[0] = t0;
152
+ $[1] = className;
153
+ $[2] = props;
154
+ } else {
155
+ className = $[1];
156
+ props = $[2];
157
+ }
158
+ let t1;
159
+ if ($[3] !== className) {
160
+ t1 = (0, index_cjs_namespaceObject.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", className);
161
+ $[3] = className;
162
+ $[4] = t1;
163
+ } else t1 = $[4];
164
+ let t2;
165
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
166
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("tfoot", {
167
+ ref: ref,
168
+ className: t1,
169
+ ...props
170
+ });
171
+ $[5] = props;
172
+ $[6] = ref;
173
+ $[7] = t1;
174
+ $[8] = t2;
175
+ } else t2 = $[8];
176
+ return t2;
177
+ });
65
178
  TableFooter.displayName = 'TableFooter';
66
- const TableRow = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("tr", {
67
- ref: ref,
68
- className: (0, index_cjs_namespaceObject.cn)('border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted', className),
69
- ...props
70
- }));
179
+ const TableRow = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
180
+ const $ = (0, compiler_runtime_namespaceObject.c)(9);
181
+ let className;
182
+ let props;
183
+ if ($[0] !== t0) {
184
+ ({ className, ...props } = t0);
185
+ $[0] = t0;
186
+ $[1] = className;
187
+ $[2] = props;
188
+ } else {
189
+ className = $[1];
190
+ props = $[2];
191
+ }
192
+ let t1;
193
+ if ($[3] !== className) {
194
+ t1 = (0, index_cjs_namespaceObject.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", className);
195
+ $[3] = className;
196
+ $[4] = t1;
197
+ } else t1 = $[4];
198
+ let t2;
199
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
200
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("tr", {
201
+ ref: ref,
202
+ className: t1,
203
+ ...props
204
+ });
205
+ $[5] = props;
206
+ $[6] = ref;
207
+ $[7] = t1;
208
+ $[8] = t2;
209
+ } else t2 = $[8];
210
+ return t2;
211
+ });
71
212
  TableRow.displayName = 'TableRow';
72
- const TableHead = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("th", {
73
- ref: ref,
74
- className: (0, index_cjs_namespaceObject.cn)('h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0', className),
75
- ...props
76
- }));
213
+ const TableHead = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
214
+ const $ = (0, compiler_runtime_namespaceObject.c)(9);
215
+ let className;
216
+ let props;
217
+ if ($[0] !== t0) {
218
+ ({ className, ...props } = t0);
219
+ $[0] = t0;
220
+ $[1] = className;
221
+ $[2] = props;
222
+ } else {
223
+ className = $[1];
224
+ props = $[2];
225
+ }
226
+ let t1;
227
+ if ($[3] !== className) {
228
+ t1 = (0, index_cjs_namespaceObject.cn)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", className);
229
+ $[3] = className;
230
+ $[4] = t1;
231
+ } else t1 = $[4];
232
+ let t2;
233
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
234
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("th", {
235
+ ref: ref,
236
+ className: t1,
237
+ ...props
238
+ });
239
+ $[5] = props;
240
+ $[6] = ref;
241
+ $[7] = t1;
242
+ $[8] = t2;
243
+ } else t2 = $[8];
244
+ return t2;
245
+ });
77
246
  TableHead.displayName = 'TableHead';
78
- const TableCell = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("td", {
79
- ref: ref,
80
- className: (0, index_cjs_namespaceObject.cn)('p-4 align-middle [&:has([role=checkbox])]:pr-0', className),
81
- ...props
82
- }));
247
+ const TableCell = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
248
+ const $ = (0, compiler_runtime_namespaceObject.c)(9);
249
+ let className;
250
+ let props;
251
+ if ($[0] !== t0) {
252
+ ({ className, ...props } = t0);
253
+ $[0] = t0;
254
+ $[1] = className;
255
+ $[2] = props;
256
+ } else {
257
+ className = $[1];
258
+ props = $[2];
259
+ }
260
+ let t1;
261
+ if ($[3] !== className) {
262
+ t1 = (0, index_cjs_namespaceObject.cn)("p-4 align-middle [&:has([role=checkbox])]:pr-0", className);
263
+ $[3] = className;
264
+ $[4] = t1;
265
+ } else t1 = $[4];
266
+ let t2;
267
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
268
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("td", {
269
+ ref: ref,
270
+ className: t1,
271
+ ...props
272
+ });
273
+ $[5] = props;
274
+ $[6] = ref;
275
+ $[7] = t1;
276
+ $[8] = t2;
277
+ } else t2 = $[8];
278
+ return t2;
279
+ });
83
280
  TableCell.displayName = 'TableCell';
84
- const TableCaption = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("caption", {
85
- ref: ref,
86
- className: (0, index_cjs_namespaceObject.cn)('mt-4 text-sm text-muted-foreground', className),
87
- ...props
88
- }));
281
+ const TableCaption = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
282
+ const $ = (0, compiler_runtime_namespaceObject.c)(9);
283
+ let className;
284
+ let props;
285
+ if ($[0] !== t0) {
286
+ ({ className, ...props } = t0);
287
+ $[0] = t0;
288
+ $[1] = className;
289
+ $[2] = props;
290
+ } else {
291
+ className = $[1];
292
+ props = $[2];
293
+ }
294
+ let t1;
295
+ if ($[3] !== className) {
296
+ t1 = (0, index_cjs_namespaceObject.cn)("mt-4 text-sm text-muted-foreground", className);
297
+ $[3] = className;
298
+ $[4] = t1;
299
+ } else t1 = $[4];
300
+ let t2;
301
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
302
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("caption", {
303
+ ref: ref,
304
+ className: t1,
305
+ ...props
306
+ });
307
+ $[5] = props;
308
+ $[6] = ref;
309
+ $[7] = t1;
310
+ $[8] = t2;
311
+ } else t2 = $[8];
312
+ return t2;
313
+ });
89
314
  TableCaption.displayName = 'TableCaption';
90
315
  exports.Table = __webpack_exports__.Table;
91
316
  exports.TableBody = __webpack_exports__.TableBody;
@@ -1,55 +1,280 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
+ import { c } from "react/compiler-runtime";
2
3
  import { forwardRef } from "react";
3
4
  import { cn } from "../../lib/index.js";
4
- const Table = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("div", {
5
- className: "relative w-full overflow-auto",
6
- children: /*#__PURE__*/ jsx("table", {
5
+ const Table = /*#__PURE__*/ forwardRef((t0, ref)=>{
6
+ const $ = c(9);
7
+ let className;
8
+ let props;
9
+ if ($[0] !== t0) {
10
+ ({ className, ...props } = t0);
11
+ $[0] = t0;
12
+ $[1] = className;
13
+ $[2] = props;
14
+ } else {
15
+ className = $[1];
16
+ props = $[2];
17
+ }
18
+ let t1;
19
+ if ($[3] !== className) {
20
+ t1 = cn("w-full caption-bottom text-sm", className);
21
+ $[3] = className;
22
+ $[4] = t1;
23
+ } else t1 = $[4];
24
+ let t2;
25
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
26
+ t2 = /*#__PURE__*/ jsx("div", {
27
+ className: "relative w-full overflow-auto",
28
+ children: /*#__PURE__*/ jsx("table", {
29
+ ref: ref,
30
+ className: t1,
31
+ ...props
32
+ })
33
+ });
34
+ $[5] = props;
35
+ $[6] = ref;
36
+ $[7] = t1;
37
+ $[8] = t2;
38
+ } else t2 = $[8];
39
+ return t2;
40
+ });
41
+ Table.displayName = 'Table';
42
+ const TableHeader = /*#__PURE__*/ forwardRef((t0, ref)=>{
43
+ const $ = c(9);
44
+ let className;
45
+ let props;
46
+ if ($[0] !== t0) {
47
+ ({ className, ...props } = t0);
48
+ $[0] = t0;
49
+ $[1] = className;
50
+ $[2] = props;
51
+ } else {
52
+ className = $[1];
53
+ props = $[2];
54
+ }
55
+ let t1;
56
+ if ($[3] !== className) {
57
+ t1 = cn("[&_tr]:border-b", className);
58
+ $[3] = className;
59
+ $[4] = t1;
60
+ } else t1 = $[4];
61
+ let t2;
62
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
63
+ t2 = /*#__PURE__*/ jsx("thead", {
7
64
  ref: ref,
8
- className: cn('w-full caption-bottom text-sm', className),
65
+ className: t1,
9
66
  ...props
10
- })
11
- }));
12
- Table.displayName = 'Table';
13
- const TableHeader = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("thead", {
14
- ref: ref,
15
- className: cn('[&_tr]:border-b', className),
16
- ...props
17
- }));
67
+ });
68
+ $[5] = props;
69
+ $[6] = ref;
70
+ $[7] = t1;
71
+ $[8] = t2;
72
+ } else t2 = $[8];
73
+ return t2;
74
+ });
18
75
  TableHeader.displayName = 'TableHeader';
19
- const TableBody = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("tbody", {
20
- ref: ref,
21
- className: cn('[&_tr:last-child]:border-0', className),
22
- ...props
23
- }));
76
+ const TableBody = /*#__PURE__*/ forwardRef((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("[&_tr:last-child]:border-0", 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("tbody", {
98
+ ref: ref,
99
+ className: t1,
100
+ ...props
101
+ });
102
+ $[5] = props;
103
+ $[6] = ref;
104
+ $[7] = t1;
105
+ $[8] = t2;
106
+ } else t2 = $[8];
107
+ return t2;
108
+ });
24
109
  TableBody.displayName = 'TableBody';
25
- const TableFooter = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("tfoot", {
26
- ref: ref,
27
- className: cn('border-t bg-muted/50 font-medium [&>tr]:last:border-b-0', className),
28
- ...props
29
- }));
110
+ const TableFooter = /*#__PURE__*/ forwardRef((t0, ref)=>{
111
+ const $ = c(9);
112
+ let className;
113
+ let props;
114
+ if ($[0] !== t0) {
115
+ ({ className, ...props } = t0);
116
+ $[0] = t0;
117
+ $[1] = className;
118
+ $[2] = props;
119
+ } else {
120
+ className = $[1];
121
+ props = $[2];
122
+ }
123
+ let t1;
124
+ if ($[3] !== className) {
125
+ t1 = cn("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", className);
126
+ $[3] = className;
127
+ $[4] = t1;
128
+ } else t1 = $[4];
129
+ let t2;
130
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
131
+ t2 = /*#__PURE__*/ jsx("tfoot", {
132
+ ref: ref,
133
+ className: t1,
134
+ ...props
135
+ });
136
+ $[5] = props;
137
+ $[6] = ref;
138
+ $[7] = t1;
139
+ $[8] = t2;
140
+ } else t2 = $[8];
141
+ return t2;
142
+ });
30
143
  TableFooter.displayName = 'TableFooter';
31
- const TableRow = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("tr", {
32
- ref: ref,
33
- className: cn('border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted', className),
34
- ...props
35
- }));
144
+ const TableRow = /*#__PURE__*/ forwardRef((t0, ref)=>{
145
+ const $ = c(9);
146
+ let className;
147
+ let props;
148
+ if ($[0] !== t0) {
149
+ ({ className, ...props } = t0);
150
+ $[0] = t0;
151
+ $[1] = className;
152
+ $[2] = props;
153
+ } else {
154
+ className = $[1];
155
+ props = $[2];
156
+ }
157
+ let t1;
158
+ if ($[3] !== className) {
159
+ t1 = cn("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", className);
160
+ $[3] = className;
161
+ $[4] = t1;
162
+ } else t1 = $[4];
163
+ let t2;
164
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
165
+ t2 = /*#__PURE__*/ jsx("tr", {
166
+ ref: ref,
167
+ className: t1,
168
+ ...props
169
+ });
170
+ $[5] = props;
171
+ $[6] = ref;
172
+ $[7] = t1;
173
+ $[8] = t2;
174
+ } else t2 = $[8];
175
+ return t2;
176
+ });
36
177
  TableRow.displayName = 'TableRow';
37
- const TableHead = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("th", {
38
- ref: ref,
39
- className: cn('h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0', className),
40
- ...props
41
- }));
178
+ const TableHead = /*#__PURE__*/ forwardRef((t0, ref)=>{
179
+ const $ = c(9);
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("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", className);
194
+ $[3] = className;
195
+ $[4] = t1;
196
+ } else t1 = $[4];
197
+ let t2;
198
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
199
+ t2 = /*#__PURE__*/ jsx("th", {
200
+ ref: ref,
201
+ className: t1,
202
+ ...props
203
+ });
204
+ $[5] = props;
205
+ $[6] = ref;
206
+ $[7] = t1;
207
+ $[8] = t2;
208
+ } else t2 = $[8];
209
+ return t2;
210
+ });
42
211
  TableHead.displayName = 'TableHead';
43
- const TableCell = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("td", {
44
- ref: ref,
45
- className: cn('p-4 align-middle [&:has([role=checkbox])]:pr-0', className),
46
- ...props
47
- }));
212
+ const TableCell = /*#__PURE__*/ forwardRef((t0, ref)=>{
213
+ const $ = c(9);
214
+ let className;
215
+ let props;
216
+ if ($[0] !== t0) {
217
+ ({ className, ...props } = t0);
218
+ $[0] = t0;
219
+ $[1] = className;
220
+ $[2] = props;
221
+ } else {
222
+ className = $[1];
223
+ props = $[2];
224
+ }
225
+ let t1;
226
+ if ($[3] !== className) {
227
+ t1 = cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className);
228
+ $[3] = className;
229
+ $[4] = t1;
230
+ } else t1 = $[4];
231
+ let t2;
232
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
233
+ t2 = /*#__PURE__*/ jsx("td", {
234
+ ref: ref,
235
+ className: t1,
236
+ ...props
237
+ });
238
+ $[5] = props;
239
+ $[6] = ref;
240
+ $[7] = t1;
241
+ $[8] = t2;
242
+ } else t2 = $[8];
243
+ return t2;
244
+ });
48
245
  TableCell.displayName = 'TableCell';
49
- const TableCaption = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("caption", {
50
- ref: ref,
51
- className: cn('mt-4 text-sm text-muted-foreground', className),
52
- ...props
53
- }));
246
+ const TableCaption = /*#__PURE__*/ forwardRef((t0, ref)=>{
247
+ const $ = c(9);
248
+ let className;
249
+ let props;
250
+ if ($[0] !== t0) {
251
+ ({ className, ...props } = t0);
252
+ $[0] = t0;
253
+ $[1] = className;
254
+ $[2] = props;
255
+ } else {
256
+ className = $[1];
257
+ props = $[2];
258
+ }
259
+ let t1;
260
+ if ($[3] !== className) {
261
+ t1 = cn("mt-4 text-sm text-muted-foreground", className);
262
+ $[3] = className;
263
+ $[4] = t1;
264
+ } else t1 = $[4];
265
+ let t2;
266
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
267
+ t2 = /*#__PURE__*/ jsx("caption", {
268
+ ref: ref,
269
+ className: t1,
270
+ ...props
271
+ });
272
+ $[5] = props;
273
+ $[6] = ref;
274
+ $[7] = t1;
275
+ $[8] = t2;
276
+ } else t2 = $[8];
277
+ return t2;
278
+ });
54
279
  TableCaption.displayName = 'TableCaption';
55
280
  export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };