@skyscanner/backpack-web 34.15.1 → 34.16.0-preminor.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 -2
- package/bpk-component-banner-alert/src/BpkBannerAlertDismissable.d.ts +1 -2
- 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 +36 -44
- package/bpk-component-boilerplate/src/BpkBoilerplate.d.ts +1 -2
- package/bpk-component-bottom-sheet/src/BpkBottomSheet.d.ts +1 -1
- package/bpk-component-button/BpkButtonDestructive.d.ts +1 -2
- package/bpk-component-button/BpkButtonFeatured.d.ts +1 -2
- package/bpk-component-button/BpkButtonLink.d.ts +1 -2
- package/bpk-component-button/BpkButtonLinkOnDark.d.ts +1 -2
- package/bpk-component-button/BpkButtonPrimary.d.ts +1 -2
- package/bpk-component-button/BpkButtonPrimaryOnDark.d.ts +1 -2
- package/bpk-component-button/BpkButtonPrimaryOnLight.d.ts +1 -2
- package/bpk-component-button/BpkButtonSecondary.d.ts +1 -2
- package/bpk-component-button/BpkButtonSecondaryOnDark.d.ts +1 -2
- package/bpk-component-button/src/BpkButton.d.ts +1 -2
- package/bpk-component-button/src/BpkButtonBase.d.ts +2 -13
- package/bpk-component-button/src/BpkButtonDestructive.module.css +18 -0
- package/bpk-component-button/src/BpkButtonFeatured.module.css +18 -0
- package/bpk-component-button/src/BpkButtonLink.module.css +18 -0
- package/bpk-component-button/src/BpkButtonLinkOnDark.module.css +18 -0
- package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.css +18 -0
- package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.css +18 -0
- package/bpk-component-button/src/BpkButtonSecondary.module.css +18 -0
- package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.css +18 -0
- package/bpk-component-button/src/BpkButtonV2/BpkButton.d.ts +1 -2
- package/bpk-component-calendar/src/BpkCalendarContainer.d.ts +10 -14
- package/bpk-component-calendar/src/BpkCalendarContainer.js +1 -0
- package/bpk-component-calendar/src/BpkCalendarDate.d.ts +1 -1
- package/bpk-component-calendar/src/BpkCalendarGrid.d.ts +5 -5
- 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/src/CardContext.d.ts +0 -1
- package/bpk-component-card-button/src/BpkSaveButton.d.ts +1 -1
- package/bpk-component-carousel/src/BpkCarousel.d.ts +1 -2
- package/bpk-component-carousel/src/BpkCarouselContainer.d.ts +1 -1
- package/bpk-component-carousel/src/utils.test.js +12 -0
- package/bpk-component-chip/src/BpkDismissibleChip.d.ts +1 -2
- package/bpk-component-chip/src/BpkDropdownChip.d.ts +1 -2
- 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 -2
- package/bpk-component-chip-group/src/Nudger.d.ts +1 -1
- package/bpk-component-datatable/src/BpkDataTable.d.ts +1 -2
- package/bpk-component-datatable/src/BpkDataTableHeader.d.ts +1 -2
- package/bpk-component-datepicker/src/BpkDatepicker.d.ts +7 -9
- package/bpk-component-datepicker/src/BpkDatepicker.module.css +18 -0
- 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 -2
- package/bpk-component-dialog/src/BpkDialogInner.d.ts +11 -16
- package/bpk-component-flare/src/__generated__/js/corner-radius.d.ts +5 -0
- package/bpk-component-flare/src/__generated__/js/pointer.d.ts +5 -0
- package/bpk-component-floating-notification/src/BpkFloatingNotification.d.ts +1 -1
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.d.ts +1 -2
- package/bpk-component-icon/index.d.ts +2 -2
- package/bpk-component-icon/src/classNameModifierHOCFactory.d.ts +2 -2
- package/bpk-component-icon/src/withAlignment.d.ts +1 -1
- package/bpk-component-icon/src/withRtlSupport.d.ts +3 -4
- 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 +8 -11
- package/bpk-component-image/src/withLoadingBehavior.d.ts +5 -7
- package/bpk-component-info-banner/src/AnimateAndFade.d.ts +1 -1
- package/bpk-component-info-banner/src/BpkInfoBanner.d.ts +1 -2
- package/bpk-component-info-banner/src/BpkInfoBannerDismissable.d.ts +1 -2
- 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 +36 -45
- package/bpk-component-input/src/BpkClearButton.module.css +18 -0
- package/bpk-component-input/src/BpkInput.d.ts +1 -1
- package/bpk-component-input/src/withOpenEvents.d.ts +4 -6
- package/bpk-component-inset-banner/src/BpkInsetBanner.d.ts +1 -2
- package/bpk-component-journey-arrow/src/BpkJourneyArrow.d.ts +1 -2
- 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/BpkNavigationBarButtonLink.module.css +18 -0
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.d.ts +1 -1
- package/bpk-component-nudger/src/BpkConfigurableNudger.d.ts +1 -2
- package/bpk-component-nudger/src/BpkNudger.d.ts +1 -2
- 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 -15
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendar.d.ts +6 -9
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.d.ts +1 -2
- 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.d.ts +0 -1
- package/bpk-component-skeleton/src/BpkBaseSkeleton.d.ts +1 -2
- package/bpk-component-skeleton/src/BpkSkeleton.d.d.ts +0 -1
- package/bpk-component-skeleton/src/BpkSkeleton.d.ts +1 -2
- package/bpk-component-slider/src/BpkSlider.d.ts +1 -2
- package/bpk-component-spinner/src/BpkExtraLargeSpinner.d.ts +1 -2
- package/bpk-component-spinner/src/BpkLargeSpinner.d.ts +1 -2
- package/bpk-component-spinner/src/BpkSpinner.d.ts +1 -2
- 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 +1 -2
- 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 +9 -10
- 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 +12 -17
- package/bpk-scrim-utils/src/BpkScrim.d.ts +1 -1
- package/bpk-scrim-utils/src/withScrim.d.ts +11 -15
- package/bpk-scrim-utils/src/withScrimmedPortal.d.ts +1 -1
- package/bpk-stylesheets/test.css +164 -0
- package/package.json +3 -3
|
@@ -1,82 +1,73 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import type { ComponentType } from 'react';
|
|
2
|
+
import type { Props as BpkInfoBannerDismissableProps } from './BpkInfoBannerDismissable';
|
|
3
|
+
import type { Props as BpkInfoBannerExpandableProps } from './BpkInfoBannerExpandable';
|
|
3
4
|
export type WithBannerAlertStateProps = {
|
|
4
5
|
onHide?: () => void;
|
|
5
6
|
hideAfter?: number;
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
onDismiss?: import("./common-types").OnDismissHandler;
|
|
10
|
-
} & {
|
|
11
|
-
children: import("react").ReactNode;
|
|
12
|
-
expanded?: boolean | undefined;
|
|
13
|
-
toggleButtonLabel: string;
|
|
14
|
-
onExpandToggle?: import("./common-types").OnExpandToggleHandler;
|
|
15
|
-
action?: import("./common-types").ExpandableBannerAction;
|
|
16
|
-
}>>(WrappedComponent: ComponentType<P>) => {
|
|
8
|
+
type BpkInfoBannerProps = Partial<BpkInfoBannerDismissableProps & BpkInfoBannerExpandableProps>;
|
|
9
|
+
declare const withBannerAlertState: <P extends BpkInfoBannerProps>(WrappedComponent: ComponentType<P>) => {
|
|
17
10
|
new (props: P & WithBannerAlertStateProps): {
|
|
18
|
-
hideIntervalId?:
|
|
11
|
+
hideIntervalId?: ReturnType<typeof setTimeout> | null;
|
|
19
12
|
componentDidMount(): void;
|
|
20
13
|
componentWillUnmount(): void;
|
|
21
14
|
onExpandToggle: () => void;
|
|
22
15
|
onDismiss: () => void;
|
|
23
16
|
onHide: () => void;
|
|
24
|
-
render(): JSX.Element;
|
|
25
|
-
context:
|
|
17
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
context: unknown;
|
|
26
19
|
setState<K extends keyof {
|
|
27
|
-
expanded?: boolean
|
|
28
|
-
show?: boolean
|
|
20
|
+
expanded?: boolean;
|
|
21
|
+
show?: boolean;
|
|
29
22
|
}>(state: {
|
|
30
|
-
expanded?: boolean
|
|
31
|
-
show?: boolean
|
|
23
|
+
expanded?: boolean;
|
|
24
|
+
show?: boolean;
|
|
32
25
|
} | ((prevState: Readonly<{
|
|
33
|
-
expanded?: boolean
|
|
34
|
-
show?: boolean
|
|
35
|
-
}>, props: Readonly<P & WithBannerAlertStateProps>) => {
|
|
36
|
-
expanded?: boolean
|
|
37
|
-
show?: boolean
|
|
38
|
-
} |
|
|
39
|
-
expanded?: boolean
|
|
40
|
-
show?: boolean
|
|
41
|
-
}
|
|
42
|
-
expanded?: boolean
|
|
43
|
-
show?: boolean
|
|
26
|
+
expanded?: boolean;
|
|
27
|
+
show?: boolean;
|
|
28
|
+
}>, props: Readonly<P & WithBannerAlertStateProps>) => Pick<{
|
|
29
|
+
expanded?: boolean;
|
|
30
|
+
show?: boolean;
|
|
31
|
+
}, K> | {
|
|
32
|
+
expanded?: boolean;
|
|
33
|
+
show?: boolean;
|
|
34
|
+
} | null) | Pick<{
|
|
35
|
+
expanded?: boolean;
|
|
36
|
+
show?: boolean;
|
|
44
37
|
}, K> | null, callback?: (() => void) | undefined): void;
|
|
45
38
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
46
|
-
readonly props: Readonly<P & WithBannerAlertStateProps
|
|
47
|
-
children?: import("react").ReactNode;
|
|
48
|
-
}>;
|
|
39
|
+
readonly props: Readonly<P & WithBannerAlertStateProps>;
|
|
49
40
|
state: Readonly<{
|
|
50
|
-
expanded?: boolean
|
|
51
|
-
show?: boolean
|
|
41
|
+
expanded?: boolean;
|
|
42
|
+
show?: boolean;
|
|
52
43
|
}>;
|
|
53
44
|
refs: {
|
|
54
45
|
[key: string]: import("react").ReactInstance;
|
|
55
46
|
};
|
|
56
47
|
shouldComponentUpdate?(nextProps: Readonly<P & WithBannerAlertStateProps>, nextState: Readonly<{
|
|
57
|
-
expanded?: boolean
|
|
58
|
-
show?: boolean
|
|
48
|
+
expanded?: boolean;
|
|
49
|
+
show?: boolean;
|
|
59
50
|
}>, nextContext: any): boolean;
|
|
60
51
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
61
52
|
getSnapshotBeforeUpdate?(prevProps: Readonly<P & WithBannerAlertStateProps>, prevState: Readonly<{
|
|
62
|
-
expanded?: boolean
|
|
63
|
-
show?: boolean
|
|
64
|
-
}>): any;
|
|
53
|
+
expanded?: boolean;
|
|
54
|
+
show?: boolean;
|
|
55
|
+
}>): any | null;
|
|
65
56
|
componentDidUpdate?(prevProps: Readonly<P & WithBannerAlertStateProps>, prevState: Readonly<{
|
|
66
|
-
expanded?: boolean
|
|
67
|
-
show?: boolean
|
|
57
|
+
expanded?: boolean;
|
|
58
|
+
show?: boolean;
|
|
68
59
|
}>, snapshot?: any): void;
|
|
69
60
|
componentWillMount?(): void;
|
|
70
61
|
UNSAFE_componentWillMount?(): void;
|
|
71
62
|
componentWillReceiveProps?(nextProps: Readonly<P & WithBannerAlertStateProps>, nextContext: any): void;
|
|
72
63
|
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P & WithBannerAlertStateProps>, nextContext: any): void;
|
|
73
64
|
componentWillUpdate?(nextProps: Readonly<P & WithBannerAlertStateProps>, nextState: Readonly<{
|
|
74
|
-
expanded?: boolean
|
|
75
|
-
show?: boolean
|
|
65
|
+
expanded?: boolean;
|
|
66
|
+
show?: boolean;
|
|
76
67
|
}>, nextContext: any): void;
|
|
77
68
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<P & WithBannerAlertStateProps>, nextState: Readonly<{
|
|
78
|
-
expanded?: boolean
|
|
79
|
-
show?: boolean
|
|
69
|
+
expanded?: boolean;
|
|
70
|
+
show?: boolean;
|
|
80
71
|
}>, nextContext: any): void;
|
|
81
72
|
};
|
|
82
73
|
displayName: string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Backpack - Skyscanner's Design System
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2016 Skyscanner Ltd
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
.bpk-clear-button{padding:0;border:0;background-color:rgba(0,0,0,0);color:#626971;cursor:pointer;appearance:none}.bpk-no-touch-support .bpk-clear-button:hover:not(:active):not(:disabled){color:#161616}:global(.bpk-no-touch-support) .bpk-clear-button:hover:not(:active):not(:disabled){color:#161616}.bpk-clear-button:active{color:#161616}.bpk-clear-button__icon{fill:currentcolor}
|
|
@@ -34,12 +34,10 @@ declare const withOpenEvents: <P extends object>(WithOpenEventsInputComponent: C
|
|
|
34
34
|
handleFocus: () => void;
|
|
35
35
|
handleBlur: () => void;
|
|
36
36
|
render(): ReactElement;
|
|
37
|
-
context:
|
|
38
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P & import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & Omit<EventHandlers, "aria-readonly" | "readOnly"> & WithOpenEventsProps>) =>
|
|
37
|
+
context: unknown;
|
|
38
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P & import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & Omit<EventHandlers, "aria-readonly" | "readOnly"> & WithOpenEventsProps>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
39
39
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
40
|
-
readonly props: Readonly<P & import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & Omit<EventHandlers, "aria-readonly" | "readOnly"> & WithOpenEventsProps
|
|
41
|
-
children?: import("react").ReactNode;
|
|
42
|
-
}>;
|
|
40
|
+
readonly props: Readonly<P & import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & Omit<EventHandlers, "aria-readonly" | "readOnly"> & WithOpenEventsProps>;
|
|
43
41
|
state: Readonly<{}>;
|
|
44
42
|
refs: {
|
|
45
43
|
[key: string]: import("react").ReactInstance;
|
|
@@ -48,7 +46,7 @@ declare const withOpenEvents: <P extends object>(WithOpenEventsInputComponent: C
|
|
|
48
46
|
shouldComponentUpdate?(nextProps: Readonly<P & import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & Omit<EventHandlers, "aria-readonly" | "readOnly"> & WithOpenEventsProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
49
47
|
componentWillUnmount?(): void;
|
|
50
48
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
51
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<P & import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & Omit<EventHandlers, "aria-readonly" | "readOnly"> & WithOpenEventsProps>, prevState: Readonly<{}>): any;
|
|
49
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<P & import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & Omit<EventHandlers, "aria-readonly" | "readOnly"> & WithOpenEventsProps>, prevState: Readonly<{}>): any | null;
|
|
52
50
|
componentDidUpdate?(prevProps: Readonly<P & import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & Omit<EventHandlers, "aria-readonly" | "readOnly"> & WithOpenEventsProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
53
51
|
componentWillMount?(): void;
|
|
54
52
|
UNSAFE_componentWillMount?(): void;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const VARIANT: {
|
|
3
2
|
onLight: string;
|
|
4
3
|
onDark: string;
|
|
@@ -19,5 +18,5 @@ export type Props = {
|
|
|
19
18
|
title?: string;
|
|
20
19
|
variant?: (typeof VARIANT)[keyof typeof VARIANT];
|
|
21
20
|
};
|
|
22
|
-
declare const BpkInsetBanner: ({ accessibilityLabel, backgroundColor, body, callToAction, logo, subheadline, title, variant, }: Props) => JSX.Element;
|
|
21
|
+
declare const BpkInsetBanner: ({ accessibilityLabel, backgroundColor, body, callToAction, logo, subheadline, title, variant, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
23
22
|
export default BpkInsetBanner;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export type Props = {
|
|
3
2
|
/** the number of dot stops to display */
|
|
4
3
|
stops?: number;
|
|
5
4
|
[rest: string]: any;
|
|
6
5
|
};
|
|
7
|
-
declare const BpkJourneyArrow: ({ stops, ...rest }: Props) => JSX.Element;
|
|
6
|
+
declare const BpkJourneyArrow: ({ stops, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export default BpkJourneyArrow;
|
|
@@ -25,7 +25,7 @@ type LoadingProps = {
|
|
|
25
25
|
iconLoading?: ReactElement<any>;
|
|
26
26
|
};
|
|
27
27
|
declare const BpkLoadingButton: {
|
|
28
|
-
(props: LoadingProps): JSX.Element;
|
|
28
|
+
(props: LoadingProps): import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
propTypes: {
|
|
30
30
|
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
31
31
|
className: PropTypes.Requireable<string>;
|
|
@@ -6,7 +6,7 @@ type Props = {
|
|
|
6
6
|
position: LatLong;
|
|
7
7
|
};
|
|
8
8
|
declare const BpkBasicMapMarker: {
|
|
9
|
-
(props: Props): JSX.Element;
|
|
9
|
+
(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
propTypes: {
|
|
11
11
|
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
12
12
|
position: any;
|
|
@@ -20,5 +20,5 @@ export type Props = Partial<ModalDialogProps> & {
|
|
|
20
20
|
*/
|
|
21
21
|
getApplicationElement: () => HTMLElement | null;
|
|
22
22
|
};
|
|
23
|
-
declare const BpkModal: ({ accessoryView, className, closeLabel, closeOnEscPressed, closeOnScrimClick, closeText, contentClassName, dialogRef, fullScreen, fullScreenOnMobile, isIphone, isOpen, modalStyle, onClose, padded, renderTarget, showHeader, title, wide, ...rest }: Props) => JSX.Element;
|
|
23
|
+
declare const BpkModal: ({ accessoryView, className, closeLabel, closeOnEscPressed, closeOnScrimClick, closeText, contentClassName, dialogRef, fullScreen, fullScreenOnMobile, isIphone, isOpen, modalStyle, onClose, padded, renderTarget, showHeader, title, wide, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
export default BpkModal;
|
|
@@ -26,5 +26,5 @@ export declare const MODAL_STYLING: {
|
|
|
26
26
|
surfaceContrast: string;
|
|
27
27
|
};
|
|
28
28
|
export type ModalStyle = (typeof MODAL_STYLING)[keyof typeof MODAL_STYLING];
|
|
29
|
-
declare const BpkModalInner: ({ accessoryView, children, className, closeLabel, closeText, contentClassName, dialogRef, fullScreen, fullScreenOnMobile, id, isIphone, modalStyle, onClose, padded, showHeader, title, wide, }: Props) => JSX.Element;
|
|
29
|
+
declare const BpkModalInner: ({ accessoryView, children, className, closeLabel, closeText, contentClassName, dialogRef, fullScreen, fullScreenOnMobile, id, isIphone, modalStyle, onClose, padded, showHeader, title, wide, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
30
30
|
export default BpkModalInner;
|
|
@@ -17,5 +17,5 @@ export type Props = {
|
|
|
17
17
|
barStyle?: BarStyle;
|
|
18
18
|
[rest: string]: any;
|
|
19
19
|
};
|
|
20
|
-
declare const BpkNavigationBar: (props: Props) => JSX.Element;
|
|
20
|
+
declare const BpkNavigationBar: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
export default BpkNavigationBar;
|
|
@@ -8,5 +8,5 @@ export interface Props extends ComponentProps<BpkButtonLink> {
|
|
|
8
8
|
barStyle?: BarStyle;
|
|
9
9
|
[rest: string]: any;
|
|
10
10
|
}
|
|
11
|
-
declare const BpkNavigationBarButtonLink: ({ barStyle, children, className, ...rest }: Props) => JSX.Element;
|
|
11
|
+
declare const BpkNavigationBarButtonLink: ({ barStyle, children, className, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export default BpkNavigationBarButtonLink;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Backpack - Skyscanner's Design System
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2016 Skyscanner Ltd
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
.bpk-navigation-bar-button-link{color:#161616;color:var(--bpk-navigation-bar-button-link-color, rgb(22, 22, 22))}.bpk-no-touch-support .bpk-navigation-bar-button-link:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-navigation-bar-button-link-hover-color, rgb(22, 22, 22))}:global(.bpk-no-touch-support) .bpk-navigation-bar-button-link:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-navigation-bar-button-link-hover-color, rgb(22, 22, 22))}.bpk-navigation-bar-button-link:active{color:#161616;color:var(--bpk-navigation-bar-button-link-active-color, rgb(22, 22, 22))}.bpk-navigation-bar-button-link:visited{color:#161616;color:var(--bpk-navigation-bar-button-link-visited-color, rgb(22, 22, 22))}.bpk-navigation-bar-button-link--on-dark{color:#fff}.bpk-no-touch-support .bpk-navigation-bar-button-link--on-dark:hover:not(:active):not(:disabled){color:#fff}:global(.bpk-no-touch-support) .bpk-navigation-bar-button-link--on-dark:hover:not(:active):not(:disabled){color:#fff}.bpk-navigation-bar-button-link--on-dark:active{color:#fff}.bpk-navigation-bar-button-link--on-dark:visited{color:#fff}
|
|
@@ -9,5 +9,5 @@ export type Props = {
|
|
|
9
9
|
children?: ReactNode;
|
|
10
10
|
[rest: string]: any;
|
|
11
11
|
};
|
|
12
|
-
declare const BpkNavigationBarIconButton: ({ barStyle, className, icon, ...rest }: Props) => JSX.Element;
|
|
12
|
+
declare const BpkNavigationBarIconButton: ({ barStyle, className, icon, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export default BpkNavigationBarIconButton;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type CommonProps } from './common-types';
|
|
3
2
|
type Props = CommonProps & {
|
|
4
3
|
inputClassName?: string | null;
|
|
@@ -23,5 +22,5 @@ type Props = CommonProps & {
|
|
|
23
22
|
*/
|
|
24
23
|
compareValues: (arg0: any, arg1: any) => number;
|
|
25
24
|
};
|
|
26
|
-
declare const BpkConfigurableNudger: ({ buttonType, className, compareValues, decreaseButtonLabel, decrementValue, formatValue, id, increaseButtonLabel, incrementValue, inputClassName, max, min, name, onChange, value, ...rest }: Props) => JSX.Element;
|
|
25
|
+
declare const BpkConfigurableNudger: ({ buttonType, className, compareValues, decreaseButtonLabel, decrementValue, formatValue, id, increaseButtonLabel, incrementValue, inputClassName, max, min, name, onChange, value, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
27
26
|
export default BpkConfigurableNudger;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type CommonProps } from './common-types';
|
|
3
|
-
declare const BpkNudger: ({ buttonType, className, icon, id, subtitle, title, ...rest }: CommonProps) => JSX.Element;
|
|
2
|
+
declare const BpkNudger: ({ buttonType, className, icon, id, subtitle, title, ...rest }: CommonProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default BpkNudger;
|
|
@@ -30,5 +30,5 @@ export type Props = BpkOverlayProps & ComponentProps<'div'> & {
|
|
|
30
30
|
overlayType?: OverlayType;
|
|
31
31
|
foregroundContent?: ReactNode;
|
|
32
32
|
};
|
|
33
|
-
declare const BpkOverlay: (props: Props) => JSX.Element;
|
|
33
|
+
declare const BpkOverlay: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
34
34
|
export default BpkOverlay;
|
|
@@ -33,5 +33,5 @@ export type Props = CloseButtonProps & {
|
|
|
33
33
|
onAction?: () => void;
|
|
34
34
|
renderTarget?: () => HTMLElement | HTMLElement | null;
|
|
35
35
|
};
|
|
36
|
-
declare const BpkPopover: ({ actionText, children, className, closeButtonIcon, closeButtonLabel, closeButtonProps, closeButtonText, id, isOpen, label, labelAsTitle, onAction, onClose, padded, placement, renderTarget, showArrow, target, ...rest }: Props) => JSX.Element;
|
|
36
|
+
declare const BpkPopover: ({ actionText, children, className, closeButtonIcon, closeButtonLabel, closeButtonProps, closeButtonText, id, isOpen, label, labelAsTitle, onAction, onClose, padded, placement, renderTarget, showArrow, target, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
37
37
|
export default BpkPopover;
|
|
@@ -13,7 +13,7 @@ type Props = {
|
|
|
13
13
|
value: string | number;
|
|
14
14
|
};
|
|
15
15
|
declare const BpkRating: {
|
|
16
|
-
(props: Props): JSX.Element;
|
|
16
|
+
(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
propTypes: {
|
|
18
18
|
ariaLabel: PropTypes.Validator<string>;
|
|
19
19
|
value: PropTypes.Validator<NonNullable<NonNullable<string | number | null | undefined>>>;
|
|
@@ -10,6 +10,6 @@ declare class BpkRtlToggle extends Component<Props, State> {
|
|
|
10
10
|
componentWillUnmount(): void;
|
|
11
11
|
handleKeyDown: (e: KeyboardEvent) => void;
|
|
12
12
|
toggleRtl: (e: InteractionEvents) => void;
|
|
13
|
-
render(): JSX.Element;
|
|
13
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
}
|
|
15
15
|
export default BpkRtlToggle;
|
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
import type { ComponentType } from 'react';
|
|
2
2
|
declare const updateOnDirectionChange: (EnhancedComponent: ComponentType<any> | string) => {
|
|
3
|
-
new (props: {}
|
|
3
|
+
new (props: {}): {
|
|
4
4
|
componentDidMount(): void;
|
|
5
5
|
componentWillUnmount(): void;
|
|
6
6
|
onDirectionChange: () => void;
|
|
7
|
-
render(): JSX.Element;
|
|
8
|
-
context:
|
|
9
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) =>
|
|
7
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
context: unknown;
|
|
9
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
10
10
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
11
|
-
readonly props: Readonly<{}
|
|
12
|
-
children?: import("react").ReactNode;
|
|
13
|
-
}>;
|
|
11
|
+
readonly props: Readonly<{}>;
|
|
14
12
|
state: Readonly<{}>;
|
|
15
13
|
refs: {
|
|
16
14
|
[key: string]: import("react").ReactInstance;
|
|
17
15
|
};
|
|
18
16
|
shouldComponentUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
19
17
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
20
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any;
|
|
18
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any | null;
|
|
21
19
|
componentDidUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
22
20
|
componentWillMount?(): void;
|
|
23
21
|
UNSAFE_componentWillMount?(): void;
|
|
@@ -30,20 +28,18 @@ declare const updateOnDirectionChange: (EnhancedComponent: ComponentType<any> |
|
|
|
30
28
|
componentDidMount(): void;
|
|
31
29
|
componentWillUnmount(): void;
|
|
32
30
|
onDirectionChange: () => void;
|
|
33
|
-
render(): JSX.Element;
|
|
34
|
-
context:
|
|
35
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) =>
|
|
31
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
context: unknown;
|
|
33
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
36
34
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
37
|
-
readonly props: Readonly<{}
|
|
38
|
-
children?: import("react").ReactNode;
|
|
39
|
-
}>;
|
|
35
|
+
readonly props: Readonly<{}>;
|
|
40
36
|
state: Readonly<{}>;
|
|
41
37
|
refs: {
|
|
42
38
|
[key: string]: import("react").ReactInstance;
|
|
43
39
|
};
|
|
44
40
|
shouldComponentUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
45
41
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
46
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any;
|
|
42
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any | null;
|
|
47
43
|
componentDidUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
48
44
|
componentWillMount?(): void;
|
|
49
45
|
UNSAFE_componentWillMount?(): void;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const _default: {
|
|
3
2
|
new (props: Omit<import("../../bpk-component-calendar/src/composeCalendar").Props & import("../../bpk-component-calendar/src/BpkCalendarContainer").Props, keyof {
|
|
4
3
|
onDateClick: ((date: Date) => void) | null;
|
|
@@ -28,8 +27,8 @@ declare const _default: {
|
|
|
28
27
|
source: string;
|
|
29
28
|
}) => void;
|
|
30
29
|
handleDateKeyDown: (event: KeyboardEvent) => void;
|
|
31
|
-
render(): JSX.Element;
|
|
32
|
-
context:
|
|
30
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
context: unknown;
|
|
33
32
|
setState<K extends keyof {
|
|
34
33
|
preventKeyboardFocus: boolean;
|
|
35
34
|
focusedDate: Date;
|
|
@@ -47,13 +46,13 @@ declare const _default: {
|
|
|
47
46
|
maxDate: Date;
|
|
48
47
|
}> & {
|
|
49
48
|
[rest: string]: any;
|
|
50
|
-
}>) => {
|
|
49
|
+
}>) => Pick<{
|
|
51
50
|
preventKeyboardFocus: boolean;
|
|
52
51
|
focusedDate: Date;
|
|
53
|
-
} |
|
|
52
|
+
}, K> | {
|
|
54
53
|
preventKeyboardFocus: boolean;
|
|
55
54
|
focusedDate: Date;
|
|
56
|
-
}
|
|
55
|
+
} | null) | Pick<{
|
|
57
56
|
preventKeyboardFocus: boolean;
|
|
58
57
|
focusedDate: Date;
|
|
59
58
|
}, K> | null, callback?: (() => void) | undefined): void;
|
|
@@ -66,8 +65,6 @@ declare const _default: {
|
|
|
66
65
|
maxDate: Date;
|
|
67
66
|
}> & {
|
|
68
67
|
[rest: string]: any;
|
|
69
|
-
}> & Readonly<{
|
|
70
|
-
children?: import("react").ReactNode;
|
|
71
68
|
}>;
|
|
72
69
|
state: Readonly<{
|
|
73
70
|
preventKeyboardFocus: boolean;
|
|
@@ -102,7 +99,7 @@ declare const _default: {
|
|
|
102
99
|
}>, prevState: Readonly<{
|
|
103
100
|
preventKeyboardFocus: boolean;
|
|
104
101
|
focusedDate: Date;
|
|
105
|
-
}>): any;
|
|
102
|
+
}>): any | null;
|
|
106
103
|
componentDidUpdate?(prevProps: Readonly<Omit<import("../../bpk-component-calendar/src/composeCalendar").Props & import("../../bpk-component-calendar/src/BpkCalendarContainer").Props, keyof {
|
|
107
104
|
onDateClick: ((date: Date) => void) | null;
|
|
108
105
|
onDateKeyDown: ((event: KeyboardEvent) => void) | null;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { BpkCalendarDateProps } from '../../bpk-component-calendar';
|
|
3
2
|
type Props = Partial<BpkCalendarDateProps> & {
|
|
4
3
|
date: Date;
|
|
5
4
|
isOutside?: boolean;
|
|
6
5
|
[rest: string]: any;
|
|
7
6
|
};
|
|
8
|
-
declare const BpkScrollableCalendarDate: ({ isOutside, ...rest }: Props) => JSX.Element | null;
|
|
7
|
+
declare const BpkScrollableCalendarDate: ({ isOutside, ...rest }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
8
|
export default BpkScrollableCalendarDate;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { ElementType } from 'react';
|
|
1
|
+
import type { ElementType, ReactNode } from 'react';
|
|
2
2
|
import type { BpkCalendarGridProps } from '../../bpk-component-calendar';
|
|
3
3
|
type Props = Partial<BpkCalendarGridProps> & {
|
|
4
4
|
DateComponent: ElementType;
|
|
5
5
|
month: Date;
|
|
6
6
|
formatDateFull: (date: Date) => Date | string;
|
|
7
7
|
weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
8
|
-
formatMonth: (date: Date) =>
|
|
8
|
+
formatMonth: (date: Date) => ReactNode | string;
|
|
9
9
|
};
|
|
10
|
-
declare const BpkScrollableCalendarGrid: ({ className, formatMonth, ignoreOutsideDate, month, ...rest }: Props) => JSX.Element;
|
|
10
|
+
declare const BpkScrollableCalendarGrid: ({ className, formatMonth, ignoreOutsideDate, month, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export default BpkScrollableCalendarGrid;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ElementType } from 'react';
|
|
1
|
+
import type { ElementType, ReactNode } from 'react';
|
|
2
2
|
import type { BpkCalendarGridProps, SelectionConfiguration } from '../../bpk-component-calendar';
|
|
3
3
|
type Props = Partial<BpkCalendarGridProps> & {
|
|
4
4
|
minDate: Date;
|
|
@@ -7,7 +7,7 @@ type Props = Partial<BpkCalendarGridProps> & {
|
|
|
7
7
|
formatDateFull: (date: Date) => Date | string;
|
|
8
8
|
month: Date;
|
|
9
9
|
weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
10
|
-
formatMonth: (date: Date) =>
|
|
10
|
+
formatMonth: (date: Date) => ReactNode | string;
|
|
11
11
|
focusedDate?: Date | null;
|
|
12
12
|
selectionConfiguration?: SelectionConfiguration;
|
|
13
13
|
className?: string | null;
|
|
@@ -16,5 +16,5 @@ type Props = Partial<BpkCalendarGridProps> & {
|
|
|
16
16
|
*/
|
|
17
17
|
customRowHeight?: number;
|
|
18
18
|
};
|
|
19
|
-
declare const BpkScrollableCalendarGridList: (props: Props) => JSX.Element;
|
|
19
|
+
declare const BpkScrollableCalendarGridList: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export default BpkScrollableCalendarGridList;
|
|
@@ -10,5 +10,5 @@ type Props = {
|
|
|
10
10
|
button?: ReactNode;
|
|
11
11
|
type?: SectionType;
|
|
12
12
|
};
|
|
13
|
-
declare const BpkSectionHeader: ({ button, description, title, type, }: Props) => JSX.Element;
|
|
13
|
+
declare const BpkSectionHeader: ({ button, description, title, type, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export default BpkSectionHeader;
|
|
@@ -13,5 +13,5 @@ export type Props = {
|
|
|
13
13
|
selectedIndex: number;
|
|
14
14
|
shadow?: boolean;
|
|
15
15
|
};
|
|
16
|
-
declare const BpkSegmentedControl: ({ buttonContents, onItemClick, selectedIndex, shadow, type, }: Props) => JSX.Element;
|
|
16
|
+
declare const BpkSegmentedControl: ({ buttonContents, onItemClick, selectedIndex, shadow, type, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export default BpkSegmentedControl;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { CUSTOM_SIZE_TYPE } from './common-types';
|
|
3
2
|
type Props = {
|
|
4
3
|
skeletonStyle: string;
|
|
5
4
|
styleObj?: CUSTOM_SIZE_TYPE;
|
|
6
5
|
};
|
|
7
|
-
declare const BpkBaseSkeleton: ({ skeletonStyle, styleObj, }: Props) => JSX.Element;
|
|
6
|
+
declare const BpkBaseSkeleton: ({ skeletonStyle, styleObj, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export default BpkBaseSkeleton;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { ComponentProps } from './common-types';
|
|
3
|
-
declare const BpkSkeleton: (props: ComponentProps) => JSX.Element;
|
|
2
|
+
declare const BpkSkeleton: (props: ComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default BpkSkeleton;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export type Props = {
|
|
3
2
|
max: number;
|
|
4
3
|
min: number;
|
|
@@ -11,5 +10,5 @@ export type Props = {
|
|
|
11
10
|
ariaValuetext?: string[];
|
|
12
11
|
[rest: string]: any;
|
|
13
12
|
};
|
|
14
|
-
declare const BpkSlider: ({ ariaLabel, ariaValuetext, max, min, minDistance, onAfterChange, onChange, step, value, ...rest }: Props) => JSX.Element;
|
|
13
|
+
declare const BpkSlider: ({ ariaLabel, ariaValuetext, max, min, minDistance, onAfterChange, onChange, step, value, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
15
14
|
export default BpkSlider;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import PropTypes from 'prop-types';
|
|
3
2
|
import type { SpinnerTypes } from './spinnerTypes';
|
|
4
3
|
type Props = {
|
|
@@ -6,7 +5,7 @@ type Props = {
|
|
|
6
5
|
className?: string;
|
|
7
6
|
};
|
|
8
7
|
declare const BpkExtraLargeSpinner: {
|
|
9
|
-
(props: Props): JSX.Element;
|
|
8
|
+
(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
propTypes: {
|
|
11
10
|
type: PropTypes.Requireable<string>;
|
|
12
11
|
className: PropTypes.Requireable<string>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import PropTypes from 'prop-types';
|
|
3
2
|
import type { SpinnerTypes } from './spinnerTypes';
|
|
4
3
|
type Props = {
|
|
@@ -7,7 +6,7 @@ type Props = {
|
|
|
7
6
|
alignToButton: boolean;
|
|
8
7
|
};
|
|
9
8
|
declare const BpkLargeSpinner: {
|
|
10
|
-
(props: Props): JSX.Element;
|
|
9
|
+
(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
propTypes: {
|
|
12
11
|
type: PropTypes.Requireable<string>;
|
|
13
12
|
className: PropTypes.Requireable<string>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import PropTypes from 'prop-types';
|
|
3
2
|
import type { SpinnerTypes } from './spinnerTypes';
|
|
4
3
|
type Props = {
|
|
@@ -7,7 +6,7 @@ type Props = {
|
|
|
7
6
|
alignToButton: boolean;
|
|
8
7
|
};
|
|
9
8
|
declare const BpkSpinner: {
|
|
10
|
-
(props: Props): JSX.Element;
|
|
9
|
+
(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
propTypes: {
|
|
12
11
|
type: PropTypes.Requireable<string>;
|
|
13
12
|
className: PropTypes.Requireable<string>;
|