@skyscanner/backpack-web 33.0.0-beta.1 → 33.1.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 (77) hide show
  1. package/bpk-component-accordion/src/BpkAccordionItem.js +1 -1
  2. package/bpk-component-badge/index.d.ts +1 -2
  3. package/bpk-component-banner-alert/src/AnimateAndFade.js +2 -3
  4. package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +0 -1
  5. package/bpk-component-barchart/src/BpkBarchart.js +1 -1
  6. package/bpk-component-barchart/src/BpkBarchartBars.js +2 -2
  7. package/bpk-component-bottom-sheet/src/BpkBottomSheet.d.ts +6 -11
  8. package/bpk-component-bottom-sheet/src/BpkBottomSheet.js +65 -27
  9. package/bpk-component-bottom-sheet/src/BpkBottomSheet.module.css +1 -1
  10. package/bpk-component-breakpoint/src/BpkBreakpoint.js +0 -1
  11. package/bpk-component-button/src/BpkButtonDestructive.module.css +1 -1
  12. package/bpk-component-button/src/BpkButtonLink.module.css +1 -1
  13. package/bpk-component-button/src/BpkButtonLinkOnDark.module.css +1 -1
  14. package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.css +1 -1
  15. package/bpk-component-button/src/BpkButtonV2/BpkButton.d.ts +1 -1
  16. package/bpk-component-button/src/BpkButtonV2/BpkButton.js +2 -1
  17. package/bpk-component-button/src/BpkButtonV2/BpkButton.module.css +1 -1
  18. package/bpk-component-button/src/BpkButtonV2/common-types.d.ts +1 -0
  19. package/bpk-component-calendar/src/BpkCalendarGrid.js +1 -2
  20. package/bpk-component-calendar/src/Week.js +1 -1
  21. package/bpk-component-calendar/src/composeCalendar.d.ts +4 -1
  22. package/bpk-component-calendar/src/date-utils.d.ts +19 -19
  23. package/bpk-component-calendar/src/date-utils.js +21 -21
  24. package/bpk-component-calendar/test-utils.js +1 -1
  25. package/bpk-component-chip/src/BpkSelectableChip.js +1 -1
  26. package/{bpk-component-bottom-sheet/src/BpkBottomSheetInner.d.ts → bpk-component-datatable/index.d.ts} +3 -11
  27. package/bpk-component-datatable/src/BpkDataTable.d.ts +22 -0
  28. package/bpk-component-datatable/src/BpkDataTable.js +1 -2
  29. package/bpk-component-datatable/src/BpkDataTableHeader.d.ts +27 -0
  30. package/bpk-component-datatable/src/BpkDataTableHeader.js +1 -1
  31. package/bpk-component-datatable/src/common-types.d.ts +111 -0
  32. package/bpk-component-datatable/src/utils.d.ts +30 -0
  33. package/bpk-component-flare/src/BpkFlareBar.js +1 -1
  34. package/bpk-component-floating-notification/src/BpkFloatingNotification.js +0 -1
  35. package/bpk-component-icon/src/withRtlSupport.js +1 -1
  36. package/bpk-component-image/src/BpkBackgroundImage.js +0 -1
  37. package/bpk-component-image/src/BpkImage.js +1 -3
  38. package/bpk-component-info-banner/src/AnimateAndFade.js +2 -3
  39. package/bpk-component-input/src/BpkInput.js +1 -1
  40. package/bpk-component-input/src/withOpenEvents.js +7 -6
  41. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +1 -1
  42. package/bpk-component-modal/src/BpkModal.js +1 -1
  43. package/bpk-component-navigation-bar/src/BpkNavigationBar.js +9 -11
  44. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +1 -1
  45. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +1 -1
  46. package/bpk-component-popover/src/BpkPopover.js +1 -1
  47. package/bpk-component-popover/src/BpkPopoverPortal.js +3 -3
  48. package/bpk-component-price/src/BpkPrice.js +1 -1
  49. package/bpk-component-rating/src/BpkRating.js +1 -1
  50. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +1 -1
  51. package/bpk-component-scrollable-calendar/test-utils.js +1 -1
  52. package/bpk-component-section-header/src/BpkSectionHeader.js +1 -0
  53. package/bpk-component-section-header/src/BpkSectionHeader.module.css +1 -1
  54. package/bpk-component-slider/src/BpkSlider.js +1 -2
  55. package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +1 -1
  56. package/bpk-component-spinner/src/BpkLargeSpinner.js +1 -1
  57. package/bpk-component-spinner/src/BpkSpinner.js +1 -1
  58. package/bpk-component-theme-toggle/src/BpkThemeToggle.js +1 -1
  59. package/bpk-component-tooltip/src/BpkTooltip.js +1 -1
  60. package/bpk-component-tooltip/src/BpkTooltipPortal.js +2 -2
  61. package/bpk-mixins/_buttons.scss +15 -0
  62. package/bpk-react-utils/index.d.ts +36 -1
  63. package/bpk-react-utils/index.js +4 -2
  64. package/bpk-react-utils/src/BpkDialogWrapper/BpkDialogWrapper.js +144 -0
  65. package/bpk-react-utils/src/BpkDialogWrapper.d.ts +45 -0
  66. package/bpk-react-utils/src/BpkDialogWrapper.module.css +18 -0
  67. package/bpk-react-utils/src/Portal.js +0 -1
  68. package/bpk-scrim-utils/src/withScrim.js +1 -2
  69. package/bpk-stylesheets/base.css +1 -1
  70. package/bpk-stylesheets/index.js +2 -2
  71. package/bpk-stylesheets/index.scss +20 -22
  72. package/package.json +3 -3
  73. package/unstable__bpk-mixins/_buttons.scss +15 -0
  74. package/bpk-component-bottom-sheet/src/BpkBottomSheetInner.js +0 -96
  75. package/bpk-component-bottom-sheet/src/BpkBottomSheetInner.module.css +0 -18
  76. package/bpk-component-flare/src/corner-radius.d.ts +0 -6
  77. package/bpk-component-flare/src/pointer.d.ts +0 -6
@@ -17,10 +17,10 @@
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";
20
21
  import ChevronDownIcon from "../../bpk-component-icon/sm/chevron-down";
21
22
  import BpkText, { TEXT_STYLES } from "../../bpk-component-text";
22
23
  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
26
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -18,7 +18,6 @@
18
18
 
19
19
  import component, { BADGE_TYPES, type Props } from './src/BpkBadge';
20
20
  import themeAttributes from './src/themeAttributes';
21
- import BpkBadgeV2 from './src/BpkBadgeV2/BpkBadge';
22
21
  export type BpkBadgeProps = Props;
23
22
  export default component;
24
- export { BADGE_TYPES, themeAttributes, BpkBadgeV2 };
23
+ export { BADGE_TYPES, themeAttributes };
@@ -17,11 +17,10 @@
17
17
  */
18
18
 
19
19
  import { Component } from 'react';
20
- // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
21
- import { TransitionGroup, CSSTransition } from 'react-transition-group';
22
-
23
20
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
24
21
  import { durationSm } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
22
+ // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
23
+ import { TransitionGroup, CSSTransition } from 'react-transition-group';
25
24
  import { cssModules } from "../../bpk-react-utils";
26
25
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
27
26
  import BpkAnimateHeight from "../../bpk-animate-height";
@@ -156,7 +156,6 @@ const BpkBannerAlertInner = ({
156
156
  }), dismissable && /*#__PURE__*/_jsx("span", {
157
157
  className: getClassName('bpk-banner-alert__toggle'),
158
158
  children: /*#__PURE__*/_jsx(BpkCloseButton, {
159
- className: getClassName('bpk-banner-alert__toggle-button'),
160
159
  onClick: onBannerDismiss,
161
160
  "aria-label": dismissButtonLabel,
162
161
  label: dismissButtonLabel
@@ -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 { Component } from 'react';
19
18
  import debounce from 'lodash.debounce';
19
+ import { Component } from 'react';
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";
@@ -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 PropTypes from 'prop-types';
18
- import { scaleBand, scaleLinear } from 'd3-scale';
17
+ */import { scaleBand, scaleLinear } from 'd3-scale';
18
+ import PropTypes from 'prop-types';
19
19
  import { borderRadiusXs } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
20
20
  import BpkBarchartBar from "./BpkBarchartBar";
21
21
  import { remToPx } from "./utils";
@@ -15,16 +15,18 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */
18
-
19
- import type { ReactNode } from 'react';
18
+ import { ReactNode } from 'react';
20
19
  import type { Props as BottomSheetProps } from './BpkBottomSheet';
21
20
  export type Props = Partial<BottomSheetProps> & {
21
+ actionText?: string;
22
+ ariaLabelledby: string;
22
23
  children: ReactNode;
23
24
  closeLabel?: string;
24
25
  closeOnEscPressed?: boolean;
25
26
  closeOnScrimClick?: boolean;
26
27
  id: string;
27
28
  isOpen: boolean;
29
+ onAction?: () => void;
28
30
  onClose: (
29
31
  arg0?: TouchEvent | MouseEvent | KeyboardEvent,
30
32
  arg1?: {
@@ -32,14 +34,7 @@ export type Props = Partial<BottomSheetProps> & {
32
34
  },
33
35
  ) => void;
34
36
  title?: string;
35
- /**
36
- * Because this component uses a modal on mobile viewports, you need to let it know what
37
- * the root element of your application is by returning its DOM node via this prop
38
- * This is to "hide" your application from screen readers whilst the modal is open.
39
- * The "pagewrap" element id is a convention we use internally at Skyscanner. In most cases it should "just work".
40
- */
41
- getApplicationElement: () => HTMLElement | null;
42
- renderTarget?: null | HTMLElement | (() => null | HTMLElement);
37
+ wide?: boolean;
43
38
  };
44
- declare const BpkBottomSheet: ({ closeLabel, closeOnEscPressed, closeOnScrimClick, id, isOpen, onClose, title, renderTarget, ...rest }: Props) => JSX.Element;
39
+ declare const BpkBottomSheet: ({ actionText, ariaLabelledby, children, closeLabel, closeOnEscPressed, closeOnScrimClick, id, isOpen, onAction, onClose, title, wide, ...rest }: Props) => JSX.Element;
45
40
  export default BpkBottomSheet;
@@ -15,16 +15,25 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */
18
+
18
19
  import { useState } from "react";
19
- import { Portal, cssModules } from "../../bpk-react-utils";
20
- import { withScrim } from "../../bpk-scrim-utils";
21
- import BpkBottomSheetInner from "./BpkBottomSheetInner";
20
+ import BpkBreakpoint, { BREAKPOINTS } from "../../bpk-component-breakpoint";
21
+ // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
22
+ import { BpkButtonLink } from "../../bpk-component-link";
23
+ // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
24
+ import BpkCloseButton from "../../bpk-component-close-button";
25
+ import { BpkDialogWrapper, cssModules } from "../../bpk-react-utils";
26
+ import BpkNavigationBar from "../../bpk-component-navigation-bar";
27
+ import BpkText, { TEXT_STYLES } from "../../bpk-component-text/src/BpkText";
22
28
  import STYLES from "./BpkBottomSheet.module.css";
23
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";
24
32
  const getClassName = cssModules(STYLES);
25
- const ScrimBpkBottomSheetInner = withScrim(BpkBottomSheetInner);
26
33
  const BpkBottomSheet = ({
27
34
  actionText = '',
35
+ ariaLabelledby,
36
+ children,
28
37
  closeLabel = '',
29
38
  closeOnEscPressed = false,
30
39
  closeOnScrimClick = false,
@@ -32,36 +41,65 @@ const BpkBottomSheet = ({
32
41
  isOpen,
33
42
  onAction = () => null,
34
43
  onClose,
35
- renderTarget,
36
44
  title = '',
37
- wide = false,
38
- ...rest
45
+ wide = false
39
46
  }) => {
40
- const [exiting, setExitting] = useState(false);
41
- const handleClose = (arg0, arg1) => {
42
- setExitting(true);
47
+ const [exiting, setExiting] = useState(false);
48
+ const animationTimeout = 240;
49
+ const handleClose = (timeout, arg0, arg1) => {
50
+ setExiting(true);
43
51
  setTimeout(() => {
44
52
  onClose(arg0, arg1);
45
- setExitting(false);
46
- }, 240);
53
+ setExiting(false);
54
+ }, timeout);
47
55
  };
48
- return /*#__PURE__*/_jsx(Portal, {
49
- isOpen: isOpen,
50
- onClose: handleClose,
51
- closeOnEscPressed: closeOnEscPressed,
52
- renderTarget: renderTarget,
53
- children: /*#__PURE__*/_jsx(ScrimBpkBottomSheetInner, {
56
+ const headingId = `bpk-bottom-sheet-heading-${id}`;
57
+ const dialogClassName = getClassName('bpk-bottom-sheet', wide && 'bpk-bottom-sheet--wide');
58
+ return /*#__PURE__*/_jsx(BpkBreakpoint, {
59
+ query: BREAKPOINTS.ABOVE_MOBILE,
60
+ children: isAboveMobile => /*#__PURE__*/_jsx(BpkDialogWrapper, {
61
+ ariaLabelledby: ariaLabelledby,
62
+ dialogClassName: dialogClassName,
54
63
  id: id,
55
- onClose: handleClose,
56
- closeOnScrimClick: closeOnScrimClick,
57
- containerClassName: getClassName('bpk-bottom-sheet--container'),
58
- title: title,
59
- closeLabel: closeLabel,
60
- actionText: actionText,
61
- onAction: onAction,
62
- wide: wide,
64
+ isOpen: isOpen,
65
+ onClose: (arg0, arg1) => handleClose(isAboveMobile ? 0 : animationTimeout, arg0, arg1),
63
66
  exiting: exiting,
64
- ...rest
67
+ transitionClassNames: {
68
+ appear: getClassName('bpk-bottom-sheet--appear'),
69
+ appearActive: getClassName('bpk-bottom-sheet--appear-active'),
70
+ exit: getClassName('bpk-bottom-sheet--exit')
71
+ },
72
+ closeOnEscPressed: closeOnEscPressed,
73
+ closeOnScrimClick: closeOnScrimClick,
74
+ timeout: {
75
+ appear: animationTimeout,
76
+ exit: isAboveMobile ? 0 : animationTimeout
77
+ },
78
+ children: /*#__PURE__*/_jsxs(_Fragment, {
79
+ children: [/*#__PURE__*/_jsx("header", {
80
+ className: getClassName('bpk-bottom-sheet--header'),
81
+ children: /*#__PURE__*/_jsx(BpkNavigationBar, {
82
+ id: headingId,
83
+ title: title && /*#__PURE__*/_jsx(BpkText, {
84
+ id: headingId,
85
+ textStyle: TEXT_STYLES.label1,
86
+ tagName: "h2",
87
+ children: title
88
+ }),
89
+ leadingButton: /*#__PURE__*/_jsx(BpkCloseButton, {
90
+ label: closeLabel,
91
+ onClick: (arg0, arg1) => handleClose(isAboveMobile ? 0 : animationTimeout, arg0, arg1)
92
+ }),
93
+ trailingButton: actionText && onAction ? /*#__PURE__*/_jsx(BpkButtonLink, {
94
+ onClick: onAction,
95
+ children: actionText
96
+ }) : null
97
+ })
98
+ }), /*#__PURE__*/_jsx("div", {
99
+ className: getClassName('bpk-bottom-sheet--content'),
100
+ children: children
101
+ })]
102
+ })
65
103
  })
66
104
  });
67
105
  };
@@ -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-bottom-sheet--container{display:flex;padding:1.5rem}@media(max-width: 32rem){.bpk-bottom-sheet--container{padding:0;overflow:hidden}}
18
+ .bpk-bottom-sheet{z-index:1100;width:100%;max-width:32rem;margin:auto;transform:scale(1);transition:opacity 200ms ease-in-out,transform 200ms ease-in-out;outline:0;background-color:#fff;opacity:1;overflow:hidden;overflow-y:scroll;-ms-overflow-style:none;scrollbar-width:none;-webkit-tap-highlight-color:rgba(0,0,0,0);box-shadow:0px 12px 50px 0px rgba(37,32,31,.25);border-radius:.5rem}@media(max-width: 32rem){.bpk-bottom-sheet{position:fixed;bottom:0;height:fit-content;max-height:90%;margin-bottom:0;border-radius:1.5rem 1.5rem 0 0;overflow-x:hidden}}.bpk-bottom-sheet::-webkit-scrollbar{display:none}.bpk-bottom-sheet--appear{animation-duration:200ms;animation-name:slide-up;animation-timing-function:ease-in-out}@media(min-width: 32.0625rem){.bpk-bottom-sheet--appear{transform:scale(0.9);opacity:0;animation:none}}@media(min-width: 32.0625rem){.bpk-bottom-sheet--appear-active{transform:scale(1);opacity:1}}.bpk-bottom-sheet--exit{animation-direction:reverse;animation-duration:200ms;animation-name:slide-up;animation-timing-function:ease-in-out}@media(min-width: 32.0625rem){.bpk-bottom-sheet--exit{animation:none}}.bpk-bottom-sheet--content{padding:1rem;flex:1;overflow-y:auto}@media(min-width: 32.0625rem){.bpk-bottom-sheet--wide{max-width:64rem}}.bpk-bottom-sheet--header{position:sticky;top:0;z-index:899;box-shadow:0 -1px 0 0 #c1c7cf inset}@keyframes slide-up{0%{transform:translateY(100%)}100%{transform:translateY(0%)}}
@@ -18,7 +18,6 @@
18
18
 
19
19
  import { useState, useEffect } from 'react';
20
20
  import MediaQuery from "react-responsive/dist/react-responsive";
21
-
22
21
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
23
22
  import { breakpoints } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
24
23
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -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--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:#c80456;color:var(--bpk-button-destructive-text-color, rgb(200, 4, 86));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){color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207))}:global(.bpk-no-touch-support) .bpk-button--destructive:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207))}.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-no-touch-support .bpk-button--destructive:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-destructive-hover-text-color, rgb(255, 255, 255));background-color:#c80456;background-color:var(--bpk-button-destructive-hover-background-color, rgb(200, 4, 86))}:global(.bpk-no-touch-support) .bpk-button--destructive:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-destructive-hover-text-color, rgb(255, 255, 255));background-color:#c80456;background-color:var(--bpk-button-destructive-hover-background-color, rgb(200, 4, 86))}.bpk-button--destructive:active{color:#fff;color:var(--bpk-button-destructive-active-text-color, rgb(255, 255, 255));background-color:#c80456;background-color:var(--bpk-button-destructive-active-background-color, rgb(200, 4, 86))}.bpk-button--destructive:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2)}
18
+ .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){color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207))}:global(.bpk-no-touch-support) .bpk-button--destructive:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207))}.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-no-touch-support .bpk-button--destructive:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-destructive-hover-text-color, rgb(255, 255, 255));background-color:#e70866;background-color:var(--bpk-button-destructive-hover-background-color, rgb(231, 8, 102))}:global(.bpk-no-touch-support) .bpk-button--destructive:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-destructive-hover-text-color, rgb(255, 255, 255));background-color:#e70866;background-color:var(--bpk-button-destructive-hover-background-color, rgb(231, 8, 102))}.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)}
@@ -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--link{background:none;box-shadow:none;padding:0;border:0;background-color:rgba(0,0,0,0);text-decoration:none;cursor:pointer;appearance:none;color:#0062e3;color:var(--bpk-link-color, rgb(0, 98, 227));padding:.375rem 0;color:#0062e3}.bpk-no-touch-support .bpk-button--link:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, rgb(0, 98, 227))}:global(.bpk-no-touch-support) .bpk-button--link:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, rgb(0, 98, 227))}.bpk-button--link:visited{color:#0062e3;color:var(--bpk-link-visited-color, rgb(0, 98, 227))}.bpk-button--link:active{text-decoration:underline;color:#0062e3;color:var(--bpk-link-active-color, rgb(0, 98, 227))}.bpk-no-touch-support .bpk-button--link:hover:not(:active):not(:disabled){background:none;color:#154679;text-decoration:none}:global(.bpk-no-touch-support) .bpk-button--link:hover:not(:active):not(:disabled){background:none;color:#154679;text-decoration:none}.bpk-button--link:active{background:none;color:#154679;text-decoration:none}.bpk-button--link:disabled{background:none;color:rgba(0,0,0,.2);text-decoration:none}.bpk-button--link-large{padding:.75rem 0}
18
+ .bpk-button--link{background:none;box-shadow:none;padding:0;border:0;background-color:rgba(0,0,0,0);text-decoration:none;cursor:pointer;appearance:none;color:#0062e3;color:var(--bpk-link-color, rgb(0, 98, 227));padding:.375rem 0;color:#0062e3}.bpk-no-touch-support .bpk-button--link:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, rgb(0, 98, 227))}:global(.bpk-no-touch-support) .bpk-button--link:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, rgb(0, 98, 227))}.bpk-button--link:visited{color:#0062e3;color:var(--bpk-link-visited-color, rgb(0, 98, 227))}.bpk-button--link:active{text-decoration:underline;color:#0062e3;color:var(--bpk-link-active-color, rgb(0, 98, 227))}.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{background:none;color:rgba(0,0,0,.2);text-decoration:none}.bpk-button--link-large{padding:.75rem 0}
@@ -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--link-on-dark{background:none;box-shadow:none;padding:0;border:0;background-color:rgba(0,0,0,0);text-decoration:none;cursor:pointer;appearance:none;color:#0062e3;color:var(--bpk-link-color, rgb(0, 98, 227));padding:.375rem 0;color:#0062e3;color:#fff;color:var(--bpk-button-link-on-dark-text-color, rgb(255, 255, 255))}.bpk-no-touch-support .bpk-button--link-on-dark:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, rgb(0, 98, 227))}:global(.bpk-no-touch-support) .bpk-button--link-on-dark:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, rgb(0, 98, 227))}.bpk-button--link-on-dark:visited{color:#0062e3;color:var(--bpk-link-visited-color, rgb(0, 98, 227))}.bpk-button--link-on-dark:active{text-decoration:underline;color:#0062e3;color:var(--bpk-link-active-color, rgb(0, 98, 227))}.bpk-no-touch-support .bpk-button--link-on-dark:hover:not(:active):not(:disabled){background:none;color:#154679;text-decoration:none}:global(.bpk-no-touch-support) .bpk-button--link-on-dark:hover:not(:active):not(:disabled){background:none;color:#154679;text-decoration:none}.bpk-button--link-on-dark:active{background:none;color:#154679;text-decoration:none}.bpk-button--link-on-dark:disabled{background:none;color:rgba(0,0,0,.2);text-decoration:none}.bpk-button--link-on-dark-large{padding:.75rem 0}.bpk-no-touch-support .bpk-button--link-on-dark:hover:not(:active):not(:disabled){color:rgba(255,255,255,.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:rgba(255,255,255,.5);color:var(--bpk-button-link-on-dark-hover-text-color, rgba(255, 255, 255, 0.5))}.bpk-button--link-on-dark:active{color:rgba(255,255,255,.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{color:rgba(255,255,255,.2);color:var(--bpk-button-link-on-dark-disabled-color, rgba(255, 255, 255, 0.2))}
18
+ .bpk-button--link-on-dark{background:none;box-shadow:none;padding:0;border:0;background-color:rgba(0,0,0,0);text-decoration:none;cursor:pointer;appearance:none;color:#0062e3;color:var(--bpk-link-color, rgb(0, 98, 227));padding:.375rem 0;color:#0062e3;color:#fff;color:var(--bpk-button-link-on-dark-text-color, rgb(255, 255, 255))}.bpk-no-touch-support .bpk-button--link-on-dark:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, rgb(0, 98, 227))}:global(.bpk-no-touch-support) .bpk-button--link-on-dark:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, rgb(0, 98, 227))}.bpk-button--link-on-dark:visited{color:#0062e3;color:var(--bpk-link-visited-color, rgb(0, 98, 227))}.bpk-button--link-on-dark:active{text-decoration:underline;color:#0062e3;color:var(--bpk-link-active-color, rgb(0, 98, 227))}.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{background:none;color:rgba(0,0,0,.2);text-decoration:none}.bpk-button--link-on-dark-large{padding:.75rem 0}.bpk-no-touch-support .bpk-button--link-on-dark:hover:not(:active):not(:disabled){color:rgba(255,255,255,.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:rgba(255,255,255,.5);color:var(--bpk-button-link-on-dark-hover-text-color, rgba(255, 255, 255, 0.5))}.bpk-button--link-on-dark:active{color:rgba(255,255,255,.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{color:rgba(255,255,255,.2);color:var(--bpk-button-link-on-dark-disabled-color, rgba(255, 255, 255, 0.2))}
@@ -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--secondary-on-dark{color:#fff;color:var(--bpk-button-secondary-on-dark-text-color, rgb(255, 255, 255));background-color:#243346;background-color:var(--bpk-button-secondary-on-dark-background-color, rgb(36, 51, 70))}.bpk-no-touch-support .bpk-button--secondary-on-dark:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-secondary-on-dark-hover-text-color, rgb(255, 255, 255));background-color:#010913;background-color:var(--bpk-button-secondary-on-dark-hover-background-color, rgb(1, 9, 19))}:global(.bpk-no-touch-support) .bpk-button--secondary-on-dark:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-secondary-on-dark-hover-text-color, rgb(255, 255, 255));background-color:#010913;background-color:var(--bpk-button-secondary-on-dark-hover-background-color, rgb(1, 9, 19))}.bpk-button--secondary-on-dark:active{color:#fff;color:var(--bpk-button-secondary-on-dark-active-text-color, rgb(255, 255, 255));background-color:#010913;background-color:var(--bpk-button-secondary-on-dark-active-background-color, rgb(1, 9, 19))}.bpk-button--secondary-on-dark:disabled{background-color:#0b121d;color:rgba(255,255,255,.2)}
18
+ .bpk-button--secondary-on-dark{color:#fff;color:var(--bpk-button-secondary-on-dark-text-color, rgb(255, 255, 255));background-color:rgba(255,255,255,.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){color:#fff;color:var(--bpk-button-secondary-on-dark-hover-text-color, rgb(255, 255, 255));background-color:#010913;background-color:var(--bpk-button-secondary-on-dark-hover-background-color, rgb(1, 9, 19))}:global(.bpk-no-touch-support) .bpk-button--secondary-on-dark:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-secondary-on-dark-hover-text-color, rgb(255, 255, 255));background-color:#010913;background-color:var(--bpk-button-secondary-on-dark-hover-background-color, rgb(1, 9, 19))}.bpk-button--secondary-on-dark:active{color:#fff;color:var(--bpk-button-secondary-on-dark-active-text-color, rgb(255, 255, 255));background-color:#010913;background-color:var(--bpk-button-secondary-on-dark-active-background-color, rgb(1, 9, 19))}.bpk-button--secondary-on-dark:disabled{background-color:#0b121d;color:rgba(255,255,255,.2)}
@@ -18,4 +18,4 @@
18
18
 
19
19
  /// <reference types="react" />
20
20
  import type { Props } from './common-types';
21
- export declare const BpkButtonV2: ({ blank, children, className, disabled, href, iconOnly, onClick, rel: propRel, size, submit, type, ...rest }: Props) => JSX.Element;
21
+ export declare const BpkButtonV2: ({ blank, children, className, disabled, fullWidth, href, iconOnly, onClick, rel: propRel, size, submit, type, ...rest }: Props) => JSX.Element;
@@ -27,6 +27,7 @@ export const BpkButtonV2 = ({
27
27
  children,
28
28
  className = null,
29
29
  disabled = false,
30
+ fullWidth = false,
30
31
  href = null,
31
32
  iconOnly = false,
32
33
  onClick = () => {},
@@ -36,7 +37,7 @@ export const BpkButtonV2 = ({
36
37
  type = BUTTON_TYPES.primary,
37
38
  ...rest
38
39
  }) => {
39
- 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}`, className);
40
+ 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}`, fullWidth && 'bpk-button--full-width', className);
40
41
  const target = blank ? '_blank' : '';
41
42
  const rel = blank ? propRel || 'noopener noreferrer' : propRel;
42
43
  if (!disabled && href) {
@@ -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;border-radius:.5rem;text-align:center;text-decoration:none;cursor:pointer;vertical-align:middle;user-select:none;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){color:#fff;color:var(--bpk-button-primary-hover-text-color, rgb(255, 255, 255));background-color:#154679;background-color:var(--bpk-button-primary-hover-background-color, rgb(21, 70, 121))}:global(.bpk-no-touch-support) .bpk-button:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-primary-hover-text-color, rgb(255, 255, 255));background-color:#154679;background-color:var(--bpk-button-primary-hover-background-color, rgb(21, 70, 121))}.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--large{min-height:3rem;padding:.75rem 1rem}.bpk-button--icon-only{border-radius:.5rem;padding-right:.625rem;padding-left:.625rem;border-radius:.5rem}.bpk-button--large-icon-only{border-radius:.5rem;padding-right:.75rem;padding-left:.75rem;border-radius:.5rem}.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:#c80456;color:var(--bpk-button-destructive-text-color, rgb(200, 4, 86));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){color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207))}:global(.bpk-no-touch-support) .bpk-button--destructive:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207))}.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-no-touch-support .bpk-button--destructive:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-destructive-hover-text-color, rgb(255, 255, 255));background-color:#c80456;background-color:var(--bpk-button-destructive-hover-background-color, rgb(200, 4, 86))}:global(.bpk-no-touch-support) .bpk-button--destructive:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-destructive-hover-text-color, rgb(255, 255, 255));background-color:#c80456;background-color:var(--bpk-button-destructive-hover-background-color, rgb(200, 4, 86))}.bpk-button--destructive:active{color:#fff;color:var(--bpk-button-destructive-active-text-color, rgb(255, 255, 255));background-color:#c80456;background-color:var(--bpk-button-destructive-active-background-color, rgb(200, 4, 86))}.bpk-button--destructive:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2)}.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){color:#fff;color:var(--bpk-button-featured-hover-text-color, rgb(255, 255, 255));background-color:#024daf;background-color:var(--bpk-button-featured-hover-background-color, rgb(2, 77, 175))}:global(.bpk-no-touch-support) .bpk-button--featured:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-featured-hover-text-color, rgb(255, 255, 255));background-color:#024daf;background-color:var(--bpk-button-featured-hover-background-color, rgb(2, 77, 175))}.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--link{background:none;box-shadow:none;padding:0;border:0;background-color:rgba(0,0,0,0);text-decoration:none;cursor:pointer;appearance:none;color:#0062e3;color:var(--bpk-link-color, rgb(0, 98, 227));padding:.375rem 0;color:#0062e3}.bpk-no-touch-support .bpk-button--link:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, rgb(0, 98, 227))}:global(.bpk-no-touch-support) .bpk-button--link:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, rgb(0, 98, 227))}.bpk-button--link:visited{color:#0062e3;color:var(--bpk-link-visited-color, rgb(0, 98, 227))}.bpk-button--link:active{text-decoration:underline;color:#0062e3;color:var(--bpk-link-active-color, rgb(0, 98, 227))}.bpk-no-touch-support .bpk-button--link:hover:not(:active):not(:disabled){background:none;color:#154679;text-decoration:none}:global(.bpk-no-touch-support) .bpk-button--link:hover:not(:active):not(:disabled){background:none;color:#154679;text-decoration:none}.bpk-button--link:active{background:none;color:#154679;text-decoration:none}.bpk-button--link:disabled{background:none;color:rgba(0,0,0,.2);text-decoration:none}.bpk-button--link-large{padding:.75rem 0}.bpk-button--link-on-dark{background:none;box-shadow:none;padding:0;border:0;background-color:rgba(0,0,0,0);text-decoration:none;cursor:pointer;appearance:none;color:#0062e3;color:var(--bpk-link-color, rgb(0, 98, 227));padding:.375rem 0;color:#0062e3;color:#fff;color:var(--bpk-button-link-on-dark-text-color, rgb(255, 255, 255))}.bpk-no-touch-support .bpk-button--link-on-dark:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, rgb(0, 98, 227))}:global(.bpk-no-touch-support) .bpk-button--link-on-dark:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, rgb(0, 98, 227))}.bpk-button--link-on-dark:visited{color:#0062e3;color:var(--bpk-link-visited-color, rgb(0, 98, 227))}.bpk-button--link-on-dark:active{text-decoration:underline;color:#0062e3;color:var(--bpk-link-active-color, rgb(0, 98, 227))}.bpk-no-touch-support .bpk-button--link-on-dark:hover:not(:active):not(:disabled){background:none;color:#154679;text-decoration:none}:global(.bpk-no-touch-support) .bpk-button--link-on-dark:hover:not(:active):not(:disabled){background:none;color:#154679;text-decoration:none}.bpk-button--link-on-dark:active{background:none;color:#154679;text-decoration:none}.bpk-button--link-on-dark:disabled{background:none;color:rgba(0,0,0,.2);text-decoration:none}.bpk-button--link-on-dark-large{padding:.75rem 0}.bpk-no-touch-support .bpk-button--link-on-dark:hover:not(:active):not(:disabled){color:rgba(255,255,255,.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:rgba(255,255,255,.5);color:var(--bpk-button-link-on-dark-hover-text-color, rgba(255, 255, 255, 0.5))}.bpk-button--link-on-dark:active{color:rgba(255,255,255,.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{color:rgba(255,255,255,.2);color:var(--bpk-button-link-on-dark-disabled-color, rgba(255, 255, 255, 0.2))}.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){color:#161616;color:var(--bpk-button-primary-on-dark-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-primary-on-dark-hover-background-color, rgb(193, 199, 207))}:global(.bpk-no-touch-support) .bpk-button--primary-on-dark:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-button-primary-on-dark-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-primary-on-dark-hover-background-color, rgb(193, 199, 207))}.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-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){color:#fff;color:var(--bpk-button-primary-on-light-hover-text-color, rgb(255, 255, 255));background-color:#154679;background-color:var(--bpk-button-primary-on-light-hover-background-color, rgb(21, 70, 121))}:global(.bpk-no-touch-support) .bpk-button--primary-on-light:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-primary-on-light-hover-text-color, rgb(255, 255, 255));background-color:#154679;background-color:var(--bpk-button-primary-on-light-hover-background-color, rgb(21, 70, 121))}.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--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){color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207))}:global(.bpk-no-touch-support) .bpk-button--secondary:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207))}.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-on-dark{color:#fff;color:var(--bpk-button-secondary-on-dark-text-color, rgb(255, 255, 255));background-color:#243346;background-color:var(--bpk-button-secondary-on-dark-background-color, rgb(36, 51, 70))}.bpk-no-touch-support .bpk-button--secondary-on-dark:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-secondary-on-dark-hover-text-color, rgb(255, 255, 255));background-color:#010913;background-color:var(--bpk-button-secondary-on-dark-hover-background-color, rgb(1, 9, 19))}:global(.bpk-no-touch-support) .bpk-button--secondary-on-dark:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-secondary-on-dark-hover-text-color, rgb(255, 255, 255));background-color:#010913;background-color:var(--bpk-button-secondary-on-dark-hover-background-color, rgb(1, 9, 19))}.bpk-button--secondary-on-dark:active{color:#fff;color:var(--bpk-button-secondary-on-dark-active-text-color, rgb(255, 255, 255));background-color:#010913;background-color:var(--bpk-button-secondary-on-dark-active-background-color, rgb(1, 9, 19))}.bpk-button--secondary-on-dark:disabled{background-color:#0b121d;color:rgba(255,255,255,.2)}.bpk-button span>svg{display:block}.bpk-button svg{fill:currentcolor}
18
+ .bpk-button{display:inline-block;min-height:2.25rem;margin:0;padding:.375rem 1rem;border:0;border-radius:.5rem;text-align:center;text-decoration:none;cursor:pointer;vertical-align:middle;user-select:none;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){color:#fff;color:var(--bpk-button-primary-hover-text-color, rgb(255, 255, 255));background-color:#154679;background-color:var(--bpk-button-primary-hover-background-color, rgb(21, 70, 121))}:global(.bpk-no-touch-support) .bpk-button:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-primary-hover-text-color, rgb(255, 255, 255));background-color:#154679;background-color:var(--bpk-button-primary-hover-background-color, rgb(21, 70, 121))}.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--large{min-height:3rem;padding:.75rem 1rem}.bpk-button--icon-only{border-radius:.5rem;padding-right:.625rem;padding-left:.625rem;border-radius:.5rem}.bpk-button--large-icon-only{border-radius:.5rem;padding-right:.75rem;padding-left:.75rem;border-radius:.5rem}.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){color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207))}:global(.bpk-no-touch-support) .bpk-button--destructive:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207))}.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-no-touch-support .bpk-button--destructive:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-destructive-hover-text-color, rgb(255, 255, 255));background-color:#e70866;background-color:var(--bpk-button-destructive-hover-background-color, rgb(231, 8, 102))}:global(.bpk-no-touch-support) .bpk-button--destructive:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-destructive-hover-text-color, rgb(255, 255, 255));background-color:#e70866;background-color:var(--bpk-button-destructive-hover-background-color, rgb(231, 8, 102))}.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--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){color:#fff;color:var(--bpk-button-featured-hover-text-color, rgb(255, 255, 255));background-color:#024daf;background-color:var(--bpk-button-featured-hover-background-color, rgb(2, 77, 175))}:global(.bpk-no-touch-support) .bpk-button--featured:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-featured-hover-text-color, rgb(255, 255, 255));background-color:#024daf;background-color:var(--bpk-button-featured-hover-background-color, rgb(2, 77, 175))}.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--link{background:none;box-shadow:none;padding:0;border:0;background-color:rgba(0,0,0,0);text-decoration:none;cursor:pointer;appearance:none;color:#0062e3;color:var(--bpk-link-color, rgb(0, 98, 227));padding:.375rem 0;color:#0062e3}.bpk-no-touch-support .bpk-button--link:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, rgb(0, 98, 227))}:global(.bpk-no-touch-support) .bpk-button--link:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, rgb(0, 98, 227))}.bpk-button--link:visited{color:#0062e3;color:var(--bpk-link-visited-color, rgb(0, 98, 227))}.bpk-button--link:active{text-decoration:underline;color:#0062e3;color:var(--bpk-link-active-color, rgb(0, 98, 227))}.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{background:none;color:rgba(0,0,0,.2);text-decoration:none}.bpk-button--link-large{padding:.75rem 0}.bpk-button--link-on-dark{background:none;box-shadow:none;padding:0;border:0;background-color:rgba(0,0,0,0);text-decoration:none;cursor:pointer;appearance:none;color:#0062e3;color:var(--bpk-link-color, rgb(0, 98, 227));padding:.375rem 0;color:#0062e3;color:#fff;color:var(--bpk-button-link-on-dark-text-color, rgb(255, 255, 255))}.bpk-no-touch-support .bpk-button--link-on-dark:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, rgb(0, 98, 227))}:global(.bpk-no-touch-support) .bpk-button--link-on-dark:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, rgb(0, 98, 227))}.bpk-button--link-on-dark:visited{color:#0062e3;color:var(--bpk-link-visited-color, rgb(0, 98, 227))}.bpk-button--link-on-dark:active{text-decoration:underline;color:#0062e3;color:var(--bpk-link-active-color, rgb(0, 98, 227))}.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{background:none;color:rgba(0,0,0,.2);text-decoration:none}.bpk-button--link-on-dark-large{padding:.75rem 0}.bpk-no-touch-support .bpk-button--link-on-dark:hover:not(:active):not(:disabled){color:rgba(255,255,255,.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:rgba(255,255,255,.5);color:var(--bpk-button-link-on-dark-hover-text-color, rgba(255, 255, 255, 0.5))}.bpk-button--link-on-dark:active{color:rgba(255,255,255,.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{color:rgba(255,255,255,.2);color:var(--bpk-button-link-on-dark-disabled-color, rgba(255, 255, 255, 0.2))}.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){color:#161616;color:var(--bpk-button-primary-on-dark-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-primary-on-dark-hover-background-color, rgb(193, 199, 207))}:global(.bpk-no-touch-support) .bpk-button--primary-on-dark:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-button-primary-on-dark-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-primary-on-dark-hover-background-color, rgb(193, 199, 207))}.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-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){color:#fff;color:var(--bpk-button-primary-on-light-hover-text-color, rgb(255, 255, 255));background-color:#154679;background-color:var(--bpk-button-primary-on-light-hover-background-color, rgb(21, 70, 121))}:global(.bpk-no-touch-support) .bpk-button--primary-on-light:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-primary-on-light-hover-text-color, rgb(255, 255, 255));background-color:#154679;background-color:var(--bpk-button-primary-on-light-hover-background-color, rgb(21, 70, 121))}.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--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){color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207))}:global(.bpk-no-touch-support) .bpk-button--secondary:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207))}.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-on-dark{color:#fff;color:var(--bpk-button-secondary-on-dark-text-color, rgb(255, 255, 255));background-color:rgba(255,255,255,.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){color:#fff;color:var(--bpk-button-secondary-on-dark-hover-text-color, rgb(255, 255, 255));background-color:#010913;background-color:var(--bpk-button-secondary-on-dark-hover-background-color, rgb(1, 9, 19))}:global(.bpk-no-touch-support) .bpk-button--secondary-on-dark:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-secondary-on-dark-hover-text-color, rgb(255, 255, 255));background-color:#010913;background-color:var(--bpk-button-secondary-on-dark-hover-background-color, rgb(1, 9, 19))}.bpk-button--secondary-on-dark:active{color:#fff;color:var(--bpk-button-secondary-on-dark-active-text-color, rgb(255, 255, 255));background-color:#010913;background-color:var(--bpk-button-secondary-on-dark-active-background-color, rgb(1, 9, 19))}.bpk-button--secondary-on-dark:disabled{background-color:#0b121d;color:rgba(255,255,255,.2)}.bpk-button--full-width{display:block;width:100%}.bpk-button span>svg{display:block}.bpk-button svg{fill:currentcolor}
@@ -41,6 +41,7 @@ export type Props = {
41
41
  size?: SizeType;
42
42
  className?: string | null;
43
43
  disabled?: boolean;
44
+ fullWidth?: boolean;
44
45
  iconOnly?: boolean;
45
46
  onClick?: (event: MouseEvent<HTMLButtonElement & HTMLAnchorElement>) => void;
46
47
  rel?: string | undefined;
@@ -21,9 +21,8 @@ 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 { addCalendarGridTransition } from "./BpkCalendarGridTransition";
25
24
  import STYLES from "./BpkCalendarGrid.module.css";
26
-
25
+ import { addCalendarGridTransition } from "./BpkCalendarGridTransition";
27
26
  // This should be imported after `./BpkCalendarGrid.module.css`.
28
27
  // Because of how css specificity works the class `bpk-calendar-grid-transition__grid` needs to be defined
29
28
  // after `bpk-calendar-grid` (defined by BpkCalendarGrid.module.css) so it can override width and display of the calendar
@@ -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";
24
23
  // TODO: Move this to `Week.scss`
25
24
  // This should be using its own css file as `BpkCalendarGrid` is also importing `BpkCalendarGrid.module.css`
26
25
  // and the order of css imports can break the component.
27
26
  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) => {
@@ -71,6 +71,9 @@ export type Props = {
71
71
  preventKeyboardFocus?: boolean;
72
72
  selectionConfiguration?: SelectionConfiguration;
73
73
  gridClassName?: string | null;
74
+ /**
75
+ * Sets the height of month rows in 'rem' units. If not specified, the default value of `2.75rem` will be used.
76
+ */
74
77
  customRowHeight?: number;
75
78
  /**
76
79
  * Key to be used to pick the desired weekDay format from the `daysOfWeek` object, for example: `nameAbbr` or `nameNarrow`.
@@ -93,5 +96,5 @@ export type Props = {
93
96
  */
94
97
  dateProps?: {} | null;
95
98
  };
96
- declare const composeCalendar: (Nav: ComponentType<any> | string | null, GridHeader: ComponentType<any> | string | null, Grid: ComponentType<any> | string, CalendarDate: ComponentType<any> | string | null) => ({ changeMonthLabel, className, dateModifiers, dateProps, daysOfWeek, fixedWidth, focusedDate, formatDateFull, formatMonth, gridClassName, gridProps, headerProps, id, markOutsideDays, markToday, maxDate, minDate, month, navProps, nextMonthLabel, onDateClick, onDateKeyDown, onMonthChange, preventKeyboardFocus, previousMonthLabel, selectionConfiguration, weekDayKey, weekStartsOn, }: Props) => JSX.Element;
99
+ declare const composeCalendar: (Nav: ComponentType<any> | string | null, GridHeader: ComponentType<any> | string | null, Grid: ComponentType<any> | string, CalendarDate: ComponentType<any> | string | null) => ({ changeMonthLabel, className, customRowHeight, dateModifiers, dateProps, daysOfWeek, fixedWidth, focusedDate, formatDateFull, formatMonth, gridClassName, gridProps, headerProps, id, markOutsideDays, markToday, maxDate, minDate, month, navProps, nextMonthLabel, onDateClick, onDateKeyDown, onMonthChange, preventKeyboardFocus, previousMonthLabel, selectionConfiguration, weekDayKey, weekStartsOn, }: Props) => JSX.Element;
97
100
  export default composeCalendar;
@@ -16,25 +16,25 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import startOfMonth from 'date-fns/startOfMonth';
20
- import endOfMonth from 'date-fns/endOfMonth';
21
- import lastDayOfMonth from 'date-fns/lastDayOfMonth';
22
- import getDay from 'date-fns/getDay';
23
- import isWithinRange from 'date-fns/isWithinInterval';
24
- import isToday from 'date-fns/isToday';
25
- import isSaturday from 'date-fns/isSaturday';
26
- import isSunday from 'date-fns/isSunday';
27
- import isSameDay from 'date-fns/isSameDay';
28
- import isSameWeek from 'date-fns/isSameWeek';
29
- import isSameMonth from 'date-fns/isSameMonth';
30
- import isBefore from 'date-fns/isBefore';
31
- import isAfter from 'date-fns/isAfter';
32
- import differenceInCalendarMonths from 'date-fns/differenceInCalendarMonths';
33
- import addDays from 'date-fns/addDays';
34
- import addMonths from 'date-fns/addMonths';
35
- import startOfDay from 'date-fns/startOfDay';
36
- import parseISO from 'date-fns/parseISO';
37
- import format from 'date-fns/format';
19
+ import { startOfMonth } from 'date-fns/startOfMonth';
20
+ import { endOfMonth } from 'date-fns/endOfMonth';
21
+ import { lastDayOfMonth } from 'date-fns/lastDayOfMonth';
22
+ import { getDay } from 'date-fns/getDay';
23
+ import { isWithinInterval as isWithinRange } from 'date-fns/isWithinInterval';
24
+ import { isToday } from 'date-fns/isToday';
25
+ import { isSaturday } from 'date-fns/isSaturday';
26
+ import { isSunday } from 'date-fns/isSunday';
27
+ import { isSameDay } from 'date-fns/isSameDay';
28
+ import { isSameWeek } from 'date-fns/isSameWeek';
29
+ import { isSameMonth } from 'date-fns/isSameMonth';
30
+ import { isBefore } from 'date-fns/isBefore';
31
+ import { isAfter } from 'date-fns/isAfter';
32
+ import { differenceInCalendarMonths } from 'date-fns/differenceInCalendarMonths';
33
+ import { addDays } from 'date-fns/addDays';
34
+ import { addMonths } from 'date-fns/addMonths';
35
+ import { startOfDay } from 'date-fns/startOfDay';
36
+ import { parseISO } from 'date-fns/parseISO';
37
+ import { format } from 'date-fns/format';
38
38
  import type { DaysOfWeek } from './custom-proptypes';
39
39
  declare function daysInMonth(year: number, month: number): number;
40
40
  declare function getCalendarMonthWeeks(date: Date, weekStartsOn: number): Date[][];
@@ -16,27 +16,27 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import startOfMonth from 'date-fns/startOfMonth';
20
- import endOfMonth from 'date-fns/endOfMonth';
21
- import lastDayOfMonth from 'date-fns/lastDayOfMonth';
22
- import getDay from 'date-fns/getDay';
23
- import isWithinRange from 'date-fns/isWithinInterval';
24
- import isToday from 'date-fns/isToday';
25
- import isSaturday from 'date-fns/isSaturday';
26
- import isSunday from 'date-fns/isSunday';
27
- import isSameDay from 'date-fns/isSameDay';
28
- import isSameWeek from 'date-fns/isSameWeek';
29
- import isSameMonth from 'date-fns/isSameMonth';
30
- import isBefore from 'date-fns/isBefore';
31
- import isAfter from 'date-fns/isAfter';
32
- import differenceInCalendarMonths from 'date-fns/differenceInCalendarMonths';
33
- import addDays from 'date-fns/addDays';
34
- import addMonths from 'date-fns/addMonths';
35
- import setMonth from 'date-fns/setMonth';
36
- import setYear from 'date-fns/setYear';
37
- import startOfDay from 'date-fns/startOfDay';
38
- import parseISO from 'date-fns/parseISO';
39
- import format from 'date-fns/format';
19
+ import { startOfMonth } from 'date-fns/startOfMonth';
20
+ import { endOfMonth } from 'date-fns/endOfMonth';
21
+ import { lastDayOfMonth } from 'date-fns/lastDayOfMonth';
22
+ import { getDay } from 'date-fns/getDay';
23
+ import { isWithinInterval as isWithinRange } from 'date-fns/isWithinInterval';
24
+ import { isToday } from 'date-fns/isToday';
25
+ import { isSaturday } from 'date-fns/isSaturday';
26
+ import { isSunday } from 'date-fns/isSunday';
27
+ import { isSameDay } from 'date-fns/isSameDay';
28
+ import { isSameWeek } from 'date-fns/isSameWeek';
29
+ import { isSameMonth } from 'date-fns/isSameMonth';
30
+ import { isBefore } from 'date-fns/isBefore';
31
+ import { isAfter } from 'date-fns/isAfter';
32
+ import { differenceInCalendarMonths } from 'date-fns/differenceInCalendarMonths';
33
+ import { addDays } from 'date-fns/addDays';
34
+ import { addMonths } from 'date-fns/addMonths';
35
+ import { setMonth } from 'date-fns/setMonth';
36
+ import { setYear } from 'date-fns/setYear';
37
+ import { startOfDay } from 'date-fns/startOfDay';
38
+ import { parseISO } from 'date-fns/parseISO';
39
+ import { format } from 'date-fns/format';
40
40
  const ONE_MINUTE_IN_MS = 60 * 1000;
41
41
  const ONE_HOUR_IN_MS = 60 * ONE_MINUTE_IN_MS;
42
42
 
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import format from 'date-fns/format';
19
+ import { format } from 'date-fns/format';
20
20
  export const formatDateFull = date => format(date, 'EEEE, do MMMM yyyy');
21
21
  export const formatDateFullArabic = date => {
22
22
  const dateString = 'EEEE, dd، MMMM، yyyy';
@@ -18,8 +18,8 @@
18
18
 
19
19
  import { cssModules } from "../../bpk-react-utils";
20
20
  import BpkText, { TEXT_STYLES } from "../../bpk-component-text";
21
- import { CHIP_TYPES } from "./commonTypes";
22
21
  import STYLES from "./BpkSelectableChip.module.css";
22
+ import { CHIP_TYPES } from "./commonTypes";
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
24
  import { jsxs as _jsxs } from "react/jsx-runtime";
25
25
  const getClassName = cssModules(STYLES);
@@ -16,14 +16,6 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import type { ReactNode } from 'react';
20
- export type Props = {
21
- children: ReactNode;
22
- closeLabel?: string;
23
- dialogRef: (ref: HTMLElement | null | undefined) => void;
24
- id: string;
25
- onClose: () => void;
26
- title?: string;
27
- };
28
- declare const BpkBottomSheetInner: ({ children, closeLabel, dialogRef, id, onClose, title, }: Props) => JSX.Element;
29
- export default BpkBottomSheetInner;
19
+ import BpkDataTable from './src/BpkDataTable';
20
+ export { BpkDataTable };
21
+ export default BpkDataTable;
@@ -0,0 +1,22 @@
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
+ /// <reference types="react" />
20
+ import { type BpkDataTableProps } from './common-types';
21
+ declare const BpkDataTable: (props: BpkDataTableProps) => JSX.Element;
22
+ export default BpkDataTable;