bestax-mcp 1.18.47 → 1.18.49

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.
@@ -3961,7 +3961,7 @@
3961
3961
  "textColor": null,
3962
3962
  "bgColor": null,
3963
3963
  "part": false,
3964
- "why": "bestax `Message` writes a `data-testid` of its own over the one it's given, and wraps children other than its own parts in `.message-body`",
3964
+ "why": "bestax `Message` writes `data-testid=\"message\"` when it's given none, and wraps children other than its own parts in `.message-body`",
3965
3965
  "modifiers": {},
3966
3966
  "omits": {},
3967
3967
  "wrapsChildren": null,
@@ -4048,7 +4048,7 @@
4048
4048
  "textColor": null,
4049
4049
  "bgColor": null,
4050
4050
  "part": false,
4051
- "why": "bestax `Modal` writes a `data-testid` of its own over the one it's given, and adds dialog attributes and focus handling, so rebuild the root with it by hand; its parts convert on their own",
4051
+ "why": "bestax `Modal` writes `data-testid=\"modal\"` when it's given none, and adds dialog attributes and focus handling, so rebuild the root with it by hand; its parts convert on their own",
4052
4052
  "modifiers": {},
4053
4053
  "omits": {},
4054
4054
  "wrapsChildren": 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.67.10"
5
+ "version": "5.67.12"
6
6
  },
7
7
  "docsBase": "https://bestax.io/docs",
8
8
  "categories": [
@@ -171,7 +171,7 @@
171
171
  "name": "lockScroll",
172
172
  "type": "boolean",
173
173
  "default": "true",
174
- "description": "Lock page scroll while the modal is active, padding the page by the room its scrollbar took so the content stays put. An element fixed to the window's right edge, such as a `fixed` Navbar, isn't padded, and moves by the scrollbar's width while the page is locked. Ref-counted and shared with `Dialog`, `Sidebar` and `Loading`, so whichever overlay closes first does not unlock the page underneath one that is still open.",
174
+ "description": "Lock page scroll while the modal is active, padding the page by the room its scrollbar took so the content stays put. A `fixed` Navbar, the toast and notification stacks and an Affix stay put too. The padding doesn't reach an element of your own fixed to the window's edge, which moves by the scrollbar's width unless it adds `var(--bulma-scroll-lock-offset-right, 0px)` to its `right` (the `-left` one to its `left`), which the lock sets on `<html>` while it's on. Ref-counted and shared with `Dialog`, `Sidebar` and `Loading`, so whichever overlay closes first does not unlock the page underneath one that is still open.",
175
175
  "required": false,
176
176
  "inherited": false,
177
177
  "deprecated": false
@@ -34,7 +34,7 @@
34
34
  "code": "<Notification color=\"warning\">\n <Strong>Warning!</Strong> This notification contains{' '}\n <Link href=\"#\">custom content</Link>.\n</Notification>"
35
35
  }
36
36
  ],
37
- "accessibility": "- **Delete button:** Includes `aria-label=\"Close notification\"` for screen readers.\n- **Keyboard:** The delete button is focusable and can be activated by keyboard.\n- **Content:** Use semantic HTML within the notification for best accessibility.\n- **Contrast:** A dark notification's text reads against its background the way a dark `Button`'s does, in both color schemes. That comes from bestax's stylesheets, as the `color` prop's description says.\n- **Announcements:** A notification shown through `notification` announces its message. `danger` and `warning` announce themselves: the message carries `role=\"alert\"` with `aria-live=\"assertive\"`, which screen readers reliably announce even though it arrives with its text. The rest are announced politely through a visually hidden `role=\"status\"` region that `NotificationContainer` keeps in the page from the moment it mounts, even with nothing showing, because a polite region that arrives already holding its text often isn't announced. A moment after one of those notifications appears, its message is written into the region, then cleared again shortly after.\n- **Testing:** A polite notification's message doesn't carry `role=\"status\"`, so `getByRole('status')` finds the container's region rather than the notification. Query the message text or `.notification` instead. A count or text [`Badge`](https://bestax.io/docs/api/components/badge) is a `role=\"status\"` node too, so with both on the page `getByRole('status')` matches more than one: find the badge by its accessible name, or use `getAllByRole`. While a message is in the region, the page also holds a second copy of its text, so a test that advances the clock past the announcement and then looks the message up by text can find both, and can still find the region's copy for a moment after the notification closes. Scope that query to the notification, for example with `within`.\n\n:::tip\nAlways provide clear, actionable text inside notifications.\n:::",
37
+ "accessibility": "- **Delete button:** Includes `aria-label=\"Close notification\"` for screen readers.\n- **Keyboard:** The delete button is focusable and can be activated by keyboard.\n- **Content:** Use semantic HTML within the notification for best accessibility.\n- **Contrast:** A dark or light notification's text reads against its background the way a dark or light `Button`'s does, in both color schemes. That comes from bestax's stylesheets, as the `color` prop's description says.\n- **Announcements:** A notification shown through `notification` announces its message. `danger` and `warning` announce themselves: the message carries `role=\"alert\"` with `aria-live=\"assertive\"`, which screen readers reliably announce even though it arrives with its text. The rest are announced politely through a visually hidden `role=\"status\"` region that `NotificationContainer` keeps in the page from the moment it mounts, even with nothing showing, because a polite region that arrives already holding its text often isn't announced. A moment after one of those notifications appears, its message is written into the region, then cleared again shortly after.\n- **Testing:** A polite notification's message doesn't carry `role=\"status\"`, so `getByRole('status')` finds the container's region rather than the notification. Query the message text or `.notification` instead. A count or text [`Badge`](https://bestax.io/docs/api/components/badge) is a `role=\"status\"` node too, so with both on the page `getByRole('status')` matches more than one: find the badge by its accessible name, or use `getAllByRole`. While a message is in the region, the page also holds a second copy of its text, so a test that advances the clock past the announcement and then looks the message up by text can find both, and can still find the region's copy for a moment after the notification closes. Scope that query to the notification, for example with `within`.\n\n:::tip\nAlways provide clear, actionable text inside notifications.\n:::",
38
38
  "related": ["Delete", "useBulmaClasses"],
39
39
  "storybook": "https://bestax.io/storybook/?path=/story/elements-notification--default",
40
40
  "summary": "The `Notification` component is a Bulma-styled alert/message area for providing feedback, warnings, or information to users.",
@@ -60,7 +60,7 @@
60
60
  "name": "color",
61
61
  "type": "Bulma color",
62
62
  "default": null,
63
- "description": "Bulma color modifier for the notification (renders `is-<color>`). Only `primary`, `link`, `info`, `success`, `warning`, `danger`, `black`, `white`, `light`, and `dark` have shipped CSS for `.notification`. Every other value the union accepts emits a class no CSS rule matches, so the notification renders unstyled; those log a console warning in development and will be removed from this union in the next major version. `dark` takes the dark color's own text and background from bestax's stylesheets, as a dark `Button` has. With Bulma's CSS alone, a dark notification's text inherits the color around it, which on a light page is one shade off its background.",
63
+ "description": "Bulma color modifier for the notification (renders `is-<color>`). Only `primary`, `link`, `info`, `success`, `warning`, `danger`, `black`, `white`, `light`, and `dark` have shipped CSS for `.notification`. Every other value the union accepts emits a class no CSS rule matches, so the notification renders unstyled; those log a console warning in development and will be removed from this union in the next major version. `dark` and `light` take their color's own text and background from bestax's stylesheets, as a dark or light `Button` has. With Bulma's CSS alone, their text inherits the color around it, which on a light page is one shade off a dark notification's background, and on a dark page is hard to read on a light one.",
64
64
  "required": false,
65
65
  "inherited": false,
66
66
  "deprecated": false,
@@ -80,7 +80,7 @@
80
80
  "name": "isLight",
81
81
  "type": "boolean",
82
82
  "default": "false",
83
- "description": "Use the light color variant. The dark color has none, so `color=\"dark\"` with `isLight` looks the same as without it, as a dark `Button` does.",
83
+ "description": "Use the light color variant. The light and dark colors have none, so `color=\"light\"` or `color=\"dark\"` with `isLight` looks the same as without it, as a light or dark `Button` does.",
84
84
  "required": false,
85
85
  "inherited": false,
86
86
  "deprecated": false
@@ -45,7 +45,7 @@
45
45
  "code": "import { Tags, Delete } from '@allxsmith/bestax-bulma';\n\n<Tags hasAddons>\n <Tag color=\"primary\" size=\"medium\">\n Tag with Delete\n <Delete onClick={() => alert('Tag deleted!')} />\n </Tag>\n</Tags>;"
46
46
  }
47
47
  ],
48
- "accessibility": "- **Delete buttons:** Use `aria-label` for delete tags for screen readers.\n- **Keyboard:** Delete tags are rendered as `<button>`, supporting keyboard activation.\n- **Semantics:** Use tags for supplemental information, not as primary headings.\n\n:::tip\nCombine `Tag` with `Tags` for grouped, multi-tag UIs.\n:::",
48
+ "accessibility": "- **Delete buttons:** Use `aria-label` for delete tags for screen readers.\n- **Keyboard:** Delete tags are rendered as `<button>`, supporting keyboard activation.\n- **Semantics:** Use tags for supplemental information, not as primary headings.\n- **Contrast:** A light tag's text reads against its background the way a light `Button`'s does, in both color schemes. That comes from bestax's stylesheets, as the `color` prop's description says.\n\n:::tip\nCombine `Tag` with `Tags` for grouped, multi-tag UIs.\n:::",
49
49
  "related": ["Delete", "Tags", "useBulmaClasses"],
50
50
  "storybook": "https://bestax.io/storybook/?path=/story/elements-tag--default",
51
51
  "summary": "The `Tag` component renders a Bulma-styled label or badge.",
@@ -71,7 +71,7 @@
71
71
  "name": "color",
72
72
  "type": "TagColor",
73
73
  "default": null,
74
- "description": "Bulma color modifier for the tag.",
74
+ "description": "Bulma color modifier for the tag. `light` takes the light color's own text from bestax's stylesheets. With Bulma's CSS alone, a light tag's text inherits the color around it, which on a dark page is hard to read.",
75
75
  "required": false,
76
76
  "inherited": false,
77
77
  "deprecated": false
@@ -89,7 +89,7 @@
89
89
  "name": "isLight",
90
90
  "type": "boolean",
91
91
  "default": "false",
92
- "description": "Use the light color variant.",
92
+ "description": "Use the light color variant. The light color has none, so `color=\"light\"` with `isLight` looks the same as without it.",
93
93
  "required": false,
94
94
  "inherited": false,
95
95
  "deprecated": false
@@ -120,7 +120,7 @@
120
120
  "name": "color",
121
121
  "type": "TagColor",
122
122
  "default": null,
123
- "description": "Bulma color modifier for the tag.",
123
+ "description": "Bulma color modifier for the tag. `light` takes the light color's own text from bestax's stylesheets. With Bulma's CSS alone, a light tag's text inherits the color around it, which on a dark page is hard to read.",
124
124
  "required": false,
125
125
  "inherited": false,
126
126
  "deprecated": false
@@ -138,7 +138,7 @@
138
138
  "name": "isLight",
139
139
  "type": "boolean",
140
140
  "default": "false",
141
- "description": "Use the light color variant.",
141
+ "description": "Use the light color variant. The light color has none, so `color=\"light\"` with `isLight` looks the same as without it.",
142
142
  "required": false,
143
143
  "inherited": false,
144
144
  "deprecated": false
@@ -408,8 +408,8 @@ in the browser:
408
408
 
409
409
  - **`family:radio`**, **`family:checkboxes`**, **`family:radios`**: bestax renders its own
410
410
  styled radio markup, and its own `.field` and `.control` around a group, not Bulma's.
411
- - **`family:modal`**: `Modal` writes a `data-testid` of its own and adds dialog attributes and
412
- focus handling, so the `.modal` root stays markup while its background, content and card parts
411
+ - **`family:modal`**: `Modal` writes `data-testid="modal"` when it's given none and adds dialog
412
+ attributes and focus handling, so the `.modal` root stays markup while its background, content and card parts
413
413
  convert on their own. Rebuild the root with `Modal` around them, drive it with its open prop,
414
414
  and pass `onClose`, which Escape and `Modal.Close` call. The converted `Modal.Background`
415
415
  doesn't call it on its own: give it `onClick={onClose}` for the background to close the modal.
@@ -425,8 +425,8 @@ in the browser:
425
425
  inside its `<li>` with no class but `is-active`, and puts its `className` on the `<li>`, so the
426
426
  class has nowhere to go. On an `<a>` inside a `.menu-list` it adds nothing, so drop it and
427
427
  re-run, and the item can convert. On any other tag, keep the markup.
428
- - **`family:message`**: `Message` writes a `data-testid` of its own over the one it's given, and
429
- wraps children other than `Message.Header` and `Message.Body` in a `.message-body`.
428
+ - **`family:message`**: `Message` writes `data-testid="message"` when it's given none, and wraps
429
+ children other than `Message.Header` and `Message.Body` in a `.message-body`.
430
430
  - **`family:panel-icon`**: `Panel.Icon` renders through `Icon`, which always writes an
431
431
  `aria-label`, so write `<Panel.Icon>` by hand with the `<i>` inside. The rest of a panel converts,
432
432
  a `<label>` or `<div>` `.panel-block` included, as `Panel.Block` with `as` and its contents as
@@ -94,7 +94,7 @@ is **more complete** than the docs page's Option C example, which omits several)
94
94
 
95
95
  **Elements** (`@allxsmith/bestax-bulma/scss/elements/<name>`): `button`, `colorswatch`,
96
96
  `delete`, `descriptionlist`, `iconbutton`, `kbd`, `linkbutton`, `loader`, `notification`,
97
- `progress`, `ringprogress`, `skeleton`, `stat`
97
+ `progress`, `ringprogress`, `skeleton`, `stat`, `tag`
98
98
 
99
99
  **Helpers** (`@allxsmith/bestax-bulma/scss/helpers/<name>`): `cursor`, `sizing`
100
100
 
@@ -137,9 +137,10 @@ Notes:
137
137
  ```
138
138
 
139
139
  - The `navbar` partial **extends** stock Bulma navbar (it keeps the burger's bars in
140
- ButtonText in forced colors, where Chromium paints them in the page's Canvas color), so an
141
- app using `Navbar` needs both, in either order. `AppFrame.Burger` renders `Navbar.Burger`,
142
- so a build with one wants this partial too:
140
+ ButtonText in forced colors, where Chromium paints them in the page's Canvas color, and keeps a
141
+ `fixed` navbar in place while an overlay locks the page's scrolling), so an app using `Navbar`
142
+ needs both, in either order. `AppFrame.Burger` renders `Navbar.Burger`, so a build with one
143
+ wants this partial too:
143
144
 
144
145
  ```scss
145
146
  @use 'bulma/sass/components/navbar';
@@ -231,10 +232,15 @@ Notes:
231
232
  `prefers-reduced-motion: reduce`, the same way and in either order.
232
233
  - `Notification` is stock Bulma too (`bulma/sass/elements/notification`). The `notification`
233
234
  extras partial pads the end of one with a close button (`hasDelete`, or a `Delete` passed in)
234
- so its text clears the button, and gives a dark one the dark color's own text and background,
235
- where Bulma's module lets its text inherit the color around it. Include it
236
- (`as bestax-notification`) next to the Bulma module in any build that shows a dismissible or a
237
- dark notification. It doesn't depend on the order of the two `@use` lines either.
235
+ so its text clears the button, and gives a dark or light one its color's own text and
236
+ background, where Bulma's module lets its text inherit the color around it. Include it
237
+ (`as bestax-notification`) next to the Bulma module in any build that shows a dismissible, dark
238
+ or light notification. It doesn't depend on the order of the two `@use` lines either.
239
+ - `Tag` is stock Bulma too (`bulma/sass/elements/tag`). The `tag` extras partial gives a light tag
240
+ the light color's own text, where Bulma's module lets its text inherit the color around it, which
241
+ on the dark scheme leaves it hard to read. Include it (`as bestax-tag`) next to the Bulma module
242
+ in any build that shows a light tag. It doesn't depend on the order of the two `@use` lines
243
+ either.
238
244
  - `Delete` is stock Bulma too, and it's the close button of `Notification`, `Message`, `Toast`, a
239
245
  `Modal` card, `AppFrame`'s drawer and the tags of `Taginput`, `Combobox`, `Dropzone` and
240
246
  `TreeSelect`. Bulma draws it in `bulma/sass/elements/delete`, and the modules of the components
@@ -760,12 +760,13 @@ passed as a direct child in browsers that support `:has()`. It is the padding fo
760
760
  button: a `Delete` passed in with a `size` gets it plus or minus the difference between the two
761
761
  sizes.
762
762
 
763
- A dark notification, with or without `isLight`, sets `--bulma-notification-background-l` and
764
- `--bulma-notification-color-l` to the dark color's own `--bulma-dark-l` and
765
- `--bulma-dark-invert-l`, so it reads as a dark button does. Bulma's dark variant of the dark color
766
- would otherwise give it text that inherits the color around it. That rule outranks a selector like
767
- `.notification.is-dark`, so set either variable on a dark notification through `style`. Bulma's own
768
- `--bulma-notification-*` variables set the rest.
763
+ A dark or light notification, with or without `isLight`, sets `--bulma-notification-background-l`
764
+ and `--bulma-notification-color-l` to that color's own `--bulma-dark-l` and
765
+ `--bulma-dark-invert-l`, or `--bulma-light-l` and `--bulma-light-invert-l`, so it reads as a dark
766
+ or light button does. Bulma's own variant of that color would otherwise give it text that inherits
767
+ the color around it. Those rules outrank a selector like `.notification.is-dark`, so set either
768
+ variable on a dark or light notification through `style`. Bulma's own `--bulma-notification-*`
769
+ variables set the rest.
769
770
 
770
771
  ### Numberinput
771
772
 
@@ -1015,6 +1016,14 @@ set on the root itself, since its own declaration wins over one on an ancestor.
1015
1016
  `--bulma-tabs-content-padding`, `--bulma-tabs-vertical-border-color`,
1016
1017
  `--bulma-tabs-vertical-border-width`, `--bulma-tabs-vertical-min-width`
1017
1018
 
1019
+ ### Tag
1020
+
1021
+ A light tag, with or without `isLight`, sets `--bulma-tag-color-l` to the light color's own
1022
+ `--bulma-light-invert-l`, so its text reads as a light button's does. Bulma's light variant of the
1023
+ light color would otherwise give it text that inherits the color around it. That rule outranks a
1024
+ selector like `.tag.is-light`, so set the variable on a light tag through `style`. Bulma's own
1025
+ `--bulma-tag-*` variables set the rest.
1026
+
1018
1027
  ### Taginput
1019
1028
 
1020
1029
  `--bulma-taginput-background`, `--bulma-taginput-border-color`, `--bulma-taginput-border-radius`,
@@ -1118,6 +1127,30 @@ are `Checkbox`'s, themed through `--bulma-checkbox-*`.
1118
1127
  `--bulma-tree-view-line-height`, `--bulma-tree-view-toggle-color`,
1119
1128
  `--bulma-tree-view-toggle-duration`, `--bulma-tree-view-toggle-size`
1120
1129
 
1130
+ ## The scroll lock's offsets: read them, don't set them
1131
+
1132
+ An overlay that locks the page's scrolling, such as a Modal, a Sidebar with its overlay or a
1133
+ full-page Loading, takes the page's scrollbar away and pads `<html>` by the room it took, so the
1134
+ page doesn't shift. An element fixed to the window is placed against the window, which grows by
1135
+ that room, so the padding doesn't reach it. While the lock is on, it sets the room it padded on
1136
+ `<html>` as `--bulma-scroll-lock-offset-right`, or `--bulma-scroll-lock-offset-left` where the
1137
+ scrollbar was on the left. A `fixed` Navbar, the toast and notification stacks and an Affix add
1138
+ them to their offsets, so they stay put. A fixed element of the app's own does the same, with a
1139
+ `0px` fallback for when no lock is on:
1140
+
1141
+ ```css
1142
+ .chat-launcher {
1143
+ position: fixed;
1144
+ bottom: 1rem;
1145
+ right: calc(1rem + var(--bulma-scroll-lock-offset-right, 0px));
1146
+ }
1147
+ ```
1148
+
1149
+ The sides are physical, left and right, whatever the text's direction: an element fixed to the
1150
+ window's right edge reads the `-right` one on a right-to-left page too. Neither is set while no
1151
+ lock is on, or where the scrollbar takes no room, so the fallback applies. The lock writes them and
1152
+ removes them when the last overlay closes, so don't set them in a theme.
1153
+
1121
1154
  ## Dark mode (`Theme colorMode`)
1122
1155
 
1123
1156
  Drive the light/dark scheme with the `Theme` component's **`colorMode`** prop —
package/data/skills.json CHANGED
@@ -113,7 +113,7 @@
113
113
  {
114
114
  "id": "bulma-classes-unmappables",
115
115
  "file": "references/bulma-classes/unmappables.md",
116
- "bytes": 68225
116
+ "bytes": 68235
117
117
  },
118
118
  {
119
119
  "id": "css-migration",
@@ -162,7 +162,7 @@
162
162
  {
163
163
  "id": "modular-build",
164
164
  "file": "references/modular-build.md",
165
- "bytes": 20322
165
+ "bytes": 20823
166
166
  }
167
167
  ],
168
168
  "examples": []
@@ -176,7 +176,7 @@
176
176
  {
177
177
  "id": "css-variables",
178
178
  "file": "references/css-variables.md",
179
- "bytes": 73655
179
+ "bytes": 75421
180
180
  },
181
181
  {
182
182
  "id": "themeable-components",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bestax-mcp",
3
- "version": "1.18.47",
3
+ "version": "1.18.49",
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.67.10"
45
+ "@allxsmith/bestax-bulma": "^5.67.12"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/node": "^26.6.6",