@razorpay/blade 7.0.4 → 7.1.1

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.
@@ -5121,5 +5121,43 @@ var castNativeType = function castNativeType(value) {
5121
5121
  return value;
5122
5122
  };
5123
5123
 
5124
- export { MetaConstants, Platform, 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, testID, toTitleCase, useBreakpoint, useColorScheme, usePrevious };
5124
+ /**
5125
+ * Do you want to define `displayName` or `componentId` on your component? Use this instead to make sure treeshaking doesn't break.
5126
+ *
5127
+ * ## Usage
5128
+ *
5129
+ * ### ❌ Incorrect Code (Breaks treeshaking)
5130
+ *
5131
+ * ```ts
5132
+ * const _MyComponent = () => {};
5133
+ * const MyComponent = React.forwardRef(_MyComponent);
5134
+ * const MyComponent.displayName = 'MyComponent'; // this breaks treeshaking
5135
+ *
5136
+ * export { MyComponent }
5137
+ * ```
5138
+ *
5139
+ * ### ✅ Correct Code (No Side-Effects. Treeshaking continues to work)
5140
+ *
5141
+ * ```ts
5142
+ * const _MyComponent = () => {};
5143
+ * const MyComponentWithRef = React.forwardRef(_MyComponent);
5144
+ * const MyComponent = assignWithoutSideEffects(
5145
+ * MyComponentWithRef,
5146
+ * { displayName: 'MyComponent' }
5147
+ * );
5148
+ *
5149
+ * export { MyComponent }
5150
+ * ```
5151
+ *
5152
+ * Checkout other components like [Button.tsx](../../components/Button/Button/Button.tsx), [SelectInput.tsx](../../components/Input/SelectInput/SelectInput.tsx) for example.
5153
+ *
5154
+ * _Note: You don't have to add PURE comment to this function as it is added during build-time by our `manualPureFunctions` babel plugin_
5155
+ */
5156
+ // We're matching the types of this with Object.assign types
5157
+ // eslint-disable-next-line @typescript-eslint/ban-types
5158
+ var assignWithoutSideEffects = function assignWithoutSideEffects(component, sourceObj) {
5159
+ return /*#__PURE__*/Object.assign(component, sourceObj);
5160
+ };
5161
+
5162
+ 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, testID, toTitleCase, useBreakpoint, useColorScheme, usePrevious };
5125
5163
  //# sourceMappingURL=index.web.js.map