@skyscanner/backpack-web 34.16.0-preminor.1 → 34.16.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 (132) 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 -1
  5. package/bpk-component-banner-alert/src/BpkBannerAlertDismissable.d.ts +1 -1
  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 +5 -3
  9. package/bpk-component-boilerplate/src/BpkBoilerplate.d.ts +1 -1
  10. package/bpk-component-bottom-sheet/src/BpkBottomSheet.d.ts +1 -1
  11. package/bpk-component-button/BpkButtonDestructive.d.ts +1 -1
  12. package/bpk-component-button/BpkButtonFeatured.d.ts +1 -1
  13. package/bpk-component-button/BpkButtonLink.d.ts +1 -1
  14. package/bpk-component-button/BpkButtonLinkOnDark.d.ts +1 -1
  15. package/bpk-component-button/BpkButtonPrimary.d.ts +1 -1
  16. package/bpk-component-button/BpkButtonPrimaryOnDark.d.ts +1 -1
  17. package/bpk-component-button/BpkButtonPrimaryOnLight.d.ts +1 -1
  18. package/bpk-component-button/BpkButtonSecondary.d.ts +1 -1
  19. package/bpk-component-button/BpkButtonSecondaryOnDark.d.ts +1 -1
  20. package/bpk-component-button/src/BpkButton.d.ts +1 -1
  21. package/bpk-component-button/src/BpkButtonBase.d.ts +1 -1
  22. package/bpk-component-button/src/BpkButtonV2/BpkButton.d.ts +1 -1
  23. package/bpk-component-calendar/src/BpkCalendarContainer.d.ts +10 -6
  24. package/bpk-component-calendar/src/BpkCalendarContainer.js +0 -1
  25. package/bpk-component-calendar/src/BpkCalendarDate.d.ts +1 -1
  26. package/bpk-component-calendar/src/BpkCalendarGrid.d.ts +2 -2
  27. package/bpk-component-calendar/src/BpkCalendarGridHeader.d.ts +1 -1
  28. package/bpk-component-calendar/src/BpkCalendarGridTransition.d.ts +2 -2
  29. package/bpk-component-calendar/src/BpkCalendarNav.d.ts +1 -1
  30. package/bpk-component-calendar/src/BpkCalendarWeek.d.ts +1 -1
  31. package/bpk-component-calendar/src/composeCalendar.d.ts +1 -1
  32. package/bpk-component-card/src/BpkCard.d.ts +1 -1
  33. package/bpk-component-card/src/BpkCardWrapper.d.ts +1 -1
  34. package/bpk-component-card/src/BpkDividedCard.d.ts +1 -1
  35. package/bpk-component-card-button/src/BpkSaveButton.d.ts +1 -1
  36. package/bpk-component-carousel/src/BpkCarousel.d.ts +1 -1
  37. package/bpk-component-carousel/src/BpkCarouselContainer.d.ts +1 -1
  38. package/bpk-component-chip/src/BpkDismissibleChip.d.ts +1 -1
  39. package/bpk-component-chip/src/BpkDropdownChip.d.ts +1 -1
  40. package/bpk-component-chip/src/BpkIconChip.d.ts +1 -1
  41. package/bpk-component-chip/src/BpkSelectableChip.d.ts +1 -1
  42. package/bpk-component-chip-group/src/BpkMultiSelectChipGroup.d.ts +1 -1
  43. package/bpk-component-chip-group/src/BpkSingleSelectChipGroup.d.ts +1 -1
  44. package/bpk-component-chip-group/src/Nudger.d.ts +1 -1
  45. package/bpk-component-datatable/src/BpkDataTable.d.ts +1 -1
  46. package/bpk-component-datatable/src/BpkDataTableHeader.d.ts +1 -1
  47. package/bpk-component-datepicker/src/BpkDatepicker.d.ts +5 -3
  48. package/bpk-component-description-list/src/BpkDescriptionDetails.d.ts +1 -1
  49. package/bpk-component-description-list/src/BpkDescriptionList.d.ts +1 -1
  50. package/bpk-component-description-list/src/BpkDescriptionTerm.d.ts +1 -1
  51. package/bpk-component-dialog/src/BpkDialog.d.ts +1 -1
  52. package/bpk-component-dialog/src/BpkDialogInner.d.ts +11 -7
  53. package/bpk-component-floating-notification/src/BpkFloatingNotification.d.ts +1 -1
  54. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.d.ts +1 -1
  55. package/bpk-component-icon/index.d.ts +2 -2
  56. package/bpk-component-icon/src/classNameModifierHOCFactory.d.ts +1 -1
  57. package/bpk-component-icon/src/withAlignment.d.ts +1 -1
  58. package/bpk-component-icon/src/withRtlSupport.d.ts +1 -1
  59. package/bpk-component-image/src/BpkBackgroundImage.d.ts +1 -1
  60. package/bpk-component-image/src/BpkImage.d.ts +1 -1
  61. package/bpk-component-image/src/withLazyLoading.d.ts +5 -3
  62. package/bpk-component-image/src/withLoadingBehavior.d.ts +5 -3
  63. package/bpk-component-info-banner/src/AnimateAndFade.d.ts +1 -1
  64. package/bpk-component-info-banner/src/BpkInfoBanner.d.ts +1 -1
  65. package/bpk-component-info-banner/src/BpkInfoBannerDismissable.d.ts +1 -1
  66. package/bpk-component-info-banner/src/BpkInfoBannerExpandable.d.ts +1 -1
  67. package/bpk-component-info-banner/src/BpkInfoBannerInner.d.ts +1 -1
  68. package/bpk-component-info-banner/src/withBannerAlertState.d.ts +5 -3
  69. package/bpk-component-input/src/BpkInput.d.ts +1 -1
  70. package/bpk-component-input/src/withOpenEvents.d.ts +4 -2
  71. package/bpk-component-inset-banner/src/BpkInsetBanner.d.ts +1 -1
  72. package/bpk-component-journey-arrow/src/BpkJourneyArrow.d.ts +1 -1
  73. package/bpk-component-loading-button/src/BpkLoadingButton.d.ts +1 -1
  74. package/bpk-component-map/src/BpkBasicMapMarker.d.ts +1 -1
  75. package/bpk-component-map/src/BpkPriceMarkerV2/BpkPriceMarker.d.ts +1 -1
  76. package/bpk-component-modal/src/BpkModal.d.ts +1 -1
  77. package/bpk-component-modal/src/BpkModalInner.d.ts +1 -1
  78. package/bpk-component-modal/src/BpkModalV2/BpkModal.d.ts +1 -1
  79. package/bpk-component-navigation-bar/src/BpkNavigationBar.d.ts +1 -1
  80. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.d.ts +1 -1
  81. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.d.ts +1 -1
  82. package/bpk-component-nudger/src/BpkConfigurableNudger.d.ts +1 -1
  83. package/bpk-component-nudger/src/BpkNudger.d.ts +1 -1
  84. package/bpk-component-overlay/src/BpkOverlay.d.ts +1 -1
  85. package/bpk-component-popover/src/BpkPopover.d.ts +1 -1
  86. package/bpk-component-rating/src/BpkRating.d.ts +1 -1
  87. package/bpk-component-rtl-toggle/src/BpkRtlToggle.d.ts +1 -1
  88. package/bpk-component-rtl-toggle/src/updateOnDirectionChange.d.ts +11 -7
  89. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendar.d.ts +4 -2
  90. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.d.ts +1 -1
  91. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.d.ts +3 -3
  92. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.d.ts +3 -3
  93. package/bpk-component-section-header/src/BpkSectionHeader.d.ts +1 -1
  94. package/bpk-component-segmented-control/src/BpkSegmentedControl.d.ts +1 -1
  95. package/bpk-component-skeleton/src/BpkBaseSkeleton.d.ts +1 -1
  96. package/bpk-component-skeleton/src/BpkSkeleton.d.ts +1 -1
  97. package/bpk-component-slider/src/BpkSlider.d.ts +1 -1
  98. package/bpk-component-snippet/index.d.ts +3 -0
  99. package/{bpk-component-datepicker/src/BpkDatepicker.module.css → bpk-component-snippet/index.js} +8 -5
  100. package/bpk-component-snippet/src/BpkSnippet.d.ts +48 -0
  101. package/bpk-component-snippet/src/BpkSnippet.js +131 -0
  102. package/bpk-component-snippet/src/BpkSnippet.module.css +18 -0
  103. package/bpk-component-spinner/src/BpkExtraLargeSpinner.d.ts +1 -1
  104. package/bpk-component-spinner/src/BpkLargeSpinner.d.ts +1 -1
  105. package/bpk-component-spinner/src/BpkSpinner.d.ts +1 -1
  106. package/bpk-component-swap-button/src/BpkSwapButton.d.ts +1 -1
  107. package/bpk-component-text/src/BpkText.d.ts +1 -1
  108. package/bpk-component-tooltip/src/BpkTooltip.d.ts +1 -1
  109. package/bpk-component-tooltip/src/BpkTooltipPortal.d.ts +1 -1
  110. package/bpk-react-utils/index.d.ts +3 -3
  111. package/bpk-react-utils/src/BpkDialogWrapper/BpkDialogWrapper.d.ts +1 -1
  112. package/bpk-react-utils/src/TransitionInitialMount.d.ts +1 -1
  113. package/bpk-react-utils/src/withDefaultProps.d.ts +1 -1
  114. package/bpk-scrim-utils/index.d.ts +11 -7
  115. package/bpk-scrim-utils/src/BpkScrim.d.ts +1 -1
  116. package/bpk-scrim-utils/src/withScrim.d.ts +11 -7
  117. package/bpk-scrim-utils/src/withScrimmedPortal.d.ts +1 -1
  118. package/package.json +3 -3
  119. package/bpk-component-button/src/BpkButtonDestructive.module.css +0 -18
  120. package/bpk-component-button/src/BpkButtonFeatured.module.css +0 -18
  121. package/bpk-component-button/src/BpkButtonLink.module.css +0 -18
  122. package/bpk-component-button/src/BpkButtonLinkOnDark.module.css +0 -18
  123. package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.css +0 -18
  124. package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.css +0 -18
  125. package/bpk-component-button/src/BpkButtonSecondary.module.css +0 -18
  126. package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.css +0 -18
  127. package/bpk-component-carousel/src/utils.test.js +0 -12
  128. package/bpk-component-flare/src/__generated__/js/corner-radius.d.ts +0 -5
  129. package/bpk-component-flare/src/__generated__/js/pointer.d.ts +0 -5
  130. package/bpk-component-input/src/BpkClearButton.module.css +0 -18
  131. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.module.css +0 -18
  132. package/bpk-stylesheets/test.css +0 -164
@@ -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) => import("react/jsx-runtime").JSX.Element;
15
+ declare const BpkAriaLive: ({ className, politenessSetting, visible, ...rest }: Props) => 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) => import("react/jsx-runtime").JSX.Element;
21
+ declare const BpkBadge: ({ centered, className, docked, type, ...rest }: Props) => 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(): import("react/jsx-runtime").JSX.Element | null;
30
+ render(): JSX.Element | null;
31
31
  }
32
32
  export default AnimateAndFade;
@@ -3,5 +3,5 @@ import type { CommonProps } from './common-types';
3
3
  * @deprecated use bpk-component-info-banner instead
4
4
  * @returns {Component} a banner alert component
5
5
  */
6
- declare const BpkBannerAlert: ({ animateOnEnter, animateOnLeave, icon, show, ...rest }: CommonProps) => import("react/jsx-runtime").JSX.Element;
6
+ declare const BpkBannerAlert: ({ animateOnEnter, animateOnLeave, icon, show, ...rest }: CommonProps) => JSX.Element;
7
7
  export default BpkBannerAlert;
@@ -3,5 +3,5 @@ export type Props = CommonProps & {
3
3
  dismissButtonLabel: string;
4
4
  onDismiss?: OnDismissHandler;
5
5
  };
6
- declare const BpkBannerAlertDismissable: ({ onDismiss, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ declare const BpkBannerAlertDismissable: ({ onDismiss, ...rest }: Props) => JSX.Element;
7
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) => import("react/jsx-runtime").JSX.Element;
9
+ declare const BpkBannerAlertExpandable: ({ children, expanded, onExpandToggle, ...rest }: Props) => 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) => import("react/jsx-runtime").JSX.Element;
17
+ declare const BpkBannerAlertInner: ({ animateOnEnter, animateOnLeave, bannerClassName, children, configuration, dismissButtonLabel, expanded, icon, message, onDismiss, onExpandToggle, show, toggleButtonLabel, type, ...rest }: Props) => JSX.Element;
18
18
  export default BpkBannerAlertInner;
@@ -14,8 +14,8 @@ declare const withBannerAlertState: <P extends BpkBannerAlertProps>(WrappedCompo
14
14
  onExpandToggle: () => void;
15
15
  onDismiss: () => void;
16
16
  onHide: () => void;
17
- render(): import("react/jsx-runtime").JSX.Element;
18
- context: unknown;
17
+ render(): JSX.Element;
18
+ context: any;
19
19
  setState<K extends keyof {
20
20
  expanded?: boolean;
21
21
  show?: boolean;
@@ -36,7 +36,9 @@ declare const withBannerAlertState: <P extends BpkBannerAlertProps>(WrappedCompo
36
36
  show?: boolean;
37
37
  }, K> | null, callback?: (() => void) | undefined): void;
38
38
  forceUpdate(callback?: (() => void) | undefined): void;
39
- readonly props: Readonly<P & WithBannerAlertStateProps>;
39
+ readonly props: Readonly<P & WithBannerAlertStateProps> & Readonly<{
40
+ children?: import("react").ReactNode | undefined;
41
+ }>;
40
42
  state: Readonly<{
41
43
  expanded?: boolean;
42
44
  show?: boolean;
@@ -1,5 +1,5 @@
1
1
  export type Props = {
2
2
  [rest: string]: any;
3
3
  };
4
- declare const BpkBoilerplate: ({ ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
4
+ declare const BpkBoilerplate: ({ ...rest }: Props) => JSX.Element;
5
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) => import("react/jsx-runtime").JSX.Element;
22
+ declare const BpkBottomSheet: ({ actionText, children, closeLabel, closeOnEscPressed, closeOnScrimClick, id, isOpen, onAction, onClose, title, wide, ...ariaProps }: Props) => JSX.Element;
23
23
  export default BpkBottomSheet;
@@ -1,3 +1,3 @@
1
1
  import { type Props } from './src/BpkButton';
2
- declare const BpkButtonDestructive: (props: Props) => import("react/jsx-runtime").JSX.Element;
2
+ declare const BpkButtonDestructive: (props: Props) => JSX.Element;
3
3
  export default BpkButtonDestructive;
@@ -1,3 +1,3 @@
1
1
  import { type Props } from './src/BpkButton';
2
- declare const BpkButtonFeatured: (props: Props) => import("react/jsx-runtime").JSX.Element;
2
+ declare const BpkButtonFeatured: (props: Props) => JSX.Element;
3
3
  export default BpkButtonFeatured;
@@ -1,3 +1,3 @@
1
1
  import { type Props } from './src/BpkButton';
2
- declare const BpkButtonLink: (props: Props) => import("react/jsx-runtime").JSX.Element;
2
+ declare const BpkButtonLink: (props: Props) => JSX.Element;
3
3
  export default BpkButtonLink;
@@ -1,3 +1,3 @@
1
1
  import { type Props } from './src/BpkButton';
2
- declare const BpkButtonLinkOnDark: (props: Props) => import("react/jsx-runtime").JSX.Element;
2
+ declare const BpkButtonLinkOnDark: (props: Props) => JSX.Element;
3
3
  export default BpkButtonLinkOnDark;
@@ -1,3 +1,3 @@
1
1
  import { type Props } from './src/BpkButton';
2
- declare const BpkButtonPrimary: (props: Props) => import("react/jsx-runtime").JSX.Element;
2
+ declare const BpkButtonPrimary: (props: Props) => JSX.Element;
3
3
  export default BpkButtonPrimary;
@@ -1,3 +1,3 @@
1
1
  import { type Props } from './src/BpkButton';
2
- declare const BpkButtonPrimaryOnDark: (props: Props) => import("react/jsx-runtime").JSX.Element;
2
+ declare const BpkButtonPrimaryOnDark: (props: Props) => JSX.Element;
3
3
  export default BpkButtonPrimaryOnDark;
@@ -1,3 +1,3 @@
1
1
  import { type Props } from './src/BpkButton';
2
- declare const BpkButtonPrimaryOnLight: (props: Props) => import("react/jsx-runtime").JSX.Element;
2
+ declare const BpkButtonPrimaryOnLight: (props: Props) => JSX.Element;
3
3
  export default BpkButtonPrimaryOnLight;
@@ -1,3 +1,3 @@
1
1
  import { type Props } from './src/BpkButton';
2
- declare const BpkButtonSecondary: (props: Props) => import("react/jsx-runtime").JSX.Element;
2
+ declare const BpkButtonSecondary: (props: Props) => JSX.Element;
3
3
  export default BpkButtonSecondary;
@@ -1,3 +1,3 @@
1
1
  import { type Props } from './src/BpkButton';
2
- declare const BpkButtonSecondaryOnDark: (props: Props) => import("react/jsx-runtime").JSX.Element;
2
+ declare const BpkButtonSecondaryOnDark: (props: Props) => JSX.Element;
3
3
  export default BpkButtonSecondaryOnDark;
@@ -11,7 +11,7 @@ export type Props = CommonProps & {
11
11
  linkOnDark?: boolean;
12
12
  };
13
13
  declare const BpkButton: {
14
- (props: Props): import("react/jsx-runtime").JSX.Element;
14
+ (props: Props): JSX.Element;
15
15
  defaultProps: {
16
16
  primaryOnDark: boolean;
17
17
  primaryOnLight: boolean;
@@ -14,7 +14,7 @@ type ValueOf<T> = T[keyof T];
14
14
  declare const BpkButtonBase: {
15
15
  (props: Props & {
16
16
  type?: ValueOf<typeof BUTTON_TYPES>;
17
- }): import("react/jsx-runtime").JSX.Element;
17
+ }): JSX.Element;
18
18
  propTypes: {
19
19
  children: import("prop-types").Validator<NonNullable<import("prop-types").ReactNodeLike>>;
20
20
  href: import("prop-types").Requireable<string>;
@@ -1,2 +1,2 @@
1
1
  import type { Props } from './common-types';
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;
2
+ export declare const BpkButtonV2: ({ blank, children, className, disabled, fullWidth, href, iconOnly, onClick, rel: propRel, size, submit, type, ...rest }: Props) => JSX.Element;
@@ -55,11 +55,13 @@ declare const withCalendarState: <P extends object>(Calendar: ComponentType<P>)
55
55
  source: string;
56
56
  }) => void;
57
57
  handleDateKeyDown: (event: KeyboardEvent) => void;
58
- render(): import("react/jsx-runtime").JSX.Element;
59
- context: unknown;
58
+ render(): JSX.Element;
59
+ context: any;
60
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>>;
62
+ readonly props: Readonly<CalendarProps<P>> & Readonly<{
63
+ children?: import("react").ReactNode | undefined;
64
+ }>;
63
65
  state: Readonly<State>;
64
66
  refs: {
65
67
  [key: string]: import("react").ReactInstance;
@@ -105,11 +107,13 @@ declare const _default: {
105
107
  source: string;
106
108
  }) => void;
107
109
  handleDateKeyDown: (event: KeyboardEvent) => void;
108
- render(): import("react/jsx-runtime").JSX.Element;
109
- context: unknown;
110
+ render(): JSX.Element;
111
+ context: any;
110
112
  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;
111
113
  forceUpdate(callback?: (() => void) | undefined): void;
112
- readonly props: Readonly<CalendarProps<import("./composeCalendar").Props>>;
114
+ readonly props: Readonly<CalendarProps<import("./composeCalendar").Props>> & Readonly<{
115
+ children?: import("react").ReactNode | undefined;
116
+ }>;
113
117
  state: Readonly<State>;
114
118
  refs: {
115
119
  [key: string]: import("react").ReactInstance;
@@ -119,7 +119,6 @@ const withCalendarState = Calendar => {
119
119
  const rawNextSelectedDate = getRawSelectedDate(nextProps.selectionConfiguration);
120
120
  const minDate = startOfDay(nextProps.minDate);
121
121
  const maxDate = startOfDay(nextProps.maxDate);
122
- // @ts-ignore
123
122
  if (focusedDateHasChanged(this.props, nextProps)) {
124
123
  this.setState({
125
124
  focusedDate: dateToBoundaries(rawNextSelectedDate[0], minDate, maxDate)
@@ -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(): import("react/jsx-runtime").JSX.Element;
49
+ render(): 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(): import("react/jsx-runtime").JSX.Element;
43
+ render(): JSX.Element;
44
44
  }
45
45
  declare const BpkCalendarGridWithTransition: typeof BpkCalendarGrid | ((props: Omit<DefaultProps & {
46
46
  DateComponent: ElementType;
@@ -60,6 +60,6 @@ declare const BpkCalendarGridWithTransition: typeof BpkCalendarGrid | ((props: O
60
60
  className?: string | null;
61
61
  month?: Date;
62
62
  focusedDate?: Date | null;
63
- }, "TransitionComponent">) => import("react/jsx-runtime").JSX.Element);
63
+ }, "TransitionComponent">) => 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(): import("react/jsx-runtime").JSX.Element;
25
+ render(): 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(): import("react/jsx-runtime").JSX.Element;
29
+ render(): JSX.Element;
30
30
  }
31
- declare const addCalendarGridTransition: <P extends {}>(TransitionComponent: ComponentType<P>) => (props: Omit<P & Props, keyof InjectedCalendarGridTransitionProps>) => import("react/jsx-runtime").JSX.Element;
31
+ declare const addCalendarGridTransition: <P extends {}>(TransitionComponent: ComponentType<P>) => (props: Omit<P & Props, keyof InjectedCalendarGridTransitionProps>) => 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) => import("react/jsx-runtime").JSX.Element;
22
+ declare const BpkCalendarNav: ({ changeMonthLabel, disabled, formatMonth, id, maxDate, minDate, month, nextMonthLabel, onMonthChange, previousMonthLabel, }: Props) => 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(): import("react/jsx-runtime").JSX.Element | null;
31
+ render(): JSX.Element | null;
32
32
  }
33
33
  export default BpkCalendarWeek;
@@ -78,5 +78,5 @@ export type Props = {
78
78
  */
79
79
  dateProps?: {} | null;
80
80
  };
81
- 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) => import("react/jsx-runtime").JSX.Element;
81
+ 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;
82
82
  export default composeCalendar;
@@ -8,5 +8,5 @@ type Props = {
8
8
  atomic?: boolean;
9
9
  [rest: string]: any;
10
10
  };
11
- declare const BpkCard: ({ atomic, blank, children, className, href, padded, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
11
+ declare const BpkCard: ({ atomic, blank, children, className, href, padded, ...rest }: Props) => JSX.Element;
12
12
  export default BpkCard;
@@ -5,5 +5,5 @@ type Props = {
5
5
  backgroundColor: string;
6
6
  header: ReactNode;
7
7
  };
8
- declare const BpkCardWrapper: ({ backgroundColor, card, className, header, }: Props) => import("react/jsx-runtime").JSX.Element;
8
+ declare const BpkCardWrapper: ({ backgroundColor, card, className, header, }: Props) => JSX.Element;
9
9
  export default BpkCardWrapper;
@@ -12,5 +12,5 @@ export type Props = {
12
12
  isElevated?: boolean;
13
13
  [rest: string]: any;
14
14
  };
15
- declare const BpkDividedCard: ({ href, isElevated, orientation, primaryContent, secondaryContent, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
15
+ declare const BpkDividedCard: ({ href, isElevated, orientation, primaryContent, secondaryContent, ...rest }: Props) => JSX.Element;
16
16
  export default BpkDividedCard;
@@ -17,5 +17,5 @@ type Props = {
17
17
  size?: SizeType;
18
18
  style?: StyleType;
19
19
  };
20
- declare const BpkSaveButton: ({ accessibilityLabel, checked, onCheckedChange, size, style, }: Props) => import("react/jsx-runtime").JSX.Element;
20
+ declare const BpkSaveButton: ({ accessibilityLabel, checked, onCheckedChange, size, style, }: Props) => JSX.Element;
21
21
  export default BpkSaveButton;
@@ -1,3 +1,3 @@
1
1
  import type { Props } from './types';
2
- declare const BpkCarousel: ({ bottom, images, initialImageIndex, onImageChanged, }: Props) => import("react/jsx-runtime").JSX.Element;
2
+ declare const BpkCarousel: ({ bottom, images, initialImageIndex, onImageChanged, }: Props) => JSX.Element;
3
3
  export default BpkCarousel;
@@ -6,5 +6,5 @@ type Props = {
6
6
  imagesRef: MutableRefObject<Array<HTMLElement | null>>;
7
7
  onImageChanged: OnImageChangedHandler;
8
8
  };
9
- declare const BpkScrollContainer: import("react").MemoExoticComponent<({ images, imagesRef, onImageChanged, onVisible }: Props) => import("react/jsx-runtime").JSX.Element>;
9
+ declare const BpkScrollContainer: import("react").MemoExoticComponent<({ images, imagesRef, onImageChanged, onVisible }: Props) => JSX.Element>;
10
10
  export default BpkScrollContainer;
@@ -1,4 +1,4 @@
1
1
  import type { CommonProps as Props } from './commonTypes';
2
2
  type BpkDismissibleChipProps = Omit<Props, 'disabled' | 'selected'>;
3
- declare const BpkDismissibleChip: ({ className, leadingAccessoryView, type, ...rest }: BpkDismissibleChipProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const BpkDismissibleChip: ({ className, leadingAccessoryView, type, ...rest }: BpkDismissibleChipProps) => JSX.Element;
4
4
  export default BpkDismissibleChip;
@@ -1,3 +1,3 @@
1
1
  import type { CommonProps as Props } from './commonTypes';
2
- declare const BpkDropdownChip: ({ disabled, leadingAccessoryView, selected, type, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
2
+ declare const BpkDropdownChip: ({ disabled, leadingAccessoryView, selected, type, ...rest }: Props) => JSX.Element;
3
3
  export default BpkDropdownChip;
@@ -3,5 +3,5 @@ import type { CommonProps as Props } from './commonTypes';
3
3
  export type BpkIconChipProps = {
4
4
  leadingAccessoryView: ReactNode;
5
5
  } & Omit<Props, 'trailingAccessoryView' | 'leadingAccessoryView' | 'children'>;
6
- declare const BpkIconChip: (props: BpkIconChipProps) => import("react/jsx-runtime").JSX.Element;
6
+ declare const BpkIconChip: (props: BpkIconChipProps) => JSX.Element;
7
7
  export default BpkIconChip;
@@ -5,5 +5,5 @@ export interface Props extends CommonProps {
5
5
  role?: string;
6
6
  trailingAccessoryView?: ReactNode;
7
7
  }
8
- declare const BpkSelectableChip: ({ accessibilityLabel, children, className, disabled, dismissible, leadingAccessoryView, role, selected, trailingAccessoryView, type, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
8
+ declare const BpkSelectableChip: ({ accessibilityLabel, children, className, disabled, dismissible, leadingAccessoryView, role, selected, trailingAccessoryView, type, ...rest }: Props) => JSX.Element;
9
9
  export default BpkSelectableChip;
@@ -43,5 +43,5 @@ export type MultiSelectProps = (RailChipGroupProps & {
43
43
  } | WrapChipGroupProps & {
44
44
  type: typeof CHIP_GROUP_TYPES.wrap;
45
45
  });
46
- declare const BpkMultiSelectChipGroup: (props: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
46
+ declare const BpkMultiSelectChipGroup: (props: MultiSelectProps) => JSX.Element;
47
47
  export default BpkMultiSelectChipGroup;
@@ -4,5 +4,5 @@ export type SingleSelectProps = {
4
4
  onItemClick?: (item: SingleSelectChipItem, selected: boolean, index: number) => void;
5
5
  selectedIndex?: number;
6
6
  } & MultiSelectProps;
7
- declare const BpkSingleSelectChipGroup: ({ chips, onItemClick, selectedIndex, ...rest }: SingleSelectProps) => import("react/jsx-runtime").JSX.Element;
7
+ declare const BpkSingleSelectChipGroup: ({ chips, onItemClick, selectedIndex, ...rest }: SingleSelectProps) => JSX.Element;
8
8
  export default BpkSingleSelectChipGroup;
@@ -10,5 +10,5 @@ type Props = {
10
10
  scrollContainerRef: MutableRefObject<HTMLElement | null>;
11
11
  position: (typeof POSITION)[keyof typeof POSITION];
12
12
  };
13
- declare const Nudger: ({ ariaLabel, chipStyle, position, scrollContainerRef }: Props) => import("react/jsx-runtime").JSX.Element | null;
13
+ declare const Nudger: ({ ariaLabel, chipStyle, position, scrollContainerRef }: Props) => JSX.Element | null;
14
14
  export default Nudger;
@@ -1,3 +1,3 @@
1
1
  import { type BpkDataTableProps } from './common-types';
2
- declare const BpkDataTable: (props: BpkDataTableProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const BpkDataTable: (props: BpkDataTableProps) => JSX.Element;
3
3
  export default BpkDataTable;
@@ -4,5 +4,5 @@
4
4
  */
5
5
  declare const BpkDataTableHeader: ({ column }: {
6
6
  column: any;
7
- }) => import("react/jsx-runtime").JSX.Element;
7
+ }) => JSX.Element;
8
8
  export default BpkDataTableHeader;
@@ -80,8 +80,8 @@ declare class BpkDatepicker extends Component<Props, State> {
80
80
  source: string;
81
81
  }) => void;
82
82
  handleDateKeyDown: (event: KeyboardEvent) => void;
83
- render(): import("react/jsx-runtime").JSX.Element;
84
- context: unknown;
83
+ render(): JSX.Element;
84
+ context: any;
85
85
  setState<K extends keyof {
86
86
  preventKeyboardFocus: boolean;
87
87
  focusedDate: Date;
@@ -118,6 +118,8 @@ declare class BpkDatepicker extends Component<Props, State> {
118
118
  maxDate: Date;
119
119
  }> & {
120
120
  [rest: string]: any;
121
+ }> & Readonly<{
122
+ children?: import("react").ReactNode | undefined;
121
123
  }>;
122
124
  state: Readonly<{
123
125
  preventKeyboardFocus: boolean;
@@ -258,6 +260,6 @@ declare class BpkDatepicker extends Component<Props, State> {
258
260
  */
259
261
  getValue: (selectionConfiguration: SelectionConfiguration, formatDate: (date: Date) => string) => string;
260
262
  handleDateSelect: (startDate: Date, endDate?: Date | null) => void;
261
- render(): import("react/jsx-runtime").JSX.Element;
263
+ render(): JSX.Element;
262
264
  }
263
265
  export default BpkDatepicker;
@@ -4,5 +4,5 @@ type Props = {
4
4
  className?: string;
5
5
  [rest: string]: any;
6
6
  };
7
- declare const _default: ({ children, className, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ declare const _default: ({ children, className, ...rest }: Props) => JSX.Element;
8
8
  export default _default;
@@ -4,5 +4,5 @@ type Props = {
4
4
  className?: string;
5
5
  [rest: string]: any;
6
6
  };
7
- declare const _default: ({ children, className, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ declare const _default: ({ children, className, ...rest }: Props) => JSX.Element;
8
8
  export default _default;
@@ -4,5 +4,5 @@ type Props = {
4
4
  className?: string;
5
5
  [rest: string]: any;
6
6
  };
7
- declare const _default: ({ children, className, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ declare const _default: ({ children, className, ...rest }: Props) => JSX.Element;
8
8
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import type { Props } from './common-types';
2
- declare const BpkDialog: ({ children, closeLabel, dismissible, headerIcon, headerIconType, isOpen, onClose, renderTarget, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
2
+ declare const BpkDialog: ({ children, closeLabel, dismissible, headerIcon, headerIconType, isOpen, onClose, renderTarget, ...rest }: Props) => JSX.Element;
3
3
  export default BpkDialog;
@@ -1,15 +1,17 @@
1
1
  import { type DialogInnerProps as Props } from './common-types';
2
2
  declare const _default: {
3
- new (props: import("../../bpk-scrim-utils/src/withScrim").Props & Omit<Props, "dialogRef">): {
3
+ new (props: (import("../../bpk-scrim-utils/src/withScrim").Props & Omit<Props, "dialogRef">) | Readonly<import("../../bpk-scrim-utils/src/withScrim").Props & Omit<Props, "dialogRef">>): {
4
4
  dialogElement?: HTMLElement | null | undefined;
5
5
  componentDidMount(): void;
6
6
  componentWillUnmount(): void;
7
7
  dialogRef: (ref: HTMLElement | null | undefined) => void;
8
- render(): import("react/jsx-runtime").JSX.Element;
9
- context: unknown;
8
+ render(): JSX.Element;
9
+ context: any;
10
10
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("../../bpk-scrim-utils/src/withScrim").Props & Omit<Props, "dialogRef">>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
11
11
  forceUpdate(callback?: (() => void) | undefined): void;
12
- readonly props: Readonly<import("../../bpk-scrim-utils/src/withScrim").Props & Omit<Props, "dialogRef">>;
12
+ readonly props: Readonly<import("../../bpk-scrim-utils/src/withScrim").Props & Omit<Props, "dialogRef">> & Readonly<{
13
+ children?: import("react").ReactNode | undefined;
14
+ }>;
13
15
  state: Readonly<{}>;
14
16
  refs: {
15
17
  [key: string]: import("react").ReactInstance;
@@ -30,11 +32,13 @@ declare const _default: {
30
32
  componentDidMount(): void;
31
33
  componentWillUnmount(): void;
32
34
  dialogRef: (ref: HTMLElement | null | undefined) => void;
33
- render(): import("react/jsx-runtime").JSX.Element;
34
- context: unknown;
35
+ render(): JSX.Element;
36
+ context: any;
35
37
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("../../bpk-scrim-utils/src/withScrim").Props & Omit<Props, "dialogRef">>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
36
38
  forceUpdate(callback?: (() => void) | undefined): void;
37
- readonly props: Readonly<import("../../bpk-scrim-utils/src/withScrim").Props & Omit<Props, "dialogRef">>;
39
+ readonly props: Readonly<import("../../bpk-scrim-utils/src/withScrim").Props & Omit<Props, "dialogRef">> & Readonly<{
40
+ children?: import("react").ReactNode | undefined;
41
+ }>;
38
42
  state: Readonly<{}>;
39
43
  refs: {
40
44
  [key: string]: import("react").ReactInstance;
@@ -18,5 +18,5 @@ export type Props = {
18
18
  text: string;
19
19
  [rest: string]: any;
20
20
  };
21
- declare const BpkFloatingNotification: (props: Props) => import("react/jsx-runtime").JSX.Element;
21
+ declare const BpkFloatingNotification: (props: Props) => JSX.Element;
22
22
  export default BpkFloatingNotification;
@@ -23,5 +23,5 @@ export type Props = {
23
23
  textAlign: (typeof TEXT_ALIGN)[keyof typeof TEXT_ALIGN];
24
24
  style?: {};
25
25
  };
26
- declare const BpkGraphicPromo: ({ buttonText, className, contentId, headline, invertVertically, onClick, sponsor, style, subheading, tagline, textAlign, }: Props) => import("react/jsx-runtime").JSX.Element;
26
+ declare const BpkGraphicPromo: ({ buttonText, className, contentId, headline, invertVertically, onClick, sponsor, style, subheading, tagline, textAlign, }: Props) => JSX.Element;
27
27
  export default BpkGraphicPromo;
@@ -3,11 +3,11 @@ import withAlignment from './src/withAlignment';
3
3
  import withDescription from './src/withDescription';
4
4
  import withRtlSupport from './src/withRtlSupport';
5
5
  declare function withButtonAlignment(WrappedComponent: ComponentType<any>): {
6
- (props: any): import("react/jsx-runtime").JSX.Element;
6
+ (props: any): JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  declare function withLargeButtonAlignment(WrappedComponent: ComponentType<any>): {
10
- (props: any): import("react/jsx-runtime").JSX.Element;
10
+ (props: any): JSX.Element;
11
11
  displayName: string;
12
12
  };
13
13
  export { withButtonAlignment, withLargeButtonAlignment, withAlignment, withRtlSupport, withDescription, };
@@ -3,7 +3,7 @@ declare const _default: (displayName: string, classNamesToAdd?: string[]) => (Co
3
3
  (props: {
4
4
  className?: string | null;
5
5
  [rest: string]: any;
6
- }): import("react/jsx-runtime").JSX.Element;
6
+ }): JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import type { ComponentType } from 'react';
2
2
  export default function withAlignment(Component: ComponentType | string, objectHeight: string, subjectHeight: string): {
3
- (props: any): import("react/jsx-runtime").JSX.Element;
3
+ (props: any): JSX.Element;
4
4
  displayName: string;
5
5
  };
@@ -2,7 +2,7 @@ declare const _default: (ComposedComponent: import("react").ComponentType<any> |
2
2
  (props: {
3
3
  className?: string | null;
4
4
  [rest: string]: any;
5
- }): import("react/jsx-runtime").JSX.Element;
5
+ }): JSX.Element;
6
6
  displayName: string;
7
7
  };
8
8
  export default _default;
@@ -27,6 +27,6 @@ declare class BpkBackgroundImage extends Component<BpkBackgroundImageProps> {
27
27
  onBackgroundImageLoad: () => void;
28
28
  getAspectRatio: () => number;
29
29
  startImageLoad: () => void;
30
- render(): import("react/jsx-runtime").JSX.Element;
30
+ render(): JSX.Element;
31
31
  }
32
32
  export default BpkBackgroundImage;
@@ -28,6 +28,6 @@ declare class BpkImage extends Component<BpkImageProps> {
28
28
  };
29
29
  onImageLoad: () => void;
30
30
  getAspectRatio: () => number;
31
- render(): import("react/jsx-runtime").JSX.Element;
31
+ render(): JSX.Element;
32
32
  }
33
33
  export default BpkImage;