@pega/cosmos-react-core 10.0.0-build.9.11 → 10.0.0-build.9.13

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 (125) hide show
  1. package/lib/components/AppShell/AppHeader.d.ts.map +1 -1
  2. package/lib/components/AppShell/AppHeader.js +46 -3
  3. package/lib/components/AppShell/AppHeader.js.map +1 -1
  4. package/lib/components/AppShell/AppNavigationPanel.d.ts.map +1 -1
  5. package/lib/components/AppShell/AppNavigationPanel.js +12 -3
  6. package/lib/components/AppShell/AppNavigationPanel.js.map +1 -1
  7. package/lib/components/AppShell/AppShell.d.ts.map +1 -1
  8. package/lib/components/AppShell/AppShell.js +40 -10
  9. package/lib/components/AppShell/AppShell.js.map +1 -1
  10. package/lib/components/AppShell/AppShell.styles.d.ts +8 -0
  11. package/lib/components/AppShell/AppShell.styles.d.ts.map +1 -1
  12. package/lib/components/AppShell/AppShell.styles.js +53 -3
  13. package/lib/components/AppShell/AppShell.styles.js.map +1 -1
  14. package/lib/components/AppShell/AppShell.types.d.ts +50 -0
  15. package/lib/components/AppShell/AppShell.types.d.ts.map +1 -1
  16. package/lib/components/AppShell/AppShell.types.js.map +1 -1
  17. package/lib/components/AppShell/AppShellContext.d.ts +2 -0
  18. package/lib/components/AppShell/AppShellContext.d.ts.map +1 -1
  19. package/lib/components/AppShell/AppShellContext.js.map +1 -1
  20. package/lib/components/AppShell/AppShellList.d.ts.map +1 -1
  21. package/lib/components/AppShell/AppShellList.js +2 -1
  22. package/lib/components/AppShell/AppShellList.js.map +1 -1
  23. package/lib/components/AppShell/AppTopNav.styles.d.ts.map +1 -1
  24. package/lib/components/AppShell/AppTopNav.styles.js +5 -1
  25. package/lib/components/AppShell/AppTopNav.styles.js.map +1 -1
  26. package/lib/components/AppShell/DocumentTabs.styles.d.ts.map +1 -1
  27. package/lib/components/AppShell/DocumentTabs.styles.js +4 -2
  28. package/lib/components/AppShell/DocumentTabs.styles.js.map +1 -1
  29. package/lib/components/AppShell/HeaderActionButton.d.ts +20 -0
  30. package/lib/components/AppShell/HeaderActionButton.d.ts.map +1 -0
  31. package/lib/components/AppShell/HeaderActionButton.js +78 -0
  32. package/lib/components/AppShell/HeaderActionButton.js.map +1 -0
  33. package/lib/components/AppShell/Panel/Panel.d.ts +15 -0
  34. package/lib/components/AppShell/Panel/Panel.d.ts.map +1 -0
  35. package/lib/components/AppShell/Panel/Panel.js +80 -0
  36. package/lib/components/AppShell/Panel/Panel.js.map +1 -0
  37. package/lib/components/AppShell/Panel/Panel.styles.d.ts +188 -0
  38. package/lib/components/AppShell/Panel/Panel.styles.d.ts.map +1 -0
  39. package/lib/components/AppShell/Panel/Panel.styles.js +85 -0
  40. package/lib/components/AppShell/Panel/Panel.styles.js.map +1 -0
  41. package/lib/components/AppShell/Panel/Panel.test-ids.d.ts +2 -0
  42. package/lib/components/AppShell/Panel/Panel.test-ids.d.ts.map +1 -0
  43. package/lib/components/AppShell/Panel/Panel.test-ids.js +3 -0
  44. package/lib/components/AppShell/Panel/Panel.test-ids.js.map +1 -0
  45. package/lib/components/AppShell/Panel/Panel.types.d.ts +33 -0
  46. package/lib/components/AppShell/Panel/Panel.types.d.ts.map +1 -0
  47. package/lib/components/AppShell/Panel/Panel.types.js +2 -0
  48. package/lib/components/AppShell/Panel/Panel.types.js.map +1 -0
  49. package/lib/components/AppShell/Panel/PanelHeaderActions.d.ts +8 -0
  50. package/lib/components/AppShell/Panel/PanelHeaderActions.d.ts.map +1 -0
  51. package/lib/components/AppShell/Panel/PanelHeaderActions.js +17 -0
  52. package/lib/components/AppShell/Panel/PanelHeaderActions.js.map +1 -0
  53. package/lib/components/AppShell/Panel/index.d.ts +4 -0
  54. package/lib/components/AppShell/Panel/index.d.ts.map +1 -0
  55. package/lib/components/AppShell/Panel/index.js +4 -0
  56. package/lib/components/AppShell/Panel/index.js.map +1 -0
  57. package/lib/components/AppShell/Panel/usePanel.d.ts +12 -0
  58. package/lib/components/AppShell/Panel/usePanel.d.ts.map +1 -0
  59. package/lib/components/AppShell/Panel/usePanel.js +30 -0
  60. package/lib/components/AppShell/Panel/usePanel.js.map +1 -0
  61. package/lib/components/AppShell/TopNavDrawerProvider.d.ts +5 -1
  62. package/lib/components/AppShell/TopNavDrawerProvider.d.ts.map +1 -1
  63. package/lib/components/AppShell/TopNavDrawerProvider.js +18 -3
  64. package/lib/components/AppShell/TopNavDrawerProvider.js.map +1 -1
  65. package/lib/components/AppShell/TouchAppShell.d.ts +1 -1
  66. package/lib/components/AppShell/TouchAppShell.d.ts.map +1 -1
  67. package/lib/components/AppShell/TouchAppShell.js +34 -7
  68. package/lib/components/AppShell/TouchAppShell.js.map +1 -1
  69. package/lib/components/AppShell/TouchAppShell.styles.d.ts.map +1 -1
  70. package/lib/components/AppShell/TouchAppShell.styles.js +10 -0
  71. package/lib/components/AppShell/TouchAppShell.styles.js.map +1 -1
  72. package/lib/components/AppShell/headerActionUtils.d.ts +12 -0
  73. package/lib/components/AppShell/headerActionUtils.d.ts.map +1 -0
  74. package/lib/components/AppShell/headerActionUtils.js +69 -0
  75. package/lib/components/AppShell/headerActionUtils.js.map +1 -0
  76. package/lib/components/AppShell/index.d.ts +2 -1
  77. package/lib/components/AppShell/index.d.ts.map +1 -1
  78. package/lib/components/AppShell/index.js.map +1 -1
  79. package/lib/components/Drawer/Drawer.d.ts +12 -1
  80. package/lib/components/Drawer/Drawer.d.ts.map +1 -1
  81. package/lib/components/Drawer/Drawer.js +22 -23
  82. package/lib/components/Drawer/Drawer.js.map +1 -1
  83. package/lib/components/Drawer/ResizeHandle.d.ts +9 -2
  84. package/lib/components/Drawer/ResizeHandle.d.ts.map +1 -1
  85. package/lib/components/Drawer/ResizeHandle.js +41 -17
  86. package/lib/components/Drawer/ResizeHandle.js.map +1 -1
  87. package/lib/components/Link/Link.d.ts +2 -0
  88. package/lib/components/Link/Link.d.ts.map +1 -1
  89. package/lib/components/Link/Link.js +2 -2
  90. package/lib/components/Link/Link.js.map +1 -1
  91. package/lib/components/Location/LocationInput.d.ts +1 -1
  92. package/lib/components/Location/LocationInput.d.ts.map +1 -1
  93. package/lib/components/Location/LocationInput.js.map +1 -1
  94. package/lib/components/Signature/Signature.d.ts +28 -0
  95. package/lib/components/Signature/Signature.d.ts.map +1 -0
  96. package/lib/components/Signature/Signature.js +397 -0
  97. package/lib/components/Signature/Signature.js.map +1 -0
  98. package/lib/components/Signature/Signature.styles.d.ts +197 -0
  99. package/lib/components/Signature/Signature.styles.d.ts.map +1 -0
  100. package/lib/components/Signature/Signature.styles.js +119 -0
  101. package/lib/components/Signature/Signature.styles.js.map +1 -0
  102. package/lib/components/Signature/Signature.test-ids.d.ts +2 -0
  103. package/lib/components/Signature/Signature.test-ids.d.ts.map +1 -0
  104. package/lib/components/Signature/Signature.test-ids.js +3 -0
  105. package/lib/components/Signature/Signature.test-ids.js.map +1 -0
  106. package/lib/components/Signature/index.d.ts +4 -0
  107. package/lib/components/Signature/index.d.ts.map +1 -0
  108. package/lib/components/Signature/index.js +3 -0
  109. package/lib/components/Signature/index.js.map +1 -0
  110. package/lib/hooks/useBreakpoint.d.ts.map +1 -1
  111. package/lib/hooks/useBreakpoint.js +3 -1
  112. package/lib/hooks/useBreakpoint.js.map +1 -1
  113. package/lib/hooks/useI18n.d.ts +23 -0
  114. package/lib/hooks/useI18n.d.ts.map +1 -1
  115. package/lib/i18n/default.d.ts +23 -0
  116. package/lib/i18n/default.d.ts.map +1 -1
  117. package/lib/i18n/default.js +24 -0
  118. package/lib/i18n/default.js.map +1 -1
  119. package/lib/i18n/i18n.d.ts +23 -0
  120. package/lib/i18n/i18n.d.ts.map +1 -1
  121. package/lib/index.d.ts +2 -0
  122. package/lib/index.d.ts.map +1 -1
  123. package/lib/index.js +2 -0
  124. package/lib/index.js.map +1 -1
  125. package/package.json +2 -1
@@ -5,6 +5,7 @@ import type { ProgressProps } from '../Progress';
5
5
  import type { SearchInputProps } from '../SearchInput';
6
6
  import type { MenuItemProps } from '../Menu';
7
7
  import type { MenuButtonProps } from '../MenuButton';
8
+ import type { PanelProps } from './Panel/Panel.types';
8
9
  /** Share Application button configuration */
9
10
  export interface ShareAppConfig {
10
11
  /** Click handler for the share application button. */
@@ -49,6 +50,41 @@ interface ContextSwitcherOptions extends BaseProps {
49
50
  label?: string;
50
51
  }
51
52
  export type ContextSwitcherProps = ContextSwitcherOptions | Record<string, never>;
53
+ /** Where a header action renders its content. `modal` is owned by the consumer. */
54
+ export type ActionRenderTarget = 'modal' | 'popover' | 'panel1';
55
+ interface ActionBaseProps {
56
+ /** Unique id of the action. */
57
+ id: string;
58
+ /** The display name of the action. */
59
+ label: string;
60
+ /** The name of the Cosmos Icon to render. */
61
+ icon?: string;
62
+ /** Number displayed in a badge next to the action. */
63
+ count?: number;
64
+ /** Click handler for the action. */
65
+ onClick: () => void;
66
+ }
67
+ export interface RenderActionProps extends ActionBaseProps {
68
+ type: 'render';
69
+ href?: never;
70
+ /** Where the action renders. When undefined only `onClick` is invoked. */
71
+ renderTarget?: ActionRenderTarget;
72
+ }
73
+ export interface NavigationActionProps extends ActionBaseProps {
74
+ type: 'navigation';
75
+ /** URL to open in a new tab. */
76
+ href: string;
77
+ renderTarget?: never;
78
+ }
79
+ export type ActionProps = RenderActionProps | NavigationActionProps;
80
+ export interface ActionPopoverProps {
81
+ /** Id of the header action the popover is anchored to. */
82
+ actionId: string;
83
+ /** The content of the popover. */
84
+ children: ReactNode;
85
+ /** Called when the popover should be dismissed. */
86
+ onDismiss: () => void;
87
+ }
52
88
  export interface AppShellProps extends BaseProps, NoChildrenProp {
53
89
  /** Props related to the App Shell header. */
54
90
  appInfo: AppInfoProps;
@@ -103,6 +139,12 @@ export interface AppShellProps extends BaseProps, NoChildrenProp {
103
139
  navOrientation?: NavOrientation;
104
140
  /** Props related to the document tabs. When provided, shows horizontal tabs below the header. */
105
141
  documentTabs?: DocumentTabsProps;
142
+ /** A set of actions that render in the header. */
143
+ headerActions?: ActionProps[];
144
+ /** Controlled non-modal panel on the inline-start side. Set when a `panel1` action is clicked; leave undefined to close. */
145
+ panel1?: PanelProps;
146
+ /** Controlled popover content anchored to the header action whose id equals `popover.actionId`. */
147
+ popover?: ActionPopoverProps;
106
148
  }
107
149
  export type NavOrientation = 'side-rail' | 'top-bar';
108
150
  export interface CaseTypeProps {
@@ -180,6 +222,8 @@ export interface NotificationsProps extends Pick<NavListItemProps, 'visual'> {
180
222
  export interface UtilItemProps extends Pick<NavListItemProps, 'visual' | 'actions' | 'onClick'> {
181
223
  /** The display name of an utility item. */
182
224
  name: string;
225
+ /** Id of an element whose text is appended to the name of the item, e.g. a visually hidden hint. */
226
+ 'aria-labelledby'?: string;
183
227
  /** Number when given displays on top-right of a given icon. */
184
228
  count?: number;
185
229
  /** View that renders on an appShell drawer onClick of an item */
@@ -261,6 +305,12 @@ export interface AppHeaderProps extends BaseProps, AppInfoProps {
261
305
  shareApp?: ShareAppConfig;
262
306
  /** Configuration for the portal switcher button. */
263
307
  portalSwitcher?: PortalSwitcherConfig;
308
+ /** A set of actions that render in the header. */
309
+ headerActions?: AppShellProps['headerActions'];
310
+ /** The open `panel1`, used to reflect the expanded state of the action that opened it. */
311
+ panel1?: AppShellProps['panel1'];
312
+ /** Popover content anchored to the header action whose id equals `popover.actionId`. */
313
+ popover?: AppShellProps['popover'];
264
314
  }
265
315
  /** Drawer props */
266
316
  export interface DrawerListProps {
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.types.d.ts","sourceRoot":"","sources":["../../../src/components/AppShell/AppShell.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,YAAY,EACZ,SAAS,EACT,GAAG,EACH,SAAS,EACV,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC3F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;A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AC;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC,sCAAsC;IACtC,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,0CAA0C;IAC1C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sCAAsC;IACtC,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,qDAAqD;IACrD,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,gFAAgF;IAChF,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,2EAA2E;IAC3E,YAAY,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CAC/C"}
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.types.js","sourceRoot":"","sources":["../../../src/components/AppShell/AppShell.types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n KeyboardEvent,\n MouseEvent,\n MouseEventHandler,\n ReactElement,\n ReactNode,\n Ref,\n RefObject\n} from 'react';\n\nimport type { Action, AsProp, BaseProps, ForwardProps, NoChildrenProp } from '../../types';\nimport type { ImageProps } from '../Image';\nimport type { ProgressProps } from '../Progress';\nimport type { SearchInputProps } from '../SearchInput';\nimport type { MenuItemProps } from '../Menu';\nimport type { MenuButtonProps } from '../MenuButton';\n\n/** Share Application button configuration */\nexport interface ShareAppConfig {\n /** Click handler for the share application button. */\n onClick: NavListItemProps['onClick'];\n /** Label for the share application button. */\n label?: string;\n}\n\n/** Portal switcher button configuration. */\nexport type PortalSwitcherConfig = Pick<MenuButtonProps, 'text' | 'icon' | 'onClick' | 'menu'>;\n\n/** AppShell props */\n\nexport interface AppInfoProps {\n /** The primary text to render in the header. */\n appName: string;\n /** If true, the appName will not be visibly displayed on screen. */\n appNameHidden?: boolean;\n /** The source for a small application image or logo that is rendered in the nav bar. */\n imageSrc: ImageProps['src'];\n /** The alt text for the image. Defaults to \"Application logo\" */\n imageAltText?: string;\n /** The source for the full size application image or logo that is rendered in the app header, if enabled. */\n fullImageSrc?: ImageProps['src'];\n /** URL or DOM id to navigate to. */\n href?: string;\n /** Click handler for the header. */\n onClick?: MouseEventHandler<HTMLAnchorElement>;\n /** The secondary text to render in the header. */\n portalName?: string;\n /** Specifies where to open the link href. */\n target?: string;\n}\n\nexport interface ContextItem extends Pick<MenuItemProps, 'id' | 'primary' | 'visual' | 'href'> {\n selected: MenuItemProps['selected'];\n}\n\ninterface ContextSwitcherOptions extends BaseProps {\n /** Application contexts available to user. */\n contexts: ContextItem[];\n /** Callback on click of item in context switcher. */\n onContextClick: (id: MenuItemProps['id'], e: MouseEvent<HTMLElement>) => void;\n /** Label of context being modified; i.e: \"Switch Application\", \"Switch Studio\"\n * @default 'Switch to…'\n */\n label?: string;\n}\n\nexport type ContextSwitcherProps = ContextSwitcherOptions | Record<string, never>;\n\nexport interface AppShellProps extends BaseProps, NoChildrenProp {\n /** Props related to the App Shell header. */\n appInfo: AppInfoProps;\n /** The content of the application. */\n main: ReactNode;\n /** The active user of the application. */\n operator: OperatorProps;\n /** The notifications panel of the application. */\n notifications?: NotificationsProps;\n /** If true, a header will render containing the logo and name of the app as well as search, notifications and operator regions. */\n appHeader?: boolean;\n /** Context switcher configuration. */\n contextSwitcher?: ContextSwitcherProps;\n /** If true, the search results page will replace the search input in the app header with its own */\n searchPage?: boolean;\n /** Props related to the Search Input. */\n searchInput?: SearchInputProps;\n /**\n * The aria-label for the search input.\n * @default 'Sitewide'\n */\n searchLabel?: string;\n /** A set of cases that will render in an expanded list within the App Shell. */\n caseTypes?: CaseTypeProps[];\n /** A set of links that will render as a flat list in the App Shell. */\n links?: LinkProps[];\n /** Agent configuration. */\n agent?: AgentProps;\n /** A set of cases that will render as a flat list in the App Shell. */\n cases?: CaseProps[];\n /** Place the main content of the application into a loading state by way of a boolean or a custom message. */\n progress?: boolean | ProgressProps['message'];\n /** A set of app utilities like notifications, recents that renders at the bottom of AppShell */\n utils?: (UtilItemProps | ReactElement)[];\n /** A set of app utilities for the Header */\n headerUtils?: [ReactNode, ReactNode];\n /** Configuration for the help menu in the header */\n helpMenu?: MenuItemProps[];\n /** Banners will render above the main content if they are provided. */\n banners?: ReactNode;\n defaultExpanded?: boolean;\n /** When the navigation is collapsed menus will be shown on hover instead of on click */\n collapsedHoverMenus?: boolean;\n /** Configuration for the Share Application button. */\n shareApp?: ShareAppConfig;\n /** Configuration for the portal switcher button. */\n portalSwitcher?: PortalSwitcherConfig;\n /**\n * Orientation of the primary navigation.\n * @default 'side-rail'\n */\n navOrientation?: NavOrientation;\n /** Props related to the document tabs. When provided, shows horizontal tabs below the header. */\n documentTabs?: DocumentTabsProps;\n}\n\nexport type NavOrientation = 'side-rail' | 'top-bar';\n\nexport interface CaseTypeProps {\n /** The display name of the case. */\n name: string;\n /** The icon for the case. */\n icon?: string;\n /** Click handler for the case. */\n onClick?: MouseEventHandler<HTMLButtonElement>;\n}\n\nexport interface LinkProps extends ForwardProps {\n /** Unique id */\n id: string;\n /** The display name of the link. */\n name: string;\n /** URL or DOM id to navigate to. */\n href: string;\n /** The name of the Cosmos Icon to render as a visual. */\n icon?: string;\n /** Determines if the link represents the active page. */\n active?: boolean;\n /** A set of nested links. */\n links?: LinkProps[];\n /** Click handler for the link. */\n onClick?: MouseEventHandler<HTMLElement>;\n}\n\nexport interface AgentProps extends Pick<LinkProps, 'id' | 'name' | 'active' | 'onClick'> {\n /** Icon or visual element for the agent. */\n icon?: ReactNode;\n}\n\nexport interface CaseProps extends ForwardProps {\n /** Unique id */\n id: string;\n /** Name of the case or some primary information like title. */\n primary: string;\n /** Additional info of a case like timestamp. */\n secondary?: string;\n /** Presents short, quickly identifiable info to a user for a collapsed nav item. */\n collapsedItemInfo?: string;\n /** A visual element identifying the case. If not passed will render case-solid icon */\n visual?: ReactNode;\n /** Determines if the case represents the active page. */\n active?: boolean;\n /** Click handler for the case . */\n onClick?: MouseEventHandler<HTMLElement>;\n /** Dismiss handler for the case. */\n onDismiss?: MouseEventHandler<HTMLElement>;\n}\n\nexport interface OperatorProps {\n /** A visual element identifying the operator. */\n avatar: ReactNode;\n /** A list of actions that will populate a menu attached to the operator. */\n actions: Pick<NavListItemProps, 'id' | 'primary' | 'href' | 'onClick' | 'visual'>[];\n /** The name of the operator. */\n name: string;\n}\n\nexport interface NotificationsProps extends Pick<NavListItemProps, 'visual'> {\n /** The display name of the notifications, used as the trigger label and popover heading. */\n name: string;\n /** Number of new notifications, displayed as a badge on the trigger when greater than 0. */\n count?: number;\n /** Content rendered in the notifications popover. */\n content?: ReactNode;\n /** Called when the popover opens. */\n onOpen?: () => void;\n /** Called when the popover closes. */\n onClose?: () => void;\n /** When given, renders a \"Mark all as read\" button in the popover header. */\n onMarkAllAsRead?: () => void;\n /** Actions rendered in the popover header. */\n actions?: Action[];\n /** Ref for the popover actions button element. */\n actionsButtonRef?: Ref<HTMLButtonElement>;\n}\n\nexport interface UtilItemProps extends Pick<NavListItemProps, 'visual' | 'actions' | 'onClick'> {\n /** The display name of an utility item. */\n name: string;\n /** Number when given displays on top-right of a given icon. */\n count?: number;\n /** View that renders on an appShell drawer onClick of an item */\n drawerView?: ReactNode;\n /** Heading for view that renders */\n drawerHeader?: string;\n /** Callback that fires on appshell drawer open */\n onDrawerOpen?: () => void;\n /** Callback that fires on appshell drawer close */\n onDrawerClose?: () => void;\n}\n\nexport interface UtilsProps {\n /** Context switcher config. */\n contextSwitcher?: ContextSwitcherProps | Record<string, never>;\n /** The active user of the application. */\n operator?: AppShellProps['operator'];\n /** A set of app utilities like notifications, recents that renders at the bottom of AppShell */\n items?: (UtilItemProps | ReactElement)[];\n /** Configuration for the Share Application button. */\n shareApp?: ShareAppConfig;\n /** Configuration for the portal switcher button. */\n portalSwitcher?: PortalSwitcherConfig;\n}\n\nexport interface NavListProps extends AsProp, BaseProps {\n items?: (NavListItemProps | ReactElement)[];\n nestedList?: boolean;\n collapsed?: boolean;\n id?: string;\n /** Whether the list is of single-select style options */\n singleSelect?: boolean;\n mobileNavBar?: boolean;\n}\n\nexport interface NavListItemWrapperProps extends ForwardProps {\n label: string;\n tooltipLabel: string;\n content?: ReactNode;\n items?: NavListItemProps[];\n /** @default 5 */\n filterAt?: number;\n onMenuToggle?: (state: 'open' | 'close') => void;\n childElementRef: RefObject<HTMLElement>;\n mobileNavBar?: boolean;\n}\n\nexport interface NavListItemProps extends AsProp, BaseProps, ForwardProps, NoChildrenProp {\n id?: string;\n visual?: ReactNode;\n primary: string;\n secondary?: string;\n /** Presents short, quickly identifiable info to a user for a collapsed nav item. */\n collapsedItemInfo?: string;\n href?: string;\n onClick?: MouseEventHandler<HTMLElement>;\n items?: NavListItemProps[];\n collapseItems?: boolean;\n actions?: OperatorProps['actions'];\n onDismiss?: MouseEventHandler<HTMLElement>;\n forwardedRef?: Ref<HTMLAnchorElement | HTMLDivElement | HTMLButtonElement>;\n isMenuItem?: boolean;\n /** Whether the item is a single-select option */\n singleSelect?: NavListProps['singleSelect'];\n /** Whether the item is selected */\n selected?: boolean;\n mobileNavBar?: boolean;\n}\n\nexport interface NavMenuProps extends NavListItemProps {\n forwardedRef?: Ref<HTMLButtonElement>;\n}\n\n/** AppHeader props */\n\nexport interface AppHeaderProps extends BaseProps, AppInfoProps {\n contextSwitcher?: ContextSwitcherProps | Record<string, never>;\n operator: AppShellProps['operator'];\n notifications?: AppShellProps['notifications'];\n searchInput?: AppShellProps['searchInput'];\n searchLabel?: AppShellProps['searchLabel'];\n searchPage?: AppShellProps['searchPage'];\n headerUtils?: AppShellProps['headerUtils'];\n helpMenu?: AppShellProps['helpMenu'];\n /** Configuration for the Share Application button. */\n shareApp?: ShareAppConfig;\n /** Configuration for the portal switcher button. */\n portalSwitcher?: PortalSwitcherConfig;\n}\n\n/** Drawer props */\n\nexport interface DrawerListProps {\n items: (DrawerItemProps & ForwardProps)[];\n loading?: boolean;\n viewAll?: {\n onClick?: MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>;\n href?: string;\n } & ForwardProps;\n newNotifications?: number;\n onItemClick?: (id: string, event: MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void;\n onItemPinToggle?: (id: string) => void;\n onDrawerOpen?: () => void;\n onDrawerClose?: () => void;\n}\n\nexport interface DrawerItemProps extends BaseProps {\n /** An id representing the item. */\n id: string;\n /** The primary text for the item. */\n primary: string;\n /** Secondary text that will be rendered as a Meta List. */\n secondary?: string[];\n /** A visual associated with the item. */\n visual?: ReactNode;\n /** A flag indicating if the item has been read. */\n unread?: boolean;\n /** A flag indicating if the item has been pinned or not. */\n pinned?: boolean;\n /** URL or DOM id to navigate to. */\n href?: string;\n /** The onClick handler for the item. */\n onClick?: (id: string, event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>) => void;\n /** The handler hat is called when a pin icon is toggled on an item. */\n onPinToggle?: (id: string) => void;\n}\n\nexport interface ListProps extends DrawerListProps {\n headingText?: string;\n emptyText: string;\n displayRecents: boolean;\n displayPins?: boolean;\n}\n\nexport type DocumentTabGroup = 'page' | 'case' | 'data';\n\nexport interface DocumentTab {\n /** Unique id for the tab. */\n id: string;\n /** Display label for the tab. */\n label: string;\n /** Optional icon name to display in the tab. */\n icon?: string;\n /** Whether the tab can be closed. Defaults to true. */\n closeable?: boolean;\n /** Group for overflow menu categorization. */\n group?: DocumentTabGroup;\n /** Secondary line in overflow menu. */\n secondary?: string;\n /** When false, tab cannot be reordered. Defaults to true. */\n reorderable?: boolean;\n}\n\nexport interface DocumentTabsProps {\n /** The list of open document tabs. */\n items: DocumentTab[];\n /** The id of the currently active tab. */\n currentTabId?: string;\n /** Callback when a tab is clicked. */\n onTabClick?: (id: string) => void;\n /** Callback when a tab's close button is clicked. */\n onTabClose?: (id: string) => void;\n /** Callback when all closeable tabs should be closed from the overflow menu. */\n onTabCloseAll?: () => void;\n /** Callback when tabs are reordered. Receives tab ids in display order. */\n onTabReorder?: (orderedIds: string[]) => void;\n}\n"]}
1
+ {"version":3,"file":"AppShell.types.js","sourceRoot":"","sources":["../../../src/components/AppShell/AppShell.types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n KeyboardEvent,\n MouseEvent,\n MouseEventHandler,\n ReactElement,\n ReactNode,\n Ref,\n RefObject\n} from 'react';\n\nimport type { Action, AsProp, BaseProps, ForwardProps, NoChildrenProp } from '../../types';\nimport type { ImageProps } from '../Image';\nimport type { ProgressProps } from '../Progress';\nimport type { SearchInputProps } from '../SearchInput';\nimport type { MenuItemProps } from '../Menu';\nimport type { MenuButtonProps } from '../MenuButton';\n\nimport type { PanelProps } from './Panel/Panel.types';\n\n/** Share Application button configuration */\nexport interface ShareAppConfig {\n /** Click handler for the share application button. */\n onClick: NavListItemProps['onClick'];\n /** Label for the share application button. */\n label?: string;\n}\n\n/** Portal switcher button configuration. */\nexport type PortalSwitcherConfig = Pick<MenuButtonProps, 'text' | 'icon' | 'onClick' | 'menu'>;\n\n/** AppShell props */\n\nexport interface AppInfoProps {\n /** The primary text to render in the header. */\n appName: string;\n /** If true, the appName will not be visibly displayed on screen. */\n appNameHidden?: boolean;\n /** The source for a small application image or logo that is rendered in the nav bar. */\n imageSrc: ImageProps['src'];\n /** The alt text for the image. Defaults to \"Application logo\" */\n imageAltText?: string;\n /** The source for the full size application image or logo that is rendered in the app header, if enabled. */\n fullImageSrc?: ImageProps['src'];\n /** URL or DOM id to navigate to. */\n href?: string;\n /** Click handler for the header. */\n onClick?: MouseEventHandler<HTMLAnchorElement>;\n /** The secondary text to render in the header. */\n portalName?: string;\n /** Specifies where to open the link href. */\n target?: string;\n}\n\nexport interface ContextItem extends Pick<MenuItemProps, 'id' | 'primary' | 'visual' | 'href'> {\n selected: MenuItemProps['selected'];\n}\n\ninterface ContextSwitcherOptions extends BaseProps {\n /** Application contexts available to user. */\n contexts: ContextItem[];\n /** Callback on click of item in context switcher. */\n onContextClick: (id: MenuItemProps['id'], e: MouseEvent<HTMLElement>) => void;\n /** Label of context being modified; i.e: \"Switch Application\", \"Switch Studio\"\n * @default 'Switch to…'\n */\n label?: string;\n}\n\nexport type ContextSwitcherProps = ContextSwitcherOptions | Record<string, never>;\n\n/** Where a header action renders its content. `modal` is owned by the consumer. */\nexport type ActionRenderTarget = 'modal' | 'popover' | 'panel1';\n\ninterface ActionBaseProps {\n /** Unique id of the action. */\n id: string;\n /** The display name of the action. */\n label: string;\n /** The name of the Cosmos Icon to render. */\n icon?: string;\n /** Number displayed in a badge next to the action. */\n count?: number;\n /** Click handler for the action. */\n onClick: () => void;\n}\n\nexport interface RenderActionProps extends ActionBaseProps {\n type: 'render';\n href?: never;\n /** Where the action renders. When undefined only `onClick` is invoked. */\n renderTarget?: ActionRenderTarget;\n}\n\nexport interface NavigationActionProps extends ActionBaseProps {\n type: 'navigation';\n /** URL to open in a new tab. */\n href: string;\n renderTarget?: never;\n}\n\nexport type ActionProps = RenderActionProps | NavigationActionProps;\n\nexport interface ActionPopoverProps {\n /** Id of the header action the popover is anchored to. */\n actionId: string;\n /** The content of the popover. */\n children: ReactNode;\n /** Called when the popover should be dismissed. */\n onDismiss: () => void;\n}\n\nexport interface AppShellProps extends BaseProps, NoChildrenProp {\n /** Props related to the App Shell header. */\n appInfo: AppInfoProps;\n /** The content of the application. */\n main: ReactNode;\n /** The active user of the application. */\n operator: OperatorProps;\n /** The notifications panel of the application. */\n notifications?: NotificationsProps;\n /** If true, a header will render containing the logo and name of the app as well as search, notifications and operator regions. */\n appHeader?: boolean;\n /** Context switcher configuration. */\n contextSwitcher?: ContextSwitcherProps;\n /** If true, the search results page will replace the search input in the app header with its own */\n searchPage?: boolean;\n /** Props related to the Search Input. */\n searchInput?: SearchInputProps;\n /**\n * The aria-label for the search input.\n * @default 'Sitewide'\n */\n searchLabel?: string;\n /** A set of cases that will render in an expanded list within the App Shell. */\n caseTypes?: CaseTypeProps[];\n /** A set of links that will render as a flat list in the App Shell. */\n links?: LinkProps[];\n /** Agent configuration. */\n agent?: AgentProps;\n /** A set of cases that will render as a flat list in the App Shell. */\n cases?: CaseProps[];\n /** Place the main content of the application into a loading state by way of a boolean or a custom message. */\n progress?: boolean | ProgressProps['message'];\n /** A set of app utilities like notifications, recents that renders at the bottom of AppShell */\n utils?: (UtilItemProps | ReactElement)[];\n /** A set of app utilities for the Header */\n headerUtils?: [ReactNode, ReactNode];\n /** Configuration for the help menu in the header */\n helpMenu?: MenuItemProps[];\n /** Banners will render above the main content if they are provided. */\n banners?: ReactNode;\n defaultExpanded?: boolean;\n /** When the navigation is collapsed menus will be shown on hover instead of on click */\n collapsedHoverMenus?: boolean;\n /** Configuration for the Share Application button. */\n shareApp?: ShareAppConfig;\n /** Configuration for the portal switcher button. */\n portalSwitcher?: PortalSwitcherConfig;\n /**\n * Orientation of the primary navigation.\n * @default 'side-rail'\n */\n navOrientation?: NavOrientation;\n /** Props related to the document tabs. When provided, shows horizontal tabs below the header. */\n documentTabs?: DocumentTabsProps;\n /** A set of actions that render in the header. */\n headerActions?: ActionProps[];\n /** Controlled non-modal panel on the inline-start side. Set when a `panel1` action is clicked; leave undefined to close. */\n panel1?: PanelProps;\n /** Controlled popover content anchored to the header action whose id equals `popover.actionId`. */\n popover?: ActionPopoverProps;\n}\n\nexport type NavOrientation = 'side-rail' | 'top-bar';\n\nexport interface CaseTypeProps {\n /** The display name of the case. */\n name: string;\n /** The icon for the case. */\n icon?: string;\n /** Click handler for the case. */\n onClick?: MouseEventHandler<HTMLButtonElement>;\n}\n\nexport interface LinkProps extends ForwardProps {\n /** Unique id */\n id: string;\n /** The display name of the link. */\n name: string;\n /** URL or DOM id to navigate to. */\n href: string;\n /** The name of the Cosmos Icon to render as a visual. */\n icon?: string;\n /** Determines if the link represents the active page. */\n active?: boolean;\n /** A set of nested links. */\n links?: LinkProps[];\n /** Click handler for the link. */\n onClick?: MouseEventHandler<HTMLElement>;\n}\n\nexport interface AgentProps extends Pick<LinkProps, 'id' | 'name' | 'active' | 'onClick'> {\n /** Icon or visual element for the agent. */\n icon?: ReactNode;\n}\n\nexport interface CaseProps extends ForwardProps {\n /** Unique id */\n id: string;\n /** Name of the case or some primary information like title. */\n primary: string;\n /** Additional info of a case like timestamp. */\n secondary?: string;\n /** Presents short, quickly identifiable info to a user for a collapsed nav item. */\n collapsedItemInfo?: string;\n /** A visual element identifying the case. If not passed will render case-solid icon */\n visual?: ReactNode;\n /** Determines if the case represents the active page. */\n active?: boolean;\n /** Click handler for the case . */\n onClick?: MouseEventHandler<HTMLElement>;\n /** Dismiss handler for the case. */\n onDismiss?: MouseEventHandler<HTMLElement>;\n}\n\nexport interface OperatorProps {\n /** A visual element identifying the operator. */\n avatar: ReactNode;\n /** A list of actions that will populate a menu attached to the operator. */\n actions: Pick<NavListItemProps, 'id' | 'primary' | 'href' | 'onClick' | 'visual'>[];\n /** The name of the operator. */\n name: string;\n}\n\nexport interface NotificationsProps extends Pick<NavListItemProps, 'visual'> {\n /** The display name of the notifications, used as the trigger label and popover heading. */\n name: string;\n /** Number of new notifications, displayed as a badge on the trigger when greater than 0. */\n count?: number;\n /** Content rendered in the notifications popover. */\n content?: ReactNode;\n /** Called when the popover opens. */\n onOpen?: () => void;\n /** Called when the popover closes. */\n onClose?: () => void;\n /** When given, renders a \"Mark all as read\" button in the popover header. */\n onMarkAllAsRead?: () => void;\n /** Actions rendered in the popover header. */\n actions?: Action[];\n /** Ref for the popover actions button element. */\n actionsButtonRef?: Ref<HTMLButtonElement>;\n}\n\nexport interface UtilItemProps extends Pick<NavListItemProps, 'visual' | 'actions' | 'onClick'> {\n /** The display name of an utility item. */\n name: string;\n /** Id of an element whose text is appended to the name of the item, e.g. a visually hidden hint. */\n 'aria-labelledby'?: string;\n /** Number when given displays on top-right of a given icon. */\n count?: number;\n /** View that renders on an appShell drawer onClick of an item */\n drawerView?: ReactNode;\n /** Heading for view that renders */\n drawerHeader?: string;\n /** Callback that fires on appshell drawer open */\n onDrawerOpen?: () => void;\n /** Callback that fires on appshell drawer close */\n onDrawerClose?: () => void;\n}\n\nexport interface UtilsProps {\n /** Context switcher config. */\n contextSwitcher?: ContextSwitcherProps | Record<string, never>;\n /** The active user of the application. */\n operator?: AppShellProps['operator'];\n /** A set of app utilities like notifications, recents that renders at the bottom of AppShell */\n items?: (UtilItemProps | ReactElement)[];\n /** Configuration for the Share Application button. */\n shareApp?: ShareAppConfig;\n /** Configuration for the portal switcher button. */\n portalSwitcher?: PortalSwitcherConfig;\n}\n\nexport interface NavListProps extends AsProp, BaseProps {\n items?: (NavListItemProps | ReactElement)[];\n nestedList?: boolean;\n collapsed?: boolean;\n id?: string;\n /** Whether the list is of single-select style options */\n singleSelect?: boolean;\n mobileNavBar?: boolean;\n}\n\nexport interface NavListItemWrapperProps extends ForwardProps {\n label: string;\n tooltipLabel: string;\n content?: ReactNode;\n items?: NavListItemProps[];\n /** @default 5 */\n filterAt?: number;\n onMenuToggle?: (state: 'open' | 'close') => void;\n childElementRef: RefObject<HTMLElement>;\n mobileNavBar?: boolean;\n}\n\nexport interface NavListItemProps extends AsProp, BaseProps, ForwardProps, NoChildrenProp {\n id?: string;\n visual?: ReactNode;\n primary: string;\n secondary?: string;\n /** Presents short, quickly identifiable info to a user for a collapsed nav item. */\n collapsedItemInfo?: string;\n href?: string;\n onClick?: MouseEventHandler<HTMLElement>;\n items?: NavListItemProps[];\n collapseItems?: boolean;\n actions?: OperatorProps['actions'];\n onDismiss?: MouseEventHandler<HTMLElement>;\n forwardedRef?: Ref<HTMLAnchorElement | HTMLDivElement | HTMLButtonElement>;\n isMenuItem?: boolean;\n /** Whether the item is a single-select option */\n singleSelect?: NavListProps['singleSelect'];\n /** Whether the item is selected */\n selected?: boolean;\n mobileNavBar?: boolean;\n}\n\nexport interface NavMenuProps extends NavListItemProps {\n forwardedRef?: Ref<HTMLButtonElement>;\n}\n\n/** AppHeader props */\n\nexport interface AppHeaderProps extends BaseProps, AppInfoProps {\n contextSwitcher?: ContextSwitcherProps | Record<string, never>;\n operator: AppShellProps['operator'];\n notifications?: AppShellProps['notifications'];\n searchInput?: AppShellProps['searchInput'];\n searchLabel?: AppShellProps['searchLabel'];\n searchPage?: AppShellProps['searchPage'];\n headerUtils?: AppShellProps['headerUtils'];\n helpMenu?: AppShellProps['helpMenu'];\n /** Configuration for the Share Application button. */\n shareApp?: ShareAppConfig;\n /** Configuration for the portal switcher button. */\n portalSwitcher?: PortalSwitcherConfig;\n /** A set of actions that render in the header. */\n headerActions?: AppShellProps['headerActions'];\n /** The open `panel1`, used to reflect the expanded state of the action that opened it. */\n panel1?: AppShellProps['panel1'];\n /** Popover content anchored to the header action whose id equals `popover.actionId`. */\n popover?: AppShellProps['popover'];\n}\n\n/** Drawer props */\n\nexport interface DrawerListProps {\n items: (DrawerItemProps & ForwardProps)[];\n loading?: boolean;\n viewAll?: {\n onClick?: MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>;\n href?: string;\n } & ForwardProps;\n newNotifications?: number;\n onItemClick?: (id: string, event: MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void;\n onItemPinToggle?: (id: string) => void;\n onDrawerOpen?: () => void;\n onDrawerClose?: () => void;\n}\n\nexport interface DrawerItemProps extends BaseProps {\n /** An id representing the item. */\n id: string;\n /** The primary text for the item. */\n primary: string;\n /** Secondary text that will be rendered as a Meta List. */\n secondary?: string[];\n /** A visual associated with the item. */\n visual?: ReactNode;\n /** A flag indicating if the item has been read. */\n unread?: boolean;\n /** A flag indicating if the item has been pinned or not. */\n pinned?: boolean;\n /** URL or DOM id to navigate to. */\n href?: string;\n /** The onClick handler for the item. */\n onClick?: (id: string, event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>) => void;\n /** The handler hat is called when a pin icon is toggled on an item. */\n onPinToggle?: (id: string) => void;\n}\n\nexport interface ListProps extends DrawerListProps {\n headingText?: string;\n emptyText: string;\n displayRecents: boolean;\n displayPins?: boolean;\n}\n\nexport type DocumentTabGroup = 'page' | 'case' | 'data';\n\nexport interface DocumentTab {\n /** Unique id for the tab. */\n id: string;\n /** Display label for the tab. */\n label: string;\n /** Optional icon name to display in the tab. */\n icon?: string;\n /** Whether the tab can be closed. Defaults to true. */\n closeable?: boolean;\n /** Group for overflow menu categorization. */\n group?: DocumentTabGroup;\n /** Secondary line in overflow menu. */\n secondary?: string;\n /** When false, tab cannot be reordered. Defaults to true. */\n reorderable?: boolean;\n}\n\nexport interface DocumentTabsProps {\n /** The list of open document tabs. */\n items: DocumentTab[];\n /** The id of the currently active tab. */\n currentTabId?: string;\n /** Callback when a tab is clicked. */\n onTabClick?: (id: string) => void;\n /** Callback when a tab's close button is clicked. */\n onTabClose?: (id: string) => void;\n /** Callback when all closeable tabs should be closed from the overflow menu. */\n onTabCloseAll?: () => void;\n /** Callback when tabs are reordered. Receives tab ids in display order. */\n onTabReorder?: (orderedIds: string[]) => void;\n}\n"]}
@@ -26,6 +26,8 @@ export interface AppShellContextValue {
26
26
  isTopBar: boolean;
27
27
  previewActive: boolean;
28
28
  setPreviewActive: Dispatch<SetStateAction<boolean>>;
29
+ /** True while `panel1` is open; the page content is pushed by the panel width. */
30
+ startPanelOpen?: boolean;
29
31
  }
30
32
  declare const AppShellContext: import("react").Context<AppShellContextValue>;
31
33
  export default AppShellContext;
@@ -1 +1 @@
1
- {"version":3,"file":"AppShellContext.d.ts","sourceRoot":"","sources":["../../../src/components/AppShell/AppShellContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAExE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEtE,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAErE,MAAM,WAAW,0BAA0B;IACzC,UAAU,EAAE,OAAO,CAAC;IACpB,+EAA+E;IAC/E,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,UAAU,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;IAC1C,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,wFAAwF;IACxF,aAAa,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,I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CAAC,MAAM,qBAAqB,GAAG,aAAa,CAA6B;IAC7E,UAAU,EAAE,KAAK;IACjB,YAAY,EAAE,SAAS;IACvB,UAAU,EAAE,GAAG,EAAE,GAAE,CAAC;IACpB,WAAW,EAAE,GAAG,EAAE,GAAE,CAAC;IACrB,aAAa,EAAE,GAAG,EAAE,GAAE,CAAC;CACxB,CAAC,CAAC;AAmBH,MAAM,eAAe,GAAG,aAAa,CAAuB;IAC1D,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,KAAK;IACjB,aAAa,EAAE,GAAG,EAAE,GAAE,CAAC;IACvB,QAAQ,EAAE,QAAQ;IAClB,mBAAmB,EAAE,KAAK;IAC1B,mBAAmB,EAAE;QACnB,IAAI,OAAO;YACT,OAAO,KAAK,CAAC;QACf,CAAC;KACF;IACD,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,IAAI;IACjB,iBAAiB,EAAE,IAAI;IACvB,oBAAoB,EAAE,GAAG,EAAE,GAAE,CAAC;IAC9B,WAAW,EAAE,KAAK;IAClB,QAAQ,EAAE,KAAK;IACf,aAAa,EAAE,KAAK;IACpB,gBAAgB,EAAE,GAAG,EAAE,GAAE,CAAC;CAC3B,CAAC,CAAC;AAEH,eAAe,eAAe,CAAC","sourcesContent":["import { createContext } from 'react';\nimport type { Dispatch, MutableRefObject, SetStateAction } from 'react';\n\nimport type { openCloseStates } from '../../hooks/useTransitionState';\n\nimport type { AppShellProps, UtilItemProps } from './AppShell.types';\n\nexport interface AppShellDrawerContextValue {\n drawerOpen: boolean;\n /** Name of the currently open drawer item; undefined when drawer is closed. */\n openItemName: string | undefined;\n openDrawer: (item: UtilItemProps) => void;\n closeDrawer: () => void;\n /** Replace the currently open drawer item with a fresh copy (e.g. after data loads). */\n refreshDrawer: (item: UtilItemProps) => void;\n}\n\nexport const AppShellDrawerContext = createContext<AppShellDrawerContextValue>({\n drawerOpen: false,\n openItemName: undefined,\n openDrawer: () => {},\n closeDrawer: () => {},\n refreshDrawer: () => {}\n});\n\nexport interface AppShellContextValue {\n navOpen: boolean;\n drawerOpen: boolean;\n setDrawerOpen: (val: boolean) => void;\n navState: (typeof openCloseStates)[keyof typeof openCloseStates];\n focusedImperatively: MutableRefObject<boolean>;\n headerEl: HTMLDivElement | null;\n appHeaderEl?: HTMLDivElement | null;\n searchContainerEl: HTMLElement | null;\n setSearchContainerEl: (el: HTMLElement | null) => void;\n collapsedHoverMenus?: AppShellProps['collapsedHoverMenus'];\n isMobileNav: boolean;\n isTopBar: boolean;\n previewActive: boolean;\n setPreviewActive: Dispatch<SetStateAction<boolean>>;\n}\n\nconst AppShellContext = createContext<AppShellContextValue>({\n navOpen: false,\n drawerOpen: false,\n setDrawerOpen: () => {},\n navState: 'closed',\n collapsedHoverMenus: false,\n focusedImperatively: {\n get current() {\n return false;\n }\n },\n headerEl: null,\n appHeaderEl: null,\n searchContainerEl: null,\n setSearchContainerEl: () => {},\n isMobileNav: false,\n isTopBar: false,\n previewActive: false,\n setPreviewActive: () => {}\n});\n\nexport default AppShellContext;\n"]}
1
+ {"version":3,"file":"AppShellContext.js","sourceRoot":"","sources":["../../../src/components/AppShell/AppShellContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAiBtC,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAA6B;IAC7E,UAAU,EAAE,KAAK;IACjB,YAAY,EAAE,SAAS;IACvB,UAAU,EAAE,GAAG,EAAE,GAAE,CAAC;IACpB,WAAW,EAAE,GAAG,EAAE,GAAE,CAAC;IACrB,aAAa,EAAE,GAAG,EAAE,GAAE,CAAC;CACxB,CAAC,CAAC;AAqBH,MAAM,eAAe,GAAG,aAAa,CAAuB;IAC1D,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,KAAK;IACjB,aAAa,EAAE,GAAG,EAAE,GAAE,CAAC;IACvB,QAAQ,EAAE,QAAQ;IAClB,mBAAmB,EAAE,KAAK;IAC1B,mBAAmB,EAAE;QACnB,IAAI,OAAO;YACT,OAAO,KAAK,CAAC;QACf,CAAC;KACF;IACD,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,IAAI;IACjB,iBAAiB,EAAE,IAAI;IACvB,oBAAoB,EAAE,GAAG,EAAE,GAAE,CAAC;IAC9B,WAAW,EAAE,KAAK;IAClB,QAAQ,EAAE,KAAK;IACf,aAAa,EAAE,KAAK;IACpB,gBAAgB,EAAE,GAAG,EAAE,GAAE,CAAC;CAC3B,CAAC,CAAC;AAEH,eAAe,eAAe,CAAC","sourcesContent":["import { createContext } from 'react';\nimport type { Dispatch, MutableRefObject, SetStateAction } from 'react';\n\nimport type { openCloseStates } from '../../hooks/useTransitionState';\n\nimport type { AppShellProps, UtilItemProps } from './AppShell.types';\n\nexport interface AppShellDrawerContextValue {\n drawerOpen: boolean;\n /** Name of the currently open drawer item; undefined when drawer is closed. */\n openItemName: string | undefined;\n openDrawer: (item: UtilItemProps) => void;\n closeDrawer: () => void;\n /** Replace the currently open drawer item with a fresh copy (e.g. after data loads). */\n refreshDrawer: (item: UtilItemProps) => void;\n}\n\nexport const AppShellDrawerContext = createContext<AppShellDrawerContextValue>({\n drawerOpen: false,\n openItemName: undefined,\n openDrawer: () => {},\n closeDrawer: () => {},\n refreshDrawer: () => {}\n});\n\nexport interface AppShellContextValue {\n navOpen: boolean;\n drawerOpen: boolean;\n setDrawerOpen: (val: boolean) => void;\n navState: (typeof openCloseStates)[keyof typeof openCloseStates];\n focusedImperatively: MutableRefObject<boolean>;\n headerEl: HTMLDivElement | null;\n appHeaderEl?: HTMLDivElement | null;\n searchContainerEl: HTMLElement | null;\n setSearchContainerEl: (el: HTMLElement | null) => void;\n collapsedHoverMenus?: AppShellProps['collapsedHoverMenus'];\n isMobileNav: boolean;\n isTopBar: boolean;\n previewActive: boolean;\n setPreviewActive: Dispatch<SetStateAction<boolean>>;\n /** True while `panel1` is open; the page content is pushed by the panel width. */\n startPanelOpen?: boolean;\n}\n\nconst AppShellContext = createContext<AppShellContextValue>({\n navOpen: false,\n drawerOpen: false,\n setDrawerOpen: () => {},\n navState: 'closed',\n collapsedHoverMenus: false,\n focusedImperatively: {\n get current() {\n return false;\n }\n },\n headerEl: null,\n appHeaderEl: null,\n searchContainerEl: null,\n setSearchContainerEl: () => {},\n isMobileNav: false,\n isTopBar: false,\n previewActive: false,\n setPreviewActive: () => {}\n});\n\nexport default AppShellContext;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"AppShellList.d.ts","sourceRoot":"","sources":["../../../src/components/AppShell/AppShellList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,GAAG,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE1F,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAiC3D,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,WAAW,CAAC,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC;AACxF,MAAM,WAAW,SAAS;IACxB,mCAAmC;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IAC1B,KAAK,EAAE,CAAC,qBAAqB,GAAG,YAAY,CAAC,EAAE,CAAC;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE;QACR,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;QAClC,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GAAG,YAAY,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAChE,eAAe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IAAI,CAAC;CACpC;AAyID,QAAA,MAAM,YAAY,EAAE,iBAAiB,CAAC,iBAAiB,CAQtD,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -13,6 +13,7 @@ import Progress from '../Progress';
13
13
  import SummaryItem from '../SummaryItem';
14
14
  import Text from '../Text';
15
15
  import { useI18n } from '../../hooks';
16
+ import { isInstance } from '../../utils';
16
17
  import { StyledLoading } from './AppShell.styles';
17
18
  import { StyledAppShellListWrapper, StyledAppShellList, StyledAppShellSummaryList, StyledAppShellMetaList, StyledNotificationPrimary, StyledNotificationSecondary, StyledAppShellPinButton, EmptyStateColorContrast, StyledAppShellListSection, StyledAppShellListHeading, StyledNotificationVisual } from './AppShellList.styles';
18
19
  import { StyledDrawerViewAll } from './Drawer.styles';
@@ -26,7 +27,7 @@ const List = ({ headingText, emptyText, items, loading = false, displayPins = fa
26
27
  const onSummaryItemClick = (e) => {
27
28
  onClick?.(id, e);
28
29
  onItemClick?.(id, e);
29
- if (!pinButtons.current[id]?.contains(e.target)) {
30
+ if (!isInstance(e.target, Node) || !pinButtons.current[id]?.contains(e.target)) {
30
31
  closeDrawer();
31
32
  }
32
33
  };
@@ -1 +1 @@
1
- {"version":3,"file":"AppShellList.js","sourceRoot":"","sources":["../../../src/components/AppShell/AppShellList.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAI3C,OAAO,KAAK,MAAM,iBAAiB,CAAC;AACpC,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,IAAI,EAAE,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAClD,OAAO,KAAK,YAAY,MAAM,8BAA8B,CAAC;AAC7D,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,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AG,EAAE,QAAQ,CAAC,EAAE,GAAI,CACzC,CAAC,GACG,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC","sourcesContent":["import { useContext, useRef } from 'react';\nimport type { FunctionComponent, Ref, MouseEvent, ReactNode, KeyboardEvent } from 'react';\n\nimport type { BaseProps, ForwardProps } from '../../types';\nimport Alert from '../Badges/Alert';\nimport Button from '../Button';\nimport Flex from '../Flex';\nimport Icon, { registerIcon } from '../Icon';\nimport * as pinIcon from '../Icon/icons/pin.icon';\nimport * as pinSolidIcon from '../Icon/icons/pin-solid.icon';\nimport MetaList from '../MetaList';\nimport EmptyState from '../EmptyState';\nimport Progress from '../Progress';\nimport SummaryItem from '../SummaryItem';\nimport Text from '../Text';\nimport { useI18n } from '../../hooks';\n\nimport { StyledLoading } from './AppShell.styles';\nimport {\n StyledAppShellListWrapper,\n StyledAppShellList,\n StyledAppShellSummaryList,\n StyledAppShellMetaList,\n StyledNotificationPrimary,\n StyledNotificationSecondary,\n StyledAppShellPinButton,\n EmptyStateColorContrast,\n StyledAppShellListSection,\n StyledAppShellListHeading,\n StyledNotificationVisual\n} from './AppShellList.styles';\nimport { StyledDrawerViewAll } from './Drawer.styles';\nimport { AppShellDrawerContext } from './AppShellContext';\n\nregisterIcon(pinIcon, pinSolidIcon);\n\nexport type ListInteractionEvent = MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>;\nexport interface ListProps {\n /** An id representing the item. */\n id: string;\n ref?: Ref<HTMLDivElement>;\n items: (AppShellListItemProps & ForwardProps)[];\n headingText?: string;\n emptyText: string;\n loading?: boolean;\n viewAll?: {\n onClick?: (e: MouseEvent) => void;\n href?: string;\n } & ForwardProps;\n newNotifications?: number;\n displayPins?: boolean;\n onItemClick?: (id: string, event: ListInteractionEvent) => void;\n onItemPinToggle?: (id: string) => void;\n}\nexport interface AppShellListProps {\n listView: ListProps[];\n}\nexport interface AppShellListItemProps extends BaseProps {\n /** An id representing the item. */\n id: string;\n /** The primary text for the item. */\n primary: string;\n /** Secondary text that will be rendered as a Meta List. */\n secondary?: string[];\n /** A visual associated with the item. */\n visual?: ReactNode;\n /** A flag indicating if the item has been read. */\n unread?: boolean;\n /** Icon for displaying at the end of items */\n pinned?: boolean;\n /** URL or DOM id to navigate to. */\n href?: string;\n /** The onClick handler for the item. */\n onClick?: (id: string, event: ListInteractionEvent) => void;\n /** The handler hat is called when a pin icon is toggled on an item. */\n onPinToggle?: (id: string) => void;\n}\n\nconst List = ({\n headingText,\n emptyText,\n items,\n loading = false,\n displayPins = false,\n onItemClick,\n onItemPinToggle,\n viewAll: viewAllProps\n}: ListProps) => {\n const t = useI18n();\n const { closeDrawer } = useContext(AppShellDrawerContext);\n const pinButtons = useRef<Record<string, HTMLElement>>({});\n\n const renderContent = items.length ? (\n <Flex as={StyledAppShellList} item={{ grow: 1 }}>\n {items.map(\n ({\n id,\n primary,\n secondary,\n visual,\n unread,\n href,\n onClick,\n pinned,\n onPinToggle,\n ...restProps\n }: AppShellListItemProps) => {\n const onSummaryItemClick = (e: ListInteractionEvent) => {\n onClick?.(id, e);\n onItemClick?.(id, e);\n\n if (!pinButtons.current[id]?.contains(e.target as Node)) {\n closeDrawer();\n }\n };\n\n return (\n <StyledAppShellSummaryList key={id}>\n <SummaryItem\n {...restProps}\n as={href ? 'a' : 'button'}\n primary={\n <StyledNotificationPrimary unread={unread}>{primary}</StyledNotificationPrimary>\n }\n secondary={\n secondary?.length ? (\n <StyledNotificationSecondary unread={unread}>\n <MetaList as={StyledAppShellMetaList} items={secondary} />\n </StyledNotificationSecondary>\n ) : undefined\n }\n visual={\n visual || unread ? (\n <StyledNotificationVisual unread={unread} visualIncluded={!!visual}>\n {visual} <Alert variant='urgent' />\n </StyledNotificationVisual>\n ) : undefined\n }\n href={href}\n onClick={onSummaryItemClick}\n onKeyDown={(e: KeyboardEvent<HTMLElement>) => {\n if (e.key === 'Enter' || e.key === ' ') {\n onSummaryItemClick(e);\n }\n }}\n actions={\n displayPins ? (\n <Button\n ref={el => {\n if (!el) delete pinButtons.current[id];\n else pinButtons.current[id] = el;\n }}\n icon\n as={StyledAppShellPinButton}\n forwardedAs='div'\n onClick={() => {\n onPinToggle?.(id);\n onItemPinToggle?.(id);\n }}\n onKeyDown={(e: KeyboardEvent<HTMLElement>) => {\n if (e.key === 'Enter') {\n onPinToggle?.(id);\n onItemPinToggle?.(id);\n }\n }}\n role='button'\n tabIndex={0}\n label={t(pinned ? 'app_shell_unpin' : 'app_shell_pin')}\n aria-label={`${t(pinned ? 'app_shell_unpin' : 'app_shell_pin')} - ${primary}`}\n >\n <Icon name={pinned ? 'pin-solid' : 'pin'} emphasized={pinned} />\n </Button>\n ) : undefined\n }\n tabIndex={0}\n />\n </StyledAppShellSummaryList>\n );\n }\n )}\n </Flex>\n ) : (\n <Flex\n as={EmptyStateColorContrast}\n container={{ justify: 'center', alignItems: 'center' }}\n item={{ grow: 1 }}\n >\n <EmptyState message={emptyText} />\n </Flex>\n );\n\n return (\n <Flex as={StyledAppShellListSection} container={{ direction: 'column' }}>\n {headingText && (\n <Text variant='h3' as={StyledAppShellListHeading}>\n {headingText}\n </Text>\n )}\n {loading ? (\n <Flex container={{ justify: 'center', alignItems: 'center' }} item={{ grow: 1 }}>\n <Progress as={StyledLoading} placement='inline' />\n </Flex>\n ) : (\n renderContent\n )}\n {(viewAllProps?.href || viewAllProps?.onClick) && !!items.length && !loading && (\n <StyledDrawerViewAll {...viewAllProps} as={viewAllProps.href ? 'a' : 'button'}>\n {t('view_all')}\n </StyledDrawerViewAll>\n )}\n </Flex>\n );\n};\nconst AppShellList: FunctionComponent<AppShellListProps> = ({ listView }) => {\n return (\n <Flex as={StyledAppShellListWrapper} container={{ direction: 'column' }}>\n {listView.map(listItem => (\n <List {...listItem} key={listItem.id} />\n ))}\n </Flex>\n );\n};\n\nexport default AppShellList;\n"]}
1
+ {"version":3,"file":"AppShellList.js","sourceRoot":"","sources":["../../../src/components/AppShell/AppShellList.tsx"],"names":[],"mappings":";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AC,IAAI,CAAC,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,OAAO,IAAI,CAC9E,KAAC,mBAAmB,OAAK,YAAY,EAAE,EAAE,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,YAC1E,CAAC,CAAC,UAAU,CAAC,GACM,CACvB,IACI,CACR,CAAC;AACJ,CAAC,CAAC;AACF,MAAM,YAAY,GAAyC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC1E,OAAO,CACL,KAAC,IAAI,IAAC,EAAE,EAAE,yBAAyB,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,YACpE,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CACxB,eAAC,IAAI,OAAK,QAAQ,EAAE,GAAG,EAAE,QAAQ,CAAC,EAAE,GAAI,CACzC,CAAC,GACG,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC","sourcesContent":["import { useContext, useRef } from 'react';\nimport type { FunctionComponent, Ref, MouseEvent, ReactNode, KeyboardEvent } from 'react';\n\nimport type { BaseProps, ForwardProps } from '../../types';\nimport Alert from '../Badges/Alert';\nimport Button from '../Button';\nimport Flex from '../Flex';\nimport Icon, { registerIcon } from '../Icon';\nimport * as pinIcon from '../Icon/icons/pin.icon';\nimport * as pinSolidIcon from '../Icon/icons/pin-solid.icon';\nimport MetaList from '../MetaList';\nimport EmptyState from '../EmptyState';\nimport Progress from '../Progress';\nimport SummaryItem from '../SummaryItem';\nimport Text from '../Text';\nimport { useI18n } from '../../hooks';\nimport { isInstance } from '../../utils';\n\nimport { StyledLoading } from './AppShell.styles';\nimport {\n StyledAppShellListWrapper,\n StyledAppShellList,\n StyledAppShellSummaryList,\n StyledAppShellMetaList,\n StyledNotificationPrimary,\n StyledNotificationSecondary,\n StyledAppShellPinButton,\n EmptyStateColorContrast,\n StyledAppShellListSection,\n StyledAppShellListHeading,\n StyledNotificationVisual\n} from './AppShellList.styles';\nimport { StyledDrawerViewAll } from './Drawer.styles';\nimport { AppShellDrawerContext } from './AppShellContext';\n\nregisterIcon(pinIcon, pinSolidIcon);\n\nexport type ListInteractionEvent = MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>;\nexport interface ListProps {\n /** An id representing the item. */\n id: string;\n ref?: Ref<HTMLDivElement>;\n items: (AppShellListItemProps & ForwardProps)[];\n headingText?: string;\n emptyText: string;\n loading?: boolean;\n viewAll?: {\n onClick?: (e: MouseEvent) => void;\n href?: string;\n } & ForwardProps;\n newNotifications?: number;\n displayPins?: boolean;\n onItemClick?: (id: string, event: ListInteractionEvent) => void;\n onItemPinToggle?: (id: string) => void;\n}\nexport interface AppShellListProps {\n listView: ListProps[];\n}\nexport interface AppShellListItemProps extends BaseProps {\n /** An id representing the item. */\n id: string;\n /** The primary text for the item. */\n primary: string;\n /** Secondary text that will be rendered as a Meta List. */\n secondary?: string[];\n /** A visual associated with the item. */\n visual?: ReactNode;\n /** A flag indicating if the item has been read. */\n unread?: boolean;\n /** Icon for displaying at the end of items */\n pinned?: boolean;\n /** URL or DOM id to navigate to. */\n href?: string;\n /** The onClick handler for the item. */\n onClick?: (id: string, event: ListInteractionEvent) => void;\n /** The handler hat is called when a pin icon is toggled on an item. */\n onPinToggle?: (id: string) => void;\n}\n\nconst List = ({\n headingText,\n emptyText,\n items,\n loading = false,\n displayPins = false,\n onItemClick,\n onItemPinToggle,\n viewAll: viewAllProps\n}: ListProps) => {\n const t = useI18n();\n const { closeDrawer } = useContext(AppShellDrawerContext);\n const pinButtons = useRef<Record<string, HTMLElement>>({});\n\n const renderContent = items.length ? (\n <Flex as={StyledAppShellList} item={{ grow: 1 }}>\n {items.map(\n ({\n id,\n primary,\n secondary,\n visual,\n unread,\n href,\n onClick,\n pinned,\n onPinToggle,\n ...restProps\n }: AppShellListItemProps) => {\n const onSummaryItemClick = (e: ListInteractionEvent) => {\n onClick?.(id, e);\n onItemClick?.(id, e);\n\n if (!isInstance(e.target, Node) || !pinButtons.current[id]?.contains(e.target)) {\n closeDrawer();\n }\n };\n\n return (\n <StyledAppShellSummaryList key={id}>\n <SummaryItem\n {...restProps}\n as={href ? 'a' : 'button'}\n primary={\n <StyledNotificationPrimary unread={unread}>{primary}</StyledNotificationPrimary>\n }\n secondary={\n secondary?.length ? (\n <StyledNotificationSecondary unread={unread}>\n <MetaList as={StyledAppShellMetaList} items={secondary} />\n </StyledNotificationSecondary>\n ) : undefined\n }\n visual={\n visual || unread ? (\n <StyledNotificationVisual unread={unread} visualIncluded={!!visual}>\n {visual} <Alert variant='urgent' />\n </StyledNotificationVisual>\n ) : undefined\n }\n href={href}\n onClick={onSummaryItemClick}\n onKeyDown={(e: KeyboardEvent<HTMLElement>) => {\n if (e.key === 'Enter' || e.key === ' ') {\n onSummaryItemClick(e);\n }\n }}\n actions={\n displayPins ? (\n <Button\n ref={el => {\n if (!el) delete pinButtons.current[id];\n else pinButtons.current[id] = el;\n }}\n icon\n as={StyledAppShellPinButton}\n forwardedAs='div'\n onClick={() => {\n onPinToggle?.(id);\n onItemPinToggle?.(id);\n }}\n onKeyDown={(e: KeyboardEvent<HTMLElement>) => {\n if (e.key === 'Enter') {\n onPinToggle?.(id);\n onItemPinToggle?.(id);\n }\n }}\n role='button'\n tabIndex={0}\n label={t(pinned ? 'app_shell_unpin' : 'app_shell_pin')}\n aria-label={`${t(pinned ? 'app_shell_unpin' : 'app_shell_pin')} - ${primary}`}\n >\n <Icon name={pinned ? 'pin-solid' : 'pin'} emphasized={pinned} />\n </Button>\n ) : undefined\n }\n tabIndex={0}\n />\n </StyledAppShellSummaryList>\n );\n }\n )}\n </Flex>\n ) : (\n <Flex\n as={EmptyStateColorContrast}\n container={{ justify: 'center', alignItems: 'center' }}\n item={{ grow: 1 }}\n >\n <EmptyState message={emptyText} />\n </Flex>\n );\n\n return (\n <Flex as={StyledAppShellListSection} container={{ direction: 'column' }}>\n {headingText && (\n <Text variant='h3' as={StyledAppShellListHeading}>\n {headingText}\n </Text>\n )}\n {loading ? (\n <Flex container={{ justify: 'center', alignItems: 'center' }} item={{ grow: 1 }}>\n <Progress as={StyledLoading} placement='inline' />\n </Flex>\n ) : (\n renderContent\n )}\n {(viewAllProps?.href || viewAllProps?.onClick) && !!items.length && !loading && (\n <StyledDrawerViewAll {...viewAllProps} as={viewAllProps.href ? 'a' : 'button'}>\n {t('view_all')}\n </StyledDrawerViewAll>\n )}\n </Flex>\n );\n};\nconst AppShellList: FunctionComponent<AppShellListProps> = ({ listView }) => {\n return (\n <Flex as={StyledAppShellListWrapper} container={{ direction: 'column' }}>\n {listView.map(listItem => (\n <List {...listItem} key={listItem.id} />\n ))}\n </Flex>\n );\n};\n\nexport default AppShellList;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"AppTopNav.styles.d.ts","sourceRoot":"","sources":["../../../src/components/AppShell/AppTopNav.styles.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,YAAY,uNAkBvB,CAAC;AAIH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oMAE/B,CAAC;AAIF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oMAG5B,CAAC;AAIF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oMAOlC,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;cAtJ4B,OAAO;mBA0JrE,CAAC"}
@@ -4,7 +4,7 @@ import { defaultThemeProp } from '../../theme';
4
4
  import { calculateFontSize } from '../../styles';
5
5
  import BareButton, { StyledBareButton } from '../Button/BareButton';
6
6
  import Flex from '../Flex';
7
- import { StyledNavList, StyledNavListItem, StyledNavItemIconBox, StyledCaseTypes, topNavHeight } from './AppShell.styles';
7
+ import { StyledNavList, StyledNavListItem, StyledNavItemIconBox, StyledCaseTypes, StyledNavListItemExpandCollapse, topNavHeight } from './AppShell.styles';
8
8
  import { navContrastColors } from './style-utils';
9
9
  export const StyledTopNav = styled.nav(({ theme }) => {
10
10
  const { backgroundColor, foreground, border } = navContrastColors(theme);
@@ -139,6 +139,10 @@ export const StyledTopNavCreateArea = styled(Flex)(({ theme }) => {
139
139
  }
140
140
  }
141
141
 
142
+ ${StyledNavListItemExpandCollapse} {
143
+ display: none;
144
+ }
145
+
142
146
  /* Make the top-level create button square and icon-only */
143
147
  ${StyledCaseTypes} > ${StyledNavList} > ${StyledNavListItem} > ${StyledBareButton} {
144
148
  width: ${hitArea};
@@ -1 +1 @@
1
- {"version":3,"file":"AppTopNav.styles.js","sourceRoot":"","sources":["../../../src/components/AppShell/AppTopNav.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,UAAU,EAAE,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,EACL,aAAa,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AAC,CAAA;;;;;;;CAOjD,CAAC;AAEF,sBAAsB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEvD;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAA;;;;CAI7D,CAAC;AAEF,sBAAsB,CAAC,YAAY,GAAG,gBAAgB,CAAC","sourcesContent":["import styled, { css } from 'styled-components';\nimport { transparentize } from 'polished';\n\nimport { defaultThemeProp } from '../../theme';\nimport { calculateFontSize } from '../../styles';\nimport BareButton, { StyledBareButton } from '../Button/BareButton';\nimport Flex from '../Flex';\n\nimport {\n StyledNavList,\n StyledNavListItem,\n StyledNavItemIconBox,\n StyledCaseTypes,\n topNavHeight\n} from './AppShell.styles';\nimport { navContrastColors } from './style-utils';\n\nexport const StyledTopNav = styled.nav(({ theme }) => {\n const { backgroundColor, foreground, border } = navContrastColors(theme);\n const zBackdrop = theme.base['z-index'].backdrop;\n return css`\n position: sticky;\n inset-block-start: calc(var(--app-header-height, 0rem) + var(--appshell-hard-top-offset, 0rem));\n inset-inline-start: 0;\n inset-inline-end: 0;\n height: ${topNavHeight};\n z-index: calc(${zBackdrop} - 3);\n display: flex;\n align-items: center;\n gap: ${theme.base.spacing};\n padding-inline: calc(${theme.base.spacing} * 2);\n background: ${backgroundColor};\n color: ${foreground};\n border-block-end: 0.0625rem solid ${border ?? transparentize(0.8, foreground)};\n `;\n});\n\nStyledTopNav.defaultProps = defaultThemeProp;\n\nexport const StyledTopNavSection = styled(Flex)`\n overflow: hidden;\n`;\n\nStyledTopNavSection.defaultProps = defaultThemeProp;\n\nexport const StyledTopNavList = styled(Flex)`\n overflow: hidden;\n position: relative;\n`;\n\nStyledTopNavList.defaultProps = defaultThemeProp;\n\nexport const StyledTopNavUtilBar = styled(Flex)`\n margin-inline-start: auto;\n`;\n\nStyledTopNavUtilBar.defaultProps = defaultThemeProp;\n\nexport const StyledTopNavItem = styled(BareButton)<{ $active?: boolean }>(({ theme, $active }) => {\n const { foreground } = navContrastColors(theme);\n const hoverBg = transparentize(0.9, foreground);\n const activeBg = transparentize(0.85, foreground);\n return css`\n background: ${$active ? activeBg : 'transparent'};\n display: inline-flex;\n align-items: center;\n min-height: ${theme.base['hit-area'].mouse};\n gap: ${theme.base.spacing};\n padding: 0 calc(${theme.base.spacing} * 1.5);\n border-radius: ${theme.components['app-shell'].nav['item-border-radius']};\n font: inherit;\n white-space: nowrap;\n text-decoration: none;\n\n & + & {\n margin-inline-start: 0;\n }\n\n &:hover {\n background: ${hoverBg};\n }\n\n &:focus-visible {\n background: ${hoverBg};\n box-shadow: ${theme.base.shadow['focus-inset']};\n }\n `;\n});\n\nStyledTopNavItem.defaultProps = defaultThemeProp;\n\nexport const StyledTopNavUtilButton = styled(BareButton)(({ theme }) => {\n const { foreground } = navContrastColors(theme);\n const hoverBg = transparentize(0.9, foreground);\n return css`\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: ${theme.base['hit-area'].mouse};\n height: ${theme.base['hit-area'].mouse};\n border-radius: ${theme.base['border-radius']};\n\n & + & {\n margin-inline-start: 0;\n }\n\n &:hover {\n background: ${hoverBg};\n }\n\n &:focus-visible {\n background: ${hoverBg};\n box-shadow: ${theme.base.shadow['focus-inset']};\n }\n `;\n});\n\nStyledTopNavUtilButton.defaultProps = defaultThemeProp;\n\nexport const StyledTopNavCountBadge = styled.span(({ theme }) => {\n const { urgent } = navContrastColors(theme);\n const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n return css`\n position: absolute;\n inset-block-start: 0.125rem;\n inset-inline-end: 0.125rem;\n background: ${urgent};\n color: ${theme.base.palette['primary-background']};\n border-radius: calc(9999 * ${theme.base['border-radius']});\n min-width: 1rem;\n height: 1rem;\n padding-inline: calc(${theme.base.spacing} / 2);\n font-size: ${fontSize.xxs};\n line-height: 1rem;\n text-align: center;\n `;\n});\n\nStyledTopNavCountBadge.defaultProps = defaultThemeProp;\n\n/**\n * Hosts the side-rail `CaseTypes` component inline in the top bar.\n * - Strips side-rail width/margin constraints so the button sits inline.\n * - Hides the \"Create\" text label visually (kept in aria-label for a11y).\n * - Makes the button square so it aligns with the nav item hit area.\n */\nexport const StyledTopNavCreateArea = styled(Flex)(({ theme }) => {\n const hitArea = theme.base['hit-area'].mouse;\n const borderRadius = theme.base['border-radius'];\n return css`\n ${StyledNavList} {\n min-width: unset;\n }\n\n ${StyledNavListItem} {\n padding-block-end: 0 !important;\n\n &:not(:last-child),\n &:only-child {\n margin-block-end: 0 !important;\n }\n }\n\n /* Make the top-level create button square and icon-only */\n ${StyledCaseTypes} > ${StyledNavList} > ${StyledNavListItem} > ${StyledBareButton} {\n width: ${hitArea};\n height: ${hitArea};\n min-height: ${hitArea};\n padding: 0;\n justify-content: center;\n border-radius: ${borderRadius};\n\n /* Hide the \"Create\" text label visually; aria-label on the button covers a11y.\n Target all spans except the icon box so SVG icon remains visible. */\n span:not(${StyledNavItemIconBox}) {\n display: none;\n }\n }\n `;\n});\n\nStyledTopNavCreateArea.defaultProps = defaultThemeProp;\n\n/**\n * Invisible container used as the hidden measurement row in AppTopNav.\n * Always rendered at absolute position so useTopNavOverflow can measure all\n * link widths at full size before deciding which ones are visible.\n */\nexport const StyledTopNavMeasureRow = styled(Flex)`\n position: absolute;\n visibility: hidden;\n pointer-events: none;\n white-space: nowrap;\n inset-block-start: 0;\n inset-inline-start: 0;\n`;\n\nStyledTopNavMeasureRow.defaultProps = defaultThemeProp;\n\n/**\n * Always rendered at absolute position so the hook can measure the More button\n * width before deciding how many links fit.\n */\nexport const StyledTopNavItemHidden = styled(StyledTopNavItem)`\n position: absolute;\n visibility: hidden;\n pointer-events: none;\n`;\n\nStyledTopNavItemHidden.defaultProps = defaultThemeProp;\n"]}
1
+ {"version":3,"file":"AppTopNav.styles.js","sourceRoot":"","sources":["../../../src/components/AppShell/AppTopNav.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,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;;;;;;;MASjB,+BAA+B;;;;;MAK/B,eAAe,MAAM,aAAa,MAAM,iBAAiB,MAAM,gBAAgB;eACtE,OAAO;gBACN,OAAO;oBACH,OAAO;;;uBAGJ,YAAY;;;;iBAIlB,oBAAoB;;;;GAIlC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,sBAAsB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEvD;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;;;;;;;CAOjD,CAAC;AAEF,sBAAsB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEvD;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAA;;;;CAI7D,CAAC;AAEF,sBAAsB,CAAC,YAAY,GAAG,gBAAgB,CAAC","sourcesContent":["import styled, { css } from 'styled-components';\nimport { transparentize } from 'polished';\n\nimport { defaultThemeProp } from '../../theme';\nimport { calculateFontSize } from '../../styles';\nimport BareButton, { StyledBareButton } from '../Button/BareButton';\nimport Flex from '../Flex';\n\nimport {\n StyledNavList,\n StyledNavListItem,\n StyledNavItemIconBox,\n StyledCaseTypes,\n StyledNavListItemExpandCollapse,\n topNavHeight\n} from './AppShell.styles';\nimport { navContrastColors } from './style-utils';\n\nexport const StyledTopNav = styled.nav(({ theme }) => {\n const { backgroundColor, foreground, border } = navContrastColors(theme);\n const zBackdrop = theme.base['z-index'].backdrop;\n return css`\n position: sticky;\n inset-block-start: calc(var(--app-header-height, 0rem) + var(--appshell-hard-top-offset, 0rem));\n inset-inline-start: 0;\n inset-inline-end: 0;\n height: ${topNavHeight};\n z-index: calc(${zBackdrop} - 3);\n display: flex;\n align-items: center;\n gap: ${theme.base.spacing};\n padding-inline: calc(${theme.base.spacing} * 2);\n background: ${backgroundColor};\n color: ${foreground};\n border-block-end: 0.0625rem solid ${border ?? transparentize(0.8, foreground)};\n `;\n});\n\nStyledTopNav.defaultProps = defaultThemeProp;\n\nexport const StyledTopNavSection = styled(Flex)`\n overflow: hidden;\n`;\n\nStyledTopNavSection.defaultProps = defaultThemeProp;\n\nexport const StyledTopNavList = styled(Flex)`\n overflow: hidden;\n position: relative;\n`;\n\nStyledTopNavList.defaultProps = defaultThemeProp;\n\nexport const StyledTopNavUtilBar = styled(Flex)`\n margin-inline-start: auto;\n`;\n\nStyledTopNavUtilBar.defaultProps = defaultThemeProp;\n\nexport const StyledTopNavItem = styled(BareButton)<{ $active?: boolean }>(({ theme, $active }) => {\n const { foreground } = navContrastColors(theme);\n const hoverBg = transparentize(0.9, foreground);\n const activeBg = transparentize(0.85, foreground);\n return css`\n background: ${$active ? activeBg : 'transparent'};\n display: inline-flex;\n align-items: center;\n min-height: ${theme.base['hit-area'].mouse};\n gap: ${theme.base.spacing};\n padding: 0 calc(${theme.base.spacing} * 1.5);\n border-radius: ${theme.components['app-shell'].nav['item-border-radius']};\n font: inherit;\n white-space: nowrap;\n text-decoration: none;\n\n & + & {\n margin-inline-start: 0;\n }\n\n &:hover {\n background: ${hoverBg};\n }\n\n &:focus-visible {\n background: ${hoverBg};\n box-shadow: ${theme.base.shadow['focus-inset']};\n }\n `;\n});\n\nStyledTopNavItem.defaultProps = defaultThemeProp;\n\nexport const StyledTopNavUtilButton = styled(BareButton)(({ theme }) => {\n const { foreground } = navContrastColors(theme);\n const hoverBg = transparentize(0.9, foreground);\n return css`\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: ${theme.base['hit-area'].mouse};\n height: ${theme.base['hit-area'].mouse};\n border-radius: ${theme.base['border-radius']};\n\n & + & {\n margin-inline-start: 0;\n }\n\n &:hover {\n background: ${hoverBg};\n }\n\n &:focus-visible {\n background: ${hoverBg};\n box-shadow: ${theme.base.shadow['focus-inset']};\n }\n `;\n});\n\nStyledTopNavUtilButton.defaultProps = defaultThemeProp;\n\nexport const StyledTopNavCountBadge = styled.span(({ theme }) => {\n const { urgent } = navContrastColors(theme);\n const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n return css`\n position: absolute;\n inset-block-start: 0.125rem;\n inset-inline-end: 0.125rem;\n background: ${urgent};\n color: ${theme.base.palette['primary-background']};\n border-radius: calc(9999 * ${theme.base['border-radius']});\n min-width: 1rem;\n height: 1rem;\n padding-inline: calc(${theme.base.spacing} / 2);\n font-size: ${fontSize.xxs};\n line-height: 1rem;\n text-align: center;\n `;\n});\n\nStyledTopNavCountBadge.defaultProps = defaultThemeProp;\n\n/**\n * Hosts the side-rail `CaseTypes` component inline in the top bar.\n * - Strips side-rail width/margin constraints so the button sits inline.\n * - Hides the \"Create\" text label visually (kept in aria-label for a11y).\n * - Makes the button square so it aligns with the nav item hit area.\n */\nexport const StyledTopNavCreateArea = styled(Flex)(({ theme }) => {\n const hitArea = theme.base['hit-area'].mouse;\n const borderRadius = theme.base['border-radius'];\n return css`\n ${StyledNavList} {\n min-width: unset;\n }\n\n ${StyledNavListItem} {\n padding-block-end: 0 !important;\n\n &:not(:last-child),\n &:only-child {\n margin-block-end: 0 !important;\n }\n }\n\n ${StyledNavListItemExpandCollapse} {\n display: none;\n }\n\n /* Make the top-level create button square and icon-only */\n ${StyledCaseTypes} > ${StyledNavList} > ${StyledNavListItem} > ${StyledBareButton} {\n width: ${hitArea};\n height: ${hitArea};\n min-height: ${hitArea};\n padding: 0;\n justify-content: center;\n border-radius: ${borderRadius};\n\n /* Hide the \"Create\" text label visually; aria-label on the button covers a11y.\n Target all spans except the icon box so SVG icon remains visible. */\n span:not(${StyledNavItemIconBox}) {\n display: none;\n }\n }\n `;\n});\n\nStyledTopNavCreateArea.defaultProps = defaultThemeProp;\n\n/**\n * Invisible container used as the hidden measurement row in AppTopNav.\n * Always rendered at absolute position so useTopNavOverflow can measure all\n * link widths at full size before deciding which ones are visible.\n */\nexport const StyledTopNavMeasureRow = styled(Flex)`\n position: absolute;\n visibility: hidden;\n pointer-events: none;\n white-space: nowrap;\n inset-block-start: 0;\n inset-inline-start: 0;\n`;\n\nStyledTopNavMeasureRow.defaultProps = defaultThemeProp;\n\n/**\n * Always rendered at absolute position so the hook can measure the More button\n * width before deciding how many links fit.\n */\nexport const StyledTopNavItemHidden = styled(StyledTopNavItem)`\n position: absolute;\n visibility: hidden;\n pointer-events: none;\n`;\n\nStyledTopNavItemHidden.defaultProps = defaultThemeProp;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentTabs.styles.d.ts","sourceRoot":"","sources":["../../../src/components/AppShell/DocumentTabs.styles.ts"],"names":[],"mappings":"AAAA,OAAe,EAAO,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAWnE,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEpF,eAAO,MAAM,sBAAsB,GAAI,OAAO,YAAY,KAAG,mBAG5D,CAAC;AA0QF,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAE5C,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oMAwBtC,CAAC;AAIH,eAAO,MAAM,uBAAuB;;;eAEoD,OAAO;YAmD9F,CAAC;AAIF;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,+NAavC,CAAC;AAIH,eAAO,MAAM,qBAAqB;eAGrB,OAAO;mBACH,OAAO;iBACT,OAAO;YA0CpB,CAAC;AAIH,eAAO,MAAM,qBAAqB,6NA6BhC,CAAC;AAIH,eAAO,MAAM,sBAAsB,+NAIlC,CAAC;AAIF,eAAO,MAAM,sBAAsB;;2JAyCjC,CAAC;AAIH,eAAO,MAAM,qBAAqB;;;;iDAWhC,CAAC;AAIH;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,+NAiBlC,CAAC;AAIH;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,6NAwCjC,CAAC"}
1
+ {"version":3,"file":"DocumentTabs.styles.d.ts","sourceRoot":"","sources":["../../../src/components/AppShell/DocumentTabs.styles.ts"],"names":[],"mappings":"AAAA,OAAe,EAAO,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAWnE,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEpF,eAAO,MAAM,sBAAsB,GAAI,OAAO,YAAY,KAAG,mBAG5D,CAAC;AA0QF,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAE5C,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oMA0BtC,CAAC;AAIH,eAAO,MAAM,uBAAuB;;;eAEoD,OAAO;YAmD9F,CAAC;AAIF;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,+NAavC,CAAC;AAIH,eAAO,MAAM,qBAAqB;eAGrB,OAAO;mBACH,OAAO;iBACT,OAAO;YA0CpB,CAAC;AAIH,eAAO,MAAM,qBAAqB,6NA6BhC,CAAC;AAIH,eAAO,MAAM,sBAAsB,+NAIlC,CAAC;AAIF,eAAO,MAAM,sBAAsB;;2JAyCjC,CAAC;AAIH,eAAO,MAAM,qBAAqB;;;;iDAWhC,CAAC;AAIH;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,+NAiBlC,CAAC;AAIH;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,6NAwCjC,CAAC"}
@@ -255,7 +255,7 @@ export const documentTabsHeight = '2.25rem';
255
255
  export const StyledDocumentTabsContainer = styled(Flex)(({ theme }) => {
256
256
  const { spacing } = theme.base;
257
257
  const variant = getVariant(theme);
258
- const { isMobileNav, isTopBar } = useContext(AppShellContext);
258
+ const { isMobileNav, isTopBar, startPanelOpen } = useContext(AppShellContext);
259
259
  return css `
260
260
  --tab-height: ${documentTabsHeight};
261
261
  position: sticky;
@@ -270,7 +270,9 @@ export const StyledDocumentTabsContainer = styled(Flex)(({ theme }) => {
270
270
  background-color: transparent;
271
271
  min-height: ${documentTabsHeight};
272
272
  overflow: visible;
273
- margin-inline-start: ${isMobileNav || isTopBar ? 0 : 'var(--appshell-horizontal-offset, 0)'};
273
+ margin-inline-start: ${isMobileNav || (isTopBar && !startPanelOpen)
274
+ ? 0
275
+ : 'var(--appshell-horizontal-offset, 0)'};
274
276
  transition: margin-inline-start
275
277
  ${`${theme.base.animation.speed} ${theme.base.animation.timing.ease}`};
276
278
 
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentTabs.styles.js","sourceRoot":"","sources":["../../../src/components/AppShell/DocumentTabs.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAqB,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAIhD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,KAAmB,EAAuB,EAAE;IACjF,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1E,OAAO,KAAK,KAAK,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AM7B,OAAO;OAC5B,CAAC;QACJ,KAAK,WAAW,CAAC;QACjB,KAAK,WAAW,CAAC;QACjB;YACE,OAAO,GAAG,CAAA;;;;;OAKT,CAAC;IACN,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,sBAAsB,CAAC,YAAY,GAAG,gBAAgB,CAAC","sourcesContent":["import styled, { css, type DefaultTheme } from 'styled-components';\nimport { useContext } from 'react';\n\nimport { defaultThemeProp } from '../../theme';\nimport { StyledIcon } from '../Icon';\nimport Button from '../Button';\nimport MenuButton from '../MenuButton';\nimport Flex from '../Flex';\n\nimport AppShellContext from './AppShellContext';\n\nexport type DocumentTabsVariant = 'underline' | 'segmented' | 'anchored' | 'folder';\n\nexport const getDocumentTabsVariant = (theme: DefaultTheme): DocumentTabsVariant => {\n const value = theme.components?.['app-shell']?.['document-tabs']?.variant;\n return value === 'segmented' || value === 'anchored' || value === 'underline' ? value : 'folder';\n};\n\nconst getVariant = getDocumentTabsVariant;\n\nconst MAX_TAB_WIDTH = '12rem';\n\nconst getTabFill = (theme: DefaultTheme): string =>\n theme.components?.['app-shell']?.['document-tabs']?.fill ?? theme.base.palette['app-background'];\n\n/**\n * Each variant returns the CSS slices that customize the tab strip.\n * All values come from theme tokens (spacing, palette, radius, shadow) —\n * no hard-coded pixel values from any specific design frame.\n */\n\n/**\n * Shared spacing tokens for tabs. Kept in one place so nudging padding /\n * gap / max-width once affects all variants.\n */\nconst tabTokens = (theme: DefaultTheme) => {\n const { spacing } = theme.base;\n return {\n tabPaddingInline: `calc(1.5 * ${spacing})`\n };\n};\n\n/**\n * CSS slices shared by every variant. Individual variants layer their own\n * background, radius, padding, and active-state visuals on top.\n */\nconst baseVariantStyles = (theme: DefaultTheme) => {\n const { palette, 'border-radius': borderRadius } = theme.base;\n const { tabPaddingInline } = tabTokens(theme);\n return {\n container: css`\n background-color: ${palette['secondary-background']};\n `,\n tab: css`\n padding-inline: ${tabPaddingInline};\n\n &:hover {\n background-color: ${palette['primary-background']};\n }\n\n /* Outset outline around the tab body. z-index lifts the tab above the\n panel below so the outline is not clipped where they overlap. */\n &:focus-visible {\n outline: 0.125rem solid ${palette.interactive};\n outline-offset: 0.0625rem;\n box-shadow: none;\n position: relative;\n z-index: 3;\n }\n\n /* Active folder tab has top-only rounded corners and scoop pseudos\n that weld it into the panel below. On focus, round all corners and\n hide the scoops so the tab reads as a standalone pill — matching\n the non-active tab focus shape. */\n &[aria-selected='true']:focus-visible {\n border-radius: ${borderRadius};\n }\n &[aria-selected='true']:focus-visible::before,\n &[aria-selected='true']:focus-visible::after {\n display: none;\n }\n `,\n activeIcon: css`\n ${StyledIcon} {\n color: ${palette['foreground-color']};\n opacity: 1;\n }\n `\n };\n};\n\n/**\n * Shared \"browser-tab\" shape used by anchored + folder variants.\n * The tab has a filled body that grows into the container's bottom edge on\n * active state, with two outward-curving scoop pseudos that visually flow\n * into the panel below.\n *\n * @param fill Background color for the active tab and its scoops.\n * @param onFill Text/icon color when the tab is active.\n * @param inactiveFill Background color for inactive tabs.\n * @param fontWeight Active tab font weight.\n */\nconst browserTabStyles = (\n theme: DefaultTheme,\n {\n fill,\n onFill,\n inactiveFill,\n fontWeight\n }: {\n fill: string;\n onFill: string;\n inactiveFill: string;\n fontWeight: number;\n }\n) => {\n const { palette, spacing, 'border-radius': borderRadius } = theme.base;\n const base = baseVariantStyles(theme);\n return {\n container: css`\n ${base.container}\n --tab-height: 2rem;\n align-items: flex-end;\n padding-block-start: calc(0.375 * ${spacing});\n padding-inline: ${spacing};\n gap: calc(0.5 * ${spacing});\n\n &[data-overflowing='true'] {\n padding-block-start: ${spacing};\n }\n\n /* Home is the leftmost tab and has no neighbor to weld into on its\n left side. Hide the ::before scoop so it doesn't curve into empty\n space against the nav. */\n [id='document-tab-home']::before {\n display: none;\n }\n `,\n tab: css`\n ${base.tab}\n height: calc(var(--tab-height) - 0.4375rem);\n margin-block-end: 0.3125rem;\n background-color: ${inactiveFill};\n color: ${palette['foreground-color']};\n opacity: 0.9;\n border-radius: ${borderRadius};\n\n &:hover,\n &:focus-visible {\n opacity: 1;\n }\n `,\n active: css`\n background-color: ${fill};\n color: ${onFill};\n opacity: 1;\n font-weight: ${fontWeight};\n height: calc(var(--tab-height) - 0.125rem);\n border-radius: ${borderRadius} ${borderRadius} 0 0;\n margin-block-end: 0;\n padding-block-end: 0.3125rem;\n position: relative;\n overflow: visible;\n z-index: 1;\n\n &::before,\n &::after {\n content: '';\n position: absolute;\n inset-block-end: 0;\n width: 1.125rem;\n height: 1.125rem;\n pointer-events: none;\n }\n\n &::before {\n inset-inline-start: -1.125rem;\n border-end-end-radius: 0.8125rem;\n box-shadow: 0.45rem 0.05rem 0 ${fill};\n }\n\n &::after {\n inset-inline-end: -1.125rem;\n border-end-start-radius: 0.8125rem;\n box-shadow: -0.45rem 0.05rem 0 ${fill};\n }\n\n ${StyledIcon} {\n color: ${onFill};\n opacity: 1;\n }\n\n &:hover {\n background-color: ${fill};\n }\n `\n };\n};\n\nconst variantStyles = (variant: DocumentTabsVariant, theme: DefaultTheme) => {\n const { palette, spacing } = theme.base;\n const base = baseVariantStyles(theme);\n\n switch (variant) {\n case 'segmented':\n return {\n container: css`\n ${base.container}\n padding-block: calc(0.125 * ${spacing});\n padding-inline: calc(0.75 * ${spacing});\n border-radius: calc(var(--tab-height) / 2);\n align-self: center;\n flex-grow: 0;\n `,\n tab: css`\n ${base.tab}\n border-radius: calc(var(--tab-height) / 2);\n `,\n active: css`\n background-color: ${palette['primary-background']};\n color: ${palette['foreground-color']};\n opacity: 1;\n font-weight: 500;\n border: 0.0625rem solid ${palette['border-line']};\n\n ${StyledIcon} {\n color: ${palette.interactive};\n opacity: 1;\n }\n\n &:hover {\n background-color: ${palette['primary-background']};\n }\n `\n };\n case 'anchored':\n return browserTabStyles(theme, {\n fill: palette.interactive,\n onFill: palette['primary-background'],\n inactiveFill: palette['primary-background'],\n fontWeight: 500\n });\n case 'folder': {\n // Folder tabs read as one flat surface — active and inactive share\n // the same fill; active state is signaled by the scoop pseudos welding\n // it into the panel below rather than by a distinct color.\n const tabFill = getTabFill(theme);\n return browserTabStyles(theme, {\n fill: tabFill,\n onFill: palette['foreground-color'],\n inactiveFill: tabFill,\n fontWeight: 600\n });\n }\n case 'underline':\n default:\n return {\n container: css`\n ${base.container}\n padding-block: calc(0.5 * ${spacing});\n border-block-end: 0.0625rem solid ${palette['border-line']};\n `,\n tab: css`\n ${base.tab}\n `,\n active: css`\n background-color: ${palette['primary-background']};\n color: ${palette['foreground-color']};\n opacity: 1;\n font-weight: 500;\n box-shadow: 0 calc(-0.125 * ${spacing}) 0 0 ${palette['foreground-color']} inset;\n\n ${base.activeIcon}\n\n &:hover {\n background-color: ${palette['primary-background']};\n }\n `\n };\n }\n};\n\nexport const documentTabsHeight = '2.25rem';\n\nexport const StyledDocumentTabsContainer = styled(Flex)(({ theme }) => {\n const { spacing } = theme.base;\n const variant = getVariant(theme);\n const { isMobileNav, isTopBar } = useContext(AppShellContext);\n return css`\n --tab-height: ${documentTabsHeight};\n position: sticky;\n top: calc(var(--appshell-top-offset, 0rem) - var(--document-tabs-height, 0rem));\n\n /* Sit above CaseView's own sticky wrappers (which use z-index: 1) and\n similar low-z content so case-content doesn't bleed through the tab\n strip background. */\n z-index: ${theme.base['z-index'].popover};\n align-items: stretch;\n gap: calc(0.25 * ${spacing});\n background-color: transparent;\n min-height: ${documentTabsHeight};\n overflow: visible;\n margin-inline-start: ${isMobileNav || isTopBar ? 0 : 'var(--appshell-horizontal-offset, 0)'};\n transition: margin-inline-start\n ${`${theme.base.animation.speed} ${theme.base.animation.timing.ease}`};\n\n ${variantStyles(variant, theme).container}\n `;\n});\n\nStyledDocumentTabsContainer.defaultProps = defaultThemeProp;\n\nexport const StyledDocumentTabButton = styled.button\n .attrs({ type: 'button' as const })\n .withConfig({ shouldForwardProp: prop => !['hasClose'].includes(prop) })<{ hasClose?: boolean }>(\n ({ hasClose, theme }) => {\n const { palette, spacing } = theme.base;\n const variant = getVariant(theme);\n return css`\n display: flex;\n align-items: center;\n justify-content: center;\n gap: calc(0.5 * ${spacing});\n box-sizing: border-box;\n height: 100%;\n padding-block: 0;\n border: none;\n background-color: transparent;\n color: ${palette['foreground-color']};\n opacity: 0.7;\n cursor: pointer;\n position: relative;\n max-width: ${MAX_TAB_WIDTH};\n font: inherit;\n text-align: start;\n text-decoration: none;\n transition:\n background-color 120ms ease,\n color 120ms ease,\n opacity 120ms ease;\n\n ${StyledIcon} {\n flex-shrink: 0;\n font-size: 1rem;\n opacity: 0.75;\n }\n\n &:hover {\n opacity: 1;\n\n ${StyledIcon} {\n opacity: 1;\n }\n }\n\n ${variantStyles(variant, theme).tab}\n\n /* Layered after the variant's shorthand padding-inline so the extra\n right-side room reserved for the close overlay wins the cascade. */\n ${hasClose &&\n css`\n padding-inline-end: calc(1.5rem + ${spacing});\n `}\n `;\n }\n);\n\nStyledDocumentTabButton.defaultProps = defaultThemeProp;\n\n/**\n * Absolute-positioned wrapper that overlays the close Button on the tab's\n * inline-end padding. Button has intrinsic min-width/min-height we can't\n * reliably override for tight overlays, so the wrapper handles geometry\n * (flex-centered vertically, full item height) and the Button lives\n * naturally inside.\n */\nexport const StyledDocumentTabCloseAnchor = styled.span(({ theme }) => {\n const { spacing } = theme.base;\n return css`\n position: absolute;\n inset-inline-end: calc(0.5 * ${spacing});\n inset-block: 0;\n display: flex;\n align-items: center;\n\n /* Sits above the focused tab button (which bumps to z-index: 3 for\n its outline) so the × stays visible while focused. */\n z-index: 4;\n `;\n});\n\nStyledDocumentTabCloseAnchor.defaultProps = defaultThemeProp;\n\nexport const StyledDocumentTabItem = styled.div.withConfig({\n shouldForwardProp: prop => !['isActive', 'isDropBefore', 'isDragging'].includes(prop)\n})<{\n isActive?: boolean;\n isDropBefore?: boolean;\n isDragging?: boolean;\n}>(({ isActive, isDropBefore, isDragging, theme }) => {\n const { palette } = theme.base;\n const variant = getVariant(theme);\n return css`\n flex-shrink: 0;\n white-space: nowrap;\n position: relative;\n display: flex;\n align-items: stretch;\n opacity: ${isDragging ? 0.5 : 1};\n\n ${isDropBefore &&\n css`\n &::before {\n content: '';\n position: absolute;\n inset-block: 0.25rem;\n inset-inline-start: -0.0625rem;\n width: 0.125rem;\n background-color: ${palette.interactive};\n border-radius: 0.125rem;\n z-index: 2;\n }\n `}\n\n ${StyledDocumentTabButton} {\n ${isActive && variantStyles(variant, theme).active}\n }\n\n /* Folder/anchored variants size the row to the active tab (which is\n taller than inactive tabs, and adds padding-block-end on active),\n so the label's optical center sits ~0.3125rem above the row's\n geometric center. Mirror that inset on the close anchor so the ×\n stays optically aligned on every tab in these variants. */\n ${(variant === 'folder' || variant === 'anchored') &&\n css`\n & > ${StyledDocumentTabCloseAnchor} {\n inset-block-end: 0.3125rem;\n }\n `}\n `;\n});\n\nStyledDocumentTabItem.defaultProps = defaultThemeProp;\n\nexport const StyledDocumentTabList = styled.div(({ theme }) => {\n const { spacing } = theme.base;\n const variant = getVariant(theme);\n const gap =\n variant === 'segmented' || variant === 'anchored' || variant === 'folder'\n ? `calc(1.5 * ${spacing})`\n : `calc(0.5 * ${spacing})`;\n return css`\n position: relative;\n display: flex;\n align-items: stretch;\n flex-grow: 1;\n min-width: 0;\n gap: ${gap};\n overflow-x: auto;\n overflow-y: hidden;\n margin: 0;\n\n /* Padding + negative margin gives the focused-tab pill outline (which\n extends outside the tab body on all sides) room to render inside the\n scroll clip. Negative margins cancel the padding so surrounding\n layout stays put. */\n padding-block-start: 0.5rem;\n padding-block-end: 0.25rem;\n padding-inline: 0.25rem;\n margin-block-start: -0.5rem;\n margin-block-end: -0.25rem;\n margin-inline: -0.25rem;\n `;\n});\n\nStyledDocumentTabList.defaultProps = defaultThemeProp;\n\nexport const StyledDocumentTabLabel = styled.span`\n overflow: hidden;\n text-overflow: ellipsis;\n min-width: 0;\n`;\n\nStyledDocumentTabLabel.defaultProps = defaultThemeProp;\n\nexport const StyledDocumentTabClose = styled(Button)(({\n theme: {\n base: { palette, 'border-radius': borderRadius }\n }\n}) => {\n return css`\n padding: 0 !important;\n width: 1.5rem !important;\n height: 1.5rem !important;\n min-width: 0 !important;\n min-height: 0 !important;\n border-radius: ${borderRadius};\n opacity: 1;\n\n /* Override Button's built-in icon-hover ::before (a currentColor overlay\n positioned at negative inset around the whole 24×24 box) with a\n smaller inset chrome so hover doesn't touch the tab's block edges.\n The 24×24 button remains the pointer target for WCAG 2.5.8. */\n &:hover::before,\n &:active::before {\n top: 0.1875rem !important;\n right: 0.1875rem !important;\n bottom: 0.1875rem !important;\n left: 0.1875rem !important;\n background-color: ${palette['border-line']} !important;\n opacity: 1 !important;\n z-index: -1 !important;\n }\n\n ${StyledIcon} {\n font-size: 0.625rem;\n width: 0.625rem;\n height: 0.625rem;\n opacity: 1;\n }\n\n svg {\n width: 0.625rem !important;\n height: 0.625rem !important;\n }\n `;\n});\n\nStyledDocumentTabClose.defaultProps = defaultThemeProp;\n\nexport const StyledOverflowTabMenu = styled(MenuButton)(({ theme }) => {\n const variant = getVariant(theme);\n return css`\n flex-shrink: 0;\n\n /* Folder/anchored containers use align-items: flex-end (tabs sit at\n the container bottom); align the caret button to the top edge of\n that same content area so it lines up with the tab tops rather\n than centering in the taller container box. */\n align-self: ${variant === 'folder' || variant === 'anchored' ? 'flex-start' : 'center'};\n `;\n});\n\nStyledOverflowTabMenu.defaultProps = defaultThemeProp;\n\n/**\n * Inner content wrapper for each tab. Hosts the pseudo-element flares for\n * the folder variant's active tab. Because this element is inside the button\n * (which we can't force overflow: visible on without breaking other things),\n * the flares live here and can escape their box without fighting the button's\n * inherited overflow behavior.\n */\nexport const StyledDocumentTabAnchor = styled.span(({ theme }) => {\n const { spacing } = theme.base;\n return css`\n display: flex;\n align-items: center;\n gap: calc(0.5 * ${spacing});\n position: relative;\n overflow: visible;\n\n /* Fill the button so pseudo-flares sit at the button's true edges. */\n align-self: stretch;\n flex: 1;\n\n /* Allow the anchor to shrink below its intrinsic content width so the\n label inside can ellipsize when the button hits its max-width cap. */\n min-width: 0;\n `;\n});\n\nStyledDocumentTabAnchor.defaultProps = defaultThemeProp;\n\n/**\n * Wrapper for AppShell main content when the tab strip is visible. Certain\n * variants (anchored, folder) require a themed content panel below the tab\n * strip so the active tab can \"attach\" to it. For other variants this is a\n * transparent pass-through so surrounding layout is unchanged.\n */\nexport const StyledDocumentTabPanel = styled.div(({ theme }) => {\n const { palette, spacing, 'border-radius': borderRadius } = theme.base;\n const variant = getVariant(theme);\n\n switch (variant) {\n case 'anchored':\n return css`\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n background-color: ${palette['primary-background']};\n border-block-start: calc(0.375 * ${spacing}) solid ${palette.interactive};\n border-radius: ${borderRadius} ${borderRadius} 0 0;\n margin-inline: ${spacing};\n `;\n case 'folder':\n return css`\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n background-color: ${palette['primary-background']};\n\n /* Top corners are flat so the tab strip welds cleanly into the panel;\n a rounded top-right exposes a curved sliver of the container\n background above the scrollbar when tabs overflow. */\n border-radius: 0;\n margin-block-end: ${spacing};\n `;\n case 'underline':\n case 'segmented':\n default:\n return css`\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n `;\n }\n});\n\nStyledDocumentTabPanel.defaultProps = defaultThemeProp;\n"]}
1
+ {"version":3,"file":"DocumentTabs.styles.js","sourceRoot":"","sources":["../../../src/components/AppShell/DocumentTabs.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAqB,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAIhD,MA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AO,GAAG,CAAA;;;;;4BAKY,OAAO,CAAC,oBAAoB,CAAC;2CACd,OAAO,WAAW,OAAO,CAAC,WAAW;yBACvD,YAAY,IAAI,YAAY;yBAC5B,OAAO;OACzB,CAAC;QACJ,KAAK,QAAQ;YACX,OAAO,GAAG,CAAA;;;;;4BAKY,OAAO,CAAC,oBAAoB,CAAC;;;;;;4BAM7B,OAAO;OAC5B,CAAC;QACJ,KAAK,WAAW,CAAC;QACjB,KAAK,WAAW,CAAC;QACjB;YACE,OAAO,GAAG,CAAA;;;;;OAKT,CAAC;IACN,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,sBAAsB,CAAC,YAAY,GAAG,gBAAgB,CAAC","sourcesContent":["import styled, { css, type DefaultTheme } from 'styled-components';\nimport { useContext } from 'react';\n\nimport { defaultThemeProp } from '../../theme';\nimport { StyledIcon } from '../Icon';\nimport Button from '../Button';\nimport MenuButton from '../MenuButton';\nimport Flex from '../Flex';\n\nimport AppShellContext from './AppShellContext';\n\nexport type DocumentTabsVariant = 'underline' | 'segmented' | 'anchored' | 'folder';\n\nexport const getDocumentTabsVariant = (theme: DefaultTheme): DocumentTabsVariant => {\n const value = theme.components?.['app-shell']?.['document-tabs']?.variant;\n return value === 'segmented' || value === 'anchored' || value === 'underline' ? value : 'folder';\n};\n\nconst getVariant = getDocumentTabsVariant;\n\nconst MAX_TAB_WIDTH = '12rem';\n\nconst getTabFill = (theme: DefaultTheme): string =>\n theme.components?.['app-shell']?.['document-tabs']?.fill ?? theme.base.palette['app-background'];\n\n/**\n * Each variant returns the CSS slices that customize the tab strip.\n * All values come from theme tokens (spacing, palette, radius, shadow) —\n * no hard-coded pixel values from any specific design frame.\n */\n\n/**\n * Shared spacing tokens for tabs. Kept in one place so nudging padding /\n * gap / max-width once affects all variants.\n */\nconst tabTokens = (theme: DefaultTheme) => {\n const { spacing } = theme.base;\n return {\n tabPaddingInline: `calc(1.5 * ${spacing})`\n };\n};\n\n/**\n * CSS slices shared by every variant. Individual variants layer their own\n * background, radius, padding, and active-state visuals on top.\n */\nconst baseVariantStyles = (theme: DefaultTheme) => {\n const { palette, 'border-radius': borderRadius } = theme.base;\n const { tabPaddingInline } = tabTokens(theme);\n return {\n container: css`\n background-color: ${palette['secondary-background']};\n `,\n tab: css`\n padding-inline: ${tabPaddingInline};\n\n &:hover {\n background-color: ${palette['primary-background']};\n }\n\n /* Outset outline around the tab body. z-index lifts the tab above the\n panel below so the outline is not clipped where they overlap. */\n &:focus-visible {\n outline: 0.125rem solid ${palette.interactive};\n outline-offset: 0.0625rem;\n box-shadow: none;\n position: relative;\n z-index: 3;\n }\n\n /* Active folder tab has top-only rounded corners and scoop pseudos\n that weld it into the panel below. On focus, round all corners and\n hide the scoops so the tab reads as a standalone pill — matching\n the non-active tab focus shape. */\n &[aria-selected='true']:focus-visible {\n border-radius: ${borderRadius};\n }\n &[aria-selected='true']:focus-visible::before,\n &[aria-selected='true']:focus-visible::after {\n display: none;\n }\n `,\n activeIcon: css`\n ${StyledIcon} {\n color: ${palette['foreground-color']};\n opacity: 1;\n }\n `\n };\n};\n\n/**\n * Shared \"browser-tab\" shape used by anchored + folder variants.\n * The tab has a filled body that grows into the container's bottom edge on\n * active state, with two outward-curving scoop pseudos that visually flow\n * into the panel below.\n *\n * @param fill Background color for the active tab and its scoops.\n * @param onFill Text/icon color when the tab is active.\n * @param inactiveFill Background color for inactive tabs.\n * @param fontWeight Active tab font weight.\n */\nconst browserTabStyles = (\n theme: DefaultTheme,\n {\n fill,\n onFill,\n inactiveFill,\n fontWeight\n }: {\n fill: string;\n onFill: string;\n inactiveFill: string;\n fontWeight: number;\n }\n) => {\n const { palette, spacing, 'border-radius': borderRadius } = theme.base;\n const base = baseVariantStyles(theme);\n return {\n container: css`\n ${base.container}\n --tab-height: 2rem;\n align-items: flex-end;\n padding-block-start: calc(0.375 * ${spacing});\n padding-inline: ${spacing};\n gap: calc(0.5 * ${spacing});\n\n &[data-overflowing='true'] {\n padding-block-start: ${spacing};\n }\n\n /* Home is the leftmost tab and has no neighbor to weld into on its\n left side. Hide the ::before scoop so it doesn't curve into empty\n space against the nav. */\n [id='document-tab-home']::before {\n display: none;\n }\n `,\n tab: css`\n ${base.tab}\n height: calc(var(--tab-height) - 0.4375rem);\n margin-block-end: 0.3125rem;\n background-color: ${inactiveFill};\n color: ${palette['foreground-color']};\n opacity: 0.9;\n border-radius: ${borderRadius};\n\n &:hover,\n &:focus-visible {\n opacity: 1;\n }\n `,\n active: css`\n background-color: ${fill};\n color: ${onFill};\n opacity: 1;\n font-weight: ${fontWeight};\n height: calc(var(--tab-height) - 0.125rem);\n border-radius: ${borderRadius} ${borderRadius} 0 0;\n margin-block-end: 0;\n padding-block-end: 0.3125rem;\n position: relative;\n overflow: visible;\n z-index: 1;\n\n &::before,\n &::after {\n content: '';\n position: absolute;\n inset-block-end: 0;\n width: 1.125rem;\n height: 1.125rem;\n pointer-events: none;\n }\n\n &::before {\n inset-inline-start: -1.125rem;\n border-end-end-radius: 0.8125rem;\n box-shadow: 0.45rem 0.05rem 0 ${fill};\n }\n\n &::after {\n inset-inline-end: -1.125rem;\n border-end-start-radius: 0.8125rem;\n box-shadow: -0.45rem 0.05rem 0 ${fill};\n }\n\n ${StyledIcon} {\n color: ${onFill};\n opacity: 1;\n }\n\n &:hover {\n background-color: ${fill};\n }\n `\n };\n};\n\nconst variantStyles = (variant: DocumentTabsVariant, theme: DefaultTheme) => {\n const { palette, spacing } = theme.base;\n const base = baseVariantStyles(theme);\n\n switch (variant) {\n case 'segmented':\n return {\n container: css`\n ${base.container}\n padding-block: calc(0.125 * ${spacing});\n padding-inline: calc(0.75 * ${spacing});\n border-radius: calc(var(--tab-height) / 2);\n align-self: center;\n flex-grow: 0;\n `,\n tab: css`\n ${base.tab}\n border-radius: calc(var(--tab-height) / 2);\n `,\n active: css`\n background-color: ${palette['primary-background']};\n color: ${palette['foreground-color']};\n opacity: 1;\n font-weight: 500;\n border: 0.0625rem solid ${palette['border-line']};\n\n ${StyledIcon} {\n color: ${palette.interactive};\n opacity: 1;\n }\n\n &:hover {\n background-color: ${palette['primary-background']};\n }\n `\n };\n case 'anchored':\n return browserTabStyles(theme, {\n fill: palette.interactive,\n onFill: palette['primary-background'],\n inactiveFill: palette['primary-background'],\n fontWeight: 500\n });\n case 'folder': {\n // Folder tabs read as one flat surface — active and inactive share\n // the same fill; active state is signaled by the scoop pseudos welding\n // it into the panel below rather than by a distinct color.\n const tabFill = getTabFill(theme);\n return browserTabStyles(theme, {\n fill: tabFill,\n onFill: palette['foreground-color'],\n inactiveFill: tabFill,\n fontWeight: 600\n });\n }\n case 'underline':\n default:\n return {\n container: css`\n ${base.container}\n padding-block: calc(0.5 * ${spacing});\n border-block-end: 0.0625rem solid ${palette['border-line']};\n `,\n tab: css`\n ${base.tab}\n `,\n active: css`\n background-color: ${palette['primary-background']};\n color: ${palette['foreground-color']};\n opacity: 1;\n font-weight: 500;\n box-shadow: 0 calc(-0.125 * ${spacing}) 0 0 ${palette['foreground-color']} inset;\n\n ${base.activeIcon}\n\n &:hover {\n background-color: ${palette['primary-background']};\n }\n `\n };\n }\n};\n\nexport const documentTabsHeight = '2.25rem';\n\nexport const StyledDocumentTabsContainer = styled(Flex)(({ theme }) => {\n const { spacing } = theme.base;\n const variant = getVariant(theme);\n const { isMobileNav, isTopBar, startPanelOpen } = useContext(AppShellContext);\n return css`\n --tab-height: ${documentTabsHeight};\n position: sticky;\n top: calc(var(--appshell-top-offset, 0rem) - var(--document-tabs-height, 0rem));\n\n /* Sit above CaseView's own sticky wrappers (which use z-index: 1) and\n similar low-z content so case-content doesn't bleed through the tab\n strip background. */\n z-index: ${theme.base['z-index'].popover};\n align-items: stretch;\n gap: calc(0.25 * ${spacing});\n background-color: transparent;\n min-height: ${documentTabsHeight};\n overflow: visible;\n margin-inline-start: ${isMobileNav || (isTopBar && !startPanelOpen)\n ? 0\n : 'var(--appshell-horizontal-offset, 0)'};\n transition: margin-inline-start\n ${`${theme.base.animation.speed} ${theme.base.animation.timing.ease}`};\n\n ${variantStyles(variant, theme).container}\n `;\n});\n\nStyledDocumentTabsContainer.defaultProps = defaultThemeProp;\n\nexport const StyledDocumentTabButton = styled.button\n .attrs({ type: 'button' as const })\n .withConfig({ shouldForwardProp: prop => !['hasClose'].includes(prop) })<{ hasClose?: boolean }>(\n ({ hasClose, theme }) => {\n const { palette, spacing } = theme.base;\n const variant = getVariant(theme);\n return css`\n display: flex;\n align-items: center;\n justify-content: center;\n gap: calc(0.5 * ${spacing});\n box-sizing: border-box;\n height: 100%;\n padding-block: 0;\n border: none;\n background-color: transparent;\n color: ${palette['foreground-color']};\n opacity: 0.7;\n cursor: pointer;\n position: relative;\n max-width: ${MAX_TAB_WIDTH};\n font: inherit;\n text-align: start;\n text-decoration: none;\n transition:\n background-color 120ms ease,\n color 120ms ease,\n opacity 120ms ease;\n\n ${StyledIcon} {\n flex-shrink: 0;\n font-size: 1rem;\n opacity: 0.75;\n }\n\n &:hover {\n opacity: 1;\n\n ${StyledIcon} {\n opacity: 1;\n }\n }\n\n ${variantStyles(variant, theme).tab}\n\n /* Layered after the variant's shorthand padding-inline so the extra\n right-side room reserved for the close overlay wins the cascade. */\n ${hasClose &&\n css`\n padding-inline-end: calc(1.5rem + ${spacing});\n `}\n `;\n }\n);\n\nStyledDocumentTabButton.defaultProps = defaultThemeProp;\n\n/**\n * Absolute-positioned wrapper that overlays the close Button on the tab's\n * inline-end padding. Button has intrinsic min-width/min-height we can't\n * reliably override for tight overlays, so the wrapper handles geometry\n * (flex-centered vertically, full item height) and the Button lives\n * naturally inside.\n */\nexport const StyledDocumentTabCloseAnchor = styled.span(({ theme }) => {\n const { spacing } = theme.base;\n return css`\n position: absolute;\n inset-inline-end: calc(0.5 * ${spacing});\n inset-block: 0;\n display: flex;\n align-items: center;\n\n /* Sits above the focused tab button (which bumps to z-index: 3 for\n its outline) so the × stays visible while focused. */\n z-index: 4;\n `;\n});\n\nStyledDocumentTabCloseAnchor.defaultProps = defaultThemeProp;\n\nexport const StyledDocumentTabItem = styled.div.withConfig({\n shouldForwardProp: prop => !['isActive', 'isDropBefore', 'isDragging'].includes(prop)\n})<{\n isActive?: boolean;\n isDropBefore?: boolean;\n isDragging?: boolean;\n}>(({ isActive, isDropBefore, isDragging, theme }) => {\n const { palette } = theme.base;\n const variant = getVariant(theme);\n return css`\n flex-shrink: 0;\n white-space: nowrap;\n position: relative;\n display: flex;\n align-items: stretch;\n opacity: ${isDragging ? 0.5 : 1};\n\n ${isDropBefore &&\n css`\n &::before {\n content: '';\n position: absolute;\n inset-block: 0.25rem;\n inset-inline-start: -0.0625rem;\n width: 0.125rem;\n background-color: ${palette.interactive};\n border-radius: 0.125rem;\n z-index: 2;\n }\n `}\n\n ${StyledDocumentTabButton} {\n ${isActive && variantStyles(variant, theme).active}\n }\n\n /* Folder/anchored variants size the row to the active tab (which is\n taller than inactive tabs, and adds padding-block-end on active),\n so the label's optical center sits ~0.3125rem above the row's\n geometric center. Mirror that inset on the close anchor so the ×\n stays optically aligned on every tab in these variants. */\n ${(variant === 'folder' || variant === 'anchored') &&\n css`\n & > ${StyledDocumentTabCloseAnchor} {\n inset-block-end: 0.3125rem;\n }\n `}\n `;\n});\n\nStyledDocumentTabItem.defaultProps = defaultThemeProp;\n\nexport const StyledDocumentTabList = styled.div(({ theme }) => {\n const { spacing } = theme.base;\n const variant = getVariant(theme);\n const gap =\n variant === 'segmented' || variant === 'anchored' || variant === 'folder'\n ? `calc(1.5 * ${spacing})`\n : `calc(0.5 * ${spacing})`;\n return css`\n position: relative;\n display: flex;\n align-items: stretch;\n flex-grow: 1;\n min-width: 0;\n gap: ${gap};\n overflow-x: auto;\n overflow-y: hidden;\n margin: 0;\n\n /* Padding + negative margin gives the focused-tab pill outline (which\n extends outside the tab body on all sides) room to render inside the\n scroll clip. Negative margins cancel the padding so surrounding\n layout stays put. */\n padding-block-start: 0.5rem;\n padding-block-end: 0.25rem;\n padding-inline: 0.25rem;\n margin-block-start: -0.5rem;\n margin-block-end: -0.25rem;\n margin-inline: -0.25rem;\n `;\n});\n\nStyledDocumentTabList.defaultProps = defaultThemeProp;\n\nexport const StyledDocumentTabLabel = styled.span`\n overflow: hidden;\n text-overflow: ellipsis;\n min-width: 0;\n`;\n\nStyledDocumentTabLabel.defaultProps = defaultThemeProp;\n\nexport const StyledDocumentTabClose = styled(Button)(({\n theme: {\n base: { palette, 'border-radius': borderRadius }\n }\n}) => {\n return css`\n padding: 0 !important;\n width: 1.5rem !important;\n height: 1.5rem !important;\n min-width: 0 !important;\n min-height: 0 !important;\n border-radius: ${borderRadius};\n opacity: 1;\n\n /* Override Button's built-in icon-hover ::before (a currentColor overlay\n positioned at negative inset around the whole 24×24 box) with a\n smaller inset chrome so hover doesn't touch the tab's block edges.\n The 24×24 button remains the pointer target for WCAG 2.5.8. */\n &:hover::before,\n &:active::before {\n top: 0.1875rem !important;\n right: 0.1875rem !important;\n bottom: 0.1875rem !important;\n left: 0.1875rem !important;\n background-color: ${palette['border-line']} !important;\n opacity: 1 !important;\n z-index: -1 !important;\n }\n\n ${StyledIcon} {\n font-size: 0.625rem;\n width: 0.625rem;\n height: 0.625rem;\n opacity: 1;\n }\n\n svg {\n width: 0.625rem !important;\n height: 0.625rem !important;\n }\n `;\n});\n\nStyledDocumentTabClose.defaultProps = defaultThemeProp;\n\nexport const StyledOverflowTabMenu = styled(MenuButton)(({ theme }) => {\n const variant = getVariant(theme);\n return css`\n flex-shrink: 0;\n\n /* Folder/anchored containers use align-items: flex-end (tabs sit at\n the container bottom); align the caret button to the top edge of\n that same content area so it lines up with the tab tops rather\n than centering in the taller container box. */\n align-self: ${variant === 'folder' || variant === 'anchored' ? 'flex-start' : 'center'};\n `;\n});\n\nStyledOverflowTabMenu.defaultProps = defaultThemeProp;\n\n/**\n * Inner content wrapper for each tab. Hosts the pseudo-element flares for\n * the folder variant's active tab. Because this element is inside the button\n * (which we can't force overflow: visible on without breaking other things),\n * the flares live here and can escape their box without fighting the button's\n * inherited overflow behavior.\n */\nexport const StyledDocumentTabAnchor = styled.span(({ theme }) => {\n const { spacing } = theme.base;\n return css`\n display: flex;\n align-items: center;\n gap: calc(0.5 * ${spacing});\n position: relative;\n overflow: visible;\n\n /* Fill the button so pseudo-flares sit at the button's true edges. */\n align-self: stretch;\n flex: 1;\n\n /* Allow the anchor to shrink below its intrinsic content width so the\n label inside can ellipsize when the button hits its max-width cap. */\n min-width: 0;\n `;\n});\n\nStyledDocumentTabAnchor.defaultProps = defaultThemeProp;\n\n/**\n * Wrapper for AppShell main content when the tab strip is visible. Certain\n * variants (anchored, folder) require a themed content panel below the tab\n * strip so the active tab can \"attach\" to it. For other variants this is a\n * transparent pass-through so surrounding layout is unchanged.\n */\nexport const StyledDocumentTabPanel = styled.div(({ theme }) => {\n const { palette, spacing, 'border-radius': borderRadius } = theme.base;\n const variant = getVariant(theme);\n\n switch (variant) {\n case 'anchored':\n return css`\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n background-color: ${palette['primary-background']};\n border-block-start: calc(0.375 * ${spacing}) solid ${palette.interactive};\n border-radius: ${borderRadius} ${borderRadius} 0 0;\n margin-inline: ${spacing};\n `;\n case 'folder':\n return css`\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n background-color: ${palette['primary-background']};\n\n /* Top corners are flat so the tab strip welds cleanly into the panel;\n a rounded top-right exposes a curved sliver of the container\n background above the scrollbar when tabs overflow. */\n border-radius: 0;\n margin-block-end: ${spacing};\n `;\n case 'underline':\n case 'segmented':\n default:\n return css`\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n `;\n }\n});\n\nStyledDocumentTabPanel.defaultProps = defaultThemeProp;\n"]}