-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
147 changed files
with
770 additions
and
2,626 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
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
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,38 @@ | ||
import React, {FC} from 'react' | ||
|
||
import {Svg, Path, Circle} from '../primitive' | ||
|
||
export interface FilterIconProps { | ||
size?: number | ||
color?: string | ||
active?: boolean | ||
} | ||
|
||
export const FilterIcon: FC<FilterIconProps> = ({ | ||
size = 6, | ||
color = '#000', | ||
active = false, | ||
}) => ( | ||
<Svg width={size} height={size} viewBox="0 0 24 24" focusable="false"> | ||
<Path | ||
d="M14 6a1 1 0 1 0 2 0 1 1 0 0 0-2 0zm-1.83-1a3.001 3.001 0 0 1 5.66 0H20a1 1 0 0 1 0 2h-2.17a3.001 3.001 0 0 1-5.66 0H4a1 1 0 1 1 0-2h8.17zM8 12a1 1 0 1 0 2 0 1 1 0 0 0-2 0zm-1.83-1a3.001 3.001 0 0 1 5.66 0H20a1 1 0 0 1 0 2h-8.17a3.001 3.001 0 0 1-5.66 0H4a1 1 0 0 1 0-2h2.17zM15 18a1 1 0 1 0 2 0 1 1 0 0 0-2 0zm-1.83-1a3.001 3.001 0 0 1 5.66 0H20a1 1 0 0 1 0 2h-1.17a3.001 3.001 0 0 1-5.66 0H4a1 1 0 0 1 0-2h9.17z" | ||
fill={color} | ||
/> | ||
{active ? ( | ||
<Circle | ||
cx="21" | ||
cy="3" | ||
r="3" | ||
fill="#D0021B" | ||
/> | ||
) : ( | ||
null | ||
)} | ||
</Svg> | ||
) | ||
|
||
FilterIcon.defaultProps = { | ||
size: 6, | ||
color: '#000', | ||
active: false, | ||
} |
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,93 @@ | ||
```jsx noeditor | ||
<Block> | ||
<BlockContent> | ||
<Flex wrap="wrap"> | ||
{Object.keys(IconPaths).map((name, i) => ( | ||
<Flex width={25} key={i} direction="column" align="center" my={3} mx={5}> | ||
<FlexItem mb={4} shrink={0}> | ||
<Icon name={name}/> | ||
</FlexItem> | ||
<FlexItem> | ||
<Paragraph size="s" align="center"> | ||
{name} | ||
</Paragraph> | ||
</FlexItem> | ||
</Flex> | ||
))} | ||
</Flex> | ||
</BlockContent> | ||
</Block> | ||
``` | ||
|
||
### Icon | ||
|
||
```jsx | ||
<Block> | ||
<BlockContent> | ||
<Icon name="qiwi"/> | ||
</BlockContent> | ||
</Block> | ||
``` | ||
|
||
### Special | ||
|
||
```jsx | ||
<Block> | ||
<BlockContent> | ||
<Flex> | ||
<FlexItem width={6} height={6} mr={6} cursor="pointer"> | ||
<QuestionIcon/> | ||
</FlexItem> | ||
<FlexItem width={6} height={6} mr={6} cursor="pointer" onClick={() => setState({filterIconActive: !state.filterIconActive})}> | ||
<FilterIcon active={state.filterIconActive}/> | ||
</FlexItem> | ||
<FlexItem width={6} height={6} cursor="pointer" onClick={() => setState({crossBurgerActive: !state.crossBurgerActive})}> | ||
<CrossBurger active={state.crossBurgerActive}/> | ||
</FlexItem> | ||
</Flex> | ||
</BlockContent> | ||
</Block> | ||
``` | ||
|
||
### Payment systems | ||
|
||
```jsx | ||
<Block> | ||
<BlockContent> | ||
<Flex> | ||
<FlexItem width={12} height={6} mr={6}> | ||
<MastercardIcon/> | ||
</FlexItem> | ||
<FlexItem width={12} height={6} mr={6}> | ||
<MirIcon/> | ||
</FlexItem> | ||
<FlexItem width={12} height={6}> | ||
<VisaIcon/> | ||
</FlexItem> | ||
</Flex> | ||
</BlockContent> | ||
</Block> | ||
``` | ||
|
||
### Security badges | ||
|
||
```jsx | ||
<Block> | ||
<BlockContent> | ||
<Flex> | ||
<FlexItem width={16} height={6} mr={2}> | ||
<PciDssIcon/> | ||
</FlexItem> | ||
<FlexItem width={16} height={6} mr={2}> | ||
<MirAcceptIcon/> | ||
</FlexItem> | ||
<FlexItem width={16} height={6} mr={2}> | ||
<VisaVerifiedIcon/> | ||
</FlexItem> | ||
<FlexItem width={16} height={6}> | ||
<McscIcon/> | ||
</FlexItem> | ||
</Flex> | ||
</BlockContent> | ||
</Block> | ||
``` |
Oops, something went wrong.