dune-react 0.0.21 → 0.0.22

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 (180) hide show
  1. package/dist/components/index.d.ts +1 -0
  2. package/dist/components/puck-base/button.d.ts +1 -1
  3. package/dist/components/puck-base/button.js +5 -6
  4. package/dist/components/puck-base/card.d.ts +1 -1
  5. package/dist/components/puck-base/container.js +1 -1
  6. package/dist/components/puck-base/content.d.ts +1 -1
  7. package/dist/components/puck-base/image.js +16 -16
  8. package/dist/components/puck-base/index.d.ts +1 -13
  9. package/dist/components/puck-block/banner-sections/dismissible-banner/index.d.ts +3 -25
  10. package/dist/components/puck-block/contact-sections/centered-form/index.d.ts +1 -1
  11. package/dist/components/puck-block/contact-sections/contact-modal/contact-modal.js +1 -1
  12. package/dist/components/puck-block/contact-sections/contact-modal/index.d.ts +1 -1
  13. package/dist/components/puck-block/contact-sections/form-with-media/index.d.ts +1 -1
  14. package/dist/components/puck-block/contact-sections/header-form-cards/index.d.ts +1 -1
  15. package/dist/components/puck-block/contact-sections/location-cards-grid/index.d.ts +1 -1
  16. package/dist/components/puck-block/contact-sections/split-info-form/index.d.ts +1 -1
  17. package/dist/components/puck-block/cta-sections/feature-card-cta/index.d.ts +1 -1
  18. package/dist/components/puck-block/cta-sections/index.d.ts +2 -0
  19. package/dist/components/puck-block/cta-sections/mouse-track-cta/index.d.ts +1 -1
  20. package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.js +88 -59
  21. package/dist/components/puck-block/cta-sections/props.js +46 -0
  22. package/dist/components/puck-block/cta-sections/side-media-cta/index.d.ts +1 -73
  23. package/dist/components/puck-block/cta-sections/side-media-cta/index.js +35 -0
  24. package/dist/components/puck-block/cta-sections/side-media-cta/side-media-cta.js +84 -0
  25. package/dist/components/puck-block/cta-sections/text-block-cta/index.d.ts +2 -74
  26. package/dist/components/puck-block/cta-sections/text-block-cta/index.js +38 -0
  27. package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.d.ts +1 -1
  28. package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.js +165 -0
  29. package/dist/components/puck-block/faq-sections/dual-column-accordion-faq/index.d.ts +1 -1
  30. package/dist/components/puck-block/faq-sections/icon-card-faq/index.d.ts +1 -1
  31. package/dist/components/puck-block/faq-sections/stacked-accordion-faq/index.d.ts +1 -1
  32. package/dist/components/puck-block/faq-sections/stacked-static-faq/index.d.ts +1 -1
  33. package/dist/components/puck-block/faq-sections/two-column-accordion-faq/index.d.ts +1 -1
  34. package/dist/components/puck-block/faq-sections/two-column-static-faq/index.d.ts +1 -1
  35. package/dist/components/puck-block/feature-sections/feature-cards-grid/index.d.ts +2 -2
  36. package/dist/components/puck-block/feature-sections/feature-list-split/index.d.ts +2 -2
  37. package/dist/components/puck-block/feature-sections/tab-feature/component.js +77 -61
  38. package/dist/components/puck-block/feature-sections/text-media-split/index.d.ts +1 -1
  39. package/dist/components/puck-block/feature-sections/text-only-section/index.d.ts +1 -1
  40. package/dist/components/puck-block/footer-sections/compact-newsletter-footer/index.d.ts +1 -1
  41. package/dist/components/puck-block/footer-sections/cta-links-footer/index.d.ts +1 -1
  42. package/dist/components/puck-block/footer-sections/links-newsletter-footer/index.d.ts +1 -1
  43. package/dist/components/puck-block/footer-sections/newsletter-links-footer/index.d.ts +1 -1
  44. package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/index.d.ts +1 -1
  45. package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.d.ts +25 -28
  46. package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.js +3 -2
  47. package/dist/components/puck-block/gallery-sections/portfolio-cards/index.d.ts +2 -2
  48. package/dist/components/puck-block/gallery-sections/portfolio-divider/index.d.ts +2 -2
  49. package/dist/components/puck-block/gallery-sections/portfolio-divider/portfolio-divider.js +67 -64
  50. package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.d.ts +24 -27
  51. package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.js +3 -2
  52. package/dist/components/puck-block/header-sections/centered-navbar/index.d.ts +1 -1
  53. package/dist/components/puck-block/header-sections/drawer-navbar/drawer-navbar.js +118 -17
  54. package/dist/components/puck-block/header-sections/drawer-navbar/index.d.ts +1 -1
  55. package/dist/components/puck-block/header-sections/floating-bordered-navbar/floating-bordered-navbar.js +161 -22
  56. package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.d.ts +1 -1
  57. package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/fullscreen-overlay-navbar.js +142 -19
  58. package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.d.ts +1 -1
  59. package/dist/components/puck-block/header-sections/mega-menu-navbar/index.d.ts +1 -1
  60. package/dist/components/puck-block/header-sections/standard-navbar/index.d.ts +1 -1
  61. package/dist/components/puck-block/hero-sections/carousel-hero/component.js +50 -9
  62. package/dist/components/puck-block/hero-sections/carousel-hero/index.d.ts +1 -1
  63. package/dist/components/puck-block/hero-sections/centered-hero/index.d.ts +2 -2
  64. package/dist/components/puck-block/hero-sections/column-scroll-hero/index.d.ts +1 -1
  65. package/dist/components/puck-block/hero-sections/dual-marquee-hero/index.d.ts +1 -1
  66. package/dist/components/puck-block/hero-sections/fullscreen-hero/index.d.ts +2 -2
  67. package/dist/components/puck-block/hero-sections/fullscreen-video-hero/component.js +4 -2
  68. package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.d.ts +1 -1
  69. package/dist/components/puck-block/hero-sections/grid-expand-hero/index.d.ts +1 -1
  70. package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/index.d.ts +1 -1
  71. package/dist/components/puck-block/hero-sections/inline-image-hero/index.d.ts +1 -1
  72. package/dist/components/puck-block/hero-sections/media-text-hero/index.d.ts +26 -29
  73. package/dist/components/puck-block/hero-sections/mouse-track-hero/index.d.ts +1 -1
  74. package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.d.ts +25 -28
  75. package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.js +3 -2
  76. package/dist/components/puck-block/hero-sections/overlapping-image-hero/index.d.ts +1 -1
  77. package/dist/components/puck-block/hero-sections/parallax-images-hero/index.d.ts +1 -1
  78. package/dist/components/puck-block/hero-sections/scatter-parallax-hero/index.d.ts +1 -1
  79. package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.d.ts +1 -1
  80. package/dist/components/puck-block/hero-sections/scroll-zoom-hero/component.js +91 -44
  81. package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.d.ts +1 -1
  82. package/dist/components/puck-block/hero-sections/split-hero/index.d.ts +2 -2
  83. package/dist/components/puck-block/hero-sections/stacked-hero/index.d.ts +2 -2
  84. package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.d.ts +1 -1
  85. package/dist/components/puck-block/hero-sections/sticky-video-hero/index.d.ts +1 -1
  86. package/dist/components/puck-block/hero-sections/tab-hero/index.d.ts +28 -44
  87. package/dist/components/puck-block/hero-sections/tab-hero/index.js +7 -2
  88. package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.js +93 -43
  89. package/dist/components/puck-block/hero-sections/three-image-parallax-hero/index.d.ts +1 -1
  90. package/dist/components/puck-block/hero-sections/vertical-gallery-hero/component.js +27 -4
  91. package/dist/components/puck-block/hero-sections/vertical-gallery-hero/index.d.ts +1 -1
  92. package/dist/components/puck-block/hero-sections/zoom-grid-hero/index.d.ts +1 -1
  93. package/dist/components/puck-block/index.d.ts +2 -0
  94. package/dist/components/puck-block/location-sections/location-1/location.d.ts +1 -1
  95. package/dist/components/puck-block/location-sections/location-2/location.d.ts +1 -1
  96. package/dist/components/puck-block/location-sections/location-3/location.d.ts +2 -2
  97. package/dist/components/puck-block/location-sections/props.d.ts +1 -1
  98. package/dist/components/puck-block/metrics-sections/header-stats-row/index.d.ts +1 -1
  99. package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.d.ts +1 -1
  100. package/dist/components/puck-block/metrics-sections/split-stats/index.d.ts +1 -1
  101. package/dist/components/puck-block/metrics-sections/tab-stats/index.d.ts +0 -22
  102. package/dist/components/puck-block/metrics-sections/tab-stats/index.js +1 -1
  103. package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.js +36 -23
  104. package/dist/components/puck-block/pricing-sections/single-pricing-card/index.d.ts +0 -22
  105. package/dist/components/puck-block/pricing-sections/single-pricing-card/index.js +1 -1
  106. package/dist/components/puck-block/pricing-sections/split-pricing/index.d.ts +28 -22
  107. package/dist/components/puck-block/pricing-sections/split-pricing/index.js +8 -1
  108. package/dist/components/puck-block/registry.generated.d.ts +13141 -0
  109. package/dist/components/puck-block/registry.generated.js +558 -0
  110. package/dist/components/puck-block/showcase-sections/compact-timeline/index.d.ts +1 -1
  111. package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.d.ts +1 -1
  112. package/dist/components/puck-block/showcase-sections/single-column-timeline/index.d.ts +2 -2
  113. package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.d.ts +2 -2
  114. package/dist/components/puck-block/showcase-sections/tab-timeline/index.d.ts +1 -23
  115. package/dist/components/puck-block/showcase-sections/tab-timeline/index.js +1 -1
  116. package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.d.ts +2 -2
  117. package/dist/components/puck-block/team-sections/team-carousel/index.d.ts +1 -23
  118. package/dist/components/puck-block/team-sections/team-carousel/index.js +1 -2
  119. package/dist/components/puck-block/team-sections/team-grid/index.d.ts +1 -23
  120. package/dist/components/puck-block/team-sections/team-grid/index.js +1 -2
  121. package/dist/components/puck-block/team-sections/team-inline-card/index.d.ts +1 -23
  122. package/dist/components/puck-block/team-sections/team-inline-card/index.js +1 -2
  123. package/dist/components/puck-block/team-sections/team-two-column/index.d.ts +1 -1
  124. package/dist/components/puck-block/testimonial-sections/sticky-testimonial/index.d.ts +1 -1
  125. package/dist/components/puck-block/text-sections/aside-nav-content/index.d.ts +0 -22
  126. package/dist/components/puck-block/text-sections/aside-nav-content/index.js +1 -1
  127. package/dist/components/puck-block/text-sections/blog-article/index.d.ts +0 -22
  128. package/dist/components/puck-block/text-sections/blog-article/index.js +1 -1
  129. package/dist/components/puck-block/text-sections/prose-sidebar/index.d.ts +1 -23
  130. package/dist/components/puck-block/text-sections/text-header/index.d.ts +2 -2
  131. package/dist/components/puck-core/core/props/content.js +41 -1
  132. package/dist/components/puck-core/core/props/form.js +76 -0
  133. package/dist/components/puck-core/core/props/index.js +34 -0
  134. package/dist/components/puck-core/core/props/interactive.js +17 -0
  135. package/dist/components/puck-core/core/props/media.js +8 -4
  136. package/dist/components/puck-core/core/styles.d.ts +1 -1
  137. package/dist/components/{puck-base → puck-core}/core/styles.js +3 -1
  138. package/dist/components/{puck-base → puck-core}/core/with-editable.js +1 -1
  139. package/dist/components/puck-core/fields/action-field.js +1 -1
  140. package/dist/components/{puck-base → puck-core/fields}/image-upload-field.js +4 -4
  141. package/dist/components/{puck-base → puck-core}/fields/location-field.js +1 -1
  142. package/dist/components/puck-core/index.d.ts +1 -0
  143. package/dist/components/{puck-base → puck-core}/inline-editable.js +1 -1
  144. package/dist/index.js +121 -104
  145. package/package.json +1 -1
  146. package/dist/components/puck-base/core/fields.d.ts +0 -827
  147. package/dist/components/puck-base/core/fields.js +0 -267
  148. package/dist/components/puck-base/core/hooks.d.ts +0 -19
  149. package/dist/components/puck-base/core/icon-catalog.d.ts +0 -14
  150. package/dist/components/puck-base/core/icon-catalog.js +0 -193
  151. package/dist/components/puck-base/core/styles.d.ts +0 -1942
  152. package/dist/components/puck-base/core/types.d.ts +0 -20
  153. package/dist/components/puck-base/core/types.js +0 -26
  154. package/dist/components/puck-base/core/utils.d.ts +0 -5
  155. package/dist/components/puck-base/core/with-editable.d.ts +0 -16
  156. package/dist/components/puck-base/error-boundary.d.ts +0 -4
  157. package/dist/components/puck-base/fields/action-field.d.ts +0 -30
  158. package/dist/components/puck-base/fields/action-field.js +0 -265
  159. package/dist/components/puck-base/fields/auto-field.d.ts +0 -2
  160. package/dist/components/puck-base/fields/color-field.d.ts +0 -6
  161. package/dist/components/puck-base/fields/index.d.ts +0 -8
  162. package/dist/components/puck-base/fields/location-field.d.ts +0 -44
  163. package/dist/components/puck-base/fields/object-field.d.ts +0 -8
  164. package/dist/components/puck-base/fields/radio-toggle-field.d.ts +0 -10
  165. package/dist/components/puck-base/fields/types.d.ts +0 -29
  166. package/dist/components/puck-base/fields/virtualized-select-field.d.ts +0 -13
  167. package/dist/components/puck-base/icon-picker-field.d.ts +0 -8
  168. package/dist/components/puck-base/icon-picker-field.js +0 -153
  169. package/dist/components/puck-base/image-upload-field.d.ts +0 -7
  170. package/dist/components/puck-base/inline-editable.d.ts +0 -14
  171. package/dist/components/puck-base/use-upload.d.ts +0 -42
  172. /package/dist/components/{puck-base → puck-core}/core/hooks.js +0 -0
  173. /package/dist/components/{puck-base → puck-core}/core/utils.js +0 -0
  174. /package/dist/components/{puck-base → puck-core}/error-boundary.js +0 -0
  175. /package/dist/components/{puck-base → puck-core}/fields/auto-field.js +0 -0
  176. /package/dist/components/{puck-base → puck-core}/fields/color-field.js +0 -0
  177. /package/dist/components/{puck-base → puck-core}/fields/object-field.js +0 -0
  178. /package/dist/components/{puck-base → puck-core}/fields/radio-toggle-field.js +0 -0
  179. /package/dist/components/{puck-base → puck-core}/fields/virtualized-select-field.js +0 -0
  180. /package/dist/components/{puck-base → puck-core}/use-upload.js +0 -0
@@ -9,47 +9,51 @@ import { CgSpinner } from "../../../../node_modules/.pnpm/react-icons@5.6.0_reac
9
9
  import { cn } from "../../../../utils/css-utils.js";
10
10
  import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
11
11
  const TabFeature = (props) => {
12
- const { defaultTabValue, tabs = [], styles } = {
12
+ const {
13
+ defaultTabValue,
14
+ tabs = [],
15
+ styles
16
+ } = {
13
17
  ...TabFeatureDefaults,
14
18
  ...props
15
19
  };
16
- const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
20
+ const {
21
+ className: sectionClassName,
22
+ style: sectionStyle,
23
+ css
24
+ } = styles ?? {};
17
25
  const [isIframeLoaded, setIsIframeLoaded] = useState(false);
18
- return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsxs(
19
- Tabs,
26
+ return /* @__PURE__ */ jsx(
27
+ SectionWrapper,
20
28
  {
21
- defaultValue: defaultTabValue,
22
- className: "grid grid-cols-1 items-center gap-y-12 md:grid-cols-2 md:gap-x-12 lg:gap-x-20",
23
- children: [
24
- /* @__PURE__ */ jsx(TabsList, { className: "col-start-1 col-end-2 row-start-1 row-end-2 grid grid-cols-1 items-center gap-x-4 gap-y-10", children: tabs.map((tab) => /* @__PURE__ */ jsxs(
25
- TabsTrigger,
26
- {
27
- value: tab.value,
28
- className: "flex-col items-start justify-start whitespace-normal border-0 border-l-2 border-transparent py-0 pl-8 pr-0 text-left data-[state=active]:border-black data-[state=active]:bg-transparent data-[state=active]:text-text-primary",
29
- children: [
30
- /* @__PURE__ */ jsx("h3", { className: "mb-3 text-2xl font-bold md:mb-4 md:text-3xl md:leading-[1.3] lg:text-4xl", children: tab.heading }),
31
- /* @__PURE__ */ jsx("p", { children: tab.description })
32
- ]
33
- },
34
- tab.value
35
- )) }),
36
- /* @__PURE__ */ jsx("div", { className: "max-size-full flex items-center justify-center overflow-hidden", children: tabs.map((tab) => /* @__PURE__ */ jsxs(
37
- TabsContent,
38
- {
39
- value: tab.value,
40
- className: "data-[state=active]:animate-tabs",
41
- children: [
42
- tab.image && !tab.videoUrl && /* @__PURE__ */ jsx(
43
- CompoundImage,
44
- {
45
- src: tab.image.src,
46
- alt: tab.image.alt,
47
- className: "size-full object-cover"
48
- }
49
- ),
50
- tab.videoUrl && tab.image && /* @__PURE__ */ jsxs(Dialog, { children: [
51
- /* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxs("button", { className: "relative flex w-full items-center justify-center", children: [
52
- /* @__PURE__ */ jsx(
29
+ className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName),
30
+ style: sectionStyle,
31
+ css,
32
+ children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsxs(
33
+ Tabs,
34
+ {
35
+ defaultValue: defaultTabValue,
36
+ className: "grid grid-cols-1 items-center gap-y-12 md:grid-cols-2 md:gap-x-12 lg:gap-x-20",
37
+ children: [
38
+ /* @__PURE__ */ jsx(TabsList, { className: "col-start-1 col-end-2 row-start-1 row-end-2 h-full! w-full! grid grid-cols-1 items-center gap-x-4 gap-y-4", children: tabs.map((tab) => /* @__PURE__ */ jsxs(
39
+ TabsTrigger,
40
+ {
41
+ value: tab.value,
42
+ className: "flex-col items-start justify-start whitespace-normal border-0 border-l-2 border-transparent py-2 px-2 pr-0 text-left data-[state=active]:border-black data-[state=active]:bg-transparent data-[state=active]:text-text-primary",
43
+ children: [
44
+ /* @__PURE__ */ jsx("h3", { className: "mb-3 text-2xl font-bold md:mb-2 md:text-3xl md:leading-[1.3] lg:text-4xl", children: tab.heading }),
45
+ /* @__PURE__ */ jsx("p", { children: tab.description })
46
+ ]
47
+ },
48
+ tab.value
49
+ )) }),
50
+ /* @__PURE__ */ jsx("div", { className: "size-full flex items-center justify-center overflow-hidden", children: tabs.map((tab) => /* @__PURE__ */ jsxs(
51
+ TabsContent,
52
+ {
53
+ value: tab.value,
54
+ className: "data-[state=active]:animate-tabs",
55
+ children: [
56
+ tab.image && !tab.videoUrl && /* @__PURE__ */ jsx(
53
57
  CompoundImage,
54
58
  {
55
59
  src: tab.image.src,
@@ -57,33 +61,45 @@ const TabFeature = (props) => {
57
61
  className: "size-full object-cover"
58
62
  }
59
63
  ),
60
- /* @__PURE__ */ jsx(FaCirclePlay, { className: "absolute z-20 size-16 text-white" }),
61
- /* @__PURE__ */ jsx("span", { className: "absolute inset-0 z-10 bg-black/50" })
62
- ] }) }),
63
- /* @__PURE__ */ jsxs(DialogContent, { children: [
64
- !isIframeLoaded && /* @__PURE__ */ jsx(CgSpinner, { className: "mx-auto size-16 animate-spin text-white" }),
65
- /* @__PURE__ */ jsx(
66
- "iframe",
67
- {
68
- className: cn(
69
- "z-0 mx-auto aspect-video size-full md:w-[738px] lg:w-[940px]",
70
- { visible: isIframeLoaded, hidden: !isIframeLoaded }
64
+ tab.videoUrl && tab.image && /* @__PURE__ */ jsxs(Dialog, { children: [
65
+ /* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxs("button", { className: "relative flex w-full items-center justify-center", children: [
66
+ /* @__PURE__ */ jsx(
67
+ CompoundImage,
68
+ {
69
+ src: tab.image.src,
70
+ alt: tab.image.alt,
71
+ className: "size-full object-cover"
72
+ }
71
73
  ),
72
- src: tab.videoUrl,
73
- allow: "autoplay; encrypted-media; picture-in-picture",
74
- allowFullScreen: true,
75
- onLoad: () => setIsIframeLoaded(true)
76
- }
77
- )
78
- ] })
79
- ] })
80
- ]
81
- },
82
- tab.value
83
- )) })
84
- ]
74
+ /* @__PURE__ */ jsx(FaCirclePlay, { className: "absolute z-20 size-16 text-white" }),
75
+ /* @__PURE__ */ jsx("span", { className: "absolute inset-0 z-10 bg-black/50" })
76
+ ] }) }),
77
+ /* @__PURE__ */ jsxs(DialogContent, { children: [
78
+ !isIframeLoaded && /* @__PURE__ */ jsx(CgSpinner, { className: "mx-auto size-16 animate-spin text-white" }),
79
+ /* @__PURE__ */ jsx(
80
+ "iframe",
81
+ {
82
+ className: cn(
83
+ "z-0 mx-auto aspect-video size-full md:w-[738px] lg:w-[940px]",
84
+ { visible: isIframeLoaded, hidden: !isIframeLoaded }
85
+ ),
86
+ src: tab.videoUrl,
87
+ allow: "autoplay; encrypted-media; picture-in-picture",
88
+ allowFullScreen: true,
89
+ onLoad: () => setIsIframeLoaded(true)
90
+ }
91
+ )
92
+ ] })
93
+ ] })
94
+ ]
95
+ },
96
+ tab.value
97
+ )) })
98
+ ]
99
+ }
100
+ ) })
85
101
  }
86
- ) }) });
102
+ );
87
103
  };
88
104
  const TabFeatureDefaults = {
89
105
  defaultTabValue: "tab-1",
@@ -28,7 +28,7 @@ declare const conf: {
28
28
  readonly action: {
29
29
  type: "custom";
30
30
  label: string;
31
- render: typeof import("../../../puck-core").ActionField;
31
+ render: typeof import("../../..").ActionField;
32
32
  };
33
33
  readonly variant: {
34
34
  readonly type: "select";
@@ -28,7 +28,7 @@ declare const conf: {
28
28
  readonly action: {
29
29
  type: "custom";
30
30
  label: string;
31
- render: typeof import("../../../puck-core").ActionField;
31
+ render: typeof import("../../..").ActionField;
32
32
  };
33
33
  readonly variant: {
34
34
  readonly type: "select";
@@ -25,7 +25,7 @@ declare const conf: {
25
25
  readonly action: {
26
26
  type: "custom";
27
27
  label: string;
28
- render: typeof import("../../../puck-core").ActionField;
28
+ render: typeof import("../../..").ActionField;
29
29
  };
30
30
  readonly variant: {
31
31
  readonly type: "select";
@@ -34,7 +34,7 @@ declare const conf: {
34
34
  readonly action: {
35
35
  type: "custom";
36
36
  label: string;
37
- render: typeof import("../../../puck-core").ActionField;
37
+ render: typeof import("../../..").ActionField;
38
38
  };
39
39
  readonly variant: {
40
40
  readonly type: "select";
@@ -32,7 +32,7 @@ declare const conf: {
32
32
  readonly action: {
33
33
  type: "custom";
34
34
  label: string;
35
- render: typeof import("../../../puck-core").ActionField;
35
+ render: typeof import("../../..").ActionField;
36
36
  };
37
37
  readonly variant: {
38
38
  readonly type: "select";
@@ -29,7 +29,7 @@ declare const conf: {
29
29
  readonly action: {
30
30
  type: "custom";
31
31
  label: string;
32
- render: typeof import("../../../puck-core").ActionField;
32
+ render: typeof import("../../..").ActionField;
33
33
  };
34
34
  readonly variant: {
35
35
  readonly type: "select";
@@ -32,7 +32,7 @@ declare const conf: {
32
32
  readonly action: {
33
33
  type: "custom";
34
34
  label: string;
35
- render: typeof import("../../../puck-core").ActionField;
35
+ render: typeof import("../../..").ActionField;
36
36
  };
37
37
  readonly variant: {
38
38
  readonly type: "select";
@@ -35,7 +35,7 @@ declare const conf: {
35
35
  readonly action: {
36
36
  type: "custom";
37
37
  label: string;
38
- render: typeof import("../../../puck-core").ActionField;
38
+ render: typeof import("../../..").ActionField;
39
39
  };
40
40
  readonly variant: {
41
41
  readonly type: "select";
@@ -87,38 +87,35 @@ declare const conf: {
87
87
  type: string;
88
88
  label: string;
89
89
  objectFields: {
90
+ className: {
91
+ readonly type: "text";
92
+ readonly label: "Class Name";
93
+ readonly ai: {
94
+ readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
95
+ };
96
+ };
97
+ style: {
98
+ readonly type: "object";
99
+ readonly label: "Style";
100
+ readonly objectFields: {};
101
+ readonly ai: {
102
+ readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
103
+ };
104
+ };
105
+ css: {
106
+ readonly type: "textarea";
107
+ readonly label: "Custom CSS";
108
+ readonly ai: {
109
+ readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
110
+ };
111
+ };
90
112
  animation: {
91
113
  type: "radio";
92
114
  label: string;
93
- options: ({
94
- className: {
95
- readonly type: "text";
96
- readonly label: "Class Name";
97
- readonly ai: {
98
- readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
99
- };
100
- };
101
- style: {
102
- readonly type: "object";
103
- readonly label: "Style";
104
- readonly objectFields: {};
105
- readonly ai: {
106
- readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
107
- };
108
- };
109
- css: {
110
- readonly type: "textarea";
111
- readonly label: "Custom CSS";
112
- readonly ai: {
113
- readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
114
- };
115
- };
116
- label: string;
117
- value: string;
118
- } | {
115
+ options: {
119
116
  label: string;
120
117
  value: string;
121
- })[];
118
+ }[];
122
119
  };
123
120
  };
124
121
  };
@@ -23,10 +23,11 @@ const conf = {
23
23
  type: "radio",
24
24
  label: "Animation",
25
25
  options: [
26
- { label: "Sticky Stack", value: "sticky-stack", ...sectionWrapperFields },
26
+ { label: "Sticky Stack", value: "sticky-stack" },
27
27
  { label: "Scroll Fade", value: "scroll-fade" }
28
28
  ]
29
- }
29
+ },
30
+ ...sectionWrapperFields
30
31
  }
31
32
  }
32
33
  },
@@ -24,7 +24,7 @@ declare const conf: {
24
24
  readonly action: {
25
25
  type: "custom";
26
26
  label: string;
27
- render: typeof import("../../../puck-core").ActionField;
27
+ render: typeof import("../../..").ActionField;
28
28
  };
29
29
  readonly variant: {
30
30
  readonly type: "select";
@@ -104,7 +104,7 @@ declare const conf: {
104
104
  readonly action: {
105
105
  type: "custom";
106
106
  label: string;
107
- render: typeof import("../../../puck-core").ActionField;
107
+ render: typeof import("../../..").ActionField;
108
108
  };
109
109
  readonly variant: {
110
110
  readonly type: "select";
@@ -24,7 +24,7 @@ declare const conf: {
24
24
  readonly action: {
25
25
  type: "custom";
26
26
  label: string;
27
- render: typeof import("../../../puck-core").ActionField;
27
+ render: typeof import("../../..").ActionField;
28
28
  };
29
29
  readonly variant: {
30
30
  readonly type: "select";
@@ -104,7 +104,7 @@ declare const conf: {
104
104
  readonly action: {
105
105
  type: "custom";
106
106
  label: string;
107
- render: typeof import("../../../puck-core").ActionField;
107
+ render: typeof import("../../..").ActionField;
108
108
  };
109
109
  readonly variant: {
110
110
  readonly type: "select";
@@ -10,81 +10,84 @@ const PortfolioDivider = (props) => {
10
10
  ...props
11
11
  };
12
12
  const { className: sectionClassName, style: sectionStyle, css, mediaPosition = "right" } = styles ?? {};
13
- const isMediaLeft = mediaPosition === "left";
13
+ const startsLeft = mediaPosition === "left";
14
14
  return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
15
15
  /* @__PURE__ */ jsxs("header", { className: "mb-12 max-w-lg md:mb-18 lg:mb-20", children: [
16
16
  /* @__PURE__ */ jsx("p", { className: "mb-3 font-semibold md:mb-4", children: tagline }),
17
17
  /* @__PURE__ */ jsx("h2", { className: "mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
18
18
  /* @__PURE__ */ jsx("p", { className: "md:text-md", children: description })
19
19
  ] }),
20
- /* @__PURE__ */ jsx("div", { children: projects.map((project, index) => /* @__PURE__ */ jsx(
21
- "article",
22
- {
23
- className: "grid grid-cols-1 items-center gap-x-12 gap-y-6 border-t border-border-primary py-8 md:grid-cols-2 md:gap-y-0 lg:gap-x-[4.9rem] lg:py-12",
24
- children: isMediaLeft ? /* @__PURE__ */ jsxs(Fragment, { children: [
25
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("a", { href: project.url, className: "flex aspect-[4/3] w-full", children: /* @__PURE__ */ jsx(
26
- CompoundImage,
27
- {
28
- src: project.image.src,
29
- className: "w-full object-cover",
30
- alt: project.image.alt
31
- }
32
- ) }) }),
33
- /* @__PURE__ */ jsxs("div", { children: [
34
- /* @__PURE__ */ jsx("h3", { className: "mb-2 text-2xl font-bold md:text-3xl md:leading-[1.3] lg:text-4xl", children: /* @__PURE__ */ jsx("a", { href: project.url, children: project.title }) }),
35
- /* @__PURE__ */ jsx("p", { children: project.description }),
36
- project.tags && /* @__PURE__ */ jsx("ul", { className: "mt-3 flex flex-wrap gap-2 md:mt-4", children: project.tags.map((tag, tagIndex) => /* @__PURE__ */ jsx("li", { className: "flex", children: /* @__PURE__ */ jsx(
37
- "a",
20
+ /* @__PURE__ */ jsx("div", { children: projects.map((project, index) => {
21
+ const isMediaLeft = startsLeft ? index % 2 === 0 : index % 2 !== 0;
22
+ return /* @__PURE__ */ jsx(
23
+ "article",
24
+ {
25
+ className: "grid grid-cols-1 items-center gap-x-12 gap-y-6 border-t border-border-primary py-8 md:grid-cols-2 md:gap-y-0 lg:gap-x-[4.9rem] lg:py-12",
26
+ children: isMediaLeft ? /* @__PURE__ */ jsxs(Fragment, { children: [
27
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("a", { href: project.url, className: "flex aspect-[4/3] w-full", children: /* @__PURE__ */ jsx(
28
+ CompoundImage,
38
29
  {
39
- href: tag.url,
40
- className: "bg-background-secondary px-2 py-1 text-sm font-semibold",
41
- children: tag.label
30
+ src: project.image.src,
31
+ className: "w-full object-cover",
32
+ alt: project.image.alt
42
33
  }
43
- ) }, tagIndex)) }),
44
- /* @__PURE__ */ jsx(
45
- Button,
34
+ ) }) }),
35
+ /* @__PURE__ */ jsxs("div", { children: [
36
+ /* @__PURE__ */ jsx("h3", { className: "mb-2 text-2xl font-bold md:text-3xl md:leading-[1.3] lg:text-4xl", children: /* @__PURE__ */ jsx("a", { href: project.url, children: project.title }) }),
37
+ /* @__PURE__ */ jsx("p", { children: project.description }),
38
+ project.tags && /* @__PURE__ */ jsx("ul", { className: "mt-3 flex flex-wrap gap-2 md:mt-4", children: project.tags.map((tag, tagIndex) => /* @__PURE__ */ jsx("li", { className: "flex", children: /* @__PURE__ */ jsx(
39
+ "a",
40
+ {
41
+ href: tag.url,
42
+ className: "bg-background-secondary px-2 py-1 text-sm font-semibold",
43
+ children: tag.label
44
+ }
45
+ ) }, tagIndex)) }),
46
+ /* @__PURE__ */ jsx(
47
+ Button,
48
+ {
49
+ variant: project.button.variant,
50
+ size: project.button.size,
51
+ className: "mt-6 md:mt-8",
52
+ children: project.button.label
53
+ }
54
+ )
55
+ ] })
56
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
57
+ /* @__PURE__ */ jsxs("div", { children: [
58
+ /* @__PURE__ */ jsx("h3", { className: "mb-2 text-2xl font-bold md:text-3xl md:leading-[1.3] lg:text-4xl", children: /* @__PURE__ */ jsx("a", { href: project.url, children: project.title }) }),
59
+ /* @__PURE__ */ jsx("p", { children: project.description }),
60
+ project.tags && /* @__PURE__ */ jsx("ul", { className: "mt-3 flex flex-wrap gap-2 md:mt-4", children: project.tags.map((tag, tagIndex) => /* @__PURE__ */ jsx("li", { className: "flex", children: /* @__PURE__ */ jsx(
61
+ "a",
62
+ {
63
+ href: tag.url,
64
+ className: "bg-background-secondary px-2 py-1 text-sm font-semibold",
65
+ children: tag.label
66
+ }
67
+ ) }, tagIndex)) }),
68
+ /* @__PURE__ */ jsx(
69
+ Button,
70
+ {
71
+ variant: project.button.variant,
72
+ size: project.button.size,
73
+ className: "mt-6 md:mt-8",
74
+ children: project.button.label
75
+ }
76
+ )
77
+ ] }),
78
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("a", { href: project.url, className: "flex aspect-[4/3] w-full", children: /* @__PURE__ */ jsx(
79
+ CompoundImage,
46
80
  {
47
- variant: project.button.variant,
48
- size: project.button.size,
49
- className: "mt-6 md:mt-8",
50
- children: project.button.label
81
+ src: project.image.src,
82
+ className: "w-full object-cover",
83
+ alt: project.image.alt
51
84
  }
52
- )
85
+ ) }) })
53
86
  ] })
54
- ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
55
- /* @__PURE__ */ jsxs("div", { children: [
56
- /* @__PURE__ */ jsx("h3", { className: "mb-2 text-2xl font-bold md:text-3xl md:leading-[1.3] lg:text-4xl", children: /* @__PURE__ */ jsx("a", { href: project.url, children: project.title }) }),
57
- /* @__PURE__ */ jsx("p", { children: project.description }),
58
- project.tags && /* @__PURE__ */ jsx("ul", { className: "mt-3 flex flex-wrap gap-2 md:mt-4", children: project.tags.map((tag, tagIndex) => /* @__PURE__ */ jsx("li", { className: "flex", children: /* @__PURE__ */ jsx(
59
- "a",
60
- {
61
- href: tag.url,
62
- className: "bg-background-secondary px-2 py-1 text-sm font-semibold",
63
- children: tag.label
64
- }
65
- ) }, tagIndex)) }),
66
- /* @__PURE__ */ jsx(
67
- Button,
68
- {
69
- variant: project.button.variant,
70
- size: project.button.size,
71
- className: "mt-6 md:mt-8",
72
- children: project.button.label
73
- }
74
- )
75
- ] }),
76
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("a", { href: project.url, className: "flex aspect-[4/3] w-full", children: /* @__PURE__ */ jsx(
77
- CompoundImage,
78
- {
79
- src: project.image.src,
80
- className: "w-full object-cover",
81
- alt: project.image.alt
82
- }
83
- ) }) })
84
- ] })
85
- },
86
- index
87
- )) }),
87
+ },
88
+ index
89
+ );
90
+ }) }),
88
91
  /* @__PURE__ */ jsx("footer", { className: "mt-12 flex justify-center md:mt-18 lg:mt-20", children: /* @__PURE__ */ jsx(CompoundButton, { label: button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon }) })
89
92
  ] }) });
90
93
  };
@@ -59,38 +59,35 @@ declare const conf: {
59
59
  type: string;
60
60
  label: string;
61
61
  objectFields: {
62
+ className: {
63
+ readonly type: "text";
64
+ readonly label: "Class Name";
65
+ readonly ai: {
66
+ readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
67
+ };
68
+ };
69
+ style: {
70
+ readonly type: "object";
71
+ readonly label: "Style";
72
+ readonly objectFields: {};
73
+ readonly ai: {
74
+ readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
75
+ };
76
+ };
77
+ css: {
78
+ readonly type: "textarea";
79
+ readonly label: "Custom CSS";
80
+ readonly ai: {
81
+ readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
82
+ };
83
+ };
62
84
  animation: {
63
85
  type: "radio";
64
86
  label: string;
65
- options: ({
66
- className: {
67
- readonly type: "text";
68
- readonly label: "Class Name";
69
- readonly ai: {
70
- readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
71
- };
72
- };
73
- style: {
74
- readonly type: "object";
75
- readonly label: "Style";
76
- readonly objectFields: {};
77
- readonly ai: {
78
- readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
79
- };
80
- };
81
- css: {
82
- readonly type: "textarea";
83
- readonly label: "Custom CSS";
84
- readonly ai: {
85
- readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
86
- };
87
- };
88
- label: string;
89
- value: string;
90
- } | {
87
+ options: {
91
88
  label: string;
92
89
  value: string;
93
- })[];
90
+ }[];
94
91
  };
95
92
  };
96
93
  };
@@ -24,10 +24,11 @@ const conf = {
24
24
  type: "radio",
25
25
  label: "Animation",
26
26
  options: [
27
- { label: "Three Image Parallax", value: "threeImageParallax", ...sectionWrapperFields },
27
+ { label: "Three Image Parallax", value: "threeImageParallax" },
28
28
  { label: "Scale Opacity", value: "scaleOpacity" }
29
29
  ]
30
- }
30
+ },
31
+ ...sectionWrapperFields
31
32
  }
32
33
  }
33
34
  },
@@ -41,7 +41,7 @@ declare const conf: {
41
41
  readonly action: {
42
42
  type: "custom";
43
43
  label: string;
44
- render: typeof import("../../../puck-core").ActionField;
44
+ render: typeof import("../../..").ActionField;
45
45
  };
46
46
  readonly variant: {
47
47
  readonly type: "select";