@webstudio-is/sdk-components-react 0.129.0 → 0.131.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 (3) hide show
  1. package/lib/metas.js +42 -40
  2. package/lib/props.js +99 -82
  3. package/package.json +6 -6
package/lib/metas.js CHANGED
@@ -59,7 +59,7 @@ var propsMeta = {
59
59
  initialProps: ["clientOnly", "executeScriptOnCanvas"]
60
60
  };
61
61
 
62
- // src/body.ws.tsx
62
+ // src/body.ws.ts
63
63
  import { BodyIcon } from "@webstudio-is/icons/svg";
64
64
  import {
65
65
  defaultStates
@@ -126,7 +126,7 @@ var meta5 = {
126
126
  order: 0
127
127
  };
128
128
 
129
- // src/text.ws.tsx
129
+ // src/text.ws.ts
130
130
  import { TextIcon } from "@webstudio-is/icons/svg";
131
131
  import {
132
132
  defaultStates as defaultStates3
@@ -152,7 +152,7 @@ var meta6 = {
152
152
  order: 0
153
153
  };
154
154
 
155
- // src/heading.ws.tsx
155
+ // src/heading.ws.ts
156
156
  import { HeadingIcon } from "@webstudio-is/icons/svg";
157
157
  import {
158
158
  defaultStates as defaultStates4
@@ -178,7 +178,7 @@ var meta7 = {
178
178
  order: 1
179
179
  };
180
180
 
181
- // src/paragraph.ws.tsx
181
+ // src/paragraph.ws.ts
182
182
  import { TextAlignLeftIcon } from "@webstudio-is/icons/svg";
183
183
  import {
184
184
  defaultStates as defaultStates5
@@ -199,7 +199,7 @@ var meta8 = {
199
199
  order: 2
200
200
  };
201
201
 
202
- // src/link.ws.tsx
202
+ // src/link.ws.ts
203
203
  import { LinkIcon } from "@webstudio-is/icons/svg";
204
204
  import {
205
205
  defaultStates as defaultStates6
@@ -769,7 +769,7 @@ var props2 = {
769
769
  vocab: { required: false, control: "text", type: "string" }
770
770
  };
771
771
 
772
- // src/link.ws.tsx
772
+ // src/link.ws.ts
773
773
  var presetStyle6 = {
774
774
  a: [
775
775
  ...a,
@@ -789,7 +789,7 @@ var meta9 = {
789
789
  label: "Link",
790
790
  description: "Use a link to send your users to another page, section, or resource. Configure links in the Settings panel.",
791
791
  icon: LinkIcon,
792
- invalidAncestors: ["Link"],
792
+ invalidAncestors: ["Link", "Button"],
793
793
  presetStyle: presetStyle6,
794
794
  order: 1,
795
795
  states: [
@@ -814,10 +814,10 @@ var propsMeta2 = {
814
814
  required: false
815
815
  }
816
816
  },
817
- initialProps: ["id", "href", "target"]
817
+ initialProps: ["id", "className", "href", "target"]
818
818
  };
819
819
 
820
- // src/rich-text-link.ws.tsx
820
+ // src/rich-text-link.ws.ts
821
821
  var meta10 = {
822
822
  ...meta9,
823
823
  category: "hidden",
@@ -825,7 +825,7 @@ var meta10 = {
825
825
  template: []
826
826
  };
827
827
 
828
- // src/span.ws.tsx
828
+ // src/span.ws.ts
829
829
  import { PaintBrushIcon } from "@webstudio-is/icons/svg";
830
830
  import {
831
831
  defaultStates as defaultStates7
@@ -842,7 +842,7 @@ var meta11 = {
842
842
  presetStyle: presetStyle7
843
843
  };
844
844
 
845
- // src/bold.ws.tsx
845
+ // src/bold.ws.ts
846
846
  import { BoldIcon } from "@webstudio-is/icons/svg";
847
847
  import {
848
848
  defaultStates as defaultStates8
@@ -859,7 +859,7 @@ var meta12 = {
859
859
  presetStyle: presetStyle8
860
860
  };
861
861
 
862
- // src/italic.ws.tsx
862
+ // src/italic.ws.ts
863
863
  import { TextItalicIcon } from "@webstudio-is/icons/svg";
864
864
  import {
865
865
  defaultStates as defaultStates9
@@ -882,7 +882,7 @@ var meta13 = {
882
882
  presetStyle: presetStyle9
883
883
  };
884
884
 
885
- // src/superscript.ws.tsx
885
+ // src/superscript.ws.ts
886
886
  import { SuperscriptIcon } from "@webstudio-is/icons/svg";
887
887
  import {
888
888
  defaultStates as defaultStates10
@@ -899,7 +899,7 @@ var meta14 = {
899
899
  presetStyle: presetStyle10
900
900
  };
901
901
 
902
- // src/subscript.ws.tsx
902
+ // src/subscript.ws.ts
903
903
  import { SubscriptIcon } from "@webstudio-is/icons/svg";
904
904
  import {
905
905
  defaultStates as defaultStates11
@@ -916,7 +916,7 @@ var meta15 = {
916
916
  presetStyle: presetStyle11
917
917
  };
918
918
 
919
- // src/button.ws.tsx
919
+ // src/button.ws.ts
920
920
  import { ButtonElementIcon } from "@webstudio-is/icons/svg";
921
921
  import {
922
922
  defaultStates as defaultStates12
@@ -928,7 +928,7 @@ var presetStyle12 = {
928
928
  var meta16 = {
929
929
  category: "forms",
930
930
  type: "container",
931
- invalidAncestors: ["Button"],
931
+ invalidAncestors: ["Button", "Link"],
932
932
  label: "Button",
933
933
  description: "Use a button to submit forms or trigger actions within a page. Do not use a button to navigate users to another resource or another page - that\u2019s what a link is used for.",
934
934
  icon: ButtonElementIcon,
@@ -941,7 +941,7 @@ var meta16 = {
941
941
  order: 1
942
942
  };
943
943
 
944
- // src/input.ws.tsx
944
+ // src/input.ws.ts
945
945
  import { FormTextFieldIcon } from "@webstudio-is/icons/svg";
946
946
  import {
947
947
  defaultStates as defaultStates13
@@ -958,7 +958,7 @@ var presetStyle13 = {
958
958
  };
959
959
  var meta17 = {
960
960
  category: "forms",
961
- invalidAncestors: ["Button"],
961
+ invalidAncestors: ["Button", "Link"],
962
962
  type: "control",
963
963
  label: "Text Input",
964
964
  description: "A single-line text input for collecting string data from your users.",
@@ -980,7 +980,7 @@ var meta17 = {
980
980
  ]
981
981
  };
982
982
 
983
- // src/form.ws.tsx
983
+ // src/form.ws.ts
984
984
  import { FormIcon } from "@webstudio-is/icons/svg";
985
985
  import {
986
986
  defaultStates as defaultStates14
@@ -995,7 +995,7 @@ var presetStyle14 = {
995
995
  var meta18 = {
996
996
  category: "forms",
997
997
  type: "container",
998
- invalidAncestors: ["Form"],
998
+ invalidAncestors: ["Form", "Button", "Link"],
999
999
  label: "Form",
1000
1000
  description: "Collect information from your users using validation rules.",
1001
1001
  icon: FormIcon,
@@ -1039,7 +1039,7 @@ var meta18 = {
1039
1039
  ]
1040
1040
  };
1041
1041
 
1042
- // src/image.ws.tsx
1042
+ // src/image.ws.ts
1043
1043
  import { ImageIcon } from "@webstudio-is/icons/svg";
1044
1044
  import {
1045
1045
  defaultStates as defaultStates15
@@ -1628,7 +1628,7 @@ var props3 = {
1628
1628
  }
1629
1629
  };
1630
1630
 
1631
- // src/image.ws.tsx
1631
+ // src/image.ws.ts
1632
1632
  var presetStyle15 = {
1633
1633
  img: [
1634
1634
  ...img,
@@ -1668,10 +1668,10 @@ var propsMeta3 = {
1668
1668
  ...props3,
1669
1669
  ...propsOverrides
1670
1670
  },
1671
- initialProps: ["id", "src", "width", "height", "alt", "loading"]
1671
+ initialProps: ["id", "className", "src", "width", "height", "alt", "loading"]
1672
1672
  };
1673
1673
 
1674
- // src/blockquote.ws.tsx
1674
+ // src/blockquote.ws.ts
1675
1675
  import { BlockquoteIcon } from "@webstudio-is/icons/svg";
1676
1676
  import {
1677
1677
  defaultStates as defaultStates16
@@ -1735,7 +1735,7 @@ var meta20 = {
1735
1735
  order: 3
1736
1736
  };
1737
1737
 
1738
- // src/list.ws.tsx
1738
+ // src/list.ws.ts
1739
1739
  import { ListIcon } from "@webstudio-is/icons/svg";
1740
1740
  import {
1741
1741
  defaultStates as defaultStates17
@@ -1807,7 +1807,7 @@ var meta21 = {
1807
1807
  ]
1808
1808
  };
1809
1809
 
1810
- // src/list-item.ws.tsx
1810
+ // src/list-item.ws.ts
1811
1811
  import { ListItemIcon } from "@webstudio-is/icons/svg";
1812
1812
  import {
1813
1813
  defaultStates as defaultStates18
@@ -1828,7 +1828,7 @@ var meta22 = {
1828
1828
  order: 4
1829
1829
  };
1830
1830
 
1831
- // src/separator.ws.tsx
1831
+ // src/separator.ws.ts
1832
1832
  import { DashIcon } from "@webstudio-is/icons/svg";
1833
1833
  import {
1834
1834
  defaultStates as defaultStates19
@@ -1874,7 +1874,7 @@ var meta23 = {
1874
1874
  order: 5
1875
1875
  };
1876
1876
 
1877
- // src/code-text.ws.tsx
1877
+ // src/code-text.ws.ts
1878
1878
  import { CodeTextIcon } from "@webstudio-is/icons/svg";
1879
1879
  import {
1880
1880
  defaultStates as defaultStates20
@@ -1917,7 +1917,7 @@ var meta24 = {
1917
1917
  order: 9
1918
1918
  };
1919
1919
 
1920
- // src/label.ws.tsx
1920
+ // src/label.ws.ts
1921
1921
  import { LabelIcon } from "@webstudio-is/icons/svg";
1922
1922
  import {
1923
1923
  defaultStates as defaultStates21
@@ -2445,7 +2445,7 @@ var props4 = {
2445
2445
  vocab: { required: false, control: "text", type: "string" }
2446
2446
  };
2447
2447
 
2448
- // src/label.ws.tsx
2448
+ // src/label.ws.ts
2449
2449
  var presetStyle21 = {
2450
2450
  label: [
2451
2451
  ...label,
@@ -2477,10 +2477,10 @@ var propsMeta4 = {
2477
2477
  label: "For"
2478
2478
  }
2479
2479
  },
2480
- initialProps: ["id", "htmlFor"]
2480
+ initialProps: ["id", "className", "htmlFor"]
2481
2481
  };
2482
2482
 
2483
- // src/textarea.ws.tsx
2483
+ // src/textarea.ws.ts
2484
2484
  import { FormTextAreaIcon } from "@webstudio-is/icons/svg";
2485
2485
  import {
2486
2486
  defaultStates as defaultStates22
@@ -2505,6 +2505,7 @@ var meta26 = {
2505
2505
  icon: FormTextAreaIcon,
2506
2506
  presetStyle: presetStyle22,
2507
2507
  order: 4,
2508
+ invalidAncestors: ["Button", "Link"],
2508
2509
  states: [
2509
2510
  ...defaultStates22,
2510
2511
  { selector: "::placeholder", label: "Placeholder" },
@@ -2520,15 +2521,15 @@ var meta26 = {
2520
2521
  ]
2521
2522
  };
2522
2523
 
2523
- // src/radio-button.ws.tsx
2524
+ // src/radio-button.ws.ts
2524
2525
  import { RadioCheckedIcon } from "@webstudio-is/icons/svg";
2525
2526
  import {
2526
2527
  defaultStates as defaultStates23
2527
2528
  } from "@webstudio-is/react-sdk";
2528
- import { input as input2 } from "@webstudio-is/react-sdk/css-normalize";
2529
+ import { radio } from "@webstudio-is/react-sdk/css-normalize";
2529
2530
  var presetStyle23 = {
2530
2531
  input: [
2531
- ...input2,
2532
+ ...radio,
2532
2533
  {
2533
2534
  property: "marginRight",
2534
2535
  value: { type: "unit", unit: "em", value: 0.5 }
@@ -2537,7 +2538,7 @@ var presetStyle23 = {
2537
2538
  };
2538
2539
  var meta27 = {
2539
2540
  category: "forms",
2540
- invalidAncestors: ["Button"],
2541
+ invalidAncestors: ["Button", "Link"],
2541
2542
  type: "control",
2542
2543
  label: "Radio",
2543
2544
  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 \u201CName\u201D properties.",
@@ -2574,15 +2575,15 @@ var meta27 = {
2574
2575
  ]
2575
2576
  };
2576
2577
 
2577
- // src/checkbox.ws.tsx
2578
+ // src/checkbox.ws.ts
2578
2579
  import { CheckboxCheckedIcon } from "@webstudio-is/icons/svg";
2579
2580
  import {
2580
2581
  defaultStates as defaultStates24
2581
2582
  } from "@webstudio-is/react-sdk";
2582
- import { input as input3 } from "@webstudio-is/react-sdk/css-normalize";
2583
+ import { checkbox } from "@webstudio-is/react-sdk/css-normalize";
2583
2584
  var presetStyle24 = {
2584
2585
  input: [
2585
- ...input3,
2586
+ ...checkbox,
2586
2587
  {
2587
2588
  property: "marginRight",
2588
2589
  value: { type: "unit", unit: "em", value: 0.5 }
@@ -2591,7 +2592,7 @@ var presetStyle24 = {
2591
2592
  };
2592
2593
  var meta28 = {
2593
2594
  category: "forms",
2594
- invalidAncestors: ["Button"],
2595
+ invalidAncestors: ["Button", "Link"],
2595
2596
  type: "control",
2596
2597
  label: "Checkbox",
2597
2598
  description: "Use within a form to allow your users to toggle between checked and not checked. Group checkboxes by matching their \u201CName\u201D properties. Unlike radios, any number of checkboxes in a group can be checked.",
@@ -2645,6 +2646,7 @@ var meta29 = {
2645
2646
  icon: VimeoIcon,
2646
2647
  states: defaultStates25,
2647
2648
  presetStyle: presetStyle25,
2649
+ invalidAncestors: ["Button", "Heading", "Link"],
2648
2650
  template: [
2649
2651
  {
2650
2652
  type: "instance",
package/lib/props.js CHANGED
@@ -41,7 +41,7 @@ var propsMeta3 = {
41
41
  initialProps: ["clientOnly", "executeScriptOnCanvas"]
42
42
  };
43
43
 
44
- // src/body.ws.tsx
44
+ // src/body.ws.ts
45
45
  import { BodyIcon } from "@webstudio-is/icons/svg";
46
46
  import {
47
47
  defaultStates
@@ -557,7 +557,7 @@ var props2 = {
557
557
  vocab: { required: false, control: "text", type: "string" }
558
558
  };
559
559
 
560
- // src/body.ws.tsx
560
+ // src/body.ws.ts
561
561
  var presetStyle = {
562
562
  body: [
563
563
  ...body,
@@ -573,7 +573,7 @@ var presetStyle = {
573
573
  };
574
574
  var propsMeta4 = {
575
575
  props: props2,
576
- initialProps: ["id"]
576
+ initialProps: ["id", "className"]
577
577
  };
578
578
 
579
579
  // src/box.ws.ts
@@ -1125,10 +1125,10 @@ var props3 = {
1125
1125
  // src/box.ws.ts
1126
1126
  var propsMeta5 = {
1127
1127
  props: props3,
1128
- initialProps: ["id", "tag"]
1128
+ initialProps: ["id", "className", "tag"]
1129
1129
  };
1130
1130
 
1131
- // src/text.ws.tsx
1131
+ // src/text.ws.ts
1132
1132
  import { TextIcon } from "@webstudio-is/icons/svg";
1133
1133
  import {
1134
1134
  defaultStates as defaultStates3
@@ -1652,7 +1652,7 @@ var props4 = {
1652
1652
  vocab: { required: false, control: "text", type: "string" }
1653
1653
  };
1654
1654
 
1655
- // src/text.ws.tsx
1655
+ // src/text.ws.ts
1656
1656
  var presetStyle2 = {
1657
1657
  div: [
1658
1658
  ...div2,
@@ -1664,10 +1664,10 @@ var presetStyle2 = {
1664
1664
  };
1665
1665
  var propsMeta6 = {
1666
1666
  props: props4,
1667
- initialProps: ["id", "tag"]
1667
+ initialProps: ["id", "className", "tag"]
1668
1668
  };
1669
1669
 
1670
- // src/heading.ws.tsx
1670
+ // src/heading.ws.ts
1671
1671
  import { HeadingIcon } from "@webstudio-is/icons/svg";
1672
1672
  import {
1673
1673
  defaultStates as defaultStates4
@@ -2191,13 +2191,13 @@ var props5 = {
2191
2191
  vocab: { required: false, control: "text", type: "string" }
2192
2192
  };
2193
2193
 
2194
- // src/heading.ws.tsx
2194
+ // src/heading.ws.ts
2195
2195
  var propsMeta7 = {
2196
2196
  props: props5,
2197
- initialProps: ["id", "tag"]
2197
+ initialProps: ["id", "className", "tag"]
2198
2198
  };
2199
2199
 
2200
- // src/paragraph.ws.tsx
2200
+ // src/paragraph.ws.ts
2201
2201
  import { TextAlignLeftIcon } from "@webstudio-is/icons/svg";
2202
2202
  import {
2203
2203
  defaultStates as defaultStates5
@@ -2713,13 +2713,13 @@ var props6 = {
2713
2713
  vocab: { required: false, control: "text", type: "string" }
2714
2714
  };
2715
2715
 
2716
- // src/paragraph.ws.tsx
2716
+ // src/paragraph.ws.ts
2717
2717
  var propsMeta8 = {
2718
2718
  props: props6,
2719
- initialProps: ["id"]
2719
+ initialProps: ["id", "className"]
2720
2720
  };
2721
2721
 
2722
- // src/link.ws.tsx
2722
+ // src/link.ws.ts
2723
2723
  import { LinkIcon } from "@webstudio-is/icons/svg";
2724
2724
  import {
2725
2725
  defaultStates as defaultStates6
@@ -3289,7 +3289,7 @@ var props7 = {
3289
3289
  vocab: { required: false, control: "text", type: "string" }
3290
3290
  };
3291
3291
 
3292
- // src/link.ws.tsx
3292
+ // src/link.ws.ts
3293
3293
  var presetStyle3 = {
3294
3294
  a: [
3295
3295
  ...a,
@@ -3309,7 +3309,7 @@ var meta = {
3309
3309
  label: "Link",
3310
3310
  description: "Use a link to send your users to another page, section, or resource. Configure links in the Settings panel.",
3311
3311
  icon: LinkIcon,
3312
- invalidAncestors: ["Link"],
3312
+ invalidAncestors: ["Link", "Button"],
3313
3313
  presetStyle: presetStyle3,
3314
3314
  order: 1,
3315
3315
  states: [
@@ -3334,10 +3334,10 @@ var propsMeta9 = {
3334
3334
  required: false
3335
3335
  }
3336
3336
  },
3337
- initialProps: ["id", "href", "target"]
3337
+ initialProps: ["id", "className", "href", "target"]
3338
3338
  };
3339
3339
 
3340
- // src/rich-text-link.ws.tsx
3340
+ // src/rich-text-link.ws.ts
3341
3341
  var meta2 = {
3342
3342
  ...meta,
3343
3343
  category: "hidden",
@@ -3346,7 +3346,7 @@ var meta2 = {
3346
3346
  };
3347
3347
  var propsMeta10 = propsMeta9;
3348
3348
 
3349
- // src/span.ws.tsx
3349
+ // src/span.ws.ts
3350
3350
  import { PaintBrushIcon } from "@webstudio-is/icons/svg";
3351
3351
  import {
3352
3352
  defaultStates as defaultStates7
@@ -3862,13 +3862,13 @@ var props8 = {
3862
3862
  vocab: { required: false, control: "text", type: "string" }
3863
3863
  };
3864
3864
 
3865
- // src/span.ws.tsx
3865
+ // src/span.ws.ts
3866
3866
  var propsMeta11 = {
3867
3867
  props: props8,
3868
- initialProps: ["id"]
3868
+ initialProps: ["id", "className"]
3869
3869
  };
3870
3870
 
3871
- // src/bold.ws.tsx
3871
+ // src/bold.ws.ts
3872
3872
  import { BoldIcon } from "@webstudio-is/icons/svg";
3873
3873
  import {
3874
3874
  defaultStates as defaultStates8
@@ -4384,13 +4384,13 @@ var props9 = {
4384
4384
  vocab: { required: false, control: "text", type: "string" }
4385
4385
  };
4386
4386
 
4387
- // src/bold.ws.tsx
4387
+ // src/bold.ws.ts
4388
4388
  var propsMeta12 = {
4389
4389
  props: props9,
4390
- initialProps: ["id"]
4390
+ initialProps: ["id", "className"]
4391
4391
  };
4392
4392
 
4393
- // src/italic.ws.tsx
4393
+ // src/italic.ws.ts
4394
4394
  import { TextItalicIcon } from "@webstudio-is/icons/svg";
4395
4395
  import {
4396
4396
  defaultStates as defaultStates9
@@ -4906,7 +4906,7 @@ var props10 = {
4906
4906
  vocab: { required: false, control: "text", type: "string" }
4907
4907
  };
4908
4908
 
4909
- // src/italic.ws.tsx
4909
+ // src/italic.ws.ts
4910
4910
  var presetStyle4 = {
4911
4911
  i: [
4912
4912
  ...i,
@@ -4918,10 +4918,10 @@ var presetStyle4 = {
4918
4918
  };
4919
4919
  var propsMeta13 = {
4920
4920
  props: props10,
4921
- initialProps: ["id"]
4921
+ initialProps: ["id", "className"]
4922
4922
  };
4923
4923
 
4924
- // src/superscript.ws.tsx
4924
+ // src/superscript.ws.ts
4925
4925
  import { SuperscriptIcon } from "@webstudio-is/icons/svg";
4926
4926
  import {
4927
4927
  defaultStates as defaultStates10
@@ -5437,13 +5437,13 @@ var props11 = {
5437
5437
  vocab: { required: false, control: "text", type: "string" }
5438
5438
  };
5439
5439
 
5440
- // src/superscript.ws.tsx
5440
+ // src/superscript.ws.ts
5441
5441
  var propsMeta14 = {
5442
5442
  props: props11,
5443
- initialProps: ["id"]
5443
+ initialProps: ["id", "className"]
5444
5444
  };
5445
5445
 
5446
- // src/subscript.ws.tsx
5446
+ // src/subscript.ws.ts
5447
5447
  import { SubscriptIcon } from "@webstudio-is/icons/svg";
5448
5448
  import {
5449
5449
  defaultStates as defaultStates11
@@ -5959,13 +5959,13 @@ var props12 = {
5959
5959
  vocab: { required: false, control: "text", type: "string" }
5960
5960
  };
5961
5961
 
5962
- // src/subscript.ws.tsx
5962
+ // src/subscript.ws.ts
5963
5963
  var propsMeta15 = {
5964
5964
  props: props12,
5965
- initialProps: ["id"]
5965
+ initialProps: ["id", "className"]
5966
5966
  };
5967
5967
 
5968
- // src/button.ws.tsx
5968
+ // src/button.ws.ts
5969
5969
  import { ButtonElementIcon } from "@webstudio-is/icons/svg";
5970
5970
  import {
5971
5971
  defaultStates as defaultStates12
@@ -6537,14 +6537,14 @@ var props13 = {
6537
6537
  vocab: { required: false, control: "text", type: "string" }
6538
6538
  };
6539
6539
 
6540
- // src/button.ws.tsx
6540
+ // src/button.ws.ts
6541
6541
  var presetStyle5 = {
6542
6542
  button
6543
6543
  };
6544
6544
  var meta3 = {
6545
6545
  category: "forms",
6546
6546
  type: "container",
6547
- invalidAncestors: ["Button"],
6547
+ invalidAncestors: ["Button", "Link"],
6548
6548
  label: "Button",
6549
6549
  description: "Use a button to submit forms or trigger actions within a page. Do not use a button to navigate users to another resource or another page - that\u2019s what a link is used for.",
6550
6550
  icon: ButtonElementIcon,
@@ -6558,10 +6558,10 @@ var meta3 = {
6558
6558
  };
6559
6559
  var propsMeta16 = {
6560
6560
  props: props13,
6561
- initialProps: ["id", "type", "aria-label"]
6561
+ initialProps: ["id", "className", "type", "aria-label"]
6562
6562
  };
6563
6563
 
6564
- // src/input.ws.tsx
6564
+ // src/input.ws.ts
6565
6565
  import { FormTextFieldIcon } from "@webstudio-is/icons/svg";
6566
6566
  import {
6567
6567
  defaultStates as defaultStates13
@@ -7242,7 +7242,7 @@ var props14 = {
7242
7242
  }
7243
7243
  };
7244
7244
 
7245
- // src/input.ws.tsx
7245
+ // src/input.ws.ts
7246
7246
  var presetStyle6 = {
7247
7247
  input: [
7248
7248
  ...input,
@@ -7254,7 +7254,7 @@ var presetStyle6 = {
7254
7254
  };
7255
7255
  var meta4 = {
7256
7256
  category: "forms",
7257
- invalidAncestors: ["Button"],
7257
+ invalidAncestors: ["Button", "Link"],
7258
7258
  type: "control",
7259
7259
  label: "Text Input",
7260
7260
  description: "A single-line text input for collecting string data from your users.",
@@ -7277,10 +7277,18 @@ var meta4 = {
7277
7277
  };
7278
7278
  var propsMeta17 = {
7279
7279
  props: props14,
7280
- initialProps: ["id", "name", "type", "placeholder", "required", "autoFocus"]
7280
+ initialProps: [
7281
+ "id",
7282
+ "className",
7283
+ "name",
7284
+ "type",
7285
+ "placeholder",
7286
+ "required",
7287
+ "autoFocus"
7288
+ ]
7281
7289
  };
7282
7290
 
7283
- // src/form.ws.tsx
7291
+ // src/form.ws.ts
7284
7292
  import { FormIcon } from "@webstudio-is/icons/svg";
7285
7293
  import {
7286
7294
  defaultStates as defaultStates14
@@ -7844,7 +7852,7 @@ var props15 = {
7844
7852
  vocab: { required: false, control: "text", type: "string" }
7845
7853
  };
7846
7854
 
7847
- // src/form.ws.tsx
7855
+ // src/form.ws.ts
7848
7856
  var presetStyle7 = {
7849
7857
  form: [
7850
7858
  ...form,
@@ -7853,10 +7861,10 @@ var presetStyle7 = {
7853
7861
  };
7854
7862
  var propsMeta18 = {
7855
7863
  props: props15,
7856
- initialProps: ["id", "action"]
7864
+ initialProps: ["id", "className", "action"]
7857
7865
  };
7858
7866
 
7859
- // src/image.ws.tsx
7867
+ // src/image.ws.ts
7860
7868
  import { ImageIcon } from "@webstudio-is/icons/svg";
7861
7869
  import {
7862
7870
  defaultStates as defaultStates15
@@ -8445,7 +8453,7 @@ var props16 = {
8445
8453
  }
8446
8454
  };
8447
8455
 
8448
- // src/image.ws.tsx
8456
+ // src/image.ws.ts
8449
8457
  var presetStyle8 = {
8450
8458
  img: [
8451
8459
  ...img,
@@ -8485,10 +8493,10 @@ var propsMeta19 = {
8485
8493
  ...props16,
8486
8494
  ...propsOverrides
8487
8495
  },
8488
- initialProps: ["id", "src", "width", "height", "alt", "loading"]
8496
+ initialProps: ["id", "className", "src", "width", "height", "alt", "loading"]
8489
8497
  };
8490
8498
 
8491
- // src/blockquote.ws.tsx
8499
+ // src/blockquote.ws.ts
8492
8500
  import { BlockquoteIcon } from "@webstudio-is/icons/svg";
8493
8501
  import {
8494
8502
  defaultStates as defaultStates16
@@ -9009,13 +9017,13 @@ var props17 = {
9009
9017
  vocab: { required: false, control: "text", type: "string" }
9010
9018
  };
9011
9019
 
9012
- // src/blockquote.ws.tsx
9020
+ // src/blockquote.ws.ts
9013
9021
  var propsMeta20 = {
9014
9022
  props: props17,
9015
- initialProps: ["id", "cite"]
9023
+ initialProps: ["id", "className", "cite"]
9016
9024
  };
9017
9025
 
9018
- // src/list.ws.tsx
9026
+ // src/list.ws.ts
9019
9027
  import { ListIcon } from "@webstudio-is/icons/svg";
9020
9028
  import {
9021
9029
  defaultStates as defaultStates17
@@ -9557,7 +9565,7 @@ var props18 = {
9557
9565
  vocab: { required: false, control: "text", type: "string" }
9558
9566
  };
9559
9567
 
9560
- // src/list.ws.tsx
9568
+ // src/list.ws.ts
9561
9569
  var presetStyle9 = {
9562
9570
  ol: [
9563
9571
  ...ol,
@@ -9592,10 +9600,10 @@ var presetStyle9 = {
9592
9600
  };
9593
9601
  var propsMeta21 = {
9594
9602
  props: props18,
9595
- initialProps: ["id", "ordered", "start", "reversed"]
9603
+ initialProps: ["id", "className", "ordered", "start", "reversed"]
9596
9604
  };
9597
9605
 
9598
- // src/list-item.ws.tsx
9606
+ // src/list-item.ws.ts
9599
9607
  import { ListItemIcon } from "@webstudio-is/icons/svg";
9600
9608
  import {
9601
9609
  defaultStates as defaultStates18
@@ -10111,13 +10119,13 @@ var props19 = {
10111
10119
  vocab: { required: false, control: "text", type: "string" }
10112
10120
  };
10113
10121
 
10114
- // src/list-item.ws.tsx
10122
+ // src/list-item.ws.ts
10115
10123
  var propsMeta22 = {
10116
10124
  props: props19,
10117
- initialProps: ["id"]
10125
+ initialProps: ["id", "className"]
10118
10126
  };
10119
10127
 
10120
- // src/separator.ws.tsx
10128
+ // src/separator.ws.ts
10121
10129
  import { DashIcon } from "@webstudio-is/icons/svg";
10122
10130
  import {
10123
10131
  defaultStates as defaultStates19
@@ -10633,7 +10641,7 @@ var props20 = {
10633
10641
  vocab: { required: false, control: "text", type: "string" }
10634
10642
  };
10635
10643
 
10636
- // src/separator.ws.tsx
10644
+ // src/separator.ws.ts
10637
10645
  var presetStyle10 = {
10638
10646
  hr: [
10639
10647
  ...hr,
@@ -10665,10 +10673,10 @@ var presetStyle10 = {
10665
10673
  };
10666
10674
  var propsMeta23 = {
10667
10675
  props: props20,
10668
- initialProps: ["id"]
10676
+ initialProps: ["id", "className"]
10669
10677
  };
10670
10678
 
10671
- // src/code-text.ws.tsx
10679
+ // src/code-text.ws.ts
10672
10680
  import { CodeTextIcon } from "@webstudio-is/icons/svg";
10673
10681
  import {
10674
10682
  defaultStates as defaultStates20
@@ -11184,7 +11192,7 @@ var props21 = {
11184
11192
  vocab: { required: false, control: "text", type: "string" }
11185
11193
  };
11186
11194
 
11187
- // src/code-text.ws.tsx
11195
+ // src/code-text.ws.ts
11188
11196
  var presetStyle11 = {
11189
11197
  code: [
11190
11198
  ...code,
@@ -11212,10 +11220,10 @@ var presetStyle11 = {
11212
11220
  };
11213
11221
  var propsMeta24 = {
11214
11222
  props: props21,
11215
- initialProps: ["id", "lang"]
11223
+ initialProps: ["id", "className", "lang"]
11216
11224
  };
11217
11225
 
11218
- // src/label.ws.tsx
11226
+ // src/label.ws.ts
11219
11227
  import { LabelIcon } from "@webstudio-is/icons/svg";
11220
11228
  import {
11221
11229
  defaultStates as defaultStates21
@@ -11743,7 +11751,7 @@ var props22 = {
11743
11751
  vocab: { required: false, control: "text", type: "string" }
11744
11752
  };
11745
11753
 
11746
- // src/label.ws.tsx
11754
+ // src/label.ws.ts
11747
11755
  var presetStyle12 = {
11748
11756
  label: [
11749
11757
  ...label,
@@ -11758,10 +11766,10 @@ var propsMeta25 = {
11758
11766
  label: "For"
11759
11767
  }
11760
11768
  },
11761
- initialProps: ["id", "htmlFor"]
11769
+ initialProps: ["id", "className", "htmlFor"]
11762
11770
  };
11763
11771
 
11764
- // src/textarea.ws.tsx
11772
+ // src/textarea.ws.ts
11765
11773
  import { FormTextAreaIcon } from "@webstudio-is/icons/svg";
11766
11774
  import {
11767
11775
  defaultStates as defaultStates22
@@ -12344,7 +12352,7 @@ var props23 = {
12344
12352
  }
12345
12353
  };
12346
12354
 
12347
- // src/textarea.ws.tsx
12355
+ // src/textarea.ws.ts
12348
12356
  var presetStyle13 = {
12349
12357
  textarea: [
12350
12358
  ...textarea,
@@ -12364,6 +12372,7 @@ var meta6 = {
12364
12372
  icon: FormTextAreaIcon,
12365
12373
  presetStyle: presetStyle13,
12366
12374
  order: 4,
12375
+ invalidAncestors: ["Button", "Link"],
12367
12376
  states: [
12368
12377
  ...defaultStates22,
12369
12378
  { selector: "::placeholder", label: "Placeholder" },
@@ -12380,15 +12389,22 @@ var meta6 = {
12380
12389
  };
12381
12390
  var propsMeta26 = {
12382
12391
  props: props23,
12383
- initialProps: ["id", "name", "placeholder", "required", "autoFocus"]
12392
+ initialProps: [
12393
+ "id",
12394
+ "className",
12395
+ "name",
12396
+ "placeholder",
12397
+ "required",
12398
+ "autoFocus"
12399
+ ]
12384
12400
  };
12385
12401
 
12386
- // src/radio-button.ws.tsx
12402
+ // src/radio-button.ws.ts
12387
12403
  import { RadioCheckedIcon } from "@webstudio-is/icons/svg";
12388
12404
  import {
12389
12405
  defaultStates as defaultStates23
12390
12406
  } from "@webstudio-is/react-sdk";
12391
- import { input as input2 } from "@webstudio-is/react-sdk/css-normalize";
12407
+ import { radio } from "@webstudio-is/react-sdk/css-normalize";
12392
12408
 
12393
12409
  // src/__generated__/radio-button.props.ts
12394
12410
  var props24 = {
@@ -13057,10 +13073,10 @@ var props24 = {
13057
13073
  }
13058
13074
  };
13059
13075
 
13060
- // src/radio-button.ws.tsx
13076
+ // src/radio-button.ws.ts
13061
13077
  var presetStyle14 = {
13062
13078
  input: [
13063
- ...input2,
13079
+ ...radio,
13064
13080
  {
13065
13081
  property: "marginRight",
13066
13082
  value: { type: "unit", unit: "em", value: 0.5 }
@@ -13069,7 +13085,7 @@ var presetStyle14 = {
13069
13085
  };
13070
13086
  var meta7 = {
13071
13087
  category: "forms",
13072
- invalidAncestors: ["Button"],
13088
+ invalidAncestors: ["Button", "Link"],
13073
13089
  type: "control",
13074
13090
  label: "Radio",
13075
13091
  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 \u201CName\u201D properties.",
@@ -13107,15 +13123,15 @@ var meta7 = {
13107
13123
  };
13108
13124
  var propsMeta27 = {
13109
13125
  props: props24,
13110
- initialProps: ["id", "name"]
13126
+ initialProps: ["id", "className", "name"]
13111
13127
  };
13112
13128
 
13113
- // src/checkbox.ws.tsx
13129
+ // src/checkbox.ws.ts
13114
13130
  import { CheckboxCheckedIcon } from "@webstudio-is/icons/svg";
13115
13131
  import {
13116
13132
  defaultStates as defaultStates24
13117
13133
  } from "@webstudio-is/react-sdk";
13118
- import { input as input3 } from "@webstudio-is/react-sdk/css-normalize";
13134
+ import { checkbox } from "@webstudio-is/react-sdk/css-normalize";
13119
13135
 
13120
13136
  // src/__generated__/checkbox.props.ts
13121
13137
  var props25 = {
@@ -13784,10 +13800,10 @@ var props25 = {
13784
13800
  }
13785
13801
  };
13786
13802
 
13787
- // src/checkbox.ws.tsx
13803
+ // src/checkbox.ws.ts
13788
13804
  var presetStyle15 = {
13789
13805
  input: [
13790
- ...input3,
13806
+ ...checkbox,
13791
13807
  {
13792
13808
  property: "marginRight",
13793
13809
  value: { type: "unit", unit: "em", value: 0.5 }
@@ -13796,7 +13812,7 @@ var presetStyle15 = {
13796
13812
  };
13797
13813
  var meta8 = {
13798
13814
  category: "forms",
13799
- invalidAncestors: ["Button"],
13815
+ invalidAncestors: ["Button", "Link"],
13800
13816
  type: "control",
13801
13817
  label: "Checkbox",
13802
13818
  description: "Use within a form to allow your users to toggle between checked and not checked. Group checkboxes by matching their \u201CName\u201D properties. Unlike radios, any number of checkboxes in a group can be checked.",
@@ -13833,7 +13849,7 @@ var meta8 = {
13833
13849
  };
13834
13850
  var propsMeta28 = {
13835
13851
  props: props25,
13836
- initialProps: ["id", "name"]
13852
+ initialProps: ["id", "className", "name"]
13837
13853
  };
13838
13854
 
13839
13855
  // src/vimeo.ws.ts
@@ -14520,6 +14536,7 @@ var props26 = {
14520
14536
  // src/vimeo.ws.ts
14521
14537
  var initialProps = [
14522
14538
  "id",
14539
+ "className",
14523
14540
  "url",
14524
14541
  "quality",
14525
14542
  "showPreview",
@@ -15710,7 +15727,7 @@ import { ButtonElementIcon as ButtonElementIcon2 } from "@webstudio-is/icons/svg
15710
15727
  import { button as button2 } from "@webstudio-is/react-sdk/css-normalize";
15711
15728
  var propsMeta31 = {
15712
15729
  props: props28,
15713
- initialProps: ["id"]
15730
+ initialProps: ["id", "className"]
15714
15731
  };
15715
15732
 
15716
15733
  // src/vimeo-spinner.ws.ts
@@ -16232,7 +16249,7 @@ import { div as div4 } from "@webstudio-is/react-sdk/css-normalize";
16232
16249
  import { BoxIcon as BoxIcon2 } from "@webstudio-is/icons/svg";
16233
16250
  var propsMeta32 = {
16234
16251
  props: props29,
16235
- initialProps: ["id"]
16252
+ initialProps: ["id", "className"]
16236
16253
  };
16237
16254
  export {
16238
16255
  propsMeta20 as Blockquote,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/sdk-components-react",
3
- "version": "0.129.0",
3
+ "version": "0.131.0",
4
4
  "description": "Webstudio default library for react",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -40,9 +40,9 @@
40
40
  "@react-aria/utils": "^3.21.0",
41
41
  "colord": "^2.9.3",
42
42
  "shallow-equal": "^3.1.0",
43
- "@webstudio-is/image": "0.129.0",
44
- "@webstudio-is/react-sdk": "0.129.0",
45
- "@webstudio-is/icons": "0.129.0"
43
+ "@webstudio-is/icons": "0.131.0",
44
+ "@webstudio-is/image": "0.131.0",
45
+ "@webstudio-is/react-sdk": "0.131.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@storybook/react": "^7.4.0",
@@ -51,14 +51,14 @@
51
51
  "react": "^18.2.0",
52
52
  "react-dom": "^18.2.0",
53
53
  "typescript": "5.2.2",
54
- "@webstudio-is/generate-arg-types": "0.129.0",
54
+ "@webstudio-is/generate-arg-types": "0.131.0",
55
55
  "@webstudio-is/storybook-config": "0.0.0",
56
56
  "@webstudio-is/tsconfig": "1.0.7"
57
57
  },
58
58
  "scripts": {
59
59
  "dev": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib --watch",
60
60
  "build": "rm -rf lib && esbuild src/components.ts src/metas.ts src/props.ts --outdir=lib --bundle --format=esm --packages=external",
61
- "build:args": "NODE_OPTIONS=--conditions=webstudio generate-arg-types './src/*.tsx !./src/*.stories.tsx !./src/*.ws.tsx' && prettier --write \"**/*.props.ts\"",
61
+ "build:args": "NODE_OPTIONS=--conditions=webstudio generate-arg-types './src/*.tsx !./src/*.stories.tsx !./src/*.ws.ts' && prettier --write \"**/*.props.ts\"",
62
62
  "dts": "tsc --project tsconfig.dts.json",
63
63
  "typecheck": "tsc",
64
64
  "checks": "pnpm typecheck",