-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: update * Create real-seahorses-accept.md
- Loading branch information
1 parent
e322332
commit f036ef5
Showing
10 changed files
with
147 additions
and
835 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@razorpay/blade": minor | ||
--- | ||
|
||
feat: add EqualsIcon |
Large diffs are not rendered by default.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
packages/blade/src/components/Icons/EqualsIcon/EqualsIcon.native.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import EqualsIcon from '.'; | ||
import renderWithTheme from '~utils/testing/renderWithTheme.native'; | ||
|
||
describe('<EqualsIcon />', () => { | ||
it('should render EqualsIcon', () => { | ||
const renderTree = renderWithTheme( | ||
<EqualsIcon color="feedback.icon.neutral.intense" size="large" />, | ||
).toJSON(); | ||
expect(renderTree).toMatchSnapshot(); | ||
}); | ||
}); |
20 changes: 20 additions & 0 deletions
20
packages/blade/src/components/Icons/EqualsIcon/EqualsIcon.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Svg, Path } from '../_Svg'; | ||
import type { IconComponent } from '..'; | ||
import useIconProps from '../useIconProps'; | ||
|
||
const EqualsIcon: IconComponent = ({ size, color, ...styledProps }) => { | ||
const { height, width, iconColor } = useIconProps({ size, color }); | ||
|
||
return ( | ||
<Svg {...styledProps} width={width} height={height} viewBox="0 0 24 24" fill="none"> | ||
<Path | ||
fillRule="evenodd" | ||
clipRule="evenodd" | ||
d="M5 8C4.44772 8 4 8.44772 4 9C4 9.55228 4.44772 10 5 10H19C19.5523 10 20 9.55228 20 9C20 8.44772 19.5523 8 19 8H5ZM5 14C4.44772 14 4 14.4477 4 15C4 15.5523 4.44772 16 5 16H19C19.5523 16 20 15.5523 20 15C20 14.4477 19.5523 14 19 14H5Z" | ||
fill={iconColor} | ||
/> | ||
</Svg> | ||
); | ||
}; | ||
|
||
export default EqualsIcon; |
11 changes: 11 additions & 0 deletions
11
packages/blade/src/components/Icons/EqualsIcon/EqualsIcon.web.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import EqualsIcon from './'; | ||
import renderWithTheme from '~utils/testing/renderWithTheme.web'; | ||
|
||
describe('<EqualsIcon />', () => { | ||
it('should render EqualsIcon', () => { | ||
const { container } = renderWithTheme( | ||
<EqualsIcon color="feedback.icon.neutral.intense" size="large" />, | ||
); | ||
expect(container).toMatchSnapshot(); | ||
}); | ||
}); |
72 changes: 72 additions & 0 deletions
72
packages/blade/src/components/Icons/EqualsIcon/__snapshots__/EqualsIcon.native.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`<EqualsIcon /> should render EqualsIcon 1`] = ` | ||
<View | ||
style={ | ||
{ | ||
"flex": 1, | ||
} | ||
} | ||
> | ||
<RNSVGSvgView | ||
accessibilityElementsHidden={true} | ||
align="xMidYMid" | ||
bbHeight="20px" | ||
bbWidth="20px" | ||
data-blade-component="icon" | ||
fill="none" | ||
focusable={false} | ||
height="20px" | ||
importantForAccessibility="no-hide-descendants" | ||
meetOrSlice={0} | ||
minX={0} | ||
minY={0} | ||
style={ | ||
[ | ||
{ | ||
"backgroundColor": "transparent", | ||
"borderWidth": 0, | ||
}, | ||
[ | ||
{}, | ||
], | ||
{ | ||
"flex": 0, | ||
"height": 20, | ||
"width": 20, | ||
}, | ||
] | ||
} | ||
vbHeight={24} | ||
vbWidth={24} | ||
width="20px" | ||
> | ||
<RNSVGGroup | ||
fill={null} | ||
propList={ | ||
[ | ||
"fill", | ||
] | ||
} | ||
> | ||
<RNSVGPath | ||
clipRule={0} | ||
d="M5 8C4.44772 8 4 8.44772 4 9C4 9.55228 4.44772 10 5 10H19C19.5523 10 20 9.55228 20 9C20 8.44772 19.5523 8 19 8H5ZM5 14C4.44772 14 4 14.4477 4 15C4 15.5523 4.44772 16 5 16H19C19.5523 16 20 15.5523 20 15C20 14.4477 19.5523 14 19 14H5Z" | ||
fill={ | ||
{ | ||
"payload": 4280563015, | ||
"type": 0, | ||
} | ||
} | ||
fillRule={0} | ||
propList={ | ||
[ | ||
"fill", | ||
"fillRule", | ||
] | ||
} | ||
/> | ||
</RNSVGGroup> | ||
</RNSVGSvgView> | ||
</View> | ||
`; |
23 changes: 23 additions & 0 deletions
23
packages/blade/src/components/Icons/EqualsIcon/__snapshots__/EqualsIcon.web.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`<EqualsIcon /> should render EqualsIcon 1`] = ` | ||
<div> | ||
<svg | ||
aria-hidden="true" | ||
class="Svgweb__StyledSvg-vcmjs8-0" | ||
data-blade-component="icon" | ||
fill="none" | ||
height="20px" | ||
viewBox="0 0 24 24" | ||
width="20px" | ||
> | ||
<path | ||
clip-rule="evenodd" | ||
d="M5 8C4.44772 8 4 8.44772 4 9C4 9.55228 4.44772 10 5 10H19C19.5523 10 20 9.55228 20 9C20 8.44772 19.5523 8 19 8H5ZM5 14C4.44772 14 4 14.4477 4 15C4 15.5523 4.44772 16 5 16H19C19.5523 16 20 15.5523 20 15C20 14.4477 19.5523 14 19 14H5Z" | ||
data-blade-component="svg-path" | ||
fill="hsla(211, 33%, 21%, 1)" | ||
fill-rule="evenodd" | ||
/> | ||
</svg> | ||
</div> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './EqualsIcon'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters