bestax-mcp 1.18.96 → 1.18.98
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 +2 -2
- package/data/components/Carousel.json +15 -6
- package/data/components/Checkbox.json +1 -1
- package/data/components/Field.json +1 -1
- package/data/components/Footer.json +1 -1
- package/data/components/Link.json +4 -4
- package/data/components/Slider.json +1 -1
- package/data/components/Timeline.json +2 -2
- package/data/skills/bestax-migrate/references/bulma-classes/unmappables.md +2 -1
- package/data/skills/bestax-theming/references/css-variables.md +17 -0
- package/package.json +2 -2
package/data/catalog.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schemaVersion": 3,
|
|
3
3
|
"generatedFrom": {
|
|
4
4
|
"package": "@allxsmith/bestax-bulma",
|
|
5
|
-
"version": "5.
|
|
5
|
+
"version": "5.81.1"
|
|
6
6
|
},
|
|
7
7
|
"docsBase": "https://bestax.io/docs",
|
|
8
8
|
"categories": [
|
|
@@ -330,7 +330,7 @@
|
|
|
330
330
|
"slug": "components/carousel",
|
|
331
331
|
"import": "import { Carousel, CarouselItem } from '@allxsmith/bestax-bulma';",
|
|
332
332
|
"compound": false,
|
|
333
|
-
"propCount":
|
|
333
|
+
"propCount": 33,
|
|
334
334
|
"exampleCount": 17
|
|
335
335
|
},
|
|
336
336
|
{
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"title": "Auto-playing Carousel",
|
|
26
|
-
"code": "<Carousel ariaLabel=\"Status colors\" autoplay interval={3000}>\n <CarouselItem>\n <Hero color=\"info\" size=\"medium\">\n <Hero.Body textAlign=\"centered\">\n <Title as=\"p\">Info</Title>\n </Hero.Body>\n </Hero>\n </CarouselItem>\n <CarouselItem>\n <Hero color=\"warning\" size=\"medium\">\n <Hero.Body textAlign=\"centered\">\n <Title as=\"p\">Warning</Title>\n </Hero.Body>\n </Hero>\n </CarouselItem>\n <CarouselItem>\n <Hero color=\"success\" size=\"medium\">\n <Hero.Body textAlign=\"centered\">\n <Title as=\"p\">Success</Title>\n </Hero.Body>\n </Hero>\n </CarouselItem>\n</Carousel>"
|
|
26
|
+
"code": "<Carousel ariaLabel=\"Status colors\" autoplay interval={3000} rotationControl>\n <CarouselItem>\n <Hero color=\"info\" size=\"medium\">\n <Hero.Body textAlign=\"centered\">\n <Title as=\"p\">Info</Title>\n </Hero.Body>\n </Hero>\n </CarouselItem>\n <CarouselItem>\n <Hero color=\"warning\" size=\"medium\">\n <Hero.Body textAlign=\"centered\">\n <Title as=\"p\">Warning</Title>\n </Hero.Body>\n </Hero>\n </CarouselItem>\n <CarouselItem>\n <Hero color=\"success\" size=\"medium\">\n <Hero.Body textAlign=\"centered\">\n <Title as=\"p\">Success</Title>\n </Hero.Body>\n </Hero>\n </CarouselItem>\n</Carousel>"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"title": "Indicator Styles",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"code": "<Carousel ariaLabel=\"Slides without repeat\" 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>"
|
|
75
75
|
}
|
|
76
76
|
],
|
|
77
|
-
"accessibility": "- Uses `role=\"region\"` with `aria-roledescription=\"carousel\"`\n- Name each carousel for what it shows with `ariaLabel`, such as \"Featured products\", and leave the word \"carousel\" out of it, since the role description already says it. Under a visible heading, pass `aria-labelledby` with the heading's id instead, which names it ahead of the `aria-label` the default still sets. The default, \"Image carousel\", is a placeholder: with the role description it says \"carousel\" twice, and every carousel left with it has the same name\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 the system asks for reduced motion, each step changes the view at once, with no slide, and a step past either end with `repeat` goes straight to the other end. The arrows and indicators change without a transition too. A drag still follows the pointer, since that's the user's own movement\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- The arrows', the indicators' and the items' names are English unless `labels` gives the words in the page's language, and the role descriptions take `aria-roledescription` on the `Carousel` and on each `CarouselItem`\n- With `arrowBackground={false}`, an arrow with keyboard focus shows Bulma's focus outline, as a ghost `Button` does, in the overlay look too. With `arrowHover`, an arrow shows while keyboard focus is on it\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, unless Alt, Ctrl or Meta is held, which leaves them to the browser. Inside an item they're left to the item's content, such as a field or a slider. On an indicator they move focus to the indicator beside it and bring its slide into view, as a click on it does\n- Previous/Next buttons are disabled at the ends when not repeating. When the one holding focus is disabled, focus moves to the current indicator, or to the other arrow when there are no indicators. When a focused arrow or
|
|
77
|
+
"accessibility": "- Uses `role=\"region\"` with `aria-roledescription=\"carousel\"`\n- Name each carousel for what it shows with `ariaLabel`, such as \"Featured products\", and leave the word \"carousel\" out of it, since the role description already says it. Under a visible heading, pass `aria-labelledby` with the heading's id instead, which names it ahead of the `aria-label` the default still sets. The default, \"Image carousel\", is a placeholder: with the role description it says \"carousel\" twice, and every carousel left with it has the same name\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, unless the `rotationControl` button below stopped it\n- With `rotationControl`, which is off by default, a button first in the carousel's tab order stops autoplay, as the rotation control of the APG carousel pattern does. Turn it on whenever you use `autoplay`, unless the page gives its own way to stop the carousel: WCAG asks for one when something moves by itself for more than five seconds. It's named \"Stop slide rotation\" while autoplay is on and \"Start slide rotation\" once it's stopped. Stopped, autoplay stays stopped wherever the pointer and focus go, and through `autoplay` turning off and on, and the track announces what comes into view, until the button starts it again. Focus on the button itself doesn't hold autoplay, so pressing it from the keyboard starts autoplay at once, unless the pointer rests over the carousel with `pauseOnHover`. It's drawn as the arrows are, and stays in view with `arrowHover`\n- When the system asks for reduced motion, each step changes the view at once, with no slide, and a step past either end with `repeat` goes straight to the other end. The arrows and indicators change without a transition too. A drag still follows the pointer, since that's the user's own movement\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- The rotation button's, the arrows', the indicators' and the items' names are English unless `labels` gives the words in the page's language, and the role descriptions take `aria-roledescription` on the `Carousel` and on each `CarouselItem`\n- With `arrowBackground={false}`, an arrow with keyboard focus shows Bulma's focus outline, as a ghost `Button` does, in the overlay look too. With `arrowHover`, an arrow shows while keyboard focus is on it\n- Indicators use `role=\"tablist\"` and `role=\"tab\"` semantics, one for each position a step can land on\n- At their default sizes the indicators sit at least 24px apart, center to center, the spacing WCAG asks for around a target smaller than 24px, and each mark draws at its own size. For each style, `--bulma-carousel-indicator-gap` defaults to 24px less the mark's width, but at least `0.5rem`, and `--bulma-carousel-indicator-gap-mobile` to 24px less its width on a phone, but at least `0.375rem`, so a mark you draw wider keeps that much room. A row too long for the carousel wraps, with its rows 24px apart too. A gap you set replaces the default on every style\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, unless Alt, Ctrl or Meta is held, which leaves them to the browser. Inside an item they're left to the item's content, such as a field or a slider. On an indicator they move focus to the indicator beside it and bring its slide into view, as a click on it does\n- Previous/Next buttons are disabled at the ends when not repeating. When the one holding focus is disabled, focus moves to the current indicator, or to the other arrow when there are no indicators. When a focused arrow, indicator or rotation button goes away, as an indicator does when a change of width leaves fewer positions, focus moves to the current indicator, an arrow that works, or the first item in view, rather than dropping to the page\n- With `arrowHover`, a disabled arrow hides at rest with the others and shows faded with them under the pointer. It can't take keyboard focus, so focus never shows it\n- In forced colors (Windows' contrast themes), a disabled arrow draws in the system's color for a disabled control, at full strength rather than faded, and with `arrowHover` it does so under the pointer\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.",
|
|
78
78
|
"related": ["Modal", "Tabs"],
|
|
79
79
|
"storybook": "https://bestax.io/storybook/?path=/story/components-carousel",
|
|
80
80
|
"summary": "The `Carousel` component provides an image/content slider with navigation arrows and indicators.",
|
|
@@ -100,7 +100,16 @@
|
|
|
100
100
|
"name": "autoplay",
|
|
101
101
|
"type": "boolean",
|
|
102
102
|
"default": "false",
|
|
103
|
-
"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.",
|
|
103
|
+
"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. Turn on `rotationControl` with it, for a button that stops it until pressed again.",
|
|
104
|
+
"required": false,
|
|
105
|
+
"inherited": false,
|
|
106
|
+
"deprecated": false
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "rotationControl",
|
|
110
|
+
"type": "boolean",
|
|
111
|
+
"default": "false",
|
|
112
|
+
"description": "Show a button that stops autoplay and starts it again. Turn it on whenever you use `autoplay`, unless the page gives its own way to stop the carousel: WCAG asks for one when something moves by itself for more than five seconds. It's first in the carousel's tab order and drawn as the arrows are, at the top center of the slides, or the bottom center while the indicators sit over the slides at the top (`indicatorInside` with `indicatorPosition=\"top\"`). With `arrowHover` it stays in view. It shows while `autoplay` is on and some item is out of view. Once pressed, autoplay stays stopped wherever the pointer and focus go, until it's pressed again, and through `autoplay` turning off and on, so a page that plays a carousel only while it's in view keeps the stop. Without `repeat`, autoplay rests at the last position and goes on once the carousel is moved back, unless it's stopped. While this prop is off, a stop doesn't apply. Focus on the button doesn't hold autoplay, as focus elsewhere in the carousel does, so pressing it starts autoplay at once, or once the pointer leaves with `pauseOnHover`, and the arrow keys don't move the carousel from it. Its names come from `labels`.",
|
|
104
113
|
"required": false,
|
|
105
114
|
"inherited": false,
|
|
106
115
|
"deprecated": false
|
|
@@ -352,7 +361,7 @@
|
|
|
352
361
|
"name": "labels",
|
|
353
362
|
"type": "CarouselLabels",
|
|
354
363
|
"default": null,
|
|
355
|
-
"description": "The words it writes for its arrows, indicators and
|
|
364
|
+
"description": "The words it writes for its arrows, indicators, items and rotation button, for another language.",
|
|
356
365
|
"required": false,
|
|
357
366
|
"inherited": false,
|
|
358
367
|
"deprecated": false
|
|
@@ -529,13 +538,13 @@
|
|
|
529
538
|
{
|
|
530
539
|
"css": "--bulma-carousel-indicator-gap",
|
|
531
540
|
"sass": "$carousel-indicator-gap",
|
|
532
|
-
"default": "0.5rem",
|
|
541
|
+
"default": "max(0.5rem, calc(24px - var(--bulma-carousel-indicator-size)))",
|
|
533
542
|
"scope": "root"
|
|
534
543
|
},
|
|
535
544
|
{
|
|
536
545
|
"css": "--bulma-carousel-indicator-gap-mobile",
|
|
537
546
|
"sass": "$carousel-indicator-gap-mobile",
|
|
538
|
-
"default": "0.375rem",
|
|
547
|
+
"default": "max(0.375rem, calc(24px - var(--bulma-carousel-indicator-size-mobile)))",
|
|
539
548
|
"scope": "root"
|
|
540
549
|
},
|
|
541
550
|
{
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
"title": "Checkbox With Link",
|
|
14
|
-
"code": "<Checkbox>\n I have read and agree to the\n <
|
|
14
|
+
"code": "<Checkbox>\n I have read and agree to the{' '}\n <Link\n href=\"#\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n textTransform=\"underlined\"\n >\n terms and conditions\n </Link>\n .\n</Checkbox>"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"title": "Disabled Checkbox",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
"title": "With Checkbox and Custom Label (with link)",
|
|
14
|
-
"code": "<Field label=\"Agreement\">\n <Checkbox>\n I have read and agree to the{' '}\n <
|
|
14
|
+
"code": "<Field label=\"Agreement\">\n <Checkbox>\n I have read and agree to the{' '}\n <Link\n href=\"#\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n textTransform=\"underlined\"\n >\n terms and conditions\n </Link>\n .\n </Checkbox>\n</Field>"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"title": "With Grouped Checkboxes",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"examples": [
|
|
8
8
|
{
|
|
9
9
|
"title": "Default Footer",
|
|
10
|
-
"code": "import { Footer } from '@allxsmith/bestax-bulma';\nimport { Content } from '@allxsmith/bestax-bulma';\n\n<Footer>\n <Content textAlign=\"centered\">\n <Paragraph>\n <Strong>Bestax</Strong> a Bulma component library by{' '}\n <
|
|
10
|
+
"code": "import { Footer } from '@allxsmith/bestax-bulma';\nimport { Content } from '@allxsmith/bestax-bulma';\nimport { Link, Paragraph, Strong } from '@allxsmith/bestax-bulma';\n\n<Footer>\n <Content textAlign=\"centered\">\n <Paragraph>\n <Strong>Bestax</Strong> a Bulma component library by{' '}\n <Link href=\"https://bestax.io\" textTransform=\"underlined\">\n Alex Smith\n </Link>\n .<br />\n <Link\n href=\"https://opensource.org/license/mit\"\n textTransform=\"underlined\"\n >\n MIT Source Code License\n </Link>\n {', '}\n Web content licensed{' '}\n <Link\n href=\"https://creativecommons.org/licenses/by-nc-sa/4.0/\"\n textTransform=\"underlined\"\n >\n CC BY NC SA 4.0\n </Link>\n .\n </Paragraph>\n </Content>\n</Footer>;"
|
|
11
11
|
}
|
|
12
12
|
],
|
|
13
13
|
"accessibility": "- Renders as a semantic `<footer>` tag by default.\n- Accepts any valid children; ensure your links and text are accessible.\n- You can use the `as=\"div\"` prop if you need a non-semantic container.\n\n:::note\nWhen using only icons or non-text content, add `aria-label` or screen-reader-only content for accessibility.\n:::",
|
|
@@ -44,24 +44,24 @@
|
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"title": "Inline Link",
|
|
47
|
-
"code": "<Paragraph>\n This is a paragraph with an <Link href=\"#\"
|
|
47
|
+
"code": "<Paragraph>\n This is a paragraph with an{' '}\n <Link href=\"#\" textTransform=\"underlined\">\n inline link\n </Link>{' '}\n in the middle of the text.\n</Paragraph>"
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"title": "Forwarded ref",
|
|
51
51
|
"code": "function example() {\n const linkRef = React.useRef<HTMLAnchorElement>(null);\n const [tag, setTag] = React.useState<string>();\n\n return (\n <>\n <Link href=\"#target\" ref={linkRef} textColor=\"primary\">\n Target\n </Link>\n <Button ml=\"2\" onClick={() => setTag(linkRef.current?.tagName)}>\n Read the tag from its ref\n </Button>\n <p>Rendered element: {tag ?? '—'}</p>\n </>\n );\n}"
|
|
52
52
|
}
|
|
53
53
|
],
|
|
54
|
-
"accessibility": "- **Descriptive Text:** Use meaningful link text that describes the destination, not generic text like \"click here\".\n- **External Links:** When opening links in new tabs, consider informing users (e.g., with an icon or text like \"opens in new tab\").\n- **Current page:** `isActive` writes `aria-current=\"page\"` beside Bulma's `is-active` class, so\n a screen reader says which link is the page you're on, the way a menu or navbar draws it. Pass\n `aria-current=\"location\"` for a section of one page, and give an active link that isn't\n navigation, such as an `as=\"button\"` toggle, `aria-current={false}`.\n- **Focus States:** Links inherit browser focus styles. Customize with CSS if needed.\n- **Keyboard Navigation:** Links are naturally keyboard accessible via Tab and Enter keys.\n\n:::info\nIn a `Menu` or a `Navbar`, mark the current item with `Menu.Item`'s or `Navbar.Item`'s `active`,\nwhich does the same for its item.\n:::\n\n:::warning Links Are for Navigation, Buttons Are for Actions\nPer [Section 508](https://www.section508.gov/) and [eslint-plugin-jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y) best practices, links (`<a>`) should navigate to a URL — not trigger an action via `onClick` alone. If your element performs an action (opening a modal, submitting data, toggling state, etc.) without navigating, use a [`Button`](https://bestax.io/docs/api/elements/button) or [`LinkButton`](https://bestax.io/docs/api/elements/linkbutton) instead. A `<Link href=\"#\" onClick={handleClick}>` is an anti-pattern that confuses screen readers and fails accessibility audits.\n:::",
|
|
54
|
+
"accessibility": "- **Descriptive Text:** Use meaningful link text that describes the destination, not generic text like \"click here\".\n- **Links in running text:** Outside a `Notification` or `Message`, Bulma draws a link without\n an underline, so a `Link` inside a sentence is told apart from the text around it by color\n alone (WCAG 1.4.1 Use of Color). Give it `textTransform=\"underlined\"`, which adds Bulma's\n `is-underlined` helper, as the [inline example](https://bestax.io/docs/api/elements/link#inline-link) does. A build without Bulma's\n helpers has no such class, so there give the link one of your own that sets\n `text-decoration: underline`. A link that stands on its own, in a menu, a list of links or a\n button row, doesn't need it.\n- **External Links:** When opening links in new tabs, consider informing users (e.g., with an icon or text like \"opens in new tab\").\n- **Current page:** `isActive` writes `aria-current=\"page\"` beside Bulma's `is-active` class, so\n a screen reader says which link is the page you're on, the way a menu or navbar draws it. Pass\n `aria-current=\"location\"` for a section of one page, and give an active link that isn't\n navigation, such as an `as=\"button\"` toggle, `aria-current={false}`.\n- **Focus States:** Links inherit browser focus styles. Customize with CSS if needed.\n- **Keyboard Navigation:** Links are naturally keyboard accessible via Tab and Enter keys.\n\n:::info\nIn a `Menu` or a `Navbar`, mark the current item with `Menu.Item`'s or `Navbar.Item`'s `active`,\nwhich does the same for its item.\n:::\n\n:::warning Links Are for Navigation, Buttons Are for Actions\nPer [Section 508](https://www.section508.gov/) and [eslint-plugin-jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y) best practices, links (`<a>`) should navigate to a URL — not trigger an action via `onClick` alone. If your element performs an action (opening a modal, submitting data, toggling state, etc.) without navigating, use a [`Button`](https://bestax.io/docs/api/elements/button) or [`LinkButton`](https://bestax.io/docs/api/elements/linkbutton) instead. A `<Link href=\"#\" onClick={handleClick}>` is an anti-pattern that confuses screen readers and fails accessibility audits.\n:::",
|
|
55
55
|
"related": ["Button", "Paragraph", "useBulmaClasses"],
|
|
56
56
|
"storybook": "https://bestax.io/storybook/?path=/story/elements-link--default",
|
|
57
|
-
"summary": "The `Link` component renders a styled anchor (`<a>`) element with Bulma helper class integration.",
|
|
57
|
+
"summary": "The `Link` component renders a styled anchor (`<a>`) element with Bulma helper class integration. Outside a `Notification` or `Message`, Bulma draws a link without an underline, so a `Link` inside a sentence is told apart from the text around it by color alone (WCAG 1.4.1). Give one in running text `textTransform=\"underlined\"`, which adds Bulma's `is-underlined` helper. A build without Bulma's helpers has no such class, so there give the link one of your own that sets `text-decoration: underline`. A link that stands on its own, in a menu, a list of links or a button row, doesn't need it.",
|
|
58
58
|
"import": "import { Link } from '@allxsmith/bestax-bulma';",
|
|
59
59
|
"sourceFile": "bulma-ui/src/elements/Link.tsx",
|
|
60
60
|
"rootClass": null,
|
|
61
61
|
"parts": [
|
|
62
62
|
{
|
|
63
63
|
"path": "Link",
|
|
64
|
-
"summary": "The `Link` component renders a styled anchor (`<a>`) element with Bulma helper class integration.",
|
|
64
|
+
"summary": "The `Link` component renders a styled anchor (`<a>`) element with Bulma helper class integration. Outside a `Notification` or `Message`, Bulma draws a link without an underline, so a `Link` inside a sentence is told apart from the text around it by color alone (WCAG 1.4.1). Give one in running text `textTransform=\"underlined\"`, which adds Bulma's `is-underlined` helper. A build without Bulma's helpers has no such class, so there give the link one of your own that sets `text-decoration: underline`. A link that stands on its own, in a menu, a list of links or a button row, doesn't need it.",
|
|
65
65
|
"component": null,
|
|
66
66
|
"props": [
|
|
67
67
|
{
|
|
@@ -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\", which a development build warns about.\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- A development build warns about a single Slider with nothing to name it: no label of its own or a `Field`'s, no `<label>` of yours pointing at it, and no `aria-label`, `aria-labelledby` or `title`. It looks once the Slider has mounted, so a label outside it counts. A range Slider warns when it leaves a thumb named only \"Minimum value\" or \"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, so the track shows how far it's filled. The mark labels draw in its text color too, and the tick lines in its button text color, with a hairline in the page's color down the middle where a line crosses the track, so it shows on the track and on the fill. A disabled slider draws its track, thumbs, ticks and labels in its color for disabled text instead. All of them draw at full strength there.\n- Has `aria-valuenow`, `aria-valuemin`, and `aria-valuemax` attributes\n- The thumb's `aria-valuetext` is what `getAriaValueText` returns, or else the value bubble's text when `formatOutput` or `scale` is set, whether or not the bubble shows, so ``formatOutput={v => `$${v}`}`` announces \"$41\" rather than \"41\".\n- The value bubble is an `<output>`, which a browser treats as a live region. It's set not to announce: a thumb announces its value as it's moved.\n- Fully keyboard accessible with arrow keys\n- Home and End move a thumb to the slider's ends. When `max` falls between two steps, End stops at the last step below it, the highest value the slider holds, and that's the value it reports. On a range Slider a thumb stops at the other thumb, or on the nearest step at least `minDistance` from it, or at the slider's end where there isn't that much room.\n- A range Slider with no `defaultValue` starts its high thumb at that highest value too, and a single one at the value it holds nearest 0, so the thumb's `aria-valuenow`, its value bubble and its fill say where it sits.\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.\n- The `message` describes the slider through `aria-describedby`, both thumbs in range mode. Ids you pass in `aria-describedby` go first, on the only thumb or the low one, where the other attributes go.",
|
|
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\", which a development build warns about.\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- A development build warns about a single Slider with nothing to name it: no label of its own or a `Field`'s, no `<label>` of yours pointing at it, and no `aria-label`, `aria-labelledby` or `title`. It looks once the Slider has mounted, so a label outside it counts. A range Slider warns when it leaves a thumb named only \"Minimum value\" or \"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, so the track shows how far it's filled. The mark labels draw in its text color too, and the tick lines in its button text color, with a hairline in the page's color down the middle where a line crosses the track, so it shows on the track and on the fill. A disabled slider draws its track, thumbs, ticks and labels in its color for disabled text instead. All of them draw at full strength there.\n- Has `aria-valuenow`, `aria-valuemin`, and `aria-valuemax` attributes\n- The thumb's `aria-valuetext` is what `getAriaValueText` returns, or else the value bubble's text when `formatOutput` or `scale` is set, whether or not the bubble shows, so ``formatOutput={v => `$${v}`}`` announces \"$41\" rather than \"41\".\n- The value bubble is an `<output>`, which a browser treats as a live region. It's set not to announce: a thumb announces its value as it's moved.\n- Fully keyboard accessible with arrow keys\n- A range Slider's two thumbs can sit side by side, so at the default and small sizes, where a thumb is drawn under 24px, each takes presses on a box 24px square, WCAG 2.5.8's minimum target size, centred on the circle it draws. The box grows the thumb by a transparent band, so its shadow shows a little further out, and the thumb stops that band short of each end of the track. Medium and large thumbs are drawn 24px or more, and so is a circle thumb at the default size, but a small circle thumb gets no box. A single Slider's whole track takes its presses, so its thumb needs no box.\n- Home and End move a thumb to the slider's ends. When `max` falls between two steps, End stops at the last step below it, the highest value the slider holds, and that's the value it reports. On a range Slider a thumb stops at the other thumb, or on the nearest step at least `minDistance` from it, or at the slider's end where there isn't that much room.\n- A range Slider with no `defaultValue` starts its high thumb at that highest value too, and a single one at the value it holds nearest 0, so the thumb's `aria-valuenow`, its value bubble and its fill say where it sits.\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.\n- The `message` describes the slider through `aria-describedby`, both thumbs in range mode. Ids you pass in `aria-describedby` go first, on the only thumb or the low one, where the other attributes go.",
|
|
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.",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"examples": [
|
|
8
8
|
{
|
|
9
9
|
"title": "Basic Usage",
|
|
10
|
-
"code": "<>\n <Title as=\"h2\" textSize=\"5\">\n Order history\n </Title>\n <Timeline titleAs=\"h3\">\n <Timeline.Item\n title=\"Delivered\"\n time=\"16 October 2026, 11:40\"\n dateTime=\"2026-10-16T11:40\"\n color=\"success\"\n >\n Signed for by A. Smith.\n </Timeline.Item>\n <Timeline.Item\n title=\"Shipped\"\n time=\"14 October 2026, 08:12\"\n dateTime=\"2026-10-14T08:12\"\n >\n <Paragraph>\n Tracking number <Link href=\"#track\"
|
|
10
|
+
"code": "<>\n <Title as=\"h2\" textSize=\"5\">\n Order history\n </Title>\n <Timeline titleAs=\"h3\">\n <Timeline.Item\n title=\"Delivered\"\n time=\"16 October 2026, 11:40\"\n dateTime=\"2026-10-16T11:40\"\n color=\"success\"\n >\n Signed for by A. Smith.\n </Timeline.Item>\n <Timeline.Item\n title=\"Shipped\"\n time=\"14 October 2026, 08:12\"\n dateTime=\"2026-10-14T08:12\"\n >\n <Paragraph>\n Tracking number{' '}\n <Link href=\"#track\" textTransform=\"underlined\">\n 1Z999AA10123456784\n </Link>\n </Paragraph>\n </Timeline.Item>\n <Timeline.Item\n title=\"Order placed\"\n time=\"12 October 2026, 09:30\"\n dateTime=\"2026-10-12T09:30\"\n />\n </Timeline>\n</>"
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
"title": "Progress",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
"title": "Compound (dot-notation) usage",
|
|
46
|
-
"code": "function example() {\n function Stage({\n name,\n icon,\n children,\n }: {\n name: string;\n icon: string;\n children?: React.ReactNode;\n }) {\n return (\n <Timeline.Item title={name} icon={icon}>\n {children}\n </Timeline.Item>\n );\n }\n\n return (\n <Timeline titleAs=\"h3\" active={1} color=\"success\">\n <Stage name=\"Build\" icon=\"hammer\">\n <Paragraph>All tests passed.</Paragraph>\n </Stage>\n <Stage name=\"Deploy to staging\" icon=\"server\">\n <Paragraph>\n Rolling out. <Link href=\"#logs\"
|
|
46
|
+
"code": "function example() {\n function Stage({\n name,\n icon,\n children,\n }: {\n name: string;\n icon: string;\n children?: React.ReactNode;\n }) {\n return (\n <Timeline.Item title={name} icon={icon}>\n {children}\n </Timeline.Item>\n );\n }\n\n return (\n <Timeline titleAs=\"h3\" active={1} color=\"success\">\n <Stage name=\"Build\" icon=\"hammer\">\n <Paragraph>All tests passed.</Paragraph>\n </Stage>\n <Stage name=\"Deploy to staging\" icon=\"server\">\n <Paragraph>\n Rolling out.{' '}\n <Link href=\"#logs\" textTransform=\"underlined\">\n See the logs\n </Link>\n </Paragraph>\n </Stage>\n <Stage name=\"Deploy to production\" icon=\"globe\" />\n </Timeline>\n );\n}"
|
|
47
47
|
}
|
|
48
48
|
],
|
|
49
49
|
"accessibility": "- **A list:** it's an `<ol>`, since a timeline's order is its meaning, with `role=\"list\"`. Safari\n stops treating a list as one once its numbers are hidden, and the role keeps it a list there, so\n a screen reader says how many events there are and where each one is.\n- **Headings:** each title is a heading, `h2` unless `titleAs` says otherwise, so screen reader\n users can move from event to event. Pick the level under the heading the timeline sits beneath:\n an `h3` under an `h2`. In a busy feed, `titleAs=\"p\"` makes them plain lines.\n- **States in words:** the current item has `aria-current=\"step\"`. A completed item's\n title ends with \"completed\", an upcoming one's with \"upcoming\", and the pending one's with \"in\n progress\", in visually hidden text, so its heading reads \"Packed completed\". Set the words in\n your app's language with `completedLabel`, `upcomingLabel` and `pendingLabel`. Each dot has a\n shape of its own for its state as well as a color. Among icon markers, the current one has a\n halo, but a completed one and an upcoming one differ by color, except in forced colors, where a\n reached one's ring is heavier.\n- **Colors:** Timeline takes Bulma's colors. A marker with no `color`, in a record or not reached\n yet, is `border-hover`, and an upcoming icon is `text-weak`. Progress is `link`, and a `color`\n draws the markers and progress in that color. `border-hover` falls short of the 3:1 against the\n page that WCAG 1.4.11 asks of a graphic in both schemes, and on a light page so do some of the\n colors. For more, set `--bulma-timeline-neutral-color` to a color such as `var(--bulma-text-weak)`\n on a class you pass through `className`, with the timeline's class in the selector\n (`.timeline.my-timeline`, `.bestax-timeline.my-timeline` under the prefixed flavor) so it wins\n whatever order the stylesheets load in. It wins over a colored Hero's text color too, so leave\n it off a timeline you put on one. And pick a `color` that reads on your page.\n- **Decoration:** the markers are hidden from assistive tech, an `Icon` with an `ariaLabel`\n included, and the line is drawn by CSS. Say what a color or an icon means in the title.\n- **The time:** a screen reader mostly reads the text, so the time's words carry the whole date.\n `dateTime` puts the same moment in a `<time datetime>` for machines, and for the readers that\n speak it.\n- **Motion:** the pending ring turns, and stands still for users who ask for less motion. Its open\n shape is the cue either way.\n- **In a colored Hero:** a timeline with no `color` draws its markers in the Hero's text color, as\n its titles are, an upcoming icon included, so there its states differ by the dots' shapes, an\n icon marker's tint, and the line, which is drawn in that color up to the current item. A `color`\n you set is kept.\n- **Forced colors:** every line, dot, ring and halo is a border or an outline, so in Windows high\n contrast mode they keep their shapes, and the pending ring stays open. A reached icon marker's\n ring is twice as heavy as an upcoming one's, so the two don't look alike.\n- **Not interactive and not live:** it has no tab stop and no keys, and links or buttons in an\n item work as they do anywhere. It announces nothing when it changes, so keep a status region\n beside one that changes on screen, as in [A Timeline That Changes](https://bestax.io/docs/api/components/timeline#a-timeline-that-changes).\n- **A record first:** design systems with user research behind them, the UK's\n [MOJ](https://design-patterns.service.justice.gov.uk/components/timeline/) and\n [HMRC](https://design.tax.service.gov.uk/hmrc-design-patterns/timeline/), use a timeline for a\n record and advise against using one as a progress indicator. That's why a record is the default.\n `active` is for something that moves on its own and is only reported to the user. For a journey\n the user moves through, where they may go back, use [`Steps`](https://bestax.io/docs/api/components/steps).",
|
|
@@ -774,7 +774,8 @@ read for the burger, a carousel and a theme toggle too, and its TODO names the f
|
|
|
774
774
|
`ariaCloseLabel` to keep a name the page gave its `.delete`; render the element only while
|
|
775
775
|
it's in state.
|
|
776
776
|
- **`html-script:carousel`** drives a carousel. `Carousel` takes its slides as `CarouselItem`
|
|
777
|
-
children and renders its own arrows and indicators (`autoplay` for a timed one
|
|
777
|
+
children and renders its own arrows and indicators (`autoplay` for a timed one, with
|
|
778
|
+
`rotationControl` for a button that stops it). Name it for
|
|
778
779
|
what it shows with `ariaLabel`, without the word "carousel", which its role description
|
|
779
780
|
already says. For several
|
|
780
781
|
slides in view, set `itemsToShow`, with a variant per viewport (`itemsToShowMobile`,
|
|
@@ -411,6 +411,18 @@ the class prefix in a prefixed build) keeps what's inside it on the light scheme
|
|
|
411
411
|
`--bulma-carousel-overlay-indicator-background-active`,
|
|
412
412
|
`--bulma-carousel-overlay-indicator-background-hover`, `--bulma-carousel-transition-duration`
|
|
413
413
|
|
|
414
|
+
The `--bulma-carousel-arrow-*` and `--bulma-carousel-overlay-arrow-*` variables also draw the
|
|
415
|
+
button `rotationControl` shows to stop autoplay, at the top center of the slides, or the bottom
|
|
416
|
+
center while the indicators sit over the slides at the top.
|
|
417
|
+
|
|
418
|
+
At their default sizes the indicators sit at least 24px apart, center to center, the spacing WCAG
|
|
419
|
+
asks for around a target smaller than 24px. For each style, `--bulma-carousel-indicator-gap`
|
|
420
|
+
defaults to `max(0.5rem, calc(24px - <the mark's width>))` and
|
|
421
|
+
`--bulma-carousel-indicator-gap-mobile` to `max(0.375rem, calc(24px - <the mark's phone width>))`,
|
|
422
|
+
so a mark drawn wider keeps that much room. A gap you set replaces the default on every style. A Sass build that sets
|
|
423
|
+
`$carousel-indicator-gap` gets it on every style on a wider screen, and
|
|
424
|
+
`$carousel-indicator-gap-mobile` on every style on a phone.
|
|
425
|
+
|
|
414
426
|
In forced colors `--bulma-carousel-arrow-disabled-opacity` doesn't apply: a disabled arrow draws
|
|
415
427
|
at full strength in the system's color for a disabled control, with `arrowHover` under the pointer.
|
|
416
428
|
|
|
@@ -1133,6 +1145,11 @@ colors neither `--bulma-slider-tick-opacity` nor `--bulma-slider-disabled-opacit
|
|
|
1133
1145
|
system's colors replace the tick and label colors. Where a tick's line crosses the track there, it
|
|
1134
1146
|
has a hairline in the page's color as long as `--bulma-slider-track-height`.
|
|
1135
1147
|
|
|
1148
|
+
At the stock thumb sizes, a range Slider's thumb at the default or small size (not a circle one)
|
|
1149
|
+
takes presses on a box 24px square around the circle it draws. There `--bulma-slider-thumb-border`
|
|
1150
|
+
draws the ring as an outline inside that box, and `--bulma-slider-thumb-shadow` is cast by the box,
|
|
1151
|
+
so a shadow starts a little further out than the circle's edge.
|
|
1152
|
+
|
|
1136
1153
|
`--bulma-slider-disabled-opacity`, `--bulma-slider-fill-color`,
|
|
1137
1154
|
`--bulma-slider-output-background`, `--bulma-slider-output-color`,
|
|
1138
1155
|
`--bulma-slider-output-font-size`, `--bulma-slider-output-font-weight`, `--bulma-slider-radius`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bestax-mcp",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.98",
|
|
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.
|
|
45
|
+
"@allxsmith/bestax-bulma": "^5.81.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/node": "^26.6.6",
|