dune-react 0.0.21 → 0.0.23

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 (249) 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/css-marquee-banner/css-marquee-banner.js +13 -13
  10. package/dist/components/puck-block/banner-sections/dismissible-banner/index.d.ts +3 -25
  11. package/dist/components/puck-block/banner-sections/dual-row-marquee/dual-row-marquee.js +8 -8
  12. package/dist/components/puck-block/banner-sections/scroll-driven-marquee/scroll-driven-marquee.js +8 -6
  13. package/dist/components/puck-block/banner-sections/scroll-parallax-text/scroll-parallax-text.js +3 -1
  14. package/dist/components/puck-block/contact-sections/centered-form/index.d.ts +1 -1
  15. package/dist/components/puck-block/contact-sections/contact-cards-grid/contact-cards-grid.js +1 -1
  16. package/dist/components/puck-block/contact-sections/contact-modal/contact-modal.js +1 -1
  17. package/dist/components/puck-block/contact-sections/contact-modal/index.d.ts +1 -1
  18. package/dist/components/puck-block/contact-sections/form-with-media/form-with-media.js +1 -1
  19. package/dist/components/puck-block/contact-sections/form-with-media/index.d.ts +1 -1
  20. package/dist/components/puck-block/contact-sections/header-form-cards/header-form-cards.js +1 -1
  21. package/dist/components/puck-block/contact-sections/header-form-cards/index.d.ts +1 -1
  22. package/dist/components/puck-block/contact-sections/header-info-fullwidth/header-info-fullwidth.js +2 -2
  23. package/dist/components/puck-block/contact-sections/info-cards-media/info-cards-media.js +2 -2
  24. package/dist/components/puck-block/contact-sections/location-cards-grid/index.d.ts +1 -1
  25. package/dist/components/puck-block/contact-sections/split-info-form/index.d.ts +1 -1
  26. package/dist/components/puck-block/contact-sections/split-info-form/split-info-form.js +1 -1
  27. package/dist/components/puck-block/cta-sections/feature-card-cta/index.d.ts +1 -1
  28. package/dist/components/puck-block/cta-sections/index.d.ts +2 -0
  29. package/dist/components/puck-block/cta-sections/mouse-track-cta/index.d.ts +1 -1
  30. package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.js +92 -63
  31. package/dist/components/puck-block/cta-sections/props.js +46 -0
  32. package/dist/components/puck-block/cta-sections/side-media-cta/index.d.ts +1 -73
  33. package/dist/components/puck-block/cta-sections/side-media-cta/index.js +35 -0
  34. package/dist/components/puck-block/cta-sections/side-media-cta/side-media-cta.js +84 -0
  35. package/dist/components/puck-block/cta-sections/text-block-cta/index.d.ts +2 -74
  36. package/dist/components/puck-block/cta-sections/text-block-cta/index.js +38 -0
  37. package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.d.ts +1 -1
  38. package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.js +165 -0
  39. package/dist/components/puck-block/faq-sections/dual-column-accordion-faq/index.d.ts +1 -1
  40. package/dist/components/puck-block/faq-sections/icon-card-faq/index.d.ts +1 -1
  41. package/dist/components/puck-block/faq-sections/stacked-accordion-faq/index.d.ts +1 -1
  42. package/dist/components/puck-block/faq-sections/stacked-static-faq/index.d.ts +1 -1
  43. package/dist/components/puck-block/faq-sections/two-column-accordion-faq/index.d.ts +1 -1
  44. package/dist/components/puck-block/faq-sections/two-column-static-faq/index.d.ts +1 -1
  45. package/dist/components/puck-block/feature-sections/feature-cards-grid/component.js +1 -1
  46. package/dist/components/puck-block/feature-sections/feature-cards-grid/index.d.ts +2 -2
  47. package/dist/components/puck-block/feature-sections/feature-list-split/component.js +1 -1
  48. package/dist/components/puck-block/feature-sections/feature-list-split/index.d.ts +2 -2
  49. package/dist/components/puck-block/feature-sections/tab-feature/component.js +80 -64
  50. package/dist/components/puck-block/feature-sections/text-media-split/component.js +1 -1
  51. package/dist/components/puck-block/feature-sections/text-media-split/index.d.ts +1 -1
  52. package/dist/components/puck-block/feature-sections/text-only-section/index.d.ts +1 -1
  53. package/dist/components/puck-block/footer-sections/centered-minimal-footer/centered-minimal-footer.js +72 -18
  54. package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.d.ts +79 -0
  55. package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.js +43 -1
  56. package/dist/components/puck-block/footer-sections/compact-newsletter-footer/index.d.ts +42 -1
  57. package/dist/components/puck-block/footer-sections/contact-links-footer/contact-links-footer.js +4 -3
  58. package/dist/components/puck-block/footer-sections/contact-links-footer/index.d.ts +86 -0
  59. package/dist/components/puck-block/footer-sections/contact-links-footer/index.js +1 -1
  60. package/dist/components/puck-block/footer-sections/cta-links-footer/cta-links-footer.js +3 -2
  61. package/dist/components/puck-block/footer-sections/cta-links-footer/index.d.ts +38 -1
  62. package/dist/components/puck-block/footer-sections/cta-links-footer/index.js +1 -1
  63. package/dist/components/puck-block/footer-sections/links-newsletter-footer/index.d.ts +55 -1
  64. package/dist/components/puck-block/footer-sections/newsletter-links-footer/index.d.ts +42 -1
  65. package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/index.d.ts +55 -1
  66. package/dist/components/puck-block/footer-sections/props.d.ts +3 -0
  67. package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/fullscreen-portfolio.js +1 -1
  68. package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.d.ts +25 -28
  69. package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.js +3 -2
  70. package/dist/components/puck-block/gallery-sections/interactive-portfolio/interactive-portfolio.js +1 -1
  71. package/dist/components/puck-block/gallery-sections/portfolio-cards/index.d.ts +2 -2
  72. package/dist/components/puck-block/gallery-sections/portfolio-cards/portfolio-cards.js +1 -1
  73. package/dist/components/puck-block/gallery-sections/portfolio-divider/index.d.ts +2 -2
  74. package/dist/components/puck-block/gallery-sections/portfolio-divider/portfolio-divider.js +68 -65
  75. package/dist/components/puck-block/gallery-sections/props.d.ts +11 -1
  76. package/dist/components/puck-block/gallery-sections/props.js +7 -2
  77. package/dist/components/puck-block/gallery-sections/scroll-parallax/scroll-parallax.js +18 -0
  78. package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.d.ts +24 -27
  79. package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.js +3 -2
  80. package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/scroll-parallax-portfolio.js +25 -22
  81. package/dist/components/puck-block/gallery-sections/split-carousel/index.d.ts +11 -1
  82. package/dist/components/puck-block/header-sections/centered-navbar/centered-navbar.js +3 -2
  83. package/dist/components/puck-block/header-sections/centered-navbar/index.d.ts +1 -1
  84. package/dist/components/puck-block/header-sections/drawer-navbar/drawer-navbar.js +119 -17
  85. package/dist/components/puck-block/header-sections/drawer-navbar/index.d.ts +1 -1
  86. package/dist/components/puck-block/header-sections/floating-bordered-navbar/floating-bordered-navbar.js +162 -22
  87. package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.d.ts +1 -1
  88. package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/fullscreen-overlay-navbar.js +143 -19
  89. package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.d.ts +1 -1
  90. package/dist/components/puck-block/header-sections/mega-menu-navbar/index.d.ts +1 -1
  91. package/dist/components/puck-block/header-sections/mega-menu-navbar/mega-menu-navbar.js +3 -2
  92. package/dist/components/puck-block/header-sections/props.d.ts +3 -0
  93. package/dist/components/puck-block/header-sections/standard-navbar/index.d.ts +1 -1
  94. package/dist/components/puck-block/header-sections/standard-navbar/standard-navbar.js +3 -2
  95. package/dist/components/puck-block/hero-sections/carousel-hero/component.js +50 -9
  96. package/dist/components/puck-block/hero-sections/carousel-hero/index.d.ts +1 -1
  97. package/dist/components/puck-block/hero-sections/centered-hero/index.d.ts +2 -2
  98. package/dist/components/puck-block/hero-sections/column-scroll-hero/component.js +8 -8
  99. package/dist/components/puck-block/hero-sections/column-scroll-hero/index.d.ts +1 -1
  100. package/dist/components/puck-block/hero-sections/dual-marquee-hero/component.js +6 -6
  101. package/dist/components/puck-block/hero-sections/dual-marquee-hero/index.d.ts +1 -1
  102. package/dist/components/puck-block/hero-sections/fullscreen-hero/index.d.ts +2 -2
  103. package/dist/components/puck-block/hero-sections/fullscreen-video-hero/component.js +5 -3
  104. package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.d.ts +1 -1
  105. package/dist/components/puck-block/hero-sections/grid-expand-hero/component.js +26 -17
  106. package/dist/components/puck-block/hero-sections/grid-expand-hero/index.d.ts +1 -1
  107. package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/component.js +3 -3
  108. package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/index.d.ts +1 -1
  109. package/dist/components/puck-block/hero-sections/inline-image-hero/index.d.ts +1 -1
  110. package/dist/components/puck-block/hero-sections/media-text-hero/index.d.ts +26 -29
  111. package/dist/components/puck-block/hero-sections/mouse-track-hero/component.js +60 -19
  112. package/dist/components/puck-block/hero-sections/mouse-track-hero/index.d.ts +1 -1
  113. package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.d.ts +25 -28
  114. package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.js +3 -2
  115. package/dist/components/puck-block/hero-sections/multi-image-grid-hero/multi-image-grid-hero.js +2 -2
  116. package/dist/components/puck-block/hero-sections/overlapping-image-hero/index.d.ts +1 -1
  117. package/dist/components/puck-block/hero-sections/overlapping-image-hero/overlapping-image-hero.js +3 -3
  118. package/dist/components/puck-block/hero-sections/parallax-images-hero/component.js +18 -6
  119. package/dist/components/puck-block/hero-sections/parallax-images-hero/index.d.ts +1 -1
  120. package/dist/components/puck-block/hero-sections/scatter-parallax-hero/component.js +9 -7
  121. package/dist/components/puck-block/hero-sections/scatter-parallax-hero/index.d.ts +1 -1
  122. package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/component.js +7 -5
  123. package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.d.ts +1 -1
  124. package/dist/components/puck-block/hero-sections/scroll-zoom-hero/component.js +93 -44
  125. package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.d.ts +1 -1
  126. package/dist/components/puck-block/hero-sections/split-hero/index.d.ts +2 -2
  127. package/dist/components/puck-block/hero-sections/stacked-hero/index.d.ts +2 -2
  128. package/dist/components/puck-block/hero-sections/sticky-expand-hero/component.js +1 -1
  129. package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.d.ts +14 -6
  130. package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.js +2 -2
  131. package/dist/components/puck-block/hero-sections/sticky-video-hero/component.js +2 -2
  132. package/dist/components/puck-block/hero-sections/sticky-video-hero/index.d.ts +1 -1
  133. package/dist/components/puck-block/hero-sections/tab-hero/component.js +4 -4
  134. package/dist/components/puck-block/hero-sections/tab-hero/index.d.ts +28 -44
  135. package/dist/components/puck-block/hero-sections/tab-hero/index.js +7 -2
  136. package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.js +96 -46
  137. package/dist/components/puck-block/hero-sections/three-image-parallax-hero/index.d.ts +1 -1
  138. package/dist/components/puck-block/hero-sections/vertical-gallery-hero/component.js +33 -10
  139. package/dist/components/puck-block/hero-sections/vertical-gallery-hero/index.d.ts +1 -1
  140. package/dist/components/puck-block/hero-sections/zoom-grid-hero/component.js +14 -12
  141. package/dist/components/puck-block/hero-sections/zoom-grid-hero/index.d.ts +1 -1
  142. package/dist/components/puck-block/index.d.ts +2 -0
  143. package/dist/components/puck-block/location-sections/location-1/location.d.ts +1 -1
  144. package/dist/components/puck-block/location-sections/location-2/location.d.ts +1 -1
  145. package/dist/components/puck-block/location-sections/location-3/location.d.ts +2 -2
  146. package/dist/components/puck-block/location-sections/props.d.ts +1 -1
  147. package/dist/components/puck-block/metrics-sections/center-media-stats/center-media-stats.js +1 -1
  148. package/dist/components/puck-block/metrics-sections/header-stats-row/header-stats-row.js +1 -1
  149. package/dist/components/puck-block/metrics-sections/header-stats-row/index.d.ts +1 -1
  150. package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.d.ts +1 -1
  151. package/dist/components/puck-block/metrics-sections/mixed-grid-stats/mixed-grid-stats.js +2 -2
  152. package/dist/components/puck-block/metrics-sections/split-stats/index.d.ts +1 -1
  153. package/dist/components/puck-block/metrics-sections/split-stats/split-stats.js +1 -1
  154. package/dist/components/puck-block/metrics-sections/tab-stats/index.d.ts +0 -22
  155. package/dist/components/puck-block/metrics-sections/tab-stats/index.js +1 -1
  156. package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.js +39 -26
  157. package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.d.ts +47 -0
  158. package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.js +34 -0
  159. package/dist/components/puck-block/pricing-sections/single-pricing-card/index.d.ts +0 -22
  160. package/dist/components/puck-block/pricing-sections/single-pricing-card/index.js +1 -1
  161. package/dist/components/puck-block/pricing-sections/split-pricing/component.js +3 -3
  162. package/dist/components/puck-block/pricing-sections/split-pricing/index.d.ts +28 -22
  163. package/dist/components/puck-block/pricing-sections/split-pricing/index.js +8 -1
  164. package/dist/components/puck-block/registry.generated.d.ts +13408 -0
  165. package/dist/components/puck-block/registry.generated.js +558 -0
  166. package/dist/components/puck-block/showcase-sections/compact-timeline/index.d.ts +1 -1
  167. package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.d.ts +1 -1
  168. package/dist/components/puck-block/showcase-sections/single-column-timeline/index.d.ts +2 -2
  169. package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.d.ts +2 -2
  170. package/dist/components/puck-block/showcase-sections/tab-timeline/component.js +1 -1
  171. package/dist/components/puck-block/showcase-sections/tab-timeline/index.d.ts +1 -23
  172. package/dist/components/puck-block/showcase-sections/tab-timeline/index.js +1 -1
  173. package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.d.ts +2 -2
  174. package/dist/components/puck-block/team-sections/team-carousel/index.d.ts +1 -23
  175. package/dist/components/puck-block/team-sections/team-carousel/index.js +1 -2
  176. package/dist/components/puck-block/team-sections/team-grid/index.d.ts +1 -23
  177. package/dist/components/puck-block/team-sections/team-grid/index.js +1 -2
  178. package/dist/components/puck-block/team-sections/team-inline-card/index.d.ts +1 -23
  179. package/dist/components/puck-block/team-sections/team-inline-card/index.js +1 -2
  180. package/dist/components/puck-block/team-sections/team-two-column/index.d.ts +1 -1
  181. package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.js +2 -2
  182. package/dist/components/puck-block/testimonial-sections/sticky-testimonial/index.d.ts +1 -1
  183. package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.js +2 -2
  184. package/dist/components/puck-block/text-sections/aside-nav-content/index.d.ts +0 -22
  185. package/dist/components/puck-block/text-sections/aside-nav-content/index.js +1 -1
  186. package/dist/components/puck-block/text-sections/blog-article/index.d.ts +0 -22
  187. package/dist/components/puck-block/text-sections/blog-article/index.js +1 -1
  188. package/dist/components/puck-block/text-sections/prose-content/component.js +1 -1
  189. package/dist/components/puck-block/text-sections/prose-sidebar/index.d.ts +1 -23
  190. package/dist/components/puck-block/text-sections/side-media-content/component.js +1 -1
  191. package/dist/components/puck-block/text-sections/sticky-text-multi-image/component.js +3 -3
  192. package/dist/components/puck-block/text-sections/text-header/index.d.ts +2 -2
  193. package/dist/components/puck-core/core/props/content.js +41 -1
  194. package/dist/components/puck-core/core/props/form.js +76 -0
  195. package/dist/components/puck-core/core/props/index.js +34 -0
  196. package/dist/components/puck-core/core/props/interactive.js +17 -0
  197. package/dist/components/puck-core/core/props/media.js +14 -5
  198. package/dist/components/puck-core/core/styles.d.ts +1 -1
  199. package/dist/components/{puck-base → puck-core}/core/styles.js +3 -1
  200. package/dist/components/{puck-base → puck-core}/core/with-editable.js +1 -1
  201. package/dist/components/puck-core/fields/action-field.js +1 -1
  202. package/dist/components/puck-core/fields/array-field.d.ts +7 -0
  203. package/dist/components/puck-core/fields/array-field.js +229 -0
  204. package/dist/components/{puck-base → puck-core}/fields/auto-field.js +11 -0
  205. package/dist/components/{puck-base → puck-core/fields}/image-upload-field.js +5 -5
  206. package/dist/components/puck-core/fields/index.d.ts +1 -0
  207. package/dist/components/{puck-base → puck-core}/fields/location-field.js +1 -1
  208. package/dist/components/{puck-base → puck-core}/fields/object-field.js +1 -1
  209. package/dist/components/puck-core/index.d.ts +1 -0
  210. package/dist/components/{puck-base → puck-core}/inline-editable.js +1 -1
  211. package/dist/index.js +121 -104
  212. package/dist/node_modules/.pnpm/@dnd-kit_accessibility@3.1.1_react@19.2.4/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +59 -0
  213. package/dist/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@dnd-kit/core/dist/core.esm.js +3093 -0
  214. package/dist/node_modules/.pnpm/@dnd-kit_sortable@10.0.0_@dnd-kit_core@6.3.1_react-dom@19.2.4_react@19.2.4__react@19.2.4__react@19.2.4/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +592 -0
  215. package/dist/node_modules/.pnpm/@dnd-kit_utilities@3.2.2_react@19.2.4/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +301 -0
  216. package/package.json +4 -1
  217. package/dist/components/puck-base/core/fields.d.ts +0 -827
  218. package/dist/components/puck-base/core/fields.js +0 -267
  219. package/dist/components/puck-base/core/hooks.d.ts +0 -19
  220. package/dist/components/puck-base/core/icon-catalog.d.ts +0 -14
  221. package/dist/components/puck-base/core/icon-catalog.js +0 -193
  222. package/dist/components/puck-base/core/styles.d.ts +0 -1942
  223. package/dist/components/puck-base/core/types.d.ts +0 -20
  224. package/dist/components/puck-base/core/types.js +0 -26
  225. package/dist/components/puck-base/core/utils.d.ts +0 -5
  226. package/dist/components/puck-base/core/with-editable.d.ts +0 -16
  227. package/dist/components/puck-base/error-boundary.d.ts +0 -4
  228. package/dist/components/puck-base/fields/action-field.d.ts +0 -30
  229. package/dist/components/puck-base/fields/action-field.js +0 -265
  230. package/dist/components/puck-base/fields/auto-field.d.ts +0 -2
  231. package/dist/components/puck-base/fields/color-field.d.ts +0 -6
  232. package/dist/components/puck-base/fields/index.d.ts +0 -8
  233. package/dist/components/puck-base/fields/location-field.d.ts +0 -44
  234. package/dist/components/puck-base/fields/object-field.d.ts +0 -8
  235. package/dist/components/puck-base/fields/radio-toggle-field.d.ts +0 -10
  236. package/dist/components/puck-base/fields/types.d.ts +0 -29
  237. package/dist/components/puck-base/fields/virtualized-select-field.d.ts +0 -13
  238. package/dist/components/puck-base/icon-picker-field.d.ts +0 -8
  239. package/dist/components/puck-base/icon-picker-field.js +0 -153
  240. package/dist/components/puck-base/image-upload-field.d.ts +0 -7
  241. package/dist/components/puck-base/inline-editable.d.ts +0 -14
  242. package/dist/components/puck-base/use-upload.d.ts +0 -42
  243. /package/dist/components/{puck-base → puck-core}/core/hooks.js +0 -0
  244. /package/dist/components/{puck-base → puck-core}/core/utils.js +0 -0
  245. /package/dist/components/{puck-base → puck-core}/error-boundary.js +0 -0
  246. /package/dist/components/{puck-base → puck-core}/fields/color-field.js +0 -0
  247. /package/dist/components/{puck-base → puck-core}/fields/radio-toggle-field.js +0 -0
  248. /package/dist/components/{puck-base → puck-core}/fields/virtualized-select-field.js +0 -0
  249. /package/dist/components/{puck-base → puck-core}/use-upload.js +0 -0
@@ -1,267 +0,0 @@
1
- import { fieldTypes } from "../field.js";
2
- import { ActionField } from "../fields/action-field.js";
3
- import { IconPickerField } from "../icon-picker-field.js";
4
- const formMethods = ["get", "post", "put", "patch", "delete"];
5
- const icon = {
6
- type: "custom",
7
- render: IconPickerField
8
- };
9
- const action = {
10
- type: "custom",
11
- label: "action",
12
- render: ActionField
13
- };
14
- const actionDefaults = {
15
- type: "page",
16
- pageUrl: "",
17
- externalUrl: "",
18
- openInNewTab: "false",
19
- email: "",
20
- subject: "",
21
- phone: "",
22
- sectionId: "",
23
- downloadUrl: ""
24
- };
25
- const button = {
26
- type: "object",
27
- objectFields: {
28
- label: { type: "text" },
29
- action,
30
- variant: {
31
- type: "select",
32
- options: [
33
- { label: "primary", value: "default" },
34
- { label: "secondary", value: "secondary" },
35
- { label: "outline", value: "outline" },
36
- { label: "ghost", value: "ghost" },
37
- { label: "link", value: "link" },
38
- { label: "destructive", value: "destructive" }
39
- ]
40
- },
41
- size: {
42
- type: "select",
43
- options: [
44
- { label: "default", value: "default" },
45
- { label: "sm", value: "sm" },
46
- { label: "lg", value: "lg" },
47
- { label: "icon", value: "icon" }
48
- ]
49
- },
50
- icon
51
- }
52
- };
53
- const buttonDefaults = {
54
- label: "Button",
55
- action: actionDefaults,
56
- variant: "default",
57
- size: "default",
58
- icon: "none"
59
- };
60
- const buttons = {
61
- type: "array",
62
- max: 3,
63
- getItemSummary: (item, index = 0) => item.label || `Button ${index + 1}`,
64
- arrayFields: {
65
- ...button.objectFields
66
- },
67
- defaultItemProps: buttonDefaults,
68
- ai: {
69
- instructions: "Buttons must use the same size"
70
- }
71
- };
72
- const badge = {
73
- type: "object",
74
- objectFields: {
75
- label: { type: "text" },
76
- url: { type: "text" },
77
- variant: {
78
- type: "select",
79
- options: [
80
- { label: "default", value: "default" },
81
- { label: "secondary", value: "secondary" },
82
- { label: "destructive", value: "destructive" },
83
- { label: "outline", value: "outline" }
84
- ]
85
- }
86
- }
87
- };
88
- const image = {
89
- type: "object",
90
- objectFields: {
91
- // "image" is a custom field type registered via Puck overrides (fieldTypes.image)
92
- src: { type: "image", label: "Image" },
93
- alt: { type: "text" }
94
- }
95
- };
96
- const getPlaceholderImageUrl = (size, text = "Placeholder Image") => {
97
- const [w, h] = size.split("x");
98
- return `https://picsum.photos/seed/${encodeURIComponent(text)}/${w}/${h}`;
99
- };
100
- const image16x9Placeholder = {
101
- alt: "16/9 aspect ratio accessible description of the image",
102
- src: getPlaceholderImageUrl("1920x1080")
103
- };
104
- const image1x1Placeholder = {
105
- alt: "1/1 aspect ratio An accessible description of the image",
106
- src: getPlaceholderImageUrl("1000x1000")
107
- };
108
- const image9x16Placeholder = {
109
- alt: "9/16 accessible description of the image",
110
- src: getPlaceholderImageUrl("1080x1920")
111
- };
112
- const images = {
113
- type: "array",
114
- max: 10,
115
- getItemSummary: (item, index = 0) => {
116
- if (item.alt) {
117
- return `${item.alt.slice(0, 12)}${item.alt.length > 12 ? "..." : ""}`;
118
- }
119
- return `Image ${index + 1}`;
120
- },
121
- arrayFields: {
122
- ...image.objectFields
123
- },
124
- defaultItemProps: image16x9Placeholder
125
- };
126
- const heading = {
127
- type: "text",
128
- contentEditable: true
129
- };
130
- const description = {
131
- type: "textarea",
132
- contentEditable: true
133
- };
134
- const features = {
135
- type: "array",
136
- max: 5,
137
- getItemSummary: (item, index = 0) => item.name || `Feature ${index + 1}`,
138
- arrayFields: {
139
- icon,
140
- name: { type: "text", contentEditable: true },
141
- description: { type: "textarea", contentEditable: true }
142
- },
143
- defaultItemProps: {
144
- icon: "check",
145
- name: "Feature name",
146
- description: "Description of the feature"
147
- }
148
- };
149
- const contentFields = {
150
- heading,
151
- description,
152
- badge,
153
- buttons
154
- };
155
- const contentFieldsWithFeatures = {
156
- heading,
157
- description,
158
- badge,
159
- features,
160
- buttons
161
- };
162
- const card = {
163
- type: "object",
164
- objectFields: {
165
- icon,
166
- heading,
167
- description,
168
- button
169
- }
170
- };
171
- const cards = {
172
- type: "array",
173
- getItemSummary: (item, index = 0) => item.heading || `Card ${index + 1}`,
174
- arrayFields: {
175
- ...card.objectFields
176
- },
177
- defaultItemProps: {
178
- icon: "activity",
179
- heading: "Heading",
180
- description: "Description",
181
- button: buttonDefaults
182
- }
183
- };
184
- const field = {
185
- type: "object",
186
- objectFields: {
187
- label: { type: "text", contentEditable: true },
188
- name: { type: "text" },
189
- type: {
190
- type: "select",
191
- options: fieldTypes.map((f) => ({ label: f, value: f }))
192
- }
193
- }
194
- };
195
- const fieldDefaults = {
196
- label: "Field Label",
197
- type: "text",
198
- name: "field_name"
199
- };
200
- const { action: _buttonAction, ...formButtonConfig } = button.objectFields;
201
- const form = {
202
- type: "object",
203
- objectFields: {
204
- title: { type: "text", contentEditable: true },
205
- fields: {
206
- type: "array",
207
- min: 1,
208
- max: 10,
209
- arrayFields: { ...field.objectFields },
210
- getItemSummary: (item, index = 0) => item.label || `Field ${index + 1}`,
211
- defaultItemProps: fieldDefaults
212
- },
213
- action: { type: "text", label: "submit url" },
214
- method: {
215
- type: "select",
216
- label: "submit method",
217
- options: formMethods.map((method) => ({ label: method, value: method }))
218
- },
219
- button: {
220
- ...button,
221
- objectFields: {
222
- ...formButtonConfig
223
- }
224
- }
225
- }
226
- };
227
- const formDefaults = {
228
- title: "Book a meeting",
229
- fields: [
230
- { label: "First name", type: "text", name: "first_name" },
231
- { label: "Last name", type: "text", name: "last_name" },
232
- { label: "Resume", type: "file", name: "resume" }
233
- ],
234
- action: "/submit-form",
235
- method: "post",
236
- button: {
237
- label: "Book the meeting",
238
- variant: "default",
239
- size: "default",
240
- icon: "move-right"
241
- }
242
- };
243
- export {
244
- action,
245
- actionDefaults,
246
- badge,
247
- button,
248
- buttons,
249
- card,
250
- cards,
251
- contentFields,
252
- contentFieldsWithFeatures,
253
- description,
254
- features,
255
- field,
256
- fieldDefaults,
257
- form,
258
- formDefaults,
259
- getPlaceholderImageUrl,
260
- heading,
261
- icon,
262
- image,
263
- image16x9Placeholder,
264
- image1x1Placeholder,
265
- image9x16Placeholder,
266
- images
267
- };
@@ -1,19 +0,0 @@
1
- export declare const usePuckDispatch: () => (action: import("@puckeditor/core").PuckAction) => void;
2
- export declare const usePuckAppState: () => import("@puckeditor/core").AppState<import("@puckeditor/core").Data<import("@puckeditor/core").DefaultComponents, any>>;
3
- export declare const usePuckHistory: () => {
4
- back: import("node_modules/@puckeditor/core/dist/index-lt1zf5WR").H["back"];
5
- forward: import("node_modules/@puckeditor/core/dist/index-lt1zf5WR").H["forward"];
6
- setHistories: import("node_modules/@puckeditor/core/dist/index-lt1zf5WR").H["setHistories"];
7
- setHistoryIndex: import("node_modules/@puckeditor/core/dist/index-lt1zf5WR").H["setHistoryIndex"];
8
- histories: import("node_modules/@puckeditor/core/dist/index-lt1zf5WR").H["histories"];
9
- index: import("node_modules/@puckeditor/core/dist/index-lt1zf5WR").H["index"];
10
- hasPast: boolean;
11
- hasFuture: boolean;
12
- };
13
- export declare const usePuckConfig: () => import("@puckeditor/core").Config;
14
- export declare const usePuckGetSelectorForId: () => (id: string) => Required<import("node_modules/@puckeditor/core/dist/actions-BkBoKAc5").t> | undefined;
15
- export interface PuckComponentInfo {
16
- component: Record<string, any>;
17
- index: number;
18
- resolvedZone: string;
19
- }
@@ -1,14 +0,0 @@
1
- import type { LucideIcon } from "lucide-react";
2
- export interface IconEntry {
3
- name: string;
4
- component: LucideIcon;
5
- }
6
- export interface IconCategory {
7
- label: string;
8
- icons: IconEntry[];
9
- }
10
- export declare const ICON_CATALOG: IconCategory[];
11
- /** Flat map of icon name → LucideIcon component */
12
- export declare const ICON_MAP: Map<string, LucideIcon>;
13
- /** Set of all curated icon names, for membership checks */
14
- export declare const CURATED_ICON_SET: Set<string>;
@@ -1,193 +0,0 @@
1
- import { ArrowRight, ArrowLeft, ArrowUp, ArrowDown, ArrowUpRight, ChevronRight, ChevronLeft, ChevronDown, ChevronUp, ChevronsRight, MoveRight, ExternalLink, CornerDownRight, Undo2, Redo2, Mail, Phone, MessageCircle, MessageSquare, Send, AtSign, Inbox, Bell, BellRing, Megaphone, PhoneCall, Voicemail, Globe, Share2, Link, ThumbsUp, Heart, Star, Users, User, UserPlus, UserCheck, HandHeart, Handshake, Briefcase, Building2, CreditCard, DollarSign, Wallet, Receipt, BarChart3, TrendingUp, PiggyBank, BadgeDollarSign, ChartPie, Landmark, Image, Video, Camera, Play, Music, FileText, BookOpen, PenTool, Newspaper, Mic, Headphones, Film, Code, Terminal, Cpu, Database, Server, Cloud, Wifi, Smartphone, Monitor, Laptop, HardDrive, GitBranch, Check, CheckCircle, CircleCheck, X, XCircle, AlertTriangle, AlertCircle, Info, Ban, Loader, CircleAlert, ShieldCheck, Search, Settings, Menu, Plus, Minus, Pencil, Trash2, Copy, Download, Upload, Filter, Eye, EyeOff, Lock, Unlock, MoreHorizontal, Grip, Sun, Moon, Zap, Flame, Droplets, Leaf, Mountain, Compass, MapPin, Clock, Calendar, Gift, TreePine, Snowflake, CloudRain, ShoppingCart, ShoppingBag, Tag, Percent, Store, Package, Truck, Box, BadgePercent, Ticket } from "lucide-react";
2
- function entry(name, component) {
3
- return { name, component };
4
- }
5
- const ICON_CATALOG = [
6
- {
7
- label: "Navigation",
8
- icons: [
9
- entry("arrow-right", ArrowRight),
10
- entry("arrow-left", ArrowLeft),
11
- entry("arrow-up", ArrowUp),
12
- entry("arrow-down", ArrowDown),
13
- entry("arrow-up-right", ArrowUpRight),
14
- entry("chevron-right", ChevronRight),
15
- entry("chevron-left", ChevronLeft),
16
- entry("chevron-down", ChevronDown),
17
- entry("chevron-up", ChevronUp),
18
- entry("chevrons-right", ChevronsRight),
19
- entry("move-right", MoveRight),
20
- entry("external-link", ExternalLink),
21
- entry("corner-down-right", CornerDownRight),
22
- entry("undo-2", Undo2),
23
- entry("redo-2", Redo2)
24
- ]
25
- },
26
- {
27
- label: "Communication",
28
- icons: [
29
- entry("mail", Mail),
30
- entry("phone", Phone),
31
- entry("message-circle", MessageCircle),
32
- entry("message-square", MessageSquare),
33
- entry("send", Send),
34
- entry("at-sign", AtSign),
35
- entry("inbox", Inbox),
36
- entry("bell", Bell),
37
- entry("bell-ring", BellRing),
38
- entry("megaphone", Megaphone),
39
- entry("phone-call", PhoneCall),
40
- entry("voicemail", Voicemail)
41
- ]
42
- },
43
- {
44
- label: "Social",
45
- icons: [
46
- entry("globe", Globe),
47
- entry("share-2", Share2),
48
- entry("link", Link),
49
- entry("thumbs-up", ThumbsUp),
50
- entry("heart", Heart),
51
- entry("star", Star),
52
- entry("users", Users),
53
- entry("user", User),
54
- entry("user-plus", UserPlus),
55
- entry("user-check", UserCheck),
56
- entry("hand-heart", HandHeart),
57
- entry("handshake", Handshake)
58
- ]
59
- },
60
- {
61
- label: "Business",
62
- icons: [
63
- entry("briefcase", Briefcase),
64
- entry("building-2", Building2),
65
- entry("credit-card", CreditCard),
66
- entry("dollar-sign", DollarSign),
67
- entry("wallet", Wallet),
68
- entry("receipt", Receipt),
69
- entry("bar-chart-3", BarChart3),
70
- entry("trending-up", TrendingUp),
71
- entry("piggy-bank", PiggyBank),
72
- entry("badge-dollar-sign", BadgeDollarSign),
73
- entry("chart-pie", ChartPie),
74
- entry("landmark", Landmark)
75
- ]
76
- },
77
- {
78
- label: "Media",
79
- icons: [
80
- entry("image", Image),
81
- entry("video", Video),
82
- entry("camera", Camera),
83
- entry("play", Play),
84
- entry("music", Music),
85
- entry("file-text", FileText),
86
- entry("book-open", BookOpen),
87
- entry("pen-tool", PenTool),
88
- entry("newspaper", Newspaper),
89
- entry("mic", Mic),
90
- entry("headphones", Headphones),
91
- entry("film", Film)
92
- ]
93
- },
94
- {
95
- label: "Tech",
96
- icons: [
97
- entry("code", Code),
98
- entry("terminal", Terminal),
99
- entry("cpu", Cpu),
100
- entry("database", Database),
101
- entry("server", Server),
102
- entry("cloud", Cloud),
103
- entry("wifi", Wifi),
104
- entry("smartphone", Smartphone),
105
- entry("monitor", Monitor),
106
- entry("laptop", Laptop),
107
- entry("hard-drive", HardDrive),
108
- entry("git-branch", GitBranch)
109
- ]
110
- },
111
- {
112
- label: "Status",
113
- icons: [
114
- entry("check", Check),
115
- entry("check-circle", CheckCircle),
116
- entry("circle-check", CircleCheck),
117
- entry("x", X),
118
- entry("x-circle", XCircle),
119
- entry("alert-triangle", AlertTriangle),
120
- entry("alert-circle", AlertCircle),
121
- entry("info", Info),
122
- entry("ban", Ban),
123
- entry("loader", Loader),
124
- entry("circle-alert", CircleAlert),
125
- entry("shield-check", ShieldCheck)
126
- ]
127
- },
128
- {
129
- label: "UI",
130
- icons: [
131
- entry("search", Search),
132
- entry("settings", Settings),
133
- entry("menu", Menu),
134
- entry("plus", Plus),
135
- entry("minus", Minus),
136
- entry("pencil", Pencil),
137
- entry("trash-2", Trash2),
138
- entry("copy", Copy),
139
- entry("download", Download),
140
- entry("upload", Upload),
141
- entry("filter", Filter),
142
- entry("eye", Eye),
143
- entry("eye-off", EyeOff),
144
- entry("lock", Lock),
145
- entry("unlock", Unlock),
146
- entry("more-horizontal", MoreHorizontal),
147
- entry("grip", Grip)
148
- ]
149
- },
150
- {
151
- label: "Nature",
152
- icons: [
153
- entry("sun", Sun),
154
- entry("moon", Moon),
155
- entry("zap", Zap),
156
- entry("flame", Flame),
157
- entry("droplets", Droplets),
158
- entry("leaf", Leaf),
159
- entry("mountain", Mountain),
160
- entry("compass", Compass),
161
- entry("map-pin", MapPin),
162
- entry("clock", Clock),
163
- entry("calendar", Calendar),
164
- entry("gift", Gift),
165
- entry("tree-pine", TreePine),
166
- entry("snowflake", Snowflake),
167
- entry("cloud-rain", CloudRain)
168
- ]
169
- },
170
- {
171
- label: "Commerce",
172
- icons: [
173
- entry("shopping-cart", ShoppingCart),
174
- entry("shopping-bag", ShoppingBag),
175
- entry("tag", Tag),
176
- entry("percent", Percent),
177
- entry("store", Store),
178
- entry("package", Package),
179
- entry("truck", Truck),
180
- entry("box", Box),
181
- entry("badge-percent", BadgePercent),
182
- entry("ticket", Ticket)
183
- ]
184
- }
185
- ];
186
- const ICON_MAP = new Map(
187
- ICON_CATALOG.flatMap((cat) => cat.icons.map((e) => [e.name, e.component]))
188
- );
189
- new Set(ICON_MAP.keys());
190
- export {
191
- ICON_CATALOG,
192
- ICON_MAP
193
- };