-
Notifications
You must be signed in to change notification settings - Fork 8
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
1 parent
456d2b4
commit c13a71a
Showing
65 changed files
with
1,163 additions
and
2,129 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 |
---|---|---|
|
@@ -16,6 +16,12 @@ runs: | |
registry-url: "https://registry.npmjs.org" | ||
cache: "pnpm" | ||
|
||
- name: Setup Git User | ||
shell: bash | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "gobob-xyz" | ||
- name: Install dependencies | ||
shell: bash | ||
run: pnpm install |
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,54 +1,56 @@ | ||
import { Meta, StoryObj } from '@storybook/react'; | ||
import { Icon, IconProps } from '@just_testing13/icon'; | ||
|
||
import * as SVGS from '../'; | ||
import { Icon, IconProps } from '..'; | ||
import * as SVGS from '..'; | ||
|
||
export const Default: StoryObj<IconProps> = { | ||
export default { | ||
title: 'Icons/Coins', | ||
component: Icon, | ||
decorators: [ | ||
(Story) => ( | ||
<div style={{ display: 'flex', justifyContent: 'center', flexWrap: 'wrap', gap: 12 }}> | ||
<Story /> | ||
</div> | ||
) | ||
] | ||
} as Meta<typeof Icon>; | ||
|
||
export const Coins: StoryObj<IconProps> = { | ||
args: { | ||
size: 'md' | ||
}, | ||
render: (args) => ( | ||
<> | ||
{Object.entries(SVGS).map(([key, Comp]) => ( | ||
<div | ||
key={key} | ||
style={{ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
fontSize: 12, | ||
gap: 8, | ||
minWidth: 100, | ||
maxWidth: 100 | ||
}} | ||
> | ||
<Comp {...args} /> | ||
<span | ||
{Object.entries(SVGS) | ||
.filter(([key]) => key !== 'Icon') | ||
.map(([key, Comp]) => ( | ||
<div | ||
key={key} | ||
style={{ | ||
fontWeight: '600', | ||
textOverflow: 'ellipsis', | ||
overflow: 'hidden', | ||
width: '100%', | ||
maxWidth: '100%', | ||
textAlign: 'center' | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
fontSize: 12, | ||
gap: 8, | ||
minWidth: 100, | ||
maxWidth: 100 | ||
}} | ||
> | ||
{key} | ||
</span> | ||
</div> | ||
))} | ||
<Comp {...args} /> | ||
<span | ||
style={{ | ||
fontWeight: '600', | ||
textOverflow: 'ellipsis', | ||
overflow: 'hidden', | ||
width: '100%', | ||
maxWidth: '100%', | ||
textAlign: 'center' | ||
}} | ||
> | ||
{key} | ||
</span> | ||
</div> | ||
))} | ||
</> | ||
) | ||
}; | ||
|
||
export default { | ||
title: 'Icons/Coin', | ||
component: Icon, | ||
decorators: [ | ||
(Story) => ( | ||
<div style={{ display: 'flex', justifyContent: 'center', flexWrap: 'wrap', gap: 12 }}> | ||
<Story /> | ||
</div> | ||
) | ||
] | ||
} as Meta; |
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,54 +1,56 @@ | ||
import { Meta, StoryObj } from '@storybook/react'; | ||
import { Icon, IconProps } from '@just_testing13/icon'; | ||
|
||
import * as SVGS from '../'; | ||
import { Icon, IconProps } from '..'; | ||
import * as SVGS from '..'; | ||
|
||
export const Default: StoryObj<IconProps> = { | ||
export default { | ||
title: 'Icons/Common', | ||
component: Icon, | ||
decorators: [ | ||
(Story) => ( | ||
<div style={{ display: 'flex', justifyContent: 'center', flexWrap: 'wrap', gap: 12 }}> | ||
<Story /> | ||
</div> | ||
) | ||
] | ||
} as Meta<typeof Icon>; | ||
|
||
export const Common: StoryObj<IconProps> = { | ||
args: { | ||
size: 'md' | ||
}, | ||
render: (args) => ( | ||
<> | ||
{Object.entries(SVGS).map(([key, Comp]) => ( | ||
<div | ||
key={key} | ||
style={{ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
fontSize: 12, | ||
gap: 8, | ||
minWidth: 100, | ||
maxWidth: 100 | ||
}} | ||
> | ||
<Comp {...args} /> | ||
<span | ||
{Object.entries(SVGS) | ||
.filter(([key]) => key !== 'Icon') | ||
.map(([key, Comp]) => ( | ||
<div | ||
key={key} | ||
style={{ | ||
fontWeight: '600', | ||
textOverflow: 'ellipsis', | ||
overflow: 'hidden', | ||
width: '100%', | ||
maxWidth: '100%', | ||
textAlign: 'center' | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
fontSize: 12, | ||
gap: 8, | ||
minWidth: 100, | ||
maxWidth: 100 | ||
}} | ||
> | ||
{key} | ||
</span> | ||
</div> | ||
))} | ||
<Comp {...args} /> | ||
<span | ||
style={{ | ||
fontWeight: '600', | ||
textOverflow: 'ellipsis', | ||
overflow: 'hidden', | ||
width: '100%', | ||
maxWidth: '100%', | ||
textAlign: 'center' | ||
}} | ||
> | ||
{key} | ||
</span> | ||
</div> | ||
))} | ||
</> | ||
) | ||
}; | ||
|
||
export default { | ||
title: 'Icons/Common', | ||
component: Icon, | ||
decorators: [ | ||
(Story) => ( | ||
<div style={{ display: 'flex', justifyContent: 'center', flexWrap: 'wrap', gap: 12 }}> | ||
<Story /> | ||
</div> | ||
) | ||
] | ||
} as Meta; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.