-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor(icons)!: use `Box` for `FlairIcon` * fix: format
- Loading branch information
Showing
7 changed files
with
38 additions
and
90 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,7 @@ | ||
--- | ||
"@launchpad-ui/icons": minor | ||
--- | ||
|
||
Use `Box` for `FlairIcon`: | ||
- Round by default | ||
- Prop `gradient` -> `background` |
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 |
---|---|---|
@@ -1,41 +1,41 @@ | ||
import type { StoryObj } from '@storybook/react'; | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import { FlairIcon, Icon } from '../src'; | ||
|
||
export default { | ||
const meta: Meta<typeof FlairIcon> = { | ||
component: FlairIcon, | ||
title: 'Foundations/Icons/FlairIcon', | ||
description: | ||
'Flair icons can be used as either square or circular icons with gradient backgrounds.', | ||
parameters: { | ||
status: { | ||
type: import.meta.env.STORYBOOK_PACKAGE_STATUS__ICONS, | ||
}, | ||
}, | ||
}; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof FlairIcon>; | ||
|
||
export const Circular: Story = { | ||
args: { children: <Icon name="flag" />, isRounded: true }, | ||
export const Square: Story = { | ||
args: { children: <Icon name="flag" />, borderRadius: '0' }, | ||
}; | ||
|
||
export const BlueToPurple: Story = { | ||
args: { children: <Icon name="shield-key" />, gradient: 'purpleToBlue' }, | ||
args: { children: <Icon name="shield-key" /> }, | ||
}; | ||
|
||
export const YellowToCyan: Story = { | ||
args: { children: <Icon name="arrow-up-right-circle" />, gradient: 'yellowToCyan' }, | ||
args: { children: <Icon name="arrow-up-right-circle" />, background: '$yellow-cyan' }, | ||
}; | ||
|
||
export const PinkToPurple: Story = { | ||
args: { children: <Icon name="flask" />, gradient: 'pinkToPurple' }, | ||
args: { children: <Icon name="flask" />, background: '$pink-purple' }, | ||
}; | ||
|
||
export const CyanToBlue: Story = { | ||
args: { children: <Icon name="a-to-b" />, gradient: 'cyanToBlue' }, | ||
args: { children: <Icon name="a-to-b" />, background: '$cyan-blue' }, | ||
}; | ||
|
||
export const CyanToPurple: Story = { | ||
args: { children: <Icon name="warning" />, gradient: 'cyanToPurple' }, | ||
args: { children: <Icon name="warning" />, background: '$cyan-purple' }, | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.