@webstudio-is/sdk-components-react-radix 0.231.0 → 0.232.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/radio-group.ws.js +30 -26
- package/package.json +9 -9
package/lib/radio-group.ws.js
CHANGED
|
@@ -1,49 +1,53 @@
|
|
|
1
|
-
import { RadioGroupIcon as
|
|
2
|
-
import { div as
|
|
3
|
-
import { radix as
|
|
4
|
-
import { buttonReset as
|
|
5
|
-
import { propsRadioGroup as
|
|
6
|
-
const
|
|
7
|
-
icon:
|
|
1
|
+
import { RadioGroupIcon as t, ItemIcon as o, TriggerIcon as a } from "@webstudio-is/icons/svg";
|
|
2
|
+
import { div as r, button as n, span as c } from "@webstudio-is/sdk/normalize.css";
|
|
3
|
+
import { radix as e } from "./shared/meta.js";
|
|
4
|
+
import { buttonReset as d } from "./shared/preset-styles.js";
|
|
5
|
+
import { propsRadioGroup as i, propsRadioGroupItem as s, propsRadioGroupIndicator as p } from "./__generated__/radio-group.props.js";
|
|
6
|
+
const R = {
|
|
7
|
+
icon: t,
|
|
8
8
|
contentModel: {
|
|
9
9
|
category: "instance",
|
|
10
10
|
children: ["instance"],
|
|
11
|
-
descendants: [
|
|
11
|
+
descendants: [e.RadioGroupItem]
|
|
12
12
|
},
|
|
13
|
-
states: [
|
|
14
|
-
{ label: "Checked", selector: "[data-state=checked]" },
|
|
15
|
-
{ label: "Unchecked", selector: "[data-state=unchecked]" }
|
|
16
|
-
],
|
|
17
13
|
presetStyle: {
|
|
18
|
-
div:
|
|
14
|
+
div: r
|
|
19
15
|
},
|
|
20
16
|
initialProps: ["id", "class", "name", "value", "required"],
|
|
21
|
-
props:
|
|
22
|
-
},
|
|
23
|
-
icon:
|
|
17
|
+
props: i
|
|
18
|
+
}, G = {
|
|
19
|
+
icon: o,
|
|
24
20
|
contentModel: {
|
|
25
21
|
category: "none",
|
|
26
22
|
children: ["instance"],
|
|
27
|
-
descendants: [
|
|
23
|
+
descendants: [e.RadioGroupIndicator]
|
|
28
24
|
},
|
|
25
|
+
states: [
|
|
26
|
+
{ label: "Checked", selector: "[data-state=checked]" },
|
|
27
|
+
{ label: "Unchecked", selector: "[data-state=unchecked]" }
|
|
28
|
+
],
|
|
29
29
|
presetStyle: {
|
|
30
|
-
button: [
|
|
30
|
+
button: [n, d].flat()
|
|
31
31
|
},
|
|
32
32
|
initialProps: ["value"],
|
|
33
|
-
props:
|
|
34
|
-
},
|
|
35
|
-
icon:
|
|
33
|
+
props: s
|
|
34
|
+
}, k = {
|
|
35
|
+
icon: a,
|
|
36
36
|
contentModel: {
|
|
37
37
|
category: "none",
|
|
38
38
|
children: ["instance"]
|
|
39
39
|
},
|
|
40
|
+
states: [
|
|
41
|
+
{ label: "Checked", selector: "[data-state=checked]" },
|
|
42
|
+
{ label: "Unchecked", selector: "[data-state=unchecked]" }
|
|
43
|
+
],
|
|
40
44
|
presetStyle: {
|
|
41
|
-
span:
|
|
45
|
+
span: c
|
|
42
46
|
},
|
|
43
|
-
props:
|
|
47
|
+
props: p
|
|
44
48
|
};
|
|
45
49
|
export {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
50
|
+
R as metaRadioGroup,
|
|
51
|
+
k as metaRadioGroupIndicator,
|
|
52
|
+
G as metaRadioGroupItem
|
|
49
53
|
};
|
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.232.0",
|
|
4
4
|
"description": "Webstudio wrapper for radix library",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"@radix-ui/react-tabs": "^1.1.9",
|
|
53
53
|
"@radix-ui/react-tooltip": "^1.2.4",
|
|
54
54
|
"await-interaction-response": "^0.0.2",
|
|
55
|
-
"@webstudio-is/css-engine": "0.
|
|
56
|
-
"@webstudio-is/
|
|
57
|
-
"@webstudio-is/
|
|
58
|
-
"@webstudio-is/sdk": "0.
|
|
55
|
+
"@webstudio-is/css-engine": "0.232.0",
|
|
56
|
+
"@webstudio-is/icons": "0.232.0",
|
|
57
|
+
"@webstudio-is/react-sdk": "0.232.0",
|
|
58
|
+
"@webstudio-is/sdk": "0.232.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/react": "^18.2.70",
|
|
@@ -64,10 +64,10 @@
|
|
|
64
64
|
"react-dom": "18.3.0-canary-14898b6a9-20240318",
|
|
65
65
|
"@webstudio-is/css-data": "0.0.0",
|
|
66
66
|
"@webstudio-is/sdk-cli": "^0.94.0",
|
|
67
|
-
"@webstudio-is/
|
|
68
|
-
"@webstudio-is/sdk-components-react": "0.
|
|
69
|
-
"@webstudio-is/
|
|
70
|
-
"@webstudio-is/
|
|
67
|
+
"@webstudio-is/template": "0.232.0",
|
|
68
|
+
"@webstudio-is/sdk-components-react": "0.232.0",
|
|
69
|
+
"@webstudio-is/tsconfig": "1.0.7",
|
|
70
|
+
"@webstudio-is/generate-arg-types": "0.0.0"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"build": "vite build --config ../../vite.sdk-components.config.ts",
|