@skyscanner/backpack-web 33.3.1 → 34.0.0-premajor

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 (263) hide show
  1. package/bpk-component-accordion/index.js +1 -1
  2. package/bpk-component-accordion/src/BpkAccordionItem.js +12 -13
  3. package/bpk-component-accordion/src/BpkAccordionItem.module.css +1 -1
  4. package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +5 -3
  5. package/bpk-component-banner-alert/index.js +1 -1
  6. package/bpk-component-banner-alert/src/AnimateAndFade.js +37 -35
  7. package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +12 -6
  8. package/bpk-component-barchart/src/BpkBarchart.js +9 -10
  9. package/bpk-component-barchart/src/BpkBarchartBar.js +1 -2
  10. package/bpk-component-barchart/src/BpkBarchartBars.js +2 -2
  11. package/bpk-component-barchart/src/BpkBarchartDefs.js +1 -2
  12. package/bpk-component-barchart/src/BpkChartAxis.js +1 -2
  13. package/bpk-component-barchart/src/BpkChartDataTable.js +1 -2
  14. package/bpk-component-bottom-sheet/src/BpkBottomSheet.js +4 -6
  15. package/bpk-component-breadcrumb/src/BpkBreadcrumb.js +1 -2
  16. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +18 -14
  17. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.module.css +1 -1
  18. package/bpk-component-breakpoint/index.d.ts +2 -1
  19. package/bpk-component-breakpoint/src/BpkBreakpoint.js +5 -19
  20. package/bpk-component-breakpoint/src/useMediaQuery.js +10 -12
  21. package/bpk-component-button/index.js +5 -5
  22. package/bpk-component-button/src/BpkButtonDestructive.js +10 -9
  23. package/bpk-component-button/src/BpkButtonFeatured.js +10 -9
  24. package/bpk-component-button/src/BpkButtonLink.js +11 -10
  25. package/bpk-component-button/src/BpkButtonLinkOnDark.js +11 -10
  26. package/bpk-component-button/src/BpkButtonPrimary.js +2 -2
  27. package/bpk-component-button/src/BpkButtonPrimaryOnDark.js +10 -9
  28. package/bpk-component-button/src/BpkButtonPrimaryOnLight.js +10 -9
  29. package/bpk-component-button/src/BpkButtonSecondary.js +10 -10
  30. package/bpk-component-button/src/BpkButtonSecondaryOnDark.js +10 -9
  31. package/bpk-component-calendar/index.js +1 -1
  32. package/bpk-component-calendar/src/BpkCalendarContainer.js +3 -3
  33. package/bpk-component-calendar/src/BpkCalendarGrid.js +3 -2
  34. package/bpk-component-calendar/src/BpkCalendarGrid.module.css +1 -1
  35. package/bpk-component-calendar/src/BpkCalendarGridHeader.js +4 -1
  36. package/bpk-component-calendar/src/BpkCalendarGridTransition.js +6 -4
  37. package/bpk-component-calendar/src/BpkCalendarNav.js +10 -5
  38. package/bpk-component-calendar/src/Week.js +6 -3
  39. package/bpk-component-calendar/src/composeCalendar.js +9 -4
  40. package/bpk-component-calendar/src/date-utils.js +14 -14
  41. package/bpk-component-card/src/BpkCardWrapper.js +1 -2
  42. package/bpk-component-card/src/BpkDividedCard.js +19 -15
  43. package/bpk-component-card-button/src/BpkSaveButton.js +14 -6
  44. package/bpk-component-checkbox/src/BpkCheckbox.js +1 -2
  45. package/bpk-component-chip/index.d.ts +3 -5
  46. package/bpk-component-chip/index.js +3 -2
  47. package/bpk-component-chip/src/BpkDismissibleChip.js +7 -2
  48. package/bpk-component-chip/src/BpkIconChip.d.ts +25 -0
  49. package/bpk-component-chip/src/BpkIconChip.js +31 -0
  50. package/bpk-component-chip/src/BpkSelectableChip.d.ts +0 -2
  51. package/bpk-component-chip/src/BpkSelectableChip.js +5 -6
  52. package/bpk-component-chip/src/BpkSelectableChip.module.css +1 -1
  53. package/bpk-component-chip/src/commonTypes.d.ts +1 -1
  54. package/bpk-component-chip/src/commonTypes.js +1 -24
  55. package/bpk-component-close-button/src/BpkCloseButton.js +3 -2
  56. package/bpk-component-close-button/src/BpkCloseButton.module.css +1 -1
  57. package/bpk-component-content-cards/src/BpkContentCard.js +9 -4
  58. package/bpk-component-content-cards/src/BpkContentCards.js +2 -7
  59. package/bpk-component-content-cards/src/BpkContentCards.module.css +1 -1
  60. package/bpk-component-datatable/src/BpkDataTable.js +4 -4
  61. package/bpk-component-datatable/src/BpkDataTableHeader.js +14 -11
  62. package/bpk-component-datatable/src/BpkDataTableHeader.module.css +1 -1
  63. package/bpk-component-datepicker/src/BpkDatepicker.js +3 -5
  64. package/bpk-component-description-list/index.js +1 -1
  65. package/bpk-component-description-list/src/ComponentFactory.js +10 -5
  66. package/bpk-component-dialog/src/BpkDialog.js +7 -6
  67. package/bpk-component-dialog/src/BpkDialog.module.css +1 -1
  68. package/bpk-component-dialog/src/BpkDialogInner.js +7 -5
  69. package/bpk-component-drawer/src/BpkDrawer.js +1 -4
  70. package/bpk-component-drawer/src/BpkDrawerContent.js +8 -7
  71. package/bpk-component-fieldset/src/BpkFieldset.js +10 -9
  72. package/bpk-component-flare/index.js +2 -2
  73. package/bpk-component-flare/src/BpkContentBubble.js +5 -3
  74. package/bpk-component-flare/src/BpkFlareBar.js +15 -7
  75. package/bpk-component-flare/src/__generated__/corner-radius.d.ts +6 -0
  76. package/bpk-component-flare/src/__generated__/pointer.d.ts +6 -0
  77. package/bpk-component-floating-notification/src/BpkFloatingNotification.js +10 -4
  78. package/bpk-component-form-validation/src/BpkFormValidation.js +6 -6
  79. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.js +10 -14
  80. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.css +1 -1
  81. package/bpk-component-grid-toggle/src/BpkGridToggle.js +8 -6
  82. package/bpk-component-horizontal-nav/src/BpkHorizontalNav.js +16 -14
  83. package/bpk-component-horizontal-nav/src/BpkHorizontalNav.module.css +1 -1
  84. package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.js +2 -2
  85. package/bpk-component-icon/index.js +1 -1
  86. package/bpk-component-icon/lg/aircraft.js +1 -2
  87. package/bpk-component-icon/lg/beach.js +1 -2
  88. package/bpk-component-icon/lg/call-back.js +1 -2
  89. package/bpk-component-icon/lg/camper-van.js +1 -2
  90. package/bpk-component-icon/lg/car-wash.js +1 -2
  91. package/bpk-component-icon/lg/cars.js +1 -2
  92. package/bpk-component-icon/lg/clean.js +1 -2
  93. package/bpk-component-icon/lg/cloakroom.js +1 -2
  94. package/bpk-component-icon/lg/content--copy.js +1 -2
  95. package/bpk-component-icon/lg/data.js +1 -2
  96. package/bpk-component-icon/lg/depart.js +1 -2
  97. package/bpk-component-icon/lg/download.js +1 -2
  98. package/bpk-component-icon/lg/education.js +1 -2
  99. package/bpk-component-icon/lg/explore.js +1 -2
  100. package/bpk-component-icon/lg/fast-track.js +1 -2
  101. package/bpk-component-icon/lg/fast-train.js +1 -2
  102. package/bpk-component-icon/lg/flight-landing.js +1 -2
  103. package/bpk-component-icon/lg/flight-takeoff.js +1 -2
  104. package/bpk-component-icon/lg/flight.js +1 -2
  105. package/bpk-component-icon/lg/legroom--extra.js +1 -2
  106. package/bpk-component-icon/lg/legroom--normal.js +1 -2
  107. package/bpk-component-icon/lg/legroom--reduced.js +1 -2
  108. package/bpk-component-icon/lg/logout.js +1 -2
  109. package/bpk-component-icon/lg/lounge.js +1 -2
  110. package/bpk-component-icon/lg/mail.js +1 -2
  111. package/bpk-component-icon/lg/mileage.js +1 -2
  112. package/bpk-component-icon/lg/new-window.js +1 -2
  113. package/bpk-component-icon/lg/plane-seat.js +1 -2
  114. package/bpk-component-icon/lg/return.js +1 -2
  115. package/bpk-component-icon/lg/scales.js +1 -2
  116. package/bpk-component-icon/lg/share--ios.js +1 -2
  117. package/bpk-component-icon/lg/social-distancing.js +1 -2
  118. package/bpk-component-icon/lg/speaker.js +1 -2
  119. package/bpk-component-icon/lg/taxi.js +1 -2
  120. package/bpk-component-icon/lg/unmute.js +1 -2
  121. package/bpk-component-icon/lg/wallet.js +1 -2
  122. package/bpk-component-icon/lg/weather--cloudy.js +1 -2
  123. package/bpk-component-icon/lg/weather--partly-cloudy.js +1 -2
  124. package/bpk-component-icon/lg/weather--rain.js +1 -2
  125. package/bpk-component-icon/lg/weather--thunderstorm.js +1 -2
  126. package/bpk-component-icon/lg/window--reduce.js +1 -2
  127. package/bpk-component-icon/lg/world--emea.js +1 -2
  128. package/bpk-component-icon/sm/aircraft.js +1 -2
  129. package/bpk-component-icon/sm/beach.js +1 -2
  130. package/bpk-component-icon/sm/bus.js +1 -2
  131. package/bpk-component-icon/sm/call-back.js +1 -2
  132. package/bpk-component-icon/sm/camper-van.js +1 -2
  133. package/bpk-component-icon/sm/car-wash.js +1 -2
  134. package/bpk-component-icon/sm/cars.js +1 -2
  135. package/bpk-component-icon/sm/chauffeur.js +1 -2
  136. package/bpk-component-icon/sm/clean.js +1 -2
  137. package/bpk-component-icon/sm/content--copy.js +1 -2
  138. package/bpk-component-icon/sm/data.js +1 -2
  139. package/bpk-component-icon/sm/depart.js +1 -2
  140. package/bpk-component-icon/sm/direct.js +1 -2
  141. package/bpk-component-icon/sm/download.js +1 -2
  142. package/bpk-component-icon/sm/education.js +1 -2
  143. package/bpk-component-icon/sm/explore.js +1 -2
  144. package/bpk-component-icon/sm/fast-track.js +1 -2
  145. package/bpk-component-icon/sm/fast-train.js +1 -2
  146. package/bpk-component-icon/sm/flight-landing.js +1 -2
  147. package/bpk-component-icon/sm/flight-takeoff.js +1 -2
  148. package/bpk-component-icon/sm/flight.js +1 -2
  149. package/bpk-component-icon/sm/hotels--jacuzzi.js +1 -2
  150. package/bpk-component-icon/sm/infant.js +1 -2
  151. package/bpk-component-icon/sm/legroom--extra.js +1 -2
  152. package/bpk-component-icon/sm/legroom--normal.js +1 -2
  153. package/bpk-component-icon/sm/legroom--reduced.js +1 -2
  154. package/bpk-component-icon/sm/logout.js +1 -2
  155. package/bpk-component-icon/sm/mail.js +1 -2
  156. package/bpk-component-icon/sm/mileage.js +1 -2
  157. package/bpk-component-icon/sm/new-window.js +1 -2
  158. package/bpk-component-icon/sm/onsen.js +1 -2
  159. package/bpk-component-icon/sm/plane-seat.js +1 -2
  160. package/bpk-component-icon/sm/return.js +1 -2
  161. package/bpk-component-icon/sm/share--ios.js +1 -2
  162. package/bpk-component-icon/sm/social-distancing.js +1 -2
  163. package/bpk-component-icon/sm/taxi.js +1 -2
  164. package/bpk-component-icon/sm/unmute.js +1 -2
  165. package/bpk-component-icon/sm/weather--cloudy.js +1 -2
  166. package/bpk-component-icon/sm/weather--rain.js +1 -2
  167. package/bpk-component-icon/sm/weather--thunderstorm.js +1 -2
  168. package/bpk-component-icon/sm/weather--wind.js +1 -2
  169. package/bpk-component-icon/sm/window--reduce.js +1 -2
  170. package/bpk-component-icon/src/classNameModifierHOCFactory.js +3 -0
  171. package/bpk-component-icon/src/withDescription.js +1 -2
  172. package/bpk-component-icon/src/withRtlSupport.js +1 -1
  173. package/bpk-component-image/index.js +2 -2
  174. package/bpk-component-image/src/BpkBackgroundImage.js +4 -3
  175. package/bpk-component-image/src/BpkImage.js +6 -4
  176. package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +4 -5
  177. package/bpk-component-info-banner/src/AnimateAndFade.js +37 -35
  178. package/bpk-component-info-banner/src/BpkInfoBanner.module.css +1 -1
  179. package/bpk-component-info-banner/src/BpkInfoBannerInner.js +17 -14
  180. package/bpk-component-input/index.js +1 -1
  181. package/bpk-component-input/src/BpkClearButton.js +3 -1
  182. package/bpk-component-input/src/BpkInput.js +6 -4
  183. package/bpk-component-input/src/withOpenEvents.js +4 -1
  184. package/bpk-component-label/src/BpkLabel.js +1 -2
  185. package/bpk-component-link/index.js +2 -2
  186. package/bpk-component-list/src/BpkList.js +4 -1
  187. package/bpk-component-loading-button/src/BpkLoadingButton.js +7 -5
  188. package/bpk-component-map/index.js +4 -4
  189. package/bpk-component-map/src/BpkIconMarker.js +2 -3
  190. package/bpk-component-map/src/BpkMap.js +2 -2
  191. package/bpk-component-map/src/BpkPriceMarker.js +8 -7
  192. package/bpk-component-map/src/BpkPriceMarkerV2/BpkPriceMarker.js +2 -3
  193. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +5 -2
  194. package/bpk-component-modal/index.js +4 -3
  195. package/bpk-component-modal/src/BpkModal.d.ts +2 -1
  196. package/bpk-component-modal/src/BpkModal.js +8 -3
  197. package/bpk-component-modal/src/BpkModalInner.d.ts +2 -0
  198. package/bpk-component-modal/src/BpkModalInner.js +25 -10
  199. package/bpk-component-modal/src/BpkModalInner.module.css +1 -1
  200. package/bpk-component-modal/src/BpkModalV2/BpKModal.module.css +1 -1
  201. package/bpk-component-modal/src/BpkModalV2/BpkModal.d.ts +2 -0
  202. package/bpk-component-modal/src/BpkModalV2/BpkModal.js +20 -10
  203. package/bpk-component-navigation-bar/index.js +1 -1
  204. package/bpk-component-navigation-bar/src/BpkNavigationBar.js +8 -7
  205. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +5 -2
  206. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +5 -2
  207. package/bpk-component-nudger/index.js +1 -1
  208. package/bpk-component-nudger/src/BpkConfigurableNudger.js +17 -6
  209. package/bpk-component-nudger/src/BpkNudger.js +17 -7
  210. package/bpk-component-overlay/src/BpkOverlay.js +1 -2
  211. package/bpk-component-page-indicator/src/BpkPageIndicator.js +1 -2
  212. package/bpk-component-page-indicator/src/BpkPageIndicator.module.css +1 -1
  213. package/bpk-component-page-indicator/src/NavButton.js +1 -1
  214. package/bpk-component-pagination/src/BpkPagination.js +1 -2
  215. package/bpk-component-pagination/src/BpkPaginationList.js +1 -1
  216. package/bpk-component-pagination/src/BpkPaginationNudger.js +14 -6
  217. package/bpk-component-pagination/src/BpkPaginationPage.js +4 -1
  218. package/bpk-component-phone-input/src/BpkPhoneInput.js +16 -6
  219. package/bpk-component-popover/src/BpkPopover.js +106 -63
  220. package/bpk-component-popover/src/BpkPopoverPortal.js +123 -119
  221. package/bpk-component-popover/src/keyboardFocusScope.js +1 -1
  222. package/bpk-component-price/src/BpkPrice.js +19 -8
  223. package/bpk-component-progress/src/BpkProgress.js +1 -2
  224. package/bpk-component-radio/src/BpkRadio.js +1 -2
  225. package/bpk-component-rating/src/BpkRating.js +19 -8
  226. package/bpk-component-rtl-toggle/src/BpkRtlToggle.js +4 -1
  227. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +7 -5
  228. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +7 -4
  229. package/bpk-component-section-header/src/BpkSectionHeader.js +10 -5
  230. package/bpk-component-section-list/index.js +1 -1
  231. package/bpk-component-section-list/src/BpkSectionListItem.js +11 -6
  232. package/bpk-component-section-list/src/BpkSectionListSection.js +2 -3
  233. package/bpk-component-select/src/BpkSelect.js +1 -2
  234. package/bpk-component-slider/src/BpkSlider.js +6 -2
  235. package/bpk-component-spinner/index.js +3 -3
  236. package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +9 -7
  237. package/bpk-component-spinner/src/BpkLargeSpinner.js +9 -7
  238. package/bpk-component-spinner/src/BpkSpinner.js +9 -7
  239. package/bpk-component-split-input/src/BpkInputField.js +2 -2
  240. package/bpk-component-split-input/src/BpkSplitInput.js +3 -3
  241. package/bpk-component-star-rating/index.js +4 -4
  242. package/bpk-component-star-rating/src/BpkInteractiveStar.js +6 -2
  243. package/bpk-component-star-rating/src/BpkInteractiveStarRating.js +1 -1
  244. package/bpk-component-star-rating/src/BpkStar.js +22 -15
  245. package/bpk-component-swap-button/src/BpkSwapButton.js +2 -1
  246. package/bpk-component-switch/src/BpkSwitch.js +1 -2
  247. package/bpk-component-table/index.js +2 -2
  248. package/bpk-component-text/src/BpkText.js +10 -5
  249. package/bpk-component-theme-toggle/src/BpkThemeToggle.js +6 -4
  250. package/bpk-component-theme-toggle/src/updateOnThemeChange.js +1 -1
  251. package/bpk-component-tooltip/src/BpkTooltip.js +2 -3
  252. package/bpk-component-tooltip/src/BpkTooltipPortal.js +7 -6
  253. package/bpk-mixins/_chips.scss +9 -0
  254. package/bpk-react-utils/index.js +3 -3
  255. package/bpk-react-utils/src/BpkDialogWrapper/BpkDialogWrapper.js +2 -2
  256. package/bpk-react-utils/src/Portal.js +1 -0
  257. package/bpk-react-utils/src/withDefaultProps.js +4 -1
  258. package/bpk-scrim-utils/src/withScrim.js +3 -3
  259. package/bpk-scrim-utils/src/withScrimmedPortal.js +1 -1
  260. package/bpk-theming/src/BpkThemeProvider.js +1 -1
  261. package/package.json +5 -3
  262. package/unstable__bpk-mixins/_chips.scss +9 -0
  263. package/bpk-component-button/src/commonButtonTests.js +0 -133
@@ -16,12 +16,11 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import { cssModules } from "../../bpk-react-utils";
20
- import BpkText, { TEXT_STYLES } from "../../bpk-component-text";
21
19
  import { BpkCalendarGrid } from "../../bpk-component-calendar";
20
+ import BpkText, { TEXT_STYLES } from "../../bpk-component-text";
21
+ import { cssModules } from "../../bpk-react-utils";
22
22
  import STYLES from "./BpkScrollableCalendarGrid.module.css";
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import { jsxs as _jsxs } from "react/jsx-runtime";
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
25
24
  const getClassName = cssModules(STYLES);
26
25
  const BpkScrollableCalendarGrid = ({
27
26
  className,
@@ -33,7 +32,10 @@ const BpkScrollableCalendarGrid = ({
33
32
  const classNames = getClassName('bpk-scrollable-calendar-grid', className);
34
33
  return /*#__PURE__*/_jsxs("div", {
35
34
  className: classNames,
36
- children: [/*#__PURE__*/_jsx(BpkText, {
35
+ children: [/*#__PURE__*/_jsx(BpkText
36
+ // TODO: className to be removed
37
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
38
+ , {
37
39
  className: getClassName('bpk-scrollable-calendar-grid__title'),
38
40
  tagName: "h1",
39
41
  textStyle: TEXT_STYLES.heading4,
@@ -18,13 +18,13 @@
18
18
 
19
19
  import { useRef, useState, useMemo, useEffect } from 'react';
20
20
  import { startOfDay, startOfMonth } from 'date-fns';
21
- import { VariableSizeList as List } from 'react-window';
22
21
  import AutoSizer from 'react-virtualized-auto-sizer';
23
- import { cssModules } from "../../bpk-react-utils";
22
+ import { VariableSizeList as List } from 'react-window';
24
23
  import { CALENDAR_SELECTION_TYPE, DateUtils } from "../../bpk-component-calendar";
25
- import STYLES from "./BpkScrollableCalendarGridList.module.css";
24
+ import { cssModules } from "../../bpk-react-utils";
26
25
  import BpkScrollableCalendarGrid from "./BpkScrollableCalendarGrid";
27
26
  import { getMonthsArray, getMonthItemHeights } from "./utils";
27
+ import STYLES from "./BpkScrollableCalendarGridList.module.css";
28
28
  import { jsx as _jsx } from "react/jsx-runtime";
29
29
  const getClassName = cssModules(STYLES);
30
30
 
@@ -82,7 +82,10 @@ const BpkScrollableCalendarGridList = props => {
82
82
  month: months[index],
83
83
  focusedDate: focusedDate,
84
84
  preventKeyboardFocus: rest.preventKeyboardFocus,
85
- "aria-hidden": index !== 1,
85
+ "aria-hidden": index !== 1
86
+ // TODO: className to be removed
87
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
88
+ ,
86
89
  className: getClassName('bpk-scrollable-calendar-grid-list__item')
87
90
  })
88
91
  });
@@ -16,11 +16,10 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import { cssModules } from "../../bpk-react-utils";
20
19
  import BpkText from "../../bpk-component-text";
20
+ import { cssModules } from "../../bpk-react-utils";
21
21
  import STYLES from "./BpkSectionHeader.module.css";
22
- import { jsx as _jsx } from "react/jsx-runtime";
23
- import { jsxs as _jsxs } from "react/jsx-runtime";
22
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
23
  const getClassName = cssModules(STYLES);
25
24
  export const SECTION_TYPES = {
26
25
  default: 'default',
@@ -36,10 +35,16 @@ const BpkSectionHeader = ({
36
35
  children: [/*#__PURE__*/_jsxs("div", {
37
36
  className: getClassName('bpk-section-header__title-description', `bpk-section-header__title-description--${type}`),
38
37
  children: [/*#__PURE__*/_jsx(BpkText, {
39
- tagName: "h2",
38
+ tagName: "h2"
39
+ // TODO: className to be removed
40
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
41
+ ,
40
42
  className: getClassName('bpk-section-header__title'),
41
43
  children: title
42
- }), description && /*#__PURE__*/_jsx(BpkText, {
44
+ }), description && /*#__PURE__*/_jsx(BpkText
45
+ // TODO: className to be removed
46
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
47
+ , {
43
48
  className: getClassName('bpk-section-header__description'),
44
49
  children: description
45
50
  })]
@@ -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 BpkSectionList from "./src/BpkSectionList";
18
- import BpkSectionListSection from "./src/BpkSectionListSection";
19
18
  import BpkSectionListItem from "./src/BpkSectionListItem";
19
+ import BpkSectionListSection from "./src/BpkSectionListSection";
20
20
  export default BpkSectionList;
21
21
  export { BpkSectionListSection, BpkSectionListItem };
@@ -15,12 +15,11 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */import PropTypes from 'prop-types';
18
- import { cssModules } from "../../bpk-react-utils";
19
- import BpkLargeChevronRightIcon from "../../bpk-component-icon/lg/chevron-right";
20
18
  import { withRtlSupport } from "../../bpk-component-icon";
19
+ import BpkLargeChevronRightIcon from "../../bpk-component-icon/lg/chevron-right";
20
+ import { cssModules } from "../../bpk-react-utils";
21
21
  import STYLES from "./BpkSectionListItem.module.css";
22
- import { jsx as _jsx } from "react/jsx-runtime";
23
- import { jsxs as _jsxs } from "react/jsx-runtime";
22
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
23
  const BpkLargeChevronRightIconWithRtlSupport = withRtlSupport(BpkLargeChevronRightIcon);
25
24
  const getClassName = cssModules(STYLES);
26
25
  const BpkSectionListItem = props => {
@@ -44,7 +43,10 @@ const BpkSectionListItem = props => {
44
43
  onClick: onClick,
45
44
  className: classNames.join(' '),
46
45
  ...rest,
47
- children: [children, /*#__PURE__*/_jsx(BpkLargeChevronRightIconWithRtlSupport, {
46
+ children: [children, /*#__PURE__*/_jsx(BpkLargeChevronRightIconWithRtlSupport
47
+ // TODO: className to be removed
48
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
49
+ , {
48
50
  className: getClassName('bpk-section-list-item__chevron')
49
51
  })]
50
52
  })
@@ -59,7 +61,10 @@ const BpkSectionListItem = props => {
59
61
  onClick: onClick,
60
62
  className: classNames.join(' '),
61
63
  ...rest,
62
- children: [children, /*#__PURE__*/_jsx(BpkLargeChevronRightIconWithRtlSupport, {
64
+ children: [children, /*#__PURE__*/_jsx(BpkLargeChevronRightIconWithRtlSupport
65
+ // TODO: className to be removed
66
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
67
+ , {
63
68
  className: getClassName('bpk-section-list-item__chevron')
64
69
  })]
65
70
  })
@@ -16,11 +16,10 @@
16
16
  * limitations under the License.
17
17
  */import PropTypes from 'prop-types';
18
18
  import { Children } from 'react';
19
- import { cssModules } from "../../bpk-react-utils";
20
19
  import BpkText, { TEXT_STYLES } from "../../bpk-component-text";
20
+ import { cssModules } from "../../bpk-react-utils";
21
21
  import STYLES from "./BpkSectionListSection.module.css";
22
- import { jsx as _jsx } from "react/jsx-runtime";
23
- import { jsxs as _jsxs } from "react/jsx-runtime";
22
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
23
  const getClassName = cssModules(STYLES);
25
24
  const BpkSectionListSection = props => {
26
25
  const {
@@ -18,8 +18,7 @@
18
18
  import { cloneElement } from 'react';
19
19
  import { cssModules } from "../../bpk-react-utils";
20
20
  import STYLES from "./BpkSelect.module.css";
21
- import { jsx as _jsx } from "react/jsx-runtime";
22
- import { jsxs as _jsxs } from "react/jsx-runtime";
21
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
23
22
  const getClassName = cssModules(STYLES);
24
23
  const BpkSelect = props => {
25
24
  const {
@@ -16,9 +16,10 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
+ import PropTypes from 'prop-types';
20
+
19
21
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
20
22
  import Slider from 'react-slider';
21
- import PropTypes from 'prop-types';
22
23
  import { cssModules, isRTL } from "../../bpk-react-utils";
23
24
  import STYLES from "./BpkSlider.module.css";
24
25
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -43,7 +44,10 @@ const BpkSlider = props => {
43
44
  ...rest,
44
45
  withTracks: true,
45
46
  snapDragDisabled: false,
46
- invert: invert,
47
+ invert: invert
48
+ // TODO: className to be removed
49
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
50
+ ,
47
51
  className: classNames.join(' '),
48
52
  thumbClassName: thumbClassNames.join(' '),
49
53
  thumbActiveClassName: getClassName('bpk-slider__handle--active'),
@@ -14,9 +14,9 @@
14
14
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
- */import BpkSpinner from "./src/BpkSpinner";
18
- import SPINNER_TYPES from "./src/spinnerTypes";
17
+ */import BpkExtraLargeSpinner from "./src/BpkExtraLargeSpinner";
19
18
  import BpkLargeSpinner from "./src/BpkLargeSpinner";
20
- import BpkExtraLargeSpinner from "./src/BpkExtraLargeSpinner";
19
+ import BpkSpinner from "./src/BpkSpinner";
20
+ import SPINNER_TYPES from "./src/spinnerTypes";
21
21
  import themeAttributes from "./src/themeAttributes";
22
22
  export { BpkSpinner, BpkLargeSpinner, BpkExtraLargeSpinner, SPINNER_TYPES, themeAttributes };
@@ -75,10 +75,9 @@ XlSpinner.defaultProps = {
75
75
  viewBox: "0 0 32 32"
76
76
  };
77
77
  import { cssModules } from "../../bpk-react-utils";
78
- import STYLES from "./BpkSpinner.module.css";
79
78
  import SPINNER_TYPES from "./spinnerTypes";
80
- import { jsx as _jsx } from "react/jsx-runtime";
81
- import { jsxs as _jsxs } from "react/jsx-runtime";
79
+ import STYLES from "./BpkSpinner.module.css";
80
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
82
81
  const getClassName = cssModules(STYLES);
83
82
  const BpkExtraLargeSpinner = props => {
84
83
  const {
@@ -87,10 +86,13 @@ const BpkExtraLargeSpinner = props => {
87
86
  ...rest
88
87
  } = props;
89
88
  const classNames = getClassName('bpk-spinner', 'bpk-spinner--extra-large', `bpk-spinner--${type}`, className);
90
-
91
- // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
92
- return /*#__PURE__*/_jsx(XlSpinner, {
93
- className: classNames,
89
+ return /*#__PURE__*/_jsx(XlSpinner
90
+ // TODO: className to be removed
91
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
92
+ , {
93
+ className: classNames
94
+ // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
95
+ ,
94
96
  ...rest
95
97
  });
96
98
  };
@@ -75,10 +75,9 @@ LgSpinner.defaultProps = {
75
75
  viewBox: "0 0 24 24"
76
76
  };
77
77
  import { cssModules } from "../../bpk-react-utils";
78
- import STYLES from "./BpkSpinner.module.css";
79
78
  import SPINNER_TYPES from "./spinnerTypes";
80
- import { jsx as _jsx } from "react/jsx-runtime";
81
- import { jsxs as _jsxs } from "react/jsx-runtime";
79
+ import STYLES from "./BpkSpinner.module.css";
80
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
82
81
  const getClassName = cssModules(STYLES);
83
82
  const BpkLargeSpinner = props => {
84
83
  const {
@@ -88,10 +87,13 @@ const BpkLargeSpinner = props => {
88
87
  ...rest
89
88
  } = props;
90
89
  const classNames = getClassName('bpk-spinner', 'bpk-spinner--large', `bpk-spinner--${type}`, alignToButton && 'bpk-spinner--align-to-large-button', className);
91
-
92
- // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
93
- return /*#__PURE__*/_jsx(LgSpinner, {
94
- className: classNames,
90
+ return /*#__PURE__*/_jsx(LgSpinner
91
+ // TODO: className to be removed
92
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
93
+ , {
94
+ className: classNames
95
+ // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
96
+ ,
95
97
  ...rest
96
98
  });
97
99
  };
@@ -62,10 +62,9 @@ SmSpinner.defaultProps = {
62
62
  viewBox: "0 0 16 16"
63
63
  };
64
64
  import { cssModules } from "../../bpk-react-utils";
65
- import STYLES from "./BpkSpinner.module.css";
66
65
  import SPINNER_TYPES from "./spinnerTypes";
67
- import { jsx as _jsx } from "react/jsx-runtime";
68
- import { jsxs as _jsxs } from "react/jsx-runtime";
66
+ import STYLES from "./BpkSpinner.module.css";
67
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
69
68
  const getClassName = cssModules(STYLES);
70
69
  const BpkSpinner = props => {
71
70
  const {
@@ -75,10 +74,13 @@ const BpkSpinner = props => {
75
74
  ...rest
76
75
  } = props;
77
76
  const classNames = getClassName('bpk-spinner', `bpk-spinner--${type}`, alignToButton && 'bpk-spinner--align-to-button', className);
78
-
79
- // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
80
- return /*#__PURE__*/_jsx(SmSpinner, {
81
- className: classNames,
77
+ return /*#__PURE__*/_jsx(SmSpinner
78
+ // TODO: className to be removed
79
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
80
+ , {
81
+ className: classNames
82
+ // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
83
+ ,
82
84
  ...rest
83
85
  });
84
86
  };
@@ -14,8 +14,8 @@
14
14
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
- */import { Component } from 'react';
18
- import PropTypes from 'prop-types';
17
+ */import PropTypes from 'prop-types';
18
+ import { Component } from 'react';
19
19
  import BpkInput from "../../bpk-component-input";
20
20
  import { cssModules } from "../../bpk-react-utils";
21
21
  import STYLES from "./BpkInputField.module.css";
@@ -14,10 +14,10 @@
14
14
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
- */import { Component } from 'react';
18
- import PropTypes from 'prop-types';
19
- import { cssModules } from "../../bpk-react-utils";
17
+ */import PropTypes from 'prop-types';
18
+ import { Component } from 'react';
20
19
  import { INPUT_TYPES } from "../../bpk-component-input";
20
+ import { cssModules } from "../../bpk-react-utils";
21
21
  import InputField from "./BpkInputField";
22
22
  import STYLES from "./BpkSplitInput.module.css";
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -14,11 +14,11 @@
14
14
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
- */import BpkStar, { BpkStarNonRtl, STAR_TYPES } from "./src/BpkStar";
18
- import BpkInteractiveStar from "./src/BpkInteractiveStar";
19
- import BpkStarRating, { ROUNDING_TYPES } from "./src/BpkStarRating";
17
+ */import BpkInteractiveStar from "./src/BpkInteractiveStar";
20
18
  import BpkInteractiveStarRating from "./src/BpkInteractiveStarRating";
21
- import withInteractiveStarRatingState from "./src/withInteractiveStarRatingState";
19
+ import BpkStar, { BpkStarNonRtl, STAR_TYPES } from "./src/BpkStar";
20
+ import BpkStarRating, { ROUNDING_TYPES } from "./src/BpkStarRating";
22
21
  import themeAttributes from "./src/themeAttributes";
22
+ import withInteractiveStarRatingState from "./src/withInteractiveStarRatingState";
23
23
  export { BpkStar, BpkStarNonRtl, STAR_TYPES, ROUNDING_TYPES, BpkInteractiveStar, BpkInteractiveStarRating, withInteractiveStarRatingState, themeAttributes };
24
24
  export default BpkStarRating;
@@ -44,9 +44,13 @@ const BpkInteractiveStar = props => {
44
44
  className: buttonClassNames,
45
45
  "aria-pressed": selected,
46
46
  type: "button",
47
- children: /*#__PURE__*/_jsx(BpkStarNonRtl, {
47
+ children: /*#__PURE__*/_jsx(BpkStarNonRtl
48
+ // TODO: className to be removed
49
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
50
+ , {
48
51
  className: iconClassNames,
49
- type: type,
52
+ type: type
53
+ /* $FlowFixMe[cannot-spread-inexact] - inexact rest. See decisions/flowfixme.md */,
50
54
  ...rest
51
55
  })
52
56
  });
@@ -16,8 +16,8 @@
16
16
  * limitations under the License.
17
17
  */import PropTypes from 'prop-types';
18
18
  import { cssModules } from "../../bpk-react-utils";
19
- import { STAR_TYPES } from "./BpkStar";
20
19
  import BpkInteractiveStar from "./BpkInteractiveStar";
20
+ import { STAR_TYPES } from "./BpkStar";
21
21
  import STYLES from "./BpkStarRating.module.css";
22
22
  import { jsx as _jsx } from "react/jsx-runtime";
23
23
  const getClassName = cssModules(STYLES);
@@ -15,13 +15,13 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */import PropTypes from 'prop-types';
18
- import SmallIcon from "../../bpk-component-icon/sm/star";
18
+ import { withRtlSupport } from "../../bpk-component-icon";
19
19
  import LargeIcon from "../../bpk-component-icon/lg/star";
20
- import OutlineSmallIcon from "../../bpk-component-icon/sm/star-outline";
20
+ import HalfLargeIcon from "../../bpk-component-icon/lg/star-half";
21
21
  import OutlineLargeIcon from "../../bpk-component-icon/lg/star-outline";
22
+ import SmallIcon from "../../bpk-component-icon/sm/star";
22
23
  import HalfSmallIcon from "../../bpk-component-icon/sm/star-half";
23
- import HalfLargeIcon from "../../bpk-component-icon/lg/star-half";
24
- import { withRtlSupport } from "../../bpk-component-icon";
24
+ import OutlineSmallIcon from "../../bpk-component-icon/sm/star-outline";
25
25
  import { cssModules } from "../../bpk-react-utils";
26
26
  import STYLES from "./BpkStar.module.css";
27
27
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -56,23 +56,30 @@ const BpkStar = props => {
56
56
  _jsx("span", {
57
57
  className: containerClassNames,
58
58
  ...rest,
59
- children: /*#__PURE__*/_jsx(HalfIcon, {
59
+ children: /*#__PURE__*/_jsx(HalfIcon
60
+ // TODO: className to be removed
61
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
62
+ , {
60
63
  className: halfIconClassNames
61
64
  })
62
65
  })
63
66
  );
64
67
  }
65
- return type === STAR_TYPES.FULL ?
66
- /*#__PURE__*/
67
- // $FlowFixMe[cannot-spread-inexact] - inexact rest. See decisions/flowfixme.md
68
- _jsx(Icon, {
69
- className: iconClassNames,
68
+ return type === STAR_TYPES.FULL ? /*#__PURE__*/_jsx(Icon
69
+ // TODO: className to be removed
70
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
71
+ , {
72
+ className: iconClassNames
73
+ // $FlowFixMe[cannot-spread-inexact] - inexact rest. See decisions/flowfixme.md
74
+ ,
70
75
  ...rest
71
- }) :
72
- /*#__PURE__*/
73
- // $FlowFixMe[cannot-spread-inexact] - inexact rest. See decisions/flowfixme.md
74
- _jsx(OutlineIcon, {
75
- className: iconClassNames,
76
+ }) : /*#__PURE__*/_jsx(OutlineIcon
77
+ // TODO: className to be removed
78
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
79
+ , {
80
+ className: iconClassNames
81
+ // $FlowFixMe[cannot-spread-inexact] - inexact rest. See decisions/flowfixme.md
82
+ ,
76
83
  ...rest
77
84
  });
78
85
  };
@@ -17,9 +17,10 @@
17
17
  */
18
18
 
19
19
  import { useState } from 'react';
20
- import { cssModules } from "../../bpk-react-utils";
20
+
21
21
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
22
22
  import SwapVertical from "../../bpk-component-icon/sm/swap--vertical";
23
+ import { cssModules } from "../../bpk-react-utils";
23
24
  import STYLES from "./BpkSwapButton.module.css";
24
25
  import { jsx as _jsx } from "react/jsx-runtime";
25
26
  const getClassName = cssModules(STYLES);
@@ -17,8 +17,7 @@
17
17
  */import PropTypes from 'prop-types';
18
18
  import { cssModules } from "../../bpk-react-utils";
19
19
  import STYLES from "./BpkSwitch.module.css";
20
- import { jsx as _jsx } from "react/jsx-runtime";
21
- import { jsxs as _jsxs } from "react/jsx-runtime";
20
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
21
  const getClassName = cssModules(STYLES);
23
22
  const BpkSwitch = props => {
24
23
  const {
@@ -15,9 +15,9 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */import BpkTable from "./src/BpkTable";
18
- import BpkTableHead from "./src/BpkTableHead";
19
18
  import BpkTableBody from "./src/BpkTableBody";
20
- import BpkTableRow from "./src/BpkTableRow";
21
19
  import BpkTableCell from "./src/BpkTableCell";
20
+ import BpkTableHead from "./src/BpkTableHead";
22
21
  import BpkTableHeadCell from "./src/BpkTableHeadCell";
22
+ import BpkTableRow from "./src/BpkTableRow";
23
23
  export { BpkTable, BpkTableHead, BpkTableBody, BpkTableRow, BpkTableCell, BpkTableHeadCell };
@@ -57,10 +57,15 @@ const BpkText = ({
57
57
  ...rest
58
58
  }) => {
59
59
  const classNames = getClassName('bpk-text', `bpk-text--${textStyle}`, className);
60
- return /*#__PURE__*/_jsx(TagName, {
61
- className: classNames,
62
- ...rest,
63
- children: children
64
- });
60
+ return (
61
+ /*#__PURE__*/
62
+ // Allowed, TagName is always a dom element.
63
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
64
+ _jsx(TagName, {
65
+ className: classNames,
66
+ ...rest,
67
+ children: children
68
+ })
69
+ );
65
70
  };
66
71
  export default BpkText;
@@ -20,11 +20,10 @@ import { Component } from 'react';
20
20
  import BpkLabel from "../../bpk-component-label";
21
21
  import BpkSelect from "../../bpk-component-select";
22
22
  import { cssModules } from "../../bpk-react-utils";
23
- import STYLES from "./BpkThemeToggle.module.css";
24
23
  import bpkCustomThemes from "./theming";
25
24
  import { getHtmlElement, THEME_CHANGE_EVENT } from "./utils";
26
- import { jsx as _jsx } from "react/jsx-runtime";
27
- import { jsxs as _jsxs } from "react/jsx-runtime";
25
+ import STYLES from "./BpkThemeToggle.module.css";
26
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
28
27
  const inputId = 'theme-select';
29
28
  const getClassName = cssModules(STYLES);
30
29
  const availableThemes = Object.keys(bpkCustomThemes);
@@ -82,7 +81,10 @@ class BpkThemeToggle extends Component {
82
81
  } = this.props;
83
82
  return /*#__PURE__*/_jsxs("div", {
84
83
  ...rest,
85
- children: [/*#__PURE__*/_jsx(BpkLabel, {
84
+ children: [/*#__PURE__*/_jsx(BpkLabel
85
+ // TODO: className to be removed
86
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
87
+ , {
86
88
  className: getClassName('bpk-theme-toggle__label'),
87
89
  htmlFor: inputId,
88
90
  children: "Change theme"
@@ -16,8 +16,8 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import { Component } from 'react';
20
19
  import PropTypes from 'prop-types';
20
+ import { Component } from 'react';
21
21
  import { wrapDisplayName } from "../../bpk-react-utils";
22
22
  import { getHtmlElement, THEME_CHANGE_EVENT } from "./utils";
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -23,10 +23,9 @@ The actual component that developers create (i.e. the default export from this p
23
23
  */
24
24
 
25
25
  import { TransitionInitialMount, cssModules } from "../../bpk-react-utils";
26
- import STYLES from "./BpkTooltip.module.css";
27
26
  import { ARROW_ID, TOOLTIP_TYPES } from "./constants";
28
- import { jsx as _jsx } from "react/jsx-runtime";
29
- import { jsxs as _jsxs } from "react/jsx-runtime";
27
+ import STYLES from "./BpkTooltip.module.css";
28
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
30
29
  const getClassName = cssModules(STYLES);
31
30
  const BpkTooltip = ({
32
31
  children,
@@ -16,15 +16,13 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import { createPopper } from '@popperjs/core';
20
19
  import { cloneElement, Component } from 'react';
20
+ import { createPopper } from '@popperjs/core';
21
21
  import { Portal, cssModules } from "../../bpk-react-utils";
22
22
  import BpkTooltip from "./BpkTooltip";
23
- import STYLES from "./BpkTooltip.module.css";
24
23
  import { TOOLTIP_TYPES } from "./constants";
25
- import { jsx as _jsx } from "react/jsx-runtime";
26
- import { Fragment as _Fragment } from "react/jsx-runtime";
27
- import { jsxs as _jsxs } from "react/jsx-runtime";
24
+ import STYLES from "./BpkTooltip.module.css";
25
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
28
26
  const getClassName = cssModules(STYLES);
29
27
  const hasTouchSupport = () => !!(typeof window !== 'undefined' && ('ontouchstart' in window || navigator.maxTouchPoints > 0));
30
28
  class BpkTooltipPortal extends Component {
@@ -139,7 +137,10 @@ class BpkTooltipPortal extends Component {
139
137
  onOpen: this.onOpen,
140
138
  onClose: this.closeTooltip,
141
139
  style: portalStyle,
142
- renderTarget: renderTarget,
140
+ renderTarget: renderTarget
141
+ // TODO: className to be removed
142
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
143
+ ,
143
144
  className: classNames.join(' '),
144
145
  children: /*#__PURE__*/_jsx(BpkTooltip, {
145
146
  padded: padded,
@@ -237,4 +237,13 @@
237
237
  color: $bpk-text-disabled-day;
238
238
  cursor: not-allowed;
239
239
  }
240
+
241
+ &--icon-only {
242
+ padding-inline-end: bpk-spacing-md();
243
+ padding-inline-start: bpk-spacing-md();
244
+
245
+ &__leading-accessory-view {
246
+ @include bpk-margin-trailing(0);
247
+ }
248
+ }
240
249
  }
@@ -16,16 +16,16 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import wrapDisplayName from "./src/wrapDisplayName";
19
+ import { BpkDialogWrapper } from "./src/BpkDialogWrapper/BpkDialogWrapper";
20
20
  import Portal from "./src/Portal";
21
21
  import TransitionInitialMount from "./src/TransitionInitialMount";
22
22
  import cssModules from "./src/cssModules";
23
23
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
24
24
  import deprecated from "./src/deprecated";
25
25
  import { isDeviceIphone, isDeviceIpad, isDeviceIos } from "./src/deviceDetection";
26
- import withDefaultProps from "./src/withDefaultProps";
27
26
  import isRTL from "./src/isRTL";
28
- import { BpkDialogWrapper } from "./src/BpkDialogWrapper/BpkDialogWrapper";
27
+ import withDefaultProps from "./src/withDefaultProps";
28
+ import wrapDisplayName from "./src/wrapDisplayName";
29
29
  export { Portal, TransitionInitialMount, cssModules, deprecated, withDefaultProps, wrapDisplayName, isDeviceIphone, isDeviceIpad, isDeviceIos, isRTL, BpkDialogWrapper };
30
30
  export default {
31
31
  Portal,
@@ -17,12 +17,12 @@
17
17
  */
18
18
 
19
19
  import { useEffect, useRef, useState } from "react";
20
+
20
21
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
21
22
  import CSSTransition from 'react-transition-group/CSSTransition';
22
23
  import cssModules from "../cssModules";
23
24
  import STYLES from "./BpkDialogWrapper.module.css";
24
- import { jsx as _jsx } from "react/jsx-runtime";
25
- import { jsxs as _jsxs } from "react/jsx-runtime";
25
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
26
26
  const getClassName = cssModules(STYLES);
27
27
  ;
28
28
  // TODO: this check if the browser support the HTML dialog element. We can remove it once we drop support as a business for Safari 14
@@ -18,6 +18,7 @@
18
18
 
19
19
  import { Component } from 'react';
20
20
  import { createPortal } from 'react-dom';
21
+
21
22
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
22
23
  import assign from 'object-assign';
23
24
  import { jsx as _jsx } from "react/jsx-runtime";