Skip to content

Commit 75ac213

Browse files
author
unknown
committed
4.25.5
1 parent c401f78 commit 75ac213

File tree

9 files changed

+22607
-25
lines changed

9 files changed

+22607
-25
lines changed

.huskyrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"hooks": {
3-
"pre-commit": ""
3+
"pre-commit": "lint-staged"
44
}
55
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ All fully responsive. All compatible with different browsers.
5858

5959
# Version:
6060

61-
- MDBReact 4.25.4
61+
- MDBReact 4.25.5
6262
- React 16.12.0
6363

6464
# Quick start

README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Material Design for Bootstrap
22

3-
Version: MDB React 4.25.4
3+
Version: MDB React Pro 4.25.5
44

55
Documentation:
66
https://mdbootstrap.com/docs/react/

dist/css/mdb.css

Lines changed: 9744 additions & 5 deletions
Large diffs are not rendered by default.

dist/mdbreact.esm.js

Lines changed: 6420 additions & 1 deletion
Large diffs are not rendered by default.

dist/mdbreact.js

Lines changed: 6417 additions & 1 deletion
Large diffs are not rendered by default.

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mdbreact",
3-
"version": "4.25.4",
3+
"version": "4.25.5",
44
"author": "MDBootstrap",
55
"repository": "https://github.com/mdbootstrap/React-Bootstrap-with-Material-Design",
66
"main": "dist/mdbreact.js",
@@ -98,7 +98,7 @@
9898
"rollup": "^1.29.0",
9999
"rollup-plugin-babel": "^4.3.3",
100100
"rollup-plugin-commonjs": "^10.1.0",
101-
"rollup-plugin-dts": "^1.2.0",
101+
"rollup-plugin-dts": "1.2.0",
102102
"rollup-plugin-node-resolve": "^5.2.0",
103103
"rollup-plugin-peer-deps-external": "2.2.0",
104104
"rollup-plugin-postcss": "2.0.3",

src/components/Input/Input.js

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@ class Input extends React.Component {
1616
// User wants to access the input ref, but we have to use it intenrally to.
1717
// Return Ref instance to share ref with parent
1818
// then user sets ref as a callback -> inputRef={ref => this.myInputRef = ref}
19-
const { inputRef, focused } = this.props;
19+
const { inputRef, focused, indeterminate } = this.props;
2020
inputRef && inputRef(this.inputElementRef.current);
2121
if (focused === true) {
2222
this.setState({ isFocused: focused }, () => {
2323
this.setFocus();
2424
});
2525
}
26+
27+
if (indeterminate) {
28+
this.inputElementRef.current.indeterminate = true;
29+
}
2630
}
2731

2832
static getDerivedStateFromProps(nextProps, prevState) {
@@ -88,6 +92,7 @@ class Input extends React.Component {
8892
disabled,
8993
error,
9094
filled,
95+
focused,
9196
gap,
9297
getValue,
9398
group,
@@ -96,20 +101,20 @@ class Input extends React.Component {
96101
iconBrand,
97102
iconClass,
98103
iconLight,
99-
onIconClick,
100-
onIconMouseEnter,
101-
onIconMouseLeave,
102104
iconRegular,
103105
iconSize,
104106
id,
107+
indeterminate,
105108
inputRef,
106-
noTag,
107-
focused,
108-
outline,
109109
label,
110110
labelClass,
111111
labelId,
112112
labelStyles,
113+
noTag,
114+
onIconClick,
115+
onIconMouseEnter,
116+
onIconMouseLeave,
117+
outline,
113118
size,
114119
success,
115120
tag: Tag,
@@ -119,6 +124,7 @@ class Input extends React.Component {
119124
valueDefault,
120125
...attributes
121126
} = this.props;
127+
122128
const { innerValue, isFocused } = this.state;
123129
const isNotEmpty =
124130
(!!innerValue || !!hint || isFocused || innerValue === 0) && type !== 'checkbox' && type !== 'radio';
@@ -240,6 +246,7 @@ Input.propTypes = {
240246
iconRegular: PropTypes.bool,
241247
iconSize: PropTypes.string,
242248
id: PropTypes.string,
249+
indeterminate: PropTypes.bool,
243250
inputRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func]),
244251
label: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object, PropTypes.bool]),
245252
labelClass: PropTypes.string,
@@ -275,6 +282,7 @@ Input.defaultProps = {
275282
icon: '',
276283
iconBrand: false,
277284
focused: false,
285+
indeterminate: false,
278286
iconClass: '',
279287
iconLight: false,
280288
onIconMouseEnter: () => {},
@@ -284,7 +292,7 @@ Input.defaultProps = {
284292
id: undefined,
285293
noTag: false,
286294
outline: false,
287-
label: '',
295+
label: ' ',
288296
labelClass: '',
289297
labelId: '',
290298
size: '',

0 commit comments

Comments
 (0)