@windrun-huaiin/third-ui 14.2.0 → 14.3.1
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/fuma/mdx/index.d.ts +1 -0
- package/dist/fuma/mdx/index.js +2 -0
- package/dist/fuma/mdx/index.mjs +1 -0
- package/dist/fuma/mdx/suno-embed.d.ts +7 -0
- package/dist/fuma/mdx/suno-embed.js +120 -0
- package/dist/fuma/mdx/suno-embed.mjs +118 -0
- package/dist/main/delayed-img.js +2 -1
- package/dist/main/delayed-img.mjs +3 -2
- package/dist/main/index.d.ts +1 -0
- package/dist/main/index.js +4 -0
- package/dist/main/index.mjs +2 -1
- package/dist/main/loading.d.ts +1 -0
- package/dist/main/loading.js +7 -0
- package/dist/main/loading.mjs +7 -1
- package/dist/main/snake-loading-frame.d.ts +23 -0
- package/dist/main/snake-loading-frame.js +344 -0
- package/dist/main/snake-loading-frame.mjs +341 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +47 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs +45 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +8 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs +6 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/LazyContext.js +8 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/LazyContext.mjs +6 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +15 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs +13 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/MotionContext/create.js +16 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/MotionContext/create.mjs +14 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/MotionContext/index.js +8 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/MotionContext/index.mjs +6 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +19 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs +17 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/PresenceContext.js +12 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/PresenceContext.mjs +10 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +11 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs +9 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/events/add-pointer-event.js +10 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/events/add-pointer-event.mjs +8 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/events/event-info.js +16 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/events/event-info.mjs +13 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +576 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs +573 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/drag/index.js +52 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/drag/index.mjs +50 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +141 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs +129 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/focus.js +43 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/focus.mjs +41 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/hover.js +32 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/hover.mjs +30 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +282 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs +280 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/pan/index.js +52 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/pan/index.mjs +50 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/press.js +39 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/press.mjs +37 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +69 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs +67 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/animation/index.js +42 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/animation/index.mjs +40 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/animations.js +15 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/animations.mjs +13 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/definitions.js +51 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/definitions.mjs +48 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/drag.js +19 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/drag.mjs +17 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/gestures.js +23 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/gestures.mjs +21 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +139 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs +137 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/layout.js +13 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/layout.mjs +11 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/load-features.js +17 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/load-features.mjs +15 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +78 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs +76 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +51 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs +49 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/index.js +114 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/index.mjs +112 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/utils/symbol.js +5 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/utils/symbol.mjs +3 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +53 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs +51 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +167 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs +165 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +82 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs +80 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +60 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs +58 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/components/create-proxy.js +47 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/components/create-proxy.mjs +45 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +15 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.mjs +13 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +9 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs +7 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +20 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs +18 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/dom/use-render.js +29 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/dom/use-render.mjs +27 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +69 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs +66 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +32 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs +30 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +13 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.mjs +11 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/html/use-props.js +61 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/html/use-props.mjs +58 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +10 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs +8 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +35 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs +33 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/svg/use-props.js +27 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/svg/use-props.mjs +25 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +13 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.mjs +11 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +10 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs +8 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/distance.js +12 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/distance.mjs +9 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/get-context-window.js +8 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/get-context-window.mjs +6 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/is-browser.js +5 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/is-browser.mjs +3 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/is-ref-object.js +9 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/is-ref-object.mjs +7 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/use-animation-frame.js +24 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/use-animation-frame.mjs +22 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/use-constant.js +21 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/use-constant.mjs +19 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +9 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs +7 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/value/use-combine-values.js +40 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/value/use-combine-values.mjs +38 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/value/use-computed.js +22 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/value/use-computed.mjs +20 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/value/use-motion-value.js +41 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/value/use-motion-value.mjs +39 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/value/use-transform.js +50 -0
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/value/use-transform.mjs +48 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +201 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs +199 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/JSAnimation.js +387 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/JSAnimation.mjs +385 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +182 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs +180 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +89 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs +87 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/animate/single-value.js +13 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/animate/single-value.mjs +11 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/drivers/frame.js +19 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/drivers/frame.mjs +17 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/inertia.js +89 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs +87 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +54 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs +51 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/spring.js +332 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/spring.mjs +330 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +20 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs +17 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +21 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs +19 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +7 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs +5 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +11 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs +9 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +106 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs +104 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +101 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs +99 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +61 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs +59 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +28 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs +26 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +143 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs +141 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +150 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs +147 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +13 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs +11 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +11 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs +9 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +14 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs +12 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +7 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs +5 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +9 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs +7 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +17 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs +15 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +32 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs +30 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +50 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs +46 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +9 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.mjs +6 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +9 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs +7 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +28 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs +26 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +17 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs +15 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +45 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs +43 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +45 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs +42 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +42 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs +40 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +15 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs +13 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +32 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/is-animatable.mjs +30 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +30 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.mjs +26 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +28 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.mjs +26 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +8 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs +6 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +20 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs +18 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +16 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs +14 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +5 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs +3 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +30 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs +28 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +17 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.mjs +15 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +31 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs +29 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +54 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs +52 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +16 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs +14 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +17 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs +15 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +14 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.mjs +12 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +14 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.mjs +12 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +22 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.mjs +20 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/events/add-dom-event.js +8 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/events/add-dom-event.mjs +6 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/batcher.js +74 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/batcher.mjs +72 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/frame.js +11 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/frame.mjs +6 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/microtask.js +8 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/microtask.mjs +6 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/order.js +14 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/order.mjs +12 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/render-step.js +85 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/render-step.mjs +83 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/sync-time.js +33 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/sync-time.mjs +31 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +12 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs +9 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +30 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs +28 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/hover.js +71 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/hover.mjs +69 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/press/index.js +91 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/press/index.mjs +89 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +36 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs +33 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +40 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs +38 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +5 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs +3 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +22 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs +20 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +20 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs +18 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/utils/setup.js +17 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/utils/setup.mjs +15 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +75 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs +73 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +37 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs +33 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/copy.js +35 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/copy.mjs +31 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +133 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs +124 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +67 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs +58 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +59 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs +54 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/models.js +22 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/models.mjs +17 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/utils.js +39 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/utils.mjs +31 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +15 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs +13 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +30 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.mjs +27 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +1644 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/node/create-projection-node.mjs +1637 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/node/state.js +21 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/node/state.mjs +19 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/shared/stack.js +86 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/shared/stack.mjs +84 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +44 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs +41 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +37 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.mjs +35 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +23 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs +21 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/styles/transform.js +51 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/styles/transform.mjs +49 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +5 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs +3 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +7 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs +5 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +26 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/utils/flat-tree.mjs +24 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +30 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs +26 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/utils/measure.js +20 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/utils/measure.mjs +17 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/Feature.js +16 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/Feature.mjs +14 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/VisualElement.js +567 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/VisualElement.mjs +563 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +44 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.mjs +42 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +5 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/dom/is-css-var.mjs +3 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +87 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs +83 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/dom/style-set.js +11 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/dom/style-set.mjs +9 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +7 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs +5 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +47 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs +44 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +67 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs +65 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +65 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs +63 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/html/utils/render.js +19 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/html/utils/render.mjs +17 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +23 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs +21 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/store.js +5 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/store.mjs +3 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +47 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs +45 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +74 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs +72 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +32 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.mjs +30 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +5 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.mjs +3 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/path.js +33 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/path.mjs +31 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/render.js +14 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/render.mjs +12 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +21 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs +19 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/animation-state.js +388 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/animation-state.mjs +385 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +34 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/get-variant-context.mjs +32 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +9 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs +7 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +16 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs +13 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +14 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs +11 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +7 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.mjs +5 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +10 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs +8 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/keys-position.js +15 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/keys-position.mjs +13 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +31 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs +28 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/motion-values.js +57 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/motion-values.mjs +55 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +23 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.mjs +19 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +8 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs +5 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +10 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs +8 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +38 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs +36 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/setters.js +33 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/setters.mjs +31 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +16 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs +14 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/variant-props.js +15 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/variant-props.mjs +12 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/resize/handle-element.js +65 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/resize/handle-element.mjs +63 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/resize/handle-window.js +33 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/resize/handle-window.mjs +31 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/resize/index.js +10 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/resize/index.mjs +8 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/delay.js +22 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/delay.mjs +20 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/interpolate.js +81 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/interpolate.mjs +79 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/is-html-element.js +15 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/is-html-element.mjs +13 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/is-svg-element.js +13 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/is-svg-element.mjs +11 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +13 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs +11 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/color.js +50 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/color.mjs +47 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/complex.js +98 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/complex.mjs +93 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/immediate.js +7 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/immediate.mjs +5 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/index.js +16 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/index.mjs +14 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/number.js +28 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/number.mjs +26 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/visibility.js +19 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/visibility.mjs +16 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/resolve-elements.js +19 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/resolve-elements.mjs +17 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/supports/flags.js +9 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/supports/flags.mjs +7 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +17 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/supports/linear-easing.mjs +15 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/supports/memo.js +11 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/supports/memo.mjs +9 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +7 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs +5 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/transform.js +16 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/transform.mjs +14 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/index.js +322 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/index.mjs +319 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/auto.js +11 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/auto.mjs +9 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/hex.js +42 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/hex.mjs +40 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +44 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs +42 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/hsla.js +24 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/hsla.mjs +22 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/index.js +34 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/index.mjs +32 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/rgba.js +28 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/rgba.mjs +25 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/utils.js +32 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/utils.mjs +29 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/complex/filter.js +32 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/complex/filter.mjs +30 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/complex/index.js +116 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/complex/index.mjs +113 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/complex/mask.js +14 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/complex/mask.mjs +12 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/dimensions.js +18 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/dimensions.mjs +15 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/int.js +10 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/int.mjs +8 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +36 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/maps/defaults.mjs +33 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/maps/number.js +72 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/maps/number.mjs +70 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/maps/transform.js +33 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/maps/transform.mjs +31 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/numbers/index.js +21 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/numbers/index.mjs +17 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/numbers/units.js +25 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/numbers/units.mjs +18 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/test.js +8 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/test.mjs +6 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +19 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.mjs +17 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +5 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/color-regex.mjs +3 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/find.js +17 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/find.mjs +15 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +5 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/float-regex.mjs +3 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +12 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs +10 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +7 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs +5 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +7 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/sanitize.mjs +5 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +5 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs +3 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +5 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs +3 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +12 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs +10 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +22 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs +20 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/will-change/is.js +9 -0
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/will-change/is.mjs +7 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/array.js +14 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/array.mjs +11 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/clamp.js +11 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/clamp.mjs +9 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/anticipate.js +11 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/anticipate.mjs +9 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/back.js +13 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/back.mjs +9 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/circ.js +12 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/circ.mjs +8 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +53 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/cubic-bezier.mjs +51 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/ease.js +11 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/ease.mjs +7 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +7 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs +5 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +7 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/modifiers/reverse.mjs +5 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +5 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs +3 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +7 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.mjs +5 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/utils/map.js +43 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/utils/map.mjs +41 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/errors.js +19 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/errors.mjs +19 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/format-error-message.js +9 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/format-error-message.mjs +7 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/global-config.js +5 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/global-config.mjs +3 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/is-numerical-string.js +8 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/is-numerical-string.mjs +6 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/is-object.js +7 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/is-object.mjs +5 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/is-zero-value-string.js +8 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/is-zero-value-string.mjs +6 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/memo.js +13 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/memo.mjs +11 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/noop.js +6 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/noop.mjs +4 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/pipe.js +13 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/pipe.mjs +11 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/progress.js +21 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/progress.mjs +19 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/subscription-manager.js +42 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/subscription-manager.mjs +40 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/time-conversion.js +15 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/time-conversion.mjs +12 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/velocity-per-second.js +13 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/velocity-per-second.mjs +11 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/warn-once.js +13 -0
- package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/warn-once.mjs +11 -0
- package/package.json +2 -1
- package/src/fuma/mdx/index.ts +2 -1
- package/src/fuma/mdx/suno-embed.tsx +213 -0
- package/src/main/delayed-img.tsx +12 -10
- package/src/main/index.ts +2 -1
- package/src/main/loading.tsx +8 -0
- package/src/main/snake-loading-frame.tsx +709 -0
|
@@ -0,0 +1,709 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import type { ReactNode, RefObject } from 'react';
|
|
4
|
+
import { useEffect, useId, useMemo, useRef, useState } from 'react';
|
|
5
|
+
import { motion } from 'framer-motion';
|
|
6
|
+
import { cn } from '@windrun-huaiin/lib/utils';
|
|
7
|
+
|
|
8
|
+
type SnakeShape = 'circle' | 'rounded-rect';
|
|
9
|
+
|
|
10
|
+
interface SnakeLoadingFrameProps {
|
|
11
|
+
shape: SnakeShape;
|
|
12
|
+
loading: boolean;
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
className?: string;
|
|
15
|
+
themeColor?: string;
|
|
16
|
+
strokeWidth?: number;
|
|
17
|
+
contentClassName?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface SnakeLoadingPreviewProps {
|
|
21
|
+
shape: SnakeShape;
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
className?: string;
|
|
24
|
+
themeColor?: string;
|
|
25
|
+
defaultProgress?: number;
|
|
26
|
+
strokeWidth?: number;
|
|
27
|
+
contentClassName?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const DEFAULT_THEME_COLOR = '#3b82f6';
|
|
31
|
+
const TRACK_COLOR = 'rgba(148, 163, 184, 0.22)';
|
|
32
|
+
const BODY_LENGTH_RATIO = 0.26;
|
|
33
|
+
const EXIT_DURATION_MS = 260;
|
|
34
|
+
const LOOP_DURATION_SECONDS = 1.85;
|
|
35
|
+
const DEFAULT_CIRCLE_STROKE = 2;
|
|
36
|
+
const DEFAULT_RECT_STROKE = 3;
|
|
37
|
+
const MIN_FRAME_SIZE = 2;
|
|
38
|
+
const MIN_BODY_LENGTH = 24;
|
|
39
|
+
const MAX_BODY_LENGTH_RATIO = 0.36;
|
|
40
|
+
const RECT_MIN_STROKE_WIDTH = 3;
|
|
41
|
+
|
|
42
|
+
function clampProgress(progress: number): number {
|
|
43
|
+
if (!Number.isFinite(progress)) {
|
|
44
|
+
return 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return Math.min(100, Math.max(0, progress));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function hexToRgb(hex: string): [number, number, number] | null {
|
|
51
|
+
const normalized = hex.replace('#', '').trim();
|
|
52
|
+
|
|
53
|
+
if (!/^[\da-fA-F]{6}$/.test(normalized)) {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return [
|
|
58
|
+
Number.parseInt(normalized.slice(0, 2), 16),
|
|
59
|
+
Number.parseInt(normalized.slice(2, 4), 16),
|
|
60
|
+
Number.parseInt(normalized.slice(4, 6), 16),
|
|
61
|
+
];
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function createBodyTailColor(themeColor: string): string {
|
|
65
|
+
const rgb = hexToRgb(themeColor);
|
|
66
|
+
|
|
67
|
+
if (!rgb) {
|
|
68
|
+
return 'rgba(59, 130, 246, 0.18)';
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return `rgba(${rgb[0]}, ${rgb[1]}, ${rgb[2]}, 0.18)`;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function createHeadGlowColor(themeColor: string): string {
|
|
75
|
+
const rgb = hexToRgb(themeColor);
|
|
76
|
+
|
|
77
|
+
if (!rgb) {
|
|
78
|
+
return 'rgba(59, 130, 246, 0.94)';
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return `rgba(${rgb[0]}, ${rgb[1]}, ${rgb[2]}, 0.94)`;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function createSweepTailColor(themeColor: string): string {
|
|
85
|
+
const rgb = hexToRgb(themeColor);
|
|
86
|
+
|
|
87
|
+
if (!rgb) {
|
|
88
|
+
return 'rgba(59, 130, 246, 0.32)';
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return `rgba(${rgb[0]}, ${rgb[1]}, ${rgb[2]}, 0.32)`;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
interface CornerRadius {
|
|
95
|
+
x: number;
|
|
96
|
+
y: number;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
interface RectRadii {
|
|
100
|
+
topLeft: CornerRadius;
|
|
101
|
+
topRight: CornerRadius;
|
|
102
|
+
bottomRight: CornerRadius;
|
|
103
|
+
bottomLeft: CornerRadius;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
interface RingGeometry {
|
|
107
|
+
viewBox: string;
|
|
108
|
+
path: string;
|
|
109
|
+
length: number;
|
|
110
|
+
strokeWidth: number;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function parseRadiusValue(value: string): CornerRadius {
|
|
114
|
+
const parts = value
|
|
115
|
+
.split(/\s+/)
|
|
116
|
+
.map((part) => Number.parseFloat(part))
|
|
117
|
+
.filter((part) => Number.isFinite(part));
|
|
118
|
+
|
|
119
|
+
if (parts.length === 0) {
|
|
120
|
+
return { x: 0, y: 0 };
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (parts.length === 1) {
|
|
124
|
+
return { x: parts[0], y: parts[0] };
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return { x: parts[0], y: parts[1] };
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function clampCornerRadius(
|
|
131
|
+
radius: CornerRadius,
|
|
132
|
+
maxX: number,
|
|
133
|
+
maxY: number,
|
|
134
|
+
): CornerRadius {
|
|
135
|
+
return {
|
|
136
|
+
x: Math.max(0, Math.min(radius.x, maxX)),
|
|
137
|
+
y: Math.max(0, Math.min(radius.y, maxY)),
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function scaleHorizontalPair(
|
|
142
|
+
start: CornerRadius,
|
|
143
|
+
end: CornerRadius,
|
|
144
|
+
limit: number,
|
|
145
|
+
): [CornerRadius, CornerRadius] {
|
|
146
|
+
const sum = start.x + end.x;
|
|
147
|
+
|
|
148
|
+
if (sum <= limit || sum === 0) {
|
|
149
|
+
return [start, end];
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
const scale = limit / sum;
|
|
153
|
+
|
|
154
|
+
return [
|
|
155
|
+
{ ...start, x: start.x * scale },
|
|
156
|
+
{ ...end, x: end.x * scale },
|
|
157
|
+
];
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
function scaleVerticalPair(
|
|
161
|
+
start: CornerRadius,
|
|
162
|
+
end: CornerRadius,
|
|
163
|
+
limit: number,
|
|
164
|
+
): [CornerRadius, CornerRadius] {
|
|
165
|
+
const sum = start.y + end.y;
|
|
166
|
+
|
|
167
|
+
if (sum <= limit || sum === 0) {
|
|
168
|
+
return [start, end];
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
const scale = limit / sum;
|
|
172
|
+
|
|
173
|
+
return [
|
|
174
|
+
{ ...start, y: start.y * scale },
|
|
175
|
+
{ ...end, y: end.y * scale },
|
|
176
|
+
];
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function normalizeRectRadii(
|
|
180
|
+
width: number,
|
|
181
|
+
height: number,
|
|
182
|
+
input: RectRadii,
|
|
183
|
+
): RectRadii {
|
|
184
|
+
let topLeft = clampCornerRadius(input.topLeft, width / 2, height / 2);
|
|
185
|
+
let topRight = clampCornerRadius(input.topRight, width / 2, height / 2);
|
|
186
|
+
let bottomRight = clampCornerRadius(input.bottomRight, width / 2, height / 2);
|
|
187
|
+
let bottomLeft = clampCornerRadius(input.bottomLeft, width / 2, height / 2);
|
|
188
|
+
|
|
189
|
+
[topLeft, topRight] = scaleHorizontalPair(topLeft, topRight, width);
|
|
190
|
+
[bottomLeft, bottomRight] = scaleHorizontalPair(bottomLeft, bottomRight, width);
|
|
191
|
+
[topLeft, bottomLeft] = scaleVerticalPair(topLeft, bottomLeft, height);
|
|
192
|
+
[topRight, bottomRight] = scaleVerticalPair(topRight, bottomRight, height);
|
|
193
|
+
|
|
194
|
+
return {
|
|
195
|
+
topLeft,
|
|
196
|
+
topRight,
|
|
197
|
+
bottomRight,
|
|
198
|
+
bottomLeft,
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
function buildRoundedRectPath(
|
|
203
|
+
x: number,
|
|
204
|
+
y: number,
|
|
205
|
+
width: number,
|
|
206
|
+
height: number,
|
|
207
|
+
radii: RectRadii,
|
|
208
|
+
): string {
|
|
209
|
+
const { topLeft, topRight, bottomRight, bottomLeft } = normalizeRectRadii(
|
|
210
|
+
width,
|
|
211
|
+
height,
|
|
212
|
+
radii,
|
|
213
|
+
);
|
|
214
|
+
|
|
215
|
+
return [
|
|
216
|
+
`M ${x + topLeft.x} ${y}`,
|
|
217
|
+
`H ${x + Math.max(topLeft.x, width - topRight.x)}`,
|
|
218
|
+
topRight.x > 0 || topRight.y > 0
|
|
219
|
+
? `A ${topRight.x} ${topRight.y} 0 0 1 ${x + width} ${y + topRight.y}`
|
|
220
|
+
: `L ${x + width} ${y}`,
|
|
221
|
+
`V ${y + Math.max(topRight.y, height - bottomRight.y)}`,
|
|
222
|
+
bottomRight.x > 0 || bottomRight.y > 0
|
|
223
|
+
? `A ${bottomRight.x} ${bottomRight.y} 0 0 1 ${x + width - bottomRight.x} ${y + height}`
|
|
224
|
+
: `L ${x + width} ${y + height}`,
|
|
225
|
+
`H ${x + Math.min(width - bottomRight.x, bottomLeft.x)}`,
|
|
226
|
+
bottomLeft.x > 0 || bottomLeft.y > 0
|
|
227
|
+
? `A ${bottomLeft.x} ${bottomLeft.y} 0 0 1 ${x} ${y + height - bottomLeft.y}`
|
|
228
|
+
: `L ${x} ${y + height}`,
|
|
229
|
+
`V ${y + Math.min(height - bottomLeft.y, topLeft.y)}`,
|
|
230
|
+
topLeft.x > 0 || topLeft.y > 0
|
|
231
|
+
? `A ${topLeft.x} ${topLeft.y} 0 0 1 ${x + topLeft.x} ${y}`
|
|
232
|
+
: `L ${x} ${y}`,
|
|
233
|
+
'Z',
|
|
234
|
+
].join(' ');
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
function createCircleGeometry(
|
|
238
|
+
width: number,
|
|
239
|
+
height: number,
|
|
240
|
+
strokeWidth: number,
|
|
241
|
+
): RingGeometry {
|
|
242
|
+
const safeWidth = Math.max(width, MIN_FRAME_SIZE);
|
|
243
|
+
const safeHeight = Math.max(height, MIN_FRAME_SIZE);
|
|
244
|
+
const radius = Math.max(0, Math.min(safeWidth, safeHeight) / 2 - strokeWidth / 2);
|
|
245
|
+
const centerX = safeWidth / 2;
|
|
246
|
+
const centerY = safeHeight / 2;
|
|
247
|
+
|
|
248
|
+
return {
|
|
249
|
+
viewBox: `0 0 ${safeWidth} ${safeHeight}`,
|
|
250
|
+
path: `M ${centerX} ${centerY - radius} A ${radius} ${radius} 0 1 1 ${centerX} ${
|
|
251
|
+
centerY + radius
|
|
252
|
+
} A ${radius} ${radius} 0 1 1 ${centerX} ${centerY - radius}`,
|
|
253
|
+
length: Math.max(0, 2 * Math.PI * radius),
|
|
254
|
+
strokeWidth,
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
function createRoundedRectGeometry(
|
|
259
|
+
width: number,
|
|
260
|
+
height: number,
|
|
261
|
+
strokeWidth: number,
|
|
262
|
+
radii: RectRadii,
|
|
263
|
+
): RingGeometry {
|
|
264
|
+
const safeWidth = Math.max(width, MIN_FRAME_SIZE);
|
|
265
|
+
const safeHeight = Math.max(height, MIN_FRAME_SIZE);
|
|
266
|
+
const inset = strokeWidth / 2;
|
|
267
|
+
const innerWidth = Math.max(safeWidth - strokeWidth, MIN_FRAME_SIZE);
|
|
268
|
+
const innerHeight = Math.max(safeHeight - strokeWidth, MIN_FRAME_SIZE);
|
|
269
|
+
const adjustedRadii = normalizeRectRadii(innerWidth, innerHeight, {
|
|
270
|
+
topLeft: {
|
|
271
|
+
x: Math.max(0, radii.topLeft.x - inset),
|
|
272
|
+
y: Math.max(0, radii.topLeft.y - inset),
|
|
273
|
+
},
|
|
274
|
+
topRight: {
|
|
275
|
+
x: Math.max(0, radii.topRight.x - inset),
|
|
276
|
+
y: Math.max(0, radii.topRight.y - inset),
|
|
277
|
+
},
|
|
278
|
+
bottomRight: {
|
|
279
|
+
x: Math.max(0, radii.bottomRight.x - inset),
|
|
280
|
+
y: Math.max(0, radii.bottomRight.y - inset),
|
|
281
|
+
},
|
|
282
|
+
bottomLeft: {
|
|
283
|
+
x: Math.max(0, radii.bottomLeft.x - inset),
|
|
284
|
+
y: Math.max(0, radii.bottomLeft.y - inset),
|
|
285
|
+
},
|
|
286
|
+
});
|
|
287
|
+
|
|
288
|
+
return {
|
|
289
|
+
viewBox: `0 0 ${safeWidth} ${safeHeight}`,
|
|
290
|
+
path: buildRoundedRectPath(inset, inset, innerWidth, innerHeight, adjustedRadii),
|
|
291
|
+
length: 0,
|
|
292
|
+
strokeWidth,
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
function readRectRadii(element: HTMLElement): RectRadii {
|
|
297
|
+
const computedStyle = window.getComputedStyle(element);
|
|
298
|
+
|
|
299
|
+
return {
|
|
300
|
+
topLeft: parseRadiusValue(computedStyle.borderTopLeftRadius),
|
|
301
|
+
topRight: parseRadiusValue(computedStyle.borderTopRightRadius),
|
|
302
|
+
bottomRight: parseRadiusValue(computedStyle.borderBottomRightRadius),
|
|
303
|
+
bottomLeft: parseRadiusValue(computedStyle.borderBottomLeftRadius),
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
function SnakeRingSvg({
|
|
308
|
+
containerRef,
|
|
309
|
+
shape,
|
|
310
|
+
themeColor,
|
|
311
|
+
progressRatio,
|
|
312
|
+
animate,
|
|
313
|
+
strokeWidth,
|
|
314
|
+
}: {
|
|
315
|
+
containerRef: RefObject<HTMLDivElement | null>;
|
|
316
|
+
shape: SnakeShape;
|
|
317
|
+
themeColor: string;
|
|
318
|
+
progressRatio: number;
|
|
319
|
+
animate: boolean;
|
|
320
|
+
strokeWidth?: number;
|
|
321
|
+
}) {
|
|
322
|
+
const gradientId = useId().replace(/:/g, '-');
|
|
323
|
+
const tailColor = createBodyTailColor(themeColor);
|
|
324
|
+
const headGlowColor = createHeadGlowColor(themeColor);
|
|
325
|
+
const sweepTailColor = createSweepTailColor(themeColor);
|
|
326
|
+
const [geometry, setGeometry] = useState<RingGeometry | null>(null);
|
|
327
|
+
const pathMeasureRef = useRef<SVGPathElement | null>(null);
|
|
328
|
+
const measuredLengthRef = useRef(0);
|
|
329
|
+
|
|
330
|
+
useEffect(() => {
|
|
331
|
+
const container = containerRef.current;
|
|
332
|
+
|
|
333
|
+
if (!container) {
|
|
334
|
+
return;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
const updateGeometry = () => {
|
|
338
|
+
const rect = container.getBoundingClientRect();
|
|
339
|
+
const preferredStrokeWidth =
|
|
340
|
+
strokeWidth ?? (shape === 'circle' ? DEFAULT_CIRCLE_STROKE : DEFAULT_RECT_STROKE);
|
|
341
|
+
const resolvedStrokeWidth =
|
|
342
|
+
shape === 'rounded-rect'
|
|
343
|
+
? Math.max(RECT_MIN_STROKE_WIDTH, preferredStrokeWidth)
|
|
344
|
+
: preferredStrokeWidth;
|
|
345
|
+
const nextGeometry =
|
|
346
|
+
shape === 'circle'
|
|
347
|
+
? createCircleGeometry(rect.width, rect.height, resolvedStrokeWidth)
|
|
348
|
+
: createRoundedRectGeometry(
|
|
349
|
+
rect.width,
|
|
350
|
+
rect.height,
|
|
351
|
+
resolvedStrokeWidth,
|
|
352
|
+
readRectRadii(container),
|
|
353
|
+
);
|
|
354
|
+
|
|
355
|
+
measuredLengthRef.current = 0;
|
|
356
|
+
setGeometry(nextGeometry);
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
updateGeometry();
|
|
360
|
+
|
|
361
|
+
const resizeObserver = new ResizeObserver(() => {
|
|
362
|
+
updateGeometry();
|
|
363
|
+
});
|
|
364
|
+
const mutationObserver = new MutationObserver(() => {
|
|
365
|
+
updateGeometry();
|
|
366
|
+
});
|
|
367
|
+
|
|
368
|
+
resizeObserver.observe(container);
|
|
369
|
+
mutationObserver.observe(container, {
|
|
370
|
+
attributes: true,
|
|
371
|
+
attributeFilter: ['class', 'style'],
|
|
372
|
+
});
|
|
373
|
+
|
|
374
|
+
return () => {
|
|
375
|
+
resizeObserver.disconnect();
|
|
376
|
+
mutationObserver.disconnect();
|
|
377
|
+
};
|
|
378
|
+
}, [containerRef, shape, strokeWidth]);
|
|
379
|
+
|
|
380
|
+
useEffect(() => {
|
|
381
|
+
if (!geometry || shape === 'circle' || !pathMeasureRef.current) {
|
|
382
|
+
return;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
const measuredLength = pathMeasureRef.current.getTotalLength();
|
|
386
|
+
const normalizedLength = Number.isFinite(measuredLength)
|
|
387
|
+
? Math.max(0, measuredLength)
|
|
388
|
+
: 0;
|
|
389
|
+
|
|
390
|
+
if (normalizedLength <= 0) {
|
|
391
|
+
return;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
if (Math.abs(measuredLengthRef.current - normalizedLength) < 0.1) {
|
|
395
|
+
return;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
measuredLengthRef.current = normalizedLength;
|
|
399
|
+
|
|
400
|
+
setGeometry((current) => {
|
|
401
|
+
if (!current || current.path !== geometry.path) {
|
|
402
|
+
return current;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
if (Math.abs(current.length - normalizedLength) < 0.1) {
|
|
406
|
+
return current;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
return {
|
|
410
|
+
...current,
|
|
411
|
+
length: normalizedLength,
|
|
412
|
+
};
|
|
413
|
+
});
|
|
414
|
+
}, [geometry, shape]);
|
|
415
|
+
|
|
416
|
+
const resolvedGeometry = useMemo(() => geometry, [geometry]);
|
|
417
|
+
|
|
418
|
+
if (!resolvedGeometry) {
|
|
419
|
+
return null;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
const effectiveLength =
|
|
423
|
+
resolvedGeometry.length > 0
|
|
424
|
+
? resolvedGeometry.length
|
|
425
|
+
: Math.max(
|
|
426
|
+
1,
|
|
427
|
+
2 * Math.max(0, resolvedGeometry.strokeWidth),
|
|
428
|
+
2 *
|
|
429
|
+
(Math.max(0, Number.parseFloat(resolvedGeometry.viewBox.split(' ')[2] ?? '0')) +
|
|
430
|
+
Math.max(0, Number.parseFloat(resolvedGeometry.viewBox.split(' ')[3] ?? '0'))),
|
|
431
|
+
);
|
|
432
|
+
const [, , viewBoxWidthRaw, viewBoxHeightRaw] = resolvedGeometry.viewBox.split(' ');
|
|
433
|
+
const viewBoxWidth = Math.max(0, Number.parseFloat(viewBoxWidthRaw ?? '0'));
|
|
434
|
+
const viewBoxHeight = Math.max(0, Number.parseFloat(viewBoxHeightRaw ?? '0'));
|
|
435
|
+
const centerX = viewBoxWidth / 2;
|
|
436
|
+
const centerY = viewBoxHeight / 2;
|
|
437
|
+
const isCircle = shape === 'circle';
|
|
438
|
+
const tailTransparentStart = isCircle ? '18%' : '26%';
|
|
439
|
+
const tailColorStart = isCircle ? '39%' : '46%';
|
|
440
|
+
const tailTransparentEnd = isCircle ? '90%' : '82%';
|
|
441
|
+
const headTransparentStart = isCircle ? '32%' : '40%';
|
|
442
|
+
const headColorStart = isCircle ? '48%' : '53%';
|
|
443
|
+
const headTransparentEnd = isCircle ? '82%' : '73%';
|
|
444
|
+
const bodyLength = Math.min(
|
|
445
|
+
effectiveLength * MAX_BODY_LENGTH_RATIO,
|
|
446
|
+
Math.max(MIN_BODY_LENGTH, effectiveLength * BODY_LENGTH_RATIO),
|
|
447
|
+
);
|
|
448
|
+
const bodyDashArray = `${bodyLength} ${effectiveLength}`;
|
|
449
|
+
const staticDashOffset = effectiveLength * (1 - progressRatio);
|
|
450
|
+
const tailStrokeWidth =
|
|
451
|
+
shape === 'circle'
|
|
452
|
+
? resolvedGeometry.strokeWidth + 1.2
|
|
453
|
+
: resolvedGeometry.strokeWidth + Math.min(1.2, resolvedGeometry.strokeWidth * 0.32);
|
|
454
|
+
|
|
455
|
+
return (
|
|
456
|
+
<svg
|
|
457
|
+
className="pointer-events-none absolute inset-0 h-full w-full"
|
|
458
|
+
viewBox={resolvedGeometry.viewBox}
|
|
459
|
+
preserveAspectRatio="none"
|
|
460
|
+
aria-hidden="true"
|
|
461
|
+
>
|
|
462
|
+
{shape === 'rounded-rect' ? (
|
|
463
|
+
<path ref={pathMeasureRef} d={resolvedGeometry.path} fill="none" stroke="transparent" />
|
|
464
|
+
) : null}
|
|
465
|
+
{animate ? (
|
|
466
|
+
<defs>
|
|
467
|
+
<linearGradient
|
|
468
|
+
id={`${gradientId}-sweep-tail`}
|
|
469
|
+
x1="0"
|
|
470
|
+
y1="0"
|
|
471
|
+
x2={String(viewBoxWidth)}
|
|
472
|
+
y2="0"
|
|
473
|
+
gradientUnits="userSpaceOnUse"
|
|
474
|
+
>
|
|
475
|
+
<stop offset="0%" stopColor="transparent" />
|
|
476
|
+
<stop offset={tailTransparentStart} stopColor="transparent" />
|
|
477
|
+
<stop offset={tailColorStart} stopColor={sweepTailColor} />
|
|
478
|
+
<stop offset="64%" stopColor={headGlowColor} />
|
|
479
|
+
<stop offset={tailTransparentEnd} stopColor="transparent" />
|
|
480
|
+
<stop offset="100%" stopColor="transparent" />
|
|
481
|
+
<animateTransform
|
|
482
|
+
attributeName="gradientTransform"
|
|
483
|
+
type="rotate"
|
|
484
|
+
from={`0 ${centerX} ${centerY}`}
|
|
485
|
+
to={`360 ${centerX} ${centerY}`}
|
|
486
|
+
dur={`${LOOP_DURATION_SECONDS}s`}
|
|
487
|
+
repeatCount="indefinite"
|
|
488
|
+
/>
|
|
489
|
+
</linearGradient>
|
|
490
|
+
<linearGradient
|
|
491
|
+
id={`${gradientId}-sweep-head`}
|
|
492
|
+
x1="0"
|
|
493
|
+
y1="0"
|
|
494
|
+
x2={String(viewBoxWidth)}
|
|
495
|
+
y2="0"
|
|
496
|
+
gradientUnits="userSpaceOnUse"
|
|
497
|
+
>
|
|
498
|
+
<stop offset="0%" stopColor="transparent" />
|
|
499
|
+
<stop offset={headTransparentStart} stopColor="transparent" />
|
|
500
|
+
<stop offset={headColorStart} stopColor={themeColor} />
|
|
501
|
+
<stop offset="63%" stopColor={headGlowColor} />
|
|
502
|
+
<stop offset={headTransparentEnd} stopColor="transparent" />
|
|
503
|
+
<stop offset="100%" stopColor="transparent" />
|
|
504
|
+
<animateTransform
|
|
505
|
+
attributeName="gradientTransform"
|
|
506
|
+
type="rotate"
|
|
507
|
+
from={`0 ${centerX} ${centerY}`}
|
|
508
|
+
to={`360 ${centerX} ${centerY}`}
|
|
509
|
+
dur={`${LOOP_DURATION_SECONDS}s`}
|
|
510
|
+
repeatCount="indefinite"
|
|
511
|
+
/>
|
|
512
|
+
</linearGradient>
|
|
513
|
+
</defs>
|
|
514
|
+
) : null}
|
|
515
|
+
<path
|
|
516
|
+
d={resolvedGeometry.path}
|
|
517
|
+
fill="none"
|
|
518
|
+
stroke={TRACK_COLOR}
|
|
519
|
+
strokeWidth={resolvedGeometry.strokeWidth}
|
|
520
|
+
strokeLinecap="round"
|
|
521
|
+
strokeLinejoin="round"
|
|
522
|
+
/>
|
|
523
|
+
{animate ? (
|
|
524
|
+
<>
|
|
525
|
+
<path
|
|
526
|
+
d={resolvedGeometry.path}
|
|
527
|
+
fill="none"
|
|
528
|
+
stroke={`url(#${gradientId}-sweep-tail)`}
|
|
529
|
+
strokeWidth={tailStrokeWidth}
|
|
530
|
+
strokeLinecap="round"
|
|
531
|
+
strokeLinejoin="round"
|
|
532
|
+
/>
|
|
533
|
+
<path
|
|
534
|
+
d={resolvedGeometry.path}
|
|
535
|
+
fill="none"
|
|
536
|
+
stroke={`url(#${gradientId}-sweep-head)`}
|
|
537
|
+
strokeWidth={resolvedGeometry.strokeWidth}
|
|
538
|
+
strokeLinecap="round"
|
|
539
|
+
strokeLinejoin="round"
|
|
540
|
+
/>
|
|
541
|
+
</>
|
|
542
|
+
) : null}
|
|
543
|
+
{!animate ? (
|
|
544
|
+
<path
|
|
545
|
+
d={resolvedGeometry.path}
|
|
546
|
+
fill="none"
|
|
547
|
+
stroke={themeColor}
|
|
548
|
+
strokeWidth={resolvedGeometry.strokeWidth}
|
|
549
|
+
strokeLinecap="round"
|
|
550
|
+
strokeLinejoin="round"
|
|
551
|
+
strokeDasharray={bodyDashArray}
|
|
552
|
+
strokeDashoffset={staticDashOffset}
|
|
553
|
+
/>
|
|
554
|
+
) : null}
|
|
555
|
+
</svg>
|
|
556
|
+
);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
function SnakeFrameBase({
|
|
560
|
+
shape,
|
|
561
|
+
loading,
|
|
562
|
+
children,
|
|
563
|
+
className,
|
|
564
|
+
themeColor = DEFAULT_THEME_COLOR,
|
|
565
|
+
previewProgress,
|
|
566
|
+
strokeWidth,
|
|
567
|
+
contentClassName,
|
|
568
|
+
}: SnakeLoadingFrameProps & { previewProgress?: number }) {
|
|
569
|
+
const containerRef = useRef<HTMLDivElement | null>(null);
|
|
570
|
+
const [showOverlay, setShowOverlay] = useState(loading || previewProgress !== undefined);
|
|
571
|
+
const exitTimerRef = useRef<number | null>(null);
|
|
572
|
+
const resolvedStrokeWidth =
|
|
573
|
+
strokeWidth ?? (shape === 'circle' ? DEFAULT_CIRCLE_STROKE : DEFAULT_RECT_STROKE);
|
|
574
|
+
const circleContentInset =
|
|
575
|
+
shape === 'circle' ? Math.max(6, resolvedStrokeWidth + 4) : 0;
|
|
576
|
+
const progressRatio = clampProgress(previewProgress ?? 0) / 100;
|
|
577
|
+
|
|
578
|
+
useEffect(() => {
|
|
579
|
+
if (previewProgress !== undefined) {
|
|
580
|
+
setShowOverlay(true);
|
|
581
|
+
return;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
if (loading) {
|
|
585
|
+
if (exitTimerRef.current !== null) {
|
|
586
|
+
window.clearTimeout(exitTimerRef.current);
|
|
587
|
+
exitTimerRef.current = null;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
setShowOverlay(true);
|
|
591
|
+
return;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
exitTimerRef.current = window.setTimeout(() => {
|
|
595
|
+
setShowOverlay(false);
|
|
596
|
+
exitTimerRef.current = null;
|
|
597
|
+
}, EXIT_DURATION_MS);
|
|
598
|
+
|
|
599
|
+
return () => {
|
|
600
|
+
if (exitTimerRef.current !== null) {
|
|
601
|
+
window.clearTimeout(exitTimerRef.current);
|
|
602
|
+
exitTimerRef.current = null;
|
|
603
|
+
}
|
|
604
|
+
};
|
|
605
|
+
}, [loading, previewProgress]);
|
|
606
|
+
|
|
607
|
+
return (
|
|
608
|
+
<div
|
|
609
|
+
ref={containerRef}
|
|
610
|
+
className={cn(
|
|
611
|
+
'relative isolate',
|
|
612
|
+
shape === 'circle' ? 'rounded-full' : 'rounded-none',
|
|
613
|
+
className,
|
|
614
|
+
)}
|
|
615
|
+
>
|
|
616
|
+
<div
|
|
617
|
+
className={cn(
|
|
618
|
+
'relative z-0 overflow-hidden',
|
|
619
|
+
shape === 'circle'
|
|
620
|
+
? 'absolute flex items-center justify-center rounded-full'
|
|
621
|
+
: 'h-full w-full',
|
|
622
|
+
contentClassName,
|
|
623
|
+
)}
|
|
624
|
+
style={
|
|
625
|
+
shape === 'circle'
|
|
626
|
+
? {
|
|
627
|
+
inset: circleContentInset,
|
|
628
|
+
}
|
|
629
|
+
: undefined
|
|
630
|
+
}
|
|
631
|
+
>
|
|
632
|
+
{children}
|
|
633
|
+
</div>
|
|
634
|
+
{showOverlay ? (
|
|
635
|
+
<motion.div
|
|
636
|
+
className="pointer-events-none absolute inset-0 overflow-visible"
|
|
637
|
+
initial={false}
|
|
638
|
+
animate={{ opacity: loading || previewProgress !== undefined ? 1 : 0 }}
|
|
639
|
+
transition={{ duration: EXIT_DURATION_MS / 1000, ease: 'easeOut' }}
|
|
640
|
+
>
|
|
641
|
+
<SnakeRingSvg
|
|
642
|
+
containerRef={containerRef}
|
|
643
|
+
shape={shape}
|
|
644
|
+
themeColor={themeColor}
|
|
645
|
+
progressRatio={progressRatio}
|
|
646
|
+
animate={previewProgress === undefined && loading}
|
|
647
|
+
strokeWidth={resolvedStrokeWidth}
|
|
648
|
+
/>
|
|
649
|
+
</motion.div>
|
|
650
|
+
) : null}
|
|
651
|
+
</div>
|
|
652
|
+
);
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
export function SnakeLoadingFrame(props: SnakeLoadingFrameProps) {
|
|
656
|
+
return <SnakeFrameBase {...props} />;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
export function SnakeLoadingPreview({
|
|
660
|
+
shape,
|
|
661
|
+
children,
|
|
662
|
+
className,
|
|
663
|
+
themeColor = DEFAULT_THEME_COLOR,
|
|
664
|
+
defaultProgress = 32,
|
|
665
|
+
strokeWidth,
|
|
666
|
+
contentClassName,
|
|
667
|
+
}: SnakeLoadingPreviewProps) {
|
|
668
|
+
const [progress, setProgress] = useState(clampProgress(defaultProgress));
|
|
669
|
+
const sliderFillColor = themeColor;
|
|
670
|
+
const sliderGlowColor = createBodyTailColor(themeColor);
|
|
671
|
+
const sliderBackground = `linear-gradient(90deg, ${sliderGlowColor} 0%, ${sliderFillColor} ${progress}%, rgba(148, 163, 184, 0.24) ${progress}%, rgba(148, 163, 184, 0.24) 100%)`;
|
|
672
|
+
|
|
673
|
+
return (
|
|
674
|
+
<div className="space-y-3">
|
|
675
|
+
<SnakeFrameBase
|
|
676
|
+
shape={shape}
|
|
677
|
+
loading
|
|
678
|
+
previewProgress={progress}
|
|
679
|
+
className={className}
|
|
680
|
+
themeColor={themeColor}
|
|
681
|
+
strokeWidth={strokeWidth}
|
|
682
|
+
contentClassName={contentClassName}
|
|
683
|
+
>
|
|
684
|
+
{children}
|
|
685
|
+
</SnakeFrameBase>
|
|
686
|
+
<div className="space-y-2">
|
|
687
|
+
<div className="flex items-center justify-between text-[11px] font-medium uppercase tracking-[0.14em] text-slate-500 dark:text-slate-400">
|
|
688
|
+
<span>Snake Preview</span>
|
|
689
|
+
<span>{progress}%</span>
|
|
690
|
+
</div>
|
|
691
|
+
<input
|
|
692
|
+
type="range"
|
|
693
|
+
min={0}
|
|
694
|
+
max={100}
|
|
695
|
+
value={progress}
|
|
696
|
+
onChange={(event) => {
|
|
697
|
+
setProgress(clampProgress(Number(event.target.value)));
|
|
698
|
+
}}
|
|
699
|
+
className="h-2 w-full cursor-pointer appearance-none rounded-full"
|
|
700
|
+
style={{
|
|
701
|
+
background: sliderBackground,
|
|
702
|
+
accentColor: themeColor,
|
|
703
|
+
}}
|
|
704
|
+
aria-label="Preview snake loading progress"
|
|
705
|
+
/>
|
|
706
|
+
</div>
|
|
707
|
+
</div>
|
|
708
|
+
);
|
|
709
|
+
}
|