@opensite/ui 2.0.2 → 2.0.4

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.
Files changed (75) hide show
  1. package/dist/hero-ai-powered-carousel.cjs +152 -77
  2. package/dist/hero-ai-powered-carousel.d.cts +5 -13
  3. package/dist/hero-ai-powered-carousel.d.ts +5 -13
  4. package/dist/hero-ai-powered-carousel.js +152 -77
  5. package/dist/hero-announcement-badge.cjs +679 -665
  6. package/dist/hero-announcement-badge.d.cts +1 -1
  7. package/dist/hero-announcement-badge.d.ts +1 -1
  8. package/dist/hero-announcement-badge.js +689 -675
  9. package/dist/hero-badge-shadow-overlay.cjs +79 -32
  10. package/dist/hero-badge-shadow-overlay.js +80 -33
  11. package/dist/hero-centered-image-grid.cjs +106 -95
  12. package/dist/hero-centered-image-grid.d.cts +2 -14
  13. package/dist/hero-centered-image-grid.d.ts +2 -14
  14. package/dist/hero-centered-image-grid.js +106 -95
  15. package/dist/hero-community-survey-cta.cjs +149 -58
  16. package/dist/hero-community-survey-cta.d.cts +1 -1
  17. package/dist/hero-community-survey-cta.d.ts +1 -1
  18. package/dist/hero-community-survey-cta.js +149 -58
  19. package/dist/hero-design-carousel-portfolio.cjs +158 -66
  20. package/dist/hero-design-carousel-portfolio.d.cts +7 -11
  21. package/dist/hero-design-carousel-portfolio.d.ts +7 -11
  22. package/dist/hero-design-carousel-portfolio.js +158 -66
  23. package/dist/hero-event-registration.cjs +765 -718
  24. package/dist/hero-event-registration.js +761 -714
  25. package/dist/hero-fullscreen-background-image.cjs +746 -649
  26. package/dist/hero-fullscreen-background-image.d.cts +12 -4
  27. package/dist/hero-fullscreen-background-image.d.ts +12 -4
  28. package/dist/hero-fullscreen-background-image.js +746 -649
  29. package/dist/hero-fullscreen-logo-cta.cjs +89 -31
  30. package/dist/hero-fullscreen-logo-cta.js +89 -31
  31. package/dist/hero-gradient-avatars-rating.cjs +847 -816
  32. package/dist/hero-gradient-avatars-rating.d.cts +1 -13
  33. package/dist/hero-gradient-avatars-rating.d.ts +1 -13
  34. package/dist/hero-gradient-avatars-rating.js +844 -813
  35. package/dist/hero-gradient-client-focused.cjs +690 -629
  36. package/dist/hero-gradient-client-focused.d.cts +1 -1
  37. package/dist/hero-gradient-client-focused.d.ts +1 -1
  38. package/dist/hero-gradient-client-focused.js +689 -628
  39. package/dist/hero-grid-pattern-efficiency.cjs +59 -47
  40. package/dist/hero-grid-pattern-efficiency.d.cts +1 -8
  41. package/dist/hero-grid-pattern-efficiency.d.ts +1 -8
  42. package/dist/hero-grid-pattern-efficiency.js +59 -47
  43. package/dist/hero-logo-centered-screenshot.cjs +1 -1
  44. package/dist/hero-logo-centered-screenshot.js +1 -1
  45. package/dist/hero-marketplace-scattered-images.cjs +2 -6
  46. package/dist/hero-marketplace-scattered-images.d.cts +1 -4
  47. package/dist/hero-marketplace-scattered-images.d.ts +1 -4
  48. package/dist/hero-marketplace-scattered-images.js +2 -6
  49. package/dist/hero-pattern-logo-tech-stack.cjs +1 -1
  50. package/dist/hero-pattern-logo-tech-stack.js +1 -1
  51. package/dist/hero-platform-features-grid.cjs +5 -5
  52. package/dist/hero-platform-features-grid.js +5 -5
  53. package/dist/hero-simple-centered-image.cjs +140 -44
  54. package/dist/hero-simple-centered-image.d.cts +1 -1
  55. package/dist/hero-simple-centered-image.d.ts +1 -1
  56. package/dist/hero-simple-centered-image.js +140 -44
  57. package/dist/hero-spiral-pattern-cards.cjs +857 -809
  58. package/dist/hero-spiral-pattern-cards.d.cts +5 -1
  59. package/dist/hero-spiral-pattern-cards.d.ts +5 -1
  60. package/dist/hero-spiral-pattern-cards.js +856 -808
  61. package/dist/hero-split-geometric-shapes.cjs +754 -723
  62. package/dist/hero-split-geometric-shapes.d.cts +5 -1
  63. package/dist/hero-split-geometric-shapes.d.ts +5 -1
  64. package/dist/hero-split-geometric-shapes.js +748 -717
  65. package/dist/hero-task-timer-animated.cjs +698 -650
  66. package/dist/hero-task-timer-animated.d.cts +5 -1
  67. package/dist/hero-task-timer-animated.d.ts +5 -1
  68. package/dist/hero-task-timer-animated.js +697 -649
  69. package/dist/hero-ui-library-showcase.cjs +734 -719
  70. package/dist/hero-ui-library-showcase.d.cts +5 -1
  71. package/dist/hero-ui-library-showcase.d.ts +5 -1
  72. package/dist/hero-ui-library-showcase.js +732 -717
  73. package/dist/registry.cjs +1035 -788
  74. package/dist/registry.js +1035 -788
  75. package/package.json +1 -1
@@ -834,16 +834,32 @@ function HeroFullscreenLogoCta({
834
834
  actionSlot,
835
835
  backgroundImage,
836
836
  background,
837
- spacing,
837
+ spacing = "none",
838
838
  pattern,
839
839
  patternOpacity,
840
840
  className,
841
- containerClassName,
842
- contentClassName,
841
+ containerClassName = "px-0 sm:px-0 lg:px-0 max-w-full relative z-10 h-screen w-screen flex justify-center items-center",
842
+ contentClassName = "relative flex flex-col gap-12 px-6 pt-28 pb-6 md:pt-0 md:pb-0",
843
843
  headingClassName,
844
844
  descriptionClassName,
845
845
  optixFlowConfig
846
846
  }) {
847
+ const renderBackground = React.useMemo(() => {
848
+ if (!backgroundImage) return null;
849
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "absolute inset-0", children: [
850
+ /* @__PURE__ */ jsxRuntime.jsx(
851
+ img.Img,
852
+ {
853
+ src: backgroundImage,
854
+ alt: "Full screen background image",
855
+ className: "h-full w-full object-cover",
856
+ loading: "eager",
857
+ optixFlowConfig
858
+ }
859
+ ),
860
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-linear-to-b from-black/80 via-black/65 to-black/20" })
861
+ ] });
862
+ }, [backgroundImage, optixFlowConfig]);
847
863
  const renderLogo = React.useMemo(() => {
848
864
  if (logoSlot) return logoSlot;
849
865
  if (!logo) return null;
@@ -853,7 +869,7 @@ function HeroFullscreenLogoCta({
853
869
  {
854
870
  src: logoSrc,
855
871
  alt: logo.alt,
856
- className: cn("size-20", logo.className),
872
+ className: cn("h-24 w-auto object-contain", logo.className),
857
873
  optixFlowConfig
858
874
  }
859
875
  );
@@ -861,39 +877,81 @@ function HeroFullscreenLogoCta({
861
877
  const renderAction = React.useMemo(() => {
862
878
  if (actionSlot) return actionSlot;
863
879
  if (!action) return null;
864
- const { label, icon, iconAfter, children, className: actionClassName, ...pressableProps } = action;
865
- return /* @__PURE__ */ jsxRuntime.jsx(
866
- Pressable,
867
- {
868
- asButton: true,
869
- className: actionClassName,
870
- ...pressableProps,
871
- children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
872
- icon,
873
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-2xl", children: label }),
874
- iconAfter
875
- ] })
876
- }
877
- );
880
+ const {
881
+ label,
882
+ icon,
883
+ iconAfter,
884
+ children,
885
+ className: actionClassName,
886
+ ...pressableProps
887
+ } = action;
888
+ return /* @__PURE__ */ jsxRuntime.jsx(Pressable, { asButton: true, className: actionClassName, ...pressableProps, children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
889
+ icon,
890
+ label,
891
+ iconAfter
892
+ ] }) });
878
893
  }, [actionSlot, action]);
879
- return /* @__PURE__ */ jsxRuntime.jsx(
894
+ return /* @__PURE__ */ jsxRuntime.jsxs(
880
895
  Section,
881
896
  {
897
+ background,
898
+ spacing,
899
+ pattern,
900
+ patternOpacity,
882
901
  className: cn(
883
- "dark h-screen w-screen bg-background bg-cover bg-center bg-no-repeat pt-12 pb-24",
902
+ "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",
884
903
  className
885
904
  ),
886
- style: { backgroundImage: `url('${backgroundImage}')` },
887
- children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("container flex h-full flex-col justify-between px-5 xl:px-20", containerClassName), children: [
888
- renderLogo,
889
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-end justify-between", children: [
890
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex w-full flex-col gap-8 md:w-2/3", contentClassName), children: [
891
- heading && (typeof heading === "string" ? /* @__PURE__ */ jsxRuntime.jsx("h1", { className: cn("text-6xl font-medium md:text-[5.8rem]", headingClassName), children: heading }) : /* @__PURE__ */ jsxRuntime.jsx("h1", { className: cn("text-6xl font-medium md:text-[5.8rem]", headingClassName), children: heading })),
892
- description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("text-xl md:text-2xl", descriptionClassName), children: description }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: descriptionClassName, children: description }))
893
- ] }),
894
- renderAction
895
- ] })
896
- ] })
905
+ containerClassName,
906
+ children: [
907
+ renderBackground,
908
+ /* @__PURE__ */ jsxRuntime.jsxs(
909
+ "div",
910
+ {
911
+ className: cn(
912
+ "relative z-30 m-auto flex max-w-185 flex-col items-start justify-center gap-6 px-5",
913
+ contentClassName
914
+ ),
915
+ children: [
916
+ renderLogo,
917
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-end justify-between", children: [
918
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex w-full flex-col gap-8 md:w-2/3"), children: [
919
+ heading && (typeof heading === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
920
+ "h1",
921
+ {
922
+ className: cn(
923
+ "text-6xl font-font-semibold md:text-[5.8rem]",
924
+ headingClassName
925
+ ),
926
+ children: heading
927
+ }
928
+ ) : /* @__PURE__ */ jsxRuntime.jsx(
929
+ "h1",
930
+ {
931
+ className: cn(
932
+ "text-6xl font-semibold md:text-[5.8rem]",
933
+ headingClassName
934
+ ),
935
+ children: heading
936
+ }
937
+ )),
938
+ description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
939
+ "p",
940
+ {
941
+ className: cn(
942
+ "text-xl md:text-2xl text-balance",
943
+ descriptionClassName
944
+ ),
945
+ children: description
946
+ }
947
+ ) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: descriptionClassName, children: description }))
948
+ ] }),
949
+ renderAction
950
+ ] })
951
+ ]
952
+ }
953
+ )
954
+ ]
897
955
  }
898
956
  );
899
957
  }
@@ -813,16 +813,32 @@ function HeroFullscreenLogoCta({
813
813
  actionSlot,
814
814
  backgroundImage,
815
815
  background,
816
- spacing,
816
+ spacing = "none",
817
817
  pattern,
818
818
  patternOpacity,
819
819
  className,
820
- containerClassName,
821
- contentClassName,
820
+ containerClassName = "px-0 sm:px-0 lg:px-0 max-w-full relative z-10 h-screen w-screen flex justify-center items-center",
821
+ contentClassName = "relative flex flex-col gap-12 px-6 pt-28 pb-6 md:pt-0 md:pb-0",
822
822
  headingClassName,
823
823
  descriptionClassName,
824
824
  optixFlowConfig
825
825
  }) {
826
+ const renderBackground = useMemo(() => {
827
+ if (!backgroundImage) return null;
828
+ return /* @__PURE__ */ jsxs("div", { className: "absolute inset-0", children: [
829
+ /* @__PURE__ */ jsx(
830
+ Img,
831
+ {
832
+ src: backgroundImage,
833
+ alt: "Full screen background image",
834
+ className: "h-full w-full object-cover",
835
+ loading: "eager",
836
+ optixFlowConfig
837
+ }
838
+ ),
839
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-linear-to-b from-black/80 via-black/65 to-black/20" })
840
+ ] });
841
+ }, [backgroundImage, optixFlowConfig]);
826
842
  const renderLogo = useMemo(() => {
827
843
  if (logoSlot) return logoSlot;
828
844
  if (!logo) return null;
@@ -832,7 +848,7 @@ function HeroFullscreenLogoCta({
832
848
  {
833
849
  src: logoSrc,
834
850
  alt: logo.alt,
835
- className: cn("size-20", logo.className),
851
+ className: cn("h-24 w-auto object-contain", logo.className),
836
852
  optixFlowConfig
837
853
  }
838
854
  );
@@ -840,39 +856,81 @@ function HeroFullscreenLogoCta({
840
856
  const renderAction = useMemo(() => {
841
857
  if (actionSlot) return actionSlot;
842
858
  if (!action) return null;
843
- const { label, icon, iconAfter, children, className: actionClassName, ...pressableProps } = action;
844
- return /* @__PURE__ */ jsx(
845
- Pressable,
846
- {
847
- asButton: true,
848
- className: actionClassName,
849
- ...pressableProps,
850
- children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
851
- icon,
852
- /* @__PURE__ */ jsx("span", { className: "text-2xl", children: label }),
853
- iconAfter
854
- ] })
855
- }
856
- );
859
+ const {
860
+ label,
861
+ icon,
862
+ iconAfter,
863
+ children,
864
+ className: actionClassName,
865
+ ...pressableProps
866
+ } = action;
867
+ return /* @__PURE__ */ jsx(Pressable, { asButton: true, className: actionClassName, ...pressableProps, children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
868
+ icon,
869
+ label,
870
+ iconAfter
871
+ ] }) });
857
872
  }, [actionSlot, action]);
858
- return /* @__PURE__ */ jsx(
873
+ return /* @__PURE__ */ jsxs(
859
874
  Section,
860
875
  {
876
+ background,
877
+ spacing,
878
+ pattern,
879
+ patternOpacity,
861
880
  className: cn(
862
- "dark h-screen w-screen bg-background bg-cover bg-center bg-no-repeat pt-12 pb-24",
881
+ "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",
863
882
  className
864
883
  ),
865
- style: { backgroundImage: `url('${backgroundImage}')` },
866
- children: /* @__PURE__ */ jsxs("div", { className: cn("container flex h-full flex-col justify-between px-5 xl:px-20", containerClassName), children: [
867
- renderLogo,
868
- /* @__PURE__ */ jsxs("div", { className: "flex items-end justify-between", children: [
869
- /* @__PURE__ */ jsxs("div", { className: cn("flex w-full flex-col gap-8 md:w-2/3", contentClassName), children: [
870
- heading && (typeof heading === "string" ? /* @__PURE__ */ jsx("h1", { className: cn("text-6xl font-medium md:text-[5.8rem]", headingClassName), children: heading }) : /* @__PURE__ */ jsx("h1", { className: cn("text-6xl font-medium md:text-[5.8rem]", headingClassName), children: heading })),
871
- description && (typeof description === "string" ? /* @__PURE__ */ jsx("p", { className: cn("text-xl md:text-2xl", descriptionClassName), children: description }) : /* @__PURE__ */ jsx("div", { className: descriptionClassName, children: description }))
872
- ] }),
873
- renderAction
874
- ] })
875
- ] })
884
+ containerClassName,
885
+ children: [
886
+ renderBackground,
887
+ /* @__PURE__ */ jsxs(
888
+ "div",
889
+ {
890
+ className: cn(
891
+ "relative z-30 m-auto flex max-w-185 flex-col items-start justify-center gap-6 px-5",
892
+ contentClassName
893
+ ),
894
+ children: [
895
+ renderLogo,
896
+ /* @__PURE__ */ jsxs("div", { className: "flex items-end justify-between", children: [
897
+ /* @__PURE__ */ jsxs("div", { className: cn("flex w-full flex-col gap-8 md:w-2/3"), children: [
898
+ heading && (typeof heading === "string" ? /* @__PURE__ */ jsx(
899
+ "h1",
900
+ {
901
+ className: cn(
902
+ "text-6xl font-font-semibold md:text-[5.8rem]",
903
+ headingClassName
904
+ ),
905
+ children: heading
906
+ }
907
+ ) : /* @__PURE__ */ jsx(
908
+ "h1",
909
+ {
910
+ className: cn(
911
+ "text-6xl font-semibold md:text-[5.8rem]",
912
+ headingClassName
913
+ ),
914
+ children: heading
915
+ }
916
+ )),
917
+ description && (typeof description === "string" ? /* @__PURE__ */ jsx(
918
+ "p",
919
+ {
920
+ className: cn(
921
+ "text-xl md:text-2xl text-balance",
922
+ descriptionClassName
923
+ ),
924
+ children: description
925
+ }
926
+ ) : /* @__PURE__ */ jsx("div", { className: descriptionClassName, children: description }))
927
+ ] }),
928
+ renderAction
929
+ ] })
930
+ ]
931
+ }
932
+ )
933
+ ]
876
934
  }
877
935
  );
878
936
  }