@webstudio-is/sdk-components-react-radix 0.199.0 → 0.201.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/lib/collapsible.ws.js +21 -20
- package/lib/dialog.ws.js +53 -53
- package/lib/navigation-menu.ws.js +41 -37
- package/lib/popover.ws.js +13 -15
- package/lib/select.ws.js +47 -44
- package/lib/tooltip.ws.js +16 -19
- package/lib/types/tooltip.ws.d.ts +1 -1
- package/package.json +8 -8
package/lib/collapsible.ws.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { CollapsibleIcon as e, TriggerIcon as n, ContentIcon as t } from "@webstudio-is/icons/svg";
|
|
2
|
-
import { div as
|
|
3
|
-
import { propsCollapsible as
|
|
4
|
-
const
|
|
5
|
-
div: l
|
|
6
|
-
}, C = {
|
|
2
|
+
import { div as o } from "@webstudio-is/sdk/normalize.css";
|
|
3
|
+
import { propsCollapsible as l, propsCollapsibleTrigger as p, propsCollapsibleContent as r } from "./__generated__/collapsible.props.js";
|
|
4
|
+
const c = {
|
|
7
5
|
type: "container",
|
|
8
6
|
constraints: [
|
|
9
7
|
{
|
|
@@ -15,27 +13,30 @@ const o = {
|
|
|
15
13
|
component: { $eq: "CollapsibleContent" }
|
|
16
14
|
}
|
|
17
15
|
],
|
|
18
|
-
presetStyle:
|
|
16
|
+
presetStyle: {
|
|
17
|
+
div: o
|
|
18
|
+
},
|
|
19
19
|
icon: e
|
|
20
|
-
},
|
|
20
|
+
}, C = {
|
|
21
21
|
type: "container",
|
|
22
22
|
icon: n,
|
|
23
|
-
stylable: !1,
|
|
24
23
|
constraints: {
|
|
25
24
|
relation: "ancestor",
|
|
26
25
|
component: { $eq: "Collapsible" }
|
|
27
26
|
}
|
|
28
|
-
},
|
|
27
|
+
}, b = {
|
|
29
28
|
type: "container",
|
|
30
|
-
presetStyle:
|
|
29
|
+
presetStyle: {
|
|
30
|
+
div: o
|
|
31
|
+
},
|
|
31
32
|
icon: t,
|
|
32
33
|
constraints: {
|
|
33
34
|
relation: "ancestor",
|
|
34
35
|
component: { $eq: "Collapsible" }
|
|
35
36
|
}
|
|
36
|
-
},
|
|
37
|
+
}, m = {
|
|
37
38
|
props: {
|
|
38
|
-
...
|
|
39
|
+
...l,
|
|
39
40
|
onOpenChange: {
|
|
40
41
|
type: "action",
|
|
41
42
|
control: "action",
|
|
@@ -43,16 +44,16 @@ const o = {
|
|
|
43
44
|
}
|
|
44
45
|
},
|
|
45
46
|
initialProps: ["open", "onOpenChange"]
|
|
47
|
+
}, g = {
|
|
48
|
+
props: p
|
|
46
49
|
}, d = {
|
|
47
|
-
props: s
|
|
48
|
-
}, y = {
|
|
49
50
|
props: r
|
|
50
51
|
};
|
|
51
52
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
c as metaCollapsible,
|
|
54
|
+
b as metaCollapsibleContent,
|
|
55
|
+
C as metaCollapsibleTrigger,
|
|
56
|
+
m as propsMetaCollapsible,
|
|
57
|
+
d as propsMetaCollapsibleContent,
|
|
58
|
+
g as propsMetaCollapsibleTrigger
|
|
58
59
|
};
|
package/lib/dialog.ws.js
CHANGED
|
@@ -1,26 +1,21 @@
|
|
|
1
|
-
import { TriggerIcon as t, OverlayIcon as
|
|
2
|
-
import { defaultStates as
|
|
3
|
-
import {
|
|
4
|
-
import { propsDialog as
|
|
1
|
+
import { TriggerIcon as t, OverlayIcon as n, ContentIcon as e, HeadingIcon as i, TextIcon as a, ButtonElementIcon as r, DialogIcon as s } from "@webstudio-is/icons/svg";
|
|
2
|
+
import { defaultStates as p } from "@webstudio-is/sdk";
|
|
3
|
+
import { div as o, h2 as l, p as c, button as g } from "@webstudio-is/sdk/normalize.css";
|
|
4
|
+
import { propsDialog as D, propsDialogTrigger as m, propsDialogContent as y, propsDialogOverlay as C, propsDialogClose as d, propsDialogTitle as q, propsDialogDescription as $ } from "./__generated__/dialog.props.js";
|
|
5
5
|
import { buttonReset as T } from "./shared/preset-styles.js";
|
|
6
|
-
const
|
|
7
|
-
div: c
|
|
8
|
-
}, P = {
|
|
9
|
-
h2: g
|
|
10
|
-
}, v = {
|
|
11
|
-
p: D
|
|
12
|
-
}, O = {
|
|
6
|
+
const O = {
|
|
13
7
|
type: "container",
|
|
14
8
|
icon: t,
|
|
15
|
-
stylable: !1,
|
|
16
9
|
constraints: {
|
|
17
10
|
relation: "ancestor",
|
|
18
11
|
component: { $eq: "Dialog" }
|
|
19
12
|
}
|
|
20
|
-
},
|
|
13
|
+
}, P = {
|
|
21
14
|
type: "container",
|
|
22
|
-
presetStyle:
|
|
23
|
-
|
|
15
|
+
presetStyle: {
|
|
16
|
+
div: o
|
|
17
|
+
},
|
|
18
|
+
icon: n,
|
|
24
19
|
constraints: [
|
|
25
20
|
{
|
|
26
21
|
relation: "ancestor",
|
|
@@ -31,10 +26,12 @@ const o = {
|
|
|
31
26
|
component: { $eq: "DialogContent" }
|
|
32
27
|
}
|
|
33
28
|
]
|
|
34
|
-
},
|
|
29
|
+
}, S = {
|
|
35
30
|
type: "container",
|
|
36
|
-
presetStyle:
|
|
37
|
-
|
|
31
|
+
presetStyle: {
|
|
32
|
+
div: o
|
|
33
|
+
},
|
|
34
|
+
icon: e,
|
|
38
35
|
constraints: [
|
|
39
36
|
{
|
|
40
37
|
relation: "ancestor",
|
|
@@ -57,36 +54,41 @@ const o = {
|
|
|
57
54
|
component: { $eq: "DialogClose" }
|
|
58
55
|
}
|
|
59
56
|
]
|
|
60
|
-
},
|
|
57
|
+
}, b = {
|
|
61
58
|
type: "container",
|
|
62
|
-
presetStyle:
|
|
59
|
+
presetStyle: {
|
|
60
|
+
h2: l
|
|
61
|
+
},
|
|
63
62
|
icon: i,
|
|
64
63
|
constraints: {
|
|
65
64
|
relation: "ancestor",
|
|
66
65
|
component: { $eq: "DialogContent" }
|
|
67
66
|
}
|
|
68
|
-
},
|
|
67
|
+
}, x = {
|
|
69
68
|
type: "container",
|
|
70
|
-
presetStyle:
|
|
69
|
+
presetStyle: {
|
|
70
|
+
p: c
|
|
71
|
+
},
|
|
71
72
|
icon: a,
|
|
72
73
|
constraints: {
|
|
73
74
|
relation: "ancestor",
|
|
74
75
|
component: { $eq: "DialogContent" }
|
|
75
76
|
}
|
|
76
|
-
},
|
|
77
|
+
}, B = {
|
|
77
78
|
type: "container",
|
|
78
79
|
presetStyle: {
|
|
79
|
-
button: [T,
|
|
80
|
+
button: [T, g].flat()
|
|
80
81
|
},
|
|
81
|
-
states:
|
|
82
|
+
states: p,
|
|
82
83
|
icon: r,
|
|
83
84
|
label: "Close Button",
|
|
84
85
|
constraints: {
|
|
85
86
|
relation: "ancestor",
|
|
86
87
|
component: { $eq: "DialogContent" }
|
|
87
88
|
}
|
|
88
|
-
},
|
|
89
|
+
}, h = {
|
|
89
90
|
type: "container",
|
|
91
|
+
icon: s,
|
|
90
92
|
constraints: [
|
|
91
93
|
{
|
|
92
94
|
relation: "descendant",
|
|
@@ -96,43 +98,41 @@ const o = {
|
|
|
96
98
|
relation: "descendant",
|
|
97
99
|
component: { $eq: "DialogOverlay" }
|
|
98
100
|
}
|
|
99
|
-
]
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}, j = {
|
|
103
|
-
props: m,
|
|
101
|
+
]
|
|
102
|
+
}, E = {
|
|
103
|
+
props: D,
|
|
104
104
|
initialProps: []
|
|
105
|
-
},
|
|
106
|
-
props:
|
|
107
|
-
},
|
|
105
|
+
}, H = {
|
|
106
|
+
props: m
|
|
107
|
+
}, R = {
|
|
108
|
+
props: y,
|
|
109
|
+
initialProps: []
|
|
110
|
+
}, j = {
|
|
108
111
|
props: C,
|
|
109
112
|
initialProps: []
|
|
110
|
-
},
|
|
113
|
+
}, k = {
|
|
111
114
|
props: d,
|
|
112
115
|
initialProps: []
|
|
113
|
-
},
|
|
116
|
+
}, w = {
|
|
114
117
|
props: q,
|
|
115
118
|
initialProps: []
|
|
116
|
-
},
|
|
119
|
+
}, z = {
|
|
117
120
|
props: $,
|
|
118
121
|
initialProps: []
|
|
119
|
-
}, G = {
|
|
120
|
-
props: f,
|
|
121
|
-
initialProps: []
|
|
122
122
|
};
|
|
123
123
|
export {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
124
|
+
h as metaDialog,
|
|
125
|
+
B as metaDialogClose,
|
|
126
|
+
S as metaDialogContent,
|
|
127
|
+
x as metaDialogDescription,
|
|
128
|
+
P as metaDialogOverlay,
|
|
129
|
+
b as metaDialogTitle,
|
|
130
130
|
O as metaDialogTrigger,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
131
|
+
E as propsMetaDialog,
|
|
132
|
+
k as propsMetaDialogClose,
|
|
133
|
+
R as propsMetaDialogContent,
|
|
134
|
+
z as propsMetaDialogDescription,
|
|
135
|
+
j as propsMetaDialogOverlay,
|
|
136
|
+
w as propsMetaDialogTitle,
|
|
137
|
+
H as propsMetaDialogTrigger
|
|
138
138
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { NavigationMenuIcon as t, ListIcon as
|
|
2
|
-
import { div as
|
|
3
|
-
import { propsNavigationMenu as
|
|
4
|
-
const
|
|
5
|
-
div: p
|
|
6
|
-
}, y = {
|
|
1
|
+
import { NavigationMenuIcon as t, ListIcon as e, ListItemIcon as o, TriggerIcon as i, ContentIcon as a, BoxIcon as r, ViewportIcon as p } from "@webstudio-is/icons/svg";
|
|
2
|
+
import { div as n } from "@webstudio-is/sdk/normalize.css";
|
|
3
|
+
import { propsNavigationMenu as s, propsNavigationMenuItem as c, propsNavigationMenuTrigger as M, propsNavigationMenuContent as g, propsNavigationMenuLink as u, propsNavigationMenuList as v, propsNavigationMenuViewport as N } from "./__generated__/navigation-menu.props.js";
|
|
4
|
+
const y = {
|
|
7
5
|
type: "container",
|
|
8
6
|
icon: t,
|
|
9
|
-
presetStyle:
|
|
7
|
+
presetStyle: {
|
|
8
|
+
div: n
|
|
9
|
+
},
|
|
10
10
|
constraints: [
|
|
11
11
|
{
|
|
12
12
|
relation: "descendant",
|
|
@@ -17,9 +17,9 @@ const n = {
|
|
|
17
17
|
component: { $eq: "NavigationMenuViewport" }
|
|
18
18
|
}
|
|
19
19
|
]
|
|
20
|
-
},
|
|
20
|
+
}, L = {
|
|
21
21
|
type: "container",
|
|
22
|
-
icon:
|
|
22
|
+
icon: e,
|
|
23
23
|
constraints: [
|
|
24
24
|
{
|
|
25
25
|
relation: "ancestor",
|
|
@@ -30,27 +30,29 @@ const n = {
|
|
|
30
30
|
component: { $eq: "NavigationMenuItem" }
|
|
31
31
|
}
|
|
32
32
|
],
|
|
33
|
-
presetStyle:
|
|
33
|
+
presetStyle: {
|
|
34
|
+
div: n
|
|
35
|
+
},
|
|
34
36
|
label: "Menu List"
|
|
35
|
-
},
|
|
37
|
+
}, $ = {
|
|
36
38
|
type: "container",
|
|
37
|
-
icon:
|
|
39
|
+
icon: o,
|
|
38
40
|
constraints: {
|
|
39
41
|
relation: "ancestor",
|
|
40
42
|
component: { $eq: "NavigationMenuList" }
|
|
41
43
|
},
|
|
42
|
-
presetStyle:
|
|
44
|
+
presetStyle: {
|
|
45
|
+
div: n
|
|
46
|
+
},
|
|
43
47
|
indexWithinAncestor: "NavigationMenu",
|
|
44
48
|
label: "Menu Item"
|
|
45
49
|
}, d = {
|
|
46
|
-
stylable: !1,
|
|
47
50
|
type: "container",
|
|
48
51
|
icon: i,
|
|
49
52
|
constraints: {
|
|
50
53
|
relation: "ancestor",
|
|
51
54
|
component: { $eq: "NavigationMenuItem" }
|
|
52
55
|
},
|
|
53
|
-
presetStyle: n,
|
|
54
56
|
label: "Menu Trigger"
|
|
55
57
|
}, q = {
|
|
56
58
|
type: "container",
|
|
@@ -60,11 +62,12 @@ const n = {
|
|
|
60
62
|
component: { $eq: "NavigationMenuItem" }
|
|
61
63
|
},
|
|
62
64
|
indexWithinAncestor: "NavigationMenu",
|
|
63
|
-
presetStyle:
|
|
65
|
+
presetStyle: {
|
|
66
|
+
div: n
|
|
67
|
+
},
|
|
64
68
|
label: "Menu Content"
|
|
65
|
-
},
|
|
69
|
+
}, b = {
|
|
66
70
|
type: "container",
|
|
67
|
-
stylable: !1,
|
|
68
71
|
icon: r,
|
|
69
72
|
constraints: [
|
|
70
73
|
{
|
|
@@ -76,20 +79,23 @@ const n = {
|
|
|
76
79
|
component: { $in: ["NavigationMenuContent", "NavigationMenuItem"] }
|
|
77
80
|
}
|
|
78
81
|
],
|
|
79
|
-
presetStyle: n,
|
|
80
82
|
label: "Accessible Link Wrapper"
|
|
81
|
-
},
|
|
83
|
+
}, w = {
|
|
82
84
|
type: "container",
|
|
83
|
-
icon:
|
|
85
|
+
icon: p,
|
|
84
86
|
constraints: {
|
|
85
87
|
relation: "ancestor",
|
|
86
88
|
component: { $eq: "NavigationMenu" }
|
|
87
89
|
},
|
|
88
|
-
presetStyle:
|
|
90
|
+
presetStyle: {
|
|
91
|
+
div: n
|
|
92
|
+
},
|
|
89
93
|
label: "Menu Viewport"
|
|
94
|
+
}, C = {
|
|
95
|
+
props: s
|
|
90
96
|
}, V = {
|
|
91
97
|
props: c
|
|
92
|
-
},
|
|
98
|
+
}, S = {
|
|
93
99
|
props: M
|
|
94
100
|
}, T = {
|
|
95
101
|
props: g
|
|
@@ -97,24 +103,22 @@ const n = {
|
|
|
97
103
|
props: u
|
|
98
104
|
}, x = {
|
|
99
105
|
props: v
|
|
100
|
-
},
|
|
106
|
+
}, f = {
|
|
101
107
|
props: N
|
|
102
|
-
}, W = {
|
|
103
|
-
props: m
|
|
104
108
|
};
|
|
105
109
|
export {
|
|
106
110
|
y as metaNavigationMenu,
|
|
107
111
|
q as metaNavigationMenuContent,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
112
|
+
$ as metaNavigationMenuItem,
|
|
113
|
+
b as metaNavigationMenuLink,
|
|
114
|
+
L as metaNavigationMenuList,
|
|
111
115
|
d as metaNavigationMenuTrigger,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
116
|
+
w as metaNavigationMenuViewport,
|
|
117
|
+
C as propsMetaNavigationMenu,
|
|
118
|
+
T as propsMetaNavigationMenuContent,
|
|
119
|
+
V as propsMetaNavigationMenuItem,
|
|
120
|
+
k as propsMetaNavigationMenuLink,
|
|
121
|
+
x as propsMetaNavigationMenuList,
|
|
122
|
+
S as propsMetaNavigationMenuTrigger,
|
|
123
|
+
f as propsMetaNavigationMenuViewport
|
|
120
124
|
};
|
package/lib/popover.ws.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { TriggerIcon as o, ContentIcon as e, PopoverIcon as
|
|
2
|
-
import { div as
|
|
3
|
-
import { propsPopover as r, propsPopoverTrigger as p, propsPopoverContent as
|
|
4
|
-
const
|
|
5
|
-
div: n
|
|
6
|
-
}, l = {
|
|
1
|
+
import { TriggerIcon as o, ContentIcon as e, PopoverIcon as n } from "@webstudio-is/icons/svg";
|
|
2
|
+
import { div as t } from "@webstudio-is/sdk/normalize.css";
|
|
3
|
+
import { propsPopover as r, propsPopoverTrigger as p, propsPopoverContent as i } from "./__generated__/popover.props.js";
|
|
4
|
+
const P = {
|
|
7
5
|
type: "container",
|
|
8
6
|
icon: o,
|
|
9
|
-
stylable: !1,
|
|
10
7
|
constraints: {
|
|
11
8
|
relation: "ancestor",
|
|
12
9
|
component: { $eq: "Popover" }
|
|
13
10
|
}
|
|
14
11
|
}, v = {
|
|
15
12
|
type: "container",
|
|
16
|
-
presetStyle:
|
|
13
|
+
presetStyle: {
|
|
14
|
+
div: t
|
|
15
|
+
},
|
|
17
16
|
icon: e,
|
|
18
17
|
constraints: {
|
|
19
18
|
relation: "ancestor",
|
|
@@ -21,6 +20,7 @@ const i = {
|
|
|
21
20
|
}
|
|
22
21
|
}, m = {
|
|
23
22
|
type: "container",
|
|
23
|
+
icon: n,
|
|
24
24
|
constraints: [
|
|
25
25
|
{
|
|
26
26
|
relation: "descendant",
|
|
@@ -30,23 +30,21 @@ const i = {
|
|
|
30
30
|
relation: "descendant",
|
|
31
31
|
component: { $eq: "PopoverContent" }
|
|
32
32
|
}
|
|
33
|
-
]
|
|
34
|
-
icon: t,
|
|
35
|
-
stylable: !1
|
|
33
|
+
]
|
|
36
34
|
}, g = {
|
|
37
35
|
props: r,
|
|
38
36
|
initialProps: ["open"]
|
|
39
|
-
},
|
|
37
|
+
}, l = {
|
|
40
38
|
props: p
|
|
41
39
|
}, d = {
|
|
42
|
-
props:
|
|
40
|
+
props: i,
|
|
43
41
|
initialProps: ["side", "sideOffset", "align", "alignOffset"]
|
|
44
42
|
};
|
|
45
43
|
export {
|
|
46
44
|
m as metaPopover,
|
|
47
45
|
v as metaPopoverContent,
|
|
48
|
-
|
|
46
|
+
P as metaPopoverTrigger,
|
|
49
47
|
g as propsMetaPopover,
|
|
50
48
|
d as propsMetaPopoverContent,
|
|
51
|
-
|
|
49
|
+
l as propsMetaPopoverTrigger
|
|
52
50
|
};
|
package/lib/select.ws.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { SelectIcon as o, TriggerIcon as n, FormTextFieldIcon as c, ContentIcon as r, ViewportIcon as p, ItemIcon as a, CheckMarkIcon as s, TextIcon as l } from "@webstudio-is/icons/svg";
|
|
2
|
-
import { button as i, span as e, div as
|
|
3
|
-
import { propsSelect as
|
|
4
|
-
const
|
|
5
|
-
div: m
|
|
6
|
-
}, x = {
|
|
2
|
+
import { button as i, span as e, div as t } from "@webstudio-is/sdk/normalize.css";
|
|
3
|
+
import { propsSelect as m, propsSelectTrigger as S, propsSelectValue as I, propsSelectContent as d, propsSelectViewport as q, propsSelectItem as y, propsSelectItemIndicator as $, propsSelectItemText as T } from "./__generated__/select.props.js";
|
|
4
|
+
const M = {
|
|
7
5
|
type: "container",
|
|
6
|
+
icon: o,
|
|
8
7
|
constraints: [
|
|
9
8
|
{
|
|
10
9
|
relation: "descendant",
|
|
@@ -14,10 +13,8 @@ const t = {
|
|
|
14
13
|
relation: "descendant",
|
|
15
14
|
component: { $eq: "SelectContent" }
|
|
16
15
|
}
|
|
17
|
-
]
|
|
18
|
-
|
|
19
|
-
stylable: !1
|
|
20
|
-
}, C = {
|
|
16
|
+
]
|
|
17
|
+
}, x = {
|
|
21
18
|
type: "container",
|
|
22
19
|
icon: n,
|
|
23
20
|
presetStyle: {
|
|
@@ -33,7 +30,7 @@ const t = {
|
|
|
33
30
|
component: { $eq: "SelectValue" }
|
|
34
31
|
}
|
|
35
32
|
]
|
|
36
|
-
},
|
|
33
|
+
}, C = {
|
|
37
34
|
type: "container",
|
|
38
35
|
label: "Value",
|
|
39
36
|
icon: c,
|
|
@@ -44,10 +41,12 @@ const t = {
|
|
|
44
41
|
relation: "ancestor",
|
|
45
42
|
component: { $eq: "SelectTrigger" }
|
|
46
43
|
}
|
|
47
|
-
},
|
|
44
|
+
}, w = {
|
|
48
45
|
type: "container",
|
|
49
46
|
icon: r,
|
|
50
|
-
presetStyle:
|
|
47
|
+
presetStyle: {
|
|
48
|
+
div: t
|
|
49
|
+
},
|
|
51
50
|
constraints: [
|
|
52
51
|
{
|
|
53
52
|
relation: "ancestor",
|
|
@@ -58,10 +57,12 @@ const t = {
|
|
|
58
57
|
component: { $eq: "SelectViewport" }
|
|
59
58
|
}
|
|
60
59
|
]
|
|
61
|
-
},
|
|
60
|
+
}, b = {
|
|
62
61
|
type: "container",
|
|
63
62
|
icon: p,
|
|
64
|
-
presetStyle:
|
|
63
|
+
presetStyle: {
|
|
64
|
+
div: t
|
|
65
|
+
},
|
|
65
66
|
constraints: [
|
|
66
67
|
{
|
|
67
68
|
relation: "ancestor",
|
|
@@ -72,7 +73,7 @@ const t = {
|
|
|
72
73
|
component: { $eq: "SelectItem" }
|
|
73
74
|
}
|
|
74
75
|
]
|
|
75
|
-
},
|
|
76
|
+
}, f = {
|
|
76
77
|
type: "container",
|
|
77
78
|
icon: a,
|
|
78
79
|
constraints: [
|
|
@@ -89,8 +90,10 @@ const t = {
|
|
|
89
90
|
component: { $eq: "SelectItemText" }
|
|
90
91
|
}
|
|
91
92
|
],
|
|
92
|
-
presetStyle:
|
|
93
|
-
|
|
93
|
+
presetStyle: {
|
|
94
|
+
div: t
|
|
95
|
+
}
|
|
96
|
+
}, v = {
|
|
94
97
|
type: "container",
|
|
95
98
|
label: "Indicator",
|
|
96
99
|
icon: s,
|
|
@@ -101,7 +104,7 @@ const t = {
|
|
|
101
104
|
presetStyle: {
|
|
102
105
|
span: e
|
|
103
106
|
}
|
|
104
|
-
},
|
|
107
|
+
}, P = {
|
|
105
108
|
type: "container",
|
|
106
109
|
label: "Item Text",
|
|
107
110
|
icon: l,
|
|
@@ -112,41 +115,41 @@ const t = {
|
|
|
112
115
|
presetStyle: {
|
|
113
116
|
span: e
|
|
114
117
|
}
|
|
115
|
-
},
|
|
116
|
-
props:
|
|
118
|
+
}, h = {
|
|
119
|
+
props: m,
|
|
117
120
|
initialProps: ["name", "value", "open", "required"]
|
|
121
|
+
}, k = {
|
|
122
|
+
props: S
|
|
118
123
|
}, F = {
|
|
119
|
-
props: I
|
|
120
|
-
}, j = {
|
|
121
|
-
props: d,
|
|
124
|
+
props: I,
|
|
122
125
|
initialProps: ["placeholder"]
|
|
126
|
+
}, j = {
|
|
127
|
+
props: d
|
|
123
128
|
}, z = {
|
|
124
129
|
props: q
|
|
125
130
|
}, A = {
|
|
126
|
-
props: y
|
|
127
|
-
}, B = {
|
|
128
|
-
props: $,
|
|
131
|
+
props: y,
|
|
129
132
|
initialProps: ["value"]
|
|
133
|
+
}, B = {
|
|
134
|
+
props: $
|
|
130
135
|
}, D = {
|
|
131
136
|
props: T
|
|
132
|
-
}, E = {
|
|
133
|
-
props: g
|
|
134
137
|
};
|
|
135
138
|
export {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
139
|
+
M as metaSelect,
|
|
140
|
+
w as metaSelectContent,
|
|
141
|
+
f as metaSelectItem,
|
|
142
|
+
v as metaSelectItemIndicator,
|
|
143
|
+
P as metaSelectItemText,
|
|
144
|
+
x as metaSelectTrigger,
|
|
145
|
+
C as metaSelectValue,
|
|
146
|
+
b as metaSelectViewport,
|
|
147
|
+
h as propsMetaSelect,
|
|
148
|
+
j as propsMetaSelectContent,
|
|
149
|
+
A as propsMetaSelectItem,
|
|
150
|
+
B as propsMetaSelectItemIndicator,
|
|
151
|
+
D as propsMetaSelectItemText,
|
|
152
|
+
k as propsMetaSelectTrigger,
|
|
153
|
+
F as propsMetaSelectValue,
|
|
154
|
+
z as propsMetaSelectViewport
|
|
152
155
|
};
|
package/lib/tooltip.ws.js
CHANGED
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
import { TriggerIcon as o, ContentIcon as t, TooltipIcon as n } from "@webstudio-is/icons/svg";
|
|
2
|
-
import "@webstudio-is/sdk";
|
|
3
2
|
import { div as e } from "@webstudio-is/sdk/normalize.css";
|
|
4
3
|
import { propsTooltip as i, propsTooltipTrigger as p, propsTooltipContent as r } from "./__generated__/tooltip.props.js";
|
|
5
|
-
const
|
|
6
|
-
div: e
|
|
7
|
-
}, m = {
|
|
4
|
+
const l = {
|
|
8
5
|
type: "container",
|
|
9
6
|
icon: o,
|
|
10
|
-
stylable: !1,
|
|
11
7
|
constraints: {
|
|
12
8
|
relation: "ancestor",
|
|
13
9
|
component: { $eq: "Tooltip" }
|
|
14
10
|
}
|
|
15
|
-
},
|
|
11
|
+
}, T = {
|
|
16
12
|
type: "container",
|
|
17
13
|
icon: t,
|
|
18
|
-
presetStyle:
|
|
14
|
+
presetStyle: {
|
|
15
|
+
div: e
|
|
16
|
+
},
|
|
19
17
|
constraints: {
|
|
20
18
|
relation: "ancestor",
|
|
21
19
|
component: { $eq: "Tooltip" }
|
|
22
20
|
}
|
|
23
|
-
},
|
|
21
|
+
}, m = {
|
|
24
22
|
type: "container",
|
|
25
23
|
constraints: [
|
|
26
24
|
{
|
|
@@ -32,22 +30,21 @@ const s = {
|
|
|
32
30
|
component: { $eq: "TooltipContent" }
|
|
33
31
|
}
|
|
34
32
|
],
|
|
35
|
-
icon: n
|
|
36
|
-
|
|
37
|
-
}, f = {
|
|
33
|
+
icon: n
|
|
34
|
+
}, g = {
|
|
38
35
|
props: i,
|
|
39
36
|
initialProps: ["open", "delayDuration", "disableHoverableContent"]
|
|
40
|
-
},
|
|
37
|
+
}, d = {
|
|
41
38
|
props: p
|
|
42
|
-
},
|
|
39
|
+
}, f = {
|
|
43
40
|
props: r,
|
|
44
41
|
initialProps: ["side", "sideOffset", "align", "alignOffset"]
|
|
45
42
|
};
|
|
46
43
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
m as metaTooltip,
|
|
45
|
+
T as metaTooltipContent,
|
|
46
|
+
l as metaTooltipTrigger,
|
|
47
|
+
g as propsMetaTooltip,
|
|
48
|
+
f as propsMetaTooltipContent,
|
|
49
|
+
d as propsMetaTooltipTrigger
|
|
53
50
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta, WsComponentPropsMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const metaTooltipTrigger: WsComponentMeta;
|
|
3
3
|
export declare const metaTooltipContent: WsComponentMeta;
|
|
4
4
|
export declare const metaTooltip: WsComponentMeta;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/sdk-components-react-radix",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.201.0",
|
|
4
4
|
"description": "Webstudio wrapper for radix library",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -58,21 +58,21 @@
|
|
|
58
58
|
"@radix-ui/react-tooltip": "^1.1.6",
|
|
59
59
|
"@radix-ui/react-use-controllable-state": "^1.1.0",
|
|
60
60
|
"await-interaction-response": "^0.0.2",
|
|
61
|
-
"@webstudio-is/css-engine": "0.
|
|
62
|
-
"@webstudio-is/
|
|
63
|
-
"@webstudio-is/
|
|
64
|
-
"@webstudio-is/
|
|
61
|
+
"@webstudio-is/css-engine": "0.201.0",
|
|
62
|
+
"@webstudio-is/react-sdk": "0.201.0",
|
|
63
|
+
"@webstudio-is/sdk": "0.201.0",
|
|
64
|
+
"@webstudio-is/icons": "0.201.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@types/react": "^18.2.70",
|
|
68
68
|
"@types/react-dom": "^18.2.25",
|
|
69
69
|
"react": "18.3.0-canary-14898b6a9-20240318",
|
|
70
70
|
"react-dom": "18.3.0-canary-14898b6a9-20240318",
|
|
71
|
-
"@webstudio-is/generate-arg-types": "0.0.0",
|
|
72
71
|
"@webstudio-is/css-data": "0.0.0",
|
|
73
72
|
"@webstudio-is/sdk-cli": "^0.94.0",
|
|
74
|
-
"@webstudio-is/sdk-components-react": "0.
|
|
75
|
-
"@webstudio-is/
|
|
73
|
+
"@webstudio-is/sdk-components-react": "0.201.0",
|
|
74
|
+
"@webstudio-is/generate-arg-types": "0.0.0",
|
|
75
|
+
"@webstudio-is/template": "0.201.0",
|
|
76
76
|
"@webstudio-is/tsconfig": "1.0.7"
|
|
77
77
|
},
|
|
78
78
|
"scripts": {
|