@nxgt/material 3.14.0 → 3.16.0

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 (35) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/components/ui/display/chip/chip.css +12 -2
  4. package/dist/{components-BOwj2IuR.js → components-BOF9frx3.js} +1893 -1774
  5. package/dist/components.js +5 -5
  6. package/dist/{dialog-rOMjlKJ7.js → dialog-YHZJjDrI.js} +1 -0
  7. package/dist/editor.js +3 -3
  8. package/dist/{icon-badge-_tY1MwU9.js → icon-badge-C0TGvF9o.js} +2 -2
  9. package/dist/lib/components/ui/display/chip/chip.d.ts +1 -1
  10. package/dist/lib/components/ui/display/chip/chip.variants.d.ts +5 -2
  11. package/dist/lib/components/ui/feedback/confirm-dialog/confirm-dialog-rules.d.ts +17 -0
  12. package/dist/lib/components/ui/feedback/confirm-dialog/confirm-dialog.d.ts +10 -2
  13. package/dist/lib/components/ui/layout/app-shell/activity-content-aside.d.ts +22 -0
  14. package/dist/lib/components/ui/layout/app-shell/activity-content-aside.types.d.ts +36 -0
  15. package/dist/lib/components/ui/layout/app-shell/activity-content.d.ts +15 -2
  16. package/dist/lib/components/ui/layout/app-shell/index.d.ts +1 -0
  17. package/dist/lib/components/ui/overlays/command/command.d.ts +7 -1
  18. package/dist/lib/components/ui/overlays/dialog/dialog-variants.d.ts +1 -1
  19. package/dist/main.js +5 -5
  20. package/dist/map.js +2 -2
  21. package/dist/material.css +1 -1
  22. package/dist/pdf-reader.js +1 -1
  23. package/dist/{public-D_Gz7wgr.js → public-Bj3rGSfS.js} +1 -1
  24. package/dist/{use-chat-composer-P4GxmCHa.js → use-chat-composer-CoXmJCkr.js} +7 -7
  25. package/docs/components/data-display.md +2 -2
  26. package/docs/components/feedback-and-status.md +4 -0
  27. package/docs/components/navigation-and-layout.md +3 -0
  28. package/docs/components/overlays-and-menus.md +2 -1
  29. package/docs/components/primitives.md +2 -0
  30. package/docs/components/selection-and-choice.md +3 -1
  31. package/docs/guides/app-shell.md +52 -0
  32. package/docs/guides/theming.md +1 -0
  33. package/docs/troubleshooting.md +44 -0
  34. package/lib/components/ui/display/chip/chip.css +12 -2
  35. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @nxgt/material
2
2
 
3
+ ## 3.16.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1566](https://github.com/softistx/nxgt-material/pull/1566) [`b52e65b`](https://github.com/softistx/nxgt-material/commit/b52e65b85f4fa00830d3689a2d468cd0df71e62c) Thanks [@SteveGT96](https://github.com/SteveGT96)! - `ActivityContent` takes a side panel and a capped main column. `aside` (with `asideLabel` or `asideLabelledBy`, `asideSide`, `asideWidth`, `asideFrom`, `asideSticky`, `asideStack`, `asideClassName`) puts a named `complementary` landmark beside the content from `xl` (1280px; `lg` and `2xl` too) and stacks it after the content, or before it, on a narrower screen. The switch is CSS only, so the server's HTML and a phone's first paint are right, and the panel sticks under the app bar in `scroll="document"` and `scroll="container"`, scrolling inside itself and focusable only while it overflows ([#1551](https://github.com/softistx/nxgt-material/issues/1551)). `width="form" | "reading"` caps the main column at 48rem or 72ch, the panel right beside it with no gutter, and `width` works without a panel ([#1552](https://github.com/softistx/nxgt-material/issues/1552)). A screen without `aside` or `width` renders the same markup as before. `--nxgt-aside-width` sets the default panel width (20rem).
8
+
9
+ ## 3.15.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#1543](https://github.com/softistx/nxgt-material/pull/1543) [`b7025f2`](https://github.com/softistx/nxgt-material/commit/b7025f2433e34bf21211c7d902605593b868172e) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Five consumer-reported UX gaps. `ChipGroupField` and `Chip` take `size="lg"`, a 44px box at every pointer ([#1529](https://github.com/softistx/nxgt-material/issues/1529)). A `Kbd` and the `+` of a `KbdShortcut` inside a filled `Button` take the button's text colour, so the shortcut keeps its contrast ([#1530](https://github.com/softistx/nxgt-material/issues/1530)). `ConfirmDialog` takes `confirmDisabled` and `lockOnRefusal` (off by default: the confirm button stays disabled while a refusal's error shows), and a destructive one puts Cancel first on a phone ([#1531](https://github.com/softistx/nxgt-material/issues/1531)). Every field's label and control rows stay at the top, so a `ComboboxField` or `PhoneField` no longer sinks beside a `TextField` or `DateField` with a helper text ([#1532](https://github.com/softistx/nxgt-material/issues/1532)). `CommandDialog` is pinned under the top edge below 640px by default, with `mobilePresentation` (`'dialog' | 'top' | 'fullscreen'`) to change it (`mobilePresentation="dialog"` restores the centred dialog), and `DialogContent` gets the `top` presentation ([#1533](https://github.com/softistx/nxgt-material/issues/1533)).
14
+
3
15
  ## 3.14.0
4
16
 
5
17
  ### Minor Changes
package/README.md CHANGED
@@ -643,7 +643,7 @@ Not components: what the stylesheet gives any element.
643
643
 
644
644
  | Preview | Component | What it does | @nxgt/material-vue |
645
645
  | --- | --- | --- | --- |
646
- | <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/navigation-layout-appshell.webp" width="120" alt="ActivityLayout"> | [`ActivityLayout`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/navigation-and-layout.md#activitylayout), `ActivityContent`, `AppSidebar`, `AppHeader`, `AppBreadcrumb`, `AppBreadcrumbItem`, `AppBreadcrumbSeparator` | App shell: sidebar built from `items`, a header with a mobile sheet, route breadcrumbs and a titled page; entries are real links, and `linkComponent` swaps the link; it draws the theme's background (Lavande's is the gradient), `backdrop` puts a `/backgrounds` preset behind it for one screen, and `backdrop={false}` draws a plain page. See the [app shell guide](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/guides/app-shell.md). | `ActivityLayout`, `ActivityContent`, `AppSidebar`, `AppHeader`, `AppBreadcrumb` |
646
+ | <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/navigation-layout-appshell.webp" width="120" alt="ActivityLayout"> | [`ActivityLayout`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/navigation-and-layout.md#activitylayout), `ActivityContent`, `AppSidebar`, `AppHeader`, `AppBreadcrumb`, `AppBreadcrumbItem`, `AppBreadcrumbSeparator` | App shell: sidebar built from `items`, a header with a mobile sheet, route breadcrumbs and a titled page; entries are real links, and `linkComponent` swaps the link; it draws the theme's background (Lavande's is the gradient), `backdrop` puts a `/backgrounds` preset behind it for one screen, and `backdrop={false}` draws a plain page. `ActivityContent` takes an `aside` side panel (beside the content from 1280px in CSS only, sticky under the app bar, a named `complementary` landmark, stacked below) and `width="form" \| "reading"` to cap the main column with the panel right beside it. See the [app shell guide](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/guides/app-shell.md). | `ActivityLayout`, `ActivityContent`, `AppSidebar`, `AppHeader`, `AppBreadcrumb` |
647
647
  | <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/navigation-layout-accountmenu.webp" width="120" alt="AccountMenu"> | [`AccountMenu`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/navigation-and-layout.md#accountmenu) | The app bar's avatar menu: named after the account, the name and e-mail, the app's links, then an optional Theme choice (`themeChoice`) and a destructive Sign out with a busy state. | `AccountMenu` |
648
648
  | <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/navigation-layout-authcard.webp" width="120" alt="AuthCard"> | [`AuthCard`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/navigation-and-layout.md#authcard) | The frame of a signed-out page: one `main`, a centred card whose title is the `h1` (focusable on an end state), a status or alert notice, a brand and toolbar row, safe-area padding. | `AuthCard` |
649
649
  | <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/navigation-layout-sidebar.webp" width="120" alt="Sidebar"> | [`Sidebar`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/navigation-and-layout.md#sidebar), `SidebarHeader`, `SidebarContent`, `SidebarFooter`, `SidebarMenuItem`, `SidebarMenuLabel` | Collapsible navigation sidebar with icons, tooltips and active items. | `Sidebar` (same parts) |
@@ -1,6 +1,6 @@
1
1
  /* Chip: what the three looks share (data-look hairline, soft, tag). Sizes:
2
- * default 28px, sm 24px (both at least the 24px target of WCAG 2.5.8). The
3
- * label truncates as one piece; the ✕ is drawn small, its target is 24×24
2
+ * default 28px, sm 24px (both at least the 24px target of WCAG 2.5.8), lg
3
+ * 44px (the touch target). The label truncates as one piece; the ✕ is drawn small, its target is 24×24
4
4
  * through ::after, and it has its own focus ring. */
5
5
  @layer components {
6
6
  .nxgt-chip {
@@ -50,6 +50,16 @@
50
50
  --chip-gap: 0.25rem;
51
51
  --chip-x: 1rem;
52
52
  }
53
+ /* lg: a 44px box at every pointer (the touch target, #1529). */
54
+ .nxgt-chip[data-size="lg"] {
55
+ --chip-h: 2.75rem;
56
+ --chip-px: 1rem;
57
+ --chip-font: 0.9375rem;
58
+ --chip-icon: 1rem;
59
+ --chip-gap: 0.375rem;
60
+ --chip-x: 1.5rem;
61
+ min-width: 2.75rem;
62
+ }
53
63
  button.nxgt-chip,
54
64
  .nxgt-chip > button[data-slot="chip-body"] {
55
65
  cursor: pointer;