bestax-mcp 1.18.97 → 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
CHANGED
|
@@ -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, 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- 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.",
|
|
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.",
|
|
@@ -538,13 +538,13 @@
|
|
|
538
538
|
{
|
|
539
539
|
"css": "--bulma-carousel-indicator-gap",
|
|
540
540
|
"sass": "$carousel-indicator-gap",
|
|
541
|
-
"default": "0.5rem",
|
|
541
|
+
"default": "max(0.5rem, calc(24px - var(--bulma-carousel-indicator-size)))",
|
|
542
542
|
"scope": "root"
|
|
543
543
|
},
|
|
544
544
|
{
|
|
545
545
|
"css": "--bulma-carousel-indicator-gap-mobile",
|
|
546
546
|
"sass": "$carousel-indicator-gap-mobile",
|
|
547
|
-
"default": "0.375rem",
|
|
547
|
+
"default": "max(0.375rem, calc(24px - var(--bulma-carousel-indicator-size-mobile)))",
|
|
548
548
|
"scope": "root"
|
|
549
549
|
},
|
|
550
550
|
{
|
|
@@ -415,6 +415,14 @@ The `--bulma-carousel-arrow-*` and `--bulma-carousel-overlay-arrow-*` variables
|
|
|
415
415
|
button `rotationControl` shows to stop autoplay, at the top center of the slides, or the bottom
|
|
416
416
|
center while the indicators sit over the slides at the top.
|
|
417
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
|
+
|
|
418
426
|
In forced colors `--bulma-carousel-arrow-disabled-opacity` doesn't apply: a disabled arrow draws
|
|
419
427
|
at full strength in the system's color for a disabled control, with `arrowHover` under the pointer.
|
|
420
428
|
|
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.81.
|
|
45
|
+
"@allxsmith/bestax-bulma": "^5.81.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/node": "^26.6.6",
|