@vectramindnpm/unified-design-system 0.2.1 → 0.2.2

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 CHANGED
@@ -2956,7 +2956,7 @@ var React27 = __toESM(require("react"), 1);
2956
2956
  var import_jsx_runtime27 = require("react/jsx-runtime");
2957
2957
  var CARD_TEXT_LIMIT = 20;
2958
2958
  var TruncatedText = ({ text, maxLength, className, viewMode = "grid" /* GRID */ }) => {
2959
- maxLength = viewMode === "list" /* LIST */ ? maxLength : CARD_TEXT_LIMIT;
2959
+ maxLength = maxLength ? maxLength : viewMode === "list" /* LIST */ ? void 0 : CARD_TEXT_LIMIT;
2960
2960
  if (maxLength === void 0) {
2961
2961
  return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(TruncatedTextByWidth, { text, className });
2962
2962
  }
@@ -2964,7 +2964,7 @@ var TruncatedText = ({ text, maxLength, className, viewMode = "grid" /* GRID */
2964
2964
  return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: cn("cursor-default", className), children: text || "" });
2965
2965
  }
2966
2966
  return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Tooltip, { children: [
2967
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("span", { children: [
2967
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("span", { className: cn("block w-full truncate", className), children: [
2968
2968
  text.slice(0, maxLength),
2969
2969
  "\u2026"
2970
2970
  ] }) }),
@@ -2996,7 +2996,7 @@ var TruncatedTextByWidth = ({ text, className }) => {
2996
2996
  }
2997
2997
  const textSpan = /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { ref, className: cn("block w-full truncate", className), children: text });
2998
2998
  return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Tooltip, { children: [
2999
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(TooltipTrigger, { className: "min-w-0 w-full", children: textSpan }),
2999
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(TooltipTrigger, { asChild: true, className: "min-w-0 w-full", children: textSpan }),
3000
3000
  isOverflowing && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3001
3001
  TooltipContent,
3002
3002
  {