@xqmsg/ui-core 0.24.5 → 0.24.7
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/input/StackedPilledInput/index.d.ts +1 -0
- package/dist/components/input/components/token/index.d.ts +1 -0
- package/dist/components/input/index.d.ts +2 -1
- package/dist/ui-core.cjs.development.js +15 -8
- package/dist/ui-core.cjs.development.js.map +1 -1
- package/dist/ui-core.cjs.production.min.js +1 -1
- package/dist/ui-core.cjs.production.min.js.map +1 -1
- package/dist/ui-core.esm.js +15 -8
- package/dist/ui-core.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/input/StackedMultiSelect/index.tsx +4 -1
- package/src/components/input/StackedPilledInput/index.tsx +4 -1
- package/src/components/input/components/token/index.tsx +8 -2
- package/src/components/input/index.tsx +3 -0
package/dist/ui-core.esm.js
CHANGED
|
@@ -1272,7 +1272,9 @@ var Token = function Token(_ref) {
|
|
|
1272
1272
|
var label = _ref.label,
|
|
1273
1273
|
onDelete = _ref.onDelete,
|
|
1274
1274
|
_ref$isMobile = _ref.isMobile,
|
|
1275
|
-
isMobile = _ref$isMobile === void 0 ? false : _ref$isMobile
|
|
1275
|
+
isMobile = _ref$isMobile === void 0 ? false : _ref$isMobile,
|
|
1276
|
+
_ref$truncateLength = _ref.truncateLength,
|
|
1277
|
+
truncateLength = _ref$truncateLength === void 0 ? 15 : _ref$truncateLength;
|
|
1276
1278
|
return /*#__PURE__*/React__default.createElement(Flex, {
|
|
1277
1279
|
key: label,
|
|
1278
1280
|
borderRadius: 'full',
|
|
@@ -1291,7 +1293,7 @@ var Token = function Token(_ref) {
|
|
|
1291
1293
|
fontSize: isMobile ? '17px' : '13px',
|
|
1292
1294
|
pr: "4px"
|
|
1293
1295
|
}, truncate(label.trim(), {
|
|
1294
|
-
length:
|
|
1296
|
+
length: truncateLength,
|
|
1295
1297
|
omission: '...'
|
|
1296
1298
|
})), /*#__PURE__*/React__default.createElement(Close, {
|
|
1297
1299
|
boxSize: isMobile ? '17px' : '11px',
|
|
@@ -1356,7 +1358,8 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
1356
1358
|
}
|
|
1357
1359
|
}, [boundingClientRect]);
|
|
1358
1360
|
useOnClickOutside(dropdownRef, function () {
|
|
1359
|
-
|
|
1361
|
+
setSearchValue('');
|
|
1362
|
+
setIsFocussed(false);
|
|
1360
1363
|
});
|
|
1361
1364
|
// gets latest watched form value (common delimited) from RHF state and creates a list
|
|
1362
1365
|
useEffect(function () {
|
|
@@ -1604,7 +1607,8 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
1604
1607
|
_ref2$separators = _ref2.separators,
|
|
1605
1608
|
separators = _ref2$separators === void 0 ? ['Enter', ' ', ',', ';', 'Tab'] : _ref2$separators,
|
|
1606
1609
|
variant = _ref2.variant,
|
|
1607
|
-
label = _ref2.label
|
|
1610
|
+
label = _ref2.label,
|
|
1611
|
+
truncatePillLength = _ref2.truncatePillLength;
|
|
1608
1612
|
var watchedValue = useWatch({
|
|
1609
1613
|
control: control,
|
|
1610
1614
|
name: name
|
|
@@ -1793,7 +1797,7 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
1793
1797
|
}
|
|
1794
1798
|
},
|
|
1795
1799
|
ref: scrollRef,
|
|
1796
|
-
zIndex:
|
|
1800
|
+
zIndex: 99,
|
|
1797
1801
|
onKeyDown: onHandleKeyDown
|
|
1798
1802
|
}, lastestFormValueToArray.length ? lastestFormValueToArray.map(function (label, index) {
|
|
1799
1803
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -1813,7 +1817,8 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
1813
1817
|
e.preventDefault();
|
|
1814
1818
|
onRemoveTag(index);
|
|
1815
1819
|
},
|
|
1816
|
-
isMobile: isMobile
|
|
1820
|
+
isMobile: isMobile,
|
|
1821
|
+
truncateLength: truncatePillLength
|
|
1817
1822
|
}));
|
|
1818
1823
|
}) : null, !lastestFormValueToArray.length && !isFocussed ? /*#__PURE__*/React__default.createElement(Text$2, {
|
|
1819
1824
|
color: colors.label.secondary.light,
|
|
@@ -1932,7 +1937,8 @@ function Input(_ref) {
|
|
|
1932
1937
|
clearErrors = _ref.clearErrors,
|
|
1933
1938
|
separators = _ref.separators,
|
|
1934
1939
|
_ref$loadingOptions = _ref.loadingOptions,
|
|
1935
|
-
loadingOptions = _ref$loadingOptions === void 0 ? false : _ref$loadingOptions
|
|
1940
|
+
loadingOptions = _ref$loadingOptions === void 0 ? false : _ref$loadingOptions,
|
|
1941
|
+
truncatePillLength = _ref.truncatePillLength;
|
|
1936
1942
|
function selectedInputField(onChange, onBlur, ref, value) {
|
|
1937
1943
|
switch (inputType) {
|
|
1938
1944
|
case 'text':
|
|
@@ -2061,7 +2067,8 @@ function Input(_ref) {
|
|
|
2061
2067
|
maxLength: maxLength,
|
|
2062
2068
|
variant: variant,
|
|
2063
2069
|
label: label,
|
|
2064
|
-
separators: separators
|
|
2070
|
+
separators: separators,
|
|
2071
|
+
truncatePillLength: truncatePillLength
|
|
2065
2072
|
});
|
|
2066
2073
|
case 'switch':
|
|
2067
2074
|
return /*#__PURE__*/React__default.createElement(StackedSwitch, {
|