@skyscanner/backpack-web 36.11.0 → 36.11.1-alpha.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.
Files changed (150) hide show
  1. package/bpk-component-accordion/src/BpkAccordion.js +1 -1
  2. package/bpk-component-accordion/src/BpkAccordionItem.js +1 -1
  3. package/bpk-component-aria-live/src/BpkAriaLive.js +1 -1
  4. package/bpk-component-autosuggest/src/BpkAutosuggest.js +1 -1
  5. package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +1 -1
  6. package/bpk-component-badge/src/BpkBadge.js +1 -1
  7. package/bpk-component-banner-alert/src/AnimateAndFade.js +1 -1
  8. package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +1 -1
  9. package/bpk-component-barchart/src/BpkBarchart.js +1 -1
  10. package/bpk-component-barchart/src/BpkBarchartBar.js +1 -1
  11. package/bpk-component-barchart/src/BpkChartAxis.js +1 -1
  12. package/bpk-component-barchart/src/BpkChartDataTable.js +1 -1
  13. package/bpk-component-barchart/src/BpkChartGridLines.js +1 -1
  14. package/bpk-component-blockquote/src/BpkBlockquote.js +1 -1
  15. package/bpk-component-boilerplate/src/BpkBoilerplate.js +1 -1
  16. package/bpk-component-bottom-sheet/src/BpkBottomSheet.js +1 -1
  17. package/bpk-component-bottom-sheet/src/BpkBottomSheetInner.module.css +18 -0
  18. package/bpk-component-breadcrumb/src/BpkBreadcrumb.js +1 -1
  19. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +1 -1
  20. package/bpk-component-button/src/BpkButtonDestructive.module.css +18 -0
  21. package/bpk-component-button/src/BpkButtonFeatured.module.css +18 -0
  22. package/bpk-component-button/src/BpkButtonLink.module.css +18 -0
  23. package/bpk-component-button/src/BpkButtonLinkOnDark.module.css +18 -0
  24. package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.css +18 -0
  25. package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.css +18 -0
  26. package/bpk-component-button/src/BpkButtonSecondary.module.css +18 -0
  27. package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.css +18 -0
  28. package/bpk-component-calendar/src/BpkCalendarDate.js +1 -1
  29. package/bpk-component-calendar/src/BpkCalendarGrid.js +1 -1
  30. package/bpk-component-calendar/src/BpkCalendarGridHeader.js +1 -1
  31. package/bpk-component-calendar/src/BpkCalendarGridTransition.js +1 -1
  32. package/bpk-component-calendar/src/BpkCalendarNav.js +1 -1
  33. package/bpk-component-calendar/src/BpkCalendarWeek.js +1 -1
  34. package/bpk-component-calendar/src/composeCalendar.js +1 -1
  35. package/bpk-component-card/src/BpkCard.js +1 -1
  36. package/bpk-component-card/src/BpkCardWrapper.js +1 -1
  37. package/bpk-component-card/src/BpkDividedCard.js +1 -1
  38. package/bpk-component-card-button/src/BpkSaveButton.js +1 -1
  39. package/bpk-component-card-list/src/BpkCardList.js +1 -1
  40. package/bpk-component-carousel/src/BpkCarousel.js +1 -1
  41. package/bpk-component-carousel/src/BpkCarouselContainer.js +1 -1
  42. package/bpk-component-carousel/src/BpkCarouselImage.js +1 -1
  43. package/bpk-component-checkbox/src/BpkCheckbox.js +1 -1
  44. package/bpk-component-chip/src/BpkDismissibleChip.js +1 -1
  45. package/bpk-component-chip/src/BpkSelectableChip.js +1 -1
  46. package/bpk-component-chip-group/src/BpkMultiSelectChipGroup.js +1 -1
  47. package/bpk-component-chip-group/src/Nudger.js +1 -1
  48. package/bpk-component-close-button/src/BpkCloseButton.js +1 -1
  49. package/bpk-component-code/src/BpkCode.js +1 -1
  50. package/bpk-component-code/src/BpkCodeBlock.js +1 -1
  51. package/bpk-component-content-cards/src/BpkContentCard.js +1 -1
  52. package/bpk-component-content-cards/src/BpkContentCards.js +1 -1
  53. package/bpk-component-datatable/src/BpkDataTable.js +1 -1
  54. package/bpk-component-datatable/src/BpkDataTableHeader.js +1 -1
  55. package/bpk-component-datepicker/src/BpkDatepicker.module.css +18 -0
  56. package/bpk-component-description-list/src/BpkDescriptionDetails.js +1 -1
  57. package/bpk-component-description-list/src/BpkDescriptionList.js +1 -1
  58. package/bpk-component-description-list/src/BpkDescriptionTerm.js +1 -1
  59. package/bpk-component-dialog/src/BpkDialog.js +1 -1
  60. package/bpk-component-dialog/src/BpkDialogInner.js +1 -1
  61. package/bpk-component-drawer/src/BpkDrawerContent.js +1 -1
  62. package/bpk-component-fieldset/src/BpkFieldset.js +1 -1
  63. package/bpk-component-flare/src/BpkContentBubble.js +1 -1
  64. package/bpk-component-flare/src/BpkFlareBar.js +1 -1
  65. package/bpk-component-floating-notification/src/BpkFloatingNotification.js +1 -1
  66. package/bpk-component-form-validation/src/BpkFormValidation.js +1 -1
  67. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.js +1 -1
  68. package/bpk-component-grid-toggle/src/BpkGridToggle.js +1 -1
  69. package/bpk-component-horizontal-nav/src/BpkHorizontalNav.js +1 -1
  70. package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.js +1 -1
  71. package/bpk-component-icon/src/withDescription.js +1 -1
  72. package/bpk-component-icon/src/withRtlSupport.js +1 -1
  73. package/bpk-component-image/src/BpkBackgroundImage.js +1 -1
  74. package/bpk-component-image/src/BpkImage.js +1 -1
  75. package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +1 -1
  76. package/bpk-component-info-banner/src/AnimateAndFade.js +1 -1
  77. package/bpk-component-info-banner/src/BpkInfoBannerInner.js +1 -1
  78. package/bpk-component-input/src/BpkClearButton.module.css +18 -0
  79. package/bpk-component-input/src/BpkInput.js +1 -1
  80. package/bpk-component-inset-banner/src/BpkInsetBanner.js +1 -1
  81. package/bpk-component-journey-arrow/src/BpkJourneyArrow.js +1 -1
  82. package/bpk-component-label/src/BpkLabel.js +1 -1
  83. package/bpk-component-link/src/BpkButtonLink.js +1 -1
  84. package/bpk-component-link/src/BpkLink.js +1 -1
  85. package/bpk-component-list/src/BpkList.js +1 -1
  86. package/bpk-component-list/src/BpkListItem.js +1 -1
  87. package/bpk-component-loading-button/src/BpkLoadingButton.js +1 -1
  88. package/bpk-component-map/src/BpkIconMarker.js +1 -1
  89. package/bpk-component-map/src/BpkIconMarkerBackground.js +1 -1
  90. package/bpk-component-map/src/BpkMap.js +1 -1
  91. package/bpk-component-map/src/BpkPriceMarker.js +1 -1
  92. package/bpk-component-map/src/BpkPriceMarkerV2/BpkPriceMarker.js +1 -1
  93. package/bpk-component-map/src/DefaultLoadingElement.js +1 -1
  94. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +1 -1
  95. package/bpk-component-modal/src/BpkModal.js +1 -1
  96. package/bpk-component-modal/src/BpkModalInner.js +1 -1
  97. package/bpk-component-modal/src/BpkModalV2/BpkModal.js +1 -1
  98. package/bpk-component-navigation-bar/src/BpkNavigationBar.js +1 -1
  99. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.module.css +18 -0
  100. package/bpk-component-navigation-tab-group/src/BpkNavigationTabGroup.js +1 -1
  101. package/bpk-component-nudger/src/BpkNudger.js +1 -1
  102. package/bpk-component-overlay/src/BpkOverlay.js +1 -1
  103. package/bpk-component-page-indicator/src/BpkPageIndicator.js +1 -1
  104. package/bpk-component-pagination/src/BpkPagination.js +1 -1
  105. package/bpk-component-pagination/src/BpkPaginationList.js +1 -1
  106. package/bpk-component-pagination/src/BpkPaginationNudger.js +1 -1
  107. package/bpk-component-pagination/src/BpkPaginationPage.js +1 -1
  108. package/bpk-component-panel/src/BpkPanel.js +1 -1
  109. package/bpk-component-phone-input/src/BpkPhoneInput.js +1 -1
  110. package/bpk-component-popover/src/BpkPopover.js +1 -1
  111. package/bpk-component-price/src/BpkPrice.js +1 -1
  112. package/bpk-component-progress/src/BpkProgress.js +1 -1
  113. package/bpk-component-radio/src/BpkRadio.js +1 -1
  114. package/bpk-component-rating/src/BpkRating.js +1 -1
  115. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +1 -1
  116. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +1 -1
  117. package/bpk-component-section-header/src/BpkSectionHeader.js +1 -1
  118. package/bpk-component-section-list/src/BpkSectionListItem.js +1 -1
  119. package/bpk-component-section-list/src/BpkSectionListSection.js +1 -1
  120. package/bpk-component-segmented-control/src/BpkSegmentedControl.js +1 -1
  121. package/bpk-component-select/src/BpkSelect.js +1 -1
  122. package/bpk-component-skeleton/src/BpkBaseSkeleton.js +1 -1
  123. package/bpk-component-skeleton/src/BpkSkeleton.js +1 -1
  124. package/bpk-component-skip-link/src/BpkSkipLink.js +1 -1
  125. package/bpk-component-slider/src/BpkSlider.js +1 -1
  126. package/bpk-component-snippet/src/BpkSnippet.js +1 -1
  127. package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +1 -1
  128. package/bpk-component-spinner/src/BpkLargeSpinner.js +1 -1
  129. package/bpk-component-spinner/src/BpkSpinner.js +1 -1
  130. package/bpk-component-split-input/src/BpkInputField.js +1 -1
  131. package/bpk-component-split-input/src/BpkSplitInput.js +1 -1
  132. package/bpk-component-star-rating/src/BpkInteractiveStar.js +1 -1
  133. package/bpk-component-star-rating/src/BpkInteractiveStarRating.js +1 -1
  134. package/bpk-component-star-rating/src/BpkStar.js +1 -1
  135. package/bpk-component-star-rating/src/BpkStarRating.js +1 -1
  136. package/bpk-component-swap-button/src/BpkSwapButton.js +1 -1
  137. package/bpk-component-switch/src/BpkSwitch.js +1 -1
  138. package/bpk-component-table/src/BpkTable.js +1 -1
  139. package/bpk-component-table/src/BpkTableCell.js +1 -1
  140. package/bpk-component-table/src/BpkTableHeadCell.js +1 -1
  141. package/bpk-component-text/src/BpkText.js +1 -1
  142. package/bpk-component-textarea/src/BpkTextarea.js +1 -1
  143. package/bpk-component-theme-toggle/src/BpkThemeToggle.js +1 -1
  144. package/bpk-component-ticket/src/BpkTicket.js +1 -1
  145. package/bpk-component-tooltip/src/BpkTooltip.js +1 -1
  146. package/bpk-component-tooltip/src/BpkTooltipPortal.js +1 -1
  147. package/bpk-react-utils/src/BpkDialogWrapper/BpkDialogWrapper.js +1 -1
  148. package/bpk-scrim-utils/src/BpkScrim.js +1 -1
  149. package/bpk-scrim-utils/src/withScrim.js +1 -1
  150. package/package.json +1 -1
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */import PropTypes from 'prop-types';
18
18
  import { cssModules } from "../../bpk-react-utils";
19
- import STYLES from "./BpkCodeBlock.module.css";
19
+ import * as STYLES from "./BpkCodeBlock.module.css";
20
20
  import { jsx as _jsx } from "react/jsx-runtime";
21
21
  const getClassName = cssModules(STYLES);
22
22
  const BpkCodeBlock = props => {
@@ -20,7 +20,7 @@
20
20
  import BpkText from "../../bpk-component-text";
21
21
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
22
22
  import { cssModules } from "../../bpk-react-utils";
23
- import STYLES from "./BpkContentCard.module.css";
23
+ import * as STYLES from "./BpkContentCard.module.css";
24
24
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
25
25
  const getClassName = cssModules(STYLES);
26
26
  const BpkContentCard = ({
@@ -19,7 +19,7 @@
19
19
 
20
20
  import { cssModules } from "../../bpk-react-utils";
21
21
  import BpkContentCard from "./BpkContentCard";
22
- import STYLES from "./BpkContentCards.module.css";
22
+ import * as STYLES from "./BpkContentCards.module.css";
23
23
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
24
  const getClassName = cssModules(STYLES);
25
25
  const BpkContentCards = ({
@@ -24,7 +24,7 @@ import { cssModules } from "../../bpk-react-utils";
24
24
  import BpkDataTableHeader from "./BpkDataTableHeader";
25
25
  import { SORT_DIRECTION_TYPES } from "./common-types";
26
26
  import { createColumnsSchema } from "./utils";
27
- import STYLES from "./BpkDataTable.module.css";
27
+ import * as STYLES from "./BpkDataTable.module.css";
28
28
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
29
29
  const getClassName = cssModules(STYLES);
30
30
  const KEYCODES = {
@@ -21,7 +21,7 @@ import BpkSmallArrowDownIcon from "../../bpk-component-icon/sm/arrow-down";
21
21
  import BpkSmallArrowUpIcon from "../../bpk-component-icon/sm/arrow-up";
22
22
  import { cssModules } from "../../bpk-react-utils";
23
23
  import { SORT_DIRECTION_TYPES } from "./common-types";
24
- import STYLES from "./BpkDataTableHeader.module.css";
24
+ import * as STYLES from "./BpkDataTableHeader.module.css";
25
25
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
26
26
  const DownIcon = withRtlSupport(BpkSmallArrowDownIcon);
27
27
  const UpIcon = withRtlSupport(BpkSmallArrowUpIcon);
@@ -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-datepicker__calendar{margin:0 auto}.bpk-datepicker__input{display:inline-block;width:100%}
@@ -17,7 +17,7 @@
17
17
  */
18
18
 
19
19
  import { cssModules } from "../../bpk-react-utils";
20
- import STYLES from "./BpkDescriptionList.module.css";
20
+ import * as STYLES from "./BpkDescriptionList.module.css";
21
21
  import { jsx as _jsx } from "react/jsx-runtime";
22
22
  const getClassName = cssModules(STYLES);
23
23
  export default ({
@@ -17,7 +17,7 @@
17
17
  */
18
18
 
19
19
  import { cssModules } from "../../bpk-react-utils";
20
- import STYLES from "./BpkDescriptionList.module.css";
20
+ import * as STYLES from "./BpkDescriptionList.module.css";
21
21
  import { jsx as _jsx } from "react/jsx-runtime";
22
22
  const getClassName = cssModules(STYLES);
23
23
  export default ({
@@ -17,7 +17,7 @@
17
17
  */
18
18
 
19
19
  import { cssModules } from "../../bpk-react-utils";
20
- import STYLES from "./BpkDescriptionList.module.css";
20
+ import * as STYLES from "./BpkDescriptionList.module.css";
21
21
  import { jsx as _jsx } from "react/jsx-runtime";
22
22
  const getClassName = cssModules(STYLES);
23
23
  export default ({
@@ -21,7 +21,7 @@ import BpkCloseButton from "../../bpk-component-close-button";
21
21
  import { cssModules, Portal } from "../../bpk-react-utils";
22
22
  import BpkDialogInner from "./BpkDialogInner";
23
23
  import { HEADER_ICON_TYPES } from "./common-types";
24
- import STYLES from "./BpkDialog.module.css";
24
+ import * as STYLES from "./BpkDialog.module.css";
25
25
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
26
26
  const getClassName = cssModules(STYLES);
27
27
  const BpkDialog = ({
@@ -20,7 +20,7 @@
20
20
  import { BpkContentBubble } from "../../bpk-component-flare";
21
21
  import { TransitionInitialMount, cssModules } from "../../bpk-react-utils";
22
22
  import { withScrim } from "../../bpk-scrim-utils";
23
- import STYLES from "./BpkDialogInner.module.css";
23
+ import * as STYLES from "./BpkDialogInner.module.css";
24
24
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
25
25
  const getClassName = cssModules(STYLES);
26
26
  const BpkDialogInner = props => {
@@ -24,7 +24,7 @@ import BpkCloseButton from "../../bpk-component-close-button";
24
24
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
25
25
  import { BpkButtonLink } from "../../bpk-component-link";
26
26
  import { cssModules } from "../../bpk-react-utils";
27
- import STYLES from "./BpkDrawerContent.module.css";
27
+ import * as STYLES from "./BpkDrawerContent.module.css";
28
28
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
29
29
  const getClassName = cssModules(STYLES);
30
30
  const BpkDrawerContent = ({
@@ -19,7 +19,7 @@ import { cloneElement } from 'react';
19
19
  import BpkFormValidation from "../../bpk-component-form-validation";
20
20
  import BpkLabel from "../../bpk-component-label";
21
21
  import { cssModules } from "../../bpk-react-utils";
22
- import STYLES from "./BpkFieldset.module.css";
22
+ import * as STYLES from "./BpkFieldset.module.css";
23
23
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
24
  const getClassName = cssModules(STYLES);
25
25
  const BpkFieldset = props => {
@@ -20,7 +20,7 @@ import PropTypes from 'prop-types';
20
20
  import { cssModules } from "../../bpk-react-utils";
21
21
  import BpkFlareBar from "./BpkFlareBar";
22
22
  import CornerRadius from "./__generated__/js/corner-radius";
23
- import STYLES from "./bpk-content-bubble.module.css";
23
+ import * as STYLES from "./bpk-content-bubble.module.css";
24
24
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
25
25
  const getClassName = cssModules(STYLES);
26
26
  const BpkContentBubble = props => {
@@ -19,7 +19,7 @@
19
19
  import PropTypes from 'prop-types';
20
20
  import { cssModules } from "../../bpk-react-utils";
21
21
  import Pointer from "./__generated__/js/pointer";
22
- import STYLES from "./bpk-flare-bar.module.css";
22
+ import * as STYLES from "./bpk-flare-bar.module.css";
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
24
  const getClassName = cssModules(STYLES);
25
25
  const BpkFlareBar = props => {
@@ -22,7 +22,7 @@ import BpkAriaLive from "../../bpk-component-aria-live";
22
22
  import { BUTTON_TYPES, BpkButtonV2 } from "../../bpk-component-button";
23
23
  import BpkText, { TEXT_STYLES } from "../../bpk-component-text";
24
24
  import { cssModules } from "../../bpk-react-utils";
25
- import STYLES from "./BpkFloatingNotification.module.css";
25
+ import * as STYLES from "./BpkFloatingNotification.module.css";
26
26
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
27
27
  const getClassName = cssModules(STYLES);
28
28
  const BpkFloatingNotification = props => {
@@ -22,7 +22,7 @@ import AnimateHeight from "../../bpk-animate-height";
22
22
  import { withAlignment } from "../../bpk-component-icon";
23
23
  import BpkSmallExclamationIcon from "../../bpk-component-icon/sm/exclamation-circle";
24
24
  import { cssModules } from "../../bpk-react-utils";
25
- import STYLES from "./BpkFormValidation.module.css";
25
+ import * as STYLES from "./BpkFormValidation.module.css";
26
26
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
27
27
  const getClassName = cssModules(STYLES);
28
28
  const AlignedExclamationIcon = withAlignment(BpkSmallExclamationIcon, lineHeightSm, iconSizeSm);
@@ -18,7 +18,7 @@
18
18
 
19
19
  import { BpkButtonV2, BUTTON_TYPES } from "../../bpk-component-button";
20
20
  import { cssModules } from "../../bpk-react-utils";
21
- import STYLES from "./BpkGraphicPromo.module.css";
21
+ import * as STYLES from "./BpkGraphicPromo.module.css";
22
22
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
23
23
  const getClassName = cssModules(STYLES);
24
24
  const ACCESSIBILITY_KEYS = {
@@ -20,7 +20,7 @@ import PropTypes from 'prop-types';
20
20
  import { Component } from 'react';
21
21
  import { BpkButtonLink } from "../../bpk-component-link";
22
22
  import { cssModules } from "../../bpk-react-utils";
23
- import STYLES from "./BpkGridToggle.module.css";
23
+ import * as STYLES from "./BpkGridToggle.module.css";
24
24
  import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
25
25
  const getClassName = cssModules(STYLES);
26
26
  const GRID_CLASS_NAME = getClassName('bpk-vertical-grid--on');
@@ -18,7 +18,7 @@
18
18
  import { Component, Children, cloneElement } from 'react';
19
19
  import BpkMobileScrollContainer from "../../bpk-component-mobile-scroll-container";
20
20
  import { cssModules } from "../../bpk-react-utils";
21
- import STYLES from "./BpkHorizontalNav.module.css";
21
+ import * as STYLES from "./BpkHorizontalNav.module.css";
22
22
  import { jsx as _jsx } from "react/jsx-runtime";
23
23
  const getClassName = cssModules(STYLES);
24
24
  const HORIZONTAL_NAV_TYPES = {
@@ -18,7 +18,7 @@
18
18
  import { Component } from 'react';
19
19
  import { cssModules } from "../../bpk-react-utils";
20
20
  import { HORIZONTAL_NAV_TYPES } from "./BpkHorizontalNav";
21
- import STYLES from "./BpkHorizontalNavItem.module.css";
21
+ import * as STYLES from "./BpkHorizontalNavItem.module.css";
22
22
  import { jsx as _jsx } from "react/jsx-runtime";
23
23
  const getClassName = cssModules(STYLES);
24
24
  // In order to be able to access refs on the HorizontalNavItems, they need to be a fully defined
@@ -17,7 +17,7 @@
17
17
  */
18
18
 
19
19
  import { cssModules, wrapDisplayName } from "../../bpk-react-utils";
20
- import STYLES from "./withDescription.module.css";
20
+ import * as STYLES from "./withDescription.module.css";
21
21
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
22
  const getClassName = cssModules(STYLES);
23
23
  export default function withDescription(Component, description) {
@@ -18,6 +18,6 @@
18
18
 
19
19
  import { cssModules } from "../../bpk-react-utils";
20
20
  import classNameModifierHOCFactory from "./classNameModifierHOCFactory";
21
- import STYLES from "./BpkIcon.module.css";
21
+ import * as STYLES from "./BpkIcon.module.css";
22
22
  const getClassName = cssModules(STYLES);
23
23
  export default classNameModifierHOCFactory('withRtlSupport', [getClassName('bpk-icon--rtl-support')]);
@@ -21,7 +21,7 @@ import CSSTransition from 'react-transition-group/CSSTransition';
21
21
  import { animations } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
22
22
  import { BpkSpinner } from "../../bpk-component-spinner";
23
23
  import { cssModules } from "../../bpk-react-utils";
24
- import STYLES from "./BpkBackgroundImage.module.css";
24
+ import * as STYLES from "./BpkBackgroundImage.module.css";
25
25
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
26
26
  const getClassName = cssModules(STYLES);
27
27
  class BpkBackgroundImage extends Component {
@@ -22,7 +22,7 @@ import { animations } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
22
22
  import { BpkSpinner } from "../../bpk-component-spinner";
23
23
  import { cssModules } from "../../bpk-react-utils";
24
24
  import BORDER_RADIUS_STYLES from "./BpkImageBorderRadiusStyles";
25
- import STYLES from "./BpkImage.module.css";
25
+ import * as STYLES from "./BpkImage.module.css";
26
26
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
27
27
  const getClassName = cssModules(STYLES);
28
28
  class Image extends Component {
@@ -21,7 +21,7 @@ import omit from 'lodash/omit';
21
21
  import { cssModules } from "../../bpk-react-utils";
22
22
  import "./intersection-observer";
23
23
  import DataSource from "./DataSource";
24
- import STYLES from "./withInfiniteScroll.module.css";
24
+ import * as STYLES from "./withInfiniteScroll.module.css";
25
25
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
26
26
  const getClassNames = cssModules(STYLES);
27
27
  const propTypes = {
@@ -23,7 +23,7 @@ import { durationSm } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
23
23
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
24
24
  import BpkAnimateHeight from "../../bpk-animate-height";
25
25
  import { cssModules } from "../../bpk-react-utils";
26
- import STYLES from "./BpkAnimateAndFade.module.css";
26
+ import * as STYLES from "./BpkAnimateAndFade.module.css";
27
27
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
28
28
  const getClassName = cssModules(STYLES);
29
29
  const ANIMATION_DURATION = parseInt(durationSm, 10);
@@ -36,7 +36,7 @@ import BpkLink from "../../bpk-component-link";
36
36
  import { cssModules } from "../../bpk-react-utils";
37
37
  import AnimateAndFade from "./AnimateAndFade";
38
38
  import { ALERT_TYPES, STYLE_TYPES } from "./common-types";
39
- import STYLES from "./BpkInfoBanner.module.css";
39
+ import * as STYLES from "./BpkInfoBanner.module.css";
40
40
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
41
41
  const getClassName = cssModules(STYLES);
42
42
  const ExpandIcon = withButtonAlignment(ChevronDownIcon);
@@ -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}
@@ -21,7 +21,7 @@ import { withButtonAlignment } from "../../bpk-component-icon";
21
21
  import ClearIcon from "../../bpk-component-icon/sm/close-circle";
22
22
  import { cssModules } from "../../bpk-react-utils";
23
23
  import { CLEAR_BUTTON_MODES, defaultProps } from "./common-types";
24
- import STYLES from "./BpkInput.module.css";
24
+ import * as STYLES from "./BpkInput.module.css";
25
25
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
26
26
  const getClassName = cssModules(STYLES);
27
27
  const ClearButtonIcon = withButtonAlignment(ClearIcon);
@@ -20,7 +20,7 @@ import InfoIcon from "../../bpk-component-icon/sm/information-circle";
20
20
  import BpkPopover from "../../bpk-component-popover/src/BpkPopover";
21
21
  import BpkText, { TEXT_STYLES } from "../../bpk-component-text/src/BpkText";
22
22
  import { cssModules } from "../../bpk-react-utils";
23
- import STYLES from "./BpkInsetBanner.module.css";
23
+ import * as STYLES from "./BpkInsetBanner.module.css";
24
24
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
25
25
  const getClassName = cssModules(STYLES);
26
26
  export const VARIANT = {
@@ -17,7 +17,7 @@
17
17
  */
18
18
 
19
19
  import { cssModules } from "../../bpk-react-utils";
20
- import STYLES from "./BpkJourneyArrow.module.css";
20
+ import * as STYLES from "./BpkJourneyArrow.module.css";
21
21
  import { jsx as _jsx } from "react/jsx-runtime";
22
22
  const getClassName = cssModules(STYLES);
23
23
  const BpkJourneyArrow = ({
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */import PropTypes from 'prop-types';
18
18
  import { cssModules } from "../../bpk-react-utils";
19
- import STYLES from "./BpkLabel.module.css";
19
+ import * as STYLES from "./BpkLabel.module.css";
20
20
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
21
21
  const getClassName = cssModules(STYLES);
22
22
  const BpkLabel = props => {
@@ -17,7 +17,7 @@
17
17
  */import PropTypes from 'prop-types';
18
18
  import { cssModules } from "../../bpk-react-utils";
19
19
  import themeAttributes from "./themeAttributes";
20
- import STYLES from "./BpkLink.module.css";
20
+ import * as STYLES from "./BpkLink.module.css";
21
21
  import { jsx as _jsx } from "react/jsx-runtime";
22
22
  const getClassName = cssModules(STYLES);
23
23
  const BpkButtonLink = props => {
@@ -18,7 +18,7 @@
18
18
  import { forwardRef } from 'react';
19
19
  import { cssModules } from "../../bpk-react-utils";
20
20
  import themeAttributes, { linkAlternateThemeAttributes } from "./themeAttributes";
21
- import STYLES from "./BpkLink.module.css";
21
+ import * as STYLES from "./BpkLink.module.css";
22
22
  import { jsx as _jsx } from "react/jsx-runtime";
23
23
  const getClassName = cssModules(STYLES);
24
24
  const BpkLink = /*#__PURE__*/forwardRef((props, ref) => {
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */import PropTypes from 'prop-types';
18
18
  import { cssModules } from "../../bpk-react-utils";
19
- import STYLES from "./BpkList.module.css";
19
+ import * as STYLES from "./BpkList.module.css";
20
20
  import { jsx as _jsx } from "react/jsx-runtime";
21
21
  const getClassName = cssModules(STYLES);
22
22
  const BpkList = props => {
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */import PropTypes from 'prop-types';
18
18
  import { cssModules } from "../../bpk-react-utils";
19
- import STYLES from "./BpkList.module.css";
19
+ import * as STYLES from "./BpkList.module.css";
20
20
  import { jsx as _jsx } from "react/jsx-runtime";
21
21
  const getClassName = cssModules(STYLES);
22
22
  const BpkListItem = props => {
@@ -22,7 +22,7 @@ import ArrowIconLg from "../../bpk-component-icon/lg/long-arrow-right";
22
22
  import ArrowIconSm from "../../bpk-component-icon/sm/long-arrow-right";
23
23
  import { BpkSpinner, BpkLargeSpinner } from "../../bpk-component-spinner";
24
24
  import { cssModules } from "../../bpk-react-utils";
25
- import STYLES from "./BpkLoadingButton.module.css";
25
+ import * as STYLES from "./BpkLoadingButton.module.css";
26
26
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
27
27
  const getClassName = cssModules(STYLES);
28
28
  export const ICON_POSITION = {
@@ -19,7 +19,7 @@ import { cssModules } from "../../bpk-react-utils";
19
19
  import BpkBasicMapMarker from "./BpkBasicMapMarker";
20
20
  import BpkIconMarkerBackground from "./BpkIconMarkerBackground";
21
21
  import { LatLongPropType } from "./common-types";
22
- import STYLES from "./BpkIconMarker.module.css";
22
+ import * as STYLES from "./BpkIconMarker.module.css";
23
23
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
24
  const getClassName = cssModules(STYLES);
25
25
  const BpkIconMarker = props => {
@@ -15,7 +15,7 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */import { cssModules } from "../../bpk-react-utils";
18
- import STYLES from "./BpkIconMarkerBackground.module.css";
18
+ import * as STYLES from "./BpkIconMarkerBackground.module.css";
19
19
  import { jsx as _jsx } from "react/jsx-runtime";
20
20
  const getClassName = cssModules(STYLES);
21
21
  const BpkIconMarkerBackground = props => {
@@ -19,7 +19,7 @@ import { useCallback, useRef } from 'react';
19
19
  import { GoogleMap } from '@react-google-maps/api';
20
20
  import { cssModules } from "../../bpk-react-utils";
21
21
  import { LatLongPropType } from "./common-types";
22
- import STYLES from "./BpkMap.module.css";
22
+ import * as STYLES from "./BpkMap.module.css";
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
24
  const getClassName = cssModules(STYLES);
25
25
  const BpkMap = props => {
@@ -19,7 +19,7 @@ import BpkText, { TEXT_STYLES } from "../../bpk-component-text/src/BpkText";
19
19
  import { cssModules } from "../../bpk-react-utils";
20
20
  import BpkBasicMapMarker from "./BpkBasicMapMarker";
21
21
  import { LatLongPropType } from "./common-types";
22
- import STYLES from "./BpkPriceMarker.module.css";
22
+ import * as STYLES from "./BpkPriceMarker.module.css";
23
23
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
24
  const getClassName = cssModules(STYLES);
25
25
  export const PRICE_MARKER_STATUSES = {
@@ -19,7 +19,7 @@
19
19
  import BpkText, { TEXT_STYLES } from "../../../bpk-component-text";
20
20
  import { cssModules } from "../../../bpk-react-utils";
21
21
  import BpkBasicMapMarker from "../BpkBasicMapMarker";
22
- import STYLES from "./BpkPriceMarker.module.css";
22
+ import * as STYLES from "./BpkPriceMarker.module.css";
23
23
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
24
  const getClassName = cssModules(STYLES);
25
25
  export const MARKER_STATUSES = {
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */import { BpkLargeSpinner, SPINNER_TYPES } from "../../bpk-component-spinner";
18
18
  import { cssModules } from "../../bpk-react-utils";
19
- import STYLES from "./DefaultLoadingElement.module.css";
19
+ import * as STYLES from "./DefaultLoadingElement.module.css";
20
20
  import { jsx as _jsx } from "react/jsx-runtime";
21
21
  const getClassName = cssModules(STYLES);
22
22
  const DefaultLoadingElement = () => /*#__PURE__*/_jsx("div", {
@@ -19,7 +19,7 @@
19
19
  import { Component } from 'react';
20
20
  import debounce from 'lodash/debounce';
21
21
  import { cssModules, isRTL } from "../../bpk-react-utils";
22
- import STYLES from "./BpkMobileScrollContainer.module.css";
22
+ import * as STYLES from "./BpkMobileScrollContainer.module.css";
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
24
  const getClassName = cssModules(STYLES);
25
25
  const computeScrollBarAwareHeight = (scrollerEl, innerEl) => {
@@ -19,7 +19,7 @@
19
19
  import { Portal, cssModules, isDeviceIphone } from "../../bpk-react-utils";
20
20
  import { withScrim } from "../../bpk-scrim-utils";
21
21
  import BpkModalInner, { MODAL_STYLING } from "./BpkModalInner";
22
- import STYLES from "./BpkModal.module.css";
22
+ import * as STYLES from "./BpkModal.module.css";
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
24
  const getClassName = cssModules(STYLES);
25
25
  const ScrimBpkModalInner = withScrim(BpkModalInner);
@@ -22,7 +22,7 @@ import BpkCloseButton from "../../bpk-component-close-button";
22
22
  import { BpkButtonLink } from "../../bpk-component-link";
23
23
  import BpkNavigationBar, { BAR_STYLES } from "../../bpk-component-navigation-bar";
24
24
  import { TransitionInitialMount, cssModules } from "../../bpk-react-utils";
25
- import STYLES from "./BpkModalInner.module.css";
25
+ import * as STYLES from "./BpkModalInner.module.css";
26
26
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
27
27
  const getClassName = cssModules(STYLES);
28
28
  export const MODAL_STYLING = {
@@ -23,7 +23,7 @@ import BpkCloseButton from "../../../bpk-component-close-button";
23
23
  import BpkText, { TEXT_STYLES } from "../../../bpk-component-text";
24
24
  import { cssModules, withDefaultProps } from "../../../bpk-react-utils";
25
25
  import { MODAL_STYLING } from "../BpkModalInner";
26
- import STYLES from "./BpKModal.module.css";
26
+ import * as STYLES from "./BpKModal.module.css";
27
27
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
28
28
  const getClassName = cssModules(STYLES);
29
29
  const Header = ({
@@ -18,7 +18,7 @@
18
18
 
19
19
  import BpkText, { TEXT_STYLES } from "../../bpk-component-text";
20
20
  import { cssModules } from "../../bpk-react-utils";
21
- import STYLES from "./BpkNavigationBar.module.css";
21
+ import * as STYLES from "./BpkNavigationBar.module.css";
22
22
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
23
23
  const getClassNames = cssModules(STYLES);
24
24
  export const BAR_STYLES = {
@@ -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}
@@ -19,7 +19,7 @@
19
19
  import { useState } from 'react';
20
20
  import BpkText, { TEXT_STYLES } from "../../bpk-component-text";
21
21
  import { cssModules } from "../../bpk-react-utils";
22
- import STYLES from "./BpkNavigationTabGroup.module.css";
22
+ import * as STYLES from "./BpkNavigationTabGroup.module.css";
23
23
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
24
24
  const getClassName = cssModules(STYLES);
25
25
  export const NAVIGATION_TAB_GROUP_TYPES = {
@@ -25,7 +25,7 @@ import PlusIcon from "../../bpk-component-icon/sm/plus";
25
25
  import BpkLabel from "../../bpk-component-label";
26
26
  import BpkText, { TEXT_STYLES } from "../../bpk-component-text";
27
27
  import { cssModules, setNativeValue } from "../../bpk-react-utils";
28
- import STYLES from "./BpkNudger.module.css";
28
+ import * as STYLES from "./BpkNudger.module.css";
29
29
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
30
30
  const getClassName = cssModules(STYLES);
31
31
  const compareValues = (a, b) => a - b;
@@ -17,7 +17,7 @@
17
17
  */
18
18
 
19
19
  import { cssModules } from "../../bpk-react-utils";
20
- import STYLES from "./BpkOverlay.module.css";
20
+ import * as STYLES from "./BpkOverlay.module.css";
21
21
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
22
  const getClassName = cssModules(STYLES);
23
23
  export const OVERLAY_TYPES = {
@@ -17,7 +17,7 @@
17
17
  */import PropTypes from 'prop-types';
18
18
  import { cssModules } from "../../bpk-react-utils";
19
19
  import NavButton, { DIRECTIONS } from "./NavButton";
20
- import STYLES from "./BpkPageIndicator.module.css";
20
+ import * as STYLES from "./BpkPageIndicator.module.css";
21
21
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
22
  const getClassName = cssModules(STYLES);
23
23
  const DISPLAYED_TOTAL = 5;
@@ -20,7 +20,7 @@ import PropTypes from 'prop-types';
20
20
  import { cssModules } from "../../bpk-react-utils";
21
21
  import BpkPaginationList from "./BpkPaginationList";
22
22
  import BpkPaginationNudger from "./BpkPaginationNudger";
23
- import STYLES from "./BpkPagination.module.css";
23
+ import * as STYLES from "./BpkPagination.module.css";
24
24
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
25
25
  const getClassName = cssModules(STYLES);
26
26
  const handlePageChange = (onPageChange, pageCount) => nextPageIndex => {
@@ -20,7 +20,7 @@ import PropTypes from 'prop-types';
20
20
  import { cssModules } from "../../bpk-react-utils";
21
21
  import BpkPaginationBreak from "./BpkPaginationBreak";
22
22
  import BpkPaginationPage from "./BpkPaginationPage";
23
- import STYLES from "./BpkPaginationList.module.css";
23
+ import * as STYLES from "./BpkPaginationList.module.css";
24
24
  import { jsx as _jsx } from "react/jsx-runtime";
25
25
  const getClassName = cssModules(STYLES);
26
26
  const BpkPaginationList = props => {