@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
@@ -20,7 +20,6 @@
20
20
 
21
21
  import PropTypes from 'prop-types';
22
22
  import React, { Component, type ComponentType } from 'react';
23
-
24
23
  import { wrapDisplayName } from '../../bpk-react-utils';
25
24
 
26
25
  const withInteractiveStarRatingState = (
@@ -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 './BpkSwitch.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 STYLES from './BpkTable.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 STYLES from './BpkTable.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 STYLES from './BpkTable.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, deprecated } from '../../bpk-react-utils';
25
24
 
26
25
  import STYLES from './BpkText.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-text{margin:0}.bpk-text--xs{font-size:.75rem;line-height:1rem;font-weight:400}.bpk-text--sm{font-size:.875rem;line-height:1.25rem;font-weight:400}.bpk-text--base{font-size:1rem;line-height:1.5rem;font-weight:400}.bpk-text--lg{font-size:1.25rem;line-height:1.75rem;font-weight:400}.bpk-text--xl{font-size:1.5rem;line-height:2rem;font-weight:400}.bpk-text--xxl{font-size:2rem;line-height:2.5rem;font-weight:700}.bpk-text--xxxl{font-size:2.5rem;line-height:3rem;font-weight:700}.bpk-text--xxxxl{font-size:3rem;line-height:3.5rem;font-weight:700;letter-spacing:-.02em}.bpk-text--xxxxxl{font-size:4rem;line-height:4.5rem;font-weight:700;letter-spacing:-.02em}.bpk-text--caption{font-size:.75rem;line-height:1rem;font-weight:400}.bpk-text--footnote{font-size:.875rem;line-height:1.25rem;font-weight:400}.bpk-text--label-1{font-size:1rem;line-height:1.5rem;font-weight:700}.bpk-text--label-2{font-size:.875rem;line-height:1.25rem;font-weight:700}.bpk-text--body-default{font-size:1rem;line-height:1.5rem;font-weight:400}.bpk-text--body-longform{font-size:1.25rem;line-height:1.75rem;font-weight:400}.bpk-text--subheading{font-size:1.5rem;line-height:2rem;font-weight:400}.bpk-text--heading-1{font-size:2.5rem;line-height:3rem;font-weight:700}@media (max-width: 32.25rem){.bpk-text--heading-1{font-size:2rem;line-height:2.5rem;font-weight:700}}.bpk-text--heading-2{font-size:2rem;line-height:2.5rem;font-weight:700}@media (max-width: 32.25rem){.bpk-text--heading-2{font-size:1.5rem;line-height:1.75rem;font-weight:700}}.bpk-text--heading-3{font-size:1.5rem;line-height:1.75rem;font-weight:700}@media (max-width: 32.25rem){.bpk-text--heading-3{font-size:1.25rem;line-height:1.5rem;font-weight:700}}.bpk-text--heading-4{font-size:1.25rem;line-height:1.5rem;font-weight:700}@media (max-width: 32.25rem){.bpk-text--heading-4{font-size:1rem;line-height:1.25rem;font-weight:700}}.bpk-text--heading-5{font-size:1rem;line-height:1.25rem;font-weight:700}.bpk-text--hero-1{font-size:7.5rem;line-height:7.5rem;font-weight:700;letter-spacing:-.02em}.bpk-text--hero-2{font-size:6rem;line-height:6rem;font-weight:700;letter-spacing:-.02em}.bpk-text--hero-3{font-size:4.75rem;line-height:5.25rem;font-weight:700;letter-spacing:-.02em}.bpk-text--hero-4{font-size:4rem;line-height:4.5rem;font-weight:700;letter-spacing:-.02em}.bpk-text--hero-5{font-size:3rem;line-height:3.5rem;font-weight:700;letter-spacing:-.02em}.bpk-text--bold{font-weight:700}.bpk-text--black{font-weight:900}
18
+ @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-text{margin:0}.bpk-text--xs{font-size:.75rem;line-height:1rem;font-weight:400}.bpk-text--sm{font-size:.875rem;line-height:1.25rem;font-weight:400}.bpk-text--base{font-size:1rem;line-height:1.5rem;font-weight:400}.bpk-text--lg{font-size:1.25rem;line-height:1.75rem;font-weight:400}.bpk-text--xl{font-size:1.5rem;line-height:2rem;font-weight:400}.bpk-text--xxl{font-size:2rem;line-height:2.5rem;font-weight:700}.bpk-text--xxxl{font-size:2.5rem;line-height:3rem;font-weight:700}.bpk-text--xxxxl{font-size:3rem;line-height:3.5rem;font-weight:700;letter-spacing:-.02em}.bpk-text--xxxxxl{font-size:4rem;line-height:4.5rem;font-weight:700;letter-spacing:-.02em}.bpk-text--caption{font-size:.75rem;line-height:1rem;font-weight:400}.bpk-text--footnote{font-size:.875rem;line-height:1.25rem;font-weight:400}.bpk-text--label-1{font-size:1rem;line-height:1.5rem;font-weight:700}.bpk-text--label-2{font-size:.875rem;line-height:1.25rem;font-weight:700}.bpk-text--label-3{font-size:.75rem;line-height:1rem;font-weight:700}.bpk-text--body-default{font-size:1rem;line-height:1.5rem;font-weight:400}.bpk-text--body-longform{font-size:1.25rem;line-height:1.75rem;font-weight:400}.bpk-text--subheading{font-size:1.5rem;line-height:2rem;font-weight:400}.bpk-text--heading-1{font-size:2.5rem;line-height:3rem;font-weight:700}.bpk-text--heading-2{font-size:2rem;line-height:2.5rem;font-weight:700}.bpk-text--heading-3{font-size:1.5rem;line-height:1.75rem;font-weight:700}.bpk-text--heading-4{font-size:1.25rem;line-height:1.5rem;font-weight:700}.bpk-text--heading-5{font-size:1rem;line-height:1.25rem;font-weight:700}.bpk-text--hero-1{font-size:7.5rem;line-height:7.5rem;font-weight:700;letter-spacing:-.02em}.bpk-text--hero-2{font-size:6rem;line-height:6rem;font-weight:700;letter-spacing:-.02em}.bpk-text--hero-3{font-size:4.75rem;line-height:5.25rem;font-weight:700;letter-spacing:-.02em}.bpk-text--hero-4{font-size:4rem;line-height:4.5rem;font-weight:700;letter-spacing:-.02em}.bpk-text--hero-5{font-size:3rem;line-height:3.5rem;font-weight:700;letter-spacing:-.02em}.bpk-text--bold{font-weight:700}.bpk-text--black{font-weight:900}
@@ -20,7 +20,6 @@
20
20
 
21
21
  import PropTypes from 'prop-types';
22
22
  import React from 'react';
23
-
24
23
  import { cssModules } from '../../bpk-react-utils';
25
24
 
26
25
  import STYLES from './BpkTextarea.module.scss';
@@ -17,7 +17,6 @@
17
17
  */
18
18
 
19
19
  import React from 'react';
20
-
21
20
  import BpkLabel from '../../bpk-component-label';
22
21
  import BpkSelect from '../../bpk-component-select';
23
22
  import { cssModules } from '../../bpk-react-utils';
@@ -18,7 +18,6 @@
18
18
 
19
19
  import React, { Component } from 'react';
20
20
  import PropTypes from 'prop-types';
21
-
22
21
  import { wrapDisplayName } from '../../bpk-react-utils';
23
22
 
24
23
  import { getHtmlElement, THEME_CHANGE_EVENT } from './utils';
@@ -34,5 +34,4 @@ export default () => (
34
34
  | vertical | bool | false | false |
35
35
  | stubProps | object | false | {} |
36
36
  | stubClassName | string | false | null |
37
- | withNotches | bool | false | true |
38
37
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-ticket",
3
- "version": "4.1.12",
3
+ "version": "5.0.0",
4
4
  "description": "Backpack ticket component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -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 './BpkTicket.module.scss';
@@ -33,7 +32,6 @@ type Props = {
33
32
  stubProps: { [string]: any },
34
33
  padded: boolean,
35
34
  vertical: boolean,
36
- withNotches: boolean,
37
35
  className: ?string,
38
36
  stubClassName: ?string,
39
37
  href: ?string,
@@ -49,7 +47,6 @@ const BpkTicket = (props: Props) => {
49
47
  stubClassName,
50
48
  stubProps,
51
49
  vertical,
52
- withNotches,
53
50
  ...rest
54
51
  } = props;
55
52
 
@@ -57,7 +54,6 @@ const BpkTicket = (props: Props) => {
57
54
  'bpk-ticket',
58
55
  className,
59
56
  vertical && 'bpk-ticket--vertical',
60
- withNotches && 'bpk-ticket--with-notches',
61
57
  );
62
58
 
63
59
  const mainClassNames = getClassName(
@@ -66,7 +62,6 @@ const BpkTicket = (props: Props) => {
66
62
  padded && 'bpk-ticket__main--padded',
67
63
  vertical && 'bpk-ticket__main--vertical',
68
64
  !vertical && 'bpk-ticket__main--horizontal',
69
- withNotches && 'bpk-ticket__paper--with-notches',
70
65
  );
71
66
 
72
67
  const mainInnerClassNames = getClassName(
@@ -82,7 +77,6 @@ const BpkTicket = (props: Props) => {
82
77
  padded && 'bpk-ticket__stub--padded',
83
78
  vertical && 'bpk-ticket__stub--vertical',
84
79
  !vertical && 'bpk-ticket__stub--horizontal',
85
- withNotches && 'bpk-ticket__paper--with-notches',
86
80
  );
87
81
 
88
82
  const stubInnerClassNames = getClassName(
@@ -91,30 +85,6 @@ const BpkTicket = (props: Props) => {
91
85
  !vertical && 'bpk-ticket__stub-inner--horizontal',
92
86
  );
93
87
 
94
- const punchlineClassNames = getClassName(
95
- 'bpk-ticket__punchline',
96
- vertical &&
97
- (withNotches
98
- ? 'bpk-ticket__punchline--horizontal-with-notches'
99
- : 'bpk-ticket__punchline--horizontal'),
100
- !vertical &&
101
- (withNotches
102
- ? 'bpk-ticket__punchline--vertical-with-notches'
103
- : 'bpk-ticket__punchline--vertical'),
104
- );
105
-
106
- const startNotchClassNames = getClassName(
107
- 'bpk-ticket__notch',
108
- vertical && 'bpk-ticket__notch--left',
109
- !vertical && 'bpk-ticket__notch--top',
110
- );
111
-
112
- const endNotchClassNames = getClassName(
113
- 'bpk-ticket__notch',
114
- vertical && 'bpk-ticket__notch--right',
115
- !vertical && 'bpk-ticket__notch--bottom',
116
- );
117
-
118
88
  const mainContent = padded ? (
119
89
  children
120
90
  ) : (
@@ -131,15 +101,6 @@ const BpkTicket = (props: Props) => {
131
101
  <div key="main" className={mainClassNames}>
132
102
  {mainContent}
133
103
  </div>,
134
- <div
135
- key="punchline"
136
- className={punchlineClassNames}
137
- role="presentation"
138
- aria-hidden="true"
139
- >
140
- {withNotches && <div className={startNotchClassNames} />}
141
- {withNotches && <div className={endNotchClassNames} />}
142
- </div>,
143
104
  // $FlowFixMe[cannot-spread-indexer] - inexact rest. See 'decisions/flowfixme.md'.
144
105
  <div key="stub" className={stubClassNames} {...stubProps}>
145
106
  {stubContent}
@@ -172,7 +133,6 @@ BpkTicket.propTypes = {
172
133
  vertical: PropTypes.bool,
173
134
  stubClassName: PropTypes.string,
174
135
  stubProps: PropTypes.object, // eslint-disable-line react/forbid-prop-types
175
- withNotches: PropTypes.bool,
176
136
  };
177
137
 
178
138
  BpkTicket.defaultProps = {
@@ -182,7 +142,6 @@ BpkTicket.defaultProps = {
182
142
  vertical: false,
183
143
  stubClassName: null,
184
144
  stubProps: {},
185
- withNotches: true,
186
145
  };
187
146
 
188
147
  export default BpkTicket;
@@ -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-ticket{position:relative;display:block;display:flex;flex-direction:row;align-items:stretch;color:#111236;text-decoration:none;cursor:pointer;box-shadow:0px 1px 3px 0px rgba(37,32,31,0.3);border-radius:.375rem;z-index:0}.bpk-ticket::after{position:absolute;top:0;right:0;bottom:0;left:0;content:'';display:block;z-index:-1;transition:opacity 200ms ease-in-out;border-radius:inherit;box-shadow:0px 4px 14px 0px rgba(37,32,31,0.25);opacity:0;pointer-events:none}.bpk-no-touch-support .bpk-ticket:hover:not(:active):not(:disabled)::after{opacity:1}.bpk-no-touch-support .bpk-ticket:hover:not(:active):not(:disabled) .bpk-ticket__paper::after{opacity:1}:global(.bpk-no-touch-support) .bpk-ticket:hover:not(:active):not(:disabled)::after{opacity:1}:global(.bpk-no-touch-support) .bpk-ticket:hover:not(:active):not(:disabled) .bpk-ticket__paper::after{opacity:1}.bpk-ticket--vertical{flex-direction:column}.bpk-ticket--with-notches{box-shadow:none}.bpk-ticket--with-notches::after{content:none}.bpk-ticket__paper{position:relative;background-color:#fff}.bpk-ticket__paper--with-notches{box-shadow:0px 1px 3px 0px rgba(37,32,31,0.3);z-index:0}.bpk-ticket__paper--with-notches::after{position:absolute;top:0;right:0;bottom:0;left:0;content:'';display:block;z-index:-1;transition:opacity 200ms ease-in-out;border-radius:inherit;box-shadow:0px 4px 14px 0px rgba(37,32,31,0.25);opacity:0;pointer-events:none}.bpk-ticket__main{flex:2 1 auto}.bpk-ticket__main--horizontal{border-radius:.375rem 0 0 .375rem}html[dir='rtl'] .bpk-ticket__main--horizontal{border-radius:0 .375rem .375rem 0}.bpk-ticket__main--vertical{border-radius:.375rem .375rem 0 0}.bpk-ticket__main--padded{padding:1rem}.bpk-ticket__main-inner{height:100%;overflow:hidden}.bpk-ticket__main-inner--horizontal{border-radius:.375rem 0 0 .375rem}html[dir='rtl'] .bpk-ticket__main-inner--horizontal{border-radius:0 .375rem .375rem 0}.bpk-ticket__main-inner--vertical{border-radius:.375rem .375rem 0 0}.bpk-ticket__stub{flex:1 1 auto}.bpk-ticket__stub--horizontal{min-width:30%;border-radius:0 .375rem .375rem 0}html[dir='rtl'] .bpk-ticket__stub--horizontal{border-radius:.375rem 0 0 .375rem}.bpk-ticket__stub--vertical{border-radius:0 0 .375rem .375rem}.bpk-ticket__stub--padded{padding:1rem}.bpk-ticket__stub-inner{height:100%;overflow:hidden}.bpk-ticket__stub-inner--horizontal{min-width:30%;border-radius:0 .375rem .375rem 0}html[dir='rtl'] .bpk-ticket__stub-inner--horizontal{border-radius:.375rem 0 0 .375rem}.bpk-ticket__stub-inner--vertical{border-radius:0 0 .375rem .375rem}.bpk-ticket__punchline{position:relative;z-index:1;flex:0 0 auto;background-color:#fff}.bpk-ticket__punchline--horizontal{height:.125rem;background-image:linear-gradient(#dddde5, #dddde5);background-repeat:repeat-x;background-position:0 50%;background-size:.5rem .125rem}.bpk-ticket__punchline--horizontal-with-notches{height:1rem;margin:auto .5rem;padding:0 .5rem;background-image:linear-gradient(#dddde5, #dddde5);background-repeat:repeat-x;background-position:0 50%;background-size:.5rem .125rem}.bpk-ticket__punchline--vertical{width:.125rem;background-image:linear-gradient(#dddde5, #dddde5);background-repeat:repeat-y;background-position:50% 0;background-size:.125rem .5rem}.bpk-ticket__punchline--vertical-with-notches{width:1rem;margin:.5rem auto;padding:.5rem 0;background-image:linear-gradient(#dddde5, #dddde5);background-repeat:repeat-y;background-position:50% 0;background-size:.125rem .5rem}.bpk-ticket__punchline--fallback{display:table-cell;width:.125rem;background-image:linear-gradient(#dddde5, #dddde5);background-repeat:repeat-y;background-position:50% 0;background-size:.125rem .5rem}.bpk-ticket__notch{position:absolute;width:1rem;height:.5rem;overflow:hidden}.bpk-ticket__notch::after{position:relative;content:'';display:block;width:2rem;height:2rem;transform:translate3d(0, 0, 0);border:.5rem solid #fff;border-radius:1rem;box-shadow:0px 1px 3px 0px rgba(37,32,31,0.3) inset}.bpk-ticket__notch--top{top:-.5rem}.bpk-ticket__notch--top::after{right:-50%;bottom:200%;left:-50%}.bpk-ticket__notch--right{right:-.5rem;width:.5rem;height:1rem}.bpk-ticket__notch--right::after{right:100%;bottom:50%}html[dir='rtl'] .bpk-ticket__notch--right::after{right:auto;left:200%}.bpk-ticket__notch--bottom{bottom:-.5rem}.bpk-ticket__notch--bottom::after{right:-50%;bottom:100%;left:-50%}.bpk-ticket__notch--left{left:-.5rem;width:.5rem;height:1rem}.bpk-ticket__notch--left::after{right:200%;bottom:50%}html[dir='rtl'] .bpk-ticket__notch--left::after{right:auto;left:100%}
18
+ @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-ticket{position:relative;display:block;display:flex;flex-direction:row;align-items:stretch;flex:none;color:#111236;text-decoration:none;box-shadow:0 5px 12px rgba(0,0,0,0.08),0 3px 12px rgba(0,0,0,0.08);cursor:pointer;border-radius:.75rem;z-index:0}.bpk-ticket::after{position:absolute;top:0;right:0;bottom:0;left:0;content:'';display:block;z-index:-1;transition:opacity 200ms ease-in-out;border-radius:inherit;box-shadow:0px 4px 14px 0px rgba(37,32,31,0.25);opacity:0;pointer-events:none}.bpk-no-touch-support .bpk-ticket:hover:not(:active):not(:disabled)::after{opacity:1}.bpk-no-touch-support .bpk-ticket:hover:not(:active):not(:disabled) .bpk-ticket__paper::after{opacity:1}:global(.bpk-no-touch-support) .bpk-ticket:hover:not(:active):not(:disabled)::after{opacity:1}:global(.bpk-no-touch-support) .bpk-ticket:hover:not(:active):not(:disabled) .bpk-ticket__paper::after{opacity:1}.bpk-ticket--vertical{flex-direction:column}.bpk-ticket__paper{position:relative;background-color:#fff}.bpk-ticket__main{flex:2 1 auto}.bpk-ticket__main--horizontal{border-radius:.75rem 0 0 .75rem}html[dir='rtl'] .bpk-ticket__main--horizontal{border-radius:0 .75rem .75rem 0}.bpk-ticket__main--vertical{border-radius:.75rem .75rem 0 0}.bpk-ticket__main--padded{padding:1rem}.bpk-ticket__main-inner{height:100%;overflow:hidden}.bpk-ticket__main-inner--horizontal{border-radius:.75rem 0 0 .75rem}html[dir='rtl'] .bpk-ticket__main-inner--horizontal{border-radius:0 .75rem .75rem 0}.bpk-ticket__main-inner--vertical{border-radius:.75rem .75rem 0 0}.bpk-ticket__stub{flex:1 1 auto}.bpk-ticket__stub--horizontal{min-width:30%;border-radius:0 .75rem .75rem 0;box-shadow:inset .0625rem 0 0 #cdcdd7}html[dir='rtl'] .bpk-ticket__stub--horizontal{border-radius:.75rem 0 0 .75rem;box-shadow:inset -.0625rem 0 0 #cdcdd7}.bpk-ticket__stub--vertical{border-radius:0 0 .75rem .75rem;box-shadow:inset 0 .0625rem 0 #cdcdd7}.bpk-ticket__stub--padded{padding:1rem}.bpk-ticket__stub-inner{height:100%;overflow:hidden}.bpk-ticket__stub-inner--horizontal{min-width:30%;border-radius:0 .75rem .75rem 0;box-shadow:inset .0625rem 0 0 #cdcdd7}html[dir='rtl'] .bpk-ticket__stub-inner--horizontal{border-radius:.75rem 0 0 .75rem;box-shadow:inset -.0625rem 0 0 #cdcdd7}.bpk-ticket__stub-inner--vertical{border-radius:0 0 .75rem .75rem;box-shadow:inset 0 .0625rem 0 #cdcdd7}
@@ -41,7 +41,6 @@ $bpk-spacing-v2: true;
41
41
  }
42
42
 
43
43
  .bpk-ticket {
44
- $notch-size: bpk-spacing-md();
45
44
  $ticket-padding: bpk-spacing-base();
46
45
 
47
46
  position: relative;
@@ -49,12 +48,14 @@ $bpk-spacing-v2: true;
49
48
  display: flex;
50
49
  flex-direction: row;
51
50
  align-items: stretch;
51
+ flex: none;
52
52
  color: $bpk-card-color;
53
53
  text-decoration: none;
54
+ box-shadow: 0 5px 12px rgba($bpk-button-outline-background-color, 0.08),
55
+ 0 3px 12px rgba($bpk-button-outline-background-color, 0.08);
54
56
  cursor: pointer;
55
57
 
56
- @include bpk-box-shadow-sm;
57
- @include bpk-border-radius-sm;
58
+ @include bpk-border-radius-md;
58
59
  @include hidden-box-shadow-after;
59
60
 
60
61
  @include bpk-hover {
@@ -71,35 +72,22 @@ $bpk-spacing-v2: true;
71
72
  flex-direction: column;
72
73
  }
73
74
 
74
- &--with-notches {
75
- box-shadow: none;
76
-
77
- &::after {
78
- content: none;
79
- }
80
- }
81
-
82
75
  &__paper {
83
76
  position: relative;
84
77
  background-color: $bpk-card-background-color;
85
-
86
- &--with-notches {
87
- @include bpk-box-shadow-sm;
88
- @include hidden-box-shadow-after;
89
- }
90
78
  }
91
79
 
92
80
  @mixin main-styles {
93
81
  &--horizontal {
94
- border-radius: $bpk-border-radius-sm 0 0 $bpk-border-radius-sm;
82
+ border-radius: $bpk-border-radius-md 0 0 $bpk-border-radius-md;
95
83
 
96
84
  @include bpk-rtl {
97
- border-radius: 0 $bpk-border-radius-sm $bpk-border-radius-sm 0;
85
+ border-radius: 0 $bpk-border-radius-md $bpk-border-radius-md 0;
98
86
  }
99
87
  }
100
88
 
101
89
  &--vertical {
102
- border-radius: $bpk-border-radius-sm $bpk-border-radius-sm 0 0;
90
+ border-radius: $bpk-border-radius-md $bpk-border-radius-md 0 0;
103
91
  }
104
92
  }
105
93
 
@@ -123,15 +111,18 @@ $bpk-spacing-v2: true;
123
111
  @mixin stub-styles {
124
112
  &--horizontal {
125
113
  min-width: 30%;
126
- border-radius: 0 $bpk-border-radius-sm $bpk-border-radius-sm 0;
114
+ border-radius: 0 $bpk-border-radius-md $bpk-border-radius-md 0;
115
+ box-shadow: inset $bpk-one-pixel-rem 0 0 $bpk-color-sky-gray-tint-05;
127
116
 
128
117
  @include bpk-rtl {
129
- border-radius: $bpk-border-radius-sm 0 0 $bpk-border-radius-sm;
118
+ border-radius: $bpk-border-radius-md 0 0 $bpk-border-radius-md;
119
+ box-shadow: inset (-$bpk-one-pixel-rem) 0 0 $bpk-color-sky-gray-tint-05;
130
120
  }
131
121
  }
132
122
 
133
123
  &--vertical {
134
- border-radius: 0 0 $bpk-border-radius-sm $bpk-border-radius-sm;
124
+ border-radius: 0 0 $bpk-border-radius-md $bpk-border-radius-md;
125
+ box-shadow: inset 0 $bpk-one-pixel-rem 0 $bpk-color-sky-gray-tint-05;
135
126
  }
136
127
  }
137
128
 
@@ -151,147 +142,4 @@ $bpk-spacing-v2: true;
151
142
 
152
143
  @include stub-styles;
153
144
  }
154
-
155
- &__punchline {
156
- position: relative;
157
- z-index: 1;
158
- flex: 0 0 auto;
159
- background-color: $bpk-card-background-color;
160
-
161
- &--horizontal {
162
- height: $bpk-one-pixel-rem * 2;
163
- background-image: linear-gradient(
164
- $bpk-color-sky-gray-tint-06,
165
- $bpk-color-sky-gray-tint-06
166
- );
167
- background-repeat: repeat-x;
168
- background-position: 0 50%;
169
- background-size: 8 * $bpk-one-pixel-rem 2 * $bpk-one-pixel-rem;
170
- }
171
-
172
- &--horizontal-with-notches {
173
- height: $notch-size * 2;
174
- margin: auto $notch-size;
175
- padding: 0 $notch-size;
176
- background-image: linear-gradient(
177
- $bpk-color-sky-gray-tint-06,
178
- $bpk-color-sky-gray-tint-06
179
- );
180
- background-repeat: repeat-x;
181
- background-position: 0 50%;
182
- background-size: 8 * $bpk-one-pixel-rem 2 * $bpk-one-pixel-rem;
183
- }
184
-
185
- &--vertical {
186
- width: $bpk-one-pixel-rem * 2;
187
- background-image: linear-gradient(
188
- $bpk-color-sky-gray-tint-06,
189
- $bpk-color-sky-gray-tint-06
190
- );
191
- background-repeat: repeat-y;
192
- background-position: 50% 0;
193
- background-size: 2 * $bpk-one-pixel-rem 8 * $bpk-one-pixel-rem;
194
- }
195
-
196
- &--vertical-with-notches {
197
- width: $notch-size * 2;
198
- margin: $notch-size auto;
199
- padding: $notch-size 0;
200
- background-image: linear-gradient(
201
- $bpk-color-sky-gray-tint-06,
202
- $bpk-color-sky-gray-tint-06
203
- );
204
- background-repeat: repeat-y;
205
- background-position: 50% 0;
206
- background-size: 2 * $bpk-one-pixel-rem 8 * $bpk-one-pixel-rem;
207
- }
208
-
209
- &--fallback {
210
- display: table-cell;
211
- width: 2 * $bpk-one-pixel-rem;
212
- background-image: linear-gradient(
213
- $bpk-color-sky-gray-tint-06,
214
- $bpk-color-sky-gray-tint-06
215
- );
216
- background-repeat: repeat-y;
217
- background-position: 50% 0;
218
- background-size: 2 * $bpk-one-pixel-rem 8 * $bpk-one-pixel-rem;
219
- }
220
- }
221
-
222
- &__notch {
223
- position: absolute;
224
- width: $notch-size * 2;
225
- height: $notch-size;
226
- overflow: hidden;
227
-
228
- &::after {
229
- position: relative;
230
- content: '';
231
- display: block;
232
- width: $notch-size * 4;
233
- height: $notch-size * 4;
234
- transform: translate3d(
235
- 0,
236
- 0,
237
- 0
238
- ); // BPK-1011 fix rendering bug in safari 11
239
-
240
- border: $notch-size solid $bpk-color-white;
241
- border-radius: $notch-size * 2;
242
- box-shadow: $bpk-box-shadow-sm inset;
243
- }
244
-
245
- &--top {
246
- top: -$notch-size;
247
-
248
- &::after {
249
- right: -50%;
250
- bottom: 200%;
251
- left: -50%;
252
- }
253
- }
254
-
255
- &--right {
256
- right: -$notch-size;
257
- width: $notch-size;
258
- height: $notch-size * 2;
259
-
260
- &::after {
261
- right: 100%;
262
- bottom: 50%;
263
-
264
- @include bpk-rtl {
265
- right: auto;
266
- left: 200%;
267
- }
268
- }
269
- }
270
-
271
- &--bottom {
272
- bottom: -$notch-size;
273
-
274
- &::after {
275
- right: -50%;
276
- bottom: 100%;
277
- left: -50%;
278
- }
279
- }
280
-
281
- &--left {
282
- left: -$notch-size;
283
- width: $notch-size;
284
- height: $notch-size * 2;
285
-
286
- &::after {
287
- right: 200%;
288
- bottom: 50%;
289
-
290
- @include bpk-rtl {
291
- right: auto;
292
- left: 100%;
293
- }
294
- }
295
- }
296
- }
297
145
  }
@@ -26,7 +26,6 @@ The actual component that developers create (i.e. the default export from this p
26
26
 
27
27
  import PropTypes from 'prop-types';
28
28
  import React, { type Node } from 'react';
29
-
30
29
  import { TransitionInitialMount, cssModules } from '../../bpk-react-utils';
31
30
 
32
31
  import STYLES from './BpkTooltip.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-tooltip-portal{z-index:900}.bpk-tooltip-portal[x-placement='top']{margin-bottom:.25rem}.bpk-tooltip-portal[x-placement='right']{margin-left:.25rem}.bpk-tooltip-portal[x-placement='bottom']{margin-top:.25rem}.bpk-tooltip-portal[x-placement='left']{margin-right:.25rem}.bpk-tooltip{transition:opacity 200ms ease-in-out,transform 200ms ease-in-out;outline:0;opacity:1}.bpk-tooltip--appear{opacity:0}.bpk-tooltip-portal[x-placement='top'] .bpk-tooltip--appear:not(.bpk-tooltip--appear-active){transform:translate(0, -1rem);transition:none}.bpk-tooltip-portal[x-placement='right'] .bpk-tooltip--appear:not(.bpk-tooltip--appear-active){transform:translate(1rem, 0);transition:none}.bpk-tooltip-portal[x-placement='bottom'] .bpk-tooltip--appear:not(.bpk-tooltip--appear-active){transform:translate(0, 1rem);transition:none}.bpk-tooltip-portal[x-placement='left'] .bpk-tooltip--appear:not(.bpk-tooltip--appear-active){transform:translate(-1rem, 0);transition:none}.bpk-tooltip--appear-active{transform:translate(0, 0);transition:opacity 200ms ease-in-out,transform 200ms ease-in-out;opacity:1}.bpk-tooltip__arrow{position:absolute;pointer-events:none}.bpk-tooltip__arrow::before,.bpk-tooltip__arrow::after{position:absolute;content:' ';display:block}.bpk-tooltip__arrow::before{border:.3125rem solid transparent}.bpk-tooltip__arrow::after{border:.25rem solid transparent}.bpk-tooltip-portal[x-placement='top'] .bpk-tooltip__arrow{top:100%;width:.5rem;height:.25rem}.bpk-tooltip-portal[x-placement='top'] .bpk-tooltip__arrow::before{bottom:-.3125rem;margin-left:-.0625rem;border-top-color:#dddde5}html[dir='rtl'] .bpk-tooltip-portal[x-placement='top'] .bpk-tooltip__arrow::before{margin-right:-.0625rem;margin-left:0}.bpk-tooltip-portal[x-placement='top'] .bpk-tooltip__arrow::after{bottom:-.1875rem;border-top-color:#fff}.bpk-tooltip-portal[x-placement='right'] .bpk-tooltip__arrow{right:100%;width:.25rem;height:.5rem}.bpk-tooltip-portal[x-placement='right'] .bpk-tooltip__arrow::before{left:-.3125rem;margin-top:-.0625rem;border-right-color:#dddde5}.bpk-tooltip-portal[x-placement='right'] .bpk-tooltip__arrow::after{left:-.1875rem;border-right-color:#fff}.bpk-tooltip-portal[x-placement='bottom'] .bpk-tooltip__arrow{bottom:100%;width:.5rem;height:.25rem}.bpk-tooltip-portal[x-placement='bottom'] .bpk-tooltip__arrow::before{top:-.3125rem;margin-left:-.0625rem;border-bottom-color:#dddde5}html[dir='rtl'] .bpk-tooltip-portal[x-placement='bottom'] .bpk-tooltip__arrow::before{margin-right:-.0625rem;margin-left:0}.bpk-tooltip-portal[x-placement='bottom'] .bpk-tooltip__arrow::after{top:-.1875rem;border-bottom-color:#fff}.bpk-tooltip-portal[x-placement='left'] .bpk-tooltip__arrow{left:100%;width:.25rem;height:.5rem}.bpk-tooltip-portal[x-placement='left'] .bpk-tooltip__arrow::before{right:-.3125rem;margin-top:-.0625rem;border-left-color:#dddde5}.bpk-tooltip-portal[x-placement='left'] .bpk-tooltip__arrow::after{right:-.1875rem;border-left-color:#fff}.bpk-tooltip-portal[x-placement='top'] .bpk-tooltip__arrow--dark{top:100%;width:.5rem;height:.25rem}.bpk-tooltip-portal[x-placement='top'] .bpk-tooltip__arrow--dark::before{bottom:-.3125rem;margin-left:-.0625rem;border-top-color:#111236}html[dir='rtl'] .bpk-tooltip-portal[x-placement='top'] .bpk-tooltip__arrow--dark::before{margin-right:-.0625rem;margin-left:0}.bpk-tooltip-portal[x-placement='top'] .bpk-tooltip__arrow--dark::after{bottom:-.1875rem;border-top-color:#111236}.bpk-tooltip-portal[x-placement='right'] .bpk-tooltip__arrow--dark{right:100%;width:.25rem;height:.5rem}.bpk-tooltip-portal[x-placement='right'] .bpk-tooltip__arrow--dark::before{left:-.3125rem;margin-top:-.0625rem;border-right-color:#111236}.bpk-tooltip-portal[x-placement='right'] .bpk-tooltip__arrow--dark::after{left:-.1875rem;border-right-color:#111236}.bpk-tooltip-portal[x-placement='bottom'] .bpk-tooltip__arrow--dark{bottom:100%;width:.5rem;height:.25rem}.bpk-tooltip-portal[x-placement='bottom'] .bpk-tooltip__arrow--dark::before{top:-.3125rem;margin-left:-.0625rem;border-bottom-color:#111236}html[dir='rtl'] .bpk-tooltip-portal[x-placement='bottom'] .bpk-tooltip__arrow--dark::before{margin-right:-.0625rem;margin-left:0}.bpk-tooltip-portal[x-placement='bottom'] .bpk-tooltip__arrow--dark::after{top:-.1875rem;border-bottom-color:#111236}.bpk-tooltip-portal[x-placement='left'] .bpk-tooltip__arrow--dark{left:100%;width:.25rem;height:.5rem}.bpk-tooltip-portal[x-placement='left'] .bpk-tooltip__arrow--dark::before{right:-.3125rem;margin-top:-.0625rem;border-left-color:#111236}.bpk-tooltip-portal[x-placement='left'] .bpk-tooltip__arrow--dark::after{right:-.1875rem;border-left-color:#111236}.bpk-tooltip__inner{overflow:hidden;border:.0625rem solid #dddde5;background-color:#fff;border-radius:.375rem;box-shadow:0px 4px 14px 0px rgba(37,32,31,0.25)}.bpk-tooltip__inner--padded{padding:.25rem 0.5rem}.bpk-tooltip__inner--dark{color:#fff;border:.0625rem solid #111236;background-color:#111236;border-radius:.375rem;box-shadow:0px 4px 14px 0px rgba(37,32,31,0.25)}
18
+ @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-tooltip-portal{z-index:900}.bpk-tooltip{transition:opacity 200ms ease-in-out,transform 200ms ease-in-out;outline:0;opacity:1}.bpk-tooltip--appear{opacity:0}.bpk-tooltip-portal[data-popper-placement='top'] .bpk-tooltip--appear:not(.bpk-tooltip--appear-active){transform:translate(0, -1rem);transition:none}.bpk-tooltip-portal[data-popper-placement='right'] .bpk-tooltip--appear:not(.bpk-tooltip--appear-active){transform:translate(1rem, 0);transition:none}.bpk-tooltip-portal[data-popper-placement='bottom'] .bpk-tooltip--appear:not(.bpk-tooltip--appear-active){transform:translate(0, 1rem);transition:none}.bpk-tooltip-portal[data-popper-placement='left'] .bpk-tooltip--appear:not(.bpk-tooltip--appear-active){transform:translate(-1rem, 0);transition:none}.bpk-tooltip--appear-active{transform:translate(0, 0);transition:opacity 200ms ease-in-out,transform 200ms ease-in-out;opacity:1}.bpk-tooltip__arrow{position:aboslute;width:.5rem;height:.5rem;transform:rotate(45deg);border:.0625rem solid transparent;background:inherit;background-color:#fff}.bpk-tooltip-portal[data-popper-placement='top'] .bpk-tooltip__arrow{bottom:-.1875rem;border-right-color:#dddde5;border-bottom-color:#dddde5}.bpk-tooltip-portal[data-popper-placement='right'] .bpk-tooltip__arrow{left:-.1875rem;border-bottom-color:#dddde5;border-left-color:#dddde5}.bpk-tooltip-portal[data-popper-placement='bottom'] .bpk-tooltip__arrow{top:-.1875rem;border-top-color:#dddde5;border-left-color:#dddde5}.bpk-tooltip-portal[data-popper-placement='left'] .bpk-tooltip__arrow{right:-.1875rem;border-top-color:#dddde5;border-right-color:#dddde5}.bpk-tooltip__arrow--dark{background-color:#111236}.bpk-tooltip-portal[data-popper-placement='top'] .bpk-tooltip__arrow--dark{border-right-color:#111236;border-bottom-color:#111236}.bpk-tooltip-portal[data-popper-placement='right'] .bpk-tooltip__arrow--dark{border-bottom-color:#111236;border-left-color:#111236}.bpk-tooltip-portal[data-popper-placement='bottom'] .bpk-tooltip__arrow--dark{border-top-color:#111236;border-left-color:#111236}.bpk-tooltip-portal[data-popper-placement='left'] .bpk-tooltip__arrow--dark{border-top-color:#111236;border-right-color:#111236}.bpk-tooltip__inner{overflow:hidden;border:.0625rem solid #dddde5;background-color:#fff;border-radius:.375rem;box-shadow:0px 4px 14px 0px rgba(37,32,31,0.25)}.bpk-tooltip__inner--padded{padding:0.25rem .5rem}.bpk-tooltip__inner--dark{color:#fff;border:.0625rem solid #111236;background-color:#111236;border-radius:.375rem;box-shadow:0px 4px 14px 0px rgba(37,32,31,0.25)}
@@ -21,7 +21,6 @@
21
21
  import { createPopper, basePlacements } from '@popperjs/core';
22
22
  import PropTypes from 'prop-types';
23
23
  import React, { Component, type Node, type Element } from 'react';
24
-
25
24
  import { PortalV1, cssModules } from '../../bpk-react-utils';
26
25
 
27
26
  import BpkTooltip, {
@@ -155,7 +155,7 @@ class Portal extends Component {
155
155
  getTargetElement() {
156
156
  return typeof this.props.target === 'function'
157
157
  ? this.props.target()
158
- : this.props.target;
158
+ : this.props.target?.ref.current;
159
159
  }
160
160
 
161
161
  getRenderTarget() {
@@ -18,7 +18,6 @@
18
18
 
19
19
  import React from 'react';
20
20
  import PropTypes from 'prop-types';
21
-
22
21
  import { TransitionInitialMount, cssModules } from '../../bpk-react-utils';
23
22
 
24
23
  import STYLES from './bpk-scrim.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-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;transition:opacity 200ms ease-in-out;background-color:#b2b2bf;opacity:.7;overflow:hidden}.bpk-scrim--dark{background-color:#111236;opacity:.95}@media (max-width: 32.25rem){.bpk-scrim--full-screen{opacity:1}}.bpk-scrim--appear{opacity:0}.bpk-scrim--appear-active{opacity:.7}
18
+ @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;transition:opacity 200ms ease-in-out;background-color:#b2b2bf;opacity:.7;overflow:hidden}.bpk-scrim--dark{background-color:#111236;opacity:.95}@media (max-width: 32rem){.bpk-scrim--full-screen{opacity:1}}.bpk-scrim--appear{opacity:0}.bpk-scrim--appear-active{opacity:.7}
@@ -20,7 +20,6 @@ import focusScope from 'a11y-focus-scope';
20
20
  import focusStore from 'a11y-focus-store';
21
21
  import PropTypes from 'prop-types';
22
22
  import React, { Component } from 'react';
23
-
24
23
  import {
25
24
  cssModules,
26
25
  isDeviceIpad,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyscanner/backpack-web",
3
- "version": "4.1.0",
3
+ "version": "6.0.0-alpha.1",
4
4
  "description": "Backpack Design System web library",
5
5
  "repository": {
6
6
  "type": "git",