@opensite/ui 3.6.8 → 3.7.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/registry.js CHANGED
@@ -50830,7 +50830,7 @@ function HeroPatternBadgeLogos({
50830
50830
  alt,
50831
50831
  className: cn(
50832
50832
  imgClassName,
50833
- "w-full h-10 object-contain dark:hidden"
50833
+ "w-full h-8 object-contain dark:hidden"
50834
50834
  ),
50835
50835
  optixFlowConfig
50836
50836
  }
@@ -50842,7 +50842,7 @@ function HeroPatternBadgeLogos({
50842
50842
  alt,
50843
50843
  className: cn(
50844
50844
  imgClassName,
50845
- "w-full h-10 object-contain hidden dark:block"
50845
+ "w-full h-8 object-contain hidden dark:block"
50846
50846
  ),
50847
50847
  optixFlowConfig
50848
50848
  }
@@ -50852,7 +50852,7 @@ function HeroPatternBadgeLogos({
50852
50852
  {
50853
50853
  src,
50854
50854
  alt,
50855
- className: cn("w-full h-10 object-contain", imgClassName),
50855
+ className: cn("w-full h-8 object-contain", imgClassName),
50856
50856
  optixFlowConfig
50857
50857
  }
50858
50858
  );
@@ -50863,7 +50863,7 @@ function HeroPatternBadgeLogos({
50863
50863
  "div",
50864
50864
  {
50865
50865
  className: cn(
50866
- "w-auto max-h-10 h-10 flex items-center justify-center",
50866
+ "w-auto max-h-8 h-8 flex items-center justify-center",
50867
50867
  logoClassName
50868
50868
  ),
50869
50869
  children: imgElement
@@ -50901,7 +50901,7 @@ function HeroPatternBadgeLogos({
50901
50901
  ),
50902
50902
  children: heading
50903
50903
  }
50904
- ) : /* @__PURE__ */ jsx("div", { className: headingClassName, children: heading })),
50904
+ ) : heading),
50905
50905
  description && (typeof description === "string" ? /* @__PURE__ */ jsx(
50906
50906
  "p",
50907
50907
  {
@@ -50911,7 +50911,7 @@ function HeroPatternBadgeLogos({
50911
50911
  ),
50912
50912
  children: description
50913
50913
  }
50914
- ) : /* @__PURE__ */ jsx("div", { className: descriptionClassName, children: description }))
50914
+ ) : description)
50915
50915
  ] }),
50916
50916
  (actionsSlot || actions && actions.length > 0) && /* @__PURE__ */ jsx(
50917
50917
  "div",
@@ -50946,6 +50946,7 @@ function HeroLogoCenteredScreenshot({
50946
50946
  sectionId = "hero-logo-centered-screenshot",
50947
50947
  logo,
50948
50948
  logoSlot: logoSlot2,
50949
+ logoClassName,
50949
50950
  heading,
50950
50951
  description,
50951
50952
  action,
@@ -50964,20 +50965,6 @@ function HeroLogoCenteredScreenshot({
50964
50965
  imageClassName,
50965
50966
  optixFlowConfig
50966
50967
  }) {
50967
- const renderLogo = useMemo(() => {
50968
- if (logoSlot2) return logoSlot2;
50969
- if (!logo) return null;
50970
- const logoSrc = typeof logo.src === "string" ? logo.src : logo.src.light;
50971
- return /* @__PURE__ */ jsx(
50972
- Img,
50973
- {
50974
- src: logoSrc,
50975
- alt: logo.alt,
50976
- className: cn("h-10 md:h-16 object-contain", logo.className),
50977
- optixFlowConfig
50978
- }
50979
- );
50980
- }, [logoSlot2, logo, optixFlowConfig]);
50981
50968
  const renderAction = useMemo(() => {
50982
50969
  if (actionSlot) return actionSlot;
50983
50970
  if (!action) return null;
@@ -51020,9 +51007,10 @@ function HeroLogoCenteredScreenshot({
51020
51007
  spacing,
51021
51008
  pattern,
51022
51009
  patternOpacity,
51023
- className: cn(className),
51024
- children: /* @__PURE__ */ jsx("div", { className: "relative", children: /* @__PURE__ */ jsxs("div", { className: cn("container max-w-7xl", containerClassName), children: [
51025
- /* @__PURE__ */ jsx("div", { className: "mx-auto flex max-w-5xl flex-col items-center", children: /* @__PURE__ */ jsxs(
51010
+ className,
51011
+ containerClassName,
51012
+ children: /* @__PURE__ */ jsxs("div", { className: "relative", children: [
51013
+ /* @__PURE__ */ jsx("div", { className: "mx-auto flex max-w-full md:max-w-5xl flex-col items-center", children: /* @__PURE__ */ jsxs(
51026
51014
  "div",
51027
51015
  {
51028
51016
  className: cn(
@@ -51030,7 +51018,7 @@ function HeroLogoCenteredScreenshot({
51030
51018
  contentClassName
51031
51019
  ),
51032
51020
  children: [
51033
- renderLogo,
51021
+ (logo || logoSlot2) && /* @__PURE__ */ jsx("div", { className: cn("flex justify-center", logoClassName), children: /* @__PURE__ */ jsx(brand_logo_default, { logo, logoSlot: logoSlot2, size: "lg" }) }),
51034
51022
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col justify-center items-center w-full text-balance", children: [
51035
51023
  heading && (typeof heading === "string" ? /* @__PURE__ */ jsx(
51036
51024
  "h1",
@@ -51041,33 +51029,24 @@ function HeroLogoCenteredScreenshot({
51041
51029
  ),
51042
51030
  children: heading
51043
51031
  }
51044
- ) : /* @__PURE__ */ jsx(
51045
- "h1",
51046
- {
51047
- className: cn(
51048
- "mb-4 text-3xl font-medium lg:text-5xl",
51049
- headingClassName
51050
- ),
51051
- children: heading
51052
- }
51053
- )),
51032
+ ) : heading),
51054
51033
  description && (typeof description === "string" ? /* @__PURE__ */ jsx(
51055
51034
  "p",
51056
51035
  {
51057
51036
  className: cn(
51058
- "max-w-3xl lg:text-xl",
51037
+ "max-w-full md:max-w-3xl lg:text-xl",
51059
51038
  descriptionClassName
51060
51039
  ),
51061
51040
  children: description
51062
51041
  }
51063
- ) : /* @__PURE__ */ jsx("div", { className: descriptionClassName, children: description }))
51042
+ ) : description)
51064
51043
  ] }),
51065
51044
  renderAction
51066
51045
  ]
51067
51046
  }
51068
51047
  ) }),
51069
51048
  renderImage
51070
- ] }) })
51049
+ ] })
51071
51050
  }
51072
51051
  );
51073
51052
  }
@@ -52893,8 +52872,8 @@ function HeroVideoBackgroundDark({
52893
52872
  "div",
52894
52873
  {
52895
52874
  className: cn(
52896
- "relative z-10 mx-auto flex size-full",
52897
- "md:max-w-3xl lg:max-w-4xl flex-col justify-center",
52875
+ "relative z-10 mx-auto flex flex-col justify-center",
52876
+ "size-full max-w-full md:max-w-md lg:max-w-4xl",
52898
52877
  "gap-4 md:gap-6 items-center text-center px-4 md:px-6",
52899
52878
  contentClassName
52900
52879
  ),
@@ -52905,7 +52884,7 @@ function HeroVideoBackgroundDark({
52905
52884
  {
52906
52885
  className: cn(
52907
52886
  "font-bold text-5xl md:text-6xl lg:text-8xl",
52908
- "text-balance text-white text-shadow-lg",
52887
+ "text-pretty text-white text-shadow-lg",
52909
52888
  headingClassName
52910
52889
  ),
52911
52890
  children: heading
@@ -53162,7 +53141,16 @@ function HeroDashedBorderFeatures({
53162
53141
  ),
53163
53142
  children: /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-3xl", children: [
53164
53143
  renderAnnouncement,
53165
- (logo || logoSlot2) && /* @__PURE__ */ jsx("div", { className: cn("my-6 flex justify-center", logoClassName), children: /* @__PURE__ */ jsx(BrandLogo, { logo, logoSlot: logoSlot2, size: "lg" }) }),
53144
+ (logo || logoSlot2) && /* @__PURE__ */ jsx(
53145
+ "div",
53146
+ {
53147
+ className: cn(
53148
+ "mt-8 md:mt-16 mb-0 flex justify-center",
53149
+ logoClassName
53150
+ ),
53151
+ children: /* @__PURE__ */ jsx(BrandLogo, { logo, logoSlot: logoSlot2, size: "lg" })
53152
+ }
53153
+ ),
53166
53154
  heading && (typeof heading === "string" ? /* @__PURE__ */ jsx(
53167
53155
  "h1",
53168
53156
  {
@@ -53335,7 +53323,7 @@ function HeroDesignCarouselPortfolio({
53335
53323
  "div",
53336
53324
  {
53337
53325
  className: cn(
53338
- "flex flex-col gap-10 pt-12 pb-8 lg:pt-24 lg:pb-12",
53326
+ "flex flex-col gap-10 pt-12 pb-8 lg:pt-12 lg:pb-12",
53339
53327
  contentClassName
53340
53328
  ),
53341
53329
  children: [
@@ -53805,17 +53793,17 @@ function HeroFullscreenBackgroundImage({
53805
53793
  ),
53806
53794
  children: heading
53807
53795
  }
53808
- ) : /* @__PURE__ */ jsx("div", { className: headingClassName, children: heading })),
53796
+ ) : heading),
53809
53797
  description && (typeof description === "string" ? /* @__PURE__ */ jsx(
53810
53798
  "p",
53811
53799
  {
53812
53800
  className: cn(
53813
- "text-center text-base text-balance text-white text-shadow-lg",
53801
+ "text-center text-base text-balance text-white text-shadow-lg max-w-full md:max-w-sm",
53814
53802
  descriptionClassName
53815
53803
  ),
53816
53804
  children: description
53817
53805
  }
53818
- ) : /* @__PURE__ */ jsx("div", { className: descriptionClassName, children: description })),
53806
+ ) : description),
53819
53807
  /* @__PURE__ */ jsx(
53820
53808
  BlockActions,
53821
53809
  {
@@ -54715,7 +54703,7 @@ function HeroPresentationPlatformVideo({
54715
54703
  _type: "text",
54716
54704
  as: "h1",
54717
54705
  className: cn(
54718
- "text-5xl font-medium md:text-6xl lg:text-7xl",
54706
+ "text-5xl font-medium md:text-6xl lg:text-7xl text-pretty",
54719
54707
  headingClassName
54720
54708
  ),
54721
54709
  children: heading
@@ -54729,7 +54717,10 @@ function HeroPresentationPlatformVideo({
54729
54717
  items.push({
54730
54718
  _type: "text",
54731
54719
  as: "p",
54732
- className: cn("my-0 md:my-8 md:text-xl", descriptionClassName),
54720
+ className: cn(
54721
+ "my-0 md:my-8 md:text-xl text-balance",
54722
+ descriptionClassName
54723
+ ),
54733
54724
  children: description
54734
54725
  });
54735
54726
  } else {
@@ -58457,8 +58448,6 @@ function HeroMentorshipVideoSplit({
58457
58448
  Pressable,
58458
58449
  {
58459
58450
  onClick: () => setIsVideoOpen(true),
58460
- asButton: true,
58461
- variant: "ghost",
58462
58451
  className: cn(
58463
58452
  "group relative flex overflow-hidden rounded-lg p-0",
58464
58453
  videoAspectRatio === "vertical" ? "h-36 w-20" : "h-20 w-36"
@@ -61187,6 +61176,8 @@ function HeroEventRegistration({
61187
61176
  imageClassName,
61188
61177
  optixFlowConfig,
61189
61178
  logo,
61179
+ logoSlot: logoSlot2,
61180
+ logoClassName,
61190
61181
  directionConfig = { desktop: "mediaRight", mobile: "mediaTop" }
61191
61182
  }) {
61192
61183
  const renderBadge = useMemo(() => {
@@ -61344,13 +61335,11 @@ function HeroEventRegistration({
61344
61335
  ),
61345
61336
  children: [
61346
61337
  renderBadge,
61347
- logo && /* @__PURE__ */ jsx(
61348
- Img,
61338
+ (logo || logoSlot2) && /* @__PURE__ */ jsx(
61339
+ "div",
61349
61340
  {
61350
- src: logo.src,
61351
- alt: logo.alt,
61352
- className: "w-auto max-w-full h-12 md:h-14 object-contain my-4",
61353
- optixFlowConfig
61341
+ className: cn("mb-1 mt-4 flex justify-start", logoClassName),
61342
+ children: /* @__PURE__ */ jsx(brand_logo_default, { logo, logoSlot: logoSlot2, size: "lg" })
61354
61343
  }
61355
61344
  ),
61356
61345
  heading && (typeof heading === "string" ? /* @__PURE__ */ jsx(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensite/ui",
3
- "version": "3.6.8",
3
+ "version": "3.7.0",
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",