@arc-ui/components 12.0.0 → 12.1.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/Box/styles.css +1 -1
- package/lib/BrandLogo/styles.css +1 -1
- package/lib/Breadcrumbs/Breadcrumbs.cjs +1 -1
- package/lib/Breadcrumbs/Breadcrumbs.mjs +1 -1
- package/lib/Breadcrumbs/styles.css +1 -1
- package/lib/Button/styles.css +1 -1
- package/lib/ButtonGroup/styles.css +1 -1
- package/lib/ButtonV2/styles.css +1 -1
- package/lib/Calendar/Calendar.cjs +3 -3
- package/lib/Calendar/Calendar.mjs +3 -3
- package/lib/Calendar/styles.css +1 -1
- package/lib/CardFooter/styles.css +1 -1
- package/lib/CardHeading/styles.css +1 -1
- package/lib/Carousel/Carousel.cjs +348 -8
- package/lib/Carousel/Carousel.mjs +348 -8
- package/lib/Carousel/styles.css +1 -1
- package/lib/Checkbox/styles.css +1 -1
- package/lib/CheckboxIcon/styles.css +1 -1
- package/lib/Columns/styles.css +1 -1
- package/lib/ComboBox/styles.css +1 -1
- package/lib/ContentSwitcher/ContentSwitcher.cjs +1 -1
- package/lib/ContentSwitcher/ContentSwitcher.mjs +1 -1
- package/lib/ContentSwitcher/styles.css +1 -1
- package/lib/ContentSwitcherDropdown/styles.css +1 -1
- package/lib/DatePicker/DatePicker.cjs +4 -4
- package/lib/DatePicker/DatePicker.mjs +4 -4
- package/lib/DatePicker/styles.css +1 -1
- package/lib/Disclosure/styles.css +1 -1
- package/lib/DisclosureMini/styles.css +1 -1
- package/lib/Download/styles.css +1 -1
- package/lib/Drawer/styles.css +1 -1
- package/lib/Elevation/styles.css +1 -1
- package/lib/Filter/styles.css +1 -1
- package/lib/FormControl/styles.css +1 -1
- package/lib/GhostedHeroBanner/styles.css +1 -1
- package/lib/GradientPageBackground/GradientPageBackground.cjs +3 -3
- package/lib/GradientPageBackground/GradientPageBackground.mjs +3 -3
- 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/styles.css +1 -1
- package/lib/HeroButton/styles.css +1 -1
- package/lib/Hidden/styles.css +1 -1
- package/lib/HorizontalCard/styles.css +1 -1
- package/lib/Icon/styles.css +1 -1
- package/lib/Image/styles.css +1 -1
- package/lib/ImpactCard/styles.css +1 -1
- package/lib/InformationCard/InformationCard.cjs +3 -3
- package/lib/InformationCard/InformationCard.mjs +3 -3
- package/lib/InformationCard/styles.css +1 -1
- package/lib/Link/styles.css +1 -1
- package/lib/Markup/styles.css +1 -1
- package/lib/MediaCard/styles.css +1 -1
- package/lib/Menu/styles.css +1 -1
- package/lib/Modal/styles.css +1 -1
- package/lib/NavigationHeader/NavigationHeader.cjs +23 -35
- package/lib/NavigationHeader/NavigationHeader.mjs +23 -35
- package/lib/NavigationHeader/styles.css +1 -1
- package/lib/Pagination/styles.css +1 -1
- package/lib/PaginationSimple/styles.css +1 -1
- package/lib/Popover/styles.css +1 -1
- package/lib/Poster/styles.css +1 -1
- package/lib/ProgressBar/styles.css +1 -1
- package/lib/ProgressStepper/ProgressStepper.cjs +2 -2
- package/lib/ProgressStepper/ProgressStepper.mjs +2 -2
- package/lib/ProgressStepper/styles.css +1 -1
- package/lib/ProgressStepperOverflow/ProgressStepperOverflow.cjs +76 -121
- package/lib/ProgressStepperOverflow/ProgressStepperOverflow.mjs +77 -123
- package/lib/ProgressStepperOverflow/styles.css +1 -1
- package/lib/RadioCardGroup/RadioCardGroup.cjs +6 -2
- package/lib/RadioCardGroup/RadioCardGroup.mjs +5 -1
- package/lib/RadioCardGroup/styles.css +1 -1
- package/lib/RadioGroup/styles.css +1 -1
- package/lib/Rule/styles.css +1 -1
- package/lib/ScrollToTop/styles.css +1 -1
- package/lib/Section/styles.css +1 -1
- package/lib/Select/styles.css +1 -1
- package/lib/SemanticHeading/styles.css +1 -1
- package/lib/SiteFooter/styles.css +1 -1
- package/lib/SiteFooterV2/styles.css +1 -1
- package/lib/SiteHeaderV2/SiteHeaderV2.cjs +5 -4
- package/lib/SiteHeaderV2/SiteHeaderV2.mjs +5 -4
- package/lib/SiteHeaderV2/styles.css +1 -1
- package/lib/Skeleton/styles.css +1 -1
- package/lib/SkipLink/styles.css +1 -1
- package/lib/Spinner/styles.css +1 -1
- package/lib/Surface/styles.css +1 -1
- package/lib/Switch/styles.css +1 -1
- package/lib/TabbedBanner/TabbedBanner.cjs +1 -1
- package/lib/TabbedBanner/TabbedBanner.mjs +1 -1
- package/lib/TabbedBanner/styles.css +1 -1
- package/lib/Tabs/styles.css +1 -1
- package/lib/Tag/styles.css +1 -1
- package/lib/TemplateBanner/styles.css +1 -1
- package/lib/Text/styles.css +1 -1
- package/lib/TextArea/styles.css +1 -1
- package/lib/TextInput/styles.css +1 -1
- package/lib/Theme/Theme.cjs +1 -1
- package/lib/Theme/Theme.mjs +1 -1
- package/lib/Theme/styles.css +1 -1
- package/lib/ThemeIcon/styles.css +1 -1
- package/lib/ThumbnailSignpost/styles.css +1 -1
- package/lib/Toast/styles.css +1 -1
- package/lib/Tooltip/styles.css +1 -1
- package/lib/Truncate/styles.css +1 -1
- package/lib/TypographyCard/styles.css +1 -1
- package/lib/UniversalHeader/styles.css +1 -1
- package/lib/VerticalSpace/styles.css +1 -1
- package/lib/VideoPlayer/styles.css +1 -1
- package/lib/Visible/styles.css +1 -1
- package/lib/VisuallyHidden/styles.css +1 -1
- package/lib/_shared/cjs/{Calendar-BvPNEvfm.cjs → Calendar-D_jZ0cgf.cjs} +2 -2
- package/lib/_shared/cjs/{ContentSwitcherList-BgAW2IhJ.cjs → ContentSwitcherList-DgychllS.cjs} +8 -8
- package/lib/_shared/cjs/{ProgressStepper-DTZQabiV.cjs → ProgressStepper-mTgKZYEl.cjs} +21 -20
- package/lib/_shared/cjs/{arc-breakpoints-Cl4-g1TC.cjs → arc-breakpoints-DFPoWNR4.cjs} +1 -1
- package/lib/_shared/cjs/{index.es-Dbvw_3_e.cjs → index.es-B2ZfX2D7.cjs} +1 -1
- package/lib/_shared/cjs/{use-media-query-DqZqShGX.cjs → use-media-query-BJV2IbHi.cjs} +4 -4
- package/lib/_shared/esm/{Calendar-DzsQqJlh.mjs → Calendar-wG6UVDgO.mjs} +2 -2
- package/lib/_shared/esm/{ContentSwitcherList-i4m4nAzP.mjs → ContentSwitcherList-CWZcMblg.mjs} +8 -8
- package/lib/_shared/esm/{ProgressStepper-CujHLQsm.mjs → ProgressStepper-DxZrJR0q.mjs} +22 -21
- package/lib/_shared/esm/{arc-breakpoints-Br78xe-f.mjs → arc-breakpoints-TEKN0W5t.mjs} +1 -1
- package/lib/_shared/esm/{index.es-f0R-yhhl.mjs → index.es-Co1d96HB.mjs} +2 -2
- package/lib/_shared/esm/{use-media-query-BmsMeo2M.mjs → use-media-query-l6Sou0dd.mjs} +4 -4
- package/lib/index.cjs +487 -200
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +207 -163
- package/lib/index.d.mts +207 -163
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +488 -202
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +2 -2
- package/lib/use-media-query/use-media-query.cjs +1 -1
- package/lib/use-media-query/use-media-query.mjs +1 -1
- package/package.json +8 -6
- package/lib/_shared/cjs/capitalise-first-letter-CdhexpSx.cjs +0 -8
- package/lib/_shared/esm/capitalise-first-letter-Cubg2CS1.mjs +0 -6
package/lib/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default, { FC, ReactNode, HTMLAttributes, MouseEvent as MouseEvent$1, ChangeEvent, ReactElement } from 'react';
|
|
2
3
|
import { ArcGradient } from '@arc-ui/gradients';
|
|
3
4
|
import { ImageProps as ImageProps$1 } from 'src/components/Image/Image';
|
|
4
5
|
import { VideoPlayerProps as VideoPlayerProps$1 } from 'src/components/VideoPlayer';
|
|
@@ -32,7 +33,7 @@ interface AlignProps {
|
|
|
32
33
|
/**
|
|
33
34
|
* Use `Link` to direct users to a new page or piece of information.
|
|
34
35
|
*/
|
|
35
|
-
declare const Link:
|
|
36
|
+
declare const Link: React__default.FC<LinkProps$1>;
|
|
36
37
|
interface LinkProps$1 {
|
|
37
38
|
/**
|
|
38
39
|
* Id attribute for `Link`.
|
|
@@ -69,7 +70,7 @@ interface LinkProps$1 {
|
|
|
69
70
|
/**
|
|
70
71
|
* Click handler for `Link`.
|
|
71
72
|
*/
|
|
72
|
-
onClick?: (e:
|
|
73
|
+
onClick?: (e: React__default.MouseEvent) => void;
|
|
73
74
|
/**
|
|
74
75
|
* Target for `Link`.
|
|
75
76
|
*/
|
|
@@ -84,11 +85,11 @@ interface LinkProps$1 {
|
|
|
84
85
|
* Use `SemanticHeading` to render accessible headings that preserve correct
|
|
85
86
|
* document hierarchy.
|
|
86
87
|
*/
|
|
87
|
-
declare const SemanticHeading:
|
|
88
|
+
declare const SemanticHeading: React__default.FC<SemanticHeadingProps>;
|
|
88
89
|
type SemanticHeadingLevel = "1" | "2" | "3" | "4" | "5" | "6";
|
|
89
|
-
interface SemanticHeadingProps extends
|
|
90
|
+
interface SemanticHeadingProps extends React__default.HTMLAttributes<HTMLHeadingElement> {
|
|
90
91
|
level?: SemanticHeadingLevel;
|
|
91
|
-
children:
|
|
92
|
+
children: React__default.ReactNode;
|
|
92
93
|
}
|
|
93
94
|
|
|
94
95
|
/**
|
|
@@ -147,7 +148,7 @@ type AlertStatus = "general" | "error" | "warning" | "success";
|
|
|
147
148
|
/**
|
|
148
149
|
* Use `AppButton` for a branded button that links users to download an app.
|
|
149
150
|
*/
|
|
150
|
-
declare const AppButton:
|
|
151
|
+
declare const AppButton: React__default.FC<AppButtonProps>;
|
|
151
152
|
type AppButtonType = "google-play" | "apple-app-store";
|
|
152
153
|
interface AppButtonProps {
|
|
153
154
|
type: AppButtonType;
|
|
@@ -192,7 +193,7 @@ interface ImageSourceProps {
|
|
|
192
193
|
declare const fitOptions: readonly ["cover"];
|
|
193
194
|
declare const loadingOptions: readonly ["eager", "lazy"];
|
|
194
195
|
declare const overlayOptions: readonly ["scrimBottomDark"];
|
|
195
|
-
interface ImageProps extends
|
|
196
|
+
interface ImageProps extends React__default.ImgHTMLAttributes<HTMLImageElement> {
|
|
196
197
|
/**
|
|
197
198
|
* Alternative text for the Image, shown if the image cannot be displayed.
|
|
198
199
|
*/
|
|
@@ -260,13 +261,13 @@ type AvatarImage = Pick<ImageProps, "src" | "loading" | "sizes" | "srcSet" | "wi
|
|
|
260
261
|
type AvatarSize = "s" | "m" | "l" | "xl";
|
|
261
262
|
|
|
262
263
|
/** Use `Avatar` to visually represent a user. */
|
|
263
|
-
declare const Avatar:
|
|
264
|
+
declare const Avatar: React__default.FC<AvatarProps>;
|
|
264
265
|
interface AvatarProps {
|
|
265
266
|
initials?: string;
|
|
266
267
|
href?: string;
|
|
267
268
|
title?: string;
|
|
268
269
|
ariaLabel?: string;
|
|
269
|
-
onClick?: (e:
|
|
270
|
+
onClick?: (e: React__default.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
270
271
|
img?: AvatarImage;
|
|
271
272
|
size?: AvatarSize;
|
|
272
273
|
}
|
|
@@ -274,7 +275,7 @@ interface AvatarProps {
|
|
|
274
275
|
type GroupAvatar = Omit<AvatarProps, "size" | "title" | "href" | "onClick" | "ariaLabel">;
|
|
275
276
|
|
|
276
277
|
/** Use `AvatarGroup` to visually represent a group of users. */
|
|
277
|
-
declare const AvatarGroup:
|
|
278
|
+
declare const AvatarGroup: React__default.FC<AvatarGroupProps>;
|
|
278
279
|
interface AvatarGroupProps {
|
|
279
280
|
avatars: GroupAvatar[];
|
|
280
281
|
size?: AvatarSize;
|
|
@@ -282,7 +283,7 @@ interface AvatarGroupProps {
|
|
|
282
283
|
title?: string;
|
|
283
284
|
ariaLabel?: string;
|
|
284
285
|
href?: string;
|
|
285
|
-
onClick?: (e:
|
|
286
|
+
onClick?: (e: React__default.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
286
287
|
}
|
|
287
288
|
|
|
288
289
|
/** Use `Badge` as a static, non-interactive way to provide short updates. */
|
|
@@ -368,7 +369,7 @@ interface BannerImageProps extends Pick<ImageProps, "src" | "alt" | "loading" |
|
|
|
368
369
|
}
|
|
369
370
|
|
|
370
371
|
/** Use `TemplateBanner` as a base structure for banner components; other banner variants extend or consume this template. */
|
|
371
|
-
declare const TemplateBanner:
|
|
372
|
+
declare const TemplateBanner: React__default.FC<TemplateBannerProps>;
|
|
372
373
|
type TemplateBannerStyle = "light" | "dark" | "contained";
|
|
373
374
|
type TemplateBannerAlignment = "top" | "bottom" | "center";
|
|
374
375
|
interface TemplateBannerImage extends BannerImageProps {
|
|
@@ -418,7 +419,7 @@ interface TemplateBannerProps {
|
|
|
418
419
|
/**
|
|
419
420
|
* Content for the TemplateBanner.
|
|
420
421
|
*/
|
|
421
|
-
children?:
|
|
422
|
+
children?: React__default.ReactNode;
|
|
422
423
|
/**
|
|
423
424
|
* Heading level for the Banner heading.
|
|
424
425
|
*/
|
|
@@ -466,7 +467,7 @@ declare const Banner: FC<BannerProps>;
|
|
|
466
467
|
type BannerProps = Omit<TemplateBannerProps, "headingSize" | "additionalTopMargin">;
|
|
467
468
|
|
|
468
469
|
type SurfaceBackground = "light" | "dark";
|
|
469
|
-
declare const Context$1:
|
|
470
|
+
declare const Context$1: React__default.Context<{
|
|
470
471
|
surface: SurfaceBackground;
|
|
471
472
|
}>;
|
|
472
473
|
/**
|
|
@@ -525,7 +526,7 @@ interface BoxProps {
|
|
|
525
526
|
/**
|
|
526
527
|
* Contents of the Box.
|
|
527
528
|
*/
|
|
528
|
-
children:
|
|
529
|
+
children: React__default.ReactNode;
|
|
529
530
|
/**
|
|
530
531
|
* Set Box to fill parent element.
|
|
531
532
|
*/
|
|
@@ -631,7 +632,7 @@ interface LinkProps {
|
|
|
631
632
|
/**
|
|
632
633
|
* Ref to `<a>` tag
|
|
633
634
|
*/
|
|
634
|
-
ref?:
|
|
635
|
+
ref?: React__default.Ref<HTMLAnchorElement>;
|
|
635
636
|
/**
|
|
636
637
|
* React router property
|
|
637
638
|
*/
|
|
@@ -639,7 +640,7 @@ interface LinkProps {
|
|
|
639
640
|
}
|
|
640
641
|
|
|
641
642
|
type ElementUnion$2 = HTMLButtonElement | HTMLAnchorElement;
|
|
642
|
-
type Ref$2 =
|
|
643
|
+
type Ref$2 = React__default.Ref<ElementUnion$2> | null;
|
|
643
644
|
/**
|
|
644
645
|
* Use `Button` to let a user complete an action like ‘Log in’ or ‘Register’.
|
|
645
646
|
*/
|
|
@@ -748,7 +749,7 @@ interface ButtonGroupProps {
|
|
|
748
749
|
* Components to appear within the ButtonGroup
|
|
749
750
|
* Can be Button, ButtonV2 only.
|
|
750
751
|
*/
|
|
751
|
-
children:
|
|
752
|
+
children: React__default.ReactNode;
|
|
752
753
|
/**
|
|
753
754
|
* Size of the buttons in the ButtonGroup This will override the size prop for each individual button.
|
|
754
755
|
*/
|
|
@@ -776,7 +777,7 @@ interface ButtonGroupProps {
|
|
|
776
777
|
}
|
|
777
778
|
|
|
778
779
|
type ElementUnion$1 = HTMLButtonElement | HTMLAnchorElement;
|
|
779
|
-
type Ref$1 =
|
|
780
|
+
type Ref$1 = React__default.Ref<ElementUnion$1> | null;
|
|
780
781
|
/**
|
|
781
782
|
* Use `ButtonV2` for our most up to date Call To Action button, offering Primary, Secondary, Tertiary, Compact and Error states.
|
|
782
783
|
*/
|
|
@@ -951,7 +952,7 @@ interface SlideConfig {
|
|
|
951
952
|
|
|
952
953
|
type Responsive = Partial<Record<BreakPoints, SlideConfig>>;
|
|
953
954
|
|
|
954
|
-
declare const Carousel:
|
|
955
|
+
declare const Carousel: React__default.FC<CarouselProps>;
|
|
955
956
|
interface CarouselProps {
|
|
956
957
|
/**
|
|
957
958
|
* Adds a gap between the slides.
|
|
@@ -977,10 +978,47 @@ interface CarouselProps {
|
|
|
977
978
|
* Configure the carousel options for different breakpoints.
|
|
978
979
|
*/
|
|
979
980
|
responsive?: Responsive;
|
|
981
|
+
/**
|
|
982
|
+
* Autoplay configuration. Pass an empty object to use default options.
|
|
983
|
+
*/
|
|
984
|
+
autoplay?: {
|
|
985
|
+
/**
|
|
986
|
+
* Time in milliseconds between auto scrolls.
|
|
987
|
+
*/
|
|
988
|
+
delay?: number;
|
|
989
|
+
/**
|
|
990
|
+
* Start autoplay on initialization.
|
|
991
|
+
*/
|
|
992
|
+
playOnInit?: boolean;
|
|
993
|
+
/**
|
|
994
|
+
* Stops autoplay on user interaction (click/tap).
|
|
995
|
+
*/
|
|
996
|
+
stopOnInteraction?: boolean;
|
|
997
|
+
/**
|
|
998
|
+
* Stops autoplay when mouse enters carousel.
|
|
999
|
+
*/
|
|
1000
|
+
stopOnMouseEnter?: boolean;
|
|
1001
|
+
/**
|
|
1002
|
+
* Stops autoplay when carousel receives focus.
|
|
1003
|
+
*/
|
|
1004
|
+
stopOnFocusIn?: boolean;
|
|
1005
|
+
/**
|
|
1006
|
+
* Stops autoplay when reaching the last slide.
|
|
1007
|
+
*/
|
|
1008
|
+
stopOnLastSnap?: boolean;
|
|
1009
|
+
};
|
|
1010
|
+
/**
|
|
1011
|
+
* Use isPlaying to control the state of autoplay
|
|
1012
|
+
*/
|
|
1013
|
+
isPlaying?: boolean;
|
|
1014
|
+
/**
|
|
1015
|
+
* Enable fade transition between slides
|
|
1016
|
+
*/
|
|
1017
|
+
fade?: boolean;
|
|
980
1018
|
/**
|
|
981
1019
|
* items for the carousel.
|
|
982
1020
|
*/
|
|
983
|
-
children:
|
|
1021
|
+
children: React__default.ReactNode;
|
|
984
1022
|
}
|
|
985
1023
|
|
|
986
1024
|
/**
|
|
@@ -1013,7 +1051,7 @@ interface CheckboxProps extends Omit<CheckedProps$1, "defaultChecked"> {
|
|
|
1013
1051
|
/**
|
|
1014
1052
|
* Helper text for the Checkbox, shown below the label.
|
|
1015
1053
|
*/
|
|
1016
|
-
helper?:
|
|
1054
|
+
helper?: React__default.ReactNode;
|
|
1017
1055
|
/**
|
|
1018
1056
|
* Determine the alignment of the Checkbox.
|
|
1019
1057
|
*/
|
|
@@ -1033,7 +1071,7 @@ interface CheckboxProps extends Omit<CheckedProps$1, "defaultChecked"> {
|
|
|
1033
1071
|
/**
|
|
1034
1072
|
* Label for the Checkbox.
|
|
1035
1073
|
*/
|
|
1036
|
-
label:
|
|
1074
|
+
label: React__default.ReactNode;
|
|
1037
1075
|
/**
|
|
1038
1076
|
* Use `hideLabel` to visually hide the `Checkbox` label. This still allows screen readers to have access to labels. This is set to `false` by default.
|
|
1039
1077
|
*/
|
|
@@ -1045,12 +1083,12 @@ interface CheckboxProps extends Omit<CheckedProps$1, "defaultChecked"> {
|
|
|
1045
1083
|
/**
|
|
1046
1084
|
* Function to call when the Checkbox loses focus.
|
|
1047
1085
|
*/
|
|
1048
|
-
onBlur?: (e:
|
|
1086
|
+
onBlur?: (e: React__default.FocusEvent<HTMLInputElement>) => void;
|
|
1049
1087
|
/**
|
|
1050
1088
|
* Callback function to update the Checkbox's controlled `checked` prop, for
|
|
1051
1089
|
* example `e => setChecked(e.target.checked)`.
|
|
1052
1090
|
*/
|
|
1053
|
-
onChange?: (event:
|
|
1091
|
+
onChange?: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
1054
1092
|
/**
|
|
1055
1093
|
* Size of the Checkbox.
|
|
1056
1094
|
*/
|
|
@@ -1066,7 +1104,7 @@ interface CheckboxProps extends Omit<CheckedProps$1, "defaultChecked"> {
|
|
|
1066
1104
|
}
|
|
1067
1105
|
|
|
1068
1106
|
/** Use `CheckboxIcon` to display a visual checkbox indicator that reflects a checked, unchecked, or indeterminate state. */
|
|
1069
|
-
declare const CheckboxIcon:
|
|
1107
|
+
declare const CheckboxIcon: React__default.FC<CheckboxIconProps>;
|
|
1070
1108
|
type CheckedProps = {
|
|
1071
1109
|
/**
|
|
1072
1110
|
* Is the input checked?
|
|
@@ -1109,12 +1147,12 @@ interface CheckboxIconProps extends Omit<CheckedProps, "defaultChecked"> {
|
|
|
1109
1147
|
/**
|
|
1110
1148
|
* Function to call when the Checkbox loses focus.
|
|
1111
1149
|
*/
|
|
1112
|
-
onBlur?: (e:
|
|
1150
|
+
onBlur?: (e: React__default.FocusEvent<HTMLInputElement>) => void;
|
|
1113
1151
|
/**
|
|
1114
1152
|
* Callback function to update the Checkbox's controlled `checked` prop, for
|
|
1115
1153
|
* example `e => setChecked(e.target.checked)`.
|
|
1116
1154
|
*/
|
|
1117
|
-
onChange?: (event:
|
|
1155
|
+
onChange?: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
1118
1156
|
/**
|
|
1119
1157
|
* Size of the Checkbox.
|
|
1120
1158
|
*/
|
|
@@ -1206,7 +1244,7 @@ interface ColumnsProps extends ExtentableContainer {
|
|
|
1206
1244
|
}
|
|
1207
1245
|
|
|
1208
1246
|
type RequirementStatus = "required" | "optional" | "not-applicable";
|
|
1209
|
-
declare const Context:
|
|
1247
|
+
declare const Context: React__default.Context<{
|
|
1210
1248
|
requirementStatus: RequirementStatus | null;
|
|
1211
1249
|
}>;
|
|
1212
1250
|
/**
|
|
@@ -1217,7 +1255,7 @@ interface FormControlProps {
|
|
|
1217
1255
|
/**
|
|
1218
1256
|
* Render the input or series of inputs
|
|
1219
1257
|
*/
|
|
1220
|
-
children:
|
|
1258
|
+
children: React__default.ReactNode;
|
|
1221
1259
|
/**
|
|
1222
1260
|
* HTML Element type for the FormControl.
|
|
1223
1261
|
* @default 'div'
|
|
@@ -1230,7 +1268,7 @@ interface FormControlProps {
|
|
|
1230
1268
|
/**
|
|
1231
1269
|
* Helper text for the FormControl, shown below the label.
|
|
1232
1270
|
*/
|
|
1233
|
-
helper?:
|
|
1271
|
+
helper?: React__default.ReactNode;
|
|
1234
1272
|
/**
|
|
1235
1273
|
* ID for the input that the FormControl points towards.
|
|
1236
1274
|
*/
|
|
@@ -1276,7 +1314,7 @@ interface FormControlProps {
|
|
|
1276
1314
|
/**
|
|
1277
1315
|
* Optional additional information for the FormControl.
|
|
1278
1316
|
*/
|
|
1279
|
-
supplementaryInfo?:
|
|
1317
|
+
supplementaryInfo?: React__default.ReactNode;
|
|
1280
1318
|
/**
|
|
1281
1319
|
* Position helper text under label. This is set to `false` by default.
|
|
1282
1320
|
*/
|
|
@@ -1292,15 +1330,15 @@ interface FormControlProps {
|
|
|
1292
1330
|
}
|
|
1293
1331
|
|
|
1294
1332
|
/** Use `ComboBox` to provide a searchable dropdown list that allows users to select from or filter through multiple options. */
|
|
1295
|
-
declare const ComboBox:
|
|
1333
|
+
declare const ComboBox: React__default.ForwardRefExoticComponent<ComboBoxProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
1296
1334
|
interface ComboBoxProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "helperUnderLabel" | "supplementaryInfo" | "labelPosition"> {
|
|
1297
1335
|
listBoxAriaLabel: string;
|
|
1298
1336
|
options: string[];
|
|
1299
1337
|
name?: string;
|
|
1300
1338
|
isRequired?: boolean;
|
|
1301
1339
|
defaultValue?: string;
|
|
1302
|
-
onBlur?: (e:
|
|
1303
|
-
onFocus?: (e:
|
|
1340
|
+
onBlur?: (e: React__default.FocusEvent<HTMLInputElement, Element>) => void;
|
|
1341
|
+
onFocus?: (e: React__default.FocusEvent<HTMLInputElement, Element>) => void;
|
|
1304
1342
|
isMultiSelectable?: boolean;
|
|
1305
1343
|
isAutocomplete?: boolean;
|
|
1306
1344
|
isReadOnly?: boolean;
|
|
@@ -1488,7 +1526,7 @@ interface TooltipProps {
|
|
|
1488
1526
|
/**
|
|
1489
1527
|
* Content to render within Tooltip
|
|
1490
1528
|
*/
|
|
1491
|
-
children?:
|
|
1529
|
+
children?: React__default.ReactNode;
|
|
1492
1530
|
/**
|
|
1493
1531
|
* The preferred side of the anchor to render against when open
|
|
1494
1532
|
*/
|
|
@@ -1547,11 +1585,11 @@ interface TooltipProps {
|
|
|
1547
1585
|
asChild?: boolean;
|
|
1548
1586
|
}
|
|
1549
1587
|
|
|
1550
|
-
type EventType$4 =
|
|
1588
|
+
type EventType$4 = React__default.ChangeEvent<HTMLInputElement>;
|
|
1551
1589
|
/**
|
|
1552
1590
|
* Use `TextInput` to allow users to enter short form text.
|
|
1553
1591
|
*/
|
|
1554
|
-
declare const TextInput:
|
|
1592
|
+
declare const TextInput: React__default.ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
1555
1593
|
interface TextInputComponentProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "helperUnderLabel" | "supplementaryInfo" | "labelPosition" | "labelSize"> {
|
|
1556
1594
|
/**
|
|
1557
1595
|
* Uncontrolled default value of the TextInput. If the TextInput is controlled
|
|
@@ -1598,11 +1636,11 @@ interface TextInputComponentProps extends Omit<FormControlProps, "children" | "e
|
|
|
1598
1636
|
/**
|
|
1599
1637
|
* Add a leadingSlot value within `TextInput`
|
|
1600
1638
|
*/
|
|
1601
|
-
leadingSlot?:
|
|
1639
|
+
leadingSlot?: React__default.ReactNode;
|
|
1602
1640
|
/**
|
|
1603
1641
|
* Add a trailingSlot value within `TextInput`. If `showPassword`, `clearIcon` or `isloading` is true, this value will not be displayed.
|
|
1604
1642
|
*/
|
|
1605
|
-
trailingSlot?:
|
|
1643
|
+
trailingSlot?: React__default.ReactNode;
|
|
1606
1644
|
/**
|
|
1607
1645
|
* Add a suffix value within `TextInput`.
|
|
1608
1646
|
*/
|
|
@@ -1626,11 +1664,11 @@ interface TextInputComponentProps extends Omit<FormControlProps, "children" | "e
|
|
|
1626
1664
|
/**
|
|
1627
1665
|
* Function to call when the TextInput loses focus.
|
|
1628
1666
|
*/
|
|
1629
|
-
onBlur?: (e:
|
|
1667
|
+
onBlur?: (e: React__default.FocusEvent<HTMLInputElement, Element>) => void;
|
|
1630
1668
|
/**
|
|
1631
1669
|
* Function to call when the TextInput is focused.
|
|
1632
1670
|
*/
|
|
1633
|
-
onFocus?: (e:
|
|
1671
|
+
onFocus?: (e: React__default.FocusEvent<HTMLInputElement, Element>) => void;
|
|
1634
1672
|
/**
|
|
1635
1673
|
* Callback function commonly used to update the TextInput's controlled
|
|
1636
1674
|
* `value`, for example `e => setValue(e.target.value)`.
|
|
@@ -1672,7 +1710,7 @@ interface TextInputComponentProps extends Omit<FormControlProps, "children" | "e
|
|
|
1672
1710
|
/**
|
|
1673
1711
|
* A reference to TextInput
|
|
1674
1712
|
*/
|
|
1675
|
-
ref?:
|
|
1713
|
+
ref?: React__default.Ref<HTMLInputElement>;
|
|
1676
1714
|
}
|
|
1677
1715
|
type TextInputProps = Omit<TextInputComponentProps, "placeholder">;
|
|
1678
1716
|
type TextInputWithPlaceholderProps = TextInputComponentProps;
|
|
@@ -1680,7 +1718,7 @@ type TextInputWithPlaceholderProps = TextInputComponentProps;
|
|
|
1680
1718
|
/**
|
|
1681
1719
|
* Use `DatePicker` to clearly present available dates and allow users to choose a way to enter information.
|
|
1682
1720
|
*/
|
|
1683
|
-
declare const DatePicker:
|
|
1721
|
+
declare const DatePicker: React__default.ForwardRefExoticComponent<Omit<DatePickerProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
1684
1722
|
interface DatePickerRangeSelection$1 extends RangeSelection {
|
|
1685
1723
|
formattedRange: string;
|
|
1686
1724
|
}
|
|
@@ -1693,7 +1731,7 @@ interface DatePickerProps extends Omit<TextInputWithPlaceholderProps, "defaultVa
|
|
|
1693
1731
|
onRangeSelect?: (value: DatePickerRangeSelection$1) => void;
|
|
1694
1732
|
}
|
|
1695
1733
|
|
|
1696
|
-
declare const DatePickerRange:
|
|
1734
|
+
declare const DatePickerRange: React__default.FC<DatePickerRangeProps>;
|
|
1697
1735
|
interface DatePickerRangeSelection extends RangeSelection {
|
|
1698
1736
|
formattedStart: string;
|
|
1699
1737
|
formattedEnd: string;
|
|
@@ -1793,7 +1831,7 @@ interface ThemeIconProps {
|
|
|
1793
1831
|
type ThemeIconNames = (typeof iconNames)[number];
|
|
1794
1832
|
|
|
1795
1833
|
/** Use `Download` to provide users with a file download action. */
|
|
1796
|
-
declare const Download:
|
|
1834
|
+
declare const Download: React__default.FC<DownloadProps>;
|
|
1797
1835
|
interface DownloadProps {
|
|
1798
1836
|
/**
|
|
1799
1837
|
* Name for `<Download />`
|
|
@@ -1833,7 +1871,7 @@ interface DownloadProps {
|
|
|
1833
1871
|
onClick?: (e: MouseEvent$1<HTMLAnchorElement>) => void;
|
|
1834
1872
|
}
|
|
1835
1873
|
|
|
1836
|
-
declare const Drawer:
|
|
1874
|
+
declare const Drawer: React__default.FC<DrawerProps>;
|
|
1837
1875
|
interface DrawerProps {
|
|
1838
1876
|
/**
|
|
1839
1877
|
* Show or hide page overlay.
|
|
@@ -1868,7 +1906,7 @@ interface DrawerProps {
|
|
|
1868
1906
|
/**
|
|
1869
1907
|
* Content to include with in the `Drawer` This should typically be `DrawerHeader`, `DrawerFooter` and `DrawerFooter`. This can also have custom content.
|
|
1870
1908
|
*/
|
|
1871
|
-
children?:
|
|
1909
|
+
children?: React__default.ReactNode;
|
|
1872
1910
|
/**
|
|
1873
1911
|
* Set the position of the `Drawer`
|
|
1874
1912
|
*/
|
|
@@ -1895,14 +1933,14 @@ interface DrawerProps {
|
|
|
1895
1933
|
/**
|
|
1896
1934
|
* Envoke function when drag handle is clicked
|
|
1897
1935
|
*/
|
|
1898
|
-
onDragHandleClick?: (e:
|
|
1936
|
+
onDragHandleClick?: (e: React__default.MouseEvent) => void;
|
|
1899
1937
|
/**
|
|
1900
1938
|
* Describe the content of the Drawer
|
|
1901
1939
|
*/
|
|
1902
1940
|
ariaDescription: string;
|
|
1903
1941
|
}
|
|
1904
1942
|
|
|
1905
|
-
declare const DrawerHeader:
|
|
1943
|
+
declare const DrawerHeader: React__default.FC<DrawerHeaderProps>;
|
|
1906
1944
|
interface DrawerHeaderProps extends Pick<HeadingProps, "isResponsive"> {
|
|
1907
1945
|
/**
|
|
1908
1946
|
* Title for the DrawerHeader
|
|
@@ -1914,24 +1952,24 @@ interface DrawerHeaderProps extends Pick<HeadingProps, "isResponsive"> {
|
|
|
1914
1952
|
isFixed?: boolean;
|
|
1915
1953
|
}
|
|
1916
1954
|
|
|
1917
|
-
declare const DrawerFooter:
|
|
1955
|
+
declare const DrawerFooter: React__default.FC<DrawerFooterProps>;
|
|
1918
1956
|
interface DrawerFooterProps {
|
|
1919
1957
|
/**
|
|
1920
1958
|
* Content to display within the DrawerFooter. This will typically be ButtonGroup
|
|
1921
1959
|
*/
|
|
1922
|
-
children?:
|
|
1960
|
+
children?: React__default.ReactNode;
|
|
1923
1961
|
/**
|
|
1924
1962
|
* Determine if the `DrawerFooter` is fixed to the bottom of the `Drawer`
|
|
1925
1963
|
*/
|
|
1926
1964
|
isFixed?: boolean;
|
|
1927
1965
|
}
|
|
1928
1966
|
|
|
1929
|
-
declare const DrawerContent:
|
|
1967
|
+
declare const DrawerContent: React__default.FC<DrawerContentProps>;
|
|
1930
1968
|
interface DrawerContentProps {
|
|
1931
1969
|
/**
|
|
1932
1970
|
* Display content within the DrawerContent sectino
|
|
1933
1971
|
*/
|
|
1934
|
-
children:
|
|
1972
|
+
children: React__default.ReactNode;
|
|
1935
1973
|
/**
|
|
1936
1974
|
* This property removes all arc styling and opens the Drawer to have fully custom content
|
|
1937
1975
|
*/
|
|
@@ -2051,7 +2089,7 @@ interface FilterControlProps {
|
|
|
2051
2089
|
/**
|
|
2052
2090
|
* Use `GhostedHeroBanner` to grab attention and convey the main message or purpose of a webpage
|
|
2053
2091
|
*/
|
|
2054
|
-
declare const GhostedHeroBanner:
|
|
2092
|
+
declare const GhostedHeroBanner: React__default.FC<GhostedHeroBannerProps>;
|
|
2055
2093
|
type GhostedHeroBannerProps = Pick<TemplateBannerProps, "heading" | "img" | "children" | "label" | "text" | "headingLevel" | "fontStyle">;
|
|
2056
2094
|
|
|
2057
2095
|
/**
|
|
@@ -2078,7 +2116,7 @@ type ScrimFadeSize = "l" | "m" | "s";
|
|
|
2078
2116
|
/**
|
|
2079
2117
|
* Use `GradientPageBackground` as a content wrapper blending multiple colours to add depth, mood or emphasise hero sections, footer sections, or mid-page section backgrounds.
|
|
2080
2118
|
*/
|
|
2081
|
-
declare const GradientPageBackground:
|
|
2119
|
+
declare const GradientPageBackground: React__default.FC<GradientPageBackgroundProps>;
|
|
2082
2120
|
interface GradientPageBackgroundProps {
|
|
2083
2121
|
/**
|
|
2084
2122
|
* Gradient for the component. You can import these directly from the @arc-ui/gradients package, or pass your own.
|
|
@@ -2107,7 +2145,7 @@ interface GradientPageBackgroundProps {
|
|
|
2107
2145
|
/**
|
|
2108
2146
|
* Content to be displayed on top of the gradient
|
|
2109
2147
|
*/
|
|
2110
|
-
children
|
|
2148
|
+
children?: React__default.ReactNode;
|
|
2111
2149
|
/**
|
|
2112
2150
|
* Loading behaviour of the background gradient image.
|
|
2113
2151
|
*/
|
|
@@ -2117,7 +2155,7 @@ interface GradientPageBackgroundProps {
|
|
|
2117
2155
|
/**
|
|
2118
2156
|
* Use `Grid` to compose layouts on a 12-column grid. Aligns with sibling `Section` components.
|
|
2119
2157
|
*/
|
|
2120
|
-
declare const Grid:
|
|
2158
|
+
declare const Grid: React__default.FC<GridProps>;
|
|
2121
2159
|
interface GridProps extends ExtentableContainer {
|
|
2122
2160
|
/**
|
|
2123
2161
|
* `Grid` is set to 100% width if true.
|
|
@@ -2134,7 +2172,7 @@ interface GridProps extends ExtentableContainer {
|
|
|
2134
2172
|
/**
|
|
2135
2173
|
* Contents of the Grid Should only contain `GridRow`.
|
|
2136
2174
|
*/
|
|
2137
|
-
children:
|
|
2175
|
+
children: React__default.ReactNode;
|
|
2138
2176
|
}
|
|
2139
2177
|
|
|
2140
2178
|
declare const BREAKPOINTS: readonly ["xs", "s", "m", "l", "xl", "xxl", "xxxl"];
|
|
@@ -2148,20 +2186,20 @@ type Column = ColumnConfig<ColumnValue>;
|
|
|
2148
2186
|
type Arrangement = ColumnConfig<GridValue>;
|
|
2149
2187
|
type Alignment = ColumnConfig<AlignmentValue>;
|
|
2150
2188
|
|
|
2151
|
-
declare const GridCol:
|
|
2189
|
+
declare const GridCol: React__default.FC<GridColProps>;
|
|
2152
2190
|
interface GridColProps extends Column {
|
|
2153
2191
|
offset?: Arrangement;
|
|
2154
2192
|
order?: Arrangement;
|
|
2155
2193
|
align?: Alignment;
|
|
2156
|
-
children:
|
|
2194
|
+
children: React__default.ReactNode;
|
|
2157
2195
|
}
|
|
2158
2196
|
|
|
2159
|
-
declare const GridRow:
|
|
2197
|
+
declare const GridRow: React__default.FC<GridRowProps>;
|
|
2160
2198
|
interface GridRowProps {
|
|
2161
2199
|
align?: AlignmentValue;
|
|
2162
2200
|
direction?: "column" | "row" | "column-reverse" | "row-reverse";
|
|
2163
2201
|
justify?: "start" | "center" | "end" | "between" | "around" | "normal";
|
|
2164
|
-
children:
|
|
2202
|
+
children: React__default.ReactNode;
|
|
2165
2203
|
}
|
|
2166
2204
|
|
|
2167
2205
|
/**
|
|
@@ -2218,7 +2256,7 @@ interface HeroBannerProps extends Omit<TemplateBannerProps, "headingSize" | "ali
|
|
|
2218
2256
|
}
|
|
2219
2257
|
|
|
2220
2258
|
type ElementUnion = HTMLButtonElement | HTMLAnchorElement;
|
|
2221
|
-
type Ref =
|
|
2259
|
+
type Ref = React__default.Ref<ElementUnion> | null;
|
|
2222
2260
|
/**
|
|
2223
2261
|
* Use `HeroButton` as the most prominent call-to-action. It should be used sparingly at the most important parts of a user journey only.
|
|
2224
2262
|
*/
|
|
@@ -2295,9 +2333,9 @@ interface BreakpointVisibility {
|
|
|
2295
2333
|
}
|
|
2296
2334
|
|
|
2297
2335
|
/** Use `Hidden` to hide it's children at specific breakpoints */
|
|
2298
|
-
declare const Hidden:
|
|
2336
|
+
declare const Hidden: React__default.FC<HiddenProps>;
|
|
2299
2337
|
interface HiddenProps extends BreakpointVisibility {
|
|
2300
|
-
children:
|
|
2338
|
+
children: React__default.ReactNode;
|
|
2301
2339
|
}
|
|
2302
2340
|
|
|
2303
2341
|
type CardFooterIcon = "play" | "arrow";
|
|
@@ -2311,7 +2349,7 @@ interface CardFooterProps {
|
|
|
2311
2349
|
}
|
|
2312
2350
|
|
|
2313
2351
|
/** Use `HorizontalCard` to display card content in a horizontal layout. */
|
|
2314
|
-
declare const HorizontalCard:
|
|
2352
|
+
declare const HorizontalCard: React__default.FC<HorizontalCardProps>;
|
|
2315
2353
|
interface HorizontalCardProps {
|
|
2316
2354
|
/**
|
|
2317
2355
|
* Heading for the HorizontalCard.
|
|
@@ -2344,7 +2382,7 @@ interface HorizontalCardProps {
|
|
|
2344
2382
|
/**
|
|
2345
2383
|
* Click handler for the HorizontalCard. Only applied when a url is provided.
|
|
2346
2384
|
*/
|
|
2347
|
-
onClick?: (e:
|
|
2385
|
+
onClick?: (e: React__default.MouseEvent<HTMLAnchorElement>) => void;
|
|
2348
2386
|
}
|
|
2349
2387
|
|
|
2350
2388
|
/**
|
|
@@ -2417,7 +2455,7 @@ interface ImpactCardProps {
|
|
|
2417
2455
|
/**
|
|
2418
2456
|
* Click handler for the ImpactCard.
|
|
2419
2457
|
*/
|
|
2420
|
-
onClick?: (e:
|
|
2458
|
+
onClick?: (e: React__default.MouseEvent<HTMLAnchorElement>) => void;
|
|
2421
2459
|
/**
|
|
2422
2460
|
* Object of `data-` attributes to render on internal anchor element, e.g.
|
|
2423
2461
|
* `{ data-analytics-link: "My link"}` => `<a data-analytics-link="My link">`.
|
|
@@ -2476,7 +2514,7 @@ interface InformationCardProps {
|
|
|
2476
2514
|
/**
|
|
2477
2515
|
* Click handler for the InformationCard. Only applied when a card url is provided.
|
|
2478
2516
|
*/
|
|
2479
|
-
onClick?: (e:
|
|
2517
|
+
onClick?: (e: React__default.MouseEvent<HTMLAnchorElement>) => void;
|
|
2480
2518
|
/**
|
|
2481
2519
|
* Footer logo for the InformationCard.
|
|
2482
2520
|
*/
|
|
@@ -2584,7 +2622,7 @@ interface MediaCardProps {
|
|
|
2584
2622
|
/**
|
|
2585
2623
|
* Click handler for the MediaCard. Only applied when a url is provided.
|
|
2586
2624
|
*/
|
|
2587
|
-
onClick?: (e:
|
|
2625
|
+
onClick?: (e: React__default.MouseEvent<HTMLAnchorElement>) => void;
|
|
2588
2626
|
/**
|
|
2589
2627
|
* Heading level for the MediaCard label.
|
|
2590
2628
|
*/
|
|
@@ -2594,12 +2632,12 @@ interface MediaCardProps {
|
|
|
2594
2632
|
/**
|
|
2595
2633
|
* Use 'Menu' to display a list of selectable options, e.g. suggestions, presets or autocomplete results.
|
|
2596
2634
|
*/
|
|
2597
|
-
declare const Menu:
|
|
2635
|
+
declare const Menu: React__default.FC<MenuProps>;
|
|
2598
2636
|
interface MenuProps {
|
|
2599
2637
|
/**
|
|
2600
2638
|
* The content of the menu
|
|
2601
2639
|
*/
|
|
2602
|
-
children:
|
|
2640
|
+
children: React__default.ReactNode;
|
|
2603
2641
|
/**
|
|
2604
2642
|
* Whether the menu is open by default
|
|
2605
2643
|
*/
|
|
@@ -2626,7 +2664,7 @@ interface MenuProps {
|
|
|
2626
2664
|
defaultWidth?: string | number;
|
|
2627
2665
|
}
|
|
2628
2666
|
|
|
2629
|
-
declare const MenuItemContentTemplate:
|
|
2667
|
+
declare const MenuItemContentTemplate: React__default.FC<MenuItemContentTemplateProps>;
|
|
2630
2668
|
interface MenuItemContentTemplateProps {
|
|
2631
2669
|
/**
|
|
2632
2670
|
* Optional supporting text that appears below the label for additional context.
|
|
@@ -2650,7 +2688,7 @@ interface MenuItemContentTemplateProps {
|
|
|
2650
2688
|
keyCommands?: string;
|
|
2651
2689
|
}
|
|
2652
2690
|
|
|
2653
|
-
declare const MenuItemCheckbox:
|
|
2691
|
+
declare const MenuItemCheckbox: React__default.FC<MenuItemCheckboxProps>;
|
|
2654
2692
|
interface MenuItemCheckboxProps extends Pick<MenuItemContentTemplateProps, "supportingText" | "children"> {
|
|
2655
2693
|
/**
|
|
2656
2694
|
* Controls whether the checkbox is checked, unchecked.
|
|
@@ -2681,12 +2719,12 @@ interface MenuItemCheckboxProps extends Pick<MenuItemContentTemplateProps, "supp
|
|
|
2681
2719
|
/**
|
|
2682
2720
|
* The component that pops out when the dropdown menu is open.
|
|
2683
2721
|
*/
|
|
2684
|
-
declare const MenuContent:
|
|
2722
|
+
declare const MenuContent: React__default.ForwardRefExoticComponent<MenuContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2685
2723
|
interface MenuContentProps {
|
|
2686
2724
|
/**
|
|
2687
2725
|
* The content inside the menu, typically `MenuItem`, `MenuGroup`, and other menu elements.
|
|
2688
2726
|
*/
|
|
2689
|
-
children:
|
|
2727
|
+
children: React__default.ReactNode;
|
|
2690
2728
|
/**
|
|
2691
2729
|
* The width of the menu content. Can be any valid CSS width value. This is `fit-content` by default and needs to be set to `auto` to use other properties.
|
|
2692
2730
|
*/
|
|
@@ -2747,12 +2785,12 @@ interface MenuFooterProps extends MenuItemContentTemplateProps {
|
|
|
2747
2785
|
/**
|
|
2748
2786
|
* Groups related menu items together within a dropdown menu.
|
|
2749
2787
|
*/
|
|
2750
|
-
declare const MenuGroup:
|
|
2788
|
+
declare const MenuGroup: React__default.FC<MenuGroupProps>;
|
|
2751
2789
|
interface MenuGroupProps {
|
|
2752
2790
|
/**
|
|
2753
2791
|
* Menu items grouped together within the menu.
|
|
2754
2792
|
*/
|
|
2755
|
-
children:
|
|
2793
|
+
children: React__default.ReactNode;
|
|
2756
2794
|
}
|
|
2757
2795
|
|
|
2758
2796
|
/**
|
|
@@ -2781,7 +2819,7 @@ interface MenuHeaderProps extends MenuItemContentTemplateProps {
|
|
|
2781
2819
|
/**
|
|
2782
2820
|
* Renders a menu item, optionally as a link if `href` is provided.
|
|
2783
2821
|
*/
|
|
2784
|
-
declare const MenuItem:
|
|
2822
|
+
declare const MenuItem: React__default.FC<MenuItemProps>;
|
|
2785
2823
|
interface MenuItemProps extends MenuItemContentTemplateProps {
|
|
2786
2824
|
/**
|
|
2787
2825
|
* Click event handler triggered when the menu item is selected.
|
|
@@ -2808,7 +2846,7 @@ interface MenuItemProps extends MenuItemContentTemplateProps {
|
|
|
2808
2846
|
/**
|
|
2809
2847
|
* Provides a label to group related menu items.
|
|
2810
2848
|
*/
|
|
2811
|
-
declare const MenuLabel:
|
|
2849
|
+
declare const MenuLabel: React__default.FC<MenuLabelProps>;
|
|
2812
2850
|
interface MenuLabelProps {
|
|
2813
2851
|
/**
|
|
2814
2852
|
* The text content of the label, typically used to group related menu items.
|
|
@@ -2819,23 +2857,23 @@ interface MenuLabelProps {
|
|
|
2819
2857
|
/**
|
|
2820
2858
|
* When used, portals the content part into the body. By default it's arc's theme element
|
|
2821
2859
|
*/
|
|
2822
|
-
declare const MenuPortal:
|
|
2860
|
+
declare const MenuPortal: React__default.FC<MenuPortalProps>;
|
|
2823
2861
|
interface MenuPortalProps {
|
|
2824
2862
|
/**
|
|
2825
2863
|
* The content to be portalled.
|
|
2826
2864
|
*/
|
|
2827
|
-
children:
|
|
2865
|
+
children: React__default.ReactNode;
|
|
2828
2866
|
}
|
|
2829
2867
|
|
|
2830
2868
|
/**
|
|
2831
2869
|
* Groups menu items allowing single selection from multiple options.
|
|
2832
2870
|
*/
|
|
2833
|
-
declare const MenuGroupSingleSelect:
|
|
2871
|
+
declare const MenuGroupSingleSelect: React__default.FC<MenuGroupSingleSelectProps>;
|
|
2834
2872
|
interface MenuGroupSingleSelectProps {
|
|
2835
2873
|
/**
|
|
2836
2874
|
* The single select items inside the group.
|
|
2837
2875
|
*/
|
|
2838
|
-
children:
|
|
2876
|
+
children: React__default.ReactNode;
|
|
2839
2877
|
/**
|
|
2840
2878
|
* The current selected value of the single select group.
|
|
2841
2879
|
*/
|
|
@@ -2849,7 +2887,7 @@ interface MenuGroupSingleSelectProps {
|
|
|
2849
2887
|
/**
|
|
2850
2888
|
* A selectable menu item used within a radio group.
|
|
2851
2889
|
*/
|
|
2852
|
-
declare const MenuItemSingleSelect:
|
|
2890
|
+
declare const MenuItemSingleSelect: React__default.FC<MenuItemSingleSelectProps>;
|
|
2853
2891
|
interface MenuItemSingleSelectProps extends Omit<MenuItemContentTemplateProps, "trailingIcon"> {
|
|
2854
2892
|
/**
|
|
2855
2893
|
* The value assigned to this radio item.
|
|
@@ -2872,39 +2910,39 @@ interface MenuItemSingleSelectProps extends Omit<MenuItemContentTemplateProps, "
|
|
|
2872
2910
|
/**
|
|
2873
2911
|
* Scrollable container that adjusts height based on surrounding menu content.
|
|
2874
2912
|
*/
|
|
2875
|
-
declare const MenuScrollable:
|
|
2913
|
+
declare const MenuScrollable: React__default.FC<MenuScrollableProps>;
|
|
2876
2914
|
interface MenuScrollableProps {
|
|
2877
2915
|
/**
|
|
2878
2916
|
* The content within the scrollable area, typically a list of `MenuItem` components or similar menu elements.
|
|
2879
2917
|
*/
|
|
2880
|
-
children:
|
|
2918
|
+
children: React__default.ReactNode;
|
|
2881
2919
|
}
|
|
2882
2920
|
|
|
2883
2921
|
/**
|
|
2884
2922
|
* Visual separator used to divide groups of menu items.
|
|
2885
2923
|
*/
|
|
2886
|
-
declare const MenuSeparator:
|
|
2924
|
+
declare const MenuSeparator: React__default.FC;
|
|
2887
2925
|
|
|
2888
2926
|
/**
|
|
2889
2927
|
* Container for multi-level menu content within a dropdown menu.
|
|
2890
2928
|
*/
|
|
2891
|
-
declare const MenuItemMultiLevel:
|
|
2929
|
+
declare const MenuItemMultiLevel: React__default.FC<MenuItemMultiLevelProps>;
|
|
2892
2930
|
interface MenuItemMultiLevelProps {
|
|
2893
2931
|
/**
|
|
2894
2932
|
* The content inside the multi-level menu.
|
|
2895
2933
|
*/
|
|
2896
|
-
children:
|
|
2934
|
+
children: React__default.ReactNode;
|
|
2897
2935
|
}
|
|
2898
2936
|
|
|
2899
2937
|
/**
|
|
2900
2938
|
* The multi-level menu content that pops out when a menu item with children is hovered or clicked.
|
|
2901
2939
|
*/
|
|
2902
|
-
declare const MenuItemMultiLevelContent:
|
|
2940
|
+
declare const MenuItemMultiLevelContent: React__default.ForwardRefExoticComponent<MenuItemMultiLevelContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2903
2941
|
interface MenuItemMultiLevelContentProps {
|
|
2904
2942
|
/**
|
|
2905
2943
|
* The multi-level menu content, typically containing `Menu.Item` elements.
|
|
2906
2944
|
*/
|
|
2907
|
-
children:
|
|
2945
|
+
children: React__default.ReactNode;
|
|
2908
2946
|
/**
|
|
2909
2947
|
* The width of the multi-level menu content. Can be any valid CSS width value. This is `fit-content` by default and needs to be set to `auto` to use other properties.
|
|
2910
2948
|
*/
|
|
@@ -2938,15 +2976,15 @@ interface MenuItemMultiLevelContentProps {
|
|
|
2938
2976
|
/**
|
|
2939
2977
|
* Trigger element that opens a multi-level menu when selected.
|
|
2940
2978
|
*/
|
|
2941
|
-
declare const MenuItemMultiLevelTrigger:
|
|
2979
|
+
declare const MenuItemMultiLevelTrigger: React__default.FC<InternalProps>;
|
|
2942
2980
|
interface InternalProps extends MenuItemMultiLevelTriggerProps {
|
|
2943
|
-
pairedContent?:
|
|
2981
|
+
pairedContent?: React__default.ReactNode;
|
|
2944
2982
|
}
|
|
2945
2983
|
interface MenuItemMultiLevelTriggerProps extends Pick<MenuItemProps, "keyCommands" | "leadingIcon" | "ariaLabel" | "supportingText"> {
|
|
2946
2984
|
/**
|
|
2947
2985
|
* The trigger element for opening the multi-level menu.
|
|
2948
2986
|
*/
|
|
2949
|
-
children:
|
|
2987
|
+
children: React__default.ReactNode;
|
|
2950
2988
|
/**
|
|
2951
2989
|
* Disables the sub-trigger, preventing interaction.
|
|
2952
2990
|
*/
|
|
@@ -2956,12 +2994,12 @@ interface MenuItemMultiLevelTriggerProps extends Pick<MenuItemProps, "keyCommand
|
|
|
2956
2994
|
/**
|
|
2957
2995
|
* The element that toggles the menu.
|
|
2958
2996
|
*/
|
|
2959
|
-
declare const MenuTrigger:
|
|
2997
|
+
declare const MenuTrigger: React__default.FC<MenuTriggerProps>;
|
|
2960
2998
|
interface MenuTriggerProps {
|
|
2961
2999
|
/**
|
|
2962
3000
|
* The element that triggers the menu when clicked or interacted with.
|
|
2963
3001
|
*/
|
|
2964
|
-
children:
|
|
3002
|
+
children: React__default.ReactNode;
|
|
2965
3003
|
/**
|
|
2966
3004
|
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
2967
3005
|
*/
|
|
@@ -3015,7 +3053,7 @@ interface ModalProps {
|
|
|
3015
3053
|
/**
|
|
3016
3054
|
* Custom content for `Modal`.
|
|
3017
3055
|
*/
|
|
3018
|
-
children?:
|
|
3056
|
+
children?: React__default.ReactNode;
|
|
3019
3057
|
/**
|
|
3020
3058
|
* Removes all default padding from the children section of the modal.
|
|
3021
3059
|
*/
|
|
@@ -3090,7 +3128,7 @@ interface PaginationSimpleProps {
|
|
|
3090
3128
|
/**
|
|
3091
3129
|
* Function to call when page is changed. This is called with type and event
|
|
3092
3130
|
*/
|
|
3093
|
-
onPageChange?: (e:
|
|
3131
|
+
onPageChange?: (e: React__default.MouseEvent, type?: "prev" | "next" | "first" | "last") => void;
|
|
3094
3132
|
}
|
|
3095
3133
|
|
|
3096
3134
|
/**
|
|
@@ -3101,7 +3139,7 @@ interface PopoverProps {
|
|
|
3101
3139
|
/**
|
|
3102
3140
|
* Content to render within Popover Trigger
|
|
3103
3141
|
*/
|
|
3104
|
-
children?:
|
|
3142
|
+
children?: React__default.ReactNode;
|
|
3105
3143
|
/**
|
|
3106
3144
|
* The preferred side of the anchor to render against when open
|
|
3107
3145
|
*/
|
|
@@ -3251,7 +3289,7 @@ interface PosterImageProps {
|
|
|
3251
3289
|
/**
|
|
3252
3290
|
* Contents of the PosterImage.
|
|
3253
3291
|
*/
|
|
3254
|
-
children?:
|
|
3292
|
+
children?: React__default.ReactNode;
|
|
3255
3293
|
}
|
|
3256
3294
|
|
|
3257
3295
|
declare const PosterVideo: FC<PosterVideoProps>;
|
|
@@ -3327,7 +3365,7 @@ interface ProgressBarProps {
|
|
|
3327
3365
|
}
|
|
3328
3366
|
|
|
3329
3367
|
/** Use `ProgressStepper` to provide an overview of a series of steps in a digital journey. */
|
|
3330
|
-
declare const ProgressStepper:
|
|
3368
|
+
declare const ProgressStepper: React__default.ForwardRefExoticComponent<ProgressStepperProps & React__default.RefAttributes<HTMLOListElement>>;
|
|
3331
3369
|
interface ProgressStepperProps {
|
|
3332
3370
|
/**
|
|
3333
3371
|
* Children of `<ProgressStepper />` should only contain `<ProgressStepperItem />`
|
|
@@ -3350,13 +3388,13 @@ interface ProgressStepperProps {
|
|
|
3350
3388
|
*/
|
|
3351
3389
|
invertLabelPosition?: boolean;
|
|
3352
3390
|
/**
|
|
3353
|
-
*
|
|
3391
|
+
* Detach the active 'dot' indicator from the current status. Pass the index number of the step where the dot should appear.
|
|
3354
3392
|
*/
|
|
3355
|
-
|
|
3393
|
+
currentStep?: number;
|
|
3356
3394
|
/**
|
|
3357
|
-
*
|
|
3395
|
+
* <b>DEPRECATED</b>: This will be removed in a future release.
|
|
3358
3396
|
*/
|
|
3359
|
-
|
|
3397
|
+
isExpandable?: boolean;
|
|
3360
3398
|
}
|
|
3361
3399
|
|
|
3362
3400
|
type ProgressStatus = "completed" | "current" | "warning" | "error" | "todo";
|
|
@@ -3404,6 +3442,10 @@ interface ProgressStepperItemProps {
|
|
|
3404
3442
|
* Determine the context `<ProgressStepperItem /> should be`
|
|
3405
3443
|
*/
|
|
3406
3444
|
previousStep?: ProgressStatus;
|
|
3445
|
+
/**
|
|
3446
|
+
* Determine the `<ProgressStepperItem /> should have a active dot`
|
|
3447
|
+
*/
|
|
3448
|
+
isViewing?: boolean;
|
|
3407
3449
|
/**
|
|
3408
3450
|
* DEPRECATED: Determine if `<ProgressStepperItem /> should have expandable content`
|
|
3409
3451
|
*/
|
|
@@ -3423,33 +3465,35 @@ interface ProgressStepperItemProps {
|
|
|
3423
3465
|
}
|
|
3424
3466
|
|
|
3425
3467
|
/** Use `ProgressStepperOverflow` to wrap `ProgressStepperItem`s and allow overflow behaviour. */
|
|
3426
|
-
declare const ProgressStepperOverflow:
|
|
3468
|
+
declare const ProgressStepperOverflow: React__default.ForwardRefExoticComponent<ProgressStepperOverflowProps & React__default.RefAttributes<HTMLOListElement>>;
|
|
3427
3469
|
interface ProgressStepperOverflowProps extends Omit<ProgressStepperProps, "isFluid" | "isExpandable" | "direction"> {
|
|
3428
3470
|
/**
|
|
3429
3471
|
* Children of `<ProgressStepperOverflow />` should only contain `<ProgressStepperItem />`
|
|
3430
3472
|
*/
|
|
3431
|
-
children?:
|
|
3432
|
-
/**
|
|
3433
|
-
* onIndexChange handler for the ProgressStepperOverflow.
|
|
3434
|
-
*/
|
|
3435
|
-
onIndexChange?: (index: number) => void;
|
|
3436
|
-
/**
|
|
3437
|
-
* Select the index of the step to scroll to on inital load.
|
|
3438
|
-
*/
|
|
3439
|
-
onLoadStep?: number;
|
|
3473
|
+
children?: React__default.ReactNode;
|
|
3440
3474
|
/**
|
|
3441
3475
|
* Add an offset to the start of the steps.
|
|
3442
3476
|
*/
|
|
3443
3477
|
offsetLeft?: 0 | 8 | 12 | 16 | 24 | 32 | 40;
|
|
3444
3478
|
}
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3479
|
+
|
|
3480
|
+
declare const useProgressStepperOverflow: ({ onLoadStep, increment, offsetLeft, }?: UseProgressStepperOverflowParams) => {
|
|
3481
|
+
stepperRef: React.MutableRefObject<HTMLOListElement | null>;
|
|
3482
|
+
onNextStep: () => void;
|
|
3483
|
+
onPreviousStep: () => void;
|
|
3484
|
+
onViewScroll: (direction: boolean) => void;
|
|
3485
|
+
currentIndex: number;
|
|
3486
|
+
scrollToStep: (index: number) => void;
|
|
3487
|
+
isFirstStepVisible: boolean;
|
|
3488
|
+
isLastStepVisible: boolean;
|
|
3489
|
+
};
|
|
3490
|
+
interface UseProgressStepperOverflowParams {
|
|
3491
|
+
increment?: number;
|
|
3492
|
+
onLoadStep?: number;
|
|
3493
|
+
offsetLeft?: 0 | 8 | 12 | 16 | 24 | 32 | 40;
|
|
3450
3494
|
}
|
|
3451
3495
|
|
|
3452
|
-
type EventType$3 =
|
|
3496
|
+
type EventType$3 = React__default.ChangeEvent<HTMLInputElement>;
|
|
3453
3497
|
/**
|
|
3454
3498
|
* Use `RadioCardGroup` to wrap and control `RadioCard` buttons and apply default values
|
|
3455
3499
|
*/
|
|
@@ -3458,7 +3502,7 @@ interface RadioCardGroupProps extends Omit<FormControlProps, "children" | "eleme
|
|
|
3458
3502
|
/**
|
|
3459
3503
|
* Contents of the `RadioCardGroup`. Should only contain `RadioCardGroupCard`
|
|
3460
3504
|
*/
|
|
3461
|
-
children:
|
|
3505
|
+
children: React__default.ReactNode;
|
|
3462
3506
|
/**
|
|
3463
3507
|
* Value of the `RadioCard` that should be checked by default.
|
|
3464
3508
|
*/
|
|
@@ -3586,7 +3630,7 @@ interface RadioCardProps {
|
|
|
3586
3630
|
/**
|
|
3587
3631
|
* Radio Card component.
|
|
3588
3632
|
*/
|
|
3589
|
-
declare const RadioCardGroupInput:
|
|
3633
|
+
declare const RadioCardGroupInput: React__default.ForwardRefExoticComponent<RadioCardGroupInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
3590
3634
|
interface RadioCardGroupInputProps extends Omit<RadioCardProps, "name"> {
|
|
3591
3635
|
/**
|
|
3592
3636
|
* Determine the alignment the RadioButton.
|
|
@@ -3619,7 +3663,7 @@ interface RadioCardGroupInputProps extends Omit<RadioCardProps, "name"> {
|
|
|
3619
3663
|
value: string;
|
|
3620
3664
|
}
|
|
3621
3665
|
|
|
3622
|
-
type EventType$1 =
|
|
3666
|
+
type EventType$1 = React__default.ChangeEvent<HTMLInputElement>;
|
|
3623
3667
|
/**
|
|
3624
3668
|
* Use `RadioGroup` to wrap and control radio buttons and apply default values
|
|
3625
3669
|
*/
|
|
@@ -3628,7 +3672,7 @@ interface RadioGroupProps extends Omit<FormControlProps, "children" | "elementTy
|
|
|
3628
3672
|
/**
|
|
3629
3673
|
* Contents of the RadioGroup Should only contain `RadioGroupInput`
|
|
3630
3674
|
*/
|
|
3631
|
-
children?:
|
|
3675
|
+
children?: React__default.ReactNode;
|
|
3632
3676
|
/**
|
|
3633
3677
|
* Value of the RadioButton that should be checked by default.
|
|
3634
3678
|
*/
|
|
@@ -3686,7 +3730,7 @@ type ContextProps = {
|
|
|
3686
3730
|
size: "s" | "l";
|
|
3687
3731
|
};
|
|
3688
3732
|
|
|
3689
|
-
declare const RadioGroupButton:
|
|
3733
|
+
declare const RadioGroupButton: React__default.ForwardRefExoticComponent<RadioGroupButtonProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
3690
3734
|
interface RadioGroupButtonProps {
|
|
3691
3735
|
id: string;
|
|
3692
3736
|
label: string;
|
|
@@ -3709,7 +3753,7 @@ interface RadioGroupButtonProps {
|
|
|
3709
3753
|
/**
|
|
3710
3754
|
* Radio Button component.
|
|
3711
3755
|
*/
|
|
3712
|
-
declare const RadioGroupInput:
|
|
3756
|
+
declare const RadioGroupInput: React__default.ForwardRefExoticComponent<RadioGroupInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
3713
3757
|
interface RadioGroupInputProps {
|
|
3714
3758
|
/**
|
|
3715
3759
|
* Determine the alignment the RadioButton.
|
|
@@ -3807,7 +3851,7 @@ interface SectionProps extends ExtentableContainer {
|
|
|
3807
3851
|
}
|
|
3808
3852
|
|
|
3809
3853
|
/** Use `Select` to choose from a dropdown list of options. */
|
|
3810
|
-
declare const Select:
|
|
3854
|
+
declare const Select: React__default.FC<SelectProps>;
|
|
3811
3855
|
interface SelectProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "helperUnderLabel" | "supplementaryInfo" | "labelSize" | "labelPosition"> {
|
|
3812
3856
|
/**
|
|
3813
3857
|
* Name for the Select.
|
|
@@ -3851,11 +3895,11 @@ interface SelectProps extends Omit<FormControlProps, "children" | "elementType"
|
|
|
3851
3895
|
/**
|
|
3852
3896
|
* onBlur handler for the Select.
|
|
3853
3897
|
*/
|
|
3854
|
-
onBlur?: (e:
|
|
3898
|
+
onBlur?: (e: React__default.FocusEvent<HTMLButtonElement>) => void;
|
|
3855
3899
|
/**
|
|
3856
3900
|
* onFocus handler for the Select.
|
|
3857
3901
|
*/
|
|
3858
|
-
onFocus?: (e:
|
|
3902
|
+
onFocus?: (e: React__default.FocusEvent<HTMLButtonElement>) => void;
|
|
3859
3903
|
/**
|
|
3860
3904
|
* onOpenChange handler for the Select.
|
|
3861
3905
|
*/
|
|
@@ -4340,7 +4384,7 @@ interface SkipLinkItemProps {
|
|
|
4340
4384
|
/**
|
|
4341
4385
|
* Click handler for the skip link.
|
|
4342
4386
|
*/
|
|
4343
|
-
onClick?: (e:
|
|
4387
|
+
onClick?: (e: React__default.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
4344
4388
|
}
|
|
4345
4389
|
|
|
4346
4390
|
/**
|
|
@@ -4607,7 +4651,7 @@ interface TextProps {
|
|
|
4607
4651
|
}
|
|
4608
4652
|
|
|
4609
4653
|
/** Use `TextArea` to allow custom user text entry via keyboard, for long-form and multi-line descriptions */
|
|
4610
|
-
declare const TextArea:
|
|
4654
|
+
declare const TextArea: React__default.ForwardRefExoticComponent<TextAreaProps & React__default.RefAttributes<HTMLTextAreaElement>>;
|
|
4611
4655
|
interface TextAreaProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "helperUnderLabel" | "labelPosition"> {
|
|
4612
4656
|
/**
|
|
4613
4657
|
* Uncontrolled default value of the TextArea. If the TextArea is controlled
|
|
@@ -4653,16 +4697,16 @@ interface TextAreaProps extends Omit<FormControlProps, "children" | "elementType
|
|
|
4653
4697
|
/**
|
|
4654
4698
|
* Function to call when the TextArea loses focus.
|
|
4655
4699
|
*/
|
|
4656
|
-
onBlur?: (e:
|
|
4700
|
+
onBlur?: (e: React__default.FocusEvent<HTMLTextAreaElement>) => void;
|
|
4657
4701
|
/**
|
|
4658
4702
|
* Function to call when the TextArea is focused.
|
|
4659
4703
|
*/
|
|
4660
|
-
onFocus?: (e:
|
|
4704
|
+
onFocus?: (e: React__default.FocusEvent<HTMLTextAreaElement>) => void;
|
|
4661
4705
|
/**
|
|
4662
4706
|
* Callback function commonly used to update the TextArea's controlled
|
|
4663
4707
|
* `value`, for example `e => setValue(e.target.value)`.
|
|
4664
4708
|
*/
|
|
4665
|
-
onChange?: (e:
|
|
4709
|
+
onChange?: (e: React__default.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
4666
4710
|
/**
|
|
4667
4711
|
* Current value of the TextArea. Must be controlled via an
|
|
4668
4712
|
* `onChange` callback function. Otherwise, use `defaultValue` (or `isReadOnly`).
|
|
@@ -4692,8 +4736,8 @@ interface InputIconProps {
|
|
|
4692
4736
|
* Sets the Icon to be a Button.
|
|
4693
4737
|
*/
|
|
4694
4738
|
isButton?: {
|
|
4695
|
-
ref?:
|
|
4696
|
-
onFocus?:
|
|
4739
|
+
ref?: React__default.Ref<HTMLButtonElement>;
|
|
4740
|
+
onFocus?: React__default.FocusEventHandler<HTMLButtonElement>;
|
|
4697
4741
|
onClick: () => void;
|
|
4698
4742
|
label: string;
|
|
4699
4743
|
};
|
|
@@ -4745,7 +4789,7 @@ interface ThemeProps {
|
|
|
4745
4789
|
}
|
|
4746
4790
|
|
|
4747
4791
|
/** Use `ThumbnailSignpost` to highlight key information or navigation points with an accompanying thumbnail image or icon. */
|
|
4748
|
-
declare const ThumbnailSignpost:
|
|
4792
|
+
declare const ThumbnailSignpost: React__default.FC<ThumbnailSignpostProps>;
|
|
4749
4793
|
interface ThumbnailSignpostProps {
|
|
4750
4794
|
/**
|
|
4751
4795
|
* Title for the ThumbnailSignpost.
|
|
@@ -4777,7 +4821,7 @@ interface ToastProps {
|
|
|
4777
4821
|
/**
|
|
4778
4822
|
* Content to display within `Toast`
|
|
4779
4823
|
*/
|
|
4780
|
-
children:
|
|
4824
|
+
children: React__default.ReactNode;
|
|
4781
4825
|
/**
|
|
4782
4826
|
* Colour scheme for `Toast` - Use 'default' in almost all cases.
|
|
4783
4827
|
*/
|
|
@@ -4879,7 +4923,7 @@ interface TypographyCardProps {
|
|
|
4879
4923
|
/**
|
|
4880
4924
|
* Click handler for the TypographyCard.
|
|
4881
4925
|
*/
|
|
4882
|
-
onClick?: (e:
|
|
4926
|
+
onClick?: (e: React__default.MouseEvent<HTMLAnchorElement>) => void;
|
|
4883
4927
|
/**
|
|
4884
4928
|
* Text to show adjacent to the cta, can be either a date or text. Its recommended to pass dates as Date objects so the component can render them correctly.
|
|
4885
4929
|
*/
|
|
@@ -4972,7 +5016,7 @@ interface VerticalSpaceProps {
|
|
|
4972
5016
|
/**
|
|
4973
5017
|
* Use `VideoPlayer` to embed videos from YouTube or Vimeo.
|
|
4974
5018
|
*/
|
|
4975
|
-
declare const VideoPlayer:
|
|
5019
|
+
declare const VideoPlayer: React__default.FC<VideoPlayerProps>;
|
|
4976
5020
|
interface VideoPlayerProps extends Pick<ReactPlayerProps, "onReady" | "onPlay" | "onStart" | "onPause" | "onEnded" | "onError" | "light"> {
|
|
4977
5021
|
url: string;
|
|
4978
5022
|
title: string;
|
|
@@ -4996,9 +5040,9 @@ interface VideoPlayerProps extends Pick<ReactPlayerProps, "onReady" | "onPlay" |
|
|
|
4996
5040
|
}
|
|
4997
5041
|
|
|
4998
5042
|
/** Use `Visible` to show it's children at specific breakpoints */
|
|
4999
|
-
declare const Visible:
|
|
5043
|
+
declare const Visible: React__default.FC<VisibleProps>;
|
|
5000
5044
|
interface VisibleProps extends BreakpointVisibility {
|
|
5001
|
-
children:
|
|
5045
|
+
children: React__default.ReactNode;
|
|
5002
5046
|
}
|
|
5003
5047
|
|
|
5004
5048
|
/**
|
|
@@ -5029,7 +5073,7 @@ interface NavigationHeaderContainerProps extends ExtentableContainer {
|
|
|
5029
5073
|
/**
|
|
5030
5074
|
* content for the navbar
|
|
5031
5075
|
*/
|
|
5032
|
-
children:
|
|
5076
|
+
children: React__default.ReactNode;
|
|
5033
5077
|
}
|
|
5034
5078
|
|
|
5035
5079
|
type Brand = "btWholesale" | "btGlobalFabric" | "ee" | "bt";
|
|
@@ -5037,15 +5081,15 @@ interface NavigationHeaderLogoProps {
|
|
|
5037
5081
|
ariaLabel?: string;
|
|
5038
5082
|
brand?: Brand;
|
|
5039
5083
|
href?: string;
|
|
5040
|
-
svg?:
|
|
5041
|
-
onClick?: (e:
|
|
5084
|
+
svg?: React__default.ReactNode;
|
|
5085
|
+
onClick?: (e: React__default.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
5042
5086
|
}
|
|
5043
5087
|
|
|
5044
5088
|
interface NavigationHeaderNavLinkProps {
|
|
5045
5089
|
text: string;
|
|
5046
5090
|
href: string;
|
|
5047
5091
|
borderRadiusSize?: "s" | "m";
|
|
5048
|
-
onClick?: (e:
|
|
5092
|
+
onClick?: (e: React__default.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
5049
5093
|
}
|
|
5050
5094
|
|
|
5051
5095
|
type CustomBreakpoint = keyof typeof ArcBreakpoints | number;
|
|
@@ -5092,7 +5136,7 @@ interface NavigationHeaderInlineActionProps {
|
|
|
5092
5136
|
/**
|
|
5093
5137
|
* Click handlers for the action.
|
|
5094
5138
|
*/
|
|
5095
|
-
onClick?: (e:
|
|
5139
|
+
onClick?: (e: React__default.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
5096
5140
|
}
|
|
5097
5141
|
|
|
5098
5142
|
type BurgerMenuPathway = "invert" | "match";
|
|
@@ -5117,7 +5161,7 @@ type ConfigurableHeaderVisibility = Partial<Record<Exclude<ArcBreakpointSizes, "
|
|
|
5117
5161
|
/**
|
|
5118
5162
|
* Use `NavigationHeader` as a Top-level UI element that displays branding, page titles, and primary navigation actions.
|
|
5119
5163
|
*/
|
|
5120
|
-
declare const NavigationHeader:
|
|
5164
|
+
declare const NavigationHeader: React__default.FC<NavigationHeaderProps>;
|
|
5121
5165
|
interface NavigationHeaderProps extends Omit<NavigationHeaderContainerProps, "children" | "background">, Omit<NavigationHeaderNavListProps, "navItems">, ExtentableContainer {
|
|
5122
5166
|
/**
|
|
5123
5167
|
* set the background color of the navbar.
|
|
@@ -5126,15 +5170,15 @@ interface NavigationHeaderProps extends Omit<NavigationHeaderContainerProps, "ch
|
|
|
5126
5170
|
/**
|
|
5127
5171
|
* Open content slot on the left of the nav bar.
|
|
5128
5172
|
*/
|
|
5129
|
-
leftSlot?:
|
|
5173
|
+
leftSlot?: React__default.ReactNode;
|
|
5130
5174
|
/**
|
|
5131
5175
|
* Open content slot on the middle of the nav bar, after the nav items.
|
|
5132
5176
|
*/
|
|
5133
|
-
middleSlot?:
|
|
5177
|
+
middleSlot?: React__default.ReactNode;
|
|
5134
5178
|
/**
|
|
5135
5179
|
* Open content slot on the right of the nav bar.
|
|
5136
5180
|
*/
|
|
5137
|
-
rightSlot?:
|
|
5181
|
+
rightSlot?: React__default.ReactNode;
|
|
5138
5182
|
/**
|
|
5139
5183
|
* 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.
|
|
5140
5184
|
* 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
|
|
@@ -5148,11 +5192,11 @@ interface NavigationHeaderProps extends Omit<NavigationHeaderContainerProps, "ch
|
|
|
5148
5192
|
/**
|
|
5149
5193
|
* Additional content for the burger menu that sits below all the other content.
|
|
5150
5194
|
*/
|
|
5151
|
-
burgerMenuFooter?:
|
|
5195
|
+
burgerMenuFooter?: React__default.ReactNode;
|
|
5152
5196
|
/**
|
|
5153
5197
|
* Additional content for the burger menu that sits between the logo and the nav items.
|
|
5154
5198
|
*/
|
|
5155
|
-
burgerMenuHeader?:
|
|
5199
|
+
burgerMenuHeader?: React__default.ReactNode;
|
|
5156
5200
|
/**
|
|
5157
5201
|
* Sets the color pathway for the burger menu, by default it inverts the pathway the header is using for contrast.
|
|
5158
5202
|
*/
|
|
@@ -5172,7 +5216,7 @@ interface NavigationHeaderProps extends Omit<NavigationHeaderContainerProps, "ch
|
|
|
5172
5216
|
onOpenChange?: (isOpen: boolean) => void;
|
|
5173
5217
|
}
|
|
5174
5218
|
|
|
5175
|
-
declare const NavigationHeaderAction:
|
|
5219
|
+
declare const NavigationHeaderAction: React__default.FC<NavigationHeaderActionProps>;
|
|
5176
5220
|
interface NavigationHeaderActionProps {
|
|
5177
5221
|
/**
|
|
5178
5222
|
* Icon url for the action.
|
|
@@ -5197,15 +5241,15 @@ interface NavigationHeaderActionProps {
|
|
|
5197
5241
|
/**
|
|
5198
5242
|
* Click handlers for the action.
|
|
5199
5243
|
*/
|
|
5200
|
-
onClick?: (e:
|
|
5244
|
+
onClick?: (e: React__default.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
5201
5245
|
}
|
|
5202
5246
|
|
|
5203
|
-
declare const NavigationHeaderActionBar:
|
|
5247
|
+
declare const NavigationHeaderActionBar: React__default.FC<NavigationHeaderActionBarProps>;
|
|
5204
5248
|
interface NavigationHeaderActionBarProps {
|
|
5205
|
-
children:
|
|
5249
|
+
children: React__default.ReactNode;
|
|
5206
5250
|
}
|
|
5207
5251
|
|
|
5208
|
-
declare const NavigationHeaderPage:
|
|
5252
|
+
declare const NavigationHeaderPage: React__default.FC<NavigationHeaderPageProps>;
|
|
5209
5253
|
interface NavigationHeaderPageProps {
|
|
5210
5254
|
icon?: string;
|
|
5211
5255
|
page?: string;
|
|
@@ -5231,4 +5275,4 @@ interface NavigationHeaderPageProps {
|
|
|
5231
5275
|
*/
|
|
5232
5276
|
declare const useMediaQuery: (mediaQuery: string) => boolean;
|
|
5233
5277
|
|
|
5234
|
-
export { Alert, type AlertProps, Align, type AlignProps, type AlignmentValue, AppButton, type AppButtonProps, type RangeSelection as ArcCalendarRangeSelection, type SelectionType as ArcCalendarSelectionType, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, Banner, type BannerProps, Box, type BoxProps, type Brand, BrandLogo, colors$1 as BrandLogoColors, type BrandLogoProps, Breadcrumbs, BreadcrumbsItem, BreadcrumbsLink, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, ButtonV2, type ButtonV2Props, Calendar, type CalendarProps, Carousel, type CarouselProps, Checkbox, CheckboxIcon, type CheckboxIconProps, type CheckboxProps, type ColumnValue, Columns, ColumnsCol, type ColumnsColProps, type ColumnsProps, ComboBox, type ComboBoxProps, ContentSwitcher, ContentSwitcherContent, ContentSwitcherDropdown, ContentSwitcherDropdownContent, type ContentSwitcherDropdownProps, ContentSwitcherList, type ContentSwitcherProps, ContentSwitcherTab, DATE_FORMAT, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, Disclosure, DisclosureMini, type DisclosureMiniProps, type DisclosureProps, Download, type DownloadProps, Drawer, DrawerContent, DrawerFooter, DrawerHeader, type DrawerProps, Elevation, type ElevationProps, Filter, FilterControl, type FilterControlProps, FilterControls, FilterItem, FilterItems, type FilterProps, FormControl, Context as FormControlContext, type FormControlProps, GhostedHeroBanner, type GhostedHeroBannerProps, GradientPageBackground, type GradientPageBackgroundProps, Grid, GridCol, type GridProps, GridRow, type GridValue, Group, GroupItem, type GroupProps, Heading, type HeadingLevel, type HeadingProps, HeroBanner, type HeroBannerProps, HeroButton, type HeroButtonProps, Hidden, type HiddenProps, HorizontalCard, type HorizontalCardProps, Icon, type IconColor, colors as IconColors, type IconProps, Image, fitOptions as ImageFitOptions, overlayOptions as ImageOverlayOptions, type ImageProps, ImageSource, type ImageSourceProps, ImpactCard, type ImpactCardProps, InformationCard, type InformationCardProps, InputIcon, type InputIconProps, Link, type LinkProps$1 as LinkProps, Markup, type MarkupProps, MediaCard, type MediaCardProps, Menu, MenuContent, MenuFooter, MenuGroup, MenuGroupSingleSelect, MenuHeader, MenuItem, MenuItemCheckbox, MenuItemContentTemplate, MenuItemMultiLevel, MenuItemMultiLevelContent, MenuItemMultiLevelTrigger, MenuItemSingleSelect, MenuLabel, MenuPortal, type MenuProps, MenuScrollable, MenuSeparator, MenuTrigger, Modal, type ModalProps, NavigationHeader, NavigationHeaderAction, NavigationHeaderActionBar, type NavigationHeaderActionProps, type NavigationHeaderNavigationItem, NavigationHeaderPage, type NavigationHeaderProps, Pagination, type PaginationProps, PaginationSimple, type PaginationSimpleProps, Popover, type PopoverProps, Poster, PosterImage, type PosterProps, PosterVideo, ProgressBar, type ProgressBarProps, type ProgressBarState, ProgressStepper, ProgressStepperItem, type ProgressStepperItemProps, ProgressStepperOverflow, type
|
|
5278
|
+
export { Alert, type AlertProps, Align, type AlignProps, type AlignmentValue, AppButton, type AppButtonProps, type RangeSelection as ArcCalendarRangeSelection, type SelectionType as ArcCalendarSelectionType, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, Banner, type BannerProps, Box, type BoxProps, type Brand, BrandLogo, colors$1 as BrandLogoColors, type BrandLogoProps, Breadcrumbs, BreadcrumbsItem, BreadcrumbsLink, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, ButtonV2, type ButtonV2Props, Calendar, type CalendarProps, Carousel, type CarouselProps, Checkbox, CheckboxIcon, type CheckboxIconProps, type CheckboxProps, type ColumnValue, Columns, ColumnsCol, type ColumnsColProps, type ColumnsProps, ComboBox, type ComboBoxProps, ContentSwitcher, ContentSwitcherContent, ContentSwitcherDropdown, ContentSwitcherDropdownContent, type ContentSwitcherDropdownProps, ContentSwitcherList, type ContentSwitcherProps, ContentSwitcherTab, DATE_FORMAT, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, Disclosure, DisclosureMini, type DisclosureMiniProps, type DisclosureProps, Download, type DownloadProps, Drawer, DrawerContent, DrawerFooter, DrawerHeader, type DrawerProps, Elevation, type ElevationProps, Filter, FilterControl, type FilterControlProps, FilterControls, FilterItem, FilterItems, type FilterProps, FormControl, Context as FormControlContext, type FormControlProps, GhostedHeroBanner, type GhostedHeroBannerProps, GradientPageBackground, type GradientPageBackgroundProps, Grid, GridCol, type GridProps, GridRow, type GridValue, Group, GroupItem, type GroupProps, Heading, type HeadingLevel, type HeadingProps, HeroBanner, type HeroBannerProps, HeroButton, type HeroButtonProps, Hidden, type HiddenProps, HorizontalCard, type HorizontalCardProps, Icon, type IconColor, colors as IconColors, type IconProps, Image, fitOptions as ImageFitOptions, overlayOptions as ImageOverlayOptions, type ImageProps, ImageSource, type ImageSourceProps, ImpactCard, type ImpactCardProps, InformationCard, type InformationCardProps, InputIcon, type InputIconProps, Link, type LinkProps$1 as LinkProps, Markup, type MarkupProps, MediaCard, type MediaCardProps, Menu, MenuContent, MenuFooter, MenuGroup, MenuGroupSingleSelect, MenuHeader, MenuItem, MenuItemCheckbox, MenuItemContentTemplate, MenuItemMultiLevel, MenuItemMultiLevelContent, MenuItemMultiLevelTrigger, MenuItemSingleSelect, MenuLabel, MenuPortal, type MenuProps, MenuScrollable, MenuSeparator, MenuTrigger, Modal, type ModalProps, NavigationHeader, NavigationHeaderAction, NavigationHeaderActionBar, type NavigationHeaderActionProps, type NavigationHeaderNavigationItem, NavigationHeaderPage, type NavigationHeaderProps, Pagination, type PaginationProps, PaginationSimple, type PaginationSimpleProps, Popover, type PopoverProps, Poster, PosterImage, type PosterProps, PosterVideo, ProgressBar, type ProgressBarProps, type ProgressBarState, ProgressStepper, ProgressStepperItem, type ProgressStepperItemProps, ProgressStepperOverflow, type ProgressStepperOverflowProps, type ProgressStepperProps, RadioCardGroup, RadioCardGroupInput, type RadioCardGroupProps, RadioGroup, RadioGroupButton, RadioGroupInput, type RadioGroupProps, Rule, type RuleProps, ScrollToTop, type ScrollToTopProps, Section, type SectionProps, Select, type SelectProps, SemanticHeading, type SemanticHeadingLevel, type SemanticHeadingProps, SiteFooter, SiteFooterItem, SiteFooterItemGroup, type SiteFooterProps, SiteFooterV2, SiteFooterV2Item, SiteFooterV2ItemGroup, SiteFooterV2Main, SiteFooterV2Utility, SiteHeaderV2, SiteHeaderV2Column, SiteHeaderV2Item, SiteHeaderV2ItemGroup, SiteHeaderV2NavItem, SiteHeaderV2NavItemWithSubNav, SiteHeaderV2NodeItem, type SiteHeaderV2Props, SiteHeaderV2SubNavItem, SiteHeaderV2VerticalDivider, Skeleton, type SkeletonProps, SkipLink, SkipLinkItem, type Span, Spinner, type SpinnerProps, Surface, type SurfaceBackground, type SurfaceBackgroundColor, Context$1 as SurfaceContext, type SurfacePadding, type SurfaceProps, Switch, type SwitchProps, TabbedBanner, type TabbedBannerProps, Tabs, TabsContent, TabsItem, TabsList, type TabsListProps, type TabsProps, Tag, type TagProps, TemplateBanner, type TemplateBannerProps, Text, TextArea, type TextAreaProps, TextInput, type TextInputProps, type TextProps, Theme, ThemeIcon, type ThemeIconNames, type ThemeIconProps, type ThemeProps, type ThemeType, ThumbnailSignpost, type ThumbnailSignpostProps, Toast, ToastNotification, type ToastProps, Tooltip, type TooltipProps, Truncate, type TruncateProps, TypographyCard, type TypographyCardProps, UniversalHeader, UniversalHeaderItem, type UniversalHeaderProps, VerticalSpace, type VerticalSpaceProps, VideoPlayer, type VideoPlayerProps, Visible, type VisibleProps, VisuallyHidden, type VisuallyHiddenProps, backgrounds, backgroundsBT, isDateValid, isRangeValid, loadingOptions, parseDateString, parseRangeString, themes, useMediaQuery, useProgressStepperOverflow };
|