Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
feat!: remove CustomInput
- custom inputs no longer supported in bootstrap 5

https://getbootstrap.com/docs/5.0/migration/#forms-2
  • Loading branch information
darreneng authored and phwebi committed Oct 27, 2021
1 parent f403595 commit c0e8a68
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 988 deletions.
32 changes: 0 additions & 32 deletions docs/lib/Components/FormPage.js
Expand Up @@ -34,9 +34,6 @@ const InputGridSizingExampleSource = require('!!raw-loader!../examples/InputGrid
import LabelHiddenExample from '../examples/LabelHidden';
const LabelHiddenExampleSource = require('!!raw-loader!../examples/LabelHidden');

import CustomControlsExample from '../examples/CustomControls';
const CustomControlsExampleSource = require('!!raw-loader!../examples/CustomControls');

export default class FormPage extends React.Component {
render() {
return (
Expand Down Expand Up @@ -73,25 +70,6 @@ export default class FormPage extends React.Component {
cssModule: PropTypes.object,
};
CustomInput.propTypes = {
className: PropTypes.string,
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
type: PropTypes.string.isRequired, // radio, checkbox, select, range, switch, file.
label: PropTypes.string, // used for checkbox and radios
inline: PropTypes.bool,
valid: PropTypes.bool, // applied the is-valid class when true, does nothing when false
invalid: PropTypes.bool, // applied the is-invalid class when true, does nothing when false
bsSize: PropTypes.string,
cssModule: PropTypes.object,
children: PropTypes.oneOfType([PropTypes.node, PropTypes.array, PropTypes.func]), // for type="select"
// innerRef would be referenced to select node or input DOM node, depends on type property
innerRef: PropTypes.oneOfType([
PropTypes.object,
PropTypes.string,
PropTypes.func,
])
};
Form.propTypes = {
children: PropTypes.node,
inline: PropTypes.bool,
Expand Down Expand Up @@ -229,16 +207,6 @@ FormText.propTypes = {
{LabelHiddenExampleSource}
</PrismCode>
</pre>

<SectionTitle>Custom Inputs</SectionTitle>
<div className="docs-example">
<CustomControlsExample />
</div>
<pre>
<PrismCode className="language-jsx">
{CustomControlsExampleSource}
</PrismCode>
</pre>
</div>
);
}
Expand Down
105 changes: 0 additions & 105 deletions docs/lib/examples/CustomControls.js

This file was deleted.

128 changes: 0 additions & 128 deletions src/CustomFileInput.js

This file was deleted.

0 comments on commit c0e8a68

Please sign in to comment.