bestax-mcp 1.18.85 → 1.18.87

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 CHANGED
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 2,
3
3
  "generatedFrom": {
4
4
  "package": "@allxsmith/bestax-bulma",
5
- "version": "5.78.7"
5
+ "version": "5.78.9"
6
6
  },
7
7
  "docsBase": "https://bestax.io/docs",
8
8
  "categories": [
@@ -66,7 +66,7 @@
66
66
  "code": "<DataTable\n caption=\"Mitglieder\"\n columns={[{ id: 'name', header: 'Name', sortable: true, isRowHeader: true }]}\n data={[\n { id: 'm1', name: 'Emmy Noether' },\n { id: 'm2', name: 'Lise Meitner' },\n { id: 'm3', name: 'Konrad Zuse' },\n ]}\n selectionMode=\"multiple\"\n hasSearch\n pageSize={2}\n isFullwidth\n labels={{\n selectAll: 'Alle Zeilen dieser Seite auswählen',\n selectRow: label => `${label} auswählen`,\n sortHint: 'Spaltenköpfe mit Schaltflächen sind sortierbar',\n search: 'Suchen',\n results: count => (count === 1 ? '1 Treffer' : `${count} Treffer`),\n pageRange: (first, last, total) => `${first} bis ${last} von ${total}`,\n loading: 'Wird geladen',\n pagination: 'Mitglieder, Seiten',\n empty: 'Noch keine Mitglieder.',\n noResults: 'Keine Treffer.',\n }}\n/>"
67
67
  }
68
68
  ],
69
- "accessibility": "- **A native table,** as in the ARIA Authoring Practices' Sortable Table example: `th scope=\"col\"`\n headers, `th scope=\"row\"` for the row header, and a `caption` or your `aria-label` or\n `aria-labelledby` as its name. A development build warns when it has none.\n- **Sorting:** a sortable header holds a `<button>` with the header's text, and only the sorted\n header has `aria-sort`, `ascending` or `descending`, which screen readers read out as they reach\n it. That headers with buttons sort is said once, hidden at the end of the caption, or as a hidden\n caption of its own when `aria-label` names the table. The indicator is drawn in CSS, so it's not\n read.\n- **Selection** rides on the checkboxes: each is named \"Select\" and the row's label, and the one in\n the header is mixed (`aria-checked=\"mixed\"`) when some of the page is selected. Rows get Bulma's\n selected look and no `aria-selected`, which ARIA gives the rows of a grid rather than a table.\n- **A status message** in a polite live region says how many rows match a short while after the\n search or a filter changes, the range shown after a page change, and \"Loading\" while `loading` is\n on after one of those. Nothing is said as the page loads, or for a sort, which `aria-sort` covers.\n- **The pager** is a `navigation` named after the table, so two tables on a page have two named\n pagers.\n- **Busy:** `aria-busy` is on the table while `loading`, and the skeleton rows are hidden from\n assistive tech.\n- **Wide tables:** with `isResponsive`, the `ScrollArea` around the table is a tab stop and a\n named region while it overflows, so it can be scrolled from the keyboard.\n- **Forced colors:** the sort indicator is painted in the system's button text color, and the sort\n button's focus ring is an outline. A selected row's fill is a color forced colors takes away, so\n there a double line in the system's highlight color marks the row, as it marks a selected `Table`\n row, and its checked checkbox carries the selection too. The pager's current page is drawn in the\n system's highlight colors, and its Previous or Next at an end in the system's color for a\n disabled control, at full strength, as [Pagination](https://bestax.io/docs/api/components/pagination)'s are.\n- **No motion:** nothing animates but the skeleton, which stops under reduced motion.",
69
+ "accessibility": "- **A native table,** as in the ARIA Authoring Practices' Sortable Table example: `th scope=\"col\"`\n headers, `th scope=\"row\"` for the row header, and a `caption` or your `aria-label` or\n `aria-labelledby` as its name. A development build warns when it has none.\n- **Sorting:** a sortable header holds a `<button>` with the header's text, and only the sorted\n header has `aria-sort`, `ascending` or `descending`, which screen readers read out as they reach\n it. That headers with buttons sort is said once, hidden at the end of the caption, or as a hidden\n caption of its own when `aria-label` names the table. The indicator is drawn in CSS, so it's not\n read.\n- **Selection** rides on the checkboxes: each is named \"Select\" and the row's label, and the one in\n the header is mixed (`aria-checked=\"mixed\"`) when some of the page is selected. Rows get Bulma's\n selected look and no `aria-selected`, which ARIA gives the rows of a grid rather than a table.\n- **A status message** in a polite live region says how many rows match a short while after the\n search or a filter changes, the range shown after a page change, and \"Loading\" while `loading` is\n on after one of those. Nothing is said as the page loads, or for a sort, which `aria-sort` covers.\n- **The pager** is a `navigation` named after the table, so two tables on a page have two named\n pagers.\n- **Busy:** `aria-busy` is on the table while `loading`, and the skeleton rows are hidden from\n assistive tech.\n- **Wide tables:** with `isResponsive`, the `ScrollArea` around the table is a tab stop and a\n named region while it overflows, so it can be scrolled from the keyboard. It's off unless you set\n it, and without it the table has no scroll box of its own. With Bulma's default `overflow-x: hidden` on the\n page, a table wider than a narrow screen then has its last columns cut off: a pointer can't scroll\n to them, and keyboard focus moving into one can scroll the page sideways, where a pointer can't\n scroll it back. WCAG's Reflow criterion (1.4.10) allows a data table to scroll sideways, so set\n `isResponsive` on a table that can outgrow a phone's width.\n- **Forced colors:** the sort indicator is painted in the system's button text color, and the sort\n button's focus ring is an outline. A selected row's fill is a color forced colors takes away, so\n there a double line in the system's highlight color marks the row, as it marks a selected `Table`\n row, and its checked checkbox carries the selection too. The pager's current page is drawn in the\n system's highlight colors, and its Previous or Next at an end in the system's color for a\n disabled control, at full strength, as [Pagination](https://bestax.io/docs/api/components/pagination)'s are.\n- **No motion:** nothing animates but the skeleton, which stops under reduced motion.",
70
70
  "related": [
71
71
  "Checkbox",
72
72
  "EmptyState",
@@ -172,7 +172,7 @@
172
172
  "name": "isResponsive",
173
173
  "type": "boolean",
174
174
  "default": "false",
175
- "description": "Scrolls a table wider than its wrapper sideways, in a `ScrollArea` named after the table, which can be scrolled from the keyboard while it overflows.",
175
+ "description": "Scrolls a table wider than its wrapper sideways, in a `ScrollArea` named after the table, which can be scrolled from the keyboard while it overflows. Off unless set, and without it the table has no scroll box of its own, so one wider than its wrapper overflows it, and Bulma's default `overflow-x: hidden` on the page cuts off what runs past a narrow screen.",
176
176
  "required": false,
177
177
  "inherited": false,
178
178
  "deprecated": false
@@ -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, 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.",
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: without one, a Material ligature's text or an SVG inside it can name it, or the control around it, and a development build warns. 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, so give it a name. For Ionicons the `<ion-icon>` inside is always `aria-hidden`, so it adds no image 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: without one, a Material ligature's text or an SVG inside it can name it, or the control around it, and a development build warns. 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, so give it a name. For Ionicons the `<ion-icon>` inside is always `aria-hidden`, so it adds no image 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: without one, a Material ligature's text or an SVG inside it can name it, or the control around it, and a development build warns. 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
@@ -49,7 +49,7 @@
49
49
  "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
50
50
  }
51
51
  ],
52
- "accessibility": "- **Alt Text:** Always provide a descriptive `alt` attribute for images.\n- **Aspect Ratios:** Maintains the correct aspect ratio for images, iframes, or any child.\n- **Custom Content:** When embedding iframes or custom children, ensure accessibility via proper ARIA labeling or content.\n\n:::warning\nDo not use `Image` for decorative images without `alt=\"\"`, unless purely presentational.\n:::",
52
+ "accessibility": "- **Alt Text:** Give each image an `alt` that says what it shows, or `alt=\"\"` for a decorative one, which a screen reader then skips. A development build warns about an `<img>` with no `alt`.\n- **Aspect Ratios:** Maintains the correct aspect ratio for images, iframes, or any child.\n- **Custom Content:** When embedding iframes or custom children, ensure accessibility via proper ARIA labeling or content.\n\n:::warning\nDo not use `Image` for decorative images without `alt=\"\"`, unless purely presentational.\n:::",
53
53
  "related": ["Box", "Card", "Content", "useBulmaClasses"],
54
54
  "storybook": "https://bestax.io/storybook/?path=/story/elements-image--default",
55
55
  "summary": "The `Image` component wraps images, iframes, or custom content in a Bulma-styled container, supporting fixed sizes, aspect ratios, rounded corners, retina images, and Bulma helper props for color and spacing.",
@@ -140,7 +140,7 @@
140
140
  "name": "alt",
141
141
  "type": "string",
142
142
  "default": null,
143
- "description": "Alternate text for the image.",
143
+ "description": "Alternate text for the image: what it shows, for a reader who can't see it. Pass `alt=\"\"` for a decorative image, which a screen reader then skips. Left unset, the `<img>` has no alt, and a development build warns.",
144
144
  "required": false,
145
145
  "inherited": false,
146
146
  "deprecated": false
@@ -46,7 +46,7 @@
46
46
  "code": "function example() {\n const [open, setOpen] = useState(false);\n const closeModal = () => setOpen(false);\n\n return (\n <>\n <Button color=\"success\" onClick={() => setOpen(true)}>\n Show Modal\n </Button>\n <Modal\n isActive={open}\n onClose={closeModal}\n aria-labelledby=\"custom-content-title\"\n >\n <Modal.Background onClick={closeModal} />\n <Modal.Content>\n <Box>\n <Title size=\"4\" id=\"custom-content-title\">\n Custom Content\n </Title>\n <Paragraph>Using compound components for full control!</Paragraph>\n </Box>\n </Modal.Content>\n <Modal.Close variant=\"floating\" />\n </Modal>\n </>\n );\n}"
47
47
  }
48
48
  ],
49
- "accessibility": "- The modal root gets `role=\"dialog\"` and `aria-modal=\"true\"` while active — pass an explicit `role` to override (e.g. `Dialog` passes `role=\"presentation\"` on the `Modal` it wraps so its own `role=\"alertdialog\"` is the only one announced).\n- **Give the dialog an accessible name.** With the legacy API, `modalCardTitle` is wired up as `aria-labelledby` for you, and with `type=\"content\"`, which shows no card head, a title that's a string names the dialog as its `aria-label`. Without one, and with the compound API, pass your own `aria-label` or `aria-labelledby` on `<Modal>` — a `role=\"dialog\"` with no name is announced as just \"dialog\". An explicit `aria-labelledby` always wins over the generated one.\n- Escape closes the modal (calls `onClose`) by default; opt out with `closeOnEscape={false}`. One Escape closes the topmost overlay only, whichever open Modal, [Dialog](https://bestax.io/docs/api/components/dialog), [Sidebar](https://bestax.io/docs/api/components/sidebar) or full-page [Loading](https://bestax.io/docs/api/components/loading) opened last, and the next Escape closes the one under it. A modal on top with `closeOnEscape={false}` still keeps Escape from the layers under it. A [Toast](https://bestax.io/docs/api/components/toast) waits until no overlay is open.\n- The modal calls `preventDefault()` on the Escape it closes on, so a listener of your own that runs after it can tell the key was used.\n- A popup inside the modal takes its own Escape first. With an Autocomplete list, a Dropdown menu, a Popover or a date picker's calendar open, the first Escape closes that and the next one closes the modal.\n- A popup of your own inside a modal should call `preventDefault()` on the Escape it closes on. The modal leaves an Escape that was prevented alone, whether your popup hears it in a React `onKeyDown` or in a listener on `document`. Call it only when the popup is open and the key was pressed in it, so an Escape with nothing to close still closes the modal, and so does one pressed in a modal opened over your popup.\n- The page doesn't scroll under the modal while it's active; opt out with `lockScroll={false}`. The lock is ref-counted and shared with `Dialog`, `Sidebar` and `Loading`, so whichever overlay closes first doesn't unlock the page underneath one that is still open.\n- Focus moves to the first tab stop (or the modal itself) on open, and is restored to the previously focused element on close — unless another modal is still open on top, in which case that one keeps focus.\n- A popup opened inside the modal, such as a `Popover`, `HoverCard` or `ContextMenu` panel, or a `Combobox` menu or picker popover with `appendToBody`, is portaled into the modal's root rather than to the end of `<body>`, so a screen reader that honors `aria-modal` reaches it, and it's inside the Tab cycle below. A `portalContainer` a [`ConfigProvider`](https://bestax.io/docs/api/helpers/config#where-portaled-content-goes) sets still takes it. A [Lightbox](https://bestax.io/docs/api/components/lightbox) is a Modal, so the same goes for it.\n- Tab and Shift+Tab cycle within the modal while it is the topmost modal overlay, so the keyboard order agrees with what `aria-modal=\"true\"` tells assistive technology. They wrap at the same tab stops [`useFocusTrap`](https://bestax.io/docs/api/helpers/usefocustrap) does, so disabled, hidden and `tabIndex={-1}` elements are skipped, and so is inert content, such as a closed [Sidebar](https://bestax.io/docs/api/components/sidebar) inside the modal, and the content of a closed `<details>`. A radio group counts once. A Tab from outside the modal brings focus back in, and so does a Tab the browser takes out anyway, as Safari does past links when its settings say to. With another Modal or Dialog, a [Sidebar](https://bestax.io/docs/api/components/sidebar) with an overlay or a full-page Loading opened over it, the modal leaves Tab alone until that one closes. A Sidebar without an overlay isn't modal: opened over the modal, it takes Escape first, but the modal keeps holding Tab and keeps focus, so the sidebar doesn't take focus when it opens, and a Tab from its controls comes back into the modal. A focus trap of your own inside it, such as a portaled panel's, keeps a Tab it calls `preventDefault()` on, and the modal leaves focus where your trap put it. Note that `aria-modal` does not by itself make background content inert, and no `inert` attribute is applied, so background content remains reachable by pointer and by browser UI such as find-in-page.\n- In the props form, the background closes the modal on click, and a close button is provided for both modal-card and modal-content variants (both call `onClose`, so pass it). The close button is named \"close\" unless `ariaCloseLabel` names it. It's drawn as an icon, so its name is all a screen reader says about it: in an app in another language, give it one in the page's language. An `aria-label` on `Modal` names the dialog, not the button, and a `Modal.Close` in the compound form takes an `aria-label` of its own.\n- In the compound form, `Modal.Close` calls the modal's `onClose` unless you give it an `onClick` of your own, and `Modal.Background` closes the modal only when you pass it `onClick={onClose}`.\n- A modal card's head and foot are a `<header>` and a `<footer>`. Outside `<main>`, `<article>`, `<aside>`, `<nav>` or `<section>`, a browser exposes those as the page's banner and content info landmarks. So when `portal` renders a modal card at the end of `<body>`, its head and foot are landmarks inside its dialog, and a screen reader user moving through the page by landmark is offered its title bar as the page's banner. Any of these avoids them:\n - Render the modal inline inside the page's `<main>`, or point `portal` at an element inside it that doesn't clip the modal.\n - In the compound form, pass `role=\"none\"` to `Modal.Card.Head` and `Modal.Card.Foot`, which drops them wherever the modal is. A browser ignores that role on an element with an `aria-label` or other global ARIA attribute, or a `tabIndex`, so give them none of those. The compound form leaves the dialog's name to you: point an `aria-labelledby` on `<Modal>` at the `Modal.Card.Title`.\n\n The props form's head and foot, from `modalCardTitle` and `modalCardFoot`, can't take a role.\n\n- In forced colors (Windows' contrast themes), which repaint the card's backgrounds and the backdrop's, a modal card keeps a one pixel edge in the system's text color, from bestax's `components/modal` partial, which `bestax.css` includes.\n\n:::note\nAlways provide an `onClose` handler for accessibility and to allow users to dismiss the modal.\n:::",
49
+ "accessibility": "- The modal root gets `role=\"dialog\"` and `aria-modal=\"true\"` while active — pass an explicit `role` to override (e.g. `Dialog` passes `role=\"presentation\"` on the `Modal` it wraps so its own `role=\"alertdialog\"` is the only one announced).\n- **Give the dialog an accessible name.** With the legacy API, `modalCardTitle` is wired up as `aria-labelledby` for you, and with `type=\"content\"`, which shows no card head, a title that's a string names the dialog as its `aria-label`. Without one, and with the compound API, pass your own `aria-label` or `aria-labelledby` on `<Modal>` — a `role=\"dialog\"` with no name is announced as just \"dialog\". An explicit `aria-labelledby` always wins over the generated one. A development build warns about an open modal nothing names.\n- Escape closes the modal (calls `onClose`) by default; opt out with `closeOnEscape={false}`. One Escape closes the topmost overlay only, whichever open Modal, [Dialog](https://bestax.io/docs/api/components/dialog), [Sidebar](https://bestax.io/docs/api/components/sidebar) or full-page [Loading](https://bestax.io/docs/api/components/loading) opened last, and the next Escape closes the one under it. A modal on top with `closeOnEscape={false}` still keeps Escape from the layers under it. A [Toast](https://bestax.io/docs/api/components/toast) waits until no overlay is open.\n- The modal calls `preventDefault()` on the Escape it closes on, so a listener of your own that runs after it can tell the key was used.\n- A popup inside the modal takes its own Escape first. With an Autocomplete list, a Dropdown menu, a Popover or a date picker's calendar open, the first Escape closes that and the next one closes the modal.\n- A popup of your own inside a modal should call `preventDefault()` on the Escape it closes on. The modal leaves an Escape that was prevented alone, whether your popup hears it in a React `onKeyDown` or in a listener on `document`. Call it only when the popup is open and the key was pressed in it, so an Escape with nothing to close still closes the modal, and so does one pressed in a modal opened over your popup.\n- The page doesn't scroll under the modal while it's active; opt out with `lockScroll={false}`. The lock is ref-counted and shared with `Dialog`, `Sidebar` and `Loading`, so whichever overlay closes first doesn't unlock the page underneath one that is still open.\n- Focus moves to the first tab stop (or the modal itself) on open, and is restored to the previously focused element on close — unless another modal is still open on top, in which case that one keeps focus.\n- A popup opened inside the modal, such as a `Popover`, `HoverCard` or `ContextMenu` panel, or a `Combobox` menu or picker popover with `appendToBody`, is portaled into the modal's root rather than to the end of `<body>`, so a screen reader that honors `aria-modal` reaches it, and it's inside the Tab cycle below. A `portalContainer` a [`ConfigProvider`](https://bestax.io/docs/api/helpers/config#where-portaled-content-goes) sets still takes it. A [Lightbox](https://bestax.io/docs/api/components/lightbox) is a Modal, so the same goes for it.\n- Tab and Shift+Tab cycle within the modal while it is the topmost modal overlay, so the keyboard order agrees with what `aria-modal=\"true\"` tells assistive technology. They wrap at the same tab stops [`useFocusTrap`](https://bestax.io/docs/api/helpers/usefocustrap) does, so disabled, hidden and `tabIndex={-1}` elements are skipped, and so is inert content, such as a closed [Sidebar](https://bestax.io/docs/api/components/sidebar) inside the modal, and the content of a closed `<details>`. A radio group counts once. A Tab from outside the modal brings focus back in, and so does a Tab the browser takes out anyway, as Safari does past links when its settings say to. With another Modal or Dialog, a [Sidebar](https://bestax.io/docs/api/components/sidebar) with an overlay or a full-page Loading opened over it, the modal leaves Tab alone until that one closes. A Sidebar without an overlay isn't modal: opened over the modal, it takes Escape first, but the modal keeps holding Tab and keeps focus, so the sidebar doesn't take focus when it opens, and a Tab from its controls comes back into the modal. A focus trap of your own inside it, such as a portaled panel's, keeps a Tab it calls `preventDefault()` on, and the modal leaves focus where your trap put it. Note that `aria-modal` does not by itself make background content inert, and no `inert` attribute is applied, so background content remains reachable by pointer and by browser UI such as find-in-page.\n- In the props form, the background closes the modal on click, and a close button is provided for both modal-card and modal-content variants (both call `onClose`, so pass it). The close button is named \"close\" unless `ariaCloseLabel` names it. It's drawn as an icon, so its name is all a screen reader says about it: in an app in another language, give it one in the page's language. An `aria-label` on `Modal` names the dialog, not the button, and a `Modal.Close` in the compound form takes an `aria-label` of its own.\n- In the compound form, `Modal.Close` calls the modal's `onClose` unless you give it an `onClick` of your own, and `Modal.Background` closes the modal only when you pass it `onClick={onClose}`.\n- A modal card's head and foot are a `<header>` and a `<footer>`. Outside `<main>`, `<article>`, `<aside>`, `<nav>` or `<section>`, a browser exposes those as the page's banner and content info landmarks. So when `portal` renders a modal card at the end of `<body>`, its head and foot are landmarks inside its dialog, and a screen reader user moving through the page by landmark is offered its title bar as the page's banner. Any of these avoids them:\n - Render the modal inline inside the page's `<main>`, or point `portal` at an element inside it that doesn't clip the modal.\n - In the compound form, pass `role=\"none\"` to `Modal.Card.Head` and `Modal.Card.Foot`, which drops them wherever the modal is. A browser ignores that role on an element with an `aria-label` or other global ARIA attribute, or a `tabIndex`, so give them none of those. The compound form leaves the dialog's name to you: point an `aria-labelledby` on `<Modal>` at the `Modal.Card.Title`.\n\n The props form's head and foot, from `modalCardTitle` and `modalCardFoot`, can't take a role.\n\n- In forced colors (Windows' contrast themes), which repaint the card's backgrounds and the backdrop's, a modal card keeps a one pixel edge in the system's text color, from bestax's `components/modal` partial, which `bestax.css` includes.\n\n:::note\nAlways provide an `onClose` handler for accessibility and to allow users to dismiss the modal.\n:::",
50
50
  "related": [
51
51
  "Button",
52
52
  "Dialog",
@@ -135,7 +135,7 @@
135
135
  "name": "modalCardTitle",
136
136
  "type": "React.ReactNode",
137
137
  "default": null,
138
- "description": "Title/header for modal-card variant, which names the dialog through `aria-labelledby`. With `type=\"content\"` it isn't shown, and a title that's a string still names the dialog, as its `aria-label`. Without one, give the modal an `aria-label`, or an `aria-labelledby` pointing at a heading inside it. It's drawn in the card's `<header>`, which is a banner landmark unless the modal sits inside `<main>` or a sectioning element, as it doesn't when `portal` renders it at the end of `<body>`. The props form can't give the header a role, so point `portal` at an element inside `<main>` that doesn't clip the modal, or use the compound form with `role=\"none\"` on `Modal.Card.Head`. (Legacy API only)",
138
+ "description": "Title/header for modal-card variant, which names the dialog through `aria-labelledby`. With `type=\"content\"` it isn't shown, and a title that's a string still names the dialog, as its `aria-label`. Without one, give the modal an `aria-label`, or an `aria-labelledby` pointing at a heading inside it: a development build warns about an open modal nothing names. It's drawn in the card's `<header>`, which is a banner landmark unless the modal sits inside `<main>` or a sectioning element, as it doesn't when `portal` renders it at the end of `<body>`. The props form can't give the header a role, so point `portal` at an element inside `<main>` that doesn't clip the modal, or use the compound form with `role=\"none\"` on `Modal.Card.Head`. (Legacy API only)",
139
139
  "required": false,
140
140
  "inherited": false,
141
141
  "deprecated": false
@@ -58,7 +58,7 @@
58
58
  "code": "function example() {\n return (\n <Field\n horizontal\n label=\"Quantity\"\n labelProps={{ htmlFor: 'quantity-field-control' }}\n >\n <Field.Body>\n <Field>\n <Control>\n <Numberinput\n id=\"quantity-field-control\"\n defaultValue={1}\n min={1}\n max={10}\n color=\"primary\"\n />\n </Control>\n </Field>\n </Field.Body>\n </Field>\n );\n}"
59
59
  }
60
60
  ],
61
- "accessibility": "- Uses native number input element\n- The `label` prop, or the label of a `Field` the Numberinput sits in, names its input. A `Field` with `hasAddons` or `grouped` holds several controls and names none, so wire that one with `labelProps={{ htmlFor }}` and a matching `id`.\n- Has `aria-valuenow`, `aria-valuemin`, and `aria-valuemax` attributes, with `aria-valuenow` left off while the field holds no number, or a number outside `min` and `max` that's still being typed\n- The increase and decrease buttons are named \"Increase value\" and \"Decrease value\", in both variants, and `labels` names them in the page's language\n- Arrow keys increment/decrement the value\n- With `editable={false}` the input is read-only, so nothing can be typed in, but the arrow keys and the buttons still change the value. A screen reader announces the field as read-only all the same, so say that the buttons set it in its label, or in its `message` where it renders one\n- While you edit, the field can be empty, hold a lone `-` on the way to a negative number, or hold a number outside `min` and `max` on the way to one inside them, such as the `2` of `25` when `min` is 10. `onChange` waits for a number in range. Enter or leaving the field clamps a number outside them and reports it, or puts the last value back when the field holds no number. From a number outside them, a step toward them lands on the nearer one and a step away does nothing, and with no number a step starts from the last value\n- The +/- buttons stay out of the Tab order, and a press on one leaves focus where it was, in the input when it had it, so the arrow keys keep working after a click and a button that disables at `min` or `max` doesn't take focus with it. A press on a button that's already disabled reaches nothing, as a press on any text does, so focus leaves the input then\n- Buttons are disabled at min/max boundaries, and while the field holds a number typed outside them, the one that would step further out is disabled\n- In forced colors (Windows' contrast themes), a disabled Numberinput isn't faded as a whole, and in the stepper variant those disabled buttons draw at full strength in the system's color for a disabled control.\n- The `message` describes the number input through `aria-describedby`, after any ids you pass there, so a screen reader reads it when the input takes focus.",
61
+ "accessibility": "- Uses native number input element\n- The `label` prop, or the label of a `Field` the Numberinput sits in, names its input. A `Field` with `hasAddons` or `grouped` holds several controls and names none, so wire that one with `labelProps={{ htmlFor }}` and a matching `id`.\n- A development build warns about a Numberinput with nothing to name it: no label of its own or a `Field`'s, no `<label>` of yours pointing at it, and no `aria-label`, `aria-labelledby`, `title` or `placeholder`. It looks once the Numberinput has mounted, so a label outside it counts. A plusminus `bare` Numberinput outside a `Field` renders no label, so its `label` doesn't name it.\n- Has `aria-valuenow`, `aria-valuemin`, and `aria-valuemax` attributes, with `aria-valuenow` left off while the field holds no number, or a number outside `min` and `max` that's still being typed\n- The increase and decrease buttons are named \"Increase value\" and \"Decrease value\", in both variants, and `labels` names them in the page's language\n- Arrow keys increment/decrement the value\n- With `editable={false}` the input is read-only, so nothing can be typed in, but the arrow keys and the buttons still change the value. A screen reader announces the field as read-only all the same, so say that the buttons set it in its label, or in its `message` where it renders one\n- While you edit, the field can be empty, hold a lone `-` on the way to a negative number, or hold a number outside `min` and `max` on the way to one inside them, such as the `2` of `25` when `min` is 10. `onChange` waits for a number in range. Enter or leaving the field clamps a number outside them and reports it, or puts the last value back when the field holds no number. From a number outside them, a step toward them lands on the nearer one and a step away does nothing, and with no number a step starts from the last value\n- The +/- buttons stay out of the Tab order, and a press on one leaves focus where it was, in the input when it had it, so the arrow keys keep working after a click and a button that disables at `min` or `max` doesn't take focus with it. A press on a button that's already disabled reaches nothing, as a press on any text does, so focus leaves the input then\n- Buttons are disabled at min/max boundaries, and while the field holds a number typed outside them, the one that would step further out is disabled\n- In forced colors (Windows' contrast themes), a disabled Numberinput isn't faded as a whole, and in the stepper variant those disabled buttons draw at full strength in the system's color for a disabled control.\n- The `message` describes the number input through `aria-describedby`, after any ids you pass there, so a screen reader reads it when the input takes focus.",
62
62
  "related": ["Input", "Slider"],
63
63
  "storybook": "https://bestax.io/storybook/?path=/story/form-numberinput",
64
64
  "summary": "The `Numberinput` component provides a number input with increment/decrement buttons.",
@@ -75,7 +75,7 @@
75
75
  "name": "label",
76
76
  "type": "React.ReactNode",
77
77
  "default": null,
78
- "description": "Field label. Automatically associated with the number input via `htmlFor` — uses your `id` when provided, otherwise a generated one. Dropped inside an outer `Field`, whose own label associates instead when that `Field` generates a target id (not `grouped`/`hasAddons`, no explicit `labelProps.htmlFor`) and you set no `id` here. Not rendered either by a plusminus `bare` Numberinput outside a `Field`.",
78
+ "description": "Field label. Automatically associated with the number input via `htmlFor` — uses your `id` when provided, otherwise a generated one. Dropped inside an outer `Field`, whose own label associates instead when that `Field` generates a target id (not `grouped`/`hasAddons`, no explicit `labelProps.htmlFor`) and you set no `id` here. Not rendered either by a plusminus `bare` Numberinput outside a `Field`. A development build warns about a Numberinput nothing names.",
79
79
  "required": false,
80
80
  "inherited": false,
81
81
  "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, so give it a name. For Ionicons the `<ion-icon>` inside is always `aria-hidden`, so it adds no image 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: without one, a Material ligature's text or an SVG inside it can name it, or the control around it, and a development build warns. 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
@@ -58,7 +58,7 @@
58
58
  "code": "function example() {\n return (\n <Field\n horizontal\n label=\"Volume\"\n labelProps={{ htmlFor: 'volume-field-control' }}\n >\n <Field.Body>\n <Field>\n <Control iconLeftName=\"volume-up\">\n <Slider\n id=\"volume-field-control\"\n defaultValue={50}\n color=\"primary\"\n />\n </Control>\n </Field>\n </Field.Body>\n </Field>\n );\n}"
59
59
  }
60
60
  ],
61
- "accessibility": "- Uses native `<input type=\"range\">` element\n- The `label` prop, or the label of a `Field` the slider sits in, names its input.\n- In range mode the label starts each thumb's name, so `<Slider range label=\"Price range\" />` announces \"Price range Minimum value\" and \"Price range Maximum value\". Each thumb points `aria-labelledby` at the label and at a hidden span holding its own text, because an `aria-label` would outrank the label. The label's `for` still lands on the low thumb, so clicking the label focuses it.\n- `ariaLabel` wins over the label. In range mode each entry is that thumb's whole name, with no label in front, and an empty entry counts as unset.\n- An `aria-label` or `aria-labelledby` you pass straight to a range Slider names the whole Slider, so it takes the label's place at the start of both thumbs' names: `<Slider range aria-label=\"Budget\" />` announces \"Budget Minimum value\" and \"Budget Maximum value\". An `ariaLabel` entry still wins for its own thumb. To keep a label out of the thumbs' names altogether, pass `aria-labelledby={undefined}`, and they stay \"Minimum value\" and \"Maximum value\".\n- A `Field` label you wire by hand with `labelProps={{ htmlFor }}`, as in a horizontal form, gets no generated id, so give it one of your own there as well, as in `labelProps={{ htmlFor: 'price', id: 'price-label' }}`, and it starts both thumbs' names the same way. Without that `id` it reaches a range Slider only through its `for`, which the thumbs' default `aria-label` outranks, so they stay \"Minimum value\" and \"Maximum value\".\n- In forced colors (Windows' contrast themes) the track and its fill would disappear, since they're painted as a gradient. bestax's styles paint the fill in the system's highlight color and the rest of the track in its text color there, so the track shows how far it's filled. The mark labels draw in its text color too, and the tick lines in its button text color, with a hairline in the page's color down the middle where a line crosses the track, so it shows on the track and on the fill. A disabled slider draws its track, thumbs, ticks and labels in its color for disabled text instead. All of them draw at full strength there.\n- Has `aria-valuenow`, `aria-valuemin`, and `aria-valuemax` attributes\n- The thumb's `aria-valuetext` is what `getAriaValueText` returns, or else the value bubble's text when `formatOutput` or `scale` is set, whether or not the bubble shows, so ``formatOutput={v => `$${v}`}`` announces \"$41\" rather than \"41\".\n- The value bubble is an `<output>`, which a browser treats as a live region. It's set not to announce: a thumb announces its value as it's moved.\n- Fully keyboard accessible with arrow keys\n- Home and End move a thumb to the slider's ends. When `max` falls between two steps, End stops at the last step below it, the highest value the slider holds, and that's the value it reports. On a range Slider a thumb stops at the other thumb, or on the nearest step at least `minDistance` from it, or at the slider's end where there isn't that much room.\n- A range Slider with no `defaultValue` starts its high thumb at that highest value too, and a single one at the value it holds nearest 0, so the thumb's `aria-valuenow`, its value bubble and its fill say where it sits.\n- Focus states clearly visible\n- On a right-to-left page the native range mirrors, and the fill, the tick marks and the value bubble follow it, so a value of 25 fills from the right. A vertical slider still fills from the bottom.\n- In forced colors (Windows' contrast themes) the value bubble takes the page's own background, and every side of its arrow would be painted, drawing it as a square. bestax's styles outline the bubble in the system's text color there, and keep the arrow a triangle in that color, pointing at the thumb whichever side the bubble sits on.\n- The `message` describes the slider through `aria-describedby`, both thumbs in range mode. Ids you pass in `aria-describedby` go first, on the only thumb or the low one, where the other attributes go.",
61
+ "accessibility": "- Uses native `<input type=\"range\">` element\n- The `label` prop, or the label of a `Field` the slider sits in, names its input.\n- In range mode the label starts each thumb's name, so `<Slider range label=\"Price range\" />` announces \"Price range Minimum value\" and \"Price range Maximum value\". Each thumb points `aria-labelledby` at the label and at a hidden span holding its own text, because an `aria-label` would outrank the label. The label's `for` still lands on the low thumb, so clicking the label focuses it.\n- `ariaLabel` wins over the label. In range mode each entry is that thumb's whole name, with no label in front, and an empty entry counts as unset.\n- An `aria-label` or `aria-labelledby` you pass straight to a range Slider names the whole Slider, so it takes the label's place at the start of both thumbs' names: `<Slider range aria-label=\"Budget\" />` announces \"Budget Minimum value\" and \"Budget Maximum value\". An `ariaLabel` entry still wins for its own thumb. To keep a label out of the thumbs' names altogether, pass `aria-labelledby={undefined}`, and they stay \"Minimum value\" and \"Maximum value\", which a development build warns about.\n- A `Field` label you wire by hand with `labelProps={{ htmlFor }}`, as in a horizontal form, gets no generated id, so give it one of your own there as well, as in `labelProps={{ htmlFor: 'price', id: 'price-label' }}`, and it starts both thumbs' names the same way. Without that `id` it reaches a range Slider only through its `for`, which the thumbs' default `aria-label` outranks, so they stay \"Minimum value\" and \"Maximum value\".\n- A development build warns about a single Slider with nothing to name it: no label of its own or a `Field`'s, no `<label>` of yours pointing at it, and no `aria-label`, `aria-labelledby` or `title`. It looks once the Slider has mounted, so a label outside it counts. A range Slider warns when it leaves a thumb named only \"Minimum value\" or \"Maximum value\".\n- In forced colors (Windows' contrast themes) the track and its fill would disappear, since they're painted as a gradient. bestax's styles paint the fill in the system's highlight color and the rest of the track in its text color there, so the track shows how far it's filled. The mark labels draw in its text color too, and the tick lines in its button text color, with a hairline in the page's color down the middle where a line crosses the track, so it shows on the track and on the fill. A disabled slider draws its track, thumbs, ticks and labels in its color for disabled text instead. All of them draw at full strength there.\n- Has `aria-valuenow`, `aria-valuemin`, and `aria-valuemax` attributes\n- The thumb's `aria-valuetext` is what `getAriaValueText` returns, or else the value bubble's text when `formatOutput` or `scale` is set, whether or not the bubble shows, so ``formatOutput={v => `$${v}`}`` announces \"$41\" rather than \"41\".\n- The value bubble is an `<output>`, which a browser treats as a live region. It's set not to announce: a thumb announces its value as it's moved.\n- Fully keyboard accessible with arrow keys\n- Home and End move a thumb to the slider's ends. When `max` falls between two steps, End stops at the last step below it, the highest value the slider holds, and that's the value it reports. On a range Slider a thumb stops at the other thumb, or on the nearest step at least `minDistance` from it, or at the slider's end where there isn't that much room.\n- A range Slider with no `defaultValue` starts its high thumb at that highest value too, and a single one at the value it holds nearest 0, so the thumb's `aria-valuenow`, its value bubble and its fill say where it sits.\n- Focus states clearly visible\n- On a right-to-left page the native range mirrors, and the fill, the tick marks and the value bubble follow it, so a value of 25 fills from the right. A vertical slider still fills from the bottom.\n- In forced colors (Windows' contrast themes) the value bubble takes the page's own background, and every side of its arrow would be painted, drawing it as a square. bestax's styles outline the bubble in the system's text color there, and keep the arrow a triangle in that color, pointing at the thumb whichever side the bubble sits on.\n- The `message` describes the slider through `aria-describedby`, both thumbs in range mode. Ids you pass in `aria-describedby` go first, on the only thumb or the low one, where the other attributes go.",
62
62
  "related": ["Numberinput", "Progress"],
63
63
  "storybook": "https://bestax.io/storybook/?path=/story/form-slider",
64
64
  "summary": "The `Slider` component provides a range slider input for selecting values within a range.",
@@ -111,7 +111,7 @@
111
111
  "name": "ariaLabel",
112
112
  "type": "string | [string, string]",
113
113
  "default": null,
114
- "description": "ARIA label(s) for the slider thumb(s), which win over a label, the Slider's own or a surrounding `Field`'s. In range mode each entry is that thumb's whole name, and a thumb without one is named \"Minimum value\" or \"Maximum value\", after whatever names the Slider: a label, or in its place an `aria-label` or `aria-labelledby` given to the Slider, as in \"Budget Minimum value\" and \"Budget Maximum value\". An `aria-labelledby` set to `undefined` keeps every label out of both names.",
114
+ "description": "ARIA label(s) for the slider thumb(s), which win over a label, the Slider's own or a surrounding `Field`'s. In range mode each entry is that thumb's whole name, and a thumb without one is named \"Minimum value\" or \"Maximum value\", after whatever names the Slider: a label, or in its place an `aria-label` or `aria-labelledby` given to the Slider, as in \"Budget Minimum value\" and \"Budget Maximum value\". An `aria-labelledby` set to `undefined` keeps every label out of both names, and a development build then warns that a thumb has only its own name.",
115
115
  "required": false,
116
116
  "inherited": true,
117
117
  "deprecated": false
@@ -147,7 +147,7 @@
147
147
  "name": "label",
148
148
  "type": "React.ReactNode",
149
149
  "default": null,
150
- "description": "Field label. Automatically associated with the slider input via `htmlFor` — uses your `id` when provided, otherwise a generated one. In range mode the `htmlFor` targets the low (minimum) thumb, and the label also starts each thumb's name through `aria-labelledby`, as in \"Price Minimum value\" and \"Price Maximum value\", unless an `aria-label` or `aria-labelledby` on the Slider takes its place there. Dropped inside an outer `Field`, whose own label associates instead when that `Field` generates a target id (not `grouped`/`hasAddons`, no explicit `labelProps.htmlFor`) and you set no `id` here, naming a range Slider's thumbs the same way. A `Field` label you wire by hand to the low thumb with `labelProps.htmlFor` names the thumbs too when you also give it an `id` there, since the `Field` generates none for it.",
150
+ "description": "Field label. Automatically associated with the slider input via `htmlFor` — uses your `id` when provided, otherwise a generated one. In range mode the `htmlFor` targets the low (minimum) thumb, and the label also starts each thumb's name through `aria-labelledby`, as in \"Price Minimum value\" and \"Price Maximum value\", unless an `aria-label` or `aria-labelledby` on the Slider takes its place there. Dropped inside an outer `Field`, whose own label associates instead when that `Field` generates a target id (not `grouped`/`hasAddons`, no explicit `labelProps.htmlFor`) and you set no `id` here, naming a range Slider's thumbs the same way. A `Field` label you wire by hand to the low thumb with `labelProps.htmlFor` names the thumbs too when you also give it an `id` there, since the `Field` generates none for it. A development build warns about a Slider nothing names, and about a range one that leaves a thumb named only \"Minimum value\" or \"Maximum value\".",
151
151
  "required": false,
152
152
  "inherited": true,
153
153
  "deprecated": false
@@ -38,7 +38,7 @@
38
38
  "code": "<Table isStriped>\n <Table.Thead>\n <Table.Tr>\n <Table.Th>Team</Table.Th>\n <Table.Th>Points</Table.Th>\n </Table.Tr>\n </Table.Thead>\n <Table.Tbody>\n <Table.Tr>\n <Table.Td>Maple Leafs</Table.Td>\n <Table.Td>98</Table.Td>\n </Table.Tr>\n </Table.Tbody>\n</Table>"
39
39
  }
40
40
  ],
41
- "accessibility": "- **Semantics:** Uses `<table>`, `<thead>`, `<tbody>`, `<tfoot>`, `<tr>`, `<th>`, and `<td>`—all proper HTML table elements.\n- **Responsive:** with `isResponsive`, the table is wrapped in Bulma's scrollable `.table-container`. While the table overflows it, the container is a region with a tab stop, named by the table's own `aria-label` or `aria-labelledby`, so a keyboard user can reach and scroll it, Safari included. The `elements/table` partial, which `bestax.css` and `extras.css` carry, draws Bulma's focus ring just inside it on keyboard focus. While the table fits, it's a plain `div` with no tab stop, though one that has focus keeps its tab stop until focus leaves. A development build warns when a table overflows with no name.\n- **Forced colors:** Bulma marks a selected row or cell (`Tr isSelected`, or a cell with Bulma's `is-selected` class) with a fill and a text color, which forced colors replaces, so there the `elements/table` partial draws a double line just inside it in the system's highlight color, which moves nothing. A selected row or cell given a `tabIndex` keeps the double line while it has keyboard focus, in the system's text color, so it still reads as selected and the focus shows.\n- **Screen Readers:** Always use `<Th>` for header cells, and provide descriptive column headings. Make the cell that names a row its header too (`Th` with `scope=\"row\"`).\n- **Selected rows:** `isSelected` is a look, which assistive tech doesn't announce. Say in a highlighted row why it stands out, as in [Highlighted Row](https://bestax.io/docs/api/elements/table#highlighted-row), and give rows a user picks a checkbox named for the row, as in [A Column of Checkboxes](https://bestax.io/docs/api/elements/table#a-column-of-checkboxes).\n- **Right to left:** with `bestax.css` and its variants, a header cell aligns to the start of the line, as the body cells do, so on a right-to-left page both sit on the right. They build Bulma with `$table-cell-text-align: start`, where Bulma's own default, in the table below, is `left`. With `extras.css` and a Bulma of your own, set `$table-cell-text-align: start` in your Bulma build, or `--bulma-table-cell-text-align: start` on the table, to get the same. `isAligned` or an `align` attribute still sets a cell's own alignment.\n\n:::tip\nFor responsive tables, ensure your column headers are clear and concise for small screens.\n:::",
41
+ "accessibility": "- **Semantics:** Uses `<table>`, `<thead>`, `<tbody>`, `<tfoot>`, `<tr>`, `<th>`, and `<td>`—all proper HTML table elements.\n- **Responsive:** with `isResponsive`, the table is wrapped in Bulma's scrollable `.table-container`. While the table overflows it, the container is a region with a tab stop, named by the table's own `aria-label` or `aria-labelledby`, so a keyboard user can reach and scroll it, Safari included. The `elements/table` partial, which `bestax.css` and `extras.css` carry, draws Bulma's focus ring just inside it on keyboard focus. While the table fits, it's a plain `div` with no tab stop, though one that has focus keeps its tab stop until focus leaves. A development build warns when a table overflows with no name. Without `isResponsive` the table has no scroll box of its own. With Bulma's default `overflow-x: hidden` on the page, a table wider than a narrow screen then has its last columns cut off: a pointer can't scroll to them, and keyboard focus moving into one can scroll the page sideways, where a pointer can't scroll it back. WCAG's Reflow criterion (1.4.10) allows a data table to scroll sideways instead.\n- **Forced colors:** Bulma marks a selected row or cell (`Tr isSelected`, or a cell with Bulma's `is-selected` class) with a fill and a text color, which forced colors replaces, so there the `elements/table` partial draws a double line just inside it in the system's highlight color, which moves nothing. A selected row or cell given a `tabIndex` keeps the double line while it has keyboard focus, in the system's text color, so it still reads as selected and the focus shows.\n- **Screen Readers:** Always use `<Th>` for header cells, and provide descriptive column headings. Make the cell that names a row its header too (`Th` with `scope=\"row\"`).\n- **Selected rows:** `isSelected` is a look, which assistive tech doesn't announce. Say in a highlighted row why it stands out, as in [Highlighted Row](https://bestax.io/docs/api/elements/table#highlighted-row), and give rows a user picks a checkbox named for the row, as in [A Column of Checkboxes](https://bestax.io/docs/api/elements/table#a-column-of-checkboxes).\n- **Right to left:** with `bestax.css` and its variants, a header cell aligns to the start of the line, as the body cells do, so on a right-to-left page both sit on the right. They build Bulma with `$table-cell-text-align: start`, where Bulma's own default, in the table below, is `left`. With `extras.css` and a Bulma of your own, set `$table-cell-text-align: start` in your Bulma build, or `--bulma-table-cell-text-align: start` on the table, to get the same. `isAligned` or an `align` attribute still sets a cell's own alignment.\n\n:::tip\nFor responsive tables, ensure your column headers are clear and concise for small screens.\n:::",
42
42
  "related": ["Block", "useBulmaClasses"],
43
43
  "storybook": "https://bestax.io/storybook/?path=/story/elements-table--default",
44
44
  "summary": "The `Table` component and its subcomponents provide a highly composable, Bulma-styled table system for React.",
@@ -119,7 +119,7 @@
119
119
  "name": "isResponsive",
120
120
  "type": "boolean",
121
121
  "default": "false",
122
- "description": "Wraps the table in Bulma's `.table-container`, which scrolls it sideways when it's wider than its parent. While it overflows, the container is a region you can tab to and scroll by keyboard, named by the table's own `aria-label` or `aria-labelledby`, so name the table with one of them; a development build warns when it overflows with neither. While the table fits, the container is a plain `div` with no tab stop, though one that has focus keeps its tab stop until focus leaves.",
122
+ "description": "Wraps the table in Bulma's `.table-container`, which scrolls it sideways when it's wider than its parent. Off unless set, and without it the table has no scroll box of its own, so one wider than its parent overflows it, and Bulma's default `overflow-x: hidden` on the page cuts off what runs past a narrow screen. While the table overflows the container, the container is a region you can tab to and scroll by keyboard, named by the table's own `aria-label` or `aria-labelledby`, so name the table with one of them; a development build warns when it overflows with neither. While the table fits, the container is a plain `div` with no tab stop, though one that has focus keeps its tab stop until focus leaves.",
123
123
  "required": false,
124
124
  "inherited": false,
125
125
  "deprecated": false
@@ -62,7 +62,7 @@
62
62
  "code": "function example() {\n return (\n <Field\n horizontal\n label=\"Tags\"\n labelProps={{ htmlFor: 'tags-field-control' }}\n >\n <Field.Body>\n <Field>\n <Control>\n <Taginput\n id=\"tags-field-control\"\n icon=\"tags\"\n defaultValue={['React', 'TypeScript']}\n placeholder=\"Add a tag...\"\n tagColor=\"primary\"\n />\n </Control>\n </Field>\n </Field.Body>\n </Field>\n );\n}"
63
63
  }
64
64
  ],
65
- "accessibility": "- The `label` prop is automatically associated with the inner text input (`htmlFor` plus a generated `id`, or your own `id` if you pass one). While the label is wired it also names the input; without one, the input falls back to `aria-label=\"Add tag\"`, or `labels.input` in your language. Inside a labeled `Field`, that `Field`'s label names the input the same way and replaces the fallback.\n- A user-supplied `id` is applied to the inner input (the labellable control), not the wrapper div.\n- When `maxTags` is reached the text input turns read-only rather than going away, so keyboard focus stays where it was and the label keeps naming the input. The suggestion list stays closed.\n- While the counter shows, it describes the input through `aria-describedby`, so a screen reader hears the count, like \"3 / 3\" at the limit.\n- Tags are keyboard navigable\n- Each tag's remove button is named \"Remove\" and the tag's text, the `field` of an object tag. With `ariaCloseLabel`, every button takes that one name, as for a translation, and is described by its tag's text, so it still says which tag it removes. With a `tagTemplate` it has the one name and no description\n- When the last tag's remove button has focus and takes its tag off, as from the keyboard, focus first moves to the remove button before it, or to the input when no tag is left, so it doesn't drop to the page. Any other tag's remove button keeps focus\n- With `data`, the input is a `role=\"combobox\"` with `aria-autocomplete=\"list\"` and `aria-haspopup=\"listbox\"`. Its `aria-expanded` is true only while the suggestion list is on screen, and while it is, `aria-controls` points at the list. While no suggestion matches there's no list, so it stays false. Without `data` there's never a list, so the input stays a plain text field\n- Focus stays in the input, which points `aria-activedescendant` at the highlighted suggestion as the arrow keys or the mouse move it\n- Focus moving from the input to another element closes the suggestion list, as `Tab` to the next field or to a tag's remove button does, so the list doesn't stay open over what has focus. A press on a suggestion keeps focus in the input, so the list stays open for the click, and the list takes no `Tab` stop of its own\n- The list is a `role=\"listbox\"` named through `aria-labelledby` by the label that names the input, when that label has an id: the `label` prop's label always has one, and so does a `Field`'s label that the `Field` wires itself. A `Field` label you wire by hand with `labelProps.htmlFor`, which is how the horizontal examples above name the Taginput, needs an `id` in its `labelProps` as well. Otherwise the list falls back to `aria-label=\"Suggestions\"`, or `labels.suggestions` in your language\n- The list holds only the suggestions, each a `role=\"option\"` with an id of its own, and the highlighted one has `aria-selected=\"true\"`\n- In forced colors (Windows' contrast themes), which take away the list's shadow and the highlighted suggestion's fill, the open list is drawn with an edge and the highlighted suggestion with an outline in the system's highlight color\n- The `message` describes the input through `aria-describedby`, after the counter while it shows, so a screen reader reads both when the input takes focus.\n- `aria-invalid` and `aria-errormessage` go on the input, while the other attributes you pass go on the wrapper, so a screen reader hears the input is invalid when it takes focus.",
65
+ "accessibility": "- The `label` prop is automatically associated with the inner text input (`htmlFor` plus a generated `id`, or your own `id` if you pass one). While the label is wired it also names the input; without one, the input falls back to `aria-label=\"Add tag\"`, or `labels.input` in your language. Inside a labeled `Field`, that `Field`'s label names the input the same way and replaces the fallback.\n- A user-supplied `id` is applied to the inner input (the labellable control), not the wrapper div.\n- When `maxTags` is reached the text input turns read-only rather than going away, so keyboard focus stays where it was and the label keeps naming the input. The suggestion list stays closed.\n- While the counter shows, it describes the input through `aria-describedby`, so a screen reader hears the count, like \"3 / 3\" at the limit.\n- Tags are keyboard navigable\n- Each tag's remove button is named \"Remove\" and the tag's text, the `field` of an object tag. With `ariaCloseLabel`, every button takes that one name, as for a translation, and is described by its tag's text, so it still says which tag it removes. With a `tagTemplate` it has the one name and no description\n- When the last tag's remove button has focus and takes its tag off, as from the keyboard, focus first moves to the remove button before it, or to the input when no tag is left, so it doesn't drop to the page. Any other tag's remove button keeps focus\n- With `data`, the input is a `role=\"combobox\"` with `aria-autocomplete=\"list\"` and `aria-haspopup=\"listbox\"`. Its `aria-expanded` is true only while the suggestion list is on screen, and while it is, `aria-controls` points at the list. While no suggestion matches there's no list, so it stays false. Without `data` there's never a list, so the input stays a plain text field\n- Focus stays in the input, which points `aria-activedescendant` at the highlighted suggestion as the arrow keys or the mouse move it\n- Focus moving from the input to another element closes the suggestion list, as `Tab` to the next field or to a tag's remove button does, so the list doesn't stay open over what has focus. A press on a suggestion keeps focus in the input, so the list stays open for the click, and the list takes no `Tab` stop of its own\n- The list is a `role=\"listbox\"` named through `aria-labelledby` by the label that names the input, when that label has an id: the `label` prop's label always has one, and so does a `Field`'s label that the `Field` wires itself. A `Field` label you wire by hand with `labelProps.htmlFor`, which is how the horizontal examples above name the Taginput, needs an `id` in its `labelProps` as well. Otherwise the list falls back to `aria-label=\"Suggestions\"`, or `labels.suggestions` in your language\n- The list holds only the suggestions, each a `role=\"option\"` with an id of its own, and the highlighted one has `aria-selected=\"true\"`\n- While the input has focus, the box around the tags draws Bulma's focus ring, a border and a shadow in the focus color, or in the `color` you set, inside a `Control` or not\n- In forced colors (Windows' contrast themes), which take away the list's shadow and the highlighted suggestion's fill, the open list is drawn with an edge and the highlighted suggestion with an outline in the system's highlight color\n- The `message` describes the input through `aria-describedby`, after the counter while it shows, so a screen reader reads both when the input takes focus.\n- `aria-invalid` and `aria-errormessage` go on the input, while the other attributes you pass go on the wrapper, so a screen reader hears the input is invalid when it takes focus.",
66
66
  "related": ["Autocomplete", "Input", "Tag"],
67
67
  "storybook": "https://bestax.io/storybook/?path=/story/form-taginput",
68
68
  "summary": "The `Taginput` component provides a tag/chip input field for managing multiple tags.",
@@ -287,7 +287,14 @@ const matches = countries.filter(c => c.toLowerCase().includes(term));
287
287
 
288
288
  // Slider (single and dual thumb)
289
289
  const [volume, setVolume] = useState(50);
290
- <Slider value={volume} onChange={setVolume} min={0} max={100} tooltip="auto" />;
290
+ <Slider
291
+ label="Volume"
292
+ value={volume}
293
+ onChange={setVolume}
294
+ min={0}
295
+ max={100}
296
+ tooltip="auto"
297
+ />;
291
298
 
292
299
  const [range, setRange] = useState<[number, number]>([20, 80]);
293
300
  // The label names both thumbs: "Price range Minimum value" / "... Maximum value".
@@ -302,7 +309,14 @@ const [range, setRange] = useState<[number, number]>([20, 80]);
302
309
 
303
310
  // Numberinput
304
311
  const [qty, setQty] = useState(1);
305
- <Numberinput value={qty} onChange={setQty} min={1} max={10} step={1} />;
312
+ <Numberinput
313
+ label="Quantity"
314
+ value={qty}
315
+ onChange={setQty}
316
+ min={1}
317
+ max={10}
318
+ step={1}
319
+ />;
306
320
 
307
321
  // PinInput: a one-time code or PIN, a box per character, all in one input.
308
322
  // onComplete fires once each time a change fills the last box.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bestax-mcp",
3
- "version": "1.18.85",
3
+ "version": "1.18.87",
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.7"
45
+ "@allxsmith/bestax-bulma": "^5.78.9"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/node": "^26.6.6",