@uxf/ui 1.0.0-beta.130 → 1.0.0-beta.132
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.
- package/css/combobox.css +1 -0
- package/css/input.css +1 -0
- package/input/input-element.d.ts +1 -0
- package/input/input-element.js +1 -1
- package/package.json +1 -1
- package/text-input/text-input.js +1 -1
package/css/combobox.css
CHANGED
package/css/input.css
CHANGED
package/input/input-element.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ declare type InputMode = "none" | "text" | "tel" | "url" | "email" | "numeric" |
|
|
|
4
4
|
export interface InputElementProps extends FormControlProps<string> {
|
|
5
5
|
"aria-describedby"?: string;
|
|
6
6
|
"aria-invalid"?: boolean;
|
|
7
|
+
autoComplete?: string | undefined;
|
|
7
8
|
form?: string;
|
|
8
9
|
id?: string;
|
|
9
10
|
inputMode?: InputMode;
|
package/input/input-element.js
CHANGED
|
@@ -7,5 +7,5 @@ exports.InputElement = void 0;
|
|
|
7
7
|
const forwardRef_1 = require("@uxf/core/utils/forwardRef");
|
|
8
8
|
const react_1 = __importDefault(require("react"));
|
|
9
9
|
exports.InputElement = (0, forwardRef_1.forwardRef)("InputElement", (props, ref) => {
|
|
10
|
-
return (react_1.default.createElement("input", { "aria-describedby": props["aria-describedby"], "aria-invalid": props.isInvalid, className: "uxf-input__element", disabled: props.isDisabled, form: props.form, id: props.id, inputMode: props.inputMode, max: props.max, maxLength: props.maxLength, min: props.min, minLength: props.minLength, onBlur: props.onBlur, onChange: (event) => { var _a; return (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, event.target.value, event); }, onFocus: props.onFocus, onKeyDown: props.onKeyDown, pattern: props.pattern, placeholder: props.placeholder, readOnly: props.isReadOnly, ref: ref, step: props.step, tabIndex: props.isReadOnly ? -1 : undefined, type: props.type, value: props.value }));
|
|
10
|
+
return (react_1.default.createElement("input", { "aria-describedby": props["aria-describedby"], "aria-invalid": props.isInvalid, autoComplete: props.autoComplete, className: "uxf-input__element", disabled: props.isDisabled, form: props.form, id: props.id, inputMode: props.inputMode, max: props.max, maxLength: props.maxLength, min: props.min, minLength: props.minLength, onBlur: props.onBlur, onChange: (event) => { var _a; return (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, event.target.value, event); }, onFocus: props.onFocus, onKeyDown: props.onKeyDown, pattern: props.pattern, placeholder: props.placeholder, readOnly: props.isReadOnly, ref: ref, step: props.step, tabIndex: props.isReadOnly ? -1 : undefined, type: props.type, value: props.value }));
|
|
11
11
|
});
|
package/package.json
CHANGED
package/text-input/text-input.js
CHANGED
|
@@ -51,7 +51,7 @@ exports.TextInput = (0, forwardRef_1.forwardRef)("TextInput", (props, ref) => {
|
|
|
51
51
|
react_1.default.createElement(input_1.Input, { size: props.size, variant: props.variant },
|
|
52
52
|
props.leftAddon && react_1.default.createElement(input_1.Input.LeftAddon, null, props.leftAddon),
|
|
53
53
|
props.leftElement && react_1.default.createElement(input_1.Input.LeftElement, null, props.leftElement),
|
|
54
|
-
react_1.default.createElement(input_1.Input.Element, { "aria-describedby": errorId, form: props.form, id: id, inputMode: props.inputMode, isDisabled: props.isDisabled, isInvalid: props.isInvalid, isReadOnly: props.isReadOnly, isRequired: props.isRequired, max: props.max, maxLength: props.maxLength, min: props.min, minLength: props.minLength, name: props.name, onBlur: onBlur, onChange: props.onChange, onFocus: onFocus, onKeyDown: props.onKeyDown, pattern: props.pattern, placeholder: props.placeholder, ref: ref, step: props.step, type: props.type, value: props.value }),
|
|
54
|
+
react_1.default.createElement(input_1.Input.Element, { "aria-describedby": errorId, autoComplete: props.autoComplete, form: props.form, id: id, inputMode: props.inputMode, isDisabled: props.isDisabled, isInvalid: props.isInvalid, isReadOnly: props.isReadOnly, isRequired: props.isRequired, max: props.max, maxLength: props.maxLength, min: props.min, minLength: props.minLength, name: props.name, onBlur: onBlur, onChange: props.onChange, onFocus: onFocus, onKeyDown: props.onKeyDown, pattern: props.pattern, placeholder: props.placeholder, ref: ref, step: props.step, type: props.type, value: props.value }),
|
|
55
55
|
props.rightElement && react_1.default.createElement(input_1.Input.RightElement, null, props.rightElement),
|
|
56
56
|
props.rightAddon && react_1.default.createElement(input_1.Input.RightAddon, null, props.rightAddon))));
|
|
57
57
|
});
|