@kaio-xyz/design-system 1.1.26 → 1.1.28
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/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -548,9 +548,9 @@ var trimString = function (str, noOfChars) {
|
|
|
548
548
|
return "".concat(str.slice(0, noOfChars), "...").concat(str.slice(-noOfChars));
|
|
549
549
|
};
|
|
550
550
|
var Clipboard = function (_a) {
|
|
551
|
-
var
|
|
552
|
-
var
|
|
553
|
-
var
|
|
551
|
+
var dataTest = _a.dataTest, _b = _a.value, value = _b === void 0 ? "" : _b, _c = _a.trim, trim = _c === void 0 ? false : _c, _d = _a.trimLength, trimLength = _d === void 0 ? 4 : _d;
|
|
552
|
+
var _e = React.useState(false), isCopied = _e[0], setIsCopied = _e[1];
|
|
553
|
+
var _f = React.useState(false), isShowingCopy = _f[0], setIsShowingCopy = _f[1];
|
|
554
554
|
var displayValue = trim ? trimString(value, trimLength) : value;
|
|
555
555
|
var handleClick = React.useCallback(function () {
|
|
556
556
|
navigator.clipboard.writeText(value);
|