@cloudvoyant/helix-react 0.13.0 → 0.14.0-rc.202608291105.ae58f36
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/index.cjs +669 -383
- package/dist/index.d.cts +90 -6
- package/dist/index.d.ts +90 -6
- package/dist/index.js +706 -372
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -60,6 +60,16 @@ __export(index_exports, {
|
|
|
60
60
|
ComboboxList: () => ComboboxList,
|
|
61
61
|
ComboboxTrigger: () => ComboboxTrigger,
|
|
62
62
|
Container: () => Container,
|
|
63
|
+
Dialog: () => Dialog,
|
|
64
|
+
DialogBackdrop: () => DialogBackdrop,
|
|
65
|
+
DialogContent: () => DialogContent,
|
|
66
|
+
DialogDescription: () => DialogDescription,
|
|
67
|
+
DialogDismiss: () => DialogDismiss,
|
|
68
|
+
DialogFooter: () => DialogFooter,
|
|
69
|
+
DialogHeader: () => DialogHeader,
|
|
70
|
+
DialogProvider: () => DialogProvider,
|
|
71
|
+
DialogTitle: () => DialogTitle,
|
|
72
|
+
DialogTrigger: () => DialogTrigger,
|
|
63
73
|
Field: () => Field,
|
|
64
74
|
FieldError: () => FieldError,
|
|
65
75
|
FieldHelper: () => FieldHelper,
|
|
@@ -96,12 +106,27 @@ __export(index_exports, {
|
|
|
96
106
|
NumberInputDecrement: () => NumberInputDecrement,
|
|
97
107
|
NumberInputIncrement: () => NumberInputIncrement,
|
|
98
108
|
NumberInputInput: () => NumberInputInput,
|
|
109
|
+
Page: () => Page,
|
|
110
|
+
PageContent: () => PageContent,
|
|
111
|
+
PageFooter: () => PageFooter,
|
|
112
|
+
PageGutter: () => PageGutter,
|
|
113
|
+
PageSection: () => PageSection,
|
|
99
114
|
Pagination: () => Pagination,
|
|
100
115
|
PaginationEllipsis: () => PaginationEllipsis,
|
|
101
116
|
PaginationItem: () => PaginationItem,
|
|
102
117
|
PaginationItems: () => PaginationItems,
|
|
103
118
|
PaginationNext: () => PaginationNext,
|
|
104
119
|
PaginationPrevious: () => PaginationPrevious,
|
|
120
|
+
Popover: () => Popover,
|
|
121
|
+
PopoverAnchor: () => PopoverAnchor,
|
|
122
|
+
PopoverContent: () => PopoverContent,
|
|
123
|
+
PopoverDescription: () => PopoverDescription,
|
|
124
|
+
PopoverDismiss: () => PopoverDismiss,
|
|
125
|
+
PopoverIndicator: () => PopoverIndicator,
|
|
126
|
+
PopoverProvider: () => PopoverProvider,
|
|
127
|
+
PopoverTitle: () => PopoverTitle,
|
|
128
|
+
PopoverTrigger: () => PopoverTrigger,
|
|
129
|
+
Portal: () => import_portal5.Portal,
|
|
105
130
|
Row: () => Row,
|
|
106
131
|
Scroll: () => Scroll,
|
|
107
132
|
Select: () => Select,
|
|
@@ -164,19 +189,41 @@ __export(index_exports, {
|
|
|
164
189
|
Textarea: () => Textarea,
|
|
165
190
|
ToggleButton: () => ToggleButton,
|
|
166
191
|
ToggleButtonIndicator: () => ToggleButtonIndicator,
|
|
192
|
+
Tooltip: () => Tooltip,
|
|
193
|
+
TooltipContent: () => TooltipContent,
|
|
194
|
+
TooltipProvider: () => TooltipProvider,
|
|
195
|
+
TooltipTrigger: () => TooltipTrigger,
|
|
167
196
|
VStack: () => VStack,
|
|
168
|
-
|
|
197
|
+
Window: () => Window,
|
|
198
|
+
WindowBody: () => WindowBody,
|
|
199
|
+
WindowControl: () => WindowControl,
|
|
200
|
+
WindowDismiss: () => WindowDismiss,
|
|
201
|
+
WindowDragTrigger: () => WindowDragTrigger,
|
|
202
|
+
WindowHeader: () => WindowHeader,
|
|
203
|
+
WindowProvider: () => WindowProvider,
|
|
204
|
+
WindowResizeTrigger: () => WindowResizeTrigger,
|
|
205
|
+
WindowStageTrigger: () => WindowStageTrigger,
|
|
206
|
+
WindowTitle: () => WindowTitle,
|
|
207
|
+
navbarMenuTriggerStyle: () => import_helix49.navbarMenuTriggerStyle,
|
|
169
208
|
useCheckbox: () => useCheckbox,
|
|
170
209
|
useCombobox: () => useCombobox,
|
|
210
|
+
useDialog: () => import_dialog.useDialog,
|
|
211
|
+
useDialogContext: () => import_dialog.useDialogContext,
|
|
171
212
|
useField: () => useField,
|
|
172
213
|
useMediaQuery: () => useMediaQuery,
|
|
173
214
|
useNavbar: () => useNavbar,
|
|
174
215
|
useNumberInput: () => useNumberInput,
|
|
216
|
+
usePopover: () => import_popover.usePopover,
|
|
217
|
+
usePopoverContext: () => import_popover.usePopoverContext,
|
|
175
218
|
useSelect: () => useSelect,
|
|
176
219
|
useSidebar: () => useSidebar,
|
|
177
220
|
useSwitch: () => useSwitch,
|
|
178
221
|
useTabs: () => useTabs,
|
|
179
|
-
useTagInput: () => useTagInput
|
|
222
|
+
useTagInput: () => useTagInput,
|
|
223
|
+
useTooltip: () => import_tooltip.useTooltip,
|
|
224
|
+
useTooltipContext: () => import_tooltip.useTooltipContext,
|
|
225
|
+
useWindow: () => import_floating_panel.useFloatingPanel,
|
|
226
|
+
useWindowContext: () => import_floating_panel.useFloatingPanelContext
|
|
180
227
|
});
|
|
181
228
|
module.exports = __toCommonJS(index_exports);
|
|
182
229
|
|
|
@@ -199,57 +246,197 @@ function ToggleButtonIndicator(props) {
|
|
|
199
246
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_toggle.ToggleIndicator, { ...props });
|
|
200
247
|
}
|
|
201
248
|
|
|
202
|
-
// src/
|
|
203
|
-
var
|
|
249
|
+
// src/tooltip.tsx
|
|
250
|
+
var import_tooltip = require("@ark-ui/react/tooltip");
|
|
251
|
+
var import_portal = require("@ark-ui/react/portal");
|
|
204
252
|
var import_helix3 = require("@cloudvoyant/helix");
|
|
205
253
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
254
|
+
function Tooltip(props) {
|
|
255
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_tooltip.TooltipRoot, { ...props });
|
|
256
|
+
}
|
|
257
|
+
function TooltipProvider(props) {
|
|
258
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_tooltip.TooltipRootProvider, { ...props });
|
|
259
|
+
}
|
|
260
|
+
function TooltipTrigger({ className, ...props }) {
|
|
261
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_tooltip.TooltipTrigger, { className: (0, import_helix3.cn)(className), ...props });
|
|
262
|
+
}
|
|
263
|
+
function TooltipContent({ arrow = true, className, ...props }) {
|
|
264
|
+
const tooltip = (0, import_tooltip.useTooltipContext)();
|
|
265
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_portal.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_tooltip.TooltipPositioner, { className: import_helix3.tooltipPositionerBase, children: [
|
|
266
|
+
arrow && tooltip.open ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_tooltip.TooltipArrow, { className: import_helix3.tooltipArrowBase, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_tooltip.TooltipArrowTip, {}) }) : null,
|
|
267
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_tooltip.TooltipContent, { className: (0, import_helix3.cn)(import_helix3.tooltipContentBase, className), ...props })
|
|
268
|
+
] }) });
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
// src/popover.tsx
|
|
272
|
+
var import_popover = require("@ark-ui/react/popover");
|
|
273
|
+
var import_portal2 = require("@ark-ui/react/portal");
|
|
274
|
+
var import_helix4 = require("@cloudvoyant/helix");
|
|
275
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
276
|
+
function Popover(props) {
|
|
277
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_popover.PopoverRoot, { ...props });
|
|
278
|
+
}
|
|
279
|
+
function PopoverProvider(props) {
|
|
280
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_popover.PopoverRootProvider, { ...props });
|
|
281
|
+
}
|
|
282
|
+
function PopoverTrigger({ className, ...props }) {
|
|
283
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_popover.PopoverTrigger, { className: (0, import_helix4.cn)(className), ...props });
|
|
284
|
+
}
|
|
285
|
+
function PopoverAnchor({ className, ...props }) {
|
|
286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_popover.PopoverAnchor, { className: (0, import_helix4.cn)(className), ...props });
|
|
287
|
+
}
|
|
288
|
+
function PopoverContent({ arrow = false, className, ...props }) {
|
|
289
|
+
const popover = (0, import_popover.usePopoverContext)();
|
|
290
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_portal2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_popover.PopoverPositioner, { className: import_helix4.popoverPositionerBase, children: [
|
|
291
|
+
arrow && popover.open ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_popover.PopoverArrow, { className: import_helix4.popoverArrowBase, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_popover.PopoverArrowTip, {}) }) : null,
|
|
292
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_popover.PopoverContent, { className: (0, import_helix4.cn)(import_helix4.popoverContentBase, className), ...props })
|
|
293
|
+
] }) });
|
|
294
|
+
}
|
|
295
|
+
function PopoverTitle({ className, ...props }) {
|
|
296
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_popover.PopoverTitle, { className: (0, import_helix4.cn)(import_helix4.popoverTitleBase, className), ...props });
|
|
297
|
+
}
|
|
298
|
+
function PopoverDescription({ className, ...props }) {
|
|
299
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_popover.PopoverDescription, { className: (0, import_helix4.cn)(import_helix4.popoverDescriptionBase, className), ...props });
|
|
300
|
+
}
|
|
301
|
+
function PopoverDismiss({ className, ...props }) {
|
|
302
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_popover.PopoverCloseTrigger, { "aria-label": "Close", className: (0, import_helix4.cn)(import_helix4.popoverCloseTriggerBase, className), ...props });
|
|
303
|
+
}
|
|
304
|
+
function PopoverIndicator({ className, ...props }) {
|
|
305
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_popover.PopoverIndicator, { className: (0, import_helix4.cn)(import_helix4.popoverIndicatorBase, className), ...props });
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
// src/dialog.tsx
|
|
309
|
+
var import_dialog = require("@ark-ui/react/dialog");
|
|
310
|
+
var import_portal3 = require("@ark-ui/react/portal");
|
|
311
|
+
var import_helix5 = require("@cloudvoyant/helix");
|
|
312
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
313
|
+
function Dialog(props) {
|
|
314
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_dialog.DialogRoot, { ...props });
|
|
315
|
+
}
|
|
316
|
+
function DialogProvider(props) {
|
|
317
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_dialog.DialogRootProvider, { ...props });
|
|
318
|
+
}
|
|
319
|
+
function DialogTrigger({ className, ...props }) {
|
|
320
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_dialog.DialogTrigger, { className: (0, import_helix5.cn)(className), ...props });
|
|
321
|
+
}
|
|
322
|
+
function DialogBackdrop({ className, ...props }) {
|
|
323
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_portal3.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_dialog.DialogBackdrop, { className: (0, import_helix5.cn)(import_helix5.dialogBackdropBase, className), ...props }) });
|
|
324
|
+
}
|
|
325
|
+
function DialogContent({ positionerClassName, fullscreen, className, ...props }) {
|
|
326
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_portal3.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_dialog.DialogPositioner, { className: (0, import_helix5.cn)(import_helix5.dialogPositionerBase, fullscreen && "p-0", positionerClassName), children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
327
|
+
import_dialog.DialogContent,
|
|
328
|
+
{
|
|
329
|
+
className: (0, import_helix5.cn)(import_helix5.dialogContentBase, fullscreen && import_helix5.dialogFullscreenContentBase, className),
|
|
330
|
+
...props
|
|
331
|
+
}
|
|
332
|
+
) }) });
|
|
333
|
+
}
|
|
334
|
+
function DialogTitle({ className, ...props }) {
|
|
335
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_dialog.DialogTitle, { className: (0, import_helix5.cn)(import_helix5.dialogTitleBase, className), ...props });
|
|
336
|
+
}
|
|
337
|
+
function DialogDescription({ className, ...props }) {
|
|
338
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_dialog.DialogDescription, { className: (0, import_helix5.cn)(import_helix5.dialogDescriptionBase, className), ...props });
|
|
339
|
+
}
|
|
340
|
+
function DialogHeader({ sticky, className, ...props }) {
|
|
341
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: (0, import_helix5.cn)(import_helix5.dialogHeaderBase, sticky && import_helix5.dialogHeaderStickyBase, className), ...props });
|
|
342
|
+
}
|
|
343
|
+
function DialogFooter({ sticky, className, ...props }) {
|
|
344
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: (0, import_helix5.cn)(import_helix5.dialogFooterBase, sticky && import_helix5.dialogFooterStickyBase, className), ...props });
|
|
345
|
+
}
|
|
346
|
+
function DialogDismiss({ className, ...props }) {
|
|
347
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_dialog.DialogCloseTrigger, { "aria-label": "Close", className: (0, import_helix5.cn)(import_helix5.dialogCloseTriggerBase, className), ...props });
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
// src/window.tsx
|
|
351
|
+
var import_floating_panel = require("@ark-ui/react/floating-panel");
|
|
352
|
+
var import_portal4 = require("@ark-ui/react/portal");
|
|
353
|
+
var import_helix6 = require("@cloudvoyant/helix");
|
|
354
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
355
|
+
function Window({ className, positionerClassName, children, ...props }) {
|
|
356
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_floating_panel.FloatingPanelRoot, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal4.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_floating_panel.FloatingPanelPositioner, { className: (0, import_helix6.cn)(import_helix6.windowPositionerBase, positionerClassName), children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_floating_panel.FloatingPanelContent, { className: (0, import_helix6.cn)(import_helix6.windowContentBase, className), children }) }) }) });
|
|
357
|
+
}
|
|
358
|
+
function WindowProvider(props) {
|
|
359
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_floating_panel.FloatingPanelRootProvider, { ...props });
|
|
360
|
+
}
|
|
361
|
+
function WindowDragTrigger({ className, ...props }) {
|
|
362
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_floating_panel.FloatingPanelDragTrigger, { className: (0, import_helix6.cn)(import_helix6.windowDragTriggerBase, className), ...props });
|
|
363
|
+
}
|
|
364
|
+
function WindowHeader({ className, ...props }) {
|
|
365
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_floating_panel.FloatingPanelHeader, { className: (0, import_helix6.cn)(import_helix6.windowHeaderBase, className), ...props });
|
|
366
|
+
}
|
|
367
|
+
function WindowTitle({ className, ...props }) {
|
|
368
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_floating_panel.FloatingPanelTitle, { className: (0, import_helix6.cn)(import_helix6.windowTitleBase, className), ...props });
|
|
369
|
+
}
|
|
370
|
+
function WindowControl({ className, ...props }) {
|
|
371
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_floating_panel.FloatingPanelControl, { className: (0, import_helix6.cn)(import_helix6.windowControlBase, className), ...props });
|
|
372
|
+
}
|
|
373
|
+
function WindowStageTrigger({ className, ...props }) {
|
|
374
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_floating_panel.FloatingPanelStageTrigger, { className: (0, import_helix6.cn)(import_helix6.windowStageTriggerBase, className), ...props });
|
|
375
|
+
}
|
|
376
|
+
function WindowDismiss({ className, ...props }) {
|
|
377
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_floating_panel.FloatingPanelCloseTrigger, { "aria-label": "Close", className: (0, import_helix6.cn)(import_helix6.windowCloseTriggerBase, className), ...props });
|
|
378
|
+
}
|
|
379
|
+
function WindowBody({ className, ...props }) {
|
|
380
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_floating_panel.FloatingPanelBody, { className: (0, import_helix6.cn)(import_helix6.windowBodyBase, className), ...props });
|
|
381
|
+
}
|
|
382
|
+
function WindowResizeTrigger({ axis = "se", className, ...props }) {
|
|
383
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_floating_panel.FloatingPanelResizeTrigger, { axis, className: (0, import_helix6.cn)(import_helix6.windowResizeTriggerBase, className), ...props });
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
// src/badge.tsx
|
|
387
|
+
var import_factory2 = require("@ark-ui/react/factory");
|
|
388
|
+
var import_helix7 = require("@cloudvoyant/helix");
|
|
389
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
206
390
|
function Badge({ className, variant, color, size, ...props }) {
|
|
207
|
-
return /* @__PURE__ */ (0,
|
|
391
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_factory2.ark.span, { className: (0, import_helix7.cn)((0, import_helix7.badgeVariants)({ variant, color, size }), className), ...props });
|
|
208
392
|
}
|
|
209
393
|
|
|
210
394
|
// src/container.tsx
|
|
211
395
|
var import_factory3 = require("@ark-ui/react/factory");
|
|
212
|
-
var
|
|
213
|
-
var
|
|
396
|
+
var import_helix8 = require("@cloudvoyant/helix");
|
|
397
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
214
398
|
function Container({ className, ...props }) {
|
|
215
|
-
return /* @__PURE__ */ (0,
|
|
399
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_factory3.ark.div, { className: (0, import_helix8.cn)(import_helix8.containerBase, className), ...props });
|
|
216
400
|
}
|
|
217
401
|
|
|
218
402
|
// src/row.tsx
|
|
219
403
|
var import_factory4 = require("@ark-ui/react/factory");
|
|
220
|
-
var
|
|
221
|
-
var
|
|
404
|
+
var import_helix9 = require("@cloudvoyant/helix");
|
|
405
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
222
406
|
function Row({ className, ...props }) {
|
|
223
|
-
return /* @__PURE__ */ (0,
|
|
407
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_factory4.ark.div, { className: (0, import_helix9.cn)(import_helix9.rowBase, className), ...props });
|
|
224
408
|
}
|
|
225
409
|
|
|
226
410
|
// src/col.tsx
|
|
227
411
|
var import_factory5 = require("@ark-ui/react/factory");
|
|
228
|
-
var
|
|
229
|
-
var
|
|
412
|
+
var import_helix10 = require("@cloudvoyant/helix");
|
|
413
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
230
414
|
function Col({ className, ...props }) {
|
|
231
|
-
return /* @__PURE__ */ (0,
|
|
415
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_factory5.ark.div, { className: (0, import_helix10.cn)(import_helix10.colBase, className), ...props });
|
|
232
416
|
}
|
|
233
417
|
|
|
234
418
|
// src/center.tsx
|
|
235
419
|
var import_factory6 = require("@ark-ui/react/factory");
|
|
236
|
-
var
|
|
237
|
-
var
|
|
420
|
+
var import_helix11 = require("@cloudvoyant/helix");
|
|
421
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
238
422
|
function Center({ className, ...props }) {
|
|
239
|
-
return /* @__PURE__ */ (0,
|
|
423
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_factory6.ark.div, { className: (0, import_helix11.cn)(import_helix11.centerBase, className), ...props });
|
|
240
424
|
}
|
|
241
425
|
|
|
426
|
+
// src/portal.tsx
|
|
427
|
+
var import_portal5 = require("@ark-ui/react/portal");
|
|
428
|
+
|
|
242
429
|
// src/item.tsx
|
|
243
430
|
var import_factory7 = require("@ark-ui/react/factory");
|
|
244
|
-
var
|
|
245
|
-
var
|
|
431
|
+
var import_helix12 = require("@cloudvoyant/helix");
|
|
432
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
246
433
|
function Item({ className, variant, ...props }) {
|
|
247
|
-
return /* @__PURE__ */ (0,
|
|
434
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_factory7.ark.div, { className: (0, import_helix12.cn)((0, import_helix12.itemVariants)({ variant }), className), ...props });
|
|
248
435
|
}
|
|
249
436
|
|
|
250
437
|
// src/card/root.tsx
|
|
251
438
|
var import_factory8 = require("@ark-ui/react/factory");
|
|
252
|
-
var
|
|
439
|
+
var import_helix13 = require("@cloudvoyant/helix");
|
|
253
440
|
|
|
254
441
|
// src/card/context.ts
|
|
255
442
|
var import_react = require("react");
|
|
@@ -259,62 +446,62 @@ function useCardOrientation() {
|
|
|
259
446
|
}
|
|
260
447
|
|
|
261
448
|
// src/card/root.tsx
|
|
262
|
-
var
|
|
449
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
263
450
|
function Card({ className, variant, size, orientation, children, ...props }) {
|
|
264
451
|
const resolvedOrientation = orientation ?? "vertical";
|
|
265
|
-
return /* @__PURE__ */ (0,
|
|
452
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(CardOrientationContext.Provider, { value: resolvedOrientation, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_factory8.ark.div, { className: (0, import_helix13.cn)((0, import_helix13.cardVariants)({ variant, size, orientation: resolvedOrientation }), className), ...props, children }) });
|
|
266
453
|
}
|
|
267
454
|
|
|
268
455
|
// src/card/header.tsx
|
|
269
456
|
var import_factory9 = require("@ark-ui/react/factory");
|
|
270
|
-
var
|
|
271
|
-
var
|
|
457
|
+
var import_helix14 = require("@cloudvoyant/helix");
|
|
458
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
272
459
|
function CardHeader({ className, ...props }) {
|
|
273
|
-
return /* @__PURE__ */ (0,
|
|
460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_factory9.ark.div, { className: (0, import_helix14.cn)(import_helix14.cardHeaderBase, className), ...props });
|
|
274
461
|
}
|
|
275
462
|
|
|
276
463
|
// src/card/body.tsx
|
|
277
464
|
var import_factory10 = require("@ark-ui/react/factory");
|
|
278
|
-
var
|
|
279
|
-
var
|
|
465
|
+
var import_helix15 = require("@cloudvoyant/helix");
|
|
466
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
280
467
|
function CardBody({ className, ...props }) {
|
|
281
|
-
return /* @__PURE__ */ (0,
|
|
468
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_factory10.ark.div, { className: (0, import_helix15.cn)(import_helix15.cardBodyBase, className), ...props });
|
|
282
469
|
}
|
|
283
470
|
|
|
284
471
|
// src/card/footer.tsx
|
|
285
472
|
var import_factory11 = require("@ark-ui/react/factory");
|
|
286
|
-
var
|
|
287
|
-
var
|
|
473
|
+
var import_helix16 = require("@cloudvoyant/helix");
|
|
474
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
288
475
|
function CardFooter({ className, ...props }) {
|
|
289
|
-
return /* @__PURE__ */ (0,
|
|
476
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_factory11.ark.div, { className: (0, import_helix16.cn)(import_helix16.cardFooterBase, className), ...props });
|
|
290
477
|
}
|
|
291
478
|
|
|
292
479
|
// src/card/title.tsx
|
|
293
480
|
var import_factory12 = require("@ark-ui/react/factory");
|
|
294
|
-
var
|
|
295
|
-
var
|
|
481
|
+
var import_helix17 = require("@cloudvoyant/helix");
|
|
482
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
296
483
|
function CardTitle({ className, ...props }) {
|
|
297
|
-
return /* @__PURE__ */ (0,
|
|
484
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_factory12.ark.h3, { className: (0, import_helix17.cn)(import_helix17.cardTitleBase, className), ...props });
|
|
298
485
|
}
|
|
299
486
|
|
|
300
487
|
// src/card/description.tsx
|
|
301
488
|
var import_factory13 = require("@ark-ui/react/factory");
|
|
302
|
-
var
|
|
303
|
-
var
|
|
489
|
+
var import_helix18 = require("@cloudvoyant/helix");
|
|
490
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
304
491
|
function CardDescription({ className, ...props }) {
|
|
305
|
-
return /* @__PURE__ */ (0,
|
|
492
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_factory13.ark.p, { className: (0, import_helix18.cn)(import_helix18.cardDescriptionBase, className), ...props });
|
|
306
493
|
}
|
|
307
494
|
|
|
308
495
|
// src/card/cover.tsx
|
|
309
496
|
var import_factory14 = require("@ark-ui/react/factory");
|
|
310
|
-
var
|
|
311
|
-
var
|
|
497
|
+
var import_helix19 = require("@cloudvoyant/helix");
|
|
498
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
312
499
|
function CardCover({ className, variant, orientation, ...props }) {
|
|
313
500
|
const contextOrientation = useCardOrientation();
|
|
314
|
-
return /* @__PURE__ */ (0,
|
|
501
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
315
502
|
import_factory14.ark.div,
|
|
316
503
|
{
|
|
317
|
-
className: (0,
|
|
504
|
+
className: (0, import_helix19.cn)((0, import_helix19.cardCoverVariants)({ variant, orientation: orientation ?? contextOrientation }), className),
|
|
318
505
|
...props
|
|
319
506
|
}
|
|
320
507
|
);
|
|
@@ -322,52 +509,104 @@ function CardCover({ className, variant, orientation, ...props }) {
|
|
|
322
509
|
|
|
323
510
|
// src/stack.tsx
|
|
324
511
|
var import_factory15 = require("@ark-ui/react/factory");
|
|
325
|
-
var
|
|
326
|
-
var
|
|
512
|
+
var import_helix20 = require("@cloudvoyant/helix");
|
|
513
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
327
514
|
function Stack({ className, ...props }) {
|
|
328
|
-
return /* @__PURE__ */ (0,
|
|
515
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_factory15.ark.div, { className: (0, import_helix20.cn)(import_helix20.stackBase, className), ...props });
|
|
329
516
|
}
|
|
330
517
|
function HStack({ className, ...props }) {
|
|
331
|
-
return /* @__PURE__ */ (0,
|
|
518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_factory15.ark.div, { className: (0, import_helix20.cn)(import_helix20.hstackBase, className), ...props });
|
|
332
519
|
}
|
|
333
520
|
function VStack({ className, ...props }) {
|
|
334
|
-
return /* @__PURE__ */ (0,
|
|
521
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_factory15.ark.div, { className: (0, import_helix20.cn)(import_helix20.vstackBase, className), ...props });
|
|
335
522
|
}
|
|
336
523
|
|
|
337
524
|
// src/scroll.tsx
|
|
338
525
|
var import_scroll_area = require("@ark-ui/react/scroll-area");
|
|
339
|
-
var
|
|
340
|
-
var
|
|
526
|
+
var import_helix21 = require("@cloudvoyant/helix");
|
|
527
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
341
528
|
function Scroll({
|
|
342
529
|
className,
|
|
343
530
|
orientation = "vertical",
|
|
531
|
+
variant = "default",
|
|
344
532
|
contentClassName,
|
|
345
533
|
thumbClassName,
|
|
346
534
|
viewportClassName,
|
|
347
535
|
children,
|
|
348
536
|
...props
|
|
349
537
|
}) {
|
|
350
|
-
return /* @__PURE__ */ (0,
|
|
351
|
-
/* @__PURE__ */ (0,
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
538
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_scroll_area.ScrollAreaRoot, { className: (0, import_helix21.cn)(import_helix21.scrollRootBase, className), ...props, children: [
|
|
539
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_scroll_area.ScrollAreaViewport, { className: (0, import_helix21.cn)(import_helix21.scrollViewportBase, viewportClassName), children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_scroll_area.ScrollAreaContent, { className: (0, import_helix21.cn)(import_helix21.scrollContentBase, contentClassName), children }) }),
|
|
540
|
+
variant === "hidden" ? null : /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
|
|
541
|
+
(orientation === "vertical" || orientation === "both") && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_scroll_area.ScrollAreaScrollbar, { orientation: "vertical", className: import_helix21.scrollScrollbarBase, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_scroll_area.ScrollAreaThumb, { className: (0, import_helix21.cn)(import_helix21.scrollThumbBase, thumbClassName) }) }),
|
|
542
|
+
(orientation === "horizontal" || orientation === "both") && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_scroll_area.ScrollAreaScrollbar, { orientation: "horizontal", className: import_helix21.scrollScrollbarBase, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_scroll_area.ScrollAreaThumb, { className: (0, import_helix21.cn)(import_helix21.scrollThumbBase, thumbClassName) }) }),
|
|
543
|
+
orientation === "both" && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_scroll_area.ScrollAreaCorner, { className: import_helix21.scrollCornerBase })
|
|
544
|
+
] })
|
|
355
545
|
] });
|
|
356
546
|
}
|
|
357
547
|
|
|
548
|
+
// src/page.tsx
|
|
549
|
+
var import_factory16 = require("@ark-ui/react/factory");
|
|
550
|
+
var import_helix22 = require("@cloudvoyant/helix");
|
|
551
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
552
|
+
function Page({ variant = "default", className, children, ...props }) {
|
|
553
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_factory16.ark.div, { "data-slot": "page", className: (0, import_helix22.cn)((0, import_helix22.pageVariants)({ variant }), className), ...props, children });
|
|
554
|
+
}
|
|
555
|
+
function PageGutter({
|
|
556
|
+
side = "left",
|
|
557
|
+
align = "start",
|
|
558
|
+
contentClassName,
|
|
559
|
+
className,
|
|
560
|
+
children,
|
|
561
|
+
...props
|
|
562
|
+
}) {
|
|
563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
564
|
+
import_factory16.ark.div,
|
|
565
|
+
{
|
|
566
|
+
"data-slot": "page-gutter-area",
|
|
567
|
+
className: (0, import_helix22.cn)(import_helix22.pageGutterAreaBase, side === "right" && "[grid-area:right]"),
|
|
568
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
569
|
+
import_factory16.ark.div,
|
|
570
|
+
{
|
|
571
|
+
"data-slot": "page-gutter",
|
|
572
|
+
className: (0, import_helix22.cn)((0, import_helix22.pageGutterVariants)({ side }), className),
|
|
573
|
+
...props,
|
|
574
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
575
|
+
import_factory16.ark.div,
|
|
576
|
+
{
|
|
577
|
+
"data-slot": "page-gutter-content",
|
|
578
|
+
className: (0, import_helix22.cn)((0, import_helix22.pageGutterContentVariants)({ align }), contentClassName),
|
|
579
|
+
children
|
|
580
|
+
}
|
|
581
|
+
)
|
|
582
|
+
}
|
|
583
|
+
)
|
|
584
|
+
}
|
|
585
|
+
);
|
|
586
|
+
}
|
|
587
|
+
function PageContent({ className, children, ...props }) {
|
|
588
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_factory16.ark.main, { "data-slot": "page-content", className: (0, import_helix22.cn)(import_helix22.pageContentBase, className), ...props, children });
|
|
589
|
+
}
|
|
590
|
+
function PageFooter({ className, children, ...props }) {
|
|
591
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_factory16.ark.footer, { "data-slot": "page-footer", className: (0, import_helix22.cn)(import_helix22.pageFooterBase, className), ...props, children });
|
|
592
|
+
}
|
|
593
|
+
function PageSection({ className, children, ...props }) {
|
|
594
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_factory16.ark.section, { "data-slot": "page-section", className: (0, import_helix22.cn)(import_helix22.pageSectionBase, className), ...props, children });
|
|
595
|
+
}
|
|
596
|
+
|
|
358
597
|
// src/splitter.tsx
|
|
359
598
|
var import_splitter = require("@ark-ui/react/splitter");
|
|
360
|
-
var
|
|
361
|
-
var
|
|
599
|
+
var import_helix23 = require("@cloudvoyant/helix");
|
|
600
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
362
601
|
function Splitter({ className, ...props }) {
|
|
363
|
-
return /* @__PURE__ */ (0,
|
|
602
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_splitter.SplitterRoot, { className: (0, import_helix23.cn)(import_helix23.splitterRootBase, className), ...props });
|
|
364
603
|
}
|
|
365
604
|
function SplitterPanel({ className, ...props }) {
|
|
366
|
-
return /* @__PURE__ */ (0,
|
|
605
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_splitter.SplitterPanel, { className: (0, import_helix23.cn)(import_helix23.splitterPanelBase, className), ...props });
|
|
367
606
|
}
|
|
368
607
|
function SplitterResizeTrigger({ className, children, ...props }) {
|
|
369
|
-
return /* @__PURE__ */ (0,
|
|
370
|
-
/* @__PURE__ */ (0,
|
|
608
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_splitter.SplitterResizeTrigger, { className: (0, import_helix23.cn)(import_helix23.splitterResizeTriggerBase, className), ...props, children: [
|
|
609
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { "aria-hidden": true, "data-part": "separator", className: import_helix23.splitterResizeTriggerSeparatorBase }),
|
|
371
610
|
children
|
|
372
611
|
] });
|
|
373
612
|
}
|
|
@@ -375,10 +614,10 @@ function SplitterResizeTriggerIndicator({
|
|
|
375
614
|
className,
|
|
376
615
|
...props
|
|
377
616
|
}) {
|
|
378
|
-
return /* @__PURE__ */ (0,
|
|
617
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
379
618
|
import_splitter.SplitterResizeTriggerIndicator,
|
|
380
619
|
{
|
|
381
|
-
className: (0,
|
|
620
|
+
className: (0, import_helix23.cn)(import_helix23.splitterResizeTriggerIndicatorBase, className),
|
|
382
621
|
...props
|
|
383
622
|
}
|
|
384
623
|
);
|
|
@@ -386,7 +625,7 @@ function SplitterResizeTriggerIndicator({
|
|
|
386
625
|
|
|
387
626
|
// src/sidebar/Provider.tsx
|
|
388
627
|
var React2 = __toESM(require("react"), 1);
|
|
389
|
-
var
|
|
628
|
+
var import_helix24 = require("@cloudvoyant/helix");
|
|
390
629
|
|
|
391
630
|
// src/sidebar/context.ts
|
|
392
631
|
var React = __toESM(require("react"), 1);
|
|
@@ -400,7 +639,7 @@ function useSidebar() {
|
|
|
400
639
|
}
|
|
401
640
|
|
|
402
641
|
// src/sidebar/Provider.tsx
|
|
403
|
-
var
|
|
642
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
404
643
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
405
644
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
406
645
|
function useIsMobile() {
|
|
@@ -458,7 +697,7 @@ function Provider({
|
|
|
458
697
|
}, [openProp]);
|
|
459
698
|
React2.useEffect(() => {
|
|
460
699
|
const handleKeyDown = (event) => {
|
|
461
|
-
if (event.key ===
|
|
700
|
+
if (event.key === import_helix24.SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
462
701
|
event.preventDefault();
|
|
463
702
|
toggleSidebar();
|
|
464
703
|
}
|
|
@@ -479,16 +718,16 @@ function Provider({
|
|
|
479
718
|
}),
|
|
480
719
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
481
720
|
);
|
|
482
|
-
return /* @__PURE__ */ (0,
|
|
721
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
483
722
|
Row,
|
|
484
723
|
{
|
|
485
724
|
"data-slot": "sidebar-wrapper",
|
|
486
725
|
style: {
|
|
487
|
-
"--sidebar-width":
|
|
488
|
-
"--sidebar-width-icon":
|
|
726
|
+
"--sidebar-width": import_helix24.SIDEBAR_WIDTH,
|
|
727
|
+
"--sidebar-width-icon": import_helix24.SIDEBAR_WIDTH_ICON,
|
|
489
728
|
...style
|
|
490
729
|
},
|
|
491
|
-
className: (0,
|
|
730
|
+
className: (0, import_helix24.cn)(import_helix24.sidebarStyles.wrapperClass, className),
|
|
492
731
|
...props,
|
|
493
732
|
children
|
|
494
733
|
}
|
|
@@ -497,8 +736,8 @@ function Provider({
|
|
|
497
736
|
|
|
498
737
|
// src/sidebar/Root.tsx
|
|
499
738
|
var import_drawer = require("@ark-ui/react/drawer");
|
|
500
|
-
var
|
|
501
|
-
var
|
|
739
|
+
var import_helix25 = require("@cloudvoyant/helix");
|
|
740
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
502
741
|
function Root({
|
|
503
742
|
side = "left",
|
|
504
743
|
variant = "sidebar",
|
|
@@ -509,39 +748,39 @@ function Root({
|
|
|
509
748
|
}) {
|
|
510
749
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
511
750
|
if (collapsible === "none") {
|
|
512
|
-
return /* @__PURE__ */ (0,
|
|
751
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
513
752
|
Col,
|
|
514
753
|
{
|
|
515
754
|
"data-slot": "sidebar",
|
|
516
755
|
"data-sidebar": "sidebar",
|
|
517
|
-
className: (0,
|
|
756
|
+
className: (0, import_helix25.cn)("h-full w-(--sidebar-width) bg-sidebar text-sidebar-foreground", className),
|
|
518
757
|
...props,
|
|
519
758
|
children
|
|
520
759
|
}
|
|
521
760
|
);
|
|
522
761
|
}
|
|
523
762
|
if (isMobile) {
|
|
524
|
-
return /* @__PURE__ */ (0,
|
|
763
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
525
764
|
import_drawer.DrawerRoot,
|
|
526
765
|
{
|
|
527
766
|
open: openMobile,
|
|
528
767
|
onOpenChange: (details) => setOpenMobile(details.open),
|
|
529
768
|
...props,
|
|
530
769
|
children: [
|
|
531
|
-
/* @__PURE__ */ (0,
|
|
532
|
-
/* @__PURE__ */ (0,
|
|
770
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_drawer.DrawerBackdrop, {}),
|
|
771
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_drawer.DrawerPositioner, { className: "w-(--sidebar-width)", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
533
772
|
import_drawer.DrawerContent,
|
|
534
773
|
{
|
|
535
774
|
"data-sidebar": "sidebar",
|
|
536
775
|
"data-slot": "sidebar",
|
|
537
776
|
"data-mobile": "true",
|
|
538
|
-
className: (0,
|
|
539
|
-
style: { "--sidebar-width":
|
|
777
|
+
className: (0, import_helix25.cn)("w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground", className),
|
|
778
|
+
style: { "--sidebar-width": import_helix25.SIDEBAR_WIDTH_MOBILE },
|
|
540
779
|
children: [
|
|
541
|
-
/* @__PURE__ */ (0,
|
|
542
|
-
/* @__PURE__ */ (0,
|
|
543
|
-
/* @__PURE__ */ (0,
|
|
544
|
-
/* @__PURE__ */ (0,
|
|
780
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_drawer.DrawerTitle, { className: "sr-only", children: "Sidebar" }),
|
|
781
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_drawer.DrawerDescription, { className: "sr-only", children: "Displays the mobile sidebar." }),
|
|
782
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_drawer.DrawerCloseTrigger, { className: "hidden" }),
|
|
783
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Col, { className: "h-full w-full", children })
|
|
545
784
|
]
|
|
546
785
|
}
|
|
547
786
|
) })
|
|
@@ -549,7 +788,7 @@ function Root({
|
|
|
549
788
|
}
|
|
550
789
|
);
|
|
551
790
|
}
|
|
552
|
-
return /* @__PURE__ */ (0,
|
|
791
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
553
792
|
"div",
|
|
554
793
|
{
|
|
555
794
|
className: "group peer hidden text-sidebar-foreground md:block",
|
|
@@ -559,35 +798,35 @@ function Root({
|
|
|
559
798
|
"data-side": side,
|
|
560
799
|
"data-slot": "sidebar",
|
|
561
800
|
children: [
|
|
562
|
-
/* @__PURE__ */ (0,
|
|
801
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
563
802
|
"div",
|
|
564
803
|
{
|
|
565
804
|
"data-slot": "sidebar-gap",
|
|
566
|
-
className: (0,
|
|
567
|
-
|
|
805
|
+
className: (0, import_helix25.cn)(
|
|
806
|
+
import_helix25.sidebarStyles.gapClass,
|
|
568
807
|
side === "right" && "rotate-180",
|
|
569
808
|
variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)"
|
|
570
809
|
)
|
|
571
810
|
}
|
|
572
811
|
),
|
|
573
|
-
/* @__PURE__ */ (0,
|
|
812
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
574
813
|
"div",
|
|
575
814
|
{
|
|
576
815
|
"data-slot": "sidebar-container",
|
|
577
|
-
className: (0,
|
|
578
|
-
|
|
816
|
+
className: (0, import_helix25.cn)(
|
|
817
|
+
import_helix25.sidebarStyles.containerClass,
|
|
579
818
|
side === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
|
|
580
819
|
variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",
|
|
581
820
|
className
|
|
582
821
|
),
|
|
583
822
|
...props,
|
|
584
|
-
children: /* @__PURE__ */ (0,
|
|
823
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
585
824
|
"div",
|
|
586
825
|
{
|
|
587
826
|
"data-sidebar": "sidebar",
|
|
588
827
|
"data-slot": "sidebar-inner",
|
|
589
828
|
"data-variant": variant,
|
|
590
|
-
className: (0,
|
|
829
|
+
className: (0, import_helix25.cn)(import_helix25.sidebarStyles.innerClass),
|
|
591
830
|
children
|
|
592
831
|
}
|
|
593
832
|
)
|
|
@@ -599,132 +838,132 @@ function Root({
|
|
|
599
838
|
}
|
|
600
839
|
|
|
601
840
|
// src/sidebar/Header.tsx
|
|
602
|
-
var
|
|
603
|
-
var
|
|
841
|
+
var import_helix26 = require("@cloudvoyant/helix");
|
|
842
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
604
843
|
function Header({ className, ...props }) {
|
|
605
|
-
return /* @__PURE__ */ (0,
|
|
844
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
606
845
|
Col,
|
|
607
846
|
{
|
|
608
847
|
"data-slot": "sidebar-header",
|
|
609
848
|
"data-sidebar": "header",
|
|
610
|
-
className: (0,
|
|
849
|
+
className: (0, import_helix26.cn)(import_helix26.sidebarStyles.headerClass, className),
|
|
611
850
|
...props
|
|
612
851
|
}
|
|
613
852
|
);
|
|
614
853
|
}
|
|
615
854
|
|
|
616
855
|
// src/sidebar/Footer.tsx
|
|
617
|
-
var
|
|
618
|
-
var
|
|
856
|
+
var import_helix27 = require("@cloudvoyant/helix");
|
|
857
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
619
858
|
function Footer({ className, ...props }) {
|
|
620
|
-
return /* @__PURE__ */ (0,
|
|
859
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
621
860
|
Col,
|
|
622
861
|
{
|
|
623
862
|
"data-slot": "sidebar-footer",
|
|
624
863
|
"data-sidebar": "footer",
|
|
625
|
-
className: (0,
|
|
864
|
+
className: (0, import_helix27.cn)(import_helix27.sidebarStyles.footerClass, className),
|
|
626
865
|
...props
|
|
627
866
|
}
|
|
628
867
|
);
|
|
629
868
|
}
|
|
630
869
|
|
|
631
870
|
// src/sidebar/Separator.tsx
|
|
632
|
-
var
|
|
633
|
-
var
|
|
634
|
-
var
|
|
871
|
+
var import_factory17 = require("@ark-ui/react/factory");
|
|
872
|
+
var import_helix28 = require("@cloudvoyant/helix");
|
|
873
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
635
874
|
function Separator({ className, ...props }) {
|
|
636
|
-
return /* @__PURE__ */ (0,
|
|
637
|
-
|
|
875
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
876
|
+
import_factory17.ark.div,
|
|
638
877
|
{
|
|
639
878
|
"data-slot": "sidebar-separator",
|
|
640
879
|
"data-sidebar": "separator",
|
|
641
880
|
role: "separator",
|
|
642
|
-
className: (0,
|
|
881
|
+
className: (0, import_helix28.cn)(import_helix28.sidebarStyles.separatorClass, className),
|
|
643
882
|
...props
|
|
644
883
|
}
|
|
645
884
|
);
|
|
646
885
|
}
|
|
647
886
|
|
|
648
887
|
// src/sidebar/Content.tsx
|
|
649
|
-
var
|
|
650
|
-
var
|
|
888
|
+
var import_helix29 = require("@cloudvoyant/helix");
|
|
889
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
651
890
|
function Content({ className, ...props }) {
|
|
652
|
-
return /* @__PURE__ */ (0,
|
|
891
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
653
892
|
Col,
|
|
654
893
|
{
|
|
655
894
|
"data-slot": "sidebar-content",
|
|
656
895
|
"data-sidebar": "content",
|
|
657
|
-
className: (0,
|
|
896
|
+
className: (0, import_helix29.cn)(import_helix29.sidebarStyles.contentClass, className),
|
|
658
897
|
...props
|
|
659
898
|
}
|
|
660
899
|
);
|
|
661
900
|
}
|
|
662
901
|
|
|
663
902
|
// src/sidebar/Group.tsx
|
|
664
|
-
var
|
|
665
|
-
var
|
|
903
|
+
var import_helix30 = require("@cloudvoyant/helix");
|
|
904
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
666
905
|
function Group({ label, className, children, ...props }) {
|
|
667
|
-
return /* @__PURE__ */ (0,
|
|
668
|
-
label && /* @__PURE__ */ (0,
|
|
669
|
-
/* @__PURE__ */ (0,
|
|
906
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Col, { "data-slot": "sidebar-group", "data-sidebar": "group", className: (0, import_helix30.cn)(import_helix30.sidebarStyles.groupClass, className), ...props, children: [
|
|
907
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { "data-slot": "sidebar-group-label", "data-sidebar": "group-label", className: (0, import_helix30.cn)(import_helix30.sidebarStyles.groupLabelClass), children: label }),
|
|
908
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { "data-slot": "sidebar-group-content", "data-sidebar": "group-content", className: (0, import_helix30.cn)(import_helix30.sidebarStyles.groupContentClass), children })
|
|
670
909
|
] });
|
|
671
910
|
}
|
|
672
911
|
|
|
673
912
|
// src/sidebar/GroupAction.tsx
|
|
674
|
-
var
|
|
675
|
-
var
|
|
676
|
-
var
|
|
913
|
+
var import_factory18 = require("@ark-ui/react/factory");
|
|
914
|
+
var import_helix31 = require("@cloudvoyant/helix");
|
|
915
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
677
916
|
function GroupAction({ className, asChild = false, ...props }) {
|
|
678
|
-
return /* @__PURE__ */ (0,
|
|
679
|
-
|
|
917
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
918
|
+
import_factory18.ark.button,
|
|
680
919
|
{
|
|
681
920
|
"data-slot": "sidebar-group-action",
|
|
682
921
|
"data-sidebar": "group-action",
|
|
683
922
|
asChild,
|
|
684
923
|
type: "button",
|
|
685
|
-
className: (0,
|
|
924
|
+
className: (0, import_helix31.cn)(import_helix31.sidebarStyles.groupActionClass, className),
|
|
686
925
|
...props
|
|
687
926
|
}
|
|
688
927
|
);
|
|
689
928
|
}
|
|
690
929
|
|
|
691
930
|
// src/sidebar/Menu.tsx
|
|
692
|
-
var
|
|
693
|
-
var
|
|
694
|
-
var
|
|
931
|
+
var import_factory19 = require("@ark-ui/react/factory");
|
|
932
|
+
var import_helix32 = require("@cloudvoyant/helix");
|
|
933
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
695
934
|
function Menu({ className, ...props }) {
|
|
696
|
-
return /* @__PURE__ */ (0,
|
|
697
|
-
|
|
935
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
936
|
+
import_factory19.ark.ul,
|
|
698
937
|
{
|
|
699
938
|
"data-slot": "sidebar-menu",
|
|
700
939
|
"data-sidebar": "menu",
|
|
701
|
-
className: (0,
|
|
940
|
+
className: (0, import_helix32.cn)(import_helix32.sidebarStyles.menuClass, className),
|
|
702
941
|
...props
|
|
703
942
|
}
|
|
704
943
|
);
|
|
705
944
|
}
|
|
706
945
|
|
|
707
946
|
// src/sidebar/MenuItem.tsx
|
|
708
|
-
var
|
|
709
|
-
var
|
|
710
|
-
var
|
|
947
|
+
var import_factory20 = require("@ark-ui/react/factory");
|
|
948
|
+
var import_helix33 = require("@cloudvoyant/helix");
|
|
949
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
711
950
|
function MenuItem({ className, ...props }) {
|
|
712
|
-
return /* @__PURE__ */ (0,
|
|
713
|
-
|
|
951
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
952
|
+
import_factory20.ark.li,
|
|
714
953
|
{
|
|
715
954
|
"data-slot": "sidebar-menu-item",
|
|
716
955
|
"data-sidebar": "menu-item",
|
|
717
|
-
className: (0,
|
|
956
|
+
className: (0, import_helix33.cn)(import_helix33.sidebarStyles.menuItemClass, className),
|
|
718
957
|
...props
|
|
719
958
|
}
|
|
720
959
|
);
|
|
721
960
|
}
|
|
722
961
|
|
|
723
962
|
// src/sidebar/MenuButton.tsx
|
|
724
|
-
var
|
|
725
|
-
var
|
|
726
|
-
var
|
|
727
|
-
var
|
|
963
|
+
var import_factory21 = require("@ark-ui/react/factory");
|
|
964
|
+
var import_tooltip2 = require("@ark-ui/react/tooltip");
|
|
965
|
+
var import_helix34 = require("@cloudvoyant/helix");
|
|
966
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
728
967
|
function MenuButton({
|
|
729
968
|
asChild = false,
|
|
730
969
|
isActive = false,
|
|
@@ -736,8 +975,8 @@ function MenuButton({
|
|
|
736
975
|
...props
|
|
737
976
|
}) {
|
|
738
977
|
const { isMobile, state } = useSidebar();
|
|
739
|
-
const button = /* @__PURE__ */ (0,
|
|
740
|
-
|
|
978
|
+
const button = /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
979
|
+
import_factory21.ark.button,
|
|
741
980
|
{
|
|
742
981
|
"data-slot": "sidebar-menu-button",
|
|
743
982
|
"data-sidebar": "menu-button",
|
|
@@ -745,7 +984,7 @@ function MenuButton({
|
|
|
745
984
|
"data-active": isActive,
|
|
746
985
|
asChild,
|
|
747
986
|
type: "button",
|
|
748
|
-
className: (0,
|
|
987
|
+
className: (0, import_helix34.cn)((0, import_helix34.sidebarMenuButtonVariants)({ variant, size }), className),
|
|
749
988
|
...props,
|
|
750
989
|
children
|
|
751
990
|
}
|
|
@@ -754,42 +993,42 @@ function MenuButton({
|
|
|
754
993
|
return button;
|
|
755
994
|
}
|
|
756
995
|
const tooltipContent = typeof tooltip === "string" ? { children: tooltip } : tooltip;
|
|
757
|
-
return /* @__PURE__ */ (0,
|
|
758
|
-
/* @__PURE__ */ (0,
|
|
759
|
-
/* @__PURE__ */ (0,
|
|
996
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_tooltip2.TooltipRoot, { openDelay: 0, positioning: { placement: "right", gutter: 8 }, children: [
|
|
997
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_tooltip2.TooltipTrigger, { asChild: true, children: button }),
|
|
998
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_tooltip2.TooltipPositioner, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_tooltip2.TooltipContent, { className: (0, import_helix34.cn)(import_helix34.sidebarStyles.tooltipContentClass), ...tooltipContent }) })
|
|
760
999
|
] });
|
|
761
1000
|
}
|
|
762
1001
|
|
|
763
1002
|
// src/sidebar/MenuLink.tsx
|
|
764
|
-
var
|
|
765
|
-
var
|
|
1003
|
+
var import_helix35 = require("@cloudvoyant/helix");
|
|
1004
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
766
1005
|
function MenuLink({ icon, href, onClick, isActive, variant, size, tooltip, className, children }) {
|
|
767
|
-
const content = /* @__PURE__ */ (0,
|
|
1006
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
|
|
768
1007
|
icon,
|
|
769
|
-
children != null && /* @__PURE__ */ (0,
|
|
1008
|
+
children != null && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { children })
|
|
770
1009
|
] });
|
|
771
|
-
return /* @__PURE__ */ (0,
|
|
1010
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("li", { "data-slot": "sidebar-menu-item", "data-sidebar": "menu-item", className: (0, import_helix35.cn)(import_helix35.sidebarStyles.menuItemClass), children: href != null ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(MenuButton, { asChild: true, isActive, variant, size, tooltip, className, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("a", { href, onClick, children: content }) }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(MenuButton, { isActive, variant, size, tooltip, className, onClick, children: content }) });
|
|
772
1011
|
}
|
|
773
1012
|
|
|
774
1013
|
// src/sidebar/MenuAction.tsx
|
|
775
|
-
var
|
|
776
|
-
var
|
|
777
|
-
var
|
|
1014
|
+
var import_factory22 = require("@ark-ui/react/factory");
|
|
1015
|
+
var import_helix36 = require("@cloudvoyant/helix");
|
|
1016
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
778
1017
|
function MenuAction({
|
|
779
1018
|
className,
|
|
780
1019
|
asChild = false,
|
|
781
1020
|
showOnHover = false,
|
|
782
1021
|
...props
|
|
783
1022
|
}) {
|
|
784
|
-
return /* @__PURE__ */ (0,
|
|
785
|
-
|
|
1023
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1024
|
+
import_factory22.ark.button,
|
|
786
1025
|
{
|
|
787
1026
|
"data-slot": "sidebar-menu-action",
|
|
788
1027
|
"data-sidebar": "menu-action",
|
|
789
1028
|
asChild,
|
|
790
1029
|
type: "button",
|
|
791
|
-
className: (0,
|
|
792
|
-
|
|
1030
|
+
className: (0, import_helix36.cn)(
|
|
1031
|
+
import_helix36.sidebarStyles.menuActionClass,
|
|
793
1032
|
showOnHover && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground data-[state=open]:opacity-100 md:opacity-0",
|
|
794
1033
|
className
|
|
795
1034
|
),
|
|
@@ -799,16 +1038,16 @@ function MenuAction({
|
|
|
799
1038
|
}
|
|
800
1039
|
|
|
801
1040
|
// src/sidebar/MenuBadge.tsx
|
|
802
|
-
var
|
|
803
|
-
var
|
|
804
|
-
var
|
|
1041
|
+
var import_factory23 = require("@ark-ui/react/factory");
|
|
1042
|
+
var import_helix37 = require("@cloudvoyant/helix");
|
|
1043
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
805
1044
|
function MenuBadge({ className, ...props }) {
|
|
806
|
-
return /* @__PURE__ */ (0,
|
|
807
|
-
|
|
1045
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1046
|
+
import_factory23.ark.div,
|
|
808
1047
|
{
|
|
809
1048
|
"data-slot": "sidebar-menu-badge",
|
|
810
1049
|
"data-sidebar": "menu-badge",
|
|
811
|
-
className: (0,
|
|
1050
|
+
className: (0, import_helix37.cn)(import_helix37.sidebarStyles.menuBadgeClass, className),
|
|
812
1051
|
...props
|
|
813
1052
|
}
|
|
814
1053
|
);
|
|
@@ -816,28 +1055,28 @@ function MenuBadge({ className, ...props }) {
|
|
|
816
1055
|
|
|
817
1056
|
// src/sidebar/MenuSkeleton.tsx
|
|
818
1057
|
var React3 = __toESM(require("react"), 1);
|
|
819
|
-
var
|
|
820
|
-
var
|
|
821
|
-
var
|
|
1058
|
+
var import_factory24 = require("@ark-ui/react/factory");
|
|
1059
|
+
var import_helix38 = require("@cloudvoyant/helix");
|
|
1060
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
822
1061
|
function MenuSkeleton({ className, showIcon = false, ...props }) {
|
|
823
1062
|
const width = React3.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
824
|
-
return /* @__PURE__ */ (0,
|
|
825
|
-
|
|
1063
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
1064
|
+
import_factory24.ark.div,
|
|
826
1065
|
{
|
|
827
1066
|
"data-slot": "sidebar-menu-skeleton",
|
|
828
1067
|
"data-sidebar": "menu-skeleton",
|
|
829
|
-
className: (0,
|
|
1068
|
+
className: (0, import_helix38.cn)(import_helix38.sidebarStyles.menuSkeletonClass, className),
|
|
830
1069
|
...props,
|
|
831
1070
|
children: [
|
|
832
|
-
showIcon && /* @__PURE__ */ (0,
|
|
833
|
-
|
|
1071
|
+
showIcon && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
1072
|
+
import_factory24.ark.div,
|
|
834
1073
|
{
|
|
835
1074
|
className: "size-4 shrink-0 animate-pulse rounded-md bg-sidebar-accent",
|
|
836
1075
|
"data-sidebar": "menu-skeleton-icon"
|
|
837
1076
|
}
|
|
838
1077
|
),
|
|
839
|
-
/* @__PURE__ */ (0,
|
|
840
|
-
|
|
1078
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
1079
|
+
import_factory24.ark.div,
|
|
841
1080
|
{
|
|
842
1081
|
className: "h-4 max-w-(--skeleton-width) flex-1 animate-pulse rounded-md bg-sidebar-accent",
|
|
843
1082
|
"data-sidebar": "menu-skeleton-text",
|
|
@@ -850,41 +1089,41 @@ function MenuSkeleton({ className, showIcon = false, ...props }) {
|
|
|
850
1089
|
}
|
|
851
1090
|
|
|
852
1091
|
// src/sidebar/MenuSub.tsx
|
|
853
|
-
var
|
|
854
|
-
var
|
|
855
|
-
var
|
|
1092
|
+
var import_factory25 = require("@ark-ui/react/factory");
|
|
1093
|
+
var import_helix39 = require("@cloudvoyant/helix");
|
|
1094
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
856
1095
|
function MenuSub({ className, ...props }) {
|
|
857
|
-
return /* @__PURE__ */ (0,
|
|
858
|
-
|
|
1096
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
1097
|
+
import_factory25.ark.ul,
|
|
859
1098
|
{
|
|
860
1099
|
"data-slot": "sidebar-menu-sub",
|
|
861
1100
|
"data-sidebar": "menu-sub",
|
|
862
|
-
className: (0,
|
|
1101
|
+
className: (0, import_helix39.cn)(import_helix39.sidebarStyles.menuSubClass, className),
|
|
863
1102
|
...props
|
|
864
1103
|
}
|
|
865
1104
|
);
|
|
866
1105
|
}
|
|
867
1106
|
|
|
868
1107
|
// src/sidebar/MenuSubItem.tsx
|
|
869
|
-
var
|
|
870
|
-
var
|
|
871
|
-
var
|
|
1108
|
+
var import_factory26 = require("@ark-ui/react/factory");
|
|
1109
|
+
var import_helix40 = require("@cloudvoyant/helix");
|
|
1110
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
872
1111
|
function MenuSubItem({ className, ...props }) {
|
|
873
|
-
return /* @__PURE__ */ (0,
|
|
874
|
-
|
|
1112
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
1113
|
+
import_factory26.ark.li,
|
|
875
1114
|
{
|
|
876
1115
|
"data-slot": "sidebar-menu-sub-item",
|
|
877
1116
|
"data-sidebar": "menu-sub-item",
|
|
878
|
-
className: (0,
|
|
1117
|
+
className: (0, import_helix40.cn)(import_helix40.sidebarStyles.menuSubItemClass, className),
|
|
879
1118
|
...props
|
|
880
1119
|
}
|
|
881
1120
|
);
|
|
882
1121
|
}
|
|
883
1122
|
|
|
884
1123
|
// src/sidebar/MenuSubButton.tsx
|
|
885
|
-
var
|
|
886
|
-
var
|
|
887
|
-
var
|
|
1124
|
+
var import_factory27 = require("@ark-ui/react/factory");
|
|
1125
|
+
var import_helix41 = require("@cloudvoyant/helix");
|
|
1126
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
888
1127
|
function MenuSubButton({
|
|
889
1128
|
asChild = false,
|
|
890
1129
|
size = "md",
|
|
@@ -892,34 +1131,34 @@ function MenuSubButton({
|
|
|
892
1131
|
className,
|
|
893
1132
|
...props
|
|
894
1133
|
}) {
|
|
895
|
-
return /* @__PURE__ */ (0,
|
|
896
|
-
|
|
1134
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
1135
|
+
import_factory27.ark.a,
|
|
897
1136
|
{
|
|
898
1137
|
"data-slot": "sidebar-menu-sub-button",
|
|
899
1138
|
"data-sidebar": "menu-sub-button",
|
|
900
1139
|
"data-size": size,
|
|
901
1140
|
"data-active": isActive,
|
|
902
1141
|
asChild,
|
|
903
|
-
className: (0,
|
|
1142
|
+
className: (0, import_helix41.cn)(import_helix41.sidebarStyles.menuSubButtonClass, className),
|
|
904
1143
|
...props
|
|
905
1144
|
}
|
|
906
1145
|
);
|
|
907
1146
|
}
|
|
908
1147
|
|
|
909
1148
|
// src/sidebar/Trigger.tsx
|
|
910
|
-
var
|
|
911
|
-
var
|
|
912
|
-
var
|
|
1149
|
+
var import_factory28 = require("@ark-ui/react/factory");
|
|
1150
|
+
var import_helix42 = require("@cloudvoyant/helix");
|
|
1151
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
913
1152
|
function Trigger({ className, onClick, children, ...props }) {
|
|
914
1153
|
const { toggleSidebar } = useSidebar();
|
|
915
|
-
return /* @__PURE__ */ (0,
|
|
916
|
-
|
|
1154
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
1155
|
+
import_factory28.ark.button,
|
|
917
1156
|
{
|
|
918
1157
|
"data-sidebar": "trigger",
|
|
919
1158
|
"data-slot": "sidebar-trigger",
|
|
920
1159
|
type: "button",
|
|
921
1160
|
"aria-label": "Toggle Sidebar",
|
|
922
|
-
className: (0,
|
|
1161
|
+
className: (0, import_helix42.cn)(import_helix42.sidebarStyles.triggerClass, className),
|
|
923
1162
|
onClick: (event) => {
|
|
924
1163
|
onClick?.(event);
|
|
925
1164
|
toggleSidebar();
|
|
@@ -931,13 +1170,13 @@ function Trigger({ className, onClick, children, ...props }) {
|
|
|
931
1170
|
}
|
|
932
1171
|
|
|
933
1172
|
// src/sidebar/Rail.tsx
|
|
934
|
-
var
|
|
935
|
-
var
|
|
936
|
-
var
|
|
1173
|
+
var import_factory29 = require("@ark-ui/react/factory");
|
|
1174
|
+
var import_helix43 = require("@cloudvoyant/helix");
|
|
1175
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
937
1176
|
function Rail({ className, ...props }) {
|
|
938
1177
|
const { toggleSidebar } = useSidebar();
|
|
939
|
-
return /* @__PURE__ */ (0,
|
|
940
|
-
|
|
1178
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
1179
|
+
import_factory29.ark.button,
|
|
941
1180
|
{
|
|
942
1181
|
"data-sidebar": "rail",
|
|
943
1182
|
"data-slot": "sidebar-rail",
|
|
@@ -946,31 +1185,31 @@ function Rail({ className, ...props }) {
|
|
|
946
1185
|
tabIndex: -1,
|
|
947
1186
|
onClick: toggleSidebar,
|
|
948
1187
|
title: "Toggle Sidebar",
|
|
949
|
-
className: (0,
|
|
1188
|
+
className: (0, import_helix43.cn)(import_helix43.sidebarStyles.railClass, className),
|
|
950
1189
|
...props
|
|
951
1190
|
}
|
|
952
1191
|
);
|
|
953
1192
|
}
|
|
954
1193
|
|
|
955
1194
|
// src/sidebar/Inset.tsx
|
|
956
|
-
var
|
|
957
|
-
var
|
|
958
|
-
var
|
|
1195
|
+
var import_factory30 = require("@ark-ui/react/factory");
|
|
1196
|
+
var import_helix44 = require("@cloudvoyant/helix");
|
|
1197
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
959
1198
|
function Inset({ className, ...props }) {
|
|
960
|
-
return /* @__PURE__ */ (0,
|
|
1199
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_factory30.ark.main, { "data-slot": "sidebar-inset", className: (0, import_helix44.cn)(import_helix44.sidebarStyles.insetClass, className), ...props });
|
|
961
1200
|
}
|
|
962
1201
|
|
|
963
1202
|
// src/sidebar/Input.tsx
|
|
964
|
-
var
|
|
965
|
-
var
|
|
966
|
-
var
|
|
1203
|
+
var import_factory31 = require("@ark-ui/react/factory");
|
|
1204
|
+
var import_helix45 = require("@cloudvoyant/helix");
|
|
1205
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
967
1206
|
function Input({ className, ...props }) {
|
|
968
|
-
return /* @__PURE__ */ (0,
|
|
969
|
-
|
|
1207
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
1208
|
+
import_factory31.ark.input,
|
|
970
1209
|
{
|
|
971
1210
|
"data-slot": "sidebar-input",
|
|
972
1211
|
"data-sidebar": "input",
|
|
973
|
-
className: (0,
|
|
1212
|
+
className: (0, import_helix45.cn)(import_helix45.sidebarStyles.inputClass, className),
|
|
974
1213
|
...props
|
|
975
1214
|
}
|
|
976
1215
|
);
|
|
@@ -978,44 +1217,44 @@ function Input({ className, ...props }) {
|
|
|
978
1217
|
|
|
979
1218
|
// src/tabs.tsx
|
|
980
1219
|
var import_tabs = require("@ark-ui/react/tabs");
|
|
981
|
-
var
|
|
982
|
-
var
|
|
1220
|
+
var import_helix46 = require("@cloudvoyant/helix");
|
|
1221
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
983
1222
|
function Tabs({ className, lazyMount = true, unmountOnExit = true, ...props }) {
|
|
984
|
-
return /* @__PURE__ */ (0,
|
|
1223
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
985
1224
|
import_tabs.TabsRoot,
|
|
986
1225
|
{
|
|
987
1226
|
lazyMount,
|
|
988
1227
|
unmountOnExit,
|
|
989
|
-
className: (0,
|
|
1228
|
+
className: (0, import_helix46.cn)(import_helix46.tabsRootBase, className),
|
|
990
1229
|
...props
|
|
991
1230
|
}
|
|
992
1231
|
);
|
|
993
1232
|
}
|
|
994
1233
|
function TabsList({ variant = "default", className, children, ...props }) {
|
|
995
|
-
return /* @__PURE__ */ (0,
|
|
1234
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_tabs.TabList, { className: (0, import_helix46.cn)(import_helix46.tabsListBase, (0, import_helix46.tabsListVariants)({ variant }), className), ...props, children: [
|
|
996
1235
|
children,
|
|
997
|
-
/* @__PURE__ */ (0,
|
|
1236
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_tabs.TabIndicator, { className: (0, import_helix46.cn)(import_helix46.tabsIndicatorBase, (0, import_helix46.tabsIndicatorVariants)({ variant })) })
|
|
998
1237
|
] });
|
|
999
1238
|
}
|
|
1000
1239
|
function TabsTrigger({ className, ...props }) {
|
|
1001
|
-
return /* @__PURE__ */ (0,
|
|
1240
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_tabs.TabTrigger, { className: (0, import_helix46.cn)(import_helix46.tabsTriggerBase, className), ...props });
|
|
1002
1241
|
}
|
|
1003
1242
|
function TabsContent({ className, ...props }) {
|
|
1004
|
-
return /* @__PURE__ */ (0,
|
|
1243
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_tabs.TabContent, { className: (0, import_helix46.cn)(import_helix46.tabsContentBase, className), ...props });
|
|
1005
1244
|
}
|
|
1006
1245
|
var useTabs = import_tabs.useTabsContext;
|
|
1007
1246
|
|
|
1008
1247
|
// src/pagination.tsx
|
|
1009
1248
|
var import_pagination = require("@ark-ui/react/pagination");
|
|
1010
|
-
var
|
|
1011
|
-
var
|
|
1012
|
-
var
|
|
1249
|
+
var import_factory32 = require("@ark-ui/react/factory");
|
|
1250
|
+
var import_helix47 = require("@cloudvoyant/helix");
|
|
1251
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
1013
1252
|
function Pagination({ className, ...props }) {
|
|
1014
|
-
return /* @__PURE__ */ (0,
|
|
1253
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_pagination.PaginationRoot, { className: (0, import_helix47.cn)(import_helix47.paginationRootBase, className), ...props });
|
|
1015
1254
|
}
|
|
1016
1255
|
function PaginationPrevious(props) {
|
|
1017
|
-
return /* @__PURE__ */ (0,
|
|
1018
|
-
/* @__PURE__ */ (0,
|
|
1256
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_pagination.PaginationPrevTrigger, { asChild: true, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_factory32.ark.button, { className: (0, import_helix47.cn)(import_helix47.paginationTriggerBase), children: [
|
|
1257
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
1019
1258
|
"svg",
|
|
1020
1259
|
{
|
|
1021
1260
|
viewBox: "0 0 24 24",
|
|
@@ -1025,16 +1264,16 @@ function PaginationPrevious(props) {
|
|
|
1025
1264
|
strokeLinecap: "round",
|
|
1026
1265
|
strokeLinejoin: "round",
|
|
1027
1266
|
"aria-hidden": "true",
|
|
1028
|
-
children: /* @__PURE__ */ (0,
|
|
1267
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("path", { d: "m15 18-6-6 6-6" })
|
|
1029
1268
|
}
|
|
1030
1269
|
),
|
|
1031
1270
|
"Previous"
|
|
1032
1271
|
] }) });
|
|
1033
1272
|
}
|
|
1034
1273
|
function PaginationNext(props) {
|
|
1035
|
-
return /* @__PURE__ */ (0,
|
|
1274
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_pagination.PaginationNextTrigger, { asChild: true, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_factory32.ark.button, { className: (0, import_helix47.cn)(import_helix47.paginationTriggerBase), children: [
|
|
1036
1275
|
"Next",
|
|
1037
|
-
/* @__PURE__ */ (0,
|
|
1276
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
1038
1277
|
"svg",
|
|
1039
1278
|
{
|
|
1040
1279
|
viewBox: "0 0 24 24",
|
|
@@ -1044,21 +1283,21 @@ function PaginationNext(props) {
|
|
|
1044
1283
|
strokeLinecap: "round",
|
|
1045
1284
|
strokeLinejoin: "round",
|
|
1046
1285
|
"aria-hidden": "true",
|
|
1047
|
-
children: /* @__PURE__ */ (0,
|
|
1286
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("path", { d: "m9 18 6-6-6-6" })
|
|
1048
1287
|
}
|
|
1049
1288
|
)
|
|
1050
1289
|
] }) });
|
|
1051
1290
|
}
|
|
1052
1291
|
function PaginationItem({ className, children, ...rest }) {
|
|
1053
|
-
return /* @__PURE__ */ (0,
|
|
1292
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_pagination.PaginationItem, { asChild: true, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_factory32.ark.button, { className: (0, import_helix47.cn)(import_helix47.paginationItemBase, className), children }) });
|
|
1054
1293
|
}
|
|
1055
1294
|
function PaginationItems() {
|
|
1056
|
-
return /* @__PURE__ */ (0,
|
|
1057
|
-
(page, index) => page.type === "page" ? /* @__PURE__ */ (0,
|
|
1295
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_pagination.PaginationContext, { children: ({ pages }) => pages.map(
|
|
1296
|
+
(page, index) => page.type === "page" ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(PaginationItem, { type: "page", value: page.value, children: page.value }, page.value) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(PaginationEllipsis, { index }, `ellipsis-${index}`)
|
|
1058
1297
|
) });
|
|
1059
1298
|
}
|
|
1060
1299
|
function PaginationEllipsis({ className, ...rest }) {
|
|
1061
|
-
return /* @__PURE__ */ (0,
|
|
1300
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_pagination.PaginationEllipsis, { className: (0, import_helix47.cn)(import_helix47.paginationEllipsisBase, className), ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
1062
1301
|
"svg",
|
|
1063
1302
|
{
|
|
1064
1303
|
viewBox: "0 0 24 24",
|
|
@@ -1069,9 +1308,9 @@ function PaginationEllipsis({ className, ...rest }) {
|
|
|
1069
1308
|
strokeLinejoin: "round",
|
|
1070
1309
|
"aria-hidden": "true",
|
|
1071
1310
|
children: [
|
|
1072
|
-
/* @__PURE__ */ (0,
|
|
1073
|
-
/* @__PURE__ */ (0,
|
|
1074
|
-
/* @__PURE__ */ (0,
|
|
1311
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("circle", { cx: "12", cy: "12", r: "1" }),
|
|
1312
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("circle", { cx: "19", cy: "12", r: "1" }),
|
|
1313
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("circle", { cx: "5", cy: "12", r: "1" })
|
|
1075
1314
|
]
|
|
1076
1315
|
}
|
|
1077
1316
|
) });
|
|
@@ -1079,14 +1318,14 @@ function PaginationEllipsis({ className, ...rest }) {
|
|
|
1079
1318
|
|
|
1080
1319
|
// src/navbar.tsx
|
|
1081
1320
|
var React4 = __toESM(require("react"), 1);
|
|
1082
|
-
var
|
|
1083
|
-
var
|
|
1321
|
+
var import_factory33 = require("@ark-ui/react/factory");
|
|
1322
|
+
var import_portal6 = require("@ark-ui/react/portal");
|
|
1084
1323
|
var import_collapsible = require("@ark-ui/react/collapsible");
|
|
1085
|
-
var
|
|
1324
|
+
var import_dialog2 = require("@ark-ui/react/dialog");
|
|
1086
1325
|
var import_navigation_menu = require("@ark-ui/react/navigation-menu");
|
|
1087
|
-
var
|
|
1088
|
-
var
|
|
1089
|
-
var
|
|
1326
|
+
var import_helix48 = require("@cloudvoyant/helix");
|
|
1327
|
+
var import_helix49 = require("@cloudvoyant/helix");
|
|
1328
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
1090
1329
|
var SCROLL_THRESHOLD = 24;
|
|
1091
1330
|
function resolveScrollContainer(el) {
|
|
1092
1331
|
for (let n = el; n; n = n.parentElement) {
|
|
@@ -1149,7 +1388,7 @@ function NavbarProvider({
|
|
|
1149
1388
|
}),
|
|
1150
1389
|
[id, open, scrolled, hovered, slots, setSlot]
|
|
1151
1390
|
);
|
|
1152
|
-
return /* @__PURE__ */ (0,
|
|
1391
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(NavbarContext.Provider, { value: contextValue, children });
|
|
1153
1392
|
}
|
|
1154
1393
|
function Navbar({
|
|
1155
1394
|
variant = "sticky",
|
|
@@ -1188,7 +1427,7 @@ function Navbar({
|
|
|
1188
1427
|
el.style.overflow = prev;
|
|
1189
1428
|
};
|
|
1190
1429
|
}, [base.open]);
|
|
1191
|
-
return /* @__PURE__ */ (0,
|
|
1430
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(NavbarContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
1192
1431
|
"header",
|
|
1193
1432
|
{
|
|
1194
1433
|
ref: headerRef,
|
|
@@ -1196,11 +1435,11 @@ function Navbar({
|
|
|
1196
1435
|
"data-scrolled": base.scrolled || void 0,
|
|
1197
1436
|
"data-hidden": hidden || void 0,
|
|
1198
1437
|
"data-shrunk": shrunk || void 0,
|
|
1199
|
-
className: (0,
|
|
1200
|
-
(0,
|
|
1201
|
-
|
|
1202
|
-
(0,
|
|
1203
|
-
shrunk &&
|
|
1438
|
+
className: (0, import_helix48.cn)(
|
|
1439
|
+
(0, import_helix48.navbarVariants)({ variant, floating }),
|
|
1440
|
+
import_helix48.navbarContainerBase,
|
|
1441
|
+
(0, import_helix48.navbarDensityVariants)({ density }),
|
|
1442
|
+
shrunk && import_helix48.navbarShrunkBase,
|
|
1204
1443
|
className
|
|
1205
1444
|
),
|
|
1206
1445
|
onMouseEnter: () => setHovered(true),
|
|
@@ -1212,11 +1451,11 @@ function Navbar({
|
|
|
1212
1451
|
}
|
|
1213
1452
|
function NavbarActivationArea({ className, children, ...props }) {
|
|
1214
1453
|
const { setHovered } = useNavbar();
|
|
1215
|
-
return /* @__PURE__ */ (0,
|
|
1216
|
-
|
|
1454
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
1455
|
+
import_factory33.ark.div,
|
|
1217
1456
|
{
|
|
1218
1457
|
"data-slot": "navbar-activation-area",
|
|
1219
|
-
className: (0,
|
|
1458
|
+
className: (0, import_helix48.cn)(import_helix48.navbarActivationAreaBase, className),
|
|
1220
1459
|
onMouseEnter: () => setHovered(true),
|
|
1221
1460
|
onMouseLeave: () => setHovered(false),
|
|
1222
1461
|
...props,
|
|
@@ -1226,7 +1465,7 @@ function NavbarActivationArea({ className, children, ...props }) {
|
|
|
1226
1465
|
}
|
|
1227
1466
|
function NavbarBrand({ className, children, ...props }) {
|
|
1228
1467
|
useNavbarSlot("brand", children);
|
|
1229
|
-
return /* @__PURE__ */ (0,
|
|
1468
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_factory33.ark.div, { "data-slot": "navbar-brand", className: (0, import_helix48.cn)(import_helix48.navbarBrandBase, className), ...props, children });
|
|
1230
1469
|
}
|
|
1231
1470
|
function NavbarMenu({
|
|
1232
1471
|
placement = "center",
|
|
@@ -1236,21 +1475,21 @@ function NavbarMenu({
|
|
|
1236
1475
|
}) {
|
|
1237
1476
|
const { scrolled, density, variant } = useNavbar();
|
|
1238
1477
|
const menuDensity = density === "compact" || variant === "shrink" && scrolled ? "compact" : "relaxed";
|
|
1239
|
-
return /* @__PURE__ */ (0,
|
|
1240
|
-
|
|
1478
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(NavbarMenuStyleContext.Provider, { value: { density: menuDensity, variant: "default", inContent: false }, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
1479
|
+
import_factory33.ark.div,
|
|
1241
1480
|
{
|
|
1242
1481
|
"data-slot": "navbar-menu",
|
|
1243
1482
|
"data-placement": placement,
|
|
1244
|
-
className: (0,
|
|
1245
|
-
children: /* @__PURE__ */ (0,
|
|
1483
|
+
className: (0, import_helix48.cn)(import_helix48.navbarMenuBase, (0, import_helix48.navbarMenuPlacementVariants)({ placement }), className),
|
|
1484
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_navigation_menu.NavigationMenuRoot, { "data-density": menuDensity, className: (0, import_helix48.cn)(import_helix48.navbarMenuRootBase), ...props, children: [
|
|
1246
1485
|
children,
|
|
1247
|
-
/* @__PURE__ */ (0,
|
|
1486
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_navigation_menu.NavigationMenuViewportPositioner, { className: (0, import_helix48.cn)(import_helix48.navbarMenuViewportPositionerBase), children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_navigation_menu.NavigationMenuViewport, { className: (0, import_helix48.cn)(import_helix48.navbarMenuViewportBase) }) })
|
|
1248
1487
|
] })
|
|
1249
1488
|
}
|
|
1250
1489
|
) });
|
|
1251
1490
|
}
|
|
1252
1491
|
function NavbarMenuList({ className, children, ...props }) {
|
|
1253
|
-
return /* @__PURE__ */ (0,
|
|
1492
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_navigation_menu.NavigationMenuList, { className: (0, import_helix48.cn)(import_helix48.navbarMenuListBase, className), ...props, children });
|
|
1254
1493
|
}
|
|
1255
1494
|
function NavbarMenuItem({
|
|
1256
1495
|
variant = "default",
|
|
@@ -1258,11 +1497,11 @@ function NavbarMenuItem({
|
|
|
1258
1497
|
...props
|
|
1259
1498
|
}) {
|
|
1260
1499
|
const { density } = React4.useContext(NavbarMenuStyleContext);
|
|
1261
|
-
return /* @__PURE__ */ (0,
|
|
1500
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(NavbarMenuStyleContext.Provider, { value: { density, variant, inContent: false }, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_navigation_menu.NavigationMenuItem, { "data-variant": variant, className: (0, import_helix48.cn)(import_helix48.navbarMenuItemBase, className), ...props }) });
|
|
1262
1501
|
}
|
|
1263
1502
|
function NavbarMenuTrigger({ asChild, className, children, ...props }) {
|
|
1264
1503
|
const { density, variant } = React4.useContext(NavbarMenuStyleContext);
|
|
1265
|
-
const chevron = /* @__PURE__ */ (0,
|
|
1504
|
+
const chevron = /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
1266
1505
|
"svg",
|
|
1267
1506
|
{
|
|
1268
1507
|
className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
@@ -1273,36 +1512,36 @@ function NavbarMenuTrigger({ asChild, className, children, ...props }) {
|
|
|
1273
1512
|
strokeWidth: "2",
|
|
1274
1513
|
strokeLinecap: "round",
|
|
1275
1514
|
strokeLinejoin: "round",
|
|
1276
|
-
children: /* @__PURE__ */ (0,
|
|
1515
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("path", { d: "m6 9 6 6 6-6" })
|
|
1277
1516
|
}
|
|
1278
1517
|
);
|
|
1279
|
-
return /* @__PURE__ */ (0,
|
|
1518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_navigation_menu.NavigationMenuTrigger, { asChild, className: (0, import_helix48.cn)((0, import_helix48.navbarMenuTriggerStyle)({ density, variant }), className), ...props, children: asChild ? children : /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
|
|
1280
1519
|
children,
|
|
1281
1520
|
chevron
|
|
1282
1521
|
] }) });
|
|
1283
1522
|
}
|
|
1284
1523
|
function NavbarMenuContent({ className, children, ...props }) {
|
|
1285
|
-
return /* @__PURE__ */ (0,
|
|
1524
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(NavbarMenuStyleContext.Provider, { value: { density: "relaxed", variant: "default", inContent: true }, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_navigation_menu.NavigationMenuContent, { className: (0, import_helix48.cn)(import_helix48.navbarMenuContentBase, className), ...props, children }) });
|
|
1286
1525
|
}
|
|
1287
1526
|
function NavbarMenuLink({ className, children, ...props }) {
|
|
1288
1527
|
const { density, variant, inContent } = React4.useContext(NavbarMenuStyleContext);
|
|
1289
|
-
const classes = inContent ? (0,
|
|
1290
|
-
return /* @__PURE__ */ (0,
|
|
1528
|
+
const classes = inContent ? (0, import_helix48.cn)(import_helix48.navbarMenuLinkBase, className) : (0, import_helix48.cn)((0, import_helix48.navbarMenuTriggerStyle)({ density, variant }), className);
|
|
1529
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_navigation_menu.NavigationMenuLink, { className: classes, ...props, children });
|
|
1291
1530
|
}
|
|
1292
1531
|
function NavbarMobileMenu({ className, children, ...props }) {
|
|
1293
|
-
return /* @__PURE__ */ (0,
|
|
1532
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_collapsible.CollapsibleRoot, { "data-slot": "navbar-mobile-menu", className: (0, import_helix48.cn)("group", className), ...props, children });
|
|
1294
1533
|
}
|
|
1295
1534
|
function NavbarMobileMenuTrigger({ className, children, ...props }) {
|
|
1296
|
-
return /* @__PURE__ */ (0,
|
|
1535
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_collapsible.CollapsibleTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
1297
1536
|
"button",
|
|
1298
1537
|
{
|
|
1299
1538
|
type: "button",
|
|
1300
1539
|
"data-slot": "navbar-mobile-menu-trigger",
|
|
1301
|
-
className: (0,
|
|
1540
|
+
className: (0, import_helix48.cn)(import_helix48.navbarMobileMenuTriggerBase, className),
|
|
1302
1541
|
...props,
|
|
1303
1542
|
children: [
|
|
1304
1543
|
children,
|
|
1305
|
-
/* @__PURE__ */ (0,
|
|
1544
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
1306
1545
|
"svg",
|
|
1307
1546
|
{
|
|
1308
1547
|
className: "size-4 transition-transform duration-200 group-data-[state=open]:rotate-180",
|
|
@@ -1313,7 +1552,7 @@ function NavbarMobileMenuTrigger({ className, children, ...props }) {
|
|
|
1313
1552
|
strokeWidth: "2",
|
|
1314
1553
|
strokeLinecap: "round",
|
|
1315
1554
|
strokeLinejoin: "round",
|
|
1316
|
-
children: /* @__PURE__ */ (0,
|
|
1555
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("path", { d: "m6 9 6 6 6-6" })
|
|
1317
1556
|
}
|
|
1318
1557
|
)
|
|
1319
1558
|
]
|
|
@@ -1321,17 +1560,17 @@ function NavbarMobileMenuTrigger({ className, children, ...props }) {
|
|
|
1321
1560
|
) });
|
|
1322
1561
|
}
|
|
1323
1562
|
function NavbarMobileMenuContent({ className, children, ...props }) {
|
|
1324
|
-
return /* @__PURE__ */ (0,
|
|
1563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_collapsible.CollapsibleContent, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { "data-slot": "navbar-mobile-menu-content", className: (0, import_helix48.cn)(import_helix48.navbarMobileMenuContentBase, className), ...props, children }) });
|
|
1325
1564
|
}
|
|
1326
1565
|
function NavbarMenuViewport({ className, ...props }) {
|
|
1327
|
-
return /* @__PURE__ */ (0,
|
|
1566
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_navigation_menu.NavigationMenuViewport, { className: (0, import_helix48.cn)(import_helix48.navbarMenuViewportBase, className), ...props });
|
|
1328
1567
|
}
|
|
1329
1568
|
function NavbarMenuIndicator({ className, ...props }) {
|
|
1330
|
-
return /* @__PURE__ */ (0,
|
|
1569
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_navigation_menu.NavigationMenuIndicator, { className: (0, import_helix48.cn)(import_helix48.navbarMenuIndicatorBase, className), ...props });
|
|
1331
1570
|
}
|
|
1332
1571
|
function NavbarActions({ className, children, ...props }) {
|
|
1333
1572
|
useNavbarSlot("actions", children);
|
|
1334
|
-
return /* @__PURE__ */ (0,
|
|
1573
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_factory33.ark.div, { "data-slot": "navbar-actions", className: (0, import_helix48.cn)(import_helix48.navbarActionsBase, className), ...props, children });
|
|
1335
1574
|
}
|
|
1336
1575
|
function NavbarTrigger({
|
|
1337
1576
|
className,
|
|
@@ -1340,7 +1579,7 @@ function NavbarTrigger({
|
|
|
1340
1579
|
...props
|
|
1341
1580
|
}) {
|
|
1342
1581
|
const { id, open, setOpen, floating } = useNavbar();
|
|
1343
|
-
return /* @__PURE__ */ (0,
|
|
1582
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
1344
1583
|
"button",
|
|
1345
1584
|
{
|
|
1346
1585
|
type: "button",
|
|
@@ -1348,10 +1587,10 @@ function NavbarTrigger({
|
|
|
1348
1587
|
"aria-expanded": open,
|
|
1349
1588
|
"aria-controls": id,
|
|
1350
1589
|
"aria-label": ariaLabel ?? "Toggle navigation menu",
|
|
1351
|
-
className: (0,
|
|
1590
|
+
className: (0, import_helix48.cn)((0, import_helix48.navbarTriggerVariants)({ floating }), "md:hidden", className),
|
|
1352
1591
|
onClick: () => setOpen(!open),
|
|
1353
1592
|
...props,
|
|
1354
|
-
children: children ?? /* @__PURE__ */ (0,
|
|
1593
|
+
children: children ?? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
1355
1594
|
"svg",
|
|
1356
1595
|
{
|
|
1357
1596
|
className: "size-4",
|
|
@@ -1363,9 +1602,9 @@ function NavbarTrigger({
|
|
|
1363
1602
|
strokeLinejoin: "round",
|
|
1364
1603
|
"aria-hidden": "true",
|
|
1365
1604
|
children: [
|
|
1366
|
-
/* @__PURE__ */ (0,
|
|
1367
|
-
/* @__PURE__ */ (0,
|
|
1368
|
-
/* @__PURE__ */ (0,
|
|
1605
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("line", { x1: "4", x2: "20", y1: "6", y2: "6" }),
|
|
1606
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("line", { x1: "4", x2: "20", y1: "12", y2: "12" }),
|
|
1607
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("line", { x1: "4", x2: "20", y1: "18", y2: "18" })
|
|
1369
1608
|
]
|
|
1370
1609
|
}
|
|
1371
1610
|
)
|
|
@@ -1382,14 +1621,14 @@ function NavbarMobileOverlay({ className, children, ...props }) {
|
|
|
1382
1621
|
document.addEventListener("keydown", onKeydown);
|
|
1383
1622
|
return () => document.removeEventListener("keydown", onKeydown);
|
|
1384
1623
|
}, [open, setOpen]);
|
|
1385
|
-
return /* @__PURE__ */ (0,
|
|
1386
|
-
/* @__PURE__ */ (0,
|
|
1387
|
-
/* @__PURE__ */ (0,
|
|
1388
|
-
/* @__PURE__ */ (0,
|
|
1389
|
-
/* @__PURE__ */ (0,
|
|
1390
|
-
/* @__PURE__ */ (0,
|
|
1624
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_portal6.Portal, { container: portalRef, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_dialog2.DialogRoot, { open, lazyMount: true, unmountOnExit: true, onOpenChange: ({ open: open2 }) => setOpen(open2), preventScroll: false, children: [
|
|
1625
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_dialog2.DialogBackdrop, { className: "absolute inset-0 z-[100] bg-background/60 backdrop-blur-sm" }),
|
|
1626
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_dialog2.DialogPositioner, { className: "absolute inset-0 z-[100]", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_dialog2.DialogContent, { id, "data-slot": "navbar-mobile-overlay", className: (0, import_helix48.cn)(import_helix48.navbarMobileContentBase, className), ...props, children: [
|
|
1627
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_dialog2.DialogTitle, { className: "sr-only", children: "Navigation menu" }),
|
|
1628
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_dialog2.DialogDescription, { className: "sr-only", children: "Mobile navigation menu" }),
|
|
1629
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: import_helix48.navbarMobileHeaderBase, children: [
|
|
1391
1630
|
slots.brand,
|
|
1392
|
-
/* @__PURE__ */ (0,
|
|
1631
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_dialog2.DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("button", { type: "button", "aria-label": "Close navigation menu", className: (0, import_helix48.cn)((0, import_helix48.navbarTriggerVariants)({ floating })), children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
1393
1632
|
"svg",
|
|
1394
1633
|
{
|
|
1395
1634
|
className: "size-4",
|
|
@@ -1400,12 +1639,12 @@ function NavbarMobileOverlay({ className, children, ...props }) {
|
|
|
1400
1639
|
strokeLinecap: "round",
|
|
1401
1640
|
strokeLinejoin: "round",
|
|
1402
1641
|
"aria-hidden": "true",
|
|
1403
|
-
children: /* @__PURE__ */ (0,
|
|
1642
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("path", { d: "M18 6 6 18M6 6l12 12" })
|
|
1404
1643
|
}
|
|
1405
1644
|
) }) })
|
|
1406
1645
|
] }),
|
|
1407
|
-
/* @__PURE__ */ (0,
|
|
1408
|
-
slots.actions ? /* @__PURE__ */ (0,
|
|
1646
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: import_helix48.navbarMobileMenuBase, children }),
|
|
1647
|
+
slots.actions ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: import_helix48.navbarMobileActionsBase, children: slots.actions }) : null
|
|
1409
1648
|
] }) })
|
|
1410
1649
|
] }) });
|
|
1411
1650
|
}
|
|
@@ -1413,131 +1652,131 @@ function NavbarMobileOverlay({ className, children, ...props }) {
|
|
|
1413
1652
|
// src/field.tsx
|
|
1414
1653
|
var import_field = require("@ark-ui/react/field");
|
|
1415
1654
|
var import_fieldset = require("@ark-ui/react/fieldset");
|
|
1416
|
-
var
|
|
1417
|
-
var
|
|
1655
|
+
var import_helix50 = require("@cloudvoyant/helix");
|
|
1656
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
1418
1657
|
function Field({ className, ...props }) {
|
|
1419
|
-
return /* @__PURE__ */ (0,
|
|
1658
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_field.FieldRoot, { className: (0, import_helix50.cn)(import_helix50.fieldRootBase, className), ...props });
|
|
1420
1659
|
}
|
|
1421
1660
|
function FieldLabel({ className, ...props }) {
|
|
1422
|
-
return /* @__PURE__ */ (0,
|
|
1661
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_field.FieldLabel, { className: (0, import_helix50.cn)(import_helix50.fieldLabelBase, className), ...props });
|
|
1423
1662
|
}
|
|
1424
1663
|
function FieldHelper({ className, ...props }) {
|
|
1425
|
-
return /* @__PURE__ */ (0,
|
|
1664
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_field.FieldHelperText, { className: (0, import_helix50.cn)(import_helix50.fieldHelperBase, className), ...props });
|
|
1426
1665
|
}
|
|
1427
1666
|
function FieldError({ className, ...props }) {
|
|
1428
|
-
return /* @__PURE__ */ (0,
|
|
1667
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_field.FieldErrorText, { className: (0, import_helix50.cn)(import_helix50.fieldErrorBase, className), ...props });
|
|
1429
1668
|
}
|
|
1430
1669
|
function FieldRequiredIndicator({ className, ...props }) {
|
|
1431
|
-
return /* @__PURE__ */ (0,
|
|
1670
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_field.FieldRequiredIndicator, { className: (0, import_helix50.cn)(import_helix50.fieldRequiredIndicatorBase, className), ...props });
|
|
1432
1671
|
}
|
|
1433
1672
|
function FieldSet({ className, ...props }) {
|
|
1434
|
-
return /* @__PURE__ */ (0,
|
|
1673
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_fieldset.FieldsetRoot, { className: (0, import_helix50.cn)(import_helix50.fieldsetRootBase, className), ...props });
|
|
1435
1674
|
}
|
|
1436
1675
|
function FieldSetLegend({ className, ...props }) {
|
|
1437
|
-
return /* @__PURE__ */ (0,
|
|
1676
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_fieldset.FieldsetLegend, { className: (0, import_helix50.cn)(import_helix50.fieldsetLegendBase, className), ...props });
|
|
1438
1677
|
}
|
|
1439
1678
|
function FieldSetHelper({ className, ...props }) {
|
|
1440
|
-
return /* @__PURE__ */ (0,
|
|
1679
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_fieldset.FieldsetHelperText, { className: (0, import_helix50.cn)(import_helix50.fieldsetHelperBase, className), ...props });
|
|
1441
1680
|
}
|
|
1442
1681
|
function FieldSetError({ className, ...props }) {
|
|
1443
|
-
return /* @__PURE__ */ (0,
|
|
1682
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_fieldset.FieldsetErrorText, { className: (0, import_helix50.cn)(import_helix50.fieldsetErrorBase, className), ...props });
|
|
1444
1683
|
}
|
|
1445
1684
|
var useField = import_field.useFieldContext;
|
|
1446
1685
|
|
|
1447
1686
|
// src/input.tsx
|
|
1448
1687
|
var import_field2 = require("@ark-ui/react/field");
|
|
1449
|
-
var
|
|
1450
|
-
var
|
|
1688
|
+
var import_helix51 = require("@cloudvoyant/helix");
|
|
1689
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
1451
1690
|
function Input2({ className, size, ...props }) {
|
|
1452
|
-
return /* @__PURE__ */ (0,
|
|
1691
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_field2.FieldInput, { className: (0, import_helix51.cn)((0, import_helix51.inputVariants)({ size }), className), ...props });
|
|
1453
1692
|
}
|
|
1454
1693
|
|
|
1455
1694
|
// src/textarea.tsx
|
|
1456
1695
|
var import_field3 = require("@ark-ui/react/field");
|
|
1457
|
-
var
|
|
1458
|
-
var
|
|
1696
|
+
var import_helix52 = require("@cloudvoyant/helix");
|
|
1697
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
1459
1698
|
function Textarea({ className, ...props }) {
|
|
1460
|
-
return /* @__PURE__ */ (0,
|
|
1699
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_field3.FieldTextarea, { className: (0, import_helix52.cn)(import_helix52.textareaBase, className), ...props });
|
|
1461
1700
|
}
|
|
1462
1701
|
|
|
1463
1702
|
// src/number-input.tsx
|
|
1464
1703
|
var import_number_input = require("@ark-ui/react/number-input");
|
|
1465
|
-
var
|
|
1466
|
-
var
|
|
1704
|
+
var import_helix53 = require("@cloudvoyant/helix");
|
|
1705
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
1467
1706
|
function NumberInput({ className, ...props }) {
|
|
1468
|
-
return /* @__PURE__ */ (0,
|
|
1707
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_number_input.NumberInputRoot, { className: (0, import_helix53.cn)(import_helix53.numberInputRootBase, className), ...props });
|
|
1469
1708
|
}
|
|
1470
1709
|
function NumberInputControl({ className, ...props }) {
|
|
1471
|
-
return /* @__PURE__ */ (0,
|
|
1710
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_number_input.NumberInputControl, { className: (0, import_helix53.cn)(import_helix53.numberInputControlBase, className), ...props });
|
|
1472
1711
|
}
|
|
1473
1712
|
function NumberInputInput({ className, ...props }) {
|
|
1474
|
-
return /* @__PURE__ */ (0,
|
|
1713
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_number_input.NumberInputInput, { className: (0, import_helix53.cn)(import_helix53.numberInputInputBase, className), ...props });
|
|
1475
1714
|
}
|
|
1476
1715
|
function NumberInputDecrement({ className, ...props }) {
|
|
1477
|
-
return /* @__PURE__ */ (0,
|
|
1716
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_number_input.NumberInputDecrementTrigger, { "aria-label": "Decrement", className: (0, import_helix53.cn)(import_helix53.numberInputTriggerBase, className), ...props });
|
|
1478
1717
|
}
|
|
1479
1718
|
function NumberInputIncrement({ className, ...props }) {
|
|
1480
|
-
return /* @__PURE__ */ (0,
|
|
1719
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_number_input.NumberInputIncrementTrigger, { "aria-label": "Increment", className: (0, import_helix53.cn)(import_helix53.numberInputTriggerBase, className), ...props });
|
|
1481
1720
|
}
|
|
1482
1721
|
var useNumberInput = import_number_input.useNumberInputContext;
|
|
1483
1722
|
|
|
1484
1723
|
// src/checkbox.tsx
|
|
1485
1724
|
var import_react2 = require("react");
|
|
1486
1725
|
var import_checkbox = require("@ark-ui/react/checkbox");
|
|
1487
|
-
var
|
|
1488
|
-
var
|
|
1726
|
+
var import_helix54 = require("@cloudvoyant/helix");
|
|
1727
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
1489
1728
|
var CheckboxSizeContext = (0, import_react2.createContext)("md");
|
|
1490
1729
|
function Checkbox({ className, size = "md", children, ...props }) {
|
|
1491
|
-
return /* @__PURE__ */ (0,
|
|
1730
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(CheckboxSizeContext.Provider, { value: size, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_checkbox.CheckboxRoot, { className: (0, import_helix54.cn)("flex items-center gap-2", className), ...props, children: [
|
|
1492
1731
|
children,
|
|
1493
|
-
/* @__PURE__ */ (0,
|
|
1732
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_checkbox.CheckboxHiddenInput, {})
|
|
1494
1733
|
] }) });
|
|
1495
1734
|
}
|
|
1496
1735
|
function CheckboxControl({ className, ...props }) {
|
|
1497
1736
|
const size = (0, import_react2.useContext)(CheckboxSizeContext);
|
|
1498
|
-
return /* @__PURE__ */ (0,
|
|
1737
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_checkbox.CheckboxControl, { className: (0, import_helix54.cn)((0, import_helix54.checkboxVariants)({ size }), className), ...props });
|
|
1499
1738
|
}
|
|
1500
1739
|
function CheckboxIndicator({ className, ...props }) {
|
|
1501
|
-
return /* @__PURE__ */ (0,
|
|
1740
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_checkbox.CheckboxIndicator, { className: (0, import_helix54.cn)(import_helix54.checkboxIndicatorBase, className), ...props });
|
|
1502
1741
|
}
|
|
1503
1742
|
function CheckboxLabel({ className, ...props }) {
|
|
1504
|
-
return /* @__PURE__ */ (0,
|
|
1743
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_checkbox.CheckboxLabel, { className: (0, import_helix54.cn)(import_helix54.checkboxLabelBase, className), ...props });
|
|
1505
1744
|
}
|
|
1506
1745
|
function CheckboxGroup({ className, ...props }) {
|
|
1507
|
-
return /* @__PURE__ */ (0,
|
|
1746
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_checkbox.CheckboxGroup, { className: (0, import_helix54.cn)(import_helix54.checkboxGroupBase, className), ...props });
|
|
1508
1747
|
}
|
|
1509
1748
|
var useCheckbox = import_checkbox.useCheckboxContext;
|
|
1510
1749
|
|
|
1511
1750
|
// src/switch.tsx
|
|
1512
1751
|
var import_react3 = require("react");
|
|
1513
1752
|
var import_switch = require("@ark-ui/react/switch");
|
|
1514
|
-
var
|
|
1515
|
-
var
|
|
1753
|
+
var import_helix55 = require("@cloudvoyant/helix");
|
|
1754
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
1516
1755
|
var SwitchSizeContext = (0, import_react3.createContext)("md");
|
|
1517
1756
|
function Switch({ className, size = "md", children, ...props }) {
|
|
1518
|
-
return /* @__PURE__ */ (0,
|
|
1757
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(SwitchSizeContext.Provider, { value: size, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_switch.SwitchRoot, { className: (0, import_helix55.cn)("flex items-center gap-2", className), ...props, children: [
|
|
1519
1758
|
children,
|
|
1520
|
-
/* @__PURE__ */ (0,
|
|
1759
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_switch.SwitchHiddenInput, {})
|
|
1521
1760
|
] }) });
|
|
1522
1761
|
}
|
|
1523
1762
|
function SwitchControl({ className, ...props }) {
|
|
1524
1763
|
const size = (0, import_react3.useContext)(SwitchSizeContext);
|
|
1525
|
-
return /* @__PURE__ */ (0,
|
|
1764
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_switch.SwitchControl, { className: (0, import_helix55.cn)((0, import_helix55.switchVariants)({ size }), import_helix55.switchControlBase, className), ...props });
|
|
1526
1765
|
}
|
|
1527
1766
|
function SwitchThumb({ className, ...props }) {
|
|
1528
|
-
return /* @__PURE__ */ (0,
|
|
1767
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_switch.SwitchThumb, { className: (0, import_helix55.cn)(import_helix55.switchThumbBase, className), ...props });
|
|
1529
1768
|
}
|
|
1530
1769
|
function SwitchLabel({ className, ...props }) {
|
|
1531
|
-
return /* @__PURE__ */ (0,
|
|
1770
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_switch.SwitchLabel, { className: (0, import_helix55.cn)(import_helix55.switchLabelBase, className), ...props });
|
|
1532
1771
|
}
|
|
1533
1772
|
var useSwitch = import_switch.useSwitchContext;
|
|
1534
1773
|
|
|
1535
1774
|
// src/select.tsx
|
|
1536
|
-
var
|
|
1537
|
-
var
|
|
1775
|
+
var import_factory34 = require("@ark-ui/react/factory");
|
|
1776
|
+
var import_portal7 = require("@ark-ui/react/portal");
|
|
1538
1777
|
var import_react5 = require("react");
|
|
1539
1778
|
var import_select = require("@ark-ui/react/select");
|
|
1540
|
-
var
|
|
1779
|
+
var import_helix56 = require("@cloudvoyant/helix");
|
|
1541
1780
|
|
|
1542
1781
|
// src/use-media-query.ts
|
|
1543
1782
|
var import_react4 = require("react");
|
|
@@ -1554,7 +1793,7 @@ function useMediaQuery(query) {
|
|
|
1554
1793
|
}
|
|
1555
1794
|
|
|
1556
1795
|
// src/select.tsx
|
|
1557
|
-
var
|
|
1796
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
1558
1797
|
function Select({ items, collection, size, children, ...props }) {
|
|
1559
1798
|
const isCoarse = useMediaQuery("(pointer: coarse)");
|
|
1560
1799
|
const resolvedCollection = (0, import_react5.useMemo)(
|
|
@@ -1562,7 +1801,7 @@ function Select({ items, collection, size, children, ...props }) {
|
|
|
1562
1801
|
[collection, items]
|
|
1563
1802
|
);
|
|
1564
1803
|
if (isCoarse && items) {
|
|
1565
|
-
return /* @__PURE__ */ (0,
|
|
1804
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
1566
1805
|
SelectNative,
|
|
1567
1806
|
{
|
|
1568
1807
|
items,
|
|
@@ -1578,44 +1817,44 @@ function Select({ items, collection, size, children, ...props }) {
|
|
|
1578
1817
|
}
|
|
1579
1818
|
);
|
|
1580
1819
|
}
|
|
1581
|
-
return /* @__PURE__ */ (0,
|
|
1820
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_select.SelectRoot, { collection: resolvedCollection, ...props, children: [
|
|
1582
1821
|
children,
|
|
1583
|
-
/* @__PURE__ */ (0,
|
|
1822
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.SelectHiddenSelect, {})
|
|
1584
1823
|
] });
|
|
1585
1824
|
}
|
|
1586
1825
|
function SelectTrigger({ size = "md", className, ...props }) {
|
|
1587
|
-
return /* @__PURE__ */ (0,
|
|
1826
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.SelectTrigger, { className: (0, import_helix56.cn)((0, import_helix56.inputVariants)({ size }), import_helix56.selectTriggerBase, className), ...props });
|
|
1588
1827
|
}
|
|
1589
1828
|
function SelectValue({ className, ...props }) {
|
|
1590
|
-
return /* @__PURE__ */ (0,
|
|
1829
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.SelectValueText, { className: (0, import_helix56.cn)(import_helix56.selectValueBase, className), ...props });
|
|
1591
1830
|
}
|
|
1592
1831
|
function SelectIndicator({ className, ...props }) {
|
|
1593
|
-
return /* @__PURE__ */ (0,
|
|
1832
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.SelectIndicator, { className: (0, import_helix56.cn)(import_helix56.selectIndicatorBase, className), ...props });
|
|
1594
1833
|
}
|
|
1595
1834
|
function SelectClearTrigger({ className, ...props }) {
|
|
1596
|
-
return /* @__PURE__ */ (0,
|
|
1835
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.SelectClearTrigger, { "aria-label": "Clear selection", className: (0, import_helix56.cn)(import_helix56.selectClearTriggerBase, className), ...props });
|
|
1597
1836
|
}
|
|
1598
1837
|
function SelectContent({ className, ...props }) {
|
|
1599
|
-
return /* @__PURE__ */ (0,
|
|
1838
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_portal7.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.SelectPositioner, { className: import_helix56.selectPositionerBase, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.SelectContent, { className: (0, import_helix56.cn)(import_helix56.selectContentBase, className), ...props }) }) });
|
|
1600
1839
|
}
|
|
1601
1840
|
function SelectItemGroup({ className, ...props }) {
|
|
1602
|
-
return /* @__PURE__ */ (0,
|
|
1841
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.SelectItemGroup, { className, ...props });
|
|
1603
1842
|
}
|
|
1604
1843
|
function SelectItemGroupLabel({ className, ...props }) {
|
|
1605
|
-
return /* @__PURE__ */ (0,
|
|
1844
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.SelectItemGroupLabel, { className: (0, import_helix56.cn)(import_helix56.selectItemGroupLabelBase, className), ...props });
|
|
1606
1845
|
}
|
|
1607
1846
|
function SelectItem({ item, className, ...props }) {
|
|
1608
|
-
return /* @__PURE__ */ (0,
|
|
1847
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.SelectItem, { item, className: (0, import_helix56.cn)(import_helix56.selectItemBase, className), ...props });
|
|
1609
1848
|
}
|
|
1610
1849
|
function SelectItemText({ className, ...props }) {
|
|
1611
|
-
return /* @__PURE__ */ (0,
|
|
1850
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.SelectItemText, { className: (0, import_helix56.cn)(import_helix56.selectItemTextBase, className), ...props });
|
|
1612
1851
|
}
|
|
1613
1852
|
function SelectItemIndicator({ className, ...props }) {
|
|
1614
|
-
return /* @__PURE__ */ (0,
|
|
1853
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.SelectItemIndicator, { className: (0, import_helix56.cn)(import_helix56.selectItemIndicatorBase, className), ...props });
|
|
1615
1854
|
}
|
|
1616
1855
|
var useSelect = import_select.useSelectContext;
|
|
1617
1856
|
function ChevronDownIcon() {
|
|
1618
|
-
return /* @__PURE__ */ (0,
|
|
1857
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
1619
1858
|
"svg",
|
|
1620
1859
|
{
|
|
1621
1860
|
viewBox: "0 0 24 24",
|
|
@@ -1625,7 +1864,7 @@ function ChevronDownIcon() {
|
|
|
1625
1864
|
strokeLinecap: "round",
|
|
1626
1865
|
strokeLinejoin: "round",
|
|
1627
1866
|
"aria-hidden": true,
|
|
1628
|
-
children: /* @__PURE__ */ (0,
|
|
1867
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "m6 9 6 6 6-6" })
|
|
1629
1868
|
}
|
|
1630
1869
|
);
|
|
1631
1870
|
}
|
|
@@ -1640,29 +1879,29 @@ function SelectNative({
|
|
|
1640
1879
|
className,
|
|
1641
1880
|
...props
|
|
1642
1881
|
}) {
|
|
1643
|
-
return /* @__PURE__ */ (0,
|
|
1644
|
-
/* @__PURE__ */ (0,
|
|
1645
|
-
|
|
1882
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_factory34.ark.div, { className: (0, import_helix56.cn)(import_helix56.nativeSelectWrapperBase, className), children: [
|
|
1883
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
1884
|
+
import_factory34.ark.select,
|
|
1646
1885
|
{
|
|
1647
|
-
className: (0,
|
|
1886
|
+
className: (0, import_helix56.nativeSelectVariants)({ size }),
|
|
1648
1887
|
value,
|
|
1649
1888
|
defaultValue,
|
|
1650
1889
|
onChange: (event) => onValueChange?.(event.currentTarget.value),
|
|
1651
1890
|
"aria-invalid": invalid,
|
|
1652
1891
|
...props,
|
|
1653
|
-
children: items.map((item) => /* @__PURE__ */ (0,
|
|
1892
|
+
children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_factory34.ark.option, { value: item.value, disabled: item.disabled, children: item.label }, item.value))
|
|
1654
1893
|
}
|
|
1655
1894
|
),
|
|
1656
|
-
/* @__PURE__ */ (0,
|
|
1895
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_factory34.ark.span, { className: import_helix56.nativeSelectIconBase, "aria-hidden": true, children: icon ?? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ChevronDownIcon, {}) })
|
|
1657
1896
|
] });
|
|
1658
1897
|
}
|
|
1659
1898
|
|
|
1660
1899
|
// src/combobox.tsx
|
|
1661
|
-
var
|
|
1900
|
+
var import_portal8 = require("@ark-ui/react/portal");
|
|
1662
1901
|
var import_react6 = require("react");
|
|
1663
1902
|
var import_combobox = require("@ark-ui/react/combobox");
|
|
1664
|
-
var
|
|
1665
|
-
var
|
|
1903
|
+
var import_helix57 = require("@cloudvoyant/helix");
|
|
1904
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
1666
1905
|
function Combobox({
|
|
1667
1906
|
items,
|
|
1668
1907
|
collection,
|
|
@@ -1675,7 +1914,7 @@ function Combobox({
|
|
|
1675
1914
|
() => collection ?? (0, import_combobox.createListCollection)({ items: items ?? [] }),
|
|
1676
1915
|
[collection, items]
|
|
1677
1916
|
);
|
|
1678
|
-
return /* @__PURE__ */ (0,
|
|
1917
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
1679
1918
|
import_combobox.ComboboxRoot,
|
|
1680
1919
|
{
|
|
1681
1920
|
collection: resolvedCollection,
|
|
@@ -1687,76 +1926,76 @@ function Combobox({
|
|
|
1687
1926
|
);
|
|
1688
1927
|
}
|
|
1689
1928
|
function ComboboxControl({ className, ...props }) {
|
|
1690
|
-
return /* @__PURE__ */ (0,
|
|
1929
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_combobox.ComboboxControl, { className: (0, import_helix57.cn)(import_helix57.comboboxControlBase, className), ...props });
|
|
1691
1930
|
}
|
|
1692
1931
|
function ComboboxInput({ size = "md", className, ...props }) {
|
|
1693
|
-
return /* @__PURE__ */ (0,
|
|
1932
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_combobox.ComboboxInput, { className: (0, import_helix57.cn)((0, import_helix57.inputVariants)({ size }), import_helix57.comboboxInputBase, className), ...props });
|
|
1694
1933
|
}
|
|
1695
1934
|
function ComboboxTrigger({ className, ...props }) {
|
|
1696
|
-
return /* @__PURE__ */ (0,
|
|
1935
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_combobox.ComboboxTrigger, { className: (0, import_helix57.cn)(import_helix57.comboboxTriggerBase, className), ...props });
|
|
1697
1936
|
}
|
|
1698
1937
|
function ComboboxClear({ className, ...props }) {
|
|
1699
|
-
return /* @__PURE__ */ (0,
|
|
1938
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_combobox.ComboboxClearTrigger, { "aria-label": "Clear", className: (0, import_helix57.cn)(import_helix57.comboboxClearTriggerBase, className), ...props });
|
|
1700
1939
|
}
|
|
1701
1940
|
function ComboboxContent({ className, ...props }) {
|
|
1702
|
-
return /* @__PURE__ */ (0,
|
|
1941
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_portal8.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_combobox.ComboboxPositioner, { className: import_helix57.comboboxPositionerBase, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_combobox.ComboboxContent, { className: (0, import_helix57.cn)(import_helix57.comboboxContentBase, className), ...props }) }) });
|
|
1703
1942
|
}
|
|
1704
1943
|
function ComboboxItemGroup({ className, ...props }) {
|
|
1705
|
-
return /* @__PURE__ */ (0,
|
|
1944
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_combobox.ComboboxItemGroup, { className, ...props });
|
|
1706
1945
|
}
|
|
1707
1946
|
function ComboboxItemGroupLabel({ className, ...props }) {
|
|
1708
|
-
return /* @__PURE__ */ (0,
|
|
1947
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_combobox.ComboboxItemGroupLabel, { className: (0, import_helix57.cn)(import_helix57.comboboxItemGroupLabelBase, className), ...props });
|
|
1709
1948
|
}
|
|
1710
1949
|
function ComboboxItem({ item, showIndicator = true, className, ...props }) {
|
|
1711
|
-
return /* @__PURE__ */ (0,
|
|
1950
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_combobox.ComboboxItem, { item, persistFocus: true, className: (0, import_helix57.cn)((0, import_helix57.comboboxItemVariants)({ showIndicator }), className), ...props });
|
|
1712
1951
|
}
|
|
1713
1952
|
function ComboboxItemText({ className, ...props }) {
|
|
1714
|
-
return /* @__PURE__ */ (0,
|
|
1953
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_combobox.ComboboxItemText, { className, ...props });
|
|
1715
1954
|
}
|
|
1716
1955
|
function ComboboxItemIndicator({ className, ...props }) {
|
|
1717
|
-
return /* @__PURE__ */ (0,
|
|
1956
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_combobox.ComboboxItemIndicator, { className: (0, import_helix57.cn)(import_helix57.comboboxItemIndicatorBase, className), ...props });
|
|
1718
1957
|
}
|
|
1719
1958
|
function ComboboxList({ className, ...props }) {
|
|
1720
|
-
return /* @__PURE__ */ (0,
|
|
1959
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_combobox.ComboboxList, { className: (0, import_helix57.cn)(import_helix57.comboboxListBase, className), ...props });
|
|
1721
1960
|
}
|
|
1722
1961
|
function ComboboxEmpty({ className, children, ...props }) {
|
|
1723
|
-
return /* @__PURE__ */ (0,
|
|
1962
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_combobox.ComboboxEmpty, { className: (0, import_helix57.cn)(import_helix57.comboboxEmptyBase, className), ...props, children: children ?? "No results found." });
|
|
1724
1963
|
}
|
|
1725
1964
|
var useCombobox = import_combobox.useComboboxContext;
|
|
1726
1965
|
|
|
1727
1966
|
// src/tags-input.tsx
|
|
1728
1967
|
var import_tags_input = require("@ark-ui/react/tags-input");
|
|
1729
|
-
var
|
|
1730
|
-
var
|
|
1968
|
+
var import_helix58 = require("@cloudvoyant/helix");
|
|
1969
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
1731
1970
|
function TagInput({ className, editable = false, children, ...props }) {
|
|
1732
|
-
return /* @__PURE__ */ (0,
|
|
1971
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_tags_input.TagsInputRoot, { className: (0, import_helix58.cn)(import_helix58.tagsInputRootBase, className), editable, ...props, children: [
|
|
1733
1972
|
children,
|
|
1734
|
-
/* @__PURE__ */ (0,
|
|
1973
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_tags_input.TagsInputHiddenInput, {})
|
|
1735
1974
|
] });
|
|
1736
1975
|
}
|
|
1737
1976
|
function TagInputControl({ className, ...props }) {
|
|
1738
|
-
return /* @__PURE__ */ (0,
|
|
1977
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_tags_input.TagsInputControl, { className: (0, import_helix58.cn)(import_helix58.tagsInputControlBase, className), ...props });
|
|
1739
1978
|
}
|
|
1740
1979
|
function TagInputInput({ className, ...props }) {
|
|
1741
|
-
return /* @__PURE__ */ (0,
|
|
1980
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_tags_input.TagsInputInput, { className: (0, import_helix58.cn)(import_helix58.tagsInputInputBase, className), ...props });
|
|
1742
1981
|
}
|
|
1743
1982
|
function TagInputItem({ className, ...props }) {
|
|
1744
|
-
return /* @__PURE__ */ (0,
|
|
1983
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_tags_input.TagsInputItem, { className: (0, import_helix58.cn)(import_helix58.tagsInputItemBase, className), ...props });
|
|
1745
1984
|
}
|
|
1746
1985
|
function TagInputItemPreview({ className, ...props }) {
|
|
1747
|
-
return /* @__PURE__ */ (0,
|
|
1986
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_tags_input.TagsInputItemPreview, { className, ...props });
|
|
1748
1987
|
}
|
|
1749
1988
|
function TagInputItemText({ className, ...props }) {
|
|
1750
|
-
return /* @__PURE__ */ (0,
|
|
1989
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_tags_input.TagsInputItemText, { className: (0, import_helix58.cn)(import_helix58.tagsInputItemTextBase, className), ...props });
|
|
1751
1990
|
}
|
|
1752
1991
|
function TagInputItemInput({ className, ...props }) {
|
|
1753
|
-
return /* @__PURE__ */ (0,
|
|
1992
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_tags_input.TagsInputItemInput, { className: (0, import_helix58.cn)(import_helix58.tagsInputItemInputBase, className), ...props });
|
|
1754
1993
|
}
|
|
1755
1994
|
function TagInputItemDeleteTrigger({ className, ...props }) {
|
|
1756
|
-
return /* @__PURE__ */ (0,
|
|
1995
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_tags_input.TagsInputItemDeleteTrigger, { "aria-label": "Remove tag", className: (0, import_helix58.cn)(import_helix58.tagsInputItemDeleteTriggerBase, className), ...props });
|
|
1757
1996
|
}
|
|
1758
1997
|
function TagInputClearTrigger({ className, ...props }) {
|
|
1759
|
-
return /* @__PURE__ */ (0,
|
|
1998
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_tags_input.TagsInputClearTrigger, { "aria-label": "Clear all tags", className: (0, import_helix58.cn)(import_helix58.tagsInputClearTriggerBase, className), ...props });
|
|
1760
1999
|
}
|
|
1761
2000
|
var TagInputContext = import_tags_input.TagsInputContext;
|
|
1762
2001
|
var useTagInput = import_tags_input.useTagsInputContext;
|
|
@@ -1792,6 +2031,16 @@ var useTagInput = import_tags_input.useTagsInputContext;
|
|
|
1792
2031
|
ComboboxList,
|
|
1793
2032
|
ComboboxTrigger,
|
|
1794
2033
|
Container,
|
|
2034
|
+
Dialog,
|
|
2035
|
+
DialogBackdrop,
|
|
2036
|
+
DialogContent,
|
|
2037
|
+
DialogDescription,
|
|
2038
|
+
DialogDismiss,
|
|
2039
|
+
DialogFooter,
|
|
2040
|
+
DialogHeader,
|
|
2041
|
+
DialogProvider,
|
|
2042
|
+
DialogTitle,
|
|
2043
|
+
DialogTrigger,
|
|
1795
2044
|
Field,
|
|
1796
2045
|
FieldError,
|
|
1797
2046
|
FieldHelper,
|
|
@@ -1828,12 +2077,27 @@ var useTagInput = import_tags_input.useTagsInputContext;
|
|
|
1828
2077
|
NumberInputDecrement,
|
|
1829
2078
|
NumberInputIncrement,
|
|
1830
2079
|
NumberInputInput,
|
|
2080
|
+
Page,
|
|
2081
|
+
PageContent,
|
|
2082
|
+
PageFooter,
|
|
2083
|
+
PageGutter,
|
|
2084
|
+
PageSection,
|
|
1831
2085
|
Pagination,
|
|
1832
2086
|
PaginationEllipsis,
|
|
1833
2087
|
PaginationItem,
|
|
1834
2088
|
PaginationItems,
|
|
1835
2089
|
PaginationNext,
|
|
1836
2090
|
PaginationPrevious,
|
|
2091
|
+
Popover,
|
|
2092
|
+
PopoverAnchor,
|
|
2093
|
+
PopoverContent,
|
|
2094
|
+
PopoverDescription,
|
|
2095
|
+
PopoverDismiss,
|
|
2096
|
+
PopoverIndicator,
|
|
2097
|
+
PopoverProvider,
|
|
2098
|
+
PopoverTitle,
|
|
2099
|
+
PopoverTrigger,
|
|
2100
|
+
Portal,
|
|
1837
2101
|
Row,
|
|
1838
2102
|
Scroll,
|
|
1839
2103
|
Select,
|
|
@@ -1896,17 +2160,39 @@ var useTagInput = import_tags_input.useTagsInputContext;
|
|
|
1896
2160
|
Textarea,
|
|
1897
2161
|
ToggleButton,
|
|
1898
2162
|
ToggleButtonIndicator,
|
|
2163
|
+
Tooltip,
|
|
2164
|
+
TooltipContent,
|
|
2165
|
+
TooltipProvider,
|
|
2166
|
+
TooltipTrigger,
|
|
1899
2167
|
VStack,
|
|
2168
|
+
Window,
|
|
2169
|
+
WindowBody,
|
|
2170
|
+
WindowControl,
|
|
2171
|
+
WindowDismiss,
|
|
2172
|
+
WindowDragTrigger,
|
|
2173
|
+
WindowHeader,
|
|
2174
|
+
WindowProvider,
|
|
2175
|
+
WindowResizeTrigger,
|
|
2176
|
+
WindowStageTrigger,
|
|
2177
|
+
WindowTitle,
|
|
1900
2178
|
navbarMenuTriggerStyle,
|
|
1901
2179
|
useCheckbox,
|
|
1902
2180
|
useCombobox,
|
|
2181
|
+
useDialog,
|
|
2182
|
+
useDialogContext,
|
|
1903
2183
|
useField,
|
|
1904
2184
|
useMediaQuery,
|
|
1905
2185
|
useNavbar,
|
|
1906
2186
|
useNumberInput,
|
|
2187
|
+
usePopover,
|
|
2188
|
+
usePopoverContext,
|
|
1907
2189
|
useSelect,
|
|
1908
2190
|
useSidebar,
|
|
1909
2191
|
useSwitch,
|
|
1910
2192
|
useTabs,
|
|
1911
|
-
useTagInput
|
|
2193
|
+
useTagInput,
|
|
2194
|
+
useTooltip,
|
|
2195
|
+
useTooltipContext,
|
|
2196
|
+
useWindow,
|
|
2197
|
+
useWindowContext
|
|
1912
2198
|
});
|