@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.
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 +7 -7
  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
@@ -1,11 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { $ as t } from "@webstudio-is/template";
3
- const a = {
4
- category: "typography",
5
- description: "A container for multi-line text.",
6
- order: 2,
7
- template: /* @__PURE__ */ r(t.Paragraph, {})
8
- };
9
- export {
10
- a as meta
11
- };
@@ -1,14 +0,0 @@
1
- import { jsxs as t, jsx as o } from "react/jsx-runtime";
2
- import { $ as e, PlaceholderValue as a } from "@webstudio-is/template";
3
- const r = {
4
- category: "forms",
5
- description: "Use within a form to allow your users to select a single option from a set of mutually exclusive choices. Group multiple radios by matching their “Name” properties.",
6
- order: 5,
7
- template: /* @__PURE__ */ t(e.Label, { "ws:label": "Radio Field", children: [
8
- /* @__PURE__ */ o(e.RadioButton, {}),
9
- /* @__PURE__ */ o(e.Text, { "ws:label": "Radio Label", "ws:tag": "span", children: new a("Radio") })
10
- ] })
11
- };
12
- export {
13
- r as meta
14
- };
@@ -1,16 +0,0 @@
1
- import { jsxs as t, jsx as o } from "react/jsx-runtime";
2
- import { $ as e } from "@webstudio-is/template";
3
- const n = {
4
- category: "forms",
5
- description: "A drop-down menu for users to select a single option from a predefined list.",
6
- order: 4,
7
- template: /* @__PURE__ */ t(e.Select, { children: [
8
- /* @__PURE__ */ o(e.Option, { label: "Please choose an option", value: "" }),
9
- /* @__PURE__ */ o(e.Option, { label: "Option A", value: "a" }),
10
- /* @__PURE__ */ o(e.Option, { label: "Option B", value: "b" }),
11
- /* @__PURE__ */ o(e.Option, { label: "Option C", value: "c" })
12
- ] })
13
- };
14
- export {
15
- n as meta
16
- };
@@ -1,11 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { $ as t, PlaceholderValue as o } from "@webstudio-is/template";
3
- const a = {
4
- category: "typography",
5
- description: "A generic container for any text content that is not a heading or a link.",
6
- order: 0,
7
- template: /* @__PURE__ */ e(t.Text, { children: new o("The text you can edit") })
8
- };
9
- export {
10
- a as meta
11
- };
@@ -1,2 +0,0 @@
1
- import { type TemplateMeta } from "@webstudio-is/template";
2
- export declare const meta: TemplateMeta;
@@ -1,2 +0,0 @@
1
- import { type TemplateMeta } from "@webstudio-is/template";
2
- export declare const meta: TemplateMeta;
@@ -1,2 +0,0 @@
1
- import { type TemplateMeta } from "@webstudio-is/template";
2
- export declare const meta: TemplateMeta;
@@ -1,2 +0,0 @@
1
- import { type TemplateMeta } from "@webstudio-is/template";
2
- export declare const meta: TemplateMeta;
@@ -1,2 +0,0 @@
1
- import { type TemplateMeta } from "@webstudio-is/template";
2
- export declare const meta: TemplateMeta;
@@ -1,2 +0,0 @@
1
- import { type TemplateMeta } from "@webstudio-is/template";
2
- export declare const meta: TemplateMeta;
@@ -1,2 +0,0 @@
1
- import { type TemplateMeta } from "@webstudio-is/template";
2
- export declare const meta: TemplateMeta;
@@ -1,2 +0,0 @@
1
- import { type TemplateMeta } from "@webstudio-is/template";
2
- export declare const meta: TemplateMeta;
@@ -1,2 +0,0 @@
1
- import { type TemplateMeta } from "@webstudio-is/template";
2
- export declare const meta: TemplateMeta;
@@ -1,2 +0,0 @@
1
- import { type TemplateMeta } from "@webstudio-is/template";
2
- export declare const meta: TemplateMeta;
@@ -1,2 +0,0 @@
1
- import { type TemplateMeta } from "@webstudio-is/template";
2
- export declare const meta: TemplateMeta;
@@ -1,2 +0,0 @@
1
- import { type TemplateMeta } from "@webstudio-is/template";
2
- export declare const meta: TemplateMeta;