@undefine-ui/design-system 1.0.0 → 2.0.0

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.cts CHANGED
@@ -1391,8 +1391,10 @@ interface LogoProps extends BoxProps {
1391
1391
  isBlack?: boolean;
1392
1392
  href?: string;
1393
1393
  LinkComponent?: ElementType;
1394
+ src?: string;
1395
+ alt?: string;
1394
1396
  }
1395
- declare const Logo: ({ sx, isFull, isWhite, isBlack, disableLink, LinkComponent, href, ...rest }: LogoProps) => react_jsx_runtime.JSX.Element;
1397
+ declare const Logo: ({ sx, isFull, isWhite, isBlack, disableLink, LinkComponent, href, src, alt, ...rest }: LogoProps) => react_jsx_runtime.JSX.Element;
1396
1398
 
1397
1399
  interface UploadProps extends DropzoneOptions {
1398
1400
  error?: boolean;
package/dist/index.d.ts CHANGED
@@ -1391,8 +1391,10 @@ interface LogoProps extends BoxProps {
1391
1391
  isBlack?: boolean;
1392
1392
  href?: string;
1393
1393
  LinkComponent?: ElementType;
1394
+ src?: string;
1395
+ alt?: string;
1394
1396
  }
1395
- declare const Logo: ({ sx, isFull, isWhite, isBlack, disableLink, LinkComponent, href, ...rest }: LogoProps) => react_jsx_runtime.JSX.Element;
1397
+ declare const Logo: ({ sx, isFull, isWhite, isBlack, disableLink, LinkComponent, href, src, alt, ...rest }: LogoProps) => react_jsx_runtime.JSX.Element;
1396
1398
 
1397
1399
  interface UploadProps extends DropzoneOptions {
1398
1400
  error?: boolean;
package/dist/index.js CHANGED
@@ -5433,14 +5433,14 @@ import Box2 from "@mui/material/Box";
5433
5433
  import { jsx as jsx37 } from "react/jsx-runtime";
5434
5434
  var LOGO_MAP = {
5435
5435
  full: {
5436
- black: "/logos/logo-full-black.png",
5437
- white: "/logos/logo-full-white.png",
5438
- default: "/logos/logo-full.png"
5436
+ black: "https://res.cloudinary.com/dvbtbsinu/image/upload/v1763077834/define-agency/logos/logo-black-full_mjngwu.png",
5437
+ white: "https://res.cloudinary.com/dvbtbsinu/image/upload/v1763077836/define-agency/logos/logo-white-full_nsf6ge.png",
5438
+ default: "https://res.cloudinary.com/dvbtbsinu/image/upload/v1763077836/define-agency/logos/logo-full_xzon1i.png"
5439
5439
  },
5440
5440
  single: {
5441
- black: "/logos/logo-black.png",
5442
- white: "/logos/logo-white.png",
5443
- default: "/logos/logo.png"
5441
+ black: "https://res.cloudinary.com/dvbtbsinu/image/upload/v1763077834/define-agency/logos/logo-black_xskhha.png",
5442
+ white: "https://res.cloudinary.com/dvbtbsinu/image/upload/v1763077834/define-agency/logos/logo-white_tssio4.png",
5443
+ default: "https://res.cloudinary.com/dvbtbsinu/image/upload/v1763077835/define-agency/logos/logo_ypolky.png"
5444
5444
  }
5445
5445
  };
5446
5446
  var Logo = ({
@@ -5451,16 +5451,19 @@ var Logo = ({
5451
5451
  disableLink = false,
5452
5452
  LinkComponent = "a",
5453
5453
  href = "/",
5454
+ src,
5455
+ alt = "Undefine UI logo",
5454
5456
  ...rest
5455
5457
  }) => {
5456
5458
  const type = isFull ? "full" : "single";
5457
5459
  const color = isWhite ? "white" : isBlack ? "black" : "default";
5458
- const logoImg = LOGO_MAP[type][color];
5460
+ const logoImg = src ?? LOGO_MAP[type][color];
5459
5461
  const logo = /* @__PURE__ */ jsx37(
5460
5462
  Box2,
5461
5463
  {
5462
5464
  component: "img",
5463
5465
  src: logoImg,
5466
+ alt,
5464
5467
  sx: { width: isFull ? 120 : 60, cursor: "pointer", ...sx },
5465
5468
  ...rest
5466
5469
  }