@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.d.mts CHANGED
@@ -348,7 +348,7 @@ type NavbarBaseProps = {
348
348
  searchButton?: React__default.ReactNode;
349
349
  separatorDisable?: boolean;
350
350
  };
351
- type NavbarProps = RequireAtLeastOne<NavbarBaseProps, "title" | "headImageURL">;
351
+ type NavbarProps = RequireAtLeastOne<NavbarBaseProps, "title">;
352
352
  declare const _default: React__default.MemoExoticComponent<({ className, title, subTitle, headImageURL, headImageURLClassName, tooltipContentClassName, tooltipTitle, tooltipIcon, tooltipdescription, tooltipDescriptionWrapperClassName, mainButtonText, mainButtonClassName, mainButtonDisable, subButtonText, subButtonClassName, subButtonDisable, onMainButtonClick, onSubButtonClick, separatorDisable, searchButton }: NavbarProps) => react_jsx_runtime.JSX.Element>;
353
353
 
354
354
  type FieldType = "text" | "number" | "date" | "datetime" | "checkbox" | "dropdown" | "lookup" | "uuid";
package/dist/index.d.ts CHANGED
@@ -348,7 +348,7 @@ type NavbarBaseProps = {
348
348
  searchButton?: React__default.ReactNode;
349
349
  separatorDisable?: boolean;
350
350
  };
351
- type NavbarProps = RequireAtLeastOne<NavbarBaseProps, "title" | "headImageURL">;
351
+ type NavbarProps = RequireAtLeastOne<NavbarBaseProps, "title">;
352
352
  declare const _default: React__default.MemoExoticComponent<({ className, title, subTitle, headImageURL, headImageURLClassName, tooltipContentClassName, tooltipTitle, tooltipIcon, tooltipdescription, tooltipDescriptionWrapperClassName, mainButtonText, mainButtonClassName, mainButtonDisable, subButtonText, subButtonClassName, subButtonDisable, onMainButtonClick, onSubButtonClick, separatorDisable, searchButton }: NavbarProps) => react_jsx_runtime.JSX.Element>;
353
353
 
354
354
  type FieldType = "text" | "number" | "date" | "datetime" | "checkbox" | "dropdown" | "lookup" | "uuid";
package/dist/index.js CHANGED
@@ -1954,10 +1954,10 @@ var Navbar = ({
1954
1954
  subTitle,
1955
1955
  headImageURL = "",
1956
1956
  headImageURLClassName,
1957
- tooltipContentClassName = "md:w-[350px] lg:w-[420px]",
1957
+ tooltipContentClassName = "w-[450px] lg:!w-[630px]",
1958
1958
  tooltipTitle,
1959
1959
  tooltipIcon,
1960
- tooltipdescription = [],
1960
+ tooltipdescription,
1961
1961
  tooltipDescriptionWrapperClassName,
1962
1962
  mainButtonText,
1963
1963
  mainButtonClassName,
@@ -1993,12 +1993,11 @@ var Navbar = ({
1993
1993
  {
1994
1994
  forceMount: true,
1995
1995
  side: isDesktop ? "right" : "bottom",
1996
- sideOffset: 8,
1997
1996
  align: "start",
1998
1997
  avoidCollisions: false,
1999
1998
  className: cn(
2000
- "bg-background text-foreground border border-black",
2001
- "transition-all duration-150 ease-out origin-top",
1999
+ "bg-white border border-black p-6",
2000
+ "transition-all duration-150 ease-out origin-top top-1 left-4",
2002
2001
  "data-[state=closed]:opacity-0 data-[state=open]:opacity-100",
2003
2002
  "data-[state=closed]:scale-95 data-[state=open]:scale-100",
2004
2003
  { "mt-5": isDesktop },
@@ -2011,7 +2010,7 @@ var Navbar = ({
2011
2010
  role: "tooltip",
2012
2011
  "aria-label": tooltipTitle,
2013
2012
  className: cn(
2014
- "flex flex-col gap-4 max-w-sm text-sm text-gray-700",
2013
+ "flex flex-col gap-4 text-sm text-black text-pretty",
2015
2014
  tooltipDescriptionWrapperClassName
2016
2015
  ),
2017
2016
  children: [
@@ -2019,7 +2018,7 @@ var Navbar = ({
2019
2018
  React4.isValidElement(tooltipIcon) ? tooltipIcon : /* @__PURE__ */ jsxRuntime.jsx(Icon3, { size: 32, "aria-hidden": "true" }),
2020
2019
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-xl font-bold", children: tooltipTitle })
2021
2020
  ] }),
2022
- React4.isValidElement(tooltipdescription) ? tooltipdescription : ""
2021
+ React4.isValidElement(tooltipdescription) && tooltipdescription
2023
2022
  ]
2024
2023
  }
2025
2024
  ),