@yamada-ui/motion 1.0.30-dev-20240619173525 → 2.0.0-dev-20240620113508
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/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +194 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +198 -14
- package/dist/index.mjs.map +1 -1
- package/dist/motion.types.d.mts +1 -1
- package/dist/motion.types.d.ts +1 -1
- package/dist/motion.types.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AnimatePresence, DragControls, HTMLMotionProps, LayoutGroup, LazyMotion, AnimatePresenceProps as MotionAnimatePresenceProps, AnimationControls as MotionAnimationControls, AnimationLifecycles as MotionAnimationLifecycles,
|
|
1
|
+
export { AcceleratedAnimation, AnimatePresence, AnimateSharedLayout, CSSStyleDeclarationWithTransform, DOMMotionComponents, DeprecatedLayoutGroupContext, DragControls, FlatTree, HTMLMotionProps, LayoutGroup, LayoutGroupContext, LazyMotion, AbsoluteKeyframe as MotionAbsoluteKeyframe, MotionAdvancedProps, AnimatePresenceProps as MotionAnimatePresenceProps, AnimationControls as MotionAnimationControls, AnimationDefinition as MotionAnimationDefinition, AnimationLifecycles as MotionAnimationLifecycles, AnimationOptionsWithValueOverrides as MotionAnimationOptionsWithValueOverrides, AnimationPlaybackControls as MotionAnimationPlaybackControls, AnimationPlaybackLifecycles as MotionAnimationPlaybackLifecycles, AnimationPlaybackOptions as MotionAnimationPlaybackOptions, AnimationProps as MotionAnimationProps, AnimationScope as MotionAnimationScope, AnimationSequence as MotionAnimationSequence, AnimationType as MotionAnimationType, At as MotionAt, Axis as MotionAxis, AxisDelta as MotionAxisDelta, BezierDefinition as MotionBezierDefinition, BoundingBox as MotionBoundingBox, Box as MotionBox, MotionConfig, MotionConfigContext, MotionConfigProps, MotionContext, CreateVisualElement as MotionCreateVisualElement, CustomDomComponent as MotionCustomDomComponent, CustomValueType as MotionCustomValueType, Cycle as MotionCycle, CycleState as MotionCycleState, DOMKeyframesDefinition as MotionDOMKeyframesDefinition, DOMSegment as MotionDOMSegment, DOMSegmentWithTransition as MotionDOMSegmentWithTransition, DecayOptions as MotionDecayOptions, DelayedFunction as MotionDelayedFunction, Delta as MotionDelta, DevMessage as MotionDevMessage, DragElastic as MotionDragElastic, DragHandlers as MotionDragHandlers, DraggableProps as MotionDraggableProps, DurationSpringOptions as MotionDurationSpringOptions, DynamicAnimationOptions as MotionDynamicAnimationOptions, DynamicOption as MotionDynamicOption, Easing as MotionEasing, EasingDefinition as MotionEasingDefinition, EasingFunction as MotionEasingFunction, EasingModifier as MotionEasingModifier, ElementOrSelector as MotionElementOrSelector, EventInfo as MotionEventInfo, FeatureBundle as MotionFeatureBundle, FeatureDefinition as MotionFeatureDefinition, FeatureDefinitions as MotionFeatureDefinitions, FeaturePackage as MotionFeaturePackage, FeaturePackages as MotionFeaturePackages, FocusHandlers as MotionFocusHandlers, MotionGlobalConfig, HoverHandlers as MotionHoverHandlers, HydratedFeatureDefinition as MotionHydratedFeatureDefinition, HydratedFeatureDefinitions as MotionHydratedFeatureDefinitions, IProjectionNode as MotionIProjectionNode, Inertia as MotionInertia, InertiaOptions as MotionInertiaOptions, InterpolateOptions as MotionInterpolateOptions, KeyframeOptions as MotionKeyframeOptions, Keyframes as MotionKeyframes, KeyframesTarget as MotionKeyframesTarget, LayoutProps as MotionLayoutProps, LazyFeatureBundle as MotionLazyFeatureBundle, LazyProps as MotionLazyProps, MixerFactory as MotionMixerFactory, None as MotionNone, Orchestration as MotionOrchestration, PanHandlers as MotionPanHandlers, PanInfo as MotionPanInfo, PassiveEffect as MotionPassiveEffect, Point as MotionPoint, RelayoutInfo as MotionRelayoutInfo, RenderComponent as MotionRenderComponent, Reorder as MotionReorder, Repeat as MotionRepeat, RepeatType as MotionRepeatType, ResolveKeyframes as MotionResolveKeyframes, ResolveLayoutTransition as MotionResolveLayoutTransition, ResolvedAnimationDefinition as MotionResolvedAnimationDefinition, ResolvedAnimationDefinitions as MotionResolvedAnimationDefinitions, ResolvedKeyframesTarget as MotionResolvedKeyframesTarget, ResolvedSingleTarget as MotionResolvedSingleTarget, ResolvedValueTarget as MotionResolvedValueTarget, ResolvedValues as MotionResolvedValues, Segment as MotionSegment, SequenceLabel as MotionSequenceLabel, SequenceLabelWithTime as MotionSequenceLabelWithTime, SequenceMap as MotionSequenceMap, SequenceOptions as MotionSequenceOptions, SequenceTime as MotionSequenceTime, SingleTarget as MotionSingleTarget, Spring as MotionSpring, SpringOptions as MotionSpringOptions, MotionStyle, StyleKeyframesDefinition as MotionStyleKeyframesDefinition, StyleTransitions as MotionStyleTransitions, Subscriber as MotionSubscriber, TapHandlers as MotionTapHandlers, TapInfo as MotionTapInfo, Target as MotionTarget, TargetAndTransition as MotionTargetAndTransition, MotionTransform, TransformPoint as MotionTransformPoint, Transition as MotionTransition, Tween as MotionTween, UnresolvedValueKeyframe as MotionUnresolvedValueKeyframe, UseInViewOptions as MotionUseInViewOptions, MotionValue, ValueAnimationOptions as MotionValueAnimationOptions, ValueAnimationTransition as MotionValueAnimationTransition, ValueKeyframe as MotionValueKeyframe, ValueKeyframesDefinition as MotionValueKeyframesDefinition, MotionValueSegment, MotionValueSegmentWithTransition, ValueSequence as MotionValueSequence, ValueTarget as MotionValueTarget, ValueType as MotionValueType, VariableKeyframesDefinition as MotionVariableKeyframesDefinition, VariableTransitions as MotionVariableTransitions, Variant as MotionVariant, VariantLabels as MotionVariantLabels, Variants as MotionVariants, VelocityOptions as MotionVelocityOptions, VisualState as MotionVisualState, PresenceContext, SVGAttributesAsMotionValues, SVGKeyframesDefinition, SVGMotionProps, SVGPathKeyframesDefinition, SVGPathTransitions, SVGTransitions, ScrapeMotionValuesFromProps, ScrollMotionValues, SwitchLayoutGroupContext, VisualElement, addPointerInfo, addScaleCorrector, animate, animateValue, animateVisualElement, animationControls, animations, anticipate, backIn, backInOut, backOut, buildTransform, calcLength, cancelFrame, cancelSync, circIn, circInOut, circOut, clamp, color, complex, createBox, createDomMotionComponent, createMotionComponent, createScopedAnimate, cubicBezier, delay, disableInstantTransitions, distance, distance2D, domAnimation, domMax, easeIn, easeInOut, easeOut, filterProps, frame, frameData, inView, interpolate, invariant, isBrowser, isDragActive, isMotionComponent, isMotionValue, isValidMotionProp, m, makeUseVisualState, mirrorEasing, mix, motion, motionValue, optimizedAppearDataAttribute, pipe, progress, px, resolveMotionValue, reverseEasing, scroll, scrollInfo, spring, stagger, startOptimizedAppearAnimation, steps, sync, transform, unwrapMotionComponent, useAnimate, useAnimationControls, useAnimationFrame, useCycle, useDeprecatedAnimatedState, useDeprecatedInvertedScale, useDomEvent, useDragControls, useElementScroll, useForceUpdate, useInView, useInstantLayoutTransition, useInstantTransition, useIsPresent, useIsomorphicLayoutEffect, useAnimation as useMotionAnimation, useMotionTemplate, useMotionValue, useMotionValueEvent, usePresence, useReducedMotion, useReducedMotionConfig, useResetProjection, useScroll, useSpring, useTime, useTransform, useVelocity, useViewportScroll, useWillChange, visualElementStore, warning, wrap } from 'framer-motion';
|
|
2
2
|
export { a as Motion, c as MotionAs, g as MotionDelayProps, h as MotionDurationProps, b as MotionProps, f as MotionTransitionEndProps, M as MotionTransitionProperties, e as MotionTransitionProps, d as MotionTransitionVariants, i as MotionUIPropGetter, R as RequiredMotionUIPropGetter, W as WithTransitionProps } from './motion-e1qwi-dM.mjs';
|
|
3
3
|
export { MOTION_TRANSITION_DEFAULTS, MOTION_TRANSITION_EASINGS, MOTION_TRANSITION_VARIANTS, transitionEnter, transitionExit } from './utils.mjs';
|
|
4
4
|
import '@yamada-ui/core';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AnimatePresence, DragControls, HTMLMotionProps, LayoutGroup, LazyMotion, AnimatePresenceProps as MotionAnimatePresenceProps, AnimationControls as MotionAnimationControls, AnimationLifecycles as MotionAnimationLifecycles,
|
|
1
|
+
export { AcceleratedAnimation, AnimatePresence, AnimateSharedLayout, CSSStyleDeclarationWithTransform, DOMMotionComponents, DeprecatedLayoutGroupContext, DragControls, FlatTree, HTMLMotionProps, LayoutGroup, LayoutGroupContext, LazyMotion, AbsoluteKeyframe as MotionAbsoluteKeyframe, MotionAdvancedProps, AnimatePresenceProps as MotionAnimatePresenceProps, AnimationControls as MotionAnimationControls, AnimationDefinition as MotionAnimationDefinition, AnimationLifecycles as MotionAnimationLifecycles, AnimationOptionsWithValueOverrides as MotionAnimationOptionsWithValueOverrides, AnimationPlaybackControls as MotionAnimationPlaybackControls, AnimationPlaybackLifecycles as MotionAnimationPlaybackLifecycles, AnimationPlaybackOptions as MotionAnimationPlaybackOptions, AnimationProps as MotionAnimationProps, AnimationScope as MotionAnimationScope, AnimationSequence as MotionAnimationSequence, AnimationType as MotionAnimationType, At as MotionAt, Axis as MotionAxis, AxisDelta as MotionAxisDelta, BezierDefinition as MotionBezierDefinition, BoundingBox as MotionBoundingBox, Box as MotionBox, MotionConfig, MotionConfigContext, MotionConfigProps, MotionContext, CreateVisualElement as MotionCreateVisualElement, CustomDomComponent as MotionCustomDomComponent, CustomValueType as MotionCustomValueType, Cycle as MotionCycle, CycleState as MotionCycleState, DOMKeyframesDefinition as MotionDOMKeyframesDefinition, DOMSegment as MotionDOMSegment, DOMSegmentWithTransition as MotionDOMSegmentWithTransition, DecayOptions as MotionDecayOptions, DelayedFunction as MotionDelayedFunction, Delta as MotionDelta, DevMessage as MotionDevMessage, DragElastic as MotionDragElastic, DragHandlers as MotionDragHandlers, DraggableProps as MotionDraggableProps, DurationSpringOptions as MotionDurationSpringOptions, DynamicAnimationOptions as MotionDynamicAnimationOptions, DynamicOption as MotionDynamicOption, Easing as MotionEasing, EasingDefinition as MotionEasingDefinition, EasingFunction as MotionEasingFunction, EasingModifier as MotionEasingModifier, ElementOrSelector as MotionElementOrSelector, EventInfo as MotionEventInfo, FeatureBundle as MotionFeatureBundle, FeatureDefinition as MotionFeatureDefinition, FeatureDefinitions as MotionFeatureDefinitions, FeaturePackage as MotionFeaturePackage, FeaturePackages as MotionFeaturePackages, FocusHandlers as MotionFocusHandlers, MotionGlobalConfig, HoverHandlers as MotionHoverHandlers, HydratedFeatureDefinition as MotionHydratedFeatureDefinition, HydratedFeatureDefinitions as MotionHydratedFeatureDefinitions, IProjectionNode as MotionIProjectionNode, Inertia as MotionInertia, InertiaOptions as MotionInertiaOptions, InterpolateOptions as MotionInterpolateOptions, KeyframeOptions as MotionKeyframeOptions, Keyframes as MotionKeyframes, KeyframesTarget as MotionKeyframesTarget, LayoutProps as MotionLayoutProps, LazyFeatureBundle as MotionLazyFeatureBundle, LazyProps as MotionLazyProps, MixerFactory as MotionMixerFactory, None as MotionNone, Orchestration as MotionOrchestration, PanHandlers as MotionPanHandlers, PanInfo as MotionPanInfo, PassiveEffect as MotionPassiveEffect, Point as MotionPoint, RelayoutInfo as MotionRelayoutInfo, RenderComponent as MotionRenderComponent, Reorder as MotionReorder, Repeat as MotionRepeat, RepeatType as MotionRepeatType, ResolveKeyframes as MotionResolveKeyframes, ResolveLayoutTransition as MotionResolveLayoutTransition, ResolvedAnimationDefinition as MotionResolvedAnimationDefinition, ResolvedAnimationDefinitions as MotionResolvedAnimationDefinitions, ResolvedKeyframesTarget as MotionResolvedKeyframesTarget, ResolvedSingleTarget as MotionResolvedSingleTarget, ResolvedValueTarget as MotionResolvedValueTarget, ResolvedValues as MotionResolvedValues, Segment as MotionSegment, SequenceLabel as MotionSequenceLabel, SequenceLabelWithTime as MotionSequenceLabelWithTime, SequenceMap as MotionSequenceMap, SequenceOptions as MotionSequenceOptions, SequenceTime as MotionSequenceTime, SingleTarget as MotionSingleTarget, Spring as MotionSpring, SpringOptions as MotionSpringOptions, MotionStyle, StyleKeyframesDefinition as MotionStyleKeyframesDefinition, StyleTransitions as MotionStyleTransitions, Subscriber as MotionSubscriber, TapHandlers as MotionTapHandlers, TapInfo as MotionTapInfo, Target as MotionTarget, TargetAndTransition as MotionTargetAndTransition, MotionTransform, TransformPoint as MotionTransformPoint, Transition as MotionTransition, Tween as MotionTween, UnresolvedValueKeyframe as MotionUnresolvedValueKeyframe, UseInViewOptions as MotionUseInViewOptions, MotionValue, ValueAnimationOptions as MotionValueAnimationOptions, ValueAnimationTransition as MotionValueAnimationTransition, ValueKeyframe as MotionValueKeyframe, ValueKeyframesDefinition as MotionValueKeyframesDefinition, MotionValueSegment, MotionValueSegmentWithTransition, ValueSequence as MotionValueSequence, ValueTarget as MotionValueTarget, ValueType as MotionValueType, VariableKeyframesDefinition as MotionVariableKeyframesDefinition, VariableTransitions as MotionVariableTransitions, Variant as MotionVariant, VariantLabels as MotionVariantLabels, Variants as MotionVariants, VelocityOptions as MotionVelocityOptions, VisualState as MotionVisualState, PresenceContext, SVGAttributesAsMotionValues, SVGKeyframesDefinition, SVGMotionProps, SVGPathKeyframesDefinition, SVGPathTransitions, SVGTransitions, ScrapeMotionValuesFromProps, ScrollMotionValues, SwitchLayoutGroupContext, VisualElement, addPointerInfo, addScaleCorrector, animate, animateValue, animateVisualElement, animationControls, animations, anticipate, backIn, backInOut, backOut, buildTransform, calcLength, cancelFrame, cancelSync, circIn, circInOut, circOut, clamp, color, complex, createBox, createDomMotionComponent, createMotionComponent, createScopedAnimate, cubicBezier, delay, disableInstantTransitions, distance, distance2D, domAnimation, domMax, easeIn, easeInOut, easeOut, filterProps, frame, frameData, inView, interpolate, invariant, isBrowser, isDragActive, isMotionComponent, isMotionValue, isValidMotionProp, m, makeUseVisualState, mirrorEasing, mix, motion, motionValue, optimizedAppearDataAttribute, pipe, progress, px, resolveMotionValue, reverseEasing, scroll, scrollInfo, spring, stagger, startOptimizedAppearAnimation, steps, sync, transform, unwrapMotionComponent, useAnimate, useAnimationControls, useAnimationFrame, useCycle, useDeprecatedAnimatedState, useDeprecatedInvertedScale, useDomEvent, useDragControls, useElementScroll, useForceUpdate, useInView, useInstantLayoutTransition, useInstantTransition, useIsPresent, useIsomorphicLayoutEffect, useAnimation as useMotionAnimation, useMotionTemplate, useMotionValue, useMotionValueEvent, usePresence, useReducedMotion, useReducedMotionConfig, useResetProjection, useScroll, useSpring, useTime, useTransform, useVelocity, useViewportScroll, useWillChange, visualElementStore, warning, wrap } from 'framer-motion';
|
|
2
2
|
export { a as Motion, c as MotionAs, g as MotionDelayProps, h as MotionDurationProps, b as MotionProps, f as MotionTransitionEndProps, M as MotionTransitionProperties, e as MotionTransitionProps, d as MotionTransitionVariants, i as MotionUIPropGetter, R as RequiredMotionUIPropGetter, W as WithTransitionProps } from './motion-e1qwi-dM.js';
|
|
3
3
|
export { MOTION_TRANSITION_DEFAULTS, MOTION_TRANSITION_EASINGS, MOTION_TRANSITION_VARIANTS, transitionEnter, transitionExit } from './utils.js';
|
|
4
4
|
import '@yamada-ui/core';
|
package/dist/index.js
CHANGED
|
@@ -21,37 +21,129 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
// src/index.ts
|
|
22
22
|
var src_exports = {};
|
|
23
23
|
__export(src_exports, {
|
|
24
|
+
AcceleratedAnimation: () => import_framer_motion2.AcceleratedAnimation,
|
|
24
25
|
AnimatePresence: () => import_framer_motion2.AnimatePresence,
|
|
26
|
+
AnimateSharedLayout: () => import_framer_motion2.AnimateSharedLayout,
|
|
27
|
+
DeprecatedLayoutGroupContext: () => import_framer_motion2.DeprecatedLayoutGroupContext,
|
|
28
|
+
DragControls: () => import_framer_motion2.DragControls,
|
|
29
|
+
FlatTree: () => import_framer_motion2.FlatTree,
|
|
25
30
|
LayoutGroup: () => import_framer_motion2.LayoutGroup,
|
|
31
|
+
LayoutGroupContext: () => import_framer_motion2.LayoutGroupContext,
|
|
26
32
|
LazyMotion: () => import_framer_motion2.LazyMotion,
|
|
27
33
|
MOTION_TRANSITION_DEFAULTS: () => MOTION_TRANSITION_DEFAULTS,
|
|
28
34
|
MOTION_TRANSITION_EASINGS: () => MOTION_TRANSITION_EASINGS,
|
|
29
35
|
MOTION_TRANSITION_VARIANTS: () => MOTION_TRANSITION_VARIANTS,
|
|
30
36
|
Motion: () => Motion,
|
|
31
37
|
MotionConfig: () => import_framer_motion2.MotionConfig,
|
|
38
|
+
MotionConfigContext: () => import_framer_motion2.MotionConfigContext,
|
|
39
|
+
MotionContext: () => import_framer_motion2.MotionContext,
|
|
40
|
+
MotionGlobalConfig: () => import_framer_motion2.MotionGlobalConfig,
|
|
32
41
|
MotionReorder: () => import_framer_motion2.Reorder,
|
|
42
|
+
PresenceContext: () => import_framer_motion2.PresenceContext,
|
|
43
|
+
SwitchLayoutGroupContext: () => import_framer_motion2.SwitchLayoutGroupContext,
|
|
44
|
+
VisualElement: () => import_framer_motion2.VisualElement,
|
|
45
|
+
addPointerInfo: () => import_framer_motion2.addPointerInfo,
|
|
46
|
+
addScaleCorrector: () => import_framer_motion2.addScaleCorrector,
|
|
47
|
+
animate: () => import_framer_motion2.animate,
|
|
48
|
+
animateValue: () => import_framer_motion2.animateValue,
|
|
49
|
+
animateVisualElement: () => import_framer_motion2.animateVisualElement,
|
|
50
|
+
animationControls: () => import_framer_motion2.animationControls,
|
|
51
|
+
animations: () => import_framer_motion2.animations,
|
|
52
|
+
anticipate: () => import_framer_motion2.anticipate,
|
|
53
|
+
backIn: () => import_framer_motion2.backIn,
|
|
54
|
+
backInOut: () => import_framer_motion2.backInOut,
|
|
55
|
+
backOut: () => import_framer_motion2.backOut,
|
|
56
|
+
buildTransform: () => import_framer_motion2.buildTransform,
|
|
57
|
+
calcLength: () => import_framer_motion2.calcLength,
|
|
58
|
+
cancelFrame: () => import_framer_motion2.cancelFrame,
|
|
59
|
+
cancelSync: () => import_framer_motion2.cancelSync,
|
|
60
|
+
circIn: () => import_framer_motion2.circIn,
|
|
61
|
+
circInOut: () => import_framer_motion2.circInOut,
|
|
62
|
+
circOut: () => import_framer_motion2.circOut,
|
|
63
|
+
clamp: () => import_framer_motion2.clamp,
|
|
64
|
+
color: () => import_framer_motion2.color,
|
|
65
|
+
complex: () => import_framer_motion2.complex,
|
|
66
|
+
createBox: () => import_framer_motion2.createBox,
|
|
67
|
+
createDomMotionComponent: () => import_framer_motion2.createDomMotionComponent,
|
|
68
|
+
createMotionComponent: () => import_framer_motion2.createMotionComponent,
|
|
69
|
+
createScopedAnimate: () => import_framer_motion2.createScopedAnimate,
|
|
70
|
+
cubicBezier: () => import_framer_motion2.cubicBezier,
|
|
71
|
+
delay: () => import_framer_motion2.delay,
|
|
72
|
+
disableInstantTransitions: () => import_framer_motion2.disableInstantTransitions,
|
|
73
|
+
distance: () => import_framer_motion2.distance,
|
|
74
|
+
distance2D: () => import_framer_motion2.distance2D,
|
|
75
|
+
domAnimation: () => import_framer_motion2.domAnimation,
|
|
76
|
+
domMax: () => import_framer_motion2.domMax,
|
|
77
|
+
easeIn: () => import_framer_motion2.easeIn,
|
|
78
|
+
easeInOut: () => import_framer_motion2.easeInOut,
|
|
79
|
+
easeOut: () => import_framer_motion2.easeOut,
|
|
80
|
+
filterProps: () => import_framer_motion2.filterProps,
|
|
81
|
+
frame: () => import_framer_motion2.frame,
|
|
82
|
+
frameData: () => import_framer_motion2.frameData,
|
|
83
|
+
inView: () => import_framer_motion2.inView,
|
|
84
|
+
interpolate: () => import_framer_motion2.interpolate,
|
|
85
|
+
invariant: () => import_framer_motion2.invariant,
|
|
86
|
+
isBrowser: () => import_framer_motion2.isBrowser,
|
|
87
|
+
isDragActive: () => import_framer_motion2.isDragActive,
|
|
88
|
+
isMotionComponent: () => import_framer_motion2.isMotionComponent,
|
|
89
|
+
isMotionValue: () => import_framer_motion2.isMotionValue,
|
|
90
|
+
isValidMotionProp: () => import_framer_motion2.isValidMotionProp,
|
|
33
91
|
m: () => import_framer_motion2.m,
|
|
92
|
+
makeUseVisualState: () => import_framer_motion2.makeUseVisualState,
|
|
93
|
+
mirrorEasing: () => import_framer_motion2.mirrorEasing,
|
|
94
|
+
mix: () => import_framer_motion2.mix,
|
|
34
95
|
motion: () => import_framer_motion2.motion,
|
|
96
|
+
motionValue: () => import_framer_motion2.motionValue,
|
|
97
|
+
optimizedAppearDataAttribute: () => import_framer_motion2.optimizedAppearDataAttribute,
|
|
98
|
+
pipe: () => import_framer_motion2.pipe,
|
|
99
|
+
progress: () => import_framer_motion2.progress,
|
|
100
|
+
px: () => import_framer_motion2.px,
|
|
101
|
+
resolveMotionValue: () => import_framer_motion2.resolveMotionValue,
|
|
102
|
+
reverseEasing: () => import_framer_motion2.reverseEasing,
|
|
103
|
+
scroll: () => import_framer_motion2.scroll,
|
|
104
|
+
scrollInfo: () => import_framer_motion2.scrollInfo,
|
|
105
|
+
spring: () => import_framer_motion2.spring,
|
|
106
|
+
stagger: () => import_framer_motion2.stagger,
|
|
107
|
+
startOptimizedAppearAnimation: () => import_framer_motion2.startOptimizedAppearAnimation,
|
|
108
|
+
steps: () => import_framer_motion2.steps,
|
|
109
|
+
sync: () => import_framer_motion2.sync,
|
|
35
110
|
transform: () => import_framer_motion2.transform,
|
|
36
111
|
transitionEnter: () => transitionEnter,
|
|
37
112
|
transitionExit: () => transitionExit,
|
|
113
|
+
unwrapMotionComponent: () => import_framer_motion2.unwrapMotionComponent,
|
|
114
|
+
useAnimate: () => import_framer_motion2.useAnimate,
|
|
115
|
+
useAnimationControls: () => import_framer_motion2.useAnimationControls,
|
|
116
|
+
useAnimationFrame: () => import_framer_motion2.useAnimationFrame,
|
|
38
117
|
useCycle: () => import_framer_motion2.useCycle,
|
|
118
|
+
useDeprecatedAnimatedState: () => import_framer_motion2.useDeprecatedAnimatedState,
|
|
119
|
+
useDeprecatedInvertedScale: () => import_framer_motion2.useDeprecatedInvertedScale,
|
|
120
|
+
useDomEvent: () => import_framer_motion2.useDomEvent,
|
|
39
121
|
useDragControls: () => import_framer_motion2.useDragControls,
|
|
122
|
+
useElementScroll: () => import_framer_motion2.useElementScroll,
|
|
123
|
+
useForceUpdate: () => import_framer_motion2.useForceUpdate,
|
|
40
124
|
useInView: () => import_framer_motion2.useInView,
|
|
125
|
+
useInstantLayoutTransition: () => import_framer_motion2.useInstantLayoutTransition,
|
|
126
|
+
useInstantTransition: () => import_framer_motion2.useInstantTransition,
|
|
41
127
|
useIsPresent: () => import_framer_motion2.useIsPresent,
|
|
128
|
+
useIsomorphicLayoutEffect: () => import_framer_motion2.useIsomorphicLayoutEffect,
|
|
42
129
|
useMotionAnimation: () => import_framer_motion2.useAnimation,
|
|
43
|
-
useMotionAnimationControls: () => import_framer_motion2.useAnimationControls,
|
|
44
|
-
useMotionAnimationFrame: () => import_framer_motion2.useAnimationFrame,
|
|
45
130
|
useMotionTemplate: () => import_framer_motion2.useMotionTemplate,
|
|
46
131
|
useMotionValue: () => import_framer_motion2.useMotionValue,
|
|
47
132
|
useMotionValueEvent: () => import_framer_motion2.useMotionValueEvent,
|
|
133
|
+
usePresence: () => import_framer_motion2.usePresence,
|
|
48
134
|
useReducedMotion: () => import_framer_motion2.useReducedMotion,
|
|
135
|
+
useReducedMotionConfig: () => import_framer_motion2.useReducedMotionConfig,
|
|
136
|
+
useResetProjection: () => import_framer_motion2.useResetProjection,
|
|
49
137
|
useScroll: () => import_framer_motion2.useScroll,
|
|
50
138
|
useSpring: () => import_framer_motion2.useSpring,
|
|
51
139
|
useTime: () => import_framer_motion2.useTime,
|
|
52
140
|
useTransform: () => import_framer_motion2.useTransform,
|
|
53
141
|
useVelocity: () => import_framer_motion2.useVelocity,
|
|
54
|
-
useViewportScroll: () => import_framer_motion2.useViewportScroll
|
|
142
|
+
useViewportScroll: () => import_framer_motion2.useViewportScroll,
|
|
143
|
+
useWillChange: () => import_framer_motion2.useWillChange,
|
|
144
|
+
visualElementStore: () => import_framer_motion2.visualElementStore,
|
|
145
|
+
warning: () => import_framer_motion2.warning,
|
|
146
|
+
wrap: () => import_framer_motion2.wrap
|
|
55
147
|
});
|
|
56
148
|
module.exports = __toCommonJS(src_exports);
|
|
57
149
|
var import_framer_motion2 = require("framer-motion");
|
|
@@ -139,48 +231,140 @@ var MOTION_TRANSITION_DEFAULTS = {
|
|
|
139
231
|
ease: MOTION_TRANSITION_EASINGS.easeIn
|
|
140
232
|
}
|
|
141
233
|
};
|
|
142
|
-
var transitionEnter = (transition) => (
|
|
234
|
+
var transitionEnter = (transition) => (delay2, duration) => ({
|
|
143
235
|
...transition != null ? transition : MOTION_TRANSITION_DEFAULTS.enter,
|
|
144
236
|
...duration ? { duration: (0, import_utils2.isNumber)(duration) ? duration : duration == null ? void 0 : duration.enter } : {},
|
|
145
|
-
delay: (0, import_utils2.isNumber)(
|
|
237
|
+
delay: (0, import_utils2.isNumber)(delay2) ? delay2 : delay2 == null ? void 0 : delay2.enter
|
|
146
238
|
});
|
|
147
|
-
var transitionExit = (transition) => (
|
|
239
|
+
var transitionExit = (transition) => (delay2, duration) => ({
|
|
148
240
|
...transition != null ? transition : MOTION_TRANSITION_DEFAULTS.exit,
|
|
149
241
|
...duration ? { duration: (0, import_utils2.isNumber)(duration) ? duration : duration == null ? void 0 : duration.exit } : {},
|
|
150
|
-
delay: (0, import_utils2.isNumber)(
|
|
242
|
+
delay: (0, import_utils2.isNumber)(delay2) ? delay2 : delay2 == null ? void 0 : delay2.exit
|
|
151
243
|
});
|
|
152
244
|
// Annotate the CommonJS export names for ESM import in node:
|
|
153
245
|
0 && (module.exports = {
|
|
246
|
+
AcceleratedAnimation,
|
|
154
247
|
AnimatePresence,
|
|
248
|
+
AnimateSharedLayout,
|
|
249
|
+
DeprecatedLayoutGroupContext,
|
|
250
|
+
DragControls,
|
|
251
|
+
FlatTree,
|
|
155
252
|
LayoutGroup,
|
|
253
|
+
LayoutGroupContext,
|
|
156
254
|
LazyMotion,
|
|
157
255
|
MOTION_TRANSITION_DEFAULTS,
|
|
158
256
|
MOTION_TRANSITION_EASINGS,
|
|
159
257
|
MOTION_TRANSITION_VARIANTS,
|
|
160
258
|
Motion,
|
|
161
259
|
MotionConfig,
|
|
260
|
+
MotionConfigContext,
|
|
261
|
+
MotionContext,
|
|
262
|
+
MotionGlobalConfig,
|
|
162
263
|
MotionReorder,
|
|
264
|
+
PresenceContext,
|
|
265
|
+
SwitchLayoutGroupContext,
|
|
266
|
+
VisualElement,
|
|
267
|
+
addPointerInfo,
|
|
268
|
+
addScaleCorrector,
|
|
269
|
+
animate,
|
|
270
|
+
animateValue,
|
|
271
|
+
animateVisualElement,
|
|
272
|
+
animationControls,
|
|
273
|
+
animations,
|
|
274
|
+
anticipate,
|
|
275
|
+
backIn,
|
|
276
|
+
backInOut,
|
|
277
|
+
backOut,
|
|
278
|
+
buildTransform,
|
|
279
|
+
calcLength,
|
|
280
|
+
cancelFrame,
|
|
281
|
+
cancelSync,
|
|
282
|
+
circIn,
|
|
283
|
+
circInOut,
|
|
284
|
+
circOut,
|
|
285
|
+
clamp,
|
|
286
|
+
color,
|
|
287
|
+
complex,
|
|
288
|
+
createBox,
|
|
289
|
+
createDomMotionComponent,
|
|
290
|
+
createMotionComponent,
|
|
291
|
+
createScopedAnimate,
|
|
292
|
+
cubicBezier,
|
|
293
|
+
delay,
|
|
294
|
+
disableInstantTransitions,
|
|
295
|
+
distance,
|
|
296
|
+
distance2D,
|
|
297
|
+
domAnimation,
|
|
298
|
+
domMax,
|
|
299
|
+
easeIn,
|
|
300
|
+
easeInOut,
|
|
301
|
+
easeOut,
|
|
302
|
+
filterProps,
|
|
303
|
+
frame,
|
|
304
|
+
frameData,
|
|
305
|
+
inView,
|
|
306
|
+
interpolate,
|
|
307
|
+
invariant,
|
|
308
|
+
isBrowser,
|
|
309
|
+
isDragActive,
|
|
310
|
+
isMotionComponent,
|
|
311
|
+
isMotionValue,
|
|
312
|
+
isValidMotionProp,
|
|
163
313
|
m,
|
|
314
|
+
makeUseVisualState,
|
|
315
|
+
mirrorEasing,
|
|
316
|
+
mix,
|
|
164
317
|
motion,
|
|
318
|
+
motionValue,
|
|
319
|
+
optimizedAppearDataAttribute,
|
|
320
|
+
pipe,
|
|
321
|
+
progress,
|
|
322
|
+
px,
|
|
323
|
+
resolveMotionValue,
|
|
324
|
+
reverseEasing,
|
|
325
|
+
scroll,
|
|
326
|
+
scrollInfo,
|
|
327
|
+
spring,
|
|
328
|
+
stagger,
|
|
329
|
+
startOptimizedAppearAnimation,
|
|
330
|
+
steps,
|
|
331
|
+
sync,
|
|
165
332
|
transform,
|
|
166
333
|
transitionEnter,
|
|
167
334
|
transitionExit,
|
|
335
|
+
unwrapMotionComponent,
|
|
336
|
+
useAnimate,
|
|
337
|
+
useAnimationControls,
|
|
338
|
+
useAnimationFrame,
|
|
168
339
|
useCycle,
|
|
340
|
+
useDeprecatedAnimatedState,
|
|
341
|
+
useDeprecatedInvertedScale,
|
|
342
|
+
useDomEvent,
|
|
169
343
|
useDragControls,
|
|
344
|
+
useElementScroll,
|
|
345
|
+
useForceUpdate,
|
|
170
346
|
useInView,
|
|
347
|
+
useInstantLayoutTransition,
|
|
348
|
+
useInstantTransition,
|
|
171
349
|
useIsPresent,
|
|
350
|
+
useIsomorphicLayoutEffect,
|
|
172
351
|
useMotionAnimation,
|
|
173
|
-
useMotionAnimationControls,
|
|
174
|
-
useMotionAnimationFrame,
|
|
175
352
|
useMotionTemplate,
|
|
176
353
|
useMotionValue,
|
|
177
354
|
useMotionValueEvent,
|
|
355
|
+
usePresence,
|
|
178
356
|
useReducedMotion,
|
|
357
|
+
useReducedMotionConfig,
|
|
358
|
+
useResetProjection,
|
|
179
359
|
useScroll,
|
|
180
360
|
useSpring,
|
|
181
361
|
useTime,
|
|
182
362
|
useTransform,
|
|
183
363
|
useVelocity,
|
|
184
|
-
useViewportScroll
|
|
364
|
+
useViewportScroll,
|
|
365
|
+
useWillChange,
|
|
366
|
+
visualElementStore,
|
|
367
|
+
warning,
|
|
368
|
+
wrap
|
|
185
369
|
});
|
|
186
370
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/motion.tsx","../src/utils.ts"],"sourcesContent":["export {\n
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/motion.tsx","../src/utils.ts"],"sourcesContent":["export {\n AcceleratedAnimation,\n AnimatePresence,\n AnimateSharedLayout,\n DeprecatedLayoutGroupContext,\n DragControls,\n FlatTree,\n LayoutGroup,\n LayoutGroupContext,\n LazyMotion,\n MotionConfig,\n MotionConfigContext,\n MotionContext,\n MotionGlobalConfig,\n PresenceContext,\n Reorder as MotionReorder,\n SwitchLayoutGroupContext,\n VisualElement,\n addPointerInfo,\n addScaleCorrector,\n animate,\n animateValue,\n animateVisualElement,\n animationControls,\n animations,\n anticipate,\n backIn,\n backInOut,\n backOut,\n buildTransform,\n calcLength,\n cancelFrame,\n cancelSync,\n circIn,\n circInOut,\n circOut,\n clamp,\n color,\n complex,\n createBox,\n createDomMotionComponent,\n createMotionComponent,\n createScopedAnimate,\n cubicBezier,\n delay,\n disableInstantTransitions,\n distance,\n distance2D,\n domAnimation,\n domMax,\n easeIn,\n easeInOut,\n easeOut,\n filterProps,\n frame,\n frameData,\n inView,\n interpolate,\n invariant,\n isBrowser,\n isDragActive,\n isMotionComponent,\n isMotionValue,\n isValidMotionProp,\n m,\n makeUseVisualState,\n mirrorEasing,\n mix,\n motion,\n motionValue,\n optimizedAppearDataAttribute,\n pipe,\n progress,\n px,\n resolveMotionValue,\n reverseEasing,\n scroll,\n scrollInfo,\n spring,\n stagger,\n startOptimizedAppearAnimation,\n steps,\n sync,\n transform,\n unwrapMotionComponent,\n useAnimate,\n useAnimation as useMotionAnimation,\n useAnimationControls,\n useAnimationFrame,\n useCycle,\n useDeprecatedAnimatedState,\n useDeprecatedInvertedScale,\n useDomEvent,\n useDragControls,\n useElementScroll,\n useForceUpdate,\n useInView,\n useInstantLayoutTransition,\n useInstantTransition,\n useIsPresent,\n useIsomorphicLayoutEffect,\n useMotionTemplate,\n useMotionValue,\n useMotionValueEvent,\n usePresence,\n useReducedMotion,\n useReducedMotionConfig,\n useResetProjection,\n useScroll,\n useSpring,\n useTime,\n useTransform,\n useVelocity,\n useViewportScroll,\n useWillChange,\n visualElementStore,\n warning,\n wrap,\n} from \"framer-motion\"\nexport { Motion } from \"./motion\"\nexport type { MotionProps } from \"./motion\"\nexport * from \"./motion.types\"\nexport * from \"./utils\"\n","import type { HTMLUIProps, OmitProps } from \"@yamada-ui/core\"\nimport { ui, forwardRef } from \"@yamada-ui/core\"\nimport { cx } from \"@yamada-ui/utils\"\nimport type { HTMLMotionProps } from \"framer-motion\"\nimport { motion } from \"framer-motion\"\nimport type { ReactHTML } from \"react\"\nimport type { MotionAs } from \"./motion.types\"\n\ntype UIProps = \"children\" | \"color\"\n\ntype MotionOptions = {\n as?: MotionAs\n}\n\nexport type MotionProps<Y extends keyof ReactHTML = \"div\"> = OmitProps<\n HTMLUIProps<Y>,\n keyof Omit<HTMLMotionProps<Y>, UIProps>\n> &\n Omit<HTMLMotionProps<Y>, UIProps> &\n MotionOptions\n\n/**\n * `Motion` is a component that allows for the easy implementation of a wide variety of animations.\n *\n * @see Docs https://yamada-ui.com/components/other/motion\n */\nexport const Motion = forwardRef<MotionProps, \"div\", false>(\n ({ as = \"div\", className, ...rest }, ref) => {\n return (\n <ui.div\n as={motion[as]}\n ref={ref}\n className={cx(\"ui-motion\", className)}\n {...rest}\n />\n )\n },\n)\n","import { isNumber } from \"@yamada-ui/utils\"\nimport type { Transition } from \"framer-motion\"\nimport type { MotionTransitionProperties } from \"./motion.types\"\n\nexport const MOTION_TRANSITION_EASINGS = {\n ease: [0.25, 0.1, 0.25, 1],\n easeIn: [0.4, 0, 1, 1],\n easeOut: [0, 0, 0.2, 1],\n easeInOut: [0.4, 0, 0.2, 1],\n} as const\n\nexport const MOTION_TRANSITION_VARIANTS = {\n scale: {\n enter: { scale: 1 },\n exit: { scale: 0.95 },\n },\n fade: {\n enter: { opacity: 1 },\n exit: { opacity: 0 },\n },\n pushLeft: {\n enter: { x: \"100%\" },\n exit: { x: \"-30%\" },\n },\n pushRight: {\n enter: { x: \"-100%\" },\n exit: { x: \"30%\" },\n },\n pushUp: {\n enter: { y: \"100%\" },\n exit: { y: \"-30%\" },\n },\n pushDown: {\n enter: { y: \"-100%\" },\n exit: { y: \"30%\" },\n },\n slideLeft: {\n position: { left: 0, top: 0, bottom: 0, width: \"100%\" },\n enter: { x: 0, y: 0 },\n exit: { x: \"-100%\", y: 0 },\n },\n slideRight: {\n position: { right: 0, top: 0, bottom: 0, width: \"100%\" },\n enter: { x: 0, y: 0 },\n exit: { x: \"100%\", y: 0 },\n },\n slideUp: {\n position: { top: 0, left: 0, right: 0, maxWidth: \"100vw\" },\n enter: { x: 0, y: 0 },\n exit: { x: 0, y: \"-100%\" },\n },\n slideDown: {\n position: { bottom: 0, left: 0, right: 0, maxWidth: \"100vw\" },\n enter: { x: 0, y: 0 },\n exit: { x: 0, y: \"100%\" },\n },\n} as const\n\nexport const MOTION_TRANSITION_DEFAULTS = {\n enter: {\n duration: 0.25,\n ease: MOTION_TRANSITION_EASINGS.easeOut,\n },\n exit: {\n duration: 0.2,\n ease: MOTION_TRANSITION_EASINGS.easeIn,\n },\n} as const\n\nexport const transitionEnter =\n (transition?: Transition) =>\n (\n delay?: MotionTransitionProperties[\"delay\"],\n duration?: MotionTransitionProperties[\"duration\"],\n ): Transition => ({\n ...(transition ?? MOTION_TRANSITION_DEFAULTS.enter),\n ...(duration\n ? { duration: isNumber(duration) ? duration : duration?.enter }\n : {}),\n delay: isNumber(delay) ? delay : delay?.enter,\n })\n\nexport const transitionExit =\n (transition?: Transition) =>\n (\n delay?: MotionTransitionProperties[\"delay\"],\n duration?: MotionTransitionProperties[\"duration\"],\n ): Transition => ({\n ...(transition ?? MOTION_TRANSITION_DEFAULTS.exit),\n ...(duration\n ? { duration: isNumber(duration) ? duration : duration?.exit }\n : {}),\n delay: isNumber(delay) ? delay : delay?.exit,\n })\n"],"mappings":"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","names":["import_framer_motion","import_utils","delay"]}
|
package/dist/index.mjs
CHANGED
|
@@ -13,63 +13,247 @@ import {
|
|
|
13
13
|
|
|
14
14
|
// src/index.ts
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
motion,
|
|
16
|
+
AcceleratedAnimation,
|
|
18
17
|
AnimatePresence,
|
|
18
|
+
AnimateSharedLayout,
|
|
19
|
+
DeprecatedLayoutGroupContext,
|
|
20
|
+
DragControls,
|
|
21
|
+
FlatTree,
|
|
19
22
|
LayoutGroup,
|
|
23
|
+
LayoutGroupContext,
|
|
20
24
|
LazyMotion,
|
|
21
25
|
MotionConfig,
|
|
26
|
+
MotionConfigContext,
|
|
27
|
+
MotionContext,
|
|
28
|
+
MotionGlobalConfig,
|
|
29
|
+
PresenceContext,
|
|
22
30
|
Reorder,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
31
|
+
SwitchLayoutGroupContext,
|
|
32
|
+
VisualElement,
|
|
33
|
+
addPointerInfo,
|
|
34
|
+
addScaleCorrector,
|
|
35
|
+
animate,
|
|
36
|
+
animateValue,
|
|
37
|
+
animateVisualElement,
|
|
38
|
+
animationControls,
|
|
39
|
+
animations,
|
|
40
|
+
anticipate,
|
|
41
|
+
backIn,
|
|
42
|
+
backInOut,
|
|
43
|
+
backOut,
|
|
44
|
+
buildTransform,
|
|
45
|
+
calcLength,
|
|
46
|
+
cancelFrame,
|
|
47
|
+
cancelSync,
|
|
48
|
+
circIn,
|
|
49
|
+
circInOut,
|
|
50
|
+
circOut,
|
|
51
|
+
clamp,
|
|
52
|
+
color,
|
|
53
|
+
complex,
|
|
54
|
+
createBox,
|
|
55
|
+
createDomMotionComponent,
|
|
56
|
+
createMotionComponent,
|
|
57
|
+
createScopedAnimate,
|
|
58
|
+
cubicBezier,
|
|
59
|
+
delay,
|
|
60
|
+
disableInstantTransitions,
|
|
61
|
+
distance,
|
|
62
|
+
distance2D,
|
|
63
|
+
domAnimation,
|
|
64
|
+
domMax,
|
|
65
|
+
easeIn,
|
|
66
|
+
easeInOut,
|
|
67
|
+
easeOut,
|
|
68
|
+
filterProps,
|
|
69
|
+
frame,
|
|
70
|
+
frameData,
|
|
71
|
+
inView,
|
|
72
|
+
interpolate,
|
|
73
|
+
invariant,
|
|
74
|
+
isBrowser,
|
|
75
|
+
isDragActive,
|
|
76
|
+
isMotionComponent,
|
|
77
|
+
isMotionValue,
|
|
78
|
+
isValidMotionProp,
|
|
79
|
+
m,
|
|
80
|
+
makeUseVisualState,
|
|
81
|
+
mirrorEasing,
|
|
82
|
+
mix,
|
|
83
|
+
motion,
|
|
84
|
+
motionValue,
|
|
85
|
+
optimizedAppearDataAttribute,
|
|
86
|
+
pipe,
|
|
87
|
+
progress,
|
|
88
|
+
px,
|
|
89
|
+
resolveMotionValue,
|
|
90
|
+
reverseEasing,
|
|
91
|
+
scroll,
|
|
92
|
+
scrollInfo,
|
|
93
|
+
spring,
|
|
94
|
+
stagger,
|
|
95
|
+
startOptimizedAppearAnimation,
|
|
96
|
+
steps,
|
|
97
|
+
sync,
|
|
28
98
|
transform,
|
|
29
|
-
|
|
30
|
-
|
|
99
|
+
unwrapMotionComponent,
|
|
100
|
+
useAnimate,
|
|
31
101
|
useAnimation,
|
|
32
102
|
useAnimationControls,
|
|
33
103
|
useAnimationFrame,
|
|
104
|
+
useCycle,
|
|
105
|
+
useDeprecatedAnimatedState,
|
|
106
|
+
useDeprecatedInvertedScale,
|
|
107
|
+
useDomEvent,
|
|
34
108
|
useDragControls,
|
|
109
|
+
useElementScroll,
|
|
110
|
+
useForceUpdate,
|
|
35
111
|
useInView,
|
|
112
|
+
useInstantLayoutTransition,
|
|
113
|
+
useInstantTransition,
|
|
36
114
|
useIsPresent,
|
|
37
|
-
|
|
115
|
+
useIsomorphicLayoutEffect,
|
|
116
|
+
useMotionTemplate,
|
|
38
117
|
useMotionValue,
|
|
39
118
|
useMotionValueEvent,
|
|
40
|
-
|
|
119
|
+
usePresence,
|
|
120
|
+
useReducedMotion,
|
|
121
|
+
useReducedMotionConfig,
|
|
122
|
+
useResetProjection,
|
|
123
|
+
useScroll,
|
|
124
|
+
useSpring,
|
|
125
|
+
useTime,
|
|
126
|
+
useTransform,
|
|
127
|
+
useVelocity,
|
|
128
|
+
useViewportScroll,
|
|
129
|
+
useWillChange,
|
|
130
|
+
visualElementStore,
|
|
131
|
+
warning,
|
|
132
|
+
wrap
|
|
41
133
|
} from "framer-motion";
|
|
42
134
|
export {
|
|
135
|
+
AcceleratedAnimation,
|
|
43
136
|
AnimatePresence,
|
|
137
|
+
AnimateSharedLayout,
|
|
138
|
+
DeprecatedLayoutGroupContext,
|
|
139
|
+
DragControls,
|
|
140
|
+
FlatTree,
|
|
44
141
|
LayoutGroup,
|
|
142
|
+
LayoutGroupContext,
|
|
45
143
|
LazyMotion,
|
|
46
144
|
MOTION_TRANSITION_DEFAULTS,
|
|
47
145
|
MOTION_TRANSITION_EASINGS,
|
|
48
146
|
MOTION_TRANSITION_VARIANTS,
|
|
49
147
|
Motion,
|
|
50
148
|
MotionConfig,
|
|
149
|
+
MotionConfigContext,
|
|
150
|
+
MotionContext,
|
|
151
|
+
MotionGlobalConfig,
|
|
51
152
|
Reorder as MotionReorder,
|
|
153
|
+
PresenceContext,
|
|
154
|
+
SwitchLayoutGroupContext,
|
|
155
|
+
VisualElement,
|
|
156
|
+
addPointerInfo,
|
|
157
|
+
addScaleCorrector,
|
|
158
|
+
animate,
|
|
159
|
+
animateValue,
|
|
160
|
+
animateVisualElement,
|
|
161
|
+
animationControls,
|
|
162
|
+
animations,
|
|
163
|
+
anticipate,
|
|
164
|
+
backIn,
|
|
165
|
+
backInOut,
|
|
166
|
+
backOut,
|
|
167
|
+
buildTransform,
|
|
168
|
+
calcLength,
|
|
169
|
+
cancelFrame,
|
|
170
|
+
cancelSync,
|
|
171
|
+
circIn,
|
|
172
|
+
circInOut,
|
|
173
|
+
circOut,
|
|
174
|
+
clamp,
|
|
175
|
+
color,
|
|
176
|
+
complex,
|
|
177
|
+
createBox,
|
|
178
|
+
createDomMotionComponent,
|
|
179
|
+
createMotionComponent,
|
|
180
|
+
createScopedAnimate,
|
|
181
|
+
cubicBezier,
|
|
182
|
+
delay,
|
|
183
|
+
disableInstantTransitions,
|
|
184
|
+
distance,
|
|
185
|
+
distance2D,
|
|
186
|
+
domAnimation,
|
|
187
|
+
domMax,
|
|
188
|
+
easeIn,
|
|
189
|
+
easeInOut,
|
|
190
|
+
easeOut,
|
|
191
|
+
filterProps,
|
|
192
|
+
frame,
|
|
193
|
+
frameData,
|
|
194
|
+
inView,
|
|
195
|
+
interpolate,
|
|
196
|
+
invariant,
|
|
197
|
+
isBrowser,
|
|
198
|
+
isDragActive,
|
|
199
|
+
isMotionComponent,
|
|
200
|
+
isMotionValue,
|
|
201
|
+
isValidMotionProp,
|
|
52
202
|
m,
|
|
203
|
+
makeUseVisualState,
|
|
204
|
+
mirrorEasing,
|
|
205
|
+
mix,
|
|
53
206
|
motion,
|
|
207
|
+
motionValue,
|
|
208
|
+
optimizedAppearDataAttribute,
|
|
209
|
+
pipe,
|
|
210
|
+
progress,
|
|
211
|
+
px,
|
|
212
|
+
resolveMotionValue,
|
|
213
|
+
reverseEasing,
|
|
214
|
+
scroll,
|
|
215
|
+
scrollInfo,
|
|
216
|
+
spring,
|
|
217
|
+
stagger,
|
|
218
|
+
startOptimizedAppearAnimation,
|
|
219
|
+
steps,
|
|
220
|
+
sync,
|
|
54
221
|
transform,
|
|
55
222
|
transitionEnter,
|
|
56
223
|
transitionExit,
|
|
224
|
+
unwrapMotionComponent,
|
|
225
|
+
useAnimate,
|
|
226
|
+
useAnimationControls,
|
|
227
|
+
useAnimationFrame,
|
|
57
228
|
useCycle,
|
|
229
|
+
useDeprecatedAnimatedState,
|
|
230
|
+
useDeprecatedInvertedScale,
|
|
231
|
+
useDomEvent,
|
|
58
232
|
useDragControls,
|
|
233
|
+
useElementScroll,
|
|
234
|
+
useForceUpdate,
|
|
59
235
|
useInView,
|
|
236
|
+
useInstantLayoutTransition,
|
|
237
|
+
useInstantTransition,
|
|
60
238
|
useIsPresent,
|
|
239
|
+
useIsomorphicLayoutEffect,
|
|
61
240
|
useAnimation as useMotionAnimation,
|
|
62
|
-
useAnimationControls as useMotionAnimationControls,
|
|
63
|
-
useAnimationFrame as useMotionAnimationFrame,
|
|
64
241
|
useMotionTemplate,
|
|
65
242
|
useMotionValue,
|
|
66
243
|
useMotionValueEvent,
|
|
244
|
+
usePresence,
|
|
67
245
|
useReducedMotion,
|
|
246
|
+
useReducedMotionConfig,
|
|
247
|
+
useResetProjection,
|
|
68
248
|
useScroll,
|
|
69
249
|
useSpring,
|
|
70
250
|
useTime,
|
|
71
251
|
useTransform,
|
|
72
252
|
useVelocity,
|
|
73
|
-
useViewportScroll
|
|
253
|
+
useViewportScroll,
|
|
254
|
+
useWillChange,
|
|
255
|
+
visualElementStore,
|
|
256
|
+
warning,
|
|
257
|
+
wrap
|
|
74
258
|
};
|
|
75
259
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n AcceleratedAnimation,\n AnimatePresence,\n AnimateSharedLayout,\n DeprecatedLayoutGroupContext,\n DragControls,\n FlatTree,\n LayoutGroup,\n LayoutGroupContext,\n LazyMotion,\n MotionConfig,\n MotionConfigContext,\n MotionContext,\n MotionGlobalConfig,\n PresenceContext,\n Reorder as MotionReorder,\n SwitchLayoutGroupContext,\n VisualElement,\n addPointerInfo,\n addScaleCorrector,\n animate,\n animateValue,\n animateVisualElement,\n animationControls,\n animations,\n anticipate,\n backIn,\n backInOut,\n backOut,\n buildTransform,\n calcLength,\n cancelFrame,\n cancelSync,\n circIn,\n circInOut,\n circOut,\n clamp,\n color,\n complex,\n createBox,\n createDomMotionComponent,\n createMotionComponent,\n createScopedAnimate,\n cubicBezier,\n delay,\n disableInstantTransitions,\n distance,\n distance2D,\n domAnimation,\n domMax,\n easeIn,\n easeInOut,\n easeOut,\n filterProps,\n frame,\n frameData,\n inView,\n interpolate,\n invariant,\n isBrowser,\n isDragActive,\n isMotionComponent,\n isMotionValue,\n isValidMotionProp,\n m,\n makeUseVisualState,\n mirrorEasing,\n mix,\n motion,\n motionValue,\n optimizedAppearDataAttribute,\n pipe,\n progress,\n px,\n resolveMotionValue,\n reverseEasing,\n scroll,\n scrollInfo,\n spring,\n stagger,\n startOptimizedAppearAnimation,\n steps,\n sync,\n transform,\n unwrapMotionComponent,\n useAnimate,\n useAnimation as useMotionAnimation,\n useAnimationControls,\n useAnimationFrame,\n useCycle,\n useDeprecatedAnimatedState,\n useDeprecatedInvertedScale,\n useDomEvent,\n useDragControls,\n useElementScroll,\n useForceUpdate,\n useInView,\n useInstantLayoutTransition,\n useInstantTransition,\n useIsPresent,\n useIsomorphicLayoutEffect,\n useMotionTemplate,\n useMotionValue,\n useMotionValueEvent,\n usePresence,\n useReducedMotion,\n useReducedMotionConfig,\n useResetProjection,\n useScroll,\n useSpring,\n useTime,\n useTransform,\n useVelocity,\n useViewportScroll,\n useWillChange,\n visualElementStore,\n warning,\n wrap,\n} from \"framer-motion\"\nexport { Motion } from \"./motion\"\nexport type { MotionProps } from \"./motion\"\nexport * from \"./motion.types\"\nexport * from \"./utils\"\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACW;AAAA,EACX;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACgB;AAAA,EAChB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;","names":[]}
|
package/dist/motion.types.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@yamada-ui/utils';
|
|
2
|
-
export {
|
|
2
|
+
export { CSSStyleDeclarationWithTransform, DOMMotionComponents, HTMLMotionProps, AbsoluteKeyframe as MotionAbsoluteKeyframe, MotionAdvancedProps, AnimatePresenceProps as MotionAnimatePresenceProps, AnimationControls as MotionAnimationControls, AnimationDefinition as MotionAnimationDefinition, AnimationLifecycles as MotionAnimationLifecycles, AnimationOptionsWithValueOverrides as MotionAnimationOptionsWithValueOverrides, AnimationPlaybackControls as MotionAnimationPlaybackControls, AnimationPlaybackLifecycles as MotionAnimationPlaybackLifecycles, AnimationPlaybackOptions as MotionAnimationPlaybackOptions, AnimationProps as MotionAnimationProps, AnimationScope as MotionAnimationScope, AnimationSequence as MotionAnimationSequence, AnimationType as MotionAnimationType, At as MotionAt, Axis as MotionAxis, AxisDelta as MotionAxisDelta, BezierDefinition as MotionBezierDefinition, BoundingBox as MotionBoundingBox, Box as MotionBox, MotionConfigProps, CreateVisualElement as MotionCreateVisualElement, CustomDomComponent as MotionCustomDomComponent, CustomValueType as MotionCustomValueType, Cycle as MotionCycle, CycleState as MotionCycleState, DOMKeyframesDefinition as MotionDOMKeyframesDefinition, DOMSegment as MotionDOMSegment, DOMSegmentWithTransition as MotionDOMSegmentWithTransition, DecayOptions as MotionDecayOptions, DelayedFunction as MotionDelayedFunction, Delta as MotionDelta, DevMessage as MotionDevMessage, DragElastic as MotionDragElastic, DragHandlers as MotionDragHandlers, DraggableProps as MotionDraggableProps, DurationSpringOptions as MotionDurationSpringOptions, DynamicAnimationOptions as MotionDynamicAnimationOptions, DynamicOption as MotionDynamicOption, Easing as MotionEasing, EasingDefinition as MotionEasingDefinition, EasingFunction as MotionEasingFunction, EasingModifier as MotionEasingModifier, ElementOrSelector as MotionElementOrSelector, EventInfo as MotionEventInfo, FeatureBundle as MotionFeatureBundle, FeatureDefinition as MotionFeatureDefinition, FeatureDefinitions as MotionFeatureDefinitions, FeaturePackage as MotionFeaturePackage, FeaturePackages as MotionFeaturePackages, FocusHandlers as MotionFocusHandlers, HoverHandlers as MotionHoverHandlers, HydratedFeatureDefinition as MotionHydratedFeatureDefinition, HydratedFeatureDefinitions as MotionHydratedFeatureDefinitions, IProjectionNode as MotionIProjectionNode, Inertia as MotionInertia, InertiaOptions as MotionInertiaOptions, InterpolateOptions as MotionInterpolateOptions, KeyframeOptions as MotionKeyframeOptions, Keyframes as MotionKeyframes, KeyframesTarget as MotionKeyframesTarget, LayoutProps as MotionLayoutProps, LazyFeatureBundle as MotionLazyFeatureBundle, LazyProps as MotionLazyProps, MixerFactory as MotionMixerFactory, None as MotionNone, Orchestration as MotionOrchestration, PanHandlers as MotionPanHandlers, PanInfo as MotionPanInfo, PassiveEffect as MotionPassiveEffect, Point as MotionPoint, RelayoutInfo as MotionRelayoutInfo, RenderComponent as MotionRenderComponent, Repeat as MotionRepeat, RepeatType as MotionRepeatType, ResolveKeyframes as MotionResolveKeyframes, ResolveLayoutTransition as MotionResolveLayoutTransition, ResolvedAnimationDefinition as MotionResolvedAnimationDefinition, ResolvedAnimationDefinitions as MotionResolvedAnimationDefinitions, ResolvedKeyframesTarget as MotionResolvedKeyframesTarget, ResolvedSingleTarget as MotionResolvedSingleTarget, ResolvedValueTarget as MotionResolvedValueTarget, ResolvedValues as MotionResolvedValues, Segment as MotionSegment, SequenceLabel as MotionSequenceLabel, SequenceLabelWithTime as MotionSequenceLabelWithTime, SequenceMap as MotionSequenceMap, SequenceOptions as MotionSequenceOptions, SequenceTime as MotionSequenceTime, SingleTarget as MotionSingleTarget, Spring as MotionSpring, SpringOptions as MotionSpringOptions, MotionStyle, StyleKeyframesDefinition as MotionStyleKeyframesDefinition, StyleTransitions as MotionStyleTransitions, Subscriber as MotionSubscriber, TapHandlers as MotionTapHandlers, TapInfo as MotionTapInfo, Target as MotionTarget, TargetAndTransition as MotionTargetAndTransition, MotionTransform, TransformPoint as MotionTransformPoint, Transition as MotionTransition, Tween as MotionTween, UnresolvedValueKeyframe as MotionUnresolvedValueKeyframe, UseInViewOptions as MotionUseInViewOptions, MotionValue, ValueAnimationOptions as MotionValueAnimationOptions, ValueAnimationTransition as MotionValueAnimationTransition, ValueKeyframe as MotionValueKeyframe, ValueKeyframesDefinition as MotionValueKeyframesDefinition, MotionValueSegment, MotionValueSegmentWithTransition, ValueSequence as MotionValueSequence, ValueTarget as MotionValueTarget, ValueType as MotionValueType, VariableKeyframesDefinition as MotionVariableKeyframesDefinition, VariableTransitions as MotionVariableTransitions, Variant as MotionVariant, VariantLabels as MotionVariantLabels, Variants as MotionVariants, VelocityOptions as MotionVelocityOptions, VisualState as MotionVisualState, SVGAttributesAsMotionValues, SVGKeyframesDefinition, SVGMotionProps, SVGPathKeyframesDefinition, SVGPathTransitions, SVGTransitions, ScrapeMotionValuesFromProps, ScrollMotionValues } from 'framer-motion';
|
|
3
3
|
import 'react';
|
|
4
4
|
export { c as MotionAs, g as MotionDelayProps, h as MotionDurationProps, f as MotionTransitionEndProps, M as MotionTransitionProperties, e as MotionTransitionProps, d as MotionTransitionVariants, i as MotionUIPropGetter, R as RequiredMotionUIPropGetter, W as WithTransitionProps } from './motion-e1qwi-dM.mjs';
|
|
5
5
|
import '@yamada-ui/core';
|
package/dist/motion.types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@yamada-ui/utils';
|
|
2
|
-
export {
|
|
2
|
+
export { CSSStyleDeclarationWithTransform, DOMMotionComponents, HTMLMotionProps, AbsoluteKeyframe as MotionAbsoluteKeyframe, MotionAdvancedProps, AnimatePresenceProps as MotionAnimatePresenceProps, AnimationControls as MotionAnimationControls, AnimationDefinition as MotionAnimationDefinition, AnimationLifecycles as MotionAnimationLifecycles, AnimationOptionsWithValueOverrides as MotionAnimationOptionsWithValueOverrides, AnimationPlaybackControls as MotionAnimationPlaybackControls, AnimationPlaybackLifecycles as MotionAnimationPlaybackLifecycles, AnimationPlaybackOptions as MotionAnimationPlaybackOptions, AnimationProps as MotionAnimationProps, AnimationScope as MotionAnimationScope, AnimationSequence as MotionAnimationSequence, AnimationType as MotionAnimationType, At as MotionAt, Axis as MotionAxis, AxisDelta as MotionAxisDelta, BezierDefinition as MotionBezierDefinition, BoundingBox as MotionBoundingBox, Box as MotionBox, MotionConfigProps, CreateVisualElement as MotionCreateVisualElement, CustomDomComponent as MotionCustomDomComponent, CustomValueType as MotionCustomValueType, Cycle as MotionCycle, CycleState as MotionCycleState, DOMKeyframesDefinition as MotionDOMKeyframesDefinition, DOMSegment as MotionDOMSegment, DOMSegmentWithTransition as MotionDOMSegmentWithTransition, DecayOptions as MotionDecayOptions, DelayedFunction as MotionDelayedFunction, Delta as MotionDelta, DevMessage as MotionDevMessage, DragElastic as MotionDragElastic, DragHandlers as MotionDragHandlers, DraggableProps as MotionDraggableProps, DurationSpringOptions as MotionDurationSpringOptions, DynamicAnimationOptions as MotionDynamicAnimationOptions, DynamicOption as MotionDynamicOption, Easing as MotionEasing, EasingDefinition as MotionEasingDefinition, EasingFunction as MotionEasingFunction, EasingModifier as MotionEasingModifier, ElementOrSelector as MotionElementOrSelector, EventInfo as MotionEventInfo, FeatureBundle as MotionFeatureBundle, FeatureDefinition as MotionFeatureDefinition, FeatureDefinitions as MotionFeatureDefinitions, FeaturePackage as MotionFeaturePackage, FeaturePackages as MotionFeaturePackages, FocusHandlers as MotionFocusHandlers, HoverHandlers as MotionHoverHandlers, HydratedFeatureDefinition as MotionHydratedFeatureDefinition, HydratedFeatureDefinitions as MotionHydratedFeatureDefinitions, IProjectionNode as MotionIProjectionNode, Inertia as MotionInertia, InertiaOptions as MotionInertiaOptions, InterpolateOptions as MotionInterpolateOptions, KeyframeOptions as MotionKeyframeOptions, Keyframes as MotionKeyframes, KeyframesTarget as MotionKeyframesTarget, LayoutProps as MotionLayoutProps, LazyFeatureBundle as MotionLazyFeatureBundle, LazyProps as MotionLazyProps, MixerFactory as MotionMixerFactory, None as MotionNone, Orchestration as MotionOrchestration, PanHandlers as MotionPanHandlers, PanInfo as MotionPanInfo, PassiveEffect as MotionPassiveEffect, Point as MotionPoint, RelayoutInfo as MotionRelayoutInfo, RenderComponent as MotionRenderComponent, Repeat as MotionRepeat, RepeatType as MotionRepeatType, ResolveKeyframes as MotionResolveKeyframes, ResolveLayoutTransition as MotionResolveLayoutTransition, ResolvedAnimationDefinition as MotionResolvedAnimationDefinition, ResolvedAnimationDefinitions as MotionResolvedAnimationDefinitions, ResolvedKeyframesTarget as MotionResolvedKeyframesTarget, ResolvedSingleTarget as MotionResolvedSingleTarget, ResolvedValueTarget as MotionResolvedValueTarget, ResolvedValues as MotionResolvedValues, Segment as MotionSegment, SequenceLabel as MotionSequenceLabel, SequenceLabelWithTime as MotionSequenceLabelWithTime, SequenceMap as MotionSequenceMap, SequenceOptions as MotionSequenceOptions, SequenceTime as MotionSequenceTime, SingleTarget as MotionSingleTarget, Spring as MotionSpring, SpringOptions as MotionSpringOptions, MotionStyle, StyleKeyframesDefinition as MotionStyleKeyframesDefinition, StyleTransitions as MotionStyleTransitions, Subscriber as MotionSubscriber, TapHandlers as MotionTapHandlers, TapInfo as MotionTapInfo, Target as MotionTarget, TargetAndTransition as MotionTargetAndTransition, MotionTransform, TransformPoint as MotionTransformPoint, Transition as MotionTransition, Tween as MotionTween, UnresolvedValueKeyframe as MotionUnresolvedValueKeyframe, UseInViewOptions as MotionUseInViewOptions, MotionValue, ValueAnimationOptions as MotionValueAnimationOptions, ValueAnimationTransition as MotionValueAnimationTransition, ValueKeyframe as MotionValueKeyframe, ValueKeyframesDefinition as MotionValueKeyframesDefinition, MotionValueSegment, MotionValueSegmentWithTransition, ValueSequence as MotionValueSequence, ValueTarget as MotionValueTarget, ValueType as MotionValueType, VariableKeyframesDefinition as MotionVariableKeyframesDefinition, VariableTransitions as MotionVariableTransitions, Variant as MotionVariant, VariantLabels as MotionVariantLabels, Variants as MotionVariants, VelocityOptions as MotionVelocityOptions, VisualState as MotionVisualState, SVGAttributesAsMotionValues, SVGKeyframesDefinition, SVGMotionProps, SVGPathKeyframesDefinition, SVGPathTransitions, SVGTransitions, ScrapeMotionValuesFromProps, ScrollMotionValues } from 'framer-motion';
|
|
3
3
|
import 'react';
|
|
4
4
|
export { c as MotionAs, g as MotionDelayProps, h as MotionDurationProps, f as MotionTransitionEndProps, M as MotionTransitionProperties, e as MotionTransitionProps, d as MotionTransitionVariants, i as MotionUIPropGetter, R as RequiredMotionUIPropGetter, W as WithTransitionProps } from './motion-e1qwi-dM.js';
|
|
5
5
|
import '@yamada-ui/core';
|
package/dist/motion.types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/motion.types.ts"],"sourcesContent":["import type { Dict, Merge } from \"@yamada-ui/utils\"\nimport type {\n Target,\n TargetAndTransition,\n Transition,\n motion,\n} from \"framer-motion\"\nimport type { Ref, RefAttributes, ReactHTML } from \"react\"\nimport type { MotionProps } from \"./motion\"\n\nexport type {\n HTMLMotionProps,\n
|
|
1
|
+
{"version":3,"sources":["../src/motion.types.ts"],"sourcesContent":["import type { Dict, Merge } from \"@yamada-ui/utils\"\nimport type {\n Target,\n TargetAndTransition,\n Transition,\n motion,\n} from \"framer-motion\"\nimport type { Ref, RefAttributes, ReactHTML } from \"react\"\nimport type { MotionProps } from \"./motion\"\n\nexport type {\n MotionValue,\n AbsoluteKeyframe as MotionAbsoluteKeyframe,\n AnimatePresenceProps as MotionAnimatePresenceProps,\n AnimationControls as MotionAnimationControls,\n AnimationDefinition as MotionAnimationDefinition,\n AnimationLifecycles as MotionAnimationLifecycles,\n AnimationOptionsWithValueOverrides as MotionAnimationOptionsWithValueOverrides,\n AnimationPlaybackControls as MotionAnimationPlaybackControls,\n AnimationPlaybackLifecycles as MotionAnimationPlaybackLifecycles,\n AnimationPlaybackOptions as MotionAnimationPlaybackOptions,\n AnimationProps as MotionAnimationProps,\n AnimationScope as MotionAnimationScope,\n AnimationSequence as MotionAnimationSequence,\n AnimationType as MotionAnimationType,\n At as MotionAt,\n Axis as MotionAxis,\n AxisDelta as MotionAxisDelta,\n BezierDefinition as MotionBezierDefinition,\n BoundingBox as MotionBoundingBox,\n Box as MotionBox,\n CSSStyleDeclarationWithTransform,\n CreateVisualElement as MotionCreateVisualElement,\n CustomDomComponent as MotionCustomDomComponent,\n CustomValueType as MotionCustomValueType,\n Cycle as MotionCycle,\n CycleState as MotionCycleState,\n DOMKeyframesDefinition as MotionDOMKeyframesDefinition,\n DOMMotionComponents,\n DOMSegment as MotionDOMSegment,\n DOMSegmentWithTransition as MotionDOMSegmentWithTransition,\n DecayOptions as MotionDecayOptions,\n DelayedFunction as MotionDelayedFunction,\n Delta as MotionDelta,\n DevMessage as MotionDevMessage,\n DragElastic as MotionDragElastic,\n DragHandlers as MotionDragHandlers,\n DraggableProps as MotionDraggableProps,\n DurationSpringOptions as MotionDurationSpringOptions,\n DynamicAnimationOptions as MotionDynamicAnimationOptions,\n DynamicOption as MotionDynamicOption,\n Easing as MotionEasing,\n EasingDefinition as MotionEasingDefinition,\n EasingFunction as MotionEasingFunction,\n EasingModifier as MotionEasingModifier,\n ElementOrSelector as MotionElementOrSelector,\n EventInfo as MotionEventInfo,\n FeatureBundle as MotionFeatureBundle,\n FeatureDefinition as MotionFeatureDefinition,\n FeatureDefinitions as MotionFeatureDefinitions,\n FeaturePackage as MotionFeaturePackage,\n FeaturePackages as MotionFeaturePackages,\n FocusHandlers as MotionFocusHandlers,\n HTMLMotionProps,\n HoverHandlers as MotionHoverHandlers,\n HydratedFeatureDefinition as MotionHydratedFeatureDefinition,\n HydratedFeatureDefinitions as MotionHydratedFeatureDefinitions,\n IProjectionNode as MotionIProjectionNode,\n Inertia as MotionInertia,\n InertiaOptions as MotionInertiaOptions,\n InterpolateOptions as MotionInterpolateOptions,\n KeyframeOptions as MotionKeyframeOptions,\n Keyframes as MotionKeyframes,\n KeyframesTarget as MotionKeyframesTarget,\n LayoutProps as MotionLayoutProps,\n LazyFeatureBundle as MotionLazyFeatureBundle,\n LazyProps as MotionLazyProps,\n MixerFactory as MotionMixerFactory,\n MotionAdvancedProps,\n MotionConfigProps,\n MotionStyle,\n MotionTransform,\n MotionValueSegment,\n MotionValueSegmentWithTransition,\n None as MotionNone,\n Orchestration as MotionOrchestration,\n PanHandlers as MotionPanHandlers,\n PanInfo as MotionPanInfo,\n PassiveEffect as MotionPassiveEffect,\n Point as MotionPoint,\n RelayoutInfo as MotionRelayoutInfo,\n RenderComponent as MotionRenderComponent,\n Repeat as MotionRepeat,\n RepeatType as MotionRepeatType,\n ResolveKeyframes as MotionResolveKeyframes,\n ResolveLayoutTransition as MotionResolveLayoutTransition,\n ResolvedAnimationDefinition as MotionResolvedAnimationDefinition,\n ResolvedAnimationDefinitions as MotionResolvedAnimationDefinitions,\n ResolvedKeyframesTarget as MotionResolvedKeyframesTarget,\n ResolvedSingleTarget as MotionResolvedSingleTarget,\n ResolvedValueTarget as MotionResolvedValueTarget,\n ResolvedValues as MotionResolvedValues,\n SVGAttributesAsMotionValues,\n SVGKeyframesDefinition,\n SVGMotionProps,\n SVGPathKeyframesDefinition,\n SVGPathTransitions,\n SVGTransitions,\n ScrapeMotionValuesFromProps,\n ScrollMotionValues,\n Segment as MotionSegment,\n SequenceLabel as MotionSequenceLabel,\n SequenceLabelWithTime as MotionSequenceLabelWithTime,\n SequenceMap as MotionSequenceMap,\n SequenceOptions as MotionSequenceOptions,\n SequenceTime as MotionSequenceTime,\n SingleTarget as MotionSingleTarget,\n Spring as MotionSpring,\n SpringOptions as MotionSpringOptions,\n StyleKeyframesDefinition as MotionStyleKeyframesDefinition,\n StyleTransitions as MotionStyleTransitions,\n Subscriber as MotionSubscriber,\n TapHandlers as MotionTapHandlers,\n TapInfo as MotionTapInfo,\n Target as MotionTarget,\n TargetAndTransition as MotionTargetAndTransition,\n TransformPoint as MotionTransformPoint,\n Transition as MotionTransition,\n Tween as MotionTween,\n UnresolvedValueKeyframe as MotionUnresolvedValueKeyframe,\n UseInViewOptions as MotionUseInViewOptions,\n ValueAnimationOptions as MotionValueAnimationOptions,\n ValueAnimationTransition as MotionValueAnimationTransition,\n ValueKeyframe as MotionValueKeyframe,\n ValueKeyframesDefinition as MotionValueKeyframesDefinition,\n ValueSequence as MotionValueSequence,\n ValueTarget as MotionValueTarget,\n ValueType as MotionValueType,\n VariableKeyframesDefinition as MotionVariableKeyframesDefinition,\n VariableTransitions as MotionVariableTransitions,\n Variant as MotionVariant,\n VariantLabels as MotionVariantLabels,\n Variants as MotionVariants,\n VelocityOptions as MotionVelocityOptions,\n VisualState as MotionVisualState,\n} from \"framer-motion\"\n\nexport type MotionAs = keyof typeof motion\n\ntype TargetResolver<Y = Dict> = (\n props: Y & MotionTransitionProperties,\n) => TargetAndTransition\n\ntype Variant<Y = Dict> = TargetAndTransition | TargetResolver<Y>\n\nexport type MotionTransitionVariants<Y = Dict> = {\n enter: Variant<Y>\n exit: Variant<Y>\n initial?: Variant<Y>\n}\n\nexport type MotionTransitionProperties = {\n /**\n * Custom `transition` definition for `enter` and `exit`.\n */\n transition?: MotionTransitionProps\n /**\n * Custom `transitionEnd` definition for `enter` and `exit`.\n */\n transitionEnd?: MotionTransitionEndProps\n /**\n * Custom `delay` definition for `enter` and `exit`.\n */\n delay?: number | MotionDelayProps\n /**\n * Custom `duration` definition for `enter` and `exit`.\n */\n duration?: number | MotionDurationProps\n /**\n * Custom `enter`.\n */\n enter?: any\n /**\n * Custom `exit`.\n */\n exit?: any\n /**\n * Custom `initial`.\n */\n initial?: any\n}\n\ntype WithMotionProps<Y> = Partial<Record<\"enter\" | \"exit\", Y>>\n\nexport type MotionTransitionProps = WithMotionProps<Transition>\n\nexport type MotionTransitionEndProps = WithMotionProps<Target>\n\nexport type MotionDelayProps = WithMotionProps<number>\n\nexport type MotionDurationProps = WithMotionProps<number>\n\nexport type WithTransitionProps<Y extends object> = Omit<Y, \"transition\"> &\n MotionTransitionProperties & {\n /**\n * If `true`, the element will unmount when `isOpen={false}` and animation is done.\n */\n unmountOnExit?: boolean\n /**\n * Show the component. triggers when enter or exit states.\n */\n isOpen?: boolean\n }\n\nexport type MotionUIPropGetter<\n Y extends keyof ReactHTML = \"div\",\n M = undefined,\n> = (\n props?: Merge<MotionProps<Y>, M>,\n ref?: Ref<any>,\n) => MotionProps<Y> & RefAttributes<any>\n\nexport type RequiredMotionUIPropGetter<\n Y extends keyof ReactHTML = \"div\",\n M = undefined,\n> = (\n props: Merge<MotionProps<Y>, M>,\n ref?: Ref<any>,\n) => MotionProps<Y> & RefAttributes<any>\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamada-ui/motion",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-dev-20240620113508",
|
|
4
4
|
"description": "Yamada UI motion components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yamada",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"url": "https://github.com/yamada-ui/yamada-ui/issues"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"framer-motion": "^
|
|
40
|
-
"@yamada-ui/core": "1.8.0-dev-
|
|
41
|
-
"@yamada-ui/utils": "1.3.0-dev-
|
|
39
|
+
"framer-motion": "^11.2.10",
|
|
40
|
+
"@yamada-ui/core": "1.8.0-dev-20240620113508",
|
|
41
|
+
"@yamada-ui/utils": "1.3.0-dev-20240620113508"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"react": "^18.0.0",
|