@razorpay/blade 6.2.3 → 6.4.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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 28 Feb 2023 07:25:14 GMT
3
+ * Generated on Wed, 15 Mar 2023 07:34:35 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 28 Feb 2023 07:25:14 GMT
3
+ * Generated on Wed, 15 Mar 2023 07:34:35 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 28 Feb 2023 07:25:14 GMT
3
+ * Generated on Wed, 15 Mar 2023 07:34:35 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 28 Feb 2023 07:25:14 GMT
3
+ * Generated on Wed, 15 Mar 2023 07:34:35 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 28 Feb 2023 07:25:14 GMT
3
+ * Generated on Wed, 15 Mar 2023 07:34:35 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 28 Feb 2023 07:25:14 GMT
3
+ * Generated on Wed, 15 Mar 2023 07:34:35 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 28 Feb 2023 07:25:14 GMT
3
+ * Generated on Wed, 15 Mar 2023 07:34:35 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 28 Feb 2023 07:25:14 GMT
3
+ * Generated on Wed, 15 Mar 2023 07:34:35 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -752,6 +752,59 @@ declare type Motion = Readonly<{
752
752
  easing: Easing;
753
753
  }>;
754
754
 
755
+ /**
756
+ * Size tokens are currently not exposed for users (therefore not available in theme)
757
+ */
758
+ declare const size: {
759
+ /** 0 px */
760
+ readonly 0: 0;
761
+ /** 1 px */
762
+ readonly 1: 1;
763
+ /** 2 px */
764
+ readonly 2: 2;
765
+ /** 3 px */
766
+ readonly 3: 3;
767
+ /** 4 px */
768
+ readonly 4: 4;
769
+ /** 5 px */
770
+ readonly 5: 5;
771
+ /** 6 px */
772
+ readonly 6: 6;
773
+ /** 8 px */
774
+ readonly 8: 8;
775
+ /** 10 px */
776
+ readonly 10: 10;
777
+ /** 12 px */
778
+ readonly 12: 12;
779
+ /** 16 px */
780
+ readonly 16: 16;
781
+ /** 18 px */
782
+ readonly 18: 18;
783
+ /** 20 px */
784
+ readonly 20: 20;
785
+ /** 24 px */
786
+ readonly 24: 24;
787
+ /** 28 px */
788
+ readonly 28: 28;
789
+ /** 32 px */
790
+ readonly 32: 32;
791
+ /** 36 px */
792
+ readonly 36: 36;
793
+ /** 40 px */
794
+ readonly 40: 40;
795
+ /** 48 px */
796
+ readonly 48: 48;
797
+ /** 100 px */
798
+ readonly 100: 100;
799
+ /** 120 px */
800
+ readonly 120: 120;
801
+ /** 300 px */
802
+ readonly 300: 300;
803
+ /** 584 px */
804
+ readonly 584: 584;
805
+ };
806
+ declare type Size = typeof size;
807
+
755
808
  type ColorSchemeNames = 'dark' | 'light';
756
809
  type ColorSchemeNamesInput = ColorSchemeNames | 'system';
757
810
 
@@ -952,4 +1005,4 @@ declare const overrideTheme: ({ baseThemeTokens, overrides }: OverrideTheme) =>
952
1005
 
953
1006
  declare const colorSchemeNamesInput: ColorSchemeNamesInput[];
954
1007
 
955
- export { Border$1 as Border, Breakpoints$1 as Breakpoints, Color, ColorSchemeNames, ColorSchemeNamesInput, ColorsWithModes, FontFamily$1 as FontFamily, Motion, Opacity, Shadows, Spacing$1 as Spacing, ThemeTokens, Typography$1 as Typography, bankingTheme, colorSchemeNamesInput, colors, overrideTheme, paymentTheme };
1008
+ export { Border$1 as Border, Breakpoints$1 as Breakpoints, Color, ColorSchemeNames, ColorSchemeNamesInput, ColorsWithModes, FontFamily$1 as FontFamily, Motion, Opacity, Shadows, Size, Spacing$1 as Spacing, ThemeTokens, Typography$1 as Typography, bankingTheme, colorSchemeNamesInput, colors, overrideTheme, paymentTheme };
@@ -752,6 +752,59 @@ declare type Motion = Readonly<{
752
752
  easing: Easing;
753
753
  }>;
754
754
 
755
+ /**
756
+ * Size tokens are currently not exposed for users (therefore not available in theme)
757
+ */
758
+ declare const size: {
759
+ /** 0 px */
760
+ readonly 0: 0;
761
+ /** 1 px */
762
+ readonly 1: 1;
763
+ /** 2 px */
764
+ readonly 2: 2;
765
+ /** 3 px */
766
+ readonly 3: 3;
767
+ /** 4 px */
768
+ readonly 4: 4;
769
+ /** 5 px */
770
+ readonly 5: 5;
771
+ /** 6 px */
772
+ readonly 6: 6;
773
+ /** 8 px */
774
+ readonly 8: 8;
775
+ /** 10 px */
776
+ readonly 10: 10;
777
+ /** 12 px */
778
+ readonly 12: 12;
779
+ /** 16 px */
780
+ readonly 16: 16;
781
+ /** 18 px */
782
+ readonly 18: 18;
783
+ /** 20 px */
784
+ readonly 20: 20;
785
+ /** 24 px */
786
+ readonly 24: 24;
787
+ /** 28 px */
788
+ readonly 28: 28;
789
+ /** 32 px */
790
+ readonly 32: 32;
791
+ /** 36 px */
792
+ readonly 36: 36;
793
+ /** 40 px */
794
+ readonly 40: 40;
795
+ /** 48 px */
796
+ readonly 48: 48;
797
+ /** 100 px */
798
+ readonly 100: 100;
799
+ /** 120 px */
800
+ readonly 120: 120;
801
+ /** 300 px */
802
+ readonly 300: 300;
803
+ /** 584 px */
804
+ readonly 584: 584;
805
+ };
806
+ declare type Size = typeof size;
807
+
755
808
  type ColorSchemeNames = 'dark' | 'light';
756
809
  type ColorSchemeNamesInput = ColorSchemeNames | 'system';
757
810
 
@@ -952,4 +1005,4 @@ declare const overrideTheme: ({ baseThemeTokens, overrides }: OverrideTheme) =>
952
1005
 
953
1006
  declare const colorSchemeNamesInput: ColorSchemeNamesInput[];
954
1007
 
955
- export { Border$1 as Border, Breakpoints$1 as Breakpoints, Color, ColorSchemeNames, ColorSchemeNamesInput, ColorsWithModes, FontFamily$1 as FontFamily, Motion, Opacity, Shadows, Spacing$1 as Spacing, ThemeTokens, Typography$1 as Typography, bankingTheme, colorSchemeNamesInput, colors, overrideTheme, paymentTheme };
1008
+ export { Border$1 as Border, Breakpoints$1 as Breakpoints, Color, ColorSchemeNames, ColorSchemeNamesInput, ColorsWithModes, FontFamily$1 as FontFamily, Motion, Opacity, Shadows, Size, Spacing$1 as Spacing, ThemeTokens, Typography$1 as Typography, bankingTheme, colorSchemeNamesInput, colors, overrideTheme, paymentTheme };
@@ -6,7 +6,10 @@ import React, { MutableRefObject } from 'react';
6
6
  import { AccessibilityRole, Platform as Platform$2 } from 'react-native';
7
7
  export { default as merge } from 'lodash/merge';
8
8
 
9
- declare const metaAttribute: (name: string, value: string | undefined) => Record<string, string>;
9
+ declare const metaAttribute: ({ name, testID, }: {
10
+ name?: string | undefined;
11
+ testID?: string | undefined;
12
+ }) => Record<string, string>;
10
13
 
11
14
  declare const MetaConstants: {
12
15
  readonly ActionList: "action-list";
@@ -40,6 +43,7 @@ declare const MetaConstants: {
40
43
  readonly CardBody: "card-body";
41
44
  readonly CardHeader: "card-header";
42
45
  readonly CardFooter: "card-footer";
46
+ readonly VisuallyHidden: "visually-hidden";
43
47
  };
44
48
 
45
49
  type Breakpoints = Readonly<{
@@ -7,7 +7,10 @@ import { AccessibilityRole, Platform as Platform$2 } from 'react-native';
7
7
  import { EasingFunctionFactory } from 'react-native-reanimated';
8
8
  export { default as merge } from 'lodash/merge';
9
9
 
10
- declare const metaAttribute: (_name: string, _value: string) => Record<string, string>;
10
+ declare const metaAttribute: ({ testID }: {
11
+ name?: string | undefined;
12
+ testID?: string | undefined;
13
+ }) => Record<string, string>;
11
14
 
12
15
  declare const MetaConstants: {
13
16
  readonly ActionList: "action-list";
@@ -41,6 +44,7 @@ declare const MetaConstants: {
41
44
  readonly CardBody: "card-body";
42
45
  readonly CardHeader: "card-header";
43
46
  readonly CardFooter: "card-footer";
47
+ readonly VisuallyHidden: "visually-hidden";
44
48
  };
45
49
 
46
50
  type Breakpoints = Readonly<{
@@ -1,8 +1,8 @@
1
+ import _extends from '@babel/runtime/helpers/extends';
1
2
  import { Appearance, Platform as Platform$1 } from 'react-native';
2
3
  import React, { useMemo, useCallback, useState, useEffect, useRef } from 'react';
3
4
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
4
5
  import _defineProperty$1 from '@babel/runtime/helpers/defineProperty';
5
- import _extends from '@babel/runtime/helpers/extends';
6
6
  import { Easing } from 'react-native-reanimated';
7
7
 
8
8
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -2789,9 +2789,9 @@ function cloneDeep(value) {
2789
2789
 
2790
2790
  var cloneDeep_1 = cloneDeep;
2791
2791
 
2792
- var metaAttribute=function metaAttribute(_name,_value){return {};};
2792
+ var metaAttribute=function metaAttribute(_ref){var testID=_ref.testID;return _extends({},testID?{testID:testID}:{});};
2793
2793
 
2794
- var MetaConstants={ActionList:'action-list',ActionListFooter:'action-list-footer',ActionListHeader:'action-list-header',ActionListItem:'action-list-item',ActionListSection:'action-list-section',Alert:'alert',Badge:'badge',Button:'button',Checkbox:'checkbox',CheckboxGroup:'checkbox-group',Code:'code',Component:'blade-component',Counter:'counter',DropdownOverlay:'dropdown-overlay',Icon:'icon',IconButton:'icon-button',Indicator:'indicator',Link:'link',List:'list',ListItem:'list-item',OTPInput:'otp-input',ProgressBar:'progress-bar',Radio:'radio',RadioGroup:'radio-group',SkipNav:'skipnav',Spinner:'spinner',SelectInput:'select-input',Card:'card',CardBody:'card-body',CardHeader:'card-header',CardFooter:'card-footer'};
2794
+ var MetaConstants={ActionList:'action-list',ActionListFooter:'action-list-footer',ActionListHeader:'action-list-header',ActionListItem:'action-list-item',ActionListSection:'action-list-section',Alert:'alert',Badge:'badge',Button:'button',Checkbox:'checkbox',CheckboxGroup:'checkbox-group',Code:'code',Component:'blade-component',Counter:'counter',DropdownOverlay:'dropdown-overlay',Icon:'icon',IconButton:'icon-button',Indicator:'indicator',Link:'link',List:'list',ListItem:'list-item',OTPInput:'otp-input',ProgressBar:'progress-bar',Radio:'radio',RadioGroup:'radio-group',SkipNav:'skipnav',Spinner:'spinner',SelectInput:'select-input',Card:'card',CardBody:'card-body',CardHeader:'card-header',CardFooter:'card-footer',VisuallyHidden:'visually-hidden'};
2795
2795
 
2796
2796
  var getColorScheme=function getColorScheme(){var colorScheme=arguments.length>0&&arguments[0]!==undefined?arguments[0]:'light';if(colorScheme==='light'||colorScheme==='dark'){return colorScheme;}if(colorScheme==='system'){var _Appearance$getColorS;return (_Appearance$getColorS=Appearance.getColorScheme())!=null?_Appearance$getColorS:'light';}return 'light';};
2797
2797