@kcascend/liquid-ui 0.0.18 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,85 +1,85 @@
1
- # Liquid UI Package
2
-
3
- `@kcascend/liquid-ui` is the reusable UI package for Liquid Design System consumers.
4
-
5
- ## Local development
6
-
7
- 1. Run `npm install` from the repository root to install the local file dependency.
8
- 2. Run `npm run build:ui` to rebuild the package outputs in `packages/liquid-ui/dist`.
9
- 3. Run `npm run storybook` to rebuild the package and launch Storybook against the package boundary.
10
-
11
- ## Grid usage
12
-
13
- The package exposes a grid primitive through `GridLayout` and `GridColumn`, plus an approved layout catalog for application shells and content regions.
14
-
15
- ```tsx
16
- import {
17
- approvedContentLayoutPatterns,
18
- GridColumn,
19
- GridLayout,
20
- } from '@kcascend/liquid-ui';
21
-
22
- export function Example() {
23
- const layout = approvedContentLayoutPatterns.sidebarEnd;
24
-
25
- return (
26
- <GridLayout as="div">
27
- <GridColumn {...layout.regions.primary}>Primary</GridColumn>
28
- <GridColumn {...layout.regions.secondary}>Secondary</GridColumn>
29
- </GridLayout>
30
- );
31
- }
32
- ```
33
-
34
- Supported layout features:
35
-
36
- - Responsive spans through `sm`, `md`, `lg`, `xlg`, and `max`.
37
- - Offset columns with object values like `md={{ span: 4, offset: 2 }}`.
38
- - Gutter modes with `narrow` and `condensed`.
39
- - `withRowGap` to keep vertical spacing aligned with the active gutter.
40
- - `fullWidth` for viewport-spanning layouts.
41
- - `subgrid` for nested grids that inherit the parent column scaffold.
42
- - Auto columns when a `GridColumn` is rendered without explicit breakpoint props.
43
-
44
- ## Application shell geometry
45
-
46
- The Figma application-shell pattern is the canonical geometry for product shells:
47
-
48
- - Header: `48px`
49
- - Left product-navigation panel: `256px`
50
- - Right application-information panel: `256px`
51
- - Compact transformation breakpoint: `672px`
52
-
53
- Import `applicationShellGeometry` rather than reproducing these values in consumer CSS. The
54
- geometry is sourced from Figma node `3307:3`; its runtime composition and accessibility behavior
55
- remain governed by the exported shell components.
56
-
57
- `ProductNavigationPanel` provides product-local destinations and expandable route groups, with
58
- controlled or uncontrolled active-route and disclosure state. `ApplicationInformationPanel` provides
59
- the separate application-wide utility disclosure. It requires `privacyHref`, `termsOfUseHref`, and
60
- non-link `copyright` metadata; optional utility rows are supplied by the consumer. Pass the same
61
- configuration through `HeaderShell.applicationInformation` to render its independent header trigger.
62
-
63
- Approved layout guidance:
64
-
65
- - Start application shells from `approvedShellRows`.
66
- - Start page content from `approvedContentLayoutPatterns`.
67
- - Introduce a bespoke breakpoint map only when a screen cannot be expressed by the approved patterns and that exception is documented in a spec.
68
-
69
- ## Figma governance
70
-
71
- Every reusable component must record an approved Figma reference in story metadata or component documentation before it is considered ready for review. The initial workflow example in this package uses the Liquid token source in Figma
72
-
73
- Storybook now demonstrates both patterns:
74
-
75
- - a package-consumed button component with Figma and accessibility metadata
76
- - a token values reference story that reads directly from the generated `tokens` export
77
-
78
- ## Accessibility verification
79
-
80
- Each component review must include:
81
-
82
- - Keyboard interaction expectations when the component is interactive.
83
- - Name, role, and state guidance for assistive technologies.
84
- - Color contrast and focus treatment verification.
85
- - Storybook documentation that explains any usage constraints needed to stay WCAG 2.1 aligned.
1
+ # Liquid UI Package
2
+
3
+ `@kcascend/liquid-ui` is the reusable UI package for Liquid Design System consumers.
4
+
5
+ ## Local development
6
+
7
+ 1. Run `npm install` from the repository root to install the local file dependency.
8
+ 2. Run `npm run build:ui` to rebuild the package outputs in `packages/liquid-ui/dist`.
9
+ 3. Run `npm run storybook` to rebuild the package and launch Storybook against the package boundary.
10
+
11
+ ## Grid usage
12
+
13
+ The package exposes a grid primitive through `GridLayout` and `GridColumn`, plus an approved layout catalog for application shells and content regions.
14
+
15
+ ```tsx
16
+ import {
17
+ approvedContentLayoutPatterns,
18
+ GridColumn,
19
+ GridLayout,
20
+ } from '@kcascend/liquid-ui';
21
+
22
+ export function Example() {
23
+ const layout = approvedContentLayoutPatterns.sidebarEnd;
24
+
25
+ return (
26
+ <GridLayout as="div">
27
+ <GridColumn {...layout.regions.primary}>Primary</GridColumn>
28
+ <GridColumn {...layout.regions.secondary}>Secondary</GridColumn>
29
+ </GridLayout>
30
+ );
31
+ }
32
+ ```
33
+
34
+ Supported layout features:
35
+
36
+ - Responsive spans through `sm`, `md`, `lg`, `xlg`, and `max`.
37
+ - Offset columns with object values like `md={{ span: 4, offset: 2 }}`.
38
+ - Gutter modes with `narrow` and `condensed`.
39
+ - `withRowGap` to keep vertical spacing aligned with the active gutter.
40
+ - `fullWidth` for viewport-spanning layouts.
41
+ - `subgrid` for nested grids that inherit the parent column scaffold.
42
+ - Auto columns when a `GridColumn` is rendered without explicit breakpoint props.
43
+
44
+ ## Application shell geometry
45
+
46
+ The Figma application-shell pattern is the canonical geometry for product shells:
47
+
48
+ - Header: `48px`
49
+ - Left product-navigation panel: `256px`
50
+ - Right application-information panel: `256px`
51
+ - Compact transformation breakpoint: `672px`
52
+
53
+ Import `applicationShellGeometry` rather than reproducing these values in consumer CSS. The
54
+ geometry is sourced from Figma node `3307:3`; its runtime composition and accessibility behavior
55
+ remain governed by the exported shell components.
56
+
57
+ `ProductNavigationPanel` provides product-local destinations and expandable route groups, with
58
+ controlled or uncontrolled active-route and disclosure state. `ApplicationInformationPanel` provides
59
+ the separate application-wide utility disclosure. It requires `privacyHref`, `termsOfUseHref`, and
60
+ non-link `copyright` metadata; optional utility rows are supplied by the consumer. Pass the same
61
+ configuration through `HeaderShell.applicationInformation` to render its independent header trigger.
62
+
63
+ Approved layout guidance:
64
+
65
+ - Start application shells from `approvedShellRows`.
66
+ - Start page content from `approvedContentLayoutPatterns`.
67
+ - Introduce a bespoke breakpoint map only when a screen cannot be expressed by the approved patterns and that exception is documented in a spec.
68
+
69
+ ## Figma governance
70
+
71
+ Every reusable component must record an approved Figma reference in story metadata or component documentation before it is considered ready for review. The initial workflow example in this package uses the Liquid token source in Figma
72
+
73
+ Storybook now demonstrates both patterns:
74
+
75
+ - a package-consumed button component with Figma and accessibility metadata
76
+ - a token values reference story that reads directly from the generated `tokens` export
77
+
78
+ ## Accessibility verification
79
+
80
+ Each component review must include:
81
+
82
+ - Keyboard interaction expectations when the component is interactive.
83
+ - Name, role, and state guidance for assistive technologies.
84
+ - Color contrast and focus treatment verification.
85
+ - Storybook documentation that explains any usage constraints needed to stay WCAG 2.1 aligned.
@@ -1,3 +1,3 @@
1
- import type { HeaderShellProps } from '../../types';
1
+ import type { HeaderShellProps } from "../../types";
2
2
  export declare function HeaderShell({ activeNavigationItemId, applicationInformation, actions, brand, className, defaultActiveNavigationItemId, menuTriggerLabel, navigationItems, navLabel, onAction, onMenuTriggerClick, onNavigationChange, showMenuTrigger, showNav, showUtilities, style, ...props }: HeaderShellProps): import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=HeaderShell.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderShell.d.ts","sourceRoot":"","sources":["../../../src/components/HeaderShell/HeaderShell.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,gBAAgB,EAGjB,MAAM,aAAa,CAAC;AA4KrB,wBAAgB,WAAW,CAAC,EAC1B,sBAAsB,EACtB,sBAAsB,EACtB,OAAO,EACP,KAAK,EACL,SAAS,EACT,6BAA6B,EAC7B,gBAA8B,EAC9B,eAAe,EACf,QAAoB,EACpB,QAAQ,EACR,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,OAAc,EACd,aAAoB,EACpB,KAAK,EACL,GAAG,KAAK,EACT,EAAE,gBAAgB,2CA4PlB"}
1
+ {"version":3,"file":"HeaderShell.d.ts","sourceRoot":"","sources":["../../../src/components/HeaderShell/HeaderShell.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,gBAAgB,EAGjB,MAAM,aAAa,CAAC;AA4KrB,wBAAgB,WAAW,CAAC,EAC1B,sBAAsB,EACtB,sBAAsB,EACtB,OAAO,EACP,KAAK,EACL,SAAS,EACT,6BAA6B,EAC7B,gBAA8B,EAC9B,eAAe,EACf,QAAoB,EACpB,QAAQ,EACR,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,OAAc,EACd,aAAoB,EACpB,KAAK,EACL,GAAG,KAAK,EACT,EAAE,gBAAgB,2CAgQlB"}
@@ -1,42 +1,42 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { useEffect, useId, useMemo, useRef, useState } from 'react';
3
- import { ApplicationInformationPanel } from '../ApplicationInformationPanel/ApplicationInformationPanel';
4
- import { Icon } from '../Icon/Icon';
2
+ import { useEffect, useId, useMemo, useRef, useState } from "react";
3
+ import { ApplicationInformationPanel } from "../ApplicationInformationPanel/ApplicationInformationPanel";
4
+ import { Icon } from "../Icon/Icon";
5
5
  function getClassName(className) {
6
- return ['liquid-header-shell', className].filter(Boolean).join(' ');
6
+ return ["liquid-header-shell", className].filter(Boolean).join(" ");
7
7
  }
8
8
  function getFirstEnabledNavigationItem(items) {
9
9
  return items?.find((item) => !item.disabled)?.id;
10
10
  }
11
11
  function HeaderNavigationLink({ activeItemId, item, onSelect, }) {
12
12
  const isSelected = item.id === activeItemId;
13
- const isSubmenu = item.type === 'submenu';
13
+ const isSubmenu = item.type === "submenu";
14
14
  const submenuId = useId();
15
15
  const [isSubmenuOpen, setIsSubmenuOpen] = useState(false);
16
16
  if (isSubmenu) {
17
- return (_jsxs("div", { className: "liquid-header-shell__submenu", children: [_jsxs("button", { "aria-controls": submenuId, "aria-expanded": isSubmenuOpen, "aria-haspopup": "menu", className: "liquid-header-shell__nav-link liquid-header-shell__submenu-trigger", "data-selected": isSelected ? 'true' : undefined, "data-submenu-trigger": "true", disabled: item.disabled, onClick: () => {
17
+ return (_jsxs("div", { className: "liquid-header-shell__submenu", children: [_jsxs("button", { "aria-controls": submenuId, "aria-expanded": isSubmenuOpen, "aria-haspopup": "menu", className: "liquid-header-shell__nav-link liquid-header-shell__submenu-trigger", "data-selected": isSelected ? "true" : undefined, "data-submenu-trigger": "true", disabled: item.disabled, onClick: () => {
18
18
  setIsSubmenuOpen((current) => !current);
19
19
  }, type: "button", children: [_jsx("span", { children: item.label }), _jsx(Icon, { "aria-hidden": "true", name: "chevron_down", size: 16 })] }), isSubmenuOpen && item.submenuItems?.length ? (_jsx("div", { className: "liquid-header-shell__submenu-panel", id: submenuId, role: "menu", children: item.submenuItems.map((submenuItem) => (_jsx(HeaderNavigationLink, { activeItemId: activeItemId, item: submenuItem, onSelect: onSelect }, submenuItem.id))) })) : null] }));
20
20
  }
21
21
  if (item.href) {
22
- return (_jsx("a", { className: "liquid-header-shell__nav-link", "data-selected": isSelected ? 'true' : undefined, href: item.href, onClick: (event) => {
22
+ return (_jsx("a", { className: "liquid-header-shell__nav-link", "data-selected": isSelected ? "true" : undefined, href: item.href, onClick: (event) => {
23
23
  if (item.disabled) {
24
24
  event.preventDefault();
25
25
  return;
26
26
  }
27
27
  onSelect(item);
28
- }, "aria-current": isSelected ? 'page' : undefined, "aria-disabled": item.disabled ? true : undefined, children: item.label }));
28
+ }, "aria-current": isSelected ? "page" : undefined, "aria-disabled": item.disabled ? true : undefined, children: item.label }));
29
29
  }
30
- return (_jsx("button", { className: "liquid-header-shell__nav-link", "data-selected": isSelected ? 'true' : undefined, disabled: item.disabled, onClick: () => {
30
+ return (_jsx("button", { className: "liquid-header-shell__nav-link", "data-selected": isSelected ? "true" : undefined, disabled: item.disabled, onClick: () => {
31
31
  if (!item.disabled) {
32
32
  onSelect(item);
33
33
  }
34
- }, type: "button", "aria-current": isSelected ? 'page' : undefined, children: item.label }));
34
+ }, type: "button", "aria-current": isSelected ? "page" : undefined, children: item.label }));
35
35
  }
36
36
  function HeaderUtilityAction({ action, showLabel = false, onAction, }) {
37
37
  const icon = _jsx(Icon, { name: action.icon, size: action.iconSize ?? 24 });
38
38
  if (action.href) {
39
- return (_jsxs("a", { "aria-label": action.label, "aria-controls": action.expandedControlsId, "aria-expanded": action.hasPopup ? action.expanded : undefined, "aria-haspopup": action.hasPopup ? 'dialog' : undefined, className: "liquid-header-shell__action", href: action.href, onClick: (event) => {
39
+ return (_jsxs("a", { "aria-label": action.label, "aria-controls": action.expandedControlsId, "aria-expanded": action.hasPopup ? action.expanded : undefined, "aria-haspopup": action.hasPopup ? "dialog" : undefined, className: "liquid-header-shell__action", href: action.href, onClick: (event) => {
40
40
  if (action.disabled) {
41
41
  event.preventDefault();
42
42
  return;
@@ -44,13 +44,13 @@ function HeaderUtilityAction({ action, showLabel = false, onAction, }) {
44
44
  onAction(action);
45
45
  }, "aria-disabled": action.disabled ? true : undefined, children: [icon, showLabel ? (_jsx("span", { className: "liquid-header-shell__action-label", children: action.label })) : null] }));
46
46
  }
47
- return (_jsxs("button", { "aria-label": action.label, "aria-controls": action.expandedControlsId, "aria-expanded": action.hasPopup ? action.expanded : undefined, "aria-haspopup": action.hasPopup ? 'dialog' : undefined, className: "liquid-header-shell__action", disabled: action.disabled, onClick: () => {
47
+ return (_jsxs("button", { "aria-label": action.label, "aria-controls": action.expandedControlsId, "aria-expanded": action.hasPopup ? action.expanded : undefined, "aria-haspopup": action.hasPopup ? "dialog" : undefined, className: "liquid-header-shell__action", disabled: action.disabled, onClick: () => {
48
48
  if (!action.disabled) {
49
49
  onAction(action);
50
50
  }
51
51
  }, type: "button", children: [icon, showLabel ? (_jsx("span", { className: "liquid-header-shell__action-label", children: action.label })) : null] }));
52
52
  }
53
- export function HeaderShell({ activeNavigationItemId, applicationInformation, actions, brand, className, defaultActiveNavigationItemId, menuTriggerLabel = 'Open menu', navigationItems, navLabel = 'Primary', onAction, onMenuTriggerClick, onNavigationChange, showMenuTrigger, showNav = true, showUtilities = true, style, ...props }) {
53
+ export function HeaderShell({ activeNavigationItemId, applicationInformation, actions, brand, className, defaultActiveNavigationItemId, menuTriggerLabel = "Open menu", navigationItems, navLabel = "Primary", onAction, onMenuTriggerClick, onNavigationChange, showMenuTrigger, showNav = true, showUtilities = true, style, ...props }) {
54
54
  const fallbackActiveId = useMemo(() => getFirstEnabledNavigationItem(navigationItems), [navigationItems]);
55
55
  const [internalActiveId, setInternalActiveId] = useState(defaultActiveNavigationItemId ?? fallbackActiveId);
56
56
  const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
@@ -93,20 +93,20 @@ export function HeaderShell({ activeNavigationItemId, applicationInformation, ac
93
93
  return;
94
94
  }
95
95
  const handleEscape = (event) => {
96
- if (event.key === 'Escape') {
96
+ if (event.key === "Escape") {
97
97
  closeMobileMenu();
98
98
  }
99
99
  };
100
100
  const previousOverflow = document.body.style.overflow;
101
- document.body.style.overflow = 'hidden';
102
- window.addEventListener('keydown', handleEscape);
101
+ document.body.style.overflow = "hidden";
102
+ window.addEventListener("keydown", handleEscape);
103
103
  return () => {
104
104
  document.body.style.overflow = previousOverflow;
105
- window.removeEventListener('keydown', handleEscape);
105
+ window.removeEventListener("keydown", handleEscape);
106
106
  };
107
107
  }, [isMobileMenuOpen]);
108
108
  const handleMobilePanelKeyDown = (event) => {
109
- if (event.key !== 'Tab') {
109
+ if (event.key !== "Tab") {
110
110
  return;
111
111
  }
112
112
  const focusable = Array.from(mobilePanelRef.current?.querySelectorAll('a[href], button:not([disabled]), [tabindex]:not([tabindex="-1"])') ?? []);
@@ -124,18 +124,18 @@ export function HeaderShell({ activeNavigationItemId, applicationInformation, ac
124
124
  first.focus();
125
125
  }
126
126
  };
127
- const navigationContent = (_jsx(_Fragment, { children: navigationItems.map((item) => (_jsx(HeaderNavigationLink, { activeItemId: resolvedActiveId, item: item, onSelect: handleNavigationSelect }, item.id))) }));
127
+ const navigationContent = (_jsx(_Fragment, { children: navigationItems.map((item) => (_jsx("li", { children: _jsx(HeaderNavigationLink, { activeItemId: resolvedActiveId, item: item, onSelect: handleNavigationSelect }) }, item.id))) }));
128
128
  const actionsContent = actions?.length ? (_jsx(_Fragment, { children: actions.map((action) => (_jsx(HeaderUtilityAction, { action: action, onAction: handleAction }, action.id))) })) : null;
129
129
  const mobileActionsContent = actions?.length ? (_jsx(_Fragment, { children: actions.map((action) => (_jsx(HeaderUtilityAction, { action: action, showLabel: true, onAction: handleAction }, `mobile:${action.id}`))) })) : null;
130
130
  const applicationInformationContent = applicationInformation ? (_jsx(ApplicationInformationPanel, { ...applicationInformation })) : null;
131
- return (_jsxs("header", { ...props, className: getClassName(className), "data-application-information-enabled": applicationInformationContent ? 'true' : undefined, "data-mobile-menu-enabled": shouldShowMenuTrigger ? 'true' : undefined, style: style, children: [_jsxs("div", { className: "liquid-header-shell__inner", children: [_jsxs("div", { className: "liquid-header-shell__left", children: [shouldShowMenuTrigger ? (_jsx("button", { "aria-label": menuTriggerLabel, "aria-controls": mobileAccordionId, "aria-expanded": isMobileMenuOpen, className: "liquid-header-shell__action liquid-header-shell__menu-trigger", ref: menuTriggerRef, onClick: handleMenuTriggerClick, type: "button", children: _jsx(Icon, { name: isMobileMenuOpen ? 'close' : 'menu', size: 20 }) })) : null, _jsx("div", { className: "liquid-header-shell__brand", children: brand }), showNav ? (_jsx("nav", { "aria-label": navLabel, className: "liquid-header-shell__nav", children: _jsx("div", { className: "liquid-header-shell__nav-list", children: navigationContent }) })) : null] }), showUtilities && actionsContent ? (_jsx("div", { className: "liquid-header-shell__actions", children: actionsContent })) : null, showUtilities && applicationInformationContent ? (_jsx("div", { className: "liquid-header-shell__application-information", children: applicationInformationContent })) : null, shouldShowMenuTrigger && !applicationInformationContent ? (_jsx("div", { "aria-hidden": "true", className: "liquid-header-shell__right-spacer" })) : null] }), shouldShowMenuTrigger ? (_jsxs("div", { className: "liquid-header-shell__mobile-layer", "data-open": isMobileMenuOpen ? 'true' : undefined, hidden: !isMobileMenuOpen, children: [_jsx("button", { "aria-label": "Close menu", className: "liquid-header-shell__mobile-backdrop", onClick: () => {
131
+ return (_jsxs("header", { ...props, className: getClassName(className), "data-application-information-enabled": applicationInformationContent ? "true" : undefined, "data-mobile-menu-enabled": shouldShowMenuTrigger ? "true" : undefined, style: style, children: [_jsxs("div", { className: "liquid-header-shell__inner", children: [_jsxs("div", { className: "liquid-header-shell__left", children: [shouldShowMenuTrigger ? (_jsx("button", { "aria-label": menuTriggerLabel, "aria-controls": mobileAccordionId, "aria-expanded": isMobileMenuOpen, className: "liquid-header-shell__action liquid-header-shell__menu-trigger", ref: menuTriggerRef, onClick: handleMenuTriggerClick, type: "button", children: _jsx(Icon, { name: isMobileMenuOpen ? "close" : "menu", size: 20 }) })) : null, _jsx("div", { className: "liquid-header-shell__brand", children: brand }), showNav ? (_jsx("nav", { "aria-label": navLabel, className: "liquid-header-shell__nav", children: _jsx("ul", { className: "liquid-header-shell__nav-list", role: "list", children: navigationContent }) })) : null] }), showUtilities && actionsContent ? (_jsx("div", { className: "liquid-header-shell__actions", children: actionsContent })) : null, showUtilities && applicationInformationContent ? (_jsx("div", { className: "liquid-header-shell__application-information", children: applicationInformationContent })) : null, shouldShowMenuTrigger && !applicationInformationContent ? (_jsx("div", { "aria-hidden": "true", className: "liquid-header-shell__right-spacer" })) : null] }), shouldShowMenuTrigger ? (_jsxs("div", { className: "liquid-header-shell__mobile-layer", "data-open": isMobileMenuOpen ? "true" : undefined, hidden: !isMobileMenuOpen, children: [_jsx("button", { "aria-label": "Close menu", className: "liquid-header-shell__mobile-backdrop", onClick: () => {
132
132
  closeMobileMenu();
133
133
  }, type: "button" }), _jsxs("aside", { className: "liquid-header-shell__mobile-panel", id: mobileAccordionId, role: "dialog", "aria-modal": "true", "aria-label": navLabel, ref: mobilePanelRef, onClick: (event) => {
134
134
  const target = event.target;
135
- if ((!target.closest('.liquid-header-shell__submenu-trigger') &&
136
- target.closest('.liquid-header-shell__nav-link')) ||
137
- target.closest('.liquid-header-shell__action')) {
135
+ if ((!target.closest(".liquid-header-shell__submenu-trigger") &&
136
+ target.closest(".liquid-header-shell__nav-link")) ||
137
+ target.closest(".liquid-header-shell__action")) {
138
138
  closeMobileMenu();
139
139
  }
140
- }, onKeyDown: handleMobilePanelKeyDown, children: [showNav ? (_jsx("nav", { "aria-label": navLabel, className: "liquid-header-shell__mobile-nav", children: _jsx("div", { className: "liquid-header-shell__mobile-nav-list", children: navigationContent }) })) : null, showUtilities && mobileActionsContent ? (_jsx("div", { className: "liquid-header-shell__mobile-actions", children: mobileActionsContent })) : null] })] })) : null] }));
140
+ }, onKeyDown: handleMobilePanelKeyDown, children: [showNav ? (_jsx("nav", { "aria-label": navLabel, className: "liquid-header-shell__mobile-nav", children: _jsx("ul", { className: "liquid-header-shell__mobile-nav-list", role: "list", children: navigationContent }) })) : null, showUtilities && mobileActionsContent ? (_jsx("div", { className: "liquid-header-shell__mobile-actions", children: mobileActionsContent })) : null] })] })) : null] }));
141
141
  }