@razorpay/blade 8.10.2 → 8.11.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.
@@ -1091,10 +1091,14 @@ type SpacingValueType$1 =
1091
1091
  | DotNotationSpacingStringToken
1092
1092
  | `${string}${SpaceUnits$1}`
1093
1093
  | `calc(${string})`
1094
+ | 'auto'
1094
1095
  | `min(${string})`
1095
1096
  | `max(${string})`
1096
- | 'auto'
1097
- | 'none';
1097
+ | 'none'
1098
+ | 'initial'
1099
+ | 'fit-content'
1100
+ | 'max-content'
1101
+ | 'min-content';
1098
1102
 
1099
1103
  type MarginProps$1 = MakeObjectResponsive$1<{
1100
1104
  /**
@@ -1771,7 +1775,7 @@ declare type MakeObjectResponsive<T, K extends keyof T = Extract<keyof T, string
1771
1775
 
1772
1776
  declare type ArrayOfMaxLength4<T> = readonly [T?, T?, T?, T?];
1773
1777
  declare type SpaceUnits = 'px' | '%' | 'fr' | 'rem' | 'em' | 'vh' | 'vw';
1774
- declare type SpacingValueType = DotNotationSpacingStringToken | `${string}${SpaceUnits}` | `calc(${string})` | `min(${string})` | `max(${string})` | 'auto' | 'none';
1778
+ declare type SpacingValueType = DotNotationSpacingStringToken | `${string}${SpaceUnits}` | `calc(${string})` | 'auto' | `min(${string})` | `max(${string})` | 'none' | 'initial' | 'fit-content' | 'max-content' | 'min-content';
1775
1779
  /**
1776
1780
  * @IMPORTANT
1777
1781
  *
@@ -2838,7 +2842,7 @@ declare const CardBody: ({ children, testID }: CardBodyProps) => React__default.
2838
2842
 
2839
2843
  type BladeElementRef = Platform.Select<{
2840
2844
  web:
2841
- | Pick<HTMLElement, 'focus' | 'scrollIntoView' | 'getBoundingClientRect'>
2845
+ | Pick<HTMLElement, 'focus' | 'scrollIntoView' | 'getBoundingClientRect' | 'clientHeight'>
2842
2846
  | Pick<View, 'focus'>;
2843
2847
  native: React.MutableRefObject<any>;
2844
2848
  }>;
@@ -6092,7 +6096,7 @@ declare type TitleProps = {
6092
6096
  size?: 'small' | 'medium' | 'large' | 'xlarge';
6093
6097
  contrast?: ColorContrastTypes;
6094
6098
  type?: TextTypes;
6095
- children: StringChildrenType;
6099
+ children: React.ReactNode;
6096
6100
  textAlign?: BaseTextProps['textAlign'];
6097
6101
  } & TestID$1 & StyledPropsBlade;
6098
6102
  declare const Title: ({ as, size, type, contrast, color, children, testID, textAlign, ...styledProps }: TitleProps) => ReactElement;
@@ -6110,7 +6114,7 @@ declare type HeadingCommonProps = {
6110
6114
  color?: BaseTextProps['color'];
6111
6115
  type?: TextTypes;
6112
6116
  contrast?: ColorContrastTypes;
6113
- children: StringChildrenType;
6117
+ children: React.ReactNode;
6114
6118
  textAlign?: BaseTextProps['textAlign'];
6115
6119
  } & TestID$1 & StyledPropsBlade;
6116
6120
  declare type HeadingNormalVariant = HeadingCommonProps & {
@@ -1090,10 +1090,14 @@ type SpacingValueType$1 =
1090
1090
  | DotNotationSpacingStringToken
1091
1091
  | `${string}${SpaceUnits$1}`
1092
1092
  | `calc(${string})`
1093
+ | 'auto'
1093
1094
  | `min(${string})`
1094
1095
  | `max(${string})`
1095
- | 'auto'
1096
- | 'none';
1096
+ | 'none'
1097
+ | 'initial'
1098
+ | 'fit-content'
1099
+ | 'max-content'
1100
+ | 'min-content';
1097
1101
 
1098
1102
  type MarginProps$1 = MakeObjectResponsive$1<{
1099
1103
  /**
@@ -1772,7 +1776,7 @@ declare type MakeObjectResponsive<T, K extends keyof T = Extract<keyof T, string
1772
1776
 
1773
1777
  declare type ArrayOfMaxLength4<T> = readonly [T?, T?, T?, T?];
1774
1778
  declare type SpaceUnits = 'px' | '%' | 'fr' | 'rem' | 'em' | 'vh' | 'vw';
1775
- declare type SpacingValueType = DotNotationSpacingStringToken | `${string}${SpaceUnits}` | `calc(${string})` | `min(${string})` | `max(${string})` | 'auto' | 'none';
1779
+ declare type SpacingValueType = DotNotationSpacingStringToken | `${string}${SpaceUnits}` | `calc(${string})` | 'auto' | `min(${string})` | `max(${string})` | 'none' | 'initial' | 'fit-content' | 'max-content' | 'min-content';
1776
1780
  /**
1777
1781
  * @IMPORTANT
1778
1782
  *
@@ -2685,7 +2689,7 @@ declare const CardBody: ({ children, testID }: CardBodyProps) => React__default.
2685
2689
 
2686
2690
  type BladeElementRef = Platform.Select<{
2687
2691
  web:
2688
- | Pick<HTMLElement, 'focus' | 'scrollIntoView' | 'getBoundingClientRect'>
2692
+ | Pick<HTMLElement, 'focus' | 'scrollIntoView' | 'getBoundingClientRect' | 'clientHeight'>
2689
2693
  | Pick<View, 'focus'>;
2690
2694
  native: React.MutableRefObject<any>;
2691
2695
  }>;
@@ -5408,7 +5412,7 @@ declare type TitleProps = {
5408
5412
  size?: 'small' | 'medium' | 'large' | 'xlarge';
5409
5413
  contrast?: ColorContrastTypes;
5410
5414
  type?: TextTypes;
5411
- children: StringChildrenType;
5415
+ children: React.ReactNode;
5412
5416
  textAlign?: BaseTextProps['textAlign'];
5413
5417
  } & TestID & StyledPropsBlade;
5414
5418
  declare const Title: ({ as, size, type, contrast, color, children, testID, textAlign, ...styledProps }: TitleProps) => ReactElement;
@@ -5426,7 +5430,7 @@ declare type HeadingCommonProps = {
5426
5430
  color?: BaseTextProps['color'];
5427
5431
  type?: TextTypes;
5428
5432
  contrast?: ColorContrastTypes;
5429
- children: StringChildrenType;
5433
+ children: React.ReactNode;
5430
5434
  textAlign?: BaseTextProps['textAlign'];
5431
5435
  } & TestID & StyledPropsBlade;
5432
5436
  declare type HeadingNormalVariant = HeadingCommonProps & {
@@ -12,8 +12,9 @@ import { GestureHandlerRootView } from 'react-native-gesture-handler';
12
12
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
13
13
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
14
14
  import GorhomBottomSheet, { BottomSheetSectionList, BottomSheetScrollView, BottomSheetBackdrop as BottomSheetBackdrop$1, BottomSheetFooter as BottomSheetFooter$1 } from '@gorhom/bottom-sheet';
15
- import { ClipPath as ClipPath$1, Circle as Circle$1, Defs as Defs$1, G as G$1, Path as Path$1, Rect as Rect$1, Svg as Svg$1 } from 'react-native-svg';
16
15
  import _regeneratorRuntime from '@babel/runtime/regenerator';
16
+ import '@floating-ui/react';
17
+ import { ClipPath as ClipPath$1, Circle as Circle$1, Defs as Defs$1, G as G$1, Path as Path$1, Rect as Rect$1, Svg as Svg$1 } from 'react-native-svg';
17
18
  import { useFloating, shift, flip, offset, arrow } from '@floating-ui/react-native';
18
19
 
19
20
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};