@skyscanner/backpack-web 4.1.0 → 6.0.0-alpha.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.
Files changed (188) hide show
  1. package/README.md +65 -64
  2. package/bpk-component-accordion/src/BpkAccordion.js +0 -1
  3. package/bpk-component-accordion/src/BpkAccordionItem.js +0 -1
  4. package/bpk-component-accordion/src/withAccordionItemState.js +0 -1
  5. package/bpk-component-accordion/src/withSingleItemAccordionState.js +0 -1
  6. package/bpk-component-aria-live/src/BpkAriaLive.js +0 -1
  7. package/bpk-component-autosuggest/src/BpkAutosuggest.js +1 -2
  8. package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +0 -1
  9. package/bpk-component-badge/src/BpkBadge.js +0 -1
  10. package/bpk-component-banner-alert/src/AnimateAndFade.js +2 -3
  11. package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +1 -2
  12. package/bpk-component-banner-alert/src/withBannerAlertState.js +0 -1
  13. package/bpk-component-barchart/src/BpkBarchart.js +0 -1
  14. package/bpk-component-barchart/src/BpkBarchartBar.js +1 -2
  15. package/bpk-component-barchart/src/BpkChartAxis.js +1 -2
  16. package/bpk-component-barchart/src/BpkChartDataTable.js +0 -1
  17. package/bpk-component-barchart/src/BpkChartGridLines.js +0 -1
  18. package/bpk-component-blockquote/src/BpkBlockquote.js +0 -1
  19. package/bpk-component-breadcrumb/src/BpkBreadcrumb.js +0 -1
  20. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +0 -1
  21. package/bpk-component-button/src/BpkButtonBase.module.css +1 -1
  22. package/bpk-component-button/src/BpkButtonDestructive.module.css +1 -1
  23. package/bpk-component-button/src/BpkButtonFeatured.module.css +1 -1
  24. package/bpk-component-button/src/BpkButtonLink.module.css +1 -1
  25. package/bpk-component-button/src/BpkButtonLinkOnDark.module.css +18 -0
  26. package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.css +18 -0
  27. package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.css +18 -0
  28. package/bpk-component-button/src/BpkButtonSecondary.module.css +1 -1
  29. package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.css +18 -0
  30. package/bpk-component-calendar/src/BpkCalendarContainer.js +0 -1
  31. package/bpk-component-calendar/src/BpkCalendarDate.js +0 -1
  32. package/bpk-component-calendar/src/BpkCalendarGrid.js +0 -1
  33. package/bpk-component-calendar/src/BpkCalendarGridHeader.js +0 -1
  34. package/bpk-component-calendar/src/BpkCalendarGridTransition.js +0 -1
  35. package/bpk-component-calendar/src/BpkCalendarNav.js +0 -1
  36. package/bpk-component-calendar/src/Week.js +0 -1
  37. package/bpk-component-calendar/src/composeCalendar.js +0 -1
  38. package/bpk-component-card/src/BpkCard.js +0 -1
  39. package/bpk-component-checkbox/src/BpkCheckbox.js +0 -1
  40. package/bpk-component-chip/src/BpkDismissibleChip.js +0 -1
  41. package/bpk-component-chip/src/BpkSelectableChip.js +0 -1
  42. package/bpk-component-close-button/src/BpkCloseButton.js +0 -1
  43. package/bpk-component-code/src/BpkCode.js +0 -1
  44. package/bpk-component-code/src/BpkCodeBlock.js +0 -1
  45. package/bpk-component-content-container/src/BpkContentContainer.js +0 -1
  46. package/bpk-component-content-container/src/BpkContentContainer.module.css +1 -1
  47. package/bpk-component-datatable/src/BpkDataTable.js +1 -2
  48. package/bpk-component-datatable/src/BpkDataTableColumn.js +0 -1
  49. package/bpk-component-datatable/src/bpkHeaderRenderer.js +0 -1
  50. package/bpk-component-datepicker/src/BpkDatepicker.js +16 -15
  51. package/bpk-component-description-list/src/ComponentFactory.js +0 -1
  52. package/bpk-component-dialog/src/BpkDialog.js +0 -1
  53. package/bpk-component-dialog/src/BpkDialogInner.js +0 -1
  54. package/bpk-component-dialog/src/BpkDialogInner.module.css +1 -1
  55. package/bpk-component-drawer/src/BpkDrawer.js +2 -11
  56. package/bpk-component-drawer/src/BpkDrawerContent.js +0 -1
  57. package/bpk-component-drawer/src/BpkDrawerContent.module.css +1 -1
  58. package/bpk-component-fieldset/src/BpkFieldset.js +0 -1
  59. package/bpk-component-flare/src/BpkContentBubble.js +0 -1
  60. package/bpk-component-flare/src/BpkFlareBar.js +0 -1
  61. package/bpk-component-flare/src/bpk-flare-bar.module.css +1 -1
  62. package/bpk-component-floating-notification/README.md +5 -0
  63. package/bpk-component-floating-notification/src/BpkFloatingNotification.js +6 -2
  64. package/bpk-component-floating-notification/src/BpkFloatingNotification.module.css +1 -1
  65. package/bpk-component-form-validation/src/BpkFormValidation.js +4 -5
  66. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.js +0 -1
  67. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.css +18 -0
  68. package/bpk-component-graphic-promotion/src/custom-breakpoints.module.css +17 -0
  69. package/bpk-component-grid/src/BpkGridColumn.js +0 -1
  70. package/bpk-component-grid/src/BpkGridColumn.module.css +1 -1
  71. package/bpk-component-grid/src/BpkGridContainer.js +0 -1
  72. package/bpk-component-grid/src/BpkGridContainer.module.css +1 -1
  73. package/bpk-component-grid/src/BpkGridRow.js +0 -1
  74. package/bpk-component-grid/src/BpkGridRow.module.css +1 -1
  75. package/bpk-component-grid-toggle/src/BpkGridToggle.js +0 -1
  76. package/bpk-component-horizontal-nav/src/BpkHorizontalNav.js +1 -2
  77. package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.js +0 -1
  78. package/bpk-component-icon/src/BpkIcon.module.css +1 -1
  79. package/bpk-component-icon/src/classNameModifierHOCFactory.js +0 -1
  80. package/bpk-component-icon/src/withAlignment.js +0 -1
  81. package/bpk-component-icon/src/withDescription.js +0 -1
  82. package/bpk-component-image/src/BpkBackgroundImage.js +2 -3
  83. package/bpk-component-image/src/BpkImage.js +2 -3
  84. package/bpk-component-image/src/withLazyLoading.js +1 -2
  85. package/bpk-component-image/src/withLoadingBehavior.js +0 -1
  86. package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +1 -2
  87. package/bpk-component-input/src/BpkClearButton.js +0 -1
  88. package/bpk-component-input/src/BpkInput.js +0 -1
  89. package/bpk-component-input/src/withOpenEvents.js +0 -1
  90. package/bpk-component-label/src/BpkLabel.js +0 -1
  91. package/bpk-component-link/src/BpkButtonLink.js +0 -1
  92. package/bpk-component-link/src/BpkLink.js +0 -1
  93. package/bpk-component-list/src/BpkList.js +0 -1
  94. package/bpk-component-list/src/BpkList.module.css +1 -1
  95. package/bpk-component-list/src/BpkListItem.js +0 -1
  96. package/bpk-component-loading-button/src/BpkLoadingButton.js +0 -1
  97. package/bpk-component-loading-button/src/BpkLoadingButton.module.css +18 -0
  98. package/bpk-component-map/src/BpkIconMarker.js +0 -1
  99. package/bpk-component-map/src/BpkIconMarkerBackground.js +0 -1
  100. package/bpk-component-map/src/BpkMap.js +1 -2
  101. package/bpk-component-map/src/BpkMap.module.css +18 -0
  102. package/bpk-component-map/src/BpkPriceMarker.js +0 -1
  103. package/bpk-component-map/src/DefaultLoadingElement.js +0 -1
  104. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +0 -1
  105. package/bpk-component-modal/src/BpkModal.js +4 -10
  106. package/bpk-component-modal/src/BpkModal.module.css +1 -1
  107. package/bpk-component-modal/src/BpkModalInner.js +1 -2
  108. package/bpk-component-modal/src/BpkModalInner.module.css +1 -1
  109. package/bpk-component-navigation-bar/src/BpkNavigationBar.js +0 -1
  110. package/bpk-component-navigation-bar/src/BpkNavigationBar.module.css +1 -1
  111. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +0 -1
  112. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +0 -1
  113. package/bpk-component-navigation-stack/README.md +1 -0
  114. package/bpk-component-navigation-stack/package.json +1 -0
  115. package/bpk-component-navigation-stack/src/BpkNavigationStack.js +1 -2
  116. package/bpk-component-nudger/src/BpkConfigurableNudger.js +0 -1
  117. package/bpk-component-nudger/src/BpkNudger.js +0 -1
  118. package/bpk-component-nudger/src/BpkNudger.module.css +1 -1
  119. package/bpk-component-overlay/src/BpkOverlay.js +0 -1
  120. package/bpk-component-pagination/src/BpkPagination.js +0 -1
  121. package/bpk-component-pagination/src/BpkPaginationList.js +0 -1
  122. package/bpk-component-pagination/src/BpkPaginationNudger.js +0 -1
  123. package/bpk-component-pagination/src/BpkPaginationPage.js +1 -2
  124. package/bpk-component-pagination/src/BpkPaginationPage.module.css +1 -1
  125. package/bpk-component-panel/src/BpkPanel.js +0 -1
  126. package/bpk-component-phone-input/src/BpkPhoneInput.js +0 -1
  127. package/bpk-component-phone-input/src/BpkPhoneInput.module.css +1 -1
  128. package/bpk-component-popover/src/BpkPopover.js +0 -1
  129. package/bpk-component-popover/src/BpkPopover.module.css +1 -1
  130. package/bpk-component-popover/src/BpkPopoverPortal.js +25 -15
  131. package/bpk-component-price/README.md +4 -2
  132. package/bpk-component-price/index.js +3 -2
  133. package/bpk-component-price/package.json +1 -1
  134. package/bpk-component-price/src/BpkPrice.js +16 -13
  135. package/bpk-component-price/src/BpkPrice.module.css +18 -0
  136. package/bpk-component-price/src/BpkPrice.module.scss +16 -10
  137. package/bpk-component-price/src/common-types.js +29 -0
  138. package/bpk-component-progress/src/BpkProgress.js +0 -1
  139. package/bpk-component-radio/src/BpkRadio.js +0 -1
  140. package/bpk-component-rating/src/BpkRating.js +0 -1
  141. package/bpk-component-rating/src/BpkRating.module.css +1 -1
  142. package/bpk-component-rtl-toggle/src/BpkRtlToggle.js +0 -1
  143. package/bpk-component-rtl-toggle/src/updateOnDirectionChange.js +0 -1
  144. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.js +0 -1
  145. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +0 -1
  146. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +2 -6
  147. package/bpk-component-section-list/src/BpkSectionListItem.js +0 -1
  148. package/bpk-component-section-list/src/BpkSectionListSection.js +0 -1
  149. package/bpk-component-select/src/BpkSelect.js +0 -1
  150. package/bpk-component-skip-link/src/BpkSkipLink.js +0 -1
  151. package/bpk-component-slider/src/BpkSlider.js +0 -1
  152. package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +1 -2
  153. package/bpk-component-spinner/src/BpkLargeSpinner.js +1 -2
  154. package/bpk-component-spinner/src/BpkSpinner.js +1 -2
  155. package/bpk-component-spinner/src/BpkSpinner.module.css +1 -1
  156. package/bpk-component-split-input/src/BpkInputField.js +2 -3
  157. package/bpk-component-split-input/src/BpkInputField.module.css +18 -0
  158. package/bpk-component-split-input/src/BpkInputField.module.scss +3 -3
  159. package/bpk-component-split-input/src/BpkSplitInput.js +4 -3
  160. package/bpk-component-split-input/src/BpkSplitInput.module.css +1 -1
  161. package/bpk-component-split-input/src/BpkSplitInput.module.scss +2 -2
  162. package/bpk-component-star-rating/src/BpkInteractiveStar.js +0 -1
  163. package/bpk-component-star-rating/src/BpkInteractiveStarRating.js +0 -1
  164. package/bpk-component-star-rating/src/BpkStar.js +0 -1
  165. package/bpk-component-star-rating/src/BpkStarRating.js +0 -1
  166. package/bpk-component-star-rating/src/withInteractiveStarRatingState.js +0 -1
  167. package/bpk-component-switch/src/BpkSwitch.js +0 -1
  168. package/bpk-component-table/src/BpkTable.js +0 -1
  169. package/bpk-component-table/src/BpkTableCell.js +0 -1
  170. package/bpk-component-table/src/BpkTableHeadCell.js +0 -1
  171. package/bpk-component-text/src/BpkText.js +0 -1
  172. package/bpk-component-text/src/BpkText.module.css +1 -1
  173. package/bpk-component-textarea/src/BpkTextarea.js +0 -1
  174. package/bpk-component-theme-toggle/src/BpkThemeToggle.js +0 -1
  175. package/bpk-component-theme-toggle/src/updateOnThemeChange.js +0 -1
  176. package/bpk-component-ticket/README.md +0 -1
  177. package/bpk-component-ticket/package.json +1 -1
  178. package/bpk-component-ticket/src/BpkTicket.js +0 -41
  179. package/bpk-component-ticket/src/BpkTicket.module.css +1 -1
  180. package/bpk-component-ticket/src/BpkTicket.module.scss +13 -165
  181. package/bpk-component-tooltip/src/BpkTooltip.js +0 -1
  182. package/bpk-component-tooltip/src/BpkTooltip.module.css +1 -1
  183. package/bpk-component-tooltip/src/BpkTooltipPortal.js +0 -1
  184. package/bpk-react-utils/src/Portal.js +1 -1
  185. package/bpk-scrim-utils/src/BpkScrim.js +0 -1
  186. package/bpk-scrim-utils/src/bpk-scrim.module.css +1 -1
  187. package/bpk-scrim-utils/src/withScrim.js +0 -1
  188. package/package.json +1 -1
@@ -18,7 +18,6 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React from 'react';
21
-
22
21
  import { cssModules } from '../../bpk-react-utils';
23
22
  import { BpkButtonLink } from '../../bpk-component-link';
24
23
 
@@ -19,9 +19,8 @@
19
19
 
20
20
  import PropTypes from 'prop-types';
21
21
  import ReactDOM from 'react-dom';
22
- import React, { Component, type Node } from 'react';
23
-
24
22
  import { cssModules } from '../../bpk-react-utils';
23
+ import React, { Component, type Node } from 'react';
25
24
  import BpkMobileScrollContainer from '../../bpk-component-mobile-scroll-container';
26
25
 
27
26
  import STYLES from './BpkHorizontalNav.module.scss';
@@ -19,7 +19,6 @@
19
19
 
20
20
  import React, { Component, type Node } from 'react';
21
21
  import PropTypes from 'prop-types';
22
-
23
22
  import { cssModules } from '../../bpk-react-utils';
24
23
 
25
24
  import { HORIZONTAL_NAV_TYPES } from './BpkHorizontalNav';
@@ -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
- @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-icon--align-to-button{vertical-align:text-bottom}.bpk-icon--align-to-large-button{margin-top:.1875rem;vertical-align:top}html[dir='rtl'] .bpk-icon--rtl-support{transform:scaleX(-1)}
18
+ @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-icon--align-to-button{vertical-align:text-bottom}.bpk-icon--align-to-large-button{margin-top:0rem;vertical-align:top}html[dir='rtl'] .bpk-icon--rtl-support{transform:scaleX(-1)}
@@ -18,7 +18,6 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React from 'react';
21
-
22
21
  import { wrapDisplayName } from '../../bpk-react-utils';
23
22
 
24
23
  export default (displayName, classNamesToAdd = []) =>
@@ -17,7 +17,6 @@
17
17
  */
18
18
 
19
19
  import React from 'react';
20
-
21
20
  import { wrapDisplayName } from '../../bpk-react-utils';
22
21
 
23
22
  export default function withAlignment(Component, objectHeight, subjectHeight) {
@@ -18,7 +18,6 @@
18
18
  /* @flow strict */
19
19
 
20
20
  import React, { type AbstractComponent } from 'react';
21
-
22
21
  import { cssModules, wrapDisplayName } from '../../bpk-react-utils';
23
22
 
24
23
  import STYLES from './withDescription.module.scss';
@@ -19,11 +19,10 @@
19
19
 
20
20
  import React, { type Node, Component } from 'react';
21
21
  import PropTypes from 'prop-types';
22
- import CSSTransition from 'react-transition-group/CSSTransition';
23
- import { animations } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
24
-
25
22
  import { cssModules, deprecated } from '../../bpk-react-utils';
26
23
  import { BpkSpinner } from '../../bpk-component-spinner';
24
+ import CSSTransition from 'react-transition-group/CSSTransition';
25
+ import { animations } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
27
26
 
28
27
  import { widthHeightAspectRatioPropType } from './customPropTypes';
29
28
  import STYLES from './BpkBackgroundImage.module.scss';
@@ -19,11 +19,10 @@
19
19
 
20
20
  import React, { type Node, Component } from 'react';
21
21
  import PropTypes from 'prop-types';
22
- import CSSTransition from 'react-transition-group/CSSTransition';
23
- import { animations } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
24
-
25
22
  import { cssModules, deprecated } from '../../bpk-react-utils';
26
23
  import { BpkSpinner } from '../../bpk-component-spinner';
24
+ import CSSTransition from 'react-transition-group/CSSTransition';
25
+ import { animations } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
27
26
 
28
27
  import { widthHeightAspectRatioPropType } from './customPropTypes';
29
28
  import STYLES from './BpkImage.module.scss';
@@ -19,9 +19,8 @@
19
19
 
20
20
  import React, { type Node, type ComponentType } from 'react';
21
21
  import PropTypes from 'prop-types';
22
- import throttle from 'lodash/throttle';
23
-
24
22
  import { wrapDisplayName } from '../../bpk-react-utils';
23
+ import throttle from 'lodash/throttle';
25
24
 
26
25
  type WithLazyLoadingProps = {
27
26
  className: ?string,
@@ -18,7 +18,6 @@
18
18
  /* @flow */
19
19
 
20
20
  import React, { type AbstractComponent } from 'react';
21
-
22
21
  import { wrapDisplayName } from '../../bpk-react-utils';
23
22
 
24
23
  type InjectedProps = {|
@@ -25,11 +25,10 @@ import React, {
25
25
  type AbstractComponent,
26
26
  } from 'react';
27
27
  import PropTypes from 'prop-types';
28
+ import { cssModules } from '../../bpk-react-utils';
28
29
  import omit from 'lodash/omit';
29
30
  import extend from 'lodash/extend';
30
31
 
31
- import { cssModules } from '../../bpk-react-utils';
32
-
33
32
  import './intersection-observer';
34
33
  import DataSource from './DataSource';
35
34
  import STYLES from './withInfiniteScroll.module.scss';
@@ -19,7 +19,6 @@
19
19
 
20
20
  import PropTypes from 'prop-types';
21
21
  import React from 'react';
22
-
23
22
  import ClearIcon from '../../bpk-component-icon/sm/close-circle';
24
23
  import { withButtonAlignment } from '../../bpk-component-icon';
25
24
  import { cssModules } from '../../bpk-react-utils';
@@ -19,7 +19,6 @@
19
19
  /* @flow strict */
20
20
 
21
21
  import React, { Component } from 'react';
22
-
23
22
  import { cssModules } from '../../bpk-react-utils';
24
23
 
25
24
  import BpkClearButton from './BpkClearButton';
@@ -18,7 +18,6 @@
18
18
 
19
19
  import React from 'react';
20
20
  import PropTypes from 'prop-types';
21
-
22
21
  import { cssModules, wrapDisplayName } from '../../bpk-react-utils';
23
22
 
24
23
  import STYLES from './BpkInput.module.scss';
@@ -19,7 +19,6 @@
19
19
 
20
20
  import PropTypes from 'prop-types';
21
21
  import React, { type Node } from 'react';
22
-
23
22
  import { cssModules } from '../../bpk-react-utils';
24
23
 
25
24
  import STYLES from './BpkLabel.module.scss';
@@ -20,7 +20,6 @@
20
20
 
21
21
  import PropTypes from 'prop-types';
22
22
  import React, { type Node } from 'react';
23
-
24
23
  import { cssModules } from '../../bpk-react-utils';
25
24
 
26
25
  import themeAttributes from './themeAttributes';
@@ -20,7 +20,6 @@
20
20
 
21
21
  import PropTypes from 'prop-types';
22
22
  import React, { type Node } from 'react';
23
-
24
23
  import { cssModules } from '../../bpk-react-utils';
25
24
 
26
25
  import themeAttributes, {
@@ -20,7 +20,6 @@
20
20
 
21
21
  import PropTypes from 'prop-types';
22
22
  import React, { type Node } from 'react';
23
-
24
23
  import { cssModules } from '../../bpk-react-utils';
25
24
 
26
25
  import STYLES from './BpkList.module.scss';
@@ -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
- @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-list{margin-top:0;margin-bottom:.75rem;padding-left:1.5rem}.bpk-list__item{margin-top:0;margin-bottom:0}.bpk-list .bpk-list{margin-top:0;margin-bottom:0}
18
+ @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-list{margin-top:1rem;margin-bottom:1rem;padding-left:1.5rem}.bpk-list__item{margin-top:0;margin-bottom:.25rem}.bpk-list .bpk-list{margin-top:0;margin-bottom:0;padding-top:0.5rem;padding-bottom:0.25rem}.bpk-list .bpk-list>li{margin-bottom:0}
@@ -20,7 +20,6 @@
20
20
 
21
21
  import PropTypes from 'prop-types';
22
22
  import React, { type Node } from 'react';
23
-
24
23
  import { cssModules } from '../../bpk-react-utils';
25
24
 
26
25
  import STYLES from './BpkList.module.scss';
@@ -20,7 +20,6 @@
20
20
 
21
21
  import PropTypes from 'prop-types';
22
22
  import React, { type Node, type Element } from 'react';
23
-
24
23
  import BpkButton from '../../bpk-component-button';
25
24
  import { BpkSpinner, BpkLargeSpinner } from '../../bpk-component-spinner';
26
25
  import {
@@ -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
+ @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-loading-button{position:relative;overflow:hidden}.bpk-loading-button--link{visibility:hidden}.bpk-loading-button__icon{position:absolute;display:inline-flex;visibility:visible;z-index:1;width:calc(100% - 2rem);height:calc(100% - .75rem);justify-content:center;align-items:center;background-color:inherit}.bpk-loading-button__icon--large{height:calc(100% - 1.5rem)}.bpk-loading-button__icon--icon-only{width:calc(100% - 1.125rem)}.bpk-loading-button__icon--large-icon-only{width:calc(100% - 1.5rem)}.bpk-loading-button__icon--link{width:100%;background:unset}
@@ -20,7 +20,6 @@
20
20
 
21
21
  import React, { type Node } from 'react';
22
22
  import PropTypes from 'prop-types';
23
-
24
23
  import { cssModules } from '../../bpk-react-utils';
25
24
 
26
25
  import BpkIconMarkerBackground from './BpkIconMarkerBackground';
@@ -19,7 +19,6 @@
19
19
  /* @flow strict */
20
20
 
21
21
  import React from 'react';
22
-
23
22
  import { cssModules } from '../../bpk-react-utils';
24
23
 
25
24
  import STYLES from './BpkIconMarkerBackground.module.scss';
@@ -20,9 +20,8 @@
20
20
 
21
21
  import React, { type Node, useCallback, useRef } from 'react';
22
22
  import PropTypes from 'prop-types';
23
- import { GoogleMap } from '@react-google-maps/api';
24
-
25
23
  import { cssModules } from '../../bpk-react-utils';
24
+ import { GoogleMap } from '@react-google-maps/api';
26
25
 
27
26
  import { LatLongPropType, type LatLong } from './common-types';
28
27
  import STYLES from './BpkMap.module.scss';
@@ -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-map{height:100%}
@@ -20,7 +20,6 @@
20
20
 
21
21
  import React from 'react';
22
22
  import PropTypes from 'prop-types';
23
-
24
23
  import { cssModules } from '../../bpk-react-utils';
25
24
  import BpkText, { TEXT_STYLES } from '../../bpk-component-text/src/BpkText';
26
25
 
@@ -18,7 +18,6 @@
18
18
  /* @flow strict */
19
19
 
20
20
  import React from 'react';
21
-
22
21
  import { BpkLargeSpinner, SPINNER_TYPES } from '../../bpk-component-spinner';
23
22
  import { cssModules } from '../../bpk-react-utils';
24
23
 
@@ -21,7 +21,6 @@
21
21
  import PropTypes from 'prop-types';
22
22
  import debounce from 'lodash.debounce';
23
23
  import React, { Component, type Node } from 'react';
24
-
25
24
  import { cssModules, isRTL } from '../../bpk-react-utils';
26
25
 
27
26
  import STYLES from './BpkMobileScrollContainer.module.scss';
@@ -19,10 +19,9 @@
19
19
  /* @flow strict */
20
20
 
21
21
  import PropTypes from 'prop-types';
22
- import React, { type Element } from 'react';
23
-
22
+ import React from 'react';
24
23
  import { withScrim } from '../../bpk-scrim-utils';
25
- import { PortalV1, cssModules, isDeviceIphone } from '../../bpk-react-utils';
24
+ import { Portal, cssModules, isDeviceIphone } from '../../bpk-react-utils';
26
25
 
27
26
  import STYLES from './BpkModal.module.scss';
28
27
  import BpkModalInner, {
@@ -50,7 +49,6 @@ export type Props = {
50
49
  closeOnScrimClick: boolean,
51
50
  closeOnEscPressed: boolean,
52
51
  renderTarget: ?() => ?HTMLElement,
53
- target: ?((() => ?HTMLElement) | Element<any>),
54
52
  onClose: (event: SyntheticEvent<>) => void | null,
55
53
  };
56
54
 
@@ -64,7 +62,6 @@ const BpkModal = (props: Props) => {
64
62
  isOpen,
65
63
  onClose,
66
64
  renderTarget,
67
- target,
68
65
  ...rest
69
66
  } = props;
70
67
 
@@ -79,10 +76,9 @@ const BpkModal = (props: Props) => {
79
76
  }
80
77
 
81
78
  return (
82
- <PortalV1
79
+ <Portal
83
80
  isOpen={isOpen}
84
81
  onClose={onClose}
85
- target={target}
86
82
  renderTarget={renderTarget}
87
83
  closeOnEscPressed={closeOnEscPressed}
88
84
  >
@@ -96,7 +92,7 @@ const BpkModal = (props: Props) => {
96
92
  isIphone={isIphone}
97
93
  {...rest}
98
94
  />
99
- </PortalV1>
95
+ </Portal>
100
96
  );
101
97
  };
102
98
 
@@ -108,7 +104,6 @@ export const propTypes = {
108
104
  isIphone: PropTypes.bool,
109
105
  isOpen: PropTypes.bool.isRequired,
110
106
  renderTarget: PropTypes.func,
111
- target: PropTypes.oneOfType([PropTypes.func, PropTypes.element]),
112
107
  closeOnScrimClick: PropTypes.bool,
113
108
  closeOnEscPressed: PropTypes.bool,
114
109
  };
@@ -117,7 +112,6 @@ export const defaultProps = {
117
112
  ...modalDialogDefaultProps,
118
113
  onClose: () => null,
119
114
  renderTarget: null,
120
- target: null,
121
115
  isIphone: isDeviceIphone(),
122
116
  closeOnScrimClick: true,
123
117
  closeOnEscPressed: true,
@@ -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
- @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-modal__container{display:flex;padding:1.5rem}@media screen\0 {.bpk-modal__container{display:block}}@media (max-width: 32.25rem){.bpk-modal__container--full-screen-mobile{display:flex;padding:0}}.bpk-modal__container--full-screen{display:flex;padding:0}
18
+ @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-modal__container{display:flex;padding:1.5rem}@media screen\0 {.bpk-modal__container{display:block}}@media (max-width: 32rem){.bpk-modal__container--full-screen-mobile{display:flex;padding:0}}.bpk-modal__container--full-screen{display:flex;padding:0}
@@ -18,10 +18,9 @@
18
18
 
19
19
  /* @flow strict */
20
20
 
21
+ import { BpkButtonLink } from '../../bpk-component-link';
21
22
  import PropTypes from 'prop-types';
22
23
  import React, { type Node, type Element } from 'react';
23
-
24
- import { BpkButtonLink } from '../../bpk-component-link';
25
24
  import BpkCloseButton from '../../bpk-component-close-button';
26
25
  import BpkNavigationBar from '../../bpk-component-navigation-bar';
27
26
  import { TransitionInitialMount, cssModules } from '../../bpk-react-utils';
@@ -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
- @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-modal{z-index:1100;width:100%;max-width:32.25rem;margin:auto;transform:scale(1);transition:opacity 200ms ease-in-out,transform 200ms ease-in-out;outline:0;background-color:#fff;opacity:1;overflow:hidden;-webkit-tap-highlight-color:transparent;box-shadow:0px 12px 50px 0px rgba(37,32,31,0.25);border-radius:.375rem}@media (max-width: 32.25rem){.bpk-modal--full-screen-mobile{display:flex;margin:0;flex-direction:column;border-radius:0;box-shadow:none}}.bpk-modal--full-screen{max-width:none;display:flex;margin:0;flex-direction:column;border-radius:0;box-shadow:none}@media (min-width: 32.3125rem){.bpk-modal--wide{max-width:50.25rem}}.bpk-modal--appear{transform:scale(0.9);opacity:0}.bpk-modal--appear-active{transform:scale(1);opacity:1}.bpk-modal__header{box-shadow:0 -1px 0 0 #dddde5 inset}.bpk-modal__navigation{display:flex;justify-content:space-between;background-color:#fff}.bpk-modal__heading{margin:0;font-size:1rem;line-height:1.5rem;font-weight:700}.bpk-modal__close-button{position:relative;right:auto;margin-left:1rem;margin-right:0}html[dir='rtl'] .bpk-modal__close-button{margin-left:0;margin-right:1rem}html[dir='rtl'] .bpk-modal__close-button{left:auto}.bpk-modal__accessory-view{position:relative;left:auto;margin-right:1rem}html[dir='rtl'] .bpk-modal__accessory-view{right:auto;margin-left:1rem}.bpk-modal__content{flex:1;overflow-y:auto}.bpk-modal__content--padded{padding:1rem}
18
+ @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-modal{z-index:1100;width:100%;max-width:32rem;margin:auto;transform:scale(1);transition:opacity 200ms ease-in-out,transform 200ms ease-in-out;outline:0;background-color:#fff;opacity:1;overflow:hidden;-webkit-tap-highlight-color:transparent;box-shadow:0px 12px 50px 0px rgba(37,32,31,0.25);border-radius:.375rem}@media (max-width: 32rem){.bpk-modal--full-screen-mobile{display:flex;margin:0;flex-direction:column;border-radius:0;box-shadow:none}}.bpk-modal--full-screen{max-width:none;display:flex;margin:0;flex-direction:column;border-radius:0;box-shadow:none}@media (min-width: 32.0625rem){.bpk-modal--wide{max-width:64rem}}.bpk-modal--appear{transform:scale(0.9);opacity:0}.bpk-modal--appear-active{transform:scale(1);opacity:1}.bpk-modal__header{box-shadow:0 -1px 0 0 #dddde5 inset}.bpk-modal__navigation{display:flex;justify-content:space-between;background-color:#fff}.bpk-modal__heading{margin:0;font-size:1rem;line-height:1.5rem;font-weight:700}.bpk-modal__close-button{position:relative;right:auto;margin-left:1rem;margin-right:0}html[dir='rtl'] .bpk-modal__close-button{margin-left:0;margin-right:1rem}html[dir='rtl'] .bpk-modal__close-button{left:auto}.bpk-modal__accessory-view{position:relative;left:auto;margin-right:1rem}html[dir='rtl'] .bpk-modal__accessory-view{right:auto;margin-left:1rem}.bpk-modal__content{flex:1;overflow-y:auto}.bpk-modal__content--padded{padding:1rem}
@@ -20,7 +20,6 @@
20
20
 
21
21
  import React, { type Node, type Element } from 'react';
22
22
  import PropTypes from 'prop-types';
23
-
24
23
  import { cssModules } from '../../bpk-react-utils';
25
24
  import BpkText, { TEXT_STYLES } from '../../bpk-component-text';
26
25
 
@@ -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
- @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-navigation-bar{position:relative;display:flex;min-height:3.5rem;padding:1rem;flex-direction:row;justify-content:center;align-items:center;background-color:#0770e3;background-color:var(--bpk-navigation-bar-background-color, #0770e3);box-shadow:0 -1px 0 0 #dddde5 inset}.bpk-navigation-bar__title{color:#fff;color:var(--bpk-navigation-bar-title-color, #fff)}.bpk-navigation-bar__leading-item,.bpk-navigation-bar__trailing-item{position:absolute}.bpk-navigation-bar__leading-item{left:1rem}html[dir='rtl'] .bpk-navigation-bar__leading-item{right:1rem;left:auto}.bpk-navigation-bar__trailing-item{right:1rem}html[dir='rtl'] .bpk-navigation-bar__trailing-item{right:auto;left:1rem}.bpk-navigation-bar__sticky{position:sticky;top:0;z-index:899}
18
+ @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-navigation-bar{position:relative;display:flex;min-height:3.5rem;padding:1rem;flex-direction:row;justify-content:center;align-items:center;background-color:#0770e3;background-color:var(--bpk-navigation-bar-background-color, #0770e3);box-shadow:0 -1px 0 0 #dddde5 inset}.bpk-navigation-bar__title{color:#fff;color:var(--bpk-navigation-bar-title-color, #fff)}.bpk-navigation-bar__leading-item,.bpk-navigation-bar__trailing-item{position:absolute;font-size:.875rem;line-height:1.25rem;font-weight:700}.bpk-navigation-bar__leading-item{left:1rem}html[dir='rtl'] .bpk-navigation-bar__leading-item{right:1rem;left:auto}.bpk-navigation-bar__trailing-item{right:1rem}html[dir='rtl'] .bpk-navigation-bar__trailing-item{right:auto;left:1rem}.bpk-navigation-bar__sticky{position:sticky;top:0;z-index:899}
@@ -20,7 +20,6 @@
20
20
 
21
21
  import React, { type Node } from 'react';
22
22
  import PropTypes from 'prop-types';
23
-
24
23
  // TODO: close button is not really only a close button, we should rename and update the import here
25
24
  import { BpkButtonLink } from '../../bpk-component-link';
26
25
  import { cssModules } from '../../bpk-react-utils';
@@ -20,7 +20,6 @@
20
20
 
21
21
  import React, { type ComponentType } from 'react';
22
22
  import PropTypes from 'prop-types';
23
-
24
23
  // TODO: close button is not really only a close button, we should rename and update the import here
25
24
  import BpkIconButton from '../../bpk-component-close-button';
26
25
  import { cssModules } from '../../bpk-react-utils';
@@ -1,3 +1,4 @@
1
+ # This component is deprecated and should be considered as not supported.
1
2
  # bpk-component-navigation-stack
2
3
 
3
4
  > Backpack navigation stack component.
@@ -3,6 +3,7 @@
3
3
  "version": "3.1.13",
4
4
  "description": "Backpack navigation stack component.",
5
5
  "license": "Apache-2.0",
6
+ "private": true,
6
7
  "repository": {
7
8
  "type": "git",
8
9
  "url": "git@github.com:Skyscanner/backpack.git"
@@ -18,14 +18,13 @@
18
18
 
19
19
  /* @flow strict */
20
20
 
21
+ import { cssModules, isRTL } from '../../bpk-react-utils';
21
22
  import React, { Children, type Element } from 'react';
22
23
  import PropTypes from 'prop-types';
23
24
  import { durationSm } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
24
25
  import { TransitionGroup, Transition } from 'react-transition-group';
25
26
  import debounce from 'lodash/debounce';
26
27
 
27
- import { cssModules, isRTL } from '../../bpk-react-utils';
28
-
29
28
  import STYLES from './BpkNavigationStack.module.scss';
30
29
 
31
30
  const getClassName = cssModules(STYLES);
@@ -21,7 +21,6 @@
21
21
 
22
22
  import PropTypes from 'prop-types';
23
23
  import React from 'react';
24
-
25
24
  import BpkButtonSecondary from '../../bpk-component-button/BpkButtonSecondary';
26
25
  import BpkButtonSecondaryOnDark from '../../bpk-component-button/BpkButtonSecondaryOnDark';
27
26
  import { withButtonAlignment } from '../../bpk-component-icon';
@@ -20,7 +20,6 @@
20
20
 
21
21
  import React from 'react';
22
22
  import PropTypes from 'prop-types';
23
-
24
23
  import { cssModules } from '../../bpk-react-utils';
25
24
 
26
25
  import BpkConfigurableNudger from './BpkConfigurableNudger';
@@ -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
- @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-nudger__button{position:relative}.bpk-nudger__input{display:inline-block;padding:0.5rem 0;border:none;text-align:center;vertical-align:middle;margin:0;font-size:1.5rem;line-height:2rem;font-weight:400}.bpk-nudger__input--outline{background-color:transparent;color:#fff}.bpk-nudger__input--numeric{width:2.5rem}
18
+ @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-nudger__button{position:relative}.bpk-nudger__input{display:inline-block;padding:0.5rem 0;border:none;text-align:center;vertical-align:middle;margin:0;font-size:1.5rem;line-height:2rem;font-weight:400}.bpk-nudger__input--secondary-on-dark{background-color:transparent;color:#fff}.bpk-nudger__input--numeric{width:2.5rem}
@@ -19,7 +19,6 @@
19
19
 
20
20
  import PropTypes from 'prop-types';
21
21
  import React, { type Node } from 'react';
22
-
23
22
  import { cssModules } from '../../bpk-react-utils';
24
23
 
25
24
  import STYLES from './BpkOverlay.module.scss';
@@ -18,7 +18,6 @@
18
18
 
19
19
  import React from 'react';
20
20
  import PropTypes from 'prop-types';
21
-
22
21
  import { cssModules } from '../../bpk-react-utils';
23
22
 
24
23
  import BpkPaginationList from './BpkPaginationList';
@@ -18,7 +18,6 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React from 'react';
21
-
22
21
  import { cssModules } from '../../bpk-react-utils';
23
22
 
24
23
  import BpkPaginationPage from './BpkPaginationPage';
@@ -18,7 +18,6 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React from 'react';
21
-
22
21
  import { cssModules } from '../../bpk-react-utils';
23
22
  import { withButtonAlignment, withRtlSupport } from '../../bpk-component-icon';
24
23
  import ArrowLeftIcon from '../../bpk-component-icon/lg/arrow-left';
@@ -16,10 +16,9 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
+ import BpkButton from '../../bpk-component-button';
19
20
  import PropTypes from 'prop-types';
20
21
  import React from 'react';
21
-
22
- import BpkButton from '../../bpk-component-button';
23
22
  import { cssModules } from '../../bpk-react-utils';
24
23
 
25
24
  import STYLES from './BpkPaginationPage.module.scss';
@@ -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
- @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-pagination-page{min-width:2.25rem;height:2.25rem;padding:0;border-radius:50%}.bpk-pagination-page--selected{background-image:none;color:#fff;box-shadow:none;cursor:auto;background-color:#042759;background-color:var(--bpk-pagination-selected-background-color, #042759);box-shadow:0 0 0 2px #042759 inset;box-shadow:0 0 0 2px var(--bpk-pagination-selected-background-color, #042759) inset}.bpk-no-touch-support .bpk-pagination-page--selected:hover:not(:active):not(:disabled){background-image:none;color:#fff;box-shadow:none;background-color:#042759;background-color:var(--bpk-pagination-selected-background-color, #042759);box-shadow:0 0 0 2px #042759 inset;box-shadow:0 0 0 2px var(--bpk-pagination-selected-background-color, #042759) inset}:global(.bpk-no-touch-support) .bpk-pagination-page--selected:hover:not(:active):not(:disabled){background-image:none;color:#fff;box-shadow:none;background-color:#042759;background-color:var(--bpk-pagination-selected-background-color, #042759);box-shadow:0 0 0 2px #042759 inset;box-shadow:0 0 0 2px var(--bpk-pagination-selected-background-color, #042759) inset}.bpk-pagination-page--selected:active{background-image:none;color:#fff;box-shadow:none;background-color:#042759;background-color:var(--bpk-pagination-selected-background-color, #042759);box-shadow:0 0 0 2px #042759 inset;box-shadow:0 0 0 2px var(--bpk-pagination-selected-background-color, #042759) inset}.bpk-pagination-page--selected:disabled{box-shadow:none}
18
+ @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-pagination-page{min-width:2.25rem;height:2.25rem;padding:0;border-radius:50%;font-size:1rem;line-height:1.5rem;font-weight:700}.bpk-pagination-page--selected{background-image:none;color:#fff;box-shadow:none;cursor:auto;background-color:#042759;background-color:var(--bpk-pagination-selected-background-color, #042759);box-shadow:0 0 0 2px #042759 inset;box-shadow:0 0 0 2px var(--bpk-pagination-selected-background-color, #042759) inset}.bpk-no-touch-support .bpk-pagination-page--selected:hover:not(:active):not(:disabled){background-image:none;color:#fff;box-shadow:none;background-color:#042759;background-color:var(--bpk-pagination-selected-background-color, #042759);box-shadow:0 0 0 2px #042759 inset;box-shadow:0 0 0 2px var(--bpk-pagination-selected-background-color, #042759) inset}:global(.bpk-no-touch-support) .bpk-pagination-page--selected:hover:not(:active):not(:disabled){background-image:none;color:#fff;box-shadow:none;background-color:#042759;background-color:var(--bpk-pagination-selected-background-color, #042759);box-shadow:0 0 0 2px #042759 inset;box-shadow:0 0 0 2px var(--bpk-pagination-selected-background-color, #042759) inset}.bpk-pagination-page--selected:active{background-image:none;color:#fff;box-shadow:none;background-color:#042759;background-color:var(--bpk-pagination-selected-background-color, #042759);box-shadow:0 0 0 2px #042759 inset;box-shadow:0 0 0 2px var(--bpk-pagination-selected-background-color, #042759) inset}.bpk-pagination-page--selected:disabled{box-shadow:none}
@@ -18,7 +18,6 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React from 'react';
21
-
22
21
  import { cssModules } from '../../bpk-react-utils';
23
22
 
24
23
  import STYLES from './BpkPanel.module.scss';
@@ -20,7 +20,6 @@
20
20
 
21
21
  import React from 'react';
22
22
  import PropTypes from 'prop-types';
23
-
24
23
  import { cssModules } from '../../bpk-react-utils';
25
24
  import BpkInput, { INPUT_TYPES } from '../../bpk-component-input';
26
25
  import BpkLabel from '../../bpk-component-label';
@@ -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
- @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-phone-input{display:flex;column-gap:0.5rem}@media (max-width: 32.25rem){.bpk-phone-input{flex-wrap:wrap}.bpk-phone-input__phone-number{width:100%;margin-top:1rem}}.bpk-phone-input__phone-number{flex:auto}.bpk-phone-input__label{margin-bottom:0.5rem}
18
+ @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-phone-input{display:flex;column-gap:0.5rem}@media (max-width: 32rem){.bpk-phone-input{flex-wrap:wrap}.bpk-phone-input__phone-number{width:100%;margin-top:1rem}}.bpk-phone-input__phone-number{flex:auto}.bpk-phone-input__label{margin-bottom:0.5rem}
@@ -20,7 +20,6 @@
20
20
 
21
21
  import PropTypes from 'prop-types';
22
22
  import React, { type Node } from 'react';
23
-
24
23
  import BpkText, { TEXT_STYLES } from '../../bpk-component-text';
25
24
  import { BpkButtonLink } from '../../bpk-component-link';
26
25
  import BpkCloseButton from '../../bpk-component-close-button';