@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,131 +1,565 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { c } from "react/compiler-runtime";
2
3
  import { CheckboxItem, Content, Group, Item, ItemIndicator, Label, Menu, Portal, RadioGroup, RadioItem, Root, Separator, Sub, SubContent, SubTrigger, Trigger } from "@radix-ui/react-menubar";
3
4
  import { Check, ChevronRight, Circle } from "lucide-react";
4
5
  import { forwardRef } from "react";
5
6
  import { cn } from "../../lib/index.js";
6
- function MenubarMenu({ ...props }) {
7
- return /*#__PURE__*/ jsx(Menu, {
8
- ...props
9
- });
7
+ function MenubarMenu(t0) {
8
+ const $ = c(4);
9
+ let props;
10
+ if ($[0] !== t0) {
11
+ ({ ...props } = t0);
12
+ $[0] = t0;
13
+ $[1] = props;
14
+ } else props = $[1];
15
+ let t1;
16
+ if ($[2] !== props) {
17
+ t1 = /*#__PURE__*/ jsx(Menu, {
18
+ ...props
19
+ });
20
+ $[2] = props;
21
+ $[3] = t1;
22
+ } else t1 = $[3];
23
+ return t1;
10
24
  }
11
- function MenubarGroup({ ...props }) {
12
- return /*#__PURE__*/ jsx(Group, {
13
- ...props
14
- });
25
+ function MenubarGroup(t0) {
26
+ const $ = c(4);
27
+ let props;
28
+ if ($[0] !== t0) {
29
+ ({ ...props } = t0);
30
+ $[0] = t0;
31
+ $[1] = props;
32
+ } else props = $[1];
33
+ let t1;
34
+ if ($[2] !== props) {
35
+ t1 = /*#__PURE__*/ jsx(Group, {
36
+ ...props
37
+ });
38
+ $[2] = props;
39
+ $[3] = t1;
40
+ } else t1 = $[3];
41
+ return t1;
15
42
  }
16
- function MenubarPortal({ ...props }) {
17
- return /*#__PURE__*/ jsx(Portal, {
18
- ...props
19
- });
43
+ function MenubarPortal(t0) {
44
+ const $ = c(4);
45
+ let props;
46
+ if ($[0] !== t0) {
47
+ ({ ...props } = t0);
48
+ $[0] = t0;
49
+ $[1] = props;
50
+ } else props = $[1];
51
+ let t1;
52
+ if ($[2] !== props) {
53
+ t1 = /*#__PURE__*/ jsx(Portal, {
54
+ ...props
55
+ });
56
+ $[2] = props;
57
+ $[3] = t1;
58
+ } else t1 = $[3];
59
+ return t1;
20
60
  }
21
- function MenubarRadioGroup({ ...props }) {
22
- return /*#__PURE__*/ jsx(RadioGroup, {
23
- ...props
24
- });
61
+ function MenubarRadioGroup(t0) {
62
+ const $ = c(4);
63
+ let props;
64
+ if ($[0] !== t0) {
65
+ ({ ...props } = t0);
66
+ $[0] = t0;
67
+ $[1] = props;
68
+ } else props = $[1];
69
+ let t1;
70
+ if ($[2] !== props) {
71
+ t1 = /*#__PURE__*/ jsx(RadioGroup, {
72
+ ...props
73
+ });
74
+ $[2] = props;
75
+ $[3] = t1;
76
+ } else t1 = $[3];
77
+ return t1;
25
78
  }
26
- function MenubarSub({ ...props }) {
27
- return /*#__PURE__*/ jsx(Sub, {
28
- "data-slot": "menubar-sub",
29
- ...props
30
- });
79
+ function MenubarSub(t0) {
80
+ const $ = c(4);
81
+ let props;
82
+ if ($[0] !== t0) {
83
+ ({ ...props } = t0);
84
+ $[0] = t0;
85
+ $[1] = props;
86
+ } else props = $[1];
87
+ let t1;
88
+ if ($[2] !== props) {
89
+ t1 = /*#__PURE__*/ jsx(Sub, {
90
+ "data-slot": "menubar-sub",
91
+ ...props
92
+ });
93
+ $[2] = props;
94
+ $[3] = t1;
95
+ } else t1 = $[3];
96
+ return t1;
31
97
  }
32
- const Menubar = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Root, {
33
- ref: ref,
34
- className: cn('flex h-10 items-center space-x-1 rounded-md border bg-background p-1', className),
35
- ...props
36
- }));
98
+ const Menubar = /*#__PURE__*/ forwardRef((t0, ref)=>{
99
+ const $ = c(9);
100
+ let className;
101
+ let props;
102
+ if ($[0] !== t0) {
103
+ ({ className, ...props } = t0);
104
+ $[0] = t0;
105
+ $[1] = className;
106
+ $[2] = props;
107
+ } else {
108
+ className = $[1];
109
+ props = $[2];
110
+ }
111
+ let t1;
112
+ if ($[3] !== className) {
113
+ t1 = cn("flex h-10 items-center space-x-1 rounded-md border bg-background p-1", className);
114
+ $[3] = className;
115
+ $[4] = t1;
116
+ } else t1 = $[4];
117
+ let t2;
118
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
119
+ t2 = /*#__PURE__*/ jsx(Root, {
120
+ ref: ref,
121
+ className: t1,
122
+ ...props
123
+ });
124
+ $[5] = props;
125
+ $[6] = ref;
126
+ $[7] = t1;
127
+ $[8] = t2;
128
+ } else t2 = $[8];
129
+ return t2;
130
+ });
37
131
  Menubar.displayName = Root.displayName;
38
- const MenubarTrigger = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Trigger, {
39
- ref: ref,
40
- className: cn('flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground', className),
41
- ...props
42
- }));
132
+ const MenubarTrigger = /*#__PURE__*/ forwardRef((t0, ref)=>{
133
+ const $ = c(9);
134
+ let className;
135
+ let props;
136
+ if ($[0] !== t0) {
137
+ ({ className, ...props } = t0);
138
+ $[0] = t0;
139
+ $[1] = className;
140
+ $[2] = props;
141
+ } else {
142
+ className = $[1];
143
+ props = $[2];
144
+ }
145
+ let t1;
146
+ if ($[3] !== className) {
147
+ t1 = cn("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground", className);
148
+ $[3] = className;
149
+ $[4] = t1;
150
+ } else t1 = $[4];
151
+ let t2;
152
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
153
+ t2 = /*#__PURE__*/ jsx(Trigger, {
154
+ ref: ref,
155
+ className: t1,
156
+ ...props
157
+ });
158
+ $[5] = props;
159
+ $[6] = ref;
160
+ $[7] = t1;
161
+ $[8] = t2;
162
+ } else t2 = $[8];
163
+ return t2;
164
+ });
43
165
  MenubarTrigger.displayName = Trigger.displayName;
44
- const MenubarSubTrigger = /*#__PURE__*/ forwardRef(({ className, inset, children, ...props }, ref)=>/*#__PURE__*/ jsxs(SubTrigger, {
45
- ref: ref,
46
- className: cn('flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground', inset && 'pl-8', className),
47
- ...props,
48
- children: [
49
- children,
50
- /*#__PURE__*/ jsx(ChevronRight, {
51
- className: "ml-auto h-4 w-4"
52
- })
53
- ]
54
- }));
166
+ const MenubarSubTrigger = /*#__PURE__*/ forwardRef((t0, ref)=>{
167
+ const $ = c(14);
168
+ let children;
169
+ let className;
170
+ let inset;
171
+ let props;
172
+ if ($[0] !== t0) {
173
+ ({ className, inset, children, ...props } = t0);
174
+ $[0] = t0;
175
+ $[1] = children;
176
+ $[2] = className;
177
+ $[3] = inset;
178
+ $[4] = props;
179
+ } else {
180
+ children = $[1];
181
+ className = $[2];
182
+ inset = $[3];
183
+ props = $[4];
184
+ }
185
+ const t1 = inset && "pl-8";
186
+ let t2;
187
+ if ($[5] !== className || $[6] !== t1) {
188
+ t2 = cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground", t1, className);
189
+ $[5] = className;
190
+ $[6] = t1;
191
+ $[7] = t2;
192
+ } else t2 = $[7];
193
+ let t3;
194
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
195
+ t3 = /*#__PURE__*/ jsx(ChevronRight, {
196
+ className: "ml-auto h-4 w-4"
197
+ });
198
+ $[8] = t3;
199
+ } else t3 = $[8];
200
+ let t4;
201
+ if ($[9] !== children || $[10] !== props || $[11] !== ref || $[12] !== t2) {
202
+ t4 = /*#__PURE__*/ jsxs(SubTrigger, {
203
+ ref: ref,
204
+ className: t2,
205
+ ...props,
206
+ children: [
207
+ children,
208
+ t3
209
+ ]
210
+ });
211
+ $[9] = children;
212
+ $[10] = props;
213
+ $[11] = ref;
214
+ $[12] = t2;
215
+ $[13] = t4;
216
+ } else t4 = $[13];
217
+ return t4;
218
+ });
55
219
  MenubarSubTrigger.displayName = SubTrigger.displayName;
56
- const MenubarSubContent = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(SubContent, {
57
- ref: ref,
58
- className: cn('z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground 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-menubar-content-transform-origin]', className),
59
- ...props
60
- }));
61
- MenubarSubContent.displayName = SubContent.displayName;
62
- const MenubarContent = /*#__PURE__*/ forwardRef(({ className, align = 'start', alignOffset = -4, sideOffset = 8, ...props }, ref)=>/*#__PURE__*/ jsx(Portal, {
63
- children: /*#__PURE__*/ jsx(Content, {
220
+ const MenubarSubContent = /*#__PURE__*/ forwardRef((t0, ref)=>{
221
+ const $ = c(9);
222
+ let className;
223
+ let props;
224
+ if ($[0] !== t0) {
225
+ ({ className, ...props } = t0);
226
+ $[0] = t0;
227
+ $[1] = className;
228
+ $[2] = props;
229
+ } else {
230
+ className = $[1];
231
+ props = $[2];
232
+ }
233
+ let t1;
234
+ if ($[3] !== className) {
235
+ t1 = cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground 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-menubar-content-transform-origin]", className);
236
+ $[3] = className;
237
+ $[4] = t1;
238
+ } else t1 = $[4];
239
+ let t2;
240
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
241
+ t2 = /*#__PURE__*/ jsx(SubContent, {
64
242
  ref: ref,
65
- align: align,
66
- alignOffset: alignOffset,
67
- sideOffset: sideOffset,
68
- className: cn('z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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-menubar-content-transform-origin]', className),
243
+ className: t1,
69
244
  ...props
70
- })
71
- }));
245
+ });
246
+ $[5] = props;
247
+ $[6] = ref;
248
+ $[7] = t1;
249
+ $[8] = t2;
250
+ } else t2 = $[8];
251
+ return t2;
252
+ });
253
+ MenubarSubContent.displayName = SubContent.displayName;
254
+ const MenubarContent = /*#__PURE__*/ forwardRef((t0, ref)=>{
255
+ const $ = c(15);
256
+ let className;
257
+ let props;
258
+ let t1;
259
+ let t2;
260
+ let t3;
261
+ if ($[0] !== t0) {
262
+ ({ className, align: t1, alignOffset: t2, sideOffset: t3, ...props } = t0);
263
+ $[0] = t0;
264
+ $[1] = className;
265
+ $[2] = props;
266
+ $[3] = t1;
267
+ $[4] = t2;
268
+ $[5] = t3;
269
+ } else {
270
+ className = $[1];
271
+ props = $[2];
272
+ t1 = $[3];
273
+ t2 = $[4];
274
+ t3 = $[5];
275
+ }
276
+ const align = void 0 === t1 ? "start" : t1;
277
+ const alignOffset = void 0 === t2 ? -4 : t2;
278
+ const sideOffset = void 0 === t3 ? 8 : t3;
279
+ let t4;
280
+ if ($[6] !== className) {
281
+ t4 = cn("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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-menubar-content-transform-origin]", className);
282
+ $[6] = className;
283
+ $[7] = t4;
284
+ } else t4 = $[7];
285
+ let t5;
286
+ if ($[8] !== align || $[9] !== alignOffset || $[10] !== props || $[11] !== ref || $[12] !== sideOffset || $[13] !== t4) {
287
+ t5 = /*#__PURE__*/ jsx(Portal, {
288
+ children: /*#__PURE__*/ jsx(Content, {
289
+ ref: ref,
290
+ align: align,
291
+ alignOffset: alignOffset,
292
+ sideOffset: sideOffset,
293
+ className: t4,
294
+ ...props
295
+ })
296
+ });
297
+ $[8] = align;
298
+ $[9] = alignOffset;
299
+ $[10] = props;
300
+ $[11] = ref;
301
+ $[12] = sideOffset;
302
+ $[13] = t4;
303
+ $[14] = t5;
304
+ } else t5 = $[14];
305
+ return t5;
306
+ });
72
307
  MenubarContent.displayName = Content.displayName;
73
- const MenubarItem = /*#__PURE__*/ forwardRef(({ className, inset, ...props }, ref)=>/*#__PURE__*/ jsx(Item, {
74
- ref: ref,
75
- className: cn('relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', inset && 'pl-8', className),
76
- ...props
77
- }));
308
+ const MenubarItem = /*#__PURE__*/ forwardRef((t0, ref)=>{
309
+ const $ = c(11);
310
+ let className;
311
+ let inset;
312
+ let props;
313
+ if ($[0] !== t0) {
314
+ ({ className, inset, ...props } = t0);
315
+ $[0] = t0;
316
+ $[1] = className;
317
+ $[2] = inset;
318
+ $[3] = props;
319
+ } else {
320
+ className = $[1];
321
+ inset = $[2];
322
+ props = $[3];
323
+ }
324
+ const t1 = inset && "pl-8";
325
+ let t2;
326
+ if ($[4] !== className || $[5] !== t1) {
327
+ t2 = cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t1, className);
328
+ $[4] = className;
329
+ $[5] = t1;
330
+ $[6] = t2;
331
+ } else t2 = $[6];
332
+ let t3;
333
+ if ($[7] !== props || $[8] !== ref || $[9] !== t2) {
334
+ t3 = /*#__PURE__*/ jsx(Item, {
335
+ ref: ref,
336
+ className: t2,
337
+ ...props
338
+ });
339
+ $[7] = props;
340
+ $[8] = ref;
341
+ $[9] = t2;
342
+ $[10] = t3;
343
+ } else t3 = $[10];
344
+ return t3;
345
+ });
78
346
  MenubarItem.displayName = Item.displayName;
79
- const MenubarCheckboxItem = /*#__PURE__*/ forwardRef(({ className, children, checked, ...props }, ref)=>/*#__PURE__*/ jsxs(CheckboxItem, {
80
- ref: ref,
81
- className: cn('relative flex 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),
82
- checked: checked,
83
- ...props,
84
- children: [
85
- /*#__PURE__*/ jsx("span", {
86
- className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
87
- children: /*#__PURE__*/ jsx(ItemIndicator, {
88
- children: /*#__PURE__*/ jsx(Check, {
89
- className: "h-4 w-4"
90
- })
347
+ const MenubarCheckboxItem = /*#__PURE__*/ forwardRef((t0, ref)=>{
348
+ const $ = c(14);
349
+ let checked;
350
+ let children;
351
+ let className;
352
+ let props;
353
+ if ($[0] !== t0) {
354
+ ({ className, children, checked, ...props } = t0);
355
+ $[0] = t0;
356
+ $[1] = checked;
357
+ $[2] = children;
358
+ $[3] = className;
359
+ $[4] = props;
360
+ } else {
361
+ checked = $[1];
362
+ children = $[2];
363
+ className = $[3];
364
+ props = $[4];
365
+ }
366
+ let t1;
367
+ if ($[5] !== className) {
368
+ t1 = cn("relative flex 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);
369
+ $[5] = className;
370
+ $[6] = t1;
371
+ } else t1 = $[6];
372
+ let t2;
373
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
374
+ t2 = /*#__PURE__*/ jsx("span", {
375
+ className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
376
+ children: /*#__PURE__*/ jsx(ItemIndicator, {
377
+ children: /*#__PURE__*/ jsx(Check, {
378
+ className: "h-4 w-4"
91
379
  })
92
- }),
93
- children
94
- ]
95
- }));
380
+ })
381
+ });
382
+ $[7] = t2;
383
+ } else t2 = $[7];
384
+ let t3;
385
+ if ($[8] !== checked || $[9] !== children || $[10] !== props || $[11] !== ref || $[12] !== t1) {
386
+ t3 = /*#__PURE__*/ jsxs(CheckboxItem, {
387
+ ref: ref,
388
+ className: t1,
389
+ checked: checked,
390
+ ...props,
391
+ children: [
392
+ t2,
393
+ children
394
+ ]
395
+ });
396
+ $[8] = checked;
397
+ $[9] = children;
398
+ $[10] = props;
399
+ $[11] = ref;
400
+ $[12] = t1;
401
+ $[13] = t3;
402
+ } else t3 = $[13];
403
+ return t3;
404
+ });
96
405
  MenubarCheckboxItem.displayName = CheckboxItem.displayName;
97
- const MenubarRadioItem = /*#__PURE__*/ forwardRef(({ className, children, ...props }, ref)=>/*#__PURE__*/ jsxs(RadioItem, {
98
- ref: ref,
99
- className: cn('relative flex 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),
100
- ...props,
101
- children: [
102
- /*#__PURE__*/ jsx("span", {
103
- className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
104
- children: /*#__PURE__*/ jsx(ItemIndicator, {
105
- children: /*#__PURE__*/ jsx(Circle, {
106
- className: "h-2 w-2 fill-current"
107
- })
406
+ const MenubarRadioItem = /*#__PURE__*/ forwardRef((t0, ref)=>{
407
+ const $ = c(12);
408
+ let children;
409
+ let className;
410
+ let props;
411
+ if ($[0] !== t0) {
412
+ ({ className, children, ...props } = t0);
413
+ $[0] = t0;
414
+ $[1] = children;
415
+ $[2] = className;
416
+ $[3] = props;
417
+ } else {
418
+ children = $[1];
419
+ className = $[2];
420
+ props = $[3];
421
+ }
422
+ let t1;
423
+ if ($[4] !== className) {
424
+ t1 = cn("relative flex 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);
425
+ $[4] = className;
426
+ $[5] = t1;
427
+ } else t1 = $[5];
428
+ let t2;
429
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
430
+ t2 = /*#__PURE__*/ jsx("span", {
431
+ className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
432
+ children: /*#__PURE__*/ jsx(ItemIndicator, {
433
+ children: /*#__PURE__*/ jsx(Circle, {
434
+ className: "h-2 w-2 fill-current"
108
435
  })
109
- }),
110
- children
111
- ]
112
- }));
436
+ })
437
+ });
438
+ $[6] = t2;
439
+ } else t2 = $[6];
440
+ let t3;
441
+ if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
442
+ t3 = /*#__PURE__*/ jsxs(RadioItem, {
443
+ ref: ref,
444
+ className: t1,
445
+ ...props,
446
+ children: [
447
+ t2,
448
+ children
449
+ ]
450
+ });
451
+ $[7] = children;
452
+ $[8] = props;
453
+ $[9] = ref;
454
+ $[10] = t1;
455
+ $[11] = t3;
456
+ } else t3 = $[11];
457
+ return t3;
458
+ });
113
459
  MenubarRadioItem.displayName = RadioItem.displayName;
114
- const MenubarLabel = /*#__PURE__*/ forwardRef(({ className, inset, ...props }, ref)=>/*#__PURE__*/ jsx(Label, {
115
- ref: ref,
116
- className: cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className),
117
- ...props
118
- }));
460
+ const MenubarLabel = /*#__PURE__*/ forwardRef((t0, ref)=>{
461
+ const $ = c(11);
462
+ let className;
463
+ let inset;
464
+ let props;
465
+ if ($[0] !== t0) {
466
+ ({ className, inset, ...props } = t0);
467
+ $[0] = t0;
468
+ $[1] = className;
469
+ $[2] = inset;
470
+ $[3] = props;
471
+ } else {
472
+ className = $[1];
473
+ inset = $[2];
474
+ props = $[3];
475
+ }
476
+ const t1 = inset && "pl-8";
477
+ let t2;
478
+ if ($[4] !== className || $[5] !== t1) {
479
+ t2 = cn("px-2 py-1.5 text-sm font-semibold", t1, className);
480
+ $[4] = className;
481
+ $[5] = t1;
482
+ $[6] = t2;
483
+ } else t2 = $[6];
484
+ let t3;
485
+ if ($[7] !== props || $[8] !== ref || $[9] !== t2) {
486
+ t3 = /*#__PURE__*/ jsx(Label, {
487
+ ref: ref,
488
+ className: t2,
489
+ ...props
490
+ });
491
+ $[7] = props;
492
+ $[8] = ref;
493
+ $[9] = t2;
494
+ $[10] = t3;
495
+ } else t3 = $[10];
496
+ return t3;
497
+ });
119
498
  MenubarLabel.displayName = Label.displayName;
120
- const MenubarSeparator = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Separator, {
121
- ref: ref,
122
- className: cn('-mx-1 my-1 h-px bg-muted', className),
123
- ...props
124
- }));
499
+ const MenubarSeparator = /*#__PURE__*/ forwardRef((t0, ref)=>{
500
+ const $ = c(9);
501
+ let className;
502
+ let props;
503
+ if ($[0] !== t0) {
504
+ ({ className, ...props } = t0);
505
+ $[0] = t0;
506
+ $[1] = className;
507
+ $[2] = props;
508
+ } else {
509
+ className = $[1];
510
+ props = $[2];
511
+ }
512
+ let t1;
513
+ if ($[3] !== className) {
514
+ t1 = cn("-mx-1 my-1 h-px bg-muted", className);
515
+ $[3] = className;
516
+ $[4] = t1;
517
+ } else t1 = $[4];
518
+ let t2;
519
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
520
+ t2 = /*#__PURE__*/ jsx(Separator, {
521
+ ref: ref,
522
+ className: t1,
523
+ ...props
524
+ });
525
+ $[5] = props;
526
+ $[6] = ref;
527
+ $[7] = t1;
528
+ $[8] = t2;
529
+ } else t2 = $[8];
530
+ return t2;
531
+ });
125
532
  MenubarSeparator.displayName = Separator.displayName;
126
- const MenubarShortcut = ({ className, ...props })=>/*#__PURE__*/ jsx("span", {
127
- className: cn('ml-auto text-xs tracking-widest text-muted-foreground', className),
128
- ...props
129
- });
533
+ const MenubarShortcut = (t0)=>{
534
+ const $ = c(8);
535
+ let className;
536
+ let props;
537
+ if ($[0] !== t0) {
538
+ ({ className, ...props } = t0);
539
+ $[0] = t0;
540
+ $[1] = className;
541
+ $[2] = props;
542
+ } else {
543
+ className = $[1];
544
+ props = $[2];
545
+ }
546
+ let t1;
547
+ if ($[3] !== className) {
548
+ t1 = cn("ml-auto text-xs tracking-widest text-muted-foreground", className);
549
+ $[3] = className;
550
+ $[4] = t1;
551
+ } else t1 = $[4];
552
+ let t2;
553
+ if ($[5] !== props || $[6] !== t1) {
554
+ t2 = /*#__PURE__*/ jsx("span", {
555
+ className: t1,
556
+ ...props
557
+ });
558
+ $[5] = props;
559
+ $[6] = t1;
560
+ $[7] = t2;
561
+ } else t2 = $[7];
562
+ return t2;
563
+ };
130
564
  MenubarShortcut.displayname = 'MenubarShortcut';
131
565
  export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger };