bestax-mcp 1.18.59 → 1.18.60

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.
Files changed (39) hide show
  1. package/data/bulma-classes.json +1 -0
  2. package/data/catalog.json +71 -8
  3. package/data/components/AppFrame.json +85 -3
  4. package/data/components/Button.json +2 -2
  5. package/data/components/Buttons.json +3 -3
  6. package/data/components/Cascader.json +667 -0
  7. package/data/components/ColorInput.json +6 -0
  8. package/data/components/Combobox.json +1 -0
  9. package/data/components/CopyButton.json +1 -1
  10. package/data/components/DateInput.json +6 -0
  11. package/data/components/DateRangeInput.json +35 -1
  12. package/data/components/DateTimeInput.json +6 -0
  13. package/data/components/Field.json +1 -1
  14. package/data/components/FloatButton.json +2 -2
  15. package/data/components/IconButton.json +1 -1
  16. package/data/components/Navbar.json +3 -3
  17. package/data/components/Notification.json +2 -2
  18. package/data/components/Panel.json +2 -2
  19. package/data/components/Popover.json +1 -1
  20. package/data/components/Tag.json +2 -2
  21. package/data/components/Tags.json +1 -1
  22. package/data/components/Theme.json +1 -1
  23. package/data/components/TimeInput.json +6 -0
  24. package/data/components/Tour.json +64 -15
  25. package/data/components/TreeSelect.json +7 -1
  26. package/data/components/TreeView.json +1 -0
  27. package/data/components/useBulmaClasses.json +2 -2
  28. package/data/skills/bestax-custom-component/references/component-catalog.md +2 -1
  29. package/data/skills/bestax-form/SKILL.md +7 -2
  30. package/data/skills/bestax-form/references/api.md +13 -11
  31. package/data/skills/bestax-layout-scaffold/SKILL.md +3 -1
  32. package/data/skills/bestax-layout-scaffold/references/layout-components.md +9 -9
  33. package/data/skills/bestax-migrate/references/css-migration.md +1 -1
  34. package/data/skills/bestax-optimize/references/modular-build.md +38 -17
  35. package/data/skills/bestax-theming/SKILL.md +2 -2
  36. package/data/skills/bestax-theming/references/css-variables.md +106 -31
  37. package/data/skills/bestax-theming/references/themeable-components.md +75 -74
  38. package/data/skills.json +1 -1
  39. package/package.json +2 -2
@@ -13110,6 +13110,7 @@
13110
13110
  "badge": "Badge",
13111
13111
  "calendar": "Calendar",
13112
13112
  "carousel": "Carousel",
13113
+ "cascader": "Cascader",
13113
13114
  "styled-checkbox": "Checkbox",
13114
13115
  "checkbox-card": "CheckboxCard",
13115
13116
  "collapse": "Collapse",
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.72.0"
5
+ "version": "5.73.0"
6
6
  },
7
7
  "docsBase": "https://bestax.io/docs",
8
8
  "categories": [
@@ -104,6 +104,7 @@
104
104
  "components": [
105
105
  "Autocomplete",
106
106
  "Calendar",
107
+ "Cascader",
107
108
  "Checkbox",
108
109
  "CheckboxCard",
109
110
  "Checkboxes",
@@ -197,8 +198,8 @@
197
198
  "slug": "layout/appframe",
198
199
  "import": "import { AppFrame, useAppFrame } from '@allxsmith/bestax-bulma';",
199
200
  "compound": true,
200
- "propCount": 36,
201
- "exampleCount": 9
201
+ "propCount": 42,
202
+ "exampleCount": 10
202
203
  },
203
204
  {
204
205
  "name": "Autocomplete",
@@ -332,6 +333,17 @@
332
333
  "propCount": 31,
333
334
  "exampleCount": 16
334
335
  },
336
+ {
337
+ "name": "Cascader",
338
+ "kind": "component",
339
+ "category": "form",
340
+ "purpose": "The `Cascader` component is a form field whose value sits at the end of a path, such as a city picked by country, then region, then city: it opens a panel of…",
341
+ "slug": "form/cascader",
342
+ "import": "import { Cascader } from '@allxsmith/bestax-bulma';",
343
+ "compound": false,
344
+ "propCount": 43,
345
+ "exampleCount": 9
346
+ },
335
347
  {
336
348
  "name": "Cell",
337
349
  "kind": "component",
@@ -604,8 +616,8 @@
604
616
  "slug": "form/datetime/daterangeinput",
605
617
  "import": "import { DateRangeInput } from '@allxsmith/bestax-bulma';",
606
618
  "compound": false,
607
- "propCount": 59,
608
- "exampleCount": 10
619
+ "propCount": 60,
620
+ "exampleCount": 11
609
621
  },
610
622
  {
611
623
  "name": "DateTimeInput",
@@ -1594,8 +1606,8 @@
1594
1606
  "slug": "components/tour",
1595
1607
  "import": "import { Tour, useTour } from '@allxsmith/bestax-bulma';",
1596
1608
  "compound": true,
1597
- "propCount": 85,
1598
- "exampleCount": 10
1609
+ "propCount": 86,
1610
+ "exampleCount": 11
1599
1611
  },
1600
1612
  {
1601
1613
  "name": "TreeSelect",
@@ -1706,8 +1718,12 @@
1706
1718
  "--bulma-app-frame-border-color": ["AppFrame"],
1707
1719
  "--bulma-app-frame-border-width": ["AppFrame"],
1708
1720
  "--bulma-app-frame-drawer-shadow": ["AppFrame"],
1721
+ "--bulma-app-frame-handle-size": ["AppFrame"],
1722
+ "--bulma-app-frame-handle-size-coarse": ["AppFrame"],
1709
1723
  "--bulma-app-frame-header-background": ["AppFrame"],
1710
1724
  "--bulma-app-frame-header-height": ["AppFrame"],
1725
+ "--bulma-app-frame-line-active-color": ["AppFrame"],
1726
+ "--bulma-app-frame-line-active-size": ["AppFrame"],
1711
1727
  "--bulma-app-frame-nav-background": ["AppFrame"],
1712
1728
  "--bulma-app-frame-nav-padding": ["AppFrame"],
1713
1729
  "--bulma-app-frame-nav-rail-width": ["AppFrame"],
@@ -1824,7 +1840,7 @@
1824
1840
  "--bulma-button-weight": ["Button"],
1825
1841
  "--bulma-calendar-background-color": ["Calendar"],
1826
1842
  "--bulma-calendar-border-color": ["Calendar"],
1827
- "--bulma-calendar-months-gap": ["Calendar"],
1843
+ "--bulma-calendar-months-gap": ["Calendar", "DateRangeInput"],
1828
1844
  "--bulma-calendar-padding": ["Calendar"],
1829
1845
  "--bulma-calendar-radius": ["Calendar"],
1830
1846
  "--bulma-card-background-color": ["Card"],
@@ -1890,6 +1906,30 @@
1890
1906
  "--bulma-carousel-overlay-indicator-background-active": ["Carousel"],
1891
1907
  "--bulma-carousel-overlay-indicator-background-hover": ["Carousel"],
1892
1908
  "--bulma-carousel-transition-duration": ["Carousel"],
1909
+ "--bulma-cascader-checked-background": ["Cascader"],
1910
+ "--bulma-cascader-checked-color": ["Cascader"],
1911
+ "--bulma-cascader-chevron-color": ["Cascader"],
1912
+ "--bulma-cascader-chevron-focus-color": ["Cascader"],
1913
+ "--bulma-cascader-chevron-hover-color": ["Cascader"],
1914
+ "--bulma-cascader-chevron-width": ["Cascader"],
1915
+ "--bulma-cascader-chevron-z-index": ["Cascader"],
1916
+ "--bulma-cascader-clear-z-index": ["Cascader"],
1917
+ "--bulma-cascader-column-border-color": ["Cascader"],
1918
+ "--bulma-cascader-column-border-width": ["Cascader"],
1919
+ "--bulma-cascader-column-inset": ["Cascader"],
1920
+ "--bulma-cascader-column-max-height": ["Cascader"],
1921
+ "--bulma-cascader-column-width": ["Cascader"],
1922
+ "--bulma-cascader-disabled-color": ["Cascader"],
1923
+ "--bulma-cascader-highlight-background": ["Cascader"],
1924
+ "--bulma-cascader-item-chevron-size": ["Cascader"],
1925
+ "--bulma-cascader-item-color": ["Cascader"],
1926
+ "--bulma-cascader-item-gap": ["Cascader"],
1927
+ "--bulma-cascader-item-hover-background": ["Cascader"],
1928
+ "--bulma-cascader-item-padding-x": ["Cascader"],
1929
+ "--bulma-cascader-item-padding-y": ["Cascader"],
1930
+ "--bulma-cascader-item-size": ["Cascader"],
1931
+ "--bulma-cascader-max-width": ["Cascader"],
1932
+ "--bulma-cascader-search-gap": ["Cascader"],
1893
1933
  "--bulma-checkbox-active-color": ["Checkbox"],
1894
1934
  "--bulma-checkbox-background": ["Checkbox"],
1895
1935
  "--bulma-checkbox-border-color": ["Checkbox"],
@@ -2921,6 +2961,7 @@
2921
2961
  "--bulma-password-input-toggle-text-width": ["PasswordInput"],
2922
2962
  "--bulma-password-input-toggle-width": ["PasswordInput"],
2923
2963
  "--bulma-picker-popover-animation-duration": [
2964
+ "Cascader",
2924
2965
  "ColorInput",
2925
2966
  "DateInput",
2926
2967
  "DateRangeInput",
@@ -2929,6 +2970,7 @@
2929
2970
  "TreeSelect"
2930
2971
  ],
2931
2972
  "--bulma-picker-popover-background": [
2973
+ "Cascader",
2932
2974
  "ColorInput",
2933
2975
  "DateInput",
2934
2976
  "DateRangeInput",
@@ -2937,6 +2979,16 @@
2937
2979
  "TreeSelect"
2938
2980
  ],
2939
2981
  "--bulma-picker-popover-border-color": [
2982
+ "Cascader",
2983
+ "ColorInput",
2984
+ "DateInput",
2985
+ "DateRangeInput",
2986
+ "DateTimeInput",
2987
+ "TimeInput",
2988
+ "TreeSelect"
2989
+ ],
2990
+ "--bulma-picker-popover-months-max-width": [
2991
+ "Cascader",
2940
2992
  "ColorInput",
2941
2993
  "DateInput",
2942
2994
  "DateRangeInput",
@@ -2945,6 +2997,7 @@
2945
2997
  "TreeSelect"
2946
2998
  ],
2947
2999
  "--bulma-picker-popover-offset": [
3000
+ "Cascader",
2948
3001
  "ColorInput",
2949
3002
  "DateInput",
2950
3003
  "DateRangeInput",
@@ -2953,6 +3006,7 @@
2953
3006
  "TreeSelect"
2954
3007
  ],
2955
3008
  "--bulma-picker-popover-padding": [
3009
+ "Cascader",
2956
3010
  "ColorInput",
2957
3011
  "DateInput",
2958
3012
  "DateRangeInput",
@@ -2961,6 +3015,7 @@
2961
3015
  "TreeSelect"
2962
3016
  ],
2963
3017
  "--bulma-picker-popover-radius": [
3018
+ "Cascader",
2964
3019
  "ColorInput",
2965
3020
  "DateInput",
2966
3021
  "DateRangeInput",
@@ -2969,6 +3024,7 @@
2969
3024
  "TreeSelect"
2970
3025
  ],
2971
3026
  "--bulma-picker-popover-shadow": [
3027
+ "Cascader",
2972
3028
  "ColorInput",
2973
3029
  "DateInput",
2974
3030
  "DateRangeInput",
@@ -2977,6 +3033,7 @@
2977
3033
  "TreeSelect"
2978
3034
  ],
2979
3035
  "--bulma-picker-popover-z-index": [
3036
+ "Cascader",
2980
3037
  "ColorInput",
2981
3038
  "DateInput",
2982
3039
  "DateRangeInput",
@@ -3350,6 +3407,12 @@
3350
3407
  "--bulma-tooltip-padding": ["Tooltip"],
3351
3408
  "--bulma-tooltip-radius": ["Tooltip"],
3352
3409
  "--bulma-tooltip-z-index": ["Tooltip"],
3410
+ "--bulma-tour-beacon-animation-duration": ["Tour"],
3411
+ "--bulma-tour-beacon-color": ["Tour"],
3412
+ "--bulma-tour-beacon-ring-color": ["Tour"],
3413
+ "--bulma-tour-beacon-ring-width": ["Tour"],
3414
+ "--bulma-tour-beacon-size": ["Tour"],
3415
+ "--bulma-tour-beacon-z-index": ["Tour"],
3353
3416
  "--bulma-tour-overlay-background": ["Tour"],
3354
3417
  "--bulma-tour-progress-color": ["Tour"],
3355
3418
  "--bulma-tour-spotlight-padding": ["Tour"],
@@ -21,6 +21,10 @@
21
21
  "title": "The Icon Rail",
22
22
  "code": "function example() {\n const [collapsed, setCollapsed] = useState(true);\n return (\n <AppFrame navCollapsed={collapsed} onNavCollapsedChange={setCollapsed}>\n <AppFrame.Header>\n <Navbar aria-label=\"Site\">\n <Navbar.Brand>\n <Navbar.Item href=\"#\">\n <strong>Acme</strong>\n </Navbar.Item>\n <AppFrame.Burger />\n </Navbar.Brand>\n </Navbar>\n </AppFrame.Header>\n <AppFrame.Nav rail>\n <Menu>\n <Menu.List>\n <Menu.Item href=\"#\" icon={<Icon name=\"house\" />} active>\n Dashboard\n </Menu.Item>\n <Menu.Item href=\"#\" icon={<Icon name=\"box\" />}>\n Orders\n </Menu.Item>\n </Menu.List>\n <Menu.Section label=\"Reports\" icon={<Icon name=\"chart-line\" />}>\n <Menu.List>\n <Menu.Item href=\"#\">Sales</Menu.Item>\n <Menu.Item href=\"#\">Returns</Menu.Item>\n </Menu.List>\n </Menu.Section>\n </Menu>\n </AppFrame.Nav>\n <AppFrame.Main>\n <Section>\n <Paragraph>\n The column is {collapsed ? 'a rail of icons' : 'expanded'}.\n </Paragraph>\n </Section>\n </AppFrame.Main>\n </AppFrame>\n );\n}"
23
23
  },
24
+ {
25
+ "title": "Resizing the Column",
26
+ "code": "function example() {\n const [width, setWidth] = useState(256);\n return (\n <AppFrame>\n <AppFrame.Header>\n <Navbar aria-label=\"Site\">\n <Navbar.Brand>\n <Navbar.Item href=\"#\">\n <strong>Acme</strong>\n </Navbar.Item>\n <AppFrame.Burger />\n </Navbar.Brand>\n </Navbar>\n </AppFrame.Header>\n <AppFrame.Nav resizable width={width} onWidthChange={setWidth}>\n <Menu>\n <Menu.List>\n <Menu.Item href=\"#\" active>\n Dashboard\n </Menu.Item>\n <Menu.Item href=\"#\">Orders</Menu.Item>\n </Menu.List>\n </Menu>\n </AppFrame.Nav>\n <AppFrame.Main>\n <Section>\n <Paragraph>The column is {width} pixels wide.</Paragraph>\n </Section>\n </AppFrame.Main>\n </AppFrame>\n );\n}"
27
+ },
24
28
  {
25
29
  "title": "Keeping the State",
26
30
  "code": "// On the server, read the cookie into `initialCollapsed`, then:\nconst [collapsed, setCollapsed] = useState(initialCollapsed);\n\n<AppFrame\n navCollapsed={collapsed}\n onNavCollapsedChange={next => {\n setCollapsed(next);\n document.cookie = `nav-collapsed=${next}; path=/; max-age=31536000`;\n }}\n>\n …\n</AppFrame>;"
@@ -42,7 +46,7 @@
42
46
  "code": "<AppFrame>\n <AppFrameHeader>\n <Navbar aria-label=\"Site\">\n <Navbar.Brand>\n <Navbar.Item href=\"#\">\n <strong>Acme</strong>\n </Navbar.Item>\n <AppFrameBurger />\n </Navbar.Brand>\n </Navbar>\n </AppFrameHeader>\n <AppFrameNav>\n <Menu>\n <Menu.List>\n <Menu.Item href=\"#\" active>\n Dashboard\n </Menu.Item>\n </Menu.List>\n </Menu>\n </AppFrameNav>\n <AppFrame.Main>\n <Section>\n <Paragraph>\n AppFrameNav and AppFrame.Nav are the same component.\n </Paragraph>\n </Section>\n </AppFrame.Main>\n</AppFrame>"
43
47
  }
44
48
  ],
45
- "accessibility": "- **Landmarks:** the header, the nav, the page and the footer are the page's banner, navigation,\n main and contentinfo landmarks, and the aside a complementary one, as long as the frame sits at\n the top of the page. A development build warns when it sits inside a `main` or a sectioning\n element, where the header and footer stop being landmarks.\n- **Names:** the nav is named \"Sections\" (`labels.nav`), since the `Navbar` in the header names\n its own navigation. The name leaves out the word \"navigation\", which the role says. A `Menu`\n in the nav keeps its `<aside>`, which inside a `<nav>` is a plain element unless it's named.\n- **Skip link:** the first thing on the page, hidden until it has focus, moves focus to the page's\n `<main>` (WCAG 2.4.1).\n- **Sticky header:** `scroll-padding-top` on the document keeps an in-page link's target and a\n focused element below the header (WCAG 2.4.11, technique C43).\n- **The burger** is a button named \"menu\" (`labels.burger`), with `aria-expanded` saying whether\n the drawer is open, or from the breakpoint up whether the column is shown, and `aria-controls`\n naming the nav. The server can't know the width, so until the page hydrates the burger has no\n `aria-expanded` and shows its bars, and the first paint after hydration has both right.\n- **The drawer** is modal by default: focus moves to its close button, Tab and Shift+Tab stay\n inside, the page doesn't scroll, the rest of the frame is inert, and Escape closes it while it's\n the topmost overlay, so a `Modal` opened from it closes first. Escape, the close button and a\n click on the backdrop hand focus back to the burger, and so does a press outside the drawer\n without `overlay`, before the press moves it to what was pressed. The close button is there for\n a touch screen reader user, who has no Escape key. It stays a navigation landmark rather than a\n dialog: the inert frame is what keeps assistive technology inside it, so keep the page's content\n inside the frame's parts.\n- **A closed drawer and a collapsed column** are `visibility: hidden`, so their links are out of\n the Tab order and the accessibility tree before any script runs.\n- **The icon rail** keeps every name: labels are visually hidden, never removed, and icons are\n `aria-hidden`. Each tooltip adds no `aria-describedby` and is `aria-hidden` itself, so the name\n isn't read twice. It shows on keyboard focus as well as hover, stays while the pointer moves\n onto it, and Escape hides it (WCAG 1.4.13). A section's button in the rail reports\n `aria-expanded=\"false\"`, since the rail hides its list, and pressing it expands the column and\n opens the section.\n- **Reflow:** at 320 pixels wide the nav is a drawer, so nothing scrolls sideways (WCAG 1.4.10).\n- **Motion:** the drawer's slide, the backdrop's fade and the column's collapse don't play under\n `prefers-reduced-motion: reduce`.\n- **Forced colors:** the column keeps its divider, the drawer gets a border on its open edge in\n place of its shadow, and the burger keeps its bars, as a [`Navbar`](https://bestax.io/docs/api/components/navbar)'s\n does.\n- **Right to left:** the column sits on the right, and the drawer slides in from the right.",
49
+ "accessibility": "- **Landmarks:** the header, the nav, the page and the footer are the page's banner, navigation,\n main and contentinfo landmarks, and the aside a complementary one, as long as the frame sits at\n the top of the page. A development build warns when it sits inside a `main` or a sectioning\n element, where the header and footer stop being landmarks.\n- **Names:** the nav is named \"Sections\" (`labels.nav`), since the `Navbar` in the header names\n its own navigation. The name leaves out the word \"navigation\", which the role says. A `Menu`\n in the nav keeps its `<aside>`, which inside a `<nav>` is a plain element unless it's named.\n- **Skip link:** the first thing on the page, hidden until it has focus, moves focus to the page's\n `<main>` (WCAG 2.4.1).\n- **Sticky header:** `scroll-padding-top` on the document keeps an in-page link's target and a\n focused element below the header (WCAG 2.4.11, technique C43).\n- **The burger** is a button named \"menu\" (`labels.burger`), with `aria-expanded` saying whether\n the drawer is open, or from the breakpoint up whether the column is shown, and `aria-controls`\n naming the nav. The server can't know the width, so until the page hydrates the burger has no\n `aria-expanded` and shows its bars, and the first paint after hydration has both right.\n- **The drawer** is modal by default: focus moves to its close button, Tab and Shift+Tab stay\n inside, the page doesn't scroll, the rest of the frame is inert, and Escape closes it while it's\n the topmost overlay, so a `Modal` opened from it closes first. Escape, the close button and a\n click on the backdrop hand focus back to the burger, and so does a press outside the drawer\n without `overlay`, before the press moves it to what was pressed. The close button is there for\n a touch screen reader user, who has no Escape key. It stays a navigation landmark rather than a\n dialog: the inert frame is what keeps assistive technology inside it, so keep the page's content\n inside the frame's parts.\n- **A closed drawer and a collapsed column** are `visibility: hidden`, so their links are out of\n the Tab order and the accessibility tree before any script runs.\n- **The resize handle** is a focusable `separator` with `aria-valuenow`, `aria-valuemin` and\n `aria-valuemax` in pixels, `aria-controls` naming the nav, and the nav's name, so it's read as\n \"Sections, separator, 256\". Collapsed, its value is the rail's width, or 0 without a rail, which\n is where its range starts. Its keys do everything a drag does (WCAG 2.1.1). As with Splitter's\n handles, a pointer can't set a width without dragging; the column works at its default width,\n and the burger collapses and expands it with a click. Its strip is 24 pixels wide for a coarse\n pointer (WCAG 2.5.8), and its line, on hover, focus and drag, is a border, which forced colors\n keeps in the system's highlight.\n- **The icon rail** keeps every name: labels are visually hidden, never removed, and icons are\n `aria-hidden`. Each tooltip adds no `aria-describedby` and is `aria-hidden` itself, so the name\n isn't read twice. It shows on keyboard focus as well as hover, stays while the pointer moves\n onto it, and Escape hides it (WCAG 1.4.13). A section's button in the rail reports\n `aria-expanded=\"false\"`, since the rail hides its list, and pressing it expands the column and\n opens the section.\n- **Reflow:** at 320 pixels wide the nav is a drawer, so nothing scrolls sideways (WCAG 1.4.10).\n- **Motion:** the drawer's slide, the backdrop's fade and the column's collapse don't play under\n `prefers-reduced-motion: reduce`.\n- **Forced colors:** the column keeps its divider, the drawer gets a border on its open edge in\n place of its shadow, and the burger keeps its bars, as a [`Navbar`](https://bestax.io/docs/api/components/navbar)'s\n does.\n- **Right to left:** the column sits on the right, and the drawer slides in from the right.",
46
50
  "related": [
47
51
  "Footer",
48
52
  "Menu",
@@ -129,7 +133,7 @@
129
133
  "name": "onNavCollapsedChange",
130
134
  "type": "(collapsed: boolean) => void",
131
135
  "default": null,
132
- "description": "Called with the state asked for: by the burger, `useAppFrame()`, or a `Menu.Section`'s button in the collapsed rail, which expands it.",
136
+ "description": "Called with the state asked for: by the burger, `useAppFrame()`, a `Menu.Section`'s button in the collapsed rail, which expands it, or a `resizable` nav's handle: a drag that collapses the column or opens it again (see `AppFrame.Nav`'s `resizable`), Enter, and a double click, which expands it.",
133
137
  "required": false,
134
138
  "inherited": false,
135
139
  "deprecated": false
@@ -252,7 +256,7 @@
252
256
  "name": "width",
253
257
  "type": "number | string",
254
258
  "default": null,
255
- "description": "The column's width, and the drawer's up to the window's width less a strip of backdrop. A number is pixels, and a string any CSS length. It writes `--bulma-app-frame-nav-width`, 16rem by default.",
259
+ "description": "The column's width, and the drawer's up to the window's width less a strip of backdrop. A number is pixels, and a string any CSS length. It writes `--bulma-app-frame-nav-width`, 16rem by default. With `resizable`, it's the controlled width: update it from `onWidthChange`. It then takes pixels, or `px` or `rem`, which the handle can step from; the handle reads anything else as the stylesheet's width, and a development build warns about it.",
256
260
  "required": false,
257
261
  "inherited": false,
258
262
  "deprecated": false
@@ -302,6 +306,60 @@
302
306
  "inherited": false,
303
307
  "deprecated": false
304
308
  },
309
+ {
310
+ "name": "resizable",
311
+ "type": "boolean",
312
+ "default": "false",
313
+ "description": "Puts a handle on the column's inline-end edge, from the breakpoint up, that drags or keys its width between `minWidth` and `maxWidth`. It's a focusable separator named by the nav's own name and controlling the nav, read as \"Sections, separator, 256\". Arrow keys move it by `step`, ten times as far with Shift, mirrored right to left; Home and End go to `minWidth` and `maxWidth`. Dragging it below halfway from its collapsed width to `minWidth` collapses the column, to the rail when it has one, and dragging it back out past that point opens it at `minWidth`. Enter collapses it and brings it back at the width it had, and a double click resets it to `defaultWidth` and expands it. The collapses go through `onNavCollapsedChange`, the state the burger sets. Collapsed, the handle's value is the rail's width, or 0 without a rail, which is where its range starts. The handle hides while the column is collapsed out of view, and the burger brings it back, unless it has focus, so Enter brings it back too. A development build warns about a `width` with no `onWidthChange`, since the handle couldn't move it.",
314
+ "required": false,
315
+ "inherited": false,
316
+ "deprecated": false
317
+ },
318
+ {
319
+ "name": "defaultWidth",
320
+ "type": "number | string",
321
+ "default": null,
322
+ "description": "The width the column starts at when `width` isn't set, and a `resizable` one goes back to on a double click on its handle: pixels, or `px` or `rem`. Without `width`, the reset keeps it as given, so a rem keeps following the font size; with `width`, `onWidthChange` hears it in pixels. The handle reads any other length as the stylesheet's width, and a development build warns about it. Without it, the stylesheet's, 16rem.",
323
+ "required": false,
324
+ "inherited": false,
325
+ "deprecated": false
326
+ },
327
+ {
328
+ "name": "onWidthChange",
329
+ "type": "(width: number) => void",
330
+ "default": null,
331
+ "description": "Called with the width in pixels on each step of a drag or a key that changes it, and on a reset. Store it to keep the width across visits.",
332
+ "required": false,
333
+ "inherited": false,
334
+ "deprecated": false
335
+ },
336
+ {
337
+ "name": "minWidth",
338
+ "type": "number | string",
339
+ "default": "'12rem'",
340
+ "description": "The narrowest a drag or a key takes a `resizable` column: a number is pixels, as `width`'s is, and a string a `px` or `rem` length. The handle takes the default for anything else, and a development build warns about it.",
341
+ "required": false,
342
+ "inherited": false,
343
+ "deprecated": false
344
+ },
345
+ {
346
+ "name": "maxWidth",
347
+ "type": "number | string",
348
+ "default": "'32rem'",
349
+ "description": "The widest a drag or a key takes a `resizable` column, in the same units as `minWidth`, with the same default for anything else.",
350
+ "required": false,
351
+ "inherited": false,
352
+ "deprecated": false
353
+ },
354
+ {
355
+ "name": "step",
356
+ "type": "number",
357
+ "default": "10",
358
+ "description": "How far an arrow key moves a `resizable` column's edge, in pixels. Shift moves ten times as far.",
359
+ "required": false,
360
+ "inherited": false,
361
+ "deprecated": false
362
+ },
305
363
  {
306
364
  "name": "className",
307
365
  "type": "string",
@@ -645,6 +703,30 @@
645
703
  "sass": "$app-frame-skip-link-color",
646
704
  "default": "var(--bulma-link)",
647
705
  "scope": "root"
706
+ },
707
+ {
708
+ "css": "--bulma-app-frame-handle-size",
709
+ "sass": "$app-frame-handle-size",
710
+ "default": "0.75rem",
711
+ "scope": "root"
712
+ },
713
+ {
714
+ "css": "--bulma-app-frame-handle-size-coarse",
715
+ "sass": "$app-frame-handle-size-coarse",
716
+ "default": "1.5rem",
717
+ "scope": "root"
718
+ },
719
+ {
720
+ "css": "--bulma-app-frame-line-active-color",
721
+ "sass": "$app-frame-line-active-color",
722
+ "default": "var(--bulma-primary)",
723
+ "scope": "root"
724
+ },
725
+ {
726
+ "css": "--bulma-app-frame-line-active-size",
727
+ "sass": "$app-frame-line-active-size",
728
+ "default": "2px",
729
+ "scope": "root"
648
730
  }
649
731
  ]
650
732
  }
@@ -101,7 +101,7 @@
101
101
  "code": "function example() {\n const buttonRef = React.useRef<HTMLButtonElement>(null);\n const [tag, setTag] = React.useState<string>();\n\n return (\n <>\n <Button color=\"primary\" ref={buttonRef}>\n Target\n </Button>\n <Button ml=\"2\" onClick={() => setTag(buttonRef.current?.tagName)}>\n Read the tag from its ref\n </Button>\n <p>Rendered element: {tag ?? '—'}</p>\n </>\n );\n}"
102
102
  }
103
103
  ],
104
- "accessibility": "- **Labeling:** Always provide descriptive content for buttons for screen readers.\n- **Icons beside text:** Leave the `Icon` unnamed, so the text alone names the button. The icons in [With an Icon](https://bestax.io/docs/api/elements/button#with-an-icon) write out `aria-hidden=\"true\"`, and `Icon` would render it for them anyway, since they have no `ariaLabel`, `aria-label` or `aria-labelledby` to name them and no `role` or `tabIndex` of their own. A named icon joins the button's name instead, so `ariaLabel=\"Download\"` on the icon of a Download button makes a screen reader announce \"Download Download\".\n- **States:** The `isDisabled` and `disabled` props ensure correct `aria-disabled` and `disabled` attributes.\n- **Keyboard:** When rendered as `<a>`, disabled buttons are not focusable.\n- **Focus:** Use `isFocused` and `isActive` for visual feedback, but rely on browser focus for actual accessibility.\n- **Focus ring:** Bulma shows a focused button with its border and a shadow. A ghost button has neither, and forced colors (Windows' contrast themes) drops the shadow and sets the border's color, so bestax's styles give a focused ghost button, and every focused button in forced colors, an outline. `isFocused` draws it too.\n- **Forced colors:** In Windows' contrast themes a colored button keeps a 1px border, so it still has an edge when the theme replaces its fill, while an outlined button and a `text` one are left as they are.\n- **Toggles:** `isActive` tells a screen reader nothing. A button that turns something on or off is a [`ToggleButton`](https://bestax.io/docs/api/elements/togglebutton), which sets `aria-pressed`.\n\n:::note\nA button that shows only an icon is an [`IconButton`](https://bestax.io/docs/api/elements/iconbutton), whose types require an\n`aria-label` or an `aria-labelledby`, and whose `isRounded` makes a circle. On a plain `Button` holding only\nan icon, name it with `aria-label` yourself.\n:::",
104
+ "accessibility": "- **Labeling:** Always provide descriptive content for buttons for screen readers.\n- **Icons beside text:** Leave the `Icon` unnamed, so the text alone names the button. The icons in [With an Icon](https://bestax.io/docs/api/elements/button#with-an-icon) write out `aria-hidden=\"true\"`, and `Icon` would render it for them anyway, since they have no `ariaLabel`, `aria-label` or `aria-labelledby` to name them and no `role` or `tabIndex` of their own. A named icon joins the button's name instead, so `ariaLabel=\"Download\"` on the icon of a Download button makes a screen reader announce \"Download Download\".\n- **States:** The `isDisabled` and `disabled` props ensure correct `aria-disabled` and `disabled` attributes.\n- **Keyboard:** When rendered as `<a>`, disabled buttons are not focusable.\n- **Focus:** Use `isFocused` and `isActive` for visual feedback, but rely on browser focus for actual accessibility.\n- **Focus ring:** Bulma shows a focused button with its border and a shadow. A ghost button has neither, and forced colors (Windows' contrast themes) drops the shadow and sets the border's color, so bestax's styles give a focused ghost button, and every focused button in forced colors, an outline. `isFocused` draws it too.\n- **Forced colors:** In Windows' contrast themes a colored button keeps a 1px border, so it still has an edge when the theme replaces its fill, while an outlined button and a `text` one are left as they are.\n- **Outlined on the dark scheme:** bestax's styles draw an outlined button's label and border at the lightness Bulma picks for its color's text on the page wherever that's lighter than the color's own, so a dark color, such as Bulma's link or bestax's blue primary, reads on the dark page. On a light page an outlined button keeps its color's own lightness. On a surface that stays light on both schemes, such as `bgColor=\"white\"`, give the surface Bulma's `theme-light` class (`bestax-theme-light` under the `bestax-` prefix), which keeps what's inside it on the light scheme's values.\n- **Toggles:** `isActive` tells a screen reader nothing. A button that turns something on or off is a [`ToggleButton`](https://bestax.io/docs/api/elements/togglebutton), which sets `aria-pressed`.\n\n:::note\nA button that shows only an icon is an [`IconButton`](https://bestax.io/docs/api/elements/iconbutton), whose types require an\n`aria-label` or an `aria-labelledby`, and whose `isRounded` makes a circle. On a plain `Button` holding only\nan icon, name it with `aria-label` yourself.\n:::",
105
105
  "related": [
106
106
  "Buttons",
107
107
  "CopyButton",
@@ -207,7 +207,7 @@
207
207
  "name": "isOutlined",
208
208
  "type": "boolean",
209
209
  "default": "false",
210
- "description": "Applies outlined styling (requires color).",
210
+ "description": "Applies outlined styling (requires color). On the dark scheme, bestax's stylesheets draw the label and border at the lightness Bulma picks for the color's text on the page wherever that's lighter, so a dark color reads there. On a surface that stays light on both schemes, give the surface Bulma's `theme-light` class (with the class prefix in a prefixed build), which keeps what's inside it on the light scheme's values.",
211
211
  "required": false,
212
212
  "inherited": false,
213
213
  "deprecated": false
@@ -230,7 +230,7 @@
230
230
  "name": "isOutlined",
231
231
  "type": "boolean",
232
232
  "default": "false",
233
- "description": "Applies outlined styling (requires color).",
233
+ "description": "Applies outlined styling (requires color). On the dark scheme, bestax's stylesheets draw the label and border at the lightness Bulma picks for the color's text on the page wherever that's lighter, so a dark color reads there. On a surface that stays light on both schemes, give the surface Bulma's `theme-light` class (with the class prefix in a prefixed build), which keeps what's inside it on the light scheme's values.",
234
234
  "required": false,
235
235
  "inherited": false,
236
236
  "deprecated": false
@@ -783,7 +783,7 @@
783
783
  "name": "isOutlined",
784
784
  "type": "boolean",
785
785
  "default": "false",
786
- "description": "Applies outlined styling (requires color).",
786
+ "description": "Applies outlined styling (requires color). On the dark scheme, bestax's stylesheets draw the label and border at the lightness Bulma picks for the color's text on the page wherever that's lighter, so a dark color reads there. On a surface that stays light on both schemes, give the surface Bulma's `theme-light` class (with the class prefix in a prefixed build), which keeps what's inside it on the light scheme's values.",
787
787
  "required": false,
788
788
  "inherited": true,
789
789
  "deprecated": false
@@ -1022,7 +1022,7 @@
1022
1022
  "name": "isOutlined",
1023
1023
  "type": "boolean",
1024
1024
  "default": "false",
1025
- "description": "Applies outlined styling (requires color).",
1025
+ "description": "Applies outlined styling (requires color). On the dark scheme, bestax's stylesheets draw the label and border at the lightness Bulma picks for the color's text on the page wherever that's lighter, so a dark color reads there. On a surface that stays light on both schemes, give the surface Bulma's `theme-light` class (with the class prefix in a prefixed build), which keeps what's inside it on the light scheme's values.",
1026
1026
  "required": false,
1027
1027
  "inherited": true,
1028
1028
  "deprecated": false