acsi-core 0.1.41 → 0.1.43
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.
|
@@ -4,7 +4,7 @@ interface IProps {
|
|
|
4
4
|
value: string;
|
|
5
5
|
onChange: (name: string, value: string) => void;
|
|
6
6
|
width?: number;
|
|
7
|
-
onPressEnter?: () => void;
|
|
7
|
+
onPressEnter?: (value: string) => void;
|
|
8
8
|
}
|
|
9
9
|
declare const CoreSearch: (props: IProps) => React.JSX.Element;
|
|
10
10
|
export default CoreSearch;
|
package/dist/index.css
CHANGED
|
@@ -245,7 +245,8 @@
|
|
|
245
245
|
align-items: center; }
|
|
246
246
|
._3HY4f label {
|
|
247
247
|
font-size: 14px;
|
|
248
|
-
font-weight: 400;
|
|
248
|
+
font-weight: 400;
|
|
249
|
+
padding-top: 2px; }
|
|
249
250
|
._3HY4f input {
|
|
250
251
|
width: 16px;
|
|
251
252
|
height: 16px;
|
|
@@ -377,6 +378,8 @@
|
|
|
377
378
|
background-color: #e5f9ff; }
|
|
378
379
|
._wyI1K:hover ._9XW-D {
|
|
379
380
|
background-color: #e5f9ff; }
|
|
381
|
+
._wyI1K ._2iDm7 {
|
|
382
|
+
padding-bottom: 4px; }
|
|
380
383
|
._wyI1K ._9XW-D {
|
|
381
384
|
font-size: 14px;
|
|
382
385
|
font-weight: 400;
|
package/dist/index.js
CHANGED
|
@@ -1427,7 +1427,7 @@ var CoreInput$1 = function CoreInput(props) {
|
|
|
1427
1427
|
name: name,
|
|
1428
1428
|
checked: checked,
|
|
1429
1429
|
onChange: function onChange(e) {
|
|
1430
|
-
return _onChange(name, e.target.checked);
|
|
1430
|
+
return _onChange === null || _onChange === void 0 ? void 0 : _onChange(name, e.target.checked);
|
|
1431
1431
|
},
|
|
1432
1432
|
disabled: disabled
|
|
1433
1433
|
}), React__default.createElement(reactstrap.Label, {
|
|
@@ -1567,7 +1567,7 @@ var Close = function Close(props) {
|
|
|
1567
1567
|
fill: "none",
|
|
1568
1568
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1569
1569
|
}, React__default.createElement("g", {
|
|
1570
|
-
|
|
1570
|
+
clipPath: "url(#clip0_1060_48455)"
|
|
1571
1571
|
}, React__default.createElement("rect", {
|
|
1572
1572
|
x: "2.48438",
|
|
1573
1573
|
y: "3.61597",
|
|
@@ -1707,7 +1707,7 @@ var CoreTextArea = function CoreTextArea(props) {
|
|
|
1707
1707
|
}, rest)));
|
|
1708
1708
|
};
|
|
1709
1709
|
|
|
1710
|
-
var styles$9 = {"core-search":"_wyI1K","input":"_9XW-D","clear":"_1nhXy"};
|
|
1710
|
+
var styles$9 = {"core-search":"_wyI1K","input":"_9XW-D","icon":"_2iDm7","clear":"_1nhXy"};
|
|
1711
1711
|
|
|
1712
1712
|
var CoreSearch = function CoreSearch(props) {
|
|
1713
1713
|
var _props$name = props.name,
|
|
@@ -1718,7 +1718,7 @@ var CoreSearch = function CoreSearch(props) {
|
|
|
1718
1718
|
onPressEnter = props.onPressEnter;
|
|
1719
1719
|
var handleClear = function handleClear() {
|
|
1720
1720
|
_onChange(name, "");
|
|
1721
|
-
onPressEnter && onPressEnter();
|
|
1721
|
+
onPressEnter && onPressEnter("");
|
|
1722
1722
|
};
|
|
1723
1723
|
return React__default.createElement("div", {
|
|
1724
1724
|
className: styles$9["core-search"],
|
|
@@ -1737,7 +1737,7 @@ var CoreSearch = function CoreSearch(props) {
|
|
|
1737
1737
|
placeholder: "Search...",
|
|
1738
1738
|
onKeyDown: function onKeyDown(e) {
|
|
1739
1739
|
if (e.key === "Enter") {
|
|
1740
|
-
onPressEnter && onPressEnter();
|
|
1740
|
+
onPressEnter && onPressEnter(value);
|
|
1741
1741
|
}
|
|
1742
1742
|
}
|
|
1743
1743
|
}), value.length ? React__default.createElement("div", {
|