@skyscanner/backpack-web 34.16.0-preminor.2 → 35.0.0-premajor.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bpk-component-aria-live/src/BpkAriaLive.d.ts +1 -1
- package/bpk-component-badge/src/BpkBadge.d.ts +1 -1
- package/bpk-component-banner-alert/src/AnimateAndFade.d.ts +1 -1
- package/bpk-component-banner-alert/src/BpkBannerAlert.d.ts +1 -1
- package/bpk-component-banner-alert/src/BpkBannerAlertDismissable.d.ts +1 -1
- package/bpk-component-banner-alert/src/BpkBannerAlertExpandable.d.ts +1 -1
- package/bpk-component-banner-alert/src/BpkBannerAlertInner.d.ts +1 -1
- package/bpk-component-banner-alert/src/withBannerAlertState.d.ts +5 -3
- package/bpk-component-boilerplate/src/BpkBoilerplate.d.ts +1 -1
- package/bpk-component-bottom-sheet/src/BpkBottomSheet.d.ts +1 -1
- package/bpk-component-button/BpkButtonDestructive.d.ts +1 -1
- package/bpk-component-button/BpkButtonFeatured.d.ts +1 -1
- package/bpk-component-button/BpkButtonLink.d.ts +1 -1
- package/bpk-component-button/BpkButtonLinkOnDark.d.ts +1 -1
- package/bpk-component-button/BpkButtonPrimary.d.ts +1 -1
- package/bpk-component-button/BpkButtonPrimaryOnDark.d.ts +1 -1
- package/bpk-component-button/BpkButtonPrimaryOnLight.d.ts +1 -1
- package/bpk-component-button/BpkButtonSecondary.d.ts +1 -1
- package/bpk-component-button/BpkButtonSecondaryOnDark.d.ts +1 -1
- package/bpk-component-button/src/BpkButton.d.ts +1 -1
- package/bpk-component-button/src/BpkButtonBase.d.ts +1 -1
- package/bpk-component-button/src/BpkButtonV2/BpkButton.d.ts +1 -1
- package/bpk-component-calendar/src/BpkCalendarContainer.d.ts +10 -6
- package/bpk-component-calendar/src/BpkCalendarDate.d.ts +1 -1
- package/bpk-component-calendar/src/BpkCalendarGrid.d.ts +2 -2
- package/bpk-component-calendar/src/BpkCalendarGridHeader.d.ts +1 -1
- package/bpk-component-calendar/src/BpkCalendarGridTransition.d.ts +2 -2
- package/bpk-component-calendar/src/BpkCalendarNav.d.ts +1 -1
- package/bpk-component-calendar/src/BpkCalendarWeek.d.ts +1 -1
- package/bpk-component-calendar/src/composeCalendar.d.ts +1 -1
- package/bpk-component-card/src/BpkCard.d.ts +1 -1
- package/bpk-component-card/src/BpkCardWrapper.d.ts +1 -1
- package/bpk-component-card/src/BpkDividedCard.d.ts +1 -1
- package/bpk-component-card-button/src/BpkSaveButton.d.ts +1 -1
- package/bpk-component-carousel/src/BpkCarousel.d.ts +1 -1
- package/bpk-component-carousel/src/BpkCarouselContainer.d.ts +1 -1
- package/bpk-component-chip/src/BpkDismissibleChip.d.ts +1 -1
- package/bpk-component-chip/src/BpkDropdownChip.d.ts +1 -1
- package/bpk-component-chip/src/BpkIconChip.d.ts +1 -1
- package/bpk-component-chip/src/BpkSelectableChip.d.ts +1 -1
- package/bpk-component-chip-group/src/BpkMultiSelectChipGroup.d.ts +1 -1
- package/bpk-component-chip-group/src/BpkSingleSelectChipGroup.d.ts +1 -1
- package/bpk-component-chip-group/src/Nudger.d.ts +1 -1
- package/bpk-component-close-button/src/BpkCloseButton.d.ts +1 -1
- package/bpk-component-datatable/src/BpkDataTable.d.ts +1 -1
- package/bpk-component-datatable/src/BpkDataTableHeader.d.ts +1 -1
- package/bpk-component-datepicker/src/BpkDatepicker.d.ts +5 -3
- package/bpk-component-description-list/src/BpkDescriptionDetails.d.ts +1 -1
- package/bpk-component-description-list/src/BpkDescriptionList.d.ts +1 -1
- package/bpk-component-description-list/src/BpkDescriptionTerm.d.ts +1 -1
- package/bpk-component-dialog/src/BpkDialog.d.ts +1 -1
- package/bpk-component-dialog/src/BpkDialogInner.d.ts +11 -7
- package/bpk-component-flare/src/__generated__/js/corner-radius.d.ts +1 -1
- package/bpk-component-flare/src/__generated__/js/pointer.d.ts +1 -1
- package/bpk-component-floating-notification/src/BpkFloatingNotification.d.ts +1 -1
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.d.ts +1 -1
- package/bpk-component-icon/index.d.ts +2 -2
- package/bpk-component-icon/src/classNameModifierHOCFactory.d.ts +1 -1
- package/bpk-component-icon/src/withAlignment.d.ts +1 -1
- package/bpk-component-icon/src/withRtlSupport.d.ts +1 -1
- package/bpk-component-image/src/BpkBackgroundImage.d.ts +1 -1
- package/bpk-component-image/src/BpkImage.d.ts +1 -1
- package/bpk-component-image/src/withLazyLoading.d.ts +5 -3
- package/bpk-component-image/src/withLoadingBehavior.d.ts +5 -3
- package/bpk-component-info-banner/src/AnimateAndFade.d.ts +1 -1
- package/bpk-component-info-banner/src/BpkInfoBanner.d.ts +1 -1
- package/bpk-component-info-banner/src/BpkInfoBannerDismissable.d.ts +1 -1
- package/bpk-component-info-banner/src/BpkInfoBannerExpandable.d.ts +1 -1
- package/bpk-component-info-banner/src/BpkInfoBannerInner.d.ts +1 -1
- package/bpk-component-info-banner/src/withBannerAlertState.d.ts +5 -3
- package/bpk-component-input/src/BpkInput.d.ts +1 -1
- package/bpk-component-input/src/withOpenEvents.d.ts +4 -2
- package/bpk-component-inset-banner/src/BpkInsetBanner.d.ts +1 -1
- package/bpk-component-journey-arrow/src/BpkJourneyArrow.d.ts +1 -1
- package/bpk-component-loading-button/src/BpkLoadingButton.d.ts +1 -1
- package/bpk-component-map/src/BpkBasicMapMarker.d.ts +1 -1
- package/bpk-component-map/src/BpkPriceMarkerV2/BpkPriceMarker.d.ts +1 -1
- package/bpk-component-modal/src/BpkModal.d.ts +1 -1
- package/bpk-component-modal/src/BpkModalInner.d.ts +1 -1
- package/bpk-component-modal/src/BpkModalV2/BpkModal.d.ts +1 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBar.d.ts +1 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.d.ts +1 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.d.ts +1 -1
- package/bpk-component-nudger/src/BpkNudger.d.ts +1 -1
- package/bpk-component-overlay/src/BpkOverlay.d.ts +1 -1
- package/bpk-component-popover/src/BpkPopover.d.ts +1 -1
- package/bpk-component-rating/src/BpkRating.d.ts +1 -1
- package/bpk-component-rtl-toggle/src/BpkRtlToggle.d.ts +1 -1
- package/bpk-component-rtl-toggle/src/updateOnDirectionChange.d.ts +11 -7
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendar.d.ts +4 -2
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.d.ts +1 -1
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.d.ts +3 -3
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.d.ts +3 -3
- package/bpk-component-section-header/src/BpkSectionHeader.d.ts +1 -1
- package/bpk-component-segmented-control/src/BpkSegmentedControl.d.ts +1 -1
- package/bpk-component-skeleton/src/BpkBaseSkeleton.d.ts +1 -1
- package/bpk-component-skeleton/src/BpkSkeleton.d.ts +1 -1
- package/bpk-component-slider/src/BpkSlider.d.ts +1 -1
- package/bpk-component-snippet/src/BpkSnippet.d.ts +1 -1
- package/bpk-component-spinner/src/BpkExtraLargeSpinner.d.ts +1 -1
- package/bpk-component-spinner/src/BpkLargeSpinner.d.ts +1 -1
- package/bpk-component-spinner/src/BpkSpinner.d.ts +1 -1
- package/bpk-component-split-input/src/BpkInputField.d.ts +1 -1
- package/bpk-component-split-input/src/BpkSplitInput.d.ts +2 -2
- package/bpk-component-swap-button/src/BpkSwapButton.d.ts +1 -1
- package/bpk-component-text/src/BpkText.d.ts +1 -1
- package/bpk-component-tooltip/src/BpkTooltip.d.ts +1 -1
- package/bpk-component-tooltip/src/BpkTooltipPortal.d.ts +1 -1
- package/bpk-react-utils/index.d.ts +3 -3
- package/bpk-react-utils/src/BpkDialogWrapper/BpkDialogWrapper.d.ts +1 -1
- package/bpk-react-utils/src/TransitionInitialMount.d.ts +1 -1
- package/bpk-react-utils/src/withDefaultProps.d.ts +1 -1
- package/bpk-scrim-utils/index.d.ts +11 -7
- package/bpk-scrim-utils/src/BpkScrim.d.ts +1 -1
- package/bpk-scrim-utils/src/withScrim.d.ts +11 -7
- package/bpk-scrim-utils/src/withScrimmedPortal.d.ts +1 -1
- package/bpk-theming/src/BpkThemeProvider.js +30 -19
- package/package.json +3 -3
- package/bpk-component-carousel/src/utils.test.js +0 -30
|
@@ -12,5 +12,5 @@ export type Props = {
|
|
|
12
12
|
className?: string | null;
|
|
13
13
|
[rest: string]: any;
|
|
14
14
|
};
|
|
15
|
-
declare const BpkAriaLive: ({ className, politenessSetting, visible, ...rest }: Props) =>
|
|
15
|
+
declare const BpkAriaLive: ({ className, politenessSetting, visible, ...rest }: Props) => JSX.Element;
|
|
16
16
|
export default BpkAriaLive;
|
|
@@ -18,5 +18,5 @@ export type Props = {
|
|
|
18
18
|
children: string | ReactNode;
|
|
19
19
|
[rest: string]: any;
|
|
20
20
|
};
|
|
21
|
-
declare const BpkBadge: ({ centered, className, docked, type, ...rest }: Props) =>
|
|
21
|
+
declare const BpkBadge: ({ centered, className, docked, type, ...rest }: Props) => JSX.Element;
|
|
22
22
|
export default BpkBadge;
|
|
@@ -27,6 +27,6 @@ declare class AnimateAndFade extends Component<Props, State> {
|
|
|
27
27
|
onAnimateHeightComplete: () => void;
|
|
28
28
|
onFadeComplete: () => void;
|
|
29
29
|
toggle: () => void;
|
|
30
|
-
render():
|
|
30
|
+
render(): JSX.Element | null;
|
|
31
31
|
}
|
|
32
32
|
export default AnimateAndFade;
|
|
@@ -3,5 +3,5 @@ import type { CommonProps } from './common-types';
|
|
|
3
3
|
* @deprecated use bpk-component-info-banner instead
|
|
4
4
|
* @returns {Component} a banner alert component
|
|
5
5
|
*/
|
|
6
|
-
declare const BpkBannerAlert: ({ animateOnEnter, animateOnLeave, icon, show, ...rest }: CommonProps) =>
|
|
6
|
+
declare const BpkBannerAlert: ({ animateOnEnter, animateOnLeave, icon, show, ...rest }: CommonProps) => JSX.Element;
|
|
7
7
|
export default BpkBannerAlert;
|
|
@@ -3,5 +3,5 @@ export type Props = CommonProps & {
|
|
|
3
3
|
dismissButtonLabel: string;
|
|
4
4
|
onDismiss?: OnDismissHandler;
|
|
5
5
|
};
|
|
6
|
-
declare const BpkBannerAlertDismissable: ({ onDismiss, ...rest }: Props) =>
|
|
6
|
+
declare const BpkBannerAlertDismissable: ({ onDismiss, ...rest }: Props) => JSX.Element;
|
|
7
7
|
export default BpkBannerAlertDismissable;
|
|
@@ -6,5 +6,5 @@ export type Props = CommonProps & {
|
|
|
6
6
|
toggleButtonLabel: string;
|
|
7
7
|
onExpandToggle?: OnExpandToggleHandler;
|
|
8
8
|
};
|
|
9
|
-
declare const BpkBannerAlertExpandable: ({ children, expanded, onExpandToggle, ...rest }: Props) =>
|
|
9
|
+
declare const BpkBannerAlertExpandable: ({ children, expanded, onExpandToggle, ...rest }: Props) => JSX.Element;
|
|
10
10
|
export default BpkBannerAlertExpandable;
|
|
@@ -14,5 +14,5 @@ type Props = CommonProps & {
|
|
|
14
14
|
dismissButtonLabel?: string;
|
|
15
15
|
onDismiss?: OnDismissHandler;
|
|
16
16
|
};
|
|
17
|
-
declare const BpkBannerAlertInner: ({ animateOnEnter, animateOnLeave, bannerClassName, children, configuration, dismissButtonLabel, expanded, icon, message, onDismiss, onExpandToggle, show, toggleButtonLabel, type, ...rest }: Props) =>
|
|
17
|
+
declare const BpkBannerAlertInner: ({ animateOnEnter, animateOnLeave, bannerClassName, children, configuration, dismissButtonLabel, expanded, icon, message, onDismiss, onExpandToggle, show, toggleButtonLabel, type, ...rest }: Props) => JSX.Element;
|
|
18
18
|
export default BpkBannerAlertInner;
|
|
@@ -14,8 +14,8 @@ declare const withBannerAlertState: <P extends BpkBannerAlertProps>(WrappedCompo
|
|
|
14
14
|
onExpandToggle: () => void;
|
|
15
15
|
onDismiss: () => void;
|
|
16
16
|
onHide: () => void;
|
|
17
|
-
render():
|
|
18
|
-
context:
|
|
17
|
+
render(): JSX.Element;
|
|
18
|
+
context: any;
|
|
19
19
|
setState<K extends keyof {
|
|
20
20
|
expanded?: boolean;
|
|
21
21
|
show?: boolean;
|
|
@@ -36,7 +36,9 @@ declare const withBannerAlertState: <P extends BpkBannerAlertProps>(WrappedCompo
|
|
|
36
36
|
show?: boolean;
|
|
37
37
|
}, K> | null, callback?: (() => void) | undefined): void;
|
|
38
38
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
39
|
-
readonly props: Readonly<P & WithBannerAlertStateProps
|
|
39
|
+
readonly props: Readonly<P & WithBannerAlertStateProps> & Readonly<{
|
|
40
|
+
children?: import("react").ReactNode | undefined;
|
|
41
|
+
}>;
|
|
40
42
|
state: Readonly<{
|
|
41
43
|
expanded?: boolean;
|
|
42
44
|
show?: boolean;
|
|
@@ -19,5 +19,5 @@ export type Props = CommonProps & ({
|
|
|
19
19
|
} | {
|
|
20
20
|
ariaLabel: string;
|
|
21
21
|
});
|
|
22
|
-
declare const BpkBottomSheet: ({ actionText, children, closeLabel, closeOnEscPressed, closeOnScrimClick, id, isOpen, onAction, onClose, title, wide, ...ariaProps }: Props) =>
|
|
22
|
+
declare const BpkBottomSheet: ({ actionText, children, closeLabel, closeOnEscPressed, closeOnScrimClick, id, isOpen, onAction, onClose, title, wide, ...ariaProps }: Props) => JSX.Element;
|
|
23
23
|
export default BpkBottomSheet;
|
|
@@ -11,7 +11,7 @@ export type Props = CommonProps & {
|
|
|
11
11
|
linkOnDark?: boolean;
|
|
12
12
|
};
|
|
13
13
|
declare const BpkButton: {
|
|
14
|
-
(props: Props):
|
|
14
|
+
(props: Props): JSX.Element;
|
|
15
15
|
defaultProps: {
|
|
16
16
|
primaryOnDark: boolean;
|
|
17
17
|
primaryOnLight: boolean;
|
|
@@ -14,7 +14,7 @@ type ValueOf<T> = T[keyof T];
|
|
|
14
14
|
declare const BpkButtonBase: {
|
|
15
15
|
(props: Props & {
|
|
16
16
|
type?: ValueOf<typeof BUTTON_TYPES>;
|
|
17
|
-
}):
|
|
17
|
+
}): JSX.Element;
|
|
18
18
|
propTypes: {
|
|
19
19
|
children: import("prop-types").Validator<NonNullable<import("prop-types").ReactNodeLike>>;
|
|
20
20
|
href: import("prop-types").Requireable<string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Props } from './common-types';
|
|
2
|
-
export declare const BpkButtonV2: ({ blank, children, className, disabled, fullWidth, href, iconOnly, onClick, rel: propRel, size, submit, type, ...rest }: Props) =>
|
|
2
|
+
export declare const BpkButtonV2: ({ blank, children, className, disabled, fullWidth, href, iconOnly, onClick, rel: propRel, size, submit, type, ...rest }: Props) => JSX.Element;
|
|
@@ -55,11 +55,13 @@ declare const withCalendarState: <P extends object>(Calendar: ComponentType<P>)
|
|
|
55
55
|
source: string;
|
|
56
56
|
}) => void;
|
|
57
57
|
handleDateKeyDown: (event: KeyboardEvent) => void;
|
|
58
|
-
render():
|
|
59
|
-
context:
|
|
58
|
+
render(): JSX.Element;
|
|
59
|
+
context: any;
|
|
60
60
|
setState<K extends keyof State>(state: State | ((prevState: Readonly<State>, props: Readonly<CalendarProps<P>>) => Pick<State, K> | State | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
|
|
61
61
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
62
|
-
readonly props: Readonly<CalendarProps<P
|
|
62
|
+
readonly props: Readonly<CalendarProps<P>> & Readonly<{
|
|
63
|
+
children?: import("react").ReactNode | undefined;
|
|
64
|
+
}>;
|
|
63
65
|
state: Readonly<State>;
|
|
64
66
|
refs: {
|
|
65
67
|
[key: string]: import("react").ReactInstance;
|
|
@@ -105,11 +107,13 @@ declare const _default: {
|
|
|
105
107
|
source: string;
|
|
106
108
|
}) => void;
|
|
107
109
|
handleDateKeyDown: (event: KeyboardEvent) => void;
|
|
108
|
-
render():
|
|
109
|
-
context:
|
|
110
|
+
render(): JSX.Element;
|
|
111
|
+
context: any;
|
|
110
112
|
setState<K extends keyof State>(state: State | ((prevState: Readonly<State>, props: Readonly<CalendarProps<import("./composeCalendar").Props>>) => Pick<State, K> | State | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
|
|
111
113
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
112
|
-
readonly props: Readonly<CalendarProps<import("./composeCalendar").Props
|
|
114
|
+
readonly props: Readonly<CalendarProps<import("./composeCalendar").Props>> & Readonly<{
|
|
115
|
+
children?: import("react").ReactNode | undefined;
|
|
116
|
+
}>;
|
|
113
117
|
state: Readonly<State>;
|
|
114
118
|
refs: {
|
|
115
119
|
[key: string]: import("react").ReactInstance;
|
|
@@ -46,6 +46,6 @@ declare class BpkCalendarDate extends PureComponent<Props> {
|
|
|
46
46
|
componentDidMount(): void;
|
|
47
47
|
componentDidUpdate(prevProps: Props): void;
|
|
48
48
|
button: HTMLButtonElement | null;
|
|
49
|
-
render():
|
|
49
|
+
render(): JSX.Element;
|
|
50
50
|
}
|
|
51
51
|
export default BpkCalendarDate;
|
|
@@ -40,7 +40,7 @@ declare class BpkCalendarGrid extends Component<Props, State> {
|
|
|
40
40
|
static defaultProps: DefaultProps;
|
|
41
41
|
constructor(props: Props);
|
|
42
42
|
UNSAFE_componentWillReceiveProps(nextProps: Props): void;
|
|
43
|
-
render():
|
|
43
|
+
render(): JSX.Element;
|
|
44
44
|
}
|
|
45
45
|
declare const BpkCalendarGridWithTransition: typeof BpkCalendarGrid | ((props: Omit<DefaultProps & {
|
|
46
46
|
DateComponent: ElementType;
|
|
@@ -60,6 +60,6 @@ declare const BpkCalendarGridWithTransition: typeof BpkCalendarGrid | ((props: O
|
|
|
60
60
|
className?: string | null;
|
|
61
61
|
month?: Date;
|
|
62
62
|
focusedDate?: Date | null;
|
|
63
|
-
}, "TransitionComponent">) =>
|
|
63
|
+
}, "TransitionComponent">) => JSX.Element);
|
|
64
64
|
export default BpkCalendarGrid;
|
|
65
65
|
export { BpkCalendarGridWithTransition };
|
|
@@ -26,8 +26,8 @@ declare class BpkCalendarGridTransition extends Component<Props, State> {
|
|
|
26
26
|
UNSAFE_componentWillReceiveProps({ month: nextMonth }: Props): void;
|
|
27
27
|
componentDidUpdate(): void;
|
|
28
28
|
onMonthTransitionEnd(): void;
|
|
29
|
-
render():
|
|
29
|
+
render(): JSX.Element;
|
|
30
30
|
}
|
|
31
|
-
declare const addCalendarGridTransition: <P extends {}>(TransitionComponent: ComponentType<P>) => (props: Omit<P & Props, keyof InjectedCalendarGridTransitionProps>) =>
|
|
31
|
+
declare const addCalendarGridTransition: <P extends {}>(TransitionComponent: ComponentType<P>) => (props: Omit<P & Props, keyof InjectedCalendarGridTransitionProps>) => JSX.Element;
|
|
32
32
|
export default BpkCalendarGridTransition;
|
|
33
33
|
export { addCalendarGridTransition };
|
|
@@ -19,5 +19,5 @@ type Props = {
|
|
|
19
19
|
}) => void;
|
|
20
20
|
disabled?: boolean;
|
|
21
21
|
};
|
|
22
|
-
declare const BpkCalendarNav: ({ changeMonthLabel, disabled, formatMonth, id, maxDate, minDate, month, nextMonthLabel, onMonthChange, previousMonthLabel, }: Props) =>
|
|
22
|
+
declare const BpkCalendarNav: ({ changeMonthLabel, disabled, formatMonth, id, maxDate, minDate, month, nextMonthLabel, onMonthChange, previousMonthLabel, }: Props) => JSX.Element;
|
|
23
23
|
export default BpkCalendarNav;
|
|
@@ -28,6 +28,6 @@ type DefaultProps = {
|
|
|
28
28
|
declare class BpkCalendarWeek extends Component<Props> {
|
|
29
29
|
static defaultProps: DefaultProps;
|
|
30
30
|
shouldComponentUpdate(nextProps: Props): boolean;
|
|
31
|
-
render():
|
|
31
|
+
render(): JSX.Element | null;
|
|
32
32
|
}
|
|
33
33
|
export default BpkCalendarWeek;
|
|
@@ -78,5 +78,5 @@ export type Props = {
|
|
|
78
78
|
*/
|
|
79
79
|
dateProps?: {} | null;
|
|
80
80
|
};
|
|
81
|
-
declare const composeCalendar: (Nav: ComponentType<any> | string | null, GridHeader: ComponentType<any> | string | null, Grid: ComponentType<any> | string, CalendarDate: ComponentType<any> | string | null) => ({ changeMonthLabel, className, customRowHeight, dateModifiers, dateProps, daysOfWeek, fixedWidth, focusedDate, formatDateFull, formatMonth, gridClassName, gridProps, headerProps, id, markOutsideDays, markToday, maxDate, minDate, month, navProps, nextMonthLabel, onDateClick, onDateKeyDown, onMonthChange, preventKeyboardFocus, previousMonthLabel, selectionConfiguration, weekDayKey, weekStartsOn, }: Props) =>
|
|
81
|
+
declare const composeCalendar: (Nav: ComponentType<any> | string | null, GridHeader: ComponentType<any> | string | null, Grid: ComponentType<any> | string, CalendarDate: ComponentType<any> | string | null) => ({ changeMonthLabel, className, customRowHeight, dateModifiers, dateProps, daysOfWeek, fixedWidth, focusedDate, formatDateFull, formatMonth, gridClassName, gridProps, headerProps, id, markOutsideDays, markToday, maxDate, minDate, month, navProps, nextMonthLabel, onDateClick, onDateKeyDown, onMonthChange, preventKeyboardFocus, previousMonthLabel, selectionConfiguration, weekDayKey, weekStartsOn, }: Props) => JSX.Element;
|
|
82
82
|
export default composeCalendar;
|
|
@@ -8,5 +8,5 @@ type Props = {
|
|
|
8
8
|
atomic?: boolean;
|
|
9
9
|
[rest: string]: any;
|
|
10
10
|
};
|
|
11
|
-
declare const BpkCard: ({ atomic, blank, children, className, href, padded, ...rest }: Props) =>
|
|
11
|
+
declare const BpkCard: ({ atomic, blank, children, className, href, padded, ...rest }: Props) => JSX.Element;
|
|
12
12
|
export default BpkCard;
|
|
@@ -5,5 +5,5 @@ type Props = {
|
|
|
5
5
|
backgroundColor: string;
|
|
6
6
|
header: ReactNode;
|
|
7
7
|
};
|
|
8
|
-
declare const BpkCardWrapper: ({ backgroundColor, card, className, header, }: Props) =>
|
|
8
|
+
declare const BpkCardWrapper: ({ backgroundColor, card, className, header, }: Props) => JSX.Element;
|
|
9
9
|
export default BpkCardWrapper;
|
|
@@ -12,5 +12,5 @@ export type Props = {
|
|
|
12
12
|
isElevated?: boolean;
|
|
13
13
|
[rest: string]: any;
|
|
14
14
|
};
|
|
15
|
-
declare const BpkDividedCard: ({ href, isElevated, orientation, primaryContent, secondaryContent, ...rest }: Props) =>
|
|
15
|
+
declare const BpkDividedCard: ({ href, isElevated, orientation, primaryContent, secondaryContent, ...rest }: Props) => JSX.Element;
|
|
16
16
|
export default BpkDividedCard;
|
|
@@ -17,5 +17,5 @@ type Props = {
|
|
|
17
17
|
size?: SizeType;
|
|
18
18
|
style?: StyleType;
|
|
19
19
|
};
|
|
20
|
-
declare const BpkSaveButton: ({ accessibilityLabel, checked, onCheckedChange, size, style, }: Props) =>
|
|
20
|
+
declare const BpkSaveButton: ({ accessibilityLabel, checked, onCheckedChange, size, style, }: Props) => JSX.Element;
|
|
21
21
|
export default BpkSaveButton;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Props } from './types';
|
|
2
|
-
declare const BpkCarousel: ({ bottom, images, initialImageIndex, onImageChanged, }: Props) =>
|
|
2
|
+
declare const BpkCarousel: ({ bottom, images, initialImageIndex, onImageChanged, }: Props) => JSX.Element;
|
|
3
3
|
export default BpkCarousel;
|
|
@@ -6,5 +6,5 @@ type Props = {
|
|
|
6
6
|
imagesRef: MutableRefObject<Array<HTMLElement | null>>;
|
|
7
7
|
onImageChanged: OnImageChangedHandler;
|
|
8
8
|
};
|
|
9
|
-
declare const BpkScrollContainer: import("react").MemoExoticComponent<({ images, imagesRef, onImageChanged, onVisible }: Props) =>
|
|
9
|
+
declare const BpkScrollContainer: import("react").MemoExoticComponent<({ images, imagesRef, onImageChanged, onVisible }: Props) => JSX.Element>;
|
|
10
10
|
export default BpkScrollContainer;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { CommonProps as Props } from './commonTypes';
|
|
2
2
|
type BpkDismissibleChipProps = Omit<Props, 'disabled' | 'selected'>;
|
|
3
|
-
declare const BpkDismissibleChip: ({ className, leadingAccessoryView, type, ...rest }: BpkDismissibleChipProps) =>
|
|
3
|
+
declare const BpkDismissibleChip: ({ className, leadingAccessoryView, type, ...rest }: BpkDismissibleChipProps) => JSX.Element;
|
|
4
4
|
export default BpkDismissibleChip;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { CommonProps as Props } from './commonTypes';
|
|
2
|
-
declare const BpkDropdownChip: ({ disabled, leadingAccessoryView, selected, type, ...rest }: Props) =>
|
|
2
|
+
declare const BpkDropdownChip: ({ disabled, leadingAccessoryView, selected, type, ...rest }: Props) => JSX.Element;
|
|
3
3
|
export default BpkDropdownChip;
|
|
@@ -3,5 +3,5 @@ import type { CommonProps as Props } from './commonTypes';
|
|
|
3
3
|
export type BpkIconChipProps = {
|
|
4
4
|
leadingAccessoryView: ReactNode;
|
|
5
5
|
} & Omit<Props, 'trailingAccessoryView' | 'leadingAccessoryView' | 'children'>;
|
|
6
|
-
declare const BpkIconChip: (props: BpkIconChipProps) =>
|
|
6
|
+
declare const BpkIconChip: (props: BpkIconChipProps) => JSX.Element;
|
|
7
7
|
export default BpkIconChip;
|
|
@@ -5,5 +5,5 @@ export interface Props extends CommonProps {
|
|
|
5
5
|
role?: string;
|
|
6
6
|
trailingAccessoryView?: ReactNode;
|
|
7
7
|
}
|
|
8
|
-
declare const BpkSelectableChip: ({ accessibilityLabel, children, className, disabled, dismissible, leadingAccessoryView, role, selected, trailingAccessoryView, type, ...rest }: Props) =>
|
|
8
|
+
declare const BpkSelectableChip: ({ accessibilityLabel, children, className, disabled, dismissible, leadingAccessoryView, role, selected, trailingAccessoryView, type, ...rest }: Props) => JSX.Element;
|
|
9
9
|
export default BpkSelectableChip;
|
|
@@ -43,5 +43,5 @@ export type MultiSelectProps = (RailChipGroupProps & {
|
|
|
43
43
|
} | WrapChipGroupProps & {
|
|
44
44
|
type: typeof CHIP_GROUP_TYPES.wrap;
|
|
45
45
|
});
|
|
46
|
-
declare const BpkMultiSelectChipGroup: (props: MultiSelectProps) =>
|
|
46
|
+
declare const BpkMultiSelectChipGroup: (props: MultiSelectProps) => JSX.Element;
|
|
47
47
|
export default BpkMultiSelectChipGroup;
|
|
@@ -4,5 +4,5 @@ export type SingleSelectProps = {
|
|
|
4
4
|
onItemClick?: (item: SingleSelectChipItem, selected: boolean, index: number) => void;
|
|
5
5
|
selectedIndex?: number;
|
|
6
6
|
} & MultiSelectProps;
|
|
7
|
-
declare const BpkSingleSelectChipGroup: ({ chips, onItemClick, selectedIndex, ...rest }: SingleSelectProps) =>
|
|
7
|
+
declare const BpkSingleSelectChipGroup: ({ chips, onItemClick, selectedIndex, ...rest }: SingleSelectProps) => JSX.Element;
|
|
8
8
|
export default BpkSingleSelectChipGroup;
|
|
@@ -10,5 +10,5 @@ type Props = {
|
|
|
10
10
|
scrollContainerRef: MutableRefObject<HTMLElement | null>;
|
|
11
11
|
position: (typeof POSITION)[keyof typeof POSITION];
|
|
12
12
|
};
|
|
13
|
-
declare const Nudger: ({ ariaLabel, chipStyle, position, scrollContainerRef }: Props) =>
|
|
13
|
+
declare const Nudger: ({ ariaLabel, chipStyle, position, scrollContainerRef }: Props) => JSX.Element | null;
|
|
14
14
|
export default Nudger;
|
|
@@ -6,5 +6,5 @@ type Props = {
|
|
|
6
6
|
customIcon?: FunctionComponent<any> | null;
|
|
7
7
|
onDark?: Boolean;
|
|
8
8
|
};
|
|
9
|
-
declare const BpkCloseButton: ({ className, customIcon, label, onClick, onDark, ...rest }: Props) =>
|
|
9
|
+
declare const BpkCloseButton: ({ className, customIcon, label, onClick, onDark, ...rest }: Props) => JSX.Element;
|
|
10
10
|
export default BpkCloseButton;
|
|
@@ -80,8 +80,8 @@ declare class BpkDatepicker extends Component<Props, State> {
|
|
|
80
80
|
source: string;
|
|
81
81
|
}) => void;
|
|
82
82
|
handleDateKeyDown: (event: KeyboardEvent) => void;
|
|
83
|
-
render():
|
|
84
|
-
context:
|
|
83
|
+
render(): JSX.Element;
|
|
84
|
+
context: any;
|
|
85
85
|
setState<K extends keyof {
|
|
86
86
|
preventKeyboardFocus: boolean;
|
|
87
87
|
focusedDate: Date;
|
|
@@ -118,6 +118,8 @@ declare class BpkDatepicker extends Component<Props, State> {
|
|
|
118
118
|
maxDate: Date;
|
|
119
119
|
}> & {
|
|
120
120
|
[rest: string]: any;
|
|
121
|
+
}> & Readonly<{
|
|
122
|
+
children?: import("react").ReactNode | undefined;
|
|
121
123
|
}>;
|
|
122
124
|
state: Readonly<{
|
|
123
125
|
preventKeyboardFocus: boolean;
|
|
@@ -258,6 +260,6 @@ declare class BpkDatepicker extends Component<Props, State> {
|
|
|
258
260
|
*/
|
|
259
261
|
getValue: (selectionConfiguration: SelectionConfiguration, formatDate: (date: Date) => string) => string;
|
|
260
262
|
handleDateSelect: (startDate: Date, endDate?: Date | null) => void;
|
|
261
|
-
render():
|
|
263
|
+
render(): JSX.Element;
|
|
262
264
|
}
|
|
263
265
|
export default BpkDatepicker;
|
|
@@ -4,5 +4,5 @@ type Props = {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
[rest: string]: any;
|
|
6
6
|
};
|
|
7
|
-
declare const _default: ({ children, className, ...rest }: Props) =>
|
|
7
|
+
declare const _default: ({ children, className, ...rest }: Props) => JSX.Element;
|
|
8
8
|
export default _default;
|
|
@@ -4,5 +4,5 @@ type Props = {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
[rest: string]: any;
|
|
6
6
|
};
|
|
7
|
-
declare const _default: ({ children, className, ...rest }: Props) =>
|
|
7
|
+
declare const _default: ({ children, className, ...rest }: Props) => JSX.Element;
|
|
8
8
|
export default _default;
|
|
@@ -4,5 +4,5 @@ type Props = {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
[rest: string]: any;
|
|
6
6
|
};
|
|
7
|
-
declare const _default: ({ children, className, ...rest }: Props) =>
|
|
7
|
+
declare const _default: ({ children, className, ...rest }: Props) => JSX.Element;
|
|
8
8
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Props } from './common-types';
|
|
2
|
-
declare const BpkDialog: ({ children, closeLabel, dismissible, headerIcon, headerIconType, isOpen, onClose, renderTarget, ...rest }: Props) =>
|
|
2
|
+
declare const BpkDialog: ({ children, closeLabel, dismissible, headerIcon, headerIconType, isOpen, onClose, renderTarget, ...rest }: Props) => JSX.Element;
|
|
3
3
|
export default BpkDialog;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { type DialogInnerProps as Props } from './common-types';
|
|
2
2
|
declare const _default: {
|
|
3
|
-
new (props: import("../../bpk-scrim-utils/src/withScrim").Props & Omit<Props, "dialogRef">): {
|
|
3
|
+
new (props: (import("../../bpk-scrim-utils/src/withScrim").Props & Omit<Props, "dialogRef">) | Readonly<import("../../bpk-scrim-utils/src/withScrim").Props & Omit<Props, "dialogRef">>): {
|
|
4
4
|
dialogElement?: HTMLElement | null | undefined;
|
|
5
5
|
componentDidMount(): void;
|
|
6
6
|
componentWillUnmount(): void;
|
|
7
7
|
dialogRef: (ref: HTMLElement | null | undefined) => void;
|
|
8
|
-
render():
|
|
9
|
-
context:
|
|
8
|
+
render(): JSX.Element;
|
|
9
|
+
context: any;
|
|
10
10
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("../../bpk-scrim-utils/src/withScrim").Props & Omit<Props, "dialogRef">>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
11
11
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
12
|
-
readonly props: Readonly<import("../../bpk-scrim-utils/src/withScrim").Props & Omit<Props, "dialogRef"
|
|
12
|
+
readonly props: Readonly<import("../../bpk-scrim-utils/src/withScrim").Props & Omit<Props, "dialogRef">> & Readonly<{
|
|
13
|
+
children?: import("react").ReactNode | undefined;
|
|
14
|
+
}>;
|
|
13
15
|
state: Readonly<{}>;
|
|
14
16
|
refs: {
|
|
15
17
|
[key: string]: import("react").ReactInstance;
|
|
@@ -30,11 +32,13 @@ declare const _default: {
|
|
|
30
32
|
componentDidMount(): void;
|
|
31
33
|
componentWillUnmount(): void;
|
|
32
34
|
dialogRef: (ref: HTMLElement | null | undefined) => void;
|
|
33
|
-
render():
|
|
34
|
-
context:
|
|
35
|
+
render(): JSX.Element;
|
|
36
|
+
context: any;
|
|
35
37
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("../../bpk-scrim-utils/src/withScrim").Props & Omit<Props, "dialogRef">>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
36
38
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
37
|
-
readonly props: Readonly<import("../../bpk-scrim-utils/src/withScrim").Props & Omit<Props, "dialogRef"
|
|
39
|
+
readonly props: Readonly<import("../../bpk-scrim-utils/src/withScrim").Props & Omit<Props, "dialogRef">> & Readonly<{
|
|
40
|
+
children?: import("react").ReactNode | undefined;
|
|
41
|
+
}>;
|
|
38
42
|
state: Readonly<{}>;
|
|
39
43
|
refs: {
|
|
40
44
|
[key: string]: import("react").ReactInstance;
|
|
@@ -18,5 +18,5 @@ export type Props = {
|
|
|
18
18
|
text: string;
|
|
19
19
|
[rest: string]: any;
|
|
20
20
|
};
|
|
21
|
-
declare const BpkFloatingNotification: (props: Props) =>
|
|
21
|
+
declare const BpkFloatingNotification: (props: Props) => JSX.Element;
|
|
22
22
|
export default BpkFloatingNotification;
|
|
@@ -23,5 +23,5 @@ export type Props = {
|
|
|
23
23
|
textAlign: (typeof TEXT_ALIGN)[keyof typeof TEXT_ALIGN];
|
|
24
24
|
style?: {};
|
|
25
25
|
};
|
|
26
|
-
declare const BpkGraphicPromo: ({ buttonText, className, contentId, headline, invertVertically, onClick, sponsor, style, subheading, tagline, textAlign, }: Props) =>
|
|
26
|
+
declare const BpkGraphicPromo: ({ buttonText, className, contentId, headline, invertVertically, onClick, sponsor, style, subheading, tagline, textAlign, }: Props) => JSX.Element;
|
|
27
27
|
export default BpkGraphicPromo;
|
|
@@ -3,11 +3,11 @@ import withAlignment from './src/withAlignment';
|
|
|
3
3
|
import withDescription from './src/withDescription';
|
|
4
4
|
import withRtlSupport from './src/withRtlSupport';
|
|
5
5
|
declare function withButtonAlignment(WrappedComponent: ComponentType<any>): {
|
|
6
|
-
(props: any):
|
|
6
|
+
(props: any): JSX.Element;
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
9
9
|
declare function withLargeButtonAlignment(WrappedComponent: ComponentType<any>): {
|
|
10
|
-
(props: any):
|
|
10
|
+
(props: any): JSX.Element;
|
|
11
11
|
displayName: string;
|
|
12
12
|
};
|
|
13
13
|
export { withButtonAlignment, withLargeButtonAlignment, withAlignment, withRtlSupport, withDescription, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentType } from 'react';
|
|
2
2
|
export default function withAlignment(Component: ComponentType | string, objectHeight: string, subjectHeight: string): {
|
|
3
|
-
(props: any):
|
|
3
|
+
(props: any): JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
@@ -27,6 +27,6 @@ declare class BpkBackgroundImage extends Component<BpkBackgroundImageProps> {
|
|
|
27
27
|
onBackgroundImageLoad: () => void;
|
|
28
28
|
getAspectRatio: () => number;
|
|
29
29
|
startImageLoad: () => void;
|
|
30
|
-
render():
|
|
30
|
+
render(): JSX.Element;
|
|
31
31
|
}
|
|
32
32
|
export default BpkBackgroundImage;
|