@@ -4,6 +4,7 @@ import { | |||||
screen | screen | ||||
} from '@testing-library/react'; | } from '@testing-library/react'; | ||||
import '@testing-library/jest-dom'; | import '@testing-library/jest-dom'; | ||||
import userEvent from '@testing-library/user-event'; | |||||
import * as ButtonBase from '@tesseract-design/web-base-button'; | import * as ButtonBase from '@tesseract-design/web-base-button'; | ||||
import * as CheckControlBase from '@tesseract-design/web-base-checkcontrol'; | import * as CheckControlBase from '@tesseract-design/web-base-checkcontrol'; | ||||
import { RadioButton } from '.'; | import { RadioButton } from '.'; | ||||
@@ -19,4 +20,151 @@ describe('RadioButton', () => { | |||||
const checkbox = screen.getByRole('radio'); | const checkbox = screen.getByRole('radio'); | ||||
expect(checkbox).toBeInTheDocument(); | expect(checkbox).toBeInTheDocument(); | ||||
}); | }); | ||||
it('should render a subtext', () => { | |||||
render( | |||||
<RadioButton | |||||
subtext="subtext" | |||||
/> | |||||
); | |||||
const subtext: HTMLElement = screen.getByTestId('subtext'); | |||||
expect(subtext).toBeInTheDocument(); | |||||
}); | |||||
it('should render a badge', () => { | |||||
render( | |||||
<RadioButton | |||||
badge="badge" | |||||
/> | |||||
); | |||||
const badge: HTMLElement = screen.getByTestId('badge'); | |||||
expect(badge).toBeInTheDocument(); | |||||
}); | |||||
it('should handle click events', () => { | |||||
const onClick = jest.fn(); | |||||
render( | |||||
<RadioButton | |||||
onClick={onClick} | |||||
/> | |||||
); | |||||
const button: HTMLInputElement = screen.getByRole('radio'); | |||||
userEvent.click(button); | |||||
expect(onClick).toBeCalled(); | |||||
}); | |||||
it('should render a compact button', () => { | |||||
render( | |||||
<RadioButton | |||||
compact | |||||
/> | |||||
); | |||||
expect(ButtonBase.Button).toBeCalledWith(expect.objectContaining({ | |||||
compact: true, | |||||
})); | |||||
expect(ButtonBase.Label).toBeCalledWith(expect.objectContaining({ | |||||
compact: true, | |||||
})); | |||||
}); | |||||
describe.each([ | |||||
ButtonBase.ButtonSize.SMALL, | |||||
ButtonBase.ButtonSize.MEDIUM, | |||||
ButtonBase.ButtonSize.LARGE, | |||||
])('on %s size', (size) => { | |||||
it('should render button styles', () => { | |||||
render( | |||||
<RadioButton | |||||
size={size} | |||||
/> | |||||
); | |||||
expect(ButtonBase.Button).toBeCalledWith(expect.objectContaining({ | |||||
size, | |||||
})); | |||||
}); | |||||
it('should render badge styles', () => { | |||||
render( | |||||
<RadioButton | |||||
size={size} | |||||
badge="badge" | |||||
/> | |||||
); | |||||
expect(ButtonBase.BadgeContainer).toBeCalledWith(expect.objectContaining({ | |||||
size, | |||||
})); | |||||
}); | |||||
}); | |||||
it.each([ | |||||
ButtonBase.ButtonVariant.OUTLINE, | |||||
ButtonBase.ButtonVariant.FILLED, | |||||
])('should render a button with variant %s', (variant) => { | |||||
render( | |||||
<RadioButton | |||||
variant={variant} | |||||
/> | |||||
); | |||||
expect(ButtonBase.Button).toBeCalledWith(expect.objectContaining({ | |||||
variant, | |||||
})); | |||||
}); | |||||
it('should render a bordered button', () => { | |||||
render( | |||||
<RadioButton | |||||
border | |||||
/> | |||||
); | |||||
expect(ButtonBase.Border).toBeCalledWith(expect.objectContaining({ | |||||
border: true, | |||||
})); | |||||
}); | |||||
it('should render a block button', () => { | |||||
render( | |||||
<RadioButton | |||||
block | |||||
/> | |||||
); | |||||
expect(ButtonBase.Button).toBeCalledWith(expect.objectContaining({ | |||||
block: true, | |||||
})); | |||||
expect(ButtonBase.Border).toBeCalledWith(expect.objectContaining({ | |||||
block: true, | |||||
})); | |||||
expect(CheckControlBase.ClickAreaWrapper).toBeCalledWith(expect.objectContaining({ | |||||
block: true, | |||||
})); | |||||
}); | |||||
it('should render children', () => { | |||||
render( | |||||
<RadioButton> | |||||
Foo | |||||
</RadioButton> | |||||
); | |||||
const children: HTMLElement = screen.getByTestId('children'); | |||||
expect(children).toHaveTextContent('Foo'); | |||||
}); | |||||
it('should render a disabled button', () => { | |||||
render( | |||||
<RadioButton | |||||
disabled | |||||
/> | |||||
); | |||||
const button: HTMLButtonElement = screen.getByRole('radio'); | |||||
expect(button).toBeDisabled(); | |||||
}); | |||||
}); | }); |
@@ -100,6 +100,7 @@ export const RadioButton = React.forwardRef<HTMLInputElement, RadioButtonProps>( | |||||
> | > | ||||
<span | <span | ||||
className={ButtonBase.MainText()} | className={ButtonBase.MainText()} | ||||
data-testid="children" | |||||
> | > | ||||
<span | <span | ||||
className={ButtonBase.OverflowText()} | className={ButtonBase.OverflowText()} | ||||
@@ -114,6 +115,7 @@ export const RadioButton = React.forwardRef<HTMLInputElement, RadioButtonProps>( | |||||
{' '} | {' '} | ||||
<span | <span | ||||
className={ButtonBase.Subtext()} | className={ButtonBase.Subtext()} | ||||
data-testid="subtext" | |||||
> | > | ||||
<span | <span | ||||
className={ButtonBase.OverflowText()} | className={ButtonBase.OverflowText()} | ||||
@@ -132,6 +134,7 @@ export const RadioButton = React.forwardRef<HTMLInputElement, RadioButtonProps>( | |||||
{' '} | {' '} | ||||
<span | <span | ||||
className={ButtonBase.BadgeContainer(styleProps)} | className={ButtonBase.BadgeContainer(styleProps)} | ||||
data-testid="badge" | |||||
> | > | ||||
{badge} | {badge} | ||||
</span> | </span> | ||||
@@ -4,6 +4,7 @@ import { | |||||
screen | screen | ||||
} from '@testing-library/react'; | } from '@testing-library/react'; | ||||
import '@testing-library/jest-dom'; | import '@testing-library/jest-dom'; | ||||
import userEvent from '@testing-library/user-event'; | |||||
import * as CheckControlBase from '@tesseract-design/web-base-checkcontrol'; | import * as CheckControlBase from '@tesseract-design/web-base-checkcontrol'; | ||||
import { RadioTickBox } from '.'; | import { RadioTickBox } from '.'; | ||||
@@ -17,4 +18,50 @@ describe('RadioTickBox', () => { | |||||
const checkbox = screen.getByRole('radio'); | const checkbox = screen.getByRole('radio'); | ||||
expect(checkbox).toBeInTheDocument(); | expect(checkbox).toBeInTheDocument(); | ||||
}); | }); | ||||
it('should render a compact tick box', () => { | |||||
render( | |||||
<RadioTickBox | |||||
compact | |||||
/> | |||||
); | |||||
expect(CheckControlBase.CheckIndicatorArea).toBeCalledWith(expect.objectContaining({ | |||||
compact: true, | |||||
})); | |||||
}); | |||||
it('should render a block tick box', () => { | |||||
render( | |||||
<RadioTickBox | |||||
block | |||||
/> | |||||
); | |||||
expect(CheckControlBase.ClickAreaWrapper).toBeCalledWith(expect.objectContaining({ | |||||
block: true, | |||||
})); | |||||
}); | |||||
it('should render a subtext', () => { | |||||
render( | |||||
<RadioTickBox | |||||
subtext="subtext" | |||||
/> | |||||
); | |||||
const subtext: HTMLElement = screen.getByTestId('subtext'); | |||||
expect(subtext).toBeInTheDocument(); | |||||
}); | |||||
it('should handle click events', () => { | |||||
const onClick = jest.fn(); | |||||
render( | |||||
<RadioTickBox | |||||
onClick={onClick} | |||||
/> | |||||
); | |||||
const button: HTMLInputElement = screen.getByRole('radio'); | |||||
userEvent.click(button); | |||||
expect(onClick).toBeCalled(); | |||||
}); | |||||
}); | }); |
@@ -72,6 +72,7 @@ export const RadioTickBox = React.forwardRef<HTMLInputElement, RadioTickBoxProps | |||||
<br /> | <br /> | ||||
<span | <span | ||||
className={CheckControlBase.Subtext()} | className={CheckControlBase.Subtext()} | ||||
data-testid="subtext" | |||||
> | > | ||||
{subtext} | {subtext} | ||||
</span> | </span> | ||||
@@ -4,6 +4,7 @@ import { | |||||
screen | screen | ||||
} from '@testing-library/react'; | } from '@testing-library/react'; | ||||
import '@testing-library/jest-dom'; | import '@testing-library/jest-dom'; | ||||
import userEvent from '@testing-library/user-event'; | |||||
import * as ButtonBase from '@tesseract-design/web-base-button'; | import * as ButtonBase from '@tesseract-design/web-base-button'; | ||||
import * as CheckControlBase from '@tesseract-design/web-base-checkcontrol'; | import * as CheckControlBase from '@tesseract-design/web-base-checkcontrol'; | ||||
import { ToggleButton } from '.'; | import { ToggleButton } from '.'; | ||||
@@ -29,4 +30,175 @@ describe('ToggleButton', () => { | |||||
const checkbox = screen.getByRole('checkbox'); | const checkbox = screen.getByRole('checkbox'); | ||||
expect(checkbox).toHaveProperty('indeterminate', true); | expect(checkbox).toHaveProperty('indeterminate', true); | ||||
}); | }); | ||||
it('should render a subtext', () => { | |||||
render( | |||||
<ToggleButton | |||||
subtext="subtext" | |||||
/> | |||||
); | |||||
const subtext: HTMLElement = screen.getByTestId('subtext'); | |||||
expect(subtext).toBeInTheDocument(); | |||||
}); | |||||
it('should render a badge', () => { | |||||
render( | |||||
<ToggleButton | |||||
badge="badge" | |||||
/> | |||||
); | |||||
const badge: HTMLElement = screen.getByTestId('badge'); | |||||
expect(badge).toBeInTheDocument(); | |||||
}); | |||||
describe('on indeterminate', () => { | |||||
it('should render an indeterminate checkbox', () => { | |||||
render( | |||||
<ToggleButton | |||||
indeterminate | |||||
/> | |||||
); | |||||
const checkbox = screen.getByRole('checkbox'); | |||||
expect(checkbox).toHaveProperty('indeterminate', true); | |||||
}); | |||||
it('should acknowledge passed ref', () => { | |||||
const ref = React.createRef<HTMLInputElement>() | |||||
render( | |||||
<ToggleButton | |||||
indeterminate | |||||
ref={ref} | |||||
/> | |||||
); | |||||
expect(ref.current).toHaveProperty('indeterminate', true); | |||||
}); | |||||
}); | |||||
it('should handle click events', () => { | |||||
const onClick = jest.fn(); | |||||
render( | |||||
<ToggleButton | |||||
onClick={onClick} | |||||
/> | |||||
); | |||||
const button: HTMLInputElement = screen.getByRole('checkbox'); | |||||
userEvent.click(button); | |||||
expect(onClick).toBeCalled(); | |||||
}); | |||||
it('should render a compact button', () => { | |||||
render( | |||||
<ToggleButton | |||||
compact | |||||
/> | |||||
); | |||||
expect(ButtonBase.Button).toBeCalledWith(expect.objectContaining({ | |||||
compact: true, | |||||
})); | |||||
expect(ButtonBase.Label).toBeCalledWith(expect.objectContaining({ | |||||
compact: true, | |||||
})); | |||||
}); | |||||
describe.each([ | |||||
ButtonBase.ButtonSize.SMALL, | |||||
ButtonBase.ButtonSize.MEDIUM, | |||||
ButtonBase.ButtonSize.LARGE, | |||||
])('on %s size', (size) => { | |||||
it('should render button styles', () => { | |||||
render( | |||||
<ToggleButton | |||||
size={size} | |||||
/> | |||||
); | |||||
expect(ButtonBase.Button).toBeCalledWith(expect.objectContaining({ | |||||
size, | |||||
})); | |||||
}); | |||||
it('should render badge styles', () => { | |||||
render( | |||||
<ToggleButton | |||||
size={size} | |||||
badge="badge" | |||||
/> | |||||
); | |||||
expect(ButtonBase.BadgeContainer).toBeCalledWith(expect.objectContaining({ | |||||
size, | |||||
})); | |||||
}); | |||||
}); | |||||
it.each([ | |||||
ButtonBase.ButtonVariant.OUTLINE, | |||||
ButtonBase.ButtonVariant.FILLED, | |||||
])('should render a button with variant %s', (variant) => { | |||||
render( | |||||
<ToggleButton | |||||
variant={variant} | |||||
/> | |||||
); | |||||
expect(ButtonBase.Button).toBeCalledWith(expect.objectContaining({ | |||||
variant, | |||||
})); | |||||
}); | |||||
it('should render a bordered button', () => { | |||||
render( | |||||
<ToggleButton | |||||
border | |||||
/> | |||||
); | |||||
expect(ButtonBase.Border).toBeCalledWith(expect.objectContaining({ | |||||
border: true, | |||||
})); | |||||
}); | |||||
it('should render a block button', () => { | |||||
render( | |||||
<ToggleButton | |||||
block | |||||
/> | |||||
); | |||||
expect(ButtonBase.Button).toBeCalledWith(expect.objectContaining({ | |||||
block: true, | |||||
})); | |||||
expect(ButtonBase.Border).toBeCalledWith(expect.objectContaining({ | |||||
block: true, | |||||
})); | |||||
expect(CheckControlBase.ClickAreaWrapper).toBeCalledWith(expect.objectContaining({ | |||||
block: true, | |||||
})); | |||||
}); | |||||
it('should render children', () => { | |||||
render( | |||||
<ToggleButton> | |||||
Foo | |||||
</ToggleButton> | |||||
); | |||||
const children: HTMLElement = screen.getByTestId('children'); | |||||
expect(children).toHaveTextContent('Foo'); | |||||
}); | |||||
it('should render a disabled button', () => { | |||||
render( | |||||
<ToggleButton | |||||
disabled | |||||
/> | |||||
); | |||||
const button: HTMLButtonElement = screen.getByRole('checkbox'); | |||||
expect(button).toBeDisabled(); | |||||
}); | |||||
}); | }); |
@@ -133,6 +133,7 @@ export const ToggleButton = React.forwardRef<HTMLInputElement, ToggleButtonProps | |||||
> | > | ||||
<span | <span | ||||
className={ButtonBase.MainText()} | className={ButtonBase.MainText()} | ||||
data-testid="children" | |||||
> | > | ||||
<span | <span | ||||
className={ButtonBase.OverflowText()} | className={ButtonBase.OverflowText()} | ||||
@@ -147,6 +148,7 @@ export const ToggleButton = React.forwardRef<HTMLInputElement, ToggleButtonProps | |||||
{' '} | {' '} | ||||
<span | <span | ||||
className={ButtonBase.Subtext()} | className={ButtonBase.Subtext()} | ||||
data-testid="subtext" | |||||
> | > | ||||
<span | <span | ||||
className={ButtonBase.OverflowText()} | className={ButtonBase.OverflowText()} | ||||
@@ -165,6 +167,7 @@ export const ToggleButton = React.forwardRef<HTMLInputElement, ToggleButtonProps | |||||
{' '} | {' '} | ||||
<span | <span | ||||
className={ButtonBase.BadgeContainer(styleProps)} | className={ButtonBase.BadgeContainer(styleProps)} | ||||
data-testid="badge" | |||||
> | > | ||||
{badge} | {badge} | ||||
</span> | </span> | ||||
@@ -4,6 +4,7 @@ import { | |||||
screen | screen | ||||
} from '@testing-library/react'; | } from '@testing-library/react'; | ||||
import '@testing-library/jest-dom'; | import '@testing-library/jest-dom'; | ||||
import userEvent from '@testing-library/user-event'; | |||||
import * as CheckControlBase from '@tesseract-design/web-base-checkcontrol'; | import * as CheckControlBase from '@tesseract-design/web-base-checkcontrol'; | ||||
import { ToggleSwitch } from '.'; | import { ToggleSwitch } from '.'; | ||||
@@ -17,4 +18,50 @@ describe('ToggleSwitch', () => { | |||||
const checkbox = screen.getByRole('checkbox'); | const checkbox = screen.getByRole('checkbox'); | ||||
expect(checkbox).toBeInTheDocument(); | expect(checkbox).toBeInTheDocument(); | ||||
}); | }); | ||||
it('should render a compact switch', () => { | |||||
render( | |||||
<ToggleSwitch | |||||
compact | |||||
/> | |||||
); | |||||
expect(CheckControlBase.CheckIndicatorArea).toBeCalledWith(expect.objectContaining({ | |||||
compact: true, | |||||
})); | |||||
}); | |||||
it('should render a block switch', () => { | |||||
render( | |||||
<ToggleSwitch | |||||
block | |||||
/> | |||||
); | |||||
expect(CheckControlBase.ClickAreaWrapper).toBeCalledWith(expect.objectContaining({ | |||||
block: true, | |||||
})); | |||||
}); | |||||
it('should render a subtext', () => { | |||||
render( | |||||
<ToggleSwitch | |||||
subtext="subtext" | |||||
/> | |||||
); | |||||
const subtext: HTMLElement = screen.getByTestId('subtext'); | |||||
expect(subtext).toBeInTheDocument(); | |||||
}); | |||||
it('should handle click events', () => { | |||||
const onClick = jest.fn(); | |||||
render( | |||||
<ToggleSwitch | |||||
onClick={onClick} | |||||
/> | |||||
); | |||||
const button: HTMLInputElement = screen.getByRole('checkbox'); | |||||
userEvent.click(button); | |||||
expect(onClick).toBeCalled(); | |||||
}); | |||||
}); | }); |
@@ -92,6 +92,7 @@ export const ToggleSwitch = React.forwardRef<HTMLInputElement, ToggleSwitchProps | |||||
<br /> | <br /> | ||||
<span | <span | ||||
className={CheckControlBase.Subtext()} | className={CheckControlBase.Subtext()} | ||||
data-testid="subtext" | |||||
> | > | ||||
{subtext} | {subtext} | ||||
</span> | </span> | ||||
@@ -4,6 +4,7 @@ import { | |||||
screen | screen | ||||
} from '@testing-library/react'; | } from '@testing-library/react'; | ||||
import '@testing-library/jest-dom'; | import '@testing-library/jest-dom'; | ||||
import userEvent from '@testing-library/user-event'; | |||||
import * as CheckControlBase from '@tesseract-design/web-base-checkcontrol'; | import * as CheckControlBase from '@tesseract-design/web-base-checkcontrol'; | ||||
import { ToggleTickBox } from '.'; | import { ToggleTickBox } from '.'; | ||||
@@ -18,13 +19,72 @@ describe('ToggleTickBox', () => { | |||||
expect(checkbox).toBeInTheDocument(); | expect(checkbox).toBeInTheDocument(); | ||||
}); | }); | ||||
it('should render an indeterminate checkbox', () => { | |||||
describe('on indeterminate', () => { | |||||
it('should render an indeterminate checkbox', () => { | |||||
render( | |||||
<ToggleTickBox | |||||
indeterminate | |||||
/> | |||||
); | |||||
const checkbox = screen.getByRole('checkbox'); | |||||
expect(checkbox).toHaveProperty('indeterminate', true); | |||||
}); | |||||
it('should acknowledge passed ref', () => { | |||||
const ref = React.createRef<HTMLInputElement>() | |||||
render( | |||||
<ToggleTickBox | |||||
indeterminate | |||||
ref={ref} | |||||
/> | |||||
); | |||||
expect(ref.current).toHaveProperty('indeterminate', true); | |||||
}); | |||||
}); | |||||
it('should render a compact tick box', () => { | |||||
render( | render( | ||||
<ToggleTickBox | <ToggleTickBox | ||||
indeterminate | |||||
compact | |||||
/> | /> | ||||
); | ); | ||||
const checkbox = screen.getByRole('checkbox'); | |||||
expect(checkbox).toHaveProperty('indeterminate', true); | |||||
expect(CheckControlBase.CheckIndicatorArea).toBeCalledWith(expect.objectContaining({ | |||||
compact: true, | |||||
})); | |||||
}); | |||||
it('should render a block tick box', () => { | |||||
render( | |||||
<ToggleTickBox | |||||
block | |||||
/> | |||||
); | |||||
expect(CheckControlBase.ClickAreaWrapper).toBeCalledWith(expect.objectContaining({ | |||||
block: true, | |||||
})); | |||||
}); | |||||
it('should render a subtext', () => { | |||||
render( | |||||
<ToggleTickBox | |||||
subtext="subtext" | |||||
/> | |||||
); | |||||
const subtext: HTMLElement = screen.getByTestId('subtext'); | |||||
expect(subtext).toBeInTheDocument(); | |||||
}); | |||||
it('should handle click events', () => { | |||||
const onClick = jest.fn(); | |||||
render( | |||||
<ToggleTickBox | |||||
onClick={onClick} | |||||
/> | |||||
); | |||||
const button: HTMLInputElement = screen.getByRole('checkbox'); | |||||
userEvent.click(button); | |||||
expect(onClick).toBeCalled(); | |||||
}); | }); | ||||
}); | }); |
@@ -105,6 +105,7 @@ export const ToggleTickBox = React.forwardRef<HTMLInputElement, ToggleTickBoxPro | |||||
<br /> | <br /> | ||||
<span | <span | ||||
className={CheckControlBase.Subtext()} | className={CheckControlBase.Subtext()} | ||||
data-testid="subtext" | |||||
> | > | ||||
{subtext} | {subtext} | ||||
</span> | </span> | ||||
@@ -309,30 +309,13 @@ const OptionPage: NextPage<Props> = ({ | |||||
<div> | <div> | ||||
<div className="grid gap-4 my-4"> | <div className="grid gap-4 my-4"> | ||||
<div> | <div> | ||||
<Option.RadioButton | |||||
block | |||||
subtext="Subtext" | |||||
name="RadioButton" | |||||
> | |||||
RadioButton | |||||
</Option.RadioButton> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</section> | |||||
<section> | |||||
<h3>Switch</h3> | |||||
<div> | |||||
<div className="grid gap-4 my-4"> | |||||
<div> | |||||
<Option.RadioButton | |||||
<Option.RadioTickBox | |||||
block | block | ||||
subtext="Subtext" | subtext="Subtext" | ||||
name="RadioButton" | name="RadioButton" | ||||
appearance={CheckControlAppearance.SWITCH} | |||||
> | > | ||||
RadioButton | RadioButton | ||||
</Option.RadioButton> | |||||
</Option.RadioTickBox> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -344,7 +327,6 @@ const OptionPage: NextPage<Props> = ({ | |||||
<div> | <div> | ||||
<Option.RadioButton | <Option.RadioButton | ||||
block | block | ||||
appearance={CheckControlAppearance.BUTTON} | |||||
name="RadioButton" | name="RadioButton" | ||||
> | > | ||||
Button | Button | ||||
@@ -354,7 +336,6 @@ const OptionPage: NextPage<Props> = ({ | |||||
<Option.RadioButton | <Option.RadioButton | ||||
variant={ButtonVariant.FILLED} | variant={ButtonVariant.FILLED} | ||||
block | block | ||||
appearance={CheckControlAppearance.BUTTON} | |||||
name="RadioButton" | name="RadioButton" | ||||
> | > | ||||
Button | Button | ||||
@@ -364,7 +345,6 @@ const OptionPage: NextPage<Props> = ({ | |||||
<Option.RadioButton | <Option.RadioButton | ||||
border | border | ||||
block | block | ||||
appearance={CheckControlAppearance.BUTTON} | |||||
name="RadioButton" | name="RadioButton" | ||||
> | > | ||||
Button | Button | ||||
@@ -375,7 +355,6 @@ const OptionPage: NextPage<Props> = ({ | |||||
border | border | ||||
variant={ButtonVariant.FILLED} | variant={ButtonVariant.FILLED} | ||||
block | block | ||||
appearance={CheckControlAppearance.BUTTON} | |||||
name="RadioButton" | name="RadioButton" | ||||
> | > | ||||
Button | Button | ||||
@@ -385,7 +364,6 @@ const OptionPage: NextPage<Props> = ({ | |||||
<Option.RadioButton | <Option.RadioButton | ||||
block | block | ||||
disabled | disabled | ||||
appearance={CheckControlAppearance.BUTTON} | |||||
name="RadioButton" | name="RadioButton" | ||||
> | > | ||||
Button | Button | ||||
@@ -396,7 +374,6 @@ const OptionPage: NextPage<Props> = ({ | |||||
variant={ButtonVariant.FILLED} | variant={ButtonVariant.FILLED} | ||||
block | block | ||||
disabled | disabled | ||||
appearance={CheckControlAppearance.BUTTON} | |||||
name="RadioButton" | name="RadioButton" | ||||
> | > | ||||
Button | Button | ||||
@@ -407,7 +384,6 @@ const OptionPage: NextPage<Props> = ({ | |||||
border | border | ||||
block | block | ||||
disabled | disabled | ||||
appearance={CheckControlAppearance.BUTTON} | |||||
name="RadioButton" | name="RadioButton" | ||||
> | > | ||||
Button | Button | ||||
@@ -419,7 +395,6 @@ const OptionPage: NextPage<Props> = ({ | |||||
variant={ButtonVariant.FILLED} | variant={ButtonVariant.FILLED} | ||||
block | block | ||||
disabled | disabled | ||||
appearance={CheckControlAppearance.BUTTON} | |||||
name="RadioButton" | name="RadioButton" | ||||
> | > | ||||
Button | Button | ||||
@@ -437,7 +412,6 @@ const OptionPage: NextPage<Props> = ({ | |||||
block | block | ||||
border | border | ||||
size={ButtonSize.SMALL} | size={ButtonSize.SMALL} | ||||
appearance={CheckControlAppearance.BUTTON} | |||||
name="RadioButton" | name="RadioButton" | ||||
> | > | ||||
Button | Button | ||||
@@ -449,7 +423,6 @@ const OptionPage: NextPage<Props> = ({ | |||||
border | border | ||||
variant={ButtonVariant.FILLED} | variant={ButtonVariant.FILLED} | ||||
size={ButtonSize.SMALL} | size={ButtonSize.SMALL} | ||||
appearance={CheckControlAppearance.BUTTON} | |||||
name="RadioButton" | name="RadioButton" | ||||
> | > | ||||
Button | Button | ||||
@@ -460,7 +433,6 @@ const OptionPage: NextPage<Props> = ({ | |||||
block | block | ||||
border | border | ||||
size={ButtonSize.MEDIUM} | size={ButtonSize.MEDIUM} | ||||
appearance={CheckControlAppearance.BUTTON} | |||||
name="RadioButton" | name="RadioButton" | ||||
> | > | ||||
Button | Button | ||||
@@ -472,7 +444,6 @@ const OptionPage: NextPage<Props> = ({ | |||||
border | border | ||||
variant={ButtonVariant.FILLED} | variant={ButtonVariant.FILLED} | ||||
size={ButtonSize.MEDIUM} | size={ButtonSize.MEDIUM} | ||||
appearance={CheckControlAppearance.BUTTON} | |||||
name="RadioButton" | name="RadioButton" | ||||
> | > | ||||
Button | Button | ||||
@@ -483,7 +454,6 @@ const OptionPage: NextPage<Props> = ({ | |||||
block | block | ||||
border | border | ||||
size={ButtonSize.LARGE} | size={ButtonSize.LARGE} | ||||
appearance={CheckControlAppearance.BUTTON} | |||||
name="RadioButton" | name="RadioButton" | ||||
> | > | ||||
Button | Button | ||||