-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(fuselage): States Component Font Style (#579)
Co-authored-by: Guilherme Gazzo <guilhermegazzo@gmail.com>
- Loading branch information
1 parent
aa22b55
commit 4322376
Showing
21 changed files
with
111 additions
and
52 deletions.
There are no files selected for viewing
Binary file modified
BIN
-7.21 KB
(89%)
packages/fuselage/.loki/reference/chrome_iphone7_States_States_Action_Button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-5.38 KB
(87%)
...ki/reference/chrome_iphone7_States_States_Action_Button_With_No_Suggestions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-7.96 KB
(88%)
packages/fuselage/.loki/reference/chrome_iphone7_States_States_Default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-5.82 KB
(82%)
packages/fuselage/.loki/reference/chrome_laptop_States_States_Action_Button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.06 KB
(84%)
...oki/reference/chrome_laptop_States_States_Action_Button_With_No_Suggestions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-6.39 KB
(81%)
packages/fuselage/.loki/reference/chrome_laptop_States_States_Default.png
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,9 @@ | ||
import React, { FC, ComponentProps } from 'react'; | ||
import React, { FC } from 'react'; | ||
|
||
import { Button } from '..'; | ||
import { ButtonGroup } from '../ButtonGroup'; | ||
import { Icon } from '../Icon'; | ||
import './States.styles.scss'; | ||
|
||
export const States: FC = ({ children }) => ( | ||
const States: FC = ({ children }) => ( | ||
<div className='rcx-states'>{children}</div> | ||
); | ||
|
||
export const StatesIcon: FC<{ | ||
name: ComponentProps<typeof Icon>['name']; | ||
// variation?: 'danger'; | ||
}> = ({ name }) => ( | ||
<div className='rcx-states__icon'> | ||
<Icon name={name} size='x32' /> | ||
</div> | ||
); | ||
|
||
export const StatesTitle: FC = ({ children }) => ( | ||
<div className='rcx-states__title'>{children}</div> | ||
); | ||
export const StatesSubtitle: FC = ({ children }) => ( | ||
<div className='rcx-states__subtitle'>{children}</div> | ||
); | ||
|
||
export const StatesSuggestion: FC = ({ children }) => ( | ||
<div className='rcx-states__suggestion'>{children}</div> | ||
); | ||
export const StatesSuggestionText: FC = ({ children }) => ( | ||
<div className='rcx-states__suggestion-text'>{children}</div> | ||
); | ||
|
||
export const StatesSuggestionList: FC = ({ children }) => ( | ||
<ul className='rcx-states__list'>{children}</ul> | ||
); | ||
|
||
export const StatesSuggestionListItem: FC = ({ children }) => ( | ||
<li className='rcx-states__list-item'> | ||
<span className='rcx-states__list-item-wrapper'>{children}</span> | ||
</li> | ||
); | ||
|
||
export const StatesActions: FC<ComponentProps<typeof ButtonGroup>> = ({ | ||
children, | ||
...props | ||
}) => <ButtonGroup {...props}> {children} </ButtonGroup>; | ||
|
||
export const StatesAction: FC<ComponentProps<typeof Button>> = ({ | ||
...props | ||
}) => <Button primary {...props} />; | ||
export default States; |
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,9 @@ | ||
import React, { FC, ComponentProps } from 'react'; | ||
|
||
import { Button } from '..'; | ||
|
||
const StatesAction: FC<ComponentProps<typeof Button>> = ({ ...props }) => ( | ||
<Button primary {...props} /> | ||
); | ||
|
||
export default StatesAction; |
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,10 @@ | ||
import React, { FC, ComponentProps } from 'react'; | ||
|
||
import { ButtonGroup } from '../ButtonGroup'; | ||
|
||
const StatesActions: FC<ComponentProps<typeof ButtonGroup>> = ({ | ||
children, | ||
...props | ||
}) => <ButtonGroup {...props}> {children} </ButtonGroup>; | ||
|
||
export default StatesActions; |
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 React, { FC, ComponentProps } from 'react'; | ||
|
||
import { Icon } from '../Icon'; | ||
|
||
const StatesIcon: FC<{ | ||
name: ComponentProps<typeof Icon>['name']; | ||
// variation?: 'danger'; | ||
}> = ({ name }) => ( | ||
<div className='rcx-states__icon'> | ||
<Icon name={name} size='x32' /> | ||
</div> | ||
); | ||
|
||
export default StatesIcon; |
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,7 @@ | ||
import React, { FC } from 'react'; | ||
|
||
const StatesSubtitle: FC = ({ children }) => ( | ||
<div className='rcx-states__subtitle'>{children}</div> | ||
); | ||
|
||
export default StatesSubtitle; |
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,7 @@ | ||
import React, { FC } from 'react'; | ||
|
||
const StatesSuggestion: FC = ({ children }) => ( | ||
<div className='rcx-states__suggestion'>{children}</div> | ||
); | ||
|
||
export default StatesSuggestion; |
7 changes: 7 additions & 0 deletions
7
packages/fuselage/src/components/States/StatesSuggestionList.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,7 @@ | ||
import React, { FC } from 'react'; | ||
|
||
const StatesSuggestionList: FC = ({ children }) => ( | ||
<ul className='rcx-states__list'>{children}</ul> | ||
); | ||
|
||
export default StatesSuggestionList; |
9 changes: 9 additions & 0 deletions
9
packages/fuselage/src/components/States/StatesSuggestionListItem.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,9 @@ | ||
import React, { FC } from 'react'; | ||
|
||
const StatesSuggestionListItem: FC = ({ children }) => ( | ||
<li className='rcx-states__list-item'> | ||
<span className='rcx-states__list-item-wrapper'>{children}</span> | ||
</li> | ||
); | ||
|
||
export default StatesSuggestionListItem; |
7 changes: 7 additions & 0 deletions
7
packages/fuselage/src/components/States/StatesSuggestionText.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,7 @@ | ||
import React, { FC } from 'react'; | ||
|
||
const StatesSuggestionText: FC = ({ children }) => ( | ||
<div className='rcx-states__suggestion-text'>{children}</div> | ||
); | ||
|
||
export default StatesSuggestionText; |
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,7 @@ | ||
import React, { FC } from 'react'; | ||
|
||
const StatesTitle: FC = ({ children }) => ( | ||
<div className='rcx-states__title'>{children}</div> | ||
); | ||
|
||
export default StatesTitle; |
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 |
---|---|---|
@@ -1 +1,23 @@ | ||
export * from './States'; | ||
import States from './States'; | ||
import StatesAction from './StatesAction'; | ||
import StatesActions from './StatesActions'; | ||
import StatesIcon from './StatesIcon'; | ||
import StatesSubtitle from './StatesSubtitle'; | ||
import StatesSuggestion from './StatesSuggestion'; | ||
import StatesSuggestionList from './StatesSuggestionList'; | ||
import StatesSuggestionListItem from './StatesSuggestionListItem'; | ||
import StatesSuggestionText from './StatesSuggestionText'; | ||
import StatesTitle from './StatesTitle'; | ||
|
||
export { | ||
States, | ||
StatesAction, | ||
StatesActions, | ||
StatesIcon, | ||
StatesSubtitle, | ||
StatesSuggestion, | ||
StatesSuggestionList, | ||
StatesSuggestionListItem, | ||
StatesSuggestionText, | ||
StatesTitle, | ||
}; |
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