@razorpay/blade 8.10.1 → 8.10.3

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.
@@ -5090,5 +5090,18 @@ var assignWithoutSideEffects = function assignWithoutSideEffects(component, sour
5090
5090
  return /*#__PURE__*/Object.assign(component, sourceObj);
5091
5091
  };
5092
5092
 
5093
- export { MetaConstants, Platform, assignWithoutSideEffects, castNativeType, castWebType, cloneDeep_1 as cloneDeep, getColorScheme, getComponentId, get_1 as getIn, getMediaQuery, 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, toTitleCase, useBreakpoint, useColorScheme, usePrevious };
5093
+ // The reason we need to omit them is because styled-component thinks they are valid html attributes
5094
+ // because fontFamily, fontWeight etc are valid SVG props.
5095
+ // Here are list of valid props which emotion checks https://github.com/emotion-js/emotion/blob/main/packages/is-prop-valid/src/props.js
5096
+ // Thus we just need to ignore few of these
5097
+ var filterProps = ['cursor', 'display', 'overflow', 'order', 'color', 'fontFamily', 'fontWeight', 'fontSize', 'fontStyle', 'lineHeight', // width height are only accepted in few components,
5098
+ // canvas, embed, iframe, input, object, video, img
5099
+ // none of them are currently supported in Box
5100
+ 'width', 'height'];
5101
+
5102
+ var omitPropsFromHTML = function omitPropsFromHTML(prop, defaultValidatorFn) {
5103
+ return !filterProps.includes(prop) && defaultValidatorFn(prop);
5104
+ };
5105
+
5106
+ export { MetaConstants, Platform, assignWithoutSideEffects, castNativeType, castWebType, cloneDeep_1 as cloneDeep, getColorScheme, getComponentId, get_1 as getIn, getMediaQuery, 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, omitPropsFromHTML, setupMatchMediaMock, toTitleCase, useBreakpoint, useColorScheme, usePrevious };
5094
5107
  //# sourceMappingURL=index.web.js.map