@razorpay/blade 6.1.0 → 6.2.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 Wed, 08 Feb 2023 07:35:10 GMT
3
+ * Generated on Mon, 13 Feb 2023 05:49:45 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 08 Feb 2023 07:35:10 GMT
3
+ * Generated on Mon, 13 Feb 2023 05:49:45 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 08 Feb 2023 07:35:10 GMT
3
+ * Generated on Mon, 13 Feb 2023 05:49:45 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 08 Feb 2023 07:35:10 GMT
3
+ * Generated on Mon, 13 Feb 2023 05:49:45 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 08 Feb 2023 07:35:10 GMT
3
+ * Generated on Mon, 13 Feb 2023 05:49:45 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 08 Feb 2023 07:35:10 GMT
3
+ * Generated on Mon, 13 Feb 2023 05:49:45 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 08 Feb 2023 07:35:10 GMT
3
+ * Generated on Mon, 13 Feb 2023 05:49:44 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 08 Feb 2023 07:35:10 GMT
3
+ * Generated on Mon, 13 Feb 2023 05:49:45 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -3,12 +3,17 @@ export { default as getIn } from 'lodash/get';
3
3
  export { default as isEmpty } from 'lodash/isEmpty';
4
4
  export { default as isEqual } from 'lodash/isEqual';
5
5
  import React, { MutableRefObject } from 'react';
6
- import { AccessibilityRole } from 'react-native';
6
+ import { AccessibilityRole, Platform as Platform$2 } from 'react-native';
7
7
  export { default as merge } from 'lodash/merge';
8
8
 
9
9
  declare const metaAttribute: (name: string, value: string | undefined) => Record<string, string>;
10
10
 
11
11
  declare const MetaConstants: {
12
+ readonly ActionList: "action-list";
13
+ readonly ActionListFooter: "action-list-footer";
14
+ readonly ActionListHeader: "action-list-header";
15
+ readonly ActionListItem: "action-list-item";
16
+ readonly ActionListSection: "action-list-section";
12
17
  readonly Alert: "alert";
13
18
  readonly Badge: "badge";
14
19
  readonly Button: "button";
@@ -17,6 +22,7 @@ declare const MetaConstants: {
17
22
  readonly Code: "code";
18
23
  readonly Component: "blade-component";
19
24
  readonly Counter: "counter";
25
+ readonly DropdownOverlay: "dropdown-overlay";
20
26
  readonly Icon: "icon";
21
27
  readonly IconButton: "icon-button";
22
28
  readonly Indicator: "indicator";
@@ -29,6 +35,7 @@ declare const MetaConstants: {
29
35
  readonly RadioGroup: "radio-group";
30
36
  readonly SkipNav: "skipnav";
31
37
  readonly Spinner: "spinner";
38
+ readonly SelectInput: "select-input";
32
39
  readonly Card: "card";
33
40
  readonly CardBody: "card-body";
34
41
  readonly CardHeader: "card-header";
@@ -405,6 +412,9 @@ declare function usePrevious<T>(value: T): MutableRefObject<T | undefined>['curr
405
412
 
406
413
  declare const isReactNative: () => boolean;
407
414
 
415
+ declare const getOS: () => typeof Platform$2.OS;
416
+ declare const isAndroid: () => boolean;
417
+
408
418
  /**
409
419
  * Brands a type making them act as nominal
410
420
  * @see https://medium.com/@KevinBGreene/surviving-the-typescript-ecosystem-branding-and-type-tagging-6cf6e516523d
@@ -468,4 +478,4 @@ declare const castNativeType: <T>(value: T) => Extract<T, {
468
478
  __brand__?: "platform-all" | "platform-native" | undefined;
469
479
  }>;
470
480
 
471
- export { AccessibilityKeys, AccessibilityMap, AccessibilityProps, AriaAttributes, AriaRoles, DeepPartial, MakeSize, MetaConstants, Platform, PlatformTypes, UseColorScheme, WithComponentId, castNativeType, castWebType, getColorScheme, getComponentId, getPlatformType, isPartialMatchObjectKeys, isReactNative, isValidAllowedChildren, makeAccessible, makeBezier, makeBorderSize, makeMotionTime, makeSize, makeSpace, makeTypographySize, metaAttribute, setupMatchMediaMock, testID, toTitleCase, useBreakpoint, useColorScheme, usePrevious };
481
+ export { AccessibilityKeys, AccessibilityMap, AccessibilityProps, AriaAttributes, AriaRoles, DeepPartial, MakeSize, MetaConstants, Platform, PlatformTypes, UseColorScheme, WithComponentId, castNativeType, castWebType, getColorScheme, getComponentId, getOS, getPlatformType, isAndroid, isPartialMatchObjectKeys, isReactNative, isValidAllowedChildren, makeAccessible, makeBezier, makeBorderSize, makeMotionTime, makeSize, makeSpace, makeTypographySize, metaAttribute, setupMatchMediaMock, testID, toTitleCase, useBreakpoint, useColorScheme, usePrevious };
@@ -3,13 +3,18 @@ export { default as getIn } from 'lodash/get';
3
3
  export { default as isEmpty } from 'lodash/isEmpty';
4
4
  export { default as isEqual } from 'lodash/isEqual';
5
5
  import React, { MutableRefObject } from 'react';
6
- import { AccessibilityRole } from 'react-native';
6
+ 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
10
  declare const metaAttribute: (_name: string, _value: string) => Record<string, string>;
11
11
 
12
12
  declare const MetaConstants: {
13
+ readonly ActionList: "action-list";
14
+ readonly ActionListFooter: "action-list-footer";
15
+ readonly ActionListHeader: "action-list-header";
16
+ readonly ActionListItem: "action-list-item";
17
+ readonly ActionListSection: "action-list-section";
13
18
  readonly Alert: "alert";
14
19
  readonly Badge: "badge";
15
20
  readonly Button: "button";
@@ -18,6 +23,7 @@ declare const MetaConstants: {
18
23
  readonly Code: "code";
19
24
  readonly Component: "blade-component";
20
25
  readonly Counter: "counter";
26
+ readonly DropdownOverlay: "dropdown-overlay";
21
27
  readonly Icon: "icon";
22
28
  readonly IconButton: "icon-button";
23
29
  readonly Indicator: "indicator";
@@ -30,6 +36,7 @@ declare const MetaConstants: {
30
36
  readonly RadioGroup: "radio-group";
31
37
  readonly SkipNav: "skipnav";
32
38
  readonly Spinner: "spinner";
39
+ readonly SelectInput: "select-input";
33
40
  readonly Card: "card";
34
41
  readonly CardBody: "card-body";
35
42
  readonly CardHeader: "card-header";
@@ -404,6 +411,9 @@ declare function usePrevious<T>(value: T): MutableRefObject<T | undefined>['curr
404
411
 
405
412
  declare const isReactNative: () => boolean;
406
413
 
414
+ declare const getOS: () => typeof Platform$2.OS;
415
+ declare const isAndroid: () => boolean;
416
+
407
417
  /**
408
418
  * Brands a type making them act as nominal
409
419
  * @see https://medium.com/@KevinBGreene/surviving-the-typescript-ecosystem-branding-and-type-tagging-6cf6e516523d
@@ -467,4 +477,4 @@ declare const castNativeType: <T>(value: T) => Extract<T, {
467
477
  __brand__?: "platform-native" | "platform-all" | undefined;
468
478
  }>;
469
479
 
470
- export { AccessibilityKeys, AccessibilityMap, AccessibilityProps, AriaAttributes, AriaRoles, DeepPartial, MakeSize, MetaConstants, Platform, PlatformTypes, UseColorScheme, WithComponentId, castNativeType, castWebType, getColorScheme, getComponentId, getPlatformType, isPartialMatchObjectKeys, isReactNative, isValidAllowedChildren, makeAccessible, makeBezier, makeBorderSize, makeMotionTime, makeSize, makeSpace, makeTypographySize, metaAttribute, setupMatchMediaMock, testID, toTitleCase, useBreakpoint, useColorScheme, usePrevious };
480
+ export { AccessibilityKeys, AccessibilityMap, AccessibilityProps, AriaAttributes, AriaRoles, DeepPartial, MakeSize, MetaConstants, Platform, PlatformTypes, UseColorScheme, WithComponentId, castNativeType, castWebType, getColorScheme, getComponentId, getOS, getPlatformType, isAndroid, isPartialMatchObjectKeys, isReactNative, isValidAllowedChildren, makeAccessible, makeBezier, makeBorderSize, makeMotionTime, makeSize, makeSpace, makeTypographySize, metaAttribute, setupMatchMediaMock, testID, toTitleCase, useBreakpoint, useColorScheme, usePrevious };
@@ -2791,7 +2791,7 @@ var cloneDeep_1 = cloneDeep;
2791
2791
 
2792
2792
  var metaAttribute=function metaAttribute(_name,_value){return {};};
2793
2793
 
2794
- var MetaConstants={Alert:'alert',Badge:'badge',Button:'button',Checkbox:'checkbox',CheckboxGroup:'checkbox-group',Code:'code',Component:'blade-component',Counter:'counter',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',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'};
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
 
@@ -4553,9 +4553,11 @@ function usePrevious(value){var ref=useRef();useEffect(function(){ref.current=va
4553
4553
 
4554
4554
  var isReactNative=function isReactNative(){return getPlatformType()==='react-native';};
4555
4555
 
4556
+ var getOS=function getOS(){return Platform$1.OS;};var isAndroid=function isAndroid(){return getOS()==='android';};
4557
+
4556
4558
  var Platform;(function(_Platform){})(Platform||(Platform={}));
4557
4559
 
4558
4560
  var castWebType=function castWebType(value){return value;};var castNativeType=function castNativeType(value){return value;};
4559
4561
 
4560
- export { MetaConstants, Platform, castNativeType, castWebType, cloneDeep_1 as cloneDeep, getColorScheme, getComponentId, get_1 as getIn, getPlatformType, isEmpty_1 as isEmpty, isEqual_1 as isEqual, isPartialMatchObjectKeys, isReactNative, isValidAllowedChildren, makeAccessible, makeBezier, makeBorderSize, makeMotionTime, makeSize, makeSpace, makeTypographySize, merge_1 as merge, metaAttribute, setupMatchMediaMock, testID, toTitleCase, useBreakpoint, useColorScheme, usePrevious };
4562
+ export { MetaConstants, Platform, castNativeType, castWebType, cloneDeep_1 as cloneDeep, getColorScheme, getComponentId, get_1 as getIn, getOS, getPlatformType, isAndroid, isEmpty_1 as isEmpty, isEqual_1 as isEqual, isPartialMatchObjectKeys, isReactNative, isValidAllowedChildren, makeAccessible, makeBezier, makeBorderSize, makeMotionTime, makeSize, makeSpace, makeTypographySize, merge_1 as merge, metaAttribute, setupMatchMediaMock, testID, toTitleCase, useBreakpoint, useColorScheme, usePrevious };
4561
4563
  //# sourceMappingURL=index.native.js.map