bestax-mcp 1.18.65 → 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 +1 -1
- package/data/components/Button.json +2 -2
- package/data/components/Buttons.json +5 -5
- package/data/components/CopyButton.json +1 -1
- package/data/components/FloatButton.json +2 -2
- package/data/components/IconButton.json +2 -2
- package/data/components/LinkButton.json +1 -1
- package/data/components/Notification.json +1 -1
- package/data/components/Popover.json +1 -1
- package/data/components/Progress.json +3 -3
- package/data/components/Slider.json +2 -2
- package/data/components/Table.json +4 -4
- package/data/components/ToggleButton.json +2 -2
- package/data/components/Tour.json +3 -3
- package/data/components/UnorderedList.json +12 -2
- package/data/skills/bestax-migrate/references/bulma-classes/component-map.md +3 -0
- package/data/skills/bestax-optimize/references/modular-build.md +21 -5
- package/data/skills/bestax-theming/references/css-variables.md +2 -2
- package/data/skills/bestax-theming/references/themeable-components.md +1 -1
- package/package.json +2 -2
package/data/catalog.json
CHANGED
|
@@ -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
|
|
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- 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 }`. A mark's label sits inside its tick, so `--bulma-slider-tick-opacity` dims the label along with the tick's line, whatever `--bulma-slider-tick-label-color` is.",
|
|
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
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
"title": "All Modifiers",
|
|
14
|
-
"code": "<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:**
|
|
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": "
|
|
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
|
|
@@ -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,
|
|
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
|
|
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,
|
|
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
|
|
@@ -1069,8 +1069,8 @@ whatever these say.
|
|
|
1069
1069
|
|
|
1070
1070
|
### Slider
|
|
1071
1071
|
|
|
1072
|
-
A mark's label sits inside its tick, so `--bulma-slider-tick-opacity` dims
|
|
1073
|
-
tick's line, whatever `--bulma-slider-tick-label-color` you set.
|
|
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
1074
|
|
|
1075
1075
|
`--bulma-slider-disabled-opacity`, `--bulma-slider-fill-color`,
|
|
1076
1076
|
`--bulma-slider-output-background`, `--bulma-slider-output-color`,
|
|
@@ -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-*` |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bestax-mcp",
|
|
3
|
-
"version": "1.18.
|
|
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.
|
|
45
|
+
"@allxsmith/bestax-bulma": "^5.73.5"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/node": "^26.6.6",
|