-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from Gkuzin13/dev
Dev
- Loading branch information
Showing
13 changed files
with
102 additions
and
44 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
apps/client/src/components/Elements/Icon/ExtraLarge/ExtraLarge.styled.ts
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 { styled } from 'shared'; | ||
|
||
export const Root = styled('div', { | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
svg: { | ||
margin: '0 -$1', | ||
padding: '1px', | ||
}, | ||
}); |
14 changes: 14 additions & 0 deletions
14
apps/client/src/components/Elements/Icon/ExtraLarge/ExtraLarge.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,14 @@ | ||
import { TbLetterL, TbLetterX } from 'react-icons/tb'; | ||
import * as Styled from './ExtraLarge.styled'; | ||
import type { IconBaseProps } from 'react-icons'; | ||
|
||
const ExtraLarge = (props: IconBaseProps) => { | ||
return ( | ||
<Styled.Root> | ||
<TbLetterX {...props} name="letterX" size="lg" /> | ||
<TbLetterL {...props} name="letterL" size="lg" /> | ||
</Styled.Root> | ||
); | ||
}; | ||
|
||
export default ExtraLarge; |
6 changes: 6 additions & 0 deletions
6
apps/client/src/components/Elements/Icon/FilledSolid/FilledSolid.styled.ts
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,6 @@ | ||
import { TbSquaresFilled } from 'react-icons/tb'; | ||
import { styled } from 'shared'; | ||
|
||
export const Root = styled(TbSquaresFilled, { | ||
transform: 'rotate(-90deg)', | ||
}); |
8 changes: 8 additions & 0 deletions
8
apps/client/src/components/Elements/Icon/FilledSolid/FilledSolid.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,8 @@ | ||
import * as Styled from './FilledSolid.styled'; | ||
import type { IconBaseProps } from 'react-icons'; | ||
|
||
const FilledSolid = (props: IconBaseProps) => { | ||
return <Styled.Root {...props} />; | ||
}; | ||
|
||
export default FilledSolid; |
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,24 @@ | ||
import type { IconProps } from './Icon'; | ||
|
||
export const SIZE = { | ||
xs: 12, | ||
sm: 16, | ||
md: 18, | ||
lg: 20, | ||
xl: 24, | ||
} as const; | ||
|
||
export const STROKE = { | ||
sm: 1.5, | ||
md: 1.75, | ||
lg: 2, | ||
xl: 2.5, | ||
} as const; | ||
|
||
export function getIconSize(value: IconProps['size']) { | ||
return SIZE[value ?? 'md']; | ||
} | ||
|
||
export function getIconStrokeWidth(value: IconProps['stroke']) { | ||
return typeof value === 'number' ? value : STROKE[value ?? 'md']; | ||
} |
6 changes: 6 additions & 0 deletions
6
apps/client/src/components/Panels/ControlPanel/ControlPanel.styled.ts
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,6 @@ | ||
import { styled } from 'shared'; | ||
import { Panel } from '../Panels.styled'; | ||
|
||
export const Container = styled(Panel, { | ||
marginRight: 'auto', | ||
}); |
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
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