@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,5 +1,6 @@
1
1
  'use client';
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { c } from "react/compiler-runtime";
3
4
  import { CheckboxItem, Content, Group, Item, ItemIndicator, Label, Portal, RadioGroup, RadioItem, Root, Separator, Sub, SubContent, SubTrigger, Trigger } from "@radix-ui/react-dropdown-menu";
4
5
  import { Check, ChevronRight, Circle } from "lucide-react";
5
6
  import { forwardRef } from "react";
@@ -10,89 +11,391 @@ const DropdownMenuGroup = Group;
10
11
  const DropdownMenuPortal = Portal;
11
12
  const DropdownMenuSub = Sub;
12
13
  const DropdownMenuRadioGroup = RadioGroup;
13
- const DropdownMenuSubTrigger = /*#__PURE__*/ forwardRef(({ className, inset, children, ...props }, ref)=>/*#__PURE__*/ jsxs(SubTrigger, {
14
- ref: ref,
15
- className: cn('flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0', inset && 'pl-8', className),
16
- ...props,
17
- children: [
18
- children,
19
- /*#__PURE__*/ jsx(ChevronRight, {
20
- className: "ml-auto"
21
- })
22
- ]
23
- }));
14
+ const DropdownMenuSubTrigger = /*#__PURE__*/ forwardRef((t0, ref)=>{
15
+ const $ = c(14);
16
+ let children;
17
+ let className;
18
+ let inset;
19
+ let props;
20
+ if ($[0] !== t0) {
21
+ ({ className, inset, children, ...props } = t0);
22
+ $[0] = t0;
23
+ $[1] = children;
24
+ $[2] = className;
25
+ $[3] = inset;
26
+ $[4] = props;
27
+ } else {
28
+ children = $[1];
29
+ className = $[2];
30
+ inset = $[3];
31
+ props = $[4];
32
+ }
33
+ const t1 = inset && "pl-8";
34
+ let t2;
35
+ if ($[5] !== className || $[6] !== t1) {
36
+ t2 = cn("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", t1, className);
37
+ $[5] = className;
38
+ $[6] = t1;
39
+ $[7] = t2;
40
+ } else t2 = $[7];
41
+ let t3;
42
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
43
+ t3 = /*#__PURE__*/ jsx(ChevronRight, {
44
+ className: "ml-auto"
45
+ });
46
+ $[8] = t3;
47
+ } else t3 = $[8];
48
+ let t4;
49
+ if ($[9] !== children || $[10] !== props || $[11] !== ref || $[12] !== t2) {
50
+ t4 = /*#__PURE__*/ jsxs(SubTrigger, {
51
+ ref: ref,
52
+ className: t2,
53
+ ...props,
54
+ children: [
55
+ children,
56
+ t3
57
+ ]
58
+ });
59
+ $[9] = children;
60
+ $[10] = props;
61
+ $[11] = ref;
62
+ $[12] = t2;
63
+ $[13] = t4;
64
+ } else t4 = $[13];
65
+ return t4;
66
+ });
24
67
  DropdownMenuSubTrigger.displayName = SubTrigger.displayName;
25
- const DropdownMenuSubContent = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(SubContent, {
26
- ref: ref,
27
- className: cn('z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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-dropdown-menu-content-transform-origin]', className),
28
- ...props
29
- }));
30
- DropdownMenuSubContent.displayName = SubContent.displayName;
31
- const DropdownMenuContent = /*#__PURE__*/ forwardRef(({ className, sideOffset = 4, ...props }, ref)=>/*#__PURE__*/ jsx(Portal, {
32
- children: /*#__PURE__*/ jsx(Content, {
68
+ const DropdownMenuSubContent = /*#__PURE__*/ forwardRef((t0, ref)=>{
69
+ const $ = c(9);
70
+ let className;
71
+ let props;
72
+ if ($[0] !== t0) {
73
+ ({ className, ...props } = t0);
74
+ $[0] = t0;
75
+ $[1] = className;
76
+ $[2] = props;
77
+ } else {
78
+ className = $[1];
79
+ props = $[2];
80
+ }
81
+ let t1;
82
+ if ($[3] !== className) {
83
+ t1 = cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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-dropdown-menu-content-transform-origin]", className);
84
+ $[3] = className;
85
+ $[4] = t1;
86
+ } else t1 = $[4];
87
+ let t2;
88
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
89
+ t2 = /*#__PURE__*/ jsx(SubContent, {
33
90
  ref: ref,
34
- sideOffset: sideOffset,
35
- className: cn('z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 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-dropdown-menu-content-transform-origin]', className),
91
+ className: t1,
36
92
  ...props
37
- })
38
- }));
93
+ });
94
+ $[5] = props;
95
+ $[6] = ref;
96
+ $[7] = t1;
97
+ $[8] = t2;
98
+ } else t2 = $[8];
99
+ return t2;
100
+ });
101
+ DropdownMenuSubContent.displayName = SubContent.displayName;
102
+ const DropdownMenuContent = /*#__PURE__*/ forwardRef((t0, ref)=>{
103
+ const $ = c(11);
104
+ let className;
105
+ let props;
106
+ let t1;
107
+ if ($[0] !== t0) {
108
+ ({ className, sideOffset: t1, ...props } = t0);
109
+ $[0] = t0;
110
+ $[1] = className;
111
+ $[2] = props;
112
+ $[3] = t1;
113
+ } else {
114
+ className = $[1];
115
+ props = $[2];
116
+ t1 = $[3];
117
+ }
118
+ const sideOffset = void 0 === t1 ? 4 : t1;
119
+ let t2;
120
+ if ($[4] !== className) {
121
+ t2 = cn("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 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-dropdown-menu-content-transform-origin]", className);
122
+ $[4] = className;
123
+ $[5] = t2;
124
+ } else t2 = $[5];
125
+ let t3;
126
+ if ($[6] !== props || $[7] !== ref || $[8] !== sideOffset || $[9] !== t2) {
127
+ t3 = /*#__PURE__*/ jsx(Portal, {
128
+ children: /*#__PURE__*/ jsx(Content, {
129
+ ref: ref,
130
+ sideOffset: sideOffset,
131
+ className: t2,
132
+ ...props
133
+ })
134
+ });
135
+ $[6] = props;
136
+ $[7] = ref;
137
+ $[8] = sideOffset;
138
+ $[9] = t2;
139
+ $[10] = t3;
140
+ } else t3 = $[10];
141
+ return t3;
142
+ });
39
143
  DropdownMenuContent.displayName = Content.displayName;
40
- const DropdownMenuItem = /*#__PURE__*/ forwardRef(({ className, inset, ...props }, ref)=>/*#__PURE__*/ jsx(Item, {
41
- ref: ref,
42
- className: cn('relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0', inset && 'pl-8', className),
43
- ...props
44
- }));
144
+ const DropdownMenuItem = /*#__PURE__*/ forwardRef((t0, ref)=>{
145
+ const $ = c(11);
146
+ let className;
147
+ let inset;
148
+ let props;
149
+ if ($[0] !== t0) {
150
+ ({ className, inset, ...props } = t0);
151
+ $[0] = t0;
152
+ $[1] = className;
153
+ $[2] = inset;
154
+ $[3] = props;
155
+ } else {
156
+ className = $[1];
157
+ inset = $[2];
158
+ props = $[3];
159
+ }
160
+ const t1 = inset && "pl-8";
161
+ let t2;
162
+ if ($[4] !== className || $[5] !== t1) {
163
+ t2 = cn("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", t1, className);
164
+ $[4] = className;
165
+ $[5] = t1;
166
+ $[6] = t2;
167
+ } else t2 = $[6];
168
+ let t3;
169
+ if ($[7] !== props || $[8] !== ref || $[9] !== t2) {
170
+ t3 = /*#__PURE__*/ jsx(Item, {
171
+ ref: ref,
172
+ className: t2,
173
+ ...props
174
+ });
175
+ $[7] = props;
176
+ $[8] = ref;
177
+ $[9] = t2;
178
+ $[10] = t3;
179
+ } else t3 = $[10];
180
+ return t3;
181
+ });
45
182
  DropdownMenuItem.displayName = Item.displayName;
46
- const DropdownMenuCheckboxItem = /*#__PURE__*/ forwardRef(({ className, children, checked, ...props }, ref)=>/*#__PURE__*/ jsxs(CheckboxItem, {
47
- ref: ref,
48
- className: cn('relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className),
49
- checked: checked,
50
- ...props,
51
- children: [
52
- /*#__PURE__*/ jsx("span", {
53
- className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
54
- children: /*#__PURE__*/ jsx(ItemIndicator, {
55
- children: /*#__PURE__*/ jsx(Check, {
56
- className: "h-4 w-4"
57
- })
183
+ const DropdownMenuCheckboxItem = /*#__PURE__*/ forwardRef((t0, ref)=>{
184
+ const $ = c(14);
185
+ let checked;
186
+ let children;
187
+ let className;
188
+ let props;
189
+ if ($[0] !== t0) {
190
+ ({ className, children, checked, ...props } = t0);
191
+ $[0] = t0;
192
+ $[1] = checked;
193
+ $[2] = children;
194
+ $[3] = className;
195
+ $[4] = props;
196
+ } else {
197
+ checked = $[1];
198
+ children = $[2];
199
+ className = $[3];
200
+ props = $[4];
201
+ }
202
+ let t1;
203
+ if ($[5] !== className) {
204
+ t1 = cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className);
205
+ $[5] = className;
206
+ $[6] = t1;
207
+ } else t1 = $[6];
208
+ let t2;
209
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
210
+ t2 = /*#__PURE__*/ jsx("span", {
211
+ className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
212
+ children: /*#__PURE__*/ jsx(ItemIndicator, {
213
+ children: /*#__PURE__*/ jsx(Check, {
214
+ className: "h-4 w-4"
58
215
  })
59
- }),
60
- children
61
- ]
62
- }));
216
+ })
217
+ });
218
+ $[7] = t2;
219
+ } else t2 = $[7];
220
+ let t3;
221
+ if ($[8] !== checked || $[9] !== children || $[10] !== props || $[11] !== ref || $[12] !== t1) {
222
+ t3 = /*#__PURE__*/ jsxs(CheckboxItem, {
223
+ ref: ref,
224
+ className: t1,
225
+ checked: checked,
226
+ ...props,
227
+ children: [
228
+ t2,
229
+ children
230
+ ]
231
+ });
232
+ $[8] = checked;
233
+ $[9] = children;
234
+ $[10] = props;
235
+ $[11] = ref;
236
+ $[12] = t1;
237
+ $[13] = t3;
238
+ } else t3 = $[13];
239
+ return t3;
240
+ });
63
241
  DropdownMenuCheckboxItem.displayName = CheckboxItem.displayName;
64
- const DropdownMenuRadioItem = /*#__PURE__*/ forwardRef(({ className, children, ...props }, ref)=>/*#__PURE__*/ jsxs(RadioItem, {
65
- ref: ref,
66
- className: cn('relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className),
67
- ...props,
68
- children: [
69
- /*#__PURE__*/ jsx("span", {
70
- className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
71
- children: /*#__PURE__*/ jsx(ItemIndicator, {
72
- children: /*#__PURE__*/ jsx(Circle, {
73
- className: "h-2 w-2 fill-current"
74
- })
242
+ const DropdownMenuRadioItem = /*#__PURE__*/ forwardRef((t0, ref)=>{
243
+ const $ = c(12);
244
+ let children;
245
+ let className;
246
+ let props;
247
+ if ($[0] !== t0) {
248
+ ({ className, children, ...props } = t0);
249
+ $[0] = t0;
250
+ $[1] = children;
251
+ $[2] = className;
252
+ $[3] = props;
253
+ } else {
254
+ children = $[1];
255
+ className = $[2];
256
+ props = $[3];
257
+ }
258
+ let t1;
259
+ if ($[4] !== className) {
260
+ t1 = cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className);
261
+ $[4] = className;
262
+ $[5] = t1;
263
+ } else t1 = $[5];
264
+ let t2;
265
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
266
+ t2 = /*#__PURE__*/ jsx("span", {
267
+ className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
268
+ children: /*#__PURE__*/ jsx(ItemIndicator, {
269
+ children: /*#__PURE__*/ jsx(Circle, {
270
+ className: "h-2 w-2 fill-current"
75
271
  })
76
- }),
77
- children
78
- ]
79
- }));
272
+ })
273
+ });
274
+ $[6] = t2;
275
+ } else t2 = $[6];
276
+ let t3;
277
+ if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
278
+ t3 = /*#__PURE__*/ jsxs(RadioItem, {
279
+ ref: ref,
280
+ className: t1,
281
+ ...props,
282
+ children: [
283
+ t2,
284
+ children
285
+ ]
286
+ });
287
+ $[7] = children;
288
+ $[8] = props;
289
+ $[9] = ref;
290
+ $[10] = t1;
291
+ $[11] = t3;
292
+ } else t3 = $[11];
293
+ return t3;
294
+ });
80
295
  DropdownMenuRadioItem.displayName = RadioItem.displayName;
81
- const DropdownMenuLabel = /*#__PURE__*/ forwardRef(({ className, inset, ...props }, ref)=>/*#__PURE__*/ jsx(Label, {
82
- ref: ref,
83
- className: cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className),
84
- ...props
85
- }));
296
+ const DropdownMenuLabel = /*#__PURE__*/ forwardRef((t0, ref)=>{
297
+ const $ = c(11);
298
+ let className;
299
+ let inset;
300
+ let props;
301
+ if ($[0] !== t0) {
302
+ ({ className, inset, ...props } = t0);
303
+ $[0] = t0;
304
+ $[1] = className;
305
+ $[2] = inset;
306
+ $[3] = props;
307
+ } else {
308
+ className = $[1];
309
+ inset = $[2];
310
+ props = $[3];
311
+ }
312
+ const t1 = inset && "pl-8";
313
+ let t2;
314
+ if ($[4] !== className || $[5] !== t1) {
315
+ t2 = cn("px-2 py-1.5 text-sm font-semibold", t1, className);
316
+ $[4] = className;
317
+ $[5] = t1;
318
+ $[6] = t2;
319
+ } else t2 = $[6];
320
+ let t3;
321
+ if ($[7] !== props || $[8] !== ref || $[9] !== t2) {
322
+ t3 = /*#__PURE__*/ jsx(Label, {
323
+ ref: ref,
324
+ className: t2,
325
+ ...props
326
+ });
327
+ $[7] = props;
328
+ $[8] = ref;
329
+ $[9] = t2;
330
+ $[10] = t3;
331
+ } else t3 = $[10];
332
+ return t3;
333
+ });
86
334
  DropdownMenuLabel.displayName = Label.displayName;
87
- const DropdownMenuSeparator = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Separator, {
88
- ref: ref,
89
- className: cn('-mx-1 my-1 h-px bg-muted', className),
90
- ...props
91
- }));
335
+ const DropdownMenuSeparator = /*#__PURE__*/ forwardRef((t0, ref)=>{
336
+ const $ = c(9);
337
+ let className;
338
+ let props;
339
+ if ($[0] !== t0) {
340
+ ({ className, ...props } = t0);
341
+ $[0] = t0;
342
+ $[1] = className;
343
+ $[2] = props;
344
+ } else {
345
+ className = $[1];
346
+ props = $[2];
347
+ }
348
+ let t1;
349
+ if ($[3] !== className) {
350
+ t1 = cn("-mx-1 my-1 h-px bg-muted", className);
351
+ $[3] = className;
352
+ $[4] = t1;
353
+ } else t1 = $[4];
354
+ let t2;
355
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
356
+ t2 = /*#__PURE__*/ jsx(Separator, {
357
+ ref: ref,
358
+ className: t1,
359
+ ...props
360
+ });
361
+ $[5] = props;
362
+ $[6] = ref;
363
+ $[7] = t1;
364
+ $[8] = t2;
365
+ } else t2 = $[8];
366
+ return t2;
367
+ });
92
368
  DropdownMenuSeparator.displayName = Separator.displayName;
93
- const DropdownMenuShortcut = ({ className, ...props })=>/*#__PURE__*/ jsx("span", {
94
- className: cn('ml-auto text-xs tracking-widest opacity-60', className),
95
- ...props
96
- });
369
+ const DropdownMenuShortcut = (t0)=>{
370
+ const $ = c(8);
371
+ let className;
372
+ let props;
373
+ if ($[0] !== t0) {
374
+ ({ className, ...props } = t0);
375
+ $[0] = t0;
376
+ $[1] = className;
377
+ $[2] = props;
378
+ } else {
379
+ className = $[1];
380
+ props = $[2];
381
+ }
382
+ let t1;
383
+ if ($[3] !== className) {
384
+ t1 = cn("ml-auto text-xs tracking-widest opacity-60", className);
385
+ $[3] = className;
386
+ $[4] = t1;
387
+ } else t1 = $[4];
388
+ let t2;
389
+ if ($[5] !== props || $[6] !== t1) {
390
+ t2 = /*#__PURE__*/ jsx("span", {
391
+ className: t1,
392
+ ...props
393
+ });
394
+ $[5] = props;
395
+ $[6] = t1;
396
+ $[7] = t2;
397
+ } else t2 = $[7];
398
+ return t2;
399
+ };
97
400
  DropdownMenuShortcut.displayName = 'DropdownMenuShortcut';
98
401
  export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
@@ -28,6 +28,7 @@ __webpack_require__.d(__webpack_exports__, {
28
28
  createEditableColumn: ()=>createEditableColumn
29
29
  });
30
30
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
31
+ const compiler_runtime_namespaceObject = require("react/compiler-runtime");
31
32
  const external_react_namespaceObject = require("react");
32
33
  const external_date_fns_namespaceObject = require("date-fns");
33
34
  const external_lucide_react_namespaceObject = require("lucide-react");
@@ -98,9 +99,9 @@ function EditableCell({ cell, onUpdate }) {
98
99
  const cellContent = isEditing ? renderEditMode() : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
99
100
  className: (0, index_cjs_namespaceObject.cn)('min-h-[32px] px-2 py-1.5 -mx-2 rounded cursor-pointer', 'hover:bg-muted/50 transition-colors', 'flex items-center w-full'),
100
101
  onClick: ()=>setIsEditing(true),
101
- onKeyDown: (e)=>{
102
- if ('Enter' === e.key || ' ' === e.key) {
103
- e.preventDefault();
102
+ onKeyDown: (e_0)=>{
103
+ if ('Enter' === e_0.key || ' ' === e_0.key) {
104
+ e_0.preventDefault();
104
105
  setIsEditing(true);
105
106
  }
106
107
  },
@@ -157,7 +158,7 @@ function EditableCell({ cell, onUpdate }) {
157
158
  ref: inputRef,
158
159
  type: "number",
159
160
  value: value,
160
- onChange: (e)=>setValue(e.target.valueAsNumber),
161
+ onChange: (e_2)=>setValue(e_2.target.valueAsNumber),
161
162
  onBlur: handleSave,
162
163
  onKeyDown: handleKeyDown,
163
164
  min: meta?.min,
@@ -170,7 +171,7 @@ function EditableCell({ cell, onUpdate }) {
170
171
  ref: inputRef,
171
172
  type: "text",
172
173
  value: String(value ?? ''),
173
- onChange: (e)=>setValue(e.target.value),
174
+ onChange: (e_1)=>setValue(e_1.target.value),
174
175
  onBlur: handleSave,
175
176
  onKeyDown: handleKeyDown,
176
177
  placeholder: meta?.placeholder,
@@ -203,47 +204,110 @@ function createEditableColumn(accessorKey, header, meta) {
203
204
  meta
204
205
  };
205
206
  }
206
- function DatePickerCell({ value, onValueChange, onClose, placeholder }) {
207
+ function DatePickerCell(t0) {
208
+ const $ = (0, compiler_runtime_namespaceObject.c)(24);
209
+ const { value, onValueChange, onClose, placeholder } = t0;
207
210
  const [open, setOpen] = external_react_namespaceObject.useState(true);
208
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_popover_cjs_namespaceObject.Popover, {
209
- open: open,
210
- onOpenChange: (isOpen)=>{
211
+ let t1;
212
+ if ($[0] !== onClose) {
213
+ t1 = (isOpen)=>{
211
214
  setOpen(isOpen);
212
215
  if (!isOpen) onClose();
213
- },
214
- children: [
215
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverTrigger, {
216
- asChild: true,
217
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button, {
218
- variant: "outline",
219
- className: (0, index_cjs_namespaceObject.cn)('h-8 -mx-2 w-full justify-start text-left font-normal text-sm', !value && 'text-muted-foreground'),
220
- children: [
221
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CalendarIcon, {
222
- className: "mr-2 h-4 w-4 shrink-0"
223
- }),
224
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
225
- className: "truncate",
226
- children: value ? (0, external_date_fns_namespaceObject.format)(value, 'PP') : placeholder
227
- })
228
- ]
229
- })
230
- }),
231
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverContent, {
232
- className: "w-auto p-0",
233
- align: "start",
234
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_calendar_cjs_namespaceObject.Calendar, {
235
- mode: "single",
236
- selected: value,
237
- onSelect: (date)=>{
238
- onValueChange(date);
239
- setOpen(false);
240
- onClose();
241
- },
242
- initialFocus: true
243
- })
216
+ };
217
+ $[0] = onClose;
218
+ $[1] = t1;
219
+ } else t1 = $[1];
220
+ const t2 = !value && "text-muted-foreground";
221
+ let t3;
222
+ if ($[2] !== t2) {
223
+ t3 = (0, index_cjs_namespaceObject.cn)("h-8 -mx-2 w-full justify-start text-left font-normal text-sm", t2);
224
+ $[2] = t2;
225
+ $[3] = t3;
226
+ } else t3 = $[3];
227
+ let t4;
228
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
229
+ t4 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CalendarIcon, {
230
+ className: "mr-2 h-4 w-4 shrink-0"
231
+ });
232
+ $[4] = t4;
233
+ } else t4 = $[4];
234
+ let t5;
235
+ if ($[5] !== placeholder || $[6] !== value) {
236
+ t5 = value ? (0, external_date_fns_namespaceObject.format)(value, "PP") : placeholder;
237
+ $[5] = placeholder;
238
+ $[6] = value;
239
+ $[7] = t5;
240
+ } else t5 = $[7];
241
+ let t6;
242
+ if ($[8] !== t5) {
243
+ t6 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
244
+ className: "truncate",
245
+ children: t5
246
+ });
247
+ $[8] = t5;
248
+ $[9] = t6;
249
+ } else t6 = $[9];
250
+ let t7;
251
+ if ($[10] !== t3 || $[11] !== t6) {
252
+ t7 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverTrigger, {
253
+ asChild: true,
254
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button, {
255
+ variant: "outline",
256
+ className: t3,
257
+ children: [
258
+ t4,
259
+ t6
260
+ ]
244
261
  })
245
- ]
246
- });
262
+ });
263
+ $[10] = t3;
264
+ $[11] = t6;
265
+ $[12] = t7;
266
+ } else t7 = $[12];
267
+ let t8;
268
+ if ($[13] !== onClose || $[14] !== onValueChange) {
269
+ t8 = (date)=>{
270
+ onValueChange(date);
271
+ setOpen(false);
272
+ onClose();
273
+ };
274
+ $[13] = onClose;
275
+ $[14] = onValueChange;
276
+ $[15] = t8;
277
+ } else t8 = $[15];
278
+ let t9;
279
+ if ($[16] !== t8 || $[17] !== value) {
280
+ t9 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverContent, {
281
+ className: "w-auto p-0",
282
+ align: "start",
283
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_calendar_cjs_namespaceObject.Calendar, {
284
+ mode: "single",
285
+ selected: value,
286
+ onSelect: t8,
287
+ initialFocus: true
288
+ })
289
+ });
290
+ $[16] = t8;
291
+ $[17] = value;
292
+ $[18] = t9;
293
+ } else t9 = $[18];
294
+ let t10;
295
+ if ($[19] !== open || $[20] !== t1 || $[21] !== t7 || $[22] !== t9) {
296
+ t10 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_popover_cjs_namespaceObject.Popover, {
297
+ open: open,
298
+ onOpenChange: t1,
299
+ children: [
300
+ t7,
301
+ t9
302
+ ]
303
+ });
304
+ $[19] = open;
305
+ $[20] = t1;
306
+ $[21] = t7;
307
+ $[22] = t9;
308
+ $[23] = t10;
309
+ } else t10 = $[23];
310
+ return t10;
247
311
  }
248
312
  exports.EditableCell = __webpack_exports__.EditableCell;
249
313
  exports.createEditableColumn = __webpack_exports__.createEditableColumn;