bestax-mcp 1.18.90 → 1.18.92

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.79.1"
5
+ "version": "5.79.3"
6
6
  },
7
7
  "docsBase": "https://bestax.io/docs",
8
8
  "categories": [
@@ -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. The\n button is a small [`Delete`](https://bestax.io/docs/api/elements/delete#accessibility), with a target at least 24px square around its circle.\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.\n- The `message` describes the field through `aria-describedby`, after any ids you pass to `Combobox.Input` and, with `data` and `multiple`, after the picked tags.\n- With `data`, `aria-invalid` and `aria-errormessage` go on the field, while the Combobox's other attributes go on the wrapper, so a screen reader hears the field is invalid when it takes focus. Built from parts, pass them to `Combobox.Input`.",
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, the list opening or, with `keepFirst`, a change to the list moves the highlight, the item is\n scrolled into view, since a browser only scrolls to what has focus, and so is its group's\n heading when it's the group's first item. The pointer moves it without scrolling, since the\n pointer 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. The\n button is a small [`Delete`](https://bestax.io/docs/api/elements/delete#accessibility), with a target at least 24px square around its circle.\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.\n- The `message` describes the field through `aria-describedby`, after any ids you pass to `Combobox.Input` and, with `data` and `multiple`, after the picked tags.\n- With `data`, `aria-invalid` and `aria-errormessage` go on the field, while the Combobox's other attributes go on the wrapper, so a screen reader hears the field is invalid when it takes focus. Built from parts, pass them to `Combobox.Input`.",
66
66
  "related": [
67
67
  "Autocomplete",
68
68
  "Cascader",
@@ -50,7 +50,7 @@
50
50
  "code": "function example() {\n const [open, setOpen] = useState(false);\n const [query, setQuery] = useState('');\n const [ran, setRan] = useState<string | null>(null);\n const colors = [\n 'primary',\n 'link',\n 'info',\n 'success',\n 'warning',\n 'danger',\n ] as const;\n const matches = colors.filter(c => c.includes(query.trim().toLowerCase()));\n\n return (\n <>\n <Button onClick={() => setOpen(true)}>Pick a color</Button>\n <Paragraph mt=\"3\">{ran ? `Picked ${ran}` : 'No color yet'}</Paragraph>\n <Command.Dialog\n open={open}\n onOpenChange={setOpen}\n label=\"Colors\"\n query={query}\n onQueryChange={setQuery}\n onSelect={setRan}\n >\n <Command.Input placeholder=\"Search colors\" />\n {matches.length > 0 ? (\n <Command.List>\n <Command.Group label=\"Bulma colors\">\n {matches.map(color => (\n <Command.Item\n key={color}\n value={color}\n hint={<Tag color={color}>is-{color}</Tag>}\n >\n {color}\n </Command.Item>\n ))}\n </Command.Group>\n </Command.List>\n ) : (\n <Command.Empty>No colors match</Command.Empty>\n )}\n </Command.Dialog>\n </>\n );\n}"
51
51
  }
52
52
  ],
53
- "accessibility": "- **The roles:** the field is `role=\"combobox\"` with `aria-autocomplete=\"list\"` and\n `aria-haspopup=\"listbox\"`, and the list is a `listbox` of `option`s, the ARIA 1.2 combobox the\n ARIA Authoring Practices describe. A group is a `group` named by its heading.\n- **Focus stays in the field:** the highlighted item is the field's `aria-activedescendant`, and\n the only item that's `aria-selected`. When a key moves it, it's scrolled into view. A click on an\n item keeps focus in the field too.\n- **`aria-expanded`** is `true` while the list has an item in it, with `aria-controls` pointing\n at it, and `false` while only the empty message shows.\n- **Names:** `label` names the field and the list, and in `Command.Dialog` the dialog as well.\n It's \"Commands\" unless you give one. An `aria-label` or `aria-labelledby` on `Command.Input`,\n `Command.List` or `Command.Dialog` names that one instead.\n- **An item is named by its label alone,** and described by its description and hint, so a\n screen reader says what it does first and the rest after. Its icon is hidden.\n- **Disabled items** are `aria-disabled`, reachable with the arrows, never run, and never\n highlighted when the list changes.\n- **The empty message** is announced through a polite status region when your typing brings it on\n screen, once each time the matches run out, and after `isLoading` ends. An empty search\n announces nothing.\n- **No count is announced,** as with [`Combobox`](https://bestax.io/docs/api/form/combobox#a-result-count): a screen\n reader reads how many items there are from the list itself, and a count read out on each\n keystroke talks over the typing.\n- **The dialog** is a modal `dialog` with `aria-modal`, around the Command's box, inside a\n `Modal` that's `role=\"presentation\"`. Focus moves to the search field when it opens, stays\n inside while it's open, and goes back to where it was when it closes. The page behind it\n doesn't scroll. A popup opened inside it, such as a `Popover` with `appendToBody`, is portaled\n into the Command's box, the element with `aria-modal`, unless a\n [`ConfigProvider`](https://bestax.io/docs/api/helpers/config#where-portaled-content-goes) sets a `portalContainer`.\n- **The shortcut** never fires while someone is typing, so it can't swallow a letter, and it\n leaves a key the page has already used alone. Nothing announces it, so put it on a button with\n `aria-keyshortcuts`, and show it with `Kbd`.\n- **Forced colors:** in Windows high contrast mode the highlight is drawn as an outline in the\n system's highlight color, and a disabled item takes the system's color for disabled text.\n- **No motion:** nothing animates.",
53
+ "accessibility": "- **The roles:** the field is `role=\"combobox\"` with `aria-autocomplete=\"list\"` and\n `aria-haspopup=\"listbox\"`, and the list is a `listbox` of `option`s, the ARIA 1.2 combobox the\n ARIA Authoring Practices describe. A group is a `group` named by its heading.\n- **Focus stays in the field:** the highlighted item is the field's `aria-activedescendant`, and\n the only item that's `aria-selected`. When a key moves it, or it moves as the list opens or\n changes, it's scrolled into view, with its group's heading when it's the group's first item.\n A click on an item keeps focus in the field too.\n- **`aria-expanded`** is `true` while the list has an item in it, with `aria-controls` pointing\n at it, and `false` while only the empty message shows.\n- **Names:** `label` names the field and the list, and in `Command.Dialog` the dialog as well.\n It's \"Commands\" unless you give one. An `aria-label` or `aria-labelledby` on `Command.Input`,\n `Command.List` or `Command.Dialog` names that one instead.\n- **An item is named by its label alone,** and described by its description and hint, so a\n screen reader says what it does first and the rest after. Its icon is hidden.\n- **Disabled items** are `aria-disabled`, reachable with the arrows, never run, and never\n highlighted when the list changes.\n- **The empty message** is announced through a polite status region when your typing brings it on\n screen, once each time the matches run out, and after `isLoading` ends. An empty search\n announces nothing.\n- **No count is announced,** as with [`Combobox`](https://bestax.io/docs/api/form/combobox#a-result-count): a screen\n reader reads how many items there are from the list itself, and a count read out on each\n keystroke talks over the typing.\n- **The dialog** is a modal `dialog` with `aria-modal`, around the Command's box, inside a\n `Modal` that's `role=\"presentation\"`. Focus moves to the search field when it opens, stays\n inside while it's open, and goes back to where it was when it closes. The page behind it\n doesn't scroll. A popup opened inside it, such as a `Popover` with `appendToBody`, is portaled\n into the Command's box, the element with `aria-modal`, unless a\n [`ConfigProvider`](https://bestax.io/docs/api/helpers/config#where-portaled-content-goes) sets a `portalContainer`.\n- **The shortcut** never fires while someone is typing, so it can't swallow a letter, and it\n leaves a key the page has already used alone. Nothing announces it, so put it on a button with\n `aria-keyshortcuts`, and show it with `Kbd`.\n- **Forced colors:** in Windows high contrast mode the highlight is drawn as an outline in the\n system's highlight color, and a disabled item takes the system's color for disabled text.\n- **No motion:** nothing animates.",
54
54
  "related": [
55
55
  "Combobox",
56
56
  "Dropdown",
@@ -89,7 +89,7 @@
89
89
  "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
90
90
  }
91
91
  ],
92
- "accessibility": "- The root `Navbar` renders as `<nav role=\"navigation\" aria-label=\"main navigation\">`.\n The default accessible name is `main navigation`. A screen reader announces it with\n the role, and since the name holds the role word, \"navigation\" is heard twice.\n Pass a name without the role word (`aria-label=\"Site\"`), and a different name\n on each Navbar when a page has more than one. A passed `aria-label` replaces\n the default.\n- `Navbar.Item active` sets `aria-current=\"page\"` on the element `as` renders, the link by\n default, so the current item isn't only a color. An `aria-current` you pass wins: a navbar of\n sections on one page can say `\"location\"`, and `aria-current={false}` turns it off.\n- Bulma fills an active link item with its selected color, the link color in a navbar with no\n `color`, and bestax's styles give its text the color Bulma picks to read on that fill,\n `--bulma-navbar-item-selected-color-l`. Bulma's own stylesheet leaves the text in the navbar's\n normal text color, dark gray on blue on the light scheme, so the rule ships in `bestax.css` and\n `extras.css`. A `--bulma-navbar-item-color` you set on the item itself still wins, and an item\n with a `bgColor` keeps the navbar's text color. A rule of your own that takes the fill off\n restates `color` too.\n- Use semantic links (`<a>`) and buttons, and provide clear `aria-label` and `aria-expanded` for the burger toggle.\n- `Navbar.Link` inside a `Navbar.Dropdown` automatically gets `aria-haspopup=\"true\"` and\n `aria-expanded` synced to the dropdown's open state — no manual wiring required.\n <kbd>Enter</kbd>/<kbd>Space</kbd> toggle the dropdown open/closed, and <kbd>Escape</kbd>\n closes it and keeps focus on the link. <kbd>Escape</kbd> anywhere else in the open dropdown, its\n menu included, puts focus back on the link and closes it too, unless a control there marks the\n key used, the key comes from a dialog or from content opened from the menu into a portal, or\n focus can't go back to the link. Focus landing outside an open dropdown, as <kbd>Tab</kbd> past\n its last item or <kbd>Shift</kbd>+<kbd>Tab</kbd> back past its link does, closes it too, so its\n menu isn't left over the page. A controlled one is told through `onActiveChange` and keeps its\n `active`. Focus moving into content opened from the menu into a portal or into a dialog marked\n `aria-modal`, such as a `Modal` an item opens, which gives focus back to the item when it closes, focus going\n nowhere, as the window losing focus does, and a press outside that doesn't move focus leave it\n open. When the trigger isn't interactive on its own — no\n `href`, not `as=\"button\"`, and not a custom component — it also gets `role=\"button\"` and\n `tabIndex={0}` so it's reachable and operable by keyboard, and a mouse/touch click on it\n toggles the dropdown too (a caller-supplied `onClick` still runs, and can\n `preventDefault()` to opt out).\n- A custom component passed to `as` keeps its own semantics, because a router link takes `to`\n rather than `href` and so can't be recognised from the props it's given. If yours renders\n something non-interactive instead, pass `role=\"button\"` and it takes the fallback above —\n `tabIndex` and click included. The keyboard path is wired either way.\n- `hoverable` dropdowns keep working with a mouse (hover-to-open); the keyboard path above\n opens and closes them independently of hover. Bulma shows a `hoverable` dropdown's menu while\n the pointer is on it and while focus is in it, the link included, on a desktop-wide window.\n <kbd>Escape</kbd> puts a menu shown that way away, and it stays away until the pointer has left\n the dropdown and focus has too, or until the pointer comes back or focus moves onto something in\n it. From the page, the key goes on to what has focus; from inside\n the dropdown, focus moves to the link, with the same exceptions as for an open one, such as focus\n that can't go back to the link, where the menu stays. Below the desktop breakpoint, where the menu always\n shows under the burger, Escape doesn't put it away, though it still closes an open one.\n- **A fixed navbar:** with `fixed=\"top\"`, bestax's styles pad the page's scroll by\n `--bulma-navbar-height`, so the browser scrolls a control that takes focus, or an in-page link's\n target, to below the navbar rather than under it. `fixed=\"bottom\"` pads the bottom of the page\n the same way. The page's own padding, so its top doesn't start under the navbar, is still Bulma's\n `has-navbar-fixed-top` on `<html>`. A `scroll-padding-top` of your own on `<html>`, or an\n [`AppFrame`](https://bestax.io/docs/api/layout/appframe)'s, wins over it: set yours for a navbar taller than\n `--bulma-navbar-height`, as a spaced one is from the desktop breakpoint up, or to `0` where your\n anchor targets already carry a `scroll-margin-top`, which adds to it. This ships in `bestax.css`\n and `extras.css`, not in Bulma's own stylesheet.\n- **Forced colors:** Bulma draws the burger's bars as a background color, which forced colors\n (Windows' contrast themes) replaces, so the burger would vanish there while it still works and\n takes focus. bestax's styles keep its bars visible in the system's button text color. That rule\n ships in `bestax.css` and `extras.css`, not in Bulma's own stylesheet, and an\n [`AppFrame`](https://bestax.io/docs/api/layout/appframe)'s burger gets it too. Bulma marks an active or selected\n link item, `Navbar.Link` and dropdown row with a fill and a text color alone, which forced\n colors replaces, so bestax's styles draw a bar in the system's highlight color inside it there:\n along its bottom in a row, and down its start edge where the items stack, in a dropdown and in\n the menu the burger opens. The item and everything in it stay in the contrast theme's colors,\n and an active tab gets the bar above Bulma's thicker underline. This ships in the same\n stylesheets.\n- **`Navbar.Divider` in forced colors:** Bulma draws it as a background color too, which forced\n colors paints in the dropdown's own color, so the line would vanish. bestax's styles draw it in\n the system's text color there, from the same stylesheets.\n- **An open dropdown's edge in forced colors:** from the desktop breakpoint up, Bulma draws\n `Navbar.DropdownMenu` as a box over the page, edged with a shadow and, for some, a line on the\n side it opens from. Forced colors drops the shadow and paints the box in the page's own color, so\n bestax's styles draw a one pixel line in the system's text color around it there, outside the\n box, so nothing moves. Under the burger its rows sit in the menu, with no box to edge. This\n ships in the same stylesheets.\n- **In a colored [`Hero`](https://bestax.io/docs/api/layout/hero):** Bulma's hero sets the colors its navbar's items\n take on hover and when active, but Bulma's navbar doesn't read them, so a focused or hovered\n item took the scheme's fill under the hero's text, and the active item and the burger took the\n link color. For a `Navbar` with no `color` of its own, bestax's styles draw a focused, hovered or\n active item in the hero's text color with the hero's background color as its text, the burger\n and a tab in the hero's text color, and the dropdown arrow in its link's text color. The menu the\n burger opens, and the dropdown's rows in it, take the hero's background and text, except an\n active row, which keeps Bulma's selected fill and the text that reads on it, and on a phone a bold hero's menu takes the hero's\n own gradient. Where `Navbar.DropdownMenu` is a box of its own, on a desktop, its links keep\n Bulma's colors. That rule ships in `bestax.css` and `extras.css`, not in Bulma's own stylesheet.\n\n:::note\nThere's no arrow-key roving between navbar items, and a press outside an open `Navbar.Dropdown`\ncloses it only when it moves focus there. A press on a field moves focus in every browser, and\none on a button or a link does in some, such as Chrome, and not in others, such as Safari. Bulma navbar dropdowns are hover/click surfaces, so this is\nintentionally kept simple.\n:::",
92
+ "accessibility": "- The root `Navbar` renders as `<nav role=\"navigation\" aria-label=\"main navigation\">`.\n The default accessible name is `main navigation`. A screen reader announces it with\n the role, and since the name holds the role word, \"navigation\" is heard twice.\n Pass a name without the role word (`aria-label=\"Site\"`), and a different name\n on each Navbar when a page has more than one. A passed `aria-label` replaces\n the default.\n- `Navbar.Item active` sets `aria-current=\"page\"` on the element `as` renders, the link by\n default, so the current item isn't only a color. An `aria-current` you pass wins: a navbar of\n sections on one page can say `\"location\"`, and `aria-current={false}` turns it off.\n- Bulma fills an active link item with its selected color, the link color in a navbar with no\n `color`, and bestax's styles give its text the color Bulma picks to read on that fill,\n `--bulma-navbar-item-selected-color-l`. Bulma's own stylesheet leaves the text in the navbar's\n normal text color, dark gray on blue on the light scheme, so the rule ships in `bestax.css` and\n `extras.css`. A `--bulma-navbar-item-color` you set on the item itself still wins, and an item\n with a `bgColor` keeps the navbar's text color. A rule of your own that takes the fill off\n restates `color` too.\n- Use semantic links (`<a>`) and buttons, and provide clear `aria-label` and `aria-expanded` for the burger toggle.\n- `Navbar.Link` inside a `Navbar.Dropdown` automatically gets `aria-haspopup=\"true\"` and\n `aria-expanded` synced to the dropdown's open state — no manual wiring required.\n <kbd>Enter</kbd>/<kbd>Space</kbd> toggle the dropdown open/closed, and <kbd>Escape</kbd>\n closes it and keeps focus on the link. <kbd>Escape</kbd> anywhere else in the open dropdown, its\n menu included, puts focus back on the link and closes it too, unless a control there marks the\n key used, the key comes from a dialog or from content opened from the menu into a portal, or\n focus can't go back to the link. Focus landing outside an open dropdown, as <kbd>Tab</kbd> past\n its last item or <kbd>Shift</kbd>+<kbd>Tab</kbd> back past its link does, closes it too, so its\n menu isn't left over the page. A controlled one is told through `onActiveChange` and keeps its\n `active`. Focus moving into content opened from the menu into a portal or into a dialog marked\n `aria-modal`, such as a `Modal` an item opens, which gives focus back to the item when it closes, focus going\n nowhere, as the window losing focus does, and a press outside that doesn't move focus leave it\n open. When the trigger isn't interactive on its own — no\n `href`, not `as=\"button\"`, and not a custom component — it also gets `role=\"button\"` and\n `tabIndex={0}` so it's reachable and operable by keyboard, and a mouse/touch click on it\n toggles the dropdown too (a caller-supplied `onClick` still runs, and can\n `preventDefault()` to opt out).\n- A custom component passed to `as` keeps its own semantics, because a router link takes `to`\n rather than `href` and so can't be recognised from the props it's given. If yours renders\n something non-interactive instead, pass `role=\"button\"` and it takes the fallback above —\n `tabIndex` and click included. The keyboard path is wired either way.\n- `hoverable` dropdowns keep working with a mouse (hover-to-open); the keyboard path above\n opens and closes them independently of hover. Bulma shows a `hoverable` dropdown's menu while\n the pointer is on it and while focus is in it, the link included, on a desktop-wide window.\n <kbd>Escape</kbd> puts a menu shown that way away, and it stays away until the pointer has left\n the dropdown and focus has too, or until the pointer comes back or focus moves onto something in\n it. From the page, the key goes on to what has focus; from inside\n the dropdown, focus moves to the link, with the same exceptions as for an open one, such as focus\n that can't go back to the link, where the menu stays. Below the desktop breakpoint, where the menu always\n shows under the burger, Escape doesn't put it away, though it still closes an open one.\n- **A fixed navbar:** with `fixed=\"top\"`, bestax's styles pad the page's scroll by\n `--bulma-navbar-height`, so the browser scrolls a control that takes focus, or an in-page link's\n target, to below the navbar rather than under it. `fixed=\"bottom\"` pads the bottom of the page\n the same way, and a navbar fixed by Bulma's `is-fixed-top-touch` or `-desktop` classes (or the\n bottom pair) in its `className` gets the same at that breakpoint, as it gets the margins that\n keep it over the page while an overlay locks its scrolling. The page's own padding, so its top\n doesn't start under the navbar, is still Bulma's `has-navbar-fixed-top` on `<html>`, or\n `has-navbar-fixed-top-touch` or `-desktop` for a navbar fixed at one breakpoint. A\n `scroll-padding-top` of your own on `<html>`, or an [`AppFrame`](https://bestax.io/docs/api/layout/appframe)'s, wins\n over it: set yours for a navbar taller than `--bulma-navbar-height`, as a spaced one is from the\n desktop breakpoint up, or to `0` where your anchor targets already carry a `scroll-margin-top`,\n which adds to it. This ships in `bestax.css` and `extras.css`, not in Bulma's own stylesheet.\n- **Forced colors:** Bulma draws the burger's bars as a background color, which forced colors\n (Windows' contrast themes) replaces, so the burger would vanish there while it still works and\n takes focus. bestax's styles keep its bars visible in the system's button text color. That rule\n ships in `bestax.css` and `extras.css`, not in Bulma's own stylesheet, and an\n [`AppFrame`](https://bestax.io/docs/api/layout/appframe)'s burger gets it too. Bulma marks an active or selected\n link item, `Navbar.Link` and dropdown row with a fill and a text color alone, which forced\n colors replaces, so bestax's styles draw a bar in the system's highlight color inside it there:\n along its bottom in a row, and down its start edge where the items stack, in a dropdown and in\n the menu the burger opens. The item and everything in it stay in the contrast theme's colors,\n and an active tab gets the bar above Bulma's thicker underline. This ships in the same\n stylesheets.\n- **`Navbar.Divider` in forced colors:** Bulma draws it as a background color too, which forced\n colors paints in the dropdown's own color, so the line would vanish. bestax's styles draw it in\n the system's text color there, from the same stylesheets.\n- **An open dropdown's edge in forced colors:** from the desktop breakpoint up, Bulma draws\n `Navbar.DropdownMenu` as a box over the page, edged with a shadow and, for some, a line on the\n side it opens from. Forced colors drops the shadow and paints the box in the page's own color, so\n bestax's styles draw a one pixel line in the system's text color around it there, outside the\n box, so nothing moves. Under the burger its rows sit in the menu, with no box to edge. This\n ships in the same stylesheets.\n- **In a colored [`Hero`](https://bestax.io/docs/api/layout/hero):** Bulma's hero sets the colors its navbar's items\n take on hover and when active, but Bulma's navbar doesn't read them, so a focused or hovered\n item took the scheme's fill under the hero's text, and the active item and the burger took the\n link color. For a `Navbar` with no `color` of its own, bestax's styles draw a focused, hovered or\n active item in the hero's text color with the hero's background color as its text, the burger\n and a tab in the hero's text color, and the dropdown arrow in its link's text color. The menu the\n burger opens, and the dropdown's rows in it, take the hero's background and text, except an\n active row, which keeps Bulma's selected fill and the text that reads on it, and on a phone a bold hero's menu takes the hero's\n own gradient. Where `Navbar.DropdownMenu` is a box of its own, on a desktop, its links keep\n Bulma's colors. That rule ships in `bestax.css` and `extras.css`, not in Bulma's own stylesheet.\n\n:::note\nThere's no arrow-key roving between navbar items, and a press outside an open `Navbar.Dropdown`\ncloses it only when it moves focus there. A press on a field moves focus in every browser, and\none on a button or a link does in some, such as Chrome, and not in others, such as Safari. Bulma navbar dropdowns are hover/click surfaces, so this is\nintentionally kept simple.\n:::",
93
93
  "related": ["Button", "Icon", "useBulmaClasses"],
94
94
  "storybook": "https://bestax.io/storybook/?path=/story/components-navbar--default",
95
95
  "summary": "The `Navbar` component implements Bulma's powerful, responsive navigation bar for your Bulma React UI.",
@@ -15,7 +15,7 @@
15
15
  },
16
16
  {
17
17
  "title": "Sizes",
18
- "code": "function example() {\n return (\n <Block display=\"flex\" flexDirection=\"column\">\n <Switch size=\"small\" defaultChecked>\n Small\n </Switch>\n <Switch size=\"normal\" defaultChecked>\n Normal\n </Switch>\n <Switch size=\"medium\" defaultChecked>\n Medium\n </Switch>\n <Switch size=\"large\" defaultChecked>\n Large\n </Switch>\n </Block>\n );\n}"
18
+ "code": "function example() {\n return (\n <Block display=\"flex\" flexDirection=\"column\" gap=\"1\">\n <Switch size=\"small\" defaultChecked>\n Small\n </Switch>\n <Switch size=\"normal\" defaultChecked>\n Normal\n </Switch>\n <Switch size=\"medium\" defaultChecked>\n Medium\n </Switch>\n <Switch size=\"large\" defaultChecked>\n Large\n </Switch>\n </Block>\n );\n}"
19
19
  },
20
20
  {
21
21
  "title": "Valid Colors and Sizes",
@@ -54,7 +54,7 @@
54
54
  "code": "function example() {\n const [settings, setSettings] = useState({\n notifications: true,\n darkMode: false,\n autoSave: true,\n });\n\n const updateSetting =\n (key: keyof typeof settings) =>\n (e: React.ChangeEvent<HTMLInputElement>) => {\n setSettings(prev => ({ ...prev, [key]: e.target.checked }));\n };\n\n return (\n <Block style={{ maxWidth: '300px' }}>\n <Title size=\"5\">Settings</Title>\n <Block display=\"flex\" flexDirection=\"column\">\n <Switch\n color=\"primary\"\n checked={settings.notifications}\n onChange={updateSetting('notifications')}\n >\n Push notifications\n </Switch>\n <Switch\n color=\"info\"\n checked={settings.darkMode}\n onChange={updateSetting('darkMode')}\n >\n Dark mode\n </Switch>\n <Switch\n color=\"success\"\n checked={settings.autoSave}\n onChange={updateSetting('autoSave')}\n >\n Auto-save\n </Switch>\n </Block>\n </Block>\n );\n}"
55
55
  }
56
56
  ],
57
- "accessibility": "- The Switch is built on a native checkbox input for proper keyboard navigation\n- Use the `children` prop to provide a visible label\n- For icon-only switches, provide an `aria-label` prop\n- Space toggles a focused switch, as it does a checkbox.\n- A screen reader announces a Switch as a checkbox, since that's the input it's built on. Pass `role=\"switch\"` to have it announced as a switch, as in [Announced as a Switch](https://bestax.io/docs/api/form/switch#announced-as-a-switch). The input keeps its checked state, so `checked`, `onChange` and the form value work the same either way.\n- In forced colors (Windows contrast themes), the track and the knob take system colors, so the knob shows which side it's on in every style. Off, the knob and the edge are in the system's button text color. On, the default style's track fills with the highlight color and the knob takes the color made to read on it, while a thin or outlined switch, whose track doesn't fill, draws its knob and edge in the highlight color. Disabled, it draws in gray at full strength rather than dimmed: the edge, the knob, the label, and the default style's track when on, with the knob in the page's color on it.",
57
+ "accessibility": "- The Switch is built on a native checkbox input for proper keyboard navigation\n- Use the `children` prop to provide a visible label\n- For icon-only switches, provide an `aria-label` prop\n- Space toggles a focused switch, as it does a checkbox.\n- A screen reader announces a Switch as a checkbox, since that's the input it's built on. Pass `role=\"switch\"` to have it announced as a switch, as in [Announced as a Switch](https://bestax.io/docs/api/form/switch#announced-as-a-switch). The input keeps its checked state, so `checked`, `onChange` and the form value work the same either way.\n- In forced colors (Windows contrast themes), the track and the knob take system colors, so the knob shows which side it's on in every style. Off, the knob and the edge are in the system's button text color. On, the default style's track fills with the highlight color and the knob takes the color made to read on it, while a thin or outlined switch, whose track doesn't fill, draws its knob and edge in the highlight color. Disabled, it draws in gray at full strength rather than dimmed: the edge, the knob, the label, and the default style's track when on, with the knob in the page's color on it.\n- A small switch draws its track 18px tall, and a thin one with no text is only as tall as its track, under the 24px minimum target size of WCAG 2.5.8. bestax's styles put a transparent band right below the switch, as wide as it, which takes its presses too, so the switch and the band make a target 24px tall. The track, the text and the layout around them stay as they are. Another switch, or a Bulma form control or button, that comes after it in the page paints over the band and keeps its own presses, so a switch stacked on one of those with no gap keeps the target it draws: 18px tall for a small one, and only its track for a thin one with no text. Give it room below, as the sizes example above does. Anything else that close, such as text or a plain link, sits under the band, and a press on it toggles the switch.",
58
58
  "related": [],
59
59
  "storybook": null,
60
60
  "summary": "The `Switch` component provides a toggle switch for boolean on/off states.",
@@ -80,7 +80,7 @@
80
80
  "name": "size",
81
81
  "type": "'small' | 'normal' | 'medium' | 'large'",
82
82
  "default": null,
83
- "description": "Size of the switch.",
83
+ "description": "Size of the switch. A small one draws 18px tall and takes the rest of its 24px target from a transparent band right below it, so leave it room below: stacked flush on another switch or a control, it keeps the 18px.",
84
84
  "required": false,
85
85
  "inherited": false,
86
86
  "deprecated": false
@@ -98,7 +98,7 @@
98
98
  "name": "isThin",
99
99
  "type": "boolean",
100
100
  "default": "false",
101
- "description": "Use thin switch style.",
101
+ "description": "Use thin switch style. With no text, a thin switch is only as tall as its track and takes the rest of its 24px target from a transparent band right below it, so leave it room below: stacked flush on another switch or a control, it keeps the height it draws.",
102
102
  "required": false,
103
103
  "inherited": false,
104
104
  "deprecated": false
@@ -141,7 +141,9 @@ Field/Control/message props. `TextArea` adds `rows` and `hasFixedSize`.
141
141
 
142
142
  `color`, `size`, `checked`/`defaultChecked`, `onChange`, `isRounded`, `isThin`, `isOutlined`,
143
143
  `passiveType`, plus RTL support. It's a native checkbox, so a screen reader calls it one and Space
144
- toggles it. Pass `role="switch"` to have it announced as a switch.
144
+ toggles it. Pass `role="switch"` to have it announced as a switch. A small switch, or a thin one
145
+ with no text, takes the rest of its 24px target from a transparent band right below it, so leave
146
+ room under it: stacked flush on another switch or a control, it keeps the smaller target it draws.
145
147
 
146
148
  ## File — `form/File.tsx`
147
149
 
@@ -179,8 +179,9 @@ Notes:
179
179
  edge there from the desktop breakpoint up as a CanvasText outline, where Bulma's shadow is
180
180
  dropped, marks the active item there
181
181
  with a bar in the system's highlight color, where Bulma's colors for it are replaced, keeps a
182
- `fixed` navbar in place while an overlay locks the page's scrolling, pads the page's scroll by
183
- a `fixed` navbar's height so a control that takes focus doesn't scroll under it, gives an
182
+ `fixed` navbar, or one Bulma's `-touch` or `-desktop` fixed classes fix, in place while an
183
+ overlay locks the page's scrolling, pads the page's scroll by such a navbar's height so a
184
+ control that takes focus doesn't scroll under it, gives an
184
185
  active item's text the invert of the link color it sits on, where Bulma's leaves it in the navbar's text
185
186
  color, draws a navbar in a colored `Hero` in the hero's colors, where Bulma's draws its active item and burger in the link
186
187
  color, and, in a build with a class prefix, draws a dropdown's active link row, other than a tab, as it draws without one,
@@ -1389,8 +1389,9 @@ full-page Loading, takes the page's scrollbar away and pads `<html>` by the room
1389
1389
  page doesn't shift. An element fixed to the window is placed against the window, which grows by
1390
1390
  that room, so the padding doesn't reach it. While the lock is on, it sets the room it padded on
1391
1391
  `<html>` as `--bulma-scroll-lock-offset-right`, or `--bulma-scroll-lock-offset-left` where the
1392
- scrollbar was on the left. A `fixed` Navbar, the toast and notification stacks and an Affix add
1393
- them to their offsets, so they stay put. A fixed element of the app's own does the same, with a
1392
+ scrollbar was on the left. A `fixed` Navbar, or one Bulma's `-touch` or `-desktop` fixed classes
1393
+ fix at their breakpoint, the toast and notification stacks and an Affix add them to their offsets,
1394
+ so they stay put. A fixed element of the app's own does the same, with a
1394
1395
  `0px` fallback for when no lock is on:
1395
1396
 
1396
1397
  ```css
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bestax-mcp",
3
- "version": "1.18.90",
3
+ "version": "1.18.92",
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.79.1"
45
+ "@allxsmith/bestax-bulma": "^5.79.3"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/node": "^26.6.6",