@skyscanner/backpack-web 42.0.0 → 42.2.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 (153) hide show
  1. package/bpk-component-banner-alert/src/BpkBannerAlert.js +0 -7
  2. package/bpk-component-breakpoint/src/BpkBreakpoint.js +3 -1
  3. package/bpk-component-button/src/BpkButton.d.ts +1 -1
  4. package/bpk-component-button/src/BpkButton.js +17 -3
  5. package/bpk-component-button/src/BpkButton.module.css +1 -1
  6. package/bpk-component-button/src/common-types.d.ts +2 -0
  7. package/bpk-component-calendar/src/utils.js +1 -1
  8. package/bpk-component-card/index.d.ts +4 -1
  9. package/bpk-component-card/index.js +3 -1
  10. package/bpk-component-card/src/BpkCardV2/BpkCardV2.d.ts +27 -0
  11. package/bpk-component-card/src/BpkCardV2/BpkCardV2.js +57 -0
  12. package/bpk-component-card/src/BpkCardV2/BpkCardV2.module.css +18 -0
  13. package/bpk-component-card/src/BpkCardV2/common-types.d.ts +124 -0
  14. package/bpk-component-card/src/BpkCardV2/common-types.js +102 -0
  15. package/bpk-component-card/src/BpkCardV2/subcomponents/Body.d.ts +36 -0
  16. package/bpk-component-card/src/BpkCardV2/subcomponents/Body.js +65 -0
  17. package/bpk-component-card/src/BpkCardV2/subcomponents/Divider.d.ts +13 -0
  18. package/bpk-component-card/src/BpkCardV2/subcomponents/Divider.js +37 -0
  19. package/bpk-component-card/src/BpkCardV2/subcomponents/Footer.d.ts +24 -0
  20. package/bpk-component-card/src/BpkCardV2/subcomponents/Footer.js +60 -0
  21. package/bpk-component-card/src/BpkCardV2/subcomponents/Header.d.ts +24 -0
  22. package/bpk-component-card/src/BpkCardV2/subcomponents/Header.js +60 -0
  23. package/bpk-component-card/src/BpkCardV2/subcomponents/Root.d.ts +28 -0
  24. package/bpk-component-card/src/BpkCardV2/subcomponents/Root.js +68 -0
  25. package/bpk-component-card/src/BpkCardV2/subcomponents/Section.d.ts +22 -0
  26. package/bpk-component-card/src/BpkCardV2/subcomponents/Section.js +53 -0
  27. package/bpk-component-card/src/BpkCardV2/subcomponents/resolveDirectionalPadding.d.ts +16 -0
  28. package/bpk-component-card/src/BpkCardV2/subcomponents/resolveDirectionalPadding.js +32 -0
  29. package/bpk-component-card-list/src/BpkCardList.module.css +1 -1
  30. package/bpk-component-card-list/src/BpkCardListRowRail/BpkCardListCarousel.js +3 -3
  31. package/bpk-component-chatbot-input/index.d.ts +7 -0
  32. package/bpk-component-chatbot-input/index.js +23 -0
  33. package/bpk-component-chatbot-input/src/BpkChatbotInput.d.ts +4 -0
  34. package/bpk-component-chatbot-input/src/BpkChatbotInput.js +118 -0
  35. package/bpk-component-chatbot-input/src/BpkChatbotInput.module.css +18 -0
  36. package/bpk-component-chatbot-input/src/InputField/InputField.d.ts +3 -0
  37. package/bpk-component-chatbot-input/src/InputField/InputField.js +82 -0
  38. package/bpk-component-chatbot-input/src/InputField.module.css +18 -0
  39. package/bpk-component-chatbot-input/src/SendButton/SendButton.d.ts +9 -0
  40. package/bpk-component-chatbot-input/src/SendButton/SendButton.js +47 -0
  41. package/bpk-component-chatbot-input/src/TextAreaField/TextAreaField.d.ts +10 -0
  42. package/bpk-component-chatbot-input/src/TextAreaField/TextAreaField.js +93 -0
  43. package/bpk-component-chatbot-input/src/TextAreaField.module.css +18 -0
  44. package/bpk-component-chatbot-input/src/common-types.d.ts +37 -0
  45. package/bpk-component-chatbot-input/src/common-types.js +23 -0
  46. package/bpk-component-chatbot-input/src/constants.d.ts +5 -0
  47. package/bpk-component-chatbot-input/src/constants.js +22 -0
  48. package/bpk-component-chatbot-input/src/hooks/index.d.ts +4 -0
  49. package/bpk-component-chatbot-input/src/hooks/index.js +22 -0
  50. package/bpk-component-chatbot-input/src/hooks/useChatbotInput.d.ts +32 -0
  51. package/bpk-component-chatbot-input/src/hooks/useChatbotInput.js +111 -0
  52. package/bpk-component-chatbot-input/src/hooks/useChatbotInputManager.d.ts +20 -0
  53. package/bpk-component-chatbot-input/src/hooks/useChatbotInputManager.js +83 -0
  54. package/bpk-component-chatbot-input/src/hooks/useInputHandlers.d.ts +8 -0
  55. package/bpk-component-chatbot-input/src/hooks/useInputHandlers.js +54 -0
  56. package/bpk-component-chatbot-input/src/hooks/useTextAreaAutoResize.d.ts +22 -0
  57. package/bpk-component-chatbot-input/src/hooks/useTextAreaAutoResize.js +137 -0
  58. package/bpk-component-chatbot-input/src/themeAttributes.d.ts +14 -0
  59. package/bpk-component-chatbot-input/src/themeAttributes.js +34 -0
  60. package/bpk-component-checkbox/index.d.ts +7 -1
  61. package/bpk-component-checkbox/index.js +3 -1
  62. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2.d.ts +9 -0
  63. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2.js +33 -0
  64. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2.module.css +18 -0
  65. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2Control.d.ts +6 -0
  66. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2Control.js +30 -0
  67. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2Description.d.ts +6 -0
  68. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2Description.js +32 -0
  69. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2HiddenInput.d.ts +2 -0
  70. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2HiddenInput.js +25 -0
  71. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2Indicator.d.ts +2 -0
  72. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2Indicator.js +23 -0
  73. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2Label.d.ts +6 -0
  74. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2Label.js +30 -0
  75. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2Root.d.ts +16 -0
  76. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2Root.js +49 -0
  77. package/bpk-component-checkbox/src/BpkCheckboxV2/themeAttributes.d.ts +2 -0
  78. package/bpk-component-checkbox/src/BpkCheckboxV2/themeAttributes.js +20 -0
  79. package/bpk-component-checkbox-card/index.d.ts +3 -0
  80. package/bpk-component-checkbox-card/index.js +20 -0
  81. package/bpk-component-checkbox-card/src/BpkCheckboxCard.d.ts +128 -0
  82. package/bpk-component-checkbox-card/src/BpkCheckboxCard.js +216 -0
  83. package/bpk-component-checkbox-card/src/BpkCheckboxCard.module.css +18 -0
  84. package/bpk-component-checkbox-card/src/BpkCheckboxCardRoot.d.ts +95 -0
  85. package/bpk-component-checkbox-card/src/BpkCheckboxCardRoot.js +101 -0
  86. package/bpk-component-checkbox-card/src/CheckboxCardContext.d.ts +27 -0
  87. package/bpk-component-checkbox-card/src/CheckboxCardContext.js +47 -0
  88. package/bpk-component-checkbox-card/src/common-types.d.ts +27 -0
  89. package/bpk-component-checkbox-card/src/common-types.js +43 -0
  90. package/bpk-component-checkbox-card/src/themeAttributes.d.ts +46 -0
  91. package/bpk-component-checkbox-card/src/themeAttributes.js +87 -0
  92. package/bpk-component-icon/scripts/generate-figma-connect.js +267 -0
  93. package/bpk-component-inset-banner/index.d.ts +4 -1
  94. package/bpk-component-inset-banner/index.js +2 -1
  95. package/bpk-component-inset-banner/src/BpkInsetBannerV3/BpkInsetBannerV3.d.ts +56 -0
  96. package/bpk-component-inset-banner/src/BpkInsetBannerV3/BpkInsetBannerV3.js +118 -0
  97. package/bpk-component-inset-banner/src/BpkInsetBannerV3/BpkInsetBannerV3.module.css +18 -0
  98. package/bpk-component-layout/src/BpkProvider.d.ts +9 -4
  99. package/bpk-component-layout/src/BpkProvider.js +87 -8
  100. package/bpk-component-layout/src/types.d.ts +2 -2
  101. package/bpk-component-link/src/common-types.d.ts +1 -1
  102. package/bpk-component-modal/index.d.ts +2 -1
  103. package/bpk-component-modal/index.js +2 -1
  104. package/bpk-component-modal/src/BpkModalV3/BpkModalV3.d.ts +14 -0
  105. package/bpk-component-modal/src/BpkModalV3/BpkModalV3.js +43 -0
  106. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Body/BpkModalV3Body.d.ts +7 -0
  107. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Body/BpkModalV3Body.js +30 -0
  108. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Body.module.css +18 -0
  109. package/bpk-component-modal/src/BpkModalV3/BpkModalV3CloseTrigger/BpkModalV3CloseTrigger.d.ts +7 -0
  110. package/bpk-component-modal/src/BpkModalV3/BpkModalV3CloseTrigger/BpkModalV3CloseTrigger.js +49 -0
  111. package/bpk-component-modal/src/BpkModalV3/BpkModalV3CloseTrigger.module.css +18 -0
  112. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Content/BpkModalV3Content.d.ts +7 -0
  113. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Content/BpkModalV3Content.js +38 -0
  114. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Content.module.css +18 -0
  115. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Context.d.ts +3 -0
  116. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Context.js +22 -0
  117. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Description/BpkModalV3Description.d.ts +7 -0
  118. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Description/BpkModalV3Description.js +28 -0
  119. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Header/BpkModalV3Header.d.ts +7 -0
  120. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Header/BpkModalV3Header.js +34 -0
  121. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Header.module.css +18 -0
  122. package/bpk-component-modal/src/BpkModalV3/BpkModalV3HeroImage/BpkModalV3HeroImage.d.ts +10 -0
  123. package/bpk-component-modal/src/BpkModalV3/BpkModalV3HeroImage/BpkModalV3HeroImage.js +44 -0
  124. package/bpk-component-modal/src/BpkModalV3/BpkModalV3HeroImage.module.css +18 -0
  125. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Portal/BpkModalV3Portal.d.ts +7 -0
  126. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Portal/BpkModalV3Portal.js +26 -0
  127. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Root/BpkModalV3Root.d.ts +13 -0
  128. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Root/BpkModalV3Root.js +44 -0
  129. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Scrim/BpkModalV3Scrim.d.ts +2 -0
  130. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Scrim/BpkModalV3Scrim.js +32 -0
  131. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Scrim.module.css +18 -0
  132. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Title/BpkModalV3Title.d.ts +7 -0
  133. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Title/BpkModalV3Title.js +31 -0
  134. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Title.module.css +18 -0
  135. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Trigger/BpkModalV3Trigger.d.ts +8 -0
  136. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Trigger/BpkModalV3Trigger.js +30 -0
  137. package/bpk-component-modal/src/BpkModalV3/common-types.d.ts +1 -0
  138. package/bpk-component-modal/src/BpkModalV3/common-types.js +1 -0
  139. package/bpk-component-page-indicator/src/NavButton.d.ts +2 -1
  140. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +40 -22
  141. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.module.css +1 -1
  142. package/bpk-component-segmented-control/src/BpkSegmentedControlV2/BpkSegmentedControlV2.js +37 -16
  143. package/bpk-component-skeleton/src/BpkBaseSkeleton.d.d.ts +1 -0
  144. package/bpk-component-skeleton/src/BpkSkeleton.d.d.ts +1 -0
  145. package/bpk-component-table/index.d.ts +2 -1
  146. package/bpk-component-table/index.js +2 -1
  147. package/bpk-component-table/src/BpkTable.module.css +1 -1
  148. package/bpk-component-table/src/BpkTableBody.d.ts +4 -1
  149. package/bpk-component-table/src/BpkTableBody.js +19 -4
  150. package/bpk-component-table/src/common-types.d.ts +5 -0
  151. package/bpk-component-table/src/common-types.js +22 -0
  152. package/bpk-react-utils/src/Portal.d.ts +1 -1
  153. package/package.json +2 -2
@@ -19,13 +19,6 @@
19
19
  import { getDataComponentAttribute } from "../../bpk-react-utils";
20
20
  import BpkBannerAlertInner from "./BpkBannerAlertInner";
21
21
  import { jsx as _jsx } from "react/jsx-runtime";
22
- const defaultProps = {
23
- animateOnEnter: false,
24
- animateOnLeave: false,
25
- show: true,
26
- icon: null
27
- };
28
-
29
22
  /**
30
23
  * @deprecated use bpk-component-info-banner instead
31
24
  * @returns {Component} a banner alert component
@@ -35,7 +35,9 @@ const useLegacyWarning = (query, legacy, isClient) => useMemo(() => {
35
35
  if (isClient) {
36
36
  // @ts-expect-error invariant check. query: string matching limited BREAKPOINTS string values
37
37
  if (!legacy && !Object.values(BREAKPOINTS).includes(query)) {
38
- console.warn(`Invalid query ${query}. Use one of the supported queries or pass the legacy prop.`);
38
+ console.warn(
39
+ // eslint-disable-line no-console
40
+ `Invalid query ${query}. Use one of the supported queries or pass the legacy prop.`);
39
41
  }
40
42
  }
41
43
  }, [isClient, legacy, query]);
@@ -1,3 +1,3 @@
1
1
  import type { Props } from './common-types';
2
- declare const BpkButton: ({ blank, children, className, disabled, fullWidth, href, iconOnly, implicit, loading, onClick, rel: propRel, size, submit, type, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
2
+ declare const BpkButton: ({ blank, children, className, disabled, fullWidth, href, iconOnly, implicit, leadingIcon, loading, onClick, rel: propRel, size, submit, trailingIcon, type, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
3
3
  export default BpkButton;
@@ -19,7 +19,7 @@ import { BpkSpinner, BpkLargeSpinner, SPINNER_TYPES } from "../../bpk-component-
19
19
  import { cssModules, getDataComponentAttribute } from "../../bpk-react-utils";
20
20
  import { BUTTON_TYPES, SIZE_TYPES } from "./common-types";
21
21
  import COMMON_STYLES from "./BpkButton.module.css";
22
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
23
23
  const getCommonClassName = cssModules(COMMON_STYLES);
24
24
  const getSpinnerType = buttonType => {
25
25
  switch (buttonType) {
@@ -41,11 +41,13 @@ const BpkButton = ({
41
41
  href = null,
42
42
  iconOnly = false,
43
43
  implicit = false,
44
+ leadingIcon = null,
44
45
  loading = false,
45
46
  onClick = () => {},
46
47
  rel: propRel = undefined,
47
48
  size = SIZE_TYPES.small,
48
49
  submit = false,
50
+ trailingIcon = null,
49
51
  type = BUTTON_TYPES.primary,
50
52
  ...rest
51
53
  }) => {
@@ -53,12 +55,24 @@ const BpkButton = ({
53
55
  const isLinkType = type === BUTTON_TYPES.link || type === BUTTON_TYPES.linkOnDark;
54
56
  const alternate = type === BUTTON_TYPES.linkOnDark;
55
57
  const shouldUnderline = isLinkType && !iconOnly && !isDisabled;
56
- const classNames = getCommonClassName('bpk-button', size === SIZE_TYPES.large && 'bpk-button--large', iconOnly && 'bpk-button--icon-only', iconOnly && size === SIZE_TYPES.large && 'bpk-button--large-icon-only', `bpk-button--${type}`, loading && 'bpk-button--loading', fullWidth && 'bpk-button--full-width', isLinkType && iconOnly && 'bpk-button--link--icon-only', isLinkType && implicit && 'bpk-button--link--implicit', className);
58
+ const hasIcons = !!(leadingIcon || trailingIcon);
59
+ const classNames = getCommonClassName('bpk-button', size === SIZE_TYPES.large && 'bpk-button--large', iconOnly && 'bpk-button--icon-only', iconOnly && size === SIZE_TYPES.large && 'bpk-button--large-icon-only', `bpk-button--${type}`, loading && 'bpk-button--loading', fullWidth && 'bpk-button--full-width', hasIcons && 'bpk-button--has-icon', isLinkType && iconOnly && 'bpk-button--link--icon-only', isLinkType && implicit && 'bpk-button--link--implicit', className);
57
60
  const underlinedClassName = shouldUnderline ? getCommonClassName('bpk-button--link-underlined', implicit && !alternate && 'bpk-button--link-underlined--implicit', alternate && !implicit && 'bpk-button--link-underlined--alternate', implicit && alternate && 'bpk-button--link-underlined--implicit--alternate') : null;
58
- const innerContent = underlinedClassName ? /*#__PURE__*/_jsx("span", {
61
+ const textContent = underlinedClassName ? /*#__PURE__*/_jsx("span", {
59
62
  className: underlinedClassName,
60
63
  children: children
61
64
  }) : children;
65
+ const leadingIconEl = !iconOnly && leadingIcon ? /*#__PURE__*/_jsx("span", {
66
+ className: getCommonClassName('bpk-button__leading-icon'),
67
+ children: leadingIcon
68
+ }) : null;
69
+ const trailingIconEl = !iconOnly && trailingIcon ? /*#__PURE__*/_jsx("span", {
70
+ className: getCommonClassName('bpk-button__trailing-icon'),
71
+ children: trailingIcon
72
+ }) : null;
73
+ const innerContent = /*#__PURE__*/_jsxs(_Fragment, {
74
+ children: [leadingIconEl, textContent, trailingIconEl]
75
+ });
62
76
  const content = loading ? /*#__PURE__*/_jsxs("div", {
63
77
  className: getCommonClassName('bpk-button__loading-container'),
64
78
  children: [/*#__PURE__*/_jsx("span", {
@@ -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-button{display:inline-block;min-height:2.25rem;margin:0;padding:.375rem 1rem;border:0;text-align:center;text-decoration:none;cursor:pointer;vertical-align:middle;user-select:none;border-radius:.5rem;border-radius:var(--bpk-button-border-radius, 0.5rem);font-size:1rem;line-height:1.5rem;font-weight:700;color:#fff;color:var(--bpk-button-primary-text-color, rgb(255, 255, 255));background-color:#05203c;background-color:var(--bpk-button-primary-background-color, rgb(5, 32, 60))}.bpk-no-touch-support .bpk-button:hover:not(:active):not(:disabled){background-color:#154679;background-color:var(--bpk-button-primary-hover-background-color, rgb(21, 70, 121));color:#fff;color:var(--bpk-button-primary-hover-text-color, rgb(255, 255, 255))}:global(.bpk-no-touch-support) .bpk-button:hover:not(:active):not(:disabled){background-color:#154679;background-color:var(--bpk-button-primary-hover-background-color, rgb(21, 70, 121));color:#fff;color:var(--bpk-button-primary-hover-text-color, rgb(255, 255, 255))}.bpk-button:active{color:#fff;color:var(--bpk-button-primary-active-text-color, rgb(255, 255, 255));background-color:#154679;background-color:var(--bpk-button-primary-active-background-color, rgb(21, 70, 121))}.bpk-button:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2);cursor:not-allowed}.bpk-button.bpk-button--loading:disabled{background-color:#154679;background-color:var(--bpk-button-primary-hover-background-color, rgb(21, 70, 121));color:#fff;color:var(--bpk-button-primary-hover-text-color, rgb(255, 255, 255))}.bpk-button--large{min-height:3rem;padding:.75rem 1rem}.bpk-button--icon-only{padding-right:.625rem;padding-left:.625rem}.bpk-button--large-icon-only{padding-right:.75rem;padding-left:.75rem}.bpk-button--destructive{color:#161616;color:var(--bpk-button-secondary-text-color, rgb(22, 22, 22));background-color:#e0e4e9;background-color:var(--bpk-button-secondary-background-color, rgb(224, 228, 233));color:#e70866;color:var(--bpk-button-destructive-text-color, rgb(231, 8, 102));background-color:#e0e4e9;background-color:var(--bpk-button-destructive-background-color, rgb(224, 228, 233))}.bpk-no-touch-support .bpk-button--destructive:hover:not(:active):not(:disabled){background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207));color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22))}:global(.bpk-no-touch-support) .bpk-button--destructive:hover:not(:active):not(:disabled){background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207));color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22))}.bpk-button--destructive:active{color:#161616;color:var(--bpk-button-secondary-active-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-secondary-active-background-color, rgb(193, 199, 207))}.bpk-button--destructive:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2)}.bpk-button--destructive.bpk-button--loading:disabled{background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207));color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22))}.bpk-no-touch-support .bpk-button--destructive:hover:not(:active):not(:disabled){background-color:#e70866;background-color:var(--bpk-button-destructive-hover-background-color, rgb(231, 8, 102));color:#fff;color:var(--bpk-button-destructive-hover-text-color, rgb(255, 255, 255))}:global(.bpk-no-touch-support) .bpk-button--destructive:hover:not(:active):not(:disabled){background-color:#e70866;background-color:var(--bpk-button-destructive-hover-background-color, rgb(231, 8, 102));color:#fff;color:var(--bpk-button-destructive-hover-text-color, rgb(255, 255, 255))}.bpk-button--destructive:active{color:#fff;color:var(--bpk-button-destructive-active-text-color, rgb(255, 255, 255));background-color:#e70866;background-color:var(--bpk-button-destructive-active-background-color, rgb(231, 8, 102))}.bpk-button--destructive:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2)}.bpk-button--destructive.bpk-button--loading:disabled{background-color:#e70866;background-color:var(--bpk-button-destructive-hover-background-color, rgb(231, 8, 102));color:#fff;color:var(--bpk-button-destructive-hover-text-color, rgb(255, 255, 255))}.bpk-button--featured{color:#fff;color:var(--bpk-button-featured-text-color, rgb(255, 255, 255));background-color:#0062e3;background-color:var(--bpk-button-featured-background-color, rgb(0, 98, 227))}.bpk-no-touch-support .bpk-button--featured:hover:not(:active):not(:disabled){background-color:#024daf;background-color:var(--bpk-button-featured-hover-background-color, rgb(2, 77, 175));color:#fff;color:var(--bpk-button-featured-hover-text-color, rgb(255, 255, 255))}:global(.bpk-no-touch-support) .bpk-button--featured:hover:not(:active):not(:disabled){background-color:#024daf;background-color:var(--bpk-button-featured-hover-background-color, rgb(2, 77, 175));color:#fff;color:var(--bpk-button-featured-hover-text-color, rgb(255, 255, 255))}.bpk-button--featured:active{color:#fff;color:var(--bpk-button-featured-active-text-color, rgb(255, 255, 255));background-color:#024daf;background-color:var(--bpk-button-featured-active-background-color, rgb(2, 77, 175))}.bpk-button--featured:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2)}.bpk-button--featured.bpk-button--loading:disabled{background-color:#024daf;background-color:var(--bpk-button-featured-hover-background-color, rgb(2, 77, 175));color:#fff;color:var(--bpk-button-featured-hover-text-color, rgb(255, 255, 255))}.bpk-button--link{background:none;box-shadow:none;color:#161616;color:var(--bpk-link-color, rgb(22, 22, 22));padding:.375rem 0;color:#0062e3;position:relative;display:inline;padding:0;border:0;background-color:rgba(0,0,0,0);text-decoration:none;cursor:pointer;appearance:none;color:#161616;color:var(--bpk-link-color, rgb(22, 22, 22));--bpk-button-svg-display: inline-block;--bpk-button-svg-vertical-align: middle}.bpk-no-touch-support .bpk-button--link:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-link-hover-color, rgb(22, 22, 22))}:global(.bpk-no-touch-support) .bpk-button--link:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-link-hover-color, rgb(22, 22, 22))}.bpk-button--link:active{text-decoration:none;color:#161616;color:var(--bpk-link-active-color, rgb(22, 22, 22))}.bpk-button--link::after{bottom:auto}.bpk-no-touch-support .bpk-button--link:hover:not(:active):not(:disabled){background:none;color:#024daf;text-decoration:none}:global(.bpk-no-touch-support) .bpk-button--link:hover:not(:active):not(:disabled){background:none;color:#024daf;text-decoration:none}.bpk-button--link:active{background:none;color:#024daf;text-decoration:none}.bpk-button--link:disabled,.bpk-button--link:disabled:active{background:none;color:rgba(0,0,0,.2);text-decoration:none}.bpk-button--link.bpk-button--loading:disabled,.bpk-button--link.bpk-button--loading:disabled:active{background:none;color:#161616;color:var(--bpk-button-link-loading-color, rgb(22, 22, 22))}.bpk-button--link-large{padding:.75rem 0}.bpk-no-touch-support .bpk-button--link:hover:not(:active):not(:disabled){text-decoration:none;color:#161616;color:var(--bpk-link-hover-color, rgb(22, 22, 22))}:global(.bpk-no-touch-support) .bpk-button--link:hover:not(:active):not(:disabled){text-decoration:none;color:#161616;color:var(--bpk-link-hover-color, rgb(22, 22, 22))}.bpk-button--link:visited{color:#161616;color:var(--bpk-link-visited-color, rgb(22, 22, 22))}.bpk-button--link:active{color:#161616;color:var(--bpk-link-active-color, rgb(22, 22, 22))}.bpk-button--link--implicit{color:#161616;color:var(--bpk-link-color, rgb(22, 22, 22))}.bpk-no-touch-support .bpk-button--link--implicit:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-link-hover-color, rgb(22, 22, 22))}:global(.bpk-no-touch-support) .bpk-button--link--implicit:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-link-hover-color, rgb(22, 22, 22))}.bpk-button--link--implicit:active{text-decoration:none;color:#161616;color:var(--bpk-link-active-color, rgb(22, 22, 22))}.bpk-button--link--icon-only{display:inline-flex;justify-content:center;align-items:center;vertical-align:middle}.bpk-button--link-on-dark{background:none;box-shadow:none;color:#161616;color:var(--bpk-link-color, rgb(22, 22, 22));padding:.375rem 0;color:#0062e3;color:#fff;color:var(--bpk-button-link-on-dark-text-color, rgb(255, 255, 255));color:#fff;color:var(--bpk-link-alternate-color, rgb(255, 255, 255));--bpk-button-svg-display: inline-block;--bpk-button-svg-vertical-align: middle}.bpk-no-touch-support .bpk-button--link-on-dark:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-link-hover-color, rgb(22, 22, 22))}:global(.bpk-no-touch-support) .bpk-button--link-on-dark:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-link-hover-color, rgb(22, 22, 22))}.bpk-button--link-on-dark:active{text-decoration:none;color:#161616;color:var(--bpk-link-active-color, rgb(22, 22, 22))}.bpk-button--link-on-dark::after{bottom:auto}.bpk-no-touch-support .bpk-button--link-on-dark:hover:not(:active):not(:disabled){background:none;color:#024daf;text-decoration:none}:global(.bpk-no-touch-support) .bpk-button--link-on-dark:hover:not(:active):not(:disabled){background:none;color:#024daf;text-decoration:none}.bpk-button--link-on-dark:active{background:none;color:#024daf;text-decoration:none}.bpk-button--link-on-dark:disabled,.bpk-button--link-on-dark:disabled:active{background:none;color:rgba(0,0,0,.2);text-decoration:none}.bpk-button--link-on-dark.bpk-button--loading:disabled,.bpk-button--link-on-dark.bpk-button--loading:disabled:active{background:none;color:#161616;color:var(--bpk-button-link-loading-color, rgb(22, 22, 22))}.bpk-button--link-on-dark-large{padding:.75rem 0}.bpk-no-touch-support .bpk-button--link-on-dark:hover:not(:active):not(:disabled){color:hsla(0,0%,100%,.5);color:var(--bpk-button-link-on-dark-hover-text-color, rgba(255, 255, 255, 0.5))}:global(.bpk-no-touch-support) .bpk-button--link-on-dark:hover:not(:active):not(:disabled){color:hsla(0,0%,100%,.5);color:var(--bpk-button-link-on-dark-hover-text-color, rgba(255, 255, 255, 0.5))}.bpk-button--link-on-dark:active{color:hsla(0,0%,100%,.5);color:var(--bpk-button-link-on-dark-active-text-color, rgba(255, 255, 255, 0.5))}.bpk-button--link-on-dark:visited{color:#fff;color:var(--bpk-button-link-on-dark-text-color, rgb(255, 255, 255))}.bpk-button--link-on-dark:disabled,.bpk-button--link-on-dark:disabled:active{color:hsla(0,0%,100%,.2);color:var(--bpk-button-link-on-dark-disabled-color, rgba(255, 255, 255, 0.2))}.bpk-button--link-on-dark.bpk-button--loading:disabled,.bpk-button--link-on-dark.bpk-button--loading:disabled:active{color:hsla(0,0%,100%,.5);color:var(--bpk-button-link-on-dark-hover-text-color, rgba(255, 255, 255, 0.5))}.bpk-no-touch-support .bpk-button--link-on-dark:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-link-alternate-hover-color, rgb(255, 255, 255))}:global(.bpk-no-touch-support) .bpk-button--link-on-dark:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-link-alternate-hover-color, rgb(255, 255, 255))}.bpk-button--link-on-dark:visited{color:#fff;color:var(--bpk-link-alternate-visited-color, rgb(255, 255, 255))}.bpk-button--link-on-dark:active{color:#fff;color:var(--bpk-link-alternate-active-color, rgb(255, 255, 255))}.bpk-button--link-on-dark--implicit{color:#161616;color:var(--bpk-link-color, rgb(22, 22, 22))}.bpk-no-touch-support .bpk-button--link-on-dark--implicit:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-link-hover-color, rgb(22, 22, 22))}:global(.bpk-no-touch-support) .bpk-button--link-on-dark--implicit:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-link-hover-color, rgb(22, 22, 22))}.bpk-button--link-on-dark--implicit:active{text-decoration:none;color:#161616;color:var(--bpk-link-active-color, rgb(22, 22, 22))}.bpk-button--link-underlined{gap:.5rem;display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;padding-bottom:.0625rem;transition:background-size 200ms ease;background:linear-gradient(rgb(22, 22, 22), rgb(22, 22, 22));background-repeat:no-repeat;background-position:0 100%;background-size:100% 1px}.bpk-no-touch-support .bpk-button--link-underlined:hover:not(:active):not(:disabled){background-size:0 1px}:global(.bpk-no-touch-support) .bpk-button--link-underlined:hover:not(:active):not(:disabled){background-size:0 1px}.bpk-button--link-underlined--implicit{background-size:0 1px}.bpk-no-touch-support .bpk-button--link-underlined--implicit:hover:not(:active):not(:disabled){background-size:100% 1px}:global(.bpk-no-touch-support) .bpk-button--link-underlined--implicit:hover:not(:active):not(:disabled){background-size:100% 1px}.bpk-button--link-underlined--alternate{background:linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255));background-repeat:no-repeat;background-position:0 100%;background-size:100% 1px}.bpk-no-touch-support .bpk-button--link-underlined--alternate:hover:not(:active):not(:disabled){background-size:0 1px}:global(.bpk-no-touch-support) .bpk-button--link-underlined--alternate:hover:not(:active):not(:disabled){background-size:0 1px}.bpk-button--link-underlined--implicit--alternate{background:linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255));background-repeat:no-repeat;background-position:0 100%;background-size:0 1px}.bpk-no-touch-support .bpk-button--link-underlined--implicit--alternate:hover:not(:active):not(:disabled){background-size:100% 1px}:global(.bpk-no-touch-support) .bpk-button--link-underlined--implicit--alternate:hover:not(:active):not(:disabled){background-size:100% 1px}.bpk-button--primary-on-dark{color:#161616;color:var(--bpk-button-primary-on-dark-text-color, rgb(22, 22, 22));background-color:#fff;background-color:var(--bpk-button-primary-on-dark-background-color, rgb(255, 255, 255))}.bpk-no-touch-support .bpk-button--primary-on-dark:hover:not(:active):not(:disabled){background-color:#c1c7cf;background-color:var(--bpk-button-primary-on-dark-hover-background-color, rgb(193, 199, 207));color:#161616;color:var(--bpk-button-primary-on-dark-hover-text-color, rgb(22, 22, 22))}:global(.bpk-no-touch-support) .bpk-button--primary-on-dark:hover:not(:active):not(:disabled){background-color:#c1c7cf;background-color:var(--bpk-button-primary-on-dark-hover-background-color, rgb(193, 199, 207));color:#161616;color:var(--bpk-button-primary-on-dark-hover-text-color, rgb(22, 22, 22))}.bpk-button--primary-on-dark:active{color:#161616;color:var(--bpk-button-primary-on-dark-active-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-primary-on-dark-active-background-color, rgb(193, 199, 207))}.bpk-button--primary-on-dark:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2)}.bpk-button--primary-on-dark.bpk-button--loading:disabled{background-color:#c1c7cf;background-color:var(--bpk-button-primary-on-dark-hover-background-color, rgb(193, 199, 207));color:#161616;color:var(--bpk-button-primary-on-dark-hover-text-color, rgb(22, 22, 22))}.bpk-button--primary-on-light{color:#fff;color:var(--bpk-button-primary-on-light-text-color, rgb(255, 255, 255));background-color:#05203c;background-color:var(--bpk-button-primary-on-light-background-color, rgb(5, 32, 60))}.bpk-no-touch-support .bpk-button--primary-on-light:hover:not(:active):not(:disabled){background-color:#154679;background-color:var(--bpk-button-primary-on-light-hover-background-color, rgb(21, 70, 121));color:#fff;color:var(--bpk-button-primary-on-light-hover-text-color, rgb(255, 255, 255))}:global(.bpk-no-touch-support) .bpk-button--primary-on-light:hover:not(:active):not(:disabled){background-color:#154679;background-color:var(--bpk-button-primary-on-light-hover-background-color, rgb(21, 70, 121));color:#fff;color:var(--bpk-button-primary-on-light-hover-text-color, rgb(255, 255, 255))}.bpk-button--primary-on-light:active{color:#fff;color:var(--bpk-button-primary-on-light-active-text-color, rgb(255, 255, 255));background-color:#154679;background-color:var(--bpk-button-primary-on-light-active-background-color, rgb(21, 70, 121))}.bpk-button--primary-on-light:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2)}.bpk-button--primary-on-light.bpk-button--loading:disabled{background-color:#154679;background-color:var(--bpk-button-primary-on-light-hover-background-color, rgb(21, 70, 121));color:#fff;color:var(--bpk-button-primary-on-light-hover-text-color, rgb(255, 255, 255))}.bpk-button--secondary{color:#161616;color:var(--bpk-button-secondary-text-color, rgb(22, 22, 22));background-color:#e0e4e9;background-color:var(--bpk-button-secondary-background-color, rgb(224, 228, 233))}.bpk-no-touch-support .bpk-button--secondary:hover:not(:active):not(:disabled){background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207));color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22))}:global(.bpk-no-touch-support) .bpk-button--secondary:hover:not(:active):not(:disabled){background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207));color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22))}.bpk-button--secondary:active{color:#161616;color:var(--bpk-button-secondary-active-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-secondary-active-background-color, rgb(193, 199, 207))}.bpk-button--secondary:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2)}.bpk-button--secondary.bpk-button--loading:disabled{background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207));color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22))}.bpk-button--secondary-on-dark{color:#fff;color:var(--bpk-button-secondary-on-dark-text-color, rgb(255, 255, 255));background-color:hsla(0,0%,100%,.1);background-color:var(--bpk-button-secondary-on-dark-background-color, rgba(255, 255, 255, 0.1))}.bpk-no-touch-support .bpk-button--secondary-on-dark:hover:not(:active):not(:disabled){background-color:#04182d;background-color:var(--bpk-button-secondary-on-dark-hover-background-color, rgb(4, 24, 45));color:#fff;color:var(--bpk-button-secondary-on-dark-hover-text-color, rgb(255, 255, 255))}:global(.bpk-no-touch-support) .bpk-button--secondary-on-dark:hover:not(:active):not(:disabled){background-color:#04182d;background-color:var(--bpk-button-secondary-on-dark-hover-background-color, rgb(4, 24, 45));color:#fff;color:var(--bpk-button-secondary-on-dark-hover-text-color, rgb(255, 255, 255))}.bpk-button--secondary-on-dark:active{color:#fff;color:var(--bpk-button-secondary-on-dark-active-text-color, rgb(255, 255, 255));background-color:#04182d;background-color:var(--bpk-button-secondary-on-dark-active-background-color, rgb(4, 24, 45))}.bpk-button--secondary-on-dark:disabled{background-color:#0b121d;color:hsla(0,0%,100%,.2)}.bpk-button--secondary-on-dark.bpk-button--loading:disabled{background-color:#04182d;background-color:var(--bpk-button-secondary-on-dark-hover-background-color, rgb(4, 24, 45));color:#fff;color:var(--bpk-button-secondary-on-dark-hover-text-color, rgb(255, 255, 255))}.bpk-button--full-width{display:block;width:100%}.bpk-button__loading-container{position:relative;display:inline-flex;justify-content:center;align-items:center}.bpk-button__loading-icon{position:absolute;display:inline-flex;--bpk-button-svg-display: block;--bpk-button-svg-vertical-align: baseline}.bpk-button__content--hidden{opacity:0}.bpk-button span>svg{display:var(--bpk-button-svg-display, block);vertical-align:var(--bpk-button-svg-vertical-align, baseline)}.bpk-button svg{fill:currentcolor}
18
+ .bpk-button{display:inline-block;min-height:2.25rem;margin:0;padding:.375rem 1rem;border:0;text-align:center;text-decoration:none;cursor:pointer;vertical-align:middle;user-select:none;border-radius:.5rem;border-radius:var(--bpk-button-border-radius, 0.5rem);font-size:1rem;line-height:1.5rem;font-weight:700;color:#fff;color:var(--bpk-button-primary-text-color, rgb(255, 255, 255));background-color:#05203c;background-color:var(--bpk-button-primary-background-color, rgb(5, 32, 60))}.bpk-no-touch-support .bpk-button:hover:not(:active):not(:disabled){background-color:#154679;background-color:var(--bpk-button-primary-hover-background-color, rgb(21, 70, 121));color:#fff;color:var(--bpk-button-primary-hover-text-color, rgb(255, 255, 255))}:global(.bpk-no-touch-support) .bpk-button:hover:not(:active):not(:disabled){background-color:#154679;background-color:var(--bpk-button-primary-hover-background-color, rgb(21, 70, 121));color:#fff;color:var(--bpk-button-primary-hover-text-color, rgb(255, 255, 255))}.bpk-button:active{color:#fff;color:var(--bpk-button-primary-active-text-color, rgb(255, 255, 255));background-color:#154679;background-color:var(--bpk-button-primary-active-background-color, rgb(21, 70, 121))}.bpk-button:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2);cursor:not-allowed}.bpk-button.bpk-button--loading:disabled{background-color:#154679;background-color:var(--bpk-button-primary-hover-background-color, rgb(21, 70, 121));color:#fff;color:var(--bpk-button-primary-hover-text-color, rgb(255, 255, 255))}@media(hover: hover){.bpk-button--link:hover:not(:active):not(:disabled) .bpk-button--link-underlined,.bpk-button--link-on-dark:hover:not(:active):not(:disabled) .bpk-button--link-underlined{background-size:0 1px}.bpk-button--link:hover:not(:active):not(:disabled) .bpk-button--link-underlined--implicit,.bpk-button--link-on-dark:hover:not(:active):not(:disabled) .bpk-button--link-underlined--implicit--alternate{background-size:100% 1px}}.bpk-button--large{min-height:3rem;padding:.75rem 1rem}.bpk-button--icon-only{padding-right:.625rem;padding-left:.625rem}.bpk-button--large-icon-only{padding-right:.75rem;padding-left:.75rem}.bpk-button--destructive{color:#161616;color:var(--bpk-button-secondary-text-color, rgb(22, 22, 22));background-color:#e0e4e9;background-color:var(--bpk-button-secondary-background-color, rgb(224, 228, 233));color:#e70866;color:var(--bpk-button-destructive-text-color, rgb(231, 8, 102));background-color:#e0e4e9;background-color:var(--bpk-button-destructive-background-color, rgb(224, 228, 233))}.bpk-no-touch-support .bpk-button--destructive:hover:not(:active):not(:disabled){background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207));color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22))}:global(.bpk-no-touch-support) .bpk-button--destructive:hover:not(:active):not(:disabled){background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207));color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22))}.bpk-button--destructive:active{color:#161616;color:var(--bpk-button-secondary-active-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-secondary-active-background-color, rgb(193, 199, 207))}.bpk-button--destructive:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2)}.bpk-button--destructive.bpk-button--loading:disabled{background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207));color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22))}.bpk-no-touch-support .bpk-button--destructive:hover:not(:active):not(:disabled){background-color:#e70866;background-color:var(--bpk-button-destructive-hover-background-color, rgb(231, 8, 102));color:#fff;color:var(--bpk-button-destructive-hover-text-color, rgb(255, 255, 255))}:global(.bpk-no-touch-support) .bpk-button--destructive:hover:not(:active):not(:disabled){background-color:#e70866;background-color:var(--bpk-button-destructive-hover-background-color, rgb(231, 8, 102));color:#fff;color:var(--bpk-button-destructive-hover-text-color, rgb(255, 255, 255))}.bpk-button--destructive:active{color:#fff;color:var(--bpk-button-destructive-active-text-color, rgb(255, 255, 255));background-color:#e70866;background-color:var(--bpk-button-destructive-active-background-color, rgb(231, 8, 102))}.bpk-button--destructive:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2)}.bpk-button--destructive.bpk-button--loading:disabled{background-color:#e70866;background-color:var(--bpk-button-destructive-hover-background-color, rgb(231, 8, 102));color:#fff;color:var(--bpk-button-destructive-hover-text-color, rgb(255, 255, 255))}.bpk-button--featured{color:#fff;color:var(--bpk-button-featured-text-color, rgb(255, 255, 255));background-color:#0062e3;background-color:var(--bpk-button-featured-background-color, rgb(0, 98, 227))}.bpk-no-touch-support .bpk-button--featured:hover:not(:active):not(:disabled){background-color:#024daf;background-color:var(--bpk-button-featured-hover-background-color, rgb(2, 77, 175));color:#fff;color:var(--bpk-button-featured-hover-text-color, rgb(255, 255, 255))}:global(.bpk-no-touch-support) .bpk-button--featured:hover:not(:active):not(:disabled){background-color:#024daf;background-color:var(--bpk-button-featured-hover-background-color, rgb(2, 77, 175));color:#fff;color:var(--bpk-button-featured-hover-text-color, rgb(255, 255, 255))}.bpk-button--featured:active{color:#fff;color:var(--bpk-button-featured-active-text-color, rgb(255, 255, 255));background-color:#024daf;background-color:var(--bpk-button-featured-active-background-color, rgb(2, 77, 175))}.bpk-button--featured:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2)}.bpk-button--featured.bpk-button--loading:disabled{background-color:#024daf;background-color:var(--bpk-button-featured-hover-background-color, rgb(2, 77, 175));color:#fff;color:var(--bpk-button-featured-hover-text-color, rgb(255, 255, 255))}.bpk-button--link{background:none;box-shadow:none;color:#161616;color:var(--bpk-link-color, rgb(22, 22, 22));padding:.375rem 0;color:#0062e3;position:relative;display:inline;padding:0;border:0;background-color:rgba(0,0,0,0);text-decoration:none;cursor:pointer;appearance:none;color:#161616;color:var(--bpk-link-color, rgb(22, 22, 22));--bpk-button-svg-display: inline-block;--bpk-button-svg-vertical-align: middle}.bpk-no-touch-support .bpk-button--link:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-link-hover-color, rgb(22, 22, 22))}:global(.bpk-no-touch-support) .bpk-button--link:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-link-hover-color, rgb(22, 22, 22))}.bpk-button--link:active{text-decoration:none;color:#161616;color:var(--bpk-link-active-color, rgb(22, 22, 22))}.bpk-button--link::after{bottom:auto}.bpk-no-touch-support .bpk-button--link:hover:not(:active):not(:disabled){background:none;color:#024daf;text-decoration:none}:global(.bpk-no-touch-support) .bpk-button--link:hover:not(:active):not(:disabled){background:none;color:#024daf;text-decoration:none}.bpk-button--link:active{background:none;color:#024daf;text-decoration:none}.bpk-button--link:disabled,.bpk-button--link:disabled:active{background:none;color:rgba(0,0,0,.2);text-decoration:none}.bpk-button--link.bpk-button--loading:disabled,.bpk-button--link.bpk-button--loading:disabled:active{background:none;color:#161616;color:var(--bpk-button-link-loading-color, rgb(22, 22, 22))}.bpk-button--link-large{padding:.75rem 0}.bpk-no-touch-support .bpk-button--link:hover:not(:active):not(:disabled){text-decoration:none;color:#161616;color:var(--bpk-link-hover-color, rgb(22, 22, 22))}:global(.bpk-no-touch-support) .bpk-button--link:hover:not(:active):not(:disabled){text-decoration:none;color:#161616;color:var(--bpk-link-hover-color, rgb(22, 22, 22))}.bpk-button--link:visited{color:#161616;color:var(--bpk-link-visited-color, rgb(22, 22, 22))}.bpk-button--link:active{color:#161616;color:var(--bpk-link-active-color, rgb(22, 22, 22))}.bpk-button--link--implicit{color:#161616;color:var(--bpk-link-color, rgb(22, 22, 22))}.bpk-no-touch-support .bpk-button--link--implicit:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-link-hover-color, rgb(22, 22, 22))}:global(.bpk-no-touch-support) .bpk-button--link--implicit:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-link-hover-color, rgb(22, 22, 22))}.bpk-button--link--implicit:active{text-decoration:none;color:#161616;color:var(--bpk-link-active-color, rgb(22, 22, 22))}.bpk-button--link--icon-only{display:inline-flex;justify-content:center;align-items:center;vertical-align:middle}.bpk-button--link-on-dark{background:none;box-shadow:none;color:#161616;color:var(--bpk-link-color, rgb(22, 22, 22));padding:.375rem 0;color:#0062e3;color:#fff;color:var(--bpk-button-link-on-dark-text-color, rgb(255, 255, 255));color:#fff;color:var(--bpk-link-alternate-color, rgb(255, 255, 255));--bpk-button-svg-display: inline-block;--bpk-button-svg-vertical-align: middle}.bpk-no-touch-support .bpk-button--link-on-dark:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-link-hover-color, rgb(22, 22, 22))}:global(.bpk-no-touch-support) .bpk-button--link-on-dark:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-link-hover-color, rgb(22, 22, 22))}.bpk-button--link-on-dark:active{text-decoration:none;color:#161616;color:var(--bpk-link-active-color, rgb(22, 22, 22))}.bpk-button--link-on-dark::after{bottom:auto}.bpk-no-touch-support .bpk-button--link-on-dark:hover:not(:active):not(:disabled){background:none;color:#024daf;text-decoration:none}:global(.bpk-no-touch-support) .bpk-button--link-on-dark:hover:not(:active):not(:disabled){background:none;color:#024daf;text-decoration:none}.bpk-button--link-on-dark:active{background:none;color:#024daf;text-decoration:none}.bpk-button--link-on-dark:disabled,.bpk-button--link-on-dark:disabled:active{background:none;color:rgba(0,0,0,.2);text-decoration:none}.bpk-button--link-on-dark.bpk-button--loading:disabled,.bpk-button--link-on-dark.bpk-button--loading:disabled:active{background:none;color:#161616;color:var(--bpk-button-link-loading-color, rgb(22, 22, 22))}.bpk-button--link-on-dark-large{padding:.75rem 0}.bpk-no-touch-support .bpk-button--link-on-dark:hover:not(:active):not(:disabled){color:hsla(0,0%,100%,.5);color:var(--bpk-button-link-on-dark-hover-text-color, rgba(255, 255, 255, 0.5))}:global(.bpk-no-touch-support) .bpk-button--link-on-dark:hover:not(:active):not(:disabled){color:hsla(0,0%,100%,.5);color:var(--bpk-button-link-on-dark-hover-text-color, rgba(255, 255, 255, 0.5))}.bpk-button--link-on-dark:active{color:hsla(0,0%,100%,.5);color:var(--bpk-button-link-on-dark-active-text-color, rgba(255, 255, 255, 0.5))}.bpk-button--link-on-dark:visited{color:#fff;color:var(--bpk-button-link-on-dark-text-color, rgb(255, 255, 255))}.bpk-button--link-on-dark:disabled,.bpk-button--link-on-dark:disabled:active{color:hsla(0,0%,100%,.2);color:var(--bpk-button-link-on-dark-disabled-color, rgba(255, 255, 255, 0.2))}.bpk-button--link-on-dark.bpk-button--loading:disabled,.bpk-button--link-on-dark.bpk-button--loading:disabled:active{color:hsla(0,0%,100%,.5);color:var(--bpk-button-link-on-dark-hover-text-color, rgba(255, 255, 255, 0.5))}.bpk-no-touch-support .bpk-button--link-on-dark:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-link-alternate-hover-color, rgb(255, 255, 255))}:global(.bpk-no-touch-support) .bpk-button--link-on-dark:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-link-alternate-hover-color, rgb(255, 255, 255))}.bpk-button--link-on-dark:visited{color:#fff;color:var(--bpk-link-alternate-visited-color, rgb(255, 255, 255))}.bpk-button--link-on-dark:active{color:#fff;color:var(--bpk-link-alternate-active-color, rgb(255, 255, 255))}.bpk-button--link-on-dark--implicit{color:#161616;color:var(--bpk-link-color, rgb(22, 22, 22))}.bpk-no-touch-support .bpk-button--link-on-dark--implicit:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-link-hover-color, rgb(22, 22, 22))}:global(.bpk-no-touch-support) .bpk-button--link-on-dark--implicit:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-link-hover-color, rgb(22, 22, 22))}.bpk-button--link-on-dark--implicit:active{text-decoration:none;color:#161616;color:var(--bpk-link-active-color, rgb(22, 22, 22))}.bpk-button--link-underlined{gap:.5rem;display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;padding-bottom:.0625rem;transition:background-size 200ms ease;background:linear-gradient(rgb(22, 22, 22), rgb(22, 22, 22));background-repeat:no-repeat;background-position:0 100%;background-size:100% 1px}.bpk-no-touch-support .bpk-button--link-underlined:hover:not(:active):not(:disabled){background-size:0 1px}:global(.bpk-no-touch-support) .bpk-button--link-underlined:hover:not(:active):not(:disabled){background-size:0 1px}.bpk-button--link-underlined--implicit{background-size:0 1px}.bpk-no-touch-support .bpk-button--link-underlined--implicit:hover:not(:active):not(:disabled){background-size:100% 1px}:global(.bpk-no-touch-support) .bpk-button--link-underlined--implicit:hover:not(:active):not(:disabled){background-size:100% 1px}.bpk-button--link-underlined--alternate{background:linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255));background-repeat:no-repeat;background-position:0 100%;background-size:100% 1px}.bpk-no-touch-support .bpk-button--link-underlined--alternate:hover:not(:active):not(:disabled){background-size:0 1px}:global(.bpk-no-touch-support) .bpk-button--link-underlined--alternate:hover:not(:active):not(:disabled){background-size:0 1px}.bpk-button--link-underlined--implicit--alternate{background:linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255));background-repeat:no-repeat;background-position:0 100%;background-size:0 1px}.bpk-no-touch-support .bpk-button--link-underlined--implicit--alternate:hover:not(:active):not(:disabled){background-size:100% 1px}:global(.bpk-no-touch-support) .bpk-button--link-underlined--implicit--alternate:hover:not(:active):not(:disabled){background-size:100% 1px}.bpk-button--primary-on-dark{color:#161616;color:var(--bpk-button-primary-on-dark-text-color, rgb(22, 22, 22));background-color:#fff;background-color:var(--bpk-button-primary-on-dark-background-color, rgb(255, 255, 255))}.bpk-no-touch-support .bpk-button--primary-on-dark:hover:not(:active):not(:disabled){background-color:#c1c7cf;background-color:var(--bpk-button-primary-on-dark-hover-background-color, rgb(193, 199, 207));color:#161616;color:var(--bpk-button-primary-on-dark-hover-text-color, rgb(22, 22, 22))}:global(.bpk-no-touch-support) .bpk-button--primary-on-dark:hover:not(:active):not(:disabled){background-color:#c1c7cf;background-color:var(--bpk-button-primary-on-dark-hover-background-color, rgb(193, 199, 207));color:#161616;color:var(--bpk-button-primary-on-dark-hover-text-color, rgb(22, 22, 22))}.bpk-button--primary-on-dark:active{color:#161616;color:var(--bpk-button-primary-on-dark-active-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-primary-on-dark-active-background-color, rgb(193, 199, 207))}.bpk-button--primary-on-dark:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2)}.bpk-button--primary-on-dark.bpk-button--loading:disabled{background-color:#c1c7cf;background-color:var(--bpk-button-primary-on-dark-hover-background-color, rgb(193, 199, 207));color:#161616;color:var(--bpk-button-primary-on-dark-hover-text-color, rgb(22, 22, 22))}.bpk-button--primary-on-light{color:#fff;color:var(--bpk-button-primary-on-light-text-color, rgb(255, 255, 255));background-color:#05203c;background-color:var(--bpk-button-primary-on-light-background-color, rgb(5, 32, 60))}.bpk-no-touch-support .bpk-button--primary-on-light:hover:not(:active):not(:disabled){background-color:#154679;background-color:var(--bpk-button-primary-on-light-hover-background-color, rgb(21, 70, 121));color:#fff;color:var(--bpk-button-primary-on-light-hover-text-color, rgb(255, 255, 255))}:global(.bpk-no-touch-support) .bpk-button--primary-on-light:hover:not(:active):not(:disabled){background-color:#154679;background-color:var(--bpk-button-primary-on-light-hover-background-color, rgb(21, 70, 121));color:#fff;color:var(--bpk-button-primary-on-light-hover-text-color, rgb(255, 255, 255))}.bpk-button--primary-on-light:active{color:#fff;color:var(--bpk-button-primary-on-light-active-text-color, rgb(255, 255, 255));background-color:#154679;background-color:var(--bpk-button-primary-on-light-active-background-color, rgb(21, 70, 121))}.bpk-button--primary-on-light:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2)}.bpk-button--primary-on-light.bpk-button--loading:disabled{background-color:#154679;background-color:var(--bpk-button-primary-on-light-hover-background-color, rgb(21, 70, 121));color:#fff;color:var(--bpk-button-primary-on-light-hover-text-color, rgb(255, 255, 255))}.bpk-button--secondary{color:#161616;color:var(--bpk-button-secondary-text-color, rgb(22, 22, 22));background-color:#e0e4e9;background-color:var(--bpk-button-secondary-background-color, rgb(224, 228, 233))}.bpk-no-touch-support .bpk-button--secondary:hover:not(:active):not(:disabled){background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207));color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22))}:global(.bpk-no-touch-support) .bpk-button--secondary:hover:not(:active):not(:disabled){background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207));color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22))}.bpk-button--secondary:active{color:#161616;color:var(--bpk-button-secondary-active-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-secondary-active-background-color, rgb(193, 199, 207))}.bpk-button--secondary:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2)}.bpk-button--secondary.bpk-button--loading:disabled{background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207));color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22))}.bpk-button--secondary-on-dark{color:#fff;color:var(--bpk-button-secondary-on-dark-text-color, rgb(255, 255, 255));background-color:hsla(0,0%,100%,.1);background-color:var(--bpk-button-secondary-on-dark-background-color, rgba(255, 255, 255, 0.1))}.bpk-no-touch-support .bpk-button--secondary-on-dark:hover:not(:active):not(:disabled){background-color:#04182d;background-color:var(--bpk-button-secondary-on-dark-hover-background-color, rgb(4, 24, 45));color:#fff;color:var(--bpk-button-secondary-on-dark-hover-text-color, rgb(255, 255, 255))}:global(.bpk-no-touch-support) .bpk-button--secondary-on-dark:hover:not(:active):not(:disabled){background-color:#04182d;background-color:var(--bpk-button-secondary-on-dark-hover-background-color, rgb(4, 24, 45));color:#fff;color:var(--bpk-button-secondary-on-dark-hover-text-color, rgb(255, 255, 255))}.bpk-button--secondary-on-dark:active{color:#fff;color:var(--bpk-button-secondary-on-dark-active-text-color, rgb(255, 255, 255));background-color:#04182d;background-color:var(--bpk-button-secondary-on-dark-active-background-color, rgb(4, 24, 45))}.bpk-button--secondary-on-dark:disabled{background-color:#0b121d;color:hsla(0,0%,100%,.2)}.bpk-button--secondary-on-dark.bpk-button--loading:disabled{background-color:#04182d;background-color:var(--bpk-button-secondary-on-dark-hover-background-color, rgb(4, 24, 45));color:#fff;color:var(--bpk-button-secondary-on-dark-hover-text-color, rgb(255, 255, 255))}.bpk-button--full-width{display:block;width:100%}.bpk-button--has-icon{display:inline-flex;align-items:center;gap:.5rem}.bpk-button--full-width.bpk-button--has-icon{display:flex;justify-content:center}.bpk-button__leading-icon,.bpk-button__trailing-icon{display:inline-flex;flex-shrink:0;text-decoration:none}.bpk-button__loading-container{position:relative;display:inline-flex;justify-content:center;align-items:center}.bpk-button__loading-icon{position:absolute;display:inline-flex;--bpk-button-svg-display: block;--bpk-button-svg-vertical-align: baseline}.bpk-button__content--hidden{opacity:0}.bpk-button span>svg{display:var(--bpk-button-svg-display, block);vertical-align:var(--bpk-button-svg-vertical-align, baseline)}.bpk-button svg{fill:currentcolor}
@@ -30,6 +30,8 @@ export type Props = {
30
30
  submit?: boolean;
31
31
  href?: string | null;
32
32
  blank?: boolean;
33
+ leadingIcon?: ReactNode;
34
+ trailingIcon?: ReactNode;
33
35
  /** When true, shows a loading spinner and disables interaction. Layout is preserved. @default false */
34
36
  loading?: boolean;
35
37
  [rest: string]: any;
@@ -23,7 +23,7 @@ const splitToken = value => {
23
23
  if (!match) {
24
24
  throw new Error(`Invalid token value. Expecting a valid css unit, got ${value}`);
25
25
  }
26
- const [_, val, unit] = match;
26
+ const [, val, unit] = match;
27
27
  return [parseFloat(val), unit];
28
28
  };
29
29
  export const getCalendarGridWidth = (multiplier = 1) => {
@@ -1,5 +1,8 @@
1
1
  import BpkCard from './src/BpkCard';
2
+ import BpkCardV2 from './src/BpkCardV2/BpkCardV2';
2
3
  import BpkCardWrapper from './src/BpkCardWrapper';
3
4
  import BpkDividedCard, { ORIENTATION } from './src/BpkDividedCard';
4
- export { ORIENTATION, BpkDividedCard, BpkCardWrapper };
5
+ export type { BpkCardV2Props, BpkCardV2HeaderProps, BpkCardV2BodyProps, BpkCardV2SectionProps, BpkCardV2FooterProps, BpkCardV2SurfaceColor, BpkCardV2Variant, BpkCardV2Namespace, } from './src/BpkCardV2/common-types';
6
+ export { CARD_V2_SURFACE_COLORS, CARD_V2_VARIANTS } from './src/BpkCardV2/common-types';
7
+ export { ORIENTATION, BpkDividedCard, BpkCardWrapper, BpkCardV2 };
5
8
  export default BpkCard;
@@ -17,7 +17,9 @@
17
17
  */
18
18
 
19
19
  import BpkCard from "./src/BpkCard";
20
+ import BpkCardV2 from "./src/BpkCardV2/BpkCardV2";
20
21
  import BpkCardWrapper from "./src/BpkCardWrapper";
21
22
  import BpkDividedCard, { ORIENTATION } from "./src/BpkDividedCard";
22
- export { ORIENTATION, BpkDividedCard, BpkCardWrapper };
23
+ export { CARD_V2_SURFACE_COLORS, CARD_V2_VARIANTS } from "./src/BpkCardV2/common-types";
24
+ export { ORIENTATION, BpkDividedCard, BpkCardWrapper, BpkCardV2 };
23
25
  export default BpkCard;
@@ -0,0 +1,27 @@
1
+ import type { BpkCardV2Namespace } from './common-types';
2
+ /**
3
+ * BpkCardV2 is a composable, responsive card component namespace for Backpack.
4
+ *
5
+ * It provides subcomponents for explicit multi-section composition (Root, Header, Body, Footer),
6
+ * flexible multi-column layouts (Section/Divider), and customizable surface colors.
7
+ *
8
+ * @example
9
+ * // Basic card
10
+ * <BpkCardV2.Root>
11
+ * <BpkCardV2.Header>Title</BpkCardV2.Header>
12
+ * <BpkCardV2.Body>Content</BpkCardV2.Body>
13
+ * <BpkCardV2.Footer>Footer</BpkCardV2.Footer>
14
+ * </BpkCardV2.Root>
15
+ *
16
+ * @example
17
+ * // Multi-column layout (70/30 on desktop, stacked on mobile)
18
+ * <BpkCardV2.Root bgColor={CARD_V2_SURFACE_COLORS.surfaceElevated}>
19
+ * <BpkCardV2.Body templateColumns={{ base: '1fr', tablet: '7fr auto 3fr' }}>
20
+ * <BpkCardV2.Section>Main content</BpkCardV2.Section>
21
+ * <BpkCardV2.Divider />
22
+ * <BpkCardV2.Section>Sidebar</BpkCardV2.Section>
23
+ * </BpkCardV2.Body>
24
+ * </BpkCardV2.Root>
25
+ */
26
+ declare const BpkCardV2: BpkCardV2Namespace;
27
+ export default BpkCardV2;
@@ -0,0 +1,57 @@
1
+ /*
2
+ * Backpack - Skyscanner's Design System
3
+ *
4
+ * Copyright 2016 Skyscanner Ltd
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ import Body from "./subcomponents/Body";
20
+ import Divider from "./subcomponents/Divider";
21
+ import Footer from "./subcomponents/Footer";
22
+ import Header from "./subcomponents/Header";
23
+ import Root from "./subcomponents/Root";
24
+ import Section from "./subcomponents/Section";
25
+ /**
26
+ * BpkCardV2 is a composable, responsive card component namespace for Backpack.
27
+ *
28
+ * It provides subcomponents for explicit multi-section composition (Root, Header, Body, Footer),
29
+ * flexible multi-column layouts (Section/Divider), and customizable surface colors.
30
+ *
31
+ * @example
32
+ * // Basic card
33
+ * <BpkCardV2.Root>
34
+ * <BpkCardV2.Header>Title</BpkCardV2.Header>
35
+ * <BpkCardV2.Body>Content</BpkCardV2.Body>
36
+ * <BpkCardV2.Footer>Footer</BpkCardV2.Footer>
37
+ * </BpkCardV2.Root>
38
+ *
39
+ * @example
40
+ * // Multi-column layout (70/30 on desktop, stacked on mobile)
41
+ * <BpkCardV2.Root bgColor={CARD_V2_SURFACE_COLORS.surfaceElevated}>
42
+ * <BpkCardV2.Body templateColumns={{ base: '1fr', tablet: '7fr auto 3fr' }}>
43
+ * <BpkCardV2.Section>Main content</BpkCardV2.Section>
44
+ * <BpkCardV2.Divider />
45
+ * <BpkCardV2.Section>Sidebar</BpkCardV2.Section>
46
+ * </BpkCardV2.Body>
47
+ * </BpkCardV2.Root>
48
+ */
49
+ const BpkCardV2 = {
50
+ Root,
51
+ Header,
52
+ Body,
53
+ Section,
54
+ Divider,
55
+ Footer
56
+ };
57
+ export default BpkCardV2;
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Backpack - Skyscanner's Design System
3
+ *
4
+ * Copyright 2016 Skyscanner Ltd
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ .bpk-card-v2{display:flex;flex-direction:column;flex:1;transition:box-shadow 200ms ease-in-out;background-color:#fff;overflow:hidden;border-radius:.75rem;box-shadow:0px 1px 3px 0px rgba(37,32,31,.3)}.bpk-card-v2--surface-default{background-color:#fff}.bpk-card-v2--surface-elevated{background-color:#fff}.bpk-card-v2--surface-hero{background-color:#0062e3}.bpk-card-v2--surface-contrast{background-color:#05203c}.bpk-card-v2--surface-highlight{background-color:#e0e4e9}.bpk-card-v2--surface-subtle{background-color:#e3f0ff}.bpk-card-v2--surface-low-contrast{background-color:#f5f7fa}.bpk-card-v2--surface-tint{background-color:hsla(0,0%,100%,.1)}.bpk-no-touch-support .bpk-card-v2:hover:not(:active):not(:disabled){box-shadow:0px 4px 14px 0px rgba(37,32,31,.25)}:global(.bpk-no-touch-support) .bpk-card-v2:hover:not(:active):not(:disabled){box-shadow:0px 4px 14px 0px rgba(37,32,31,.25)}.bpk-card-v2--default{cursor:pointer}.bpk-card-v2--outlined{border:1px solid #c1c7cf;box-shadow:none}.bpk-no-touch-support .bpk-card-v2--outlined:hover:not(:active):not(:disabled){box-shadow:none}:global(.bpk-no-touch-support) .bpk-card-v2--outlined:hover:not(:active):not(:disabled){box-shadow:none}.bpk-card-v2--no-elevation{box-shadow:none}.bpk-no-touch-support .bpk-card-v2--no-elevation:hover:not(:active):not(:disabled){box-shadow:none}:global(.bpk-no-touch-support) .bpk-card-v2--no-elevation:hover:not(:active):not(:disabled){box-shadow:none}.bpk-card-v2--cars-prompt{background-color:#f5f7fa;box-shadow:none}.bpk-no-touch-support .bpk-card-v2--cars-prompt:hover:not(:active):not(:disabled){background-color:#e3f0ff;box-shadow:none}:global(.bpk-no-touch-support) .bpk-card-v2--cars-prompt:hover:not(:active):not(:disabled){background-color:#e3f0ff;box-shadow:none}.bpk-card-v2--cars-prompt:active{background-color:#e3f0ff;box-shadow:none}.bpk-card-v2--cars-prompt:focus-visible{background-color:#e3f0ff;box-shadow:none;outline:.125rem solid #0062e3;outline-offset:.125rem}.bpk-card-v2__divider{height:1px;margin:0 .5rem;background-color:#c1c7cf}@media(min-width: 32.0625rem){.bpk-card-v2__divider{width:1px;height:auto;margin:.5rem 0;align-self:stretch}}
@@ -0,0 +1,124 @@
1
+ import type { ForwardRefExoticComponent, HTMLAttributes, ReactNode, RefAttributes } from 'react';
2
+ import type { BpkBoxProps, BpkFlexProps, BpkGridProps } from '../../../bpk-component-layout';
3
+ /** Surface color token options for BpkCardV2 background */
4
+ export declare const CARD_V2_SURFACE_COLORS: {
5
+ readonly surfaceDefault: "surfaceDefault";
6
+ readonly surfaceElevated: "surfaceElevated";
7
+ readonly surfaceTint: "surfaceTint";
8
+ readonly surfaceSubtle: "surfaceSubtle";
9
+ readonly surfaceHero: "surfaceHero";
10
+ readonly surfaceContrast: "surfaceContrast";
11
+ readonly surfaceLowContrast: "surfaceLowContrast";
12
+ readonly surfaceHighlight: "surfaceHighlight";
13
+ };
14
+ export type BpkCardV2SurfaceColor = (typeof CARD_V2_SURFACE_COLORS)[keyof typeof CARD_V2_SURFACE_COLORS];
15
+ /** Visual variant options for BpkCardV2 */
16
+ export declare const CARD_V2_VARIANTS: {
17
+ readonly default: "default";
18
+ readonly outlined: "outlined";
19
+ readonly noElevation: "noElevation";
20
+ readonly carsPrompt: "carsPrompt";
21
+ };
22
+ export type BpkCardV2Variant = (typeof CARD_V2_VARIANTS)[keyof typeof CARD_V2_VARIANTS];
23
+ type BpkCardV2BaseProps = Omit<HTMLAttributes<HTMLDivElement>, 'className' | 'style'> & {
24
+ /** Card content - use Header, Body, Footer subcomponents */
25
+ children: ReactNode;
26
+ };
27
+ /**
28
+ * BpkCardV2 root component props.
29
+ *
30
+ * Composable card component with explicit Header/Body/Footer subcomponents.
31
+ * Supports multiple surface colors, visual variants, and responsive multi-column layouts.
32
+ *
33
+ * Note: `bgColor` is not supported for the `carsPrompt` variant — its background is fixed
34
+ * by design and cannot be customised.
35
+ *
36
+ * @example
37
+ * <BpkCardV2 variant={CARD_V2_VARIANTS.default} bgColor={CARD_V2_SURFACE_COLORS.surfaceDefault}>
38
+ * <BpkCardV2.Header>Title</BpkCardV2.Header>
39
+ * <BpkCardV2.Body>Content</BpkCardV2.Body>
40
+ * <BpkCardV2.Footer>Footer</BpkCardV2.Footer>
41
+ * </BpkCardV2>
42
+ */
43
+ export type BpkCardV2Props = BpkCardV2BaseProps & ({
44
+ /** Visual variant controlling styling treatment (shadow/border) */
45
+ variant?: Exclude<BpkCardV2Variant, 'carsPrompt'>;
46
+ /** Background surface color token (default: surfaceDefault) */
47
+ bgColor?: BpkCardV2SurfaceColor;
48
+ } | {
49
+ /** Cars prompt variant — bgColor is fixed and cannot be set */
50
+ variant: 'carsPrompt';
51
+ bgColor?: never;
52
+ });
53
+ /**
54
+ * BpkCardV2.Header component props.
55
+ *
56
+ * Renders a BpkFlex container positioned at top of card.
57
+ * Defaults to horizontal (row) direction with base padding.
58
+ * All BpkFlex props are supported for layout customisation.
59
+ */
60
+ export type BpkCardV2HeaderProps = BpkFlexProps;
61
+ /**
62
+ * BpkCardV2.Body component props.
63
+ *
64
+ * Renders card main content area as a BpkGrid container.
65
+ * Defaults to a single-column vertical layout with base padding.
66
+ * Use templateColumns for multi-column layouts. Include `auto` for each Divider child.
67
+ * All BpkGrid props are supported for layout customisation.
68
+ *
69
+ * @example
70
+ * // Simple body
71
+ * <BpkCardV2.Body>Content</BpkCardV2.Body>
72
+ *
73
+ * // Multi-column layout with divider (70/30 on desktop, stacked on mobile)
74
+ * <BpkCardV2.Body templateColumns={{ base: '1fr', tablet: '7fr auto 3fr' }}>
75
+ * <BpkCardV2.Section>Main content</BpkCardV2.Section>
76
+ * <BpkCardV2.Divider />
77
+ * <BpkCardV2.Section>Sidebar</BpkCardV2.Section>
78
+ * </BpkCardV2.Body>
79
+ */
80
+ export type BpkCardV2BodyProps = BpkGridProps;
81
+ /**
82
+ * BpkCardV2.Section component props.
83
+ *
84
+ * Generic content area for multi-column layouts. Renders a BpkBox.
85
+ * All BpkBox props are supported for layout customisation.
86
+ */
87
+ export type BpkCardV2SectionProps = BpkBoxProps;
88
+ /**
89
+ * BpkCardV2.Footer component props.
90
+ *
91
+ * Renders a BpkFlex container positioned at bottom of card.
92
+ * Defaults to horizontal (row) direction with base padding.
93
+ * All BpkFlex props are supported for layout customisation.
94
+ */
95
+ export type BpkCardV2FooterProps = BpkFlexProps;
96
+ /**
97
+ * BpkCardV2 namespace type.
98
+ *
99
+ * Contains all card subcomponents as properties.
100
+ */
101
+ export type BpkCardV2Namespace = {
102
+ Root: ForwardRefExoticComponent<BpkCardV2Props & RefAttributes<HTMLDivElement>>;
103
+ Header: {
104
+ (props: BpkCardV2HeaderProps): ReactNode;
105
+ displayName?: string;
106
+ };
107
+ Body: {
108
+ (props: BpkCardV2BodyProps): ReactNode;
109
+ displayName?: string;
110
+ };
111
+ Section: {
112
+ (props: BpkCardV2SectionProps): ReactNode;
113
+ displayName?: string;
114
+ };
115
+ Divider: {
116
+ (): ReactNode;
117
+ displayName?: string;
118
+ };
119
+ Footer: {
120
+ (props: BpkCardV2FooterProps): ReactNode;
121
+ displayName?: string;
122
+ };
123
+ };
124
+ export {};
@@ -0,0 +1,102 @@
1
+ /*
2
+ * Backpack - Skyscanner's Design System
3
+ *
4
+ * Copyright 2016 Skyscanner Ltd
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ /** Surface color token options for BpkCardV2 background */
20
+ export const CARD_V2_SURFACE_COLORS = {
21
+ surfaceDefault: 'surfaceDefault',
22
+ surfaceElevated: 'surfaceElevated',
23
+ surfaceTint: 'surfaceTint',
24
+ surfaceSubtle: 'surfaceSubtle',
25
+ surfaceHero: 'surfaceHero',
26
+ surfaceContrast: 'surfaceContrast',
27
+ surfaceLowContrast: 'surfaceLowContrast',
28
+ surfaceHighlight: 'surfaceHighlight'
29
+ };
30
+ /** Visual variant options for BpkCardV2 */
31
+ export const CARD_V2_VARIANTS = {
32
+ default: 'default',
33
+ outlined: 'outlined',
34
+ noElevation: 'noElevation',
35
+ carsPrompt: 'carsPrompt'
36
+ };
37
+
38
+ /**
39
+ * BpkCardV2 root component props.
40
+ *
41
+ * Composable card component with explicit Header/Body/Footer subcomponents.
42
+ * Supports multiple surface colors, visual variants, and responsive multi-column layouts.
43
+ *
44
+ * Note: `bgColor` is not supported for the `carsPrompt` variant — its background is fixed
45
+ * by design and cannot be customised.
46
+ *
47
+ * @example
48
+ * <BpkCardV2 variant={CARD_V2_VARIANTS.default} bgColor={CARD_V2_SURFACE_COLORS.surfaceDefault}>
49
+ * <BpkCardV2.Header>Title</BpkCardV2.Header>
50
+ * <BpkCardV2.Body>Content</BpkCardV2.Body>
51
+ * <BpkCardV2.Footer>Footer</BpkCardV2.Footer>
52
+ * </BpkCardV2>
53
+ */
54
+
55
+ /**
56
+ * BpkCardV2.Header component props.
57
+ *
58
+ * Renders a BpkFlex container positioned at top of card.
59
+ * Defaults to horizontal (row) direction with base padding.
60
+ * All BpkFlex props are supported for layout customisation.
61
+ */
62
+
63
+ /**
64
+ * BpkCardV2.Body component props.
65
+ *
66
+ * Renders card main content area as a BpkGrid container.
67
+ * Defaults to a single-column vertical layout with base padding.
68
+ * Use templateColumns for multi-column layouts. Include `auto` for each Divider child.
69
+ * All BpkGrid props are supported for layout customisation.
70
+ *
71
+ * @example
72
+ * // Simple body
73
+ * <BpkCardV2.Body>Content</BpkCardV2.Body>
74
+ *
75
+ * // Multi-column layout with divider (70/30 on desktop, stacked on mobile)
76
+ * <BpkCardV2.Body templateColumns={{ base: '1fr', tablet: '7fr auto 3fr' }}>
77
+ * <BpkCardV2.Section>Main content</BpkCardV2.Section>
78
+ * <BpkCardV2.Divider />
79
+ * <BpkCardV2.Section>Sidebar</BpkCardV2.Section>
80
+ * </BpkCardV2.Body>
81
+ */
82
+
83
+ /**
84
+ * BpkCardV2.Section component props.
85
+ *
86
+ * Generic content area for multi-column layouts. Renders a BpkBox.
87
+ * All BpkBox props are supported for layout customisation.
88
+ */
89
+
90
+ /**
91
+ * BpkCardV2.Footer component props.
92
+ *
93
+ * Renders a BpkFlex container positioned at bottom of card.
94
+ * Defaults to horizontal (row) direction with base padding.
95
+ * All BpkFlex props are supported for layout customisation.
96
+ */
97
+
98
+ /**
99
+ * BpkCardV2 namespace type.
100
+ *
101
+ * Contains all card subcomponents as properties.
102
+ */
@@ -0,0 +1,36 @@
1
+ import type { BpkCardV2BodyProps } from '../common-types';
2
+ /**
3
+ * Body subcomponent for BpkCardV2.
4
+ *
5
+ * Renders the main content area of the card as a BpkGrid container.
6
+ * Defaults to a single-column vertical layout with base padding.
7
+ * Use templateColumns for multi-column layouts. Include `auto` for each Divider child.
8
+ * All BpkGrid props can be used to customise the layout.
9
+ *
10
+ * @example
11
+ * // Simple body
12
+ * <BpkCardV2.Body>Content here</BpkCardV2.Body>
13
+ *
14
+ * @example
15
+ * // Multi-column layout
16
+ * <BpkCardV2.Body templateColumns={{ base: '1fr', tablet: '1fr 2fr 1fr' }}>
17
+ * <BpkCardV2.Section>Left</BpkCardV2.Section>
18
+ * <BpkCardV2.Section>Center (2x wide)</BpkCardV2.Section>
19
+ * <BpkCardV2.Section>Right</BpkCardV2.Section>
20
+ * </BpkCardV2.Body>
21
+ *
22
+ * @example
23
+ * // Multi-column with divider (include auto for the divider)
24
+ * <BpkCardV2.Body templateColumns={{ base: '1fr', tablet: '7fr auto 3fr' }}>
25
+ * <BpkCardV2.Section>Main content</BpkCardV2.Section>
26
+ * <BpkCardV2.Divider />
27
+ * <BpkCardV2.Section>Sidebar</BpkCardV2.Section>
28
+ * </BpkCardV2.Body>
29
+ *
30
+ * @returns {JSX.Element} Body component
31
+ */
32
+ declare const Body: {
33
+ ({ children, padding, templateColumns, ...rest }: BpkCardV2BodyProps): import("react/jsx-runtime").JSX.Element;
34
+ displayName: string;
35
+ };
36
+ export default Body;