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.
- package/dist/components/index.d.ts +1 -0
- package/dist/components/puck-base/button.d.ts +1 -1
- package/dist/components/puck-base/button.js +5 -6
- package/dist/components/puck-base/card.d.ts +1 -1
- package/dist/components/puck-base/container.js +1 -1
- package/dist/components/puck-base/content.d.ts +1 -1
- package/dist/components/puck-base/image.js +16 -16
- package/dist/components/puck-base/index.d.ts +1 -13
- package/dist/components/puck-block/banner-sections/css-marquee-banner/css-marquee-banner.js +13 -13
- package/dist/components/puck-block/banner-sections/dismissible-banner/index.d.ts +3 -25
- package/dist/components/puck-block/banner-sections/dual-row-marquee/dual-row-marquee.js +8 -8
- package/dist/components/puck-block/banner-sections/scroll-driven-marquee/scroll-driven-marquee.js +8 -6
- package/dist/components/puck-block/banner-sections/scroll-parallax-text/scroll-parallax-text.js +3 -1
- package/dist/components/puck-block/contact-sections/centered-form/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/contact-cards-grid/contact-cards-grid.js +1 -1
- package/dist/components/puck-block/contact-sections/contact-modal/contact-modal.js +1 -1
- package/dist/components/puck-block/contact-sections/contact-modal/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/form-with-media/form-with-media.js +1 -1
- package/dist/components/puck-block/contact-sections/form-with-media/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/header-form-cards/header-form-cards.js +1 -1
- package/dist/components/puck-block/contact-sections/header-form-cards/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/header-info-fullwidth.js +2 -2
- package/dist/components/puck-block/contact-sections/info-cards-media/info-cards-media.js +2 -2
- package/dist/components/puck-block/contact-sections/location-cards-grid/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/split-info-form/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/split-info-form/split-info-form.js +1 -1
- package/dist/components/puck-block/cta-sections/feature-card-cta/index.d.ts +1 -1
- package/dist/components/puck-block/cta-sections/index.d.ts +2 -0
- package/dist/components/puck-block/cta-sections/mouse-track-cta/index.d.ts +1 -1
- package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.js +92 -63
- package/dist/components/puck-block/cta-sections/props.js +46 -0
- package/dist/components/puck-block/cta-sections/side-media-cta/index.d.ts +1 -73
- package/dist/components/puck-block/cta-sections/side-media-cta/index.js +35 -0
- package/dist/components/puck-block/cta-sections/side-media-cta/side-media-cta.js +84 -0
- package/dist/components/puck-block/cta-sections/text-block-cta/index.d.ts +2 -74
- package/dist/components/puck-block/cta-sections/text-block-cta/index.js +38 -0
- package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.d.ts +1 -1
- package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.js +165 -0
- package/dist/components/puck-block/faq-sections/dual-column-accordion-faq/index.d.ts +1 -1
- package/dist/components/puck-block/faq-sections/icon-card-faq/index.d.ts +1 -1
- package/dist/components/puck-block/faq-sections/stacked-accordion-faq/index.d.ts +1 -1
- package/dist/components/puck-block/faq-sections/stacked-static-faq/index.d.ts +1 -1
- package/dist/components/puck-block/faq-sections/two-column-accordion-faq/index.d.ts +1 -1
- package/dist/components/puck-block/faq-sections/two-column-static-faq/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/feature-cards-grid/component.js +1 -1
- package/dist/components/puck-block/feature-sections/feature-cards-grid/index.d.ts +2 -2
- package/dist/components/puck-block/feature-sections/feature-list-split/component.js +1 -1
- package/dist/components/puck-block/feature-sections/feature-list-split/index.d.ts +2 -2
- package/dist/components/puck-block/feature-sections/tab-feature/component.js +80 -64
- package/dist/components/puck-block/feature-sections/text-media-split/component.js +1 -1
- package/dist/components/puck-block/feature-sections/text-media-split/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/text-only-section/index.d.ts +1 -1
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/centered-minimal-footer.js +72 -18
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.d.ts +79 -0
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.js +43 -1
- package/dist/components/puck-block/footer-sections/compact-newsletter-footer/index.d.ts +42 -1
- package/dist/components/puck-block/footer-sections/contact-links-footer/contact-links-footer.js +4 -3
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.d.ts +86 -0
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.js +1 -1
- package/dist/components/puck-block/footer-sections/cta-links-footer/cta-links-footer.js +3 -2
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.d.ts +38 -1
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.js +1 -1
- package/dist/components/puck-block/footer-sections/links-newsletter-footer/index.d.ts +55 -1
- package/dist/components/puck-block/footer-sections/newsletter-links-footer/index.d.ts +42 -1
- package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/index.d.ts +55 -1
- package/dist/components/puck-block/footer-sections/props.d.ts +3 -0
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/fullscreen-portfolio.js +1 -1
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.d.ts +25 -28
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.js +3 -2
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/interactive-portfolio.js +1 -1
- package/dist/components/puck-block/gallery-sections/portfolio-cards/index.d.ts +2 -2
- package/dist/components/puck-block/gallery-sections/portfolio-cards/portfolio-cards.js +1 -1
- package/dist/components/puck-block/gallery-sections/portfolio-divider/index.d.ts +2 -2
- package/dist/components/puck-block/gallery-sections/portfolio-divider/portfolio-divider.js +68 -65
- package/dist/components/puck-block/gallery-sections/props.d.ts +11 -1
- package/dist/components/puck-block/gallery-sections/props.js +7 -2
- package/dist/components/puck-block/gallery-sections/scroll-parallax/scroll-parallax.js +18 -0
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.d.ts +24 -27
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.js +3 -2
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/scroll-parallax-portfolio.js +25 -22
- package/dist/components/puck-block/gallery-sections/split-carousel/index.d.ts +11 -1
- package/dist/components/puck-block/header-sections/centered-navbar/centered-navbar.js +3 -2
- package/dist/components/puck-block/header-sections/centered-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/drawer-navbar/drawer-navbar.js +119 -17
- package/dist/components/puck-block/header-sections/drawer-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/floating-bordered-navbar.js +162 -22
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/fullscreen-overlay-navbar.js +143 -19
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/mega-menu-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/mega-menu-navbar/mega-menu-navbar.js +3 -2
- package/dist/components/puck-block/header-sections/props.d.ts +3 -0
- package/dist/components/puck-block/header-sections/standard-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/standard-navbar/standard-navbar.js +3 -2
- package/dist/components/puck-block/hero-sections/carousel-hero/component.js +50 -9
- package/dist/components/puck-block/hero-sections/carousel-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/centered-hero/index.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/column-scroll-hero/component.js +8 -8
- package/dist/components/puck-block/hero-sections/column-scroll-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/component.js +6 -6
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/fullscreen-hero/index.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/component.js +5 -3
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/grid-expand-hero/component.js +26 -17
- package/dist/components/puck-block/hero-sections/grid-expand-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/component.js +3 -3
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/inline-image-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/media-text-hero/index.d.ts +26 -29
- package/dist/components/puck-block/hero-sections/mouse-track-hero/component.js +60 -19
- package/dist/components/puck-block/hero-sections/mouse-track-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.d.ts +25 -28
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.js +3 -2
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/multi-image-grid-hero.js +2 -2
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/overlapping-image-hero.js +3 -3
- package/dist/components/puck-block/hero-sections/parallax-images-hero/component.js +18 -6
- package/dist/components/puck-block/hero-sections/parallax-images-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/component.js +9 -7
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/component.js +7 -5
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/component.js +93 -44
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/split-hero/index.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/stacked-hero/index.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/component.js +1 -1
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.d.ts +14 -6
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/sticky-video-hero/component.js +2 -2
- package/dist/components/puck-block/hero-sections/sticky-video-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/tab-hero/component.js +4 -4
- package/dist/components/puck-block/hero-sections/tab-hero/index.d.ts +28 -44
- package/dist/components/puck-block/hero-sections/tab-hero/index.js +7 -2
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.js +96 -46
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/component.js +33 -10
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/component.js +14 -12
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/index.d.ts +1 -1
- package/dist/components/puck-block/index.d.ts +2 -0
- package/dist/components/puck-block/location-sections/location-1/location.d.ts +1 -1
- package/dist/components/puck-block/location-sections/location-2/location.d.ts +1 -1
- package/dist/components/puck-block/location-sections/location-3/location.d.ts +2 -2
- package/dist/components/puck-block/location-sections/props.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/center-media-stats/center-media-stats.js +1 -1
- package/dist/components/puck-block/metrics-sections/header-stats-row/header-stats-row.js +1 -1
- package/dist/components/puck-block/metrics-sections/header-stats-row/index.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/mixed-grid-stats.js +2 -2
- package/dist/components/puck-block/metrics-sections/split-stats/index.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/split-stats/split-stats.js +1 -1
- package/dist/components/puck-block/metrics-sections/tab-stats/index.d.ts +0 -22
- package/dist/components/puck-block/metrics-sections/tab-stats/index.js +1 -1
- package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.js +39 -26
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.d.ts +47 -0
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.js +34 -0
- package/dist/components/puck-block/pricing-sections/single-pricing-card/index.d.ts +0 -22
- package/dist/components/puck-block/pricing-sections/single-pricing-card/index.js +1 -1
- package/dist/components/puck-block/pricing-sections/split-pricing/component.js +3 -3
- package/dist/components/puck-block/pricing-sections/split-pricing/index.d.ts +28 -22
- package/dist/components/puck-block/pricing-sections/split-pricing/index.js +8 -1
- package/dist/components/puck-block/registry.generated.d.ts +13408 -0
- package/dist/components/puck-block/registry.generated.js +558 -0
- package/dist/components/puck-block/showcase-sections/compact-timeline/index.d.ts +1 -1
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.d.ts +1 -1
- package/dist/components/puck-block/showcase-sections/single-column-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/tab-timeline/component.js +1 -1
- package/dist/components/puck-block/showcase-sections/tab-timeline/index.d.ts +1 -23
- package/dist/components/puck-block/showcase-sections/tab-timeline/index.js +1 -1
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/team-sections/team-carousel/index.d.ts +1 -23
- package/dist/components/puck-block/team-sections/team-carousel/index.js +1 -2
- package/dist/components/puck-block/team-sections/team-grid/index.d.ts +1 -23
- package/dist/components/puck-block/team-sections/team-grid/index.js +1 -2
- package/dist/components/puck-block/team-sections/team-inline-card/index.d.ts +1 -23
- package/dist/components/puck-block/team-sections/team-inline-card/index.js +1 -2
- package/dist/components/puck-block/team-sections/team-two-column/index.d.ts +1 -1
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.js +2 -2
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/index.d.ts +1 -1
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.js +2 -2
- package/dist/components/puck-block/text-sections/aside-nav-content/index.d.ts +0 -22
- package/dist/components/puck-block/text-sections/aside-nav-content/index.js +1 -1
- package/dist/components/puck-block/text-sections/blog-article/index.d.ts +0 -22
- package/dist/components/puck-block/text-sections/blog-article/index.js +1 -1
- package/dist/components/puck-block/text-sections/prose-content/component.js +1 -1
- package/dist/components/puck-block/text-sections/prose-sidebar/index.d.ts +1 -23
- package/dist/components/puck-block/text-sections/side-media-content/component.js +1 -1
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/component.js +3 -3
- package/dist/components/puck-block/text-sections/text-header/index.d.ts +2 -2
- package/dist/components/puck-core/core/props/content.js +41 -1
- package/dist/components/puck-core/core/props/form.js +76 -0
- package/dist/components/puck-core/core/props/index.js +34 -0
- package/dist/components/puck-core/core/props/interactive.js +17 -0
- package/dist/components/puck-core/core/props/media.js +14 -5
- package/dist/components/puck-core/core/styles.d.ts +1 -1
- package/dist/components/{puck-base → puck-core}/core/styles.js +3 -1
- package/dist/components/{puck-base → puck-core}/core/with-editable.js +1 -1
- package/dist/components/puck-core/fields/action-field.js +1 -1
- package/dist/components/puck-core/fields/array-field.d.ts +7 -0
- package/dist/components/puck-core/fields/array-field.js +229 -0
- package/dist/components/{puck-base → puck-core}/fields/auto-field.js +11 -0
- package/dist/components/{puck-base → puck-core/fields}/image-upload-field.js +5 -5
- package/dist/components/puck-core/fields/index.d.ts +1 -0
- package/dist/components/{puck-base → puck-core}/fields/location-field.js +1 -1
- package/dist/components/{puck-base → puck-core}/fields/object-field.js +1 -1
- package/dist/components/puck-core/index.d.ts +1 -0
- package/dist/components/{puck-base → puck-core}/inline-editable.js +1 -1
- package/dist/index.js +121 -104
- 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
- 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
- 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
- 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
- package/package.json +4 -1
- package/dist/components/puck-base/core/fields.d.ts +0 -827
- package/dist/components/puck-base/core/fields.js +0 -267
- package/dist/components/puck-base/core/hooks.d.ts +0 -19
- package/dist/components/puck-base/core/icon-catalog.d.ts +0 -14
- package/dist/components/puck-base/core/icon-catalog.js +0 -193
- package/dist/components/puck-base/core/styles.d.ts +0 -1942
- package/dist/components/puck-base/core/types.d.ts +0 -20
- package/dist/components/puck-base/core/types.js +0 -26
- package/dist/components/puck-base/core/utils.d.ts +0 -5
- package/dist/components/puck-base/core/with-editable.d.ts +0 -16
- package/dist/components/puck-base/error-boundary.d.ts +0 -4
- package/dist/components/puck-base/fields/action-field.d.ts +0 -30
- package/dist/components/puck-base/fields/action-field.js +0 -265
- package/dist/components/puck-base/fields/auto-field.d.ts +0 -2
- package/dist/components/puck-base/fields/color-field.d.ts +0 -6
- package/dist/components/puck-base/fields/index.d.ts +0 -8
- package/dist/components/puck-base/fields/location-field.d.ts +0 -44
- package/dist/components/puck-base/fields/object-field.d.ts +0 -8
- package/dist/components/puck-base/fields/radio-toggle-field.d.ts +0 -10
- package/dist/components/puck-base/fields/types.d.ts +0 -29
- package/dist/components/puck-base/fields/virtualized-select-field.d.ts +0 -13
- package/dist/components/puck-base/icon-picker-field.d.ts +0 -8
- package/dist/components/puck-base/icon-picker-field.js +0 -153
- package/dist/components/puck-base/image-upload-field.d.ts +0 -7
- package/dist/components/puck-base/inline-editable.d.ts +0 -14
- package/dist/components/puck-base/use-upload.d.ts +0 -42
- /package/dist/components/{puck-base → puck-core}/core/hooks.js +0 -0
- /package/dist/components/{puck-base → puck-core}/core/utils.js +0 -0
- /package/dist/components/{puck-base → puck-core}/error-boundary.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/color-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/radio-toggle-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/virtualized-select-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/use-upload.js +0 -0
package/dist/index.js
CHANGED
|
@@ -67,52 +67,54 @@ import { default as default67 } from "./components/puck-block/banner-sections/sc
|
|
|
67
67
|
import { default as default68 } from "./components/puck-block/hero-sections/scroll-zoom-hero/index.js";
|
|
68
68
|
import { default as default69 } from "./components/shadcn/badge-promo.js";
|
|
69
69
|
import { default as default70 } from "./components/puck-block/text-sections/side-media-content/index.js";
|
|
70
|
-
import { default as default71 } from "./components/puck-block/
|
|
71
|
-
import { default as default72 } from "./components/puck-block/
|
|
72
|
-
import { default as default73 } from "./components/puck-block/
|
|
73
|
-
import { default as default74 } from "./components/puck-block/
|
|
74
|
-
import { default as default75 } from "./components/puck-block/
|
|
75
|
-
import { default as default76 } from "./components/puck-block/
|
|
76
|
-
import { default as default77 } from "./components/puck-block/
|
|
77
|
-
import { default as default78 } from "./components/puck-block/faq-sections/stacked-
|
|
78
|
-
import { default as default79 } from "./components/puck-block/
|
|
79
|
-
import { default as default80 } from "./components/puck-block/
|
|
80
|
-
import { default as default81 } from "./components/puck-block/
|
|
81
|
-
import { default as default82 } from "./components/puck-block/
|
|
82
|
-
import { default as default83 } from "./components/puck-block/
|
|
83
|
-
import { default as default84 } from "./components/puck-block/
|
|
84
|
-
import { default as default85 } from "./components/puck-block/
|
|
85
|
-
import { default as default86 } from "./components/puck-block/
|
|
86
|
-
import { default as default87 } from "./components/puck-block/
|
|
87
|
-
import { default as default88 } from "./components/puck-block/
|
|
88
|
-
import { default as default89 } from "./components/puck-block/
|
|
89
|
-
import { default as default90 } from "./components/puck-block/pricing-sections/tab-
|
|
90
|
-
import { default as default91 } from "./components/puck-block/
|
|
91
|
-
import { default as default92 } from "./components/puck-block/
|
|
92
|
-
import { default as default93 } from "./components/puck-block/
|
|
93
|
-
import { default as default94 } from "./components/puck-block/
|
|
94
|
-
import { default as default95 } from "./components/puck-block/team-sections/team-
|
|
95
|
-
import { default as default96 } from "./components/puck-block/team-sections/team-
|
|
96
|
-
import { default as default97 } from "./components/puck-block/team-sections/team-
|
|
97
|
-
import { default as default98 } from "./components/puck-block/team-sections/team-
|
|
98
|
-
import { default as default99 } from "./components/puck-block/
|
|
99
|
-
import { default as default100 } from "./components/puck-block/testimonial-sections/testimonial-
|
|
100
|
-
import { default as default101 } from "./components/puck-block/
|
|
101
|
-
import { default as default102 } from "./components/puck-block/
|
|
102
|
-
import { default as default103 } from "./components/puck-block/
|
|
103
|
-
import { default as default104 } from "./components/puck-block/
|
|
104
|
-
import { default as default105 } from "./components/puck-block/
|
|
105
|
-
import { default as default106 } from "./components/puck-block/
|
|
106
|
-
import { default as default107 } from "./components/puck-block/
|
|
107
|
-
import { default as default108 } from "./components/puck-block/hero-sections/
|
|
108
|
-
import { default as default109 } from "./components/puck-
|
|
109
|
-
import {
|
|
70
|
+
import { default as default71 } from "./components/puck-block/cta-sections/side-media-cta/index.js";
|
|
71
|
+
import { default as default72 } from "./components/puck-block/showcase-sections/single-column-timeline/index.js";
|
|
72
|
+
import { default as default73 } from "./components/puck-block/pricing-sections/single-pricing-card/index.js";
|
|
73
|
+
import { default as default74 } from "./components/puck-block/gallery-sections/split-carousel/index.js";
|
|
74
|
+
import { default as default75 } from "./components/puck-block/contact-sections/split-info-form/index.js";
|
|
75
|
+
import { default as default76 } from "./components/puck-block/pricing-sections/split-pricing/index.js";
|
|
76
|
+
import { default as default77 } from "./components/puck-block/metrics-sections/split-stats/index.js";
|
|
77
|
+
import { default as default78 } from "./components/puck-block/faq-sections/stacked-accordion-faq/index.js";
|
|
78
|
+
import { default as default79 } from "./components/puck-block/faq-sections/stacked-static-faq/index.js";
|
|
79
|
+
import { default as default80 } from "./components/puck-block/header-sections/standard-navbar/index.js";
|
|
80
|
+
import { default as default81 } from "./components/puck-block/gallery-sections/static-grid/index.js";
|
|
81
|
+
import { default as default82 } from "./components/puck-block/hero-sections/sticky-expand-hero/index.js";
|
|
82
|
+
import { default as default83 } from "./components/puck-block/showcase-sections/sticky-scroll-timeline/index.js";
|
|
83
|
+
import { default as default84 } from "./components/puck-block/testimonial-sections/sticky-testimonial/index.js";
|
|
84
|
+
import { default as default85 } from "./components/puck-block/text-sections/sticky-text-multi-image/index.js";
|
|
85
|
+
import { default as default86 } from "./components/puck-block/hero-sections/sticky-video-hero/index.js";
|
|
86
|
+
import { default as default87 } from "./components/puck-block/feature-sections/tab-feature/index.js";
|
|
87
|
+
import { default as default88 } from "./components/puck-block/hero-sections/tab-hero/index.js";
|
|
88
|
+
import { default as default89 } from "./components/puck-block/contact-sections/tab-locations/index.js";
|
|
89
|
+
import { default as default90 } from "./components/puck-block/pricing-sections/tab-pricing-grid/index.js";
|
|
90
|
+
import { default as default91 } from "./components/puck-block/pricing-sections/tab-single-pricing/index.js";
|
|
91
|
+
import { default as default92 } from "./components/puck-block/metrics-sections/tab-stats/index.js";
|
|
92
|
+
import { default as default93 } from "./components/puck-block/testimonial-sections/tab-testimonial/index.js";
|
|
93
|
+
import { default as default94 } from "./components/puck-block/showcase-sections/tab-timeline/index.js";
|
|
94
|
+
import { default as default95 } from "./components/puck-block/team-sections/team-carousel/index.js";
|
|
95
|
+
import { default as default96 } from "./components/puck-block/team-sections/team-grid/index.js";
|
|
96
|
+
import { default as default97 } from "./components/puck-block/team-sections/team-inline-card/index.js";
|
|
97
|
+
import { default as default98 } from "./components/puck-block/team-sections/team-sticky-scatter/index.js";
|
|
98
|
+
import { default as default99 } from "./components/puck-block/team-sections/team-two-column/index.js";
|
|
99
|
+
import { default as default100 } from "./components/puck-block/testimonial-sections/testimonial-card-grid/index.js";
|
|
100
|
+
import { default as default101 } from "./components/puck-block/testimonial-sections/testimonial-carousel/index.js";
|
|
101
|
+
import { default as default102 } from "./components/puck-block/cta-sections/text-block-cta/index.js";
|
|
102
|
+
import { default as default103 } from "./components/puck-block/feature-sections/text-media-split/index.js";
|
|
103
|
+
import { default as default104 } from "./components/puck-block/feature-sections/text-only-section/index.js";
|
|
104
|
+
import { default as default105 } from "./components/puck-block/hero-sections/three-image-parallax-hero/index.js";
|
|
105
|
+
import { default as default106 } from "./components/puck-block/faq-sections/two-column-accordion-faq/index.js";
|
|
106
|
+
import { default as default107 } from "./components/puck-block/faq-sections/two-column-static-faq/index.js";
|
|
107
|
+
import { default as default108 } from "./components/puck-block/hero-sections/vertical-gallery-hero/index.js";
|
|
108
|
+
import { default as default109 } from "./components/puck-block/showcase-sections/zigzag-timeline/index.js";
|
|
109
|
+
import { default as default110 } from "./components/puck-block/hero-sections/zoom-grid-hero/index.js";
|
|
110
|
+
import { default as default111 } from "./components/puck-core/use-upload.js";
|
|
111
|
+
import { ACTION_TYPE_FIELD_MAP, ACTION_TYPE_OPTIONS, ActionField, DownloadActionFields, EmailActionFields, ExternalActionFields, PageActionFields, PhoneActionFields, SectionActionFields } from "./components/puck-core/fields/action-field.js";
|
|
110
112
|
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "./components/shadcn/accordion.js";
|
|
111
113
|
import { Alert, AlertAction, AlertDescription, AlertTitle } from "./components/shadcn/alert.js";
|
|
112
114
|
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from "./components/shadcn/alert-dialog.js";
|
|
113
115
|
import { AnimatedThemeToggler } from "./components/shadcn/animated-theme-toggler.js";
|
|
114
116
|
import { AspectRatio } from "./components/shadcn/aspect-ratio.js";
|
|
115
|
-
import { AutoField } from "./components/puck-
|
|
117
|
+
import { AutoField } from "./components/puck-core/fields/auto-field.js";
|
|
116
118
|
import { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage } from "./components/shadcn/avatar.js";
|
|
117
119
|
import { Badge, badgeVariants } from "./components/shadcn/badge.js";
|
|
118
120
|
import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "./components/shadcn/breadcrumb.js";
|
|
@@ -143,13 +145,13 @@ import { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, Dr
|
|
|
143
145
|
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./components/shadcn/dropdown-menu.js";
|
|
144
146
|
import { EditorContextProvider, useEditorContext } from "./components/puck-core/core/context/editor-context.js";
|
|
145
147
|
import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "./components/shadcn/empty.js";
|
|
146
|
-
import { ErrorBoundary } from "./components/puck-
|
|
148
|
+
import { ErrorBoundary } from "./components/puck-core/error-boundary.js";
|
|
147
149
|
import { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle } from "./components/shadcn/field.js";
|
|
148
150
|
import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from "./components/shadcn/form.js";
|
|
149
151
|
import { GradientText } from "./components/puck-base/gradient-text.js";
|
|
150
152
|
import { HoverCard, HoverCardContent, HoverCardTrigger } from "./components/shadcn/hover-card.js";
|
|
151
|
-
import { ImageUploadField } from "./components/puck-
|
|
152
|
-
import { InlineEditable } from "./components/puck-
|
|
153
|
+
import { ImageUploadField } from "./components/puck-core/fields/image-upload-field.js";
|
|
154
|
+
import { InlineEditable } from "./components/puck-core/inline-editable.js";
|
|
153
155
|
import { Input } from "./components/shadcn/input.js";
|
|
154
156
|
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea } from "./components/shadcn/input-group.js";
|
|
155
157
|
import { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from "./components/shadcn/input-otp.js";
|
|
@@ -166,8 +168,10 @@ import { Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitl
|
|
|
166
168
|
import { Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue } from "./components/shadcn/progress.js";
|
|
167
169
|
import { RadioGroup, RadioGroupItem } from "./components/shadcn/radio-group.js";
|
|
168
170
|
import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "./components/shadcn/resizable.js";
|
|
171
|
+
import { SafeDynamicIcon } from "./components/puck-base/safe-dynamic-icon.js";
|
|
169
172
|
import { ScrollArea, ScrollBar } from "./components/shadcn/scroll-area.js";
|
|
170
173
|
import { SectionIdProvider, useSectionId } from "./components/puck-core/core/context/section-id-context.js";
|
|
174
|
+
import { SectionWrapper } from "./components/puck-core/section-wrapper.js";
|
|
171
175
|
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from "./components/shadcn/select.js";
|
|
172
176
|
import { Separator } from "./components/shadcn/separator.js";
|
|
173
177
|
import { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from "./components/shadcn/sheet.js";
|
|
@@ -187,19 +191,23 @@ import { ToggleGroup, ToggleGroupItem } from "./components/shadcn/toggle-group.j
|
|
|
187
191
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./components/shadcn/tooltip.js";
|
|
188
192
|
import { TweetCard, truncate } from "./components/shadcn/tweet-card.js";
|
|
189
193
|
import { TweetCardClient } from "./components/shadcn/tweet-card-client.js";
|
|
190
|
-
import {
|
|
191
|
-
import { backgroundColor, backgroundImage, padding, paddingDefaults, paddingLevel, sectionOverlay, sectionStyle } from "./components/puck-
|
|
194
|
+
import { actionField, actionDefaults, badgeField, buttonField, buttonsField, iconField, resolveActionUrl } from "./components/puck-core/core/props/interactive.js";
|
|
195
|
+
import { backgroundColor, backgroundImage, padding, paddingDefaults, paddingLevel, sectionOverlay, sectionStyle } from "./components/puck-core/core/styles.js";
|
|
192
196
|
import { base64ToFile, base64ToUrl, blobToBase64, blobToUrl, convertBase64ToBlob, structureFile } from "./utils/utils-canvas.js";
|
|
197
|
+
import { buildComponents, categories, confMap, getComponentDefaultProps, sectionsMap } from "./components/puck-block/registry.generated.js";
|
|
198
|
+
import { cardField, cardsField, descriptionField, featuresField, headingField } from "./components/puck-core/core/props/content.js";
|
|
193
199
|
import { cn, liquidGlass } from "./utils/css-utils.js";
|
|
200
|
+
import { contentFields, contentFieldsWithFeatures } from "./components/puck-core/core/props/index.js";
|
|
194
201
|
import { downloadImage, downloadImageClient, fetchHasOnlineFile, getBase64Client, isValidFileSize, isValidFileType } from "./utils/utils-image.js";
|
|
202
|
+
import { formFieldField, formFieldDefaults, formField, formDefaults } from "./components/puck-core/core/props/form.js";
|
|
195
203
|
import { filterEmptyValues } from "./utils/utils-common.js";
|
|
196
|
-
import { findComponentById, getRandomAdjective } from "./components/puck-
|
|
204
|
+
import { findComponentById, getRandomAdjective } from "./components/puck-core/core/utils.js";
|
|
197
205
|
import { formatLargeNumber, getUrlWithParams } from "./utils/utils-api.js";
|
|
198
206
|
import { formatTimeAgo, formatTimeString, getTimeDetails, getTimestamp, sleep, timeAgo } from "./utils/utils-time.js";
|
|
207
|
+
import { getPlaceholderImageUrl, imageField, image16x9Placeholder, image1x1Placeholder, image9x16Placeholder, imagesField } from "./components/puck-core/core/props/media.js";
|
|
199
208
|
import { nanoid } from "./utils/utils-random.js";
|
|
200
|
-
import {
|
|
201
|
-
import {
|
|
202
|
-
import { withEditable } from "./components/puck-base/core/with-editable.js";
|
|
209
|
+
import { usePuckAppState, usePuckConfig, usePuckDispatch, usePuckGetSelectorForId, usePuckHistory } from "./components/puck-core/core/hooks.js";
|
|
210
|
+
import { withEditable } from "./components/puck-core/core/with-editable.js";
|
|
203
211
|
export {
|
|
204
212
|
ACTION_TYPE_FIELD_MAP,
|
|
205
213
|
ACTION_TYPE_OPTIONS,
|
|
@@ -534,6 +542,7 @@ export {
|
|
|
534
542
|
ResizableHandle,
|
|
535
543
|
ResizablePanel,
|
|
536
544
|
ResizablePanelGroup,
|
|
545
|
+
SafeDynamicIcon,
|
|
537
546
|
default62 as ScatterParallaxHeroConf,
|
|
538
547
|
ScrollArea,
|
|
539
548
|
ScrollBar,
|
|
@@ -545,6 +554,7 @@ export {
|
|
|
545
554
|
default68 as ScrollZoomHeroConf,
|
|
546
555
|
SectionActionFields,
|
|
547
556
|
SectionIdProvider,
|
|
557
|
+
SectionWrapper,
|
|
548
558
|
Select,
|
|
549
559
|
SelectContent,
|
|
550
560
|
SelectGroup,
|
|
@@ -566,6 +576,7 @@ export {
|
|
|
566
576
|
SheetTrigger,
|
|
567
577
|
default69 as ShinyPromoBadge,
|
|
568
578
|
default70 as SideMediaContentConf,
|
|
579
|
+
default71 as SideMediaCtaConf,
|
|
569
580
|
Sidebar,
|
|
570
581
|
SidebarContent,
|
|
571
582
|
SidebarFooter,
|
|
@@ -589,35 +600,35 @@ export {
|
|
|
589
600
|
SidebarRail,
|
|
590
601
|
SidebarSeparator,
|
|
591
602
|
SidebarTrigger,
|
|
592
|
-
|
|
593
|
-
|
|
603
|
+
default72 as SingleColumnTimelineConf,
|
|
604
|
+
default73 as SinglePricingCardConf,
|
|
594
605
|
Skeleton,
|
|
595
606
|
Slider,
|
|
596
607
|
SparklesCore,
|
|
597
608
|
Spinner,
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
609
|
+
default74 as SplitCarouselConf,
|
|
610
|
+
default75 as SplitInfoFormConf,
|
|
611
|
+
default76 as SplitPricingConf,
|
|
612
|
+
default77 as SplitStatsConf,
|
|
602
613
|
Spotlight,
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
614
|
+
default78 as StackedAccordionFaqConf,
|
|
615
|
+
default79 as StackedStaticFaqConf,
|
|
616
|
+
default80 as StandardNavbarConf,
|
|
617
|
+
default81 as StaticGridConf,
|
|
618
|
+
default82 as StickyExpandHeroConf,
|
|
619
|
+
default83 as StickyScrollTimelineConf,
|
|
620
|
+
default84 as StickyTestimonialConf,
|
|
621
|
+
default85 as StickyTextMultiImageConf,
|
|
622
|
+
default86 as StickyVideoHeroConf,
|
|
612
623
|
Switch,
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
624
|
+
default87 as TabFeatureConf,
|
|
625
|
+
default88 as TabHeroConf,
|
|
626
|
+
default89 as TabLocationsConf,
|
|
627
|
+
default90 as TabPricingGridConf,
|
|
628
|
+
default91 as TabSinglePricingConf,
|
|
629
|
+
default92 as TabStatsConf,
|
|
630
|
+
default93 as TabTestimonialConf,
|
|
631
|
+
default94 as TabTimelineConf,
|
|
621
632
|
Table,
|
|
622
633
|
TableBody,
|
|
623
634
|
TableCaption,
|
|
@@ -630,17 +641,18 @@ export {
|
|
|
630
641
|
TabsContent,
|
|
631
642
|
TabsList,
|
|
632
643
|
TabsTrigger,
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
644
|
+
default95 as TeamCarouselConf,
|
|
645
|
+
default96 as TeamGridConf,
|
|
646
|
+
default97 as TeamInlineCardConf,
|
|
647
|
+
default98 as TeamStickyScatterConf,
|
|
648
|
+
default99 as TeamTwoColumnConf,
|
|
649
|
+
default100 as TestimonialCardGridConf,
|
|
650
|
+
default101 as TestimonialCarouselConf,
|
|
651
|
+
default102 as TextBlockCtaConf,
|
|
652
|
+
default103 as TextMediaSplitConf,
|
|
653
|
+
default104 as TextOnlySectionConf,
|
|
642
654
|
Textarea,
|
|
643
|
-
|
|
655
|
+
default105 as ThreeImageParallaxHeroConf,
|
|
644
656
|
Toaster,
|
|
645
657
|
Toggle,
|
|
646
658
|
ToggleGroup,
|
|
@@ -651,60 +663,64 @@ export {
|
|
|
651
663
|
TooltipTrigger,
|
|
652
664
|
TweetCard,
|
|
653
665
|
TweetCardClient,
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
action,
|
|
666
|
+
default106 as TwoColumnAccordionFaqConf,
|
|
667
|
+
default107 as TwoColumnStaticFaqConf,
|
|
668
|
+
default108 as VerticalGalleryHeroConf,
|
|
669
|
+
default109 as ZigzagTimelineConf,
|
|
670
|
+
default110 as ZoomGridHeroConf,
|
|
671
|
+
actionField as action,
|
|
660
672
|
actionDefaults,
|
|
661
673
|
backgroundColor,
|
|
662
674
|
backgroundImage,
|
|
663
|
-
badge,
|
|
675
|
+
badgeField as badge,
|
|
664
676
|
badgeVariants,
|
|
665
677
|
base64ToFile,
|
|
666
678
|
base64ToUrl,
|
|
667
679
|
blobToBase64,
|
|
668
680
|
blobToUrl,
|
|
669
|
-
|
|
681
|
+
buildComponents,
|
|
682
|
+
buttonField as button,
|
|
670
683
|
buttonGroupVariants,
|
|
671
684
|
buttonVariants,
|
|
672
|
-
buttons,
|
|
673
|
-
card,
|
|
674
|
-
cards,
|
|
685
|
+
buttonsField as buttons,
|
|
686
|
+
cardField as card,
|
|
687
|
+
cardsField as cards,
|
|
688
|
+
categories,
|
|
675
689
|
cn,
|
|
690
|
+
confMap,
|
|
676
691
|
contentFields,
|
|
677
692
|
contentFieldsWithFeatures,
|
|
678
693
|
convertBase64ToBlob,
|
|
679
|
-
description,
|
|
694
|
+
descriptionField as description,
|
|
680
695
|
downloadImage,
|
|
681
696
|
downloadImageClient,
|
|
682
|
-
features,
|
|
697
|
+
featuresField as features,
|
|
683
698
|
fetchHasOnlineFile,
|
|
684
|
-
field,
|
|
685
|
-
fieldDefaults,
|
|
699
|
+
formFieldField as field,
|
|
700
|
+
formFieldDefaults as fieldDefaults,
|
|
686
701
|
fieldTypes,
|
|
687
702
|
filterEmptyValues,
|
|
688
703
|
findComponentById,
|
|
689
|
-
form,
|
|
704
|
+
formField as form,
|
|
690
705
|
formDefaults,
|
|
691
706
|
formMethods,
|
|
692
707
|
formatLargeNumber,
|
|
693
708
|
formatTimeAgo,
|
|
694
709
|
formatTimeString,
|
|
695
710
|
getBase64Client,
|
|
711
|
+
getComponentDefaultProps,
|
|
696
712
|
getPlaceholderImageUrl,
|
|
697
713
|
getRandomAdjective,
|
|
698
714
|
getTimeDetails,
|
|
699
715
|
getTimestamp,
|
|
700
716
|
getUrlWithParams,
|
|
701
|
-
heading,
|
|
702
|
-
icon,
|
|
703
|
-
image,
|
|
717
|
+
headingField as heading,
|
|
718
|
+
iconField as icon,
|
|
719
|
+
imageField as image,
|
|
704
720
|
image16x9Placeholder,
|
|
705
721
|
image1x1Placeholder,
|
|
706
722
|
image9x16Placeholder,
|
|
707
|
-
images,
|
|
723
|
+
imagesField as images,
|
|
708
724
|
isValidFileSize,
|
|
709
725
|
isValidFileType,
|
|
710
726
|
liquidGlass,
|
|
@@ -716,6 +732,7 @@ export {
|
|
|
716
732
|
resolveActionUrl,
|
|
717
733
|
sectionOverlay,
|
|
718
734
|
sectionStyle,
|
|
735
|
+
sectionsMap,
|
|
719
736
|
sleep,
|
|
720
737
|
structureFile,
|
|
721
738
|
tabsListVariants,
|
|
@@ -733,6 +750,6 @@ export {
|
|
|
733
750
|
usePuckHistory,
|
|
734
751
|
useSectionId,
|
|
735
752
|
useSidebar,
|
|
736
|
-
|
|
753
|
+
default111 as useUpload,
|
|
737
754
|
withEditable
|
|
738
755
|
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React__default, { useState, useCallback } from "react";
|
|
2
|
+
const hiddenStyles = {
|
|
3
|
+
display: "none"
|
|
4
|
+
};
|
|
5
|
+
function HiddenText(_ref) {
|
|
6
|
+
let {
|
|
7
|
+
id,
|
|
8
|
+
value
|
|
9
|
+
} = _ref;
|
|
10
|
+
return React__default.createElement("div", {
|
|
11
|
+
id,
|
|
12
|
+
style: hiddenStyles
|
|
13
|
+
}, value);
|
|
14
|
+
}
|
|
15
|
+
function LiveRegion(_ref) {
|
|
16
|
+
let {
|
|
17
|
+
id,
|
|
18
|
+
announcement,
|
|
19
|
+
ariaLiveType = "assertive"
|
|
20
|
+
} = _ref;
|
|
21
|
+
const visuallyHidden = {
|
|
22
|
+
position: "fixed",
|
|
23
|
+
top: 0,
|
|
24
|
+
left: 0,
|
|
25
|
+
width: 1,
|
|
26
|
+
height: 1,
|
|
27
|
+
margin: -1,
|
|
28
|
+
border: 0,
|
|
29
|
+
padding: 0,
|
|
30
|
+
overflow: "hidden",
|
|
31
|
+
clip: "rect(0 0 0 0)",
|
|
32
|
+
clipPath: "inset(100%)",
|
|
33
|
+
whiteSpace: "nowrap"
|
|
34
|
+
};
|
|
35
|
+
return React__default.createElement("div", {
|
|
36
|
+
id,
|
|
37
|
+
style: visuallyHidden,
|
|
38
|
+
role: "status",
|
|
39
|
+
"aria-live": ariaLiveType,
|
|
40
|
+
"aria-atomic": true
|
|
41
|
+
}, announcement);
|
|
42
|
+
}
|
|
43
|
+
function useAnnouncement() {
|
|
44
|
+
const [announcement, setAnnouncement] = useState("");
|
|
45
|
+
const announce = useCallback((value) => {
|
|
46
|
+
if (value != null) {
|
|
47
|
+
setAnnouncement(value);
|
|
48
|
+
}
|
|
49
|
+
}, []);
|
|
50
|
+
return {
|
|
51
|
+
announce,
|
|
52
|
+
announcement
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
HiddenText,
|
|
57
|
+
LiveRegion,
|
|
58
|
+
useAnnouncement
|
|
59
|
+
};
|