bestax-mcp 1.18.40 → 1.18.42

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 (52) hide show
  1. package/data/bulma-classes.json +3 -0
  2. package/data/catalog.json +66 -3
  3. package/data/components/ColorInput.json +2 -2
  4. package/data/components/Combobox.json +3 -3
  5. package/data/components/Command.json +1 -1
  6. package/data/components/ConfigProvider.json +2 -2
  7. package/data/components/ContextMenu.json +2 -6
  8. package/data/components/Control.json +6 -6
  9. package/data/components/DateInput.json +5 -5
  10. package/data/components/DateRangeInput.json +5 -5
  11. package/data/components/DateTimeInput.json +7 -7
  12. package/data/components/Delete.json +1 -1
  13. package/data/components/Dialog.json +1 -1
  14. package/data/components/Dropdown.json +3 -3
  15. package/data/components/Field.json +6 -6
  16. package/data/components/HoverCard.json +3 -3
  17. package/data/components/LocaleProvider.json +1 -1
  18. package/data/components/Menu.json +1 -1
  19. package/data/components/Modal.json +1 -1
  20. package/data/components/Notification.json +3 -3
  21. package/data/components/Popover.json +1 -1
  22. package/data/components/Portal.json +2 -2
  23. package/data/components/Slider.json +1 -1
  24. package/data/components/Tabs.json +2 -2
  25. package/data/components/TextArea.json +1 -1
  26. package/data/components/TimeInput.json +5 -5
  27. package/data/components/TreeSelect.json +1 -1
  28. package/data/components/useBulmaClasses.json +3 -3
  29. package/data/skills/bestax-custom-component/references/api.md +5 -1
  30. package/data/skills/bestax-custom-component/references/component-catalog.md +1 -4
  31. package/data/skills/bestax-custom-component/references/library-contributor.md +5 -0
  32. package/data/skills/bestax-form/references/api.md +6 -3
  33. package/data/skills/bestax-layout-scaffold/references/layout-components.md +2 -4
  34. package/data/skills/bestax-migrate/references/bulma-classes/unmappables.md +27 -0
  35. package/data/skills/bestax-migrate/references/rbx/unmappables.md +5 -2
  36. package/data/skills/bestax-migrate/references/react-bulma-components/component-map.md +34 -34
  37. package/data/skills/bestax-migrate/references/react-bulma-components/unmappables.md +20 -4
  38. package/data/skills/bestax-optimize/references/modular-build.md +6 -4
  39. package/data/skills/bestax-theming/references/css-variables.md +8 -1
  40. package/data/skills.json +11 -11
  41. package/dist/data.d.ts +13 -6
  42. package/dist/data.d.ts.map +1 -1
  43. package/dist/data.js +24 -21
  44. package/dist/format.d.ts +11 -1
  45. package/dist/format.d.ts.map +1 -1
  46. package/dist/format.js +24 -1
  47. package/dist/search.d.ts +7 -0
  48. package/dist/search.d.ts.map +1 -1
  49. package/dist/search.js +9 -0
  50. package/dist/server.d.ts.map +1 -1
  51. package/dist/server.js +75 -13
  52. package/package.json +2 -2
@@ -9697,6 +9697,9 @@
9697
9697
  },
9698
9698
  "legacy": {
9699
9699
  "tile": "Bulma v1 removed tiles; rebuild the layout with `Grid` and `Cell` (see the Bulma 0.9 to 1 guide)",
9700
+ "heading": "Bulma v1 dropped the `.heading` styles, so unless the project's own CSS gives `heading` a rule, it styles nothing now; restyle it with bestax helpers (e.g. `<Paragraph textSize=\"7\" textTransform=\"uppercase\" textWeight=\"semibold\" mb=\"1\">`) or a `.heading` rule of your own",
9701
+ "number": "Bulma v1 dropped `.number`, Bulma 0.9's rounded badge, so unless the project's own CSS gives `number` a rule (a code highlighter's does for `token number`), it styles nothing now; if the element needs that badge, give it a rule of your own",
9702
+ "is-variable": "Bulma v1 removed `is-variable`, so it styles nothing now; drop it, since v1's `is-0` to `is-8` set the gap of a `.columns` without it (bestax `Columns` writes them from its `gap` prop)",
9700
9703
  "is-marginless": "Bulma v1 removed `is-marginless`, so it styles nothing now; write v1's `m-0` in its place, or `m=\"0\"` on a bestax component. The codemod does that itself wherever the element converts",
9701
9704
  "is-paddingless": "Bulma v1 removed `is-paddingless`, so it styles nothing now; write v1's `p-0` in its place, or `p=\"0\"` on a bestax component. The codemod does that itself wherever the element converts"
9702
9705
  },
package/data/catalog.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 2,
3
3
  "generatedFrom": {
4
4
  "package": "@allxsmith/bestax-bulma",
5
- "version": "5.67.2"
5
+ "version": "5.67.5"
6
6
  },
7
7
  "docsBase": "https://bestax.io/docs",
8
8
  "categories": [
@@ -535,7 +535,7 @@
535
535
  "import": "import { ContextMenu } from '@allxsmith/bestax-bulma';",
536
536
  "compound": true,
537
537
  "propCount": 10,
538
- "exampleCount": 9
538
+ "exampleCount": 8
539
539
  },
540
540
  {
541
541
  "name": "Control",
@@ -3973,6 +3973,69 @@
3973
3973
  "component": "TreeView",
3974
3974
  "path": "TreeView.Item",
3975
3975
  "purpose": "One item in the tree: a row with its chevron, its box, its icon and its label, and, while it's open, a group of the items under it."
3976
- }
3976
+ },
3977
+ "createPrefixedClassNames": {
3978
+ "component": "usePrefixedClassNames",
3979
+ "purpose": "Bind the prefix once and reuse the returned function.",
3980
+ "section": "Reusable prefixer: `createPrefixedClassNames`"
3981
+ },
3982
+ "dialog": {
3983
+ "component": "Dialog",
3984
+ "purpose": "For showing dialogs from anywhere in your app, use the programmatic API.",
3985
+ "section": "Programmatic API"
3986
+ },
3987
+ "notification": {
3988
+ "component": "Notification",
3989
+ "purpose": "To show a notification from anywhere in your app, not just where you render one, use the `notification` API.",
3990
+ "section": "Programmatic API"
3991
+ },
3992
+ "prefixedClassNames": {
3993
+ "component": "usePrefixedClassNames",
3994
+ "purpose": "When you already know the prefix (or might not have one), pass it as the first argument.",
3995
+ "section": "Outside a component: `prefixedClassNames`"
3996
+ },
3997
+ "toast": {
3998
+ "component": "Toast",
3999
+ "purpose": "For showing toasts from anywhere in your app, use the programmatic API.",
4000
+ "section": "Programmatic API"
4001
+ },
4002
+ "useAppFrame": {
4003
+ "component": "AppFrame",
4004
+ "purpose": "`useAppFrame()` gives a control inside the frame the same state the burger has: `navOpen`, `navCollapsed`, `isDrawer`, a setter for each, `navId` for its…",
4005
+ "section": "A Toggle of Your Own"
4006
+ },
4007
+ "useConfig": {
4008
+ "component": "ConfigProvider",
4009
+ "purpose": "Returns the current configuration context values.",
4010
+ "section": "useConfig"
4011
+ },
4012
+ "useDataTable": {
4013
+ "component": "DataTable",
4014
+ "purpose": "`useDataTable` takes the same columns, data and state options as `DataTable` and returns the table.",
4015
+ "section": "The useDataTable Hook"
4016
+ },
4017
+ "useIsHydrated": {
4018
+ "component": "ClientOnly",
4019
+ "purpose": "Returns `false` during server rendering and during the hydrating client render, then `true` from the commit that follows.",
4020
+ "section": "useIsHydrated"
4021
+ },
4022
+ "useLocale": {
4023
+ "component": "LocaleProvider",
4024
+ "purpose": "Returns the `locale` and `dir` the nearest provider sets, both `undefined` outside one.",
4025
+ "section": "useLocale"
4026
+ },
4027
+ "useNumberFormat": {
4028
+ "component": "NumberFormatter",
4029
+ "purpose": "`useNumberFormat` returns a function that writes numbers the way `NumberFormatter` does, for the text JSX can't hold an element in: an `aria-label`, a…",
4030
+ "section": "The useNumberFormat Hook"
4031
+ },
4032
+ "useScrollSpy": {
4033
+ "component": "TableOfContents",
4034
+ "purpose": "`useScrollSpy` is what picks the current section, and it returns its id, or `null`.",
4035
+ "section": "The useScrollSpy Hook"
4036
+ },
4037
+ "validColors": { "component": "Valid value constants", "purpose": "" },
4038
+ "validSizes": { "component": "Valid value constants", "purpose": "" },
4039
+ "validViewports": { "component": "Valid value constants", "purpose": "" }
3977
4040
  }
3978
4041
  }
@@ -292,7 +292,7 @@
292
292
  "name": "appendToBody",
293
293
  "type": "boolean",
294
294
  "default": "false",
295
- "description": "Renders the panel through a portal, into the `portalContainer` a `ConfigProvider` sets, `document.body` by default.",
295
+ "description": "Renders the panel through a portal, into the `portalContainer` a `ConfigProvider` sets, else the `Modal`, `Dialog` or `Command.Dialog` it's in, else `document.body`.",
296
296
  "required": false,
297
297
  "inherited": true,
298
298
  "deprecated": false
@@ -538,7 +538,7 @@
538
538
  "name": "appendToBody",
539
539
  "type": "boolean",
540
540
  "default": "false",
541
- "description": "Renders the panel through a portal, into the `portalContainer` a `ConfigProvider` sets, `document.body` by default.",
541
+ "description": "Renders the panel through a portal, into the `portalContainer` a `ConfigProvider` sets, else the `Modal`, `Dialog` or `Command.Dialog` it's in, else `document.body`.",
542
542
  "required": false,
543
543
  "inherited": false,
544
544
  "deprecated": false
@@ -35,7 +35,7 @@
35
35
  },
36
36
  {
37
37
  "title": "Where the List Opens",
38
- "code": "<Modal active={active} onClose={close} aria-label=\"Edit shipping\">\n <Modal.Background onClick={close} />\n <Modal.Card>\n <Modal.Card.Body>\n <ConfigProvider portalContainer={overlay ?? undefined}>\n <Combobox\n label=\"Country\"\n data={countries}\n appendToBody\n position=\"auto\"\n />\n </ConfigProvider>\n </Modal.Card.Body>\n </Modal.Card>\n {/* In the modal and outside the card, so the card can't clip it. */}\n <div ref={setOverlay} />\n</Modal>"
38
+ "code": "<Modal active={active} onClose={close} aria-label=\"Edit shipping\">\n <Modal.Background onClick={close} />\n <Modal.Card>\n <Modal.Card.Body>\n <Combobox label=\"Country\" data={countries} appendToBody position=\"auto\" />\n </Modal.Card.Body>\n </Modal.Card>\n</Modal>"
39
39
  },
40
40
  {
41
41
  "title": "Building It Yourself",
@@ -313,7 +313,7 @@
313
313
  "name": "position",
314
314
  "type": "'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'auto'",
315
315
  "default": "'bottom-left'",
316
- "description": "Where the menu opens against the field: below (`bottom-*`) or above (`top-*`), lined up with its left or right edge. `auto` picks the one that keeps the list in the viewport, preferring below. The same union Popover takes.",
316
+ "description": "Where the menu opens against the field: below (`bottom-*`) or above (`top-*`), lined up with its left or right edge. `auto` picks the one that keeps the list in the viewport, preferring below. The same union Popover takes. Left out, it opens below and lines up with the field's start edge, which is its right edge on a right-to-left page, so a menu wider than the field doesn't hang off the screen. A corner you pass stays physical, so `bottom-left` lines up the left edges on either page.",
317
317
  "required": false,
318
318
  "inherited": true,
319
319
  "deprecated": false
@@ -322,7 +322,7 @@
322
322
  "name": "appendToBody",
323
323
  "type": "boolean",
324
324
  "default": "false",
325
- "description": "Renders the menu through `Portal`, into the `portalContainer` a `ConfigProvider` sets, `document.body` by default, fixed to the viewport at the field, so a container that clips its overflow can't cut it off. It then shows from the commit after hydration, never in server markup. Theming variables set on an ancestor reach it only when the portal's container is inside that ancestor, as with Popover. In a `Modal`, point `portalContainer` inside the modal, so the list stays in the dialog for assistive tech.",
325
+ "description": "Renders the menu through `Portal`, into the `portalContainer` a `ConfigProvider` sets, else the `Modal`, `Dialog` or `Command.Dialog` it's in, else `document.body`, fixed to the viewport at the field, so a container that clips its overflow can't cut it off. It then shows from the commit after hydration, never in server markup. Theming variables set on an ancestor reach it only when the portal's container is inside that ancestor, as with Popover.",
326
326
  "required": false,
327
327
  "inherited": true,
328
328
  "deprecated": false
@@ -50,7 +50,7 @@
50
50
  "code": "function example() {\n const [open, setOpen] = useState(false);\n const [query, setQuery] = useState('');\n const [ran, setRan] = useState<string | null>(null);\n const colors = [\n 'primary',\n 'link',\n 'info',\n 'success',\n 'warning',\n 'danger',\n ] as const;\n const matches = colors.filter(c => c.includes(query.trim().toLowerCase()));\n\n return (\n <>\n <Button onClick={() => setOpen(true)}>Pick a color</Button>\n <Paragraph mt=\"3\">{ran ? `Picked ${ran}` : 'No color yet'}</Paragraph>\n <Command.Dialog\n open={open}\n onOpenChange={setOpen}\n label=\"Colors\"\n query={query}\n onQueryChange={setQuery}\n onSelect={setRan}\n >\n <Command.Input placeholder=\"Search colors\" />\n {matches.length > 0 ? (\n <Command.List>\n <Command.Group label=\"Bulma colors\">\n {matches.map(color => (\n <Command.Item\n key={color}\n value={color}\n hint={<Tag color={color}>is-{color}</Tag>}\n >\n {color}\n </Command.Item>\n ))}\n </Command.Group>\n </Command.List>\n ) : (\n <Command.Empty>No colors match</Command.Empty>\n )}\n </Command.Dialog>\n </>\n );\n}"
51
51
  }
52
52
  ],
53
- "accessibility": "- **The roles:** the field is `role=\"combobox\"` with `aria-autocomplete=\"list\"` and\n `aria-haspopup=\"listbox\"`, and the list is a `listbox` of `option`s, the ARIA 1.2 combobox the\n ARIA Authoring Practices describe. A group is a `group` named by its heading.\n- **Focus stays in the field:** the highlighted item is the field's `aria-activedescendant`, and\n the only item that's `aria-selected`. When a key moves it, it's scrolled into view. A click on an\n item keeps focus in the field too.\n- **`aria-expanded`** is `true` while the list has an item in it, with `aria-controls` pointing\n at it, and `false` while only the empty message shows.\n- **Names:** `label` names the field and the list, and in `Command.Dialog` the dialog as well.\n It's \"Commands\" unless you give one. An `aria-label` or `aria-labelledby` on `Command.Input`,\n `Command.List` or `Command.Dialog` names that one instead.\n- **An item is named by its label alone,** and described by its description and hint, so a\n screen reader says what it does first and the rest after. Its icon is hidden.\n- **Disabled items** are `aria-disabled`, reachable with the arrows, never run, and never\n highlighted when the list changes.\n- **The empty message** is announced through a polite status region when your typing brings it on\n screen, once each time the matches run out, and after `isLoading` ends. An empty search\n announces nothing.\n- **No count is announced,** as with [`Combobox`](https://bestax.io/docs/api/form/combobox#a-result-count): a screen\n reader reads how many items there are from the list itself, and a count read out on each\n keystroke talks over the typing.\n- **The dialog** is a modal `dialog` with `aria-modal`, around the Command's box, inside a\n `Modal` that's `role=\"presentation\"`. Focus moves to the search field when it opens, stays\n inside while it's open, and goes back to where it was when it closes. The page behind it\n doesn't scroll.\n- **The shortcut** never fires while someone is typing, so it can't swallow a letter, and it\n leaves a key the page has already used alone. Nothing announces it, so put it on a button with\n `aria-keyshortcuts`, and show it with `Kbd`.\n- **Forced colors:** in Windows high contrast mode the highlight is drawn as an outline in the\n system's highlight color, and a disabled item takes the system's color for disabled text.\n- **No motion:** nothing animates.",
53
+ "accessibility": "- **The roles:** the field is `role=\"combobox\"` with `aria-autocomplete=\"list\"` and\n `aria-haspopup=\"listbox\"`, and the list is a `listbox` of `option`s, the ARIA 1.2 combobox the\n ARIA Authoring Practices describe. A group is a `group` named by its heading.\n- **Focus stays in the field:** the highlighted item is the field's `aria-activedescendant`, and\n the only item that's `aria-selected`. When a key moves it, it's scrolled into view. A click on an\n item keeps focus in the field too.\n- **`aria-expanded`** is `true` while the list has an item in it, with `aria-controls` pointing\n at it, and `false` while only the empty message shows.\n- **Names:** `label` names the field and the list, and in `Command.Dialog` the dialog as well.\n It's \"Commands\" unless you give one. An `aria-label` or `aria-labelledby` on `Command.Input`,\n `Command.List` or `Command.Dialog` names that one instead.\n- **An item is named by its label alone,** and described by its description and hint, so a\n screen reader says what it does first and the rest after. Its icon is hidden.\n- **Disabled items** are `aria-disabled`, reachable with the arrows, never run, and never\n highlighted when the list changes.\n- **The empty message** is announced through a polite status region when your typing brings it on\n screen, once each time the matches run out, and after `isLoading` ends. An empty search\n announces nothing.\n- **No count is announced,** as with [`Combobox`](https://bestax.io/docs/api/form/combobox#a-result-count): a screen\n reader reads how many items there are from the list itself, and a count read out on each\n keystroke talks over the typing.\n- **The dialog** is a modal `dialog` with `aria-modal`, around the Command's box, inside a\n `Modal` that's `role=\"presentation\"`. Focus moves to the search field when it opens, stays\n inside while it's open, and goes back to where it was when it closes. The page behind it\n doesn't scroll. A popup opened inside it, such as a `Popover` with `appendToBody`, is portaled\n into the Command's box, the element with `aria-modal`, unless a\n [`ConfigProvider`](https://bestax.io/docs/api/helpers/config#where-portaled-content-goes) sets a `portalContainer`.\n- **The shortcut** never fires while someone is typing, so it can't swallow a letter, and it\n leaves a key the page has already used alone. Nothing announces it, so put it on a button with\n `aria-keyshortcuts`, and show it with `Kbd`.\n- **Forced colors:** in Windows high contrast mode the highlight is drawn as an outline in the\n system's highlight color, and a disabled item takes the system's color for disabled text.\n- **No motion:** nothing animates.",
54
54
  "related": [
55
55
  "Combobox",
56
56
  "Dropdown",
@@ -49,7 +49,7 @@
49
49
  "name": "portalContainer",
50
50
  "type": "string | HTMLElement",
51
51
  "default": null,
52
- "description": "Where portaled content goes when it has no target of its own: what a `Portal` without a `container` renders, and what the library's components portal, such as Popover's `appendToBody` panel, a `Modal` with `portal` set to `true`, or a `Toast`. An element, or a `document.querySelector` selector. Unset, or a selector that matches nothing, that content goes to `document.body`. A target a component is given, such as a `Toast`'s `container`, still wins, and nothing portals that would otherwise render in place. The overlays and panels this moves are `position: fixed`, so pick an element with no ancestor that has a `transform`, `filter`, `backdrop-filter`, `perspective`, `will-change: transform`, or a `contain` that includes `paint` or `layout`. That ancestor becomes their containing block, and they cover or line up against it instead of the viewport. An ancestor that starts a stacking context, with a `z-index` or `isolation: isolate`, keeps them inside it, under anything the page stacks above it. `NotificationContainer`'s status region moves too, so this also decides where its announcements come from, and an `aria-hidden` ancestor silences them. A selector can't find an element inside a shadow root, so pass the element itself there, held in state from a ref callback. Content that portals before the element is set goes to `document.body` and moves when it is, which remounts it, as `Portal`'s `container` describes.",
52
+ "description": "Where portaled content goes when it has no target of its own: what a `Portal` without a `container` renders, and what the library's components portal, such as Popover's `appendToBody` panel, a `Modal` with `portal` set to `true`, or a `Toast`. An element, or a `document.querySelector` selector. Unset, or a selector that matches nothing, that content goes to `document.body`, except a popup, such as Popover's panel or a picker's, opened inside a `Modal`, `Dialog` or `Command.Dialog`: that goes into the dialog, where screen readers that honor its `aria-modal` reach it. Set, it takes those popups too. A target a component is given, such as a `Toast`'s `container`, still wins, and nothing portals that would otherwise render in place. The overlays and panels this moves are `position: fixed`, so pick an element with no ancestor that has a `transform`, `filter`, `backdrop-filter`, `perspective`, `will-change: transform`, or a `contain` that includes `paint` or `layout`. That ancestor becomes their containing block, and they cover or line up against it instead of the viewport. An ancestor that starts a stacking context, with a `z-index` or `isolation: isolate`, keeps them inside it, under anything the page stacks above it. `NotificationContainer`'s status region moves too, so this also decides where its announcements come from, and an `aria-hidden` ancestor silences them. A selector can't find an element inside a shadow root, so pass the element itself there, held in state from a ref callback. Content that portals before the element is set goes to `document.body` and moves when it is, which remounts it, as `Portal`'s `container` describes.",
53
53
  "required": false,
54
54
  "inherited": false,
55
55
  "deprecated": false
@@ -61,5 +61,5 @@
61
61
  }
62
62
  ],
63
63
  "cssVars": [],
64
- "doc": "# ConfigProvider\n\n## Overview\n\nThe `ConfigProvider` component provides a React context for configuring global settings across all Bulma UI components. Its `classPrefix` is applied automatically to **all Bulma CSS classes**, including both main component classes (like `button`, `box`, `title`) and helper/modifier classes (like `is-primary`, `has-text-centered`, `m-4`), allowing you to namespace Bulma classes to avoid conflicts with other CSS frameworks or customize the class naming convention.\n\n---\n\n## Import\n\n```tsx\nimport { ConfigProvider, useConfig } from '@allxsmith/bestax-bulma';\n```\n\n---\n\n## Hooks\n\n### useConfig\n\nReturns the current configuration context values.\n\n```tsx\nconst { classPrefix } = useConfig();\n```\n\n### useClassPrefix\n\nConvenience hook that returns just the classPrefix string (or empty string if not set).\n\n```tsx\nconst classPrefix = useClassPrefix();\n```\n\n---\n\n## Usage Examples\n\n### Basic Usage with Class Prefix\n\nUse `ConfigProvider` to add a prefix to all Bulma CSS classes within its scope:\n\n```tsx\nimport {\n ConfigProvider,\n Box,\n Title,\n Button,\n Notification,\n} from '@allxsmith/bestax-bulma';\n\nfunction App() {\n return (\n <div>\n <Title size=\"3\">Prefixed Bulma Components</Title>\n <p>\n This demonstrates using ConfigProvider with{' '}\n <code>classPrefix=\"bestax-\"</code> to add the \"bestax-\" prefix to all\n component CSS classes. This is useful when integrating Bulma with other\n CSS frameworks or when you need to namespace Bulma classes to avoid\n conflicts.\n </p>\n\n <Notification color=\"info\" mt=\"4\">\n <strong>Tip:</strong> Open your browser's developer tools and inspect\n the DOM elements below. You'll see that all Bulma CSS classes have the\n \"bestax-\" prefix applied.\n </Notification>\n\n <ConfigProvider classPrefix=\"bestax-\">\n <Box mt=\"4\" p=\"4\">\n {/* \n This Box will have classes:\n - bestax-box (main class)\n - bestax-mt-4 (helper class)\n - bestax-p-4 (helper class)\n */}\n <Title size=\"4\">Prefixed Components</Title>\n {/* \n This Title will have classes:\n - bestax-title (main class)\n - bestax-is-4 (modifier class)\n */}\n <p>\n All components inside this ConfigProvider will have their CSS\n classes prefixed with \"bestax-\". This allows you to use Bulma\n alongside other CSS frameworks without class name conflicts.\n </p>\n <Button color=\"primary\" mt=\"3\" isRounded>\n {/* \n This Button will have classes:\n - bestax-button (main class)\n - bestax-is-primary (modifier class)\n - bestax-is-rounded (modifier class)\n - bestax-mt-3 (helper class)\n */}\n Bulma-Prefixed Button\n </Button>\n </Box>\n </ConfigProvider>\n\n <Box mt=\"4\" p=\"4\">\n <Title size=\"4\">Standard Components (No Prefix)</Title>\n <p>\n Components outside the ConfigProvider use standard Bulma classes\n without any prefix.\n </p>\n <Button color=\"info\">Standard Button</Button>\n </Box>\n </div>\n );\n}\n```\n\n### Nested ConfigProviders\n\nConfigProviders can be nested. An inner provider replaces the outer one's settings rather than adding to them, so inside it any setting it leaves out is back to its default:\n\n```tsx\nfunction NestedExample() {\n return (\n <ConfigProvider classPrefix=\"outer-\">\n <Box p=\"4\">\n <Title>Outer Prefix (outer-)</Title>\n\n <ConfigProvider classPrefix=\"inner-\">\n <Box p=\"4\" mt=\"3\">\n <Title>Inner Prefix (inner-)</Title>\n <Button color=\"primary\">Inner Button</Button>\n </Box>\n </ConfigProvider>\n\n <Button color=\"info\" mt=\"3\">\n Outer Button\n </Button>\n </Box>\n </ConfigProvider>\n );\n}\n```\n\n### Where Portaled Content Goes\n\n`portalContainer` sets where portaled content goes when it has no target of its own. That covers a [`Portal`](https://bestax.io/docs/api/helpers/portal) with no `container`, and what the library's components portal, such as the panel `Popover` renders with `appendToBody`, a `Modal` or `Dialog` with `portal` set to `true`, a `Toast`, or a `Sidebar`. It takes an element or a `document.querySelector` selector. Unset, that content goes to `document.body`.\n\nA target a component is given still wins, such as a `Modal`'s `portal` selector or a `Toast`'s `container`. And `portalContainer` only changes where portaled content goes: a component that renders in place, like a `Modal` without `portal` or a `Toast` with `inline`, still does.\n\n`document.body` is outside any styles scoped to where the content was declared: a scoped `Theme`'s variables, or a shadow root's stylesheets. To keep them, render an element inside that area and make it the `portalContainer`, held in state from a ref callback. Below, the panel keeps the purple primary its `Theme` sets, which it would lose at the end of the page:\n\n```tsx live\nfunction ThemedOverlays() {\n const [overlays, setOverlays] = useState<HTMLElement | null>(null);\n\n return (\n <Theme primaryH=\"270\" primaryS=\"100%\" primaryL=\"50%\">\n <ConfigProvider portalContainer={overlays ?? undefined}>\n <Popover\n appendToBody\n ariaLabel=\"Themed panel\"\n trigger={<Button color=\"primary\">Open</Button>}\n >\n <Popover.Body>\n <Button color=\"primary\">Still purple</Button>\n </Popover.Body>\n </Popover>\n </ConfigProvider>\n <div ref={setOverlays} />\n </Theme>\n );\n}\n```\n\nA selector can't find an element inside a shadow root, since `document.querySelector` doesn't look there, so in a shadow root pass the element itself, as above. Content that portals before the element is set goes to `document.body` and moves when it is, which remounts it and resets its state, as [`Portal`'s `container`](https://bestax.io/docs/api/helpers/portal#into-a-container) describes. A nested provider like this one needs the class prefix and icon library repeated if your app sets them (see [Nested ConfigProviders](https://bestax.io/docs/api/helpers/config#nested-configproviders)).\n\nWhat gets portaled is `position: fixed`, so put the element where no ancestor has a `transform`, `filter`, `backdrop-filter`, `perspective`, `will-change: transform`, or a `contain` that includes `paint` or `layout`. Any of those becomes the containing block for the overlays and panels, which then cover or line up against that ancestor instead of the viewport. An ancestor that starts a stacking context, with a `z-index` or `isolation: isolate`, keeps them inside it, under anything the page stacks above it.\n\n`NotificationContainer` portals its status region along with its notifications, so the `portalContainer` also decides where announcements come from. Keep it out of any `aria-hidden` ancestor, which takes the region out of the accessibility tree and silences them.\n\n### Using Configuration in Custom Components\n\nAccess the configuration in your own components using the `useConfig` hook:\n\n```tsx\nimport { useConfig } from '@allxsmith/bestax-bulma';\n\nfunction CustomComponent() {\n const { classPrefix } = useConfig();\n const className = classPrefix\n ? `${classPrefix}custom-component`\n : 'custom-component';\n\n return (\n <div className={className}>\n My custom component with prefix: {classPrefix || 'none'}\n </div>\n );\n}\n```\n\n---\n\n## Use Cases\n\n### Framework Integration\n\nWhen integrating Bulma with other CSS frameworks like Bootstrap or Tailwind CSS:\n\n```tsx\n<ConfigProvider classPrefix=\"bestax-\">\n <App />\n</ConfigProvider>\n```\n\nThis ensures all Bulma classes are prefixed with `bestax-`, preventing conflicts with other framework classes.\n\n### Multi-tenant Applications\n\nFor applications that need to support different styling themes or brands:\n\n```tsx\n<ConfigProvider classPrefix={`${tenantName}-`}>\n <TenantApp />\n</ConfigProvider>\n```\n\n### Component Library Wrapping\n\nWhen wrapping Bulma UI components in your own component library:\n\n```tsx\n<ConfigProvider classPrefix=\"mylib-\">\n <MyComponentLibrary />\n</ConfigProvider>\n```\n\n---\n\n## Notes\n\n- The `classPrefix` is applied to **all Bulma classes**:\n - Main component classes (e.g., `button` → `bestax-button`, `box` → `bestax-box`)\n - Helper/modifier classes (e.g., `is-primary` → `bestax-is-primary`, `has-text-centered` → `bestax-has-text-centered`)\n - Spacing classes (e.g., `m-4` → `bestax-m-4`, `p-2` → `bestax-p-2`)\n - All other Bulma utility classes\n- Changes to the `classPrefix` will affect all child components immediately\n- If no `classPrefix` is provided, components use standard Bulma class names\n- The ConfigProvider must wrap all components that should inherit the configuration\n\n---\n\n## TypeScript Support\n\nFull TypeScript support is included:\n\n```tsx\ninterface ConfigContextProps {\n classPrefix?: string;\n iconLibrary?: 'fa' | 'mdi' | 'ion' | 'material-icons' | 'material-symbols';\n portalContainer?: string | HTMLElement;\n}\n\ninterface ConfigProviderProps {\n children: ReactNode;\n classPrefix?: string;\n iconLibrary?: 'fa' | 'mdi' | 'ion' | 'material-icons' | 'material-symbols';\n portalContainer?: string | HTMLElement;\n}\n```\n\n---\n\n## Props\n\n| Prop | Type | Description |\n| ----------------- | ------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| `children` | `ReactNode` | The child components that will inherit the configuration settings. |\n| `classPrefix` | `string` | Optional prefix to add to all Bulma CSS classes. Useful for namespacing when integrating with other frameworks. |\n| `iconLibrary` | `'fa' \\| 'mdi' \\| 'ion' \\| 'material-icons' \\| 'material-symbols'` | Default icon library for all child components. |\n| `portalContainer` | `string` \\| `HTMLElement` | Where portaled content goes when it has no target of its own: what a `Portal` without a `container` renders, and what the library's components portal, such as `Popover`'s `appendToBody` panel or a `Modal` with `portal`. An element, or a `document.querySelector` selector. Unset, or a selector that matches nothing, it goes to `document.body`. A target a component is given still wins. |"
64
+ "doc": "# ConfigProvider\n\n## Overview\n\nThe `ConfigProvider` component provides a React context for configuring global settings across all Bulma UI components. Its `classPrefix` is applied automatically to **all Bulma CSS classes**, including both main component classes (like `button`, `box`, `title`) and helper/modifier classes (like `is-primary`, `has-text-centered`, `m-4`), allowing you to namespace Bulma classes to avoid conflicts with other CSS frameworks or customize the class naming convention.\n\n---\n\n## Import\n\n```tsx\nimport { ConfigProvider, useConfig } from '@allxsmith/bestax-bulma';\n```\n\n---\n\n## Hooks\n\n### useConfig\n\nReturns the current configuration context values.\n\n```tsx\nconst { classPrefix } = useConfig();\n```\n\n### useClassPrefix\n\nConvenience hook that returns just the classPrefix string (or empty string if not set).\n\n```tsx\nconst classPrefix = useClassPrefix();\n```\n\n---\n\n## Usage Examples\n\n### Basic Usage with Class Prefix\n\nUse `ConfigProvider` to add a prefix to all Bulma CSS classes within its scope:\n\n```tsx\nimport {\n ConfigProvider,\n Box,\n Title,\n Button,\n Notification,\n} from '@allxsmith/bestax-bulma';\n\nfunction App() {\n return (\n <div>\n <Title size=\"3\">Prefixed Bulma Components</Title>\n <p>\n This demonstrates using ConfigProvider with{' '}\n <code>classPrefix=\"bestax-\"</code> to add the \"bestax-\" prefix to all\n component CSS classes. This is useful when integrating Bulma with other\n CSS frameworks or when you need to namespace Bulma classes to avoid\n conflicts.\n </p>\n\n <Notification color=\"info\" mt=\"4\">\n <strong>Tip:</strong> Open your browser's developer tools and inspect\n the DOM elements below. You'll see that all Bulma CSS classes have the\n \"bestax-\" prefix applied.\n </Notification>\n\n <ConfigProvider classPrefix=\"bestax-\">\n <Box mt=\"4\" p=\"4\">\n {/* \n This Box will have classes:\n - bestax-box (main class)\n - bestax-mt-4 (helper class)\n - bestax-p-4 (helper class)\n */}\n <Title size=\"4\">Prefixed Components</Title>\n {/* \n This Title will have classes:\n - bestax-title (main class)\n - bestax-is-4 (modifier class)\n */}\n <p>\n All components inside this ConfigProvider will have their CSS\n classes prefixed with \"bestax-\". This allows you to use Bulma\n alongside other CSS frameworks without class name conflicts.\n </p>\n <Button color=\"primary\" mt=\"3\" isRounded>\n {/* \n This Button will have classes:\n - bestax-button (main class)\n - bestax-is-primary (modifier class)\n - bestax-is-rounded (modifier class)\n - bestax-mt-3 (helper class)\n */}\n Bulma-Prefixed Button\n </Button>\n </Box>\n </ConfigProvider>\n\n <Box mt=\"4\" p=\"4\">\n <Title size=\"4\">Standard Components (No Prefix)</Title>\n <p>\n Components outside the ConfigProvider use standard Bulma classes\n without any prefix.\n </p>\n <Button color=\"info\">Standard Button</Button>\n </Box>\n </div>\n );\n}\n```\n\n### Nested ConfigProviders\n\nConfigProviders can be nested. An inner provider replaces the outer one's settings rather than adding to them, so inside it any setting it leaves out is back to its default:\n\n```tsx\nfunction NestedExample() {\n return (\n <ConfigProvider classPrefix=\"outer-\">\n <Box p=\"4\">\n <Title>Outer Prefix (outer-)</Title>\n\n <ConfigProvider classPrefix=\"inner-\">\n <Box p=\"4\" mt=\"3\">\n <Title>Inner Prefix (inner-)</Title>\n <Button color=\"primary\">Inner Button</Button>\n </Box>\n </ConfigProvider>\n\n <Button color=\"info\" mt=\"3\">\n Outer Button\n </Button>\n </Box>\n </ConfigProvider>\n );\n}\n```\n\n### Where Portaled Content Goes\n\n`portalContainer` sets where portaled content goes when it has no target of its own. That covers a [`Portal`](https://bestax.io/docs/api/helpers/portal) with no `container`, and what the library's components portal, such as the panel `Popover` renders with `appendToBody`, a `Modal` or `Dialog` with `portal` set to `true`, a `Toast`, or a `Sidebar`. It takes an element or a `document.querySelector` selector. Unset, that content goes to `document.body`.\n\nA popup opened inside a `Modal`, `Dialog` or `Command.Dialog`, such as a `Popover`, `HoverCard` or `ContextMenu` panel, or a `Combobox` menu or picker popover with `appendToBody`, goes into that dialog instead of `document.body`. Each of those sets `aria-modal`, and a screen reader that honors it hides everything outside the dialog. A `portalContainer` you set still takes those popups, so with one set outside the dialog, point a `ConfigProvider` inside the dialog at an element there. A `Sidebar` doesn't do this: its open panel is transformed, which would place a fixed popup against the panel rather than the viewport.\n\nA target a component is given still wins, such as a `Modal`'s `portal` selector or a `Toast`'s `container`. And `portalContainer` only changes where portaled content goes: a component that renders in place, like a `Modal` without `portal` or a `Toast` with `inline`, still does.\n\n`document.body` is outside any styles scoped to where the content was declared: a scoped `Theme`'s variables, or a shadow root's stylesheets. To keep them, render an element inside that area and make it the `portalContainer`, held in state from a ref callback. Below, the panel keeps the purple primary its `Theme` sets, which it would lose at the end of the page:\n\n```tsx live\nfunction ThemedOverlays() {\n const [overlays, setOverlays] = useState<HTMLElement | null>(null);\n\n return (\n <Theme primaryH=\"270\" primaryS=\"100%\" primaryL=\"50%\">\n <ConfigProvider portalContainer={overlays ?? undefined}>\n <Popover\n appendToBody\n ariaLabel=\"Themed panel\"\n trigger={<Button color=\"primary\">Open</Button>}\n >\n <Popover.Body>\n <Button color=\"primary\">Still purple</Button>\n </Popover.Body>\n </Popover>\n </ConfigProvider>\n <div ref={setOverlays} />\n </Theme>\n );\n}\n```\n\nA selector can't find an element inside a shadow root, since `document.querySelector` doesn't look there, so in a shadow root pass the element itself, as above. Content that portals before the element is set goes to `document.body` and moves when it is, which remounts it and resets its state, as [`Portal`'s `container`](https://bestax.io/docs/api/helpers/portal#into-a-container) describes. A nested provider like this one needs the class prefix and icon library repeated if your app sets them (see [Nested ConfigProviders](https://bestax.io/docs/api/helpers/config#nested-configproviders)).\n\nWhat gets portaled is `position: fixed`, so put the element where no ancestor has a `transform`, `filter`, `backdrop-filter`, `perspective`, `will-change: transform`, or a `contain` that includes `paint` or `layout`. Any of those becomes the containing block for the overlays and panels, which then cover or line up against that ancestor instead of the viewport. An ancestor that starts a stacking context, with a `z-index` or `isolation: isolate`, keeps them inside it, under anything the page stacks above it.\n\n`NotificationContainer` portals its status region along with its notifications, so the `portalContainer` also decides where announcements come from. Keep it out of any `aria-hidden` ancestor, which takes the region out of the accessibility tree and silences them.\n\n### Using Configuration in Custom Components\n\nAccess the configuration in your own components using the `useConfig` hook:\n\n```tsx\nimport { useConfig } from '@allxsmith/bestax-bulma';\n\nfunction CustomComponent() {\n const { classPrefix } = useConfig();\n const className = classPrefix\n ? `${classPrefix}custom-component`\n : 'custom-component';\n\n return (\n <div className={className}>\n My custom component with prefix: {classPrefix || 'none'}\n </div>\n );\n}\n```\n\n---\n\n## Use Cases\n\n### Framework Integration\n\nWhen integrating Bulma with other CSS frameworks like Bootstrap or Tailwind CSS:\n\n```tsx\n<ConfigProvider classPrefix=\"bestax-\">\n <App />\n</ConfigProvider>\n```\n\nThis ensures all Bulma classes are prefixed with `bestax-`, preventing conflicts with other framework classes.\n\n### Multi-tenant Applications\n\nFor applications that need to support different styling themes or brands:\n\n```tsx\n<ConfigProvider classPrefix={`${tenantName}-`}>\n <TenantApp />\n</ConfigProvider>\n```\n\n### Component Library Wrapping\n\nWhen wrapping Bulma UI components in your own component library:\n\n```tsx\n<ConfigProvider classPrefix=\"mylib-\">\n <MyComponentLibrary />\n</ConfigProvider>\n```\n\n---\n\n## Notes\n\n- The `classPrefix` is applied to **all Bulma classes**:\n - Main component classes (e.g., `button` → `bestax-button`, `box` → `bestax-box`)\n - Helper/modifier classes (e.g., `is-primary` → `bestax-is-primary`, `has-text-centered` → `bestax-has-text-centered`)\n - Spacing classes (e.g., `m-4` → `bestax-m-4`, `p-2` → `bestax-p-2`)\n - All other Bulma utility classes\n- Changes to the `classPrefix` will affect all child components immediately\n- If no `classPrefix` is provided, components use standard Bulma class names\n- The ConfigProvider must wrap all components that should inherit the configuration\n\n---\n\n## TypeScript Support\n\nFull TypeScript support is included:\n\n```tsx\ninterface ConfigContextProps {\n classPrefix?: string;\n iconLibrary?: 'fa' | 'mdi' | 'ion' | 'material-icons' | 'material-symbols';\n portalContainer?: string | HTMLElement;\n}\n\ninterface ConfigProviderProps {\n children: ReactNode;\n classPrefix?: string;\n iconLibrary?: 'fa' | 'mdi' | 'ion' | 'material-icons' | 'material-symbols';\n portalContainer?: string | HTMLElement;\n}\n```\n\n---\n\n## Props\n\n| Prop | Type | Description |\n| ----------------- | ------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| `children` | `ReactNode` | The child components that will inherit the configuration settings. |\n| `classPrefix` | `string` | Optional prefix to add to all Bulma CSS classes. Useful for namespacing when integrating with other frameworks. |\n| `iconLibrary` | `'fa' \\| 'mdi' \\| 'ion' \\| 'material-icons' \\| 'material-symbols'` | Default icon library for all child components. |\n| `portalContainer` | `string` \\| `HTMLElement` | Where portaled content goes when it has no target of its own: what a `Portal` without a `container` renders, and what the library's components portal, such as `Popover`'s `appendToBody` panel or a `Modal` with `portal`. An element, or a `document.querySelector` selector. Unset, or a selector that matches nothing, it goes to `document.body`. A target a component is given still wins. |"
65
65
  }
@@ -33,10 +33,6 @@
33
33
  "title": "Turning It Off",
34
34
  "code": "function example() {\n const [disabled, setDisabled] = useState(false);\n\n return (\n <>\n <Switch\n mb=\"3\"\n checked={disabled}\n onChange={event => setDisabled(event.target.checked)}\n >\n Use the browser's menu\n </Switch>\n <ContextMenu\n aria-label=\"Actions for notes.txt\"\n disabled={disabled}\n trigger={\n <Box tabIndex={0} p=\"6\" textAlign=\"centered\">\n notes.txt\n </Box>\n }\n >\n <ContextMenu.Item as=\"button\">Rename</ContextMenu.Item>\n <ContextMenu.Item as=\"button\">Delete</ContextMenu.Item>\n </ContextMenu>\n </>\n );\n}"
35
35
  },
36
- {
37
- "title": "Where the Menu Goes",
38
- "code": "function RenameDialog({ active, onClose }) {\n const [overlays, setOverlays] = useState<HTMLElement | null>(null);\n\n return (\n <Modal active={active} onClose={onClose}>\n <ConfigProvider portalContainer={overlays ?? undefined}>\n <ContextMenu\n aria-label=\"Actions for report.pdf\"\n trigger={<Box tabIndex={0}>report.pdf</Box>}\n >\n <ContextMenu.Item as=\"button\">Rename</ContextMenu.Item>\n </ContextMenu>\n </ConfigProvider>\n <div ref={setOverlays} />\n </Modal>\n );\n}"
39
- },
40
36
  {
41
37
  "title": "Compound (dot-notation) usage",
42
38
  "code": "<ContextMenu\n aria-label=\"Actions for notes.txt\"\n trigger={\n <Box tabIndex={0} p=\"6\" textAlign=\"centered\">\n notes.txt\n </Box>\n }\n>\n <ContextMenu.Item as=\"button\">Open</ContextMenu.Item>\n <ContextMenu.Item as=\"button\">Rename</ContextMenu.Item>\n <ContextMenu.Divider />\n <ContextMenu.Item as=\"button\">Delete</ContextMenu.Item>\n</ContextMenu>"
@@ -52,14 +48,14 @@
52
48
  "useBulmaClasses"
53
49
  ],
54
50
  "storybook": "https://bestax.io/storybook/?path=/story/components-contextmenu--default",
55
- "summary": "The `ContextMenu` component opens a menu of actions where you right-click an element, such as a table row or a card, or long press it on a touch screen. Shift+F10 and the context menu key open it too, where the browser fires `contextmenu` for them, which Windows and Linux do. The menu is Dropdown's markup, portaled into the `portalContainer` a `ConfigProvider` sets, or the end of the trigger's own document's `<body>`, so it never has server markup. It opens below and to the right of the point, flips above or to the left where there's no room, moves in where it fits neither way, and scrolls inside when it's taller than the viewport. It doesn't follow the trigger, since scrolling closes it. Inside a `Modal` or a shadow root, point `portalContainer` inside it, so screen readers that honor `aria-modal` reach the menu and the shadow root's styles apply. Opening moves focus to the first enabled item. The arrow keys, Home, End and typing move between items, and Enter and Space activate one. Escape, Tab, an item, a press outside, scrolling, resizing and the window losing focus close it, handing focus back to what had it unless an item moved it somewhere else. For a menu opened from a button use `Dropdown`.",
51
+ "summary": "The `ContextMenu` component opens a menu of actions where you right-click an element, such as a table row or a card, or long press it on a touch screen. Shift+F10 and the context menu key open it too, where the browser fires `contextmenu` for them, which Windows and Linux do. The menu is Dropdown's markup, portaled, so it never has server markup: into the `portalContainer` a `ConfigProvider` sets, else the `Modal`, `Dialog` or `Command.Dialog` it's in, where screen readers that honor the dialog's `aria-modal` reach it, else the end of the trigger's own document's `<body>`. It opens below and to the right of the point, flips above or to the left where there's no room, moves in where it fits neither way, and scrolls inside when it's taller than the viewport. It doesn't follow the trigger, since scrolling closes it. Inside a shadow root, point `portalContainer` inside it, so the shadow root's styles apply. Opening moves focus to the first enabled item. The arrow keys, Home, End and typing move between items, and Enter and Space activate one. Escape, Tab, an item, a press outside, scrolling, resizing and the window losing focus close it, handing focus back to what had it unless an item moved it somewhere else. For a menu opened from a button use `Dropdown`.",
56
52
  "import": "import { ContextMenu } from '@allxsmith/bestax-bulma';",
57
53
  "sourceFile": "bulma-ui/src/components/ContextMenu.tsx",
58
54
  "rootClass": "context-menu",
59
55
  "parts": [
60
56
  {
61
57
  "path": "ContextMenu",
62
- "summary": "The `ContextMenu` component opens a menu of actions where you right-click an element, such as a table row or a card, or long press it on a touch screen. Shift+F10 and the context menu key open it too, where the browser fires `contextmenu` for them, which Windows and Linux do. The menu is Dropdown's markup, portaled into the `portalContainer` a `ConfigProvider` sets, or the end of the trigger's own document's `<body>`, so it never has server markup. It opens below and to the right of the point, flips above or to the left where there's no room, moves in where it fits neither way, and scrolls inside when it's taller than the viewport. It doesn't follow the trigger, since scrolling closes it. Inside a `Modal` or a shadow root, point `portalContainer` inside it, so screen readers that honor `aria-modal` reach the menu and the shadow root's styles apply. Opening moves focus to the first enabled item. The arrow keys, Home, End and typing move between items, and Enter and Space activate one. Escape, Tab, an item, a press outside, scrolling, resizing and the window losing focus close it, handing focus back to what had it unless an item moved it somewhere else. For a menu opened from a button use `Dropdown`.",
58
+ "summary": "The `ContextMenu` component opens a menu of actions where you right-click an element, such as a table row or a card, or long press it on a touch screen. Shift+F10 and the context menu key open it too, where the browser fires `contextmenu` for them, which Windows and Linux do. The menu is Dropdown's markup, portaled, so it never has server markup: into the `portalContainer` a `ConfigProvider` sets, else the `Modal`, `Dialog` or `Command.Dialog` it's in, where screen readers that honor the dialog's `aria-modal` reach it, else the end of the trigger's own document's `<body>`. It opens below and to the right of the point, flips above or to the left where there's no room, moves in where it fits neither way, and scrolls inside when it's taller than the viewport. It doesn't follow the trigger, since scrolling closes it. Inside a shadow root, point `portalContainer` inside it, so the shadow root's styles apply. Opening moves focus to the first enabled item. The arrow keys, Home, End and typing move between items, and Enter and Space activate one. Escape, Tab, an item, a press outside, scrolling, resizing and the window losing focus close it, handing focus back to what had it unless an item moved it somewhere else. For a menu opened from a button use `Dropdown`.",
63
59
  "component": null,
64
60
  "props": [
65
61
  {
@@ -97,7 +97,7 @@
97
97
  "name": "hasIconsLeft",
98
98
  "type": "boolean",
99
99
  "default": "false",
100
- "description": "Adds left icon container.",
100
+ "description": "Adds left icon container. Over a `TextArea` the icon covers the text.",
101
101
  "required": false,
102
102
  "inherited": true,
103
103
  "deprecated": false
@@ -106,7 +106,7 @@
106
106
  "name": "hasIconsRight",
107
107
  "type": "boolean",
108
108
  "default": "false",
109
- "description": "Adds right icon container.",
109
+ "description": "Adds right icon container. Over a `TextArea` the icon covers the text.",
110
110
  "required": false,
111
111
  "inherited": true,
112
112
  "deprecated": false
@@ -171,7 +171,7 @@
171
171
  "name": "iconLeft",
172
172
  "type": "IconProps | React.ReactNode",
173
173
  "default": null,
174
- "description": "Icon props for left icon, or a custom node (an inline SVG, a `react-icons` component, …) rendered in place of a class-based glyph. Bulma gives control icons `pointer-events: none`, so a click lands on the input and a clickable node placed here never receives one. Put a button beside the input in its own addon `Control` instead.",
174
+ "description": "Icon props for left icon, or a custom node (an inline SVG, a `react-icons` component, …) rendered in place of a class-based glyph. Over a `TextArea` the icon covers the text. Bulma gives control icons `pointer-events: none`, so a click lands on the input and a clickable node placed here never receives one. Put a button beside the input in its own addon `Control` instead.",
175
175
  "required": false,
176
176
  "inherited": true,
177
177
  "deprecated": false
@@ -180,7 +180,7 @@
180
180
  "name": "iconRight",
181
181
  "type": "IconProps | React.ReactNode",
182
182
  "default": null,
183
- "description": "Icon props for right icon, or a custom node (an inline SVG, a `react-icons` component, …) rendered in place of a class-based glyph. Bulma gives control icons `pointer-events: none`, so a click lands on the input and a clickable node placed here never receives one. Put a button beside the input in its own addon `Control` instead.",
183
+ "description": "Icon props for right icon, or a custom node (an inline SVG, a `react-icons` component, …) rendered in place of a class-based glyph. Over a `TextArea` the icon covers the text. Bulma gives control icons `pointer-events: none`, so a click lands on the input and a clickable node placed here never receives one. Put a button beside the input in its own addon `Control` instead.",
184
184
  "required": false,
185
185
  "inherited": true,
186
186
  "deprecated": false
@@ -189,7 +189,7 @@
189
189
  "name": "iconLeftName",
190
190
  "type": "string",
191
191
  "default": null,
192
- "description": "Shortcut for left icon name.",
192
+ "description": "Shortcut for left icon name. Over a `TextArea` the icon covers the text.",
193
193
  "required": false,
194
194
  "inherited": true,
195
195
  "deprecated": false
@@ -207,7 +207,7 @@
207
207
  "name": "iconRightName",
208
208
  "type": "string",
209
209
  "default": null,
210
- "description": "Shortcut for right icon name.",
210
+ "description": "Shortcut for right icon name. Over a `TextArea` the icon covers the text.",
211
211
  "required": false,
212
212
  "inherited": true,
213
213
  "deprecated": false
@@ -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\"`.\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. 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- 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. 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.",
@@ -555,7 +555,7 @@
555
555
  "name": "appendToBody",
556
556
  "type": "boolean",
557
557
  "default": "false",
558
- "description": "Render the popover through a portal, into the `portalContainer` a `ConfigProvider` sets, `document.body` by default.",
558
+ "description": "Render the popover through a portal, into the `portalContainer` a `ConfigProvider` sets, else the `Modal`, `Dialog` or `Command.Dialog` it's in, else `document.body`.",
559
559
  "required": false,
560
560
  "inherited": true,
561
561
  "deprecated": false
@@ -618,7 +618,7 @@
618
618
  "name": "dayNames",
619
619
  "type": "string[]",
620
620
  "default": null,
621
- "description": "Override the 7 day-name labels (in calendar order, post-rotation). They are shown exactly as given, from the first column, so they have to start on the day the week does. With them, an unset `firstDayOfWeek` stays Sunday even inside a `LocaleProvider`, so names written Sunday first keep matching their columns; to start on the locale's day, set `firstDayOfWeek` too and list the names from that day.",
621
+ "description": "Override the 7 day-name labels (in calendar order, post-rotation). They are shown exactly as given, from the first column, so they have to start on the day the week does. With them, an unset `firstDayOfWeek` stays Sunday even inside a `LocaleProvider`, so names written Sunday first keep matching their columns; to start on the locale's day, set `firstDayOfWeek` too and list the names from that day. They also name the columns for assistive technology. Without them each column is named by its full weekday in the picker's locale, which a server-rendered calendar adds once the page hydrates.",
622
622
  "required": false,
623
623
  "inherited": true,
624
624
  "deprecated": false
@@ -917,7 +917,7 @@
917
917
  "name": "appendToBody",
918
918
  "type": "boolean",
919
919
  "default": "false",
920
- "description": "Render the popover through a portal, into the `portalContainer` a `ConfigProvider` sets, `document.body` by default.",
920
+ "description": "Render the popover through a portal, into the `portalContainer` a `ConfigProvider` sets, else the `Modal`, `Dialog` or `Command.Dialog` it's in, else `document.body`.",
921
921
  "required": false,
922
922
  "inherited": false,
923
923
  "deprecated": false
@@ -980,7 +980,7 @@
980
980
  "name": "dayNames",
981
981
  "type": "string[]",
982
982
  "default": null,
983
- "description": "Override the 7 day-name labels (in calendar order, post-rotation). They are shown exactly as given, from the first column, so they have to start on the day the week does. With them, an unset `firstDayOfWeek` stays Sunday even inside a `LocaleProvider`, so names written Sunday first keep matching their columns; to start on the locale's day, set `firstDayOfWeek` too and list the names from that day.",
983
+ "description": "Override the 7 day-name labels (in calendar order, post-rotation). They are shown exactly as given, from the first column, so they have to start on the day the week does. With them, an unset `firstDayOfWeek` stays Sunday even inside a `LocaleProvider`, so names written Sunday first keep matching their columns; to start on the locale's day, set `firstDayOfWeek` too and list the names from that day. They also name the columns for assistive technology. Without them each column is named by its full weekday in the picker's locale, which a server-rendered calendar adds once the page hydrates.",
984
984
  "required": false,
985
985
  "inherited": false,
986
986
  "deprecated": false
@@ -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`, `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 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.",
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.",
@@ -414,7 +414,7 @@
414
414
  "name": "appendToBody",
415
415
  "type": "boolean",
416
416
  "default": "false",
417
- "description": "Render the popover through a portal, into the `portalContainer` a `ConfigProvider` sets, `document.body` by default.",
417
+ "description": "Render the popover through a portal, into the `portalContainer` a `ConfigProvider` sets, else the `Modal`, `Dialog` or `Command.Dialog` it's in, else `document.body`.",
418
418
  "required": false,
419
419
  "inherited": true,
420
420
  "deprecated": false
@@ -486,7 +486,7 @@
486
486
  "name": "dayNames",
487
487
  "type": "string[]",
488
488
  "default": null,
489
- "description": "Override the 7 day-name labels (in calendar order, post-rotation). They are shown exactly as given, from the first column, so they have to start on the day the week does. With them, an unset `firstDayOfWeek` stays Sunday even inside a `LocaleProvider`, so names written Sunday first keep matching their columns; to start on the locale's day, set `firstDayOfWeek` too and list the names from that day.",
489
+ "description": "Override the 7 day-name labels (in calendar order, post-rotation). They are shown exactly as given, from the first column, so they have to start on the day the week does. With them, an unset `firstDayOfWeek` stays Sunday even inside a `LocaleProvider`, so names written Sunday first keep matching their columns; to start on the locale's day, set `firstDayOfWeek` too and list the names from that day. They also name the columns for assistive technology. Without them each column is named by its full weekday in the picker's locale, which a server-rendered calendar adds once the page hydrates.",
490
490
  "required": false,
491
491
  "inherited": true,
492
492
  "deprecated": false
@@ -803,7 +803,7 @@
803
803
  "name": "appendToBody",
804
804
  "type": "boolean",
805
805
  "default": "false",
806
- "description": "Render the popover through a portal, into the `portalContainer` a `ConfigProvider` sets, `document.body` by default.",
806
+ "description": "Render the popover through a portal, into the `portalContainer` a `ConfigProvider` sets, else the `Modal`, `Dialog` or `Command.Dialog` it's in, else `document.body`.",
807
807
  "required": false,
808
808
  "inherited": false,
809
809
  "deprecated": false
@@ -875,7 +875,7 @@
875
875
  "name": "dayNames",
876
876
  "type": "string[]",
877
877
  "default": null,
878
- "description": "Override the 7 day-name labels (in calendar order, post-rotation). They are shown exactly as given, from the first column, so they have to start on the day the week does. With them, an unset `firstDayOfWeek` stays Sunday even inside a `LocaleProvider`, so names written Sunday first keep matching their columns; to start on the locale's day, set `firstDayOfWeek` too and list the names from that day.",
878
+ "description": "Override the 7 day-name labels (in calendar order, post-rotation). They are shown exactly as given, from the first column, so they have to start on the day the week does. With them, an unset `firstDayOfWeek` stays Sunday even inside a `LocaleProvider`, so names written Sunday first keep matching their columns; to start on the locale's day, set `firstDayOfWeek` too and list the names from that day. They also name the columns for assistive technology. Without them each column is named by its full weekday in the picker's locale, which a server-rendered calendar adds once the page hydrates.",
879
879
  "required": false,
880
880
  "inherited": false,
881
881
  "deprecated": false
@@ -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\"`; 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`. 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`. 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.\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- 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`. 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`. 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.",
@@ -475,7 +475,7 @@
475
475
  "name": "inline",
476
476
  "type": "boolean",
477
477
  "default": "false",
478
- "description": "Render the panel inline (no popover). On a server-rendered page it marks today once the page hydrates, by the browser's clock rather than the server's. With no `value` or `defaultValue` it opens on the month the clock reads, and around the end of a month the server's clock and the browser's can read different months, so give it a date both render the same.",
478
+ "description": "Render the panel inline (no popover). On a server-rendered page it marks today once the page hydrates, by the browser's clock rather than the server's. With no `value` or `defaultValue` it opens on the month the clock reads, and around the end of a month the server's clock and the browser's can read different months, so give it a date both render the same. Reset in its footer goes back to the value it mounted with, or, when controlled, to the latest `value` the parent set other than an echo of `onChange`. The ✓ beside it has no popover to close.",
479
479
  "required": false,
480
480
  "inherited": true,
481
481
  "deprecated": false
@@ -538,7 +538,7 @@
538
538
  "name": "appendToBody",
539
539
  "type": "boolean",
540
540
  "default": "false",
541
- "description": "Render the popover through a portal, into the `portalContainer` a `ConfigProvider` sets, `document.body` by default.",
541
+ "description": "Render the popover through a portal, into the `portalContainer` a `ConfigProvider` sets, else the `Modal`, `Dialog` or `Command.Dialog` it's in, else `document.body`.",
542
542
  "required": false,
543
543
  "inherited": true,
544
544
  "deprecated": false
@@ -601,7 +601,7 @@
601
601
  "name": "dayNames",
602
602
  "type": "string[]",
603
603
  "default": null,
604
- "description": "Override the 7 day-name labels (in calendar order, post-rotation). They are shown exactly as given, from the first column, so they have to start on the day the week does. With them, an unset `firstDayOfWeek` stays Sunday even inside a `LocaleProvider`, so names written Sunday first keep matching their columns; to start on the locale's day, set `firstDayOfWeek` too and list the names from that day.",
604
+ "description": "Override the 7 day-name labels (in calendar order, post-rotation). They are shown exactly as given, from the first column, so they have to start on the day the week does. With them, an unset `firstDayOfWeek` stays Sunday even inside a `LocaleProvider`, so names written Sunday first keep matching their columns; to start on the locale's day, set `firstDayOfWeek` too and list the names from that day. They also name the columns for assistive technology. Without them each column is named by its full weekday in the picker's locale, which a server-rendered calendar adds once the page hydrates.",
605
605
  "required": false,
606
606
  "inherited": true,
607
607
  "deprecated": false
@@ -900,7 +900,7 @@
900
900
  "name": "inline",
901
901
  "type": "boolean",
902
902
  "default": "false",
903
- "description": "Render the panel inline (no popover). On a server-rendered page it marks today once the page hydrates, by the browser's clock rather than the server's. With no `value` or `defaultValue` it opens on the month the clock reads, and around the end of a month the server's clock and the browser's can read different months, so give it a date both render the same.",
903
+ "description": "Render the panel inline (no popover). On a server-rendered page it marks today once the page hydrates, by the browser's clock rather than the server's. With no `value` or `defaultValue` it opens on the month the clock reads, and around the end of a month the server's clock and the browser's can read different months, so give it a date both render the same. Reset in its footer goes back to the value it mounted with, or, when controlled, to the latest `value` the parent set other than an echo of `onChange`. The ✓ beside it has no popover to close.",
904
904
  "required": false,
905
905
  "inherited": false,
906
906
  "deprecated": false
@@ -963,7 +963,7 @@
963
963
  "name": "appendToBody",
964
964
  "type": "boolean",
965
965
  "default": "false",
966
- "description": "Render the popover through a portal, into the `portalContainer` a `ConfigProvider` sets, `document.body` by default.",
966
+ "description": "Render the popover through a portal, into the `portalContainer` a `ConfigProvider` sets, else the `Modal`, `Dialog` or `Command.Dialog` it's in, else `document.body`.",
967
967
  "required": false,
968
968
  "inherited": false,
969
969
  "deprecated": false
@@ -1026,7 +1026,7 @@
1026
1026
  "name": "dayNames",
1027
1027
  "type": "string[]",
1028
1028
  "default": null,
1029
- "description": "Override the 7 day-name labels (in calendar order, post-rotation). They are shown exactly as given, from the first column, so they have to start on the day the week does. With them, an unset `firstDayOfWeek` stays Sunday even inside a `LocaleProvider`, so names written Sunday first keep matching their columns; to start on the locale's day, set `firstDayOfWeek` too and list the names from that day.",
1029
+ "description": "Override the 7 day-name labels (in calendar order, post-rotation). They are shown exactly as given, from the first column, so they have to start on the day the week does. With them, an unset `firstDayOfWeek` stays Sunday even inside a `LocaleProvider`, so names written Sunday first keep matching their columns; to start on the locale's day, set `firstDayOfWeek` too and list the names from that day. They also name the columns for assistive technology. Without them each column is named by its full weekday in the picker's locale, which a server-rendered calendar adds once the page hydrates.",
1030
1030
  "required": false,
1031
1031
  "inherited": false,
1032
1032
  "deprecated": false
@@ -24,7 +24,7 @@
24
24
  },
25
25
  {
26
26
  "title": "In a Notification",
27
- "code": "<Notification color=\"primary\">\n <Delete bgColor=\"warning\" ariaLabel=\"Close notification\" />\n <Paragraph>This is a primary notification with a delete button.</Paragraph>\n</Notification>"
27
+ "code": "<Notification color=\"primary\">\n <Delete ariaLabel=\"Close notification\" />\n <Paragraph>This is a primary notification with a delete button.</Paragraph>\n</Notification>"
28
28
  },
29
29
  {
30
30
  "title": "In a Message Header",
@@ -30,7 +30,7 @@
30
30
  "code": "function example() {\n const [showDialog, setShowDialog] = useState(false);\n return (\n <Block>\n <Button onClick={() => setShowDialog(true)}>Show Portaled Dialog</Button>\n <Dialog\n isOpen={showDialog}\n title=\"Portaled Dialog\"\n message=\"This dialog is portaled, so it escapes any ancestor with overflow: hidden.\"\n onConfirm={() => setShowDialog(false)}\n showCancel={false}\n portal\n />\n </Block>\n );\n}"
31
31
  }
32
32
  ],
33
- "accessibility": "- Uses `role=\"alertdialog\"` for proper screen reader announcement\n- Has `aria-modal=\"true\"` to indicate modal behavior — note this does not make background content inert; no `inert` attribute is applied, so background content stays reachable by pointer\n- `title` is wired up as `aria-labelledby` and `message` as `aria-describedby`\n- Focus moves to the confirm (or cancel, with `focusCancel`) button when opened\n- Escape key closes the dialog (when `canCancel` is true). The underlying [`Modal`](https://bestax.io/docs/api/components/modal#accessibility) handles it, so one Escape closes the topmost overlay only: a dialog opened over a Modal or a [Sidebar](https://bestax.io/docs/api/components/sidebar) closes first, and the one under it on the next Escape\n- Tab and Shift+Tab cycle within the dialog while it is the topmost modal overlay, also from the underlying [`Modal`](https://bestax.io/docs/api/components/modal)\n- The page doesn't scroll while the dialog is open, through the [`Modal`](https://bestax.io/docs/api/components/modal#accessibility)'s ref-counted lock, shared with `Sidebar` and `Loading`\n- Confirm/cancel buttons are keyboard accessible",
33
+ "accessibility": "- Uses `role=\"alertdialog\"` for proper screen reader announcement\n- Has `aria-modal=\"true\"` to indicate modal behavior — note this does not make background content inert; no `inert` attribute is applied, so background content stays reachable by pointer\n- `title` is wired up as `aria-labelledby` and `message` as `aria-describedby`\n- Focus moves to the confirm (or cancel, with `focusCancel`) button when opened\n- Escape key closes the dialog (when `canCancel` is true). The underlying [`Modal`](https://bestax.io/docs/api/components/modal#accessibility) handles it, so one Escape closes the topmost overlay only: a dialog opened over a Modal or a [Sidebar](https://bestax.io/docs/api/components/sidebar) closes first, and the one under it on the next Escape\n- Tab and Shift+Tab cycle within the dialog while it is the topmost modal overlay, also from the underlying [`Modal`](https://bestax.io/docs/api/components/modal)\n- A popup in the message, such as a `Popover` or `HoverCard` with `appendToBody`, is portaled into the `alertdialog`, the element with `aria-modal`, so a screen reader that honors it reaches the popup. A `portalContainer` a [`ConfigProvider`](https://bestax.io/docs/api/helpers/config#where-portaled-content-goes) sets still takes it\n- The page doesn't scroll while the dialog is open, through the [`Modal`](https://bestax.io/docs/api/components/modal#accessibility)'s ref-counted lock, shared with `Sidebar` and `Loading`\n- Confirm/cancel buttons are keyboard accessible",
34
34
  "related": ["Modal", "Toast"],
35
35
  "storybook": "https://bestax.io/storybook/?path=/story/components-dialog",
36
36
  "summary": "The `Dialog` component provides ready-made confirm and alert dialogs, so a destructive action stays one `await dialog.confirm()` call away.",