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