bestax-mcp 1.18.98 → 1.18.100
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/data/catalog.json +1 -1
- package/data/components/Cascader.json +1 -1
- package/data/components/ColorInput.json +1 -1
- package/data/components/DateInput.json +1 -1
- package/data/components/DateTimeInput.json +1 -1
- package/data/components/Input.json +1 -1
- package/data/components/Numberinput.json +1 -1
- package/data/components/PasswordInput.json +1 -1
- package/data/components/TextArea.json +1 -1
- package/data/components/TimeInput.json +1 -1
- package/data/components/TreeSelect.json +1 -1
- package/data/skills/bestax-optimize/references/modular-build.md +20 -6
- package/package.json +4 -4
package/data/catalog.json
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"code": "<LocaleProvider locale=\"ar\" dir=\"rtl\">\n <Cascader\n label=\"المدينة\"\n defaultValue=\"berlin\"\n clearable\n data={[\n {\n value: 'germany',\n label: 'ألمانيا',\n children: [{ value: 'berlin', label: 'برلين' }],\n },\n { value: 'oceania', label: 'أوقيانوسيا' },\n ]}\n />\n</LocaleProvider>"
|
|
43
43
|
}
|
|
44
44
|
],
|
|
45
|
-
"accessibility": "- **The field is a combobox that opens a dialog,** as the date pickers' and TreeSelect's are:\n `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls` while the\n panel is open, named by its `label`. It's read-only, and its value is the picked node's path.\n- **Keys on the field:** a click, Enter, Space, Down or Alt+Down opens the panel, and with\n `searchable` a printable key opens it with that key in the search box.\n- **The clear button** is a [`Delete`](https://bestax.io/docs/api/elements/delete#accessibility) named \"Clear\", or\n `labels.clear`. Its target is a box at least 24px square around the circle, over the field, so\n a press just beside a small circle clears the field rather than opening the panel.\n- **The panel** is a non-modal `dialog`, named by the label or `labels.choose`. Focus moves into\n it as it opens: onto the picked node, its path open, or with nothing picked onto the first\n column's item on an open path, or its first enabled item, so a `defaultExpanded` path stays\n open. It holds\n focus while it's open, as the date pickers' panel does: Tab and Shift+Tab move between the\n search box and the columns, and wrap. Escape and Alt+Up close it and put focus back on the\n field, and so does a pick. A press outside closes it and leaves focus where the press put it.\n- **Each column** is a `listbox` with one tab stop and real focus on its `option`s. The first is\n named as the panel is, and each one after it by the label of the item that opened it. Up, Down,\n Home, End and type-ahead move within a column, and type-ahead starts over in each column it\n comes into and after Up, Down, Home or End. Space joins a search under way when an item starts with what's been typed and a\n space, so \"new y\" reaches \"New York\", and otherwise picks or opens. Right opens the next column\n and moves into it, Left goes back, and the two swap on a right-to-left page. Disabled items are\n reachable and `aria-disabled`, and Right moves into a column at its item on the open path even\n when that one is disabled.\n- **The picked node's path is `aria-selected`,** and drawn filled, its items `is-checked` as\n Combobox's picked items are. The path you've opened, which follows focus, is drawn with a lighter\n tint, its items `is-active` as Combobox's highlighted item is, and isn't announced as selected, so moving around never says an item is picked when it isn't. A disabled\n node on the picked path is selected but not filled, so it stays readable. In forced colors the\n picked path takes the system's highlight and the open path an outline. Right opens the focused\n item and nothing else.\n- **An item that opens a column** is described by \"Opens a column\", or `labels.opens`, since an\n option has no way of its own to say it has items under it. Its chevron is hidden.\n- **A column that's loading** ends in a row that says so, and a failed load's row is named by its\n message and its Retry, which Enter, Space or a click run. The live region says when a column\n starts loading and when it's loaded, as TreeView's does.\n- **The search box** is named \"Search\", or `labels.search`, and its results are a listbox of the\n paths that match. Enter picks the highlighted path unless it's disabled, and with none\n highlighted it does nothing, so it never submits the form around the field. When nothing matches, `empty` is said once\n through a polite status region, not again on every key.\n- **`required`** makes the field `aria-required`. A read-only field is left out of the browser's\n own check, so a hidden field over it carries `required`. When the browser stops a submit, it\n focuses that one and shows its message, which every browser takes down as it loses focus. So\n focus stays there, reading as the field and drawn on it, with no on-screen keyboard. A press\n goes where it lands, and the next key, other than a modifier on its own, goes to the field and\n does what it would there.\n- **Forced colors:** the field, the panel and the columns keep their edges in system colors, the\n path through the columns keeps the system's highlight, and the chevrons are borders, so they\n stay.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.\n- The `message` describes the field through `aria-describedby`, after any ids you pass there, so a screen reader reads it when the field takes focus.\n- `aria-invalid` and `aria-errormessage` go on the field, while the other attributes you pass go on the wrapper, so a screen reader hears the field is invalid when it takes focus.",
|
|
45
|
+
"accessibility": "- **The field is a combobox that opens a dialog,** as the date pickers' and TreeSelect's are:\n `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls` while the\n panel is open, named by its `label`. It's read-only, and its value is the picked node's path.\n- **Keys on the field:** a click, Enter, Space, Down or Alt+Down opens the panel, and with\n `searchable` a printable key opens it with that key in the search box.\n- **The clear button** is a [`Delete`](https://bestax.io/docs/api/elements/delete#accessibility) named \"Clear\", or\n `labels.clear`. Its target is a box at least 24px square around the circle, over the field, so\n a press just beside a small circle clears the field rather than opening the panel.\n- **The panel** is a non-modal `dialog`, named by the label or `labels.choose`. Focus moves into\n it as it opens: onto the picked node, its path open, or with nothing picked onto the first\n column's item on an open path, or its first enabled item, so a `defaultExpanded` path stays\n open. It holds\n focus while it's open, as the date pickers' panel does: Tab and Shift+Tab move between the\n search box and the columns, and wrap. Escape and Alt+Up close it and put focus back on the\n field, and so does a pick. A press outside closes it and leaves focus where the press put it.\n- **Each column** is a `listbox` with one tab stop and real focus on its `option`s. The first is\n named as the panel is, and each one after it by the label of the item that opened it. Up, Down,\n Home, End and type-ahead move within a column, and type-ahead starts over in each column it\n comes into and after Up, Down, Home or End. Space joins a search under way when an item starts with what's been typed and a\n space, so \"new y\" reaches \"New York\", and otherwise picks or opens. Right opens the next column\n and moves into it, Left goes back, and the two swap on a right-to-left page. Disabled items are\n reachable and `aria-disabled`, and Right moves into a column at its item on the open path even\n when that one is disabled.\n- **The picked node's path is `aria-selected`,** and drawn filled, its items `is-checked` as\n Combobox's picked items are. The path you've opened, which follows focus, is drawn with a lighter\n tint, its items `is-active` as Combobox's highlighted item is, and isn't announced as selected, so moving around never says an item is picked when it isn't. A disabled\n node on the picked path is selected but not filled, so it stays readable. In forced colors the\n picked path takes the system's highlight and the open path an outline. Right opens the focused\n item and nothing else.\n- **An item that opens a column** is described by \"Opens a column\", or `labels.opens`, since an\n option has no way of its own to say it has items under it. Its chevron is hidden.\n- **A column that's loading** ends in a row that says so, and a failed load's row is named by its\n message and its Retry, which Enter, Space or a click run. The live region says when a column\n starts loading and when it's loaded, as TreeView's does.\n- **The search box** is named \"Search\", or `labels.search`, and its results are a listbox of the\n paths that match. Enter picks the highlighted path unless it's disabled, and with none\n highlighted it does nothing, so it never submits the form around the field. When nothing matches, `empty` is said once\n through a polite status region, not again on every key.\n- **`required`** makes the field `aria-required`. A read-only field is left out of the browser's\n own check, so a hidden field over it carries `required`. When the browser stops a submit, it\n focuses that one and shows its message, which every browser takes down as it loses focus. So\n focus stays there, reading as the field and drawn on it, with no on-screen keyboard. A press\n goes where it lands, and the next key, other than a modifier on its own, goes to the field and\n does what it would there.\n- **Forced colors:** the field, the panel and the columns keep their edges in system colors, the\n path through the columns keeps the system's highlight, and the chevrons are borders, so they\n stay.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.\n- The `message` describes the field through `aria-describedby`, after any ids you pass there, so a screen reader reads it when the field takes focus.\n- `aria-invalid` and `aria-errormessage` go on the field, while the other attributes you pass go on the wrapper, so a screen reader hears the field is invalid when it takes focus.\n- **Forced colors:** the field is read-only, so it shows no text caret, and only its border's\n color would change when it's focused, so a focused field draws an outline in Bulma's focus style\n and width there, painted in a system color.",
|
|
46
46
|
"related": [
|
|
47
47
|
"Combobox",
|
|
48
48
|
"Select",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"code": "<Field label=\"Bare\">\n <Control>\n <ColorInputBase defaultValue=\"#ff6685\" />\n </Control>\n</Field>"
|
|
51
51
|
}
|
|
52
52
|
],
|
|
53
|
-
"accessibility": "- **The field is a combobox that opens a dialog**, as the date pickers' is: `role=\"combobox\"`,\n `aria-haspopup=\"dialog\"`, `aria-expanded` and `aria-controls`, named by its `label`. The\n launcher is a button named \"Choose color\" with the same attributes.\n- **Keys in the field:** Alt+ArrowDown opens the panel; Enter commits typed text; Escape puts\n typed text back without closing a `Modal` around the field.\n- **The panel** is a non-modal `dialog` named \"Choose color\" that holds focus while it's open.\n Focus starts on the saturation and brightness square, and Escape, Alt+ArrowUp or a press\n outside closes it and hands focus back to the field.\n- **The square and the sliders** are `ColorPicker`'s: native range inputs, the square one 2D\n slider with one tab stop. See [`ColorPicker`](https://bestax.io/docs/api/form/colorpicker#accessibility).\n- **The swatch in the field** is for the pointer only: it's hidden from assistive tech and takes\n no tab stop, since the launcher does the same from the keyboard.\n- **The value is always text** in the field, and text it can't read is marked `aria-invalid`.\n- **Forced colors:** the swatch keeps its color with an edge in the system's text color. A\n disabled launcher draws in the system's color for a disabled control, at full strength rather\n than faded. A disabled swatch stays faded, since its color is the value it shows.\n- **Strings** come from `labels`, with English defaults.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.\n- The `message` describes the text input through `aria-describedby`, after any ids you pass there, so a screen reader reads it when the input takes focus.",
|
|
53
|
+
"accessibility": "- **The field is a combobox that opens a dialog**, as the date pickers' is: `role=\"combobox\"`,\n `aria-haspopup=\"dialog\"`, `aria-expanded` and `aria-controls`, named by its `label`. The\n launcher is a button named \"Choose color\" with the same attributes.\n- **Keys in the field:** Alt+ArrowDown opens the panel; Enter commits typed text; Escape puts\n typed text back without closing a `Modal` around the field.\n- **The panel** is a non-modal `dialog` named \"Choose color\" that holds focus while it's open.\n Focus starts on the saturation and brightness square, and Escape, Alt+ArrowUp or a press\n outside closes it and hands focus back to the field.\n- **The square and the sliders** are `ColorPicker`'s: native range inputs, the square one 2D\n slider with one tab stop. See [`ColorPicker`](https://bestax.io/docs/api/form/colorpicker#accessibility).\n- **The swatch in the field** is for the pointer only: it's hidden from assistive tech and takes\n no tab stop, since the launcher does the same from the keyboard.\n- **The value is always text** in the field, and text it can't read is marked `aria-invalid`.\n- **Forced colors:** the swatch keeps its color with an edge in the system's text color. A\n disabled launcher draws in the system's color for a disabled control, at full strength rather\n than faded. A disabled swatch stays faded, since its color is the value it shows. A focused\n `readOnly` field draws an outline in Bulma's focus style and width, painted in a system color,\n since it shows no text caret and only its border's color would change there.\n- **Strings** come from `labels`, with English defaults.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.\n- The `message` describes the text input through `aria-describedby`, after any ids you pass there, so a screen reader reads it when the input takes focus.",
|
|
54
54
|
"related": ["ColorPicker", "ColorSwatch", "DateInput", "useBulmaClasses"],
|
|
55
55
|
"storybook": "https://bestax.io/storybook/?path=/story/form-colorinput--default",
|
|
56
56
|
"summary": "The `ColorInput` component is a form field for a color: type it, or open a color picker from its launcher or its swatch. The value is a CSS color string, HSL by default, or empty. The panel is the `ColorPicker`'s square, hue slider and, when asked for, alpha slider, swatches and eye dropper, in the same popover the date pickers use.",
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
"code": "function example() {\n return (\n <Field\n horizontal\n label=\"Date\"\n labelProps={{ htmlFor: 'date-field-control' }}\n >\n <Field.Body>\n <Field>\n <Control iconLeftName=\"calendar-alt\">\n <DateInput id=\"date-field-control\" placeholder=\"YYYY-MM-DD\" />\n </Control>\n </Field>\n </Field.Body>\n </Field>\n );\n}"
|
|
179
179
|
}
|
|
180
180
|
],
|
|
181
|
-
"accessibility": "- Trigger uses `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls`.\n- Popover panel has `role=\"dialog\"` with an accessible name. Opening it puts focus on the focused date, month or year.\n- An `inline` picker has no input for its `label` to name, so its root is a `role=\"group\"` the `label` names through `aria-labelledby` and its `message` describes. A labeled `Field` around it names it the same way, unless the `Field` is `grouped` or `hasAddons`, or a label is wired by hand with `labelProps.htmlFor`. An `aria-label` or `aria-labelledby` you give it names it instead. With no name it stays a plain `div`, and its grid or year list inside keep their own names.\n- Closing the popover with `Escape` or a pick returns focus to the input, whether the input or the launcher opened it. Under `openOnFocus` that returning focus leaves the popover closed; focusing or clicking the input again opens it. Dismissing without a pick commits nothing: an empty field stays empty, and leaving afterwards commits only what you typed.\n- Calendar uses `role=\"grid\"` with cells as `role=\"gridcell\"`. Its first row holds the weekday names as `role=\"columnheader\"`s, each named by the full weekday in the picker's locale, so a screen reader can name the weekday as focus moves to another column. A server-rendered calendar adds those full names once the page hydrates, and with `dayNames` the columns are named by the names you give instead. Each day keeps its number as its name.\n- With `nearbyMonthDays` off, the calendar leaves a nearby month's days blank, and a week with no day on show keeps its place, so the grid keeps its height, and is hidden from assistive technology rather than read as an empty row. A blank day is still a cell of its week, an empty one with no name, so the days after it keep their weekday's column. The device's own picker, which `mobileNative` opens on a touch device, draws its own grid.\n- Days expose `aria-selected`, `aria-disabled`, and `aria-current=\"date\"` for today. On a server-rendered page, today's day, month and year get it once the page hydrates, so the reader's clock decides which.\n- In forced colors (Windows' contrast themes), the fill that marks the selected day, month or year, and the year the header's year list is on, is replaced, so bestax's styles draw it in the system's highlight colors there, or in the system's color for a disabled control when it's disabled.\n- In forced colors, a disabled day, month or year, a disabled month or arrow button in the header, and a disabled launcher draw in the system's color for a disabled control, at full strength rather than faded.\n- A `disabled` inline calendar puts `aria-disabled=\"true\"` on its grid or year list and disables every button in it. A `readOnly` one puts `aria-readonly=\"true\"` on the grid or year list it picks from, and keeps its tab stop and keys.\n- Roving `tabindex` keeps a single grid cell focusable at a time, and focus moves with it, inline as in the popover. When the focused date is disabled, that cell is the nearest enabled day of the month.\n- Closing the year list opened from the header, with a pick or `Escape`, puts focus back on the grid's tab stop, inline as in the popover.\n- The month grid is a `role=\"grid\"` of `role=\"row\"`s, labelled by the year in its header. Each month cell carries the full month name as its accessible name, `aria-current=\"date\"` for this month and `aria-disabled` for a month with no selectable day.\n- The year list is a `role=\"listbox\"`, named by the `chooseYear` label where it is the selection surface and by the heading that opens it otherwise. As the selection surface its options take `aria-selected` from the value's year rather than from focus, which roves through the list. When the focused year is disabled, the nearest enabled year takes the tab stop, so `Tab` still reaches the list.\n- The launcher and popover are named \"Choose month\" or \"Choose year\" to match the granularity; override them, and the month grid's \"Previous year\" / \"Next year\" buttons, through `labels` (`chooseMonth`, `chooseYear`, `prevYear`, `nextYear`).\n- Honors `prefers-reduced-motion` (skip popover fade-in).\n- On a right-to-left page the launcher sits at the end of the line and the calendar icon at the start, and the previous-month chevron points right. The month names follow the page.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.\n- The `message` describes the input through `aria-describedby`, so a screen reader reads it when the input takes focus. Ids you pass in `aria-describedby` go on the container with the other attributes, except on a phone's native input, which lists them first. An `inline` picker has no input, so there the message describes the picker's group, when something names it.\n- `aria-invalid` and `aria-errormessage` go on the input, while the other attributes you pass go on the container, so a screen reader hears the input is invalid when it takes focus. An `inline` picker has no input, and they stay on its container.\n- The input takes its name from `label`, from a labeled `Field` that isn't `grouped` or `hasAddons` around a `DateInputBase` with no `id` of its own, or from a `<label htmlFor>` of your own pointing at the `id` you give it. `aria-label` and `aria-labelledby` go on the container with the other attributes you pass, so they don't name the input, except on the native input `mobileNative` renders, which takes them itself. An `inline` picker has no input to name.\n- A date of birth takes `autoComplete=\"bday\"`, which goes on the field, so the browser and assistive technology know what it asks for (WCAG 1.3.5). Without a token the text field turns autocomplete off, since the browser's own suggestions would cover the calendar. A date that autofill writes commits when it reads in the token `format` (the default one when `format` is `Intl` options) or through your `parse`. One it can't read, or that `min`, `max` or a blocked day rules out, isn't committed, as with typing: the field shows it as written, and submits it under a `name`, until focus next leaves the field.",
|
|
181
|
+
"accessibility": "- Trigger uses `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls`.\n- In forced colors (Windows' contrast themes), a focused input that can't be typed in, with `readOnly` or `editable={false}`, draws an outline in Bulma's focus style and width, painted in a system color, since it shows no text caret and only its border's color would change there.\n- Popover panel has `role=\"dialog\"` with an accessible name. Opening it puts focus on the focused date, month or year.\n- An `inline` picker has no input for its `label` to name, so its root is a `role=\"group\"` the `label` names through `aria-labelledby` and its `message` describes. A labeled `Field` around it names it the same way, unless the `Field` is `grouped` or `hasAddons`, or a label is wired by hand with `labelProps.htmlFor`. An `aria-label` or `aria-labelledby` you give it names it instead. With no name it stays a plain `div`, and its grid or year list inside keep their own names.\n- Closing the popover with `Escape` or a pick returns focus to the input, whether the input or the launcher opened it. Under `openOnFocus` that returning focus leaves the popover closed; focusing or clicking the input again opens it. Dismissing without a pick commits nothing: an empty field stays empty, and leaving afterwards commits only what you typed.\n- Calendar uses `role=\"grid\"` with cells as `role=\"gridcell\"`. Its first row holds the weekday names as `role=\"columnheader\"`s, each named by the full weekday in the picker's locale, so a screen reader can name the weekday as focus moves to another column. A server-rendered calendar adds those full names once the page hydrates, and with `dayNames` the columns are named by the names you give instead. Each day keeps its number as its name.\n- With `nearbyMonthDays` off, the calendar leaves a nearby month's days blank, and a week with no day on show keeps its place, so the grid keeps its height, and is hidden from assistive technology rather than read as an empty row. A blank day is still a cell of its week, an empty one with no name, so the days after it keep their weekday's column. The device's own picker, which `mobileNative` opens on a touch device, draws its own grid.\n- Days expose `aria-selected`, `aria-disabled`, and `aria-current=\"date\"` for today. On a server-rendered page, today's day, month and year get it once the page hydrates, so the reader's clock decides which.\n- In forced colors (Windows' contrast themes), the fill that marks the selected day, month or year, and the year the header's year list is on, is replaced, so bestax's styles draw it in the system's highlight colors there, or in the system's color for a disabled control when it's disabled.\n- In forced colors, a disabled day, month or year, a disabled month or arrow button in the header, and a disabled launcher draw in the system's color for a disabled control, at full strength rather than faded.\n- A `disabled` inline calendar puts `aria-disabled=\"true\"` on its grid or year list and disables every button in it. A `readOnly` one puts `aria-readonly=\"true\"` on the grid or year list it picks from, and keeps its tab stop and keys.\n- Roving `tabindex` keeps a single grid cell focusable at a time, and focus moves with it, inline as in the popover. When the focused date is disabled, that cell is the nearest enabled day of the month.\n- Closing the year list opened from the header, with a pick or `Escape`, puts focus back on the grid's tab stop, inline as in the popover.\n- The month grid is a `role=\"grid\"` of `role=\"row\"`s, labelled by the year in its header. Each month cell carries the full month name as its accessible name, `aria-current=\"date\"` for this month and `aria-disabled` for a month with no selectable day.\n- The year list is a `role=\"listbox\"`, named by the `chooseYear` label where it is the selection surface and by the heading that opens it otherwise. As the selection surface its options take `aria-selected` from the value's year rather than from focus, which roves through the list. When the focused year is disabled, the nearest enabled year takes the tab stop, so `Tab` still reaches the list.\n- The launcher and popover are named \"Choose month\" or \"Choose year\" to match the granularity; override them, and the month grid's \"Previous year\" / \"Next year\" buttons, through `labels` (`chooseMonth`, `chooseYear`, `prevYear`, `nextYear`).\n- Honors `prefers-reduced-motion` (skip popover fade-in).\n- On a right-to-left page the launcher sits at the end of the line and the calendar icon at the start, and the previous-month chevron points right. The month names follow the page.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.\n- The `message` describes the input through `aria-describedby`, so a screen reader reads it when the input takes focus. Ids you pass in `aria-describedby` go on the container with the other attributes, except on a phone's native input, which lists them first. An `inline` picker has no input, so there the message describes the picker's group, when something names it.\n- `aria-invalid` and `aria-errormessage` go on the input, while the other attributes you pass go on the container, so a screen reader hears the input is invalid when it takes focus. An `inline` picker has no input, and they stay on its container.\n- The input takes its name from `label`, from a labeled `Field` that isn't `grouped` or `hasAddons` around a `DateInputBase` with no `id` of its own, or from a `<label htmlFor>` of your own pointing at the `id` you give it. `aria-label` and `aria-labelledby` go on the container with the other attributes you pass, so they don't name the input, except on the native input `mobileNative` renders, which takes them itself. An `inline` picker has no input to name.\n- A date of birth takes `autoComplete=\"bday\"`, which goes on the field, so the browser and assistive technology know what it asks for (WCAG 1.3.5). Without a token the text field turns autocomplete off, since the browser's own suggestions would cover the calendar. A date that autofill writes commits when it reads in the token `format` (the default one when `format` is `Intl` options) or through your `parse`. One it can't read, or that `min`, `max` or a blocked day rules out, isn't committed, as with typing: the field shows it as written, and submits it under a `name`, until focus next leaves the field.",
|
|
182
182
|
"related": ["DateTimeInput", "Input", "TimeInput"],
|
|
183
183
|
"storybook": "https://bestax.io/storybook/?path=/story/form-dateinput",
|
|
184
184
|
"summary": "The `DateInput` component is a form input that opens a popover calendar for date selection.",
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
"code": "<DateTimeInput label=\"Input only\" popover={false} defaultValue={new Date()} />"
|
|
171
171
|
}
|
|
172
172
|
],
|
|
173
|
-
"accessibility": "- Trigger uses `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls`.\n- Popover panel has `role=\"dialog\"` with an accessible name. Opening it puts focus on the focused date.\n- An `inline` picker has no input for its `label` to name, so its root is a `role=\"group\"` the `label` names through `aria-labelledby` and its `message` describes. A labeled `Field` around it names it the same way, unless the `Field` is `grouped` or `hasAddons`, or a label is wired by hand with `labelProps.htmlFor`. An `aria-label` or `aria-labelledby` you give it names it instead. With no name it stays a plain `div`, and its grid and its wheels inside keep their own names.\n- Closing the popover with `Escape`, the ✓ button or `Enter` on a time wheel returns focus to the input, whether the input or the launcher opened it. Under `openOnFocus` that returning focus leaves the popover closed; focusing or clicking the input again opens it. Closing it commits nothing by itself: an empty field stays empty, and leaving afterwards commits only what you typed, so seconds the display leaves out are kept.\n- Calendar uses `role=\"grid\"`. Its first row holds the weekday names as `role=\"columnheader\"`s, each named by the full weekday in the picker's locale, so a screen reader can name the weekday as focus moves to another column. A server-rendered calendar adds those full names once the page hydrates, and with `dayNames` the columns are named by the names you give instead. Each day keeps its number as its name.\n- With `nearbyMonthDays` off, the calendar leaves a nearby month's days blank, and a week with no day on show keeps its place, so the grid keeps its height, and is hidden from assistive technology rather than read as an empty row. A blank day is still a cell of its week, an empty one with no name, so the days after it keep their weekday's column. The device's own picker, which `mobileNative` opens on a touch device, draws its own grid.\n- Days expose `aria-selected`, `aria-disabled`, and `aria-current=\"date\"` for today. On a server-rendered page, today gets it once the page hydrates, so the reader's clock decides which day.\n- In forced colors (Windows' contrast themes), the fill that marks the selected day, and the year the header's year list is on, is replaced, so bestax's styles draw it in the system's highlight colors there, or in the system's color for a disabled control when it's disabled.\n- In forced colors, a disabled day, month or year, a disabled month or arrow button in the header, a disabled Time, Reset or ✓ button in the footer, and a disabled launcher draw in the system's color for a disabled control, at full strength rather than faded.\n- Roving `tabindex` keeps a single day focusable at a time, and focus moves with it, inline as in the popover. When the focused date is disabled, that cell is the nearest enabled day of the month.\n- Closing the year list opened from the header, with a pick or `Escape`, puts focus back on the grid's tab stop, inline as in the popover.\n- A `disabled` inline panel puts `aria-disabled=\"true\"` on its grid and disables every button in it. A `readOnly` one puts `aria-readonly=\"true\"` there instead, and keeps its tab stop and keys.\n- Each time wheel uses `role=\"spinbutton\"` with `aria-valuemin`, `aria-valuemax`, `aria-valuenow`, and `aria-valuetext`, whose text is the number as the wheel shows it, in the picker's locale's digits when it has a locale. The values drawn above and below are click targets hidden from assistive technology, which reads the value from the spinbutton.\n- In a 12-hour picker, AM/PM is one of those wheels, reading `AM` or `PM`, or the picker's locale's words for them when it has a locale, and it widens to fit a longer word. Its accessible name is `AM/PM` unless `labels.ampm` sets another.\n- In forced colors (Windows' contrast themes), the time wheels' band is drawn in the system's highlight color, since its fill is replaced there, and the values keep the system's text color.\n- The footer's confirm button exposes an accessible label (`Done`); the Reset button reverts your edits to the value the popover opened with, or on an `inline` picker, to the one described under [Inline](https://bestax.io/docs/api/form/datetime/datetimeinput#inline).\n- Tab order walks from the calendar to the footer (Reset / ✓), and from the time wheels to the footer while they are open.\n- On a right-to-left page the launcher sits at the end of the line and the calendar icon at the start. The time wheels keep `dir=\"ltr\"`.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.\n- The `message` describes the input through `aria-describedby`, so a screen reader reads it when the input takes focus. Ids you pass in `aria-describedby` go on the container with the other attributes, except on a phone's native input, which lists them first. An `inline` picker has no input, so there the message describes the picker's group, when something names it.\n- `aria-invalid` and `aria-errormessage` go on the input, while the other attributes you pass go on the container, so a screen reader hears the input is invalid when it takes focus. An `inline` picker has no input, and they stay on its container.\n- The input takes its name from `label`, from a labeled `Field` that isn't `grouped` or `hasAddons` around a `DateTimeInputBase` with no `id` of its own, or from a `<label htmlFor>` of your own pointing at the `id` you give it. `aria-label` and `aria-labelledby` go on the container with the other attributes you pass, so they don't name the input, except on the native input `mobileNative` renders, which takes them itself. An `inline` picker has no input to name.\n- An `autoComplete` you give goes on the field. Without one the text field turns autocomplete off, since the browser's own suggestions would cover the panel. A date and time that autofill writes commits when it reads in the token `format` (the default one when `format` is `Intl` options) or through your `parse`. One it can't read, or that `min`, `max` or a blocked day or time rules out, isn't committed, as with typing: the field shows it as written, and submits it under a `name`, until focus next leaves the field.",
|
|
173
|
+
"accessibility": "- Trigger uses `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls`.\n- In forced colors (Windows' contrast themes), a focused input that can't be typed in, with `readOnly` or `editable={false}`, draws an outline in Bulma's focus style and width, painted in a system color, since it shows no text caret and only its border's color would change there.\n- Popover panel has `role=\"dialog\"` with an accessible name. Opening it puts focus on the focused date.\n- An `inline` picker has no input for its `label` to name, so its root is a `role=\"group\"` the `label` names through `aria-labelledby` and its `message` describes. A labeled `Field` around it names it the same way, unless the `Field` is `grouped` or `hasAddons`, or a label is wired by hand with `labelProps.htmlFor`. An `aria-label` or `aria-labelledby` you give it names it instead. With no name it stays a plain `div`, and its grid and its wheels inside keep their own names.\n- Closing the popover with `Escape`, the ✓ button or `Enter` on a time wheel returns focus to the input, whether the input or the launcher opened it. Under `openOnFocus` that returning focus leaves the popover closed; focusing or clicking the input again opens it. Closing it commits nothing by itself: an empty field stays empty, and leaving afterwards commits only what you typed, so seconds the display leaves out are kept.\n- Calendar uses `role=\"grid\"`. Its first row holds the weekday names as `role=\"columnheader\"`s, each named by the full weekday in the picker's locale, so a screen reader can name the weekday as focus moves to another column. A server-rendered calendar adds those full names once the page hydrates, and with `dayNames` the columns are named by the names you give instead. Each day keeps its number as its name.\n- With `nearbyMonthDays` off, the calendar leaves a nearby month's days blank, and a week with no day on show keeps its place, so the grid keeps its height, and is hidden from assistive technology rather than read as an empty row. A blank day is still a cell of its week, an empty one with no name, so the days after it keep their weekday's column. The device's own picker, which `mobileNative` opens on a touch device, draws its own grid.\n- Days expose `aria-selected`, `aria-disabled`, and `aria-current=\"date\"` for today. On a server-rendered page, today gets it once the page hydrates, so the reader's clock decides which day.\n- In forced colors (Windows' contrast themes), the fill that marks the selected day, and the year the header's year list is on, is replaced, so bestax's styles draw it in the system's highlight colors there, or in the system's color for a disabled control when it's disabled.\n- In forced colors, a disabled day, month or year, a disabled month or arrow button in the header, a disabled Time, Reset or ✓ button in the footer, and a disabled launcher draw in the system's color for a disabled control, at full strength rather than faded.\n- Roving `tabindex` keeps a single day focusable at a time, and focus moves with it, inline as in the popover. When the focused date is disabled, that cell is the nearest enabled day of the month.\n- Closing the year list opened from the header, with a pick or `Escape`, puts focus back on the grid's tab stop, inline as in the popover.\n- A `disabled` inline panel puts `aria-disabled=\"true\"` on its grid and disables every button in it. A `readOnly` one puts `aria-readonly=\"true\"` there instead, and keeps its tab stop and keys.\n- Each time wheel uses `role=\"spinbutton\"` with `aria-valuemin`, `aria-valuemax`, `aria-valuenow`, and `aria-valuetext`, whose text is the number as the wheel shows it, in the picker's locale's digits when it has a locale. The values drawn above and below are click targets hidden from assistive technology, which reads the value from the spinbutton.\n- In a 12-hour picker, AM/PM is one of those wheels, reading `AM` or `PM`, or the picker's locale's words for them when it has a locale, and it widens to fit a longer word. Its accessible name is `AM/PM` unless `labels.ampm` sets another.\n- In forced colors (Windows' contrast themes), the time wheels' band is drawn in the system's highlight color, since its fill is replaced there, and the values keep the system's text color.\n- The footer's confirm button exposes an accessible label (`Done`); the Reset button reverts your edits to the value the popover opened with, or on an `inline` picker, to the one described under [Inline](https://bestax.io/docs/api/form/datetime/datetimeinput#inline).\n- Tab order walks from the calendar to the footer (Reset / ✓), and from the time wheels to the footer while they are open.\n- On a right-to-left page the launcher sits at the end of the line and the calendar icon at the start. The time wheels keep `dir=\"ltr\"`.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.\n- The `message` describes the input through `aria-describedby`, so a screen reader reads it when the input takes focus. Ids you pass in `aria-describedby` go on the container with the other attributes, except on a phone's native input, which lists them first. An `inline` picker has no input, so there the message describes the picker's group, when something names it.\n- `aria-invalid` and `aria-errormessage` go on the input, while the other attributes you pass go on the container, so a screen reader hears the input is invalid when it takes focus. An `inline` picker has no input, and they stay on its container.\n- The input takes its name from `label`, from a labeled `Field` that isn't `grouped` or `hasAddons` around a `DateTimeInputBase` with no `id` of its own, or from a `<label htmlFor>` of your own pointing at the `id` you give it. `aria-label` and `aria-labelledby` go on the container with the other attributes you pass, so they don't name the input, except on the native input `mobileNative` renders, which takes them itself. An `inline` picker has no input to name.\n- An `autoComplete` you give goes on the field. Without one the text field turns autocomplete off, since the browser's own suggestions would cover the panel. A date and time that autofill writes commits when it reads in the token `format` (the default one when `format` is `Intl` options) or through your `parse`. One it can't read, or that `min`, `max` or a blocked day or time rules out, isn't committed, as with typing: the field shows it as written, and submits it under a `name`, until focus next leaves the field.",
|
|
174
174
|
"related": ["DateInput", "Input", "TimeInput"],
|
|
175
175
|
"storybook": "https://bestax.io/storybook/?path=/story/form-datetimeinput",
|
|
176
176
|
"summary": "The `DateTimeInput` combines a calendar and a time **wheel spinner** in a single popover — an iOS-style layout.",
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"code": "function example() {\n return (\n <Field\n horizontal\n label=\"Username\"\n labelProps={{ htmlFor: 'username-field-control' }}\n >\n <Field.Body>\n <Field>\n <Control iconLeftName=\"user\">\n <Input\n autoComplete=\"username\"\n id=\"username-field-control\"\n placeholder=\"Enter username\"\n />\n </Control>\n </Field>\n </Field.Body>\n </Field>\n );\n}"
|
|
135
135
|
}
|
|
136
136
|
],
|
|
137
|
-
"accessibility": "- Always provide a label. The `label` prop is automatically associated with the input (`htmlFor` plus a generated `id`, or your own `id` if you pass one), so clicking the label focuses the input and assistive technology announces it.\n- When composing with `Field` instead, the `Field`'s own `label` associates with the input automatically when the input sits directly in that labeled `Field` and has no `id` of its own. A nested unlabeled `Field` (as in horizontal multi-field layouts) starts its own scope. With an `id` of your own, or across a nested `Field`, the label names the input only when you pass that `id` as `labelProps={{ htmlFor }}`.\n- Use the correct input `type` for semantics (`text`, `email`, etc.).\n- **Help and errors:** the `message` describes the input through `aria-describedby`, after any ids you pass there, so a screen reader reads it when the input takes focus. A red `color` says nothing to a screen reader, so on an error also set `aria-invalid`, and put the error in the `message
|
|
137
|
+
"accessibility": "- Always provide a label. The `label` prop is automatically associated with the input (`htmlFor` plus a generated `id`, or your own `id` if you pass one), so clicking the label focuses the input and assistive technology announces it.\n- When composing with `Field` instead, the `Field`'s own `label` associates with the input automatically when the input sits directly in that labeled `Field` and has no `id` of its own. A nested unlabeled `Field` (as in horizontal multi-field layouts) starts its own scope. With an `id` of your own, or across a nested `Field`, the label names the input only when you pass that `id` as `labelProps={{ htmlFor }}`.\n- Use the correct input `type` for semantics (`text`, `email`, etc.).\n- **Help and errors:** the `message` describes the input through `aria-describedby`, after any ids you pass there, so a screen reader reads it when the input takes focus. A red `color` says nothing to a screen reader, so on an error also set `aria-invalid`, and put the error in the `message`.\n- In forced colors (Windows' contrast themes), a focused `readOnly` input draws an outline in Bulma's focus style and width, painted in a system color, since it shows no text caret and only its border's color would change there. With `readOnly`, `isFocused` draws it too.",
|
|
138
138
|
"related": ["Control", "Field"],
|
|
139
139
|
"storybook": "https://bestax.io/storybook/?path=/story/form-input--default",
|
|
140
140
|
"summary": "The `Input` component provides a Bulma-styled text input, supporting colors, sizes, rounded corners, static state, hover/focus/loading states, and Bulma helper props.",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"code": "function example() {\n return (\n <Field\n horizontal\n label=\"Quantity\"\n labelProps={{ htmlFor: 'quantity-field-control' }}\n >\n <Field.Body>\n <Field>\n <Control>\n <Numberinput\n id=\"quantity-field-control\"\n defaultValue={1}\n min={1}\n max={10}\n color=\"primary\"\n />\n </Control>\n </Field>\n </Field.Body>\n </Field>\n );\n}"
|
|
59
59
|
}
|
|
60
60
|
],
|
|
61
|
-
"accessibility": "- Uses native number input element\n- The `label` prop, or the label of a `Field` the Numberinput sits in, names its input. A `Field` with `hasAddons` or `grouped` holds several controls and names none, so wire that one with `labelProps={{ htmlFor }}` and a matching `id`.\n- A development build warns about a Numberinput with nothing to name it: no label of its own or a `Field`'s, no `<label>` of yours pointing at it, and no `aria-label`, `aria-labelledby`, `title` or `placeholder`. It looks once the Numberinput has mounted, so a label outside it counts. A plusminus `bare` Numberinput outside a `Field` renders no label, so its `label` doesn't name it.\n- Has `aria-valuenow`, `aria-valuemin`, and `aria-valuemax` attributes, with `aria-valuenow` left off while the field holds no number, or a number outside `min` and `max` that's still being typed\n- The increase and decrease buttons are named \"Increase value\" and \"Decrease value\", in both variants, and `labels` names them in the page's language\n- Arrow keys increment/decrement the value\n- With `editable={false}` the input is read-only, so nothing can be typed in, but the arrow keys and the buttons still change the value. A screen reader announces the field as read-only all the same, so say that the buttons set it in its label, or in its `message` where it renders one\n- While you edit, the field can be empty, hold a lone `-` on the way to a negative number, or hold a number outside `min` and `max` on the way to one inside them, such as the `2` of `25` when `min` is 10. `onChange` waits for a number in range. Enter or leaving the field clamps a number outside them and reports it, or puts the last value back when the field holds no number. From a number outside them, a step toward them lands on the nearer one and a step away does nothing, and with no number a step starts from the last value\n- The +/- buttons stay out of the Tab order, and a press on one leaves focus where it was, in the input when it had it, so the arrow keys keep working after a click and a button that disables at `min` or `max` doesn't take focus with it. A press on a button that's already disabled reaches nothing, as a press on any text does, so focus leaves the input then\n- Buttons are disabled at min/max boundaries, and while the field holds a number typed outside them, the one that would step further out is disabled\n- In forced colors (Windows' contrast themes), a disabled Numberinput isn't faded as a whole, and in the stepper variant those disabled buttons draw at full strength in the system's color for a disabled control.\n- The stepper variant stacks its buttons, each half the input's height: 19px at the default size and 14px small, under the 24px minimum target size of WCAG 2.5.8. bestax's styles give each one a transparent band, as wide as it, out past the stepper, which takes its presses too, so the button and the band make a target 24px tall: up from the increase button and down from the decrease one, so neither covers the other. The bands reach 5px past a default stepper and 10px past a small one. Nothing laid out moves and nothing new is drawn, though a pointer over a band shows the button's hover shade. A band takes presses from whatever sits that close, such as text or a plain link, or the bottom edge of a label right above a small stepper. A Bulma control or button right below paints over the decrease band and keeps its own presses, and two steppers stacked closer than their bands share the gap, where the lower one's increase band takes the presses. So leave that room above and below a stepper. The medium and large steppers' buttons are 24px tall or more and get no band.\n- The `message` describes the number input through `aria-describedby`, after any ids you pass there, so a screen reader reads it when the input takes focus.",
|
|
61
|
+
"accessibility": "- Uses native number input element\n- The `label` prop, or the label of a `Field` the Numberinput sits in, names its input. A `Field` with `hasAddons` or `grouped` holds several controls and names none, so wire that one with `labelProps={{ htmlFor }}` and a matching `id`.\n- A development build warns about a Numberinput with nothing to name it: no label of its own or a `Field`'s, no `<label>` of yours pointing at it, and no `aria-label`, `aria-labelledby`, `title` or `placeholder`. It looks once the Numberinput has mounted, so a label outside it counts. A plusminus `bare` Numberinput outside a `Field` renders no label, so its `label` doesn't name it.\n- Has `aria-valuenow`, `aria-valuemin`, and `aria-valuemax` attributes, with `aria-valuenow` left off while the field holds no number, or a number outside `min` and `max` that's still being typed\n- The increase and decrease buttons are named \"Increase value\" and \"Decrease value\", in both variants, and `labels` names them in the page's language\n- Arrow keys increment/decrement the value\n- With `editable={false}` the input is read-only, so nothing can be typed in, but the arrow keys and the buttons still change the value. A screen reader announces the field as read-only all the same, so say that the buttons set it in its label, or in its `message` where it renders one\n- In forced colors (Windows' contrast themes), a focused input with `editable={false}` draws an outline in Bulma's focus style and width, painted in a system color, since it shows no text caret and only its border's color would change there\n- While you edit, the field can be empty, hold a lone `-` on the way to a negative number, or hold a number outside `min` and `max` on the way to one inside them, such as the `2` of `25` when `min` is 10. `onChange` waits for a number in range. Enter or leaving the field clamps a number outside them and reports it, or puts the last value back when the field holds no number. From a number outside them, a step toward them lands on the nearer one and a step away does nothing, and with no number a step starts from the last value\n- The +/- buttons stay out of the Tab order, and a press on one leaves focus where it was, in the input when it had it, so the arrow keys keep working after a click and a button that disables at `min` or `max` doesn't take focus with it. A press on a button that's already disabled reaches nothing, as a press on any text does, so focus leaves the input then\n- Buttons are disabled at min/max boundaries, and while the field holds a number typed outside them, the one that would step further out is disabled\n- In forced colors (Windows' contrast themes), a disabled Numberinput isn't faded as a whole, and in the stepper variant those disabled buttons draw at full strength in the system's color for a disabled control.\n- The stepper variant stacks its buttons, each half the input's height: 19px at the default size and 14px small, under the 24px minimum target size of WCAG 2.5.8. bestax's styles give each one a transparent band, as wide as it, out past the stepper, which takes its presses too, so the button and the band make a target 24px tall: up from the increase button and down from the decrease one, so neither covers the other. The bands reach 5px past a default stepper and 10px past a small one. Nothing laid out moves and nothing new is drawn, though a pointer over a band shows the button's hover shade. A band takes presses from whatever sits that close, such as text or a plain link, or the bottom edge of a label right above a small stepper. A Bulma control or button right below paints over the decrease band and keeps its own presses, and two steppers stacked closer than their bands share the gap, where the lower one's increase band takes the presses. So leave that room above and below a stepper. The medium and large steppers' buttons are 24px tall or more and get no band.\n- The `message` describes the number input through `aria-describedby`, after any ids you pass there, so a screen reader reads it when the input takes focus.",
|
|
62
62
|
"related": ["Input", "Slider"],
|
|
63
63
|
"storybook": "https://bestax.io/storybook/?path=/story/form-numberinput",
|
|
64
64
|
"summary": "The `Numberinput` component provides a number input with increment/decrement buttons.",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"code": "<Field label=\"API secret\">\n <Control>\n <PasswordInputBase />\n </Control>\n</Field>"
|
|
48
48
|
}
|
|
49
49
|
],
|
|
50
|
-
"accessibility": "- **The input** is a password field named by its `label`, and a text field while the password shows. Switching keeps its value and the selection.\n- **The icon button** is a toggle button: it's named \"Show password\" in both states, and `aria-pressed` says whether the password shows, so a screen reader hears \"Show password, toggle button, pressed\". The eye takes a line through it while the password shows, and the glyphs are hidden from assistive tech.\n- **The text button** changes its words, so its name changes with them, \"Show password\" then \"Hide password\", and it has no `aria-pressed`, as the [APG button pattern](https://www.w3.org/WAI/ARIA/apg/patterns/button/) asks of a toggle whose label changes. Each name contains the word on the button ([Label in Name](https://www.w3.org/WAI/WCAG22/Understanding/label-in-name.html)).\n- **Keyboard:** the button is a native `<button type=\"button\">` in the tab order, right after the input, and Enter or Space toggles it and leaves focus on it. It never submits the form.\n- **Pointer:** a press on the button leaves focus, and the caret, in the input.\n- **No announcement of its own:** the button's state or its name says whether the password shows, so there's no live region repeating it.\n- **Password managers and paste** work as on any password field, and `autocomplete` tells them what the field is for ([Identify Input Purpose](https://www.w3.org/WAI/WCAG22/Understanding/identify-input-purpose.html)). `spellcheck=\"false\"` keeps a browser's spellcheck from reading the password once it shows.\n- **The `value` attribute:** a controlled field carries its value in its `value` attribute, as React writes it for any controlled input, where a CSS attribute selector can read it. An uncontrolled one, read with `FormData`, never puts what's typed there.\n- **Edge's own reveal button** is hidden on this input, so there's one eye, not two.\n- **Focus** shows as an outline around the button. **Forced colors:** the glyph and the words take the system's button text color, and a disabled button its gray.\n- **Strings** come from `labels`, with English defaults.\n- **Help and errors:** the `message` describes the input through `aria-describedby`, after any ids you pass there, so a screen reader reads a rule such as \"At least 15 characters\" when the field takes focus. A red `color` says nothing to a screen reader, so on an error also set `aria-invalid`, and put the error in the `message`.",
|
|
50
|
+
"accessibility": "- **The input** is a password field named by its `label`, and a text field while the password shows. Switching keeps its value and the selection.\n- **The icon button** is a toggle button: it's named \"Show password\" in both states, and `aria-pressed` says whether the password shows, so a screen reader hears \"Show password, toggle button, pressed\". The eye takes a line through it while the password shows, and the glyphs are hidden from assistive tech.\n- **The text button** changes its words, so its name changes with them, \"Show password\" then \"Hide password\", and it has no `aria-pressed`, as the [APG button pattern](https://www.w3.org/WAI/ARIA/apg/patterns/button/) asks of a toggle whose label changes. Each name contains the word on the button ([Label in Name](https://www.w3.org/WAI/WCAG22/Understanding/label-in-name.html)).\n- **Keyboard:** the button is a native `<button type=\"button\">` in the tab order, right after the input, and Enter or Space toggles it and leaves focus on it. It never submits the form.\n- **Pointer:** a press on the button leaves focus, and the caret, in the input.\n- **No announcement of its own:** the button's state or its name says whether the password shows, so there's no live region repeating it.\n- **Password managers and paste** work as on any password field, and `autocomplete` tells them what the field is for ([Identify Input Purpose](https://www.w3.org/WAI/WCAG22/Understanding/identify-input-purpose.html)). `spellcheck=\"false\"` keeps a browser's spellcheck from reading the password once it shows.\n- **The `value` attribute:** a controlled field carries its value in its `value` attribute, as React writes it for any controlled input, where a CSS attribute selector can read it. An uncontrolled one, read with `FormData`, never puts what's typed there.\n- **Edge's own reveal button** is hidden on this input, so there's one eye, not two.\n- **Focus** shows as an outline around the button. **Forced colors:** the glyph and the words take the system's button text color, and a disabled button its gray. A focused `readOnly` field draws an outline in Bulma's focus style and width, painted in a system color, since it shows no text caret and only its border's color would change there.\n- **Strings** come from `labels`, with English defaults.\n- **Help and errors:** the `message` describes the input through `aria-describedby`, after any ids you pass there, so a screen reader reads a rule such as \"At least 15 characters\" when the field takes focus. A red `color` says nothing to a screen reader, so on an error also set `aria-invalid`, and put the error in the `message`.",
|
|
51
51
|
"related": ["Field", "Fieldset", "Input", "PinInput", "useBulmaClasses"],
|
|
52
52
|
"storybook": "https://bestax.io/storybook/?path=/story/form-passwordinput--default",
|
|
53
53
|
"summary": "The `PasswordInput` component is a password field with a button inside it that shows what was typed. By default the button is an eye named \"Show password\" that reports whether the password shows with `aria-pressed`; `variant=\"text\"` makes it the words \"Show\" and \"Hide\". The field asks for `autocomplete=\"current-password\"` and no spellcheck, and hides the password again when its form submits.",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"code": "function example() {\n return (\n <Field\n horizontal\n label=\"Message\"\n labelProps={{ htmlFor: 'message-field-control' }}\n >\n <Field.Body>\n <Field>\n <Control>\n <TextArea\n id=\"message-field-control\"\n placeholder=\"Enter your message\"\n />\n </Control>\n </Field>\n </Field.Body>\n </Field>\n );\n}"
|
|
55
55
|
}
|
|
56
56
|
],
|
|
57
|
-
"accessibility": "- Always provide a label. TextArea's `label` prop is automatically associated with the `<textarea>` (`htmlFor` plus a generated `id`, or your own `id` if you pass one).\n- When composing with `Field` instead, the `Field`'s own `label` associates with the textarea automatically when the textarea sits directly in that labeled `Field` and has no `id` of its own. A nested unlabeled `Field` (as in horizontal multi-field layouts) starts its own scope. With an `id` of your own, or across a nested `Field`, the label names the textarea only when you pass that `id` as `labelProps={{ htmlFor }}`.\n- Use the `rows` prop to set an appropriate height for your content.\n- **Help and errors:** the `message` describes the textarea through `aria-describedby`, after any ids you pass there, so a screen reader reads it when the textarea takes focus. A red `color` says nothing to a screen reader, so on an error also set `aria-invalid`, and put the error in the `message
|
|
57
|
+
"accessibility": "- Always provide a label. TextArea's `label` prop is automatically associated with the `<textarea>` (`htmlFor` plus a generated `id`, or your own `id` if you pass one).\n- When composing with `Field` instead, the `Field`'s own `label` associates with the textarea automatically when the textarea sits directly in that labeled `Field` and has no `id` of its own. A nested unlabeled `Field` (as in horizontal multi-field layouts) starts its own scope. With an `id` of your own, or across a nested `Field`, the label names the textarea only when you pass that `id` as `labelProps={{ htmlFor }}`.\n- Use the `rows` prop to set an appropriate height for your content.\n- **Help and errors:** the `message` describes the textarea through `aria-describedby`, after any ids you pass there, so a screen reader reads it when the textarea takes focus. A red `color` says nothing to a screen reader, so on an error also set `aria-invalid`, and put the error in the `message`.\n- In forced colors (Windows' contrast themes), a focused `readOnly` textarea draws an outline in Bulma's focus style and width, painted in a system color, since it shows no text caret and only its border's color would change there. With `readOnly`, `isFocused` draws it too.",
|
|
58
58
|
"related": ["Control", "Field"],
|
|
59
59
|
"storybook": "https://bestax.io/storybook/?path=/story/form-textarea--default",
|
|
60
60
|
"summary": "The `TextArea` component provides a Bulma-styled multi-line text input, supporting color, size, hover/focus/loading states, fixed size, and Bulma helper props.",
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
"code": "function example() {\n return (\n <Field\n horizontal\n label=\"Time\"\n labelProps={{ htmlFor: 'time-field-control' }}\n >\n <Field.Body>\n <Field>\n <Control iconLeftName=\"clock\">\n <TimeInput id=\"time-field-control\" placeholder=\"HH:MM\" />\n </Control>\n </Field>\n </Field.Body>\n </Field>\n );\n}"
|
|
179
179
|
}
|
|
180
180
|
],
|
|
181
|
-
"accessibility": "- Trigger uses `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls`.\n- Popover panel has `role=\"dialog\"` with an accessible name.\n- An `inline` picker has no input for its `label` to name, so its root is a `role=\"group\"` the `label` names through `aria-labelledby` and its `message` describes. A labeled `Field` around it names it the same way, unless the `Field` is `grouped` or `hasAddons`, or a label is wired by hand with `labelProps.htmlFor`. An `aria-label` or `aria-labelledby` you give it names it instead. With no name it stays a plain `div`, and its wheels inside keep their own names.\n- Each spinner column has `role=\"spinbutton\"` with `aria-valuemin`, `aria-valuemax`, `aria-valuenow`, and `aria-valuetext`, whose text is the number as the column shows it, in the picker's locale's digits when it has a locale. The values drawn above and below are click targets hidden from assistive technology, which reads the value from the spinbutton.\n- In a 12-hour picker, AM/PM is one of those spinbutton columns rather than a toggle button. Its `aria-valuetext` is `AM` or `PM`, or the picker's locale's words for them when it has a locale, and it widens to fit a longer word; `↑`, `PageUp` and `End` move it to PM, and `↓`, `PageDown` and `Home` move it to AM. It stops at either end instead of wrapping around. Its accessible name is `AM/PM` unless `labels.ampm` sets another.\n- A `readOnly` inline picker puts `aria-readonly=\"true\"` on each spinbutton and keeps them in the tab order.\n- A `disabled` inline picker puts `aria-disabled=\"true\"` on each spinbutton and takes them out of the tab order.\n- In forced colors (Windows' contrast themes), the band behind the picked values is replaced, so bestax's styles draw it in the system's highlight color there, and the focus ring inside it in the color made to read on it. The values keep the system's text color, so each reads on the band and off it as the wheel turns. When the picker is disabled, the band and the values take the system's color for a disabled control, at full opacity, as a value the picker blocks does.\n- Honors `prefers-reduced-motion`.\n- On a right-to-left page the launcher sits at the end of the line and the clock icon at the start. The wheels keep `dir=\"ltr\"`, so hours stay to the left of minutes.\n- In forced colors (Windows' contrast themes), a disabled launcher draws in the system's color for a disabled control, at full strength rather than faded.\n- A panel at a corner that would run past the left or right edge of the screen keeps its\n corner and moves sideways just far enough to fit, or, wider than the screen, to the edge its\n text starts from. On a narrow screen the panel in place is a sheet across the screen\n instead, which fits as it is.\n- The `message` describes the input through `aria-describedby`, so a screen reader reads it when the input takes focus. Ids you pass in `aria-describedby` go on the container with the other attributes, except on a phone's native input, which lists them first. An `inline` picker has no input, so there the message describes the picker's group, when something names it.\n- `aria-invalid` and `aria-errormessage` go on the input, while the other attributes you pass go on the container, so a screen reader hears the input is invalid when it takes focus. An `inline` picker has no input, and they stay on its container.\n- The input takes its name from `label`, from a labeled `Field` that isn't `grouped` or `hasAddons` around a `TimeInputBase` with no `id` of its own, or from a `<label htmlFor>` of your own pointing at the `id` you give it. `aria-label` and `aria-labelledby` go on the container with the other attributes you pass, so they don't name the input, except on the native input `mobileNative` renders, which takes them itself. An `inline` picker has no input to name.\n- An `autoComplete` you give goes on the field. Without one the text field turns autocomplete off, since the browser's own suggestions would cover the panel. A time that autofill writes commits when it reads in the token `format` (the default one when `format` is `Intl` options) or through your `parse`. One it can't read, or that `min`, `max` or a blocked time rules out, isn't committed, as with typing: the field shows it as written, and submits it under a `name`, until focus next leaves the field.",
|
|
181
|
+
"accessibility": "- Trigger uses `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls`.\n- In forced colors (Windows' contrast themes), a focused input that can't be typed in, with `readOnly` or `editable={false}`, draws an outline in Bulma's focus style and width, painted in a system color, since it shows no text caret and only its border's color would change there.\n- Popover panel has `role=\"dialog\"` with an accessible name.\n- An `inline` picker has no input for its `label` to name, so its root is a `role=\"group\"` the `label` names through `aria-labelledby` and its `message` describes. A labeled `Field` around it names it the same way, unless the `Field` is `grouped` or `hasAddons`, or a label is wired by hand with `labelProps.htmlFor`. An `aria-label` or `aria-labelledby` you give it names it instead. With no name it stays a plain `div`, and its wheels inside keep their own names.\n- Each spinner column has `role=\"spinbutton\"` with `aria-valuemin`, `aria-valuemax`, `aria-valuenow`, and `aria-valuetext`, whose text is the number as the column shows it, in the picker's locale's digits when it has a locale. The values drawn above and below are click targets hidden from assistive technology, which reads the value from the spinbutton.\n- In a 12-hour picker, AM/PM is one of those spinbutton columns rather than a toggle button. Its `aria-valuetext` is `AM` or `PM`, or the picker's locale's words for them when it has a locale, and it widens to fit a longer word; `↑`, `PageUp` and `End` move it to PM, and `↓`, `PageDown` and `Home` move it to AM. It stops at either end instead of wrapping around. Its accessible name is `AM/PM` unless `labels.ampm` sets another.\n- A `readOnly` inline picker puts `aria-readonly=\"true\"` on each spinbutton and keeps them in the tab order.\n- A `disabled` inline picker puts `aria-disabled=\"true\"` on each spinbutton and takes them out of the tab order.\n- In forced colors (Windows' contrast themes), the band behind the picked values is replaced, so bestax's styles draw it in the system's highlight color there, and the focus ring inside it in the color made to read on it. The values keep the system's text color, so each reads on the band and off it as the wheel turns. When the picker is disabled, the band and the values take the system's color for a disabled control, at full opacity, as a value the picker blocks does.\n- Honors `prefers-reduced-motion`.\n- On a right-to-left page the launcher sits at the end of the line and the clock icon at the start. The wheels keep `dir=\"ltr\"`, so hours stay to the left of minutes.\n- In forced colors (Windows' contrast themes), a disabled launcher draws in the system's color for a disabled control, at full strength rather than faded.\n- A panel at a corner that would run past the left or right edge of the screen keeps its\n corner and moves sideways just far enough to fit, or, wider than the screen, to the edge its\n text starts from. On a narrow screen the panel in place is a sheet across the screen\n instead, which fits as it is.\n- The `message` describes the input through `aria-describedby`, so a screen reader reads it when the input takes focus. Ids you pass in `aria-describedby` go on the container with the other attributes, except on a phone's native input, which lists them first. An `inline` picker has no input, so there the message describes the picker's group, when something names it.\n- `aria-invalid` and `aria-errormessage` go on the input, while the other attributes you pass go on the container, so a screen reader hears the input is invalid when it takes focus. An `inline` picker has no input, and they stay on its container.\n- The input takes its name from `label`, from a labeled `Field` that isn't `grouped` or `hasAddons` around a `TimeInputBase` with no `id` of its own, or from a `<label htmlFor>` of your own pointing at the `id` you give it. `aria-label` and `aria-labelledby` go on the container with the other attributes you pass, so they don't name the input, except on the native input `mobileNative` renders, which takes them itself. An `inline` picker has no input to name.\n- An `autoComplete` you give goes on the field. Without one the text field turns autocomplete off, since the browser's own suggestions would cover the panel. A time that autofill writes commits when it reads in the token `format` (the default one when `format` is `Intl` options) or through your `parse`. One it can't read, or that `min`, `max` or a blocked time rules out, isn't committed, as with typing: the field shows it as written, and submits it under a `name`, until focus next leaves the field.",
|
|
182
182
|
"related": ["DateInput", "DateTimeInput", "Input"],
|
|
183
183
|
"storybook": "https://bestax.io/storybook/?path=/story/form-timeinput",
|
|
184
184
|
"summary": "The `TimeInput` component is a form input that opens a popover spinner for time-of-day selection.",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"code": "<LocaleProvider locale=\"ar\" dir=\"rtl\">\n <TreeSelect\n label=\"المجلد\"\n defaultValue=\"invoices\"\n clearable\n data={[\n {\n value: 'docs',\n label: 'المستندات',\n children: [{ value: 'invoices', label: 'الفواتير' }],\n },\n { value: 'photos', label: 'الصور' },\n ]}\n />\n</LocaleProvider>"
|
|
59
59
|
}
|
|
60
60
|
],
|
|
61
|
-
"accessibility": "- **The field is a combobox that opens a dialog,** as the date pickers' is: `role=\"combobox\"`\n with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls` while the panel is open,\n named by its `label`. It's read-only, and in `'single'` its value is the picked item's label.\n In the checkbox modes it's described by the tags.\n- **Keys on the field:** a click, Enter, Space, Down or Alt+Down opens the panel, and with\n `searchable` a printable key opens it with that key in the search box.\n- **The clear button** is a [`Delete`](https://bestax.io/docs/api/elements/delete#accessibility) named \"Clear\", or\n `labels.clear`. Its target is a box at least 24px square around the circle, over the field, so\n a press just beside a small circle clears the field rather than opening the panel.\n- **The panel** is a non-modal `dialog`, named by the label or `labels.choose`. Focus moves into\n it as it opens: onto the picked item, its branch open, or onto the search box when\n `searchable`, or else onto the first item. It holds focus while it's open, as the date\n pickers' panel does: Tab and Shift+Tab move between the search box and the tree, and wrap.\n Escape and Alt+Up close it and put focus back on the field, and so does a pick in `'single'`.\n A press outside closes it and leaves focus where the press put it.\n- **The tree** is TreeView's, with the same name as the panel: real focus with one tab stop, the\n arrow keys, Home, End, `*` and type-ahead, Right and Left swapped on a right-to-left page,\n `aria-level`, `aria-posinset` and `aria-setsize` on every item, `aria-selected` in `'single'`,\n `aria-checked` in the checkbox modes (`\"mixed\"` only in `'checkbox'`), and disabled items\n reachable and `aria-disabled`. Space joins a type-ahead search under way when an item starts\n with what's been typed and a space, so \"new y\" reaches \"New York\", and otherwise picks or\n checks. See [`TreeView`](https://bestax.io/docs/api/components/treeview#accessibility).\n- **The search box** is named \"Search\", or `labels.search`. When nothing matches, `empty` is said\n once through a polite status region, not again on every key.\n- **Each tag's button** is a `Delete` named \"Remove\" and the item's label, or `ariaCloseLabel`\n described by the tag's label, with a target at least 24px square around its circle.\n- **`required`** makes the field `aria-required`. A read-only field is left out of the browser's\n own check, so a hidden field over it carries `required`. When the browser stops a submit, it\n focuses that one and shows its message, which every browser takes down as it loses focus. So\n focus stays there, reading as the field and drawn on it, with no on-screen keyboard. A press\n goes where it lands, and the next key, other than a modifier on its own, goes to the field and\n does what it would there.\n- **Forced colors:** the field, the panel and the tree keep their edges in system colors, and the\n chevron is text.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.\n- The `message` describes the field through `aria-describedby`, after any ids you pass there and, with checkboxes, after the picked tags.\n- `aria-invalid` and `aria-errormessage` go on the field, while the other attributes you pass go on the wrapper, so a screen reader hears the field is invalid when it takes focus.",
|
|
61
|
+
"accessibility": "- **The field is a combobox that opens a dialog,** as the date pickers' is: `role=\"combobox\"`\n with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls` while the panel is open,\n named by its `label`. It's read-only, and in `'single'` its value is the picked item's label.\n In the checkbox modes it's described by the tags.\n- **Keys on the field:** a click, Enter, Space, Down or Alt+Down opens the panel, and with\n `searchable` a printable key opens it with that key in the search box.\n- **The clear button** is a [`Delete`](https://bestax.io/docs/api/elements/delete#accessibility) named \"Clear\", or\n `labels.clear`. Its target is a box at least 24px square around the circle, over the field, so\n a press just beside a small circle clears the field rather than opening the panel.\n- **The panel** is a non-modal `dialog`, named by the label or `labels.choose`. Focus moves into\n it as it opens: onto the picked item, its branch open, or onto the search box when\n `searchable`, or else onto the first item. It holds focus while it's open, as the date\n pickers' panel does: Tab and Shift+Tab move between the search box and the tree, and wrap.\n Escape and Alt+Up close it and put focus back on the field, and so does a pick in `'single'`.\n A press outside closes it and leaves focus where the press put it.\n- **The tree** is TreeView's, with the same name as the panel: real focus with one tab stop, the\n arrow keys, Home, End, `*` and type-ahead, Right and Left swapped on a right-to-left page,\n `aria-level`, `aria-posinset` and `aria-setsize` on every item, `aria-selected` in `'single'`,\n `aria-checked` in the checkbox modes (`\"mixed\"` only in `'checkbox'`), and disabled items\n reachable and `aria-disabled`. Space joins a type-ahead search under way when an item starts\n with what's been typed and a space, so \"new y\" reaches \"New York\", and otherwise picks or\n checks. See [`TreeView`](https://bestax.io/docs/api/components/treeview#accessibility).\n- **The search box** is named \"Search\", or `labels.search`. When nothing matches, `empty` is said\n once through a polite status region, not again on every key.\n- **Each tag's button** is a `Delete` named \"Remove\" and the item's label, or `ariaCloseLabel`\n described by the tag's label, with a target at least 24px square around its circle.\n- **`required`** makes the field `aria-required`. A read-only field is left out of the browser's\n own check, so a hidden field over it carries `required`. When the browser stops a submit, it\n focuses that one and shows its message, which every browser takes down as it loses focus. So\n focus stays there, reading as the field and drawn on it, with no on-screen keyboard. A press\n goes where it lands, and the next key, other than a modifier on its own, goes to the field and\n does what it would there.\n- **Forced colors:** the field, the panel and the tree keep their edges in system colors, and the\n chevron is text.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.\n- The `message` describes the field through `aria-describedby`, after any ids you pass there and, with checkboxes, after the picked tags.\n- `aria-invalid` and `aria-errormessage` go on the field, while the other attributes you pass go on the wrapper, so a screen reader hears the field is invalid when it takes focus.\n- **Forced colors:** the field is read-only, so it shows no text caret, and only its border's\n color would change when it's focused, so a focused field draws an outline in Bulma's focus style\n and width there, painted in a system color.",
|
|
62
62
|
"related": ["Combobox", "DateInput", "Select", "TreeView", "useBulmaClasses"],
|
|
63
63
|
"storybook": "https://bestax.io/storybook/?path=/story/form-treeselect--default",
|
|
64
64
|
"summary": "The `TreeSelect` component is a form field whose options are a tree, such as categories, places or teams: it opens a panel holding a real `TreeView`, picks one item or checks a branch at a time, and searches labels. The field is a read-only `role=\"combobox\"` that opens a dialog, wired as DateInput's is, so focus moves into the tree for real and the tree keeps TreeView's keys, type-ahead and spoken output. The tree is given as `data`, so the field and the tags can name what's picked while the panel is shut, and on the server. `selectionMode` picks the kind. `'single'` picks one item and closes. With `'checkbox'`, a check reaches every enabled item under it, closed or hidden by a search, and `checkedStrategy` decides what the value holds: the leaves, the topmost checked items or every one. With `'checkbox-independent'`, each box is its own item's, so a parent means itself alone (Mantine's and Ant Design's `checkStrictly`). The value shows as tags under the field. A value no node has is kept and shown as it is, with a warning in development, so a value under a branch that hasn't loaded survives until it does.",
|
|
@@ -61,7 +61,7 @@ Stock Bulma examples:
|
|
|
61
61
|
@use 'bulma/sass/elements/box'; // Box
|
|
62
62
|
@use 'bulma/sass/elements/notification'; // Notification
|
|
63
63
|
@use 'bulma/sass/elements/title'; // Title, SubTitle
|
|
64
|
-
@use 'bulma/sass/form/input-textarea'; // Input, TextArea
|
|
64
|
+
@use 'bulma/sass/form/input-textarea'; // Input, TextArea, plus bestax's form/input-textarea (see below)
|
|
65
65
|
@use 'bulma/sass/form/select'; // Select, plus bestax's form/select (see below)
|
|
66
66
|
@use 'bulma/sass/form/tools'; // Field, Control
|
|
67
67
|
@use 'bulma/sass/components/card'; // Card
|
|
@@ -93,7 +93,7 @@ guide's Option C shows a short example and links here for the full list:
|
|
|
93
93
|
`checkbox`, `checkboxcard`, `radio`, `radiocard`, `switch`, `slider`, `numberinput`, `pininput`,
|
|
94
94
|
`rate`, `autocomplete`, `combobox`, `taginput`, `picker-popover`, `dateinput`, `timeinput`,
|
|
95
95
|
`datetimeinput`, `daterangeinput`, `file`, `fieldset`, `field`, `dropzone`, `colorpicker`,
|
|
96
|
-
`colorinput`, `passwordinput`, `treeselect`, `cascader`, `select`
|
|
96
|
+
`colorinput`, `passwordinput`, `treeselect`, `cascader`, `select`, `input-textarea`
|
|
97
97
|
|
|
98
98
|
**Elements** (`@allxsmith/bestax-bulma/scss/elements/<name>`): `box`, `button`, `colorswatch`,
|
|
99
99
|
`delete`, `descriptionlist`, `divider`, `iconbutton`, `kbd`, `linkbutton`, `loader`, `notification`,
|
|
@@ -227,6 +227,19 @@ Notes:
|
|
|
227
227
|
@use '@allxsmith/bestax-bulma/scss/form/select' as bestax-select;
|
|
228
228
|
```
|
|
229
229
|
|
|
230
|
+
- The `input-textarea` partial **extends** stock Bulma input and textarea (an outline on a focused
|
|
231
|
+
read-only field in forced colors, where a read-only field shows no caret and only the border's
|
|
232
|
+
color would change), so an app using `Input` or `TextArea` needs both, in either order.
|
|
233
|
+
`TreeSelect`'s and `Cascader`'s field is a read-only input, and so is a read-only `ColorInput`'s
|
|
234
|
+
or `PasswordInput`'s, and a `DateInput`'s, `TimeInput`'s, `DateTimeInput`'s or `Numberinput`'s
|
|
235
|
+
that can't be typed in, so those want it too:
|
|
236
|
+
|
|
237
|
+
```scss
|
|
238
|
+
@use 'bulma/sass/form/input-textarea';
|
|
239
|
+
@use '@allxsmith/bestax-bulma/scss/form/input-textarea' as
|
|
240
|
+
bestax-input-textarea;
|
|
241
|
+
```
|
|
242
|
+
|
|
230
243
|
- The `field` partial **extends** stock Bulma's field (`bulma/sass/form/tools`): it puts the
|
|
231
244
|
`message` of a horizontal form component (`Input horizontal`, `Checkboxes horizontal`,
|
|
232
245
|
`Rate horizontal` and the rest) under its control, where Bulma's row would set it beside, and
|
|
@@ -261,13 +274,14 @@ Notes:
|
|
|
261
274
|
for the label and help text around it.
|
|
262
275
|
- `TreeSelect` opens a `TreeView` in the pickers' popover, so it needs `components/treeview`,
|
|
263
276
|
`form/checkbox` for its boxes and `picker-popover` next to `treeselect`, with
|
|
264
|
-
`bulma/sass/form/input-textarea
|
|
265
|
-
`elements/delete` for the field, the tags and the clear button.
|
|
277
|
+
`bulma/sass/form/input-textarea` and `form/input-textarea`, `bulma/sass/elements/tag`,
|
|
278
|
+
`bulma/sass/elements/delete` and `elements/delete` for the field, the tags and the clear button.
|
|
266
279
|
- `Cascader` opens its columns in the pickers' popover, with a `Combobox` list for its search, and
|
|
267
280
|
its items are Bulma's dropdown items. Its partial brings `form/combobox` with it, for the search
|
|
268
281
|
and the values its items start from, so it needs `picker-popover` and
|
|
269
|
-
`bulma/sass/components/dropdown` next to `cascader`, with `bulma/sass/form/input-textarea
|
|
270
|
-
`bulma/sass/elements/delete` and `elements/delete` for the field and the
|
|
282
|
+
`bulma/sass/components/dropdown` next to `cascader`, with `bulma/sass/form/input-textarea` and
|
|
283
|
+
`form/input-textarea`, `bulma/sass/elements/delete` and `elements/delete` for the field and the
|
|
284
|
+
clear button, and
|
|
271
285
|
`bulma/sass/elements/loader`, `elements/loader` and `bulma/sass/elements/button` for a column
|
|
272
286
|
that's loading or failed to load.
|
|
273
287
|
- `PinInput`'s boxes are Bulma inputs, so an app using it needs `bulma/sass/form/input-textarea`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bestax-mcp",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.100",
|
|
4
4
|
"mcpName": "io.github.allxsmith/bestax-mcp",
|
|
5
5
|
"description": "MCP server for @allxsmith/bestax-bulma — component props, examples, CSS variables and agent skills, served offline from a version-pinned index",
|
|
6
6
|
"type": "module",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
44
44
|
"zod": "^4.6.7",
|
|
45
|
-
"@allxsmith/bestax-bulma": "^5.81.
|
|
45
|
+
"@allxsmith/bestax-bulma": "^5.81.3"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/node": "^26.6.6",
|
|
49
|
-
"@vitest/coverage-istanbul": "^5.1.
|
|
49
|
+
"@vitest/coverage-istanbul": "^5.1.1",
|
|
50
50
|
"typescript": "^6.0.3",
|
|
51
|
-
"vitest": "^5.1.
|
|
51
|
+
"vitest": "^5.1.1"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|