@razorpay/blade 8.10.0 → 8.10.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/build/components/index.d.ts +118 -96
- package/build/components/index.native.d.ts +56 -34
- package/build/components/index.native.js +8 -6
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.web.js +179 -113
- 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 +4 -1
- package/build/utils/index.native.d.ts +4 -1
- package/build/utils/index.native.js +3 -1
- package/build/utils/index.native.js.map +1 -1
- package/build/utils/index.web.js +14 -1
- package/build/utils/index.web.js.map +1 -1
- package/package.json +3 -3
package/build/utils/index.web.js
CHANGED
|
@@ -5090,5 +5090,18 @@ var assignWithoutSideEffects = function assignWithoutSideEffects(component, sour
|
|
|
5090
5090
|
return /*#__PURE__*/Object.assign(component, sourceObj);
|
|
5091
5091
|
};
|
|
5092
5092
|
|
|
5093
|
-
|
|
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
|