-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CCUBE-1603][MAHI]Clean usage of col div to use -1 and included story…
…book to use 2 different sizings
- Loading branch information
1 parent
efeba17
commit 2f38b47
Showing
8 changed files
with
95 additions
and
53 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
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,5 +1,5 @@ | ||
export type RadioboxSize = "small" | "default"; | ||
export type RadioButtonSize = "small" | "default"; | ||
export interface RadioButtonProps | ||
extends React.InputHTMLAttributes<HTMLInputElement> { | ||
displaySize?: RadioboxSize | undefined; | ||
displaySize?: RadioButtonSize | undefined; | ||
} |
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,26 +1,27 @@ | ||
import React from "react"; | ||
import { | ||
DefaultCol, | ||
DescriptionCol, | ||
NameCol, | ||
Table, | ||
} from "../storybook-common/api-table"; | ||
import { ApiTable, ApiTableSectionProps } from "../storybook-common/api-table"; | ||
|
||
export const PropsTable = () => ( | ||
<Table> | ||
<tr> | ||
<NameCol>checked</NameCol> | ||
<DescriptionCol propTypes={["boolean"]}> | ||
The selection state of the component | ||
</DescriptionCol> | ||
<DefaultCol /> | ||
</tr> | ||
<tr> | ||
<NameCol>disabled</NameCol> | ||
<DescriptionCol propTypes={["boolean"]}> | ||
The state in which an action is allowed to be executed | ||
</DescriptionCol> | ||
<DefaultCol /> | ||
</tr> | ||
</Table> | ||
); | ||
const DATA: ApiTableSectionProps[] = [ | ||
{ | ||
attributes: [ | ||
{ | ||
name: "displaySize", | ||
description: "The display size of the component", | ||
propTypes: [`"default"`, `"small"`], | ||
defaultValue: `"default"`, | ||
}, | ||
{ | ||
name: "checked", | ||
description: "The selected state of the component", | ||
propTypes: ["boolean"], | ||
}, | ||
{ | ||
name: "disabled", | ||
description: | ||
"The state in which an action is allowed to be executed", | ||
propTypes: ["boolean"], | ||
}, | ||
], | ||
}, | ||
]; | ||
|
||
export const PropsTable = () => <ApiTable sections={DATA} />; |
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