@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/tabs.ws.js
CHANGED
|
@@ -1,51 +1,37 @@
|
|
|
1
|
-
import { TabsIcon as
|
|
1
|
+
import { TabsIcon as n, HeaderIcon as o, TriggerIcon as s, ContentIcon as r } from "@webstudio-is/icons/svg";
|
|
2
2
|
import { defaultStates as a } from "@webstudio-is/sdk";
|
|
3
|
-
import {
|
|
3
|
+
import { div as e, button as c } from "@webstudio-is/sdk/normalize.css";
|
|
4
|
+
import { radix as t } from "./shared/meta.js";
|
|
4
5
|
import { buttonReset as i } from "./shared/preset-styles.js";
|
|
5
|
-
import { propsTabs as p, propsTabsList as
|
|
6
|
-
const
|
|
7
|
-
div: c
|
|
8
|
-
}, y = {
|
|
9
|
-
type: "container",
|
|
10
|
-
icon: e,
|
|
11
|
-
constraints: [
|
|
12
|
-
{
|
|
13
|
-
relation: "descendant",
|
|
14
|
-
component: { $eq: "TabsTrigger" }
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
relation: "descendant",
|
|
18
|
-
component: { $eq: "TabsList" }
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
relation: "descendant",
|
|
22
|
-
component: { $eq: "TabsContent" }
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
presetStyle: t
|
|
26
|
-
}, $ = {
|
|
27
|
-
type: "container",
|
|
6
|
+
import { propsTabs as p, propsTabsList as b, propsTabsTrigger as T, propsTabsContent as l } from "./__generated__/tabs.props.js";
|
|
7
|
+
const M = {
|
|
28
8
|
icon: n,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
9
|
+
contentModel: {
|
|
10
|
+
category: "instance",
|
|
11
|
+
children: ["instance"],
|
|
12
|
+
descendants: [t.TabsList, t.TabsContent]
|
|
32
13
|
},
|
|
33
|
-
presetStyle:
|
|
34
|
-
|
|
35
|
-
|
|
14
|
+
presetStyle: {
|
|
15
|
+
div: e
|
|
16
|
+
}
|
|
17
|
+
}, x = {
|
|
36
18
|
icon: o,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
indexWithinAncestor: "Tabs",
|
|
19
|
+
contentModel: {
|
|
20
|
+
category: "none",
|
|
21
|
+
children: ["instance"],
|
|
22
|
+
descendants: [t.TabsTrigger]
|
|
23
|
+
},
|
|
24
|
+
presetStyle: {
|
|
25
|
+
div: e
|
|
26
|
+
}
|
|
27
|
+
}, C = {
|
|
28
|
+
icon: s,
|
|
48
29
|
label: "Tab Trigger",
|
|
30
|
+
indexWithinAncestor: t.Tabs,
|
|
31
|
+
contentModel: {
|
|
32
|
+
category: "none",
|
|
33
|
+
children: ["instance", "rich-text"]
|
|
34
|
+
},
|
|
49
35
|
states: [
|
|
50
36
|
...a,
|
|
51
37
|
{
|
|
@@ -55,34 +41,35 @@ const t = {
|
|
|
55
41
|
}
|
|
56
42
|
],
|
|
57
43
|
presetStyle: {
|
|
58
|
-
button: [
|
|
44
|
+
button: [c, i].flat()
|
|
59
45
|
}
|
|
60
|
-
},
|
|
61
|
-
type: "container",
|
|
46
|
+
}, S = {
|
|
62
47
|
label: "Tab Content",
|
|
63
|
-
icon:
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
48
|
+
icon: r,
|
|
49
|
+
indexWithinAncestor: t.Tabs,
|
|
50
|
+
contentModel: {
|
|
51
|
+
category: "none",
|
|
52
|
+
children: ["instance", "rich-text"]
|
|
67
53
|
},
|
|
68
|
-
|
|
69
|
-
|
|
54
|
+
presetStyle: {
|
|
55
|
+
div: e
|
|
56
|
+
}
|
|
70
57
|
}, u = {
|
|
71
58
|
props: p
|
|
72
59
|
}, I = {
|
|
73
|
-
props: T
|
|
74
|
-
}, M = {
|
|
75
60
|
props: b
|
|
61
|
+
}, L = {
|
|
62
|
+
props: T
|
|
76
63
|
}, v = {
|
|
77
|
-
props:
|
|
64
|
+
props: l
|
|
78
65
|
};
|
|
79
66
|
export {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
67
|
+
M as metaTabs,
|
|
68
|
+
S as metaTabsContent,
|
|
69
|
+
x as metaTabsList,
|
|
83
70
|
C as metaTabsTrigger,
|
|
84
71
|
u as propsMetaTabs,
|
|
85
72
|
v as propsMetaTabsContent,
|
|
86
73
|
I as propsMetaTabsList,
|
|
87
|
-
|
|
74
|
+
L as propsMetaTabsTrigger
|
|
88
75
|
};
|
package/lib/tooltip.ws.js
CHANGED
|
@@ -1,50 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { div as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
icon:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { TooltipIcon as t, TriggerIcon as n, ContentIcon 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 r, propsTooltipTrigger as p, propsTooltipContent as s } from "./__generated__/tooltip.props.js";
|
|
5
|
+
const g = {
|
|
6
|
+
icon: n,
|
|
7
|
+
contentModel: {
|
|
8
|
+
category: "none",
|
|
9
|
+
children: ["instance"]
|
|
10
10
|
}
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
}, d = {
|
|
12
|
+
icon: e,
|
|
13
|
+
contentModel: {
|
|
14
|
+
category: "none",
|
|
15
|
+
children: ["instance"]
|
|
16
16
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
component: { $eq: "Tooltip" }
|
|
17
|
+
presetStyle: {
|
|
18
|
+
div: i
|
|
20
19
|
}
|
|
21
20
|
}, m = {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
{
|
|
29
|
-
relation: "descendant",
|
|
30
|
-
component: { $eq: "TooltipContent" }
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
icon: n
|
|
34
|
-
}, g = {
|
|
35
|
-
props: i,
|
|
36
|
-
initialProps: ["open", "delayDuration", "disableHoverableContent"]
|
|
37
|
-
}, d = {
|
|
38
|
-
props: p
|
|
21
|
+
icon: t,
|
|
22
|
+
contentModel: {
|
|
23
|
+
category: "instance",
|
|
24
|
+
children: ["instance"],
|
|
25
|
+
descendants: [o.TooltipTrigger, o.TooltipContent]
|
|
26
|
+
}
|
|
39
27
|
}, f = {
|
|
40
28
|
props: r,
|
|
29
|
+
initialProps: ["open", "delayDuration", "disableHoverableContent"]
|
|
30
|
+
}, C = {
|
|
31
|
+
props: p
|
|
32
|
+
}, M = {
|
|
33
|
+
props: s,
|
|
41
34
|
initialProps: ["side", "sideOffset", "align", "alignOffset"]
|
|
42
35
|
};
|
|
43
36
|
export {
|
|
44
37
|
m as metaTooltip,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
38
|
+
d as metaTooltipContent,
|
|
39
|
+
g as metaTooltipTrigger,
|
|
40
|
+
f as propsMetaTooltip,
|
|
41
|
+
M as propsMetaTooltipContent,
|
|
42
|
+
C as propsMetaTooltipTrigger
|
|
50
43
|
};
|
package/lib/types/select.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type ForwardRefExoticComponent, type ComponentProps, type RefAttributes } from "react";
|
|
2
|
-
import { Item, ItemIndicator, ItemText, Viewport } from "@radix-ui/react-select";
|
|
1
|
+
import { type ForwardRefExoticComponent, type ComponentProps, type RefAttributes, type ComponentPropsWithRef } from "react";
|
|
2
|
+
import { Root, Item, ItemIndicator, ItemText, Viewport } from "@radix-ui/react-select";
|
|
3
3
|
import { type Hook } from "@webstudio-is/react-sdk/runtime";
|
|
4
|
-
export declare const Select: ForwardRefExoticComponent<
|
|
4
|
+
export declare const Select: ForwardRefExoticComponent<ComponentPropsWithRef<typeof Root>>;
|
|
5
5
|
export declare const SelectTrigger: ForwardRefExoticComponent<Omit<import("@radix-ui/react-select").SelectTriggerProps & RefAttributes<HTMLButtonElement>, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
6
6
|
export declare const SelectValue: ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-select").SelectValueProps & RefAttributes<HTMLSpanElement>, "ref">, "placeholder"> & {
|
|
7
7
|
placeholder?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const radix: Record<string, string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const buttonReset:
|
|
1
|
+
import type { PresetStyleDecl } from "@webstudio-is/sdk";
|
|
2
|
+
export declare const buttonReset: PresetStyleDecl[];
|
|
@@ -3,6 +3,7 @@ export declare const radix: Record<string, {
|
|
|
3
3
|
} & ((props: Record<string, unknown> & Record<`${string}:expression`, string> & {
|
|
4
4
|
"ws:id"?: string;
|
|
5
5
|
"ws:label"?: string;
|
|
6
|
+
"ws:tag"?: string;
|
|
6
7
|
"ws:style"?: import("@webstudio-is/template").TemplateStyleDecl[];
|
|
7
8
|
"ws:show"?: boolean | {
|
|
8
9
|
chunks: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/sdk-components-react-radix",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-ca00e2a",
|
|
4
4
|
"description": "Webstudio wrapper for radix library",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -44,36 +44,36 @@
|
|
|
44
44
|
"react-dom": "18.3.0-canary-14898b6a9-20240318"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@radix-ui/react-accordion": "^1.2.
|
|
48
|
-
"@radix-ui/react-checkbox": "^1.
|
|
49
|
-
"@radix-ui/react-collapsible": "^1.1.
|
|
50
|
-
"@radix-ui/react-dialog": "^1.1.
|
|
51
|
-
"@radix-ui/react-label": "^2.1.
|
|
52
|
-
"@radix-ui/react-navigation-menu": "^1.2.
|
|
53
|
-
"@radix-ui/react-popover": "^1.1.
|
|
54
|
-
"@radix-ui/react-radio-group": "^1.
|
|
55
|
-
"@radix-ui/react-select": "^2.
|
|
56
|
-
"@radix-ui/react-switch": "^1.
|
|
57
|
-
"@radix-ui/react-tabs": "^1.1.
|
|
58
|
-
"@radix-ui/react-tooltip": "^1.
|
|
59
|
-
"@radix-ui/react-use-controllable-state": "^1.
|
|
47
|
+
"@radix-ui/react-accordion": "^1.2.8",
|
|
48
|
+
"@radix-ui/react-checkbox": "^1.2.3",
|
|
49
|
+
"@radix-ui/react-collapsible": "^1.1.8",
|
|
50
|
+
"@radix-ui/react-dialog": "^1.1.11",
|
|
51
|
+
"@radix-ui/react-label": "^2.1.4",
|
|
52
|
+
"@radix-ui/react-navigation-menu": "^1.2.10",
|
|
53
|
+
"@radix-ui/react-popover": "^1.1.11",
|
|
54
|
+
"@radix-ui/react-radio-group": "^1.3.4",
|
|
55
|
+
"@radix-ui/react-select": "^2.2.2",
|
|
56
|
+
"@radix-ui/react-switch": "^1.2.2",
|
|
57
|
+
"@radix-ui/react-tabs": "^1.1.9",
|
|
58
|
+
"@radix-ui/react-tooltip": "^1.2.4",
|
|
59
|
+
"@radix-ui/react-use-controllable-state": "^1.2.2",
|
|
60
60
|
"await-interaction-response": "^0.0.2",
|
|
61
|
-
"@webstudio-is/
|
|
62
|
-
"@webstudio-is/
|
|
63
|
-
"@webstudio-is/
|
|
64
|
-
"@webstudio-is/
|
|
61
|
+
"@webstudio-is/react-sdk": "0.0.0-ca00e2a",
|
|
62
|
+
"@webstudio-is/css-engine": "0.0.0-ca00e2a",
|
|
63
|
+
"@webstudio-is/icons": "0.0.0-ca00e2a",
|
|
64
|
+
"@webstudio-is/sdk": "0.0.0-ca00e2a"
|
|
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",
|
|
71
72
|
"@webstudio-is/generate-arg-types": "0.0.0",
|
|
72
73
|
"@webstudio-is/sdk-cli": "^0.94.0",
|
|
73
|
-
"@webstudio-is/css-data": "0.0.0",
|
|
74
|
-
"@webstudio-is/template": "0.0.0-c1d6247",
|
|
75
74
|
"@webstudio-is/tsconfig": "1.0.7",
|
|
76
|
-
"@webstudio-is/
|
|
75
|
+
"@webstudio-is/template": "0.0.0-ca00e2a",
|
|
76
|
+
"@webstudio-is/sdk-components-react": "0.0.0-ca00e2a"
|
|
77
77
|
},
|
|
78
78
|
"scripts": {
|
|
79
79
|
"build": "vite build --config ../../vite.sdk-components.config.ts",
|