react-gldn-kit 0.1.72 → 0.1.73
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.
|
@@ -65,10 +65,10 @@ var BaseInputUi = function (props) {
|
|
|
65
65
|
_a[styles.borderColorfulRed] = errorText,
|
|
66
66
|
_a), inputWrapperClasses) }, { children: [startIcon, (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.inputWithLabel }, { children: [(0, jsx_runtime_1.jsx)("input", { onFocus: handleFocus, onBlur: handleBlur, inputMode: inputMode, className: (0, classnames_1.default)(styles.input, (_b = {},
|
|
67
67
|
_b[styles.disabled] = disabled,
|
|
68
|
-
_b), inputClasses), value: value, type: type, placeholder: placeholder, onChange: handleChange }), label && (0, jsx_runtime_1.jsx)("label", __assign({ className: (0, classnames_1.default)(styles.label, (_c = {},
|
|
68
|
+
_b), inputClasses), value: value, type: type, placeholder: placeholder, onChange: handleChange }), label && ((0, jsx_runtime_1.jsx)("label", __assign({ className: (0, classnames_1.default)(styles.label, (_c = {},
|
|
69
69
|
_c[styles.labelRight] = startIcon,
|
|
70
70
|
_c[styles.hideLabel] = isHidePlaceholder,
|
|
71
71
|
_c[styles.labelUp] = inputLabelType === 'labelUp' || value,
|
|
72
|
-
_c), labelClasses) }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: label }) }))] })), value && withClearValue && !errorText && ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.searchButton, styles.clearButton), onClick: handleClearInputValue }, { children: (0, jsx_runtime_1.jsx)(CrossSvg_1.CrossSvg, { classes: styles.crossSvg }) }))), value && withClearValue && errorText && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.searchButton }, { children: (0, jsx_runtime_1.jsx)(WarningSvg_1.WarningSvg, {}) }))), children && ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.rowChildrenData, classesChildrenWrapper) }, { children: children }))), errorText && withErrorSvg && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.rowChildrenData }, { children: (0, jsx_runtime_1.jsx)(inputError_svg_1.ReactComponent, {}) }))), !errorText && bottomText && ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.errorText, styles.animationFadeIn, styles.resetErrorColor) }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: bottomText }) })))] })), errorText && ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.errorText, styles.animationFadeIn) }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: errorText }) })))] })));
|
|
72
|
+
_c), labelClasses) }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: label }) })))] })), value && withClearValue && !errorText && ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.searchButton, styles.clearButton), onClick: handleClearInputValue }, { children: (0, jsx_runtime_1.jsx)(CrossSvg_1.CrossSvg, { classes: styles.crossSvg }) }))), value && withClearValue && errorText && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.searchButton }, { children: (0, jsx_runtime_1.jsx)(WarningSvg_1.WarningSvg, {}) }))), children && ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.rowChildrenData, classesChildrenWrapper) }, { children: children }))), errorText && withErrorSvg && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.rowChildrenData }, { children: (0, jsx_runtime_1.jsx)(inputError_svg_1.ReactComponent, {}) }))), !errorText && bottomText && ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.errorText, styles.animationFadeIn, styles.resetErrorColor) }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: bottomText }) })))] })), errorText && ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.errorText, styles.animationFadeIn) }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: errorText }) })))] })));
|
|
73
73
|
};
|
|
74
74
|
exports.BaseInputUi = BaseInputUi;
|
|
@@ -95,7 +95,7 @@ var Selector = function (props) {
|
|
|
95
95
|
.map(function (i) { return getText(i.name); })
|
|
96
96
|
.join(joinSymbol);
|
|
97
97
|
}
|
|
98
|
-
var name = ((_a = data.find(function (i) { return i.id === activeId; })) === null || _a === void 0 ? void 0 : _a.name) ||
|
|
98
|
+
var name = ((_a = data.find(function (i) { return i.id === activeId; })) === null || _a === void 0 ? void 0 : _a.name) || '';
|
|
99
99
|
return getText(name);
|
|
100
100
|
};
|
|
101
101
|
(0, react_1.useEffect)(function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-gldn-kit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.73",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"keywords": [],
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"classnames": "*",
|
|
57
57
|
"react-responsive-carousel": "*",
|
|
58
58
|
"zustand": "*",
|
|
59
|
-
"react":"*",
|
|
60
|
-
"react-dom":"*",
|
|
61
|
-
"react-memory-optimization":"*"
|
|
59
|
+
"react": "*",
|
|
60
|
+
"react-dom": "*",
|
|
61
|
+
"react-memory-optimization": "*"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"html-react-parser": "^5.1.12",
|