@pantheon-systems/pds-toolkit-react 2.0.0-alpha.41 → 2.0.0-alpha.43

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.
@@ -55,12 +55,14 @@ export interface AppLayoutProps extends ComponentPropsWithoutRef<'div'> {
55
55
  */
56
56
  keyboardShortcuts?: boolean;
57
57
  /**
58
- * Labels for translatable strings.
58
+ * Labels for translatable strings. Each key is optional and falls back to a
59
+ * default, so you can override only the labels you need.
59
60
  */
60
61
  labels?: {
61
- collapseSidebar: string;
62
- drawerToggle: string;
63
- expandSidebar: string;
62
+ collapseSidebar?: string;
63
+ drawerToggle?: string;
64
+ expandSidebar?: string;
65
+ skipToContent?: string;
64
66
  };
65
67
  /**
66
68
  * Background color for the main content area. Use a PDS CSS custom property
@@ -4,10 +4,18 @@ export type NavigationItem = {
4
4
  * A boolean indicating whether the item is the active item.
5
5
  */
6
6
  isActive?: boolean | null;
7
+ /**
8
+ * Renders a non-interactive section heading instead of a navigation item. Requires `label`. When true, all other fields are ignored, and the heading is hidden when the sidebar is collapsed.
9
+ */
10
+ isHeading?: boolean;
7
11
  /**
8
12
  * Renders a visual separator instead of a navigation item. When true, all other fields are ignored.
9
13
  */
10
14
  isSeparator?: boolean;
15
+ /**
16
+ * The text of a section heading. Only used when `isHeading` is true.
17
+ */
18
+ label?: string;
11
19
  /**
12
20
  * Link content — a fully-formed link element using the router of your choice. If a string is provided instead, the item will be rendered as a link that navigates to the first child item.
13
21
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pantheon-systems/pds-toolkit-react",
3
3
  "technology": "React",
4
- "version": "2.0.0-alpha.41",
4
+ "version": "2.0.0-alpha.43",
5
5
  "description": "PDS toolkit built using the React framework",
6
6
  "publishConfig": {
7
7
  "access": "public",