lizaui 9.0.2 → 9.0.3
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/button/index.cjs.js +1 -1
- package/dist/button/index.es.js +1 -1
- package/dist/calendar/index.cjs.js +47 -796
- package/dist/calendar/index.cjs.js.map +1 -1
- package/dist/calendar/index.es.js +11 -760
- package/dist/calendar/index.es.js.map +1 -1
- package/dist/checkbox/index.cjs.js +1 -1
- package/dist/checkbox/index.es.js +1 -1
- package/dist/chip/index.cjs.js +9 -9
- package/dist/chip/index.cjs.js.map +1 -1
- package/dist/chip/index.es.js +2 -2
- package/dist/chunks/{button-MKhaqe0K.js → button-B0fpJrMg.js} +3 -3
- package/dist/chunks/{button-MKhaqe0K.js.map → button-B0fpJrMg.js.map} +1 -1
- package/dist/chunks/{button-BKebd9mx.js → button-d5z8H59K.js} +13 -13
- package/dist/chunks/{button-BKebd9mx.js.map → button-d5z8H59K.js.map} +1 -1
- package/dist/chunks/{checkbox-DpLEjjb9.js → checkbox-C1Sssumg.js} +3 -3
- package/dist/chunks/{checkbox-DpLEjjb9.js.map → checkbox-C1Sssumg.js.map} +1 -1
- package/dist/chunks/{checkbox-BoxBfskJ.js → checkbox-ovjcc7jF.js} +15 -15
- package/dist/chunks/{checkbox-BoxBfskJ.js.map → checkbox-ovjcc7jF.js.map} +1 -1
- package/dist/chunks/{index-BHpUy2Ix.js → index-CEKmKomA.js} +2 -2
- package/dist/chunks/{index-BHpUy2Ix.js.map → index-CEKmKomA.js.map} +1 -1
- package/dist/chunks/{index-CATvGmak.js → index-C_sOsPRt.js} +5 -5
- package/dist/chunks/{index-CATvGmak.js.map → index-C_sOsPRt.js.map} +1 -1
- package/dist/chunks/{index-CNDtGisb.js → index-DaMyCNJ8.js} +2 -2
- package/dist/chunks/{index-CNDtGisb.js.map → index-DaMyCNJ8.js.map} +1 -1
- package/dist/chunks/{label-error-DkVGsF5w.js → label-error-BTCuInp7.js} +2 -2
- package/dist/chunks/{label-error-DkVGsF5w.js.map → label-error-BTCuInp7.js.map} +1 -1
- package/dist/chunks/label-error-C8lIsfXu.js +9 -0
- package/dist/chunks/{label-error-2QXnvbxJ.js.map → label-error-C8lIsfXu.js.map} +1 -1
- package/dist/chunks/{ripple-CTAKSntE.js → ripple-Bm6QamOy.js} +4 -4
- package/dist/chunks/{ripple-CTAKSntE.js.map → ripple-Bm6QamOy.js.map} +1 -1
- package/dist/chunks/{scroll-area-CNEU8oOo.js → scroll-area-C0NhSIO2.js} +31 -31
- package/dist/chunks/{scroll-area-CNEU8oOo.js.map → scroll-area-C0NhSIO2.js.map} +1 -1
- package/dist/chunks/{scroll-area-3h3tgoqp.js → scroll-area-JgKF61tc.js} +3 -3
- package/dist/chunks/{scroll-area-3h3tgoqp.js.map → scroll-area-JgKF61tc.js.map} +1 -1
- package/dist/chunks/{select-BW-plZA9.js → select-DGnc8VJi.js} +73 -73
- package/dist/chunks/{select-BW-plZA9.js.map → select-DGnc8VJi.js.map} +1 -1
- package/dist/chunks/{select-wGmz50gN.js → select-Dpyj5dUk.js} +3 -3
- package/dist/chunks/{select-wGmz50gN.js.map → select-Dpyj5dUk.js.map} +1 -1
- package/dist/chunks/{styled-components.browser.esm-DbYXI9h_.js → styled-components.browser.esm-CPR7VH_x.js} +3 -3
- package/dist/chunks/{styled-components.browser.esm-DbYXI9h_.js.map → styled-components.browser.esm-CPR7VH_x.js.map} +1 -1
- package/dist/chunks/{textarea-CPHr2RpC.js → textarea-D2_KC-J4.js} +98 -98
- package/dist/chunks/{textarea-CPHr2RpC.js.map → textarea-D2_KC-J4.js.map} +1 -1
- package/dist/chunks/{textarea-CXQO1MMF.js → textarea-_HQpXiCX.js} +8 -8
- package/dist/chunks/{textarea-CXQO1MMF.js.map → textarea-_HQpXiCX.js.map} +1 -1
- package/dist/chunks/{tooltip-05Mv2hjx.js → tooltip-GGFk8ALK.js} +15 -15
- package/dist/chunks/{tooltip-05Mv2hjx.js.map → tooltip-GGFk8ALK.js.map} +1 -1
- package/dist/chunks/{tooltip-D3J0_sJU.js → tooltip-JwIbppjO.js} +3 -3
- package/dist/chunks/{tooltip-D3J0_sJU.js.map → tooltip-JwIbppjO.js.map} +1 -1
- package/dist/chunks/tv-B0li4IsO.js +41 -0
- package/dist/chunks/tv-B0li4IsO.js.map +1 -0
- package/dist/chunks/tv-CGbWb8zP.js +40 -0
- package/dist/chunks/tv-CGbWb8zP.js.map +1 -0
- package/dist/chunks/utils-H80jjgLf.js +9 -0
- package/dist/chunks/{utils-BnY7EXd5.js.map → utils-H80jjgLf.js.map} +1 -1
- package/dist/chunks/utils-ij3i9zTT.js +8 -0
- package/dist/chunks/{utils-nIKS3WsJ.js.map → utils-ij3i9zTT.js.map} +1 -1
- package/dist/divider/index.cjs.js +4 -4
- package/dist/divider/index.es.js +1 -1
- package/dist/modal/index.cjs.js +17 -17
- package/dist/modal/index.es.js +3 -3
- package/dist/pagination/index.cjs.js +29 -29
- package/dist/pagination/index.cjs.js.map +1 -1
- package/dist/pagination/index.es.js +5 -5
- package/dist/phone-input/index.cjs.js +32 -31
- package/dist/phone-input/index.cjs.js.map +1 -1
- package/dist/phone-input/index.es.js +7 -6
- package/dist/phone-input/index.es.js.map +1 -1
- package/dist/ripple/index.cjs.js +1 -1
- package/dist/select-input/index.cjs.js +39 -39
- package/dist/select-input/index.cjs.js.map +1 -1
- package/dist/select-input/index.es.js +5 -5
- package/dist/table/index.cjs.js +44 -44
- package/dist/table/index.cjs.js.map +1 -1
- package/dist/table/index.es.js +5 -5
- package/dist/time-input/index.cjs.js +53 -53
- package/dist/time-input/index.cjs.js.map +1 -1
- package/dist/time-input/index.es.js +5 -5
- package/dist/tooltip/index.cjs.js +1 -1
- package/dist/tooltip/index.es.js +1 -1
- package/dist/ui/index.cjs.js +324 -324
- package/dist/ui/index.es.js +10 -10
- package/package.json +8 -2
- package/dist/chunks/bundle-mjs-BWLS65yY.js +0 -3003
- package/dist/chunks/bundle-mjs-BWLS65yY.js.map +0 -1
- package/dist/chunks/bundle-mjs-DB1IOBLD.js +0 -3004
- package/dist/chunks/bundle-mjs-DB1IOBLD.js.map +0 -1
- package/dist/chunks/clsx-CBkIpawf.js +0 -16
- package/dist/chunks/clsx-CBkIpawf.js.map +0 -1
- package/dist/chunks/clsx-DgYk2OaC.js +0 -17
- package/dist/chunks/clsx-DgYk2OaC.js.map +0 -1
- package/dist/chunks/label-error-2QXnvbxJ.js +0 -9
- package/dist/chunks/tv-C-wpiWwh.js +0 -274
- package/dist/chunks/tv-C-wpiWwh.js.map +0 -1
- package/dist/chunks/tv-C4gJMNo3.js +0 -275
- package/dist/chunks/tv-C4gJMNo3.js.map +0 -1
- package/dist/chunks/utils-BnY7EXd5.js +0 -9
- package/dist/chunks/utils-nIKS3WsJ.js +0 -8
- package/dist/chunks/v4-BQ42ZlDJ.js +0 -39
- package/dist/chunks/v4-BQ42ZlDJ.js.map +0 -1
- package/dist/chunks/v4-C3omdoBX.js +0 -40
- package/dist/chunks/v4-C3omdoBX.js.map +0 -1
package/dist/ui/index.cjs.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const textarea = require("../chunks/textarea-
|
|
4
|
-
const
|
|
3
|
+
const textarea = require("../chunks/textarea-D2_KC-J4.js");
|
|
4
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
5
5
|
const React = require("react");
|
|
6
|
-
const utils = require("../chunks/utils-
|
|
7
|
-
const labelError = require("../chunks/label-error-
|
|
8
|
-
const index = require("../chunks/index-
|
|
9
|
-
const select = require("../chunks/select-
|
|
6
|
+
const utils = require("../chunks/utils-ij3i9zTT.js");
|
|
7
|
+
const labelError = require("../chunks/label-error-C8lIsfXu.js");
|
|
8
|
+
const index = require("../chunks/index-C_sOsPRt.js");
|
|
9
|
+
const select = require("../chunks/select-DGnc8VJi.js");
|
|
10
10
|
const index$1 = require("../chunks/index-BPW1Qzmi.js");
|
|
11
|
-
const index$2 = require("../chunks/index-
|
|
12
|
-
const scrollArea = require("../chunks/scroll-area-
|
|
11
|
+
const index$2 = require("../chunks/index-DaMyCNJ8.js");
|
|
12
|
+
const scrollArea = require("../chunks/scroll-area-C0NhSIO2.js");
|
|
13
13
|
const ReactDOM = require("react-dom");
|
|
14
|
-
const button = require("../chunks/button-
|
|
14
|
+
const button = require("../chunks/button-d5z8H59K.js");
|
|
15
15
|
function _interopNamespaceDefault(e) {
|
|
16
16
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
17
17
|
if (e) {
|
|
@@ -31,7 +31,7 @@ function _interopNamespaceDefault(e) {
|
|
|
31
31
|
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
32
32
|
var NAME$1 = "Label";
|
|
33
33
|
var Label$2 = React__namespace.forwardRef((props, forwardedRef) => {
|
|
34
|
-
return /* @__PURE__ */
|
|
34
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
35
35
|
textarea.Primitive.label,
|
|
36
36
|
{
|
|
37
37
|
...props,
|
|
@@ -48,7 +48,7 @@ var Label$2 = React__namespace.forwardRef((props, forwardedRef) => {
|
|
|
48
48
|
Label$2.displayName = NAME$1;
|
|
49
49
|
var Root$4 = Label$2;
|
|
50
50
|
function Label$1({ className, ...props }) {
|
|
51
|
-
return /* @__PURE__ */
|
|
51
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
52
52
|
Root$4,
|
|
53
53
|
{
|
|
54
54
|
"data-slot": "label",
|
|
@@ -71,7 +71,7 @@ var [createRovingFocusGroupContext, createRovingFocusGroupScope] = textarea.crea
|
|
|
71
71
|
var [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME$3);
|
|
72
72
|
var RovingFocusGroup = React__namespace.forwardRef(
|
|
73
73
|
(props, forwardedRef) => {
|
|
74
|
-
return /* @__PURE__ */
|
|
74
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Collection$4.Provider, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsxRuntime.jsx(Collection$4.Slot, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsxRuntime.jsx(RovingFocusGroupImpl, { ...props, ref: forwardedRef }) }) });
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
77
|
RovingFocusGroup.displayName = GROUP_NAME$3;
|
|
@@ -109,7 +109,7 @@ var RovingFocusGroupImpl = React__namespace.forwardRef((props, forwardedRef) =>
|
|
|
109
109
|
return () => node.removeEventListener(ENTRY_FOCUS, handleEntryFocus);
|
|
110
110
|
}
|
|
111
111
|
}, [handleEntryFocus]);
|
|
112
|
-
return /* @__PURE__ */
|
|
112
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
113
113
|
RovingFocusProvider,
|
|
114
114
|
{
|
|
115
115
|
scope: __scopeRovingFocusGroup,
|
|
@@ -130,7 +130,7 @@ var RovingFocusGroupImpl = React__namespace.forwardRef((props, forwardedRef) =>
|
|
|
130
130
|
() => setFocusableItemsCount((prevCount) => prevCount - 1),
|
|
131
131
|
[]
|
|
132
132
|
),
|
|
133
|
-
children: /* @__PURE__ */
|
|
133
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
134
134
|
textarea.Primitive.div,
|
|
135
135
|
{
|
|
136
136
|
tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,
|
|
@@ -188,14 +188,14 @@ var RovingFocusGroupItem = React__namespace.forwardRef(
|
|
|
188
188
|
return () => onFocusableItemRemove();
|
|
189
189
|
}
|
|
190
190
|
}, [focusable, onFocusableItemAdd, onFocusableItemRemove]);
|
|
191
|
-
return /* @__PURE__ */
|
|
191
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
192
192
|
Collection$4.ItemSlot,
|
|
193
193
|
{
|
|
194
194
|
scope: __scopeRovingFocusGroup,
|
|
195
195
|
id,
|
|
196
196
|
focusable,
|
|
197
197
|
active,
|
|
198
|
-
children: /* @__PURE__ */
|
|
198
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
199
199
|
textarea.Primitive.span,
|
|
200
200
|
{
|
|
201
201
|
tabIndex: isCurrentTabStop ? 0 : -1,
|
|
@@ -313,7 +313,7 @@ var Menu$1 = (props) => {
|
|
|
313
313
|
document.removeEventListener("pointermove", handlePointer, { capture: true });
|
|
314
314
|
};
|
|
315
315
|
}, []);
|
|
316
|
-
return /* @__PURE__ */
|
|
316
|
+
return /* @__PURE__ */ jsxRuntime.jsx(select.Root2, { ...popperScope, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
317
317
|
MenuProvider,
|
|
318
318
|
{
|
|
319
319
|
scope: __scopeMenu,
|
|
@@ -321,7 +321,7 @@ var Menu$1 = (props) => {
|
|
|
321
321
|
onOpenChange: handleOpenChange,
|
|
322
322
|
content,
|
|
323
323
|
onContentChange: setContent,
|
|
324
|
-
children: /* @__PURE__ */
|
|
324
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
325
325
|
MenuRootProvider,
|
|
326
326
|
{
|
|
327
327
|
scope: __scopeMenu,
|
|
@@ -341,7 +341,7 @@ var MenuAnchor = React__namespace.forwardRef(
|
|
|
341
341
|
(props, forwardedRef) => {
|
|
342
342
|
const { __scopeMenu, ...anchorProps } = props;
|
|
343
343
|
const popperScope = usePopperScope$2(__scopeMenu);
|
|
344
|
-
return /* @__PURE__ */
|
|
344
|
+
return /* @__PURE__ */ jsxRuntime.jsx(select.Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });
|
|
345
345
|
}
|
|
346
346
|
);
|
|
347
347
|
MenuAnchor.displayName = ANCHOR_NAME$1;
|
|
@@ -352,7 +352,7 @@ var [PortalProvider$2, usePortalContext$2] = createMenuContext(PORTAL_NAME$5, {
|
|
|
352
352
|
var MenuPortal = (props) => {
|
|
353
353
|
const { __scopeMenu, forceMount, children, container } = props;
|
|
354
354
|
const context = useMenuContext(PORTAL_NAME$5, __scopeMenu);
|
|
355
|
-
return /* @__PURE__ */
|
|
355
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PortalProvider$2, { scope: __scopeMenu, forceMount, children: /* @__PURE__ */ jsxRuntime.jsx(textarea.Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntime.jsx(textarea.Portal, { asChild: true, container, children }) }) });
|
|
356
356
|
};
|
|
357
357
|
MenuPortal.displayName = PORTAL_NAME$5;
|
|
358
358
|
var CONTENT_NAME$9 = "MenuContent";
|
|
@@ -363,7 +363,7 @@ var MenuContent = React__namespace.forwardRef(
|
|
|
363
363
|
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
|
364
364
|
const context = useMenuContext(CONTENT_NAME$9, props.__scopeMenu);
|
|
365
365
|
const rootContext = useMenuRootContext(CONTENT_NAME$9, props.__scopeMenu);
|
|
366
|
-
return /* @__PURE__ */
|
|
366
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Collection$3.Provider, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsxRuntime.jsx(textarea.Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntime.jsx(Collection$3.Slot, { scope: props.__scopeMenu, children: rootContext.modal ? /* @__PURE__ */ jsxRuntime.jsx(MenuRootContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsxRuntime.jsx(MenuRootContentNonModal, { ...contentProps, ref: forwardedRef }) }) }) });
|
|
367
367
|
}
|
|
368
368
|
);
|
|
369
369
|
var MenuRootContentModal = React__namespace.forwardRef(
|
|
@@ -375,7 +375,7 @@ var MenuRootContentModal = React__namespace.forwardRef(
|
|
|
375
375
|
const content = ref.current;
|
|
376
376
|
if (content) return textarea.hideOthers(content);
|
|
377
377
|
}, []);
|
|
378
|
-
return /* @__PURE__ */
|
|
378
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
379
379
|
MenuContentImpl,
|
|
380
380
|
{
|
|
381
381
|
...props,
|
|
@@ -395,7 +395,7 @@ var MenuRootContentModal = React__namespace.forwardRef(
|
|
|
395
395
|
);
|
|
396
396
|
var MenuRootContentNonModal = React__namespace.forwardRef((props, forwardedRef) => {
|
|
397
397
|
const context = useMenuContext(CONTENT_NAME$9, props.__scopeMenu);
|
|
398
|
-
return /* @__PURE__ */
|
|
398
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
399
399
|
MenuContentImpl,
|
|
400
400
|
{
|
|
401
401
|
...props,
|
|
@@ -467,7 +467,7 @@ var MenuContentImpl = React__namespace.forwardRef(
|
|
|
467
467
|
const isMovingTowards = pointerDirRef.current === pointerGraceIntentRef.current?.side;
|
|
468
468
|
return isMovingTowards && isPointerInGraceArea(event, pointerGraceIntentRef.current?.area);
|
|
469
469
|
}, []);
|
|
470
|
-
return /* @__PURE__ */
|
|
470
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
471
471
|
MenuContentProvider,
|
|
472
472
|
{
|
|
473
473
|
scope: __scopeMenu,
|
|
@@ -496,7 +496,7 @@ var MenuContentImpl = React__namespace.forwardRef(
|
|
|
496
496
|
onPointerGraceIntentChange: React__namespace.useCallback((intent) => {
|
|
497
497
|
pointerGraceIntentRef.current = intent;
|
|
498
498
|
}, []),
|
|
499
|
-
children: /* @__PURE__ */
|
|
499
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ScrollLockWrapper, { ...scrollLockWrapperProps, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
500
500
|
textarea.FocusScope,
|
|
501
501
|
{
|
|
502
502
|
asChild: true,
|
|
@@ -506,7 +506,7 @@ var MenuContentImpl = React__namespace.forwardRef(
|
|
|
506
506
|
contentRef.current?.focus({ preventScroll: true });
|
|
507
507
|
}),
|
|
508
508
|
onUnmountAutoFocus: onCloseAutoFocus,
|
|
509
|
-
children: /* @__PURE__ */
|
|
509
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
510
510
|
textarea.DismissableLayer,
|
|
511
511
|
{
|
|
512
512
|
asChild: true,
|
|
@@ -516,7 +516,7 @@ var MenuContentImpl = React__namespace.forwardRef(
|
|
|
516
516
|
onFocusOutside,
|
|
517
517
|
onInteractOutside,
|
|
518
518
|
onDismiss,
|
|
519
|
-
children: /* @__PURE__ */
|
|
519
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
520
520
|
Root$3,
|
|
521
521
|
{
|
|
522
522
|
asChild: true,
|
|
@@ -530,7 +530,7 @@ var MenuContentImpl = React__namespace.forwardRef(
|
|
|
530
530
|
if (!rootContext.isUsingKeyboardRef.current) event.preventDefault();
|
|
531
531
|
}),
|
|
532
532
|
preventScrollOnEntryFocus: true,
|
|
533
|
-
children: /* @__PURE__ */
|
|
533
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
534
534
|
select.Content,
|
|
535
535
|
{
|
|
536
536
|
role: "menu",
|
|
@@ -595,7 +595,7 @@ var GROUP_NAME$2 = "MenuGroup";
|
|
|
595
595
|
var MenuGroup = React__namespace.forwardRef(
|
|
596
596
|
(props, forwardedRef) => {
|
|
597
597
|
const { __scopeMenu, ...groupProps } = props;
|
|
598
|
-
return /* @__PURE__ */
|
|
598
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.Primitive.div, { role: "group", ...groupProps, ref: forwardedRef });
|
|
599
599
|
}
|
|
600
600
|
);
|
|
601
601
|
MenuGroup.displayName = GROUP_NAME$2;
|
|
@@ -603,7 +603,7 @@ var LABEL_NAME$2 = "MenuLabel";
|
|
|
603
603
|
var MenuLabel = React__namespace.forwardRef(
|
|
604
604
|
(props, forwardedRef) => {
|
|
605
605
|
const { __scopeMenu, ...labelProps } = props;
|
|
606
|
-
return /* @__PURE__ */
|
|
606
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.Primitive.div, { ...labelProps, ref: forwardedRef });
|
|
607
607
|
}
|
|
608
608
|
);
|
|
609
609
|
MenuLabel.displayName = LABEL_NAME$2;
|
|
@@ -630,7 +630,7 @@ var MenuItem = React__namespace.forwardRef(
|
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
632
|
};
|
|
633
|
-
return /* @__PURE__ */
|
|
633
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
634
634
|
MenuItemImpl,
|
|
635
635
|
{
|
|
636
636
|
...itemProps,
|
|
@@ -672,13 +672,13 @@ var MenuItemImpl = React__namespace.forwardRef(
|
|
|
672
672
|
setTextContent((menuItem.textContent ?? "").trim());
|
|
673
673
|
}
|
|
674
674
|
}, [itemProps.children]);
|
|
675
|
-
return /* @__PURE__ */
|
|
675
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
676
676
|
Collection$3.ItemSlot,
|
|
677
677
|
{
|
|
678
678
|
scope: __scopeMenu,
|
|
679
679
|
disabled,
|
|
680
680
|
textValue: textValue ?? textContent,
|
|
681
|
-
children: /* @__PURE__ */
|
|
681
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Item$2, { asChild: true, ...rovingFocusGroupScope, focusable: !disabled, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
682
682
|
textarea.Primitive.div,
|
|
683
683
|
{
|
|
684
684
|
role: "menuitem",
|
|
@@ -717,7 +717,7 @@ var CHECKBOX_ITEM_NAME$2 = "MenuCheckboxItem";
|
|
|
717
717
|
var MenuCheckboxItem = React__namespace.forwardRef(
|
|
718
718
|
(props, forwardedRef) => {
|
|
719
719
|
const { checked = false, onCheckedChange, ...checkboxItemProps } = props;
|
|
720
|
-
return /* @__PURE__ */
|
|
720
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ItemIndicatorProvider, { scope: props.__scopeMenu, checked, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
721
721
|
MenuItem,
|
|
722
722
|
{
|
|
723
723
|
role: "menuitemcheckbox",
|
|
@@ -745,7 +745,7 @@ var MenuRadioGroup = React__namespace.forwardRef(
|
|
|
745
745
|
(props, forwardedRef) => {
|
|
746
746
|
const { value, onValueChange, ...groupProps } = props;
|
|
747
747
|
const handleValueChange = textarea.useCallbackRef(onValueChange);
|
|
748
|
-
return /* @__PURE__ */
|
|
748
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RadioGroupProvider$1, { scope: props.__scopeMenu, value, onValueChange: handleValueChange, children: /* @__PURE__ */ jsxRuntime.jsx(MenuGroup, { ...groupProps, ref: forwardedRef }) });
|
|
749
749
|
}
|
|
750
750
|
);
|
|
751
751
|
MenuRadioGroup.displayName = RADIO_GROUP_NAME$3;
|
|
@@ -755,7 +755,7 @@ var MenuRadioItem = React__namespace.forwardRef(
|
|
|
755
755
|
const { value, ...radioItemProps } = props;
|
|
756
756
|
const context = useRadioGroupContext$1(RADIO_ITEM_NAME$2, props.__scopeMenu);
|
|
757
757
|
const checked = value === context.value;
|
|
758
|
-
return /* @__PURE__ */
|
|
758
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ItemIndicatorProvider, { scope: props.__scopeMenu, checked, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
759
759
|
MenuItem,
|
|
760
760
|
{
|
|
761
761
|
role: "menuitemradio",
|
|
@@ -782,11 +782,11 @@ var MenuItemIndicator = React__namespace.forwardRef(
|
|
|
782
782
|
(props, forwardedRef) => {
|
|
783
783
|
const { __scopeMenu, forceMount, ...itemIndicatorProps } = props;
|
|
784
784
|
const indicatorContext = useItemIndicatorContext(ITEM_INDICATOR_NAME, __scopeMenu);
|
|
785
|
-
return /* @__PURE__ */
|
|
785
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
786
786
|
textarea.Presence,
|
|
787
787
|
{
|
|
788
788
|
present: forceMount || isIndeterminate(indicatorContext.checked) || indicatorContext.checked === true,
|
|
789
|
-
children: /* @__PURE__ */
|
|
789
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
790
790
|
textarea.Primitive.span,
|
|
791
791
|
{
|
|
792
792
|
...itemIndicatorProps,
|
|
@@ -803,7 +803,7 @@ var SEPARATOR_NAME$2 = "MenuSeparator";
|
|
|
803
803
|
var MenuSeparator = React__namespace.forwardRef(
|
|
804
804
|
(props, forwardedRef) => {
|
|
805
805
|
const { __scopeMenu, ...separatorProps } = props;
|
|
806
|
-
return /* @__PURE__ */
|
|
806
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
807
807
|
textarea.Primitive.div,
|
|
808
808
|
{
|
|
809
809
|
role: "separator",
|
|
@@ -820,7 +820,7 @@ var MenuArrow = React__namespace.forwardRef(
|
|
|
820
820
|
(props, forwardedRef) => {
|
|
821
821
|
const { __scopeMenu, ...arrowProps } = props;
|
|
822
822
|
const popperScope = usePopperScope$2(__scopeMenu);
|
|
823
|
-
return /* @__PURE__ */
|
|
823
|
+
return /* @__PURE__ */ jsxRuntime.jsx(select.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });
|
|
824
824
|
}
|
|
825
825
|
);
|
|
826
826
|
MenuArrow.displayName = ARROW_NAME$4;
|
|
@@ -837,7 +837,7 @@ var MenuSub = (props) => {
|
|
|
837
837
|
if (parentMenuContext.open === false) handleOpenChange(false);
|
|
838
838
|
return () => handleOpenChange(false);
|
|
839
839
|
}, [parentMenuContext.open, handleOpenChange]);
|
|
840
|
-
return /* @__PURE__ */
|
|
840
|
+
return /* @__PURE__ */ jsxRuntime.jsx(select.Root2, { ...popperScope, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
841
841
|
MenuProvider,
|
|
842
842
|
{
|
|
843
843
|
scope: __scopeMenu,
|
|
@@ -845,7 +845,7 @@ var MenuSub = (props) => {
|
|
|
845
845
|
onOpenChange: handleOpenChange,
|
|
846
846
|
content,
|
|
847
847
|
onContentChange: setContent,
|
|
848
|
-
children: /* @__PURE__ */
|
|
848
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
849
849
|
MenuSubProvider,
|
|
850
850
|
{
|
|
851
851
|
scope: __scopeMenu,
|
|
@@ -882,7 +882,7 @@ var MenuSubTrigger = React__namespace.forwardRef(
|
|
|
882
882
|
onPointerGraceIntentChange(null);
|
|
883
883
|
};
|
|
884
884
|
}, [pointerGraceTimerRef, onPointerGraceIntentChange]);
|
|
885
|
-
return /* @__PURE__ */
|
|
885
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MenuAnchor, { asChild: true, ...scope, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
886
886
|
MenuItemImpl,
|
|
887
887
|
{
|
|
888
888
|
id: subContext.triggerId,
|
|
@@ -971,7 +971,7 @@ var MenuSubContent = React__namespace.forwardRef(
|
|
|
971
971
|
const subContext = useMenuSubContext(SUB_CONTENT_NAME$2, props.__scopeMenu);
|
|
972
972
|
const ref = React__namespace.useRef(null);
|
|
973
973
|
const composedRefs = index.useComposedRefs(forwardedRef, ref);
|
|
974
|
-
return /* @__PURE__ */
|
|
974
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Collection$3.Provider, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsxRuntime.jsx(textarea.Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntime.jsx(Collection$3.Slot, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
975
975
|
MenuContentImpl,
|
|
976
976
|
{
|
|
977
977
|
id: subContext.contentId,
|
|
@@ -1105,7 +1105,7 @@ var DropdownMenu$1 = (props) => {
|
|
|
1105
1105
|
onChange: onOpenChange,
|
|
1106
1106
|
caller: DROPDOWN_MENU_NAME
|
|
1107
1107
|
});
|
|
1108
|
-
return /* @__PURE__ */
|
|
1108
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1109
1109
|
DropdownMenuProvider,
|
|
1110
1110
|
{
|
|
1111
1111
|
scope: __scopeDropdownMenu,
|
|
@@ -1116,7 +1116,7 @@ var DropdownMenu$1 = (props) => {
|
|
|
1116
1116
|
onOpenChange: setOpen,
|
|
1117
1117
|
onOpenToggle: React__namespace.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
|
|
1118
1118
|
modal,
|
|
1119
|
-
children: /* @__PURE__ */
|
|
1119
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Root3$1, { ...menuScope, open, onOpenChange: setOpen, dir, modal, children })
|
|
1120
1120
|
}
|
|
1121
1121
|
);
|
|
1122
1122
|
};
|
|
@@ -1127,7 +1127,7 @@ var DropdownMenuTrigger$1 = React__namespace.forwardRef(
|
|
|
1127
1127
|
const { __scopeDropdownMenu, disabled = false, ...triggerProps } = props;
|
|
1128
1128
|
const context = useDropdownMenuContext(TRIGGER_NAME$8, __scopeDropdownMenu);
|
|
1129
1129
|
const menuScope = useMenuScope$1(__scopeDropdownMenu);
|
|
1130
|
-
return /* @__PURE__ */
|
|
1130
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Anchor2$1, { asChild: true, ...menuScope, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1131
1131
|
textarea.Primitive.button,
|
|
1132
1132
|
{
|
|
1133
1133
|
type: "button",
|
|
@@ -1161,7 +1161,7 @@ var PORTAL_NAME$4 = "DropdownMenuPortal";
|
|
|
1161
1161
|
var DropdownMenuPortal$1 = (props) => {
|
|
1162
1162
|
const { __scopeDropdownMenu, ...portalProps } = props;
|
|
1163
1163
|
const menuScope = useMenuScope$1(__scopeDropdownMenu);
|
|
1164
|
-
return /* @__PURE__ */
|
|
1164
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Portal$2, { ...menuScope, ...portalProps });
|
|
1165
1165
|
};
|
|
1166
1166
|
DropdownMenuPortal$1.displayName = PORTAL_NAME$4;
|
|
1167
1167
|
var CONTENT_NAME$8 = "DropdownMenuContent";
|
|
@@ -1171,7 +1171,7 @@ var DropdownMenuContent$1 = React__namespace.forwardRef(
|
|
|
1171
1171
|
const context = useDropdownMenuContext(CONTENT_NAME$8, __scopeDropdownMenu);
|
|
1172
1172
|
const menuScope = useMenuScope$1(__scopeDropdownMenu);
|
|
1173
1173
|
const hasInteractedOutsideRef = React__namespace.useRef(false);
|
|
1174
|
-
return /* @__PURE__ */
|
|
1174
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1175
1175
|
Content2$6,
|
|
1176
1176
|
{
|
|
1177
1177
|
id: context.contentId,
|
|
@@ -1211,7 +1211,7 @@ var DropdownMenuGroup$1 = React__namespace.forwardRef(
|
|
|
1211
1211
|
(props, forwardedRef) => {
|
|
1212
1212
|
const { __scopeDropdownMenu, ...groupProps } = props;
|
|
1213
1213
|
const menuScope = useMenuScope$1(__scopeDropdownMenu);
|
|
1214
|
-
return /* @__PURE__ */
|
|
1214
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Group, { ...menuScope, ...groupProps, ref: forwardedRef });
|
|
1215
1215
|
}
|
|
1216
1216
|
);
|
|
1217
1217
|
DropdownMenuGroup$1.displayName = GROUP_NAME$1;
|
|
@@ -1220,7 +1220,7 @@ var DropdownMenuLabel$1 = React__namespace.forwardRef(
|
|
|
1220
1220
|
(props, forwardedRef) => {
|
|
1221
1221
|
const { __scopeDropdownMenu, ...labelProps } = props;
|
|
1222
1222
|
const menuScope = useMenuScope$1(__scopeDropdownMenu);
|
|
1223
|
-
return /* @__PURE__ */
|
|
1223
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Label, { ...menuScope, ...labelProps, ref: forwardedRef });
|
|
1224
1224
|
}
|
|
1225
1225
|
);
|
|
1226
1226
|
DropdownMenuLabel$1.displayName = LABEL_NAME$1;
|
|
@@ -1229,7 +1229,7 @@ var DropdownMenuItem$1 = React__namespace.forwardRef(
|
|
|
1229
1229
|
(props, forwardedRef) => {
|
|
1230
1230
|
const { __scopeDropdownMenu, ...itemProps } = props;
|
|
1231
1231
|
const menuScope = useMenuScope$1(__scopeDropdownMenu);
|
|
1232
|
-
return /* @__PURE__ */
|
|
1232
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Item2$2, { ...menuScope, ...itemProps, ref: forwardedRef });
|
|
1233
1233
|
}
|
|
1234
1234
|
);
|
|
1235
1235
|
DropdownMenuItem$1.displayName = ITEM_NAME$4;
|
|
@@ -1237,35 +1237,35 @@ var CHECKBOX_ITEM_NAME$1 = "DropdownMenuCheckboxItem";
|
|
|
1237
1237
|
var DropdownMenuCheckboxItem$1 = React__namespace.forwardRef((props, forwardedRef) => {
|
|
1238
1238
|
const { __scopeDropdownMenu, ...checkboxItemProps } = props;
|
|
1239
1239
|
const menuScope = useMenuScope$1(__scopeDropdownMenu);
|
|
1240
|
-
return /* @__PURE__ */
|
|
1240
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CheckboxItem, { ...menuScope, ...checkboxItemProps, ref: forwardedRef });
|
|
1241
1241
|
});
|
|
1242
1242
|
DropdownMenuCheckboxItem$1.displayName = CHECKBOX_ITEM_NAME$1;
|
|
1243
1243
|
var RADIO_GROUP_NAME$2 = "DropdownMenuRadioGroup";
|
|
1244
1244
|
var DropdownMenuRadioGroup$1 = React__namespace.forwardRef((props, forwardedRef) => {
|
|
1245
1245
|
const { __scopeDropdownMenu, ...radioGroupProps } = props;
|
|
1246
1246
|
const menuScope = useMenuScope$1(__scopeDropdownMenu);
|
|
1247
|
-
return /* @__PURE__ */
|
|
1247
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RadioGroup$2, { ...menuScope, ...radioGroupProps, ref: forwardedRef });
|
|
1248
1248
|
});
|
|
1249
1249
|
DropdownMenuRadioGroup$1.displayName = RADIO_GROUP_NAME$2;
|
|
1250
1250
|
var RADIO_ITEM_NAME$1 = "DropdownMenuRadioItem";
|
|
1251
1251
|
var DropdownMenuRadioItem$1 = React__namespace.forwardRef((props, forwardedRef) => {
|
|
1252
1252
|
const { __scopeDropdownMenu, ...radioItemProps } = props;
|
|
1253
1253
|
const menuScope = useMenuScope$1(__scopeDropdownMenu);
|
|
1254
|
-
return /* @__PURE__ */
|
|
1254
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RadioItem, { ...menuScope, ...radioItemProps, ref: forwardedRef });
|
|
1255
1255
|
});
|
|
1256
1256
|
DropdownMenuRadioItem$1.displayName = RADIO_ITEM_NAME$1;
|
|
1257
1257
|
var INDICATOR_NAME$3 = "DropdownMenuItemIndicator";
|
|
1258
1258
|
var DropdownMenuItemIndicator = React__namespace.forwardRef((props, forwardedRef) => {
|
|
1259
1259
|
const { __scopeDropdownMenu, ...itemIndicatorProps } = props;
|
|
1260
1260
|
const menuScope = useMenuScope$1(__scopeDropdownMenu);
|
|
1261
|
-
return /* @__PURE__ */
|
|
1261
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ItemIndicator, { ...menuScope, ...itemIndicatorProps, ref: forwardedRef });
|
|
1262
1262
|
});
|
|
1263
1263
|
DropdownMenuItemIndicator.displayName = INDICATOR_NAME$3;
|
|
1264
1264
|
var SEPARATOR_NAME$1 = "DropdownMenuSeparator";
|
|
1265
1265
|
var DropdownMenuSeparator$1 = React__namespace.forwardRef((props, forwardedRef) => {
|
|
1266
1266
|
const { __scopeDropdownMenu, ...separatorProps } = props;
|
|
1267
1267
|
const menuScope = useMenuScope$1(__scopeDropdownMenu);
|
|
1268
|
-
return /* @__PURE__ */
|
|
1268
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Separator, { ...menuScope, ...separatorProps, ref: forwardedRef });
|
|
1269
1269
|
});
|
|
1270
1270
|
DropdownMenuSeparator$1.displayName = SEPARATOR_NAME$1;
|
|
1271
1271
|
var ARROW_NAME$3 = "DropdownMenuArrow";
|
|
@@ -1273,7 +1273,7 @@ var DropdownMenuArrow = React__namespace.forwardRef(
|
|
|
1273
1273
|
(props, forwardedRef) => {
|
|
1274
1274
|
const { __scopeDropdownMenu, ...arrowProps } = props;
|
|
1275
1275
|
const menuScope = useMenuScope$1(__scopeDropdownMenu);
|
|
1276
|
-
return /* @__PURE__ */
|
|
1276
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Arrow2, { ...menuScope, ...arrowProps, ref: forwardedRef });
|
|
1277
1277
|
}
|
|
1278
1278
|
);
|
|
1279
1279
|
DropdownMenuArrow.displayName = ARROW_NAME$3;
|
|
@@ -1286,20 +1286,20 @@ var DropdownMenuSub$1 = (props) => {
|
|
|
1286
1286
|
onChange: onOpenChange,
|
|
1287
1287
|
caller: "DropdownMenuSub"
|
|
1288
1288
|
});
|
|
1289
|
-
return /* @__PURE__ */
|
|
1289
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Sub, { ...menuScope, open, onOpenChange: setOpen, children });
|
|
1290
1290
|
};
|
|
1291
1291
|
var SUB_TRIGGER_NAME$1 = "DropdownMenuSubTrigger";
|
|
1292
1292
|
var DropdownMenuSubTrigger$1 = React__namespace.forwardRef((props, forwardedRef) => {
|
|
1293
1293
|
const { __scopeDropdownMenu, ...subTriggerProps } = props;
|
|
1294
1294
|
const menuScope = useMenuScope$1(__scopeDropdownMenu);
|
|
1295
|
-
return /* @__PURE__ */
|
|
1295
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SubTrigger, { ...menuScope, ...subTriggerProps, ref: forwardedRef });
|
|
1296
1296
|
});
|
|
1297
1297
|
DropdownMenuSubTrigger$1.displayName = SUB_TRIGGER_NAME$1;
|
|
1298
1298
|
var SUB_CONTENT_NAME$1 = "DropdownMenuSubContent";
|
|
1299
1299
|
var DropdownMenuSubContent$1 = React__namespace.forwardRef((props, forwardedRef) => {
|
|
1300
1300
|
const { __scopeDropdownMenu, ...subContentProps } = props;
|
|
1301
1301
|
const menuScope = useMenuScope$1(__scopeDropdownMenu);
|
|
1302
|
-
return /* @__PURE__ */
|
|
1302
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1303
1303
|
SubContent,
|
|
1304
1304
|
{
|
|
1305
1305
|
...menuScope,
|
|
@@ -1351,16 +1351,16 @@ const GripVertical = index$1.createLucideIcon("grip-vertical", __iconNode$1);
|
|
|
1351
1351
|
const __iconNode = [["path", { d: "M5 12h14", key: "1ays0h" }]];
|
|
1352
1352
|
const Minus = index$1.createLucideIcon("minus", __iconNode);
|
|
1353
1353
|
function DropdownMenu({ ...props }) {
|
|
1354
|
-
return /* @__PURE__ */
|
|
1354
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Root2$7, { "data-slot": "dropdown-menu", ...props });
|
|
1355
1355
|
}
|
|
1356
1356
|
function DropdownMenuPortal({ ...props }) {
|
|
1357
|
-
return /* @__PURE__ */
|
|
1357
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Portal2$2, { "data-slot": "dropdown-menu-portal", ...props });
|
|
1358
1358
|
}
|
|
1359
1359
|
function DropdownMenuTrigger({ ...props }) {
|
|
1360
|
-
return /* @__PURE__ */
|
|
1360
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Trigger$6, { "data-slot": "dropdown-menu-trigger", ...props });
|
|
1361
1361
|
}
|
|
1362
1362
|
function DropdownMenuContent({ className, sideOffset = 4, ...props }) {
|
|
1363
|
-
return /* @__PURE__ */
|
|
1363
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Portal2$2, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1364
1364
|
Content2$5,
|
|
1365
1365
|
{
|
|
1366
1366
|
"data-slot": "dropdown-menu-content",
|
|
@@ -1374,7 +1374,7 @@ function DropdownMenuContent({ className, sideOffset = 4, ...props }) {
|
|
|
1374
1374
|
) });
|
|
1375
1375
|
}
|
|
1376
1376
|
function DropdownMenuGroup({ ...props }) {
|
|
1377
|
-
return /* @__PURE__ */
|
|
1377
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Group2$1, { "data-slot": "dropdown-menu-group", ...props });
|
|
1378
1378
|
}
|
|
1379
1379
|
function DropdownMenuItem({
|
|
1380
1380
|
className,
|
|
@@ -1382,7 +1382,7 @@ function DropdownMenuItem({
|
|
|
1382
1382
|
variant = "default",
|
|
1383
1383
|
...props
|
|
1384
1384
|
}) {
|
|
1385
|
-
return /* @__PURE__ */
|
|
1385
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1386
1386
|
Item2$1,
|
|
1387
1387
|
{
|
|
1388
1388
|
"data-slot": "dropdown-menu-item",
|
|
@@ -1397,7 +1397,7 @@ function DropdownMenuItem({
|
|
|
1397
1397
|
);
|
|
1398
1398
|
}
|
|
1399
1399
|
function DropdownMenuCheckboxItem({ className, children, checked, ...props }) {
|
|
1400
|
-
return /* @__PURE__ */
|
|
1400
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1401
1401
|
CheckboxItem2$1,
|
|
1402
1402
|
{
|
|
1403
1403
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
@@ -1408,17 +1408,17 @@ function DropdownMenuCheckboxItem({ className, children, checked, ...props }) {
|
|
|
1408
1408
|
checked,
|
|
1409
1409
|
...props,
|
|
1410
1410
|
children: [
|
|
1411
|
-
/* @__PURE__ */
|
|
1411
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(ItemIndicator2$1, { children: /* @__PURE__ */ jsxRuntime.jsx(index$1.Check, { className: "size-4" }) }) }),
|
|
1412
1412
|
children
|
|
1413
1413
|
]
|
|
1414
1414
|
}
|
|
1415
1415
|
);
|
|
1416
1416
|
}
|
|
1417
1417
|
function DropdownMenuRadioGroup({ ...props }) {
|
|
1418
|
-
return /* @__PURE__ */
|
|
1418
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RadioGroup2$1, { "data-slot": "dropdown-menu-radio-group", ...props });
|
|
1419
1419
|
}
|
|
1420
1420
|
function DropdownMenuRadioItem({ className, children, ...props }) {
|
|
1421
|
-
return /* @__PURE__ */
|
|
1421
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1422
1422
|
RadioItem2$1,
|
|
1423
1423
|
{
|
|
1424
1424
|
"data-slot": "dropdown-menu-radio-item",
|
|
@@ -1428,7 +1428,7 @@ function DropdownMenuRadioItem({ className, children, ...props }) {
|
|
|
1428
1428
|
),
|
|
1429
1429
|
...props,
|
|
1430
1430
|
children: [
|
|
1431
|
-
/* @__PURE__ */
|
|
1431
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(ItemIndicator2$1, { children: /* @__PURE__ */ jsxRuntime.jsx(Circle, { className: "size-2 fill-current" }) }) }),
|
|
1432
1432
|
children
|
|
1433
1433
|
]
|
|
1434
1434
|
}
|
|
@@ -1439,7 +1439,7 @@ function DropdownMenuLabel({
|
|
|
1439
1439
|
inset,
|
|
1440
1440
|
...props
|
|
1441
1441
|
}) {
|
|
1442
|
-
return /* @__PURE__ */
|
|
1442
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1443
1443
|
Label2$1,
|
|
1444
1444
|
{
|
|
1445
1445
|
"data-slot": "dropdown-menu-label",
|
|
@@ -1450,13 +1450,13 @@ function DropdownMenuLabel({
|
|
|
1450
1450
|
);
|
|
1451
1451
|
}
|
|
1452
1452
|
function DropdownMenuSeparator({ className, ...props }) {
|
|
1453
|
-
return /* @__PURE__ */
|
|
1453
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Separator2$1, { "data-slot": "dropdown-menu-separator", className: utils.cn("bg-border -mx-1 my-1 h-px", className), ...props });
|
|
1454
1454
|
}
|
|
1455
1455
|
function DropdownMenuShortcut({ className, ...props }) {
|
|
1456
|
-
return /* @__PURE__ */
|
|
1456
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "dropdown-menu-shortcut", className: utils.cn("text-muted-foreground ml-auto text-xs tracking-widest", className), ...props });
|
|
1457
1457
|
}
|
|
1458
1458
|
function DropdownMenuSub({ ...props }) {
|
|
1459
|
-
return /* @__PURE__ */
|
|
1459
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Sub2$1, { "data-slot": "dropdown-menu-sub", ...props });
|
|
1460
1460
|
}
|
|
1461
1461
|
function DropdownMenuSubTrigger({
|
|
1462
1462
|
className,
|
|
@@ -1464,7 +1464,7 @@ function DropdownMenuSubTrigger({
|
|
|
1464
1464
|
children,
|
|
1465
1465
|
...props
|
|
1466
1466
|
}) {
|
|
1467
|
-
return /* @__PURE__ */
|
|
1467
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1468
1468
|
SubTrigger2$1,
|
|
1469
1469
|
{
|
|
1470
1470
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
@@ -1476,13 +1476,13 @@ function DropdownMenuSubTrigger({
|
|
|
1476
1476
|
...props,
|
|
1477
1477
|
children: [
|
|
1478
1478
|
children,
|
|
1479
|
-
/* @__PURE__ */
|
|
1479
|
+
/* @__PURE__ */ jsxRuntime.jsx(ChevronRight, { className: "ml-auto size-4" })
|
|
1480
1480
|
]
|
|
1481
1481
|
}
|
|
1482
1482
|
);
|
|
1483
1483
|
}
|
|
1484
1484
|
function DropdownMenuSubContent({ className, ...props }) {
|
|
1485
|
-
return /* @__PURE__ */
|
|
1485
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1486
1486
|
SubContent2$1,
|
|
1487
1487
|
{
|
|
1488
1488
|
"data-slot": "dropdown-menu-sub-content",
|
|
@@ -1519,7 +1519,7 @@ var Tabs$1 = React__namespace.forwardRef(
|
|
|
1519
1519
|
defaultProp: defaultValue ?? "",
|
|
1520
1520
|
caller: TABS_NAME
|
|
1521
1521
|
});
|
|
1522
|
-
return /* @__PURE__ */
|
|
1522
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1523
1523
|
TabsProvider,
|
|
1524
1524
|
{
|
|
1525
1525
|
scope: __scopeTabs,
|
|
@@ -1529,7 +1529,7 @@ var Tabs$1 = React__namespace.forwardRef(
|
|
|
1529
1529
|
orientation,
|
|
1530
1530
|
dir: direction,
|
|
1531
1531
|
activationMode,
|
|
1532
|
-
children: /* @__PURE__ */
|
|
1532
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1533
1533
|
textarea.Primitive.div,
|
|
1534
1534
|
{
|
|
1535
1535
|
dir: direction,
|
|
@@ -1549,7 +1549,7 @@ var TabsList$1 = React__namespace.forwardRef(
|
|
|
1549
1549
|
const { __scopeTabs, loop = true, ...listProps } = props;
|
|
1550
1550
|
const context = useTabsContext(TAB_LIST_NAME, __scopeTabs);
|
|
1551
1551
|
const rovingFocusGroupScope = useRovingFocusGroupScope$2(__scopeTabs);
|
|
1552
|
-
return /* @__PURE__ */
|
|
1552
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1553
1553
|
Root$3,
|
|
1554
1554
|
{
|
|
1555
1555
|
asChild: true,
|
|
@@ -1557,7 +1557,7 @@ var TabsList$1 = React__namespace.forwardRef(
|
|
|
1557
1557
|
orientation: context.orientation,
|
|
1558
1558
|
dir: context.dir,
|
|
1559
1559
|
loop,
|
|
1560
|
-
children: /* @__PURE__ */
|
|
1560
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1561
1561
|
textarea.Primitive.div,
|
|
1562
1562
|
{
|
|
1563
1563
|
role: "tablist",
|
|
@@ -1580,14 +1580,14 @@ var TabsTrigger$1 = React__namespace.forwardRef(
|
|
|
1580
1580
|
const triggerId = makeTriggerId$1(context.baseId, value);
|
|
1581
1581
|
const contentId = makeContentId$1(context.baseId, value);
|
|
1582
1582
|
const isSelected = value === context.value;
|
|
1583
|
-
return /* @__PURE__ */
|
|
1583
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1584
1584
|
Item$2,
|
|
1585
1585
|
{
|
|
1586
1586
|
asChild: true,
|
|
1587
1587
|
...rovingFocusGroupScope,
|
|
1588
1588
|
focusable: !disabled,
|
|
1589
1589
|
active: isSelected,
|
|
1590
|
-
children: /* @__PURE__ */
|
|
1590
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1591
1591
|
textarea.Primitive.button,
|
|
1592
1592
|
{
|
|
1593
1593
|
type: "button",
|
|
@@ -1636,7 +1636,7 @@ var TabsContent$1 = React__namespace.forwardRef(
|
|
|
1636
1636
|
const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);
|
|
1637
1637
|
return () => cancelAnimationFrame(rAF);
|
|
1638
1638
|
}, []);
|
|
1639
|
-
return /* @__PURE__ */
|
|
1639
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.Presence, { present: forceMount || isSelected, children: ({ present }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1640
1640
|
textarea.Primitive.div,
|
|
1641
1641
|
{
|
|
1642
1642
|
"data-state": isSelected ? "active" : "inactive",
|
|
@@ -1669,10 +1669,10 @@ var List$1 = TabsList$1;
|
|
|
1669
1669
|
var Trigger$5 = TabsTrigger$1;
|
|
1670
1670
|
var Content$2 = TabsContent$1;
|
|
1671
1671
|
function Tabs({ className, ...props }) {
|
|
1672
|
-
return /* @__PURE__ */
|
|
1672
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Root2$6, { "data-slot": "tabs", className: utils.cn("flex flex-col gap-2", className), ...props });
|
|
1673
1673
|
}
|
|
1674
1674
|
function TabsList({ className, ...props }) {
|
|
1675
|
-
return /* @__PURE__ */
|
|
1675
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1676
1676
|
List$1,
|
|
1677
1677
|
{
|
|
1678
1678
|
"data-slot": "tabs-list",
|
|
@@ -1682,7 +1682,7 @@ function TabsList({ className, ...props }) {
|
|
|
1682
1682
|
);
|
|
1683
1683
|
}
|
|
1684
1684
|
function TabsTrigger({ className, ...props }) {
|
|
1685
|
-
return /* @__PURE__ */
|
|
1685
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1686
1686
|
Trigger$5,
|
|
1687
1687
|
{
|
|
1688
1688
|
"data-slot": "tabs-trigger",
|
|
@@ -1695,13 +1695,13 @@ function TabsTrigger({ className, ...props }) {
|
|
|
1695
1695
|
);
|
|
1696
1696
|
}
|
|
1697
1697
|
function TabsContent({ className, ...props }) {
|
|
1698
|
-
return /* @__PURE__ */
|
|
1698
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Content$2, { "data-slot": "tabs-content", className: utils.cn("flex-1 outline-none", className), ...props });
|
|
1699
1699
|
}
|
|
1700
1700
|
function Skeleton({ className, ...props }) {
|
|
1701
|
-
return /* @__PURE__ */
|
|
1701
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "skeleton", className: utils.cn("bg-accent animate-pulse rounded-md", className), ...props });
|
|
1702
1702
|
}
|
|
1703
1703
|
function ResizablePanelGroup({ className, ...props }) {
|
|
1704
|
-
return /* @__PURE__ */
|
|
1704
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1705
1705
|
textarea.PanelGroup,
|
|
1706
1706
|
{
|
|
1707
1707
|
"data-slot": "resizable-panel-group",
|
|
@@ -1711,14 +1711,14 @@ function ResizablePanelGroup({ className, ...props }) {
|
|
|
1711
1711
|
);
|
|
1712
1712
|
}
|
|
1713
1713
|
function ResizablePanel({ ...props }) {
|
|
1714
|
-
return /* @__PURE__ */
|
|
1714
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.Panel, { "data-slot": "resizable-panel", ...props });
|
|
1715
1715
|
}
|
|
1716
1716
|
function ResizableHandle({
|
|
1717
1717
|
withHandle,
|
|
1718
1718
|
className,
|
|
1719
1719
|
...props
|
|
1720
1720
|
}) {
|
|
1721
|
-
return /* @__PURE__ */
|
|
1721
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1722
1722
|
textarea.PanelResizeHandle,
|
|
1723
1723
|
{
|
|
1724
1724
|
"data-slot": "resizable-handle",
|
|
@@ -1727,7 +1727,7 @@ function ResizableHandle({
|
|
|
1727
1727
|
className
|
|
1728
1728
|
),
|
|
1729
1729
|
...props,
|
|
1730
|
-
children: withHandle && /* @__PURE__ */
|
|
1730
|
+
children: withHandle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ jsxRuntime.jsx(GripVertical, { className: "size-2.5" }) })
|
|
1731
1731
|
}
|
|
1732
1732
|
);
|
|
1733
1733
|
}
|
|
@@ -1871,13 +1871,13 @@ var Avatar$1 = React__namespace.forwardRef(
|
|
|
1871
1871
|
(props, forwardedRef) => {
|
|
1872
1872
|
const { __scopeAvatar, ...avatarProps } = props;
|
|
1873
1873
|
const [imageLoadingStatus, setImageLoadingStatus] = React__namespace.useState("idle");
|
|
1874
|
-
return /* @__PURE__ */
|
|
1874
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1875
1875
|
AvatarProvider,
|
|
1876
1876
|
{
|
|
1877
1877
|
scope: __scopeAvatar,
|
|
1878
1878
|
imageLoadingStatus,
|
|
1879
1879
|
onImageLoadingStatusChange: setImageLoadingStatus,
|
|
1880
|
-
children: /* @__PURE__ */
|
|
1880
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(textarea.Primitive.span, { ...avatarProps, ref: forwardedRef })
|
|
1881
1881
|
}
|
|
1882
1882
|
);
|
|
1883
1883
|
}
|
|
@@ -1899,7 +1899,7 @@ var AvatarImage$1 = React__namespace.forwardRef(
|
|
|
1899
1899
|
handleLoadingStatusChange(imageLoadingStatus);
|
|
1900
1900
|
}
|
|
1901
1901
|
}, [imageLoadingStatus, handleLoadingStatusChange]);
|
|
1902
|
-
return imageLoadingStatus === "loaded" ? /* @__PURE__ */
|
|
1902
|
+
return imageLoadingStatus === "loaded" ? /* @__PURE__ */ jsxRuntime.jsx(textarea.Primitive.img, { ...imageProps, ref: forwardedRef, src }) : null;
|
|
1903
1903
|
}
|
|
1904
1904
|
);
|
|
1905
1905
|
AvatarImage$1.displayName = IMAGE_NAME;
|
|
@@ -1915,7 +1915,7 @@ var AvatarFallback$1 = React__namespace.forwardRef(
|
|
|
1915
1915
|
return () => window.clearTimeout(timerId);
|
|
1916
1916
|
}
|
|
1917
1917
|
}, [delayMs]);
|
|
1918
|
-
return canRender && context.imageLoadingStatus !== "loaded" ? /* @__PURE__ */
|
|
1918
|
+
return canRender && context.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ jsxRuntime.jsx(textarea.Primitive.span, { ...fallbackProps, ref: forwardedRef }) : null;
|
|
1919
1919
|
}
|
|
1920
1920
|
);
|
|
1921
1921
|
AvatarFallback$1.displayName = FALLBACK_NAME;
|
|
@@ -2008,7 +2008,7 @@ function Avatar({
|
|
|
2008
2008
|
size = "md",
|
|
2009
2009
|
...props
|
|
2010
2010
|
}) {
|
|
2011
|
-
return /* @__PURE__ */
|
|
2011
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Root$2, { "data-slot": "avatar", asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2012
2012
|
"span",
|
|
2013
2013
|
{
|
|
2014
2014
|
tabIndex: -1,
|
|
@@ -2019,10 +2019,10 @@ function Avatar({
|
|
|
2019
2019
|
) });
|
|
2020
2020
|
}
|
|
2021
2021
|
function AvatarImage({ className, ...props }) {
|
|
2022
|
-
return /* @__PURE__ */
|
|
2022
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Image, { "data-slot": "avatar-image", className: utils.cn("aspect-square size-full object-cover", className), ...props });
|
|
2023
2023
|
}
|
|
2024
2024
|
function AvatarFallback({ className, ...props }) {
|
|
2025
|
-
return /* @__PURE__ */
|
|
2025
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2026
2026
|
Fallback,
|
|
2027
2027
|
{
|
|
2028
2028
|
"data-slot": "avatar-fallback",
|
|
@@ -2055,7 +2055,7 @@ var Popover$1 = (props) => {
|
|
|
2055
2055
|
onChange: onOpenChange,
|
|
2056
2056
|
caller: POPOVER_NAME
|
|
2057
2057
|
});
|
|
2058
|
-
return /* @__PURE__ */
|
|
2058
|
+
return /* @__PURE__ */ jsxRuntime.jsx(select.Root2, { ...popperScope, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2059
2059
|
PopoverProvider,
|
|
2060
2060
|
{
|
|
2061
2061
|
scope: __scopePopover,
|
|
@@ -2084,7 +2084,7 @@ var PopoverAnchor$1 = React__namespace.forwardRef(
|
|
|
2084
2084
|
onCustomAnchorAdd();
|
|
2085
2085
|
return () => onCustomAnchorRemove();
|
|
2086
2086
|
}, [onCustomAnchorAdd, onCustomAnchorRemove]);
|
|
2087
|
-
return /* @__PURE__ */
|
|
2087
|
+
return /* @__PURE__ */ jsxRuntime.jsx(select.Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });
|
|
2088
2088
|
}
|
|
2089
2089
|
);
|
|
2090
2090
|
PopoverAnchor$1.displayName = ANCHOR_NAME;
|
|
@@ -2095,7 +2095,7 @@ var PopoverTrigger$1 = React__namespace.forwardRef(
|
|
|
2095
2095
|
const context = usePopoverContext(TRIGGER_NAME$6, __scopePopover);
|
|
2096
2096
|
const popperScope = usePopperScope$1(__scopePopover);
|
|
2097
2097
|
const composedTriggerRef = index.useComposedRefs(forwardedRef, context.triggerRef);
|
|
2098
|
-
const trigger = /* @__PURE__ */
|
|
2098
|
+
const trigger = /* @__PURE__ */ jsxRuntime.jsx(
|
|
2099
2099
|
textarea.Primitive.button,
|
|
2100
2100
|
{
|
|
2101
2101
|
type: "button",
|
|
@@ -2108,7 +2108,7 @@ var PopoverTrigger$1 = React__namespace.forwardRef(
|
|
|
2108
2108
|
onClick: textarea.composeEventHandlers(props.onClick, context.onOpenToggle)
|
|
2109
2109
|
}
|
|
2110
2110
|
);
|
|
2111
|
-
return context.hasCustomAnchor ? trigger : /* @__PURE__ */
|
|
2111
|
+
return context.hasCustomAnchor ? trigger : /* @__PURE__ */ jsxRuntime.jsx(select.Anchor, { asChild: true, ...popperScope, children: trigger });
|
|
2112
2112
|
}
|
|
2113
2113
|
);
|
|
2114
2114
|
PopoverTrigger$1.displayName = TRIGGER_NAME$6;
|
|
@@ -2119,7 +2119,7 @@ var [PortalProvider$1, usePortalContext$1] = createPopoverContext(PORTAL_NAME$3,
|
|
|
2119
2119
|
var PopoverPortal = (props) => {
|
|
2120
2120
|
const { __scopePopover, forceMount, children, container } = props;
|
|
2121
2121
|
const context = usePopoverContext(PORTAL_NAME$3, __scopePopover);
|
|
2122
|
-
return /* @__PURE__ */
|
|
2122
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PortalProvider$1, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ jsxRuntime.jsx(textarea.Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntime.jsx(textarea.Portal, { asChild: true, container, children }) }) });
|
|
2123
2123
|
};
|
|
2124
2124
|
PopoverPortal.displayName = PORTAL_NAME$3;
|
|
2125
2125
|
var CONTENT_NAME$6 = "PopoverContent";
|
|
@@ -2128,7 +2128,7 @@ var PopoverContent$1 = React__namespace.forwardRef(
|
|
|
2128
2128
|
const portalContext = usePortalContext$1(CONTENT_NAME$6, props.__scopePopover);
|
|
2129
2129
|
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
|
2130
2130
|
const context = usePopoverContext(CONTENT_NAME$6, props.__scopePopover);
|
|
2131
|
-
return /* @__PURE__ */
|
|
2131
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsxRuntime.jsx(PopoverContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsxRuntime.jsx(PopoverContentNonModal, { ...contentProps, ref: forwardedRef }) });
|
|
2132
2132
|
}
|
|
2133
2133
|
);
|
|
2134
2134
|
PopoverContent$1.displayName = CONTENT_NAME$6;
|
|
@@ -2143,7 +2143,7 @@ var PopoverContentModal = React__namespace.forwardRef(
|
|
|
2143
2143
|
const content = contentRef.current;
|
|
2144
2144
|
if (content) return textarea.hideOthers(content);
|
|
2145
2145
|
}, []);
|
|
2146
|
-
return /* @__PURE__ */
|
|
2146
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.ReactRemoveScroll, { as: Slot, allowPinchZoom: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2147
2147
|
PopoverContentImpl,
|
|
2148
2148
|
{
|
|
2149
2149
|
...props,
|
|
@@ -2178,7 +2178,7 @@ var PopoverContentNonModal = React__namespace.forwardRef(
|
|
|
2178
2178
|
const context = usePopoverContext(CONTENT_NAME$6, props.__scopePopover);
|
|
2179
2179
|
const hasInteractedOutsideRef = React__namespace.useRef(false);
|
|
2180
2180
|
const hasPointerDownOutsideRef = React__namespace.useRef(false);
|
|
2181
|
-
return /* @__PURE__ */
|
|
2181
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2182
2182
|
PopoverContentImpl,
|
|
2183
2183
|
{
|
|
2184
2184
|
...props,
|
|
@@ -2230,7 +2230,7 @@ var PopoverContentImpl = React__namespace.forwardRef(
|
|
|
2230
2230
|
const context = usePopoverContext(CONTENT_NAME$6, __scopePopover);
|
|
2231
2231
|
const popperScope = usePopperScope$1(__scopePopover);
|
|
2232
2232
|
textarea.useFocusGuards();
|
|
2233
|
-
return /* @__PURE__ */
|
|
2233
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2234
2234
|
textarea.FocusScope,
|
|
2235
2235
|
{
|
|
2236
2236
|
asChild: true,
|
|
@@ -2238,7 +2238,7 @@ var PopoverContentImpl = React__namespace.forwardRef(
|
|
|
2238
2238
|
trapped: trapFocus,
|
|
2239
2239
|
onMountAutoFocus: onOpenAutoFocus,
|
|
2240
2240
|
onUnmountAutoFocus: onCloseAutoFocus,
|
|
2241
|
-
children: /* @__PURE__ */
|
|
2241
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2242
2242
|
textarea.DismissableLayer,
|
|
2243
2243
|
{
|
|
2244
2244
|
asChild: true,
|
|
@@ -2248,7 +2248,7 @@ var PopoverContentImpl = React__namespace.forwardRef(
|
|
|
2248
2248
|
onPointerDownOutside,
|
|
2249
2249
|
onFocusOutside,
|
|
2250
2250
|
onDismiss: () => context.onOpenChange(false),
|
|
2251
|
-
children: /* @__PURE__ */
|
|
2251
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2252
2252
|
select.Content,
|
|
2253
2253
|
{
|
|
2254
2254
|
"data-state": getState$3(context.open),
|
|
@@ -2281,7 +2281,7 @@ var PopoverClose = React__namespace.forwardRef(
|
|
|
2281
2281
|
(props, forwardedRef) => {
|
|
2282
2282
|
const { __scopePopover, ...closeProps } = props;
|
|
2283
2283
|
const context = usePopoverContext(CLOSE_NAME, __scopePopover);
|
|
2284
|
-
return /* @__PURE__ */
|
|
2284
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2285
2285
|
textarea.Primitive.button,
|
|
2286
2286
|
{
|
|
2287
2287
|
type: "button",
|
|
@@ -2298,7 +2298,7 @@ var PopoverArrow = React__namespace.forwardRef(
|
|
|
2298
2298
|
(props, forwardedRef) => {
|
|
2299
2299
|
const { __scopePopover, ...arrowProps } = props;
|
|
2300
2300
|
const popperScope = usePopperScope$1(__scopePopover);
|
|
2301
|
-
return /* @__PURE__ */
|
|
2301
|
+
return /* @__PURE__ */ jsxRuntime.jsx(select.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });
|
|
2302
2302
|
}
|
|
2303
2303
|
);
|
|
2304
2304
|
PopoverArrow.displayName = ARROW_NAME$2;
|
|
@@ -2311,13 +2311,13 @@ var Trigger$4 = PopoverTrigger$1;
|
|
|
2311
2311
|
var Portal$1 = PopoverPortal;
|
|
2312
2312
|
var Content2$4 = PopoverContent$1;
|
|
2313
2313
|
function Popover({ ...props }) {
|
|
2314
|
-
return /* @__PURE__ */
|
|
2314
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Root2$5, { "data-slot": "popover", ...props });
|
|
2315
2315
|
}
|
|
2316
2316
|
function PopoverTrigger({ ...props }) {
|
|
2317
|
-
return /* @__PURE__ */
|
|
2317
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Trigger$4, { "data-slot": "popover-trigger", ...props });
|
|
2318
2318
|
}
|
|
2319
2319
|
function PopoverContent({ className, align = "center", sideOffset = 4, ...props }) {
|
|
2320
|
-
return /* @__PURE__ */
|
|
2320
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Portal$1, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2321
2321
|
Content2$4,
|
|
2322
2322
|
{
|
|
2323
2323
|
"data-slot": "popover-content",
|
|
@@ -2332,7 +2332,7 @@ function PopoverContent({ className, align = "center", sideOffset = 4, ...props
|
|
|
2332
2332
|
) });
|
|
2333
2333
|
}
|
|
2334
2334
|
function PopoverAnchor({ ...props }) {
|
|
2335
|
-
return /* @__PURE__ */
|
|
2335
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Anchor2, { "data-slot": "popover-anchor", ...props });
|
|
2336
2336
|
}
|
|
2337
2337
|
var U = 1, Y$1 = 0.9, H = 0.8, J = 0.17, p = 0.1, u = 0.999, $ = 0.9999;
|
|
2338
2338
|
var k$1 = 0.99, m = /[\\\/_+.#"@\[\(\{&]/, B$1 = /[\\\/_+.#"@\[\(\{&]/g, K$1 = /[\s-]/, X = /[\s-]/g;
|
|
@@ -2642,7 +2642,7 @@ function B({ asChild: r, children: o }, n) {
|
|
|
2642
2642
|
}
|
|
2643
2643
|
var Te = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
2644
2644
|
function Command({ className, ...props }) {
|
|
2645
|
-
return /* @__PURE__ */
|
|
2645
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2646
2646
|
_e,
|
|
2647
2647
|
{
|
|
2648
2648
|
"data-slot": "command",
|
|
@@ -2659,18 +2659,18 @@ function CommandDialog({
|
|
|
2659
2659
|
showCloseButton = true,
|
|
2660
2660
|
...props
|
|
2661
2661
|
}) {
|
|
2662
|
-
return /* @__PURE__ */
|
|
2663
|
-
/* @__PURE__ */
|
|
2664
|
-
/* @__PURE__ */
|
|
2665
|
-
/* @__PURE__ */
|
|
2662
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(textarea.Dialog, { ...props, children: [
|
|
2663
|
+
/* @__PURE__ */ jsxRuntime.jsxs(textarea.DialogHeader, { className: "sr-only", children: [
|
|
2664
|
+
/* @__PURE__ */ jsxRuntime.jsx(textarea.DialogTitle, { children: title }),
|
|
2665
|
+
/* @__PURE__ */ jsxRuntime.jsx(textarea.DialogDescription, { children: description })
|
|
2666
2666
|
] }),
|
|
2667
|
-
/* @__PURE__ */
|
|
2667
|
+
/* @__PURE__ */ jsxRuntime.jsx(textarea.DialogContent, { className: utils.cn("overflow-hidden p-0", className), showCloseButton, children: /* @__PURE__ */ jsxRuntime.jsx(Command, { className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) })
|
|
2668
2668
|
] });
|
|
2669
2669
|
}
|
|
2670
2670
|
function CommandInput({ className, ...props }) {
|
|
2671
|
-
return /* @__PURE__ */
|
|
2672
|
-
/* @__PURE__ */
|
|
2673
|
-
/* @__PURE__ */
|
|
2671
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "command-input-wrapper", className: "flex h-9 items-center gap-2 border-b px-3", children: [
|
|
2672
|
+
/* @__PURE__ */ jsxRuntime.jsx(scrollArea.Search, { className: "size-4 shrink-0 opacity-50" }),
|
|
2673
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2674
2674
|
_e.Input,
|
|
2675
2675
|
{
|
|
2676
2676
|
"data-slot": "command-input",
|
|
@@ -2684,7 +2684,7 @@ function CommandInput({ className, ...props }) {
|
|
|
2684
2684
|
] });
|
|
2685
2685
|
}
|
|
2686
2686
|
function CommandList({ className, ...props }) {
|
|
2687
|
-
return /* @__PURE__ */
|
|
2687
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2688
2688
|
_e.List,
|
|
2689
2689
|
{
|
|
2690
2690
|
"data-slot": "command-list",
|
|
@@ -2694,10 +2694,10 @@ function CommandList({ className, ...props }) {
|
|
|
2694
2694
|
);
|
|
2695
2695
|
}
|
|
2696
2696
|
function CommandEmpty({ ...props }) {
|
|
2697
|
-
return /* @__PURE__ */
|
|
2697
|
+
return /* @__PURE__ */ jsxRuntime.jsx(_e.Empty, { "data-slot": "command-empty", className: "py-6 text-center text-sm", ...props });
|
|
2698
2698
|
}
|
|
2699
2699
|
function CommandGroup({ className, ...props }) {
|
|
2700
|
-
return /* @__PURE__ */
|
|
2700
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2701
2701
|
_e.Group,
|
|
2702
2702
|
{
|
|
2703
2703
|
"data-slot": "command-group",
|
|
@@ -2710,10 +2710,10 @@ function CommandGroup({ className, ...props }) {
|
|
|
2710
2710
|
);
|
|
2711
2711
|
}
|
|
2712
2712
|
function CommandSeparator({ className, ...props }) {
|
|
2713
|
-
return /* @__PURE__ */
|
|
2713
|
+
return /* @__PURE__ */ jsxRuntime.jsx(_e.Separator, { "data-slot": "command-separator", className: utils.cn("bg-border -mx-1 h-px", className), ...props });
|
|
2714
2714
|
}
|
|
2715
2715
|
function CommandItem({ className, ...props }) {
|
|
2716
|
-
return /* @__PURE__ */
|
|
2716
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2717
2717
|
_e.Item,
|
|
2718
2718
|
{
|
|
2719
2719
|
"data-slot": "command-item",
|
|
@@ -2726,7 +2726,7 @@ function CommandItem({ className, ...props }) {
|
|
|
2726
2726
|
);
|
|
2727
2727
|
}
|
|
2728
2728
|
function CommandShortcut({ className, ...props }) {
|
|
2729
|
-
return /* @__PURE__ */
|
|
2729
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "command-shortcut", className: utils.cn("text-muted-foreground ml-auto text-xs tracking-widest", className), ...props });
|
|
2730
2730
|
}
|
|
2731
2731
|
var COLLAPSIBLE_NAME = "Collapsible";
|
|
2732
2732
|
var [createCollapsibleContext, createCollapsibleScope] = textarea.createContextScope(COLLAPSIBLE_NAME);
|
|
@@ -2747,7 +2747,7 @@ var Collapsible = React__namespace.forwardRef(
|
|
|
2747
2747
|
onChange: onOpenChange,
|
|
2748
2748
|
caller: COLLAPSIBLE_NAME
|
|
2749
2749
|
});
|
|
2750
|
-
return /* @__PURE__ */
|
|
2750
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2751
2751
|
CollapsibleProvider,
|
|
2752
2752
|
{
|
|
2753
2753
|
scope: __scopeCollapsible,
|
|
@@ -2755,7 +2755,7 @@ var Collapsible = React__namespace.forwardRef(
|
|
|
2755
2755
|
contentId: textarea.useId(),
|
|
2756
2756
|
open,
|
|
2757
2757
|
onOpenToggle: React__namespace.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
|
|
2758
|
-
children: /* @__PURE__ */
|
|
2758
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2759
2759
|
textarea.Primitive.div,
|
|
2760
2760
|
{
|
|
2761
2761
|
"data-state": getState$2(open),
|
|
@@ -2774,7 +2774,7 @@ var CollapsibleTrigger = React__namespace.forwardRef(
|
|
|
2774
2774
|
(props, forwardedRef) => {
|
|
2775
2775
|
const { __scopeCollapsible, ...triggerProps } = props;
|
|
2776
2776
|
const context = useCollapsibleContext(TRIGGER_NAME$5, __scopeCollapsible);
|
|
2777
|
-
return /* @__PURE__ */
|
|
2777
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2778
2778
|
textarea.Primitive.button,
|
|
2779
2779
|
{
|
|
2780
2780
|
type: "button",
|
|
@@ -2796,7 +2796,7 @@ var CollapsibleContent = React__namespace.forwardRef(
|
|
|
2796
2796
|
(props, forwardedRef) => {
|
|
2797
2797
|
const { forceMount, ...contentProps } = props;
|
|
2798
2798
|
const context = useCollapsibleContext(CONTENT_NAME$5, props.__scopeCollapsible);
|
|
2799
|
-
return /* @__PURE__ */
|
|
2799
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsxRuntime.jsx(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });
|
|
2800
2800
|
}
|
|
2801
2801
|
);
|
|
2802
2802
|
CollapsibleContent.displayName = CONTENT_NAME$5;
|
|
@@ -2836,7 +2836,7 @@ var CollapsibleContentImpl = React__namespace.forwardRef((props, forwardedRef) =
|
|
|
2836
2836
|
setIsPresent(present);
|
|
2837
2837
|
}
|
|
2838
2838
|
}, [context.open, present]);
|
|
2839
|
-
return /* @__PURE__ */
|
|
2839
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2840
2840
|
textarea.Primitive.div,
|
|
2841
2841
|
{
|
|
2842
2842
|
"data-state": getState$2(context.open),
|
|
@@ -2873,7 +2873,7 @@ var Accordion$1 = React.forwardRef(
|
|
|
2873
2873
|
const { type, ...accordionProps } = props;
|
|
2874
2874
|
const singleProps = accordionProps;
|
|
2875
2875
|
const multipleProps = accordionProps;
|
|
2876
|
-
return /* @__PURE__ */
|
|
2876
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Collection$2.Provider, { scope: props.__scopeAccordion, children: type === "multiple" ? /* @__PURE__ */ jsxRuntime.jsx(AccordionImplMultiple, { ...multipleProps, ref: forwardedRef }) : /* @__PURE__ */ jsxRuntime.jsx(AccordionImplSingle, { ...singleProps, ref: forwardedRef }) });
|
|
2877
2877
|
}
|
|
2878
2878
|
);
|
|
2879
2879
|
Accordion$1.displayName = ACCORDION_NAME;
|
|
@@ -2898,14 +2898,14 @@ var AccordionImplSingle = React.forwardRef(
|
|
|
2898
2898
|
onChange: onValueChange,
|
|
2899
2899
|
caller: ACCORDION_NAME
|
|
2900
2900
|
});
|
|
2901
|
-
return /* @__PURE__ */
|
|
2901
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2902
2902
|
AccordionValueProvider,
|
|
2903
2903
|
{
|
|
2904
2904
|
scope: props.__scopeAccordion,
|
|
2905
2905
|
value: React.useMemo(() => value ? [value] : [], [value]),
|
|
2906
2906
|
onItemOpen: setValue,
|
|
2907
2907
|
onItemClose: React.useCallback(() => collapsible && setValue(""), [collapsible, setValue]),
|
|
2908
|
-
children: /* @__PURE__ */
|
|
2908
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AccordionCollapsibleProvider, { scope: props.__scopeAccordion, collapsible, children: /* @__PURE__ */ jsxRuntime.jsx(AccordionImpl, { ...accordionSingleProps, ref: forwardedRef }) })
|
|
2909
2909
|
}
|
|
2910
2910
|
);
|
|
2911
2911
|
}
|
|
@@ -2932,14 +2932,14 @@ var AccordionImplMultiple = React.forwardRef((props, forwardedRef) => {
|
|
|
2932
2932
|
(itemValue) => setValue((prevValue = []) => prevValue.filter((value2) => value2 !== itemValue)),
|
|
2933
2933
|
[setValue]
|
|
2934
2934
|
);
|
|
2935
|
-
return /* @__PURE__ */
|
|
2935
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2936
2936
|
AccordionValueProvider,
|
|
2937
2937
|
{
|
|
2938
2938
|
scope: props.__scopeAccordion,
|
|
2939
2939
|
value,
|
|
2940
2940
|
onItemOpen: handleItemOpen,
|
|
2941
2941
|
onItemClose: handleItemClose,
|
|
2942
|
-
children: /* @__PURE__ */
|
|
2942
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AccordionCollapsibleProvider, { scope: props.__scopeAccordion, collapsible: true, children: /* @__PURE__ */ jsxRuntime.jsx(AccordionImpl, { ...accordionMultipleProps, ref: forwardedRef }) })
|
|
2943
2943
|
}
|
|
2944
2944
|
);
|
|
2945
2945
|
});
|
|
@@ -3014,14 +3014,14 @@ var AccordionImpl = React.forwardRef(
|
|
|
3014
3014
|
const clampedIndex = nextIndex % triggerCount;
|
|
3015
3015
|
triggerCollection[clampedIndex].ref.current?.focus();
|
|
3016
3016
|
});
|
|
3017
|
-
return /* @__PURE__ */
|
|
3017
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3018
3018
|
AccordionImplProvider,
|
|
3019
3019
|
{
|
|
3020
3020
|
scope: __scopeAccordion,
|
|
3021
3021
|
disabled,
|
|
3022
3022
|
direction: dir,
|
|
3023
3023
|
orientation,
|
|
3024
|
-
children: /* @__PURE__ */
|
|
3024
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Collection$2.Slot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3025
3025
|
textarea.Primitive.div,
|
|
3026
3026
|
{
|
|
3027
3027
|
...accordionProps,
|
|
@@ -3045,14 +3045,14 @@ var AccordionItem$1 = React.forwardRef(
|
|
|
3045
3045
|
const triggerId = textarea.useId();
|
|
3046
3046
|
const open = value && valueContext.value.includes(value) || false;
|
|
3047
3047
|
const disabled = accordionContext.disabled || props.disabled;
|
|
3048
|
-
return /* @__PURE__ */
|
|
3048
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3049
3049
|
AccordionItemProvider,
|
|
3050
3050
|
{
|
|
3051
3051
|
scope: __scopeAccordion,
|
|
3052
3052
|
open,
|
|
3053
3053
|
disabled,
|
|
3054
3054
|
triggerId,
|
|
3055
|
-
children: /* @__PURE__ */
|
|
3055
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3056
3056
|
Root$1,
|
|
3057
3057
|
{
|
|
3058
3058
|
"data-orientation": accordionContext.orientation,
|
|
@@ -3082,7 +3082,7 @@ var AccordionHeader = React.forwardRef(
|
|
|
3082
3082
|
const { __scopeAccordion, ...headerProps } = props;
|
|
3083
3083
|
const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);
|
|
3084
3084
|
const itemContext = useAccordionItemContext(HEADER_NAME, __scopeAccordion);
|
|
3085
|
-
return /* @__PURE__ */
|
|
3085
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3086
3086
|
textarea.Primitive.h3,
|
|
3087
3087
|
{
|
|
3088
3088
|
"data-orientation": accordionContext.orientation,
|
|
@@ -3103,7 +3103,7 @@ var AccordionTrigger$1 = React.forwardRef(
|
|
|
3103
3103
|
const itemContext = useAccordionItemContext(TRIGGER_NAME$4, __scopeAccordion);
|
|
3104
3104
|
const collapsibleContext = useAccordionCollapsibleContext(TRIGGER_NAME$4, __scopeAccordion);
|
|
3105
3105
|
const collapsibleScope = useCollapsibleScope(__scopeAccordion);
|
|
3106
|
-
return /* @__PURE__ */
|
|
3106
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Collection$2.ItemSlot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3107
3107
|
Trigger$3,
|
|
3108
3108
|
{
|
|
3109
3109
|
"aria-disabled": itemContext.open && !collapsibleContext.collapsible || void 0,
|
|
@@ -3124,7 +3124,7 @@ var AccordionContent$1 = React.forwardRef(
|
|
|
3124
3124
|
const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);
|
|
3125
3125
|
const itemContext = useAccordionItemContext(CONTENT_NAME$4, __scopeAccordion);
|
|
3126
3126
|
const collapsibleScope = useCollapsibleScope(__scopeAccordion);
|
|
3127
|
-
return /* @__PURE__ */
|
|
3127
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3128
3128
|
Content$1,
|
|
3129
3129
|
{
|
|
3130
3130
|
role: "region",
|
|
@@ -3152,13 +3152,13 @@ var Header = AccordionHeader;
|
|
|
3152
3152
|
var Trigger2$1 = AccordionTrigger$1;
|
|
3153
3153
|
var Content2$3 = AccordionContent$1;
|
|
3154
3154
|
function Accordion({ ...props }) {
|
|
3155
|
-
return /* @__PURE__ */
|
|
3155
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Root2$4, { "data-slot": "accordion", ...props });
|
|
3156
3156
|
}
|
|
3157
3157
|
function AccordionItem({ className, ...props }) {
|
|
3158
|
-
return /* @__PURE__ */
|
|
3158
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Item$1, { "data-slot": "accordion-item", className: utils.cn("border-b last:border-b-0", className), ...props });
|
|
3159
3159
|
}
|
|
3160
3160
|
function AccordionTrigger({ className, children, ...props }) {
|
|
3161
|
-
return /* @__PURE__ */
|
|
3161
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3162
3162
|
Trigger2$1,
|
|
3163
3163
|
{
|
|
3164
3164
|
"data-slot": "accordion-trigger",
|
|
@@ -3169,19 +3169,19 @@ function AccordionTrigger({ className, children, ...props }) {
|
|
|
3169
3169
|
...props,
|
|
3170
3170
|
children: [
|
|
3171
3171
|
children,
|
|
3172
|
-
/* @__PURE__ */
|
|
3172
|
+
/* @__PURE__ */ jsxRuntime.jsx(index$1.ChevronDown, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
|
|
3173
3173
|
]
|
|
3174
3174
|
}
|
|
3175
3175
|
) });
|
|
3176
3176
|
}
|
|
3177
3177
|
function AccordionContent({ className, children, ...props }) {
|
|
3178
|
-
return /* @__PURE__ */
|
|
3178
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3179
3179
|
Content2$3,
|
|
3180
3180
|
{
|
|
3181
3181
|
"data-slot": "accordion-content",
|
|
3182
3182
|
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
|
|
3183
3183
|
...props,
|
|
3184
|
-
children: /* @__PURE__ */
|
|
3184
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: utils.cn("pt-0 pb-4", className), children })
|
|
3185
3185
|
}
|
|
3186
3186
|
);
|
|
3187
3187
|
}
|
|
@@ -3266,7 +3266,7 @@ var NavigationMenu$1 = React__namespace.forwardRef(
|
|
|
3266
3266
|
window.clearTimeout(skipDelayTimerRef.current);
|
|
3267
3267
|
};
|
|
3268
3268
|
}, []);
|
|
3269
|
-
return /* @__PURE__ */
|
|
3269
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3270
3270
|
NavigationMenuProvider,
|
|
3271
3271
|
{
|
|
3272
3272
|
scope: __scopeNavigationMenu,
|
|
@@ -3290,7 +3290,7 @@ var NavigationMenu$1 = React__namespace.forwardRef(
|
|
|
3290
3290
|
setValue((prevValue) => prevValue === itemValue ? "" : itemValue);
|
|
3291
3291
|
},
|
|
3292
3292
|
onItemDismiss: () => setValue(""),
|
|
3293
|
-
children: /* @__PURE__ */
|
|
3293
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3294
3294
|
textarea.Primitive.nav,
|
|
3295
3295
|
{
|
|
3296
3296
|
"aria-label": "Main",
|
|
@@ -3323,7 +3323,7 @@ var NavigationMenuSub = React__namespace.forwardRef(
|
|
|
3323
3323
|
defaultProp: defaultValue ?? "",
|
|
3324
3324
|
caller: SUB_NAME$1
|
|
3325
3325
|
});
|
|
3326
|
-
return /* @__PURE__ */
|
|
3326
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3327
3327
|
NavigationMenuProvider,
|
|
3328
3328
|
{
|
|
3329
3329
|
scope: __scopeNavigationMenu,
|
|
@@ -3335,7 +3335,7 @@ var NavigationMenuSub = React__namespace.forwardRef(
|
|
|
3335
3335
|
onTriggerEnter: (itemValue) => setValue(itemValue),
|
|
3336
3336
|
onItemSelect: (itemValue) => setValue(itemValue),
|
|
3337
3337
|
onItemDismiss: () => setValue(""),
|
|
3338
|
-
children: /* @__PURE__ */
|
|
3338
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(textarea.Primitive.div, { "data-orientation": orientation, ...subProps, ref: forwardedRef })
|
|
3339
3339
|
}
|
|
3340
3340
|
);
|
|
3341
3341
|
}
|
|
@@ -3360,7 +3360,7 @@ var NavigationMenuProvider = (props) => {
|
|
|
3360
3360
|
const [viewport, setViewport] = React__namespace.useState(null);
|
|
3361
3361
|
const [viewportContent, setViewportContent] = React__namespace.useState(/* @__PURE__ */ new Map());
|
|
3362
3362
|
const [indicatorTrack, setIndicatorTrack] = React__namespace.useState(null);
|
|
3363
|
-
return /* @__PURE__ */
|
|
3363
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3364
3364
|
NavigationMenuProviderImpl,
|
|
3365
3365
|
{
|
|
3366
3366
|
scope,
|
|
@@ -3394,7 +3394,7 @@ var NavigationMenuProvider = (props) => {
|
|
|
3394
3394
|
return new Map(prevContent);
|
|
3395
3395
|
});
|
|
3396
3396
|
}, []),
|
|
3397
|
-
children: /* @__PURE__ */
|
|
3397
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Collection$1.Provider, { scope, children: /* @__PURE__ */ jsxRuntime.jsx(ViewportContentProvider, { scope, items: viewportContent, children }) })
|
|
3398
3398
|
}
|
|
3399
3399
|
);
|
|
3400
3400
|
};
|
|
@@ -3403,8 +3403,8 @@ var NavigationMenuList$1 = React__namespace.forwardRef(
|
|
|
3403
3403
|
(props, forwardedRef) => {
|
|
3404
3404
|
const { __scopeNavigationMenu, ...listProps } = props;
|
|
3405
3405
|
const context = useNavigationMenuContext(LIST_NAME, __scopeNavigationMenu);
|
|
3406
|
-
const list = /* @__PURE__ */
|
|
3407
|
-
return /* @__PURE__ */
|
|
3406
|
+
const list = /* @__PURE__ */ jsxRuntime.jsx(textarea.Primitive.ul, { "data-orientation": context.orientation, ...listProps, ref: forwardedRef });
|
|
3407
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.Primitive.div, { style: { position: "relative" }, ref: context.onIndicatorTrackChange, children: /* @__PURE__ */ jsxRuntime.jsx(Collection$1.Slot, { scope: __scopeNavigationMenu, children: context.isRootMenu ? /* @__PURE__ */ jsxRuntime.jsx(FocusGroup, { asChild: true, children: list }) : list }) });
|
|
3408
3408
|
}
|
|
3409
3409
|
);
|
|
3410
3410
|
NavigationMenuList$1.displayName = LIST_NAME;
|
|
@@ -3434,7 +3434,7 @@ var NavigationMenuItem$1 = React__namespace.forwardRef(
|
|
|
3434
3434
|
if (candidates.length) restoreContentTabOrderRef.current = removeFromTabOrder(candidates);
|
|
3435
3435
|
}
|
|
3436
3436
|
}, []);
|
|
3437
|
-
return /* @__PURE__ */
|
|
3437
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3438
3438
|
NavigationMenuItemContextProvider,
|
|
3439
3439
|
{
|
|
3440
3440
|
scope: __scopeNavigationMenu,
|
|
@@ -3447,7 +3447,7 @@ var NavigationMenuItem$1 = React__namespace.forwardRef(
|
|
|
3447
3447
|
onFocusProxyEnter: handleContentEntry,
|
|
3448
3448
|
onRootContentClose: handleContentExit,
|
|
3449
3449
|
onContentFocusOutside: handleContentExit,
|
|
3450
|
-
children: /* @__PURE__ */
|
|
3450
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(textarea.Primitive.li, { ...itemProps, ref: forwardedRef })
|
|
3451
3451
|
}
|
|
3452
3452
|
);
|
|
3453
3453
|
}
|
|
@@ -3465,8 +3465,8 @@ var NavigationMenuTrigger$1 = React__namespace.forwardRef((props, forwardedRef)
|
|
|
3465
3465
|
const hasPointerMoveOpenedRef = React__namespace.useRef(false);
|
|
3466
3466
|
const wasClickCloseRef = React__namespace.useRef(false);
|
|
3467
3467
|
const open = itemContext.value === context.value;
|
|
3468
|
-
return /* @__PURE__ */
|
|
3469
|
-
/* @__PURE__ */
|
|
3468
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3469
|
+
/* @__PURE__ */ jsxRuntime.jsx(Collection$1.ItemSlot, { scope: __scopeNavigationMenu, value: itemContext.value, children: /* @__PURE__ */ jsxRuntime.jsx(FocusGroupItem, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3470
3470
|
textarea.Primitive.button,
|
|
3471
3471
|
{
|
|
3472
3472
|
id: triggerId,
|
|
@@ -3512,8 +3512,8 @@ var NavigationMenuTrigger$1 = React__namespace.forwardRef((props, forwardedRef)
|
|
|
3512
3512
|
})
|
|
3513
3513
|
}
|
|
3514
3514
|
) }) }),
|
|
3515
|
-
open && /* @__PURE__ */
|
|
3516
|
-
/* @__PURE__ */
|
|
3515
|
+
open && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3516
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3517
3517
|
select.Root,
|
|
3518
3518
|
{
|
|
3519
3519
|
"aria-hidden": true,
|
|
@@ -3530,7 +3530,7 @@ var NavigationMenuTrigger$1 = React__namespace.forwardRef((props, forwardedRef)
|
|
|
3530
3530
|
}
|
|
3531
3531
|
}
|
|
3532
3532
|
),
|
|
3533
|
-
context.viewport && /* @__PURE__ */
|
|
3533
|
+
context.viewport && /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-owns": contentId })
|
|
3534
3534
|
] })
|
|
3535
3535
|
] });
|
|
3536
3536
|
});
|
|
@@ -3540,7 +3540,7 @@ var LINK_SELECT = "navigationMenu.linkSelect";
|
|
|
3540
3540
|
var NavigationMenuLink$1 = React__namespace.forwardRef(
|
|
3541
3541
|
(props, forwardedRef) => {
|
|
3542
3542
|
const { __scopeNavigationMenu, active, onSelect, ...linkProps } = props;
|
|
3543
|
-
return /* @__PURE__ */
|
|
3543
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FocusGroupItem, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3544
3544
|
textarea.Primitive.a,
|
|
3545
3545
|
{
|
|
3546
3546
|
"data-active": active ? "" : void 0,
|
|
@@ -3578,7 +3578,7 @@ var NavigationMenuIndicator$1 = React__namespace.forwardRef((props, forwardedRef
|
|
|
3578
3578
|
const context = useNavigationMenuContext(INDICATOR_NAME$2, props.__scopeNavigationMenu);
|
|
3579
3579
|
const isVisible = Boolean(context.value);
|
|
3580
3580
|
return context.indicatorTrack ? ReactDOM.createPortal(
|
|
3581
|
-
/* @__PURE__ */
|
|
3581
|
+
/* @__PURE__ */ jsxRuntime.jsx(textarea.Presence, { present: forceMount || isVisible, children: /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuIndicatorImpl, { ...indicatorProps, ref: forwardedRef }) }),
|
|
3582
3582
|
context.indicatorTrack
|
|
3583
3583
|
) : null;
|
|
3584
3584
|
});
|
|
@@ -3608,7 +3608,7 @@ var NavigationMenuIndicatorImpl = React__namespace.forwardRef((props, forwardedR
|
|
|
3608
3608
|
};
|
|
3609
3609
|
useResizeObserver(activeTrigger, handlePositionChange);
|
|
3610
3610
|
useResizeObserver(context.indicatorTrack, handlePositionChange);
|
|
3611
|
-
return position ? /* @__PURE__ */
|
|
3611
|
+
return position ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3612
3612
|
textarea.Primitive.div,
|
|
3613
3613
|
{
|
|
3614
3614
|
"aria-hidden": true,
|
|
@@ -3648,7 +3648,7 @@ var NavigationMenuContent$1 = React__namespace.forwardRef((props, forwardedRef)
|
|
|
3648
3648
|
onRootContentClose: itemContext.onRootContentClose,
|
|
3649
3649
|
...contentProps
|
|
3650
3650
|
};
|
|
3651
|
-
return !context.viewport ? /* @__PURE__ */
|
|
3651
|
+
return !context.viewport ? /* @__PURE__ */ jsxRuntime.jsx(textarea.Presence, { present: forceMount || open, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3652
3652
|
NavigationMenuContentImpl,
|
|
3653
3653
|
{
|
|
3654
3654
|
"data-state": getOpenState(open),
|
|
@@ -3665,7 +3665,7 @@ var NavigationMenuContent$1 = React__namespace.forwardRef((props, forwardedRef)
|
|
|
3665
3665
|
...commonProps.style
|
|
3666
3666
|
}
|
|
3667
3667
|
}
|
|
3668
|
-
) }) : /* @__PURE__ */
|
|
3668
|
+
) }) : /* @__PURE__ */ jsxRuntime.jsx(ViewportContentMounter, { forceMount, ...commonProps, ref: composedRefs });
|
|
3669
3669
|
});
|
|
3670
3670
|
NavigationMenuContent$1.displayName = CONTENT_NAME$3;
|
|
3671
3671
|
var ViewportContentMounter = React__namespace.forwardRef((props, forwardedRef) => {
|
|
@@ -3733,7 +3733,7 @@ var NavigationMenuContentImpl = React__namespace.forwardRef((props, forwardedRef
|
|
|
3733
3733
|
prevMotionAttributeRef.current = attribute;
|
|
3734
3734
|
return attribute;
|
|
3735
3735
|
}, [context.previousValue, context.value, context.dir, getItems, value]);
|
|
3736
|
-
return /* @__PURE__ */
|
|
3736
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FocusGroup, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3737
3737
|
textarea.DismissableLayer,
|
|
3738
3738
|
{
|
|
3739
3739
|
id: contentId,
|
|
@@ -3788,7 +3788,7 @@ var NavigationMenuViewport$1 = React__namespace.forwardRef((props, forwardedRef)
|
|
|
3788
3788
|
const { forceMount, ...viewportProps } = props;
|
|
3789
3789
|
const context = useNavigationMenuContext(VIEWPORT_NAME, props.__scopeNavigationMenu);
|
|
3790
3790
|
const open = Boolean(context.value);
|
|
3791
|
-
return /* @__PURE__ */
|
|
3791
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.Presence, { present: forceMount || open, children: /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuViewportImpl, { ...viewportProps, ref: forwardedRef }) });
|
|
3792
3792
|
});
|
|
3793
3793
|
NavigationMenuViewport$1.displayName = VIEWPORT_NAME;
|
|
3794
3794
|
var NavigationMenuViewportImpl = React__namespace.forwardRef((props, forwardedRef) => {
|
|
@@ -3809,7 +3809,7 @@ var NavigationMenuViewportImpl = React__namespace.forwardRef((props, forwardedRe
|
|
|
3809
3809
|
if (content) setSize({ width: content.offsetWidth, height: content.offsetHeight });
|
|
3810
3810
|
};
|
|
3811
3811
|
useResizeObserver(content, handleSizeChange);
|
|
3812
|
-
return /* @__PURE__ */
|
|
3812
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3813
3813
|
textarea.Primitive.div,
|
|
3814
3814
|
{
|
|
3815
3815
|
"data-state": getOpenState(open),
|
|
@@ -3827,7 +3827,7 @@ var NavigationMenuViewportImpl = React__namespace.forwardRef((props, forwardedRe
|
|
|
3827
3827
|
onPointerLeave: textarea.composeEventHandlers(props.onPointerLeave, whenMouse(context.onContentLeave)),
|
|
3828
3828
|
children: Array.from(viewportContentContext.items).map(([value, { ref, forceMount, ...props2 }]) => {
|
|
3829
3829
|
const isActive = activeContentValue === value;
|
|
3830
|
-
return /* @__PURE__ */
|
|
3830
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.Presence, { present: forceMount || isActive, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3831
3831
|
NavigationMenuContentImpl,
|
|
3832
3832
|
{
|
|
3833
3833
|
...props2,
|
|
@@ -3845,7 +3845,7 @@ var FocusGroup = React__namespace.forwardRef(
|
|
|
3845
3845
|
(props, forwardedRef) => {
|
|
3846
3846
|
const { __scopeNavigationMenu, ...groupProps } = props;
|
|
3847
3847
|
const context = useNavigationMenuContext(FOCUS_GROUP_NAME, __scopeNavigationMenu);
|
|
3848
|
-
return /* @__PURE__ */
|
|
3848
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FocusGroupCollection.Provider, { scope: __scopeNavigationMenu, children: /* @__PURE__ */ jsxRuntime.jsx(FocusGroupCollection.Slot, { scope: __scopeNavigationMenu, children: /* @__PURE__ */ jsxRuntime.jsx(textarea.Primitive.div, { dir: context.dir, ...groupProps, ref: forwardedRef }) }) });
|
|
3849
3849
|
}
|
|
3850
3850
|
);
|
|
3851
3851
|
var ARROW_KEYS$1 = ["ArrowRight", "ArrowLeft", "ArrowUp", "ArrowDown"];
|
|
@@ -3855,7 +3855,7 @@ var FocusGroupItem = React__namespace.forwardRef(
|
|
|
3855
3855
|
const { __scopeNavigationMenu, ...groupProps } = props;
|
|
3856
3856
|
const getItems = useFocusGroupCollection(__scopeNavigationMenu);
|
|
3857
3857
|
const context = useNavigationMenuContext(FOCUS_GROUP_ITEM_NAME, __scopeNavigationMenu);
|
|
3858
|
-
return /* @__PURE__ */
|
|
3858
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FocusGroupCollection.ItemSlot, { scope: __scopeNavigationMenu, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3859
3859
|
textarea.Primitive.button,
|
|
3860
3860
|
{
|
|
3861
3861
|
...groupProps,
|
|
@@ -3954,7 +3954,7 @@ function NavigationMenu({
|
|
|
3954
3954
|
viewport = true,
|
|
3955
3955
|
...props
|
|
3956
3956
|
}) {
|
|
3957
|
-
return /* @__PURE__ */
|
|
3957
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3958
3958
|
Root2$3,
|
|
3959
3959
|
{
|
|
3960
3960
|
"data-slot": "navigation-menu",
|
|
@@ -3963,13 +3963,13 @@ function NavigationMenu({
|
|
|
3963
3963
|
...props,
|
|
3964
3964
|
children: [
|
|
3965
3965
|
children,
|
|
3966
|
-
viewport && /* @__PURE__ */
|
|
3966
|
+
viewport && /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuViewport, {})
|
|
3967
3967
|
]
|
|
3968
3968
|
}
|
|
3969
3969
|
);
|
|
3970
3970
|
}
|
|
3971
3971
|
function NavigationMenuList({ className, ...props }) {
|
|
3972
|
-
return /* @__PURE__ */
|
|
3972
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3973
3973
|
List,
|
|
3974
3974
|
{
|
|
3975
3975
|
"data-slot": "navigation-menu-list",
|
|
@@ -3979,13 +3979,13 @@ function NavigationMenuList({ className, ...props }) {
|
|
|
3979
3979
|
);
|
|
3980
3980
|
}
|
|
3981
3981
|
function NavigationMenuItem({ className, ...props }) {
|
|
3982
|
-
return /* @__PURE__ */
|
|
3982
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Item, { "data-slot": "navigation-menu-item", className: utils.cn("relative", className), ...props });
|
|
3983
3983
|
}
|
|
3984
3984
|
const navigationMenuTriggerStyle = index$2.cva(
|
|
3985
3985
|
"group inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
|
|
3986
3986
|
);
|
|
3987
3987
|
function NavigationMenuTrigger({ className, children, ...props }) {
|
|
3988
|
-
return /* @__PURE__ */
|
|
3988
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3989
3989
|
Trigger$2,
|
|
3990
3990
|
{
|
|
3991
3991
|
"data-slot": "navigation-menu-trigger",
|
|
@@ -3994,7 +3994,7 @@ function NavigationMenuTrigger({ className, children, ...props }) {
|
|
|
3994
3994
|
children: [
|
|
3995
3995
|
children,
|
|
3996
3996
|
" ",
|
|
3997
|
-
/* @__PURE__ */
|
|
3997
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3998
3998
|
index$1.ChevronDown,
|
|
3999
3999
|
{
|
|
4000
4000
|
className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
@@ -4006,7 +4006,7 @@ function NavigationMenuTrigger({ className, children, ...props }) {
|
|
|
4006
4006
|
);
|
|
4007
4007
|
}
|
|
4008
4008
|
function NavigationMenuContent({ className, ...props }) {
|
|
4009
|
-
return /* @__PURE__ */
|
|
4009
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4010
4010
|
Content,
|
|
4011
4011
|
{
|
|
4012
4012
|
"data-slot": "navigation-menu-content",
|
|
@@ -4020,7 +4020,7 @@ function NavigationMenuContent({ className, ...props }) {
|
|
|
4020
4020
|
);
|
|
4021
4021
|
}
|
|
4022
4022
|
function NavigationMenuViewport({ className, ...props }) {
|
|
4023
|
-
return /* @__PURE__ */
|
|
4023
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: utils.cn("absolute top-full left-0 isolate z-50 flex justify-center"), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4024
4024
|
Viewport,
|
|
4025
4025
|
{
|
|
4026
4026
|
"data-slot": "navigation-menu-viewport",
|
|
@@ -4033,7 +4033,7 @@ function NavigationMenuViewport({ className, ...props }) {
|
|
|
4033
4033
|
) });
|
|
4034
4034
|
}
|
|
4035
4035
|
function NavigationMenuLink({ className, ...props }) {
|
|
4036
|
-
return /* @__PURE__ */
|
|
4036
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4037
4037
|
Link,
|
|
4038
4038
|
{
|
|
4039
4039
|
"data-slot": "navigation-menu-link",
|
|
@@ -4046,7 +4046,7 @@ function NavigationMenuLink({ className, ...props }) {
|
|
|
4046
4046
|
);
|
|
4047
4047
|
}
|
|
4048
4048
|
function NavigationMenuIndicator({ className, ...props }) {
|
|
4049
|
-
return /* @__PURE__ */
|
|
4049
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4050
4050
|
Indicator$1,
|
|
4051
4051
|
{
|
|
4052
4052
|
"data-slot": "navigation-menu-indicator",
|
|
@@ -4055,12 +4055,12 @@ function NavigationMenuIndicator({ className, ...props }) {
|
|
|
4055
4055
|
className
|
|
4056
4056
|
),
|
|
4057
4057
|
...props,
|
|
4058
|
-
children: /* @__PURE__ */
|
|
4058
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
|
|
4059
4059
|
}
|
|
4060
4060
|
);
|
|
4061
4061
|
}
|
|
4062
4062
|
function Card({ className, ...props }) {
|
|
4063
|
-
return /* @__PURE__ */
|
|
4063
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4064
4064
|
"div",
|
|
4065
4065
|
{
|
|
4066
4066
|
"data-slot": "card",
|
|
@@ -4070,7 +4070,7 @@ function Card({ className, ...props }) {
|
|
|
4070
4070
|
);
|
|
4071
4071
|
}
|
|
4072
4072
|
function CardHeader({ className, ...props }) {
|
|
4073
|
-
return /* @__PURE__ */
|
|
4073
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4074
4074
|
"div",
|
|
4075
4075
|
{
|
|
4076
4076
|
"data-slot": "card-header",
|
|
@@ -4083,26 +4083,26 @@ function CardHeader({ className, ...props }) {
|
|
|
4083
4083
|
);
|
|
4084
4084
|
}
|
|
4085
4085
|
function CardTitle({ className, ...props }) {
|
|
4086
|
-
return /* @__PURE__ */
|
|
4086
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "card-title", className: utils.cn("leading-none font-semibold", className), ...props });
|
|
4087
4087
|
}
|
|
4088
4088
|
function CardDescription({ className, ...props }) {
|
|
4089
|
-
return /* @__PURE__ */
|
|
4089
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "card-description", className: utils.cn("text-muted-foreground text-sm", className), ...props });
|
|
4090
4090
|
}
|
|
4091
4091
|
function CardAction({ className, ...props }) {
|
|
4092
|
-
return /* @__PURE__ */
|
|
4092
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "card-action", className: utils.cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className), ...props });
|
|
4093
4093
|
}
|
|
4094
4094
|
function CardContent({ className, ...props }) {
|
|
4095
|
-
return /* @__PURE__ */
|
|
4095
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "card-content", className: utils.cn("px-6", className), ...props });
|
|
4096
4096
|
}
|
|
4097
4097
|
function CardFooter({ className, ...props }) {
|
|
4098
|
-
return /* @__PURE__ */
|
|
4098
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "card-footer", className: utils.cn("flex items-center px-6 [.border-t]:pt-6", className), ...props });
|
|
4099
4099
|
}
|
|
4100
4100
|
function InputOTP({
|
|
4101
4101
|
className,
|
|
4102
4102
|
containerClassName,
|
|
4103
4103
|
...props
|
|
4104
4104
|
}) {
|
|
4105
|
-
return /* @__PURE__ */
|
|
4105
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4106
4106
|
textarea.Lt,
|
|
4107
4107
|
{
|
|
4108
4108
|
"data-slot": "input-otp",
|
|
@@ -4113,7 +4113,7 @@ function InputOTP({
|
|
|
4113
4113
|
);
|
|
4114
4114
|
}
|
|
4115
4115
|
function InputOTPGroup({ className, ...props }) {
|
|
4116
|
-
return /* @__PURE__ */
|
|
4116
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "input-otp-group", className: utils.cn("flex items-center", className), ...props });
|
|
4117
4117
|
}
|
|
4118
4118
|
function InputOTPSlot({
|
|
4119
4119
|
index: index2,
|
|
@@ -4122,7 +4122,7 @@ function InputOTPSlot({
|
|
|
4122
4122
|
}) {
|
|
4123
4123
|
const inputOTPContext = React__namespace.useContext(textarea.jt);
|
|
4124
4124
|
const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index2] ?? {};
|
|
4125
|
-
return /* @__PURE__ */
|
|
4125
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4126
4126
|
"div",
|
|
4127
4127
|
{
|
|
4128
4128
|
"data-slot": "input-otp-slot",
|
|
@@ -4134,19 +4134,19 @@ function InputOTPSlot({
|
|
|
4134
4134
|
...props,
|
|
4135
4135
|
children: [
|
|
4136
4136
|
char,
|
|
4137
|
-
hasFakeCaret && /* @__PURE__ */
|
|
4137
|
+
hasFakeCaret && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" }) })
|
|
4138
4138
|
]
|
|
4139
4139
|
}
|
|
4140
4140
|
);
|
|
4141
4141
|
}
|
|
4142
4142
|
function InputOTPSeparator({ ...props }) {
|
|
4143
|
-
return /* @__PURE__ */
|
|
4143
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(Minus, {}) });
|
|
4144
4144
|
}
|
|
4145
4145
|
var NAME = "AspectRatio";
|
|
4146
4146
|
var AspectRatio$1 = React__namespace.forwardRef(
|
|
4147
4147
|
(props, forwardedRef) => {
|
|
4148
4148
|
const { ratio = 1 / 1, style, ...aspectRatioProps } = props;
|
|
4149
|
-
return /* @__PURE__ */
|
|
4149
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4150
4150
|
"div",
|
|
4151
4151
|
{
|
|
4152
4152
|
style: {
|
|
@@ -4157,7 +4157,7 @@ var AspectRatio$1 = React__namespace.forwardRef(
|
|
|
4157
4157
|
paddingBottom: `${100 / ratio}%`
|
|
4158
4158
|
},
|
|
4159
4159
|
"data-radix-aspect-ratio-wrapper": "",
|
|
4160
|
-
children: /* @__PURE__ */
|
|
4160
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4161
4161
|
textarea.Primitive.div,
|
|
4162
4162
|
{
|
|
4163
4163
|
...aspectRatioProps,
|
|
@@ -4180,7 +4180,7 @@ var AspectRatio$1 = React__namespace.forwardRef(
|
|
|
4180
4180
|
AspectRatio$1.displayName = NAME;
|
|
4181
4181
|
var Root = AspectRatio$1;
|
|
4182
4182
|
function AspectRatio({ ...props }) {
|
|
4183
|
-
return /* @__PURE__ */
|
|
4183
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Root, { "data-slot": "aspect-ratio", ...props });
|
|
4184
4184
|
}
|
|
4185
4185
|
var RADIO_NAME = "Radio";
|
|
4186
4186
|
var [createRadioContext, createRadioScope] = textarea.createContextScope(RADIO_NAME);
|
|
@@ -4202,8 +4202,8 @@ var Radio = React__namespace.forwardRef(
|
|
|
4202
4202
|
const composedRefs = index.useComposedRefs(forwardedRef, (node) => setButton(node));
|
|
4203
4203
|
const hasConsumerStoppedPropagationRef = React__namespace.useRef(false);
|
|
4204
4204
|
const isFormControl = button2 ? form || !!button2.closest("form") : true;
|
|
4205
|
-
return /* @__PURE__ */
|
|
4206
|
-
/* @__PURE__ */
|
|
4205
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(RadioProvider, { scope: __scopeRadio, checked, disabled, children: [
|
|
4206
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4207
4207
|
textarea.Primitive.button,
|
|
4208
4208
|
{
|
|
4209
4209
|
type: "button",
|
|
@@ -4224,7 +4224,7 @@ var Radio = React__namespace.forwardRef(
|
|
|
4224
4224
|
})
|
|
4225
4225
|
}
|
|
4226
4226
|
),
|
|
4227
|
-
isFormControl && /* @__PURE__ */
|
|
4227
|
+
isFormControl && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4228
4228
|
RadioBubbleInput,
|
|
4229
4229
|
{
|
|
4230
4230
|
control: button2,
|
|
@@ -4247,7 +4247,7 @@ var RadioIndicator = React__namespace.forwardRef(
|
|
|
4247
4247
|
(props, forwardedRef) => {
|
|
4248
4248
|
const { __scopeRadio, forceMount, ...indicatorProps } = props;
|
|
4249
4249
|
const context = useRadioContext(INDICATOR_NAME$1, __scopeRadio);
|
|
4250
|
-
return /* @__PURE__ */
|
|
4250
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.Presence, { present: forceMount || context.checked, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4251
4251
|
textarea.Primitive.span,
|
|
4252
4252
|
{
|
|
4253
4253
|
"data-state": getState(context.checked),
|
|
@@ -4287,7 +4287,7 @@ var RadioBubbleInput = React__namespace.forwardRef(
|
|
|
4287
4287
|
input.dispatchEvent(event);
|
|
4288
4288
|
}
|
|
4289
4289
|
}, [prevChecked, checked, bubbles]);
|
|
4290
|
-
return /* @__PURE__ */
|
|
4290
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4291
4291
|
textarea.Primitive.input,
|
|
4292
4292
|
{
|
|
4293
4293
|
type: "radio",
|
|
@@ -4344,7 +4344,7 @@ var RadioGroup$1 = React__namespace.forwardRef(
|
|
|
4344
4344
|
onChange: onValueChange,
|
|
4345
4345
|
caller: RADIO_GROUP_NAME$1
|
|
4346
4346
|
});
|
|
4347
|
-
return /* @__PURE__ */
|
|
4347
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4348
4348
|
RadioGroupProvider,
|
|
4349
4349
|
{
|
|
4350
4350
|
scope: __scopeRadioGroup,
|
|
@@ -4353,7 +4353,7 @@ var RadioGroup$1 = React__namespace.forwardRef(
|
|
|
4353
4353
|
disabled,
|
|
4354
4354
|
value,
|
|
4355
4355
|
onValueChange: setValue,
|
|
4356
|
-
children: /* @__PURE__ */
|
|
4356
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4357
4357
|
Root$3,
|
|
4358
4358
|
{
|
|
4359
4359
|
asChild: true,
|
|
@@ -4361,7 +4361,7 @@ var RadioGroup$1 = React__namespace.forwardRef(
|
|
|
4361
4361
|
orientation,
|
|
4362
4362
|
dir: direction,
|
|
4363
4363
|
loop,
|
|
4364
|
-
children: /* @__PURE__ */
|
|
4364
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4365
4365
|
textarea.Primitive.div,
|
|
4366
4366
|
{
|
|
4367
4367
|
role: "radiogroup",
|
|
@@ -4406,14 +4406,14 @@ var RadioGroupItem$1 = React__namespace.forwardRef(
|
|
|
4406
4406
|
document.removeEventListener("keyup", handleKeyUp);
|
|
4407
4407
|
};
|
|
4408
4408
|
}, []);
|
|
4409
|
-
return /* @__PURE__ */
|
|
4409
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4410
4410
|
Item$2,
|
|
4411
4411
|
{
|
|
4412
4412
|
asChild: true,
|
|
4413
4413
|
...rovingFocusGroupScope,
|
|
4414
4414
|
focusable: !isDisabled,
|
|
4415
4415
|
active: checked,
|
|
4416
|
-
children: /* @__PURE__ */
|
|
4416
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4417
4417
|
Radio,
|
|
4418
4418
|
{
|
|
4419
4419
|
disabled: isDisabled,
|
|
@@ -4442,7 +4442,7 @@ var RadioGroupIndicator = React__namespace.forwardRef(
|
|
|
4442
4442
|
(props, forwardedRef) => {
|
|
4443
4443
|
const { __scopeRadioGroup, ...indicatorProps } = props;
|
|
4444
4444
|
const radioScope = useRadioScope(__scopeRadioGroup);
|
|
4445
|
-
return /* @__PURE__ */
|
|
4445
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RadioIndicator, { ...radioScope, ...indicatorProps, ref: forwardedRef });
|
|
4446
4446
|
}
|
|
4447
4447
|
);
|
|
4448
4448
|
RadioGroupIndicator.displayName = INDICATOR_NAME2;
|
|
@@ -4450,10 +4450,10 @@ var Root2$2 = RadioGroup$1;
|
|
|
4450
4450
|
var Item2 = RadioGroupItem$1;
|
|
4451
4451
|
var Indicator = RadioGroupIndicator;
|
|
4452
4452
|
function RadioGroup({ className, ...props }) {
|
|
4453
|
-
return /* @__PURE__ */
|
|
4453
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Root2$2, { "data-slot": "radio-group", className: utils.cn("grid gap-3", className), ...props });
|
|
4454
4454
|
}
|
|
4455
4455
|
function RadioGroupItem({ className, ...props }) {
|
|
4456
|
-
return /* @__PURE__ */
|
|
4456
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4457
4457
|
Item2,
|
|
4458
4458
|
{
|
|
4459
4459
|
"data-slot": "radio-group-item",
|
|
@@ -4462,21 +4462,21 @@ function RadioGroupItem({ className, ...props }) {
|
|
|
4462
4462
|
className
|
|
4463
4463
|
),
|
|
4464
4464
|
...props,
|
|
4465
|
-
children: /* @__PURE__ */
|
|
4465
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Indicator, { "data-slot": "radio-group-indicator", className: "relative flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(Circle, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" }) })
|
|
4466
4466
|
}
|
|
4467
4467
|
);
|
|
4468
4468
|
}
|
|
4469
4469
|
function Sheet({ ...props }) {
|
|
4470
|
-
return /* @__PURE__ */
|
|
4470
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.Root, { "data-slot": "sheet", ...props });
|
|
4471
4471
|
}
|
|
4472
4472
|
function SheetTrigger({ ...props }) {
|
|
4473
|
-
return /* @__PURE__ */
|
|
4473
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.Trigger, { "data-slot": "sheet-trigger", ...props });
|
|
4474
4474
|
}
|
|
4475
4475
|
function SheetClose({ ...props }) {
|
|
4476
|
-
return /* @__PURE__ */
|
|
4476
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.Close, { "data-slot": "sheet-close", ...props });
|
|
4477
4477
|
}
|
|
4478
4478
|
function SheetPortal({ ...props }) {
|
|
4479
|
-
return /* @__PURE__ */
|
|
4479
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.Portal$1, { "data-slot": "sheet-portal", ...props });
|
|
4480
4480
|
}
|
|
4481
4481
|
function SheetOverlay({ className, backdrop, ...props }) {
|
|
4482
4482
|
let overlayClass = "";
|
|
@@ -4491,7 +4491,7 @@ function SheetOverlay({ className, backdrop, ...props }) {
|
|
|
4491
4491
|
overlayClass = "backdrop-blur-md backdrop-saturate-150 bg-overlay/30";
|
|
4492
4492
|
break;
|
|
4493
4493
|
}
|
|
4494
|
-
return /* @__PURE__ */
|
|
4494
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4495
4495
|
textarea.Overlay,
|
|
4496
4496
|
{
|
|
4497
4497
|
"data-slot": "sheet-overlay",
|
|
@@ -4513,9 +4513,9 @@ function SheetContent({
|
|
|
4513
4513
|
disabled = false,
|
|
4514
4514
|
...props
|
|
4515
4515
|
}) {
|
|
4516
|
-
return /* @__PURE__ */
|
|
4517
|
-
/* @__PURE__ */
|
|
4518
|
-
/* @__PURE__ */
|
|
4516
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(SheetPortal, { children: [
|
|
4517
|
+
/* @__PURE__ */ jsxRuntime.jsx(SheetOverlay, { backdrop }),
|
|
4518
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4519
4519
|
textarea.Content,
|
|
4520
4520
|
{
|
|
4521
4521
|
"data-slot": "sheet-content",
|
|
@@ -4530,7 +4530,7 @@ function SheetContent({
|
|
|
4530
4530
|
...props,
|
|
4531
4531
|
children: [
|
|
4532
4532
|
children,
|
|
4533
|
-
showCloseButton && /* @__PURE__ */
|
|
4533
|
+
showCloseButton && /* @__PURE__ */ jsxRuntime.jsx(textarea.Close, { asChild: true, className: "absolute top-3 right-4 focus:outline-hidden disabled:pointer-events-none", children: /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4534
4534
|
button.Button,
|
|
4535
4535
|
{
|
|
4536
4536
|
isIconOnly: true,
|
|
@@ -4540,11 +4540,11 @@ function SheetContent({
|
|
|
4540
4540
|
disabled,
|
|
4541
4541
|
className: "p-0 w-[36px] h-[36px] min-w-auto bg-default-100 hover:bg-default-200 text-default-500 hover:text-default-600 dark:bg-default-100 dark:hover:bg-default-200 dark:text-default-500 dark:hover:text-default-600 disabled:opacity-50 disabled:pointer-events-none",
|
|
4542
4542
|
children: [
|
|
4543
|
-
/* @__PURE__ */
|
|
4544
|
-
/* @__PURE__ */
|
|
4545
|
-
/* @__PURE__ */
|
|
4543
|
+
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "20", height: "20", fill: "currentColor", role: "img", "aria-hidden": "true", children: [
|
|
4544
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { fill: "none", d: "M0 0h21v21H0z" }),
|
|
4545
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "m12.12 10 4.07-4.06a1.5 1.5 0 1 0-2.11-2.12L10 7.88 5.94 3.81a1.5 1.5 0 1 0-2.12 2.12L7.88 10l-4.07 4.06a1.5 1.5 0 0 0 0 2.12 1.51 1.51 0 0 0 2.13 0L10 12.12l4.06 4.07a1.45 1.45 0 0 0 1.06.44 1.5 1.5 0 0 0 1.06-2.56Z" })
|
|
4546
4546
|
] }),
|
|
4547
|
-
/* @__PURE__ */
|
|
4547
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
4548
4548
|
]
|
|
4549
4549
|
}
|
|
4550
4550
|
) }) })
|
|
@@ -4554,16 +4554,16 @@ function SheetContent({
|
|
|
4554
4554
|
] });
|
|
4555
4555
|
}
|
|
4556
4556
|
function SheetHeader({ className, ...props }) {
|
|
4557
|
-
return /* @__PURE__ */
|
|
4557
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "sheet-header", className: utils.cn("flex flex-col gap-1.5 p-4", className), ...props });
|
|
4558
4558
|
}
|
|
4559
4559
|
function SheetFooter({ className, ...props }) {
|
|
4560
|
-
return /* @__PURE__ */
|
|
4560
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "sheet-footer", className: utils.cn("mt-auto flex flex-col gap-2 p-4", className), ...props });
|
|
4561
4561
|
}
|
|
4562
4562
|
function SheetTitle({ className, ...props }) {
|
|
4563
|
-
return /* @__PURE__ */
|
|
4563
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.Title, { "data-slot": "sheet-title", className: utils.cn("text-foreground font-semibold", className), ...props });
|
|
4564
4564
|
}
|
|
4565
4565
|
function SheetDescription({ className, ...props }) {
|
|
4566
|
-
return /* @__PURE__ */
|
|
4566
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.Description, { "data-slot": "sheet-description", className: utils.cn("text-muted-foreground text-sm", className), ...props });
|
|
4567
4567
|
}
|
|
4568
4568
|
var MENUBAR_NAME = "Menubar";
|
|
4569
4569
|
var [Collection, useCollection, createCollectionScope] = select.createCollection(MENUBAR_NAME);
|
|
@@ -4594,7 +4594,7 @@ var Menubar$1 = React__namespace.forwardRef(
|
|
|
4594
4594
|
caller: MENUBAR_NAME
|
|
4595
4595
|
});
|
|
4596
4596
|
const [currentTabStopId, setCurrentTabStopId] = React__namespace.useState(null);
|
|
4597
|
-
return /* @__PURE__ */
|
|
4597
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4598
4598
|
MenubarContextProvider,
|
|
4599
4599
|
{
|
|
4600
4600
|
scope: __scopeMenubar,
|
|
@@ -4616,7 +4616,7 @@ var Menubar$1 = React__namespace.forwardRef(
|
|
|
4616
4616
|
),
|
|
4617
4617
|
dir: direction,
|
|
4618
4618
|
loop,
|
|
4619
|
-
children: /* @__PURE__ */
|
|
4619
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Collection.Provider, { scope: __scopeMenubar, children: /* @__PURE__ */ jsxRuntime.jsx(Collection.Slot, { scope: __scopeMenubar, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4620
4620
|
Root$3,
|
|
4621
4621
|
{
|
|
4622
4622
|
asChild: true,
|
|
@@ -4626,7 +4626,7 @@ var Menubar$1 = React__namespace.forwardRef(
|
|
|
4626
4626
|
dir: direction,
|
|
4627
4627
|
currentTabStopId,
|
|
4628
4628
|
onCurrentTabStopIdChange: setCurrentTabStopId,
|
|
4629
|
-
children: /* @__PURE__ */
|
|
4629
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(textarea.Primitive.div, { role: "menubar", ...menubarProps, ref: forwardedRef })
|
|
4630
4630
|
}
|
|
4631
4631
|
) }) })
|
|
4632
4632
|
}
|
|
@@ -4648,7 +4648,7 @@ var MenubarMenu$1 = (props) => {
|
|
|
4648
4648
|
React__namespace.useEffect(() => {
|
|
4649
4649
|
if (!open) wasKeyboardTriggerOpenRef.current = false;
|
|
4650
4650
|
}, [open]);
|
|
4651
|
-
return /* @__PURE__ */
|
|
4651
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4652
4652
|
MenubarMenuProvider,
|
|
4653
4653
|
{
|
|
4654
4654
|
scope: __scopeMenubar,
|
|
@@ -4657,7 +4657,7 @@ var MenubarMenu$1 = (props) => {
|
|
|
4657
4657
|
triggerRef,
|
|
4658
4658
|
contentId: textarea.useId(),
|
|
4659
4659
|
wasKeyboardTriggerOpenRef,
|
|
4660
|
-
children: /* @__PURE__ */
|
|
4660
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4661
4661
|
Root3$1,
|
|
4662
4662
|
{
|
|
4663
4663
|
...menuScope,
|
|
@@ -4686,14 +4686,14 @@ var MenubarTrigger$1 = React__namespace.forwardRef(
|
|
|
4686
4686
|
const composedRefs = index.useComposedRefs(forwardedRef, ref, menuContext.triggerRef);
|
|
4687
4687
|
const [isFocused, setIsFocused] = React__namespace.useState(false);
|
|
4688
4688
|
const open = context.value === menuContext.value;
|
|
4689
|
-
return /* @__PURE__ */
|
|
4689
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Collection.ItemSlot, { scope: __scopeMenubar, value: menuContext.value, disabled, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4690
4690
|
Item$2,
|
|
4691
4691
|
{
|
|
4692
4692
|
asChild: true,
|
|
4693
4693
|
...rovingFocusGroupScope,
|
|
4694
4694
|
focusable: !disabled,
|
|
4695
4695
|
tabStopId: menuContext.value,
|
|
4696
|
-
children: /* @__PURE__ */
|
|
4696
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Anchor2$1, { asChild: true, ...menuScope, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4697
4697
|
textarea.Primitive.button,
|
|
4698
4698
|
{
|
|
4699
4699
|
type: "button",
|
|
@@ -4743,7 +4743,7 @@ var PORTAL_NAME$2 = "MenubarPortal";
|
|
|
4743
4743
|
var MenubarPortal$1 = (props) => {
|
|
4744
4744
|
const { __scopeMenubar, ...portalProps } = props;
|
|
4745
4745
|
const menuScope = useMenuScope(__scopeMenubar);
|
|
4746
|
-
return /* @__PURE__ */
|
|
4746
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Portal$2, { ...menuScope, ...portalProps });
|
|
4747
4747
|
};
|
|
4748
4748
|
MenubarPortal$1.displayName = PORTAL_NAME$2;
|
|
4749
4749
|
var CONTENT_NAME$2 = "MenubarContent";
|
|
@@ -4755,7 +4755,7 @@ var MenubarContent$1 = React__namespace.forwardRef(
|
|
|
4755
4755
|
const menuContext = useMenubarMenuContext(CONTENT_NAME$2, __scopeMenubar);
|
|
4756
4756
|
const getItems = useCollection(__scopeMenubar);
|
|
4757
4757
|
const hasInteractedOutsideRef = React__namespace.useRef(false);
|
|
4758
|
-
return /* @__PURE__ */
|
|
4758
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4759
4759
|
Content2$6,
|
|
4760
4760
|
{
|
|
4761
4761
|
id: menuContext.contentId,
|
|
@@ -4828,7 +4828,7 @@ var MenubarGroup$1 = React__namespace.forwardRef(
|
|
|
4828
4828
|
(props, forwardedRef) => {
|
|
4829
4829
|
const { __scopeMenubar, ...groupProps } = props;
|
|
4830
4830
|
const menuScope = useMenuScope(__scopeMenubar);
|
|
4831
|
-
return /* @__PURE__ */
|
|
4831
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Group, { ...menuScope, ...groupProps, ref: forwardedRef });
|
|
4832
4832
|
}
|
|
4833
4833
|
);
|
|
4834
4834
|
MenubarGroup$1.displayName = GROUP_NAME;
|
|
@@ -4837,7 +4837,7 @@ var MenubarLabel$1 = React__namespace.forwardRef(
|
|
|
4837
4837
|
(props, forwardedRef) => {
|
|
4838
4838
|
const { __scopeMenubar, ...labelProps } = props;
|
|
4839
4839
|
const menuScope = useMenuScope(__scopeMenubar);
|
|
4840
|
-
return /* @__PURE__ */
|
|
4840
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Label, { ...menuScope, ...labelProps, ref: forwardedRef });
|
|
4841
4841
|
}
|
|
4842
4842
|
);
|
|
4843
4843
|
MenubarLabel$1.displayName = LABEL_NAME;
|
|
@@ -4846,7 +4846,7 @@ var MenubarItem$1 = React__namespace.forwardRef(
|
|
|
4846
4846
|
(props, forwardedRef) => {
|
|
4847
4847
|
const { __scopeMenubar, ...itemProps } = props;
|
|
4848
4848
|
const menuScope = useMenuScope(__scopeMenubar);
|
|
4849
|
-
return /* @__PURE__ */
|
|
4849
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Item2$2, { ...menuScope, ...itemProps, ref: forwardedRef });
|
|
4850
4850
|
}
|
|
4851
4851
|
);
|
|
4852
4852
|
MenubarItem$1.displayName = ITEM_NAME;
|
|
@@ -4855,7 +4855,7 @@ var MenubarCheckboxItem$1 = React__namespace.forwardRef(
|
|
|
4855
4855
|
(props, forwardedRef) => {
|
|
4856
4856
|
const { __scopeMenubar, ...checkboxItemProps } = props;
|
|
4857
4857
|
const menuScope = useMenuScope(__scopeMenubar);
|
|
4858
|
-
return /* @__PURE__ */
|
|
4858
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CheckboxItem, { ...menuScope, ...checkboxItemProps, ref: forwardedRef });
|
|
4859
4859
|
}
|
|
4860
4860
|
);
|
|
4861
4861
|
MenubarCheckboxItem$1.displayName = CHECKBOX_ITEM_NAME;
|
|
@@ -4864,7 +4864,7 @@ var MenubarRadioGroup$1 = React__namespace.forwardRef(
|
|
|
4864
4864
|
(props, forwardedRef) => {
|
|
4865
4865
|
const { __scopeMenubar, ...radioGroupProps } = props;
|
|
4866
4866
|
const menuScope = useMenuScope(__scopeMenubar);
|
|
4867
|
-
return /* @__PURE__ */
|
|
4867
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RadioGroup$2, { ...menuScope, ...radioGroupProps, ref: forwardedRef });
|
|
4868
4868
|
}
|
|
4869
4869
|
);
|
|
4870
4870
|
MenubarRadioGroup$1.displayName = RADIO_GROUP_NAME;
|
|
@@ -4873,7 +4873,7 @@ var MenubarRadioItem$1 = React__namespace.forwardRef(
|
|
|
4873
4873
|
(props, forwardedRef) => {
|
|
4874
4874
|
const { __scopeMenubar, ...radioItemProps } = props;
|
|
4875
4875
|
const menuScope = useMenuScope(__scopeMenubar);
|
|
4876
|
-
return /* @__PURE__ */
|
|
4876
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RadioItem, { ...menuScope, ...radioItemProps, ref: forwardedRef });
|
|
4877
4877
|
}
|
|
4878
4878
|
);
|
|
4879
4879
|
MenubarRadioItem$1.displayName = RADIO_ITEM_NAME;
|
|
@@ -4881,7 +4881,7 @@ var INDICATOR_NAME = "MenubarItemIndicator";
|
|
|
4881
4881
|
var MenubarItemIndicator = React__namespace.forwardRef((props, forwardedRef) => {
|
|
4882
4882
|
const { __scopeMenubar, ...itemIndicatorProps } = props;
|
|
4883
4883
|
const menuScope = useMenuScope(__scopeMenubar);
|
|
4884
|
-
return /* @__PURE__ */
|
|
4884
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ItemIndicator, { ...menuScope, ...itemIndicatorProps, ref: forwardedRef });
|
|
4885
4885
|
});
|
|
4886
4886
|
MenubarItemIndicator.displayName = INDICATOR_NAME;
|
|
4887
4887
|
var SEPARATOR_NAME = "MenubarSeparator";
|
|
@@ -4889,7 +4889,7 @@ var MenubarSeparator$1 = React__namespace.forwardRef(
|
|
|
4889
4889
|
(props, forwardedRef) => {
|
|
4890
4890
|
const { __scopeMenubar, ...separatorProps } = props;
|
|
4891
4891
|
const menuScope = useMenuScope(__scopeMenubar);
|
|
4892
|
-
return /* @__PURE__ */
|
|
4892
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Separator, { ...menuScope, ...separatorProps, ref: forwardedRef });
|
|
4893
4893
|
}
|
|
4894
4894
|
);
|
|
4895
4895
|
MenubarSeparator$1.displayName = SEPARATOR_NAME;
|
|
@@ -4898,7 +4898,7 @@ var MenubarArrow = React__namespace.forwardRef(
|
|
|
4898
4898
|
(props, forwardedRef) => {
|
|
4899
4899
|
const { __scopeMenubar, ...arrowProps } = props;
|
|
4900
4900
|
const menuScope = useMenuScope(__scopeMenubar);
|
|
4901
|
-
return /* @__PURE__ */
|
|
4901
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Arrow2, { ...menuScope, ...arrowProps, ref: forwardedRef });
|
|
4902
4902
|
}
|
|
4903
4903
|
);
|
|
4904
4904
|
MenubarArrow.displayName = ARROW_NAME$1;
|
|
@@ -4912,7 +4912,7 @@ var MenubarSub$1 = (props) => {
|
|
|
4912
4912
|
onChange: onOpenChange,
|
|
4913
4913
|
caller: SUB_NAME
|
|
4914
4914
|
});
|
|
4915
|
-
return /* @__PURE__ */
|
|
4915
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Sub, { ...menuScope, open, onOpenChange: setOpen, children });
|
|
4916
4916
|
};
|
|
4917
4917
|
MenubarSub$1.displayName = SUB_NAME;
|
|
4918
4918
|
var SUB_TRIGGER_NAME = "MenubarSubTrigger";
|
|
@@ -4920,7 +4920,7 @@ var MenubarSubTrigger$1 = React__namespace.forwardRef(
|
|
|
4920
4920
|
(props, forwardedRef) => {
|
|
4921
4921
|
const { __scopeMenubar, ...subTriggerProps } = props;
|
|
4922
4922
|
const menuScope = useMenuScope(__scopeMenubar);
|
|
4923
|
-
return /* @__PURE__ */
|
|
4923
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4924
4924
|
SubTrigger,
|
|
4925
4925
|
{
|
|
4926
4926
|
"data-radix-menubar-subtrigger": "",
|
|
@@ -4937,7 +4937,7 @@ var MenubarSubContent$1 = React__namespace.forwardRef(
|
|
|
4937
4937
|
(props, forwardedRef) => {
|
|
4938
4938
|
const { __scopeMenubar, ...subContentProps } = props;
|
|
4939
4939
|
const menuScope = useMenuScope(__scopeMenubar);
|
|
4940
|
-
return /* @__PURE__ */
|
|
4940
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4941
4941
|
SubContent,
|
|
4942
4942
|
{
|
|
4943
4943
|
...menuScope,
|
|
@@ -4980,7 +4980,7 @@ var Sub2 = MenubarSub$1;
|
|
|
4980
4980
|
var SubTrigger2 = MenubarSubTrigger$1;
|
|
4981
4981
|
var SubContent2 = MenubarSubContent$1;
|
|
4982
4982
|
function Menubar({ className, ...props }) {
|
|
4983
|
-
return /* @__PURE__ */
|
|
4983
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4984
4984
|
Root3,
|
|
4985
4985
|
{
|
|
4986
4986
|
"data-slot": "menubar",
|
|
@@ -4990,19 +4990,19 @@ function Menubar({ className, ...props }) {
|
|
|
4990
4990
|
);
|
|
4991
4991
|
}
|
|
4992
4992
|
function MenubarMenu({ ...props }) {
|
|
4993
|
-
return /* @__PURE__ */
|
|
4993
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Menu, { "data-slot": "menubar-menu", ...props });
|
|
4994
4994
|
}
|
|
4995
4995
|
function MenubarGroup({ ...props }) {
|
|
4996
|
-
return /* @__PURE__ */
|
|
4996
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Group2, { "data-slot": "menubar-group", ...props });
|
|
4997
4997
|
}
|
|
4998
4998
|
function MenubarPortal({ ...props }) {
|
|
4999
|
-
return /* @__PURE__ */
|
|
4999
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Portal2$1, { "data-slot": "menubar-portal", ...props });
|
|
5000
5000
|
}
|
|
5001
5001
|
function MenubarRadioGroup({ ...props }) {
|
|
5002
|
-
return /* @__PURE__ */
|
|
5002
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RadioGroup2, { "data-slot": "menubar-radio-group", ...props });
|
|
5003
5003
|
}
|
|
5004
5004
|
function MenubarTrigger({ className, ...props }) {
|
|
5005
|
-
return /* @__PURE__ */
|
|
5005
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5006
5006
|
Trigger$1,
|
|
5007
5007
|
{
|
|
5008
5008
|
"data-slot": "menubar-trigger",
|
|
@@ -5021,7 +5021,7 @@ function MenubarContent({
|
|
|
5021
5021
|
sideOffset = 8,
|
|
5022
5022
|
...props
|
|
5023
5023
|
}) {
|
|
5024
|
-
return /* @__PURE__ */
|
|
5024
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MenubarPortal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5025
5025
|
Content2$2,
|
|
5026
5026
|
{
|
|
5027
5027
|
"data-slot": "menubar-content",
|
|
@@ -5042,7 +5042,7 @@ function MenubarItem({
|
|
|
5042
5042
|
variant = "default",
|
|
5043
5043
|
...props
|
|
5044
5044
|
}) {
|
|
5045
|
-
return /* @__PURE__ */
|
|
5045
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5046
5046
|
Item3,
|
|
5047
5047
|
{
|
|
5048
5048
|
"data-slot": "menubar-item",
|
|
@@ -5057,7 +5057,7 @@ function MenubarItem({
|
|
|
5057
5057
|
);
|
|
5058
5058
|
}
|
|
5059
5059
|
function MenubarCheckboxItem({ className, children, checked, ...props }) {
|
|
5060
|
-
return /* @__PURE__ */
|
|
5060
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5061
5061
|
CheckboxItem2,
|
|
5062
5062
|
{
|
|
5063
5063
|
"data-slot": "menubar-checkbox-item",
|
|
@@ -5068,14 +5068,14 @@ function MenubarCheckboxItem({ className, children, checked, ...props }) {
|
|
|
5068
5068
|
checked,
|
|
5069
5069
|
...props,
|
|
5070
5070
|
children: [
|
|
5071
|
-
/* @__PURE__ */
|
|
5071
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(ItemIndicator2, { children: /* @__PURE__ */ jsxRuntime.jsx(index$1.Check, { className: "size-4" }) }) }),
|
|
5072
5072
|
children
|
|
5073
5073
|
]
|
|
5074
5074
|
}
|
|
5075
5075
|
);
|
|
5076
5076
|
}
|
|
5077
5077
|
function MenubarRadioItem({ className, children, ...props }) {
|
|
5078
|
-
return /* @__PURE__ */
|
|
5078
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5079
5079
|
RadioItem2,
|
|
5080
5080
|
{
|
|
5081
5081
|
"data-slot": "menubar-radio-item",
|
|
@@ -5085,7 +5085,7 @@ function MenubarRadioItem({ className, children, ...props }) {
|
|
|
5085
5085
|
),
|
|
5086
5086
|
...props,
|
|
5087
5087
|
children: [
|
|
5088
|
-
/* @__PURE__ */
|
|
5088
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(ItemIndicator2, { children: /* @__PURE__ */ jsxRuntime.jsx(Circle, { className: "size-2 fill-current" }) }) }),
|
|
5089
5089
|
children
|
|
5090
5090
|
]
|
|
5091
5091
|
}
|
|
@@ -5096,7 +5096,7 @@ function MenubarLabel({
|
|
|
5096
5096
|
inset,
|
|
5097
5097
|
...props
|
|
5098
5098
|
}) {
|
|
5099
|
-
return /* @__PURE__ */
|
|
5099
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5100
5100
|
Label2,
|
|
5101
5101
|
{
|
|
5102
5102
|
"data-slot": "menubar-label",
|
|
@@ -5107,13 +5107,13 @@ function MenubarLabel({
|
|
|
5107
5107
|
);
|
|
5108
5108
|
}
|
|
5109
5109
|
function MenubarSeparator({ className, ...props }) {
|
|
5110
|
-
return /* @__PURE__ */
|
|
5110
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Separator2, { "data-slot": "menubar-separator", className: utils.cn("bg-border -mx-1 my-1 h-px", className), ...props });
|
|
5111
5111
|
}
|
|
5112
5112
|
function MenubarShortcut({ className, ...props }) {
|
|
5113
|
-
return /* @__PURE__ */
|
|
5113
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "menubar-shortcut", className: utils.cn("text-muted-foreground ml-auto text-xs tracking-widest", className), ...props });
|
|
5114
5114
|
}
|
|
5115
5115
|
function MenubarSub({ ...props }) {
|
|
5116
|
-
return /* @__PURE__ */
|
|
5116
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Sub2, { "data-slot": "menubar-sub", ...props });
|
|
5117
5117
|
}
|
|
5118
5118
|
function MenubarSubTrigger({
|
|
5119
5119
|
className,
|
|
@@ -5121,7 +5121,7 @@ function MenubarSubTrigger({
|
|
|
5121
5121
|
children,
|
|
5122
5122
|
...props
|
|
5123
5123
|
}) {
|
|
5124
|
-
return /* @__PURE__ */
|
|
5124
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5125
5125
|
SubTrigger2,
|
|
5126
5126
|
{
|
|
5127
5127
|
"data-slot": "menubar-sub-trigger",
|
|
@@ -5133,13 +5133,13 @@ function MenubarSubTrigger({
|
|
|
5133
5133
|
...props,
|
|
5134
5134
|
children: [
|
|
5135
5135
|
children,
|
|
5136
|
-
/* @__PURE__ */
|
|
5136
|
+
/* @__PURE__ */ jsxRuntime.jsx(ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
5137
5137
|
]
|
|
5138
5138
|
}
|
|
5139
5139
|
);
|
|
5140
5140
|
}
|
|
5141
5141
|
function MenubarSubContent({ className, ...props }) {
|
|
5142
|
-
return /* @__PURE__ */
|
|
5142
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5143
5143
|
SubContent2,
|
|
5144
5144
|
{
|
|
5145
5145
|
"data-slot": "menubar-sub-content",
|
|
@@ -5159,7 +5159,7 @@ var useDialogScope = textarea.createDialogScope();
|
|
|
5159
5159
|
var AlertDialog$1 = (props) => {
|
|
5160
5160
|
const { __scopeAlertDialog, ...alertDialogProps } = props;
|
|
5161
5161
|
const dialogScope = useDialogScope(__scopeAlertDialog);
|
|
5162
|
-
return /* @__PURE__ */
|
|
5162
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.Root, { ...dialogScope, ...alertDialogProps, modal: true });
|
|
5163
5163
|
};
|
|
5164
5164
|
AlertDialog$1.displayName = ROOT_NAME;
|
|
5165
5165
|
var TRIGGER_NAME$1 = "AlertDialogTrigger";
|
|
@@ -5167,7 +5167,7 @@ var AlertDialogTrigger$1 = React__namespace.forwardRef(
|
|
|
5167
5167
|
(props, forwardedRef) => {
|
|
5168
5168
|
const { __scopeAlertDialog, ...triggerProps } = props;
|
|
5169
5169
|
const dialogScope = useDialogScope(__scopeAlertDialog);
|
|
5170
|
-
return /* @__PURE__ */
|
|
5170
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.Trigger, { ...dialogScope, ...triggerProps, ref: forwardedRef });
|
|
5171
5171
|
}
|
|
5172
5172
|
);
|
|
5173
5173
|
AlertDialogTrigger$1.displayName = TRIGGER_NAME$1;
|
|
@@ -5175,7 +5175,7 @@ var PORTAL_NAME$1 = "AlertDialogPortal";
|
|
|
5175
5175
|
var AlertDialogPortal$1 = (props) => {
|
|
5176
5176
|
const { __scopeAlertDialog, ...portalProps } = props;
|
|
5177
5177
|
const dialogScope = useDialogScope(__scopeAlertDialog);
|
|
5178
|
-
return /* @__PURE__ */
|
|
5178
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.Portal$1, { ...dialogScope, ...portalProps });
|
|
5179
5179
|
};
|
|
5180
5180
|
AlertDialogPortal$1.displayName = PORTAL_NAME$1;
|
|
5181
5181
|
var OVERLAY_NAME = "AlertDialogOverlay";
|
|
@@ -5183,7 +5183,7 @@ var AlertDialogOverlay$1 = React__namespace.forwardRef(
|
|
|
5183
5183
|
(props, forwardedRef) => {
|
|
5184
5184
|
const { __scopeAlertDialog, ...overlayProps } = props;
|
|
5185
5185
|
const dialogScope = useDialogScope(__scopeAlertDialog);
|
|
5186
|
-
return /* @__PURE__ */
|
|
5186
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.Overlay, { ...dialogScope, ...overlayProps, ref: forwardedRef });
|
|
5187
5187
|
}
|
|
5188
5188
|
);
|
|
5189
5189
|
AlertDialogOverlay$1.displayName = OVERLAY_NAME;
|
|
@@ -5197,13 +5197,13 @@ var AlertDialogContent$1 = React__namespace.forwardRef(
|
|
|
5197
5197
|
const contentRef = React__namespace.useRef(null);
|
|
5198
5198
|
const composedRefs = index.useComposedRefs(forwardedRef, contentRef);
|
|
5199
5199
|
const cancelRef = React__namespace.useRef(null);
|
|
5200
|
-
return /* @__PURE__ */
|
|
5200
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5201
5201
|
textarea.WarningProvider,
|
|
5202
5202
|
{
|
|
5203
5203
|
contentName: CONTENT_NAME$1,
|
|
5204
5204
|
titleName: TITLE_NAME,
|
|
5205
5205
|
docsSlug: "alert-dialog",
|
|
5206
|
-
children: /* @__PURE__ */
|
|
5206
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AlertDialogContentProvider, { scope: __scopeAlertDialog, cancelRef, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5207
5207
|
textarea.Content,
|
|
5208
5208
|
{
|
|
5209
5209
|
role: "alertdialog",
|
|
@@ -5217,8 +5217,8 @@ var AlertDialogContent$1 = React__namespace.forwardRef(
|
|
|
5217
5217
|
onPointerDownOutside: (event) => event.preventDefault(),
|
|
5218
5218
|
onInteractOutside: (event) => event.preventDefault(),
|
|
5219
5219
|
children: [
|
|
5220
|
-
/* @__PURE__ */
|
|
5221
|
-
/* @__PURE__ */
|
|
5220
|
+
/* @__PURE__ */ jsxRuntime.jsx(Slottable, { children }),
|
|
5221
|
+
/* @__PURE__ */ jsxRuntime.jsx(DescriptionWarning, { contentRef })
|
|
5222
5222
|
]
|
|
5223
5223
|
}
|
|
5224
5224
|
) })
|
|
@@ -5232,7 +5232,7 @@ var AlertDialogTitle$1 = React__namespace.forwardRef(
|
|
|
5232
5232
|
(props, forwardedRef) => {
|
|
5233
5233
|
const { __scopeAlertDialog, ...titleProps } = props;
|
|
5234
5234
|
const dialogScope = useDialogScope(__scopeAlertDialog);
|
|
5235
|
-
return /* @__PURE__ */
|
|
5235
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.Title, { ...dialogScope, ...titleProps, ref: forwardedRef });
|
|
5236
5236
|
}
|
|
5237
5237
|
);
|
|
5238
5238
|
AlertDialogTitle$1.displayName = TITLE_NAME;
|
|
@@ -5240,7 +5240,7 @@ var DESCRIPTION_NAME = "AlertDialogDescription";
|
|
|
5240
5240
|
var AlertDialogDescription$1 = React__namespace.forwardRef((props, forwardedRef) => {
|
|
5241
5241
|
const { __scopeAlertDialog, ...descriptionProps } = props;
|
|
5242
5242
|
const dialogScope = useDialogScope(__scopeAlertDialog);
|
|
5243
|
-
return /* @__PURE__ */
|
|
5243
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.Description, { ...dialogScope, ...descriptionProps, ref: forwardedRef });
|
|
5244
5244
|
});
|
|
5245
5245
|
AlertDialogDescription$1.displayName = DESCRIPTION_NAME;
|
|
5246
5246
|
var ACTION_NAME = "AlertDialogAction";
|
|
@@ -5248,7 +5248,7 @@ var AlertDialogAction$1 = React__namespace.forwardRef(
|
|
|
5248
5248
|
(props, forwardedRef) => {
|
|
5249
5249
|
const { __scopeAlertDialog, ...actionProps } = props;
|
|
5250
5250
|
const dialogScope = useDialogScope(__scopeAlertDialog);
|
|
5251
|
-
return /* @__PURE__ */
|
|
5251
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.Close, { ...dialogScope, ...actionProps, ref: forwardedRef });
|
|
5252
5252
|
}
|
|
5253
5253
|
);
|
|
5254
5254
|
AlertDialogAction$1.displayName = ACTION_NAME;
|
|
@@ -5259,7 +5259,7 @@ var AlertDialogCancel$1 = React__namespace.forwardRef(
|
|
|
5259
5259
|
const { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog);
|
|
5260
5260
|
const dialogScope = useDialogScope(__scopeAlertDialog);
|
|
5261
5261
|
const ref = index.useComposedRefs(forwardedRef, cancelRef);
|
|
5262
|
-
return /* @__PURE__ */
|
|
5262
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.Close, { ...dialogScope, ...cancelProps, ref });
|
|
5263
5263
|
}
|
|
5264
5264
|
);
|
|
5265
5265
|
AlertDialogCancel$1.displayName = CANCEL_NAME;
|
|
@@ -5289,16 +5289,16 @@ var Cancel = AlertDialogCancel$1;
|
|
|
5289
5289
|
var Title2 = AlertDialogTitle$1;
|
|
5290
5290
|
var Description2 = AlertDialogDescription$1;
|
|
5291
5291
|
function AlertDialog({ ...props }) {
|
|
5292
|
-
return /* @__PURE__ */
|
|
5292
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Root2$1, { "data-slot": "alert-dialog", ...props });
|
|
5293
5293
|
}
|
|
5294
5294
|
function AlertDialogTrigger({ ...props }) {
|
|
5295
|
-
return /* @__PURE__ */
|
|
5295
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Trigger2, { "data-slot": "alert-dialog-trigger", ...props });
|
|
5296
5296
|
}
|
|
5297
5297
|
function AlertDialogPortal({ ...props }) {
|
|
5298
|
-
return /* @__PURE__ */
|
|
5298
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Portal2, { "data-slot": "alert-dialog-portal", ...props });
|
|
5299
5299
|
}
|
|
5300
5300
|
function AlertDialogOverlay({ className, ...props }) {
|
|
5301
|
-
return /* @__PURE__ */
|
|
5301
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5302
5302
|
Overlay2,
|
|
5303
5303
|
{
|
|
5304
5304
|
"data-slot": "alert-dialog-overlay",
|
|
@@ -5311,9 +5311,9 @@ function AlertDialogOverlay({ className, ...props }) {
|
|
|
5311
5311
|
);
|
|
5312
5312
|
}
|
|
5313
5313
|
function AlertDialogContent({ className, ...props }) {
|
|
5314
|
-
return /* @__PURE__ */
|
|
5315
|
-
/* @__PURE__ */
|
|
5316
|
-
/* @__PURE__ */
|
|
5314
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(AlertDialogPortal, { children: [
|
|
5315
|
+
/* @__PURE__ */ jsxRuntime.jsx(AlertDialogOverlay, {}),
|
|
5316
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5317
5317
|
Content2$1,
|
|
5318
5318
|
{
|
|
5319
5319
|
"data-slot": "alert-dialog-content",
|
|
@@ -5327,16 +5327,16 @@ function AlertDialogContent({ className, ...props }) {
|
|
|
5327
5327
|
] });
|
|
5328
5328
|
}
|
|
5329
5329
|
function AlertDialogHeader({ className, ...props }) {
|
|
5330
|
-
return /* @__PURE__ */
|
|
5330
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "alert-dialog-header", className: utils.cn("flex flex-col gap-2 text-center sm:text-left", className), ...props });
|
|
5331
5331
|
}
|
|
5332
5332
|
function AlertDialogFooter({ className, ...props }) {
|
|
5333
|
-
return /* @__PURE__ */
|
|
5333
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "alert-dialog-footer", className: utils.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className), ...props });
|
|
5334
5334
|
}
|
|
5335
5335
|
function AlertDialogTitle({ className, ...props }) {
|
|
5336
|
-
return /* @__PURE__ */
|
|
5336
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Title2, { "data-slot": "alert-dialog-title", className: utils.cn("text-lg font-semibold", className), ...props });
|
|
5337
5337
|
}
|
|
5338
5338
|
function AlertDialogDescription({ className, ...props }) {
|
|
5339
|
-
return /* @__PURE__ */
|
|
5339
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5340
5340
|
Description2,
|
|
5341
5341
|
{
|
|
5342
5342
|
"data-slot": "alert-dialog-description",
|
|
@@ -5346,10 +5346,10 @@ function AlertDialogDescription({ className, ...props }) {
|
|
|
5346
5346
|
);
|
|
5347
5347
|
}
|
|
5348
5348
|
function AlertDialogAction({ className, ...props }) {
|
|
5349
|
-
return /* @__PURE__ */
|
|
5349
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Action, { className: utils.cn(button.button({ color: "primary" }), className), ...props });
|
|
5350
5350
|
}
|
|
5351
5351
|
function AlertDialogCancel({ className, ...props }) {
|
|
5352
|
-
return /* @__PURE__ */
|
|
5352
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Cancel, { className: utils.cn(button.button({ variant: "solid" }), className), ...props });
|
|
5353
5353
|
}
|
|
5354
5354
|
const AlertConfirmation = ({
|
|
5355
5355
|
isOpen,
|
|
@@ -5365,15 +5365,15 @@ const AlertConfirmation = ({
|
|
|
5365
5365
|
colorButtonConfirm = "primary",
|
|
5366
5366
|
showButtonCancel = true
|
|
5367
5367
|
}) => {
|
|
5368
|
-
return /* @__PURE__ */
|
|
5369
|
-
/* @__PURE__ */
|
|
5370
|
-
title && /* @__PURE__ */
|
|
5371
|
-
description && /* @__PURE__ */
|
|
5372
|
-
body && /* @__PURE__ */
|
|
5368
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AlertDialog, { open: isOpen, onOpenChange: (open) => onOpenChange?.(open), children: /* @__PURE__ */ jsxRuntime.jsxs(AlertDialogContent, { children: [
|
|
5369
|
+
/* @__PURE__ */ jsxRuntime.jsxs(AlertDialogHeader, { children: [
|
|
5370
|
+
title && /* @__PURE__ */ jsxRuntime.jsx(AlertDialogTitle, { children: title }),
|
|
5371
|
+
description && /* @__PURE__ */ jsxRuntime.jsx(AlertDialogDescription, { children: description }),
|
|
5372
|
+
body && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full relative", children: body })
|
|
5373
5373
|
] }),
|
|
5374
|
-
/* @__PURE__ */
|
|
5375
|
-
showButtonCancel && /* @__PURE__ */
|
|
5376
|
-
/* @__PURE__ */
|
|
5374
|
+
/* @__PURE__ */ jsxRuntime.jsxs(AlertDialogFooter, { children: [
|
|
5375
|
+
showButtonCancel && /* @__PURE__ */ jsxRuntime.jsx(button.Button, { onClick: onCancel, disabled: loading, children: buttonCancelText }),
|
|
5376
|
+
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { onClick: onConfirm, disabled: loading, isLoading: loading, color: colorButtonConfirm, children: buttonConfirmText })
|
|
5377
5377
|
] })
|
|
5378
5378
|
] }) });
|
|
5379
5379
|
};
|
|
@@ -5422,7 +5422,7 @@ var HoverCard$1 = (props) => {
|
|
|
5422
5422
|
clearTimeout(closeTimerRef.current);
|
|
5423
5423
|
};
|
|
5424
5424
|
}, []);
|
|
5425
|
-
return /* @__PURE__ */
|
|
5425
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5426
5426
|
HoverCardProvider,
|
|
5427
5427
|
{
|
|
5428
5428
|
scope: __scopeHoverCard,
|
|
@@ -5433,7 +5433,7 @@ var HoverCard$1 = (props) => {
|
|
|
5433
5433
|
onDismiss: handleDismiss,
|
|
5434
5434
|
hasSelectionRef,
|
|
5435
5435
|
isPointerDownOnContentRef,
|
|
5436
|
-
children: /* @__PURE__ */
|
|
5436
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(select.Root2, { ...popperScope, children })
|
|
5437
5437
|
}
|
|
5438
5438
|
);
|
|
5439
5439
|
};
|
|
@@ -5444,7 +5444,7 @@ var HoverCardTrigger$1 = React__namespace.forwardRef(
|
|
|
5444
5444
|
const { __scopeHoverCard, ...triggerProps } = props;
|
|
5445
5445
|
const context = useHoverCardContext(TRIGGER_NAME, __scopeHoverCard);
|
|
5446
5446
|
const popperScope = usePopperScope(__scopeHoverCard);
|
|
5447
|
-
return /* @__PURE__ */
|
|
5447
|
+
return /* @__PURE__ */ jsxRuntime.jsx(select.Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5448
5448
|
textarea.Primitive.a,
|
|
5449
5449
|
{
|
|
5450
5450
|
"data-state": context.open ? "open" : "closed",
|
|
@@ -5467,7 +5467,7 @@ var [PortalProvider, usePortalContext] = createHoverCardContext(PORTAL_NAME, {
|
|
|
5467
5467
|
var HoverCardPortal = (props) => {
|
|
5468
5468
|
const { __scopeHoverCard, forceMount, children, container } = props;
|
|
5469
5469
|
const context = useHoverCardContext(PORTAL_NAME, __scopeHoverCard);
|
|
5470
|
-
return /* @__PURE__ */
|
|
5470
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PortalProvider, { scope: __scopeHoverCard, forceMount, children: /* @__PURE__ */ jsxRuntime.jsx(textarea.Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntime.jsx(textarea.Portal, { asChild: true, container, children }) }) });
|
|
5471
5471
|
};
|
|
5472
5472
|
HoverCardPortal.displayName = PORTAL_NAME;
|
|
5473
5473
|
var CONTENT_NAME = "HoverCardContent";
|
|
@@ -5476,7 +5476,7 @@ var HoverCardContent$1 = React__namespace.forwardRef(
|
|
|
5476
5476
|
const portalContext = usePortalContext(CONTENT_NAME, props.__scopeHoverCard);
|
|
5477
5477
|
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
|
5478
5478
|
const context = useHoverCardContext(CONTENT_NAME, props.__scopeHoverCard);
|
|
5479
|
-
return /* @__PURE__ */
|
|
5479
|
+
return /* @__PURE__ */ jsxRuntime.jsx(textarea.Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5480
5480
|
HoverCardContentImpl,
|
|
5481
5481
|
{
|
|
5482
5482
|
"data-state": context.open ? "open" : "closed",
|
|
@@ -5539,7 +5539,7 @@ var HoverCardContentImpl = React__namespace.forwardRef((props, forwardedRef) =>
|
|
|
5539
5539
|
tabbables.forEach((tabbable) => tabbable.setAttribute("tabindex", "-1"));
|
|
5540
5540
|
}
|
|
5541
5541
|
});
|
|
5542
|
-
return /* @__PURE__ */
|
|
5542
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5543
5543
|
textarea.DismissableLayer,
|
|
5544
5544
|
{
|
|
5545
5545
|
asChild: true,
|
|
@@ -5551,7 +5551,7 @@ var HoverCardContentImpl = React__namespace.forwardRef((props, forwardedRef) =>
|
|
|
5551
5551
|
event.preventDefault();
|
|
5552
5552
|
}),
|
|
5553
5553
|
onDismiss: context.onDismiss,
|
|
5554
|
-
children: /* @__PURE__ */
|
|
5554
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5555
5555
|
select.Content,
|
|
5556
5556
|
{
|
|
5557
5557
|
...popperScope,
|
|
@@ -5588,7 +5588,7 @@ var HoverCardArrow = React__namespace.forwardRef(
|
|
|
5588
5588
|
(props, forwardedRef) => {
|
|
5589
5589
|
const { __scopeHoverCard, ...arrowProps } = props;
|
|
5590
5590
|
const popperScope = usePopperScope(__scopeHoverCard);
|
|
5591
|
-
return /* @__PURE__ */
|
|
5591
|
+
return /* @__PURE__ */ jsxRuntime.jsx(select.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });
|
|
5592
5592
|
}
|
|
5593
5593
|
);
|
|
5594
5594
|
HoverCardArrow.displayName = ARROW_NAME;
|
|
@@ -5610,13 +5610,13 @@ var Trigger = HoverCardTrigger$1;
|
|
|
5610
5610
|
var Portal = HoverCardPortal;
|
|
5611
5611
|
var Content2 = HoverCardContent$1;
|
|
5612
5612
|
function HoverCard({ ...props }) {
|
|
5613
|
-
return /* @__PURE__ */
|
|
5613
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Root2, { "data-slot": "hover-card", ...props });
|
|
5614
5614
|
}
|
|
5615
5615
|
function HoverCardTrigger({ ...props }) {
|
|
5616
|
-
return /* @__PURE__ */
|
|
5616
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Trigger, { "data-slot": "hover-card-trigger", ...props });
|
|
5617
5617
|
}
|
|
5618
5618
|
function HoverCardContent({ className, align = "center", sideOffset = 4, ...props }) {
|
|
5619
|
-
return /* @__PURE__ */
|
|
5619
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5620
5620
|
Content2,
|
|
5621
5621
|
{
|
|
5622
5622
|
"data-slot": "hover-card-content",
|