-
-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate more components, fix spec documentation missing information
- Loading branch information
Showing
26 changed files
with
188 additions
and
186 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
import React from 'react' | ||
import InputArray, { FieldArrayProps as InputArrayProps } from './InputArray' | ||
import Fieldset from './Fieldset' | ||
|
||
type FieldArrayProps = InputArrayProps & { | ||
name?: string | ||
fieldSpec?: { | ||
doc: string | ||
} | ||
}; | ||
|
||
export default class FieldArray extends React.Component<FieldArrayProps> { | ||
render() { | ||
return <Fieldset label={this.props.label} fieldSpec={this.props.fieldSpec}> | ||
<InputArray {...this.props} /> | ||
</Fieldset> | ||
} | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
import React from 'react' | ||
import Block from './Block' | ||
import InputColor, {InputColorProps} from './InputColor' | ||
|
||
|
||
type FieldColorProps = InputColorProps & { | ||
label?: string | ||
fieldSpec?: { | ||
doc: string | ||
} | ||
}; | ||
|
||
|
||
export default class FieldColor extends React.Component<FieldColorProps> { | ||
render() { | ||
return <Block label={this.props.label} fieldSpec={this.props.fieldSpec}> | ||
<InputColor {...this.props} /> | ||
</Block> | ||
} | ||
} | ||
|
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 was deleted.
Oops, something went wrong.
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 React from 'react' | ||
import InputJson, {InputJsonProps} from './InputJson' | ||
|
||
|
||
type FieldJsonProps = InputJsonProps & {}; | ||
|
||
|
||
export default class FieldJson extends React.Component<FieldJsonProps> { | ||
render() { | ||
return <InputJson {...this.props} /> | ||
} | ||
} | ||
|
13 changes: 6 additions & 7 deletions
13
src/components/FieldMaxZoom.jsx → src/components/FieldMaxZoom.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
13 changes: 6 additions & 7 deletions
13
src/components/FieldMinZoom.jsx → src/components/FieldMinZoom.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
This file was deleted.
Oops, something went wrong.
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 React from 'react' | ||
import InputMultiInput, {InputMultiInputProps} from './InputMultiInput' | ||
import Fieldset from './Fieldset' | ||
|
||
|
||
type FieldMultiInputProps = InputMultiInputProps & { | ||
label?: string | ||
}; | ||
|
||
|
||
export default class FieldMultiInput extends React.Component<FieldMultiInputProps> { | ||
render() { | ||
const {props} = this; | ||
|
||
return <Fieldset label={props.label}> | ||
<InputMultiInput {...props} /> | ||
</Fieldset> | ||
} | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
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 React from 'react' | ||
import InputNumber, {InputNumberProps} from './InputNumber' | ||
import Block from './Block' | ||
|
||
|
||
type FieldNumberProps = InputNumberProps & { | ||
label?: string | ||
fieldSpec?: { | ||
doc: string | ||
} | ||
}; | ||
|
||
|
||
export default class FieldNumber extends React.Component<FieldNumberProps> { | ||
render() { | ||
return <Block label={this.props.label} fieldSpec={this.props.fieldSpec}> | ||
<InputNumber {...this.props} /> | ||
</Block> | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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,22 @@ | ||
import React from 'react' | ||
import Block from './Block' | ||
import InputSelect, {InputSelectProps} from './InputSelect' | ||
|
||
|
||
type FieldSelectProps = InputSelectProps & { | ||
label?: string | ||
fieldSpec?: { | ||
doc: string | ||
} | ||
}; | ||
|
||
|
||
export default class FieldSelect extends React.Component<FieldSelectProps> { | ||
render() { | ||
return <Block label={this.props.label} fieldSpec={this.props.fieldSpec}> | ||
<InputSelect {...this.props}/> | ||
</Block> | ||
} | ||
} | ||
|
||
|
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
Oops, something went wrong.