@foris/avocado-suite 1.14.1 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/avocado-suite.es.js +7942 -7882
- package/dist/avocado-suite.umd.js +161 -152
- package/dist/components/header-navigation/HeaderNavigation.d.ts +23 -6
- package/dist/components/header-navigation/headerNavigation.util.d.ts +3 -0
- package/dist/components/header-navigation/headerNavigation.util.test.d.ts +1 -0
- package/dist/components/header-navigation/index.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FC, HTMLAttributes } from 'react';
|
|
1
|
+
import type { FC, HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import type { Color, IconTypes } from '../../../../avocado-icons';
|
|
3
3
|
import { type BreadcrumbItem } from '../breadcrumbs/Breadcrumbs';
|
|
4
4
|
import type { MenuItem } from '../../types/menu.types';
|
|
@@ -26,20 +26,37 @@ export type HeaderNavigationImageBackground = {
|
|
|
26
26
|
*/
|
|
27
27
|
overlayColor?: string;
|
|
28
28
|
};
|
|
29
|
+
/** Overflow actions shown at the end of the title row. */
|
|
30
|
+
export type HeaderNavigationMenu = {
|
|
31
|
+
items: MenuItem[];
|
|
32
|
+
/** Accessible name for the trigger; defaults to the page title. */
|
|
33
|
+
label?: string;
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
};
|
|
29
36
|
export type HeaderNavigationBackground = 'default' | 'brand' | HeaderNavigationImageBackground;
|
|
30
37
|
/** Reusable page navigation, with content and actions supplied by its host. */
|
|
31
38
|
export interface HeaderNavigationProps extends HTMLAttributes<HTMLElement> {
|
|
32
39
|
/** Page title, rendered as the primary heading. */
|
|
33
40
|
title: string;
|
|
34
|
-
/** Optional
|
|
35
|
-
|
|
41
|
+
/** Optional content shown above the title, below the breadcrumbs. */
|
|
42
|
+
topLabel?: ReactNode;
|
|
43
|
+
/** Optional content right after the title text, e.g. an info button. */
|
|
44
|
+
titleTrailing?: ReactNode;
|
|
45
|
+
/** Optional content at the end of the title row, e.g. view toggles. */
|
|
46
|
+
titleActions?: ReactNode;
|
|
47
|
+
/** Optional supporting copy below the title: text or inline content. */
|
|
48
|
+
description?: ReactNode;
|
|
36
49
|
/** Navigation hierarchy; mobile shows the parent page. */
|
|
37
|
-
|
|
50
|
+
breadcrumbs?: BreadcrumbItem[];
|
|
38
51
|
/** Optional overflow actions, without product-specific routing. */
|
|
52
|
+
menu?: HeaderNavigationMenu;
|
|
53
|
+
/** @deprecated Use `breadcrumbs`. */
|
|
54
|
+
breadcrumbsItems?: BreadcrumbItem[];
|
|
55
|
+
/** @deprecated Use `menu.items`. */
|
|
39
56
|
menuItems?: MenuItem[];
|
|
40
|
-
/**
|
|
57
|
+
/** @deprecated Use `menu.label`. */
|
|
41
58
|
menuLabel?: string;
|
|
42
|
-
/**
|
|
59
|
+
/** @deprecated Use `menu.disabled`. */
|
|
43
60
|
menuDisabled?: boolean;
|
|
44
61
|
/** Gray by default, brand blue, or a full-bleed hero photograph. */
|
|
45
62
|
background?: HeaderNavigationBackground;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from './HeaderNavigation';
|
|
2
|
-
export type { HeaderNavigationBackground, HeaderNavigationImageBackground, HeaderNavigationProps, HeaderNavigationVisual, } from './HeaderNavigation';
|
|
2
|
+
export type { HeaderNavigationBackground, HeaderNavigationImageBackground, HeaderNavigationMenu, HeaderNavigationProps, HeaderNavigationVisual, } from './HeaderNavigation';
|
package/dist/index.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ export type { BarChartProps, BarChartReferenceLine, BarChartSeries, } from './co
|
|
|
91
91
|
export type { DonutProps, DonutSegment, DonutSize, DonutCenterMode, IDonutItem, } from './components/donut/Donut';
|
|
92
92
|
export { toDonutLegendItems } from './components/donut/donut.util';
|
|
93
93
|
export type { HeadingProps } from './components/heading/Heading';
|
|
94
|
-
export type { HeaderNavigationBackground, HeaderNavigationImageBackground, HeaderNavigationProps, HeaderNavigationVisual, } from './components/header-navigation';
|
|
94
|
+
export type { HeaderNavigationBackground, HeaderNavigationImageBackground, HeaderNavigationMenu, HeaderNavigationProps, HeaderNavigationVisual, } from './components/header-navigation';
|
|
95
95
|
export type { ContextualNavigationProps, ContextualNavigationItem, } from './components/contextual-navigation';
|
|
96
96
|
export type { LinkProps } from './components/link/Link';
|
|
97
97
|
export type { LineChartProps, LineChartRow, LineChartSeries, LineChartVariant, LineChartCurveType, LineChartReference, } from './components/line-chart';
|