bestax-mcp 1.18.67 → 1.18.68

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.
@@ -4669,7 +4669,12 @@
4669
4669
  "bgColor": null,
4670
4670
  "part": false,
4671
4671
  "why": null,
4672
- "modifiers": { "is-active": { "writes": [{ "prop": "active" }] } },
4672
+ "modifiers": {
4673
+ "is-active": {
4674
+ "writes": [{ "prop": "active" }],
4675
+ "needsAttr": { "name": "aria-current", "value": "page" }
4676
+ }
4677
+ },
4673
4678
  "omits": {},
4674
4679
  "wrapsChildren": null,
4675
4680
  "folds": null,
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.6"
5
+ "version": "5.73.7"
6
6
  },
7
7
  "docsBase": "https://bestax.io/docs",
8
8
  "categories": [
@@ -1034,7 +1034,7 @@
1034
1034
  "slug": "components/message",
1035
1035
  "import": "import { Message, MessageHeader, MessageBody } from '@allxsmith/bestax-bulma';",
1036
1036
  "compound": true,
1037
- "propCount": 12,
1037
+ "propCount": 13,
1038
1038
  "exampleCount": 8
1039
1039
  },
1040
1040
  {
@@ -7,50 +7,50 @@
7
7
  "examples": [
8
8
  {
9
9
  "title": "Default Breadcrumb",
10
- "code": "<Breadcrumb>\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"home\" ariaLabel=\"home icon\" /> Home\n </a>\n </li>\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"folder\" ariaLabel=\"category icon\" /> Category\n </a>\n </li>\n <li className=\"is-active\">\n <a href=\"#\">\n <Icon library=\"fa\" name=\"file\" ariaLabel=\"item icon\" /> Item\n </a>\n </li>\n</Breadcrumb>"
10
+ "code": "<Breadcrumb>\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"home\" /> Home\n </a>\n </li>\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"folder\" /> Category\n </a>\n </li>\n <li className=\"is-active\">\n <a href=\"#\" aria-current=\"page\">\n <Icon library=\"fa\" name=\"file\" /> Item\n </a>\n </li>\n</Breadcrumb>"
11
11
  },
12
12
  {
13
13
  "title": "Centered Alignment",
14
- "code": "<Breadcrumb alignment=\"centered\">\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"home\" ariaLabel=\"home icon\" /> Home\n </a>\n </li>\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"folder\" ariaLabel=\"category icon\" /> Category\n </a>\n </li>\n <li className=\"is-active\">\n <a href=\"#\">\n <Icon library=\"fa\" name=\"file\" ariaLabel=\"item icon\" /> Item\n </a>\n </li>\n</Breadcrumb>"
14
+ "code": "<Breadcrumb alignment=\"centered\">\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"home\" /> Home\n </a>\n </li>\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"folder\" /> Category\n </a>\n </li>\n <li className=\"is-active\">\n <a href=\"#\" aria-current=\"page\">\n <Icon library=\"fa\" name=\"file\" /> Item\n </a>\n </li>\n</Breadcrumb>"
15
15
  },
16
16
  {
17
17
  "title": "Right Alignment",
18
- "code": "<Breadcrumb alignment=\"right\">\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"home\" ariaLabel=\"home icon\" /> Home\n </a>\n </li>\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"folder\" ariaLabel=\"category icon\" /> Category\n </a>\n </li>\n <li className=\"is-active\">\n <a href=\"#\">\n <Icon library=\"fa\" name=\"file\" ariaLabel=\"item icon\" /> Item\n </a>\n </li>\n</Breadcrumb>"
18
+ "code": "<Breadcrumb alignment=\"right\">\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"home\" /> Home\n </a>\n </li>\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"folder\" /> Category\n </a>\n </li>\n <li className=\"is-active\">\n <a href=\"#\" aria-current=\"page\">\n <Icon library=\"fa\" name=\"file\" /> Item\n </a>\n </li>\n</Breadcrumb>"
19
19
  },
20
20
  {
21
21
  "title": "Arrow Separator",
22
- "code": "<Breadcrumb separator=\"arrow\">\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"home\" ariaLabel=\"home icon\" /> Home\n </a>\n </li>\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"folder\" ariaLabel=\"category icon\" /> Category\n </a>\n </li>\n <li className=\"is-active\">\n <a href=\"#\">\n <Icon library=\"fa\" name=\"file\" ariaLabel=\"item icon\" /> Item\n </a>\n </li>\n</Breadcrumb>"
22
+ "code": "<Breadcrumb separator=\"arrow\">\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"home\" /> Home\n </a>\n </li>\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"folder\" /> Category\n </a>\n </li>\n <li className=\"is-active\">\n <a href=\"#\" aria-current=\"page\">\n <Icon library=\"fa\" name=\"file\" /> Item\n </a>\n </li>\n</Breadcrumb>"
23
23
  },
24
24
  {
25
25
  "title": "Bullet Separator",
26
- "code": "<Breadcrumb separator=\"bullet\">\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"home\" ariaLabel=\"home icon\" /> Home\n </a>\n </li>\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"folder\" ariaLabel=\"category icon\" /> Category\n </a>\n </li>\n <li className=\"is-active\">\n <a href=\"#\">\n <Icon library=\"fa\" name=\"file\" ariaLabel=\"item icon\" /> Item\n </a>\n </li>\n</Breadcrumb>"
26
+ "code": "<Breadcrumb separator=\"bullet\">\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"home\" /> Home\n </a>\n </li>\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"folder\" /> Category\n </a>\n </li>\n <li className=\"is-active\">\n <a href=\"#\" aria-current=\"page\">\n <Icon library=\"fa\" name=\"file\" /> Item\n </a>\n </li>\n</Breadcrumb>"
27
27
  },
28
28
  {
29
29
  "title": "Dot Separator",
30
- "code": "<Breadcrumb separator=\"dot\">\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"home\" ariaLabel=\"home icon\" /> Home\n </a>\n </li>\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"folder\" ariaLabel=\"category icon\" /> Category\n </a>\n </li>\n <li className=\"is-active\">\n <a href=\"#\">\n <Icon library=\"fa\" name=\"file\" ariaLabel=\"item icon\" /> Item\n </a>\n </li>\n</Breadcrumb>"
30
+ "code": "<Breadcrumb separator=\"dot\">\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"home\" /> Home\n </a>\n </li>\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"folder\" /> Category\n </a>\n </li>\n <li className=\"is-active\">\n <a href=\"#\" aria-current=\"page\">\n <Icon library=\"fa\" name=\"file\" /> Item\n </a>\n </li>\n</Breadcrumb>"
31
31
  },
32
32
  {
33
33
  "title": "Succeeds Separator",
34
- "code": "<Breadcrumb separator=\"succeeds\">\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"home\" ariaLabel=\"home icon\" /> Home\n </a>\n </li>\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"folder\" ariaLabel=\"category icon\" /> Category\n </a>\n </li>\n <li className=\"is-active\">\n <a href=\"#\">\n <Icon library=\"fa\" name=\"file\" ariaLabel=\"item icon\" /> Item\n </a>\n </li>\n</Breadcrumb>"
34
+ "code": "<Breadcrumb separator=\"succeeds\">\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"home\" /> Home\n </a>\n </li>\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"folder\" /> Category\n </a>\n </li>\n <li className=\"is-active\">\n <a href=\"#\" aria-current=\"page\">\n <Icon library=\"fa\" name=\"file\" /> Item\n </a>\n </li>\n</Breadcrumb>"
35
35
  },
36
36
  {
37
37
  "title": "Small Size",
38
- "code": "<Breadcrumb size=\"small\">\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"home\" ariaLabel=\"home icon\" /> Home\n </a>\n </li>\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"folder\" ariaLabel=\"category icon\" /> Category\n </a>\n </li>\n <li className=\"is-active\">\n <a href=\"#\">\n <Icon library=\"fa\" name=\"file\" ariaLabel=\"item icon\" /> Item\n </a>\n </li>\n</Breadcrumb>"
38
+ "code": "<Breadcrumb size=\"small\">\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"home\" /> Home\n </a>\n </li>\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"folder\" /> Category\n </a>\n </li>\n <li className=\"is-active\">\n <a href=\"#\" aria-current=\"page\">\n <Icon library=\"fa\" name=\"file\" /> Item\n </a>\n </li>\n</Breadcrumb>"
39
39
  },
40
40
  {
41
41
  "title": "Medium Size",
42
- "code": "<Breadcrumb size=\"medium\">\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"home\" ariaLabel=\"home icon\" /> Home\n </a>\n </li>\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"folder\" ariaLabel=\"category icon\" /> Category\n </a>\n </li>\n <li className=\"is-active\">\n <a href=\"#\">\n <Icon library=\"fa\" name=\"file\" ariaLabel=\"item icon\" /> Item\n </a>\n </li>\n</Breadcrumb>"
42
+ "code": "<Breadcrumb size=\"medium\">\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"home\" /> Home\n </a>\n </li>\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"folder\" /> Category\n </a>\n </li>\n <li className=\"is-active\">\n <a href=\"#\" aria-current=\"page\">\n <Icon library=\"fa\" name=\"file\" /> Item\n </a>\n </li>\n</Breadcrumb>"
43
43
  },
44
44
  {
45
45
  "title": "Large Size",
46
- "code": "<Breadcrumb size=\"large\">\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"home\" ariaLabel=\"home icon\" /> Home\n </a>\n </li>\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"folder\" ariaLabel=\"category icon\" /> Category\n </a>\n </li>\n <li className=\"is-active\">\n <a href=\"#\">\n <Icon library=\"fa\" name=\"file\" ariaLabel=\"item icon\" /> Item\n </a>\n </li>\n</Breadcrumb>"
46
+ "code": "<Breadcrumb size=\"large\">\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"home\" /> Home\n </a>\n </li>\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"folder\" /> Category\n </a>\n </li>\n <li className=\"is-active\">\n <a href=\"#\" aria-current=\"page\">\n <Icon library=\"fa\" name=\"file\" /> Item\n </a>\n </li>\n</Breadcrumb>"
47
47
  },
48
48
  {
49
49
  "title": "With Icons, Alignment, Separator, Size, and Text Weight",
50
- "code": "<Breadcrumb\n alignment=\"centered\"\n separator=\"dot\"\n size=\"medium\"\n textWeight=\"semibold\"\n>\n <li>\n <a href=\"#\">\n <Icon\n library=\"fa\"\n name=\"home\"\n textColor=\"primary\"\n size=\"small\"\n ariaLabel=\"home icon\"\n />{' '}\n Home\n </a>\n </li>\n <li>\n <a href=\"#\">\n <Icon\n library=\"fa\"\n name=\"folder\"\n textColor=\"info\"\n size=\"small\"\n ariaLabel=\"category icon\"\n />{' '}\n Category\n </a>\n </li>\n <li className=\"is-active\">\n <a href=\"#\">\n <Icon\n library=\"fa\"\n name=\"file\"\n textColor=\"success\"\n size=\"small\"\n ariaLabel=\"item icon\"\n />{' '}\n Item\n </a>\n </li>\n</Breadcrumb>"
50
+ "code": "<Breadcrumb\n alignment=\"centered\"\n separator=\"dot\"\n size=\"medium\"\n textWeight=\"semibold\"\n>\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"home\" textColor=\"primary\" size=\"small\" /> Home\n </a>\n </li>\n <li>\n <a href=\"#\">\n <Icon library=\"fa\" name=\"folder\" textColor=\"info\" size=\"small\" /> Category\n </a>\n </li>\n <li className=\"is-active\">\n <a href=\"#\" aria-current=\"page\">\n <Icon library=\"fa\" name=\"file\" textColor=\"success\" size=\"small\" /> Item\n </a>\n </li>\n</Breadcrumb>"
51
51
  }
52
52
  ],
53
- "accessibility": "- The root is a `<nav class=\"breadcrumb\">` with `aria-label=\"breadcrumbs\"`.\n- Each breadcrumb item should be an `<li>` with an `<a>` or `<span>`, and the final active item should have the `is-active` class.",
53
+ "accessibility": "- The root is a `<nav class=\"breadcrumb\">` with `aria-label=\"breadcrumbs\"`.\n- Each breadcrumb item should be an `<li>` with an `<a>` or `<span>`, and the final active item should have the `is-active` class.\n- **The current page:** `is-active` (with your class prefix, if you set one) only styles the item, so put `aria-current=\"page\"` on its `<a>` or `<span>` too, as the examples do. A screen reader then says which crumb is the page you're on. Without it, every crumb reads as just another link.\n- **Icons beside text:** leave an icon beside a crumb's text without an `ariaLabel`, so it's hidden from assistive technology and the link's name is its text. A label on it is read as part of the link (\"home icon Home\").",
54
54
  "related": ["Icon", "useBulmaClasses"],
55
55
  "storybook": "https://bestax.io/storybook/?path=/story/components-breadcrumb--default",
56
56
  "summary": "The `Breadcrumb` component renders a Bulma-styled breadcrumb navigation.",
@@ -103,7 +103,7 @@
103
103
  "name": "children",
104
104
  "type": "React.ReactNode",
105
105
  "default": null,
106
- "description": "Breadcrumb items (`<li>`s with `<a>` or `<span>`).",
106
+ "description": "Breadcrumb items (`<li>`s with `<a>` or `<span>`). Mark the current page's item with Bulma's `is-active` class (with your class prefix, if you set one) and give its `<a>` or `<span>` `aria-current=\"page\"`, which is what tells a screen reader it's the page you're on, since the class only styles it.",
107
107
  "required": false,
108
108
  "inherited": false,
109
109
  "deprecated": false
@@ -70,7 +70,7 @@
70
70
  "code": "<Carousel repeat={false}>\n <CarouselItem>\n <Hero color=\"danger\" size=\"medium\">\n <Hero.Body textAlign=\"centered\">\n <Paragraph textColor=\"white\">First (no previous)</Paragraph>\n </Hero.Body>\n </Hero>\n </CarouselItem>\n <CarouselItem>\n <Hero color=\"warning\" size=\"medium\">\n <Hero.Body textAlign=\"centered\">\n <Paragraph>Middle slide</Paragraph>\n </Hero.Body>\n </Hero>\n </CarouselItem>\n <CarouselItem>\n <Hero color=\"success\" size=\"medium\">\n <Hero.Body textAlign=\"centered\">\n <Paragraph textColor=\"white\">Last (no next)</Paragraph>\n </Hero.Body>\n </Hero>\n </CarouselItem>\n</Carousel>"
71
71
  }
72
72
  ],
73
- "accessibility": "- Uses `role=\"region\"` with `aria-roledescription=\"carousel\"`\n- Each item is a `group` with `aria-roledescription=\"slide\"`, named for its place, such as \"2 of 6\". An item's own `aria-label` or `aria-labelledby` takes the place of that name\n- Items out of view are `aria-hidden` and `inert`, so screen readers skip them and nothing in them takes focus. With several in view, every item in view is exposed. The copies a loop adds at each end of the track follow the same rule, so where the view runs past the last item, the copies on screen are the ones exposed\n- The track is a polite live region, so what comes into view is announced, except while autoplay is moving it (`aria-live=\"off\"`)\n- Autoplay waits while the pointer is over the carousel (with `pauseOnHover`) and while focus is inside one of its items, so an item being read or used never moves out of view\n- When something else takes the item holding focus out of view (a swipe, a change of width that changes the count, a new controlled `value`, or the item's removal), focus moves to the first item in view rather than dropping to the page\n- Navigation arrows have `aria-label` for screen readers\n- Indicators use `role=\"tablist\"` and `role=\"tab\"` semantics, one for each position a step can land on\n- The indicators take Bulma's look: a resting dot, line or bar is filled in the border color and the current one in the primary color, and a circle is a ring in the border color, filled when current. A resting one falls short of the 3:1 against the page that WCAG asks of a graphic. For that, set `--bulma-carousel-indicator-border-color` to a color such as `var(--bulma-text-weak)` on a class you pass through `className`, with the carousel's class in the selector (`.carousel.my-carousel`, `.bestax-carousel.my-carousel` under the prefixed flavor) so it wins whatever order the stylesheets load in. It draws a ring at each resting indicator's edge, circles included, and leaves the current one, and the dots, lines and bars in the overlay look, as they are. Forced colors (Windows' contrast themes) replaces the fills, so there each indicator shows its ring in the buttons' text color and the current one is filled in it.\n- The Left and Right arrow keys move the carousel while focus is on its arrows or indicators. Inside an item they're left to the item's content, such as a field or a slider\n- Previous/Next buttons are properly disabled at boundaries when not repeating\n- On a right-to-left page the slides run from right to left. The previous arrow sits on the right, at the start of the line, and the next arrow on the left, and the built-in chevrons flip to match. An `iconPrev` or `iconNext` is drawn as you give it. <kbd>ArrowLeft</kbd> and a swipe to the right go to the next slide, the way the track moves.",
73
+ "accessibility": "- Uses `role=\"region\"` with `aria-roledescription=\"carousel\"`\n- Each item is a `group` with `aria-roledescription=\"slide\"`, named for its place, such as \"2 of 6\". An item's own `aria-label` or `aria-labelledby` takes the place of that name\n- Items out of view are `aria-hidden` and `inert`, so screen readers skip them and nothing in them takes focus. With several in view, every item in view is exposed. The copies a loop adds at each end of the track follow the same rule, so where the view runs past the last item, the copies on screen are the ones exposed\n- The track is a polite live region, so what comes into view is announced, except while autoplay is moving it (`aria-live=\"off\"`)\n- Autoplay waits while the pointer is over the carousel (with `pauseOnHover`) and while focus is anywhere inside it, on an item, an arrow or an indicator, so nothing moves while someone reads or works it. A browser that leaves focus on an arrow or an indicator a click pressed keeps it waiting until focus moves on. It's a pause, not a stop: once the pointer and focus leave, autoplay goes on\n- When something else takes the item holding focus out of view (a swipe, a change of width that changes the count, a new controlled `value`, or the item's removal), focus moves to the first item in view rather than dropping to the page\n- Navigation arrows have `aria-label` for screen readers\n- Indicators use `role=\"tablist\"` and `role=\"tab\"` semantics, one for each position a step can land on\n- The indicators take Bulma's look: a resting dot, line or bar is filled in the border color and the current one in the primary color, and a circle is a ring in the border color, filled when current. A resting one falls short of the 3:1 against the page that WCAG asks of a graphic. For that, set `--bulma-carousel-indicator-border-color` to a color such as `var(--bulma-text-weak)` on a class you pass through `className`, with the carousel's class in the selector (`.carousel.my-carousel`, `.bestax-carousel.my-carousel` under the prefixed flavor) so it wins whatever order the stylesheets load in. It draws a ring at each resting indicator's edge, circles included, and leaves the current one, and the dots, lines and bars in the overlay look, as they are. Forced colors (Windows' contrast themes) replaces the fills, so there each indicator shows its ring in the buttons' text color and the current one is filled in it.\n- The Left and Right arrow keys move the carousel while focus is on its arrows or indicators. Inside an item they're left to the item's content, such as a field or a slider\n- Previous/Next buttons are properly disabled at boundaries when not repeating\n- On a right-to-left page the slides run from right to left. The previous arrow sits on the right, at the start of the line, and the next arrow on the left, and the built-in chevrons flip to match. An `iconPrev` or `iconNext` is drawn as you give it. <kbd>ArrowLeft</kbd> and a swipe to the right go to the next slide, the way the track moves.",
74
74
  "related": ["Modal", "Tabs"],
75
75
  "storybook": "https://bestax.io/storybook/?path=/story/components-carousel",
76
76
  "summary": "The `Carousel` component provides an image/content slider with navigation arrows and indicators.",
@@ -96,7 +96,7 @@
96
96
  "name": "autoplay",
97
97
  "type": "boolean",
98
98
  "default": "false",
99
- "description": "Enable auto-play: one step (`itemsToScroll` items) per `interval`. Without `repeat` it stops at the last position. It waits while the pointer is over the carousel (see `pauseOnHover`) and while focus is inside one of its items, so an item being read or used never moves out of view.",
99
+ "description": "Enable auto-play: one step (`itemsToScroll` items) per `interval`. Without `repeat` it stops at the last position. It waits while the pointer is over the carousel (see `pauseOnHover`) and while focus is anywhere inside it, on an item, an arrow or an indicator, so nothing moves while someone reads or works it. A browser that leaves focus on an arrow or an indicator a click pressed keeps it waiting until focus moves on.",
100
100
  "required": false,
101
101
  "inherited": false,
102
102
  "deprecated": false
@@ -30,7 +30,7 @@
30
30
  "code": "function example() {\n const faqs = [\n {\n q: 'What is Bestax?',\n a: 'Bestax is a React component library built on Bulma.',\n },\n { q: 'How do I install it?', a: 'pnpm add @allxsmith/bestax-bulma' },\n { q: 'Is it free?', a: 'Yes, Bestax is open source and free to use.' },\n ];\n\n const [open, setOpen] = useState<number[]>([]);\n\n return (\n <Block>\n <Title size=\"5\" mb=\"4\">\n FAQ\n </Title>\n <Collapses multiple value={open} onChange={setOpen}>\n {faqs.map((faq, index) => (\n <Collapse\n key={faq.q}\n bordered\n trigger={\n <Block p=\"4\" display=\"flex\" justifyContent=\"space-between\">\n <Strong>{faq.q}</Strong>\n <Span aria-hidden=\"true\">\n {open.includes(index) ? '▲' : '▼'}\n </Span>\n </Block>\n }\n >\n <Paragraph p=\"4\" textColor=\"grey-dark\">\n {faq.a}\n </Paragraph>\n </Collapse>\n ))}\n </Collapses>\n </Block>\n );\n}"
31
31
  }
32
32
  ],
33
- "accessibility": "- Trigger has `role=\"button\"` and `tabIndex=\"0\"` for keyboard access\n- Trigger has `aria-expanded` to indicate open/closed state\n- Trigger has `aria-controls` pointing to the content element\n- Content has `aria-hidden` matching the collapsed state, and is `inert` while closed, so its\n links and fields leave the tab order until it opens (under `fade` and `slide` a closed panel\n is only squeezed to height 0)\n- Supports keyboard navigation (Enter and Space to toggle)",
33
+ "accessibility": "- Trigger has `role=\"button\"` and `tabIndex=\"0\"` for keyboard access\n- Trigger has `aria-expanded` to indicate open/closed state\n- Trigger has `aria-controls` pointing to the content element\n- Content has `aria-hidden` matching the collapsed state, and is `inert` while closed, so its\n links and fields leave the tab order until it opens (under `fade` and `slide` a closed panel\n is only squeezed to height 0)\n- Supports keyboard navigation (Enter and Space to toggle)\n- The trigger is already a button, so give `trigger` text or layout and nothing interactive: no `Button`, `LinkButton`, `<button>`, link or field. One inside would be a second tab stop with no expanded state, nested in the first",
34
34
  "related": [],
35
35
  "storybook": null,
36
36
  "summary": "The `Collapse` component provides an expandable/collapsible content panel.",
@@ -92,7 +92,7 @@
92
92
  "name": "trigger",
93
93
  "type": "React.ReactNode",
94
94
  "default": null,
95
- "description": "The clickable trigger element (header/button).",
95
+ "description": "What the clickable header shows. Collapse renders the header itself, as a `div` with `role=\"button\"`, `aria-expanded` and `aria-controls`, so give it text or layout and nothing interactive: a button, a link or a field inside would be a second tab stop with no expanded state, nested in the first.",
96
96
  "required": false,
97
97
  "inherited": false,
98
98
  "deprecated": false
@@ -173,7 +173,7 @@
173
173
  "name": "trigger",
174
174
  "type": "React.ReactNode",
175
175
  "default": null,
176
- "description": "The clickable trigger element (header/button).",
176
+ "description": "What the clickable header shows. Collapse renders the header itself, as a `div` with `role=\"button\"`, `aria-expanded` and `aria-controls`, so give it text or layout and nothing interactive: a button, a link or a field inside would be a second tab stop with no expanded state, nested in the first.",
177
177
  "required": false,
178
178
  "inherited": false,
179
179
  "deprecated": false
@@ -38,7 +38,7 @@
38
38
  "code": "<Message color=\"danger\" title=\"Mixed Approach\">\n <Message.Body>\n <Paragraph>\n You can mix prop-based and compound component approaches!\n </Paragraph>\n <Paragraph>\n This message uses the title prop but compound components for the body.\n </Paragraph>\n </Message.Body>\n</Message>"
39
39
  }
40
40
  ],
41
- "accessibility": "- The message is rendered as `<article class=\"message\">`.\n- If `onClose` is provided, a close button with `aria-label=\"delete\"` is rendered.\n- For optimal accessibility, use clear and descriptive titles/content.\n\n:::note\nAlways provide a visible or accessible way to dismiss important, interruptive messages.\n:::",
41
+ "accessibility": "- The message is rendered as `<article class=\"message\">`.\n- If `onClose` is provided, a close button is rendered, named \"delete\" unless `ariaCloseLabel` names it. It's drawn as an icon, so its name is all a screen reader says about it: in an app in another language, give it one in the page's language. An `aria-label` on `Message` names the `<article>`, not the button.\n- For optimal accessibility, use clear and descriptive titles/content.\n\n:::note\nAlways provide a visible or accessible way to dismiss important, interruptive messages.\n:::",
42
42
  "related": ["Notification", "useBulmaClasses"],
43
43
  "storybook": "https://bestax.io/storybook/?path=/story/components-message--primary",
44
44
  "summary": "The `Message` component provides Bulma's flexible notice/message box for your Bulma React UI.",
@@ -116,6 +116,15 @@
116
116
  "inherited": false,
117
117
  "deprecated": false
118
118
  },
119
+ {
120
+ "name": "ariaCloseLabel",
121
+ "type": "string",
122
+ "default": "'delete'",
123
+ "description": "ARIA label for the close button `onClose` renders. The button is drawn as an icon, so its name is all a screen reader says about it: give it one in the page's language. An empty one falls back to the default. An `aria-label` on `Message` names the `<article>`, not the button.",
124
+ "required": false,
125
+ "inherited": false,
126
+ "deprecated": false
127
+ },
119
128
  {
120
129
  "name": "children",
121
130
  "type": "React.ReactNode",
@@ -7,23 +7,23 @@
7
7
  "examples": [
8
8
  {
9
9
  "title": "Basic Pagination",
10
- "code": "<Pagination>\n <Pagination.List>\n <Pagination.Link>&laquo;</Pagination.Link>\n <Pagination.Link active>1</Pagination.Link>\n <Pagination.Link>2</Pagination.Link>\n <Pagination.Link>3</Pagination.Link>\n <Pagination.Ellipsis />\n <Pagination.Link>10</Pagination.Link>\n <Pagination.Link>&raquo;</Pagination.Link>\n </Pagination.List>\n</Pagination>"
10
+ "code": "<Pagination>\n <Pagination.List>\n <Pagination.Link href=\"#previous\" aria-label=\"Previous page\">\n &laquo;\n </Pagination.Link>\n <Pagination.Link active href=\"#page-1\">\n 1\n </Pagination.Link>\n <Pagination.Link href=\"#page-2\">2</Pagination.Link>\n <Pagination.Link href=\"#page-3\">3</Pagination.Link>\n <Pagination.Ellipsis />\n <Pagination.Link href=\"#page-10\">10</Pagination.Link>\n <Pagination.Link href=\"#next\" aria-label=\"Next page\">\n &raquo;\n </Pagination.Link>\n </Pagination.List>\n</Pagination>"
11
11
  },
12
12
  {
13
13
  "title": "Sizes",
14
- "code": "<>\n <Pagination size=\"small\" mb=\"2\">\n <Pagination.List>\n <Pagination.Link>1</Pagination.Link>\n <Pagination.Link active>2</Pagination.Link>\n <Pagination.Link>3</Pagination.Link>\n </Pagination.List>\n </Pagination>\n <Pagination size=\"medium\" mb=\"2\">\n <Pagination.List>\n <Pagination.Link>1</Pagination.Link>\n <Pagination.Link active>2</Pagination.Link>\n <Pagination.Link>3</Pagination.Link>\n </Pagination.List>\n </Pagination>\n <Pagination size=\"large\">\n <Pagination.List>\n <Pagination.Link>1</Pagination.Link>\n <Pagination.Link active>2</Pagination.Link>\n <Pagination.Link>3</Pagination.Link>\n </Pagination.List>\n </Pagination>\n</>"
14
+ "code": "<>\n <Pagination size=\"small\" mb=\"2\">\n <Pagination.List>\n <Pagination.Link href=\"#page-1\">1</Pagination.Link>\n <Pagination.Link active href=\"#page-2\">\n 2\n </Pagination.Link>\n <Pagination.Link href=\"#page-3\">3</Pagination.Link>\n </Pagination.List>\n </Pagination>\n <Pagination size=\"medium\" mb=\"2\">\n <Pagination.List>\n <Pagination.Link href=\"#page-1\">1</Pagination.Link>\n <Pagination.Link active href=\"#page-2\">\n 2\n </Pagination.Link>\n <Pagination.Link href=\"#page-3\">3</Pagination.Link>\n </Pagination.List>\n </Pagination>\n <Pagination size=\"large\">\n <Pagination.List>\n <Pagination.Link href=\"#page-1\">1</Pagination.Link>\n <Pagination.Link active href=\"#page-2\">\n 2\n </Pagination.Link>\n <Pagination.Link href=\"#page-3\">3</Pagination.Link>\n </Pagination.List>\n </Pagination>\n</>"
15
15
  },
16
16
  {
17
17
  "title": "Alignment",
18
- "code": "<>\n <Pagination align=\"centered\" mb=\"2\">\n <Pagination.List>\n <Pagination.Link>1</Pagination.Link>\n <Pagination.Link active>2</Pagination.Link>\n <Pagination.Link>3</Pagination.Link>\n </Pagination.List>\n </Pagination>\n <Pagination align=\"right\">\n <Pagination.List>\n <Pagination.Link>1</Pagination.Link>\n <Pagination.Link active>2</Pagination.Link>\n <Pagination.Link>3</Pagination.Link>\n </Pagination.List>\n </Pagination>\n</>"
18
+ "code": "<>\n <Pagination align=\"centered\" mb=\"2\">\n <Pagination.List>\n <Pagination.Link href=\"#page-1\">1</Pagination.Link>\n <Pagination.Link active href=\"#page-2\">\n 2\n </Pagination.Link>\n <Pagination.Link href=\"#page-3\">3</Pagination.Link>\n </Pagination.List>\n </Pagination>\n <Pagination align=\"right\">\n <Pagination.List>\n <Pagination.Link href=\"#page-1\">1</Pagination.Link>\n <Pagination.Link active href=\"#page-2\">\n 2\n </Pagination.Link>\n <Pagination.Link href=\"#page-3\">3</Pagination.Link>\n </Pagination.List>\n </Pagination>\n</>"
19
19
  },
20
20
  {
21
21
  "title": "Rounded",
22
- "code": "<Pagination rounded>\n <Pagination.List>\n <Pagination.Link>1</Pagination.Link>\n <Pagination.Link active>2</Pagination.Link>\n <Pagination.Link>3</Pagination.Link>\n </Pagination.List>\n</Pagination>"
22
+ "code": "<Pagination rounded>\n <Pagination.List>\n <Pagination.Link href=\"#page-1\">1</Pagination.Link>\n <Pagination.Link active href=\"#page-2\">\n 2\n </Pagination.Link>\n <Pagination.Link href=\"#page-3\">3</Pagination.Link>\n </Pagination.List>\n</Pagination>"
23
23
  },
24
24
  {
25
25
  "title": "With Disabled",
26
- "code": "<Pagination>\n <Pagination.List>\n <Pagination.Link disabled>&laquo;</Pagination.Link>\n <Pagination.Link active>1</Pagination.Link>\n <Pagination.Link>2</Pagination.Link>\n <Pagination.Link>3</Pagination.Link>\n <Pagination.Ellipsis />\n <Pagination.Link>10</Pagination.Link>\n <Pagination.Link>&raquo;</Pagination.Link>\n </Pagination.List>\n</Pagination>"
26
+ "code": "<Pagination>\n <Pagination.List>\n <Pagination.Link disabled aria-label=\"Previous page\">\n &laquo;\n </Pagination.Link>\n <Pagination.Link active href=\"#page-1\">\n 1\n </Pagination.Link>\n <Pagination.Link href=\"#page-2\">2</Pagination.Link>\n <Pagination.Link href=\"#page-3\">3</Pagination.Link>\n <Pagination.Ellipsis />\n <Pagination.Link href=\"#page-10\">10</Pagination.Link>\n <Pagination.Link href=\"#next\" aria-label=\"Next page\">\n &raquo;\n </Pagination.Link>\n </Pagination.List>\n</Pagination>"
27
27
  },
28
28
  {
29
29
  "title": "Controlled Pagination",
@@ -35,14 +35,14 @@
35
35
  },
36
36
  {
37
37
  "title": "Previous/Next with Pagination List",
38
- "code": "<Pagination align=\"centered\">\n <Pagination.Previous>Previous</Pagination.Previous>\n <Pagination.Next>Next page</Pagination.Next>\n <Pagination.List>\n <Pagination.Link aria-label=\"Goto page 1\">1</Pagination.Link>\n <Pagination.Ellipsis />\n <Pagination.Link aria-label=\"Goto page 45\">45</Pagination.Link>\n <Pagination.Link active aria-label=\"Page 46\">\n 46\n </Pagination.Link>\n <Pagination.Link aria-label=\"Goto page 47\">47</Pagination.Link>\n <Pagination.Ellipsis />\n <Pagination.Link aria-label=\"Goto page 86\">86</Pagination.Link>\n </Pagination.List>\n</Pagination>"
38
+ "code": "<Pagination align=\"centered\">\n <Pagination.Previous href=\"#previous\">Previous</Pagination.Previous>\n <Pagination.Next href=\"#next\">Next page</Pagination.Next>\n <Pagination.List>\n <Pagination.Link aria-label=\"Goto page 1\" href=\"#page-1\">\n 1\n </Pagination.Link>\n <Pagination.Ellipsis />\n <Pagination.Link aria-label=\"Goto page 45\" href=\"#page-45\">\n 45\n </Pagination.Link>\n <Pagination.Link active aria-label=\"Page 46\" href=\"#page-46\">\n 46\n </Pagination.Link>\n <Pagination.Link aria-label=\"Goto page 47\" href=\"#page-47\">\n 47\n </Pagination.Link>\n <Pagination.Ellipsis />\n <Pagination.Link aria-label=\"Goto page 86\" href=\"#page-86\">\n 86\n </Pagination.Link>\n </Pagination.List>\n</Pagination>"
39
39
  },
40
40
  {
41
41
  "title": "Compound (dot-notation) usage",
42
- "code": "<Pagination>\n <Pagination.Previous>Previous</Pagination.Previous>\n <Pagination.Next>Next page</Pagination.Next>\n <Pagination.List>\n <Pagination.Link active>1</Pagination.Link>\n <Pagination.Link>2</Pagination.Link>\n <Pagination.Ellipsis />\n <Pagination.Link>10</Pagination.Link>\n </Pagination.List>\n</Pagination>"
42
+ "code": "<Pagination>\n <Pagination.Previous href=\"#previous\">Previous</Pagination.Previous>\n <Pagination.Next href=\"#next\">Next page</Pagination.Next>\n <Pagination.List>\n <Pagination.Link active href=\"#page-1\">\n 1\n </Pagination.Link>\n <Pagination.Link href=\"#page-2\">2</Pagination.Link>\n <Pagination.Ellipsis />\n <Pagination.Link href=\"#page-10\">10</Pagination.Link>\n </Pagination.List>\n</Pagination>"
43
43
  }
44
44
  ],
45
- "accessibility": "- The root `Pagination` renders as a semantic `<nav role=\"navigation\" aria-label=\"pagination\">`.\n- Use `aria-label` on page links for better screen reader support.\n- Disabled and active states are handled with ARIA attributes and classes.\n- Rendered from `total`, each page's link is named for its page (\"Page 3\"; pass `getPageLabel` for your own words), and the current page's link carries `aria-current=\"page\"`. Without `getPageHref` the links have no `href`, so they carry `role=\"button\"` and choose a page with Enter or Space.\n- **Focus ring:** the previous, next and page links show a focus ring for keyboard focus only, in Bulma's focus color, width, style and offset (`--bulma-focus-h`, `--bulma-focus-s`, `--bulma-focus-l`, `--bulma-focus-width`, `--bulma-focus-style`, `--bulma-focus-offset`). The current page is filled with the link color, which matches the focus color by default, so its ring takes the link's text color instead, inside the fill. It comes from the bestax extras (`extras.css`, or `bestax.css`, which includes them); with Bulma's CSS alone a focused link shows only its hover shade.\n- **Forced colors:** Bulma marks the current page with colors alone, which forced colors (Windows' contrast themes) replaces, so bestax's styles draw it in the system's highlight colors there instead. A link with Bulma's `is-current` or `is-selected` class gets them, so a [DataTable](https://bestax.io/docs/api/components/datatable)'s pager does too.\n\n:::note\nPagination links are rendered as `<a>` elements for accessibility and keyboard navigation.\n:::",
45
+ "accessibility": "- The root `Pagination` renders as a semantic `<nav role=\"navigation\" aria-label=\"pagination\">`.\n- Use `aria-label` on page links for better screen reader support.\n- Disabled and active states are handled with ARIA attributes and classes.\n- Rendered from `total`, each page's link is named for its page (\"Page 3\"; pass `getPageLabel` for your own words), and the current page's link carries `aria-current=\"page\"`. Without `getPageHref` the links have no `href`, so they carry `role=\"button\"` and choose a page with Enter or Space. With it, an end that goes nowhere has no `href` either, so it's a disabled button.\n- **Links and buttons:** `Pagination.Link`, `Pagination.Previous` and `Pagination.Next` render an `<a>`. Given an `href`, it's a link, and the browser follows it. Without one it's a button: it carries `role=\"button\"`, and Enter or Space clicks it, so an `onClick` works from the keyboard too, as in [Controlled Pagination](https://bestax.io/docs/api/components/pagination#controlled-pagination). A disabled one does nothing, a `role` you pass wins, and an `onKeyDown` you pass keeps the keys to itself.\n- **Focus ring:** the previous, next and page links show a focus ring for keyboard focus only, in Bulma's focus color, width, style and offset (`--bulma-focus-h`, `--bulma-focus-s`, `--bulma-focus-l`, `--bulma-focus-width`, `--bulma-focus-style`, `--bulma-focus-offset`). The current page is filled with the link color, which matches the focus color by default, so its ring takes the link's text color instead, inside the fill. It comes from the bestax extras (`extras.css`, or `bestax.css`, which includes them); with Bulma's CSS alone a focused link shows only its hover shade.\n- **Forced colors:** Bulma marks the current page with colors alone, which forced colors (Windows' contrast themes) replaces, so bestax's styles draw it in the system's highlight colors there instead. A link with Bulma's `is-current` or `is-selected` class gets them, so a [DataTable](https://bestax.io/docs/api/components/datatable)'s pager does too.\n\n:::note\nPagination's parts render `<a>` elements: links with an `href`, and buttons without one.\n:::",
46
46
  "related": ["Button", "useBulmaClasses"],
47
47
  "storybook": "https://bestax.io/storybook/?path=/story/components-pagination--basic",
48
48
  "summary": "The `Pagination` component provides a flexible, composable Bulma pagination navigation for your Bulma React UI.",
@@ -188,7 +188,7 @@
188
188
  "name": "getPageHref",
189
189
  "type": "(page: number) => string",
190
190
  "default": null,
191
- "description": "The `href` for a page's link, when rendering from `total`, making each one a real link (`page => '?page=' + page`). A click then calls `onPageChange` and the browser follows the link too. Without it the links have no `href`, act as buttons, and Enter or Space chooses a page.",
191
+ "description": "The `href` for a page's link, when rendering from `total`, making each one a real link (`page => '?page=' + page`). A click then calls `onPageChange` and the browser follows the link too. Without it the links have no `href`, act as buttons, and Enter or Space chooses a page. An end that goes nowhere, Previous on the first page and Next on the last, has no `href` either way, so it's a disabled button.",
192
192
  "required": false,
193
193
  "inherited": false,
194
194
  "deprecated": false
@@ -296,7 +296,17 @@
296
296
  "deprecated": false
297
297
  }
298
298
  ],
299
- "extraProps": [],
299
+ "extraProps": [
300
+ {
301
+ "name": "href",
302
+ "type": "string",
303
+ "default": null,
304
+ "description": "Where the link goes. Without one it's a button: it renders `role=\"button\"`, and Enter or Space clicks it, so its `onClick` runs from the keyboard too. A `role` you pass wins, and an `onKeyDown` you pass keeps the keys to itself.",
305
+ "required": false,
306
+ "inherited": false,
307
+ "deprecated": false
308
+ }
309
+ ],
300
310
  "catchAll": "All standard <a> attributes and Bulma helper props",
301
311
  "types": []
302
312
  },
@@ -399,7 +409,17 @@
399
409
  "deprecated": false
400
410
  }
401
411
  ],
402
- "extraProps": [],
412
+ "extraProps": [
413
+ {
414
+ "name": "href",
415
+ "type": "string",
416
+ "default": null,
417
+ "description": "Where the link goes. Without one it's a button: it renders `role=\"button\"`, and Enter or Space clicks it, so its `onClick` runs from the keyboard too. A `role` you pass wins, and an `onKeyDown` you pass keeps the keys to itself.",
418
+ "required": false,
419
+ "inherited": false,
420
+ "deprecated": false
421
+ }
422
+ ],
403
423
  "catchAll": "All standard <a> attributes",
404
424
  "types": []
405
425
  },
@@ -436,7 +456,17 @@
436
456
  "deprecated": false
437
457
  }
438
458
  ],
439
- "extraProps": [],
459
+ "extraProps": [
460
+ {
461
+ "name": "href",
462
+ "type": "string",
463
+ "default": null,
464
+ "description": "Where the link goes. Without one it's a button: it renders `role=\"button\"`, and Enter or Space clicks it, so its `onClick` runs from the keyboard too. A `role` you pass wins, and an `onKeyDown` you pass keeps the keys to itself.",
465
+ "required": false,
466
+ "inherited": false,
467
+ "deprecated": false
468
+ }
469
+ ],
440
470
  "catchAll": "All standard <a> attributes",
441
471
  "types": []
442
472
  }
@@ -22,7 +22,7 @@
22
22
  "code": "<Panel>\n <Panel.Heading>Founding Documents</Panel.Heading>\n <Panel.Block active>\n <Panel.Icon name=\"file\" variant=\"solid\" />\n Declaration of Independence\n </Panel.Block>\n <Panel.Block>\n <Panel.Icon name=\"file\" variant=\"solid\" />\n Articles of Confederation\n </Panel.Block>\n <Panel.ButtonBlock>Reset all filters</Panel.ButtonBlock>\n</Panel>"
23
23
  }
24
24
  ],
25
- "accessibility": "- The root panel renders as a semantic `<nav>`, a navigation landmark, by default. For a panel that is not navigation, set `as` to `article`, `section`, `aside` or `div`, and give a `section` an accessible name (for example `aria-labelledby` pointing at the `Panel.Heading`'s `id`) if it should be a region.\n- Use headings, links, and buttons with appropriate labels for best accessibility.\n- The `Panel.Block` by default renders as an anchor `<a>`. Its props follow `as`: only an `a` takes the anchor attributes (`href`, `target`, `download` and the rest), and only a `label` takes `htmlFor` and `form`. A block on another tag drops them, and `rel`, at runtime too.\n- A panel with no `color` keeps its heading readable on the dark scheme through bestax's `components/panel` partial, which `extras.css` and `bestax.css` include. Bulma's CSS alone writes that heading white on light gray.\n- A panel with a `color` draws the text of its active block and active tab, the active block's icon and the active tab's underline in that color at the lightness Bulma picks for the color's text on the page, through the same partial, so they read on both schemes. Black takes the title text's lightness, which is white on the dark scheme. Without the partial the text inherits the color's text helper Panel puts on the panel, and the icon and underline take the color's own lightness, which for a light or white panel is near white on white.\n\n:::note\nFor keyboard navigation, ensure interactive Panel blocks are focusable and provide clear visual states.\n:::",
25
+ "accessibility": "- The root panel renders as a semantic `<nav>`, a navigation landmark, by default. For a panel that is not navigation, set `as` to `article`, `section`, `aside` or `div`, and give a `section` an accessible name (for example `aria-labelledby` pointing at the `Panel.Heading`'s `id`) if it should be a region.\n- Use headings, links, and buttons with appropriate labels for best accessibility.\n- The `Panel.Block` by default renders as an anchor `<a>`. Its props follow `as`: only an `a` takes the anchor attributes (`href`, `target`, `download` and the rest), and only a `label` takes `htmlFor` and `form`. A block on another tag drops them, and `rel`, at runtime too.\n- `Panel.Block active` sets `aria-current=\"page\"` on the element `as` renders, the `<a>` by default, so the current block isn't only a color. An `aria-current` you pass wins: a panel of sections on one page can say `\"location\"`, and `aria-current={false}` turns it off, as on an active `label` block with a checkbox.\n- A panel with no `color` keeps its heading readable on the dark scheme through bestax's `components/panel` partial, which `extras.css` and `bestax.css` include. Bulma's CSS alone writes that heading white on light gray.\n- A panel with a `color` draws the text of its active block and active tab, the active block's icon and the active tab's underline in that color at the lightness Bulma picks for the color's text on the page, through the same partial, so they read on both schemes. Black takes the title text's lightness, which is white on the dark scheme. Without the partial the text inherits the color's text helper Panel puts on the panel, and the icon and underline take the color's own lightness, which for a light or white panel is near white on white.\n\n:::note\nFor keyboard navigation, ensure interactive Panel blocks are focusable and provide clear visual states.\n:::",
26
26
  "related": ["Icon", "useBulmaClasses"],
27
27
  "storybook": "https://bestax.io/storybook/?path=/story/components-panel--revolutionary-war",
28
28
  "summary": "The `Panel` component implements Bulma's versatile panel block for React.",
@@ -159,7 +159,7 @@
159
159
  "name": "active",
160
160
  "type": "boolean",
161
161
  "default": "false",
162
- "description": "Whether the block is active.",
162
+ "description": "Marks the block as the current one. It adds Bulma's `is-active` class, and `aria-current=\"page\"` on the element `as` renders, so assistive tech can tell which block is current too. An `aria-current` you pass wins, even `undefined`: use it to say something else (`\"location\"` for a section of one page, say), or `aria-current={false}` to turn it off, as on an active block that isn't navigation, such as a `label` with a checkbox.",
163
163
  "required": false,
164
164
  "inherited": false,
165
165
  "deprecated": false
@@ -26,7 +26,7 @@
26
26
  "code": "function example() {\n return (\n <Reveal animation=\"fade\" once={false}>\n <Notification color=\"info\">\n Scroll me out of view and back in to see this animate again.\n </Notification>\n </Reveal>\n );\n}"
27
27
  }
28
28
  ],
29
- "accessibility": "- `Reveal` never removes content from the accessibility tree — it only animates `opacity` and\n `transform`, so screen reader users always have access to the content regardless of scroll\n position.\n- When the user's OS is set to reduce motion (`prefers-reduced-motion: reduce`), `Reveal` skips\n the animation entirely and renders the final, visible state immediately.\n- During server-side rendering and the first client render (before hydration effects run),\n `Reveal` renders the final, visible state — content is never hidden if JavaScript fails to\n load, ensuring crawlers and no-JS visitors always see the full page.",
29
+ "accessibility": "- `Reveal` never removes content from the accessibility tree — it only animates `opacity` and\n `transform`, so screen reader users always have access to the content regardless of scroll\n position.\n- An element reveals once `threshold` of it is in view. One too big for the viewport ever to show\n that much of itself, such as a long section on a phone or at a high browser zoom, reveals as soon as any\n of it is in view, so its content shows as it's scrolled to, and so does a link that keyboard\n focus lands on inside it.\n- When the user's OS is set to reduce motion (`prefers-reduced-motion: reduce`), `Reveal` skips\n the animation entirely and renders the final, visible state immediately.\n- During server-side rendering and the first client render (before hydration effects run),\n `Reveal` renders the final, visible state — content is never hidden if JavaScript fails to\n load, ensuring crawlers and no-JS visitors always see the full page.",
30
30
  "related": [],
31
31
  "storybook": null,
32
32
  "summary": "The `Reveal` component animates its content into view as it scrolls into the viewport, backed by `IntersectionObserver`.",
@@ -79,7 +79,7 @@
79
79
  "name": "threshold",
80
80
  "type": "number",
81
81
  "default": "0.15",
82
- "description": "Fraction (0-1) of the element that must be visible to trigger the reveal. Clamped to the 0-1 range; non-finite values fall back to `0.15`.",
82
+ "description": "Fraction (0-1) of the element that must be visible to trigger the reveal. Clamped to the 0-1 range; non-finite values fall back to `0.15`. An element too big for the viewport ever to show that fraction of it, such as a long section on a phone or at a high browser zoom, reveals as soon as any of it is in view. The viewport is what that's judged against, so an element in a scrolling container that shows less of it than the viewport would can still wait for a fraction it never reaches.",
83
83
  "required": false,
84
84
  "inherited": false,
85
85
  "deprecated": false
@@ -62,7 +62,7 @@
62
62
  "code": "<Tabs>\n <Tabs.List>\n <Tabs.Tab index={0}>Overview</Tabs.Tab>\n <Tabs.Tab index={1}>Settings</Tabs.Tab>\n </Tabs.List>\n <Tabs.Content>\n <Tabs.Content.Item index={0}>Overview panel</Tabs.Content.Item>\n <Tabs.Content.Item index={1}>Settings panel</Tabs.Content.Item>\n </Tabs.Content>\n</Tabs>"
63
63
  }
64
64
  ],
65
- "accessibility": "Tabs built from `Tabs.Tab` follow the [WAI-ARIA tabs pattern](https://www.w3.org/WAI/ARIA/apg/patterns/tabs/), with manual activation.\n\n| Key | Action |\n| ------------------- | ----------------------------------------------------------------------------------------------- |\n| `Tab` / `Shift+Tab` | Enter the tab list on the selected tab, or leave it from whichever tab has focus |\n| `→` / `←` | Move focus to the next / previous tab, wrapping at either end |\n| `↓` / `↑` | Move focus to the next / previous tab in a `vertical` tab list (`→` and `←` keep working there) |\n| `Home` / `End` | Move focus to the first / last tab |\n| `Enter` / `Space` | Activate the focused tab: select it, show its panel and call `onChange` |\n\n- The tab list is a single tab stop. While focus is in it, the stop follows focus, and once focus leaves it returns to the selected tab.\n- Activation is manual: moving focus with the arrow keys, `Home` or `End` doesn't change the panel or call `onChange`. `Enter`, `Space` and a click do. A key press activates the tab through a click on it, so click listeners see keyboard activation too.\n- The arrow keys, `Home` and `End` skip disabled tabs. A disabled tab is marked `aria-disabled` and never takes the tab stop. When the selected tab is disabled, or no tab matches `value`, the enabled tab with the lowest `index` takes it, so the list can still be reached.\n- `Tabs.List` is the `tablist` (marked `aria-orientation=\"vertical\"` in a `vertical` layout), each `Tabs.Tab` is a `tab` with `aria-selected`, and each `Tabs.Content.Item` is a `tabpanel`. A tab names its panel in `aria-controls` and a panel names its tab in `aria-labelledby`, so the panel is announced with the tab's label. The ids are generated, and when you pass your own `id` to a tab or a panel, the other side follows it.\n- Panels aren't focusable themselves. When a panel holds nothing focusable, pass it `tabIndex={0}` so `Tab` moves from the tab list into it.\n- The focus ring shows for keyboard focus only, drawn inside the tab in Bulma's focus color, width and style (`--bulma-focus-h`, `--bulma-focus-s`, `--bulma-focus-l`, `--bulma-focus-width`, `--bulma-focus-style`). A disabled tab is dimmed, with a not-allowed cursor and no hover. Both come from the bestax extras (`extras.css`, or `bestax.css`, which includes them), the same styles that show and hide the panels.\n- On a right-to-left page a `vertical` layout mirrors: `side=\"left\"` puts the tabs at the right, where the line starts, and `side=\"right\"` at the left. The line between the tabs and the panel, and the selected tab's mark on it, stay on the side that faces the panel.\n- Built from `Tabs.Item` with links inside, as in most examples above, the tabs are Bulma navigation and none of this applies: each link is its own tab stop and keeps the browser's link behavior.\n- Use clear text or icons with labels for each tab, and provide `aria-label` or screen-reader text for icon-only tabs.",
65
+ "accessibility": "Tabs built from `Tabs.Tab` follow the [WAI-ARIA tabs pattern](https://www.w3.org/WAI/ARIA/apg/patterns/tabs/), with manual activation.\n\n| Key | Action |\n| ------------------- | ----------------------------------------------------------------------------------------------- |\n| `Tab` / `Shift+Tab` | Enter the tab list on the selected tab, or leave it from whichever tab has focus |\n| `→` / `←` | Move focus to the next / previous tab, wrapping at either end |\n| `↓` / `↑` | Move focus to the next / previous tab in a `vertical` tab list (`→` and `←` keep working there) |\n| `Home` / `End` | Move focus to the first / last tab |\n| `Enter` / `Space` | Activate the focused tab: select it, show its panel and call `onChange` |\n\n- The tab list is a single tab stop. While focus is in it, the stop follows focus, and once focus leaves it returns to the selected tab.\n- Activation is manual: moving focus with the arrow keys, `Home` or `End` doesn't change the panel or call `onChange`. `Enter`, `Space` and a click do. A key press activates the tab through a click on it, so click listeners see keyboard activation too.\n- The arrow keys, `Home` and `End` skip disabled tabs. A disabled tab is marked `aria-disabled` and never takes the tab stop. When the selected tab is disabled, or no tab matches `value`, the enabled tab with the lowest `index` takes it, so the list can still be reached.\n- `Tabs.List` is the `tablist` (marked `aria-orientation=\"vertical\"` in a `vertical` layout), each `Tabs.Tab` is a `tab` with `aria-selected`, and each `Tabs.Content.Item` is a `tabpanel`. A tab names its panel in `aria-controls` and a panel names its tab in `aria-labelledby`, so the panel is announced with the tab's label. The ids are generated, and when you pass your own `id` to a tab or a panel, the other side follows it.\n- Panels aren't focusable themselves. When a panel holds nothing focusable, pass it `tabIndex={0}` so `Tab` moves from the tab list into it.\n- The focus ring shows for keyboard focus only, drawn inside the tab in Bulma's focus color, width and style (`--bulma-focus-h`, `--bulma-focus-s`, `--bulma-focus-l`, `--bulma-focus-width`, `--bulma-focus-style`). A disabled tab is dimmed, with a not-allowed cursor and no hover. Both come from the bestax extras (`extras.css`, or `bestax.css`, which includes them), the same styles that show and hide the panels.\n- **Forced colors:** Bulma marks the active tab with colors alone, which forced colors (Windows' contrast themes) replaces, so bestax's styles draw a bar in the system's highlight color along the bottom of the active tab there, in every style, in a `vertical` layout and for a link in an active `Tabs.Item`. The tab and everything in it stay in the contrast theme's colors, and a disabled tab is drawn at full strength in the theme's color for something disabled, rather than dimmed. This comes from the bestax extras too.\n- On a right-to-left page a `vertical` layout mirrors: `side=\"left\"` puts the tabs at the right, where the line starts, and `side=\"right\"` at the left. The line between the tabs and the panel, and the selected tab's mark on it, stay on the side that faces the panel.\n- Built from `Tabs.Item` with links inside, as in most examples above, the tabs are Bulma navigation and, apart from the forced-colors bar, none of this applies: each link is its own tab stop and keeps the browser's link behavior and Bulma's focus ring.\n- Use clear text or icons with labels for each tab, and provide `aria-label` or screen-reader text for icon-only tabs.",
66
66
  "related": ["Icon", "useBulmaClasses"],
67
67
  "storybook": "https://bestax.io/storybook/?path=/story/components-tabs--alignment-centered",
68
68
  "summary": "The `Tabs` component provides flexible and fully-featured Bulma tab navigation for your Bulma React UI. Built from `Tabs.Tab`, the tabs follow the WAI-ARIA tabs pattern with manual activation: the tab list is a single tab stop, the arrow keys, Home and End move focus between tabs (skipping disabled ones), and Enter or Space activates the focused tab. Each tab names its `Tabs.Content.Item` in `aria-controls`, and each panel names its tab in `aria-labelledby`. Built from `Tabs.Item` with links inside, the tabs stay plain Bulma navigation.",
@@ -54,7 +54,7 @@
54
54
  "code": "function example() {\n return (\n <Paragraph style={{ lineHeight: 1.8 }}>\n Hover over{' '}\n <Tooltip label=\"Cascading Style Sheets\" color=\"info\" dashed>\n <abbr tabIndex={0}>CSS</abbr>\n </Tooltip>{' '}\n or{' '}\n <Tooltip label=\"HyperText Markup Language\" color=\"info\" dashed>\n <abbr tabIndex={0}>HTML</abbr>\n </Tooltip>{' '}\n to see their full names.\n </Paragraph>\n );\n}"
55
55
  }
56
56
  ],
57
- "accessibility": "`Tooltip` is built to\n[WCAG's Content on Hover or Focus](https://www.w3.org/WAI/WCAG22/Understanding/content-on-hover-or-focus.html)\ncriterion:\n\n- **Dismissible:** <kbd>Escape</kbd> hides a shown tooltip wherever focus is, without you moving the\n pointer or focus, and it stays hidden until the pointer or focus leaves the trigger and comes\n back, or, with `openOnTap`, until the next tap on the trigger. The key goes on as well, to\n whatever has focus, so a control in the trigger, such as a `Dropdown`, still gets its own Escape.\n Inside a `Popover` or `Modal`, one Escape hides the tooltip and closes that too, since a tooltip\n only adds to what's there.\n- **Hoverable:** the pointer can move from the trigger onto a shown tooltip, straight across the gap\n between them, and it stays. A hidden tooltip, or one only `active` shows, lets the pointer through\n to whatever is under it.\n- **Persistent:** no timer hides a tooltip that's hovered or focused.\n\nAnd around it:\n\n- Keyboard focus on the trigger shows the tooltip, as hover does. Focus that a click or a tap brings\n doesn't, and neither does a touch pointer, so tapping the trigger just does what the trigger does.\n `openOnTap` shows it with a tap, for a trigger with no tap action of its own.\n- An `active` tooltip is always shown, whatever the pointer, focus and Escape do.\n- Tooltip content has `role=\"tooltip\"`. While it's hidden, the stylesheet gives it\n `visibility: hidden`, which keeps it out of the accessibility tree.\n- The tooltip describes its trigger. The trigger's `aria-describedby` points at it, after any ids it\n already had, so a screen reader reads the tooltip when the trigger takes focus. A hidden tooltip\n still counts as a description, so that's before any `delay` runs out. `content` is read as plain\n text.\n- That takes a single element as `children`, which passes `aria-describedby` on to its DOM node, as\n native elements and bestax components do, and takes focus itself: a button, a link, or a `Span`\n with `tabIndex={0}`. Something focusable inside it doesn't get the link, and text, a fragment or\n several elements get none. A development build warns when the first element Tab reaches in the\n trigger doesn't carry the link, or there isn't one.\n- A tooltip describes and doesn't name, so give an icon-only trigger a name of its own, such as an\n `IconButton`'s `aria-label`, as [On Icons](https://bestax.io/docs/api/components/tooltip#on-icons) does.\n- With `describesTrigger` off, the tooltip shows a name the trigger already has, as the labels of\n an [AppFrame](https://bestax.io/docs/api/layout/appframe) icon rail and a [FloatButton](https://bestax.io/docs/api/components/floatbutton) do. The trigger's `aria-describedby` is left as it\n is and the tooltip is `aria-hidden`, so a screen reader reads the name once. It still shows on\n hover and keyboard focus, and Escape still hides it.\n- While it's `disabled`, the tooltip stays closed and the trigger's `aria-describedby` doesn't point\n at it, so a screen reader doesn't read a tooltip that never shows.\n- The `dashed` style provides a visual cue that more information is available.\n- **Forced colors:** forced colors (Windows' contrast themes) gives the tooltip the page's own\n background and paints every side of the arrow, so the box would read as loose text and the arrow\n as a square. bestax's styles outline the box in the system's text color there, and keep the\n arrow a triangle in that color, pointing at the trigger.",
57
+ "accessibility": "`Tooltip` is built to\n[WCAG's Content on Hover or Focus](https://www.w3.org/WAI/WCAG22/Understanding/content-on-hover-or-focus.html)\ncriterion:\n\n- **Dismissible:** <kbd>Escape</kbd> hides a shown tooltip wherever focus is, without you moving the\n pointer or focus, and it stays hidden until the pointer or focus leaves the trigger and comes\n back, or, with `openOnTap`, until the next tap on the trigger. The key goes on as well, to\n whatever has focus, so a control in the trigger, such as a `Dropdown`, still gets its own Escape.\n Inside a `Popover` or `Modal`, one Escape hides the tooltip and closes that too, since a tooltip\n only adds to what's there.\n- **Hoverable:** the pointer can move from the trigger onto a shown tooltip, straight across the gap\n between them, and it stays. A hidden tooltip, or one only `active` shows, lets the pointer through\n to whatever is under it.\n- **Persistent:** no timer hides a tooltip that's hovered or focused.\n\nAnd around it:\n\n- Keyboard focus on the trigger shows the tooltip, as hover does. Focus that a click or a tap brings\n doesn't, and neither does a touch pointer, so tapping the trigger just does what the trigger does.\n `openOnTap` shows it with a tap, for a trigger with no tap action of its own.\n- An `active` tooltip is always shown, whatever the pointer, focus and Escape do.\n- Tooltip content has `role=\"tooltip\"`. While it's hidden, the stylesheet gives it\n `visibility: hidden`, which keeps it out of the accessibility tree.\n- The tooltip describes its trigger. The trigger's `aria-describedby` points at it, after any ids it\n already had, so a screen reader reads the tooltip when the trigger takes focus. A hidden tooltip\n still counts as a description, so that's before any `delay` runs out. `content` is read as plain\n text.\n- That takes a single element as `children`, which passes `aria-describedby` on to its DOM node, as\n native elements and bestax components do, and takes focus itself: a button, a link, or a `Span`\n with `tabIndex={0}`. Something focusable inside it doesn't get the link, and text, a fragment or\n several elements get none. A development build warns when the first element Tab reaches in the\n trigger doesn't carry the link, or there isn't one.\n- A tooltip describes and doesn't name, so give an icon-only trigger a name of its own, such as an\n `IconButton`'s `aria-label`, as [On Icons](https://bestax.io/docs/api/components/tooltip#on-icons) does.\n- With `describesTrigger` off, the tooltip shows a name the trigger already has, as the labels of\n an [AppFrame](https://bestax.io/docs/api/layout/appframe) icon rail and a [FloatButton](https://bestax.io/docs/api/components/floatbutton) do. The trigger's `aria-describedby` is left as it\n is and the tooltip is `aria-hidden`, so a screen reader reads the name once. It still shows on\n hover and keyboard focus, and Escape still hides it.\n- While it's `disabled`, the tooltip stays closed and the trigger's `aria-describedby` doesn't point\n at it, so a screen reader doesn't read a tooltip that never shows.\n- A label too wide for the box at its maximum width wraps inside it, between words or inside a word longer than the box, so all of it shows on the tooltip's background, with wider letter and word spacing too (WCAG's Text Spacing).\n- The `dashed` style provides a visual cue that more information is available.\n- **Forced colors:** forced colors (Windows' contrast themes) gives the tooltip the page's own\n background and paints every side of the arrow, so the box would read as loose text and the arrow\n as a square. bestax's styles outline the box in the system's text color there, and keep the\n arrow a triangle in that color, pointing at the trigger.",
58
58
  "related": [
59
59
  "Button",
60
60
  "FloatButton",
@@ -132,7 +132,7 @@
132
132
  "name": "multiline",
133
133
  "type": "boolean",
134
134
  "default": "false",
135
- "description": "Allow tooltip to wrap to multiple lines.",
135
+ "description": "Give the tooltip a fixed width, `--bulma-tooltip-multiline-width` up to `--bulma-tooltip-max-width`, whatever its label's length, with its text centered. Without it, the tooltip is as wide as its text, and wraps a label once the box reaches `--bulma-tooltip-max-width`.",
136
136
  "required": false,
137
137
  "inherited": false,
138
138
  "deprecated": false
@@ -47,7 +47,8 @@ Centered; a collection of items → Card grid. For mixed requests, pick the domi
47
47
  mobile. Add responsive `size*` props only to tune the breakpoints.
48
48
  - Interactive extras don't share a state API — never transfer one by analogy:
49
49
  `Collapse trigger={node} open/defaultOpen onOpenChange` (`onOpenChange(open)` reports every
50
- trigger; `onOpen/onClose` fire only when the Collapse holds its own state), an accordion is
50
+ trigger; `onOpen/onClose` fire only when the Collapse holds its own state; the header is
51
+ already a button, so `trigger` holds text, never a `Button` or link), an accordion is
51
52
  `Collapses value/defaultValue/onChange` around plain `Collapse` children indexed from 0 by
52
53
  position (`number | null`, or `number[]` with `multiple`; hide an item with
53
54
  `visibility="hidden"`, never `{cond && …}`, or the open state shifts to its neighbour) rather
@@ -113,7 +113,7 @@ coverage test holds to bloomer's own export surface (108 exports, vendored from
113
113
  | `Subtitle` | `SubTitle` | mapped |
114
114
  | `Tab` | `Tabs.Item` | mapped |
115
115
  | `TabLink` | _structural_ | mapped |
116
- | `TabList` | `Tabs.List` | mapped |
116
+ | `TabList` | _structural_ | mapped |
117
117
  | `Table` | `Table` | mapped |
118
118
  | `Tabs` | `Tabs` | mapped |
119
119
  | `Tag` | `Tag` | mapped |
@@ -146,14 +146,14 @@ that change along the way:
146
146
 
147
147
  Some targets depend on a prop or a child, so the codemod picks them element by element:
148
148
 
149
- | bloomer | becomes | decided by |
150
- | ---------------------------------------------------- | ------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------- |
151
- | `PageControl` | `Pagination.Previous` / `Pagination.Next` | `isNext` (bloomer's default is previous) |
152
- | `NavbarItem` | `Navbar.Item` / `Navbar.Dropdown` | `hasDropdown` |
153
- | `Page` | _folded into its child_ / `<li>` | whether the child is a `PageLink`/`PageEllipsis`; attributes on the Page move onto the link, with a `component:Page` note |
154
- | `PanelBlock` | `Panel.Block` / _the plain block_ | the element: an `<a>`, a `<div>` or a `<label>` is the component; any other `tag`, or a dynamic one, stays plain markup |
155
- | `MenuLink` in a literal `<li>` | `Menu.Item`, the `<li>` folded away | bestax's item renders its own `<li>` |
156
- | `Breadcrumb` around a literal `<ul>` | `Breadcrumb`, the `<ul>` folded away | bestax's breadcrumb renders its own `<ul>` |
157
- | `Icon`, `PanelIcon` | `name`/`library`/`variant` / an `<i>` child | whether the icon classes are FA5/6 or MDI |
158
- | `Help`, `Label`, `Heading` | `<p class="help">`, `<label class="label">`, `<p class="heading">` | always plain markup |
159
- | `BreadcrumbItem`, `PanelTab`, `TabLink`, `HeroVideo` | `<li>`, `<a>`, `<a>`, `<div class="hero-video">` | always plain markup |
149
+ | bloomer | becomes | decided by |
150
+ | --------------------------------------------------------------- | ------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------- |
151
+ | `PageControl` | `Pagination.Previous` / `Pagination.Next` | `isNext` (bloomer's default is previous) |
152
+ | `NavbarItem` | `Navbar.Item` / `Navbar.Dropdown` | `hasDropdown` |
153
+ | `Page` | _folded into its child_ / `<li>` | whether the child is a `PageLink`/`PageEllipsis`; attributes on the Page move onto the link, with a `component:Page` note |
154
+ | `PanelBlock` | `Panel.Block` / _the plain block_ | the element: an `<a>`, a `<div>` or a `<label>` is the component; any other `tag`, or a dynamic one, stays plain markup |
155
+ | `MenuLink` in a literal `<li>` | `Menu.Item`, the `<li>` folded away | bestax's item renders its own `<li>` |
156
+ | `Breadcrumb` around a literal `<ul>` | `Breadcrumb`, the `<ul>` folded away | bestax's breadcrumb renders its own `<ul>` |
157
+ | `Icon`, `PanelIcon` | `name`/`library`/`variant` / an `<i>` child | whether the icon classes are FA5/6 or MDI |
158
+ | `Help`, `Label`, `Heading` | `<p class="help">`, `<label class="label">`, `<p class="heading">` | always plain markup |
159
+ | `BreadcrumbItem`, `PanelTab`, `TabLink`, `TabList`, `HeroVideo` | `<li>`, `<a>`, `<a>`, `<ul>`, `<div class="hero-video">` | always plain markup; a `TabList` stays the `<ul>` it was, since bestax's `Tabs.List` adds `role="tablist"` and the `Tabs.Item`s in it aren't tabs |
@@ -125,7 +125,7 @@ than a silent rewrite. The components whose `tag` becomes `as`:
125
125
  `HeroFooter`, `Panel`.
126
126
 
127
127
  Everywhere else `tag` is left in place with a TODO. On the components that become plain markup
128
- (`Help`, `Label`, `Heading`, `BreadcrumbItem`, `PanelTab`, `TabLink`, `Page`, `HeroVideo`) a
128
+ (`Help`, `Label`, `Heading`, `BreadcrumbItem`, `PanelTab`, `TabLink`, `TabList`, `Page`, `HeroVideo`) a
129
129
  literal `tag` is honoured — `<Help tag="span">` becomes `<span className="help">`.
130
130
 
131
131
  A literal `tag` outside the union its bestax target narrows `as` to — `<Media tag="section">`,
@@ -179,7 +179,7 @@ written. Where the link was the intent, drop the `tag`.
179
179
 
180
180
  A few bestax parts extend only React's HTML attributes and take no Bulma helper props at all:
181
181
  `Pagination.Previous`/`Next`/`Ellipsis`, `Navbar.Dropdown`/`DropdownMenu`/`Divider`,
182
- `Panel.Heading`/`Tabs`/`Block`, `Tabs.List`/`Item`, `Message.Header`/`Body` and the `Modal`
182
+ `Panel.Heading`/`Tabs`/`Block`, `Tabs.Item`, `Message.Header`/`Body` and the `Modal`
183
183
  parts. A bloomer helper on one of those becomes the Bulma class in `className` — except on
184
184
  `Pagination.Ellipsis` and `Dropdown.Divider`, which write their own className last or take no
185
185
  props at all: there the helper is named in a TODO instead, and an element
@@ -189,6 +189,13 @@ value is flagged. The same conversion covers the modifiers bestax has no prop fo
189
189
  `Hero isBold`, `Media isSize`, `Subtitle isSpaced`, `Input isActive`, `PanelBlock isWrapped`,
190
190
  `LevelItem isFlexible`, `NavbarDivider isBoxed`, the pagination parts' `isActive`/`isFocused`.
191
191
 
192
+ bloomer's `TabList` becomes the plain `<ul>` it rendered, since bestax's `Tabs.List` adds
193
+ `role="tablist"` and the `Tabs.Item`s in it aren't tabs. A helper on it whose literal value
194
+ names one class becomes that class the same way, and one set to `false` goes. Any other (a
195
+ dynamic value, an object, a bare `isPulled`) is dropped with a `plain-element` TODO, as on the
196
+ other components that become plain markup. A dynamic `className` on it stays as written, and a
197
+ helper's class beside it is named in a `prop:className` TODO, to merge by hand.
198
+
192
199
  ## Refs
193
200
 
194
201
  bloomer forwarded no refs. bestax forwards a ref from the form controls, plus `Affix`, `AppFrame`, `AppFrame.Aside`, `AppFrame.Burger`, `AppFrame.Footer`, `AppFrame.Header`, `AppFrame.Main`, `AppFrame.Nav`, `Avatar`, `Button`,
@@ -241,7 +241,7 @@ instead of leaving a TODO: `Hero isBold` → `className="is-bold"`, `isHalfHeigh
241
241
  isFlexible` → `is-flexible`, `NavbarDropdown`/`NavbarDivider` `isBoxed` → `is-boxed`. The same
242
242
  goes for a universal helper on a part that takes no helper props (`Pagination.Previous`/`Next`/
243
243
  `Ellipsis`, `Navbar.Dropdown`/`DropdownMenu`/`Divider`, `Panel.Heading`/`Tabs`/`Block`,
244
- `Tabs.List`/`Item`, `Message.Header`/`Body`, the `Modal` parts): `isPulled="right"` →
244
+ `Tabs.Item`, `Message.Header`/`Body`, the `Modal` parts): `isPulled="right"` →
245
245
  `is-pulled-right`, `isMarginless` → `m-0`, `isHidden="mobile"` → `is-hidden-mobile`. A dynamic
246
246
  value, or a dynamic `className` the class cannot be spliced into, is flagged with the class to add.
247
247
 
@@ -334,7 +334,8 @@ does not know. Convert either to a named import from `'bloomer'` and re-run the
334
334
  ## `plain-element` — helper props on markup that became plain HTML
335
335
 
336
336
  When a component becomes plain markup (`Help`, `Label`, `PanelTab`, …), bloomer's helper props
337
- on it have no home and are dropped with this flag. Re-apply them as classes
337
+ on it have no home and are dropped with this flag. On the `<ul>` a `TabList` becomes, a helper whose
338
+ literal value names one class becomes that class instead, as on the parts that take none. Re-apply them as classes
338
339
  (`className="is-pulled-right"`), or wrap the element in a bestax `Box`/`Block` that takes them.
339
340
 
340
341
  ## Dynamic values
@@ -129,6 +129,7 @@ codemod's `modifier:title` (or `modifier:subtitle`) TODO on the element says the
129
129
  | `.navbar-dropdown` → `Navbar.DropdownMenu` | `is-right`, `is-up` | `right`, `up` |
130
130
  | `.notification` → `Notification` | `is-primary`, `is-link`, `is-info`, `is-success`, `is-warning`, `is-danger`, `is-black`, `is-white`, `is-dark` | `color` |
131
131
  | `.notification` → `Notification` | `is-light` | `isLight` |
132
+ | `.panel-block` → `Panel.Block` | `is-active`, beside an `aria-current` of the element's own | `active` (without one, it stays a class) |
132
133
  | `.progress` → `Progress` | the ten `.hero` colors | `color` |
133
134
  | `.progress` → `Progress` | `is-small`, `is-medium`, `is-large` | `size` |
134
135
  | `.section` → `Section` | `is-medium`, `is-large` | `size` |
@@ -122,8 +122,13 @@ which renders the `<i>` the script draws from. Inside a `.control` with `has-ico
122
122
  after the `Control`'s children. Each TODO says which of these applies, and what the icon converts
123
123
  to.
124
124
  `Pagination` renders Bulma's own `role="navigation"` and `aria-label="pagination"`, and
125
- `Pagination.Previous`, `Pagination.Next` and `Pagination.Link` render `tabIndex={0}`, so give each
126
- element the attribute it's missing.
125
+ `Pagination.Previous`, `Pagination.Next` and `Pagination.Link` render `tabIndex={0}`, and
126
+ `role="button"` when they have no `href`, since a link without one is no link and they make it a
127
+ button, so give each element the attribute it's missing. One whose `href` is an expression, which
128
+ may render as none, gets a TODO asking for a `role`, since no one role fits both cases: convert it
129
+ by hand instead, keeping the `href` (`<Pagination.Link href={url}>`, in place of the `<li>` around
130
+ it, since it renders its own), which renders a link while the `href` is set and a button while it
131
+ isn't.
127
132
  `Card.FooterItem`, `Card.Header.Icon` and `Navbar.Item` render `type="button"` on a `<button>` that
128
133
  sets none, and `Card.Header.Icon` renders `aria-label="more options"` too. One whose `type` isn't
129
134
  `button`, `submit` or `reset` gets an `attr:type` TODO instead, since bestax writes `button` in its
@@ -746,8 +751,9 @@ read for the burger, a carousel and a theme toggle too, and its TODO names the f
746
751
  doesn't call it on its own, so give it `onClick={onClose}` for the background to close the
747
752
  modal. Keep the open state in `useState` (the `family:modal` TODO covers rebuilding the markup).
748
753
  - **`html-script:dismiss`** removes an element when its `.delete` is clicked. `Notification`
749
- takes `hasDelete` and `onDelete`, `Tag` takes `onDelete` and `Message` takes `onClose`; render
750
- the element only while it's in state.
754
+ takes `hasDelete` and `onDelete`, `Tag` takes `onDelete` and `Message` takes `onClose`, with
755
+ `ariaCloseLabel` to keep a name the page gave its `.delete`; render the element only while
756
+ it's in state.
751
757
  - **`html-script:carousel`** drives a carousel. `Carousel` takes its slides as `CarouselItem`
752
758
  children and renders its own arrows and indicators (`autoplay` for a timed one). For several
753
759
  slides in view, set `itemsToShow`, with a variant per viewport (`itemsToShowMobile`,
@@ -155,7 +155,7 @@ test holds to rbx's own export surface in both directions.
155
155
  | `PageLoader` | `Loading` with `isFullPage` |
156
156
  | `Loader` | a plain `<div className="loader">` — bestax's `Loading` is an overlay that renders nothing unless `active`; bestax's `Loader` renders the same ring as a named progressbar, so swap it in by hand |
157
157
  | `Menu.List.Item` | `Menu.Item` |
158
- | `Tab` / `Tab.Group` | `Tabs.Item` / `Tabs` |
158
+ | `Tab` / `Tab.Group` | `Tabs.Item` / `Tabs`, the items in a plain `<ul>` |
159
159
  | `Panel.Tab.Group` | `Panel.Tabs` |
160
160
  | `Title subtitle` | `SubTitle` |
161
161
 
@@ -37,7 +37,7 @@ codemod converts it; **Flagged** = it leaves a `TODO(bestax-migrate)` comment (s
37
37
  | `Progress` | `Progress` | Auto |
38
38
  | `Section` | `Section` | Auto |
39
39
  | `Table` | `Table` | Auto; `size="fullwidth"`→`isFullwidth`, `striped`→`isStriped`, … |
40
- | `Tabs` | `Tabs` | Auto; children wrapped in `Tabs.List`; `type="toggle-rounded"`→`toggle rounded` |
40
+ | `Tabs` | `Tabs` | Auto; children wrapped in a plain `<ul>`; `type="toggle-rounded"`→`toggle rounded` |
41
41
  | `Tag` | `Tag` | Auto; `remove`→`isDelete`, `rounded`→`isRounded` |
42
42
  | `Tile` | — | Flagged: Bulma v1 replaced tiles with `Grid`/`Cell` |
43
43
 
@@ -70,7 +70,7 @@ codemod converts it; **Flagged** = it leaves a `TODO(bestax-migrate)` comment (s
70
70
  | `Panel.Tabs` / `Panel.Tabs.Tab` | `Panel.Tabs` / plain `<a>` children |
71
71
  | `Panel.Block` / `Panel.Icon` | `Panel.Block` / `Panel.Icon` (icon child → `name`) |
72
72
  | `Table.Container` | `isResponsive` on the child `Table` (or `<div class="table-container">`) |
73
- | `Tabs.Tab` | `Tabs.Item` (inside a generated `Tabs.List`) |
73
+ | `Tabs.Tab` | `Tabs.Item` (inside a generated plain `<ul>`) |
74
74
  | `Tag.Group` | `Tags` (`gapless` → `hasAddons`) |
75
75
 
76
76
  ## Form namespace → flat imports
@@ -106,8 +106,10 @@ Notes:
106
106
  file. A partial that extends a stock component often shares that name with the component's
107
107
  Bulma module (`components/tabs`, `elements/notification`), so give the bestax line a name of
108
108
  its own with `as`, the way the notes below do. The name changes nothing in the compiled CSS.
109
- - Extras `Tabs` **extends** stock Bulma tabs (vertical variant), so an app using `Tabs` needs
110
- both:
109
+ - Extras `Tabs` **extends** stock Bulma tabs (it shows only the selected `Tabs.Content` panel,
110
+ lays out the vertical variant, draws a `Tabs.Tab`'s focus ring and a disabled tab's look, and
111
+ keeps the active tab marked in forced colors, where Bulma's colors for it are replaced), so an
112
+ app using `Tabs` needs both:
111
113
 
112
114
  ```scss
113
115
  @use 'bulma/sass/components/tabs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bestax-mcp",
3
- "version": "1.18.67",
3
+ "version": "1.18.68",
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.6"
45
+ "@allxsmith/bestax-bulma": "^5.73.7"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/node": "^26.6.6",