@kaio-xyz/design-system 1.1.26 → 1.1.27

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 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 value = _a.value, dataTest = _a.dataTest, _b = _a.trim, trim = _b === void 0 ? false : _b, _c = _a.trimLength, trimLength = _c === void 0 ? 4 : _c;
552
- var _d = React.useState(false), isCopied = _d[0], setIsCopied = _d[1];
553
- var _e = React.useState(false), isShowingCopy = _e[0], setIsShowingCopy = _e[1];
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);