@smwb/ui-mcp-react 2.6.3 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/component-meta/base/icon/icon.json +6 -1
- package/component-meta/base/ripple/ripple.json +6 -1
- package/component-meta/connects/rt/table/headerCellRenderer.json +1 -1
- package/component-meta/connects/rt/table/table.json +1 -1
- package/component-meta/dataDisplay/accordion/accordion.json +27 -2
- package/component-meta/dataDisplay/avatar/avatar.avatarGroup.json +15 -0
- package/component-meta/dataDisplay/avatar/avatar.json +5 -0
- package/component-meta/dataDisplay/card/card.json +10 -5
- package/component-meta/dataDisplay/chart/chart.json +78 -0
- package/component-meta/dataDisplay/chat/chatLayout.json +5 -0
- package/component-meta/dataDisplay/chat/chatOverlayLayout.json +5 -0
- package/component-meta/dataDisplay/chip/chip.json +14 -4
- package/component-meta/dataDisplay/descriptionList/descriptionList.descriptionItem.json +35 -0
- package/component-meta/dataDisplay/descriptionList/descriptionList.json +50 -0
- package/component-meta/dataDisplay/kanban/kanban.json +40 -0
- package/component-meta/dataDisplay/kanban/kanban.kanbanCard.json +50 -0
- package/component-meta/dataDisplay/kanban/kanban.kanbanColumn.json +60 -0
- package/component-meta/dataDisplay/list/list.json +5 -0
- package/component-meta/dataDisplay/meter/meter.json +75 -0
- package/component-meta/dataDisplay/personChip/personChip.json +77 -0
- package/component-meta/dataDisplay/stat/stat.json +72 -0
- package/component-meta/dataDisplay/stat/stat.statGroup.json +35 -0
- package/component-meta/dataDisplay/table/table.json +5 -0
- package/component-meta/dataDisplay/table/tableCell.json +10 -0
- package/component-meta/dataDisplay/table/tableHeadCell.json +11 -1
- package/component-meta/dataDisplay/table/tableRow.json +5 -0
- package/component-meta/dataDisplay/thumbCard/thumbCard.json +16 -6
- package/component-meta/dataDisplay/timeline/timeline.json +42 -0
- package/component-meta/dataDisplay/timeline/timeline.timelineGroup.json +35 -0
- package/component-meta/dataDisplay/timeline/timeline.timelineItem.json +55 -0
- package/component-meta/dataDisplay/treeView/treeView.json +5 -0
- package/component-meta/dataDisplay/typography/typography.json +10 -0
- package/component-meta/feedBack/emptyState/emptyState.json +62 -0
- package/component-meta/feedBack/message/message.json +5 -0
- package/component-meta/feedBack/progressIndicator/progressIndicator.circularProgress.json +1 -1
- package/component-meta/feedBack/progressIndicator/progressIndicator.json +20 -0
- package/component-meta/feedBack/skeleton/skeleton.json +7 -2
- package/component-meta/feedBack/tooltip/tooltip.json +4 -4
- package/component-meta/inputs/button/button.json +5 -0
- package/component-meta/inputs/buttonGroups/buttonGroup.json +5 -0
- package/component-meta/inputs/checkbox/checkbox.json +2 -2
- package/component-meta/inputs/radioButton/radioButton.json +6 -1
- package/component-meta/inputs/rating/rating.json +11 -1
- package/component-meta/inputs/selectField/dropdownMenu.json +45 -0
- package/component-meta/inputs/selectField/selectField.json +11 -6
- package/component-meta/inputs/slider/slider.json +8 -3
- package/component-meta/inputs/textField/textField.json +3 -3
- package/component-meta/inputs/textField/textFieldWrapper.json +16 -1
- package/component-meta/inputs/toggle/toggle.json +1 -1
- package/component-meta/inputs/valueSlider/valueSlider.json +13 -8
- package/component-meta/layout/appLayout/appLayout.json +5 -0
- package/component-meta/layout/divider/divider.json +5 -0
- package/component-meta/layout/floatingWindow/floatingWindow.json +5 -0
- package/component-meta/layout/grid/grid.column.json +1 -1
- package/component-meta/layout/grid/grid.container.json +5 -0
- package/component-meta/layout/grid/grid.row.json +5 -0
- package/component-meta/layout/page/page.json +5 -0
- package/component-meta/layout/pageHeader/pageHeader.json +5 -0
- package/component-meta/layout/sectionHeader/sectionHeader.json +73 -0
- package/component-meta/layout/sheet/sheet.json +5 -0
- package/component-meta/layout/stack/stack.json +5 -0
- package/component-meta/navigation/appBar/appBar.json +5 -0
- package/component-meta/navigation/breadcrumbs/breadcrumbs.json +5 -0
- package/component-meta/navigation/menu/menu.json +1 -1
- package/component-meta/navigation/menu/menuItem.json +1 -1
- package/component-meta/navigation/pagination/pagination.json +5 -0
- package/component-meta/navigation/stepper/stepper.json +7 -2
- package/component-meta/navigation/tabs/tab/tab.json +5 -0
- package/component-meta/navigation/tabs/tabs.json +26 -5
- package/package.json +3 -3
|
@@ -37,6 +37,11 @@
|
|
|
37
37
|
"required": false,
|
|
38
38
|
"description": "Progress Value. Optional. Type: number."
|
|
39
39
|
},
|
|
40
|
+
"max": {
|
|
41
|
+
"type": "number",
|
|
42
|
+
"required": false,
|
|
43
|
+
"description": "Upper bound of `progressValue` (100 by default): with `max={14}`, `progressValue={3}` is 3 of 14."
|
|
44
|
+
},
|
|
40
45
|
"color": {
|
|
41
46
|
"type": "ProgressColor",
|
|
42
47
|
"required": false,
|
|
@@ -47,6 +52,21 @@
|
|
|
47
52
|
"required": false,
|
|
48
53
|
"description": "Circular size preset."
|
|
49
54
|
},
|
|
55
|
+
"fullWidth": {
|
|
56
|
+
"type": "boolean",
|
|
57
|
+
"required": false,
|
|
58
|
+
"description": "Linear: fill the container's width instead of the fixed 240px track."
|
|
59
|
+
},
|
|
60
|
+
"width": {
|
|
61
|
+
"type": "number | string",
|
|
62
|
+
"required": false,
|
|
63
|
+
"description": "Linear: the width, in px or any CSS length."
|
|
64
|
+
},
|
|
65
|
+
"valueLabel": {
|
|
66
|
+
"type": "boolean | ((value: number, max: number) => ReactNode)",
|
|
67
|
+
"required": false,
|
|
68
|
+
"description": "Linear, determinate: the value as text beside the bar. `true` shows a\npercentage — or \"3 / 14\" with a custom `max`; a function formats it, e.g.\n`(value, max) => <>{value} of {max}</>`."
|
|
69
|
+
},
|
|
50
70
|
"aria-label": {
|
|
51
71
|
"type": "string",
|
|
52
72
|
"required": false,
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"count": {
|
|
50
50
|
"type": "number",
|
|
51
51
|
"required": false,
|
|
52
|
-
"description": "Render N stacked placeholders."
|
|
52
|
+
"description": "Render N stacked placeholders. With `count` > 1 they sit in a group `<span>`, which takes the `ref` and the\nother HTML attributes; `className` and `style` go on each placeholder."
|
|
53
53
|
},
|
|
54
54
|
"animationDelay": {
|
|
55
55
|
"type": "number",
|
|
@@ -59,7 +59,12 @@
|
|
|
59
59
|
"component": {
|
|
60
60
|
"type": "\"span\" | \"div\"",
|
|
61
61
|
"required": false,
|
|
62
|
-
"description": "
|
|
62
|
+
"description": "Element of each placeholder."
|
|
63
|
+
},
|
|
64
|
+
"data-testid": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"required": false,
|
|
67
|
+
"description": "Test id of the placeholder; `skeleton` unless given. With `count` > 1 it\nmarks the group, and each placeholder keeps `skeleton`."
|
|
63
68
|
}
|
|
64
69
|
}
|
|
65
70
|
}
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"message": {
|
|
32
32
|
"type": "React.ReactNode",
|
|
33
33
|
"required": true,
|
|
34
|
-
"description": "
|
|
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):
|
|
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": "
|
|
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": "
|
|
59
|
+
"description": "Milliseconds from the pointer and keyboard focus both leaving the target until a hover tooltip hides."
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -88,6 +88,11 @@
|
|
|
88
88
|
"type": "boolean",
|
|
89
89
|
"required": false,
|
|
90
90
|
"description": "Whether the ripple touch feedback is disabled."
|
|
91
|
+
},
|
|
92
|
+
"data-testid": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"required": false,
|
|
95
|
+
"description": "Test id of the root; `button`, or `button-link` for a link, unless given."
|
|
91
96
|
}
|
|
92
97
|
}
|
|
93
98
|
}
|
|
@@ -55,6 +55,11 @@
|
|
|
55
55
|
"type": "\"primary\" | \"secondary\" | \"error\" | \"success\" | \"warning\" | \"info\"",
|
|
56
56
|
"required": false,
|
|
57
57
|
"description": "Semantic color propagated to child buttons."
|
|
58
|
+
},
|
|
59
|
+
"data-testid": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"required": false,
|
|
62
|
+
"description": "Test id of the root `<div>`; `button-group` unless given."
|
|
58
63
|
}
|
|
59
64
|
}
|
|
60
65
|
}
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"readOnly": {
|
|
38
38
|
"type": "boolean",
|
|
39
39
|
"required": false,
|
|
40
|
-
"description": "
|
|
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": "
|
|
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
|
"className": {
|
|
63
63
|
"type": "string",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"readOnly": {
|
|
39
39
|
"type": "boolean",
|
|
40
40
|
"required": false,
|
|
41
|
-
"description": "
|
|
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",
|
|
@@ -84,6 +84,11 @@
|
|
|
84
84
|
"type": "( event: React.ChangeEvent<HTMLInputElement>, value: string | number | readonly string[] | boolean | undefined, data: RadioButtonProps ) => void",
|
|
85
85
|
"required": false,
|
|
86
86
|
"description": "Unified handler: `(event, value, data)` where `value` is the radio's value (or checked state)."
|
|
87
|
+
},
|
|
88
|
+
"data-testid": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"required": false,
|
|
91
|
+
"description": "Test id of the `<input>`; `radio` unless given."
|
|
87
92
|
}
|
|
88
93
|
}
|
|
89
94
|
}
|
|
@@ -92,7 +92,17 @@
|
|
|
92
92
|
"id": {
|
|
93
93
|
"type": "string",
|
|
94
94
|
"required": false,
|
|
95
|
-
"description": "
|
|
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",
|
|
@@ -106,6 +106,51 @@
|
|
|
106
106
|
"type": "number",
|
|
107
107
|
"required": false,
|
|
108
108
|
"description": "Row height (px) used when `virtualized`."
|
|
109
|
+
},
|
|
110
|
+
"listboxId": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"required": false,
|
|
113
|
+
"description": "Id of the listbox; the options' ids follow from it (`dropdownOptionId`)."
|
|
114
|
+
},
|
|
115
|
+
"labelledBy": {
|
|
116
|
+
"type": "string",
|
|
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",
|
|
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",
|
|
127
|
+
"required": false,
|
|
128
|
+
"description": "Several options can be selected (`aria-multiselectable`)."
|
|
129
|
+
},
|
|
130
|
+
"activeIndex": {
|
|
131
|
+
"type": "number",
|
|
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",
|
|
137
|
+
"required": false,
|
|
138
|
+
"description": "Marks the active option and keeps it in view: the keyboard moved to it."
|
|
139
|
+
},
|
|
140
|
+
"searchInputProps": {
|
|
141
|
+
"type": "React.InputHTMLAttributes<HTMLInputElement>",
|
|
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": "React.Ref<HTMLInputElement>",
|
|
147
|
+
"required": false,
|
|
148
|
+
"description": "Search Input Ref. Optional. Type: React.Ref<HTMLInputElement>."
|
|
149
|
+
},
|
|
150
|
+
"menuRef": {
|
|
151
|
+
"type": "React.Ref<HTMLDivElement>",
|
|
152
|
+
"required": false,
|
|
153
|
+
"description": "The menu's root element."
|
|
109
154
|
}
|
|
110
155
|
}
|
|
111
156
|
}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"value": {
|
|
34
34
|
"type": "null | string | number | (string | number | undefined | null)[]",
|
|
35
35
|
"required": false,
|
|
36
|
-
"description": "
|
|
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`."
|
|
37
37
|
},
|
|
38
38
|
"defaultValue": {
|
|
39
39
|
"type": "null | string | number | (string | number)[]",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"search": {
|
|
89
89
|
"type": "true | false | \"menu\"",
|
|
90
90
|
"required": false,
|
|
91
|
-
"description": "
|
|
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."
|
|
92
92
|
},
|
|
93
93
|
"chips": {
|
|
94
94
|
"type": "boolean",
|
|
@@ -113,13 +113,18 @@
|
|
|
113
113
|
"label": {
|
|
114
114
|
"type": "string",
|
|
115
115
|
"required": false,
|
|
116
|
-
"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\"."
|
|
117
117
|
},
|
|
118
118
|
"variant": {
|
|
119
119
|
"type": "\"outlined\" | \"filled\"",
|
|
120
120
|
"required": false,
|
|
121
121
|
"description": "Visual style variant."
|
|
122
122
|
},
|
|
123
|
+
"size": {
|
|
124
|
+
"type": "\"small\" | \"medium\" | \"large\"",
|
|
125
|
+
"required": false,
|
|
126
|
+
"description": "Height of the field, as for TextField: `small` (40px, for toolbars), `medium` (default) or `large`."
|
|
127
|
+
},
|
|
123
128
|
"fullWidth": {
|
|
124
129
|
"type": "boolean",
|
|
125
130
|
"required": false,
|
|
@@ -163,7 +168,7 @@
|
|
|
163
168
|
"optionRenderer": {
|
|
164
169
|
"type": "(args: MenuItemProps) => React.ReactNode",
|
|
165
170
|
"required": false,
|
|
166
|
-
"description": "
|
|
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`className` and `onClick` on to it, so the option can be reached from the\nkeyboard, read out and picked."
|
|
167
172
|
},
|
|
168
173
|
"clearable": {
|
|
169
174
|
"type": "boolean",
|
|
@@ -193,12 +198,12 @@
|
|
|
193
198
|
"aria-label": {
|
|
194
199
|
"type": "string",
|
|
195
200
|
"required": false,
|
|
196
|
-
"description": "Accessible
|
|
201
|
+
"description": "Accessible name of the combobox. Replaces the name the visible `label`\ngives it; a field without a drawn label needs it."
|
|
197
202
|
},
|
|
198
203
|
"id": {
|
|
199
204
|
"type": "string",
|
|
200
205
|
"required": false,
|
|
201
|
-
"description": "
|
|
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."
|
|
202
207
|
}
|
|
203
208
|
}
|
|
204
209
|
}
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"valueField": {
|
|
72
72
|
"type": "boolean",
|
|
73
73
|
"required": false,
|
|
74
|
-
"description": "
|
|
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",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"label": {
|
|
82
82
|
"type": "string",
|
|
83
83
|
"required": false,
|
|
84
|
-
"description": "Visible label
|
|
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": "React.ReactNode",
|
|
@@ -121,7 +121,12 @@
|
|
|
121
121
|
"aria-label": {
|
|
122
122
|
"type": "string",
|
|
123
123
|
"required": false,
|
|
124
|
-
"description": "Accessible
|
|
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",
|
|
128
|
+
"required": false,
|
|
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",
|
|
26
26
|
"required": false,
|
|
27
|
-
"description": "Visible label
|
|
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": "React.ReactNode",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"className": {
|
|
60
60
|
"type": "string",
|
|
61
61
|
"required": false,
|
|
62
|
-
"description": "
|
|
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
63
|
},
|
|
64
64
|
"placeholder": {
|
|
65
65
|
"type": "string",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"id": {
|
|
120
120
|
"type": "string",
|
|
121
121
|
"required": false,
|
|
122
|
-
"description": "
|
|
122
|
+
"description": "Id of the `<input>`; the label points to it. Generated when not given."
|
|
123
123
|
},
|
|
124
124
|
"inline": {
|
|
125
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",
|
|
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": "\"outlined\" | \"filled\"",
|
|
36
41
|
"required": false,
|
|
@@ -74,7 +79,12 @@
|
|
|
74
79
|
"htmlFor": {
|
|
75
80
|
"type": "string",
|
|
76
81
|
"required": false,
|
|
77
|
-
"description": "
|
|
82
|
+
"description": "Id of the control the label names. Without it, the label names nothing."
|
|
83
|
+
},
|
|
84
|
+
"labelId": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"required": false,
|
|
87
|
+
"description": "Id of the `<label>`. A control that `htmlFor` cannot label (one that is not\na form element, such as SelectField's `role=\"button\"`) points\n`aria-labelledby` at it."
|
|
78
88
|
},
|
|
79
89
|
"shrink": {
|
|
80
90
|
"type": "boolean",
|
|
@@ -100,6 +110,11 @@
|
|
|
100
110
|
"type": "boolean",
|
|
101
111
|
"required": false,
|
|
102
112
|
"description": "Inline. Optional. Type: boolean."
|
|
113
|
+
},
|
|
114
|
+
"data-testid": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"required": false,
|
|
117
|
+
"description": "Test id of the root `<div>`; `text-field` unless given."
|
|
103
118
|
}
|
|
104
119
|
}
|
|
105
120
|
}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"readOnly": {
|
|
34
34
|
"type": "boolean",
|
|
35
35
|
"required": false,
|
|
36
|
-
"description": "
|
|
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",
|
|
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",
|
|
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,
|
|
@@ -90,18 +100,13 @@
|
|
|
90
100
|
"valueField": {
|
|
91
101
|
"type": "boolean",
|
|
92
102
|
"required": false,
|
|
93
|
-
"description": "
|
|
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": "React.ReactNode",
|
|
107
112
|
"required": false,
|
|
@@ -137,10 +142,10 @@
|
|
|
137
142
|
"required": false,
|
|
138
143
|
"description": "Show ticks/marks. `true` derives marks from `step`; an array gives explicit positions/labels."
|
|
139
144
|
},
|
|
140
|
-
"aria-
|
|
145
|
+
"aria-labelledby": {
|
|
141
146
|
"type": "string",
|
|
142
147
|
"required": false,
|
|
143
|
-
"description": "
|
|
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",
|
|
@@ -87,6 +87,11 @@
|
|
|
87
87
|
"type": "string",
|
|
88
88
|
"required": false,
|
|
89
89
|
"description": "Additional CSS class name(s) for the root element."
|
|
90
|
+
},
|
|
91
|
+
"data-testid": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"required": false,
|
|
94
|
+
"description": "Test id of the root `<div>`; `app-layout` unless given."
|
|
90
95
|
}
|
|
91
96
|
}
|
|
92
97
|
}
|
|
@@ -55,6 +55,11 @@
|
|
|
55
55
|
"type": "boolean",
|
|
56
56
|
"required": false,
|
|
57
57
|
"description": "Stretch to fill a flex container along the cross axis."
|
|
58
|
+
},
|
|
59
|
+
"data-testid": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"required": false,
|
|
62
|
+
"description": "Test id of the root `<div>`; `divider` unless given."
|
|
58
63
|
}
|
|
59
64
|
}
|
|
60
65
|
}
|
|
@@ -193,6 +193,11 @@
|
|
|
193
193
|
"type": "string",
|
|
194
194
|
"required": false,
|
|
195
195
|
"description": "Accessible label when no visible title is present."
|
|
196
|
+
},
|
|
197
|
+
"data-testid": {
|
|
198
|
+
"type": "string",
|
|
199
|
+
"required": false,
|
|
200
|
+
"description": "Test id of the window's root `<div>`; `floating-window` unless given."
|
|
196
201
|
}
|
|
197
202
|
}
|
|
198
203
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"rendering": "universal"
|
|
7
7
|
},
|
|
8
8
|
"extends": [
|
|
9
|
-
"React.HTMLAttributes<HTMLDivElement> & {\n /** Ширина на точке остановы: 1–12 из 12, `\"auto\"` (по контенту) или `true` (заполнить). */\n xs?: BreakpointType;\n sm?: BreakpointType;\n md?: BreakpointType;\n lg?: BreakpointType;\n xl?: BreakpointType;\n /** Сдвиг (пустые ведущие колонки) на точке остановы, 0–11. */\n xsOffset?: OffsetType;\n smOffset?: OffsetType;\n mdOffset?: OffsetType;\n lgOffset?: OffsetType;\n xlOffset?: OffsetType;\n /** Скрыть колонку: булево (всегда) или по точкам остановы `{ xs:true, md:false }`. */\n hidden?: ResponsiveBool;\n}"
|
|
9
|
+
"React.HTMLAttributes<HTMLDivElement> & {\n /** Ширина на точке остановы: 1–12 из 12, `\"auto\"` (по контенту) или `true` (заполнить). */\n xs?: BreakpointType;\n sm?: BreakpointType;\n md?: BreakpointType;\n lg?: BreakpointType;\n xl?: BreakpointType;\n /** Сдвиг (пустые ведущие колонки) на точке остановы, 0–11. */\n xsOffset?: OffsetType;\n smOffset?: OffsetType;\n mdOffset?: OffsetType;\n lgOffset?: OffsetType;\n xlOffset?: OffsetType;\n /** Скрыть колонку: булево (всегда) или по точкам остановы `{ xs:true, md:false }`. */\n hidden?: ResponsiveBool;\n /** Test id of the root `<div>`; `grid-col` unless given. */\n \"data-testid\"?: string;\n}"
|
|
10
10
|
],
|
|
11
11
|
"inheritedAttributes": "Also accepts standard HTML attributes for the underlying element (see extends clause in TypeScript).",
|
|
12
12
|
"styles": {
|
|
@@ -30,6 +30,11 @@
|
|
|
30
30
|
"type": "boolean",
|
|
31
31
|
"required": false,
|
|
32
32
|
"description": "Remove horizontal gutters."
|
|
33
|
+
},
|
|
34
|
+
"data-testid": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"required": false,
|
|
37
|
+
"description": "Test id of the root `<div>`; `grid-container` unless given."
|
|
33
38
|
}
|
|
34
39
|
}
|
|
35
40
|
}
|
|
@@ -45,6 +45,11 @@
|
|
|
45
45
|
"type": "number",
|
|
46
46
|
"required": false,
|
|
47
47
|
"description": "Spacing between stacked children."
|
|
48
|
+
},
|
|
49
|
+
"data-testid": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"required": false,
|
|
52
|
+
"description": "Test id of the root `<div>`; `grid-row` unless given."
|
|
48
53
|
}
|
|
49
54
|
}
|
|
50
55
|
}
|
|
@@ -40,6 +40,11 @@
|
|
|
40
40
|
"type": "string",
|
|
41
41
|
"required": false,
|
|
42
42
|
"description": "Additional CSS class name(s) for the root element."
|
|
43
|
+
},
|
|
44
|
+
"data-testid": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"required": false,
|
|
47
|
+
"description": "Test id of the root element; `page` unless given."
|
|
43
48
|
}
|
|
44
49
|
}
|
|
45
50
|
}
|
|
@@ -52,6 +52,11 @@
|
|
|
52
52
|
"type": "string",
|
|
53
53
|
"required": false,
|
|
54
54
|
"description": "Additional CSS class name(s) for the root element."
|
|
55
|
+
},
|
|
56
|
+
"data-testid": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"required": false,
|
|
59
|
+
"description": "Test id of the root `<header>`; `page-header` unless given."
|
|
55
60
|
}
|
|
56
61
|
}
|
|
57
62
|
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SectionHeader",
|
|
3
|
+
"description": "A section's heading row: title (h2–h6), a count, a '?' help hint (hover and keyboard focus), actions at the end, an optional subtitle.",
|
|
4
|
+
"ssr": {
|
|
5
|
+
"safe": true,
|
|
6
|
+
"rendering": "universal"
|
|
7
|
+
},
|
|
8
|
+
"extends": [
|
|
9
|
+
"Omit<HTMLAttributes<HTMLElement>, \"title\">"
|
|
10
|
+
],
|
|
11
|
+
"inheritedAttributes": "Also accepts standard HTML attributes for the underlying element (see extends clause in TypeScript).",
|
|
12
|
+
"styles": {
|
|
13
|
+
"base": [
|
|
14
|
+
"@smwb/ui-styles/less/foundation.less",
|
|
15
|
+
"@smwb/ui-styles/less/theme.less"
|
|
16
|
+
],
|
|
17
|
+
"entries": [
|
|
18
|
+
"@smwb/ui-styles/less/components/sectionHeader/sectionHeader.entry.less"
|
|
19
|
+
],
|
|
20
|
+
"dependencies": [
|
|
21
|
+
"@smwb/ui-styles/less/components/icon/icon.entry.less",
|
|
22
|
+
"@smwb/ui-styles/less/components/tooltip/tooltip.entry.less"
|
|
23
|
+
],
|
|
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/sectionHeader/sectionHeader.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/tooltip/tooltip.entry.less\";"
|
|
25
|
+
},
|
|
26
|
+
"props": {
|
|
27
|
+
"className": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"required": false,
|
|
30
|
+
"description": "Additional CSS class name(s) for the root element."
|
|
31
|
+
},
|
|
32
|
+
"title": {
|
|
33
|
+
"type": "ReactNode",
|
|
34
|
+
"required": true,
|
|
35
|
+
"description": "The section's name."
|
|
36
|
+
},
|
|
37
|
+
"level": {
|
|
38
|
+
"type": "2 | 3 | 4 | 5 | 6",
|
|
39
|
+
"required": false,
|
|
40
|
+
"description": "Heading level of the title: 2 by default."
|
|
41
|
+
},
|
|
42
|
+
"count": {
|
|
43
|
+
"type": "number | string | null",
|
|
44
|
+
"required": false,
|
|
45
|
+
"description": "How many items the section holds, beside the title. Nothing is shown for null."
|
|
46
|
+
},
|
|
47
|
+
"help": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"required": false,
|
|
50
|
+
"description": "How to read the section, behind a \"?\" icon: shown on hover and on keyboard\nfocus, and the icon's accessible name. Text only — the tooltip renders in\nthe browser."
|
|
51
|
+
},
|
|
52
|
+
"helpLabel": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"required": false,
|
|
55
|
+
"description": "The \"?\" icon's accessible name, e.g. \"Explanation: …\"; the help text by default."
|
|
56
|
+
},
|
|
57
|
+
"titleId": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"required": false,
|
|
60
|
+
"description": "Id of the heading, for anchors and aria-labelledby."
|
|
61
|
+
},
|
|
62
|
+
"subtitle": {
|
|
63
|
+
"type": "ReactNode",
|
|
64
|
+
"required": false,
|
|
65
|
+
"description": "A line under the title."
|
|
66
|
+
},
|
|
67
|
+
"data-testid": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"required": false,
|
|
70
|
+
"description": "Test id of the root `<header>`; `section-header` unless given."
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -115,6 +115,11 @@
|
|
|
115
115
|
"type": "string",
|
|
116
116
|
"required": false,
|
|
117
117
|
"description": "Accessible label when no visible title is present."
|
|
118
|
+
},
|
|
119
|
+
"data-testid": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"required": false,
|
|
122
|
+
"description": "Test id of the sheet panel (the dialog); `sheet` unless given."
|
|
118
123
|
}
|
|
119
124
|
}
|
|
120
125
|
}
|