@arc-ui/components 12.1.0 → 13.0.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/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 +3 -3
- package/lib/Banner/Banner.mjs +3 -3
- package/lib/Box/styles.css +1 -1
- package/lib/BrandLogo/styles.css +1 -1
- package/lib/Breadcrumbs/Breadcrumbs.cjs +6 -6
- package/lib/Breadcrumbs/Breadcrumbs.mjs +6 -6
- package/lib/Breadcrumbs/styles.css +1 -1
- package/lib/Button/Button.cjs +1 -1
- package/lib/Button/Button.mjs +1 -1
- package/lib/Button/styles.css +1 -1
- package/lib/ButtonGroup/ButtonGroup.cjs +6 -3
- package/lib/ButtonGroup/ButtonGroup.mjs +6 -3
- package/lib/ButtonGroup/styles.css +1 -1
- package/lib/ButtonV2/ButtonV2.cjs +1 -1
- package/lib/ButtonV2/ButtonV2.mjs +1 -1
- package/lib/ButtonV2/styles.css +1 -1
- package/lib/Calendar/Calendar.cjs +5 -5
- package/lib/Calendar/Calendar.mjs +5 -5
- package/lib/Calendar/styles.css +1 -1
- package/lib/CardFooter/styles.css +1 -1
- package/lib/CardHeading/CardHeading.cjs +1 -1
- package/lib/CardHeading/CardHeading.mjs +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/Checkbox.cjs +7 -7
- package/lib/Checkbox/Checkbox.mjs +8 -8
- package/lib/Checkbox/styles.css +1 -1
- package/lib/CheckboxIcon/CheckboxIcon.cjs +1 -1
- package/lib/CheckboxIcon/CheckboxIcon.mjs +1 -1
- package/lib/CheckboxIcon/styles.css +1 -1
- package/lib/Columns/styles.css +1 -1
- package/lib/ComboBox/ComboBox.cjs +13 -13
- package/lib/ComboBox/ComboBox.mjs +14 -14
- package/lib/ComboBox/styles.css +1 -1
- package/lib/ContentSwitcher/ContentSwitcher.cjs +1 -1
- package/lib/ContentSwitcher/ContentSwitcher.mjs +4 -4
- package/lib/ContentSwitcher/styles.css +1 -1
- package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.cjs +7 -7
- package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.mjs +7 -7
- package/lib/ContentSwitcherDropdown/styles.css +1 -1
- package/lib/DatePicker/DatePicker.cjs +16 -16
- package/lib/DatePicker/DatePicker.mjs +17 -17
- 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 +36 -28
- package/lib/Drawer/Drawer.mjs +36 -28
- 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/GhostedHeroBanner.cjs +2 -2
- package/lib/GhostedHeroBanner/GhostedHeroBanner.mjs +2 -2
- package/lib/GhostedHeroBanner/styles.css +1 -1
- package/lib/GradientPageBackground/GradientPageBackground.cjs +2 -2
- package/lib/GradientPageBackground/GradientPageBackground.mjs +2 -2
- 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 +3 -3
- package/lib/HeroBanner/HeroBanner.mjs +3 -3
- package/lib/HeroBanner/styles.css +1 -1
- package/lib/HeroButton/HeroButton.cjs +3 -3
- package/lib/HeroButton/HeroButton.mjs +4 -4
- package/lib/HeroButton/styles.css +1 -1
- package/lib/Hidden/styles.css +1 -1
- package/lib/HorizontalCard/HorizontalCard.cjs +1 -1
- package/lib/HorizontalCard/HorizontalCard.mjs +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/ImpactCard.cjs +4 -4
- package/lib/ImpactCard/ImpactCard.mjs +4 -4
- package/lib/ImpactCard/styles.css +1 -1
- package/lib/InformationCard/InformationCard.cjs +6 -6
- package/lib/InformationCard/InformationCard.mjs +6 -6
- package/lib/InformationCard/styles.css +1 -1
- package/lib/Link/styles.css +1 -1
- package/lib/Markup/styles.css +1 -1
- package/lib/MediaCard/MediaCard.cjs +5 -5
- package/lib/MediaCard/MediaCard.mjs +5 -5
- package/lib/MediaCard/styles.css +1 -1
- package/lib/Menu/Menu.cjs +17 -16
- package/lib/Menu/Menu.mjs +17 -16
- package/lib/Menu/styles.css +1 -1
- package/lib/Modal/Modal.cjs +7 -7
- package/lib/Modal/Modal.mjs +7 -7
- package/lib/Modal/styles.css +1 -1
- package/lib/NavigationHeader/NavigationHeader.cjs +17 -17
- package/lib/NavigationHeader/NavigationHeader.mjs +18 -18
- package/lib/NavigationHeader/styles.css +1 -1
- package/lib/Pagination/styles.css +1 -1
- package/lib/PaginationSimple/styles.css +1 -1
- package/lib/Popover/Popover.cjs +7 -7
- package/lib/Popover/Popover.mjs +7 -7
- package/lib/Popover/styles.css +1 -1
- package/lib/Poster/styles.css +1 -1
- package/lib/ProgressBar/ProgressBar.cjs +2 -2
- package/lib/ProgressBar/ProgressBar.mjs +2 -2
- package/lib/ProgressBar/styles.css +1 -1
- package/lib/ProgressStepper/ProgressStepper.cjs +1 -1
- package/lib/ProgressStepper/ProgressStepper.mjs +1 -1
- package/lib/ProgressStepper/styles.css +1 -1
- package/lib/ProgressStepperOverflow/ProgressStepperOverflow.cjs +4 -4
- package/lib/ProgressStepperOverflow/ProgressStepperOverflow.mjs +5 -5
- package/lib/ProgressStepperOverflow/styles.css +1 -1
- package/lib/RadioCardGroup/RadioCardGroup.cjs +6 -6
- package/lib/RadioCardGroup/RadioCardGroup.mjs +7 -7
- package/lib/RadioCardGroup/styles.css +1 -1
- package/lib/RadioGroup/RadioGroup.cjs +6 -6
- package/lib/RadioGroup/RadioGroup.mjs +7 -7
- package/lib/RadioGroup/styles.css +1 -1
- package/lib/Rule/Rule.cjs +1 -1
- package/lib/Rule/Rule.mjs +1 -1
- package/lib/Rule/styles.css +1 -1
- package/lib/ScrollToTop/ScrollToTop.cjs +1 -1
- package/lib/ScrollToTop/ScrollToTop.mjs +1 -1
- package/lib/ScrollToTop/styles.css +1 -1
- package/lib/Section/styles.css +1 -1
- package/lib/Select/Select.cjs +6 -6
- package/lib/Select/Select.mjs +6 -6
- package/lib/Select/styles.css +1 -1
- package/lib/SemanticHeading/styles.css +1 -1
- package/lib/SiteFooter/styles.css +1 -1
- package/lib/SiteFooterV2/SiteFooterV2.cjs +1 -1
- package/lib/SiteFooterV2/SiteFooterV2.mjs +1 -1
- package/lib/SiteFooterV2/styles.css +1 -1
- package/lib/SiteHeaderV2/SiteHeaderV2.cjs +9 -6
- package/lib/SiteHeaderV2/SiteHeaderV2.mjs +9 -6
- package/lib/SiteHeaderV2/styles.css +1 -1
- package/lib/Skeleton/styles.css +1 -1
- package/lib/SkipLink/SkipLink.cjs +2 -2
- package/lib/SkipLink/SkipLink.mjs +3 -3
- package/lib/SkipLink/styles.css +1 -1
- package/lib/Spinner/styles.css +1 -1
- package/lib/Surface/styles.css +1 -1
- package/lib/Switch/Switch.mjs +1 -1
- package/lib/Switch/styles.css +1 -1
- package/lib/TabbedBanner/TabbedBanner.cjs +9 -9
- package/lib/TabbedBanner/TabbedBanner.mjs +12 -12
- package/lib/TabbedBanner/styles.css +1 -1
- package/lib/Tabs/Tabs.mjs +3 -3
- package/lib/Tabs/styles.css +1 -1
- package/lib/Tag/styles.css +1 -1
- package/lib/TemplateBanner/TemplateBanner.cjs +1 -1
- package/lib/TemplateBanner/TemplateBanner.mjs +1 -1
- package/lib/TemplateBanner/styles.css +1 -1
- package/lib/Text/styles.css +1 -1
- package/lib/TextArea/TextArea.cjs +3 -3
- package/lib/TextArea/TextArea.mjs +4 -4
- package/lib/TextArea/styles.css +1 -1
- package/lib/TextInput/TextInput.cjs +4 -4
- package/lib/TextInput/TextInput.mjs +4 -4
- 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/ThumbnailSignpost.cjs +1 -1
- package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +1 -1
- package/lib/ThumbnailSignpost/styles.css +1 -1
- package/lib/Toast/Toast.mjs +2 -2
- package/lib/Toast/styles.css +1 -1
- package/lib/Tooltip/Tooltip.cjs +3 -3
- package/lib/Tooltip/Tooltip.mjs +3 -3
- package/lib/Tooltip/styles.css +1 -1
- package/lib/Truncate/styles.css +1 -1
- package/lib/TypographyCard/TypographyCard.cjs +4 -4
- package/lib/TypographyCard/TypographyCard.mjs +4 -4
- package/lib/TypographyCard/styles.css +1 -1
- package/lib/UniversalHeader/styles.css +1 -1
- package/lib/VerticalSpace/styles.css +1 -1
- package/lib/VideoPlayer/VideoPlayer.cjs +3 -3
- package/lib/VideoPlayer/VideoPlayer.mjs +3 -3
- package/lib/VideoPlayer/styles.css +1 -1
- package/lib/Visible/styles.css +1 -1
- package/lib/VisuallyHidden/styles.css +1 -1
- package/lib/_shared/cjs/{Button-BN4jUsg5.cjs → Button-CrevzrTg.cjs} +3 -3
- package/lib/_shared/cjs/{ButtonV2-bUu36xW8.cjs → ButtonV2-CxyploaQ.cjs} +3 -3
- package/lib/_shared/cjs/{Calendar-D_jZ0cgf.cjs → Calendar-CdLn9iv6.cjs} +6 -6
- package/lib/_shared/cjs/{CardHeading-lGy1u6eD.cjs → CardHeading-C84m67_F.cjs} +2 -2
- package/lib/_shared/cjs/{CheckboxIcon-BTkdXfpp.cjs → CheckboxIcon-BzY1S_ud.cjs} +6 -5
- package/lib/_shared/cjs/{Combination-6m6aOXZq.cjs → Combination-Cm62lfyr.cjs} +1 -1
- package/lib/_shared/cjs/{ContentSwitcherDropdown-BLXyhXVS.cjs → ContentSwitcherDropdown-6IGRpV54.cjs} +2 -2
- package/lib/_shared/cjs/{ContentSwitcherList-DgychllS.cjs → ContentSwitcherList-Di7RS8ue.cjs} +20 -9
- package/lib/_shared/cjs/{Popover-CYcqjefw.cjs → Popover-BtvRErpC.cjs} +7 -4
- package/lib/_shared/cjs/{ProgressStepper-mTgKZYEl.cjs → ProgressStepper-Cs6vX7Th.cjs} +3 -3
- package/lib/_shared/cjs/{Rule-jmvOpci7.cjs → Rule-essaguo_.cjs} +2 -2
- package/lib/_shared/cjs/{TemplateBanner-CzDAL0lq.cjs → TemplateBanner-DyXBKuMw.cjs} +2 -2
- package/lib/_shared/cjs/{TextInput-BHzuoI7E.cjs → TextInput-C_K2PLf5.cjs} +6 -6
- package/lib/_shared/cjs/{Tooltip-CEb7YEP2.cjs → Tooltip-CdmWvrnr.cjs} +2 -2
- package/lib/_shared/cjs/{arc-breakpoints-DFPoWNR4.cjs → arc-breakpoints-uADxN-b4.cjs} +1 -1
- package/lib/_shared/cjs/{index-BGGFOAAx.cjs → index-BBDa9gnQ.cjs} +2 -2
- package/lib/_shared/cjs/{index-D9onmVh5.cjs → index-BDUrOKEW.cjs} +3 -3
- package/lib/_shared/cjs/{index-CklPiHsS.cjs → index-B_WZUATb.cjs} +2 -2
- package/lib/_shared/cjs/{index-B11wQrRa.cjs → index-BdJeAKfz.cjs} +1 -1
- package/lib/_shared/cjs/{index-CDVpHNP8.cjs → index-Dgn0408w.cjs} +4 -4
- package/lib/_shared/cjs/{index-DXNM3D1d.cjs → index-DlWZZNwu.cjs} +2 -2
- package/lib/_shared/cjs/{index-BWfgSvRQ.cjs → index-DsqYRMfM.cjs} +4 -4
- package/lib/_shared/cjs/{index-KrMgv4q_.cjs → index-WO7l1Mfx.cjs} +3 -3
- package/lib/_shared/cjs/{index.es-B2ZfX2D7.cjs → index.es-BAsay4oe.cjs} +1 -1
- package/lib/_shared/esm/{Button-DTiOFT9M.mjs → Button-Benn9Qop.mjs} +4 -4
- package/lib/_shared/esm/{ButtonV2-ByW5P8Hq.mjs → ButtonV2-CgjYgfZA.mjs} +4 -4
- package/lib/_shared/esm/{Calendar-wG6UVDgO.mjs → Calendar-CzFIMyD1.mjs} +7 -7
- package/lib/_shared/esm/{CardHeading-CfPEEmBO.mjs → CardHeading-CV14vmox.mjs} +2 -2
- package/lib/_shared/esm/{CheckboxIcon-BcVQe6mC.mjs → CheckboxIcon-CzRn1j8X.mjs} +6 -5
- package/lib/_shared/esm/{Combination-BQ4XBtF-.mjs → Combination-BW0YAEZD.mjs} +1 -1
- package/lib/_shared/esm/{ContentSwitcherDropdown-ckPG4pry.mjs → ContentSwitcherDropdown-CwoMd63a.mjs} +2 -2
- package/lib/_shared/esm/{ContentSwitcherList-CWZcMblg.mjs → ContentSwitcherList-Bvp9Zl85.mjs} +22 -11
- package/lib/_shared/esm/{Popover-BHCEpLSa.mjs → Popover-DRQSgAog.mjs} +7 -4
- package/lib/_shared/esm/{ProgressStepper-DxZrJR0q.mjs → ProgressStepper-DTPHHVFe.mjs} +4 -4
- package/lib/_shared/esm/{Rule-I1w3EaZi.mjs → Rule-Bz3QPezk.mjs} +3 -3
- package/lib/_shared/esm/{TemplateBanner-CZSTdma0.mjs → TemplateBanner-BPzuH5bz.mjs} +2 -2
- package/lib/_shared/esm/{TextInput-CZaNXVHl.mjs → TextInput-BCvKXfM_.mjs} +8 -8
- package/lib/_shared/esm/{Tooltip-BpSzN3Tx.mjs → Tooltip-DY8nS1to.mjs} +2 -2
- package/lib/_shared/esm/{arc-breakpoints-TEKN0W5t.mjs → arc-breakpoints-ChQgbftE.mjs} +1 -1
- package/lib/_shared/esm/{index-u47CK8Y0.mjs → index-B3ewsmrD.mjs} +2 -2
- package/lib/_shared/esm/{index-GCEHSsY8.mjs → index-BMmvMegf.mjs} +2 -2
- package/lib/_shared/esm/{index-DXHprNQ6.mjs → index-C_mwuZg6.mjs} +1 -1
- package/lib/_shared/esm/{index-BWkI4Dwz.mjs → index-CfXVJXLq.mjs} +3 -3
- package/lib/_shared/esm/{index-CWHcEz3_.mjs → index-Cgsjp3NL.mjs} +1 -1
- package/lib/_shared/esm/{index-CN4hP3Wu.mjs → index-CjeQnMcn.mjs} +3 -3
- package/lib/_shared/esm/{index-BFKdmv_g.mjs → index-DNvlT7G_.mjs} +3 -3
- package/lib/_shared/esm/{index-Do2wfP-X.mjs → index-Dd3yZ_Kk.mjs} +4 -4
- package/lib/_shared/esm/{index-vnVJe9rH.mjs → index-Dfz5UgHo.mjs} +4 -4
- package/lib/_shared/esm/{index-Bz2JQq34.mjs → index-DkAfUbDx.mjs} +2 -2
- package/lib/_shared/esm/{index-6HtUz28p.mjs → index-Drb5ngQr.mjs} +1 -1
- package/lib/_shared/esm/{index.es-Co1d96HB.mjs → index.es-99J0r2va.mjs} +1 -1
- package/lib/index.cjs +185 -156
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +938 -247
- package/lib/index.d.mts +938 -247
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +186 -157
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +2 -2
- package/package.json +12 -12
package/lib/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, {
|
|
2
|
+
import React__default, { ReactNode, JSX, HTMLAttributes, Ref, MouseEvent as MouseEvent$1, ChangeEvent, ReactElement } from 'react';
|
|
3
3
|
import { ArcGradient } from '@arc-ui/gradients';
|
|
4
4
|
import { ImageProps as ImageProps$1 } from 'src/components/Image/Image';
|
|
5
5
|
import { VideoPlayerProps as VideoPlayerProps$1 } from 'src/components/VideoPlayer';
|
|
@@ -9,7 +9,7 @@ import { ReactPlayerProps } from 'react-player';
|
|
|
9
9
|
/**
|
|
10
10
|
* Use `Align` to align items horizontally or vertically.
|
|
11
11
|
*/
|
|
12
|
-
declare const Align:
|
|
12
|
+
declare const Align: ({ children, horizontal, isDebugVisible, vertical, ...props }: AlignProps) => React__default.JSX.Element;
|
|
13
13
|
interface AlignProps {
|
|
14
14
|
/**
|
|
15
15
|
* Contents of the Align. Each item will be wrapped in an AlignItem component.
|
|
@@ -33,7 +33,7 @@ interface AlignProps {
|
|
|
33
33
|
/**
|
|
34
34
|
* Use `Link` to direct users to a new page or piece of information.
|
|
35
35
|
*/
|
|
36
|
-
declare const Link:
|
|
36
|
+
declare const Link: ({ id, href, title, rel, target, children, onClick, screenReaderText, isButton, isImplied, size, ...props }: LinkProps$1) => JSX.Element;
|
|
37
37
|
interface LinkProps$1 {
|
|
38
38
|
/**
|
|
39
39
|
* Id attribute for `Link`.
|
|
@@ -85,17 +85,303 @@ interface LinkProps$1 {
|
|
|
85
85
|
* Use `SemanticHeading` to render accessible headings that preserve correct
|
|
86
86
|
* document hierarchy.
|
|
87
87
|
*/
|
|
88
|
-
declare const SemanticHeading: React__default.
|
|
88
|
+
declare const SemanticHeading: ({ children, level, className, ...props }: SemanticHeadingProps) => React__default.DetailedReactHTMLElement<{
|
|
89
|
+
defaultChecked?: boolean | undefined;
|
|
90
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
91
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
92
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
93
|
+
accessKey?: string | undefined;
|
|
94
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
95
|
+
autoFocus?: boolean | undefined;
|
|
96
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
97
|
+
contextMenu?: string | undefined;
|
|
98
|
+
dir?: string | undefined;
|
|
99
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
100
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
101
|
+
hidden?: boolean | undefined;
|
|
102
|
+
id?: string | undefined;
|
|
103
|
+
lang?: string | undefined;
|
|
104
|
+
nonce?: string | undefined;
|
|
105
|
+
slot?: string | undefined;
|
|
106
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
107
|
+
style?: React__default.CSSProperties | undefined;
|
|
108
|
+
tabIndex?: number | undefined;
|
|
109
|
+
title?: string | undefined;
|
|
110
|
+
translate?: "yes" | "no" | undefined;
|
|
111
|
+
radioGroup?: string | undefined;
|
|
112
|
+
role?: React__default.AriaRole | undefined;
|
|
113
|
+
about?: string | undefined;
|
|
114
|
+
content?: string | undefined;
|
|
115
|
+
datatype?: string | undefined;
|
|
116
|
+
inlist?: any;
|
|
117
|
+
prefix?: string | undefined;
|
|
118
|
+
property?: string | undefined;
|
|
119
|
+
rel?: string | undefined;
|
|
120
|
+
resource?: string | undefined;
|
|
121
|
+
rev?: string | undefined;
|
|
122
|
+
typeof?: string | undefined;
|
|
123
|
+
vocab?: string | undefined;
|
|
124
|
+
autoCorrect?: string | undefined;
|
|
125
|
+
autoSave?: string | undefined;
|
|
126
|
+
color?: string | undefined;
|
|
127
|
+
itemProp?: string | undefined;
|
|
128
|
+
itemScope?: boolean | undefined;
|
|
129
|
+
itemType?: string | undefined;
|
|
130
|
+
itemID?: string | undefined;
|
|
131
|
+
itemRef?: string | undefined;
|
|
132
|
+
results?: number | undefined;
|
|
133
|
+
security?: string | undefined;
|
|
134
|
+
unselectable?: "on" | "off" | undefined;
|
|
135
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined;
|
|
136
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
|
137
|
+
popoverTarget?: string | undefined;
|
|
138
|
+
inert?: boolean | undefined;
|
|
139
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
140
|
+
is?: string | undefined;
|
|
141
|
+
exportparts?: string | undefined;
|
|
142
|
+
part?: string | undefined;
|
|
143
|
+
"aria-activedescendant"?: string | undefined;
|
|
144
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
145
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
146
|
+
"aria-braillelabel"?: string | undefined;
|
|
147
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
148
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
149
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
150
|
+
"aria-colcount"?: number | undefined;
|
|
151
|
+
"aria-colindex"?: number | undefined;
|
|
152
|
+
"aria-colindextext"?: string | undefined;
|
|
153
|
+
"aria-colspan"?: number | undefined;
|
|
154
|
+
"aria-controls"?: string | undefined;
|
|
155
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
156
|
+
"aria-describedby"?: string | undefined;
|
|
157
|
+
"aria-description"?: string | undefined;
|
|
158
|
+
"aria-details"?: string | undefined;
|
|
159
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
160
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
161
|
+
"aria-errormessage"?: string | undefined;
|
|
162
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
163
|
+
"aria-flowto"?: string | undefined;
|
|
164
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
165
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
166
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
167
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
168
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
169
|
+
"aria-label"?: string | undefined;
|
|
170
|
+
"aria-labelledby"?: string | undefined;
|
|
171
|
+
"aria-level"?: number | undefined;
|
|
172
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
173
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
174
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
175
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
176
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
177
|
+
"aria-owns"?: string | undefined;
|
|
178
|
+
"aria-placeholder"?: string | undefined;
|
|
179
|
+
"aria-posinset"?: number | undefined;
|
|
180
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
181
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
182
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
183
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
184
|
+
"aria-roledescription"?: string | undefined;
|
|
185
|
+
"aria-rowcount"?: number | undefined;
|
|
186
|
+
"aria-rowindex"?: number | undefined;
|
|
187
|
+
"aria-rowindextext"?: string | undefined;
|
|
188
|
+
"aria-rowspan"?: number | undefined;
|
|
189
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
190
|
+
"aria-setsize"?: number | undefined;
|
|
191
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
192
|
+
"aria-valuemax"?: number | undefined;
|
|
193
|
+
"aria-valuemin"?: number | undefined;
|
|
194
|
+
"aria-valuenow"?: number | undefined;
|
|
195
|
+
"aria-valuetext"?: string | undefined;
|
|
196
|
+
dangerouslySetInnerHTML?: {
|
|
197
|
+
__html: string | TrustedHTML;
|
|
198
|
+
} | undefined;
|
|
199
|
+
onCopy?: React__default.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
200
|
+
onCopyCapture?: React__default.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
201
|
+
onCut?: React__default.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
202
|
+
onCutCapture?: React__default.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
203
|
+
onPaste?: React__default.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
204
|
+
onPasteCapture?: React__default.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
205
|
+
onCompositionEnd?: React__default.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
206
|
+
onCompositionEndCapture?: React__default.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
207
|
+
onCompositionStart?: React__default.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
208
|
+
onCompositionStartCapture?: React__default.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
209
|
+
onCompositionUpdate?: React__default.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
210
|
+
onCompositionUpdateCapture?: React__default.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
211
|
+
onFocus?: React__default.FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
212
|
+
onFocusCapture?: React__default.FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
213
|
+
onBlur?: React__default.FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
214
|
+
onBlurCapture?: React__default.FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
215
|
+
onChange?: React__default.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
216
|
+
onChangeCapture?: React__default.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
217
|
+
onBeforeInput?: React__default.InputEventHandler<HTMLHeadingElement> | undefined;
|
|
218
|
+
onBeforeInputCapture?: React__default.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
219
|
+
onInput?: React__default.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
220
|
+
onInputCapture?: React__default.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
221
|
+
onReset?: React__default.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
222
|
+
onResetCapture?: React__default.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
223
|
+
onSubmit?: React__default.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
224
|
+
onSubmitCapture?: React__default.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
225
|
+
onInvalid?: React__default.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
226
|
+
onInvalidCapture?: React__default.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
227
|
+
onLoad?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
228
|
+
onLoadCapture?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
229
|
+
onError?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
230
|
+
onErrorCapture?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
231
|
+
onKeyDown?: React__default.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
232
|
+
onKeyDownCapture?: React__default.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
233
|
+
onKeyPress?: React__default.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
234
|
+
onKeyPressCapture?: React__default.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
235
|
+
onKeyUp?: React__default.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
236
|
+
onKeyUpCapture?: React__default.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
237
|
+
onAbort?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
238
|
+
onAbortCapture?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
239
|
+
onCanPlay?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
240
|
+
onCanPlayCapture?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
241
|
+
onCanPlayThrough?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
242
|
+
onCanPlayThroughCapture?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
243
|
+
onDurationChange?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
244
|
+
onDurationChangeCapture?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
245
|
+
onEmptied?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
246
|
+
onEmptiedCapture?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
247
|
+
onEncrypted?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
248
|
+
onEncryptedCapture?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
249
|
+
onEnded?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
250
|
+
onEndedCapture?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
251
|
+
onLoadedData?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
252
|
+
onLoadedDataCapture?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
253
|
+
onLoadedMetadata?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
254
|
+
onLoadedMetadataCapture?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
255
|
+
onLoadStart?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
256
|
+
onLoadStartCapture?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
257
|
+
onPause?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
258
|
+
onPauseCapture?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
259
|
+
onPlay?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
260
|
+
onPlayCapture?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
261
|
+
onPlaying?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
262
|
+
onPlayingCapture?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
263
|
+
onProgress?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
264
|
+
onProgressCapture?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
265
|
+
onRateChange?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
266
|
+
onRateChangeCapture?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
267
|
+
onSeeked?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
268
|
+
onSeekedCapture?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
269
|
+
onSeeking?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
270
|
+
onSeekingCapture?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
271
|
+
onStalled?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
272
|
+
onStalledCapture?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
273
|
+
onSuspend?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
274
|
+
onSuspendCapture?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
275
|
+
onTimeUpdate?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
276
|
+
onTimeUpdateCapture?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
277
|
+
onVolumeChange?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
278
|
+
onVolumeChangeCapture?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
279
|
+
onWaiting?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
280
|
+
onWaitingCapture?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
281
|
+
onAuxClick?: React__default.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
282
|
+
onAuxClickCapture?: React__default.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
283
|
+
onClick?: React__default.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
284
|
+
onClickCapture?: React__default.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
285
|
+
onContextMenu?: React__default.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
286
|
+
onContextMenuCapture?: React__default.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
287
|
+
onDoubleClick?: React__default.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
288
|
+
onDoubleClickCapture?: React__default.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
289
|
+
onDrag?: React__default.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
290
|
+
onDragCapture?: React__default.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
291
|
+
onDragEnd?: React__default.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
292
|
+
onDragEndCapture?: React__default.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
293
|
+
onDragEnter?: React__default.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
294
|
+
onDragEnterCapture?: React__default.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
295
|
+
onDragExit?: React__default.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
296
|
+
onDragExitCapture?: React__default.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
297
|
+
onDragLeave?: React__default.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
298
|
+
onDragLeaveCapture?: React__default.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
299
|
+
onDragOver?: React__default.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
300
|
+
onDragOverCapture?: React__default.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
301
|
+
onDragStart?: React__default.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
302
|
+
onDragStartCapture?: React__default.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
303
|
+
onDrop?: React__default.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
304
|
+
onDropCapture?: React__default.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
305
|
+
onMouseDown?: React__default.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
306
|
+
onMouseDownCapture?: React__default.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
307
|
+
onMouseEnter?: React__default.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
308
|
+
onMouseLeave?: React__default.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
309
|
+
onMouseMove?: React__default.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
310
|
+
onMouseMoveCapture?: React__default.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
311
|
+
onMouseOut?: React__default.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
312
|
+
onMouseOutCapture?: React__default.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
313
|
+
onMouseOver?: React__default.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
314
|
+
onMouseOverCapture?: React__default.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
315
|
+
onMouseUp?: React__default.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
316
|
+
onMouseUpCapture?: React__default.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
317
|
+
onSelect?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
318
|
+
onSelectCapture?: React__default.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
319
|
+
onTouchCancel?: React__default.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
320
|
+
onTouchCancelCapture?: React__default.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
321
|
+
onTouchEnd?: React__default.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
322
|
+
onTouchEndCapture?: React__default.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
323
|
+
onTouchMove?: React__default.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
324
|
+
onTouchMoveCapture?: React__default.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
325
|
+
onTouchStart?: React__default.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
326
|
+
onTouchStartCapture?: React__default.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
327
|
+
onPointerDown?: React__default.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
328
|
+
onPointerDownCapture?: React__default.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
329
|
+
onPointerMove?: React__default.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
330
|
+
onPointerMoveCapture?: React__default.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
331
|
+
onPointerUp?: React__default.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
332
|
+
onPointerUpCapture?: React__default.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
333
|
+
onPointerCancel?: React__default.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
334
|
+
onPointerCancelCapture?: React__default.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
335
|
+
onPointerEnter?: React__default.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
336
|
+
onPointerLeave?: React__default.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
337
|
+
onPointerOver?: React__default.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
338
|
+
onPointerOverCapture?: React__default.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
339
|
+
onPointerOut?: React__default.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
340
|
+
onPointerOutCapture?: React__default.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
341
|
+
onGotPointerCapture?: React__default.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
342
|
+
onGotPointerCaptureCapture?: React__default.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
343
|
+
onLostPointerCapture?: React__default.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
344
|
+
onLostPointerCaptureCapture?: React__default.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
345
|
+
onScroll?: React__default.UIEventHandler<HTMLHeadingElement> | undefined;
|
|
346
|
+
onScrollCapture?: React__default.UIEventHandler<HTMLHeadingElement> | undefined;
|
|
347
|
+
onScrollEnd?: React__default.UIEventHandler<HTMLHeadingElement> | undefined;
|
|
348
|
+
onScrollEndCapture?: React__default.UIEventHandler<HTMLHeadingElement> | undefined;
|
|
349
|
+
onWheel?: React__default.WheelEventHandler<HTMLHeadingElement> | undefined;
|
|
350
|
+
onWheelCapture?: React__default.WheelEventHandler<HTMLHeadingElement> | undefined;
|
|
351
|
+
onAnimationStart?: React__default.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
352
|
+
onAnimationStartCapture?: React__default.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
353
|
+
onAnimationEnd?: React__default.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
354
|
+
onAnimationEndCapture?: React__default.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
355
|
+
onAnimationIteration?: React__default.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
356
|
+
onAnimationIterationCapture?: React__default.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
357
|
+
onToggle?: React__default.ToggleEventHandler<HTMLHeadingElement> | undefined;
|
|
358
|
+
onBeforeToggle?: React__default.ToggleEventHandler<HTMLHeadingElement> | undefined;
|
|
359
|
+
onTransitionCancel?: React__default.TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
360
|
+
onTransitionCancelCapture?: React__default.TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
361
|
+
onTransitionEnd?: React__default.TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
362
|
+
onTransitionEndCapture?: React__default.TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
363
|
+
onTransitionRun?: React__default.TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
364
|
+
onTransitionRunCapture?: React__default.TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
365
|
+
onTransitionStart?: React__default.TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
366
|
+
onTransitionStartCapture?: React__default.TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
367
|
+
className: string;
|
|
368
|
+
}, HTMLElement>;
|
|
89
369
|
type SemanticHeadingLevel = "1" | "2" | "3" | "4" | "5" | "6";
|
|
90
370
|
interface SemanticHeadingProps extends React__default.HTMLAttributes<HTMLHeadingElement> {
|
|
371
|
+
/**
|
|
372
|
+
* The semantic heading level (1-6).
|
|
373
|
+
*/
|
|
91
374
|
level?: SemanticHeadingLevel;
|
|
375
|
+
/**
|
|
376
|
+
* Content to render within the heading.
|
|
377
|
+
*/
|
|
92
378
|
children: React__default.ReactNode;
|
|
93
379
|
}
|
|
94
380
|
|
|
95
381
|
/**
|
|
96
382
|
* Use `Alert` to inform the user of important changes or actions.
|
|
97
383
|
*/
|
|
98
|
-
declare const Alert:
|
|
384
|
+
declare const Alert: ({ heading, headingLevel, description, links, status, isDismissable, onDismiss, icon, isMeasured, autoFocusOnMount, role, ...props }: AlertProps) => React__default.JSX.Element | null;
|
|
99
385
|
type AlertLinkProps = Omit<LinkProps$1, "size" | "isImplied">;
|
|
100
386
|
interface AlertProps {
|
|
101
387
|
/**
|
|
@@ -148,11 +434,20 @@ type AlertStatus = "general" | "error" | "warning" | "success";
|
|
|
148
434
|
/**
|
|
149
435
|
* Use `AppButton` for a branded button that links users to download an app.
|
|
150
436
|
*/
|
|
151
|
-
declare const AppButton: React__default.
|
|
437
|
+
declare const AppButton: ({ type, url, screenReaderText, ...props }: AppButtonProps) => React__default.JSX.Element;
|
|
152
438
|
type AppButtonType = "google-play" | "apple-app-store";
|
|
153
439
|
interface AppButtonProps {
|
|
440
|
+
/**
|
|
441
|
+
* The type of app store button to display.
|
|
442
|
+
*/
|
|
154
443
|
type: AppButtonType;
|
|
444
|
+
/**
|
|
445
|
+
* Text to be read by screen readers describing the button action.
|
|
446
|
+
*/
|
|
155
447
|
screenReaderText: string;
|
|
448
|
+
/**
|
|
449
|
+
* The URL to link to for downloading the app.
|
|
450
|
+
*/
|
|
156
451
|
url: string;
|
|
157
452
|
}
|
|
158
453
|
|
|
@@ -162,8 +457,8 @@ declare const anchorPoints: readonly ["N", "NE", "E", "SE", "S", "SW", "W", "NW"
|
|
|
162
457
|
* Use `Image` to render a single image, or set of images, with support for
|
|
163
458
|
* image fitting and art direction.
|
|
164
459
|
*/
|
|
165
|
-
declare const Image:
|
|
166
|
-
declare const ImageSource:
|
|
460
|
+
declare const Image: ({ alt, fadeOnLoad, anchor, children, fetchPriority, fillColor, fit, height, loading, overlay, sizes, src, srcSet, width, ...props }: ImageProps) => React__default.JSX.Element;
|
|
461
|
+
declare const ImageSource: ({ height, media, srcSet, sizes, type, ...props }: ImageSourceProps) => React__default.JSX.Element;
|
|
167
462
|
interface ImageSourceProps {
|
|
168
463
|
/**
|
|
169
464
|
* The intrinsic height of the ImageSource, in pixels
|
|
@@ -261,33 +556,75 @@ type AvatarImage = Pick<ImageProps, "src" | "loading" | "sizes" | "srcSet" | "wi
|
|
|
261
556
|
type AvatarSize = "s" | "m" | "l" | "xl";
|
|
262
557
|
|
|
263
558
|
/** Use `Avatar` to visually represent a user. */
|
|
264
|
-
declare const Avatar: React__default.
|
|
559
|
+
declare const Avatar: ({ img, initials, href, title, ariaLabel, onClick, size, ...props }: AvatarProps) => React__default.JSX.Element;
|
|
265
560
|
interface AvatarProps {
|
|
561
|
+
/**
|
|
562
|
+
* Initials to display in the avatar (up to 3 characters).
|
|
563
|
+
*/
|
|
266
564
|
initials?: string;
|
|
565
|
+
/**
|
|
566
|
+
* URL to link to when the avatar is clicked.
|
|
567
|
+
*/
|
|
267
568
|
href?: string;
|
|
569
|
+
/**
|
|
570
|
+
* Title attribute for the avatar link.
|
|
571
|
+
*/
|
|
268
572
|
title?: string;
|
|
573
|
+
/**
|
|
574
|
+
* Accessible label for the avatar.
|
|
575
|
+
*/
|
|
269
576
|
ariaLabel?: string;
|
|
577
|
+
/**
|
|
578
|
+
* Click handler for the avatar link.
|
|
579
|
+
*/
|
|
270
580
|
onClick?: (e: React__default.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
581
|
+
/**
|
|
582
|
+
* Image to display in the avatar.
|
|
583
|
+
*/
|
|
271
584
|
img?: AvatarImage;
|
|
585
|
+
/**
|
|
586
|
+
* Size of the avatar.
|
|
587
|
+
*/
|
|
272
588
|
size?: AvatarSize;
|
|
273
589
|
}
|
|
274
590
|
|
|
275
591
|
type GroupAvatar = Omit<AvatarProps, "size" | "title" | "href" | "onClick" | "ariaLabel">;
|
|
276
592
|
|
|
277
593
|
/** Use `AvatarGroup` to visually represent a group of users. */
|
|
278
|
-
declare const AvatarGroup: React__default.
|
|
594
|
+
declare const AvatarGroup: ({ title, ariaLabel, href, avatars, onClick, max, size, ...props }: AvatarGroupProps) => React__default.JSX.Element;
|
|
279
595
|
interface AvatarGroupProps {
|
|
596
|
+
/**
|
|
597
|
+
* Array of avatars to display in the group.
|
|
598
|
+
*/
|
|
280
599
|
avatars: GroupAvatar[];
|
|
600
|
+
/**
|
|
601
|
+
* Size of the avatars in the group.
|
|
602
|
+
*/
|
|
281
603
|
size?: AvatarSize;
|
|
604
|
+
/**
|
|
605
|
+
* Maximum number of avatars to display before showing a count.
|
|
606
|
+
*/
|
|
282
607
|
max?: number;
|
|
608
|
+
/**
|
|
609
|
+
* Title attribute for the avatar group link.
|
|
610
|
+
*/
|
|
283
611
|
title?: string;
|
|
612
|
+
/**
|
|
613
|
+
* Accessible label for the avatar group.
|
|
614
|
+
*/
|
|
284
615
|
ariaLabel?: string;
|
|
616
|
+
/**
|
|
617
|
+
* URL to link to when the avatar group is clicked.
|
|
618
|
+
*/
|
|
285
619
|
href?: string;
|
|
620
|
+
/**
|
|
621
|
+
* Click handler for the avatar group link.
|
|
622
|
+
*/
|
|
286
623
|
onClick?: (e: React__default.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
287
624
|
}
|
|
288
625
|
|
|
289
626
|
/** Use `Badge` as a static, non-interactive way to provide short updates. */
|
|
290
|
-
declare const Badge:
|
|
627
|
+
declare const Badge: ({ children, state, ariaLabel, ariaRole, ...props }: BadgeProps) => React__default.JSX.Element;
|
|
291
628
|
interface BadgeProps {
|
|
292
629
|
/**
|
|
293
630
|
* Text to display within Badge
|
|
@@ -310,7 +647,7 @@ interface BadgeProps {
|
|
|
310
647
|
/**
|
|
311
648
|
* Use `Heading` to display heading text.
|
|
312
649
|
*/
|
|
313
|
-
declare const Heading:
|
|
650
|
+
declare const Heading: ({ align, casing, color, children, level, isInline, fontStyle, isResponsive, isWordWrap, size, id, ...props }: HeadingProps) => React__default.JSX.Element;
|
|
314
651
|
type HeadingCasing = "auto" | "none";
|
|
315
652
|
type HeadingColor = "auto" | "brand";
|
|
316
653
|
type HeadingLevel = SemanticHeadingLevel;
|
|
@@ -364,12 +701,18 @@ interface HeadingProps {
|
|
|
364
701
|
}
|
|
365
702
|
|
|
366
703
|
interface BannerImageProps extends Pick<ImageProps, "src" | "alt" | "loading" | "sizes" | "srcSet" | "width" | "height" | "fadeOnLoad" | "fit" | "anchor" | "fetchPriority"> {
|
|
704
|
+
/**
|
|
705
|
+
* Whether the image should be hidden from screen readers.
|
|
706
|
+
*/
|
|
367
707
|
ariaHidden?: boolean;
|
|
708
|
+
/**
|
|
709
|
+
* Array of source elements for responsive images.
|
|
710
|
+
*/
|
|
368
711
|
sources?: Pick<ImageSourceProps, "media" | "sizes" | "srcSet">[];
|
|
369
712
|
}
|
|
370
713
|
|
|
371
714
|
/** Use `TemplateBanner` as a base structure for banner components; other banner variants extend or consume this template. */
|
|
372
|
-
declare const TemplateBanner: React__default.
|
|
715
|
+
declare const TemplateBanner: ({ heading, fontStyle, label, labelLevel, text, img, contentRatio, children, alignment, additionalTopMargin, minHeight, minHeightM, minHeightL, minHeightXL, headingSize, isReversed, isElevated, headingLevel, headingWordWrap, type, ...props }: TemplateBannerProps) => React__default.JSX.Element;
|
|
373
716
|
type TemplateBannerStyle = "light" | "dark" | "contained";
|
|
374
717
|
type TemplateBannerAlignment = "top" | "bottom" | "center";
|
|
375
718
|
interface TemplateBannerImage extends BannerImageProps {
|
|
@@ -460,10 +803,14 @@ interface TemplateBannerProps {
|
|
|
460
803
|
* Changes the Heading font family. Please note `dottee` fonts will only work when theme is set to `ee`
|
|
461
804
|
*/
|
|
462
805
|
fontStyle?: "default" | "display-standard" | "display-condensed" | "display-extended";
|
|
806
|
+
/**
|
|
807
|
+
* Whether long words in heading should be wrapped.
|
|
808
|
+
*/
|
|
809
|
+
headingWordWrap?: boolean;
|
|
463
810
|
}
|
|
464
811
|
|
|
465
812
|
/** Use `Banner` to promote key content or products with bold visuals and messaging. */
|
|
466
|
-
declare const Banner:
|
|
813
|
+
declare const Banner: ({ heading, label, text, img, contentRatio, children, minHeight, isReversed, isElevated, headingLevel, type, alignment, headingWordWrap, ...props }: BannerProps) => React__default.JSX.Element;
|
|
467
814
|
type BannerProps = Omit<TemplateBannerProps, "headingSize" | "additionalTopMargin">;
|
|
468
815
|
|
|
469
816
|
type SurfaceBackground = "light" | "dark";
|
|
@@ -473,7 +820,7 @@ declare const Context$1: React__default.Context<{
|
|
|
473
820
|
/**
|
|
474
821
|
* Use `Surface` to compose content using the Arc system.
|
|
475
822
|
*/
|
|
476
|
-
declare const Surface:
|
|
823
|
+
declare const Surface: ({ background, children, growVertically, padding, paddingHorizontal, paddingVertical, isTransparent, ...props }: SurfaceProps) => React__default.JSX.Element;
|
|
477
824
|
declare const backgrounds: readonly ["dark-black", "dark-brand-01", "dark-brand-02", "dark-neutral-01", "dark-neutral-02", "light-brand-01", "light-brand-02", "light-neutral-01", "light-neutral-02", "light-white"];
|
|
478
825
|
declare const backgroundsBT: readonly ["dark-black", "dark-brand-01", "dark-brand-02", "dark-neutral-01", "dark-neutral-02", "light-brand-01", "light-brand-02", "light-neutral-01", "light-neutral-02", "light-white"];
|
|
479
826
|
type SurfacePadding = "8" | "12" | "16" | "24" | "32" | "48" | "64";
|
|
@@ -521,12 +868,12 @@ interface SurfaceProps extends HTMLAttributes<HTMLElement> {
|
|
|
521
868
|
/**
|
|
522
869
|
* Use `Box` as a simple way to group bespoke content and interactive elements together.
|
|
523
870
|
*/
|
|
524
|
-
declare const Box:
|
|
871
|
+
declare const Box: ({ children, borderWidth, elevationLevel, padding, isFullHeight, isBorderRadius, surface, isSurfaceTransparent, ...props }: BoxProps) => React__default.JSX.Element;
|
|
525
872
|
interface BoxProps {
|
|
526
873
|
/**
|
|
527
874
|
* Contents of the Box.
|
|
528
875
|
*/
|
|
529
|
-
children:
|
|
876
|
+
children: ReactNode;
|
|
530
877
|
/**
|
|
531
878
|
* Set Box to fill parent element.
|
|
532
879
|
*/
|
|
@@ -560,7 +907,7 @@ interface BoxProps {
|
|
|
560
907
|
/**
|
|
561
908
|
* Use `BrandLogo` to display the brand logo.
|
|
562
909
|
*/
|
|
563
|
-
declare const BrandLogo:
|
|
910
|
+
declare const BrandLogo: ({ color, label, size, subBrand, ...props }: BrandLogoProps) => React__default.JSX.Element;
|
|
564
911
|
declare const colors$1: readonly ["auto", "brand"];
|
|
565
912
|
declare const subBrands$1: readonly ["redcare", "wholesale", "ee"];
|
|
566
913
|
interface BrandLogoProps {
|
|
@@ -583,7 +930,7 @@ interface BrandLogoProps {
|
|
|
583
930
|
}
|
|
584
931
|
|
|
585
932
|
/** Use `Breadcrumbs` to add a secondary navigation scheme that reveals the user’s location. Each item should be wrapped with `BreadcrumbsItem` */
|
|
586
|
-
declare const Breadcrumbs:
|
|
933
|
+
declare const Breadcrumbs: ({ isLight, children, ...props }: BreadcrumbsProps) => React__default.JSX.Element;
|
|
587
934
|
interface BreadcrumbsProps {
|
|
588
935
|
/**
|
|
589
936
|
* Contents of the Breadcrumbs Should only contain `Breadcrumb.Item`.
|
|
@@ -595,7 +942,7 @@ interface BreadcrumbsProps {
|
|
|
595
942
|
isLight?: boolean;
|
|
596
943
|
}
|
|
597
944
|
|
|
598
|
-
declare const BreadcrumbsItem:
|
|
945
|
+
declare const BreadcrumbsItem: ({ spacerIconAfter, spacerIconBefore, children, }: ItemProps$1) => React__default.JSX.Element;
|
|
599
946
|
interface ItemProps$1 {
|
|
600
947
|
/**
|
|
601
948
|
* Render child elements within `BreadcrumbsItem`
|
|
@@ -611,8 +958,12 @@ interface ItemProps$1 {
|
|
|
611
958
|
spacerIconBefore?: boolean;
|
|
612
959
|
}
|
|
613
960
|
|
|
614
|
-
declare const BreadcrumbsLink:
|
|
961
|
+
declare const BreadcrumbsLink: ({ onClick, href, isActive, children, ref, ...props }: LinkProps) => React__default.JSX.Element;
|
|
615
962
|
interface LinkProps {
|
|
963
|
+
/**
|
|
964
|
+
* Ref to the underlying anchor element.
|
|
965
|
+
*/
|
|
966
|
+
ref?: Ref<HTMLAnchorElement>;
|
|
616
967
|
/**
|
|
617
968
|
* Render children of `breadcrumbs.link`
|
|
618
969
|
*/
|
|
@@ -629,10 +980,6 @@ interface LinkProps {
|
|
|
629
980
|
* Highlights item in breadcrumb (This also removes the a tag and any links)
|
|
630
981
|
*/
|
|
631
982
|
isActive?: boolean;
|
|
632
|
-
/**
|
|
633
|
-
* Ref to `<a>` tag
|
|
634
|
-
*/
|
|
635
|
-
ref?: React__default.Ref<HTMLAnchorElement>;
|
|
636
983
|
/**
|
|
637
984
|
* React router property
|
|
638
985
|
*/
|
|
@@ -640,11 +987,11 @@ interface LinkProps {
|
|
|
640
987
|
}
|
|
641
988
|
|
|
642
989
|
type ElementUnion$2 = HTMLButtonElement | HTMLAnchorElement;
|
|
643
|
-
type
|
|
990
|
+
type ButtonRef$2 = React__default.Ref<ElementUnion$2> | null;
|
|
644
991
|
/**
|
|
645
992
|
* Use `Button` to let a user complete an action like ‘Log in’ or ‘Register’.
|
|
646
993
|
*/
|
|
647
|
-
declare const Button:
|
|
994
|
+
declare const Button: ({ ariaLabel, ariaControls, ariaExpanded, ariaHasPopup, fill, href, icon, iconPosition, id, isDisabled, isDisplayBlock, isFullWidth, label, onClick, rel, size, supportingText, target, type, form, ref, ...props }: ButtonProps) => React__default.JSX.Element;
|
|
648
995
|
interface ButtonElementProps {
|
|
649
996
|
/**
|
|
650
997
|
* Default behavior of the Button element. If not provided, 'submit' will
|
|
@@ -716,7 +1063,7 @@ interface ButtonProps extends ButtonElementProps, LinkElementProps$2 {
|
|
|
716
1063
|
/**
|
|
717
1064
|
* Optional property to provide component Ref
|
|
718
1065
|
*/
|
|
719
|
-
ref?:
|
|
1066
|
+
ref?: ButtonRef$2;
|
|
720
1067
|
/**
|
|
721
1068
|
* How should a Button icon be displayed?
|
|
722
1069
|
*/
|
|
@@ -743,7 +1090,7 @@ interface ButtonProps extends ButtonElementProps, LinkElementProps$2 {
|
|
|
743
1090
|
* Use `ButtonGroup` to group multiple buttons together, ensuring consistent sizing, spacing,
|
|
744
1091
|
* and alignment. Only accepts `Button` or `ButtonV2` components as children.
|
|
745
1092
|
*/
|
|
746
|
-
declare const ButtonGroup:
|
|
1093
|
+
declare const ButtonGroup: ({ children, size, align, orientation, gap, ariaLabel, isFullWidth, ...props }: ButtonGroupProps) => React__default.JSX.Element;
|
|
747
1094
|
interface ButtonGroupProps {
|
|
748
1095
|
/**
|
|
749
1096
|
* Components to appear within the ButtonGroup
|
|
@@ -777,11 +1124,11 @@ interface ButtonGroupProps {
|
|
|
777
1124
|
}
|
|
778
1125
|
|
|
779
1126
|
type ElementUnion$1 = HTMLButtonElement | HTMLAnchorElement;
|
|
780
|
-
type
|
|
1127
|
+
type ButtonRef$1 = React__default.Ref<ElementUnion$1> | null;
|
|
781
1128
|
/**
|
|
782
1129
|
* Use `ButtonV2` for our most up to date Call To Action button, offering Primary, Secondary, Tertiary, Compact and Error states.
|
|
783
1130
|
*/
|
|
784
|
-
declare const ButtonV2:
|
|
1131
|
+
declare const ButtonV2: ({ label, buttonStyle, icon, iconActive, iconPosition, size, ariaLabel, ariaControls, ariaExpanded, ariaHasPopup, isFullWidth, isLoading, isSpan, onClick, href, id, rel, target, type, form, ref, ...props }: ButtonV2Props) => React__default.JSX.Element;
|
|
785
1132
|
interface LinkElementProps$1 {
|
|
786
1133
|
/**
|
|
787
1134
|
* URL to link to if `ButtonV2` elementType is 'a'.
|
|
@@ -837,7 +1184,7 @@ interface ButtonV2Props extends ButtonV2ElementProps, LinkElementProps$1 {
|
|
|
837
1184
|
/**
|
|
838
1185
|
* Optional property to provide component Ref
|
|
839
1186
|
*/
|
|
840
|
-
ref?:
|
|
1187
|
+
ref?: ButtonRef$1;
|
|
841
1188
|
/**
|
|
842
1189
|
* Should the `ButtonV2` take up the full width of its container?
|
|
843
1190
|
*/
|
|
@@ -893,7 +1240,7 @@ type SelectionType = "single" | "range";
|
|
|
893
1240
|
type CalendarType = "month" | "year" | "double";
|
|
894
1241
|
|
|
895
1242
|
/** Use `Calendar` to clearly present available dates and allowing users to choose a way to enter information. */
|
|
896
|
-
declare const Calendar:
|
|
1243
|
+
declare const Calendar: ({ type, selectionType, autoFocusOnMount, selectedRange: rawSelectedRange, selectedDate: rawSelectedDate, disabledDates: rawDisabledDates, minDate: rawMinDate, maxDate: rawMaxDate, onCancelClick, onDateSelect, onRangeSelect, uncontained, ...props }: CalendarProps) => React__default.JSX.Element;
|
|
897
1244
|
interface CalendarProps {
|
|
898
1245
|
/**
|
|
899
1246
|
* Select single date or range
|
|
@@ -939,6 +1286,9 @@ interface CalendarProps {
|
|
|
939
1286
|
* Focus will be set on the selected day when the component mounts, defaults to false.
|
|
940
1287
|
*/
|
|
941
1288
|
autoFocusOnMount?: boolean;
|
|
1289
|
+
/**
|
|
1290
|
+
* Whether the calendar should be uncontained
|
|
1291
|
+
*/
|
|
942
1292
|
uncontained?: boolean;
|
|
943
1293
|
}
|
|
944
1294
|
|
|
@@ -952,8 +1302,12 @@ interface SlideConfig {
|
|
|
952
1302
|
|
|
953
1303
|
type Responsive = Partial<Record<BreakPoints, SlideConfig>>;
|
|
954
1304
|
|
|
955
|
-
declare const Carousel: React__default.
|
|
1305
|
+
declare const Carousel: ({ children, responsive, itemsToScroll, itemsPerSlide, withGutter, loop, isPartialVisible, autoplay, isPlaying, fade, }: CarouselProps) => React__default.JSX.Element;
|
|
956
1306
|
interface CarouselProps {
|
|
1307
|
+
/**
|
|
1308
|
+
* Items for the carousel.
|
|
1309
|
+
*/
|
|
1310
|
+
children: ReactNode;
|
|
957
1311
|
/**
|
|
958
1312
|
* Adds a gap between the slides.
|
|
959
1313
|
*/
|
|
@@ -1008,23 +1362,19 @@ interface CarouselProps {
|
|
|
1008
1362
|
stopOnLastSnap?: boolean;
|
|
1009
1363
|
};
|
|
1010
1364
|
/**
|
|
1011
|
-
* Use isPlaying to control the state of autoplay
|
|
1365
|
+
* Use isPlaying to control the state of autoplay.
|
|
1012
1366
|
*/
|
|
1013
1367
|
isPlaying?: boolean;
|
|
1014
1368
|
/**
|
|
1015
|
-
* Enable fade transition between slides
|
|
1369
|
+
* Enable fade transition between slides.
|
|
1016
1370
|
*/
|
|
1017
1371
|
fade?: boolean;
|
|
1018
|
-
/**
|
|
1019
|
-
* items for the carousel.
|
|
1020
|
-
*/
|
|
1021
|
-
children: React__default.ReactNode;
|
|
1022
1372
|
}
|
|
1023
1373
|
|
|
1024
1374
|
/**
|
|
1025
1375
|
* Use `Checkbox` to allow users to select individual options.
|
|
1026
1376
|
*/
|
|
1027
|
-
declare const Checkbox:
|
|
1377
|
+
declare const Checkbox: ({ checked, errorMessage, helper, id, isDisabled, isRequired, label, hideLabel, name, onBlur, onChange, size, value, checkboxAlignment, indeterminate, isError, isErrorAlert, ref, ...props }: CheckboxProps) => React__default.JSX.Element;
|
|
1028
1378
|
type CheckedProps$1 = {
|
|
1029
1379
|
/**
|
|
1030
1380
|
* Is the input checked?
|
|
@@ -1040,6 +1390,10 @@ type CheckedProps$1 = {
|
|
|
1040
1390
|
indeterminate?: boolean;
|
|
1041
1391
|
};
|
|
1042
1392
|
interface CheckboxProps extends Omit<CheckedProps$1, "defaultChecked"> {
|
|
1393
|
+
/**
|
|
1394
|
+
* Optional property to provide component Ref
|
|
1395
|
+
*/
|
|
1396
|
+
ref?: Ref<HTMLInputElement>;
|
|
1043
1397
|
/**
|
|
1044
1398
|
* Error message for the Checkbox.
|
|
1045
1399
|
*/
|
|
@@ -1104,7 +1458,7 @@ interface CheckboxProps extends Omit<CheckedProps$1, "defaultChecked"> {
|
|
|
1104
1458
|
}
|
|
1105
1459
|
|
|
1106
1460
|
/** Use `CheckboxIcon` to display a visual checkbox indicator that reflects a checked, unchecked, or indeterminate state. */
|
|
1107
|
-
declare const CheckboxIcon: React__default.
|
|
1461
|
+
declare const CheckboxIcon: ({ id, name, checked, indeterminate, isDisabled, isRequired, size, value, error, ariaDescribedBy, onBlur, onChange, ref, ...props }: CheckboxIconProps) => React__default.JSX.Element;
|
|
1108
1462
|
type CheckedProps = {
|
|
1109
1463
|
/**
|
|
1110
1464
|
* Is the input checked?
|
|
@@ -1120,6 +1474,10 @@ type CheckedProps = {
|
|
|
1120
1474
|
indeterminate?: boolean;
|
|
1121
1475
|
};
|
|
1122
1476
|
interface CheckboxIconProps extends Omit<CheckedProps, "defaultChecked"> {
|
|
1477
|
+
/**
|
|
1478
|
+
* Ref to the underlying input element.
|
|
1479
|
+
*/
|
|
1480
|
+
ref?: Ref<HTMLInputElement>;
|
|
1123
1481
|
/**
|
|
1124
1482
|
* Error state for the Checkbox.
|
|
1125
1483
|
*/
|
|
@@ -1173,8 +1531,8 @@ interface ExtentableContainer {
|
|
|
1173
1531
|
/**
|
|
1174
1532
|
* Use `Columns` to compose layouts on a 12-column grid. Place within `Section` components to align with any sibling `Grid` components.
|
|
1175
1533
|
*/
|
|
1176
|
-
declare const Columns:
|
|
1177
|
-
declare const ColumnsCol:
|
|
1534
|
+
declare const Columns: ({ children, isGutterless, isExtended, ...props }: ColumnsProps) => React__default.JSX.Element;
|
|
1535
|
+
declare const ColumnsCol: ({ align, children, isDebugVisible, offset, offsetS, offsetM, offsetL, offsetXL, span, spanS, spanM, spanL, spanXL, ...props }: ColumnsColProps) => React__default.JSX.Element;
|
|
1178
1536
|
type Span = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
1179
1537
|
type Offset = "0" | "24" | "48" | "72" | "96" | "120" | "144" | "168" | "192" | "216" | "240" | "264" | "288" | "312" | "336" | "360" | "384";
|
|
1180
1538
|
interface ColumnsColProps {
|
|
@@ -1250,7 +1608,7 @@ declare const Context: React__default.Context<{
|
|
|
1250
1608
|
/**
|
|
1251
1609
|
* Use `FormControl` to provide inputs with labels, helper text and error messages
|
|
1252
1610
|
*/
|
|
1253
|
-
declare const FormControl:
|
|
1611
|
+
declare const FormControl: ({ children, elementType: ElementType, errorMessage, helper, htmlFor, supplementaryInfo, id, label, labelSize, labelPosition, requirementStatus, helperUnderLabel, isDisabled, hideLabel, disclosureTitle, disclosureText, onClickDisclosure, isErrorAlert, ...props }: FormControlProps) => React__default.JSX.Element;
|
|
1254
1612
|
interface FormControlProps {
|
|
1255
1613
|
/**
|
|
1256
1614
|
* Render the input or series of inputs
|
|
@@ -1330,23 +1688,60 @@ interface FormControlProps {
|
|
|
1330
1688
|
}
|
|
1331
1689
|
|
|
1332
1690
|
/** Use `ComboBox` to provide a searchable dropdown list that allows users to select from or filter through multiple options. */
|
|
1333
|
-
declare const ComboBox:
|
|
1691
|
+
declare const ComboBox: ({ ref, name, onBlur, onFocus, label, helper, id, options: initialOptions, hideLabel, isFluid, errorMessage, disclosureTitle, disclosureText, onClickDisclosure, listBoxAriaLabel, defaultValue, labelSize, isMultiSelectable, isDisabled, isRequired, isAutocomplete, ...props }: ComboBoxProps) => React__default.JSX.Element;
|
|
1334
1692
|
interface ComboBoxProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "helperUnderLabel" | "supplementaryInfo" | "labelPosition"> {
|
|
1693
|
+
/**
|
|
1694
|
+
* Ref to the underlying input element.
|
|
1695
|
+
*/
|
|
1696
|
+
ref?: Ref<HTMLInputElement>;
|
|
1697
|
+
/**
|
|
1698
|
+
* Accessible label for the listbox.
|
|
1699
|
+
*/
|
|
1335
1700
|
listBoxAriaLabel: string;
|
|
1701
|
+
/**
|
|
1702
|
+
* Array of options to display in the dropdown.
|
|
1703
|
+
*/
|
|
1336
1704
|
options: string[];
|
|
1705
|
+
/**
|
|
1706
|
+
* Name attribute for the input.
|
|
1707
|
+
*/
|
|
1337
1708
|
name?: string;
|
|
1709
|
+
/**
|
|
1710
|
+
* Whether the field is required.
|
|
1711
|
+
*/
|
|
1338
1712
|
isRequired?: boolean;
|
|
1713
|
+
/**
|
|
1714
|
+
* Default value for the input.
|
|
1715
|
+
*/
|
|
1339
1716
|
defaultValue?: string;
|
|
1717
|
+
/**
|
|
1718
|
+
* Blur event handler.
|
|
1719
|
+
*/
|
|
1340
1720
|
onBlur?: (e: React__default.FocusEvent<HTMLInputElement, Element>) => void;
|
|
1721
|
+
/**
|
|
1722
|
+
* Focus event handler.
|
|
1723
|
+
*/
|
|
1341
1724
|
onFocus?: (e: React__default.FocusEvent<HTMLInputElement, Element>) => void;
|
|
1725
|
+
/**
|
|
1726
|
+
* Whether multiple options can be selected.
|
|
1727
|
+
*/
|
|
1342
1728
|
isMultiSelectable?: boolean;
|
|
1729
|
+
/**
|
|
1730
|
+
* Whether the combobox has autocomplete functionality.
|
|
1731
|
+
*/
|
|
1343
1732
|
isAutocomplete?: boolean;
|
|
1733
|
+
/**
|
|
1734
|
+
* Whether the input is read-only.
|
|
1735
|
+
*/
|
|
1344
1736
|
isReadOnly?: boolean;
|
|
1737
|
+
/**
|
|
1738
|
+
* Whether the combobox should fill its container width.
|
|
1739
|
+
*/
|
|
1345
1740
|
isFluid?: boolean;
|
|
1346
1741
|
}
|
|
1347
1742
|
|
|
1348
1743
|
/** Use `ContentSwitcher` to allow users to navigate between different sections of relevant content. */
|
|
1349
|
-
declare const ContentSwitcher:
|
|
1744
|
+
declare const ContentSwitcher: ({ children, defaultValue, onValueChange, activationMode, value, ...props }: ContentSwitcherProps) => React__default.JSX.Element;
|
|
1350
1745
|
interface ContentSwitcherProps {
|
|
1351
1746
|
/**
|
|
1352
1747
|
* Render children
|
|
@@ -1370,8 +1765,12 @@ interface ContentSwitcherProps {
|
|
|
1370
1765
|
value?: string;
|
|
1371
1766
|
}
|
|
1372
1767
|
|
|
1373
|
-
declare const ContentSwitcherTab:
|
|
1768
|
+
declare const ContentSwitcherTab: ({ label, value, onClick, onFocus, ref, ...props }: ContentSwitcherTabProps) => React__default.JSX.Element;
|
|
1374
1769
|
interface ContentSwitcherTabProps {
|
|
1770
|
+
/**
|
|
1771
|
+
* Ref to the underlying button element.
|
|
1772
|
+
*/
|
|
1773
|
+
ref?: Ref<HTMLButtonElement>;
|
|
1375
1774
|
/**
|
|
1376
1775
|
* Label to display on the ContentSwitcherTab
|
|
1377
1776
|
*/
|
|
@@ -1390,7 +1789,7 @@ interface ContentSwitcherTabProps {
|
|
|
1390
1789
|
onFocus?: () => void;
|
|
1391
1790
|
}
|
|
1392
1791
|
|
|
1393
|
-
declare const ContentSwitcherContent:
|
|
1792
|
+
declare const ContentSwitcherContent: ({ children, value, hidden, forceMount, ...props }: ContentSwitcherContentProps) => React__default.JSX.Element;
|
|
1394
1793
|
interface ContentSwitcherContentProps {
|
|
1395
1794
|
/**
|
|
1396
1795
|
* Content to display
|
|
@@ -1410,7 +1809,7 @@ interface ContentSwitcherContentProps {
|
|
|
1410
1809
|
forceMount?: boolean;
|
|
1411
1810
|
}
|
|
1412
1811
|
|
|
1413
|
-
declare const ContentSwitcherList:
|
|
1812
|
+
declare const ContentSwitcherList: ({ children, type, isJustified, ariaLabel, isInset, ...props }: ContentSwitcherListProps) => React__default.JSX.Element;
|
|
1414
1813
|
interface ContentSwitcherListProps {
|
|
1415
1814
|
/**
|
|
1416
1815
|
* Contents of the `ContentSwitcherList` Should contain `Tab`
|
|
@@ -1437,8 +1836,8 @@ interface ContentSwitcherListProps {
|
|
|
1437
1836
|
/**
|
|
1438
1837
|
* Use `ContentSwitcherDropdown` tab control used to toggle between related views or content sections, without navigating away from the current page.
|
|
1439
1838
|
*/
|
|
1440
|
-
declare const ContentSwitcherDropdown:
|
|
1441
|
-
declare const ContentSwitcherDropdownContent:
|
|
1839
|
+
declare const ContentSwitcherDropdown: ({ defaultValue, tabs, onValueChange, children, isInset, value, ariaLabel, isFluid, width, ...props }: ContentSwitcherDropdownProps) => React__default.JSX.Element;
|
|
1840
|
+
declare const ContentSwitcherDropdownContent: ({ children, }: ContentSwitcherDropdownContentProps) => React__default.JSX.Element;
|
|
1442
1841
|
interface ContentSwitcherDropdownContentProps {
|
|
1443
1842
|
/**
|
|
1444
1843
|
* Content to display
|
|
@@ -1521,7 +1920,7 @@ declare const DATE_FORMAT = "dd/MM/yyyy";
|
|
|
1521
1920
|
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";
|
|
1522
1921
|
|
|
1523
1922
|
/** Use `Tooltip` to display information related to an element when the element receives keyboard focus or the mouse hovers over it */
|
|
1524
|
-
declare const Tooltip:
|
|
1923
|
+
declare const Tooltip: ({ children, side, sideOffset, align, alignContent, title, supportingCopy, icon, ariaLabel, maxWidth, delayDuration, open, onOpenChange, asChild, zIndex, ...props }: TooltipProps) => React__default.JSX.Element;
|
|
1525
1924
|
interface TooltipProps {
|
|
1526
1925
|
/**
|
|
1527
1926
|
* Content to render within Tooltip
|
|
@@ -1589,8 +1988,12 @@ type EventType$4 = React__default.ChangeEvent<HTMLInputElement>;
|
|
|
1589
1988
|
/**
|
|
1590
1989
|
* Use `TextInput` to allow users to enter short form text.
|
|
1591
1990
|
*/
|
|
1592
|
-
declare const TextInput:
|
|
1991
|
+
declare const TextInput: (props: TextInputProps) => React__default.JSX.Element;
|
|
1593
1992
|
interface TextInputComponentProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "helperUnderLabel" | "supplementaryInfo" | "labelPosition" | "labelSize"> {
|
|
1993
|
+
/**
|
|
1994
|
+
* Ref to the underlying input element.
|
|
1995
|
+
*/
|
|
1996
|
+
ref?: Ref<HTMLInputElement>;
|
|
1594
1997
|
/**
|
|
1595
1998
|
* Uncontrolled default value of the TextInput. If the TextInput is controlled
|
|
1596
1999
|
* via `value`/`onChange`, `defaultValue` will be ignored.
|
|
@@ -1707,10 +2110,6 @@ interface TextInputComponentProps extends Omit<FormControlProps, "children" | "e
|
|
|
1707
2110
|
* Sets autoComplete value for TextInput.
|
|
1708
2111
|
*/
|
|
1709
2112
|
autoComplete?: AutoCompleteTypes;
|
|
1710
|
-
/**
|
|
1711
|
-
* A reference to TextInput
|
|
1712
|
-
*/
|
|
1713
|
-
ref?: React__default.Ref<HTMLInputElement>;
|
|
1714
2113
|
}
|
|
1715
2114
|
type TextInputProps = Omit<TextInputComponentProps, "placeholder">;
|
|
1716
2115
|
type TextInputWithPlaceholderProps = TextInputComponentProps;
|
|
@@ -1718,28 +2117,50 @@ type TextInputWithPlaceholderProps = TextInputComponentProps;
|
|
|
1718
2117
|
/**
|
|
1719
2118
|
* Use `DatePicker` to clearly present available dates and allow users to choose a way to enter information.
|
|
1720
2119
|
*/
|
|
1721
|
-
declare const DatePicker:
|
|
2120
|
+
declare const DatePicker: ({ errorMessage, helper, id, label, isDisabled, isReadOnly, isRequired, size, value, name, onBlur, onChange, onDateSelect, onRangeSelect, onClickDisclosure, disclosureTitle, disclosureText, type, isFluid, selectionType, disabledDates, minDate, maxDate, ref, ...props }: DatePickerProps) => React__default.JSX.Element;
|
|
1722
2121
|
interface DatePickerRangeSelection$1 extends RangeSelection {
|
|
1723
2122
|
formattedRange: string;
|
|
1724
2123
|
}
|
|
1725
2124
|
interface DatePickerProps extends Omit<TextInputWithPlaceholderProps, "defaultValue" | "inputMode" | "minLength" | "maxLength" | "pattern" | "type" | "showPassword" | "placeholder" | "trailingInputIcon" | "prefix" | "suffix">, Omit<CalendarProps, "onDateSelect" | "onRangeSelect" | "selectedDate" | "selectedRange"> {
|
|
2125
|
+
/**
|
|
2126
|
+
* Ref to the underlying input element.
|
|
2127
|
+
*/
|
|
2128
|
+
ref?: Ref<HTMLInputElement>;
|
|
2129
|
+
/**
|
|
2130
|
+
* Whether the DatePicker should take up the full width of its container.
|
|
2131
|
+
*/
|
|
1726
2132
|
isFluid?: boolean;
|
|
2133
|
+
/**
|
|
2134
|
+
* Callback when a single date is selected.
|
|
2135
|
+
*/
|
|
1727
2136
|
onDateSelect?: (value: {
|
|
1728
2137
|
date: Date;
|
|
1729
2138
|
formattedDate: string;
|
|
1730
2139
|
}) => void;
|
|
2140
|
+
/**
|
|
2141
|
+
* Callback when a date range is selected.
|
|
2142
|
+
*/
|
|
1731
2143
|
onRangeSelect?: (value: DatePickerRangeSelection$1) => void;
|
|
1732
2144
|
}
|
|
1733
2145
|
|
|
1734
|
-
declare const DatePickerRange: React__default.
|
|
2146
|
+
declare const DatePickerRange: ({ inputStart, inputEnd, type, minDate, maxDate, disabledDates, onRangeSelect, isFluid, }: DatePickerRangeProps) => React__default.JSX.Element;
|
|
1735
2147
|
interface DatePickerRangeSelection extends RangeSelection {
|
|
1736
2148
|
formattedStart: string;
|
|
1737
2149
|
formattedEnd: string;
|
|
1738
2150
|
}
|
|
1739
2151
|
type SharedInputProps = Omit<TextInputWithPlaceholderProps, "defaultValue" | "inputMode" | "minLength" | "maxLength" | "pattern" | "type" | "showPassword" | "placeholder" | "trailingInputIcon" | "prefix" | "suffix" | "label"> & Partial<Pick<TextInputWithPlaceholderProps, "label">>;
|
|
1740
2152
|
interface DatePickerRangeProps extends Pick<CalendarProps, "type" | "minDate" | "maxDate" | "disabledDates"> {
|
|
2153
|
+
/**
|
|
2154
|
+
* Configuration for the start date input.
|
|
2155
|
+
*/
|
|
1741
2156
|
inputStart: SharedInputProps;
|
|
2157
|
+
/**
|
|
2158
|
+
* Configuration for the end date input.
|
|
2159
|
+
*/
|
|
1742
2160
|
inputEnd: SharedInputProps;
|
|
2161
|
+
/**
|
|
2162
|
+
* Callback when a date range is selected.
|
|
2163
|
+
*/
|
|
1743
2164
|
onRangeSelect?: (value: DatePickerRangeSelection) => void;
|
|
1744
2165
|
/**
|
|
1745
2166
|
* Enable to make the `DatePickerRange` fill its parent container
|
|
@@ -1750,7 +2171,7 @@ interface DatePickerRangeProps extends Pick<CalendarProps, "type" | "minDate" |
|
|
|
1750
2171
|
/**
|
|
1751
2172
|
* Use `Disclosure` to show and hide sections of content.
|
|
1752
2173
|
*/
|
|
1753
|
-
declare const Disclosure:
|
|
2174
|
+
declare const Disclosure: ({ children, headingLevel, indentDetails, isOpen, summary, ...props }: DisclosureProps) => React__default.JSX.Element;
|
|
1754
2175
|
interface DisclosureProps {
|
|
1755
2176
|
/**
|
|
1756
2177
|
* Content to display in the Disclosure.
|
|
@@ -1778,7 +2199,7 @@ interface DisclosureProps {
|
|
|
1778
2199
|
/**
|
|
1779
2200
|
* Use `DisclosureMini` to show and hide sections of content.
|
|
1780
2201
|
*/
|
|
1781
|
-
declare const DisclosureMini:
|
|
2202
|
+
declare const DisclosureMini: ({ children, summary, onClick, id, isOpen, iconPosition, size, ...props }: DisclosureMiniProps) => React__default.JSX.Element;
|
|
1782
2203
|
interface DisclosureMiniProps {
|
|
1783
2204
|
/**
|
|
1784
2205
|
* Content to display in the DisclosureMini.
|
|
@@ -1813,7 +2234,7 @@ interface DisclosureMiniProps {
|
|
|
1813
2234
|
declare const iconNames: readonly ["alertDismiss", "alertError", "alertGeneral", "alertSuccess", "alertWarning", "avatarUser", "breadcrumbLeft", "breadcrumbRight", "buttonLeft", "buttonRight", "calendarLeft", "calendarRight", "cardRight", "cardPlay", "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", "textInputShowPassword", "textInputHidePassword", "textInputClear", "toastGeneral", "toastSuccess", "toastWarning", "toastError", "toastDismiss", "videoPlayerTranscript", "videoPlayerPlay"];
|
|
1814
2235
|
|
|
1815
2236
|
/** Use `ThemeIcon` to display an icon that allows switching between theme-specific icons. */
|
|
1816
|
-
declare const ThemeIcon:
|
|
2237
|
+
declare const ThemeIcon: ({ size, icon, color, ...props }: ThemeIconProps) => React__default.JSX.Element;
|
|
1817
2238
|
interface ThemeIconProps {
|
|
1818
2239
|
/**
|
|
1819
2240
|
* Size of the Icon, in pixels.
|
|
@@ -1831,7 +2252,7 @@ interface ThemeIconProps {
|
|
|
1831
2252
|
type ThemeIconNames = (typeof iconNames)[number];
|
|
1832
2253
|
|
|
1833
2254
|
/** Use `Download` to provide users with a file download action. */
|
|
1834
|
-
declare const Download: React__default.
|
|
2255
|
+
declare const Download: ({ name, onClick, description, href, type, size, icon, isCompact, isFullWidth, }: DownloadProps) => React__default.JSX.Element;
|
|
1835
2256
|
interface DownloadProps {
|
|
1836
2257
|
/**
|
|
1837
2258
|
* Name for `<Download />`
|
|
@@ -1871,7 +2292,7 @@ interface DownloadProps {
|
|
|
1871
2292
|
onClick?: (e: MouseEvent$1<HTMLAnchorElement>) => void;
|
|
1872
2293
|
}
|
|
1873
2294
|
|
|
1874
|
-
declare const Drawer: React__default.
|
|
2295
|
+
declare const Drawer: ({ isOpen, children, onRequestClose, noOverlay, shouldReturnFocus, size, height, width, position, draggable, snapPoints, snapBehaviour, dragDownToDismiss, onDragHandleClick, ariaDescription, ...props }: DrawerProps) => React__default.JSX.Element;
|
|
1875
2296
|
interface DrawerProps {
|
|
1876
2297
|
/**
|
|
1877
2298
|
* Show or hide page overlay.
|
|
@@ -1906,7 +2327,7 @@ interface DrawerProps {
|
|
|
1906
2327
|
/**
|
|
1907
2328
|
* Content to include with in the `Drawer` This should typically be `DrawerHeader`, `DrawerFooter` and `DrawerFooter`. This can also have custom content.
|
|
1908
2329
|
*/
|
|
1909
|
-
children?:
|
|
2330
|
+
children?: ReactNode;
|
|
1910
2331
|
/**
|
|
1911
2332
|
* Set the position of the `Drawer`
|
|
1912
2333
|
*/
|
|
@@ -1931,7 +2352,7 @@ interface DrawerProps {
|
|
|
1931
2352
|
*/
|
|
1932
2353
|
dragDownToDismiss?: boolean;
|
|
1933
2354
|
/**
|
|
1934
|
-
*
|
|
2355
|
+
* Invoke function when drag handle is clicked
|
|
1935
2356
|
*/
|
|
1936
2357
|
onDragHandleClick?: (e: React__default.MouseEvent) => void;
|
|
1937
2358
|
/**
|
|
@@ -1940,36 +2361,53 @@ interface DrawerProps {
|
|
|
1940
2361
|
ariaDescription: string;
|
|
1941
2362
|
}
|
|
1942
2363
|
|
|
1943
|
-
declare const DrawerHeader: React__default.
|
|
2364
|
+
declare const DrawerHeader: ({ title, isFixed, isResponsive, children, isFullBleed, titleWordWrap, ...props }: DrawerHeaderProps) => React__default.JSX.Element;
|
|
1944
2365
|
interface DrawerHeaderProps extends Pick<HeadingProps, "isResponsive"> {
|
|
1945
2366
|
/**
|
|
1946
|
-
*
|
|
2367
|
+
* Content to display within for the DrawerHeader. Can not be used in conjunction with `title`.
|
|
2368
|
+
*/
|
|
2369
|
+
children?: ReactNode;
|
|
2370
|
+
/**
|
|
2371
|
+
* Title for the DrawerHeader. Can not be used in conjunction with `children`.
|
|
2372
|
+
|
|
1947
2373
|
*/
|
|
1948
2374
|
title?: string;
|
|
1949
2375
|
/**
|
|
1950
2376
|
* Determine if the `DrawerHeader` is fixed to the top of the `Drawer`
|
|
1951
2377
|
*/
|
|
1952
2378
|
isFixed?: boolean;
|
|
2379
|
+
/**
|
|
2380
|
+
* Removes padding within the DrawerHeader
|
|
2381
|
+
*/
|
|
2382
|
+
isFullBleed?: boolean;
|
|
2383
|
+
/**
|
|
2384
|
+
* Whether long words in title should be wrapped.
|
|
2385
|
+
*/
|
|
2386
|
+
titleWordWrap?: boolean;
|
|
1953
2387
|
}
|
|
1954
2388
|
|
|
1955
|
-
declare const DrawerFooter: React__default.
|
|
2389
|
+
declare const DrawerFooter: ({ isFixed, isFullBleed, children, }: DrawerFooterProps) => React__default.JSX.Element;
|
|
1956
2390
|
interface DrawerFooterProps {
|
|
1957
2391
|
/**
|
|
1958
2392
|
* Content to display within the DrawerFooter. This will typically be ButtonGroup
|
|
1959
2393
|
*/
|
|
1960
|
-
children?:
|
|
2394
|
+
children?: ReactNode;
|
|
1961
2395
|
/**
|
|
1962
2396
|
* Determine if the `DrawerFooter` is fixed to the bottom of the `Drawer`
|
|
1963
2397
|
*/
|
|
1964
2398
|
isFixed?: boolean;
|
|
2399
|
+
/**
|
|
2400
|
+
* Removes padding within the DrawerFooter
|
|
2401
|
+
*/
|
|
2402
|
+
isFullBleed?: boolean;
|
|
1965
2403
|
}
|
|
1966
2404
|
|
|
1967
|
-
declare const DrawerContent: React__default.
|
|
2405
|
+
declare const DrawerContent: ({ isFullBleed, children, }: DrawerContentProps) => React__default.JSX.Element;
|
|
1968
2406
|
interface DrawerContentProps {
|
|
1969
2407
|
/**
|
|
1970
|
-
* Display content within the DrawerContent
|
|
2408
|
+
* Display content within the DrawerContent section
|
|
1971
2409
|
*/
|
|
1972
|
-
children:
|
|
2410
|
+
children: ReactNode;
|
|
1973
2411
|
/**
|
|
1974
2412
|
* This property removes all arc styling and opens the Drawer to have fully custom content
|
|
1975
2413
|
*/
|
|
@@ -1979,7 +2417,7 @@ interface DrawerContentProps {
|
|
|
1979
2417
|
/**
|
|
1980
2418
|
* Use `Elevation` to elevate what matters.
|
|
1981
2419
|
*/
|
|
1982
|
-
declare const Elevation:
|
|
2420
|
+
declare const Elevation: ({ children, level, isFullWidth, ...props }: ElevationProps) => React__default.JSX.Element;
|
|
1983
2421
|
interface ElevationProps {
|
|
1984
2422
|
/**
|
|
1985
2423
|
* Contents to Elevate.
|
|
@@ -1995,7 +2433,7 @@ interface ElevationProps {
|
|
|
1995
2433
|
isFullWidth?: boolean;
|
|
1996
2434
|
}
|
|
1997
2435
|
|
|
1998
|
-
declare const FilterControls:
|
|
2436
|
+
declare const FilterControls: ({ children, controlsAlignment, }: FilterControlsProps) => React__default.JSX.Element;
|
|
1999
2437
|
interface FilterControlsProps {
|
|
2000
2438
|
/**
|
|
2001
2439
|
* Contents of the `<FilterControls />` Should contain `<FilterControl />`
|
|
@@ -2007,7 +2445,7 @@ interface FilterControlsProps {
|
|
|
2007
2445
|
controlsAlignment?: "left" | "right" | "center";
|
|
2008
2446
|
}
|
|
2009
2447
|
|
|
2010
|
-
declare const FilterItems:
|
|
2448
|
+
declare const FilterItems: ({ children, error, displayType, }: FilterItemsProps) => React__default.JSX.Element;
|
|
2011
2449
|
interface FilterItemsProps {
|
|
2012
2450
|
/**
|
|
2013
2451
|
* Render children of `<FilterItems />`. This should only use `<FilterItem />`
|
|
@@ -2024,12 +2462,15 @@ interface FilterItemsProps {
|
|
|
2024
2462
|
}
|
|
2025
2463
|
|
|
2026
2464
|
/** Use `Filter` to filter and categorise page content. */
|
|
2027
|
-
declare const Filter:
|
|
2465
|
+
declare const Filter: ({ children, onChange, controls, displayType, controlsAlignment, logicType, error, ...props }: FilterProps) => React__default.JSX.Element;
|
|
2028
2466
|
interface FilterProps {
|
|
2029
2467
|
/**
|
|
2030
2468
|
* Contents of the `<Filter />` Should contain `<FilterItem />`
|
|
2031
2469
|
*/
|
|
2032
2470
|
children?: ReactNode;
|
|
2471
|
+
/**
|
|
2472
|
+
* Array of filter control configurations
|
|
2473
|
+
*/
|
|
2033
2474
|
controls: {
|
|
2034
2475
|
label: string;
|
|
2035
2476
|
isSelected?: boolean;
|
|
@@ -2057,7 +2498,7 @@ interface FilterProps {
|
|
|
2057
2498
|
error?: ReactNode;
|
|
2058
2499
|
}
|
|
2059
2500
|
|
|
2060
|
-
declare const FilterItem:
|
|
2501
|
+
declare const FilterItem: ({ children }: FilterItemProps) => React__default.JSX.Element;
|
|
2061
2502
|
interface FilterItemProps {
|
|
2062
2503
|
/**
|
|
2063
2504
|
* Content to display within `FilterItem`
|
|
@@ -2070,7 +2511,7 @@ interface FilterItemProps {
|
|
|
2070
2511
|
}
|
|
2071
2512
|
|
|
2072
2513
|
/** Group `FilterControl` components to add controls to `Filter` component. */
|
|
2073
|
-
declare const FilterControl:
|
|
2514
|
+
declare const FilterControl: ({ children, onClick, isSelected, }: FilterControlProps) => React__default.JSX.Element;
|
|
2074
2515
|
interface FilterControlProps {
|
|
2075
2516
|
/**
|
|
2076
2517
|
* Name of the `<FilterControl />`
|
|
@@ -2089,8 +2530,8 @@ interface FilterControlProps {
|
|
|
2089
2530
|
/**
|
|
2090
2531
|
* Use `GhostedHeroBanner` to grab attention and convey the main message or purpose of a webpage
|
|
2091
2532
|
*/
|
|
2092
|
-
declare const GhostedHeroBanner: React__default.
|
|
2093
|
-
type GhostedHeroBannerProps = Pick<TemplateBannerProps, "heading" | "img" | "children" | "label" | "text" | "headingLevel" | "fontStyle">;
|
|
2533
|
+
declare const GhostedHeroBanner: ({ heading, headingLevel, label, text, img, children, fontStyle, headingWordWrap, ...props }: GhostedHeroBannerProps) => React__default.JSX.Element;
|
|
2534
|
+
type GhostedHeroBannerProps = Pick<TemplateBannerProps, "heading" | "img" | "children" | "label" | "text" | "headingLevel" | "fontStyle" | "headingWordWrap">;
|
|
2094
2535
|
|
|
2095
2536
|
/**
|
|
2096
2537
|
* Provides an object of breakpoints for responsive designs.
|
|
@@ -2116,7 +2557,7 @@ type ScrimFadeSize = "l" | "m" | "s";
|
|
|
2116
2557
|
/**
|
|
2117
2558
|
* Use `GradientPageBackground` as a content wrapper blending multiple colours to add depth, mood or emphasise hero sections, footer sections, or mid-page section backgrounds.
|
|
2118
2559
|
*/
|
|
2119
|
-
declare const GradientPageBackground: React__default.
|
|
2560
|
+
declare const GradientPageBackground: ({ gradient, responsiveGradient, children, scrimFadeSize, scrimFadeHeights, extendBackgrounds, loading, scrimFadePosition, ...props }: GradientPageBackgroundProps) => React__default.JSX.Element;
|
|
2120
2561
|
interface GradientPageBackgroundProps {
|
|
2121
2562
|
/**
|
|
2122
2563
|
* Gradient for the component. You can import these directly from the @arc-ui/gradients package, or pass your own.
|
|
@@ -2155,7 +2596,7 @@ interface GradientPageBackgroundProps {
|
|
|
2155
2596
|
/**
|
|
2156
2597
|
* Use `Grid` to compose layouts on a 12-column grid. Aligns with sibling `Section` components.
|
|
2157
2598
|
*/
|
|
2158
|
-
declare const Grid: React__default.
|
|
2599
|
+
declare const Grid: ({ children, isFluid, isDebugVisible, isGutterless, isExtended, ...props }: GridProps) => React__default.JSX.Element;
|
|
2159
2600
|
interface GridProps extends ExtentableContainer {
|
|
2160
2601
|
/**
|
|
2161
2602
|
* `Grid` is set to 100% width if true.
|
|
@@ -2186,26 +2627,50 @@ type Column = ColumnConfig<ColumnValue>;
|
|
|
2186
2627
|
type Arrangement = ColumnConfig<GridValue>;
|
|
2187
2628
|
type Alignment = ColumnConfig<AlignmentValue>;
|
|
2188
2629
|
|
|
2189
|
-
declare const GridCol: React__default.
|
|
2630
|
+
declare const GridCol: ({ order, offset, align, children, ...props }: GridColProps) => React__default.JSX.Element;
|
|
2190
2631
|
interface GridColProps extends Column {
|
|
2632
|
+
/**
|
|
2633
|
+
* Offset configuration for the column
|
|
2634
|
+
*/
|
|
2191
2635
|
offset?: Arrangement;
|
|
2636
|
+
/**
|
|
2637
|
+
* Order configuration for the column
|
|
2638
|
+
*/
|
|
2192
2639
|
order?: Arrangement;
|
|
2640
|
+
/**
|
|
2641
|
+
* Alignment configuration for the column
|
|
2642
|
+
*/
|
|
2193
2643
|
align?: Alignment;
|
|
2644
|
+
/**
|
|
2645
|
+
* Content to display in the GridCol
|
|
2646
|
+
*/
|
|
2194
2647
|
children: React__default.ReactNode;
|
|
2195
2648
|
}
|
|
2196
2649
|
|
|
2197
|
-
declare const GridRow: React__default.
|
|
2650
|
+
declare const GridRow: ({ direction, align, justify, children, ...props }: GridRowProps) => React__default.JSX.Element;
|
|
2198
2651
|
interface GridRowProps {
|
|
2652
|
+
/**
|
|
2653
|
+
* Alignment of items in the row
|
|
2654
|
+
*/
|
|
2199
2655
|
align?: AlignmentValue;
|
|
2656
|
+
/**
|
|
2657
|
+
* Direction of the row
|
|
2658
|
+
*/
|
|
2200
2659
|
direction?: "column" | "row" | "column-reverse" | "row-reverse";
|
|
2660
|
+
/**
|
|
2661
|
+
* Justification of items in the row
|
|
2662
|
+
*/
|
|
2201
2663
|
justify?: "start" | "center" | "end" | "between" | "around" | "normal";
|
|
2664
|
+
/**
|
|
2665
|
+
* Content to display in the GridRow
|
|
2666
|
+
*/
|
|
2202
2667
|
children: React__default.ReactNode;
|
|
2203
2668
|
}
|
|
2204
2669
|
|
|
2205
2670
|
/**
|
|
2206
2671
|
* Use `Group` to arrange flexible items in a row.
|
|
2207
2672
|
*/
|
|
2208
|
-
declare const Group:
|
|
2673
|
+
declare const Group: ({ children, grow, growEqual, gutterBorder, noWrap, isExtended, ...props }: GroupProps) => React__default.JSX.Element;
|
|
2209
2674
|
interface GroupProps extends ExtentableContainer {
|
|
2210
2675
|
/**
|
|
2211
2676
|
* Contents of the Group Should only contain `GroupItem`.
|
|
@@ -2229,7 +2694,7 @@ interface GroupProps extends ExtentableContainer {
|
|
|
2229
2694
|
noWrap?: boolean;
|
|
2230
2695
|
}
|
|
2231
2696
|
|
|
2232
|
-
declare const GroupItem:
|
|
2697
|
+
declare const GroupItem: ({ children, grow, isDebugVisible, ...props }: ItemProps) => React__default.JSX.Element;
|
|
2233
2698
|
interface ItemProps {
|
|
2234
2699
|
/**
|
|
2235
2700
|
* Content to display in the GroupItem.
|
|
@@ -2247,7 +2712,7 @@ interface ItemProps {
|
|
|
2247
2712
|
}
|
|
2248
2713
|
|
|
2249
2714
|
/** Use `HeroBanner` to promote key content or products with bold visuals and messaging. */
|
|
2250
|
-
declare const HeroBanner:
|
|
2715
|
+
declare const HeroBanner: ({ heading, label, text, img, contentRatio, children, minHeight, isReversed, isElevated, headingLevel, extendBeyondContainer, type, fontStyle, headingWordWrap, ...props }: HeroBannerProps) => React__default.JSX.Element;
|
|
2251
2716
|
interface HeroBannerProps extends Omit<TemplateBannerProps, "headingSize" | "alignment" | "additionalTopMargin"> {
|
|
2252
2717
|
/**
|
|
2253
2718
|
* Extend HeroBanner 56px beyond its container on both sides at larger breakpoints (e.g., 1440px and above).
|
|
@@ -2256,11 +2721,11 @@ interface HeroBannerProps extends Omit<TemplateBannerProps, "headingSize" | "ali
|
|
|
2256
2721
|
}
|
|
2257
2722
|
|
|
2258
2723
|
type ElementUnion = HTMLButtonElement | HTMLAnchorElement;
|
|
2259
|
-
type
|
|
2724
|
+
type ButtonRef = Ref<ElementUnion> | null;
|
|
2260
2725
|
/**
|
|
2261
2726
|
* Use `HeroButton` as the most prominent call-to-action. It should be used sparingly at the most important parts of a user journey only.
|
|
2262
2727
|
*/
|
|
2263
|
-
declare const HeroButton:
|
|
2728
|
+
declare const HeroButton: ({ label, buttonStyle, icon, ariaLabel, isLoading, onClick, href, id, rel, target, type, form, ref, ...props }: HeroButtonProps) => React__default.JSX.Element;
|
|
2264
2729
|
interface LinkElementProps {
|
|
2265
2730
|
/**
|
|
2266
2731
|
* URL to link to if `HeroButton` elementType is 'a'.
|
|
@@ -2307,7 +2772,7 @@ interface HeroButtonProps extends HeroButtonElementProps, LinkElementProps {
|
|
|
2307
2772
|
/**
|
|
2308
2773
|
* Optional property to provide component Ref
|
|
2309
2774
|
*/
|
|
2310
|
-
ref?:
|
|
2775
|
+
ref?: ButtonRef;
|
|
2311
2776
|
/**
|
|
2312
2777
|
* Text to override `label` with additional, more precise information
|
|
2313
2778
|
* specifically for screen reader users.
|
|
@@ -2333,23 +2798,44 @@ interface BreakpointVisibility {
|
|
|
2333
2798
|
}
|
|
2334
2799
|
|
|
2335
2800
|
/** Use `Hidden` to hide it's children at specific breakpoints */
|
|
2336
|
-
declare const Hidden: React__default.
|
|
2801
|
+
declare const Hidden: ({ children, xs, s, m, l, xl, xxl, ...props }: HiddenProps) => React__default.JSX.Element;
|
|
2337
2802
|
interface HiddenProps extends BreakpointVisibility {
|
|
2803
|
+
/**
|
|
2804
|
+
* Content to hide at specific breakpoints
|
|
2805
|
+
*/
|
|
2338
2806
|
children: React__default.ReactNode;
|
|
2339
2807
|
}
|
|
2340
2808
|
|
|
2341
2809
|
type CardFooterIcon = "play" | "arrow";
|
|
2342
2810
|
interface CardFooterProps {
|
|
2811
|
+
/**
|
|
2812
|
+
* Metadata text or date to display in the footer.
|
|
2813
|
+
*/
|
|
2343
2814
|
metaText?: string | Date;
|
|
2815
|
+
/**
|
|
2816
|
+
* Whether to use dark pathway styling.
|
|
2817
|
+
*/
|
|
2344
2818
|
isDarkPathway?: boolean;
|
|
2819
|
+
/**
|
|
2820
|
+
* Icon to display in the button.
|
|
2821
|
+
*/
|
|
2345
2822
|
buttonIcon?: CardFooterIcon;
|
|
2823
|
+
/**
|
|
2824
|
+
* Size of the button.
|
|
2825
|
+
*/
|
|
2346
2826
|
buttonSize?: "s" | "m";
|
|
2827
|
+
/**
|
|
2828
|
+
* Whether to show the button.
|
|
2829
|
+
*/
|
|
2347
2830
|
showButton?: boolean;
|
|
2831
|
+
/**
|
|
2832
|
+
* Whether the card is in a hovered state.
|
|
2833
|
+
*/
|
|
2348
2834
|
isHovered?: boolean;
|
|
2349
2835
|
}
|
|
2350
2836
|
|
|
2351
2837
|
/** Use `HorizontalCard` to display card content in a horizontal layout. */
|
|
2352
|
-
declare const HorizontalCard: React__default.
|
|
2838
|
+
declare const HorizontalCard: ({ text, heading, headingLevel, img, metaText, url, onClick, ...props }: HorizontalCardProps) => React__default.JSX.Element;
|
|
2353
2839
|
interface HorizontalCardProps {
|
|
2354
2840
|
/**
|
|
2355
2841
|
* Heading for the HorizontalCard.
|
|
@@ -2388,7 +2874,7 @@ interface HorizontalCardProps {
|
|
|
2388
2874
|
/**
|
|
2389
2875
|
* Use `Icon` to display brand iconography.
|
|
2390
2876
|
*/
|
|
2391
|
-
declare const Icon:
|
|
2877
|
+
declare const Icon: ({ testId, icon, label, size, color, isInline, ...props }: IconProps) => React__default.JSX.Element;
|
|
2392
2878
|
declare const colors: readonly ["auto", "brand", "brand-alt", "statusRed", "statusAmber", "statusGreen"];
|
|
2393
2879
|
type IconColor = (typeof colors)[number];
|
|
2394
2880
|
interface IconProps {
|
|
@@ -2421,7 +2907,7 @@ interface IconProps {
|
|
|
2421
2907
|
type CardHeadingSize = Extract<HeadingSize, "m" | "l">;
|
|
2422
2908
|
|
|
2423
2909
|
/** Use `ImpactCard` for important content that needs additional hierarchy and prominence. */
|
|
2424
|
-
declare const ImpactCard:
|
|
2910
|
+
declare const ImpactCard: ({ url, onClick, heading, img, label, minHeight, headingSize, headingWordWrap, linkData, pathway, headingLevel, buttonIcon, labelLevel, ...props }: ImpactCardProps) => React__default.JSX.Element;
|
|
2425
2911
|
type ImpactCardPathway = "light" | "dark";
|
|
2426
2912
|
interface ImpactCardProps {
|
|
2427
2913
|
/**
|
|
@@ -2432,6 +2918,10 @@ interface ImpactCardProps {
|
|
|
2432
2918
|
* Heading size for the ImpactCard.
|
|
2433
2919
|
*/
|
|
2434
2920
|
headingSize?: CardHeadingSize;
|
|
2921
|
+
/**
|
|
2922
|
+
* Whether long words in heading should be wrapped.
|
|
2923
|
+
*/
|
|
2924
|
+
headingWordWrap?: boolean;
|
|
2435
2925
|
/**
|
|
2436
2926
|
* Url for the ImpactCard. Makes the whole card a link
|
|
2437
2927
|
*/
|
|
@@ -2478,7 +2968,7 @@ interface ImpactCardProps {
|
|
|
2478
2968
|
}
|
|
2479
2969
|
|
|
2480
2970
|
/** Use `InformationCard` for flexibility and the ability to focus and highlight product specific content. */
|
|
2481
|
-
declare const InformationCard:
|
|
2971
|
+
declare const InformationCard: ({ cardUrl, onClick, heading, text, label, footerLogo, button, image, badges, icon, minHeight, minHeights, headingLevel, labelLevel, headingWordWrap, ...props }: InformationCardProps) => React__default.JSX.Element;
|
|
2482
2972
|
type InformationCardImage = Pick<ImageProps, "alt" | "loading" | "width" | "height" | "src" | "fadeOnLoad" | "fetchPriority">;
|
|
2483
2973
|
type InformationCardButtonProps = Pick<ButtonV2Props, "label" | "onClick" | "href">;
|
|
2484
2974
|
interface minHeightsProps {
|
|
@@ -2549,12 +3039,16 @@ interface InformationCardProps {
|
|
|
2549
3039
|
* Heading level for the InformationCard label.
|
|
2550
3040
|
*/
|
|
2551
3041
|
labelLevel?: HeadingLevel;
|
|
3042
|
+
/**
|
|
3043
|
+
* Whether long words in heading should be wrapped.
|
|
3044
|
+
*/
|
|
3045
|
+
headingWordWrap?: boolean;
|
|
2552
3046
|
}
|
|
2553
3047
|
|
|
2554
3048
|
/**
|
|
2555
3049
|
* Use `Markup` to display HTML-formatted text.
|
|
2556
3050
|
*/
|
|
2557
|
-
declare const Markup:
|
|
3051
|
+
declare const Markup: ({ children, isMeasured, ...props }: MarkupProps) => React__default.JSX.Element;
|
|
2558
3052
|
interface MarkupProps {
|
|
2559
3053
|
/**
|
|
2560
3054
|
* HTML-formatted text to display in Markup.
|
|
@@ -2577,7 +3071,7 @@ interface MediaCardVideo extends Partial<Omit<VideoPlayerProps$1, "url" | "title
|
|
|
2577
3071
|
/**
|
|
2578
3072
|
* Use `MediaCard` to contain content and an image about a single subject.
|
|
2579
3073
|
*/
|
|
2580
|
-
declare const MediaCard:
|
|
3074
|
+
declare const MediaCard: ({ media, url, onClick, heading, label, labelLevel, text, metaText, minHeight, buttonIcon, isContained, headingLevel, headingWordWrap, ...props }: MediaCardProps) => React__default.JSX.Element;
|
|
2581
3075
|
interface MediaCardProps {
|
|
2582
3076
|
/**
|
|
2583
3077
|
* Heading for the MediaCard.
|
|
@@ -2627,12 +3121,16 @@ interface MediaCardProps {
|
|
|
2627
3121
|
* Heading level for the MediaCard label.
|
|
2628
3122
|
*/
|
|
2629
3123
|
labelLevel?: HeadingLevel;
|
|
3124
|
+
/**
|
|
3125
|
+
* Whether long words in heading should be wrapped.
|
|
3126
|
+
*/
|
|
3127
|
+
headingWordWrap?: boolean;
|
|
2630
3128
|
}
|
|
2631
3129
|
|
|
2632
3130
|
/**
|
|
2633
3131
|
* Use 'Menu' to display a list of selectable options, e.g. suggestions, presets or autocomplete results.
|
|
2634
3132
|
*/
|
|
2635
|
-
declare const Menu: React__default.
|
|
3133
|
+
declare const Menu: ({ defaultOpen, open, onOpenChange, modal, isMobileMenu, children, defaultWidth, ...props }: MenuProps) => React__default.JSX.Element;
|
|
2636
3134
|
interface MenuProps {
|
|
2637
3135
|
/**
|
|
2638
3136
|
* The content of the menu
|
|
@@ -2664,7 +3162,7 @@ interface MenuProps {
|
|
|
2664
3162
|
defaultWidth?: string | number;
|
|
2665
3163
|
}
|
|
2666
3164
|
|
|
2667
|
-
declare const MenuItemContentTemplate: React__default.
|
|
3165
|
+
declare const MenuItemContentTemplate: ({ leadingIcon, supportingText, keyCommands, trailingIcon, children, }: MenuItemContentTemplateProps) => React__default.JSX.Element;
|
|
2668
3166
|
interface MenuItemContentTemplateProps {
|
|
2669
3167
|
/**
|
|
2670
3168
|
* Optional supporting text that appears below the label for additional context.
|
|
@@ -2688,7 +3186,7 @@ interface MenuItemContentTemplateProps {
|
|
|
2688
3186
|
keyCommands?: string;
|
|
2689
3187
|
}
|
|
2690
3188
|
|
|
2691
|
-
declare const MenuItemCheckbox: React__default.
|
|
3189
|
+
declare const MenuItemCheckbox: ({ children, checked, onCheckedChange, isDisabled, onSelect, id, shouldKeepOpen, ...props }: MenuItemCheckboxProps) => React__default.JSX.Element;
|
|
2692
3190
|
interface MenuItemCheckboxProps extends Pick<MenuItemContentTemplateProps, "supportingText" | "children"> {
|
|
2693
3191
|
/**
|
|
2694
3192
|
* Controls whether the checkbox is checked, unchecked.
|
|
@@ -2719,8 +3217,12 @@ interface MenuItemCheckboxProps extends Pick<MenuItemContentTemplateProps, "supp
|
|
|
2719
3217
|
/**
|
|
2720
3218
|
* The component that pops out when the dropdown menu is open.
|
|
2721
3219
|
*/
|
|
2722
|
-
declare const MenuContent:
|
|
3220
|
+
declare const MenuContent: ({ ref, children, width, minWidth, maxWidth, align, alignOffset, side, initalTitle, isFluidToViewport, ...props }: MenuContentProps) => React__default.JSX.Element;
|
|
2723
3221
|
interface MenuContentProps {
|
|
3222
|
+
/**
|
|
3223
|
+
* Ref to the underlying div element
|
|
3224
|
+
*/
|
|
3225
|
+
ref?: React__default.Ref<HTMLDivElement>;
|
|
2724
3226
|
/**
|
|
2725
3227
|
* The content inside the menu, typically `MenuItem`, `MenuGroup`, and other menu elements.
|
|
2726
3228
|
*/
|
|
@@ -2762,7 +3264,7 @@ interface MenuContentProps {
|
|
|
2762
3264
|
/**
|
|
2763
3265
|
* Displays footer content at the bottom of the menu.
|
|
2764
3266
|
*/
|
|
2765
|
-
declare const MenuFooter:
|
|
3267
|
+
declare const MenuFooter: ({ leadingIcon, trailingIcon, supportingText, keyCommands, children, onClick, isDisabled, ariaLabel, }: MenuFooterProps) => React__default.JSX.Element;
|
|
2766
3268
|
interface MenuFooterProps extends MenuItemContentTemplateProps {
|
|
2767
3269
|
/**
|
|
2768
3270
|
* Click event handler triggered when the menu header is selected.
|
|
@@ -2785,7 +3287,7 @@ interface MenuFooterProps extends MenuItemContentTemplateProps {
|
|
|
2785
3287
|
/**
|
|
2786
3288
|
* Groups related menu items together within a dropdown menu.
|
|
2787
3289
|
*/
|
|
2788
|
-
declare const MenuGroup: React__default.
|
|
3290
|
+
declare const MenuGroup: ({ children, ...props }: MenuGroupProps) => React__default.JSX.Element;
|
|
2789
3291
|
interface MenuGroupProps {
|
|
2790
3292
|
/**
|
|
2791
3293
|
* Menu items grouped together within the menu.
|
|
@@ -2796,7 +3298,7 @@ interface MenuGroupProps {
|
|
|
2796
3298
|
/**
|
|
2797
3299
|
* Displays a header within the dropdown menu.
|
|
2798
3300
|
*/
|
|
2799
|
-
declare const MenuHeader:
|
|
3301
|
+
declare const MenuHeader: ({ leadingIcon, trailingIcon, supportingText, keyCommands, children, onClick, isDisabled, ariaLabel, }: MenuHeaderProps) => React__default.JSX.Element;
|
|
2800
3302
|
interface MenuHeaderProps extends MenuItemContentTemplateProps {
|
|
2801
3303
|
/**
|
|
2802
3304
|
* Click event handler triggered when the menu header is selected.
|
|
@@ -2819,7 +3321,7 @@ interface MenuHeaderProps extends MenuItemContentTemplateProps {
|
|
|
2819
3321
|
/**
|
|
2820
3322
|
* Renders a menu item, optionally as a link if `href` is provided.
|
|
2821
3323
|
*/
|
|
2822
|
-
declare const MenuItem: React__default.
|
|
3324
|
+
declare const MenuItem: ({ leadingIcon, supportingText, keyCommands, trailingIcon, children, onClick, shouldKeepOpen, isDisabled, href, ariaLabel, ...props }: MenuItemProps) => React__default.JSX.Element;
|
|
2823
3325
|
interface MenuItemProps extends MenuItemContentTemplateProps {
|
|
2824
3326
|
/**
|
|
2825
3327
|
* Click event handler triggered when the menu item is selected.
|
|
@@ -2846,7 +3348,7 @@ interface MenuItemProps extends MenuItemContentTemplateProps {
|
|
|
2846
3348
|
/**
|
|
2847
3349
|
* Provides a label to group related menu items.
|
|
2848
3350
|
*/
|
|
2849
|
-
declare const MenuLabel: React__default.
|
|
3351
|
+
declare const MenuLabel: ({ children, ...props }: MenuLabelProps) => React__default.JSX.Element;
|
|
2850
3352
|
interface MenuLabelProps {
|
|
2851
3353
|
/**
|
|
2852
3354
|
* The text content of the label, typically used to group related menu items.
|
|
@@ -2857,7 +3359,7 @@ interface MenuLabelProps {
|
|
|
2857
3359
|
/**
|
|
2858
3360
|
* When used, portals the content part into the body. By default it's arc's theme element
|
|
2859
3361
|
*/
|
|
2860
|
-
declare const MenuPortal: React__default.
|
|
3362
|
+
declare const MenuPortal: ({ children, ...props }: MenuPortalProps) => React__default.JSX.Element;
|
|
2861
3363
|
interface MenuPortalProps {
|
|
2862
3364
|
/**
|
|
2863
3365
|
* The content to be portalled.
|
|
@@ -2868,7 +3370,7 @@ interface MenuPortalProps {
|
|
|
2868
3370
|
/**
|
|
2869
3371
|
* Groups menu items allowing single selection from multiple options.
|
|
2870
3372
|
*/
|
|
2871
|
-
declare const MenuGroupSingleSelect: React__default.
|
|
3373
|
+
declare const MenuGroupSingleSelect: ({ children, value, onValueChange, ...props }: MenuGroupSingleSelectProps) => React__default.JSX.Element;
|
|
2872
3374
|
interface MenuGroupSingleSelectProps {
|
|
2873
3375
|
/**
|
|
2874
3376
|
* The single select items inside the group.
|
|
@@ -2887,7 +3389,7 @@ interface MenuGroupSingleSelectProps {
|
|
|
2887
3389
|
/**
|
|
2888
3390
|
* A selectable menu item used within a radio group.
|
|
2889
3391
|
*/
|
|
2890
|
-
declare const MenuItemSingleSelect: React__default.
|
|
3392
|
+
declare const MenuItemSingleSelect: ({ children, value, disabled, onSelect, leadingIcon, supportingText, shouldKeepOpen, ...props }: MenuItemSingleSelectProps) => React__default.JSX.Element;
|
|
2891
3393
|
interface MenuItemSingleSelectProps extends Omit<MenuItemContentTemplateProps, "trailingIcon"> {
|
|
2892
3394
|
/**
|
|
2893
3395
|
* The value assigned to this radio item.
|
|
@@ -2910,7 +3412,7 @@ interface MenuItemSingleSelectProps extends Omit<MenuItemContentTemplateProps, "
|
|
|
2910
3412
|
/**
|
|
2911
3413
|
* Scrollable container that adjusts height based on surrounding menu content.
|
|
2912
3414
|
*/
|
|
2913
|
-
declare const MenuScrollable: React__default.
|
|
3415
|
+
declare const MenuScrollable: ({ children }: MenuScrollableProps) => React__default.JSX.Element;
|
|
2914
3416
|
interface MenuScrollableProps {
|
|
2915
3417
|
/**
|
|
2916
3418
|
* The content within the scrollable area, typically a list of `MenuItem` components or similar menu elements.
|
|
@@ -2921,24 +3423,33 @@ interface MenuScrollableProps {
|
|
|
2921
3423
|
/**
|
|
2922
3424
|
* Visual separator used to divide groups of menu items.
|
|
2923
3425
|
*/
|
|
2924
|
-
declare const MenuSeparator:
|
|
3426
|
+
declare const MenuSeparator: ({ ...props }: {
|
|
3427
|
+
[x: string]: any;
|
|
3428
|
+
}) => React__default.JSX.Element;
|
|
2925
3429
|
|
|
2926
3430
|
/**
|
|
2927
3431
|
* Container for multi-level menu content within a dropdown menu.
|
|
2928
3432
|
*/
|
|
2929
|
-
declare const MenuItemMultiLevel: React__default.
|
|
3433
|
+
declare const MenuItemMultiLevel: ({ children, ...props }: MenuItemMultiLevelProps) => React__default.JSX.Element;
|
|
2930
3434
|
interface MenuItemMultiLevelProps {
|
|
2931
3435
|
/**
|
|
2932
3436
|
* The content inside the multi-level menu.
|
|
2933
3437
|
*/
|
|
2934
|
-
children:
|
|
3438
|
+
children: ReactNode;
|
|
2935
3439
|
}
|
|
2936
3440
|
|
|
2937
3441
|
/**
|
|
2938
3442
|
* The multi-level menu content that pops out when a menu item with children is hovered or clicked.
|
|
2939
3443
|
*/
|
|
2940
|
-
declare const MenuItemMultiLevelContent:
|
|
3444
|
+
declare const MenuItemMultiLevelContent: {
|
|
3445
|
+
({ ref, children, width, minWidth, maxWidth, alignOffset, ...props }: MenuItemMultiLevelContentProps): React__default.JSX.Element;
|
|
3446
|
+
displayName: string;
|
|
3447
|
+
};
|
|
2941
3448
|
interface MenuItemMultiLevelContentProps {
|
|
3449
|
+
/**
|
|
3450
|
+
* Ref to the underlying div element
|
|
3451
|
+
*/
|
|
3452
|
+
ref?: React__default.Ref<HTMLDivElement>;
|
|
2942
3453
|
/**
|
|
2943
3454
|
* The multi-level menu content, typically containing `Menu.Item` elements.
|
|
2944
3455
|
*/
|
|
@@ -2976,8 +3487,11 @@ interface MenuItemMultiLevelContentProps {
|
|
|
2976
3487
|
/**
|
|
2977
3488
|
* Trigger element that opens a multi-level menu when selected.
|
|
2978
3489
|
*/
|
|
2979
|
-
declare const MenuItemMultiLevelTrigger: React__default.
|
|
2980
|
-
interface
|
|
3490
|
+
declare const MenuItemMultiLevelTrigger: ({ children, isDisabled, leadingIcon, supportingText, keyCommands, ariaLabel, pairedContent, ...props }: InternalMenuItemMultiLevelTriggerProps) => React__default.JSX.Element;
|
|
3491
|
+
interface InternalMenuItemMultiLevelTriggerProps extends MenuItemMultiLevelTriggerProps {
|
|
3492
|
+
/**
|
|
3493
|
+
* The paired content to be displayed in the multi-level menu.
|
|
3494
|
+
*/
|
|
2981
3495
|
pairedContent?: React__default.ReactNode;
|
|
2982
3496
|
}
|
|
2983
3497
|
interface MenuItemMultiLevelTriggerProps extends Pick<MenuItemProps, "keyCommands" | "leadingIcon" | "ariaLabel" | "supportingText"> {
|
|
@@ -2994,7 +3508,7 @@ interface MenuItemMultiLevelTriggerProps extends Pick<MenuItemProps, "keyCommand
|
|
|
2994
3508
|
/**
|
|
2995
3509
|
* The element that toggles the menu.
|
|
2996
3510
|
*/
|
|
2997
|
-
declare const MenuTrigger: React__default.
|
|
3511
|
+
declare const MenuTrigger: ({ children, asChild, ...props }: MenuTriggerProps) => React__default.JSX.Element;
|
|
2998
3512
|
interface MenuTriggerProps {
|
|
2999
3513
|
/**
|
|
3000
3514
|
* The element that triggers the menu when clicked or interacted with.
|
|
@@ -3007,7 +3521,7 @@ interface MenuTriggerProps {
|
|
|
3007
3521
|
}
|
|
3008
3522
|
|
|
3009
3523
|
/** Use `Modal` to display information that needs immediate action from a user. */
|
|
3010
|
-
declare const Modal:
|
|
3524
|
+
declare const Modal: ({ title, description, ariaDescribedBy, isOpen, actions, onRequestClose, children, role, shouldReturnFocus, isContentScrollable, size, fullBleed, customWidths, titleWordWrap, ...props }: ModalProps) => React__default.JSX.Element;
|
|
3011
3525
|
type modalSpan = 4 | 6 | 8 | 10 | 12;
|
|
3012
3526
|
interface ModalProps {
|
|
3013
3527
|
/**
|
|
@@ -3067,12 +3581,16 @@ interface ModalProps {
|
|
|
3067
3581
|
m?: modalSpan;
|
|
3068
3582
|
l?: modalSpan;
|
|
3069
3583
|
};
|
|
3584
|
+
/**
|
|
3585
|
+
* Whether long words in title should be wrapped.
|
|
3586
|
+
*/
|
|
3587
|
+
titleWordWrap?: boolean;
|
|
3070
3588
|
}
|
|
3071
3589
|
|
|
3072
3590
|
/**
|
|
3073
3591
|
* Use `Pagination` to navigate through multiple pages of content.
|
|
3074
3592
|
*/
|
|
3075
|
-
declare const Pagination:
|
|
3593
|
+
declare const Pagination: ({ pageCount, onPageChange, defaultSelectedPage, ...props }: PaginationProps) => React__default.JSX.Element;
|
|
3076
3594
|
interface PaginationProps {
|
|
3077
3595
|
/**
|
|
3078
3596
|
* Number of pages for the pagination
|
|
@@ -3094,7 +3612,7 @@ interface PaginationProps {
|
|
|
3094
3612
|
/**
|
|
3095
3613
|
* Use `PaginationSimple` to navigate through multiple pages of content.
|
|
3096
3614
|
*/
|
|
3097
|
-
declare const PaginationSimple:
|
|
3615
|
+
declare const PaginationSimple: ({ hide, hrefs, onPageChange, isFluid, showEllipsis, ...props }: PaginationSimpleProps) => React__default.JSX.Element;
|
|
3098
3616
|
interface PaginationSimpleProps {
|
|
3099
3617
|
/**
|
|
3100
3618
|
* hide buttons if true.
|
|
@@ -3134,7 +3652,7 @@ interface PaginationSimpleProps {
|
|
|
3134
3652
|
/**
|
|
3135
3653
|
* Use `Popover` to display content in a portal, triggered by a button.
|
|
3136
3654
|
*/
|
|
3137
|
-
declare const Popover:
|
|
3655
|
+
declare const Popover: ({ align, ariaLabel, alignOffset, arrow, background, children, content, asChild, maxWidth, minHeight, onCloseAutoFocus, onEscapeKeyDown, onFocusOutside, onInteractOutside, onOpenAutoFocus, onPointerDownOutside, onOpenChange, open, constrainToViewport, side, sideOffset, zIndex, hideWhenDetached, useBespokeTrigger, isFluidToViewport, contentMargin, isFullBleed, ...props }: PopoverProps) => React__default.JSX.Element;
|
|
3138
3656
|
interface PopoverProps {
|
|
3139
3657
|
/**
|
|
3140
3658
|
* Content to render within Popover Trigger
|
|
@@ -3230,16 +3748,28 @@ interface PopoverProps {
|
|
|
3230
3748
|
* Defaults to `fit-content`, but becomes scrollable if necessary.
|
|
3231
3749
|
*/
|
|
3232
3750
|
constrainToViewport?: boolean;
|
|
3751
|
+
/**
|
|
3752
|
+
* Content components placed into Popovers to respond to the viewport.
|
|
3753
|
+
*/
|
|
3754
|
+
isFluidToViewport?: boolean;
|
|
3233
3755
|
/**
|
|
3234
3756
|
* Use minHeight in conjunction with constrainToViewport to keep the popover legible. Value in px.
|
|
3235
3757
|
*/
|
|
3236
3758
|
minHeight?: number;
|
|
3759
|
+
/**
|
|
3760
|
+
* Add margin to sides of the Popover Content. Margin to match the section margin values at each breakpoint.
|
|
3761
|
+
*/
|
|
3762
|
+
contentMargin?: boolean;
|
|
3763
|
+
/**
|
|
3764
|
+
* Removes all default padding from the content section of the Popover.
|
|
3765
|
+
*/
|
|
3766
|
+
isFullBleed?: boolean;
|
|
3237
3767
|
}
|
|
3238
3768
|
|
|
3239
3769
|
/**
|
|
3240
3770
|
* Use `Poster` to compose content on an image or video background. BT Brand Only.
|
|
3241
3771
|
*/
|
|
3242
|
-
declare const Poster:
|
|
3772
|
+
declare const Poster: ({ background, children, overlay, surface, ...props }: PosterProps) => React__default.JSX.Element;
|
|
3243
3773
|
interface PosterProps {
|
|
3244
3774
|
/**
|
|
3245
3775
|
* Poster background to overlay content on top of. Must be one of PosterImage or PosterVideo.
|
|
@@ -3260,7 +3790,7 @@ interface PosterProps {
|
|
|
3260
3790
|
surface?: "dark-neutral-02" | "light-neutral-01";
|
|
3261
3791
|
}
|
|
3262
3792
|
|
|
3263
|
-
declare const PosterImage:
|
|
3793
|
+
declare const PosterImage: ({ alt, anchor, loading, sizes, src, srcSet, ...props }: PosterImageProps) => React__default.JSX.Element;
|
|
3264
3794
|
interface PosterImageProps {
|
|
3265
3795
|
/**
|
|
3266
3796
|
* Alternative text for the PosterImage, shown if the image cannot be displayed. Consider avoiding this prop if the image is for decorative purposes only.
|
|
@@ -3289,10 +3819,10 @@ interface PosterImageProps {
|
|
|
3289
3819
|
/**
|
|
3290
3820
|
* Contents of the PosterImage.
|
|
3291
3821
|
*/
|
|
3292
|
-
children?:
|
|
3822
|
+
children?: ReactNode;
|
|
3293
3823
|
}
|
|
3294
3824
|
|
|
3295
|
-
declare const PosterVideo:
|
|
3825
|
+
declare const PosterVideo: ({ anchor, autoPlay, children, loop, ...props }: PosterVideoProps) => React__default.JSX.Element;
|
|
3296
3826
|
interface PosterVideoProps {
|
|
3297
3827
|
/**
|
|
3298
3828
|
* Anchor point for the PosterVideo,
|
|
@@ -3319,7 +3849,7 @@ type ProgressBarIcons = "refresh" | "cross" | "tick";
|
|
|
3319
3849
|
/**
|
|
3320
3850
|
* Use `ProgressBar` to show the progress of a specific task within a page.
|
|
3321
3851
|
*/
|
|
3322
|
-
declare const ProgressBar:
|
|
3852
|
+
declare const ProgressBar: ({ state, value, isIndeterminate, headline, ariaLabel, action, title, description, displayValue, headlineWordWrap, ...props }: ProgressBarProps) => React__default.JSX.Element;
|
|
3323
3853
|
interface ProgressBarProps {
|
|
3324
3854
|
/**
|
|
3325
3855
|
* Label for screen readers.
|
|
@@ -3362,11 +3892,19 @@ interface ProgressBarProps {
|
|
|
3362
3892
|
action: () => void;
|
|
3363
3893
|
icon?: ProgressBarIcons;
|
|
3364
3894
|
};
|
|
3895
|
+
/**
|
|
3896
|
+
* Whether long words in headline should be wrapped.
|
|
3897
|
+
*/
|
|
3898
|
+
headlineWordWrap?: boolean;
|
|
3365
3899
|
}
|
|
3366
3900
|
|
|
3367
3901
|
/** Use `ProgressStepper` to provide an overview of a series of steps in a digital journey. */
|
|
3368
|
-
declare const ProgressStepper:
|
|
3902
|
+
declare const ProgressStepper: ({ ref, children, size, isFluid, direction, isExpandable, invertLabelPosition, currentStep, ...props }: ProgressStepperProps) => React__default.JSX.Element;
|
|
3369
3903
|
interface ProgressStepperProps {
|
|
3904
|
+
/**
|
|
3905
|
+
* Ref to the underlying ol element.
|
|
3906
|
+
*/
|
|
3907
|
+
ref?: Ref<HTMLOListElement>;
|
|
3370
3908
|
/**
|
|
3371
3909
|
* Children of `<ProgressStepper />` should only contain `<ProgressStepperItem />`
|
|
3372
3910
|
*/
|
|
@@ -3399,7 +3937,7 @@ interface ProgressStepperProps {
|
|
|
3399
3937
|
|
|
3400
3938
|
type ProgressStatus = "completed" | "current" | "warning" | "error" | "todo";
|
|
3401
3939
|
|
|
3402
|
-
declare const ProgressStepperItem:
|
|
3940
|
+
declare const ProgressStepperItem: ({ title, titleHref, subTitle, direction, status, size, isFluid, invertLabelPosition, ariaLabel, onClick, previousStep, stepContent, isStepContentHidden, isViewing, ...props }: ProgressStepperItemProps) => React__default.JSX.Element;
|
|
3403
3941
|
interface ProgressStepperItemProps {
|
|
3404
3942
|
/**
|
|
3405
3943
|
* Determine a title for `<ProgressStepperItem />`
|
|
@@ -3465,8 +4003,12 @@ interface ProgressStepperItemProps {
|
|
|
3465
4003
|
}
|
|
3466
4004
|
|
|
3467
4005
|
/** Use `ProgressStepperOverflow` to wrap `ProgressStepperItem`s and allow overflow behaviour. */
|
|
3468
|
-
declare const ProgressStepperOverflow:
|
|
4006
|
+
declare const ProgressStepperOverflow: ({ ref, children, size, invertLabelPosition, offsetLeft, ...props }: ProgressStepperOverflowProps) => React__default.JSX.Element;
|
|
3469
4007
|
interface ProgressStepperOverflowProps extends Omit<ProgressStepperProps, "isFluid" | "isExpandable" | "direction"> {
|
|
4008
|
+
/**
|
|
4009
|
+
* Ref to the underlying ol element.
|
|
4010
|
+
*/
|
|
4011
|
+
ref?: Ref<HTMLOListElement>;
|
|
3470
4012
|
/**
|
|
3471
4013
|
* Children of `<ProgressStepperOverflow />` should only contain `<ProgressStepperItem />`
|
|
3472
4014
|
*/
|
|
@@ -3478,7 +4020,7 @@ interface ProgressStepperOverflowProps extends Omit<ProgressStepperProps, "isFlu
|
|
|
3478
4020
|
}
|
|
3479
4021
|
|
|
3480
4022
|
declare const useProgressStepperOverflow: ({ onLoadStep, increment, offsetLeft, }?: UseProgressStepperOverflowParams) => {
|
|
3481
|
-
stepperRef: React.
|
|
4023
|
+
stepperRef: React.RefObject<HTMLOListElement | null>;
|
|
3482
4024
|
onNextStep: () => void;
|
|
3483
4025
|
onPreviousStep: () => void;
|
|
3484
4026
|
onViewScroll: (direction: boolean) => void;
|
|
@@ -3497,7 +4039,7 @@ type EventType$3 = React__default.ChangeEvent<HTMLInputElement>;
|
|
|
3497
4039
|
/**
|
|
3498
4040
|
* Use `RadioCardGroup` to wrap and control `RadioCard` buttons and apply default values
|
|
3499
4041
|
*/
|
|
3500
|
-
declare const RadioCardGroup:
|
|
4042
|
+
declare const RadioCardGroup: ({ children, checkedValue, isDisabled, id, errorMessage, isRequired, helper, helperUnderLabel, label, labelSize, hideLabel, name, onBlur, onChange, layout, isFluid, width, ...props }: RadioCardGroupProps) => React__default.JSX.Element;
|
|
3501
4043
|
interface RadioCardGroupProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "disclosureText" | "disclosureTitle" | "onClickDisclosure" | "supplementaryInfo" | "labelPosition"> {
|
|
3502
4044
|
/**
|
|
3503
4045
|
* Contents of the `RadioCardGroup`. Should only contain `RadioCardGroupCard`
|
|
@@ -3572,6 +4114,13 @@ type ContextProps$1 = {
|
|
|
3572
4114
|
};
|
|
3573
4115
|
|
|
3574
4116
|
interface RadioCardProps {
|
|
4117
|
+
/**
|
|
4118
|
+
* Ref to the underlying input element.
|
|
4119
|
+
*/
|
|
4120
|
+
ref?: Ref<HTMLInputElement>;
|
|
4121
|
+
/**
|
|
4122
|
+
* Custom content to display in the RadioCard.
|
|
4123
|
+
*/
|
|
3575
4124
|
children?: ReactElement;
|
|
3576
4125
|
/**
|
|
3577
4126
|
* ID for the`RadioCard`.
|
|
@@ -3630,8 +4179,12 @@ interface RadioCardProps {
|
|
|
3630
4179
|
/**
|
|
3631
4180
|
* Radio Card component.
|
|
3632
4181
|
*/
|
|
3633
|
-
declare const RadioCardGroupInput:
|
|
4182
|
+
declare const RadioCardGroupInput: ({ ref, icon, support, id, isDisabled, label, value, children, controlLocation, hideButton, ...props }: RadioCardGroupInputProps) => React__default.JSX.Element;
|
|
3634
4183
|
interface RadioCardGroupInputProps extends Omit<RadioCardProps, "name"> {
|
|
4184
|
+
/**
|
|
4185
|
+
* Ref to the underlying input element.
|
|
4186
|
+
*/
|
|
4187
|
+
ref?: Ref<HTMLInputElement>;
|
|
3635
4188
|
/**
|
|
3636
4189
|
* Determine the alignment the RadioButton.
|
|
3637
4190
|
*
|
|
@@ -3667,7 +4220,7 @@ type EventType$1 = React__default.ChangeEvent<HTMLInputElement>;
|
|
|
3667
4220
|
/**
|
|
3668
4221
|
* Use `RadioGroup` to wrap and control radio buttons and apply default values
|
|
3669
4222
|
*/
|
|
3670
|
-
declare const RadioGroup:
|
|
4223
|
+
declare const RadioGroup: ({ children, checkedValue, isDisabled, id, errorMessage, isRequired, helper, label, name, onBlur, onChange, size, ...props }: RadioGroupProps) => React__default.JSX.Element;
|
|
3671
4224
|
interface RadioGroupProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "labelSize" | "requirementStatus" | "disclosureText" | "disclosureTitle" | "onClickDisclosure" | "supplementaryInfo" | "hideLabel" | "labelPosition"> {
|
|
3672
4225
|
/**
|
|
3673
4226
|
* Contents of the RadioGroup Should only contain `RadioGroupInput`
|
|
@@ -3730,31 +4283,87 @@ type ContextProps = {
|
|
|
3730
4283
|
size: "s" | "l";
|
|
3731
4284
|
};
|
|
3732
4285
|
|
|
3733
|
-
declare const RadioGroupButton:
|
|
4286
|
+
declare const RadioGroupButton: ({ ref, id, changeEvent, isDisabled, size, labelSize, checked, defaultChecked, radioButtonAlignment, name, blurEvent, value, label, helper, hideLabel, withMargin, isError, }: RadioGroupButtonProps) => React__default.JSX.Element;
|
|
3734
4287
|
interface RadioGroupButtonProps {
|
|
4288
|
+
/**
|
|
4289
|
+
* Ref to the underlying input element.
|
|
4290
|
+
*/
|
|
4291
|
+
ref?: Ref<HTMLInputElement>;
|
|
4292
|
+
/**
|
|
4293
|
+
* ID for the radio button.
|
|
4294
|
+
*/
|
|
3735
4295
|
id: string;
|
|
4296
|
+
/**
|
|
4297
|
+
* Label text for the radio button.
|
|
4298
|
+
*/
|
|
3736
4299
|
label: string;
|
|
4300
|
+
/**
|
|
4301
|
+
* Whether to visually hide the label.
|
|
4302
|
+
*/
|
|
3737
4303
|
hideLabel?: boolean;
|
|
4304
|
+
/**
|
|
4305
|
+
* Name attribute for the radio button.
|
|
4306
|
+
*/
|
|
3738
4307
|
name: ContextProps["name"];
|
|
4308
|
+
/**
|
|
4309
|
+
* Whether to add margin to the radio button.
|
|
4310
|
+
*/
|
|
3739
4311
|
withMargin?: boolean;
|
|
4312
|
+
/**
|
|
4313
|
+
* Whether the radio button is checked by default.
|
|
4314
|
+
*/
|
|
3740
4315
|
defaultChecked?: boolean;
|
|
4316
|
+
/**
|
|
4317
|
+
* Whether the radio button is checked (controlled).
|
|
4318
|
+
*/
|
|
3741
4319
|
checked?: boolean;
|
|
4320
|
+
/**
|
|
4321
|
+
* Value of the radio button.
|
|
4322
|
+
*/
|
|
3742
4323
|
value?: string;
|
|
4324
|
+
/**
|
|
4325
|
+
* Whether the radio button is disabled.
|
|
4326
|
+
*/
|
|
3743
4327
|
isDisabled?: boolean;
|
|
4328
|
+
/**
|
|
4329
|
+
* Helper text for the radio button.
|
|
4330
|
+
*/
|
|
3744
4331
|
helper?: string;
|
|
4332
|
+
/**
|
|
4333
|
+
* Size of the label text.
|
|
4334
|
+
*/
|
|
3745
4335
|
labelSize?: ContextProps["size"];
|
|
4336
|
+
/**
|
|
4337
|
+
* Size of the radio button.
|
|
4338
|
+
*/
|
|
3746
4339
|
size?: ContextProps["size"];
|
|
4340
|
+
/**
|
|
4341
|
+
* Alignment of the radio button.
|
|
4342
|
+
*/
|
|
3747
4343
|
radioButtonAlignment?: "top" | "center";
|
|
4344
|
+
/**
|
|
4345
|
+
* Change event handler.
|
|
4346
|
+
*/
|
|
3748
4347
|
changeEvent?: ContextProps["changeEvent"];
|
|
4348
|
+
/**
|
|
4349
|
+
* Blur event handler.
|
|
4350
|
+
*/
|
|
3749
4351
|
blurEvent?: ContextProps["blurEvent"];
|
|
4352
|
+
/**
|
|
4353
|
+
* Whether the radio button is in an error state.
|
|
4354
|
+
*/
|
|
3750
4355
|
isError?: boolean;
|
|
3751
4356
|
}
|
|
3752
4357
|
|
|
3753
4358
|
/**
|
|
3754
4359
|
* Radio Button component.
|
|
3755
4360
|
*/
|
|
3756
|
-
declare const RadioGroupInput:
|
|
4361
|
+
declare const RadioGroupInput: ({ ref, helper, id, isDisabled, label, radioButtonAlignment, value, isError, ...props }: RadioGroupInputProps) => React__default.JSX.Element;
|
|
3757
4362
|
interface RadioGroupInputProps {
|
|
4363
|
+
/**
|
|
4364
|
+
* Ref to the underlying input element.
|
|
4365
|
+
*/
|
|
4366
|
+
ref?: Ref<HTMLInputElement>;
|
|
3758
4367
|
/**
|
|
3759
4368
|
* Determine the alignment the RadioButton.
|
|
3760
4369
|
*
|
|
@@ -3793,7 +4402,7 @@ interface RadioGroupInputProps {
|
|
|
3793
4402
|
/**
|
|
3794
4403
|
* Use `Rule` to display a horizontal or vertical rule.
|
|
3795
4404
|
*/
|
|
3796
|
-
declare const Rule:
|
|
4405
|
+
declare const Rule: ({ orientation, ...props }: RuleProps) => React__default.JSX.Element;
|
|
3797
4406
|
interface RuleProps {
|
|
3798
4407
|
orientation?: "horizontal" | "vertical";
|
|
3799
4408
|
}
|
|
@@ -3801,7 +4410,7 @@ interface RuleProps {
|
|
|
3801
4410
|
/**
|
|
3802
4411
|
* Use `ScrollToTop` to allow the user to scroll to the top of the page by clicking a button.
|
|
3803
4412
|
*/
|
|
3804
|
-
declare const ScrollToTop:
|
|
4413
|
+
declare const ScrollToTop: ({ appear, isFixed, fill, zIndex, focusColor, ...props }: ScrollToTopProps) => React__default.JSX.Element;
|
|
3805
4414
|
interface ScrollToTopProps {
|
|
3806
4415
|
/**
|
|
3807
4416
|
* If true, the button will stick to the bottom right corner of the screen.
|
|
@@ -3829,7 +4438,7 @@ interface ScrollToTopProps {
|
|
|
3829
4438
|
/**
|
|
3830
4439
|
* Use `Section` to compose content into vertical page layouts.
|
|
3831
4440
|
*/
|
|
3832
|
-
declare const Section:
|
|
4441
|
+
declare const Section: ({ children, isFullWidth, isDebugVisible, isExtended, id, ...props }: SectionProps) => React__default.JSX.Element;
|
|
3833
4442
|
interface SectionProps extends ExtentableContainer {
|
|
3834
4443
|
/**
|
|
3835
4444
|
* Content to display in the Section.
|
|
@@ -3851,7 +4460,7 @@ interface SectionProps extends ExtentableContainer {
|
|
|
3851
4460
|
}
|
|
3852
4461
|
|
|
3853
4462
|
/** Use `Select` to choose from a dropdown list of options. */
|
|
3854
|
-
declare const Select: React__default.
|
|
4463
|
+
declare const Select: ({ isRequired, isDisabled, placeholder, label, value, ariaLabel, options, onOpenChange, isDefaultOpen, defaultValue, errorMessage, id, size, helper, hideLabel, name, width, isFluid, onBlur, onFocus, onChange, open, disclosureTitle, disclosureText, onClickDisclosure, ...props }: SelectProps) => React__default.JSX.Element;
|
|
3855
4464
|
interface SelectProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "helperUnderLabel" | "supplementaryInfo" | "labelSize" | "labelPosition"> {
|
|
3856
4465
|
/**
|
|
3857
4466
|
* Name for the Select.
|
|
@@ -3937,9 +4546,9 @@ interface SelectProps extends Omit<FormControlProps, "children" | "elementType"
|
|
|
3937
4546
|
/**
|
|
3938
4547
|
* Use `SiteFooter` to display information at the bottom of a page.
|
|
3939
4548
|
*/
|
|
3940
|
-
declare const SiteFooter:
|
|
3941
|
-
declare const SiteFooterItemGroup:
|
|
3942
|
-
declare const SiteFooterItem:
|
|
4549
|
+
declare const SiteFooter: ({ children, currentYear, logoLabel, main, siteName, ...props }: SiteFooterProps) => React__default.JSX.Element;
|
|
4550
|
+
declare const SiteFooterItemGroup: (props: SiteFooterItemGroupProps) => React__default.JSX.Element;
|
|
4551
|
+
declare const SiteFooterItem: ({ children, href, onClick, ...props }: SiteFooterItemProps) => React__default.JSX.Element;
|
|
3943
4552
|
interface SiteFooterItemGroupProps {
|
|
3944
4553
|
/**
|
|
3945
4554
|
* Contents of the SiteFooterItemGroup Must be SiteFooterItem components.
|
|
@@ -3991,7 +4600,7 @@ interface SiteFooterProps {
|
|
|
3991
4600
|
/**
|
|
3992
4601
|
* Use `SiteFooterV2` to display information at the bottom of a page.
|
|
3993
4602
|
*/
|
|
3994
|
-
declare const SiteFooterV2:
|
|
4603
|
+
declare const SiteFooterV2: ({ children, slogan, hideTopBorder, ...props }: SiteFooterV2Props) => React__default.JSX.Element;
|
|
3995
4604
|
interface SiteFooterV2Props {
|
|
3996
4605
|
/**
|
|
3997
4606
|
* Content of the SiteFooterV2. Must include SiteFooterV2Utility component and optional SiteFooterV2Main.
|
|
@@ -4008,9 +4617,9 @@ interface SiteFooterV2Props {
|
|
|
4008
4617
|
hideTopBorder?: boolean;
|
|
4009
4618
|
}
|
|
4010
4619
|
|
|
4011
|
-
declare const SiteFooterV2Main:
|
|
4012
|
-
declare const SiteFooterV2ItemGroup:
|
|
4013
|
-
declare const SiteFooterV2Item:
|
|
4620
|
+
declare const SiteFooterV2Main: ({ children, columns, ...props }: SiteFooterV2MainProps) => React__default.JSX.Element;
|
|
4621
|
+
declare const SiteFooterV2ItemGroup: ({ hideDisclosure, ...props }: SiteFooterV2ItemGroupProps) => React__default.JSX.Element;
|
|
4622
|
+
declare const SiteFooterV2Item: ({ children, href, onClick, ...props }: SiteFooterV2ItemProps) => React__default.JSX.Element;
|
|
4014
4623
|
interface SiteFooterV2MainProps {
|
|
4015
4624
|
/**
|
|
4016
4625
|
* Contents of the SiteFooterV2Main. Must be SiteFooterV2ItemGroup components.
|
|
@@ -4053,7 +4662,7 @@ interface SiteFooterV2ItemProps {
|
|
|
4053
4662
|
/**
|
|
4054
4663
|
* Use `SiteFooterV2.Utility` to display information at the bottom of a page.
|
|
4055
4664
|
*/
|
|
4056
|
-
declare const SiteFooterV2Utility:
|
|
4665
|
+
declare const SiteFooterV2Utility: ({ copyrightYear, children, socialLinks, brand, contentSlot, ...props }: SiteFooterV2UtilityProps) => React__default.JSX.Element;
|
|
4057
4666
|
declare const socialIcons: readonly [string, string, string, string, string];
|
|
4058
4667
|
declare const subBrands: readonly ["redcare", "wholesale", "ee"];
|
|
4059
4668
|
interface SiteFooterV2UtilityProps {
|
|
@@ -4091,7 +4700,7 @@ interface SiteFooterV2UtilityProps {
|
|
|
4091
4700
|
/**
|
|
4092
4701
|
* Use `SiteHeaderV2` to display brand logo and navigation at the top of a page.
|
|
4093
4702
|
*/
|
|
4094
|
-
declare const SiteHeaderV2:
|
|
4703
|
+
declare const SiteHeaderV2: ({ children, basket, hasLogin, isTransparent, loginHref, logoOnClick, loginOnClick, loginTitle, logoHref, logoLabel, search, subBrand, ...props }: SiteHeaderV2Props) => React__default.JSX.Element;
|
|
4095
4704
|
interface SiteHeaderV2Props {
|
|
4096
4705
|
/**
|
|
4097
4706
|
* Contents of the SiteHeaderV2 Must be SiteHeaderV2NavItem or
|
|
@@ -4144,7 +4753,7 @@ interface SiteHeaderV2Props {
|
|
|
4144
4753
|
subBrand?: (typeof subBrands$1)[number];
|
|
4145
4754
|
}
|
|
4146
4755
|
|
|
4147
|
-
declare const SiteHeaderV2Column:
|
|
4756
|
+
declare const SiteHeaderV2Column: ({ children, ...props }: SiteHeaderV2ColumnProps) => React__default.JSX.Element;
|
|
4148
4757
|
interface SiteHeaderV2ColumnProps {
|
|
4149
4758
|
/**
|
|
4150
4759
|
* Contents of the Column. Must be SiteHeaderV2ItemGroup components.
|
|
@@ -4152,7 +4761,7 @@ interface SiteHeaderV2ColumnProps {
|
|
|
4152
4761
|
children: ReactNode;
|
|
4153
4762
|
}
|
|
4154
4763
|
|
|
4155
|
-
declare const SiteHeaderV2Item:
|
|
4764
|
+
declare const SiteHeaderV2Item: ({ children, href, onClick, ...props }: SiteHeaderV2ItemProps) => React__default.JSX.Element;
|
|
4156
4765
|
interface SiteHeaderV2ItemProps {
|
|
4157
4766
|
/**
|
|
4158
4767
|
* Contents of the Item. Usually text to be displayed in the Item link.
|
|
@@ -4168,12 +4777,15 @@ interface SiteHeaderV2ItemProps {
|
|
|
4168
4777
|
onClick?: () => void;
|
|
4169
4778
|
}
|
|
4170
4779
|
|
|
4171
|
-
declare const SiteHeaderV2ItemGroup:
|
|
4780
|
+
declare const SiteHeaderV2ItemGroup: ({ children, href, title, subtitle, onClick, viewAllTitle, ...props }: SiteHeaderV2ItemGroupProps) => JSX.Element;
|
|
4172
4781
|
interface SiteHeaderV2ItemGroupProps {
|
|
4173
4782
|
/**
|
|
4174
4783
|
* Contents of the ItemGroup Must be Item components.
|
|
4175
4784
|
*/
|
|
4176
4785
|
children: ReactNode;
|
|
4786
|
+
/**
|
|
4787
|
+
* Optional subtitle text for the ItemGroup.
|
|
4788
|
+
*/
|
|
4177
4789
|
subtitle?: string;
|
|
4178
4790
|
/**
|
|
4179
4791
|
* A top-level URL for the ItemGroup to link to.
|
|
@@ -4195,7 +4807,7 @@ interface SiteHeaderV2ItemGroupProps {
|
|
|
4195
4807
|
onClick?: () => void;
|
|
4196
4808
|
}
|
|
4197
4809
|
|
|
4198
|
-
declare const SiteHeaderV2NavItem:
|
|
4810
|
+
declare const SiteHeaderV2NavItem: ({ children, href, isCurrent, onClick, title, isPrimary, opensFirstWithPanel, subTitle, ...props }: SiteHeaderV2NavItemProps) => React__default.JSX.Element;
|
|
4199
4811
|
interface SiteHeaderV2NavItemProps {
|
|
4200
4812
|
/**
|
|
4201
4813
|
* Contents of the NavItem. Must be SiteHeaderV2ItemGroup or
|
|
@@ -4230,7 +4842,55 @@ interface SiteHeaderV2NavItemProps {
|
|
|
4230
4842
|
subTitle?: string;
|
|
4231
4843
|
}
|
|
4232
4844
|
|
|
4233
|
-
declare const
|
|
4845
|
+
declare const SiteHeaderV2SubNavItem: ({ children, isDefaultItem, href, onClick, offsetXL, subTitle, title, viewAllTitle, icon, ...props }: SiteHeaderV2SubNavItemProps) => React__default.JSX.Element;
|
|
4846
|
+
interface SiteHeaderV2SubNavItemProps {
|
|
4847
|
+
/**
|
|
4848
|
+
* Contents of the SubNavItem. Must be SiteHeaderV2ItemGroup or
|
|
4849
|
+
* SiteHeaderV2Column components.
|
|
4850
|
+
*/
|
|
4851
|
+
children?: ReactNode;
|
|
4852
|
+
/**
|
|
4853
|
+
* Should the SubNavItem be the default open item in a
|
|
4854
|
+
* SiteHeaderV2NavItemWithSubNav? If not specified, the default open item will
|
|
4855
|
+
* be set automatically.
|
|
4856
|
+
*/
|
|
4857
|
+
isDefaultItem?: boolean;
|
|
4858
|
+
/**
|
|
4859
|
+
* Optionally shift the SubNavItem-link upwards (in "desktop" viewports only)
|
|
4860
|
+
* to close off any empty space between items due to content size.
|
|
4861
|
+
*/
|
|
4862
|
+
offsetXL?: "24" | "48";
|
|
4863
|
+
/**
|
|
4864
|
+
* A URL to link to when the SubNavItem is clicked or touched. Only applies if
|
|
4865
|
+
* `children` are not present.
|
|
4866
|
+
*/
|
|
4867
|
+
href?: string;
|
|
4868
|
+
/**
|
|
4869
|
+
* Optional subtitle text for the SubNavItem.
|
|
4870
|
+
*/
|
|
4871
|
+
subTitle?: string;
|
|
4872
|
+
/**
|
|
4873
|
+
* Title text for the SubNavItem.
|
|
4874
|
+
*/
|
|
4875
|
+
title: string;
|
|
4876
|
+
/**
|
|
4877
|
+
* Text to display in top-level link inside the SubNavItem panel. Only
|
|
4878
|
+
* applies if both `children` are present and `href` is true. If not
|
|
4879
|
+
* provided, top-level link text will be automatically generated from `title`.
|
|
4880
|
+
*/
|
|
4881
|
+
viewAllTitle?: string;
|
|
4882
|
+
/**
|
|
4883
|
+
* Optional icon to display with the SubNavItem.
|
|
4884
|
+
*/
|
|
4885
|
+
icon?: string;
|
|
4886
|
+
/**
|
|
4887
|
+
* On click handler.
|
|
4888
|
+
*/
|
|
4889
|
+
onClick?: () => void;
|
|
4890
|
+
}
|
|
4891
|
+
|
|
4892
|
+
declare const SiteHeaderV2NavItemWithSubNav: ({ href, slot1, slot2, slot3, slot4, slot5, slot6, subTitle, title, onViewAllClick, isPrimary, opensFirstWithPanel, viewAllTitle, ...props }: SiteHeaderV2NavItemWithSubNavProps) => React__default.JSX.Element;
|
|
4893
|
+
type slotType = ReactElement<SiteHeaderV2SubNavItemProps>;
|
|
4234
4894
|
interface SiteHeaderV2NavItemWithSubNavProps {
|
|
4235
4895
|
/**
|
|
4236
4896
|
* The URL to link to when a top-level link inside the NavItemWithSubNav panel
|
|
@@ -4241,28 +4901,28 @@ interface SiteHeaderV2NavItemWithSubNavProps {
|
|
|
4241
4901
|
* Content to be displayed in the first slot of the NavItemWithSubNav. Must be
|
|
4242
4902
|
* a single SiteHeaderV2SubNavItem component.
|
|
4243
4903
|
*/
|
|
4244
|
-
slot1:
|
|
4904
|
+
slot1: slotType;
|
|
4245
4905
|
/**
|
|
4246
4906
|
* Content to be displayed in the second slot of the NavItemWithSubNav. Must
|
|
4247
4907
|
* be a single SiteHeaderV2SubNavItem component.
|
|
4248
4908
|
*/
|
|
4249
|
-
slot2?:
|
|
4909
|
+
slot2?: slotType;
|
|
4250
4910
|
/**
|
|
4251
4911
|
* Content to be displayed in the third slot of the NavItemWithSubNav. Must be
|
|
4252
4912
|
* a single SiteHeaderV2SubNavItem component.
|
|
4253
4913
|
*/
|
|
4254
|
-
slot3?:
|
|
4914
|
+
slot3?: slotType;
|
|
4255
4915
|
/**
|
|
4256
4916
|
* Content to be displayed in the fourth slot of the NavItemWithSubNav. Must be
|
|
4257
4917
|
* a single SiteHeaderV2SubNavItem component.
|
|
4258
4918
|
*/
|
|
4259
|
-
slot4?:
|
|
4260
|
-
slot5?:
|
|
4261
|
-
slot6?:
|
|
4919
|
+
slot4?: slotType;
|
|
4920
|
+
slot5?: slotType;
|
|
4921
|
+
slot6?: slotType;
|
|
4262
4922
|
/**
|
|
4263
4923
|
* Title text to display inside the NavItemWithSubNav panel.
|
|
4264
4924
|
*/
|
|
4265
|
-
subTitle?: string;
|
|
4925
|
+
subTitle?: string | null;
|
|
4266
4926
|
/**
|
|
4267
4927
|
* Top-level text to display in the NavItemWithSubNav.
|
|
4268
4928
|
*/
|
|
@@ -4281,7 +4941,7 @@ interface SiteHeaderV2NavItemWithSubNavProps {
|
|
|
4281
4941
|
opensFirstWithPanel?: boolean;
|
|
4282
4942
|
}
|
|
4283
4943
|
|
|
4284
|
-
declare const SiteHeaderV2NodeItem:
|
|
4944
|
+
declare const SiteHeaderV2NodeItem: ({ children, ...props }: SiteHeaderV2NodeItemProps) => React__default.JSX.Element;
|
|
4285
4945
|
interface SiteHeaderV2NodeItemProps {
|
|
4286
4946
|
/**
|
|
4287
4947
|
* Content to display with `SiteHeaderV2NodeItem`
|
|
@@ -4289,56 +4949,12 @@ interface SiteHeaderV2NodeItemProps {
|
|
|
4289
4949
|
children?: ReactNode;
|
|
4290
4950
|
}
|
|
4291
4951
|
|
|
4292
|
-
declare const
|
|
4293
|
-
interface SiteHeaderV2SubNavItemProps {
|
|
4294
|
-
/**
|
|
4295
|
-
* Contents of the SubNavItem. Must be SiteHeaderV2ItemGroup or
|
|
4296
|
-
* SiteHeaderV2Column components.
|
|
4297
|
-
*/
|
|
4298
|
-
children?: ReactNode;
|
|
4299
|
-
/**
|
|
4300
|
-
* Should the SubNavItem be the default open item in a
|
|
4301
|
-
* SiteHeaderV2NavItemWithSubNav? If not specified, the default open item will
|
|
4302
|
-
* be set automatically.
|
|
4303
|
-
*/
|
|
4304
|
-
isDefaultItem?: boolean;
|
|
4305
|
-
/**
|
|
4306
|
-
* Optionally shift the SubNavItem-link upwards (in "desktop" viewports only)
|
|
4307
|
-
* to close off any empty space between items due to content size.
|
|
4308
|
-
*/
|
|
4309
|
-
offsetXL?: "24" | "48";
|
|
4310
|
-
/**
|
|
4311
|
-
* A URL to link to when the SubNavItem is clicked or touched. Only applies if
|
|
4312
|
-
* `children` are not present.
|
|
4313
|
-
*/
|
|
4314
|
-
href?: string;
|
|
4315
|
-
/**
|
|
4316
|
-
* Optional subtitle text for the SubNavItem.
|
|
4317
|
-
*/
|
|
4318
|
-
subTitle?: string;
|
|
4319
|
-
/**
|
|
4320
|
-
* Title text for the SubNavItem.
|
|
4321
|
-
*/
|
|
4322
|
-
title: string;
|
|
4323
|
-
/**
|
|
4324
|
-
* Text to display in top-level link inside the SubNavItem panel. Only
|
|
4325
|
-
* applies if both `children` are present and `href` is true. If not
|
|
4326
|
-
* provided, top-level link text will be automatically generated from `title`.
|
|
4327
|
-
*/
|
|
4328
|
-
viewAllTitle?: string;
|
|
4329
|
-
icon?: string;
|
|
4330
|
-
/**
|
|
4331
|
-
* On click handler.
|
|
4332
|
-
*/
|
|
4333
|
-
onClick?: () => void;
|
|
4334
|
-
}
|
|
4335
|
-
|
|
4336
|
-
declare const SiteHeaderV2VerticalDivider: () => JSX.Element;
|
|
4952
|
+
declare const SiteHeaderV2VerticalDivider: () => React__default.JSX.Element;
|
|
4337
4953
|
|
|
4338
4954
|
/**
|
|
4339
4955
|
* Use `Skeleton` to display a placeholder preview of your page before the data gets loaded to reduce load-time frustration.
|
|
4340
4956
|
*/
|
|
4341
|
-
declare const Skeleton:
|
|
4957
|
+
declare const Skeleton: ({ width, height, isCircle, animation, ...props }: SkeletonProps) => React__default.JSX.Element;
|
|
4342
4958
|
interface SkeletonProps {
|
|
4343
4959
|
/**
|
|
4344
4960
|
* Animation for `Skeleton`.
|
|
@@ -4359,7 +4975,7 @@ interface SkeletonProps {
|
|
|
4359
4975
|
}
|
|
4360
4976
|
|
|
4361
4977
|
/** Use `SkipLink` to help keyboard-only users skip to the main content on a page. */
|
|
4362
|
-
declare const SkipLink:
|
|
4978
|
+
declare const SkipLink: ({ children, ...props }: SkipLinkProps) => React__default.JSX.Element;
|
|
4363
4979
|
interface SkipLinkProps {
|
|
4364
4980
|
/**
|
|
4365
4981
|
* Links to display in the SkipLinkItem.
|
|
@@ -4367,7 +4983,7 @@ interface SkipLinkProps {
|
|
|
4367
4983
|
children?: ReactNode;
|
|
4368
4984
|
}
|
|
4369
4985
|
|
|
4370
|
-
declare const SkipLinkItem:
|
|
4986
|
+
declare const SkipLinkItem: ({ href, id, label, onClick, }: SkipLinkItemProps) => React__default.JSX.Element;
|
|
4371
4987
|
interface SkipLinkItemProps {
|
|
4372
4988
|
/**
|
|
4373
4989
|
* The label to display for SkipLinkItem.
|
|
@@ -4390,7 +5006,7 @@ interface SkipLinkItemProps {
|
|
|
4390
5006
|
/**
|
|
4391
5007
|
* Use `Spinner` to display a loading state.
|
|
4392
5008
|
*/
|
|
4393
|
-
declare const Spinner:
|
|
5009
|
+
declare const Spinner: ({ size, color, ...props }: SpinnerProps) => React__default.JSX.Element;
|
|
4394
5010
|
type SpinnerSize = "s" | "m" | "l" | "xl" | "xxl";
|
|
4395
5011
|
interface SpinnerProps {
|
|
4396
5012
|
/**
|
|
@@ -4404,7 +5020,7 @@ interface SpinnerProps {
|
|
|
4404
5020
|
}
|
|
4405
5021
|
|
|
4406
5022
|
/** Use `Switch` to allow users to immediately toggle between two states. */
|
|
4407
|
-
declare const Switch:
|
|
5023
|
+
declare const Switch: ({ defaultChecked, onCheckedChange, label, labelPosition, name, onBlur, value, isDisabled, errorMessage, id, size, onStatusText, offStatusText, hideLabel, ariaLabel, ...props }: SwitchProps) => React__default.JSX.Element;
|
|
4408
5024
|
interface SwitchProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "disclosureText" | "disclosureTitle" | "onClickDisclosure" | "helper" | "helpUnderLabel" | "supplementaryInfo" | "labelSize"> {
|
|
4409
5025
|
/**
|
|
4410
5026
|
* Hide Label above toggle?
|
|
@@ -4457,7 +5073,7 @@ interface SwitchProps extends Omit<FormControlProps, "children" | "elementType"
|
|
|
4457
5073
|
}
|
|
4458
5074
|
|
|
4459
5075
|
/** Use `TabbedBanner` to combine a banner layout with `ContentSwitcher` and `ContentSwitcherDropdown`, allowing users to switch between related content sections. */
|
|
4460
|
-
declare const TabbedBanner:
|
|
5076
|
+
declare const TabbedBanner: ({ tabs, defaultValue, minHeight, minHeightM, minHeightL, minHeightXL, ...props }: TabbedBannerProps) => React__default.JSX.Element;
|
|
4461
5077
|
interface TabbedBannerProps {
|
|
4462
5078
|
/**
|
|
4463
5079
|
* Determine what tabs to render. They need both a `value` and `label` prop
|
|
@@ -4494,7 +5110,7 @@ interface TabbedBannerProps {
|
|
|
4494
5110
|
}
|
|
4495
5111
|
|
|
4496
5112
|
/** Use `Tabs` to allow users to navigate between different sections of relevant content. */
|
|
4497
|
-
declare const Tabs:
|
|
5113
|
+
declare const Tabs: ({ children, defaultValue, onValueChange, activationMode, ...props }: TabsProps) => React__default.JSX.Element;
|
|
4498
5114
|
interface TabsProps {
|
|
4499
5115
|
/**
|
|
4500
5116
|
* Render children
|
|
@@ -4514,7 +5130,7 @@ interface TabsProps {
|
|
|
4514
5130
|
activationMode?: "automatic" | "manual";
|
|
4515
5131
|
}
|
|
4516
5132
|
|
|
4517
|
-
declare const TabsItem:
|
|
5133
|
+
declare const TabsItem: ({ label, value, icon, iconActive, ...props }: TabsItemProps) => React__default.JSX.Element;
|
|
4518
5134
|
interface TabsItemProps {
|
|
4519
5135
|
/**
|
|
4520
5136
|
* Label to display on the Tab
|
|
@@ -4534,7 +5150,7 @@ interface TabsItemProps {
|
|
|
4534
5150
|
iconActive?: string;
|
|
4535
5151
|
}
|
|
4536
5152
|
|
|
4537
|
-
declare const TabsContent:
|
|
5153
|
+
declare const TabsContent: ({ children, value, hidden, forceMount, ...props }: TabsContentProps) => React__default.JSX.Element;
|
|
4538
5154
|
interface TabsContentProps {
|
|
4539
5155
|
/**
|
|
4540
5156
|
* Content to display
|
|
@@ -4554,7 +5170,7 @@ interface TabsContentProps {
|
|
|
4554
5170
|
forceMount?: boolean;
|
|
4555
5171
|
}
|
|
4556
5172
|
|
|
4557
|
-
declare const TabsList:
|
|
5173
|
+
declare const TabsList: ({ children, type, isJustified, ariaLabel, ...props }: TabsListProps) => React__default.JSX.Element;
|
|
4558
5174
|
interface TabsListProps {
|
|
4559
5175
|
/**
|
|
4560
5176
|
* Contents of the `Tabs` Should contain `Tab`
|
|
@@ -4577,7 +5193,7 @@ interface TabsListProps {
|
|
|
4577
5193
|
/**
|
|
4578
5194
|
* Use `Tag` to promote features and manage filtering.
|
|
4579
5195
|
*/
|
|
4580
|
-
declare const Tag:
|
|
5196
|
+
declare const Tag: ({ children, isRemovable, link, icon, onClick, onRemove, title, ...props }: TagProps) => React__default.JSX.Element;
|
|
4581
5197
|
interface TagProps {
|
|
4582
5198
|
/**
|
|
4583
5199
|
* Content to render within the Tag
|
|
@@ -4612,7 +5228,7 @@ interface TagProps {
|
|
|
4612
5228
|
/**
|
|
4613
5229
|
* Use `Text` to display text.
|
|
4614
5230
|
*/
|
|
4615
|
-
declare const Text:
|
|
5231
|
+
declare const Text: ({ align, children, id, isInline, isMeasured, size, tone, elementType, ...props }: TextProps) => React__default.JSX.Element;
|
|
4616
5232
|
type Tone = "default" | "supporting" | "muted";
|
|
4617
5233
|
type TextSize = "xs" | "s" | "m" | "l";
|
|
4618
5234
|
interface TextProps {
|
|
@@ -4651,8 +5267,12 @@ interface TextProps {
|
|
|
4651
5267
|
}
|
|
4652
5268
|
|
|
4653
5269
|
/** Use `TextArea` to allow custom user text entry via keyboard, for long-form and multi-line descriptions */
|
|
4654
|
-
declare const TextArea:
|
|
5270
|
+
declare const TextArea: ({ ref, defaultValue, errorMessage, helper, hideLabel, id, resize, isDisabled, isReadOnly, isRequired, showCharacterCount, label, labelSize, maxLength, name, onBlur, onFocus, onChange, onClickDisclosure, value, disclosureTitle, disclosureText, width, autoComplete, minHeight, maxHeight, isErrorAlert, ...props }: TextAreaProps) => React__default.JSX.Element;
|
|
4655
5271
|
interface TextAreaProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "helperUnderLabel" | "labelPosition"> {
|
|
5272
|
+
/**
|
|
5273
|
+
* Ref to the underlying textarea element
|
|
5274
|
+
*/
|
|
5275
|
+
ref?: Ref<HTMLTextAreaElement>;
|
|
4656
5276
|
/**
|
|
4657
5277
|
* Uncontrolled default value of the TextArea. If the TextArea is controlled
|
|
4658
5278
|
* via `value`/`onChange`, `defaultValue` will be ignored.
|
|
@@ -4730,7 +5350,7 @@ interface TextAreaProps extends Omit<FormControlProps, "children" | "elementType
|
|
|
4730
5350
|
maxHeight?: string;
|
|
4731
5351
|
}
|
|
4732
5352
|
|
|
4733
|
-
declare const InputIcon:
|
|
5353
|
+
declare const InputIcon: ({ isButton, isReadOnly, isDisabled, size, tooltip, themeIcon, icon, }: InputIconProps) => React__default.JSX.Element;
|
|
4734
5354
|
interface InputIconProps {
|
|
4735
5355
|
/**
|
|
4736
5356
|
* Sets the Icon to be a Button.
|
|
@@ -4770,7 +5390,7 @@ interface InputIconProps {
|
|
|
4770
5390
|
/**
|
|
4771
5391
|
* Use `Theme` component to apply a specific theme to its children.
|
|
4772
5392
|
*/
|
|
4773
|
-
declare const Theme:
|
|
5393
|
+
declare const Theme: ({ theme, resetCssStyles, children, ...props }: ThemeProps) => React__default.JSX.Element;
|
|
4774
5394
|
declare const themes: readonly ["bt-enterprise", "bt-business", "ee"];
|
|
4775
5395
|
type ThemeType = "bt-enterprise" | "bt-business" | "ee";
|
|
4776
5396
|
interface ThemeProps {
|
|
@@ -4789,7 +5409,7 @@ interface ThemeProps {
|
|
|
4789
5409
|
}
|
|
4790
5410
|
|
|
4791
5411
|
/** Use `ThumbnailSignpost` to highlight key information or navigation points with an accompanying thumbnail image or icon. */
|
|
4792
|
-
declare const ThumbnailSignpost: React__default.
|
|
5412
|
+
declare const ThumbnailSignpost: ({ text, title, img, button, ...props }: ThumbnailSignpostProps) => React__default.JSX.Element;
|
|
4793
5413
|
interface ThumbnailSignpostProps {
|
|
4794
5414
|
/**
|
|
4795
5415
|
* Title for the ThumbnailSignpost.
|
|
@@ -4816,7 +5436,7 @@ interface ThumbnailSignpostProps {
|
|
|
4816
5436
|
}
|
|
4817
5437
|
|
|
4818
5438
|
/** Use `Toast` to display temporary messages at the bottom of the screen. */
|
|
4819
|
-
declare const Toast:
|
|
5439
|
+
declare const Toast: ({ children, colorScheme, onDarkSurface, ...props }: ToastProps) => React__default.JSX.Element;
|
|
4820
5440
|
interface ToastProps {
|
|
4821
5441
|
/**
|
|
4822
5442
|
* Content to display within `Toast`
|
|
@@ -4833,7 +5453,7 @@ interface ToastProps {
|
|
|
4833
5453
|
}
|
|
4834
5454
|
|
|
4835
5455
|
/** Use `ToastNotification` to display brief, non-intrusive messages that inform users about system events, actions, or feedback. */
|
|
4836
|
-
declare const ToastNotification:
|
|
5456
|
+
declare const ToastNotification: ({ link, title, isOpen, onOpenChange, isStatusIconVisible, isCloseButtonVisible, status, ...props }: ToastNotificationProps) => React__default.JSX.Element;
|
|
4837
5457
|
type ToastStatus = "general" | "error" | "warning" | "success";
|
|
4838
5458
|
interface ToastNotificationProps {
|
|
4839
5459
|
/**
|
|
@@ -4872,7 +5492,7 @@ interface ToastNotificationProps {
|
|
|
4872
5492
|
}
|
|
4873
5493
|
|
|
4874
5494
|
/** Use `Truncate` component to shorten text with an ellipsis. Add a `title` attribute to the truncated element so the full text remains accessible. */
|
|
4875
|
-
declare const Truncate:
|
|
5495
|
+
declare const Truncate: ({ maxWidth, title, children, ...props }: TruncateProps) => React__default.JSX.Element;
|
|
4876
5496
|
interface TruncateProps {
|
|
4877
5497
|
/**
|
|
4878
5498
|
* Content to truncate.
|
|
@@ -4889,7 +5509,7 @@ interface TruncateProps {
|
|
|
4889
5509
|
}
|
|
4890
5510
|
|
|
4891
5511
|
/** Use `TypographyCard` for content that benefits from larger and energetic typography. */
|
|
4892
|
-
declare const TypographyCard:
|
|
5512
|
+
declare const TypographyCard: ({ url, onClick, heading, metaText, label, minHeight, headingSize, linkData, pathway, buttonIcon, headingLevel, labelLevel, headingWordWrap, ...props }: TypographyCardProps) => React__default.JSX.Element;
|
|
4893
5513
|
type TypographyCardPathway = "light" | "dark";
|
|
4894
5514
|
interface TypographyCardProps {
|
|
4895
5515
|
/**
|
|
@@ -4943,13 +5563,17 @@ interface TypographyCardProps {
|
|
|
4943
5563
|
* Heading level for the TypographyCard label.
|
|
4944
5564
|
*/
|
|
4945
5565
|
labelLevel?: HeadingLevel;
|
|
5566
|
+
/**
|
|
5567
|
+
* Whether long words in heading should be wrapped.
|
|
5568
|
+
*/
|
|
5569
|
+
headingWordWrap?: boolean;
|
|
4946
5570
|
}
|
|
4947
5571
|
|
|
4948
5572
|
/**
|
|
4949
5573
|
* Use `UniversalHeader` to display a group-level page header.
|
|
4950
5574
|
*/
|
|
4951
|
-
declare const UniversalHeader:
|
|
4952
|
-
declare const UniversalHeaderItem:
|
|
5575
|
+
declare const UniversalHeader: ({ children, ContentSlot, ...props }: UniversalHeaderProps) => React__default.JSX.Element;
|
|
5576
|
+
declare const UniversalHeaderItem: ({ children, href, isActive, ...props }: UniversalHeaderItemProps) => React__default.JSX.Element;
|
|
4953
5577
|
interface UniversalHeaderItemProps {
|
|
4954
5578
|
/**
|
|
4955
5579
|
* Contents of the UniversalHeaderItem.
|
|
@@ -4979,7 +5603,7 @@ interface UniversalHeaderProps {
|
|
|
4979
5603
|
/**
|
|
4980
5604
|
* Use `VerticalSpace` to create vertical space between components.
|
|
4981
5605
|
*/
|
|
4982
|
-
declare const VerticalSpace:
|
|
5606
|
+
declare const VerticalSpace: ({ isDebugVisible, size, sizeS, sizeM, sizeL, sizeXL, sizeXXL, ...props }: VerticalSpaceProps) => React__default.JSX.Element;
|
|
4983
5607
|
type VerticalSpaceSize = "4" | "8" | "12" | "16" | "20" | "24" | "28" | "32" | "40" | "48" | "64" | "96" | "128";
|
|
4984
5608
|
interface VerticalSpaceProps {
|
|
4985
5609
|
/**
|
|
@@ -5016,18 +5640,36 @@ interface VerticalSpaceProps {
|
|
|
5016
5640
|
/**
|
|
5017
5641
|
* Use `VideoPlayer` to embed videos from YouTube or Vimeo.
|
|
5018
5642
|
*/
|
|
5019
|
-
declare const VideoPlayer: React__default.
|
|
5643
|
+
declare const VideoPlayer: ({ title, description, transcriptLink, transcriptContent, light, url, onReady, onPlay, onStart, onPause, onError, onEnded, isBorderRadius, isSupportingTextHidden, titleWordWrap, ...props }: VideoPlayerProps) => React__default.JSX.Element;
|
|
5020
5644
|
interface VideoPlayerProps extends Pick<ReactPlayerProps, "onReady" | "onPlay" | "onStart" | "onPause" | "onEnded" | "onError" | "light"> {
|
|
5645
|
+
/**
|
|
5646
|
+
* URL of the video to play.
|
|
5647
|
+
*/
|
|
5021
5648
|
url: string;
|
|
5649
|
+
/**
|
|
5650
|
+
* Title of the video.
|
|
5651
|
+
*/
|
|
5022
5652
|
title: string;
|
|
5653
|
+
/**
|
|
5654
|
+
* Description of the video.
|
|
5655
|
+
*/
|
|
5023
5656
|
description: string;
|
|
5657
|
+
/**
|
|
5658
|
+
* Apply border radius to the video player.
|
|
5659
|
+
*/
|
|
5024
5660
|
isBorderRadius?: boolean;
|
|
5661
|
+
/**
|
|
5662
|
+
* Link to download the transcript.
|
|
5663
|
+
*/
|
|
5025
5664
|
transcriptLink?: {
|
|
5026
5665
|
url: string;
|
|
5027
5666
|
text: string;
|
|
5028
5667
|
fileSize: string;
|
|
5029
5668
|
format: string;
|
|
5030
5669
|
};
|
|
5670
|
+
/**
|
|
5671
|
+
* Content for the audio described transcript.
|
|
5672
|
+
*/
|
|
5031
5673
|
transcriptContent?: {
|
|
5032
5674
|
heading: string;
|
|
5033
5675
|
description: string;
|
|
@@ -5036,19 +5678,26 @@ interface VideoPlayerProps extends Pick<ReactPlayerProps, "onReady" | "onPlay" |
|
|
|
5036
5678
|
text?: string;
|
|
5037
5679
|
}[];
|
|
5038
5680
|
};
|
|
5681
|
+
/**
|
|
5682
|
+
* Hide the supporting text (title and description).
|
|
5683
|
+
*/
|
|
5039
5684
|
isSupportingTextHidden?: boolean;
|
|
5685
|
+
titleWordWrap?: boolean;
|
|
5040
5686
|
}
|
|
5041
5687
|
|
|
5042
5688
|
/** Use `Visible` to show it's children at specific breakpoints */
|
|
5043
|
-
declare const Visible: React__default.
|
|
5689
|
+
declare const Visible: ({ children, xs, s, m, l, xl, xxl, ...props }: VisibleProps) => React__default.JSX.Element;
|
|
5044
5690
|
interface VisibleProps extends BreakpointVisibility {
|
|
5045
|
-
|
|
5691
|
+
/**
|
|
5692
|
+
* Content to display at specific breakpoints.
|
|
5693
|
+
*/
|
|
5694
|
+
children: ReactNode;
|
|
5046
5695
|
}
|
|
5047
5696
|
|
|
5048
5697
|
/**
|
|
5049
5698
|
* Use `VisuallyHidden` to provide text for screen readers that is visually hidden on screen.
|
|
5050
5699
|
*/
|
|
5051
|
-
declare const VisuallyHidden:
|
|
5700
|
+
declare const VisuallyHidden: ({ children, ...props }: VisuallyHiddenProps) => React__default.JSX.Element;
|
|
5052
5701
|
interface VisuallyHiddenProps {
|
|
5053
5702
|
/**
|
|
5054
5703
|
* Content to be Visually Hidden.
|
|
@@ -5073,22 +5722,49 @@ interface NavigationHeaderContainerProps extends ExtentableContainer {
|
|
|
5073
5722
|
/**
|
|
5074
5723
|
* content for the navbar
|
|
5075
5724
|
*/
|
|
5076
|
-
children:
|
|
5725
|
+
children: ReactNode;
|
|
5077
5726
|
}
|
|
5078
5727
|
|
|
5079
5728
|
type Brand = "btWholesale" | "btGlobalFabric" | "ee" | "bt";
|
|
5080
5729
|
interface NavigationHeaderLogoProps {
|
|
5730
|
+
/**
|
|
5731
|
+
* Accessible label for the logo link.
|
|
5732
|
+
*/
|
|
5081
5733
|
ariaLabel?: string;
|
|
5734
|
+
/**
|
|
5735
|
+
* Brand variant for the logo.
|
|
5736
|
+
*/
|
|
5082
5737
|
brand?: Brand;
|
|
5738
|
+
/**
|
|
5739
|
+
* URL to link to when the logo is clicked.
|
|
5740
|
+
*/
|
|
5083
5741
|
href?: string;
|
|
5084
|
-
|
|
5742
|
+
/**
|
|
5743
|
+
* Custom SVG to display instead of the default brand logo.
|
|
5744
|
+
*/
|
|
5745
|
+
svg?: ReactNode;
|
|
5746
|
+
/**
|
|
5747
|
+
* Click handler for the logo link.
|
|
5748
|
+
*/
|
|
5085
5749
|
onClick?: (e: React__default.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
5086
5750
|
}
|
|
5087
5751
|
|
|
5088
5752
|
interface NavigationHeaderNavLinkProps {
|
|
5753
|
+
/**
|
|
5754
|
+
* Text to display in the navigation link.
|
|
5755
|
+
*/
|
|
5089
5756
|
text: string;
|
|
5757
|
+
/**
|
|
5758
|
+
* URL to link to when the navigation link is clicked.
|
|
5759
|
+
*/
|
|
5090
5760
|
href: string;
|
|
5761
|
+
/**
|
|
5762
|
+
* Border radius size variant for the navigation link.
|
|
5763
|
+
*/
|
|
5091
5764
|
borderRadiusSize?: "s" | "m";
|
|
5765
|
+
/**
|
|
5766
|
+
* Click handler for the navigation link.
|
|
5767
|
+
*/
|
|
5092
5768
|
onClick?: (e: React__default.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
5093
5769
|
}
|
|
5094
5770
|
|
|
@@ -5161,7 +5837,7 @@ type ConfigurableHeaderVisibility = Partial<Record<Exclude<ArcBreakpointSizes, "
|
|
|
5161
5837
|
/**
|
|
5162
5838
|
* Use `NavigationHeader` as a Top-level UI element that displays branding, page titles, and primary navigation actions.
|
|
5163
5839
|
*/
|
|
5164
|
-
declare const NavigationHeader: React__default.
|
|
5840
|
+
declare const NavigationHeader: ({ leftSlot, middleSlot, rightSlot, isPill, isExtended, isFluid, logo, navItems, meatballMenuTooltip, burgerMenuActions, burgerMenuFooter, burgerMenuHeader, burgerMenuVisibility, onOpenChange, burgerMenuPathway, navMenuVisibility, background, }: NavigationHeaderProps) => React__default.JSX.Element;
|
|
5165
5841
|
interface NavigationHeaderProps extends Omit<NavigationHeaderContainerProps, "children" | "background">, Omit<NavigationHeaderNavListProps, "navItems">, ExtentableContainer {
|
|
5166
5842
|
/**
|
|
5167
5843
|
* set the background color of the navbar.
|
|
@@ -5170,15 +5846,15 @@ interface NavigationHeaderProps extends Omit<NavigationHeaderContainerProps, "ch
|
|
|
5170
5846
|
/**
|
|
5171
5847
|
* Open content slot on the left of the nav bar.
|
|
5172
5848
|
*/
|
|
5173
|
-
leftSlot?:
|
|
5849
|
+
leftSlot?: ReactNode;
|
|
5174
5850
|
/**
|
|
5175
5851
|
* Open content slot on the middle of the nav bar, after the nav items.
|
|
5176
5852
|
*/
|
|
5177
|
-
middleSlot?:
|
|
5853
|
+
middleSlot?: ReactNode;
|
|
5178
5854
|
/**
|
|
5179
5855
|
* Open content slot on the right of the nav bar.
|
|
5180
5856
|
*/
|
|
5181
|
-
rightSlot?:
|
|
5857
|
+
rightSlot?: ReactNode;
|
|
5182
5858
|
/**
|
|
5183
5859
|
* 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.
|
|
5184
5860
|
* 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
|
|
@@ -5192,11 +5868,11 @@ interface NavigationHeaderProps extends Omit<NavigationHeaderContainerProps, "ch
|
|
|
5192
5868
|
/**
|
|
5193
5869
|
* Additional content for the burger menu that sits below all the other content.
|
|
5194
5870
|
*/
|
|
5195
|
-
burgerMenuFooter?:
|
|
5871
|
+
burgerMenuFooter?: ReactNode;
|
|
5196
5872
|
/**
|
|
5197
5873
|
* Additional content for the burger menu that sits between the logo and the nav items.
|
|
5198
5874
|
*/
|
|
5199
|
-
burgerMenuHeader?:
|
|
5875
|
+
burgerMenuHeader?: ReactNode;
|
|
5200
5876
|
/**
|
|
5201
5877
|
* Sets the color pathway for the burger menu, by default it inverts the pathway the header is using for contrast.
|
|
5202
5878
|
*/
|
|
@@ -5213,10 +5889,13 @@ interface NavigationHeaderProps extends Omit<NavigationHeaderContainerProps, "ch
|
|
|
5213
5889
|
* Nav items for `<NavigationHeader />`
|
|
5214
5890
|
*/
|
|
5215
5891
|
navItems?: Array<NavigationHeaderNavigationItem>;
|
|
5892
|
+
/**
|
|
5893
|
+
* Callback when burger menu open state changes.
|
|
5894
|
+
*/
|
|
5216
5895
|
onOpenChange?: (isOpen: boolean) => void;
|
|
5217
5896
|
}
|
|
5218
5897
|
|
|
5219
|
-
declare const NavigationHeaderAction: React__default.
|
|
5898
|
+
declare const NavigationHeaderAction: ({ ariaLabel, icon, onClick, title, supportingCopy, isAttention, }: NavigationHeaderActionProps) => React__default.JSX.Element;
|
|
5220
5899
|
interface NavigationHeaderActionProps {
|
|
5221
5900
|
/**
|
|
5222
5901
|
* Icon url for the action.
|
|
@@ -5244,15 +5923,27 @@ interface NavigationHeaderActionProps {
|
|
|
5244
5923
|
onClick?: (e: React__default.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
5245
5924
|
}
|
|
5246
5925
|
|
|
5247
|
-
declare const NavigationHeaderActionBar: React__default.
|
|
5926
|
+
declare const NavigationHeaderActionBar: ({ children, }: NavigationHeaderActionBarProps) => React__default.JSX.Element;
|
|
5248
5927
|
interface NavigationHeaderActionBarProps {
|
|
5249
|
-
|
|
5928
|
+
/**
|
|
5929
|
+
* NavigationHeaderAction components to display in the action bar.
|
|
5930
|
+
*/
|
|
5931
|
+
children: ReactNode;
|
|
5250
5932
|
}
|
|
5251
5933
|
|
|
5252
|
-
declare const NavigationHeaderPage: React__default.
|
|
5934
|
+
declare const NavigationHeaderPage: ({ icon, title, page, }: NavigationHeaderPageProps) => React__default.JSX.Element;
|
|
5253
5935
|
interface NavigationHeaderPageProps {
|
|
5936
|
+
/**
|
|
5937
|
+
* Icon URL to display with the page title.
|
|
5938
|
+
*/
|
|
5254
5939
|
icon?: string;
|
|
5940
|
+
/**
|
|
5941
|
+
* Page text to display.
|
|
5942
|
+
*/
|
|
5255
5943
|
page?: string;
|
|
5944
|
+
/**
|
|
5945
|
+
* Title text for the page.
|
|
5946
|
+
*/
|
|
5256
5947
|
title: string;
|
|
5257
5948
|
}
|
|
5258
5949
|
|