dune-react 0.0.11 → 0.0.12

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 (77) hide show
  1. package/dist/components/puck-base/core/fields.d.ts +25 -96
  2. package/dist/components/puck-base/core/fields.js +4 -10
  3. package/dist/components/puck-base/core/icon-catalog.d.ts +14 -0
  4. package/dist/components/puck-base/core/icon-catalog.js +193 -0
  5. package/dist/components/puck-base/fields/action-field.d.ts +23 -1
  6. package/dist/components/puck-base/fields/action-field.js +174 -130
  7. package/dist/components/puck-base/gradient-text.js +1 -1
  8. package/dist/components/puck-base/icon-picker-field.d.ts +8 -0
  9. package/dist/components/puck-base/icon-picker-field.js +153 -0
  10. package/dist/components/puck-base/index.d.ts +1 -1
  11. package/dist/components/puck-block/banner-sections/announcement-banner-1/index.js +1 -1
  12. package/dist/components/puck-block/banner-sections/marquee-1/index.js +6 -4
  13. package/dist/components/puck-block/contact-sections/contact-us-1/index.js +18 -8
  14. package/dist/components/puck-block/contact-sections/contact-us-2/contact-us-2.js +1 -1
  15. package/dist/components/puck-block/contact-sections/contact-us-2/index.js +7 -7
  16. package/dist/components/puck-block/contact-sections/contact-us-3/index.js +2 -2
  17. package/dist/components/puck-block/cta-sections/banner-cta-1/index.js +4 -4
  18. package/dist/components/puck-block/cta-sections/cta-1/index.js +9 -9
  19. package/dist/components/puck-block/cta-sections/gradient-cta-1/index.js +3 -3
  20. package/dist/components/puck-block/cta-sections/newsletter-signup-1/index.js +1 -1
  21. package/dist/components/puck-block/cta-sections/promo-section-1/index.js +5 -5
  22. package/dist/components/puck-block/faq-sections/accordion-1/index.js +7 -3
  23. package/dist/components/puck-block/faq-sections/faq-1/index.js +16 -4
  24. package/dist/components/puck-block/faq-sections/faq-2/index.js +11 -11
  25. package/dist/components/puck-block/feature-sections/bento-1/bento.js +16 -7
  26. package/dist/components/puck-block/feature-sections/bento-1/index.js +19 -6
  27. package/dist/components/puck-block/feature-sections/feature-cards-1/index.js +11 -10
  28. package/dist/components/puck-block/feature-sections/feature-showcase-1/index.js +10 -10
  29. package/dist/components/puck-block/feature-sections/icon-grid-1/index.js +13 -18
  30. package/dist/components/puck-block/feature-sections/product-features-1/index.js +18 -23
  31. package/dist/components/puck-block/footer-sections/footer-1/index.js +17 -22
  32. package/dist/components/puck-block/gallery-sections/gallery-1/index.js +12 -8
  33. package/dist/components/puck-block/gallery-sections/gallery-2/index.js +10 -9
  34. package/dist/components/puck-block/gallery-sections/gallery-3/index.js +17 -14
  35. package/dist/components/puck-block/header-sections/header-1/index.js +56 -40
  36. package/dist/components/puck-block/header-sections/sticky-nav-1/index.js +4 -3
  37. package/dist/components/puck-block/hero-sections/fullscreen-hero-1/index.js +4 -3
  38. package/dist/components/puck-block/hero-sections/gradient-hero-1/index.js +4 -4
  39. package/dist/components/puck-block/hero-sections/grid-hero-1/index.js +8 -8
  40. package/dist/components/puck-block/hero-sections/hero-1/index.js +16 -12
  41. package/dist/components/puck-block/hero-sections/image-hero-1/index.js +2 -2
  42. package/dist/components/puck-block/hero-sections/split-hero-1/index.js +7 -7
  43. package/dist/components/puck-block/hero-sections/video-hero-1/index.js +5 -5
  44. package/dist/components/puck-block/location-sections/location-1/index.js +4 -4
  45. package/dist/components/puck-block/location-sections/location-1/location.js +1 -1
  46. package/dist/components/puck-block/location-sections/location-2/index.js +4 -4
  47. package/dist/components/puck-block/location-sections/location-2/location.js +1 -1
  48. package/dist/components/puck-block/location-sections/location-3/index.js +15 -14
  49. package/dist/components/puck-block/location-sections/location-3/location.d.ts +1 -0
  50. package/dist/components/puck-block/location-sections/location-3/location.js +2 -2
  51. package/dist/components/puck-block/metrics-sections/stats-1/index.js +13 -13
  52. package/dist/components/puck-block/metrics-sections/stats-2/index.js +8 -8
  53. package/dist/components/puck-block/metrics-sections/stats-3/index.js +13 -13
  54. package/dist/components/puck-block/pricing-sections/comparison-1/index.js +2 -2
  55. package/dist/components/puck-block/pricing-sections/pricing-1/index.js +39 -19
  56. package/dist/components/puck-block/pricing-sections/pricing-2/index.js +30 -30
  57. package/dist/components/puck-block/showcase-sections/before-after-1/index.js +12 -12
  58. package/dist/components/puck-block/showcase-sections/case-study-1/index.js +7 -7
  59. package/dist/components/puck-block/showcase-sections/step-by-step-1/index.js +8 -8
  60. package/dist/components/puck-block/team-sections/team-grid-1/index.js +9 -9
  61. package/dist/components/puck-block/team-sections/team-grid-2/index.js +12 -12
  62. package/dist/components/puck-block/team-sections/team-profiles-1/index.js +11 -9
  63. package/dist/components/puck-block/testimonial-sections/customers-1/index.js +18 -7
  64. package/dist/components/puck-block/testimonial-sections/logo-marquee-1/index.js +1 -1
  65. package/dist/components/puck-block/testimonial-sections/logo-wall-1/index.js +7 -7
  66. package/dist/components/puck-block/testimonial-sections/review-section-1/index.js +27 -12
  67. package/dist/components/puck-block/testimonial-sections/testimonials-1/index.js +17 -7
  68. package/dist/components/puck-block/text-sections/articles-1/index.js +11 -6
  69. package/dist/components/puck-block/text-sections/content-section-1/index.js +6 -6
  70. package/dist/components/puck-block/text-sections/rich-text-1/index.js +1 -1
  71. package/dist/components/puck-block/text-sections/rich-text-1/rich-text.js +6 -1
  72. package/dist/components/puck-block/text-sections/tab-section-1/index.js +12 -12
  73. package/dist/components/puck-block/text-sections/timeline-1/index.js +17 -7
  74. package/dist/components/puck-block/text-sections/two-column-1/index.js +10 -10
  75. package/dist/index.js +9 -1
  76. package/dist/node_modules/.pnpm/lucide-react@0.540.0_react@19.2.4/node_modules/lucide-react/dist/esm/DynamicIcon.js +1 -3
  77. package/package.json +2 -1
@@ -1,4 +1,4 @@
1
- import { images, contentFieldsWithFeatures, getPlaceholderImageUrl } from "../../../puck-base/core/fields.js";
1
+ import { images, contentFieldsWithFeatures } from "../../../puck-base/core/fields.js";
2
2
  import { TwoColumn } from "./two-column.js";
3
3
  import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
4
4
  const conf = {
@@ -51,10 +51,10 @@ const conf = {
51
51
  styles: createStylesField()
52
52
  },
53
53
  defaultProps: {
54
- heading: "This is the start of something new",
55
- description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",
54
+ heading: "Why leading teams trust us",
55
+ description: "We handle the infrastructure so you can focus on your product. From startups to enterprises, teams rely on our platform to ship with confidence.",
56
56
  badge: {
57
- label: "Platform",
57
+ label: "About Us",
58
58
  url: "",
59
59
  variant: "default"
60
60
  },
@@ -63,18 +63,18 @@ const conf = {
63
63
  border: "false",
64
64
  images: [
65
65
  {
66
- alt: "1: 16/9 aspect ratio accessible description of the image",
67
- src: getPlaceholderImageUrl("1920x1080", "Feature 1"),
66
+ alt: "Developer working at desk with dual monitors displaying code",
67
+ src: "https://images.pexels.com/photos/3861969/pexels-photo-3861969.jpeg?auto=compress&cs=tinysrgb&w=1200",
68
68
  aspectRatio: "16x9"
69
69
  },
70
70
  {
71
- alt: "2: 16/9 aspect ratio accessible description of the image",
72
- src: getPlaceholderImageUrl("1920x1080", "Feature 2"),
71
+ alt: "Two developers collaborating on code at a shared workspace",
72
+ src: "https://images.pexels.com/photos/1181677/pexels-photo-1181677.jpeg?auto=compress&cs=tinysrgb&w=1200",
73
73
  aspectRatio: "16x9"
74
74
  },
75
75
  {
76
- alt: "3: 16/9 aspect ratio accessible description of the image",
77
- src: getPlaceholderImageUrl("1920x1080", "Feature 3"),
76
+ alt: "Tech team working together at a modern office",
77
+ src: "https://images.pexels.com/photos/3183150/pexels-photo-3183150.jpeg?auto=compress&cs=tinysrgb&w=1200",
78
78
  aspectRatio: "16x9"
79
79
  }
80
80
  ],
package/dist/index.js CHANGED
@@ -2,9 +2,9 @@ import { default as default2 } from "./components/ui-block/background/index.js";
2
2
  import { default as default3 } from "./components/puck-block/header-sections/header-1/index.js";
3
3
  import { default as default4 } from "./components/shadcn/badge-promo.js";
4
4
  import { default as default5 } from "./components/puck-base/use-upload.js";
5
+ import { ACTION_TYPE_FIELD_MAP, ACTION_TYPE_OPTIONS, ActionField, DownloadActionFields, EmailActionFields, ExternalActionFields, PageActionFields, PhoneActionFields, SectionActionFields } from "./components/puck-base/fields/action-field.js";
5
6
  import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "./components/shadcn/accordion.js";
6
7
  import { conf } from "./components/puck-block/faq-sections/accordion-1/index.js";
7
- import { ActionField } from "./components/puck-base/fields/action-field.js";
8
8
  import { Alert, AlertAction, AlertDescription, AlertTitle } from "./components/shadcn/alert.js";
9
9
  import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from "./components/shadcn/alert-dialog.js";
10
10
  import { AnimatedThemeToggler } from "./components/shadcn/animated-theme-toggler.js";
@@ -152,6 +152,8 @@ import { resolveActionUrl } from "./components/puck-base/core/types.js";
152
152
  import { usePuckAppState, usePuckConfig, usePuckDispatch, usePuckGetSelectorForId, usePuckHistory } from "./components/puck-base/core/hooks.js";
153
153
  import { withEditable } from "./components/puck-base/core/with-editable.js";
154
154
  export {
155
+ ACTION_TYPE_FIELD_MAP,
156
+ ACTION_TYPE_OPTIONS,
155
157
  Accordion,
156
158
  conf as AccordionConf,
157
159
  AccordionContent,
@@ -293,6 +295,7 @@ export {
293
295
  DialogTitle,
294
296
  DialogTrigger,
295
297
  DirectionProvider,
298
+ DownloadActionFields,
296
299
  Drawer,
297
300
  DrawerClose,
298
301
  DrawerContent,
@@ -319,6 +322,7 @@ export {
319
322
  DropdownMenuSubTrigger,
320
323
  DropdownMenuTrigger,
321
324
  EditorContextProvider,
325
+ EmailActionFields,
322
326
  Empty,
323
327
  EmptyContent,
324
328
  EmptyDescription,
@@ -326,6 +330,7 @@ export {
326
330
  EmptyMedia,
327
331
  EmptyTitle,
328
332
  ErrorBoundary,
333
+ ExternalActionFields,
329
334
  conf15 as Faq2Conf,
330
335
  conf16 as FaqConf,
331
336
  conf17 as FeatureCardsConf,
@@ -433,6 +438,7 @@ export {
433
438
  NavigationMenuPositioner,
434
439
  NavigationMenuTrigger,
435
440
  conf36 as NewsletterSignupConf,
441
+ PageActionFields,
436
442
  Pagination,
437
443
  PaginationContent,
438
444
  PaginationEllipsis,
@@ -440,6 +446,7 @@ export {
440
446
  PaginationLink,
441
447
  PaginationNext,
442
448
  PaginationPrevious,
449
+ PhoneActionFields,
443
450
  Popover,
444
451
  PopoverContent,
445
452
  PopoverDescription,
@@ -464,6 +471,7 @@ export {
464
471
  conf42 as RichTextConf,
465
472
  ScrollArea,
466
473
  ScrollBar,
474
+ SectionActionFields,
467
475
  Select,
468
476
  SelectContent,
469
477
  SelectGroup,
@@ -3,7 +3,6 @@
3
3
  import { forwardRef, useState, useEffect, createElement } from "react";
4
4
  import dynamicIconImports from "./dynamicIconImports.js";
5
5
  import Icon from "./Icon.js";
6
- const iconNames = Object.keys(dynamicIconImports);
7
6
  async function getIconNode(name) {
8
7
  if (!(name in dynamicIconImports)) {
9
8
  throw new Error("[lucide-react]: Name in Lucide DynamicIcon not found");
@@ -33,6 +32,5 @@ const DynamicIcon = forwardRef(
33
32
  }
34
33
  );
35
34
  export {
36
- DynamicIcon as default,
37
- iconNames
35
+ DynamicIcon as default
38
36
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dune-react",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -69,6 +69,7 @@
69
69
  "eslint-plugin-react-refresh": "^0.4.3",
70
70
  "eslint-plugin-storybook": "^10.2.19",
71
71
  "motion": "12.23.12",
72
+ "playwright": "1.58.2",
72
73
  "react-easy-crop": "5.5.6",
73
74
  "rollup-plugin-preserve-directives": "0.4.0",
74
75
  "sass": "^1.90.0",