@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
@@ -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 { defaultProps, propTypes } from "./common-types";
18
- import BpkButtonBase, { cssModules } from "./BpkButtonBase";
17
+ */import BpkButtonBase, { cssModules } from "./BpkButtonBase";
18
+ import { defaultProps, propTypes } from "./common-types";
19
19
  import STYLES from "./BpkButtonLink.module.css";
20
20
  import { jsx as _jsx } from "react/jsx-runtime";
21
21
  const getClassName = cssModules(STYLES);
@@ -33,15 +33,16 @@ const BpkButtonLink = props => {
33
33
  classNames.push(className);
34
34
  }
35
35
  const classNamesFinal = classNames.join(' ');
36
- return (
37
- /*#__PURE__*/
36
+ return /*#__PURE__*/_jsx(BpkButtonBase
37
+ // TODO: className to be removed
38
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
39
+ , {
40
+ className: classNamesFinal,
41
+ large: large
38
42
  // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
39
- _jsx(BpkButtonBase, {
40
- className: classNamesFinal,
41
- large: large,
42
- ...rest
43
- })
44
- );
43
+ ,
44
+ ...rest
45
+ });
45
46
  };
46
47
  BpkButtonLink.propTypes = {
47
48
  ...propTypes
@@ -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 { defaultProps, propTypes } from "./common-types";
18
- import BpkButtonBase, { cssModules } from "./BpkButtonBase";
17
+ */import BpkButtonBase, { cssModules } from "./BpkButtonBase";
18
+ import { defaultProps, propTypes } from "./common-types";
19
19
  import STYLES from "./BpkButtonLinkOnDark.module.css";
20
20
  import { jsx as _jsx } from "react/jsx-runtime";
21
21
  const getClassName = cssModules(STYLES);
@@ -33,15 +33,16 @@ const BpkButtonLinkOnDark = props => {
33
33
  classNames.push(className);
34
34
  }
35
35
  const classNamesFinal = classNames.join(' ');
36
- return (
37
- /*#__PURE__*/
36
+ return /*#__PURE__*/_jsx(BpkButtonBase
37
+ // TODO: className to be removed
38
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
39
+ , {
40
+ className: classNamesFinal,
41
+ large: large
38
42
  // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
39
- _jsx(BpkButtonBase, {
40
- className: classNamesFinal,
41
- large: large,
42
- ...rest
43
- })
44
- );
43
+ ,
44
+ ...rest
45
+ });
45
46
  };
46
47
  BpkButtonLinkOnDark.propTypes = {
47
48
  ...propTypes
@@ -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 { defaultProps, propTypes } from "./common-types";
18
- import BpkButtonBase from "./BpkButtonBase";
17
+ */import BpkButtonBase from "./BpkButtonBase";
18
+ import { defaultProps, propTypes } from "./common-types";
19
19
 
20
20
  // TODO: BpkButtonBase has the primary button style as it wasn't removed to
21
21
  // avoid a breaking change in the mixin. Review after this is tested.
@@ -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 { defaultProps, propTypes } from "./common-types";
18
- import BpkButtonBase, { cssModules } from "./BpkButtonBase";
17
+ */import BpkButtonBase, { cssModules } from "./BpkButtonBase";
18
+ import { defaultProps, propTypes } from "./common-types";
19
19
  import STYLES from "./BpkButtonPrimaryOnDark.module.css";
20
20
  import { jsx as _jsx } from "react/jsx-runtime";
21
21
  const getClassName = cssModules(STYLES);
@@ -29,14 +29,15 @@ const BpkButtonPrimaryOnDark = props => {
29
29
  classNames.push(className);
30
30
  }
31
31
  const classNamesFinal = classNames.join(' ');
32
- return (
33
- /*#__PURE__*/
32
+ return /*#__PURE__*/_jsx(BpkButtonBase
33
+ // TODO: className to be removed
34
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
35
+ , {
36
+ className: classNamesFinal
34
37
  // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
35
- _jsx(BpkButtonBase, {
36
- className: classNamesFinal,
37
- ...rest
38
- })
39
- );
38
+ ,
39
+ ...rest
40
+ });
40
41
  };
41
42
  BpkButtonPrimaryOnDark.propTypes = {
42
43
  ...propTypes
@@ -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 { defaultProps, propTypes } from "./common-types";
18
- import BpkButtonBase, { cssModules } from "./BpkButtonBase";
17
+ */import BpkButtonBase, { cssModules } from "./BpkButtonBase";
18
+ import { defaultProps, propTypes } from "./common-types";
19
19
  import STYLES from "./BpkButtonPrimaryOnLight.module.css";
20
20
  import { jsx as _jsx } from "react/jsx-runtime";
21
21
  const getClassName = cssModules(STYLES);
@@ -29,14 +29,15 @@ const BpkButtonPrimaryOnLight = props => {
29
29
  classNames.push(className);
30
30
  }
31
31
  const classNamesFinal = classNames.join(' ');
32
- return (
33
- /*#__PURE__*/
32
+ return /*#__PURE__*/_jsx(BpkButtonBase
33
+ // TODO: className to be removed
34
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
35
+ , {
36
+ className: classNamesFinal
34
37
  // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
35
- _jsx(BpkButtonBase, {
36
- className: classNamesFinal,
37
- ...rest
38
- })
39
- );
38
+ ,
39
+ ...rest
40
+ });
40
41
  };
41
42
  BpkButtonPrimaryOnLight.propTypes = {
42
43
  ...propTypes
@@ -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 { defaultProps, propTypes } from "./common-types";
18
- import BpkButtonBase, { cssModules } from "./BpkButtonBase";
17
+ */import BpkButtonBase, { cssModules } from "./BpkButtonBase";
18
+ import { defaultProps, propTypes } from "./common-types";
19
19
  import STYLES from "./BpkButtonSecondary.module.css";
20
20
  import { jsx as _jsx } from "react/jsx-runtime";
21
21
  const getClassName = cssModules(STYLES);
@@ -29,14 +29,14 @@ const BpkButtonSecondary = props => {
29
29
  classNames.push(className);
30
30
  }
31
31
  const classNamesFinal = classNames.join(' ');
32
- return (
33
- /*#__PURE__*/
34
- // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
35
- _jsx(BpkButtonBase, {
36
- className: classNamesFinal,
37
- ...rest
38
- })
39
- );
32
+ return /*#__PURE__*/_jsx(BpkButtonBase
33
+ // TODO: className to be removed
34
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
35
+ , {
36
+ className: classNamesFinal // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
37
+ ,
38
+ ...rest
39
+ });
40
40
  };
41
41
  BpkButtonSecondary.propTypes = {
42
42
  ...propTypes
@@ -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 { defaultProps, propTypes } from "./common-types";
18
- import BpkButtonBase, { cssModules } from "./BpkButtonBase";
17
+ */import BpkButtonBase, { cssModules } from "./BpkButtonBase";
18
+ import { defaultProps, propTypes } from "./common-types";
19
19
  import STYLES from "./BpkButtonSecondaryOnDark.module.css";
20
20
  import { jsx as _jsx } from "react/jsx-runtime";
21
21
  const getClassName = cssModules(STYLES);
@@ -29,14 +29,15 @@ const BpkButtonSecondaryOnDark = props => {
29
29
  classNames.push(className);
30
30
  }
31
31
  const classNamesFinal = classNames.join(' ');
32
- return (
33
- /*#__PURE__*/
32
+ return /*#__PURE__*/_jsx(BpkButtonBase
33
+ // TODO: className to be removed
34
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
35
+ , {
36
+ className: classNamesFinal
34
37
  // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
35
- _jsx(BpkButtonBase, {
36
- className: classNamesFinal,
37
- ...rest
38
- })
39
- );
38
+ ,
39
+ ...rest
40
+ });
40
41
  };
41
42
  BpkButtonSecondaryOnDark.propTypes = {
42
43
  ...propTypes
@@ -17,10 +17,10 @@
17
17
  */
18
18
 
19
19
  import BpkCalendarContainer, { withCalendarState } from "./src/BpkCalendarContainer";
20
+ import BpkCalendarDate, { ROW_TYPES, SELECTION_TYPES } from "./src/BpkCalendarDate";
20
21
  import BpkCalendarGrid, { BpkCalendarGridWithTransition } from "./src/BpkCalendarGrid";
21
22
  import BpkCalendarGridHeader from "./src/BpkCalendarGridHeader";
22
23
  import BpkCalendarNav from "./src/BpkCalendarNav";
23
- import BpkCalendarDate, { ROW_TYPES, SELECTION_TYPES } from "./src/BpkCalendarDate";
24
24
  import composeCalendar from "./src/composeCalendar";
25
25
  import { CALENDAR_SELECTION_TYPE } from "./src/custom-proptypes";
26
26
  import CustomPropTypes, { BpkCalendarGridPropTypes, BpkCalendarDatePropTypes // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
@@ -18,12 +18,12 @@
18
18
 
19
19
  import { Component } from 'react';
20
20
  import { isRTL } from "../../bpk-react-utils";
21
- import { CALENDAR_SELECTION_TYPE } from "./custom-proptypes";
22
- import BpkCalendarNav from "./BpkCalendarNav";
21
+ import BpkCalendarDate from "./BpkCalendarDate";
23
22
  import { BpkCalendarGridWithTransition } from "./BpkCalendarGrid";
24
23
  import BpkCalendarGridHeader from "./BpkCalendarGridHeader";
25
- import BpkCalendarDate from "./BpkCalendarDate";
24
+ import BpkCalendarNav from "./BpkCalendarNav";
26
25
  import composeCalendar from "./composeCalendar";
26
+ import { CALENDAR_SELECTION_TYPE } from "./custom-proptypes";
27
27
  import { addDays, addMonths, dateToBoundaries, isAfter, isSameMonth, isSameDay, lastDayOfMonth, setMonthYear, startOfDay, startOfMonth } from "./date-utils";
28
28
  import { jsx as _jsx } from "react/jsx-runtime";
29
29
  /**
@@ -18,11 +18,12 @@
18
18
 
19
19
  import { Component } from 'react';
20
20
  import { cssModules, isDeviceIos } from "../../bpk-react-utils";
21
+ import { addCalendarGridTransition } from "./BpkCalendarGridTransition";
21
22
  import Week from "./Week";
22
- import { addMonths, formatIsoDate, getCalendarMonthWeeks, isSameMonth } from "./date-utils";
23
23
  import { CALENDAR_SELECTION_TYPE } from "./custom-proptypes";
24
+ import { addMonths, formatIsoDate, getCalendarMonthWeeks, isSameMonth } from "./date-utils";
24
25
  import STYLES from "./BpkCalendarGrid.module.css";
25
- import { addCalendarGridTransition } from "./BpkCalendarGridTransition";
26
+
26
27
  // This should be imported after `./BpkCalendarGrid.module.css`.
27
28
  // Because of how css specificity works the class `bpk-calendar-grid-transition__grid` needs to be defined
28
29
  // after `bpk-calendar-grid` (defined by BpkCalendarGrid.module.css) so it can override width and display of the calendar
@@ -15,4 +15,4 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */
18
- .bpk-calendar-grid{width:100%;border-collapse:separate;border-spacing:0}.bpk-calendar-grid--animating{z-index:1;transition:transform .2s ease-in-out}.bpk-calendar-grid__caption{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0)}.bpk-calendar-grid__date{width:100%;text-align:center}.bpk-calendar-grid__date--start{background-image:linear-gradient(to right, rgb(255, 255, 255) 50%, rgb(227, 240, 255) 50%)}html[dir=rtl] .bpk-calendar-grid__date--start{background-image:linear-gradient(to left, rgb(255, 255, 255) 50%, rgb(227, 240, 255) 50%)}.bpk-calendar-grid__date--middle{background-color:#e3f0ff}.bpk-calendar-grid__date--end{background-image:linear-gradient(to left, rgb(255, 255, 255) 50%, rgb(227, 240, 255) 50%)}html[dir=rtl] .bpk-calendar-grid__date--end{background-image:linear-gradient(to right, rgb(255, 255, 255) 50%, rgb(227, 240, 255) 50%)}.bpk-calendar-grid__week{display:flex;padding-top:1.5rem}
18
+ .bpk-calendar-grid{border-collapse:separate;border-spacing:0}.bpk-calendar-grid--animating{z-index:1;transition:transform .2s ease-in-out}.bpk-calendar-grid__caption{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0)}.bpk-calendar-grid__date{width:100%;text-align:center}.bpk-calendar-grid__date--start{background-image:linear-gradient(to right, rgb(255, 255, 255) 50%, rgb(227, 240, 255) 50%)}html[dir=rtl] .bpk-calendar-grid__date--start{background-image:linear-gradient(to left, rgb(255, 255, 255) 50%, rgb(227, 240, 255) 50%)}.bpk-calendar-grid__date--middle{background-color:#e3f0ff}.bpk-calendar-grid__date--end{background-image:linear-gradient(to left, rgb(255, 255, 255) 50%, rgb(227, 240, 255) 50%)}html[dir=rtl] .bpk-calendar-grid__date--end{background-image:linear-gradient(to right, rgb(255, 255, 255) 50%, rgb(227, 240, 255) 50%)}.bpk-calendar-grid__week{display:flex;padding-top:1.5rem}
@@ -29,7 +29,10 @@ const WeekDayComponent = ({
29
29
  Element,
30
30
  weekDay,
31
31
  weekDayKey = 'nameAbbr'
32
- }) => /*#__PURE__*/_jsx(Element, {
32
+ }) => /*#__PURE__*/_jsx(Element
33
+ // TODO: className to be removed
34
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
35
+ , {
33
36
  className: getClassName('bpk-calendar-header__weekday'),
34
37
  title: weekDay.name,
35
38
  children: /*#__PURE__*/_jsx("span", {
@@ -16,12 +16,11 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import { Component } from 'react';
19
+ import { Component, createElement as _createElement } from 'react';
20
20
  import { cssModules, isRTL } from "../../bpk-react-utils";
21
- import { getCalendarGridWidth, getTransformStyles, isTransitionEndSupported } from "./utils";
22
21
  import { addMonths, isSameMonth, formatIsoMonth, differenceInCalendarMonths, dateToBoundaries, startOfDay, setMonthYear, isWithinRange, getMonthRange } from "./date-utils";
22
+ import { getCalendarGridWidth, getTransformStyles, isTransitionEndSupported } from "./utils";
23
23
  import STYLES from "./BpkCalendarGridTransition.module.css";
24
- import { createElement as _createElement } from "react";
25
24
  import { jsx as _jsx } from "react/jsx-runtime";
26
25
  const getClassName = cssModules(STYLES);
27
26
  const transitionValues = {
@@ -142,7 +141,10 @@ class BpkCalendarGridTransition extends Component {
142
141
  preventKeyboardFocus: index !== 1 || rest.preventKeyboardFocus,
143
142
  isKeyboardFocusable: !isTransitioning && index === 1,
144
143
  focusedDate: index === 1 ? focusedDate : getFocusedDateForMonth(m, focusedDate, rest.minDate, rest.maxDate),
145
- "aria-hidden": index !== 1,
144
+ "aria-hidden": index !== 1
145
+ // TODO: className to be removed
146
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
147
+ ,
146
148
  className: getClassName('bpk-calendar-grid-transition__grid')
147
149
  }) : /*#__PURE__*/_jsx("div", {
148
150
  className: getClassName('bpk-calendar-grid-transition__dummy')
@@ -16,6 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
+ import BpkAriaLive from "../../bpk-component-aria-live";
19
20
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
20
21
  import ArrowLeftIcon from "../../bpk-component-icon/lg/arrow-left";
21
22
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
@@ -23,11 +24,9 @@ import ArrowRightIcon from "../../bpk-component-icon/lg/arrow-right";
23
24
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
24
25
  import BpkSelect from "../../bpk-component-select";
25
26
  import { cssModules } from "../../bpk-react-utils";
26
- import BpkAriaLive from "../../bpk-component-aria-live";
27
27
  import { addMonths, formatIsoMonth, getMonthRange, getMonthsInRange, isWithinRange, parseIsoDate, startOfMonth } from "./date-utils";
28
28
  import STYLES from "./BpkCalendarNav.module.css";
29
- import { jsx as _jsx } from "react/jsx-runtime";
30
- import { jsxs as _jsxs } from "react/jsx-runtime";
29
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
31
30
  const getClassName = cssModules(STYLES);
32
31
  const changeMonth = ({
33
32
  callback,
@@ -92,7 +91,10 @@ const BpkCalendarNav = ({
92
91
  start: min,
93
92
  end: max
94
93
  }),
95
- children: [/*#__PURE__*/_jsx(ArrowLeftIcon, {
94
+ children: [/*#__PURE__*/_jsx(ArrowLeftIcon
95
+ // TODO: className to be removed
96
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
97
+ , {
96
98
  className: getClassName('bpk-calendar-nav__icon')
97
99
  }), /*#__PURE__*/_jsx("span", {
98
100
  className: getClassName('bpk-calendar-nav__text--hidden'),
@@ -139,7 +141,10 @@ const BpkCalendarNav = ({
139
141
  start: min,
140
142
  end: max
141
143
  }),
142
- children: [/*#__PURE__*/_jsx(ArrowRightIcon, {
144
+ children: [/*#__PURE__*/_jsx(ArrowRightIcon
145
+ // TODO: className to be removed
146
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
147
+ , {
143
148
  className: getClassName('bpk-calendar-nav__icon')
144
149
  }), /*#__PURE__*/_jsx("span", {
145
150
  className: getClassName('bpk-calendar-nav__text--hidden'),
@@ -18,13 +18,13 @@
18
18
 
19
19
  import { Component } from 'react';
20
20
  import { cssModules } from "../../bpk-react-utils";
21
- import { isSameDay, isSameWeek, isSameMonth, isToday, isWithinRange, startOfMonth, endOfMonth } from "./date-utils";
21
+ import { SELECTION_TYPES } from "./BpkCalendarDate";
22
22
  import { CALENDAR_SELECTION_TYPE } from "./custom-proptypes";
23
+ import { isSameDay, isSameWeek, isSameMonth, isToday, isWithinRange, startOfMonth, endOfMonth } from "./date-utils";
23
24
  // TODO: Move this to `Week.scss`
24
25
  // This should be using its own css file as `BpkCalendarGrid` is also importing `BpkCalendarGrid.module.css`
25
26
  // and the order of css imports can break the component.
26
27
  import STYLES from "./BpkCalendarGrid.module.css";
27
- import { SELECTION_TYPES } from "./BpkCalendarDate";
28
28
  import { jsx as _jsx } from "react/jsx-runtime";
29
29
  const getClassName = cssModules(STYLES);
30
30
  const shallowEqualProps = (props1, props2, propList) => {
@@ -278,7 +278,10 @@ class Week extends Component {
278
278
  end: maxDate
279
279
  }) : false;
280
280
  const dateSelectionType = getSelectionType(date, selectionConfiguration, formatDateFull, month, weekStartsOn, ignoreOutsideDate);
281
- return /*#__PURE__*/_jsx(DateContainer, {
281
+ return /*#__PURE__*/_jsx(DateContainer
282
+ // TODO: className to be removed
283
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
284
+ , {
282
285
  className: cellClassName,
283
286
  isEmptyCell: !isSameMonth(date, month) && ignoreOutsideDate,
284
287
  isBlocked: isBlocked,
@@ -19,8 +19,7 @@
19
19
  import { cssModules } from "../../bpk-react-utils";
20
20
  import { CALENDAR_SELECTION_TYPE } from "./custom-proptypes";
21
21
  import STYLES from "./BpkCalendar.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 composeCalendar = (Nav, GridHeader, Grid, CalendarDate) => {
26
25
  const BpkCalendar = ({
@@ -95,7 +94,10 @@ const composeCalendar = (Nav, GridHeader, Grid, CalendarDate) => {
95
94
  }), GridHeader && /*#__PURE__*/_jsx(GridHeader, {
96
95
  daysOfWeek: daysOfWeek,
97
96
  weekStartsOn: weekStartsOn,
98
- weekDayKey: weekDayKey,
97
+ weekDayKey: weekDayKey
98
+ // TODO: className to be removed
99
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
100
+ ,
99
101
  className: headerClasses.join(' '),
100
102
  ...headerProps
101
103
  }), /*#__PURE__*/_jsx(Grid, {
@@ -113,7 +115,10 @@ const composeCalendar = (Nav, GridHeader, Grid, CalendarDate) => {
113
115
  minDate: minDate,
114
116
  focusedDate: focusedDate,
115
117
  markToday: markToday,
116
- markOutsideDays: markOutsideDays,
118
+ markOutsideDays: markOutsideDays
119
+ // TODO: className to be removed
120
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
121
+ ,
117
122
  className: gridClasses.join(' '),
118
123
  dateProps: dateProps,
119
124
  selectionConfiguration: selectionConfiguration,
@@ -16,27 +16,27 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import { startOfMonth } from 'date-fns/startOfMonth';
19
+ import { addDays } from 'date-fns/addDays';
20
+ import { addMonths } from 'date-fns/addMonths';
21
+ import { differenceInCalendarMonths } from 'date-fns/differenceInCalendarMonths';
20
22
  import { endOfMonth } from 'date-fns/endOfMonth';
21
- import { lastDayOfMonth } from 'date-fns/lastDayOfMonth';
23
+ import { format } from 'date-fns/format';
22
24
  import { getDay } from 'date-fns/getDay';
23
- import { isWithinInterval as isWithinRange } from 'date-fns/isWithinInterval';
24
- import { isToday } from 'date-fns/isToday';
25
- import { isSaturday } from 'date-fns/isSaturday';
26
- import { isSunday } from 'date-fns/isSunday';
25
+ import { isAfter } from 'date-fns/isAfter';
26
+ import { isBefore } from 'date-fns/isBefore';
27
27
  import { isSameDay } from 'date-fns/isSameDay';
28
- import { isSameWeek } from 'date-fns/isSameWeek';
29
28
  import { isSameMonth } from 'date-fns/isSameMonth';
30
- import { isBefore } from 'date-fns/isBefore';
31
- import { isAfter } from 'date-fns/isAfter';
32
- import { differenceInCalendarMonths } from 'date-fns/differenceInCalendarMonths';
33
- import { addDays } from 'date-fns/addDays';
34
- import { addMonths } from 'date-fns/addMonths';
29
+ import { isSameWeek } from 'date-fns/isSameWeek';
30
+ import { isSaturday } from 'date-fns/isSaturday';
31
+ import { isSunday } from 'date-fns/isSunday';
32
+ import { isToday } from 'date-fns/isToday';
33
+ import { isWithinInterval as isWithinRange } from 'date-fns/isWithinInterval';
34
+ import { lastDayOfMonth } from 'date-fns/lastDayOfMonth';
35
+ import { parseISO } from 'date-fns/parseISO';
35
36
  import { setMonth } from 'date-fns/setMonth';
36
37
  import { setYear } from 'date-fns/setYear';
37
38
  import { startOfDay } from 'date-fns/startOfDay';
38
- import { parseISO } from 'date-fns/parseISO';
39
- import { format } from 'date-fns/format';
39
+ import { startOfMonth } from 'date-fns/startOfMonth';
40
40
  const ONE_MINUTE_IN_MS = 60 * 1000;
41
41
  const ONE_HOUR_IN_MS = 60 * ONE_MINUTE_IN_MS;
42
42
 
@@ -18,8 +18,7 @@
18
18
 
19
19
  import { cssModules } from "../../bpk-react-utils";
20
20
  import STYLES from "./BpkCardWrapper.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 BpkCardWrapper = ({
25
24
  backgroundColor,
@@ -19,8 +19,7 @@
19
19
  import { cssModules } from "../../bpk-react-utils";
20
20
  import BpkCard from "./BpkCard";
21
21
  import STYLES from "./BpkDividedCard.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 ORIENTATION = {
26
25
  horizontal: 'horizontal',
@@ -37,18 +36,23 @@ const BpkDividedCard = ({
37
36
  }) => {
38
37
  const isVertical = orientation === ORIENTATION.vertical;
39
38
  const classNames = getClassName('bpk-divided-card', isVertical ? 'bpk-divided-card--vertical' : 'bpk-divided-card--horizontal', !isElevated && 'bpk-divided-card--no-elevation', className);
40
- return /*#__PURE__*/_jsxs(BpkCard, {
41
- className: classNames,
42
- href: href,
43
- padded: false,
44
- ...rest,
45
- children: [/*#__PURE__*/_jsx("div", {
46
- className: getClassName(!isVertical && 'bpk-divided-card__primary--horizontal'),
47
- children: primaryContent
48
- }), /*#__PURE__*/_jsx("div", {
49
- className: getClassName(isVertical ? 'bpk-divided-card__secondary--vertical' : 'bpk-divided-card__secondary--horizontal'),
50
- children: secondaryContent
51
- })]
52
- });
39
+ return (
40
+ /*#__PURE__*/
41
+ // TODO: className to be removed
42
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
43
+ _jsxs(BpkCard, {
44
+ className: classNames,
45
+ href: href,
46
+ padded: false,
47
+ ...rest,
48
+ children: [/*#__PURE__*/_jsx("div", {
49
+ className: getClassName(!isVertical && 'bpk-divided-card__primary--horizontal'),
50
+ children: primaryContent
51
+ }), /*#__PURE__*/_jsx("div", {
52
+ className: getClassName(isVertical ? 'bpk-divided-card__secondary--vertical' : 'bpk-divided-card__secondary--horizontal'),
53
+ children: secondaryContent
54
+ })]
55
+ })
56
+ );
53
57
  };
54
58
  export default BpkDividedCard;
@@ -18,6 +18,7 @@
18
18
 
19
19
  import { useState } from 'react';
20
20
  import { BpkButtonV2 } from "../../bpk-component-button";
21
+ import { withLargeButtonAlignment } from "../../bpk-component-icon";
21
22
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
22
23
  import BpkHeartIcon from "../../bpk-component-icon/lg/heart";
23
24
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
@@ -26,11 +27,9 @@ import BpkHeartOutlineIcon from "../../bpk-component-icon/lg/heart--outline";
26
27
  import BpkHeartIconSm from "../../bpk-component-icon/sm/heart";
27
28
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
28
29
  import BpkHeartOutlineIconSm from "../../bpk-component-icon/sm/heart--outline";
29
- import { withLargeButtonAlignment } from "../../bpk-component-icon";
30
30
  import { cssModules } from "../../bpk-react-utils";
31
31
  import STYLES from "./BpkSaveButton.module.css";
32
- import { jsx as _jsx } from "react/jsx-runtime";
33
- import { jsxs as _jsxs } from "react/jsx-runtime";
32
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
34
33
  export const SIZE_TYPES = {
35
34
  default: 'default',
36
35
  small: 'small'
@@ -57,7 +56,10 @@ const BpkSaveButton = ({
57
56
  const HeartIcon = smallSize ? AlignedHeartIconSm : AlignedHeartIcon;
58
57
  const HeartOutLineIcon = smallSize ? AlignedHeartOutlineIconSm : AlignedHeartOutlineIcon;
59
58
  return /*#__PURE__*/_jsxs(BpkButtonV2, {
60
- "aria-label": accessibilityLabel,
59
+ "aria-label": accessibilityLabel
60
+ // TODO: className to be removed
61
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
62
+ ,
61
63
  className: getClassName('bpk-save-button', smallSize && 'bpk-save-button__small', `bpk-save-button__${style}`),
62
64
  onClick: e => {
63
65
  onCheckedChange(e);
@@ -66,9 +68,15 @@ const BpkSaveButton = ({
66
68
  }
67
69
  },
68
70
  iconOnly: true,
69
- children: [/*#__PURE__*/_jsx(HeartIcon, {
71
+ children: [/*#__PURE__*/_jsx(HeartIcon
72
+ // TODO: className to be removed
73
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
74
+ , {
70
75
  className: getClassName('bpk-save-button__icon', 'bpk-save-button__heartIcon', toggle && checked && 'bpk-save-button__heartIcon--toggle', `bpk-save-button__heartIcon--${checked ? 'show' : 'hide'}`, `bpk-save-button__heartIcon--${style}`)
71
- }), /*#__PURE__*/_jsx(HeartOutLineIcon, {
76
+ }), /*#__PURE__*/_jsx(HeartOutLineIcon
77
+ // TODO: className to be removed
78
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
79
+ , {
72
80
  className: getClassName('bpk-save-button__icon', 'bpk-save-button__heartOutlineIcon', `bpk-save-button__heartOutlineIcon--${checked ? 'hide' : 'show'}`, `bpk-save-button__heartOutlineIcon--${style}`)
73
81
  })]
74
82
  });
@@ -17,8 +17,7 @@
17
17
  */import PropTypes from 'prop-types';
18
18
  import { cssModules } from "../../bpk-react-utils";
19
19
  import STYLES from "./BpkCheckbox.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 BpkCheckbox = props => {
24
23
  const {
@@ -16,17 +16,15 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import BpkSelectableChip, {
20
- type Props as SelectableProps,
21
- } from './src/BpkSelectableChip';
19
+ import BpkSelectableChip, { type Props as SelectableProps } from './src/BpkSelectableChip';
22
20
  import BpkDismissibleChip from './src/BpkDismissibleChip';
23
21
  import BpkDropdownChip from './src/BpkDropdownChip';
22
+ import BpkIconChip from './src/BpkIconChip';
24
23
  import type { CommonProps } from './src/commonTypes';
25
24
  import { CHIP_TYPES } from './src/commonTypes';
26
25
  import themeAttributes from './src/themeAttributes';
27
-
28
26
  export type BpkSelectableChipProps = SelectableProps;
29
27
  export type BpkDismissibleChipProps = CommonProps;
30
28
  export type BpkDropdownChipProps = CommonProps;
31
29
  export default BpkSelectableChip;
32
- export { BpkDismissibleChip, BpkDropdownChip, CHIP_TYPES, themeAttributes };
30
+ export { BpkDismissibleChip, BpkDropdownChip, BpkIconChip, CHIP_TYPES, themeAttributes };
@@ -16,10 +16,11 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import BpkSelectableChip from "./src/BpkSelectableChip";
20
19
  import BpkDismissibleChip from "./src/BpkDismissibleChip";
21
20
  import BpkDropdownChip from "./src/BpkDropdownChip";
21
+ import BpkIconChip from "./src/BpkIconChip";
22
+ import BpkSelectableChip from "./src/BpkSelectableChip";
22
23
  import { CHIP_TYPES } from "./src/commonTypes";
23
24
  import themeAttributes from "./src/themeAttributes";
24
25
  export default BpkSelectableChip;
25
- export { BpkDismissibleChip, BpkDropdownChip, CHIP_TYPES, themeAttributes };
26
+ export { BpkDismissibleChip, BpkDropdownChip, BpkIconChip, CHIP_TYPES, themeAttributes };