dune-react 0.0.28 → 0.0.30
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/puck-block/banner-sections/scroll-driven-marquee/scroll-driven-marquee.js +1 -1
- package/dist/components/puck-block/banner-sections/scroll-parallax-text/scroll-parallax-text.js +1 -1
- package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.js +1 -1
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/fullscreen-portfolio.js +1 -1
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/interactive-portfolio.js +1 -1
- package/dist/components/puck-block/gallery-sections/scroll-parallax/scroll-parallax.js +1 -1
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/scroll-parallax-portfolio.js +1 -1
- package/dist/components/puck-block/header-sections/centered-navbar/centered-navbar.js +1 -1
- package/dist/components/puck-block/header-sections/drawer-navbar/drawer-navbar.js +1 -1
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/floating-bordered-navbar.js +1 -1
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/fullscreen-overlay-navbar.js +1 -1
- package/dist/components/puck-block/header-sections/mega-menu-navbar/mega-menu-navbar.js +1 -1
- package/dist/components/puck-block/header-sections/standard-navbar/standard-navbar.js +1 -1
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/component.js +1 -1
- package/dist/components/puck-block/hero-sections/grid-expand-hero/component.js +1 -1
- package/dist/components/puck-block/hero-sections/mouse-track-hero/component.js +1 -1
- package/dist/components/puck-block/hero-sections/parallax-images-hero/component.js +1 -1
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/component.js +1 -1
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/component.js +1 -1
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/component.js +1 -1
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/component.js +1 -1
- package/dist/components/puck-block/hero-sections/sticky-video-hero/component.js +1 -1
- package/dist/components/puck-block/hero-sections/tab-hero/component.js +1 -1
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.js +1 -1
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/component.js +1 -1
- package/dist/components/puck-block/showcase-sections/single-column-timeline/component.js +1 -1
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/component.js +1 -1
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/component.js +1 -1
- package/dist/components/shadcn/resizable-navbar.js +1 -1
- package/dist/components/ui-block/cover/index.js +1 -1
- package/dist/components/ui-block/sparkles/index.js +1 -1
- package/dist/components/ui-block/spotlight/index.js +1 -1
- package/package.json +2 -2
package/dist/components/puck-block/banner-sections/scroll-driven-marquee/scroll-driven-marquee.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useScroll, useTransform, motion } from "motion/react";
|
|
3
4
|
import { useRef } from "react";
|
|
4
5
|
import { cn } from "../../../../utils/css-utils.js";
|
|
5
6
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
6
7
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
7
8
|
import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
|
|
8
|
-
import { useScroll, useTransform, motion } from "framer-motion";
|
|
9
9
|
const ScrollDrivenMarquee = (props) => {
|
|
10
10
|
const {
|
|
11
11
|
headings = [],
|
package/dist/components/puck-block/banner-sections/scroll-parallax-text/scroll-parallax-text.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useRef } from "react";
|
|
4
|
+
import { useScroll, useTransform, motion } from "motion/react";
|
|
4
5
|
import { cn } from "../../../../utils/css-utils.js";
|
|
5
6
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
6
7
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
7
8
|
import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
|
|
8
|
-
import { useScroll, useTransform, motion } from "framer-motion";
|
|
9
9
|
const ScrollParallaxText = (props) => {
|
|
10
10
|
const {
|
|
11
11
|
headings = [],
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState } from "react";
|
|
4
|
+
import { motion } from "motion/react";
|
|
4
5
|
import { cn } from "../../../../utils/css-utils.js";
|
|
5
6
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
6
7
|
import { resolveActionUrl } from "../../../puck-core/core/props/interactive.js";
|
|
7
|
-
import { motion } from "framer-motion";
|
|
8
8
|
const getDirection = (ev, obj) => {
|
|
9
9
|
const { width: w, height: h, left, top } = obj.getBoundingClientRect();
|
|
10
10
|
const centerX = left + w / 2;
|
package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/fullscreen-portfolio.js
CHANGED
|
@@ -3,10 +3,10 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useRef } from "react";
|
|
4
4
|
import { Button } from "../../../shadcn/button.js";
|
|
5
5
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
6
|
+
import { useScroll, useTransform, motion } from "motion/react";
|
|
6
7
|
import { cn } from "../../../../utils/css-utils.js";
|
|
7
8
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
8
9
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
9
|
-
import { useScroll, useTransform, motion } from "framer-motion";
|
|
10
10
|
const FullscreenPortfolio = (props) => {
|
|
11
11
|
const { projects, styles } = {
|
|
12
12
|
...FullscreenPortfolioDefaults,
|
package/dist/components/puck-block/gallery-sections/interactive-portfolio/interactive-portfolio.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useRef, useState } from "react";
|
|
4
|
+
import { motion } from "motion/react";
|
|
4
5
|
import { cn } from "../../../../utils/css-utils.js";
|
|
5
6
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
6
7
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
7
|
-
import { motion } from "framer-motion";
|
|
8
8
|
const getDirection = (ev, obj) => {
|
|
9
9
|
const { width: w, height: h, left, top } = obj.getBoundingClientRect();
|
|
10
10
|
const centerX = left + w / 2;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useRef } from "react";
|
|
4
|
+
import { useScroll, useTransform, motion } from "motion/react";
|
|
4
5
|
import { cn } from "../../../../utils/css-utils.js";
|
|
5
6
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
6
7
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
7
8
|
import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
|
|
8
9
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
9
|
-
import { useScroll, useTransform, motion } from "framer-motion";
|
|
10
10
|
const ScrollParallax = (props) => {
|
|
11
11
|
const { heading, description, images, styles } = {
|
|
12
12
|
...ScrollParallaxDefaults,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useRef } from "react";
|
|
4
|
+
import { useScroll, useTransform, motion, useSpring, easeOut, easeInOut } from "motion/react";
|
|
4
5
|
import { cn } from "../../../../utils/css-utils.js";
|
|
5
6
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
6
7
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
7
8
|
import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
|
|
8
9
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
9
|
-
import { useScroll, useTransform, motion, useSpring, easeOut, easeInOut } from "framer-motion";
|
|
10
10
|
const ScrollParallaxPortfolio = (props) => {
|
|
11
11
|
const { projects: projects2, styles } = {
|
|
12
12
|
...ScrollParallaxPortfolioDefaults,
|
|
@@ -3,9 +3,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { Button } from "../../../shadcn/button.js";
|
|
5
5
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
6
|
+
import { motion } from "motion/react";
|
|
6
7
|
import { cn } from "../../../../utils/css-utils.js";
|
|
7
8
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
8
|
-
import { motion } from "framer-motion";
|
|
9
9
|
const CenteredNavbar = (props) => {
|
|
10
10
|
const { logo, navLinks, buttons, styles } = {
|
|
11
11
|
...CenteredNavbarDefaults,
|
|
@@ -3,9 +3,9 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { Button } from "../../../shadcn/button.js";
|
|
5
5
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
6
|
+
import { AnimatePresence, motion } from "motion/react";
|
|
6
7
|
import { cn } from "../../../../utils/css-utils.js";
|
|
7
8
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
8
|
-
import { AnimatePresence, motion } from "framer-motion";
|
|
9
9
|
const DrawerNavbar = (props) => {
|
|
10
10
|
const { logo, navLinks, buttons, styles } = {
|
|
11
11
|
...DrawerNavbarDefaults,
|
|
@@ -4,10 +4,10 @@ import { useState } from "react";
|
|
|
4
4
|
import { useMediaQuery } from "../../../../hooks/use-media-query.js";
|
|
5
5
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
6
6
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
7
|
+
import { motion, AnimatePresence } from "motion/react";
|
|
7
8
|
import { RxChevronDown } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/rx/index.js";
|
|
8
9
|
import { cn } from "../../../../utils/css-utils.js";
|
|
9
10
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
10
|
-
import { motion, AnimatePresence } from "framer-motion";
|
|
11
11
|
const FloatingBorderedNavbar = (props) => {
|
|
12
12
|
const { logo, navLinks, button, styles } = {
|
|
13
13
|
...FloatingBorderedNavbarDefaults,
|
|
@@ -3,9 +3,9 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { Button } from "../../../shadcn/button.js";
|
|
5
5
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
6
|
+
import { motion, AnimatePresence } from "motion/react";
|
|
6
7
|
import { cn } from "../../../../utils/css-utils.js";
|
|
7
8
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
8
|
-
import { motion, AnimatePresence } from "framer-motion";
|
|
9
9
|
const FullscreenOverlayNavbar = (props) => {
|
|
10
10
|
const { logo, navLinks, button, styles } = {
|
|
11
11
|
...FullscreenOverlayNavbarDefaults,
|
|
@@ -4,9 +4,9 @@ import { useState } from "react";
|
|
|
4
4
|
import { Button } from "../../../shadcn/button.js";
|
|
5
5
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
6
6
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
7
|
+
import { motion } from "motion/react";
|
|
7
8
|
import { cn } from "../../../../utils/css-utils.js";
|
|
8
9
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
9
|
-
import { motion } from "framer-motion";
|
|
10
10
|
const MegaMenuNavbar = (props) => {
|
|
11
11
|
const { logo, navLinks, buttons, styles } = { ...MegaMenuNavbarDefaults, ...props };
|
|
12
12
|
const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
|
|
@@ -4,10 +4,10 @@ import { useState } from "react";
|
|
|
4
4
|
import { Button } from "../../../shadcn/button.js";
|
|
5
5
|
import { useMediaQuery } from "../../../../hooks/use-media-query.js";
|
|
6
6
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
7
|
+
import { motion, AnimatePresence } from "motion/react";
|
|
7
8
|
import { RxChevronDown } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/rx/index.js";
|
|
8
9
|
import { cn } from "../../../../utils/css-utils.js";
|
|
9
10
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
10
|
-
import { motion, AnimatePresence } from "framer-motion";
|
|
11
11
|
const StandardNavbar = (props) => {
|
|
12
12
|
const { logo, navLinks, buttons, styles } = { ...StandardNavbarDefaults, ...props };
|
|
13
13
|
const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useRef } from "react";
|
|
4
|
+
import { useScroll, useTransform, motion } from "motion/react";
|
|
4
5
|
import { VideoIframe } from "../../../shadcn/video-iframe.js";
|
|
5
6
|
import { Dialog, DialogTrigger, DialogContent } from "../../../shadcn/dialog.js";
|
|
6
7
|
import { useMediaQuery } from "../../../../hooks/use-media-query.js";
|
|
@@ -10,7 +11,6 @@ import { CompoundImage } from "../../../puck-base/image.js";
|
|
|
10
11
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
11
12
|
import { cn } from "../../../../utils/css-utils.js";
|
|
12
13
|
import { FaCirclePlay } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/fa6/index.js";
|
|
13
|
-
import { useScroll, useTransform, motion } from "framer-motion";
|
|
14
14
|
const FullscreenVideoHero = (props) => {
|
|
15
15
|
const { heading, description, buttons = [], video = "", images = [{ src: "", alt: "" }], styles } = {
|
|
16
16
|
...FullscreenVideoHeroDefaults,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useRef } from "react";
|
|
4
|
+
import { useScroll, motion, useTransform } from "motion/react";
|
|
4
5
|
import { useMediaQuery } from "../../../../hooks/use-media-query.js";
|
|
5
6
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
6
7
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
@@ -8,7 +9,6 @@ import { CompoundImage } from "../../../puck-base/image.js";
|
|
|
8
9
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
9
10
|
import { cn } from "../../../../utils/css-utils.js";
|
|
10
11
|
import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
|
|
11
|
-
import { useScroll, motion, useTransform } from "framer-motion";
|
|
12
12
|
const GridExpandHero = (props) => {
|
|
13
13
|
const {
|
|
14
14
|
heading,
|
|
@@ -5,9 +5,9 @@ import { CompoundButton } from "../../../puck-base/button.js";
|
|
|
5
5
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
6
6
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
import { cn } from "../../../../utils/css-utils.js";
|
|
8
|
+
import { motion, useMotionValue, useSpring, useTransform } from "motion/react";
|
|
8
9
|
import { useCallback } from "react";
|
|
9
10
|
import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
|
|
10
|
-
import { motion, useMotionValue, useSpring, useTransform } from "framer-motion";
|
|
11
11
|
const imagePositions = {
|
|
12
12
|
group1: [
|
|
13
13
|
"bottom-[5%] left-[-8%] z-10 max-w-[18%] sm:bottom-[10%] lg:bottom-auto",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useScroll, useSpring, useTransform, motion } from "motion/react";
|
|
3
4
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
4
5
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
5
6
|
import { useRef } from "react";
|
|
@@ -7,7 +8,6 @@ import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
|
7
8
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
8
9
|
import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
|
|
9
10
|
import { cn } from "../../../../utils/css-utils.js";
|
|
10
|
-
import { useScroll, useSpring, useTransform, motion } from "framer-motion";
|
|
11
11
|
const ParallaxImagesHero = (props) => {
|
|
12
12
|
const { heading, description, buttons = [], images = [], styles } = {
|
|
13
13
|
...ParallaxImagesHeroDefaults,
|
|
@@ -7,7 +7,7 @@ import { CompoundImage } from "../../../puck-base/image.js";
|
|
|
7
7
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
8
8
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
9
9
|
import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
|
|
10
|
-
import { useScroll, useTransform, motion } from "
|
|
10
|
+
import { useScroll, useTransform, motion } from "motion/react";
|
|
11
11
|
const ScatterParallaxHero = (props) => {
|
|
12
12
|
const { heading, description, buttons = [], images = [], styles } = {
|
|
13
13
|
...ScatterParallaxHeroDefaults,
|
|
@@ -4,13 +4,13 @@ import { useState, useRef } from "react";
|
|
|
4
4
|
import { Dialog, DialogTrigger, DialogContent } from "../../../shadcn/dialog.js";
|
|
5
5
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
6
6
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
7
|
+
import { useScroll, useSpring, useTransform, motion } from "motion/react";
|
|
7
8
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
8
9
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
9
10
|
import { cn } from "../../../../utils/css-utils.js";
|
|
10
11
|
import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
|
|
11
12
|
import { FaCirclePlay } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/fa6/index.js";
|
|
12
13
|
import { CgSpinner } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/cg/index.js";
|
|
13
|
-
import { useScroll, useSpring, useTransform, motion } from "framer-motion";
|
|
14
14
|
const ScrollExpandVideoHero = (props) => {
|
|
15
15
|
const { heading, description, buttons = [], video = "", images = [{ src: "", alt: "" }], styles } = {
|
|
16
16
|
...ScrollExpandVideoHeroDefaults,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useRef } from "react";
|
|
4
|
+
import { useScroll, useTransform, motion } from "motion/react";
|
|
4
5
|
import { VideoIframe } from "../../../shadcn/video-iframe.js";
|
|
5
6
|
import { Dialog, DialogTrigger, DialogContent } from "../../../shadcn/dialog.js";
|
|
6
7
|
import { useMediaQuery } from "../../../../hooks/use-media-query.js";
|
|
@@ -11,7 +12,6 @@ import { CompoundImage } from "../../../puck-base/image.js";
|
|
|
11
12
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
12
13
|
import { cn } from "../../../../utils/css-utils.js";
|
|
13
14
|
import { FaCirclePlay } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/fa6/index.js";
|
|
14
|
-
import { useScroll, useTransform, motion } from "framer-motion";
|
|
15
15
|
const ScrollZoomHero = (props) => {
|
|
16
16
|
var _a, _b, _c, _d;
|
|
17
17
|
const {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useScroll, useSpring, useTransform, motion } from "motion/react";
|
|
3
4
|
import { useMediaQuery } from "../../../../hooks/use-media-query.js";
|
|
4
5
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
5
6
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
@@ -7,7 +8,6 @@ import { CompoundImage } from "../../../puck-base/image.js";
|
|
|
7
8
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
8
9
|
import { cn } from "../../../../utils/css-utils.js";
|
|
9
10
|
import { useRef } from "react";
|
|
10
|
-
import { useScroll, useSpring, useTransform, motion } from "framer-motion";
|
|
11
11
|
const StickyExpandHero = (props) => {
|
|
12
12
|
const { heading, description, buttons = [], images, styles } = {
|
|
13
13
|
...StickyExpandHeroDefaults,
|
|
@@ -4,12 +4,12 @@ import { useState, useRef } from "react";
|
|
|
4
4
|
import { Dialog, DialogTrigger, DialogContent } from "../../../shadcn/dialog.js";
|
|
5
5
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
6
6
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
7
|
+
import { useScroll, useTransform, motion } from "motion/react";
|
|
7
8
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
8
9
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
9
10
|
import { cn } from "../../../../utils/css-utils.js";
|
|
10
11
|
import { FaCirclePlay } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/fa6/index.js";
|
|
11
12
|
import { CgSpinner } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/cg/index.js";
|
|
12
|
-
import { useScroll, useTransform, motion } from "framer-motion";
|
|
13
13
|
const StickyVideoHero = (props) => {
|
|
14
14
|
const {
|
|
15
15
|
heading = "",
|
|
@@ -4,9 +4,9 @@ import { useState } from "react";
|
|
|
4
4
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from "../../../shadcn/tabs.js";
|
|
5
5
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
6
6
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
7
|
+
import { AnimatePresence, motion } from "motion/react";
|
|
7
8
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
8
9
|
import { cn } from "../../../../utils/css-utils.js";
|
|
9
|
-
import { AnimatePresence, motion } from "framer-motion";
|
|
10
10
|
const TabHero = (props) => {
|
|
11
11
|
const { defaultTabValue, tabs, styles } = {
|
|
12
12
|
...TabHeroDefaults,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useRef } from "react";
|
|
4
|
+
import { useScroll, useTransform, motion } from "motion/react";
|
|
4
5
|
import { useMediaQuery } from "../../../../hooks/use-media-query.js";
|
|
5
6
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
6
7
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
7
8
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
8
9
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
9
10
|
import { cn } from "../../../../utils/css-utils.js";
|
|
10
|
-
import { useScroll, useTransform, motion } from "framer-motion";
|
|
11
11
|
const ThreeImageParallaxHero = (props) => {
|
|
12
12
|
const {
|
|
13
13
|
heading,
|
|
@@ -7,7 +7,7 @@ import { CompoundImage } from "../../../puck-base/image.js";
|
|
|
7
7
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
8
8
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
9
9
|
import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
|
|
10
|
-
import { useScroll, useTransform, motion } from "
|
|
10
|
+
import { useScroll, useTransform, motion } from "motion/react";
|
|
11
11
|
const ZoomGridHero = (props) => {
|
|
12
12
|
const { heading, description, buttons = [], images = [], styles } = {
|
|
13
13
|
...ZoomGridHeroDefaults,
|
|
@@ -3,10 +3,10 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useRef } from "react";
|
|
4
4
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
5
5
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
6
|
+
import { useScroll, useTransform, motion } from "motion/react";
|
|
6
7
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
7
8
|
import { cn } from "../../../../utils/css-utils.js";
|
|
8
9
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
9
|
-
import { useScroll, useTransform, motion } from "framer-motion";
|
|
10
10
|
const SingleColumnTimeline = (props) => {
|
|
11
11
|
const {
|
|
12
12
|
tagline,
|
|
@@ -3,10 +3,10 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useRef } from "react";
|
|
4
4
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
5
5
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
6
|
+
import { useScroll, useTransform, motion } from "motion/react";
|
|
6
7
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
7
8
|
import { cn } from "../../../../utils/css-utils.js";
|
|
8
9
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
9
|
-
import { useScroll, useTransform, motion } from "framer-motion";
|
|
10
10
|
const StickyScrollTimeline = (props) => {
|
|
11
11
|
const {
|
|
12
12
|
tagline,
|
|
@@ -3,10 +3,10 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
3
3
|
import { useRef } from "react";
|
|
4
4
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
5
5
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
6
|
+
import { useScroll, useTransform, motion } from "motion/react";
|
|
6
7
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
7
8
|
import { cn } from "../../../../utils/css-utils.js";
|
|
8
9
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
9
|
-
import { useScroll, useTransform, motion } from "framer-motion";
|
|
10
10
|
const ZigzagTimeline = (props) => {
|
|
11
11
|
const {
|
|
12
12
|
tagline,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { cn } from "../../utils/css-utils.js";
|
|
4
4
|
import { X, Menu } from "lucide-react";
|
|
5
|
+
import { motion, AnimatePresence, useScroll, useMotionValueEvent } from "motion/react";
|
|
5
6
|
import React__default, { useState, useRef } from "react";
|
|
6
|
-
import { motion, AnimatePresence, useScroll, useMotionValueEvent } from "framer-motion";
|
|
7
7
|
const Navbar = ({ children, className }) => {
|
|
8
8
|
const ref = useRef(null);
|
|
9
9
|
const { scrollY } = useScroll({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { cn } from "../../../utils/css-utils.js";
|
|
4
|
+
import { AnimatePresence, motion } from "motion/react";
|
|
4
5
|
import { useState, useRef, useEffect, useId } from "react";
|
|
5
6
|
import { SparklesCore } from "../sparkles/index.js";
|
|
6
|
-
import { AnimatePresence, motion } from "framer-motion";
|
|
7
7
|
const Cover = ({
|
|
8
8
|
children,
|
|
9
9
|
className
|
|
@@ -3,8 +3,8 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { cn } from "../../../utils/css-utils.js";
|
|
4
4
|
import Particles, { initParticlesEngine } from "@tsparticles/react";
|
|
5
5
|
import { loadSlim } from "@tsparticles/slim";
|
|
6
|
+
import { useAnimation, motion } from "motion/react";
|
|
6
7
|
import { useState, useEffect, useId } from "react";
|
|
7
|
-
import { useAnimation, motion } from "framer-motion";
|
|
8
8
|
const SparklesCore = (props) => {
|
|
9
9
|
const {
|
|
10
10
|
id,
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dune-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
8
8
|
"gen:meta": "node --import ./scripts/register-mocks.mjs --import tsx/esm scripts/generate-component-meta.ts",
|
|
9
|
-
"build": "pnpm gen:meta && vite build && tsc --project tsconfig.build.json",
|
|
9
|
+
"build": "pnpm gen:meta && vite build && tsc --project tsconfig.build.json && scripts/fix-dts-extensions.sh",
|
|
10
10
|
"watch": "vite build --watch & tsc --project tsconfig.build.json --watch --preserveWatchOutput &",
|
|
11
11
|
"build:sync": "pnpm build && cd ../magent && pnpm sync:dune && cd ../canvas-editor && pnpm sync:dune",
|
|
12
12
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|