dune-react 0.0.23 → 0.0.25

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 (52) hide show
  1. package/dist/components/puck-base/image.js +1 -1
  2. package/dist/components/puck-block/banner-sections/dual-row-marquee/dual-row-marquee.js +77 -53
  3. package/dist/components/puck-block/contact-sections/tab-locations/tab-locations.js +71 -55
  4. package/dist/components/puck-block/feature-sections/tab-feature/component.js +1 -1
  5. package/dist/components/puck-block/gallery-sections/image-carousel/index.d.ts +14 -1
  6. package/dist/components/puck-block/gallery-sections/interactive-portfolio/interactive-portfolio.js +165 -104
  7. package/dist/components/puck-block/gallery-sections/masonry-grid/index.d.ts +17 -1
  8. package/dist/components/puck-block/gallery-sections/masonry-grid/masonry-grid.js +56 -31
  9. package/dist/components/puck-block/gallery-sections/portfolio-cards/index.d.ts +17 -1
  10. package/dist/components/puck-block/gallery-sections/portfolio-cards/portfolio-cards.js +40 -12
  11. package/dist/components/puck-block/gallery-sections/props.d.ts +31 -2
  12. package/dist/components/puck-block/gallery-sections/props.js +17 -4
  13. package/dist/components/puck-block/gallery-sections/scroll-parallax/scroll-parallax.js +68 -37
  14. package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/scroll-parallax-portfolio.js +308 -151
  15. package/dist/components/puck-block/gallery-sections/static-grid/index.d.ts +17 -1
  16. package/dist/components/puck-block/header-sections/centered-navbar/centered-navbar.js +94 -14
  17. package/dist/components/puck-block/hero-sections/grid-expand-hero/index.d.ts +17 -1
  18. package/dist/components/puck-block/hero-sections/inline-image-hero/inline-image-hero.js +59 -28
  19. package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.d.ts +17 -1
  20. package/dist/components/puck-block/hero-sections/props.d.ts +34 -2
  21. package/dist/components/puck-block/hero-sections/props.js +18 -4
  22. package/dist/components/puck-block/hero-sections/tab-hero/component.js +1 -1
  23. package/dist/components/puck-block/index.d.ts +1 -0
  24. package/dist/components/puck-block/location-sections/index.d.ts +3 -0
  25. package/dist/components/puck-block/location-sections/location-1/index.js +102 -0
  26. package/dist/components/puck-block/location-sections/location-1/location.d.ts +0 -3
  27. package/dist/components/puck-block/location-sections/location-1/location.js +139 -0
  28. package/dist/components/puck-block/location-sections/location-2/index.js +126 -0
  29. package/dist/components/puck-block/location-sections/location-2/location.d.ts +0 -3
  30. package/dist/components/puck-block/location-sections/location-2/location.js +133 -0
  31. package/dist/components/puck-block/location-sections/location-3/index.js +109 -0
  32. package/dist/components/puck-block/location-sections/location-3/location.d.ts +0 -3
  33. package/dist/components/puck-block/location-sections/location-3/location.js +140 -0
  34. package/dist/components/puck-block/location-sections/props.d.ts +0 -3
  35. package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.js +1 -1
  36. package/dist/components/puck-block/pricing-sections/pricing-comparison-table/component.js +134 -33
  37. package/dist/components/puck-block/pricing-sections/tab-pricing-grid/component.js +86 -40
  38. package/dist/components/puck-block/pricing-sections/tab-single-pricing/component.js +1 -1
  39. package/dist/components/puck-block/registry.generated.d.ts +228 -6
  40. package/dist/components/puck-block/registry.generated.js +157 -138
  41. package/dist/components/puck-block/showcase-sections/tab-timeline/component.js +1 -1
  42. package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.js +157 -83
  43. package/dist/components/puck-block/testimonial-sections/centered-testimonial/component.js +71 -28
  44. package/dist/components/puck-block/testimonial-sections/image-testimonial/component.js +66 -29
  45. package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/component.js +1 -1
  46. package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.js +4 -4
  47. package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/component.js +2 -2
  48. package/dist/components/puck-block/testimonial-sections/testimonial-carousel/component.js +1 -1
  49. package/dist/components/puck-core/core/props/form.js +25 -1
  50. package/dist/components/puck-core/fields/location-field.js +4 -1
  51. package/dist/index.js +6 -0
  52. package/package.json +4 -1
@@ -1,3 +1,4 @@
1
+ import { LocationField } from "../../fields/location-field.js";
1
2
  import { buttonField } from "./interactive.js";
2
3
  const fieldTypes = [
3
4
  "text",
@@ -66,11 +67,34 @@ const formDefaults = {
66
67
  icon: "move-right"
67
68
  }
68
69
  };
70
+ function getMapEmbedUrl(loc) {
71
+ const { lat, lng, zoom = 14 } = loc;
72
+ return `https://maps.google.com/maps?q=${lat},${lng}&z=${zoom}&output=embed`;
73
+ }
74
+ function getDirectionsUrl(loc) {
75
+ return `https://www.google.com/maps/dir/?api=1&destination=${loc.lat},${loc.lng}`;
76
+ }
77
+ const locationDefaults = {
78
+ address: "San Francisco, CA, USA",
79
+ lat: 37.7749,
80
+ lng: -122.4194,
81
+ zoom: 13
82
+ };
83
+ const locationField = {
84
+ type: "custom",
85
+ label: "Location",
86
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
87
+ render: LocationField
88
+ };
69
89
  export {
70
90
  fieldTypes,
71
91
  formDefaults,
72
92
  formField,
73
93
  formFieldDefaults,
74
94
  formFieldField,
75
- formMethods
95
+ formMethods,
96
+ getDirectionsUrl,
97
+ getMapEmbedUrl,
98
+ locationDefaults,
99
+ locationField
76
100
  };
@@ -25,7 +25,7 @@ function loadGooglePlaces(apiKey) {
25
25
  });
26
26
  return googleLoadPromise;
27
27
  }
28
- memo(function LocationField2({
28
+ const LocationField = memo(function LocationField2({
29
29
  value,
30
30
  onChange
31
31
  }) {
@@ -202,3 +202,6 @@ memo(function LocationField2({
202
202
  ] })
203
203
  ] });
204
204
  });
205
+ export {
206
+ LocationField
207
+ };
package/dist/index.js CHANGED
@@ -42,7 +42,10 @@ import { default as default42 } from "./components/puck-block/testimonial-sectio
42
42
  import { default as default43 } from "./components/puck-block/contact-sections/info-cards-media/index.js";
43
43
  import { default as default44 } from "./components/puck-block/hero-sections/inline-image-hero/index.js";
44
44
  import { default as default45 } from "./components/puck-block/gallery-sections/interactive-portfolio/index.js";
45
+ import { conf } from "./components/puck-block/location-sections/location-2/index.js";
46
+ import { conf as conf2 } from "./components/puck-block/location-sections/location-3/index.js";
45
47
  import { default as default46 } from "./components/puck-block/contact-sections/location-cards-grid/index.js";
48
+ import { conf as conf3 } from "./components/puck-block/location-sections/location-1/index.js";
46
49
  import { default as default47 } from "./components/puck-block/testimonial-sections/marquee-testimonial/index.js";
47
50
  import { default as default48 } from "./components/puck-block/gallery-sections/masonry-grid/index.js";
48
51
  import { default as default49 } from "./components/puck-block/testimonial-sections/masonry-testimonial/index.js";
@@ -465,7 +468,10 @@ export {
465
468
  KbdGroup,
466
469
  Label,
467
470
  LayoutTextFlip,
471
+ conf as Location2Conf,
472
+ conf2 as Location3Conf,
468
473
  default46 as LocationCardsGridConf,
474
+ conf3 as LocationConf,
469
475
  default47 as MarqueeTestimonialConf,
470
476
  default48 as MasonryGridConf,
471
477
  default49 as MasonryTestimonialConf,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dune-react",
3
- "version": "0.0.23",
3
+ "version": "0.0.25",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -17,6 +17,8 @@
17
17
  "deploy-storybook": "storybook-to-ghpages -- --existing-output-dir=storybook-static",
18
18
  "ondeploy": "pnpm build-storybook && pnpm deploy-storybook",
19
19
  "sync:downstream": "bash scripts/postpublish.sh",
20
+ "screenshot": "tsx scripts/screenshot-components.ts",
21
+ "screenshot:copy": "tsx scripts/screenshot-components.ts --skip-capture",
20
22
  "upload:previews": "tsx scripts/upload-previews-r2.ts"
21
23
  },
22
24
  "sideEffects": [
@@ -77,6 +79,7 @@
77
79
  "rollup-plugin-preserve-directives": "0.4.0",
78
80
  "sass": "^1.90.0",
79
81
  "sass-loader": "^16.0.5",
82
+ "sharp": "0.34.5",
80
83
  "storybook": "^10.2.19",
81
84
  "tsx": "^4.21.0",
82
85
  "typescript": "^5.0.2",