@skyscanner/backpack-web 41.9.0 → 41.10.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 (76) hide show
  1. package/bpk-component-banner-alert/src/BpkBannerAlert.js +2 -0
  2. package/bpk-component-banner-alert/src/BpkBannerAlertDismissable.js +2 -0
  3. package/bpk-component-banner-alert/src/BpkBannerAlertExpandable.js +2 -0
  4. package/bpk-component-bottom-sheet/src/BpkBottomSheet.js +2 -1
  5. package/bpk-component-breadcrumb/src/BpkBreadcrumb.js +2 -1
  6. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +2 -1
  7. package/bpk-component-button/src/BpkButtonV2/BpkButton.js +3 -1
  8. package/bpk-component-card/src/BpkCard.js +4 -1
  9. package/bpk-component-card/src/BpkCardWrapper.js +2 -1
  10. package/bpk-component-card/src/BpkDividedCard.js +2 -1
  11. package/bpk-component-card-button/src/BpkSaveButton.js +2 -1
  12. package/bpk-component-card-list/src/BpkCardList.js +2 -1
  13. package/bpk-component-card-list/src/BpkCardListGridStack/BpkCardListGridStack.js +2 -1
  14. package/bpk-component-card-list/src/BpkCardListRowRail/BpkCardListCarousel.js +2 -1
  15. package/bpk-component-card-list/src/BpkCardListRowRail/BpkCardListRowRailContainer.js +2 -1
  16. package/bpk-component-carousel/src/BpkCarousel.js +2 -1
  17. package/bpk-component-carousel/src/BpkCarouselContainer.js +3 -1
  18. package/bpk-component-carousel/src/BpkCarouselImage.js +2 -1
  19. package/bpk-component-checkbox/src/BpkCheckbox.js +2 -1
  20. package/bpk-component-content-cards/src/BpkContentCard.js +2 -1
  21. package/bpk-component-content-cards/src/BpkContentCards.js +2 -1
  22. package/bpk-component-datatable/src/BpkDataTable.js +2 -1
  23. package/bpk-component-datatable/src/BpkDataTableHeader.js +2 -1
  24. package/bpk-component-datepicker/src/BpkDatepicker.js +2 -1
  25. package/bpk-component-description-list/src/BpkDescriptionDetails.js +2 -1
  26. package/bpk-component-description-list/src/BpkDescriptionList.js +2 -1
  27. package/bpk-component-description-list/src/BpkDescriptionTerm.js +2 -1
  28. package/bpk-component-dialog/src/BpkDialog.js +2 -1
  29. package/bpk-component-drawer/src/BpkDrawer.js +2 -1
  30. package/bpk-component-fieldset/src/BpkFieldset.js +2 -1
  31. package/bpk-component-floating-notification/src/BpkFloatingNotification.js +2 -1
  32. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.js +2 -1
  33. package/bpk-component-image/src/BpkBackgroundImage.js +2 -1
  34. package/bpk-component-image/src/BpkImage.js +2 -1
  35. package/bpk-component-info-banner/src/BpkInfoBanner.js +2 -0
  36. package/bpk-component-info-banner/src/BpkInfoBannerDismissable.js +2 -0
  37. package/bpk-component-info-banner/src/BpkInfoBannerExpandable.js +2 -0
  38. package/bpk-component-input/src/BpkInput.js +2 -1
  39. package/bpk-component-inset-banner/src/BpkInsetBanner.js +2 -1
  40. package/bpk-component-inset-banner/src/BpkInsetBannerV2/BpkInsetBannerSponsored.js +2 -1
  41. package/bpk-component-link/src/BpkButtonLink.js +2 -1
  42. package/bpk-component-link/src/BpkLink.js +2 -1
  43. package/bpk-component-list/index.d.ts +5 -0
  44. package/bpk-component-list/index.js +3 -1
  45. package/bpk-component-list/src/BpkList.d.ts +11 -0
  46. package/bpk-component-list/src/BpkList.js +10 -15
  47. package/bpk-component-list/src/BpkListItem.d.ts +7 -0
  48. package/bpk-component-list/src/BpkListItem.js +2 -5
  49. package/bpk-component-loading-button/src/BpkLoadingButton.js +2 -1
  50. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +2 -1
  51. package/bpk-component-modal/src/BpkModal.js +2 -1
  52. package/bpk-component-modal/src/BpkModalV2/BpkModal.js +2 -1
  53. package/bpk-component-navigation-bar/src/BpkNavigationBar.js +2 -1
  54. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +2 -0
  55. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +2 -0
  56. package/bpk-component-navigation-tab-group/src/BpkNavigationTabGroup.js +2 -1
  57. package/bpk-component-nudger/src/BpkNudger.js +2 -1
  58. package/bpk-component-overlay/src/BpkOverlay.js +2 -1
  59. package/bpk-component-panel/src/BpkPanel.js +2 -1
  60. package/bpk-component-popover/src/BpkPopover.js +2 -1
  61. package/bpk-component-rating/src/BpkRating.js +2 -1
  62. package/bpk-component-rtl-toggle/src/BpkRtlToggle.js +2 -0
  63. package/bpk-component-section-header/src/BpkSectionHeader.js +2 -1
  64. package/bpk-component-segmented-control/src/BpkSegmentedControl.js +2 -1
  65. package/bpk-component-skeleton/src/BpkBaseSkeleton.js +2 -1
  66. package/bpk-component-slider/src/BpkSlider.js +2 -1
  67. package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +2 -1
  68. package/bpk-component-spinner/src/BpkLargeSpinner.js +2 -1
  69. package/bpk-component-spinner/src/BpkSpinner.js +2 -1
  70. package/bpk-component-split-input/src/BpkInputField.js +2 -1
  71. package/bpk-component-split-input/src/BpkSplitInput.js +2 -1
  72. package/bpk-component-swap-button/src/BpkSwapButton.js +2 -1
  73. package/bpk-component-switch/src/BpkSwitch.js +2 -1
  74. package/bpk-component-textarea/src/BpkTextarea.js +2 -1
  75. package/bpk-component-theme-toggle/src/BpkThemeToggle.js +2 -0
  76. package/package.json +1 -1
@@ -18,7 +18,7 @@
18
18
 
19
19
  import { Component } from 'react';
20
20
  import { INPUT_TYPES } from "../../bpk-component-input";
21
- import { cssModules } from "../../bpk-react-utils";
21
+ import { cssModules, getDataComponentAttribute } from "../../bpk-react-utils";
22
22
  import InputField from "./BpkInputField";
23
23
  import STYLES from "./BpkSplitInput.module.css";
24
24
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -203,6 +203,7 @@ class BpkSplitInput extends Component {
203
203
  render() {
204
204
  return /*#__PURE__*/_jsx("div", {
205
205
  className: getClassName('bpk-split-input'),
206
+ ...getDataComponentAttribute('SplitInput'),
206
207
  children: this.renderInputs()
207
208
  });
208
209
  }
@@ -18,7 +18,7 @@
18
18
 
19
19
  import { useState } from 'react';
20
20
  import SwapVertical from "../../bpk-component-icon/sm/swap--vertical";
21
- import { cssModules } from "../../bpk-react-utils";
21
+ import { cssModules, getDataComponentAttribute } from "../../bpk-react-utils";
22
22
  import STYLES from "./BpkSwapButton.module.css";
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
24
  const getClassName = cssModules(STYLES);
@@ -43,6 +43,7 @@ const BpkSwapButton = props => {
43
43
  };
44
44
  return /*#__PURE__*/_jsx("div", {
45
45
  className: getClassName('bpk-swap-button'),
46
+ ...getDataComponentAttribute('SwapButton'),
46
47
  children: /*#__PURE__*/_jsx("button", {
47
48
  type: "button",
48
49
  className: getClassName('bpk-swap-button__button', `bpk-swap-button__button--${swapButtonStyle}`),
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import { cssModules } from "../../bpk-react-utils";
19
+ import { cssModules, getDataComponentAttribute } from "../../bpk-react-utils";
20
20
  import STYLES from "./BpkSwitch.module.css";
21
21
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
22
  const getClassName = cssModules(STYLES);
@@ -29,6 +29,7 @@ const BpkSwitch = ({
29
29
  const switchClassNames = getClassName('bpk-switch__switch', small && 'bpk-switch__switch--small');
30
30
  return /*#__PURE__*/_jsxs("label", {
31
31
  className: getClassName('bpk-switch', className),
32
+ ...getDataComponentAttribute('Switch'),
32
33
  children: [/*#__PURE__*/_jsx("input", {
33
34
  type: "checkbox",
34
35
  className: getClassName('bpk-switch__checkbox'),
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import { cssModules } from "../../bpk-react-utils";
19
+ import { cssModules, getDataComponentAttribute } from "../../bpk-react-utils";
20
20
  import STYLES from "./BpkTextarea.module.css";
21
21
  import { jsx as _jsx } from "react/jsx-runtime";
22
22
  const getClassName = cssModules(STYLES);
@@ -31,6 +31,7 @@ const BpkTextarea = ({
31
31
  const isInvalid = valid === false;
32
32
  return /*#__PURE__*/_jsx("textarea", {
33
33
  className: getClassName('bpk-textarea', isInvalid && 'bpk-textarea--invalid', large && 'bpk-textarea--large', className),
34
+ ...getDataComponentAttribute('Textarea'),
34
35
  "aria-invalid": isInvalid,
35
36
  ...rest
36
37
  });
@@ -21,6 +21,7 @@ import BpkLabel from "../../bpk-component-label";
21
21
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
22
22
  import BpkSelect from "../../bpk-component-select";
23
23
  import BpkVisuallyHidden from "../../bpk-component-visually-hidden";
24
+ import { getDataComponentAttribute } from "../../bpk-react-utils";
24
25
  import bpkCustomThemes from "./theming";
25
26
  import { getHtmlElement, THEME_CHANGE_EVENT } from "./utils";
26
27
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -81,6 +82,7 @@ class BpkThemeToggle extends Component {
81
82
  ...rest
82
83
  } = this.props;
83
84
  return /*#__PURE__*/_jsxs("div", {
85
+ ...getDataComponentAttribute('ThemeToggle'),
84
86
  ...rest,
85
87
  children: [/*#__PURE__*/_jsx(BpkVisuallyHidden, {
86
88
  children: /*#__PURE__*/_jsx(BpkLabel, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyscanner/backpack-web",
3
- "version": "41.9.0",
3
+ "version": "41.10.0",
4
4
  "description": "Backpack Design System web library",
5
5
  "repository": {
6
6
  "type": "git",