forked from patternfly/patternfly-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(FormSelect): rename Select components to FormSelect (patternfly#…
…1231) * feat(FormSelect): rename Select components to FormSelect * fix(FormSelect): remove uneeded prop declaration * fix(FormSelect): update TS exports to new names
- Loading branch information
Showing
23 changed files
with
270 additions
and
268 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
20 changes: 20 additions & 0 deletions
20
packages/patternfly-4/react-core/src/components/FormSelect/FormSelect.docs.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { FormSelect, FormSelectOption, FormSelectOptionGroup } from '@patternfly/react-core'; | ||
import FormSelectInput from './examples/FormSelectInput'; | ||
import FormSelectInputDisabled from './examples/FormSelectInputDisabled'; | ||
import FormSelectInputGrouped from './examples/FormSelectInputGrouped'; | ||
import FormSelectInputInvalid from './examples/FormSelectInputInvalid'; | ||
|
||
export default { | ||
title: 'FormSelect', | ||
components: { | ||
FormSelect, | ||
FormSelectOption, | ||
FormSelectOptionGroup | ||
}, | ||
examples: [ | ||
{ component: FormSelectInput, title: 'FormSelect Input' }, | ||
{ component: FormSelectInputGrouped, title: 'FormSelect Input with grouping' }, | ||
{ component: FormSelectInputInvalid, title: 'FormSelect Input Invalid' }, | ||
{ component: FormSelectInputDisabled, title: 'FormSelect Input Disabled' } | ||
] | ||
}; |
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
13 changes: 13 additions & 0 deletions
13
packages/patternfly-4/react-core/src/components/FormSelect/FormSelectOption.d.ts
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,13 @@ | ||
import { HTMLProps, FormEvent } from 'react'; | ||
import { Omit } from '../../typeUtils'; | ||
|
||
export interface FormSelectOptionProps extends Omit<HTMLProps<HTMLOptionElement>, 'disabled'> { | ||
value?: any; | ||
label: string; | ||
isValid?: boolean; | ||
isDisabled?: boolean; | ||
} | ||
|
||
declare const FormSelectOption: React.SFC<FormSelectOptionProps>; | ||
|
||
export default FormSelectOption; |
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
11 changes: 11 additions & 0 deletions
11
packages/patternfly-4/react-core/src/components/FormSelect/FormSelectOptionGroup.d.ts
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,11 @@ | ||
import { HTMLProps, FormEvent } from 'react'; | ||
import { Omit } from '../../typeUtils'; | ||
|
||
export interface FormSelectOptionGroupProps extends Omit<HTMLProps<HTMLOptGroupElement>, 'disabled'> { | ||
label: string; | ||
isDisabled?: boolean; | ||
} | ||
|
||
declare const FormSelectOptionGroup: React.SFC<FormSelectOptionGroupProps>; | ||
|
||
export default FormSelectOptionGroup; |
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.