-
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.
Merge pull request #613 from LifeSG/radio-button-divider
Make changes to Divider and Radio and Col Div
- Loading branch information
Showing
10 changed files
with
108 additions
and
43 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
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,2 +1,5 @@ | ||
export type RadioButtonSize = "small" | "default"; | ||
export interface RadioButtonProps | ||
extends React.InputHTMLAttributes<HTMLInputElement> {} | ||
extends React.InputHTMLAttributes<HTMLInputElement> { | ||
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