acsi-core 0.1.10 → 0.1.12
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/dist/components/CoreSearch/index.d.ts +1 -0
- package/dist/index.js +32 -12
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +33 -13
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
- package/dist/.DS_Store +0 -0
- package/dist/icons8-google-96~UAyNiMJa.svg +0 -1
- package/dist/layouts/TheLanguageDropdown.d.ts +0 -3
- package/dist/utils/icons.d.ts +0 -3
package/dist/index.js
CHANGED
|
@@ -1401,13 +1401,13 @@ var Search = function Search(props) {
|
|
|
1401
1401
|
fill: "none",
|
|
1402
1402
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1403
1403
|
}, React__default.createElement("path", {
|
|
1404
|
-
|
|
1405
|
-
|
|
1404
|
+
fillRule: "evenodd",
|
|
1405
|
+
clipRule: "evenodd",
|
|
1406
1406
|
d: "M9.40376 9.40352C9.63808 9.1692 10.018 9.1692 10.2523 9.40352L13.4243 12.5755C13.6586 12.8098 13.6586 13.1897 13.4243 13.424C13.19 13.6584 12.8101 13.6584 12.5758 13.424L9.40376 10.252C9.16945 10.0177 9.16945 9.63783 9.40376 9.40352Z",
|
|
1407
1407
|
fill: color
|
|
1408
1408
|
}), React__default.createElement("path", {
|
|
1409
|
-
|
|
1410
|
-
|
|
1409
|
+
fillRule: "evenodd",
|
|
1410
|
+
clipRule: "evenodd",
|
|
1411
1411
|
d: "M6.9999 3.5999C5.12213 3.5999 3.5999 5.12213 3.5999 6.9999C3.5999 8.87767 5.12213 10.3999 6.9999 10.3999C8.87767 10.3999 10.3999 8.87767 10.3999 6.9999C10.3999 5.12213 8.87767 3.5999 6.9999 3.5999ZM2.3999 6.9999C2.3999 4.45939 4.45939 2.3999 6.9999 2.3999C9.54041 2.3999 11.5999 4.45939 11.5999 6.9999C11.5999 9.54041 9.54041 11.5999 6.9999 11.5999C4.45939 11.5999 2.3999 9.54041 2.3999 6.9999Z",
|
|
1412
1412
|
fill: color
|
|
1413
1413
|
}));
|
|
@@ -1459,13 +1459,13 @@ var Info = function Info() {
|
|
|
1459
1459
|
fill: "none",
|
|
1460
1460
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1461
1461
|
}, React__default.createElement("path", {
|
|
1462
|
-
|
|
1463
|
-
|
|
1462
|
+
fillRule: "evenodd",
|
|
1463
|
+
clipRule: "evenodd",
|
|
1464
1464
|
d: "M6.0002 2.1002C3.84628 2.1002 2.1002 3.84628 2.1002 6.0002C2.1002 8.15411 3.84628 9.9002 6.0002 9.9002C8.15411 9.9002 9.9002 8.15411 9.9002 6.0002C9.9002 3.84628 8.15411 2.1002 6.0002 2.1002ZM1.2002 6.0002C1.2002 3.34923 3.34923 1.2002 6.0002 1.2002C8.65116 1.2002 10.8002 3.34923 10.8002 6.0002C10.8002 8.65116 8.65116 10.8002 6.0002 10.8002C3.34923 10.8002 1.2002 8.65116 1.2002 6.0002Z",
|
|
1465
1465
|
fill: "#A6A6AD"
|
|
1466
1466
|
}), React__default.createElement("path", {
|
|
1467
|
-
|
|
1468
|
-
|
|
1467
|
+
fillRule: "evenodd",
|
|
1468
|
+
clipRule: "evenodd",
|
|
1469
1469
|
d: "M5.9998 5.1001C6.24833 5.1001 6.4498 5.30157 6.4498 5.5501V8.2915C6.4498 8.54003 6.24833 8.7415 5.9998 8.7415C5.75128 8.7415 5.5498 8.54003 5.5498 8.2915V5.5501C5.5498 5.30157 5.75128 5.1001 5.9998 5.1001Z",
|
|
1470
1470
|
fill: "#A6A6AD"
|
|
1471
1471
|
}), React__default.createElement("path", {
|
|
@@ -1490,12 +1490,20 @@ var CoreTextArea = function CoreTextArea(props) {
|
|
|
1490
1490
|
tooltip = _props$tooltip === void 0 ? '' : _props$tooltip,
|
|
1491
1491
|
_props$isOptional = props.isOptional,
|
|
1492
1492
|
isOptional = _props$isOptional === void 0 ? false : _props$isOptional;
|
|
1493
|
+
var textareaRef = React.useRef(null);
|
|
1493
1494
|
var _useState = React.useState(false),
|
|
1494
1495
|
isOpenTooltip = _useState[0],
|
|
1495
1496
|
setIsOpenTooltip = _useState[1];
|
|
1496
1497
|
var toggleTooltip = function toggleTooltip() {
|
|
1497
1498
|
return setIsOpenTooltip(!isOpenTooltip);
|
|
1498
1499
|
};
|
|
1500
|
+
React.useEffect(function () {
|
|
1501
|
+
if (textareaRef.current) {
|
|
1502
|
+
var _textareaRef$current;
|
|
1503
|
+
textareaRef.current.style.height = "auto";
|
|
1504
|
+
textareaRef.current.style.height = ((_textareaRef$current = textareaRef.current) === null || _textareaRef$current === void 0 ? void 0 : _textareaRef$current.scrollHeight) + "px";
|
|
1505
|
+
}
|
|
1506
|
+
}, [value]);
|
|
1499
1507
|
return React__default.createElement("div", {
|
|
1500
1508
|
className: styles$8["core-text-area"],
|
|
1501
1509
|
style: {
|
|
@@ -1515,10 +1523,15 @@ var CoreTextArea = function CoreTextArea(props) {
|
|
|
1515
1523
|
isOpen: isOpenTooltip,
|
|
1516
1524
|
toggle: toggleTooltip
|
|
1517
1525
|
}, tooltip) : null), React__default.createElement("textarea", {
|
|
1526
|
+
ref: textareaRef,
|
|
1527
|
+
placeholder: placeholder,
|
|
1518
1528
|
style: {
|
|
1519
|
-
whiteSpace: "pre-wrap"
|
|
1529
|
+
whiteSpace: "pre-wrap",
|
|
1530
|
+
width: "100%",
|
|
1531
|
+
minHeight: "123px",
|
|
1532
|
+
resize: "none",
|
|
1533
|
+
overflow: "hidden"
|
|
1520
1534
|
},
|
|
1521
|
-
placeholder: placeholder,
|
|
1522
1535
|
value: value,
|
|
1523
1536
|
cols: cols,
|
|
1524
1537
|
rows: rows,
|
|
@@ -1535,9 +1548,11 @@ var CoreSearch = function CoreSearch(props) {
|
|
|
1535
1548
|
name = _props$name === void 0 ? "" : _props$name,
|
|
1536
1549
|
value = props.value,
|
|
1537
1550
|
_onChange = props.onChange,
|
|
1538
|
-
width = props.width
|
|
1551
|
+
width = props.width,
|
|
1552
|
+
onPressEnter = props.onPressEnter;
|
|
1539
1553
|
var handleClear = function handleClear() {
|
|
1540
1554
|
_onChange(name, "");
|
|
1555
|
+
onPressEnter && onPressEnter();
|
|
1541
1556
|
};
|
|
1542
1557
|
return React__default.createElement("div", {
|
|
1543
1558
|
className: styles$9["core-search"],
|
|
@@ -1553,7 +1568,12 @@ var CoreSearch = function CoreSearch(props) {
|
|
|
1553
1568
|
onChange: function onChange(e) {
|
|
1554
1569
|
return _onChange(name, e.target.value);
|
|
1555
1570
|
},
|
|
1556
|
-
placeholder: "Search..."
|
|
1571
|
+
placeholder: "Search...",
|
|
1572
|
+
onKeyDown: function onKeyDown(e) {
|
|
1573
|
+
if (e.key === "Enter") {
|
|
1574
|
+
onPressEnter && onPressEnter();
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1557
1577
|
}), value.length ? React__default.createElement("div", {
|
|
1558
1578
|
className: styles$9["clear"],
|
|
1559
1579
|
onClick: handleClear
|