bestax-mcp 1.18.81 → 1.18.83
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/Calendar.json +1 -1
- package/data/components/Cell.json +3 -2
- package/data/components/Column.json +3 -2
- package/data/components/Columns.json +6 -4
- package/data/components/DateInput.json +1 -1
- package/data/components/DateRangeInput.json +1 -1
- package/data/components/DateTimeInput.json +1 -1
- package/data/components/Field.json +3 -2
- package/data/components/Grid.json +6 -4
- package/data/components/Icon.json +2 -2
- package/data/components/IconText.json +1 -1
- package/data/components/Panel.json +1 -1
- package/data/skills/bestax-theming/references/themeable-components.md +3 -2
- package/package.json +2 -2
package/data/catalog.json
CHANGED
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"code": "<Calendar\n aria-label=\"Choisir un jour\"\n locale=\"fr-FR\"\n firstDayOfWeek={1}\n labels={{ prevMonth: 'Mois précédent', nextMonth: 'Mois suivant' }}\n/>"
|
|
55
55
|
}
|
|
56
56
|
],
|
|
57
|
-
"accessibility": "- The root is a `<div>`. An `aria-label` or `aria-labelledby` on it names the Calendar and makes it a `role=\"group\"`, and so does a labeled `Field` around it, whose label names it when you give it no name of your own.\n- Each month is a `role=\"grid\"` named by its month and year, its weeks `role=\"row\"`s and its days `button`s with `role=\"gridcell\"`. Picked days are `aria-selected`, and today has `aria-current=\"date\"`.\n- In forced colors (Windows' contrast themes), the fill that marks a picked day, month or year, a range's band, and the year the header's year list is on, is replaced, so bestax's styles draw each of those cells, and every day of a picked range, in the system's highlight colors there, or in the system's color for a disabled control when it's disabled. What `dayTemplate` draws in them takes the same colors, unless it sets its own. While a range's end is still being picked, only its start is filled, and the day it would end on keeps its dashed edge.\n- In forced colors, a disabled day, month or year, and a disabled month or arrow button in the header, draws in the system's color for a disabled control, at full strength rather than faded.\n- Each day is named by its full date in the Calendar's locale, such as \"Friday, November 20, 2026\", which `getDayLabel` extends. The weekday row is hidden from assistive technology, since every day's name carries its weekday, so moving down a week reads the whole date rather than \"27\". On a server-rendered page the full names arrive once the page hydrates.\n- What `dayTemplate` draws isn't read, since a day's name is its date: pair it with `getDayLabel`.\n- A range's ends are described as \"Start date\" and \"End date\", the day a pending range would end on as \"Choose as end date\", and a polite live region states the range in words as it's picked, as on `DateRangeInput`.\n- `readOnly` puts `aria-readonly=\"true\"` on the grids and keeps the tab stop and the keys. `disabled` puts `aria-disabled=\"true\"` on them and disables every button.\n- `loading` puts `aria-busy=\"true\"` on the grids and keeps the grid and its focus where they were.\n- A roving `tabindex` keeps one day focusable in the whole Calendar, whatever `monthsToShow` is. When the focused day is disabled, the tab stop moves to the nearest enabled day of the months on show.\n- Closing the year list, with a pick or `Escape`, puts focus back on the grid's tab stop.\n- On a right-to-left page the previous-month chevron points right.",
|
|
57
|
+
"accessibility": "- The root is a `<div>`. An `aria-label` or `aria-labelledby` on it names the Calendar and makes it a `role=\"group\"`, and so does a labeled `Field` around it, whose label names it when you give it no name of your own.\n- Each month is a `role=\"grid\"` named by its month and year, its weeks `role=\"row\"`s and its days `button`s with `role=\"gridcell\"`. Picked days are `aria-selected`, and today has `aria-current=\"date\"`.\n- A day the grid leaves blank, a nearby month's day with `nearbyMonthDays` off or one whose month is on show beside it, draws nothing. A week left with no day on show keeps its place, so the grid keeps its height and months side by side line up, and is hidden from assistive technology rather than read as an empty row.\n- In forced colors (Windows' contrast themes), the fill that marks a picked day, month or year, a range's band, and the year the header's year list is on, is replaced, so bestax's styles draw each of those cells, and every day of a picked range, in the system's highlight colors there, or in the system's color for a disabled control when it's disabled. What `dayTemplate` draws in them takes the same colors, unless it sets its own. While a range's end is still being picked, only its start is filled, and the day it would end on keeps its dashed edge.\n- In forced colors, a disabled day, month or year, and a disabled month or arrow button in the header, draws in the system's color for a disabled control, at full strength rather than faded.\n- Each day is named by its full date in the Calendar's locale, such as \"Friday, November 20, 2026\", which `getDayLabel` extends. The weekday row is hidden from assistive technology, since every day's name carries its weekday, so moving down a week reads the whole date rather than \"27\". On a server-rendered page the full names arrive once the page hydrates.\n- What `dayTemplate` draws isn't read, since a day's name is its date: pair it with `getDayLabel`.\n- A range's ends are described as \"Start date\" and \"End date\", the day a pending range would end on as \"Choose as end date\", and a polite live region states the range in words as it's picked, as on `DateRangeInput`.\n- `readOnly` puts `aria-readonly=\"true\"` on the grids and keeps the tab stop and the keys. `disabled` puts `aria-disabled=\"true\"` on them and disables every button.\n- `loading` puts `aria-busy=\"true\"` on the grids and keeps the grid and its focus where they were.\n- A roving `tabindex` keeps one day focusable in the whole Calendar, whatever `monthsToShow` is. When the focused day is disabled, the tab stop moves to the nearest enabled day of the months on show.\n- Closing the year list, with a pick or `Escape`, puts focus back on the grid's tab stop.\n- On a right-to-left page the previous-month chevron points right.",
|
|
58
58
|
"related": ["DateInput", "DateRangeInput", "Fieldset"],
|
|
59
59
|
"storybook": "https://bestax.io/storybook/?path=/story/form-calendar",
|
|
60
60
|
"summary": "The `Calendar` component shows months on the page, not behind an input, where a click picks a day or a range and each day can show what's on it. It's the grid the date pickers draw, with no `Field`, label or hidden input: a form that posts a date uses `DateInput inline` instead.",
|
|
@@ -120,10 +120,11 @@
|
|
|
120
120
|
"name": "color",
|
|
121
121
|
"type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
|
|
122
122
|
"default": null,
|
|
123
|
-
"description": "Bulma color
|
|
123
|
+
"description": "Renders no class: Bulma ships no cell color CSS for a modifier to match, and the prop doesn't reach the text color helper either. Passing it logs a console warning in development.",
|
|
124
124
|
"required": false,
|
|
125
125
|
"inherited": false,
|
|
126
|
-
"deprecated":
|
|
126
|
+
"deprecated": true,
|
|
127
|
+
"deprecationNote": "The prop renders nothing and will be removed in the next major version. Use `textColor` / `bgColor` instead."
|
|
127
128
|
},
|
|
128
129
|
{
|
|
129
130
|
"name": "bgColor",
|
|
@@ -66,10 +66,11 @@
|
|
|
66
66
|
"name": "color",
|
|
67
67
|
"type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
|
|
68
68
|
"default": null,
|
|
69
|
-
"description": "Bulma color
|
|
69
|
+
"description": "Renders no class: Bulma ships no column color CSS for a modifier to match, and the prop doesn't reach the text color helper either. Passing it logs a console warning in development.",
|
|
70
70
|
"required": false,
|
|
71
71
|
"inherited": false,
|
|
72
|
-
"deprecated":
|
|
72
|
+
"deprecated": true,
|
|
73
|
+
"deprecationNote": "The prop renders nothing and will be removed in the next major version. Use `textColor` / `bgColor` instead."
|
|
73
74
|
},
|
|
74
75
|
{
|
|
75
76
|
"name": "bgColor",
|
|
@@ -106,10 +106,11 @@
|
|
|
106
106
|
"name": "color",
|
|
107
107
|
"type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
|
|
108
108
|
"default": null,
|
|
109
|
-
"description": "Bulma color
|
|
109
|
+
"description": "Renders no class: Bulma ships no columns color CSS for a modifier to match, and the prop doesn't reach the text color helper either. Passing it logs a console warning in development.",
|
|
110
110
|
"required": false,
|
|
111
111
|
"inherited": false,
|
|
112
|
-
"deprecated":
|
|
112
|
+
"deprecated": true,
|
|
113
|
+
"deprecationNote": "The prop renders nothing and will be removed in the next major version. Use `textColor` / `bgColor` instead."
|
|
113
114
|
},
|
|
114
115
|
{
|
|
115
116
|
"name": "bgColor",
|
|
@@ -331,10 +332,11 @@
|
|
|
331
332
|
"name": "color",
|
|
332
333
|
"type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
|
|
333
334
|
"default": null,
|
|
334
|
-
"description": "Bulma color
|
|
335
|
+
"description": "Renders no class: Bulma ships no column color CSS for a modifier to match, and the prop doesn't reach the text color helper either. Passing it logs a console warning in development.",
|
|
335
336
|
"required": false,
|
|
336
337
|
"inherited": false,
|
|
337
|
-
"deprecated":
|
|
338
|
+
"deprecated": true,
|
|
339
|
+
"deprecationNote": "The prop renders nothing and will be removed in the next major version. Use `textColor` / `bgColor` instead."
|
|
338
340
|
},
|
|
339
341
|
{
|
|
340
342
|
"name": "bgColor",
|
|
@@ -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- Cells 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- 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. The device's own picker, which `mobileNative` opens on a touch device, draws its own grid.\n- Cells 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.",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"code": "<Field label=\"Leave\">\n <Control iconLeftName=\"calendar-alt\">\n <DateRangeInput />\n </Control>\n</Field>"
|
|
51
51
|
}
|
|
52
52
|
],
|
|
53
|
-
"accessibility": "- The root is a `role=\"group\"` named by `label` through `aria-labelledby`, since the label names two inputs rather than one. Inside a labeled `Field`, that `Field`'s label names the group the same way, whether the `Field` holds `DateRangeInput` or a `DateRangeInputBase` you composed in a `Control` yourself, `inline` or not. An `aria-label` or `aria-labelledby` you give the group wins over either label.\n- Each input is a `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded` and `aria-controls`, and its own name: \"Start date\" or \"End date\", from the `labels` keys `rangeStart` and `rangeEnd`. The separator between them is hidden from assistive technology.\n- `aria-invalid` and `aria-errormessage` go on both inputs, marking the range as a whole, while the other attributes you pass go on the group, so a screen reader hears an input is invalid when it takes focus. An `inline` picker has no input, and they stay on its group.\n- The popover is a `role=\"dialog\"` named \"Choose date range\" (`labels.chooseDateRange`). Opening it puts focus on the calendar's focused day, and closing it returns focus to the input you were last in, or to the start input.\n- With `monthsToShow`, each month is a grid of its own, named by its month and year, and the calendar keeps one tab stop across them.\n- The day grid is `aria-multiselectable`, and its days sit in a `role=\"row\"` per week. Every day of the range is `aria-selected`, both ends included. While the end is still being picked, only the start is: the preview is not a selection.\n- In forced colors (Windows' contrast themes), the fill and the band that mark the range are replaced, so bestax's styles draw every day of a picked range, both ends included, and the year the header's year list is on, in the system's highlight colors there, or in the system's color for a disabled control when it's disabled. While the end is still being picked, only the start is filled, and the day the range would end on keeps its dashed edge.\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 and disables every button in it. A `readOnly` one puts `aria-readonly=\"true\"` there instead, keeps its tab stop and keys, and picks nothing.\n- The start and end days are described as \"Start date\" and \"End date\", so moving onto either says which it is. While the end is still being picked, the day the range would end on is described as \"Choose as end date\" (`labels.rangePreviewEnd`).\n- A polite live region in the calendar states the range in words, such as \"Start date: June 10, 2024, End date: June 13, 2024\", and announces each pick. The grid points at it too, so moving into the grid reads the current range.\n- Everything else is the calendar `DateInput` uses: a roving `tabindex`, weekday column headers named in full (or by your `dayNames`), `aria-disabled` on disabled days, `aria-current=\"date\"` on today, and focus back on the grid as the year list closes.\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.\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 group through `aria-describedby`, after any ids you pass there, as the label names it.",
|
|
53
|
+
"accessibility": "- The root is a `role=\"group\"` named by `label` through `aria-labelledby`, since the label names two inputs rather than one. Inside a labeled `Field`, that `Field`'s label names the group the same way, whether the `Field` holds `DateRangeInput` or a `DateRangeInputBase` you composed in a `Control` yourself, `inline` or not. An `aria-label` or `aria-labelledby` you give the group wins over either label.\n- Each input is a `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded` and `aria-controls`, and its own name: \"Start date\" or \"End date\", from the `labels` keys `rangeStart` and `rangeEnd`. The separator between them is hidden from assistive technology.\n- `aria-invalid` and `aria-errormessage` go on both inputs, marking the range as a whole, while the other attributes you pass go on the group, so a screen reader hears an input is invalid when it takes focus. An `inline` picker has no input, and they stay on its group.\n- The popover is a `role=\"dialog\"` named \"Choose date range\" (`labels.chooseDateRange`). Opening it puts focus on the calendar's focused day, and closing it returns focus to the input you were last in, or to the start input.\n- With `monthsToShow`, each month is a grid of its own, named by its month and year, and the calendar keeps one tab stop across them.\n- A day the grid leaves blank, a nearby month's day with `nearbyMonthDays` off or one whose month is on show beside it, draws nothing. A week left with no day on show keeps its place, so the grid keeps its height and months side by side line up, and is hidden from assistive technology rather than read as an empty row.\n- The day grid is `aria-multiselectable`, and its days sit in a `role=\"row\"` per week. Every day of the range is `aria-selected`, both ends included. While the end is still being picked, only the start is: the preview is not a selection.\n- In forced colors (Windows' contrast themes), the fill and the band that mark the range are replaced, so bestax's styles draw every day of a picked range, both ends included, and the year the header's year list is on, in the system's highlight colors there, or in the system's color for a disabled control when it's disabled. While the end is still being picked, only the start is filled, and the day the range would end on keeps its dashed edge.\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 and disables every button in it. A `readOnly` one puts `aria-readonly=\"true\"` there instead, keeps its tab stop and keys, and picks nothing.\n- The start and end days are described as \"Start date\" and \"End date\", so moving onto either says which it is. While the end is still being picked, the day the range would end on is described as \"Choose as end date\" (`labels.rangePreviewEnd`).\n- A polite live region in the calendar states the range in words, such as \"Start date: June 10, 2024, End date: June 13, 2024\", and announces each pick. The grid points at it too, so moving into the grid reads the current range.\n- Everything else is the calendar `DateInput` uses: a roving `tabindex`, weekday column headers named in full (or by your `dayNames`), `aria-disabled` on disabled days, `aria-current=\"date\"` on today, and focus back on the grid as the year list closes.\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.\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 group through `aria-describedby`, after any ids you pass there, as the label names it.",
|
|
54
54
|
"related": ["DateInput", "DateTimeInput", "Field"],
|
|
55
55
|
"storybook": "https://bestax.io/storybook/?path=/story/form-daterangeinput",
|
|
56
56
|
"summary": "The `DateRangeInput` component is a form input for a start and end date, picked from one popover calendar or typed into two segmented inputs.",
|
|
@@ -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- Cells 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- 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. The device's own picker, which `mobileNative` opens on a touch device, draws its own grid.\n- Cells 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.",
|
|
@@ -198,10 +198,11 @@
|
|
|
198
198
|
"name": "color",
|
|
199
199
|
"type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
|
|
200
200
|
"default": null,
|
|
201
|
-
"description": "Bulma color for the
|
|
201
|
+
"description": "Renders no class: Bulma ships no field color CSS for a modifier to match, and the prop doesn't reach the text color helper either. Passing it logs a console warning in development.",
|
|
202
202
|
"required": false,
|
|
203
203
|
"inherited": false,
|
|
204
|
-
"deprecated":
|
|
204
|
+
"deprecated": true,
|
|
205
|
+
"deprecationNote": "The prop renders nothing and will be removed in the next major version. Use `textColor` / `bgColor` instead."
|
|
205
206
|
},
|
|
206
207
|
{
|
|
207
208
|
"name": "bgColor",
|
|
@@ -181,10 +181,11 @@
|
|
|
181
181
|
"name": "color",
|
|
182
182
|
"type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
|
|
183
183
|
"default": null,
|
|
184
|
-
"description": "Bulma color
|
|
184
|
+
"description": "Renders no class: Bulma ships no grid color CSS for a modifier to match, and the prop doesn't reach the text color helper either. Passing it logs a console warning in development.",
|
|
185
185
|
"required": false,
|
|
186
186
|
"inherited": false,
|
|
187
|
-
"deprecated":
|
|
187
|
+
"deprecated": true,
|
|
188
|
+
"deprecationNote": "The prop renders nothing and will be removed in the next major version. Use `textColor` / `bgColor` instead."
|
|
188
189
|
},
|
|
189
190
|
{
|
|
190
191
|
"name": "bgColor",
|
|
@@ -303,10 +304,11 @@
|
|
|
303
304
|
"name": "color",
|
|
304
305
|
"type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
|
|
305
306
|
"default": null,
|
|
306
|
-
"description": "Bulma color
|
|
307
|
+
"description": "Renders no class: Bulma ships no cell color CSS for a modifier to match, and the prop doesn't reach the text color helper either. Passing it logs a console warning in development.",
|
|
307
308
|
"required": false,
|
|
308
309
|
"inherited": false,
|
|
309
|
-
"deprecated":
|
|
310
|
+
"deprecated": true,
|
|
311
|
+
"deprecationNote": "The prop renders nothing and will be removed in the next major version. Use `textColor` / `bgColor` instead."
|
|
310
312
|
},
|
|
311
313
|
{
|
|
312
314
|
"name": "bgColor",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"code": "<Icon ariaLabel=\"Custom SVG icon\" textColor=\"primary\">\n <svg viewBox=\"0 0 16 16\" width=\"1em\" height=\"1em\" fill=\"currentColor\">\n <circle cx=\"8\" cy=\"8\" r=\"6\" />\n </svg>\n</Icon>"
|
|
63
63
|
}
|
|
64
64
|
],
|
|
65
|
-
"accessibility": "- **Decorative by default:** an `Icon` with no `ariaLabel` renders `aria-hidden=\"true\"` and no name, so it adds nothing to the accessible name of a `Button` or text around it. A Material Icons or Material Symbols ligature (`rocket_launch`) stays out of that name too.\n- **Named icons:** set `ariaLabel` on an icon that means something on its own. The container span then renders `role=\"img\"` with that `aria-label`, so the name is the label alone, never the ligature text inside. A non-empty native `aria-label` or `aria-labelledby` counts as a name too, and an explicit `role` or `aria-hidden` wins over either default. An unnamed icon given a `role` or a `tabIndex` of its own isn't hidden, since hiding something focusable is a failure of its own.\n- **Icon-only controls:** put the name on the control (e.g. `Button`'s `aria-label`) and leave the `Icon` unnamed.\n- **Keyboard:** If interactive, use with `Button` or `a` and put the ARIA (`aria-label`, roles) on that control.\n- **Color and size:** Use `textColor`, `bgColor`, and `size` for accessible, themeable icons.",
|
|
65
|
+
"accessibility": "- **Decorative by default:** an `Icon` with no `ariaLabel` renders `aria-hidden=\"true\"` and no name, so it adds nothing to the accessible name of a `Button` or text around it. A Material Icons or Material Symbols ligature (`rocket_launch`) stays out of that name too.\n- **Named icons:** set `ariaLabel` on an icon that means something on its own. The container span then renders `role=\"img\"` with that `aria-label`, so the name is the label alone, never the ligature text inside. A non-empty native `aria-label` or `aria-labelledby` counts as a name too, and an explicit `role` or `aria-hidden` wins over either default. An unnamed icon given a `role` or a `tabIndex` of its own isn't hidden, since hiding something focusable is a failure of its own, so give it a name. For Ionicons the `<ion-icon>` element inside is always `aria-hidden`, since Ionicons gives it an image role with no name, which such an icon would otherwise expose.\n- **Icon-only controls:** put the name on the control (e.g. `Button`'s `aria-label`) and leave the `Icon` unnamed.\n- **Keyboard:** If interactive, use with `Button` or `a` and put the ARIA (`aria-label`, roles) on that control.\n- **Color and size:** Use `textColor`, `bgColor`, and `size` for accessible, themeable icons.",
|
|
66
66
|
"related": ["Button", "Card", "IconText", "useBulmaClasses"],
|
|
67
67
|
"storybook": "https://bestax.io/storybook/?path=/story/elements-icon--default",
|
|
68
68
|
"summary": "The `Icon` component is a Bulma-styled wrapper for displaying icons from various libraries (Font Awesome, Material Design Icons, Ionicons, Google Material Icons, Material Symbols, etc.).",
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
"name": "ariaLabel",
|
|
192
192
|
"type": "string",
|
|
193
193
|
"default": null,
|
|
194
|
-
"description": "Accessible name for an icon that means something on its own. Set it and the container span gets `role=\"img\"` with this `aria-label`, so the name is exactly this text: a Material ligature such as `rocket_launch` inside stays out of it. Leave it unset (or empty) and the icon is decorative: the span renders `aria-hidden=\"true\"` and no name, so it adds nothing to the accessible name of a `Button` or text around it. For an icon-only control, put the name on the control (e.g. `Button`'s `aria-label`) and leave this unset. A non-empty native `aria-label` or `aria-labelledby` passed instead also counts as a name, and an explicit `role` or `aria-hidden` wins over both defaults. An unnamed icon given a `role` or a `tabIndex` of its own isn't hidden, since hiding something focusable is a failure of its own.",
|
|
194
|
+
"description": "Accessible name for an icon that means something on its own. Set it and the container span gets `role=\"img\"` with this `aria-label`, so the name is exactly this text: a Material ligature such as `rocket_launch` inside stays out of it. Leave it unset (or empty) and the icon is decorative: the span renders `aria-hidden=\"true\"` and no name, so it adds nothing to the accessible name of a `Button` or text around it. For an icon-only control, put the name on the control (e.g. `Button`'s `aria-label`) and leave this unset. A non-empty native `aria-label` or `aria-labelledby` passed instead also counts as a name, and an explicit `role` or `aria-hidden` wins over both defaults. An unnamed icon given a `role` or a `tabIndex` of its own isn't hidden, since hiding something focusable is a failure of its own, so give it a name. For Ionicons the `<ion-icon>` inside is always `aria-hidden`, so it adds no image of its own.",
|
|
195
195
|
"required": false,
|
|
196
196
|
"inherited": true,
|
|
197
197
|
"deprecated": false
|
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
"name": "ariaLabel",
|
|
255
255
|
"type": "string",
|
|
256
256
|
"default": null,
|
|
257
|
-
"description": "Accessible name for an icon that means something on its own. Set it and the container span gets `role=\"img\"` with this `aria-label`, so the name is exactly this text: a Material ligature such as `rocket_launch` inside stays out of it. Leave it unset (or empty) and the icon is decorative: the span renders `aria-hidden=\"true\"` and no name, so it adds nothing to the accessible name of a `Button` or text around it. For an icon-only control, put the name on the control (e.g. `Button`'s `aria-label`) and leave this unset. A non-empty native `aria-label` or `aria-labelledby` passed instead also counts as a name, and an explicit `role` or `aria-hidden` wins over both defaults. An unnamed icon given a `role` or a `tabIndex` of its own isn't hidden, since hiding something focusable is a failure of its own.",
|
|
257
|
+
"description": "Accessible name for an icon that means something on its own. Set it and the container span gets `role=\"img\"` with this `aria-label`, so the name is exactly this text: a Material ligature such as `rocket_launch` inside stays out of it. Leave it unset (or empty) and the icon is decorative: the span renders `aria-hidden=\"true\"` and no name, so it adds nothing to the accessible name of a `Button` or text around it. For an icon-only control, put the name on the control (e.g. `Button`'s `aria-label`) and leave this unset. A non-empty native `aria-label` or `aria-labelledby` passed instead also counts as a name, and an explicit `role` or `aria-hidden` wins over both defaults. An unnamed icon given a `role` or a `tabIndex` of its own isn't hidden, since hiding something focusable is a failure of its own, so give it a name. For Ionicons the `<ion-icon>` inside is always `aria-hidden`, so it adds no image of its own.",
|
|
258
258
|
"required": false,
|
|
259
259
|
"inherited": true,
|
|
260
260
|
"deprecated": false
|
|
@@ -303,7 +303,7 @@
|
|
|
303
303
|
"name": "ariaLabel",
|
|
304
304
|
"type": "string",
|
|
305
305
|
"default": null,
|
|
306
|
-
"description": "Accessible name for an icon that means something on its own. Set it and the container span gets `role=\"img\"` with this `aria-label`, so the name is exactly this text: a Material ligature such as `rocket_launch` inside stays out of it. Leave it unset (or empty) and the icon is decorative: the span renders `aria-hidden=\"true\"` and no name, so it adds nothing to the accessible name of a `Button` or text around it. For an icon-only control, put the name on the control (e.g. `Button`'s `aria-label`) and leave this unset. A non-empty native `aria-label` or `aria-labelledby` passed instead also counts as a name, and an explicit `role` or `aria-hidden` wins over both defaults. An unnamed icon given a `role` or a `tabIndex` of its own isn't hidden, since hiding something focusable is a failure of its own.",
|
|
306
|
+
"description": "Accessible name for an icon that means something on its own. Set it and the container span gets `role=\"img\"` with this `aria-label`, so the name is exactly this text: a Material ligature such as `rocket_launch` inside stays out of it. Leave it unset (or empty) and the icon is decorative: the span renders `aria-hidden=\"true\"` and no name, so it adds nothing to the accessible name of a `Button` or text around it. For an icon-only control, put the name on the control (e.g. `Button`'s `aria-label`) and leave this unset. A non-empty native `aria-label` or `aria-labelledby` passed instead also counts as a name, and an explicit `role` or `aria-hidden` wins over both defaults. An unnamed icon given a `role` or a `tabIndex` of its own isn't hidden, since hiding something focusable is a failure of its own, so give it a name. For Ionicons the `<ion-icon>` inside is always `aria-hidden`, so it adds no image of its own.",
|
|
307
307
|
"required": false,
|
|
308
308
|
"inherited": true,
|
|
309
309
|
"deprecated": false
|
|
@@ -15,8 +15,9 @@ This is the self-contained inventory of the color/size/variant props that matter
|
|
|
15
15
|
from those unions in the next major (the `has-text-*`/`has-background-*` **helpers** do cover
|
|
16
16
|
every one of them). On the `Hero` root, `inherit` and `current` are equally CSS-less and deprecated
|
|
17
17
|
(its `Head`/`Body`/`Foot` sub-components keep them, as text helpers). `Pagination` and
|
|
18
|
-
`Tabs` ship no color CSS for **any** value
|
|
19
|
-
|
|
18
|
+
`Tabs` ship no color CSS for **any** value, and `Columns`, `Column`, `Grid`, `Cell` and
|
|
19
|
+
`Field` drop their `color` without rendering anything — their entire `color` prop is
|
|
20
|
+
deprecated; use `textColor` there. Before relying on an unusual value, grep the shipped CSS:
|
|
20
21
|
`node_modules/@allxsmith/bestax-bulma/dist/bestax.css` for e.g. `.progress.is-grey`.
|
|
21
22
|
2. **Helper color props** (on most components, applied as utility classes):
|
|
22
23
|
- `color` / `textColor` → `has-text-<color>` (text color)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bestax-mcp",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.83",
|
|
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,7 +42,7 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
44
44
|
"zod": "^4.6.7",
|
|
45
|
-
"@allxsmith/bestax-bulma": "^5.78.
|
|
45
|
+
"@allxsmith/bestax-bulma": "^5.78.7"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/node": "^26.6.6",
|