bestax-mcp 1.18.60 → 1.18.62
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 +2 -1
- package/data/components/Calendar.json +3 -3
- package/data/components/Cascader.json +1 -1
- package/data/components/Navbar.json +1 -1
- package/data/components/Rate.json +1 -1
- package/data/components/Steps.json +8 -2
- package/data/components/Timeline.json +2 -2
- package/data/components/TreeSelect.json +2 -2
- package/data/components/TreeView.json +3 -3
- package/data/skills/bestax-custom-component/references/library-contributor.md +2 -2
- package/data/skills/bestax-optimize/references/modular-build.md +3 -2
- package/data/skills/bestax-theming/references/css-variables.md +17 -5
- package/data/skills/bestax-theming/references/themeable-components.md +1 -1
- package/package.json +2 -2
package/data/catalog.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schemaVersion": 2,
|
|
3
3
|
"generatedFrom": {
|
|
4
4
|
"package": "@allxsmith/bestax-bulma",
|
|
5
|
-
"version": "5.73.
|
|
5
|
+
"version": "5.73.2"
|
|
6
6
|
},
|
|
7
7
|
"docsBase": "https://bestax.io/docs",
|
|
8
8
|
"categories": [
|
|
@@ -3227,6 +3227,7 @@
|
|
|
3227
3227
|
"--bulma-steps-content-margin-top": ["Steps"],
|
|
3228
3228
|
"--bulma-steps-default-color": ["Steps"],
|
|
3229
3229
|
"--bulma-steps-divider-height": ["Steps"],
|
|
3230
|
+
"--bulma-steps-label-background": ["Steps"],
|
|
3230
3231
|
"--bulma-steps-marker-background": ["Steps"],
|
|
3231
3232
|
"--bulma-steps-marker-font-size": ["Steps"],
|
|
3232
3233
|
"--bulma-steps-marker-font-weight": ["Steps"],
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"name": "defaultMonth",
|
|
126
126
|
"type": "Date",
|
|
127
127
|
"default": null,
|
|
128
|
-
"description": "The month on show to begin with, when the Calendar holds its own state. Unset, it's the month of `value` (a range's start), or else today's,
|
|
128
|
+
"description": "The month on show to begin with, when the Calendar holds its own state. Unset, it's the month of `value` (a range's start), or else today's, kept inside `min` and `max`, and with `monthsToShow` moved back so the months on show end by `max`, though never before `min`'s month. On a server render today is the server's, so give this, `month` or a picked `value` there.",
|
|
129
129
|
"required": false,
|
|
130
130
|
"inherited": true,
|
|
131
131
|
"deprecated": false
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
"name": "min",
|
|
207
207
|
"type": "Date",
|
|
208
208
|
"default": null,
|
|
209
|
-
"description": "Earliest day that can be picked. Days before it show disabled. One before year 1, or none, counts as the start of year 1.",
|
|
209
|
+
"description": "Earliest day that can be picked. Days before it show disabled, and a `value` before it opens on its month rather than the value's, unless `month` or `defaultMonth` says otherwise. One before year 1, or none, counts as the start of year 1.",
|
|
210
210
|
"required": false,
|
|
211
211
|
"inherited": true,
|
|
212
212
|
"deprecated": false
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
"name": "max",
|
|
216
216
|
"type": "Date",
|
|
217
217
|
"default": null,
|
|
218
|
-
"description": "Latest day that can be picked. Days after it show disabled.",
|
|
218
|
+
"description": "Latest day that can be picked. Days after it show disabled, and a `value` after it opens on its month rather than the value's, as the last month on show with `monthsToShow`, unless `month` or `defaultMonth` says otherwise.",
|
|
219
219
|
"required": false,
|
|
220
220
|
"inherited": true,
|
|
221
221
|
"deprecated": false
|
|
@@ -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 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. 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.",
|
|
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 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.",
|
|
46
46
|
"related": [
|
|
47
47
|
"Combobox",
|
|
48
48
|
"Select",
|
|
@@ -463,7 +463,7 @@
|
|
|
463
463
|
},
|
|
464
464
|
{
|
|
465
465
|
"name": "aria-expanded",
|
|
466
|
-
"type": "boolean | null
|
|
466
|
+
"type": "boolean | null",
|
|
467
467
|
"default": "active",
|
|
468
468
|
"description": "Expanded state for assistive technology. It follows `active` unless you pass `true` or `false`, and `null` leaves it off, for a burger whose state isn't known yet; a spread carrying `'aria-expanded': undefined` still follows `active`.",
|
|
469
469
|
"required": false,
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"code": "function example() {\n return (\n <Field\n horizontal\n label=\"Rating\"\n labelProps={{ id: 'rating-label-control', htmlFor: undefined }}\n >\n <Field.Body>\n <Field>\n <Control>\n <Rate aria-labelledby=\"rating-label-control\" defaultValue={3} />\n </Control>\n </Field>\n </Field.Body>\n </Field>\n );\n}"
|
|
52
52
|
}
|
|
53
53
|
],
|
|
54
|
-
"accessibility": "- Uses `role=\"radiogroup\"` for the container\n- The `label` prop names the group via `aria-labelledby` (the rendered `<label>` gets an id — yours via `labelProps.id`, or a generated one); without a label the container falls back to `aria-label=\"Rating\"`. Inside a labeled `Field`, that `Field`'s label names the group the same way and replaces the fallback. An `aria-label` or `aria-labelledby` you set on the Rate yourself wins over either label\n- Each star has `role=\"radio\"` with `aria-checked`, and the star the value falls in is the checked one, so the value travels with it. A fractional value names that star by the value itself (\"3.5 stars\")\n- Focus stays on the group, which points `aria-activedescendant` at the checked star, so a screen reader announces it as the arrow keys change the value\n- Full keyboard navigation with arrow keys\n- Home/End keys jump to 0/max values\n- `disabled` sets `aria-disabled` on the group and on every star, so a screen reader announces them as unavailable, and takes the group out of the tab order",
|
|
54
|
+
"accessibility": "- Uses `role=\"radiogroup\"` for the container\n- The `label` prop names the group via `aria-labelledby` (the rendered `<label>` gets an id — yours via `labelProps.id`, or a generated one); without a label the container falls back to `aria-label=\"Rating\"`. Inside a labeled `Field`, that `Field`'s label names the group the same way and replaces the fallback. An `aria-label` or `aria-labelledby` you set on the Rate yourself wins over either label\n- Each star has `role=\"radio\"` with `aria-checked`, and the star the value falls in is the checked one, so the value travels with it. A fractional value names that star by the value itself (\"3.5 stars\")\n- Focus stays on the group, which points `aria-activedescendant` at the checked star, so a screen reader announces it as the arrow keys change the value\n- Full keyboard navigation with arrow keys\n- Home/End keys jump to 0/max values\n- `disabled` sets `aria-disabled` on the group and on every star, so a screen reader announces them as unavailable, and takes the group out of the tab order\n- In forced colors (Windows' contrast themes) the built-in star a value only partly fills draws its filled part in the system's highlight color, as a filled star is drawn",
|
|
55
55
|
"related": ["Input", "Slider"],
|
|
56
56
|
"storybook": "https://bestax.io/storybook/?path=/story/form-rate",
|
|
57
57
|
"summary": "The `Rate` component provides a star/icon-based rating system.",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"code": "<Steps value={1}>\n <Steps.Step label=\"Account\" />\n <Steps.Step label=\"Profile\" />\n <Steps.Step label=\"Complete\" />\n</Steps>"
|
|
47
47
|
}
|
|
48
48
|
],
|
|
49
|
-
"accessibility": "- The active step has `aria-current=\"step\"`, on its list item, or on its button when it's clickable\n- A clickable step stays a list item and puts its marker and label in a `<button type=\"button\">` inside it, so the list keeps its list items and assistive technology can count them. The button takes Tab, Enter and Space, and the focus ring goes around the whole step, which is what you can click\n- The list has `role=\"list\"`. That's the role a `<ul>` already has, set again for Safari, whose WebKit stops exposing a `<ul>` as a list once its markers are hidden, as they are here, unless the role is written out\n- Use descriptive labels for each step\n- A completed step's marker shows a check mark in place of its number\n- A completed step, and a step not reached yet, ends in a visually hidden \"completed\" or \"upcoming\", in the language `completedLabel` and `upcomingLabel` set. The words sit in the step's list item, after the step, and a clickable step's button also takes them as its description (`aria-describedby`). The button's accessible name stays the step's marker and label. A `Step` used on its own, outside `Steps`, says no words\n- In forced colors (Windows' contrast themes), the lines and a completed step's fill are drawn in the theme's text color, and the current step's marker gets an outline, so completed, current and upcoming steps still look different without color\n- Steps with no `color` are drawn in Bulma's `text-weak`, and a `color` draws the current and completed steps in its `-on-scheme` variant, the one Bulma adjusts for text on the scheme's background, with a completed step's mark in the page's color. A step's number clears WCAG's 4.5:1, and its marker 3:1, against Bulma's page background in light and dark mode. When a `Theme` changes a color's hue, saturation or lightness, set that color's on-scheme lightness with it, as [Label and Text Lightnesses](https://bestax.io/docs/api/helpers/theme#label-and-text-lightnesses) shows",
|
|
49
|
+
"accessibility": "- The active step has `aria-current=\"step\"`, on its list item, or on its button when it's clickable\n- A clickable step stays a list item and puts its marker and label in a `<button type=\"button\">` inside it, so the list keeps its list items and assistive technology can count them. The button takes Tab, Enter and Space, and the focus ring goes around the whole step, which is what you can click\n- The list has `role=\"list\"`. That's the role a `<ul>` already has, set again for Safari, whose WebKit stops exposing a `<ul>` as a list once its markers are hidden, as they are here, unless the role is written out\n- Use descriptive labels for each step\n- A completed step's marker shows a check mark in place of its number\n- A completed step, and a step not reached yet, ends in a visually hidden \"completed\" or \"upcoming\", in the language `completedLabel` and `upcomingLabel` set. The words sit in the step's list item, after the step, and a clickable step's button also takes them as its description (`aria-describedby`). The button's accessible name stays the step's marker and label. A `Step` used on its own, outside `Steps`, says no words\n- In forced colors (Windows' contrast themes), the lines and a completed step's fill are drawn in the theme's text color, and the current step's marker gets an outline, so completed, current and upcoming steps still look different without color\n- Steps with no `color` are drawn in Bulma's `text-weak`, and a `color` draws the current and completed steps in its `-on-scheme` variant, the one Bulma adjusts for text on the scheme's background, with a completed step's mark in the page's color. A step's number clears WCAG's 4.5:1, and its marker 3:1, against Bulma's page background in light and dark mode. When a `Theme` changes a color's hue, saturation or lightness, set that color's on-scheme lightness with it, as [Label and Text Lightnesses](https://bestax.io/docs/api/helpers/theme#label-and-text-lightnesses) shows\n- On a colored `Notification` or `Hero`, the labels take the surface's text color, which Bulma picks to read on it, as the surface's other text does. Steps with no `color` take it for their markers, numbers and lines too, and fill their markers with the surface's background. A `color` you set is kept on the markers and lines, so on a colored surface set one only if it stands out from the surface's color. Steps on a Box, a Card, a Message or a Modal inside the surface keep the page's look, since those are surfaces of their own, and steps in a Notification inside a Hero follow the Notification",
|
|
50
50
|
"related": ["Progress", "Timeline"],
|
|
51
51
|
"storybook": "https://bestax.io/storybook/?path=/story/components-steps",
|
|
52
52
|
"summary": "The `Steps` component provides a multi-step progress indicator for wizard flows, checkout processes, or any multi-step workflow. Each step is a list item. The current one has `aria-current=\"step\"`, and a completed one, and one not reached yet, ends in a visually hidden \"completed\" or \"upcoming\", in the language `completedLabel` and `upcomingLabel` set. A clickable step's button takes those words as its description, so its accessible name stays its marker and its label.",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"name": "color",
|
|
91
91
|
"type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
|
|
92
92
|
"default": null,
|
|
93
|
-
"description": "Color variant. The current and completed steps take the color's `-on-scheme` variant, the shade Bulma adjusts to read on the page in either scheme, so a pale color such as `warning` is drawn darker on a light page.",
|
|
93
|
+
"description": "Color variant. The current and completed steps take the color's `-on-scheme` variant, the shade Bulma adjusts to read on the page in either scheme, so a pale color such as `warning` is drawn darker on a light page. On a colored `Notification` or `Hero`, leave it off: the markers then take the surface's text color, as the labels do either way, while a color you set is kept even where it doesn't stand out from the surface's.",
|
|
94
94
|
"required": false,
|
|
95
95
|
"inherited": false,
|
|
96
96
|
"deprecated": false
|
|
@@ -398,6 +398,12 @@
|
|
|
398
398
|
"default": "var(--bulma-scheme-main)",
|
|
399
399
|
"scope": "root"
|
|
400
400
|
},
|
|
401
|
+
{
|
|
402
|
+
"css": "--bulma-steps-label-background",
|
|
403
|
+
"sass": "$steps-label-background",
|
|
404
|
+
"default": "var(--bulma-scheme-main)",
|
|
405
|
+
"scope": "root"
|
|
406
|
+
},
|
|
401
407
|
{
|
|
402
408
|
"css": "--bulma-steps-marker-font-size",
|
|
403
409
|
"sass": "$steps-marker-font-size",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"code": "function example() {\n function Stage({\n name,\n icon,\n children,\n }: {\n name: string;\n icon: string;\n children?: React.ReactNode;\n }) {\n return (\n <Timeline.Item title={name} icon={icon}>\n {children}\n </Timeline.Item>\n );\n }\n\n return (\n <Timeline titleAs=\"h3\" active={1} color=\"success\">\n <Stage name=\"Build\" icon=\"hammer\">\n <Paragraph>All tests passed.</Paragraph>\n </Stage>\n <Stage name=\"Deploy to staging\" icon=\"server\">\n <Paragraph>\n Rolling out. <Link href=\"#logs\">See the logs</Link>\n </Paragraph>\n </Stage>\n <Stage name=\"Deploy to production\" icon=\"globe\" />\n </Timeline>\n );\n}"
|
|
47
47
|
}
|
|
48
48
|
],
|
|
49
|
-
"accessibility": "- **A list:** it's an `<ol>`, since a timeline's order is its meaning, with `role=\"list\"`. Safari\n stops treating a list as one once its numbers are hidden, and the role keeps it a list there, so\n a screen reader says how many events there are and where each one is.\n- **Headings:** each title is a heading, `h2` unless `titleAs` says otherwise, so screen reader\n users can move from event to event. Pick the level under the heading the timeline sits beneath:\n an `h3` under an `h2`. In a busy feed, `titleAs=\"p\"` makes them plain lines.\n- **States in words and shapes:** the current item has `aria-current=\"step\"`. A completed item's\n title ends with \"completed\", an upcoming one's with \"upcoming\", and the pending one's with \"in\n progress\", in visually hidden text, so its heading reads \"Packed completed\". Set the words in\n your app's language with `completedLabel`, `upcomingLabel` and `pendingLabel`. Each state has a\n shape of its own as well as a color.\n- **Contrast:** a marker with no `color`, in a record or not reached yet, is Bulma's `text-weak`,\n and progress and a `color` are drawn in the color's on-scheme lightness, the one Bulma adjusts\n for text on the scheme's background. A marker's ring or dot clears WCAG 1.4.11's 3:1 against\n Bulma's page background in light and dark mode. When a `Theme` changes a color's hue,\n saturation or lightness, set that color's on-scheme lightness with it, as\n [Label and Text Lightnesses](https://bestax.io/docs/api/helpers/theme#label-and-text-lightnesses) shows.\n- **Decoration:** the markers are hidden from assistive tech, an `Icon` with an `ariaLabel`\n included, and the line is drawn by CSS. Say what a color or an icon means in the title.\n- **The time:** a screen reader mostly reads the text, so the time's words carry the whole date.\n `dateTime` puts the same moment in a `<time datetime>` for machines, and for the readers that\n speak it.\n- **Motion:** the pending ring turns, and stands still for users who ask for less motion. Its open\n shape is the cue either way.\n- **In a colored Notification:** a timeline with no `color` draws its markers in the\n
|
|
49
|
+
"accessibility": "- **A list:** it's an `<ol>`, since a timeline's order is its meaning, with `role=\"list\"`. Safari\n stops treating a list as one once its numbers are hidden, and the role keeps it a list there, so\n a screen reader says how many events there are and where each one is.\n- **Headings:** each title is a heading, `h2` unless `titleAs` says otherwise, so screen reader\n users can move from event to event. Pick the level under the heading the timeline sits beneath:\n an `h3` under an `h2`. In a busy feed, `titleAs=\"p\"` makes them plain lines.\n- **States in words and shapes:** the current item has `aria-current=\"step\"`. A completed item's\n title ends with \"completed\", an upcoming one's with \"upcoming\", and the pending one's with \"in\n progress\", in visually hidden text, so its heading reads \"Packed completed\". Set the words in\n your app's language with `completedLabel`, `upcomingLabel` and `pendingLabel`. Each state has a\n shape of its own as well as a color.\n- **Contrast:** a marker with no `color`, in a record or not reached yet, is Bulma's `text-weak`,\n and progress and a `color` are drawn in the color's on-scheme lightness, the one Bulma adjusts\n for text on the scheme's background. A marker's ring or dot clears WCAG 1.4.11's 3:1 against\n Bulma's page background in light and dark mode. When a `Theme` changes a color's hue,\n saturation or lightness, set that color's on-scheme lightness with it, as\n [Label and Text Lightnesses](https://bestax.io/docs/api/helpers/theme#label-and-text-lightnesses) shows.\n- **Decoration:** the markers are hidden from assistive tech, an `Icon` with an `ariaLabel`\n included, and the line is drawn by CSS. Say what a color or an icon means in the title.\n- **The time:** a screen reader mostly reads the text, so the time's words carry the whole date.\n `dateTime` puts the same moment in a `<time datetime>` for machines, and for the readers that\n speak it.\n- **Motion:** the pending ring turns, and stands still for users who ask for less motion. Its open\n shape is the cue either way.\n- **In a colored Notification or Hero:** a timeline with no `color` draws its markers in the\n surface's text color, as its titles are, so there its states differ by their shapes and by the\n line, which is drawn in that color up to the current item. A `color` you set is kept.\n- **Forced colors:** every line, dot, ring and halo is a border or an outline, so in Windows high\n contrast mode they keep their shapes, and the pending ring stays open.\n- **Not interactive and not live:** it has no tab stop and no keys, and links or buttons in an\n item work as they do anywhere. It announces nothing when it changes, so keep a status region\n beside one that changes on screen, as in [A Timeline That Changes](https://bestax.io/docs/api/components/timeline#a-timeline-that-changes).\n- **A record first:** design systems with user research behind them, the UK's\n [MOJ](https://design-patterns.service.justice.gov.uk/components/timeline/) and\n [HMRC](https://design.tax.service.gov.uk/hmrc-design-patterns/timeline/), use a timeline for a\n record and advise against using one as a progress indicator. That's why a record is the default.\n `active` is for something that moves on its own and is only reported to the user. For a journey\n the user moves through, where they may go back, use [`Steps`](https://bestax.io/docs/api/components/steps).",
|
|
50
50
|
"related": ["Card", "Icon", "Steps", "Title", "useBulmaClasses"],
|
|
51
51
|
"storybook": "https://bestax.io/storybook/?path=/story/components-timeline--default",
|
|
52
52
|
"summary": "The `Timeline` component renders a list of events in the order they happened, each with a marker on a line down the side. By default it's a record, an order's history, a ticket's activity or a changelog, and it marks nothing. With `active` it marks progress, for something that moves along on its own and is reported to the user: a parcel, a deployment, a claim. That reads oldest first, and `pending` ends it on what's under way. A journey the user moves through themselves, like a wizard or a checkout, is `Steps`. It's an `<ol role=\"list\">`, so it stays a list in Safari with its numbers hidden, and each title is a heading at the level `titleAs` sets. The markers are decoration and hidden from assistive tech, so the states are read as words: `aria-current=\"step\"` on the current item, and \"completed\", \"upcoming\" or \"in progress\" after the other titles, in the language the label props set. Nothing here is a control or a live region, so a timeline that changes on screen keeps a `role=\"status\"` region beside it.",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"name": "color",
|
|
118
118
|
"type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
|
|
119
119
|
"default": null,
|
|
120
|
-
"description": "The markers' color, and the color of progress with `active`. Neutral without it, and Bulma's `link` for progress. Drawn in the color's on-scheme shade, the one Bulma adjusts to read on the page in either scheme, so a pale color such as `warning` is darker on a light page. The markers are hidden from assistive tech, so say what a color means in the words too. In a colored Notification, leave it off: the markers then take the
|
|
120
|
+
"description": "The markers' color, and the color of progress with `active`. Neutral without it, and Bulma's `link` for progress. Drawn in the color's on-scheme shade, the one Bulma adjusts to read on the page in either scheme, so a pale color such as `warning` is darker on a light page. The markers are hidden from assistive tech, so say what a color means in the words too. In a colored Notification or Hero, leave it off: the markers then take the surface's text color, as the titles do, while a color you set is kept even where it doesn't stand out from the surface's.",
|
|
121
121
|
"required": false,
|
|
122
122
|
"inherited": false,
|
|
123
123
|
"deprecated": false
|
|
@@ -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 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`. 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.\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- **The chevron** marks the field as a picker, so its colors follow the scheme:\n `--bulma-tree-select-chevron-color` defaults to `var(--bulma-text-weak)`, and\n `--bulma-tree-select-chevron-hover-color` to the stronger `var(--bulma-text)`.\n- **Forced colors:** the field, the panel and the tree keep their edges in system colors, and the\n chevron is text.",
|
|
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 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.\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- **The chevron** marks the field as a picker, so its colors follow the scheme:\n `--bulma-tree-select-chevron-color` defaults to `var(--bulma-text-weak)`, and\n `--bulma-tree-select-chevron-hover-color` to the stronger `var(--bulma-text)`.\n- **Forced colors:** the field, the panel and the tree keep their edges in system colors, and the\n chevron is text.",
|
|
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.",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"name": "selectionMode",
|
|
76
76
|
"type": "'single' | 'checkbox' | 'checkbox-independent'",
|
|
77
77
|
"default": "'single'",
|
|
78
|
-
"description": "`'single'`: one item, picked with Enter, Space or a click on its row. `'checkbox'`: any number, with a box on every item. A check reaches every enabled item under it, and a parent with some of them checked is mixed. `'checkbox-independent'`: any number, each box checking its own item, so a parent means the parent alone (Mantine's and Ant Design's `checkStrictly`). The checkbox modes show the value as tags.",
|
|
78
|
+
"description": "`'single'`: one item, picked with Enter, Space or a click on its row. `'checkbox'`: any number, with a box on every item. A check reaches every enabled item under it, and a parent with some of them checked is mixed. `'checkbox-independent'`: any number, each box checking its own item, so a parent means the parent alone (Mantine's and Ant Design's `checkStrictly`). The checkbox modes show the value as tags. In every mode, a Space typed during a type-ahead search joins it instead when an item starts with what's been typed and a space.",
|
|
79
79
|
"required": false,
|
|
80
80
|
"inherited": true,
|
|
81
81
|
"deprecated": false
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"code": "<TreeView\n aria-label=\"Files\"\n selectionMode=\"single\"\n defaultSelected=\"src/App.tsx\"\n defaultExpanded={['src']}\n>\n <TreeView.Item value=\"src\" label=\"src\" icon=\"folder\">\n <TreeView.Item value=\"src/index.ts\" label=\"index.ts\" icon=\"file\" />\n <TreeView.Item value=\"src/App.tsx\" label=\"App.tsx\" icon=\"file\" />\n <TreeView.Item value=\"src/legacy.ts\" label=\"legacy.ts\" disabled />\n </TreeView.Item>\n <TreeView.Item value=\"package.json\" label=\"package.json\" icon=\"file\" />\n</TreeView>"
|
|
47
47
|
}
|
|
48
48
|
],
|
|
49
|
-
"accessibility": "`TreeView` follows the [APG Tree View Pattern](https://www.w3.org/WAI/ARIA/apg/patterns/treeview/).\n\n- **Roles:** the root is a `<ul role=\"tree\">`, each item an `<li role=\"treeitem\">`, and an open\n parent's children sit in a `<ul role=\"group\">` inside it. A closed item's children have no\n markup.\n- **A name:** a tree needs one, from `aria-label` or `aria-labelledby`, and a development build\n warns when it has neither. Each item is named by `aria-labelledby` pointing at its own label, and\n declares its `aria-level`, which VoiceOver needs according to\n [GitHub's testing](https://github.blog/engineering/user-experience/considerations-for-making-a-tree-view-component-accessible/).\n `aria-expanded` is on parents only.\n- **Positions:** each item also declares `aria-posinset` and `aria-setsize`, its place among the\n items beside it, so a screen reader that doesn't work positions out for itself still has them.\n The tree reads them off the page once it mounts, and again whenever items open, close, load or\n move, so server markup leaves them to the browser until then. They're the values a browser works\n out on its own: a loading row or a failed load's row counts with the items beside it. When the\n page holds only part of a set, such as the first page of a long folder, pass both on every item\n of that set: yours win, and the tree's own stay on any item without them.\n- **One tab stop, with real focus:** one item holds `tabIndex={0}` and the rest `-1`, and focus\n moves from item to item, rather than through `aria-activedescendant`. When focus comes into the\n tree, it lands on the selected item, or in either checkbox tree on the first checked item on the\n page.\n Without one, it lands where focus last was, or on the first item. If the item holding the stop\n goes away, its nearest ancestor on the page takes it, and focus goes too if it had focus.\n- **Selection:** a `single` tree marks each enabled item `aria-selected`, `true` or `false`. A\n `checkbox` tree marks `aria-checked` on every item, `true`, `false` or `mixed`, disabled ones\n included, and adds `aria-multiselectable=\"true\"` to the tree. A `checkbox-independent` tree does\n the same, except that `aria-checked` is only ever `true` or `false`: each says whether that item\n is checked, and a parent's says nothing about what's under it. A tree never has both\n `aria-selected` and `aria-checked`, and a tree with no `selectionMode` has neither. Selection\n doesn't follow focus.\n- **The box** is a [`Checkbox`](https://bestax.io/docs/api/form/checkbox) inside an `aria-hidden` span, with\n `tabIndex={-1}`, so it's neither a tab stop nor a second thing for a screen reader to read. The\n item's `aria-checked` is what a screen reader hears.\n- **Disabled items** are `aria-disabled` and stay reachable from the arrow keys, Home, End and\n typing, so a screen reader user finds them. They're never selected, checked, opened or closed.\n One that's already open stays open, so what's under it is still reachable. In a `single` tree a\n disabled item has no `aria-selected`. In either checkbox tree it keeps `aria-checked`, so the\n state its box shows is heard as well as seen, such as \"checked, disabled\".\n- **A loading item's row** is a `treeitem` that says Loading…, marked `aria-disabled` and reached\n the way a disabled item is, so a screen reader user who moves into the folder hears what's\n happening. It has no value: it's never selected or checked, it has no `aria-selected` or\n `aria-checked`, and a checkbox tree doesn't count it. If it goes with focus on it, focus moves to\n the item it was loading for. Bulma's loader turns in its chevron's place, hidden from assistive\n tech.\n- **A failed load's row** is a `treeitem` named by its message and the Retry button's text, such\n as \"Couldn't load src Retry\". Enter, Space or a click on the row calls `onRetry`, in every mode.\n The button is drawn inside an `aria-hidden` span and takes no focus, the way an item's box is,\n so the tree keeps its one tab stop, and nothing in the message should be a link or a button\n either. A retry that starts loading keeps the same row, so focus stays on it. With no `onRetry`,\n the row is disabled and shows the message alone.\n- **Announcements:** a visually hidden `role=\"status\"` region with `aria-live=\"polite\"` sits right\n after the tree, one for the whole tree, from the moment it mounts, so a screen reader is already\n listening when something is written into it. It says \"Loading src\" when an open item starts\n loading, a failed load's message, and \"src loaded\" when the loading row or a failed load's row\n goes with the item still open.\n The name is the item's label as a screen reader reads it. A closed item, or one in a closed\n branch, says nothing. Each announcement is written a moment after the change and cleared soon\n after, so the page doesn't keep a second copy of the text. A selection or a check isn't written\n there: it changes `aria-selected` or `aria-checked` on the focused item, which a screen reader\n reads out again, as the simulated one below does.\n\nEnter and Space do the item's one thing, which depends on the mode:\n\n| Key | No `selectionMode` | `single` | `checkbox` and `checkbox-independent` |\n| ----- | ------------------------ | ---------------- | ------------------------------------- |\n| Enter | Opens or closes a parent | Selects the item | Opens or closes a parent |\n| Space | Opens or closes a parent | Selects the item | Checks or unchecks it |\n\nOn a failed load's row, both retry, whatever the mode. The rest work the same in every mode:\n\n| Key | What it does |\n| ---------- | ----------------------------------------------------------------------------------------- |\n| Down, Up | The next or previous item on the page, without wrapping |\n| Right | Opens a closed parent, and focus stays. On an open parent, moves to its first child |\n| Left | Closes an open parent. Otherwise moves to its parent |\n| Home, End | The first item, and the last one on the page |\n| `*` | Opens every closed parent beside the focused item, itself included. Focus stays |\n| Characters | Moves to the next item whose label starts with what's typed, several characters adding up |\n| Tab | Leaves the tree |\n\n- **Right to left:** Right and Left swap in a right-to-left page, and the chevron points to the\n left while closed.\n- **Keys it leaves alone:** anything with Control, Alt or Meta held, anything while an input method\n is composing, and Escape, so it reaches a Modal or Popover around the tree. An item's own\n `onKeyDown` runs first, and calling `preventDefault()` there keeps the tree from acting on the\n key.\n- **Clicks:** the chevron only opens and closes. The rest of the row does the item's one thing:\n opens or closes it with no `selectionMode`, selects it (and opens or closes a parent) in a\n `single` tree, and checks or unchecks it in either checkbox tree. A click moves focus and the tab\n stop to the item.\n- **Not for site navigation:** APG's own\n [navigation tree example](https://www.w3.org/WAI/ARIA/apg/patterns/treeview/examples/treeview-navigation/)\n says \"A pattern more suited for typical site navigation with expandable groups of links is the\n disclosure pattern\", and a tree's items aren't links. Keep a sidebar on [`Menu`](https://bestax.io/docs/api/components/menu),\n whose `Menu.Section` is that disclosure pattern.\n- **Focus and the selected look differ:** the focus ring sits outside the row, so it shows on the\n selected fill as well as on a plain row.\n- **Forced colors:** in Windows high contrast mode the selected row is the system's Highlight and\n HighlightText, a disabled row or a loading one is GrayText, and the focus ring, the chevrons and\n the guide lines stay visible, since they're outlines and borders. A mixed box keeps its dash, and\n the loader's ring stays open.\n- **Motion:** the chevron turns with a short transition, and the loader spins. Both stop when the\n reader asks for reduced motion, and the loader stays drawn.\n\n**What a screen reader says.** What follows is simulated, with\n[Guidepup's Virtual Screen Reader](https://www.guidepup.dev/docs/virtual) 0.33.0, which reads the\naccessibility tree the way the ARIA and HTML specs describe. It isn't a recording of NVDA, JAWS\nor VoiceOver, and each of those words things its own way. The library's tests press these keys\nthrough it on the FileBrowser, Permissions, DeepTree and Categories stories, and fail if what it\nsays changes.\n\n1. **Onto a closed parent, then Right and Left:** \"treeitem, helpers, not expanded, level 2,\n position 2, not selected, set size 3\". Right reads it again as \"expanded\" and Left as \"not\n expanded\", with focus staying on it. The items that appear are read when focus reaches them.\n2. **Enter and Space with no `selectionMode`:** each press on a parent reads it again with its new\n state, \"treeitem, src, not expanded, level 1, position 1, set size 4\", then \"expanded\". A tree\n with no selection says nothing about one.\n3. **A level deeper and back up:** Right from components reads its first child, \"treeitem,\n Button.tsx, level 3, position 1, not selected, set size 3\", and Left goes back to \"treeitem,\n components, expanded, level 2, position 1, not selected, set size 3\".\n4. **Enter in a `single` tree:** the item is read again, \"treeitem, TreeView.tsx, level 3, position\n 3, selected, set size 3\". The item that lost the selection says \"not selected\" when focus gets\n back to it.\n5. **Space in a `checkbox` tree:** the item is read again as \"checked\". Its parent turns mixed\n without a word, and Left to it reads \"treeitem, Billing, partially checked, expanded, level 1,\n position 2, set size 2\". Space on the parent reads \"checked\", and so does each item under it as\n focus reaches it.\n6. **A disabled item:** in a `single` tree, \"treeitem, legacy.ts, disabled, level 2, position 3, set\n size 3\", with no selection state. In a `checkbox` tree, \"treeitem, Delete, not checked,\n disabled, level 4, position 3, set size 3\", or \"checked, disabled\" for one its own value checks.\n Enter and Space on it change nothing and say nothing.\n7. **Positions:** each item says its place among the items beside it, such as \"position 2\" and \"set\n size 3\", at every level.\n8. **Tab in and back out, with an item selected:** Tab lands on the selected item, \"treeitem,\n Card.tsx, level 3, position 2, selected, set size 3\", and Tab again leaves the tree for the next\n control. Shift+Tab comes back to Card.tsx, wherever focus was in the tree before.\n9. **Space in a `checkbox-independent` tree:** the item is read again as \"checked\", and nothing\n else changes. With both items under it checked, Left to Shoes still reads \"treeitem, Shoes, not\n checked, expanded, level 2, position 1, set size 2\". Space on Shoes reads \"checked\", and\n unchecking Running under it leaves Shoes \"checked\" when focus gets back to it, where a\n `checkbox` tree would read \"partially checked\". No item in this mode is ever partially checked.\n\nStill open in [#1171](https://github.com/allxsmith/bestax/issues/1171): recordings with NVDA, JAWS\nand VoiceOver on macOS and iOS, a real Windows contrast theme in place of Chromium's forced colors\nemulation, and runs in Firefox and Safari.",
|
|
49
|
+
"accessibility": "`TreeView` follows the [APG Tree View Pattern](https://www.w3.org/WAI/ARIA/apg/patterns/treeview/).\n\n- **Roles:** the root is a `<ul role=\"tree\">`, each item an `<li role=\"treeitem\">`, and an open\n parent's children sit in a `<ul role=\"group\">` inside it. A closed item's children have no\n markup.\n- **A name:** a tree needs one, from `aria-label` or `aria-labelledby`, and a development build\n warns when it has neither. Each item is named by `aria-labelledby` pointing at its own label, and\n declares its `aria-level`, which VoiceOver needs according to\n [GitHub's testing](https://github.blog/engineering/user-experience/considerations-for-making-a-tree-view-component-accessible/).\n `aria-expanded` is on parents only.\n- **Positions:** each item also declares `aria-posinset` and `aria-setsize`, its place among the\n items beside it, so a screen reader that doesn't work positions out for itself still has them.\n The tree reads them off the page once it mounts, and again whenever items open, close, load or\n move, so server markup leaves them to the browser until then. They're the values a browser works\n out on its own: a loading row or a failed load's row counts with the items beside it. When the\n page holds only part of a set, such as the first page of a long folder, pass both on every item\n of that set: yours win, and the tree's own stay on any item without them.\n- **One tab stop, with real focus:** one item holds `tabIndex={0}` and the rest `-1`, and focus\n moves from item to item, rather than through `aria-activedescendant`. When focus comes into the\n tree, it lands on the selected item, or in either checkbox tree on the first checked item on the\n page.\n Without one, it lands where focus last was, or on the first item. If the item holding the stop\n goes away, its nearest ancestor on the page takes it, and focus goes too if it had focus.\n- **Selection:** a `single` tree marks each enabled item `aria-selected`, `true` or `false`. A\n `checkbox` tree marks `aria-checked` on every item, `true`, `false` or `mixed`, disabled ones\n included, and adds `aria-multiselectable=\"true\"` to the tree. A `checkbox-independent` tree does\n the same, except that `aria-checked` is only ever `true` or `false`: each says whether that item\n is checked, and a parent's says nothing about what's under it. A tree never has both\n `aria-selected` and `aria-checked`, and a tree with no `selectionMode` has neither. Selection\n doesn't follow focus.\n- **The box** is a [`Checkbox`](https://bestax.io/docs/api/form/checkbox) inside an `aria-hidden` span, with\n `tabIndex={-1}`, so it's neither a tab stop nor a second thing for a screen reader to read. The\n item's `aria-checked` is what a screen reader hears.\n- **Disabled items** are `aria-disabled` and stay reachable from the arrow keys, Home, End and\n typing, so a screen reader user finds them. They're never selected, checked, opened or closed.\n One that's already open stays open, so what's under it is still reachable. In a `single` tree a\n disabled item has no `aria-selected`. In either checkbox tree it keeps `aria-checked`, so the\n state its box shows is heard as well as seen, such as \"checked, disabled\".\n- **A loading item's row** is a `treeitem` that says Loading…, marked `aria-disabled` and reached\n the way a disabled item is, so a screen reader user who moves into the folder hears what's\n happening. It has no value: it's never selected or checked, it has no `aria-selected` or\n `aria-checked`, and a checkbox tree doesn't count it. If it goes with focus on it, focus moves to\n the item it was loading for. Bulma's loader turns in its chevron's place, hidden from assistive\n tech.\n- **A failed load's row** is a `treeitem` named by its message and the Retry button's text, such\n as \"Couldn't load src Retry\". Enter, Space or a click on the row calls `onRetry`, in every mode,\n Space unless it joins a type-ahead search.\n The button is drawn inside an `aria-hidden` span and takes no focus, the way an item's box is,\n so the tree keeps its one tab stop, and nothing in the message should be a link or a button\n either. A retry that starts loading keeps the same row, so focus stays on it. With no `onRetry`,\n the row is disabled and shows the message alone.\n- **Announcements:** a visually hidden `role=\"status\"` region with `aria-live=\"polite\"` sits right\n after the tree, one for the whole tree, from the moment it mounts, so a screen reader is already\n listening when something is written into it. It says \"Loading src\" when an open item starts\n loading, a failed load's message, and \"src loaded\" when the loading row or a failed load's row\n goes with the item still open.\n The name is the item's label as a screen reader reads it. A closed item, or one in a closed\n branch, says nothing. Each announcement is written a moment after the change and cleared soon\n after, so the page doesn't keep a second copy of the text. A selection or a check isn't written\n there: it changes `aria-selected` or `aria-checked` on the focused item, which a screen reader\n reads out again, as the simulated one below does.\n\nEnter and Space do the item's one thing, which depends on the mode:\n\n| Key | No `selectionMode` | `single` | `checkbox` and `checkbox-independent` |\n| ----- | ------------------------ | ---------------- | ------------------------------------- |\n| Enter | Opens or closes a parent | Selects the item | Opens or closes a parent |\n| Space | Opens or closes a parent | Selects the item | Checks or unchecks it |\n\nOn a failed load's row, both retry, whatever the mode. Space typed during a type-ahead search\njoins it instead when an item starts with what's been typed and a space, so \"new y\" reaches \"New\nYork\", and an arrow, Home or End ends the search. The rest work the same in every mode:\n\n| Key | What it does |\n| ---------- | ----------------------------------------------------------------------------------------- |\n| Down, Up | The next or previous item on the page, without wrapping |\n| Right | Opens a closed parent, and focus stays. On an open parent, moves to its first child |\n| Left | Closes an open parent. Otherwise moves to its parent |\n| Home, End | The first item, and the last one on the page |\n| `*` | Opens every closed parent beside the focused item, itself included. Focus stays |\n| Characters | Moves to the next item whose label starts with what's typed, several characters adding up |\n| Tab | Leaves the tree |\n\n- **Right to left:** Right and Left swap in a right-to-left page, and the chevron points to the\n left while closed.\n- **Keys it leaves alone:** anything with Control, Alt or Meta held, anything while an input method\n is composing, and Escape, so it reaches a Modal or Popover around the tree. An item's own\n `onKeyDown` runs first, and calling `preventDefault()` there keeps the tree from acting on the\n key.\n- **Clicks:** the chevron only opens and closes. The rest of the row does the item's one thing:\n opens or closes it with no `selectionMode`, selects it (and opens or closes a parent) in a\n `single` tree, and checks or unchecks it in either checkbox tree. A click moves focus and the tab\n stop to the item.\n- **Not for site navigation:** APG's own\n [navigation tree example](https://www.w3.org/WAI/ARIA/apg/patterns/treeview/examples/treeview-navigation/)\n says \"A pattern more suited for typical site navigation with expandable groups of links is the\n disclosure pattern\", and a tree's items aren't links. Keep a sidebar on [`Menu`](https://bestax.io/docs/api/components/menu),\n whose `Menu.Section` is that disclosure pattern.\n- **Focus and the selected look differ:** the focus ring sits outside the row, so it shows on the\n selected fill as well as on a plain row.\n- **Forced colors:** in Windows high contrast mode the selected row is the system's Highlight and\n HighlightText, a disabled row or a loading one is GrayText, and the focus ring, the chevrons and\n the guide lines stay visible, since they're outlines and borders. A mixed box keeps its dash, and\n the loader's ring stays open.\n- **Motion:** the chevron turns with a short transition, and the loader spins. Both stop when the\n reader asks for reduced motion, and the loader stays drawn.\n\n**What a screen reader says.** What follows is simulated, with\n[Guidepup's Virtual Screen Reader](https://www.guidepup.dev/docs/virtual) 0.33.0, which reads the\naccessibility tree the way the ARIA and HTML specs describe. It isn't a recording of NVDA, JAWS\nor VoiceOver, and each of those words things its own way. The library's tests press these keys\nthrough it on the FileBrowser, Permissions, DeepTree and Categories stories, and fail if what it\nsays changes.\n\n1. **Onto a closed parent, then Right and Left:** \"treeitem, helpers, not expanded, level 2,\n position 2, not selected, set size 3\". Right reads it again as \"expanded\" and Left as \"not\n expanded\", with focus staying on it. The items that appear are read when focus reaches them.\n2. **Enter and Space with no `selectionMode`:** each press on a parent reads it again with its new\n state, \"treeitem, src, not expanded, level 1, position 1, set size 4\", then \"expanded\". A tree\n with no selection says nothing about one.\n3. **A level deeper and back up:** Right from components reads its first child, \"treeitem,\n Button.tsx, level 3, position 1, not selected, set size 3\", and Left goes back to \"treeitem,\n components, expanded, level 2, position 1, not selected, set size 3\".\n4. **Enter in a `single` tree:** the item is read again, \"treeitem, TreeView.tsx, level 3, position\n 3, selected, set size 3\". The item that lost the selection says \"not selected\" when focus gets\n back to it.\n5. **Space in a `checkbox` tree:** the item is read again as \"checked\". Its parent turns mixed\n without a word, and Left to it reads \"treeitem, Billing, partially checked, expanded, level 1,\n position 2, set size 2\". Space on the parent reads \"checked\", and so does each item under it as\n focus reaches it.\n6. **A disabled item:** in a `single` tree, \"treeitem, legacy.ts, disabled, level 2, position 3, set\n size 3\", with no selection state. In a `checkbox` tree, \"treeitem, Delete, not checked,\n disabled, level 4, position 3, set size 3\", or \"checked, disabled\" for one its own value checks.\n Enter and Space on it change nothing and say nothing.\n7. **Positions:** each item says its place among the items beside it, such as \"position 2\" and \"set\n size 3\", at every level.\n8. **Tab in and back out, with an item selected:** Tab lands on the selected item, \"treeitem,\n Card.tsx, level 3, position 2, selected, set size 3\", and Tab again leaves the tree for the next\n control. Shift+Tab comes back to Card.tsx, wherever focus was in the tree before.\n9. **Space in a `checkbox-independent` tree:** the item is read again as \"checked\", and nothing\n else changes. With both items under it checked, Left to Shoes still reads \"treeitem, Shoes, not\n checked, expanded, level 2, position 1, set size 2\". Space on Shoes reads \"checked\", and\n unchecking Running under it leaves Shoes \"checked\" when focus gets back to it, where a\n `checkbox` tree would read \"partially checked\". No item in this mode is ever partially checked.\n\nStill open in [#1171](https://github.com/allxsmith/bestax/issues/1171): recordings with NVDA, JAWS\nand VoiceOver on macOS and iOS, a real Windows contrast theme in place of Chromium's forced colors\nemulation, and runs in Firefox and Safari.",
|
|
50
50
|
"related": [
|
|
51
51
|
"Cascader",
|
|
52
52
|
"Checkbox",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"name": "selectionMode",
|
|
82
82
|
"type": "'none' | 'single' | 'checkbox' | 'checkbox-independent'",
|
|
83
83
|
"default": "'none'",
|
|
84
|
-
"description": "`none`: nothing is picked, and Enter and Space open and close a parent. `single`: one item, picked with Enter, Space or a click. `checkbox`: any number, checked with Space or a click. A check reaches every enabled item under it, and a parent with some of them checked is mixed. `checkbox-independent`: any number, checked with Space or a click, each box for its own item. A check reaches nothing under it, and no parent is mixed (Mantine's and Ant Design's `checkStrictly`).",
|
|
84
|
+
"description": "`none`: nothing is picked, and Enter and Space open and close a parent. `single`: one item, picked with Enter, Space or a click. `checkbox`: any number, checked with Space or a click. A check reaches every enabled item under it, and a parent with some of them checked is mixed. `checkbox-independent`: any number, checked with Space or a click, each box for its own item. A check reaches nothing under it, and no parent is mixed (Mantine's and Ant Design's `checkStrictly`). In any mode, a Space typed during a type-ahead search joins it instead when an item starts with what's been typed and a space, so \"new y\" reaches \"New York\".",
|
|
85
85
|
"required": false,
|
|
86
86
|
"inherited": false,
|
|
87
87
|
"deprecated": false
|
|
@@ -326,7 +326,7 @@
|
|
|
326
326
|
"name": "onRetry",
|
|
327
327
|
"type": "() => void",
|
|
328
328
|
"default": null,
|
|
329
|
-
"description": "Called by the Retry button on a failed load's row, and by Enter or Space there. Set `isLoading` while the retry runs, so the live region says it's loading, and reads the message out again if it fails again. The same message passed a second time with no loading between is no change the tree can see.",
|
|
329
|
+
"description": "Called by the Retry button on a failed load's row, and by Enter or Space there, Space unless it joins a type-ahead search. Set `isLoading` while the retry runs, so the live region says it's loading, and reads the message out again if it fails again. The same message passed a second time with no loading between is no change the tree can see.",
|
|
330
330
|
"required": false,
|
|
331
331
|
"inherited": false,
|
|
332
332
|
"deprecated": false
|
|
@@ -49,8 +49,8 @@ export interface MyComponentProps
|
|
|
49
49
|
extends
|
|
50
50
|
Omit<React.HTMLAttributes<HTMLDivElement>, 'color'>,
|
|
51
51
|
Omit<BulmaClassesProps, 'color'> {
|
|
52
|
-
color?: MyComponentColor;
|
|
53
|
-
size?: 'small' | 'medium' | 'large'; // element size union — never the spacing 'validSizes' constant ('0'…'6'|'auto')
|
|
52
|
+
color?: MyComponentColor | undefined; // an HTML attribute's name, so it takes undefined as React's does
|
|
53
|
+
size?: 'small' | 'medium' | 'large' | undefined; // element size union — never the spacing 'validSizes' constant ('0'…'6'|'auto')
|
|
54
54
|
isActive?: boolean;
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -150,8 +150,9 @@ Notes:
|
|
|
150
150
|
ButtonText in forced colors, where Chromium paints them in the page's Canvas color, keeps a
|
|
151
151
|
`fixed` navbar in place while an overlay locks the page's scrolling, gives an active item's
|
|
152
152
|
text the invert of the link color it sits on, where Bulma's leaves it in the navbar's text
|
|
153
|
-
color,
|
|
154
|
-
color
|
|
153
|
+
color, draws a navbar in a colored `Hero` in the hero's colors, where Bulma's draws its active item and burger in the link
|
|
154
|
+
color, and, in a build with a class prefix, draws a dropdown's active link row, other than a tab, as it draws without one,
|
|
155
|
+
where Bulma's draws it as a plain row), so an app using `Navbar` needs both, in either order. `AppFrame.Burger` renders `Navbar.Burger`, so a build with one
|
|
155
156
|
wants this partial too:
|
|
156
157
|
|
|
157
158
|
```scss
|
|
@@ -1120,8 +1120,8 @@ sets that change's color to the color's `-on-scheme` variable directly, so
|
|
|
1120
1120
|
### Steps
|
|
1121
1121
|
|
|
1122
1122
|
`--bulma-steps-animation-duration`, `--bulma-steps-content-margin-top`,
|
|
1123
|
-
`--bulma-steps-default-color`, `--bulma-steps-divider-height`, `--bulma-steps-
|
|
1124
|
-
`--bulma-steps-marker-font-size`, `--bulma-steps-marker-font-weight`,
|
|
1123
|
+
`--bulma-steps-default-color`, `--bulma-steps-divider-height`, `--bulma-steps-label-background`,
|
|
1124
|
+
`--bulma-steps-marker-background`, `--bulma-steps-marker-font-size`, `--bulma-steps-marker-font-weight`,
|
|
1125
1125
|
`--bulma-steps-marker-size`, `--bulma-steps-marker-size-large`,
|
|
1126
1126
|
`--bulma-steps-marker-size-medium`, `--bulma-steps-marker-size-small`,
|
|
1127
1127
|
`--bulma-steps-navigation-margin-top`, `--bulma-steps-title-active-color`,
|
|
@@ -1129,6 +1129,15 @@ sets that change's color to the color's `-on-scheme` variable directly, so
|
|
|
1129
1129
|
`--bulma-steps-title-weight`, `--bulma-steps-vertical-content-margin-left`,
|
|
1130
1130
|
`--bulma-steps-vertical-padding`
|
|
1131
1131
|
|
|
1132
|
+
`--bulma-steps-label-background` is the patch behind a side label, which hides the line under it.
|
|
1133
|
+
It's the page's color on its own, apart from the marker background.
|
|
1134
|
+
|
|
1135
|
+
On a colored `Notification` or `Hero`, steps set the title colors and
|
|
1136
|
+
`--bulma-steps-label-background` from the surface, and steps with no color set
|
|
1137
|
+
`--bulma-steps-default-color` and `--bulma-steps-marker-background` from it too, unless they're on a Box, a Card, a Message or a Modal there, or in a Notification inside the
|
|
1138
|
+
Hero. To retheme them there, set these on the steps themselves, through their `style`
|
|
1139
|
+
or a class loaded after bestax's stylesheet, or give them a `color`.
|
|
1140
|
+
|
|
1132
1141
|
### Switch
|
|
1133
1142
|
|
|
1134
1143
|
`--bulma-switch-active-color`, `--bulma-switch-background`, `--bulma-switch-border-width`,
|
|
@@ -1202,9 +1211,12 @@ scales them all.
|
|
|
1202
1211
|
`--bulma-timeline-time-color`, `--bulma-timeline-time-size`, `--bulma-timeline-title-color`,
|
|
1203
1212
|
`--bulma-timeline-title-weight`
|
|
1204
1213
|
|
|
1205
|
-
In a colored `Notification`, a timeline with no color sets its neutral, active and icon
|
|
1206
|
-
the
|
|
1207
|
-
background,
|
|
1214
|
+
In a colored `Notification` or `Hero`, a timeline with no color sets its neutral, active and icon
|
|
1215
|
+
colors to the surface's text color and its marker and icon backgrounds to the surface's
|
|
1216
|
+
background, and in a colored Hero any timeline sets its title and time colors to the Hero's text
|
|
1217
|
+
color, unless it's on a Box, a Card, a Message or a Modal there, or in a
|
|
1218
|
+
Notification inside the
|
|
1219
|
+
Hero. To retheme one there, set these on the timeline
|
|
1208
1220
|
itself, through its `style` or a class loaded after bestax's stylesheet, or give it a `color`.
|
|
1209
1221
|
|
|
1210
1222
|
### Toast
|
|
@@ -114,7 +114,7 @@ Shades (`colorShade` / `backgroundColorShade`): `00, 05, 10, … 95, invert, lig
|
|
|
114
114
|
| `Taginput` | `primary \| link \| info \| success \| warning \| danger` | `small \| medium \| large` | also `tagColor` (the 6 + `dark \| light`) for the tags |
|
|
115
115
|
| `TextArea` | `primary \| link \| info \| success \| warning \| danger \| black \| dark \| light \| white` | `small \| medium \| large` | — |
|
|
116
116
|
| `TimeInput` | `primary \| link \| info \| success \| warning \| danger` | `small \| medium \| large` | — |
|
|
117
|
-
| `Timeline` | `primary \| link \| info \| success \| warning \| danger` (the markers and the progress, never the text) | no `size` (sized in `em`; size it with `textSize`) | `Timeline.Item` takes `color` too, over the root's; with no `color`, neutral and progress in `link`, or
|
|
117
|
+
| `Timeline` | `primary \| link \| info \| success \| warning \| danger` (the markers and the progress, never the text) | no `size` (sized in `em`; size it with `textSize`) | `Timeline.Item` takes `color` too, over the root's; with no `color`, neutral and progress in `link`, or on a colored Notification or Hero its text color; retheme through `--bulma-timeline-*` |
|
|
118
118
|
| `ToggleButton` | `primary \| link \| info \| success \| warning \| danger` | `small \| normal \| medium \| large` | fills only while pressed (default `link`); **no `isLight`/`isOutlined`/`isInverted`/`textColor`/`bgColor`** |
|
|
119
119
|
| `Tooltip` | `primary \| link \| info \| success \| warning \| danger \| dark \| light` | `small \| medium \| large` | — |
|
|
120
120
|
| `Tour` | — (no `color`: the step is Popover's surface; retheme through `--bulma-tour-*`) | — | the overlay is an SVG fill, so it keeps dimming in forced colors; Next is a primary `Button`; beacons take `--bulma-tour-beacon-color` (primary) |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bestax-mcp",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.62",
|
|
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.73.
|
|
45
|
+
"@allxsmith/bestax-bulma": "^5.73.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/node": "^26.6.6",
|