@citygross/components 0.7.119 → 0.7.120
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import * as styles from './Input.styles';
|
|
3
|
-
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare function Input({ flexGrow, isValid, fontSize, inputSize, inputRef, ...props }: styles.InputProps & {
|
|
4
|
+
inputRef?: React.RefObject<HTMLInputElement>;
|
|
5
|
+
}): JSX.Element;
|
|
@@ -11,8 +11,8 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
12
|
|
|
13
13
|
function Input(_a) {
|
|
14
|
-
var flexGrow = _a.flexGrow, isValid = _a.isValid, fontSize = _a.fontSize, _b = _a.inputSize, inputSize = _b === void 0 ? 'medium' : _b, props = _tslib.__rest(_a, ["flexGrow", "isValid", "fontSize", "inputSize"]);
|
|
15
|
-
return (React__default["default"].createElement(Input_styles.Input, _tslib.__assign({ flexGrow: flexGrow, fontSize: fontSize, isValid: isValid, inputSize: inputSize }, props)));
|
|
14
|
+
var flexGrow = _a.flexGrow, isValid = _a.isValid, fontSize = _a.fontSize, _b = _a.inputSize, inputSize = _b === void 0 ? 'medium' : _b, inputRef = _a.inputRef, props = _tslib.__rest(_a, ["flexGrow", "isValid", "fontSize", "inputSize", "inputRef"]);
|
|
15
|
+
return (React__default["default"].createElement(Input_styles.Input, _tslib.__assign({ flexGrow: flexGrow, fontSize: fontSize, isValid: isValid, inputSize: inputSize, ref: inputRef }, props)));
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
exports.Input = Input;
|
|
@@ -3,8 +3,8 @@ import { Input as Input$1 } from './Input.styles.js';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
5
5
|
function Input(_a) {
|
|
6
|
-
var flexGrow = _a.flexGrow, isValid = _a.isValid, fontSize = _a.fontSize, _b = _a.inputSize, inputSize = _b === void 0 ? 'medium' : _b, props = __rest(_a, ["flexGrow", "isValid", "fontSize", "inputSize"]);
|
|
7
|
-
return (React.createElement(Input$1, __assign({ flexGrow: flexGrow, fontSize: fontSize, isValid: isValid, inputSize: inputSize }, props)));
|
|
6
|
+
var flexGrow = _a.flexGrow, isValid = _a.isValid, fontSize = _a.fontSize, _b = _a.inputSize, inputSize = _b === void 0 ? 'medium' : _b, inputRef = _a.inputRef, props = __rest(_a, ["flexGrow", "isValid", "fontSize", "inputSize", "inputRef"]);
|
|
7
|
+
return (React.createElement(Input$1, __assign({ flexGrow: flexGrow, fontSize: fontSize, isValid: isValid, inputSize: inputSize, ref: inputRef }, props)));
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export { Input };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citygross/components",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.120",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./build/cjs/components/src/index.js",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"moment": "^2.29.1",
|
|
72
72
|
"react-loading-skeleton": "^2.2.0"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "7657ddaf0945b9ddbd48910438e844860336e397"
|
|
75
75
|
}
|