@voidable/ui 0.8.1 → 0.10.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 (118) hide show
  1. package/README.md +8 -0
  2. package/dist/base-entry.d.ts +1 -0
  3. package/dist/base.d.ts +2 -1
  4. package/dist/base.js +5 -1
  5. package/dist/chunks/base-BxmMM3B7.js +298 -0
  6. package/dist/chunks/{keyboard-MQpfTX5I.js → keyboard-CEhMSkws.js} +19 -3
  7. package/dist/chunks/{modal-D_YVy2vg.js → modal-CgGp_fCs.js} +3 -3
  8. package/dist/chunks/{overlay-BywGMcDW.js → overlay-hLJ7IQHx.js} +2 -2
  9. package/dist/chunks/{parts-D30c8OoG.js → parts-DI_3VpSy.js} +25 -18
  10. package/dist/chunks/{base-CMruMbxC.js → projection-SnR79EHI.js} +105 -389
  11. package/dist/chunks/secret-value-CmTtVkMg.js +14 -0
  12. package/dist/chunks/value-list-CH6GjYXM.js +28 -0
  13. package/dist/components/accordion.js +2 -2
  14. package/dist/components/action-input.d.ts +8 -4
  15. package/dist/components/action-input.js +61 -49
  16. package/dist/components/alert.js +2 -2
  17. package/dist/components/avatar.js +13 -11
  18. package/dist/components/badge.js +1 -1
  19. package/dist/components/banner.js +2 -2
  20. package/dist/components/bar-chart.js +31 -29
  21. package/dist/components/breadcrumbs.js +2 -2
  22. package/dist/components/button.js +1 -1
  23. package/dist/components/calendar.js +78 -76
  24. package/dist/components/card.js +1 -1
  25. package/dist/components/carousel.js +18 -17
  26. package/dist/components/checkbox-group.d.ts +10 -0
  27. package/dist/components/checkbox-group.js +36 -23
  28. package/dist/components/checkbox.d.ts +2 -2
  29. package/dist/components/checkbox.js +17 -16
  30. package/dist/components/collapsible.js +2 -2
  31. package/dist/components/color-picker.d.ts +2 -2
  32. package/dist/components/color-picker.js +26 -24
  33. package/dist/components/combobox.d.ts +4 -2
  34. package/dist/components/combobox.js +22 -18
  35. package/dist/components/compose-input.d.ts +1 -1
  36. package/dist/components/compose-input.js +15 -10
  37. package/dist/components/dialog.js +1 -1
  38. package/dist/components/divider.js +11 -9
  39. package/dist/components/donut-chart.js +51 -49
  40. package/dist/components/drawer.d.ts +2 -2
  41. package/dist/components/drawer.js +1 -1
  42. package/dist/components/dropdown-menu.js +4 -4
  43. package/dist/components/editable.d.ts +1 -1
  44. package/dist/components/editable.js +13 -12
  45. package/dist/components/error-fallback.js +2 -2
  46. package/dist/components/field.js +10 -9
  47. package/dist/components/file-upload.js +19 -17
  48. package/dist/components/gauge.js +90 -85
  49. package/dist/components/hamburger.js +11 -9
  50. package/dist/components/hover-card.js +3 -3
  51. package/dist/components/indicator.js +14 -12
  52. package/dist/components/input.d.ts +6 -2
  53. package/dist/components/input.js +46 -34
  54. package/dist/components/line-chart.js +41 -39
  55. package/dist/components/list.js +1 -1
  56. package/dist/components/menu.js +3 -3
  57. package/dist/components/multiselect.d.ts +9 -0
  58. package/dist/components/multiselect.js +64 -54
  59. package/dist/components/nav-bar.js +1 -1
  60. package/dist/components/nav-menu.js +20 -19
  61. package/dist/components/number-input.d.ts +2 -2
  62. package/dist/components/number-input.js +17 -15
  63. package/dist/components/pagination.js +22 -20
  64. package/dist/components/panel.js +2 -2
  65. package/dist/components/pin-input.d.ts +6 -2
  66. package/dist/components/pin-input.js +39 -27
  67. package/dist/components/popover.js +3 -3
  68. package/dist/components/progress.js +14 -12
  69. package/dist/components/radio-group.d.ts +2 -2
  70. package/dist/components/radio-group.js +15 -10
  71. package/dist/components/radio.d.ts +25 -0
  72. package/dist/components/radio.js +78 -29
  73. package/dist/components/scroll-area.js +8 -7
  74. package/dist/components/segmented-control.d.ts +1 -1
  75. package/dist/components/segmented-control.js +21 -21
  76. package/dist/components/select.d.ts +67 -16
  77. package/dist/components/select.js +183 -56
  78. package/dist/components/sidebar.d.ts +2 -2
  79. package/dist/components/sidebar.js +2 -2
  80. package/dist/components/skeleton.js +1 -1
  81. package/dist/components/slider.d.ts +2 -2
  82. package/dist/components/slider.js +18 -13
  83. package/dist/components/spinner.js +11 -9
  84. package/dist/components/stat.js +19 -17
  85. package/dist/components/status-dot.js +1 -1
  86. package/dist/components/stepper.js +15 -13
  87. package/dist/components/switch.d.ts +1 -1
  88. package/dist/components/switch.js +14 -12
  89. package/dist/components/table.js +1 -1
  90. package/dist/components/tabs.js +29 -29
  91. package/dist/components/tag.js +9 -8
  92. package/dist/components/tags-input.d.ts +1 -1
  93. package/dist/components/tags-input.js +25 -19
  94. package/dist/components/textarea.d.ts +2 -2
  95. package/dist/components/textarea.js +36 -31
  96. package/dist/components/toast.d.ts +19 -2
  97. package/dist/components/toast.js +43 -10
  98. package/dist/components/toggle-group.d.ts +2 -2
  99. package/dist/components/toggle-group.js +16 -15
  100. package/dist/components/toggle.js +5 -2
  101. package/dist/components/tooltip.js +3 -3
  102. package/dist/components.json +3 -3
  103. package/dist/custom-elements.json +133 -67
  104. package/dist/dev/types.d.ts +2 -3
  105. package/dist/dev.js +81 -55
  106. package/dist/index.js +1 -1
  107. package/dist/keyboard.d.ts +10 -0
  108. package/dist/llms.txt +125 -0
  109. package/dist/parts.d.ts +8 -1
  110. package/dist/projection-api.d.ts +23 -0
  111. package/dist/projection.d.ts +8 -2
  112. package/dist/reference.md +4575 -0
  113. package/dist/secret-value.d.ts +17 -0
  114. package/dist/types/elements.d.ts +2 -2
  115. package/dist/value-list.d.ts +14 -0
  116. package/dist/vscode.html-custom-data.json +46 -26
  117. package/dist/web-types.json +73 -53
  118. package/package.json +5 -3
@@ -1515,8 +1515,9 @@
1515
1515
  "text": "string"
1516
1516
  },
1517
1517
  "default": "''",
1518
- "description": "The text in the field. As an attribute it is the initial value; read or set the `value` property for\nthe current text.",
1519
- "attribute": "value"
1518
+ "description": "The text in the field. Reflected to the `value` attribute as it changes, and setting the attribute\nsets it; the form's reset target stays the value the field started with. A `type=\"password\"` field\ndoes not reflect: its attribute is only ever the initial value.",
1519
+ "attribute": "value",
1520
+ "reflects": true
1520
1521
  },
1521
1522
  {
1522
1523
  "kind": "field",
@@ -1705,10 +1706,10 @@
1705
1706
  "kind": "field",
1706
1707
  "name": "iconSide",
1707
1708
  "type": {
1708
- "text": "'left' | 'right'"
1709
+ "text": "'start' | 'end'"
1709
1710
  },
1710
- "default": "'right'",
1711
- "description": "Which side of the field the button sits on: `right` (default) or `left`.",
1711
+ "default": "'end'",
1712
+ "description": "Which side of the field the button sits on, in the reading direction: `end` (default) or `start`.",
1712
1713
  "attribute": "icon-side",
1713
1714
  "reflects": true
1714
1715
  },
@@ -1948,7 +1949,7 @@
1948
1949
  "text": "string"
1949
1950
  },
1950
1951
  "default": "''",
1951
- "description": "The text in the field. As an attribute it is the initial value; read or set the `value` property for\nthe current text.",
1952
+ "description": "The text in the field. Reflected to the `value` attribute as it changes, and setting the attribute\nsets it; the form's reset target stays the value the field started with. A `type=\"password\"` field\ndoes not reflect: its attribute is only ever the initial value.",
1952
1953
  "fieldName": "value"
1953
1954
  },
1954
1955
  {
@@ -2118,10 +2119,10 @@
2118
2119
  {
2119
2120
  "name": "icon-side",
2120
2121
  "type": {
2121
- "text": "'left' | 'right'"
2122
+ "text": "'start' | 'end'"
2122
2123
  },
2123
- "default": "'right'",
2124
- "description": "Which side of the field the button sits on: `right` (default) or `left`.",
2124
+ "default": "'end'",
2125
+ "description": "Which side of the field the button sits on, in the reading direction: `end` (default) or `start`.",
2125
2126
  "fieldName": "iconSide"
2126
2127
  },
2127
2128
  {
@@ -2179,11 +2180,21 @@
2179
2180
  "voidRenamed": {
2180
2181
  "attributes": {
2181
2182
  "position": {
2182
- "to": "icon-side"
2183
+ "to": "icon-side",
2184
+ "values": {
2185
+ "left": "icon-side=\"start\"",
2186
+ "right": "icon-side=\"end\""
2187
+ }
2183
2188
  },
2184
2189
  "tooltip-position": {
2185
2190
  "to": "tooltip-side"
2186
2191
  }
2192
+ },
2193
+ "values": {
2194
+ "icon-side": {
2195
+ "left": "start",
2196
+ "right": "end"
2197
+ }
2187
2198
  }
2188
2199
  }
2189
2200
  }
@@ -7028,7 +7039,10 @@
7028
7039
  "type": {
7029
7040
  "text": "string[]"
7030
7041
  },
7031
- "description": "Check exactly the child checkboxes whose value is listed. Does not fire void-change."
7042
+ "description": "Check exactly the child checkboxes whose value is listed. Does not fire void-change.",
7043
+ "default": "[]",
7044
+ "attribute": "value",
7045
+ "reflects": true
7032
7046
  },
7033
7047
  {
7034
7048
  "kind": "field",
@@ -7311,6 +7325,15 @@
7311
7325
  "description": "Disables every checkbox in the group (like a fieldset).",
7312
7326
  "fieldName": "disabled"
7313
7327
  },
7328
+ {
7329
+ "name": "value",
7330
+ "type": {
7331
+ "text": "string[]"
7332
+ },
7333
+ "description": "Check exactly the child checkboxes whose value is listed. Does not fire void-change.",
7334
+ "default": "[]",
7335
+ "fieldName": "value"
7336
+ },
7314
7337
  {
7315
7338
  "name": "form",
7316
7339
  "type": {
@@ -7391,7 +7414,7 @@
7391
7414
  "text": "boolean"
7392
7415
  },
7393
7416
  "default": "false",
7394
- "description": "Whether the box is checked. Updated when the user toggles it; the attribute is the initial state and\nthe form's reset target.",
7417
+ "description": "Whether the box is checked. Reflected to the attribute as the user toggles it or a script sets it;\nthe form's reset target stays the state it started with.",
7395
7418
  "attribute": "checked",
7396
7419
  "reflects": true
7397
7420
  },
@@ -7714,7 +7737,7 @@
7714
7737
  "text": "boolean"
7715
7738
  },
7716
7739
  "default": "false",
7717
- "description": "Whether the box is checked. Updated when the user toggles it; the attribute is the initial state and\nthe form's reset target.",
7740
+ "description": "Whether the box is checked. Reflected to the attribute as the user toggles it or a script sets it;\nthe form's reset target stays the state it started with.",
7718
7741
  "fieldName": "checked"
7719
7742
  },
7720
7743
  {
@@ -8215,7 +8238,7 @@
8215
8238
  "text": "string"
8216
8239
  },
8217
8240
  "default": "'#000000'",
8218
- "description": "Selected colour as a hex string (six digits after the hash). Defaults to black. As an attribute it is the\ninitial value and the form's reset target.",
8241
+ "description": "Selected colour as a hex string (six digits after the hash). Defaults to black. Reflected to the attribute as it\nchanges; the form's reset target stays the value it started with.",
8219
8242
  "attribute": "value",
8220
8243
  "reflects": true
8221
8244
  },
@@ -8613,7 +8636,7 @@
8613
8636
  "text": "string"
8614
8637
  },
8615
8638
  "default": "'#000000'",
8616
- "description": "Selected colour as a hex string (six digits after the hash). Defaults to black. As an attribute it is the\ninitial value and the form's reset target.",
8639
+ "description": "Selected colour as a hex string (six digits after the hash). Defaults to black. Reflected to the attribute as it\nchanges; the form's reset target stays the value it started with.",
8617
8640
  "fieldName": "value"
8618
8641
  },
8619
8642
  {
@@ -8794,8 +8817,9 @@
8794
8817
  "text": "string"
8795
8818
  },
8796
8819
  "default": "''",
8797
- "description": "`value` of the chosen `void-option`. As an attribute it is the initial choice (without it, an option marked\n`selected` is); read the `value` property for the current one.",
8798
- "attribute": "value"
8820
+ "description": "`value` of the chosen `void-option`. Reflected to the attribute as the choice changes. Written in markup\nit is the initial choice (without it, an option marked `selected` is), which a form reset restores.",
8821
+ "attribute": "value",
8822
+ "reflects": true
8799
8823
  },
8800
8824
  {
8801
8825
  "kind": "field",
@@ -9176,7 +9200,7 @@
9176
9200
  "text": "string"
9177
9201
  },
9178
9202
  "default": "''",
9179
- "description": "`value` of the chosen `void-option`. As an attribute it is the initial choice (without it, an option marked\n`selected` is); read the `value` property for the current one.",
9203
+ "description": "`value` of the chosen `void-option`. Reflected to the attribute as the choice changes. Written in markup\nit is the initial choice (without it, an option marked `selected` is), which a form reset restores.",
9180
9204
  "fieldName": "value"
9181
9205
  },
9182
9206
  {
@@ -9370,8 +9394,9 @@
9370
9394
  "text": "string"
9371
9395
  },
9372
9396
  "default": "''",
9373
- "description": "The draft text. It is cleared after each send.",
9374
- "attribute": "value"
9397
+ "description": "The draft text, reflected to the `value` attribute as it changes. It is cleared after each send.",
9398
+ "attribute": "value",
9399
+ "reflects": true
9375
9400
  },
9376
9401
  {
9377
9402
  "kind": "field",
@@ -9603,7 +9628,7 @@
9603
9628
  "text": "string"
9604
9629
  },
9605
9630
  "default": "''",
9606
- "description": "The draft text. It is cleared after each send.",
9631
+ "description": "The draft text, reflected to the `value` attribute as it changes. It is cleared after each send.",
9607
9632
  "fieldName": "value"
9608
9633
  },
9609
9634
  {
@@ -10795,10 +10820,10 @@
10795
10820
  "kind": "field",
10796
10821
  "name": "side",
10797
10822
  "type": {
10798
- "text": "'left' | 'right' | 'top' | 'bottom'"
10823
+ "text": "'left' | 'right' | 'start' | 'end' | 'top' | 'bottom'"
10799
10824
  },
10800
10825
  "default": "'right'",
10801
- "description": "Screen edge the drawer slides in from: `right` (default), `left`, `top` or `bottom`.",
10826
+ "description": "Edge the drawer slides in from: `right` (default), `left`, `top` or `bottom` (the screen edges), or `start` or `end` (the side the text starts or ends on, so they swap in right-to-left).",
10802
10827
  "attribute": "side",
10803
10828
  "reflects": true
10804
10829
  },
@@ -11073,10 +11098,10 @@
11073
11098
  {
11074
11099
  "name": "side",
11075
11100
  "type": {
11076
- "text": "'left' | 'right' | 'top' | 'bottom'"
11101
+ "text": "'left' | 'right' | 'start' | 'end' | 'top' | 'bottom'"
11077
11102
  },
11078
11103
  "default": "'right'",
11079
- "description": "Screen edge the drawer slides in from: `right` (default), `left`, `top` or `bottom`.",
11104
+ "description": "Edge the drawer slides in from: `right` (default), `left`, `top` or `bottom` (the screen edges), or `start` or `end` (the side the text starts or ends on, so they swap in right-to-left).",
11080
11105
  "fieldName": "side"
11081
11106
  },
11082
11107
  {
@@ -11969,7 +11994,7 @@
11969
11994
  "text": "string"
11970
11995
  },
11971
11996
  "default": "''",
11972
- "description": "The committed text. As an attribute it is the initial value and the form's reset target. Text still\nbeing edited is not part of it until committed.",
11997
+ "description": "The committed text. Reflected to the attribute as it changes; the form's reset target stays the value it started with. Text still\nbeing edited is not part of it until committed.",
11973
11998
  "attribute": "value",
11974
11999
  "reflects": true
11975
12000
  },
@@ -12338,7 +12363,7 @@
12338
12363
  "text": "string"
12339
12364
  },
12340
12365
  "default": "''",
12341
- "description": "The committed text. As an attribute it is the initial value and the form's reset target. Text still\nbeing edited is not part of it until committed.",
12366
+ "description": "The committed text. Reflected to the attribute as it changes; the form's reset target stays the value it started with. Text still\nbeing edited is not part of it until committed.",
12342
12367
  "fieldName": "value"
12343
12368
  },
12344
12369
  {
@@ -13683,7 +13708,8 @@
13683
13708
  },
13684
13709
  "default": "0",
13685
13710
  "description": "The reading, between `min` and `max`, for a single-value gauge. For a gauge split into segments set\n`data.segments` instead.",
13686
- "attribute": "value"
13711
+ "attribute": "value",
13712
+ "reflects": true
13687
13713
  },
13688
13714
  {
13689
13715
  "kind": "field",
@@ -15378,8 +15404,9 @@
15378
15404
  "text": "string"
15379
15405
  },
15380
15406
  "default": "''",
15381
- "description": "The text in the field. As an attribute it is the initial value (and the form's reset target); read\nor set the `value` property for the current text.",
15382
- "attribute": "value"
15407
+ "description": "The text in the field. Reflected to the `value` attribute as it changes, and setting the attribute\nsets it; the form's reset target stays the value the field started with. A `type=\"password\"` field\ndoes not reflect: its attribute is only ever the initial value.",
15408
+ "attribute": "value",
15409
+ "reflects": true
15383
15410
  },
15384
15411
  {
15385
15412
  "kind": "field",
@@ -15760,7 +15787,7 @@
15760
15787
  "text": "string"
15761
15788
  },
15762
15789
  "default": "''",
15763
- "description": "The text in the field. As an attribute it is the initial value (and the form's reset target); read\nor set the `value` property for the current text.",
15790
+ "description": "The text in the field. Reflected to the `value` attribute as it changes, and setting the attribute\nsets it; the form's reset target stays the value the field started with. A `type=\"password\"` field\ndoes not reflect: its attribute is only ever the initial value.",
15764
15791
  "fieldName": "value"
15765
15792
  },
15766
15793
  {
@@ -18260,7 +18287,10 @@
18260
18287
  "type": {
18261
18288
  "text": "string[]"
18262
18289
  },
18263
- "description": "Select exactly the options whose value is listed. Does not fire void-change."
18290
+ "description": "Select exactly the options whose value is listed. Does not fire void-change.",
18291
+ "default": "[]",
18292
+ "attribute": "value",
18293
+ "reflects": true
18264
18294
  },
18265
18295
  {
18266
18296
  "kind": "field",
@@ -18625,6 +18655,15 @@
18625
18655
  "description": "Whether the option list is showing. Reflected, so it can be read (and set) from markup.",
18626
18656
  "fieldName": "open"
18627
18657
  },
18658
+ {
18659
+ "name": "value",
18660
+ "type": {
18661
+ "text": "string[]"
18662
+ },
18663
+ "description": "Select exactly the options whose value is listed. Does not fire void-change.",
18664
+ "default": "[]",
18665
+ "fieldName": "value"
18666
+ },
18628
18667
  {
18629
18668
  "name": "required",
18630
18669
  "type": {
@@ -19732,7 +19771,7 @@
19732
19771
  "text": "number | null"
19733
19772
  },
19734
19773
  "default": "null",
19735
- "description": "The number, or `null` while the field is empty (the default, and after the user clears it). As an\nattribute it is the initial value; an absent or empty attribute is an empty field. It is kept within\n`min` and `max` once the user commits an edit. An empty field submits an empty string, and with\n`required` it is invalid (`valueMissing`), as a native number field.",
19774
+ "description": "The number, or `null` while the field is empty (the default, and after the user clears it). Reflected to\nthe attribute as it changes (absent while empty); an absent or empty attribute is an empty field. It is kept within\n`min` and `max` once the user commits an edit. An empty field submits an empty string, and with\n`required` it is invalid (`valueMissing`), as a native number field.",
19736
19775
  "attribute": "value",
19737
19776
  "reflects": true
19738
19777
  },
@@ -20176,7 +20215,7 @@
20176
20215
  "text": "number | null"
20177
20216
  },
20178
20217
  "default": "null",
20179
- "description": "The number, or `null` while the field is empty (the default, and after the user clears it). As an\nattribute it is the initial value; an absent or empty attribute is an empty field. It is kept within\n`min` and `max` once the user commits an edit. An empty field submits an empty string, and with\n`required` it is invalid (`valueMissing`), as a native number field.",
20218
+ "description": "The number, or `null` while the field is empty (the default, and after the user clears it). Reflected to\nthe attribute as it changes (absent while empty); an absent or empty attribute is an empty field. It is kept within\n`min` and `max` once the user commits an edit. An empty field submits an empty string, and with\n`required` it is invalid (`valueMissing`), as a native number field.",
20180
20219
  "fieldName": "value"
20181
20220
  },
20182
20221
  {
@@ -21105,8 +21144,9 @@
21105
21144
  "text": "string"
21106
21145
  },
21107
21146
  "default": "''",
21108
- "description": "The characters entered so far, without separators. As an attribute it is the initial value (and the\nform's reset target); read the `value` property for the current one.",
21109
- "attribute": "value"
21147
+ "description": "The characters entered so far, without separators, reflected to the `value` attribute as they\nchange; the form's reset target stays the value the cells started with. A `mask`ed input does not\nreflect: its attribute is only ever the initial value.",
21148
+ "attribute": "value",
21149
+ "reflects": true
21110
21150
  },
21111
21151
  {
21112
21152
  "kind": "field",
@@ -21517,7 +21557,7 @@
21517
21557
  "text": "string"
21518
21558
  },
21519
21559
  "default": "''",
21520
- "description": "The characters entered so far, without separators. As an attribute it is the initial value (and the\nform's reset target); read the `value` property for the current one.",
21560
+ "description": "The characters entered so far, without separators, reflected to the `value` attribute as they\nchange; the form's reset target stays the value the cells started with. A `mask`ed input does not\nreflect: its attribute is only ever the initial value.",
21521
21561
  "fieldName": "value"
21522
21562
  },
21523
21563
  {
@@ -22419,8 +22459,9 @@
22419
22459
  "text": "string"
22420
22460
  },
22421
22461
  "default": "''",
22422
- "description": "`value` of the selected radio. Set it to choose one; it is the initial selection and the form's\nreset target.",
22423
- "attribute": "value"
22462
+ "description": "`value` of the selected radio. Set it to choose one; it follows the user's choice and is reflected\nto the attribute. The form's reset target stays the initial selection.",
22463
+ "attribute": "value",
22464
+ "reflects": true
22424
22465
  },
22425
22466
  {
22426
22467
  "kind": "field",
@@ -22717,7 +22758,7 @@
22717
22758
  "text": "string"
22718
22759
  },
22719
22760
  "default": "''",
22720
- "description": "`value` of the selected radio. Set it to choose one; it is the initial selection and the form's\nreset target.",
22761
+ "description": "`value` of the selected radio. Set it to choose one; it follows the user's choice and is reflected\nto the attribute. The form's reset target stays the initial selection.",
22721
22762
  "fieldName": "value"
22722
22763
  },
22723
22764
  {
@@ -23836,7 +23877,7 @@
23836
23877
  "text": "string"
23837
23878
  },
23838
23879
  "default": "''",
23839
- "description": "`value` of the selected item. Selection follows focus, so each arrow key changes it and fires\n`void-change`. As an attribute it is the initial value and the form's reset target.",
23880
+ "description": "`value` of the selected item. Selection follows focus, so each arrow key changes it and fires\n`void-change`. Reflected to the attribute as it changes; the form's reset target stays the value it started with.",
23840
23881
  "attribute": "value",
23841
23882
  "reflects": true
23842
23883
  },
@@ -24197,7 +24238,7 @@
24197
24238
  "text": "string"
24198
24239
  },
24199
24240
  "default": "''",
24200
- "description": "`value` of the selected item. Selection follows focus, so each arrow key changes it and fires\n`void-change`. As an attribute it is the initial value and the form's reset target.",
24241
+ "description": "`value` of the selected item. Selection follows focus, so each arrow key changes it and fires\n`void-change`. Reflected to the attribute as it changes; the form's reset target stays the value it started with.",
24201
24242
  "fieldName": "value"
24202
24243
  },
24203
24244
  {
@@ -24363,9 +24404,10 @@
24363
24404
  "type": {
24364
24405
  "text": "string"
24365
24406
  },
24366
- "description": "`value` of the chosen option (the native select's value). As an attribute it is the initial choice, applied\nonce an option with that value exists; without it the options' own `selected` decide, as in plain HTML.",
24407
+ "description": "`value` of the chosen option (the native select's value), reflected to the attribute as the choice\nchanges. Written in markup it is the initial choice, applied once an option with that value exists (and\nwhat a form reset returns to); without it the options' own `selected` decide, as in plain HTML.",
24367
24408
  "default": "''",
24368
- "attribute": "value"
24409
+ "attribute": "value",
24410
+ "reflects": true
24369
24411
  },
24370
24412
  {
24371
24413
  "kind": "method",
@@ -24384,7 +24426,7 @@
24384
24426
  }
24385
24427
  }
24386
24428
  ],
24387
- "description": "Supported pre-morph hook for server-driven DOM morphing (Turbo / idiomorph,\nLivewire / Alpine morph, LiveView / morphdom). The Void UI adapters call it on\nevery `void-*` element right before the morph compares it with the server's\nversion (`turbo:before-morph-element`, Livewire's `morph.updating`, LiveView's\n`dom.onBeforeElUpdated`); call it yourself when driving a morph by hand.\n\n- `incoming` is the server's version of this element, when the morpher\n exposes it. For every reflected property, an attribute the server changed\n since its last render (compared with what this element recorded) is left\n as the server sends it, so the server wins; every other reflected\n attribute is made to match the live element, so the morph keeps the\n client's state (a toggle the user pressed, a dialog the user opened, the\n defaults Lit reflected). Attributes the component manages on its host\n (`role`, `tabindex`, `aria-*` set with setHostAttribute, owned\n style custom properties) are copied onto it where the server markup does\n not set them. VoidElement.clientState the server overrode is\n discarded, and morphedCallback runs once the morph has finished.\n The adapters call this hook only for the server's version of an element.\n `incoming` may also be a detached copy of a rendered element (LiveView\n morphs the live element to a clone it patched while the element was\n locked): its copied chrome is dropped, its consumer content lifted back\n onto it, and it is treated as carrying no server change.\n- The rendered chrome is taken out of the element and parked, and consumer\n children are moved out of the rendered wrappers back onto the element in\n their original order, so the element looks like its server markup and the\n morph diffs like with like. Nothing is destroyed: on re-projection the same\n nodes go back, so native inputs keep their identity, typed text, focus and\n selection (where `Element.moveBefore` exists, parked nodes wait in one hidden\n `<void-projection-park>` under `<html>` and stay connected; elsewhere focus\n is restored after the move). Properties are untouched.\n\nThe element re-projects on its own in a microtask, so the morph must run\nsynchronously after this call (Turbo, idiomorph, morphdom and Livewire all\ndo); otherwise call voidAfterMorph once it has finished.\n\nRe-entrant: a second call before the element has re-projected (two morphs\nin one task, as LiveView runs a patch and the patch that undoes a lock)\napplies the state rule to the new `incoming` and leaves the element parked.\n\nReturns true if the element is parked (now or by an earlier call that has\nnot re-projected yet), false if it has nothing to park (the component\nrenders nothing of its own or has not rendered yet). Safe to call on any\nelement, any number of times.",
24429
+ "description": "The decision is taken here, from the server's markup, before the morph touches anything: the options\nit marks `selected`, compared with its last render. A `value` attribute the server changed arrives\nduring the morph itself (the morph writes it, which sets `value`) and so wins over them.",
24388
24430
  "inheritedFrom": {
24389
24431
  "name": "VoidElement",
24390
24432
  "module": "dist/base.js"
@@ -24589,7 +24631,7 @@
24589
24631
  "type": {
24590
24632
  "text": "string"
24591
24633
  },
24592
- "description": "`value` of the chosen option (the native select's value). As an attribute it is the initial choice, applied\nonce an option with that value exists; without it the options' own `selected` decide, as in plain HTML.",
24634
+ "description": "`value` of the chosen option (the native select's value), reflected to the attribute as the choice\nchanges. Written in markup it is the initial choice, applied once an option with that value exists (and\nwhat a form reset returns to); without it the options' own `selected` decide, as in plain HTML.",
24593
24635
  "default": "''",
24594
24636
  "fieldName": "value"
24595
24637
  }
@@ -24699,10 +24741,10 @@
24699
24741
  "kind": "field",
24700
24742
  "name": "side",
24701
24743
  "type": {
24702
- "text": "'left' | 'right'"
24744
+ "text": "'start' | 'end'"
24703
24745
  },
24704
- "default": "'left'",
24705
- "description": "Which edge of the page the sidebar sits on: `left` (default) or `right`.",
24746
+ "default": "'start'",
24747
+ "description": "Which side of the content the sidebar sits on, in the reading direction: `start` (default) or `end`.",
24706
24748
  "attribute": "side",
24707
24749
  "reflects": true
24708
24750
  },
@@ -24974,10 +25016,10 @@
24974
25016
  {
24975
25017
  "name": "side",
24976
25018
  "type": {
24977
- "text": "'left' | 'right'"
25019
+ "text": "'start' | 'end'"
24978
25020
  },
24979
- "default": "'left'",
24980
- "description": "Which edge of the page the sidebar sits on: `left` (default) or `right`.",
25021
+ "default": "'start'",
25022
+ "description": "Which side of the content the sidebar sits on, in the reading direction: `start` (default) or `end`.",
24981
25023
  "fieldName": "side"
24982
25024
  }
24983
25025
  ],
@@ -24990,7 +25032,17 @@
24990
25032
  "voidRenamed": {
24991
25033
  "attributes": {
24992
25034
  "position": {
24993
- "to": "side"
25035
+ "to": "side",
25036
+ "values": {
25037
+ "left": "side=\"start\"",
25038
+ "right": "side=\"end\""
25039
+ }
25040
+ }
25041
+ },
25042
+ "values": {
25043
+ "side": {
25044
+ "left": "start",
25045
+ "right": "end"
24994
25046
  }
24995
25047
  },
24996
25048
  "events": {
@@ -25315,8 +25367,9 @@
25315
25367
  "text": "number"
25316
25368
  },
25317
25369
  "default": "50",
25318
- "description": "Current position, between `min` and `max`. Defaults to 50. As an attribute it is the initial value;\nread the `value` property for the current one.",
25319
- "attribute": "value"
25370
+ "description": "Current position, between `min` and `max`. Defaults to 50. Reflected to the `value` attribute as it\nmoves; the form's reset target stays the value the slider started with.",
25371
+ "attribute": "value",
25372
+ "reflects": true
25320
25373
  },
25321
25374
  {
25322
25375
  "kind": "field",
@@ -25627,7 +25680,7 @@
25627
25680
  "text": "number"
25628
25681
  },
25629
25682
  "default": "50",
25630
- "description": "Current position, between `min` and `max`. Defaults to 50. As an attribute it is the initial value;\nread the `value` property for the current one.",
25683
+ "description": "Current position, between `min` and `max`. Defaults to 50. Reflected to the `value` attribute as it\nmoves; the form's reset target stays the value the slider started with.",
25631
25684
  "fieldName": "value"
25632
25685
  },
25633
25686
  {
@@ -26979,7 +27032,7 @@
26979
27032
  "text": "boolean"
26980
27033
  },
26981
27034
  "default": "false",
26982
- "description": "Whether the switch is on. The attribute is the initial state and the form's reset target.",
27035
+ "description": "Whether the switch is on. Reflected to the attribute as it changes; the form's reset target stays the state it started with.",
26983
27036
  "attribute": "checked",
26984
27037
  "reflects": true
26985
27038
  },
@@ -27351,7 +27404,7 @@
27351
27404
  "text": "boolean"
27352
27405
  },
27353
27406
  "default": "false",
27354
- "description": "Whether the switch is on. The attribute is the initial state and the form's reset target.",
27407
+ "description": "Whether the switch is on. Reflected to the attribute as it changes; the form's reset target stays the state it started with.",
27355
27408
  "fieldName": "checked"
27356
27409
  },
27357
27410
  {
@@ -28667,8 +28720,9 @@
28667
28720
  "text": "TagValue[]"
28668
28721
  },
28669
28722
  "default": "[]",
28670
- "description": "The tags, as an array of strings or `{ text, color }` objects. Set it as a property from script, or\nas a JSON array in the attribute.",
28671
- "attribute": "value"
28723
+ "description": "The tags, as an array of strings or `{ text, color }` objects. Set it as a property from script, or\nas a JSON array in the attribute, which follows the tags as they change.",
28724
+ "attribute": "value",
28725
+ "reflects": true
28672
28726
  },
28673
28727
  {
28674
28728
  "kind": "field",
@@ -29066,7 +29120,7 @@
29066
29120
  "text": "TagValue[]"
29067
29121
  },
29068
29122
  "default": "[]",
29069
- "description": "The tags, as an array of strings or `{ text, color }` objects. Set it as a property from script, or\nas a JSON array in the attribute.",
29123
+ "description": "The tags, as an array of strings or `{ text, color }` objects. Set it as a property from script, or\nas a JSON array in the attribute, which follows the tags as they change.",
29070
29124
  "fieldName": "value"
29071
29125
  },
29072
29126
  {
@@ -29261,8 +29315,9 @@
29261
29315
  "text": "string"
29262
29316
  },
29263
29317
  "default": "''",
29264
- "description": "The text in the box. As an attribute it is the initial value (and the form's reset target); read or\nset the `value` property for the current text.",
29265
- "attribute": "value"
29318
+ "description": "The text in the box. Reflected to the `value` attribute as it changes, and setting the attribute\nsets it; the form's reset target stays the value the box started with.",
29319
+ "attribute": "value",
29320
+ "reflects": true
29266
29321
  },
29267
29322
  {
29268
29323
  "kind": "field",
@@ -29646,7 +29701,7 @@
29646
29701
  "text": "string"
29647
29702
  },
29648
29703
  "default": "''",
29649
- "description": "The text in the box. As an attribute it is the initial value (and the form's reset target); read or\nset the `value` property for the current text.",
29704
+ "description": "The text in the box. Reflected to the `value` attribute as it changes, and setting the attribute\nsets it; the form's reset target stays the value the box started with.",
29650
29705
  "fieldName": "value"
29651
29706
  },
29652
29707
  {
@@ -29891,6 +29946,16 @@
29891
29946
  "description": "Milliseconds before the toast closes itself. Defaults to 5000; 0 keeps it until dismissed. The timer\npauses while the pointer or focus is on the toast.",
29892
29947
  "attribute": "duration"
29893
29948
  },
29949
+ {
29950
+ "kind": "method",
29951
+ "name": "announcement",
29952
+ "return": {
29953
+ "type": {
29954
+ "text": "string"
29955
+ }
29956
+ },
29957
+ "description": "What a screen reader should say for this toast: its title, then its message (or, without parts, its text)."
29958
+ },
29894
29959
  {
29895
29960
  "kind": "method",
29896
29961
  "name": "close",
@@ -30547,7 +30612,7 @@
30547
30612
  "text": "string"
30548
30613
  },
30549
30614
  "default": "''",
30550
- "description": "Comma-separated `value`s of the pressed toggles (`bold,italic`), or the single pressed value. As an\nattribute it is the initial state and the form's reset target. Without it (or with an empty one) the\ntoggles that carry `pressed` in the markup set the initial value (the first of them unless\n`multiple`); a non-empty `value` wins over their `pressed`.",
30615
+ "description": "Comma-separated `value`s of the pressed toggles (`bold,italic`), or the single pressed value. Reflected to the\nattribute as the pressed toggles change; the form's reset target stays the state it started with. Without it (or with an empty one) the\ntoggles that carry `pressed` in the markup set the initial value (the first of them unless\n`multiple`); a non-empty `value` wins over their `pressed`.",
30551
30616
  "attribute": "value",
30552
30617
  "reflects": true
30553
30618
  },
@@ -30930,7 +30995,7 @@
30930
30995
  "text": "string"
30931
30996
  },
30932
30997
  "default": "''",
30933
- "description": "Comma-separated `value`s of the pressed toggles (`bold,italic`), or the single pressed value. As an\nattribute it is the initial state and the form's reset target. Without it (or with an empty one) the\ntoggles that carry `pressed` in the markup set the initial value (the first of them unless\n`multiple`); a non-empty `value` wins over their `pressed`.",
30998
+ "description": "Comma-separated `value`s of the pressed toggles (`bold,italic`), or the single pressed value. Reflected to the\nattribute as the pressed toggles change; the form's reset target stays the state it started with. Without it (or with an empty one) the\ntoggles that carry `pressed` in the markup set the initial value (the first of them unless\n`multiple`); a non-empty `value` wins over their `pressed`.",
30934
30999
  "fieldName": "value"
30935
31000
  },
30936
31001
  {
@@ -31063,7 +31128,8 @@
31063
31128
  },
31064
31129
  "default": "''",
31065
31130
  "description": "What this toggle stands for: the value it contributes to a parent `<void-toggle-group>`, and `detail.value` of its `void-change`.",
31066
- "attribute": "value"
31131
+ "attribute": "value",
31132
+ "reflects": true
31067
31133
  },
31068
31134
  {
31069
31135
  "kind": "field",
@@ -1,9 +1,8 @@
1
1
  /**
2
2
  * How one attribute's value is validated: `0` any string, `1` boolean, `2`
3
- * boolean that also reads the string "false", `3` number, a string array is the
4
- * closed set of allowed values.
3
+ * number, a string array is the closed set of allowed values.
5
4
  */
6
- export type AttrRule = 0 | 1 | 2 | 3 | readonly string[];
5
+ export type AttrRule = 0 | 1 | 2 | readonly string[];
7
6
  /** Validation data for one tag, generated from the Custom Elements Manifest. */
8
7
  export interface DevTag {
9
8
  /** Module name under `components/` that registers the tag. */