@skyscanner/backpack-web 34.15.1 → 34.16.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/bpk-component-banner-alert/src/BpkBannerAlert.d.ts +0 -1
- package/bpk-component-banner-alert/src/BpkBannerAlertDismissable.d.ts +0 -1
- package/bpk-component-banner-alert/src/withBannerAlertState.d.ts +34 -40
- package/bpk-component-boilerplate/src/BpkBoilerplate.d.ts +0 -1
- package/bpk-component-button/BpkButtonDestructive.d.ts +0 -1
- package/bpk-component-button/BpkButtonFeatured.d.ts +0 -1
- package/bpk-component-button/BpkButtonLink.d.ts +0 -1
- package/bpk-component-button/BpkButtonLinkOnDark.d.ts +0 -1
- package/bpk-component-button/BpkButtonPrimary.d.ts +0 -1
- package/bpk-component-button/BpkButtonPrimaryOnDark.d.ts +0 -1
- package/bpk-component-button/BpkButtonPrimaryOnLight.d.ts +0 -1
- package/bpk-component-button/BpkButtonSecondary.d.ts +0 -1
- package/bpk-component-button/BpkButtonSecondaryOnDark.d.ts +0 -1
- package/bpk-component-button/src/BpkButton.d.ts +0 -1
- package/bpk-component-button/src/BpkButtonBase.d.ts +1 -12
- package/bpk-component-button/src/BpkButtonV2/BpkButton.d.ts +0 -1
- package/bpk-component-calendar/src/BpkCalendarContainer.d.ts +6 -6
- package/bpk-component-calendar/src/BpkCalendarGrid.d.ts +3 -3
- package/bpk-component-card/src/CardContext.d.ts +0 -1
- package/bpk-component-carousel/src/BpkCarousel.d.ts +0 -1
- package/bpk-component-chip/src/BpkDismissibleChip.d.ts +0 -1
- package/bpk-component-chip/src/BpkDropdownChip.d.ts +0 -1
- package/bpk-component-chip-group/src/BpkSingleSelectChipGroup.d.ts +0 -1
- package/bpk-component-datatable/src/BpkDataTable.d.ts +0 -1
- package/bpk-component-datatable/src/BpkDataTableHeader.d.ts +0 -1
- package/bpk-component-datepicker/src/BpkDatepicker.d.ts +5 -5
- package/bpk-component-dialog/src/BpkDialog.d.ts +0 -1
- package/bpk-component-dialog/src/BpkDialogInner.d.ts +6 -7
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.d.ts +0 -1
- package/bpk-component-icon/src/classNameModifierHOCFactory.d.ts +1 -1
- package/bpk-component-icon/src/withRtlSupport.d.ts +2 -3
- package/bpk-component-image/src/withLazyLoading.d.ts +6 -7
- package/bpk-component-image/src/withLoadingBehavior.d.ts +3 -3
- package/bpk-component-info-banner/src/BpkInfoBanner.d.ts +0 -1
- package/bpk-component-info-banner/src/BpkInfoBannerDismissable.d.ts +0 -1
- package/bpk-component-info-banner/src/withBannerAlertState.d.ts +34 -41
- package/bpk-component-input/src/withOpenEvents.d.ts +3 -3
- package/bpk-component-inset-banner/src/BpkInsetBanner.d.ts +0 -1
- package/bpk-component-journey-arrow/src/BpkJourneyArrow.d.ts +0 -1
- package/bpk-component-nudger/src/BpkConfigurableNudger.d.ts +0 -1
- package/bpk-component-nudger/src/BpkNudger.d.ts +0 -1
- package/bpk-component-rtl-toggle/src/updateOnDirectionChange.d.ts +6 -6
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendar.d.ts +5 -6
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.d.ts +0 -1
- package/bpk-component-skeleton/src/BpkBaseSkeleton.d.d.ts +0 -1
- package/bpk-component-skeleton/src/BpkBaseSkeleton.d.ts +0 -1
- package/bpk-component-skeleton/src/BpkSkeleton.d.d.ts +0 -1
- package/bpk-component-skeleton/src/BpkSkeleton.d.ts +0 -1
- package/bpk-component-slider/src/BpkSlider.d.ts +0 -1
- package/bpk-component-snippet/index.d.ts +3 -0
- package/bpk-component-snippet/index.js +21 -0
- package/bpk-component-snippet/src/BpkSnippet.d.ts +48 -0
- package/bpk-component-snippet/src/BpkSnippet.js +131 -0
- package/bpk-component-snippet/src/BpkSnippet.module.css +18 -0
- package/bpk-component-spinner/src/BpkExtraLargeSpinner.d.ts +0 -1
- package/bpk-component-spinner/src/BpkLargeSpinner.d.ts +0 -1
- package/bpk-component-spinner/src/BpkSpinner.d.ts +0 -1
- package/bpk-component-split-input/src/BpkInputField.js +4 -1
- package/bpk-component-split-input/src/BpkSplitInput.js +1 -1
- package/bpk-component-swap-button/src/BpkSwapButton.d.ts +0 -1
- package/bpk-react-utils/index.d.ts +6 -7
- package/bpk-scrim-utils/index.d.ts +7 -8
- package/bpk-scrim-utils/src/withScrim.d.ts +6 -6
- package/package.json +1 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import withScrim from './src/withScrim';
|
|
3
2
|
import withScrimmedPortal from './src/withScrimmedPortal';
|
|
4
3
|
export { withScrim, withScrimmedPortal };
|
|
5
4
|
declare const _default: {
|
|
6
|
-
withScrim: <P extends object>(WrappedComponent:
|
|
5
|
+
withScrim: <P extends object>(WrappedComponent: import("react").ComponentType<P> | string) => {
|
|
7
6
|
new (props: (import("./src/withScrim").Props & Omit<P, "dialogRef">) | Readonly<import("./src/withScrim").Props & Omit<P, "dialogRef">>): {
|
|
8
7
|
dialogElement?: HTMLElement | null | undefined;
|
|
9
8
|
componentDidMount(): void;
|
|
@@ -11,10 +10,10 @@ declare const _default: {
|
|
|
11
10
|
dialogRef: (ref: HTMLElement | null | undefined) => void;
|
|
12
11
|
render(): JSX.Element;
|
|
13
12
|
context: any;
|
|
14
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("./src/withScrim").Props & Omit<P, "dialogRef">>) =>
|
|
13
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("./src/withScrim").Props & Omit<P, "dialogRef">>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
15
14
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
16
15
|
readonly props: Readonly<import("./src/withScrim").Props & Omit<P, "dialogRef">> & Readonly<{
|
|
17
|
-
children?: import("react").ReactNode;
|
|
16
|
+
children?: import("react").ReactNode | undefined;
|
|
18
17
|
}>;
|
|
19
18
|
state: Readonly<{}>;
|
|
20
19
|
refs: {
|
|
@@ -22,7 +21,7 @@ declare const _default: {
|
|
|
22
21
|
};
|
|
23
22
|
shouldComponentUpdate?(nextProps: Readonly<import("./src/withScrim").Props & Omit<P, "dialogRef">>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
24
23
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
25
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<import("./src/withScrim").Props & Omit<P, "dialogRef">>, prevState: Readonly<{}>): any;
|
|
24
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("./src/withScrim").Props & Omit<P, "dialogRef">>, prevState: Readonly<{}>): any | null;
|
|
26
25
|
componentDidUpdate?(prevProps: Readonly<import("./src/withScrim").Props & Omit<P, "dialogRef">>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
27
26
|
componentWillMount?(): void;
|
|
28
27
|
UNSAFE_componentWillMount?(): void;
|
|
@@ -38,10 +37,10 @@ declare const _default: {
|
|
|
38
37
|
dialogRef: (ref: HTMLElement | null | undefined) => void;
|
|
39
38
|
render(): JSX.Element;
|
|
40
39
|
context: any;
|
|
41
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("./src/withScrim").Props & Omit<P, "dialogRef">>) =>
|
|
40
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("./src/withScrim").Props & Omit<P, "dialogRef">>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
42
41
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
43
42
|
readonly props: Readonly<import("./src/withScrim").Props & Omit<P, "dialogRef">> & Readonly<{
|
|
44
|
-
children?: import("react").ReactNode;
|
|
43
|
+
children?: import("react").ReactNode | undefined;
|
|
45
44
|
}>;
|
|
46
45
|
state: Readonly<{}>;
|
|
47
46
|
refs: {
|
|
@@ -49,7 +48,7 @@ declare const _default: {
|
|
|
49
48
|
};
|
|
50
49
|
shouldComponentUpdate?(nextProps: Readonly<import("./src/withScrim").Props & Omit<P, "dialogRef">>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
51
50
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
52
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<import("./src/withScrim").Props & Omit<P, "dialogRef">>, prevState: Readonly<{}>): any;
|
|
51
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("./src/withScrim").Props & Omit<P, "dialogRef">>, prevState: Readonly<{}>): any | null;
|
|
53
52
|
componentDidUpdate?(prevProps: Readonly<import("./src/withScrim").Props & Omit<P, "dialogRef">>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
54
53
|
componentWillMount?(): void;
|
|
55
54
|
UNSAFE_componentWillMount?(): void;
|
|
@@ -28,10 +28,10 @@ declare const withScrim: <P extends object>(WrappedComponent: ComponentType<P> |
|
|
|
28
28
|
dialogRef: (ref: HTMLElement | null | undefined) => void;
|
|
29
29
|
render(): JSX.Element;
|
|
30
30
|
context: any;
|
|
31
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Props & Omit<P, "dialogRef">>) =>
|
|
31
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Props & Omit<P, "dialogRef">>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
32
32
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
33
33
|
readonly props: Readonly<Props & Omit<P, "dialogRef">> & Readonly<{
|
|
34
|
-
children?: import("react").ReactNode;
|
|
34
|
+
children?: import("react").ReactNode | undefined;
|
|
35
35
|
}>;
|
|
36
36
|
state: Readonly<{}>;
|
|
37
37
|
refs: {
|
|
@@ -39,7 +39,7 @@ declare const withScrim: <P extends object>(WrappedComponent: ComponentType<P> |
|
|
|
39
39
|
};
|
|
40
40
|
shouldComponentUpdate?(nextProps: Readonly<Props & Omit<P, "dialogRef">>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
41
41
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
42
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Props & Omit<P, "dialogRef">>, prevState: Readonly<{}>): any;
|
|
42
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Props & Omit<P, "dialogRef">>, prevState: Readonly<{}>): any | null;
|
|
43
43
|
componentDidUpdate?(prevProps: Readonly<Props & Omit<P, "dialogRef">>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
44
44
|
componentWillMount?(): void;
|
|
45
45
|
UNSAFE_componentWillMount?(): void;
|
|
@@ -55,10 +55,10 @@ declare const withScrim: <P extends object>(WrappedComponent: ComponentType<P> |
|
|
|
55
55
|
dialogRef: (ref: HTMLElement | null | undefined) => void;
|
|
56
56
|
render(): JSX.Element;
|
|
57
57
|
context: any;
|
|
58
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Props & Omit<P, "dialogRef">>) =>
|
|
58
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Props & Omit<P, "dialogRef">>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
59
59
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
60
60
|
readonly props: Readonly<Props & Omit<P, "dialogRef">> & Readonly<{
|
|
61
|
-
children?: import("react").ReactNode;
|
|
61
|
+
children?: import("react").ReactNode | undefined;
|
|
62
62
|
}>;
|
|
63
63
|
state: Readonly<{}>;
|
|
64
64
|
refs: {
|
|
@@ -66,7 +66,7 @@ declare const withScrim: <P extends object>(WrappedComponent: ComponentType<P> |
|
|
|
66
66
|
};
|
|
67
67
|
shouldComponentUpdate?(nextProps: Readonly<Props & Omit<P, "dialogRef">>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
68
68
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
69
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Props & Omit<P, "dialogRef">>, prevState: Readonly<{}>): any;
|
|
69
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Props & Omit<P, "dialogRef">>, prevState: Readonly<{}>): any | null;
|
|
70
70
|
componentDidUpdate?(prevProps: Readonly<Props & Omit<P, "dialogRef">>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
71
71
|
componentWillMount?(): void;
|
|
72
72
|
UNSAFE_componentWillMount?(): void;
|