@lanaco/lnc-react-ui 2.0.4 → 2.1.0
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/lib/index.esm.js +12 -6
- package/lib/index.js +12 -6
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -22674,7 +22674,7 @@ var FadeIn = function FadeIn(_ref) {
|
|
|
22674
22674
|
}), children);
|
|
22675
22675
|
};
|
|
22676
22676
|
|
|
22677
|
-
var _templateObject$i, _templateObject2$d, _templateObject3$9, _templateObject4$8, _templateObject5$8, _templateObject6$7, _templateObject7$5, _templateObject8$5, _templateObject9$5, _templateObject10$4, _DropdownLookup$
|
|
22677
|
+
var _templateObject$i, _templateObject2$d, _templateObject3$9, _templateObject4$8, _templateObject5$8, _templateObject6$7, _templateObject7$5, _templateObject8$5, _templateObject9$5, _templateObject10$4, _DropdownLookup$propT;
|
|
22678
22678
|
|
|
22679
22679
|
var paddingBySize$9 = function paddingBySize(size) {
|
|
22680
22680
|
if (size === "small") return "0.325rem 0.375rem";
|
|
@@ -22946,7 +22946,7 @@ var DropdownLookup = function DropdownLookup(props) {
|
|
|
22946
22946
|
}))), renderSuggestions());
|
|
22947
22947
|
};
|
|
22948
22948
|
|
|
22949
|
-
DropdownLookup.defaultProps =
|
|
22949
|
+
DropdownLookup.defaultProps = {
|
|
22950
22950
|
loading: false,
|
|
22951
22951
|
initialValue: {
|
|
22952
22952
|
key: 0,
|
|
@@ -22957,8 +22957,14 @@ DropdownLookup.defaultProps = (_DropdownLookup$defau = {
|
|
|
22957
22957
|
theme: theme,
|
|
22958
22958
|
disabled: false,
|
|
22959
22959
|
load: function load() {},
|
|
22960
|
-
onChange: function onChange() {}
|
|
22961
|
-
|
|
22960
|
+
onChange: function onChange() {},
|
|
22961
|
+
clear: function clear() {},
|
|
22962
|
+
className: "",
|
|
22963
|
+
size: "small",
|
|
22964
|
+
color: "primary",
|
|
22965
|
+
value: "",
|
|
22966
|
+
notItemsFoundText: "No items found..."
|
|
22967
|
+
};
|
|
22962
22968
|
DropdownLookup.propTypes = (_DropdownLookup$propT = {
|
|
22963
22969
|
theme: PropTypes.object.isRequired,
|
|
22964
22970
|
id: PropTypes.string,
|
|
@@ -49263,7 +49269,7 @@ var TableHeadRow$1 = newStyled.tr(_templateObject5$6 || (_templateObject5$6 = _t
|
|
|
49263
49269
|
var TableHeadCell$1 = newStyled.th(_templateObject6$5 || (_templateObject6$5 = _taggedTemplateLiteral(["\n text-align: left;\n transition: all 250ms ease;\n font-weight: 900;\n\n ", "\n\n &:first-of-type {\n border-radius: 3px 0 0 0;\n }\n\n &:last-of-type {\n border-radius: 0 3px 0 0;\n }\n\n &:hover {\n // background-color: ", ";\n background-color: whitesmoke;\n cursor: pointer;\n }\n"])), function (props) {
|
|
49264
49270
|
return props.selectionCell === true ? "width: 27px; padding: 1px 1px 1px 6px;" : "padding: 5px 5px 5px 6px;";
|
|
49265
49271
|
}, theme.palette.primary.light);
|
|
49266
|
-
var HeaderInnerCell = newStyled.div(_templateObject7$4 || (_templateObject7$4 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n\n & i {\n color: black;\n }\n"])));
|
|
49272
|
+
var HeaderInnerCell = newStyled.div(_templateObject7$4 || (_templateObject7$4 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n // justify-content: center;\n\n & i {\n color: black;\n }\n"])));
|
|
49267
49273
|
var HeaderCellText = newStyled.span(_templateObject8$4 || (_templateObject8$4 = _taggedTemplateLiteral(["\n color: black;\n"])));
|
|
49268
49274
|
var HeaderCellIcon = newStyled.span(_templateObject9$4 || (_templateObject9$4 = _taggedTemplateLiteral(["\n color: black;\n margin-left: auto;\n\n & i {\n color: ", ";\n }\n"])), function (props) {
|
|
49269
49275
|
return props.sort ? "transparent" : "black";
|
|
@@ -52573,7 +52579,7 @@ var SearchBar = function SearchBar(props) {
|
|
|
52573
52579
|
}
|
|
52574
52580
|
|
|
52575
52581
|
if (e.key === "Backspace" && items.length > 0 && value === "") {
|
|
52576
|
-
|
|
52582
|
+
handleRemoveItem(items.length - 1);
|
|
52577
52583
|
}
|
|
52578
52584
|
};
|
|
52579
52585
|
|
package/lib/index.js
CHANGED
|
@@ -22715,7 +22715,7 @@ var FadeIn = function FadeIn(_ref) {
|
|
|
22715
22715
|
}), children);
|
|
22716
22716
|
};
|
|
22717
22717
|
|
|
22718
|
-
var _templateObject$i, _templateObject2$d, _templateObject3$9, _templateObject4$8, _templateObject5$8, _templateObject6$7, _templateObject7$5, _templateObject8$5, _templateObject9$5, _templateObject10$4, _DropdownLookup$
|
|
22718
|
+
var _templateObject$i, _templateObject2$d, _templateObject3$9, _templateObject4$8, _templateObject5$8, _templateObject6$7, _templateObject7$5, _templateObject8$5, _templateObject9$5, _templateObject10$4, _DropdownLookup$propT;
|
|
22719
22719
|
|
|
22720
22720
|
var paddingBySize$9 = function paddingBySize(size) {
|
|
22721
22721
|
if (size === "small") return "0.325rem 0.375rem";
|
|
@@ -22987,7 +22987,7 @@ var DropdownLookup = function DropdownLookup(props) {
|
|
|
22987
22987
|
}))), renderSuggestions());
|
|
22988
22988
|
};
|
|
22989
22989
|
|
|
22990
|
-
DropdownLookup.defaultProps =
|
|
22990
|
+
DropdownLookup.defaultProps = {
|
|
22991
22991
|
loading: false,
|
|
22992
22992
|
initialValue: {
|
|
22993
22993
|
key: 0,
|
|
@@ -22998,8 +22998,14 @@ DropdownLookup.defaultProps = (_DropdownLookup$defau = {
|
|
|
22998
22998
|
theme: theme,
|
|
22999
22999
|
disabled: false,
|
|
23000
23000
|
load: function load() {},
|
|
23001
|
-
onChange: function onChange() {}
|
|
23002
|
-
|
|
23001
|
+
onChange: function onChange() {},
|
|
23002
|
+
clear: function clear() {},
|
|
23003
|
+
className: "",
|
|
23004
|
+
size: "small",
|
|
23005
|
+
color: "primary",
|
|
23006
|
+
value: "",
|
|
23007
|
+
notItemsFoundText: "No items found..."
|
|
23008
|
+
};
|
|
23003
23009
|
DropdownLookup.propTypes = (_DropdownLookup$propT = {
|
|
23004
23010
|
theme: PropTypes__default['default'].object.isRequired,
|
|
23005
23011
|
id: PropTypes__default['default'].string,
|
|
@@ -49304,7 +49310,7 @@ var TableHeadRow$1 = newStyled.tr(_templateObject5$6 || (_templateObject5$6 = _t
|
|
|
49304
49310
|
var TableHeadCell$1 = newStyled.th(_templateObject6$5 || (_templateObject6$5 = _taggedTemplateLiteral__default['default'](["\n text-align: left;\n transition: all 250ms ease;\n font-weight: 900;\n\n ", "\n\n &:first-of-type {\n border-radius: 3px 0 0 0;\n }\n\n &:last-of-type {\n border-radius: 0 3px 0 0;\n }\n\n &:hover {\n // background-color: ", ";\n background-color: whitesmoke;\n cursor: pointer;\n }\n"])), function (props) {
|
|
49305
49311
|
return props.selectionCell === true ? "width: 27px; padding: 1px 1px 1px 6px;" : "padding: 5px 5px 5px 6px;";
|
|
49306
49312
|
}, theme.palette.primary.light);
|
|
49307
|
-
var HeaderInnerCell = newStyled.div(_templateObject7$4 || (_templateObject7$4 = _taggedTemplateLiteral__default['default'](["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n\n & i {\n color: black;\n }\n"])));
|
|
49313
|
+
var HeaderInnerCell = newStyled.div(_templateObject7$4 || (_templateObject7$4 = _taggedTemplateLiteral__default['default'](["\n display: flex;\n flex-direction: row;\n align-items: center;\n // justify-content: center;\n\n & i {\n color: black;\n }\n"])));
|
|
49308
49314
|
var HeaderCellText = newStyled.span(_templateObject8$4 || (_templateObject8$4 = _taggedTemplateLiteral__default['default'](["\n color: black;\n"])));
|
|
49309
49315
|
var HeaderCellIcon = newStyled.span(_templateObject9$4 || (_templateObject9$4 = _taggedTemplateLiteral__default['default'](["\n color: black;\n margin-left: auto;\n\n & i {\n color: ", ";\n }\n"])), function (props) {
|
|
49310
49316
|
return props.sort ? "transparent" : "black";
|
|
@@ -52614,7 +52620,7 @@ var SearchBar = function SearchBar(props) {
|
|
|
52614
52620
|
}
|
|
52615
52621
|
|
|
52616
52622
|
if (e.key === "Backspace" && items.length > 0 && value === "") {
|
|
52617
|
-
|
|
52623
|
+
handleRemoveItem(items.length - 1);
|
|
52618
52624
|
}
|
|
52619
52625
|
};
|
|
52620
52626
|
|