@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.js
CHANGED
|
@@ -17,57 +17,283 @@ function ToggleButtonIndicator(props) {
|
|
|
17
17
|
return /* @__PURE__ */ jsx2(ToggleIndicator, { ...props });
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
// src/tooltip.tsx
|
|
21
|
+
import {
|
|
22
|
+
TooltipRoot as ArkTooltipRoot,
|
|
23
|
+
TooltipRootProvider as ArkTooltipRootProvider,
|
|
24
|
+
TooltipTrigger as ArkTooltipTrigger,
|
|
25
|
+
TooltipPositioner as ArkTooltipPositioner,
|
|
26
|
+
TooltipArrow as ArkTooltipArrow,
|
|
27
|
+
TooltipArrowTip as ArkTooltipArrowTip,
|
|
28
|
+
TooltipContent as ArkTooltipContent,
|
|
29
|
+
useTooltip,
|
|
30
|
+
useTooltipContext
|
|
31
|
+
} from "@ark-ui/react/tooltip";
|
|
32
|
+
import { Portal } from "@ark-ui/react/portal";
|
|
33
|
+
import { tooltipPositionerBase, tooltipArrowBase, tooltipContentBase, cn as cn3 } from "@cloudvoyant/helix";
|
|
34
|
+
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
35
|
+
function Tooltip(props) {
|
|
36
|
+
return /* @__PURE__ */ jsx3(ArkTooltipRoot, { ...props });
|
|
37
|
+
}
|
|
38
|
+
function TooltipProvider(props) {
|
|
39
|
+
return /* @__PURE__ */ jsx3(ArkTooltipRootProvider, { ...props });
|
|
40
|
+
}
|
|
41
|
+
function TooltipTrigger({ className, ...props }) {
|
|
42
|
+
return /* @__PURE__ */ jsx3(ArkTooltipTrigger, { className: cn3(className), ...props });
|
|
43
|
+
}
|
|
44
|
+
function TooltipContent({ arrow = true, className, ...props }) {
|
|
45
|
+
const tooltip = useTooltipContext();
|
|
46
|
+
return /* @__PURE__ */ jsx3(Portal, { children: /* @__PURE__ */ jsxs(ArkTooltipPositioner, { className: tooltipPositionerBase, children: [
|
|
47
|
+
arrow && tooltip.open ? /* @__PURE__ */ jsx3(ArkTooltipArrow, { className: tooltipArrowBase, children: /* @__PURE__ */ jsx3(ArkTooltipArrowTip, {}) }) : null,
|
|
48
|
+
/* @__PURE__ */ jsx3(ArkTooltipContent, { className: cn3(tooltipContentBase, className), ...props })
|
|
49
|
+
] }) });
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// src/popover.tsx
|
|
53
|
+
import {
|
|
54
|
+
PopoverRoot as ArkPopoverRoot,
|
|
55
|
+
PopoverRootProvider as ArkPopoverRootProvider,
|
|
56
|
+
PopoverTrigger as ArkPopoverTrigger,
|
|
57
|
+
PopoverAnchor as ArkPopoverAnchor,
|
|
58
|
+
PopoverPositioner as ArkPopoverPositioner,
|
|
59
|
+
PopoverArrow as ArkPopoverArrow,
|
|
60
|
+
PopoverArrowTip as ArkPopoverArrowTip,
|
|
61
|
+
PopoverContent as ArkPopoverContent,
|
|
62
|
+
PopoverTitle as ArkPopoverTitle,
|
|
63
|
+
PopoverDescription as ArkPopoverDescription,
|
|
64
|
+
PopoverCloseTrigger as ArkPopoverCloseTrigger,
|
|
65
|
+
PopoverIndicator as ArkPopoverIndicator,
|
|
66
|
+
usePopover,
|
|
67
|
+
usePopoverContext
|
|
68
|
+
} from "@ark-ui/react/popover";
|
|
69
|
+
import { Portal as Portal2 } from "@ark-ui/react/portal";
|
|
70
|
+
import {
|
|
71
|
+
popoverPositionerBase,
|
|
72
|
+
popoverArrowBase,
|
|
73
|
+
popoverContentBase,
|
|
74
|
+
popoverTitleBase,
|
|
75
|
+
popoverDescriptionBase,
|
|
76
|
+
popoverCloseTriggerBase,
|
|
77
|
+
popoverIndicatorBase,
|
|
78
|
+
cn as cn4
|
|
79
|
+
} from "@cloudvoyant/helix";
|
|
80
|
+
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
81
|
+
function Popover(props) {
|
|
82
|
+
return /* @__PURE__ */ jsx4(ArkPopoverRoot, { ...props });
|
|
83
|
+
}
|
|
84
|
+
function PopoverProvider(props) {
|
|
85
|
+
return /* @__PURE__ */ jsx4(ArkPopoverRootProvider, { ...props });
|
|
86
|
+
}
|
|
87
|
+
function PopoverTrigger({ className, ...props }) {
|
|
88
|
+
return /* @__PURE__ */ jsx4(ArkPopoverTrigger, { className: cn4(className), ...props });
|
|
89
|
+
}
|
|
90
|
+
function PopoverAnchor({ className, ...props }) {
|
|
91
|
+
return /* @__PURE__ */ jsx4(ArkPopoverAnchor, { className: cn4(className), ...props });
|
|
92
|
+
}
|
|
93
|
+
function PopoverContent({ arrow = false, className, ...props }) {
|
|
94
|
+
const popover = usePopoverContext();
|
|
95
|
+
return /* @__PURE__ */ jsx4(Portal2, { children: /* @__PURE__ */ jsxs2(ArkPopoverPositioner, { className: popoverPositionerBase, children: [
|
|
96
|
+
arrow && popover.open ? /* @__PURE__ */ jsx4(ArkPopoverArrow, { className: popoverArrowBase, children: /* @__PURE__ */ jsx4(ArkPopoverArrowTip, {}) }) : null,
|
|
97
|
+
/* @__PURE__ */ jsx4(ArkPopoverContent, { className: cn4(popoverContentBase, className), ...props })
|
|
98
|
+
] }) });
|
|
99
|
+
}
|
|
100
|
+
function PopoverTitle({ className, ...props }) {
|
|
101
|
+
return /* @__PURE__ */ jsx4(ArkPopoverTitle, { className: cn4(popoverTitleBase, className), ...props });
|
|
102
|
+
}
|
|
103
|
+
function PopoverDescription({ className, ...props }) {
|
|
104
|
+
return /* @__PURE__ */ jsx4(ArkPopoverDescription, { className: cn4(popoverDescriptionBase, className), ...props });
|
|
105
|
+
}
|
|
106
|
+
function PopoverDismiss({ className, ...props }) {
|
|
107
|
+
return /* @__PURE__ */ jsx4(ArkPopoverCloseTrigger, { "aria-label": "Close", className: cn4(popoverCloseTriggerBase, className), ...props });
|
|
108
|
+
}
|
|
109
|
+
function PopoverIndicator({ className, ...props }) {
|
|
110
|
+
return /* @__PURE__ */ jsx4(ArkPopoverIndicator, { className: cn4(popoverIndicatorBase, className), ...props });
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// src/dialog.tsx
|
|
114
|
+
import {
|
|
115
|
+
DialogRoot as ArkDialogRoot,
|
|
116
|
+
DialogRootProvider as ArkDialogRootProvider,
|
|
117
|
+
DialogTrigger as ArkDialogTrigger,
|
|
118
|
+
DialogBackdrop as ArkDialogBackdrop,
|
|
119
|
+
DialogPositioner as ArkDialogPositioner,
|
|
120
|
+
DialogContent as ArkDialogContent,
|
|
121
|
+
DialogTitle as ArkDialogTitle,
|
|
122
|
+
DialogDescription as ArkDialogDescription,
|
|
123
|
+
DialogCloseTrigger as ArkDialogCloseTrigger,
|
|
124
|
+
useDialog,
|
|
125
|
+
useDialogContext
|
|
126
|
+
} from "@ark-ui/react/dialog";
|
|
127
|
+
import { Portal as Portal3 } from "@ark-ui/react/portal";
|
|
128
|
+
import {
|
|
129
|
+
dialogBackdropBase,
|
|
130
|
+
dialogPositionerBase,
|
|
131
|
+
dialogContentBase,
|
|
132
|
+
dialogTitleBase,
|
|
133
|
+
dialogDescriptionBase,
|
|
134
|
+
dialogHeaderBase,
|
|
135
|
+
dialogFooterBase,
|
|
136
|
+
dialogHeaderStickyBase,
|
|
137
|
+
dialogFooterStickyBase,
|
|
138
|
+
dialogFullscreenContentBase,
|
|
139
|
+
dialogCloseTriggerBase,
|
|
140
|
+
cn as cn5
|
|
141
|
+
} from "@cloudvoyant/helix";
|
|
142
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
143
|
+
function Dialog(props) {
|
|
144
|
+
return /* @__PURE__ */ jsx5(ArkDialogRoot, { ...props });
|
|
145
|
+
}
|
|
146
|
+
function DialogProvider(props) {
|
|
147
|
+
return /* @__PURE__ */ jsx5(ArkDialogRootProvider, { ...props });
|
|
148
|
+
}
|
|
149
|
+
function DialogTrigger({ className, ...props }) {
|
|
150
|
+
return /* @__PURE__ */ jsx5(ArkDialogTrigger, { className: cn5(className), ...props });
|
|
151
|
+
}
|
|
152
|
+
function DialogBackdrop({ className, ...props }) {
|
|
153
|
+
return /* @__PURE__ */ jsx5(Portal3, { children: /* @__PURE__ */ jsx5(ArkDialogBackdrop, { className: cn5(dialogBackdropBase, className), ...props }) });
|
|
154
|
+
}
|
|
155
|
+
function DialogContent({ positionerClassName, fullscreen, className, ...props }) {
|
|
156
|
+
return /* @__PURE__ */ jsx5(Portal3, { children: /* @__PURE__ */ jsx5(ArkDialogPositioner, { className: cn5(dialogPositionerBase, fullscreen && "p-0", positionerClassName), children: /* @__PURE__ */ jsx5(
|
|
157
|
+
ArkDialogContent,
|
|
158
|
+
{
|
|
159
|
+
className: cn5(dialogContentBase, fullscreen && dialogFullscreenContentBase, className),
|
|
160
|
+
...props
|
|
161
|
+
}
|
|
162
|
+
) }) });
|
|
163
|
+
}
|
|
164
|
+
function DialogTitle({ className, ...props }) {
|
|
165
|
+
return /* @__PURE__ */ jsx5(ArkDialogTitle, { className: cn5(dialogTitleBase, className), ...props });
|
|
166
|
+
}
|
|
167
|
+
function DialogDescription({ className, ...props }) {
|
|
168
|
+
return /* @__PURE__ */ jsx5(ArkDialogDescription, { className: cn5(dialogDescriptionBase, className), ...props });
|
|
169
|
+
}
|
|
170
|
+
function DialogHeader({ sticky, className, ...props }) {
|
|
171
|
+
return /* @__PURE__ */ jsx5("div", { className: cn5(dialogHeaderBase, sticky && dialogHeaderStickyBase, className), ...props });
|
|
172
|
+
}
|
|
173
|
+
function DialogFooter({ sticky, className, ...props }) {
|
|
174
|
+
return /* @__PURE__ */ jsx5("div", { className: cn5(dialogFooterBase, sticky && dialogFooterStickyBase, className), ...props });
|
|
175
|
+
}
|
|
176
|
+
function DialogDismiss({ className, ...props }) {
|
|
177
|
+
return /* @__PURE__ */ jsx5(ArkDialogCloseTrigger, { "aria-label": "Close", className: cn5(dialogCloseTriggerBase, className), ...props });
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// src/window.tsx
|
|
181
|
+
import {
|
|
182
|
+
FloatingPanelRoot as ArkWindowRoot,
|
|
183
|
+
FloatingPanelRootProvider as ArkWindowRootProvider,
|
|
184
|
+
FloatingPanelPositioner as ArkWindowPositioner,
|
|
185
|
+
FloatingPanelContent as ArkWindowContent,
|
|
186
|
+
FloatingPanelHeader as ArkWindowHeader,
|
|
187
|
+
FloatingPanelTitle as ArkWindowTitle,
|
|
188
|
+
FloatingPanelControl as ArkWindowControl,
|
|
189
|
+
FloatingPanelStageTrigger as ArkWindowStageTrigger,
|
|
190
|
+
FloatingPanelCloseTrigger as ArkWindowCloseTrigger,
|
|
191
|
+
FloatingPanelDragTrigger as ArkWindowDragTrigger,
|
|
192
|
+
FloatingPanelBody as ArkWindowBody,
|
|
193
|
+
FloatingPanelResizeTrigger as ArkWindowResizeTrigger,
|
|
194
|
+
useFloatingPanel as useWindow,
|
|
195
|
+
useFloatingPanelContext as useWindowContext
|
|
196
|
+
} from "@ark-ui/react/floating-panel";
|
|
197
|
+
import { Portal as Portal4 } from "@ark-ui/react/portal";
|
|
198
|
+
import {
|
|
199
|
+
windowPositionerBase,
|
|
200
|
+
windowContentBase,
|
|
201
|
+
windowDragTriggerBase,
|
|
202
|
+
windowHeaderBase,
|
|
203
|
+
windowTitleBase,
|
|
204
|
+
windowControlBase,
|
|
205
|
+
windowStageTriggerBase,
|
|
206
|
+
windowCloseTriggerBase,
|
|
207
|
+
windowBodyBase,
|
|
208
|
+
windowResizeTriggerBase,
|
|
209
|
+
cn as cn6
|
|
210
|
+
} from "@cloudvoyant/helix";
|
|
211
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
212
|
+
function Window({ className, positionerClassName, children, ...props }) {
|
|
213
|
+
return /* @__PURE__ */ jsx6(ArkWindowRoot, { ...props, children: /* @__PURE__ */ jsx6(Portal4, { children: /* @__PURE__ */ jsx6(ArkWindowPositioner, { className: cn6(windowPositionerBase, positionerClassName), children: /* @__PURE__ */ jsx6(ArkWindowContent, { className: cn6(windowContentBase, className), children }) }) }) });
|
|
214
|
+
}
|
|
215
|
+
function WindowProvider(props) {
|
|
216
|
+
return /* @__PURE__ */ jsx6(ArkWindowRootProvider, { ...props });
|
|
217
|
+
}
|
|
218
|
+
function WindowDragTrigger({ className, ...props }) {
|
|
219
|
+
return /* @__PURE__ */ jsx6(ArkWindowDragTrigger, { className: cn6(windowDragTriggerBase, className), ...props });
|
|
220
|
+
}
|
|
221
|
+
function WindowHeader({ className, ...props }) {
|
|
222
|
+
return /* @__PURE__ */ jsx6(ArkWindowHeader, { className: cn6(windowHeaderBase, className), ...props });
|
|
223
|
+
}
|
|
224
|
+
function WindowTitle({ className, ...props }) {
|
|
225
|
+
return /* @__PURE__ */ jsx6(ArkWindowTitle, { className: cn6(windowTitleBase, className), ...props });
|
|
226
|
+
}
|
|
227
|
+
function WindowControl({ className, ...props }) {
|
|
228
|
+
return /* @__PURE__ */ jsx6(ArkWindowControl, { className: cn6(windowControlBase, className), ...props });
|
|
229
|
+
}
|
|
230
|
+
function WindowStageTrigger({ className, ...props }) {
|
|
231
|
+
return /* @__PURE__ */ jsx6(ArkWindowStageTrigger, { className: cn6(windowStageTriggerBase, className), ...props });
|
|
232
|
+
}
|
|
233
|
+
function WindowDismiss({ className, ...props }) {
|
|
234
|
+
return /* @__PURE__ */ jsx6(ArkWindowCloseTrigger, { "aria-label": "Close", className: cn6(windowCloseTriggerBase, className), ...props });
|
|
235
|
+
}
|
|
236
|
+
function WindowBody({ className, ...props }) {
|
|
237
|
+
return /* @__PURE__ */ jsx6(ArkWindowBody, { className: cn6(windowBodyBase, className), ...props });
|
|
238
|
+
}
|
|
239
|
+
function WindowResizeTrigger({ axis = "se", className, ...props }) {
|
|
240
|
+
return /* @__PURE__ */ jsx6(ArkWindowResizeTrigger, { axis, className: cn6(windowResizeTriggerBase, className), ...props });
|
|
241
|
+
}
|
|
242
|
+
|
|
20
243
|
// src/badge.tsx
|
|
21
244
|
import { ark as ark2 } from "@ark-ui/react/factory";
|
|
22
|
-
import { badgeVariants, cn as
|
|
23
|
-
import { jsx as
|
|
245
|
+
import { badgeVariants, cn as cn7 } from "@cloudvoyant/helix";
|
|
246
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
24
247
|
function Badge({ className, variant, color, size, ...props }) {
|
|
25
|
-
return /* @__PURE__ */
|
|
248
|
+
return /* @__PURE__ */ jsx7(ark2.span, { className: cn7(badgeVariants({ variant, color, size }), className), ...props });
|
|
26
249
|
}
|
|
27
250
|
|
|
28
251
|
// src/container.tsx
|
|
29
252
|
import { ark as ark3 } from "@ark-ui/react/factory";
|
|
30
|
-
import { containerBase, cn as
|
|
31
|
-
import { jsx as
|
|
253
|
+
import { containerBase, cn as cn8 } from "@cloudvoyant/helix";
|
|
254
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
32
255
|
function Container({ className, ...props }) {
|
|
33
|
-
return /* @__PURE__ */
|
|
256
|
+
return /* @__PURE__ */ jsx8(ark3.div, { className: cn8(containerBase, className), ...props });
|
|
34
257
|
}
|
|
35
258
|
|
|
36
259
|
// src/row.tsx
|
|
37
260
|
import { ark as ark4 } from "@ark-ui/react/factory";
|
|
38
|
-
import { rowBase, cn as
|
|
39
|
-
import { jsx as
|
|
261
|
+
import { rowBase, cn as cn9 } from "@cloudvoyant/helix";
|
|
262
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
40
263
|
function Row({ className, ...props }) {
|
|
41
|
-
return /* @__PURE__ */
|
|
264
|
+
return /* @__PURE__ */ jsx9(ark4.div, { className: cn9(rowBase, className), ...props });
|
|
42
265
|
}
|
|
43
266
|
|
|
44
267
|
// src/col.tsx
|
|
45
268
|
import { ark as ark5 } from "@ark-ui/react/factory";
|
|
46
|
-
import { colBase, cn as
|
|
47
|
-
import { jsx as
|
|
269
|
+
import { colBase, cn as cn10 } from "@cloudvoyant/helix";
|
|
270
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
48
271
|
function Col({ className, ...props }) {
|
|
49
|
-
return /* @__PURE__ */
|
|
272
|
+
return /* @__PURE__ */ jsx10(ark5.div, { className: cn10(colBase, className), ...props });
|
|
50
273
|
}
|
|
51
274
|
|
|
52
275
|
// src/center.tsx
|
|
53
276
|
import { ark as ark6 } from "@ark-ui/react/factory";
|
|
54
|
-
import { centerBase, cn as
|
|
55
|
-
import { jsx as
|
|
277
|
+
import { centerBase, cn as cn11 } from "@cloudvoyant/helix";
|
|
278
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
56
279
|
function Center({ className, ...props }) {
|
|
57
|
-
return /* @__PURE__ */
|
|
280
|
+
return /* @__PURE__ */ jsx11(ark6.div, { className: cn11(centerBase, className), ...props });
|
|
58
281
|
}
|
|
59
282
|
|
|
283
|
+
// src/portal.tsx
|
|
284
|
+
import { Portal as Portal5 } from "@ark-ui/react/portal";
|
|
285
|
+
|
|
60
286
|
// src/item.tsx
|
|
61
287
|
import { ark as ark7 } from "@ark-ui/react/factory";
|
|
62
|
-
import { itemVariants, cn as
|
|
63
|
-
import { jsx as
|
|
288
|
+
import { itemVariants, cn as cn12 } from "@cloudvoyant/helix";
|
|
289
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
64
290
|
function Item({ className, variant, ...props }) {
|
|
65
|
-
return /* @__PURE__ */
|
|
291
|
+
return /* @__PURE__ */ jsx12(ark7.div, { className: cn12(itemVariants({ variant }), className), ...props });
|
|
66
292
|
}
|
|
67
293
|
|
|
68
294
|
// src/card/root.tsx
|
|
69
295
|
import { ark as ark8 } from "@ark-ui/react/factory";
|
|
70
|
-
import { cardVariants, cn as
|
|
296
|
+
import { cardVariants, cn as cn13 } from "@cloudvoyant/helix";
|
|
71
297
|
|
|
72
298
|
// src/card/context.ts
|
|
73
299
|
import { createContext, useContext } from "react";
|
|
@@ -77,62 +303,62 @@ function useCardOrientation() {
|
|
|
77
303
|
}
|
|
78
304
|
|
|
79
305
|
// src/card/root.tsx
|
|
80
|
-
import { jsx as
|
|
306
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
81
307
|
function Card({ className, variant, size, orientation, children, ...props }) {
|
|
82
308
|
const resolvedOrientation = orientation ?? "vertical";
|
|
83
|
-
return /* @__PURE__ */
|
|
309
|
+
return /* @__PURE__ */ jsx13(CardOrientationContext.Provider, { value: resolvedOrientation, children: /* @__PURE__ */ jsx13(ark8.div, { className: cn13(cardVariants({ variant, size, orientation: resolvedOrientation }), className), ...props, children }) });
|
|
84
310
|
}
|
|
85
311
|
|
|
86
312
|
// src/card/header.tsx
|
|
87
313
|
import { ark as ark9 } from "@ark-ui/react/factory";
|
|
88
|
-
import { cardHeaderBase, cn as
|
|
89
|
-
import { jsx as
|
|
314
|
+
import { cardHeaderBase, cn as cn14 } from "@cloudvoyant/helix";
|
|
315
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
90
316
|
function CardHeader({ className, ...props }) {
|
|
91
|
-
return /* @__PURE__ */
|
|
317
|
+
return /* @__PURE__ */ jsx14(ark9.div, { className: cn14(cardHeaderBase, className), ...props });
|
|
92
318
|
}
|
|
93
319
|
|
|
94
320
|
// src/card/body.tsx
|
|
95
321
|
import { ark as ark10 } from "@ark-ui/react/factory";
|
|
96
|
-
import { cardBodyBase, cn as
|
|
97
|
-
import { jsx as
|
|
322
|
+
import { cardBodyBase, cn as cn15 } from "@cloudvoyant/helix";
|
|
323
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
98
324
|
function CardBody({ className, ...props }) {
|
|
99
|
-
return /* @__PURE__ */
|
|
325
|
+
return /* @__PURE__ */ jsx15(ark10.div, { className: cn15(cardBodyBase, className), ...props });
|
|
100
326
|
}
|
|
101
327
|
|
|
102
328
|
// src/card/footer.tsx
|
|
103
329
|
import { ark as ark11 } from "@ark-ui/react/factory";
|
|
104
|
-
import { cardFooterBase, cn as
|
|
105
|
-
import { jsx as
|
|
330
|
+
import { cardFooterBase, cn as cn16 } from "@cloudvoyant/helix";
|
|
331
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
106
332
|
function CardFooter({ className, ...props }) {
|
|
107
|
-
return /* @__PURE__ */
|
|
333
|
+
return /* @__PURE__ */ jsx16(ark11.div, { className: cn16(cardFooterBase, className), ...props });
|
|
108
334
|
}
|
|
109
335
|
|
|
110
336
|
// src/card/title.tsx
|
|
111
337
|
import { ark as ark12 } from "@ark-ui/react/factory";
|
|
112
|
-
import { cardTitleBase, cn as
|
|
113
|
-
import { jsx as
|
|
338
|
+
import { cardTitleBase, cn as cn17 } from "@cloudvoyant/helix";
|
|
339
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
114
340
|
function CardTitle({ className, ...props }) {
|
|
115
|
-
return /* @__PURE__ */
|
|
341
|
+
return /* @__PURE__ */ jsx17(ark12.h3, { className: cn17(cardTitleBase, className), ...props });
|
|
116
342
|
}
|
|
117
343
|
|
|
118
344
|
// src/card/description.tsx
|
|
119
345
|
import { ark as ark13 } from "@ark-ui/react/factory";
|
|
120
|
-
import { cardDescriptionBase, cn as
|
|
121
|
-
import { jsx as
|
|
346
|
+
import { cardDescriptionBase, cn as cn18 } from "@cloudvoyant/helix";
|
|
347
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
122
348
|
function CardDescription({ className, ...props }) {
|
|
123
|
-
return /* @__PURE__ */
|
|
349
|
+
return /* @__PURE__ */ jsx18(ark13.p, { className: cn18(cardDescriptionBase, className), ...props });
|
|
124
350
|
}
|
|
125
351
|
|
|
126
352
|
// src/card/cover.tsx
|
|
127
353
|
import { ark as ark14 } from "@ark-ui/react/factory";
|
|
128
|
-
import { cardCoverVariants, cn as
|
|
129
|
-
import { jsx as
|
|
354
|
+
import { cardCoverVariants, cn as cn19 } from "@cloudvoyant/helix";
|
|
355
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
130
356
|
function CardCover({ className, variant, orientation, ...props }) {
|
|
131
357
|
const contextOrientation = useCardOrientation();
|
|
132
|
-
return /* @__PURE__ */
|
|
358
|
+
return /* @__PURE__ */ jsx19(
|
|
133
359
|
ark14.div,
|
|
134
360
|
{
|
|
135
|
-
className:
|
|
361
|
+
className: cn19(cardCoverVariants({ variant, orientation: orientation ?? contextOrientation }), className),
|
|
136
362
|
...props
|
|
137
363
|
}
|
|
138
364
|
);
|
|
@@ -140,16 +366,16 @@ function CardCover({ className, variant, orientation, ...props }) {
|
|
|
140
366
|
|
|
141
367
|
// src/stack.tsx
|
|
142
368
|
import { ark as ark15 } from "@ark-ui/react/factory";
|
|
143
|
-
import { stackBase, hstackBase, vstackBase, cn as
|
|
144
|
-
import { jsx as
|
|
369
|
+
import { stackBase, hstackBase, vstackBase, cn as cn20 } from "@cloudvoyant/helix";
|
|
370
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
145
371
|
function Stack({ className, ...props }) {
|
|
146
|
-
return /* @__PURE__ */
|
|
372
|
+
return /* @__PURE__ */ jsx20(ark15.div, { className: cn20(stackBase, className), ...props });
|
|
147
373
|
}
|
|
148
374
|
function HStack({ className, ...props }) {
|
|
149
|
-
return /* @__PURE__ */
|
|
375
|
+
return /* @__PURE__ */ jsx20(ark15.div, { className: cn20(hstackBase, className), ...props });
|
|
150
376
|
}
|
|
151
377
|
function VStack({ className, ...props }) {
|
|
152
|
-
return /* @__PURE__ */
|
|
378
|
+
return /* @__PURE__ */ jsx20(ark15.div, { className: cn20(vstackBase, className), ...props });
|
|
153
379
|
}
|
|
154
380
|
|
|
155
381
|
// src/scroll.tsx
|
|
@@ -168,9 +394,9 @@ import {
|
|
|
168
394
|
scrollScrollbarBase,
|
|
169
395
|
scrollThumbBase,
|
|
170
396
|
scrollCornerBase,
|
|
171
|
-
cn as
|
|
397
|
+
cn as cn21
|
|
172
398
|
} from "@cloudvoyant/helix";
|
|
173
|
-
import { Fragment, jsx as
|
|
399
|
+
import { Fragment, jsx as jsx21, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
174
400
|
function Scroll({
|
|
175
401
|
className,
|
|
176
402
|
orientation = "vertical",
|
|
@@ -181,12 +407,12 @@ function Scroll({
|
|
|
181
407
|
children,
|
|
182
408
|
...props
|
|
183
409
|
}) {
|
|
184
|
-
return /* @__PURE__ */
|
|
185
|
-
/* @__PURE__ */
|
|
186
|
-
variant === "hidden" ? null : /* @__PURE__ */
|
|
187
|
-
(orientation === "vertical" || orientation === "both") && /* @__PURE__ */
|
|
188
|
-
(orientation === "horizontal" || orientation === "both") && /* @__PURE__ */
|
|
189
|
-
orientation === "both" && /* @__PURE__ */
|
|
410
|
+
return /* @__PURE__ */ jsxs3(ArkRoot, { className: cn21(scrollRootBase, className), ...props, children: [
|
|
411
|
+
/* @__PURE__ */ jsx21(ArkViewport, { className: cn21(scrollViewportBase, viewportClassName), children: /* @__PURE__ */ jsx21(ArkContent, { className: cn21(scrollContentBase, contentClassName), children }) }),
|
|
412
|
+
variant === "hidden" ? null : /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
413
|
+
(orientation === "vertical" || orientation === "both") && /* @__PURE__ */ jsx21(ArkScrollbar, { orientation: "vertical", className: scrollScrollbarBase, children: /* @__PURE__ */ jsx21(ArkThumb, { className: cn21(scrollThumbBase, thumbClassName) }) }),
|
|
414
|
+
(orientation === "horizontal" || orientation === "both") && /* @__PURE__ */ jsx21(ArkScrollbar, { orientation: "horizontal", className: scrollScrollbarBase, children: /* @__PURE__ */ jsx21(ArkThumb, { className: cn21(scrollThumbBase, thumbClassName) }) }),
|
|
415
|
+
orientation === "both" && /* @__PURE__ */ jsx21(ArkCorner, { className: scrollCornerBase })
|
|
190
416
|
] })
|
|
191
417
|
] });
|
|
192
418
|
}
|
|
@@ -201,11 +427,11 @@ import {
|
|
|
201
427
|
pageContentBase,
|
|
202
428
|
pageFooterBase,
|
|
203
429
|
pageSectionBase,
|
|
204
|
-
cn as
|
|
430
|
+
cn as cn22
|
|
205
431
|
} from "@cloudvoyant/helix";
|
|
206
|
-
import { jsx as
|
|
432
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
207
433
|
function Page({ variant = "default", className, children, ...props }) {
|
|
208
|
-
return /* @__PURE__ */
|
|
434
|
+
return /* @__PURE__ */ jsx22(ark16.div, { "data-slot": "page", className: cn22(pageVariants({ variant }), className), ...props, children });
|
|
209
435
|
}
|
|
210
436
|
function PageGutter({
|
|
211
437
|
side = "left",
|
|
@@ -215,22 +441,22 @@ function PageGutter({
|
|
|
215
441
|
children,
|
|
216
442
|
...props
|
|
217
443
|
}) {
|
|
218
|
-
return /* @__PURE__ */
|
|
444
|
+
return /* @__PURE__ */ jsx22(
|
|
219
445
|
ark16.div,
|
|
220
446
|
{
|
|
221
447
|
"data-slot": "page-gutter-area",
|
|
222
|
-
className:
|
|
223
|
-
children: /* @__PURE__ */
|
|
448
|
+
className: cn22(pageGutterAreaBase, side === "right" && "[grid-area:right]"),
|
|
449
|
+
children: /* @__PURE__ */ jsx22(
|
|
224
450
|
ark16.div,
|
|
225
451
|
{
|
|
226
452
|
"data-slot": "page-gutter",
|
|
227
|
-
className:
|
|
453
|
+
className: cn22(pageGutterVariants({ side }), className),
|
|
228
454
|
...props,
|
|
229
|
-
children: /* @__PURE__ */
|
|
455
|
+
children: /* @__PURE__ */ jsx22(
|
|
230
456
|
ark16.div,
|
|
231
457
|
{
|
|
232
458
|
"data-slot": "page-gutter-content",
|
|
233
|
-
className:
|
|
459
|
+
className: cn22(pageGutterContentVariants({ align }), contentClassName),
|
|
234
460
|
children
|
|
235
461
|
}
|
|
236
462
|
)
|
|
@@ -240,13 +466,13 @@ function PageGutter({
|
|
|
240
466
|
);
|
|
241
467
|
}
|
|
242
468
|
function PageContent({ className, children, ...props }) {
|
|
243
|
-
return /* @__PURE__ */
|
|
469
|
+
return /* @__PURE__ */ jsx22(ark16.main, { "data-slot": "page-content", className: cn22(pageContentBase, className), ...props, children });
|
|
244
470
|
}
|
|
245
471
|
function PageFooter({ className, children, ...props }) {
|
|
246
|
-
return /* @__PURE__ */
|
|
472
|
+
return /* @__PURE__ */ jsx22(ark16.footer, { "data-slot": "page-footer", className: cn22(pageFooterBase, className), ...props, children });
|
|
247
473
|
}
|
|
248
474
|
function PageSection({ className, children, ...props }) {
|
|
249
|
-
return /* @__PURE__ */
|
|
475
|
+
return /* @__PURE__ */ jsx22(ark16.section, { "data-slot": "page-section", className: cn22(pageSectionBase, className), ...props, children });
|
|
250
476
|
}
|
|
251
477
|
|
|
252
478
|
// src/splitter.tsx
|
|
@@ -262,18 +488,18 @@ import {
|
|
|
262
488
|
splitterResizeTriggerBase,
|
|
263
489
|
splitterResizeTriggerSeparatorBase,
|
|
264
490
|
splitterResizeTriggerIndicatorBase,
|
|
265
|
-
cn as
|
|
491
|
+
cn as cn23
|
|
266
492
|
} from "@cloudvoyant/helix";
|
|
267
|
-
import { jsx as
|
|
493
|
+
import { jsx as jsx23, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
268
494
|
function Splitter({ className, ...props }) {
|
|
269
|
-
return /* @__PURE__ */
|
|
495
|
+
return /* @__PURE__ */ jsx23(ArkSplitterRoot, { className: cn23(splitterRootBase, className), ...props });
|
|
270
496
|
}
|
|
271
497
|
function SplitterPanel({ className, ...props }) {
|
|
272
|
-
return /* @__PURE__ */
|
|
498
|
+
return /* @__PURE__ */ jsx23(ArkSplitterPanel, { className: cn23(splitterPanelBase, className), ...props });
|
|
273
499
|
}
|
|
274
500
|
function SplitterResizeTrigger({ className, children, ...props }) {
|
|
275
|
-
return /* @__PURE__ */
|
|
276
|
-
/* @__PURE__ */
|
|
501
|
+
return /* @__PURE__ */ jsxs4(ArkSplitterResizeTrigger, { className: cn23(splitterResizeTriggerBase, className), ...props, children: [
|
|
502
|
+
/* @__PURE__ */ jsx23("span", { "aria-hidden": true, "data-part": "separator", className: splitterResizeTriggerSeparatorBase }),
|
|
277
503
|
children
|
|
278
504
|
] });
|
|
279
505
|
}
|
|
@@ -281,10 +507,10 @@ function SplitterResizeTriggerIndicator({
|
|
|
281
507
|
className,
|
|
282
508
|
...props
|
|
283
509
|
}) {
|
|
284
|
-
return /* @__PURE__ */
|
|
510
|
+
return /* @__PURE__ */ jsx23(
|
|
285
511
|
ArkSplitterResizeTriggerIndicator,
|
|
286
512
|
{
|
|
287
|
-
className:
|
|
513
|
+
className: cn23(splitterResizeTriggerIndicatorBase, className),
|
|
288
514
|
...props
|
|
289
515
|
}
|
|
290
516
|
);
|
|
@@ -292,7 +518,7 @@ function SplitterResizeTriggerIndicator({
|
|
|
292
518
|
|
|
293
519
|
// src/sidebar/Provider.tsx
|
|
294
520
|
import * as React2 from "react";
|
|
295
|
-
import { SIDEBAR_WIDTH, SIDEBAR_WIDTH_ICON, SIDEBAR_KEYBOARD_SHORTCUT, sidebarStyles, cn as
|
|
521
|
+
import { SIDEBAR_WIDTH, SIDEBAR_WIDTH_ICON, SIDEBAR_KEYBOARD_SHORTCUT, sidebarStyles, cn as cn24 } from "@cloudvoyant/helix";
|
|
296
522
|
|
|
297
523
|
// src/sidebar/context.ts
|
|
298
524
|
import * as React from "react";
|
|
@@ -306,7 +532,7 @@ function useSidebar() {
|
|
|
306
532
|
}
|
|
307
533
|
|
|
308
534
|
// src/sidebar/Provider.tsx
|
|
309
|
-
import { jsx as
|
|
535
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
310
536
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
311
537
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
312
538
|
function useIsMobile() {
|
|
@@ -385,7 +611,7 @@ function Provider({
|
|
|
385
611
|
}),
|
|
386
612
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
387
613
|
);
|
|
388
|
-
return /* @__PURE__ */
|
|
614
|
+
return /* @__PURE__ */ jsx24(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx24(
|
|
389
615
|
Row,
|
|
390
616
|
{
|
|
391
617
|
"data-slot": "sidebar-wrapper",
|
|
@@ -394,7 +620,7 @@ function Provider({
|
|
|
394
620
|
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
395
621
|
...style
|
|
396
622
|
},
|
|
397
|
-
className:
|
|
623
|
+
className: cn24(sidebarStyles.wrapperClass, className),
|
|
398
624
|
...props,
|
|
399
625
|
children
|
|
400
626
|
}
|
|
@@ -411,8 +637,8 @@ import {
|
|
|
411
637
|
DrawerDescription,
|
|
412
638
|
DrawerCloseTrigger
|
|
413
639
|
} from "@ark-ui/react/drawer";
|
|
414
|
-
import { SIDEBAR_WIDTH_MOBILE, sidebarStyles as sidebarStyles2, cn as
|
|
415
|
-
import { jsx as
|
|
640
|
+
import { SIDEBAR_WIDTH_MOBILE, sidebarStyles as sidebarStyles2, cn as cn25 } from "@cloudvoyant/helix";
|
|
641
|
+
import { jsx as jsx25, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
416
642
|
function Root({
|
|
417
643
|
side = "left",
|
|
418
644
|
variant = "sidebar",
|
|
@@ -423,39 +649,39 @@ function Root({
|
|
|
423
649
|
}) {
|
|
424
650
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
425
651
|
if (collapsible === "none") {
|
|
426
|
-
return /* @__PURE__ */
|
|
652
|
+
return /* @__PURE__ */ jsx25(
|
|
427
653
|
Col,
|
|
428
654
|
{
|
|
429
655
|
"data-slot": "sidebar",
|
|
430
656
|
"data-sidebar": "sidebar",
|
|
431
|
-
className:
|
|
657
|
+
className: cn25("h-full w-(--sidebar-width) bg-sidebar text-sidebar-foreground", className),
|
|
432
658
|
...props,
|
|
433
659
|
children
|
|
434
660
|
}
|
|
435
661
|
);
|
|
436
662
|
}
|
|
437
663
|
if (isMobile) {
|
|
438
|
-
return /* @__PURE__ */
|
|
664
|
+
return /* @__PURE__ */ jsxs5(
|
|
439
665
|
DrawerRoot,
|
|
440
666
|
{
|
|
441
667
|
open: openMobile,
|
|
442
668
|
onOpenChange: (details) => setOpenMobile(details.open),
|
|
443
669
|
...props,
|
|
444
670
|
children: [
|
|
445
|
-
/* @__PURE__ */
|
|
446
|
-
/* @__PURE__ */
|
|
671
|
+
/* @__PURE__ */ jsx25(DrawerBackdrop, {}),
|
|
672
|
+
/* @__PURE__ */ jsx25(DrawerPositioner, { className: "w-(--sidebar-width)", children: /* @__PURE__ */ jsxs5(
|
|
447
673
|
DrawerContent,
|
|
448
674
|
{
|
|
449
675
|
"data-sidebar": "sidebar",
|
|
450
676
|
"data-slot": "sidebar",
|
|
451
677
|
"data-mobile": "true",
|
|
452
|
-
className:
|
|
678
|
+
className: cn25("w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground", className),
|
|
453
679
|
style: { "--sidebar-width": SIDEBAR_WIDTH_MOBILE },
|
|
454
680
|
children: [
|
|
455
|
-
/* @__PURE__ */
|
|
456
|
-
/* @__PURE__ */
|
|
457
|
-
/* @__PURE__ */
|
|
458
|
-
/* @__PURE__ */
|
|
681
|
+
/* @__PURE__ */ jsx25(DrawerTitle, { className: "sr-only", children: "Sidebar" }),
|
|
682
|
+
/* @__PURE__ */ jsx25(DrawerDescription, { className: "sr-only", children: "Displays the mobile sidebar." }),
|
|
683
|
+
/* @__PURE__ */ jsx25(DrawerCloseTrigger, { className: "hidden" }),
|
|
684
|
+
/* @__PURE__ */ jsx25(Col, { className: "h-full w-full", children })
|
|
459
685
|
]
|
|
460
686
|
}
|
|
461
687
|
) })
|
|
@@ -463,7 +689,7 @@ function Root({
|
|
|
463
689
|
}
|
|
464
690
|
);
|
|
465
691
|
}
|
|
466
|
-
return /* @__PURE__ */
|
|
692
|
+
return /* @__PURE__ */ jsxs5(
|
|
467
693
|
"div",
|
|
468
694
|
{
|
|
469
695
|
className: "group peer hidden text-sidebar-foreground md:block",
|
|
@@ -473,35 +699,35 @@ function Root({
|
|
|
473
699
|
"data-side": side,
|
|
474
700
|
"data-slot": "sidebar",
|
|
475
701
|
children: [
|
|
476
|
-
/* @__PURE__ */
|
|
702
|
+
/* @__PURE__ */ jsx25(
|
|
477
703
|
"div",
|
|
478
704
|
{
|
|
479
705
|
"data-slot": "sidebar-gap",
|
|
480
|
-
className:
|
|
706
|
+
className: cn25(
|
|
481
707
|
sidebarStyles2.gapClass,
|
|
482
708
|
side === "right" && "rotate-180",
|
|
483
709
|
variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)"
|
|
484
710
|
)
|
|
485
711
|
}
|
|
486
712
|
),
|
|
487
|
-
/* @__PURE__ */
|
|
713
|
+
/* @__PURE__ */ jsx25(
|
|
488
714
|
"div",
|
|
489
715
|
{
|
|
490
716
|
"data-slot": "sidebar-container",
|
|
491
|
-
className:
|
|
717
|
+
className: cn25(
|
|
492
718
|
sidebarStyles2.containerClass,
|
|
493
719
|
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)]",
|
|
494
720
|
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",
|
|
495
721
|
className
|
|
496
722
|
),
|
|
497
723
|
...props,
|
|
498
|
-
children: /* @__PURE__ */
|
|
724
|
+
children: /* @__PURE__ */ jsx25(
|
|
499
725
|
"div",
|
|
500
726
|
{
|
|
501
727
|
"data-sidebar": "sidebar",
|
|
502
728
|
"data-slot": "sidebar-inner",
|
|
503
729
|
"data-variant": variant,
|
|
504
|
-
className:
|
|
730
|
+
className: cn25(sidebarStyles2.innerClass),
|
|
505
731
|
children
|
|
506
732
|
}
|
|
507
733
|
)
|
|
@@ -513,30 +739,30 @@ function Root({
|
|
|
513
739
|
}
|
|
514
740
|
|
|
515
741
|
// src/sidebar/Header.tsx
|
|
516
|
-
import { sidebarStyles as sidebarStyles3, cn as
|
|
517
|
-
import { jsx as
|
|
742
|
+
import { sidebarStyles as sidebarStyles3, cn as cn26 } from "@cloudvoyant/helix";
|
|
743
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
518
744
|
function Header({ className, ...props }) {
|
|
519
|
-
return /* @__PURE__ */
|
|
745
|
+
return /* @__PURE__ */ jsx26(
|
|
520
746
|
Col,
|
|
521
747
|
{
|
|
522
748
|
"data-slot": "sidebar-header",
|
|
523
749
|
"data-sidebar": "header",
|
|
524
|
-
className:
|
|
750
|
+
className: cn26(sidebarStyles3.headerClass, className),
|
|
525
751
|
...props
|
|
526
752
|
}
|
|
527
753
|
);
|
|
528
754
|
}
|
|
529
755
|
|
|
530
756
|
// src/sidebar/Footer.tsx
|
|
531
|
-
import { sidebarStyles as sidebarStyles4, cn as
|
|
532
|
-
import { jsx as
|
|
757
|
+
import { sidebarStyles as sidebarStyles4, cn as cn27 } from "@cloudvoyant/helix";
|
|
758
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
533
759
|
function Footer({ className, ...props }) {
|
|
534
|
-
return /* @__PURE__ */
|
|
760
|
+
return /* @__PURE__ */ jsx27(
|
|
535
761
|
Col,
|
|
536
762
|
{
|
|
537
763
|
"data-slot": "sidebar-footer",
|
|
538
764
|
"data-sidebar": "footer",
|
|
539
|
-
className:
|
|
765
|
+
className: cn27(sidebarStyles4.footerClass, className),
|
|
540
766
|
...props
|
|
541
767
|
}
|
|
542
768
|
);
|
|
@@ -544,59 +770,59 @@ function Footer({ className, ...props }) {
|
|
|
544
770
|
|
|
545
771
|
// src/sidebar/Separator.tsx
|
|
546
772
|
import { ark as ark17 } from "@ark-ui/react/factory";
|
|
547
|
-
import { sidebarStyles as sidebarStyles5, cn as
|
|
548
|
-
import { jsx as
|
|
773
|
+
import { sidebarStyles as sidebarStyles5, cn as cn28 } from "@cloudvoyant/helix";
|
|
774
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
549
775
|
function Separator({ className, ...props }) {
|
|
550
|
-
return /* @__PURE__ */
|
|
776
|
+
return /* @__PURE__ */ jsx28(
|
|
551
777
|
ark17.div,
|
|
552
778
|
{
|
|
553
779
|
"data-slot": "sidebar-separator",
|
|
554
780
|
"data-sidebar": "separator",
|
|
555
781
|
role: "separator",
|
|
556
|
-
className:
|
|
782
|
+
className: cn28(sidebarStyles5.separatorClass, className),
|
|
557
783
|
...props
|
|
558
784
|
}
|
|
559
785
|
);
|
|
560
786
|
}
|
|
561
787
|
|
|
562
788
|
// src/sidebar/Content.tsx
|
|
563
|
-
import { sidebarStyles as sidebarStyles6, cn as
|
|
564
|
-
import { jsx as
|
|
789
|
+
import { sidebarStyles as sidebarStyles6, cn as cn29 } from "@cloudvoyant/helix";
|
|
790
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
565
791
|
function Content({ className, ...props }) {
|
|
566
|
-
return /* @__PURE__ */
|
|
792
|
+
return /* @__PURE__ */ jsx29(
|
|
567
793
|
Col,
|
|
568
794
|
{
|
|
569
795
|
"data-slot": "sidebar-content",
|
|
570
796
|
"data-sidebar": "content",
|
|
571
|
-
className:
|
|
797
|
+
className: cn29(sidebarStyles6.contentClass, className),
|
|
572
798
|
...props
|
|
573
799
|
}
|
|
574
800
|
);
|
|
575
801
|
}
|
|
576
802
|
|
|
577
803
|
// src/sidebar/Group.tsx
|
|
578
|
-
import { sidebarStyles as sidebarStyles7, cn as
|
|
579
|
-
import { jsx as
|
|
804
|
+
import { sidebarStyles as sidebarStyles7, cn as cn30 } from "@cloudvoyant/helix";
|
|
805
|
+
import { jsx as jsx30, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
580
806
|
function Group({ label, className, children, ...props }) {
|
|
581
|
-
return /* @__PURE__ */
|
|
582
|
-
label && /* @__PURE__ */
|
|
583
|
-
/* @__PURE__ */
|
|
807
|
+
return /* @__PURE__ */ jsxs6(Col, { "data-slot": "sidebar-group", "data-sidebar": "group", className: cn30(sidebarStyles7.groupClass, className), ...props, children: [
|
|
808
|
+
label && /* @__PURE__ */ jsx30("div", { "data-slot": "sidebar-group-label", "data-sidebar": "group-label", className: cn30(sidebarStyles7.groupLabelClass), children: label }),
|
|
809
|
+
/* @__PURE__ */ jsx30("div", { "data-slot": "sidebar-group-content", "data-sidebar": "group-content", className: cn30(sidebarStyles7.groupContentClass), children })
|
|
584
810
|
] });
|
|
585
811
|
}
|
|
586
812
|
|
|
587
813
|
// src/sidebar/GroupAction.tsx
|
|
588
814
|
import { ark as ark18 } from "@ark-ui/react/factory";
|
|
589
|
-
import { sidebarStyles as sidebarStyles8, cn as
|
|
590
|
-
import { jsx as
|
|
815
|
+
import { sidebarStyles as sidebarStyles8, cn as cn31 } from "@cloudvoyant/helix";
|
|
816
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
591
817
|
function GroupAction({ className, asChild = false, ...props }) {
|
|
592
|
-
return /* @__PURE__ */
|
|
818
|
+
return /* @__PURE__ */ jsx31(
|
|
593
819
|
ark18.button,
|
|
594
820
|
{
|
|
595
821
|
"data-slot": "sidebar-group-action",
|
|
596
822
|
"data-sidebar": "group-action",
|
|
597
823
|
asChild,
|
|
598
824
|
type: "button",
|
|
599
|
-
className:
|
|
825
|
+
className: cn31(sidebarStyles8.groupActionClass, className),
|
|
600
826
|
...props
|
|
601
827
|
}
|
|
602
828
|
);
|
|
@@ -604,15 +830,15 @@ function GroupAction({ className, asChild = false, ...props }) {
|
|
|
604
830
|
|
|
605
831
|
// src/sidebar/Menu.tsx
|
|
606
832
|
import { ark as ark19 } from "@ark-ui/react/factory";
|
|
607
|
-
import { sidebarStyles as sidebarStyles9, cn as
|
|
608
|
-
import { jsx as
|
|
833
|
+
import { sidebarStyles as sidebarStyles9, cn as cn32 } from "@cloudvoyant/helix";
|
|
834
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
609
835
|
function Menu({ className, ...props }) {
|
|
610
|
-
return /* @__PURE__ */
|
|
836
|
+
return /* @__PURE__ */ jsx32(
|
|
611
837
|
ark19.ul,
|
|
612
838
|
{
|
|
613
839
|
"data-slot": "sidebar-menu",
|
|
614
840
|
"data-sidebar": "menu",
|
|
615
|
-
className:
|
|
841
|
+
className: cn32(sidebarStyles9.menuClass, className),
|
|
616
842
|
...props
|
|
617
843
|
}
|
|
618
844
|
);
|
|
@@ -620,15 +846,15 @@ function Menu({ className, ...props }) {
|
|
|
620
846
|
|
|
621
847
|
// src/sidebar/MenuItem.tsx
|
|
622
848
|
import { ark as ark20 } from "@ark-ui/react/factory";
|
|
623
|
-
import { sidebarStyles as sidebarStyles10, cn as
|
|
624
|
-
import { jsx as
|
|
849
|
+
import { sidebarStyles as sidebarStyles10, cn as cn33 } from "@cloudvoyant/helix";
|
|
850
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
625
851
|
function MenuItem({ className, ...props }) {
|
|
626
|
-
return /* @__PURE__ */
|
|
852
|
+
return /* @__PURE__ */ jsx33(
|
|
627
853
|
ark20.li,
|
|
628
854
|
{
|
|
629
855
|
"data-slot": "sidebar-menu-item",
|
|
630
856
|
"data-sidebar": "menu-item",
|
|
631
|
-
className:
|
|
857
|
+
className: cn33(sidebarStyles10.menuItemClass, className),
|
|
632
858
|
...props
|
|
633
859
|
}
|
|
634
860
|
);
|
|
@@ -638,12 +864,12 @@ function MenuItem({ className, ...props }) {
|
|
|
638
864
|
import { ark as ark21 } from "@ark-ui/react/factory";
|
|
639
865
|
import {
|
|
640
866
|
TooltipRoot,
|
|
641
|
-
TooltipTrigger,
|
|
867
|
+
TooltipTrigger as TooltipTrigger2,
|
|
642
868
|
TooltipPositioner,
|
|
643
|
-
TooltipContent as
|
|
869
|
+
TooltipContent as ArkTooltipContent2
|
|
644
870
|
} from "@ark-ui/react/tooltip";
|
|
645
|
-
import { sidebarMenuButtonVariants, sidebarStyles as sidebarStyles11, cn as
|
|
646
|
-
import { jsx as
|
|
871
|
+
import { sidebarMenuButtonVariants, sidebarStyles as sidebarStyles11, cn as cn34 } from "@cloudvoyant/helix";
|
|
872
|
+
import { jsx as jsx34, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
647
873
|
function MenuButton({
|
|
648
874
|
asChild = false,
|
|
649
875
|
isActive = false,
|
|
@@ -655,7 +881,7 @@ function MenuButton({
|
|
|
655
881
|
...props
|
|
656
882
|
}) {
|
|
657
883
|
const { isMobile, state } = useSidebar();
|
|
658
|
-
const button = /* @__PURE__ */
|
|
884
|
+
const button = /* @__PURE__ */ jsx34(
|
|
659
885
|
ark21.button,
|
|
660
886
|
{
|
|
661
887
|
"data-slot": "sidebar-menu-button",
|
|
@@ -664,7 +890,7 @@ function MenuButton({
|
|
|
664
890
|
"data-active": isActive,
|
|
665
891
|
asChild,
|
|
666
892
|
type: "button",
|
|
667
|
-
className:
|
|
893
|
+
className: cn34(sidebarMenuButtonVariants({ variant, size }), className),
|
|
668
894
|
...props,
|
|
669
895
|
children
|
|
670
896
|
}
|
|
@@ -673,41 +899,41 @@ function MenuButton({
|
|
|
673
899
|
return button;
|
|
674
900
|
}
|
|
675
901
|
const tooltipContent = typeof tooltip === "string" ? { children: tooltip } : tooltip;
|
|
676
|
-
return /* @__PURE__ */
|
|
677
|
-
/* @__PURE__ */
|
|
678
|
-
/* @__PURE__ */
|
|
902
|
+
return /* @__PURE__ */ jsxs7(TooltipRoot, { openDelay: 0, positioning: { placement: "right", gutter: 8 }, children: [
|
|
903
|
+
/* @__PURE__ */ jsx34(TooltipTrigger2, { asChild: true, children: button }),
|
|
904
|
+
/* @__PURE__ */ jsx34(TooltipPositioner, { children: /* @__PURE__ */ jsx34(ArkTooltipContent2, { className: cn34(sidebarStyles11.tooltipContentClass), ...tooltipContent }) })
|
|
679
905
|
] });
|
|
680
906
|
}
|
|
681
907
|
|
|
682
908
|
// src/sidebar/MenuLink.tsx
|
|
683
|
-
import { sidebarStyles as sidebarStyles12, cn as
|
|
684
|
-
import { Fragment as Fragment2, jsx as
|
|
909
|
+
import { sidebarStyles as sidebarStyles12, cn as cn35 } from "@cloudvoyant/helix";
|
|
910
|
+
import { Fragment as Fragment2, jsx as jsx35, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
685
911
|
function MenuLink({ icon, href, onClick, isActive, variant, size, tooltip, className, children }) {
|
|
686
|
-
const content = /* @__PURE__ */
|
|
912
|
+
const content = /* @__PURE__ */ jsxs8(Fragment2, { children: [
|
|
687
913
|
icon,
|
|
688
|
-
children != null && /* @__PURE__ */
|
|
914
|
+
children != null && /* @__PURE__ */ jsx35("span", { children })
|
|
689
915
|
] });
|
|
690
|
-
return /* @__PURE__ */
|
|
916
|
+
return /* @__PURE__ */ jsx35("li", { "data-slot": "sidebar-menu-item", "data-sidebar": "menu-item", className: cn35(sidebarStyles12.menuItemClass), children: href != null ? /* @__PURE__ */ jsx35(MenuButton, { asChild: true, isActive, variant, size, tooltip, className, children: /* @__PURE__ */ jsx35("a", { href, onClick, children: content }) }) : /* @__PURE__ */ jsx35(MenuButton, { isActive, variant, size, tooltip, className, onClick, children: content }) });
|
|
691
917
|
}
|
|
692
918
|
|
|
693
919
|
// src/sidebar/MenuAction.tsx
|
|
694
920
|
import { ark as ark22 } from "@ark-ui/react/factory";
|
|
695
|
-
import { sidebarStyles as sidebarStyles13, cn as
|
|
696
|
-
import { jsx as
|
|
921
|
+
import { sidebarStyles as sidebarStyles13, cn as cn36 } from "@cloudvoyant/helix";
|
|
922
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
697
923
|
function MenuAction({
|
|
698
924
|
className,
|
|
699
925
|
asChild = false,
|
|
700
926
|
showOnHover = false,
|
|
701
927
|
...props
|
|
702
928
|
}) {
|
|
703
|
-
return /* @__PURE__ */
|
|
929
|
+
return /* @__PURE__ */ jsx36(
|
|
704
930
|
ark22.button,
|
|
705
931
|
{
|
|
706
932
|
"data-slot": "sidebar-menu-action",
|
|
707
933
|
"data-sidebar": "menu-action",
|
|
708
934
|
asChild,
|
|
709
935
|
type: "button",
|
|
710
|
-
className:
|
|
936
|
+
className: cn36(
|
|
711
937
|
sidebarStyles13.menuActionClass,
|
|
712
938
|
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",
|
|
713
939
|
className
|
|
@@ -719,15 +945,15 @@ function MenuAction({
|
|
|
719
945
|
|
|
720
946
|
// src/sidebar/MenuBadge.tsx
|
|
721
947
|
import { ark as ark23 } from "@ark-ui/react/factory";
|
|
722
|
-
import { sidebarStyles as sidebarStyles14, cn as
|
|
723
|
-
import { jsx as
|
|
948
|
+
import { sidebarStyles as sidebarStyles14, cn as cn37 } from "@cloudvoyant/helix";
|
|
949
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
724
950
|
function MenuBadge({ className, ...props }) {
|
|
725
|
-
return /* @__PURE__ */
|
|
951
|
+
return /* @__PURE__ */ jsx37(
|
|
726
952
|
ark23.div,
|
|
727
953
|
{
|
|
728
954
|
"data-slot": "sidebar-menu-badge",
|
|
729
955
|
"data-sidebar": "menu-badge",
|
|
730
|
-
className:
|
|
956
|
+
className: cn37(sidebarStyles14.menuBadgeClass, className),
|
|
731
957
|
...props
|
|
732
958
|
}
|
|
733
959
|
);
|
|
@@ -736,26 +962,26 @@ function MenuBadge({ className, ...props }) {
|
|
|
736
962
|
// src/sidebar/MenuSkeleton.tsx
|
|
737
963
|
import * as React3 from "react";
|
|
738
964
|
import { ark as ark24 } from "@ark-ui/react/factory";
|
|
739
|
-
import { sidebarStyles as sidebarStyles15, cn as
|
|
740
|
-
import { jsx as
|
|
965
|
+
import { sidebarStyles as sidebarStyles15, cn as cn38 } from "@cloudvoyant/helix";
|
|
966
|
+
import { jsx as jsx38, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
741
967
|
function MenuSkeleton({ className, showIcon = false, ...props }) {
|
|
742
968
|
const width = React3.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
743
|
-
return /* @__PURE__ */
|
|
969
|
+
return /* @__PURE__ */ jsxs9(
|
|
744
970
|
ark24.div,
|
|
745
971
|
{
|
|
746
972
|
"data-slot": "sidebar-menu-skeleton",
|
|
747
973
|
"data-sidebar": "menu-skeleton",
|
|
748
|
-
className:
|
|
974
|
+
className: cn38(sidebarStyles15.menuSkeletonClass, className),
|
|
749
975
|
...props,
|
|
750
976
|
children: [
|
|
751
|
-
showIcon && /* @__PURE__ */
|
|
977
|
+
showIcon && /* @__PURE__ */ jsx38(
|
|
752
978
|
ark24.div,
|
|
753
979
|
{
|
|
754
980
|
className: "size-4 shrink-0 animate-pulse rounded-md bg-sidebar-accent",
|
|
755
981
|
"data-sidebar": "menu-skeleton-icon"
|
|
756
982
|
}
|
|
757
983
|
),
|
|
758
|
-
/* @__PURE__ */
|
|
984
|
+
/* @__PURE__ */ jsx38(
|
|
759
985
|
ark24.div,
|
|
760
986
|
{
|
|
761
987
|
className: "h-4 max-w-(--skeleton-width) flex-1 animate-pulse rounded-md bg-sidebar-accent",
|
|
@@ -770,15 +996,15 @@ function MenuSkeleton({ className, showIcon = false, ...props }) {
|
|
|
770
996
|
|
|
771
997
|
// src/sidebar/MenuSub.tsx
|
|
772
998
|
import { ark as ark25 } from "@ark-ui/react/factory";
|
|
773
|
-
import { sidebarStyles as sidebarStyles16, cn as
|
|
774
|
-
import { jsx as
|
|
999
|
+
import { sidebarStyles as sidebarStyles16, cn as cn39 } from "@cloudvoyant/helix";
|
|
1000
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
775
1001
|
function MenuSub({ className, ...props }) {
|
|
776
|
-
return /* @__PURE__ */
|
|
1002
|
+
return /* @__PURE__ */ jsx39(
|
|
777
1003
|
ark25.ul,
|
|
778
1004
|
{
|
|
779
1005
|
"data-slot": "sidebar-menu-sub",
|
|
780
1006
|
"data-sidebar": "menu-sub",
|
|
781
|
-
className:
|
|
1007
|
+
className: cn39(sidebarStyles16.menuSubClass, className),
|
|
782
1008
|
...props
|
|
783
1009
|
}
|
|
784
1010
|
);
|
|
@@ -786,15 +1012,15 @@ function MenuSub({ className, ...props }) {
|
|
|
786
1012
|
|
|
787
1013
|
// src/sidebar/MenuSubItem.tsx
|
|
788
1014
|
import { ark as ark26 } from "@ark-ui/react/factory";
|
|
789
|
-
import { sidebarStyles as sidebarStyles17, cn as
|
|
790
|
-
import { jsx as
|
|
1015
|
+
import { sidebarStyles as sidebarStyles17, cn as cn40 } from "@cloudvoyant/helix";
|
|
1016
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
791
1017
|
function MenuSubItem({ className, ...props }) {
|
|
792
|
-
return /* @__PURE__ */
|
|
1018
|
+
return /* @__PURE__ */ jsx40(
|
|
793
1019
|
ark26.li,
|
|
794
1020
|
{
|
|
795
1021
|
"data-slot": "sidebar-menu-sub-item",
|
|
796
1022
|
"data-sidebar": "menu-sub-item",
|
|
797
|
-
className:
|
|
1023
|
+
className: cn40(sidebarStyles17.menuSubItemClass, className),
|
|
798
1024
|
...props
|
|
799
1025
|
}
|
|
800
1026
|
);
|
|
@@ -802,8 +1028,8 @@ function MenuSubItem({ className, ...props }) {
|
|
|
802
1028
|
|
|
803
1029
|
// src/sidebar/MenuSubButton.tsx
|
|
804
1030
|
import { ark as ark27 } from "@ark-ui/react/factory";
|
|
805
|
-
import { sidebarStyles as sidebarStyles18, cn as
|
|
806
|
-
import { jsx as
|
|
1031
|
+
import { sidebarStyles as sidebarStyles18, cn as cn41 } from "@cloudvoyant/helix";
|
|
1032
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
807
1033
|
function MenuSubButton({
|
|
808
1034
|
asChild = false,
|
|
809
1035
|
size = "md",
|
|
@@ -811,7 +1037,7 @@ function MenuSubButton({
|
|
|
811
1037
|
className,
|
|
812
1038
|
...props
|
|
813
1039
|
}) {
|
|
814
|
-
return /* @__PURE__ */
|
|
1040
|
+
return /* @__PURE__ */ jsx41(
|
|
815
1041
|
ark27.a,
|
|
816
1042
|
{
|
|
817
1043
|
"data-slot": "sidebar-menu-sub-button",
|
|
@@ -819,7 +1045,7 @@ function MenuSubButton({
|
|
|
819
1045
|
"data-size": size,
|
|
820
1046
|
"data-active": isActive,
|
|
821
1047
|
asChild,
|
|
822
|
-
className:
|
|
1048
|
+
className: cn41(sidebarStyles18.menuSubButtonClass, className),
|
|
823
1049
|
...props
|
|
824
1050
|
}
|
|
825
1051
|
);
|
|
@@ -827,18 +1053,18 @@ function MenuSubButton({
|
|
|
827
1053
|
|
|
828
1054
|
// src/sidebar/Trigger.tsx
|
|
829
1055
|
import { ark as ark28 } from "@ark-ui/react/factory";
|
|
830
|
-
import { sidebarStyles as sidebarStyles19, cn as
|
|
831
|
-
import { jsx as
|
|
1056
|
+
import { sidebarStyles as sidebarStyles19, cn as cn42 } from "@cloudvoyant/helix";
|
|
1057
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
832
1058
|
function Trigger({ className, onClick, children, ...props }) {
|
|
833
1059
|
const { toggleSidebar } = useSidebar();
|
|
834
|
-
return /* @__PURE__ */
|
|
1060
|
+
return /* @__PURE__ */ jsx42(
|
|
835
1061
|
ark28.button,
|
|
836
1062
|
{
|
|
837
1063
|
"data-sidebar": "trigger",
|
|
838
1064
|
"data-slot": "sidebar-trigger",
|
|
839
1065
|
type: "button",
|
|
840
1066
|
"aria-label": "Toggle Sidebar",
|
|
841
|
-
className:
|
|
1067
|
+
className: cn42(sidebarStyles19.triggerClass, className),
|
|
842
1068
|
onClick: (event) => {
|
|
843
1069
|
onClick?.(event);
|
|
844
1070
|
toggleSidebar();
|
|
@@ -851,11 +1077,11 @@ function Trigger({ className, onClick, children, ...props }) {
|
|
|
851
1077
|
|
|
852
1078
|
// src/sidebar/Rail.tsx
|
|
853
1079
|
import { ark as ark29 } from "@ark-ui/react/factory";
|
|
854
|
-
import { sidebarStyles as sidebarStyles20, cn as
|
|
855
|
-
import { jsx as
|
|
1080
|
+
import { sidebarStyles as sidebarStyles20, cn as cn43 } from "@cloudvoyant/helix";
|
|
1081
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
856
1082
|
function Rail({ className, ...props }) {
|
|
857
1083
|
const { toggleSidebar } = useSidebar();
|
|
858
|
-
return /* @__PURE__ */
|
|
1084
|
+
return /* @__PURE__ */ jsx43(
|
|
859
1085
|
ark29.button,
|
|
860
1086
|
{
|
|
861
1087
|
"data-sidebar": "rail",
|
|
@@ -865,7 +1091,7 @@ function Rail({ className, ...props }) {
|
|
|
865
1091
|
tabIndex: -1,
|
|
866
1092
|
onClick: toggleSidebar,
|
|
867
1093
|
title: "Toggle Sidebar",
|
|
868
|
-
className:
|
|
1094
|
+
className: cn43(sidebarStyles20.railClass, className),
|
|
869
1095
|
...props
|
|
870
1096
|
}
|
|
871
1097
|
);
|
|
@@ -873,23 +1099,23 @@ function Rail({ className, ...props }) {
|
|
|
873
1099
|
|
|
874
1100
|
// src/sidebar/Inset.tsx
|
|
875
1101
|
import { ark as ark30 } from "@ark-ui/react/factory";
|
|
876
|
-
import { sidebarStyles as sidebarStyles21, cn as
|
|
877
|
-
import { jsx as
|
|
1102
|
+
import { sidebarStyles as sidebarStyles21, cn as cn44 } from "@cloudvoyant/helix";
|
|
1103
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
878
1104
|
function Inset({ className, ...props }) {
|
|
879
|
-
return /* @__PURE__ */
|
|
1105
|
+
return /* @__PURE__ */ jsx44(ark30.main, { "data-slot": "sidebar-inset", className: cn44(sidebarStyles21.insetClass, className), ...props });
|
|
880
1106
|
}
|
|
881
1107
|
|
|
882
1108
|
// src/sidebar/Input.tsx
|
|
883
1109
|
import { ark as ark31 } from "@ark-ui/react/factory";
|
|
884
|
-
import { sidebarStyles as sidebarStyles22, cn as
|
|
885
|
-
import { jsx as
|
|
1110
|
+
import { sidebarStyles as sidebarStyles22, cn as cn45 } from "@cloudvoyant/helix";
|
|
1111
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
886
1112
|
function Input({ className, ...props }) {
|
|
887
|
-
return /* @__PURE__ */
|
|
1113
|
+
return /* @__PURE__ */ jsx45(
|
|
888
1114
|
ark31.input,
|
|
889
1115
|
{
|
|
890
1116
|
"data-slot": "sidebar-input",
|
|
891
1117
|
"data-sidebar": "input",
|
|
892
|
-
className:
|
|
1118
|
+
className: cn45(sidebarStyles22.inputClass, className),
|
|
893
1119
|
...props
|
|
894
1120
|
}
|
|
895
1121
|
);
|
|
@@ -912,31 +1138,31 @@ import {
|
|
|
912
1138
|
tabsIndicatorVariants,
|
|
913
1139
|
tabsTriggerBase,
|
|
914
1140
|
tabsContentBase,
|
|
915
|
-
cn as
|
|
1141
|
+
cn as cn46
|
|
916
1142
|
} from "@cloudvoyant/helix";
|
|
917
|
-
import { jsx as
|
|
1143
|
+
import { jsx as jsx46, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
918
1144
|
function Tabs({ className, lazyMount = true, unmountOnExit = true, ...props }) {
|
|
919
|
-
return /* @__PURE__ */
|
|
1145
|
+
return /* @__PURE__ */ jsx46(
|
|
920
1146
|
TabsRoot,
|
|
921
1147
|
{
|
|
922
1148
|
lazyMount,
|
|
923
1149
|
unmountOnExit,
|
|
924
|
-
className:
|
|
1150
|
+
className: cn46(tabsRootBase, className),
|
|
925
1151
|
...props
|
|
926
1152
|
}
|
|
927
1153
|
);
|
|
928
1154
|
}
|
|
929
1155
|
function TabsList({ variant = "default", className, children, ...props }) {
|
|
930
|
-
return /* @__PURE__ */
|
|
1156
|
+
return /* @__PURE__ */ jsxs10(TabList, { className: cn46(tabsListBase, tabsListVariants({ variant }), className), ...props, children: [
|
|
931
1157
|
children,
|
|
932
|
-
/* @__PURE__ */
|
|
1158
|
+
/* @__PURE__ */ jsx46(TabIndicator, { className: cn46(tabsIndicatorBase, tabsIndicatorVariants({ variant })) })
|
|
933
1159
|
] });
|
|
934
1160
|
}
|
|
935
1161
|
function TabsTrigger({ className, ...props }) {
|
|
936
|
-
return /* @__PURE__ */
|
|
1162
|
+
return /* @__PURE__ */ jsx46(TabTrigger, { className: cn46(tabsTriggerBase, className), ...props });
|
|
937
1163
|
}
|
|
938
1164
|
function TabsContent({ className, ...props }) {
|
|
939
|
-
return /* @__PURE__ */
|
|
1165
|
+
return /* @__PURE__ */ jsx46(TabContent, { className: cn46(tabsContentBase, className), ...props });
|
|
940
1166
|
}
|
|
941
1167
|
var useTabs = useTabsContext;
|
|
942
1168
|
|
|
@@ -950,14 +1176,14 @@ import {
|
|
|
950
1176
|
PaginationEllipsis as ArkPaginationEllipsis
|
|
951
1177
|
} from "@ark-ui/react/pagination";
|
|
952
1178
|
import { ark as ark32 } from "@ark-ui/react/factory";
|
|
953
|
-
import { paginationRootBase, paginationTriggerBase, paginationItemBase, paginationEllipsisBase, cn as
|
|
954
|
-
import { jsx as
|
|
1179
|
+
import { paginationRootBase, paginationTriggerBase, paginationItemBase, paginationEllipsisBase, cn as cn47 } from "@cloudvoyant/helix";
|
|
1180
|
+
import { jsx as jsx47, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
955
1181
|
function Pagination({ className, ...props }) {
|
|
956
|
-
return /* @__PURE__ */
|
|
1182
|
+
return /* @__PURE__ */ jsx47(ArkPaginationRoot, { className: cn47(paginationRootBase, className), ...props });
|
|
957
1183
|
}
|
|
958
1184
|
function PaginationPrevious(props) {
|
|
959
|
-
return /* @__PURE__ */
|
|
960
|
-
/* @__PURE__ */
|
|
1185
|
+
return /* @__PURE__ */ jsx47(PaginationPrevTrigger, { asChild: true, ...props, children: /* @__PURE__ */ jsxs11(ark32.button, { className: cn47(paginationTriggerBase), children: [
|
|
1186
|
+
/* @__PURE__ */ jsx47(
|
|
961
1187
|
"svg",
|
|
962
1188
|
{
|
|
963
1189
|
viewBox: "0 0 24 24",
|
|
@@ -967,16 +1193,16 @@ function PaginationPrevious(props) {
|
|
|
967
1193
|
strokeLinecap: "round",
|
|
968
1194
|
strokeLinejoin: "round",
|
|
969
1195
|
"aria-hidden": "true",
|
|
970
|
-
children: /* @__PURE__ */
|
|
1196
|
+
children: /* @__PURE__ */ jsx47("path", { d: "m15 18-6-6 6-6" })
|
|
971
1197
|
}
|
|
972
1198
|
),
|
|
973
1199
|
"Previous"
|
|
974
1200
|
] }) });
|
|
975
1201
|
}
|
|
976
1202
|
function PaginationNext(props) {
|
|
977
|
-
return /* @__PURE__ */
|
|
1203
|
+
return /* @__PURE__ */ jsx47(PaginationNextTrigger, { asChild: true, ...props, children: /* @__PURE__ */ jsxs11(ark32.button, { className: cn47(paginationTriggerBase), children: [
|
|
978
1204
|
"Next",
|
|
979
|
-
/* @__PURE__ */
|
|
1205
|
+
/* @__PURE__ */ jsx47(
|
|
980
1206
|
"svg",
|
|
981
1207
|
{
|
|
982
1208
|
viewBox: "0 0 24 24",
|
|
@@ -986,21 +1212,21 @@ function PaginationNext(props) {
|
|
|
986
1212
|
strokeLinecap: "round",
|
|
987
1213
|
strokeLinejoin: "round",
|
|
988
1214
|
"aria-hidden": "true",
|
|
989
|
-
children: /* @__PURE__ */
|
|
1215
|
+
children: /* @__PURE__ */ jsx47("path", { d: "m9 18 6-6-6-6" })
|
|
990
1216
|
}
|
|
991
1217
|
)
|
|
992
1218
|
] }) });
|
|
993
1219
|
}
|
|
994
1220
|
function PaginationItem({ className, children, ...rest }) {
|
|
995
|
-
return /* @__PURE__ */
|
|
1221
|
+
return /* @__PURE__ */ jsx47(ArkPaginationItem, { asChild: true, ...rest, children: /* @__PURE__ */ jsx47(ark32.button, { className: cn47(paginationItemBase, className), children }) });
|
|
996
1222
|
}
|
|
997
1223
|
function PaginationItems() {
|
|
998
|
-
return /* @__PURE__ */
|
|
999
|
-
(page, index) => page.type === "page" ? /* @__PURE__ */
|
|
1224
|
+
return /* @__PURE__ */ jsx47(ArkPaginationContext, { children: ({ pages }) => pages.map(
|
|
1225
|
+
(page, index) => page.type === "page" ? /* @__PURE__ */ jsx47(PaginationItem, { type: "page", value: page.value, children: page.value }, page.value) : /* @__PURE__ */ jsx47(PaginationEllipsis, { index }, `ellipsis-${index}`)
|
|
1000
1226
|
) });
|
|
1001
1227
|
}
|
|
1002
1228
|
function PaginationEllipsis({ className, ...rest }) {
|
|
1003
|
-
return /* @__PURE__ */
|
|
1229
|
+
return /* @__PURE__ */ jsx47(ArkPaginationEllipsis, { className: cn47(paginationEllipsisBase, className), ...rest, children: /* @__PURE__ */ jsxs11(
|
|
1004
1230
|
"svg",
|
|
1005
1231
|
{
|
|
1006
1232
|
viewBox: "0 0 24 24",
|
|
@@ -1011,9 +1237,9 @@ function PaginationEllipsis({ className, ...rest }) {
|
|
|
1011
1237
|
strokeLinejoin: "round",
|
|
1012
1238
|
"aria-hidden": "true",
|
|
1013
1239
|
children: [
|
|
1014
|
-
/* @__PURE__ */
|
|
1015
|
-
/* @__PURE__ */
|
|
1016
|
-
/* @__PURE__ */
|
|
1240
|
+
/* @__PURE__ */ jsx47("circle", { cx: "12", cy: "12", r: "1" }),
|
|
1241
|
+
/* @__PURE__ */ jsx47("circle", { cx: "19", cy: "12", r: "1" }),
|
|
1242
|
+
/* @__PURE__ */ jsx47("circle", { cx: "5", cy: "12", r: "1" })
|
|
1017
1243
|
]
|
|
1018
1244
|
}
|
|
1019
1245
|
) });
|
|
@@ -1022,16 +1248,16 @@ function PaginationEllipsis({ className, ...rest }) {
|
|
|
1022
1248
|
// src/navbar.tsx
|
|
1023
1249
|
import * as React4 from "react";
|
|
1024
1250
|
import { ark as ark33 } from "@ark-ui/react/factory";
|
|
1025
|
-
import { Portal } from "@ark-ui/react/portal";
|
|
1251
|
+
import { Portal as Portal6 } from "@ark-ui/react/portal";
|
|
1026
1252
|
import { CollapsibleRoot, CollapsibleTrigger, CollapsibleContent } from "@ark-ui/react/collapsible";
|
|
1027
1253
|
import {
|
|
1028
1254
|
DialogRoot,
|
|
1029
|
-
DialogBackdrop,
|
|
1255
|
+
DialogBackdrop as DialogBackdrop2,
|
|
1030
1256
|
DialogPositioner,
|
|
1031
|
-
DialogContent,
|
|
1257
|
+
DialogContent as DialogContent2,
|
|
1032
1258
|
DialogCloseTrigger,
|
|
1033
|
-
DialogTitle,
|
|
1034
|
-
DialogDescription
|
|
1259
|
+
DialogTitle as DialogTitle2,
|
|
1260
|
+
DialogDescription as DialogDescription2
|
|
1035
1261
|
} from "@ark-ui/react/dialog";
|
|
1036
1262
|
import {
|
|
1037
1263
|
NavigationMenuRoot as ArkNavMenuRoot,
|
|
@@ -1070,10 +1296,10 @@ import {
|
|
|
1070
1296
|
navbarMenuViewportPositionerBase,
|
|
1071
1297
|
navbarMenuViewportBase,
|
|
1072
1298
|
navbarMenuIndicatorBase,
|
|
1073
|
-
cn as
|
|
1299
|
+
cn as cn48
|
|
1074
1300
|
} from "@cloudvoyant/helix";
|
|
1075
1301
|
import { navbarMenuTriggerStyle as navbarMenuTriggerStyle2 } from "@cloudvoyant/helix";
|
|
1076
|
-
import { Fragment as Fragment3, jsx as
|
|
1302
|
+
import { Fragment as Fragment3, jsx as jsx48, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1077
1303
|
var SCROLL_THRESHOLD = 24;
|
|
1078
1304
|
function resolveScrollContainer(el) {
|
|
1079
1305
|
for (let n = el; n; n = n.parentElement) {
|
|
@@ -1136,7 +1362,7 @@ function NavbarProvider({
|
|
|
1136
1362
|
}),
|
|
1137
1363
|
[id, open, scrolled, hovered, slots, setSlot]
|
|
1138
1364
|
);
|
|
1139
|
-
return /* @__PURE__ */
|
|
1365
|
+
return /* @__PURE__ */ jsx48(NavbarContext.Provider, { value: contextValue, children });
|
|
1140
1366
|
}
|
|
1141
1367
|
function Navbar({
|
|
1142
1368
|
variant = "sticky",
|
|
@@ -1175,7 +1401,7 @@ function Navbar({
|
|
|
1175
1401
|
el.style.overflow = prev;
|
|
1176
1402
|
};
|
|
1177
1403
|
}, [base.open]);
|
|
1178
|
-
return /* @__PURE__ */
|
|
1404
|
+
return /* @__PURE__ */ jsx48(NavbarContext.Provider, { value, children: /* @__PURE__ */ jsx48(
|
|
1179
1405
|
"header",
|
|
1180
1406
|
{
|
|
1181
1407
|
ref: headerRef,
|
|
@@ -1183,7 +1409,7 @@ function Navbar({
|
|
|
1183
1409
|
"data-scrolled": base.scrolled || void 0,
|
|
1184
1410
|
"data-hidden": hidden || void 0,
|
|
1185
1411
|
"data-shrunk": shrunk || void 0,
|
|
1186
|
-
className:
|
|
1412
|
+
className: cn48(
|
|
1187
1413
|
navbarVariants({ variant, floating }),
|
|
1188
1414
|
navbarContainerBase,
|
|
1189
1415
|
navbarDensityVariants({ density }),
|
|
@@ -1199,11 +1425,11 @@ function Navbar({
|
|
|
1199
1425
|
}
|
|
1200
1426
|
function NavbarActivationArea({ className, children, ...props }) {
|
|
1201
1427
|
const { setHovered } = useNavbar();
|
|
1202
|
-
return /* @__PURE__ */
|
|
1428
|
+
return /* @__PURE__ */ jsx48(
|
|
1203
1429
|
ark33.div,
|
|
1204
1430
|
{
|
|
1205
1431
|
"data-slot": "navbar-activation-area",
|
|
1206
|
-
className:
|
|
1432
|
+
className: cn48(navbarActivationAreaBase, className),
|
|
1207
1433
|
onMouseEnter: () => setHovered(true),
|
|
1208
1434
|
onMouseLeave: () => setHovered(false),
|
|
1209
1435
|
...props,
|
|
@@ -1213,7 +1439,7 @@ function NavbarActivationArea({ className, children, ...props }) {
|
|
|
1213
1439
|
}
|
|
1214
1440
|
function NavbarBrand({ className, children, ...props }) {
|
|
1215
1441
|
useNavbarSlot("brand", children);
|
|
1216
|
-
return /* @__PURE__ */
|
|
1442
|
+
return /* @__PURE__ */ jsx48(ark33.div, { "data-slot": "navbar-brand", className: cn48(navbarBrandBase, className), ...props, children });
|
|
1217
1443
|
}
|
|
1218
1444
|
function NavbarMenu({
|
|
1219
1445
|
placement = "center",
|
|
@@ -1223,21 +1449,21 @@ function NavbarMenu({
|
|
|
1223
1449
|
}) {
|
|
1224
1450
|
const { scrolled, density, variant } = useNavbar();
|
|
1225
1451
|
const menuDensity = density === "compact" || variant === "shrink" && scrolled ? "compact" : "relaxed";
|
|
1226
|
-
return /* @__PURE__ */
|
|
1452
|
+
return /* @__PURE__ */ jsx48(NavbarMenuStyleContext.Provider, { value: { density: menuDensity, variant: "default", inContent: false }, children: /* @__PURE__ */ jsx48(
|
|
1227
1453
|
ark33.div,
|
|
1228
1454
|
{
|
|
1229
1455
|
"data-slot": "navbar-menu",
|
|
1230
1456
|
"data-placement": placement,
|
|
1231
|
-
className:
|
|
1232
|
-
children: /* @__PURE__ */
|
|
1457
|
+
className: cn48(navbarMenuBase, navbarMenuPlacementVariants({ placement }), className),
|
|
1458
|
+
children: /* @__PURE__ */ jsxs12(ArkNavMenuRoot, { "data-density": menuDensity, className: cn48(navbarMenuRootBase), ...props, children: [
|
|
1233
1459
|
children,
|
|
1234
|
-
/* @__PURE__ */
|
|
1460
|
+
/* @__PURE__ */ jsx48(ArkNavMenuViewportPositioner, { className: cn48(navbarMenuViewportPositionerBase), children: /* @__PURE__ */ jsx48(ArkNavMenuViewport, { className: cn48(navbarMenuViewportBase) }) })
|
|
1235
1461
|
] })
|
|
1236
1462
|
}
|
|
1237
1463
|
) });
|
|
1238
1464
|
}
|
|
1239
1465
|
function NavbarMenuList({ className, children, ...props }) {
|
|
1240
|
-
return /* @__PURE__ */
|
|
1466
|
+
return /* @__PURE__ */ jsx48(ArkNavMenuList, { className: cn48(navbarMenuListBase, className), ...props, children });
|
|
1241
1467
|
}
|
|
1242
1468
|
function NavbarMenuItem({
|
|
1243
1469
|
variant = "default",
|
|
@@ -1245,11 +1471,11 @@ function NavbarMenuItem({
|
|
|
1245
1471
|
...props
|
|
1246
1472
|
}) {
|
|
1247
1473
|
const { density } = React4.useContext(NavbarMenuStyleContext);
|
|
1248
|
-
return /* @__PURE__ */
|
|
1474
|
+
return /* @__PURE__ */ jsx48(NavbarMenuStyleContext.Provider, { value: { density, variant, inContent: false }, children: /* @__PURE__ */ jsx48(ArkNavMenuItem, { "data-variant": variant, className: cn48(navbarMenuItemBase, className), ...props }) });
|
|
1249
1475
|
}
|
|
1250
1476
|
function NavbarMenuTrigger({ asChild, className, children, ...props }) {
|
|
1251
1477
|
const { density, variant } = React4.useContext(NavbarMenuStyleContext);
|
|
1252
|
-
const chevron = /* @__PURE__ */
|
|
1478
|
+
const chevron = /* @__PURE__ */ jsx48(
|
|
1253
1479
|
"svg",
|
|
1254
1480
|
{
|
|
1255
1481
|
className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
@@ -1260,36 +1486,36 @@ function NavbarMenuTrigger({ asChild, className, children, ...props }) {
|
|
|
1260
1486
|
strokeWidth: "2",
|
|
1261
1487
|
strokeLinecap: "round",
|
|
1262
1488
|
strokeLinejoin: "round",
|
|
1263
|
-
children: /* @__PURE__ */
|
|
1489
|
+
children: /* @__PURE__ */ jsx48("path", { d: "m6 9 6 6 6-6" })
|
|
1264
1490
|
}
|
|
1265
1491
|
);
|
|
1266
|
-
return /* @__PURE__ */
|
|
1492
|
+
return /* @__PURE__ */ jsx48(ArkNavMenuTrigger, { asChild, className: cn48(navbarMenuTriggerStyle({ density, variant }), className), ...props, children: asChild ? children : /* @__PURE__ */ jsxs12(Fragment3, { children: [
|
|
1267
1493
|
children,
|
|
1268
1494
|
chevron
|
|
1269
1495
|
] }) });
|
|
1270
1496
|
}
|
|
1271
1497
|
function NavbarMenuContent({ className, children, ...props }) {
|
|
1272
|
-
return /* @__PURE__ */
|
|
1498
|
+
return /* @__PURE__ */ jsx48(NavbarMenuStyleContext.Provider, { value: { density: "relaxed", variant: "default", inContent: true }, children: /* @__PURE__ */ jsx48(ArkNavMenuContent, { className: cn48(navbarMenuContentBase, className), ...props, children }) });
|
|
1273
1499
|
}
|
|
1274
1500
|
function NavbarMenuLink({ className, children, ...props }) {
|
|
1275
1501
|
const { density, variant, inContent } = React4.useContext(NavbarMenuStyleContext);
|
|
1276
|
-
const classes = inContent ?
|
|
1277
|
-
return /* @__PURE__ */
|
|
1502
|
+
const classes = inContent ? cn48(navbarMenuLinkBase, className) : cn48(navbarMenuTriggerStyle({ density, variant }), className);
|
|
1503
|
+
return /* @__PURE__ */ jsx48(ArkNavMenuLink, { className: classes, ...props, children });
|
|
1278
1504
|
}
|
|
1279
1505
|
function NavbarMobileMenu({ className, children, ...props }) {
|
|
1280
|
-
return /* @__PURE__ */
|
|
1506
|
+
return /* @__PURE__ */ jsx48(CollapsibleRoot, { "data-slot": "navbar-mobile-menu", className: cn48("group", className), ...props, children });
|
|
1281
1507
|
}
|
|
1282
1508
|
function NavbarMobileMenuTrigger({ className, children, ...props }) {
|
|
1283
|
-
return /* @__PURE__ */
|
|
1509
|
+
return /* @__PURE__ */ jsx48(CollapsibleTrigger, { asChild: true, children: /* @__PURE__ */ jsxs12(
|
|
1284
1510
|
"button",
|
|
1285
1511
|
{
|
|
1286
1512
|
type: "button",
|
|
1287
1513
|
"data-slot": "navbar-mobile-menu-trigger",
|
|
1288
|
-
className:
|
|
1514
|
+
className: cn48(navbarMobileMenuTriggerBase, className),
|
|
1289
1515
|
...props,
|
|
1290
1516
|
children: [
|
|
1291
1517
|
children,
|
|
1292
|
-
/* @__PURE__ */
|
|
1518
|
+
/* @__PURE__ */ jsx48(
|
|
1293
1519
|
"svg",
|
|
1294
1520
|
{
|
|
1295
1521
|
className: "size-4 transition-transform duration-200 group-data-[state=open]:rotate-180",
|
|
@@ -1300,7 +1526,7 @@ function NavbarMobileMenuTrigger({ className, children, ...props }) {
|
|
|
1300
1526
|
strokeWidth: "2",
|
|
1301
1527
|
strokeLinecap: "round",
|
|
1302
1528
|
strokeLinejoin: "round",
|
|
1303
|
-
children: /* @__PURE__ */
|
|
1529
|
+
children: /* @__PURE__ */ jsx48("path", { d: "m6 9 6 6 6-6" })
|
|
1304
1530
|
}
|
|
1305
1531
|
)
|
|
1306
1532
|
]
|
|
@@ -1308,17 +1534,17 @@ function NavbarMobileMenuTrigger({ className, children, ...props }) {
|
|
|
1308
1534
|
) });
|
|
1309
1535
|
}
|
|
1310
1536
|
function NavbarMobileMenuContent({ className, children, ...props }) {
|
|
1311
|
-
return /* @__PURE__ */
|
|
1537
|
+
return /* @__PURE__ */ jsx48(CollapsibleContent, { children: /* @__PURE__ */ jsx48("div", { "data-slot": "navbar-mobile-menu-content", className: cn48(navbarMobileMenuContentBase, className), ...props, children }) });
|
|
1312
1538
|
}
|
|
1313
1539
|
function NavbarMenuViewport({ className, ...props }) {
|
|
1314
|
-
return /* @__PURE__ */
|
|
1540
|
+
return /* @__PURE__ */ jsx48(ArkNavMenuViewport, { className: cn48(navbarMenuViewportBase, className), ...props });
|
|
1315
1541
|
}
|
|
1316
1542
|
function NavbarMenuIndicator({ className, ...props }) {
|
|
1317
|
-
return /* @__PURE__ */
|
|
1543
|
+
return /* @__PURE__ */ jsx48(ArkNavMenuIndicator, { className: cn48(navbarMenuIndicatorBase, className), ...props });
|
|
1318
1544
|
}
|
|
1319
1545
|
function NavbarActions({ className, children, ...props }) {
|
|
1320
1546
|
useNavbarSlot("actions", children);
|
|
1321
|
-
return /* @__PURE__ */
|
|
1547
|
+
return /* @__PURE__ */ jsx48(ark33.div, { "data-slot": "navbar-actions", className: cn48(navbarActionsBase, className), ...props, children });
|
|
1322
1548
|
}
|
|
1323
1549
|
function NavbarTrigger({
|
|
1324
1550
|
className,
|
|
@@ -1327,7 +1553,7 @@ function NavbarTrigger({
|
|
|
1327
1553
|
...props
|
|
1328
1554
|
}) {
|
|
1329
1555
|
const { id, open, setOpen, floating } = useNavbar();
|
|
1330
|
-
return /* @__PURE__ */
|
|
1556
|
+
return /* @__PURE__ */ jsx48(
|
|
1331
1557
|
"button",
|
|
1332
1558
|
{
|
|
1333
1559
|
type: "button",
|
|
@@ -1335,10 +1561,10 @@ function NavbarTrigger({
|
|
|
1335
1561
|
"aria-expanded": open,
|
|
1336
1562
|
"aria-controls": id,
|
|
1337
1563
|
"aria-label": ariaLabel ?? "Toggle navigation menu",
|
|
1338
|
-
className:
|
|
1564
|
+
className: cn48(navbarTriggerVariants({ floating }), "md:hidden", className),
|
|
1339
1565
|
onClick: () => setOpen(!open),
|
|
1340
1566
|
...props,
|
|
1341
|
-
children: children ?? /* @__PURE__ */
|
|
1567
|
+
children: children ?? /* @__PURE__ */ jsxs12(
|
|
1342
1568
|
"svg",
|
|
1343
1569
|
{
|
|
1344
1570
|
className: "size-4",
|
|
@@ -1350,9 +1576,9 @@ function NavbarTrigger({
|
|
|
1350
1576
|
strokeLinejoin: "round",
|
|
1351
1577
|
"aria-hidden": "true",
|
|
1352
1578
|
children: [
|
|
1353
|
-
/* @__PURE__ */
|
|
1354
|
-
/* @__PURE__ */
|
|
1355
|
-
/* @__PURE__ */
|
|
1579
|
+
/* @__PURE__ */ jsx48("line", { x1: "4", x2: "20", y1: "6", y2: "6" }),
|
|
1580
|
+
/* @__PURE__ */ jsx48("line", { x1: "4", x2: "20", y1: "12", y2: "12" }),
|
|
1581
|
+
/* @__PURE__ */ jsx48("line", { x1: "4", x2: "20", y1: "18", y2: "18" })
|
|
1356
1582
|
]
|
|
1357
1583
|
}
|
|
1358
1584
|
)
|
|
@@ -1369,14 +1595,14 @@ function NavbarMobileOverlay({ className, children, ...props }) {
|
|
|
1369
1595
|
document.addEventListener("keydown", onKeydown);
|
|
1370
1596
|
return () => document.removeEventListener("keydown", onKeydown);
|
|
1371
1597
|
}, [open, setOpen]);
|
|
1372
|
-
return /* @__PURE__ */
|
|
1373
|
-
/* @__PURE__ */
|
|
1374
|
-
/* @__PURE__ */
|
|
1375
|
-
/* @__PURE__ */
|
|
1376
|
-
/* @__PURE__ */
|
|
1377
|
-
/* @__PURE__ */
|
|
1598
|
+
return /* @__PURE__ */ jsx48(Portal6, { container: portalRef, children: /* @__PURE__ */ jsxs12(DialogRoot, { open, lazyMount: true, unmountOnExit: true, onOpenChange: ({ open: open2 }) => setOpen(open2), preventScroll: false, children: [
|
|
1599
|
+
/* @__PURE__ */ jsx48(DialogBackdrop2, { className: "absolute inset-0 z-[100] bg-background/60 backdrop-blur-sm" }),
|
|
1600
|
+
/* @__PURE__ */ jsx48(DialogPositioner, { className: "absolute inset-0 z-[100]", children: /* @__PURE__ */ jsxs12(DialogContent2, { id, "data-slot": "navbar-mobile-overlay", className: cn48(navbarMobileContentBase, className), ...props, children: [
|
|
1601
|
+
/* @__PURE__ */ jsx48(DialogTitle2, { className: "sr-only", children: "Navigation menu" }),
|
|
1602
|
+
/* @__PURE__ */ jsx48(DialogDescription2, { className: "sr-only", children: "Mobile navigation menu" }),
|
|
1603
|
+
/* @__PURE__ */ jsxs12("div", { className: navbarMobileHeaderBase, children: [
|
|
1378
1604
|
slots.brand,
|
|
1379
|
-
/* @__PURE__ */
|
|
1605
|
+
/* @__PURE__ */ jsx48(DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx48("button", { type: "button", "aria-label": "Close navigation menu", className: cn48(navbarTriggerVariants({ floating })), children: /* @__PURE__ */ jsx48(
|
|
1380
1606
|
"svg",
|
|
1381
1607
|
{
|
|
1382
1608
|
className: "size-4",
|
|
@@ -1387,12 +1613,12 @@ function NavbarMobileOverlay({ className, children, ...props }) {
|
|
|
1387
1613
|
strokeLinecap: "round",
|
|
1388
1614
|
strokeLinejoin: "round",
|
|
1389
1615
|
"aria-hidden": "true",
|
|
1390
|
-
children: /* @__PURE__ */
|
|
1616
|
+
children: /* @__PURE__ */ jsx48("path", { d: "M18 6 6 18M6 6l12 12" })
|
|
1391
1617
|
}
|
|
1392
1618
|
) }) })
|
|
1393
1619
|
] }),
|
|
1394
|
-
/* @__PURE__ */
|
|
1395
|
-
slots.actions ? /* @__PURE__ */
|
|
1620
|
+
/* @__PURE__ */ jsx48("div", { className: navbarMobileMenuBase, children }),
|
|
1621
|
+
slots.actions ? /* @__PURE__ */ jsx48("div", { className: navbarMobileActionsBase, children: slots.actions }) : null
|
|
1396
1622
|
] }) })
|
|
1397
1623
|
] }) });
|
|
1398
1624
|
}
|
|
@@ -1422,52 +1648,52 @@ import {
|
|
|
1422
1648
|
fieldsetLegendBase,
|
|
1423
1649
|
fieldsetHelperBase,
|
|
1424
1650
|
fieldsetErrorBase,
|
|
1425
|
-
cn as
|
|
1651
|
+
cn as cn49
|
|
1426
1652
|
} from "@cloudvoyant/helix";
|
|
1427
|
-
import { jsx as
|
|
1653
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
1428
1654
|
function Field({ className, ...props }) {
|
|
1429
|
-
return /* @__PURE__ */
|
|
1655
|
+
return /* @__PURE__ */ jsx49(ArkFieldRoot, { className: cn49(fieldRootBase, className), ...props });
|
|
1430
1656
|
}
|
|
1431
1657
|
function FieldLabel({ className, ...props }) {
|
|
1432
|
-
return /* @__PURE__ */
|
|
1658
|
+
return /* @__PURE__ */ jsx49(ArkFieldLabel, { className: cn49(fieldLabelBase, className), ...props });
|
|
1433
1659
|
}
|
|
1434
1660
|
function FieldHelper({ className, ...props }) {
|
|
1435
|
-
return /* @__PURE__ */
|
|
1661
|
+
return /* @__PURE__ */ jsx49(ArkFieldHelperText, { className: cn49(fieldHelperBase, className), ...props });
|
|
1436
1662
|
}
|
|
1437
1663
|
function FieldError({ className, ...props }) {
|
|
1438
|
-
return /* @__PURE__ */
|
|
1664
|
+
return /* @__PURE__ */ jsx49(ArkFieldErrorText, { className: cn49(fieldErrorBase, className), ...props });
|
|
1439
1665
|
}
|
|
1440
1666
|
function FieldRequiredIndicator({ className, ...props }) {
|
|
1441
|
-
return /* @__PURE__ */
|
|
1667
|
+
return /* @__PURE__ */ jsx49(ArkFieldRequiredIndicator, { className: cn49(fieldRequiredIndicatorBase, className), ...props });
|
|
1442
1668
|
}
|
|
1443
1669
|
function FieldSet({ className, ...props }) {
|
|
1444
|
-
return /* @__PURE__ */
|
|
1670
|
+
return /* @__PURE__ */ jsx49(ArkFieldsetRoot, { className: cn49(fieldsetRootBase, className), ...props });
|
|
1445
1671
|
}
|
|
1446
1672
|
function FieldSetLegend({ className, ...props }) {
|
|
1447
|
-
return /* @__PURE__ */
|
|
1673
|
+
return /* @__PURE__ */ jsx49(ArkFieldsetLegend, { className: cn49(fieldsetLegendBase, className), ...props });
|
|
1448
1674
|
}
|
|
1449
1675
|
function FieldSetHelper({ className, ...props }) {
|
|
1450
|
-
return /* @__PURE__ */
|
|
1676
|
+
return /* @__PURE__ */ jsx49(ArkFieldsetHelperText, { className: cn49(fieldsetHelperBase, className), ...props });
|
|
1451
1677
|
}
|
|
1452
1678
|
function FieldSetError({ className, ...props }) {
|
|
1453
|
-
return /* @__PURE__ */
|
|
1679
|
+
return /* @__PURE__ */ jsx49(ArkFieldsetErrorText, { className: cn49(fieldsetErrorBase, className), ...props });
|
|
1454
1680
|
}
|
|
1455
1681
|
var useField = useFieldContext;
|
|
1456
1682
|
|
|
1457
1683
|
// src/input.tsx
|
|
1458
1684
|
import { FieldInput } from "@ark-ui/react/field";
|
|
1459
|
-
import { inputVariants, cn as
|
|
1460
|
-
import { jsx as
|
|
1685
|
+
import { inputVariants, cn as cn50 } from "@cloudvoyant/helix";
|
|
1686
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
1461
1687
|
function Input2({ className, size, ...props }) {
|
|
1462
|
-
return /* @__PURE__ */
|
|
1688
|
+
return /* @__PURE__ */ jsx50(FieldInput, { className: cn50(inputVariants({ size }), className), ...props });
|
|
1463
1689
|
}
|
|
1464
1690
|
|
|
1465
1691
|
// src/textarea.tsx
|
|
1466
1692
|
import { FieldTextarea } from "@ark-ui/react/field";
|
|
1467
|
-
import { textareaBase, cn as
|
|
1468
|
-
import { jsx as
|
|
1693
|
+
import { textareaBase, cn as cn51 } from "@cloudvoyant/helix";
|
|
1694
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
1469
1695
|
function Textarea({ className, ...props }) {
|
|
1470
|
-
return /* @__PURE__ */
|
|
1696
|
+
return /* @__PURE__ */ jsx51(FieldTextarea, { className: cn51(textareaBase, className), ...props });
|
|
1471
1697
|
}
|
|
1472
1698
|
|
|
1473
1699
|
// src/number-input.tsx
|
|
@@ -1484,23 +1710,23 @@ import {
|
|
|
1484
1710
|
numberInputControlBase,
|
|
1485
1711
|
numberInputInputBase,
|
|
1486
1712
|
numberInputTriggerBase,
|
|
1487
|
-
cn as
|
|
1713
|
+
cn as cn52
|
|
1488
1714
|
} from "@cloudvoyant/helix";
|
|
1489
|
-
import { jsx as
|
|
1715
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
1490
1716
|
function NumberInput({ className, ...props }) {
|
|
1491
|
-
return /* @__PURE__ */
|
|
1717
|
+
return /* @__PURE__ */ jsx52(ArkNumberInputRoot, { className: cn52(numberInputRootBase, className), ...props });
|
|
1492
1718
|
}
|
|
1493
1719
|
function NumberInputControl({ className, ...props }) {
|
|
1494
|
-
return /* @__PURE__ */
|
|
1720
|
+
return /* @__PURE__ */ jsx52(ArkNumberInputControl, { className: cn52(numberInputControlBase, className), ...props });
|
|
1495
1721
|
}
|
|
1496
1722
|
function NumberInputInput({ className, ...props }) {
|
|
1497
|
-
return /* @__PURE__ */
|
|
1723
|
+
return /* @__PURE__ */ jsx52(ArkNumberInputInput, { className: cn52(numberInputInputBase, className), ...props });
|
|
1498
1724
|
}
|
|
1499
1725
|
function NumberInputDecrement({ className, ...props }) {
|
|
1500
|
-
return /* @__PURE__ */
|
|
1726
|
+
return /* @__PURE__ */ jsx52(ArkNumberInputDecrementTrigger, { "aria-label": "Decrement", className: cn52(numberInputTriggerBase, className), ...props });
|
|
1501
1727
|
}
|
|
1502
1728
|
function NumberInputIncrement({ className, ...props }) {
|
|
1503
|
-
return /* @__PURE__ */
|
|
1729
|
+
return /* @__PURE__ */ jsx52(ArkNumberInputIncrementTrigger, { "aria-label": "Increment", className: cn52(numberInputTriggerBase, className), ...props });
|
|
1504
1730
|
}
|
|
1505
1731
|
var useNumberInput = useNumberInputContext;
|
|
1506
1732
|
|
|
@@ -1515,27 +1741,27 @@ import {
|
|
|
1515
1741
|
CheckboxHiddenInput as ArkCheckboxHiddenInput,
|
|
1516
1742
|
useCheckboxContext
|
|
1517
1743
|
} from "@ark-ui/react/checkbox";
|
|
1518
|
-
import { checkboxVariants, checkboxIndicatorBase, checkboxLabelBase, checkboxGroupBase, cn as
|
|
1519
|
-
import { jsx as
|
|
1744
|
+
import { checkboxVariants, checkboxIndicatorBase, checkboxLabelBase, checkboxGroupBase, cn as cn53 } from "@cloudvoyant/helix";
|
|
1745
|
+
import { jsx as jsx53, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1520
1746
|
var CheckboxSizeContext = createContext4("md");
|
|
1521
1747
|
function Checkbox({ className, size = "md", children, ...props }) {
|
|
1522
|
-
return /* @__PURE__ */
|
|
1748
|
+
return /* @__PURE__ */ jsx53(CheckboxSizeContext.Provider, { value: size, children: /* @__PURE__ */ jsxs13(ArkCheckboxRoot, { className: cn53("flex items-center gap-2", className), ...props, children: [
|
|
1523
1749
|
children,
|
|
1524
|
-
/* @__PURE__ */
|
|
1750
|
+
/* @__PURE__ */ jsx53(ArkCheckboxHiddenInput, {})
|
|
1525
1751
|
] }) });
|
|
1526
1752
|
}
|
|
1527
1753
|
function CheckboxControl({ className, ...props }) {
|
|
1528
1754
|
const size = useContext4(CheckboxSizeContext);
|
|
1529
|
-
return /* @__PURE__ */
|
|
1755
|
+
return /* @__PURE__ */ jsx53(ArkCheckboxControl, { className: cn53(checkboxVariants({ size }), className), ...props });
|
|
1530
1756
|
}
|
|
1531
1757
|
function CheckboxIndicator({ className, ...props }) {
|
|
1532
|
-
return /* @__PURE__ */
|
|
1758
|
+
return /* @__PURE__ */ jsx53(ArkCheckboxIndicator, { className: cn53(checkboxIndicatorBase, className), ...props });
|
|
1533
1759
|
}
|
|
1534
1760
|
function CheckboxLabel({ className, ...props }) {
|
|
1535
|
-
return /* @__PURE__ */
|
|
1761
|
+
return /* @__PURE__ */ jsx53(ArkCheckboxLabel, { className: cn53(checkboxLabelBase, className), ...props });
|
|
1536
1762
|
}
|
|
1537
1763
|
function CheckboxGroup({ className, ...props }) {
|
|
1538
|
-
return /* @__PURE__ */
|
|
1764
|
+
return /* @__PURE__ */ jsx53(ArkCheckboxGroup, { className: cn53(checkboxGroupBase, className), ...props });
|
|
1539
1765
|
}
|
|
1540
1766
|
var useCheckbox = useCheckboxContext;
|
|
1541
1767
|
|
|
@@ -1549,30 +1775,30 @@ import {
|
|
|
1549
1775
|
SwitchHiddenInput as ArkSwitchHiddenInput,
|
|
1550
1776
|
useSwitchContext
|
|
1551
1777
|
} from "@ark-ui/react/switch";
|
|
1552
|
-
import { switchVariants, switchControlBase, switchThumbBase, switchLabelBase, cn as
|
|
1553
|
-
import { jsx as
|
|
1778
|
+
import { switchVariants, switchControlBase, switchThumbBase, switchLabelBase, cn as cn54 } from "@cloudvoyant/helix";
|
|
1779
|
+
import { jsx as jsx54, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1554
1780
|
var SwitchSizeContext = createContext5("md");
|
|
1555
1781
|
function Switch({ className, size = "md", children, ...props }) {
|
|
1556
|
-
return /* @__PURE__ */
|
|
1782
|
+
return /* @__PURE__ */ jsx54(SwitchSizeContext.Provider, { value: size, children: /* @__PURE__ */ jsxs14(ArkSwitchRoot, { className: cn54("flex items-center gap-2", className), ...props, children: [
|
|
1557
1783
|
children,
|
|
1558
|
-
/* @__PURE__ */
|
|
1784
|
+
/* @__PURE__ */ jsx54(ArkSwitchHiddenInput, {})
|
|
1559
1785
|
] }) });
|
|
1560
1786
|
}
|
|
1561
1787
|
function SwitchControl({ className, ...props }) {
|
|
1562
1788
|
const size = useContext5(SwitchSizeContext);
|
|
1563
|
-
return /* @__PURE__ */
|
|
1789
|
+
return /* @__PURE__ */ jsx54(ArkSwitchControl, { className: cn54(switchVariants({ size }), switchControlBase, className), ...props });
|
|
1564
1790
|
}
|
|
1565
1791
|
function SwitchThumb({ className, ...props }) {
|
|
1566
|
-
return /* @__PURE__ */
|
|
1792
|
+
return /* @__PURE__ */ jsx54(ArkSwitchThumb, { className: cn54(switchThumbBase, className), ...props });
|
|
1567
1793
|
}
|
|
1568
1794
|
function SwitchLabel({ className, ...props }) {
|
|
1569
|
-
return /* @__PURE__ */
|
|
1795
|
+
return /* @__PURE__ */ jsx54(ArkSwitchLabel, { className: cn54(switchLabelBase, className), ...props });
|
|
1570
1796
|
}
|
|
1571
1797
|
var useSwitch = useSwitchContext;
|
|
1572
1798
|
|
|
1573
1799
|
// src/select.tsx
|
|
1574
1800
|
import { ark as ark34 } from "@ark-ui/react/factory";
|
|
1575
|
-
import { Portal as
|
|
1801
|
+
import { Portal as Portal7 } from "@ark-ui/react/portal";
|
|
1576
1802
|
import { useMemo as useMemo4 } from "react";
|
|
1577
1803
|
import {
|
|
1578
1804
|
SelectRoot as ArkSelectRoot,
|
|
@@ -1606,7 +1832,7 @@ import {
|
|
|
1606
1832
|
nativeSelectVariants,
|
|
1607
1833
|
nativeSelectWrapperBase,
|
|
1608
1834
|
nativeSelectIconBase,
|
|
1609
|
-
cn as
|
|
1835
|
+
cn as cn55
|
|
1610
1836
|
} from "@cloudvoyant/helix";
|
|
1611
1837
|
|
|
1612
1838
|
// src/use-media-query.ts
|
|
@@ -1624,7 +1850,7 @@ function useMediaQuery(query) {
|
|
|
1624
1850
|
}
|
|
1625
1851
|
|
|
1626
1852
|
// src/select.tsx
|
|
1627
|
-
import { jsx as
|
|
1853
|
+
import { jsx as jsx55, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1628
1854
|
function Select({ items, collection, size, children, ...props }) {
|
|
1629
1855
|
const isCoarse = useMediaQuery("(pointer: coarse)");
|
|
1630
1856
|
const resolvedCollection = useMemo4(
|
|
@@ -1632,7 +1858,7 @@ function Select({ items, collection, size, children, ...props }) {
|
|
|
1632
1858
|
[collection, items]
|
|
1633
1859
|
);
|
|
1634
1860
|
if (isCoarse && items) {
|
|
1635
|
-
return /* @__PURE__ */
|
|
1861
|
+
return /* @__PURE__ */ jsx55(
|
|
1636
1862
|
SelectNative,
|
|
1637
1863
|
{
|
|
1638
1864
|
items,
|
|
@@ -1648,44 +1874,44 @@ function Select({ items, collection, size, children, ...props }) {
|
|
|
1648
1874
|
}
|
|
1649
1875
|
);
|
|
1650
1876
|
}
|
|
1651
|
-
return /* @__PURE__ */
|
|
1877
|
+
return /* @__PURE__ */ jsxs15(ArkSelectRoot, { collection: resolvedCollection, ...props, children: [
|
|
1652
1878
|
children,
|
|
1653
|
-
/* @__PURE__ */
|
|
1879
|
+
/* @__PURE__ */ jsx55(ArkSelectHiddenSelect, {})
|
|
1654
1880
|
] });
|
|
1655
1881
|
}
|
|
1656
1882
|
function SelectTrigger({ size = "md", className, ...props }) {
|
|
1657
|
-
return /* @__PURE__ */
|
|
1883
|
+
return /* @__PURE__ */ jsx55(ArkSelectTrigger, { className: cn55(inputVariants2({ size }), selectTriggerBase, className), ...props });
|
|
1658
1884
|
}
|
|
1659
1885
|
function SelectValue({ className, ...props }) {
|
|
1660
|
-
return /* @__PURE__ */
|
|
1886
|
+
return /* @__PURE__ */ jsx55(ArkSelectValueText, { className: cn55(selectValueBase, className), ...props });
|
|
1661
1887
|
}
|
|
1662
1888
|
function SelectIndicator({ className, ...props }) {
|
|
1663
|
-
return /* @__PURE__ */
|
|
1889
|
+
return /* @__PURE__ */ jsx55(ArkSelectIndicator, { className: cn55(selectIndicatorBase, className), ...props });
|
|
1664
1890
|
}
|
|
1665
1891
|
function SelectClearTrigger({ className, ...props }) {
|
|
1666
|
-
return /* @__PURE__ */
|
|
1892
|
+
return /* @__PURE__ */ jsx55(ArkSelectClearTrigger, { "aria-label": "Clear selection", className: cn55(selectClearTriggerBase, className), ...props });
|
|
1667
1893
|
}
|
|
1668
1894
|
function SelectContent({ className, ...props }) {
|
|
1669
|
-
return /* @__PURE__ */
|
|
1895
|
+
return /* @__PURE__ */ jsx55(Portal7, { children: /* @__PURE__ */ jsx55(ArkSelectPositioner, { className: selectPositionerBase, children: /* @__PURE__ */ jsx55(ArkSelectContent, { className: cn55(selectContentBase, className), ...props }) }) });
|
|
1670
1896
|
}
|
|
1671
1897
|
function SelectItemGroup({ className, ...props }) {
|
|
1672
|
-
return /* @__PURE__ */
|
|
1898
|
+
return /* @__PURE__ */ jsx55(ArkSelectItemGroup, { className, ...props });
|
|
1673
1899
|
}
|
|
1674
1900
|
function SelectItemGroupLabel({ className, ...props }) {
|
|
1675
|
-
return /* @__PURE__ */
|
|
1901
|
+
return /* @__PURE__ */ jsx55(ArkSelectItemGroupLabel, { className: cn55(selectItemGroupLabelBase, className), ...props });
|
|
1676
1902
|
}
|
|
1677
1903
|
function SelectItem({ item, className, ...props }) {
|
|
1678
|
-
return /* @__PURE__ */
|
|
1904
|
+
return /* @__PURE__ */ jsx55(ArkSelectItem, { item, className: cn55(selectItemBase, className), ...props });
|
|
1679
1905
|
}
|
|
1680
1906
|
function SelectItemText({ className, ...props }) {
|
|
1681
|
-
return /* @__PURE__ */
|
|
1907
|
+
return /* @__PURE__ */ jsx55(ArkSelectItemText, { className: cn55(selectItemTextBase, className), ...props });
|
|
1682
1908
|
}
|
|
1683
1909
|
function SelectItemIndicator({ className, ...props }) {
|
|
1684
|
-
return /* @__PURE__ */
|
|
1910
|
+
return /* @__PURE__ */ jsx55(ArkSelectItemIndicator, { className: cn55(selectItemIndicatorBase, className), ...props });
|
|
1685
1911
|
}
|
|
1686
1912
|
var useSelect = useSelectContext;
|
|
1687
1913
|
function ChevronDownIcon() {
|
|
1688
|
-
return /* @__PURE__ */
|
|
1914
|
+
return /* @__PURE__ */ jsx55(
|
|
1689
1915
|
"svg",
|
|
1690
1916
|
{
|
|
1691
1917
|
viewBox: "0 0 24 24",
|
|
@@ -1695,7 +1921,7 @@ function ChevronDownIcon() {
|
|
|
1695
1921
|
strokeLinecap: "round",
|
|
1696
1922
|
strokeLinejoin: "round",
|
|
1697
1923
|
"aria-hidden": true,
|
|
1698
|
-
children: /* @__PURE__ */
|
|
1924
|
+
children: /* @__PURE__ */ jsx55("path", { d: "m6 9 6 6 6-6" })
|
|
1699
1925
|
}
|
|
1700
1926
|
);
|
|
1701
1927
|
}
|
|
@@ -1710,8 +1936,8 @@ function SelectNative({
|
|
|
1710
1936
|
className,
|
|
1711
1937
|
...props
|
|
1712
1938
|
}) {
|
|
1713
|
-
return /* @__PURE__ */
|
|
1714
|
-
/* @__PURE__ */
|
|
1939
|
+
return /* @__PURE__ */ jsxs15(ark34.div, { className: cn55(nativeSelectWrapperBase, className), children: [
|
|
1940
|
+
/* @__PURE__ */ jsx55(
|
|
1715
1941
|
ark34.select,
|
|
1716
1942
|
{
|
|
1717
1943
|
className: nativeSelectVariants({ size }),
|
|
@@ -1720,15 +1946,15 @@ function SelectNative({
|
|
|
1720
1946
|
onChange: (event) => onValueChange?.(event.currentTarget.value),
|
|
1721
1947
|
"aria-invalid": invalid,
|
|
1722
1948
|
...props,
|
|
1723
|
-
children: items.map((item) => /* @__PURE__ */
|
|
1949
|
+
children: items.map((item) => /* @__PURE__ */ jsx55(ark34.option, { value: item.value, disabled: item.disabled, children: item.label }, item.value))
|
|
1724
1950
|
}
|
|
1725
1951
|
),
|
|
1726
|
-
/* @__PURE__ */
|
|
1952
|
+
/* @__PURE__ */ jsx55(ark34.span, { className: nativeSelectIconBase, "aria-hidden": true, children: icon ?? /* @__PURE__ */ jsx55(ChevronDownIcon, {}) })
|
|
1727
1953
|
] });
|
|
1728
1954
|
}
|
|
1729
1955
|
|
|
1730
1956
|
// src/combobox.tsx
|
|
1731
|
-
import { Portal as
|
|
1957
|
+
import { Portal as Portal8 } from "@ark-ui/react/portal";
|
|
1732
1958
|
import { useMemo as useMemo5 } from "react";
|
|
1733
1959
|
import {
|
|
1734
1960
|
ComboboxRoot as ArkComboboxRoot,
|
|
@@ -1761,9 +1987,9 @@ import {
|
|
|
1761
1987
|
comboboxItemIndicatorBase,
|
|
1762
1988
|
comboboxListBase,
|
|
1763
1989
|
comboboxEmptyBase,
|
|
1764
|
-
cn as
|
|
1990
|
+
cn as cn56
|
|
1765
1991
|
} from "@cloudvoyant/helix";
|
|
1766
|
-
import { jsx as
|
|
1992
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
1767
1993
|
function Combobox({
|
|
1768
1994
|
items,
|
|
1769
1995
|
collection,
|
|
@@ -1776,7 +2002,7 @@ function Combobox({
|
|
|
1776
2002
|
() => collection ?? createListCollection2({ items: items ?? [] }),
|
|
1777
2003
|
[collection, items]
|
|
1778
2004
|
);
|
|
1779
|
-
return /* @__PURE__ */
|
|
2005
|
+
return /* @__PURE__ */ jsx56(
|
|
1780
2006
|
ArkComboboxRoot,
|
|
1781
2007
|
{
|
|
1782
2008
|
collection: resolvedCollection,
|
|
@@ -1788,40 +2014,40 @@ function Combobox({
|
|
|
1788
2014
|
);
|
|
1789
2015
|
}
|
|
1790
2016
|
function ComboboxControl({ className, ...props }) {
|
|
1791
|
-
return /* @__PURE__ */
|
|
2017
|
+
return /* @__PURE__ */ jsx56(ArkComboboxControl, { className: cn56(comboboxControlBase, className), ...props });
|
|
1792
2018
|
}
|
|
1793
2019
|
function ComboboxInput({ size = "md", className, ...props }) {
|
|
1794
|
-
return /* @__PURE__ */
|
|
2020
|
+
return /* @__PURE__ */ jsx56(ArkComboboxInput, { className: cn56(inputVariants3({ size }), comboboxInputBase, className), ...props });
|
|
1795
2021
|
}
|
|
1796
2022
|
function ComboboxTrigger({ className, ...props }) {
|
|
1797
|
-
return /* @__PURE__ */
|
|
2023
|
+
return /* @__PURE__ */ jsx56(ArkComboboxTrigger, { className: cn56(comboboxTriggerBase, className), ...props });
|
|
1798
2024
|
}
|
|
1799
2025
|
function ComboboxClear({ className, ...props }) {
|
|
1800
|
-
return /* @__PURE__ */
|
|
2026
|
+
return /* @__PURE__ */ jsx56(ArkComboboxClearTrigger, { "aria-label": "Clear", className: cn56(comboboxClearTriggerBase, className), ...props });
|
|
1801
2027
|
}
|
|
1802
2028
|
function ComboboxContent({ className, ...props }) {
|
|
1803
|
-
return /* @__PURE__ */
|
|
2029
|
+
return /* @__PURE__ */ jsx56(Portal8, { children: /* @__PURE__ */ jsx56(ArkComboboxPositioner, { className: comboboxPositionerBase, children: /* @__PURE__ */ jsx56(ArkComboboxContent, { className: cn56(comboboxContentBase, className), ...props }) }) });
|
|
1804
2030
|
}
|
|
1805
2031
|
function ComboboxItemGroup({ className, ...props }) {
|
|
1806
|
-
return /* @__PURE__ */
|
|
2032
|
+
return /* @__PURE__ */ jsx56(ArkComboboxItemGroup, { className, ...props });
|
|
1807
2033
|
}
|
|
1808
2034
|
function ComboboxItemGroupLabel({ className, ...props }) {
|
|
1809
|
-
return /* @__PURE__ */
|
|
2035
|
+
return /* @__PURE__ */ jsx56(ArkComboboxItemGroupLabel, { className: cn56(comboboxItemGroupLabelBase, className), ...props });
|
|
1810
2036
|
}
|
|
1811
2037
|
function ComboboxItem({ item, showIndicator = true, className, ...props }) {
|
|
1812
|
-
return /* @__PURE__ */
|
|
2038
|
+
return /* @__PURE__ */ jsx56(ArkComboboxItem, { item, persistFocus: true, className: cn56(comboboxItemVariants({ showIndicator }), className), ...props });
|
|
1813
2039
|
}
|
|
1814
2040
|
function ComboboxItemText({ className, ...props }) {
|
|
1815
|
-
return /* @__PURE__ */
|
|
2041
|
+
return /* @__PURE__ */ jsx56(ArkComboboxItemText, { className, ...props });
|
|
1816
2042
|
}
|
|
1817
2043
|
function ComboboxItemIndicator({ className, ...props }) {
|
|
1818
|
-
return /* @__PURE__ */
|
|
2044
|
+
return /* @__PURE__ */ jsx56(ArkComboboxItemIndicator, { className: cn56(comboboxItemIndicatorBase, className), ...props });
|
|
1819
2045
|
}
|
|
1820
2046
|
function ComboboxList({ className, ...props }) {
|
|
1821
|
-
return /* @__PURE__ */
|
|
2047
|
+
return /* @__PURE__ */ jsx56(ArkComboboxList, { className: cn56(comboboxListBase, className), ...props });
|
|
1822
2048
|
}
|
|
1823
2049
|
function ComboboxEmpty({ className, children, ...props }) {
|
|
1824
|
-
return /* @__PURE__ */
|
|
2050
|
+
return /* @__PURE__ */ jsx56(ArkComboboxEmpty, { className: cn56(comboboxEmptyBase, className), ...props, children: children ?? "No results found." });
|
|
1825
2051
|
}
|
|
1826
2052
|
var useCombobox = useComboboxContext;
|
|
1827
2053
|
|
|
@@ -1849,38 +2075,38 @@ import {
|
|
|
1849
2075
|
tagsInputItemInputBase,
|
|
1850
2076
|
tagsInputItemDeleteTriggerBase,
|
|
1851
2077
|
tagsInputClearTriggerBase,
|
|
1852
|
-
cn as
|
|
2078
|
+
cn as cn57
|
|
1853
2079
|
} from "@cloudvoyant/helix";
|
|
1854
|
-
import { jsx as
|
|
2080
|
+
import { jsx as jsx57, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1855
2081
|
function TagInput({ className, editable = false, children, ...props }) {
|
|
1856
|
-
return /* @__PURE__ */
|
|
2082
|
+
return /* @__PURE__ */ jsxs16(ArkTagsInputRoot, { className: cn57(tagsInputRootBase, className), editable, ...props, children: [
|
|
1857
2083
|
children,
|
|
1858
|
-
/* @__PURE__ */
|
|
2084
|
+
/* @__PURE__ */ jsx57(ArkTagsInputHiddenInput, {})
|
|
1859
2085
|
] });
|
|
1860
2086
|
}
|
|
1861
2087
|
function TagInputControl({ className, ...props }) {
|
|
1862
|
-
return /* @__PURE__ */
|
|
2088
|
+
return /* @__PURE__ */ jsx57(ArkTagsInputControl, { className: cn57(tagsInputControlBase, className), ...props });
|
|
1863
2089
|
}
|
|
1864
2090
|
function TagInputInput({ className, ...props }) {
|
|
1865
|
-
return /* @__PURE__ */
|
|
2091
|
+
return /* @__PURE__ */ jsx57(ArkTagsInputInput, { className: cn57(tagsInputInputBase, className), ...props });
|
|
1866
2092
|
}
|
|
1867
2093
|
function TagInputItem({ className, ...props }) {
|
|
1868
|
-
return /* @__PURE__ */
|
|
2094
|
+
return /* @__PURE__ */ jsx57(ArkTagsInputItem, { className: cn57(tagsInputItemBase, className), ...props });
|
|
1869
2095
|
}
|
|
1870
2096
|
function TagInputItemPreview({ className, ...props }) {
|
|
1871
|
-
return /* @__PURE__ */
|
|
2097
|
+
return /* @__PURE__ */ jsx57(ArkTagsInputItemPreview, { className, ...props });
|
|
1872
2098
|
}
|
|
1873
2099
|
function TagInputItemText({ className, ...props }) {
|
|
1874
|
-
return /* @__PURE__ */
|
|
2100
|
+
return /* @__PURE__ */ jsx57(ArkTagsInputItemText, { className: cn57(tagsInputItemTextBase, className), ...props });
|
|
1875
2101
|
}
|
|
1876
2102
|
function TagInputItemInput({ className, ...props }) {
|
|
1877
|
-
return /* @__PURE__ */
|
|
2103
|
+
return /* @__PURE__ */ jsx57(ArkTagsInputItemInput, { className: cn57(tagsInputItemInputBase, className), ...props });
|
|
1878
2104
|
}
|
|
1879
2105
|
function TagInputItemDeleteTrigger({ className, ...props }) {
|
|
1880
|
-
return /* @__PURE__ */
|
|
2106
|
+
return /* @__PURE__ */ jsx57(ArkTagsInputItemDeleteTrigger, { "aria-label": "Remove tag", className: cn57(tagsInputItemDeleteTriggerBase, className), ...props });
|
|
1881
2107
|
}
|
|
1882
2108
|
function TagInputClearTrigger({ className, ...props }) {
|
|
1883
|
-
return /* @__PURE__ */
|
|
2109
|
+
return /* @__PURE__ */ jsx57(ArkTagsInputClearTrigger, { "aria-label": "Clear all tags", className: cn57(tagsInputClearTriggerBase, className), ...props });
|
|
1884
2110
|
}
|
|
1885
2111
|
var TagInputContext = ArkTagsInputContext;
|
|
1886
2112
|
var useTagInput = useTagsInputContext;
|
|
@@ -1915,6 +2141,16 @@ export {
|
|
|
1915
2141
|
ComboboxList,
|
|
1916
2142
|
ComboboxTrigger,
|
|
1917
2143
|
Container,
|
|
2144
|
+
Dialog,
|
|
2145
|
+
DialogBackdrop,
|
|
2146
|
+
DialogContent,
|
|
2147
|
+
DialogDescription,
|
|
2148
|
+
DialogDismiss,
|
|
2149
|
+
DialogFooter,
|
|
2150
|
+
DialogHeader,
|
|
2151
|
+
DialogProvider,
|
|
2152
|
+
DialogTitle,
|
|
2153
|
+
DialogTrigger,
|
|
1918
2154
|
Field,
|
|
1919
2155
|
FieldError,
|
|
1920
2156
|
FieldHelper,
|
|
@@ -1962,6 +2198,16 @@ export {
|
|
|
1962
2198
|
PaginationItems,
|
|
1963
2199
|
PaginationNext,
|
|
1964
2200
|
PaginationPrevious,
|
|
2201
|
+
Popover,
|
|
2202
|
+
PopoverAnchor,
|
|
2203
|
+
PopoverContent,
|
|
2204
|
+
PopoverDescription,
|
|
2205
|
+
PopoverDismiss,
|
|
2206
|
+
PopoverIndicator,
|
|
2207
|
+
PopoverProvider,
|
|
2208
|
+
PopoverTitle,
|
|
2209
|
+
PopoverTrigger,
|
|
2210
|
+
Portal5 as Portal,
|
|
1965
2211
|
Row,
|
|
1966
2212
|
Scroll,
|
|
1967
2213
|
Select,
|
|
@@ -2024,17 +2270,39 @@ export {
|
|
|
2024
2270
|
Textarea,
|
|
2025
2271
|
ToggleButton,
|
|
2026
2272
|
ToggleButtonIndicator,
|
|
2273
|
+
Tooltip,
|
|
2274
|
+
TooltipContent,
|
|
2275
|
+
TooltipProvider,
|
|
2276
|
+
TooltipTrigger,
|
|
2027
2277
|
VStack,
|
|
2278
|
+
Window,
|
|
2279
|
+
WindowBody,
|
|
2280
|
+
WindowControl,
|
|
2281
|
+
WindowDismiss,
|
|
2282
|
+
WindowDragTrigger,
|
|
2283
|
+
WindowHeader,
|
|
2284
|
+
WindowProvider,
|
|
2285
|
+
WindowResizeTrigger,
|
|
2286
|
+
WindowStageTrigger,
|
|
2287
|
+
WindowTitle,
|
|
2028
2288
|
navbarMenuTriggerStyle2 as navbarMenuTriggerStyle,
|
|
2029
2289
|
useCheckbox,
|
|
2030
2290
|
useCombobox,
|
|
2291
|
+
useDialog,
|
|
2292
|
+
useDialogContext,
|
|
2031
2293
|
useField,
|
|
2032
2294
|
useMediaQuery,
|
|
2033
2295
|
useNavbar,
|
|
2034
2296
|
useNumberInput,
|
|
2297
|
+
usePopover,
|
|
2298
|
+
usePopoverContext,
|
|
2035
2299
|
useSelect,
|
|
2036
2300
|
useSidebar,
|
|
2037
2301
|
useSwitch,
|
|
2038
2302
|
useTabs,
|
|
2039
|
-
useTagInput
|
|
2303
|
+
useTagInput,
|
|
2304
|
+
useTooltip,
|
|
2305
|
+
useTooltipContext,
|
|
2306
|
+
useWindow,
|
|
2307
|
+
useWindowContext
|
|
2040
2308
|
};
|