@razorpay/blade 10.6.0 → 10.7.0

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.
@@ -1934,7 +1934,7 @@ type IconProps$1 = {
1934
1934
  /**
1935
1935
  * Color token (not to be confused with actual hsla value)
1936
1936
  */
1937
- color:
1937
+ color?:
1938
1938
  | ActionIconColors$1
1939
1939
  | SurfaceActionIconColors$1
1940
1940
  | FeedbackIconColors$1
@@ -1942,7 +1942,7 @@ type IconProps$1 = {
1942
1942
  | TextIconColors$1
1943
1943
  | BadgeIconColors$1
1944
1944
  | 'currentColor'; // currentColor is useful for letting the SVG inherit color property from its container
1945
- size: IconSize$1;
1945
+ size?: IconSize$1;
1946
1946
  } & StyledPropsBlade$1;
1947
1947
  type IconComponent$1 = React.ComponentType<IconProps$1>;
1948
1948
 
@@ -5173,8 +5173,8 @@ declare type IconProps = {
5173
5173
  /**
5174
5174
  * Color token (not to be confused with actual hsla value)
5175
5175
  */
5176
- color: ActionIconColors | SurfaceActionIconColors | FeedbackIconColors | FeedbackActionIconColors | TextIconColors | BadgeIconColors | 'currentColor';
5177
- size: IconSize;
5176
+ color?: ActionIconColors | SurfaceActionIconColors | FeedbackIconColors | FeedbackActionIconColors | TextIconColors | BadgeIconColors | 'currentColor';
5177
+ size?: IconSize;
5178
5178
  } & StyledPropsBlade$1;
5179
5179
  declare type IconComponent = React.ComponentType<IconProps>;
5180
5180
 
@@ -2083,7 +2083,7 @@ function setMixed(element,mixed){if(mixed){element.indeterminate=true;}else if(e
2083
2083
 
2084
2084
  var FormHintWrapper=function FormHintWrapper(_ref){var children=_ref.children;return jsx(BaseBox,{display:"flex",flexDirection:"row",alignItems:"center",children:children});};
2085
2085
 
2086
- var iconSize$1={xsmall:size[8],small:size[12],medium:size[16],large:size[20],xlarge:size[24],'2xlarge':size[32]};function useIconProps(_ref){var size=_ref.size,color=_ref.color;var _useTheme=useTheme(),theme=_useTheme.theme;var height=makeSize(iconSize$1[size]);var width=makeSize(iconSize$1[size]);var iconColor=color==='currentColor'?'currentColor':get_1(theme.colors,color,'');return {height:height,width:width,iconColor:iconColor};}
2086
+ var iconSize$1={xsmall:size[8],small:size[12],medium:size[16],large:size[20],xlarge:size[24],'2xlarge':size[32]};function useIconProps(_ref){var _ref$size=_ref.size,size=_ref$size===void 0?'medium':_ref$size,_ref$color=_ref.color,color=_ref$color===void 0?'surface.text.normal.lowContrast':_ref$color;var _useTheme=useTheme(),theme=_useTheme.theme;var height=makeSize(iconSize$1[size]);var width=makeSize(iconSize$1[size]);var iconColor=color==='currentColor'?'currentColor':get_1(theme.colors,color,'');return {height:height,width:width,iconColor:iconColor};}
2087
2087
 
2088
2088
  var _excluded$4X=["size","color"];var ArrowDownIcon=function ArrowDownIcon(_ref){var size=_ref.size,color=_ref.color,styledProps=_objectWithoutProperties(_ref,_excluded$4X);var _useIconProps=useIconProps({size:size,color:color}),height=_useIconProps.height,width=_useIconProps.width,iconColor=_useIconProps.iconColor;return jsx(Svg,Object.assign({},styledProps,{height:height,width:width,viewBox:"0 0 24 24",fill:"none",children:jsx(Path,{d:"M13 4a1 1 0 1 0-2 0v13.586l-4.293-4.293a1 1 0 0 0-1.414 1.414l6 6a1 1 0 0 0 1.414 0l6-6a1 1 0 0 0-1.414-1.414L13 17.586V4Z",fill:iconColor})}));};
2089
2089