@webstudio-is/sdk-components-react 0.168.0 → 0.174.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 (40) hide show
  1. package/lib/components.js +76 -45
  2. package/lib/metas.js +223 -64
  3. package/lib/props.js +1273 -6
  4. package/lib/types/__generated__/option.props.d.ts +2 -0
  5. package/lib/types/__generated__/select.props.d.ts +2 -0
  6. package/lib/types/blockquote.d.ts +0 -1
  7. package/lib/types/body.d.ts +0 -1
  8. package/lib/types/bold.d.ts +0 -1
  9. package/lib/types/button.d.ts +0 -1
  10. package/lib/types/checkbox.d.ts +1 -2
  11. package/lib/types/code-text.d.ts +1 -2
  12. package/lib/types/components.d.ts +2 -0
  13. package/lib/types/form.d.ts +0 -1
  14. package/lib/types/hooks.d.ts +2 -0
  15. package/lib/types/html-embed.d.ts +1 -1
  16. package/lib/types/html-embed.test.d.ts +1 -1
  17. package/lib/types/image.d.ts +3 -1
  18. package/lib/types/input.d.ts +1 -2
  19. package/lib/types/italic.d.ts +0 -1
  20. package/lib/types/label.d.ts +0 -1
  21. package/lib/types/list-item.d.ts +0 -1
  22. package/lib/types/metas.d.ts +2 -0
  23. package/lib/types/option.d.ts +2 -0
  24. package/lib/types/option.ws.d.ts +3 -0
  25. package/lib/types/paragraph.d.ts +0 -1
  26. package/lib/types/props.d.ts +2 -0
  27. package/lib/types/radio-button.d.ts +1 -2
  28. package/lib/types/select.d.ts +4 -0
  29. package/lib/types/select.ws.d.ts +3 -0
  30. package/lib/types/separator.d.ts +0 -1
  31. package/lib/types/span.d.ts +0 -1
  32. package/lib/types/subscript.d.ts +0 -1
  33. package/lib/types/superscript.d.ts +0 -1
  34. package/lib/types/textarea.d.ts +0 -1
  35. package/lib/types/vimeo-play-button.d.ts +0 -1
  36. package/lib/types/vimeo-preview-image.d.ts +17 -17
  37. package/lib/types/vimeo-spinner.d.ts +0 -1
  38. package/lib/types/vimeo.d.ts +1 -1
  39. package/lib/types/xml-node.d.ts +2 -2
  40. package/package.json +13 -11
package/lib/props.js CHANGED
@@ -14,6 +14,7 @@ import { EmbedIcon } from "@webstudio-is/icons/svg";
14
14
 
15
15
  // src/__generated__/html-embed.props.ts
16
16
  var props = {
17
+ className: { required: false, control: "text", type: "string" },
17
18
  clientOnly: { required: false, control: "boolean", type: "boolean" },
18
19
  code: { required: true, control: "text", type: "string" },
19
20
  executeScriptOnCanvas: {
@@ -42,7 +43,7 @@ var propsMeta3 = {
42
43
  type: "string"
43
44
  }
44
45
  },
45
- initialProps: ["clientOnly", "executeScriptOnCanvas"]
46
+ initialProps: ["className", "clientOnly", "executeScriptOnCanvas"]
46
47
  };
47
48
 
48
49
  // src/body.ws.ts
@@ -426,6 +427,7 @@ var props2 = {
426
427
  },
427
428
  datatype: { required: false, control: "text", type: "string" },
428
429
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
430
+ defaultValue: { required: false, control: "text", type: "string" },
429
431
  dir: {
430
432
  required: false,
431
433
  control: "text",
@@ -965,6 +967,7 @@ var props3 = {
965
967
  },
966
968
  datatype: { required: false, control: "text", type: "string" },
967
969
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
970
+ defaultValue: { required: false, control: "text", type: "string" },
968
971
  dir: {
969
972
  required: false,
970
973
  control: "text",
@@ -1499,6 +1502,7 @@ var props4 = {
1499
1502
  },
1500
1503
  datatype: { required: false, control: "text", type: "string" },
1501
1504
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
1505
+ defaultValue: { required: false, control: "text", type: "string" },
1502
1506
  dir: {
1503
1507
  required: false,
1504
1508
  control: "text",
@@ -2031,6 +2035,7 @@ var props5 = {
2031
2035
  },
2032
2036
  datatype: { required: false, control: "text", type: "string" },
2033
2037
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
2038
+ defaultValue: { required: false, control: "text", type: "string" },
2034
2039
  dir: {
2035
2040
  required: false,
2036
2041
  control: "text",
@@ -2554,6 +2559,7 @@ var props6 = {
2554
2559
  },
2555
2560
  datatype: { required: false, control: "text", type: "string" },
2556
2561
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
2562
+ defaultValue: { required: false, control: "text", type: "string" },
2557
2563
  dir: {
2558
2564
  required: false,
2559
2565
  control: "text",
@@ -3069,6 +3075,7 @@ var props7 = {
3069
3075
  },
3070
3076
  datatype: { required: false, control: "text", type: "string" },
3071
3077
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
3078
+ defaultValue: { required: false, control: "text", type: "string" },
3072
3079
  dir: {
3073
3080
  required: false,
3074
3081
  control: "text",
@@ -3702,6 +3709,7 @@ var props8 = {
3702
3709
  },
3703
3710
  datatype: { required: false, control: "text", type: "string" },
3704
3711
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
3712
+ defaultValue: { required: false, control: "text", type: "string" },
3705
3713
  dir: {
3706
3714
  required: false,
3707
3715
  control: "text",
@@ -4217,6 +4225,7 @@ var props9 = {
4217
4225
  },
4218
4226
  datatype: { required: false, control: "text", type: "string" },
4219
4227
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
4228
+ defaultValue: { required: false, control: "text", type: "string" },
4220
4229
  dir: {
4221
4230
  required: false,
4222
4231
  control: "text",
@@ -4732,6 +4741,7 @@ var props10 = {
4732
4741
  },
4733
4742
  datatype: { required: false, control: "text", type: "string" },
4734
4743
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
4744
+ defaultValue: { required: false, control: "text", type: "string" },
4735
4745
  dir: {
4736
4746
  required: false,
4737
4747
  control: "text",
@@ -5256,6 +5266,7 @@ var props11 = {
5256
5266
  },
5257
5267
  datatype: { required: false, control: "text", type: "string" },
5258
5268
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
5269
+ defaultValue: { required: false, control: "text", type: "string" },
5259
5270
  dir: {
5260
5271
  required: false,
5261
5272
  control: "text",
@@ -5771,6 +5782,7 @@ var props12 = {
5771
5782
  },
5772
5783
  datatype: { required: false, control: "text", type: "string" },
5773
5784
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
5785
+ defaultValue: { required: false, control: "text", type: "string" },
5774
5786
  dir: {
5775
5787
  required: false,
5776
5788
  control: "text",
@@ -6286,6 +6298,7 @@ var props13 = {
6286
6298
  },
6287
6299
  datatype: { required: false, control: "text", type: "string" },
6288
6300
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
6301
+ defaultValue: { required: false, control: "text", type: "string" },
6289
6302
  dir: {
6290
6303
  required: false,
6291
6304
  control: "text",
@@ -6467,6 +6480,12 @@ var props13 = {
6467
6480
  type: "string",
6468
6481
  options: ["on", "off"]
6469
6482
  },
6483
+ value: {
6484
+ required: false,
6485
+ control: "text",
6486
+ type: "string",
6487
+ description: "Defines a default value which will be displayed in the element on pageload."
6488
+ },
6470
6489
  vocab: { required: false, control: "text", type: "string" }
6471
6490
  };
6472
6491
 
@@ -6906,6 +6925,7 @@ var props14 = {
6906
6925
  },
6907
6926
  datatype: { required: false, control: "text", type: "string" },
6908
6927
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
6928
+ defaultValue: { required: false, control: "text", type: "string" },
6909
6929
  dir: {
6910
6930
  required: false,
6911
6931
  control: "text",
@@ -7189,6 +7209,12 @@ var props14 = {
7189
7209
  type: "string",
7190
7210
  options: ["off", "on"]
7191
7211
  },
7212
+ value: {
7213
+ required: false,
7214
+ control: "text",
7215
+ type: "string",
7216
+ description: "Defines a default value which will be displayed in the element on pageload."
7217
+ },
7192
7218
  vocab: { required: false, control: "text", type: "string" },
7193
7219
  width: {
7194
7220
  required: false,
@@ -7643,6 +7669,7 @@ var props15 = {
7643
7669
  },
7644
7670
  datatype: { required: false, control: "text", type: "string" },
7645
7671
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
7672
+ defaultValue: { required: false, control: "text", type: "string" },
7646
7673
  dir: {
7647
7674
  required: false,
7648
7675
  control: "text",
@@ -8214,6 +8241,7 @@ var props16 = {
8214
8241
  description: "Indicates the preferred method to decode the image."
8215
8242
  },
8216
8243
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
8244
+ defaultValue: { required: false, control: "text", type: "string" },
8217
8245
  dir: {
8218
8246
  required: false,
8219
8247
  control: "text",
@@ -8292,7 +8320,12 @@ var props16 = {
8292
8320
  description: "Determines whether the image will load as soon as possible (Eager), or when it scrolls into view (Lazy). Lazy loading is a great option for pages with many images because it can significantly reduce the time it takes for the page to load initially."
8293
8321
  },
8294
8322
  nonce: { required: false, control: "text", type: "string" },
8295
- optimize: { required: false, control: "boolean", type: "boolean" },
8323
+ optimize: {
8324
+ required: false,
8325
+ control: "boolean",
8326
+ type: "boolean",
8327
+ defaultValue: true
8328
+ },
8296
8329
  prefix: { required: false, control: "text", type: "string" },
8297
8330
  property: { required: false, control: "text", type: "string" },
8298
8331
  quality: { required: false, control: "number", type: "number" },
@@ -8443,12 +8476,24 @@ var propsOverrides = {
8443
8476
  required: false
8444
8477
  }
8445
8478
  };
8479
+ var optimize = props16.optimize;
8480
+ optimize.description = "Optimize the image for enhanced performance.";
8446
8481
  var propsMeta19 = {
8447
8482
  props: {
8448
8483
  ...props16,
8449
- ...propsOverrides
8484
+ ...propsOverrides,
8485
+ optimize
8450
8486
  },
8451
- initialProps: ["id", "className", "src", "width", "height", "alt", "loading"]
8487
+ initialProps: [
8488
+ "id",
8489
+ "className",
8490
+ "src",
8491
+ "width",
8492
+ "height",
8493
+ "alt",
8494
+ "loading",
8495
+ "optimize"
8496
+ ]
8452
8497
  };
8453
8498
 
8454
8499
  // src/blockquote.ws.ts
@@ -8837,6 +8882,7 @@ var props17 = {
8837
8882
  },
8838
8883
  datatype: { required: false, control: "text", type: "string" },
8839
8884
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
8885
+ defaultValue: { required: false, control: "text", type: "string" },
8840
8886
  dir: {
8841
8887
  required: false,
8842
8888
  control: "text",
@@ -9352,6 +9398,7 @@ var props18 = {
9352
9398
  },
9353
9399
  datatype: { required: false, control: "text", type: "string" },
9354
9400
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
9401
+ defaultValue: { required: false, control: "text", type: "string" },
9355
9402
  dir: {
9356
9403
  required: false,
9357
9404
  control: "text",
@@ -9925,6 +9972,7 @@ var props19 = {
9925
9972
  },
9926
9973
  datatype: { required: false, control: "text", type: "string" },
9927
9974
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
9975
+ defaultValue: { required: false, control: "text", type: "string" },
9928
9976
  dir: {
9929
9977
  required: false,
9930
9978
  control: "text",
@@ -10050,6 +10098,12 @@ var props19 = {
10050
10098
  type: "string",
10051
10099
  options: ["on", "off"]
10052
10100
  },
10101
+ value: {
10102
+ required: false,
10103
+ control: "text",
10104
+ type: "string",
10105
+ description: "Defines a default value which will be displayed in the element on pageload."
10106
+ },
10053
10107
  vocab: { required: false, control: "text", type: "string" }
10054
10108
  };
10055
10109
 
@@ -10440,6 +10494,7 @@ var props20 = {
10440
10494
  },
10441
10495
  datatype: { required: false, control: "text", type: "string" },
10442
10496
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
10497
+ defaultValue: { required: false, control: "text", type: "string" },
10443
10498
  dir: {
10444
10499
  required: false,
10445
10500
  control: "text",
@@ -10985,6 +11040,7 @@ var props21 = {
10985
11040
  },
10986
11041
  datatype: { required: false, control: "text", type: "string" },
10987
11042
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
11043
+ defaultValue: { required: false, control: "text", type: "string" },
10988
11044
  dir: {
10989
11045
  required: false,
10990
11046
  control: "text",
@@ -11122,8 +11178,12 @@ var presetStyle11 = {
11122
11178
  value: { type: "keyword", value: "block" }
11123
11179
  },
11124
11180
  {
11125
- property: "whiteSpace",
11126
- value: { type: "keyword", value: "pre-wrap" }
11181
+ property: "whiteSpaceCollapse",
11182
+ value: { type: "keyword", value: "preserve" }
11183
+ },
11184
+ {
11185
+ property: "textWrapMode",
11186
+ value: { type: "keyword", value: "wrap" }
11127
11187
  },
11128
11188
  {
11129
11189
  property: "paddingLeft",
@@ -11532,6 +11592,7 @@ var props22 = {
11532
11592
  },
11533
11593
  datatype: { required: false, control: "text", type: "string" },
11534
11594
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
11595
+ defaultValue: { required: false, control: "text", type: "string" },
11535
11596
  dir: {
11536
11597
  required: false,
11537
11598
  control: "text",
@@ -12083,6 +12144,7 @@ var props23 = {
12083
12144
  },
12084
12145
  datatype: { required: false, control: "text", type: "string" },
12085
12146
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
12147
+ defaultValue: { required: false, control: "text", type: "string" },
12086
12148
  dir: {
12087
12149
  required: false,
12088
12150
  control: "text",
@@ -12263,6 +12325,12 @@ var props23 = {
12263
12325
  type: "string",
12264
12326
  options: ["on", "off"]
12265
12327
  },
12328
+ value: {
12329
+ required: false,
12330
+ control: "text",
12331
+ type: "string",
12332
+ description: "Defines a default value which will be displayed in the element on pageload."
12333
+ },
12266
12334
  vocab: { required: false, control: "text", type: "string" },
12267
12335
  wrap: {
12268
12336
  required: false,
@@ -12718,6 +12786,7 @@ var props24 = {
12718
12786
  },
12719
12787
  datatype: { required: false, control: "text", type: "string" },
12720
12788
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
12789
+ defaultValue: { required: false, control: "text", type: "string" },
12721
12790
  dir: {
12722
12791
  required: false,
12723
12792
  control: "text",
@@ -13452,6 +13521,7 @@ var props25 = {
13452
13521
  },
13453
13522
  datatype: { required: false, control: "text", type: "string" },
13454
13523
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
13524
+ defaultValue: { required: false, control: "text", type: "string" },
13455
13525
  dir: {
13456
13526
  required: false,
13457
13527
  control: "text",
@@ -14200,6 +14270,7 @@ var props26 = {
14200
14270
  },
14201
14271
  datatype: { required: false, control: "text", type: "string" },
14202
14272
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
14273
+ defaultValue: { required: false, control: "text", type: "string" },
14203
14274
  dir: {
14204
14275
  required: false,
14205
14276
  control: "text",
@@ -14881,6 +14952,7 @@ var props27 = {
14881
14952
  description: "Indicates the preferred method to decode the image."
14882
14953
  },
14883
14954
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
14955
+ defaultValue: { required: false, control: "text", type: "string" },
14884
14956
  dir: {
14885
14957
  required: false,
14886
14958
  control: "text",
@@ -15458,6 +15530,7 @@ var props28 = {
15458
15530
  },
15459
15531
  datatype: { required: false, control: "text", type: "string" },
15460
15532
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
15533
+ defaultValue: { required: false, control: "text", type: "string" },
15461
15534
  dir: {
15462
15535
  required: false,
15463
15536
  control: "text",
@@ -15638,6 +15711,12 @@ var props28 = {
15638
15711
  type: "string",
15639
15712
  options: ["on", "off"]
15640
15713
  },
15714
+ value: {
15715
+ required: false,
15716
+ control: "text",
15717
+ type: "string",
15718
+ description: "Defines a default value which will be displayed in the element on pageload."
15719
+ },
15641
15720
  vocab: { required: false, control: "text", type: "string" }
15642
15721
  };
15643
15722
 
@@ -16028,6 +16107,7 @@ var props29 = {
16028
16107
  },
16029
16108
  datatype: { required: false, control: "text", type: "string" },
16030
16109
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
16110
+ defaultValue: { required: false, control: "text", type: "string" },
16031
16111
  dir: {
16032
16112
  required: false,
16033
16113
  control: "text",
@@ -16503,6 +16583,1191 @@ var propsMeta34 = {
16503
16583
  props: props31,
16504
16584
  initialProps: ["datetime", "language", "country", "dateStyle", "timeStyle"]
16505
16585
  };
16586
+
16587
+ // src/select.ws.ts
16588
+ import { SelectIcon } from "@webstudio-is/icons/svg";
16589
+ import {
16590
+ defaultStates as defaultStates29
16591
+ } from "@webstudio-is/react-sdk";
16592
+ import { select } from "@webstudio-is/react-sdk/css-normalize";
16593
+
16594
+ // src/__generated__/select.props.ts
16595
+ var props32 = {
16596
+ about: { required: false, control: "text", type: "string" },
16597
+ accessKey: {
16598
+ required: false,
16599
+ control: "text",
16600
+ type: "string",
16601
+ description: "Keyboard shortcut to activate or add focus to the element."
16602
+ },
16603
+ "aria-activedescendant": {
16604
+ description: "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
16605
+ required: false,
16606
+ control: "text",
16607
+ type: "string"
16608
+ },
16609
+ "aria-atomic": {
16610
+ 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.",
16611
+ required: false,
16612
+ control: "boolean",
16613
+ type: "boolean"
16614
+ },
16615
+ "aria-autocomplete": {
16616
+ 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.",
16617
+ required: false,
16618
+ control: "select",
16619
+ type: "string",
16620
+ options: ["list", "none", "inline", "both"]
16621
+ },
16622
+ "aria-braillelabel": {
16623
+ description: "Defines a string value that labels the current element, which is intended to be converted into Braille.",
16624
+ required: false,
16625
+ control: "text",
16626
+ type: "string"
16627
+ },
16628
+ "aria-brailleroledescription": {
16629
+ description: "Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.",
16630
+ required: false,
16631
+ control: "text",
16632
+ type: "string"
16633
+ },
16634
+ "aria-busy": { required: false, control: "boolean", type: "boolean" },
16635
+ "aria-checked": {
16636
+ description: 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.',
16637
+ required: false,
16638
+ control: "text",
16639
+ type: "string"
16640
+ },
16641
+ "aria-colcount": {
16642
+ description: "Defines the total number of columns in a table, grid, or treegrid.",
16643
+ required: false,
16644
+ control: "number",
16645
+ type: "number"
16646
+ },
16647
+ "aria-colindex": {
16648
+ description: "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.",
16649
+ required: false,
16650
+ control: "number",
16651
+ type: "number"
16652
+ },
16653
+ "aria-colindextext": {
16654
+ description: "Defines a human readable text alternative of aria-colindex.",
16655
+ required: false,
16656
+ control: "text",
16657
+ type: "string"
16658
+ },
16659
+ "aria-colspan": {
16660
+ description: "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.",
16661
+ required: false,
16662
+ control: "number",
16663
+ type: "number"
16664
+ },
16665
+ "aria-controls": {
16666
+ description: "Identifies the element (or elements) whose contents or presence are controlled by the current element.",
16667
+ required: false,
16668
+ control: "text",
16669
+ type: "string"
16670
+ },
16671
+ "aria-current": {
16672
+ description: "Indicates the element that represents the current item within a container or set of related elements.",
16673
+ required: false,
16674
+ control: "text",
16675
+ type: "string"
16676
+ },
16677
+ "aria-describedby": {
16678
+ description: "Identifies the element (or elements) that describes the object.",
16679
+ required: false,
16680
+ control: "text",
16681
+ type: "string"
16682
+ },
16683
+ "aria-description": {
16684
+ description: "Defines a string value that describes or annotates the current element.",
16685
+ required: false,
16686
+ control: "text",
16687
+ type: "string"
16688
+ },
16689
+ "aria-details": {
16690
+ description: "Identifies the element that provides a detailed, extended description for the object.",
16691
+ required: false,
16692
+ control: "text",
16693
+ type: "string"
16694
+ },
16695
+ "aria-disabled": {
16696
+ description: "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.",
16697
+ required: false,
16698
+ control: "boolean",
16699
+ type: "boolean"
16700
+ },
16701
+ "aria-dropeffect": {
16702
+ description: "Indicates what functions can be performed when a dragged object is released on the drop target.",
16703
+ required: false,
16704
+ control: "select",
16705
+ type: "string",
16706
+ options: ["link", "none", "copy", "execute", "move", "popup"]
16707
+ },
16708
+ "aria-errormessage": {
16709
+ description: "Identifies the element that provides an error message for the object.",
16710
+ required: false,
16711
+ control: "text",
16712
+ type: "string"
16713
+ },
16714
+ "aria-expanded": {
16715
+ description: "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
16716
+ required: false,
16717
+ control: "boolean",
16718
+ type: "boolean"
16719
+ },
16720
+ "aria-flowto": {
16721
+ 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.",
16722
+ required: false,
16723
+ control: "text",
16724
+ type: "string"
16725
+ },
16726
+ "aria-grabbed": {
16727
+ description: `Indicates an element's "grabbed" state in a drag-and-drop operation.`,
16728
+ required: false,
16729
+ control: "boolean",
16730
+ type: "boolean"
16731
+ },
16732
+ "aria-haspopup": {
16733
+ description: "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
16734
+ required: false,
16735
+ control: "text",
16736
+ type: "string"
16737
+ },
16738
+ "aria-hidden": {
16739
+ description: "Indicates whether the element is exposed to an accessibility API.",
16740
+ required: false,
16741
+ control: "boolean",
16742
+ type: "boolean"
16743
+ },
16744
+ "aria-invalid": {
16745
+ description: "Indicates the entered value does not conform to the format expected by the application.",
16746
+ required: false,
16747
+ control: "text",
16748
+ type: "string"
16749
+ },
16750
+ "aria-keyshortcuts": {
16751
+ description: "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
16752
+ required: false,
16753
+ control: "text",
16754
+ type: "string"
16755
+ },
16756
+ "aria-label": {
16757
+ 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.",
16758
+ required: false,
16759
+ control: "text",
16760
+ type: "string"
16761
+ },
16762
+ "aria-labelledby": {
16763
+ description: "Identifies the element (or elements) that labels the current element.",
16764
+ required: false,
16765
+ control: "text",
16766
+ type: "string"
16767
+ },
16768
+ "aria-level": {
16769
+ description: "Defines the hierarchical level of an element within a structure.",
16770
+ required: false,
16771
+ control: "number",
16772
+ type: "number"
16773
+ },
16774
+ "aria-live": {
16775
+ 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.",
16776
+ required: false,
16777
+ control: "radio",
16778
+ type: "string",
16779
+ options: ["off", "assertive", "polite"]
16780
+ },
16781
+ "aria-modal": {
16782
+ description: "Indicates whether an element is modal when displayed.",
16783
+ required: false,
16784
+ control: "boolean",
16785
+ type: "boolean"
16786
+ },
16787
+ "aria-multiline": {
16788
+ description: "Indicates whether a text box accepts multiple lines of input or only a single line.",
16789
+ required: false,
16790
+ control: "boolean",
16791
+ type: "boolean"
16792
+ },
16793
+ "aria-multiselectable": {
16794
+ description: "Indicates that the user may select more than one item from the current selectable descendants.",
16795
+ required: false,
16796
+ control: "boolean",
16797
+ type: "boolean"
16798
+ },
16799
+ "aria-orientation": {
16800
+ description: "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
16801
+ required: false,
16802
+ control: "radio",
16803
+ type: "string",
16804
+ options: ["horizontal", "vertical"]
16805
+ },
16806
+ "aria-owns": {
16807
+ 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.",
16808
+ required: false,
16809
+ control: "text",
16810
+ type: "string"
16811
+ },
16812
+ "aria-placeholder": {
16813
+ 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.",
16814
+ required: false,
16815
+ control: "text",
16816
+ type: "string"
16817
+ },
16818
+ "aria-posinset": {
16819
+ 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.",
16820
+ required: false,
16821
+ control: "number",
16822
+ type: "number"
16823
+ },
16824
+ "aria-pressed": {
16825
+ description: 'Indicates the current "pressed" state of toggle buttons.',
16826
+ required: false,
16827
+ control: "text",
16828
+ type: "string"
16829
+ },
16830
+ "aria-readonly": {
16831
+ description: "Indicates that the element is not editable, but is otherwise operable.",
16832
+ required: false,
16833
+ control: "boolean",
16834
+ type: "boolean"
16835
+ },
16836
+ "aria-relevant": {
16837
+ description: "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.",
16838
+ required: false,
16839
+ control: "select",
16840
+ type: "string",
16841
+ options: [
16842
+ "text",
16843
+ "additions",
16844
+ "additions removals",
16845
+ "additions text",
16846
+ "all",
16847
+ "removals",
16848
+ "removals additions",
16849
+ "removals text",
16850
+ "text additions",
16851
+ "text removals"
16852
+ ]
16853
+ },
16854
+ "aria-required": {
16855
+ description: "Indicates that user input is required on the element before a form may be submitted.",
16856
+ required: false,
16857
+ control: "boolean",
16858
+ type: "boolean"
16859
+ },
16860
+ "aria-roledescription": {
16861
+ description: "Defines a human-readable, author-localized description for the role of an element.",
16862
+ required: false,
16863
+ control: "text",
16864
+ type: "string"
16865
+ },
16866
+ "aria-rowcount": {
16867
+ description: "Defines the total number of rows in a table, grid, or treegrid.",
16868
+ required: false,
16869
+ control: "number",
16870
+ type: "number"
16871
+ },
16872
+ "aria-rowindex": {
16873
+ description: "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.",
16874
+ required: false,
16875
+ control: "number",
16876
+ type: "number"
16877
+ },
16878
+ "aria-rowindextext": {
16879
+ description: "Defines a human readable text alternative of aria-rowindex.",
16880
+ required: false,
16881
+ control: "text",
16882
+ type: "string"
16883
+ },
16884
+ "aria-rowspan": {
16885
+ description: "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.",
16886
+ required: false,
16887
+ control: "number",
16888
+ type: "number"
16889
+ },
16890
+ "aria-selected": {
16891
+ description: 'Indicates the current "selected" state of various widgets.',
16892
+ required: false,
16893
+ control: "boolean",
16894
+ type: "boolean"
16895
+ },
16896
+ "aria-setsize": {
16897
+ 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.",
16898
+ required: false,
16899
+ control: "number",
16900
+ type: "number"
16901
+ },
16902
+ "aria-sort": {
16903
+ description: "Indicates if items in a table or grid are sorted in ascending or descending order.",
16904
+ required: false,
16905
+ control: "select",
16906
+ type: "string",
16907
+ options: ["none", "ascending", "descending", "other"]
16908
+ },
16909
+ "aria-valuemax": {
16910
+ description: "Defines the maximum allowed value for a range widget.",
16911
+ required: false,
16912
+ control: "number",
16913
+ type: "number"
16914
+ },
16915
+ "aria-valuemin": {
16916
+ description: "Defines the minimum allowed value for a range widget.",
16917
+ required: false,
16918
+ control: "number",
16919
+ type: "number"
16920
+ },
16921
+ "aria-valuenow": {
16922
+ description: "Defines the current value for a range widget.",
16923
+ required: false,
16924
+ control: "number",
16925
+ type: "number"
16926
+ },
16927
+ "aria-valuetext": {
16928
+ description: "Defines the human readable text alternative of aria-valuenow for a range widget.",
16929
+ required: false,
16930
+ control: "text",
16931
+ type: "string"
16932
+ },
16933
+ autoCapitalize: {
16934
+ required: false,
16935
+ control: "text",
16936
+ type: "string",
16937
+ description: "Sets whether input is automatically capitalized when entered by user."
16938
+ },
16939
+ autoComplete: {
16940
+ required: false,
16941
+ control: "text",
16942
+ type: "string",
16943
+ description: "Indicates whether controls in this form can by default have their valuesautomatically completed by the browser."
16944
+ },
16945
+ autoCorrect: { required: false, control: "text", type: "string" },
16946
+ autoFocus: {
16947
+ required: false,
16948
+ control: "boolean",
16949
+ type: "boolean",
16950
+ description: "Indicates that an element should be focused on page load, or when its parent dialog is displayed."
16951
+ },
16952
+ autoSave: { required: false, control: "text", type: "string" },
16953
+ className: { required: false, control: "text", type: "string" },
16954
+ color: {
16955
+ required: false,
16956
+ control: "color",
16957
+ type: "string",
16958
+ 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."
16959
+ },
16960
+ content: {
16961
+ required: false,
16962
+ control: "text",
16963
+ type: "string",
16964
+ description: "A value associated with http-equiv orname depending on the context."
16965
+ },
16966
+ contextMenu: {
16967
+ required: false,
16968
+ control: "text",
16969
+ type: "string",
16970
+ description: "Defines the ID of a menu element which willserve as the element's context menu."
16971
+ },
16972
+ datatype: { required: false, control: "text", type: "string" },
16973
+ defaultChecked: { required: false, control: "boolean", type: "boolean" },
16974
+ defaultValue: { required: false, control: "text", type: "string" },
16975
+ dir: {
16976
+ required: false,
16977
+ control: "text",
16978
+ type: "string",
16979
+ description: "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)"
16980
+ },
16981
+ disabled: {
16982
+ required: false,
16983
+ control: "boolean",
16984
+ type: "boolean",
16985
+ description: "Indicates whether the user can interact with the element."
16986
+ },
16987
+ draggable: {
16988
+ required: false,
16989
+ control: "boolean",
16990
+ type: "boolean",
16991
+ description: "Defines whether the element can be dragged."
16992
+ },
16993
+ form: {
16994
+ required: false,
16995
+ control: "text",
16996
+ type: "string",
16997
+ description: "Indicates the form that is the owner of the element."
16998
+ },
16999
+ hidden: {
17000
+ required: false,
17001
+ control: "boolean",
17002
+ type: "boolean",
17003
+ description: "Prevents rendering of given element, while keeping child elements, e.g. script elements, active."
17004
+ },
17005
+ id: {
17006
+ required: false,
17007
+ control: "text",
17008
+ type: "string",
17009
+ description: "Often used with CSS to style a specific element. The value of this attribute must be unique."
17010
+ },
17011
+ inputMode: {
17012
+ description: "Hints at the type of data that might be entered by the user while editing the element or its contents",
17013
+ required: false,
17014
+ control: "select",
17015
+ type: "string",
17016
+ options: [
17017
+ "search",
17018
+ "text",
17019
+ "none",
17020
+ "tel",
17021
+ "url",
17022
+ "email",
17023
+ "numeric",
17024
+ "decimal"
17025
+ ]
17026
+ },
17027
+ is: {
17028
+ description: "Specify that a standard HTML element should behave like a defined custom built-in element",
17029
+ required: false,
17030
+ control: "text",
17031
+ type: "string"
17032
+ },
17033
+ itemID: { required: false, control: "text", type: "string" },
17034
+ itemProp: { required: false, control: "text", type: "string" },
17035
+ itemRef: { required: false, control: "text", type: "string" },
17036
+ itemScope: { required: false, control: "boolean", type: "boolean" },
17037
+ itemType: { required: false, control: "text", type: "string" },
17038
+ lang: {
17039
+ required: false,
17040
+ control: "text",
17041
+ type: "string",
17042
+ description: "Defines the language used in the element."
17043
+ },
17044
+ multiple: {
17045
+ required: false,
17046
+ control: "boolean",
17047
+ type: "boolean",
17048
+ description: "Indicates whether multiple values can be entered in an input of the type email or file."
17049
+ },
17050
+ name: {
17051
+ required: false,
17052
+ control: "text",
17053
+ type: "string",
17054
+ 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)."
17055
+ },
17056
+ nonce: { required: false, control: "text", type: "string" },
17057
+ prefix: { required: false, control: "text", type: "string" },
17058
+ property: { required: false, control: "text", type: "string" },
17059
+ radioGroup: { required: false, control: "text", type: "string" },
17060
+ rel: {
17061
+ required: false,
17062
+ control: "text",
17063
+ type: "string",
17064
+ description: "Specifies the relationship of the target object to the link object."
17065
+ },
17066
+ required: {
17067
+ required: false,
17068
+ control: "boolean",
17069
+ type: "boolean",
17070
+ description: "Indicates whether this form element must be filled before the form can be submitted."
17071
+ },
17072
+ resource: { required: false, control: "text", type: "string" },
17073
+ results: { required: false, control: "number", type: "number" },
17074
+ rev: { required: false, control: "text", type: "string" },
17075
+ role: {
17076
+ required: false,
17077
+ control: "text",
17078
+ type: "string",
17079
+ description: "Defines an explicit role for an element for use by assistive technologies."
17080
+ },
17081
+ security: { required: false, control: "text", type: "string" },
17082
+ size: {
17083
+ required: false,
17084
+ control: "number",
17085
+ type: "number",
17086
+ description: "Defines the width of the element (in pixels). If the element'stype attribute is text or password then it's the number of characters."
17087
+ },
17088
+ slot: {
17089
+ required: false,
17090
+ control: "text",
17091
+ type: "string",
17092
+ description: "Assigns a slot in a shadow DOM shadow tree to an element."
17093
+ },
17094
+ spellCheck: {
17095
+ required: false,
17096
+ control: "boolean",
17097
+ type: "boolean",
17098
+ description: "Indicates whether spell checking is allowed for the element."
17099
+ },
17100
+ suppressContentEditableWarning: {
17101
+ required: false,
17102
+ control: "boolean",
17103
+ type: "boolean"
17104
+ },
17105
+ suppressHydrationWarning: {
17106
+ required: false,
17107
+ control: "boolean",
17108
+ type: "boolean"
17109
+ },
17110
+ tabIndex: {
17111
+ required: false,
17112
+ control: "number",
17113
+ type: "number",
17114
+ description: "Overrides the browser's default tab order and follows the one specified instead."
17115
+ },
17116
+ title: {
17117
+ required: false,
17118
+ control: "text",
17119
+ type: "string",
17120
+ description: "Text to be displayed in a tooltip when hovering over the element."
17121
+ },
17122
+ translate: {
17123
+ required: false,
17124
+ control: "radio",
17125
+ type: "string",
17126
+ options: ["yes", "no"],
17127
+ 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."
17128
+ },
17129
+ typeof: { required: false, control: "text", type: "string" },
17130
+ unselectable: {
17131
+ required: false,
17132
+ control: "radio",
17133
+ type: "string",
17134
+ options: ["on", "off"]
17135
+ },
17136
+ value: {
17137
+ required: false,
17138
+ control: "text",
17139
+ type: "string",
17140
+ description: "Defines a default value which will be displayed in the element on pageload."
17141
+ },
17142
+ vocab: { required: false, control: "text", type: "string" }
17143
+ };
17144
+
17145
+ // src/select.ws.ts
17146
+ var presetStyle16 = {
17147
+ select: [
17148
+ ...select,
17149
+ {
17150
+ property: "display",
17151
+ value: { type: "keyword", value: "block" }
17152
+ }
17153
+ ]
17154
+ };
17155
+ var meta10 = {
17156
+ category: "forms",
17157
+ invalidAncestors: ["Button", "Link"],
17158
+ type: "container",
17159
+ label: "Select",
17160
+ description: "A drop-down menu for users to select a single option from a predefined list.",
17161
+ icon: SelectIcon,
17162
+ presetStyle: presetStyle16,
17163
+ order: 4,
17164
+ states: [
17165
+ ...defaultStates29,
17166
+ { selector: "::placeholder", label: "Placeholder" },
17167
+ { selector: ":valid", label: "Valid" },
17168
+ { selector: ":invalid", label: "Invalid" },
17169
+ { selector: ":required", label: "Required" },
17170
+ { selector: ":optional", label: "Optional" }
17171
+ ],
17172
+ template: [
17173
+ {
17174
+ type: "instance",
17175
+ component: "Select",
17176
+ label: "Select",
17177
+ children: [
17178
+ {
17179
+ type: "instance",
17180
+ component: "Option",
17181
+ label: "Option",
17182
+ props: [
17183
+ { type: "string", name: "label", value: "Please choose an option" },
17184
+ { type: "string", name: "value", value: "" }
17185
+ ],
17186
+ children: []
17187
+ },
17188
+ {
17189
+ type: "instance",
17190
+ component: "Option",
17191
+ label: "Option",
17192
+ props: [
17193
+ { type: "string", name: "label", value: "Option A" },
17194
+ { type: "string", name: "value", value: "a" }
17195
+ ],
17196
+ children: []
17197
+ },
17198
+ {
17199
+ type: "instance",
17200
+ component: "Option",
17201
+ label: "Option",
17202
+ props: [
17203
+ { type: "string", name: "label", value: "Option B" },
17204
+ { type: "string", name: "value", value: "b" }
17205
+ ],
17206
+ children: []
17207
+ },
17208
+ {
17209
+ type: "instance",
17210
+ component: "Option",
17211
+ label: "Option",
17212
+ props: [
17213
+ { type: "string", name: "label", value: "Option C" },
17214
+ { type: "string", name: "value", value: "c" }
17215
+ ],
17216
+ children: []
17217
+ }
17218
+ ]
17219
+ }
17220
+ ]
17221
+ };
17222
+ var propsMeta35 = {
17223
+ props: props32,
17224
+ initialProps: [
17225
+ "id",
17226
+ "className",
17227
+ "name",
17228
+ "multiple",
17229
+ "defaultValue",
17230
+ "required",
17231
+ "autoFocus"
17232
+ ]
17233
+ };
17234
+
17235
+ // src/option.ws.ts
17236
+ import { ItemIcon } from "@webstudio-is/icons/svg";
17237
+ import "@webstudio-is/react-sdk";
17238
+
17239
+ // src/__generated__/option.props.ts
17240
+ var props33 = {
17241
+ about: { required: false, control: "text", type: "string" },
17242
+ accessKey: {
17243
+ required: false,
17244
+ control: "text",
17245
+ type: "string",
17246
+ description: "Keyboard shortcut to activate or add focus to the element."
17247
+ },
17248
+ "aria-activedescendant": {
17249
+ description: "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
17250
+ required: false,
17251
+ control: "text",
17252
+ type: "string"
17253
+ },
17254
+ "aria-atomic": {
17255
+ 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.",
17256
+ required: false,
17257
+ control: "boolean",
17258
+ type: "boolean"
17259
+ },
17260
+ "aria-autocomplete": {
17261
+ 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.",
17262
+ required: false,
17263
+ control: "select",
17264
+ type: "string",
17265
+ options: ["list", "none", "inline", "both"]
17266
+ },
17267
+ "aria-braillelabel": {
17268
+ description: "Defines a string value that labels the current element, which is intended to be converted into Braille.",
17269
+ required: false,
17270
+ control: "text",
17271
+ type: "string"
17272
+ },
17273
+ "aria-brailleroledescription": {
17274
+ description: "Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.",
17275
+ required: false,
17276
+ control: "text",
17277
+ type: "string"
17278
+ },
17279
+ "aria-busy": { required: false, control: "boolean", type: "boolean" },
17280
+ "aria-checked": {
17281
+ description: 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.',
17282
+ required: false,
17283
+ control: "text",
17284
+ type: "string"
17285
+ },
17286
+ "aria-colcount": {
17287
+ description: "Defines the total number of columns in a table, grid, or treegrid.",
17288
+ required: false,
17289
+ control: "number",
17290
+ type: "number"
17291
+ },
17292
+ "aria-colindex": {
17293
+ description: "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.",
17294
+ required: false,
17295
+ control: "number",
17296
+ type: "number"
17297
+ },
17298
+ "aria-colindextext": {
17299
+ description: "Defines a human readable text alternative of aria-colindex.",
17300
+ required: false,
17301
+ control: "text",
17302
+ type: "string"
17303
+ },
17304
+ "aria-colspan": {
17305
+ description: "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.",
17306
+ required: false,
17307
+ control: "number",
17308
+ type: "number"
17309
+ },
17310
+ "aria-controls": {
17311
+ description: "Identifies the element (or elements) whose contents or presence are controlled by the current element.",
17312
+ required: false,
17313
+ control: "text",
17314
+ type: "string"
17315
+ },
17316
+ "aria-current": {
17317
+ description: "Indicates the element that represents the current item within a container or set of related elements.",
17318
+ required: false,
17319
+ control: "text",
17320
+ type: "string"
17321
+ },
17322
+ "aria-describedby": {
17323
+ description: "Identifies the element (or elements) that describes the object.",
17324
+ required: false,
17325
+ control: "text",
17326
+ type: "string"
17327
+ },
17328
+ "aria-description": {
17329
+ description: "Defines a string value that describes or annotates the current element.",
17330
+ required: false,
17331
+ control: "text",
17332
+ type: "string"
17333
+ },
17334
+ "aria-details": {
17335
+ description: "Identifies the element that provides a detailed, extended description for the object.",
17336
+ required: false,
17337
+ control: "text",
17338
+ type: "string"
17339
+ },
17340
+ "aria-disabled": {
17341
+ description: "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.",
17342
+ required: false,
17343
+ control: "boolean",
17344
+ type: "boolean"
17345
+ },
17346
+ "aria-dropeffect": {
17347
+ description: "Indicates what functions can be performed when a dragged object is released on the drop target.",
17348
+ required: false,
17349
+ control: "select",
17350
+ type: "string",
17351
+ options: ["link", "none", "copy", "execute", "move", "popup"]
17352
+ },
17353
+ "aria-errormessage": {
17354
+ description: "Identifies the element that provides an error message for the object.",
17355
+ required: false,
17356
+ control: "text",
17357
+ type: "string"
17358
+ },
17359
+ "aria-expanded": {
17360
+ description: "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
17361
+ required: false,
17362
+ control: "boolean",
17363
+ type: "boolean"
17364
+ },
17365
+ "aria-flowto": {
17366
+ 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.",
17367
+ required: false,
17368
+ control: "text",
17369
+ type: "string"
17370
+ },
17371
+ "aria-grabbed": {
17372
+ description: `Indicates an element's "grabbed" state in a drag-and-drop operation.`,
17373
+ required: false,
17374
+ control: "boolean",
17375
+ type: "boolean"
17376
+ },
17377
+ "aria-haspopup": {
17378
+ description: "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
17379
+ required: false,
17380
+ control: "text",
17381
+ type: "string"
17382
+ },
17383
+ "aria-hidden": {
17384
+ description: "Indicates whether the element is exposed to an accessibility API.",
17385
+ required: false,
17386
+ control: "boolean",
17387
+ type: "boolean"
17388
+ },
17389
+ "aria-invalid": {
17390
+ description: "Indicates the entered value does not conform to the format expected by the application.",
17391
+ required: false,
17392
+ control: "text",
17393
+ type: "string"
17394
+ },
17395
+ "aria-keyshortcuts": {
17396
+ description: "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
17397
+ required: false,
17398
+ control: "text",
17399
+ type: "string"
17400
+ },
17401
+ "aria-label": {
17402
+ 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.",
17403
+ required: false,
17404
+ control: "text",
17405
+ type: "string"
17406
+ },
17407
+ "aria-labelledby": {
17408
+ description: "Identifies the element (or elements) that labels the current element.",
17409
+ required: false,
17410
+ control: "text",
17411
+ type: "string"
17412
+ },
17413
+ "aria-level": {
17414
+ description: "Defines the hierarchical level of an element within a structure.",
17415
+ required: false,
17416
+ control: "number",
17417
+ type: "number"
17418
+ },
17419
+ "aria-live": {
17420
+ 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.",
17421
+ required: false,
17422
+ control: "radio",
17423
+ type: "string",
17424
+ options: ["off", "assertive", "polite"]
17425
+ },
17426
+ "aria-modal": {
17427
+ description: "Indicates whether an element is modal when displayed.",
17428
+ required: false,
17429
+ control: "boolean",
17430
+ type: "boolean"
17431
+ },
17432
+ "aria-multiline": {
17433
+ description: "Indicates whether a text box accepts multiple lines of input or only a single line.",
17434
+ required: false,
17435
+ control: "boolean",
17436
+ type: "boolean"
17437
+ },
17438
+ "aria-multiselectable": {
17439
+ description: "Indicates that the user may select more than one item from the current selectable descendants.",
17440
+ required: false,
17441
+ control: "boolean",
17442
+ type: "boolean"
17443
+ },
17444
+ "aria-orientation": {
17445
+ description: "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
17446
+ required: false,
17447
+ control: "radio",
17448
+ type: "string",
17449
+ options: ["horizontal", "vertical"]
17450
+ },
17451
+ "aria-owns": {
17452
+ 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.",
17453
+ required: false,
17454
+ control: "text",
17455
+ type: "string"
17456
+ },
17457
+ "aria-placeholder": {
17458
+ 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.",
17459
+ required: false,
17460
+ control: "text",
17461
+ type: "string"
17462
+ },
17463
+ "aria-posinset": {
17464
+ 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.",
17465
+ required: false,
17466
+ control: "number",
17467
+ type: "number"
17468
+ },
17469
+ "aria-pressed": {
17470
+ description: 'Indicates the current "pressed" state of toggle buttons.',
17471
+ required: false,
17472
+ control: "text",
17473
+ type: "string"
17474
+ },
17475
+ "aria-readonly": {
17476
+ description: "Indicates that the element is not editable, but is otherwise operable.",
17477
+ required: false,
17478
+ control: "boolean",
17479
+ type: "boolean"
17480
+ },
17481
+ "aria-relevant": {
17482
+ description: "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.",
17483
+ required: false,
17484
+ control: "select",
17485
+ type: "string",
17486
+ options: [
17487
+ "text",
17488
+ "additions",
17489
+ "additions removals",
17490
+ "additions text",
17491
+ "all",
17492
+ "removals",
17493
+ "removals additions",
17494
+ "removals text",
17495
+ "text additions",
17496
+ "text removals"
17497
+ ]
17498
+ },
17499
+ "aria-required": {
17500
+ description: "Indicates that user input is required on the element before a form may be submitted.",
17501
+ required: false,
17502
+ control: "boolean",
17503
+ type: "boolean"
17504
+ },
17505
+ "aria-roledescription": {
17506
+ description: "Defines a human-readable, author-localized description for the role of an element.",
17507
+ required: false,
17508
+ control: "text",
17509
+ type: "string"
17510
+ },
17511
+ "aria-rowcount": {
17512
+ description: "Defines the total number of rows in a table, grid, or treegrid.",
17513
+ required: false,
17514
+ control: "number",
17515
+ type: "number"
17516
+ },
17517
+ "aria-rowindex": {
17518
+ description: "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.",
17519
+ required: false,
17520
+ control: "number",
17521
+ type: "number"
17522
+ },
17523
+ "aria-rowindextext": {
17524
+ description: "Defines a human readable text alternative of aria-rowindex.",
17525
+ required: false,
17526
+ control: "text",
17527
+ type: "string"
17528
+ },
17529
+ "aria-rowspan": {
17530
+ description: "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.",
17531
+ required: false,
17532
+ control: "number",
17533
+ type: "number"
17534
+ },
17535
+ "aria-selected": {
17536
+ description: 'Indicates the current "selected" state of various widgets.',
17537
+ required: false,
17538
+ control: "boolean",
17539
+ type: "boolean"
17540
+ },
17541
+ "aria-setsize": {
17542
+ 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.",
17543
+ required: false,
17544
+ control: "number",
17545
+ type: "number"
17546
+ },
17547
+ "aria-sort": {
17548
+ description: "Indicates if items in a table or grid are sorted in ascending or descending order.",
17549
+ required: false,
17550
+ control: "select",
17551
+ type: "string",
17552
+ options: ["none", "ascending", "descending", "other"]
17553
+ },
17554
+ "aria-valuemax": {
17555
+ description: "Defines the maximum allowed value for a range widget.",
17556
+ required: false,
17557
+ control: "number",
17558
+ type: "number"
17559
+ },
17560
+ "aria-valuemin": {
17561
+ description: "Defines the minimum allowed value for a range widget.",
17562
+ required: false,
17563
+ control: "number",
17564
+ type: "number"
17565
+ },
17566
+ "aria-valuenow": {
17567
+ description: "Defines the current value for a range widget.",
17568
+ required: false,
17569
+ control: "number",
17570
+ type: "number"
17571
+ },
17572
+ "aria-valuetext": {
17573
+ description: "Defines the human readable text alternative of aria-valuenow for a range widget.",
17574
+ required: false,
17575
+ control: "text",
17576
+ type: "string"
17577
+ },
17578
+ autoCapitalize: {
17579
+ required: false,
17580
+ control: "text",
17581
+ type: "string",
17582
+ description: "Sets whether input is automatically capitalized when entered by user."
17583
+ },
17584
+ autoCorrect: { required: false, control: "text", type: "string" },
17585
+ autoFocus: {
17586
+ required: false,
17587
+ control: "boolean",
17588
+ type: "boolean",
17589
+ description: "Indicates that an element should be focused on page load, or when its parent dialog is displayed."
17590
+ },
17591
+ autoSave: { required: false, control: "text", type: "string" },
17592
+ className: { required: false, control: "text", type: "string" },
17593
+ color: {
17594
+ required: false,
17595
+ control: "color",
17596
+ type: "string",
17597
+ 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."
17598
+ },
17599
+ content: {
17600
+ required: false,
17601
+ control: "text",
17602
+ type: "string",
17603
+ description: "A value associated with http-equiv orname depending on the context."
17604
+ },
17605
+ contextMenu: {
17606
+ required: false,
17607
+ control: "text",
17608
+ type: "string",
17609
+ description: "Defines the ID of a menu element which willserve as the element's context menu."
17610
+ },
17611
+ datatype: { required: false, control: "text", type: "string" },
17612
+ defaultChecked: { required: false, control: "boolean", type: "boolean" },
17613
+ defaultValue: { required: false, control: "text", type: "string" },
17614
+ dir: {
17615
+ required: false,
17616
+ control: "text",
17617
+ type: "string",
17618
+ description: "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)"
17619
+ },
17620
+ disabled: {
17621
+ required: false,
17622
+ control: "boolean",
17623
+ type: "boolean",
17624
+ description: "Indicates whether the user can interact with the element."
17625
+ },
17626
+ draggable: {
17627
+ required: false,
17628
+ control: "boolean",
17629
+ type: "boolean",
17630
+ description: "Defines whether the element can be dragged."
17631
+ },
17632
+ hidden: {
17633
+ required: false,
17634
+ control: "boolean",
17635
+ type: "boolean",
17636
+ description: "Prevents rendering of given element, while keeping child elements, e.g. script elements, active."
17637
+ },
17638
+ id: {
17639
+ required: false,
17640
+ control: "text",
17641
+ type: "string",
17642
+ description: "Often used with CSS to style a specific element. The value of this attribute must be unique."
17643
+ },
17644
+ inputMode: {
17645
+ description: "Hints at the type of data that might be entered by the user while editing the element or its contents",
17646
+ required: false,
17647
+ control: "select",
17648
+ type: "string",
17649
+ options: [
17650
+ "search",
17651
+ "text",
17652
+ "none",
17653
+ "tel",
17654
+ "url",
17655
+ "email",
17656
+ "numeric",
17657
+ "decimal"
17658
+ ]
17659
+ },
17660
+ is: {
17661
+ description: "Specify that a standard HTML element should behave like a defined custom built-in element",
17662
+ required: false,
17663
+ control: "text",
17664
+ type: "string"
17665
+ },
17666
+ itemID: { required: false, control: "text", type: "string" },
17667
+ itemProp: { required: false, control: "text", type: "string" },
17668
+ itemRef: { required: false, control: "text", type: "string" },
17669
+ itemScope: { required: false, control: "boolean", type: "boolean" },
17670
+ itemType: { required: false, control: "text", type: "string" },
17671
+ label: {
17672
+ required: false,
17673
+ control: "text",
17674
+ type: "string",
17675
+ description: "Specifies a user-readable title of the element."
17676
+ },
17677
+ lang: {
17678
+ required: false,
17679
+ control: "text",
17680
+ type: "string",
17681
+ description: "Defines the language used in the element."
17682
+ },
17683
+ nonce: { required: false, control: "text", type: "string" },
17684
+ prefix: { required: false, control: "text", type: "string" },
17685
+ property: { required: false, control: "text", type: "string" },
17686
+ radioGroup: { required: false, control: "text", type: "string" },
17687
+ rel: {
17688
+ required: false,
17689
+ control: "text",
17690
+ type: "string",
17691
+ description: "Specifies the relationship of the target object to the link object."
17692
+ },
17693
+ resource: { required: false, control: "text", type: "string" },
17694
+ results: { required: false, control: "number", type: "number" },
17695
+ rev: { required: false, control: "text", type: "string" },
17696
+ role: {
17697
+ required: false,
17698
+ control: "text",
17699
+ type: "string",
17700
+ description: "Defines an explicit role for an element for use by assistive technologies."
17701
+ },
17702
+ security: { required: false, control: "text", type: "string" },
17703
+ selected: {
17704
+ required: false,
17705
+ control: "boolean",
17706
+ type: "boolean",
17707
+ description: "Defines a value which will be selected on page load."
17708
+ },
17709
+ slot: {
17710
+ required: false,
17711
+ control: "text",
17712
+ type: "string",
17713
+ description: "Assigns a slot in a shadow DOM shadow tree to an element."
17714
+ },
17715
+ spellCheck: {
17716
+ required: false,
17717
+ control: "boolean",
17718
+ type: "boolean",
17719
+ description: "Indicates whether spell checking is allowed for the element."
17720
+ },
17721
+ suppressContentEditableWarning: {
17722
+ required: false,
17723
+ control: "boolean",
17724
+ type: "boolean"
17725
+ },
17726
+ suppressHydrationWarning: {
17727
+ required: false,
17728
+ control: "boolean",
17729
+ type: "boolean"
17730
+ },
17731
+ tabIndex: {
17732
+ required: false,
17733
+ control: "number",
17734
+ type: "number",
17735
+ description: "Overrides the browser's default tab order and follows the one specified instead."
17736
+ },
17737
+ title: {
17738
+ required: false,
17739
+ control: "text",
17740
+ type: "string",
17741
+ description: "Text to be displayed in a tooltip when hovering over the element."
17742
+ },
17743
+ translate: {
17744
+ required: false,
17745
+ control: "radio",
17746
+ type: "string",
17747
+ options: ["yes", "no"],
17748
+ 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."
17749
+ },
17750
+ typeof: { required: false, control: "text", type: "string" },
17751
+ unselectable: {
17752
+ required: false,
17753
+ control: "radio",
17754
+ type: "string",
17755
+ options: ["on", "off"]
17756
+ },
17757
+ value: {
17758
+ required: false,
17759
+ control: "text",
17760
+ type: "string",
17761
+ description: "Defines a default value which will be displayed in the element on pageload."
17762
+ },
17763
+ vocab: { required: false, control: "text", type: "string" }
17764
+ };
17765
+
17766
+ // src/option.ws.ts
17767
+ var propsMeta36 = {
17768
+ props: props33,
17769
+ initialProps: ["label", "selected", "value", "label", "disabled"]
17770
+ };
16506
17771
  export {
16507
17772
  propsMeta20 as Blockquote,
16508
17773
  propsMeta4 as Body,
@@ -16522,9 +17787,11 @@ export {
16522
17787
  propsMeta9 as Link,
16523
17788
  propsMeta21 as List,
16524
17789
  propsMeta22 as ListItem,
17790
+ propsMeta36 as Option,
16525
17791
  propsMeta8 as Paragraph,
16526
17792
  propsMeta27 as RadioButton,
16527
17793
  propsMeta10 as RichTextLink,
17794
+ propsMeta35 as Select,
16528
17795
  propsMeta23 as Separator,
16529
17796
  propsMeta as Slot,
16530
17797
  propsMeta11 as Span,