@opensite/ui 3.7.4 → 3.7.5

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.
@@ -565,18 +565,18 @@ function HeroCenteredImageGrid({
565
565
  imageGridClassName
566
566
  ),
567
567
  children: [
568
- gridImages?.[0] && /* @__PURE__ */ jsxRuntime.jsx(
568
+ gridImages?.[0] && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative md:col-span-3", children: /* @__PURE__ */ jsxRuntime.jsx(
569
569
  img.Img,
570
570
  {
571
571
  src: gridImages[0].src,
572
572
  alt: gridImages[0].alt,
573
573
  className: cn(
574
- "h-full max-h-[500px] w-full object-cover md:col-span-3 dark:invert",
574
+ "block h-full max-h-[500px] w-full object-cover dark:invert",
575
575
  gridImages[0].className
576
576
  ),
577
577
  optixFlowConfig
578
578
  }
579
- ),
579
+ ) }),
580
580
  gridImages?.[1] && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative md:col-span-2", children: [
581
581
  /* @__PURE__ */ jsxRuntime.jsx(
582
582
  img.Img,
@@ -584,7 +584,7 @@ function HeroCenteredImageGrid({
584
584
  src: gridImages[1].src,
585
585
  alt: gridImages[1].alt,
586
586
  className: cn(
587
- "h-full max-h-[500px] w-full object-cover dark:invert",
587
+ "block h-full max-h-[500px] w-full object-cover dark:invert",
588
588
  gridImages[1].className
589
589
  ),
590
590
  optixFlowConfig
@@ -559,18 +559,18 @@ function HeroCenteredImageGrid({
559
559
  imageGridClassName
560
560
  ),
561
561
  children: [
562
- gridImages?.[0] && /* @__PURE__ */ jsx(
562
+ gridImages?.[0] && /* @__PURE__ */ jsx("div", { className: "relative md:col-span-3", children: /* @__PURE__ */ jsx(
563
563
  Img,
564
564
  {
565
565
  src: gridImages[0].src,
566
566
  alt: gridImages[0].alt,
567
567
  className: cn(
568
- "h-full max-h-[500px] w-full object-cover md:col-span-3 dark:invert",
568
+ "block h-full max-h-[500px] w-full object-cover dark:invert",
569
569
  gridImages[0].className
570
570
  ),
571
571
  optixFlowConfig
572
572
  }
573
- ),
573
+ ) }),
574
574
  gridImages?.[1] && /* @__PURE__ */ jsxs("div", { className: "relative md:col-span-2", children: [
575
575
  /* @__PURE__ */ jsx(
576
576
  Img,
@@ -578,7 +578,7 @@ function HeroCenteredImageGrid({
578
578
  src: gridImages[1].src,
579
579
  alt: gridImages[1].alt,
580
580
  className: cn(
581
- "h-full max-h-[500px] w-full object-cover dark:invert",
581
+ "block h-full max-h-[500px] w-full object-cover dark:invert",
582
582
  gridImages[1].className
583
583
  ),
584
584
  optixFlowConfig
@@ -417,6 +417,10 @@ function HeroPatternLogoTechStack({
417
417
  techLogosClassName,
418
418
  optixFlowConfig
419
419
  }) {
420
+ const logoOptixFlowConfig = React.useMemo(
421
+ () => optixFlowConfig ? { ...optixFlowConfig, objectFit: "contain" } : optixFlowConfig,
422
+ [optixFlowConfig]
423
+ );
420
424
  const renderLogo = React.useMemo(() => {
421
425
  if (logoSlot) return logoSlot;
422
426
  if (!logo) return null;
@@ -427,10 +431,10 @@ function HeroPatternLogoTechStack({
427
431
  src: logoSrc,
428
432
  alt: logo.alt,
429
433
  className: cn("h-16 w-auto object-contain", logo.imgClassName),
430
- optixFlowConfig
434
+ optixFlowConfig: logoOptixFlowConfig
431
435
  }
432
436
  ) });
433
- }, [logoSlot, logo, optixFlowConfig]);
437
+ }, [logoSlot, logo, logoOptixFlowConfig]);
434
438
  const renderActions = React.useMemo(() => {
435
439
  if (actionsSlot) return actionsSlot;
436
440
  if (!actions || actions.length === 0) return null;
@@ -487,7 +491,7 @@ function HeroPatternLogoTechStack({
487
491
  {
488
492
  href: techLogo.href,
489
493
  className: cn(
490
- "group flex w-auto h-12 md:h-10 items-center justify-center max-w-full md:max-w-30 max-h-12 md:max-h-10 min-h-12 md:min-h-10 p-2 md:p-1",
494
+ "group flex shrink-0 items-center justify-center overflow-visible",
491
495
  techLogo.className
492
496
  ),
493
497
  children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -496,10 +500,10 @@ function HeroPatternLogoTechStack({
496
500
  src: techLogoSrc,
497
501
  alt: techLogo.alt,
498
502
  className: cn(
499
- "h-full w-auto object-contain",
503
+ "block h-6 max-h-6 w-auto max-w-none object-contain",
500
504
  techLogo.imgClassName
501
505
  ),
502
- optixFlowConfig
506
+ optixFlowConfig: logoOptixFlowConfig
503
507
  }
504
508
  )
505
509
  },
@@ -514,7 +518,7 @@ function HeroPatternLogoTechStack({
514
518
  techLogos,
515
519
  techStackLabel,
516
520
  techLogosClassName,
517
- optixFlowConfig
521
+ logoOptixFlowConfig
518
522
  ]);
519
523
  return /* @__PURE__ */ jsxRuntime.jsx(
520
524
  Section,
@@ -411,6 +411,10 @@ function HeroPatternLogoTechStack({
411
411
  techLogosClassName,
412
412
  optixFlowConfig
413
413
  }) {
414
+ const logoOptixFlowConfig = useMemo(
415
+ () => optixFlowConfig ? { ...optixFlowConfig, objectFit: "contain" } : optixFlowConfig,
416
+ [optixFlowConfig]
417
+ );
414
418
  const renderLogo = useMemo(() => {
415
419
  if (logoSlot) return logoSlot;
416
420
  if (!logo) return null;
@@ -421,10 +425,10 @@ function HeroPatternLogoTechStack({
421
425
  src: logoSrc,
422
426
  alt: logo.alt,
423
427
  className: cn("h-16 w-auto object-contain", logo.imgClassName),
424
- optixFlowConfig
428
+ optixFlowConfig: logoOptixFlowConfig
425
429
  }
426
430
  ) });
427
- }, [logoSlot, logo, optixFlowConfig]);
431
+ }, [logoSlot, logo, logoOptixFlowConfig]);
428
432
  const renderActions = useMemo(() => {
429
433
  if (actionsSlot) return actionsSlot;
430
434
  if (!actions || actions.length === 0) return null;
@@ -481,7 +485,7 @@ function HeroPatternLogoTechStack({
481
485
  {
482
486
  href: techLogo.href,
483
487
  className: cn(
484
- "group flex w-auto h-12 md:h-10 items-center justify-center max-w-full md:max-w-30 max-h-12 md:max-h-10 min-h-12 md:min-h-10 p-2 md:p-1",
488
+ "group flex shrink-0 items-center justify-center overflow-visible",
485
489
  techLogo.className
486
490
  ),
487
491
  children: /* @__PURE__ */ jsx(
@@ -490,10 +494,10 @@ function HeroPatternLogoTechStack({
490
494
  src: techLogoSrc,
491
495
  alt: techLogo.alt,
492
496
  className: cn(
493
- "h-full w-auto object-contain",
497
+ "block h-6 max-h-6 w-auto max-w-none object-contain",
494
498
  techLogo.imgClassName
495
499
  ),
496
- optixFlowConfig
500
+ optixFlowConfig: logoOptixFlowConfig
497
501
  }
498
502
  )
499
503
  },
@@ -508,7 +512,7 @@ function HeroPatternLogoTechStack({
508
512
  techLogos,
509
513
  techStackLabel,
510
514
  techLogosClassName,
511
- optixFlowConfig
515
+ logoOptixFlowConfig
512
516
  ]);
513
517
  return /* @__PURE__ */ jsx(
514
518
  Section,
package/dist/registry.cjs CHANGED
@@ -50680,18 +50680,18 @@ function HeroCenteredImageGrid({
50680
50680
  imageGridClassName
50681
50681
  ),
50682
50682
  children: [
50683
- gridImages?.[0] && /* @__PURE__ */ jsxRuntime.jsx(
50683
+ gridImages?.[0] && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative md:col-span-3", children: /* @__PURE__ */ jsxRuntime.jsx(
50684
50684
  img$1.Img,
50685
50685
  {
50686
50686
  src: gridImages[0].src,
50687
50687
  alt: gridImages[0].alt,
50688
50688
  className: cn(
50689
- "h-full max-h-[500px] w-full object-cover md:col-span-3 dark:invert",
50689
+ "block h-full max-h-[500px] w-full object-cover dark:invert",
50690
50690
  gridImages[0].className
50691
50691
  ),
50692
50692
  optixFlowConfig
50693
50693
  }
50694
- ),
50694
+ ) }),
50695
50695
  gridImages?.[1] && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative md:col-span-2", children: [
50696
50696
  /* @__PURE__ */ jsxRuntime.jsx(
50697
50697
  img$1.Img,
@@ -50699,7 +50699,7 @@ function HeroCenteredImageGrid({
50699
50699
  src: gridImages[1].src,
50700
50700
  alt: gridImages[1].alt,
50701
50701
  className: cn(
50702
- "h-full max-h-[500px] w-full object-cover dark:invert",
50702
+ "block h-full max-h-[500px] w-full object-cover dark:invert",
50703
50703
  gridImages[1].className
50704
50704
  ),
50705
50705
  optixFlowConfig
@@ -51143,6 +51143,10 @@ function HeroPatternLogoTechStack({
51143
51143
  techLogosClassName,
51144
51144
  optixFlowConfig
51145
51145
  }) {
51146
+ const logoOptixFlowConfig = React30.useMemo(
51147
+ () => optixFlowConfig ? { ...optixFlowConfig, objectFit: "contain" } : optixFlowConfig,
51148
+ [optixFlowConfig]
51149
+ );
51146
51150
  const renderLogo = React30.useMemo(() => {
51147
51151
  if (logoSlot2) return logoSlot2;
51148
51152
  if (!logo) return null;
@@ -51153,10 +51157,10 @@ function HeroPatternLogoTechStack({
51153
51157
  src: logoSrc,
51154
51158
  alt: logo.alt,
51155
51159
  className: cn("h-16 w-auto object-contain", logo.imgClassName),
51156
- optixFlowConfig
51160
+ optixFlowConfig: logoOptixFlowConfig
51157
51161
  }
51158
51162
  ) });
51159
- }, [logoSlot2, logo, optixFlowConfig]);
51163
+ }, [logoSlot2, logo, logoOptixFlowConfig]);
51160
51164
  const renderActions = React30.useMemo(() => {
51161
51165
  if (actionsSlot) return actionsSlot;
51162
51166
  if (!actions || actions.length === 0) return null;
@@ -51213,7 +51217,7 @@ function HeroPatternLogoTechStack({
51213
51217
  {
51214
51218
  href: techLogo.href,
51215
51219
  className: cn(
51216
- "group flex w-auto h-12 md:h-10 items-center justify-center max-w-full md:max-w-30 max-h-12 md:max-h-10 min-h-12 md:min-h-10 p-2 md:p-1",
51220
+ "group flex shrink-0 items-center justify-center overflow-visible",
51217
51221
  techLogo.className
51218
51222
  ),
51219
51223
  children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -51222,10 +51226,10 @@ function HeroPatternLogoTechStack({
51222
51226
  src: techLogoSrc,
51223
51227
  alt: techLogo.alt,
51224
51228
  className: cn(
51225
- "h-full w-auto object-contain",
51229
+ "block h-6 max-h-6 w-auto max-w-none object-contain",
51226
51230
  techLogo.imgClassName
51227
51231
  ),
51228
- optixFlowConfig
51232
+ optixFlowConfig: logoOptixFlowConfig
51229
51233
  }
51230
51234
  )
51231
51235
  },
@@ -51240,7 +51244,7 @@ function HeroPatternLogoTechStack({
51240
51244
  techLogos,
51241
51245
  techStackLabel,
51242
51246
  techLogosClassName,
51243
- optixFlowConfig
51247
+ logoOptixFlowConfig
51244
51248
  ]);
51245
51249
  return /* @__PURE__ */ jsxRuntime.jsx(
51246
51250
  Section,
package/dist/registry.js CHANGED
@@ -50640,18 +50640,18 @@ function HeroCenteredImageGrid({
50640
50640
  imageGridClassName
50641
50641
  ),
50642
50642
  children: [
50643
- gridImages?.[0] && /* @__PURE__ */ jsx(
50643
+ gridImages?.[0] && /* @__PURE__ */ jsx("div", { className: "relative md:col-span-3", children: /* @__PURE__ */ jsx(
50644
50644
  Img,
50645
50645
  {
50646
50646
  src: gridImages[0].src,
50647
50647
  alt: gridImages[0].alt,
50648
50648
  className: cn(
50649
- "h-full max-h-[500px] w-full object-cover md:col-span-3 dark:invert",
50649
+ "block h-full max-h-[500px] w-full object-cover dark:invert",
50650
50650
  gridImages[0].className
50651
50651
  ),
50652
50652
  optixFlowConfig
50653
50653
  }
50654
- ),
50654
+ ) }),
50655
50655
  gridImages?.[1] && /* @__PURE__ */ jsxs("div", { className: "relative md:col-span-2", children: [
50656
50656
  /* @__PURE__ */ jsx(
50657
50657
  Img,
@@ -50659,7 +50659,7 @@ function HeroCenteredImageGrid({
50659
50659
  src: gridImages[1].src,
50660
50660
  alt: gridImages[1].alt,
50661
50661
  className: cn(
50662
- "h-full max-h-[500px] w-full object-cover dark:invert",
50662
+ "block h-full max-h-[500px] w-full object-cover dark:invert",
50663
50663
  gridImages[1].className
50664
50664
  ),
50665
50665
  optixFlowConfig
@@ -51103,6 +51103,10 @@ function HeroPatternLogoTechStack({
51103
51103
  techLogosClassName,
51104
51104
  optixFlowConfig
51105
51105
  }) {
51106
+ const logoOptixFlowConfig = useMemo(
51107
+ () => optixFlowConfig ? { ...optixFlowConfig, objectFit: "contain" } : optixFlowConfig,
51108
+ [optixFlowConfig]
51109
+ );
51106
51110
  const renderLogo = useMemo(() => {
51107
51111
  if (logoSlot2) return logoSlot2;
51108
51112
  if (!logo) return null;
@@ -51113,10 +51117,10 @@ function HeroPatternLogoTechStack({
51113
51117
  src: logoSrc,
51114
51118
  alt: logo.alt,
51115
51119
  className: cn("h-16 w-auto object-contain", logo.imgClassName),
51116
- optixFlowConfig
51120
+ optixFlowConfig: logoOptixFlowConfig
51117
51121
  }
51118
51122
  ) });
51119
- }, [logoSlot2, logo, optixFlowConfig]);
51123
+ }, [logoSlot2, logo, logoOptixFlowConfig]);
51120
51124
  const renderActions = useMemo(() => {
51121
51125
  if (actionsSlot) return actionsSlot;
51122
51126
  if (!actions || actions.length === 0) return null;
@@ -51173,7 +51177,7 @@ function HeroPatternLogoTechStack({
51173
51177
  {
51174
51178
  href: techLogo.href,
51175
51179
  className: cn(
51176
- "group flex w-auto h-12 md:h-10 items-center justify-center max-w-full md:max-w-30 max-h-12 md:max-h-10 min-h-12 md:min-h-10 p-2 md:p-1",
51180
+ "group flex shrink-0 items-center justify-center overflow-visible",
51177
51181
  techLogo.className
51178
51182
  ),
51179
51183
  children: /* @__PURE__ */ jsx(
@@ -51182,10 +51186,10 @@ function HeroPatternLogoTechStack({
51182
51186
  src: techLogoSrc,
51183
51187
  alt: techLogo.alt,
51184
51188
  className: cn(
51185
- "h-full w-auto object-contain",
51189
+ "block h-6 max-h-6 w-auto max-w-none object-contain",
51186
51190
  techLogo.imgClassName
51187
51191
  ),
51188
- optixFlowConfig
51192
+ optixFlowConfig: logoOptixFlowConfig
51189
51193
  }
51190
51194
  )
51191
51195
  },
@@ -51200,7 +51204,7 @@ function HeroPatternLogoTechStack({
51200
51204
  techLogos,
51201
51205
  techStackLabel,
51202
51206
  techLogosClassName,
51203
- optixFlowConfig
51207
+ logoOptixFlowConfig
51204
51208
  ]);
51205
51209
  return /* @__PURE__ */ jsx(
51206
51210
  Section,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensite/ui",
3
- "version": "3.7.4",
3
+ "version": "3.7.5",
4
4
  "description": "Foundational UI component library for OpenSite Semantic Site Builder with tree-shakable exports and abstract styling",
5
5
  "keywords": [
6
6
  "react",