@razorpay/blade 5.1.0 → 5.1.2
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.
- package/CHANGELOG.md +12 -0
- package/build/components/index.d.ts +9 -1
- package/build/components/index.native.d.ts +9 -1
- package/build/components/index.native.js +26 -22
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.web.js +222 -147
- package/build/components/index.web.js.map +1 -1
- package/build/css/bankingThemeDarkDesktop.css +1 -1
- package/build/css/bankingThemeDarkMobile.css +1 -1
- package/build/css/bankingThemeLightDesktop.css +1 -1
- package/build/css/bankingThemeLightMobile.css +1 -1
- package/build/css/paymentThemeDarkDesktop.css +1 -1
- package/build/css/paymentThemeDarkMobile.css +1 -1
- package/build/css/paymentThemeLightDesktop.css +1 -1
- package/build/css/paymentThemeLightMobile.css +1 -1
- package/build/utils/index.d.ts +23 -1
- package/build/utils/index.native.d.ts +23 -1
- package/build/utils/index.native.js +5 -1
- package/build/utils/index.native.js.map +1 -1
- package/build/utils/index.web.js +27 -2
- package/build/utils/index.web.js.map +1 -1
- package/package.json +1 -1
package/build/utils/index.d.ts
CHANGED
|
@@ -6,6 +6,28 @@ import { AccessibilityRole } from 'react-native';
|
|
|
6
6
|
export { default as merge } from 'lodash/merge';
|
|
7
7
|
import { MutableRefObject } from 'react';
|
|
8
8
|
|
|
9
|
+
declare const metaAttribute: (name: string, value: string | undefined) => Record<string, string>;
|
|
10
|
+
|
|
11
|
+
declare const MetaConstants: {
|
|
12
|
+
readonly Alert: "alert";
|
|
13
|
+
readonly Badge: "badge";
|
|
14
|
+
readonly Button: "button";
|
|
15
|
+
readonly Checkbox: "checkbox";
|
|
16
|
+
readonly CheckboxGroup: "checkbox-group";
|
|
17
|
+
readonly Code: "code";
|
|
18
|
+
readonly Component: "blade-component";
|
|
19
|
+
readonly Counter: "counter";
|
|
20
|
+
readonly Icon: "icon";
|
|
21
|
+
readonly IconButton: "icon-button";
|
|
22
|
+
readonly Indicator: "indicator";
|
|
23
|
+
readonly Link: "link";
|
|
24
|
+
readonly OTPInput: "otp-input";
|
|
25
|
+
readonly Radio: "radio";
|
|
26
|
+
readonly RadioGroup: "radio-group";
|
|
27
|
+
readonly SkipNav: "skipnav";
|
|
28
|
+
readonly Spinner: "spinner";
|
|
29
|
+
};
|
|
30
|
+
|
|
9
31
|
type Breakpoints = Readonly<{
|
|
10
32
|
/** max width: 320px */
|
|
11
33
|
xs: number;
|
|
@@ -424,4 +446,4 @@ declare const castNativeType: <T>(value: T) => Extract<T, {
|
|
|
424
446
|
__brand__?: "platform-all" | "platform-native" | undefined;
|
|
425
447
|
}>;
|
|
426
448
|
|
|
427
|
-
export { AccessibilityKeys, AccessibilityMap, AccessibilityProps, AriaAttributes, AriaRoles, DeepPartial, MakeSize, Platform, PlatformTypes, UseColorScheme, castNativeType, castWebType, getColorScheme, getPlatformType, isPartialMatchObjectKeys, isReactNative, makeAccessible, makeBezier, makeBorderSize, makeMotionTime, makeSize, makeSpace, makeTypographySize, setupMatchMediaMock, testID, toTitleCase, useBreakpoint, useColorScheme, usePrevious };
|
|
449
|
+
export { AccessibilityKeys, AccessibilityMap, AccessibilityProps, AriaAttributes, AriaRoles, DeepPartial, MakeSize, MetaConstants, Platform, PlatformTypes, UseColorScheme, castNativeType, castWebType, getColorScheme, getPlatformType, isPartialMatchObjectKeys, isReactNative, makeAccessible, makeBezier, makeBorderSize, makeMotionTime, makeSize, makeSpace, makeTypographySize, metaAttribute, setupMatchMediaMock, testID, toTitleCase, useBreakpoint, useColorScheme, usePrevious };
|
|
@@ -7,6 +7,28 @@ import { EasingFunctionFactory } from 'react-native-reanimated';
|
|
|
7
7
|
export { default as merge } from 'lodash/merge';
|
|
8
8
|
import { MutableRefObject } from 'react';
|
|
9
9
|
|
|
10
|
+
declare const metaAttribute: (_name: string, _value: string) => Record<string, string>;
|
|
11
|
+
|
|
12
|
+
declare const MetaConstants: {
|
|
13
|
+
readonly Alert: "alert";
|
|
14
|
+
readonly Badge: "badge";
|
|
15
|
+
readonly Button: "button";
|
|
16
|
+
readonly Checkbox: "checkbox";
|
|
17
|
+
readonly CheckboxGroup: "checkbox-group";
|
|
18
|
+
readonly Code: "code";
|
|
19
|
+
readonly Component: "blade-component";
|
|
20
|
+
readonly Counter: "counter";
|
|
21
|
+
readonly Icon: "icon";
|
|
22
|
+
readonly IconButton: "icon-button";
|
|
23
|
+
readonly Indicator: "indicator";
|
|
24
|
+
readonly Link: "link";
|
|
25
|
+
readonly OTPInput: "otp-input";
|
|
26
|
+
readonly Radio: "radio";
|
|
27
|
+
readonly RadioGroup: "radio-group";
|
|
28
|
+
readonly SkipNav: "skipnav";
|
|
29
|
+
readonly Spinner: "spinner";
|
|
30
|
+
};
|
|
31
|
+
|
|
10
32
|
type Breakpoints = Readonly<{
|
|
11
33
|
/** max width: 320px */
|
|
12
34
|
xs: number;
|
|
@@ -423,4 +445,4 @@ declare const castNativeType: <T>(value: T) => Extract<T, {
|
|
|
423
445
|
__brand__?: "platform-native" | "platform-all" | undefined;
|
|
424
446
|
}>;
|
|
425
447
|
|
|
426
|
-
export { AccessibilityKeys, AccessibilityMap, AccessibilityProps, AriaAttributes, AriaRoles, DeepPartial, MakeSize, Platform, PlatformTypes, UseColorScheme, castNativeType, castWebType, getColorScheme, getPlatformType, isPartialMatchObjectKeys, isReactNative, makeAccessible, makeBezier, makeBorderSize, makeMotionTime, makeSize, makeSpace, makeTypographySize, setupMatchMediaMock, testID, toTitleCase, useBreakpoint, useColorScheme, usePrevious };
|
|
448
|
+
export { AccessibilityKeys, AccessibilityMap, AccessibilityProps, AriaAttributes, AriaRoles, DeepPartial, MakeSize, MetaConstants, Platform, PlatformTypes, UseColorScheme, castNativeType, castWebType, getColorScheme, getPlatformType, isPartialMatchObjectKeys, isReactNative, makeAccessible, makeBezier, makeBorderSize, makeMotionTime, makeSize, makeSpace, makeTypographySize, metaAttribute, setupMatchMediaMock, testID, toTitleCase, useBreakpoint, useColorScheme, usePrevious };
|
|
@@ -2789,6 +2789,10 @@ function cloneDeep(value) {
|
|
|
2789
2789
|
|
|
2790
2790
|
var cloneDeep_1 = cloneDeep;
|
|
2791
2791
|
|
|
2792
|
+
var metaAttribute=function metaAttribute(_name,_value){return {};};
|
|
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',OTPInput:'otp-input',Radio:'radio',RadioGroup:'radio-group',SkipNav:'skipnav',Spinner:'spinner'};
|
|
2795
|
+
|
|
2792
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';};
|
|
2793
2797
|
|
|
2794
2798
|
var baseGetTag$1 = _baseGetTag,
|
|
@@ -4551,5 +4555,5 @@ var Platform;(function(_Platform){})(Platform||(Platform={}));
|
|
|
4551
4555
|
|
|
4552
4556
|
var castWebType=function castWebType(value){return value;};var castNativeType=function castNativeType(value){return value;};
|
|
4553
4557
|
|
|
4554
|
-
export { Platform, castNativeType, castWebType, cloneDeep_1 as cloneDeep, getColorScheme, get_1 as getIn, getPlatformType, isEmpty_1 as isEmpty, isEqual_1 as isEqual, isPartialMatchObjectKeys, isReactNative, makeAccessible, makeBezier, makeBorderSize, makeMotionTime, makeSize, makeSpace, makeTypographySize, merge_1 as merge, setupMatchMediaMock, testID, toTitleCase, useBreakpoint, useColorScheme, usePrevious };
|
|
4558
|
+
export { MetaConstants, Platform, castNativeType, castWebType, cloneDeep_1 as cloneDeep, getColorScheme, get_1 as getIn, getPlatformType, isEmpty_1 as isEmpty, isEqual_1 as isEqual, isPartialMatchObjectKeys, isReactNative, makeAccessible, makeBezier, makeBorderSize, makeMotionTime, makeSize, makeSpace, makeTypographySize, merge_1 as merge, metaAttribute, setupMatchMediaMock, testID, toTitleCase, useBreakpoint, useColorScheme, usePrevious };
|
|
4555
4559
|
//# sourceMappingURL=index.native.js.map
|