@skyscanner/backpack-web 34.15.0 → 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-accordion/src/BpkAccordionItem.js +11 -14
- package/bpk-component-accordion/src/BpkAccordionItem.module.css +1 -1
- 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
|
@@ -36,6 +36,7 @@ const BpkAccordionItem = props => {
|
|
|
36
36
|
const titleTextClassNames = [getClassName('bpk-accordion__title-text')];
|
|
37
37
|
const titleClassNames = [getClassName('bpk-accordion__title')];
|
|
38
38
|
const contentClassNames = [getClassName('bpk-accordion__content-container')];
|
|
39
|
+
const contentInnerClassNames = [getClassName('bpk-accordion__content-inner-container')];
|
|
39
40
|
const {
|
|
40
41
|
children,
|
|
41
42
|
expanded,
|
|
@@ -53,33 +54,29 @@ const BpkAccordionItem = props => {
|
|
|
53
54
|
// it, but the benefit of a better container api versus this was worth it
|
|
54
55
|
// $FlowFixMe[prop-missing] - see above
|
|
55
56
|
delete rest.initiallyExpanded;
|
|
57
|
+
if (divider) {
|
|
58
|
+
contentInnerClassNames.push(getClassName('bpk-accordion__content-inner-container--with-divider'));
|
|
59
|
+
if (onDark) {
|
|
60
|
+
itemClassNames.push(getClassName('bpk-accordion__item--with-divider-on-dark'));
|
|
61
|
+
} else {
|
|
62
|
+
itemClassNames.push(getClassName('bpk-accordion__item--with-divider'));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
56
65
|
if (onDark) {
|
|
57
66
|
itemClassNames.push(getClassName('bpk-accordion__item--on-dark'));
|
|
58
67
|
}
|
|
59
68
|
if (expanded && !onDark) {
|
|
60
69
|
iconClassNames.push(getClassName('bpk-accordion__item-expand-icon--flipped'));
|
|
61
|
-
if (divider) {
|
|
62
|
-
contentClassNames.push(getClassName('bpk-accordion__content-container--expanded'));
|
|
63
|
-
}
|
|
64
70
|
}
|
|
65
71
|
if (expanded && onDark) {
|
|
66
72
|
iconClassNames.push(getClassName('bpk-accordion__item-expand-icon--flipped'));
|
|
67
73
|
iconClassNames.push(getClassName('bpk-accordion__item-expand-icon--on-dark'));
|
|
68
|
-
if (divider) {
|
|
69
|
-
contentClassNames.push(getClassName('bpk-accordion__content-container--expanded-on-dark'));
|
|
70
|
-
}
|
|
71
74
|
titleTextClassNames.push(getClassName('bpk-accordion__title-text--on-dark'));
|
|
72
75
|
}
|
|
73
76
|
if (!expanded && onDark) {
|
|
74
77
|
iconClassNames.push(getClassName('bpk-accordion__item-expand-icon--on-dark'));
|
|
75
|
-
if (divider) {
|
|
76
|
-
titleClassNames.push(getClassName('bpk-accordion__title--collapsed-on-dark'));
|
|
77
|
-
}
|
|
78
78
|
titleTextClassNames.push(getClassName('bpk-accordion__title-text--on-dark'));
|
|
79
79
|
}
|
|
80
|
-
if (!expanded && !onDark && divider) {
|
|
81
|
-
titleClassNames.push(getClassName('bpk-accordion__title--collapsed'));
|
|
82
|
-
}
|
|
83
80
|
const contentId = `${id}_content`;
|
|
84
81
|
const clonedIcon = icon ? /*#__PURE__*/cloneElement(icon, {
|
|
85
82
|
className: getClassName('bpk-accordion__leading-icon')
|
|
@@ -89,7 +86,7 @@ const BpkAccordionItem = props => {
|
|
|
89
86
|
// $FlowFixMe[cannot-spread-inexact] - inexact rest. See decisions/flowfixme.md
|
|
90
87
|
_jsxs("div", {
|
|
91
88
|
id: id,
|
|
92
|
-
className:
|
|
89
|
+
className: itemClassNames.join(' '),
|
|
93
90
|
...rest,
|
|
94
91
|
children: [/*#__PURE__*/_jsx("div", {
|
|
95
92
|
className: titleClassNames.join(' '),
|
|
@@ -121,7 +118,7 @@ const BpkAccordionItem = props => {
|
|
|
121
118
|
duration: 200,
|
|
122
119
|
height: expanded ? 'auto' : 0,
|
|
123
120
|
children: /*#__PURE__*/_jsx("div", {
|
|
124
|
-
className:
|
|
121
|
+
className: contentInnerClassNames.join(' '),
|
|
125
122
|
children: children
|
|
126
123
|
})
|
|
127
124
|
})
|
|
@@ -15,4 +15,4 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
.bpk-accordion__item{box-shadow:0 -1px 0 0 #c1c7cf inset}.bpk-accordion__item-on-dark{box-shadow:0 -1px 0 0 rgba(255,255,255,.5) inset}.bpk-accordion__title{height:auto}.bpk-accordion__toggle-button{width:100%;padding:0;border:0;background-color:rgba(0,0,0,0);color:#161616;text-align:left;cursor:pointer;appearance:none}html[dir=rtl] .bpk-accordion__toggle-button{text-align:right}.bpk-accordion__flex-container{display:inline-flex;width:100%;margin:1rem 0;flex-direction:row}.bpk-accordion__title-text{flex-grow:1}.bpk-accordion__title-text--on-dark{color:#fff}.bpk-accordion__icon-wrapper{display:inline-block}.bpk-accordion__leading-icon{margin-left:0;margin-right:.5rem}html[dir=rtl] .bpk-accordion__leading-icon{margin-left:.5rem;margin-right:0}.bpk-accordion__item-expand-icon{fill:#161616}.bpk-accordion__item-expand-icon--flipped{transform:scaleY(-1)}.bpk-accordion__item-expand-icon--on-dark{fill:#fff}.bpk-accordion__content-container{margin:0}.bpk-accordion__content-inner-container{padding-bottom:1rem}
|
|
18
|
+
.bpk-accordion__item--with-divider{box-shadow:0 -1px 0 0 #c1c7cf inset}.bpk-accordion__item--with-divider-on-dark{box-shadow:0 -1px 0 0 rgba(255,255,255,.5) inset}.bpk-accordion__title{height:auto}.bpk-accordion__toggle-button{width:100%;padding:0;border:0;background-color:rgba(0,0,0,0);color:#161616;text-align:left;cursor:pointer;appearance:none}html[dir=rtl] .bpk-accordion__toggle-button{text-align:right}.bpk-accordion__flex-container{display:inline-flex;width:100%;margin:1rem 0;flex-direction:row}.bpk-accordion__title-text{flex-grow:1}.bpk-accordion__title-text--on-dark{color:#fff}.bpk-accordion__icon-wrapper{display:inline-block}.bpk-accordion__leading-icon{margin-left:0;margin-right:.5rem}html[dir=rtl] .bpk-accordion__leading-icon{margin-left:.5rem;margin-right:0}.bpk-accordion__item-expand-icon{fill:#161616}.bpk-accordion__item-expand-icon--flipped{transform:scaleY(-1)}.bpk-accordion__item-expand-icon--on-dark{fill:#fff}.bpk-accordion__content-container{margin:0}.bpk-accordion__content-inner-container--with-divider{padding-bottom:1rem}
|
|
@@ -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) => JSX.Element;
|
|
15
|
+
declare const BpkAriaLive: ({ className, politenessSetting, visible, ...rest }: Props) => import("react/jsx-runtime").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) => JSX.Element;
|
|
21
|
+
declare const BpkBadge: ({ centered, className, docked, type, ...rest }: Props) => import("react/jsx-runtime").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(): JSX.Element | null;
|
|
30
|
+
render(): import("react/jsx-runtime").JSX.Element | null;
|
|
31
31
|
}
|
|
32
32
|
export default AnimateAndFade;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { CommonProps } from './common-types';
|
|
3
2
|
/**
|
|
4
3
|
* @deprecated use bpk-component-info-banner instead
|
|
5
4
|
* @returns {Component} a banner alert component
|
|
6
5
|
*/
|
|
7
|
-
declare const BpkBannerAlert: ({ animateOnEnter, animateOnLeave, icon, show, ...rest }: CommonProps) => JSX.Element;
|
|
6
|
+
declare const BpkBannerAlert: ({ animateOnEnter, animateOnLeave, icon, show, ...rest }: CommonProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export default BpkBannerAlert;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { CommonProps, OnDismissHandler } from './common-types';
|
|
3
2
|
export type Props = CommonProps & {
|
|
4
3
|
dismissButtonLabel: string;
|
|
5
4
|
onDismiss?: OnDismissHandler;
|
|
6
5
|
};
|
|
7
|
-
declare const BpkBannerAlertDismissable: ({ onDismiss, ...rest }: Props) => JSX.Element;
|
|
6
|
+
declare const BpkBannerAlertDismissable: ({ onDismiss, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
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) => JSX.Element;
|
|
9
|
+
declare const BpkBannerAlertExpandable: ({ children, expanded, onExpandToggle, ...rest }: Props) => import("react/jsx-runtime").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) => JSX.Element;
|
|
17
|
+
declare const BpkBannerAlertInner: ({ animateOnEnter, animateOnLeave, bannerClassName, children, configuration, dismissButtonLabel, expanded, icon, message, onDismiss, onExpandToggle, show, toggleButtonLabel, type, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export default BpkBannerAlertInner;
|
|
@@ -1,81 +1,73 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import type { ComponentType } from 'react';
|
|
2
|
+
import type { Props as BpkBannerAlertDismissableProps } from './BpkBannerAlertDismissable';
|
|
3
|
+
import type { Props as BpkBannerAlertExpandableProps } from './BpkBannerAlertExpandable';
|
|
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
|
-
}>>(WrappedComponent: ComponentType<P>) => {
|
|
8
|
+
type BpkBannerAlertProps = Partial<BpkBannerAlertDismissableProps & BpkBannerAlertExpandableProps>;
|
|
9
|
+
declare const withBannerAlertState: <P extends BpkBannerAlertProps>(WrappedComponent: ComponentType<P>) => {
|
|
16
10
|
new (props: P & WithBannerAlertStateProps): {
|
|
17
|
-
hideIntervalId?:
|
|
11
|
+
hideIntervalId?: ReturnType<typeof setTimeout> | null;
|
|
18
12
|
componentDidMount(): void;
|
|
19
13
|
componentWillUnmount(): void;
|
|
20
14
|
onExpandToggle: () => void;
|
|
21
15
|
onDismiss: () => void;
|
|
22
16
|
onHide: () => void;
|
|
23
|
-
render(): JSX.Element;
|
|
24
|
-
context:
|
|
17
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
context: unknown;
|
|
25
19
|
setState<K extends keyof {
|
|
26
|
-
expanded?: boolean
|
|
27
|
-
show?: boolean
|
|
20
|
+
expanded?: boolean;
|
|
21
|
+
show?: boolean;
|
|
28
22
|
}>(state: {
|
|
29
|
-
expanded?: boolean
|
|
30
|
-
show?: boolean
|
|
23
|
+
expanded?: boolean;
|
|
24
|
+
show?: boolean;
|
|
31
25
|
} | ((prevState: Readonly<{
|
|
32
|
-
expanded?: boolean
|
|
33
|
-
show?: boolean
|
|
34
|
-
}>, props: Readonly<P & WithBannerAlertStateProps>) => {
|
|
35
|
-
expanded?: boolean
|
|
36
|
-
show?: boolean
|
|
37
|
-
} |
|
|
38
|
-
expanded?: boolean
|
|
39
|
-
show?: boolean
|
|
40
|
-
}
|
|
41
|
-
expanded?: boolean
|
|
42
|
-
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;
|
|
43
37
|
}, K> | null, callback?: (() => void) | undefined): void;
|
|
44
38
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
45
|
-
readonly props: Readonly<P & WithBannerAlertStateProps
|
|
46
|
-
children?: import("react").ReactNode;
|
|
47
|
-
}>;
|
|
39
|
+
readonly props: Readonly<P & WithBannerAlertStateProps>;
|
|
48
40
|
state: Readonly<{
|
|
49
|
-
expanded?: boolean
|
|
50
|
-
show?: boolean
|
|
41
|
+
expanded?: boolean;
|
|
42
|
+
show?: boolean;
|
|
51
43
|
}>;
|
|
52
44
|
refs: {
|
|
53
45
|
[key: string]: import("react").ReactInstance;
|
|
54
46
|
};
|
|
55
47
|
shouldComponentUpdate?(nextProps: Readonly<P & WithBannerAlertStateProps>, nextState: Readonly<{
|
|
56
|
-
expanded?: boolean
|
|
57
|
-
show?: boolean
|
|
48
|
+
expanded?: boolean;
|
|
49
|
+
show?: boolean;
|
|
58
50
|
}>, nextContext: any): boolean;
|
|
59
51
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
60
52
|
getSnapshotBeforeUpdate?(prevProps: Readonly<P & WithBannerAlertStateProps>, prevState: Readonly<{
|
|
61
|
-
expanded?: boolean
|
|
62
|
-
show?: boolean
|
|
63
|
-
}>): any;
|
|
53
|
+
expanded?: boolean;
|
|
54
|
+
show?: boolean;
|
|
55
|
+
}>): any | null;
|
|
64
56
|
componentDidUpdate?(prevProps: Readonly<P & WithBannerAlertStateProps>, prevState: Readonly<{
|
|
65
|
-
expanded?: boolean
|
|
66
|
-
show?: boolean
|
|
57
|
+
expanded?: boolean;
|
|
58
|
+
show?: boolean;
|
|
67
59
|
}>, snapshot?: any): void;
|
|
68
60
|
componentWillMount?(): void;
|
|
69
61
|
UNSAFE_componentWillMount?(): void;
|
|
70
62
|
componentWillReceiveProps?(nextProps: Readonly<P & WithBannerAlertStateProps>, nextContext: any): void;
|
|
71
63
|
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P & WithBannerAlertStateProps>, nextContext: any): void;
|
|
72
64
|
componentWillUpdate?(nextProps: Readonly<P & WithBannerAlertStateProps>, nextState: Readonly<{
|
|
73
|
-
expanded?: boolean
|
|
74
|
-
show?: boolean
|
|
65
|
+
expanded?: boolean;
|
|
66
|
+
show?: boolean;
|
|
75
67
|
}>, nextContext: any): void;
|
|
76
68
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<P & WithBannerAlertStateProps>, nextState: Readonly<{
|
|
77
|
-
expanded?: boolean
|
|
78
|
-
show?: boolean
|
|
69
|
+
expanded?: boolean;
|
|
70
|
+
show?: boolean;
|
|
79
71
|
}>, nextContext: any): void;
|
|
80
72
|
};
|
|
81
73
|
displayName: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export type Props = {
|
|
3
2
|
[rest: string]: any;
|
|
4
3
|
};
|
|
5
|
-
declare const BpkBoilerplate: ({ ...rest }: Props) => JSX.Element;
|
|
4
|
+
declare const BpkBoilerplate: ({ ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export default BpkBoilerplate;
|
|
@@ -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) => JSX.Element;
|
|
22
|
+
declare const BpkBottomSheet: ({ actionText, children, closeLabel, closeOnEscPressed, closeOnScrimClick, id, isOpen, onAction, onClose, title, wide, ...ariaProps }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
export default BpkBottomSheet;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type Props } from './src/BpkButton';
|
|
3
|
-
declare const BpkButtonDestructive: (props: Props) => JSX.Element;
|
|
2
|
+
declare const BpkButtonDestructive: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default BpkButtonDestructive;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type Props } from './src/BpkButton';
|
|
3
|
-
declare const BpkButtonFeatured: (props: Props) => JSX.Element;
|
|
2
|
+
declare const BpkButtonFeatured: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default BpkButtonFeatured;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type Props } from './src/BpkButton';
|
|
3
|
-
declare const BpkButtonLinkOnDark: (props: Props) => JSX.Element;
|
|
2
|
+
declare const BpkButtonLinkOnDark: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default BpkButtonLinkOnDark;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type Props } from './src/BpkButton';
|
|
3
|
-
declare const BpkButtonPrimary: (props: Props) => JSX.Element;
|
|
2
|
+
declare const BpkButtonPrimary: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default BpkButtonPrimary;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type Props } from './src/BpkButton';
|
|
3
|
-
declare const BpkButtonPrimaryOnDark: (props: Props) => JSX.Element;
|
|
2
|
+
declare const BpkButtonPrimaryOnDark: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default BpkButtonPrimaryOnDark;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type Props } from './src/BpkButton';
|
|
3
|
-
declare const BpkButtonPrimaryOnLight: (props: Props) => JSX.Element;
|
|
2
|
+
declare const BpkButtonPrimaryOnLight: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default BpkButtonPrimaryOnLight;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type Props } from './src/BpkButton';
|
|
3
|
-
declare const BpkButtonSecondary: (props: Props) => JSX.Element;
|
|
2
|
+
declare const BpkButtonSecondary: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default BpkButtonSecondary;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type Props } from './src/BpkButton';
|
|
3
|
-
declare const BpkButtonSecondaryOnDark: (props: Props) => JSX.Element;
|
|
2
|
+
declare const BpkButtonSecondaryOnDark: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default BpkButtonSecondaryOnDark;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import PropTypes from 'prop-types';
|
|
3
2
|
import { type Props as CommonProps } from './common-types';
|
|
4
3
|
export type Props = CommonProps & {
|
|
@@ -12,7 +11,7 @@ export type Props = CommonProps & {
|
|
|
12
11
|
linkOnDark?: boolean;
|
|
13
12
|
};
|
|
14
13
|
declare const BpkButton: {
|
|
15
|
-
(props: Props): JSX.Element;
|
|
14
|
+
(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
15
|
defaultProps: {
|
|
17
16
|
primaryOnDark: boolean;
|
|
18
17
|
primaryOnLight: boolean;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type Props } from './common-types';
|
|
3
2
|
export declare const BUTTON_TYPES: {
|
|
4
3
|
readonly primary: "primary";
|
|
@@ -14,18 +13,8 @@ export declare const BUTTON_TYPES: {
|
|
|
14
13
|
type ValueOf<T> = T[keyof T];
|
|
15
14
|
declare const BpkButtonBase: {
|
|
16
15
|
(props: Props & {
|
|
17
|
-
type?: ValueOf<
|
|
18
|
-
|
|
19
|
-
readonly primaryOnDark: "primary-on-dark";
|
|
20
|
-
readonly primaryOnLight: "primary-on-light";
|
|
21
|
-
readonly secondary: "secondary";
|
|
22
|
-
readonly secondaryOnDark: "secondary-on-dark";
|
|
23
|
-
readonly destructive: "destructive";
|
|
24
|
-
readonly featured: "featured";
|
|
25
|
-
readonly link: "link";
|
|
26
|
-
readonly linkOnDark: "link-on-dark";
|
|
27
|
-
}> | undefined;
|
|
28
|
-
}): JSX.Element;
|
|
16
|
+
type?: ValueOf<typeof BUTTON_TYPES>;
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
29
18
|
propTypes: {
|
|
30
19
|
children: import("prop-types").Validator<NonNullable<import("prop-types").ReactNodeLike>>;
|
|
31
20
|
href: import("prop-types").Requireable<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-button--destructive{color:#161616;color:var(--bpk-button-secondary-text-color, rgb(22, 22, 22));background-color:#e0e4e9;background-color:var(--bpk-button-secondary-background-color, rgb(224, 228, 233));color:#e70866;color:var(--bpk-button-destructive-text-color, rgb(231, 8, 102));background-color:#e0e4e9;background-color:var(--bpk-button-destructive-background-color, rgb(224, 228, 233))}.bpk-no-touch-support .bpk-button--destructive:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207))}:global(.bpk-no-touch-support) .bpk-button--destructive:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207))}.bpk-button--destructive:active{color:#161616;color:var(--bpk-button-secondary-active-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-secondary-active-background-color, rgb(193, 199, 207))}.bpk-button--destructive:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2)}.bpk-no-touch-support .bpk-button--destructive:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-destructive-hover-text-color, rgb(255, 255, 255));background-color:#e70866;background-color:var(--bpk-button-destructive-hover-background-color, rgb(231, 8, 102))}:global(.bpk-no-touch-support) .bpk-button--destructive:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-destructive-hover-text-color, rgb(255, 255, 255));background-color:#e70866;background-color:var(--bpk-button-destructive-hover-background-color, rgb(231, 8, 102))}.bpk-button--destructive:active{color:#fff;color:var(--bpk-button-destructive-active-text-color, rgb(255, 255, 255));background-color:#e70866;background-color:var(--bpk-button-destructive-active-background-color, rgb(231, 8, 102))}.bpk-button--destructive:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2)}
|
|
@@ -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-button--featured{color:#fff;color:var(--bpk-button-featured-text-color, rgb(255, 255, 255));background-color:#0062e3;background-color:var(--bpk-button-featured-background-color, rgb(0, 98, 227))}.bpk-no-touch-support .bpk-button--featured:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-featured-hover-text-color, rgb(255, 255, 255));background-color:#024daf;background-color:var(--bpk-button-featured-hover-background-color, rgb(2, 77, 175))}:global(.bpk-no-touch-support) .bpk-button--featured:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-featured-hover-text-color, rgb(255, 255, 255));background-color:#024daf;background-color:var(--bpk-button-featured-hover-background-color, rgb(2, 77, 175))}.bpk-button--featured:active{color:#fff;color:var(--bpk-button-featured-active-text-color, rgb(255, 255, 255));background-color:#024daf;background-color:var(--bpk-button-featured-active-background-color, rgb(2, 77, 175))}.bpk-button--featured:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2)}
|
|
@@ -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-button--link{background:none;box-shadow:none;padding:0;border:0;background-color:rgba(0,0,0,0);text-decoration:none;cursor:pointer;appearance:none;color:#0062e3;color:var(--bpk-link-color, rgb(0, 98, 227));padding:.375rem 0;color:#0062e3}.bpk-no-touch-support .bpk-button--link:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, rgb(0, 98, 227))}:global(.bpk-no-touch-support) .bpk-button--link:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, rgb(0, 98, 227))}.bpk-button--link:visited{color:#0062e3;color:var(--bpk-link-visited-color, rgb(0, 98, 227))}.bpk-button--link:active{text-decoration:underline;color:#0062e3;color:var(--bpk-link-active-color, rgb(0, 98, 227))}.bpk-no-touch-support .bpk-button--link:hover:not(:active):not(:disabled){background:none;color:#024daf;text-decoration:none}:global(.bpk-no-touch-support) .bpk-button--link:hover:not(:active):not(:disabled){background:none;color:#024daf;text-decoration:none}.bpk-button--link:active{background:none;color:#024daf;text-decoration:none}.bpk-button--link:disabled{background:none;color:rgba(0,0,0,.2);text-decoration:none}.bpk-button--link-large{padding:.75rem 0}
|
|
@@ -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-button--link-on-dark{background:none;box-shadow:none;padding:0;border:0;background-color:rgba(0,0,0,0);text-decoration:none;cursor:pointer;appearance:none;color:#0062e3;color:var(--bpk-link-color, rgb(0, 98, 227));padding:.375rem 0;color:#0062e3;color:#fff;color:var(--bpk-button-link-on-dark-text-color, rgb(255, 255, 255))}.bpk-no-touch-support .bpk-button--link-on-dark:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, rgb(0, 98, 227))}:global(.bpk-no-touch-support) .bpk-button--link-on-dark:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, rgb(0, 98, 227))}.bpk-button--link-on-dark:visited{color:#0062e3;color:var(--bpk-link-visited-color, rgb(0, 98, 227))}.bpk-button--link-on-dark:active{text-decoration:underline;color:#0062e3;color:var(--bpk-link-active-color, rgb(0, 98, 227))}.bpk-no-touch-support .bpk-button--link-on-dark:hover:not(:active):not(:disabled){background:none;color:#024daf;text-decoration:none}:global(.bpk-no-touch-support) .bpk-button--link-on-dark:hover:not(:active):not(:disabled){background:none;color:#024daf;text-decoration:none}.bpk-button--link-on-dark:active{background:none;color:#024daf;text-decoration:none}.bpk-button--link-on-dark:disabled{background:none;color:rgba(0,0,0,.2);text-decoration:none}.bpk-button--link-on-dark-large{padding:.75rem 0}.bpk-no-touch-support .bpk-button--link-on-dark:hover:not(:active):not(:disabled){color:rgba(255,255,255,.5);color:var(--bpk-button-link-on-dark-hover-text-color, rgba(255, 255, 255, 0.5))}:global(.bpk-no-touch-support) .bpk-button--link-on-dark:hover:not(:active):not(:disabled){color:rgba(255,255,255,.5);color:var(--bpk-button-link-on-dark-hover-text-color, rgba(255, 255, 255, 0.5))}.bpk-button--link-on-dark:active{color:rgba(255,255,255,.5);color:var(--bpk-button-link-on-dark-active-text-color, rgba(255, 255, 255, 0.5))}.bpk-button--link-on-dark:visited{color:#fff;color:var(--bpk-button-link-on-dark-text-color, rgb(255, 255, 255))}.bpk-button--link-on-dark:disabled{color:rgba(255,255,255,.2);color:var(--bpk-button-link-on-dark-disabled-color, rgba(255, 255, 255, 0.2))}
|
|
@@ -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-button--primary-on-dark{color:#161616;color:var(--bpk-button-primary-on-dark-text-color, rgb(22, 22, 22));background-color:#fff;background-color:var(--bpk-button-primary-on-dark-background-color, rgb(255, 255, 255))}.bpk-no-touch-support .bpk-button--primary-on-dark:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-button-primary-on-dark-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-primary-on-dark-hover-background-color, rgb(193, 199, 207))}:global(.bpk-no-touch-support) .bpk-button--primary-on-dark:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-button-primary-on-dark-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-primary-on-dark-hover-background-color, rgb(193, 199, 207))}.bpk-button--primary-on-dark:active{color:#161616;color:var(--bpk-button-primary-on-dark-active-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-primary-on-dark-active-background-color, rgb(193, 199, 207))}.bpk-button--primary-on-dark:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2)}
|
|
@@ -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-button--primary-on-light{color:#fff;color:var(--bpk-button-primary-on-light-text-color, rgb(255, 255, 255));background-color:#05203c;background-color:var(--bpk-button-primary-on-light-background-color, rgb(5, 32, 60))}.bpk-no-touch-support .bpk-button--primary-on-light:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-primary-on-light-hover-text-color, rgb(255, 255, 255));background-color:#154679;background-color:var(--bpk-button-primary-on-light-hover-background-color, rgb(21, 70, 121))}:global(.bpk-no-touch-support) .bpk-button--primary-on-light:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-primary-on-light-hover-text-color, rgb(255, 255, 255));background-color:#154679;background-color:var(--bpk-button-primary-on-light-hover-background-color, rgb(21, 70, 121))}.bpk-button--primary-on-light:active{color:#fff;color:var(--bpk-button-primary-on-light-active-text-color, rgb(255, 255, 255));background-color:#154679;background-color:var(--bpk-button-primary-on-light-active-background-color, rgb(21, 70, 121))}.bpk-button--primary-on-light:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2)}
|
|
@@ -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-button--secondary{color:#161616;color:var(--bpk-button-secondary-text-color, rgb(22, 22, 22));background-color:#e0e4e9;background-color:var(--bpk-button-secondary-background-color, rgb(224, 228, 233))}.bpk-no-touch-support .bpk-button--secondary:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207))}:global(.bpk-no-touch-support) .bpk-button--secondary:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207))}.bpk-button--secondary:active{color:#161616;color:var(--bpk-button-secondary-active-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-secondary-active-background-color, rgb(193, 199, 207))}.bpk-button--secondary:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2)}
|
|
@@ -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-button--secondary-on-dark{color:#fff;color:var(--bpk-button-secondary-on-dark-text-color, rgb(255, 255, 255));background-color:rgba(255,255,255,.1);background-color:var(--bpk-button-secondary-on-dark-background-color, rgba(255, 255, 255, 0.1))}.bpk-no-touch-support .bpk-button--secondary-on-dark:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-secondary-on-dark-hover-text-color, rgb(255, 255, 255));background-color:#010913;background-color:var(--bpk-button-secondary-on-dark-hover-background-color, rgb(1, 9, 19))}:global(.bpk-no-touch-support) .bpk-button--secondary-on-dark:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-secondary-on-dark-hover-text-color, rgb(255, 255, 255));background-color:#010913;background-color:var(--bpk-button-secondary-on-dark-hover-background-color, rgb(1, 9, 19))}.bpk-button--secondary-on-dark:active{color:#fff;color:var(--bpk-button-secondary-on-dark-active-text-color, rgb(255, 255, 255));background-color:#010913;background-color:var(--bpk-button-secondary-on-dark-active-background-color, rgb(1, 9, 19))}.bpk-button--secondary-on-dark:disabled{background-color:#0b121d;color:rgba(255,255,255,.2)}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { Props } from './common-types';
|
|
3
|
-
export declare const BpkButtonV2: ({ blank, children, className, disabled, fullWidth, href, iconOnly, onClick, rel: propRel, size, submit, type, ...rest }: Props) => JSX.Element;
|
|
2
|
+
export declare const BpkButtonV2: ({ blank, children, className, disabled, fullWidth, href, iconOnly, onClick, rel: propRel, size, submit, type, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -55,13 +55,11 @@ declare const withCalendarState: <P extends object>(Calendar: ComponentType<P>)
|
|
|
55
55
|
source: string;
|
|
56
56
|
}) => void;
|
|
57
57
|
handleDateKeyDown: (event: KeyboardEvent) => void;
|
|
58
|
-
render(): JSX.Element;
|
|
59
|
-
context:
|
|
60
|
-
setState<K extends keyof State>(state: State | ((prevState: Readonly<State>, props: Readonly<CalendarProps<P>>) =>
|
|
58
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
context: unknown;
|
|
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
|
|
63
|
-
children?: import("react").ReactNode;
|
|
64
|
-
}>;
|
|
62
|
+
readonly props: Readonly<CalendarProps<P>>;
|
|
65
63
|
state: Readonly<State>;
|
|
66
64
|
refs: {
|
|
67
65
|
[key: string]: import("react").ReactInstance;
|
|
@@ -70,7 +68,7 @@ declare const withCalendarState: <P extends object>(Calendar: ComponentType<P>)
|
|
|
70
68
|
shouldComponentUpdate?(nextProps: Readonly<CalendarProps<P>>, nextState: Readonly<State>, nextContext: any): boolean;
|
|
71
69
|
componentWillUnmount?(): void;
|
|
72
70
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
73
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<CalendarProps<P>>, prevState: Readonly<State>): any;
|
|
71
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<CalendarProps<P>>, prevState: Readonly<State>): any | null;
|
|
74
72
|
componentDidUpdate?(prevProps: Readonly<CalendarProps<P>>, prevState: Readonly<State>, snapshot?: any): void;
|
|
75
73
|
componentWillMount?(): void;
|
|
76
74
|
UNSAFE_componentWillMount?(): void;
|
|
@@ -107,13 +105,11 @@ declare const _default: {
|
|
|
107
105
|
source: string;
|
|
108
106
|
}) => void;
|
|
109
107
|
handleDateKeyDown: (event: KeyboardEvent) => void;
|
|
110
|
-
render(): JSX.Element;
|
|
111
|
-
context:
|
|
112
|
-
setState<K extends keyof State>(state: State | ((prevState: Readonly<State>, props: Readonly<CalendarProps<import("./composeCalendar").Props>>) =>
|
|
108
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
109
|
+
context: unknown;
|
|
110
|
+
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;
|
|
113
111
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
114
|
-
readonly props: Readonly<CalendarProps<import("./composeCalendar").Props
|
|
115
|
-
children?: import("react").ReactNode;
|
|
116
|
-
}>;
|
|
112
|
+
readonly props: Readonly<CalendarProps<import("./composeCalendar").Props>>;
|
|
117
113
|
state: Readonly<State>;
|
|
118
114
|
refs: {
|
|
119
115
|
[key: string]: import("react").ReactInstance;
|
|
@@ -122,7 +118,7 @@ declare const _default: {
|
|
|
122
118
|
shouldComponentUpdate?(nextProps: Readonly<CalendarProps<import("./composeCalendar").Props>>, nextState: Readonly<State>, nextContext: any): boolean;
|
|
123
119
|
componentWillUnmount?(): void;
|
|
124
120
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
125
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<CalendarProps<import("./composeCalendar").Props>>, prevState: Readonly<State>): any;
|
|
121
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<CalendarProps<import("./composeCalendar").Props>>, prevState: Readonly<State>): any | null;
|
|
126
122
|
componentDidUpdate?(prevProps: Readonly<CalendarProps<import("./composeCalendar").Props>>, prevState: Readonly<State>, snapshot?: any): void;
|
|
127
123
|
componentWillMount?(): void;
|
|
128
124
|
UNSAFE_componentWillMount?(): void;
|