@algorithm-shift/design-system 1.2.14 → 1.2.15

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
@@ -1884,29 +1884,28 @@ var Notification_default = Notification;
1884
1884
 
1885
1885
  // src/components/Navigation/Logo/Logo.tsx
1886
1886
  import { jsx as jsx43 } from "react/jsx-runtime";
1887
- var ImageControl2 = ({
1887
+ var Logo = ({
1888
1888
  className,
1889
1889
  style,
1890
- imageUrl
1890
+ imageUrl,
1891
+ altText = "Preview"
1891
1892
  }) => {
1892
- let src;
1893
- let extraProps;
1894
- if (imageUrl) {
1895
- src = imageUrl;
1896
- extraProps = {
1897
- className: "w-full h-full"
1898
- };
1899
- } else {
1900
- src = "https://builder.development.algorithmshift.ai/_next/image?url=%2Fdrag_and_drop.png&w=1920&q=75";
1901
- extraProps = {
1902
- width: 50,
1903
- height: 50,
1904
- className: "opacity-50"
1905
- };
1893
+ if (!imageUrl) {
1894
+ return /* @__PURE__ */ jsx43(
1895
+ "div",
1896
+ {
1897
+ className: cn(
1898
+ className,
1899
+ "p-0"
1900
+ ),
1901
+ style,
1902
+ children: /* @__PURE__ */ jsx43("img", { src: "/logo_placeholder.png", alt: altText, className: "opacity-50", width: 150, height: 80 })
1903
+ }
1904
+ );
1906
1905
  }
1907
- return /* @__PURE__ */ jsx43("div", { className, style, children: /* @__PURE__ */ jsx43("img", { src, alt: "Preview", sizes: "100vw", ...extraProps }) });
1906
+ return /* @__PURE__ */ jsx43("img", { src: imageUrl, alt: altText, className, style });
1908
1907
  };
1909
- var Logo_default = ImageControl2;
1908
+ var Logo_default = Logo;
1910
1909
  export {
1911
1910
  Button,
1912
1911
  CheckboxInput,