bestax-mcp 1.18.88 → 1.18.89

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
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 2,
3
3
  "generatedFrom": {
4
4
  "package": "@allxsmith/bestax-bulma",
5
- "version": "5.78.10"
5
+ "version": "5.79.0"
6
6
  },
7
7
  "docsBase": "https://bestax.io/docs",
8
8
  "categories": [
@@ -19,11 +19,11 @@
19
19
  },
20
20
  {
21
21
  "title": "Content in a Day",
22
- "code": "function Fares() {\n const fare = (date: Date) => 60 + ((date.getDate() * 7) % 50);\n return (\n <Calendar\n aria-label=\"Pick a departure day\"\n dayTemplate={date => `$${fare(date)}`}\n getDayLabel={(date, label) => `${label}, $${fare(date)}`}\n />\n );\n}"
22
+ "code": "function Fares() {\n const fare = (date: Date) => 60 + ((date.getDate() * 7) % 50);\n return (\n <Calendar\n aria-label=\"Pick a departure day\"\n dayTemplate={date => `$${fare(date)}`}\n getDayLabel={(date, label, shownNumber) =>\n `${shownNumber}, $${fare(date)}, ${label}`\n }\n />\n );\n}"
23
23
  },
24
24
  {
25
25
  "title": "Loading Each Month",
26
- "code": "function Slots() {\n const [month, setMonth] = React.useState(() => new Date());\n const [day, setDay] = React.useState<Date | null>(null);\n const [loading, setLoading] = React.useState(false);\n // Stands in for a fetch of the month's free slots.\n React.useEffect(() => {\n setLoading(true);\n const timer = setTimeout(() => setLoading(false), 600);\n return () => clearTimeout(timer);\n }, [month]);\n const slotsLeft = (date: Date) =>\n date.getDay() % 6 === 0 ? 0 : (date.getDate() % 5) + 1;\n return (\n <Calendar\n aria-label=\"Book a slot\"\n month={month}\n onMonthChange={setMonth}\n loading={loading}\n value={day}\n onChange={setDay}\n shouldDisableDate={date => slotsLeft(date) === 0}\n dayTemplate={date => slotsLeft(date) > 0 && `${slotsLeft(date)} left`}\n getDayLabel={(date, label) => `${label}, ${slotsLeft(date)} slots left`}\n />\n );\n}"
26
+ "code": "function Slots() {\n const [month, setMonth] = React.useState(() => new Date());\n const [day, setDay] = React.useState<Date | null>(null);\n const [loading, setLoading] = React.useState(false);\n // Stands in for a fetch of the month's free slots.\n React.useEffect(() => {\n setLoading(true);\n const timer = setTimeout(() => setLoading(false), 600);\n return () => clearTimeout(timer);\n }, [month]);\n const slotsLeft = (date: Date) =>\n date.getDay() % 6 === 0 ? 0 : (date.getDate() % 5) + 1;\n return (\n <Calendar\n aria-label=\"Book a slot\"\n month={month}\n onMonthChange={setMonth}\n loading={loading}\n value={day}\n onChange={setDay}\n shouldDisableDate={date => slotsLeft(date) === 0}\n dayTemplate={date => slotsLeft(date) > 0 && `${slotsLeft(date)} left`}\n getDayLabel={(date, label, shownNumber) =>\n slotsLeft(date) > 0\n ? `${shownNumber}, ${slotsLeft(date)} left, ${label}`\n : label\n }\n />\n );\n}"
27
27
  },
28
28
  {
29
29
  "title": "A Calendar You Only Read",
@@ -43,7 +43,7 @@
43
43
  },
44
44
  {
45
45
  "title": "Full Width",
46
- "code": "function WideFares() {\n const fare = (date: Date) => 60 + ((date.getDate() * 7) % 50);\n return (\n <Calendar\n aria-label=\"Pick a departure day\"\n isFullwidth\n monthsToShow={2}\n dayTemplate={date => `from $${fare(date)}`}\n getDayLabel={(date, label) => `${label}, from $${fare(date)}`}\n />\n );\n}"
46
+ "code": "function WideFares() {\n const fare = (date: Date) => 60 + ((date.getDate() * 7) % 50);\n return (\n <Calendar\n aria-label=\"Pick a departure day\"\n isFullwidth\n monthsToShow={2}\n dayTemplate={date => `from $${fare(date)}`}\n getDayLabel={(date, label, shownNumber) =>\n `${shownNumber}, from $${fare(date)}, ${label}`\n }\n />\n );\n}"
47
47
  },
48
48
  {
49
49
  "title": "Sizes and Colors",
@@ -54,7 +54,7 @@
54
54
  "code": "<Calendar\n aria-label=\"Choisir un jour\"\n locale=\"fr-FR\"\n firstDayOfWeek={1}\n labels={{ prevMonth: 'Mois précédent', nextMonth: 'Mois suivant' }}\n/>"
55
55
  }
56
56
  ],
57
- "accessibility": "- The root is a `<div>`. An `aria-label` or `aria-labelledby` on it names the Calendar and makes it a `role=\"group\"`, and so does a labeled `Field` around it, whose label names it when you give it no name of your own.\n- Each month is a `role=\"grid\"` named by its month and year, its weeks `role=\"row\"`s and its days `button`s with `role=\"gridcell\"`. Picked days are `aria-selected`, and today has `aria-current=\"date\"`.\n- A day the grid leaves blank, a nearby month's day with `nearbyMonthDays` off or one whose month is on show beside it, draws nothing. A week left with no day on show keeps its place, so the grid keeps its height and months side by side line up, and is hidden from assistive technology rather than read as an empty row.\n- In forced colors (Windows' contrast themes), the fill that marks a picked day, month or year, a range's band, and the year the header's year list is on, is replaced, so bestax's styles draw each of those cells, and every day of a picked range, in the system's highlight colors there, or in the system's color for a disabled control when it's disabled. What `dayTemplate` draws in them takes the same colors, unless it sets its own. While a range's end is still being picked, only its start is filled, and the day it would end on keeps its dashed edge.\n- In forced colors, a disabled day, month or year, and a disabled month or arrow button in the header, draws in the system's color for a disabled control, at full strength rather than faded.\n- Each day is named by its full date in the Calendar's locale, such as \"Friday, November 20, 2026\", which `getDayLabel` extends. The weekday row is hidden from assistive technology, since every day's name carries its weekday, so moving down a week reads the whole date rather than \"27\". On a server-rendered page the full names arrive once the page hydrates.\n- What `dayTemplate` draws isn't read, since a day's name is its date: pair it with `getDayLabel`.\n- A range's ends are described as \"Start date\" and \"End date\", the day a pending range would end on as \"Choose as end date\", and a polite live region states the range in words as it's picked, as on `DateRangeInput`.\n- `readOnly` puts `aria-readonly=\"true\"` on the grids and keeps the tab stop and the keys. `disabled` puts `aria-disabled=\"true\"` on them and disables every button.\n- `loading` puts `aria-busy=\"true\"` on the grids and keeps the grid and its focus where they were.\n- A roving `tabindex` keeps one day focusable in the whole Calendar, whatever `monthsToShow` is. When the focused day is disabled, the tab stop moves to the nearest enabled day of the months on show.\n- Closing the year list, with a pick or `Escape`, puts focus back on the grid's tab stop.\n- On a right-to-left page the previous-month chevron points right.",
57
+ "accessibility": "- The root is a `<div>`. An `aria-label` or `aria-labelledby` on it names the Calendar and makes it a `role=\"group\"`, and so does a labeled `Field` around it, whose label names it when you give it no name of your own.\n- Each month is a `role=\"grid\"` named by its month and year, its weeks `role=\"row\"`s and its days `button`s with `role=\"gridcell\"`. Picked days are `aria-selected`, and today has `aria-current=\"date\"`.\n- A day the grid leaves blank, a nearby month's day with `nearbyMonthDays` off or one whose month is on show beside it, draws nothing. A week left with no day on show keeps its place, so the grid keeps its height and months side by side line up, and is hidden from assistive technology rather than read as an empty row.\n- In forced colors (Windows' contrast themes), the fill that marks a picked day, month or year, a range's band, and the year the header's year list is on, is replaced, so bestax's styles draw each of those cells, and every day of a picked range, in the system's highlight colors there, or in the system's color for a disabled control when it's disabled. What `dayTemplate` draws in them takes the same colors, unless it sets its own. While a range's end is still being picked, only its start is filled, and the day it would end on keeps its dashed edge.\n- In forced colors, a disabled day, month or year, and a disabled month or arrow button in the header, draws in the system's color for a disabled control, at full strength rather than faded.\n- Each day is named by its full date in the Calendar's locale, such as \"Friday, November 20, 2026\", which `getDayLabel` gets as its `label`. The weekday row is hidden from assistive technology, since every day's name carries its weekday, so moving down a week reads the whole date rather than \"27\". On a server-rendered page the full names arrive once the page hydrates, and until then a day is named by its number and what `dayTemplate` draws.\n- What `dayTemplate` draws isn't read, since a day's name is its date: pair it with `getDayLabel`. On a day it draws text for, start the name with the day's number and that text, in the words the day shows.\n- A range's ends are described as \"Start date\" and \"End date\", the day a pending range would end on as \"Choose as end date\", and a polite live region states the range in words as it's picked, as on `DateRangeInput`.\n- `readOnly` puts `aria-readonly=\"true\"` on the grids and keeps the tab stop and the keys. `disabled` puts `aria-disabled=\"true\"` on them and disables every button.\n- `loading` puts `aria-busy=\"true\"` on the grids and keeps the grid and its focus where they were.\n- A roving `tabindex` keeps one day focusable in the whole Calendar, whatever `monthsToShow` is. When the focused day is disabled, the tab stop moves to the nearest enabled day of the months on show.\n- Closing the year list, with a pick or `Escape`, puts focus back on the grid's tab stop.\n- On a right-to-left page the previous-month chevron points right.",
58
58
  "related": ["DateInput", "DateRangeInput", "Fieldset"],
59
59
  "storybook": "https://bestax.io/storybook/?path=/story/form-calendar",
60
60
  "summary": "The `Calendar` component shows months on the page, not behind an input, where a click picks a day or a range and each day can show what's on it. It's the grid the date pickers draw, with no `Field`, label or hidden input: a form that posts a date uses `DateInput inline` instead.",
@@ -152,16 +152,16 @@
152
152
  "name": "dayTemplate",
153
153
  "type": "(date: Date, state: CalendarDayState) => React.ReactNode",
154
154
  "default": null,
155
- "description": "Draws content inside a day's button, under its number: a dot, a count, a price. Phrasing content only, with nothing in it to click or focus. Say the same thing in `getDayLabel`: a day's name is its date, so a screen reader doesn't read what this draws.",
155
+ "description": "Draws content inside a day's button, under its number: a dot, a count, a price. Phrasing content only, with nothing in it to click or focus. Say the same thing in `getDayLabel`, in the same words where this draws text: a day's name is its date, so a screen reader doesn't read what this draws.",
156
156
  "required": false,
157
157
  "inherited": true,
158
158
  "deprecated": false
159
159
  },
160
160
  {
161
161
  "name": "getDayLabel",
162
- "type": "(date: Date, label: string) => string",
162
+ "type": "(date: Date, label: string, shownNumber: string) => string",
163
163
  "default": null,
164
- "description": "Returns a day's accessible name. `label` is the default, the full date in the Calendar's locale (\"Tuesday, October 20, 2026\"), so append to it: `` (date, label) => `${label}, 3 slots left` ``. On a server-rendered page the full-date names arrive once the page hydrates, as the pickers' full weekday names do, and until then a day is named by its number and the text `dayTemplate` draws.",
164
+ "description": "Returns a day's accessible name. `label` is the default, the full date in the Calendar's locale (\"Tuesday, October 20, 2026\"), and `shownNumber` is the day's number as its cell shows it, in the grid's digits (\"20\", or \"٢٠\" in Egyptian Arabic). On a day `dayTemplate` draws text for, start the name with what the day shows, its number and then that text, and end it with `label`: `` (date, label, shownNumber) => `${shownNumber}, 3 left, ${label}` ``. Someone using speech input says what they see, and a name with the day's words in another order, or in other words, may not match. On a server-rendered page the full-date names arrive once the page hydrates, as the pickers' full weekday names do, and until then a day is named by its number and the text `dayTemplate` draws.",
165
165
  "required": false,
166
166
  "inherited": true,
167
167
  "deprecated": false
@@ -293,13 +293,15 @@ pickers' grid with no `Field`, label or hidden input, so a form that posts a dat
293
293
  `DateRangeInput`, reported once both ends are picked). `readOnly` reads days without picking
294
294
  them and `disabled` stops both. `dayTemplate(date, state)` draws short content under a day's
295
295
  number, and because a day's name is its full date, which a screen reader reads instead, pair it
296
- with `getDayLabel(date, label)` to say the same thing. `month`/`defaultMonth`/`onMonthChange`
297
- hold the month on show, so load each month's data in `onMonthChange` and set `loading` while it
298
- arrives. `monthsToShow` sets months side by side, and `isFullwidth` stretches the days to the
299
- container. Name it with `aria-label` or `aria-labelledby`. On a server-rendered page give it a
300
- `month`, a `defaultMonth` or a picked `value`, since without one the first month comes from the
301
- clock, and a `locale` (or a `LocaleProvider` around it), since without one the month and weekday
302
- names come in the server's language on the server.
296
+ with `getDayLabel(date, label, shownNumber)` to say the same thing: `shownNumber` (the day's
297
+ number as it shows) and the words it draws first, then `label`, so speech input matches what
298
+ shows.
299
+ `month`/`defaultMonth`/`onMonthChange` hold the month on show, so load each month's data in
300
+ `onMonthChange` and set `loading` while it arrives. `monthsToShow` sets months side by side, and
301
+ `isFullwidth` stretches the days to the container. Name it with `aria-label` or `aria-labelledby`.
302
+ On a server-rendered page give it a `month`, a `defaultMonth` or a picked `value`, since without one
303
+ the first month comes from the clock, and a `locale` (or a `LocaleProvider` around it), since
304
+ without one the month and weekday names come in the server's language on the server.
303
305
 
304
306
  ```tsx
305
307
  const [month, setMonth] = useState(new Date(2026, 10, 1));
@@ -314,7 +316,11 @@ const [day, setDay] = useState<Date | null>(null);
314
316
  onChange={setDay}
315
317
  shouldDisableDate={date => slotsLeft(date) === 0}
316
318
  dayTemplate={date => slotsLeft(date) > 0 && `${slotsLeft(date)} left`}
317
- getDayLabel={(date, label) => `${label}, ${slotsLeft(date)} slots left`}
319
+ getDayLabel={(date, label, shownNumber) =>
320
+ slotsLeft(date) > 0
321
+ ? `${shownNumber}, ${slotsLeft(date)} left, ${label}`
322
+ : label
323
+ }
318
324
  />;
319
325
  ```
320
326
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bestax-mcp",
3
- "version": "1.18.88",
3
+ "version": "1.18.89",
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.78.10"
45
+ "@allxsmith/bestax-bulma": "^5.79.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/node": "^26.6.6",