@arc-ui/components 12.0.0-beta.20 → 12.0.0-beta.22
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/lib/Alert/Alert.cjs +40 -14
- package/lib/Alert/Alert.mjs +41 -15
- package/lib/Alert/styles.css +1 -1
- package/lib/Align/styles.css +1 -1
- package/lib/AppButton/styles.css +1 -1
- package/lib/Avatar/styles.css +1 -1
- package/lib/AvatarGroup/styles.css +1 -1
- package/lib/Badge/styles.css +1 -1
- package/lib/Banner/Banner.cjs +2 -2
- package/lib/Banner/Banner.mjs +2 -2
- package/lib/Box/styles.css +1 -1
- package/lib/BrandLogo/styles.css +1 -1
- package/lib/Breadcrumbs/Breadcrumbs.cjs +2 -1
- package/lib/Breadcrumbs/Breadcrumbs.mjs +2 -1
- package/lib/Breadcrumbs/styles.css +1 -1
- package/lib/Button/styles.css +1 -1
- package/lib/ButtonGroup/styles.css +1 -1
- package/lib/ButtonV2/styles.css +1 -1
- package/lib/Calendar/Calendar.cjs +2 -2
- package/lib/Calendar/Calendar.mjs +2 -2
- package/lib/Calendar/styles.css +1 -1
- package/lib/CardFooter/styles.css +1 -1
- package/lib/CardHeading/styles.css +1 -1
- package/lib/Carousel/Carousel.cjs +1 -1
- package/lib/Carousel/Carousel.mjs +1 -1
- package/lib/Carousel/styles.css +1 -1
- package/lib/Checkbox/styles.css +1 -1
- package/lib/Columns/styles.css +1 -1
- package/lib/ComboBox/styles.css +1 -1
- package/lib/ContentSwitcher/ContentSwitcher.cjs +3 -2
- package/lib/ContentSwitcher/ContentSwitcher.mjs +3 -2
- package/lib/ContentSwitcher/styles.css +1 -1
- package/lib/ContentSwitcherDropdown/styles.css +1 -1
- package/lib/DatePicker/DatePicker.cjs +3 -3
- package/lib/DatePicker/DatePicker.mjs +4 -4
- package/lib/DatePicker/styles.css +1 -1
- package/lib/Disclosure/styles.css +1 -1
- package/lib/DisclosureMini/styles.css +1 -1
- package/lib/Download/styles.css +1 -1
- package/lib/Drawer/Drawer.cjs +2 -18
- package/lib/Drawer/Drawer.mjs +3 -19
- package/lib/Drawer/styles.css +1 -1
- package/lib/Elevation/styles.css +1 -1
- package/lib/Filter/styles.css +1 -1
- package/lib/FormControl/styles.css +1 -1
- package/lib/GhostedHeroBanner/styles.css +1 -1
- package/lib/GradientPageBackground/GradientPageBackground.cjs +1 -1
- package/lib/GradientPageBackground/GradientPageBackground.mjs +1 -1
- package/lib/GradientPageBackground/styles.css +1 -1
- package/lib/Grid/styles.css +1 -1
- package/lib/Group/styles.css +1 -1
- package/lib/Heading/styles.css +1 -1
- package/lib/HeroBanner/HeroBanner.cjs +2 -2
- package/lib/HeroBanner/HeroBanner.mjs +2 -2
- package/lib/HeroBanner/styles.css +1 -1
- package/lib/HeroButton/styles.css +1 -1
- package/lib/Hidden/Hidden.cjs +6 -14
- package/lib/Hidden/Hidden.mjs +4 -16
- package/lib/Hidden/styles.css +1 -1
- package/lib/HorizontalCard/styles.css +1 -1
- package/lib/Icon/styles.css +1 -1
- package/lib/Image/styles.css +1 -1
- package/lib/ImpactCard/styles.css +1 -1
- package/lib/InformationCard/InformationCard.cjs +6 -22
- package/lib/InformationCard/InformationCard.mjs +4 -20
- package/lib/InformationCard/styles.css +1 -1
- package/lib/Link/Link.cjs +8 -51
- package/lib/Link/Link.mjs +7 -54
- package/lib/Link/styles.css +1 -1
- package/lib/Markup/styles.css +1 -1
- package/lib/MediaCard/styles.css +1 -1
- package/lib/Menu/Menu.cjs +1 -1
- package/lib/Menu/Menu.mjs +1 -1
- package/lib/Menu/styles.css +1 -1
- package/lib/Modal/styles.css +1 -1
- package/lib/NavigationHeader/NavigationHeader.cjs +687 -0
- package/lib/NavigationHeader/NavigationHeader.mjs +682 -0
- package/lib/NavigationHeader/styles.css +1 -0
- package/lib/Pagination/styles.css +1 -1
- package/lib/PaginationSimple/styles.css +1 -1
- package/lib/Popover/Popover.cjs +9 -26
- package/lib/Popover/Popover.mjs +7 -28
- package/lib/Popover/styles.css +1 -1
- package/lib/Poster/styles.css +1 -1
- package/lib/ProgressBar/styles.css +1 -1
- package/lib/ProgressStepper/styles.css +1 -1
- package/lib/ProgressStepperOverflow/ProgressStepperOverflow.cjs +3 -2
- package/lib/ProgressStepperOverflow/ProgressStepperOverflow.mjs +3 -2
- package/lib/ProgressStepperOverflow/styles.css +1 -1
- package/lib/RadioCardGroup/styles.css +1 -1
- package/lib/RadioGroup/styles.css +1 -1
- package/lib/Rule/styles.css +1 -1
- package/lib/ScrollToTop/ScrollToTop.cjs +2 -1
- package/lib/ScrollToTop/ScrollToTop.mjs +2 -1
- package/lib/ScrollToTop/styles.css +1 -1
- package/lib/Section/styles.css +1 -1
- package/lib/Select/styles.css +1 -1
- package/lib/SiteFooter/SiteFooter.cjs +2 -2
- package/lib/SiteFooter/SiteFooter.mjs +2 -2
- package/lib/SiteFooter/styles.css +1 -1
- package/lib/SiteFooterV2/SiteFooterV2.cjs +2 -2
- package/lib/SiteFooterV2/SiteFooterV2.mjs +2 -2
- package/lib/SiteFooterV2/styles.css +1 -1
- package/lib/SiteHeaderV2/SiteHeaderV2.cjs +2 -2
- package/lib/SiteHeaderV2/SiteHeaderV2.mjs +3 -3
- package/lib/SiteHeaderV2/styles.css +1 -1
- package/lib/Skeleton/styles.css +1 -1
- package/lib/SkipLink/styles.css +1 -1
- package/lib/Spinner/styles.css +1 -1
- package/lib/Surface/styles.css +1 -1
- package/lib/Switch/styles.css +1 -1
- package/lib/TabbedBanner/TabbedBanner.cjs +23 -34
- package/lib/TabbedBanner/TabbedBanner.mjs +25 -36
- package/lib/TabbedBanner/styles.css +1 -1
- package/lib/Tabs/Tabs.cjs +2 -2
- package/lib/Tabs/Tabs.mjs +2 -2
- package/lib/Tabs/styles.css +1 -1
- package/lib/Tag/styles.css +1 -1
- package/lib/TemplateBanner/TemplateBanner.cjs +2 -2
- package/lib/TemplateBanner/TemplateBanner.mjs +2 -2
- package/lib/TemplateBanner/styles.css +1 -1
- package/lib/Text/styles.css +1 -1
- package/lib/TextArea/TextArea.cjs +9 -7
- package/lib/TextArea/TextArea.mjs +9 -7
- package/lib/TextArea/styles.css +1 -1
- package/lib/TextInput/styles.css +1 -1
- package/lib/Theme/Theme.cjs +1 -1
- package/lib/Theme/Theme.mjs +1 -1
- package/lib/Theme/styles.css +1 -1
- package/lib/ThemeIcon/styles.css +1 -1
- package/lib/ThumbnailSignpost/styles.css +1 -1
- package/lib/Toast/styles.css +1 -1
- package/lib/Tooltip/Tooltip.cjs +11 -1363
- package/lib/Tooltip/Tooltip.mjs +10 -1348
- package/lib/Tooltip/styles.css +1 -1
- package/lib/Truncate/styles.css +1 -1
- package/lib/TypographyCard/styles.css +1 -1
- package/lib/UniversalHeader/styles.css +1 -1
- package/lib/VerticalSpace/styles.css +1 -1
- package/lib/VideoPlayer/styles.css +1 -1
- package/lib/Visible/Visible.cjs +1 -1
- package/lib/Visible/Visible.mjs +1 -1
- package/lib/Visible/styles.css +1 -1
- package/lib/VisuallyHidden/styles.css +1 -1
- package/lib/_shared/cjs/{Calendar-D4ZSaHHU.cjs → Calendar-B-va25n2.cjs} +1 -1
- package/lib/_shared/cjs/{ContentSwitcherList-nlxMHXs-.cjs → ContentSwitcherList-bCEzIPN2.cjs} +3 -3
- package/lib/_shared/cjs/{DatePicker-DS6fAvxD.cjs → DatePicker-Dt4faA_N.cjs} +1 -1
- package/lib/_shared/cjs/Hidden-Vsv1-xWO.cjs +19 -0
- package/lib/_shared/cjs/Link-7xUgVf1I.cjs +48 -0
- package/lib/_shared/cjs/Popover-C5mmMkYU.cjs +31 -0
- package/lib/_shared/cjs/{ProgressStepperOverflow-v-TyS5Sp.cjs → ProgressStepperOverflow-BAGZNC26.cjs} +1 -1
- package/lib/_shared/cjs/{SiteHeaderV2NavItemWithSubNav-fQPk0gZU.cjs → SiteHeaderV2NavItemWithSubNav-CagFKPEa.cjs} +1 -1
- package/lib/_shared/cjs/{TemplateBanner-CGtTUy81.cjs → TemplateBanner-CImrJ9ON.cjs} +15 -4
- package/lib/_shared/cjs/Tooltip-BPHL0ELI.cjs +1378 -0
- package/lib/_shared/cjs/{Visible-Dx__9oZG.cjs → Visible-vchtZSfm.cjs} +2 -1
- package/lib/_shared/cjs/arc-breakpoints-DWUgmeLA.cjs +23 -0
- package/lib/_shared/cjs/{debounce-BeIT3oyF.cjs → debounce-uPMetQ6J.cjs} +4 -251
- package/lib/_shared/cjs/{index.es-DBEGtWPg.cjs → index.es-DlNskPlN.cjs} +1 -1
- package/lib/_shared/cjs/isSymbol-BGrHFUbV.cjs +255 -0
- package/lib/_shared/cjs/kebabCase-D5yA6u-V.cjs +743 -0
- package/lib/_shared/esm/{Calendar-CjqPM7ta.mjs → Calendar-Bd2_eT1Y.mjs} +1 -1
- package/lib/_shared/esm/{ContentSwitcherList-DKPD9GfN.mjs → ContentSwitcherList-bCQz0qkU.mjs} +3 -3
- package/lib/_shared/esm/{DatePicker-3sYJ3wGn.mjs → DatePicker-DT4OEzxP.mjs} +1 -1
- package/lib/_shared/esm/Hidden-DsrAaC0z.mjs +17 -0
- package/lib/_shared/esm/Link-Biyg9qBH.mjs +46 -0
- package/lib/_shared/esm/Popover-8FfvgL4c.mjs +29 -0
- package/lib/_shared/esm/{ProgressStepperOverflow-B9ba8ljs.mjs → ProgressStepperOverflow-fPkLltVO.mjs} +1 -1
- package/lib/_shared/esm/{SiteHeaderV2NavItemWithSubNav-BMoBdUxK.mjs → SiteHeaderV2NavItemWithSubNav-CxGwdV6u.mjs} +1 -1
- package/lib/_shared/esm/{TemplateBanner-Up6cR-3_.mjs → TemplateBanner-DeHjliNP.mjs} +15 -4
- package/lib/_shared/esm/Tooltip-Dc82Ht7G.mjs +1358 -0
- package/lib/_shared/esm/{Visible-C-jVXUWp.mjs → Visible-B13QJn7R.mjs} +2 -1
- package/lib/_shared/esm/arc-breakpoints-D5hR5m3t.mjs +21 -0
- package/lib/_shared/esm/{debounce-mCD9-ufA.mjs → debounce-D_Nx5go6.mjs} +2 -249
- package/lib/_shared/esm/{index.es-DCvYtQfu.mjs → index.es-C3WqfFKH.mjs} +1 -1
- package/lib/_shared/esm/isSymbol-DgWNE2Tm.mjs +251 -0
- package/lib/_shared/esm/kebabCase-CCEMRBfd.mjs +737 -0
- package/lib/index.cjs +2183 -792
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +393 -131
- package/lib/index.d.mts +393 -131
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +2181 -794
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +12 -8
- package/package.json +10 -8
package/lib/index.d.cts
CHANGED
|
@@ -28,25 +28,133 @@ interface AlignProps {
|
|
|
28
28
|
vertical?: "top" | "center" | "bottom";
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
/**
|
|
32
|
+
* Use `Link` to direct users to a new page or piece of information.
|
|
33
|
+
*/
|
|
34
|
+
declare const Link: React.FC<LinkProps$1>;
|
|
35
|
+
interface LinkProps$1 {
|
|
36
|
+
/**
|
|
37
|
+
* Id attribute for `Link`.
|
|
38
|
+
*/
|
|
39
|
+
id?: string;
|
|
40
|
+
/**
|
|
41
|
+
* href attribute for `Link`.
|
|
42
|
+
*/
|
|
43
|
+
href?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Screen reader text for `Link`, which is visually hidden.
|
|
46
|
+
*/
|
|
47
|
+
screenReaderText?: string;
|
|
48
|
+
/**
|
|
49
|
+
* title attribute for `Link`.
|
|
50
|
+
*/
|
|
51
|
+
title?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Rel attribute for `Link`.
|
|
54
|
+
*/
|
|
55
|
+
rel?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Configures the size of `Link`.
|
|
58
|
+
*/
|
|
59
|
+
size?: "s" | "m" | "l";
|
|
60
|
+
/**
|
|
61
|
+
* Removes underline if true.
|
|
62
|
+
*/
|
|
63
|
+
isImplied?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Renders as a button element if true.
|
|
66
|
+
*/
|
|
67
|
+
isButton?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Click handler for `Link`.
|
|
70
|
+
*/
|
|
71
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
72
|
+
/**
|
|
73
|
+
* Target for `Link`.
|
|
74
|
+
*/
|
|
75
|
+
target?: "_self" | "_blank" | "_parent" | "_top";
|
|
76
|
+
/**
|
|
77
|
+
* Content for `Link`.
|
|
78
|
+
*/
|
|
79
|
+
children: string;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Use `Heading` to display heading text.
|
|
84
|
+
*/
|
|
85
|
+
declare const Heading: FC<HeadingProps>;
|
|
86
|
+
type HeadingCasing = "auto" | "none";
|
|
87
|
+
type HeadingColor = "auto" | "brand";
|
|
88
|
+
type HeadingLevel = "1" | "2" | "3" | "4" | "5" | "6";
|
|
89
|
+
type HeadingSize = "xxxs" | "xxs" | "xs" | "s" | "m" | "l" | "xl" | "xxl" | "xxxl";
|
|
90
|
+
interface HeadingProps {
|
|
91
|
+
/**
|
|
92
|
+
* Text alignment of the Heading.
|
|
93
|
+
*/
|
|
94
|
+
align?: "left" | "center" | "right";
|
|
95
|
+
/**
|
|
96
|
+
* Typographic casing of the Heading.
|
|
97
|
+
*/
|
|
98
|
+
casing?: HeadingCasing;
|
|
99
|
+
/**
|
|
100
|
+
* Text and inline markup to display in the Heading.
|
|
101
|
+
*/
|
|
102
|
+
children: ReactNode;
|
|
103
|
+
/**
|
|
104
|
+
* The color of the Heading.
|
|
105
|
+
*/
|
|
106
|
+
color?: HeadingColor;
|
|
107
|
+
/**
|
|
108
|
+
* Id for the Heading.
|
|
109
|
+
*/
|
|
110
|
+
id?: string;
|
|
111
|
+
/**
|
|
112
|
+
* HTML section heading level. If not provided, the Heading will render as
|
|
113
|
+
* a span.
|
|
114
|
+
*/
|
|
115
|
+
level?: HeadingLevel;
|
|
116
|
+
/**
|
|
117
|
+
* Typographic size of the Heading.
|
|
118
|
+
*/
|
|
119
|
+
size?: HeadingSize;
|
|
120
|
+
/**
|
|
121
|
+
* Whether the Heading is displayed inline.
|
|
122
|
+
*/
|
|
123
|
+
isInline?: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Determine if the heading should change size depending on the breakpoint. Default is `true`
|
|
126
|
+
*/
|
|
127
|
+
isResponsive?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Changes the Heading font family. Please note `dottee` fonts will only work when theme is set to `ee`
|
|
130
|
+
*/
|
|
131
|
+
fontStyle?: "default" | "display-standard" | "display-condensed" | "display-extended" | "overline";
|
|
132
|
+
}
|
|
133
|
+
|
|
31
134
|
/** Use `Alert` to inform the user of important changes or actions. */
|
|
32
135
|
declare const Alert: FC<AlertProps>;
|
|
136
|
+
type AlertLinkProps = Omit<LinkProps$1, "size" | "isImplied">;
|
|
33
137
|
interface AlertProps {
|
|
34
138
|
/**
|
|
35
139
|
* Determine a heading for `<Alert />`
|
|
36
140
|
*/
|
|
37
141
|
heading: string;
|
|
142
|
+
/**
|
|
143
|
+
* Determine a level for the heading`
|
|
144
|
+
*/
|
|
145
|
+
headingLevel: HeadingLevel;
|
|
38
146
|
/**
|
|
39
147
|
* Determine a description for `<Alert />`
|
|
40
148
|
*/
|
|
41
149
|
description?: string | ReactNode;
|
|
42
150
|
/**
|
|
43
|
-
*
|
|
151
|
+
* Should the description width be constrained to a typographic measure?
|
|
44
152
|
*/
|
|
45
|
-
|
|
153
|
+
isMeasured?: boolean;
|
|
46
154
|
/**
|
|
47
|
-
* Determine
|
|
155
|
+
* Determine array of links for `<Alert />`. link type `LinkProps` omit `size` & `isImplied`.
|
|
48
156
|
*/
|
|
49
|
-
|
|
157
|
+
links?: AlertLinkProps[];
|
|
50
158
|
/**
|
|
51
159
|
* Determine a icon to display within `<Alert />`. This overrides the default icons.
|
|
52
160
|
*/
|
|
@@ -64,14 +172,9 @@ interface AlertProps {
|
|
|
64
172
|
*/
|
|
65
173
|
onDismiss?: () => void;
|
|
66
174
|
/**
|
|
67
|
-
*
|
|
175
|
+
* Focus will be set on the alert when the component mounts, defaults to false.
|
|
68
176
|
*/
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Text to override `linkText` with additional, more precise information
|
|
72
|
-
* specifically for screen reader users.
|
|
73
|
-
*/
|
|
74
|
-
linkAriaLabel?: string;
|
|
177
|
+
autoFocusOnMount?: boolean;
|
|
75
178
|
}
|
|
76
179
|
type AlertStatus = "general" | "error" | "warning" | "success";
|
|
77
180
|
|
|
@@ -230,58 +333,6 @@ interface BadgeProps {
|
|
|
230
333
|
ariaRole?: "status" | "alert";
|
|
231
334
|
}
|
|
232
335
|
|
|
233
|
-
/**
|
|
234
|
-
* Use `Heading` to display heading text.
|
|
235
|
-
*/
|
|
236
|
-
declare const Heading: FC<HeadingProps>;
|
|
237
|
-
type HeadingCasing = "auto" | "none";
|
|
238
|
-
type HeadingColor = "auto" | "brand";
|
|
239
|
-
type HeadingLevel = "1" | "2" | "3" | "4" | "5" | "6";
|
|
240
|
-
type HeadingSize = "xxxs" | "xxs" | "xs" | "s" | "m" | "l" | "xl" | "xxl" | "xxxl";
|
|
241
|
-
interface HeadingProps {
|
|
242
|
-
/**
|
|
243
|
-
* Text alignment of the Heading.
|
|
244
|
-
*/
|
|
245
|
-
align?: "left" | "center" | "right";
|
|
246
|
-
/**
|
|
247
|
-
* Typographic casing of the Heading.
|
|
248
|
-
*/
|
|
249
|
-
casing?: HeadingCasing;
|
|
250
|
-
/**
|
|
251
|
-
* Text and inline markup to display in the Heading.
|
|
252
|
-
*/
|
|
253
|
-
children: ReactNode;
|
|
254
|
-
/**
|
|
255
|
-
* The color of the Heading.
|
|
256
|
-
*/
|
|
257
|
-
color?: HeadingColor;
|
|
258
|
-
/**
|
|
259
|
-
* Id for the Heading.
|
|
260
|
-
*/
|
|
261
|
-
id?: string;
|
|
262
|
-
/**
|
|
263
|
-
* HTML section heading level. If not provided, the Heading will render as
|
|
264
|
-
* a span.
|
|
265
|
-
*/
|
|
266
|
-
level?: HeadingLevel;
|
|
267
|
-
/**
|
|
268
|
-
* Typographic size of the Heading.
|
|
269
|
-
*/
|
|
270
|
-
size?: HeadingSize;
|
|
271
|
-
/**
|
|
272
|
-
* Whether the Heading is displayed inline.
|
|
273
|
-
*/
|
|
274
|
-
isInline?: boolean;
|
|
275
|
-
/**
|
|
276
|
-
* Determine if the heading should change size depending on the breakpoint. Default is `true`
|
|
277
|
-
*/
|
|
278
|
-
isResponsive?: boolean;
|
|
279
|
-
/**
|
|
280
|
-
* Changes the Heading font family. Please note `dottee` fonts will only work when theme is set to `ee`
|
|
281
|
-
*/
|
|
282
|
-
fontStyle?: "default" | "display-standard" | "display-condensed" | "display-extended" | "overline";
|
|
283
|
-
}
|
|
284
|
-
|
|
285
336
|
interface BannerImageProps extends Pick<ImageProps, "src" | "alt" | "loading" | "sizes" | "srcSet" | "width" | "height" | "fadeOnLoad" | "fit"> {
|
|
286
337
|
ariaHidden?: boolean;
|
|
287
338
|
sources?: Pick<ImageSourceProps, "media" | "sizes" | "srcSet">[];
|
|
@@ -308,9 +359,24 @@ interface TemplateBannerProps {
|
|
|
308
359
|
*/
|
|
309
360
|
img?: TemplateBannerImage;
|
|
310
361
|
/**
|
|
311
|
-
* Provides a
|
|
362
|
+
* Provides a minimum height for the TemplateBanner. (px value)
|
|
363
|
+
*/
|
|
364
|
+
minHeight?: number;
|
|
365
|
+
/**
|
|
366
|
+
* The minimum height of the TemplateBanner for the M breakpoint. (px value)
|
|
367
|
+
* Active when viewport width is between 768px and 1023px.
|
|
368
|
+
*/
|
|
369
|
+
minHeightM?: number;
|
|
370
|
+
/**
|
|
371
|
+
* The minimum height of the TemplateBanner for the L breakpoint. (px value)
|
|
372
|
+
* Active when viewport width is between 1024px and 1279px.
|
|
373
|
+
*/
|
|
374
|
+
minHeightL?: number;
|
|
375
|
+
/**
|
|
376
|
+
* The minimum height of the TemplateBanner for the XL breakpoint. (px value)
|
|
377
|
+
* Active when viewport width is 1280px and above
|
|
312
378
|
*/
|
|
313
|
-
|
|
379
|
+
minHeightXL?: number;
|
|
314
380
|
/**
|
|
315
381
|
* If true the image will appear on the left and the content will be on the right. Doesn't apply to mobile devices.
|
|
316
382
|
*/
|
|
@@ -351,6 +417,10 @@ interface TemplateBannerProps {
|
|
|
351
417
|
* Add Additional top margin to banner
|
|
352
418
|
*/
|
|
353
419
|
additionalTopMargin?: boolean;
|
|
420
|
+
/**
|
|
421
|
+
* If `true`, the element expands to match the full vertical height of its parent container.
|
|
422
|
+
*/
|
|
423
|
+
fullHeight?: boolean;
|
|
354
424
|
}
|
|
355
425
|
|
|
356
426
|
declare const Banner: FC<BannerProps>;
|
|
@@ -501,8 +571,8 @@ interface ItemProps$1 {
|
|
|
501
571
|
spacerIconBefore?: boolean;
|
|
502
572
|
}
|
|
503
573
|
|
|
504
|
-
declare const BreadcrumbsLink: FC<LinkProps
|
|
505
|
-
interface LinkProps
|
|
574
|
+
declare const BreadcrumbsLink: FC<LinkProps>;
|
|
575
|
+
interface LinkProps {
|
|
506
576
|
/**
|
|
507
577
|
* Render children of `breadcrumbs.link`
|
|
508
578
|
*/
|
|
@@ -1164,6 +1234,14 @@ interface ContentSwitcherContentProps {
|
|
|
1164
1234
|
* This value links the `ContentSwitcherContent` with `ContentSwitcherTab`
|
|
1165
1235
|
*/
|
|
1166
1236
|
value: string;
|
|
1237
|
+
/**
|
|
1238
|
+
* Apply a hidden attribute to `ContentSwitcherContent`. Inactive content is already visually hidden however this can be used to add a semantic hidden attribute.
|
|
1239
|
+
*/
|
|
1240
|
+
hidden?: boolean;
|
|
1241
|
+
/**
|
|
1242
|
+
* Force the contents of `ContentSwitcherContent` to be mounted and rendered in the DOM.
|
|
1243
|
+
*/
|
|
1244
|
+
forceMount?: boolean;
|
|
1167
1245
|
}
|
|
1168
1246
|
|
|
1169
1247
|
declare const ContentSwitcherList: FC<ContentSwitcherListProps>;
|
|
@@ -1273,7 +1351,7 @@ declare const DATE_FORMAT = "dd/MM/yyyy";
|
|
|
1273
1351
|
|
|
1274
1352
|
type AutoCompleteTypes = "on" | "off" | "name" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "country" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "email" | "impp" | "url" | "photo" | "organization-unit";
|
|
1275
1353
|
|
|
1276
|
-
declare const iconNames: readonly ["alertDismiss", "alertError", "alertGeneral", "alertSuccess", "alertWarning", "avatarUser", "breadcrumbLeft", "breadcrumbRight", "buttonLeft", "buttonRight", "cardButton", "carouselRight", "carouselLeft", "checkboxChecked", "checkboxError", "datePickerCalendar", "disclosureExpand", "disclosureMiniExpand", "downloadFile", "downloadAccessibility", "drawerClose", "formControlAlert", "modalClose", "paginationPrevious", "paginationNext", "paginationSimplePrevious", "paginationSimpleNext", "progressBarSuccess", "progressBarError", "progressBarRefresh", "progressStepperComplete", "progressStepperCurrent", "progressStepperWarning", "progressStepperError", "scrollToTop", "selectTrigger", "selectScrollUp", "selectScrollDown", "selectIndicator", "siteFooterExpand", "siteHeaderBack", "siteHeaderLink", "siteHeaderItemGroupExpand", "siteHeaderNavItemExpand", "siteHeaderNavItemExpandAlt", "siteHeaderViewAll", "siteHeaderSubNavOpen", "switchToggle", "tabsNext", "tabsPrevious", "tagRemove", "toastGeneral", "toastSuccess", "toastWarning", "toastError", "toastDismiss", "videoPlayerTranscript"];
|
|
1354
|
+
declare const iconNames: readonly ["alertDismiss", "alertError", "alertGeneral", "alertSuccess", "alertWarning", "avatarUser", "breadcrumbLeft", "breadcrumbRight", "buttonLeft", "buttonRight", "cardButton", "carouselRight", "carouselLeft", "checkboxChecked", "checkboxError", "datePickerCalendar", "disclosureExpand", "disclosureMiniExpand", "downloadFile", "downloadAccessibility", "drawerClose", "formControlAlert", "linkExternal", "modalClose", "navigationHeaderClose", "navigationHeaderDisclosure", "navigationHeaderMenuLinkSmall", "navigationHeaderMenuLinkLarge", "paginationPrevious", "paginationNext", "paginationSimplePrevious", "paginationSimpleNext", "progressBarSuccess", "progressBarError", "progressBarRefresh", "progressStepperComplete", "progressStepperCurrent", "progressStepperWarning", "progressStepperError", "scrollToTop", "selectTrigger", "selectScrollUp", "selectScrollDown", "selectIndicator", "siteFooterExpand", "siteHeaderBack", "siteHeaderBurger", "siteHeaderLink", "siteHeaderItemGroupExpand", "siteHeaderNavItemExpand", "siteHeaderNavItemExpandAlt", "siteHeaderViewAll", "siteHeaderSubNavOpen", "switchToggle", "tabsNext", "tabsPrevious", "tagRemove", "toastGeneral", "toastSuccess", "toastWarning", "toastError", "toastDismiss", "videoPlayerTranscript"];
|
|
1277
1355
|
|
|
1278
1356
|
declare const ThemeIcon: FC<ThemeIconProps>;
|
|
1279
1357
|
interface ThemeIconProps {
|
|
@@ -1957,13 +2035,17 @@ interface HeroButtonProps extends HeroButtonElementProps, LinkElementProps {
|
|
|
1957
2035
|
isLoading?: boolean;
|
|
1958
2036
|
}
|
|
1959
2037
|
|
|
1960
|
-
|
|
1961
|
-
interface HiddenProps {
|
|
2038
|
+
interface BreakpointVisibility {
|
|
1962
2039
|
xs?: boolean;
|
|
1963
2040
|
s?: boolean;
|
|
1964
2041
|
m?: boolean;
|
|
1965
2042
|
l?: boolean;
|
|
1966
2043
|
xl?: boolean;
|
|
2044
|
+
xxl?: boolean;
|
|
2045
|
+
}
|
|
2046
|
+
|
|
2047
|
+
declare const Hidden: React.FC<HiddenProps>;
|
|
2048
|
+
interface HiddenProps extends BreakpointVisibility {
|
|
1967
2049
|
children: React.ReactNode;
|
|
1968
2050
|
}
|
|
1969
2051
|
|
|
@@ -2171,57 +2253,6 @@ interface InformationCardProps {
|
|
|
2171
2253
|
minHeights?: minHeightsProps;
|
|
2172
2254
|
}
|
|
2173
2255
|
|
|
2174
|
-
/**
|
|
2175
|
-
* Use `Link` to direct users to a new page or piece of information.
|
|
2176
|
-
*/
|
|
2177
|
-
declare const Link: React.FC<LinkProps>;
|
|
2178
|
-
interface LinkProps {
|
|
2179
|
-
/**
|
|
2180
|
-
* Id attribute for `Link`.
|
|
2181
|
-
*/
|
|
2182
|
-
id?: string;
|
|
2183
|
-
/**
|
|
2184
|
-
* href attribute for `Link`.
|
|
2185
|
-
*/
|
|
2186
|
-
href?: string;
|
|
2187
|
-
/**
|
|
2188
|
-
* Screen reader text for `Link`, which is visually hidden.
|
|
2189
|
-
*/
|
|
2190
|
-
screenReaderText?: string;
|
|
2191
|
-
/**
|
|
2192
|
-
* title attribute for `Link`.
|
|
2193
|
-
*/
|
|
2194
|
-
title?: string;
|
|
2195
|
-
/**
|
|
2196
|
-
* Rel attribute for `Link`.
|
|
2197
|
-
*/
|
|
2198
|
-
rel?: string;
|
|
2199
|
-
/**
|
|
2200
|
-
* Configures the size of `Link`.
|
|
2201
|
-
*/
|
|
2202
|
-
size?: "s" | "m" | "l";
|
|
2203
|
-
/**
|
|
2204
|
-
* Removes underline if true.
|
|
2205
|
-
*/
|
|
2206
|
-
isImplied?: boolean;
|
|
2207
|
-
/**
|
|
2208
|
-
* Renders as a button element if true.
|
|
2209
|
-
*/
|
|
2210
|
-
isButton?: boolean;
|
|
2211
|
-
/**
|
|
2212
|
-
* Click handler for `Link`.
|
|
2213
|
-
*/
|
|
2214
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
2215
|
-
/**
|
|
2216
|
-
* Target for `Link`.
|
|
2217
|
-
*/
|
|
2218
|
-
target?: "_self" | "_blank" | "_parent" | "_top";
|
|
2219
|
-
/**
|
|
2220
|
-
* Content for `Link`.
|
|
2221
|
-
*/
|
|
2222
|
-
children: string;
|
|
2223
|
-
}
|
|
2224
|
-
|
|
2225
2256
|
/**
|
|
2226
2257
|
* Use `Markup` to display HTML-formatted text.
|
|
2227
2258
|
*/
|
|
@@ -2807,6 +2838,10 @@ interface PopoverProps {
|
|
|
2807
2838
|
* An offset in pixels from the "start" or "end" alignment options.
|
|
2808
2839
|
*/
|
|
2809
2840
|
alignOffset?: number;
|
|
2841
|
+
/**
|
|
2842
|
+
* Label for the trigger to be announced by screen readers
|
|
2843
|
+
*/
|
|
2844
|
+
ariaLabel?: string;
|
|
2810
2845
|
/**
|
|
2811
2846
|
* Content inside the Popover
|
|
2812
2847
|
*/
|
|
@@ -2859,6 +2894,15 @@ interface PopoverProps {
|
|
|
2859
2894
|
* Set to true if you want to use your own link or button for the trigger. If false it will wrap the children in a button.
|
|
2860
2895
|
*/
|
|
2861
2896
|
asChild?: boolean;
|
|
2897
|
+
/**
|
|
2898
|
+
* Whether to hide the content when the trigger becomes fully occluded.
|
|
2899
|
+
*/
|
|
2900
|
+
hideWhenDetached?: boolean;
|
|
2901
|
+
/**
|
|
2902
|
+
* This should never usually be needed, as the popover by default will either wrap the child element you pass in a button, or pass the props
|
|
2903
|
+
* to the root child element you provide if you set `asChild` to true. If you want to opt out of this behavior set this to true.
|
|
2904
|
+
*/
|
|
2905
|
+
useBespokeTrigger?: boolean;
|
|
2862
2906
|
}
|
|
2863
2907
|
|
|
2864
2908
|
/**
|
|
@@ -4072,14 +4116,25 @@ interface TabbedBannerProps {
|
|
|
4072
4116
|
*/
|
|
4073
4117
|
defaultValue?: string;
|
|
4074
4118
|
/**
|
|
4075
|
-
* The minimum height of
|
|
4119
|
+
* The minimum height of all banners at the M breakpoint and above.
|
|
4120
|
+
* Can be overridden by the specific breakpoint controls.
|
|
4076
4121
|
*/
|
|
4077
4122
|
minHeight?: TemplateBannerProps["minHeight"];
|
|
4078
4123
|
/**
|
|
4079
4124
|
* The minimum height of the banner for the M breakpoint.
|
|
4080
|
-
*
|
|
4125
|
+
* Active when viewport width is between 768px and 1023px.
|
|
4126
|
+
*/
|
|
4127
|
+
minHeightM?: TemplateBannerProps["minHeightM"];
|
|
4128
|
+
/**
|
|
4129
|
+
* The minimum height of the banner for the L breakpoint.
|
|
4130
|
+
* Active when viewport width is between 1024px and 1279px.
|
|
4131
|
+
*/
|
|
4132
|
+
minHeightL?: TemplateBannerProps["minHeightL"];
|
|
4133
|
+
/**
|
|
4134
|
+
* The minimum height of the banner for the XL breakpoint.
|
|
4135
|
+
* Active when viewport width is 1280px and above
|
|
4081
4136
|
*/
|
|
4082
|
-
|
|
4137
|
+
minHeightXL?: TemplateBannerProps["minHeightXL"];
|
|
4083
4138
|
}
|
|
4084
4139
|
|
|
4085
4140
|
/** Use `Tabs` to allow users to navigate between different sections of relevant content. */
|
|
@@ -4133,6 +4188,14 @@ interface TabsContentProps {
|
|
|
4133
4188
|
* This value links the `TabsContent` with `Tab`
|
|
4134
4189
|
*/
|
|
4135
4190
|
value: string;
|
|
4191
|
+
/**
|
|
4192
|
+
* Apply a hidden attribute to `TabsContent`. Inactive content is already visually hidden however this can be used to add a semantic hidden attribute.
|
|
4193
|
+
*/
|
|
4194
|
+
hidden?: boolean;
|
|
4195
|
+
/**
|
|
4196
|
+
* Force the contents of `TabsContent` to be mounted and rendered in the DOM.
|
|
4197
|
+
*/
|
|
4198
|
+
forceMount?: boolean;
|
|
4136
4199
|
}
|
|
4137
4200
|
|
|
4138
4201
|
declare const TabsList: FC<TabsListProps>;
|
|
@@ -4464,6 +4527,10 @@ interface TooltipProps {
|
|
|
4464
4527
|
* Z-index for the `Tooltip`. Used to fine tune the overlapping of other page elements.
|
|
4465
4528
|
*/
|
|
4466
4529
|
zIndex?: number;
|
|
4530
|
+
/**
|
|
4531
|
+
* Set to true if you want to use your own link or button for the trigger. If false it will wrap the children in a button.
|
|
4532
|
+
*/
|
|
4533
|
+
asChild?: boolean;
|
|
4467
4534
|
}
|
|
4468
4535
|
|
|
4469
4536
|
/** Use `Truncate` component to shorten text with an ellipsis. Add a `title` attribute to the truncated element so the full text remains accessible. */
|
|
@@ -4628,12 +4695,7 @@ interface VideoPlayerProps extends Pick<ReactPlayerProps, "onReady" | "onPlay" |
|
|
|
4628
4695
|
}
|
|
4629
4696
|
|
|
4630
4697
|
declare const Visible: React.FC<VisibleProps>;
|
|
4631
|
-
interface VisibleProps {
|
|
4632
|
-
xs?: boolean;
|
|
4633
|
-
s?: boolean;
|
|
4634
|
-
m?: boolean;
|
|
4635
|
-
l?: boolean;
|
|
4636
|
-
xl?: boolean;
|
|
4698
|
+
interface VisibleProps extends BreakpointVisibility {
|
|
4637
4699
|
children: React.ReactNode;
|
|
4638
4700
|
}
|
|
4639
4701
|
|
|
@@ -4648,6 +4710,206 @@ interface VisuallyHiddenProps {
|
|
|
4648
4710
|
children?: ReactNode;
|
|
4649
4711
|
}
|
|
4650
4712
|
|
|
4713
|
+
type NavBarBackground = "light" | "lightElevated" | "neutral" | "ghostedOnDark" | "ghostedOnLight" | "transparentOnDark" | "transparentOnLight";
|
|
4714
|
+
interface NavigationHeaderContainerProps extends ExtentableContainer {
|
|
4715
|
+
/**
|
|
4716
|
+
* set the background color of the navbar.
|
|
4717
|
+
*/
|
|
4718
|
+
background?: NavBarBackground;
|
|
4719
|
+
/**
|
|
4720
|
+
* set the nav bar to be a pill shape. It will only be visible when the background is either white or ghosted.
|
|
4721
|
+
*/
|
|
4722
|
+
isPill?: boolean;
|
|
4723
|
+
/**
|
|
4724
|
+
* set the nav bar contents to be 100% width
|
|
4725
|
+
*/
|
|
4726
|
+
isFluid?: boolean;
|
|
4727
|
+
/**
|
|
4728
|
+
* content for the navbar
|
|
4729
|
+
*/
|
|
4730
|
+
children: React.ReactNode;
|
|
4731
|
+
}
|
|
4732
|
+
|
|
4733
|
+
type Brand = "btRedcare" | "btWholesale" | "btMediaBroadCast" | "btGlobalFabric" | "ee" | "bt";
|
|
4734
|
+
interface NavigationHeaderLogoProps {
|
|
4735
|
+
ariaLabel?: string;
|
|
4736
|
+
brand?: Brand;
|
|
4737
|
+
href?: string;
|
|
4738
|
+
svg?: React.ReactNode;
|
|
4739
|
+
isSurfaceSensitive?: boolean;
|
|
4740
|
+
onClick?: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
4741
|
+
}
|
|
4742
|
+
|
|
4743
|
+
interface NavigationHeaderNavLinkProps {
|
|
4744
|
+
text: string;
|
|
4745
|
+
href: string;
|
|
4746
|
+
borderRadiusSize?: "s" | "m";
|
|
4747
|
+
onClick?: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
4748
|
+
}
|
|
4749
|
+
|
|
4750
|
+
/**
|
|
4751
|
+
* Provides an object of breakpoints for responsive designs.
|
|
4752
|
+
*
|
|
4753
|
+
* This object contains keys representing breakpoint names (e.g., `xxl`, `xl`)
|
|
4754
|
+
* and values representing the pixel widths for those breakpoints. The values are parsed
|
|
4755
|
+
* from strings (e.g., "1400px") into numbers for easier usage in responsive logic.
|
|
4756
|
+
*
|
|
4757
|
+
* Kept in src for internal use
|
|
4758
|
+
*/
|
|
4759
|
+
type ArcBreakpointSizes = "xs" | "s" | "m" | "l" | "xl" | "xxl";
|
|
4760
|
+
type ArcBreakpoint = Record<ArcBreakpointSizes, number>;
|
|
4761
|
+
declare const ArcBreakpoints: ArcBreakpoint;
|
|
4762
|
+
|
|
4763
|
+
type CustomBreakpoint = keyof typeof ArcBreakpoints | number;
|
|
4764
|
+
|
|
4765
|
+
type NavigationHeaderNavItemType = "subnav" | "dropdown" | "link" | "meatball";
|
|
4766
|
+
type NavLinkProps = Omit<NavigationHeaderNavLinkProps, "borderRadiusSize">;
|
|
4767
|
+
interface NavigationHeaderNavItem {
|
|
4768
|
+
type: NavigationHeaderNavItemType;
|
|
4769
|
+
}
|
|
4770
|
+
interface NavigationHeaderMenuTrigger {
|
|
4771
|
+
visibleFrom?: CustomBreakpoint;
|
|
4772
|
+
text: string;
|
|
4773
|
+
ariaLabel?: string;
|
|
4774
|
+
items: NavLinkProps[];
|
|
4775
|
+
}
|
|
4776
|
+
interface NavigationHeaderNavLinkItem extends NavigationHeaderNavItem, NavLinkProps {
|
|
4777
|
+
type: "link";
|
|
4778
|
+
visibleFrom?: CustomBreakpoint;
|
|
4779
|
+
}
|
|
4780
|
+
interface NavigationHeaderMeatBallMenuItem extends NavigationHeaderNavItem, NavLinkProps {
|
|
4781
|
+
type: "meatball";
|
|
4782
|
+
}
|
|
4783
|
+
interface NavigationHeaderDropdownItem extends NavigationHeaderNavItem, NavigationHeaderMenuTrigger {
|
|
4784
|
+
type: "dropdown";
|
|
4785
|
+
}
|
|
4786
|
+
interface NavigationHeaderSubNavItem extends NavigationHeaderNavItem, NavigationHeaderMenuTrigger {
|
|
4787
|
+
type: "subnav";
|
|
4788
|
+
}
|
|
4789
|
+
type NavigationHeaderNavigationItem = NavigationHeaderNavLinkItem | NavigationHeaderDropdownItem | NavigationHeaderSubNavItem | NavigationHeaderMeatBallMenuItem;
|
|
4790
|
+
|
|
4791
|
+
interface NavigationHeaderNavListProps {
|
|
4792
|
+
/**
|
|
4793
|
+
* Nav items for `<NavigationHeader />`
|
|
4794
|
+
*/
|
|
4795
|
+
navItems: Array<NavigationHeaderNavigationItem>;
|
|
4796
|
+
/**
|
|
4797
|
+
* Meatball menu aria label
|
|
4798
|
+
*/
|
|
4799
|
+
meatBallMenuAriaLabel?: string;
|
|
4800
|
+
/**
|
|
4801
|
+
* Meatball menu tooltip text
|
|
4802
|
+
*/
|
|
4803
|
+
meatballMenuTooltip?: string;
|
|
4804
|
+
}
|
|
4805
|
+
|
|
4806
|
+
type ConfigurableHeaderVisibility = Partial<Record<Exclude<ArcBreakpointSizes, "xs">, boolean>>;
|
|
4807
|
+
|
|
4808
|
+
interface NavigationHeaderInlineActionProps {
|
|
4809
|
+
/**
|
|
4810
|
+
* Icon url for the action.
|
|
4811
|
+
*/
|
|
4812
|
+
icon: string;
|
|
4813
|
+
/**
|
|
4814
|
+
* text for the action.
|
|
4815
|
+
*/
|
|
4816
|
+
text: string;
|
|
4817
|
+
/**
|
|
4818
|
+
* href for the action.
|
|
4819
|
+
*/
|
|
4820
|
+
href?: string;
|
|
4821
|
+
/**
|
|
4822
|
+
* Click handlers for the action.
|
|
4823
|
+
*/
|
|
4824
|
+
onClick?: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
4825
|
+
}
|
|
4826
|
+
|
|
4827
|
+
declare const NavigationHeader: React.FC<NavigationHeaderProps>;
|
|
4828
|
+
interface NavigationHeaderProps extends Omit<NavigationHeaderContainerProps, "children">, Omit<NavigationHeaderNavListProps, "navItems">, ExtentableContainer {
|
|
4829
|
+
/**
|
|
4830
|
+
* Open content slot on the left of the nav bar.
|
|
4831
|
+
*/
|
|
4832
|
+
leftSlot?: React.ReactNode;
|
|
4833
|
+
/**
|
|
4834
|
+
* Open content slot on the middle of the nav bar, after the nav items.
|
|
4835
|
+
*/
|
|
4836
|
+
middleSlot?: React.ReactNode;
|
|
4837
|
+
/**
|
|
4838
|
+
* Open content slot on the right of the nav bar.
|
|
4839
|
+
*/
|
|
4840
|
+
rightSlot?: React.ReactNode;
|
|
4841
|
+
/**
|
|
4842
|
+
* Configuration for the logo. Logo Defaults to BT. Alternatively you can select one of the brands via the `brand` field, or supply your own svg via the `svg` field.
|
|
4843
|
+
* When supplying your own svg the root element must be an `svg` element that is implemented as follows: it has a `viewBox` attribute, no `height`, `width` or `preserveAspectRatio` attributes. It will also need
|
|
4844
|
+
* fills or strokes set to `currentColor` if you want it to work on both light and dark pathways.
|
|
4845
|
+
*/
|
|
4846
|
+
logo?: Omit<NavigationHeaderLogoProps, "isSurfaceSensitive">;
|
|
4847
|
+
/**
|
|
4848
|
+
* Additional links or buttons for the burger menu that sit below the nav items.
|
|
4849
|
+
*/
|
|
4850
|
+
burgerMenuActions?: NavigationHeaderInlineActionProps[];
|
|
4851
|
+
/**
|
|
4852
|
+
* Additional content for the burger menu that sits below all the other content.
|
|
4853
|
+
*/
|
|
4854
|
+
burgerMenuFooter?: React.ReactNode;
|
|
4855
|
+
/**
|
|
4856
|
+
* Additional content for the burger menu that sits between the logo and the nav items.
|
|
4857
|
+
*/
|
|
4858
|
+
burgerMenuHeader?: React.ReactNode;
|
|
4859
|
+
/**
|
|
4860
|
+
* Configuration for the burger menu visibility. It is always visible below 636px but can also be configured to show at larger breakpoints.
|
|
4861
|
+
*/
|
|
4862
|
+
burgerMenuVisibility?: ConfigurableHeaderVisibility;
|
|
4863
|
+
/**
|
|
4864
|
+
* Configuration for the nav menu. It is always hidden below 636px but can also be configured to show at larger breakpoints.
|
|
4865
|
+
*/
|
|
4866
|
+
navMenuVisibility?: ConfigurableHeaderVisibility;
|
|
4867
|
+
/**
|
|
4868
|
+
* Nav items for `<NavigationHeader />`
|
|
4869
|
+
*/
|
|
4870
|
+
navItems?: Array<NavigationHeaderNavigationItem>;
|
|
4871
|
+
}
|
|
4872
|
+
|
|
4873
|
+
declare const NavigationHeaderAction: React.FC<NavigationHeaderActionProps>;
|
|
4874
|
+
interface NavigationHeaderActionProps {
|
|
4875
|
+
/**
|
|
4876
|
+
* Icon url for the action.
|
|
4877
|
+
*/
|
|
4878
|
+
icon: string;
|
|
4879
|
+
/**
|
|
4880
|
+
* Display a red dot next to the action to alert users.
|
|
4881
|
+
*/
|
|
4882
|
+
isAttention?: boolean;
|
|
4883
|
+
/**
|
|
4884
|
+
* label for action that is presented to screenreader.
|
|
4885
|
+
*/
|
|
4886
|
+
ariaLabel: string;
|
|
4887
|
+
/**
|
|
4888
|
+
* title for action that is presented in a tooltip.
|
|
4889
|
+
*/
|
|
4890
|
+
title: string;
|
|
4891
|
+
/**
|
|
4892
|
+
* supporting text for action that is presented in a tooltip.
|
|
4893
|
+
*/
|
|
4894
|
+
supportingCopy?: string;
|
|
4895
|
+
/**
|
|
4896
|
+
* Click handlers for the action.
|
|
4897
|
+
*/
|
|
4898
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
4899
|
+
}
|
|
4900
|
+
|
|
4901
|
+
declare const NavigationHeaderActionBar: React.FC<NavigationHeaderActionBarProps>;
|
|
4902
|
+
interface NavigationHeaderActionBarProps {
|
|
4903
|
+
children: React.ReactNode;
|
|
4904
|
+
}
|
|
4905
|
+
|
|
4906
|
+
declare const NavigationHeaderPage: React.FC<NavigationHeaderPageProps>;
|
|
4907
|
+
interface NavigationHeaderPageProps {
|
|
4908
|
+
icon?: string;
|
|
4909
|
+
page?: string;
|
|
4910
|
+
title: string;
|
|
4911
|
+
}
|
|
4912
|
+
|
|
4651
4913
|
/**
|
|
4652
4914
|
* @typedef MediaQueryOutputs
|
|
4653
4915
|
* @param {boolean} matches - does the document match the media query?
|
|
@@ -4667,4 +4929,4 @@ interface VisuallyHiddenProps {
|
|
|
4667
4929
|
*/
|
|
4668
4930
|
declare const useMediaQuery: (mediaQuery: string) => boolean;
|
|
4669
4931
|
|
|
4670
|
-
export { Alert, type AlertProps, Align, type AlignProps, type AlignmentValue, AppButton, type AppButtonProps, type RangeSelection as ArcCalendarRangeSelection, type SelectionType as ArcCalendarSelectionType, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, Banner, type BannerProps, Box, type BoxProps, BrandLogo, colors$1 as BrandLogoColors, type BrandLogoProps, Breadcrumbs, BreadcrumbsItem, BreadcrumbsLink, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, ButtonV2, type ButtonV2Props, Calendar, type CalendarProps, Carousel, type CarouselProps, Checkbox, type CheckboxProps, type ColumnValue, Columns, ColumnsCol, type ColumnsColProps, type ColumnsProps, ComboBox, type ComboBoxProps, ContentSwitcher, ContentSwitcherContent, ContentSwitcherDropdown, ContentSwitcherDropdownContent, type ContentSwitcherDropdownProps, ContentSwitcherList, type ContentSwitcherProps, ContentSwitcherTab, DATE_FORMAT, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, Disclosure, DisclosureMini, type DisclosureMiniProps, type DisclosureProps, Download, type DownloadProps, Drawer, DrawerContent, DrawerFooter, DrawerHeader, type DrawerProps, Elevation, type ElevationProps, Filter, FilterControl, FilterControls, FilterItem, FilterItems, type FilterProps, FormControl, Context as FormControlContext, type FormControlProps, GhostedHeroBanner, type GhostedHeroBannerProps, GradientPageBackground, type GradientPageBackgroundProps, Grid, GridCol, type GridProps, GridRow, type GridValue, Group, GroupItem, type GroupProps, Heading, type HeadingLevel, type HeadingProps, HeroBanner, type HeroBannerProps, HeroButton, type HeroButtonProps, Hidden, type HiddenProps, HorizontalCard, type HorizontalCardProps, Icon, type IconColor, colors as IconColors, type IconProps, Image, fitOptions as ImageFitOptions, overlayOptions as ImageOverlayOptions, type ImageProps, ImageSource, type ImageSourceProps, ImpactCard, type ImpactCardProps, InformationCard, type InformationCardProps, Link, type LinkProps, Markup, type MarkupProps, MediaCard, type MediaCardProps, Menu, MenuContent, MenuFooter, MenuGroup, MenuGroupSingleSelect, MenuHeader, MenuItem, MenuItemCheckbox, MenuItemContentTemplate, MenuItemMultiLevel, MenuItemMultiLevelContent, MenuItemMultiLevelTrigger, MenuItemSingleSelect, MenuLabel, MenuPortal, type MenuProps, MenuScrollable, MenuSeparator, MenuTrigger, Modal, type ModalProps, Pagination, type PaginationProps, PaginationSimple, type PaginationSimpleProps, Popover, type PopoverProps, Poster, PosterImage, type PosterProps, PosterVideo, ProgressBar, type ProgressBarProps, type ProgressBarState, ProgressStepper, ProgressStepperItem, type ProgressStepperItemProps, ProgressStepperOverflow, type ProgressStepperOverflowRef, type ProgressStepperProps, RadioCardGroup, RadioCardGroupInput, type RadioCardGroupProps, RadioGroup, RadioGroupButton, RadioGroupInput, type RadioGroupProps, Rule, type RuleProps, ScrollToTop, type ScrollToTopProps, Section, type SectionProps, Select, type SelectProps, SiteFooter, SiteFooterItem, SiteFooterItemGroup, type SiteFooterProps, SiteFooterV2, SiteFooterV2Item, SiteFooterV2ItemGroup, SiteFooterV2Main, SiteFooterV2Utility, SiteHeaderV2, SiteHeaderV2Column, SiteHeaderV2Item, SiteHeaderV2ItemGroup, SiteHeaderV2NavItem, SiteHeaderV2NavItemWithSubNav, SiteHeaderV2NodeItem, type SiteHeaderV2Props, SiteHeaderV2SubNavItem, SiteHeaderV2VerticalDivider, Skeleton, type SkeletonProps, SkipLink, SkipLinkItem, type Span, Spinner, type SpinnerProps, Surface, type SurfaceBackgroundColor, Context$1 as SurfaceContext, type SurfacePadding, type SurfaceProps, Switch, type SwitchProps, TabbedBanner, type TabbedBannerProps, Tabs, TabsContent, TabsItem, TabsList, type TabsListProps, type TabsProps, Tag, type TagProps, TemplateBanner, type TemplateBannerProps, Text, TextArea, type TextAreaProps, TextInput, type TextInputProps, type TextProps, Theme, ThemeIcon, type ThemeIconNames, type ThemeIconProps, type ThemeProps, type ThemeType, ThumbnailSignpost, type ThumbnailSignpostProps, Toast, ToastNotification, type ToastProps, Tooltip, type TooltipProps, Truncate, type TruncateProps, TypographyCard, type TypographyCardProps, UniversalHeader, UniversalHeaderItem, type UniversalHeaderProps, VerticalSpace, type VerticalSpaceProps, VideoPlayer, type VideoPlayerProps, Visible, type VisibleProps, VisuallyHidden, type VisuallyHiddenProps, backgrounds, backgroundsBT, isDateValid, isRangeValid, loadingOptions, parseDateString, parseRangeString, themes, useMediaQuery };
|
|
4932
|
+
export { Alert, type AlertProps, Align, type AlignProps, type AlignmentValue, AppButton, type AppButtonProps, type RangeSelection as ArcCalendarRangeSelection, type SelectionType as ArcCalendarSelectionType, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, Banner, type BannerProps, Box, type BoxProps, type Brand, BrandLogo, colors$1 as BrandLogoColors, type BrandLogoProps, Breadcrumbs, BreadcrumbsItem, BreadcrumbsLink, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, ButtonV2, type ButtonV2Props, Calendar, type CalendarProps, Carousel, type CarouselProps, Checkbox, type CheckboxProps, type ColumnValue, Columns, ColumnsCol, type ColumnsColProps, type ColumnsProps, ComboBox, type ComboBoxProps, ContentSwitcher, ContentSwitcherContent, ContentSwitcherDropdown, ContentSwitcherDropdownContent, type ContentSwitcherDropdownProps, ContentSwitcherList, type ContentSwitcherProps, ContentSwitcherTab, DATE_FORMAT, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, Disclosure, DisclosureMini, type DisclosureMiniProps, type DisclosureProps, Download, type DownloadProps, Drawer, DrawerContent, DrawerFooter, DrawerHeader, type DrawerProps, Elevation, type ElevationProps, Filter, FilterControl, FilterControls, FilterItem, FilterItems, type FilterProps, FormControl, Context as FormControlContext, type FormControlProps, GhostedHeroBanner, type GhostedHeroBannerProps, GradientPageBackground, type GradientPageBackgroundProps, Grid, GridCol, type GridProps, GridRow, type GridValue, Group, GroupItem, type GroupProps, Heading, type HeadingLevel, type HeadingProps, HeroBanner, type HeroBannerProps, HeroButton, type HeroButtonProps, Hidden, type HiddenProps, HorizontalCard, type HorizontalCardProps, Icon, type IconColor, colors as IconColors, type IconProps, Image, fitOptions as ImageFitOptions, overlayOptions as ImageOverlayOptions, type ImageProps, ImageSource, type ImageSourceProps, ImpactCard, type ImpactCardProps, InformationCard, type InformationCardProps, Link, type LinkProps$1 as LinkProps, Markup, type MarkupProps, MediaCard, type MediaCardProps, Menu, MenuContent, MenuFooter, MenuGroup, MenuGroupSingleSelect, MenuHeader, MenuItem, MenuItemCheckbox, MenuItemContentTemplate, MenuItemMultiLevel, MenuItemMultiLevelContent, MenuItemMultiLevelTrigger, MenuItemSingleSelect, MenuLabel, MenuPortal, type MenuProps, MenuScrollable, MenuSeparator, MenuTrigger, Modal, type ModalProps, NavigationHeader, NavigationHeaderAction, NavigationHeaderActionBar, type NavigationHeaderActionProps, NavigationHeaderPage, type NavigationHeaderProps, Pagination, type PaginationProps, PaginationSimple, type PaginationSimpleProps, Popover, type PopoverProps, Poster, PosterImage, type PosterProps, PosterVideo, ProgressBar, type ProgressBarProps, type ProgressBarState, ProgressStepper, ProgressStepperItem, type ProgressStepperItemProps, ProgressStepperOverflow, type ProgressStepperOverflowRef, type ProgressStepperProps, RadioCardGroup, RadioCardGroupInput, type RadioCardGroupProps, RadioGroup, RadioGroupButton, RadioGroupInput, type RadioGroupProps, Rule, type RuleProps, ScrollToTop, type ScrollToTopProps, Section, type SectionProps, Select, type SelectProps, SiteFooter, SiteFooterItem, SiteFooterItemGroup, type SiteFooterProps, SiteFooterV2, SiteFooterV2Item, SiteFooterV2ItemGroup, SiteFooterV2Main, SiteFooterV2Utility, SiteHeaderV2, SiteHeaderV2Column, SiteHeaderV2Item, SiteHeaderV2ItemGroup, SiteHeaderV2NavItem, SiteHeaderV2NavItemWithSubNav, SiteHeaderV2NodeItem, type SiteHeaderV2Props, SiteHeaderV2SubNavItem, SiteHeaderV2VerticalDivider, Skeleton, type SkeletonProps, SkipLink, SkipLinkItem, type Span, Spinner, type SpinnerProps, Surface, type SurfaceBackground, type SurfaceBackgroundColor, Context$1 as SurfaceContext, type SurfacePadding, type SurfaceProps, Switch, type SwitchProps, TabbedBanner, type TabbedBannerProps, Tabs, TabsContent, TabsItem, TabsList, type TabsListProps, type TabsProps, Tag, type TagProps, TemplateBanner, type TemplateBannerProps, Text, TextArea, type TextAreaProps, TextInput, type TextInputProps, type TextProps, Theme, ThemeIcon, type ThemeIconNames, type ThemeIconProps, type ThemeProps, type ThemeType, ThumbnailSignpost, type ThumbnailSignpostProps, Toast, ToastNotification, type ToastProps, Tooltip, type TooltipProps, Truncate, type TruncateProps, TypographyCard, type TypographyCardProps, UniversalHeader, UniversalHeaderItem, type UniversalHeaderProps, VerticalSpace, type VerticalSpaceProps, VideoPlayer, type VideoPlayerProps, Visible, type VisibleProps, VisuallyHidden, type VisuallyHiddenProps, backgrounds, backgroundsBT, isDateValid, isRangeValid, loadingOptions, parseDateString, parseRangeString, themes, useMediaQuery };
|