@smwb/ui-mcp-solid 0.12.1 → 0.13.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 (62) hide show
  1. package/component-meta/base/icon/icon.json +6 -1
  2. package/component-meta/base/ripple/ripple.json +6 -1
  3. package/component-meta/connects/rt/table/table.json +1 -1
  4. package/component-meta/dataDisplay/avatar/avatar.avatarGroup.json +5 -0
  5. package/component-meta/dataDisplay/avatar/avatar.json +5 -0
  6. package/component-meta/dataDisplay/card/card.json +18 -3
  7. package/component-meta/dataDisplay/chart/chart.json +5 -0
  8. package/component-meta/dataDisplay/chat/chatLayout.json +5 -0
  9. package/component-meta/dataDisplay/chat/chatOverlayLayout.json +5 -0
  10. package/component-meta/dataDisplay/chip/chip.json +18 -3
  11. package/component-meta/dataDisplay/dagView/dagView.json +170 -0
  12. package/component-meta/dataDisplay/descriptionList/descriptionList.json +1 -1
  13. package/component-meta/dataDisplay/kanban/kanban.json +5 -0
  14. package/component-meta/dataDisplay/kanban/kanban.kanbanCard.json +5 -0
  15. package/component-meta/dataDisplay/kanban/kanban.kanbanColumn.json +5 -0
  16. package/component-meta/dataDisplay/list/list.json +5 -0
  17. package/component-meta/dataDisplay/meter/meter.json +5 -0
  18. package/component-meta/dataDisplay/personChip/personChip.json +5 -0
  19. package/component-meta/dataDisplay/stat/stat.json +5 -0
  20. package/component-meta/dataDisplay/table/table.json +1 -1
  21. package/component-meta/dataDisplay/table/tableCell.json +7 -2
  22. package/component-meta/dataDisplay/table/tableHeadCell.json +11 -1
  23. package/component-meta/dataDisplay/table/tableRow.json +5 -0
  24. package/component-meta/dataDisplay/thumbCard/thumbCard.json +16 -6
  25. package/component-meta/dataDisplay/treeView/treeView.json +5 -0
  26. package/component-meta/feedBack/emptyState/emptyState.json +5 -0
  27. package/component-meta/feedBack/message/message.json +5 -0
  28. package/component-meta/feedBack/skeleton/skeleton.json +7 -2
  29. package/component-meta/feedBack/tooltip/tooltip.json +4 -4
  30. package/component-meta/inputs/button/button.json +5 -0
  31. package/component-meta/inputs/buttonGroups/buttonGroup.json +5 -0
  32. package/component-meta/inputs/checkbox/checkbox.json +2 -2
  33. package/component-meta/inputs/radioButton/radioButton.json +6 -1
  34. package/component-meta/inputs/rating/rating.json +12 -2
  35. package/component-meta/inputs/selectField/dropdownMenu.json +47 -2
  36. package/component-meta/inputs/selectField/selectField.json +9 -8
  37. package/component-meta/inputs/slider/slider.json +11 -6
  38. package/component-meta/inputs/textField/textField.json +8 -3
  39. package/component-meta/inputs/textField/textFieldWrapper.json +16 -1
  40. package/component-meta/inputs/toggle/toggle.json +1 -1
  41. package/component-meta/inputs/valueSlider/valueSlider.json +15 -10
  42. package/component-meta/layout/appLayout/appLayout.json +5 -0
  43. package/component-meta/layout/divider/divider.json +5 -0
  44. package/component-meta/layout/floatingWindow/floatingWindow.json +5 -0
  45. package/component-meta/layout/grid/grid.column.json +5 -0
  46. package/component-meta/layout/grid/grid.container.json +5 -0
  47. package/component-meta/layout/grid/grid.row.json +5 -0
  48. package/component-meta/layout/page/page.json +5 -0
  49. package/component-meta/layout/pageHeader/pageHeader.json +5 -0
  50. package/component-meta/layout/sectionHeader/sectionHeader.json +5 -0
  51. package/component-meta/layout/sheet/sheet.json +5 -0
  52. package/component-meta/layout/stack/stack.json +5 -0
  53. package/component-meta/navigation/appBar/appBar.json +5 -0
  54. package/component-meta/navigation/breadcrumbs/breadcrumbs.json +5 -0
  55. package/component-meta/navigation/menu/menu.json +1 -1
  56. package/component-meta/navigation/menu/menuItem.json +1 -1
  57. package/component-meta/navigation/menu/menuList.json +5 -0
  58. package/component-meta/navigation/menu/menuSubmenu.json +14 -3
  59. package/component-meta/navigation/pagination/pagination.json +5 -0
  60. package/component-meta/navigation/stepper/stepper.json +5 -0
  61. package/component-meta/navigation/tabs/tabs.json +3 -3
  62. package/package.json +3 -3
@@ -88,6 +88,11 @@
88
88
  "required": false,
89
89
  "description": "Load Children. Optional. Type: (item: ITreeNodeItem, nodeId: string) => Promise<ITreeNodeItem[]>."
90
90
  },
91
+ "data-testid": {
92
+ "type": "string | undefined",
93
+ "required": false,
94
+ "description": "Test id of the root `<div>`; `tree-view` unless given."
95
+ },
91
96
  "ref": {
92
97
  "type": "Ref<HTMLDivElement>",
93
98
  "required": false,
@@ -48,6 +48,11 @@
48
48
  "required": false,
49
49
  "description": "`small`: tighter, for a narrow column or a card."
50
50
  },
51
+ "data-testid": {
52
+ "type": "string | undefined",
53
+ "required": false,
54
+ "description": "Test id of the root `<div>`; `empty-state` unless given."
55
+ },
51
56
  "ref": {
52
57
  "type": "Ref<HTMLDivElement>",
53
58
  "required": false,
@@ -48,6 +48,11 @@
48
48
  "required": false,
49
49
  "description": "Accessible label for the close button."
50
50
  },
51
+ "data-testid": {
52
+ "type": "string | undefined",
53
+ "required": false,
54
+ "description": "Test id of the root `<div>`; `message` unless given."
55
+ },
51
56
  "ref": {
52
57
  "type": "Ref<HTMLDivElement>",
53
58
  "required": false,
@@ -44,7 +44,7 @@
44
44
  "count": {
45
45
  "type": "number",
46
46
  "required": false,
47
- "description": "Render N stacked placeholders."
47
+ "description": "Render N stacked placeholders. With `count` > 1 they sit in a group `<span>`, which takes the `ref` and the\nother HTML attributes; `class` and `style` go on each placeholder."
48
48
  },
49
49
  "animationDelay": {
50
50
  "type": "number",
@@ -54,7 +54,12 @@
54
54
  "component": {
55
55
  "type": "\"span\" | \"div\"",
56
56
  "required": false,
57
- "description": "Root element."
57
+ "description": "Element of each placeholder."
58
+ },
59
+ "data-testid": {
60
+ "type": "string | undefined",
61
+ "required": false,
62
+ "description": "Test id of the placeholder; `skeleton` unless given. With `count` > 1 it\nmarks the group, and each placeholder keeps `skeleton`."
58
63
  },
59
64
  "ref": {
60
65
  "type": "Ref<HTMLElement>",
@@ -31,7 +31,7 @@
31
31
  "message": {
32
32
  "type": "JSX.Element",
33
33
  "required": true,
34
- "description": "Chat message data object."
34
+ "description": "What the tip says: text or markup."
35
35
  },
36
36
  "placement": {
37
37
  "type": "Placement",
@@ -46,17 +46,17 @@
46
46
  "trigger": {
47
47
  "type": "TooltipTrigger",
48
48
  "required": false,
49
- "description": "hover (default): show on pointer enter; click: toggle; manual: use open only."
49
+ "description": "What shows the tooltip. `hover` (default): the pointer over the target or keyboard focus\nin it, until both have left. Keyboard focus is focus with a focus ring (`:focus-visible`),\nnot the focus a mouse press gives a button. `click`: a click on the target shows or hides\nit. `manual`: `open` alone. Escape hides a `hover` or `click` tooltip."
50
50
  },
51
51
  "openDelay": {
52
52
  "type": "number",
53
53
  "required": false,
54
- "description": "Open Delay. Optional. Type: number."
54
+ "description": "Milliseconds from the pointer entering the target, or keyboard focus moving into it, until a hover tooltip shows."
55
55
  },
56
56
  "closeDelay": {
57
57
  "type": "number",
58
58
  "required": false,
59
- "description": "Close Delay. Optional. Type: number."
59
+ "description": "Milliseconds from the pointer and keyboard focus both leaving the target until a hover tooltip hides."
60
60
  },
61
61
  "ref": {
62
62
  "type": "Ref<HTMLDivElement>",
@@ -89,6 +89,11 @@
89
89
  "required": false,
90
90
  "description": "Disable the ripple effect."
91
91
  },
92
+ "data-testid": {
93
+ "type": "string | undefined",
94
+ "required": false,
95
+ "description": "Test id of the root; `button`, or `button-link` for a link, unless given."
96
+ },
92
97
  "ref": {
93
98
  "type": "Ref<HTMLButtonElement | HTMLAnchorElement>",
94
99
  "required": false,
@@ -54,6 +54,11 @@
54
54
  "required": false,
55
55
  "description": "Semantic color propagated to child buttons."
56
56
  },
57
+ "data-testid": {
58
+ "type": "string | undefined",
59
+ "required": false,
60
+ "description": "Test id of the root `<div>`; `button-group` unless given."
61
+ },
57
62
  "ref": {
58
63
  "type": "Ref<HTMLDivElement>",
59
64
  "required": false,
@@ -37,7 +37,7 @@
37
37
  "readOnly": {
38
38
  "type": "boolean",
39
39
  "required": false,
40
- "description": "Whether the value is read-only."
40
+ "description": "Keeps the checkbox as it is: clicks on it or its label and Space change nothing, and `onChange` is not called.\nIt stays focusable, and its input tells assistive technology it is read-only (`aria-readonly`)."
41
41
  },
42
42
  "required": {
43
43
  "type": "boolean",
@@ -57,7 +57,7 @@
57
57
  "indeterminate": {
58
58
  "type": "boolean",
59
59
  "required": false,
60
- "description": "Indeterminate. Optional. Type: boolean."
60
+ "description": "Shows the checkbox as partly checked, as for a \"select all\" over a partial selection: drawn with a dash and\nannounced as \"mixed\" by screen readers, whatever `checked` is. A click does not clear it: the click toggles\n`checked` as usual and `onChange` reports the new `checked`, while the checkbox stays mixed until this prop turns\nfalse."
61
61
  },
62
62
  "size": {
63
63
  "type": "SelectionControlSize",
@@ -38,7 +38,7 @@
38
38
  "readOnly": {
39
39
  "type": "boolean",
40
40
  "required": false,
41
- "description": "Whether the value is read-only."
41
+ "description": "Keeps the radio as it is: clicks on it or its label, Space and the arrow keys of its group do not check it, and\n`onChange` is not called. It stays focusable.\n\nThe input does not tell assistive technology it is read-only: ARIA has no read-only state for a single radio,\nonly for its group. Put `role=\"radiogroup\"`, a name and `aria-readonly=\"true\"` on the element around the radios."
42
42
  },
43
43
  "required": {
44
44
  "type": "boolean",
@@ -85,6 +85,11 @@
85
85
  "required": false,
86
86
  "description": "Unified handler: `(event, value, data)` where `value` is the radio's value (or checked state)."
87
87
  },
88
+ "data-testid": {
89
+ "type": "string | undefined",
90
+ "required": false,
91
+ "description": "Test id of the `<input>`; `radio` unless given."
92
+ },
88
93
  "ref": {
89
94
  "type": "Ref<HTMLInputElement>",
90
95
  "required": false,
@@ -92,7 +92,17 @@
92
92
  "id": {
93
93
  "type": "string",
94
94
  "required": false,
95
- "description": "Unique identifier for the root element."
95
+ "description": "Id of the control: the slider, or the image of a read-only rating."
96
+ },
97
+ "aria-label": {
98
+ "type": "string",
99
+ "required": false,
100
+ "description": "What is rated: the accessible name of the slider, \"Rating\" by default. A read-only rating is an image named by\nits value (\"3 of 5\"), after this label."
101
+ },
102
+ "aria-describedby": {
103
+ "type": "string",
104
+ "required": false,
105
+ "description": "Ids of more elements that describe the control, after its helper text."
96
106
  },
97
107
  "onChange": {
98
108
  "type": "(value: number) => void",
@@ -102,7 +112,7 @@
102
112
  "ref": {
103
113
  "type": "Ref<HTMLSpanElement>",
104
114
  "required": false,
105
- "description": "Ref. Optional. Type: Ref<HTMLSpanElement>."
115
+ "description": "The control: the slider, or the image of a read-only rating."
106
116
  }
107
117
  }
108
118
  }
@@ -83,9 +83,9 @@
83
83
  "description": "Is Loading. Optional. Type: boolean | undefined."
84
84
  },
85
85
  "optionRenderer": {
86
- "type": "((args: import(\"../../navigation/menu\").MenuItemProps) => JSX.Element) | undefined",
86
+ "type": "((args: MenuItemProps) => JSX.Element) | undefined",
87
87
  "required": false,
88
- "description": "Option Renderer. Optional. Type: ((args: import(\"../../navigation/menu\").MenuItemProps) => JSX.Element) | undefined."
88
+ "description": "Option Renderer. Optional. Type: ((args: MenuItemProps) => JSX.Element) | undefined."
89
89
  },
90
90
  "container": {
91
91
  "type": "HTMLElement | undefined",
@@ -106,6 +106,51 @@
106
106
  "type": "number | undefined",
107
107
  "required": false,
108
108
  "description": "Item Height. Optional. Type: number | undefined."
109
+ },
110
+ "listboxId": {
111
+ "type": "string | undefined",
112
+ "required": false,
113
+ "description": "Id of the listbox; the options' ids follow from it (`dropdownOptionId`)."
114
+ },
115
+ "labelledBy": {
116
+ "type": "string | undefined",
117
+ "required": false,
118
+ "description": "Ids of the elements that name the listbox and the search box in the menu."
119
+ },
120
+ "label": {
121
+ "type": "string | undefined",
122
+ "required": false,
123
+ "description": "Names the listbox and the search box in the menu when no element does."
124
+ },
125
+ "multiple": {
126
+ "type": "boolean | undefined",
127
+ "required": false,
128
+ "description": "Several options can be selected (`aria-multiselectable`)."
129
+ },
130
+ "activeIndex": {
131
+ "type": "number | undefined",
132
+ "required": false,
133
+ "description": "Index of the active option, counting `items` and then the create option; -1 for none."
134
+ },
135
+ "showActive": {
136
+ "type": "boolean | undefined",
137
+ "required": false,
138
+ "description": "Marks the active option and keeps it in view: the keyboard moved to it."
139
+ },
140
+ "searchInputProps": {
141
+ "type": "(JSX.AriaAttributes & Pick<JSX.InputHTMLAttributes<HTMLInputElement>, \"onKeyDown\">) | undefined",
142
+ "required": false,
143
+ "description": "Attributes and handlers of the search box in the menu, which the field makes a combobox."
144
+ },
145
+ "searchInputRef": {
146
+ "type": "((element: HTMLInputElement) => void) | undefined",
147
+ "required": false,
148
+ "description": "Search Input Ref. Optional. Type: ((element: HTMLInputElement) => void) | undefined."
149
+ },
150
+ "menuRef": {
151
+ "type": "((element: HTMLDivElement) => void) | undefined",
152
+ "required": false,
153
+ "description": "The menu's root element."
109
154
  }
110
155
  }
111
156
  }
@@ -19,9 +19,10 @@
19
19
  "@smwb/ui-styles/less/components/icon/icon.entry.less",
20
20
  "@smwb/ui-styles/less/components/menu/menu.entry.less",
21
21
  "@smwb/ui-styles/less/components/progressIndicator/progressIndicator.entry.less",
22
+ "@smwb/ui-styles/less/components/ripple/ripple.entry.less",
22
23
  "@smwb/ui-styles/less/components/textField/textField.entry.less"
23
24
  ],
24
- "importExample": "@import (less) \"node_modules/@smwb/ui-styles/less/foundation.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/theme.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/selectField/selectField.entry.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/chip/chip.entry.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/icon/icon.entry.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/menu/menu.entry.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/progressIndicator/progressIndicator.entry.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/textField/textField.entry.less\";"
25
+ "importExample": "@import (less) \"node_modules/@smwb/ui-styles/less/foundation.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/theme.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/selectField/selectField.entry.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/chip/chip.entry.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/icon/icon.entry.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/menu/menu.entry.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/progressIndicator/progressIndicator.entry.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/ripple/ripple.entry.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/textField/textField.entry.less\";"
25
26
  },
26
27
  "props": {
27
28
  "class": {
@@ -32,7 +33,7 @@
32
33
  "value": {
33
34
  "type": "SelectValue | undefined",
34
35
  "required": false,
35
- "description": "Controlled value."
36
+ "description": "The selected value, or the values of a `multiple` field. Any value but\n`undefined` makes the field controlled: it shows this value and nothing\nelse, and a pick, a chip delete or a clear only asks for a change through\n`onChange`. `null` means nothing is selected. While `value` is `undefined`,\nthe field keeps its own value, starting from `defaultValue`."
36
37
  },
37
38
  "defaultValue": {
38
39
  "type": "null | string | number | (string | number)[]",
@@ -87,7 +88,7 @@
87
88
  "search": {
88
89
  "type": "true | false | \"menu\"",
89
90
  "required": false,
90
- "description": "Search. Optional. Type: true | false | \"menu\"."
91
+ "description": "A search box for the options: `true` puts it in the field, where it takes\nthe focus and is the combobox; `\"menu\"` puts it at the top of the menu,\nwhich moves the focus into it when it opens."
91
92
  },
92
93
  "chips": {
93
94
  "type": "boolean",
@@ -112,7 +113,7 @@
112
113
  "label": {
113
114
  "type": "string",
114
115
  "required": false,
115
- "description": "Visible label text."
116
+ "description": "Visible label, drawn above the field (an `inline` field draws none). It\nnames the combobox, whose value is the selected text: \"Country\", \"Russia\".\nWith `chips` the chips' texts follow it in the name: \"Labels Backend Docs\"."
116
117
  },
117
118
  "variant": {
118
119
  "type": "\"outlined\" | \"filled\"",
@@ -167,7 +168,7 @@
167
168
  "optionRenderer": {
168
169
  "type": "(args: MenuItemProps) => JSX.Element",
169
170
  "required": false,
170
- "description": "Option Renderer. Optional. Type: (args: MenuItemProps) => JSX.Element."
171
+ "description": "Draws an option in place of the default one. It gets the option's props\nand returns its `<li>`: pass `id`, `role`, `aria-selected`, `aria-disabled`,\n`class` and `onClick` on to it, so the option can be reached from the\nkeyboard, read out and picked."
171
172
  },
172
173
  "clearable": {
173
174
  "type": "boolean",
@@ -195,14 +196,14 @@
195
196
  "description": "Item Height. Optional. Type: number."
196
197
  },
197
198
  "aria-label": {
198
- "type": "string",
199
+ "type": "string | undefined",
199
200
  "required": false,
200
- "description": "Accessible label when no visible title is present."
201
+ "description": "Accessible name of the combobox. Replaces the name the visible `label`\ngives it; a field without a drawn label needs it."
201
202
  },
202
203
  "id": {
203
204
  "type": "string",
204
205
  "required": false,
205
- "description": "Unique identifier for the root element."
206
+ "description": "Id of the control, the part of the field that holds the selected text. It is\nthe combobox, unless `search` puts a search box in it: then the box is."
206
207
  },
207
208
  "ref": {
208
209
  "type": "Ref<HTMLSpanElement>",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "props": {
26
26
  "value": {
27
- "type": "SliderValue",
27
+ "type": "SliderValue | undefined",
28
28
  "required": false,
29
29
  "description": "Controlled value."
30
30
  },
@@ -71,7 +71,7 @@
71
71
  "valueField": {
72
72
  "type": "boolean",
73
73
  "required": false,
74
- "description": "Value Field. Optional. Type: boolean."
74
+ "description": "Draws a number field beside the slider for typing the value; a single\n`discrete` slider only. The field is named as the slider is (see `label`\nand `aria-label`)."
75
75
  },
76
76
  "withTicks": {
77
77
  "type": "boolean",
@@ -79,9 +79,9 @@
79
79
  "description": "With Ticks. Optional. Type: boolean."
80
80
  },
81
81
  "label": {
82
- "type": "string",
82
+ "type": "string | undefined",
83
83
  "required": false,
84
- "description": "Visible label text."
84
+ "description": "Visible label, drawn above the slider. It names the slider; each thumb of a\nrange adds its own word: with `label=\"Price\"` they read \"Price minimum\" and\n\"Price maximum\"."
85
85
  },
86
86
  "helperText": {
87
87
  "type": "JSX.Element",
@@ -119,9 +119,14 @@
119
119
  "description": "Slider tick marks configuration."
120
120
  },
121
121
  "aria-label": {
122
- "type": "string",
122
+ "type": "string | undefined",
123
+ "required": false,
124
+ "description": "Accessible name of the slider. Replaces the name the visible `label` gives\nit; a slider without a label needs it or `aria-labelledby`. Each thumb of a\nrange adds its own word, as with `label`."
125
+ },
126
+ "aria-labelledby": {
127
+ "type": "string | undefined",
123
128
  "required": false,
124
- "description": "Accessible label when no visible title is present."
129
+ "description": "Ids of the elements whose text names the slider. It goes on the range input,\nnot the root, and replaces the name the visible `label` gives it; as on any\nelement, it also wins over `aria-label`. Each thumb of a range adds its own\nword, as with `label`."
125
130
  },
126
131
  "getAriaValueText": {
127
132
  "type": "(value: number) => string",
@@ -24,7 +24,7 @@
24
24
  "label": {
25
25
  "type": "string | undefined",
26
26
  "required": false,
27
- "description": "Visible label text."
27
+ "description": "Visible label; it points to the `<input>`, so it also names the field. Not drawn for an `inline` field."
28
28
  },
29
29
  "helperText": {
30
30
  "type": "JSX.Element",
@@ -56,6 +56,11 @@
56
56
  "required": false,
57
57
  "description": "Controlled value."
58
58
  },
59
+ "class": {
60
+ "type": "string | undefined",
61
+ "required": false,
62
+ "description": "Class name(s) for the root wrapper `<div>`. `style` and `data-*` attributes go to the wrapper too (a `data-testid`\nreplaces its default `text-field`); every other HTML attribute (`aria-*`, `autofocus`, `maxlength`, event handlers)\ngoes to the `<input>`."
63
+ },
59
64
  "placeholder": {
60
65
  "type": "string",
61
66
  "required": false,
@@ -112,9 +117,9 @@
112
117
  "description": "End Adornment. Optional. Type: JSX.Element."
113
118
  },
114
119
  "id": {
115
- "type": "string",
120
+ "type": "string | undefined",
116
121
  "required": false,
117
- "description": "Unique identifier for the root element."
122
+ "description": "Id of the `<input>`; the label points to it. Generated when not given."
118
123
  },
119
124
  "inline": {
120
125
  "type": "boolean",
@@ -31,6 +31,11 @@
31
31
  "required": false,
32
32
  "description": "Supplementary hint text displayed below the control."
33
33
  },
34
+ "helperTextId": {
35
+ "type": "string | undefined",
36
+ "required": false,
37
+ "description": "Id of the helper text, for the control's `aria-describedby`. Only shown helper text takes it: not the blank line\ndrawn without helper text, and an inline field shows none."
38
+ },
34
39
  "variant": {
35
40
  "type": "TextFieldVariant | undefined",
36
41
  "required": false,
@@ -64,7 +69,12 @@
64
69
  "for": {
65
70
  "type": "string | undefined",
66
71
  "required": false,
67
- "description": "For. Optional. Type: string | undefined."
72
+ "description": "Id of the control the label names. Without it, the label names nothing."
73
+ },
74
+ "labelId": {
75
+ "type": "string | undefined",
76
+ "required": false,
77
+ "description": "Id of the `<label>`. A control that `for` cannot label (one that is not a\nform element, such as SelectField's `role=\"button\"`) points\n`aria-labelledby` at it."
68
78
  },
69
79
  "shrink": {
70
80
  "type": "boolean | undefined",
@@ -91,6 +101,11 @@
91
101
  "required": false,
92
102
  "description": "Inline. Optional. Type: boolean | undefined."
93
103
  },
104
+ "data-testid": {
105
+ "type": "string | undefined",
106
+ "required": false,
107
+ "description": "Test id of the root `<div>`; `text-field` unless given."
108
+ },
94
109
  "children": {
95
110
  "type": "JSX.Element",
96
111
  "required": false,
@@ -33,7 +33,7 @@
33
33
  "readOnly": {
34
34
  "type": "boolean",
35
35
  "required": false,
36
- "description": "Whether the value is read-only."
36
+ "description": "Keeps the switch as it is: clicks on it or its label and Space change nothing, and `onChange` is not called.\nIt stays focusable, and its input tells assistive technology it is read-only (`aria-readonly`)."
37
37
  },
38
38
  "required": {
39
39
  "type": "boolean",
@@ -22,6 +22,16 @@
22
22
  "importExample": "@import (less) \"node_modules/@smwb/ui-styles/less/foundation.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/theme.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/valueSlider/valueSlider.entry.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/slider/slider.entry.less\";"
23
23
  },
24
24
  "props": {
25
+ "label": {
26
+ "type": "string | undefined",
27
+ "required": false,
28
+ "description": "Label text, drawn in the header row beside the readout. It names the slider,\nas `Slider`'s label does; each thumb of a range adds its own word: with\n`label=\"Price\"` they read \"Price minimum\" and \"Price maximum\"."
29
+ },
30
+ "aria-label": {
31
+ "type": "string | undefined",
32
+ "required": false,
33
+ "description": "Accessible name of the slider. Replaces the name the header `label` gives\nit; a ValueSlider without a label needs it or `aria-labelledby`. Each thumb\nof a range adds its own word, as with `label`."
34
+ },
25
35
  "readout": {
26
36
  "type": "boolean | ((value: SliderValue | undefined) => string)",
27
37
  "required": false,
@@ -43,7 +53,7 @@
43
53
  "description": "Accessible label for the reset control."
44
54
  },
45
55
  "value": {
46
- "type": "SliderValue",
56
+ "type": "SliderValue | undefined",
47
57
  "required": false,
48
58
  "description": "Controlled value."
49
59
  },
@@ -90,18 +100,13 @@
90
100
  "valueField": {
91
101
  "type": "boolean",
92
102
  "required": false,
93
- "description": "Value Field. Optional. Type: boolean."
103
+ "description": "Draws a number field beside the slider for typing the value; a single\n`discrete` slider only. The field is named as the slider is (see `label`\nand `aria-label`)."
94
104
  },
95
105
  "withTicks": {
96
106
  "type": "boolean",
97
107
  "required": false,
98
108
  "description": "With Ticks. Optional. Type: boolean."
99
109
  },
100
- "label": {
101
- "type": "string",
102
- "required": false,
103
- "description": "Visible label text."
104
- },
105
110
  "helperText": {
106
111
  "type": "JSX.Element",
107
112
  "required": false,
@@ -137,10 +142,10 @@
137
142
  "required": false,
138
143
  "description": "Slider tick marks configuration."
139
144
  },
140
- "aria-label": {
141
- "type": "string",
145
+ "aria-labelledby": {
146
+ "type": "string | undefined",
142
147
  "required": false,
143
- "description": "Accessible label when no visible title is present."
148
+ "description": "Ids of the elements whose text names the slider. It goes on the range input,\nnot the root, and replaces the name the visible `label` gives it; as on any\nelement, it also wins over `aria-label`. Each thumb of a range adds its own\nword, as with `label`."
144
149
  },
145
150
  "getAriaValueText": {
146
151
  "type": "(value: number) => string",
@@ -83,6 +83,11 @@
83
83
  "required": false,
84
84
  "description": "Keep the header pinned while content scrolls."
85
85
  },
86
+ "data-testid": {
87
+ "type": "string | undefined",
88
+ "required": false,
89
+ "description": "Test id of the root `<div>`; `app-layout` unless given."
90
+ },
86
91
  "ref": {
87
92
  "type": "Ref<HTMLDivElement>",
88
93
  "required": false,
@@ -51,6 +51,11 @@
51
51
  "required": false,
52
52
  "description": "Stretch to fill a flex container along the cross axis."
53
53
  },
54
+ "data-testid": {
55
+ "type": "string | undefined",
56
+ "required": false,
57
+ "description": "Test id of the root `<div>`; `divider` unless given."
58
+ },
54
59
  "ref": {
55
60
  "type": "Ref<HTMLDivElement>",
56
61
  "required": false,
@@ -194,6 +194,11 @@
194
194
  "required": false,
195
195
  "description": "Accessible label when no visible title is present."
196
196
  },
197
+ "data-testid": {
198
+ "type": "string | undefined",
199
+ "required": false,
200
+ "description": "Test id of the window's root `<div>`; `floating-window` unless given."
201
+ },
197
202
  "ref": {
198
203
  "type": "Ref<HTMLDivElement>",
199
204
  "required": false,
@@ -76,6 +76,11 @@
76
76
  "required": false,
77
77
  "description": "Hide column: boolean (always) or per breakpoint `{ xs:true, md:false }`."
78
78
  },
79
+ "data-testid": {
80
+ "type": "string | undefined",
81
+ "required": false,
82
+ "description": "Test id of the root `<div>`; `grid-col` unless given."
83
+ },
79
84
  "ref": {
80
85
  "type": "Ref<HTMLDivElement>",
81
86
  "required": false,
@@ -31,6 +31,11 @@
31
31
  "required": false,
32
32
  "description": "Remove horizontal gutters."
33
33
  },
34
+ "data-testid": {
35
+ "type": "string | undefined",
36
+ "required": false,
37
+ "description": "Test id of the root `<div>`; `grid-container` unless given."
38
+ },
34
39
  "ref": {
35
40
  "type": "Ref<HTMLDivElement>",
36
41
  "required": false,
@@ -46,6 +46,11 @@
46
46
  "required": false,
47
47
  "description": "Spacing between stacked children."
48
48
  },
49
+ "data-testid": {
50
+ "type": "string | undefined",
51
+ "required": false,
52
+ "description": "Test id of the root `<div>`; `grid-row` unless given."
53
+ },
49
54
  "ref": {
50
55
  "type": "Ref<HTMLDivElement>",
51
56
  "required": false,
@@ -36,6 +36,11 @@
36
36
  "required": false,
37
37
  "description": "Render as a different element (default `main`)."
38
38
  },
39
+ "data-testid": {
40
+ "type": "string | undefined",
41
+ "required": false,
42
+ "description": "Test id of the root element; `page` unless given."
43
+ },
39
44
  "ref": {
40
45
  "type": "Ref<HTMLElement>",
41
46
  "required": false,
@@ -48,6 +48,11 @@
48
48
  "required": false,
49
49
  "description": "Render a divider below the header."
50
50
  },
51
+ "data-testid": {
52
+ "type": "string | undefined",
53
+ "required": false,
54
+ "description": "Test id of the root `<header>`; `page-header` unless given."
55
+ },
51
56
  "ref": {
52
57
  "type": "Ref<HTMLElement>",
53
58
  "required": false,
@@ -59,6 +59,11 @@
59
59
  "required": false,
60
60
  "description": "A line under the title."
61
61
  },
62
+ "data-testid": {
63
+ "type": "string | undefined",
64
+ "required": false,
65
+ "description": "Test id of the root `<header>`; `section-header` unless given."
66
+ },
62
67
  "ref": {
63
68
  "type": "Ref<HTMLElement>",
64
69
  "required": false,
@@ -110,6 +110,11 @@
110
110
  "required": false,
111
111
  "description": "Accessible label when no visible title is present."
112
112
  },
113
+ "data-testid": {
114
+ "type": "string | undefined",
115
+ "required": false,
116
+ "description": "Test id of the sheet panel (the dialog); `sheet` unless given."
117
+ },
113
118
  "ref": {
114
119
  "type": "Ref<HTMLDivElement>",
115
120
  "required": false,