mirror of https://github.com/buster-so/buster.git
change icon button icon
This commit is contained in:
parent
a28c68c9b4
commit
f4f0df6ce4
|
@ -2,6 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react';
|
||||||
import { Button } from './Button';
|
import { Button } from './Button';
|
||||||
import * as OutlinedIcons from '../icons/NucleoIconOutlined';
|
import * as OutlinedIcons from '../icons/NucleoIconOutlined';
|
||||||
import { IconSelectOutlined } from '../icons/NucleoIconOutlined/iconStories';
|
import { IconSelectOutlined } from '../icons/NucleoIconOutlined/iconStories';
|
||||||
|
import { ArrowUp } from '../icons/NucleoIconOutlined';
|
||||||
|
|
||||||
const meta: Meta<typeof Button> = {
|
const meta: Meta<typeof Button> = {
|
||||||
title: 'UI/Buttons/Button',
|
title: 'UI/Buttons/Button',
|
||||||
|
@ -146,10 +147,11 @@ export const Small: Story = {
|
||||||
|
|
||||||
export const IconButton: Story = {
|
export const IconButton: Story = {
|
||||||
args: {
|
args: {
|
||||||
variant: 'default',
|
variant: 'black',
|
||||||
size: 'default',
|
size: 'tall',
|
||||||
prefix: 'ShapeSquare',
|
prefix: 'ArrowUp',
|
||||||
children: ''
|
children: '',
|
||||||
|
rounding: 'full'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,7 @@ export const buttonIconVariants = cva('', {
|
||||||
variants: {
|
variants: {
|
||||||
variant: {
|
variant: {
|
||||||
default: 'text-icon-color',
|
default: 'text-icon-color',
|
||||||
black: 'text-white',
|
black: 'text-white!',
|
||||||
primary: 'text-white',
|
primary: 'text-white',
|
||||||
ghost: 'text-icon-color',
|
ghost: 'text-icon-color',
|
||||||
link: 'text-icon-color',
|
link: 'text-icon-color',
|
||||||
|
@ -98,7 +98,14 @@ export const buttonIconVariants = cva('', {
|
||||||
true: 'text-gray-light',
|
true: 'text-gray-light',
|
||||||
false: ''
|
false: ''
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
compoundVariants: [
|
||||||
|
{
|
||||||
|
variant: 'black',
|
||||||
|
disabled: true,
|
||||||
|
className: 'text-white'
|
||||||
}
|
}
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
const loadingSizeVariants = {
|
const loadingSizeVariants = {
|
||||||
|
|
|
@ -82,7 +82,15 @@ export const FileContainer: React.FC<FileContainerProps> = ({ children }) => {
|
||||||
}, [isOpenSecondary]);
|
}, [isOpenSecondary]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<AppPageLayout className="flex h-full min-w-[380px] flex-col" header={<FileContainerHeader />}>
|
<AppPageLayout
|
||||||
|
className="flex h-full min-w-[380px] flex-col"
|
||||||
|
header={useMemo(
|
||||||
|
() => (
|
||||||
|
<FileContainerHeader />
|
||||||
|
),
|
||||||
|
[]
|
||||||
|
)}
|
||||||
|
headerClassName="border-l">
|
||||||
<AppSplitter
|
<AppSplitter
|
||||||
ref={appSplitterRef}
|
ref={appSplitterRef}
|
||||||
autoSaveId={autoSaveId}
|
autoSaveId={autoSaveId}
|
||||||
|
|
Loading…
Reference in New Issue