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