@skyscanner/backpack-web 33.3.0 → 33.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/bpk-component-accordion/src/BpkAccordionItem.js +2 -3
  2. package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +1 -2
  3. package/bpk-component-banner-alert/src/AnimateAndFade.js +4 -4
  4. package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +1 -2
  5. package/bpk-component-barchart/src/BpkBarchart.js +2 -3
  6. package/bpk-component-barchart/src/BpkBarchartBar.js +1 -2
  7. package/bpk-component-barchart/src/BpkBarchartBars.js +2 -2
  8. package/bpk-component-barchart/src/BpkBarchartDefs.js +1 -2
  9. package/bpk-component-barchart/src/BpkChartAxis.js +1 -2
  10. package/bpk-component-barchart/src/BpkChartDataTable.js +1 -2
  11. package/bpk-component-bottom-sheet/src/BpkBottomSheet.js +1 -3
  12. package/bpk-component-breadcrumb/src/BpkBreadcrumb.js +1 -2
  13. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +1 -2
  14. package/bpk-component-breakpoint/index.d.ts +2 -1
  15. package/bpk-component-breakpoint/src/BpkBreakpoint.js +5 -19
  16. package/bpk-component-breakpoint/src/useMediaQuery.js +10 -12
  17. package/bpk-component-calendar/src/BpkCalendarGrid.js +2 -1
  18. package/bpk-component-calendar/src/BpkCalendarGridTransition.js +1 -2
  19. package/bpk-component-calendar/src/BpkCalendarNav.js +1 -2
  20. package/bpk-component-calendar/src/Week.js +1 -1
  21. package/bpk-component-calendar/src/composeCalendar.js +1 -2
  22. package/bpk-component-card/src/BpkCardWrapper.js +1 -2
  23. package/bpk-component-card/src/BpkDividedCard.js +1 -2
  24. package/bpk-component-card-button/src/BpkSaveButton.js +1 -2
  25. package/bpk-component-checkbox/src/BpkCheckbox.js +1 -2
  26. package/bpk-component-chip/src/BpkSelectableChip.js +2 -3
  27. package/bpk-component-close-button/src/BpkCloseButton.js +3 -2
  28. package/bpk-component-close-button/src/BpkCloseButton.module.css +1 -1
  29. package/bpk-component-content-cards/src/BpkContentCard.js +1 -2
  30. package/bpk-component-content-cards/src/BpkContentCards.js +2 -7
  31. package/bpk-component-content-cards/src/BpkContentCards.module.css +1 -1
  32. package/bpk-component-datatable/src/BpkDataTable.js +3 -3
  33. package/bpk-component-datatable/src/BpkDataTableHeader.js +2 -3
  34. package/bpk-component-datepicker/src/BpkDatepicker.js +1 -3
  35. package/bpk-component-dialog/src/BpkDialog.js +1 -2
  36. package/bpk-component-dialog/src/BpkDialogInner.js +1 -2
  37. package/bpk-component-drawer/src/BpkDrawerContent.js +1 -2
  38. package/bpk-component-fieldset/src/BpkFieldset.js +1 -2
  39. package/bpk-component-flare/src/BpkContentBubble.js +1 -2
  40. package/bpk-component-flare/src/BpkFlareBar.js +2 -3
  41. package/bpk-component-floating-notification/src/BpkFloatingNotification.js +2 -2
  42. package/bpk-component-form-validation/src/BpkFormValidation.js +1 -2
  43. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.js +1 -3
  44. package/bpk-component-icon/lg/aircraft.js +1 -2
  45. package/bpk-component-icon/lg/beach.js +1 -2
  46. package/bpk-component-icon/lg/call-back.js +1 -2
  47. package/bpk-component-icon/lg/camper-van.js +1 -2
  48. package/bpk-component-icon/lg/car-wash.js +1 -2
  49. package/bpk-component-icon/lg/cars.js +1 -2
  50. package/bpk-component-icon/lg/clean.js +1 -2
  51. package/bpk-component-icon/lg/cloakroom.js +1 -2
  52. package/bpk-component-icon/lg/content--copy.js +1 -2
  53. package/bpk-component-icon/lg/data.js +1 -2
  54. package/bpk-component-icon/lg/depart.js +1 -2
  55. package/bpk-component-icon/lg/download.js +1 -2
  56. package/bpk-component-icon/lg/education.js +1 -2
  57. package/bpk-component-icon/lg/explore.js +1 -2
  58. package/bpk-component-icon/lg/fast-track.js +1 -2
  59. package/bpk-component-icon/lg/fast-train.js +1 -2
  60. package/bpk-component-icon/lg/flight-landing.js +1 -2
  61. package/bpk-component-icon/lg/flight-takeoff.js +1 -2
  62. package/bpk-component-icon/lg/flight.js +1 -2
  63. package/bpk-component-icon/lg/legroom--extra.js +1 -2
  64. package/bpk-component-icon/lg/legroom--normal.js +1 -2
  65. package/bpk-component-icon/lg/legroom--reduced.js +1 -2
  66. package/bpk-component-icon/lg/logout.js +1 -2
  67. package/bpk-component-icon/lg/lounge.js +1 -2
  68. package/bpk-component-icon/lg/mail.js +1 -2
  69. package/bpk-component-icon/lg/mileage.js +1 -2
  70. package/bpk-component-icon/lg/new-window.js +1 -2
  71. package/bpk-component-icon/lg/plane-seat.js +1 -2
  72. package/bpk-component-icon/lg/return.js +1 -2
  73. package/bpk-component-icon/lg/scales.js +1 -2
  74. package/bpk-component-icon/lg/share--ios.js +1 -2
  75. package/bpk-component-icon/lg/social-distancing.js +1 -2
  76. package/bpk-component-icon/lg/speaker.js +1 -2
  77. package/bpk-component-icon/lg/taxi.js +1 -2
  78. package/bpk-component-icon/lg/unmute.js +1 -2
  79. package/bpk-component-icon/lg/wallet.js +1 -2
  80. package/bpk-component-icon/lg/weather--cloudy.js +1 -2
  81. package/bpk-component-icon/lg/weather--partly-cloudy.js +1 -2
  82. package/bpk-component-icon/lg/weather--rain.js +1 -2
  83. package/bpk-component-icon/lg/weather--thunderstorm.js +1 -2
  84. package/bpk-component-icon/lg/window--reduce.js +1 -2
  85. package/bpk-component-icon/lg/world--emea.js +1 -2
  86. package/bpk-component-icon/sm/aircraft.js +1 -2
  87. package/bpk-component-icon/sm/beach.js +1 -2
  88. package/bpk-component-icon/sm/bus.js +1 -2
  89. package/bpk-component-icon/sm/call-back.js +1 -2
  90. package/bpk-component-icon/sm/camper-van.js +1 -2
  91. package/bpk-component-icon/sm/car-wash.js +1 -2
  92. package/bpk-component-icon/sm/cars.js +1 -2
  93. package/bpk-component-icon/sm/chauffeur.js +1 -2
  94. package/bpk-component-icon/sm/clean.js +1 -2
  95. package/bpk-component-icon/sm/content--copy.js +1 -2
  96. package/bpk-component-icon/sm/data.js +1 -2
  97. package/bpk-component-icon/sm/depart.js +1 -2
  98. package/bpk-component-icon/sm/direct.js +1 -2
  99. package/bpk-component-icon/sm/download.js +1 -2
  100. package/bpk-component-icon/sm/education.js +1 -2
  101. package/bpk-component-icon/sm/explore.js +1 -2
  102. package/bpk-component-icon/sm/fast-track.js +1 -2
  103. package/bpk-component-icon/sm/fast-train.js +1 -2
  104. package/bpk-component-icon/sm/flight-landing.js +1 -2
  105. package/bpk-component-icon/sm/flight-takeoff.js +1 -2
  106. package/bpk-component-icon/sm/flight.js +1 -2
  107. package/bpk-component-icon/sm/hotels--jacuzzi.js +1 -2
  108. package/bpk-component-icon/sm/infant.js +1 -2
  109. package/bpk-component-icon/sm/legroom--extra.js +1 -2
  110. package/bpk-component-icon/sm/legroom--normal.js +1 -2
  111. package/bpk-component-icon/sm/legroom--reduced.js +1 -2
  112. package/bpk-component-icon/sm/logout.js +1 -2
  113. package/bpk-component-icon/sm/mail.js +1 -2
  114. package/bpk-component-icon/sm/mileage.js +1 -2
  115. package/bpk-component-icon/sm/new-window.js +1 -2
  116. package/bpk-component-icon/sm/onsen.js +1 -2
  117. package/bpk-component-icon/sm/plane-seat.js +1 -2
  118. package/bpk-component-icon/sm/return.js +1 -2
  119. package/bpk-component-icon/sm/share--ios.js +1 -2
  120. package/bpk-component-icon/sm/social-distancing.js +1 -2
  121. package/bpk-component-icon/sm/taxi.js +1 -2
  122. package/bpk-component-icon/sm/unmute.js +1 -2
  123. package/bpk-component-icon/sm/weather--cloudy.js +1 -2
  124. package/bpk-component-icon/sm/weather--rain.js +1 -2
  125. package/bpk-component-icon/sm/weather--thunderstorm.js +1 -2
  126. package/bpk-component-icon/sm/weather--wind.js +1 -2
  127. package/bpk-component-icon/sm/window--reduce.js +1 -2
  128. package/bpk-component-icon/src/withDescription.js +1 -2
  129. package/bpk-component-icon/src/withRtlSupport.js +1 -1
  130. package/bpk-component-image/src/BpkBackgroundImage.js +2 -2
  131. package/bpk-component-image/src/BpkImage.js +4 -3
  132. package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +1 -2
  133. package/bpk-component-info-banner/src/AnimateAndFade.js +4 -4
  134. package/bpk-component-info-banner/src/BpkInfoBannerInner.js +1 -2
  135. package/bpk-component-input/src/BpkInput.js +2 -3
  136. package/bpk-component-label/src/BpkLabel.js +1 -2
  137. package/bpk-component-loading-button/src/BpkLoadingButton.js +1 -2
  138. package/bpk-component-map/src/BpkIconMarker.js +1 -2
  139. package/bpk-component-map/src/BpkPriceMarker.js +1 -2
  140. package/bpk-component-map/src/BpkPriceMarkerV2/BpkPriceMarker.js +1 -2
  141. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +1 -1
  142. package/bpk-component-modal/src/BpkModal.js +1 -1
  143. package/bpk-component-modal/src/BpkModalInner.js +1 -2
  144. package/bpk-component-modal/src/BpkModalV2/BpkModal.js +1 -2
  145. package/bpk-component-navigation-bar/src/BpkNavigationBar.js +1 -2
  146. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +1 -1
  147. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +1 -1
  148. package/bpk-component-nudger/src/BpkConfigurableNudger.js +1 -2
  149. package/bpk-component-nudger/src/BpkNudger.js +1 -2
  150. package/bpk-component-overlay/src/BpkOverlay.js +1 -2
  151. package/bpk-component-page-indicator/src/BpkPageIndicator.js +1 -2
  152. package/bpk-component-pagination/src/BpkPagination.js +1 -2
  153. package/bpk-component-pagination/src/BpkPaginationNudger.js +1 -2
  154. package/bpk-component-phone-input/src/BpkPhoneInput.js +1 -2
  155. package/bpk-component-popover/src/BpkPopover.js +2 -3
  156. package/bpk-component-popover/src/BpkPopoverPortal.js +4 -6
  157. package/bpk-component-price/src/BpkPrice.js +2 -3
  158. package/bpk-component-progress/src/BpkProgress.js +1 -2
  159. package/bpk-component-radio/src/BpkRadio.js +1 -2
  160. package/bpk-component-rating/src/BpkRating.js +2 -3
  161. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +1 -2
  162. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +1 -1
  163. package/bpk-component-section-header/src/BpkSectionHeader.js +1 -2
  164. package/bpk-component-section-list/src/BpkSectionListItem.js +1 -2
  165. package/bpk-component-section-list/src/BpkSectionListSection.js +1 -2
  166. package/bpk-component-select/src/BpkSelect.js +1 -2
  167. package/bpk-component-slider/src/BpkSlider.js +2 -1
  168. package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +2 -3
  169. package/bpk-component-spinner/src/BpkLargeSpinner.js +2 -3
  170. package/bpk-component-spinner/src/BpkSpinner.js +2 -3
  171. package/bpk-component-switch/src/BpkSwitch.js +1 -2
  172. package/bpk-component-theme-toggle/src/BpkThemeToggle.js +2 -3
  173. package/bpk-component-tooltip/src/BpkTooltip.js +2 -3
  174. package/bpk-component-tooltip/src/BpkTooltipPortal.js +3 -5
  175. package/bpk-react-utils/src/BpkDialogWrapper/BpkDialogWrapper.js +2 -2
  176. package/bpk-react-utils/src/Portal.js +1 -0
  177. package/bpk-scrim-utils/src/withScrim.js +3 -3
  178. package/package.json +1 -1
  179. /package/bpk-react-utils/src/{BpkDialogWrapper.d.ts → BpkDialogWrapper/BpkDialogWrapper.d.ts} +0 -0
  180. /package/bpk-react-utils/src/{BpkDialogWrapper.module.css → BpkDialogWrapper/BpkDialogWrapper.module.css} +0 -0
@@ -17,14 +17,13 @@
17
17
  */import PropTypes from 'prop-types';
18
18
  import { Node, Element, useContext, cloneElement } from 'react';
19
19
  import AnimateHeight from "../../bpk-animate-height";
20
- import { withButtonAlignment } from "../../bpk-component-icon";
21
20
  import ChevronDownIcon from "../../bpk-component-icon/sm/chevron-down";
22
21
  import BpkText, { TEXT_STYLES } from "../../bpk-component-text";
23
22
  import { cssModules } from "../../bpk-react-utils";
23
+ import { withButtonAlignment } from "../../bpk-component-icon";
24
24
  import { BpkAccordionContext } from "./BpkAccordion";
25
25
  import STYLES from "./BpkAccordionItem.module.css";
26
- import { jsxs as _jsxs } from "react/jsx-runtime";
27
- import { jsx as _jsx } from "react/jsx-runtime";
26
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
28
27
  const getClassName = cssModules(STYLES);
29
28
  const ExpandIcon = withButtonAlignment(ChevronDownIcon);
30
29
  const BpkAccordionItem = props => {
@@ -17,8 +17,7 @@
17
17
  */import PropTypes from 'prop-types';
18
18
  import { cssModules } from "../../bpk-react-utils";
19
19
  import STYLES from "./BpkAutosuggest.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 BpkAutosuggestSuggestion = props => {
24
23
  const classNames = [getClassName('bpk-autosuggest__suggestion')];
@@ -18,15 +18,15 @@
18
18
 
19
19
  import { Component } from 'react';
20
20
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
21
- import { durationSm } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
22
- // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
23
21
  import { TransitionGroup, CSSTransition } from 'react-transition-group';
22
+
23
+ // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
24
+ import { durationSm } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
24
25
  import { cssModules } from "../../bpk-react-utils";
25
26
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
26
27
  import BpkAnimateHeight from "../../bpk-animate-height";
27
28
  import STYLES from "./BpkAnimateAndFade.module.css";
28
- import { jsx as _jsx } from "react/jsx-runtime";
29
- import { jsxs as _jsxs } from "react/jsx-runtime";
29
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
30
30
  const getClassName = cssModules(STYLES);
31
31
  const ANIMATION_DURATION = parseInt(durationSm, 10);
32
32
  class AnimateAndFade extends Component {
@@ -37,8 +37,7 @@ import { cssModules } from "../../bpk-react-utils";
37
37
  import AnimateAndFade from "./AnimateAndFade";
38
38
  import { ALERT_TYPES } from "./common-types";
39
39
  import STYLES from "./BpkBannerAlert.module.css";
40
- import { jsx as _jsx } from "react/jsx-runtime";
41
- import { jsxs as _jsxs } from "react/jsx-runtime";
40
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
42
41
  const getClassName = cssModules(STYLES);
43
42
  const ExpandIcon = withButtonAlignment(ChevronDownIcon);
44
43
  export const CONFIGURATION = {
@@ -15,8 +15,8 @@
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 debounce from 'lodash.debounce';
19
18
  import { Component } from 'react';
19
+ import debounce from 'lodash.debounce';
20
20
  import { scaleLinear, scaleBand } from 'd3-scale';
21
21
  import { lineHeightSm } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
22
22
  import { cssModules } from "../../bpk-react-utils";
@@ -33,8 +33,7 @@ import { identity, remToPx } from "./utils";
33
33
  import { applyArrayRTLTransform, applyMarginRTLTransform } from "./RTLtransforms";
34
34
  import { ORIENTATION_X, ORIENTATION_Y } from "./orientation";
35
35
  import STYLES from "./BpkBarchart.module.css";
36
- import { jsx as _jsx } from "react/jsx-runtime";
37
- import { jsxs as _jsxs } from "react/jsx-runtime";
36
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
38
37
  const getClassName = cssModules(STYLES);
39
38
  const spacing = remToPx('.375rem');
40
39
  const lineHeight = remToPx(lineHeightSm);
@@ -19,8 +19,7 @@ import { borderRadiusXs } from '@skyscanner/bpk-foundations-web/tokens/base.es6'
19
19
  import { cssModules } from "../../bpk-react-utils";
20
20
  import { remToPx } from "./utils";
21
21
  import STYLES from "./BpkBarchartBar.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 KEYCODES = {
26
25
  ENTER: 13,
@@ -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 { scaleBand, scaleLinear } from 'd3-scale';
18
- import PropTypes from 'prop-types';
17
+ */import PropTypes from 'prop-types';
18
+ import { scaleBand, scaleLinear } from 'd3-scale';
19
19
  import { borderRadiusXs } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
20
20
  import BpkBarchartBar from "./BpkBarchartBar";
21
21
  import { remToPx } from "./utils";
@@ -1,5 +1,4 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
2
  /*
4
3
  * Backpack - Skyscanner's Design System
5
4
  *
@@ -21,8 +21,7 @@ import { rtlConditionalValue } from "./RTLtransforms";
21
21
  import { ORIENTATION_X, ORIENTATION_Y } from "./orientation";
22
22
  import { identity, center, remToPx } from "./utils";
23
23
  import STYLES from "./BpkChartAxis.module.css";
24
- import { jsx as _jsx } from "react/jsx-runtime";
25
- import { jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
26
25
  const getClassName = cssModules(STYLES);
27
26
  const spacing = remToPx('.375rem');
28
27
  const lineHeight = remToPx(lineHeightSm);
@@ -18,8 +18,7 @@
18
18
  import { cssModules } from "../../bpk-react-utils";
19
19
  import dataProp from "./customPropTypes";
20
20
  import STYLES from "./BpkChartDataTable.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 BpkChartDataTable = props => {
25
24
  const {
@@ -26,9 +26,7 @@ import { BpkDialogWrapper, cssModules } from "../../bpk-react-utils";
26
26
  import BpkNavigationBar from "../../bpk-component-navigation-bar";
27
27
  import BpkText, { TEXT_STYLES } from "../../bpk-component-text/src/BpkText";
28
28
  import STYLES from "./BpkBottomSheet.module.css";
29
- import { jsx as _jsx } from "react/jsx-runtime";
30
- import { Fragment as _Fragment } from "react/jsx-runtime";
31
- import { jsxs as _jsxs } from "react/jsx-runtime";
29
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
32
30
  const getClassName = cssModules(STYLES);
33
31
  const BpkBottomSheet = ({
34
32
  actionText = '',
@@ -18,8 +18,7 @@
18
18
  import { Component, Fragment } from 'react';
19
19
  import { cssModules } from "../../bpk-react-utils";
20
20
  import STYLES from "./BpkBreadcrumb.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
  /*
25
24
  The google structured data reference for the stringified output of
@@ -21,8 +21,7 @@ import { cssModules } from "../../bpk-react-utils";
21
21
  import { withRtlSupport } from "../../bpk-component-icon";
22
22
  import ArrowRight from "../../bpk-component-icon/sm/arrow-right";
23
23
  import STYLES from "./BpkBreadcrumbItem.module.css";
24
- import { jsx as _jsx } from "react/jsx-runtime";
25
- import { jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
26
25
  const getClassName = cssModules(STYLES);
27
26
  const RtlSupportedArrowRight = withRtlSupport(ArrowRight);
28
27
  const BpkBreadcrumbItem = props => {
@@ -17,5 +17,6 @@
17
17
  */
18
18
 
19
19
  import BpkBreakpoint, { BREAKPOINTS } from './src/BpkBreakpoint';
20
- export { BREAKPOINTS };
20
+ import useMediaQuery from './src/useMediaQuery';
21
+ export { BREAKPOINTS, useMediaQuery };
21
22
  export default BpkBreakpoint;
@@ -16,7 +16,6 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import { useState, useEffect } from 'react';
20
19
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
21
20
  import { breakpoints } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
22
21
  import useMediaQuery from "./useMediaQuery";
@@ -38,27 +37,14 @@ const BpkBreakpoint = ({
38
37
  matchSSR = false,
39
38
  query
40
39
  }) => {
41
- const [isClient, setIsClient] = useState(false);
42
- const matches = useMediaQuery(query);
43
- useEffect(() => {
44
- setIsClient(true);
45
- }, []);
46
- if (isClient) {
47
- if (!legacy && !Object.values(BREAKPOINTS).includes(query)) {
48
- console.warn(`Invalid query ${query}. Use one of the supported queries or pass the legacy prop.`);
49
- }
50
- if (typeof children === 'function') {
51
- return children(matches);
52
- }
53
- return matches ? children : null;
40
+ const matches = useMediaQuery(query, matchSSR);
41
+ if (!legacy && !Object.values(BREAKPOINTS).includes(query)) {
42
+ console.warn(`Invalid query ${query}. Use one of the supported queries or pass the legacy prop.`);
54
43
  }
55
-
56
- // Below code is executed when running in SSR mode
57
-
58
44
  if (typeof children === 'function') {
59
- return children(matchSSR);
45
+ return children(matches);
60
46
  }
61
- return matchSSR ? children : null;
47
+ return matches ? children : null;
62
48
  };
63
49
  export { BREAKPOINTS };
64
50
  export default BpkBreakpoint;
@@ -16,20 +16,18 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import { useState, useEffect } from 'react';
20
- const useMediaQuery = query => {
21
- const [matches, setMatches] = useState(window.matchMedia ? window.matchMedia(query).matches : false);
19
+ import { useEffect, useState } from 'react';
20
+ const useMediaQuery = (query, matchSSR = false) => {
21
+ const isClient = typeof window !== 'undefined' && !!window.matchMedia;
22
+ const [matches, setMatches] = useState(isClient ? window.matchMedia(query).matches : matchSSR);
22
23
  useEffect(() => {
23
- if (window.matchMedia) {
24
- const media = window.matchMedia(query);
24
+ const media = window.matchMedia(query);
25
+ setMatches(media.matches);
26
+ const listener = () => {
25
27
  setMatches(media.matches);
26
- const listener = () => {
27
- setMatches(media.matches);
28
- };
29
- media.addEventListener('change', listener);
30
- return () => media.removeEventListener('change', listener);
31
- }
32
- return undefined;
28
+ };
29
+ media.addEventListener('change', listener);
30
+ return () => media.removeEventListener('change', listener);
33
31
  }, [query]);
34
32
  return matches;
35
33
  };
@@ -21,8 +21,9 @@ import { cssModules, isDeviceIos } from "../../bpk-react-utils";
21
21
  import Week from "./Week";
22
22
  import { addMonths, formatIsoDate, getCalendarMonthWeeks, isSameMonth } from "./date-utils";
23
23
  import { CALENDAR_SELECTION_TYPE } from "./custom-proptypes";
24
- import STYLES from "./BpkCalendarGrid.module.css";
25
24
  import { addCalendarGridTransition } from "./BpkCalendarGridTransition";
25
+ import STYLES from "./BpkCalendarGrid.module.css";
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
@@ -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
21
  import { getCalendarGridWidth, getTransformStyles, isTransitionEndSupported } from "./utils";
22
22
  import { addMonths, isSameMonth, formatIsoMonth, differenceInCalendarMonths, dateToBoundaries, startOfDay, setMonthYear, isWithinRange, getMonthRange } from "./date-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 = {
@@ -26,8 +26,7 @@ import { cssModules } from "../../bpk-react-utils";
26
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,
@@ -20,11 +20,11 @@ import { Component } from 'react';
20
20
  import { cssModules } from "../../bpk-react-utils";
21
21
  import { isSameDay, isSameWeek, isSameMonth, isToday, isWithinRange, startOfMonth, endOfMonth } from "./date-utils";
22
22
  import { CALENDAR_SELECTION_TYPE } from "./custom-proptypes";
23
+ import { SELECTION_TYPES } from "./BpkCalendarDate";
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) => {
@@ -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 = ({
@@ -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',
@@ -29,8 +29,7 @@ import BpkHeartOutlineIconSm from "../../bpk-component-icon/sm/heart--outline";
29
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'
@@ -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 {
@@ -18,10 +18,9 @@
18
18
 
19
19
  import { cssModules } from "../../bpk-react-utils";
20
20
  import BpkText, { TEXT_STYLES } from "../../bpk-component-text";
21
- import STYLES from "./BpkSelectableChip.module.css";
22
21
  import { CHIP_TYPES } from "./commonTypes";
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import { jsxs as _jsxs } from "react/jsx-runtime";
22
+ import STYLES from "./BpkSelectableChip.module.css";
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
25
24
  const getClassName = cssModules(STYLES);
26
25
  const BpkSelectableChip = ({
27
26
  accessibilityLabel,
@@ -43,8 +43,9 @@ const BpkCloseButton = props => {
43
43
  "aria-label": label,
44
44
  className: classNames.join(' '),
45
45
  ...rest,
46
- children: /*#__PURE__*/_jsx(Icon, {
47
- className: getClassName('bpk-close-button__icon')
46
+ children: /*#__PURE__*/_jsx("span", {
47
+ className: getClassName('bpk-close-button__icon'),
48
+ children: /*#__PURE__*/_jsx(Icon, {})
48
49
  })
49
50
  })
50
51
  );
@@ -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-close-button{width:1.5rem;height:1.5rem;margin-right:-0.125rem;margin-left:-0.125rem;padding:0;border:0;background-color:rgba(0,0,0,0);color:#626971;cursor:pointer;appearance:none;position:relative}.bpk-close-button::before{position:absolute;top:calc(-2.75rem/2 + 50%);left:calc(-2.75rem/2 + 50%);content:"";width:2.75rem;height:2.75rem}.bpk-no-touch-support .bpk-close-button:hover:not(:active):not(:disabled){color:#161616}:global(.bpk-no-touch-support) .bpk-close-button:hover:not(:active):not(:disabled){color:#161616}.bpk-close-button:active{color:#161616}.bpk-close-button__icon{vertical-align:-0.125rem;fill:currentcolor}
18
+ .bpk-close-button{width:1.5rem;height:1.5rem;margin-right:-0.125rem;margin-left:-0.125rem;padding:0;border:0;background-color:rgba(0,0,0,0);color:#626971;cursor:pointer;appearance:none;position:relative}.bpk-close-button::before{position:absolute;top:calc(-2.75rem/2 + 50%);left:calc(-2.75rem/2 + 50%);content:"";width:2.75rem;height:2.75rem}.bpk-no-touch-support .bpk-close-button:hover:not(:active):not(:disabled){color:#161616}:global(.bpk-no-touch-support) .bpk-close-button:hover:not(:active):not(:disabled){color:#161616}.bpk-close-button:active{color:#161616}.bpk-close-button__icon{vertical-align:-0.21875rem;fill:currentcolor}
@@ -21,8 +21,7 @@ import BpkText from "../../bpk-component-text";
21
21
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
22
22
  import { cssModules } from "../../bpk-react-utils";
23
23
  import STYLES from "./BpkContentCard.module.css";
24
- import { jsx as _jsx } from "react/jsx-runtime";
25
- import { jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
26
25
  const getClassName = cssModules(STYLES);
27
26
  const BpkContentCard = ({
28
27
  card,
@@ -17,14 +17,10 @@
17
17
  */
18
18
  /* eslint react/no-array-index-key: 0 */
19
19
 
20
- // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
21
- import BpkText from "../../bpk-component-text";
22
- // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
23
20
  import { cssModules } from "../../bpk-react-utils";
24
21
  import BpkContentCard from "./BpkContentCard";
25
22
  import STYLES from "./BpkContentCards.module.css";
26
- import { jsx as _jsx } from "react/jsx-runtime";
27
- import { jsxs as _jsxs } from "react/jsx-runtime";
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
28
24
  const getClassName = cssModules(STYLES);
29
25
  const BpkContentCards = ({
30
26
  cards,
@@ -34,8 +30,7 @@ const BpkContentCards = ({
34
30
  return null;
35
31
  }
36
32
  return /*#__PURE__*/_jsxs("div", {
37
- children: [/*#__PURE__*/_jsx(BpkText, {
38
- tagName: "h2",
33
+ children: [/*#__PURE__*/_jsx("h2", {
39
34
  className: getClassName('bpk-content-cards--header-text'),
40
35
  children: heading
41
36
  }), /*#__PURE__*/_jsx("div", {
@@ -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-content-cards--header-text{margin-bottom:1rem;font-size:2rem;line-height:2.5rem;font-weight:700}@media(max-width: 32rem){.bpk-content-cards--header-text{font-size:1.5rem;line-height:1.75rem;font-weight:700}}.bpk-content-cards--layout{display:grid;grid-template-columns:repeat(auto-fit, minmax(3.125rem, 1fr));grid-auto-flow:column;gap:1.5rem}@media(max-width: 48rem){.bpk-content-cards--layout{grid-template-columns:1fr;grid-auto-flow:row;gap:1.5rem}}
18
+ .bpk-content-cards--header-text{margin-top:0;margin-bottom:1rem;font-size:2rem;line-height:2.5rem;font-weight:700}@media(max-width: 32rem){.bpk-content-cards--header-text{font-size:1.5rem;line-height:1.75rem;font-weight:700}}.bpk-content-cards--layout{display:grid;grid-template-columns:repeat(auto-fit, minmax(3.125rem, 1fr));grid-auto-flow:column;gap:1.5rem}@media(max-width: 48rem){.bpk-content-cards--layout{grid-template-columns:1fr;grid-auto-flow:row;gap:1.5rem}}
@@ -17,15 +17,15 @@
17
17
  */
18
18
 
19
19
  import { useMemo, useState } from 'react';
20
+
20
21
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
21
22
  import { useTable, useSortBy } from 'react-table';
22
23
  import { cssModules } from "../../bpk-react-utils";
23
- import STYLES from "./BpkDataTable.module.css";
24
24
  import { SORT_DIRECTION_TYPES } from "./common-types";
25
25
  import BpkDataTableHeader from "./BpkDataTableHeader";
26
26
  import { createColumnsSchema } from "./utils";
27
- import { jsx as _jsx } from "react/jsx-runtime";
28
- import { jsxs as _jsxs } from "react/jsx-runtime";
27
+ import STYLES from "./BpkDataTable.module.css";
28
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
29
29
  const getClassName = cssModules(STYLES);
30
30
  const KEYCODES = {
31
31
  ENTER: 13,
@@ -22,10 +22,9 @@ import BpkSmallArrowDownIcon from "../../bpk-component-icon/sm/arrow-down";
22
22
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
23
23
  import BpkSmallArrowUpIcon from "../../bpk-component-icon/sm/arrow-up";
24
24
  import { withRtlSupport } from "../../bpk-component-icon";
25
- import STYLES from "./BpkDataTableHeader.module.css";
26
25
  import { SORT_DIRECTION_TYPES } from "./common-types";
27
- import { jsx as _jsx } from "react/jsx-runtime";
28
- import { jsxs as _jsxs } from "react/jsx-runtime";
26
+ import STYLES from "./BpkDataTableHeader.module.css";
27
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
29
28
  const DownIcon = withRtlSupport(BpkSmallArrowDownIcon);
30
29
  const UpIcon = withRtlSupport(BpkSmallArrowUpIcon);
31
30
  const getClassName = cssModules(STYLES);
@@ -25,9 +25,7 @@ import { cssModules } from "../../bpk-react-utils";
25
25
  import BpkBreakpoint, { BREAKPOINTS } from "../../bpk-component-breakpoint";
26
26
  import { composeCalendar, BpkCalendarGridHeader, BpkCalendarGrid, BpkCalendarDate, withCalendarState, CALENDAR_SELECTION_TYPE, DateUtils, BpkCalendarNav } from "../../bpk-component-calendar";
27
27
  import STYLES from "./BpkDatepicker.module.css";
28
- import { jsx as _jsx } from "react/jsx-runtime";
29
- import { Fragment as _Fragment } from "react/jsx-runtime";
30
- import { jsxs as _jsxs } from "react/jsx-runtime";
28
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
31
29
  const getClassName = cssModules(STYLES);
32
30
  const Input = withOpenEvents(BpkInput);
33
31
  const DefaultCalendar = withCalendarState(composeCalendar(BpkCalendarNav, BpkCalendarGridHeader, BpkCalendarGrid, BpkCalendarDate));
@@ -22,8 +22,7 @@ import BpkCloseButton from "../../bpk-component-close-button";
22
22
  import BpkDialogInner from "./BpkDialogInner";
23
23
  import { HEADER_ICON_TYPES } from "./common-types";
24
24
  import STYLES from "./BpkDialog.module.css";
25
- import { jsx as _jsx } from "react/jsx-runtime";
26
- import { jsxs as _jsxs } from "react/jsx-runtime";
25
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
27
26
  const getClassName = cssModules(STYLES);
28
27
  const BpkDialog = ({
29
28
  children,
@@ -21,8 +21,7 @@ import { withScrim } from "../../bpk-scrim-utils";
21
21
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
22
22
  import { BpkContentBubble } from "../../bpk-component-flare";
23
23
  import STYLES from "./BpkDialogInner.module.css";
24
- import { jsx as _jsx } from "react/jsx-runtime";
25
- import { jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
26
25
  const getClassName = cssModules(STYLES);
27
26
  const BpkDialogInner = props => {
28
27
  const {
@@ -21,8 +21,7 @@ import { cssModules } from "../../bpk-react-utils";
21
21
  import { BpkButtonLink } from "../../bpk-component-link";
22
22
  import BpkCloseButton from "../../bpk-component-close-button";
23
23
  import STYLES from "./BpkDrawerContent.module.css";
24
- import { jsx as _jsx } from "react/jsx-runtime";
25
- import { jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
26
25
  const getClassName = cssModules(STYLES);
27
26
  const BpkDrawerContent = props => {
28
27
  const {
@@ -20,8 +20,7 @@ import BpkLabel from "../../bpk-component-label";
20
20
  import BpkFormValidation from "../../bpk-component-form-validation";
21
21
  import { cssModules } from "../../bpk-react-utils";
22
22
  import STYLES from "./BpkFieldset.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 BpkFieldset = props => {
27
26
  const {
@@ -20,8 +20,7 @@ import PropTypes from 'prop-types';
20
20
  import { cssModules } from "../../bpk-react-utils";
21
21
  import BpkFlareBar from "./BpkFlareBar";
22
22
  import STYLES from "./bpk-content-bubble.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 BpkContentBubble = props => {
27
26
  const {
@@ -18,11 +18,10 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import { cssModules } from "../../bpk-react-utils";
21
- import STYLES from "./bpk-flare-bar.module.css";
22
21
  import Pointer from "./__generated__/js/pointer";
23
22
  import CornerRadius from "./__generated__/js/corner-radius";
24
- import { jsx as _jsx } from "react/jsx-runtime";
25
- import { jsxs as _jsxs } from "react/jsx-runtime";
23
+ import STYLES from "./bpk-flare-bar.module.css";
24
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
26
25
  const getClassName = cssModules(STYLES);
27
26
  const BpkFlareBar = props => {
28
27
  const {
@@ -15,6 +15,7 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */import { useEffect, useState } from 'react';
18
+
18
19
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
19
20
  import { CSSTransition } from 'react-transition-group';
20
21
  import BpkAriaLive from "../../bpk-component-aria-live";
@@ -22,8 +23,7 @@ import { BUTTON_TYPES, BpkButtonV2 } from "../../bpk-component-button";
22
23
  import BpkText, { TEXT_STYLES } from "../../bpk-component-text";
23
24
  import { cssModules } from "../../bpk-react-utils";
24
25
  import STYLES from "./BpkFloatingNotification.module.css";
25
- import { jsx as _jsx } from "react/jsx-runtime";
26
- import { jsxs as _jsxs } from "react/jsx-runtime";
26
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
27
27
  const getClassName = cssModules(STYLES);
28
28
  const BpkFloatingNotification = props => {
29
29
  const [showMessage, setShowMessage] = useState(true);
@@ -23,8 +23,7 @@ import { cssModules } from "../../bpk-react-utils";
23
23
  import BpkSmallExclamationIcon from "../../bpk-component-icon/sm/exclamation-circle";
24
24
  import { withAlignment } from "../../bpk-component-icon";
25
25
  import STYLES from "./BpkFormValidation.module.css";
26
- import { jsx as _jsx } from "react/jsx-runtime";
27
- import { jsxs as _jsxs } from "react/jsx-runtime";
26
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
28
27
  const getClassName = cssModules(STYLES);
29
28
  const AlignedExclamationIcon = withAlignment(BpkSmallExclamationIcon, lineHeightSm, iconSizeSm);
30
29
  const BpkFormValidation = props => {
@@ -20,9 +20,7 @@ import { cssModules } from "../../bpk-react-utils";
20
20
  import BpkText from "../../bpk-component-text";
21
21
  import { BpkButtonV2, BUTTON_TYPES } from "../../bpk-component-button";
22
22
  import STYLES from "./BpkGraphicPromo.module.css";
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import { Fragment as _Fragment } from "react/jsx-runtime";
25
- import { jsxs as _jsxs } from "react/jsx-runtime";
23
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
26
24
  const getClassName = cssModules(STYLES);
27
25
  const ACCESSIBILITY_KEYS = {
28
26
  Enter: 13 /* Enter */,
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
3
  export default (({
5
4
  styles = {},
6
5
  ...props