@webstudio-is/sdk-components-react-remix 0.145.0 → 0.151.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/props.js CHANGED
@@ -31,50 +31,50 @@ var props = {
31
31
  options: ["list", "none", "inline", "both"]
32
32
  },
33
33
  "aria-braillelabel": {
34
- description: "Defines a string value that labels the current element, which is intended to be converted into Braille.\n@see aria-label.",
34
+ description: "Defines a string value that labels the current element, which is intended to be converted into Braille.",
35
35
  required: false,
36
36
  control: "text",
37
37
  type: "string"
38
38
  },
39
39
  "aria-brailleroledescription": {
40
- description: "Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.\n@see aria-roledescription.",
40
+ description: "Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.",
41
41
  required: false,
42
42
  control: "text",
43
43
  type: "string"
44
44
  },
45
45
  "aria-busy": { required: false, control: "boolean", type: "boolean" },
46
46
  "aria-checked": {
47
- description: 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
47
+ description: 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.',
48
48
  required: false,
49
49
  control: "text",
50
50
  type: "string"
51
51
  },
52
52
  "aria-colcount": {
53
- description: "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
53
+ description: "Defines the total number of columns in a table, grid, or treegrid.",
54
54
  required: false,
55
55
  control: "number",
56
56
  type: "number"
57
57
  },
58
58
  "aria-colindex": {
59
- description: "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
59
+ description: "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.",
60
60
  required: false,
61
61
  control: "number",
62
62
  type: "number"
63
63
  },
64
64
  "aria-colindextext": {
65
- description: "Defines a human readable text alternative of aria-colindex.\n@see aria-rowindextext.",
65
+ description: "Defines a human readable text alternative of aria-colindex.",
66
66
  required: false,
67
67
  control: "text",
68
68
  type: "string"
69
69
  },
70
70
  "aria-colspan": {
71
- description: "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
71
+ description: "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.",
72
72
  required: false,
73
73
  control: "number",
74
74
  type: "number"
75
75
  },
76
76
  "aria-controls": {
77
- description: "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
77
+ description: "Identifies the element (or elements) whose contents or presence are controlled by the current element.",
78
78
  required: false,
79
79
  control: "text",
80
80
  type: "string"
@@ -86,38 +86,38 @@ var props = {
86
86
  type: "string"
87
87
  },
88
88
  "aria-describedby": {
89
- description: "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
89
+ description: "Identifies the element (or elements) that describes the object.",
90
90
  required: false,
91
91
  control: "text",
92
92
  type: "string"
93
93
  },
94
94
  "aria-description": {
95
- description: "Defines a string value that describes or annotates the current element.\n@see related aria-describedby.",
95
+ description: "Defines a string value that describes or annotates the current element.",
96
96
  required: false,
97
97
  control: "text",
98
98
  type: "string"
99
99
  },
100
100
  "aria-details": {
101
- description: "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
101
+ description: "Identifies the element that provides a detailed, extended description for the object.",
102
102
  required: false,
103
103
  control: "text",
104
104
  type: "string"
105
105
  },
106
106
  "aria-disabled": {
107
- description: "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
107
+ description: "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.",
108
108
  required: false,
109
109
  control: "boolean",
110
110
  type: "boolean"
111
111
  },
112
112
  "aria-dropeffect": {
113
- description: "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
113
+ description: "Indicates what functions can be performed when a dragged object is released on the drop target.",
114
114
  required: false,
115
115
  control: "select",
116
116
  type: "string",
117
117
  options: ["link", "none", "copy", "execute", "move", "popup"]
118
118
  },
119
119
  "aria-errormessage": {
120
- description: "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
120
+ description: "Identifies the element that provides an error message for the object.",
121
121
  required: false,
122
122
  control: "text",
123
123
  type: "string"
@@ -135,8 +135,7 @@ var props = {
135
135
  type: "string"
136
136
  },
137
137
  "aria-grabbed": {
138
- description: `Indicates an element's "grabbed" state in a drag-and-drop operation.
139
- @deprecated in ARIA 1.1`,
138
+ description: `Indicates an element's "grabbed" state in a drag-and-drop operation.`,
140
139
  required: false,
141
140
  control: "boolean",
142
141
  type: "boolean"
@@ -148,13 +147,13 @@ var props = {
148
147
  type: "string"
149
148
  },
150
149
  "aria-hidden": {
151
- description: "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
150
+ description: "Indicates whether the element is exposed to an accessibility API.",
152
151
  required: false,
153
152
  control: "boolean",
154
153
  type: "boolean"
155
154
  },
156
155
  "aria-invalid": {
157
- description: "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
156
+ description: "Indicates the entered value does not conform to the format expected by the application.",
158
157
  required: false,
159
158
  control: "text",
160
159
  type: "string"
@@ -172,7 +171,7 @@ var props = {
172
171
  type: "string"
173
172
  },
174
173
  "aria-labelledby": {
175
- description: "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
174
+ description: "Identifies the element (or elements) that labels the current element.",
176
175
  required: false,
177
176
  control: "text",
178
177
  type: "string"
@@ -216,7 +215,7 @@ var props = {
216
215
  options: ["horizontal", "vertical"]
217
216
  },
218
217
  "aria-owns": {
219
- description: "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
218
+ description: "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.",
220
219
  required: false,
221
220
  control: "text",
222
221
  type: "string"
@@ -228,25 +227,25 @@ var props = {
228
227
  type: "string"
229
228
  },
230
229
  "aria-posinset": {
231
- description: "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
230
+ description: "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.",
232
231
  required: false,
233
232
  control: "number",
234
233
  type: "number"
235
234
  },
236
235
  "aria-pressed": {
237
- description: 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
236
+ description: 'Indicates the current "pressed" state of toggle buttons.',
238
237
  required: false,
239
238
  control: "text",
240
239
  type: "string"
241
240
  },
242
241
  "aria-readonly": {
243
- description: "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
242
+ description: "Indicates that the element is not editable, but is otherwise operable.",
244
243
  required: false,
245
244
  control: "boolean",
246
245
  type: "boolean"
247
246
  },
248
247
  "aria-relevant": {
249
- description: "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
248
+ description: "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.",
250
249
  required: false,
251
250
  control: "select",
252
251
  type: "string",
@@ -276,37 +275,37 @@ var props = {
276
275
  type: "string"
277
276
  },
278
277
  "aria-rowcount": {
279
- description: "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
278
+ description: "Defines the total number of rows in a table, grid, or treegrid.",
280
279
  required: false,
281
280
  control: "number",
282
281
  type: "number"
283
282
  },
284
283
  "aria-rowindex": {
285
- description: "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
284
+ description: "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.",
286
285
  required: false,
287
286
  control: "number",
288
287
  type: "number"
289
288
  },
290
289
  "aria-rowindextext": {
291
- description: "Defines a human readable text alternative of aria-rowindex.\n@see aria-colindextext.",
290
+ description: "Defines a human readable text alternative of aria-rowindex.",
292
291
  required: false,
293
292
  control: "text",
294
293
  type: "string"
295
294
  },
296
295
  "aria-rowspan": {
297
- description: "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
296
+ description: "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.",
298
297
  required: false,
299
298
  control: "number",
300
299
  type: "number"
301
300
  },
302
301
  "aria-selected": {
303
- description: 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
302
+ description: 'Indicates the current "selected" state of various widgets.',
304
303
  required: false,
305
304
  control: "boolean",
306
305
  type: "boolean"
307
306
  },
308
307
  "aria-setsize": {
309
- description: "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
308
+ description: "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.",
310
309
  required: false,
311
310
  control: "number",
312
311
  type: "number"
@@ -331,7 +330,7 @@ var props = {
331
330
  type: "number"
332
331
  },
333
332
  "aria-valuenow": {
334
- description: "Defines the current value for a range widget.\n@see aria-valuetext.",
333
+ description: "Defines the current value for a range widget.",
335
334
  required: false,
336
335
  control: "number",
337
336
  type: "number"
@@ -414,7 +413,7 @@ var props = {
414
413
  description: "Often used with CSS to style a specific element. The value of this attribute must be unique."
415
414
  },
416
415
  inputMode: {
417
- description: "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
416
+ description: "Hints at the type of data that might be entered by the user while editing the element or its contents",
418
417
  required: false,
419
418
  control: "select",
420
419
  type: "string",
@@ -430,7 +429,7 @@ var props = {
430
429
  ]
431
430
  },
432
431
  is: {
433
- description: "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
432
+ description: "Specify that a standard HTML element should behave like a defined custom built-in element",
434
433
  required: false,
435
434
  control: "text",
436
435
  type: "string"
@@ -459,12 +458,6 @@ var props = {
459
458
  type: "string",
460
459
  description: "The ping attribute specifies a space-separated list of URLs to be notified if a user follows the hyperlink."
461
460
  },
462
- placeholder: {
463
- required: false,
464
- control: "text",
465
- type: "string",
466
- description: "Provides a hint to the user of what can be entered in the field."
467
- },
468
461
  prefetch: {
469
462
  required: false,
470
463
  control: "select",
@@ -593,13 +586,13 @@ var propsMeta = {
593
586
  import { RichTextLink } from "@webstudio-is/sdk-components-react/metas";
594
587
  var propsMeta2 = propsMeta;
595
588
 
596
- // src/server-form.ws.ts
589
+ // src/webhook-form.ws.ts
597
590
  import { Form as baseMeta } from "@webstudio-is/sdk-components-react/metas";
598
591
  import {
599
592
  showAttribute
600
593
  } from "@webstudio-is/react-sdk";
601
594
 
602
- // src/__generated__/server-form.props.ts
595
+ // src/__generated__/webhook-form.props.ts
603
596
  var props2 = {
604
597
  about: { required: false, control: "text", type: "string" },
605
598
  acceptCharset: {
@@ -640,50 +633,50 @@ var props2 = {
640
633
  options: ["list", "none", "inline", "both"]
641
634
  },
642
635
  "aria-braillelabel": {
643
- description: "Defines a string value that labels the current element, which is intended to be converted into Braille.\n@see aria-label.",
636
+ description: "Defines a string value that labels the current element, which is intended to be converted into Braille.",
644
637
  required: false,
645
638
  control: "text",
646
639
  type: "string"
647
640
  },
648
641
  "aria-brailleroledescription": {
649
- description: "Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.\n@see aria-roledescription.",
642
+ description: "Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.",
650
643
  required: false,
651
644
  control: "text",
652
645
  type: "string"
653
646
  },
654
647
  "aria-busy": { required: false, control: "boolean", type: "boolean" },
655
648
  "aria-checked": {
656
- description: 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
649
+ description: 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.',
657
650
  required: false,
658
651
  control: "text",
659
652
  type: "string"
660
653
  },
661
654
  "aria-colcount": {
662
- description: "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
655
+ description: "Defines the total number of columns in a table, grid, or treegrid.",
663
656
  required: false,
664
657
  control: "number",
665
658
  type: "number"
666
659
  },
667
660
  "aria-colindex": {
668
- description: "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
661
+ description: "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.",
669
662
  required: false,
670
663
  control: "number",
671
664
  type: "number"
672
665
  },
673
666
  "aria-colindextext": {
674
- description: "Defines a human readable text alternative of aria-colindex.\n@see aria-rowindextext.",
667
+ description: "Defines a human readable text alternative of aria-colindex.",
675
668
  required: false,
676
669
  control: "text",
677
670
  type: "string"
678
671
  },
679
672
  "aria-colspan": {
680
- description: "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
673
+ description: "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.",
681
674
  required: false,
682
675
  control: "number",
683
676
  type: "number"
684
677
  },
685
678
  "aria-controls": {
686
- description: "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
679
+ description: "Identifies the element (or elements) whose contents or presence are controlled by the current element.",
687
680
  required: false,
688
681
  control: "text",
689
682
  type: "string"
@@ -695,38 +688,38 @@ var props2 = {
695
688
  type: "string"
696
689
  },
697
690
  "aria-describedby": {
698
- description: "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
691
+ description: "Identifies the element (or elements) that describes the object.",
699
692
  required: false,
700
693
  control: "text",
701
694
  type: "string"
702
695
  },
703
696
  "aria-description": {
704
- description: "Defines a string value that describes or annotates the current element.\n@see related aria-describedby.",
697
+ description: "Defines a string value that describes or annotates the current element.",
705
698
  required: false,
706
699
  control: "text",
707
700
  type: "string"
708
701
  },
709
702
  "aria-details": {
710
- description: "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
703
+ description: "Identifies the element that provides a detailed, extended description for the object.",
711
704
  required: false,
712
705
  control: "text",
713
706
  type: "string"
714
707
  },
715
708
  "aria-disabled": {
716
- description: "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
709
+ description: "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.",
717
710
  required: false,
718
711
  control: "boolean",
719
712
  type: "boolean"
720
713
  },
721
714
  "aria-dropeffect": {
722
- description: "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
715
+ description: "Indicates what functions can be performed when a dragged object is released on the drop target.",
723
716
  required: false,
724
717
  control: "select",
725
718
  type: "string",
726
719
  options: ["link", "none", "copy", "execute", "move", "popup"]
727
720
  },
728
721
  "aria-errormessage": {
729
- description: "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
722
+ description: "Identifies the element that provides an error message for the object.",
730
723
  required: false,
731
724
  control: "text",
732
725
  type: "string"
@@ -744,8 +737,7 @@ var props2 = {
744
737
  type: "string"
745
738
  },
746
739
  "aria-grabbed": {
747
- description: `Indicates an element's "grabbed" state in a drag-and-drop operation.
748
- @deprecated in ARIA 1.1`,
740
+ description: `Indicates an element's "grabbed" state in a drag-and-drop operation.`,
749
741
  required: false,
750
742
  control: "boolean",
751
743
  type: "boolean"
@@ -757,13 +749,13 @@ var props2 = {
757
749
  type: "string"
758
750
  },
759
751
  "aria-hidden": {
760
- description: "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
752
+ description: "Indicates whether the element is exposed to an accessibility API.",
761
753
  required: false,
762
754
  control: "boolean",
763
755
  type: "boolean"
764
756
  },
765
757
  "aria-invalid": {
766
- description: "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
758
+ description: "Indicates the entered value does not conform to the format expected by the application.",
767
759
  required: false,
768
760
  control: "text",
769
761
  type: "string"
@@ -781,7 +773,7 @@ var props2 = {
781
773
  type: "string"
782
774
  },
783
775
  "aria-labelledby": {
784
- description: "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
776
+ description: "Identifies the element (or elements) that labels the current element.",
785
777
  required: false,
786
778
  control: "text",
787
779
  type: "string"
@@ -825,7 +817,7 @@ var props2 = {
825
817
  options: ["horizontal", "vertical"]
826
818
  },
827
819
  "aria-owns": {
828
- description: "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
820
+ description: "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.",
829
821
  required: false,
830
822
  control: "text",
831
823
  type: "string"
@@ -837,25 +829,25 @@ var props2 = {
837
829
  type: "string"
838
830
  },
839
831
  "aria-posinset": {
840
- description: "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
832
+ description: "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.",
841
833
  required: false,
842
834
  control: "number",
843
835
  type: "number"
844
836
  },
845
837
  "aria-pressed": {
846
- description: 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
838
+ description: 'Indicates the current "pressed" state of toggle buttons.',
847
839
  required: false,
848
840
  control: "text",
849
841
  type: "string"
850
842
  },
851
843
  "aria-readonly": {
852
- description: "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
844
+ description: "Indicates that the element is not editable, but is otherwise operable.",
853
845
  required: false,
854
846
  control: "boolean",
855
847
  type: "boolean"
856
848
  },
857
849
  "aria-relevant": {
858
- description: "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
850
+ description: "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.",
859
851
  required: false,
860
852
  control: "select",
861
853
  type: "string",
@@ -885,37 +877,37 @@ var props2 = {
885
877
  type: "string"
886
878
  },
887
879
  "aria-rowcount": {
888
- description: "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
880
+ description: "Defines the total number of rows in a table, grid, or treegrid.",
889
881
  required: false,
890
882
  control: "number",
891
883
  type: "number"
892
884
  },
893
885
  "aria-rowindex": {
894
- description: "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
886
+ description: "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.",
895
887
  required: false,
896
888
  control: "number",
897
889
  type: "number"
898
890
  },
899
891
  "aria-rowindextext": {
900
- description: "Defines a human readable text alternative of aria-rowindex.\n@see aria-colindextext.",
892
+ description: "Defines a human readable text alternative of aria-rowindex.",
901
893
  required: false,
902
894
  control: "text",
903
895
  type: "string"
904
896
  },
905
897
  "aria-rowspan": {
906
- description: "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
898
+ description: "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.",
907
899
  required: false,
908
900
  control: "number",
909
901
  type: "number"
910
902
  },
911
903
  "aria-selected": {
912
- description: 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
904
+ description: 'Indicates the current "selected" state of various widgets.',
913
905
  required: false,
914
906
  control: "boolean",
915
907
  type: "boolean"
916
908
  },
917
909
  "aria-setsize": {
918
- description: "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
910
+ description: "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.",
919
911
  required: false,
920
912
  control: "number",
921
913
  type: "number"
@@ -940,7 +932,7 @@ var props2 = {
940
932
  type: "number"
941
933
  },
942
934
  "aria-valuenow": {
943
- description: "Defines the current value for a range widget.\n@see aria-valuetext.",
935
+ description: "Defines the current value for a range widget.",
944
936
  required: false,
945
937
  control: "number",
946
938
  type: "number"
@@ -1028,7 +1020,7 @@ var props2 = {
1028
1020
  description: "Often used with CSS to style a specific element. The value of this attribute must be unique."
1029
1021
  },
1030
1022
  inputMode: {
1031
- description: "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
1023
+ description: "Hints at the type of data that might be entered by the user while editing the element or its contents",
1032
1024
  required: false,
1033
1025
  control: "select",
1034
1026
  type: "string",
@@ -1044,7 +1036,7 @@ var props2 = {
1044
1036
  ]
1045
1037
  },
1046
1038
  is: {
1047
- description: "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
1039
+ description: "Specify that a standard HTML element should behave like a defined custom built-in element",
1048
1040
  required: false,
1049
1041
  control: "text",
1050
1042
  type: "string"
@@ -1079,12 +1071,6 @@ var props2 = {
1079
1071
  type: "boolean",
1080
1072
  description: "This attribute indicates that the form shouldn't be validated when submitted."
1081
1073
  },
1082
- placeholder: {
1083
- required: false,
1084
- control: "text",
1085
- type: "string",
1086
- description: "Provides a hint to the user of what can be entered in the field."
1087
- },
1088
1074
  prefix: { required: false, control: "text", type: "string" },
1089
1075
  property: { required: false, control: "text", type: "string" },
1090
1076
  radioGroup: { required: false, control: "text", type: "string" },
@@ -1169,10 +1155,15 @@ var props2 = {
1169
1155
  vocab: { required: false, control: "text", type: "string" }
1170
1156
  };
1171
1157
 
1172
- // src/server-form.ws.ts
1158
+ // src/webhook-form.ws.ts
1159
+ import { WebhookFormIcon } from "@webstudio-is/icons/svg";
1173
1160
  var meta = {
1174
1161
  ...baseMeta,
1175
- label: "Form",
1162
+ category: "data",
1163
+ label: "Webhook Form",
1164
+ description: "Collect user data and send it to any webhook.",
1165
+ order: 1,
1166
+ icon: WebhookFormIcon,
1176
1167
  states: [
1177
1168
  { selector: "[data-state=error]", label: "Error" },
1178
1169
  { selector: "[data-state=success]", label: "Success" }
@@ -1278,584 +1269,12 @@ var propsMeta3 = {
1278
1269
  };
1279
1270
 
1280
1271
  // src/remix-form.ws.ts
1281
- import {
1282
- defaultStates
1283
- } from "@webstudio-is/react-sdk";
1284
- import { form } from "@webstudio-is/react-sdk/css-normalize";
1285
- import { FormIcon } from "@webstudio-is/icons/svg";
1286
-
1287
- // src/__generated__/remix-form.props.ts
1288
- var props3 = {
1289
- about: { required: false, control: "text", type: "string" },
1290
- acceptCharset: {
1291
- required: false,
1292
- control: "text",
1293
- type: "string",
1294
- description: "List of supported charsets."
1295
- },
1296
- accessKey: {
1297
- required: false,
1298
- control: "text",
1299
- type: "string",
1300
- description: "Keyboard shortcut to activate or add focus to the element."
1301
- },
1302
- action: {
1303
- required: false,
1304
- control: "text",
1305
- type: "string",
1306
- description: "The URI of a program that processes the information submitted via the form."
1307
- },
1308
- "aria-activedescendant": {
1309
- description: "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
1310
- required: false,
1311
- control: "text",
1312
- type: "string"
1313
- },
1314
- "aria-atomic": {
1315
- description: "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
1316
- required: false,
1317
- control: "boolean",
1318
- type: "boolean"
1319
- },
1320
- "aria-autocomplete": {
1321
- description: "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
1322
- required: false,
1323
- control: "select",
1324
- type: "string",
1325
- options: ["list", "none", "inline", "both"]
1326
- },
1327
- "aria-braillelabel": {
1328
- description: "Defines a string value that labels the current element, which is intended to be converted into Braille.\n@see aria-label.",
1329
- required: false,
1330
- control: "text",
1331
- type: "string"
1332
- },
1333
- "aria-brailleroledescription": {
1334
- description: "Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.\n@see aria-roledescription.",
1335
- required: false,
1336
- control: "text",
1337
- type: "string"
1338
- },
1339
- "aria-busy": { required: false, control: "boolean", type: "boolean" },
1340
- "aria-checked": {
1341
- description: 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
1342
- required: false,
1343
- control: "text",
1344
- type: "string"
1345
- },
1346
- "aria-colcount": {
1347
- description: "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
1348
- required: false,
1349
- control: "number",
1350
- type: "number"
1351
- },
1352
- "aria-colindex": {
1353
- description: "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
1354
- required: false,
1355
- control: "number",
1356
- type: "number"
1357
- },
1358
- "aria-colindextext": {
1359
- description: "Defines a human readable text alternative of aria-colindex.\n@see aria-rowindextext.",
1360
- required: false,
1361
- control: "text",
1362
- type: "string"
1363
- },
1364
- "aria-colspan": {
1365
- description: "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
1366
- required: false,
1367
- control: "number",
1368
- type: "number"
1369
- },
1370
- "aria-controls": {
1371
- description: "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
1372
- required: false,
1373
- control: "text",
1374
- type: "string"
1375
- },
1376
- "aria-current": {
1377
- description: "Indicates the element that represents the current item within a container or set of related elements.",
1378
- required: false,
1379
- control: "text",
1380
- type: "string"
1381
- },
1382
- "aria-describedby": {
1383
- description: "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
1384
- required: false,
1385
- control: "text",
1386
- type: "string"
1387
- },
1388
- "aria-description": {
1389
- description: "Defines a string value that describes or annotates the current element.\n@see related aria-describedby.",
1390
- required: false,
1391
- control: "text",
1392
- type: "string"
1393
- },
1394
- "aria-details": {
1395
- description: "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
1396
- required: false,
1397
- control: "text",
1398
- type: "string"
1399
- },
1400
- "aria-disabled": {
1401
- description: "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
1402
- required: false,
1403
- control: "boolean",
1404
- type: "boolean"
1405
- },
1406
- "aria-dropeffect": {
1407
- description: "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
1408
- required: false,
1409
- control: "select",
1410
- type: "string",
1411
- options: ["link", "none", "copy", "execute", "move", "popup"]
1412
- },
1413
- "aria-errormessage": {
1414
- description: "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
1415
- required: false,
1416
- control: "text",
1417
- type: "string"
1418
- },
1419
- "aria-expanded": {
1420
- description: "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
1421
- required: false,
1422
- control: "boolean",
1423
- type: "boolean"
1424
- },
1425
- "aria-flowto": {
1426
- description: "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
1427
- required: false,
1428
- control: "text",
1429
- type: "string"
1430
- },
1431
- "aria-grabbed": {
1432
- description: `Indicates an element's "grabbed" state in a drag-and-drop operation.
1433
- @deprecated in ARIA 1.1`,
1434
- required: false,
1435
- control: "boolean",
1436
- type: "boolean"
1437
- },
1438
- "aria-haspopup": {
1439
- description: "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
1440
- required: false,
1441
- control: "text",
1442
- type: "string"
1443
- },
1444
- "aria-hidden": {
1445
- description: "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
1446
- required: false,
1447
- control: "boolean",
1448
- type: "boolean"
1449
- },
1450
- "aria-invalid": {
1451
- description: "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
1452
- required: false,
1453
- control: "text",
1454
- type: "string"
1455
- },
1456
- "aria-keyshortcuts": {
1457
- description: "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
1458
- required: false,
1459
- control: "text",
1460
- type: "string"
1461
- },
1462
- "aria-label": {
1463
- description: "Provides the accessible name that describes an interactive element if no other accessible name exists, for example in a button that contains an image with no text.",
1464
- required: false,
1465
- control: "text",
1466
- type: "string"
1467
- },
1468
- "aria-labelledby": {
1469
- description: "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
1470
- required: false,
1471
- control: "text",
1472
- type: "string"
1473
- },
1474
- "aria-level": {
1475
- description: "Defines the hierarchical level of an element within a structure.",
1476
- required: false,
1477
- control: "number",
1478
- type: "number"
1479
- },
1480
- "aria-live": {
1481
- description: "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
1482
- required: false,
1483
- control: "radio",
1484
- type: "string",
1485
- options: ["off", "assertive", "polite"]
1486
- },
1487
- "aria-modal": {
1488
- description: "Indicates whether an element is modal when displayed.",
1489
- required: false,
1490
- control: "boolean",
1491
- type: "boolean"
1492
- },
1493
- "aria-multiline": {
1494
- description: "Indicates whether a text box accepts multiple lines of input or only a single line.",
1495
- required: false,
1496
- control: "boolean",
1497
- type: "boolean"
1498
- },
1499
- "aria-multiselectable": {
1500
- description: "Indicates that the user may select more than one item from the current selectable descendants.",
1501
- required: false,
1502
- control: "boolean",
1503
- type: "boolean"
1504
- },
1505
- "aria-orientation": {
1506
- description: "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
1507
- required: false,
1508
- control: "radio",
1509
- type: "string",
1510
- options: ["horizontal", "vertical"]
1511
- },
1512
- "aria-owns": {
1513
- description: "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
1514
- required: false,
1515
- control: "text",
1516
- type: "string"
1517
- },
1518
- "aria-placeholder": {
1519
- description: "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
1520
- required: false,
1521
- control: "text",
1522
- type: "string"
1523
- },
1524
- "aria-posinset": {
1525
- description: "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
1526
- required: false,
1527
- control: "number",
1528
- type: "number"
1529
- },
1530
- "aria-pressed": {
1531
- description: 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
1532
- required: false,
1533
- control: "text",
1534
- type: "string"
1535
- },
1536
- "aria-readonly": {
1537
- description: "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
1538
- required: false,
1539
- control: "boolean",
1540
- type: "boolean"
1541
- },
1542
- "aria-relevant": {
1543
- description: "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
1544
- required: false,
1545
- control: "select",
1546
- type: "string",
1547
- options: [
1548
- "text",
1549
- "additions",
1550
- "additions removals",
1551
- "additions text",
1552
- "all",
1553
- "removals",
1554
- "removals additions",
1555
- "removals text",
1556
- "text additions",
1557
- "text removals"
1558
- ]
1559
- },
1560
- "aria-required": {
1561
- description: "Indicates that user input is required on the element before a form may be submitted.",
1562
- required: false,
1563
- control: "boolean",
1564
- type: "boolean"
1565
- },
1566
- "aria-roledescription": {
1567
- description: "Defines a human-readable, author-localized description for the role of an element.",
1568
- required: false,
1569
- control: "text",
1570
- type: "string"
1571
- },
1572
- "aria-rowcount": {
1573
- description: "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
1574
- required: false,
1575
- control: "number",
1576
- type: "number"
1577
- },
1578
- "aria-rowindex": {
1579
- description: "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
1580
- required: false,
1581
- control: "number",
1582
- type: "number"
1583
- },
1584
- "aria-rowindextext": {
1585
- description: "Defines a human readable text alternative of aria-rowindex.\n@see aria-colindextext.",
1586
- required: false,
1587
- control: "text",
1588
- type: "string"
1589
- },
1590
- "aria-rowspan": {
1591
- description: "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
1592
- required: false,
1593
- control: "number",
1594
- type: "number"
1595
- },
1596
- "aria-selected": {
1597
- description: 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
1598
- required: false,
1599
- control: "boolean",
1600
- type: "boolean"
1601
- },
1602
- "aria-setsize": {
1603
- description: "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
1604
- required: false,
1605
- control: "number",
1606
- type: "number"
1607
- },
1608
- "aria-sort": {
1609
- description: "Indicates if items in a table or grid are sorted in ascending or descending order.",
1610
- required: false,
1611
- control: "select",
1612
- type: "string",
1613
- options: ["none", "ascending", "descending", "other"]
1614
- },
1615
- "aria-valuemax": {
1616
- description: "Defines the maximum allowed value for a range widget.",
1617
- required: false,
1618
- control: "number",
1619
- type: "number"
1620
- },
1621
- "aria-valuemin": {
1622
- description: "Defines the minimum allowed value for a range widget.",
1623
- required: false,
1624
- control: "number",
1625
- type: "number"
1626
- },
1627
- "aria-valuenow": {
1628
- description: "Defines the current value for a range widget.\n@see aria-valuetext.",
1629
- required: false,
1630
- control: "number",
1631
- type: "number"
1632
- },
1633
- "aria-valuetext": {
1634
- description: "Defines the human readable text alternative of aria-valuenow for a range widget.",
1635
- required: false,
1636
- control: "text",
1637
- type: "string"
1638
- },
1639
- autoCapitalize: {
1640
- required: false,
1641
- control: "text",
1642
- type: "string",
1643
- description: "Sets whether input is automatically capitalized when entered by user."
1644
- },
1645
- autoComplete: {
1646
- required: false,
1647
- control: "text",
1648
- type: "string",
1649
- description: "Indicates whether controls in this form can by default have their valuesautomatically completed by the browser."
1650
- },
1651
- autoCorrect: { required: false, control: "text", type: "string" },
1652
- autoFocus: {
1653
- required: false,
1654
- control: "boolean",
1655
- type: "boolean",
1656
- description: "Indicates that an element should be focused on page load, or when its parent dialog is displayed."
1657
- },
1658
- autoSave: { required: false, control: "text", type: "string" },
1659
- className: { required: false, control: "text", type: "string" },
1660
- color: {
1661
- required: false,
1662
- control: "color",
1663
- type: "string",
1664
- description: "This attribute sets the text color using either a named color or a color specified in the hexadecimal #RRGGBB format. Note: This is a legacy attribute. Please use the CSS color property instead."
1665
- },
1666
- content: {
1667
- required: false,
1668
- control: "text",
1669
- type: "string",
1670
- description: "A value associated with http-equiv orname depending on the context."
1671
- },
1672
- contextMenu: {
1673
- required: false,
1674
- control: "text",
1675
- type: "string",
1676
- description: "Defines the ID of a menu element which willserve as the element's context menu."
1677
- },
1678
- datatype: { required: false, control: "text", type: "string" },
1679
- defaultChecked: { required: false, control: "boolean", type: "boolean" },
1680
- dir: {
1681
- required: false,
1682
- control: "text",
1683
- type: "string",
1684
- description: "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)"
1685
- },
1686
- draggable: {
1687
- required: false,
1688
- control: "boolean",
1689
- type: "boolean",
1690
- description: "Defines whether the element can be dragged."
1691
- },
1692
- encType: {
1693
- description: "`<form encType>` - enhancing beyond the normal string type and limiting\nto the built-in browser supported values",
1694
- required: false,
1695
- control: "radio",
1696
- type: "string",
1697
- options: [
1698
- "application/x-www-form-urlencoded",
1699
- "multipart/form-data",
1700
- "text/plain"
1701
- ]
1702
- },
1703
- hidden: {
1704
- required: false,
1705
- control: "boolean",
1706
- type: "boolean",
1707
- description: "Prevents rendering of given element, while keeping child elements, e.g. script elements, active."
1708
- },
1709
- id: {
1710
- required: false,
1711
- control: "text",
1712
- type: "string",
1713
- description: "Often used with CSS to style a specific element. The value of this attribute must be unique."
1714
- },
1715
- inputMode: {
1716
- description: "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
1717
- required: false,
1718
- control: "select",
1719
- type: "string",
1720
- options: [
1721
- "search",
1722
- "text",
1723
- "none",
1724
- "tel",
1725
- "url",
1726
- "email",
1727
- "numeric",
1728
- "decimal"
1729
- ]
1730
- },
1731
- is: {
1732
- description: "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
1733
- required: false,
1734
- control: "text",
1735
- type: "string"
1736
- },
1737
- itemID: { required: false, control: "text", type: "string" },
1738
- itemProp: { required: false, control: "text", type: "string" },
1739
- itemRef: { required: false, control: "text", type: "string" },
1740
- itemScope: { required: false, control: "boolean", type: "boolean" },
1741
- itemType: { required: false, control: "text", type: "string" },
1742
- lang: {
1743
- required: false,
1744
- control: "text",
1745
- type: "string",
1746
- description: "Defines the language used in the element."
1747
- },
1748
- method: {
1749
- required: false,
1750
- control: "select",
1751
- type: "string",
1752
- options: ["get", "post", "put", "patch", "delete"],
1753
- description: "Defines which HTTP method to use when submitting the form. Can be GET (default) or POST."
1754
- },
1755
- name: {
1756
- required: false,
1757
- control: "text",
1758
- type: "string",
1759
- description: "This name is important when submitting form data to the server, as it identifies the data associated with the input. When multiple inputs share the same name attribute, they are treated as part of the same group (e.g., radio buttons or checkboxes)."
1760
- },
1761
- nonce: { required: false, control: "text", type: "string" },
1762
- noValidate: {
1763
- required: false,
1764
- control: "boolean",
1765
- type: "boolean",
1766
- description: "This attribute indicates that the form shouldn't be validated when submitted."
1767
- },
1768
- placeholder: {
1769
- required: false,
1770
- control: "text",
1771
- type: "string",
1772
- description: "Provides a hint to the user of what can be entered in the field."
1773
- },
1774
- prefix: { required: false, control: "text", type: "string" },
1775
- property: { required: false, control: "text", type: "string" },
1776
- radioGroup: { required: false, control: "text", type: "string" },
1777
- rel: {
1778
- required: false,
1779
- control: "text",
1780
- type: "string",
1781
- description: "Specifies the relationship of the target object to the link object."
1782
- },
1783
- resource: { required: false, control: "text", type: "string" },
1784
- results: { required: false, control: "number", type: "number" },
1785
- rev: { required: false, control: "text", type: "string" },
1786
- role: {
1787
- required: false,
1788
- control: "text",
1789
- type: "string",
1790
- description: "Defines an explicit role for an element for use by assistive technologies."
1791
- },
1792
- security: { required: false, control: "text", type: "string" },
1793
- slot: {
1794
- required: false,
1795
- control: "text",
1796
- type: "string",
1797
- description: "Assigns a slot in a shadow DOM shadow tree to an element."
1798
- },
1799
- spellCheck: {
1800
- required: false,
1801
- control: "boolean",
1802
- type: "boolean",
1803
- description: "Indicates whether spell checking is allowed for the element."
1804
- },
1805
- suppressContentEditableWarning: {
1806
- required: false,
1807
- control: "boolean",
1808
- type: "boolean"
1809
- },
1810
- suppressHydrationWarning: {
1811
- required: false,
1812
- control: "boolean",
1813
- type: "boolean"
1814
- },
1815
- tabIndex: {
1816
- required: false,
1817
- control: "number",
1818
- type: "number",
1819
- description: "Overrides the browser's default tab order and follows the one specified instead."
1820
- },
1821
- target: {
1822
- required: false,
1823
- control: "text",
1824
- type: "string",
1825
- description: "Specifies where to open the linked document (in the case of an <a> element) or where to display the response received (in the case of a <form> element)"
1826
- },
1827
- title: {
1828
- required: false,
1829
- control: "text",
1830
- type: "string",
1831
- description: "Text to be displayed in a tooltip when hovering over the element."
1832
- },
1833
- translate: {
1834
- required: false,
1835
- control: "radio",
1836
- type: "string",
1837
- options: ["yes", "no"],
1838
- description: "Specify whether an element's attribute values and the values of its text node children are to be translated when the page is localized, or whether to leave them unchanged."
1839
- },
1840
- typeof: { required: false, control: "text", type: "string" },
1841
- unselectable: {
1842
- required: false,
1843
- control: "radio",
1844
- type: "string",
1845
- options: ["on", "off"]
1846
- },
1847
- vocab: { required: false, control: "text", type: "string" }
1848
- };
1849
-
1850
- // src/remix-form.ws.ts
1851
- var propsMeta4 = {
1852
- props: props3,
1853
- initialProps: ["id", "className"]
1854
- };
1272
+ import { Form } from "@webstudio-is/sdk-components-react/metas";
1273
+ import { Form as Form2 } from "@webstudio-is/sdk-components-react/props";
1855
1274
  export {
1856
1275
  Body2 as Body,
1857
1276
  propsMeta3 as Form,
1858
1277
  propsMeta as Link,
1859
- propsMeta4 as RemixForm,
1278
+ Form2 as RemixForm,
1860
1279
  propsMeta2 as RichTextLink
1861
1280
  };