@skyscanner/backpack-web 34.16.0 → 35.0.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 (141) 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 +3 -5
  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 +6 -10
  24. package/bpk-component-calendar/src/BpkCalendarDate.d.ts +1 -1
  25. package/bpk-component-calendar/src/BpkCalendarGrid.d.ts +2 -2
  26. package/bpk-component-calendar/src/BpkCalendarGridHeader.d.ts +1 -1
  27. package/bpk-component-calendar/src/BpkCalendarGridTransition.d.ts +2 -2
  28. package/bpk-component-calendar/src/BpkCalendarNav.d.ts +1 -1
  29. package/bpk-component-calendar/src/BpkCalendarWeek.d.ts +1 -1
  30. package/bpk-component-calendar/src/composeCalendar.d.ts +1 -1
  31. package/bpk-component-card/src/BpkCard.d.ts +1 -1
  32. package/bpk-component-card/src/BpkCardWrapper.d.ts +1 -1
  33. package/bpk-component-card/src/BpkDividedCard.d.ts +1 -1
  34. package/bpk-component-card-button/src/BpkSaveButton.d.ts +1 -1
  35. package/bpk-component-carousel/src/BpkCarousel.d.ts +1 -1
  36. package/bpk-component-carousel/src/BpkCarouselContainer.d.ts +1 -1
  37. package/bpk-component-carousel/src/utils.test.js +30 -0
  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-close-button/src/BpkCloseButton.d.ts +10 -0
  46. package/bpk-component-close-button/src/BpkCloseButton.js +21 -37
  47. package/bpk-component-datatable/src/BpkDataTable.d.ts +1 -1
  48. package/bpk-component-datatable/src/BpkDataTableHeader.d.ts +1 -1
  49. package/bpk-component-datepicker/src/BpkDatepicker.d.ts +3 -5
  50. package/bpk-component-description-list/src/BpkDescriptionDetails.d.ts +1 -1
  51. package/bpk-component-description-list/src/BpkDescriptionList.d.ts +1 -1
  52. package/bpk-component-description-list/src/BpkDescriptionTerm.d.ts +1 -1
  53. package/bpk-component-dialog/src/BpkDialog.d.ts +1 -1
  54. package/bpk-component-dialog/src/BpkDialogInner.d.ts +7 -11
  55. package/bpk-component-floating-notification/src/BpkFloatingNotification.d.ts +1 -1
  56. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.d.ts +1 -1
  57. package/bpk-component-icon/index.d.ts +2 -2
  58. package/bpk-component-icon/src/classNameModifierHOCFactory.d.ts +1 -1
  59. package/bpk-component-icon/src/withAlignment.d.ts +1 -1
  60. package/bpk-component-icon/src/withRtlSupport.d.ts +1 -1
  61. package/bpk-component-image/src/BpkBackgroundImage.d.ts +1 -1
  62. package/bpk-component-image/src/BpkImage.d.ts +1 -1
  63. package/bpk-component-image/src/withLazyLoading.d.ts +3 -5
  64. package/bpk-component-image/src/withLoadingBehavior.d.ts +3 -5
  65. package/bpk-component-info-banner/src/AnimateAndFade.d.ts +1 -1
  66. package/bpk-component-info-banner/src/BpkInfoBanner.d.ts +1 -1
  67. package/bpk-component-info-banner/src/BpkInfoBannerDismissable.d.ts +1 -1
  68. package/bpk-component-info-banner/src/BpkInfoBannerExpandable.d.ts +1 -1
  69. package/bpk-component-info-banner/src/BpkInfoBannerInner.d.ts +1 -1
  70. package/bpk-component-info-banner/src/withBannerAlertState.d.ts +3 -5
  71. package/bpk-component-input/src/BpkInput.d.ts +1 -1
  72. package/bpk-component-input/src/BpkInput.js +1 -1
  73. package/bpk-component-input/src/common-types.d.ts +1 -1
  74. package/bpk-component-input/src/withOpenEvents.d.ts +2 -4
  75. package/bpk-component-inset-banner/src/BpkInsetBanner.d.ts +1 -1
  76. package/bpk-component-journey-arrow/src/BpkJourneyArrow.d.ts +1 -1
  77. package/bpk-component-loading-button/src/BpkLoadingButton.d.ts +6 -38
  78. package/bpk-component-loading-button/src/BpkLoadingButton.js +13 -44
  79. package/bpk-component-map/src/BpkBasicMapMarker.d.ts +1 -1
  80. package/bpk-component-map/src/BpkPriceMarkerV2/BpkPriceMarker.d.ts +1 -1
  81. package/bpk-component-modal/src/BpkModal.d.ts +1 -1
  82. package/bpk-component-modal/src/BpkModalInner.d.ts +1 -1
  83. package/bpk-component-modal/src/BpkModalV2/BpkModal.d.ts +1 -1
  84. package/bpk-component-navigation-bar/src/BpkNavigationBar.d.ts +1 -1
  85. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.d.ts +1 -1
  86. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.d.ts +1 -1
  87. package/bpk-component-nudger/index.d.ts +1 -2
  88. package/bpk-component-nudger/index.js +1 -2
  89. package/bpk-component-nudger/src/BpkNudger.d.ts +1 -1
  90. package/bpk-component-nudger/src/BpkNudger.js +102 -20
  91. package/bpk-component-nudger/src/BpkNudger.module.css +1 -1
  92. package/bpk-component-nudger/src/common-types.d.ts +7 -5
  93. package/bpk-component-overlay/src/BpkOverlay.d.ts +1 -1
  94. package/bpk-component-popover/src/BpkPopover.d.ts +1 -1
  95. package/bpk-component-rating/src/BpkRating.d.ts +1 -1
  96. package/bpk-component-rtl-toggle/src/BpkRtlToggle.d.ts +1 -1
  97. package/bpk-component-rtl-toggle/src/updateOnDirectionChange.d.ts +7 -11
  98. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendar.d.ts +2 -4
  99. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.d.ts +1 -1
  100. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.d.ts +3 -3
  101. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.d.ts +3 -3
  102. package/bpk-component-section-header/src/BpkSectionHeader.d.ts +1 -1
  103. package/bpk-component-segmented-control/src/BpkSegmentedControl.d.ts +1 -1
  104. package/bpk-component-skeleton/src/BpkBaseSkeleton.d.ts +1 -1
  105. package/bpk-component-skeleton/src/BpkSkeleton.d.ts +1 -1
  106. package/bpk-component-slider/src/BpkSlider.d.ts +4 -1
  107. package/bpk-component-slider/src/BpkSlider.js +51 -3
  108. package/bpk-component-snippet/src/BpkSnippet.d.ts +1 -1
  109. package/bpk-component-spinner/src/BpkExtraLargeSpinner.d.ts +4 -14
  110. package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +5 -16
  111. package/bpk-component-spinner/src/BpkLargeSpinner.d.ts +5 -17
  112. package/bpk-component-spinner/src/BpkLargeSpinner.js +6 -19
  113. package/bpk-component-spinner/src/BpkSpinner.d.ts +5 -17
  114. package/bpk-component-spinner/src/BpkSpinner.js +6 -19
  115. package/bpk-component-split-input/src/BpkInputField.d.ts +21 -0
  116. package/bpk-component-split-input/src/BpkInputField.js +12 -17
  117. package/bpk-component-split-input/src/BpkSplitInput.d.ts +44 -0
  118. package/bpk-component-split-input/src/BpkSplitInput.js +21 -40
  119. package/bpk-component-swap-button/src/BpkSwapButton.d.ts +1 -1
  120. package/bpk-component-switch/index.d.ts +5 -0
  121. package/bpk-component-switch/src/BpkSwitch.d.ts +8 -0
  122. package/bpk-component-switch/src/BpkSwitch.js +9 -22
  123. package/bpk-component-switch/src/BpkSwitch.module.css +1 -1
  124. package/bpk-component-switch/src/themeAttributes.d.ts +2 -0
  125. package/bpk-component-text/src/BpkText.d.ts +1 -1
  126. package/bpk-component-tooltip/src/BpkTooltip.d.ts +1 -1
  127. package/bpk-component-tooltip/src/BpkTooltipPortal.d.ts +1 -1
  128. package/bpk-react-utils/index.d.ts +3 -3
  129. package/bpk-react-utils/src/BpkDialogWrapper/BpkDialogWrapper.d.ts +1 -1
  130. package/bpk-react-utils/src/TransitionInitialMount.d.ts +1 -1
  131. package/bpk-react-utils/src/nativeEventHandler.d.ts +1 -1
  132. package/bpk-react-utils/src/nativeEventHandler.js +7 -5
  133. package/bpk-react-utils/src/withDefaultProps.d.ts +1 -1
  134. package/bpk-scrim-utils/index.d.ts +7 -11
  135. package/bpk-scrim-utils/src/BpkScrim.d.ts +1 -1
  136. package/bpk-scrim-utils/src/withScrim.d.ts +7 -11
  137. package/bpk-scrim-utils/src/withScrimmedPortal.d.ts +1 -1
  138. package/bpk-theming/src/BpkThemeProvider.js +19 -30
  139. package/package.json +5 -3
  140. package/bpk-component-nudger/src/BpkConfigurableNudger.d.ts +0 -26
  141. package/bpk-component-nudger/src/BpkConfigurableNudger.js +0 -96
@@ -1,17 +1,15 @@
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">) | Readonly<import("../../bpk-scrim-utils/src/withScrim").Props & Omit<Props, "dialogRef">>): {
3
+ new (props: 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(): JSX.Element;
9
- context: any;
8
+ render(): import("react/jsx-runtime").JSX.Element;
9
+ context: unknown;
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">> & Readonly<{
13
- children?: import("react").ReactNode | undefined;
14
- }>;
12
+ readonly props: Readonly<import("../../bpk-scrim-utils/src/withScrim").Props & Omit<Props, "dialogRef">>;
15
13
  state: Readonly<{}>;
16
14
  refs: {
17
15
  [key: string]: import("react").ReactInstance;
@@ -32,13 +30,11 @@ declare const _default: {
32
30
  componentDidMount(): void;
33
31
  componentWillUnmount(): void;
34
32
  dialogRef: (ref: HTMLElement | null | undefined) => void;
35
- render(): JSX.Element;
36
- context: any;
33
+ render(): import("react/jsx-runtime").JSX.Element;
34
+ context: unknown;
37
35
  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;
38
36
  forceUpdate(callback?: (() => void) | undefined): void;
39
- readonly props: Readonly<import("../../bpk-scrim-utils/src/withScrim").Props & Omit<Props, "dialogRef">> & Readonly<{
40
- children?: import("react").ReactNode | undefined;
41
- }>;
37
+ readonly props: Readonly<import("../../bpk-scrim-utils/src/withScrim").Props & Omit<Props, "dialogRef">>;
42
38
  state: Readonly<{}>;
43
39
  refs: {
44
40
  [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) => JSX.Element;
21
+ declare const BpkFloatingNotification: (props: Props) => import("react/jsx-runtime").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) => JSX.Element;
26
+ declare const BpkGraphicPromo: ({ buttonText, className, contentId, headline, invertVertically, onClick, sponsor, style, subheading, tagline, textAlign, }: Props) => import("react/jsx-runtime").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): JSX.Element;
6
+ (props: any): import("react/jsx-runtime").JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  declare function withLargeButtonAlignment(WrappedComponent: ComponentType<any>): {
10
- (props: any): JSX.Element;
10
+ (props: any): import("react/jsx-runtime").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
- }): JSX.Element;
6
+ }): import("react/jsx-runtime").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): JSX.Element;
3
+ (props: any): import("react/jsx-runtime").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
- }): JSX.Element;
5
+ }): import("react/jsx-runtime").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(): JSX.Element;
30
+ render(): import("react/jsx-runtime").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(): JSX.Element;
31
+ render(): import("react/jsx-runtime").JSX.Element;
32
32
  }
33
33
  export default BpkImage;
@@ -22,13 +22,11 @@ export default function withLazyLoading<P extends object>(WrappedComponent: Comp
22
22
  checkInView: import("lodash").DebouncedFunc<() => void>;
23
23
  supportsPassiveEvents: () => boolean;
24
24
  isInViewPort: () => boolean;
25
- render(): JSX.Element;
26
- context: any;
25
+ render(): import("react/jsx-runtime").JSX.Element;
26
+ context: unknown;
27
27
  setState<K extends "inView">(state: WithLazyLoadingState | ((prevState: Readonly<WithLazyLoadingState>, props: Readonly<Omit<P, "inView"> & WithLazyLoadingProps>) => Pick<WithLazyLoadingState, K> | WithLazyLoadingState | null) | Pick<WithLazyLoadingState, K> | null, callback?: (() => void) | undefined): void;
28
28
  forceUpdate(callback?: (() => void) | undefined): void;
29
- readonly props: Readonly<Omit<P, "inView"> & WithLazyLoadingProps> & Readonly<{
30
- children?: import("react").ReactNode | undefined;
31
- }>;
29
+ readonly props: Readonly<Omit<P, "inView"> & WithLazyLoadingProps>;
32
30
  state: Readonly<WithLazyLoadingState>;
33
31
  refs: {
34
32
  [key: string]: import("react").ReactInstance;
@@ -9,13 +9,11 @@ type State = {
9
9
  export default function withLoadingBehavior<P extends object>(WrappedComponent: ComponentType<P>): {
10
10
  new (props: Omit<P, keyof InjectedProps>): {
11
11
  onLoad: () => void;
12
- render(): JSX.Element;
13
- context: any;
12
+ render(): import("react/jsx-runtime").JSX.Element;
13
+ context: unknown;
14
14
  setState<K extends "loading">(state: State | ((prevState: Readonly<State>, props: Readonly<Omit<P, keyof InjectedProps>>) => Pick<State, K> | State | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
15
15
  forceUpdate(callback?: (() => void) | undefined): void;
16
- readonly props: Readonly<Omit<P, keyof InjectedProps>> & Readonly<{
17
- children?: import("react").ReactNode | undefined;
18
- }>;
16
+ readonly props: Readonly<Omit<P, keyof InjectedProps>>;
19
17
  state: Readonly<State>;
20
18
  refs: {
21
19
  [key: string]: import("react").ReactInstance;
@@ -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,3 +1,3 @@
1
1
  import type { CommonProps } from './common-types';
2
- declare const BpkInfoBanner: ({ animateOnEnter, animateOnLeave, icon, show, ...rest }: CommonProps) => JSX.Element;
2
+ declare const BpkInfoBanner: ({ animateOnEnter, animateOnLeave, icon, show, ...rest }: CommonProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default BpkInfoBanner;
@@ -3,5 +3,5 @@ export type Props = CommonProps & {
3
3
  dismissButtonLabel: string;
4
4
  onDismiss?: OnDismissHandler;
5
5
  };
6
- declare const BpkInfoBannerDismissable: ({ onDismiss, ...rest }: Props) => JSX.Element;
6
+ declare const BpkInfoBannerDismissable: ({ onDismiss, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
7
7
  export default BpkInfoBannerDismissable;
@@ -7,5 +7,5 @@ export type Props = CommonProps & {
7
7
  onExpandToggle?: OnExpandToggleHandler;
8
8
  action?: ExpandableBannerAction;
9
9
  };
10
- declare const BpkInfoBannerExpandable: ({ action, children, expanded, onExpandToggle, ...rest }: Props) => JSX.Element;
10
+ declare const BpkInfoBannerExpandable: ({ action, children, expanded, onExpandToggle, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
11
11
  export default BpkInfoBannerExpandable;
@@ -15,5 +15,5 @@ type Props = CommonProps & {
15
15
  dismissButtonLabel?: string;
16
16
  onDismiss?: OnDismissHandler;
17
17
  };
18
- declare const BpkInfoBannerInner: ({ action, animateOnEnter, animateOnLeave, bannerClassName, children, configuration, dismissButtonLabel, expanded, icon, message, onDismiss, onExpandToggle, show, style, toggleButtonLabel, type, ...rest }: Props) => JSX.Element;
18
+ declare const BpkInfoBannerInner: ({ action, animateOnEnter, animateOnLeave, bannerClassName, children, configuration, dismissButtonLabel, expanded, icon, message, onDismiss, onExpandToggle, show, style, toggleButtonLabel, type, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
19
19
  export default BpkInfoBannerInner;
@@ -14,8 +14,8 @@ declare const withBannerAlertState: <P extends BpkInfoBannerProps>(WrappedCompon
14
14
  onExpandToggle: () => void;
15
15
  onDismiss: () => void;
16
16
  onHide: () => void;
17
- render(): JSX.Element;
18
- context: any;
17
+ render(): import("react/jsx-runtime").JSX.Element;
18
+ context: unknown;
19
19
  setState<K extends keyof {
20
20
  expanded?: boolean;
21
21
  show?: boolean;
@@ -36,9 +36,7 @@ declare const withBannerAlertState: <P extends BpkInfoBannerProps>(WrappedCompon
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> & Readonly<{
40
- children?: import("react").ReactNode | undefined;
41
- }>;
39
+ readonly props: Readonly<P & WithBannerAlertStateProps>;
42
40
  state: Readonly<{
43
41
  expanded?: boolean;
44
42
  show?: boolean;
@@ -18,6 +18,6 @@ declare class BpkInput extends Component<Props, State> {
18
18
  onClear: null;
19
19
  };
20
20
  constructor(props: Props);
21
- render(): JSX.Element;
21
+ render(): import("react/jsx-runtime").JSX.Element;
22
22
  }
23
23
  export default BpkInput;
@@ -120,7 +120,7 @@ class BpkInput extends Component {
120
120
  };
121
121
  return clearable ? /*#__PURE__*/_jsxs("div", {
122
122
  className: containerClassNames.join(' '),
123
- children: [renderedInput, value.length > 0 && /*#__PURE__*/_jsx("button", {
123
+ children: [renderedInput, `${value}`.length > 0 && /*#__PURE__*/_jsx("button", {
124
124
  type: "button",
125
125
  title: clearButtonLabel || '',
126
126
  "aria-label": clearButtonLabel || '',
@@ -24,7 +24,7 @@ type InputProps = {
24
24
  /**
25
25
  * **Required:** The value attribute of the input.
26
26
  */
27
- value: string;
27
+ value: string | number;
28
28
  type?: (typeof INPUT_TYPES)[keyof typeof INPUT_TYPES];
29
29
  };
30
30
  type BaseProps = InputProps & ComponentProps<'input'> & {
@@ -34,12 +34,10 @@ declare const withOpenEvents: <P extends object>(WithOpenEventsInputComponent: C
34
34
  handleFocus: () => void;
35
35
  handleBlur: () => void;
36
36
  render(): ReactElement;
37
- context: any;
37
+ context: unknown;
38
38
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P & import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & Omit<EventHandlers, "aria-readonly" | "readOnly"> & WithOpenEventsProps>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
39
39
  forceUpdate(callback?: (() => void) | undefined): void;
40
- readonly props: Readonly<P & import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & Omit<EventHandlers, "aria-readonly" | "readOnly"> & WithOpenEventsProps> & Readonly<{
41
- children?: import("react").ReactNode | undefined;
42
- }>;
40
+ readonly props: Readonly<P & import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & Omit<EventHandlers, "aria-readonly" | "readOnly"> & WithOpenEventsProps>;
43
41
  state: Readonly<{}>;
44
42
  refs: {
45
43
  [key: string]: import("react").ReactInstance;
@@ -18,5 +18,5 @@ export type Props = {
18
18
  title?: string;
19
19
  variant?: (typeof VARIANT)[keyof typeof VARIANT];
20
20
  };
21
- declare const BpkInsetBanner: ({ accessibilityLabel, backgroundColor, body, callToAction, logo, subheadline, title, variant, }: Props) => JSX.Element;
21
+ declare const BpkInsetBanner: ({ accessibilityLabel, backgroundColor, body, callToAction, logo, subheadline, title, variant, }: Props) => import("react/jsx-runtime").JSX.Element;
22
22
  export default BpkInsetBanner;
@@ -3,5 +3,5 @@ export type Props = {
3
3
  stops?: number;
4
4
  [rest: string]: any;
5
5
  };
6
- declare const BpkJourneyArrow: ({ stops, ...rest }: Props) => JSX.Element;
6
+ declare const BpkJourneyArrow: ({ stops, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
7
7
  export default BpkJourneyArrow;
@@ -1,5 +1,5 @@
1
- import PropTypes from 'prop-types';
2
1
  import type { ReactElement, ReactNode } from 'react';
2
+ import type { Props as ButtonProps } from '../../bpk-component-button/src/BpkButtonV2/common-types';
3
3
  export declare const ICON_POSITION: {
4
4
  LEADING: string;
5
5
  TRAILING: string;
@@ -17,44 +17,12 @@ type LoadingProps = {
17
17
  large?: boolean;
18
18
  link?: boolean;
19
19
  linkOnDark?: boolean;
20
- loading: boolean;
21
- iconOnly: boolean;
20
+ loading?: boolean;
21
+ iconOnly?: boolean;
22
22
  icon?: ReactElement<any>;
23
- iconPosition: string;
23
+ iconPosition?: (typeof ICON_POSITION)[keyof typeof ICON_POSITION];
24
24
  iconDisabled?: ReactElement<any>;
25
25
  iconLoading?: ReactElement<any>;
26
- };
27
- declare const BpkLoadingButton: {
28
- (props: LoadingProps): JSX.Element;
29
- propTypes: {
30
- children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
31
- className: PropTypes.Requireable<string>;
32
- disabled: PropTypes.Requireable<boolean>;
33
- secondary: PropTypes.Requireable<boolean>;
34
- destructive: PropTypes.Requireable<boolean>;
35
- link: PropTypes.Requireable<boolean>;
36
- linkOnDark: PropTypes.Requireable<boolean>;
37
- loading: PropTypes.Requireable<boolean>;
38
- iconOnly: PropTypes.Requireable<boolean>;
39
- icon: PropTypes.Requireable<PropTypes.ReactElementLike>;
40
- iconPosition: PropTypes.Requireable<string>;
41
- iconDisabled: PropTypes.Requireable<PropTypes.ReactElementLike>;
42
- iconLoading: PropTypes.Requireable<PropTypes.ReactElementLike>;
43
- };
44
- defaultProps: {
45
- className: null;
46
- disabled: boolean;
47
- secondary: boolean;
48
- destructive: boolean;
49
- large: boolean;
50
- link: boolean;
51
- linkOnDark: boolean;
52
- loading: boolean;
53
- iconOnly: boolean;
54
- icon: null;
55
- iconPosition: string;
56
- iconDisabled: null;
57
- iconLoading: null;
58
- };
59
- };
26
+ } & ButtonProps;
27
+ declare const BpkLoadingButton: (props: LoadingProps) => import("react/jsx-runtime").JSX.Element;
60
28
  export default BpkLoadingButton;
@@ -16,7 +16,6 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import PropTypes from 'prop-types';
20
19
  import { BUTTON_TYPES, BpkButtonV2, SIZE_TYPES } from "../../bpk-component-button";
21
20
  import { withButtonAlignment, withLargeButtonAlignment, withRtlSupport } from "../../bpk-component-icon";
22
21
  import ArrowIconLg from "../../bpk-component-icon/lg/long-arrow-right";
@@ -60,22 +59,22 @@ const getLoadingIcon = props => {
60
59
  const BpkLoadingButton = props => {
61
60
  const {
62
61
  children,
63
- destructive,
64
- disabled,
65
- featured,
62
+ destructive = false,
63
+ disabled = false,
64
+ featured = false,
66
65
  icon,
67
66
  iconDisabled,
68
67
  iconLoading,
69
- iconOnly,
70
- iconPosition,
71
- large,
72
- link,
73
- linkOnDark,
74
- loading,
75
- primaryOnDark,
76
- primaryOnLight,
77
- secondary,
78
- secondaryOnDark,
68
+ iconOnly = false,
69
+ iconPosition = ICON_POSITION.TRAILING,
70
+ large = false,
71
+ link = false,
72
+ linkOnDark = false,
73
+ loading = false,
74
+ primaryOnDark = false,
75
+ primaryOnLight = false,
76
+ secondary = false,
77
+ secondaryOnDark = false,
79
78
  ...rest
80
79
  } = props;
81
80
  const showBtnDisabled = disabled || loading;
@@ -127,34 +126,4 @@ const BpkLoadingButton = props => {
127
126
  })
128
127
  });
129
128
  };
130
- BpkLoadingButton.propTypes = {
131
- children: PropTypes.node.isRequired,
132
- className: PropTypes.string,
133
- disabled: PropTypes.bool,
134
- secondary: PropTypes.bool,
135
- destructive: PropTypes.bool,
136
- link: PropTypes.bool,
137
- linkOnDark: PropTypes.bool,
138
- loading: PropTypes.bool,
139
- iconOnly: PropTypes.bool,
140
- icon: PropTypes.element,
141
- iconPosition: PropTypes.oneOf([ICON_POSITION.LEADING, ICON_POSITION.TRAILING]),
142
- iconDisabled: PropTypes.element,
143
- iconLoading: PropTypes.element
144
- };
145
- BpkLoadingButton.defaultProps = {
146
- className: null,
147
- disabled: false,
148
- secondary: false,
149
- destructive: false,
150
- large: false,
151
- link: false,
152
- linkOnDark: false,
153
- loading: false,
154
- iconOnly: false,
155
- icon: null,
156
- iconPosition: ICON_POSITION.TRAILING,
157
- iconDisabled: null,
158
- iconLoading: null
159
- };
160
129
  export default BpkLoadingButton;
@@ -6,7 +6,7 @@ type Props = {
6
6
  position: LatLong;
7
7
  };
8
8
  declare const BpkBasicMapMarker: {
9
- (props: Props): JSX.Element;
9
+ (props: Props): import("react/jsx-runtime").JSX.Element;
10
10
  propTypes: {
11
11
  children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
12
12
  position: any;
@@ -20,5 +20,5 @@ type Props = {
20
20
  };
21
21
  status?: Status;
22
22
  };
23
- export declare const BpkPriceMarkerV2: (props: Props) => JSX.Element;
23
+ export declare const BpkPriceMarkerV2: (props: Props) => import("react/jsx-runtime").JSX.Element;
24
24
  export {};
@@ -20,5 +20,5 @@ export type Props = Partial<ModalDialogProps> & {
20
20
  */
21
21
  getApplicationElement: () => HTMLElement | null;
22
22
  };
23
- declare const BpkModal: ({ accessoryView, className, closeLabel, closeOnEscPressed, closeOnScrimClick, closeText, contentClassName, dialogRef, fullScreen, fullScreenOnMobile, isIphone, isOpen, modalStyle, onClose, padded, renderTarget, showHeader, title, wide, ...rest }: Props) => JSX.Element;
23
+ declare const BpkModal: ({ accessoryView, className, closeLabel, closeOnEscPressed, closeOnScrimClick, closeText, contentClassName, dialogRef, fullScreen, fullScreenOnMobile, isIphone, isOpen, modalStyle, onClose, padded, renderTarget, showHeader, title, wide, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
24
24
  export default BpkModal;
@@ -26,5 +26,5 @@ export declare const MODAL_STYLING: {
26
26
  surfaceContrast: string;
27
27
  };
28
28
  export type ModalStyle = (typeof MODAL_STYLING)[keyof typeof MODAL_STYLING];
29
- declare const BpkModalInner: ({ accessoryView, children, className, closeLabel, closeText, contentClassName, dialogRef, fullScreen, fullScreenOnMobile, id, isIphone, modalStyle, onClose, padded, showHeader, title, wide, }: Props) => JSX.Element;
29
+ declare const BpkModalInner: ({ accessoryView, children, className, closeLabel, closeText, contentClassName, dialogRef, fullScreen, fullScreenOnMobile, id, isIphone, modalStyle, onClose, padded, showHeader, title, wide, }: Props) => import("react/jsx-runtime").JSX.Element;
30
30
  export default BpkModalInner;
@@ -15,4 +15,4 @@ export type Props = {
15
15
  wide?: boolean;
16
16
  modalStyle?: ModalStyle;
17
17
  };
18
- export declare const BpkModalV2: (props: Props) => JSX.Element | null;
18
+ export declare const BpkModalV2: (props: Props) => import("react/jsx-runtime").JSX.Element | null;
@@ -17,5 +17,5 @@ export type Props = {
17
17
  barStyle?: BarStyle;
18
18
  [rest: string]: any;
19
19
  };
20
- declare const BpkNavigationBar: (props: Props) => JSX.Element;
20
+ declare const BpkNavigationBar: (props: Props) => import("react/jsx-runtime").JSX.Element;
21
21
  export default BpkNavigationBar;
@@ -8,5 +8,5 @@ export interface Props extends ComponentProps<BpkButtonLink> {
8
8
  barStyle?: BarStyle;
9
9
  [rest: string]: any;
10
10
  }
11
- declare const BpkNavigationBarButtonLink: ({ barStyle, children, className, ...rest }: Props) => JSX.Element;
11
+ declare const BpkNavigationBarButtonLink: ({ barStyle, children, className, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
12
12
  export default BpkNavigationBarButtonLink;
@@ -9,5 +9,5 @@ export type Props = {
9
9
  children?: ReactNode;
10
10
  [rest: string]: any;
11
11
  };
12
- declare const BpkNavigationBarIconButton: ({ barStyle, className, icon, ...rest }: Props) => JSX.Element;
12
+ declare const BpkNavigationBarIconButton: ({ barStyle, className, icon, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
13
13
  export default BpkNavigationBarIconButton;
@@ -1,5 +1,4 @@
1
- import BpkConfigurableNudger from './src/BpkConfigurableNudger';
2
1
  import BpkNudger from './src/BpkNudger';
3
2
  import themeAttributes from './src/themeAttributes';
4
3
  export default BpkNudger;
5
- export { themeAttributes, BpkConfigurableNudger };
4
+ export { themeAttributes };
@@ -16,8 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import BpkConfigurableNudger from "./src/BpkConfigurableNudger";
20
19
  import BpkNudger from "./src/BpkNudger";
21
20
  import themeAttributes from "./src/themeAttributes";
22
21
  export default BpkNudger;
23
- export { themeAttributes, BpkConfigurableNudger };
22
+ export { themeAttributes };
@@ -1,3 +1,3 @@
1
1
  import { type CommonProps } from './common-types';
2
- declare const BpkNudger: ({ buttonType, className, icon, id, subtitle, title, ...rest }: CommonProps) => JSX.Element;
2
+ declare const BpkNudger: ({ buttonType, className, decreaseButtonLabel, icon, id, increaseButtonLabel, inputClassName, max, min, name, onValueChange, step, subtitle, title, value, ...rest }: CommonProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default BpkNudger;