@nxgt/material 3.96.0 → 3.96.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/{components-D4U2GkPU.js → components-CrglpttC.js} +2252 -2243
- package/dist/components.js +1 -1
- package/dist/lib/components/ui/fields/switch/use-switch-checked.d.ts +1 -1
- package/dist/lib/components/ui/layout/app-shell/app-breadcrumb.d.ts +3 -1
- package/dist/lib/components/ui/layout/app-shell/app-breadcrumb.utils.d.ts +13 -0
- package/dist/main.js +1 -1
- package/dist/material.css +1 -1
- package/docs/components/form-fields.md +1 -1
- package/docs/guides/app-shell.md +5 -0
- package/package.json +1 -1
|
@@ -1779,7 +1779,7 @@ import { Switch } from '@nxgt/material/components';
|
|
|
1779
1779
|
| `helperText` | `ReactNode` | — | line under the row (or under the bare switch), with or without `placeholder`; `SwitchFormField` puts the validation message here |
|
|
1780
1780
|
| `error` | `boolean` | — | error border on the row, error helper text, `aria-invalid` on the `switch` (a passed `aria-invalid` wins) |
|
|
1781
1781
|
| `thumbIcons` | `boolean` | `false` | a 24px thumb in both states, a cross when off and a check when on |
|
|
1782
|
-
| `variant` | `'box' \| 'plain'` | `'box'` | `plain` draws a labelled switch with no border
|
|
1782
|
+
| `variant` | `'box' \| 'plain'` | `'box'` | `plain` draws a labelled switch with no border: the label beside the switch. No effect on a bare switch |
|
|
1783
1783
|
| `className` | `string` | — | on the outermost element: the field, else the row, else the switch |
|
|
1784
1784
|
|
|
1785
1785
|
```tsx
|
package/docs/guides/app-shell.md
CHANGED
|
@@ -1838,6 +1838,11 @@ The trail is hidden when no route has a breadcrumb. A crumb whose
|
|
|
1838
1838
|
its separator, as `handle.title` accepts `null`, so the trail is hidden too
|
|
1839
1839
|
when every matched route returns `null`.
|
|
1840
1840
|
|
|
1841
|
+
The first crumb's icon or text starts on the content's left edge (the right in a
|
|
1842
|
+
right-to-left page), the same line as the page title below: it drops its own start
|
|
1843
|
+
inset instead of pulling the trail out of the column; a coarse pointer keeps the
|
|
1844
|
+
44px hit area.
|
|
1845
|
+
|
|
1841
1846
|
An error page rendered by `ActivityLayout` still matches the failed route, so
|
|
1842
1847
|
it would show its trail ("Home > Section" on a 404). Pass `breadcrumb={false}`
|
|
1843
1848
|
to render the layout without the trail:
|