@sustaina/shared-ui 1.6.3 → 1.6.4

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.mjs CHANGED
@@ -1925,10 +1925,10 @@ var Navbar = ({
1925
1925
  subTitle,
1926
1926
  headImageURL = "",
1927
1927
  headImageURLClassName,
1928
- tooltipContentClassName = "md:w-[350px] lg:w-[420px]",
1928
+ tooltipContentClassName = "w-[450px] lg:!w-[630px]",
1929
1929
  tooltipTitle,
1930
1930
  tooltipIcon,
1931
- tooltipdescription = [],
1931
+ tooltipdescription,
1932
1932
  tooltipDescriptionWrapperClassName,
1933
1933
  mainButtonText,
1934
1934
  mainButtonClassName,
@@ -1964,12 +1964,11 @@ var Navbar = ({
1964
1964
  {
1965
1965
  forceMount: true,
1966
1966
  side: isDesktop ? "right" : "bottom",
1967
- sideOffset: 8,
1968
1967
  align: "start",
1969
1968
  avoidCollisions: false,
1970
1969
  className: cn(
1971
- "bg-background text-foreground border border-black",
1972
- "transition-all duration-150 ease-out origin-top",
1970
+ "bg-white border border-black p-6",
1971
+ "transition-all duration-150 ease-out origin-top top-1 left-4",
1973
1972
  "data-[state=closed]:opacity-0 data-[state=open]:opacity-100",
1974
1973
  "data-[state=closed]:scale-95 data-[state=open]:scale-100",
1975
1974
  { "mt-5": isDesktop },
@@ -1982,7 +1981,7 @@ var Navbar = ({
1982
1981
  role: "tooltip",
1983
1982
  "aria-label": tooltipTitle,
1984
1983
  className: cn(
1985
- "flex flex-col gap-4 max-w-sm text-sm text-gray-700",
1984
+ "flex flex-col gap-4 text-sm text-black text-pretty",
1986
1985
  tooltipDescriptionWrapperClassName
1987
1986
  ),
1988
1987
  children: [
@@ -1990,7 +1989,7 @@ var Navbar = ({
1990
1989
  isValidElement(tooltipIcon) ? tooltipIcon : /* @__PURE__ */ jsx(Icon3, { size: 32, "aria-hidden": "true" }),
1991
1990
  /* @__PURE__ */ jsx("h3", { className: "text-xl font-bold", children: tooltipTitle })
1992
1991
  ] }),
1993
- isValidElement(tooltipdescription) ? tooltipdescription : ""
1992
+ isValidElement(tooltipdescription) && tooltipdescription
1994
1993
  ]
1995
1994
  }
1996
1995
  ),