@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,79 +1,315 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { c } from "react/compiler-runtime";
2
3
  import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react";
3
4
  import { forwardRef } from "react";
4
5
  import { buttonVariants } from "./button.js";
5
6
  import { cn } from "../../lib/index.js";
6
- const Pagination = ({ className, ...props })=>/*#__PURE__*/ jsx("nav", {
7
- role: "navigation",
8
- "aria-label": "pagination",
9
- className: cn('mx-auto flex w-full justify-center', className),
10
- ...props
11
- });
7
+ const Pagination = (t0)=>{
8
+ const $ = c(8);
9
+ let className;
10
+ let props;
11
+ if ($[0] !== t0) {
12
+ ({ className, ...props } = t0);
13
+ $[0] = t0;
14
+ $[1] = className;
15
+ $[2] = props;
16
+ } else {
17
+ className = $[1];
18
+ props = $[2];
19
+ }
20
+ let t1;
21
+ if ($[3] !== className) {
22
+ t1 = cn("mx-auto flex w-full justify-center", className);
23
+ $[3] = className;
24
+ $[4] = t1;
25
+ } else t1 = $[4];
26
+ let t2;
27
+ if ($[5] !== props || $[6] !== t1) {
28
+ t2 = /*#__PURE__*/ jsx("nav", {
29
+ role: "navigation",
30
+ "aria-label": "pagination",
31
+ className: t1,
32
+ ...props
33
+ });
34
+ $[5] = props;
35
+ $[6] = t1;
36
+ $[7] = t2;
37
+ } else t2 = $[7];
38
+ return t2;
39
+ };
12
40
  Pagination.displayName = 'Pagination';
13
- const PaginationContent = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("ul", {
14
- ref: ref,
15
- className: cn('flex flex-row items-center gap-1', className),
16
- ...props
17
- }));
41
+ const PaginationContent = /*#__PURE__*/ forwardRef((t0, ref)=>{
42
+ const $ = c(9);
43
+ let className;
44
+ let props;
45
+ if ($[0] !== t0) {
46
+ ({ className, ...props } = t0);
47
+ $[0] = t0;
48
+ $[1] = className;
49
+ $[2] = props;
50
+ } else {
51
+ className = $[1];
52
+ props = $[2];
53
+ }
54
+ let t1;
55
+ if ($[3] !== className) {
56
+ t1 = cn("flex flex-row items-center gap-1", className);
57
+ $[3] = className;
58
+ $[4] = t1;
59
+ } else t1 = $[4];
60
+ let t2;
61
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
62
+ t2 = /*#__PURE__*/ jsx("ul", {
63
+ ref: ref,
64
+ className: t1,
65
+ ...props
66
+ });
67
+ $[5] = props;
68
+ $[6] = ref;
69
+ $[7] = t1;
70
+ $[8] = t2;
71
+ } else t2 = $[8];
72
+ return t2;
73
+ });
18
74
  PaginationContent.displayName = 'PaginationContent';
19
- const PaginationItem = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("li", {
20
- ref: ref,
21
- className: cn('', className),
22
- ...props
23
- }));
75
+ const PaginationItem = /*#__PURE__*/ forwardRef((t0, ref)=>{
76
+ const $ = c(9);
77
+ let className;
78
+ let props;
79
+ if ($[0] !== t0) {
80
+ ({ className, ...props } = t0);
81
+ $[0] = t0;
82
+ $[1] = className;
83
+ $[2] = props;
84
+ } else {
85
+ className = $[1];
86
+ props = $[2];
87
+ }
88
+ let t1;
89
+ if ($[3] !== className) {
90
+ t1 = cn("", className);
91
+ $[3] = className;
92
+ $[4] = t1;
93
+ } else t1 = $[4];
94
+ let t2;
95
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
96
+ t2 = /*#__PURE__*/ jsx("li", {
97
+ ref: ref,
98
+ className: t1,
99
+ ...props
100
+ });
101
+ $[5] = props;
102
+ $[6] = ref;
103
+ $[7] = t1;
104
+ $[8] = t2;
105
+ } else t2 = $[8];
106
+ return t2;
107
+ });
24
108
  PaginationItem.displayName = 'PaginationItem';
25
- const PaginationLink = ({ className, isActive, size = 'icon', ...props })=>/*#__PURE__*/ jsx("a", {
26
- "aria-current": isActive ? 'page' : void 0,
27
- className: cn(buttonVariants({
28
- variant: isActive ? 'outline' : 'ghost',
109
+ const PaginationLink = (t0)=>{
110
+ const $ = c(13);
111
+ let className;
112
+ let isActive;
113
+ let props;
114
+ let t1;
115
+ if ($[0] !== t0) {
116
+ ({ className, isActive, size: t1, ...props } = t0);
117
+ $[0] = t0;
118
+ $[1] = className;
119
+ $[2] = isActive;
120
+ $[3] = props;
121
+ $[4] = t1;
122
+ } else {
123
+ className = $[1];
124
+ isActive = $[2];
125
+ props = $[3];
126
+ t1 = $[4];
127
+ }
128
+ const size = void 0 === t1 ? "icon" : t1;
129
+ const t2 = isActive ? "page" : void 0;
130
+ let t3;
131
+ if ($[5] !== className || $[6] !== isActive || $[7] !== size) {
132
+ t3 = cn(buttonVariants({
133
+ variant: isActive ? "outline" : "ghost",
29
134
  size
30
- }), className),
31
- ...props
32
- });
135
+ }), className);
136
+ $[5] = className;
137
+ $[6] = isActive;
138
+ $[7] = size;
139
+ $[8] = t3;
140
+ } else t3 = $[8];
141
+ let t4;
142
+ if ($[9] !== props || $[10] !== t2 || $[11] !== t3) {
143
+ t4 = /*#__PURE__*/ jsx("a", {
144
+ "aria-current": t2,
145
+ className: t3,
146
+ ...props
147
+ });
148
+ $[9] = props;
149
+ $[10] = t2;
150
+ $[11] = t3;
151
+ $[12] = t4;
152
+ } else t4 = $[12];
153
+ return t4;
154
+ };
33
155
  PaginationLink.displayName = 'PaginationLink';
34
- const PaginationPrevious = ({ className, ...props })=>/*#__PURE__*/ jsxs(PaginationLink, {
35
- "aria-label": "Go to previous page",
36
- size: "default",
37
- className: cn('gap-1 pl-2.5', className),
38
- ...props,
39
- children: [
40
- /*#__PURE__*/ jsx(ChevronLeft, {
41
- className: "h-4 w-4"
42
- }),
43
- /*#__PURE__*/ jsx("span", {
44
- children: "Previous"
45
- })
46
- ]
47
- });
156
+ const PaginationPrevious = (t0)=>{
157
+ const $ = c(10);
158
+ let className;
159
+ let props;
160
+ if ($[0] !== t0) {
161
+ ({ className, ...props } = t0);
162
+ $[0] = t0;
163
+ $[1] = className;
164
+ $[2] = props;
165
+ } else {
166
+ className = $[1];
167
+ props = $[2];
168
+ }
169
+ let t1;
170
+ if ($[3] !== className) {
171
+ t1 = cn("gap-1 pl-2.5", className);
172
+ $[3] = className;
173
+ $[4] = t1;
174
+ } else t1 = $[4];
175
+ let t2;
176
+ let t3;
177
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
178
+ t2 = /*#__PURE__*/ jsx(ChevronLeft, {
179
+ className: "h-4 w-4"
180
+ });
181
+ t3 = /*#__PURE__*/ jsx("span", {
182
+ children: "Previous"
183
+ });
184
+ $[5] = t2;
185
+ $[6] = t3;
186
+ } else {
187
+ t2 = $[5];
188
+ t3 = $[6];
189
+ }
190
+ let t4;
191
+ if ($[7] !== props || $[8] !== t1) {
192
+ t4 = /*#__PURE__*/ jsxs(PaginationLink, {
193
+ "aria-label": "Go to previous page",
194
+ size: "default",
195
+ className: t1,
196
+ ...props,
197
+ children: [
198
+ t2,
199
+ t3
200
+ ]
201
+ });
202
+ $[7] = props;
203
+ $[8] = t1;
204
+ $[9] = t4;
205
+ } else t4 = $[9];
206
+ return t4;
207
+ };
48
208
  PaginationPrevious.displayName = 'PaginationPrevious';
49
- const PaginationNext = ({ className, ...props })=>/*#__PURE__*/ jsxs(PaginationLink, {
50
- "aria-label": "Go to next page",
51
- size: "default",
52
- className: cn('gap-1 pr-2.5', className),
53
- ...props,
54
- children: [
55
- /*#__PURE__*/ jsx("span", {
56
- children: "Next"
57
- }),
58
- /*#__PURE__*/ jsx(ChevronRight, {
59
- className: "h-4 w-4"
60
- })
61
- ]
62
- });
209
+ const PaginationNext = (t0)=>{
210
+ const $ = c(10);
211
+ let className;
212
+ let props;
213
+ if ($[0] !== t0) {
214
+ ({ className, ...props } = t0);
215
+ $[0] = t0;
216
+ $[1] = className;
217
+ $[2] = props;
218
+ } else {
219
+ className = $[1];
220
+ props = $[2];
221
+ }
222
+ let t1;
223
+ if ($[3] !== className) {
224
+ t1 = cn("gap-1 pr-2.5", className);
225
+ $[3] = className;
226
+ $[4] = t1;
227
+ } else t1 = $[4];
228
+ let t2;
229
+ let t3;
230
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
231
+ t2 = /*#__PURE__*/ jsx("span", {
232
+ children: "Next"
233
+ });
234
+ t3 = /*#__PURE__*/ jsx(ChevronRight, {
235
+ className: "h-4 w-4"
236
+ });
237
+ $[5] = t2;
238
+ $[6] = t3;
239
+ } else {
240
+ t2 = $[5];
241
+ t3 = $[6];
242
+ }
243
+ let t4;
244
+ if ($[7] !== props || $[8] !== t1) {
245
+ t4 = /*#__PURE__*/ jsxs(PaginationLink, {
246
+ "aria-label": "Go to next page",
247
+ size: "default",
248
+ className: t1,
249
+ ...props,
250
+ children: [
251
+ t2,
252
+ t3
253
+ ]
254
+ });
255
+ $[7] = props;
256
+ $[8] = t1;
257
+ $[9] = t4;
258
+ } else t4 = $[9];
259
+ return t4;
260
+ };
63
261
  PaginationNext.displayName = 'PaginationNext';
64
- const PaginationEllipsis = ({ className, ...props })=>/*#__PURE__*/ jsxs("span", {
65
- "aria-hidden": true,
66
- className: cn('flex h-9 w-9 items-center justify-center', className),
67
- ...props,
68
- children: [
69
- /*#__PURE__*/ jsx(MoreHorizontal, {
70
- className: "h-4 w-4"
71
- }),
72
- /*#__PURE__*/ jsx("span", {
73
- className: "sr-only",
74
- children: "More pages"
75
- })
76
- ]
77
- });
262
+ const PaginationEllipsis = (t0)=>{
263
+ const $ = c(10);
264
+ let className;
265
+ let props;
266
+ if ($[0] !== t0) {
267
+ ({ className, ...props } = t0);
268
+ $[0] = t0;
269
+ $[1] = className;
270
+ $[2] = props;
271
+ } else {
272
+ className = $[1];
273
+ props = $[2];
274
+ }
275
+ let t1;
276
+ if ($[3] !== className) {
277
+ t1 = cn("flex h-9 w-9 items-center justify-center", className);
278
+ $[3] = className;
279
+ $[4] = t1;
280
+ } else t1 = $[4];
281
+ let t2;
282
+ let t3;
283
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
284
+ t2 = /*#__PURE__*/ jsx(MoreHorizontal, {
285
+ className: "h-4 w-4"
286
+ });
287
+ t3 = /*#__PURE__*/ jsx("span", {
288
+ className: "sr-only",
289
+ children: "More pages"
290
+ });
291
+ $[5] = t2;
292
+ $[6] = t3;
293
+ } else {
294
+ t2 = $[5];
295
+ t3 = $[6];
296
+ }
297
+ let t4;
298
+ if ($[7] !== props || $[8] !== t1) {
299
+ t4 = /*#__PURE__*/ jsxs("span", {
300
+ "aria-hidden": true,
301
+ className: t1,
302
+ ...props,
303
+ children: [
304
+ t2,
305
+ t3
306
+ ]
307
+ });
308
+ $[7] = props;
309
+ $[8] = t1;
310
+ $[9] = t4;
311
+ } else t4 = $[9];
312
+ return t4;
313
+ };
78
314
  PaginationEllipsis.displayName = 'PaginationEllipsis';
79
315
  export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
@@ -30,21 +30,60 @@ __webpack_require__.d(__webpack_exports__, {
30
30
  PopoverTrigger: ()=>PopoverTrigger
31
31
  });
32
32
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
33
+ const compiler_runtime_namespaceObject = require("react/compiler-runtime");
33
34
  const react_popover_namespaceObject = require("@radix-ui/react-popover");
34
35
  const external_react_namespaceObject = require("react");
35
36
  const index_cjs_namespaceObject = require("../../lib/index.cjs");
36
37
  const Popover = react_popover_namespaceObject.Root;
37
38
  const PopoverTrigger = react_popover_namespaceObject.Trigger;
38
39
  const PopoverAnchor = react_popover_namespaceObject.Anchor;
39
- const PopoverContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, align = 'center', sideOffset = 4, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_popover_namespaceObject.Portal, {
40
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_popover_namespaceObject.Content, {
41
- ref: ref,
42
- align: align,
43
- sideOffset: sideOffset,
44
- className: (0, index_cjs_namespaceObject.cn)('z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]', className),
45
- ...props
46
- })
47
- }));
40
+ const PopoverContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
41
+ const $ = (0, compiler_runtime_namespaceObject.c)(13);
42
+ let className;
43
+ let props;
44
+ let t1;
45
+ let t2;
46
+ if ($[0] !== t0) {
47
+ ({ className, align: t1, sideOffset: t2, ...props } = t0);
48
+ $[0] = t0;
49
+ $[1] = className;
50
+ $[2] = props;
51
+ $[3] = t1;
52
+ $[4] = t2;
53
+ } else {
54
+ className = $[1];
55
+ props = $[2];
56
+ t1 = $[3];
57
+ t2 = $[4];
58
+ }
59
+ const align = void 0 === t1 ? "center" : t1;
60
+ const sideOffset = void 0 === t2 ? 4 : t2;
61
+ let t3;
62
+ if ($[5] !== className) {
63
+ t3 = (0, index_cjs_namespaceObject.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]", className);
64
+ $[5] = className;
65
+ $[6] = t3;
66
+ } else t3 = $[6];
67
+ let t4;
68
+ if ($[7] !== align || $[8] !== props || $[9] !== ref || $[10] !== sideOffset || $[11] !== t3) {
69
+ t4 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_popover_namespaceObject.Portal, {
70
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_popover_namespaceObject.Content, {
71
+ ref: ref,
72
+ align: align,
73
+ sideOffset: sideOffset,
74
+ className: t3,
75
+ ...props
76
+ })
77
+ });
78
+ $[7] = align;
79
+ $[8] = props;
80
+ $[9] = ref;
81
+ $[10] = sideOffset;
82
+ $[11] = t3;
83
+ $[12] = t4;
84
+ } else t4 = $[12];
85
+ return t4;
86
+ });
48
87
  PopoverContent.displayName = react_popover_namespaceObject.Content.displayName;
49
88
  exports.Popover = __webpack_exports__.Popover;
50
89
  exports.PopoverAnchor = __webpack_exports__.PopoverAnchor;
@@ -1,18 +1,57 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
+ import { c } from "react/compiler-runtime";
2
3
  import { Anchor, Content, Portal, Root, Trigger } from "@radix-ui/react-popover";
3
4
  import { forwardRef } from "react";
4
5
  import { cn } from "../../lib/index.js";
5
6
  const Popover = Root;
6
7
  const PopoverTrigger = Trigger;
7
8
  const PopoverAnchor = Anchor;
8
- const PopoverContent = /*#__PURE__*/ forwardRef(({ className, align = 'center', sideOffset = 4, ...props }, ref)=>/*#__PURE__*/ jsx(Portal, {
9
- children: /*#__PURE__*/ jsx(Content, {
10
- ref: ref,
11
- align: align,
12
- sideOffset: sideOffset,
13
- className: cn('z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]', className),
14
- ...props
15
- })
16
- }));
9
+ const PopoverContent = /*#__PURE__*/ forwardRef((t0, ref)=>{
10
+ const $ = c(13);
11
+ let className;
12
+ let props;
13
+ let t1;
14
+ let t2;
15
+ if ($[0] !== t0) {
16
+ ({ className, align: t1, sideOffset: t2, ...props } = t0);
17
+ $[0] = t0;
18
+ $[1] = className;
19
+ $[2] = props;
20
+ $[3] = t1;
21
+ $[4] = t2;
22
+ } else {
23
+ className = $[1];
24
+ props = $[2];
25
+ t1 = $[3];
26
+ t2 = $[4];
27
+ }
28
+ const align = void 0 === t1 ? "center" : t1;
29
+ const sideOffset = void 0 === t2 ? 4 : t2;
30
+ let t3;
31
+ if ($[5] !== className) {
32
+ t3 = cn("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]", className);
33
+ $[5] = className;
34
+ $[6] = t3;
35
+ } else t3 = $[6];
36
+ let t4;
37
+ if ($[7] !== align || $[8] !== props || $[9] !== ref || $[10] !== sideOffset || $[11] !== t3) {
38
+ t4 = /*#__PURE__*/ jsx(Portal, {
39
+ children: /*#__PURE__*/ jsx(Content, {
40
+ ref: ref,
41
+ align: align,
42
+ sideOffset: sideOffset,
43
+ className: t3,
44
+ ...props
45
+ })
46
+ });
47
+ $[7] = align;
48
+ $[8] = props;
49
+ $[9] = ref;
50
+ $[10] = sideOffset;
51
+ $[11] = t3;
52
+ $[12] = t4;
53
+ } else t4 = $[12];
54
+ return t4;
55
+ });
17
56
  PopoverContent.displayName = Content.displayName;
18
57
  export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
@@ -27,20 +27,60 @@ __webpack_require__.d(__webpack_exports__, {
27
27
  Progress: ()=>Progress
28
28
  });
29
29
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
+ const compiler_runtime_namespaceObject = require("react/compiler-runtime");
30
31
  const react_progress_namespaceObject = require("@radix-ui/react-progress");
31
32
  const external_react_namespaceObject = require("react");
32
33
  const index_cjs_namespaceObject = require("../../lib/index.cjs");
33
- const Progress = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, value, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_progress_namespaceObject.Root, {
34
- ref: ref,
35
- className: (0, index_cjs_namespaceObject.cn)('relative h-4 w-full overflow-hidden rounded-full bg-secondary', className),
36
- ...props,
37
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_progress_namespaceObject.Indicator, {
34
+ const Progress = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
35
+ const $ = (0, compiler_runtime_namespaceObject.c)(13);
36
+ let className;
37
+ let props;
38
+ let value;
39
+ if ($[0] !== t0) {
40
+ ({ className, value, ...props } = t0);
41
+ $[0] = t0;
42
+ $[1] = className;
43
+ $[2] = props;
44
+ $[3] = value;
45
+ } else {
46
+ className = $[1];
47
+ props = $[2];
48
+ value = $[3];
49
+ }
50
+ let t1;
51
+ if ($[4] !== className) {
52
+ t1 = (0, index_cjs_namespaceObject.cn)("relative h-4 w-full overflow-hidden rounded-full bg-secondary", className);
53
+ $[4] = className;
54
+ $[5] = t1;
55
+ } else t1 = $[5];
56
+ const t2 = `translateX(-${100 - (value || 0)}%)`;
57
+ let t3;
58
+ if ($[6] !== t2) {
59
+ t3 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_progress_namespaceObject.Indicator, {
38
60
  className: "h-full w-full flex-1 bg-primary transition-all",
39
61
  style: {
40
- transform: `translateX(-${100 - (value || 0)}%)`
62
+ transform: t2
41
63
  }
42
- })
43
- }));
64
+ });
65
+ $[6] = t2;
66
+ $[7] = t3;
67
+ } else t3 = $[7];
68
+ let t4;
69
+ if ($[8] !== props || $[9] !== ref || $[10] !== t1 || $[11] !== t3) {
70
+ t4 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_progress_namespaceObject.Root, {
71
+ ref: ref,
72
+ className: t1,
73
+ ...props,
74
+ children: t3
75
+ });
76
+ $[8] = props;
77
+ $[9] = ref;
78
+ $[10] = t1;
79
+ $[11] = t3;
80
+ $[12] = t4;
81
+ } else t4 = $[12];
82
+ return t4;
83
+ });
44
84
  Progress.displayName = react_progress_namespaceObject.Root.displayName;
45
85
  exports.Progress = __webpack_exports__.Progress;
46
86
  for(var __webpack_i__ in __webpack_exports__)if (-1 === [
@@ -1,17 +1,57 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
+ import { c } from "react/compiler-runtime";
2
3
  import { Indicator, Root } from "@radix-ui/react-progress";
3
4
  import { forwardRef } from "react";
4
5
  import { cn } from "../../lib/index.js";
5
- const Progress = /*#__PURE__*/ forwardRef(({ className, value, ...props }, ref)=>/*#__PURE__*/ jsx(Root, {
6
- ref: ref,
7
- className: cn('relative h-4 w-full overflow-hidden rounded-full bg-secondary', className),
8
- ...props,
9
- children: /*#__PURE__*/ jsx(Indicator, {
6
+ const Progress = /*#__PURE__*/ forwardRef((t0, ref)=>{
7
+ const $ = c(13);
8
+ let className;
9
+ let props;
10
+ let value;
11
+ if ($[0] !== t0) {
12
+ ({ className, value, ...props } = t0);
13
+ $[0] = t0;
14
+ $[1] = className;
15
+ $[2] = props;
16
+ $[3] = value;
17
+ } else {
18
+ className = $[1];
19
+ props = $[2];
20
+ value = $[3];
21
+ }
22
+ let t1;
23
+ if ($[4] !== className) {
24
+ t1 = cn("relative h-4 w-full overflow-hidden rounded-full bg-secondary", className);
25
+ $[4] = className;
26
+ $[5] = t1;
27
+ } else t1 = $[5];
28
+ const t2 = `translateX(-${100 - (value || 0)}%)`;
29
+ let t3;
30
+ if ($[6] !== t2) {
31
+ t3 = /*#__PURE__*/ jsx(Indicator, {
10
32
  className: "h-full w-full flex-1 bg-primary transition-all",
11
33
  style: {
12
- transform: `translateX(-${100 - (value || 0)}%)`
34
+ transform: t2
13
35
  }
14
- })
15
- }));
36
+ });
37
+ $[6] = t2;
38
+ $[7] = t3;
39
+ } else t3 = $[7];
40
+ let t4;
41
+ if ($[8] !== props || $[9] !== ref || $[10] !== t1 || $[11] !== t3) {
42
+ t4 = /*#__PURE__*/ jsx(Root, {
43
+ ref: ref,
44
+ className: t1,
45
+ ...props,
46
+ children: t3
47
+ });
48
+ $[8] = props;
49
+ $[9] = ref;
50
+ $[10] = t1;
51
+ $[11] = t3;
52
+ $[12] = t4;
53
+ } else t4 = $[12];
54
+ return t4;
55
+ });
16
56
  Progress.displayName = Root.displayName;
17
57
  export { Progress };