@typeolymp/ui-components 1.19.18 → 1.19.19
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/build/index.es.js +20 -2
- package/build/index.es.js.map +1 -1
- package/build/index.js +20 -2
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -4290,7 +4290,25 @@ var StyledParagraph = styled.p(templateObject_1$P || (templateObject_1$P = __mak
|
|
|
4290
4290
|
var templateObject_1$P;
|
|
4291
4291
|
|
|
4292
4292
|
var Container$q = styled.div(templateObject_1$O || (templateObject_1$O = __makeTemplateObject$1(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
|
|
4293
|
-
var InputIconWrapper = styled.div(templateObject_2$B || (templateObject_2$B = __makeTemplateObject$1(["\n position: relative;\n width: 100%;\n\n input {\n padding-right:
|
|
4293
|
+
var InputIconWrapper = styled.div(templateObject_2$B || (templateObject_2$B = __makeTemplateObject$1(["\n position: relative;\n width: 100%;\n\n input {\n padding-right: ", ";\n }\n\n input[type=\"search\"] {\n padding-right: ", ";\n }\n\n input[type=\"date\"] {\n color: ", ";\n }\n\n div {\n position: absolute;\n height: 24px;\n right: ", ";\n top: ", ";\n }\n\n svg {\n cursor: ", ";\n width: ", ";\n }\n"], ["\n position: relative;\n width: 100%;\n\n input {\n padding-right: ", ";\n }\n\n input[type=\"search\"] {\n padding-right: ", ";\n }\n\n input[type=\"date\"] {\n color: ", ";\n }\n\n div {\n position: absolute;\n height: 24px;\n right: ", ";\n top: ", ";\n }\n\n svg {\n cursor: ", ";\n width: ", ";\n }\n"])), function (_a) {
|
|
4294
|
+
var size = _a.size;
|
|
4295
|
+
switch (size) {
|
|
4296
|
+
case "small":
|
|
4297
|
+
return "38px";
|
|
4298
|
+
default:
|
|
4299
|
+
case "medium":
|
|
4300
|
+
return "43px";
|
|
4301
|
+
}
|
|
4302
|
+
}, function (_a) {
|
|
4303
|
+
var size = _a.size;
|
|
4304
|
+
switch (size) {
|
|
4305
|
+
case "small":
|
|
4306
|
+
return "28px";
|
|
4307
|
+
default:
|
|
4308
|
+
case "medium":
|
|
4309
|
+
return "33px";
|
|
4310
|
+
}
|
|
4311
|
+
}, function (_a) {
|
|
4294
4312
|
var isChanged = _a.isChanged;
|
|
4295
4313
|
return !isChanged ? theme.colors.lightGray.darker : "";
|
|
4296
4314
|
}, function (_a) {
|
|
@@ -8010,7 +8028,7 @@ var SearchInput = function (props) {
|
|
|
8010
8028
|
if (props.onSearch)
|
|
8011
8029
|
props.onSearch(value);
|
|
8012
8030
|
};
|
|
8013
|
-
return (jsx$1(Container$q, { children: jsxs(InputIconWrapper, __assign$2({ disabled: props.disabled, size: props.size }, { children: [jsx$1(Icon, { type: "search", color: "gray", size: "small", onClick: onSearch }), jsx$1(StyledInput, __assign$2({ type: "
|
|
8031
|
+
return (jsx$1(Container$q, { children: jsxs(InputIconWrapper, __assign$2({ disabled: props.disabled, size: props.size }, { children: [jsx$1(Icon, { type: "search", color: "gray", size: "small", onClick: onSearch }), jsx$1(StyledInput, __assign$2({ type: "search" }, props, { onChange: onChange, onKeyPress: onKeyPress }))] })) }));
|
|
8014
8032
|
};
|
|
8015
8033
|
|
|
8016
8034
|
var Input = function (props) {
|