@opensite/ui 1.6.3 → 1.6.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.
@@ -138,34 +138,6 @@ function processSvgForCurrentColor(svg) {
138
138
  );
139
139
  return processed;
140
140
  }
141
- var maxWidthStyles = {
142
- sm: "max-w-screen-sm",
143
- md: "max-w-screen-md",
144
- lg: "max-w-screen-lg",
145
- xl: "max-w-7xl",
146
- "2xl": "max-w-screen-2xl",
147
- "4xl": "max-w-[1536px]",
148
- full: "max-w-full"
149
- };
150
- var Container = React__namespace.default.forwardRef(
151
- ({ children, maxWidth = "xl", className, as = "div", ...props }, ref) => {
152
- const Component = as;
153
- return /* @__PURE__ */ jsxRuntime.jsx(
154
- Component,
155
- {
156
- ref,
157
- className: cn(
158
- "mx-auto w-full px-2 sm:px-4 lg:px-8",
159
- maxWidthStyles[maxWidth],
160
- className
161
- ),
162
- ...props,
163
- children
164
- }
165
- );
166
- }
167
- );
168
- Container.displayName = "Container";
169
141
  function normalizePhoneNumber(input) {
170
142
  const trimmed = input.trim();
171
143
  if (trimmed.toLowerCase().startsWith("tel:")) {
@@ -584,6 +556,34 @@ var Pressable = React__namespace.forwardRef(
584
556
  }
585
557
  );
586
558
  Pressable.displayName = "Pressable";
559
+ var maxWidthStyles = {
560
+ sm: "max-w-screen-sm",
561
+ md: "max-w-screen-md",
562
+ lg: "max-w-screen-lg",
563
+ xl: "max-w-7xl",
564
+ "2xl": "max-w-screen-2xl",
565
+ "4xl": "max-w-[1536px]",
566
+ full: "max-w-full"
567
+ };
568
+ var Container = React__namespace.default.forwardRef(
569
+ ({ children, maxWidth = "xl", className, as = "div", ...props }, ref) => {
570
+ const Component = as;
571
+ return /* @__PURE__ */ jsxRuntime.jsx(
572
+ Component,
573
+ {
574
+ ref,
575
+ className: cn(
576
+ "mx-auto w-full px-2 sm:px-4 lg:px-8",
577
+ maxWidthStyles[maxWidth],
578
+ className
579
+ ),
580
+ ...props,
581
+ children
582
+ }
583
+ );
584
+ }
585
+ );
586
+ Container.displayName = "Container";
587
587
 
588
588
  // lib/patternSvgs.ts
589
589
  var patternSvgs = {
@@ -1019,7 +1019,7 @@ function HeroOverlayCtaGrid({
1019
1019
  optixFlowConfig
1020
1020
  }
1021
1021
  ),
1022
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-linear-to-r from-black/80 via-black/65 to-black/20" })
1022
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-linear-to-b from-black/80 via-black/65 to-black/20" })
1023
1023
  ] });
1024
1024
  }, [backgroundSlot, backgroundImage, backgroundAlt, optixFlowConfig]);
1025
1025
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -1030,71 +1030,66 @@ function HeroOverlayCtaGrid({
1030
1030
  pattern,
1031
1031
  patternOpacity,
1032
1032
  className: cn(
1033
- "relative flex h-full min-h-screen w-screen items-center justify-center overflow-hidden bg-black pb-0 pt-0 md:pt-0 px-6",
1033
+ "relative flex h-full min-h-screen w-screen items-center justify-center overflow-hidden bg-black pb-0 pt-0 md:pt-0 px-0",
1034
1034
  className
1035
1035
  ),
1036
+ containerClassName,
1036
1037
  children: [
1037
1038
  renderBackground,
1038
- /* @__PURE__ */ jsxRuntime.jsxs(
1039
- Container,
1040
- {
1041
- className: cn("relative flex flex-col gap-12", containerClassName),
1042
- children: [
1043
- /* @__PURE__ */ jsxRuntime.jsxs(
1044
- framerMotion.motion.div,
1045
- {
1046
- initial: { opacity: 0, y: 28 },
1047
- animate: { opacity: 1, y: 0 },
1048
- transition: { duration: 0.6, ease: "easeOut" },
1049
- className: "mx-auto max-w-3xl text-center text-balance text-white px-0",
1050
- children: [
1051
- renderBadge,
1052
- heading && (typeof heading === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
1053
- "h1",
1054
- {
1055
- className: cn(
1056
- "mt-6 text-4xl font-bold leading-tight md:text-5xl lg:text-6xl text-balance",
1057
- headingClassName
1058
- ),
1059
- children: heading
1060
- }
1061
- ) : /* @__PURE__ */ jsxRuntime.jsx(
1062
- "h1",
1063
- {
1064
- className: cn(
1065
- "mt-6 text-4xl font-bold leading-tight md:text-5xl lg:text-6xl text-balance",
1066
- headingClassName
1067
- ),
1068
- children: heading
1069
- }
1070
- )),
1071
- description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
1072
- "p",
1073
- {
1074
- className: cn(
1075
- "mt-5 text-lg md:text-xl text-balance",
1076
- descriptionClassName
1077
- ),
1078
- children: description
1079
- }
1080
- ) : /* @__PURE__ */ jsxRuntime.jsx(
1081
- "div",
1082
- {
1083
- className: cn(
1084
- "mt-5 text-lg md:text-xl text-balance",
1085
- descriptionClassName
1086
- ),
1087
- children: description
1088
- }
1089
- )),
1090
- renderActions
1091
- ]
1092
- }
1093
- ),
1094
- renderCards
1095
- ]
1096
- }
1097
- )
1039
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex flex-col gap-12", children: [
1040
+ /* @__PURE__ */ jsxRuntime.jsxs(
1041
+ framerMotion.motion.div,
1042
+ {
1043
+ initial: { opacity: 0, y: 28 },
1044
+ animate: { opacity: 1, y: 0 },
1045
+ transition: { duration: 0.6, ease: "easeOut" },
1046
+ className: "mx-auto max-w-3xl text-center text-balance text-white px-0",
1047
+ children: [
1048
+ renderBadge,
1049
+ heading && (typeof heading === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
1050
+ "h1",
1051
+ {
1052
+ className: cn(
1053
+ "mt-6 text-4xl font-bold leading-tight md:text-5xl lg:text-6xl text-balance",
1054
+ headingClassName
1055
+ ),
1056
+ children: heading
1057
+ }
1058
+ ) : /* @__PURE__ */ jsxRuntime.jsx(
1059
+ "h1",
1060
+ {
1061
+ className: cn(
1062
+ "mt-6 text-4xl font-bold leading-tight md:text-5xl lg:text-6xl text-balance",
1063
+ headingClassName
1064
+ ),
1065
+ children: heading
1066
+ }
1067
+ )),
1068
+ description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
1069
+ "p",
1070
+ {
1071
+ className: cn(
1072
+ "mt-5 text-lg md:text-xl text-balance",
1073
+ descriptionClassName
1074
+ ),
1075
+ children: description
1076
+ }
1077
+ ) : /* @__PURE__ */ jsxRuntime.jsx(
1078
+ "div",
1079
+ {
1080
+ className: cn(
1081
+ "mt-5 text-lg md:text-xl text-balance",
1082
+ descriptionClassName
1083
+ ),
1084
+ children: description
1085
+ }
1086
+ )),
1087
+ renderActions
1088
+ ]
1089
+ }
1090
+ ),
1091
+ renderCards
1092
+ ] })
1098
1093
  ]
1099
1094
  }
1100
1095
  );
@@ -117,34 +117,6 @@ function processSvgForCurrentColor(svg) {
117
117
  );
118
118
  return processed;
119
119
  }
120
- var maxWidthStyles = {
121
- sm: "max-w-screen-sm",
122
- md: "max-w-screen-md",
123
- lg: "max-w-screen-lg",
124
- xl: "max-w-7xl",
125
- "2xl": "max-w-screen-2xl",
126
- "4xl": "max-w-[1536px]",
127
- full: "max-w-full"
128
- };
129
- var Container = React__default.forwardRef(
130
- ({ children, maxWidth = "xl", className, as = "div", ...props }, ref) => {
131
- const Component = as;
132
- return /* @__PURE__ */ jsx(
133
- Component,
134
- {
135
- ref,
136
- className: cn(
137
- "mx-auto w-full px-2 sm:px-4 lg:px-8",
138
- maxWidthStyles[maxWidth],
139
- className
140
- ),
141
- ...props,
142
- children
143
- }
144
- );
145
- }
146
- );
147
- Container.displayName = "Container";
148
120
  function normalizePhoneNumber(input) {
149
121
  const trimmed = input.trim();
150
122
  if (trimmed.toLowerCase().startsWith("tel:")) {
@@ -563,6 +535,34 @@ var Pressable = React.forwardRef(
563
535
  }
564
536
  );
565
537
  Pressable.displayName = "Pressable";
538
+ var maxWidthStyles = {
539
+ sm: "max-w-screen-sm",
540
+ md: "max-w-screen-md",
541
+ lg: "max-w-screen-lg",
542
+ xl: "max-w-7xl",
543
+ "2xl": "max-w-screen-2xl",
544
+ "4xl": "max-w-[1536px]",
545
+ full: "max-w-full"
546
+ };
547
+ var Container = React__default.forwardRef(
548
+ ({ children, maxWidth = "xl", className, as = "div", ...props }, ref) => {
549
+ const Component = as;
550
+ return /* @__PURE__ */ jsx(
551
+ Component,
552
+ {
553
+ ref,
554
+ className: cn(
555
+ "mx-auto w-full px-2 sm:px-4 lg:px-8",
556
+ maxWidthStyles[maxWidth],
557
+ className
558
+ ),
559
+ ...props,
560
+ children
561
+ }
562
+ );
563
+ }
564
+ );
565
+ Container.displayName = "Container";
566
566
 
567
567
  // lib/patternSvgs.ts
568
568
  var patternSvgs = {
@@ -998,7 +998,7 @@ function HeroOverlayCtaGrid({
998
998
  optixFlowConfig
999
999
  }
1000
1000
  ),
1001
- /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-linear-to-r from-black/80 via-black/65 to-black/20" })
1001
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-linear-to-b from-black/80 via-black/65 to-black/20" })
1002
1002
  ] });
1003
1003
  }, [backgroundSlot, backgroundImage, backgroundAlt, optixFlowConfig]);
1004
1004
  return /* @__PURE__ */ jsxs(
@@ -1009,71 +1009,66 @@ function HeroOverlayCtaGrid({
1009
1009
  pattern,
1010
1010
  patternOpacity,
1011
1011
  className: cn(
1012
- "relative flex h-full min-h-screen w-screen items-center justify-center overflow-hidden bg-black pb-0 pt-0 md:pt-0 px-6",
1012
+ "relative flex h-full min-h-screen w-screen items-center justify-center overflow-hidden bg-black pb-0 pt-0 md:pt-0 px-0",
1013
1013
  className
1014
1014
  ),
1015
+ containerClassName,
1015
1016
  children: [
1016
1017
  renderBackground,
1017
- /* @__PURE__ */ jsxs(
1018
- Container,
1019
- {
1020
- className: cn("relative flex flex-col gap-12", containerClassName),
1021
- children: [
1022
- /* @__PURE__ */ jsxs(
1023
- motion.div,
1024
- {
1025
- initial: { opacity: 0, y: 28 },
1026
- animate: { opacity: 1, y: 0 },
1027
- transition: { duration: 0.6, ease: "easeOut" },
1028
- className: "mx-auto max-w-3xl text-center text-balance text-white px-0",
1029
- children: [
1030
- renderBadge,
1031
- heading && (typeof heading === "string" ? /* @__PURE__ */ jsx(
1032
- "h1",
1033
- {
1034
- className: cn(
1035
- "mt-6 text-4xl font-bold leading-tight md:text-5xl lg:text-6xl text-balance",
1036
- headingClassName
1037
- ),
1038
- children: heading
1039
- }
1040
- ) : /* @__PURE__ */ jsx(
1041
- "h1",
1042
- {
1043
- className: cn(
1044
- "mt-6 text-4xl font-bold leading-tight md:text-5xl lg:text-6xl text-balance",
1045
- headingClassName
1046
- ),
1047
- children: heading
1048
- }
1049
- )),
1050
- description && (typeof description === "string" ? /* @__PURE__ */ jsx(
1051
- "p",
1052
- {
1053
- className: cn(
1054
- "mt-5 text-lg md:text-xl text-balance",
1055
- descriptionClassName
1056
- ),
1057
- children: description
1058
- }
1059
- ) : /* @__PURE__ */ jsx(
1060
- "div",
1061
- {
1062
- className: cn(
1063
- "mt-5 text-lg md:text-xl text-balance",
1064
- descriptionClassName
1065
- ),
1066
- children: description
1067
- }
1068
- )),
1069
- renderActions
1070
- ]
1071
- }
1072
- ),
1073
- renderCards
1074
- ]
1075
- }
1076
- )
1018
+ /* @__PURE__ */ jsxs("div", { className: "relative flex flex-col gap-12", children: [
1019
+ /* @__PURE__ */ jsxs(
1020
+ motion.div,
1021
+ {
1022
+ initial: { opacity: 0, y: 28 },
1023
+ animate: { opacity: 1, y: 0 },
1024
+ transition: { duration: 0.6, ease: "easeOut" },
1025
+ className: "mx-auto max-w-3xl text-center text-balance text-white px-0",
1026
+ children: [
1027
+ renderBadge,
1028
+ heading && (typeof heading === "string" ? /* @__PURE__ */ jsx(
1029
+ "h1",
1030
+ {
1031
+ className: cn(
1032
+ "mt-6 text-4xl font-bold leading-tight md:text-5xl lg:text-6xl text-balance",
1033
+ headingClassName
1034
+ ),
1035
+ children: heading
1036
+ }
1037
+ ) : /* @__PURE__ */ jsx(
1038
+ "h1",
1039
+ {
1040
+ className: cn(
1041
+ "mt-6 text-4xl font-bold leading-tight md:text-5xl lg:text-6xl text-balance",
1042
+ headingClassName
1043
+ ),
1044
+ children: heading
1045
+ }
1046
+ )),
1047
+ description && (typeof description === "string" ? /* @__PURE__ */ jsx(
1048
+ "p",
1049
+ {
1050
+ className: cn(
1051
+ "mt-5 text-lg md:text-xl text-balance",
1052
+ descriptionClassName
1053
+ ),
1054
+ children: description
1055
+ }
1056
+ ) : /* @__PURE__ */ jsx(
1057
+ "div",
1058
+ {
1059
+ className: cn(
1060
+ "mt-5 text-lg md:text-xl text-balance",
1061
+ descriptionClassName
1062
+ ),
1063
+ children: description
1064
+ }
1065
+ )),
1066
+ renderActions
1067
+ ]
1068
+ }
1069
+ ),
1070
+ renderCards
1071
+ ] })
1077
1072
  ]
1078
1073
  }
1079
1074
  );
@@ -922,7 +922,10 @@ function HeroPatternBadgeLogos({
922
922
  {
923
923
  src: src.light,
924
924
  alt,
925
- className: cn(imgClassName, "dark:hidden"),
925
+ className: cn(
926
+ imgClassName,
927
+ "w-full h-10 object-contain dark:hidden"
928
+ ),
926
929
  optixFlowConfig
927
930
  }
928
931
  ),
@@ -931,7 +934,10 @@ function HeroPatternBadgeLogos({
931
934
  {
932
935
  src: src.dark,
933
936
  alt,
934
- className: cn(imgClassName, "hidden dark:block"),
937
+ className: cn(
938
+ imgClassName,
939
+ "w-full h-10 object-contain hidden dark:block"
940
+ ),
935
941
  optixFlowConfig
936
942
  }
937
943
  )
@@ -940,14 +946,24 @@ function HeroPatternBadgeLogos({
940
946
  {
941
947
  src,
942
948
  alt,
943
- className: imgClassName,
949
+ className: cn("w-full h-10 object-contain", imgClassName),
944
950
  optixFlowConfig
945
951
  }
946
952
  );
947
953
  if (href) {
948
954
  return /* @__PURE__ */ jsxRuntime.jsx(Pressable, { href, className: logoClassName, children: imgElement }, index);
949
955
  }
950
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: logoClassName, children: imgElement }, index);
956
+ return /* @__PURE__ */ jsxRuntime.jsx(
957
+ "div",
958
+ {
959
+ className: cn(
960
+ "w-auto max-h-10 h-10 flex items-center justify-center",
961
+ logoClassName
962
+ ),
963
+ children: imgElement
964
+ },
965
+ index
966
+ );
951
967
  });
952
968
  }, [logosSlot, logos, optixFlowConfig]);
953
969
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -959,11 +975,11 @@ function HeroPatternBadgeLogos({
959
975
  patternOpacity,
960
976
  className: cn("relative p-0", className),
961
977
  containerClassName,
962
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("relative"), children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mx-auto flex max-w-5xl flex-col items-center", children: /* @__PURE__ */ jsxRuntime.jsxs(
978
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative", children: /* @__PURE__ */ jsxRuntime.jsxs(
963
979
  "div",
964
980
  {
965
981
  className: cn(
966
- "z-10 mx-auto flex max-w-5xl flex-col items-center gap-6 text-center",
982
+ "p-6 flex w-full flex-col items-center gap-6 text-center",
967
983
  contentClassName
968
984
  ),
969
985
  children: [
@@ -993,7 +1009,10 @@ function HeroPatternBadgeLogos({
993
1009
  (actionsSlot || actions && actions.length > 0) && /* @__PURE__ */ jsxRuntime.jsx(
994
1010
  "div",
995
1011
  {
996
- className: cn("mt-6 flex items-center gap-4", actionsClassName),
1012
+ className: cn(
1013
+ "mt-6 flex items-center justify-center gap-4 flex-col md:flex-row w-full",
1014
+ actionsClassName
1015
+ ),
997
1016
  children: renderActions
998
1017
  }
999
1018
  ),
@@ -1001,12 +1020,12 @@ function HeroPatternBadgeLogos({
1001
1020
  "div",
1002
1021
  {
1003
1022
  className: cn(
1004
- "mt-12 flex flex-col items-center gap-4 lg:mt-16",
1023
+ "mt-6 flex flex-col items-center gap-4 lg:mt-16 w-full",
1005
1024
  logosClassName
1006
1025
  ),
1007
1026
  children: [
1008
1027
  logosTagline && (typeof logosTagline === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("text-center text-sm"), children: logosTagline }) : logosTagline),
1009
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-2 place-items-center items-center justify-center gap-6 opacity-80 sm:grid-cols-4 sm:gap-4", children: renderLogos })
1028
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-2 place-items-center items-center justify-center gap-6 opacity-80 sm:grid-cols-4 sm:gap-4 w-full", children: renderLogos })
1010
1029
  ]
1011
1030
  }
1012
1031
  )
@@ -901,7 +901,10 @@ function HeroPatternBadgeLogos({
901
901
  {
902
902
  src: src.light,
903
903
  alt,
904
- className: cn(imgClassName, "dark:hidden"),
904
+ className: cn(
905
+ imgClassName,
906
+ "w-full h-10 object-contain dark:hidden"
907
+ ),
905
908
  optixFlowConfig
906
909
  }
907
910
  ),
@@ -910,7 +913,10 @@ function HeroPatternBadgeLogos({
910
913
  {
911
914
  src: src.dark,
912
915
  alt,
913
- className: cn(imgClassName, "hidden dark:block"),
916
+ className: cn(
917
+ imgClassName,
918
+ "w-full h-10 object-contain hidden dark:block"
919
+ ),
914
920
  optixFlowConfig
915
921
  }
916
922
  )
@@ -919,14 +925,24 @@ function HeroPatternBadgeLogos({
919
925
  {
920
926
  src,
921
927
  alt,
922
- className: imgClassName,
928
+ className: cn("w-full h-10 object-contain", imgClassName),
923
929
  optixFlowConfig
924
930
  }
925
931
  );
926
932
  if (href) {
927
933
  return /* @__PURE__ */ jsx(Pressable, { href, className: logoClassName, children: imgElement }, index);
928
934
  }
929
- return /* @__PURE__ */ jsx("div", { className: logoClassName, children: imgElement }, index);
935
+ return /* @__PURE__ */ jsx(
936
+ "div",
937
+ {
938
+ className: cn(
939
+ "w-auto max-h-10 h-10 flex items-center justify-center",
940
+ logoClassName
941
+ ),
942
+ children: imgElement
943
+ },
944
+ index
945
+ );
930
946
  });
931
947
  }, [logosSlot, logos, optixFlowConfig]);
932
948
  return /* @__PURE__ */ jsx(
@@ -938,11 +954,11 @@ function HeroPatternBadgeLogos({
938
954
  patternOpacity,
939
955
  className: cn("relative p-0", className),
940
956
  containerClassName,
941
- children: /* @__PURE__ */ jsx("div", { className: cn("relative"), children: /* @__PURE__ */ jsx("div", { className: "mx-auto flex max-w-5xl flex-col items-center", children: /* @__PURE__ */ jsxs(
957
+ children: /* @__PURE__ */ jsx("div", { className: "relative", children: /* @__PURE__ */ jsx("div", { className: "relative", children: /* @__PURE__ */ jsxs(
942
958
  "div",
943
959
  {
944
960
  className: cn(
945
- "z-10 mx-auto flex max-w-5xl flex-col items-center gap-6 text-center",
961
+ "p-6 flex w-full flex-col items-center gap-6 text-center",
946
962
  contentClassName
947
963
  ),
948
964
  children: [
@@ -972,7 +988,10 @@ function HeroPatternBadgeLogos({
972
988
  (actionsSlot || actions && actions.length > 0) && /* @__PURE__ */ jsx(
973
989
  "div",
974
990
  {
975
- className: cn("mt-6 flex items-center gap-4", actionsClassName),
991
+ className: cn(
992
+ "mt-6 flex items-center justify-center gap-4 flex-col md:flex-row w-full",
993
+ actionsClassName
994
+ ),
976
995
  children: renderActions
977
996
  }
978
997
  ),
@@ -980,12 +999,12 @@ function HeroPatternBadgeLogos({
980
999
  "div",
981
1000
  {
982
1001
  className: cn(
983
- "mt-12 flex flex-col items-center gap-4 lg:mt-16",
1002
+ "mt-6 flex flex-col items-center gap-4 lg:mt-16 w-full",
984
1003
  logosClassName
985
1004
  ),
986
1005
  children: [
987
1006
  logosTagline && (typeof logosTagline === "string" ? /* @__PURE__ */ jsx("p", { className: cn("text-center text-sm"), children: logosTagline }) : logosTagline),
988
- /* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 place-items-center items-center justify-center gap-6 opacity-80 sm:grid-cols-4 sm:gap-4", children: renderLogos })
1007
+ /* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 place-items-center items-center justify-center gap-6 opacity-80 sm:grid-cols-4 sm:gap-4 w-full", children: renderLogos })
989
1008
  ]
990
1009
  }
991
1010
  )