@salesmind-ai/design-system 0.1.9 → 0.1.11

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.cjs CHANGED
@@ -2479,15 +2479,22 @@ var Stack = React30.forwardRef(
2479
2479
  }
2480
2480
  );
2481
2481
  Stack.displayName = "Stack";
2482
+ var MAX_RESPONSIVE_COLS = 6;
2482
2483
  var Grid = React30.forwardRef(
2483
- ({ columns, rows, align, justify, className, style, ...props }, ref) => {
2484
+ ({ columns, rows, align, justify, fixed, className, style, ...props }, ref) => {
2485
+ const useColClass = typeof columns === "number" && columns >= 1 && columns <= MAX_RESPONSIVE_COLS;
2484
2486
  return /* @__PURE__ */ jsxRuntime.jsx(
2485
2487
  Box,
2486
2488
  {
2487
2489
  ref,
2488
- className: clsx44__default.default("ds-grid", className),
2490
+ className: clsx44__default.default(
2491
+ "ds-grid",
2492
+ useColClass && `ds-grid--cols-${columns}`,
2493
+ fixed && "ds-grid--fixed",
2494
+ className
2495
+ ),
2489
2496
  style: {
2490
- gridTemplateColumns: typeof columns === "number" ? `repeat(${columns}, 1fr)` : columns,
2497
+ gridTemplateColumns: useColClass ? void 0 : typeof columns === "number" ? `repeat(${columns}, 1fr)` : columns,
2491
2498
  gridTemplateRows: typeof rows === "number" ? `repeat(${rows}, 1fr)` : rows,
2492
2499
  alignItems: align,
2493
2500
  justifyItems: justify,
@@ -2518,7 +2525,7 @@ var Container = React30.forwardRef(
2518
2525
  } else if (size) {
2519
2526
  resolvedMaxWidth = CONTAINER_SIZE_MAP[size];
2520
2527
  } else {
2521
- resolvedMaxWidth = maxWidth || "1200px";
2528
+ resolvedMaxWidth = maxWidth || "var(--container-default-max, 1200px)";
2522
2529
  }
2523
2530
  return /* @__PURE__ */ jsxRuntime.jsx(
2524
2531
  Box,
@@ -3702,6 +3709,7 @@ var SiteFooter = React30.forwardRef(
3702
3709
  legalLinks = [],
3703
3710
  copyright,
3704
3711
  companyInfo,
3712
+ bottomExtra,
3705
3713
  bottomActions,
3706
3714
  className,
3707
3715
  ...props
@@ -3789,6 +3797,7 @@ var SiteFooter = React30.forwardRef(
3789
3797
  idx
3790
3798
  )) })
3791
3799
  ] }),
3800
+ bottomExtra && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "ds-footer__bottom-extra", children: bottomExtra }),
3792
3801
  companyInfo && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "ds-footer__company-info", children: companyInfo })
3793
3802
  ] }) })
3794
3803
  ] });
@@ -4526,7 +4535,18 @@ var SocialProofGrid = React30.forwardRef(
4526
4535
  );
4527
4536
  SocialProofGrid.displayName = "SocialProofGrid";
4528
4537
  var LogoItemRender = ({ item, className }) => {
4529
- const content = item.logo ? item.logo : /* @__PURE__ */ jsxRuntime.jsx("img", { src: item.src, alt: item.alt });
4538
+ const content = item.logo ? item.logo : /* @__PURE__ */ jsxRuntime.jsx(
4539
+ "img",
4540
+ {
4541
+ src: item.src,
4542
+ alt: item.alt,
4543
+ width: 120,
4544
+ height: 48,
4545
+ loading: "lazy",
4546
+ decoding: "async",
4547
+ style: { objectFit: "contain", width: "auto", height: "100%" }
4548
+ }
4549
+ );
4530
4550
  const innerContent = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
4531
4551
  content,
4532
4552
  item.badge && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ds-social-logos__badge", children: item.badge })
@@ -12000,20 +12020,30 @@ var Z_INDEX = {
12000
12020
 
12001
12021
  // src/tokens/breakpoints.ts
12002
12022
  var BREAKPOINTS = {
12023
+ "3xs": 320,
12024
+ "2xs": 375,
12003
12025
  xs: 480,
12004
12026
  sm: 640,
12005
12027
  md: 768,
12006
12028
  lg: 1024,
12007
12029
  xl: 1280,
12008
- "2xl": 1536
12030
+ "2xl": 1536,
12031
+ "3xl": 1920,
12032
+ "4xl": 2560,
12033
+ "5xl": 3840
12009
12034
  };
12010
12035
  var MEDIA_QUERIES = {
12036
+ "3xs": `(min-width: ${BREAKPOINTS["3xs"]}px)`,
12037
+ "2xs": `(min-width: ${BREAKPOINTS["2xs"]}px)`,
12011
12038
  xs: `(min-width: ${BREAKPOINTS.xs}px)`,
12012
12039
  sm: `(min-width: ${BREAKPOINTS.sm}px)`,
12013
12040
  md: `(min-width: ${BREAKPOINTS.md}px)`,
12014
12041
  lg: `(min-width: ${BREAKPOINTS.lg}px)`,
12015
12042
  xl: `(min-width: ${BREAKPOINTS.xl}px)`,
12016
- "2xl": `(min-width: ${BREAKPOINTS["2xl"]}px)`
12043
+ "2xl": `(min-width: ${BREAKPOINTS["2xl"]}px)`,
12044
+ "3xl": `(min-width: ${BREAKPOINTS["3xl"]}px)`,
12045
+ "4xl": `(min-width: ${BREAKPOINTS["4xl"]}px)`,
12046
+ "5xl": `(min-width: ${BREAKPOINTS["5xl"]}px)`
12017
12047
  };
12018
12048
  var MotionContainer = ({
12019
12049
  children,