@webstudio-is/sdk-components-react 0.209.0 → 0.212.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/__generated__/box.props.js +1 -19
- package/lib/__generated__/heading.props.js +1 -8
- package/lib/__generated__/text.props.js +1 -8
- package/lib/__generated__/video.props.js +587 -0
- package/lib/box.js +9 -6
- package/lib/box.ws.js +38 -18
- package/lib/button.ws.js +6 -10
- package/lib/checkbox.template.js +1 -1
- package/lib/checkbox.ws.js +12 -16
- package/lib/code-text.ws.js +4 -8
- package/lib/components.js +6 -4
- package/lib/form.ws.js +10 -14
- package/lib/heading.js +9 -6
- package/lib/heading.ws.js +22 -18
- package/lib/input.ws.js +8 -12
- package/lib/label.ws.js +8 -12
- package/lib/link.ws.js +2 -6
- package/lib/list-item.ws.js +5 -12
- package/lib/metas.js +6 -4
- package/lib/option.ws.js +2 -6
- package/lib/paragraph.ws.js +6 -10
- package/lib/props.js +4 -2
- package/lib/radio-button.template.js +1 -1
- package/lib/radio-button.ws.js +6 -10
- package/lib/select.ws.js +6 -10
- package/lib/text.js +9 -7
- package/lib/text.ws.js +23 -15
- package/lib/textarea.ws.js +10 -14
- package/lib/types/__generated__/video.props.d.ts +2 -0
- package/lib/types/box.d.ts +2 -3
- package/lib/types/components.d.ts +1 -0
- package/lib/types/heading.d.ts +1 -2
- package/lib/types/link.d.ts +1 -1
- package/lib/types/metas.d.ts +1 -0
- package/lib/types/props.d.ts +1 -0
- package/lib/types/text.d.ts +2 -3
- package/lib/types/video.d.ts +7 -0
- package/lib/types/video.ws.d.ts +3 -0
- package/lib/video.js +46 -0
- package/lib/video.ws.js +34 -0
- package/lib/webhook-form.ws.js +10 -14
- package/lib/youtube.js +115 -101
- package/package.json +9 -8
package/lib/box.ws.js
CHANGED
|
@@ -1,31 +1,51 @@
|
|
|
1
1
|
import { BoxIcon as t } from "@webstudio-is/icons/svg";
|
|
2
2
|
import { defaultStates as e } from "@webstudio-is/sdk";
|
|
3
|
-
import { div as
|
|
3
|
+
import { div as r, address as o, article as a, aside as i, figure as s, footer as n, header as p, main as c, nav as d, section as m } from "@webstudio-is/sdk/normalize.css";
|
|
4
4
|
import { props as f } from "./__generated__/box.props.js";
|
|
5
|
-
const
|
|
6
|
-
div: o,
|
|
7
|
-
address: r,
|
|
8
|
-
article: a,
|
|
9
|
-
aside: i,
|
|
10
|
-
figure: n,
|
|
11
|
-
footer: s,
|
|
12
|
-
header: c,
|
|
13
|
-
main: p,
|
|
14
|
-
nav: d,
|
|
15
|
-
section: m
|
|
16
|
-
}, v = {
|
|
5
|
+
const v = {
|
|
17
6
|
category: "general",
|
|
18
7
|
type: "container",
|
|
19
8
|
description: "A container for content. By default this is a Div, but the tag can be changed in settings.",
|
|
20
9
|
icon: t,
|
|
21
10
|
states: e,
|
|
22
|
-
presetStyle:
|
|
11
|
+
presetStyle: {
|
|
12
|
+
div: r,
|
|
13
|
+
address: o,
|
|
14
|
+
article: a,
|
|
15
|
+
aside: i,
|
|
16
|
+
figure: s,
|
|
17
|
+
footer: n,
|
|
18
|
+
header: p,
|
|
19
|
+
main: c,
|
|
20
|
+
nav: d,
|
|
21
|
+
section: m
|
|
22
|
+
},
|
|
23
23
|
order: 0
|
|
24
|
-
},
|
|
25
|
-
props:
|
|
26
|
-
|
|
24
|
+
}, y = {
|
|
25
|
+
props: {
|
|
26
|
+
...f,
|
|
27
|
+
tag: {
|
|
28
|
+
required: !0,
|
|
29
|
+
control: "tag",
|
|
30
|
+
type: "string",
|
|
31
|
+
options: [
|
|
32
|
+
"div",
|
|
33
|
+
"header",
|
|
34
|
+
"footer",
|
|
35
|
+
"nav",
|
|
36
|
+
"main",
|
|
37
|
+
"section",
|
|
38
|
+
"article",
|
|
39
|
+
"aside",
|
|
40
|
+
"address",
|
|
41
|
+
"figure",
|
|
42
|
+
"span"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
initialProps: ["tag", "id", "className"]
|
|
27
47
|
};
|
|
28
48
|
export {
|
|
29
49
|
v as meta,
|
|
30
|
-
|
|
50
|
+
y as propsMeta
|
|
31
51
|
};
|
package/lib/button.ws.js
CHANGED
|
@@ -1,27 +1,23 @@
|
|
|
1
1
|
import { ButtonElementIcon as t } from "@webstudio-is/icons/svg";
|
|
2
2
|
import { defaultStates as e } from "@webstudio-is/sdk";
|
|
3
3
|
import { button as o } from "@webstudio-is/sdk/normalize.css";
|
|
4
|
-
import { props as
|
|
5
|
-
const
|
|
4
|
+
import { props as a } from "./__generated__/button.props.js";
|
|
5
|
+
const l = {
|
|
6
6
|
button: o
|
|
7
7
|
}, p = {
|
|
8
8
|
icon: t,
|
|
9
9
|
type: "container",
|
|
10
|
-
|
|
11
|
-
relation: "ancestor",
|
|
12
|
-
component: { $nin: ["Button", "Link"] }
|
|
13
|
-
},
|
|
14
|
-
presetStyle: a,
|
|
10
|
+
presetStyle: l,
|
|
15
11
|
states: [
|
|
16
12
|
...e,
|
|
17
13
|
{ selector: ":disabled", label: "Disabled" },
|
|
18
14
|
{ selector: ":enabled", label: "Enabled" }
|
|
19
15
|
]
|
|
20
|
-
},
|
|
21
|
-
props:
|
|
16
|
+
}, m = {
|
|
17
|
+
props: a,
|
|
22
18
|
initialProps: ["id", "className", "type", "aria-label"]
|
|
23
19
|
};
|
|
24
20
|
export {
|
|
25
21
|
p as meta,
|
|
26
|
-
|
|
22
|
+
m as propsMeta
|
|
27
23
|
};
|
package/lib/checkbox.template.js
CHANGED
|
@@ -6,7 +6,7 @@ const l = {
|
|
|
6
6
|
order: 6,
|
|
7
7
|
template: /* @__PURE__ */ r(e.Label, { "ws:label": "Checkbox Field", children: [
|
|
8
8
|
/* @__PURE__ */ o(e.Checkbox, {}),
|
|
9
|
-
/* @__PURE__ */ o(e.Text, { "ws:label": "Checkbox Label", tag: "span", children: new c("Checkbox") })
|
|
9
|
+
/* @__PURE__ */ o(e.Text, { "ws:label": "Checkbox Label", "ws:tag": "span", children: new c("Checkbox") })
|
|
10
10
|
] })
|
|
11
11
|
};
|
|
12
12
|
export {
|
package/lib/checkbox.ws.js
CHANGED
|
@@ -1,25 +1,21 @@
|
|
|
1
1
|
import { CheckboxCheckedIcon as e } from "@webstudio-is/icons/svg";
|
|
2
|
-
import { defaultStates as
|
|
3
|
-
import { checkbox as
|
|
4
|
-
import { props as
|
|
5
|
-
const
|
|
2
|
+
import { defaultStates as l } from "@webstudio-is/sdk";
|
|
3
|
+
import { checkbox as t } from "@webstudio-is/sdk/normalize.css";
|
|
4
|
+
import { props as r } from "./__generated__/checkbox.props.js";
|
|
5
|
+
const o = {
|
|
6
6
|
input: [
|
|
7
|
-
...
|
|
7
|
+
...t,
|
|
8
8
|
{
|
|
9
9
|
property: "margin-right",
|
|
10
10
|
value: { type: "unit", unit: "em", value: 0.5 }
|
|
11
11
|
}
|
|
12
12
|
]
|
|
13
|
-
},
|
|
14
|
-
constraints: {
|
|
15
|
-
relation: "ancestor",
|
|
16
|
-
component: { $nin: ["Button", "Link"] }
|
|
17
|
-
},
|
|
13
|
+
}, d = {
|
|
18
14
|
type: "control",
|
|
19
15
|
icon: e,
|
|
20
|
-
presetStyle:
|
|
16
|
+
presetStyle: o,
|
|
21
17
|
states: [
|
|
22
|
-
...
|
|
18
|
+
...l,
|
|
23
19
|
{ selector: ":checked", label: "Checked" },
|
|
24
20
|
{ selector: ":required", label: "Required" },
|
|
25
21
|
{ selector: ":optional", label: "Optional" },
|
|
@@ -28,11 +24,11 @@ const r = {
|
|
|
28
24
|
{ selector: ":read-only", label: "Read Only" },
|
|
29
25
|
{ selector: ":read-write", label: "Read Write" }
|
|
30
26
|
]
|
|
31
|
-
},
|
|
32
|
-
props:
|
|
27
|
+
}, n = {
|
|
28
|
+
props: r,
|
|
33
29
|
initialProps: ["id", "className", "name", "value", "required", "checked"]
|
|
34
30
|
};
|
|
35
31
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
d as meta,
|
|
33
|
+
n as propsMeta
|
|
38
34
|
};
|
package/lib/code-text.ws.js
CHANGED
|
@@ -30,19 +30,15 @@ const p = {
|
|
|
30
30
|
value: { type: "rgb", r: 238, g: 238, b: 238, alpha: 1 }
|
|
31
31
|
}
|
|
32
32
|
]
|
|
33
|
-
},
|
|
33
|
+
}, d = {
|
|
34
34
|
category: "general",
|
|
35
35
|
type: "embed",
|
|
36
36
|
description: "Use this component when you want to display code as text on the page.",
|
|
37
37
|
icon: e,
|
|
38
|
-
constraints: {
|
|
39
|
-
relation: "ancestor",
|
|
40
|
-
component: { $neq: "CodeText" }
|
|
41
|
-
},
|
|
42
38
|
states: t,
|
|
43
39
|
presetStyle: p,
|
|
44
40
|
order: 5
|
|
45
|
-
},
|
|
41
|
+
}, n = {
|
|
46
42
|
props: {
|
|
47
43
|
...r,
|
|
48
44
|
code: {
|
|
@@ -54,6 +50,6 @@ const p = {
|
|
|
54
50
|
initialProps: ["id", "className", "lang", "code"]
|
|
55
51
|
};
|
|
56
52
|
export {
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
d as meta,
|
|
54
|
+
n as propsMeta
|
|
59
55
|
};
|
package/lib/components.js
CHANGED
|
@@ -10,7 +10,7 @@ import { Paragraph as c } from "./paragraph.js";
|
|
|
10
10
|
import { Link as B, Link as L } from "./link.js";
|
|
11
11
|
import { Span as g } from "./span.js";
|
|
12
12
|
import { Bold as I } from "./bold.js";
|
|
13
|
-
import { Italic as
|
|
13
|
+
import { Italic as h } from "./italic.js";
|
|
14
14
|
import { Superscript as R } from "./superscript.js";
|
|
15
15
|
import { Subscript as y } from "./subscript.js";
|
|
16
16
|
import { Button as E } from "./button.js";
|
|
@@ -36,11 +36,12 @@ import { XmlNode as co } from "./xml-node.js";
|
|
|
36
36
|
import { XmlTime as Bo } from "./xml-time.js";
|
|
37
37
|
import { Time as Ho } from "./time.js";
|
|
38
38
|
import { Select as Fo } from "./select.js";
|
|
39
|
-
import { Option as
|
|
39
|
+
import { Option as Vo } from "./option.js";
|
|
40
40
|
import { HeadSlot as Po } from "./head-slot.js";
|
|
41
41
|
import { HeadLink as wo } from "./head-link.js";
|
|
42
42
|
import { HeadMeta as Co } from "./head-meta.js";
|
|
43
43
|
import { HeadTitle as Mo } from "./head-title.js";
|
|
44
|
+
import { Video as qo } from "./video.js";
|
|
44
45
|
export {
|
|
45
46
|
z as Blockquote,
|
|
46
47
|
n as Body,
|
|
@@ -59,13 +60,13 @@ export {
|
|
|
59
60
|
x as HtmlEmbed,
|
|
60
61
|
Y as Image,
|
|
61
62
|
X as Input,
|
|
62
|
-
|
|
63
|
+
h as Italic,
|
|
63
64
|
$ as Label,
|
|
64
65
|
B as Link,
|
|
65
66
|
D as List,
|
|
66
67
|
J as ListItem,
|
|
67
68
|
a as MarkdownEmbed,
|
|
68
|
-
|
|
69
|
+
Vo as Option,
|
|
69
70
|
c as Paragraph,
|
|
70
71
|
to as RadioButton,
|
|
71
72
|
O as RemixForm,
|
|
@@ -79,6 +80,7 @@ export {
|
|
|
79
80
|
k as Text,
|
|
80
81
|
ro as Textarea,
|
|
81
82
|
Ho as Time,
|
|
83
|
+
qo as Video,
|
|
82
84
|
fo as Vimeo,
|
|
83
85
|
ko as VimeoPlayButton,
|
|
84
86
|
lo as VimeoPreviewImage,
|
package/lib/form.ws.js
CHANGED
|
@@ -1,30 +1,26 @@
|
|
|
1
|
-
import { FormIcon as
|
|
2
|
-
import { defaultStates as
|
|
3
|
-
import { form as
|
|
1
|
+
import { FormIcon as r } from "@webstudio-is/icons/svg";
|
|
2
|
+
import { defaultStates as t } from "@webstudio-is/sdk";
|
|
3
|
+
import { form as o } from "@webstudio-is/sdk/normalize.css";
|
|
4
4
|
import { props as e } from "./__generated__/form.props.js";
|
|
5
|
-
const
|
|
5
|
+
const s = {
|
|
6
6
|
form: [
|
|
7
|
-
...
|
|
7
|
+
...o,
|
|
8
8
|
{ property: "min-height", value: { type: "unit", unit: "px", value: 20 } }
|
|
9
9
|
]
|
|
10
|
-
},
|
|
10
|
+
}, n = {
|
|
11
11
|
category: "forms",
|
|
12
12
|
type: "container",
|
|
13
13
|
label: "Form",
|
|
14
|
-
constraints: {
|
|
15
|
-
relation: "ancestor",
|
|
16
|
-
component: { $nin: ["Form", "Button", "Link"] }
|
|
17
|
-
},
|
|
18
14
|
description: "Create filters, surveys, searches and more.",
|
|
19
|
-
icon:
|
|
20
|
-
states:
|
|
21
|
-
presetStyle:
|
|
15
|
+
icon: r,
|
|
16
|
+
states: t,
|
|
17
|
+
presetStyle: s,
|
|
22
18
|
order: 0
|
|
23
19
|
}, c = {
|
|
24
20
|
props: e,
|
|
25
21
|
initialProps: ["id", "className", "action"]
|
|
26
22
|
};
|
|
27
23
|
export {
|
|
28
|
-
|
|
24
|
+
n as meta,
|
|
29
25
|
c as propsMeta
|
|
30
26
|
};
|
package/lib/heading.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
({ tag:
|
|
1
|
+
import { forwardRef as o, createElement as g } from "react";
|
|
2
|
+
import { getTagFromProps as m } from "@webstudio-is/sdk/runtime";
|
|
3
|
+
const n = "h1", d = o(
|
|
4
|
+
({ tag: e, ...t }, a) => {
|
|
5
|
+
const r = m(t) ?? e ?? n;
|
|
6
|
+
return g(r, { ...t, ref: a });
|
|
7
|
+
}
|
|
5
8
|
);
|
|
6
|
-
|
|
9
|
+
d.displayName = "Heading";
|
|
7
10
|
export {
|
|
8
|
-
|
|
11
|
+
d as Heading
|
|
9
12
|
};
|
package/lib/heading.ws.js
CHANGED
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
import { HeadingIcon as t } from "@webstudio-is/icons/svg";
|
|
2
2
|
import { defaultStates as o } from "@webstudio-is/sdk";
|
|
3
|
-
import { h1 as
|
|
4
|
-
import { props as
|
|
5
|
-
const
|
|
6
|
-
h1: e,
|
|
7
|
-
h2: n,
|
|
8
|
-
h3: r,
|
|
9
|
-
h4: a,
|
|
10
|
-
h5: i,
|
|
11
|
-
h6: s
|
|
12
|
-
}, f = {
|
|
3
|
+
import { h1 as r, h2 as e, h3 as p, h4 as a, h5 as i, h6 as s } from "@webstudio-is/sdk/normalize.css";
|
|
4
|
+
import { props as h } from "./__generated__/heading.props.js";
|
|
5
|
+
const d = {
|
|
13
6
|
type: "container",
|
|
14
7
|
placeholder: "Heading",
|
|
15
8
|
icon: t,
|
|
16
|
-
constraints: {
|
|
17
|
-
relation: "ancestor",
|
|
18
|
-
component: { $neq: "Heading" }
|
|
19
|
-
},
|
|
20
9
|
states: o,
|
|
21
|
-
presetStyle:
|
|
10
|
+
presetStyle: {
|
|
11
|
+
h1: r,
|
|
12
|
+
h2: e,
|
|
13
|
+
h3: p,
|
|
14
|
+
h4: a,
|
|
15
|
+
h5: i,
|
|
16
|
+
h6: s
|
|
17
|
+
}
|
|
22
18
|
}, g = {
|
|
23
|
-
props:
|
|
24
|
-
|
|
19
|
+
props: {
|
|
20
|
+
...h,
|
|
21
|
+
tag: {
|
|
22
|
+
required: !0,
|
|
23
|
+
control: "tag",
|
|
24
|
+
type: "string",
|
|
25
|
+
options: ["h1", "h2", "h3", "h4", "h5", "h6"]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
initialProps: ["tag", "id", "className"]
|
|
25
29
|
};
|
|
26
30
|
export {
|
|
27
|
-
|
|
31
|
+
d as meta,
|
|
28
32
|
g as propsMeta
|
|
29
33
|
};
|
package/lib/input.ws.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FormTextFieldIcon as e } from "@webstudio-is/icons/svg";
|
|
2
|
-
import { defaultStates as
|
|
2
|
+
import { defaultStates as l } from "@webstudio-is/sdk";
|
|
3
3
|
import { input as o } from "@webstudio-is/sdk/normalize.css";
|
|
4
|
-
import { props as
|
|
4
|
+
import { props as t } from "./__generated__/input.props.js";
|
|
5
5
|
const r = {
|
|
6
6
|
input: [
|
|
7
7
|
...o,
|
|
@@ -10,12 +10,8 @@ const r = {
|
|
|
10
10
|
value: { type: "keyword", value: "block" }
|
|
11
11
|
}
|
|
12
12
|
]
|
|
13
|
-
},
|
|
13
|
+
}, c = {
|
|
14
14
|
category: "forms",
|
|
15
|
-
constraints: {
|
|
16
|
-
relation: "ancestor",
|
|
17
|
-
component: { $nin: ["Button", "Link"] }
|
|
18
|
-
},
|
|
19
15
|
type: "control",
|
|
20
16
|
label: "Text Input",
|
|
21
17
|
description: "A single-line text input for collecting string data from your users.",
|
|
@@ -23,7 +19,7 @@ const r = {
|
|
|
23
19
|
presetStyle: r,
|
|
24
20
|
order: 3,
|
|
25
21
|
states: [
|
|
26
|
-
...
|
|
22
|
+
...l,
|
|
27
23
|
{ selector: "::placeholder", label: "Placeholder" },
|
|
28
24
|
{ selector: ":valid", label: "Valid" },
|
|
29
25
|
{ selector: ":invalid", label: "Invalid" },
|
|
@@ -35,8 +31,8 @@ const r = {
|
|
|
35
31
|
//{ selector: ":read-only", label: "Read Only" },
|
|
36
32
|
//{ selector: ":read-write", label: "Read Write" },
|
|
37
33
|
]
|
|
38
|
-
},
|
|
39
|
-
props:
|
|
34
|
+
}, n = {
|
|
35
|
+
props: t,
|
|
40
36
|
initialProps: [
|
|
41
37
|
"id",
|
|
42
38
|
"className",
|
|
@@ -49,6 +45,6 @@ const r = {
|
|
|
49
45
|
]
|
|
50
46
|
};
|
|
51
47
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
48
|
+
c as meta,
|
|
49
|
+
n as propsMeta
|
|
54
50
|
};
|
package/lib/label.ws.js
CHANGED
|
@@ -1,27 +1,23 @@
|
|
|
1
1
|
import { LabelIcon as t } from "@webstudio-is/icons/svg";
|
|
2
|
-
import { defaultStates as
|
|
3
|
-
import { label as
|
|
2
|
+
import { defaultStates as e } from "@webstudio-is/sdk";
|
|
3
|
+
import { label as o } from "@webstudio-is/sdk/normalize.css";
|
|
4
4
|
import { props as r } from "./__generated__/label.props.js";
|
|
5
5
|
const a = {
|
|
6
6
|
label: [
|
|
7
|
-
...
|
|
7
|
+
...o,
|
|
8
8
|
{ property: "display", value: { type: "keyword", value: "block" } }
|
|
9
9
|
]
|
|
10
|
-
},
|
|
11
|
-
constraints: {
|
|
12
|
-
relation: "ancestor",
|
|
13
|
-
component: { $nin: ["Button", "Link"] }
|
|
14
|
-
},
|
|
10
|
+
}, m = {
|
|
15
11
|
type: "container",
|
|
16
12
|
label: "Input Label",
|
|
17
13
|
icon: t,
|
|
18
|
-
states:
|
|
14
|
+
states: e,
|
|
19
15
|
presetStyle: a
|
|
20
|
-
},
|
|
16
|
+
}, n = {
|
|
21
17
|
props: r,
|
|
22
18
|
initialProps: ["id", "className", "htmlFor"]
|
|
23
19
|
};
|
|
24
20
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
m as meta,
|
|
22
|
+
n as propsMeta
|
|
27
23
|
};
|
package/lib/link.ws.js
CHANGED
|
@@ -10,14 +10,10 @@ const a = {
|
|
|
10
10
|
value: { type: "keyword", value: "inline-block" }
|
|
11
11
|
}
|
|
12
12
|
]
|
|
13
|
-
},
|
|
13
|
+
}, n = {
|
|
14
14
|
type: "container",
|
|
15
15
|
placeholder: "Link",
|
|
16
16
|
icon: e,
|
|
17
|
-
constraints: {
|
|
18
|
-
relation: "ancestor",
|
|
19
|
-
component: { $nin: ["Button", "Link"] }
|
|
20
|
-
},
|
|
21
17
|
presetStyle: a,
|
|
22
18
|
states: [
|
|
23
19
|
...t,
|
|
@@ -43,6 +39,6 @@ const a = {
|
|
|
43
39
|
initialProps: ["id", "className", "href", "target", "prefetch", "download"]
|
|
44
40
|
};
|
|
45
41
|
export {
|
|
46
|
-
|
|
42
|
+
n as meta,
|
|
47
43
|
c as propsMeta
|
|
48
44
|
};
|
package/lib/list-item.ws.js
CHANGED
|
@@ -2,26 +2,19 @@ import { ListItemIcon as t } from "@webstudio-is/icons/svg";
|
|
|
2
2
|
import { defaultStates as o } from "@webstudio-is/sdk";
|
|
3
3
|
import { li as e } from "@webstudio-is/sdk/normalize.css";
|
|
4
4
|
import { props as r } from "./__generated__/list-item.props.js";
|
|
5
|
-
const
|
|
6
|
-
li: e
|
|
7
|
-
}, m = {
|
|
5
|
+
const a = {
|
|
8
6
|
type: "container",
|
|
9
7
|
placeholder: "List item",
|
|
10
|
-
constraints: {
|
|
11
|
-
// cannot use parent relation here
|
|
12
|
-
// because list item can be put inside of collection or slot
|
|
13
|
-
// perhaps can be eventually fixed with tag matchers
|
|
14
|
-
relation: "ancestor",
|
|
15
|
-
component: { $eq: "List" }
|
|
16
|
-
},
|
|
17
8
|
icon: t,
|
|
18
9
|
states: o,
|
|
19
|
-
presetStyle:
|
|
10
|
+
presetStyle: {
|
|
11
|
+
li: e
|
|
12
|
+
}
|
|
20
13
|
}, c = {
|
|
21
14
|
props: r,
|
|
22
15
|
initialProps: ["id", "className"]
|
|
23
16
|
};
|
|
24
17
|
export {
|
|
25
|
-
|
|
18
|
+
a as meta,
|
|
26
19
|
c as propsMeta
|
|
27
20
|
};
|
package/lib/metas.js
CHANGED
|
@@ -3,7 +3,7 @@ import { meta as m } from "./fragment.ws.js";
|
|
|
3
3
|
import { meta as p } from "./html-embed.ws.js";
|
|
4
4
|
import { meta as s } from "./markdown-embed.ws.js";
|
|
5
5
|
import { meta as i } from "./body.ws.js";
|
|
6
|
-
import { meta as
|
|
6
|
+
import { meta as n } from "./box.ws.js";
|
|
7
7
|
import { meta as u } from "./text.ws.js";
|
|
8
8
|
import { meta as T } from "./heading.ws.js";
|
|
9
9
|
import { meta as B } from "./paragraph.ws.js";
|
|
@@ -30,7 +30,7 @@ import { meta as me } from "./radio-button.ws.js";
|
|
|
30
30
|
import { meta as pe } from "./checkbox.ws.js";
|
|
31
31
|
import { meta as se } from "./vimeo.ws.js";
|
|
32
32
|
import { meta as ie } from "./youtube.ws.js";
|
|
33
|
-
import { meta as
|
|
33
|
+
import { meta as ne } from "./vimeo-preview-image.ws.js";
|
|
34
34
|
import { meta as ue } from "./vimeo-play-button.ws.js";
|
|
35
35
|
import { meta as Te } from "./vimeo-spinner.ws.js";
|
|
36
36
|
import { meta as Be } from "./xml-node.ws.js";
|
|
@@ -42,11 +42,12 @@ import { meta as Pe } from "./head-slot.ws.js";
|
|
|
42
42
|
import { meta as we } from "./head-link.ws.js";
|
|
43
43
|
import { meta as Ce } from "./head-meta.ws.js";
|
|
44
44
|
import { meta as Me } from "./head-title.ws.js";
|
|
45
|
+
import { meta as qe } from "./video.ws.js";
|
|
45
46
|
export {
|
|
46
47
|
D as Blockquote,
|
|
47
48
|
i as Body,
|
|
48
49
|
h as Bold,
|
|
49
|
-
|
|
50
|
+
n as Box,
|
|
50
51
|
M as Button,
|
|
51
52
|
pe as Checkbox,
|
|
52
53
|
_ as CodeText,
|
|
@@ -80,9 +81,10 @@ export {
|
|
|
80
81
|
u as Text,
|
|
81
82
|
oe as Textarea,
|
|
82
83
|
Le as Time,
|
|
84
|
+
qe as Video,
|
|
83
85
|
se as Vimeo,
|
|
84
86
|
ue as VimeoPlayButton,
|
|
85
|
-
|
|
87
|
+
ne as VimeoPreviewImage,
|
|
86
88
|
Te as VimeoSpinner,
|
|
87
89
|
Be as XmlNode,
|
|
88
90
|
ke as XmlTime,
|
package/lib/option.ws.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ItemIcon as e } from "@webstudio-is/icons/svg";
|
|
2
2
|
import { props as t } from "./__generated__/option.props.js";
|
|
3
|
-
const
|
|
3
|
+
const l = {
|
|
4
4
|
option: [
|
|
5
5
|
{
|
|
6
6
|
property: "background-color",
|
|
@@ -16,14 +16,10 @@ const o = {
|
|
|
16
16
|
]
|
|
17
17
|
}, r = {
|
|
18
18
|
category: "hidden",
|
|
19
|
-
constraints: {
|
|
20
|
-
relation: "parent",
|
|
21
|
-
component: { $eq: "Select" }
|
|
22
|
-
},
|
|
23
19
|
type: "control",
|
|
24
20
|
description: "An item within a drop-down menu that users can select as their chosen value.",
|
|
25
21
|
icon: e,
|
|
26
|
-
presetStyle:
|
|
22
|
+
presetStyle: l,
|
|
27
23
|
states: [
|
|
28
24
|
// Applies when option is being activated (clicked)
|
|
29
25
|
{ selector: ":active", label: "Active" },
|
package/lib/paragraph.ws.js
CHANGED
|
@@ -2,23 +2,19 @@ import { TextAlignLeftIcon as t } from "@webstudio-is/icons/svg";
|
|
|
2
2
|
import { defaultStates as o } from "@webstudio-is/sdk";
|
|
3
3
|
import { p as r } from "@webstudio-is/sdk/normalize.css";
|
|
4
4
|
import { props as e } from "./__generated__/paragraph.props.js";
|
|
5
|
-
const
|
|
5
|
+
const p = {
|
|
6
6
|
p: r
|
|
7
|
-
},
|
|
7
|
+
}, n = {
|
|
8
8
|
type: "container",
|
|
9
9
|
placeholder: "Paragraph",
|
|
10
10
|
icon: t,
|
|
11
|
-
constraints: {
|
|
12
|
-
relation: "ancestor",
|
|
13
|
-
component: { $neq: "Paragraph" }
|
|
14
|
-
},
|
|
15
11
|
states: o,
|
|
16
|
-
presetStyle:
|
|
17
|
-
},
|
|
12
|
+
presetStyle: p
|
|
13
|
+
}, c = {
|
|
18
14
|
props: e,
|
|
19
15
|
initialProps: ["id", "className"]
|
|
20
16
|
};
|
|
21
17
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
n as meta,
|
|
19
|
+
c as propsMeta
|
|
24
20
|
};
|
package/lib/props.js
CHANGED
|
@@ -3,7 +3,7 @@ import { propsMeta as t } from "./fragment.ws.js";
|
|
|
3
3
|
import { propsMeta as s } from "./html-embed.ws.js";
|
|
4
4
|
import { propsMeta as x } from "./markdown-embed.ws.js";
|
|
5
5
|
import { propsMeta as f } from "./body.ws.js";
|
|
6
|
-
import { propsMeta as
|
|
6
|
+
import { propsMeta as d } from "./box.ws.js";
|
|
7
7
|
import { propsMeta as l } from "./text.ws.js";
|
|
8
8
|
import { propsMeta as S } from "./heading.ws.js";
|
|
9
9
|
import { propsMeta as c } from "./paragraph.ws.js";
|
|
@@ -42,11 +42,12 @@ import { propsMeta as Po } from "./head-slot.ws.js";
|
|
|
42
42
|
import { propsMeta as wo } from "./head-link.ws.js";
|
|
43
43
|
import { propsMeta as Co } from "./head-meta.ws.js";
|
|
44
44
|
import { propsMeta as Xo } from "./head-title.ws.js";
|
|
45
|
+
import { propsMeta as vo } from "./video.ws.js";
|
|
45
46
|
export {
|
|
46
47
|
D as Blockquote,
|
|
47
48
|
f as Body,
|
|
48
49
|
V as Bold,
|
|
49
|
-
|
|
50
|
+
d as Box,
|
|
50
51
|
E as Button,
|
|
51
52
|
so as Checkbox,
|
|
52
53
|
_ as CodeText,
|
|
@@ -80,6 +81,7 @@ export {
|
|
|
80
81
|
l as Text,
|
|
81
82
|
po as Textarea,
|
|
82
83
|
Lo as Time,
|
|
84
|
+
vo as Video,
|
|
83
85
|
xo as Vimeo,
|
|
84
86
|
uo as VimeoPlayButton,
|
|
85
87
|
no as VimeoPreviewImage,
|
|
@@ -6,7 +6,7 @@ const r = {
|
|
|
6
6
|
order: 5,
|
|
7
7
|
template: /* @__PURE__ */ t(e.Label, { "ws:label": "Radio Field", children: [
|
|
8
8
|
/* @__PURE__ */ o(e.RadioButton, {}),
|
|
9
|
-
/* @__PURE__ */ o(e.Text, { "ws:label": "Radio Label", tag: "span", children: new a("Radio") })
|
|
9
|
+
/* @__PURE__ */ o(e.Text, { "ws:label": "Radio Label", "ws:tag": "span", children: new a("Radio") })
|
|
10
10
|
] })
|
|
11
11
|
};
|
|
12
12
|
export {
|