@webstudio-is/sdk-components-react 0.220.0 → 0.222.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__/checkbox.props.js +1 -1
- package/lib/__generated__/markdown-embed.props.js +2 -8
- package/lib/__generated__/radio-button.props.js +1 -1
- package/lib/blockquote.ws.js +6 -8
- package/lib/body.ws.js +5 -19
- package/lib/bold.ws.js +4 -6
- package/lib/box.ws.js +12 -17
- package/lib/button.ws.js +5 -13
- package/lib/checkbox.ws.js +6 -17
- package/lib/code-text.ws.js +6 -11
- package/lib/form.ws.js +6 -11
- package/lib/head-slot.template.js +1 -1
- package/lib/heading.ws.js +7 -9
- package/lib/html-embed.ws.js +1 -1
- package/lib/image.ws.js +8 -10
- package/lib/input.js +18 -14
- package/lib/input.ws.js +6 -23
- package/lib/italic.ws.js +6 -16
- package/lib/label.ws.js +2 -4
- package/lib/link.ws.js +5 -17
- package/lib/list-item.ws.js +0 -2
- package/lib/list.ws.js +7 -9
- package/lib/option.js +3 -1
- package/lib/option.ws.js +1 -1
- package/lib/paragraph.ws.js +2 -4
- package/lib/radio-button.ws.js +8 -20
- package/lib/select.js +27 -14
- package/lib/select.ws.js +4 -13
- package/lib/separator.ws.js +6 -11
- package/lib/slot.ws.js +1 -1
- package/lib/span.ws.js +6 -8
- package/lib/subscript.ws.js +6 -8
- package/lib/superscript.ws.js +6 -8
- package/lib/templates.js +12 -36
- package/lib/text.ws.js +4 -6
- package/lib/textarea.js +16 -5
- package/lib/textarea.ws.js +4 -21
- package/lib/time.ws.js +4 -6
- package/lib/types/blockquote.ws.d.ts +1 -1
- package/lib/types/body.ws.d.ts +1 -1
- package/lib/types/bold.ws.d.ts +1 -1
- package/lib/types/box.ws.d.ts +1 -1
- package/lib/types/button.ws.d.ts +1 -1
- package/lib/types/checkbox.d.ts +1 -1
- package/lib/types/checkbox.ws.d.ts +1 -1
- package/lib/types/code-text.ws.d.ts +1 -1
- package/lib/types/form.ws.d.ts +1 -1
- package/lib/types/heading.ws.d.ts +1 -1
- package/lib/types/image.ws.d.ts +1 -1
- package/lib/types/input.d.ts +1 -4
- package/lib/types/input.ws.d.ts +1 -1
- package/lib/types/italic.ws.d.ts +1 -1
- package/lib/types/label.ws.d.ts +1 -1
- package/lib/types/link.ws.d.ts +1 -1
- package/lib/types/list-item.ws.d.ts +1 -1
- package/lib/types/list.ws.d.ts +1 -1
- package/lib/types/markdown-embed.d.ts +3 -3
- package/lib/types/option.d.ts +0 -1
- package/lib/types/paragraph.ws.d.ts +1 -1
- package/lib/types/radio-button.d.ts +1 -1
- package/lib/types/radio-button.ws.d.ts +1 -1
- package/lib/types/select.d.ts +0 -1
- package/lib/types/select.ws.d.ts +1 -1
- package/lib/types/separator.ws.d.ts +1 -1
- package/lib/types/span.ws.d.ts +1 -1
- package/lib/types/subscript.ws.d.ts +1 -1
- package/lib/types/superscript.ws.d.ts +1 -1
- package/lib/types/templates.d.ts +0 -12
- package/lib/types/text.ws.d.ts +1 -1
- package/lib/types/textarea.d.ts +0 -1
- package/lib/types/textarea.ws.d.ts +1 -1
- package/lib/types/time.ws.d.ts +1 -1
- package/lib/types/vimeo-play-button.ws.d.ts +1 -1
- package/lib/types/vimeo-preview-image.d.ts +21 -21
- package/lib/types/vimeo-spinner.ws.d.ts +1 -1
- package/lib/types/vimeo.ws.d.ts +1 -1
- package/lib/types/youtube.ws.d.ts +1 -1
- package/lib/vimeo-play-button.ws.js +8 -10
- package/lib/vimeo-spinner.ws.js +6 -8
- package/lib/vimeo.template.js +22 -21
- package/lib/vimeo.ws.js +6 -8
- package/lib/webhook-form.template.js +61 -22
- package/lib/youtube.template.js +16 -15
- package/lib/youtube.ws.js +4 -6
- package/package.json +7 -7
- package/lib/blockquote.template.js +0 -11
- package/lib/button.template.js +0 -11
- package/lib/checkbox.template.js +0 -14
- package/lib/heading.template.js +0 -11
- package/lib/label.template.js +0 -10
- package/lib/link.template.js +0 -11
- package/lib/list-item.template.js +0 -11
- package/lib/list.template.js +0 -15
- package/lib/paragraph.template.js +0 -11
- package/lib/radio-button.template.js +0 -14
- package/lib/select.template.js +0 -16
- package/lib/text.template.js +0 -11
- package/lib/types/blockquote.template.d.ts +0 -2
- package/lib/types/button.template.d.ts +0 -2
- package/lib/types/checkbox.template.d.ts +0 -2
- package/lib/types/heading.template.d.ts +0 -2
- package/lib/types/label.template.d.ts +0 -2
- package/lib/types/link.template.d.ts +0 -2
- package/lib/types/list-item.template.d.ts +0 -2
- package/lib/types/list.template.d.ts +0 -2
- package/lib/types/paragraph.template.d.ts +0 -2
- package/lib/types/radio-button.template.d.ts +0 -2
- package/lib/types/select.template.d.ts +0 -2
- package/lib/types/text.template.d.ts +0 -2
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
const
|
|
2
|
-
className: {
|
|
3
|
-
required: !1,
|
|
4
|
-
control: "text",
|
|
5
|
-
type: "string",
|
|
6
|
-
description: "Classes to which the element belongs"
|
|
7
|
-
},
|
|
1
|
+
const t = {
|
|
8
2
|
code: { required: !0, control: "text", type: "string" }
|
|
9
3
|
};
|
|
10
4
|
export {
|
|
11
|
-
|
|
5
|
+
t as props
|
|
12
6
|
};
|
package/lib/blockquote.ws.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const p = {
|
|
1
|
+
import { props as t } from "./__generated__/blockquote.props.js";
|
|
2
|
+
const e = {
|
|
4
3
|
blockquote: [
|
|
5
4
|
{
|
|
6
5
|
property: "margin-top",
|
|
@@ -47,12 +46,11 @@ const p = {
|
|
|
47
46
|
value: { type: "rgb", r: 226, g: 226, b: 226, alpha: 1 }
|
|
48
47
|
}
|
|
49
48
|
]
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
presetStyle: p,
|
|
49
|
+
}, r = {
|
|
50
|
+
presetStyle: e,
|
|
53
51
|
initialProps: ["id", "class", "cite"],
|
|
54
|
-
props:
|
|
52
|
+
props: t
|
|
55
53
|
};
|
|
56
54
|
export {
|
|
57
|
-
|
|
55
|
+
r as meta
|
|
58
56
|
};
|
package/lib/body.ws.js
CHANGED
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
body: [
|
|
6
|
-
...t,
|
|
7
|
-
{
|
|
8
|
-
property: "-webkit-font-smoothing",
|
|
9
|
-
value: { type: "keyword", value: "antialiased" }
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
property: "-moz-osx-font-smoothing",
|
|
13
|
-
value: { type: "keyword", value: "grayscale" }
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
}, i = {
|
|
17
|
-
states: o,
|
|
18
|
-
presetStyle: r,
|
|
1
|
+
import { body as o } from "@webstudio-is/sdk/normalize.css";
|
|
2
|
+
import { props as r } from "./__generated__/body.props.js";
|
|
3
|
+
const i = {
|
|
4
|
+
presetStyle: { body: o },
|
|
19
5
|
initialProps: ["id", "class"],
|
|
20
|
-
props:
|
|
6
|
+
props: r
|
|
21
7
|
};
|
|
22
8
|
export {
|
|
23
9
|
i as meta
|
package/lib/bold.ws.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { defaultStates as t } from "@webstudio-is/sdk";
|
|
2
1
|
import { b as o } from "@webstudio-is/sdk/normalize.css";
|
|
3
|
-
import { props as
|
|
4
|
-
const
|
|
2
|
+
import { props as t } from "./__generated__/bold.props.js";
|
|
3
|
+
const p = {
|
|
5
4
|
label: "Bold Text",
|
|
6
|
-
states: t,
|
|
7
5
|
presetStyle: { b: o },
|
|
8
6
|
initialProps: ["id", "class"],
|
|
9
|
-
props:
|
|
7
|
+
props: t
|
|
10
8
|
};
|
|
11
9
|
export {
|
|
12
|
-
|
|
10
|
+
p as meta
|
|
13
11
|
};
|
package/lib/box.ws.js
CHANGED
|
@@ -1,26 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const u = {
|
|
5
|
-
category: "general",
|
|
6
|
-
description: "A container for content. By default this is a Div, but the tag can be changed in settings.",
|
|
7
|
-
states: e,
|
|
1
|
+
import { section as e, nav as r, main as t, header as i, footer as a, figure as o, aside as s, article as d, address as n, div as p } from "@webstudio-is/sdk/normalize.css";
|
|
2
|
+
import { props as c } from "./__generated__/box.props.js";
|
|
3
|
+
const g = {
|
|
8
4
|
presetStyle: {
|
|
9
|
-
div:
|
|
10
|
-
address:
|
|
5
|
+
div: p,
|
|
6
|
+
address: n,
|
|
11
7
|
article: d,
|
|
12
|
-
aside:
|
|
13
|
-
figure:
|
|
14
|
-
footer:
|
|
8
|
+
aside: s,
|
|
9
|
+
figure: o,
|
|
10
|
+
footer: a,
|
|
15
11
|
header: i,
|
|
16
|
-
main:
|
|
12
|
+
main: t,
|
|
17
13
|
nav: r,
|
|
18
|
-
section:
|
|
14
|
+
section: e
|
|
19
15
|
},
|
|
20
|
-
order: 0,
|
|
21
16
|
initialProps: ["tag", "id", "class"],
|
|
22
17
|
props: {
|
|
23
|
-
...
|
|
18
|
+
...c,
|
|
24
19
|
tag: {
|
|
25
20
|
required: !0,
|
|
26
21
|
control: "tag",
|
|
@@ -42,5 +37,5 @@ const u = {
|
|
|
42
37
|
}
|
|
43
38
|
};
|
|
44
39
|
export {
|
|
45
|
-
|
|
40
|
+
g as meta
|
|
46
41
|
};
|
package/lib/button.ws.js
CHANGED
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
import { defaultStates as e } from "@webstudio-is/sdk";
|
|
2
1
|
import { button as t } from "@webstudio-is/sdk/normalize.css";
|
|
3
|
-
import { props as
|
|
4
|
-
const
|
|
5
|
-
button: t
|
|
6
|
-
}, i = {
|
|
7
|
-
presetStyle: a,
|
|
8
|
-
states: [
|
|
9
|
-
...e,
|
|
10
|
-
{ selector: ":disabled", label: "Disabled" },
|
|
11
|
-
{ selector: ":enabled", label: "Enabled" }
|
|
12
|
-
],
|
|
2
|
+
import { props as o } from "./__generated__/button.props.js";
|
|
3
|
+
const e = {
|
|
4
|
+
presetStyle: { button: t },
|
|
13
5
|
initialProps: ["id", "class", "type", "aria-label"],
|
|
14
|
-
props:
|
|
6
|
+
props: o
|
|
15
7
|
};
|
|
16
8
|
export {
|
|
17
|
-
|
|
9
|
+
e as meta
|
|
18
10
|
};
|
package/lib/checkbox.ws.js
CHANGED
|
@@ -1,31 +1,20 @@
|
|
|
1
1
|
import { CheckboxCheckedIcon as e } from "@webstudio-is/icons/svg";
|
|
2
|
-
import {
|
|
3
|
-
import { checkbox as t } from "@webstudio-is/sdk/normalize.css";
|
|
2
|
+
import { checkbox as o } from "@webstudio-is/sdk/normalize.css";
|
|
4
3
|
import { props as r } from "./__generated__/checkbox.props.js";
|
|
5
|
-
const
|
|
4
|
+
const t = {
|
|
6
5
|
input: [
|
|
7
|
-
...
|
|
6
|
+
...o,
|
|
8
7
|
{
|
|
9
8
|
property: "margin-right",
|
|
10
9
|
value: { type: "unit", unit: "em", value: 0.5 }
|
|
11
10
|
}
|
|
12
11
|
]
|
|
13
|
-
},
|
|
12
|
+
}, m = {
|
|
14
13
|
icon: e,
|
|
15
|
-
presetStyle:
|
|
16
|
-
states: [
|
|
17
|
-
...l,
|
|
18
|
-
{ selector: ":checked", label: "Checked" },
|
|
19
|
-
{ selector: ":required", label: "Required" },
|
|
20
|
-
{ selector: ":optional", label: "Optional" },
|
|
21
|
-
{ selector: ":disabled", label: "Disabled" },
|
|
22
|
-
{ selector: ":enabled", label: "Enabled" },
|
|
23
|
-
{ selector: ":read-only", label: "Read Only" },
|
|
24
|
-
{ selector: ":read-write", label: "Read Write" }
|
|
25
|
-
],
|
|
14
|
+
presetStyle: t,
|
|
26
15
|
initialProps: ["id", "class", "name", "value", "required", "checked"],
|
|
27
16
|
props: r
|
|
28
17
|
};
|
|
29
18
|
export {
|
|
30
|
-
|
|
19
|
+
m as meta
|
|
31
20
|
};
|
package/lib/code-text.ws.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { BracesIcon as e } from "@webstudio-is/icons/svg";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const p = {
|
|
2
|
+
import { code as r } from "@webstudio-is/sdk/normalize.css";
|
|
3
|
+
import { props as t } from "./__generated__/code-text.props.js";
|
|
4
|
+
const o = {
|
|
6
5
|
code: [
|
|
7
|
-
...
|
|
6
|
+
...r,
|
|
8
7
|
{
|
|
9
8
|
property: "display",
|
|
10
9
|
value: { type: "keyword", value: "block" }
|
|
@@ -31,19 +30,15 @@ const p = {
|
|
|
31
30
|
}
|
|
32
31
|
]
|
|
33
32
|
}, c = {
|
|
34
|
-
category: "general",
|
|
35
|
-
description: "Use this component when you want to display code as text on the page.",
|
|
36
33
|
icon: e,
|
|
37
34
|
contentModel: {
|
|
38
35
|
category: "instance",
|
|
39
36
|
children: []
|
|
40
37
|
},
|
|
41
|
-
|
|
42
|
-
presetStyle: p,
|
|
43
|
-
order: 5,
|
|
38
|
+
presetStyle: o,
|
|
44
39
|
initialProps: ["id", "class", "lang", "code"],
|
|
45
40
|
props: {
|
|
46
|
-
...
|
|
41
|
+
...t,
|
|
47
42
|
code: {
|
|
48
43
|
required: !0,
|
|
49
44
|
control: "codetext",
|
package/lib/form.ws.js
CHANGED
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
import { defaultStates as r } from "@webstudio-is/sdk";
|
|
2
1
|
import { form as t } from "@webstudio-is/sdk/normalize.css";
|
|
3
|
-
import { props as
|
|
4
|
-
const
|
|
2
|
+
import { props as o } from "./__generated__/form.props.js";
|
|
3
|
+
const r = {
|
|
5
4
|
form: [
|
|
6
5
|
...t,
|
|
7
6
|
{ property: "min-height", value: { type: "unit", unit: "px", value: 20 } }
|
|
8
7
|
]
|
|
9
|
-
},
|
|
10
|
-
category: "forms",
|
|
8
|
+
}, p = {
|
|
11
9
|
label: "Form",
|
|
12
|
-
|
|
13
|
-
states: r,
|
|
14
|
-
presetStyle: o,
|
|
15
|
-
order: 0,
|
|
10
|
+
presetStyle: r,
|
|
16
11
|
initialProps: ["id", "class", "action"],
|
|
17
|
-
props:
|
|
12
|
+
props: o
|
|
18
13
|
};
|
|
19
14
|
export {
|
|
20
|
-
|
|
15
|
+
p as meta
|
|
21
16
|
};
|
|
@@ -3,7 +3,7 @@ import { $ as e } from "@webstudio-is/template";
|
|
|
3
3
|
const l = {
|
|
4
4
|
category: "general",
|
|
5
5
|
description: "The Head Slot component lets you customize page-specific head elements (like canonical URLs), which merge with your site's global head settings, with Head Slot definitions taking priority over Page Settings. For site-wide head changes, use Project Settings instead.",
|
|
6
|
-
order:
|
|
6
|
+
order: 5,
|
|
7
7
|
template: /* @__PURE__ */ i(e.HeadSlot, { children: [
|
|
8
8
|
/* @__PURE__ */ t(e.HeadTitle, { "ws:label": "Title", children: "Title" }),
|
|
9
9
|
/* @__PURE__ */ t(e.HeadLink, { "ws:label": "Link", rel: "help", href: "/help" }),
|
package/lib/heading.ws.js
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { h6 as r, h5 as o, h4 as e, h3 as h, h2 as p, h1 as s } from "@webstudio-is/sdk/normalize.css";
|
|
1
|
+
import { h6 as t, h5 as r, h4 as o, h3 as h, h2 as p, h1 as e } from "@webstudio-is/sdk/normalize.css";
|
|
3
2
|
import { props as i } from "./__generated__/heading.props.js";
|
|
4
|
-
const
|
|
5
|
-
states: t,
|
|
3
|
+
const m = {
|
|
6
4
|
presetStyle: {
|
|
7
|
-
h1:
|
|
5
|
+
h1: e,
|
|
8
6
|
h2: p,
|
|
9
7
|
h3: h,
|
|
10
|
-
h4:
|
|
11
|
-
h5:
|
|
12
|
-
h6:
|
|
8
|
+
h4: o,
|
|
9
|
+
h5: r,
|
|
10
|
+
h6: t
|
|
13
11
|
},
|
|
14
12
|
initialProps: ["tag", "id", "class"],
|
|
15
13
|
props: {
|
|
@@ -23,5 +21,5 @@ const n = {
|
|
|
23
21
|
}
|
|
24
22
|
};
|
|
25
23
|
export {
|
|
26
|
-
|
|
24
|
+
m as meta
|
|
27
25
|
};
|
package/lib/html-embed.ws.js
CHANGED
package/lib/image.ws.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const r = {
|
|
1
|
+
import { img as e } from "@webstudio-is/sdk/normalize.css";
|
|
2
|
+
import { props as t } from "./__generated__/image.props.js";
|
|
3
|
+
const o = {
|
|
5
4
|
img: [
|
|
6
|
-
...
|
|
5
|
+
...e,
|
|
7
6
|
// Otherwise on new image insert onto canvas it can overfit screen size multiple times
|
|
8
7
|
{
|
|
9
8
|
property: "max-width",
|
|
@@ -23,11 +22,10 @@ const r = {
|
|
|
23
22
|
value: { type: "keyword", value: "auto" }
|
|
24
23
|
}
|
|
25
24
|
]
|
|
26
|
-
},
|
|
25
|
+
}, i = {
|
|
27
26
|
category: "media",
|
|
28
27
|
description: "Add an image asset to the page. Webstudio automatically converts images to WebP or AVIF format and makes them responsive for best performance.",
|
|
29
|
-
|
|
30
|
-
presetStyle: r,
|
|
28
|
+
presetStyle: o,
|
|
31
29
|
order: 0,
|
|
32
30
|
initialProps: [
|
|
33
31
|
"id",
|
|
@@ -40,7 +38,7 @@ const r = {
|
|
|
40
38
|
"optimize"
|
|
41
39
|
],
|
|
42
40
|
props: {
|
|
43
|
-
...
|
|
41
|
+
...t,
|
|
44
42
|
// Automatically generated props don't have the right control.
|
|
45
43
|
src: {
|
|
46
44
|
type: "string",
|
|
@@ -51,5 +49,5 @@ const r = {
|
|
|
51
49
|
}
|
|
52
50
|
};
|
|
53
51
|
export {
|
|
54
|
-
|
|
52
|
+
i as meta
|
|
55
53
|
};
|
package/lib/input.js
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
({
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { forwardRef as m, useContext as s, createElement as c } from "react";
|
|
2
|
+
import { ReactSdkContext as d } from "@webstudio-is/react-sdk/runtime";
|
|
3
|
+
const f = m(
|
|
4
|
+
({ value: t, defaultValue: r, checked: n, defaultChecked: e, ...o }, i) => {
|
|
5
|
+
const { renderer: p } = s(d), a = p === "canvas" ? String(t ?? r) + String(n ?? e) : void 0;
|
|
6
|
+
return /* @__PURE__ */ c(
|
|
7
|
+
"input",
|
|
8
|
+
{
|
|
9
|
+
...o,
|
|
10
|
+
key: a,
|
|
11
|
+
defaultValue: t ?? r,
|
|
12
|
+
defaultChecked: n ?? e,
|
|
13
|
+
ref: i
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
}
|
|
13
17
|
);
|
|
14
|
-
|
|
18
|
+
f.displayName = "Input";
|
|
15
19
|
export {
|
|
16
|
-
|
|
20
|
+
f as Input
|
|
17
21
|
};
|
package/lib/input.ws.js
CHANGED
|
@@ -1,33 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { input as l } from "@webstudio-is/sdk/normalize.css";
|
|
1
|
+
import { input as e } from "@webstudio-is/sdk/normalize.css";
|
|
3
2
|
import { props as t } from "./__generated__/input.props.js";
|
|
4
|
-
const
|
|
3
|
+
const p = {
|
|
5
4
|
input: [
|
|
6
|
-
...
|
|
5
|
+
...e,
|
|
7
6
|
{
|
|
8
7
|
property: "display",
|
|
9
8
|
value: { type: "keyword", value: "block" }
|
|
10
9
|
}
|
|
11
10
|
]
|
|
12
|
-
},
|
|
13
|
-
category: "forms",
|
|
11
|
+
}, l = {
|
|
14
12
|
label: "Text Input",
|
|
15
|
-
|
|
16
|
-
presetStyle: r,
|
|
17
|
-
order: 3,
|
|
18
|
-
states: [
|
|
19
|
-
...e,
|
|
20
|
-
{ selector: "::placeholder", label: "Placeholder" },
|
|
21
|
-
{ selector: ":valid", label: "Valid" },
|
|
22
|
-
{ selector: ":invalid", label: "Invalid" },
|
|
23
|
-
{ selector: ":required", label: "Required" },
|
|
24
|
-
{ selector: ":optional", label: "Optional" }
|
|
25
|
-
// Additional states will go into submenu
|
|
26
|
-
//{ selector: ":disabled", label: "Disabled" },
|
|
27
|
-
//{ selector: ":enabled", label: "Enabled" },
|
|
28
|
-
//{ selector: ":read-only", label: "Read Only" },
|
|
29
|
-
//{ selector: ":read-write", label: "Read Write" },
|
|
30
|
-
],
|
|
13
|
+
presetStyle: p,
|
|
31
14
|
initialProps: [
|
|
32
15
|
"id",
|
|
33
16
|
"class",
|
|
@@ -41,5 +24,5 @@ const r = {
|
|
|
41
24
|
props: t
|
|
42
25
|
};
|
|
43
26
|
export {
|
|
44
|
-
|
|
27
|
+
l as meta
|
|
45
28
|
};
|
package/lib/italic.ws.js
CHANGED
|
@@ -1,21 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const r = {
|
|
5
|
-
i: [
|
|
6
|
-
...e,
|
|
7
|
-
{
|
|
8
|
-
property: "font-style",
|
|
9
|
-
value: { type: "keyword", value: "italic" }
|
|
10
|
-
}
|
|
11
|
-
]
|
|
12
|
-
}, p = {
|
|
1
|
+
import { i as t } from "@webstudio-is/sdk/normalize.css";
|
|
2
|
+
import { props as i } from "./__generated__/italic.props.js";
|
|
3
|
+
const e = {
|
|
13
4
|
label: "Italic Text",
|
|
14
|
-
|
|
15
|
-
presetStyle: r,
|
|
5
|
+
presetStyle: { i: t },
|
|
16
6
|
initialProps: ["id", "class"],
|
|
17
|
-
props:
|
|
7
|
+
props: i
|
|
18
8
|
};
|
|
19
9
|
export {
|
|
20
|
-
|
|
10
|
+
e as meta
|
|
21
11
|
};
|
package/lib/label.ws.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { defaultStates as t } from "@webstudio-is/sdk";
|
|
2
1
|
import { label as e } from "@webstudio-is/sdk/normalize.css";
|
|
3
2
|
import { props as l } from "./__generated__/label.props.js";
|
|
4
3
|
const o = {
|
|
@@ -6,13 +5,12 @@ const o = {
|
|
|
6
5
|
...e,
|
|
7
6
|
{ property: "display", value: { type: "keyword", value: "block" } }
|
|
8
7
|
]
|
|
9
|
-
},
|
|
8
|
+
}, t = {
|
|
10
9
|
label: "Input Label",
|
|
11
|
-
states: t,
|
|
12
10
|
presetStyle: o,
|
|
13
11
|
initialProps: ["id", "class", "for"],
|
|
14
12
|
props: l
|
|
15
13
|
};
|
|
16
14
|
export {
|
|
17
|
-
|
|
15
|
+
t as meta
|
|
18
16
|
};
|
package/lib/link.ws.js
CHANGED
|
@@ -1,28 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as t } from "@webstudio-is/sdk/normalize.css";
|
|
1
|
+
import { a as e } from "@webstudio-is/sdk/normalize.css";
|
|
3
2
|
import { props as r } from "./__generated__/link.props.js";
|
|
4
|
-
const
|
|
3
|
+
const t = {
|
|
5
4
|
a: [
|
|
6
|
-
...
|
|
5
|
+
...e,
|
|
7
6
|
{
|
|
8
7
|
property: "display",
|
|
9
8
|
value: { type: "keyword", value: "inline-block" }
|
|
10
9
|
}
|
|
11
10
|
]
|
|
12
11
|
}, p = {
|
|
13
|
-
presetStyle:
|
|
14
|
-
states: [
|
|
15
|
-
...e,
|
|
16
|
-
{
|
|
17
|
-
selector: ":visited",
|
|
18
|
-
label: "Visited"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
category: "component-states",
|
|
22
|
-
selector: "[aria-current=page]",
|
|
23
|
-
label: "Current page"
|
|
24
|
-
}
|
|
25
|
-
],
|
|
12
|
+
presetStyle: t,
|
|
13
|
+
states: [{ label: "Current page", selector: "[aria-current=page]" }],
|
|
26
14
|
initialProps: ["id", "class", "href", "target", "prefetch", "download"],
|
|
27
15
|
props: {
|
|
28
16
|
...r,
|
package/lib/list-item.ws.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { defaultStates as t } from "@webstudio-is/sdk";
|
|
2
1
|
import { li as o } from "@webstudio-is/sdk/normalize.css";
|
|
3
2
|
import { props as r } from "./__generated__/list-item.props.js";
|
|
4
3
|
const p = {
|
|
5
|
-
states: t,
|
|
6
4
|
presetStyle: { li: o },
|
|
7
5
|
initialProps: ["id", "class"],
|
|
8
6
|
props: r
|
package/lib/list.ws.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ul as r, ol as t } from "@webstudio-is/sdk/normalize.css";
|
|
1
|
+
import { ul as e, ol as r } from "@webstudio-is/sdk/normalize.css";
|
|
3
2
|
import { props as p } from "./__generated__/list.props.js";
|
|
4
|
-
const
|
|
3
|
+
const t = {
|
|
5
4
|
ol: [
|
|
6
|
-
...
|
|
5
|
+
...r,
|
|
7
6
|
{
|
|
8
7
|
property: "margin-top",
|
|
9
8
|
value: { type: "keyword", value: "0" }
|
|
@@ -18,7 +17,7 @@ const o = {
|
|
|
18
17
|
}
|
|
19
18
|
],
|
|
20
19
|
ul: [
|
|
21
|
-
...
|
|
20
|
+
...e,
|
|
22
21
|
{
|
|
23
22
|
property: "margin-top",
|
|
24
23
|
value: { type: "keyword", value: "0" }
|
|
@@ -32,12 +31,11 @@ const o = {
|
|
|
32
31
|
value: { type: "keyword", value: "40px" }
|
|
33
32
|
}
|
|
34
33
|
]
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
presetStyle: o,
|
|
34
|
+
}, l = {
|
|
35
|
+
presetStyle: t,
|
|
38
36
|
initialProps: ["id", "class", "ordered", "start", "reversed"],
|
|
39
37
|
props: p
|
|
40
38
|
};
|
|
41
39
|
export {
|
|
42
|
-
|
|
40
|
+
l as meta
|
|
43
41
|
};
|
package/lib/option.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as t } from "react";
|
|
3
|
-
const i = t(
|
|
3
|
+
const i = t(
|
|
4
|
+
(o, p) => /* @__PURE__ */ r("option", { ...o, ref: p })
|
|
5
|
+
);
|
|
4
6
|
i.displayName = "Option";
|
|
5
7
|
export {
|
|
6
8
|
i as Option
|
package/lib/option.ws.js
CHANGED
|
@@ -27,7 +27,7 @@ const l = {
|
|
|
27
27
|
{ selector: ":hover", label: "Hover" },
|
|
28
28
|
{ selector: ":disabled", label: "Disabled" }
|
|
29
29
|
],
|
|
30
|
-
initialProps: ["label", "
|
|
30
|
+
initialProps: ["label", "value", "label", "disabled"],
|
|
31
31
|
props: e
|
|
32
32
|
};
|
|
33
33
|
export {
|
package/lib/paragraph.ws.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { defaultStates as t } from "@webstudio-is/sdk";
|
|
2
1
|
import { p as o } from "@webstudio-is/sdk/normalize.css";
|
|
3
|
-
import { props as
|
|
2
|
+
import { props as p } from "./__generated__/paragraph.props.js";
|
|
4
3
|
const i = {
|
|
5
|
-
states: t,
|
|
6
4
|
presetStyle: { p: o },
|
|
7
5
|
initialProps: ["id", "class"],
|
|
8
|
-
props:
|
|
6
|
+
props: p
|
|
9
7
|
};
|
|
10
8
|
export {
|
|
11
9
|
i as meta
|