-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: rest of data-entry components update
- Loading branch information
1 parent
5bfeefb
commit 2033533
Showing
20 changed files
with
570 additions
and
206 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
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,13 +1,22 @@ | ||
import React from 'react' | ||
import { Center, Typography } from 'src/components' | ||
import ValueSelector from 'src/components/data-entry/QueryItem/ValueSelector' | ||
import Action from 'src/components/data-entry/QueryItem/Action' | ||
import Text from 'src/components/data-entry/QueryItem/Text' | ||
import Qualifier from 'src/components/data-entry/QueryItem/Qualifier' | ||
|
||
export const QueryItem = () => { | ||
return <>DO NOT USE THIS OR YOU WILL BE FIRED!</> | ||
return ( | ||
<Center> | ||
<Typography.Text> | ||
Component Candidate: Under Review | ||
<br /> | ||
This component is pending review and should not be used at this time. | ||
</Typography.Text> | ||
</Center> | ||
) | ||
} | ||
QueryItem.Action = Action | ||
QueryItem.Qualifier = Qualifier | ||
QueryItem.ValueSelector = ValueSelector | ||
QueryItem.Text = Text | ||
QueryItem.Text = Text |
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
54 changes: 54 additions & 0 deletions
54
src/components/data-entry/Radio/RadioGroupNotProdReady.stories.tsx
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import { type Meta, type StoryObj } from '@storybook/react' | ||
import { Radio } from 'src/components/data-entry/Radio/Radio' | ||
|
||
const meta: Meta<typeof Radio.Group> = { | ||
title: 'Components/Not Prod Ready/Data Entry/Radio/RadioGroup', | ||
component: Radio.Group, | ||
|
||
args: { | ||
buttonStyle: undefined, | ||
defaultValue: undefined, | ||
disabled: false, | ||
name: undefined, | ||
options: undefined, | ||
optionType: undefined, | ||
size: 'middle', | ||
value: undefined, | ||
onChange: undefined, | ||
children: undefined, | ||
}, | ||
} | ||
export default meta | ||
|
||
type Story = StoryObj<typeof Radio.Group> | ||
|
||
export const WithOptionsAndOptionType: Story = { | ||
args: { | ||
options: [ | ||
{ label: 'Apple', value: 'Apple' }, | ||
{ label: 'Pear', value: 'Pear' }, | ||
{ label: 'Orange', value: 'Orange', title: 'Orange' }, | ||
], | ||
optionType: 'default', | ||
}, | ||
} | ||
|
||
export const WithRadioButtons: Story = { | ||
args: { | ||
defaultValue: 'a', | ||
children: [ | ||
<Radio.Button key="a" value="a"> | ||
Hangzhou | ||
</Radio.Button>, | ||
<Radio.Button key="b" value="b"> | ||
Shanghai | ||
</Radio.Button>, | ||
<Radio.Button key="c" value="c"> | ||
Beijing | ||
</Radio.Button>, | ||
<Radio.Button key="d" value="d"> | ||
Chengdu | ||
</Radio.Button>, | ||
], | ||
}, | ||
} |
56 changes: 56 additions & 0 deletions
56
src/components/data-entry/Radio/RadioNotProdReady.stories.tsx
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import { type Meta, type StoryObj } from '@storybook/react' | ||
import { Radio } from 'src/components/data-entry/Radio/Radio' | ||
|
||
const meta: Meta<typeof Radio> = { | ||
title: 'Components/Not Prod Ready/Data Entry/Radio', | ||
component: Radio, | ||
|
||
args: { | ||
autoFocus: false, | ||
checked: false, | ||
defaultChecked: false, | ||
disabled: false, | ||
value: undefined, | ||
onChange: undefined, | ||
}, | ||
} | ||
export default meta | ||
|
||
type Story = StoryObj<typeof Radio> | ||
|
||
/* | ||
Initial story templates generated by AI. | ||
Customize the stories based on specific requirements. | ||
*/ | ||
|
||
export const WithAutoFocus: Story = { | ||
args: { | ||
autoFocus: true, | ||
}, | ||
} | ||
|
||
export const Checked: Story = { | ||
args: { | ||
checked: true, | ||
}, | ||
} | ||
|
||
export const DefaultChecked: Story = { | ||
args: { | ||
defaultChecked: true, | ||
}, | ||
} | ||
|
||
export const Disabled: Story = { | ||
args: { | ||
disabled: true, | ||
}, | ||
} | ||
|
||
export const WithOnChange: Story = { | ||
args: { | ||
onChange: () => { | ||
alert('Radio Changed') | ||
}, | ||
}, | ||
} |
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
Oops, something went wrong.