@sellout/ui 0.0.137 → 0.0.139
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.
|
@@ -35,4 +35,5 @@ export declare type InputProps = {
|
|
|
35
35
|
validationError?: string;
|
|
36
36
|
disabled?: boolean;
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
declare const _default: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<unknown>>;
|
|
39
|
+
export default _default;
|
|
@@ -68,8 +68,8 @@ var InputStyled = styled.input(templateObject_10 || (templateObject_10 = __makeT
|
|
|
68
68
|
return "38px";
|
|
69
69
|
return null;
|
|
70
70
|
}, function (props) { return props.hasIcon ? '8px' : '16px'; }, function (props) { return props.padding; }, Colors.Grey4, media.mobile(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n font-size: 1.6rem;\n"], ["\n font-size: 1.6rem;\n"]))), media.desktop(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n font-size: 1.4rem;\n"], ["\n font-size: 1.4rem;\n"]))));
|
|
71
|
-
function Input(_a) {
|
|
72
|
-
var
|
|
71
|
+
function Input(_a, inputRef) {
|
|
72
|
+
var autoFocus = _a.autoFocus, placeholder = _a.placeholder, value = _a.value, defaultValue = _a.defaultValue, icon = _a.icon, iconColor = _a.iconColor, _b = _a.size, size = _b === void 0 ? InputSizes.Regular : _b, _c = _a.type, type = _c === void 0 ? "text" : _c, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onChange = _a.onChange, onFocus = _a.onFocus, onBlur = _a.onBlur, onSubmit = _a.onSubmit, onClear = _a.onClear, _d = _a.canSubmit, canSubmit = _d === void 0 ? true : _d, loading = _a.loading, margin = _a.margin, padding = _a.padding, width = _a.width, onEnter = _a.onEnter, label = _a.label, subLabel = _a.subLabel, tip = _a.tip, maxLength = _a.maxLength, iconConditionalColor = _a.iconConditionalColor, validationError = _a.validationError, _e = _a.disabled, disabled = _e === void 0 ? false : _e;
|
|
73
73
|
var _f = useState(false), hovered = _f[0], setHovered = _f[1];
|
|
74
74
|
var _g = useState(false), focused = _g[0], setFocused = _g[1];
|
|
75
75
|
var submit = function (event) {
|
|
@@ -161,7 +161,8 @@ function Input(_a) {
|
|
|
161
161
|
})()),
|
|
162
162
|
validationError && React.createElement(ValidationError, { validationError: validationError })));
|
|
163
163
|
}
|
|
164
|
+
var Input$1 = React.forwardRef(Input);
|
|
164
165
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
|
|
165
166
|
|
|
166
|
-
export default Input;
|
|
167
|
+
export default Input$1;
|
|
167
168
|
export { InputSizes };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.139",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"module": "build/index.es.js",
|
|
6
6
|
"files": [
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"shortid": "^2.2.16",
|
|
71
71
|
"use-places-autocomplete": "^1.9.4"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "f81cf5adeef7e76090f7bbcae0f26377a0be3d41",
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"react": "^16.13.0",
|
|
76
76
|
"react-dom": "^16.13.0",
|