bestax-mcp 1.18.64 → 1.18.66

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.3"
5
+ "version": "5.73.5"
6
6
  },
7
7
  "docsBase": "https://bestax.io/docs",
8
8
  "categories": [
@@ -101,7 +101,7 @@
101
101
  "code": "function example() {\n const buttonRef = React.useRef<HTMLButtonElement>(null);\n const [tag, setTag] = React.useState<string>();\n\n return (\n <>\n <Button color=\"primary\" ref={buttonRef}>\n Target\n </Button>\n <Button ml=\"2\" onClick={() => setTag(buttonRef.current?.tagName)}>\n Read the tag from its ref\n </Button>\n <p>Rendered element: {tag ?? '—'}</p>\n </>\n );\n}"
102
102
  }
103
103
  ],
104
- "accessibility": "- **Labeling:** Always provide descriptive content for buttons for screen readers.\n- **Icons beside text:** Leave the `Icon` unnamed, so the text alone names the button. The icons in [With an Icon](https://bestax.io/docs/api/elements/button#with-an-icon) write out `aria-hidden=\"true\"`, and `Icon` would render it for them anyway, since they have no `ariaLabel`, `aria-label` or `aria-labelledby` to name them and no `role` or `tabIndex` of their own. A named icon joins the button's name instead, so `ariaLabel=\"Download\"` on the icon of a Download button makes a screen reader announce \"Download Download\".\n- **States:** The `isDisabled` and `disabled` props ensure correct `aria-disabled` and `disabled` attributes.\n- **Keyboard:** When rendered as `<a>`, disabled buttons are not focusable.\n- **Focus:** Use `isFocused` and `isActive` for visual feedback, but rely on browser focus for actual accessibility.\n- **Focus ring:** Bulma shows a focused button with its border and a shadow. A ghost button has neither, and forced colors (Windows' contrast themes) drops the shadow and sets the border's color, so bestax's styles give a focused ghost button, and every focused button in forced colors, an outline. `isFocused` draws it too.\n- **Forced colors:** In Windows' contrast themes a colored button keeps a 1px border, so it still has an edge when the theme replaces its fill, while an outlined button and a `text` one are left as they are.\n- **Outlined on the dark scheme:** bestax's styles draw an outlined button's label and border at the lightness Bulma picks for its color's text on the page wherever that's lighter than the color's own, so a dark color, such as Bulma's link or bestax's blue primary, reads on the dark page. On a light page an outlined button keeps its color's own lightness. On a surface that stays light on both schemes, such as `bgColor=\"white\"`, give the surface Bulma's `theme-light` class (`bestax-theme-light` under the `bestax-` prefix), which keeps what's inside it on the light scheme's values.\n- **Toggles:** `isActive` tells a screen reader nothing. A button that turns something on or off is a [`ToggleButton`](https://bestax.io/docs/api/elements/togglebutton), which sets `aria-pressed`.\n\n:::note\nA button that shows only an icon is an [`IconButton`](https://bestax.io/docs/api/elements/iconbutton), whose types require an\n`aria-label` or an `aria-labelledby`, and whose `isRounded` makes a circle. On a plain `Button` holding only\nan icon, name it with `aria-label` yourself.\n:::",
104
+ "accessibility": "- **Labeling:** Always provide descriptive content for buttons for screen readers.\n- **Icons beside text:** Leave the `Icon` unnamed, so the text alone names the button. The icons in [With an Icon](https://bestax.io/docs/api/elements/button#with-an-icon) write out `aria-hidden=\"true\"`, and `Icon` would render it for them anyway, since they have no `ariaLabel`, `aria-label` or `aria-labelledby` to name them and no `role` or `tabIndex` of their own. A named icon joins the button's name instead, so `ariaLabel=\"Download\"` on the icon of a Download button makes a screen reader announce \"Download Download\".\n- **States:** The `isDisabled` and `disabled` props ensure correct `aria-disabled` and `disabled` attributes.\n- **Keyboard:** When rendered as `<a>`, disabled buttons are not focusable.\n- **Focus:** Use `isFocused` and `isActive` for visual feedback, but rely on browser focus for actual accessibility.\n- **Focus ring:** Bulma shows a focused button with its border and a shadow. A ghost button has neither. A loading or static one has no shadow. All a loading one keeps is its border turning the focus color, which on a colored one is drawn on its own fill, and a loading outlined or text one, or a static one, doesn't change at all. Forced colors (Windows' contrast themes) drops the shadow and sets the border's color. So bestax's styles give a focused ghost, loading or static button, and every focused button in forced colors, an outline. `isFocused` draws it too.\n- **Forced colors:** In Windows' contrast themes a colored button keeps a 1px border, so it still has an edge when the theme replaces its fill, while an outlined button and a `text` one are left as they are.\n- **Outlined on the dark scheme:** bestax's styles draw an outlined button's label and border at the lightness Bulma picks for its color's text on the page wherever that's lighter than the color's own, so a dark color, such as Bulma's link or bestax's blue primary, reads on the dark page. On a light page an outlined button keeps its color's own lightness. On a surface that stays light on both schemes, such as `bgColor=\"white\"`, give the surface Bulma's `theme-light` class (`bestax-theme-light` under the `bestax-` prefix), which keeps what's inside it on the light scheme's values.\n- **Toggles:** `isActive` tells a screen reader nothing. A button that turns something on or off is a [`ToggleButton`](https://bestax.io/docs/api/elements/togglebutton), which sets `aria-pressed`.\n\n:::note\nA button that shows only an icon is an [`IconButton`](https://bestax.io/docs/api/elements/iconbutton), whose types require an\n`aria-label` or an `aria-labelledby`, and whose `isRounded` makes a circle. On a plain `Button` holding only\nan icon, name it with `aria-label` yourself.\n:::",
105
105
  "related": [
106
106
  "Buttons",
107
107
  "CopyButton",
@@ -170,7 +170,7 @@
170
170
  "name": "isLoading",
171
171
  "type": "boolean",
172
172
  "default": "false",
173
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone hides only the label, so the rest needs bestax's CSS loaded.",
173
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
174
174
  "required": false,
175
175
  "inherited": false,
176
176
  "deprecated": false
@@ -193,7 +193,7 @@
193
193
  "name": "isLoading",
194
194
  "type": "boolean",
195
195
  "default": "false",
196
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone hides only the label, so the rest needs bestax's CSS loaded.",
196
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
197
197
  "required": false,
198
198
  "inherited": false,
199
199
  "deprecated": false
@@ -387,7 +387,7 @@
387
387
  "name": "isLoading",
388
388
  "type": "boolean",
389
389
  "default": "false",
390
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone hides only the label, so the rest needs bestax's CSS loaded.",
390
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
391
391
  "required": false,
392
392
  "inherited": true,
393
393
  "deprecated": false
@@ -563,7 +563,7 @@
563
563
  "name": "isLoading",
564
564
  "type": "boolean",
565
565
  "default": "false",
566
- "description": "Shows Bulma's spinner in place of its content and holds the toggle where it is: a click, Enter or Space does nothing, so neither `onClick` nor `onPressedChange` fires, until it's cleared. Set it while a change is saving. The button carries `aria-busy` and `aria-disabled` meanwhile, and stays focusable, so focus isn't lost mid-save. Everything inside it is hidden behind the spinner, in forced colors (Windows' contrast themes) too, and under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone hides only the label, so the rest needs bestax's CSS loaded.",
566
+ "description": "Shows Bulma's spinner in place of its content and holds the toggle where it is: a click, Enter or Space does nothing, so neither `onClick` nor `onPressedChange` fires, until it's cleared. Set it while a change is saving. The button carries `aria-busy` and `aria-disabled` meanwhile, and stays focusable, so focus isn't lost mid-save, with Bulma's focus outline showing it from the keyboard. Everything inside it is hidden behind the spinner, in forced colors (Windows' contrast themes) too, and under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
567
567
  "required": false,
568
568
  "inherited": false,
569
569
  "deprecated": false
@@ -746,7 +746,7 @@
746
746
  "name": "isLoading",
747
747
  "type": "boolean",
748
748
  "default": "false",
749
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone hides only the label, so the rest needs bestax's CSS loaded.",
749
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
750
750
  "required": false,
751
751
  "inherited": true,
752
752
  "deprecated": false
@@ -985,7 +985,7 @@
985
985
  "name": "isLoading",
986
986
  "type": "boolean",
987
987
  "default": "false",
988
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone hides only the label, so the rest needs bestax's CSS loaded.",
988
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
989
989
  "required": false,
990
990
  "inherited": true,
991
991
  "deprecated": false
@@ -166,7 +166,7 @@
166
166
  "name": "isLoading",
167
167
  "type": "boolean",
168
168
  "default": "false",
169
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone hides only the label, so the rest needs bestax's CSS loaded.",
169
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
170
170
  "required": false,
171
171
  "inherited": true,
172
172
  "deprecated": false
@@ -182,7 +182,7 @@
182
182
  "name": "isLoading",
183
183
  "type": "boolean",
184
184
  "default": "false",
185
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone hides only the label, so the rest needs bestax's CSS loaded.",
185
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
186
186
  "required": false,
187
187
  "inherited": true,
188
188
  "deprecated": false
@@ -584,7 +584,7 @@
584
584
  "name": "isLoading",
585
585
  "type": "boolean",
586
586
  "default": "false",
587
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone hides only the label, so the rest needs bestax's CSS loaded.",
587
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
588
588
  "required": false,
589
589
  "inherited": true,
590
590
  "deprecated": false
@@ -54,7 +54,7 @@
54
54
  "code": "<IconButton\n as=\"a\"\n href=\"https://bulma.io/documentation/elements/button/\"\n target=\"_blank\"\n rel=\"noreferrer\"\n icon=\"arrow-up-right-from-square\"\n aria-label=\"Bulma's button docs, in a new tab\"\n/>"
55
55
  }
56
56
  ],
57
- "accessibility": "- **A name every time:** an icon-only button's name is its text alternative\n ([WCAG 1.1.1](https://www.w3.org/WAI/WCAG22/Understanding/non-text-content.html) and\n [4.1.2](https://www.w3.org/WAI/WCAG22/Understanding/name-role-value.html)), so the types require\n `aria-label` or `aria-labelledby`, and a development build warns about an empty or blank one. Name\n the action, not the picture.\n- **The name is the button's:** its `aria-label` or `aria-labelledby` names it over anything inside\n it, so a name on the `Icon` is ignored, and there's no need to give one.\n- **Tooltips describe:** a [`Tooltip`](https://bestax.io/docs/api/components/tooltip) around it points the button's\n `aria-describedby` at itself, so the name and the description stay separate. Give the tooltip\n something to add, not the name again.\n- **Keyboard and focus:** it's a native `<button>`, so <kbd>Enter</kbd> and <kbd>Space</kbd> press\n it, with Bulma's focus style. `isLoading` leaves it focusable.\n- **Target size:** Bulma's smallest is 30 by 30 pixels, above the 24 by 24\n [WCAG 2.5.8](https://www.w3.org/WAI/WCAG22/Understanding/target-size-minimum.html) asks for.\n- **Toggles** are [`ToggleButton`](https://bestax.io/docs/api/elements/togglebutton), which reports `aria-pressed`. Give an\n icon-only one an `aria-label` the same way.\n- **Forced colors:** a font icon, or an SVG drawn in `currentColor`, takes the system's text\n color, as a button's text does.",
57
+ "accessibility": "- **A name every time:** an icon-only button's name is its text alternative\n ([WCAG 1.1.1](https://www.w3.org/WAI/WCAG22/Understanding/non-text-content.html) and\n [4.1.2](https://www.w3.org/WAI/WCAG22/Understanding/name-role-value.html)), so the types require\n `aria-label` or `aria-labelledby`, and a development build warns about an empty or blank one. Name\n the action, not the picture.\n- **The name is the button's:** its `aria-label` or `aria-labelledby` names it over anything inside\n it, so a name on the `Icon` is ignored, and there's no need to give one.\n- **Tooltips describe:** a [`Tooltip`](https://bestax.io/docs/api/components/tooltip) around it points the button's\n `aria-describedby` at itself, so the name and the description stay separate. Give the tooltip\n something to add, not the name again.\n- **Keyboard and focus:** it's a native `<button>`, so <kbd>Enter</kbd> and <kbd>Space</kbd> press\n it, with Bulma's focus style. `isLoading` leaves it focusable. While it loads, Bulma takes away the\n shadow that shows focus, so it shows Bulma's focus outline instead when it has keyboard focus.\n- **Target size:** Bulma's smallest is 30 by 30 pixels, above the 24 by 24\n [WCAG 2.5.8](https://www.w3.org/WAI/WCAG22/Understanding/target-size-minimum.html) asks for.\n- **Toggles** are [`ToggleButton`](https://bestax.io/docs/api/elements/togglebutton), which reports `aria-pressed`. Give an\n icon-only one an `aria-label` the same way.\n- **Forced colors:** a font icon, or an SVG drawn in `currentColor`, takes the system's text\n color, as a button's text does.",
58
58
  "related": [
59
59
  "Button",
60
60
  "Buttons",
@@ -162,7 +162,7 @@
162
162
  "name": "isLoading",
163
163
  "type": "boolean",
164
164
  "default": "false",
165
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone hides only the label, so the rest needs bestax's CSS loaded.",
165
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
166
166
  "required": false,
167
167
  "inherited": true,
168
168
  "deprecated": false
@@ -108,7 +108,7 @@
108
108
  "name": "isLoading",
109
109
  "type": "boolean",
110
110
  "default": "false",
111
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone hides only the label, so the rest needs bestax's CSS loaded.",
111
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
112
112
  "required": false,
113
113
  "inherited": true,
114
114
  "deprecated": false
@@ -34,7 +34,7 @@
34
34
  "code": "<Notification color=\"warning\">\n <Strong>Warning!</Strong> This notification contains{' '}\n <Link href=\"#\">custom content</Link>.\n</Notification>"
35
35
  }
36
36
  ],
37
- "accessibility": "- **Delete button:** Includes `aria-label=\"Close notification\"` for screen readers.\n- **Keyboard:** The delete button is focusable and can be activated by keyboard.\n- **Content:** Use semantic HTML within the notification for best accessibility.\n- **Contrast:** A dark or light notification's text reads against its background the way a dark or light `Button`'s does, in both color schemes, and a white or black one with `isLight` gets the light color's text on its light gray background. That comes from bestax's stylesheets, as the `color` and `isLight` props' descriptions say.\n- **Announcements:** A notification shown through `notification` announces its message. `danger` and `warning` announce themselves: the message carries `role=\"alert\"` with `aria-live=\"assertive\"`, which screen readers reliably announce even though it arrives with its text. The rest are announced politely through a visually hidden `role=\"status\"` region that `NotificationContainer` keeps in the page from the moment it mounts, even with nothing showing, because a polite region that arrives already holding its text often isn't announced. A moment after one of those notifications appears, its message is written into the region, then cleared again shortly after.\n- **Testing:** A polite notification's message doesn't carry `role=\"status\"`, so `getByRole('status')` finds the container's region rather than the notification. Query the message text or `.notification` instead. A count or text [`Badge`](https://bestax.io/docs/api/components/badge) is a `role=\"status\"` node too, so with both on the page `getByRole('status')` matches more than one: find the badge by its accessible name, or use `getAllByRole`. While a message is in the region, the page also holds a second copy of its text, so a test that advances the clock past the announcement and then looks the message up by text can find both, and can still find the region's copy for a moment after the notification closes. Scope that query to the notification, for example with `within`.\n\n:::tip\nAlways provide clear, actionable text inside notifications.\n:::",
37
+ "accessibility": "- **Delete button:** Includes `aria-label=\"Close notification\"` for screen readers.\n- **Keyboard:** The delete button is focusable and can be activated by keyboard.\n- **Content:** Use semantic HTML within the notification for best accessibility.\n- **Contrast:** A dark or light notification's text reads against its background the way a dark or light `Button`'s does, in both color schemes, and a white or black one with `isLight` gets the light color's text on its light gray background. That comes from bestax's stylesheets, as the `color` and `isLight` props' descriptions say.\n- **Announcements:** A notification shown through `notification` announces its message. `danger` and `warning` announce themselves: the message carries `role=\"alert\"` with `aria-live=\"assertive\"`, which screen readers reliably announce even though it arrives with its text. The rest are announced politely through a visually hidden `role=\"status\"` region that `NotificationContainer` keeps in the page from the moment it mounts, even with nothing showing, because a polite region that arrives already holding its text often isn't announced. A moment after one of those notifications appears, its message is written into the region, then cleared again shortly after.\n- **Timing:** A notification shown through `notification` doesn't close on its timer while focus is inside it, on its close button or on a link in its message, whatever `pauseOnHover` says, so a keyboard user who reaches it can use it. Focus from a click counts too, in browsers that focus a clicked link or button, so after a click on one the notification stays up until focus moves elsewhere. Once focus leaves, it gets its whole `duration` again, the way it does after the pointer leaves with `pauseOnHover`.\n- **Testing:** A polite notification's message doesn't carry `role=\"status\"`, so `getByRole('status')` finds the container's region rather than the notification. Query the message text or `.notification` instead. A count or text [`Badge`](https://bestax.io/docs/api/components/badge) is a `role=\"status\"` node too, so with both on the page `getByRole('status')` matches more than one: find the badge by its accessible name, or use `getAllByRole`. While a message is in the region, the page also holds a second copy of its text, so a test that advances the clock past the announcement and then looks the message up by text can find both, and can still find the region's copy for a moment after the notification closes. Scope that query to the notification, for example with `within`.\n\n:::tip\nAlways provide clear, actionable text inside notifications.\n:::",
38
38
  "related": ["Delete", "useBulmaClasses"],
39
39
  "storybook": "https://bestax.io/storybook/?path=/story/elements-notification--default",
40
40
  "summary": "The `Notification` component is a Bulma-styled alert/message area for providing feedback, warnings, or information to users.",
@@ -285,7 +285,7 @@
285
285
  "name": "isLoading",
286
286
  "type": "boolean",
287
287
  "default": "false",
288
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone hides only the label, so the rest needs bestax's CSS loaded.",
288
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
289
289
  "required": false,
290
290
  "inherited": true,
291
291
  "deprecated": false
@@ -34,17 +34,17 @@
34
34
  "code": "<>\n <Progress size=\"small\" color=\"primary\" max={100} />\n <Progress color=\"danger\" max={100} />\n <Progress size=\"medium\" color=\"dark\" max={100} />\n <Progress size=\"large\" color=\"info\" max={100} />\n</>"
35
35
  }
36
36
  ],
37
- "accessibility": "- **Role:** The `<progress>` element is natively accessible.\n- **Labeling:** Always provide context for screen readers (e.g., with `aria-label` or visible text).\n- **Indeterminate:** Omit the `value` prop for indeterminate progress bars.\n- **Reduced motion:** under `prefers-reduced-motion: reduce` an indeterminate bar stops sweeping\n and holds still. A still bar can read as partly filled, so name the task in its label. That\n rule ships in bestax's stylesheets: `bestax.css` and its variants, or `extras.css` next to\n your own Bulma, in either order.\n\n:::warning\nEnsure your progress bars have sufficient color contrast for users with visual impairments.\n:::",
37
+ "accessibility": "- **Role:** The `<progress>` element is natively accessible.\n- **Labeling:** Always provide context for screen readers (e.g., with `aria-label` or visible text).\n- **Indeterminate:** Omit the `value` prop for indeterminate progress bars.\n- **Reduced motion:** under `prefers-reduced-motion: reduce` an indeterminate bar stops sweeping\n and holds still. A still bar can read as partly filled, so name the task in its label. That\n rule ships in bestax's stylesheets: `bestax.css` and its variants, or `extras.css` next to\n your own Bulma, in either order.\n- **Forced colors:** Bulma paints the track and the fill as background colors, which a contrast\n theme replaces with the page's color, so the bar would disappear. In forced colors, bestax draws\n the track in the page's color inside an edge in its text color, and the fill in the text color,\n indeterminate bar included. That's the same for every bar, whatever its `color` or the\n `--bulma-progress-*` variables say, so a bar's color can't carry meaning there. It ships in the\n same stylesheets as the reduced-motion rule.\n\n:::warning\nEnsure your progress bars have sufficient color contrast for users with visual impairments.\n:::",
38
38
  "related": ["useBulmaClasses"],
39
39
  "storybook": "https://bestax.io/storybook/?path=/story/elements-progress--default",
40
- "summary": "The `Progress` component displays a Bulma-styled progress bar.",
40
+ "summary": "The `Progress` component displays a Bulma-styled progress bar. In forced colors, with bestax's CSS loaded, its fill and an edge around its track are drawn in the text color, where Bulma's whole bar would take the page's color and disappear.",
41
41
  "import": "import { Progress } from '@allxsmith/bestax-bulma';",
42
42
  "sourceFile": "bulma-ui/src/elements/Progress.tsx",
43
43
  "rootClass": "progress",
44
44
  "parts": [
45
45
  {
46
46
  "path": "Progress",
47
- "summary": "The `Progress` component displays a Bulma-styled progress bar.",
47
+ "summary": "The `Progress` component displays a Bulma-styled progress bar. In forced colors, with bestax's CSS loaded, its fill and an edge around its track are drawn in the text color, where Bulma's whole bar would take the page's color and disappear.",
48
48
  "component": null,
49
49
  "props": [
50
50
  {
@@ -58,7 +58,7 @@
58
58
  "code": "function example() {\n return (\n <Field\n horizontal\n label=\"Volume\"\n labelProps={{ htmlFor: 'volume-field-control' }}\n >\n <Field.Body>\n <Field>\n <Control iconLeftName=\"volume-up\">\n <Slider\n id=\"volume-field-control\"\n defaultValue={50}\n color=\"primary\"\n />\n </Control>\n </Field>\n </Field.Body>\n </Field>\n );\n}"
59
59
  }
60
60
  ],
61
- "accessibility": "- Uses native `<input type=\"range\">` element\n- The `label` prop, or the label of a `Field` the slider sits in, names its input.\n- In range mode the label starts each thumb's name, so `<Slider range label=\"Price range\" />` announces \"Price range Minimum value\" and \"Price range Maximum value\". Each thumb points `aria-labelledby` at the label and at a hidden span holding its own text, because an `aria-label` would outrank the label. The label's `for` still lands on the low thumb, so clicking the label focuses it.\n- `ariaLabel` wins over the label. In range mode each entry is that thumb's whole name, with no label in front, and an empty entry counts as unset.\n- An `aria-label` or `aria-labelledby` you pass straight to a range Slider names the whole Slider, so it takes the label's place at the start of both thumbs' names: `<Slider range aria-label=\"Budget\" />` announces \"Budget Minimum value\" and \"Budget Maximum value\". An `ariaLabel` entry still wins for its own thumb. To keep a label out of the thumbs' names altogether, pass `aria-labelledby={undefined}`, and they stay \"Minimum value\" and \"Maximum value\".\n- A `Field` label you wire by hand with `labelProps={{ htmlFor }}`, as in a horizontal form, gets no generated id, so give it one of your own there as well, as in `labelProps={{ htmlFor: 'price', id: 'price-label' }}`, and it starts both thumbs' names the same way. Without that `id` it reaches a range Slider only through its `for`, which the thumbs' default `aria-label` outranks, so they stay \"Minimum value\" and \"Maximum value\".\n- In forced colors (Windows' contrast themes) the track and its fill would disappear, since they're painted as a gradient. bestax's styles paint the fill in the system's highlight color and the rest of the track in its text color there, both in the color for disabled text while the slider is disabled, so the track shows how far it's filled.\n- A mark's label defaults to the scheme's weak text color (`--bulma-slider-tick-label-color` is `var(--bulma-text-weak)`), at full opacity, so it follows the light and dark schemes. The tick line's own opacity, `--bulma-slider-tick-opacity`, applies to the line alone.\n- Has `aria-valuenow`, `aria-valuemin`, and `aria-valuemax` attributes\n- Fully keyboard accessible with arrow keys\n- Focus states clearly visible\n- On a right-to-left page the native range mirrors, and the fill, the tick marks and the value bubble follow it, so a value of 25 fills from the right. A vertical slider still fills from the bottom.\n- In forced colors (Windows' contrast themes) the value bubble takes the page's own background, and every side of its arrow would be painted, drawing it as a square. bestax's styles outline the bubble in the system's text color there, and keep the arrow a triangle in that color, pointing at the thumb whichever side the bubble sits on.",
61
+ "accessibility": "- Uses native `<input type=\"range\">` element\n- The `label` prop, or the label of a `Field` the slider sits in, names its input.\n- In range mode the label starts each thumb's name, so `<Slider range label=\"Price range\" />` announces \"Price range Minimum value\" and \"Price range Maximum value\". Each thumb points `aria-labelledby` at the label and at a hidden span holding its own text, because an `aria-label` would outrank the label. The label's `for` still lands on the low thumb, so clicking the label focuses it.\n- `ariaLabel` wins over the label. In range mode each entry is that thumb's whole name, with no label in front, and an empty entry counts as unset.\n- An `aria-label` or `aria-labelledby` you pass straight to a range Slider names the whole Slider, so it takes the label's place at the start of both thumbs' names: `<Slider range aria-label=\"Budget\" />` announces \"Budget Minimum value\" and \"Budget Maximum value\". An `ariaLabel` entry still wins for its own thumb. To keep a label out of the thumbs' names altogether, pass `aria-labelledby={undefined}`, and they stay \"Minimum value\" and \"Maximum value\".\n- A `Field` label you wire by hand with `labelProps={{ htmlFor }}`, as in a horizontal form, gets no generated id, so give it one of your own there as well, as in `labelProps={{ htmlFor: 'price', id: 'price-label' }}`, and it starts both thumbs' names the same way. Without that `id` it reaches a range Slider only through its `for`, which the thumbs' default `aria-label` outranks, so they stay \"Minimum value\" and \"Maximum value\".\n- In forced colors (Windows' contrast themes) the track and its fill would disappear, since they're painted as a gradient. bestax's styles paint the fill in the system's highlight color and the rest of the track in its text color there, both in the color for disabled text while the slider is disabled, so the track shows how far it's filled. The tick marks and their labels draw in the system's button text color there, or its color for disabled text while the slider is disabled, at full strength rather than through the ticks' usual opacity.\n- Has `aria-valuenow`, `aria-valuemin`, and `aria-valuemax` attributes\n- Fully keyboard accessible with arrow keys\n- Focus states clearly visible\n- On a right-to-left page the native range mirrors, and the fill, the tick marks and the value bubble follow it, so a value of 25 fills from the right. A vertical slider still fills from the bottom.\n- In forced colors (Windows' contrast themes) the value bubble takes the page's own background, and every side of its arrow would be painted, drawing it as a square. bestax's styles outline the bubble in the system's text color there, and keep the arrow a triangle in that color, pointing at the thumb whichever side the bubble sits on.",
62
62
  "related": ["Numberinput", "Progress"],
63
63
  "storybook": "https://bestax.io/storybook/?path=/story/form-slider",
64
64
  "summary": "The `Slider` component provides a range slider input for selecting values within a range.",
@@ -255,7 +255,7 @@
255
255
  "name": "marks",
256
256
  "type": "{ value: number; label?: React.ReactNode }[]",
257
257
  "default": null,
258
- "description": "Custom labeled marks along the track. Each mark has `{ value: number; label?: ReactNode }`.",
258
+ "description": "Custom labeled marks along the track. Each mark has `{ value: number; label?: ReactNode }`. A mark's label sits inside its tick, so outside forced colors `--bulma-slider-tick-opacity` dims the label along with the tick's line, whatever `--bulma-slider-tick-label-color` is.",
259
259
  "required": false,
260
260
  "inherited": true,
261
261
  "deprecated": false
@@ -530,7 +530,7 @@
530
530
  {
531
531
  "css": "--bulma-slider-tick-label-color",
532
532
  "sass": "$slider-tick-label-color",
533
- "default": "var(--bulma-text-weak)",
533
+ "default": "var(--bulma-text-light)",
534
534
  "scope": "root"
535
535
  },
536
536
  {
@@ -46,7 +46,7 @@
46
46
  "code": "<Steps value={1}>\n <Steps.Step label=\"Account\" />\n <Steps.Step label=\"Profile\" />\n <Steps.Step label=\"Complete\" />\n</Steps>"
47
47
  }
48
48
  ],
49
- "accessibility": "- The active step has `aria-current=\"step\"`, on its list item, or on its button when it's clickable\n- A clickable step stays a list item and puts its marker and label in a `<button type=\"button\">` inside it, so the list keeps its list items and assistive technology can count them. The button takes Tab, Enter and Space, and the focus ring goes around the whole step, which is what you can click\n- The list has `role=\"list\"`. That's the role a `<ul>` already has, set again for Safari, whose WebKit stops exposing a `<ul>` as a list once its markers are hidden, as they are here, unless the role is written out\n- Use descriptive labels for each step\n- A completed step's marker shows a check mark in place of its number\n- A completed step, and a step not reached yet, ends in a visually hidden \"completed\" or \"upcoming\", in the language `completedLabel` and `upcomingLabel` set. The words sit in the step's list item, after the step, and a clickable step's button also takes them as its description (`aria-describedby`). The button's accessible name stays the step's marker and label. A `Step` used on its own, outside `Steps`, says no words\n- In forced colors (Windows' contrast themes), the lines and a completed step's fill are drawn in the theme's text color, and the current step's marker gets an outline, so completed, current and upcoming steps still look different without color\n- Steps with no `color` are drawn in Bulma's `text-weak`, and a `color` draws the current and completed steps in its `-on-scheme` variant, the one Bulma adjusts for text on the scheme's background, with a completed step's mark in the page's color. A step's number clears WCAG's 4.5:1, and its marker 3:1, against Bulma's page background in light and dark mode. When a `Theme` changes a color's hue, saturation or lightness, set that color's on-scheme lightness with it, as [Label and Text Lightnesses](https://bestax.io/docs/api/helpers/theme#label-and-text-lightnesses) shows\n- On a colored `Notification` or `Hero`, the labels take the surface's text color, which Bulma picks to read on it, as the surface's other text does. Steps with no `color` take it for their markers, numbers and lines too, and fill their markers with the surface's background. A `color` you set is kept on the markers and lines, so on a colored surface set one only if it stands out from the surface's color. Steps on a Box, a Card, a Message or a Modal inside the surface keep the page's look, since those are surfaces of their own, and steps in a Notification inside a Hero follow the Notification",
49
+ "accessibility": "- The active step has `aria-current=\"step\"`, on its list item, or on its button when it's clickable\n- A clickable step stays a list item and puts its marker and label in a `<button type=\"button\">` inside it, so the list keeps its list items and assistive technology can count them. The button takes Tab, Enter and Space, and the focus ring goes around the whole step, which is what you can click\n- The list has `role=\"list\"`. That's the role a `<ul>` already has, set again for Safari, whose WebKit stops exposing a `<ul>` as a list once its markers are hidden, as they are here, unless the role is written out\n- Use descriptive labels for each step\n- A completed step's marker shows a check mark in place of its number\n- A completed step, and a step not reached yet, ends in a visually hidden \"completed\" or \"upcoming\", in the language `completedLabel` and `upcomingLabel` set. The words sit in the step's list item, after the step, and a clickable step's button also takes them as its description (`aria-describedby`). The button's accessible name stays the step's marker and label. A `Step` used on its own, outside `Steps`, says no words\n- In forced colors (Windows' contrast themes), the lines and a completed step's fill are drawn in the theme's text color, and the current step's marker gets an outline, so completed, current and upcoming steps still look different without color\n- Steps take Bulma's colors. On the page, a step with no `color`, and a step not reached yet, is drawn in `grey-light`, and a `color` draws the current and completed steps in that color, with a completed step's mark in the color's invert. On a light page, `grey-light` and some of the colors fall short of the 3:1 that WCAG asks of a graphic, and of the 4.5:1 a step's number needs. On a dark page, so does a current step's number in some colors. For more, set `--bulma-steps-default-color` to a color such as `var(--bulma-text-weak)` on a class you pass through `className`, with the steps' class in the selector (`.steps.my-steps`, `.bestax-steps.my-steps` under the prefixed flavor) so it wins whatever order the stylesheets load in. It wins over a colored `Notification`'s or `Hero`'s text color too, so leave it off steps you put on one. And pick a `color` that reads on your page\n- On a colored `Notification` or `Hero`, the labels take the surface's text color, which Bulma picks to read on it, as the surface's other text does. Steps with no `color` take it for their markers, numbers and lines too, and fill their markers with the surface's background. A `color` you set is kept on the markers and lines, so on a colored surface set one only if it stands out from the surface's color. Steps on a Box, a Card, a Message or a Modal inside the surface keep the page's look, since those are surfaces of their own, and steps in a Notification inside a Hero follow the Notification",
50
50
  "related": ["Progress", "Timeline"],
51
51
  "storybook": "https://bestax.io/storybook/?path=/story/components-steps",
52
52
  "summary": "The `Steps` component provides a multi-step progress indicator for wizard flows, checkout processes, or any multi-step workflow. Each step is a list item. The current one has `aria-current=\"step\"`, and a completed one, and one not reached yet, ends in a visually hidden \"completed\" or \"upcoming\", in the language `completedLabel` and `upcomingLabel` set. A clickable step's button takes those words as its description, so its accessible name stays its marker and its label.",
@@ -90,7 +90,7 @@
90
90
  "name": "color",
91
91
  "type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
92
92
  "default": null,
93
- "description": "Color variant. The current and completed steps take the color's `-on-scheme` variant, the shade Bulma adjusts to read on the page in either scheme, so a pale color such as `warning` is drawn darker on a light page. On a colored `Notification` or `Hero`, leave it off: the markers then take the surface's text color, as the labels do either way, while a color you set is kept even where it doesn't stand out from the surface's.",
93
+ "description": "Color variant. The current and completed steps take the color, and a completed step's mark takes its invert. On a colored `Notification` or `Hero`, leave it off: the markers then take the surface's text color, as the labels do either way, while a color you set is kept even where it doesn't stand out from the surface's.",
94
94
  "required": false,
95
95
  "inherited": false,
96
96
  "deprecated": false
@@ -389,7 +389,7 @@
389
389
  {
390
390
  "css": "--bulma-steps-default-color",
391
391
  "sass": "$steps-default-color",
392
- "default": "var(--bulma-text-weak)",
392
+ "default": "var(--bulma-grey-light)",
393
393
  "scope": "root"
394
394
  },
395
395
  {
@@ -11,11 +11,11 @@
11
11
  },
12
12
  {
13
13
  "title": "All Modifiers",
14
- "code": "<Table isBordered isStriped isNarrow isHoverable isFullwidth isResponsive>\n <Thead>\n <Tr>\n <Th>Column 1</Th>\n <Th>Column 2</Th>\n </Tr>\n </Thead>\n <Tbody>\n <Tr>\n <Td>Cell 1</Td>\n <Td>Cell 2</Td>\n </Tr>\n <Tr>\n <Td>Cell 3</Td>\n <Td>Cell 4</Td>\n </Tr>\n </Tbody>\n</Table>"
14
+ "code": "<Table\n isBordered\n isStriped\n isNarrow\n isHoverable\n isFullwidth\n isResponsive\n aria-label=\"Every modifier\"\n>\n <Thead>\n <Tr>\n <Th>Column 1</Th>\n <Th>Column 2</Th>\n </Tr>\n </Thead>\n <Tbody>\n <Tr>\n <Td>Cell 1</Td>\n <Td>Cell 2</Td>\n </Tr>\n <Tr>\n <Td>Cell 3</Td>\n <Td>Cell 4</Td>\n </Tr>\n </Tbody>\n</Table>"
15
15
  },
16
16
  {
17
17
  "title": "Responsive Table (horizontal scroll on mobile)",
18
- "code": "<Table isResponsive>\n <Thead>\n <Tr>\n {Array.from({ length: 20 }, (_, i) => (\n <Th key={`col-${i + 1}`}>Column {i + 1}</Th>\n ))}\n </Tr>\n </Thead>\n <Tbody>\n {Array.from({ length: 2 }, (_, row) => (\n <Tr key={row}>\n {Array.from({ length: 20 }, (_, col) => (\n <Td key={`cell-${row + 1}-${col + 1}`}>\n Cell {row + 1}-{col + 1}\n </Td>\n ))}\n </Tr>\n ))}\n </Tbody>\n</Table>"
18
+ "code": "<Table isResponsive aria-label=\"Twenty columns\">\n <Thead>\n <Tr>\n {Array.from({ length: 20 }, (_, i) => (\n <Th key={`col-${i + 1}`}>Column {i + 1}</Th>\n ))}\n </Tr>\n </Thead>\n <Tbody>\n {Array.from({ length: 2 }, (_, row) => (\n <Tr key={row}>\n {Array.from({ length: 20 }, (_, col) => (\n <Td key={`cell-${row + 1}-${col + 1}`}>\n Cell {row + 1}-{col + 1}\n </Td>\n ))}\n </Tr>\n ))}\n </Tbody>\n</Table>"
19
19
  },
20
20
  {
21
21
  "title": "Colored Cells",
@@ -38,7 +38,7 @@
38
38
  "code": "<Table isStriped>\n <Table.Thead>\n <Table.Tr>\n <Table.Th>Team</Table.Th>\n <Table.Th>Points</Table.Th>\n </Table.Tr>\n </Table.Thead>\n <Table.Tbody>\n <Table.Tr>\n <Table.Td>Maple Leafs</Table.Td>\n <Table.Td>98</Table.Td>\n </Table.Tr>\n </Table.Tbody>\n</Table>"
39
39
  }
40
40
  ],
41
- "accessibility": "- **Semantics:** Uses `<table>`, `<thead>`, `<tbody>`, `<tfoot>`, `<tr>`, `<th>`, and `<td>`—all proper HTML table elements.\n- **Responsive:** When using `isResponsive`, the table is wrapped in a scrollable container.\n- **Screen Readers:** Always use `<Th>` for header cells, and provide descriptive column headings.\n- **Right to left:** with `bestax.css` and its variants, a header cell aligns to the start of the line, as the body cells do, so on a right-to-left page both sit on the right. They build Bulma with `$table-cell-text-align: start`, where Bulma's own default, in the table below, is `left`. With `extras.css` and a Bulma of your own, set `$table-cell-text-align: start` in your Bulma build, or `--bulma-table-cell-text-align: start` on the table, to get the same. `isAligned` or an `align` attribute still sets a cell's own alignment.\n\n:::tip\nFor responsive tables, ensure your column headers are clear and concise for small screens.\n:::",
41
+ "accessibility": "- **Semantics:** Uses `<table>`, `<thead>`, `<tbody>`, `<tfoot>`, `<tr>`, `<th>`, and `<td>`—all proper HTML table elements.\n- **Responsive:** with `isResponsive`, the table is wrapped in Bulma's scrollable `.table-container`. While the table overflows it, the container is a region with a tab stop, named by the table's own `aria-label` or `aria-labelledby`, so a keyboard user can reach and scroll it, Safari included. The `elements/table` partial, which `bestax.css` and `extras.css` carry, draws Bulma's focus ring just inside it on keyboard focus. While the table fits, it's a plain `div` with no tab stop, though one that has focus keeps its tab stop until focus leaves. A development build warns when a table overflows with no name.\n- **Screen Readers:** Always use `<Th>` for header cells, and provide descriptive column headings.\n- **Right to left:** with `bestax.css` and its variants, a header cell aligns to the start of the line, as the body cells do, so on a right-to-left page both sit on the right. They build Bulma with `$table-cell-text-align: start`, where Bulma's own default, in the table below, is `left`. With `extras.css` and a Bulma of your own, set `$table-cell-text-align: start` in your Bulma build, or `--bulma-table-cell-text-align: start` on the table, to get the same. `isAligned` or an `align` attribute still sets a cell's own alignment.\n\n:::tip\nFor responsive tables, ensure your column headers are clear and concise for small screens.\n:::",
42
42
  "related": ["Block", "useBulmaClasses"],
43
43
  "storybook": "https://bestax.io/storybook/?path=/story/elements-table--default",
44
44
  "summary": "The `Table` component and its subcomponents provide a highly composable, Bulma-styled table system for React.",
@@ -119,7 +119,7 @@
119
119
  "name": "isResponsive",
120
120
  "type": "boolean",
121
121
  "default": "false",
122
- "description": "Makes the table horizontally scrollable on small screens.",
122
+ "description": "Wraps the table in Bulma's `.table-container`, which scrolls it sideways when it's wider than its parent. While it overflows, the container is a region you can tab to and scroll by keyboard, named by the table's own `aria-label` or `aria-labelledby`, so name the table with one of them; a development build warns when it overflows with neither. While the table fits, the container is a plain `div` with no tab stop, though one that has focus keeps its tab stop until focus leaves.",
123
123
  "required": false,
124
124
  "inherited": false,
125
125
  "deprecated": false
@@ -54,7 +54,7 @@
54
54
  "code": "<Buttons>\n <ToggleButton isDisabled>Show archived</ToggleButton>\n <ToggleButton isDisabled defaultPressed>\n Show archived\n </ToggleButton>\n</Buttons>"
55
55
  }
56
56
  ],
57
- "accessibility": "`ToggleButton` follows the toggle button in the\n[APG button pattern](https://www.w3.org/WAI/ARIA/apg/patterns/button/):\n\n- **Role and state:** it's a native `<button>` with `aria-pressed` set to `\"true\"` or `\"false\"`\n from the first render, server markup included, so it's announced as a toggle button, pressed or\n not pressed. It's never `\"mixed\"`.\n- **Keyboard:** <kbd>Enter</kbd> and <kbd>Space</kbd> toggle it, as on any button, and focus stays\n on it.\n- **Loading:** while `isLoading` is set, it carries `aria-busy=\"true\"` and `aria-disabled=\"true\"`,\n so a screen reader can tell it won't respond, and keys hold it still the same as the pointer\n does. It keeps focus, since `aria-disabled` doesn't take it away the way `disabled` would.\n- **The label stays put:** APG says \"it is critical the label on a toggle does not change when its\n state changes.\" Mute stays \"Mute\". An icon can change, but the `aria-label` doesn't. A label that\n changes, \"Play\" and then \"Pause\", belongs on a plain `Button` with no `aria-pressed`. Nothing can\n check this at runtime, so it's yours to keep.\n- **Icon-only toggles** need an `aria-label`, as on `Button`.\n- **On is easy to see:** the default `link` fill turns a light button solid blue, and a dark one\n bright in dark mode, so it's a change in lightness and not only in hue. `color` leaves out the\n fills that wouldn't be: `white`, `light`, `dark` and `black` each match a plain button's\n lightness in one theme or the other. That's also why the pressed look isn't\n `Button`'s `isActive` shade:\n [WCAG's own example](https://www.w3.org/WAI/WCAG22/Understanding/non-text-contrast.html) of a\n button marked only by a darker shade of its color \"would not pass Use of color\".\n- **A set has a name:** give the `Buttons` around a set of toggles `role=\"group\"` and an\n `aria-label`.\n- **One choice from several** is a radio group, not a set of toggles, so it's\n `SegmentedControl`, or `Radios` when the choice is sent with a form.",
57
+ "accessibility": "`ToggleButton` follows the toggle button in the\n[APG button pattern](https://www.w3.org/WAI/ARIA/apg/patterns/button/):\n\n- **Role and state:** it's a native `<button>` with `aria-pressed` set to `\"true\"` or `\"false\"`\n from the first render, server markup included, so it's announced as a toggle button, pressed or\n not pressed. It's never `\"mixed\"`.\n- **Keyboard:** <kbd>Enter</kbd> and <kbd>Space</kbd> toggle it, as on any button, and focus stays\n on it.\n- **Loading:** while `isLoading` is set, it carries `aria-busy=\"true\"` and `aria-disabled=\"true\"`,\n so a screen reader can tell it won't respond, and keys hold it still the same as the pointer\n does. It keeps focus, since `aria-disabled` doesn't take it away the way `disabled` would, and\n shows Bulma's focus outline while it has keyboard focus, pressed or not.\n- **The label stays put:** APG says \"it is critical the label on a toggle does not change when its\n state changes.\" Mute stays \"Mute\". An icon can change, but the `aria-label` doesn't. A label that\n changes, \"Play\" and then \"Pause\", belongs on a plain `Button` with no `aria-pressed`. Nothing can\n check this at runtime, so it's yours to keep.\n- **Icon-only toggles** need an `aria-label`, as on `Button`.\n- **On is easy to see:** the default `link` fill turns a light button solid blue, and a dark one\n bright in dark mode, so it's a change in lightness and not only in hue. `color` leaves out the\n fills that wouldn't be: `white`, `light`, `dark` and `black` each match a plain button's\n lightness in one theme or the other. That's also why the pressed look isn't\n `Button`'s `isActive` shade:\n [WCAG's own example](https://www.w3.org/WAI/WCAG22/Understanding/non-text-contrast.html) of a\n button marked only by a darker shade of its color \"would not pass Use of color\".\n- **A set has a name:** give the `Buttons` around a set of toggles `role=\"group\"` and an\n `aria-label`.\n- **One choice from several** is a radio group, not a set of toggles, so it's\n `SegmentedControl`, or `Radios` when the choice is sent with a form.",
58
58
  "related": [
59
59
  "Button",
60
60
  "Buttons",
@@ -125,7 +125,7 @@
125
125
  "name": "isLoading",
126
126
  "type": "boolean",
127
127
  "default": "false",
128
- "description": "Shows Bulma's spinner in place of its content and holds the toggle where it is: a click, Enter or Space does nothing, so neither `onClick` nor `onPressedChange` fires, until it's cleared. Set it while a change is saving. The button carries `aria-busy` and `aria-disabled` meanwhile, and stays focusable, so focus isn't lost mid-save. Everything inside it is hidden behind the spinner, in forced colors (Windows' contrast themes) too, and under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone hides only the label, so the rest needs bestax's CSS loaded.",
128
+ "description": "Shows Bulma's spinner in place of its content and holds the toggle where it is: a click, Enter or Space does nothing, so neither `onClick` nor `onPressedChange` fires, until it's cleared. Set it while a change is saving. The button carries `aria-busy` and `aria-disabled` meanwhile, and stays focusable, so focus isn't lost mid-save, with Bulma's focus outline showing it from the keyboard. Everything inside it is hidden behind the spinner, in forced colors (Windows' contrast themes) too, and under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
129
129
  "required": false,
130
130
  "inherited": false,
131
131
  "deprecated": false
@@ -373,7 +373,7 @@
373
373
  "name": "isLoading",
374
374
  "type": "boolean",
375
375
  "default": "false",
376
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone hides only the label, so the rest needs bestax's CSS loaded.",
376
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
377
377
  "required": false,
378
378
  "inherited": true,
379
379
  "deprecated": false
@@ -576,7 +576,7 @@
576
576
  "name": "isLoading",
577
577
  "type": "boolean",
578
578
  "default": "false",
579
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone hides only the label, so the rest needs bestax's CSS loaded.",
579
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
580
580
  "required": false,
581
581
  "inherited": true,
582
582
  "deprecated": false
@@ -779,7 +779,7 @@
779
779
  "name": "isLoading",
780
780
  "type": "boolean",
781
781
  "default": "false",
782
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone hides only the label, so the rest needs bestax's CSS loaded.",
782
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
783
783
  "required": false,
784
784
  "inherited": true,
785
785
  "deprecated": false
@@ -58,7 +58,7 @@
58
58
  "code": "<LocaleProvider locale=\"ar\" dir=\"rtl\">\n <TreeSelect\n label=\"المجلد\"\n defaultValue=\"invoices\"\n clearable\n data={[\n {\n value: 'docs',\n label: 'المستندات',\n children: [{ value: 'invoices', label: 'الفواتير' }],\n },\n { value: 'photos', label: 'الصور' },\n ]}\n />\n</LocaleProvider>"
59
59
  }
60
60
  ],
61
- "accessibility": "- **The field is a combobox that opens a dialog,** as the date pickers' is: `role=\"combobox\"`\n with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls` while the panel is open,\n named by its `label`. It's read-only, and in `'single'` its value is the picked item's label.\n In the checkbox modes it's described by the tags.\n- **Keys on the field:** a click, Enter, Space, Down or Alt+Down opens the panel, and with\n `searchable` a printable key opens it with that key in the search box.\n- **The panel** is a non-modal `dialog`, named by the label or `labels.choose`. Focus moves into\n it as it opens: onto the picked item, its branch open, or onto the search box when\n `searchable`, or else onto the first item. It holds focus while it's open, as the date\n pickers' panel does: Tab and Shift+Tab move between the search box and the tree, and wrap.\n Escape and Alt+Up close it and put focus back on the field, and so does a pick in `'single'`.\n A press outside closes it and leaves focus where the press put it.\n- **The tree** is TreeView's, with the same name as the panel: real focus with one tab stop, the\n arrow keys, Home, End, `*` and type-ahead, Right and Left swapped on a right-to-left page,\n `aria-level`, `aria-posinset` and `aria-setsize` on every item, `aria-selected` in `'single'`,\n `aria-checked` in the checkbox modes (`\"mixed\"` only in `'checkbox'`), and disabled items\n reachable and `aria-disabled`. Space joins a type-ahead search under way when an item starts\n with what's been typed and a space, so \"new y\" reaches \"New York\", and otherwise picks or\n checks. See [`TreeView`](https://bestax.io/docs/api/components/treeview#accessibility).\n- **The search box** is named \"Search\", or `labels.search`. When nothing matches, `empty` is said\n once through a polite status region, not again on every key.\n- **Each tag's button** is a `Delete` named \"Remove\" and the item's label, or `ariaCloseLabel`\n described by the tag's label.\n- **`required`** makes the field `aria-required`. A read-only field is left out of the browser's\n own check, so a hidden field over it carries `required`. When the browser stops a submit, it\n focuses that one and shows its message, which every browser takes down as it loses focus. So\n focus stays there, reading as the field and drawn on it, with no on-screen keyboard. A press\n goes where it lands, and the next key, other than a modifier on its own, goes to the field and\n does what it would there.\n- **The chevron** marks the field as a picker, so its colors follow the scheme:\n `--bulma-tree-select-chevron-color` defaults to `var(--bulma-text-weak)`, and\n `--bulma-tree-select-chevron-hover-color` to the stronger `var(--bulma-text)`.\n- **Forced colors:** the field, the panel and the tree keep their edges in system colors, and the\n chevron is text.",
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.",
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.",
@@ -577,13 +577,13 @@
577
577
  {
578
578
  "css": "--bulma-tree-select-chevron-color",
579
579
  "sass": "$tree-select-chevron-color",
580
- "default": "var(--bulma-text-weak)",
580
+ "default": "var(--bulma-text-light)",
581
581
  "scope": "root-and-element"
582
582
  },
583
583
  {
584
584
  "css": "--bulma-tree-select-chevron-hover-color",
585
585
  "sass": "$tree-select-chevron-hover-color",
586
- "default": "var(--bulma-text)",
586
+ "default": "var(--bulma-text-weak)",
587
587
  "scope": "root-and-element"
588
588
  },
589
589
  {
@@ -30,7 +30,7 @@
30
30
  "code": "<Content>\n <UnorderedList>\n <UnorderedList.Item>First item</UnorderedList.Item>\n <UnorderedList.Item>Second item</UnorderedList.Item>\n </UnorderedList>\n</Content>"
31
31
  }
32
32
  ],
33
- "accessibility": "- **List Structure:** Screen readers announce the list and the number of items, helping users understand the content structure.\n- **Semantic Markup:** Using proper `<ul>` and `<li>` elements ensures accessibility for all users.\n- **Nesting:** Properly nested lists maintain correct semantics for assistive technologies.\n\n:::info\nUse `UnorderedList` when the order of items is not significant. For ordered content, use `OrderedList`.\n:::",
33
+ "accessibility": "- **List Structure:** Screen readers announce the list and the number of items, helping users understand the content structure.\n- **Semantic Markup:** Using proper `<ul>` and `<li>` elements ensures accessibility for all users.\n- **Safari:** the `<ul>` renders `role=\"list\"`, the role it already has. Safari stops treating a\n `<ul>` as a list once its bullets are hidden, and Bulma's reset hides them outside `Content`, so\n writing the role out keeps the list and its item count for VoiceOver. A `role` you pass replaces\n it.\n- **Nesting:** Properly nested lists maintain correct semantics for assistive technologies.\n\n:::info\nUse `UnorderedList` when the order of items is not significant. For ordered content, use `OrderedList`.\n:::",
34
34
  "related": ["Content", "ListItem", "OrderedList", "useBulmaClasses"],
35
35
  "storybook": "https://bestax.io/storybook/?path=/story/elements-unorderedlist--default",
36
36
  "summary": "The `UnorderedList` component renders a styled unordered list (`<ul>`) element with Bulma helper class integration.",
@@ -82,7 +82,17 @@
82
82
  "deprecated": false
83
83
  }
84
84
  ],
85
- "extraProps": [],
85
+ "extraProps": [
86
+ {
87
+ "name": "role",
88
+ "type": "React.AriaRole",
89
+ "default": "'list'",
90
+ "description": "The list's role. It's `list`, the role a `<ul>` already has, written out because Safari stops treating a `<ul>` as a list once its bullets are hidden, and Bulma's reset hides them outside `Content`. A role you pass replaces it.",
91
+ "required": false,
92
+ "inherited": false,
93
+ "deprecated": false
94
+ }
95
+ ],
86
96
  "catchAll": "All standard <ul> attributes and Bulma helper props",
87
97
  "types": []
88
98
  },
@@ -278,6 +278,9 @@ prop: `<p className="has-text-centered mt-4">` → `<Paragraph textAlign="center
278
278
  | `<ul>` | `UnorderedList` |
279
279
  | `<figure>` | `Figure` |
280
280
 
281
+ `UnorderedList` writes `role="list"` on its `<ul>` when the `<ul>` has no `role`, the role a list
282
+ already has, and renders any `role` it's given as written, so a `<ul>` converts either way.
283
+
281
284
  bestax has no plain `<div>` wrapper, so `<div className="is-flex mt-4">` stays as it is, with
282
285
  no TODO: it is valid Bulma, and nothing unsafe was skipped.
283
286
 
@@ -94,7 +94,7 @@ is **more complete** than the docs page's Option C example, which omits several)
94
94
 
95
95
  **Elements** (`@allxsmith/bestax-bulma/scss/elements/<name>`): `button`, `colorswatch`,
96
96
  `delete`, `descriptionlist`, `iconbutton`, `kbd`, `linkbutton`, `loader`, `notification`,
97
- `progress`, `ringprogress`, `skeleton`, `stat`, `tag`
97
+ `progress`, `ringprogress`, `skeleton`, `stat`, `table`, `tag`
98
98
 
99
99
  **Helpers** (`@allxsmith/bestax-bulma/scss/helpers/<name>`): `color`, `cursor`, `sizing`, `visibility`
100
100
 
@@ -250,7 +250,8 @@ Notes:
250
250
  - `Loader` is stock Bulma styled by `bulma/sass/elements/loader`, and the `isLoading`
251
251
  spinners on `Button`, `Control` and `Select` are Bulma's too. The `loader` extras partial
252
252
  stops all of them under `prefers-reduced-motion: reduce`, hides everything inside a loading
253
- button where Bulma hides only the label, and keeps each ring open in forced colors (Windows'
253
+ button where Bulma hides only the label, outlines a loading button that has keyboard focus,
254
+ whose focus shadow Bulma takes away, and keeps each ring open in forced colors (Windows'
254
255
  contrast themes), so include it (`as bestax-loader`) next to the Bulma modules in any build
255
256
  that shows one. Its
256
257
  rules win over Bulma's either way, so the order of the two `@use` lines does not matter.
@@ -258,7 +259,9 @@ Notes:
258
259
  `bulma/sass/base/skeleton`). The `progress` and `skeleton` extras partials
259
260
  (`as bestax-progress`, `as bestax-skeleton`) stop the indeterminate bar's sweep and the
260
261
  skeleton pulse (`Skeleton`, the `skeleton` prop, `hasSkeleton`) under
261
- `prefers-reduced-motion: reduce`, the same way and in either order.
262
+ `prefers-reduced-motion: reduce`, the same way and in either order. The `progress` partial
263
+ also keeps the bar drawn in forced colors, its fill and an edge in the text color, where
264
+ Bulma's module leaves the whole bar the page's color.
262
265
  - `Notification` is stock Bulma too (`bulma/sass/elements/notification`). The `notification`
263
266
  extras partial pads the end of one with a close button (`hasDelete`, or a `Delete` passed in)
264
267
  so its text clears the button, and gives a dark or light one its color's own text and
@@ -285,11 +288,13 @@ Notes:
285
288
  include it (`as bestax-delete`) in any build that shows a close button. Its rules win over
286
289
  Bulma's either way, so the order of the `@use` lines does not matter.
287
290
  - `Button` is stock Bulma too (`bulma/sass/elements/button`). Bulma shows a focused button with
288
- its border and a shadow, which a ghost button doesn't have, and forced colors (Windows'
291
+ its border and a shadow, which a ghost button doesn't have and a static one doesn't show, and
292
+ forced colors (Windows'
289
293
  contrast themes) drops the shadow and sets the border's color, so a focused button can look
290
294
  like an unfocused one there. Forced colors also replaces a colored button's fill, which Bulma
291
295
  draws with no border, so an icon-only one shows only its glyph there. The `button` extras
292
- partial gives those focused buttons an outline, a colored button a 1px border in forced
296
+ partial gives those focused buttons an outline, apart from a loading one, which the `loader`
297
+ partial outlines, a colored button a 1px border in forced
293
298
  colors, and an outlined button the lightness Bulma picks for its color's text on the page where
294
299
  that's lighter, so a dark color reads on the dark scheme, so include it (`as bestax-button`) in any build that loads Bulma's button module. Its
295
300
  rules win over Bulma's either way, so the order of the `@use` lines does not matter.
@@ -307,6 +312,17 @@ Notes:
307
312
  );
308
313
  ```
309
314
 
315
+ The `table` extras partial draws the keyboard focus ring of a responsive table's container
316
+ (`isResponsive`), which is a tab stop while the table overflows it, in Bulma's focus color.
317
+ Include it next to the Bulma module in any build with a responsive table:
318
+
319
+ ```scss
320
+ @use '@allxsmith/bestax-bulma/scss/elements/table' as bestax-table;
321
+ ```
322
+
323
+ Bulma's module styles no focus on the container, so the order of the two `@use` lines does
324
+ not matter.
325
+
310
326
  - Stock-Bulma form controls still need their Bulma module (`bulma/sass/form/…`); the extras
311
327
  form partials above style only the bestax-specific behavior.
312
328
  - Bulma's module for a component doesn't always style what bestax renders inside it. A close
@@ -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`, … |
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, `Steps`' and `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, `Timeline`'s colored markers, … |
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.
@@ -1069,6 +1069,9 @@ whatever these say.
1069
1069
 
1070
1070
  ### Slider
1071
1071
 
1072
+ A mark's label sits inside its tick, so outside forced colors `--bulma-slider-tick-opacity` dims
1073
+ the label along with the tick's line, whatever `--bulma-slider-tick-label-color` you set.
1074
+
1072
1075
  `--bulma-slider-disabled-opacity`, `--bulma-slider-fill-color`,
1073
1076
  `--bulma-slider-output-background`, `--bulma-slider-output-color`,
1074
1077
  `--bulma-slider-output-font-size`, `--bulma-slider-output-font-weight`, `--bulma-slider-radius`,
@@ -1277,10 +1280,9 @@ in, such as 31 over a navbar, for beacons on targets inside one.
1277
1280
 
1278
1281
  Declared on the root, `.tree-select`, and on a portaled panel, `.tree-select-panel`, which sits
1279
1282
  outside it. They draw the chevron and the clear button on the field, set the panel's height and
1280
- space the search box over the tree. The chevron's defaults start from root tokens
1281
- (`control-height`, `text-weak`, `text` on hover, `link` while focused), since Bulma registers its
1282
- input variables on the field and its Control. Its colors follow the scheme rather than Bulma's
1283
- input icon color, `text-light`, a fixed light gray that the light scheme's white all but hides. The panel is the picker popover, above, and the tree in it is a
1283
+ space the search box over the tree. The chevron's defaults are the tokens Bulma's input icon variables
1284
+ start from (`control-height`, `text-light`, `text-weak`, `link`), since Bulma registers those on
1285
+ the field and its Control. The panel is the picker popover, above, and the tree in it is a
1284
1286
  `TreeView`, below, so `--bulma-picker-popover-*` and `--bulma-tree-view-*` theme them here too.
1285
1287
  The panel is at least as wide as the field, in place through the picker popover's own rule and
1286
1288
  portaled through the field's width set inline.
@@ -95,7 +95,7 @@ Shades (`colorShade` / `backgroundColorShade`): `00, 05, 10, … 95, invert, lig
95
95
  | `PinInput` | `primary \| link \| info \| success \| warning \| danger \| black \| dark \| light \| white` | `small \| medium \| large` | each box is a Bulma `.input`, so `--bulma-input-*` theme it; also `isRounded`; `--bulma-pin-input-*` |
96
96
  | `Pagination` | `primary \| link \| info \| success \| warning \| danger \| black \| dark \| light \| white` | `small \| medium \| large` | **entire `color` prop deprecated** (no CSS ships; dev-warn; removal next major) |
97
97
  | `Panel` | `primary \| link \| info \| success \| warning \| danger \| black \| dark \| light \| white` | — | — |
98
- | `Progress` | every `validColors` member (the `-bis`/`-ter` shades and the greys deprecated: no CSS, dev-warn, removed next major — see ⚠️) | `small \| medium \| large` | — |
98
+ | `Progress` | every `validColors` member (the `-bis`/`-ter` shades and the greys deprecated: no CSS, dev-warn, removed next major — see ⚠️) | `small \| medium \| large` | in forced colors the fill and an edge are the system's text color, whatever the `color` or the `--bulma-progress-*` variables say |
99
99
  | `Radio` | `primary \| link \| info \| success \| warning \| danger` | `small \| normal \| medium \| large` | the 6 only |
100
100
  | `RadioCard` | `primary \| link \| info \| success \| warning \| danger` | — | the indicator and a picked edge; the surface is Bulma's `.card`, so `--bulma-card-*` styles it |
101
101
  | `RingProgress` | `primary \| link \| info \| success \| warning \| danger \| black \| dark \| light \| white` (the arc) | `small \| medium \| large` | a section takes its own `color`; arcs are SVG strokes, so retheme through `--bulma-ring-progress-*` |
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EACL,SAAS,EAEV,MAAM,yCAAyC,CAAC;AA0PjD,MAAM,WAAW,mBAAmB;IAClC,kEAAkE;IAClE,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,wBAAsB,YAAY,CAChC,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,SAAS,CAAC,CAm+BpB"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EACL,SAAS,EAEV,MAAM,yCAAyC,CAAC;AA2PjD,MAAM,WAAW,mBAAmB;IAClC,kEAAkE;IAClE,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,wBAAsB,YAAY,CAChC,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,SAAS,CAAC,CA4+BpB"}
package/dist/server.js CHANGED
@@ -25,7 +25,7 @@ import { z } from 'zod';
25
25
  import { classTokens, lookupClasses, renderLookup } from './bulma-classes.js';
26
26
  import { documentedExport, dotPath, loadBulmaClasses, loadCatalog, loadComponent, loadServerVersion, loadSkills, loadSkillFile, resolveName, } from './data.js';
27
27
  import { documentedLine, errorResult, HELPER_PROPS_PAGE, partLists, renderCatalog, renderComponent, renderCssVarsAnswer, renderExamples, renderHelperApi, renderPart, renderSkills, referenceOf, referencePointer, table, textResult, throughLine, } from './format.js';
28
- import { GROUP_NAMES, renderHelperDefault, renderHelperGroup, resolveGroup, } from './helper-props.js';
28
+ import { GROUP_NAMES, reflowTables, renderHelperDefault, renderHelperGroup, resolveGroup, } from './helper-props.js';
29
29
  import { callsExport, searchAll, skillSections, suggest, usesExport, } from './search.js';
30
30
  import { missingInstallNote, resolveVersions, versionNote, } from './version.js';
31
31
  const ALL_KINDS = [
@@ -270,6 +270,22 @@ export async function createServer(options = {}) {
270
270
  `and not hand-written Bulma classes); ` +
271
271
  `\`get_skill({ name: "bestax-custom-component" })\` has the spine every reusable ` +
272
272
  `component needs. \`list_skills\` has all seven.`;
273
+ // A section of a skill, from its heading to the next, with its tables
274
+ // reflowed, since no model reads their column padding. Null when the skill or
275
+ // the heading is missing, which costs the caller its preamble and nothing else.
276
+ const skillSection = async (skill, heading) => {
277
+ try {
278
+ const md = await loadSkillFile(skill);
279
+ const start = md.indexOf(heading);
280
+ if (start < 0)
281
+ return null;
282
+ const end = md.indexOf('\n## ', start + 1);
283
+ return reflowTables(md.slice(start, end < 0 ? undefined : end).trimEnd());
284
+ }
285
+ catch {
286
+ return null;
287
+ }
288
+ };
273
289
  // The three components that lose to a core-Bulma near-miss, for the unfiltered
274
290
  // list_components answer only.
275
291
  //
@@ -291,22 +307,12 @@ export async function createServer(options = {}) {
291
307
  // paragraph is skipped — how our eval went is not something a builder needs in context.
292
308
  const nearMissRule = async () => {
293
309
  const heading = '## Three components core Bulma will talk you out of';
294
- try {
295
- const md = await loadSkillFile('bestax-layout-scaffold');
296
- const start = md.indexOf(heading);
297
- if (start < 0)
298
- return '';
299
- const end = md.indexOf('\n## ', start + 1);
300
- const section = md.slice(start, end < 0 ? undefined : end).trimEnd();
301
- // Keep the heading and everything from the table onward; drop the prose between them.
302
- const table = section.indexOf('\n| ');
303
- if (table < 0)
304
- return '';
305
- return `\n\n${heading}\n${section.slice(table)}`;
306
- }
307
- catch {
310
+ const section = await skillSection('bestax-layout-scaffold', heading);
311
+ // Keep the heading and everything from the table onward; drop the prose between them.
312
+ const table = section?.indexOf('\n| ') ?? -1;
313
+ if (!section || table < 0)
308
314
  return '';
309
- }
315
+ return `\n\n${heading}\n${section.slice(table)}`;
310
316
  };
311
317
  // The single highest-leverage thing this server says, prepended to every
312
318
  // get_helper_props answer.
@@ -321,26 +327,21 @@ export async function createServer(options = {}) {
321
327
  //
322
328
  // Sourced from the skill rather than copied, so the two cannot drift. Failure is
323
329
  // non-fatal: a missing or restructured skill costs the preamble, never the reference.
330
+ //
331
+ // Its table goes without the column padding, as the reference after it has:
332
+ // every call carried it, and it left no room under 10k for the version warning
333
+ // after the answer.
324
334
  const inlineStyleRule = async () => {
325
- const heading = '## Inline style → helper prop mapping';
326
- try {
327
- const md = await loadSkillFile('bestax-layout-scaffold');
328
- const start = md.indexOf(heading);
329
- if (start < 0)
330
- return '';
331
- const end = md.indexOf('\n## ', start + 1);
332
- const section = md.slice(start, end < 0 ? undefined : end).trimEnd();
333
- return (`**Do not write inline \`style={{ … }}\`, and do not hand-write Bulma ` +
334
- `\`className\`s** (\`lookup_bulma_classes\` translates one you had in ` +
335
- `mind). Spacing, colour, typography, flex and visibility are ` +
336
- `props on every component. Translate the declaration you were about to ` +
337
- `inline using the table below; if nothing matches (\`maxWidth\`, a ` +
338
- `one-off gradient), add a named class to the project stylesheet and pass ` +
339
- `it via \`className\` — still never inline \`style\`.\n\n${section}\n\n---\n\n`);
340
- }
341
- catch {
335
+ const section = await skillSection('bestax-layout-scaffold', '## Inline style → helper prop mapping');
336
+ if (!section)
342
337
  return '';
343
- }
338
+ return (`**Do not write inline \`style={{ … }}\`, and do not hand-write Bulma ` +
339
+ `\`className\`s** (\`lookup_bulma_classes\` translates one you had in ` +
340
+ `mind). Spacing, colour, typography, flex and visibility are ` +
341
+ `props on every component. Translate the declaration you were about to ` +
342
+ `inline using the table below; if nothing matches (\`maxWidth\`, a ` +
343
+ `one-off gradient), add a named class to the project stylesheet and pass ` +
344
+ `it via \`className\` — still never inline \`style\`.\n\n${section}\n\n---\n\n`);
344
345
  };
345
346
  const notFound = async (name) => {
346
347
  const names = catalog.components.map(c => c.name);
@@ -725,9 +726,9 @@ export async function createServer(options = {}) {
725
726
  return textResult(rule + renderHelperDefault(doc), note());
726
727
  const resolved = resolveGroup(group);
727
728
  if (!resolved) {
728
- // No rule preamble here: this answered nothing, and 3,832 characters of
729
- // prohibition on top of a 124-character "try again" was 97% overhead. An error,
730
- // as list_components marks an unknown category.
729
+ // No rule preamble here: this answered nothing, and the prohibition on top
730
+ // of a one-line "try again" was nearly all overhead. An error, as
731
+ // list_components marks an unknown category.
731
732
  return errorResult(`No helper-prop group matches "${group}". Groups: ` +
732
733
  `${GROUP_NAMES.join(', ')}. Call get_helper_props with no argument ` +
733
734
  `for every prop at once.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bestax-mcp",
3
- "version": "1.18.64",
3
+ "version": "1.18.66",
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.3"
45
+ "@allxsmith/bestax-bulma": "^5.73.5"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/node": "^26.6.6",