x25 17.3.28 → 17.3.30
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/Inputs/InputTemplate.d.ts +2 -1
- package/Inputs/InputTemplate.js +2 -2
- package/Inputs/InputTemplate.js.map +1 -1
- package/Inputs/SimpleInput.d.ts +2 -1
- package/Inputs/SimpleInput.js +2 -2
- package/Inputs/SimpleInput.js.map +1 -1
- package/Inputs/SimpleTextarea.d.ts +2 -1
- package/Inputs/SimpleTextarea.js +2 -2
- package/Inputs/SimpleTextarea.js.map +1 -1
- package/Inputs/TextareaTemplate.d.ts +1 -0
- package/Inputs/TextareaTemplate.js.map +1 -1
- package/package.json +1 -1
|
@@ -12,10 +12,11 @@ declare type InputTemplatePropTypes = {
|
|
|
12
12
|
error?: any;
|
|
13
13
|
submitting: boolean;
|
|
14
14
|
};
|
|
15
|
+
autoComplete?: string;
|
|
15
16
|
readonly tabIndex?: string;
|
|
16
17
|
readonly left?: string;
|
|
17
18
|
readonly right?: string;
|
|
18
19
|
readonly inputRef?: (callback: (node: any) => void) => void;
|
|
19
20
|
};
|
|
20
|
-
export declare const InputTemplate: ({ input, theType, label, inputRef, autoFocus, inputClass, divClass, placeholder, left, tabIndex, right, meta: { submitting, touched, error }, }: InputTemplatePropTypes) => JSX.Element;
|
|
21
|
+
export declare const InputTemplate: ({ input, theType, label, inputRef, autoFocus, inputClass, divClass, placeholder, left, tabIndex, right, autoComplete, meta: { submitting, touched, error }, }: InputTemplatePropTypes) => JSX.Element;
|
|
21
22
|
export {};
|
package/Inputs/InputTemplate.js
CHANGED
|
@@ -18,14 +18,14 @@ exports.InputTemplate = void 0;
|
|
|
18
18
|
var react_1 = __importDefault(require("react"));
|
|
19
19
|
var classnames_1 = __importDefault(require("classnames"));
|
|
20
20
|
var InputTemplate = function (_a) {
|
|
21
|
-
var input = _a.input, theType = _a.theType, label = _a.label, inputRef = _a.inputRef, autoFocus = _a.autoFocus, inputClass = _a.inputClass, divClass = _a.divClass, placeholder = _a.placeholder, left = _a.left, tabIndex = _a.tabIndex, right = _a.right, _b = _a.meta, submitting = _b.submitting, touched = _b.touched, error = _b.error;
|
|
21
|
+
var input = _a.input, theType = _a.theType, label = _a.label, inputRef = _a.inputRef, autoFocus = _a.autoFocus, inputClass = _a.inputClass, divClass = _a.divClass, placeholder = _a.placeholder, left = _a.left, tabIndex = _a.tabIndex, right = _a.right, autoComplete = _a.autoComplete, _b = _a.meta, submitting = _b.submitting, touched = _b.touched, error = _b.error;
|
|
22
22
|
var warningClass = "".concat(touched && error ? " is-invalid" : ""), customClass = "".concat(inputClass ? " ".concat(inputClass) : ""), classForInput = "form-control ".concat(warningClass).concat(customClass), classForDiv = "form-group row mt-md-2 ".concat(divClass ? divClass : "");
|
|
23
23
|
return (react_1.default.createElement("div", { className: (0, classnames_1.default)(classForDiv, {
|
|
24
24
|
"is-invalid": touched && error,
|
|
25
25
|
}) },
|
|
26
26
|
react_1.default.createElement("label", { className: "".concat(left ? left : "col-md-4 text-md-right", " form-control-label"), htmlFor: input.name }, label),
|
|
27
27
|
react_1.default.createElement("div", { className: right ? right : "col-md-8" },
|
|
28
|
-
react_1.default.createElement("input", __assign({}, input, { "aria-label": label, autoComplete:
|
|
28
|
+
react_1.default.createElement("input", __assign({}, input, { "aria-label": label, autoComplete: autoComplete, autoFocus: autoFocus, className: classForInput, disabled: submitting, id: input.name, placeholder: placeholder, ref: inputRef ? inputRef : null, tabIndex: tabIndex, type: theType })),
|
|
29
29
|
react_1.default.createElement("div", { className: "invalid-feedback" }, touched && error ? (react_1.default.createElement("span", null, error)) : null))));
|
|
30
30
|
};
|
|
31
31
|
exports.InputTemplate = InputTemplate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputTemplate.js","sourceRoot":"","sources":["../../src/Inputs/InputTemplate.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"InputTemplate.js","sourceRoot":"","sources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UAAU,EACpB,EAAE,EAAE,KAAK,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,EACxC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,EAC/B,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,OAAO,IACb;YACF,uCAAK,SAAS,EAAC,kBAAkB,IAC9B,OAAO,IAAI,KAAK,CAAC,CAAC,CAAC,CAClB,4CACG,KAAK,CACD,CACR,CAAC,CAAC,CAAC,IAAI,CACJ,CACF,CACF,CACP,CAAC;AACJ,CAAC,CAAC;AA3CW,QAAA,aAAa,iBA2CxB"}
|
package/Inputs/SimpleInput.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare type SimpleInputPropTypes = {
|
|
|
5
5
|
readonly input: any;
|
|
6
6
|
readonly theType?: "input" | "password";
|
|
7
7
|
readonly tabIndex?: string;
|
|
8
|
+
autoComplete?: string;
|
|
8
9
|
readonly label?: string;
|
|
9
10
|
readonly inputRef?: (callback: (node: any) => void) => void;
|
|
10
11
|
readonly meta: {
|
|
@@ -14,4 +15,4 @@ export declare type SimpleInputPropTypes = {
|
|
|
14
15
|
};
|
|
15
16
|
readonly placeholder?: string;
|
|
16
17
|
};
|
|
17
|
-
export declare const SimpleInput: ({ customClass, input, label, autoFocus, tabIndex, placeholder, theType, inputRef, meta: { submitting, touched, error }, }: SimpleInputPropTypes) => JSX.Element;
|
|
18
|
+
export declare const SimpleInput: ({ customClass, input, label, autoFocus, tabIndex, placeholder, theType, inputRef, autoComplete, meta: { submitting, touched, error }, }: SimpleInputPropTypes) => JSX.Element;
|
package/Inputs/SimpleInput.js
CHANGED
|
@@ -18,8 +18,8 @@ exports.SimpleInput = void 0;
|
|
|
18
18
|
var react_1 = __importDefault(require("react"));
|
|
19
19
|
var classnames_1 = __importDefault(require("classnames"));
|
|
20
20
|
var SimpleInput = function (_a) {
|
|
21
|
-
var customClass = _a.customClass, input = _a.input, label = _a.label, autoFocus = _a.autoFocus, tabIndex = _a.tabIndex, placeholder = _a.placeholder, theType = _a.theType, inputRef = _a.inputRef, _b = _a.meta, submitting = _b.submitting, touched = _b.touched, error = _b.error;
|
|
22
|
-
return (react_1.default.createElement("input", __assign({}, input, { "aria-label": label, autoComplete:
|
|
21
|
+
var customClass = _a.customClass, input = _a.input, label = _a.label, autoFocus = _a.autoFocus, tabIndex = _a.tabIndex, placeholder = _a.placeholder, theType = _a.theType, inputRef = _a.inputRef, autoComplete = _a.autoComplete, _b = _a.meta, submitting = _b.submitting, touched = _b.touched, error = _b.error;
|
|
22
|
+
return (react_1.default.createElement("input", __assign({}, input, { "aria-label": label, autoComplete: autoComplete, autoFocus: autoFocus, className: (0, classnames_1.default)("form-control ".concat(customClass || ""), {
|
|
23
23
|
"is-invalid": touched && error,
|
|
24
24
|
}), disabled: submitting, id: input.name, placeholder: placeholder || label, ref: inputRef ? inputRef : null, tabIndex: tabIndex, type: theType })));
|
|
25
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleInput.js","sourceRoot":"","sources":["../../src/Inputs/SimpleInput.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"SimpleInput.js","sourceRoot":"","sources":["../../src/Inputs/SimpleInput.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAiBA,gDAA0B;AAC1B,0DAAoC;AAE7B,IAAM,WAAW,GAAG,UAAC,EAIL;QAHrB,WAAW,iBAAA,EAAE,KAAK,WAAA,EAAE,KAAK,WAAA,EAAE,SAAS,eAAA,EAAE,QAAQ,cAAA,EAAE,WAAW,iBAAA,EAAE,OAAO,aAAA,EAAE,QAAQ,cAAA,EAC9E,YAAY,kBAAA,EACZ,YAAoC,EAA5B,UAAU,gBAAA,EAAE,OAAO,aAAA,EAAE,KAAK,WAAA;IACR,OAAA,CAC1B,oDACM,KAAK,kBACG,KAAK,EACjB,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,IAAA,oBAAU,EAAC,uBAAgB,WAAW,IAAI,EAAE,CAAE,EAAE;YACzD,YAAY,EAAE,OAAO,IAAI,KAAK;SAC/B,CAAC,EAAE,QAAQ,EAAE,UAAU,EACxB,EAAE,EAAE,KAAK,CAAC,IAAI,EACd,WAAW,EAAE,WAAW,IAAI,KAAK,EACjC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,EAC/B,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,OAAO,IAAI,CACpB;AAd2B,CAc3B,CAAC;AAlBW,QAAA,WAAW,eAkBtB"}
|
|
@@ -6,6 +6,7 @@ declare type InputTemplatePropTypes = {
|
|
|
6
6
|
readonly placeholder: string;
|
|
7
7
|
readonly inputClass?: string;
|
|
8
8
|
readonly tabIndex?: string;
|
|
9
|
+
disabled?: boolean;
|
|
9
10
|
readonly rows?: string;
|
|
10
11
|
readonly meta: {
|
|
11
12
|
touched: boolean;
|
|
@@ -14,5 +15,5 @@ declare type InputTemplatePropTypes = {
|
|
|
14
15
|
};
|
|
15
16
|
readonly onRegisterRef?: (callback: (node: any) => void) => void;
|
|
16
17
|
};
|
|
17
|
-
export declare const SimpleTextarea: ({ input, label, onRegisterRef, autoFocus, inputClass, placeholder, tabIndex, rows, meta: { submitting, touched, error }, }: InputTemplatePropTypes) => JSX.Element;
|
|
18
|
+
export declare const SimpleTextarea: ({ disabled, input, label, onRegisterRef, autoFocus, inputClass, placeholder, tabIndex, rows, meta: { submitting, touched, error }, }: InputTemplatePropTypes) => JSX.Element;
|
|
18
19
|
export {};
|
package/Inputs/SimpleTextarea.js
CHANGED
|
@@ -17,9 +17,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
exports.SimpleTextarea = void 0;
|
|
18
18
|
var react_1 = __importDefault(require("react"));
|
|
19
19
|
var SimpleTextarea = function (_a) {
|
|
20
|
-
var input = _a.input, label = _a.label, onRegisterRef = _a.onRegisterRef, autoFocus = _a.autoFocus, inputClass = _a.inputClass, placeholder = _a.placeholder, tabIndex = _a.tabIndex, rows = _a.rows, _b = _a.meta, submitting = _b.submitting, touched = _b.touched, error = _b.error;
|
|
20
|
+
var disabled = _a.disabled, input = _a.input, label = _a.label, onRegisterRef = _a.onRegisterRef, autoFocus = _a.autoFocus, inputClass = _a.inputClass, placeholder = _a.placeholder, tabIndex = _a.tabIndex, rows = _a.rows, _b = _a.meta, submitting = _b.submitting, touched = _b.touched, error = _b.error;
|
|
21
21
|
var warningClass = "".concat(touched && error ? " is-invalid" : ""), customClass = "".concat(inputClass ? " ".concat(inputClass) : ""), classForInput = "form-control ".concat(warningClass).concat(customClass);
|
|
22
|
-
return (react_1.default.createElement("textarea", __assign({}, input, { "aria-label": label, autoFocus: autoFocus, className: classForInput, disabled: submitting, id: input.name, placeholder: placeholder, ref: onRegisterRef ? onRegisterRef : null, rows: rows, tabIndex: tabIndex })));
|
|
22
|
+
return (react_1.default.createElement("textarea", __assign({}, input, { "aria-label": label, autoFocus: autoFocus, className: classForInput, disabled: disabled || submitting, id: input.name, placeholder: placeholder, ref: onRegisterRef ? onRegisterRef : null, rows: rows, tabIndex: tabIndex })));
|
|
23
23
|
};
|
|
24
24
|
exports.SimpleTextarea = SimpleTextarea;
|
|
25
25
|
//# sourceMappingURL=SimpleTextarea.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleTextarea.js","sourceRoot":"","sources":["../../src/Inputs/SimpleTextarea.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"SimpleTextarea.js","sourceRoot":"","sources":["../../src/Inputs/SimpleTextarea.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAgBA,gDAA0B;AAEnB,IAAM,cAAc,GAAG,UAAC,EAIN;QAHvB,QAAQ,cAAA,EACR,KAAK,WAAA,EAAE,KAAK,WAAA,EAAE,aAAa,mBAAA,EAAE,SAAS,eAAA,EAAE,UAAU,gBAAA,EAAE,WAAW,iBAAA,EAAE,QAAQ,cAAA,EAAE,IAAI,UAAA,EAC/E,YAAoC,EAA5B,UAAU,gBAAA,EAAE,OAAO,aAAA,EAAE,KAAK,WAAA;IAElC,IACE,YAAY,GAAG,UAAG,OAAO,IAAI,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAE,EACzD,WAAW,GAAG,UAAG,UAAU,CAAC,CAAC,CAAC,WAAI,UAAU,CAAE,CAAC,CAAC,CAAC,EAAE,CAAE,EACrD,aAAa,GAAG,uBAAgB,YAAY,SAAG,WAAW,CAAE,CAAC;IAE/D,OAAO,CACL,uDACM,KAAK,kBACG,KAAK,EACjB,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,aAAa,EACxB,QAAQ,EAAE,QAAQ,IAAI,UAAU,EAChC,EAAE,EAAE,KAAK,CAAC,IAAI,EACd,WAAW,EAAE,WAAW,EACxB,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,EACzC,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,IAClB,CACH,CAAC;AACJ,CAAC,CAAC;AAxBW,QAAA,cAAc,kBAwBzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextareaTemplate.js","sourceRoot":"","sources":["../../src/Inputs/TextareaTemplate.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"TextareaTemplate.js","sourceRoot":"","sources":["../../src/Inputs/TextareaTemplate.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAiBA,gDAA0B;AAC1B,0DAAoC;AACpC,mDAAkD;AAE3C,IAAM,gBAAgB,GAAG,UAAC,KAA6B;IAE1D,IAAA,KAAK,GAEH,KAAK,MAFF,EAAE,KAAK,GAEV,KAAK,MAFK,EAAE,IAAI,GAEhB,KAAK,KAFW,EAAE,KAAK,GAEvB,KAAK,MAFkB,EACzB,KACE,KAAK,KADiB,EAAhB,OAAO,aAAA,EAAE,KAAK,WAAE,CAChB;IAEV,OAAO,CACL,uCAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,gBAAgB,EAAE;YAC3C,YAAY,EAAE,OAAO,IAAI,KAAK;SAC/B,CAAC;QACA,yCACE,SAAS,EAAE,UAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,sCAAmC,EACzE,OAAO,EAAE,KAAK,CAAC,IAAI,IAClB,KAAK,CACA;QACR,uCAAK,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU;YACxC,8BAAC,+BAAc,eAAK,KAAK,EAAI;YAC7B,uCAAK,SAAS,EAAC,kBAAkB,IAC9B,OAAO,IAAI,KAAK,CAAC,CAAC,CAAC,CAClB,4CACG,KAAK,CACD,CACR,CAAC,CAAC,CAAC,IAAI,CACJ,CACF,CACF,CACP,CAAC;AACJ,CAAC,CAAC;AA3BW,QAAA,gBAAgB,oBA2B3B"}
|
package/package.json
CHANGED