@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.
- package/dist/components/forms/field-renderer.cjs +120 -69
- package/dist/components/forms/field-renderer.js +120 -69
- package/dist/components/forms/form-designer.cjs +2352 -1488
- package/dist/components/forms/form-designer.js +2353 -1489
- package/dist/components/forms/form-examples.cjs +10 -10
- package/dist/components/forms/form-examples.js +10 -10
- package/dist/components/forms/form-state-viewer.cjs +988 -433
- package/dist/components/forms/form-state-viewer.js +988 -433
- package/dist/components/forms/metadata-form.cjs +446 -170
- package/dist/components/forms/metadata-form.js +446 -170
- package/dist/components/forms/schema-viewer.cjs +173 -80
- package/dist/components/forms/schema-viewer.js +173 -80
- package/dist/components/ui/accordion.cjs +131 -27
- package/dist/components/ui/accordion.js +131 -27
- package/dist/components/ui/alert-dialog.cjs +273 -45
- package/dist/components/ui/alert-dialog.js +273 -45
- package/dist/components/ui/alert.cjs +106 -17
- package/dist/components/ui/alert.js +106 -17
- package/dist/components/ui/avatar.cjs +100 -15
- package/dist/components/ui/avatar.js +100 -15
- package/dist/components/ui/badge.cjs +36 -6
- package/dist/components/ui/badge.js +36 -6
- package/dist/components/ui/breadcrumb.cjs +258 -52
- package/dist/components/ui/breadcrumb.js +258 -52
- package/dist/components/ui/button-group.cjs +119 -19
- package/dist/components/ui/button-group.js +119 -19
- package/dist/components/ui/button.cjs +48 -8
- package/dist/components/ui/button.js +48 -8
- package/dist/components/ui/calendar.cjs +88 -30
- package/dist/components/ui/calendar.js +88 -30
- package/dist/components/ui/card.cjs +199 -30
- package/dist/components/ui/card.js +199 -30
- package/dist/components/ui/checkbox.cjs +42 -8
- package/dist/components/ui/checkbox.js +42 -8
- package/dist/components/ui/combobox.cjs +150 -53
- package/dist/components/ui/combobox.js +150 -53
- package/dist/components/ui/command.cjs +291 -53
- package/dist/components/ui/command.js +291 -53
- package/dist/components/ui/context-menu.cjs +370 -72
- package/dist/components/ui/context-menu.js +370 -72
- package/dist/components/ui/data-table.cjs +76 -39
- package/dist/components/ui/data-table.js +76 -39
- package/dist/components/ui/date-picker.cjs +179 -68
- package/dist/components/ui/date-picker.js +179 -68
- package/dist/components/ui/datetime-picker.cjs +225 -104
- package/dist/components/ui/datetime-picker.js +225 -104
- package/dist/components/ui/dialog.cjs +290 -78
- package/dist/components/ui/dialog.js +290 -78
- package/dist/components/ui/drawer.cjs +220 -39
- package/dist/components/ui/drawer.js +220 -39
- package/dist/components/ui/dropdown-menu.cjs +376 -73
- package/dist/components/ui/dropdown-menu.js +376 -73
- package/dist/components/ui/editable-cell.cjs +106 -42
- package/dist/components/ui/editable-cell.js +106 -42
- package/dist/components/ui/empty-state.cjs +106 -33
- package/dist/components/ui/empty-state.js +106 -33
- package/dist/components/ui/file-upload.cjs +405 -187
- package/dist/components/ui/file-upload.d.ts +3 -1
- package/dist/components/ui/file-upload.js +405 -187
- package/dist/components/ui/hover-card.cjs +46 -7
- package/dist/components/ui/hover-card.js +46 -7
- package/dist/components/ui/index.cjs +4 -4
- package/dist/components/ui/input.cjs +39 -6
- package/dist/components/ui/input.js +39 -6
- package/dist/components/ui/label.cjs +34 -5
- package/dist/components/ui/label.js +34 -5
- package/dist/components/ui/layout/column.cjs +209 -41
- package/dist/components/ui/layout/column.js +209 -41
- package/dist/components/ui/layout/grid.cjs +275 -60
- package/dist/components/ui/layout/grid.js +275 -60
- package/dist/components/ui/layout/row.cjs +209 -41
- package/dist/components/ui/layout/row.js +209 -41
- package/dist/components/ui/menubar.cjs +540 -106
- package/dist/components/ui/menubar.js +540 -106
- package/dist/components/ui/multi-select.cjs +289 -135
- package/dist/components/ui/multi-select.js +289 -135
- package/dist/components/ui/navigation-menu.cjs +244 -47
- package/dist/components/ui/navigation-menu.js +244 -47
- package/dist/components/ui/pagination.cjs +301 -65
- package/dist/components/ui/pagination.js +301 -65
- package/dist/components/ui/popover.cjs +48 -9
- package/dist/components/ui/popover.js +48 -9
- package/dist/components/ui/progress.cjs +48 -8
- package/dist/components/ui/progress.js +48 -8
- package/dist/components/ui/radio-group.cjs +74 -12
- package/dist/components/ui/radio-group.js +74 -12
- package/dist/components/ui/resizable.cjs +75 -10
- package/dist/components/ui/resizable.js +75 -10
- package/dist/components/ui/scroll-area.cjs +113 -21
- package/dist/components/ui/scroll-area.js +113 -21
- package/dist/components/ui/search.cjs +280 -98
- package/dist/components/ui/search.js +280 -98
- package/dist/components/ui/select.cjs +334 -68
- package/dist/components/ui/select.js +334 -68
- package/dist/components/ui/separator.cjs +48 -7
- package/dist/components/ui/separator.js +48 -7
- package/dist/components/ui/sheet.cjs +236 -50
- package/dist/components/ui/sheet.js +236 -50
- package/dist/components/ui/skeleton.cjs +31 -5
- package/dist/components/ui/skeleton.js +31 -5
- package/dist/components/ui/slider.cjs +71 -21
- package/dist/components/ui/slider.js +71 -21
- package/dist/components/ui/sonner.cjs +43 -15
- package/dist/components/ui/sonner.js +43 -15
- package/dist/components/ui/spinner.cjs +83 -21
- package/dist/components/ui/spinner.js +83 -21
- package/dist/components/ui/stats-card.cjs +169 -60
- package/dist/components/ui/stats-card.js +169 -60
- package/dist/components/ui/stepper.cjs +126 -57
- package/dist/components/ui/stepper.js +126 -57
- package/dist/components/ui/switch.cjs +42 -8
- package/dist/components/ui/switch.js +42 -8
- package/dist/components/ui/table.cjs +267 -42
- package/dist/components/ui/table.js +267 -42
- package/dist/components/ui/tabs.cjs +100 -15
- package/dist/components/ui/tabs.js +100 -15
- package/dist/components/ui/textarea.cjs +34 -5
- package/dist/components/ui/textarea.js +34 -5
- package/dist/components/ui/toggle-group.cjs +112 -19
- package/dist/components/ui/toggle-group.js +112 -19
- package/dist/components/ui/toggle.cjs +43 -6
- package/dist/components/ui/toggle.js +43 -6
- package/dist/components/ui/tooltip.cjs +40 -6
- package/dist/components/ui/tooltip.js +40 -6
- package/dist/examples/admin-layout-example.cjs +879 -347
- package/dist/examples/admin-layout-example.js +879 -347
- package/dist/examples/app-shell-example.cjs +14 -14
- package/dist/examples/app-shell-example.js +14 -14
- package/dist/examples/dashboard-example.cjs +495 -334
- package/dist/examples/dashboard-example.js +495 -334
- package/dist/examples/data-management-example.cjs +501 -303
- package/dist/examples/data-management-example.js +502 -304
- package/dist/examples/flow-editor-layout-example.cjs +435 -231
- package/dist/examples/flow-editor-layout-example.js +436 -232
- package/dist/examples/flow-start-example.cjs +508 -251
- package/dist/examples/flow-start-example.js +509 -252
- package/dist/examples/form-builder-example.cjs +1006 -602
- package/dist/examples/form-builder-example.js +1007 -603
- package/dist/examples/new-project-example.cjs +806 -474
- package/dist/examples/new-project-example.js +807 -475
- package/dist/examples/settings-example.cjs +792 -704
- package/dist/examples/settings-example.js +792 -704
- package/dist/examples/vscode-example.cjs +731 -236
- package/dist/examples/vscode-example.js +731 -236
- 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((
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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((
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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((
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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((
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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((
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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((
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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((
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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((
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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((
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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((
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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 };
|