-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: removing bootstrap from the project and improvements for displa…
…ying the info
- Loading branch information
1 parent
1e77dfe
commit 7c81716
Showing
34 changed files
with
1,775 additions
and
2,685 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 @@ | ||
import * as React from 'react'; | ||
import { useTheme } from 'styled-components'; | ||
|
||
import { HFlex, Typography } from '@devoinc/genesys-ui'; | ||
|
||
type Props = { | ||
property: string; | ||
concept: string; | ||
scale: string; | ||
}; | ||
|
||
export const ColorInfo: React.FC<Props> = ({ property, scale, concept }) => { | ||
const theme = useTheme(); | ||
const evalColor = theme.alias.color[property][concept][scale]; | ||
return ( | ||
<HFlex> | ||
<div | ||
style={{ backgroundColor: evalColor, height: '48px', width: '48px' }} | ||
/> | ||
<Typography.Caption>{evalColor}</Typography.Caption> | ||
</HFlex> | ||
); | ||
}; |
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 * from './ColorInfo'; |
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 * as React from 'react'; | ||
import { Col as UICol, ColProps } from '@devoinc/genesys-ui'; | ||
import { getEvalClassName } from './utils'; | ||
|
||
export interface DSColProps | ||
extends Omit<ColProps, 'xs' | 'xl' | 'xxl' | 'xxxl'> {} | ||
|
||
export const Col: React.FC<DSColProps> = ({ | ||
className, | ||
sm, | ||
md, | ||
lg, | ||
...props | ||
}) => { | ||
return ( | ||
<UICol | ||
{...props} | ||
sm={sm} | ||
md={md} | ||
lg={lg} | ||
className={className || getEvalClassName({ sm, md, lg })} | ||
/> | ||
); | ||
}; |
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 * as React from 'react'; | ||
import { Row as UIRow, RowProps } from '@devoinc/genesys-ui'; | ||
|
||
export const Row: React.FC<RowProps> = ({ className = 'row', ...props }) => { | ||
return <UIRow {...props} className={className} />; | ||
}; |
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,2 @@ | ||
export * from './Row'; | ||
export * from './Col'; |
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,18 @@ | ||
import { ColProps } from '@devoinc/genesys-ui'; | ||
|
||
export const getEvalClassName = ({ | ||
sm, | ||
md, | ||
lg, | ||
}: { | ||
sm: ColProps['sm']; | ||
md: ColProps['md']; | ||
lg: ColProps['lg']; | ||
}) => { | ||
return ''.concat( | ||
'col', | ||
sm ? ` col-sm-${sm}` : '', | ||
md ? ` col-md-${md}` : '', | ||
lg ? ` col-lg-${lg}` : '', | ||
); | ||
}; |
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
Oops, something went wrong.