bestax-mcp 1.18.57 → 1.18.58

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.
@@ -13108,6 +13108,7 @@
13108
13108
  "avatar": "Avatar",
13109
13109
  "avatars": "Avatars",
13110
13110
  "badge": "Badge",
13111
+ "calendar": "Calendar",
13111
13112
  "carousel": "Carousel",
13112
13113
  "styled-checkbox": "Checkbox",
13113
13114
  "checkbox-card": "CheckboxCard",
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.70.0"
5
+ "version": "5.71.0"
6
6
  },
7
7
  "docsBase": "https://bestax.io/docs",
8
8
  "categories": [
@@ -103,6 +103,7 @@
103
103
  "label": "Form",
104
104
  "components": [
105
105
  "Autocomplete",
106
+ "Calendar",
106
107
  "Checkbox",
107
108
  "CheckboxCard",
108
109
  "Checkboxes",
@@ -298,6 +299,17 @@
298
299
  "propCount": 104,
299
300
  "exampleCount": 8
300
301
  },
302
+ {
303
+ "name": "Calendar",
304
+ "kind": "component",
305
+ "category": "form",
306
+ "purpose": "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.",
307
+ "slug": "form/datetime/calendar",
308
+ "import": "import { Calendar } from '@allxsmith/bestax-bulma';",
309
+ "compound": false,
310
+ "propCount": 30,
311
+ "exampleCount": 12
312
+ },
301
313
  {
302
314
  "name": "Card",
303
315
  "kind": "component",
@@ -1810,6 +1822,11 @@
1810
1822
  "--bulma-button-text-hover-background-color": ["Button"],
1811
1823
  "--bulma-button-text-hover-color": ["Button"],
1812
1824
  "--bulma-button-weight": ["Button"],
1825
+ "--bulma-calendar-background-color": ["Calendar"],
1826
+ "--bulma-calendar-border-color": ["Calendar"],
1827
+ "--bulma-calendar-months-gap": ["Calendar"],
1828
+ "--bulma-calendar-padding": ["Calendar"],
1829
+ "--bulma-calendar-radius": ["Calendar"],
1813
1830
  "--bulma-card-background-color": ["Card"],
1814
1831
  "--bulma-card-color": ["Card"],
1815
1832
  "--bulma-card-content-background-color": ["Card"],
@@ -2038,6 +2055,21 @@
2038
2055
  "DateRangeInput",
2039
2056
  "DateTimeInput"
2040
2057
  ],
2058
+ "--bulma-dateinput-cell-content-color": [
2059
+ "DateInput",
2060
+ "DateRangeInput",
2061
+ "DateTimeInput"
2062
+ ],
2063
+ "--bulma-dateinput-cell-content-loading-opacity": [
2064
+ "DateInput",
2065
+ "DateRangeInput",
2066
+ "DateTimeInput"
2067
+ ],
2068
+ "--bulma-dateinput-cell-content-size": [
2069
+ "DateInput",
2070
+ "DateRangeInput",
2071
+ "DateTimeInput"
2072
+ ],
2041
2073
  "--bulma-dateinput-cell-disabled-color": [
2042
2074
  "DateInput",
2043
2075
  "DateRangeInput",
@@ -0,0 +1,409 @@
1
+ {
2
+ "name": "Calendar",
3
+ "kind": "component",
4
+ "category": "form",
5
+ "slug": "form/datetime/calendar",
6
+ "docsUrl": "https://bestax.io/docs/api/form/datetime/calendar",
7
+ "examples": [
8
+ {
9
+ "title": "Basic Calendar",
10
+ "code": "function example() {\n return <Calendar aria-label=\"Pick a day\" />;\n}"
11
+ },
12
+ {
13
+ "title": "Holding the Value",
14
+ "code": "function Agenda() {\n const [day, setDay] = React.useState<Date | null>(null);\n return (\n <Columns>\n <Column isNarrow>\n <Calendar aria-label=\"Show a day\" value={day} onChange={setDay} />\n </Column>\n <Column>\n <Title as=\"h3\" size=\"6\">\n {day ? day.toDateString() : 'Pick a day'}\n </Title>\n <Paragraph>\n {day && day.getDay() % 6 !== 0\n ? 'Stand-up at 9:30, design review at 14:00.'\n : 'Nothing on.'}\n </Paragraph>\n </Column>\n </Columns>\n );\n}"
15
+ },
16
+ {
17
+ "title": "Picking a Range",
18
+ "code": "import type { DateRangeValue } from '@allxsmith/bestax-bulma';\n\nfunction Stay() {\n const [stay, setStay] = React.useState<DateRangeValue>([null, null]);\n const [start, end] = stay;\n return (\n <Block>\n <Calendar\n aria-label=\"Your stay\"\n selectionMode=\"range\"\n monthsToShow={2}\n min={new Date()}\n value={stay}\n onChange={setStay}\n />\n <Paragraph mt=\"3\">\n {start && end\n ? `${start.toDateString()} to ${end.toDateString()}`\n : 'Pick a check-in day, then a check-out day.'}\n </Paragraph>\n </Block>\n );\n}"
19
+ },
20
+ {
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}"
23
+ },
24
+ {
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}"
27
+ },
28
+ {
29
+ "title": "A Calendar You Only Read",
30
+ "code": "function Holidays() {\n const holidays: Record<string, string> = {\n '12-25': 'Christmas Day',\n '12-31': \"New Year's Eve\",\n };\n const holiday = (date: Date) =>\n holidays[`${date.getMonth() + 1}-${date.getDate()}`];\n return (\n <>\n <Title as=\"h2\" size=\"5\" id=\"holidays-heading\">\n Team holidays\n </Title>\n <Calendar\n aria-labelledby=\"holidays-heading\"\n readOnly\n defaultMonth={new Date(new Date().getFullYear(), 11, 1)}\n dayTemplate={date => holiday(date) && <Icon name=\"star\" size=\"small\" />}\n getDayLabel={(date, label) =>\n holiday(date) ? `${label}, ${holiday(date)}` : label\n }\n />\n </>\n );\n}"
31
+ },
32
+ {
33
+ "title": "Several Months",
34
+ "code": "<Calendar aria-label=\"Pick a day\" monthsToShow={3} />"
35
+ },
36
+ {
37
+ "title": "Months and Years",
38
+ "code": "function MonthAndYear() {\n return (\n <Columns>\n <Column isNarrow>\n <Calendar aria-label=\"Pick a month\" granularity=\"month\" />\n </Column>\n <Column isNarrow>\n <Calendar aria-label=\"Pick a year\" granularity=\"year\" />\n </Column>\n </Columns>\n );\n}"
39
+ },
40
+ {
41
+ "title": "Min, Max and Disabled Days",
42
+ "code": "function Weekdays() {\n const today = new Date();\n const inSixWeeks = new Date(\n today.getFullYear(),\n today.getMonth(),\n today.getDate() + 42\n );\n return (\n <Calendar\n aria-label=\"Pick a weekday\"\n min={today}\n max={inSixWeeks}\n shouldDisableDate={date => date.getDay() % 6 === 0}\n />\n );\n}"
43
+ },
44
+ {
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}"
47
+ },
48
+ {
49
+ "title": "Sizes and Colors",
50
+ "code": "<Columns isMultiline>\n <Column isNarrow>\n <Calendar aria-label=\"Small\" size=\"small\" color=\"info\" />\n </Column>\n <Column isNarrow>\n <Calendar aria-label=\"Large\" size=\"large\" color=\"success\" />\n </Column>\n</Columns>"
51
+ },
52
+ {
53
+ "title": "Locale",
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
+ }
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- 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.",
58
+ "related": ["DateInput", "DateRangeInput", "Fieldset"],
59
+ "storybook": "https://bestax.io/storybook/?path=/story/form-calendar",
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.",
61
+ "import": "import { Calendar } from '@allxsmith/bestax-bulma';",
62
+ "sourceFile": "bulma-ui/src/form/Calendar.tsx",
63
+ "rootClass": "calendar",
64
+ "parts": [
65
+ {
66
+ "path": "Calendar",
67
+ "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.",
68
+ "component": null,
69
+ "props": [
70
+ {
71
+ "name": "selectionMode",
72
+ "type": "'single' | 'range'",
73
+ "default": "'single'",
74
+ "description": "How a click, Enter or Space picks: `'single'` picks one day, and `'range'` a range's start and then its end. The value's type follows it.",
75
+ "required": false,
76
+ "inherited": true,
77
+ "deprecated": false
78
+ },
79
+ {
80
+ "name": "value",
81
+ "type": "Date | null | DateRangeValue",
82
+ "default": null,
83
+ "description": "The picked day when you hold the state, or `null` for none: a `Date`, or with `selectionMode=\"range\"` a `[start, end]` pair, start first, where `[null, null]` is empty. Picking then only calls `onChange`, and nothing changes until you pass the new value. With neither this nor `defaultValue`, nothing shows as picked. A new value from outside doesn't turn the month on show: hold `month` to show it.",
84
+ "required": false,
85
+ "inherited": true,
86
+ "deprecated": false
87
+ },
88
+ {
89
+ "name": "defaultValue",
90
+ "type": "Date | null | DateRangeValue",
91
+ "default": null,
92
+ "description": "The value to begin with, when the Calendar holds its own state.",
93
+ "required": false,
94
+ "inherited": true,
95
+ "deprecated": false
96
+ },
97
+ {
98
+ "name": "onChange",
99
+ "type": "(value: Date | null) => void | (value: DateRangeValue) => void",
100
+ "default": null,
101
+ "description": "Called with what was picked: the day, typed as `DateInput`'s so one handler fits both, or with `selectionMode=\"range\"` both ends in one call, start first, once the second is picked.",
102
+ "required": false,
103
+ "inherited": true,
104
+ "deprecated": false
105
+ },
106
+ {
107
+ "name": "granularity",
108
+ "type": "'day' | 'month' | 'year'",
109
+ "default": "'day'",
110
+ "description": "`'month'` shows a year's months and `'year'` the year list, and a pick is the first day of that month or year, as on `DateInput`. Only a Calendar that picks one day takes it.",
111
+ "required": false,
112
+ "inherited": true,
113
+ "deprecated": false
114
+ },
115
+ {
116
+ "name": "month",
117
+ "type": "Date",
118
+ "default": null,
119
+ "description": "The month on show when you hold the state: any day in it, read as the month. With `monthsToShow`, the first of the months. Changing it from inside only calls `onMonthChange`, and nothing moves until you pass the new month. At `granularity=\"month\"` it's read as its year, the year the month grid shows, and at `\"year\"` it's the year the list opens on.",
120
+ "required": false,
121
+ "inherited": true,
122
+ "deprecated": false
123
+ },
124
+ {
125
+ "name": "defaultMonth",
126
+ "type": "Date",
127
+ "default": null,
128
+ "description": "The month on show to begin with, when the Calendar holds its own state. Unset, it's the month of `value` (a range's start), or else today's, moved inside `min` and `max`, and with `monthsToShow` the first month of a page they hold whole. On a server render today is the server's, so give this, `month` or a picked `value` there.",
129
+ "required": false,
130
+ "inherited": true,
131
+ "deprecated": false
132
+ },
133
+ {
134
+ "name": "onMonthChange",
135
+ "type": "(month: Date) => void",
136
+ "default": null,
137
+ "description": "Called with the first day of the new month on show, whenever a move takes focus past the months on show: the header's buttons, a key (an arrow, PageUp or PageDown, Home or End) crossing a month's edge, a click on a nearby month's day, or a pick in the year list. Load that month's data from here. At `granularity=\"month\"` it's called as the year on show changes, with 1 January of that year, and at `\"year\"` it isn't called, since the list shows every year.",
138
+ "required": false,
139
+ "inherited": true,
140
+ "deprecated": false
141
+ },
142
+ {
143
+ "name": "monthsToShow",
144
+ "type": "number",
145
+ "default": "1",
146
+ "description": "How many months show side by side, over the day grid. They wrap to a column where the width runs out, one previous and next pair moves them all by this many, and the arrow keys cross from one month into the next. The month grid and the year list show one panel whatever it is.",
147
+ "required": false,
148
+ "inherited": true,
149
+ "deprecated": false
150
+ },
151
+ {
152
+ "name": "dayTemplate",
153
+ "type": "(date: Date, state: CalendarDayState) => React.ReactNode",
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.",
156
+ "required": false,
157
+ "inherited": true,
158
+ "deprecated": false
159
+ },
160
+ {
161
+ "name": "getDayLabel",
162
+ "type": "(date: Date, label: string) => string",
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.",
165
+ "required": false,
166
+ "inherited": true,
167
+ "deprecated": false
168
+ },
169
+ {
170
+ "name": "loading",
171
+ "type": "boolean",
172
+ "default": "false",
173
+ "description": "The month's data is on its way. The grids are `aria-busy` and the day content dims, while the days, their focus and the keys keep working.",
174
+ "required": false,
175
+ "inherited": true,
176
+ "deprecated": false
177
+ },
178
+ {
179
+ "name": "readOnly",
180
+ "type": "boolean",
181
+ "default": "false",
182
+ "description": "Days can be focused and read but not picked, and the grids are `aria-readonly`. For a calendar that only shows things.",
183
+ "required": false,
184
+ "inherited": true,
185
+ "deprecated": false
186
+ },
187
+ {
188
+ "name": "disabled",
189
+ "type": "boolean",
190
+ "default": "false",
191
+ "description": "Nothing can be focused or picked, and the month can't change. A `<Fieldset disabled>` around it does the same.",
192
+ "required": false,
193
+ "inherited": true,
194
+ "deprecated": false
195
+ },
196
+ {
197
+ "name": "isFullwidth",
198
+ "type": "boolean",
199
+ "default": "false",
200
+ "description": "Stretches the grid to the width of its container (Bulma's `is-fullwidth`).",
201
+ "required": false,
202
+ "inherited": true,
203
+ "deprecated": false
204
+ },
205
+ {
206
+ "name": "min",
207
+ "type": "Date",
208
+ "default": null,
209
+ "description": "Earliest day that can be picked. Days before it show disabled. One before year 1, or none, counts as the start of year 1.",
210
+ "required": false,
211
+ "inherited": true,
212
+ "deprecated": false
213
+ },
214
+ {
215
+ "name": "max",
216
+ "type": "Date",
217
+ "default": null,
218
+ "description": "Latest day that can be picked. Days after it show disabled.",
219
+ "required": false,
220
+ "inherited": true,
221
+ "deprecated": false
222
+ },
223
+ {
224
+ "name": "shouldDisableDate",
225
+ "type": "(date: Date) => boolean",
226
+ "default": null,
227
+ "description": "Rules days out, such as weekends. They show disabled and can't be picked.",
228
+ "required": false,
229
+ "inherited": true,
230
+ "deprecated": false
231
+ },
232
+ {
233
+ "name": "unselectableDates",
234
+ "type": "Date[]",
235
+ "default": null,
236
+ "description": "Days that can't be picked, matched by calendar day. Merged with `shouldDisableDate`.",
237
+ "required": false,
238
+ "inherited": true,
239
+ "deprecated": false
240
+ },
241
+ {
242
+ "name": "locale",
243
+ "type": "string",
244
+ "default": null,
245
+ "description": "BCP-47 locale for the day and month names, the digits the days and years are written in, and the days' accessible names. Unset, it's a `LocaleProvider`'s, and with neither, the runtime's, while the days and years keep plain digits. On a server render that is the server's, so the server and the browser can name the month and the weekdays in different languages: give a locale, here or through a `LocaleProvider`, where the two can differ.",
246
+ "required": false,
247
+ "inherited": true,
248
+ "deprecated": false
249
+ },
250
+ {
251
+ "name": "firstDayOfWeek",
252
+ "type": "0 | 1 | 2 | 3 | 4 | 5 | 6",
253
+ "default": "0",
254
+ "description": "Day the week starts on (0 = Sunday). Unset inside a `LocaleProvider`, it's the first day of the week in the Calendar's locale, and elsewhere, or with seven `dayNames` of your own, Sunday.",
255
+ "required": false,
256
+ "inherited": true,
257
+ "deprecated": false
258
+ },
259
+ {
260
+ "name": "dayNames",
261
+ "type": "string[]",
262
+ "default": null,
263
+ "description": "The seven day names, shown exactly as given from the first column, so they start on the day the week does, as on `DateInput`.",
264
+ "required": false,
265
+ "inherited": true,
266
+ "deprecated": false
267
+ },
268
+ {
269
+ "name": "monthNames",
270
+ "type": "string[]",
271
+ "default": null,
272
+ "description": "The twelve month names.",
273
+ "required": false,
274
+ "inherited": true,
275
+ "deprecated": false
276
+ },
277
+ {
278
+ "name": "nearbyMonthDays",
279
+ "type": "boolean",
280
+ "default": "true",
281
+ "description": "Shows the dimmed days of the months before and after, to fill each week.",
282
+ "required": false,
283
+ "inherited": true,
284
+ "deprecated": false
285
+ },
286
+ {
287
+ "name": "color",
288
+ "type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
289
+ "default": null,
290
+ "description": "Bulma color for the picked days. Today and the focus ring take its `-on-scheme` variant. Unset, the `--bulma-dateinput-*` variables decide, and they follow `primary`.",
291
+ "required": false,
292
+ "inherited": true,
293
+ "deprecated": false
294
+ },
295
+ {
296
+ "name": "size",
297
+ "type": "'small' | 'medium' | 'large'",
298
+ "default": null,
299
+ "description": "Size of the cells and their text.",
300
+ "required": false,
301
+ "inherited": true,
302
+ "deprecated": false
303
+ },
304
+ {
305
+ "name": "labels",
306
+ "type": "PickerLabels",
307
+ "default": null,
308
+ "description": "The visible and accessible strings, in your app's language, as on the date pickers.",
309
+ "required": false,
310
+ "inherited": true,
311
+ "deprecated": false
312
+ },
313
+ {
314
+ "name": "textColor",
315
+ "type": "Bulma color | 'inherit' | 'current'",
316
+ "default": null,
317
+ "description": "Text color helper.",
318
+ "required": false,
319
+ "inherited": true,
320
+ "deprecated": false,
321
+ "valuesRef": "helpers/valid-values"
322
+ },
323
+ {
324
+ "name": "bgColor",
325
+ "type": "Bulma color | 'inherit' | 'current'",
326
+ "default": null,
327
+ "description": "Background color helper.",
328
+ "required": false,
329
+ "inherited": true,
330
+ "deprecated": false,
331
+ "valuesRef": "helpers/valid-values"
332
+ },
333
+ {
334
+ "name": "className",
335
+ "type": "string",
336
+ "default": null,
337
+ "description": "Additional CSS classes.",
338
+ "required": false,
339
+ "inherited": true,
340
+ "deprecated": false
341
+ }
342
+ ],
343
+ "extraProps": [
344
+ {
345
+ "name": "ref",
346
+ "type": "React.Ref<HTMLDivElement>",
347
+ "default": null,
348
+ "description": "Forwarded to the root `<div>`.",
349
+ "required": false,
350
+ "inherited": false,
351
+ "deprecated": false
352
+ },
353
+ {
354
+ "name": "aria-label",
355
+ "type": "string",
356
+ "default": null,
357
+ "description": "Names the Calendar, which makes its root a `role=\"group\"`. Each month's grid keeps its own name, its month and year.",
358
+ "required": false,
359
+ "inherited": false,
360
+ "deprecated": false
361
+ },
362
+ {
363
+ "name": "aria-labelledby",
364
+ "type": "string",
365
+ "default": null,
366
+ "description": "The ids of what names the Calendar, such as a heading above it, which makes its root a `role=\"group\"`.",
367
+ "required": false,
368
+ "inherited": false,
369
+ "deprecated": false
370
+ }
371
+ ],
372
+ "catchAll": "All standard <div> attributes and Bulma helper props",
373
+ "types": []
374
+ }
375
+ ],
376
+ "cssVars": [
377
+ {
378
+ "css": "--bulma-calendar-months-gap",
379
+ "sass": "$calendar-months-gap",
380
+ "default": "var(--bulma-block-spacing)",
381
+ "scope": "root"
382
+ },
383
+ {
384
+ "css": "--bulma-calendar-padding",
385
+ "sass": "$calendar-padding",
386
+ "default": "0.75rem",
387
+ "scope": "root"
388
+ },
389
+ {
390
+ "css": "--bulma-calendar-background-color",
391
+ "sass": "$calendar-background-color",
392
+ "default": "var(--bulma-scheme-main)",
393
+ "scope": "root"
394
+ },
395
+ {
396
+ "css": "--bulma-calendar-border-color",
397
+ "sass": "$calendar-border-color",
398
+ "default": "var(--bulma-border)",
399
+ "scope": "root"
400
+ },
401
+ {
402
+ "css": "--bulma-calendar-radius",
403
+ "sass": "$calendar-radius",
404
+ "default": "var(--bulma-radius)",
405
+ "scope": "root"
406
+ }
407
+ ],
408
+ "cssVarsFrom": "DateInput"
409
+ }
@@ -178,7 +178,7 @@
178
178
  "code": "function example() {\n return (\n <Field\n horizontal\n label=\"Date\"\n labelProps={{ htmlFor: 'date-field-control' }}\n >\n <Field.Body>\n <Field>\n <Control iconLeftName=\"calendar-alt\">\n <DateInput id=\"date-field-control\" placeholder=\"YYYY-MM-DD\" />\n </Control>\n </Field>\n </Field.Body>\n </Field>\n );\n}"
179
179
  }
180
180
  ],
181
- "accessibility": "- Trigger uses `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls`.\n- Popover panel has `role=\"dialog\"` with an accessible name. Opening it puts focus on the focused date, month or year.\n- Closing the popover with `Escape` or a pick returns focus to the input, whether the input or the launcher opened it. Under `openOnFocus` that returning focus leaves the popover closed; focusing or clicking the input again opens it. Dismissing without a pick commits nothing: an empty field stays empty, and leaving afterwards commits only what you typed.\n- Calendar uses `role=\"grid\"` with cells as `role=\"gridcell\"`. Its first row holds the weekday names as `role=\"columnheader\"`s, each named by the full weekday in the picker's locale, so a screen reader can name the weekday as focus moves to another column. A server-rendered calendar adds those full names once the page hydrates, and with `dayNames` the columns are named by the names you give instead. Each day keeps its number as its name.\n- Cells expose `aria-selected`, `aria-disabled`, and `aria-current=\"date\"` for today. On a server-rendered page, today's day, month and year get it once the page hydrates, so the reader's clock decides which.\n- A `disabled` inline calendar puts `aria-disabled=\"true\"` on its grid or year list and disables every button in it. A `readOnly` one puts `aria-readonly=\"true\"` on the grid or year list it picks from, and keeps its tab stop and keys.\n- Roving `tabindex` keeps a single grid cell focusable at a time, and focus moves with it, inline as in the popover. When the focused date is disabled, that cell is the nearest enabled day of the month.\n- The month grid is a `role=\"grid\"` of `role=\"row\"`s, labelled by the year in its header. Each month cell carries the full month name as its accessible name, `aria-current=\"date\"` for this month and `aria-disabled` for a month with no selectable day.\n- The year list is a `role=\"listbox\"`, named by the `chooseYear` label where it is the selection surface and by the heading that opens it otherwise. As the selection surface its options take `aria-selected` from the value's year rather than from focus, which roves through the list. When the focused year is disabled, the nearest enabled year takes the tab stop, so `Tab` still reaches the list.\n- The launcher and popover are named \"Choose month\" or \"Choose year\" to match the granularity; override them, and the month grid's \"Previous year\" / \"Next year\" buttons, through `labels` (`chooseMonth`, `chooseYear`, `prevYear`, `nextYear`).\n- Honors `prefers-reduced-motion` (skip popover fade-in).\n- On a right-to-left page the launcher sits at the end of the line and the calendar icon at the start, and the previous-month chevron points right. The month names follow the page.",
181
+ "accessibility": "- Trigger uses `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls`.\n- Popover panel has `role=\"dialog\"` with an accessible name. Opening it puts focus on the focused date, month or year.\n- Closing the popover with `Escape` or a pick returns focus to the input, whether the input or the launcher opened it. Under `openOnFocus` that returning focus leaves the popover closed; focusing or clicking the input again opens it. Dismissing without a pick commits nothing: an empty field stays empty, and leaving afterwards commits only what you typed.\n- Calendar uses `role=\"grid\"` with cells as `role=\"gridcell\"`. Its first row holds the weekday names as `role=\"columnheader\"`s, each named by the full weekday in the picker's locale, so a screen reader can name the weekday as focus moves to another column. A server-rendered calendar adds those full names once the page hydrates, and with `dayNames` the columns are named by the names you give instead. Each day keeps its number as its name.\n- Cells expose `aria-selected`, `aria-disabled`, and `aria-current=\"date\"` for today. On a server-rendered page, today's day, month and year get it once the page hydrates, so the reader's clock decides which.\n- A `disabled` inline calendar puts `aria-disabled=\"true\"` on its grid or year list and disables every button in it. A `readOnly` one puts `aria-readonly=\"true\"` on the grid or year list it picks from, and keeps its tab stop and keys.\n- Roving `tabindex` keeps a single grid cell focusable at a time, and focus moves with it, inline as in the popover. When the focused date is disabled, that cell is the nearest enabled day of the month.\n- Closing the year list opened from the header, with a pick or `Escape`, puts focus back on the grid's tab stop, inline as in the popover.\n- The month grid is a `role=\"grid\"` of `role=\"row\"`s, labelled by the year in its header. Each month cell carries the full month name as its accessible name, `aria-current=\"date\"` for this month and `aria-disabled` for a month with no selectable day.\n- The year list is a `role=\"listbox\"`, named by the `chooseYear` label where it is the selection surface and by the heading that opens it otherwise. As the selection surface its options take `aria-selected` from the value's year rather than from focus, which roves through the list. When the focused year is disabled, the nearest enabled year takes the tab stop, so `Tab` still reaches the list.\n- The launcher and popover are named \"Choose month\" or \"Choose year\" to match the granularity; override them, and the month grid's \"Previous year\" / \"Next year\" buttons, through `labels` (`chooseMonth`, `chooseYear`, `prevYear`, `nextYear`).\n- Honors `prefers-reduced-motion` (skip popover fade-in).\n- On a right-to-left page the launcher sits at the end of the line and the calendar icon at the start, and the previous-month chevron points right. The month names follow the page.",
182
182
  "related": ["DateTimeInput", "Input", "TimeInput"],
183
183
  "storybook": "https://bestax.io/storybook/?path=/story/form-dateinput",
184
184
  "summary": "The `DateInput` component is a form input that opens a popover calendar for date selection.",
@@ -1169,6 +1169,24 @@
1169
1169
  "default": "color-mix(in srgb, var(--bulma-dateinput-cell-selected-bg) 9%, transparent)",
1170
1170
  "scope": "element"
1171
1171
  },
1172
+ {
1173
+ "css": "--bulma-dateinput-cell-content-color",
1174
+ "sass": "$dateinput-cell-content-color",
1175
+ "default": "color-mix(in srgb, var(--bulma-text-weak), var(--bulma-text))",
1176
+ "scope": "element"
1177
+ },
1178
+ {
1179
+ "css": "--bulma-dateinput-cell-content-size",
1180
+ "sass": "$dateinput-cell-content-size",
1181
+ "default": "var(--bulma-size-7)",
1182
+ "scope": "element"
1183
+ },
1184
+ {
1185
+ "css": "--bulma-dateinput-cell-content-loading-opacity",
1186
+ "sass": "$dateinput-cell-content-loading-opacity",
1187
+ "default": "0.4",
1188
+ "scope": "element"
1189
+ },
1172
1190
  {
1173
1191
  "css": "--bulma-picker-popover-z-index",
1174
1192
  "sass": "$picker-popover-z-index",
@@ -46,7 +46,7 @@
46
46
  "code": "<Field label=\"Leave\">\n <Control iconLeftName=\"calendar-alt\">\n <DateRangeInput />\n </Control>\n</Field>"
47
47
  }
48
48
  ],
49
- "accessibility": "- The root is a `role=\"group\"` named by `label` through `aria-labelledby`, since the label names two inputs rather than one. Inside a labeled `Field`, that `Field`'s label names the group the same way, whether the `Field` holds `DateRangeInput` or a `DateRangeInputBase` you composed in a `Control` yourself, `inline` or not. An `aria-label` or `aria-labelledby` you give the group wins over either label.\n- Each input is a `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded` and `aria-controls`, and its own name: \"Start date\" or \"End date\", from the `labels` keys `rangeStart` and `rangeEnd`. The separator between them is hidden from assistive technology.\n- The popover is a `role=\"dialog\"` named \"Choose date range\" (`labels.chooseDateRange`). Opening it puts focus on the calendar's focused day, and closing it returns focus to the input you were last in, or to the start input.\n- The day grid is `aria-multiselectable`, and its days sit in a `role=\"row\"` per week. Every day of the range is `aria-selected`, both ends included. While the end is still being picked, only the start is: the preview is not a selection.\n- A `disabled` inline calendar puts `aria-disabled=\"true\"` on its grid and disables every button in it. A `readOnly` one puts `aria-readonly=\"true\"` there instead, keeps its tab stop and keys, and picks nothing.\n- The start and end days are described as \"Start date\" and \"End date\", so moving onto either says which it is. While the end is still being picked, the day the range would end on is described as \"Choose as end date\" (`labels.rangePreviewEnd`).\n- A polite live region in the calendar states the range in words, such as \"Start date: June 10, 2024, End date: June 13, 2024\", and announces each pick. The grid points at it too, so moving into the grid reads the current range.\n- Everything else is the calendar `DateInput` uses: a roving `tabindex`, weekday column headers named in full (or by your `dayNames`), `aria-disabled` on disabled days and `aria-current=\"date\"` on today.\n- On a right-to-left page the launcher sits at the end of the line and the calendar icon at the start, and the previous-month chevron points right.",
49
+ "accessibility": "- The root is a `role=\"group\"` named by `label` through `aria-labelledby`, since the label names two inputs rather than one. Inside a labeled `Field`, that `Field`'s label names the group the same way, whether the `Field` holds `DateRangeInput` or a `DateRangeInputBase` you composed in a `Control` yourself, `inline` or not. An `aria-label` or `aria-labelledby` you give the group wins over either label.\n- Each input is a `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded` and `aria-controls`, and its own name: \"Start date\" or \"End date\", from the `labels` keys `rangeStart` and `rangeEnd`. The separator between them is hidden from assistive technology.\n- The popover is a `role=\"dialog\"` named \"Choose date range\" (`labels.chooseDateRange`). Opening it puts focus on the calendar's focused day, and closing it returns focus to the input you were last in, or to the start input.\n- The day grid is `aria-multiselectable`, and its days sit in a `role=\"row\"` per week. Every day of the range is `aria-selected`, both ends included. While the end is still being picked, only the start is: the preview is not a selection.\n- A `disabled` inline calendar puts `aria-disabled=\"true\"` on its grid and disables every button in it. A `readOnly` one puts `aria-readonly=\"true\"` there instead, keeps its tab stop and keys, and picks nothing.\n- The start and end days are described as \"Start date\" and \"End date\", so moving onto either says which it is. While the end is still being picked, the day the range would end on is described as \"Choose as end date\" (`labels.rangePreviewEnd`).\n- A polite live region in the calendar states the range in words, such as \"Start date: June 10, 2024, End date: June 13, 2024\", and announces each pick. The grid points at it too, so moving into the grid reads the current range.\n- Everything else is the calendar `DateInput` uses: a roving `tabindex`, weekday column headers named in full (or by your `dayNames`), `aria-disabled` on disabled days, `aria-current=\"date\"` on today, and focus back on the grid as the year list closes.\n- On a right-to-left page the launcher sits at the end of the line and the calendar icon at the start, and the previous-month chevron points right.",
50
50
  "related": ["DateInput", "DateTimeInput", "Field"],
51
51
  "storybook": "https://bestax.io/storybook/?path=/story/form-daterangeinput",
52
52
  "summary": "The `DateRangeInput` component is a form input for a start and end date, picked from one popover calendar or typed into two segmented inputs.",
@@ -1118,6 +1118,24 @@
1118
1118
  "default": "color-mix(in srgb, var(--bulma-dateinput-cell-selected-bg) 9%, transparent)",
1119
1119
  "scope": "element"
1120
1120
  },
1121
+ {
1122
+ "css": "--bulma-dateinput-cell-content-color",
1123
+ "sass": "$dateinput-cell-content-color",
1124
+ "default": "color-mix(in srgb, var(--bulma-text-weak), var(--bulma-text))",
1125
+ "scope": "element"
1126
+ },
1127
+ {
1128
+ "css": "--bulma-dateinput-cell-content-size",
1129
+ "sass": "$dateinput-cell-content-size",
1130
+ "default": "var(--bulma-size-7)",
1131
+ "scope": "element"
1132
+ },
1133
+ {
1134
+ "css": "--bulma-dateinput-cell-content-loading-opacity",
1135
+ "sass": "$dateinput-cell-content-loading-opacity",
1136
+ "default": "0.4",
1137
+ "scope": "element"
1138
+ },
1121
1139
  {
1122
1140
  "css": "--bulma-daterangeinput-gap",
1123
1141
  "sass": "$daterangeinput-gap",
@@ -170,7 +170,7 @@
170
170
  "code": "<DateTimeInput label=\"Input only\" popover={false} defaultValue={new Date()} />"
171
171
  }
172
172
  ],
173
- "accessibility": "- Trigger uses `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls`.\n- Popover panel has `role=\"dialog\"` with an accessible name. Opening it puts focus on the focused date.\n- Closing the popover with `Escape`, the ✓ button or `Enter` on a time wheel returns focus to the input, whether the input or the launcher opened it. Under `openOnFocus` that returning focus leaves the popover closed; focusing or clicking the input again opens it. Closing it commits nothing by itself: an empty field stays empty, and leaving afterwards commits only what you typed, so seconds the display leaves out are kept.\n- Calendar uses `role=\"grid\"`. Its first row holds the weekday names as `role=\"columnheader\"`s, each named by the full weekday in the picker's locale, so a screen reader can name the weekday as focus moves to another column. A server-rendered calendar adds those full names once the page hydrates, and with `dayNames` the columns are named by the names you give instead. Each day keeps its number as its name.\n- Cells expose `aria-selected`, `aria-disabled`, and `aria-current=\"date\"` for today. On a server-rendered page, today gets it once the page hydrates, so the reader's clock decides which day.\n- Roving `tabindex` keeps a single day focusable at a time, and focus moves with it, inline as in the popover. When the focused date is disabled, that cell is the nearest enabled day of the month.\n- A `disabled` inline panel puts `aria-disabled=\"true\"` on its grid and disables every button in it. A `readOnly` one puts `aria-readonly=\"true\"` there instead, and keeps its tab stop and keys.\n- Each time wheel uses `role=\"spinbutton\"` with `aria-valuemin`, `aria-valuemax`, `aria-valuenow`, and `aria-valuetext`, whose text is the number as the wheel shows it, in the picker's locale's digits when it has a locale. The values drawn above and below are click targets hidden from assistive technology, which reads the value from the spinbutton.\n- In a 12-hour picker, AM/PM is one of those wheels, reading `AM` or `PM`, or the picker's locale's words for them when it has a locale, and it widens to fit a longer word. Its accessible name is `AM/PM` unless `labels.ampm` sets another.\n- The footer's confirm button exposes an accessible label (`Done`); the Reset button reverts your edits to the value the popover opened with, or on an `inline` picker, to the one described under [Inline](https://bestax.io/docs/api/form/datetime/datetimeinput#inline).\n- Tab order walks from the calendar to the footer (Reset / ✓), and from the time wheels to the footer while they are open.\n- On a right-to-left page the launcher sits at the end of the line and the calendar icon at the start. The time wheels keep `dir=\"ltr\"`.",
173
+ "accessibility": "- Trigger uses `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls`.\n- Popover panel has `role=\"dialog\"` with an accessible name. Opening it puts focus on the focused date.\n- Closing the popover with `Escape`, the ✓ button or `Enter` on a time wheel returns focus to the input, whether the input or the launcher opened it. Under `openOnFocus` that returning focus leaves the popover closed; focusing or clicking the input again opens it. Closing it commits nothing by itself: an empty field stays empty, and leaving afterwards commits only what you typed, so seconds the display leaves out are kept.\n- Calendar uses `role=\"grid\"`. Its first row holds the weekday names as `role=\"columnheader\"`s, each named by the full weekday in the picker's locale, so a screen reader can name the weekday as focus moves to another column. A server-rendered calendar adds those full names once the page hydrates, and with `dayNames` the columns are named by the names you give instead. Each day keeps its number as its name.\n- Cells expose `aria-selected`, `aria-disabled`, and `aria-current=\"date\"` for today. On a server-rendered page, today gets it once the page hydrates, so the reader's clock decides which day.\n- Roving `tabindex` keeps a single day focusable at a time, and focus moves with it, inline as in the popover. When the focused date is disabled, that cell is the nearest enabled day of the month.\n- Closing the year list opened from the header, with a pick or `Escape`, puts focus back on the grid's tab stop, inline as in the popover.\n- A `disabled` inline panel puts `aria-disabled=\"true\"` on its grid and disables every button in it. A `readOnly` one puts `aria-readonly=\"true\"` there instead, and keeps its tab stop and keys.\n- Each time wheel uses `role=\"spinbutton\"` with `aria-valuemin`, `aria-valuemax`, `aria-valuenow`, and `aria-valuetext`, whose text is the number as the wheel shows it, in the picker's locale's digits when it has a locale. The values drawn above and below are click targets hidden from assistive technology, which reads the value from the spinbutton.\n- In a 12-hour picker, AM/PM is one of those wheels, reading `AM` or `PM`, or the picker's locale's words for them when it has a locale, and it widens to fit a longer word. Its accessible name is `AM/PM` unless `labels.ampm` sets another.\n- The footer's confirm button exposes an accessible label (`Done`); the Reset button reverts your edits to the value the popover opened with, or on an `inline` picker, to the one described under [Inline](https://bestax.io/docs/api/form/datetime/datetimeinput#inline).\n- Tab order walks from the calendar to the footer (Reset / ✓), and from the time wheels to the footer while they are open.\n- On a right-to-left page the launcher sits at the end of the line and the calendar icon at the start. The time wheels keep `dir=\"ltr\"`.",
174
174
  "related": ["DateInput", "Input", "TimeInput"],
175
175
  "storybook": "https://bestax.io/storybook/?path=/story/form-datetimeinput",
176
176
  "summary": "The `DateTimeInput` combines a calendar and a time **wheel spinner** in a single popover — an iOS-style layout.",
@@ -1287,6 +1287,24 @@
1287
1287
  "default": "color-mix(in srgb, var(--bulma-dateinput-cell-selected-bg) 9%, transparent)",
1288
1288
  "scope": "element"
1289
1289
  },
1290
+ {
1291
+ "css": "--bulma-dateinput-cell-content-color",
1292
+ "sass": "$dateinput-cell-content-color",
1293
+ "default": "color-mix(in srgb, var(--bulma-text-weak), var(--bulma-text))",
1294
+ "scope": "element"
1295
+ },
1296
+ {
1297
+ "css": "--bulma-dateinput-cell-content-size",
1298
+ "sass": "$dateinput-cell-content-size",
1299
+ "default": "var(--bulma-size-7)",
1300
+ "scope": "element"
1301
+ },
1302
+ {
1303
+ "css": "--bulma-dateinput-cell-content-loading-opacity",
1304
+ "sass": "$dateinput-cell-content-loading-opacity",
1305
+ "default": "0.4",
1306
+ "scope": "element"
1307
+ },
1290
1308
  {
1291
1309
  "css": "--bulma-datetimeinput-gap",
1292
1310
  "sass": "$datetimeinput-gap",
@@ -40,7 +40,7 @@ instead of hand-writing markup.
40
40
  - Raw `*Base` form exports (`InputBase`, `SelectBase`, `TextAreaBase`, …) are
41
41
  escape-hatch variants of the convenience wrappers above them; see the Form docs.
42
42
 
43
- 137 documented components. Generated from the API docs — every exported
43
+ 138 documented components. Generated from the API docs — every exported
44
44
  component is guaranteed to appear (the generator fails if one lacks an API page).
45
45
 
46
46
  ## Elements
@@ -132,6 +132,7 @@ component is guaranteed to appear (the generator fails if one lacks an API page)
132
132
  ## Form
133
133
 
134
134
  - [Autocomplete](https://bestax.io/docs/api/form/autocomplete) — The `Autocomplete` component provides an input field with dropdown suggestions that filter based on user input.
135
+ - [Calendar](https://bestax.io/docs/api/form/datetime/calendar) — 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.
135
136
  - [Checkbox](https://bestax.io/docs/api/form/checkbox) — The `Checkbox` component provides a Bulma-styled checkbox input.
136
137
  - [CheckboxCard](https://bestax.io/docs/api/form/checkboxcard) — The `CheckboxCard` component is a checkbox drawn as a card, with a title and a description, that toggles wherever you click it.
137
138
  - [Checkboxes](https://bestax.io/docs/api/form/checkboxes) — The `Checkboxes` component wraps multiple `Checkbox` components in a Bulma-styled group.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bestax-form
3
- description: Build forms with @allxsmith/bestax-bulma — Field/Control/Label/Help composition, inputs, selects, checkboxes, radios, switches, and advanced controls (Autocomplete, Combobox, TreeSelect, Slider, Numberinput, PinInput, Rate, Taginput, File, date/time). There is no form/validation library; this skill shows the components and the validate-it-yourself error pattern. Use when building a form, wiring inputs to state, or showing validation/error state.
3
+ description: Build forms with @allxsmith/bestax-bulma — Field/Control/Label/Help composition, inputs, selects, checkboxes, radios, switches, and advanced controls (Autocomplete, Combobox, TreeSelect, Slider, Numberinput, PinInput, Rate, Taginput, File, date/time, Calendar). There is no form/validation library; this skill shows the components and the validate-it-yourself error pattern. Use when building a form, wiring inputs to state, or showing validation/error state.
4
4
  license: MIT
5
5
  ---
6
6
 
@@ -126,6 +126,7 @@ All import from `@allxsmith/bestax-bulma`. Convenience components auto-wrap Fiel
126
126
  | `ColorInput` (+ `ColorInputBase`) / `ColorPicker` | A color as a CSS string, HSL by default: a field with a popover / a panel. |
127
127
  | `DateInput` / `TimeInput` / `DateTimeInput` (+ `*Base`) | Date / time / datetime pickers; month or year via `granularity`. |
128
128
  | `DateRangeInput` (+ `*Base`) | Start and end date: `[Date \| null, Date \| null]`, one calendar. |
129
+ | `Calendar` | Months on the page that pick a day or a range, with content in each day. |
129
130
 
130
131
  (`NumberInput` and `TagInput` also exist as deprecated aliases of `Numberinput`/`Taginput` —
131
132
  same components; prefer the lowercase-second-word spellings.)
@@ -278,6 +278,39 @@ const [stay, setStay] = useState<DateRangeValue>([null, null]);
278
278
  />;
279
279
  ```
280
280
 
281
+ For months on the page that say something about each day (free slots, fares, holidays, an
282
+ agenda), use `Calendar` rather than an `inline` picker with content drawn over it. It's the
283
+ pickers' grid with no `Field`, label or hidden input, so a form that posts a date still uses
284
+ `DateInput inline`. A click picks: `selectionMode` is `'single'` (`Date | null`, as on
285
+ `DateInput`, with `granularity` for a month or a year) or `'range'` (`[start, end]`, as on
286
+ `DateRangeInput`, reported once both ends are picked). `readOnly` reads days without picking
287
+ them and `disabled` stops both. `dayTemplate(date, state)` draws short content under a day's
288
+ number, and because a day's name is its full date, which a screen reader reads instead, pair it
289
+ with `getDayLabel(date, label)` to say the same thing. `month`/`defaultMonth`/`onMonthChange`
290
+ hold the month on show, so load each month's data in `onMonthChange` and set `loading` while it
291
+ arrives. `monthsToShow` sets months side by side, and `isFullwidth` stretches the days to the
292
+ container. Name it with `aria-label` or `aria-labelledby`. On a server-rendered page give it a
293
+ `month`, a `defaultMonth` or a picked `value`, since without one the first month comes from the
294
+ clock, and a `locale` (or a `LocaleProvider` around it), since without one the month and weekday
295
+ names come in the server's language on the server.
296
+
297
+ ```tsx
298
+ const [month, setMonth] = useState(new Date(2026, 10, 1));
299
+ const [day, setDay] = useState<Date | null>(null);
300
+
301
+ <Calendar
302
+ aria-label="Book a slot"
303
+ month={month}
304
+ onMonthChange={setMonth}
305
+ loading={loading}
306
+ value={day}
307
+ onChange={setDay}
308
+ shouldDisableDate={date => slotsLeft(date) === 0}
309
+ dayTemplate={date => slotsLeft(date) > 0 && `${slotsLeft(date)} left`}
310
+ getDayLabel={(date, label) => `${label}, ${slotsLeft(date)} slots left`}
311
+ />;
312
+ ```
313
+
281
314
  ## Color — `form/ColorPicker.tsx`, `form/ColorInput.tsx`
282
315
 
283
316
  `ColorPicker` is a panel: a saturation and brightness square, a hue slider, and the value as text
@@ -193,6 +193,8 @@ Notes:
193
193
  `bulma/sass/elements/delete` and the `delete` partial for the remove buttons and
194
194
  `bulma/sass/form/tools` for its help lines.
195
195
  - `DateInput`/`TimeInput`/`DateTimeInput` also need `picker-popover`.
196
+ - `Calendar` is the pickers' calendar on the page, so it needs `dateinput`, which draws its frame
197
+ and its months too, and no `picker-popover`.
196
198
  - `DateRangeInput` needs `daterangeinput` for its field and `dateinput` for its calendar, and
197
199
  `picker-popover` too.
198
200
  - `CheckboxCard` and `RadioCard` are Bulma cards, so an app using them needs
@@ -396,6 +396,15 @@ cards, use `<Carousel indicatorInside overlayControls={false}>`: plain colors an
396
396
  overlay colors default to light ones (`--bulma-white`) in either color scheme, since they sit on a
397
397
  dark tint.
398
398
 
399
+ ### Calendar
400
+
401
+ Declared on the root, `.calendar`: its frame, and the gap between the months on show. Each month
402
+ is the `DateInput` calendar, `.dateinput`, so the `--bulma-dateinput-*` variables below theme its
403
+ days, and a theme written for the date pickers themes the Calendar too.
404
+
405
+ `--bulma-calendar-background-color`, `--bulma-calendar-border-color`,
406
+ `--bulma-calendar-months-gap`, `--bulma-calendar-padding`, `--bulma-calendar-radius`
407
+
399
408
  ### Checkbox
400
409
 
401
410
  `--bulma-checkbox-active-color`, `--bulma-checkbox-background`, `--bulma-checkbox-border-color`,
@@ -576,7 +585,9 @@ built from `useDataTable`'s props looks the same with no `.data-table` around it
576
585
 
577
586
  ### DateInput
578
587
 
579
- `--bulma-dateinput-cell-color`, `--bulma-dateinput-cell-disabled-color`,
588
+ `--bulma-dateinput-cell-color`, `--bulma-dateinput-cell-content-color`,
589
+ `--bulma-dateinput-cell-content-loading-opacity`, `--bulma-dateinput-cell-content-size`,
590
+ `--bulma-dateinput-cell-disabled-color`,
580
591
  `--bulma-dateinput-cell-hover-bg`, `--bulma-dateinput-cell-other-month-color`,
581
592
  `--bulma-dateinput-cell-radius`, `--bulma-dateinput-cell-range-bg`,
582
593
  `--bulma-dateinput-cell-range-preview-bg`, `--bulma-dateinput-cell-selected-bg`,
@@ -593,6 +604,10 @@ them too. Inside a band, a nearby month's day reads `--bulma-dateinput-cell-colo
593
604
  `--bulma-dateinput-cell-other-month-color`, and today's tint leans a fifth of the way toward
594
605
  `--bulma-text-strong`, so both stay readable on the band's color.
595
606
 
607
+ The three `cell-content` variables style what a `Calendar`'s `dayTemplate` draws under a day's
608
+ number: its color, which a picked day's fill replaces with the picked day's own, its size, and the
609
+ opacity it fades to while the Calendar is `loading`.
610
+
596
611
  ### DateRangeInput
597
612
 
598
613
  The field around the two inputs. Its calendar is the `DateInput` one, with the variables above.
@@ -61,6 +61,7 @@ Shades (`colorShade` / `backgroundColorShade`): `00, 05, 10, … 95, invert, lig
61
61
  | `AppFrame` | — (no `color`: the surfaces are `--bulma-app-frame-header-background` and `--bulma-app-frame-nav-background`) | — (no `size`; `AppFrame.Nav width` sets the column) | `textColor`/`bgColor` on the root; the column's divider is a border, which forced colors keeps; retheme through `--bulma-app-frame-*` |
62
62
  | `Affix` | — (no `color`: it draws nothing of its own) | — | `position` picks the corner; the offsets from the edges and the z-index are `--bulma-affix-*`, and a spacing helper margin nudges one |
63
63
  | `Autocomplete` | `primary \| link \| info \| success \| warning \| danger` | `small \| medium \| large` | the 6 only |
64
+ | `Calendar` | `primary \| link \| info \| success \| warning \| danger` | `small \| medium \| large` | also `isFullwidth`; `color` fills the picked days and a range, as on the date pickers; the frame is `--bulma-calendar-*` |
64
65
  | `Checkbox` | `primary \| link \| info \| success \| warning \| danger` | `small \| normal \| medium \| large` | the 6 only |
65
66
  | `CheckboxCard` | `primary \| link \| info \| success \| warning \| danger` | — | the indicator and a checked edge; the surface is Bulma's `.card`, so `--bulma-card-*` styles it |
66
67
  | `ColorInput` | `primary \| link \| info \| success \| warning \| danger` (the field) | `small \| medium \| large` | the field is Bulma's `.input`; the swatch and launcher are `--bulma-colorinput-*`, the panel `ColorPicker`'s |
package/data/skills.json CHANGED
@@ -21,7 +21,7 @@
21
21
  },
22
22
  {
23
23
  "name": "bestax-form",
24
- "description": "Build forms with @allxsmith/bestax-bulma — Field/Control/Label/Help composition, inputs, selects, checkboxes, radios, switches, and advanced controls (Autocomplete, Combobox, TreeSelect, Slider, Numberinput, PinInput, Rate, Taginput, File, date/time). There is no form/validation library; this skill shows the components and the validate-it-yourself error pattern. Use when building a form, wiring inputs to state, or showing validation/error state.",
24
+ "description": "Build forms with @allxsmith/bestax-bulma — Field/Control/Label/Help composition, inputs, selects, checkboxes, radios, switches, and advanced controls (Autocomplete, Combobox, TreeSelect, Slider, Numberinput, PinInput, Rate, Taginput, File, date/time, Calendar). There is no form/validation library; this skill shows the components and the validate-it-yourself error pattern. Use when building a form, wiring inputs to state, or showing validation/error state.",
25
25
  "promptName": "form",
26
26
  "dir": "bestax-form",
27
27
  "references": [
@@ -1 +1 @@
1
- {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../src/search.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAIjE,MAAM,MAAM,OAAO,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAE7E,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAID;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,GAAG,MAAM,WACI,CAAC;AAE3C;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAI5E;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAI/D;AAkJD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAwE/D,CAAC;AAqBF;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,EACb,KAAK,GAAE,SAAS,MAAM,EAAO,GAC5B,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAyBrB;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd;AA+BD;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,QAAQ,EAAE,MAAM,GACf,YAAY,EAAE,CAsBhB;AA0FD,wBAAgB,SAAS,CACvB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,eAAe,EAAE,EAC7B,MAAM,EAAE,KAAK,EAAE,EACf,KAAK,EAAE,OAAO,EAAE,EAChB,QAAQ,GAAE,SAAS,YAAY,EAAO,GACrC,GAAG,EAAE,CAiMP;AAoBD;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,KAAK,SAAI,GAAG,MAAM,EAAE,CAe3E"}
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../src/search.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAIjE,MAAM,MAAM,OAAO,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAE7E,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAID;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,GAAG,MAAM,WACI,CAAC;AAE3C;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAI5E;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAI/D;AAkJD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAkF/D,CAAC;AAqBF;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,EACb,KAAK,GAAE,SAAS,MAAM,EAAO,GAC5B,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAyBrB;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd;AA+BD;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,QAAQ,EAAE,MAAM,GACf,YAAY,EAAE,CAsBhB;AA0FD,wBAAgB,SAAS,CACvB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,eAAe,EAAE,EAC7B,MAAM,EAAE,KAAK,EAAE,EACf,KAAK,EAAE,OAAO,EAAE,EAChB,QAAQ,GAAE,SAAS,YAAY,EAAO,GACrC,GAAG,EAAE,CAiMP;AAoBD;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,KAAK,SAAI,GAAG,MAAM,EAAE,CAe3E"}
package/dist/search.js CHANGED
@@ -188,7 +188,14 @@ export const ALIASES = {
188
188
  // ported names the one it loads (bestax-migrate's EXTENSION_COMPONENTS).
189
189
  bulmaaccordion: ['Collapses', 'Collapse'],
190
190
  bulmabadge: ['Badge'],
191
- bulmacalendar: ['DateInput', 'DateTimeInput', 'TimeInput', 'DateRangeInput'],
191
+ bulmacalendar: [
192
+ 'DateInput',
193
+ 'DateTimeInput',
194
+ 'TimeInput',
195
+ 'DateRangeInput',
196
+ // Its inline display mode, a calendar on the page.
197
+ 'Calendar',
198
+ ],
192
199
  bulmacarousel: ['Carousel'],
193
200
  bulmacheckradio: ['Checkbox', 'Radio'],
194
201
  bulmacollapsible: ['Collapse', 'Collapses'],
@@ -202,7 +209,8 @@ export const ALIASES = {
202
209
  bulmatoast: ['Toast'],
203
210
  bulmatooltip: ['Tooltip'],
204
211
  buttongroup: ['Buttons'],
205
- calendar: ['DateInput', 'DateTimeInput'],
212
+ // A calendar on the page, and then the pickers that open one.
213
+ calendar: ['Calendar', 'DateInput', 'DateTimeInput'],
206
214
  checkboxgroup: ['Checkboxes'],
207
215
  chip: ['Taginput'],
208
216
  chipinput: ['Taginput'],
@@ -211,6 +219,8 @@ export const ALIASES = {
211
219
  // Mantine, Chakra and Radix Themes call it DataList. HTML's `<datalist>` is
212
220
  // input suggestions, which is Autocomplete.
213
221
  datalist: ['DescriptionList', 'Autocomplete'],
222
+ // MUI's name for it.
223
+ datecalendar: ['Calendar'],
214
224
  datepicker: ['DateInput', 'DateTimeInput'],
215
225
  datetimepicker: ['DateTimeInput'],
216
226
  definitionlist: ['DescriptionList'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bestax-mcp",
3
- "version": "1.18.57",
3
+ "version": "1.18.58",
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.70.0"
45
+ "@allxsmith/bestax-bulma": "^5.71.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/node": "^26.6.6",