@canonical/react-ds-app 0.47.0 → 0.48.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 (69) hide show
  1. package/README.md +2 -0
  2. package/dist/esm/lib/ApplicationLayout/ApplicationLayout.js +2 -0
  3. package/dist/esm/lib/ApplicationLayout/ApplicationLayout.js.map +1 -1
  4. package/dist/esm/lib/ContentLayout/ContentLayout.js +2 -0
  5. package/dist/esm/lib/ContentLayout/ContentLayout.js.map +1 -1
  6. package/dist/esm/lib/SideNavigation/SideNavigation.js +16 -15
  7. package/dist/esm/lib/SideNavigation/SideNavigation.js.map +1 -1
  8. package/dist/esm/lib/SideNavigation/common/CollapseToggle/CollapseToggle.js +1 -1
  9. package/dist/esm/lib/SideNavigation/common/Content/Content.js +14 -11
  10. package/dist/esm/lib/SideNavigation/common/Content/Content.js.map +1 -1
  11. package/dist/esm/lib/SideNavigation/common/Content/styles.css +9 -0
  12. package/dist/esm/lib/SideNavigation/common/ContextSwitcher/ContextSwitcher.js +5 -4
  13. package/dist/esm/lib/SideNavigation/common/ContextSwitcher/ContextSwitcher.js.map +1 -1
  14. package/dist/esm/lib/SideNavigation/common/Footer/Footer.js +4 -3
  15. package/dist/esm/lib/SideNavigation/common/Footer/Footer.js.map +1 -1
  16. package/dist/esm/lib/SideNavigation/common/Group/Group.js +6 -3
  17. package/dist/esm/lib/SideNavigation/common/Group/Group.js.map +1 -1
  18. package/dist/esm/lib/SideNavigation/common/GroupHeader/GroupHeader.js +1 -1
  19. package/dist/esm/lib/SideNavigation/common/Header/Header.js +1 -1
  20. package/dist/esm/lib/SideNavigation/common/Item/Item.js +1 -1
  21. package/dist/esm/lib/SideNavigation/common/ItemButton/ItemButton.js +1 -1
  22. package/dist/esm/lib/SideNavigation/common/ItemExpandable/ItemExpandable.js +1 -1
  23. package/dist/esm/lib/SideNavigation/common/ItemExpandable/styles.css +1 -1
  24. package/dist/esm/lib/SideNavigation/common/NavTree/NavTree.js +12 -14
  25. package/dist/esm/lib/SideNavigation/common/NavTree/NavTree.js.map +1 -1
  26. package/dist/esm/lib/SideNavigation/styles.css +2 -5
  27. package/dist/esm/lib/SidePanel/Provider.js +5 -1
  28. package/dist/esm/lib/SidePanel/Provider.js.map +1 -1
  29. package/dist/esm/lib/SidePanel/common/Footer/Footer.js +5 -0
  30. package/dist/esm/lib/SidePanel/common/Footer/Footer.js.map +1 -1
  31. package/dist/esm/lib/SidePanel/common/Footer/styles.css +5 -5
  32. package/dist/esm/lib/SidePanel/common/Header/styles.css +4 -3
  33. package/dist/esm/lib/SidePanel/styles.css +2 -1
  34. package/dist/esm/lib/ViewLayout/ViewLayout.js +2 -0
  35. package/dist/esm/lib/ViewLayout/ViewLayout.js.map +1 -1
  36. package/dist/types/lib/ApplicationLayout/ApplicationLayout.d.ts +2 -0
  37. package/dist/types/lib/ApplicationLayout/ApplicationLayout.d.ts.map +1 -1
  38. package/dist/types/lib/ContentLayout/ContentLayout.d.ts +2 -0
  39. package/dist/types/lib/ContentLayout/ContentLayout.d.ts.map +1 -1
  40. package/dist/types/lib/SideNavigation/SideNavigation.d.ts +14 -13
  41. package/dist/types/lib/SideNavigation/SideNavigation.d.ts.map +1 -1
  42. package/dist/types/lib/SideNavigation/common/CollapseToggle/CollapseToggle.d.ts +1 -1
  43. package/dist/types/lib/SideNavigation/common/Content/Content.d.ts +11 -9
  44. package/dist/types/lib/SideNavigation/common/Content/Content.d.ts.map +1 -1
  45. package/dist/types/lib/SideNavigation/common/Content/types.d.ts +7 -1
  46. package/dist/types/lib/SideNavigation/common/Content/types.d.ts.map +1 -1
  47. package/dist/types/lib/SideNavigation/common/ContextSwitcher/ContextSwitcher.d.ts +4 -3
  48. package/dist/types/lib/SideNavigation/common/ContextSwitcher/ContextSwitcher.d.ts.map +1 -1
  49. package/dist/types/lib/SideNavigation/common/ContextSwitcher/types.d.ts +2 -2
  50. package/dist/types/lib/SideNavigation/common/ContextSwitcher/types.d.ts.map +1 -1
  51. package/dist/types/lib/SideNavigation/common/Footer/Footer.d.ts +4 -3
  52. package/dist/types/lib/SideNavigation/common/Footer/Footer.d.ts.map +1 -1
  53. package/dist/types/lib/SideNavigation/common/Group/Group.d.ts +4 -3
  54. package/dist/types/lib/SideNavigation/common/Group/Group.d.ts.map +1 -1
  55. package/dist/types/lib/SideNavigation/common/Group/types.d.ts +5 -0
  56. package/dist/types/lib/SideNavigation/common/Group/types.d.ts.map +1 -1
  57. package/dist/types/lib/SideNavigation/common/GroupHeader/GroupHeader.d.ts +1 -1
  58. package/dist/types/lib/SideNavigation/common/Header/Header.d.ts +1 -1
  59. package/dist/types/lib/SideNavigation/common/Item/Item.d.ts +1 -1
  60. package/dist/types/lib/SideNavigation/common/ItemButton/ItemButton.d.ts +1 -1
  61. package/dist/types/lib/SideNavigation/common/ItemExpandable/ItemExpandable.d.ts +1 -1
  62. package/dist/types/lib/SideNavigation/common/NavTree/NavTree.d.ts.map +1 -1
  63. package/dist/types/lib/SideNavigation/types.d.ts +9 -9
  64. package/dist/types/lib/SideNavigation/types.d.ts.map +1 -1
  65. package/dist/types/lib/SidePanel/Provider.d.ts.map +1 -1
  66. package/dist/types/lib/SidePanel/common/Footer/Footer.d.ts.map +1 -1
  67. package/dist/types/lib/ViewLayout/ViewLayout.d.ts +2 -0
  68. package/dist/types/lib/ViewLayout/ViewLayout.d.ts.map +1 -1
  69. package/package.json +21 -21
package/README.md CHANGED
@@ -20,6 +20,8 @@ import "@canonical/styles";
20
20
 
21
21
  Each component brings its own stylesheet when you import it.
22
22
 
23
+ Testing with Jest? `@canonical/react-ds-global`'s [Testing with Jest](../ds-global/README.md#testing-with-jest) section covers the ESM transform, the stylesheet stub, the mapper entry this package needs and the jsdom dialog stub.
24
+
23
25
  ## Usage
24
26
 
25
27
  ```tsx
@@ -7,6 +7,8 @@ const componentCssClassName = "ds application-layout";
7
7
  * Divides the viewport between a leading navigation rail (named slot,
8
8
  * `min-content`) and the main content area (default slot, `1fr`), per the
9
9
  * ontology instance `apps.layout.application_layout`.
10
+ *
11
+ * @implements ds:apps.layout.application_layout
10
12
  */
11
13
  const ApplicationLayout = ({ className, children, navigation, ...props }) => {
12
14
  return (_jsxs("div", { className: [componentCssClassName, className].filter(Boolean).join(" "), ...props, children: [navigation != null && _jsx("div", { className: "navigation", children: navigation }), _jsx("div", { className: "content", children: children })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationLayout.js","sourceRoot":"","sources":["../../../../src/lib/ApplicationLayout/ApplicationLayout.tsx"],"names":[],"mappings":";AAIA,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AAEtD;;;;;;GAMG;AACH,MAAM,iBAAiB,GAAG,CAAC,EACzB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,GAAG,KAAK,EACe,EAAsB,EAAE;IAC/C,OAAO,CACL,eACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACnE,KAAK,aAER,UAAU,IAAI,IAAI,IAAI,cAAK,SAAS,EAAC,YAAY,YAAE,UAAU,GAAO,EACrE,cAAK,SAAS,EAAC,SAAS,YAAE,QAAQ,GAAO,IACrC,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"ApplicationLayout.js","sourceRoot":"","sources":["../../../../src/lib/ApplicationLayout/ApplicationLayout.tsx"],"names":[],"mappings":";AAIA,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AAEtD;;;;;;;;GAQG;AACH,MAAM,iBAAiB,GAAG,CAAC,EACzB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,GAAG,KAAK,EACe,EAAsB,EAAE;IAC/C,OAAO,CACL,eACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACnE,KAAK,aAER,UAAU,IAAI,IAAI,IAAI,cAAK,SAAS,EAAC,YAAY,YAAE,UAAU,GAAO,EACrE,cAAK,SAAS,EAAC,SAAS,YAAE,QAAQ,GAAO,IACrC,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -9,6 +9,8 @@ const componentCssClassName = "ds content-layout";
9
9
  * fixed-responsive breakpoint columns by default, or the intrinsic
10
10
  * (fluid auto-fill) grid via `grid="intrinsic"`. Children are grid items;
11
11
  * span them via `grid-column`/`grid-row` where a card needs more room.
12
+ *
13
+ * @implements ds:apps.layout.content_layout
12
14
  */
13
15
  const ContentLayout = ({ className, children, grid = "responsive", ...props }) => {
14
16
  return (_jsx("div", { className: [componentCssClassName, "grid", grid, className]
@@ -1 +1 @@
1
- {"version":3,"file":"ContentLayout.js","sourceRoot":"","sources":["../../../../src/lib/ContentLayout/ContentLayout.tsx"],"names":[],"mappings":";AAIA,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,mBAAmB,CAAC;AAElD;;;;;;;;GAQG;AACH,MAAM,aAAa,GAAG,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,IAAI,GAAG,YAAY,EACnB,GAAG,KAAK,EACW,EAAsB,EAAE;IAC3C,OAAO,CACL,cACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,CAAC;aACxD,MAAM,CAAC,OAAO,CAAC;aACf,IAAI,CAAC,GAAG,CAAC,KACR,KAAK,YAER,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"ContentLayout.js","sourceRoot":"","sources":["../../../../src/lib/ContentLayout/ContentLayout.tsx"],"names":[],"mappings":";AAIA,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,mBAAmB,CAAC;AAElD;;;;;;;;;;GAUG;AACH,MAAM,aAAa,GAAG,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,IAAI,GAAG,YAAY,EACnB,GAAG,KAAK,EACW,EAAsB,EAAE;IAC3C,OAAO,CACL,cACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,CAAC;aACxD,MAAM,CAAC,OAAO,CAAC;aACf,IAAI,CAAC,GAAG,CAAC,KACR,KAAK,YAER,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useCallback, useEffect, useId, useState } from "react";
3
- import { Content, ContextSwitcher, Footer, Header } from "./common/index.js";
3
+ import { Content, Footer, Header } from "./common/index.js";
4
4
  import { DEFAULT_MESSAGES } from "./constants.js";
5
5
  import { useCollapseShortcut } from "./hooks/useCollapseShortcut/index.js";
6
6
  import "./styles.css";
@@ -11,17 +11,18 @@ const componentCssClassName = "ds side-navigation";
11
11
  * `defaultExpanded` — and wires the header's collapse toggle to the content
12
12
  * region it controls.
13
13
  *
14
- * Four regions: Header (branding, collapse toggle), the optional
15
- * ContextSwitcher (a `role="menu"` select-like widget — not navigation,
16
- * so it sits outside the landmark between Header and Content; hidden
17
- * when collapsed, where labels are unviable),
18
- * Content (the main `<nav>` landmark) and Footer (user profile, settings
19
- * and non-navigational actions). The root element is a plain `<div>` and
20
- * the component's single *navigation* landmark is Content's `<nav>`, so
21
- * screen readers announce exactly one navigation region; the regions
22
- * themselves are `<header>`/`<footer>` elements, which additionally
23
- * expose banner/contentinfo landmarks. `aria-label` is forwarded to the
24
- * `<nav>` and defaults to `"Main navigation"`.
14
+ * Three regions: Header (branding, collapse toggle), Content (the
15
+ * optional ContextSwitcher, then the main `<nav>` landmark) and Footer
16
+ * (user profile, settings and non-navigational actions). The context
17
+ * switcher is a `role="menu"` select-like widget — not navigation — so it
18
+ * sits before the landmark, not inside it, and hides with Content when
19
+ * collapsed. The root element is a plain `<div>` and the component's
20
+ * single *navigation* landmark is Content's `<nav>`, so screen readers
21
+ * announce exactly one navigation region; the regions themselves are
22
+ * `<header>`/`<footer>` elements, which additionally expose
23
+ * banner/contentinfo landmarks. The footer always renders, empty without
24
+ * `footerRoot`. `aria-label` is forwarded to the `<nav>` and defaults to
25
+ * `"Main navigation"`.
25
26
  *
26
27
  * A visually hidden "Skip to main content" link is the first element in the
27
28
  * component's DOM order, so keyboard users can bypass the navigation block;
@@ -31,12 +32,12 @@ const componentCssClassName = "ds side-navigation";
31
32
  * pass a router `Link` to integrate client-side navigation. The active item is
32
33
  * resolved from `currentUrl`.
33
34
  *
34
- * Consumption pattern: data-driven only. Pass props and all four regions
35
+ * Consumption pattern: data-driven only. Pass props and all three regions
35
36
  * build; row-level and region components are private
36
37
  * (`cs:react.component.subcomponent_export_api` — no dot-static exports),
37
38
  * and render exclusively from data.
38
39
  *
39
- * @implements ds:apps.pattern.side-navigation
40
+ * @implements ds:apps.component.side_navigation
40
41
  */
41
42
  const SideNavigation = ({ className, brand, applicationName, root, contextSwitcher, footerRoot, LinkComponent = "a", currentUrl, skipTo = "#main-content", defaultExpanded: defaultExpandedProp, keyboardShortcut = true, "aria-label": ariaLabel, messages: messagesProp, ...props }) => {
42
43
  const contentId = useId();
@@ -61,7 +62,7 @@ const SideNavigation = ({ className, brand, applicationName, root, contextSwitch
61
62
  // Ctrl+B rail-collapse shortcut — on unless
62
63
  // `keyboardShortcut` opts out. See hooks/useCollapseShortcut.
63
64
  useCollapseShortcut({ condition: keyboardShortcut, onTrigger: handleToggle });
64
- return (_jsxs("div", { className: [componentCssClassName, className].filter(Boolean).join(" "), "data-expanded": expanded, ...props, children: [_jsx("a", { className: "skip-link", href: skipTo, children: messages.skipToContent() }), _jsx(Header, { brand: brand, applicationName: applicationName, expanded: expanded, onToggle: handleToggle, collapseControls: contentId, collapseToggleMessages: messages }), contextSwitcher ? (_jsx(ContextSwitcher, { ...contextSwitcher })) : null, _jsx(Content, { id: contentId, root: root, LinkComponent: LinkComponent, currentUrl: currentUrl, "aria-label": ariaLabel ?? messages.navigation() }), footerRoot ? (_jsx(Footer, { root: footerRoot, LinkComponent: LinkComponent, currentUrl: currentUrl })) : null] }));
65
+ return (_jsxs("div", { className: [componentCssClassName, className].filter(Boolean).join(" "), "data-expanded": expanded, ...props, children: [_jsx("a", { className: "skip-link", href: skipTo, children: messages.skipToContent() }), _jsx(Header, { brand: brand, applicationName: applicationName, expanded: expanded, onToggle: handleToggle, collapseControls: contentId, collapseToggleMessages: messages }), _jsx(Content, { id: contentId, root: root, contextSwitcher: contextSwitcher, LinkComponent: LinkComponent, currentUrl: currentUrl, "aria-label": ariaLabel ?? messages.navigation() }), _jsx(Footer, { root: footerRoot, LinkComponent: LinkComponent, currentUrl: currentUrl })] }));
65
66
  };
66
67
  export default SideNavigation;
67
68
  //# sourceMappingURL=SideNavigation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SideNavigation.js","sourceRoot":"","sources":["../../../../src/lib/SideNavigation/SideNavigation.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAE3E,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,oBAAoB,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,cAAc,GAAG,CAAC,EACtB,SAAS,EACT,KAAK,EACL,eAAe,EACf,IAAI,EACJ,eAAe,EACf,UAAU,EACV,aAAa,GAAG,GAAG,EACnB,UAAU,EACV,M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C,aAAa,EAAE,GACvB,EACJ,KAAC,MAAM,IACL,KAAK,EAAE,KAAK,EACZ,eAAe,EAAE,eAAe,EAChC,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,YAAY,EACtB,gBAAgB,EAAE,SAAS,EAC3B,sBAAsB,EAAE,QAAQ,GAChC,EACF,KAAC,OAAO,IACN,EAAE,EAAE,SAAS,EACb,IAAI,EAAE,IAAI,EACV,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,UAAU,gBACV,SAAS,IAAI,QAAQ,CAAC,UAAU,EAAE,GAC9C,EACF,KAAC,MAAM,IACL,IAAI,EAAE,UAAU,EAChB,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,UAAU,GACtB,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -27,7 +27,7 @@ const CollapseToggleTrigger = ({ className, expanded = true, messages: messagesP
27
27
  * type across state changes, so the button — and with it keyboard focus
28
28
  * and hover state — survives every toggle instead of remounting.
29
29
  *
30
- * @implements ds:apps.subcomponent.side-navigation-collapse-toggle
30
+ * @implements ds:apps.subcomponent.side_navigation-collapse_toggle
31
31
  */
32
32
  const CollapseToggle = ({ expanded = true, messages, ...props }) => {
33
33
  const { collapse, expand } = { ...DEFAULT_MESSAGES, ...messages };
@@ -1,20 +1,23 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ContextSwitcher } from "../ContextSwitcher/index.js";
2
3
  import { NavTree } from "../NavTree/index.js";
3
4
  import "./styles.css";
4
5
  const componentCssClassName = "ds side-navigation-content";
5
6
  /**
6
- * SideNavigation.Content — the component's main `<nav>` landmark, and the
7
- * only one: navigation rows are links and expandable items exclusively
8
- * (actions are Footer's job). Data-only — rows render exclusively from the
9
- * `root` tree (row components are private; there is no children escape
10
- * hatch into the landmark). `aria-label` defaults to `"Main navigation"`
11
- * and may be overridden by the consumer; with no `root`, the landmark
12
- * renders empty (the landmark contract stays stable).
7
+ * SideNavigation.Content — the scrolling region between Header and Footer.
8
+ * It holds the optional context switcher and, after it, the component's
9
+ * only `<nav>` landmark. The switcher is a `role="menu"` widget, not
10
+ * navigation, so it sits outside the landmark. Navigation rows are links
11
+ * and expandable items exclusively (actions are Footer's job). Data-only —
12
+ * rows render exclusively from the `root` tree (row components are
13
+ * private; there is no children escape hatch into the landmark).
14
+ * `aria-label` names the `<nav>`; with no `root`, the landmark renders
15
+ * empty (the landmark contract stays stable).
13
16
  *
14
- * @implements ds:apps.subcomponent.side-navigation-content
17
+ * @implements ds:apps.subcomponent.side_navigation-content
15
18
  */
16
- const Content = ({ className, root, LinkComponent = "a", currentUrl, ...props }) => {
17
- return (_jsx("nav", { className: [componentCssClassName, className].filter(Boolean).join(" "), ...props, children: root ? (_jsx(NavTree, { root: root, currentUrl: currentUrl, LinkComponent: LinkComponent })) : null }));
19
+ const Content = ({ className, root, contextSwitcher, LinkComponent = "a", currentUrl, "aria-label": ariaLabel, ...props }) => {
20
+ return (_jsxs("div", { className: [componentCssClassName, className].filter(Boolean).join(" "), ...props, children: [contextSwitcher ? _jsx(ContextSwitcher, { ...contextSwitcher }) : null, _jsx("nav", { "aria-label": ariaLabel, children: root ? (_jsx(NavTree, { root: root, currentUrl: currentUrl, LinkComponent: LinkComponent })) : null })] }));
18
21
  };
19
22
  export default Content;
20
23
  //# sourceMappingURL=Content.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/Content/Content.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,4BAA4B,CAAC;AAE3D;;;;;;;;;;GAUG;AACH,MAAM,OAAO,GAAG,CAAC,EACf,SAAS,EACT,IAAI,EACJ,aAAa,GAAG,GAAG,EACnB,UAAU,EACV,GAAG,KAAK,EACK,EAAsB,EAAE;IACrC,OAAO,CACL,cACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACnE,KAAK,YAER,IAAI,CAAC,CAAC,CAAC,CACN,KAAC,OAAO,IACN,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,GAC5B,CACH,CAAC,CAAC,CAAC,IAAI,GACJ,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/Content/Content.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,4BAA4B,CAAC;AAE3D;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,GAAG,CAAC,EACf,SAAS,EACT,IAAI,EACJ,eAAe,EACf,aAAa,GAAG,GAAG,EACnB,UAAU,EACV,YAAY,EAAE,SAAS,EACvB,GAAG,KAAK,EACK,EAAsB,EAAE;IACrC,OAAO,CACL,eACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACnE,KAAK,aAER,eAAe,CAAC,CAAC,CAAC,KAAC,eAAe,OAAK,eAAe,GAAI,CAAC,CAAC,CAAC,IAAI,EAClE,4BAAiB,SAAS,YACvB,IAAI,CAAC,CAAC,CAAC,CACN,KAAC,OAAO,IACN,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,GAC5B,CACH,CAAC,CAAC,CAAC,IAAI,GACJ,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -56,5 +56,14 @@
56
56
  flex: 0 0 auto;
57
57
  }
58
58
  }
59
+
60
+ /* The navigation landmark inside the region (anatomy:
61
+ SideNavigation.Content > Nav). The context switcher sits before it,
62
+ outside the landmark; the groups keep the region's 0.5rem rhythm. */
63
+ & > nav {
64
+ display: flex;
65
+ flex-direction: column;
66
+ gap: var(--dimension-100);
67
+ }
59
68
  }
60
69
  }
@@ -12,7 +12,7 @@ const ContextItemContent = ({ item, }) => {
12
12
  if (renderLabel != null) {
13
13
  return (_jsxs("span", { className: "create-context", children: [_jsx(Icon, { icon: "plus" }), _jsx("span", { className: "label", children: renderLabel })] }));
14
14
  }
15
- return (_jsxs("span", { className: ["content", isCurrent && "current"].filter(Boolean).join(" "), children: [_jsx("span", { className: "name", children: item.label }), description ? _jsx("span", { className: "description", children: description }) : null, badge ? _jsx("span", { className: "badge", children: badge }) : null] }));
15
+ return (_jsxs("span", { className: ["content", isCurrent && "current"].filter(Boolean).join(" "), children: [_jsx("span", { className: "name", children: item.label }), _jsx("span", { className: "description", children: description }), badge ? _jsx("span", { className: "badge", children: badge }) : null] }));
16
16
  };
17
17
  /**
18
18
  * SideNavigation.ContextSwitcher — a dropdown for products that divide
@@ -23,10 +23,11 @@ const ContextItemContent = ({ item, }) => {
23
23
  * `SideNavigation.GroupHeader` as a sibling above the dropdown field.
24
24
  *
25
25
  * Not part of the `NavRoot`/`NavGroup` content-tree data model — it
26
- * embeds via `SideNavigation`'s `contextSwitcher` prop slot, its region
27
- * class owning the collapsed-rail hide.
26
+ * embeds via `SideNavigation`'s `contextSwitcher` prop slot and renders
27
+ * inside Content, before the `<nav>` landmark, hiding with Content on the
28
+ * collapsed rail.
28
29
  *
29
- * @implements ds:apps.subcomponent.side-navigation-context-switcher
30
+ * @implements ds:apps.subcomponent.side_navigation-context_switcher
30
31
  */
31
32
  const ContextSwitcher = ({ title, currentContext, contexts, onContextChange, onCreateContext, createContextLabel = "Create context", className, open, onOpenChange, preferredDirections, distance, gutter, maxWidth, autoFit, ...props }) => {
32
33
  const contextItems = contexts.map((context) => ({
@@ -1 +1 @@
1
- {"version":3,"file":"ContextSwitcher.js","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/ContextSwitcher/ContextSwitcher.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAElE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,qCAAqC,CAAC;AAiBpE;;GAEG;AACH,MAAM,kBAAkB,GAAG,CAAC,EAC1B,IAAI,GAGL,EAAsB,EAAE;IACvB,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,GAClD,IAAuB,CAAC;IAE1B,yDAAyD;IACzD,IAAI,WAAW,IAAI,IAAI,EAAE,CAAC;QACxB,OAAO,CACL,gBAAM,SAAS,EAAC,gBAAgB,aAC9B,KAAC,IAAI,IAAC,IAAI,EAAC,MAAM,GAAG,EACpB,eAAM,SAAS,EAAC,OAAO,YAAE,WAAW,GAAQ,IACvC,CACR,CAAC;IACJ,CAAC;IAED,OAAO,CACL,gBACE,SAAS,EAAE,CAAC,SAAS,EAAE,SAAS,IAAI,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAExE,eAAM,SAAS,EAAC,MAAM,YAAE,IAAI,CAAC,KAAK,GAAQ,EACzC,WAAW,CAAC,CAAC,CAAC,eAAM,SAAS,EAAC,aAAa,YAAE,WAAW,GAAQ,CAAC,CAAC,CAAC,IAAI,EACvE,KAAK,CAAC,CAAC,CAAC,eAAM,SAAS,EAAC,OAAO,YAAE,KAAK,GAAQ,CAAC,CAAC,CAAC,IAAI,IACjD,CACR,CAAC;AACJ,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AC,GAAG,KAAK,gBAAgB,EAAE,CAAC;YAClC,eAAe,EAAE,EAAE,CAAC;YACpB,OAAO;QACT,CAAC;QACD,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,KAAK,IAAI,CAAC,GAAG,CAAC,CAAC;QACzE,IAAI,OAAO;YAAE,eAAe,EAAE,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC,CAAC;IAEF,OAAO,CACL,eACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACnE,KAAK,aAER,KAAK,IAAI,IAAI,IAAI,KAAC,WAAW,cAAE,KAAK,GAAe,EACpD,KAAC,cAAc,IACb,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,EAC1B,mBAAmB,EAAE,mBAAmB,EACxC,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,QAAQ,EACN,QAAQ;oBACR,yEAAyE,EAE3E,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,YAAY,YAEtB,gBAAM,SAAS,EAAC,KAAK,aACnB,eAAM,SAAS,EAAC,OAAO,YAAE,cAAc,CAAC,IAAI,GAAQ,EACpD,KAAC,IAAI,IAAC,IAAI,EAAC,cAAc,EAAC,SAAS,EAAC,WAAW,GAAG,IAC7C,GACQ,IACb,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"ContextSwitcher.js","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/ContextSwitcher/ContextSwitcher.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAElE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,c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GAAG,CAAC,KACnE,KAAK,aAER,KAAK,IAAI,IAAI,IAAI,KAAC,WAAW,cAAE,KAAK,GAAe,EACpD,KAAC,cAAc,IACb,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,EAC1B,mBAAmB,EAAE,mBAAmB,EACxC,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,QAAQ,EACN,QAAQ;oBACR,yEAAyE,EAE3E,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,YAAY,YAEtB,gBAAM,SAAS,EAAC,KAAK,aACnB,eAAM,SAAS,EAAC,OAAO,YAAE,cAAc,CAAC,IAAI,GAAQ,EACpD,KAAC,IAAI,IAAC,IAAI,EAAC,cAAc,EAAC,SAAS,EAAC,WAAW,GAAG,IAC7C,GACQ,IACb,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -33,15 +33,16 @@ const FooterRow = ({ item, currentUrl, LinkComponent, }) => {
33
33
  }
34
34
  };
35
35
  /**
36
- * SideNavigation.Footer — optional region pinned to the bottom, reserved
37
- * for user-related content. Data-only: `root` is the footer's only data
36
+ * SideNavigation.Footer — the region pinned to the bottom, reserved for
37
+ * user-related content. It always renders; without items it is an empty
38
+ * `<footer>`. Data-only: `root` is the footer's only data
38
39
  * surface — free-form leaves (`LeafFooterItem`, buttons via
39
40
  * `control`/`onClick`) and depth-1 expandables (`ExpandableFooterItem`,
40
41
  * whose children disclose through the same native `<details>` disclosure
41
42
  * the content tree uses). A certificate-user application, for instance,
42
43
  * composes the `certificate` icon and omits the logout item itself.
43
44
  *
44
- * @implements ds:apps.subcomponent.side-navigation-footer
45
+ * @implements ds:apps.subcomponent.side_navigation-footer
45
46
  */
46
47
  const Footer = ({ className, root, LinkComponent = "a", currentUrl, ...props }) => {
47
48
  const list = root?.items ?? [];
@@ -1 +1 @@
1
- {"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../../../../src/l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,EACtB,aAAa,EAAE,aAAa,IAHvB,KAAK,CAAC,KAAK,CAIhB,CACH,CACF,GACE,CACN,CAAC,CAAC,CAAC,IAAI,GACD,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/Footer/Footer.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,2BAA2B,CAAC;AAQ1D;;;;;;;;;;GAUG;AACH,MAAM,SAAS,GAAG,CAAC,EACjB,IAAI,EACJ,UAAU,EACV,aAAa,GACE,EAAsB,EAAE;IACvC,0EAA0E;IAC1E,MAAM,MAAM,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;IAEpD,MAAM,IAAI,GACR,IAAI,CAAC,OAAO,KAAK,QAAQ,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,OAAO,CAAC;QACtD,CAAC,CAAC,QAAQ;QACV,CAAC,CAAC,IAAI,CAAC,GAAG;YACR,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,OAAO,CAAC;IAEhB,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,MAAM;YACT,OAAO,CACL,KAAC,IAAI,OACC,MAAM,EACV,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,IAAI,CAAC,GAAG,KAAK,UAAU,YAE9B,IAAI,CAAC,KAAK,GACN,CACR,CAAC;QACJ,KAAK,QAAQ;YACX,OAAO,CACL,KAAC,UAAU,OAAK,MAAM,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AAK,EACX,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,IAHvB,KAAK,CAAC,KAAK,CAIhB,CACH,CAAC,IAtBG,KAAK,CAAC,KAAK,CAuBD,CAClB,CAAC,CAAC,CAAC,CACF,KAAC,SAAS,IAER,IAAI,EAAE,KAAK,EACX,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,IAHvB,KAAK,CAAC,KAAK,CAIhB,CACH,CACF,GACE,CACN,CAAC,CAAC,CAAC,IAAI,GACD,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -5,10 +5,13 @@ const componentCssClassName = "ds side-navigation-group";
5
5
  /**
6
6
  * SideNavigation.Group — a named collection of navigation entries, with an
7
7
  * optional SideNavigation.GroupHeader. One of NavTree's direct content
8
- * entries.
8
+ * entries. Starts with a divider when `divider` is set (every group but
9
+ * the first).
9
10
  *
10
- * @implements ds:apps.subcomponent.side-navigation-group
11
+ * @implements ds:apps.subcomponent.side_navigation-item_group
11
12
  */
12
- const Group = ({ label, children, className, ...props }) => (_jsxs("section", { className: [componentCssClassName, className].filter(Boolean).join(" "), ...props, children: [label != null && _jsx(GroupHeader, { children: label }), _jsx("ul", { className: "list", children: children })] }));
13
+ const Group = ({ label,
14
+ // The divider is hidden for now (operator, 2026-11-28); restore the render below.
15
+ divider: _divider = false, children, className, ...props }) => (_jsxs("section", { className: [componentCssClassName, className].filter(Boolean).join(" "), ...props, children: [label != null && _jsx(GroupHeader, { children: label }), _jsx("ul", { className: "list", children: children })] }));
13
16
  export default Group;
14
17
  //# sourceMappingURL=Group.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Group.js","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/Group/Group.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,0BAA0B,CAAC;AAEzD;;;;;;GAMG;AACH,MAAM,KAAK,GAAG,CAAC,EACb,KAAK,EACL,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACG,EAAsB,EAAE,CAAC,CACpC,mBACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACnE,KAAK,aAER,KAAK,IAAI,IAAI,IAAI,KAAC,WAAW,cAAE,KAAK,GAAe,EACpD,aAAI,SAAS,EAAC,MAAM,YAAE,QAAQ,GAAM,IAC5B,CACX,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Group.js","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/Group/Group.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,0BAA0B,CAAC;AAEzD;;;;;;;GAOG;AACH,MAAM,KAAK,GAAG,CAAC,EACb,KAAK;AACL,kFAAkF;AAClF,OAAO,EAAE,QAAQ,GAAG,KAAK,EACzB,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACG,EAAsB,EAAE,CAAC,CACpC,mBACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACnE,KAAK,aAGR,KAAK,IAAI,IAAI,IAAI,KAAC,WAAW,cAAE,KAAK,GAAe,EACpD,aAAI,SAAS,EAAC,MAAM,YAAE,QAAQ,GAAM,IAC5B,CACX,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -6,7 +6,7 @@ const componentCssClassName = "ds side-navigation-group-header";
6
6
  * SideNavigation.Group's entries. Purely presentational; rendered by Group
7
7
  * when its `label` is set.
8
8
  *
9
- * @implements ds:apps.subcomponent.side-navigation-group-header
9
+ * @implements ds:apps.subcomponent.side_navigation-group_header
10
10
  */
11
11
  const GroupHeader = ({ children, className, ...props }) => (_jsx("span", { className: [componentCssClassName, className].filter(Boolean).join(" "),
12
12
  // `title` — native tooltip fallback for a truncated header.
@@ -9,7 +9,7 @@ const componentCssClassName = "ds side-navigation-header";
9
9
  * switches to a centred column — the toggle relocates below the logo rather
10
10
  * than beside it — driven by `data-expanded` on the root.
11
11
  *
12
- * @implements ds:apps.subcomponent.side-navigation-header
12
+ * @implements ds:apps.subcomponent.side_navigation-header
13
13
  */
14
14
  const Header = ({ className, brand, applicationName, expanded, onToggle, collapseControls, collapseToggleMessages, ...props }) => {
15
15
  return (_jsxs("header", { className: [componentCssClassName, className].filter(Boolean).join(" "), "data-expanded": expanded, ...props, children: [_jsxs("div", { className: "brand-container", children: [_jsx("div", { className: "brand", children: brand }), applicationName != null && (_jsx("h1", { className: "title", children: applicationName }))] }), onToggle && (_jsx(CollapseToggle, { expanded: expanded, "aria-controls": collapseControls, messages: collapseToggleMessages, onClick: onToggle }))] }));
@@ -14,7 +14,7 @@ const componentCssClassName = "ds side-navigation-item";
14
14
  * composed via `children`, matching `Button`'s own convention — pass
15
15
  * anything, not only text.
16
16
  *
17
- * @implements ds:apps.subcomponent.side-navigation-item
17
+ * @implements ds:apps.subcomponent.side_navigation-item
18
18
  */
19
19
  const Item = ({ url, children, icon, slot, disabled = false, active = false, LinkComponent = "a", className, ...props }) => {
20
20
  const Link = LinkComponent;
@@ -11,7 +11,7 @@ const componentCssClassName = "ds side-navigation-item-button";
11
11
  * `children`. Content is composed via `children`,
12
12
  * matching `Button`'s own convention.
13
13
  *
14
- * @implements ds:apps.subcomponent.side-navigation-item-button
14
+ * @implements ds:apps.subcomponent.side_navigation-item_button
15
15
  */
16
16
  const ItemButton = ({ children, icon, slot, className, ...props }) => (_jsx("li", { className: [componentCssClassName, className].filter(Boolean).join(" "), children: _jsxs("button", { className: "row", ...props, type: "button", children: [_jsx("span", { className: "start", children: icon ? _jsx(Icon, { width: 16, height: 16, icon: icon }) : null }), _jsx("span", { className: "label", title: typeof children === "string" ? children : undefined, children: children }), slot ? _jsx("span", { className: "end slot", children: slot }) : null] }) }));
17
17
  export default ItemButton;
@@ -21,7 +21,7 @@ const componentCssClassName = "ds side-navigation-item-expandable";
21
21
  * among the `children` collapses the disclosure. The content tree does not
22
22
  * opt in: its branch stays open so the active row remains visible.
23
23
  *
24
- * @implements ds:apps.subcomponent.side-navigation-item-expandable
24
+ * @implements ds:apps.subcomponent.side_navigation-item_expandable
25
25
  */
26
26
  const ItemExpandable = ({ heading, icon, disabled = false, defaultExpanded = false, collapseOnChildClick = false, children, className, ...props }) => {
27
27
  // Uncontrolled: the <details> owns its open state and React never
@@ -122,7 +122,7 @@
122
122
  /* Collapsed rail: sub-items degrade into a floating popover on the
123
123
  inline-end; the expanded state keeps its inline disclosure. */
124
124
  .ds.side-navigation[data-expanded="false"]
125
- .ds.side-navigation-item-expandable {
125
+ .ds.side-navigation-item-expandable {
126
126
  position: relative;
127
127
 
128
128
  .children {
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { getItemId } from "@canonical/ds-utils";
3
3
  import { useNavigationTree } from "@canonical/react-hooks";
4
- import { Fragment, useEffect } from "react";
4
+ import { useEffect } from "react";
5
5
  import { Group } from "../Group/index.js";
6
6
  import { Item } from "../Item/index.js";
7
7
  import { ItemExpandable } from "../ItemExpandable/index.js";
@@ -63,19 +63,17 @@ const NavTree = ({ root, currentUrl, LinkComponent = "a", className, ...props })
63
63
  if (match)
64
64
  selectItem(match);
65
65
  }, [currentUrl, index, selectItem]);
66
- const sections = nav.annotatedRoot.items ?? [];
67
- return (_jsx("div", { className: [componentCssClassName, className].filter(Boolean).join(" "), ...props, children: sections.map((section) => {
68
- const sectionId = getItemId(section);
69
- const entries = section.items ?? [];
70
- return (_jsx(Fragment, { children: entries.length > 0 && (_jsx(Group, { label: section.label, children: entries.map((entry, entryIndex) => {
71
- const children = entry.items ?? [];
72
- if (children.length > 0) {
73
- const { parentUrl: _parentUrl, depth: _depth, items: _items, key: _key, slot: _slot, url: _url, label, ...expandableFields } = entry;
74
- return (_jsx(ItemExpandable, { ...expandableFields, heading: label, defaultExpanded: nav.getNodeStatus(entry).inSelectedBranch, children: children.map((child, childIndex) => renderEntry(child, nav.getNodeStatus(child).selected, LinkComponent, childIndex)) }, stableKey(entry, entryIndex)));
75
- }
76
- return renderEntry(entry, nav.getNodeStatus(entry).selected, LinkComponent, entryIndex);
77
- }) })) }, sectionId));
78
- }) }));
66
+ // Empty groups render nothing, so they are dropped before the loop: the
67
+ // divider index then counts rendered groups only.
68
+ const sections = (nav.annotatedRoot.items ?? []).filter((section) => (section.items ?? []).length > 0);
69
+ return (_jsx("div", { className: [componentCssClassName, className].filter(Boolean).join(" "), ...props, children: sections.map((section, sectionIndex) => (_jsx(Group, { label: section.label, divider: sectionIndex > 0, children: (section.items ?? []).map((entry, entryIndex) => {
70
+ const children = entry.items ?? [];
71
+ if (children.length > 0) {
72
+ const { parentUrl: _parentUrl, depth: _depth, items: _items, key: _key, slot: _slot, url: _url, label, ...expandableFields } = entry;
73
+ return (_jsx(ItemExpandable, { ...expandableFields, heading: label, defaultExpanded: nav.getNodeStatus(entry).inSelectedBranch, children: children.map((child, childIndex) => renderEntry(child, nav.getNodeStatus(child).selected, LinkComponent, childIndex)) }, stableKey(entry, entryIndex)));
74
+ }
75
+ return renderEntry(entry, nav.getNodeStatus(entry).selected, LinkComponent, entryIndex);
76
+ }) }, getItemId(section)))) }));
79
77
  };
80
78
  export default NavTree;
81
79
  //# sourceMappingURL=NavTree.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavTree.js","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/NavTree/NavTree.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,EAAE,QAAQ,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c,OAET,gBAAgB,EACpB,OAAO,EAAE,KAAK,EACd,eAAe,EACb,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,gBAAgB,YAG1C,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE,CAClC,WAAW,CACT,KAAK,EACL,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,QAAQ,EACjC,aAAa,EACb,UAAU,CACX,CACF,IAdI,SAAS,CAAC,KAAK,EAAE,UAAU,CAAC,CAelB,CAClB,CAAC;wBACJ,CAAC;wBAED,OAAO,WAAW,CAChB,KAAK,EACL,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,QAAQ,EACjC,aAAa,EACb,UAAU,CACX,CAAC;oBACJ,CAAC,CAAC,GACI,CACT,IA/CY,SAAS,CAgDb,CACZ,CAAC;QACJ,CAAC,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"NavTree.js","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/NavTree/NavTree.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,aAAa,CAAC;AAE5C;;;;;;GAMG;AACH,MAAM,SAAS,GAAG,CAAC,IAAwB,EAAE,KAAa,EAAU,EAAE,CACpE,SAAS,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,KAAK,IAAI,MAAM,CAAC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B,CAAC;gBACJ,CAAC;gBAED,OAAO,WAAW,CAChB,KAAK,EACL,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,QAAQ,EACjC,aAAa,EACb,UAAU,CACX,CAAC;YACJ,CAAC,CAAC,IA5CG,SAAS,CAAC,OAAO,CAAC,CA6CjB,CACT,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -130,15 +130,12 @@
130
130
  inline-size: var(--sidenav-rail-inline-size-collapsed);
131
131
  justify-content: space-between;
132
132
 
133
+ /* Content holds the context switcher too: label-driven rows,
134
+ nothing survives icon-only degradation. */
133
135
  & > .ds.side-navigation-content {
134
136
  display: none;
135
137
  }
136
138
 
137
- /* Label-driven rows — nothing survives icon-only degradation. */
138
- & > .ds.side-navigation-context-switcher {
139
- display: none;
140
- }
141
-
142
139
  /* Footer (icon-only) and ItemExpandable (popover) keep rendering —
143
140
  their collapsed anatomy lives in their own stylesheets. */
144
141
  }
@@ -37,7 +37,8 @@ const componentCssClassName = "ds side-panel";
37
37
  * `useScrollOverflow` hook; engines with neither paint nothing. The content
38
38
  * pane is a tab stop, so keyboard users can scroll it; opening the panel
39
39
  * still focuses the panel itself, so from there Tab reaches the close
40
- * button, then the content, then the footer's actions.
40
+ * button, then the content, then the footer's actions. The actions
41
+ * line up at the inline-start edge — render the primary action first.
41
42
  *
42
43
  * There are two consumption patterns, `withSidePanel` and `SidePanel`.
43
44
  * `withSidePanel` is meant for static content: the call belongs at module
@@ -65,6 +66,9 @@ const componentCssClassName = "ds side-panel";
65
66
  * this clipping. When it must overlap the panel, give its overlay layer a
66
67
  * z-index higher than `--side-panel-z-index`.
67
68
  *
69
+ * The panel's width comes from the `--side-panel-inline-size` custom
70
+ * property, 465px by default.
71
+ *
68
72
  * `import { SidePanel } from "@canonical/react-ds-app";`
69
73
  *
70
74
  * @implements ds:apps.pattern.side_panel
@@ -1 +1 @@
1
- {"version":3,"file":"Provider.js","sourceRoot":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nC,eAAe,QAAQ,CAAC"}
@@ -6,6 +6,11 @@ const componentCssClassName = "ds side-panel-footer";
6
6
  * `SidePanel.Content`, which scrolls on its own, so its actions are always
7
7
  * reachable.
8
8
  *
9
+ * Actions line up at the inline-start edge. Render the primary action first —
10
+ * markup order is screen order. Actions that do not fit on one line wrap
11
+ * onto the next rather than overflow the panel, as is shown on the "Wrapping Actions"
12
+ * story of the sidepanel.
13
+ *
9
14
  * @implements ds:apps.subcomponent.side_panel-footer
10
15
  */
11
16
  const Footer = ({ children, className, ...props }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../../../../src/lib/SidePanel/common/Footer/Footer.tsx"],"names":[],"mappings":";AAEA,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,sBAAsB,CAAC;AAErD;;;;;;GAMG;AACH,MAAM,MAAM,GAAG,CAAC,EACd,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACI,EAAsB,EAAE;IACpC,wEAAwE;IACxE,6EAA6E;IAC7E,qEAAqE;IACrE,OAAO,CACL,cACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACnE,KAAK,YAER,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAExC,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../../../../src/lib/SidePanel/common/Footer/Footer.tsx"],"names":[],"mappings":";AAEA,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,sBAAsB,CAAC;AAErD;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,GAAG,CAAC,EACd,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACI,EAAsB,EAAE;IACpC,wEAAwE;IACxE,6EAA6E;IAC7E,qEAAqE;IACrE,OAAO,CACL,cACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACnE,KAAK,YAER,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAExC,eAAe,MAAM,CAAC"}
@@ -8,14 +8,14 @@
8
8
  */
9
9
  flex: none;
10
10
 
11
+ padding-inline: var(--side-panel-padding-inline);
12
+
11
13
  /*
12
- Inset by margin rather than padding, so the actions stay in line with
13
- the text column while the pane's edge line runs the full panel width.
14
+ Actions start at the inline-start edge, and the consumer renders the
15
+ primary action first: order in the markup is order on screen.
14
16
  */
15
- margin-inline: var(--side-panel-padding-inline);
16
-
17
17
  display: flex;
18
- justify-content: flex-end;
18
+ justify-content: flex-start;
19
19
  align-items: center;
20
20
  gap: var(--side-panel-footer-gap);
21
21
  flex-wrap: wrap;
@@ -40,14 +40,15 @@
40
40
  padding-block: var(--side-panel-header-padding-block);
41
41
  /*
42
42
  Inline padding, not margin: nothing here needs the header's box itself
43
- inset, and padding keeps it full panel width.
43
+ inset, and padding keeps it full panel width. The footer insets its
44
+ actions with padding the same way.
44
45
  */
45
46
  padding-inline: var(--side-panel-padding-inline);
46
47
 
47
48
  /*
48
49
  The title is heading text beside a control, not a control: its line box
49
- is taller than the density seat line, so the typography engine seats it
50
- rather than the density seat. It carries `.p`, the engine's class hook
50
+ is far taller than the density seat line, so the typography engine seats
51
+ it rather than the density seat. It carries `.p`, the engine's class hook
51
52
  for an element that is not `p` or `h1`–`h6`; this rule feeds the engine
52
53
  the title's type in place of the paragraph values `.p` brings.
53
54
  */
@@ -15,9 +15,10 @@
15
15
  :root {
16
16
  /*
17
17
  design-tokens 0.8.1 ships no `size/*` token, so this is a literal.
18
+ The default panel width (465px).
18
19
  TODO: replace with a token when one exists.
19
20
  */
20
- --side-panel-inline-size: 33.5rem;
21
+ --side-panel-inline-size: 465px;
21
22
  /*
22
23
  ...and no `shadow/*` token either. The shadow is what separates the panel
23
24
  from the live page, so unlike a modal we cannot drop it.
@@ -7,6 +7,8 @@ const componentCssClassName = "ds view-layout";
7
7
  * Divides its space between the view content (default slot, `1fr`) and an
8
8
  * optional contextual aside (named slot, `min-content`), per the ontology
9
9
  * instance `apps.layout.view_layout`.
10
+ *
11
+ * @implements ds:apps.layout.view_layout
10
12
  */
11
13
  const ViewLayout = ({ className, children, aside, ...props }) => {
12
14
  return (_jsxs("div", { className: [componentCssClassName, className].filter(Boolean).join(" "), ...props, children: [_jsx("div", { className: "content", children: children }), aside != null && _jsx("div", { className: "aside", children: aside })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"ViewLayout.js","sourceRoot":"","sources":["../../../../src/lib/ViewLayout/ViewLayout.tsx"],"names":[],"mappings":";AAIA,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAE/C;;;;;;GAMG;AACH,MAAM,UAAU,GAAG,CAAC,EAClB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,GAAG,KAAK,EACQ,EAAsB,EAAE;IACxC,OAAO,CACL,eACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACnE,KAAK,aAET,cAAK,SAAS,EAAC,SAAS,YAAE,QAAQ,GAAO,EACxC,KAAK,IAAI,IAAI,IAAI,cAAK,SAAS,EAAC,OAAO,YAAE,KAAK,GAAO,IAClD,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"ViewLayout.js","sourceRoot":"","sources":["../../../../src/lib/ViewLayout/ViewLayout.tsx"],"names":[],"mappings":";AAIA,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAE/C;;;;;;;;GAQG;AACH,MAAM,UAAU,GAAG,CAAC,EAClB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,GAAG,KAAK,EACQ,EAAsB,EAAE;IACxC,OAAO,CACL,eACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACnE,KAAK,aAET,cAAK,SAAS,EAAC,SAAS,YAAE,QAAQ,GAAO,EACxC,KAAK,IAAI,IAAI,IAAI,cAAK,SAAS,EAAC,OAAO,YAAE,KAAK,GAAO,IAClD,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -7,6 +7,8 @@ import "./styles.css";
7
7
  * Divides the viewport between a leading navigation rail (named slot,
8
8
  * `min-content`) and the main content area (default slot, `1fr`), per the
9
9
  * ontology instance `apps.layout.application_layout`.
10
+ *
11
+ * @implements ds:apps.layout.application_layout
10
12
  */
11
13
  declare const ApplicationLayout: ({ className, children, navigation, ...props }: ApplicationLayoutProps) => React.ReactElement;
12
14
  export default ApplicationLayout;
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationLayout.d.ts","sourceRoot":"","sources":["../../../../src/lib/ApplicationLayout/ApplicationLayout.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,cAAc,CAAC;AAItB;;;;;;GAMG;AACH,QAAA,MAAM,iBAAiB,kDAKpB,sBAAsB,KAAG,KAAK,CAAC,YAUjC,CAAC;eAEa,iBAAiB"}
1
+ {"version":3,"file":"ApplicationLayout.d.ts","sourceRoot":"","sources":["../../../../src/lib/ApplicationLayout/ApplicationLayout.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,QAAA,MAAM,iBAAiB,kDAKpB,sBAAsB,KAAG,KAAK,CAAC,YAUjC,CAAC;eAEa,iBAAiB"}
@@ -9,6 +9,8 @@ import "./styles.css";
9
9
  * fixed-responsive breakpoint columns by default, or the intrinsic
10
10
  * (fluid auto-fill) grid via `grid="intrinsic"`. Children are grid items;
11
11
  * span them via `grid-column`/`grid-row` where a card needs more room.
12
+ *
13
+ * @implements ds:apps.layout.content_layout
12
14
  */
13
15
  declare const ContentLayout: ({ className, children, grid, ...props }: ContentLayoutProps) => React.ReactElement;
14
16
  export default ContentLayout;
@@ -1 +1 @@
1
- {"version":3,"file":"ContentLayout.d.ts","sourceRoot":"","sources":["../../../../src/lib/ContentLayout/ContentLayout.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,QAAA,MAAM,aAAa,4CAKhB,kBAAkB,KAAG,KAAK,CAAC,YAW7B,CAAC;eAEa,aAAa"}
1
+ {"version":3,"file":"ContentLayout.d.ts","sourceRoot":"","sources":["../../../../src/lib/ContentLayout/ContentLayout.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;GAUG;AACH,QAAA,MAAM,aAAa,4CAKhB,kBAAkB,KAAG,KAAK,CAAC,YAW7B,CAAC;eAEa,aAAa"}
@@ -7,17 +7,18 @@ import "./styles.css";
7
7
  * `defaultExpanded` — and wires the header's collapse toggle to the content
8
8
  * region it controls.
9
9
  *
10
- * Four regions: Header (branding, collapse toggle), the optional
11
- * ContextSwitcher (a `role="menu"` select-like widget — not navigation,
12
- * so it sits outside the landmark between Header and Content; hidden
13
- * when collapsed, where labels are unviable),
14
- * Content (the main `<nav>` landmark) and Footer (user profile, settings
15
- * and non-navigational actions). The root element is a plain `<div>` and
16
- * the component's single *navigation* landmark is Content's `<nav>`, so
17
- * screen readers announce exactly one navigation region; the regions
18
- * themselves are `<header>`/`<footer>` elements, which additionally
19
- * expose banner/contentinfo landmarks. `aria-label` is forwarded to the
20
- * `<nav>` and defaults to `"Main navigation"`.
10
+ * Three regions: Header (branding, collapse toggle), Content (the
11
+ * optional ContextSwitcher, then the main `<nav>` landmark) and Footer
12
+ * (user profile, settings and non-navigational actions). The context
13
+ * switcher is a `role="menu"` select-like widget — not navigation — so it
14
+ * sits before the landmark, not inside it, and hides with Content when
15
+ * collapsed. The root element is a plain `<div>` and the component's
16
+ * single *navigation* landmark is Content's `<nav>`, so screen readers
17
+ * announce exactly one navigation region; the regions themselves are
18
+ * `<header>`/`<footer>` elements, which additionally expose
19
+ * banner/contentinfo landmarks. The footer always renders, empty without
20
+ * `footerRoot`. `aria-label` is forwarded to the `<nav>` and defaults to
21
+ * `"Main navigation"`.
21
22
  *
22
23
  * A visually hidden "Skip to main content" link is the first element in the
23
24
  * component's DOM order, so keyboard users can bypass the navigation block;
@@ -27,12 +28,12 @@ import "./styles.css";
27
28
  * pass a router `Link` to integrate client-side navigation. The active item is
28
29
  * resolved from `currentUrl`.
29
30
  *
30
- * Consumption pattern: data-driven only. Pass props and all four regions
31
+ * Consumption pattern: data-driven only. Pass props and all three regions
31
32
  * build; row-level and region components are private
32
33
  * (`cs:react.component.subcomponent_export_api` — no dot-static exports),
33
34
  * and render exclusively from data.
34
35
  *
35
- * @implements ds:apps.pattern.side-navigation
36
+ * @implements ds:apps.component.side_navigation
36
37
  */
37
38
  declare const SideNavigation: ({ className, brand, applicationName, root, contextSwitcher, footerRoot, LinkComponent, currentUrl, skipTo, defaultExpanded: defaultExpandedProp, keyboardShortcut, "aria-label": ariaLabel, messages: messagesProp, ...props }: SideNavigationProps) => React.ReactElement;
38
39
  export default SideNavigation;
@@ -1 +1 @@
1
- {"version":3,"file":"SideNavigation.d.ts","sourceRoot":"","sources":["../../../../src/lib/SideNavigation/SideNavigation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,QAAA,MAAM,cAAc,mOAejB,mBAAmB,KAAG,KAAK,CAAC,YAmE9B,CAAC;eAEa,cAAc"}
1
+ {"version":3,"file":"SideNavigation.d.ts","sourceRoot":"","sources":["../../../../src/lib/SideNavigation/SideNavigation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,QAAA,MAAM,cAAc,mOAejB,mBAAmB,KAAG,KAAK,CAAC,YA4D9B,CAAC;eAEa,cAAc"}
@@ -14,7 +14,7 @@ import "./styles.css";
14
14
  * type across state changes, so the button — and with it keyboard focus
15
15
  * and hover state — survives every toggle instead of remounting.
16
16
  *
17
- * @implements ds:apps.subcomponent.side-navigation-collapse-toggle
17
+ * @implements ds:apps.subcomponent.side_navigation-collapse_toggle
18
18
  */
19
19
  declare const CollapseToggle: ({ expanded, messages, ...props }: CollapseToggleProps) => React.ReactElement;
20
20
  export default CollapseToggle;
@@ -2,16 +2,18 @@ import type React from "react";
2
2
  import type { ContentProps } from "./types.js";
3
3
  import "./styles.css";
4
4
  /**
5
- * SideNavigation.Content — the component's main `<nav>` landmark, and the
6
- * only one: navigation rows are links and expandable items exclusively
7
- * (actions are Footer's job). Data-only — rows render exclusively from the
8
- * `root` tree (row components are private; there is no children escape
9
- * hatch into the landmark). `aria-label` defaults to `"Main navigation"`
10
- * and may be overridden by the consumer; with no `root`, the landmark
11
- * renders empty (the landmark contract stays stable).
5
+ * SideNavigation.Content — the scrolling region between Header and Footer.
6
+ * It holds the optional context switcher and, after it, the component's
7
+ * only `<nav>` landmark. The switcher is a `role="menu"` widget, not
8
+ * navigation, so it sits outside the landmark. Navigation rows are links
9
+ * and expandable items exclusively (actions are Footer's job). Data-only —
10
+ * rows render exclusively from the `root` tree (row components are
11
+ * private; there is no children escape hatch into the landmark).
12
+ * `aria-label` names the `<nav>`; with no `root`, the landmark renders
13
+ * empty (the landmark contract stays stable).
12
14
  *
13
- * @implements ds:apps.subcomponent.side-navigation-content
15
+ * @implements ds:apps.subcomponent.side_navigation-content
14
16
  */
15
- declare const Content: ({ className, root, LinkComponent, currentUrl, ...props }: ContentProps) => React.ReactElement;
17
+ declare const Content: ({ className, root, contextSwitcher, LinkComponent, currentUrl, "aria-label": ariaLabel, ...props }: ContentProps) => React.ReactElement;
16
18
  export default Content;
17
19
  //# sourceMappingURL=Content.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/Content/Content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;GAUG;AACH,QAAA,MAAM,OAAO,6DAMV,YAAY,KAAG,KAAK,CAAC,YAevB,CAAC;eAEa,OAAO"}
1
+ {"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/Content/Content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,OAAO,uGAQV,YAAY,KAAG,KAAK,CAAC,YAkBvB,CAAC;eAEa,OAAO"}
@@ -1,13 +1,19 @@
1
1
  import type { ComponentProps, ComponentType } from "react";
2
2
  import type { LinkComponentProps, NavRoot } from "../../types.js";
3
+ import type { ContextSwitcherProps } from "../ContextSwitcher/types.js";
3
4
  type OwnProps = {
4
5
  /** Root whose direct children render as groups — see NavRoot. */
5
6
  root?: NavRoot;
7
+ /** The context switcher, rendered before the `<nav>` landmark. Omitted renders none. */
8
+ contextSwitcher?: ContextSwitcherProps;
6
9
  /** Component used to render navigable items. Defaults to `"a"`. */
7
10
  LinkComponent?: ComponentType<LinkComponentProps> | "a";
8
11
  /** Live current location; resolves and keeps the active item in sync. */
9
12
  currentUrl?: string;
13
+ /** The `<nav>` landmark's name. */
14
+ "aria-label"?: string;
10
15
  };
11
- export type ContentProps = OwnProps & Omit<ComponentProps<"nav">, keyof OwnProps>;
16
+ /** The native attributes go to the region's root `<div>`; `aria-label` to the `<nav>`. */
17
+ export type ContentProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps | "children">;
12
18
  export {};
13
19
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/Content/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAElE,KAAK,QAAQ,GAAG;IACd,iEAAiE;IACjE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,mEAAmE;IACnE,aAAa,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,GAAG,GAAG,CAAC;IACxD,yEAAyE;IACzE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,QAAQ,GACjC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/Content/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAExE,KAAK,QAAQ,GAAG;IACd,iEAAiE;IACjE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,wFAAwF;IACxF,eAAe,CAAC,EAAE,oBAAoB,CAAC;IACvC,mEAAmE;IACnE,aAAa,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,GAAG,GAAG,CAAC;IACxD,yEAAyE;IACzE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mCAAmC;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,0FAA0F;AAC1F,MAAM,MAAM,YAAY,GAAG,QAAQ,GACjC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,GAAG,UAAU,CAAC,CAAC"}
@@ -10,10 +10,11 @@ import "./styles.css";
10
10
  * `SideNavigation.GroupHeader` as a sibling above the dropdown field.
11
11
  *
12
12
  * Not part of the `NavRoot`/`NavGroup` content-tree data model — it
13
- * embeds via `SideNavigation`'s `contextSwitcher` prop slot, its region
14
- * class owning the collapsed-rail hide.
13
+ * embeds via `SideNavigation`'s `contextSwitcher` prop slot and renders
14
+ * inside Content, before the `<nav>` landmark, hiding with Content on the
15
+ * collapsed rail.
15
16
  *
16
- * @implements ds:apps.subcomponent.side-navigation-context-switcher
17
+ * @implements ds:apps.subcomponent.side_navigation-context_switcher
17
18
  */
18
19
  declare const ContextSwitcher: ({ title, currentContext, contexts, onContextChange, onCreateContext, createContextLabel, className, open, onOpenChange, preferredDirections, distance, gutter, maxWidth, autoFit, ...props }: ContextSwitcherProps) => React.ReactElement;
19
20
  export default ContextSwitcher;
@@ -1 +1 @@
1
- {"version":3,"file":"ContextSwitcher.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/ContextSwitcher/ContextSwitcher.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAuB,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAC5E,OAAO,cAAc,CAAC;AAmDtB;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,eAAe,iMAgBlB,oBAAoB,KAAG,KAAK,CAAC,YAkE/B,CAAC;eAEa,eAAe"}
1
+ {"version":3,"file":"ContextSwitcher.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/ContextSwitcher/ContextSwitcher.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAuB,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAC5E,OAAO,cAAc,CAAC;AAmDtB;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,eAAe,iMAgBlB,oBAAoB,KAAG,KAAK,CAAC,YAkE/B,CAAC;eAEa,eAAe"}
@@ -14,8 +14,8 @@ export interface ContextSwitcherItem {
14
14
  * Omitted, the context stays a pure action.
15
15
  */
16
16
  url?: string;
17
- /** Optional supporting text shown under the name in the list. */
18
- description?: string;
17
+ /** Supporting text shown under the name in the list. Required by the anatomy. */
18
+ description: string;
19
19
  /** Optional badge for dynamic/actionable information. */
20
20
  badge?: ReactNode;
21
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/ContextSwitcher/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,sEAAsE;AACtE,MAAM,WAAW,mBAAmB;IAClC,yEAAyE;IACzE,GAAG,EAAE,MAAM,CAAC;IACZ,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,iEAAiE;IACjE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yDAAyD;IACzD,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,KAAK,QAAQ,GAAG,IAAI,CAClB,mBAAmB,EACjB,MAAM,GACN,cAAc,GACd,qBAAqB,GACrB,UAAU,GACV,QAAQ,GACR,UAAU,GACV,SAAS,CACZ,GAAG;IACF;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,mEAAmE;IACnE,cAAc,EAAE,mBAAmB,CAAC;IACpC,qDAAqD;IACrD,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC,sEAAsE;IACtE,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACzD,6EAA6E;IAC7E,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,6EAA6E;IAC7E,kBAAkB,CAAC,EAAE,SAAS,CAAC;CAChC,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GACzC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,GAAG,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/ContextSwitcher/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,sEAAsE;AACtE,MAAM,WAAW,mBAAmB;IAClC,yEAAyE;IACzE,GAAG,EAAE,MAAM,CAAC;IACZ,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,iFAAiF;IACjF,WAAW,EAAE,MAAM,CAAC;IACpB,yDAAyD;IACzD,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,KAAK,QAAQ,GAAG,IAAI,CAClB,mBAAmB,EACjB,MAAM,GACN,cAAc,GACd,qBAAqB,GACrB,UAAU,GACV,QAAQ,GACR,UAAU,GACV,SAAS,CACZ,GAAG;IACF;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,mEAAmE;IACnE,cAAc,EAAE,mBAAmB,CAAC;IACpC,qDAAqD;IACrD,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC,sEAAsE;IACtE,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACzD,6EAA6E;IAC7E,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,6EAA6E;IAC7E,kBAAkB,CAAC,EAAE,SAAS,CAAC;CAChC,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GACzC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,GAAG,UAAU,CAAC,CAAC"}
@@ -2,15 +2,16 @@ import type React from "react";
2
2
  import type { FooterProps } from "./types.js";
3
3
  import "./styles.css";
4
4
  /**
5
- * SideNavigation.Footer — optional region pinned to the bottom, reserved
6
- * for user-related content. Data-only: `root` is the footer's only data
5
+ * SideNavigation.Footer — the region pinned to the bottom, reserved for
6
+ * user-related content. It always renders; without items it is an empty
7
+ * `<footer>`. Data-only: `root` is the footer's only data
7
8
  * surface — free-form leaves (`LeafFooterItem`, buttons via
8
9
  * `control`/`onClick`) and depth-1 expandables (`ExpandableFooterItem`,
9
10
  * whose children disclose through the same native `<details>` disclosure
10
11
  * the content tree uses). A certificate-user application, for instance,
11
12
  * composes the `certificate` icon and omits the logout item itself.
12
13
  *
13
- * @implements ds:apps.subcomponent.side-navigation-footer
14
+ * @implements ds:apps.subcomponent.side_navigation-footer
14
15
  */
15
16
  declare const Footer: ({ className, root, LinkComponent, currentUrl, ...props }: FooterProps) => React.ReactElement;
16
17
  export default Footer;
@@ -1 +1 @@
1
- {"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/Footer/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,cAAc,CAAC;AA2DtB;;;;;;;;;;GAUG;AACH,QAAA,MAAM,MAAM,6DAMT,WAAW,KAAG,KAAK,CAAC,YAqDtB,CAAC;eAEa,MAAM"}
1
+ {"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/Footer/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,cAAc,CAAC;AA2DtB;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,MAAM,6DAMT,WAAW,KAAG,KAAK,CAAC,YAqDtB,CAAC;eAEa,MAAM"}
@@ -4,10 +4,11 @@ import "./styles.css";
4
4
  /**
5
5
  * SideNavigation.Group — a named collection of navigation entries, with an
6
6
  * optional SideNavigation.GroupHeader. One of NavTree's direct content
7
- * entries.
7
+ * entries. Starts with a divider when `divider` is set (every group but
8
+ * the first).
8
9
  *
9
- * @implements ds:apps.subcomponent.side-navigation-group
10
+ * @implements ds:apps.subcomponent.side_navigation-item_group
10
11
  */
11
- declare const Group: ({ label, children, className, ...props }: GroupProps) => React.ReactElement;
12
+ declare const Group: ({ label, divider: _divider, children, className, ...props }: GroupProps) => React.ReactElement;
12
13
  export default Group;
13
14
  //# sourceMappingURL=Group.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/Group/Group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,cAAc,CAAC;AAItB;;;;;;GAMG;AACH,QAAA,MAAM,KAAK,6CAKR,UAAU,KAAG,KAAK,CAAC,YAQrB,CAAC;eAEa,KAAK"}
1
+ {"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/Group/Group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,cAAc,CAAC;AAItB;;;;;;;GAOG;AACH,QAAA,MAAM,KAAK,gEAOR,UAAU,KAAG,KAAK,CAAC,YASrB,CAAC;eAEa,KAAK"}
@@ -2,6 +2,11 @@ import type { ComponentProps, ReactNode } from "react";
2
2
  type OwnProps = {
3
3
  /** Group header text, rendered via GroupHeader. Omitted when absent. */
4
4
  label?: ReactNode;
5
+ /**
6
+ * Whether the group starts with a divider. The anatomy draws one before
7
+ * every group except the first; the parent laying the groups out decides.
8
+ */
9
+ divider?: boolean;
5
10
  /** The group's navigation entries (Item / ItemExpandable / consumer-supplied). */
6
11
  children?: ReactNode;
7
12
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/Group/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,wEAAwE;IACxE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,kFAAkF;IAClF,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,QAAQ,GAC/B,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/Group/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,wEAAwE;IACxE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kFAAkF;IAClF,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,QAAQ,GAC/B,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -6,7 +6,7 @@ import "./styles.css";
6
6
  * SideNavigation.Group's entries. Purely presentational; rendered by Group
7
7
  * when its `label` is set.
8
8
  *
9
- * @implements ds:apps.subcomponent.side-navigation-group-header
9
+ * @implements ds:apps.subcomponent.side_navigation-group_header
10
10
  */
11
11
  declare const GroupHeader: ({ children, className, ...props }: GroupHeaderProps) => React.ReactElement;
12
12
  export default GroupHeader;
@@ -8,7 +8,7 @@ import "./styles.css";
8
8
  * switches to a centred column — the toggle relocates below the logo rather
9
9
  * than beside it — driven by `data-expanded` on the root.
10
10
  *
11
- * @implements ds:apps.subcomponent.side-navigation-header
11
+ * @implements ds:apps.subcomponent.side_navigation-header
12
12
  */
13
13
  declare const Header: ({ className, brand, applicationName, expanded, onToggle, collapseControls, collapseToggleMessages, ...props }: HeaderProps) => React.ReactElement;
14
14
  export default Header;
@@ -13,7 +13,7 @@ import "./styles.css";
13
13
  * composed via `children`, matching `Button`'s own convention — pass
14
14
  * anything, not only text.
15
15
  *
16
- * @implements ds:apps.subcomponent.side-navigation-item
16
+ * @implements ds:apps.subcomponent.side_navigation-item
17
17
  */
18
18
  declare const Item: ({ url, children, icon, slot, disabled, active, LinkComponent, className, ...props }: ItemProps) => React.ReactElement;
19
19
  export default Item;
@@ -10,7 +10,7 @@ import "./styles.css";
10
10
  * `children`. Content is composed via `children`,
11
11
  * matching `Button`'s own convention.
12
12
  *
13
- * @implements ds:apps.subcomponent.side-navigation-item-button
13
+ * @implements ds:apps.subcomponent.side_navigation-item_button
14
14
  */
15
15
  declare const ItemButton: ({ children, icon, slot, className, ...props }: ItemButtonProps) => React.ReactElement;
16
16
  export default ItemButton;
@@ -19,7 +19,7 @@ import "./styles.css";
19
19
  * among the `children` collapses the disclosure. The content tree does not
20
20
  * opt in: its branch stays open so the active row remains visible.
21
21
  *
22
- * @implements ds:apps.subcomponent.side-navigation-item-expandable
22
+ * @implements ds:apps.subcomponent.side_navigation-item_expandable
23
23
  */
24
24
  declare const ItemExpandable: ({ heading, icon, disabled, defaultExpanded, collapseOnChildClick, children, className, ...props }: ItemExpandableProps) => React.ReactElement;
25
25
  export default ItemExpandable;
@@ -1 +1 @@
1
- {"version":3,"file":"NavTree.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/NavTree/NavTree.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,cAAc,CAAC;AAoDtB;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,OAAO,6DAMV,YAAY,KAAG,KAAK,CAAC,YAuFvB,CAAC;eAEa,OAAO"}
1
+ {"version":3,"file":"NavTree.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SideNavigation/common/NavTree/NavTree.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,cAAc,CAAC;AAoDtB;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,OAAO,6DAMV,YAAY,KAAG,KAAK,CAAC,YAoFvB,CAAC;eAEa,OAAO"}
@@ -160,7 +160,8 @@ type OwnProps = {
160
160
  /**
161
161
  * The footer's only data surface: free-form leaves (`LeafFooterItem`) and
162
162
  * depth-1 expandables (`ExpandableFooterItem`), rendered as the footer's
163
- * rows in the order given. Omit (or pass empty) to hide the footer.
163
+ * rows in the order given. The footer region always renders: omitted (or
164
+ * empty), it is an empty `<footer>`.
164
165
  */
165
166
  footerRoot?: FooterRoot;
166
167
  /**
@@ -183,10 +184,9 @@ type OwnProps = {
183
184
  */
184
185
  keyboardShortcut?: boolean;
185
186
  /**
186
- * The context-switcher region's props (typed slot), rendered as its own
187
- * region between the Header and Content in a plain `<div>` — a
188
- * `role="menu"` select-like widget is not navigation, so it sits outside
189
- * the `<nav>` landmark. Omitted renders no region. See
187
+ * The context switcher's props (typed slot), rendered inside Content,
188
+ * before the `<nav>` landmark — a `role="menu"` select-like widget is not
189
+ * navigation, so it sits outside the landmark. Omitted renders none. See
190
190
  * `ContextSwitcherProps`.
191
191
  */
192
192
  contextSwitcher?: ContextSwitcherProps;
@@ -198,15 +198,15 @@ type OwnProps = {
198
198
  messages?: Partial<SideNavigationMessages>;
199
199
  };
200
200
  /**
201
- * SideNavigation's root is a plain `<div>` layout container — Header, the
202
- * optional ContextSwitcher region, the `<nav>` landmark (rendered by
203
- * `Content`), and Footer. The navigation landmark belongs to `Content`
201
+ * SideNavigation's root is a plain `<div>` layout container — Header,
202
+ * Content (the optional ContextSwitcher, then the `<nav>` landmark), and
203
+ * Footer. The navigation landmark belongs to `Content`
204
204
  * alone (branding, the context switcher, and the footer's actions are not
205
205
  * navigation); `aria-label` is forwarded there and defaults to
206
206
  * `"Main navigation"`. Native attribute pass-through follows the root
207
207
  * element (`ComponentProps<"div">`).
208
208
  *
209
- * Consumption pattern: data-driven only — pass props and all four regions
209
+ * Consumption pattern: data-driven only — pass props and all three regions
210
210
  * build. Every subcomponent is private
211
211
  * (`cs:react.component.subcomponent_export_api`): nothing is dot-static
212
212
  * exported, and subcomponents render exclusively from data.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/SideNavigation/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAE9E,YAAY,EAAE,kBAAkB,EAAE,CAAC;AAEnC;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC1B,+EAA+E;IAC/E,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,2GAA2G;IAC3G,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,kFAAkF;IAClF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yDAAyD;IACzD,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,wDAAwD;IACxD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,kFAAkF;IAClF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,WAAW,EAAE,KAAK,GAAG,MAAM,CAAC,GAAG;IAClE,+EAA+E;IAC/E,KAAK,EAAE,WAAW,EAAE,C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CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/lib/SidePanel/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,cAAc,CAAC;0BAoEJ,EAChB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,sBAAsB,GAAG,KAAK,CAAC,YAAY;;;;;;;eA4D/B,QAAQ"}
1
+ {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/lib/SidePanel/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,cAAc,CAAC;0BAwEJ,EAChB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,sBAAsB,GAAG,KAAK,CAAC,YAAY;;;;;;;eA4D/B,QAAQ"}
@@ -1 +1 @@
1
- {"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SidePanel/common/Footer/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,cAAc,CAAC;wBAWN,EACd,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,WAAW,GAAG,KAAK,CAAC,YAAY;;;;eAgBpB,MAAM"}
1
+ {"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/SidePanel/common/Footer/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,cAAc,CAAC;wBAgBN,EACd,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,WAAW,GAAG,KAAK,CAAC,YAAY;;;;eAgBpB,MAAM"}
@@ -7,6 +7,8 @@ import "./styles.css";
7
7
  * Divides its space between the view content (default slot, `1fr`) and an
8
8
  * optional contextual aside (named slot, `min-content`), per the ontology
9
9
  * instance `apps.layout.view_layout`.
10
+ *
11
+ * @implements ds:apps.layout.view_layout
10
12
  */
11
13
  declare const ViewLayout: ({ className, children, aside, ...props }: ViewLayoutProps) => React.ReactElement;
12
14
  export default ViewLayout;
@@ -1 +1 @@
1
- {"version":3,"file":"ViewLayout.d.ts","sourceRoot":"","sources":["../../../../src/lib/ViewLayout/ViewLayout.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,cAAc,CAAC;AAItB;;;;;;GAMG;AACH,QAAA,MAAM,UAAU,6CAKb,eAAe,KAAG,KAAK,CAAC,YAU1B,CAAC;eAEa,UAAU"}
1
+ {"version":3,"file":"ViewLayout.d.ts","sourceRoot":"","sources":["../../../../src/lib/ViewLayout/ViewLayout.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,QAAA,MAAM,UAAU,6CAKb,eAAe,KAAG,KAAK,CAAC,YAU1B,CAAC;eAEa,UAAU"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canonical/react-ds-app",
3
- "version": "0.47.0",
3
+ "version": "0.48.0",
4
4
  "type": "module",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -39,13 +39,12 @@
39
39
  "test:vitest:watch": "vitest"
40
40
  },
41
41
  "dependencies": {
42
- "@canonical/ds-assets": "^0.47.0",
43
- "@canonical/ds-types": "^0.47.0",
44
- "@canonical/ds-utils": "^0.47.0",
45
- "@canonical/react-ds-global": "^0.47.0",
46
- "@canonical/react-hooks": "^0.47.0",
47
- "@canonical/storybook-config": "^0.47.0",
48
- "@canonical/styles": "^0.47.0",
42
+ "@canonical/ds-assets": "^0.48.0",
43
+ "@canonical/ds-types": "^0.48.0",
44
+ "@canonical/ds-utils": "^0.48.0",
45
+ "@canonical/react-ds-global": "^0.48.0",
46
+ "@canonical/react-hooks": "^0.48.0",
47
+ "@canonical/styles": "^0.48.0",
49
48
  "react": "^19.2.4",
50
49
  "react-dom": "^19.2.4"
51
50
  },
@@ -62,17 +61,18 @@
62
61
  }
63
62
  },
64
63
  "devDependencies": {
65
- "@biomejs/biome": "2.5.15",
66
- "@canonical/biome-config": "0.43.0",
67
- "@canonical/design-tokens": "0.44.0",
68
- "@canonical/react-ds-global-form": "^0.47.0",
69
- "@canonical/router-core": "^0.47.0",
70
- "@canonical/router-react": "^0.47.0",
71
- "@canonical/storybook-addon-utils": "^0.47.0",
72
- "@canonical/storybook-helpers": "^0.47.0",
73
- "@canonical/typescript-config-react": "^0.47.0",
74
- "@canonical/vitest-config-react": "^0.47.0",
75
- "@canonical/webarchitect": "0.44.0",
64
+ "@biomejs/biome": "2.6.9",
65
+ "@canonical/biome-config": "0.47.0",
66
+ "@canonical/design-tokens": "0.46.0",
67
+ "@canonical/react-ds-global-form": "^0.48.0",
68
+ "@canonical/router-core": "^0.48.0",
69
+ "@canonical/router-react": "^0.48.0",
70
+ "@canonical/storybook-addon-utils": "^0.48.0",
71
+ "@canonical/storybook-config": "^0.48.0",
72
+ "@canonical/storybook-helpers": "^0.48.0",
73
+ "@canonical/typescript-config-react": "^0.48.0",
74
+ "@canonical/vitest-config-react": "^0.48.0",
75
+ "@canonical/webarchitect": "0.46.0",
76
76
  "@chromatic-com/storybook": "^5.0.1",
77
77
  "@storybook/addon-docs": "^10.6.0",
78
78
  "@storybook/react-vite": "^10.6.0",
@@ -84,11 +84,11 @@
84
84
  "@vitejs/plugin-react": "^6.0.0",
85
85
  "copyfiles": "^2.4.1",
86
86
  "globals": "^17.4.0",
87
- "jsdom": "^28.1.0",
87
+ "jsdom": "^31.0.0",
88
88
  "storybook": "^10.6.0",
89
89
  "typescript": "^7.0.2",
90
90
  "vite": "^8.0.1",
91
91
  "vitest": "^5.0.0"
92
92
  },
93
- "gitHead": "f846e7e21001a0fcbc4cd9f28c14a55cea7f4974"
93
+ "gitHead": "aee4aebab851f90159776a7ba658d0c62e0d2bf4"
94
94
  }