bestax-mcp 1.18.66 → 1.18.67

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.73.5"
5
+ "version": "5.73.6"
6
6
  },
7
7
  "docsBase": "https://bestax.io/docs",
8
8
  "categories": [
@@ -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 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.",
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.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.",
46
46
  "related": [
47
47
  "Combobox",
48
48
  "Select",
@@ -362,7 +362,7 @@
362
362
  "name": "position",
363
363
  "type": "'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'auto'",
364
364
  "default": "'bottom-left'",
365
- "description": "Where the panel opens against the field, as on the pickers. Left out, it opens below and lines up with the field's start edge, which is its right edge on a right-to-left page. A corner you pass stays physical, so `bottom-left` lines up the left edges either way.",
365
+ "description": "Where the panel opens against the field, as on the pickers. Left out, it opens below and lines up with the field's start edge, which is its right edge on a right-to-left page. A corner you pass stays physical, so `bottom-left` lines up the left edges either way. A panel that would run past the viewport's left or right edge keeps its corner and moves sideways, just far enough to fit or, wider than the viewport, to the edge its text starts from.",
366
366
  "required": false,
367
367
  "inherited": false,
368
368
  "deprecated": false
@@ -50,7 +50,7 @@
50
50
  "code": "<Field label=\"Bare\">\n <Control>\n <ColorInputBase defaultValue=\"#ff6685\" />\n </Control>\n</Field>"
51
51
  }
52
52
  ],
53
- "accessibility": "- **The field is a combobox that opens a dialog**, as the date pickers' is: `role=\"combobox\"`,\n `aria-haspopup=\"dialog\"`, `aria-expanded` and `aria-controls`, named by its `label`. The\n launcher is a button named \"Choose color\" with the same attributes.\n- **Keys in the field:** Alt+ArrowDown opens the panel; Enter commits typed text; Escape puts\n typed text back without closing a `Modal` around the field.\n- **The panel** is a non-modal `dialog` named \"Choose color\" that holds focus while it's open.\n Focus starts on the saturation and brightness square, and Escape, Alt+ArrowUp or a press\n outside closes it and hands focus back to the field.\n- **The square and the sliders** are `ColorPicker`'s: native range inputs, the square one 2D\n slider with one tab stop. See [`ColorPicker`](https://bestax.io/docs/api/form/colorpicker#accessibility).\n- **The swatch in the field** is for the pointer only: it's hidden from assistive tech and takes\n no tab stop, since the launcher does the same from the keyboard.\n- **The value is always text** in the field, and text it can't read is marked `aria-invalid`.\n- **Forced colors:** the swatch keeps its color with an edge in the system's text color.\n- **Strings** come from `labels`, with English defaults.",
53
+ "accessibility": "- **The field is a combobox that opens a dialog**, as the date pickers' is: `role=\"combobox\"`,\n `aria-haspopup=\"dialog\"`, `aria-expanded` and `aria-controls`, named by its `label`. The\n launcher is a button named \"Choose color\" with the same attributes.\n- **Keys in the field:** Alt+ArrowDown opens the panel; Enter commits typed text; Escape puts\n typed text back without closing a `Modal` around the field.\n- **The panel** is a non-modal `dialog` named \"Choose color\" that holds focus while it's open.\n Focus starts on the saturation and brightness square, and Escape, Alt+ArrowUp or a press\n outside closes it and hands focus back to the field.\n- **The square and the sliders** are `ColorPicker`'s: native range inputs, the square one 2D\n slider with one tab stop. See [`ColorPicker`](https://bestax.io/docs/api/form/colorpicker#accessibility).\n- **The swatch in the field** is for the pointer only: it's hidden from assistive tech and takes\n no tab stop, since the launcher does the same from the keyboard.\n- **The value is always text** in the field, and text it can't read is marked `aria-invalid`.\n- **Forced colors:** the swatch keeps its color with an edge in the system's text color.\n- **Strings** come from `labels`, with English defaults.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.",
54
54
  "related": ["ColorPicker", "ColorSwatch", "DateInput", "useBulmaClasses"],
55
55
  "storybook": "https://bestax.io/storybook/?path=/story/form-colorinput--default",
56
56
  "summary": "The `ColorInput` component is a form field for a color: type it, or open a color picker from its launcher or its swatch. The value is a CSS color string, HSL by default, or empty. The panel is the `ColorPicker`'s square, hue slider and, when asked for, alpha slider, swatches and eye dropper, in the same popover the date pickers use.",
@@ -283,7 +283,7 @@
283
283
  "name": "position",
284
284
  "type": "'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'auto'",
285
285
  "default": "'bottom-left'",
286
- "description": "Where the panel opens against the field. Left out, it opens below and lines up with the field's start edge, which is its right edge when the picker reads right to left. A corner you pass stays physical, so `bottom-left` lines up the left edges either way.",
286
+ "description": "Where the panel opens against the field. Left out, it opens below and lines up with the field's start edge, which is its right edge when the picker reads right to left. A corner you pass stays physical, so `bottom-left` lines up the left edges either way. A panel that would run past the viewport's left or right edge keeps its corner and moves sideways, just far enough to fit or, wider than the viewport, to the edge its text starts from.",
287
287
  "required": false,
288
288
  "inherited": true,
289
289
  "deprecated": false
@@ -529,7 +529,7 @@
529
529
  "name": "position",
530
530
  "type": "'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'auto'",
531
531
  "default": "'bottom-left'",
532
- "description": "Where the panel opens against the field. Left out, it opens below and lines up with the field's start edge, which is its right edge when the picker reads right to left. A corner you pass stays physical, so `bottom-left` lines up the left edges either way.",
532
+ "description": "Where the panel opens against the field. Left out, it opens below and lines up with the field's start edge, which is its right edge when the picker reads right to left. A corner you pass stays physical, so `bottom-left` lines up the left edges either way. A panel that would run past the viewport's left or right edge keeps its corner and moves sideways, just far enough to fit or, wider than the viewport, to the edge its text starts from.",
533
533
  "required": false,
534
534
  "inherited": false,
535
535
  "deprecated": false
@@ -62,7 +62,7 @@
62
62
  "code": "function example() {\n const drinks: Record<\n string,\n { value: string; label: string; disabled?: boolean }[]\n > = {\n Hot: [\n { value: 'coffee', label: 'Coffee' },\n { value: 'tea', label: 'Tea' },\n ],\n Cold: [\n { value: 'lemonade', label: 'Lemonade' },\n { value: 'iced-tea', label: 'Iced tea' },\n { value: 'smoothie', label: 'Smoothie (sold out)', disabled: true },\n ],\n };\n const [query, setQuery] = useState('');\n const [value, setValue] = useState('tea');\n const picked = Object.values(drinks)\n .flat()\n .find(i => i.value === value);\n const term = query.trim().toLowerCase();\n const groups = Object.entries(drinks)\n .map(([label, items]) => ({\n label,\n items: items.filter(i => i.label.toLowerCase().includes(term)),\n }))\n .filter(g => g.items.length > 0);\n\n return (\n <form onSubmit={e => e.preventDefault()}>\n <Combobox\n label=\"Drink\"\n message={`Your drink: ${picked?.label}`}\n onSelect={next => {\n setValue(next);\n setQuery('');\n }}\n >\n <Combobox.Input\n iconLeftName=\"mug-hot\"\n placeholder=\"Type to filter\"\n value={query}\n onChange={e => setQuery(e.target.value)}\n />\n <Combobox.Menu>\n {groups.length > 0 ? (\n <Combobox.List>\n {groups.map(g => (\n <Combobox.Group key={g.label} label={g.label}>\n {g.items.map(i => (\n <Combobox.Item\n key={i.value}\n value={i.value}\n checked={i.value === value}\n disabled={i.disabled}\n >\n {i.label}\n </Combobox.Item>\n ))}\n </Combobox.Group>\n ))}\n </Combobox.List>\n ) : (\n <Combobox.Empty>No drinks match</Combobox.Empty>\n )}\n </Combobox.Menu>\n </Combobox>\n <Select label=\"Size\">\n <option>Small</option>\n <option>Medium</option>\n <option>Large</option>\n </Select>\n <Input label=\"Name for the cup\" />\n <Button type=\"submit\" color=\"primary\">\n Order\n </Button>\n </form>\n );\n}"
63
63
  }
64
64
  ],
65
- "accessibility": "- **The roles:** the field is `role=\"combobox\"` with `aria-autocomplete=\"list\"` and\n `aria-haspopup=\"listbox\"`. The list is a `listbox` of `option`s, and a group is a `group` named by\n its heading. This is the ARIA 1.2 combobox the ARIA Authoring Practices describe.\n- **Focus stays in the field:** the highlighted item is the field's `aria-activedescendant`.\n When a key or the list opening moves the highlight, the item is scrolled into view, since a\n browser only scrolls to what has focus. The pointer moves it without scrolling, since the pointer\n is already on that item. A click on an item keeps focus in the field too.\n- **`aria-expanded`** is `true` while a list with an item in it is on screen, and\n `aria-controls` points at the list then. While the menu shows just the empty message, the\n field says it's collapsed, and so does the server markup for a list rendered with\n `appendToBody`, which shows only once the page has hydrated.\n- **The list's name** comes from the label that names the field: the Combobox's `label`, or an\n outer `Field`'s. An `aria-label` or `aria-labelledby` you put on `Combobox.List` wins, and\n with none of these the list is named \"Suggestions\". Given `data`, an `aria-label` or\n `aria-labelledby` on the Combobox names the field and the list, so it needs no `label`.\n- **`aria-selected`, with one value,** is on the highlighted item and nothing else, the way the\n Authoring Practices' combobox examples do it. The value shows as a check mark, which doesn't rely\n on color, and the list opens with the highlight on it. Several libraries put `aria-selected` on\n the chosen item instead.\n- **With `multiple`,** the list is `aria-multiselectable`, and each item's `aria-selected` is its\n `checked`.\n- **Disabled items** are `aria-disabled` and stay reachable with the arrows, the Authoring\n Practices' advice for listbox options, so a screen reader user finds them. They're never picked\n or `aria-selected`, and the opening highlight and `keepFirst` pass over them.\n- **The empty message** sits beside the list, not in it, so it isn't counted as an item. When\n your typing brings it on screen, its text is announced through a polite status region that's in\n the page from the start, once each time the matches run out. Opening the list with it already\n there, or emptying the field, announces nothing. While `isLoading` is on, or a loading `Control`\n is around the Combobox, the announcement waits and is made once loading ends. In a menu,\n keep it to text: Tab closes the list before a keyboard user can reach a link or a button in it.\n An `inline` list stays on screen, so a link or a button beside it is in the Tab order.\n- **Tags,** with `multiple` and `data`: the field's `aria-describedby` points at the tags' labels,\n since its own text is the search, so focusing it reads the picks. Each tag's button is named\n \"Remove\" and the item's label, or `ariaCloseLabel` with the label as its description, and\n taking a tag off puts focus back in the field, which then reads the picks that are left.\n- **No counts are announced,** for the reasons in [A Result Count](https://bestax.io/docs/api/form/combobox#a-result-count).\n- **Enter and Escape:** Enter submits the form when nothing is highlighted, and Escape only stops\n at the Combobox when it closed a panel that was on screen.\n- **Forced colors:** in Windows high contrast mode the highlight is drawn as an outline in the\n system's highlight color, a disabled item takes the system's color for disabled text, and the\n check mark and the panel's edge stay visible.",
65
+ "accessibility": "- **The roles:** the field is `role=\"combobox\"` with `aria-autocomplete=\"list\"` and\n `aria-haspopup=\"listbox\"`. The list is a `listbox` of `option`s, and a group is a `group` named by\n its heading. This is the ARIA 1.2 combobox the ARIA Authoring Practices describe.\n- **Focus stays in the field:** the highlighted item is the field's `aria-activedescendant`.\n When a key or the list opening moves the highlight, the item is scrolled into view, since a\n browser only scrolls to what has focus. The pointer moves it without scrolling, since the pointer\n is already on that item. A click on an item keeps focus in the field too.\n- **`aria-expanded`** is `true` while a list with an item in it is on screen, and\n `aria-controls` points at the list then. While the menu shows just the empty message, the\n field says it's collapsed, and so does the server markup for a list rendered with\n `appendToBody`, which shows only once the page has hydrated.\n- **The list's name** comes from the label that names the field: the Combobox's `label`, or an\n outer `Field`'s. An `aria-label` or `aria-labelledby` you put on `Combobox.List` wins, and\n with none of these the list is named \"Suggestions\". Given `data`, an `aria-label` or\n `aria-labelledby` on the Combobox names the field and the list, so it needs no `label`.\n- **`aria-selected`, with one value,** is on the highlighted item and nothing else, the way the\n Authoring Practices' combobox examples do it. The value shows as a check mark, which doesn't rely\n on color, and the list opens with the highlight on it. Several libraries put `aria-selected` on\n the chosen item instead.\n- **With `multiple`,** the list is `aria-multiselectable`, and each item's `aria-selected` is its\n `checked`.\n- **Disabled items** are `aria-disabled` and stay reachable with the arrows, the Authoring\n Practices' advice for listbox options, so a screen reader user finds them. They're never picked\n or `aria-selected`, and the opening highlight and `keepFirst` pass over them.\n- **The empty message** sits beside the list, not in it, so it isn't counted as an item. When\n your typing brings it on screen, its text is announced through a polite status region that's in\n the page from the start, once each time the matches run out. Opening the list with it already\n there, or emptying the field, announces nothing. While `isLoading` is on, or a loading `Control`\n is around the Combobox, the announcement waits and is made once loading ends. In a menu,\n keep it to text: Tab closes the list before a keyboard user can reach a link or a button in it.\n An `inline` list stays on screen, so a link or a button beside it is in the Tab order.\n- **Tags,** with `multiple` and `data`: the field's `aria-describedby` points at the tags' labels,\n since its own text is the search, so focusing it reads the picks. Each tag's button is named\n \"Remove\" and the item's label, or `ariaCloseLabel` with the label as its description, and\n taking a tag off puts focus back in the field, which then reads the picks that are left.\n- **No counts are announced,** for the reasons in [A Result Count](https://bestax.io/docs/api/form/combobox#a-result-count).\n- **Enter and Escape:** Enter submits the form when nothing is highlighted, and Escape only stops\n at the Combobox when it closed a panel that was on screen.\n- **Forced colors:** in Windows high contrast mode the highlight is drawn as an outline in the\n system's highlight color, a disabled item takes the system's color for disabled text, and the\n check mark and the panel's edge stay visible.\n- A menu that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.",
66
66
  "related": [
67
67
  "Autocomplete",
68
68
  "Cascader",
@@ -314,7 +314,7 @@
314
314
  "name": "position",
315
315
  "type": "'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'auto'",
316
316
  "default": "'bottom-left'",
317
- "description": "Where the menu opens against the field: below (`bottom-*`) or above (`top-*`), lined up with its left or right edge. `auto` picks the one that keeps the list in the viewport, preferring below. The same union Popover takes. Left out, it opens below and lines up with the field's start edge, which is its right edge on a right-to-left page, so a menu wider than the field doesn't hang off the screen. A corner you pass stays physical, so `bottom-left` lines up the left edges on either page.",
317
+ "description": "Where the menu opens against the field: below (`bottom-*`) or above (`top-*`), lined up with its left or right edge. `auto` picks the one that keeps the list in the viewport, preferring below. The same union Popover takes. Left out, it opens below and lines up with the field's start edge, which is its right edge on a right-to-left page, so a menu wider than the field doesn't hang off the screen. A corner you pass stays physical, so `bottom-left` lines up the left edges on either page. A panel that would run past the viewport's left or right edge keeps its corner and moves sideways, just far enough to fit or, wider than the viewport, to the edge its text starts from.",
318
318
  "required": false,
319
319
  "inherited": true,
320
320
  "deprecated": false
@@ -38,7 +38,7 @@
38
38
  "code": "<ContextMenu\n aria-label=\"Actions for notes.txt\"\n trigger={\n <Box tabIndex={0} p=\"6\" textAlign=\"centered\">\n notes.txt\n </Box>\n }\n>\n <ContextMenu.Item as=\"button\">Open</ContextMenu.Item>\n <ContextMenu.Item as=\"button\">Rename</ContextMenu.Item>\n <ContextMenu.Divider />\n <ContextMenu.Item as=\"button\">Delete</ContextMenu.Item>\n</ContextMenu>"
39
39
  }
40
40
  ],
41
- "accessibility": "`ContextMenu` follows the [WAI-ARIA menu pattern](https://www.w3.org/WAI/ARIA/apg/patterns/menubar/),\nwithout a menubar or submenus:\n\n- **Opening:** APG names \"a command, such as Shift + F10 in Windows, that opens a context specific\n menu\". That's the browser's `contextmenu` event, which <kbd>Shift</kbd>+<kbd>F10</kbd> and the\n context menu key fire on Windows and Linux, and VoiceOver's <kbd>VO</kbd>+<kbd>Shift</kbd>+<kbd>M</kbd>\n fires on macOS. `ContextMenu` adds no key handler of its own, so the menu never opens twice for\n one key.\n- **Focus on open** goes to the first enabled item, or to the menu itself when there's none.\n- <kbd>ArrowDown</kbd> and <kbd>ArrowUp</kbd> move to the next and previous item, wrapping, and\n <kbd>Home</kbd> and <kbd>End</kbd> go to the first and last.\n- **Typing** a letter moves to the next item whose text starts with what's been typed. Letters typed\n in quick succession add up to one search, and the same letter again cycles through the items that\n start with it. Each opening starts a new search.\n- <kbd>Enter</kbd> and <kbd>Space</kbd> activate the focused item the way a click does, so its\n `onClick` runs, and a key held down activates it once.\n- <kbd>Escape</kbd> closes the menu and returns focus to what had it before the menu opened. It\n stops there, so a `Popover` or a `Modal` around the menu stays open.\n- <kbd>Tab</kbd> and <kbd>Shift</kbd>+<kbd>Tab</kbd> close it and return focus too. The menu sits at\n the end of the page, so letting Tab go on from it would skip the rest of the page.\n- An item that runs closes the menu and returns focus, unless it moved focus somewhere else, such as\n into a `Modal` it opened or a rename field.\n\nRoles and names:\n\n- The menu is `role=\"menu\"`, named by the `aria-label` or `aria-labelledby` you pass. There's no\n button to borrow a name from, and a development build warns when a menu opens without one.\n- Items are `menuitem` by default, and `menuitemcheckbox` or `menuitemradio` with `aria-checked`\n through the item's `role`. A divider is an `<hr>`, which is a separator.\n- Disabled items, a `button` with `disabled` or an item with `aria-disabled=\"true\"`, are skipped by\n the arrow keys and by typing, as in `Dropdown`.\n- The trigger gets no ARIA, no role and no tab stop. `aria-haspopup` describes a popup that opens\n when an element is activated, and a right-click on a row isn't that. So nothing tells a screen\n reader user the menu is there, and on macOS only VoiceOver opens it from the keyboard: every action\n in it has to be reachable from a visible control as well, which\n [WCAG 2.1.1](https://www.w3.org/WAI/WCAG22/Understanding/keyboard.html) asks for.\n\nAnd around it:\n\n- The menu isn't modal. A press outside it closes it and does whatever it does, the rest of the page\n stays reachable, and nothing locks scrolling.\n- Nothing listens on the page while the menu is closed and no finger is held on its trigger, so a\n table with a menu on every row adds no listeners until one is used.\n- The menu doesn't animate.",
41
+ "accessibility": "`ContextMenu` follows the [WAI-ARIA menu pattern](https://www.w3.org/WAI/ARIA/apg/patterns/menubar/),\nwithout a menubar or submenus:\n\n- **Opening:** APG names \"a command, such as Shift + F10 in Windows, that opens a context specific\n menu\". That's the browser's `contextmenu` event, which <kbd>Shift</kbd>+<kbd>F10</kbd> and the\n context menu key fire on Windows and Linux, and VoiceOver's <kbd>VO</kbd>+<kbd>Shift</kbd>+<kbd>M</kbd>\n fires on macOS. `ContextMenu` adds no key handler of its own, so the menu never opens twice for\n one key.\n- **Focus on open** goes to the first enabled item, or to the menu itself when there's none.\n- <kbd>ArrowDown</kbd> and <kbd>ArrowUp</kbd> move to the next and previous item, wrapping, and\n <kbd>Home</kbd> and <kbd>End</kbd> go to the first and last.\n- **Typing** a letter moves to the next item whose text starts with what's been typed. Letters typed\n in quick succession add up to one search, and the same letter again cycles through the items that\n start with it. Each opening starts a new search.\n- <kbd>Enter</kbd> and <kbd>Space</kbd> activate the focused item the way a click does, so its\n `onClick` runs, and a key held down activates it once.\n- <kbd>Escape</kbd> closes the menu and returns focus to what had it before the menu opened. It\n stops there, so a `Popover` or a `Modal` around the menu stays open.\n- <kbd>Tab</kbd> and <kbd>Shift</kbd>+<kbd>Tab</kbd> close it and return focus too. The menu sits at\n the end of the page, so letting Tab go on from it would skip the rest of the page.\n- An item that runs closes the menu and returns focus, unless it moved focus somewhere else, such as\n into a `Modal` it opened or a rename field.\n\nRoles and names:\n\n- The menu is `role=\"menu\"`, named by the `aria-label` or `aria-labelledby` you pass. There's no\n button to borrow a name from, and a development build warns when a menu opens without one.\n- Items are `menuitem` by default, and `menuitemcheckbox` or `menuitemradio` with `aria-checked`\n through the item's `role`. A divider is an `<hr>`, which is a separator.\n- An `active` item has `aria-current=\"true\"`, as in `Dropdown`, and an `aria-current` you pass\n wins.\n- Disabled items, a `button` with `disabled` or an item with `aria-disabled=\"true\"`, are skipped by\n the arrow keys and by typing, as in `Dropdown`.\n- The trigger gets no ARIA, no role and no tab stop. `aria-haspopup` describes a popup that opens\n when an element is activated, and a right-click on a row isn't that. So nothing tells a screen\n reader user the menu is there, and on macOS only VoiceOver opens it from the keyboard: every action\n in it has to be reachable from a visible control as well, which\n [WCAG 2.1.1](https://www.w3.org/WAI/WCAG22/Understanding/keyboard.html) asks for.\n\nAnd around it:\n\n- The menu isn't modal. A press outside it closes it and does whatever it does, the rest of the page\n stays reachable, and nothing locks scrolling.\n- Nothing listens on the page while the menu is closed and no finger is held on its trigger, so a\n table with a menu on every row adds no listeners until one is used.\n- The menu doesn't animate.",
42
42
  "related": [
43
43
  "ConfigProvider",
44
44
  "Dropdown",
@@ -145,7 +145,7 @@
145
145
  "name": "active",
146
146
  "type": "boolean",
147
147
  "default": "false",
148
- "description": "Whether the item is active.",
148
+ "description": "Marks the item as the current one. It adds Bulma's `is-active` class, and `aria-current=\"true\"`, so assistive tech can tell which item is current too. An `aria-current` you pass wins, `false` and `undefined` included, so an item that says its state another way, such as a `menuitemradio` with `aria-checked`, takes `aria-current={false}`.",
149
149
  "required": false,
150
150
  "inherited": false,
151
151
  "deprecated": false
@@ -178,7 +178,7 @@
178
178
  "code": "function example() {\n return (\n <Field\n horizontal\n label=\"Date\"\n labelProps={{ htmlFor: 'date-field-control' }}\n >\n <Field.Body>\n <Field>\n <Control iconLeftName=\"calendar-alt\">\n <DateInput id=\"date-field-control\" placeholder=\"YYYY-MM-DD\" />\n </Control>\n </Field>\n </Field.Body>\n </Field>\n );\n}"
179
179
  }
180
180
  ],
181
- "accessibility": "- Trigger uses `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls`.\n- Popover panel has `role=\"dialog\"` with an accessible name. Opening it puts focus on the focused date, month or year.\n- Closing the popover with `Escape` or a pick returns focus to the input, whether the input or the launcher opened it. Under `openOnFocus` that returning focus leaves the popover closed; focusing or clicking the input again opens it. Dismissing without a pick commits nothing: an empty field stays empty, and leaving afterwards commits only what you typed.\n- Calendar uses `role=\"grid\"` with cells as `role=\"gridcell\"`. Its first row holds the weekday names as `role=\"columnheader\"`s, each named by the full weekday in the picker's locale, so a screen reader can name the weekday as focus moves to another column. A server-rendered calendar adds those full names once the page hydrates, and with `dayNames` the columns are named by the names you give instead. Each day keeps its number as its name.\n- Cells expose `aria-selected`, `aria-disabled`, and `aria-current=\"date\"` for today. On a server-rendered page, today's day, month and year get it once the page hydrates, so the reader's clock decides which.\n- A `disabled` inline calendar puts `aria-disabled=\"true\"` on its grid or year list and disables every button in it. A `readOnly` one puts `aria-readonly=\"true\"` on the grid or year list it picks from, and keeps its tab stop and keys.\n- Roving `tabindex` keeps a single grid cell focusable at a time, and focus moves with it, inline as in the popover. When the focused date is disabled, that cell is the nearest enabled day of the month.\n- Closing the year list opened from the header, with a pick or `Escape`, puts focus back on the grid's tab stop, inline as in the popover.\n- The month grid is a `role=\"grid\"` of `role=\"row\"`s, labelled by the year in its header. Each month cell carries the full month name as its accessible name, `aria-current=\"date\"` for this month and `aria-disabled` for a month with no selectable day.\n- The year list is a `role=\"listbox\"`, named by the `chooseYear` label where it is the selection surface and by the heading that opens it otherwise. As the selection surface its options take `aria-selected` from the value's year rather than from focus, which roves through the list. When the focused year is disabled, the nearest enabled year takes the tab stop, so `Tab` still reaches the list.\n- The launcher and popover are named \"Choose month\" or \"Choose year\" to match the granularity; override them, and the month grid's \"Previous year\" / \"Next year\" buttons, through `labels` (`chooseMonth`, `chooseYear`, `prevYear`, `nextYear`).\n- Honors `prefers-reduced-motion` (skip popover fade-in).\n- On a right-to-left page the launcher sits at the end of the line and the calendar icon at the start, and the previous-month chevron points right. The month names follow the page.",
181
+ "accessibility": "- Trigger uses `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls`.\n- Popover panel has `role=\"dialog\"` with an accessible name. Opening it puts focus on the focused date, month or year.\n- Closing the popover with `Escape` or a pick returns focus to the input, whether the input or the launcher opened it. Under `openOnFocus` that returning focus leaves the popover closed; focusing or clicking the input again opens it. Dismissing without a pick commits nothing: an empty field stays empty, and leaving afterwards commits only what you typed.\n- Calendar uses `role=\"grid\"` with cells as `role=\"gridcell\"`. Its first row holds the weekday names as `role=\"columnheader\"`s, each named by the full weekday in the picker's locale, so a screen reader can name the weekday as focus moves to another column. A server-rendered calendar adds those full names once the page hydrates, and with `dayNames` the columns are named by the names you give instead. Each day keeps its number as its name.\n- Cells expose `aria-selected`, `aria-disabled`, and `aria-current=\"date\"` for today. On a server-rendered page, today's day, month and year get it once the page hydrates, so the reader's clock decides which.\n- A `disabled` inline calendar puts `aria-disabled=\"true\"` on its grid or year list and disables every button in it. A `readOnly` one puts `aria-readonly=\"true\"` on the grid or year list it picks from, and keeps its tab stop and keys.\n- Roving `tabindex` keeps a single grid cell focusable at a time, and focus moves with it, inline as in the popover. When the focused date is disabled, that cell is the nearest enabled day of the month.\n- Closing the year list opened from the header, with a pick or `Escape`, puts focus back on the grid's tab stop, inline as in the popover.\n- The month grid is a `role=\"grid\"` of `role=\"row\"`s, labelled by the year in its header. Each month cell carries the full month name as its accessible name, `aria-current=\"date\"` for this month and `aria-disabled` for a month with no selectable day.\n- The year list is a `role=\"listbox\"`, named by the `chooseYear` label where it is the selection surface and by the heading that opens it otherwise. As the selection surface its options take `aria-selected` from the value's year rather than from focus, which roves through the list. When the focused year is disabled, the nearest enabled year takes the tab stop, so `Tab` still reaches the list.\n- The launcher and popover are named \"Choose month\" or \"Choose year\" to match the granularity; override them, and the month grid's \"Previous year\" / \"Next year\" buttons, through `labels` (`chooseMonth`, `chooseYear`, `prevYear`, `nextYear`).\n- Honors `prefers-reduced-motion` (skip popover fade-in).\n- On a right-to-left page the launcher sits at the end of the line and the calendar icon at the start, and the previous-month chevron points right. The month names follow the page.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.",
182
182
  "related": ["DateTimeInput", "Input", "TimeInput"],
183
183
  "storybook": "https://bestax.io/storybook/?path=/story/form-dateinput",
184
184
  "summary": "The `DateInput` component is a form input that opens a popover calendar for date selection.",
@@ -546,7 +546,7 @@
546
546
  "name": "position",
547
547
  "type": "'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'auto'",
548
548
  "default": "'bottom-left'",
549
- "description": "Where the popover opens against the field. Left out, it opens below and lines up with the field's start edge, which is its right edge when the picker reads right to left. A corner you pass stays physical, so `bottom-left` lines up the left edges either way.",
549
+ "description": "Where the popover opens against the field. Left out, it opens below and lines up with the field's start edge, which is its right edge when the picker reads right to left. A corner you pass stays physical, so `bottom-left` lines up the left edges either way. A panel that would run past the viewport's left or right edge keeps its corner and moves sideways, just far enough to fit or, wider than the viewport, to the edge its text starts from.",
550
550
  "required": false,
551
551
  "inherited": true,
552
552
  "deprecated": false
@@ -909,7 +909,7 @@
909
909
  "name": "position",
910
910
  "type": "'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'auto'",
911
911
  "default": "'bottom-left'",
912
- "description": "Where the popover opens against the field. Left out, it opens below and lines up with the field's start edge, which is its right edge when the picker reads right to left. A corner you pass stays physical, so `bottom-left` lines up the left edges either way.",
912
+ "description": "Where the popover opens against the field. Left out, it opens below and lines up with the field's start edge, which is its right edge when the picker reads right to left. A corner you pass stays physical, so `bottom-left` lines up the left edges either way. A panel that would run past the viewport's left or right edge keeps its corner and moves sideways, just far enough to fit or, wider than the viewport, to the edge its text starts from.",
913
913
  "required": false,
914
914
  "inherited": false,
915
915
  "deprecated": false
@@ -50,7 +50,7 @@
50
50
  "code": "<Field label=\"Leave\">\n <Control iconLeftName=\"calendar-alt\">\n <DateRangeInput />\n </Control>\n</Field>"
51
51
  }
52
52
  ],
53
- "accessibility": "- The root is a `role=\"group\"` named by `label` through `aria-labelledby`, since the label names two inputs rather than one. Inside a labeled `Field`, that `Field`'s label names the group the same way, whether the `Field` holds `DateRangeInput` or a `DateRangeInputBase` you composed in a `Control` yourself, `inline` or not. An `aria-label` or `aria-labelledby` you give the group wins over either label.\n- Each input is a `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded` and `aria-controls`, and its own name: \"Start date\" or \"End date\", from the `labels` keys `rangeStart` and `rangeEnd`. The separator between them is hidden from assistive technology.\n- The popover is a `role=\"dialog\"` named \"Choose date range\" (`labels.chooseDateRange`). Opening it puts focus on the calendar's focused day, and closing it returns focus to the input you were last in, or to the start input.\n- With `monthsToShow`, each month is a grid of its own, named by its month and year, and the calendar keeps one tab stop across them.\n- The day grid is `aria-multiselectable`, and its days sit in a `role=\"row\"` per week. Every day of the range is `aria-selected`, both ends included. While the end is still being picked, only the start is: the preview is not a selection.\n- A `disabled` inline calendar puts `aria-disabled=\"true\"` on its grid and disables every button in it. A `readOnly` one puts `aria-readonly=\"true\"` there instead, keeps its tab stop and keys, and picks nothing.\n- The start and end days are described as \"Start date\" and \"End date\", so moving onto either says which it is. While the end is still being picked, the day the range would end on is described as \"Choose as end date\" (`labels.rangePreviewEnd`).\n- A polite live region in the calendar states the range in words, such as \"Start date: June 10, 2024, End date: June 13, 2024\", and announces each pick. The grid points at it too, so moving into the grid reads the current range.\n- Everything else is the calendar `DateInput` uses: a roving `tabindex`, weekday column headers named in full (or by your `dayNames`), `aria-disabled` on disabled days, `aria-current=\"date\"` on today, and focus back on the grid as the year list closes.\n- On a right-to-left page the launcher sits at the end of the line and the calendar icon at the start, and the previous-month chevron points right.",
53
+ "accessibility": "- The root is a `role=\"group\"` named by `label` through `aria-labelledby`, since the label names two inputs rather than one. Inside a labeled `Field`, that `Field`'s label names the group the same way, whether the `Field` holds `DateRangeInput` or a `DateRangeInputBase` you composed in a `Control` yourself, `inline` or not. An `aria-label` or `aria-labelledby` you give the group wins over either label.\n- Each input is a `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded` and `aria-controls`, and its own name: \"Start date\" or \"End date\", from the `labels` keys `rangeStart` and `rangeEnd`. The separator between them is hidden from assistive technology.\n- The popover is a `role=\"dialog\"` named \"Choose date range\" (`labels.chooseDateRange`). Opening it puts focus on the calendar's focused day, and closing it returns focus to the input you were last in, or to the start input.\n- With `monthsToShow`, each month is a grid of its own, named by its month and year, and the calendar keeps one tab stop across them.\n- The day grid is `aria-multiselectable`, and its days sit in a `role=\"row\"` per week. Every day of the range is `aria-selected`, both ends included. While the end is still being picked, only the start is: the preview is not a selection.\n- A `disabled` inline calendar puts `aria-disabled=\"true\"` on its grid and disables every button in it. A `readOnly` one puts `aria-readonly=\"true\"` there instead, keeps its tab stop and keys, and picks nothing.\n- The start and end days are described as \"Start date\" and \"End date\", so moving onto either says which it is. While the end is still being picked, the day the range would end on is described as \"Choose as end date\" (`labels.rangePreviewEnd`).\n- A polite live region in the calendar states the range in words, such as \"Start date: June 10, 2024, End date: June 13, 2024\", and announces each pick. The grid points at it too, so moving into the grid reads the current range.\n- Everything else is the calendar `DateInput` uses: a roving `tabindex`, weekday column headers named in full (or by your `dayNames`), `aria-disabled` on disabled days, `aria-current=\"date\"` on today, and focus back on the grid as the year list closes.\n- On a right-to-left page the launcher sits at the end of the line and the calendar icon at the start, and the previous-month chevron points right.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.",
54
54
  "related": ["DateInput", "DateTimeInput", "Field"],
55
55
  "storybook": "https://bestax.io/storybook/?path=/story/form-daterangeinput",
56
56
  "summary": "The `DateRangeInput` component is a form input for a start and end date, picked from one popover calendar or typed into two segmented inputs.",
@@ -409,7 +409,7 @@
409
409
  "name": "position",
410
410
  "type": "'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'auto'",
411
411
  "default": "'bottom-left'",
412
- "description": "Where the popover opens against the field. Left out, it opens below and lines up with the field's start edge, which is its right edge when the picker reads right to left. A corner you pass stays physical, so `bottom-left` lines up the left edges either way.",
412
+ "description": "Where the popover opens against the field. Left out, it opens below and lines up with the field's start edge, which is its right edge when the picker reads right to left. A corner you pass stays physical, so `bottom-left` lines up the left edges either way. A panel that would run past the viewport's left or right edge keeps its corner and moves sideways, just far enough to fit or, wider than the viewport, to the edge its text starts from.",
413
413
  "required": false,
414
414
  "inherited": true,
415
415
  "deprecated": false
@@ -808,7 +808,7 @@
808
808
  "name": "position",
809
809
  "type": "'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'auto'",
810
810
  "default": "'bottom-left'",
811
- "description": "Where the popover opens against the field. Left out, it opens below and lines up with the field's start edge, which is its right edge when the picker reads right to left. A corner you pass stays physical, so `bottom-left` lines up the left edges either way.",
811
+ "description": "Where the popover opens against the field. Left out, it opens below and lines up with the field's start edge, which is its right edge when the picker reads right to left. A corner you pass stays physical, so `bottom-left` lines up the left edges either way. A panel that would run past the viewport's left or right edge keeps its corner and moves sideways, just far enough to fit or, wider than the viewport, to the edge its text starts from.",
812
812
  "required": false,
813
813
  "inherited": false,
814
814
  "deprecated": false
@@ -170,7 +170,7 @@
170
170
  "code": "<DateTimeInput label=\"Input only\" popover={false} defaultValue={new Date()} />"
171
171
  }
172
172
  ],
173
- "accessibility": "- Trigger uses `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls`.\n- Popover panel has `role=\"dialog\"` with an accessible name. Opening it puts focus on the focused date.\n- Closing the popover with `Escape`, the ✓ button or `Enter` on a time wheel returns focus to the input, whether the input or the launcher opened it. Under `openOnFocus` that returning focus leaves the popover closed; focusing or clicking the input again opens it. Closing it commits nothing by itself: an empty field stays empty, and leaving afterwards commits only what you typed, so seconds the display leaves out are kept.\n- Calendar uses `role=\"grid\"`. Its first row holds the weekday names as `role=\"columnheader\"`s, each named by the full weekday in the picker's locale, so a screen reader can name the weekday as focus moves to another column. A server-rendered calendar adds those full names once the page hydrates, and with `dayNames` the columns are named by the names you give instead. Each day keeps its number as its name.\n- Cells expose `aria-selected`, `aria-disabled`, and `aria-current=\"date\"` for today. On a server-rendered page, today gets it once the page hydrates, so the reader's clock decides which day.\n- Roving `tabindex` keeps a single day focusable at a time, and focus moves with it, inline as in the popover. When the focused date is disabled, that cell is the nearest enabled day of the month.\n- Closing the year list opened from the header, with a pick or `Escape`, puts focus back on the grid's tab stop, inline as in the popover.\n- A `disabled` inline panel puts `aria-disabled=\"true\"` on its grid and disables every button in it. A `readOnly` one puts `aria-readonly=\"true\"` there instead, and keeps its tab stop and keys.\n- Each time wheel uses `role=\"spinbutton\"` with `aria-valuemin`, `aria-valuemax`, `aria-valuenow`, and `aria-valuetext`, whose text is the number as the wheel shows it, in the picker's locale's digits when it has a locale. The values drawn above and below are click targets hidden from assistive technology, which reads the value from the spinbutton.\n- In a 12-hour picker, AM/PM is one of those wheels, reading `AM` or `PM`, or the picker's locale's words for them when it has a locale, and it widens to fit a longer word. Its accessible name is `AM/PM` unless `labels.ampm` sets another.\n- The footer's confirm button exposes an accessible label (`Done`); the Reset button reverts your edits to the value the popover opened with, or on an `inline` picker, to the one described under [Inline](https://bestax.io/docs/api/form/datetime/datetimeinput#inline).\n- Tab order walks from the calendar to the footer (Reset / ✓), and from the time wheels to the footer while they are open.\n- On a right-to-left page the launcher sits at the end of the line and the calendar icon at the start. The time wheels keep `dir=\"ltr\"`.",
173
+ "accessibility": "- Trigger uses `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls`.\n- Popover panel has `role=\"dialog\"` with an accessible name. Opening it puts focus on the focused date.\n- Closing the popover with `Escape`, the ✓ button or `Enter` on a time wheel returns focus to the input, whether the input or the launcher opened it. Under `openOnFocus` that returning focus leaves the popover closed; focusing or clicking the input again opens it. Closing it commits nothing by itself: an empty field stays empty, and leaving afterwards commits only what you typed, so seconds the display leaves out are kept.\n- Calendar uses `role=\"grid\"`. Its first row holds the weekday names as `role=\"columnheader\"`s, each named by the full weekday in the picker's locale, so a screen reader can name the weekday as focus moves to another column. A server-rendered calendar adds those full names once the page hydrates, and with `dayNames` the columns are named by the names you give instead. Each day keeps its number as its name.\n- Cells expose `aria-selected`, `aria-disabled`, and `aria-current=\"date\"` for today. On a server-rendered page, today gets it once the page hydrates, so the reader's clock decides which day.\n- Roving `tabindex` keeps a single day focusable at a time, and focus moves with it, inline as in the popover. When the focused date is disabled, that cell is the nearest enabled day of the month.\n- Closing the year list opened from the header, with a pick or `Escape`, puts focus back on the grid's tab stop, inline as in the popover.\n- A `disabled` inline panel puts `aria-disabled=\"true\"` on its grid and disables every button in it. A `readOnly` one puts `aria-readonly=\"true\"` there instead, and keeps its tab stop and keys.\n- Each time wheel uses `role=\"spinbutton\"` with `aria-valuemin`, `aria-valuemax`, `aria-valuenow`, and `aria-valuetext`, whose text is the number as the wheel shows it, in the picker's locale's digits when it has a locale. The values drawn above and below are click targets hidden from assistive technology, which reads the value from the spinbutton.\n- In a 12-hour picker, AM/PM is one of those wheels, reading `AM` or `PM`, or the picker's locale's words for them when it has a locale, and it widens to fit a longer word. Its accessible name is `AM/PM` unless `labels.ampm` sets another.\n- The footer's confirm button exposes an accessible label (`Done`); the Reset button reverts your edits to the value the popover opened with, or on an `inline` picker, to the one described under [Inline](https://bestax.io/docs/api/form/datetime/datetimeinput#inline).\n- Tab order walks from the calendar to the footer (Reset / ✓), and from the time wheels to the footer while they are open.\n- On a right-to-left page the launcher sits at the end of the line and the calendar icon at the start. The time wheels keep `dir=\"ltr\"`.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.",
174
174
  "related": ["DateInput", "Input", "TimeInput"],
175
175
  "storybook": "https://bestax.io/storybook/?path=/story/form-datetimeinput",
176
176
  "summary": "The `DateTimeInput` combines a calendar and a time **wheel spinner** in a single popover — an iOS-style layout.",
@@ -529,7 +529,7 @@
529
529
  "name": "position",
530
530
  "type": "'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'auto'",
531
531
  "default": "'bottom-left'",
532
- "description": "Where the popover opens against the field. Left out, it opens below and lines up with the field's start edge, which is its right edge when the picker reads right to left. A corner you pass stays physical, so `bottom-left` lines up the left edges either way.",
532
+ "description": "Where the popover opens against the field. Left out, it opens below and lines up with the field's start edge, which is its right edge when the picker reads right to left. A corner you pass stays physical, so `bottom-left` lines up the left edges either way. A panel that would run past the viewport's left or right edge keeps its corner and moves sideways, just far enough to fit or, wider than the viewport, to the edge its text starts from.",
533
533
  "required": false,
534
534
  "inherited": true,
535
535
  "deprecated": false
@@ -955,7 +955,7 @@
955
955
  "name": "position",
956
956
  "type": "'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'auto'",
957
957
  "default": "'bottom-left'",
958
- "description": "Where the popover opens against the field. Left out, it opens below and lines up with the field's start edge, which is its right edge when the picker reads right to left. A corner you pass stays physical, so `bottom-left` lines up the left edges either way.",
958
+ "description": "Where the popover opens against the field. Left out, it opens below and lines up with the field's start edge, which is its right edge when the picker reads right to left. A corner you pass stays physical, so `bottom-left` lines up the left edges either way. A panel that would run past the viewport's left or right edge keeps its corner and moves sideways, just far enough to fit or, wider than the viewport, to the edge its text starts from.",
959
959
  "required": false,
960
960
  "inherited": false,
961
961
  "deprecated": false
@@ -31,7 +31,7 @@
31
31
  "code": "<Message color=\"success\" title=\"Success Message\">\n This is a success message with a delete button in the header.\n</Message>"
32
32
  }
33
33
  ],
34
- "accessibility": "- **ARIA label:** Always set a meaningful `ariaLabel` for screen readers (default is `'Close'`).\n- **Keyboard:** The button is focusable and supports keyboard activation.\n- **Forms:** It renders `type=\"button\"`, so a delete button inside a form doesn't submit it.\n- **Disabled:** Uses both `disabled` and Bulma’s `is-disabled` for proper styling and accessibility.\n- **Forced colors:** Bulma draws the circle and the cross as background colors, which forced colors (Windows' contrast themes) replaces, so the button would vanish there while it still works and takes focus. bestax's styles keep it drawn in the system's button colors, with its focus ring in the system's highlight color, and a disabled one, or one inside a disabled `<fieldset>`, in the system's color for disabled controls. Every close button bestax renders is a `Delete`, apart from the [Modal](https://bestax.io/docs/api/components/modal)'s floating close and a [Tag](https://bestax.io/docs/api/elements/tag) with `isDelete`, and those are drawn the same way.\n\n:::tip\nFor custom close actions, use the `onClick` prop.\n:::",
34
+ "accessibility": "- **ARIA label:** Always set a meaningful `ariaLabel` for screen readers (default is `'Close'`).\n- **Keyboard:** The button is focusable and supports keyboard activation.\n- **Forms:** It renders `type=\"button\"`, so a delete button inside a form doesn't submit it.\n- **Disabled:** Uses both `disabled` and Bulma’s `is-disabled` for proper styling and accessibility.\n- **Forced colors:** Bulma draws the circle and the cross as background colors, which forced colors (Windows' contrast themes) replaces, so the button would vanish there while it still works and takes focus. bestax's styles keep it drawn in the system's button colors, with its focus ring in the system's highlight color, and a disabled one, or one inside a disabled `<fieldset>`, in the system's color for disabled controls. Every close button bestax renders is a `Delete`, apart from the [Modal](https://bestax.io/docs/api/components/modal)'s floating close, a [Tag](https://bestax.io/docs/api/elements/tag) with `isDelete`, and the [Sidebar](https://bestax.io/docs/api/components/sidebar)'s `Sidebar.Close`, and those keep their crosses in the system's colors too.\n\n:::tip\nFor custom close actions, use the `onClick` prop.\n:::",
35
35
  "related": ["Message", "Notification", "Tag", "useBulmaClasses"],
36
36
  "storybook": "https://bestax.io/storybook/?path=/story/elements-delete--default",
37
37
  "summary": "The `Delete` component provides a Bulma-styled close/delete button for dismissing modals, notifications, tags, messages, and more. It renders `type=\"button\"`, so a delete button inside a form does not submit it.",
@@ -42,7 +42,7 @@
42
42
  "code": "<Dropdown label=\"Dropdown Menu\" active>\n <Dropdown.Item>First Item</Dropdown.Item>\n <Dropdown.Item>Second Item</Dropdown.Item>\n <Dropdown.Divider />\n <Dropdown.Item>Third Item</Dropdown.Item>\n</Dropdown>"
43
43
  }
44
44
  ],
45
- "accessibility": "- The trigger is a `<button>` with `aria-haspopup=\"true\"` and `aria-expanded`, and its\n `aria-controls` points at the menu, with or without an `id` on the Dropdown.\n- The menu is `role=\"menu\"`, and `aria-labelledby` names it after the trigger, so a screen\n reader moving into it hears the trigger's label. That makes the `label` the menu's name too,\n so a trigger that shows only an icon needs text a screen reader can read, as in the\n [split button](https://bestax.io/docs/api/components/dropdown#split-button).\n- Each item is `role=\"menuitem\"`. An item given `role=\"menuitemcheckbox\"` or\n `role=\"menuitemradio\"` stays in the arrow-key order.\n- A click between items, on a divider say, focuses the menu itself, so the arrow keys still\n reach the items from there.\n- `Dropdown.Item as=\"button\"` defaults to `type=\"button\"`, so a menu item inside a form doesn't\n submit it. Pass `type=\"submit\"` or `type=\"reset\"` and yours is used instead; any other value\n renders `type=\"button\"`.\n- Pressing outside an open menu closes it.\n- A click the browser dispatches with no pointer behind it (`detail` 0), as a screen reader's\n browse mode can send when you activate the trigger, opens the menu and focuses its first enabled\n item, as <kbd>Enter</kbd> does. A pointer's click on the trigger, and a script's `click()`, open\n it and move no focus into it.\n\nThe keyboard follows the [WAI-ARIA Menu Button pattern](https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/).\nUnlike the pattern's menu items, each item is also a tab stop, so <kbd>Tab</kbd> from the\ntrigger of a `hoverable` menu the pointer holds open goes through its items.\n\n- On the trigger: <kbd>ArrowDown</kbd> or <kbd>Enter</kbd>/<kbd>Space</kbd> open the menu and\n focus the first item; <kbd>ArrowUp</kbd> opens the menu and focuses the last item;\n <kbd>Escape</kbd> closes an open menu. On the trigger of a menu that's already open,\n <kbd>ArrowDown</kbd>/<kbd>ArrowUp</kbd> focus the first/last item and\n <kbd>Enter</kbd>/<kbd>Space</kbd> close it.\n- Inside the menu: <kbd>ArrowDown</kbd>/<kbd>ArrowUp</kbd> move between items and wrap around;\n <kbd>Home</kbd>/<kbd>End</kbd> jump to the first/last item; <kbd>Escape</kbd> closes the menu\n and returns focus to the trigger.\n- <kbd>Tab</kbd> in an open menu closes it and moves focus to the next tab stop after the\n Dropdown, and <kbd>Shift</kbd>+<kbd>Tab</kbd> closes it and focuses the trigger. Inside a\n focus trap, such as a `Modal`'s, a Dropdown with nothing after it sends Tab to the trap's\n first stop, as Tab from the trap's last stop does.\n- Typing a letter moves to the next item whose text starts with it, and typing it again cycles\n through the items that do. Letters typed in quick succession add up to one search, so\n <kbd>d</kbd> then <kbd>u</kbd> lands on \"Duplicate\" past \"Download\". Text hidden with\n `aria-hidden`, such as an icon's ligature name, doesn't count, and a new search starts each\n time the menu opens. Typing searches once focus is in the menu, where the trigger's keys\n above put it. A letter typed on the trigger itself does nothing.\n- On an item: <kbd>Enter</kbd> or <kbd>Space</kbd> activates it the way a click does, so its\n `onClick` runs and the menu closes unless `closeOnClick` is `false`. That includes the\n default anchor without an `href` and `as=\"div\"`, which the browser would not activate on\n its own. Holding the key down runs it once.\n- When running an item closes the menu, by click or by key, focus goes back to the trigger,\n as it does for <kbd>Escape</kbd>. An item whose `onClick` moves focus somewhere else keeps\n it there.\n- Disabled items (a `Dropdown.Item` rendered with a native `disabled` attribute or\n `aria-disabled=\"true\"`) and dividers are skipped by the arrow keys and by typing.\n- For a panel built around fields, [`Popover`](https://bestax.io/docs/api/components/popover) fits better: `role=\"menu\"` owns\n menu items, and the default `closeOnClick` shuts the menu on a click anywhere in it, a field\n included. Anything focusable you put in the menu anyway that isn't an item (a field, a\n button, a checkbox, a link without a menu-item role) keeps its own keys, so its arrows,\n <kbd>Home</kbd>, <kbd>End</kbd> and letters don't move to the items. A field needs\n `closeOnClick={false}`, or a click into it closes the menu. <kbd>Escape</kbd> and\n <kbd>Tab</kbd> still close the menu from any of them, except an <kbd>Escape</kbd> the\n control used itself by calling `preventDefault()` in its `onKeyDown`, such as an Autocomplete\n closing its list or a date picker closing its calendar.\n The next <kbd>Escape</kbd> closes the menu.",
45
+ "accessibility": "- The trigger is a `<button>` with `aria-haspopup=\"true\"` and `aria-expanded`, and its\n `aria-controls` points at the menu, with or without an `id` on the Dropdown.\n- The menu is `role=\"menu\"`, and `aria-labelledby` names it after the trigger, so a screen\n reader moving into it hears the trigger's label. That makes the `label` the menu's name too,\n so a trigger that shows only an icon needs text a screen reader can read, as in the\n [split button](https://bestax.io/docs/api/components/dropdown#split-button).\n- Each item is `role=\"menuitem\"`. An item given `role=\"menuitemcheckbox\"` or\n `role=\"menuitemradio\"` stays in the arrow-key order.\n- `Dropdown.Item active` sets `aria-current=\"true\"`, so the current item isn't only a color. An\n `aria-current` you pass wins: a menu of pages can say `\"page\"`, and `aria-current={false}`\n turns it off, as on an item that says its state with `aria-checked`.\n- A click between items, on a divider say, focuses the menu itself, so the arrow keys still\n reach the items from there.\n- `Dropdown.Item as=\"button\"` defaults to `type=\"button\"`, so a menu item inside a form doesn't\n submit it. Pass `type=\"submit\"` or `type=\"reset\"` and yours is used instead; any other value\n renders `type=\"button\"`.\n- Pressing outside an open menu closes it.\n- A click the browser dispatches with no pointer behind it (`detail` 0), as a screen reader's\n browse mode can send when you activate the trigger, opens the menu and focuses its first enabled\n item, as <kbd>Enter</kbd> does. A pointer's click on the trigger, and a script's `click()`, open\n it and move no focus into it.\n\nThe keyboard follows the [WAI-ARIA Menu Button pattern](https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/).\nUnlike the pattern's menu items, each item is also a tab stop, so <kbd>Tab</kbd> from the\ntrigger of a `hoverable` menu the pointer holds open goes through its items.\n\n- On the trigger: <kbd>ArrowDown</kbd> or <kbd>Enter</kbd>/<kbd>Space</kbd> open the menu and\n focus the first item; <kbd>ArrowUp</kbd> opens the menu and focuses the last item;\n <kbd>Escape</kbd> closes an open menu. On the trigger of a menu that's already open,\n <kbd>ArrowDown</kbd>/<kbd>ArrowUp</kbd> focus the first/last item and\n <kbd>Enter</kbd>/<kbd>Space</kbd> close it.\n- Inside the menu: <kbd>ArrowDown</kbd>/<kbd>ArrowUp</kbd> move between items and wrap around;\n <kbd>Home</kbd>/<kbd>End</kbd> jump to the first/last item; <kbd>Escape</kbd> closes the menu\n and returns focus to the trigger.\n- <kbd>Tab</kbd> in an open menu closes it and moves focus to the next tab stop after the\n Dropdown, and <kbd>Shift</kbd>+<kbd>Tab</kbd> closes it and focuses the trigger. Inside a\n focus trap, such as a `Modal`'s, a Dropdown with nothing after it sends Tab to the trap's\n first stop, as Tab from the trap's last stop does.\n- Typing a letter moves to the next item whose text starts with it, and typing it again cycles\n through the items that do. Letters typed in quick succession add up to one search, so\n <kbd>d</kbd> then <kbd>u</kbd> lands on \"Duplicate\" past \"Download\". Text hidden with\n `aria-hidden`, such as an icon's ligature name, doesn't count, and a new search starts each\n time the menu opens. Typing searches once focus is in the menu, where the trigger's keys\n above put it. A letter typed on the trigger itself does nothing.\n- On an item: <kbd>Enter</kbd> or <kbd>Space</kbd> activates it the way a click does, so its\n `onClick` runs and the menu closes unless `closeOnClick` is `false`. That includes the\n default anchor without an `href` and `as=\"div\"`, which the browser would not activate on\n its own. Holding the key down runs it once.\n- When running an item closes the menu, by click or by key, focus goes back to the trigger,\n as it does for <kbd>Escape</kbd>. An item whose `onClick` moves focus somewhere else keeps\n it there.\n- Disabled items (a `Dropdown.Item` rendered with a native `disabled` attribute or\n `aria-disabled=\"true\"`) and dividers are skipped by the arrow keys and by typing.\n- For a panel built around fields, [`Popover`](https://bestax.io/docs/api/components/popover) fits better: `role=\"menu\"` owns\n menu items, and the default `closeOnClick` shuts the menu on a click anywhere in it, a field\n included. Anything focusable you put in the menu anyway that isn't an item (a field, a\n button, a checkbox, a link without a menu-item role) keeps its own keys, so its arrows,\n <kbd>Home</kbd>, <kbd>End</kbd> and letters don't move to the items. A field needs\n `closeOnClick={false}`, or a click into it closes the menu. <kbd>Escape</kbd> and\n <kbd>Tab</kbd> still close the menu from any of them, except an <kbd>Escape</kbd> the\n control used itself by calling `preventDefault()` in its `onKeyDown`, such as an Autocomplete\n closing its list or a date picker closing its calendar.\n The next <kbd>Escape</kbd> closes the menu.",
46
46
  "related": ["Button", "ContextMenu", "Popover", "useBulmaClasses"],
47
47
  "storybook": "https://bestax.io/storybook/?path=/story/components-dropdown--default",
48
48
  "summary": "The `Dropdown` component provides Bulma's versatile dropdown menu for your Bulma React UI. Down, Enter and Space on the trigger open the menu on its first enabled item, and Up opens it on its last. A click the browser dispatches with no pointer behind it (`detail` 0), as a screen reader's browse mode can send, opens it on its first enabled item too. A pointer's click on the trigger, and a script's `click()`, move no focus into the menu. On the trigger of a menu that's already open, Down and Up move focus to its first and last item. In the menu, the arrow keys, Home and End move between the items, and Enter and Space run the focused one the way a click does. Typing a letter moves to the next item whose text starts with it, skipping disabled ones, and letters typed in quick succession add up to one search. Typing searches once focus is in the menu, so a letter typed on the trigger does nothing. Escape closes the menu and focuses the trigger. Tab closes it and moves focus to the next tab stop after the Dropdown, wrapping inside a focus trap such as Modal's, and Shift+Tab closes it and focuses the trigger. Anything focusable in the menu that isn't an item, such as a field, keeps its own keys apart from Escape and Tab, though an Escape it calls `preventDefault()` on in its own `onKeyDown` stays its own and leaves the menu open. For a panel built around fields, use `Popover`.",
@@ -196,7 +196,7 @@
196
196
  "name": "active",
197
197
  "type": "boolean",
198
198
  "default": "false",
199
- "description": "Whether the item is active.",
199
+ "description": "Marks the item as the current one. It adds Bulma's `is-active` class, and `aria-current=\"true\"`, so assistive tech can tell which item is current too. An `aria-current` you pass wins, `false` and `undefined` included, so an item that says its state another way, such as a `menuitemradio` with `aria-checked`, takes `aria-current={false}`.",
200
200
  "required": false,
201
201
  "inherited": false,
202
202
  "deprecated": false
@@ -30,7 +30,7 @@
30
30
  "code": "function example() {\n const [open, setOpen] = useState(false);\n const [following, setFollowing] = useState(false);\n\n return (\n <>\n <Paragraph mb=\"3\">\n The card is {open ? 'open' : 'closed'}\n {following ? ', and you follow Ada' : ''}.\n </Paragraph>\n <HoverCard\n open={open}\n onOpenChange={setOpen}\n trigger={<Link href=\"#ada\">Ada Lovelace</Link>}\n >\n <Paragraph mb=\"3\">Analytical Engine team</Paragraph>\n <Button\n size=\"small\"\n color=\"primary\"\n onClick={() => {\n setFollowing(true);\n setOpen(false);\n }}\n >\n Follow\n </Button>\n </HoverCard>\n </>\n );\n}"
31
31
  }
32
32
  ],
33
- "accessibility": "`HoverCard` is built to\n[WCAG's Content on Hover or Focus](https://www.w3.org/WAI/WCAG22/Understanding/content-on-hover-or-focus.html)\ncriterion, condition by condition:\n\n- **Dismissible:** <kbd>Escape</kbd> closes the card wherever focus is, without you moving the\n pointer or focus. In controlled use it asks to close through `onOpenChange`, so the card closes\n when you set `open` to `false`. The keypress belongs to whatever has focus. When that's the card,\n its trigger or nothing, the card takes it, so a `Popover` or `Modal` around it stays open. When\n it's something else, such as a field elsewhere on the page or a `Modal` opened from the card, the\n card still closes and the key goes on to it. With one card inside another, the inner one closes\n first. Focus that was in the card goes back to the trigger, and the card stays closed until the\n pointer or focus leaves and comes back, or, with `openOnTap`, until the next tap on the trigger.\n- **Hoverable:** the pointer can move from the trigger onto the card. `closeDelay` covers the gap\n between them, and the card takes pointer events.\n- **Persistent:** no timer closes a card that's hovered or focused. Focus inside the card holds it\n however it got there. Whether a click focuses what it lands on is up to the browser, though:\n Safari and Firefox on macOS don't focus a button on click, so there a clicked button doesn't keep\n the card open once the pointer moves away.\n\nAnd around it:\n\n- Keyboard focus on the trigger opens the card, as hover does. Focus that a press brings doesn't,\n and neither does a touch pointer, so tapping the trigger on a phone just does what the trigger\n does. Clicking the trigger never toggles the card.\n- By default, then, a phone or tablet never opens the card, so whatever it shows has to be\n reachable from the trigger as well. `openOnTap` opens it with a tap, for a trigger with no tap\n action of its own. While a tap holds it open, a tap outside the trigger and the card closes it.\n- The trigger gets `aria-expanded` and `aria-controls`, which say it's expanded and name the card\n only while the card is on the page. It gets no role, no tab stop and no `aria-haspopup`, so the trigger element itself has to\n take focus, such as a link or a button. A link inside a `<span>` doesn't do, since focus comes\n back to the trigger and its ARIA is on it. A development build warns when the trigger can't take\n focus.\n- The card is a plain element with an `id` and no role. It isn't a dialog, since focus doesn't move\n into it, and it isn't a tooltip, since it can hold links. In place, a screen reader meets it\n right after the trigger, Tab goes from the trigger into its links and buttons, and tabbing past\n them closes it.\n- With `appendToBody` the card sits in the Tab order where its container is. By default that's\n the end of `<body>`, or of the overlay it's in that takes its popups, such as a `Modal`, so it\n comes last: Tab reaches it only after the rest of the page or the overlay, and focus leaving the\n trigger on the way closes it. In a dialog, a screen reader that honors its `aria-modal` reaches it there. Keyboard users can open it, read it and close it, so\n whatever it links to should be reachable from the page as well.\n- Opening the card moves no focus, and nothing traps it. Links and buttons belong in a card; a form\n belongs in a `Popover`, which opens on purpose and holds focus.\n- The fade-in is turned off under `prefers-reduced-motion: reduce`.\n- On a right-to-left page a card with no `position` lines its right edge up with the trigger's, so\n a trigger at the start of the line doesn't push the card off the screen. A `position` you pass\n stays physical: `bottom-left` lines up the left edges on either page.",
33
+ "accessibility": "`HoverCard` is built to\n[WCAG's Content on Hover or Focus](https://www.w3.org/WAI/WCAG22/Understanding/content-on-hover-or-focus.html)\ncriterion, condition by condition:\n\n- **Dismissible:** <kbd>Escape</kbd> closes the card wherever focus is, without you moving the\n pointer or focus. In controlled use it asks to close through `onOpenChange`, so the card closes\n when you set `open` to `false`. The keypress belongs to whatever has focus. When that's the card,\n its trigger or nothing, the card takes it, so a `Popover` or `Modal` around it stays open. When\n it's something else, such as a field elsewhere on the page or a `Modal` opened from the card, the\n card still closes and the key goes on to it. With one card inside another, the inner one closes\n first. Focus that was in the card goes back to the trigger, and the card stays closed until the\n pointer or focus leaves and comes back, or, with `openOnTap`, until the next tap on the trigger.\n- **Hoverable:** the pointer can move from the trigger onto the card. `closeDelay` covers the gap\n between them, and the card takes pointer events.\n- **Persistent:** no timer closes a card that's hovered or focused. Focus inside the card holds it\n however it got there. Whether a click focuses what it lands on is up to the browser, though:\n Safari and Firefox on macOS don't focus a button on click, so there a clicked button doesn't keep\n the card open once the pointer moves away.\n\nAnd around it:\n\n- Keyboard focus on the trigger opens the card, as hover does. Focus that a press brings doesn't,\n and neither does a touch pointer, so tapping the trigger on a phone just does what the trigger\n does. Clicking the trigger never toggles the card.\n- By default, then, a phone or tablet never opens the card, so whatever it shows has to be\n reachable from the trigger as well. `openOnTap` opens it with a tap, for a trigger with no tap\n action of its own. While a tap holds it open, a tap outside the trigger and the card closes it.\n- The trigger gets `aria-expanded` and `aria-controls`, which say it's expanded and name the card\n only while the card is on the page. It gets no role, no tab stop and no `aria-haspopup`, so the trigger element itself has to\n take focus, such as a link or a button. A link inside a `<span>` doesn't do, since focus comes\n back to the trigger and its ARIA is on it. A development build warns when the trigger can't take\n focus.\n- The card is a plain element with an `id` and no role. It isn't a dialog, since focus doesn't move\n into it, and it isn't a tooltip, since it can hold links. In place, a screen reader meets it\n right after the trigger, Tab goes from the trigger into its links and buttons, and tabbing past\n them closes it.\n- With `appendToBody` the card sits in the Tab order where its container is. By default that's\n the end of `<body>`, or of the overlay it's in that takes its popups, such as a `Modal`, so it\n comes last: Tab reaches it only after the rest of the page or the overlay, and focus leaving the\n trigger on the way closes it. In a dialog, a screen reader that honors its `aria-modal` reaches it there. Keyboard users can open it, read it and close it, so\n whatever it links to should be reachable from the page as well.\n- Opening the card moves no focus, and nothing traps it. Links and buttons belong in a card; a form\n belongs in a `Popover`, which opens on purpose and holds focus.\n- The fade-in is turned off under `prefers-reduced-motion: reduce`.\n- On a right-to-left page a card with no `position` lines its right edge up with the trigger's, so\n a trigger at the start of the line doesn't push the card off the screen. A `position` you pass\n stays physical: `bottom-left` lines up the left edges on either page.\n- A card that would run past the left or right edge of the screen, as on a phone with the\n trigger mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.",
34
34
  "related": ["Media", "Popover", "Portal", "Tooltip", "useBulmaClasses"],
35
35
  "storybook": "https://bestax.io/storybook/?path=/story/components-hovercard--default",
36
36
  "summary": "The `HoverCard` component shows a card previewing what's behind a link or a button while the pointer rests on it or keyboard focus is on it. Nothing moves focus when the card opens, and nothing traps it. In place, the card comes right after the trigger, so Tab goes from the trigger into its links and tabbing past them closes it. The pointer can move onto the card, Escape closes it from anywhere, and by default touch doesn't open it, so tapping the trigger just does what the trigger does. `openOnTap` opens it with a tap, for a trigger with no tap action of its own. For hints with nothing to click use `Tooltip`, and for content opened on purpose, such as a form, use `Popover`.",
@@ -110,7 +110,7 @@
110
110
  "name": "position",
111
111
  "type": "'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'auto'",
112
112
  "default": "'bottom-left'",
113
- "description": "Where the card opens against the trigger. Left out, it opens below and lines up with the trigger's start edge, which is its right edge on a right-to-left page, so a trigger at the start of the line doesn't push the card off the screen. A corner you pass stays physical, so `bottom-left` lines up the left edges on either page.",
113
+ "description": "Where the card opens against the trigger. Left out, it opens below and lines up with the trigger's start edge, which is its right edge on a right-to-left page, so a trigger at the start of the line doesn't push the card off the screen. A corner you pass stays physical, so `bottom-left` lines up the left edges on either page. A panel that would run past the viewport's left or right edge keeps its corner and moves sideways, just far enough to fit or, wider than the viewport, to the edge its text starts from.",
114
114
  "required": false,
115
115
  "inherited": false,
116
116
  "deprecated": false
@@ -51,7 +51,7 @@
51
51
  "code": "function example() {\n const linkRef = React.useRef<HTMLAnchorElement>(null);\n const [tag, setTag] = React.useState<string>();\n\n return (\n <>\n <Link href=\"#target\" ref={linkRef} textColor=\"primary\">\n Target\n </Link>\n <Button ml=\"2\" onClick={() => setTag(linkRef.current?.tagName)}>\n Read the tag from its ref\n </Button>\n <p>Rendered element: {tag ?? '—'}</p>\n </>\n );\n}"
52
52
  }
53
53
  ],
54
- "accessibility": "- **Descriptive Text:** Use meaningful link text that describes the destination, not generic text like \"click here\".\n- **External Links:** When opening links in new tabs, consider informing users (e.g., with an icon or text like \"opens in new tab\").\n- **Focus States:** Links inherit browser focus styles. Customize with CSS if needed.\n- **Keyboard Navigation:** Links are naturally keyboard accessible via Tab and Enter keys.\n\n:::info\nFor navigation menus, consider using the `isActive` prop to indicate the current page.\n:::\n\n:::warning Links Are for Navigation, Buttons Are for Actions\nPer [Section 508](https://www.section508.gov/) and [eslint-plugin-jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y) best practices, links (`<a>`) should navigate to a URL — not trigger an action via `onClick` alone. If your element performs an action (opening a modal, submitting data, toggling state, etc.) without navigating, use a [`Button`](https://bestax.io/docs/api/elements/button) or [`LinkButton`](https://bestax.io/docs/api/elements/linkbutton) instead. A `<Link href=\"#\" onClick={handleClick}>` is an anti-pattern that confuses screen readers and fails accessibility audits.\n:::",
54
+ "accessibility": "- **Descriptive Text:** Use meaningful link text that describes the destination, not generic text like \"click here\".\n- **External Links:** When opening links in new tabs, consider informing users (e.g., with an icon or text like \"opens in new tab\").\n- **Current page:** `isActive` writes `aria-current=\"page\"` beside Bulma's `is-active` class, so\n a screen reader says which link is the page you're on, the way a menu or navbar draws it. Pass\n `aria-current=\"location\"` for a section of one page, and give an active link that isn't\n navigation, such as an `as=\"button\"` toggle, `aria-current={false}`.\n- **Focus States:** Links inherit browser focus styles. Customize with CSS if needed.\n- **Keyboard Navigation:** Links are naturally keyboard accessible via Tab and Enter keys.\n\n:::info\nIn a `Menu` or a `Navbar`, mark the current item with `Menu.Item`'s or `Navbar.Item`'s `active`,\nwhich does the same for its item.\n:::\n\n:::warning Links Are for Navigation, Buttons Are for Actions\nPer [Section 508](https://www.section508.gov/) and [eslint-plugin-jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y) best practices, links (`<a>`) should navigate to a URL — not trigger an action via `onClick` alone. If your element performs an action (opening a modal, submitting data, toggling state, etc.) without navigating, use a [`Button`](https://bestax.io/docs/api/elements/button) or [`LinkButton`](https://bestax.io/docs/api/elements/linkbutton) instead. A `<Link href=\"#\" onClick={handleClick}>` is an anti-pattern that confuses screen readers and fails accessibility audits.\n:::",
55
55
  "related": ["Button", "Paragraph", "useBulmaClasses"],
56
56
  "storybook": "https://bestax.io/storybook/?path=/story/elements-link--default",
57
57
  "summary": "The `Link` component renders a styled anchor (`<a>`) element with Bulma helper class integration.",
@@ -106,7 +106,7 @@
106
106
  "name": "isActive",
107
107
  "type": "boolean",
108
108
  "default": "false",
109
- "description": "Whether the link appears active.",
109
+ "description": "Marks the link as the current one. It adds Bulma's `is-active` class, which Bulma's menus and navbars draw as the current page, and `aria-current=\"page\"`, so assistive tech can tell which link is current too. The `aria-current` goes to what `as` renders like any other prop, so a component of your own decides what to do with it. An `aria-current` you pass wins, even `undefined`: use it to say something else (`\"location\"` for a section of one page, say), and give an active link that isn't navigation, such as an `as=\"button\"` toggle, `aria-current={false}`.",
110
110
  "required": false,
111
111
  "inherited": false,
112
112
  "deprecated": false
@@ -34,7 +34,7 @@
34
34
  "code": "function example() {\n const [isLoading, setIsLoading] = useState(false);\n\n const handleClick = () => {\n setIsLoading(true);\n // Simulate async operation\n setTimeout(() => setIsLoading(false), 2000);\n };\n\n return (\n <Box relative p=\"5\" style={{ height: '150px' }}>\n <Loading active={isLoading}>Loading data...</Loading>\n <Paragraph>Click the button to see the loading overlay.</Paragraph>\n <Button color=\"primary\" onClick={handleClick} disabled={isLoading} mt=\"3\">\n Load Data\n </Button>\n </Box>\n );\n}"
35
35
  }
36
36
  ],
37
- "accessibility": "- While it's active, what it covers is inert: Tab, Enter and Space don't reach it and screen readers skip it, just as a click lands on the overlay instead. A loading inside a container makes the container's other children inert, and a full-page one makes the rest of the page inert, as a modal does. Its own content, the cancel button included, stays reachable\n- A control under the overlay that had focus when the loading started loses it, since nothing inert can hold focus. It gets focus back when the loading goes away, unless focus has moved on in the meantime. So keep a field someone is typing in, such as the search box whose input starts the load, outside the container the loading covers\n- It makes inert what's there when it turns on, so an element that mounts beside it later isn't. Anything that was inert already is still inert once the loading goes away\n- Show one loading at a time over the same content. Two that cover each other, such as two in one container or two full-page ones, make each other inert, cancel buttons and all, so only Escape is left to cancel one of them\n- Uses `role=\"alert\"` to announce loading state to screen readers\n- Has `aria-busy=\"true\"` to indicate loading status\n- Has `aria-label=\"Loading\"` for the loading container\n- Cancel button has proper `aria-label` for accessibility\n- The Cancel button's label defaults to the scheme's text color (`--bulma-loading-cancel-color` is `var(--bulma-text)`), so it reads on the light and dark schemes alike\n- Escape key support for cancelling (when `canCancel` is true). An Escape that closed a popup on the page, such as a Dropdown menu or a date picker's calendar, doesn't cancel\n- A full-page loading takes its turn for Escape with [Modal](https://bestax.io/docs/api/components/modal), [Dialog](https://bestax.io/docs/api/components/dialog) and [Sidebar](https://bestax.io/docs/api/components/sidebar), since it covers them: one Escape goes to whichever opened last. Shown over an open Modal, it cancels on the first Escape and the Modal closes on the next. While it's on top, even when it can't be cancelled, the Modal under it doesn't close on Escape or hold Tab\n- A loading inside a container covers only that container, so it cancels on Escape once no Modal, Dialog, Sidebar or full-page loading is open\n- The spinner with no `color` is Bulma's `text-weak`, and a `color` draws it in the color's on-scheme lightness, the one Bulma adjusts for text on the scheme's background, so it clears WCAG 1.4.11's 3:1 against the page's color, which the overlay is drawn in, in light and dark mode. The overlay lets what it covers show through, so over content that isn't the page's color, `overlay=\"opaque\"` keeps that 3:1. 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- In forced colors (Windows' contrast themes), the spinner is drawn as a ring in the theme's text color with its top side open, since forced colors drops the gradient it's normally drawn with. The overlay turns solid there, whatever `overlay` is set to, so the page beneath doesn't show through behind the ring or the text. A custom `indicator` is your own content, so it's up to you that it shows there too",
37
+ "accessibility": "- While it's active, what it covers is inert: Tab, Enter and Space don't reach it and screen readers skip it, just as a click lands on the overlay instead. A loading inside a container makes the container's other children inert, and a full-page one makes the rest of the page inert, as a modal does. Its own content, the cancel button included, stays reachable\n- A control under the overlay that had focus when the loading started loses it, since nothing inert can hold focus. It gets focus back when the loading goes away, unless focus has moved on in the meantime. So keep a field someone is typing in, such as the search box whose input starts the load, outside the container the loading covers\n- It makes inert what's there when it turns on, so an element that mounts beside it later isn't. Anything that was inert already is still inert once the loading goes away\n- Show one loading at a time over the same content. Two that cover each other, such as two in one container or two full-page ones, make each other inert, cancel buttons and all, so only Escape is left to cancel one of them\n- Uses `role=\"alert\"` to announce loading state to screen readers\n- Has `aria-busy=\"true\"` to indicate loading status\n- Has `aria-label=\"Loading\"` for the loading container\n- Cancel button has proper `aria-label` for accessibility\n- Escape key support for cancelling (when `canCancel` is true). An Escape that closed a popup on the page, such as a Dropdown menu or a date picker's calendar, doesn't cancel\n- A full-page loading takes its turn for Escape with [Modal](https://bestax.io/docs/api/components/modal), [Dialog](https://bestax.io/docs/api/components/dialog) and [Sidebar](https://bestax.io/docs/api/components/sidebar), since it covers them: one Escape goes to whichever opened last. Shown over an open Modal, it cancels on the first Escape and the Modal closes on the next. While it's on top, even when it can't be cancelled, the Modal under it doesn't close on Escape or hold Tab\n- A loading inside a container covers only that container, so it cancels on Escape once no Modal, Dialog, Sidebar or full-page loading is open\n- Loading takes Bulma's colors. The spinner is `grey-light` with no `color`, and the color itself with one. The Cancel button's label is `text-light`, and under the pointer its label is `text` and its border `text-light`. On a light page, against the page's color, which `overlay=\"opaque\"` draws the overlay in, `grey-light` and some of the colors fall short of the 3:1 that WCAG 1.4.11 asks of a graphic, and `text-light` falls well short of the 4.5:1 a label needs. For more, set `--bulma-loading-icon-spin-color`, `--bulma-loading-cancel-color` and `--bulma-loading-cancel-hover-border-color` to colors such as `var(--bulma-text-weak)`, `var(--bulma-text)` and `var(--bulma-border-hover)` on a class you pass through `className`, with the loading's class in the selector (`.loading.my-loading`, `.bestax-loading.my-loading` under the prefixed flavor) so it wins whatever order the stylesheets load in. A `color` sets the spinner's on a rule of the same weight, so for a colored spinner pick a `color` that reads on your page. A see-through overlay lets what it covers show around the spinner, so over content that isn't the page's color, `overlay=\"opaque\"` keeps the spinner on the page's color\n- In forced colors (Windows' contrast themes), the spinner is drawn as a ring in the theme's text color with its top side open, since forced colors drops the gradient it's normally drawn with. The overlay turns solid there, whatever `overlay` is set to, so the page beneath doesn't show through behind the ring or the text. A custom `indicator` is your own content, so it's up to you that it shows there too",
38
38
  "related": [],
39
39
  "storybook": null,
40
40
  "summary": "The `Loading` component provides a loading overlay with a spinner animation.",
@@ -78,7 +78,7 @@
78
78
  "name": "color",
79
79
  "type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
80
80
  "default": null,
81
- "description": "Color variant for the spinner, 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. Without it, the spinner is the scheme's weak text color.",
81
+ "description": "Color variant for the spinner, drawn in the color itself. Without it, the spinner is Bulma's `grey-light`.",
82
82
  "required": false,
83
83
  "inherited": false,
84
84
  "deprecated": false
@@ -250,7 +250,7 @@
250
250
  {
251
251
  "css": "--bulma-loading-icon-spin-color",
252
252
  "sass": "$loading-icon-spin-color",
253
- "default": "var(--bulma-text-weak)",
253
+ "default": "var(--bulma-grey-light)",
254
254
  "scope": "root"
255
255
  },
256
256
  {
@@ -274,7 +274,7 @@
274
274
  {
275
275
  "css": "--bulma-loading-cancel-color",
276
276
  "sass": "$loading-cancel-color",
277
- "default": "var(--bulma-text)",
277
+ "default": "var(--bulma-text-light)",
278
278
  "scope": "root"
279
279
  },
280
280
  {
@@ -292,13 +292,13 @@
292
292
  {
293
293
  "css": "--bulma-loading-cancel-hover-color",
294
294
  "sass": "$loading-cancel-hover-color",
295
- "default": "var(--bulma-text-strong)",
295
+ "default": "var(--bulma-text)",
296
296
  "scope": "root"
297
297
  },
298
298
  {
299
299
  "css": "--bulma-loading-cancel-hover-border-color",
300
300
  "sass": "$loading-cancel-hover-border-color",
301
- "default": "var(--bulma-border-hover)",
301
+ "default": "var(--bulma-text-light)",
302
302
  "scope": "root"
303
303
  },
304
304
  {
@@ -38,7 +38,7 @@
38
38
  "code": "<Popover trigger={<Button>Rename</Button>}>\n <Popover.Header>Rename file</Popover.Header>\n <Popover.Body>\n <Input aria-label=\"File name\" defaultValue=\"report.pdf\" />\n </Popover.Body>\n <Popover.Footer>\n <Popover.Close>Cancel</Popover.Close>\n <Popover.Close color=\"primary\">Save</Popover.Close>\n </Popover.Footer>\n</Popover>"
39
39
  }
40
40
  ],
41
- "accessibility": "`Popover` follows the [WAI-ARIA dialog pattern](https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/)\nfor a non-modal dialog:\n\n- The panel is a `role=\"dialog\"` without `aria-modal`. It is named by its `Popover.Header` through\n `aria-labelledby`, or by `ariaLabel`, which takes precedence. A development build warns when an\n open panel has neither.\n- The trigger gets `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls` pointing at the\n panel while it is open.\n- Opening moves focus to the first control in the panel, or to the panel itself when it has none.\n Closing hands focus back to the trigger, as long as focus is still in the panel then, so a click\n that put it somewhere else keeps it there.\n- Tab and Shift+Tab wrap inside the open panel, which the pattern asks of non-modal dialogs too.\n Pointer focus, the screen reader's reading cursor and the rest of the page stay free: nothing\n outside is hidden or made inert, and the page still scrolls. `trapFocus={false}` lets Tab leave.\n- <kbd>Escape</kbd> closes the popover while focus is in the panel or on the trigger. A dialog\n nested inside the panel, such as a date picker's calendar or another popover, takes its own\n Escape first.\n- <kbd>Enter</kbd> and <kbd>Space</kbd> toggle a trigger the browser doesn't click on its own.\n- The open animation is turned off under `prefers-reduced-motion: reduce`.\n- On a right-to-left page a popover with no `position` lines its right edge up with the trigger's, so a trigger at the start of the line doesn't push the panel off the screen. A `position` you pass stays physical: `bottom-left` lines up the left edges on either page.",
41
+ "accessibility": "`Popover` follows the [WAI-ARIA dialog pattern](https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/)\nfor a non-modal dialog:\n\n- The panel is a `role=\"dialog\"` without `aria-modal`. It is named by its `Popover.Header` through\n `aria-labelledby`, or by `ariaLabel`, which takes precedence. A development build warns when an\n open panel has neither.\n- The trigger gets `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls` pointing at the\n panel while it is open.\n- Opening moves focus to the first control in the panel, or to the panel itself when it has none.\n Closing hands focus back to the trigger, as long as focus is still in the panel then, so a click\n that put it somewhere else keeps it there.\n- Tab and Shift+Tab wrap inside the open panel, which the pattern asks of non-modal dialogs too.\n Pointer focus, the screen reader's reading cursor and the rest of the page stay free: nothing\n outside is hidden or made inert, and the page still scrolls. `trapFocus={false}` lets Tab leave.\n- <kbd>Escape</kbd> closes the popover while focus is in the panel or on the trigger. A dialog\n nested inside the panel, such as a date picker's calendar or another popover, takes its own\n Escape first.\n- <kbd>Enter</kbd> and <kbd>Space</kbd> toggle a trigger the browser doesn't click on its own.\n- The open animation is turned off under `prefers-reduced-motion: reduce`.\n- On a right-to-left page a popover with no `position` lines its right edge up with the trigger's, so a trigger at the start of the line doesn't push the panel off the screen. A `position` you pass stays physical: `bottom-left` lines up the left edges on either page.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n trigger mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.",
42
42
  "related": [
43
43
  "ContextMenu",
44
44
  "Dropdown",
@@ -109,7 +109,7 @@
109
109
  "name": "position",
110
110
  "type": "'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'auto'",
111
111
  "default": "'bottom-left'",
112
- "description": "Where the panel opens against the trigger. Left out, it opens below and lines up with the trigger's start edge, which is its right edge on a right-to-left page, so a trigger at the start of the line doesn't push the panel off the screen. A corner you pass stays physical, so `bottom-left` lines up the left edges on either page.",
112
+ "description": "Where the panel opens against the trigger. Left out, it opens below and lines up with the trigger's start edge, which is its right edge on a right-to-left page, so a trigger at the start of the line doesn't push the panel off the screen. A corner you pass stays physical, so `bottom-left` lines up the left edges on either page. A panel that would run past the viewport's left or right edge keeps its corner and moves sideways, just far enough to fit or, wider than the viewport, to the edge its text starts from.",
113
113
  "required": false,
114
114
  "inherited": false,
115
115
  "deprecated": false
@@ -42,7 +42,7 @@
42
42
  "code": "function example() {\n const [isOpen, setIsOpen] = useState(false);\n return (\n <>\n <Button color=\"primary\" onClick={() => setIsOpen(true)}>\n Open Sidebar\n </Button>\n <Sidebar inline isOpen={isOpen} onClose={() => setIsOpen(false)}>\n <Sidebar.Header>\n <Sidebar.Title>Dot Notation</Sidebar.Title>\n <Sidebar.Close onClick={() => setIsOpen(false)} />\n </Sidebar.Header>\n <Sidebar.Body>\n <Paragraph>\n Header, Title, Close, Body, and Footer are all available from the\n single Sidebar import.\n </Paragraph>\n </Sidebar.Body>\n <Sidebar.Footer>\n <Button color=\"primary\" onClick={() => setIsOpen(false)}>\n Done\n </Button>\n </Sidebar.Footer>\n </Sidebar>\n </>\n );\n}"
43
43
  }
44
44
  ],
45
- "accessibility": "- Uses `role=\"dialog\"` for proper screen reader announcement\n- Has `aria-modal=\"true\"` when overlay is shown\n- Focus moves into the sidebar when it opens, to its first tab stop or the sidebar itself, unless it has no overlay and a modal overlay is open under it (see below). That's decided as it opens, so changing `overlay` while it's open leaves focus where it is. When it closes, focus goes back to whatever had it when the sidebar opened, unless focus has already left the sidebar, say for an overlay that's still open on top\n- With an overlay, Tab and Shift+Tab stay inside the sidebar while it's 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 hidden, disabled and `tabIndex={-1}` elements are skipped and a radio group counts once. A Tab from outside the sidebar brings focus back in, and so does a Tab the browser takes out anyway, as Safari does past links when its settings say to\n- A [Modal](https://bestax.io/docs/api/components/modal) or [Dialog](https://bestax.io/docs/api/components/dialog) opened over the sidebar, including one rendered inside it, holds Tab until it closes, and then the sidebar holds it again. A sidebar with an overlay opened over a Modal holds Tab until it closes, and then the Modal does\n- A focus trap of your own inside the sidebar, such as a portaled panel's, keeps a Tab it calls `preventDefault()` on, and the sidebar leaves focus where your trap put it\n- Without an overlay the sidebar isn't modal and holds no Tab. On the page, Tab moves in and out of it freely. Opened over a Modal, or over a sidebar with an overlay, it takes Escape first, but the one under it keeps holding Tab and keeps focus: the sidebar doesn't take focus when it opens, and a Tab from its controls, once a click puts focus there, goes back into that one\n- A closed sidebar stays in the page so it can slide out, and it's `inert` and `aria-hidden` while closed: Tab passes over its content and assistive technology doesn't read it\n- Escape key closes the sidebar by default. One Escape closes the topmost overlay only: a [Modal](https://bestax.io/docs/api/components/modal) or [Dialog](https://bestax.io/docs/api/components/dialog) opened over the sidebar closes first, and the sidebar on the next Escape. A sidebar opened over a Modal closes before it\n- A sidebar on top that can't close on Escape, with `escapeClose` or `canCancel` off, still keeps the key from the overlays under it. A [Toast](https://bestax.io/docs/api/components/toast) waits until no overlay is open\n- A popup open inside it, such as a Dropdown menu or a date picker's calendar, takes the first Escape, and the next one closes the sidebar. A popup of your own does the same by calling `preventDefault()` on the Escape it closes on, as the [Modal](https://bestax.io/docs/api/components/modal#accessibility) page explains.\n- The page doesn't scroll while the sidebar is open with an overlay, through the ref-counted lock shared with [`Modal`](https://bestax.io/docs/api/components/modal#accessibility), `Dialog` and `Loading`, so closing one overlay never unlocks the page underneath another that is still open",
45
+ "accessibility": "- Uses `role=\"dialog\"` for proper screen reader announcement\n- Has `aria-modal=\"true\"` when overlay is shown\n- Focus moves into the sidebar when it opens, to its first tab stop or the sidebar itself, unless it has no overlay and a modal overlay is open under it (see below). That's decided as it opens, so changing `overlay` while it's open leaves focus where it is. When it closes, focus goes back to whatever had it when the sidebar opened, unless focus has already left the sidebar, say for an overlay that's still open on top\n- With an overlay, Tab and Shift+Tab stay inside the sidebar while it's 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 hidden, disabled and `tabIndex={-1}` elements are skipped and a radio group counts once. A Tab from outside the sidebar brings focus back in, and so does a Tab the browser takes out anyway, as Safari does past links when its settings say to\n- A [Modal](https://bestax.io/docs/api/components/modal) or [Dialog](https://bestax.io/docs/api/components/dialog) opened over the sidebar, including one rendered inside it, holds Tab until it closes, and then the sidebar holds it again. A sidebar with an overlay opened over a Modal holds Tab until it closes, and then the Modal does\n- A focus trap of your own inside the sidebar, such as a portaled panel's, keeps a Tab it calls `preventDefault()` on, and the sidebar leaves focus where your trap put it\n- Without an overlay the sidebar isn't modal and holds no Tab. On the page, Tab moves in and out of it freely. Opened over a Modal, or over a sidebar with an overlay, it takes Escape first, but the one under it keeps holding Tab and keeps focus: the sidebar doesn't take focus when it opens, and a Tab from its controls, once a click puts focus there, goes back into that one\n- A closed sidebar stays in the page so it can slide out, and it's `inert` and `aria-hidden` while closed: Tab passes over its content and assistive technology doesn't read it\n- Escape key closes the sidebar by default. One Escape closes the topmost overlay only: a [Modal](https://bestax.io/docs/api/components/modal) or [Dialog](https://bestax.io/docs/api/components/dialog) opened over the sidebar closes first, and the sidebar on the next Escape. A sidebar opened over a Modal closes before it\n- A sidebar on top that can't close on Escape, with `escapeClose` or `canCancel` off, still keeps the key from the overlays under it. A [Toast](https://bestax.io/docs/api/components/toast) waits until no overlay is open\n- A popup open inside it, such as a Dropdown menu or a date picker's calendar, takes the first Escape, and the next one closes the sidebar. A popup of your own does the same by calling `preventDefault()` on the Escape it closes on, as the [Modal](https://bestax.io/docs/api/components/modal#accessibility) page explains.\n- The page doesn't scroll while the sidebar is open with an overlay, through the ref-counted lock shared with [`Modal`](https://bestax.io/docs/api/components/modal#accessibility), `Dialog` and `Loading`, so closing one overlay never unlocks the page underneath another that is still open\n- In forced colors (Windows' contrast themes), which drop the panel's shadow and repaint background colors, the panel keeps a one pixel edge in the system's text color, and `Sidebar.Close` keeps its cross, in the system's text color, or its color for a disabled control when the button is `disabled` or `aria-disabled`",
46
46
  "related": ["Menu", "Modal"],
47
47
  "storybook": "https://bestax.io/storybook/?path=/story/components-sidebar",
48
48
  "summary": "The `Sidebar` component provides a slide-out navigation panel that appears from the left or right side of the screen.",
@@ -21,7 +21,7 @@
21
21
  { "title": "Rounded Tag", "code": "<Tag isRounded>Rounded Tag</Tag>" },
22
22
  {
23
23
  "title": "Delete Tag (Button)",
24
- "code": "<Tag isDelete onDelete={() => alert('Deleted!')} />"
24
+ "code": "<Tags hasAddons>\n <Tag color=\"primary\">React</Tag>\n <Tag\n isDelete\n aria-label=\"Remove React\"\n onDelete={() => alert('Removed React')}\n />\n</Tags>"
25
25
  },
26
26
  { "title": "With Margin", "code": "<Tag m=\"4\">Tag with Margin</Tag>" },
27
27
  {
@@ -42,10 +42,10 @@
42
42
  },
43
43
  {
44
44
  "title": "Tag with Delete Component",
45
- "code": "import { Tags, Delete } from '@allxsmith/bestax-bulma';\n\n<Tags hasAddons>\n <Tag color=\"primary\" size=\"medium\">\n Tag with Delete\n <Delete onClick={() => alert('Tag deleted!')} />\n </Tag>\n</Tags>;"
45
+ "code": "import { Tag, Tags, Delete } from '@allxsmith/bestax-bulma';\n\n<Tags hasAddons>\n <Tag color=\"primary\" size=\"medium\">\n React\n <Delete ariaLabel=\"Remove React\" onClick={() => alert('Removed React')} />\n </Tag>\n</Tags>;"
46
46
  }
47
47
  ],
48
- "accessibility": "- **Delete buttons:** Use `aria-label` for delete tags for screen readers.\n- **Keyboard:** Delete tags are rendered as `<button>`, supporting keyboard activation.\n- **Semantics:** Use tags for supplemental information, not as primary headings.\n- **Contrast:** A light tag's text, and a white, black or dark tag's with `isLight`, reads against its background the way a light `Button`'s does, in both color schemes. That comes from bestax's stylesheets, as the `color` and `isLight` props' descriptions say.\n\n:::tip\nCombine `Tag` with `Tags` for grouped, multi-tag UIs.\n:::",
48
+ "accessibility": "- **Delete buttons:** A delete tag is named \"Delete tag\", and a `Delete` inside a tag \"Close\", unless you name them. Neither says which tag it removes, so a screen reader user moving between several hears the same name each time. Name each one after its tag: `aria-label=\"Remove React\"` on a delete tag, `ariaLabel=\"Remove React\"` on a `Delete`.\n- **Keyboard:** Delete tags are rendered as `<button>`, supporting keyboard activation.\n- **Semantics:** Use tags for supplemental information, not as primary headings.\n- **Contrast:** A light tag's text, and a white, black or dark tag's with `isLight`, reads against its background the way a light `Button`'s does, in both color schemes. That comes from bestax's stylesheets, as the `color` and `isLight` props' descriptions say.\n\n:::tip\nCombine `Tag` with `Tags` for grouped, multi-tag UIs.\n:::",
49
49
  "related": ["Delete", "Tags", "useBulmaClasses"],
50
50
  "storybook": "https://bestax.io/storybook/?path=/story/elements-tag--default",
51
51
  "summary": "The `Tag` component renders a Bulma-styled label or badge.",
@@ -107,7 +107,7 @@
107
107
  "name": "isDelete",
108
108
  "type": "boolean",
109
109
  "default": "false",
110
- "description": "Renders a delete-style tag (delete button). The button renders `type=\"button\"`, so it does not submit a form around it, and is named \"Delete tag\" unless you pass an `aria-label`. An empty one, or a spread carrying `'aria-label': undefined`, keeps that name rather than leaving the button unnamed.",
110
+ "description": "Renders a delete-style tag (delete button). The button renders `type=\"button\"`, so it does not submit a form around it, and is named \"Delete tag\" unless you pass an `aria-label`. An empty one, or a spread carrying `'aria-label': undefined`, keeps that name rather than leaving the button unnamed. \"Delete tag\" doesn't say which tag the button removes, so pass a name that does, such as `aria-label=\"Remove React\"`.",
111
111
  "required": false,
112
112
  "inherited": false,
113
113
  "deprecated": false
@@ -11,7 +11,7 @@
11
11
  },
12
12
  {
13
13
  "title": "Add-ons (Grouped)",
14
- "code": "<Tags hasAddons>\n <Tag color=\"primary\">Package</Tag>\n <Tag color=\"success\">Ready</Tag>\n <Tag isDelete onDelete={() => alert('Deleted!')} />\n</Tags>"
14
+ "code": "<Tags hasAddons>\n <Tag color=\"primary\">Package</Tag>\n <Tag color=\"success\">Ready</Tag>\n <Tag\n isDelete\n aria-label=\"Remove Package Ready\"\n onDelete={() => alert('Removed Package Ready')}\n />\n</Tags>"
15
15
  },
16
16
  {
17
17
  "title": "Wrapping (Default)",
@@ -27,18 +27,18 @@
27
27
  },
28
28
  {
29
29
  "title": "Mixed Tags",
30
- "code": "function example() {\n const [show, setShow] = useState(true);\n\n return (\n <Tags>\n <Tag color=\"primary\" size=\"medium\">\n Primary Medium\n </Tag>\n <Tag color=\"success\" isRounded>\n Success Rounded\n </Tag>\n {/* Dismissible tag */}\n {show && <Tag color=\"danger\" isDelete onDelete={() => setShow(false)} />}\n <Tag color=\"info\">Info</Tag>\n </Tags>\n );\n}"
30
+ "code": "function example() {\n const [show, setShow] = useState(true);\n\n return (\n <Tags>\n <Tag color=\"primary\" size=\"medium\">\n Primary Medium\n </Tag>\n <Tag color=\"success\" isRounded>\n Success Rounded\n </Tag>\n {/* Dismissible tag */}\n {show && (\n <Tag color=\"danger\">\n Danger\n <Delete\n size=\"small\"\n ariaLabel=\"Remove Danger\"\n onClick={() => setShow(false)}\n />\n </Tag>\n )}\n <Tag color=\"info\">Info</Tag>\n </Tags>\n );\n}"
31
31
  },
32
32
  {
33
33
  "title": "Add-ons with Delete Tag",
34
- "code": "<Tags hasAddons>\n <Tag color=\"danger\">Allxsmith</Tag>\n <Tag isDelete onDelete={() => alert('Deleted!')} />\n</Tags>"
34
+ "code": "<Tags hasAddons>\n <Tag color=\"danger\">Allxsmith</Tag>\n <Tag\n isDelete\n aria-label=\"Remove Allxsmith\"\n onDelete={() => alert('Removed Allxsmith')}\n />\n</Tags>"
35
35
  },
36
36
  {
37
37
  "title": "Compound (dot-notation) usage",
38
38
  "code": "<Tags>\n <Tags.Tag color=\"primary\">React</Tags.Tag>\n <Tags.Tag color=\"info\">TypeScript</Tags.Tag>\n</Tags>"
39
39
  }
40
40
  ],
41
- "accessibility": "- **Grouping:** The container is a `<div class=\"tags\">`, which is semantically neutral.\n- **Delete buttons:** If using delete tags, ensure each has an accessible label.\n- **Wrapping:** Tags wrap onto multiple lines by default for better readability on small screens.\n\n:::tip\nUse `hasAddons` for tightly grouped tags (no space between them).\n:::",
41
+ "accessibility": "- **Grouping:** The container is a `<div class=\"tags\">`, which is semantically neutral.\n- **Delete buttons:** A delete tag is named \"Delete tag\", and a `Delete` inside a tag \"Close\", unless you name them, and neither name says which tag it removes. Name each one after its tag, as these examples do: `aria-label=\"Remove Allxsmith\"` on a delete tag, `ariaLabel=\"Remove Danger\"` on a `Delete`.\n- **Wrapping:** Tags wrap onto multiple lines by default for better readability on small screens.\n\n:::tip\nUse `hasAddons` for tightly grouped tags (no space between them).\n:::",
42
42
  "related": ["Delete", "Tag", "useBulmaClasses"],
43
43
  "storybook": "https://bestax.io/storybook/?path=/story/elements-tag--default",
44
44
  "summary": "The `Tags` component groups multiple `Tag` components together in a Bulma-styled container that wraps onto multiple lines by default.",
@@ -156,7 +156,7 @@
156
156
  "name": "isDelete",
157
157
  "type": "boolean",
158
158
  "default": "false",
159
- "description": "Renders a delete-style tag (delete button). The button renders `type=\"button\"`, so it does not submit a form around it, and is named \"Delete tag\" unless you pass an `aria-label`. An empty one, or a spread carrying `'aria-label': undefined`, keeps that name rather than leaving the button unnamed.",
159
+ "description": "Renders a delete-style tag (delete button). The button renders `type=\"button\"`, so it does not submit a form around it, and is named \"Delete tag\" unless you pass an `aria-label`. An empty one, or a spread carrying `'aria-label': undefined`, keeps that name rather than leaving the button unnamed. \"Delete tag\" doesn't say which tag the button removes, so pass a name that does, such as `aria-label=\"Remove React\"`.",
160
160
  "required": false,
161
161
  "inherited": false,
162
162
  "deprecated": false
@@ -178,7 +178,7 @@
178
178
  "code": "function example() {\n return (\n <Field\n horizontal\n label=\"Time\"\n labelProps={{ htmlFor: 'time-field-control' }}\n >\n <Field.Body>\n <Field>\n <Control iconLeftName=\"clock\">\n <TimeInput id=\"time-field-control\" placeholder=\"HH:MM\" />\n </Control>\n </Field>\n </Field.Body>\n </Field>\n );\n}"
179
179
  }
180
180
  ],
181
- "accessibility": "- Trigger uses `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls`.\n- Popover panel has `role=\"dialog\"` with an accessible name.\n- Each spinner column has `role=\"spinbutton\"` with `aria-valuemin`, `aria-valuemax`, `aria-valuenow`, and `aria-valuetext`, whose text is the number as the column shows it, in the picker's locale's digits when it has a locale. The values drawn above and below are click targets hidden from assistive technology, which reads the value from the spinbutton.\n- In a 12-hour picker, AM/PM is one of those spinbutton columns rather than a toggle button. Its `aria-valuetext` is `AM` or `PM`, or the picker's locale's words for them when it has a locale, and it widens to fit a longer word; `↑`, `PageUp` and `End` move it to PM, and `↓`, `PageDown` and `Home` move it to AM. It stops at either end instead of wrapping around. Its accessible name is `AM/PM` unless `labels.ampm` sets another.\n- A `readOnly` inline picker puts `aria-readonly=\"true\"` on each spinbutton and keeps them in the tab order.\n- Honors `prefers-reduced-motion`.\n- On a right-to-left page the launcher sits at the end of the line and the clock icon at the start. The wheels keep `dir=\"ltr\"`, so hours stay to the left of minutes.",
181
+ "accessibility": "- Trigger uses `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls`.\n- Popover panel has `role=\"dialog\"` with an accessible name.\n- Each spinner column has `role=\"spinbutton\"` with `aria-valuemin`, `aria-valuemax`, `aria-valuenow`, and `aria-valuetext`, whose text is the number as the column shows it, in the picker's locale's digits when it has a locale. The values drawn above and below are click targets hidden from assistive technology, which reads the value from the spinbutton.\n- In a 12-hour picker, AM/PM is one of those spinbutton columns rather than a toggle button. Its `aria-valuetext` is `AM` or `PM`, or the picker's locale's words for them when it has a locale, and it widens to fit a longer word; `↑`, `PageUp` and `End` move it to PM, and `↓`, `PageDown` and `Home` move it to AM. It stops at either end instead of wrapping around. Its accessible name is `AM/PM` unless `labels.ampm` sets another.\n- A `readOnly` inline picker puts `aria-readonly=\"true\"` on each spinbutton and keeps them in the tab order.\n- Honors `prefers-reduced-motion`.\n- On a right-to-left page the launcher sits at the end of the line and the clock icon at the start. The wheels keep `dir=\"ltr\"`, so hours stay to the left of minutes.\n- A panel at a corner that would run past the left or right edge of the screen keeps its\n corner and moves sideways just far enough to fit, or, wider than the screen, to the edge its\n text starts from. On a narrow screen the panel in place is a sheet across the screen\n instead, which fits as it is.",
182
182
  "related": ["DateInput", "DateTimeInput", "Input"],
183
183
  "storybook": "https://bestax.io/storybook/?path=/story/form-timeinput",
184
184
  "summary": "The `TimeInput` component is a form input that opens a popover spinner for time-of-day selection.",
@@ -537,7 +537,7 @@
537
537
  "name": "position",
538
538
  "type": "'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'auto'",
539
539
  "default": "'bottom-left'",
540
- "description": "Where the popover opens against the field. Left out, it opens below and lines up with the field's start edge, which is its right edge when the picker reads right to left. A corner you pass stays physical, so `bottom-left` lines up the left edges either way.",
540
+ "description": "Where the popover opens against the field. Left out, it opens below and lines up with the field's start edge, which is its right edge when the picker reads right to left. A corner you pass stays physical, so `bottom-left` lines up the left edges either way. A panel that would run past the viewport's left or right edge keeps its corner and moves sideways, just far enough to fit or, wider than the viewport, to the edge its text starts from.",
541
541
  "required": false,
542
542
  "inherited": true,
543
543
  "deprecated": false
@@ -909,7 +909,7 @@
909
909
  "name": "position",
910
910
  "type": "'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'auto'",
911
911
  "default": "'bottom-left'",
912
- "description": "Where the popover opens against the field. Left out, it opens below and lines up with the field's start edge, which is its right edge when the picker reads right to left. A corner you pass stays physical, so `bottom-left` lines up the left edges either way.",
912
+ "description": "Where the popover opens against the field. Left out, it opens below and lines up with the field's start edge, which is its right edge when the picker reads right to left. A corner you pass stays physical, so `bottom-left` lines up the left edges either way. A panel that would run past the viewport's left or right edge keeps its corner and moves sideways, just far enough to fit or, wider than the viewport, to the edge its text starts from.",
913
913
  "required": false,
914
914
  "inherited": false,
915
915
  "deprecated": false
@@ -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 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).",
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- **Colors:** Timeline takes Bulma's colors. A marker with no `color`, in a record or not reached\n yet, is `border-hover`, and an upcoming icon is `text-weak`. Progress is `link`, and a `color`\n draws the markers and progress in that color. `border-hover` falls short of the 3:1 against the\n page that WCAG 1.4.11 asks of a graphic in both schemes, and on a light page so do some of the\n colors. For more, set `--bulma-timeline-neutral-color` to a color such as `var(--bulma-text-weak)`\n on a class you pass through `className`, with the timeline's class in the selector\n (`.timeline.my-timeline`, `.bestax-timeline.my-timeline` under the prefixed flavor) so it wins\n whatever order the stylesheets load in. It wins over a colored Hero's text color too, so leave\n it off a timeline you put on one. And pick a `color` that reads on your page.\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 Hero:** a timeline with no `color` draws its markers in the Hero's text color, as\n its titles are, an upcoming icon included, 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 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.",
120
+ "description": "The markers' color, and the color of progress with `active`. Neutral without it, and Bulma's `link` for progress. The markers are hidden from assistive tech, so say what a color means in the words too. In a colored Hero, leave it off: the markers then take the Hero's text color, as the titles do, while a color you set is kept even where it doesn't stand out from the Hero's.",
121
121
  "required": false,
122
122
  "inherited": false,
123
123
  "deprecated": false
@@ -238,7 +238,7 @@
238
238
  "name": "color",
239
239
  "type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
240
240
  "default": null,
241
- "description": "This item's marker color, over the root's, in the color's on-scheme shade. Say what it means in the words too.",
241
+ "description": "This item's marker color, over the root's. Say what it means in the words too.",
242
242
  "required": false,
243
243
  "inherited": false,
244
244
  "deprecated": false
@@ -352,7 +352,7 @@
352
352
  {
353
353
  "css": "--bulma-timeline-neutral-color",
354
354
  "sass": "$timeline-neutral-color",
355
- "default": "var(--bulma-text-weak)",
355
+ "default": "var(--bulma-border-hover)",
356
356
  "scope": "root"
357
357
  },
358
358
  {
@@ -364,7 +364,7 @@
364
364
  {
365
365
  "css": "--bulma-timeline-active-color",
366
366
  "sass": "$timeline-active-color",
367
- "default": "hsl(var(--bulma-link-h), var(--bulma-link-s), var(--bulma-link-on-scheme-l))",
367
+ "default": "hsl(var(--bulma-link-h), var(--bulma-link-s), var(--bulma-link-l))",
368
368
  "scope": "root"
369
369
  },
370
370
  {
@@ -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`. 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- **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- **Forced colors:** the field, the panel and the tree keep their edges in system colors, and the\n chevron is text.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.",
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.",
@@ -399,7 +399,7 @@
399
399
  "name": "position",
400
400
  "type": "'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'auto'",
401
401
  "default": "'bottom-left'",
402
- "description": "Where the panel opens against the field, as on the pickers. Left out, it opens below and lines up with the field's start edge, which is its right edge on a right-to-left page. A corner you pass stays physical, so `bottom-left` lines up the left edges either way.",
402
+ "description": "Where the panel opens against the field, as on the pickers. Left out, it opens below and lines up with the field's start edge, which is its right edge on a right-to-left page. A corner you pass stays physical, so `bottom-left` lines up the left edges either way. A panel that would run past the viewport's left or right edge keeps its corner and moves sideways, just far enough to fit or, wider than the viewport, to the edge its text starts from.",
403
403
  "required": false,
404
404
  "inherited": true,
405
405
  "deprecated": false
@@ -103,10 +103,10 @@ was given. A trio set at runtime leaves them as they were, so when a new color r
103
103
  darker than the built one, which a change of hue or saturation can do as well as a change of
104
104
  lightness, set them too:
105
105
 
106
- | Variable | What reads it |
107
- | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
108
- | `--bulma-<c>-invert-l` | the label on a solid `<c>` surface: `Button`, `Tag` and `Notification` with `color="<c>"`, a colored `Hero` or `Navbar`, a colored `Steps`' completed mark, … |
109
- | `--bulma-<c>-on-scheme-l` | `<c>` text on the page: `textColor="<c>" colorShade="on-scheme"`, `textColor="<c>"` where it's lighter than the trio's, a colored `Message`'s body, a field's colored help text, `Timeline`'s colored markers, … |
106
+ | Variable | What reads it |
107
+ | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
108
+ | `--bulma-<c>-invert-l` | the label on a solid `<c>` surface: `Button`, `Tag` and `Notification` with `color="<c>"`, a colored `Hero` or `Navbar`, a colored `Steps`' completed mark, … |
109
+ | `--bulma-<c>-on-scheme-l` | `<c>` text on the page: `textColor="<c>" colorShade="on-scheme"`, `textColor="<c>"` where it's lighter than the trio's, a colored `Message`'s body, a field's colored help text, … |
110
110
 
111
111
  For `link`, the on-scheme lightness is also every link on the page (`--bulma-link-text`), so a new
112
112
  link color that reads lighter than Bulma's own leaves the page's links pale.
@@ -959,6 +959,16 @@ DateRangeInput's with `monthsToShow`, past which the months wrap to a column.
959
959
  `--bulma-picker-trigger-color`, `--bulma-picker-trigger-disabled-opacity`,
960
960
  `--bulma-picker-trigger-hover-color`, `--bulma-picker-trigger-width`
961
961
 
962
+ ### A panel's shift at a corner (Popover / HoverCard / Combobox / the pickers)
963
+
964
+ `--bulma-anchored-shift` is how far the component moves a panel in place sideways, from its
965
+ corner's edge, so it doesn't run past the viewport. The component writes it on the panel itself,
966
+ 0 while the panel fits, and the corner rules add it to the corner's edge. It isn't for a theme to
967
+ set: a value set on a panel is replaced, and a theme that places a panel by its own rules leaves
968
+ it out.
969
+
970
+ `--bulma-anchored-shift`
971
+
962
972
  ### Popover
963
973
 
964
974
  All are declared on the panel, `.popover-content`, so a panel rendered with `appendToBody` keeps
@@ -1052,6 +1062,10 @@ whatever these say.
1052
1062
 
1053
1063
  ### Sidebar
1054
1064
 
1065
+ In forced colors a sidebar other than a static one gets a `CanvasText` edge in place of
1066
+ `--bulma-sidebar-shadow`, and the close button's cross takes `CanvasText`, or `GrayText` when the
1067
+ button is `disabled` or `aria-disabled`, whatever `--bulma-sidebar-close-color` says.
1068
+
1055
1069
  `--bulma-sidebar-background`, `--bulma-sidebar-close-color`,
1056
1070
  `--bulma-sidebar-close-hover-background`, `--bulma-sidebar-close-line-width`,
1057
1071
  `--bulma-sidebar-close-radius`, `--bulma-sidebar-close-size`, `--bulma-sidebar-content-padding`,
@@ -1198,10 +1212,10 @@ Declared on the root, `.timeline`. The states and the color classes set
1198
1212
  and `--bulma-timeline-active-color` rather than those two. `--bulma-timeline-marker-background`
1199
1213
  fills the upcoming rings and the pending loader, and a reached icon marker's tint is mixed into
1200
1214
  it. It's the page's color by default, so it hides the line behind them. A record's icon circles
1201
- take `--bulma-timeline-marker-icon-background`, which the color classes set. A color class, and
1202
- the default progress color, read the color's hue, saturation and `--bulma-<c>-on-scheme-l`, so a
1203
- new trio for that color wants its on-scheme lightness too. Every size is in `em`, so `textSize`
1204
- scales them all.
1215
+ take `--bulma-timeline-marker-icon-background`, which the color classes set. An upcoming icon is
1216
+ drawn in `--bulma-text-weak`, not `--bulma-timeline-marker-icon-color`. A color class, and the default progress color, read the color's hue,
1217
+ saturation and lightness, so a Theme that sets them around the timeline reaches it. Every size is
1218
+ in `em`, so `textSize` scales them all.
1205
1219
 
1206
1220
  `--bulma-timeline-active-color`, `--bulma-timeline-content-gap`, `--bulma-timeline-dot-size`,
1207
1221
  `--bulma-timeline-gap`, `--bulma-timeline-halo-offset`, `--bulma-timeline-line-color`,
@@ -1214,13 +1228,12 @@ scales them all.
1214
1228
  `--bulma-timeline-time-color`, `--bulma-timeline-time-size`, `--bulma-timeline-title-color`,
1215
1229
  `--bulma-timeline-title-weight`
1216
1230
 
1217
- In a colored `Notification` or `Hero`, a timeline with no color sets its neutral, active and icon
1218
- colors to the surface's text color and its marker and icon backgrounds to the surface's
1219
- background, and in a colored Hero any timeline sets its title and time colors to the Hero's text
1220
- color, unless it's on a Box, a Card, a Message or a Modal there, or in a
1221
- Notification inside the
1222
- Hero. To retheme one there, set these on the timeline
1223
- itself, through its `style` or a class loaded after bestax's stylesheet, or give it a `color`.
1231
+ In a colored `Hero`, a timeline with no color sets its neutral, active and icon colors to the
1232
+ Hero's text color and its marker and icon backgrounds to the Hero's background, and draws an
1233
+ upcoming icon in its neutral color, and any timeline sets its title and time colors to the Hero's
1234
+ text color, unless it's on a Box, a Card, a Message, a Modal or a Notification there. To retheme
1235
+ one there, set these on the timeline itself, through its `style` or a class loaded after bestax's
1236
+ stylesheet, or give it a `color`.
1224
1237
 
1225
1238
  ### Toast
1226
1239
 
@@ -88,7 +88,7 @@ Shades (`colorShade` / `backgroundColorShade`): `00, 05, 10, … 95, invert, lig
88
88
  | `Lightbox` | — (no `color`: the viewer is white on Bulma's near-black modal background) | — | retheme through `--bulma-lightbox-*` and Bulma's `--bulma-modal-*`; the triggers draw nothing of their own, or render through `Button` with `as` |
89
89
  | `LinkButton` | `primary \| link \| info \| success \| warning \| danger \| white \| light \| dark \| black` | — | button-styled link; emits `link-button-<color>` — **no `isLight`/`isOutlined`/`isInverted`** |
90
90
  | `Loader` | — (no color props: the ring is drawn in `--bulma-border`) | — (the ring is `1em`; size it with `textSize`) | for a colored spinner over a region, use `Loading` |
91
- | `Loading` | `primary \| link \| info \| success \| warning \| danger` | `small \| medium \| large` | spinner color, in the color's on-scheme shade; default `text-weak` |
91
+ | `Loading` | `primary \| link \| info \| success \| warning \| danger` | `small \| medium \| large` | spinner color; default `grey-light` |
92
92
  | `Navbar` | `primary \| link \| info \| success \| warning \| danger \| black \| dark \| light \| white` | — | — |
93
93
  | `Numberinput` | `primary \| link \| info \| success \| warning \| danger \| light \| dark` | `small \| medium \| large` | also `inputColor` (the 6) for the inner input |
94
94
  | `PasswordInput` | `primary \| link \| info \| success \| warning \| danger \| black \| dark \| light \| white` (the input) | `small \| medium \| large` | the input is Bulma's `.input`, so `--bulma-input-*` theme it; the button inside it is `--bulma-password-input-toggle-*` and grows with the size |
@@ -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 on a colored Notification or Hero its text color; retheme through `--bulma-timeline-*` |
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 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.66",
3
+ "version": "1.18.67",
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.5"
45
+ "@allxsmith/bestax-bulma": "^5.73.6"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/node": "^26.6.6",