@nxgt/material 3.85.1 → 3.86.1

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 (144) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +39 -5
  3. package/dist/{alert-dialog-1t6ULy5i.js → alert-dialog-DZnt8PYE.js} +1 -1
  4. package/dist/{async-slice-xyA9Uzct.js → async-slice-D3OdV2BS.js} +1 -1
  5. package/dist/{button-DhiNGrdT.js → button-MAL5an7L.js} +1 -1
  6. package/dist/{calculator-BcgxxScL.js → calculator-C3a8YMwl.js} +10 -10
  7. package/dist/calculator-field.js +6 -6
  8. package/dist/{calculator-segment-C4WQAHcN.js → calculator-segment-BigMpjhn.js} +1 -1
  9. package/dist/calculator.js +1 -1
  10. package/dist/charts.js +3 -3
  11. package/dist/{chip-m0_usuzd.js → chip-DKAKoNxq.js} +2 -2
  12. package/dist/{code-editor-BgKFrcld.js → code-editor-B6dFQSUJ.js} +4 -4
  13. package/dist/code-editor.js +4 -4
  14. package/dist/{code-language-items-BWw17W9s.js → code-language-items-CXEMiWoF.js} +2 -2
  15. package/dist/components/components.css +2 -0
  16. package/dist/components/theme-tokens.css +18 -0
  17. package/dist/components/ui/layout/app-bar/top-app-bar/top-app-bar-collapse.css +60 -0
  18. package/dist/components/ui/layout/app-bar/top-app-bar/top-app-bar.css +205 -0
  19. package/dist/components/ui/layout/app-shell/app-header.css +70 -63
  20. package/dist/{components-DfSE2F8d.js → components-C2MBVly0.js} +17327 -16929
  21. package/dist/components.js +24 -24
  22. package/dist/{conversion-variant-DultZZQm.js → conversion-variant-BT5n4-jm.js} +3 -3
  23. package/dist/{currency-field-CPbaM7ay.js → currency-field-t41sFYg_.js} +4 -4
  24. package/dist/{dialog-DmlG9opW.js → dialog-BjKiRXJg.js} +3 -3
  25. package/dist/dnd.js +1 -1
  26. package/dist/{dropdown-menu-CDKev8dk.js → dropdown-menu-IRFp4CH9.js} +1 -1
  27. package/dist/editor.js +7 -7
  28. package/dist/{empty-state-C56000TB.js → empty-state-C70prDDr.js} +1 -1
  29. package/dist/{financial-variant-BYjQ690K.js → financial-variant-BIpzs8IL.js} +5 -5
  30. package/dist/{hooks-BTwLAy_A.js → hooks-CjO11MS7.js} +2 -2
  31. package/dist/hooks.js +2 -2
  32. package/dist/{hover-card-CDtW6utN.js → hover-card-cU_aJa18.js} +1 -1
  33. package/dist/i18n.js +3 -3
  34. package/dist/{icon-badge-ec7MmUGA.js → icon-badge-D3KO6uEQ.js} +1 -1
  35. package/dist/{icon-button-CG4aO8Gh.js → icon-button-DrqNk1Ww.js} +1 -1
  36. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  37. package/dist/lib/components/ui/layout/app-bar/index.d.ts +1 -1
  38. package/dist/lib/components/ui/layout/app-bar/top-app-bar/index.d.ts +1 -0
  39. package/dist/lib/components/ui/layout/app-bar/top-app-bar/partials/top-app-bar-actions.d.ts +15 -0
  40. package/dist/lib/components/ui/layout/app-bar/top-app-bar/partials/top-app-bar-headline.d.ts +4 -0
  41. package/dist/lib/components/ui/layout/app-bar/top-app-bar/partials/top-app-bar-link.d.ts +9 -0
  42. package/dist/lib/components/ui/layout/app-bar/top-app-bar/partials/top-app-bar-menu-section.d.ts +14 -0
  43. package/dist/lib/components/ui/layout/app-bar/top-app-bar/partials/top-app-bar-primary-action.d.ts +12 -0
  44. package/dist/lib/components/ui/layout/app-bar/top-app-bar/partials/top-app-bar-row.d.ts +23 -0
  45. package/dist/lib/components/ui/layout/app-bar/top-app-bar/partials/top-app-bar-title-block.d.ts +18 -0
  46. package/dist/lib/components/ui/layout/app-bar/top-app-bar/top-app-bar.actions.d.ts +43 -0
  47. package/dist/lib/components/ui/layout/app-bar/top-app-bar/top-app-bar.d.ts +9 -0
  48. package/dist/lib/components/ui/layout/app-bar/top-app-bar/top-app-bar.types.d.ts +120 -0
  49. package/dist/lib/components/ui/layout/app-bar/top-app-bar/top-app-bar.utils.d.ts +43 -0
  50. package/dist/lib/components/ui/layout/app-shell/activity-app-bar.d.ts +6 -6
  51. package/dist/lib/components/ui/layout/app-shell/activity-chrome.d.ts +6 -3
  52. package/dist/lib/components/ui/layout/app-shell/activity-column-props.d.ts +1 -1
  53. package/dist/lib/components/ui/layout/app-shell/activity-column.d.ts +2 -2
  54. package/dist/lib/components/ui/layout/app-shell/activity-layout-navigation.types.d.ts +32 -4
  55. package/dist/lib/components/ui/layout/app-shell/activity-layout.types.d.ts +12 -2
  56. package/dist/lib/components/ui/layout/app-shell/app-header.d.ts +9 -3
  57. package/dist/lib/components/ui/layout/app-shell/header-look.d.ts +14 -0
  58. package/dist/lib/components/ui/layout/app-shell/header-title.d.ts +9 -36
  59. package/dist/lib/components/ui/layout/app-shell/header.utils.d.ts +13 -3
  60. package/dist/lib/components/ui/layout/app-shell/index.d.ts +1 -1
  61. package/dist/lib/components/ui/layout/app-shell/navigation.utils.d.ts +7 -2
  62. package/dist/lib/components/ui/layout/app-shell/shell-scroll.d.ts +23 -1
  63. package/dist/lib/components/ui/layout/app-shell/shell-top-app-bar.d.ts +10 -0
  64. package/dist/lib/components/ui/layout/app-shell/shell-top-app-bar.parts.d.ts +58 -0
  65. package/dist/lib/components/ui/layout/app-shell/shell-top-app-bar.types.d.ts +26 -0
  66. package/dist/lib/components/ui/layout/app-shell/use-header-scroll.d.ts +16 -9
  67. package/dist/lib/components/ui/layout/app-shell/use-shell-header.d.ts +1 -1
  68. package/dist/lib/components/ui/primitives/tabs/tabs-press.d.ts +11 -0
  69. package/dist/lib/i18n/resources/en/en.d.ts +4 -0
  70. package/dist/lib/i18n/resources/en/material.json.d.ts +4 -0
  71. package/dist/lib/i18n/resources/fr/fr.d.ts +4 -0
  72. package/dist/lib/i18n/resources/fr/material.json.d.ts +4 -0
  73. package/dist/lib/i18n/resources/resources.d.ts +8 -0
  74. package/dist/lib/i18n/translator.d.ts +1 -1
  75. package/dist/lib.js +1 -1
  76. package/dist/main.js +28 -28
  77. package/dist/map.js +7 -7
  78. package/dist/material.css +1 -1
  79. package/dist/pdf-reader.js +1 -1
  80. package/dist/{percent-field-8_pILs15.js → percent-field-D47IlaPF.js} +1 -1
  81. package/dist/{picker-surface-pyGv-Qh9.js → picker-surface-Cg4V4-E0.js} +4 -4
  82. package/dist/{popover-3EF4q2CT.js → popover-Dzk4-l9U.js} +1 -1
  83. package/dist/{pos-types-Dv2UxKSN.js → pos-types-JOXMY4Y2.js} +1 -1
  84. package/dist/{pos-variant-DJvtN9N8.js → pos-variant-B2mS8bMB.js} +4 -4
  85. package/dist/print.js +1 -1
  86. package/dist/{programmer-variant-Bmcq2KzC.js → programmer-variant-C_Tl0P4_.js} +2 -2
  87. package/dist/{public-BNebh4z0.js → public-ByAsqBOf.js} +9 -9
  88. package/dist/{rich-code-block-DmX7d58S.js → rich-code-block-CJAfqk6b.js} +5 -5
  89. package/dist/{scientific-variant-DijUrpP8.js → scientific-variant-CskM4MLV.js} +2 -2
  90. package/dist/{sortable-provider-Cnmt_gWu.js → sortable-provider-ICS_vkLA.js} +2 -2
  91. package/dist/{spinner-C6LP2Rw8.js → spinner-CweqX5A9.js} +1 -1
  92. package/dist/styles.css +2 -0
  93. package/dist/{tabs-Bj1zOe7-.js → tabs-95Y2LmnV.js} +65 -43
  94. package/dist/theme-picker.js +2 -2
  95. package/dist/{theme-toggle-Cxku5iBP.js → theme-toggle-WAFkncYx.js} +1 -1
  96. package/dist/{toolbar-items-CEIuSxU_.js → toolbar-items-BsgzHSNf.js} +4 -4
  97. package/dist/{translate-material-DI3nmQ6I.js → translate-material-DTIAPmlU.js} +1 -1
  98. package/dist/{translator-BstxG_hN.js → translator-BRZNhsy5.js} +8 -0
  99. package/dist/{use-chat-composer-BqLkk_iH.js → use-chat-composer-CleSUh_y.js} +15 -15
  100. package/dist/{use-heading-spy-nFyb9_KE.js → use-heading-spy-D8WbHJuK.js} +4 -4
  101. package/dist/{use-material-translation-1kCHtB0p.js → use-material-translation-CCy1Me0h.js} +1 -1
  102. package/dist/{use-return-focus-Hv8rn55-.js → use-return-focus-BA8G1qVU.js} +1 -1
  103. package/docs/README.md +1 -0
  104. package/docs/components/navigation-and-layout.md +85 -32
  105. package/docs/guides/app-shell.md +158 -63
  106. package/docs/guides/drawing.md +2 -0
  107. package/docs/guides/layouts.md +3 -3
  108. package/docs/guides/migrating-to-top-app-bar.md +156 -0
  109. package/docs/guides/theming.md +5 -0
  110. package/docs/previews/navigation-layout-appshell-blue-moon.webp +0 -0
  111. package/docs/previews/navigation-layout-appshell-footer-icon.webp +0 -0
  112. package/docs/previews/navigation-layout-appshell-menu-badge.webp +0 -0
  113. package/docs/previews/navigation-layout-appshell-page-ground.webp +0 -0
  114. package/docs/previews/navigation-layout-appshell-themes.webp +0 -0
  115. package/docs/previews/navigation-layout-appshell.webp +0 -0
  116. package/docs/previews/navigation-layout-topappbar.webp +0 -0
  117. package/docs/roadmap.md +17 -6
  118. package/docs/troubleshooting.md +80 -0
  119. package/lib/components/components.css +2 -0
  120. package/lib/components/theme-tokens.css +18 -0
  121. package/lib/components/ui/layout/app-bar/top-app-bar/top-app-bar-collapse.css +60 -0
  122. package/lib/components/ui/layout/app-bar/top-app-bar/top-app-bar.css +205 -0
  123. package/lib/components/ui/layout/app-shell/app-header.css +70 -63
  124. package/lib/styles.css +2 -0
  125. package/lib/themes/ambre.css +5 -1
  126. package/lib/themes/ardoise.css +5 -1
  127. package/lib/themes/bleumono.css +5 -1
  128. package/lib/themes/bluemoon.css +5 -1
  129. package/lib/themes/corail.css +5 -1
  130. package/lib/themes/foret.css +5 -1
  131. package/lib/themes/lavande.css +5 -1
  132. package/lib/themes/menthe.css +5 -1
  133. package/lib/themes/ocean.css +5 -1
  134. package/lib/themes/pink.css +5 -1
  135. package/lib/themes/prune.css +5 -1
  136. package/lib/themes/sable.css +5 -1
  137. package/lib/themes/slate.css +5 -1
  138. package/lib/themes/teal.css +5 -1
  139. package/package.json +2 -2
  140. package/dist/lib/components/ui/layout/app-bar/top-app-bar.d.ts +0 -18
  141. package/dist/lib/components/ui/layout/app-shell/app-header-row.d.ts +0 -3
  142. package/dist/lib/components/ui/layout/app-shell/header-context.d.ts +0 -10
  143. package/dist/lib/components/ui/layout/app-shell/page-title.d.ts +0 -27
  144. /package/dist/lib/components/ui/layout/{app-shell → app-bar/top-app-bar}/use-truncated-title.d.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  import { AppSearchBarProps } from '../app-search/app-search.types.js';
2
- import { ShellHeaderOptions, ShellHeaderVariant, ShellNavigation, ShellNavigationOptions } from './activity-layout-navigation.types.js';
2
+ import { ShellHeaderAlign, ShellHeaderOptions, ShellHeaderSize, ShellHeaderVariant, ShellNavigation, ShellNavigationOptions } from './activity-layout-navigation.types.js';
3
3
  /** What the shell draws today, and what an unset `navigation` resolves to. */
4
4
  export declare const DEFAULT_NAVIGATION: {
5
5
  readonly phone: "modal-drawer";
@@ -14,7 +14,12 @@ export type ResolvedNavigation = {
14
14
  persistKey?: string;
15
15
  };
16
16
  export type ResolvedHeader = {
17
- variant: ShellHeaderVariant;
17
+ /** The bar's size; `'none'` when no header is drawn. */
18
+ size: ShellHeaderSize | 'none';
19
+ /** Where the title sits. */
20
+ align: ShellHeaderAlign;
21
+ /** The old spelling of `size` and `align`, kept for what still reads it. */
22
+ variant: 'small' | 'center' | 'medium' | 'large' | 'none';
18
23
  collapse: boolean;
19
24
  hideOnScroll: boolean;
20
25
  tabs: ShellHeaderOptions['tabs'];
@@ -8,6 +8,28 @@ export type ShellScrollState = {
8
8
  /** Whether the user asked for reduced motion: skip the slide and snap. */
9
9
  reducedMotion: boolean;
10
10
  };
11
+ /**
12
+ * A scroll state that can be followed without rendering: `get` the latest,
13
+ * `subscribe` to every change. A bar that restyles itself per scroll frame
14
+ * (a collapse, a tint) reads this and writes to the DOM, so it never
15
+ * re-renders for a frame of scrolling.
16
+ */
17
+ export type ShellScrollStore = {
18
+ get: () => ShellScrollState;
19
+ subscribe: (listener: (state: ShellScrollState) => void) => () => void;
20
+ };
21
+ /** Where a tracker publishes each new state; {@link createScrollStore} makes one. */
22
+ export type ShellScrollPublisher = {
23
+ publish: (state: ShellScrollState) => void;
24
+ };
25
+ /** A {@link ShellScrollStore} holding `IDLE` until `publish` is called. */
26
+ export declare function createScrollStore(): ShellScrollStore & {
27
+ publish: (state: ShellScrollState) => void;
28
+ };
29
+ /** The store {@link ShellScrollProvider} provides; `null` outside one (idle). */
30
+ export declare const ShellScrollStoreContext: import('react').Context<ShellScrollStore | null>;
31
+ /** The shell's scroll store, or `null` outside a provider. */
32
+ export declare function useShellScrollStore(): ShellScrollStore | null;
11
33
  /** The shell's scroll state; idle outside a {@link ShellScrollProvider}. */
12
34
  export declare const ShellScrollContext: import('react').Context<ShellScrollState>;
13
35
  /** The shell's scroll direction and offset, for a header or bar that hides on scroll. */
@@ -25,7 +47,7 @@ export type ShellScrollOptions = {
25
47
  * only after `threshold` px of movement the other way (hysteresis). Idle on
26
48
  * the server and until mounted.
27
49
  */
28
- export declare function useScrollTracker({ container, threshold, enabled, }?: ShellScrollOptions): ShellScrollState;
50
+ export declare function useScrollTracker({ container, threshold, enabled }?: ShellScrollOptions, publisher?: ShellScrollPublisher): ShellScrollState;
29
51
  /** Provides {@link useShellScroll} for one scroller (the window, or `container`). */
30
52
  export declare function ShellScrollProvider({ children, ...options }: ShellScrollOptions & {
31
53
  children: ReactNode;
@@ -0,0 +1,10 @@
1
+ import { ShellTopAppBarProps } from './shell-top-app-bar.types.js';
2
+ export type { ShellTopAppBarProps } from './shell-top-app-bar.types.js';
3
+ /**
4
+ * The shell's bar, drawn with {@link TopAppBar}: the menu (a phone's burger,
5
+ * leading the bar) and the back arrow, the titles, the search, the actions
6
+ * and the account. `ActivityLayout` draws it as the page's `<header>`
7
+ * (banner); {@link useHeaderScroll} drives its collapse, its scrolled tint
8
+ * and its slide away.
9
+ */
10
+ export declare function ShellTopAppBar({ className, size: sizeProp, align, collapse, hideOnScroll, title, titleId, subtitle, titleAfter, headline, tabs, search, actions, primaryAction, avatar, as, headerTitle, children, ...leading }: ShellTopAppBarProps): import("react").JSX.Element;
@@ -0,0 +1,58 @@
1
+ import { ReactNode, RefObject } from 'react';
2
+ import { TopAppBarSize } from '../app-bar/top-app-bar/top-app-bar.types.js';
3
+ import { ShellTopAppBarProps } from './shell-top-app-bar.types.js';
4
+ /** The shell's bar keeps the `data-slot` names it always had (a planned rename waits for the next major). */
5
+ export declare const SLOT_NAMES: {
6
+ readonly title: "app-header-page-title";
7
+ readonly titleBlock: "app-header-page-title-row";
8
+ readonly subtitle: "app-header-context";
9
+ readonly headline: "app-header-headline";
10
+ readonly collapsedTitle: "app-header-collapsed-title";
11
+ readonly tabs: "app-header-tabs";
12
+ };
13
+ /**
14
+ * The attributes the shell's bar carries for its state: the tabs, the
15
+ * collapse, the slide away (with tabs the bar stays on screen, so only its rows
16
+ * go inert), and the `data-variant` develop drew on a small bar that hides or
17
+ * has tabs (a plain small bar had none).
18
+ */
19
+ export declare function barState({ size, align, hideOnScroll, collapses, hidden, hasTabs, }: {
20
+ size: TopAppBarSize;
21
+ align: 'start' | 'center';
22
+ hideOnScroll: boolean;
23
+ collapses: boolean;
24
+ hidden: boolean;
25
+ hasTabs: boolean;
26
+ }): {
27
+ 'data-collapsible': true | undefined;
28
+ 'data-hidden': true | undefined;
29
+ inert: true | undefined;
30
+ 'data-variant'?: string | undefined;
31
+ 'data-tabs': true | undefined;
32
+ };
33
+ /** The tab row at the foot of the bar: its height is `--nxgt-header-tabs` (app-header.css). */
34
+ export declare function HeaderTabs({ children }: {
35
+ children: ReactNode;
36
+ }): import("react").JSX.Element;
37
+ type LeadingProps = Pick<ShellTopAppBarProps, 'back' | 'items' | 'linkComponent' | 'brand' | 'logo' | 'name' | 'context' | 'menuOpen' | 'onMenuOpenChange' | 'showMenuIcon' | 'topNav'>;
38
+ /** The start of the row: the back arrow, the phone's menu button, the top navigation and the leading title. */
39
+ export declare function ShellBarLeading({ back, items, linkComponent, brand, logo, name, context, menuOpen, onMenuOpenChange, showMenuIcon, topNav, }: LeadingProps): import("react").JSX.Element;
40
+ /**
41
+ * What the bar derives from its options and the shell's scroll: the size it
42
+ * draws (a medium or large one without a title is a small one), whether it
43
+ * collapses, whether it has slid away, and the hooks that drive it.
44
+ */
45
+ export declare function useShellBarState(bar: RefObject<HTMLElement | null>, { size: sizeProp, collapse, hideOnScroll, titled, tabs, }: {
46
+ size: TopAppBarSize;
47
+ collapse: boolean;
48
+ hideOnScroll: boolean;
49
+ titled: boolean;
50
+ tabs: ReactNode;
51
+ }): {
52
+ size: TopAppBarSize;
53
+ collapses: boolean;
54
+ hidden: boolean;
55
+ hasTabs: boolean;
56
+ named: boolean;
57
+ };
58
+ export {};
@@ -0,0 +1,26 @@
1
+ import { ReactNode } from 'react';
2
+ import { TopAppBarAlign, TopAppBarPrimaryAction, TopAppBarSize } from '../app-bar/top-app-bar/top-app-bar.types.js';
3
+ import { AppHeaderProps } from './app-header.js';
4
+ export type ShellTopAppBarProps = Omit<AppHeaderProps, 'variant' | 'headline' | 'children'> & {
5
+ /** The bar's size. @default 'small' */
6
+ size?: TopAppBarSize;
7
+ /** Where a small bar puts its title. @default 'start' */
8
+ align?: TopAppBarAlign;
9
+ /** The page's heading, the bar's one `h1`. */
10
+ title?: ReactNode;
11
+ titleId?: string;
12
+ /** The muted line under the title (the tenant); hidden on a phone, where the menu sheet carries it. */
13
+ subtitle?: ReactNode;
14
+ /** Right after the title, outside the `h1`. */
15
+ titleAfter?: ReactNode;
16
+ /** The leading title (the active organisation), beside the menu; not a heading. */
17
+ headerTitle?: ReactNode;
18
+ /** The screen's main action: a `Button` from 768 px, a `Fab` on a phone. */
19
+ primaryAction?: TopAppBarPrimaryAction;
20
+ /** The deprecated `headline` of `AppHeader`: a title in a non-heading element. */
21
+ headline?: ReactNode;
22
+ /** `'header'` (the shell's bar, the page's banner) or `'div'`. @default 'header' */
23
+ as?: 'header' | 'div';
24
+ /** After the titles, before the actions. */
25
+ children?: ReactNode;
26
+ };
@@ -1,19 +1,26 @@
1
1
  import { RefObject } from 'react';
2
- /** The CSS variable app-header.css reads: 0 expanded, 1 collapsed. */
2
+ /** The CSS variable top-app-bar-collapse.css reads: 0 expanded, 1 collapsed. */
3
3
  export declare const PROGRESS_VAR = "--nxgt-header-progress";
4
+ /** The CSS variable holding the headline row's measured height, in px. */
5
+ export declare const EXTRA_VAR = "--nxgt-header-extra";
4
6
  /**
5
- * Drives an app bar from the shell's scroll ({@link useShellScroll}, the
6
- * window or the content region): how far its headline has collapsed, set as a
7
- * CSS variable on the element (never an inline style string), and whether it
8
- * has slid away. Idle (expanded, shown) on the server, outside a provider and
9
- * before mount. Focus inside a bar that goes away moves out and comes back ({@link useFocusWhileHidden}).
7
+ * Drives an app bar from the shell's scroll ({@link useShellScrollStore}, the
8
+ * window or the content region): how far its headline has collapsed, whether
9
+ * the page has scrolled at all, and whether the bar has slid away.
10
+ *
11
+ * The collapse and the scrolled tint are written straight to the element
12
+ * (`--nxgt-header-progress` through the CSSOM, `data-scrolled` as an
13
+ * attribute), so a frame of scrolling renders nothing; only `hidden`, which
14
+ * changes rarely, is React state. The collapse takes the headline row's
15
+ * measured height (`--nxgt-header-extra`, kept current by a
16
+ * `ResizeObserver`); `range` is the height used until it is measured. Under
17
+ * reduced motion the collapse snaps. Idle (expanded, not scrolled, shown) on
18
+ * the server, outside a provider and before mount. Focus inside a bar that goes away moves out and comes back ({@link useFocusWhileHidden}).
10
19
  */
11
20
  export declare function useHeaderScroll(ref: RefObject<HTMLElement | null>, { range, hideOnScroll, }: {
12
- /** Px of scroll the collapse takes; 0: the bar does not collapse. */
21
+ /** Px of scroll the collapse takes before the headline is measured; 0: the bar does not collapse. */
13
22
  range: number;
14
23
  hideOnScroll: boolean;
15
24
  }): {
16
- progress: number;
17
25
  hidden: boolean;
18
- collapsed: boolean;
19
26
  };
@@ -15,6 +15,6 @@ export declare function useShellBack(): ShellBack | undefined;
15
15
  * `data-header-tabs`.
16
16
  */
17
17
  export declare function useHeaderRootAttributes(header?: ShellHeaderInput): {
18
- 'data-header': import('./activity-layout-navigation.types.js').ShellHeaderVariant | undefined;
18
+ 'data-header': "center" | "small" | "none" | "medium" | "large" | undefined;
19
19
  'data-header-tabs': string | undefined;
20
20
  };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Tells a mouse press from keyboard focus. A press focuses the tab on
3
+ * mousedown; revealing it then moves it from under the pointer before the
4
+ * release and the click is lost (#2539). So `pressed()` is true from the
5
+ * pointer going down to it going up (the focus reveal is skipped), and the
6
+ * tab is revealed on its click instead.
7
+ */
8
+ export declare function trackPress(list: HTMLElement, tabSelector: string, reveal: (tab: HTMLElement) => void): {
9
+ pressed: () => boolean;
10
+ dispose(): void;
11
+ };
@@ -1537,6 +1537,10 @@ export declare const en: {
1537
1537
  badge: string;
1538
1538
  "badge-dot": string;
1539
1539
  };
1540
+ "top-app-bar": {
1541
+ account: string;
1542
+ more: string;
1543
+ };
1540
1544
  "app-header": {
1541
1545
  back: string;
1542
1546
  "back-to": string;
@@ -1527,6 +1527,10 @@ declare const _default: {
1527
1527
  "badge": "{count} new",
1528
1528
  "badge-dot": "new activity"
1529
1529
  },
1530
+ "top-app-bar": {
1531
+ "account": "Account menu",
1532
+ "more": "More"
1533
+ },
1530
1534
  "app-header": {
1531
1535
  "back": "Back",
1532
1536
  "back-to": "Back to {label}",
@@ -1537,6 +1537,10 @@ export declare const fr: {
1537
1537
  badge: string;
1538
1538
  "badge-dot": string;
1539
1539
  };
1540
+ "top-app-bar": {
1541
+ account: string;
1542
+ more: string;
1543
+ };
1540
1544
  "app-header": {
1541
1545
  back: string;
1542
1546
  "back-to": string;
@@ -1527,6 +1527,10 @@ declare const _default: {
1527
1527
  "badge": "{count, plural, one {# nouveauté} other {# nouveautés}}",
1528
1528
  "badge-dot": "nouveauté"
1529
1529
  },
1530
+ "top-app-bar": {
1531
+ "account": "Menu du compte",
1532
+ "more": "Plus"
1533
+ },
1530
1534
  "app-header": {
1531
1535
  "back": "Retour",
1532
1536
  "back-to": "Retour à {label}",
@@ -1535,6 +1535,10 @@ export declare const resources: {
1535
1535
  badge: string;
1536
1536
  "badge-dot": string;
1537
1537
  };
1538
+ "top-app-bar": {
1539
+ account: string;
1540
+ more: string;
1541
+ };
1538
1542
  "app-header": {
1539
1543
  back: string;
1540
1544
  "back-to": string;
@@ -5052,6 +5056,10 @@ export declare const resources: {
5052
5056
  badge: string;
5053
5057
  "badge-dot": string;
5054
5058
  };
5059
+ "top-app-bar": {
5060
+ account: string;
5061
+ more: string;
5062
+ };
5055
5063
  "app-header": {
5056
5064
  back: string;
5057
5065
  "back-to": string;