@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 { Content, Group, Icon, Item, ItemIndicator, ItemText, Label, Portal, Root, ScrollDownButton, ScrollUpButton, Separator, Trigger, Value, Viewport } from "@radix-ui/react-select";
3
4
  import { Check, ChevronDown, ChevronUp } from "lucide-react";
4
5
  import { forwardRef } from "react";
@@ -6,85 +7,350 @@ import { cn } from "../../lib/index.js";
6
7
  const Select = Root;
7
8
  const SelectGroup = Group;
8
9
  const SelectValue = Value;
9
- const SelectTrigger = /*#__PURE__*/ forwardRef(({ className, children, ...props }, ref)=>/*#__PURE__*/ jsxs(Trigger, {
10
- ref: ref,
11
- className: cn('flex h-9 w-full cursor-pointer items-center justify-between rounded-md border border-input bg-transparent px-3 py-1 text-base transition-colors data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm [&>span]:line-clamp-1', className),
12
- ...props,
13
- children: [
14
- children,
15
- /*#__PURE__*/ jsx(Icon, {
16
- asChild: true,
17
- children: /*#__PURE__*/ jsx(ChevronDown, {
18
- className: "h-4 w-4 opacity-50"
19
- })
10
+ const SelectTrigger = /*#__PURE__*/ forwardRef((t0, ref)=>{
11
+ const $ = c(12);
12
+ let children;
13
+ let className;
14
+ let props;
15
+ if ($[0] !== t0) {
16
+ ({ className, children, ...props } = t0);
17
+ $[0] = t0;
18
+ $[1] = children;
19
+ $[2] = className;
20
+ $[3] = props;
21
+ } else {
22
+ children = $[1];
23
+ className = $[2];
24
+ props = $[3];
25
+ }
26
+ let t1;
27
+ if ($[4] !== className) {
28
+ t1 = cn("flex h-9 w-full cursor-pointer items-center justify-between rounded-md border border-input bg-transparent px-3 py-1 text-base transition-colors data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm [&>span]:line-clamp-1", className);
29
+ $[4] = className;
30
+ $[5] = t1;
31
+ } else t1 = $[5];
32
+ let t2;
33
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
34
+ t2 = /*#__PURE__*/ jsx(Icon, {
35
+ asChild: true,
36
+ children: /*#__PURE__*/ jsx(ChevronDown, {
37
+ className: "h-4 w-4 opacity-50"
20
38
  })
21
- ]
22
- }));
39
+ });
40
+ $[6] = t2;
41
+ } else t2 = $[6];
42
+ let t3;
43
+ if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
44
+ t3 = /*#__PURE__*/ jsxs(Trigger, {
45
+ ref: ref,
46
+ className: t1,
47
+ ...props,
48
+ children: [
49
+ children,
50
+ t2
51
+ ]
52
+ });
53
+ $[7] = children;
54
+ $[8] = props;
55
+ $[9] = ref;
56
+ $[10] = t1;
57
+ $[11] = t3;
58
+ } else t3 = $[11];
59
+ return t3;
60
+ });
23
61
  SelectTrigger.displayName = Trigger.displayName;
24
- const SelectScrollUpButton = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(ScrollUpButton, {
25
- ref: ref,
26
- className: cn('flex cursor-default items-center justify-center py-1', className),
27
- ...props,
28
- children: /*#__PURE__*/ jsx(ChevronUp, {
62
+ const SelectScrollUpButton = /*#__PURE__*/ forwardRef((t0, ref)=>{
63
+ const $ = c(10);
64
+ let className;
65
+ let props;
66
+ if ($[0] !== t0) {
67
+ ({ className, ...props } = t0);
68
+ $[0] = t0;
69
+ $[1] = className;
70
+ $[2] = props;
71
+ } else {
72
+ className = $[1];
73
+ props = $[2];
74
+ }
75
+ let t1;
76
+ if ($[3] !== className) {
77
+ t1 = cn("flex cursor-default items-center justify-center py-1", className);
78
+ $[3] = className;
79
+ $[4] = t1;
80
+ } else t1 = $[4];
81
+ let t2;
82
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
83
+ t2 = /*#__PURE__*/ jsx(ChevronUp, {
29
84
  className: "h-4 w-4"
30
- })
31
- }));
85
+ });
86
+ $[5] = t2;
87
+ } else t2 = $[5];
88
+ let t3;
89
+ if ($[6] !== props || $[7] !== ref || $[8] !== t1) {
90
+ t3 = /*#__PURE__*/ jsx(ScrollUpButton, {
91
+ ref: ref,
92
+ className: t1,
93
+ ...props,
94
+ children: t2
95
+ });
96
+ $[6] = props;
97
+ $[7] = ref;
98
+ $[8] = t1;
99
+ $[9] = t3;
100
+ } else t3 = $[9];
101
+ return t3;
102
+ });
32
103
  SelectScrollUpButton.displayName = ScrollUpButton.displayName;
33
- const SelectScrollDownButton = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(ScrollDownButton, {
34
- ref: ref,
35
- className: cn('flex cursor-default items-center justify-center py-1', className),
36
- ...props,
37
- children: /*#__PURE__*/ jsx(ChevronDown, {
104
+ const SelectScrollDownButton = /*#__PURE__*/ forwardRef((t0, ref)=>{
105
+ const $ = c(10);
106
+ let className;
107
+ let props;
108
+ if ($[0] !== t0) {
109
+ ({ className, ...props } = t0);
110
+ $[0] = t0;
111
+ $[1] = className;
112
+ $[2] = props;
113
+ } else {
114
+ className = $[1];
115
+ props = $[2];
116
+ }
117
+ let t1;
118
+ if ($[3] !== className) {
119
+ t1 = cn("flex cursor-default items-center justify-center py-1", className);
120
+ $[3] = className;
121
+ $[4] = t1;
122
+ } else t1 = $[4];
123
+ let t2;
124
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
125
+ t2 = /*#__PURE__*/ jsx(ChevronDown, {
38
126
  className: "h-4 w-4"
39
- })
40
- }));
41
- SelectScrollDownButton.displayName = ScrollDownButton.displayName;
42
- const SelectContent = /*#__PURE__*/ forwardRef(({ className, children, position = 'popper', ...props }, ref)=>/*#__PURE__*/ jsx(Portal, {
43
- children: /*#__PURE__*/ jsxs(Content, {
127
+ });
128
+ $[5] = t2;
129
+ } else t2 = $[5];
130
+ let t3;
131
+ if ($[6] !== props || $[7] !== ref || $[8] !== t1) {
132
+ t3 = /*#__PURE__*/ jsx(ScrollDownButton, {
44
133
  ref: ref,
45
- className: cn('relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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-select-content-transform-origin]', 'popper' === position && 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1', className),
46
- position: position,
134
+ className: t1,
47
135
  ...props,
48
- children: [
49
- /*#__PURE__*/ jsx(SelectScrollUpButton, {}),
50
- /*#__PURE__*/ jsx(Viewport, {
51
- className: cn('p-1', 'popper' === position && 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]'),
52
- children: children
53
- }),
54
- /*#__PURE__*/ jsx(SelectScrollDownButton, {})
55
- ]
56
- })
57
- }));
136
+ children: t2
137
+ });
138
+ $[6] = props;
139
+ $[7] = ref;
140
+ $[8] = t1;
141
+ $[9] = t3;
142
+ } else t3 = $[9];
143
+ return t3;
144
+ });
145
+ SelectScrollDownButton.displayName = ScrollDownButton.displayName;
146
+ const SelectContent = /*#__PURE__*/ forwardRef((t0, ref)=>{
147
+ const $ = c(21);
148
+ let children;
149
+ let className;
150
+ let props;
151
+ let t1;
152
+ if ($[0] !== t0) {
153
+ ({ className, children, position: t1, ...props } = t0);
154
+ $[0] = t0;
155
+ $[1] = children;
156
+ $[2] = className;
157
+ $[3] = props;
158
+ $[4] = t1;
159
+ } else {
160
+ children = $[1];
161
+ className = $[2];
162
+ props = $[3];
163
+ t1 = $[4];
164
+ }
165
+ const position = void 0 === t1 ? "popper" : t1;
166
+ const t2 = "popper" === position && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1";
167
+ let t3;
168
+ if ($[5] !== className || $[6] !== t2) {
169
+ t3 = cn("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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-select-content-transform-origin]", t2, className);
170
+ $[5] = className;
171
+ $[6] = t2;
172
+ $[7] = t3;
173
+ } else t3 = $[7];
174
+ let t4;
175
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
176
+ t4 = /*#__PURE__*/ jsx(SelectScrollUpButton, {});
177
+ $[8] = t4;
178
+ } else t4 = $[8];
179
+ const t5 = "popper" === position && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]";
180
+ let t6;
181
+ if ($[9] !== t5) {
182
+ t6 = cn("p-1", t5);
183
+ $[9] = t5;
184
+ $[10] = t6;
185
+ } else t6 = $[10];
186
+ let t7;
187
+ if ($[11] !== children || $[12] !== t6) {
188
+ t7 = /*#__PURE__*/ jsx(Viewport, {
189
+ className: t6,
190
+ children: children
191
+ });
192
+ $[11] = children;
193
+ $[12] = t6;
194
+ $[13] = t7;
195
+ } else t7 = $[13];
196
+ let t8;
197
+ if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
198
+ t8 = /*#__PURE__*/ jsx(SelectScrollDownButton, {});
199
+ $[14] = t8;
200
+ } else t8 = $[14];
201
+ let t9;
202
+ if ($[15] !== position || $[16] !== props || $[17] !== ref || $[18] !== t3 || $[19] !== t7) {
203
+ t9 = /*#__PURE__*/ jsx(Portal, {
204
+ children: /*#__PURE__*/ jsxs(Content, {
205
+ ref: ref,
206
+ className: t3,
207
+ position: position,
208
+ ...props,
209
+ children: [
210
+ t4,
211
+ t7,
212
+ t8
213
+ ]
214
+ })
215
+ });
216
+ $[15] = position;
217
+ $[16] = props;
218
+ $[17] = ref;
219
+ $[18] = t3;
220
+ $[19] = t7;
221
+ $[20] = t9;
222
+ } else t9 = $[20];
223
+ return t9;
224
+ });
58
225
  SelectContent.displayName = Content.displayName;
59
- const SelectLabel = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Label, {
60
- ref: ref,
61
- className: cn('py-1.5 pl-8 pr-2 text-sm font-semibold', className),
62
- ...props
63
- }));
226
+ const SelectLabel = /*#__PURE__*/ forwardRef((t0, ref)=>{
227
+ const $ = c(9);
228
+ let className;
229
+ let props;
230
+ if ($[0] !== t0) {
231
+ ({ className, ...props } = t0);
232
+ $[0] = t0;
233
+ $[1] = className;
234
+ $[2] = props;
235
+ } else {
236
+ className = $[1];
237
+ props = $[2];
238
+ }
239
+ let t1;
240
+ if ($[3] !== className) {
241
+ t1 = cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className);
242
+ $[3] = className;
243
+ $[4] = t1;
244
+ } else t1 = $[4];
245
+ let t2;
246
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
247
+ t2 = /*#__PURE__*/ jsx(Label, {
248
+ ref: ref,
249
+ className: t1,
250
+ ...props
251
+ });
252
+ $[5] = props;
253
+ $[6] = ref;
254
+ $[7] = t1;
255
+ $[8] = t2;
256
+ } else t2 = $[8];
257
+ return t2;
258
+ });
64
259
  SelectLabel.displayName = Label.displayName;
65
- const SelectItem = /*#__PURE__*/ forwardRef(({ className, children, ...props }, ref)=>/*#__PURE__*/ jsxs(Item, {
66
- ref: ref,
67
- className: cn('relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className),
68
- ...props,
69
- children: [
70
- /*#__PURE__*/ jsx("span", {
71
- className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
72
- children: /*#__PURE__*/ jsx(ItemIndicator, {
73
- children: /*#__PURE__*/ jsx(Check, {
74
- className: "h-4 w-4"
75
- })
260
+ const SelectItem = /*#__PURE__*/ forwardRef((t0, ref)=>{
261
+ const $ = c(14);
262
+ let children;
263
+ let className;
264
+ let props;
265
+ if ($[0] !== t0) {
266
+ ({ className, children, ...props } = t0);
267
+ $[0] = t0;
268
+ $[1] = children;
269
+ $[2] = className;
270
+ $[3] = props;
271
+ } else {
272
+ children = $[1];
273
+ className = $[2];
274
+ props = $[3];
275
+ }
276
+ let t1;
277
+ if ($[4] !== className) {
278
+ t1 = cn("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className);
279
+ $[4] = className;
280
+ $[5] = t1;
281
+ } else t1 = $[5];
282
+ let t2;
283
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
284
+ t2 = /*#__PURE__*/ jsx("span", {
285
+ className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
286
+ children: /*#__PURE__*/ jsx(ItemIndicator, {
287
+ children: /*#__PURE__*/ jsx(Check, {
288
+ className: "h-4 w-4"
76
289
  })
77
- }),
78
- /*#__PURE__*/ jsx(ItemText, {
79
- children: children
80
290
  })
81
- ]
82
- }));
291
+ });
292
+ $[6] = t2;
293
+ } else t2 = $[6];
294
+ let t3;
295
+ if ($[7] !== children) {
296
+ t3 = /*#__PURE__*/ jsx(ItemText, {
297
+ children: children
298
+ });
299
+ $[7] = children;
300
+ $[8] = t3;
301
+ } else t3 = $[8];
302
+ let t4;
303
+ if ($[9] !== props || $[10] !== ref || $[11] !== t1 || $[12] !== t3) {
304
+ t4 = /*#__PURE__*/ jsxs(Item, {
305
+ ref: ref,
306
+ className: t1,
307
+ ...props,
308
+ children: [
309
+ t2,
310
+ t3
311
+ ]
312
+ });
313
+ $[9] = props;
314
+ $[10] = ref;
315
+ $[11] = t1;
316
+ $[12] = t3;
317
+ $[13] = t4;
318
+ } else t4 = $[13];
319
+ return t4;
320
+ });
83
321
  SelectItem.displayName = Item.displayName;
84
- const SelectSeparator = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Separator, {
85
- ref: ref,
86
- className: cn('-mx-1 my-1 h-px bg-muted', className),
87
- ...props
88
- }));
322
+ const SelectSeparator = /*#__PURE__*/ forwardRef((t0, ref)=>{
323
+ const $ = c(9);
324
+ let className;
325
+ let props;
326
+ if ($[0] !== t0) {
327
+ ({ className, ...props } = t0);
328
+ $[0] = t0;
329
+ $[1] = className;
330
+ $[2] = props;
331
+ } else {
332
+ className = $[1];
333
+ props = $[2];
334
+ }
335
+ let t1;
336
+ if ($[3] !== className) {
337
+ t1 = cn("-mx-1 my-1 h-px bg-muted", className);
338
+ $[3] = className;
339
+ $[4] = t1;
340
+ } else t1 = $[4];
341
+ let t2;
342
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
343
+ t2 = /*#__PURE__*/ jsx(Separator, {
344
+ ref: ref,
345
+ className: t1,
346
+ ...props
347
+ });
348
+ $[5] = props;
349
+ $[6] = ref;
350
+ $[7] = t1;
351
+ $[8] = t2;
352
+ } else t2 = $[8];
353
+ return t2;
354
+ });
89
355
  SelectSeparator.displayName = Separator.displayName;
90
356
  export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
@@ -27,16 +27,57 @@ __webpack_require__.d(__webpack_exports__, {
27
27
  Separator: ()=>Separator
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_separator_namespaceObject = require("@radix-ui/react-separator");
31
32
  const external_react_namespaceObject = require("react");
32
33
  const index_cjs_namespaceObject = require("../../lib/index.cjs");
33
- const Separator = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, orientation = 'horizontal', decorative = true, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_separator_namespaceObject.Root, {
34
- ref: ref,
35
- decorative: decorative,
36
- orientation: orientation,
37
- className: (0, index_cjs_namespaceObject.cn)('shrink-0 bg-border', 'horizontal' === orientation ? 'h-[1px] w-full' : 'h-full w-[1px]', className),
38
- ...props
39
- }));
34
+ const Separator = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
35
+ const $ = (0, compiler_runtime_namespaceObject.c)(14);
36
+ let className;
37
+ let props;
38
+ let t1;
39
+ let t2;
40
+ if ($[0] !== t0) {
41
+ ({ className, orientation: t1, decorative: t2, ...props } = t0);
42
+ $[0] = t0;
43
+ $[1] = className;
44
+ $[2] = props;
45
+ $[3] = t1;
46
+ $[4] = t2;
47
+ } else {
48
+ className = $[1];
49
+ props = $[2];
50
+ t1 = $[3];
51
+ t2 = $[4];
52
+ }
53
+ const orientation = void 0 === t1 ? "horizontal" : t1;
54
+ const decorative = void 0 === t2 ? true : t2;
55
+ const t3 = "horizontal" === orientation ? "h-[1px] w-full" : "h-full w-[1px]";
56
+ let t4;
57
+ if ($[5] !== className || $[6] !== t3) {
58
+ t4 = (0, index_cjs_namespaceObject.cn)("shrink-0 bg-border", t3, className);
59
+ $[5] = className;
60
+ $[6] = t3;
61
+ $[7] = t4;
62
+ } else t4 = $[7];
63
+ let t5;
64
+ if ($[8] !== decorative || $[9] !== orientation || $[10] !== props || $[11] !== ref || $[12] !== t4) {
65
+ t5 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_separator_namespaceObject.Root, {
66
+ ref: ref,
67
+ decorative: decorative,
68
+ orientation: orientation,
69
+ className: t4,
70
+ ...props
71
+ });
72
+ $[8] = decorative;
73
+ $[9] = orientation;
74
+ $[10] = props;
75
+ $[11] = ref;
76
+ $[12] = t4;
77
+ $[13] = t5;
78
+ } else t5 = $[13];
79
+ return t5;
80
+ });
40
81
  Separator.displayName = react_separator_namespaceObject.Root.displayName;
41
82
  exports.Separator = __webpack_exports__.Separator;
42
83
  for(var __webpack_i__ in __webpack_exports__)if (-1 === [
@@ -1,13 +1,54 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
+ import { c } from "react/compiler-runtime";
2
3
  import { Root } from "@radix-ui/react-separator";
3
4
  import { forwardRef } from "react";
4
5
  import { cn } from "../../lib/index.js";
5
- const Separator = /*#__PURE__*/ forwardRef(({ className, orientation = 'horizontal', decorative = true, ...props }, ref)=>/*#__PURE__*/ jsx(Root, {
6
- ref: ref,
7
- decorative: decorative,
8
- orientation: orientation,
9
- className: cn('shrink-0 bg-border', 'horizontal' === orientation ? 'h-[1px] w-full' : 'h-full w-[1px]', className),
10
- ...props
11
- }));
6
+ const Separator = /*#__PURE__*/ forwardRef((t0, ref)=>{
7
+ const $ = c(14);
8
+ let className;
9
+ let props;
10
+ let t1;
11
+ let t2;
12
+ if ($[0] !== t0) {
13
+ ({ className, orientation: t1, decorative: t2, ...props } = t0);
14
+ $[0] = t0;
15
+ $[1] = className;
16
+ $[2] = props;
17
+ $[3] = t1;
18
+ $[4] = t2;
19
+ } else {
20
+ className = $[1];
21
+ props = $[2];
22
+ t1 = $[3];
23
+ t2 = $[4];
24
+ }
25
+ const orientation = void 0 === t1 ? "horizontal" : t1;
26
+ const decorative = void 0 === t2 ? true : t2;
27
+ const t3 = "horizontal" === orientation ? "h-[1px] w-full" : "h-full w-[1px]";
28
+ let t4;
29
+ if ($[5] !== className || $[6] !== t3) {
30
+ t4 = cn("shrink-0 bg-border", t3, className);
31
+ $[5] = className;
32
+ $[6] = t3;
33
+ $[7] = t4;
34
+ } else t4 = $[7];
35
+ let t5;
36
+ if ($[8] !== decorative || $[9] !== orientation || $[10] !== props || $[11] !== ref || $[12] !== t4) {
37
+ t5 = /*#__PURE__*/ jsx(Root, {
38
+ ref: ref,
39
+ decorative: decorative,
40
+ orientation: orientation,
41
+ className: t4,
42
+ ...props
43
+ });
44
+ $[8] = decorative;
45
+ $[9] = orientation;
46
+ $[10] = props;
47
+ $[11] = ref;
48
+ $[12] = t4;
49
+ $[13] = t5;
50
+ } else t5 = $[13];
51
+ return t5;
52
+ });
12
53
  Separator.displayName = Root.displayName;
13
54
  export { Separator };