@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.
@@ -1,6 +1,6 @@
1
+ import _defineProperty$1 from '@babel/runtime/helpers/defineProperty';
1
2
  import _typeof from '@babel/runtime/helpers/typeof';
2
3
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
3
- import _defineProperty$1 from '@babel/runtime/helpers/defineProperty';
4
4
  import { useMemo, useCallback, useState, useEffect, useRef } from 'react';
5
5
 
6
6
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -2787,6 +2787,31 @@ function cloneDeep(value) {
2787
2787
 
2788
2788
  var cloneDeep_1 = cloneDeep;
2789
2789
 
2790
+ var metaAttribute = function metaAttribute(name, value) {
2791
+ if (!value) return {};
2792
+ return _defineProperty$1({}, "data-".concat(name), value);
2793
+ };
2794
+
2795
+ var MetaConstants = {
2796
+ Alert: 'alert',
2797
+ Badge: 'badge',
2798
+ Button: 'button',
2799
+ Checkbox: 'checkbox',
2800
+ CheckboxGroup: 'checkbox-group',
2801
+ Code: 'code',
2802
+ Component: 'blade-component',
2803
+ Counter: 'counter',
2804
+ Icon: 'icon',
2805
+ IconButton: 'icon-button',
2806
+ Indicator: 'indicator',
2807
+ Link: 'link',
2808
+ OTPInput: 'otp-input',
2809
+ Radio: 'radio',
2810
+ RadioGroup: 'radio-group',
2811
+ SkipNav: 'skipnav',
2812
+ Spinner: 'spinner'
2813
+ };
2814
+
2790
2815
  var getColorScheme = function getColorScheme() {
2791
2816
  var colorScheme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'light';
2792
2817
  // @TODO: create a useMediaQuery hook with an event listener which will subscribe to changes and move all this logic there
@@ -5036,5 +5061,5 @@ var castNativeType = function castNativeType(value) {
5036
5061
  return value;
5037
5062
  };
5038
5063
 
5039
- 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 };
5064
+ 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 };
5040
5065
  //# sourceMappingURL=index.web.js.map