@ark-ui/solid 5.29.1 → 5.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{checkbox.anatomy-CuzDSmDj.d.ts → checkbox.anatomy-YlC7nNXs.d.ts} +1 -1
- package/dist/chunk/{2S7Z6JX4.jsx → 2KCVIKG7.jsx} +7 -7
- package/dist/chunk/{2ZJJQCRC.js → 2SGHC324.js} +2 -2
- package/dist/chunk/{KEZ2WH2A.jsx → 2TPQPUX6.jsx} +6 -6
- package/dist/chunk/{FZWU5W76.js → 37BRFTCN.js} +7 -2
- package/dist/chunk/{5JS2MHQE.js → 3JI3LEL3.js} +3 -3
- package/dist/chunk/{5QLLQM7E.js → 3P5T77QU.js} +6 -5
- package/dist/chunk/{GG7F5STH.jsx → 4GELDCEE.jsx} +9 -8
- package/dist/chunk/{4HLADW3E.js → 4GOETTVP.js} +29 -32
- package/dist/chunk/{IT7ZIH75.js → 4UQ4BNTC.js} +3 -3
- package/dist/chunk/{4QVZJ5ML.js → 52P3DPTR.js} +3 -3
- package/dist/chunk/{4GEAI2WA.jsx → 5LDIC54T.jsx} +37 -16
- package/dist/chunk/{TDHE3VYT.js → 5LGVYTH5.js} +4 -4
- package/dist/chunk/{XXP27BHC.jsx → 5O3D32XK.jsx} +8 -8
- package/dist/chunk/{AQBFQJ3Q.js → 5QVNY35H.js} +2 -2
- package/dist/chunk/{JTXFPGYY.jsx → 5SEYLBQQ.jsx} +8 -7
- package/dist/chunk/{7U5HG766.js → 5WXM756C.js} +3 -3
- package/dist/chunk/{XNP7QM5Q.jsx → 65QK7XXR.jsx} +6 -6
- package/dist/chunk/{BIFBSKYL.jsx → 6N44QPMY.jsx} +10 -10
- package/dist/chunk/{XH4Y4U2G.jsx → 76UE3KN4.jsx} +8 -8
- package/dist/chunk/{KTDBBD3I.js → 7LBRKLXW.js} +16 -4
- package/dist/chunk/{4R3DUS36.js → 7LG5FPBU.js} +19 -15
- package/dist/chunk/{MMSH3XOE.jsx → A7ULUG37.jsx} +17 -14
- package/dist/chunk/{VHH5V6SW.js → AFGSUR6R.js} +3 -3
- package/dist/chunk/{XNAQLSZW.jsx → AOAGDS53.jsx} +3 -3
- package/dist/chunk/{KPDPHOBC.js → BHJYCERG.js} +4 -4
- package/dist/chunk/{CGNUC23H.js → BV6RNXMH.js} +27 -5
- package/dist/chunk/{CCVDHSBF.jsx → C56T2HRV.jsx} +6 -6
- package/dist/chunk/{PTXD6FJD.js → CCBSY5FU.js} +4 -4
- package/dist/chunk/{LQGHLGPW.jsx → CG273YBB.jsx} +4 -4
- package/dist/chunk/{YKTNXZQT.js → CKMDA3R6.js} +2 -2
- package/dist/chunk/{F3HHU2RK.jsx → CMGVBYH6.jsx} +52 -15
- package/dist/chunk/{ITAE33UN.js → CTYC3XVM.js} +3 -3
- package/dist/chunk/{IYZ6XUM5.js → CXS7DDU2.js} +2 -2
- package/dist/chunk/{IEJ4RWIV.jsx → D4GWWUQY.jsx} +7 -7
- package/dist/chunk/{LQZTXA2V.js → DFHJBZM6.js} +3 -3
- package/dist/chunk/{UOTT3RUB.jsx → DLQR7VNM.jsx} +7 -7
- package/dist/chunk/{MNZUELWU.jsx → DM5NMT5Y.jsx} +7 -7
- package/dist/chunk/{QTWOIUHU.jsx → DNRJCAR4.jsx} +7 -7
- package/dist/chunk/{DR7CHNBO.jsx → DON7WJR6.jsx} +6 -6
- package/dist/chunk/{FDGWBBJ3.jsx → DYFALYJE.jsx} +4 -4
- package/dist/chunk/{J6B3R7PY.jsx → EMHNANVE.jsx} +6 -6
- package/dist/chunk/{YWUMEZK2.js → EOQC4OFF.js} +2 -2
- package/dist/chunk/{6UXNGS66.jsx → EQKTJ63X.jsx} +1 -1
- package/dist/chunk/{GNYPPI32.jsx → EV7COIUN.jsx} +8 -7
- package/dist/chunk/{MO66WHZP.jsx → FQY342YD.jsx} +10 -10
- package/dist/chunk/{WGZNF7D4.js → G2UMJWTM.js} +2 -2
- package/dist/chunk/{SEOZ3YW4.jsx → GOJHNXPD.jsx} +7 -7
- package/dist/chunk/{3YPP6L6Q.js → GXLS3QZ4.js} +3 -3
- package/dist/chunk/{CGW54HAQ.jsx → HDGILMRT.jsx} +4 -1
- package/dist/chunk/{P7BXFWK5.js → HMG7R2BF.js} +40 -38
- package/dist/chunk/{6W3X5JZW.jsx → IHT5Q6Q3.jsx} +8 -7
- package/dist/chunk/{VRCOVKZM.jsx → IM2L53FZ.jsx} +7 -7
- package/dist/chunk/{23JPD2DE.js → J6D7JUCJ.js} +2 -5
- package/dist/chunk/{CCK5XI24.jsx → KH2XV4KM.jsx} +7 -7
- package/dist/chunk/{33WPGMEN.js → KMYFS63G.js} +66 -22
- package/dist/chunk/{FXYVJXLF.jsx → KQGHYOLW.jsx} +6 -6
- package/dist/chunk/{4EK6Z2KK.js → KXKOMCVA.js} +2 -2
- package/dist/chunk/{BWCRBIWY.js → LYCTCPBV.js} +4 -4
- package/dist/chunk/{VKXIXTM7.js → MDSG7I6V.js} +2 -2
- package/dist/chunk/{SZNFUIJQ.jsx → MMBOU3ZC.jsx} +7 -7
- package/dist/chunk/{QOPSKJ3A.js → NHSNBGCC.js} +46 -19
- package/dist/chunk/{UMVZZL45.js → NMYA3JZ5.js} +1 -1
- package/dist/chunk/{2RLPNMQC.js → NT6ZYH25.js} +3 -3
- package/dist/chunk/{UZ7SFAVT.js → NYBDSWDH.js} +3 -3
- package/dist/chunk/{3YM53Z6T.js → O6CMUPUG.js} +2 -2
- package/dist/chunk/{WNAARMIE.js → OSFE5N7D.js} +3 -3
- package/dist/chunk/{VVD4LKC6.jsx → OWH3LOUE.jsx} +4 -1
- package/dist/chunk/{3WOFDSWV.jsx → PSH3YKBU.jsx} +4 -4
- package/dist/chunk/{CNHYYRWI.jsx → Q2EC4X24.jsx} +7 -7
- package/dist/chunk/{536HCWLL.js → Q67V4SSK.js} +8 -12
- package/dist/chunk/{HJW3RUPH.js → RBYLWQEE.js} +3 -3
- package/dist/chunk/{FKF6FOYL.jsx → RLUEXDAM.jsx} +7 -7
- package/dist/chunk/{RYD4Z3LT.jsx → RY7KBPRA.jsx} +6 -6
- package/dist/chunk/{B37HJ43Y.js → S3VN2YFH.js} +2 -2
- package/dist/chunk/{6QF5SDIE.jsx → S7ILHA7C.jsx} +7 -7
- package/dist/chunk/{JEKNEIFC.jsx → SCMBWJVC.jsx} +6 -6
- package/dist/chunk/{WDRQQ36P.js → SLOK7RQU.js} +3 -3
- package/dist/chunk/{2MDYHAEL.js → SU6SNXFK.js} +7 -6
- package/dist/chunk/{ZGPHPTSF.jsx → T4C4OLH5.jsx} +10 -8
- package/dist/chunk/{YBQYQBZP.js → TAEJBOHF.js} +4 -4
- package/dist/chunk/{XV2QYX2I.jsx → TEKM4RER.jsx} +11 -6
- package/dist/chunk/TILTTA4A.js +1 -0
- package/dist/chunk/{JLEHJHHW.js → TJ7E237D.js} +2 -2
- package/dist/chunk/{NERR3PSK.jsx → TQCLH765.jsx} +11 -11
- package/dist/chunk/{5RT2MFUK.jsx → TYHUUGLH.jsx} +3 -3
- package/dist/chunk/{BVY3M35Y.jsx → TZA2XQYK.jsx} +38 -18
- package/dist/chunk/{OF7DNWIQ.jsx → UGCFDJSO.jsx} +6 -6
- package/dist/chunk/{7EJEMGDG.jsx → UGSFGPFW.jsx} +7 -7
- package/dist/chunk/{AQ27SOWE.jsx → V6TUJPSE.jsx} +6 -6
- package/dist/chunk/{2PUG56L6.js → VPKUVVDM.js} +3 -3
- package/dist/chunk/{2G3XSL5X.js → VQAY7ALM.js} +3 -3
- package/dist/chunk/{CR7T4TQD.js → VUOC2LCL.js} +2 -2
- package/dist/chunk/{F4DBA2W2.js → VUSRNP23.js} +3 -3
- package/dist/chunk/{UFUCDO7B.js → VVSGL3B5.js} +19 -9
- package/dist/chunk/WCB4ISVQ.jsx +6 -0
- package/dist/chunk/{CLO7VA44.js → WJ3SED2J.js} +4 -4
- package/dist/chunk/{PO54HM6N.jsx → WMMVKZHK.jsx} +7 -7
- package/dist/chunk/{ZZZCGUS6.js → WYVADPK7.js} +2 -2
- package/dist/chunk/{XBXF34UK.jsx → XMIVUAEB.jsx} +7 -7
- package/dist/chunk/{Q5A3MS3U.js → XTL34GZH.js} +2 -2
- package/dist/chunk/{6HVSV6OM.js → YA3LD5QR.js} +1 -1
- package/dist/chunk/{EMVS6NWP.js → YJZT56R5.js} +2 -2
- package/dist/chunk/{M3PQVDTA.js → YQOHTJFL.js} +3 -3
- package/dist/chunk/{YIPYNXJY.jsx → YRAJJHEJ.jsx} +26 -12
- package/dist/chunk/{TW456WML.jsx → YTEBGEQ4.jsx} +39 -11
- package/dist/chunk/{4E5O3DFC.js → Z326BLVT.js} +13 -9
- package/dist/chunk/{PXFOGFRN.jsx → ZOKZFKHJ.jsx} +7 -7
- package/dist/chunk/{WKT2SQRV.jsx → ZQJU3MNB.jsx} +21 -15
- package/dist/chunk/{DH3KPRGA.jsx → ZSFOKQ3Z.jsx} +10 -7
- package/dist/chunk/{UOOMXEJO.jsx → ZYS6A6GV.jsx} +6 -6
- package/dist/{color-picker.anatomy-CMDtAoEh.d.ts → color-picker.anatomy-Dxw1DJ2S.d.ts} +1 -1
- package/dist/{combobox.anatomy-DBsVyPqM.d.ts → combobox.anatomy-CW3VXK4N.d.ts} +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/accordion/index.jsx +6 -6
- package/dist/components/anatomy.d.ts +8 -7
- package/dist/components/anatomy.js +18 -17
- package/dist/components/anatomy.jsx +56 -52
- package/dist/components/angle-slider/index.js +1 -1
- package/dist/components/angle-slider/index.jsx +5 -5
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/index.jsx +5 -5
- package/dist/components/bottom-sheet/index.js +1 -1
- package/dist/components/bottom-sheet/index.jsx +7 -7
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/carousel/index.jsx +5 -5
- package/dist/components/checkbox/index.d.ts +5 -5
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/index.jsx +7 -7
- package/dist/components/clipboard/index.js +1 -1
- package/dist/components/clipboard/index.jsx +5 -5
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/collapsible/index.jsx +5 -5
- package/dist/components/color-picker/index.d.ts +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/color-picker/index.jsx +9 -9
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/combobox/index.jsx +9 -9
- package/dist/components/date-picker/index.d.ts +30 -4
- package/dist/components/date-picker/index.js +2 -2
- package/dist/components/date-picker/index.jsx +10 -8
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dialog/index.jsx +7 -7
- package/dist/components/download-trigger/index.js +1 -1
- package/dist/components/download-trigger/index.jsx +4 -4
- package/dist/components/editable/index.js +1 -1
- package/dist/components/editable/index.jsx +7 -7
- package/dist/components/field/index.d.ts +1 -1
- package/dist/components/field/index.js +1 -1
- package/dist/components/field/index.jsx +6 -6
- package/dist/components/fieldset/index.d.ts +6 -1
- package/dist/components/fieldset/index.js +1 -1
- package/dist/components/fieldset/index.jsx +5 -5
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/file-upload/index.jsx +7 -7
- package/dist/components/floating-panel/index.js +1 -1
- package/dist/components/floating-panel/index.jsx +7 -7
- package/dist/components/format/index.jsx +3 -2
- package/dist/components/frame/index.js +1 -1
- package/dist/components/frame/index.jsx +4 -3
- package/dist/components/highlight/index.js +1 -1
- package/dist/components/highlight/index.jsx +2 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/hover-card/index.jsx +7 -7
- package/dist/components/image-cropper/index.js +1 -1
- package/dist/components/image-cropper/index.jsx +5 -5
- package/dist/components/index.d.ts +11 -11
- package/dist/components/index.js +70 -70
- package/dist/components/index.jsx +443 -429
- package/dist/components/json-tree-view/index.d.ts +16 -13
- package/dist/components/json-tree-view/index.js +1 -1
- package/dist/components/json-tree-view/index.jsx +8 -8
- package/dist/components/listbox/index.d.ts +1 -1
- package/dist/components/listbox/index.js +1 -1
- package/dist/components/listbox/index.jsx +5 -5
- package/dist/components/marquee/index.js +1 -1
- package/dist/components/marquee/index.jsx +5 -5
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/index.jsx +7 -7
- package/dist/components/navigation-menu/index.d.ts +106 -0
- package/dist/components/navigation-menu/index.js +279 -0
- package/dist/components/navigation-menu/index.jsx +315 -0
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/index.jsx +7 -7
- package/dist/components/pagination/index.d.ts +14 -2
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/index.jsx +9 -5
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/password-input/index.jsx +7 -7
- package/dist/components/pin-input/index.js +1 -1
- package/dist/components/pin-input/index.jsx +7 -7
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/index.jsx +7 -7
- package/dist/components/presence/index.js +1 -1
- package/dist/components/presence/index.jsx +2 -2
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/index.jsx +5 -5
- package/dist/components/qr-code/index.js +1 -1
- package/dist/components/qr-code/index.jsx +5 -5
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radio-group/index.jsx +8 -5
- package/dist/components/rating-group/index.js +1 -1
- package/dist/components/rating-group/index.jsx +7 -7
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/scroll-area/index.jsx +5 -5
- package/dist/components/segment-group/index.js +1 -1
- package/dist/components/segment-group/index.jsx +5 -5
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/index.jsx +9 -9
- package/dist/components/signature-pad/index.js +1 -1
- package/dist/components/signature-pad/index.jsx +7 -7
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/index.jsx +5 -5
- package/dist/components/splitter/index.js +1 -1
- package/dist/components/splitter/index.jsx +5 -5
- package/dist/components/steps/index.js +1 -1
- package/dist/components/steps/index.jsx +5 -5
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/index.jsx +7 -7
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/index.jsx +7 -7
- package/dist/components/tags-input/index.js +1 -1
- package/dist/components/tags-input/index.jsx +7 -7
- package/dist/components/timer/index.js +1 -1
- package/dist/components/timer/index.jsx +5 -5
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/index.jsx +4 -4
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle/index.jsx +2 -2
- package/dist/components/toggle-group/index.js +1 -1
- package/dist/components/toggle-group/index.jsx +5 -5
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/index.jsx +7 -7
- package/dist/components/tour/index.d.ts +9 -3
- package/dist/components/tour/index.js +1 -1
- package/dist/components/tour/index.jsx +17 -9
- package/dist/components/tree-view/index.js +1 -1
- package/dist/components/tree-view/index.jsx +7 -7
- package/dist/date-picker.anatomy-DPHKzZh7.d.ts +5 -0
- package/dist/field.anatomy-BA_rbPae.d.ts +5 -0
- package/dist/{fieldset.anatomy-BHBXaVuM.d.ts → fieldset.anatomy-ByHwSFid.d.ts} +1 -1
- package/dist/index.d.ts +11 -11
- package/dist/index.js +72 -72
- package/dist/index.jsx +449 -435
- package/dist/{listbox.anatomy-CuSvGz29.d.ts → listbox.anatomy-ogRrsXMY.d.ts} +1 -1
- package/dist/providers/environment/index.js +1 -1
- package/dist/providers/environment/index.jsx +2 -1
- package/dist/providers/index.js +1 -1
- package/dist/providers/index.jsx +3 -2
- package/package.json +77 -75
- package/dist/date-picker.anatomy-C7QaSOwg.d.ts +0 -5
- package/dist/field.anatomy-BkeW0gbI.d.ts +0 -5
- package/dist/chunk/{FW6EZLZL.js → 2WRCIBVP.js} +1 -1
- package/dist/chunk/{2P5Y3YCK.jsx → VTTFCXVC.jsx} +3 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { JsonNodePreviewOptions, JsonNode, JsonNodeHastElement } from '@zag-js/json-tree-utils';
|
|
2
|
-
import { JSX } from 'solid-js';
|
|
3
|
-
import { d as TreeViewRootProps,
|
|
2
|
+
import { JSX, Accessor } from 'solid-js';
|
|
3
|
+
import { d as TreeViewRootProps, U as UseTreeViewProps, h as TreeViewRootProviderProps, k as TreeViewTreeProps } from '../../tree-view-tree-DTB5aCol.js';
|
|
4
|
+
import { PropTypes } from '@zag-js/solid';
|
|
5
|
+
import * as treeView from '@zag-js/tree-view';
|
|
4
6
|
import '../../types-Sr_80hg9.js';
|
|
5
7
|
import '../../render-strategy-B5MqQP3X.js';
|
|
6
8
|
import '@zag-js/collection';
|
|
7
9
|
import '../factory.js';
|
|
8
|
-
import '@zag-js/solid';
|
|
9
|
-
import '@zag-js/tree-view';
|
|
10
10
|
|
|
11
11
|
interface JsonTreeViewOptions extends Partial<JsonNodePreviewOptions> {
|
|
12
12
|
/**
|
|
@@ -29,7 +29,18 @@ interface JsonTreeViewRootProps extends Omit<TreeViewRootProps<JsonNode>, 'colle
|
|
|
29
29
|
}
|
|
30
30
|
declare const JsonTreeViewRoot: (props: JsonTreeViewRootProps) => JSX.Element;
|
|
31
31
|
|
|
32
|
-
interface
|
|
32
|
+
interface UseJsonTreeViewProps extends Omit<UseTreeViewProps<JsonNode>, 'collection'>, JsonTreeViewOptions {
|
|
33
|
+
data: unknown;
|
|
34
|
+
defaultExpandedDepth?: number;
|
|
35
|
+
}
|
|
36
|
+
interface UseJsonTreeViewReturn extends Accessor<treeView.Api<PropTypes, JsonNode> & {
|
|
37
|
+
options: JsonTreeViewOptions;
|
|
38
|
+
}> {
|
|
39
|
+
}
|
|
40
|
+
declare const useJsonTreeView: (props: UseJsonTreeViewProps) => UseJsonTreeViewReturn;
|
|
41
|
+
|
|
42
|
+
interface JsonTreeViewRootProviderProps extends Omit<TreeViewRootProviderProps<JsonNode>, 'value'> {
|
|
43
|
+
value: UseJsonTreeViewReturn;
|
|
33
44
|
}
|
|
34
45
|
declare const JsonTreeViewRootProvider: (props: JsonTreeViewRootProviderProps) => JSX.Element;
|
|
35
46
|
|
|
@@ -54,14 +65,6 @@ interface JsonTreeViewTreeProps extends TreeViewTreeProps, JsonTreeViewTreeBaseP
|
|
|
54
65
|
}
|
|
55
66
|
declare const JsonTreeViewTree: (props: JsonTreeViewTreeProps) => JSX.Element;
|
|
56
67
|
|
|
57
|
-
interface UseJsonTreeViewProps extends Omit<UseTreeViewProps<JsonNode>, 'collection'> {
|
|
58
|
-
data: unknown;
|
|
59
|
-
defaultExpandedDepth?: number;
|
|
60
|
-
}
|
|
61
|
-
interface UseJsonTreeViewReturn extends UseTreeViewReturn<JsonNode> {
|
|
62
|
-
}
|
|
63
|
-
declare const useJsonTreeView: (props: UseJsonTreeViewProps) => UseJsonTreeViewReturn;
|
|
64
|
-
|
|
65
68
|
declare namespace jsonTreeView {
|
|
66
69
|
export { JsonTreeViewRoot as Root, type JsonTreeViewRootProps as RootProps, JsonTreeViewRootProvider as RootProvider, type JsonTreeViewRootProviderProps as RootProviderProps, JsonTreeViewTree as Tree, type JsonTreeViewTreeProps as TreeProps };
|
|
67
70
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { json_tree_view_exports as JsonTreeView, JsonTreeViewRoot, JsonTreeViewRootProvider, JsonTreeViewTree, useJsonTreeView } from '../../chunk/
|
|
1
|
+
export { json_tree_view_exports as JsonTreeView, JsonTreeViewRoot, JsonTreeViewRootProvider, JsonTreeViewTree, useJsonTreeView } from '../../chunk/NHSNBGCC.js';
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
JsonTreeViewTree,
|
|
5
5
|
json_tree_view_exports,
|
|
6
6
|
useJsonTreeView
|
|
7
|
-
} from "../../chunk/
|
|
8
|
-
import "../../chunk/
|
|
7
|
+
} from "../../chunk/TZA2XQYK.jsx";
|
|
8
|
+
import "../../chunk/4GELDCEE.jsx";
|
|
9
9
|
import "../../chunk/EFII6TXL.jsx";
|
|
10
|
-
import "../../chunk/
|
|
11
|
-
import "../../chunk/UOOMXEJO.jsx";
|
|
10
|
+
import "../../chunk/ZYS6A6GV.jsx";
|
|
12
11
|
import "../../chunk/VNMGX67M.jsx";
|
|
13
|
-
import "../../chunk/OC7V6IJA.jsx";
|
|
14
12
|
import "../../chunk/6WEDGJKQ.jsx";
|
|
15
|
-
import "../../chunk/UFYZ7HLU.jsx";
|
|
16
13
|
import "../../chunk/ODQYYKL5.jsx";
|
|
17
|
-
import "../../chunk/
|
|
18
|
-
import "../../chunk/
|
|
14
|
+
import "../../chunk/72DODTYZ.jsx";
|
|
15
|
+
import "../../chunk/OC7V6IJA.jsx";
|
|
16
|
+
import "../../chunk/HDGILMRT.jsx";
|
|
19
17
|
import "../../chunk/KGOB2IMX.jsx";
|
|
18
|
+
import "../../chunk/UFYZ7HLU.jsx";
|
|
19
|
+
import "../../chunk/JFOWNFC7.jsx";
|
|
20
20
|
import "../../chunk/UZJJWJQM.jsx";
|
|
21
21
|
import "../../chunk/7IUG3E2V.jsx";
|
|
22
22
|
export {
|
|
@@ -10,7 +10,7 @@ import { PropTypes } from '@zag-js/solid';
|
|
|
10
10
|
import { O as Optional, M as MaybeAccessor, A as Assign } from '../../types-Sr_80hg9.js';
|
|
11
11
|
import { HTMLProps, PolymorphicProps } from '../factory.js';
|
|
12
12
|
import { JSX as JSX$1 } from 'solid-js/jsx-runtime';
|
|
13
|
-
export { l as listboxAnatomy } from '../../listbox.anatomy-
|
|
13
|
+
export { l as listboxAnatomy } from '../../listbox.anatomy-ogRrsXMY.js';
|
|
14
14
|
import '@zag-js/anatomy';
|
|
15
15
|
|
|
16
16
|
interface UseListboxProps<T extends CollectionItem> extends Optional<Omit<listbox$1.Props<T>, 'dir' | 'getRootNode' | 'collection'>, 'id'> {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { listbox_exports as Listbox, ListboxContent, ListboxContext, ListboxEmpty, ListboxInput, ListboxItem, ListboxItemContext, ListboxItemGroup, ListboxItemGroupLabel, ListboxItemIndicator, ListboxItemText, ListboxLabel, ListboxRoot, ListboxRootProvider, ListboxValueText, useListbox, useListboxContext, useListboxItemContext } from '../../chunk/
|
|
1
|
+
export { listbox_exports as Listbox, ListboxContent, ListboxContext, ListboxEmpty, ListboxInput, ListboxItem, ListboxItemContext, ListboxItemGroup, ListboxItemGroupLabel, ListboxItemIndicator, ListboxItemText, ListboxLabel, ListboxRoot, ListboxRootProvider, ListboxValueText, useListbox, useListboxContext, useListboxItemContext } from '../../chunk/2SGHC324.js';
|
|
2
2
|
export { createListCollection } from '../../chunk/APULXWCH.js';
|
|
3
3
|
export { listboxAnatomy } from '../../chunk/3I7TGCD3.js';
|
|
@@ -17,19 +17,19 @@ import {
|
|
|
17
17
|
useListbox,
|
|
18
18
|
useListboxContext,
|
|
19
19
|
useListboxItemContext
|
|
20
|
-
} from "../../chunk/
|
|
20
|
+
} from "../../chunk/5O3D32XK.jsx";
|
|
21
21
|
import {
|
|
22
22
|
createListCollection
|
|
23
23
|
} from "../../chunk/EFII6TXL.jsx";
|
|
24
|
+
import "../../chunk/6WEDGJKQ.jsx";
|
|
25
|
+
import "../../chunk/ODQYYKL5.jsx";
|
|
24
26
|
import {
|
|
25
27
|
listboxAnatomy
|
|
26
28
|
} from "../../chunk/4WBPEARW.jsx";
|
|
27
|
-
import "../../chunk/
|
|
29
|
+
import "../../chunk/HDGILMRT.jsx";
|
|
30
|
+
import "../../chunk/KGOB2IMX.jsx";
|
|
28
31
|
import "../../chunk/UFYZ7HLU.jsx";
|
|
29
|
-
import "../../chunk/ODQYYKL5.jsx";
|
|
30
|
-
import "../../chunk/CGW54HAQ.jsx";
|
|
31
32
|
import "../../chunk/JFOWNFC7.jsx";
|
|
32
|
-
import "../../chunk/KGOB2IMX.jsx";
|
|
33
33
|
import "../../chunk/UZJJWJQM.jsx";
|
|
34
34
|
import "../../chunk/7IUG3E2V.jsx";
|
|
35
35
|
export {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { marquee_exports as Marquee, MarqueeContent, MarqueeContext, MarqueeEdge, MarqueeItem, MarqueeRoot, MarqueeRootProvider, MarqueeViewport, useMarquee, useMarqueeContext } from '../../chunk/
|
|
1
|
+
export { marquee_exports as Marquee, MarqueeContent, MarqueeContext, MarqueeEdge, MarqueeItem, MarqueeRoot, MarqueeRootProvider, MarqueeViewport, useMarquee, useMarqueeContext } from '../../chunk/TJ7E237D.js';
|
|
2
2
|
export { anatomy as marqueeAnatomy } from '../../chunk/YYJ6TQ7D.js';
|
|
@@ -9,16 +9,16 @@ import {
|
|
|
9
9
|
marquee_exports,
|
|
10
10
|
useMarquee,
|
|
11
11
|
useMarqueeContext
|
|
12
|
-
} from "../../chunk/
|
|
12
|
+
} from "../../chunk/EMHNANVE.jsx";
|
|
13
|
+
import "../../chunk/6WEDGJKQ.jsx";
|
|
14
|
+
import "../../chunk/ODQYYKL5.jsx";
|
|
13
15
|
import {
|
|
14
16
|
anatomy
|
|
15
17
|
} from "../../chunk/PQ3LP2S5.jsx";
|
|
16
|
-
import "../../chunk/
|
|
18
|
+
import "../../chunk/HDGILMRT.jsx";
|
|
19
|
+
import "../../chunk/KGOB2IMX.jsx";
|
|
17
20
|
import "../../chunk/UFYZ7HLU.jsx";
|
|
18
|
-
import "../../chunk/ODQYYKL5.jsx";
|
|
19
|
-
import "../../chunk/CGW54HAQ.jsx";
|
|
20
21
|
import "../../chunk/JFOWNFC7.jsx";
|
|
21
|
-
import "../../chunk/KGOB2IMX.jsx";
|
|
22
22
|
import "../../chunk/UZJJWJQM.jsx";
|
|
23
23
|
import "../../chunk/7IUG3E2V.jsx";
|
|
24
24
|
export {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { menu_exports as Menu, MenuArrow, MenuArrowTip, MenuCheckboxItem, MenuContent, MenuContext, MenuContextTrigger, MenuIndicator, MenuItem, MenuItemContext, MenuItemGroup, MenuItemGroupLabel, MenuItemIndicator, MenuItemText, MenuPositioner, MenuRadioItem, MenuRadioItemGroup, MenuRoot, MenuRootProvider, MenuSeparator, MenuTrigger, MenuTriggerItem, useMenu, useMenuContext, useMenuItemContext } from '../../chunk/
|
|
1
|
+
export { menu_exports as Menu, MenuArrow, MenuArrowTip, MenuCheckboxItem, MenuContent, MenuContext, MenuContextTrigger, MenuIndicator, MenuItem, MenuItemContext, MenuItemGroup, MenuItemGroupLabel, MenuItemIndicator, MenuItemText, MenuPositioner, MenuRadioItem, MenuRadioItemGroup, MenuRoot, MenuRootProvider, MenuSeparator, MenuTrigger, MenuTriggerItem, useMenu, useMenuContext, useMenuItemContext } from '../../chunk/VUSRNP23.js';
|
|
2
2
|
export { anatomy as menuAnatomy } from '../../chunk/EJIFXSNU.js';
|
|
@@ -24,19 +24,19 @@ import {
|
|
|
24
24
|
useMenu,
|
|
25
25
|
useMenuContext,
|
|
26
26
|
useMenuItemContext
|
|
27
|
-
} from "../../chunk/
|
|
28
|
-
import "../../chunk/
|
|
27
|
+
} from "../../chunk/RLUEXDAM.jsx";
|
|
28
|
+
import "../../chunk/VTTFCXVC.jsx";
|
|
29
29
|
import "../../chunk/PT2CJE3O.jsx";
|
|
30
|
+
import "../../chunk/VNMGX67M.jsx";
|
|
31
|
+
import "../../chunk/6WEDGJKQ.jsx";
|
|
32
|
+
import "../../chunk/ODQYYKL5.jsx";
|
|
30
33
|
import {
|
|
31
34
|
anatomy
|
|
32
35
|
} from "../../chunk/LXQBCP7Y.jsx";
|
|
33
|
-
import "../../chunk/
|
|
34
|
-
import "../../chunk/
|
|
36
|
+
import "../../chunk/HDGILMRT.jsx";
|
|
37
|
+
import "../../chunk/KGOB2IMX.jsx";
|
|
35
38
|
import "../../chunk/UFYZ7HLU.jsx";
|
|
36
|
-
import "../../chunk/ODQYYKL5.jsx";
|
|
37
|
-
import "../../chunk/CGW54HAQ.jsx";
|
|
38
39
|
import "../../chunk/JFOWNFC7.jsx";
|
|
39
|
-
import "../../chunk/KGOB2IMX.jsx";
|
|
40
40
|
import "../../chunk/UZJJWJQM.jsx";
|
|
41
41
|
import "../../chunk/7IUG3E2V.jsx";
|
|
42
42
|
export {
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import * as navigationMenu$1 from '@zag-js/navigation-menu';
|
|
2
|
+
import { ContentProps, ItemProps, LinkProps, ViewportProps, ValueChangeDetails } from '@zag-js/navigation-menu';
|
|
3
|
+
export { ValueChangeDetails as NavigationMenuValueChangeDetails, anatomy as navigationMenuAnatomy } from '@zag-js/navigation-menu';
|
|
4
|
+
import * as solid_js from 'solid-js';
|
|
5
|
+
import { Accessor, JSX } from 'solid-js';
|
|
6
|
+
import { HTMLProps, PolymorphicProps } from '../factory.js';
|
|
7
|
+
import { A as Assign, O as Optional } from '../../types-Sr_80hg9.js';
|
|
8
|
+
import { PropTypes } from '@zag-js/solid';
|
|
9
|
+
import { R as RenderStrategyProps } from '../../render-strategy-B5MqQP3X.js';
|
|
10
|
+
|
|
11
|
+
interface NavigationMenuArrowBaseProps extends PolymorphicProps<'div'> {
|
|
12
|
+
}
|
|
13
|
+
interface NavigationMenuArrowProps extends HTMLProps<'div'>, NavigationMenuArrowBaseProps {
|
|
14
|
+
}
|
|
15
|
+
declare const NavigationMenuArrow: (props: NavigationMenuArrowProps) => solid_js.JSX.Element;
|
|
16
|
+
|
|
17
|
+
interface NavigationMenuContentBaseProps extends Partial<ContentProps>, PolymorphicProps<'div'> {
|
|
18
|
+
}
|
|
19
|
+
interface NavigationMenuContentProps extends Assign<HTMLProps<'div'>, NavigationMenuContentBaseProps> {
|
|
20
|
+
}
|
|
21
|
+
declare const NavigationMenuContent: (props: NavigationMenuContentProps) => solid_js.JSX.Element;
|
|
22
|
+
|
|
23
|
+
interface UseNavigationMenuProps extends Optional<Omit<navigationMenu$1.Props, 'dir' | 'getRootNode'>, 'id'> {
|
|
24
|
+
}
|
|
25
|
+
interface UseNavigationMenuReturn extends Accessor<navigationMenu$1.Api<PropTypes>> {
|
|
26
|
+
}
|
|
27
|
+
declare const useNavigationMenu: (props?: UseNavigationMenuProps) => UseNavigationMenuReturn;
|
|
28
|
+
|
|
29
|
+
interface UseNavigationMenuContext extends UseNavigationMenuReturn {
|
|
30
|
+
}
|
|
31
|
+
declare const useNavigationMenuContext: () => UseNavigationMenuContext;
|
|
32
|
+
|
|
33
|
+
interface NavigationMenuContextProps {
|
|
34
|
+
children: (context: UseNavigationMenuContext) => JSX.Element;
|
|
35
|
+
}
|
|
36
|
+
declare const NavigationMenuContext: (props: NavigationMenuContextProps) => JSX.Element;
|
|
37
|
+
|
|
38
|
+
interface NavigationMenuIndicatorBaseProps extends PolymorphicProps<'div'> {
|
|
39
|
+
}
|
|
40
|
+
interface NavigationMenuIndicatorProps extends HTMLProps<'div'>, NavigationMenuIndicatorBaseProps {
|
|
41
|
+
}
|
|
42
|
+
declare const NavigationMenuIndicator: (props: NavigationMenuIndicatorProps) => solid_js.JSX.Element;
|
|
43
|
+
|
|
44
|
+
interface NavigationMenuItemBaseProps extends ItemProps, PolymorphicProps<'div'> {
|
|
45
|
+
}
|
|
46
|
+
interface NavigationMenuItemProps extends HTMLProps<'div'>, NavigationMenuItemBaseProps {
|
|
47
|
+
}
|
|
48
|
+
declare const NavigationMenuItem: (props: NavigationMenuItemProps) => solid_js.JSX.Element;
|
|
49
|
+
|
|
50
|
+
interface NavigationMenuItemIndicatorBaseProps extends PolymorphicProps<'div'> {
|
|
51
|
+
}
|
|
52
|
+
interface NavigationMenuItemIndicatorProps extends HTMLProps<'div'>, NavigationMenuItemIndicatorBaseProps {
|
|
53
|
+
}
|
|
54
|
+
declare const NavigationMenuItemIndicator: (props: NavigationMenuItemIndicatorProps) => solid_js.JSX.Element;
|
|
55
|
+
|
|
56
|
+
interface NavigationMenuLinkBaseProps extends Partial<LinkProps>, PolymorphicProps<'a'> {
|
|
57
|
+
}
|
|
58
|
+
interface NavigationMenuLinkProps extends Assign<HTMLProps<'a'>, NavigationMenuLinkBaseProps> {
|
|
59
|
+
}
|
|
60
|
+
declare const NavigationMenuLink: (props: NavigationMenuLinkProps) => solid_js.JSX.Element;
|
|
61
|
+
|
|
62
|
+
interface NavigationMenuListBaseProps extends PolymorphicProps<'div'> {
|
|
63
|
+
}
|
|
64
|
+
interface NavigationMenuListProps extends HTMLProps<'div'>, NavigationMenuListBaseProps {
|
|
65
|
+
}
|
|
66
|
+
declare const NavigationMenuList: (props: NavigationMenuListProps) => solid_js.JSX.Element;
|
|
67
|
+
|
|
68
|
+
interface NavigationMenuRootBaseProps extends UseNavigationMenuProps, RenderStrategyProps, PolymorphicProps<'nav'> {
|
|
69
|
+
}
|
|
70
|
+
interface NavigationMenuRootProps extends HTMLProps<'nav'>, NavigationMenuRootBaseProps {
|
|
71
|
+
}
|
|
72
|
+
declare const NavigationMenuRoot: (props: NavigationMenuRootProps) => solid_js.JSX.Element;
|
|
73
|
+
|
|
74
|
+
interface RootProviderProps {
|
|
75
|
+
value: UseNavigationMenuReturn;
|
|
76
|
+
}
|
|
77
|
+
interface NavigationMenuRootProviderBaseProps extends RenderStrategyProps, PolymorphicProps<'nav'> {
|
|
78
|
+
}
|
|
79
|
+
interface NavigationMenuRootProviderProps extends HTMLProps<'nav'>, RootProviderProps, NavigationMenuRootProviderBaseProps {
|
|
80
|
+
}
|
|
81
|
+
declare const NavigationMenuRootProvider: (props: NavigationMenuRootProviderProps) => solid_js.JSX.Element;
|
|
82
|
+
|
|
83
|
+
interface NavigationMenuTriggerBaseProps extends Omit<ItemProps, 'value'>, PolymorphicProps<'button'> {
|
|
84
|
+
}
|
|
85
|
+
interface NavigationMenuTriggerProps extends Assign<HTMLProps<'button'>, NavigationMenuTriggerBaseProps> {
|
|
86
|
+
}
|
|
87
|
+
declare const NavigationMenuTrigger: (props: NavigationMenuTriggerProps) => solid_js.JSX.Element;
|
|
88
|
+
|
|
89
|
+
interface NavigationMenuViewportBaseProps extends PolymorphicProps<'div'> {
|
|
90
|
+
}
|
|
91
|
+
interface NavigationMenuViewportProps extends HTMLProps<'div'>, NavigationMenuViewportBaseProps {
|
|
92
|
+
}
|
|
93
|
+
declare const NavigationMenuViewport: (props: NavigationMenuViewportProps) => solid_js.JSX.Element;
|
|
94
|
+
|
|
95
|
+
interface NavigationMenuViewportPositionerBaseProps extends ViewportProps, PolymorphicProps<'div'> {
|
|
96
|
+
}
|
|
97
|
+
interface NavigationMenuViewportPositionerProps extends HTMLProps<'div'>, NavigationMenuViewportPositionerBaseProps {
|
|
98
|
+
}
|
|
99
|
+
declare const NavigationMenuViewportPositioner: (props: NavigationMenuViewportPositionerProps) => solid_js.JSX.Element;
|
|
100
|
+
|
|
101
|
+
declare const navigationMenu_ValueChangeDetails: typeof ValueChangeDetails;
|
|
102
|
+
declare namespace navigationMenu {
|
|
103
|
+
export { NavigationMenuArrow as Arrow, type NavigationMenuArrowBaseProps as ArrowBaseProps, type NavigationMenuArrowProps as ArrowProps, NavigationMenuContent as Content, type NavigationMenuContentBaseProps as ContentBaseProps, type NavigationMenuContentProps as ContentProps, NavigationMenuContext as Context, type NavigationMenuContextProps as ContextProps, NavigationMenuIndicator as Indicator, type NavigationMenuIndicatorBaseProps as IndicatorBaseProps, type NavigationMenuIndicatorProps as IndicatorProps, NavigationMenuItem as Item, type NavigationMenuItemBaseProps as ItemBaseProps, NavigationMenuItemIndicator as ItemIndicator, type NavigationMenuItemIndicatorBaseProps as ItemIndicatorBaseProps, type NavigationMenuItemIndicatorProps as ItemIndicatorProps, type NavigationMenuItemProps as ItemProps, NavigationMenuLink as Link, type NavigationMenuLinkBaseProps as LinkBaseProps, type NavigationMenuLinkProps as LinkProps, NavigationMenuList as List, type NavigationMenuListBaseProps as ListBaseProps, type NavigationMenuListProps as ListProps, NavigationMenuRoot as Root, type NavigationMenuRootBaseProps as RootBaseProps, type NavigationMenuRootProps as RootProps, NavigationMenuRootProvider as RootProvider, type NavigationMenuRootProviderBaseProps as RootProviderBaseProps, type NavigationMenuRootProviderProps as RootProviderProps, NavigationMenuTrigger as Trigger, type NavigationMenuTriggerBaseProps as TriggerBaseProps, type NavigationMenuTriggerProps as TriggerProps, navigationMenu_ValueChangeDetails as ValueChangeDetails, NavigationMenuViewport as Viewport, type NavigationMenuViewportBaseProps as ViewportBaseProps, NavigationMenuViewportPositioner as ViewportPositioner, type NavigationMenuViewportPositionerBaseProps as ViewportPositionerBaseProps, type NavigationMenuViewportPositionerProps as ViewportPositionerProps, type NavigationMenuViewportProps as ViewportProps };
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export { navigationMenu as NavigationMenu, NavigationMenuArrow, type NavigationMenuArrowBaseProps, type NavigationMenuArrowProps, NavigationMenuContent, type NavigationMenuContentBaseProps, type NavigationMenuContentProps, NavigationMenuContext, type NavigationMenuContextProps, NavigationMenuIndicator, type NavigationMenuIndicatorBaseProps, type NavigationMenuIndicatorProps, NavigationMenuItem, type NavigationMenuItemBaseProps, NavigationMenuItemIndicator, type NavigationMenuItemIndicatorBaseProps, type NavigationMenuItemIndicatorProps, type NavigationMenuItemProps, NavigationMenuLink, type NavigationMenuLinkBaseProps, type NavigationMenuLinkProps, NavigationMenuList, type NavigationMenuListBaseProps, type NavigationMenuListProps, NavigationMenuRoot, type NavigationMenuRootBaseProps, type NavigationMenuRootProps, NavigationMenuRootProvider, type NavigationMenuRootProviderBaseProps, type NavigationMenuRootProviderProps, NavigationMenuTrigger, type NavigationMenuTriggerBaseProps, type NavigationMenuTriggerProps, NavigationMenuViewport, type NavigationMenuViewportBaseProps, NavigationMenuViewportPositioner, type NavigationMenuViewportPositionerBaseProps, type NavigationMenuViewportPositionerProps, type NavigationMenuViewportProps, type UseNavigationMenuContext, type UseNavigationMenuProps, type UseNavigationMenuReturn, useNavigationMenu, useNavigationMenuContext };
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
export { anatomy as navigationMenuAnatomy } from '../../chunk/TILTTA4A.js';
|
|
2
|
+
import { usePresence, PresenceProvider } from '../../chunk/2WRCIBVP.js';
|
|
3
|
+
import { composeRefs } from '../../chunk/ROP6QZQ7.js';
|
|
4
|
+
import { useRenderStrategyContext, splitRenderStrategyProps, RenderStrategyProvider } from '../../chunk/GUFIKGZ6.js';
|
|
5
|
+
import { createSplitProps } from '../../chunk/ZMHI4GDJ.js';
|
|
6
|
+
import { useLocaleContext } from '../../chunk/RVOPDSQY.js';
|
|
7
|
+
import { useEnvironmentContext } from '../../chunk/3P5T77QU.js';
|
|
8
|
+
import { runIfFn } from '../../chunk/DT73WLR4.js';
|
|
9
|
+
import { ark } from '../../chunk/EPLBB4QN.js';
|
|
10
|
+
import { createContext } from '../../chunk/THN5C4U6.js';
|
|
11
|
+
import { __export } from '../../chunk/ESLJRKWD.js';
|
|
12
|
+
import { createComponent, mergeProps as mergeProps$1, Portal, memo } from 'solid-js/web';
|
|
13
|
+
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
14
|
+
import { Show, createMemo, createUniqueId } from 'solid-js';
|
|
15
|
+
import * as navigationMenu from '@zag-js/navigation-menu';
|
|
16
|
+
|
|
17
|
+
// src/components/navigation-menu/use-navigation-menu-context.ts
|
|
18
|
+
var [NavigationMenuProvider, useNavigationMenuContext] = createContext({
|
|
19
|
+
hookName: "useNavigationMenuContext",
|
|
20
|
+
providerName: "<NavigationMenuProvider />"
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// src/components/navigation-menu/navigation-menu-arrow.tsx
|
|
24
|
+
var NavigationMenuArrow = (props) => {
|
|
25
|
+
const api = useNavigationMenuContext();
|
|
26
|
+
const mergedProps = mergeProps(() => api().getArrowProps(), props);
|
|
27
|
+
return createComponent(ark.div, mergedProps);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
// src/components/navigation-menu/use-navigation-menu-item-props-context.ts
|
|
31
|
+
var [NavigationMenuItemPropsProvider, useNavigationMenuItemPropsContext] = createContext({
|
|
32
|
+
hookName: "useNavigationMenuItemPropsContext",
|
|
33
|
+
providerName: "<NavigationMenuItemPropsProvider />",
|
|
34
|
+
strict: false
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
// src/components/navigation-menu/navigation-menu-content.tsx
|
|
38
|
+
var splitContentProps = createSplitProps();
|
|
39
|
+
var NavigationMenuContent = (props) => {
|
|
40
|
+
const api = useNavigationMenuContext();
|
|
41
|
+
const itemContext = useNavigationMenuItemPropsContext();
|
|
42
|
+
const value = createMemo(() => props.value ?? itemContext?.value);
|
|
43
|
+
const combinedProps = mergeProps(props, () => ({
|
|
44
|
+
value: value()
|
|
45
|
+
}));
|
|
46
|
+
const [contentProps, localProps] = splitContentProps(combinedProps, ["value"]);
|
|
47
|
+
const renderStrategyProps = useRenderStrategyContext();
|
|
48
|
+
const presenceApi = usePresence(mergeProps(renderStrategyProps, () => ({
|
|
49
|
+
present: api().value === contentProps.value
|
|
50
|
+
})));
|
|
51
|
+
const mergedProps = mergeProps(() => api().getContentProps(contentProps), () => presenceApi().presenceProps, localProps);
|
|
52
|
+
const viewportNode = createMemo(() => api().getViewportNode());
|
|
53
|
+
const isViewportRendered = createMemo(() => api().isViewportRendered);
|
|
54
|
+
const content = createComponent(PresenceProvider, {
|
|
55
|
+
value: presenceApi,
|
|
56
|
+
get children() {
|
|
57
|
+
return createComponent(Show, {
|
|
58
|
+
get when() {
|
|
59
|
+
return !presenceApi().unmounted;
|
|
60
|
+
},
|
|
61
|
+
get children() {
|
|
62
|
+
return createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
63
|
+
ref(r$) {
|
|
64
|
+
var _ref$ = composeRefs(presenceApi().ref, props.ref);
|
|
65
|
+
typeof _ref$ === "function" && _ref$(r$);
|
|
66
|
+
}
|
|
67
|
+
}));
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
return createComponent(Show, {
|
|
73
|
+
get when() {
|
|
74
|
+
return memo(() => !!isViewportRendered())() && viewportNode();
|
|
75
|
+
},
|
|
76
|
+
fallback: content,
|
|
77
|
+
get children() {
|
|
78
|
+
return [createComponent(ark.div, mergeProps$1(() => api().getViewportProxyProps(contentProps))), createComponent(ark.div, mergeProps$1(() => api().getTriggerProxyProps(contentProps))), createComponent(Portal, {
|
|
79
|
+
get mount() {
|
|
80
|
+
return viewportNode();
|
|
81
|
+
},
|
|
82
|
+
children: content
|
|
83
|
+
})];
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
// src/components/navigation-menu/navigation-menu-context.tsx
|
|
89
|
+
var NavigationMenuContext = (props) => props.children(useNavigationMenuContext());
|
|
90
|
+
var NavigationMenuIndicator = (props) => {
|
|
91
|
+
const api = useNavigationMenuContext();
|
|
92
|
+
const renderStrategyProps = useRenderStrategyContext();
|
|
93
|
+
const presenceApi = usePresence(mergeProps(renderStrategyProps, () => ({
|
|
94
|
+
present: api().open
|
|
95
|
+
})));
|
|
96
|
+
const mergedProps = mergeProps(() => api().getIndicatorProps(), () => presenceApi().presenceProps, props);
|
|
97
|
+
return createComponent(PresenceProvider, {
|
|
98
|
+
value: presenceApi,
|
|
99
|
+
get children() {
|
|
100
|
+
return createComponent(Show, {
|
|
101
|
+
get when() {
|
|
102
|
+
return !presenceApi().unmounted;
|
|
103
|
+
},
|
|
104
|
+
get children() {
|
|
105
|
+
return createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
106
|
+
ref(r$) {
|
|
107
|
+
var _ref$ = composeRefs(presenceApi().ref, props.ref);
|
|
108
|
+
typeof _ref$ === "function" && _ref$(r$);
|
|
109
|
+
}
|
|
110
|
+
}));
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
var splitItemProps = createSplitProps();
|
|
117
|
+
var NavigationMenuItem = (props) => {
|
|
118
|
+
const [itemProps, localProps] = splitItemProps(props, ["disabled", "value"]);
|
|
119
|
+
const api = useNavigationMenuContext();
|
|
120
|
+
const mergedProps = mergeProps(() => api().getItemProps(itemProps), localProps);
|
|
121
|
+
return createComponent(NavigationMenuItemPropsProvider, {
|
|
122
|
+
value: itemProps,
|
|
123
|
+
get children() {
|
|
124
|
+
return createComponent(ark.div, mergedProps);
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
var NavigationMenuItemIndicator = (props) => {
|
|
129
|
+
const api = useNavigationMenuContext();
|
|
130
|
+
const itemProps = useNavigationMenuItemPropsContext();
|
|
131
|
+
const mergedProps = mergeProps(() => api().getItemIndicatorProps(itemProps), props);
|
|
132
|
+
return createComponent(ark.div, mergedProps);
|
|
133
|
+
};
|
|
134
|
+
var splitLinkProps = createSplitProps();
|
|
135
|
+
var NavigationMenuLink = (props) => {
|
|
136
|
+
const itemContext = useNavigationMenuItemPropsContext();
|
|
137
|
+
const value = createMemo(() => props.value ?? itemContext?.value);
|
|
138
|
+
const combinedProps = mergeProps(props, () => ({
|
|
139
|
+
value: value()
|
|
140
|
+
}));
|
|
141
|
+
const [linkProps, localProps] = splitLinkProps(combinedProps, ["current", "onSelect", "value", "closeOnClick"]);
|
|
142
|
+
const api = useNavigationMenuContext();
|
|
143
|
+
const mergedProps = mergeProps(() => api().getLinkProps(linkProps), localProps);
|
|
144
|
+
return createComponent(ark.a, mergedProps);
|
|
145
|
+
};
|
|
146
|
+
var NavigationMenuList = (props) => {
|
|
147
|
+
const api = useNavigationMenuContext();
|
|
148
|
+
const mergedProps = mergeProps(() => api().getListProps(), props);
|
|
149
|
+
return createComponent(ark.div, mergedProps);
|
|
150
|
+
};
|
|
151
|
+
var useNavigationMenu = (props) => {
|
|
152
|
+
const id = createUniqueId();
|
|
153
|
+
const locale = useLocaleContext();
|
|
154
|
+
const environment = useEnvironmentContext();
|
|
155
|
+
const machineProps = createMemo(() => ({
|
|
156
|
+
id,
|
|
157
|
+
dir: locale().dir,
|
|
158
|
+
getRootNode: environment().getRootNode,
|
|
159
|
+
...runIfFn(props)
|
|
160
|
+
}));
|
|
161
|
+
const service = useMachine(navigationMenu.machine, machineProps);
|
|
162
|
+
return createMemo(() => navigationMenu.connect(service, normalizeProps));
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
// src/components/navigation-menu/navigation-menu-root.tsx
|
|
166
|
+
var NavigationMenuRoot = (props) => {
|
|
167
|
+
const [renderStrategyProps, navigationMenuProps] = splitRenderStrategyProps(props);
|
|
168
|
+
const [useNavigationMenuProps, localProps] = createSplitProps()(navigationMenuProps, ["closeDelay", "defaultValue", "disableClickTrigger", "disableHoverTrigger", "disablePointerLeaveClose", "id", "ids", "onValueChange", "openDelay", "orientation", "value"]);
|
|
169
|
+
const api = useNavigationMenu(useNavigationMenuProps);
|
|
170
|
+
const mergedProps = mergeProps(() => api().getRootProps(), localProps);
|
|
171
|
+
return createComponent(NavigationMenuProvider, {
|
|
172
|
+
value: api,
|
|
173
|
+
get children() {
|
|
174
|
+
return createComponent(RenderStrategyProvider, {
|
|
175
|
+
value: renderStrategyProps,
|
|
176
|
+
get children() {
|
|
177
|
+
return createComponent(ark.nav, mergedProps);
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
};
|
|
183
|
+
var NavigationMenuRootProvider = (props) => {
|
|
184
|
+
const [renderStrategyProps, navigationMenuProps] = splitRenderStrategyProps(props);
|
|
185
|
+
const [{
|
|
186
|
+
value: navigationMenu2
|
|
187
|
+
}, localProps] = createSplitProps()(navigationMenuProps, ["value"]);
|
|
188
|
+
const mergedProps = mergeProps(() => navigationMenu2().getRootProps(), localProps);
|
|
189
|
+
return createComponent(NavigationMenuProvider, {
|
|
190
|
+
value: navigationMenu2,
|
|
191
|
+
get children() {
|
|
192
|
+
return createComponent(RenderStrategyProvider, {
|
|
193
|
+
value: renderStrategyProps,
|
|
194
|
+
get children() {
|
|
195
|
+
return createComponent(ark.nav, mergedProps);
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
};
|
|
201
|
+
var splitItemProps2 = createSplitProps();
|
|
202
|
+
var NavigationMenuTrigger = (props) => {
|
|
203
|
+
const itemContext = useNavigationMenuItemPropsContext();
|
|
204
|
+
if (!itemContext) {
|
|
205
|
+
throw new Error("NavigationMenu.Trigger must be used within NavigationMenu.Item");
|
|
206
|
+
}
|
|
207
|
+
const value = createMemo(() => itemContext.value);
|
|
208
|
+
const disabled = createMemo(() => props.disabled ?? itemContext.disabled);
|
|
209
|
+
const combinedProps = mergeProps(props, () => ({
|
|
210
|
+
value: value(),
|
|
211
|
+
disabled: disabled()
|
|
212
|
+
}));
|
|
213
|
+
const [triggerProps, localProps] = splitItemProps2(combinedProps, ["value", "disabled"]);
|
|
214
|
+
const api = useNavigationMenuContext();
|
|
215
|
+
const mergedProps = mergeProps(() => api().getTriggerProps(triggerProps), localProps);
|
|
216
|
+
return createComponent(ark.button, mergedProps);
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
// src/components/navigation-menu/use-navigation-menu-viewport-props-context.ts
|
|
220
|
+
var [NavigationMenuViewportPropsProvider, useNavigationMenuViewportPropsContext] = createContext({
|
|
221
|
+
hookName: "useNavigationMenuViewportPropsContext",
|
|
222
|
+
providerName: "<NavigationMenuViewportPropsProvider />",
|
|
223
|
+
strict: false
|
|
224
|
+
});
|
|
225
|
+
|
|
226
|
+
// src/components/navigation-menu/navigation-menu-viewport.tsx
|
|
227
|
+
var NavigationMenuViewport = (props) => {
|
|
228
|
+
const viewportPropsContext = useNavigationMenuViewportPropsContext();
|
|
229
|
+
const api = useNavigationMenuContext();
|
|
230
|
+
const renderStrategyProps = useRenderStrategyContext();
|
|
231
|
+
const presenceApi = usePresence(mergeProps(renderStrategyProps, () => ({
|
|
232
|
+
present: api().open
|
|
233
|
+
})));
|
|
234
|
+
const mergedProps = mergeProps(() => api().getViewportProps(viewportPropsContext), () => presenceApi().presenceProps, props);
|
|
235
|
+
return createComponent(Show, {
|
|
236
|
+
get when() {
|
|
237
|
+
return !presenceApi().unmounted;
|
|
238
|
+
},
|
|
239
|
+
get children() {
|
|
240
|
+
return createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
241
|
+
ref(r$) {
|
|
242
|
+
var _ref$ = composeRefs(presenceApi().ref, props.ref);
|
|
243
|
+
typeof _ref$ === "function" && _ref$(r$);
|
|
244
|
+
}
|
|
245
|
+
}));
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
};
|
|
249
|
+
var NavigationMenuViewportPositioner = (props) => {
|
|
250
|
+
const [viewportProps, localProps] = createSplitProps()(props, ["align"]);
|
|
251
|
+
const api = useNavigationMenuContext();
|
|
252
|
+
const mergedProps = mergeProps(() => api().getViewportPositionerProps(viewportProps), localProps);
|
|
253
|
+
return createComponent(NavigationMenuViewportPropsProvider, {
|
|
254
|
+
value: viewportProps,
|
|
255
|
+
get children() {
|
|
256
|
+
return createComponent(ark.div, mergedProps);
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
// src/components/navigation-menu/navigation-menu.ts
|
|
262
|
+
var navigation_menu_exports = {};
|
|
263
|
+
__export(navigation_menu_exports, {
|
|
264
|
+
Arrow: () => NavigationMenuArrow,
|
|
265
|
+
Content: () => NavigationMenuContent,
|
|
266
|
+
Context: () => NavigationMenuContext,
|
|
267
|
+
Indicator: () => NavigationMenuIndicator,
|
|
268
|
+
Item: () => NavigationMenuItem,
|
|
269
|
+
ItemIndicator: () => NavigationMenuItemIndicator,
|
|
270
|
+
Link: () => NavigationMenuLink,
|
|
271
|
+
List: () => NavigationMenuList,
|
|
272
|
+
Root: () => NavigationMenuRoot,
|
|
273
|
+
RootProvider: () => NavigationMenuRootProvider,
|
|
274
|
+
Trigger: () => NavigationMenuTrigger,
|
|
275
|
+
Viewport: () => NavigationMenuViewport,
|
|
276
|
+
ViewportPositioner: () => NavigationMenuViewportPositioner
|
|
277
|
+
});
|
|
278
|
+
|
|
279
|
+
export { navigation_menu_exports as NavigationMenu, NavigationMenuArrow, NavigationMenuContent, NavigationMenuContext, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuItemIndicator, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuRootProvider, NavigationMenuTrigger, NavigationMenuViewport, NavigationMenuViewportPositioner, useNavigationMenu, useNavigationMenuContext };
|