bestax-mcp 1.18.57 → 1.18.59
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/bulma-classes.json +1 -0
- package/data/catalog.json +61 -4
- package/data/components/Calendar.json +409 -0
- package/data/components/Carousel.json +6 -6
- package/data/components/DateInput.json +19 -1
- package/data/components/DateRangeInput.json +19 -1
- package/data/components/DateTimeInput.json +19 -1
- package/data/components/Tour.json +679 -3
- package/data/skills/bestax-custom-component/references/component-catalog.md +2 -1
- package/data/skills/bestax-form/SKILL.md +2 -1
- package/data/skills/bestax-form/references/api.md +33 -0
- package/data/skills/bestax-layout-scaffold/SKILL.md +4 -0
- package/data/skills/bestax-migrate/references/bloomer/prop-map.md +15 -13
- package/data/skills/bestax-migrate/references/bloomer/unmappables.md +16 -0
- package/data/skills/bestax-migrate/references/rbx/prop-map.md +1 -1
- package/data/skills/bestax-migrate/references/react-bulma-components/component-map.md +1 -1
- package/data/skills/bestax-migrate/references/react-bulma-components/prop-map.md +1 -0
- package/data/skills/bestax-migrate/references/react-bulma-components/unmappables.md +23 -1
- package/data/skills/bestax-optimize/references/modular-build.md +2 -0
- package/data/skills/bestax-theming/references/css-variables.md +28 -1
- package/data/skills/bestax-theming/references/themeable-components.md +1 -0
- package/data/skills.json +1 -1
- package/dist/search.d.ts.map +1 -1
- package/dist/search.js +12 -2
- package/package.json +2 -2
package/data/bulma-classes.json
CHANGED
|
@@ -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.
|
|
5
|
+
"version": "5.72.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",
|
|
@@ -1580,10 +1592,10 @@
|
|
|
1580
1592
|
"category": "components",
|
|
1581
1593
|
"purpose": "The `Tour` component walks a user through an interface one step at a time, each step a panel pointing at an element with the rest of the page dimmed around it.",
|
|
1582
1594
|
"slug": "components/tour",
|
|
1583
|
-
"import": "import { Tour } from '@allxsmith/bestax-bulma';",
|
|
1595
|
+
"import": "import { Tour, useTour } from '@allxsmith/bestax-bulma';",
|
|
1584
1596
|
"compound": true,
|
|
1585
|
-
"propCount":
|
|
1586
|
-
"exampleCount":
|
|
1597
|
+
"propCount": 85,
|
|
1598
|
+
"exampleCount": 10
|
|
1587
1599
|
},
|
|
1588
1600
|
{
|
|
1589
1601
|
"name": "TreeSelect",
|
|
@@ -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",
|
|
@@ -4041,6 +4073,26 @@
|
|
|
4041
4073
|
"purpose": "Container component for rendering programmatic toasts.",
|
|
4042
4074
|
"standalone": "companion"
|
|
4043
4075
|
},
|
|
4076
|
+
"TourBack": {
|
|
4077
|
+
"component": "Tour",
|
|
4078
|
+
"path": "Tour.Back",
|
|
4079
|
+
"purpose": "A `Button` to the step before, labelled `labels.back` unless it has children."
|
|
4080
|
+
},
|
|
4081
|
+
"TourNext": {
|
|
4082
|
+
"component": "Tour",
|
|
4083
|
+
"path": "Tour.Next",
|
|
4084
|
+
"purpose": "A `Button` to the next step, labelled `labels.next`, or `labels.done` on the last step, where it finishes the tour, unless it has children."
|
|
4085
|
+
},
|
|
4086
|
+
"TourProgress": {
|
|
4087
|
+
"component": "Tour",
|
|
4088
|
+
"path": "Tour.Progress",
|
|
4089
|
+
"purpose": "The progress line, \"Step 2 of 5\" by default, from `labels.progress`."
|
|
4090
|
+
},
|
|
4091
|
+
"TourSkip": {
|
|
4092
|
+
"component": "Tour",
|
|
4093
|
+
"path": "Tour.Skip",
|
|
4094
|
+
"purpose": "A `Button` that ends the tour early, labelled `labels.skip` unless it has children."
|
|
4095
|
+
},
|
|
4044
4096
|
"TourStep": {
|
|
4045
4097
|
"component": "Tour",
|
|
4046
4098
|
"path": "Tour.Step",
|
|
@@ -4116,6 +4168,11 @@
|
|
|
4116
4168
|
"purpose": "`useScrollSpy` is what picks the current section, and it returns its id, or `null`.",
|
|
4117
4169
|
"section": "The useScrollSpy Hook"
|
|
4118
4170
|
},
|
|
4171
|
+
"useTour": {
|
|
4172
|
+
"component": "Tour",
|
|
4173
|
+
"purpose": "`useTour()` hands a component inside a step the current step's index as `value`, the `total`, and Next's, Back's and Skip's actions as `next`, `back` and…",
|
|
4174
|
+
"section": "useTour"
|
|
4175
|
+
},
|
|
4119
4176
|
"validColors": { "component": "Valid value constants", "purpose": "" },
|
|
4120
4177
|
"validSizes": { "component": "Valid value constants", "purpose": "" },
|
|
4121
4178
|
"validViewports": { "component": "Valid value constants", "purpose": "" }
|
|
@@ -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
|
+
}
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"code": "<Carousel repeat={false}>\n <CarouselItem>\n <Hero color=\"danger\" size=\"medium\">\n <Hero.Body textAlign=\"centered\">\n <Paragraph textColor=\"white\">First (no previous)</Paragraph>\n </Hero.Body>\n </Hero>\n </CarouselItem>\n <CarouselItem>\n <Hero color=\"warning\" size=\"medium\">\n <Hero.Body textAlign=\"centered\">\n <Paragraph>Middle slide</Paragraph>\n </Hero.Body>\n </Hero>\n </CarouselItem>\n <CarouselItem>\n <Hero color=\"success\" size=\"medium\">\n <Hero.Body textAlign=\"centered\">\n <Paragraph textColor=\"white\">Last (no next)</Paragraph>\n </Hero.Body>\n </Hero>\n </CarouselItem>\n</Carousel>"
|
|
71
71
|
}
|
|
72
72
|
],
|
|
73
|
-
"accessibility": "- Uses `role=\"region\"` with `aria-roledescription=\"carousel\"`\n- Each item is a `group` with `aria-roledescription=\"slide\"`, named for its place, such as \"2 of 6\". An item's own `aria-label` or `aria-labelledby` takes the place of that name\n- Items out of view are `aria-hidden` and `inert`, so screen readers skip them and nothing in them takes focus. With several in view, every item in view is exposed. The copies a loop adds at each end of the track follow the same rule, so where the view runs past the last item, the copies on screen are the ones exposed\n- The track is a polite live region, so what comes into view is announced, except while autoplay is moving it (`aria-live=\"off\"`)\n- Autoplay waits while the pointer is over the carousel (with `pauseOnHover`) and while focus is inside one of its items, so an item being read or used never moves out of view\n- When something else takes the item holding focus out of view (a swipe, a change of width that changes the count, a new controlled `value`, or the item's removal), focus moves to the first item in view rather than dropping to the page\n- Navigation arrows have `aria-label` for screen readers\n- Indicators use `role=\"tablist\"` and `role=\"tab\"` semantics, one for each position a step can land on\n- The indicators
|
|
73
|
+
"accessibility": "- Uses `role=\"region\"` with `aria-roledescription=\"carousel\"`\n- Each item is a `group` with `aria-roledescription=\"slide\"`, named for its place, such as \"2 of 6\". An item's own `aria-label` or `aria-labelledby` takes the place of that name\n- Items out of view are `aria-hidden` and `inert`, so screen readers skip them and nothing in them takes focus. With several in view, every item in view is exposed. The copies a loop adds at each end of the track follow the same rule, so where the view runs past the last item, the copies on screen are the ones exposed\n- The track is a polite live region, so what comes into view is announced, except while autoplay is moving it (`aria-live=\"off\"`)\n- Autoplay waits while the pointer is over the carousel (with `pauseOnHover`) and while focus is inside one of its items, so an item being read or used never moves out of view\n- When something else takes the item holding focus out of view (a swipe, a change of width that changes the count, a new controlled `value`, or the item's removal), focus moves to the first item in view rather than dropping to the page\n- Navigation arrows have `aria-label` for screen readers\n- Indicators use `role=\"tablist\"` and `role=\"tab\"` semantics, one for each position a step can land on\n- The indicators take Bulma's look: a resting dot, line or bar is filled in the border color and the current one in the primary color, and a circle is a ring in the border color, filled when current. A resting one falls short of the 3:1 against the page that WCAG asks of a graphic. For that, set `--bulma-carousel-indicator-border-color` to a color such as `var(--bulma-text-weak)` on a class you pass through `className`, with the carousel's class in the selector (`.carousel.my-carousel`, `.bestax-carousel.my-carousel` under the prefixed flavor) so it wins whatever order the stylesheets load in. It draws a ring at each resting indicator's edge, circles included, and leaves the current one, and the dots, lines and bars in the overlay look, as they are. Forced colors (Windows' contrast themes) replaces the fills, so there each indicator shows its ring in the buttons' text color and the current one is filled in it.\n- The Left and Right arrow keys move the carousel while focus is on its arrows or indicators. Inside an item they're left to the item's content, such as a field or a slider\n- Previous/Next buttons are properly disabled at boundaries when not repeating\n- On a right-to-left page the slides run from right to left. The previous arrow sits on the right, at the start of the line, and the next arrow on the left, and the built-in chevrons flip to match. An `iconPrev` or `iconNext` is drawn as you give it. <kbd>ArrowLeft</kbd> and a swipe to the right go to the next slide, the way the track moves.",
|
|
74
74
|
"related": ["Modal", "Tabs"],
|
|
75
75
|
"storybook": "https://bestax.io/storybook/?path=/story/components-carousel",
|
|
76
76
|
"summary": "The `Carousel` component provides an image/content slider with navigation arrows and indicators.",
|
|
@@ -528,31 +528,31 @@
|
|
|
528
528
|
{
|
|
529
529
|
"css": "--bulma-carousel-indicator-background",
|
|
530
530
|
"sass": "$carousel-indicator-background",
|
|
531
|
-
"default": "
|
|
531
|
+
"default": "var(--bulma-border)",
|
|
532
532
|
"scope": "root"
|
|
533
533
|
},
|
|
534
534
|
{
|
|
535
535
|
"css": "--bulma-carousel-indicator-background-hover",
|
|
536
536
|
"sass": "$carousel-indicator-background-hover",
|
|
537
|
-
"default": "
|
|
537
|
+
"default": "var(--bulma-border-hover)",
|
|
538
538
|
"scope": "root"
|
|
539
539
|
},
|
|
540
540
|
{
|
|
541
541
|
"css": "--bulma-carousel-indicator-background-active",
|
|
542
542
|
"sass": "$carousel-indicator-background-active",
|
|
543
|
-
"default": "
|
|
543
|
+
"default": "var(--bulma-primary)",
|
|
544
544
|
"scope": "root"
|
|
545
545
|
},
|
|
546
546
|
{
|
|
547
547
|
"css": "--bulma-carousel-indicator-border-color",
|
|
548
548
|
"sass": "$carousel-indicator-border-color",
|
|
549
|
-
"default": "
|
|
549
|
+
"default": "transparent",
|
|
550
550
|
"scope": "root"
|
|
551
551
|
},
|
|
552
552
|
{
|
|
553
553
|
"css": "--bulma-carousel-indicator-border-color-hover",
|
|
554
554
|
"sass": "$carousel-indicator-border-color-hover",
|
|
555
|
-
"default": "var(--bulma-
|
|
555
|
+
"default": "var(--bulma-carousel-indicator-border-color)",
|
|
556
556
|
"scope": "root"
|
|
557
557
|
},
|
|
558
558
|
{
|
|
@@ -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",
|