@webstudio-is/sdk-components-react 0.220.0 → 0.221.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.
Files changed (109) hide show
  1. package/lib/__generated__/checkbox.props.js +1 -1
  2. package/lib/__generated__/markdown-embed.props.js +2 -8
  3. package/lib/__generated__/radio-button.props.js +1 -1
  4. package/lib/blockquote.ws.js +6 -8
  5. package/lib/body.ws.js +5 -19
  6. package/lib/bold.ws.js +4 -6
  7. package/lib/box.ws.js +12 -17
  8. package/lib/button.ws.js +5 -13
  9. package/lib/checkbox.ws.js +6 -17
  10. package/lib/code-text.ws.js +6 -11
  11. package/lib/form.ws.js +6 -11
  12. package/lib/head-slot.template.js +1 -1
  13. package/lib/heading.ws.js +7 -9
  14. package/lib/html-embed.ws.js +1 -1
  15. package/lib/image.ws.js +8 -10
  16. package/lib/input.js +18 -14
  17. package/lib/input.ws.js +6 -23
  18. package/lib/italic.ws.js +6 -16
  19. package/lib/label.ws.js +2 -4
  20. package/lib/link.ws.js +5 -17
  21. package/lib/list-item.ws.js +0 -2
  22. package/lib/list.ws.js +7 -9
  23. package/lib/option.js +3 -1
  24. package/lib/option.ws.js +1 -1
  25. package/lib/paragraph.ws.js +2 -4
  26. package/lib/radio-button.ws.js +8 -20
  27. package/lib/select.js +27 -14
  28. package/lib/select.ws.js +4 -13
  29. package/lib/separator.ws.js +6 -11
  30. package/lib/slot.ws.js +1 -1
  31. package/lib/span.ws.js +6 -8
  32. package/lib/subscript.ws.js +6 -8
  33. package/lib/superscript.ws.js +6 -8
  34. package/lib/templates.js +12 -36
  35. package/lib/text.ws.js +4 -6
  36. package/lib/textarea.js +16 -5
  37. package/lib/textarea.ws.js +4 -21
  38. package/lib/time.ws.js +4 -6
  39. package/lib/types/blockquote.ws.d.ts +1 -1
  40. package/lib/types/body.ws.d.ts +1 -1
  41. package/lib/types/bold.ws.d.ts +1 -1
  42. package/lib/types/box.ws.d.ts +1 -1
  43. package/lib/types/button.ws.d.ts +1 -1
  44. package/lib/types/checkbox.d.ts +1 -1
  45. package/lib/types/checkbox.ws.d.ts +1 -1
  46. package/lib/types/code-text.ws.d.ts +1 -1
  47. package/lib/types/form.ws.d.ts +1 -1
  48. package/lib/types/heading.ws.d.ts +1 -1
  49. package/lib/types/image.ws.d.ts +1 -1
  50. package/lib/types/input.d.ts +1 -4
  51. package/lib/types/input.ws.d.ts +1 -1
  52. package/lib/types/italic.ws.d.ts +1 -1
  53. package/lib/types/label.ws.d.ts +1 -1
  54. package/lib/types/link.ws.d.ts +1 -1
  55. package/lib/types/list-item.ws.d.ts +1 -1
  56. package/lib/types/list.ws.d.ts +1 -1
  57. package/lib/types/markdown-embed.d.ts +3 -3
  58. package/lib/types/option.d.ts +0 -1
  59. package/lib/types/paragraph.ws.d.ts +1 -1
  60. package/lib/types/radio-button.d.ts +1 -1
  61. package/lib/types/radio-button.ws.d.ts +1 -1
  62. package/lib/types/select.d.ts +0 -1
  63. package/lib/types/select.ws.d.ts +1 -1
  64. package/lib/types/separator.ws.d.ts +1 -1
  65. package/lib/types/span.ws.d.ts +1 -1
  66. package/lib/types/subscript.ws.d.ts +1 -1
  67. package/lib/types/superscript.ws.d.ts +1 -1
  68. package/lib/types/templates.d.ts +0 -12
  69. package/lib/types/text.ws.d.ts +1 -1
  70. package/lib/types/textarea.d.ts +0 -1
  71. package/lib/types/textarea.ws.d.ts +1 -1
  72. package/lib/types/time.ws.d.ts +1 -1
  73. package/lib/types/vimeo-play-button.ws.d.ts +1 -1
  74. package/lib/types/vimeo-preview-image.d.ts +21 -21
  75. package/lib/types/vimeo-spinner.ws.d.ts +1 -1
  76. package/lib/types/vimeo.ws.d.ts +1 -1
  77. package/lib/types/youtube.ws.d.ts +1 -1
  78. package/lib/vimeo-play-button.ws.js +8 -10
  79. package/lib/vimeo-spinner.ws.js +6 -8
  80. package/lib/vimeo.template.js +22 -21
  81. package/lib/vimeo.ws.js +6 -8
  82. package/lib/webhook-form.template.js +61 -22
  83. package/lib/youtube.template.js +16 -15
  84. package/lib/youtube.ws.js +4 -6
  85. package/package.json +6 -6
  86. package/lib/blockquote.template.js +0 -11
  87. package/lib/button.template.js +0 -11
  88. package/lib/checkbox.template.js +0 -14
  89. package/lib/heading.template.js +0 -11
  90. package/lib/label.template.js +0 -10
  91. package/lib/link.template.js +0 -11
  92. package/lib/list-item.template.js +0 -11
  93. package/lib/list.template.js +0 -15
  94. package/lib/paragraph.template.js +0 -11
  95. package/lib/radio-button.template.js +0 -14
  96. package/lib/select.template.js +0 -16
  97. package/lib/text.template.js +0 -11
  98. package/lib/types/blockquote.template.d.ts +0 -2
  99. package/lib/types/button.template.d.ts +0 -2
  100. package/lib/types/checkbox.template.d.ts +0 -2
  101. package/lib/types/heading.template.d.ts +0 -2
  102. package/lib/types/label.template.d.ts +0 -2
  103. package/lib/types/link.template.d.ts +0 -2
  104. package/lib/types/list-item.template.d.ts +0 -2
  105. package/lib/types/list.template.d.ts +0 -2
  106. package/lib/types/paragraph.template.d.ts +0 -2
  107. package/lib/types/radio-button.template.d.ts +0 -2
  108. package/lib/types/select.template.d.ts +0 -2
  109. package/lib/types/text.template.d.ts +0 -2
@@ -3,7 +3,7 @@ const e = {
3
3
  required: !1,
4
4
  control: "text",
5
5
  type: "string",
6
- description: "Current value of the element"
6
+ description: "Value of the form control"
7
7
  }
8
8
  };
9
9
  export {
@@ -1,12 +1,6 @@
1
- const e = {
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
- e as props
5
+ t as props
12
6
  };
@@ -3,7 +3,7 @@ const e = {
3
3
  required: !1,
4
4
  control: "text",
5
5
  type: "string",
6
- description: "Current value of the element"
6
+ description: "Value of the form control"
7
7
  }
8
8
  };
9
9
  export {
@@ -1,6 +1,5 @@
1
- import { defaultStates as t } from "@webstudio-is/sdk";
2
- import { props as e } from "./__generated__/blockquote.props.js";
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
- }, a = {
51
- states: t,
52
- presetStyle: p,
49
+ }, r = {
50
+ presetStyle: e,
53
51
  initialProps: ["id", "class", "cite"],
54
- props: e
52
+ props: t
55
53
  };
56
54
  export {
57
- a as meta
55
+ r as meta
58
56
  };
package/lib/body.ws.js CHANGED
@@ -1,23 +1,9 @@
1
- import { defaultStates as o } from "@webstudio-is/sdk";
2
- import { body as t } from "@webstudio-is/sdk/normalize.css";
3
- import { props as e } from "./__generated__/body.props.js";
4
- const r = {
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: e
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 e } from "./__generated__/bold.props.js";
4
- const a = {
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: e
7
+ props: t
10
8
  };
11
9
  export {
12
- a as meta
10
+ p as meta
13
11
  };
package/lib/box.ws.js CHANGED
@@ -1,26 +1,21 @@
1
- import { defaultStates as e } from "@webstudio-is/sdk";
2
- import { section as t, nav as r, main as a, header as i, footer as o, figure as s, aside as n, article as d, address as p, div as c } from "@webstudio-is/sdk/normalize.css";
3
- import { props as g } from "./__generated__/box.props.js";
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: c,
10
- address: p,
5
+ div: p,
6
+ address: n,
11
7
  article: d,
12
- aside: n,
13
- figure: s,
14
- footer: o,
8
+ aside: s,
9
+ figure: o,
10
+ footer: a,
15
11
  header: i,
16
- main: a,
12
+ main: t,
17
13
  nav: r,
18
- section: t
14
+ section: e
19
15
  },
20
- order: 0,
21
16
  initialProps: ["tag", "id", "class"],
22
17
  props: {
23
- ...g,
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
- u as meta
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 l } from "./__generated__/button.props.js";
4
- const a = {
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: l
6
+ props: o
15
7
  };
16
8
  export {
17
- i as meta
9
+ e as meta
18
10
  };
@@ -1,31 +1,20 @@
1
1
  import { CheckboxCheckedIcon as e } from "@webstudio-is/icons/svg";
2
- import { defaultStates as l } from "@webstudio-is/sdk";
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 o = {
4
+ const t = {
6
5
  input: [
7
- ...t,
6
+ ...o,
8
7
  {
9
8
  property: "margin-right",
10
9
  value: { type: "unit", unit: "em", value: 0.5 }
11
10
  }
12
11
  ]
13
- }, d = {
12
+ }, m = {
14
13
  icon: e,
15
- presetStyle: o,
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
- d as meta
19
+ m as meta
31
20
  };
@@ -1,10 +1,9 @@
1
1
  import { BracesIcon as e } from "@webstudio-is/icons/svg";
2
- import { defaultStates as t } from "@webstudio-is/sdk";
3
- import { code as o } from "@webstudio-is/sdk/normalize.css";
4
- import { props as r } from "./__generated__/code-text.props.js";
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
- ...o,
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
- states: t,
42
- presetStyle: p,
43
- order: 5,
38
+ presetStyle: o,
44
39
  initialProps: ["id", "class", "lang", "code"],
45
40
  props: {
46
- ...r,
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 e } from "./__generated__/form.props.js";
4
- const o = {
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
- }, m = {
10
- category: "forms",
8
+ }, p = {
11
9
  label: "Form",
12
- description: "Create filters, surveys, searches and more.",
13
- states: r,
14
- presetStyle: o,
15
- order: 0,
10
+ presetStyle: r,
16
11
  initialProps: ["id", "class", "action"],
17
- props: e
12
+ props: o
18
13
  };
19
14
  export {
20
- m as meta
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,
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 { defaultStates as t } from "@webstudio-is/sdk";
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 n = {
5
- states: t,
3
+ const m = {
6
4
  presetStyle: {
7
- h1: s,
5
+ h1: e,
8
6
  h2: p,
9
7
  h3: h,
10
- h4: e,
11
- h5: o,
12
- h6: r
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
- n as meta
24
+ m as meta
27
25
  };
@@ -6,7 +6,7 @@ const a = {
6
6
  label: "HTML Embed",
7
7
  description: "Used to add HTML code to the page, such as an SVG or script.",
8
8
  icon: t,
9
- order: 2,
9
+ order: 3,
10
10
  contentModel: {
11
11
  category: "instance",
12
12
  children: [n]
package/lib/image.ws.js CHANGED
@@ -1,9 +1,8 @@
1
- import { defaultStates as e } from "@webstudio-is/sdk";
2
- import { img as t } from "@webstudio-is/sdk/normalize.css";
3
- import { props as o } from "./__generated__/image.props.js";
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
- ...t,
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
- }, s = {
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
- states: e,
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
- ...o,
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
- s as meta
52
+ i as meta
55
53
  };
package/lib/input.js CHANGED
@@ -1,17 +1,21 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { forwardRef as n } from "react";
3
- const a = n(
4
- ({ children: d, type: t = "text", value: r, defaultValue: e, ...o }, p) => /* @__PURE__ */ i(
5
- "input",
6
- {
7
- ...o,
8
- defaultValue: r ?? e,
9
- type: t,
10
- ref: p
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
- a.displayName = "Input";
18
+ f.displayName = "Input";
15
19
  export {
16
- a as Input
20
+ f as Input
17
21
  };
package/lib/input.ws.js CHANGED
@@ -1,33 +1,16 @@
1
- import { defaultStates as e } from "@webstudio-is/sdk";
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 r = {
3
+ const p = {
5
4
  input: [
6
- ...l,
5
+ ...e,
7
6
  {
8
7
  property: "display",
9
8
  value: { type: "keyword", value: "block" }
10
9
  }
11
10
  ]
12
- }, s = {
13
- category: "forms",
11
+ }, l = {
14
12
  label: "Text Input",
15
- description: "A single-line text input for collecting string data from your users.",
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
- s as meta
27
+ l as meta
45
28
  };
package/lib/italic.ws.js CHANGED
@@ -1,21 +1,11 @@
1
- import { defaultStates as t } from "@webstudio-is/sdk";
2
- import { i as e } from "@webstudio-is/sdk/normalize.css";
3
- import { props as o } from "./__generated__/italic.props.js";
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
- states: t,
15
- presetStyle: r,
5
+ presetStyle: { i: t },
16
6
  initialProps: ["id", "class"],
17
- props: o
7
+ props: i
18
8
  };
19
9
  export {
20
- p as meta
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
- }, s = {
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
- s as meta
15
+ t as meta
18
16
  };
package/lib/link.ws.js CHANGED
@@ -1,28 +1,16 @@
1
- import { defaultStates as e } from "@webstudio-is/sdk";
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 o = {
3
+ const t = {
5
4
  a: [
6
- ...t,
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: o,
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,
@@ -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 { defaultStates as e } from "@webstudio-is/sdk";
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 o = {
3
+ const t = {
5
4
  ol: [
6
- ...t,
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
- ...r,
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
- }, d = {
36
- states: e,
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
- d as meta
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((o, p) => /* @__PURE__ */ r("option", { ...o, ref: p }));
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", "selected", "value", "label", "disabled"],
30
+ initialProps: ["label", "value", "label", "disabled"],
31
31
  props: e
32
32
  };
33
33
  export {
@@ -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 r } from "./__generated__/paragraph.props.js";
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: r
6
+ props: p
9
7
  };
10
8
  export {
11
9
  i as meta