@webstudio-is/sdk-components-react-radix 0.0.0-c1d6247 → 0.0.0-ca00e2a
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/lib/__generated__/accordion.props.js +15 -2582
- package/lib/__generated__/checkbox.props.js +5 -1071
- package/lib/__generated__/collapsible.props.js +7 -1012
- package/lib/__generated__/dialog.props.js +10 -2585
- package/lib/__generated__/label.props.js +2 -517
- package/lib/__generated__/navigation-menu.props.js +13 -3625
- package/lib/__generated__/popover.props.js +5 -508
- package/lib/__generated__/radio-group.props.js +19 -1568
- package/lib/__generated__/select.props.js +42 -3615
- package/lib/__generated__/switch.props.js +5 -1071
- package/lib/__generated__/tabs.props.js +16 -2072
- package/lib/__generated__/tooltip.props.js +6 -503
- package/lib/accordion.js +24 -23
- package/lib/accordion.template.js +12 -12
- package/lib/accordion.ws.js +67 -82
- package/lib/checkbox.js +2 -2
- package/lib/checkbox.template.js +10 -10
- package/lib/checkbox.ws.js +21 -21
- package/lib/collapsible.js +3 -3
- package/lib/collapsible.ws.js +30 -37
- package/lib/dialog.template.js +19 -19
- package/lib/dialog.ws.js +85 -114
- package/lib/label.template.js +3 -3
- package/lib/label.ws.js +8 -9
- package/lib/navigation-menu.js +21 -20
- package/lib/navigation-menu.template.js +8 -8
- package/lib/navigation-menu.ws.js +82 -99
- package/lib/popover.ws.js +31 -38
- package/lib/radio-group.js +2 -2
- package/lib/radio-group.ws.js +37 -43
- package/lib/select.js +4 -6
- package/lib/select.ws.js +91 -127
- package/lib/shared/meta.js +13 -0
- package/lib/shared/preset-styles.js +29 -29
- package/lib/shared/theme.js +25 -68
- package/lib/sheet.template.js +32 -32
- package/lib/switch.js +2 -2
- package/lib/switch.template.js +9 -9
- package/lib/switch.ws.js +25 -25
- package/lib/tabs.js +41 -40
- package/lib/tabs.template.js +15 -15
- package/lib/tabs.ws.js +45 -58
- package/lib/tooltip.ws.js +32 -39
- package/lib/types/select.d.ts +3 -3
- package/lib/types/shared/meta.d.ts +1 -0
- package/lib/types/shared/preset-styles.d.ts +2 -2
- package/lib/types/shared/proxy.d.ts +1 -0
- package/package.json +21 -21
package/lib/dialog.ws.js
CHANGED
|
@@ -1,138 +1,109 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defaultStates as
|
|
3
|
-
import { div as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { DialogIcon as e, TriggerIcon as n, OverlayIcon as i, ContentIcon as r, ButtonElementIcon as a, HeadingIcon as s, TextIcon as l } from "@webstudio-is/icons/svg";
|
|
2
|
+
import { defaultStates as c } from "@webstudio-is/sdk";
|
|
3
|
+
import { div as t, button as p, h2 as g, p as D } from "@webstudio-is/sdk/normalize.css";
|
|
4
|
+
import { radix as o } from "./shared/meta.js";
|
|
5
|
+
import { propsDialog as d, propsDialogTrigger as m, propsDialogOverlay as y, propsDialogContent as M, propsDialogClose as h, propsDialogTitle as C, propsDialogDescription as T } from "./__generated__/dialog.props.js";
|
|
6
|
+
import { buttonReset as f } from "./shared/preset-styles.js";
|
|
6
7
|
const O = {
|
|
7
|
-
type: "container",
|
|
8
|
-
icon: t,
|
|
9
|
-
constraints: {
|
|
10
|
-
relation: "ancestor",
|
|
11
|
-
component: { $eq: "Dialog" }
|
|
12
|
-
}
|
|
13
|
-
}, P = {
|
|
14
|
-
type: "container",
|
|
15
|
-
presetStyle: {
|
|
16
|
-
div: o
|
|
17
|
-
},
|
|
18
8
|
icon: n,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
relation: "descendant",
|
|
26
|
-
component: { $eq: "DialogContent" }
|
|
27
|
-
}
|
|
28
|
-
]
|
|
29
|
-
}, S = {
|
|
30
|
-
type: "container",
|
|
31
|
-
presetStyle: {
|
|
32
|
-
div: o
|
|
33
|
-
},
|
|
34
|
-
icon: e,
|
|
35
|
-
constraints: [
|
|
36
|
-
{
|
|
37
|
-
relation: "ancestor",
|
|
38
|
-
component: { $eq: "DialogOverlay" }
|
|
39
|
-
},
|
|
40
|
-
// often deleted by users
|
|
41
|
-
// though radix starts throwing warnings in console
|
|
42
|
-
/*
|
|
43
|
-
{
|
|
44
|
-
relation: "descendant",
|
|
45
|
-
component: { $eq: "DialogTitle" },
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
relation: "descendant",
|
|
49
|
-
component: { $eq: "DialogDescription" },
|
|
50
|
-
},
|
|
51
|
-
*/
|
|
52
|
-
{
|
|
53
|
-
relation: "descendant",
|
|
54
|
-
component: { $eq: "DialogClose" }
|
|
55
|
-
}
|
|
56
|
-
]
|
|
9
|
+
contentModel: {
|
|
10
|
+
category: "none",
|
|
11
|
+
children: ["instance"]
|
|
12
|
+
}
|
|
57
13
|
}, b = {
|
|
58
|
-
type: "container",
|
|
59
|
-
presetStyle: {
|
|
60
|
-
h2: l
|
|
61
|
-
},
|
|
62
14
|
icon: i,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}, x = {
|
|
68
|
-
type: "container",
|
|
69
|
-
presetStyle: {
|
|
70
|
-
p: c
|
|
15
|
+
contentModel: {
|
|
16
|
+
category: "none",
|
|
17
|
+
children: ["instance"],
|
|
18
|
+
descendants: [o.DialogContent]
|
|
71
19
|
},
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
relation: "ancestor",
|
|
75
|
-
component: { $eq: "DialogContent" }
|
|
20
|
+
presetStyle: {
|
|
21
|
+
div: t
|
|
76
22
|
}
|
|
77
23
|
}, B = {
|
|
78
|
-
type: "container",
|
|
79
|
-
presetStyle: {
|
|
80
|
-
button: [T, g].flat()
|
|
81
|
-
},
|
|
82
|
-
states: p,
|
|
83
24
|
icon: r,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
25
|
+
contentModel: {
|
|
26
|
+
category: "none",
|
|
27
|
+
children: ["instance"],
|
|
28
|
+
descendants: [
|
|
29
|
+
o.DialogTitle,
|
|
30
|
+
o.DialogDescription,
|
|
31
|
+
o.DialogClose
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
presetStyle: {
|
|
35
|
+
div: t
|
|
88
36
|
}
|
|
89
|
-
}, h = {
|
|
90
|
-
type: "container",
|
|
91
|
-
icon: s,
|
|
92
|
-
constraints: [
|
|
93
|
-
{
|
|
94
|
-
relation: "descendant",
|
|
95
|
-
component: { $eq: "DialogTrigger" }
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
relation: "descendant",
|
|
99
|
-
component: { $eq: "DialogOverlay" }
|
|
100
|
-
}
|
|
101
|
-
]
|
|
102
37
|
}, E = {
|
|
103
|
-
|
|
104
|
-
|
|
38
|
+
icon: s,
|
|
39
|
+
contentModel: {
|
|
40
|
+
category: "none",
|
|
41
|
+
children: ["instance", "rich-text"]
|
|
42
|
+
},
|
|
43
|
+
presetStyle: {
|
|
44
|
+
h2: g
|
|
45
|
+
}
|
|
105
46
|
}, H = {
|
|
106
|
-
|
|
47
|
+
icon: l,
|
|
48
|
+
contentModel: {
|
|
49
|
+
category: "none",
|
|
50
|
+
children: ["instance", "rich-text"]
|
|
51
|
+
},
|
|
52
|
+
presetStyle: {
|
|
53
|
+
p: D
|
|
54
|
+
}
|
|
107
55
|
}, R = {
|
|
108
|
-
|
|
109
|
-
|
|
56
|
+
icon: a,
|
|
57
|
+
label: "Close Button",
|
|
58
|
+
contentModel: {
|
|
59
|
+
category: "none",
|
|
60
|
+
children: ["instance", "rich-text"]
|
|
61
|
+
},
|
|
62
|
+
states: c,
|
|
63
|
+
presetStyle: {
|
|
64
|
+
button: [f, p].flat()
|
|
65
|
+
}
|
|
110
66
|
}, j = {
|
|
111
|
-
|
|
112
|
-
|
|
67
|
+
icon: e,
|
|
68
|
+
contentModel: {
|
|
69
|
+
category: "instance",
|
|
70
|
+
children: ["instance"],
|
|
71
|
+
descendants: [o.DialogTrigger, o.DialogOverlay]
|
|
72
|
+
}
|
|
113
73
|
}, k = {
|
|
114
74
|
props: d,
|
|
115
75
|
initialProps: []
|
|
76
|
+
}, q = {
|
|
77
|
+
props: m
|
|
116
78
|
}, w = {
|
|
117
|
-
props:
|
|
79
|
+
props: M,
|
|
118
80
|
initialProps: []
|
|
119
81
|
}, z = {
|
|
120
|
-
props:
|
|
82
|
+
props: y,
|
|
83
|
+
initialProps: []
|
|
84
|
+
}, A = {
|
|
85
|
+
props: h,
|
|
86
|
+
initialProps: []
|
|
87
|
+
}, F = {
|
|
88
|
+
props: C,
|
|
89
|
+
initialProps: []
|
|
90
|
+
}, G = {
|
|
91
|
+
props: T,
|
|
121
92
|
initialProps: []
|
|
122
93
|
};
|
|
123
94
|
export {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
95
|
+
j as metaDialog,
|
|
96
|
+
R as metaDialogClose,
|
|
97
|
+
B as metaDialogContent,
|
|
98
|
+
H as metaDialogDescription,
|
|
99
|
+
b as metaDialogOverlay,
|
|
100
|
+
E as metaDialogTitle,
|
|
130
101
|
O as metaDialogTrigger,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
102
|
+
k as propsMetaDialog,
|
|
103
|
+
A as propsMetaDialogClose,
|
|
104
|
+
w as propsMetaDialogContent,
|
|
105
|
+
G as propsMetaDialogDescription,
|
|
106
|
+
z as propsMetaDialogOverlay,
|
|
107
|
+
F as propsMetaDialogTitle,
|
|
108
|
+
q as propsMetaDialogTrigger
|
|
138
109
|
};
|
package/lib/label.template.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { PlaceholderValue as t, css as o } from "@webstudio-is/template";
|
|
3
3
|
import { radix as i } from "./shared/proxy.js";
|
|
4
4
|
import { fontSize as r, lineHeight as n, weights as h } from "./shared/theme.js";
|
|
5
5
|
const p = {
|
|
@@ -9,12 +9,12 @@ const p = {
|
|
|
9
9
|
template: /* @__PURE__ */ e(
|
|
10
10
|
i.Label,
|
|
11
11
|
{
|
|
12
|
-
"ws:style":
|
|
12
|
+
"ws:style": o`
|
|
13
13
|
font-size: ${r.sm};
|
|
14
14
|
line-height: ${n.none};
|
|
15
15
|
font-weight: ${h.medium};
|
|
16
16
|
`,
|
|
17
|
-
children: new
|
|
17
|
+
children: new t("Form Label")
|
|
18
18
|
}
|
|
19
19
|
)
|
|
20
20
|
};
|
package/lib/label.ws.js
CHANGED
|
@@ -2,18 +2,17 @@ import { LabelIcon as t } from "@webstudio-is/icons/svg";
|
|
|
2
2
|
import { defaultStates as o } from "@webstudio-is/sdk";
|
|
3
3
|
import { label as r } from "@webstudio-is/sdk/normalize.css";
|
|
4
4
|
import { props as e } from "./__generated__/label.props.js";
|
|
5
|
-
const
|
|
6
|
-
label: r
|
|
7
|
-
}, l = {
|
|
8
|
-
type: "container",
|
|
5
|
+
const i = {
|
|
9
6
|
icon: t,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
states: o,
|
|
8
|
+
presetStyle: {
|
|
9
|
+
label: r
|
|
10
|
+
}
|
|
11
|
+
}, l = {
|
|
13
12
|
props: e,
|
|
14
13
|
initialProps: ["id", "className", "htmlFor"]
|
|
15
14
|
};
|
|
16
15
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
i as meta,
|
|
17
|
+
l as propsMeta
|
|
19
18
|
};
|
package/lib/navigation-menu.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as c, useContext as v, Children as g } from "react";
|
|
2
3
|
import * as a from "@radix-ui/react-navigation-menu";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
const { renderer: t } = f
|
|
4
|
+
import { getIndexWithinAncestorFromProps as l } from "@webstudio-is/sdk/runtime";
|
|
5
|
+
import { ReactSdkContext as f, getClosestInstance as d } from "@webstudio-is/react-sdk/runtime";
|
|
6
|
+
const C = c(({ value: o, ...n }, e) => {
|
|
7
|
+
const { renderer: t } = v(f);
|
|
7
8
|
let i = o;
|
|
8
9
|
return t === "canvas" && (i = i === "" ? "-1" : i), /* @__PURE__ */ r(a.Root, { ref: e, value: i, ...n });
|
|
9
|
-
}),
|
|
10
|
+
}), P = a.List, k = a.Viewport, x = a.Content, A = c(({ value: o, ...n }, e) => {
|
|
10
11
|
const t = l(n);
|
|
11
12
|
return /* @__PURE__ */ r(a.Item, { ref: e, value: o ?? t, ...n });
|
|
12
|
-
}), A = c(({ children: o, ...n }, e) => {
|
|
13
|
-
const t = m.toArray(o)[0];
|
|
14
|
-
return /* @__PURE__ */ r(a.Link, { asChild: !0, ref: e, ...n, children: t ?? /* @__PURE__ */ r("a", { children: "Add link component" }) });
|
|
15
13
|
}), I = c(({ children: o, ...n }, e) => {
|
|
16
|
-
const t =
|
|
14
|
+
const t = g.toArray(o)[0];
|
|
15
|
+
return /* @__PURE__ */ r(a.Link, { asChild: !0, ref: e, ...n, children: t ?? /* @__PURE__ */ r("a", { children: "Add link component" }) });
|
|
16
|
+
}), $ = c(({ children: o, ...n }, e) => {
|
|
17
|
+
const t = g.toArray(o)[0];
|
|
17
18
|
return /* @__PURE__ */ r(a.Trigger, { asChild: !0, ref: e, ...n, children: t ?? /* @__PURE__ */ r("button", { children: "Add button or link" }) });
|
|
18
|
-
}), s = "@webstudio-is/sdk-components-react-radix",
|
|
19
|
+
}), s = "@webstudio-is/sdk-components-react-radix", w = {
|
|
19
20
|
onNavigatorUnselect: (o, n) => {
|
|
20
21
|
for (const e of n.instancePath)
|
|
21
22
|
if (e.component === `${s}:NavigationMenuContent`) {
|
|
@@ -42,18 +43,18 @@ const p = c(({ value: o, ...n }, e) => {
|
|
|
42
43
|
);
|
|
43
44
|
if (u === void 0 || i === void 0)
|
|
44
45
|
return;
|
|
45
|
-
const
|
|
46
|
-
|
|
46
|
+
const m = o.getPropValue(u, "value") ?? ((e = o.indexesWithinAncestors.get(u.id)) == null ? void 0 : e.toString());
|
|
47
|
+
m && o.setMemoryProp(i, "value", m);
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
};
|
|
50
51
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
C as NavigationMenu,
|
|
53
|
+
x as NavigationMenuContent,
|
|
54
|
+
A as NavigationMenuItem,
|
|
55
|
+
I as NavigationMenuLink,
|
|
56
|
+
P as NavigationMenuList,
|
|
57
|
+
$ as NavigationMenuTrigger,
|
|
58
|
+
k as NavigationMenuViewport,
|
|
59
|
+
w as hooksNavigationMenu
|
|
59
60
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { ChevronDownIcon as w } from "@webstudio-is/icons/svg";
|
|
3
|
-
import {
|
|
3
|
+
import { css as t, $ as n, PlaceholderValue as l } from "@webstudio-is/template";
|
|
4
4
|
import { radix as r } from "./shared/proxy.js";
|
|
5
5
|
import { getButtonStyle as u } from "./shared/styles.js";
|
|
6
|
-
import { spacing as i,
|
|
6
|
+
import { spacing as i, borderRadius as h, borderWidth as v, colors as a, boxShadow as b, height as y, width as p, transition as x, fontSize as m, weights as $, lineHeight as c } from "./shared/theme.js";
|
|
7
7
|
const k = [
|
|
8
8
|
{
|
|
9
9
|
title: "Sheet",
|
|
@@ -60,7 +60,7 @@ const k = [
|
|
|
60
60
|
flex-direction: column;
|
|
61
61
|
user-select: none;
|
|
62
62
|
gap: ${i[1]};
|
|
63
|
-
border-radius: ${
|
|
63
|
+
border-radius: ${h.md};
|
|
64
64
|
padding: ${i[3]};
|
|
65
65
|
line-height: ${c.none};
|
|
66
66
|
text-decoration-line: none;
|
|
@@ -106,7 +106,7 @@ const k = [
|
|
|
106
106
|
{
|
|
107
107
|
"ws:label": "Flex Column",
|
|
108
108
|
"ws:style": t`
|
|
109
|
-
width: ${
|
|
109
|
+
width: ${p[64]};
|
|
110
110
|
display: flex;
|
|
111
111
|
gap: ${i[4]};
|
|
112
112
|
flex-direction: column;
|
|
@@ -129,8 +129,8 @@ const k = [
|
|
|
129
129
|
"ws:style": t`
|
|
130
130
|
background-color: ${a.border};
|
|
131
131
|
padding: ${i[4]};
|
|
132
|
-
width: ${
|
|
133
|
-
border-radius: ${
|
|
132
|
+
width: ${p[48]};
|
|
133
|
+
border-radius: ${h.md};
|
|
134
134
|
`,
|
|
135
135
|
children: new l("")
|
|
136
136
|
}
|
|
@@ -174,7 +174,7 @@ const k = [
|
|
|
174
174
|
margin-left: ${i[1]};
|
|
175
175
|
rotate: var(--navigation-menu-trigger-icon-transform);
|
|
176
176
|
height: ${y[4]};
|
|
177
|
-
width: ${
|
|
177
|
+
width: ${p[4]};
|
|
178
178
|
flex-shrink: 0;
|
|
179
179
|
transition: ${x.all};
|
|
180
180
|
transition-duration: 200ms;
|
|
@@ -262,7 +262,7 @@ const k = [
|
|
|
262
262
|
position: relative;
|
|
263
263
|
margin-top: ${i[1.5]};
|
|
264
264
|
overflow: hidden;
|
|
265
|
-
border-radius: ${
|
|
265
|
+
border-radius: ${h.md};
|
|
266
266
|
border: ${v.DEFAULT} solid ${a.border};
|
|
267
267
|
background-color: ${a.popover};
|
|
268
268
|
color: ${a.popoverForeground};
|
|
@@ -1,124 +1,107 @@
|
|
|
1
|
-
import { NavigationMenuIcon as t, ListIcon as
|
|
2
|
-
import { div as
|
|
3
|
-
import {
|
|
1
|
+
import { NavigationMenuIcon as t, ListIcon as o, ListItemIcon as i, TriggerIcon as a, ContentIcon as r, BoxIcon as s, ViewportIcon as c } from "@webstudio-is/icons/svg";
|
|
2
|
+
import { div as e } from "@webstudio-is/sdk/normalize.css";
|
|
3
|
+
import { radix as n } from "./shared/meta.js";
|
|
4
|
+
import { propsNavigationMenu as p, propsNavigationMenuList as g, propsNavigationMenuItem as M, propsNavigationMenuTrigger as u, propsNavigationMenuContent as l, propsNavigationMenuLink as v, propsNavigationMenuViewport as N } from "./__generated__/navigation-menu.props.js";
|
|
4
5
|
const y = {
|
|
5
|
-
type: "container",
|
|
6
6
|
icon: t,
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
contentModel: {
|
|
8
|
+
category: "instance",
|
|
9
|
+
children: ["instance"],
|
|
10
|
+
descendants: [n.NavigationMenuList, n.NavigationMenuViewport]
|
|
9
11
|
},
|
|
10
|
-
constraints: [
|
|
11
|
-
{
|
|
12
|
-
relation: "descendant",
|
|
13
|
-
component: { $eq: "NavigationMenuList" }
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
relation: "descendant",
|
|
17
|
-
component: { $eq: "NavigationMenuViewport" }
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
}, L = {
|
|
21
|
-
type: "container",
|
|
22
|
-
icon: e,
|
|
23
|
-
constraints: [
|
|
24
|
-
{
|
|
25
|
-
relation: "ancestor",
|
|
26
|
-
component: { $eq: "NavigationMenu" }
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
relation: "descendant",
|
|
30
|
-
component: { $eq: "NavigationMenuItem" }
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
12
|
presetStyle: {
|
|
34
|
-
div:
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
}, $ = {
|
|
38
|
-
type: "container",
|
|
13
|
+
div: e
|
|
14
|
+
}
|
|
15
|
+
}, h = {
|
|
39
16
|
icon: o,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
17
|
+
label: "Menu List",
|
|
18
|
+
contentModel: {
|
|
19
|
+
category: "none",
|
|
20
|
+
children: ["instance"],
|
|
21
|
+
descendants: [n.NavigationMenuItem]
|
|
43
22
|
},
|
|
44
23
|
presetStyle: {
|
|
45
|
-
div:
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
label: "Menu Item"
|
|
49
|
-
}, d = {
|
|
50
|
-
type: "container",
|
|
24
|
+
div: e
|
|
25
|
+
}
|
|
26
|
+
}, b = {
|
|
51
27
|
icon: i,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
component: { $eq: "NavigationMenuItem" }
|
|
28
|
+
label: "Menu Item",
|
|
29
|
+
indexWithinAncestor: n.NavigationMenu,
|
|
30
|
+
contentModel: {
|
|
31
|
+
category: "none",
|
|
32
|
+
children: ["instance"],
|
|
33
|
+
descendants: [
|
|
34
|
+
n.NavigationMenuTrigger,
|
|
35
|
+
n.NavigationMenuContent,
|
|
36
|
+
n.NavigationMenuLink
|
|
37
|
+
]
|
|
63
38
|
},
|
|
64
|
-
indexWithinAncestor: "NavigationMenu",
|
|
65
39
|
presetStyle: {
|
|
66
|
-
div:
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
component: { $eq: "NavigationMenu" }
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
relation: "ancestor",
|
|
79
|
-
component: { $in: ["NavigationMenuContent", "NavigationMenuItem"] }
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
label: "Accessible Link Wrapper"
|
|
40
|
+
div: e
|
|
41
|
+
}
|
|
42
|
+
}, k = {
|
|
43
|
+
icon: a,
|
|
44
|
+
label: "Menu Trigger",
|
|
45
|
+
contentModel: {
|
|
46
|
+
category: "none",
|
|
47
|
+
children: ["instance"]
|
|
48
|
+
}
|
|
83
49
|
}, w = {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
50
|
+
icon: r,
|
|
51
|
+
label: "Menu Content",
|
|
52
|
+
contentModel: {
|
|
53
|
+
category: "none",
|
|
54
|
+
children: ["instance"],
|
|
55
|
+
descendants: [n.NavigationMenuLink]
|
|
89
56
|
},
|
|
90
57
|
presetStyle: {
|
|
91
|
-
div:
|
|
92
|
-
}
|
|
93
|
-
label: "Menu Viewport"
|
|
58
|
+
div: e
|
|
59
|
+
}
|
|
94
60
|
}, C = {
|
|
95
|
-
|
|
61
|
+
icon: s,
|
|
62
|
+
label: "Accessible Link Wrapper",
|
|
63
|
+
contentModel: {
|
|
64
|
+
category: "none",
|
|
65
|
+
children: ["instance"]
|
|
66
|
+
}
|
|
67
|
+
}, T = {
|
|
68
|
+
icon: c,
|
|
69
|
+
label: "Menu Viewport",
|
|
70
|
+
contentModel: {
|
|
71
|
+
category: "none",
|
|
72
|
+
children: ["instance"]
|
|
73
|
+
},
|
|
74
|
+
presetStyle: {
|
|
75
|
+
div: e
|
|
76
|
+
}
|
|
96
77
|
}, V = {
|
|
97
|
-
props:
|
|
78
|
+
props: p
|
|
98
79
|
}, S = {
|
|
99
80
|
props: M
|
|
100
|
-
},
|
|
101
|
-
props: g
|
|
102
|
-
}, k = {
|
|
81
|
+
}, f = {
|
|
103
82
|
props: u
|
|
104
83
|
}, x = {
|
|
84
|
+
props: l
|
|
85
|
+
}, A = {
|
|
105
86
|
props: v
|
|
106
|
-
},
|
|
87
|
+
}, W = {
|
|
88
|
+
props: g
|
|
89
|
+
}, B = {
|
|
107
90
|
props: N
|
|
108
91
|
};
|
|
109
92
|
export {
|
|
110
93
|
y as metaNavigationMenu,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
94
|
+
w as metaNavigationMenuContent,
|
|
95
|
+
b as metaNavigationMenuItem,
|
|
96
|
+
C as metaNavigationMenuLink,
|
|
97
|
+
h as metaNavigationMenuList,
|
|
98
|
+
k as metaNavigationMenuTrigger,
|
|
99
|
+
T as metaNavigationMenuViewport,
|
|
100
|
+
V as propsMetaNavigationMenu,
|
|
101
|
+
x as propsMetaNavigationMenuContent,
|
|
102
|
+
S as propsMetaNavigationMenuItem,
|
|
103
|
+
A as propsMetaNavigationMenuLink,
|
|
104
|
+
W as propsMetaNavigationMenuList,
|
|
105
|
+
f as propsMetaNavigationMenuTrigger,
|
|
106
|
+
B as propsMetaNavigationMenuViewport
|
|
124
107
|
};
|