@webstudio-is/sdk-components-react 0.219.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 (141) 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/__generated__/time.props.js +0 -7
  5. package/lib/blockquote.ws.js +7 -14
  6. package/lib/body.ws.js +6 -24
  7. package/lib/bold.ws.js +7 -15
  8. package/lib/box.ws.js +16 -25
  9. package/lib/button.ws.js +7 -19
  10. package/lib/checkbox.ws.js +8 -21
  11. package/lib/code-text.ws.js +10 -17
  12. package/lib/form.ws.js +7 -16
  13. package/lib/fragment.ws.js +2 -7
  14. package/lib/head-link.ws.js +6 -9
  15. package/lib/head-meta.ws.js +5 -8
  16. package/lib/head-slot.template.js +1 -1
  17. package/lib/head-slot.ws.js +3 -7
  18. package/lib/head-title.ws.js +2 -4
  19. package/lib/heading.ws.js +14 -21
  20. package/lib/html-embed.ws.js +6 -8
  21. package/lib/image.ws.js +20 -26
  22. package/lib/input.js +18 -14
  23. package/lib/input.ws.js +10 -31
  24. package/lib/italic.ws.js +7 -21
  25. package/lib/label.ws.js +6 -12
  26. package/lib/link.ws.js +11 -28
  27. package/lib/list-item.ws.js +6 -15
  28. package/lib/list.ws.js +9 -15
  29. package/lib/markdown-embed.ws.js +6 -8
  30. package/lib/option.js +3 -1
  31. package/lib/option.ws.js +6 -10
  32. package/lib/paragraph.ws.js +7 -16
  33. package/lib/radio-button.ws.js +9 -23
  34. package/lib/rich-text-link.ws.js +3 -4
  35. package/lib/select.js +27 -14
  36. package/lib/select.ws.js +10 -23
  37. package/lib/separator.ws.js +9 -18
  38. package/lib/slot.ws.js +5 -8
  39. package/lib/span.ws.js +7 -13
  40. package/lib/subscript.ws.js +7 -15
  41. package/lib/superscript.ws.js +7 -15
  42. package/lib/templates.js +12 -36
  43. package/lib/text.ws.js +8 -12
  44. package/lib/textarea.js +16 -5
  45. package/lib/textarea.ws.js +11 -32
  46. package/lib/time.js +2 -1
  47. package/lib/time.ws.js +12 -14
  48. package/lib/types/blockquote.ws.d.ts +1 -2
  49. package/lib/types/body.ws.d.ts +1 -2
  50. package/lib/types/bold.ws.d.ts +1 -2
  51. package/lib/types/box.ws.d.ts +1 -2
  52. package/lib/types/button.ws.d.ts +1 -2
  53. package/lib/types/checkbox.d.ts +1 -1
  54. package/lib/types/checkbox.ws.d.ts +1 -2
  55. package/lib/types/code-text.ws.d.ts +1 -2
  56. package/lib/types/form.ws.d.ts +1 -2
  57. package/lib/types/fragment.ws.d.ts +1 -2
  58. package/lib/types/head-link.ws.d.ts +1 -2
  59. package/lib/types/head-meta.ws.d.ts +1 -2
  60. package/lib/types/head-slot.ws.d.ts +1 -2
  61. package/lib/types/head-title.ws.d.ts +1 -2
  62. package/lib/types/heading.ws.d.ts +1 -2
  63. package/lib/types/html-embed.ws.d.ts +1 -2
  64. package/lib/types/image.ws.d.ts +1 -2
  65. package/lib/types/input.d.ts +1 -4
  66. package/lib/types/input.ws.d.ts +1 -2
  67. package/lib/types/italic.ws.d.ts +1 -2
  68. package/lib/types/label.ws.d.ts +1 -2
  69. package/lib/types/link.ws.d.ts +1 -2
  70. package/lib/types/list-item.ws.d.ts +1 -2
  71. package/lib/types/list.ws.d.ts +1 -2
  72. package/lib/types/markdown-embed.d.ts +3 -3
  73. package/lib/types/markdown-embed.ws.d.ts +1 -2
  74. package/lib/types/option.d.ts +0 -1
  75. package/lib/types/option.ws.d.ts +1 -2
  76. package/lib/types/paragraph.ws.d.ts +1 -2
  77. package/lib/types/radio-button.d.ts +1 -1
  78. package/lib/types/radio-button.ws.d.ts +1 -2
  79. package/lib/types/rich-text-link.ws.d.ts +1 -2
  80. package/lib/types/select.d.ts +0 -1
  81. package/lib/types/select.ws.d.ts +1 -2
  82. package/lib/types/separator.ws.d.ts +1 -2
  83. package/lib/types/slot.ws.d.ts +1 -2
  84. package/lib/types/span.ws.d.ts +1 -2
  85. package/lib/types/subscript.ws.d.ts +1 -2
  86. package/lib/types/superscript.ws.d.ts +1 -2
  87. package/lib/types/templates.d.ts +0 -12
  88. package/lib/types/text.ws.d.ts +1 -2
  89. package/lib/types/textarea.d.ts +0 -1
  90. package/lib/types/textarea.ws.d.ts +1 -2
  91. package/lib/types/time.d.ts +2 -4
  92. package/lib/types/time.ws.d.ts +1 -2
  93. package/lib/types/video.ws.d.ts +1 -2
  94. package/lib/types/vimeo-play-button.ws.d.ts +1 -2
  95. package/lib/types/vimeo-preview-image.d.ts +21 -21
  96. package/lib/types/vimeo-preview-image.ws.d.ts +1 -2
  97. package/lib/types/vimeo-spinner.ws.d.ts +1 -2
  98. package/lib/types/vimeo.ws.d.ts +1 -2
  99. package/lib/types/webhook-form.ws.d.ts +1 -2
  100. package/lib/types/xml-node.ws.d.ts +1 -2
  101. package/lib/types/xml-time.ws.d.ts +1 -2
  102. package/lib/types/youtube.ws.d.ts +1 -2
  103. package/lib/video.ws.js +14 -17
  104. package/lib/vimeo-play-button.ws.js +9 -15
  105. package/lib/vimeo-preview-image.ws.js +6 -8
  106. package/lib/vimeo-spinner.ws.js +7 -13
  107. package/lib/vimeo.template.js +22 -21
  108. package/lib/vimeo.ws.js +13 -19
  109. package/lib/webhook-form.template.js +61 -22
  110. package/lib/webhook-form.ws.js +4 -6
  111. package/lib/xml-node.ws.js +5 -7
  112. package/lib/xml-time.ws.js +5 -7
  113. package/lib/youtube.template.js +16 -15
  114. package/lib/youtube.ws.js +13 -19
  115. package/package.json +8 -13
  116. package/lib/blockquote.template.js +0 -11
  117. package/lib/button.template.js +0 -11
  118. package/lib/checkbox.template.js +0 -14
  119. package/lib/heading.template.js +0 -11
  120. package/lib/label.template.js +0 -10
  121. package/lib/link.template.js +0 -11
  122. package/lib/list-item.template.js +0 -11
  123. package/lib/list.template.js +0 -15
  124. package/lib/paragraph.template.js +0 -11
  125. package/lib/props.js +0 -92
  126. package/lib/radio-button.template.js +0 -14
  127. package/lib/select.template.js +0 -16
  128. package/lib/text.template.js +0 -11
  129. package/lib/types/blockquote.template.d.ts +0 -2
  130. package/lib/types/button.template.d.ts +0 -2
  131. package/lib/types/checkbox.template.d.ts +0 -2
  132. package/lib/types/heading.template.d.ts +0 -2
  133. package/lib/types/label.template.d.ts +0 -2
  134. package/lib/types/link.template.d.ts +0 -2
  135. package/lib/types/list-item.template.d.ts +0 -2
  136. package/lib/types/list.template.d.ts +0 -2
  137. package/lib/types/paragraph.template.d.ts +0 -2
  138. package/lib/types/props.d.ts +0 -45
  139. package/lib/types/radio-button.template.d.ts +0 -2
  140. package/lib/types/select.template.d.ts +0 -2
  141. package/lib/types/text.template.d.ts +0 -2
@@ -1,47 +1,43 @@
1
1
  export declare const VimeoPreviewImage: import("react").ForwardRefExoticComponent<Omit<{
2
+ slot?: string | undefined | undefined;
2
3
  style?: import("react").CSSProperties | undefined;
3
- id?: string | undefined | undefined;
4
- width?: number | string | undefined | undefined;
5
- height?: number | string | undefined | undefined;
6
- children?: import("react").ReactNode;
7
4
  title?: string | undefined | undefined;
8
- property?: string | undefined | undefined;
9
- content?: string | undefined | undefined;
10
- resource?: string | undefined | undefined;
11
- color?: string | undefined | undefined;
12
- translate?: "yes" | "no" | undefined | undefined;
13
- hidden?: boolean | undefined | undefined;
14
- src?: string | undefined | undefined;
15
- slot?: string | undefined | undefined;
16
- defaultValue?: string | number | readonly string[] | undefined;
17
5
  key?: import("react").Key | null | undefined;
18
6
  defaultChecked?: boolean | undefined | undefined;
7
+ defaultValue?: string | number | readonly string[] | undefined;
19
8
  suppressContentEditableWarning?: boolean | undefined | undefined;
20
9
  suppressHydrationWarning?: boolean | undefined | undefined;
21
10
  accessKey?: string | undefined | undefined;
22
11
  autoFocus?: boolean | undefined | undefined;
23
12
  className?: string | undefined | undefined;
24
- contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
13
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
25
14
  contextMenu?: string | undefined | undefined;
26
15
  dir?: string | undefined | undefined;
27
16
  draggable?: (boolean | "true" | "false") | undefined;
17
+ hidden?: boolean | undefined | undefined;
18
+ id?: string | undefined | undefined;
28
19
  lang?: string | undefined | undefined;
29
20
  nonce?: string | undefined | undefined;
30
21
  spellCheck?: (boolean | "true" | "false") | undefined;
31
22
  tabIndex?: number | undefined | undefined;
23
+ translate?: "yes" | "no" | undefined | undefined;
32
24
  radioGroup?: string | undefined | undefined;
33
25
  role?: import("react").AriaRole | undefined;
34
26
  about?: string | undefined | undefined;
27
+ content?: string | undefined | undefined;
35
28
  datatype?: string | undefined | undefined;
36
29
  inlist?: any;
37
30
  prefix?: string | undefined | undefined;
31
+ property?: string | undefined | undefined;
38
32
  rel?: string | undefined | undefined;
33
+ resource?: string | undefined | undefined;
39
34
  rev?: string | undefined | undefined;
40
35
  typeof?: string | undefined | undefined;
41
36
  vocab?: string | undefined | undefined;
42
37
  autoCapitalize?: string | undefined | undefined;
43
38
  autoCorrect?: string | undefined | undefined;
44
39
  autoSave?: string | undefined | undefined;
40
+ color?: string | undefined | undefined;
45
41
  itemProp?: string | undefined | undefined;
46
42
  itemScope?: boolean | undefined | undefined;
47
43
  itemType?: string | undefined | undefined;
@@ -105,6 +101,7 @@ export declare const VimeoPreviewImage: import("react").ForwardRefExoticComponen
105
101
  "aria-valuemin"?: number | undefined | undefined;
106
102
  "aria-valuenow"?: number | undefined | undefined;
107
103
  "aria-valuetext"?: string | undefined | undefined;
104
+ children?: import("react").ReactNode;
108
105
  dangerouslySetInnerHTML?: {
109
106
  __html: string | TrustedHTML;
110
107
  } | undefined | undefined;
@@ -268,17 +265,20 @@ export declare const VimeoPreviewImage: import("react").ForwardRefExoticComponen
268
265
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
269
266
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
270
267
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
271
- quality?: number | undefined;
272
- sizes?: string | undefined | undefined;
273
- optimize?: boolean | undefined;
268
+ height?: number | string | undefined | undefined;
269
+ width?: number | string | undefined | undefined;
270
+ crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
271
+ useMap?: string | undefined | undefined;
272
+ referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
273
+ alt?: string | undefined | undefined;
274
+ src?: string | undefined | undefined;
274
275
  loading?: "eager" | "lazy" | undefined | undefined;
275
276
  decoding?: "async" | "auto" | "sync" | undefined | undefined;
276
- alt?: string | undefined | undefined;
277
- crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
278
277
  fetchPriority?: "high" | "low" | "auto" | undefined;
279
- referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
278
+ sizes?: string | undefined | undefined;
280
279
  srcSet?: string | undefined | undefined;
281
- useMap?: string | undefined | undefined;
280
+ quality?: number | undefined;
281
+ optimize?: boolean | undefined;
282
282
  } & {
283
283
  $webstudio$canvasOnly$assetId?: string | undefined;
284
284
  } & import("react").RefAttributes<HTMLImageElement>, "ref"> & import("react").RefAttributes<HTMLImageElement>>;
@@ -1,3 +1,2 @@
1
- import type { WsComponentMeta, WsComponentPropsMeta } from "@webstudio-is/sdk";
1
+ import type { WsComponentMeta } from "@webstudio-is/sdk";
2
2
  export declare const meta: WsComponentMeta;
3
- export declare const propsMeta: WsComponentPropsMeta;
@@ -1,3 +1,2 @@
1
- import { type WsComponentMeta, type WsComponentPropsMeta } from "@webstudio-is/sdk";
1
+ import type { WsComponentMeta } from "@webstudio-is/sdk";
2
2
  export declare const meta: WsComponentMeta;
3
- export declare const propsMeta: WsComponentPropsMeta;
@@ -1,3 +1,2 @@
1
- import { type WsComponentMeta, type WsComponentPropsMeta } from "@webstudio-is/sdk";
1
+ import type { WsComponentMeta } from "@webstudio-is/sdk";
2
2
  export declare const meta: WsComponentMeta;
3
- export declare const propsMeta: WsComponentPropsMeta;
@@ -1,3 +1,2 @@
1
- import type { WsComponentMeta, WsComponentPropsMeta } from "@webstudio-is/sdk";
1
+ import type { WsComponentMeta } from "@webstudio-is/sdk";
2
2
  export declare const meta: WsComponentMeta;
3
- export declare const propsMeta: WsComponentPropsMeta;
@@ -1,3 +1,2 @@
1
- import type { WsComponentMeta, WsComponentPropsMeta } from "@webstudio-is/sdk";
1
+ import type { WsComponentMeta } from "@webstudio-is/sdk";
2
2
  export declare const meta: WsComponentMeta;
3
- export declare const propsMeta: WsComponentPropsMeta;
@@ -1,3 +1,2 @@
1
- import type { WsComponentMeta, WsComponentPropsMeta } from "@webstudio-is/sdk";
1
+ import type { WsComponentMeta } from "@webstudio-is/sdk";
2
2
  export declare const meta: WsComponentMeta;
3
- export declare const propsMeta: WsComponentPropsMeta;
@@ -1,3 +1,2 @@
1
- import { type WsComponentMeta, type WsComponentPropsMeta } from "@webstudio-is/sdk";
1
+ import type { WsComponentMeta } from "@webstudio-is/sdk";
2
2
  export declare const meta: WsComponentMeta;
3
- export declare const propsMeta: WsComponentPropsMeta;
package/lib/video.ws.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import { VideoIcon as e } from "@webstudio-is/icons/svg";
2
- import "@webstudio-is/sdk";
3
2
  import { props as o } from "./__generated__/video.props.js";
4
3
  const i = {
5
4
  icon: e,
@@ -14,22 +13,10 @@ const i = {
14
13
  value: { type: "unit", unit: "%", value: 100 }
15
14
  }
16
15
  ]
17
- }
18
- }, l = {
19
- props: {
20
- ...o,
21
- // Automatically generated props don't have the right control.
22
- src: {
23
- type: "string",
24
- control: "file",
25
- label: "Source",
26
- required: !1,
27
- accept: ".mp4,.webm,.mpg,.mpeg,.mov"
28
- }
29
16
  },
30
17
  initialProps: [
31
18
  "id",
32
- "className",
19
+ "class",
33
20
  "width",
34
21
  "height",
35
22
  "src",
@@ -39,9 +26,19 @@ const i = {
39
26
  "muted",
40
27
  "preload",
41
28
  "playsInline"
42
- ]
29
+ ],
30
+ props: {
31
+ ...o,
32
+ // Automatically generated props don't have the right control.
33
+ src: {
34
+ type: "string",
35
+ control: "file",
36
+ label: "Source",
37
+ required: !1,
38
+ accept: ".mp4,.webm,.mpg,.mpeg,.mov"
39
+ }
40
+ }
43
41
  };
44
42
  export {
45
- i as meta,
46
- l as propsMeta
43
+ i as meta
47
44
  };
@@ -1,24 +1,18 @@
1
- import { defaultStates as t } from "@webstudio-is/sdk";
2
- import { ButtonElementIcon as o } from "@webstudio-is/icons/svg";
3
- import { button as e } from "@webstudio-is/sdk/normalize.css";
4
- import { props as n } from "./__generated__/vimeo-play-button.props.js";
5
- const m = {
1
+ import { ButtonElementIcon as t } from "@webstudio-is/icons/svg";
2
+ import { button as o } from "@webstudio-is/sdk/normalize.css";
3
+ import { props as e } from "./__generated__/vimeo-play-button.props.js";
4
+ const c = {
6
5
  category: "hidden",
7
6
  label: "Play Button",
8
- icon: o,
9
- states: t,
7
+ icon: t,
10
8
  contentModel: {
11
9
  category: "none",
12
10
  children: ["instance"]
13
11
  },
14
- presetStyle: {
15
- button: e
16
- }
17
- }, p = {
18
- props: n,
19
- initialProps: ["id", "className"]
12
+ presetStyle: { button: o },
13
+ initialProps: ["id", "class"],
14
+ props: e
20
15
  };
21
16
  export {
22
- m as meta,
23
- p as propsMeta
17
+ c as meta
24
18
  };
@@ -1,14 +1,14 @@
1
- import { meta as e, propsMeta as o } from "./image.ws.js";
1
+ import { meta as e } from "./image.ws.js";
2
2
  import { props as r } from "./__generated__/vimeo-preview-image.props.js";
3
- const p = {
3
+ const i = {
4
4
  ...e,
5
5
  category: "hidden",
6
6
  label: "Preview Image",
7
7
  contentModel: {
8
8
  category: "none",
9
9
  children: []
10
- }
11
- }, i = {
10
+ },
11
+ initialProps: e.initialProps,
12
12
  props: {
13
13
  ...r,
14
14
  // Automatically generated props don't have the right control.
@@ -18,10 +18,8 @@ const p = {
18
18
  label: "Source",
19
19
  required: !1
20
20
  }
21
- },
22
- initialProps: o.initialProps
21
+ }
23
22
  };
24
23
  export {
25
- p as meta,
26
- i as propsMeta
24
+ i as meta
27
25
  };
@@ -1,24 +1,18 @@
1
- import { defaultStates as o } from "@webstudio-is/sdk";
2
- import { div as t } from "@webstudio-is/sdk/normalize.css";
1
+ import { div as o } from "@webstudio-is/sdk/normalize.css";
3
2
  import { BoxIcon as e } from "@webstudio-is/icons/svg";
4
- import { props as r } from "./__generated__/vimeo-spinner.props.js";
5
- const s = {
3
+ import { props as n } from "./__generated__/vimeo-spinner.props.js";
4
+ const c = {
6
5
  icon: e,
7
- states: o,
8
6
  category: "hidden",
9
7
  label: "Spinner",
10
8
  contentModel: {
11
9
  category: "none",
12
10
  children: ["instance"]
13
11
  },
14
- presetStyle: {
15
- div: t
16
- }
17
- }, c = {
18
- props: r,
19
- initialProps: ["id", "className"]
12
+ presetStyle: { div: o },
13
+ initialProps: ["id", "class"],
14
+ props: n
20
15
  };
21
16
  export {
22
- s as meta,
23
- c as propsMeta
17
+ c as meta
24
18
  };
@@ -1,23 +1,23 @@
1
- import { jsxs as i, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import { SpinnerIcon as r, PlayIcon as n } from "@webstudio-is/icons/svg";
3
- import { $ as e, css as o } from "@webstudio-is/template";
4
- const p = {
3
+ import { $ as t, css as i, ws as a } from "@webstudio-is/template";
4
+ const d = {
5
5
  category: "media",
6
6
  order: 1,
7
7
  description: "Add a video to your page that is hosted on Vimeo. Paste a Vimeo URL and configure the video in the Settings tab.",
8
- template: /* @__PURE__ */ i(
9
- e.Vimeo,
8
+ template: /* @__PURE__ */ o(
9
+ t.Vimeo,
10
10
  {
11
- "ws:style": o`
11
+ "ws:style": i`
12
12
  position: relative;
13
13
  aspect-ratio: 640/360;
14
14
  width: 100%;
15
15
  `,
16
16
  children: [
17
- /* @__PURE__ */ t(
18
- e.VimeoPreviewImage,
17
+ /* @__PURE__ */ e(
18
+ t.VimeoPreviewImage,
19
19
  {
20
- "ws:style": o`
20
+ "ws:style": i`
21
21
  position: absolute;
22
22
  object-fit: cover;
23
23
  object-position: center;
@@ -30,11 +30,11 @@ const p = {
30
30
  optimize: !0
31
31
  }
32
32
  ),
33
- /* @__PURE__ */ t(
34
- e.VimeoSpinner,
33
+ /* @__PURE__ */ e(
34
+ t.VimeoSpinner,
35
35
  {
36
36
  "ws:label": "Spinner",
37
- "ws:style": o`
37
+ "ws:style": i`
38
38
  position: absolute;
39
39
  top: 50%;
40
40
  left: 50%;
@@ -43,13 +43,13 @@ const p = {
43
43
  margin-top: -35px;
44
44
  margin-left: -35px;
45
45
  `,
46
- children: /* @__PURE__ */ t(e.HtmlEmbed, { "ws:label": "Spinner SVG", code: r })
46
+ children: /* @__PURE__ */ e(t.HtmlEmbed, { "ws:label": "Spinner SVG", code: r })
47
47
  }
48
48
  ),
49
- /* @__PURE__ */ t(
50
- e.VimeoPlayButton,
49
+ /* @__PURE__ */ e(
50
+ t.VimeoPlayButton,
51
51
  {
52
- "ws:style": o`
52
+ "ws:style": i`
53
53
  position: absolute;
54
54
  width: 140px;
55
55
  height: 80px;
@@ -70,16 +70,17 @@ const p = {
70
70
  }
71
71
  `,
72
72
  "aria-label": "Play button",
73
- children: /* @__PURE__ */ t(
74
- e.Box,
73
+ children: /* @__PURE__ */ e(
74
+ a.element,
75
75
  {
76
+ "ws:tag": "div",
76
77
  "ws:label": "Play Icon",
77
- "ws:style": o`
78
+ "ws:style": i`
78
79
  width: 60px;
79
80
  height: 60px;
80
81
  `,
81
82
  "aria-hidden": !0,
82
- children: /* @__PURE__ */ t(e.HtmlEmbed, { "ws:label": "Play SVG", code: n })
83
+ children: /* @__PURE__ */ e(t.HtmlEmbed, { "ws:label": "Play SVG", code: n })
83
84
  }
84
85
  )
85
86
  }
@@ -89,5 +90,5 @@ const p = {
89
90
  )
90
91
  };
91
92
  export {
92
- p as meta
93
+ d as meta
93
94
  };
package/lib/vimeo.ws.js CHANGED
@@ -1,19 +1,7 @@
1
1
  import { VimeoIcon as o } from "@webstudio-is/icons/svg";
2
- import { defaultStates as t } from "@webstudio-is/sdk";
3
2
  import { div as e } from "@webstudio-is/sdk/normalize.css";
4
- import { props as i } from "./__generated__/vimeo.props.js";
5
- const m = {
6
- icon: o,
7
- states: t,
8
- contentModel: {
9
- category: "instance",
10
- children: ["instance"],
11
- descendants: ["VimeoSpinner", "VimeoPlayButton", "VimeoPreviewImage"]
12
- },
13
- presetStyle: {
14
- div: e
15
- }
16
- }, r = [
3
+ import { props as t } from "./__generated__/vimeo.props.js";
4
+ const i = [
17
5
  "id",
18
6
  "className",
19
7
  "url",
@@ -31,11 +19,17 @@ const m = {
31
19
  "showControls",
32
20
  "controlsColor",
33
21
  "playsinline"
34
- ], p = {
35
- props: i,
36
- initialProps: r
22
+ ], s = {
23
+ icon: o,
24
+ contentModel: {
25
+ category: "instance",
26
+ children: ["instance"],
27
+ descendants: ["VimeoSpinner", "VimeoPlayButton", "VimeoPreviewImage"]
28
+ },
29
+ presetStyle: { div: e },
30
+ initialProps: i,
31
+ props: t
37
32
  };
38
33
  export {
39
- m as meta,
40
- p as propsMeta
34
+ s as meta
41
35
  };
@@ -1,43 +1,82 @@
1
- import { jsxs as r, jsx as t } from "react/jsx-runtime";
2
- import { $ as e, ActionValue as s, PlaceholderValue as o, Variable as i, expression as a } from "@webstudio-is/template";
3
- const n = new i("formState", "initial"), w = {
1
+ import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
+ import { $ as r, ActionValue as i, ws as e, PlaceholderValue as a, css as n, Variable as w, expression as l } from "@webstudio-is/template";
3
+ const s = new w("formState", "initial"), d = {
4
4
  category: "data",
5
5
  order: 1,
6
6
  description: "Collect user data and send it to any webhook.",
7
- template: /* @__PURE__ */ r(
8
- e.Form,
7
+ template: /* @__PURE__ */ o(
8
+ r.Form,
9
9
  {
10
- state: a`${n}`,
11
- onStateChange: new s(["state"], a`${n} = state`),
10
+ state: l`${s}`,
11
+ onStateChange: new i(["state"], l`${s} = state`),
12
12
  children: [
13
- /* @__PURE__ */ r(
14
- e.Box,
13
+ /* @__PURE__ */ o(
14
+ e.element,
15
15
  {
16
+ "ws:tag": "div",
16
17
  "ws:label": "Form Content",
17
- "ws:show": a`${n} === 'initial' || ${n} === 'error'`,
18
+ "ws:show": l`${s} === 'initial' || ${s} === 'error'`,
18
19
  children: [
19
- /* @__PURE__ */ t(e.Label, { children: new o("Name") }),
20
- /* @__PURE__ */ t(e.Input, { name: "name" }),
21
- /* @__PURE__ */ t(e.Label, { children: new o("Email") }),
22
- /* @__PURE__ */ t(e.Input, { name: "email" }),
23
- /* @__PURE__ */ t(e.Button, { children: new o("Submit") })
20
+ /* @__PURE__ */ t(
21
+ e.element,
22
+ {
23
+ "ws:tag": "label",
24
+ "ws:style": n`
25
+ display: block;
26
+ `,
27
+ children: new a("Name")
28
+ }
29
+ ),
30
+ /* @__PURE__ */ t(
31
+ e.element,
32
+ {
33
+ "ws:tag": "input",
34
+ "ws:style": n`
35
+ display: block;
36
+ `,
37
+ name: "name"
38
+ }
39
+ ),
40
+ /* @__PURE__ */ t(
41
+ e.element,
42
+ {
43
+ "ws:tag": "label",
44
+ "ws:style": n`
45
+ display: block;
46
+ `,
47
+ children: new a("Email")
48
+ }
49
+ ),
50
+ /* @__PURE__ */ t(
51
+ e.element,
52
+ {
53
+ "ws:tag": "input",
54
+ "ws:style": n`
55
+ display: block;
56
+ `,
57
+ name: "email"
58
+ }
59
+ ),
60
+ /* @__PURE__ */ t(e.element, { "ws:tag": "button", children: new a("Submit") })
24
61
  ]
25
62
  }
26
63
  ),
27
64
  /* @__PURE__ */ t(
28
- e.Box,
65
+ e.element,
29
66
  {
67
+ "ws:tag": "div",
30
68
  "ws:label": "Success Message",
31
- "ws:show": a`${n} === 'success'`,
32
- children: new o("Thank you for getting in touch!")
69
+ "ws:show": l`${s} === 'success'`,
70
+ children: new a("Thank you for getting in touch!")
33
71
  }
34
72
  ),
35
73
  /* @__PURE__ */ t(
36
- e.Box,
74
+ e.element,
37
75
  {
76
+ "ws:tag": "div",
38
77
  "ws:label": "Error Message",
39
- "ws:show": a`${n} === 'error'`,
40
- children: new o("Sorry, something went wrong.")
78
+ "ws:show": l`${s} === 'error'`,
79
+ children: new a("Sorry, something went wrong.")
41
80
  }
42
81
  )
43
82
  ]
@@ -45,5 +84,5 @@ const n = new i("formState", "initial"), w = {
45
84
  )
46
85
  };
47
86
  export {
48
- w as meta
87
+ d as meta
49
88
  };
@@ -10,8 +10,8 @@ const c = {
10
10
  states: [
11
11
  { selector: "[data-state=error]", label: "Error" },
12
12
  { selector: "[data-state=success]", label: "Success" }
13
- ]
14
- }, i = {
13
+ ],
14
+ initialProps: ["id", "class", "state", "action"],
15
15
  props: {
16
16
  ...r,
17
17
  action: {
@@ -20,10 +20,8 @@ const c = {
20
20
  description: "The URI of a program that processes the information submitted via the form.",
21
21
  required: !1
22
22
  }
23
- },
24
- initialProps: ["id", "className", "state", "action"]
23
+ }
25
24
  };
26
25
  export {
27
- c as meta,
28
- i as propsMeta
26
+ c as meta
29
27
  };
@@ -1,15 +1,13 @@
1
1
  import { XmlIcon as o } from "@webstudio-is/icons/svg";
2
2
  import { props as r } from "./__generated__/xml-node.props.js";
3
- const i = {
3
+ const m = {
4
4
  category: "xml",
5
5
  order: 6,
6
6
  icon: o,
7
- description: "XML Node"
8
- }, e = {
9
- props: r,
10
- initialProps: ["tag"]
7
+ description: "XML Node",
8
+ initialProps: ["tag"],
9
+ props: r
11
10
  };
12
11
  export {
13
- i as meta,
14
- e as propsMeta
12
+ m as meta
15
13
  };
@@ -1,15 +1,13 @@
1
1
  import { CalendarIcon as t } from "@webstudio-is/icons/svg";
2
- import { props as o } from "./__generated__/xml-time.props.js";
2
+ import { props as e } from "./__generated__/xml-time.props.js";
3
3
  const a = {
4
4
  category: "xml",
5
5
  description: "Converts machine-readable date and time to ISO format.",
6
6
  icon: t,
7
- order: 7
8
- }, i = {
9
- props: o,
10
- initialProps: ["datetime", "dateStyle"]
7
+ order: 7,
8
+ initialProps: ["datetime", "dateStyle"],
9
+ props: e
11
10
  };
12
11
  export {
13
- a as meta,
14
- i as propsMeta
12
+ a as meta
15
13
  };