@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
@@ -35,67 +35,264 @@ __webpack_require__.d(__webpack_exports__, {
35
35
  NavigationMenuItem: ()=>NavigationMenuItem
36
36
  });
37
37
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
38
+ const compiler_runtime_namespaceObject = require("react/compiler-runtime");
38
39
  const react_navigation_menu_namespaceObject = require("@radix-ui/react-navigation-menu");
39
40
  const external_class_variance_authority_namespaceObject = require("class-variance-authority");
40
41
  const external_lucide_react_namespaceObject = require("lucide-react");
41
42
  const external_react_namespaceObject = require("react");
42
43
  const index_cjs_namespaceObject = require("../../lib/index.cjs");
43
- const NavigationMenu = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, children, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_navigation_menu_namespaceObject.Root, {
44
- ref: ref,
45
- className: (0, index_cjs_namespaceObject.cn)('relative z-10 flex max-w-max flex-1 items-center justify-center', className),
46
- ...props,
47
- children: [
48
- children,
49
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(NavigationMenuViewport, {})
50
- ]
51
- }));
44
+ const NavigationMenu = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
45
+ const $ = (0, compiler_runtime_namespaceObject.c)(12);
46
+ let children;
47
+ let className;
48
+ let props;
49
+ if ($[0] !== t0) {
50
+ ({ className, children, ...props } = t0);
51
+ $[0] = t0;
52
+ $[1] = children;
53
+ $[2] = className;
54
+ $[3] = props;
55
+ } else {
56
+ children = $[1];
57
+ className = $[2];
58
+ props = $[3];
59
+ }
60
+ let t1;
61
+ if ($[4] !== className) {
62
+ t1 = (0, index_cjs_namespaceObject.cn)("relative z-10 flex max-w-max flex-1 items-center justify-center", className);
63
+ $[4] = className;
64
+ $[5] = t1;
65
+ } else t1 = $[5];
66
+ let t2;
67
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
68
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(NavigationMenuViewport, {});
69
+ $[6] = t2;
70
+ } else t2 = $[6];
71
+ let t3;
72
+ if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
73
+ t3 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_navigation_menu_namespaceObject.Root, {
74
+ ref: ref,
75
+ className: t1,
76
+ ...props,
77
+ children: [
78
+ children,
79
+ t2
80
+ ]
81
+ });
82
+ $[7] = children;
83
+ $[8] = props;
84
+ $[9] = ref;
85
+ $[10] = t1;
86
+ $[11] = t3;
87
+ } else t3 = $[11];
88
+ return t3;
89
+ });
52
90
  NavigationMenu.displayName = react_navigation_menu_namespaceObject.Root.displayName;
53
- const NavigationMenuList = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_navigation_menu_namespaceObject.List, {
54
- ref: ref,
55
- className: (0, index_cjs_namespaceObject.cn)('group flex flex-1 list-none items-center justify-center space-x-1', className),
56
- ...props
57
- }));
91
+ const NavigationMenuList = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
92
+ const $ = (0, compiler_runtime_namespaceObject.c)(9);
93
+ let className;
94
+ let props;
95
+ if ($[0] !== t0) {
96
+ ({ className, ...props } = t0);
97
+ $[0] = t0;
98
+ $[1] = className;
99
+ $[2] = props;
100
+ } else {
101
+ className = $[1];
102
+ props = $[2];
103
+ }
104
+ let t1;
105
+ if ($[3] !== className) {
106
+ t1 = (0, index_cjs_namespaceObject.cn)("group flex flex-1 list-none items-center justify-center space-x-1", className);
107
+ $[3] = className;
108
+ $[4] = t1;
109
+ } else t1 = $[4];
110
+ let t2;
111
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
112
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_navigation_menu_namespaceObject.List, {
113
+ ref: ref,
114
+ className: t1,
115
+ ...props
116
+ });
117
+ $[5] = props;
118
+ $[6] = ref;
119
+ $[7] = t1;
120
+ $[8] = t2;
121
+ } else t2 = $[8];
122
+ return t2;
123
+ });
58
124
  NavigationMenuList.displayName = react_navigation_menu_namespaceObject.List.displayName;
59
125
  const NavigationMenuItem = react_navigation_menu_namespaceObject.Item;
60
126
  const navigationMenuTriggerStyle = (0, external_class_variance_authority_namespaceObject.cva)('group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent');
61
- const NavigationMenuTrigger = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, children, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_navigation_menu_namespaceObject.Trigger, {
62
- ref: ref,
63
- className: (0, index_cjs_namespaceObject.cn)(navigationMenuTriggerStyle(), 'group', className),
64
- ...props,
65
- children: [
66
- children,
67
- ' ',
68
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronDown, {
69
- className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
70
- "aria-hidden": "true"
71
- })
72
- ]
73
- }));
127
+ const NavigationMenuTrigger = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
128
+ const $ = (0, compiler_runtime_namespaceObject.c)(12);
129
+ let children;
130
+ let className;
131
+ let props;
132
+ if ($[0] !== t0) {
133
+ ({ className, children, ...props } = t0);
134
+ $[0] = t0;
135
+ $[1] = children;
136
+ $[2] = className;
137
+ $[3] = props;
138
+ } else {
139
+ children = $[1];
140
+ className = $[2];
141
+ props = $[3];
142
+ }
143
+ let t1;
144
+ if ($[4] !== className) {
145
+ t1 = (0, index_cjs_namespaceObject.cn)(navigationMenuTriggerStyle(), "group", className);
146
+ $[4] = className;
147
+ $[5] = t1;
148
+ } else t1 = $[5];
149
+ let t2;
150
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
151
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronDown, {
152
+ className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
153
+ "aria-hidden": "true"
154
+ });
155
+ $[6] = t2;
156
+ } else t2 = $[6];
157
+ let t3;
158
+ if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
159
+ t3 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_navigation_menu_namespaceObject.Trigger, {
160
+ ref: ref,
161
+ className: t1,
162
+ ...props,
163
+ children: [
164
+ children,
165
+ " ",
166
+ t2
167
+ ]
168
+ });
169
+ $[7] = children;
170
+ $[8] = props;
171
+ $[9] = ref;
172
+ $[10] = t1;
173
+ $[11] = t3;
174
+ } else t3 = $[11];
175
+ return t3;
176
+ });
74
177
  NavigationMenuTrigger.displayName = react_navigation_menu_namespaceObject.Trigger.displayName;
75
- const NavigationMenuContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_navigation_menu_namespaceObject.Content, {
76
- ref: ref,
77
- className: (0, index_cjs_namespaceObject.cn)('left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ', className),
78
- ...props
79
- }));
80
- NavigationMenuContent.displayName = react_navigation_menu_namespaceObject.Content.displayName;
81
- const NavigationMenuLink = react_navigation_menu_namespaceObject.Link;
82
- const NavigationMenuViewport = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
83
- className: (0, index_cjs_namespaceObject.cn)('absolute left-0 top-full flex justify-center'),
84
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_navigation_menu_namespaceObject.Viewport, {
85
- className: (0, index_cjs_namespaceObject.cn)('origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]', className),
178
+ const NavigationMenuContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
179
+ const $ = (0, compiler_runtime_namespaceObject.c)(9);
180
+ let className;
181
+ let props;
182
+ if ($[0] !== t0) {
183
+ ({ className, ...props } = t0);
184
+ $[0] = t0;
185
+ $[1] = className;
186
+ $[2] = props;
187
+ } else {
188
+ className = $[1];
189
+ props = $[2];
190
+ }
191
+ let t1;
192
+ if ($[3] !== className) {
193
+ t1 = (0, index_cjs_namespaceObject.cn)("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ", className);
194
+ $[3] = className;
195
+ $[4] = t1;
196
+ } else t1 = $[4];
197
+ let t2;
198
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
199
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_navigation_menu_namespaceObject.Content, {
86
200
  ref: ref,
201
+ className: t1,
87
202
  ...props
88
- })
89
- }));
203
+ });
204
+ $[5] = props;
205
+ $[6] = ref;
206
+ $[7] = t1;
207
+ $[8] = t2;
208
+ } else t2 = $[8];
209
+ return t2;
210
+ });
211
+ NavigationMenuContent.displayName = react_navigation_menu_namespaceObject.Content.displayName;
212
+ const NavigationMenuLink = react_navigation_menu_namespaceObject.Link;
213
+ const NavigationMenuViewport = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
214
+ const $ = (0, compiler_runtime_namespaceObject.c)(10);
215
+ let className;
216
+ let props;
217
+ if ($[0] !== t0) {
218
+ ({ className, ...props } = t0);
219
+ $[0] = t0;
220
+ $[1] = className;
221
+ $[2] = props;
222
+ } else {
223
+ className = $[1];
224
+ props = $[2];
225
+ }
226
+ let t1;
227
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
228
+ t1 = (0, index_cjs_namespaceObject.cn)("absolute left-0 top-full flex justify-center");
229
+ $[3] = t1;
230
+ } else t1 = $[3];
231
+ let t2;
232
+ if ($[4] !== className) {
233
+ t2 = (0, index_cjs_namespaceObject.cn)("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]", className);
234
+ $[4] = className;
235
+ $[5] = t2;
236
+ } else t2 = $[5];
237
+ let t3;
238
+ if ($[6] !== props || $[7] !== ref || $[8] !== t2) {
239
+ t3 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
240
+ className: t1,
241
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_navigation_menu_namespaceObject.Viewport, {
242
+ className: t2,
243
+ ref: ref,
244
+ ...props
245
+ })
246
+ });
247
+ $[6] = props;
248
+ $[7] = ref;
249
+ $[8] = t2;
250
+ $[9] = t3;
251
+ } else t3 = $[9];
252
+ return t3;
253
+ });
90
254
  NavigationMenuViewport.displayName = react_navigation_menu_namespaceObject.Viewport.displayName;
91
- const NavigationMenuIndicator = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_navigation_menu_namespaceObject.Indicator, {
92
- ref: ref,
93
- className: (0, index_cjs_namespaceObject.cn)('top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in', className),
94
- ...props,
95
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
255
+ const NavigationMenuIndicator = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
256
+ const $ = (0, compiler_runtime_namespaceObject.c)(10);
257
+ let className;
258
+ let props;
259
+ if ($[0] !== t0) {
260
+ ({ className, ...props } = t0);
261
+ $[0] = t0;
262
+ $[1] = className;
263
+ $[2] = props;
264
+ } else {
265
+ className = $[1];
266
+ props = $[2];
267
+ }
268
+ let t1;
269
+ if ($[3] !== className) {
270
+ t1 = (0, index_cjs_namespaceObject.cn)("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in", className);
271
+ $[3] = className;
272
+ $[4] = t1;
273
+ } else t1 = $[4];
274
+ let t2;
275
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
276
+ t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
96
277
  className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"
97
- })
98
- }));
278
+ });
279
+ $[5] = t2;
280
+ } else t2 = $[5];
281
+ let t3;
282
+ if ($[6] !== props || $[7] !== ref || $[8] !== t1) {
283
+ t3 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_navigation_menu_namespaceObject.Indicator, {
284
+ ref: ref,
285
+ className: t1,
286
+ ...props,
287
+ children: t2
288
+ });
289
+ $[6] = props;
290
+ $[7] = ref;
291
+ $[8] = t1;
292
+ $[9] = t3;
293
+ } else t3 = $[9];
294
+ return t3;
295
+ });
99
296
  NavigationMenuIndicator.displayName = react_navigation_menu_namespaceObject.Indicator.displayName;
100
297
  exports.NavigationMenu = __webpack_exports__.NavigationMenu;
101
298
  exports.NavigationMenuContent = __webpack_exports__.NavigationMenuContent;
@@ -1,64 +1,261 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { c } from "react/compiler-runtime";
2
3
  import { Content, Indicator, Item, Link, List, Root, Trigger, Viewport } from "@radix-ui/react-navigation-menu";
3
4
  import { cva } from "class-variance-authority";
4
5
  import { ChevronDown } from "lucide-react";
5
6
  import { forwardRef } from "react";
6
7
  import { cn } from "../../lib/index.js";
7
- const NavigationMenu = /*#__PURE__*/ forwardRef(({ className, children, ...props }, ref)=>/*#__PURE__*/ jsxs(Root, {
8
- ref: ref,
9
- className: cn('relative z-10 flex max-w-max flex-1 items-center justify-center', className),
10
- ...props,
11
- children: [
12
- children,
13
- /*#__PURE__*/ jsx(NavigationMenuViewport, {})
14
- ]
15
- }));
8
+ const NavigationMenu = /*#__PURE__*/ forwardRef((t0, ref)=>{
9
+ const $ = c(12);
10
+ let children;
11
+ let className;
12
+ let props;
13
+ if ($[0] !== t0) {
14
+ ({ className, children, ...props } = t0);
15
+ $[0] = t0;
16
+ $[1] = children;
17
+ $[2] = className;
18
+ $[3] = props;
19
+ } else {
20
+ children = $[1];
21
+ className = $[2];
22
+ props = $[3];
23
+ }
24
+ let t1;
25
+ if ($[4] !== className) {
26
+ t1 = cn("relative z-10 flex max-w-max flex-1 items-center justify-center", className);
27
+ $[4] = className;
28
+ $[5] = t1;
29
+ } else t1 = $[5];
30
+ let t2;
31
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
32
+ t2 = /*#__PURE__*/ jsx(NavigationMenuViewport, {});
33
+ $[6] = t2;
34
+ } else t2 = $[6];
35
+ let t3;
36
+ if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
37
+ t3 = /*#__PURE__*/ jsxs(Root, {
38
+ ref: ref,
39
+ className: t1,
40
+ ...props,
41
+ children: [
42
+ children,
43
+ t2
44
+ ]
45
+ });
46
+ $[7] = children;
47
+ $[8] = props;
48
+ $[9] = ref;
49
+ $[10] = t1;
50
+ $[11] = t3;
51
+ } else t3 = $[11];
52
+ return t3;
53
+ });
16
54
  NavigationMenu.displayName = Root.displayName;
17
- const NavigationMenuList = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(List, {
18
- ref: ref,
19
- className: cn('group flex flex-1 list-none items-center justify-center space-x-1', className),
20
- ...props
21
- }));
55
+ const NavigationMenuList = /*#__PURE__*/ forwardRef((t0, ref)=>{
56
+ const $ = c(9);
57
+ let className;
58
+ let props;
59
+ if ($[0] !== t0) {
60
+ ({ className, ...props } = t0);
61
+ $[0] = t0;
62
+ $[1] = className;
63
+ $[2] = props;
64
+ } else {
65
+ className = $[1];
66
+ props = $[2];
67
+ }
68
+ let t1;
69
+ if ($[3] !== className) {
70
+ t1 = cn("group flex flex-1 list-none items-center justify-center space-x-1", className);
71
+ $[3] = className;
72
+ $[4] = t1;
73
+ } else t1 = $[4];
74
+ let t2;
75
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
76
+ t2 = /*#__PURE__*/ jsx(List, {
77
+ ref: ref,
78
+ className: t1,
79
+ ...props
80
+ });
81
+ $[5] = props;
82
+ $[6] = ref;
83
+ $[7] = t1;
84
+ $[8] = t2;
85
+ } else t2 = $[8];
86
+ return t2;
87
+ });
22
88
  NavigationMenuList.displayName = List.displayName;
23
89
  const NavigationMenuItem = Item;
24
90
  const navigationMenuTriggerStyle = cva('group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent');
25
- const NavigationMenuTrigger = /*#__PURE__*/ forwardRef(({ className, children, ...props }, ref)=>/*#__PURE__*/ jsxs(Trigger, {
26
- ref: ref,
27
- className: cn(navigationMenuTriggerStyle(), 'group', className),
28
- ...props,
29
- children: [
30
- children,
31
- ' ',
32
- /*#__PURE__*/ jsx(ChevronDown, {
33
- className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
34
- "aria-hidden": "true"
35
- })
36
- ]
37
- }));
91
+ const NavigationMenuTrigger = /*#__PURE__*/ forwardRef((t0, ref)=>{
92
+ const $ = c(12);
93
+ let children;
94
+ let className;
95
+ let props;
96
+ if ($[0] !== t0) {
97
+ ({ className, children, ...props } = t0);
98
+ $[0] = t0;
99
+ $[1] = children;
100
+ $[2] = className;
101
+ $[3] = props;
102
+ } else {
103
+ children = $[1];
104
+ className = $[2];
105
+ props = $[3];
106
+ }
107
+ let t1;
108
+ if ($[4] !== className) {
109
+ t1 = cn(navigationMenuTriggerStyle(), "group", className);
110
+ $[4] = className;
111
+ $[5] = t1;
112
+ } else t1 = $[5];
113
+ let t2;
114
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
115
+ t2 = /*#__PURE__*/ jsx(ChevronDown, {
116
+ className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
117
+ "aria-hidden": "true"
118
+ });
119
+ $[6] = t2;
120
+ } else t2 = $[6];
121
+ let t3;
122
+ if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
123
+ t3 = /*#__PURE__*/ jsxs(Trigger, {
124
+ ref: ref,
125
+ className: t1,
126
+ ...props,
127
+ children: [
128
+ children,
129
+ " ",
130
+ t2
131
+ ]
132
+ });
133
+ $[7] = children;
134
+ $[8] = props;
135
+ $[9] = ref;
136
+ $[10] = t1;
137
+ $[11] = t3;
138
+ } else t3 = $[11];
139
+ return t3;
140
+ });
38
141
  NavigationMenuTrigger.displayName = Trigger.displayName;
39
- const NavigationMenuContent = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Content, {
40
- ref: ref,
41
- className: cn('left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ', className),
42
- ...props
43
- }));
44
- NavigationMenuContent.displayName = Content.displayName;
45
- const NavigationMenuLink = Link;
46
- const NavigationMenuViewport = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("div", {
47
- className: cn('absolute left-0 top-full flex justify-center'),
48
- children: /*#__PURE__*/ jsx(Viewport, {
49
- className: cn('origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]', className),
142
+ const NavigationMenuContent = /*#__PURE__*/ forwardRef((t0, ref)=>{
143
+ const $ = c(9);
144
+ let className;
145
+ let props;
146
+ if ($[0] !== t0) {
147
+ ({ className, ...props } = t0);
148
+ $[0] = t0;
149
+ $[1] = className;
150
+ $[2] = props;
151
+ } else {
152
+ className = $[1];
153
+ props = $[2];
154
+ }
155
+ let t1;
156
+ if ($[3] !== className) {
157
+ t1 = cn("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ", className);
158
+ $[3] = className;
159
+ $[4] = t1;
160
+ } else t1 = $[4];
161
+ let t2;
162
+ if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
163
+ t2 = /*#__PURE__*/ jsx(Content, {
50
164
  ref: ref,
165
+ className: t1,
51
166
  ...props
52
- })
53
- }));
167
+ });
168
+ $[5] = props;
169
+ $[6] = ref;
170
+ $[7] = t1;
171
+ $[8] = t2;
172
+ } else t2 = $[8];
173
+ return t2;
174
+ });
175
+ NavigationMenuContent.displayName = Content.displayName;
176
+ const NavigationMenuLink = Link;
177
+ const NavigationMenuViewport = /*#__PURE__*/ forwardRef((t0, ref)=>{
178
+ const $ = c(10);
179
+ let className;
180
+ let props;
181
+ if ($[0] !== t0) {
182
+ ({ className, ...props } = t0);
183
+ $[0] = t0;
184
+ $[1] = className;
185
+ $[2] = props;
186
+ } else {
187
+ className = $[1];
188
+ props = $[2];
189
+ }
190
+ let t1;
191
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
192
+ t1 = cn("absolute left-0 top-full flex justify-center");
193
+ $[3] = t1;
194
+ } else t1 = $[3];
195
+ let t2;
196
+ if ($[4] !== className) {
197
+ t2 = cn("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]", className);
198
+ $[4] = className;
199
+ $[5] = t2;
200
+ } else t2 = $[5];
201
+ let t3;
202
+ if ($[6] !== props || $[7] !== ref || $[8] !== t2) {
203
+ t3 = /*#__PURE__*/ jsx("div", {
204
+ className: t1,
205
+ children: /*#__PURE__*/ jsx(Viewport, {
206
+ className: t2,
207
+ ref: ref,
208
+ ...props
209
+ })
210
+ });
211
+ $[6] = props;
212
+ $[7] = ref;
213
+ $[8] = t2;
214
+ $[9] = t3;
215
+ } else t3 = $[9];
216
+ return t3;
217
+ });
54
218
  NavigationMenuViewport.displayName = Viewport.displayName;
55
- const NavigationMenuIndicator = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Indicator, {
56
- ref: ref,
57
- className: cn('top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in', className),
58
- ...props,
59
- children: /*#__PURE__*/ jsx("div", {
219
+ const NavigationMenuIndicator = /*#__PURE__*/ forwardRef((t0, ref)=>{
220
+ const $ = c(10);
221
+ let className;
222
+ let props;
223
+ if ($[0] !== t0) {
224
+ ({ className, ...props } = t0);
225
+ $[0] = t0;
226
+ $[1] = className;
227
+ $[2] = props;
228
+ } else {
229
+ className = $[1];
230
+ props = $[2];
231
+ }
232
+ let t1;
233
+ if ($[3] !== className) {
234
+ t1 = cn("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in", className);
235
+ $[3] = className;
236
+ $[4] = t1;
237
+ } else t1 = $[4];
238
+ let t2;
239
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
240
+ t2 = /*#__PURE__*/ jsx("div", {
60
241
  className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"
61
- })
62
- }));
242
+ });
243
+ $[5] = t2;
244
+ } else t2 = $[5];
245
+ let t3;
246
+ if ($[6] !== props || $[7] !== ref || $[8] !== t1) {
247
+ t3 = /*#__PURE__*/ jsx(Indicator, {
248
+ ref: ref,
249
+ className: t1,
250
+ ...props,
251
+ children: t2
252
+ });
253
+ $[6] = props;
254
+ $[7] = ref;
255
+ $[8] = t1;
256
+ $[9] = t3;
257
+ } else t3 = $[9];
258
+ return t3;
259
+ });
63
260
  NavigationMenuIndicator.displayName = Indicator.displayName;
64
261
  export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle };