-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix(commonTests): support passing "as" * docs(Form): add/update Form docs to v1 API * feat(Form): update to v1 API * test(Form): test Form for v1 API * refactor(jquery): remove all traces of jquery * refactor(addons): wrap augmented components * fix(Checkbox): remove ref * fix(SUI): uppercase icons export * fix(AutoControlledComponent): default mutiple value to [] * test(Dropdown): test hidden select element * fix(Menu): use getUnhandledProps * feat(Checkbox): prevent unchecking checked radios * refactor(Checkbox): remove inputType
- Loading branch information
1 parent
8ac4291
commit 8d53dad
Showing
99 changed files
with
2,101 additions
and
910 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
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
25 changes: 12 additions & 13 deletions
25
docs/app/Examples/collections/Form/Content/FormFieldExample.js
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,14 +1,13 @@ | ||
import React, { Component } from 'react' | ||
import { Form, Input } from 'stardust' | ||
import React from 'react' | ||
import { Form } from 'stardust' | ||
|
||
export default class FormFieldExample extends Component { | ||
render() { | ||
return ( | ||
<Form> | ||
<Form.Field label='User Input'> | ||
<Input placeholder='User Input' /> | ||
</Form.Field> | ||
</Form> | ||
) | ||
} | ||
} | ||
const FormFieldExample = () => ( | ||
<Form> | ||
<Form.Field> | ||
<label>User Input</label> | ||
<input /> | ||
</Form.Field> | ||
</Form> | ||
) | ||
|
||
export default FormFieldExample |
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,17 +1,14 @@ | ||
import React, { Component } from 'react' | ||
import React from 'react' | ||
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' | ||
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' | ||
|
||
export default class FormTypesExamples extends Component { | ||
render() { | ||
return ( | ||
<ExampleSection title='Content'> | ||
<ComponentExample | ||
title='Field' | ||
description='A field is a form element containing a label and an input.' | ||
examplePath='collections/Form/Content/FormFieldExample' | ||
/> | ||
</ExampleSection> | ||
) | ||
} | ||
} | ||
const FormTypesExamples = () => ( | ||
<ExampleSection title='Content'> | ||
<ComponentExample | ||
title='Field' | ||
description='A field is a form element containing a label and an input.' | ||
examplePath='collections/Form/Content/FormFieldExample' | ||
/> | ||
</ExampleSection> | ||
) | ||
export default FormTypesExamples |
23 changes: 11 additions & 12 deletions
23
docs/app/Examples/collections/Form/FieldVariations/FormFieldInlineExample.js
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,14 +1,13 @@ | ||
import React, { Component } from 'react' | ||
import React from 'react' | ||
import { Form, Input } from 'stardust' | ||
|
||
export default class FormFieldInlineExample extends Component { | ||
render() { | ||
return ( | ||
<Form> | ||
<Form.Field label='First name' className='inline'> | ||
<Input placeholder='First name' /> | ||
</Form.Field> | ||
</Form> | ||
) | ||
} | ||
} | ||
const FormFieldInlineExample = () => ( | ||
<Form> | ||
<Form.Field inline> | ||
<label>First name</label> | ||
<Input placeholder='First name' /> | ||
</Form.Field> | ||
</Form> | ||
) | ||
|
||
export default FormFieldInlineExample |
26 changes: 12 additions & 14 deletions
26
docs/app/Examples/collections/Form/FieldVariations/index.js
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,17 +1,15 @@ | ||
import React, { Component } from 'react' | ||
import React from 'react' | ||
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' | ||
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' | ||
|
||
export default class FormFieldVariationsExamples extends Component { | ||
render() { | ||
return ( | ||
<ExampleSection title='Field Variations'> | ||
<ComponentExample | ||
title='Inline' | ||
description='A field can have its label next to instead of above it.' | ||
examplePath='collections/Form/FieldVariations/FormFieldInlineExample' | ||
/> | ||
</ExampleSection> | ||
) | ||
} | ||
} | ||
const FormFieldVariationsExamples = () => ( | ||
<ExampleSection title='Field Variations'> | ||
<ComponentExample | ||
title='Inline' | ||
description='A field can have its label next to instead of above it.' | ||
examplePath='collections/Form/FieldVariations/FormFieldInlineExample' | ||
/> | ||
</ExampleSection> | ||
) | ||
|
||
export default FormFieldVariationsExamples |
34 changes: 17 additions & 17 deletions
34
docs/app/Examples/collections/Form/GroupVariations/FormGroupEvenlyDividedExample.js
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,19 +1,19 @@ | ||
import React, { Component } from 'react' | ||
import React from 'react' | ||
import { Form, Input } from 'stardust' | ||
|
||
export default class FormGroupEvenlyDividedExample extends Component { | ||
render() { | ||
return ( | ||
<Form> | ||
<Form.Fields evenlyDivided> | ||
<Form.Field label='First name'> | ||
<Input placeholder='First name' /> | ||
</Form.Field> | ||
<Form.Field label='Last name'> | ||
<Input placeholder='Last name' /> | ||
</Form.Field> | ||
</Form.Fields> | ||
</Form> | ||
) | ||
} | ||
} | ||
const FormGroupEvenlyDividedExample = () => ( | ||
<Form> | ||
<Form.Group widths='equal'> | ||
<Form.Field> | ||
<label>First name</label> | ||
<Input placeholder='First name' /> | ||
</Form.Field> | ||
<Form.Field> | ||
<label>Last name</label> | ||
<Input placeholder='Last name' /> | ||
</Form.Field> | ||
</Form.Group> | ||
</Form> | ||
) | ||
|
||
export default FormGroupEvenlyDividedExample |
Oops, something went wrong.