@skyscanner/backpack-web 34.15.1 → 34.16.0-preminor.2

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 (157) hide show
  1. package/bpk-component-aria-live/src/BpkAriaLive.d.ts +1 -1
  2. package/bpk-component-badge/src/BpkBadge.d.ts +1 -1
  3. package/bpk-component-banner-alert/src/AnimateAndFade.d.ts +1 -1
  4. package/bpk-component-banner-alert/src/BpkBannerAlert.d.ts +1 -2
  5. package/bpk-component-banner-alert/src/BpkBannerAlertDismissable.d.ts +1 -2
  6. package/bpk-component-banner-alert/src/BpkBannerAlertExpandable.d.ts +1 -1
  7. package/bpk-component-banner-alert/src/BpkBannerAlertInner.d.ts +1 -1
  8. package/bpk-component-banner-alert/src/withBannerAlertState.d.ts +36 -44
  9. package/bpk-component-boilerplate/src/BpkBoilerplate.d.ts +1 -2
  10. package/bpk-component-bottom-sheet/src/BpkBottomSheet.d.ts +1 -1
  11. package/bpk-component-button/BpkButtonDestructive.d.ts +1 -2
  12. package/bpk-component-button/BpkButtonFeatured.d.ts +1 -2
  13. package/bpk-component-button/BpkButtonLink.d.ts +1 -2
  14. package/bpk-component-button/BpkButtonLinkOnDark.d.ts +1 -2
  15. package/bpk-component-button/BpkButtonPrimary.d.ts +1 -2
  16. package/bpk-component-button/BpkButtonPrimaryOnDark.d.ts +1 -2
  17. package/bpk-component-button/BpkButtonPrimaryOnLight.d.ts +1 -2
  18. package/bpk-component-button/BpkButtonSecondary.d.ts +1 -2
  19. package/bpk-component-button/BpkButtonSecondaryOnDark.d.ts +1 -2
  20. package/bpk-component-button/src/BpkButton.d.ts +1 -2
  21. package/bpk-component-button/src/BpkButtonBase.d.ts +2 -13
  22. package/bpk-component-button/src/BpkButtonDestructive.module.css +18 -0
  23. package/bpk-component-button/src/BpkButtonFeatured.module.css +18 -0
  24. package/bpk-component-button/src/BpkButtonLink.module.css +18 -0
  25. package/bpk-component-button/src/BpkButtonLinkOnDark.module.css +18 -0
  26. package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.css +18 -0
  27. package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.css +18 -0
  28. package/bpk-component-button/src/BpkButtonSecondary.module.css +18 -0
  29. package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.css +18 -0
  30. package/bpk-component-button/src/BpkButtonV2/BpkButton.d.ts +1 -2
  31. package/bpk-component-calendar/src/BpkCalendarContainer.d.ts +10 -14
  32. package/bpk-component-calendar/src/BpkCalendarDate.d.ts +1 -1
  33. package/bpk-component-calendar/src/BpkCalendarGrid.d.ts +5 -5
  34. package/bpk-component-calendar/src/BpkCalendarGridHeader.d.ts +1 -1
  35. package/bpk-component-calendar/src/BpkCalendarGridTransition.d.ts +2 -2
  36. package/bpk-component-calendar/src/BpkCalendarNav.d.ts +1 -1
  37. package/bpk-component-calendar/src/BpkCalendarWeek.d.ts +1 -1
  38. package/bpk-component-calendar/src/composeCalendar.d.ts +1 -1
  39. package/bpk-component-card/src/BpkCard.d.ts +1 -1
  40. package/bpk-component-card/src/BpkCardWrapper.d.ts +1 -1
  41. package/bpk-component-card/src/BpkDividedCard.d.ts +1 -1
  42. package/bpk-component-card/src/CardContext.d.ts +0 -1
  43. package/bpk-component-card-button/src/BpkSaveButton.d.ts +1 -1
  44. package/bpk-component-carousel/src/BpkCarousel.d.ts +1 -2
  45. package/bpk-component-carousel/src/BpkCarouselContainer.d.ts +1 -1
  46. package/bpk-component-carousel/src/utils.test.js +30 -0
  47. package/bpk-component-chip/src/BpkDismissibleChip.d.ts +1 -2
  48. package/bpk-component-chip/src/BpkDropdownChip.d.ts +1 -2
  49. package/bpk-component-chip/src/BpkIconChip.d.ts +1 -1
  50. package/bpk-component-chip/src/BpkSelectableChip.d.ts +1 -1
  51. package/bpk-component-chip-group/src/BpkMultiSelectChipGroup.d.ts +1 -1
  52. package/bpk-component-chip-group/src/BpkSingleSelectChipGroup.d.ts +1 -2
  53. package/bpk-component-chip-group/src/Nudger.d.ts +1 -1
  54. package/bpk-component-close-button/src/BpkCloseButton.d.ts +10 -0
  55. package/bpk-component-close-button/src/BpkCloseButton.js +21 -37
  56. package/bpk-component-datatable/src/BpkDataTable.d.ts +1 -2
  57. package/bpk-component-datatable/src/BpkDataTableHeader.d.ts +1 -2
  58. package/bpk-component-datepicker/src/BpkDatepicker.d.ts +7 -9
  59. package/bpk-component-datepicker/src/BpkDatepicker.module.css +18 -0
  60. package/bpk-component-description-list/src/BpkDescriptionDetails.d.ts +1 -1
  61. package/bpk-component-description-list/src/BpkDescriptionList.d.ts +1 -1
  62. package/bpk-component-description-list/src/BpkDescriptionTerm.d.ts +1 -1
  63. package/bpk-component-dialog/src/BpkDialog.d.ts +1 -2
  64. package/bpk-component-dialog/src/BpkDialogInner.d.ts +11 -16
  65. package/bpk-component-flare/src/__generated__/js/corner-radius.d.ts +5 -0
  66. package/bpk-component-flare/src/__generated__/js/pointer.d.ts +5 -0
  67. package/bpk-component-floating-notification/src/BpkFloatingNotification.d.ts +1 -1
  68. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.d.ts +1 -2
  69. package/bpk-component-icon/index.d.ts +2 -2
  70. package/bpk-component-icon/src/classNameModifierHOCFactory.d.ts +2 -2
  71. package/bpk-component-icon/src/withAlignment.d.ts +1 -1
  72. package/bpk-component-icon/src/withRtlSupport.d.ts +3 -4
  73. package/bpk-component-image/src/BpkBackgroundImage.d.ts +1 -1
  74. package/bpk-component-image/src/BpkImage.d.ts +1 -1
  75. package/bpk-component-image/src/withLazyLoading.d.ts +8 -11
  76. package/bpk-component-image/src/withLoadingBehavior.d.ts +5 -7
  77. package/bpk-component-info-banner/src/AnimateAndFade.d.ts +1 -1
  78. package/bpk-component-info-banner/src/BpkInfoBanner.d.ts +1 -2
  79. package/bpk-component-info-banner/src/BpkInfoBannerDismissable.d.ts +1 -2
  80. package/bpk-component-info-banner/src/BpkInfoBannerExpandable.d.ts +1 -1
  81. package/bpk-component-info-banner/src/BpkInfoBannerInner.d.ts +1 -1
  82. package/bpk-component-info-banner/src/withBannerAlertState.d.ts +36 -45
  83. package/bpk-component-input/src/BpkClearButton.module.css +18 -0
  84. package/bpk-component-input/src/BpkInput.d.ts +1 -1
  85. package/bpk-component-input/src/BpkInput.js +1 -1
  86. package/bpk-component-input/src/common-types.d.ts +1 -1
  87. package/bpk-component-input/src/withOpenEvents.d.ts +4 -6
  88. package/bpk-component-inset-banner/src/BpkInsetBanner.d.ts +1 -2
  89. package/bpk-component-journey-arrow/src/BpkJourneyArrow.d.ts +1 -2
  90. package/bpk-component-loading-button/src/BpkLoadingButton.d.ts +6 -38
  91. package/bpk-component-loading-button/src/BpkLoadingButton.js +13 -44
  92. package/bpk-component-map/src/BpkBasicMapMarker.d.ts +1 -1
  93. package/bpk-component-map/src/BpkPriceMarkerV2/BpkPriceMarker.d.ts +1 -1
  94. package/bpk-component-modal/src/BpkModal.d.ts +1 -1
  95. package/bpk-component-modal/src/BpkModalInner.d.ts +1 -1
  96. package/bpk-component-modal/src/BpkModalV2/BpkModal.d.ts +1 -1
  97. package/bpk-component-navigation-bar/src/BpkNavigationBar.d.ts +1 -1
  98. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.d.ts +1 -1
  99. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.module.css +18 -0
  100. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.d.ts +1 -1
  101. package/bpk-component-nudger/index.d.ts +1 -2
  102. package/bpk-component-nudger/index.js +1 -2
  103. package/bpk-component-nudger/src/BpkNudger.d.ts +1 -2
  104. package/bpk-component-nudger/src/BpkNudger.js +102 -20
  105. package/bpk-component-nudger/src/BpkNudger.module.css +1 -1
  106. package/bpk-component-nudger/src/common-types.d.ts +7 -5
  107. package/bpk-component-overlay/src/BpkOverlay.d.ts +1 -1
  108. package/bpk-component-popover/src/BpkPopover.d.ts +1 -1
  109. package/bpk-component-rating/src/BpkRating.d.ts +1 -1
  110. package/bpk-component-rtl-toggle/src/BpkRtlToggle.d.ts +1 -1
  111. package/bpk-component-rtl-toggle/src/updateOnDirectionChange.d.ts +11 -15
  112. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendar.d.ts +6 -9
  113. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.d.ts +1 -2
  114. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.d.ts +3 -3
  115. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.d.ts +3 -3
  116. package/bpk-component-section-header/src/BpkSectionHeader.d.ts +1 -1
  117. package/bpk-component-segmented-control/src/BpkSegmentedControl.d.ts +1 -1
  118. package/bpk-component-skeleton/src/BpkBaseSkeleton.d.d.ts +0 -1
  119. package/bpk-component-skeleton/src/BpkBaseSkeleton.d.ts +1 -2
  120. package/bpk-component-skeleton/src/BpkSkeleton.d.d.ts +0 -1
  121. package/bpk-component-skeleton/src/BpkSkeleton.d.ts +1 -2
  122. package/bpk-component-slider/src/BpkSlider.d.ts +4 -2
  123. package/bpk-component-slider/src/BpkSlider.js +51 -3
  124. package/bpk-component-snippet/index.d.ts +3 -0
  125. package/bpk-component-snippet/index.js +21 -0
  126. package/bpk-component-snippet/src/BpkSnippet.d.ts +48 -0
  127. package/bpk-component-snippet/src/BpkSnippet.js +131 -0
  128. package/bpk-component-snippet/src/BpkSnippet.module.css +18 -0
  129. package/bpk-component-spinner/src/BpkExtraLargeSpinner.d.ts +4 -15
  130. package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +5 -16
  131. package/bpk-component-spinner/src/BpkLargeSpinner.d.ts +5 -18
  132. package/bpk-component-spinner/src/BpkLargeSpinner.js +6 -19
  133. package/bpk-component-spinner/src/BpkSpinner.d.ts +5 -18
  134. package/bpk-component-spinner/src/BpkSpinner.js +6 -19
  135. package/bpk-component-split-input/src/BpkInputField.d.ts +21 -0
  136. package/bpk-component-split-input/src/BpkInputField.js +13 -15
  137. package/bpk-component-split-input/src/BpkSplitInput.d.ts +44 -0
  138. package/bpk-component-split-input/src/BpkSplitInput.js +23 -34
  139. package/bpk-component-swap-button/src/BpkSwapButton.d.ts +1 -2
  140. package/bpk-component-text/src/BpkText.d.ts +1 -1
  141. package/bpk-component-tooltip/src/BpkTooltip.d.ts +1 -1
  142. package/bpk-component-tooltip/src/BpkTooltipPortal.d.ts +1 -1
  143. package/bpk-react-utils/index.d.ts +9 -10
  144. package/bpk-react-utils/src/BpkDialogWrapper/BpkDialogWrapper.d.ts +1 -1
  145. package/bpk-react-utils/src/TransitionInitialMount.d.ts +1 -1
  146. package/bpk-react-utils/src/nativeEventHandler.d.ts +1 -1
  147. package/bpk-react-utils/src/nativeEventHandler.js +7 -5
  148. package/bpk-react-utils/src/withDefaultProps.d.ts +1 -1
  149. package/bpk-scrim-utils/index.d.ts +12 -17
  150. package/bpk-scrim-utils/src/BpkScrim.d.ts +1 -1
  151. package/bpk-scrim-utils/src/withScrim.d.ts +11 -15
  152. package/bpk-scrim-utils/src/withScrimmedPortal.d.ts +1 -1
  153. package/bpk-stylesheets/test.css +164 -0
  154. package/bpk-theming/src/BpkThemeProvider.js +19 -30
  155. package/package.json +5 -3
  156. package/bpk-component-nudger/src/BpkConfigurableNudger.d.ts +0 -27
  157. package/bpk-component-nudger/src/BpkConfigurableNudger.js +0 -96
@@ -12,5 +12,5 @@ export type Props = {
12
12
  className?: string | null;
13
13
  [rest: string]: any;
14
14
  };
15
- declare const BpkAriaLive: ({ className, politenessSetting, visible, ...rest }: Props) => JSX.Element;
15
+ declare const BpkAriaLive: ({ className, politenessSetting, visible, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
16
16
  export default BpkAriaLive;
@@ -18,5 +18,5 @@ export type Props = {
18
18
  children: string | ReactNode;
19
19
  [rest: string]: any;
20
20
  };
21
- declare const BpkBadge: ({ centered, className, docked, type, ...rest }: Props) => JSX.Element;
21
+ declare const BpkBadge: ({ centered, className, docked, type, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
22
22
  export default BpkBadge;
@@ -27,6 +27,6 @@ declare class AnimateAndFade extends Component<Props, State> {
27
27
  onAnimateHeightComplete: () => void;
28
28
  onFadeComplete: () => void;
29
29
  toggle: () => void;
30
- render(): JSX.Element | null;
30
+ render(): import("react/jsx-runtime").JSX.Element | null;
31
31
  }
32
32
  export default AnimateAndFade;
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import type { CommonProps } from './common-types';
3
2
  /**
4
3
  * @deprecated use bpk-component-info-banner instead
5
4
  * @returns {Component} a banner alert component
6
5
  */
7
- declare const BpkBannerAlert: ({ animateOnEnter, animateOnLeave, icon, show, ...rest }: CommonProps) => JSX.Element;
6
+ declare const BpkBannerAlert: ({ animateOnEnter, animateOnLeave, icon, show, ...rest }: CommonProps) => import("react/jsx-runtime").JSX.Element;
8
7
  export default BpkBannerAlert;
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import type { CommonProps, OnDismissHandler } from './common-types';
3
2
  export type Props = CommonProps & {
4
3
  dismissButtonLabel: string;
5
4
  onDismiss?: OnDismissHandler;
6
5
  };
7
- declare const BpkBannerAlertDismissable: ({ onDismiss, ...rest }: Props) => JSX.Element;
6
+ declare const BpkBannerAlertDismissable: ({ onDismiss, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
8
7
  export default BpkBannerAlertDismissable;
@@ -6,5 +6,5 @@ export type Props = CommonProps & {
6
6
  toggleButtonLabel: string;
7
7
  onExpandToggle?: OnExpandToggleHandler;
8
8
  };
9
- declare const BpkBannerAlertExpandable: ({ children, expanded, onExpandToggle, ...rest }: Props) => JSX.Element;
9
+ declare const BpkBannerAlertExpandable: ({ children, expanded, onExpandToggle, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
10
10
  export default BpkBannerAlertExpandable;
@@ -14,5 +14,5 @@ type Props = CommonProps & {
14
14
  dismissButtonLabel?: string;
15
15
  onDismiss?: OnDismissHandler;
16
16
  };
17
- declare const BpkBannerAlertInner: ({ animateOnEnter, animateOnLeave, bannerClassName, children, configuration, dismissButtonLabel, expanded, icon, message, onDismiss, onExpandToggle, show, toggleButtonLabel, type, ...rest }: Props) => JSX.Element;
17
+ declare const BpkBannerAlertInner: ({ animateOnEnter, animateOnLeave, bannerClassName, children, configuration, dismissButtonLabel, expanded, icon, message, onDismiss, onExpandToggle, show, toggleButtonLabel, type, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
18
18
  export default BpkBannerAlertInner;
@@ -1,81 +1,73 @@
1
- /// <reference types="node" />
2
1
  import type { ComponentType } from 'react';
2
+ import type { Props as BpkBannerAlertDismissableProps } from './BpkBannerAlertDismissable';
3
+ import type { Props as BpkBannerAlertExpandableProps } from './BpkBannerAlertExpandable';
3
4
  export type WithBannerAlertStateProps = {
4
5
  onHide?: () => void;
5
6
  hideAfter?: number;
6
7
  };
7
- declare const withBannerAlertState: <P extends Partial<import("./common-types").CommonProps & {
8
- dismissButtonLabel: string;
9
- onDismiss?: import("./common-types").OnDismissHandler;
10
- } & {
11
- children: import("react").ReactNode;
12
- expanded?: boolean | undefined;
13
- toggleButtonLabel: string;
14
- onExpandToggle?: import("./common-types").OnExpandToggleHandler;
15
- }>>(WrappedComponent: ComponentType<P>) => {
8
+ type BpkBannerAlertProps = Partial<BpkBannerAlertDismissableProps & BpkBannerAlertExpandableProps>;
9
+ declare const withBannerAlertState: <P extends BpkBannerAlertProps>(WrappedComponent: ComponentType<P>) => {
16
10
  new (props: P & WithBannerAlertStateProps): {
17
- hideIntervalId?: NodeJS.Timeout | null | undefined;
11
+ hideIntervalId?: ReturnType<typeof setTimeout> | null;
18
12
  componentDidMount(): void;
19
13
  componentWillUnmount(): void;
20
14
  onExpandToggle: () => void;
21
15
  onDismiss: () => void;
22
16
  onHide: () => void;
23
- render(): JSX.Element;
24
- context: any;
17
+ render(): import("react/jsx-runtime").JSX.Element;
18
+ context: unknown;
25
19
  setState<K extends keyof {
26
- expanded?: boolean | undefined;
27
- show?: boolean | undefined;
20
+ expanded?: boolean;
21
+ show?: boolean;
28
22
  }>(state: {
29
- expanded?: boolean | undefined;
30
- show?: boolean | undefined;
23
+ expanded?: boolean;
24
+ show?: boolean;
31
25
  } | ((prevState: Readonly<{
32
- expanded?: boolean | undefined;
33
- show?: boolean | undefined;
34
- }>, props: Readonly<P & WithBannerAlertStateProps>) => {
35
- expanded?: boolean | undefined;
36
- show?: boolean | undefined;
37
- } | Pick<{
38
- expanded?: boolean | undefined;
39
- show?: boolean | undefined;
40
- }, K> | null) | Pick<{
41
- expanded?: boolean | undefined;
42
- show?: boolean | undefined;
26
+ expanded?: boolean;
27
+ show?: boolean;
28
+ }>, props: Readonly<P & WithBannerAlertStateProps>) => Pick<{
29
+ expanded?: boolean;
30
+ show?: boolean;
31
+ }, K> | {
32
+ expanded?: boolean;
33
+ show?: boolean;
34
+ } | null) | Pick<{
35
+ expanded?: boolean;
36
+ show?: boolean;
43
37
  }, K> | null, callback?: (() => void) | undefined): void;
44
38
  forceUpdate(callback?: (() => void) | undefined): void;
45
- readonly props: Readonly<P & WithBannerAlertStateProps> & Readonly<{
46
- children?: import("react").ReactNode;
47
- }>;
39
+ readonly props: Readonly<P & WithBannerAlertStateProps>;
48
40
  state: Readonly<{
49
- expanded?: boolean | undefined;
50
- show?: boolean | undefined;
41
+ expanded?: boolean;
42
+ show?: boolean;
51
43
  }>;
52
44
  refs: {
53
45
  [key: string]: import("react").ReactInstance;
54
46
  };
55
47
  shouldComponentUpdate?(nextProps: Readonly<P & WithBannerAlertStateProps>, nextState: Readonly<{
56
- expanded?: boolean | undefined;
57
- show?: boolean | undefined;
48
+ expanded?: boolean;
49
+ show?: boolean;
58
50
  }>, nextContext: any): boolean;
59
51
  componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
60
52
  getSnapshotBeforeUpdate?(prevProps: Readonly<P & WithBannerAlertStateProps>, prevState: Readonly<{
61
- expanded?: boolean | undefined;
62
- show?: boolean | undefined;
63
- }>): any;
53
+ expanded?: boolean;
54
+ show?: boolean;
55
+ }>): any | null;
64
56
  componentDidUpdate?(prevProps: Readonly<P & WithBannerAlertStateProps>, prevState: Readonly<{
65
- expanded?: boolean | undefined;
66
- show?: boolean | undefined;
57
+ expanded?: boolean;
58
+ show?: boolean;
67
59
  }>, snapshot?: any): void;
68
60
  componentWillMount?(): void;
69
61
  UNSAFE_componentWillMount?(): void;
70
62
  componentWillReceiveProps?(nextProps: Readonly<P & WithBannerAlertStateProps>, nextContext: any): void;
71
63
  UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P & WithBannerAlertStateProps>, nextContext: any): void;
72
64
  componentWillUpdate?(nextProps: Readonly<P & WithBannerAlertStateProps>, nextState: Readonly<{
73
- expanded?: boolean | undefined;
74
- show?: boolean | undefined;
65
+ expanded?: boolean;
66
+ show?: boolean;
75
67
  }>, nextContext: any): void;
76
68
  UNSAFE_componentWillUpdate?(nextProps: Readonly<P & WithBannerAlertStateProps>, nextState: Readonly<{
77
- expanded?: boolean | undefined;
78
- show?: boolean | undefined;
69
+ expanded?: boolean;
70
+ show?: boolean;
79
71
  }>, nextContext: any): void;
80
72
  };
81
73
  displayName: string;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  export type Props = {
3
2
  [rest: string]: any;
4
3
  };
5
- declare const BpkBoilerplate: ({ ...rest }: Props) => JSX.Element;
4
+ declare const BpkBoilerplate: ({ ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
6
5
  export default BpkBoilerplate;
@@ -19,5 +19,5 @@ export type Props = CommonProps & ({
19
19
  } | {
20
20
  ariaLabel: string;
21
21
  });
22
- declare const BpkBottomSheet: ({ actionText, children, closeLabel, closeOnEscPressed, closeOnScrimClick, id, isOpen, onAction, onClose, title, wide, ...ariaProps }: Props) => JSX.Element;
22
+ declare const BpkBottomSheet: ({ actionText, children, closeLabel, closeOnEscPressed, closeOnScrimClick, id, isOpen, onAction, onClose, title, wide, ...ariaProps }: Props) => import("react/jsx-runtime").JSX.Element;
23
23
  export default BpkBottomSheet;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type Props } from './src/BpkButton';
3
- declare const BpkButtonDestructive: (props: Props) => JSX.Element;
2
+ declare const BpkButtonDestructive: (props: Props) => import("react/jsx-runtime").JSX.Element;
4
3
  export default BpkButtonDestructive;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type Props } from './src/BpkButton';
3
- declare const BpkButtonFeatured: (props: Props) => JSX.Element;
2
+ declare const BpkButtonFeatured: (props: Props) => import("react/jsx-runtime").JSX.Element;
4
3
  export default BpkButtonFeatured;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type Props } from './src/BpkButton';
3
- declare const BpkButtonLink: (props: Props) => JSX.Element;
2
+ declare const BpkButtonLink: (props: Props) => import("react/jsx-runtime").JSX.Element;
4
3
  export default BpkButtonLink;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type Props } from './src/BpkButton';
3
- declare const BpkButtonLinkOnDark: (props: Props) => JSX.Element;
2
+ declare const BpkButtonLinkOnDark: (props: Props) => import("react/jsx-runtime").JSX.Element;
4
3
  export default BpkButtonLinkOnDark;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type Props } from './src/BpkButton';
3
- declare const BpkButtonPrimary: (props: Props) => JSX.Element;
2
+ declare const BpkButtonPrimary: (props: Props) => import("react/jsx-runtime").JSX.Element;
4
3
  export default BpkButtonPrimary;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type Props } from './src/BpkButton';
3
- declare const BpkButtonPrimaryOnDark: (props: Props) => JSX.Element;
2
+ declare const BpkButtonPrimaryOnDark: (props: Props) => import("react/jsx-runtime").JSX.Element;
4
3
  export default BpkButtonPrimaryOnDark;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type Props } from './src/BpkButton';
3
- declare const BpkButtonPrimaryOnLight: (props: Props) => JSX.Element;
2
+ declare const BpkButtonPrimaryOnLight: (props: Props) => import("react/jsx-runtime").JSX.Element;
4
3
  export default BpkButtonPrimaryOnLight;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type Props } from './src/BpkButton';
3
- declare const BpkButtonSecondary: (props: Props) => JSX.Element;
2
+ declare const BpkButtonSecondary: (props: Props) => import("react/jsx-runtime").JSX.Element;
4
3
  export default BpkButtonSecondary;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type Props } from './src/BpkButton';
3
- declare const BpkButtonSecondaryOnDark: (props: Props) => JSX.Element;
2
+ declare const BpkButtonSecondaryOnDark: (props: Props) => import("react/jsx-runtime").JSX.Element;
4
3
  export default BpkButtonSecondaryOnDark;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import PropTypes from 'prop-types';
3
2
  import { type Props as CommonProps } from './common-types';
4
3
  export type Props = CommonProps & {
@@ -12,7 +11,7 @@ export type Props = CommonProps & {
12
11
  linkOnDark?: boolean;
13
12
  };
14
13
  declare const BpkButton: {
15
- (props: Props): JSX.Element;
14
+ (props: Props): import("react/jsx-runtime").JSX.Element;
16
15
  defaultProps: {
17
16
  primaryOnDark: boolean;
18
17
  primaryOnLight: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type Props } from './common-types';
3
2
  export declare const BUTTON_TYPES: {
4
3
  readonly primary: "primary";
@@ -14,18 +13,8 @@ export declare const BUTTON_TYPES: {
14
13
  type ValueOf<T> = T[keyof T];
15
14
  declare const BpkButtonBase: {
16
15
  (props: Props & {
17
- type?: ValueOf<{
18
- readonly primary: "primary";
19
- readonly primaryOnDark: "primary-on-dark";
20
- readonly primaryOnLight: "primary-on-light";
21
- readonly secondary: "secondary";
22
- readonly secondaryOnDark: "secondary-on-dark";
23
- readonly destructive: "destructive";
24
- readonly featured: "featured";
25
- readonly link: "link";
26
- readonly linkOnDark: "link-on-dark";
27
- }> | undefined;
28
- }): JSX.Element;
16
+ type?: ValueOf<typeof BUTTON_TYPES>;
17
+ }): import("react/jsx-runtime").JSX.Element;
29
18
  propTypes: {
30
19
  children: import("prop-types").Validator<NonNullable<import("prop-types").ReactNodeLike>>;
31
20
  href: import("prop-types").Requireable<string>;
@@ -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-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)}
@@ -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-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)}
@@ -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-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}
@@ -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-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))}
@@ -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-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)}
@@ -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-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)}
@@ -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-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)}
@@ -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-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)}
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import type { Props } from './common-types';
3
- export declare const BpkButtonV2: ({ blank, children, className, disabled, fullWidth, href, iconOnly, onClick, rel: propRel, size, submit, type, ...rest }: Props) => JSX.Element;
2
+ export declare const BpkButtonV2: ({ blank, children, className, disabled, fullWidth, href, iconOnly, onClick, rel: propRel, size, submit, type, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
@@ -55,13 +55,11 @@ declare const withCalendarState: <P extends object>(Calendar: ComponentType<P>)
55
55
  source: string;
56
56
  }) => void;
57
57
  handleDateKeyDown: (event: KeyboardEvent) => void;
58
- render(): JSX.Element;
59
- context: any;
60
- setState<K extends keyof State>(state: State | ((prevState: Readonly<State>, props: Readonly<CalendarProps<P>>) => State | Pick<State, K> | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
58
+ render(): import("react/jsx-runtime").JSX.Element;
59
+ context: unknown;
60
+ setState<K extends keyof State>(state: State | ((prevState: Readonly<State>, props: Readonly<CalendarProps<P>>) => Pick<State, K> | State | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
61
61
  forceUpdate(callback?: (() => void) | undefined): void;
62
- readonly props: Readonly<CalendarProps<P>> & Readonly<{
63
- children?: import("react").ReactNode;
64
- }>;
62
+ readonly props: Readonly<CalendarProps<P>>;
65
63
  state: Readonly<State>;
66
64
  refs: {
67
65
  [key: string]: import("react").ReactInstance;
@@ -70,7 +68,7 @@ declare const withCalendarState: <P extends object>(Calendar: ComponentType<P>)
70
68
  shouldComponentUpdate?(nextProps: Readonly<CalendarProps<P>>, nextState: Readonly<State>, nextContext: any): boolean;
71
69
  componentWillUnmount?(): void;
72
70
  componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
73
- getSnapshotBeforeUpdate?(prevProps: Readonly<CalendarProps<P>>, prevState: Readonly<State>): any;
71
+ getSnapshotBeforeUpdate?(prevProps: Readonly<CalendarProps<P>>, prevState: Readonly<State>): any | null;
74
72
  componentDidUpdate?(prevProps: Readonly<CalendarProps<P>>, prevState: Readonly<State>, snapshot?: any): void;
75
73
  componentWillMount?(): void;
76
74
  UNSAFE_componentWillMount?(): void;
@@ -107,13 +105,11 @@ declare const _default: {
107
105
  source: string;
108
106
  }) => void;
109
107
  handleDateKeyDown: (event: KeyboardEvent) => void;
110
- render(): JSX.Element;
111
- context: any;
112
- setState<K extends keyof State>(state: State | ((prevState: Readonly<State>, props: Readonly<CalendarProps<import("./composeCalendar").Props>>) => State | Pick<State, K> | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
108
+ render(): import("react/jsx-runtime").JSX.Element;
109
+ context: unknown;
110
+ setState<K extends keyof State>(state: State | ((prevState: Readonly<State>, props: Readonly<CalendarProps<import("./composeCalendar").Props>>) => Pick<State, K> | State | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
113
111
  forceUpdate(callback?: (() => void) | undefined): void;
114
- readonly props: Readonly<CalendarProps<import("./composeCalendar").Props>> & Readonly<{
115
- children?: import("react").ReactNode;
116
- }>;
112
+ readonly props: Readonly<CalendarProps<import("./composeCalendar").Props>>;
117
113
  state: Readonly<State>;
118
114
  refs: {
119
115
  [key: string]: import("react").ReactInstance;
@@ -122,7 +118,7 @@ declare const _default: {
122
118
  shouldComponentUpdate?(nextProps: Readonly<CalendarProps<import("./composeCalendar").Props>>, nextState: Readonly<State>, nextContext: any): boolean;
123
119
  componentWillUnmount?(): void;
124
120
  componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
125
- getSnapshotBeforeUpdate?(prevProps: Readonly<CalendarProps<import("./composeCalendar").Props>>, prevState: Readonly<State>): any;
121
+ getSnapshotBeforeUpdate?(prevProps: Readonly<CalendarProps<import("./composeCalendar").Props>>, prevState: Readonly<State>): any | null;
126
122
  componentDidUpdate?(prevProps: Readonly<CalendarProps<import("./composeCalendar").Props>>, prevState: Readonly<State>, snapshot?: any): void;
127
123
  componentWillMount?(): void;
128
124
  UNSAFE_componentWillMount?(): void;
@@ -46,6 +46,6 @@ declare class BpkCalendarDate extends PureComponent<Props> {
46
46
  componentDidMount(): void;
47
47
  componentDidUpdate(prevProps: Props): void;
48
48
  button: HTMLButtonElement | null;
49
- render(): JSX.Element;
49
+ render(): import("react/jsx-runtime").JSX.Element;
50
50
  }
51
51
  export default BpkCalendarDate;
@@ -40,7 +40,7 @@ declare class BpkCalendarGrid extends Component<Props, State> {
40
40
  static defaultProps: DefaultProps;
41
41
  constructor(props: Props);
42
42
  UNSAFE_componentWillReceiveProps(nextProps: Props): void;
43
- render(): JSX.Element;
43
+ render(): import("react/jsx-runtime").JSX.Element;
44
44
  }
45
45
  declare const BpkCalendarGridWithTransition: typeof BpkCalendarGrid | ((props: Omit<DefaultProps & {
46
46
  DateComponent: ElementType;
@@ -57,9 +57,9 @@ declare const BpkCalendarGridWithTransition: typeof BpkCalendarGrid | ((props: O
57
57
  TransitionComponent: ElementType;
58
58
  } & {
59
59
  [rest: string]: any;
60
- className?: string | null | undefined;
61
- month?: Date | undefined;
62
- focusedDate?: Date | null | undefined;
63
- }, "TransitionComponent">) => JSX.Element);
60
+ className?: string | null;
61
+ month?: Date;
62
+ focusedDate?: Date | null;
63
+ }, "TransitionComponent">) => import("react/jsx-runtime").JSX.Element);
64
64
  export default BpkCalendarGrid;
65
65
  export { BpkCalendarGridWithTransition };
@@ -22,6 +22,6 @@ declare class BpkCalendarGridHeader extends PureComponent<Props> {
22
22
  className: null;
23
23
  weekDayKey: string;
24
24
  };
25
- render(): JSX.Element;
25
+ render(): import("react/jsx-runtime").JSX.Element;
26
26
  }
27
27
  export default BpkCalendarGridHeader;
@@ -26,8 +26,8 @@ declare class BpkCalendarGridTransition extends Component<Props, State> {
26
26
  UNSAFE_componentWillReceiveProps({ month: nextMonth }: Props): void;
27
27
  componentDidUpdate(): void;
28
28
  onMonthTransitionEnd(): void;
29
- render(): JSX.Element;
29
+ render(): import("react/jsx-runtime").JSX.Element;
30
30
  }
31
- declare const addCalendarGridTransition: <P extends {}>(TransitionComponent: ComponentType<P>) => (props: Omit<P & Props, keyof InjectedCalendarGridTransitionProps>) => JSX.Element;
31
+ declare const addCalendarGridTransition: <P extends {}>(TransitionComponent: ComponentType<P>) => (props: Omit<P & Props, keyof InjectedCalendarGridTransitionProps>) => import("react/jsx-runtime").JSX.Element;
32
32
  export default BpkCalendarGridTransition;
33
33
  export { addCalendarGridTransition };
@@ -19,5 +19,5 @@ type Props = {
19
19
  }) => void;
20
20
  disabled?: boolean;
21
21
  };
22
- declare const BpkCalendarNav: ({ changeMonthLabel, disabled, formatMonth, id, maxDate, minDate, month, nextMonthLabel, onMonthChange, previousMonthLabel, }: Props) => JSX.Element;
22
+ declare const BpkCalendarNav: ({ changeMonthLabel, disabled, formatMonth, id, maxDate, minDate, month, nextMonthLabel, onMonthChange, previousMonthLabel, }: Props) => import("react/jsx-runtime").JSX.Element;
23
23
  export default BpkCalendarNav;
@@ -28,6 +28,6 @@ type DefaultProps = {
28
28
  declare class BpkCalendarWeek extends Component<Props> {
29
29
  static defaultProps: DefaultProps;
30
30
  shouldComponentUpdate(nextProps: Props): boolean;
31
- render(): JSX.Element | null;
31
+ render(): import("react/jsx-runtime").JSX.Element | null;
32
32
  }
33
33
  export default BpkCalendarWeek;