@webstudio-is/sdk-components-react-radix 0.208.0 → 0.210.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/accordion.ws.js +51 -50
- package/lib/checkbox.ws.js +19 -18
- package/lib/collapsible.ws.js +27 -26
- package/lib/dialog.ws.js +61 -60
- package/lib/navigation-menu.ws.js +56 -53
- package/lib/popover.ws.js +24 -23
- package/lib/radio-group.ws.js +33 -32
- package/lib/select.ws.js +69 -68
- package/lib/shared/meta.js +13 -0
- package/lib/switch.ws.js +21 -20
- package/lib/tabs.ws.js +37 -36
- package/lib/tooltip.ws.js +27 -26
- package/lib/types/shared/meta.d.ts +1 -0
- package/package.json +9 -9
package/lib/tabs.ws.js
CHANGED
|
@@ -1,53 +1,54 @@
|
|
|
1
|
-
import { TabsIcon as e, HeaderIcon as n, TriggerIcon as
|
|
2
|
-
import { defaultStates as
|
|
3
|
-
import { button as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { TabsIcon as e, HeaderIcon as n, TriggerIcon as s, ContentIcon as a } from "@webstudio-is/icons/svg";
|
|
2
|
+
import { defaultStates as r } from "@webstudio-is/sdk";
|
|
3
|
+
import { button as i, div as c } from "@webstudio-is/sdk/normalize.css";
|
|
4
|
+
import { radix as t } from "./shared/meta.js";
|
|
5
|
+
import { buttonReset as p } from "./shared/preset-styles.js";
|
|
6
|
+
import { propsTabs as T, propsTabsList as b, propsTabsTrigger as m, propsTabsContent as l } from "./__generated__/tabs.props.js";
|
|
7
|
+
const o = {
|
|
7
8
|
div: c
|
|
8
|
-
},
|
|
9
|
+
}, C = {
|
|
9
10
|
type: "container",
|
|
10
11
|
icon: e,
|
|
11
12
|
constraints: [
|
|
12
13
|
{
|
|
13
14
|
relation: "descendant",
|
|
14
|
-
component: { $eq:
|
|
15
|
+
component: { $eq: t.TabsTrigger }
|
|
15
16
|
},
|
|
16
17
|
{
|
|
17
18
|
relation: "descendant",
|
|
18
|
-
component: { $eq:
|
|
19
|
+
component: { $eq: t.TabsList }
|
|
19
20
|
},
|
|
20
21
|
{
|
|
21
22
|
relation: "descendant",
|
|
22
|
-
component: { $eq:
|
|
23
|
+
component: { $eq: t.TabsContent }
|
|
23
24
|
}
|
|
24
25
|
],
|
|
25
|
-
presetStyle:
|
|
26
|
-
},
|
|
26
|
+
presetStyle: o
|
|
27
|
+
}, L = {
|
|
27
28
|
type: "container",
|
|
28
29
|
icon: n,
|
|
29
30
|
constraints: {
|
|
30
31
|
relation: "ancestor",
|
|
31
|
-
component: { $eq:
|
|
32
|
+
component: { $eq: t.Tabs }
|
|
32
33
|
},
|
|
33
|
-
presetStyle:
|
|
34
|
-
},
|
|
34
|
+
presetStyle: o
|
|
35
|
+
}, u = {
|
|
35
36
|
type: "container",
|
|
36
|
-
icon:
|
|
37
|
+
icon: s,
|
|
37
38
|
constraints: [
|
|
38
39
|
{
|
|
39
40
|
relation: "ancestor",
|
|
40
|
-
component: { $eq:
|
|
41
|
+
component: { $eq: t.TabsList }
|
|
41
42
|
},
|
|
42
43
|
{
|
|
43
44
|
relation: "ancestor",
|
|
44
|
-
component: { $neq:
|
|
45
|
+
component: { $neq: t.TabsTrigger }
|
|
45
46
|
}
|
|
46
47
|
],
|
|
47
|
-
indexWithinAncestor:
|
|
48
|
+
indexWithinAncestor: t.Tabs,
|
|
48
49
|
label: "Tab Trigger",
|
|
49
50
|
states: [
|
|
50
|
-
...
|
|
51
|
+
...r,
|
|
51
52
|
{
|
|
52
53
|
category: "component-states",
|
|
53
54
|
label: "Active",
|
|
@@ -55,34 +56,34 @@ const t = {
|
|
|
55
56
|
}
|
|
56
57
|
],
|
|
57
58
|
presetStyle: {
|
|
58
|
-
button: [
|
|
59
|
+
button: [i, p].flat()
|
|
59
60
|
}
|
|
60
|
-
},
|
|
61
|
+
}, x = {
|
|
61
62
|
type: "container",
|
|
62
63
|
label: "Tab Content",
|
|
63
|
-
icon:
|
|
64
|
+
icon: a,
|
|
64
65
|
constraints: {
|
|
65
66
|
relation: "ancestor",
|
|
66
|
-
component: { $eq:
|
|
67
|
+
component: { $eq: t.Tabs }
|
|
67
68
|
},
|
|
68
|
-
indexWithinAncestor:
|
|
69
|
-
presetStyle:
|
|
70
|
-
}, u = {
|
|
71
|
-
props: p
|
|
69
|
+
indexWithinAncestor: t.Tabs,
|
|
70
|
+
presetStyle: o
|
|
72
71
|
}, I = {
|
|
73
72
|
props: T
|
|
74
73
|
}, M = {
|
|
75
74
|
props: b
|
|
76
75
|
}, v = {
|
|
77
76
|
props: m
|
|
77
|
+
}, A = {
|
|
78
|
+
props: l
|
|
78
79
|
};
|
|
79
80
|
export {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
81
|
+
C as metaTabs,
|
|
82
|
+
x as metaTabsContent,
|
|
83
|
+
L as metaTabsList,
|
|
84
|
+
u as metaTabsTrigger,
|
|
85
|
+
I as propsMetaTabs,
|
|
86
|
+
A as propsMetaTabsContent,
|
|
87
|
+
M as propsMetaTabsList,
|
|
88
|
+
v as propsMetaTabsTrigger
|
|
88
89
|
};
|
package/lib/tooltip.ws.js
CHANGED
|
@@ -1,50 +1,51 @@
|
|
|
1
|
-
import { TriggerIcon as
|
|
2
|
-
import { div as
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { TriggerIcon as t, ContentIcon as n, TooltipIcon as e } from "@webstudio-is/icons/svg";
|
|
2
|
+
import { div as i } from "@webstudio-is/sdk/normalize.css";
|
|
3
|
+
import { radix as o } from "./shared/meta.js";
|
|
4
|
+
import { propsTooltip as p, propsTooltipTrigger as r, propsTooltipContent as s } from "./__generated__/tooltip.props.js";
|
|
5
|
+
const m = {
|
|
5
6
|
type: "container",
|
|
6
|
-
icon:
|
|
7
|
+
icon: t,
|
|
7
8
|
constraints: {
|
|
8
9
|
relation: "ancestor",
|
|
9
|
-
component: { $eq:
|
|
10
|
+
component: { $eq: o.Tooltip }
|
|
10
11
|
}
|
|
11
|
-
},
|
|
12
|
+
}, g = {
|
|
12
13
|
type: "container",
|
|
13
|
-
icon:
|
|
14
|
+
icon: n,
|
|
14
15
|
presetStyle: {
|
|
15
|
-
div:
|
|
16
|
+
div: i
|
|
16
17
|
},
|
|
17
18
|
constraints: {
|
|
18
19
|
relation: "ancestor",
|
|
19
|
-
component: { $eq:
|
|
20
|
+
component: { $eq: o.Tooltip }
|
|
20
21
|
}
|
|
21
|
-
},
|
|
22
|
+
}, d = {
|
|
22
23
|
type: "container",
|
|
23
24
|
constraints: [
|
|
24
25
|
{
|
|
25
26
|
relation: "descendant",
|
|
26
|
-
component: { $eq:
|
|
27
|
+
component: { $eq: o.TooltipTrigger }
|
|
27
28
|
},
|
|
28
29
|
{
|
|
29
30
|
relation: "descendant",
|
|
30
|
-
component: { $eq:
|
|
31
|
+
component: { $eq: o.TooltipContent }
|
|
31
32
|
}
|
|
32
33
|
],
|
|
33
|
-
icon:
|
|
34
|
-
}, g = {
|
|
35
|
-
props: i,
|
|
36
|
-
initialProps: ["open", "delayDuration", "disableHoverableContent"]
|
|
37
|
-
}, d = {
|
|
38
|
-
props: p
|
|
34
|
+
icon: e
|
|
39
35
|
}, f = {
|
|
40
|
-
props:
|
|
36
|
+
props: p,
|
|
37
|
+
initialProps: ["open", "delayDuration", "disableHoverableContent"]
|
|
38
|
+
}, C = {
|
|
39
|
+
props: r
|
|
40
|
+
}, y = {
|
|
41
|
+
props: s,
|
|
41
42
|
initialProps: ["side", "sideOffset", "align", "alignOffset"]
|
|
42
43
|
};
|
|
43
44
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
d as metaTooltip,
|
|
46
|
+
g as metaTooltipContent,
|
|
47
|
+
m as metaTooltipTrigger,
|
|
48
|
+
f as propsMetaTooltip,
|
|
49
|
+
y as propsMetaTooltipContent,
|
|
50
|
+
C as propsMetaTooltipTrigger
|
|
50
51
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const radix: Record<string, string>;
|
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.210.0",
|
|
4
4
|
"description": "Webstudio wrapper for radix library",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -58,22 +58,22 @@
|
|
|
58
58
|
"@radix-ui/react-tooltip": "^1.1.8",
|
|
59
59
|
"@radix-ui/react-use-controllable-state": "^1.1.0",
|
|
60
60
|
"await-interaction-response": "^0.0.2",
|
|
61
|
-
"@webstudio-is/
|
|
62
|
-
"@webstudio-is/
|
|
63
|
-
"@webstudio-is/sdk": "0.
|
|
64
|
-
"@webstudio-is/
|
|
61
|
+
"@webstudio-is/css-engine": "0.210.0",
|
|
62
|
+
"@webstudio-is/icons": "0.210.0",
|
|
63
|
+
"@webstudio-is/sdk": "0.210.0",
|
|
64
|
+
"@webstudio-is/react-sdk": "0.210.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/css-data": "0.0.0",
|
|
72
71
|
"@webstudio-is/generate-arg-types": "0.0.0",
|
|
73
72
|
"@webstudio-is/sdk-cli": "^0.94.0",
|
|
74
|
-
"@webstudio-is/
|
|
75
|
-
"@webstudio-is/
|
|
76
|
-
"@webstudio-is/tsconfig": "1.0.7"
|
|
73
|
+
"@webstudio-is/css-data": "0.0.0",
|
|
74
|
+
"@webstudio-is/sdk-components-react": "0.210.0",
|
|
75
|
+
"@webstudio-is/tsconfig": "1.0.7",
|
|
76
|
+
"@webstudio-is/template": "0.210.0"
|
|
77
77
|
},
|
|
78
78
|
"scripts": {
|
|
79
79
|
"build": "vite build --config ../../vite.sdk-components.config.ts",
|