@opensite/ui 3.0.9 → 3.1.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.
Files changed (45) hide show
  1. package/dist/cta-video-background-hero.cjs +13 -4
  2. package/dist/cta-video-background-hero.js +13 -4
  3. package/dist/faq-split-hero.cjs +5 -4
  4. package/dist/faq-split-hero.js +2 -1
  5. package/dist/hero-conversion-video-play.cjs +10 -1
  6. package/dist/hero-conversion-video-play.js +10 -1
  7. package/dist/hero-creative-studio-stacked.cjs +10 -1
  8. package/dist/hero-creative-studio-stacked.js +10 -1
  9. package/dist/hero-mentorship-video-split.cjs +10 -1
  10. package/dist/hero-mentorship-video-split.js +10 -1
  11. package/dist/hero-presentation-platform-video.cjs +4 -3
  12. package/dist/hero-presentation-platform-video.js +4 -3
  13. package/dist/hero-productivity-launcher-video.cjs +2 -1
  14. package/dist/hero-productivity-launcher-video.js +2 -1
  15. package/dist/hero-software-growth-video-dialog.cjs +10 -1
  16. package/dist/hero-software-growth-video-dialog.js +10 -1
  17. package/dist/hero-video-background-dark.cjs +5 -4
  18. package/dist/hero-video-background-dark.js +5 -4
  19. package/dist/hero-video-dialog-gradient.cjs +10 -1
  20. package/dist/hero-video-dialog-gradient.js +10 -1
  21. package/dist/hero-video-overlay-stars.cjs +2 -1
  22. package/dist/hero-video-overlay-stars.js +2 -1
  23. package/dist/link-tree-block.cjs +2 -1
  24. package/dist/link-tree-block.js +2 -1
  25. package/dist/project-detail-architecture-carousel.cjs +2 -1
  26. package/dist/project-detail-architecture-carousel.js +2 -1
  27. package/dist/project-video-carousel.cjs +5 -7
  28. package/dist/project-video-carousel.js +5 -7
  29. package/dist/project-video-hover-bento.cjs +5 -7
  30. package/dist/project-video-hover-bento.js +5 -7
  31. package/dist/project-video-hover-grid.cjs +5 -7
  32. package/dist/project-video-hover-grid.js +5 -7
  33. package/dist/project-video-hover-rounded.cjs +5 -7
  34. package/dist/project-video-hover-rounded.js +5 -7
  35. package/dist/project-video-hover-stack.cjs +5 -7
  36. package/dist/project-video-hover-stack.js +5 -7
  37. package/dist/project-video-hover-two-by-two.cjs +5 -7
  38. package/dist/project-video-hover-two-by-two.js +5 -7
  39. package/dist/registry.cjs +98 -67
  40. package/dist/registry.js +95 -64
  41. package/dist/services-list-video-showcase.cjs +2 -1
  42. package/dist/services-list-video-showcase.js +2 -1
  43. package/dist/social-link-icon.d.cts +1 -1
  44. package/dist/social-link-icon.d.ts +1 -1
  45. package/package.json +3 -1
package/dist/registry.cjs CHANGED
@@ -18,6 +18,7 @@ var integration = require('@page-speed/forms/integration');
18
18
  var framerMotion = require('framer-motion');
19
19
  var lightbox = require('@page-speed/lightbox');
20
20
  var SeparatorPrimitive = require('@radix-ui/react-separator');
21
+ var video = require('@page-speed/video');
21
22
  var AccordionPrimitive = require('@radix-ui/react-accordion');
22
23
  var maps = require('@page-speed/maps');
23
24
  var useEmblaCarousel = require('embla-carousel-react');
@@ -12636,7 +12637,15 @@ function CtaVideoBackgroundHero({
12636
12637
  children: /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/x", size: 20 })
12637
12638
  }
12638
12639
  ),
12639
- modalVideoUrl && /* @__PURE__ */ jsxRuntime.jsx("video", { controls: true, autoPlay: true, className: "w-full rounded-lg", children: /* @__PURE__ */ jsxRuntime.jsx("source", { src: modalVideoUrl, type: "video/mp4" }) })
12640
+ modalVideoUrl && /* @__PURE__ */ jsxRuntime.jsx(
12641
+ video.Video,
12642
+ {
12643
+ src: modalVideoUrl,
12644
+ controls: true,
12645
+ autoPlay: true,
12646
+ className: "w-full rounded-lg"
12647
+ }
12648
+ )
12640
12649
  ]
12641
12650
  }
12642
12651
  )
@@ -12662,14 +12671,14 @@ function CtaVideoBackgroundHero({
12662
12671
  ),
12663
12672
  children: [
12664
12673
  backgroundVideoUrl && /* @__PURE__ */ jsxRuntime.jsx(
12665
- "video",
12674
+ video.Video,
12666
12675
  {
12676
+ src: backgroundVideoUrl,
12667
12677
  autoPlay: true,
12668
12678
  loop: true,
12669
12679
  muted: true,
12670
12680
  playsInline: true,
12671
- className: "absolute inset-0 h-full w-full object-cover",
12672
- children: /* @__PURE__ */ jsxRuntime.jsx("source", { src: backgroundVideoUrl, type: "video/mp4" })
12681
+ className: "absolute inset-0 h-full w-full object-cover"
12673
12682
  }
12674
12683
  ),
12675
12684
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -42104,11 +42113,11 @@ function FaqSplitHero({
42104
42113
  ]);
42105
42114
  const renderMedia = React30.useMemo(() => {
42106
42115
  if (!mediaItem) return null;
42107
- const { image, video } = mediaItem;
42108
- if (video) {
42109
- const { src, className: videoClassName, ...videoRest } = video;
42116
+ const { image, video: video$1 } = mediaItem;
42117
+ if (video$1) {
42118
+ const { src, className: videoClassName, ...videoRest } = video$1;
42110
42119
  return /* @__PURE__ */ jsxRuntime.jsx(
42111
- "video",
42120
+ video.Video,
42112
42121
  {
42113
42122
  src,
42114
42123
  className: cn("h-full w-full object-cover", videoClassName),
@@ -52567,14 +52576,14 @@ function HeroVideoBackgroundDark({
52567
52576
  if (videoSlot) return videoSlot;
52568
52577
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
52569
52578
  /* @__PURE__ */ jsxRuntime.jsx(
52570
- "video",
52579
+ video.Video,
52571
52580
  {
52581
+ src: videoSrc,
52572
52582
  loop: true,
52573
52583
  playsInline: true,
52574
- src: videoSrc,
52575
- className: "absolute top-0 left-0 size-full object-cover",
52576
52584
  autoPlay: true,
52577
- muted: true
52585
+ muted: true,
52586
+ className: "absolute top-0 left-0 size-full object-cover"
52578
52587
  }
52579
52588
  ),
52580
52589
  /* @__PURE__ */ jsxRuntime.jsx(GradientOverlay, { intensity: videoOverlayIntensity })
@@ -54437,16 +54446,16 @@ function HeroPresentationPlatformVideo({
54437
54446
  videoClassName
54438
54447
  ),
54439
54448
  children: /* @__PURE__ */ jsxRuntime.jsx(
54440
- "video",
54449
+ video.Video,
54441
54450
  {
54451
+ src: videoSrc,
54442
54452
  autoPlay: true,
54443
54453
  loop: true,
54444
54454
  muted: true,
54445
54455
  playsInline: true,
54446
54456
  "data-wf-ignore": "true",
54447
54457
  "data-object-fit": "cover",
54448
- className: "h-full w-full rounded-tl-xl object-cover",
54449
- children: /* @__PURE__ */ jsxRuntime.jsx("source", { src: videoSrc, type: "video/mp4" })
54458
+ className: "h-full w-full rounded-tl-xl object-cover"
54450
54459
  }
54451
54460
  )
54452
54461
  }
@@ -55203,7 +55212,15 @@ function HeroSoftwareGrowthVideoDialog({
55203
55212
  "div",
55204
55213
  {
55205
55214
  className: videoAspectRatio === "vertical" ? "aspect-9/16" : "aspect-video",
55206
- children: /* @__PURE__ */ jsxRuntime.jsx("video", { controls: true, autoPlay: true, className: "h-full w-full rounded-lg", children: /* @__PURE__ */ jsxRuntime.jsx("source", { src: videoDialog?.videoUrl, type: "video/mp4" }) })
55215
+ children: /* @__PURE__ */ jsxRuntime.jsx(
55216
+ video.Video,
55217
+ {
55218
+ src: videoDialog?.videoUrl,
55219
+ controls: true,
55220
+ autoPlay: true,
55221
+ className: "h-full w-full rounded-lg"
55222
+ }
55223
+ )
55207
55224
  }
55208
55225
  )
55209
55226
  ]
@@ -55375,7 +55392,15 @@ function HeroConversionVideoPlay({
55375
55392
  ),
55376
55393
  /* @__PURE__ */ jsxRuntime.jsx(Dialog, { open: isVideoOpen, onOpenChange: setIsVideoOpen, children: /* @__PURE__ */ jsxRuntime.jsxs(DialogContent, { className: "sm:max-w-200", children: [
55377
55394
  /* @__PURE__ */ jsxRuntime.jsx(DialogHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { children: videoDialogTitle }) }),
55378
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "aspect-video", children: /* @__PURE__ */ jsxRuntime.jsx("video", { controls: true, autoPlay: true, className: "h-full w-full rounded-lg", children: /* @__PURE__ */ jsxRuntime.jsx("source", { src: videoUrl, type: "video/mp4" }) }) })
55395
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "aspect-video", children: /* @__PURE__ */ jsxRuntime.jsx(
55396
+ video.Video,
55397
+ {
55398
+ src: videoUrl,
55399
+ controls: true,
55400
+ autoPlay: true,
55401
+ className: "h-full w-full rounded-lg"
55402
+ }
55403
+ ) })
55379
55404
  ] }) })
55380
55405
  ] });
55381
55406
  }
@@ -55552,7 +55577,7 @@ function HeroVideoOverlayStars({
55552
55577
  const renderVideo = React30.useMemo(() => {
55553
55578
  if (videoSlot) return videoSlot;
55554
55579
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 size-full before:absolute brightness-50", children: /* @__PURE__ */ jsxRuntime.jsx(
55555
- "video",
55580
+ video.Video,
55556
55581
  {
55557
55582
  src: videoSrc,
55558
55583
  muted: true,
@@ -55684,7 +55709,7 @@ function HeroProductivityLauncherVideo({
55684
55709
  const renderVideo = React30.useMemo(() => {
55685
55710
  if (videoSlot) return videoSlot;
55686
55711
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-0 z-10 h-full w-full inset-0", children: /* @__PURE__ */ jsxRuntime.jsx(
55687
- "video",
55712
+ video.Video,
55688
55713
  {
55689
55714
  src: videoSrc,
55690
55715
  loop: true,
@@ -57106,7 +57131,15 @@ function HeroVideoDialogGradient({
57106
57131
  "div",
57107
57132
  {
57108
57133
  className: videoAspectRatio === "vertical" ? "aspect-9/16" : "aspect-video",
57109
- children: /* @__PURE__ */ jsxRuntime.jsx("video", { controls: true, autoPlay: true, className: "h-full w-full rounded-lg", children: /* @__PURE__ */ jsxRuntime.jsx("source", { src: videoDialog?.videoUrl, type: "video/mp4" }) })
57134
+ children: /* @__PURE__ */ jsxRuntime.jsx(
57135
+ video.Video,
57136
+ {
57137
+ src: videoDialog?.videoUrl,
57138
+ controls: true,
57139
+ autoPlay: true,
57140
+ className: "h-full w-full rounded-lg"
57141
+ }
57142
+ )
57110
57143
  }
57111
57144
  )
57112
57145
  ]
@@ -58144,7 +58177,15 @@ function HeroMentorshipVideoSplit({
58144
58177
  "div",
58145
58178
  {
58146
58179
  className: videoAspectRatio === "vertical" ? "aspect-9/16" : "aspect-video",
58147
- children: /* @__PURE__ */ jsxRuntime.jsx("video", { controls: true, autoPlay: true, className: "h-full w-full rounded-lg", children: /* @__PURE__ */ jsxRuntime.jsx("source", { src: videoUrl, type: "video/mp4" }) })
58180
+ children: /* @__PURE__ */ jsxRuntime.jsx(
58181
+ video.Video,
58182
+ {
58183
+ src: videoUrl,
58184
+ controls: true,
58185
+ autoPlay: true,
58186
+ className: "h-full w-full rounded-lg"
58187
+ }
58188
+ )
58148
58189
  }
58149
58190
  )
58150
58191
  ]
@@ -59028,7 +59069,15 @@ function HeroCreativeStudioStacked({
59028
59069
  "div",
59029
59070
  {
59030
59071
  className: videoAspectRatio === "vertical" ? "aspect-9/16" : "aspect-video",
59031
- children: /* @__PURE__ */ jsxRuntime.jsx("video", { controls: true, autoPlay: true, className: "h-full w-full rounded-lg", children: /* @__PURE__ */ jsxRuntime.jsx("source", { src: videoDialog?.videoUrl, type: "video/mp4" }) })
59072
+ children: /* @__PURE__ */ jsxRuntime.jsx(
59073
+ video.Video,
59074
+ {
59075
+ src: videoDialog?.videoUrl,
59076
+ controls: true,
59077
+ autoPlay: true,
59078
+ className: "h-full w-full rounded-lg"
59079
+ }
59080
+ )
59032
59081
  }
59033
59082
  )
59034
59083
  ]
@@ -82338,19 +82387,16 @@ var VideoSection = ({
82338
82387
  optixFlowConfig
82339
82388
  }
82340
82389
  ),
82341
- /* @__PURE__ */ jsxRuntime.jsxs(
82342
- "video",
82390
+ /* @__PURE__ */ jsxRuntime.jsx(
82391
+ video.Video,
82343
82392
  {
82344
82393
  ref: videoRef,
82394
+ src: videoSrc,
82345
82395
  className: `absolute inset-0 h-full w-full object-cover transition-opacity duration-700 ease-in-out ${isHovered ? "opacity-100" : "opacity-0"}`,
82346
82396
  muted: true,
82347
82397
  loop: true,
82348
82398
  playsInline: true,
82349
- preload: "metadata",
82350
- children: [
82351
- /* @__PURE__ */ jsxRuntime.jsx("source", { src: videoSrc, type: "video/mp4" }),
82352
- "Your browser does not support the video tag."
82353
- ]
82399
+ preload: "metadata"
82354
82400
  }
82355
82401
  ),
82356
82402
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-foreground/30 transition-all duration-500 group-hover:bg-foreground/20" }),
@@ -82506,19 +82552,16 @@ var VideoSection2 = ({
82506
82552
  optixFlowConfig
82507
82553
  }
82508
82554
  ),
82509
- /* @__PURE__ */ jsxRuntime.jsxs(
82510
- "video",
82555
+ /* @__PURE__ */ jsxRuntime.jsx(
82556
+ video.Video,
82511
82557
  {
82512
82558
  ref: videoRef,
82559
+ src: videoSrc,
82513
82560
  className: `absolute inset-0 h-full w-full object-cover transition-opacity duration-700 ease-in-out ${isHovered ? "opacity-100" : "opacity-0"}`,
82514
82561
  muted: true,
82515
82562
  loop: true,
82516
82563
  playsInline: true,
82517
- preload: "metadata",
82518
- children: [
82519
- /* @__PURE__ */ jsxRuntime.jsx("source", { src: videoSrc, type: "video/mp4" }),
82520
- "Your browser does not support the video tag."
82521
- ]
82564
+ preload: "metadata"
82522
82565
  }
82523
82566
  ),
82524
82567
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-foreground/30 transition-all duration-500 group-hover:bg-foreground/20" }),
@@ -82655,19 +82698,16 @@ var VideoSection3 = ({
82655
82698
  optixFlowConfig
82656
82699
  }
82657
82700
  ),
82658
- /* @__PURE__ */ jsxRuntime.jsxs(
82659
- "video",
82701
+ /* @__PURE__ */ jsxRuntime.jsx(
82702
+ video.Video,
82660
82703
  {
82661
82704
  ref: videoRef,
82705
+ src: videoSrc,
82662
82706
  className: `absolute inset-0 h-full w-full object-cover transition-opacity duration-700 ease-in-out ${isHovered ? "opacity-100" : "opacity-0"}`,
82663
82707
  muted: true,
82664
82708
  loop: true,
82665
82709
  playsInline: true,
82666
- preload: "metadata",
82667
- children: [
82668
- /* @__PURE__ */ jsxRuntime.jsx("source", { src: videoSrc, type: "video/mp4" }),
82669
- "Your browser does not support the video tag."
82670
- ]
82710
+ preload: "metadata"
82671
82711
  }
82672
82712
  ),
82673
82713
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-foreground/30 transition-all duration-500 group-hover:bg-foreground/20" }),
@@ -82814,19 +82854,16 @@ var VideoSection4 = ({
82814
82854
  optixFlowConfig
82815
82855
  }
82816
82856
  ),
82817
- /* @__PURE__ */ jsxRuntime.jsxs(
82818
- "video",
82857
+ /* @__PURE__ */ jsxRuntime.jsx(
82858
+ video.Video,
82819
82859
  {
82820
82860
  ref: videoRef,
82861
+ src: videoSrc,
82821
82862
  className: `absolute inset-0 h-full w-full object-cover transition-opacity duration-700 ease-in-out ${isHovered ? "opacity-100" : "opacity-0"}`,
82822
82863
  muted: true,
82823
82864
  loop: true,
82824
82865
  playsInline: true,
82825
- preload: "metadata",
82826
- children: [
82827
- /* @__PURE__ */ jsxRuntime.jsx("source", { src: videoSrc, type: "video/mp4" }),
82828
- "Your browser does not support the video tag."
82829
- ]
82866
+ preload: "metadata"
82830
82867
  }
82831
82868
  ),
82832
82869
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-foreground/30 transition-all duration-500 group-hover:bg-foreground/20" }),
@@ -82958,19 +82995,16 @@ var VideoSection5 = ({
82958
82995
  optixFlowConfig
82959
82996
  }
82960
82997
  ),
82961
- /* @__PURE__ */ jsxRuntime.jsxs(
82962
- "video",
82998
+ /* @__PURE__ */ jsxRuntime.jsx(
82999
+ video.Video,
82963
83000
  {
82964
83001
  ref: videoRef,
83002
+ src: videoSrc,
82965
83003
  className: `absolute inset-0 h-full w-full object-cover transition-opacity duration-700 ease-in-out ${isHovered ? "opacity-100" : "opacity-0"}`,
82966
83004
  muted: true,
82967
83005
  loop: true,
82968
83006
  playsInline: true,
82969
- preload: "metadata",
82970
- children: [
82971
- /* @__PURE__ */ jsxRuntime.jsx("source", { src: videoSrc, type: "video/mp4" }),
82972
- "Your browser does not support the video tag."
82973
- ]
83007
+ preload: "metadata"
82974
83008
  }
82975
83009
  ),
82976
83010
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-foreground/30 transition-all duration-500 group-hover:bg-foreground/20" }),
@@ -83102,19 +83136,16 @@ var VideoSection6 = ({
83102
83136
  optixFlowConfig
83103
83137
  }
83104
83138
  ),
83105
- /* @__PURE__ */ jsxRuntime.jsxs(
83106
- "video",
83139
+ /* @__PURE__ */ jsxRuntime.jsx(
83140
+ video.Video,
83107
83141
  {
83108
83142
  ref: videoRef,
83143
+ src: videoSrc,
83109
83144
  className: `absolute inset-0 h-full w-full object-cover transition-opacity duration-700 ease-in-out ${isHovered ? "opacity-100" : "opacity-0"}`,
83110
83145
  muted: true,
83111
83146
  loop: true,
83112
83147
  playsInline: true,
83113
- preload: "metadata",
83114
- children: [
83115
- /* @__PURE__ */ jsxRuntime.jsx("source", { src: videoSrc, type: "video/mp4" }),
83116
- "Your browser does not support the video tag."
83117
- ]
83148
+ preload: "metadata"
83118
83149
  }
83119
83150
  ),
83120
83151
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-foreground/30 transition-all duration-500 group-hover:bg-foreground/20" }),
@@ -87991,7 +88022,7 @@ function ProjectDetailArchitectureCarousel(props) {
87991
88022
  transition: { duration: 0.6, delay: 0.2 },
87992
88023
  className: "mb-16",
87993
88024
  children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative aspect-video overflow-hidden rounded-2xl", children: /* @__PURE__ */ jsxRuntime.jsx(
87994
- "video",
88025
+ video.Video,
87995
88026
  {
87996
88027
  src: videoUrl,
87997
88028
  poster: videoPoster,
@@ -94546,7 +94577,7 @@ function ServicesListVideoShowcase({
94546
94577
  }
94547
94578
  ),
94548
94579
  service.videoUrl && /* @__PURE__ */ jsxRuntime.jsx(
94549
- "video",
94580
+ video.Video,
94550
94581
  {
94551
94582
  ref: (el) => {
94552
94583
  videoRefs.current[index] = el;
@@ -101457,7 +101488,7 @@ function LinkTreeBlock({
101457
101488
  "aria-label": `View ${item.alt || item.type} in lightbox`,
101458
101489
  children: [
101459
101490
  item.type === "video" ? /* @__PURE__ */ jsxRuntime.jsx(
101460
- "video",
101491
+ video.Video,
101461
101492
  {
101462
101493
  src: item.src,
101463
101494
  poster: item.poster,