@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.js CHANGED
@@ -2838,7 +2838,7 @@ import * as React27 from "react";
2838
2838
  import { jsx as jsx27, jsxs as jsxs17 } from "react/jsx-runtime";
2839
2839
  var CARD_TEXT_LIMIT = 20;
2840
2840
  var TruncatedText = ({ text, maxLength, className, viewMode = "grid" /* GRID */ }) => {
2841
- maxLength = viewMode === "list" /* LIST */ ? maxLength : CARD_TEXT_LIMIT;
2841
+ maxLength = maxLength ? maxLength : viewMode === "list" /* LIST */ ? void 0 : CARD_TEXT_LIMIT;
2842
2842
  if (maxLength === void 0) {
2843
2843
  return /* @__PURE__ */ jsx27(TruncatedTextByWidth, { text, className });
2844
2844
  }
@@ -2846,7 +2846,7 @@ var TruncatedText = ({ text, maxLength, className, viewMode = "grid" /* GRID */
2846
2846
  return /* @__PURE__ */ jsx27("span", { className: cn("cursor-default", className), children: text || "" });
2847
2847
  }
2848
2848
  return /* @__PURE__ */ jsxs17(Tooltip, { children: [
2849
- /* @__PURE__ */ jsx27(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxs17("span", { children: [
2849
+ /* @__PURE__ */ jsx27(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxs17("span", { className: cn("block w-full truncate", className), children: [
2850
2850
  text.slice(0, maxLength),
2851
2851
  "\u2026"
2852
2852
  ] }) }),
@@ -2878,7 +2878,7 @@ var TruncatedTextByWidth = ({ text, className }) => {
2878
2878
  }
2879
2879
  const textSpan = /* @__PURE__ */ jsx27("span", { ref, className: cn("block w-full truncate", className), children: text });
2880
2880
  return /* @__PURE__ */ jsxs17(Tooltip, { children: [
2881
- /* @__PURE__ */ jsx27(TooltipTrigger, { className: "min-w-0 w-full", children: textSpan }),
2881
+ /* @__PURE__ */ jsx27(TooltipTrigger, { asChild: true, className: "min-w-0 w-full", children: textSpan }),
2882
2882
  isOverflowing && /* @__PURE__ */ jsx27(
2883
2883
  TooltipContent,
2884
2884
  {