@yamada-ui/motion 0.4.15 → 0.4.17

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 CHANGED
@@ -3,4 +3,5 @@ export { Motion, MotionProps } from './motion.mjs';
3
3
  export { MotionDelayProps, MotionDurationProps, MotionTransitionEndProps, MotionTransitionProperties, MotionTransitionProps, MotionTransitionVariants, WithTransitionProps } from './motion.types.mjs';
4
4
  export { MOTION_TRANSITION_DEFAULTS, MOTION_TRANSITION_EASINGS, MOTION_TRANSITION_VARIANTS, transitionEnter, transitionExit } from './utils.mjs';
5
5
  import '@yamada-ui/core';
6
+ import 'react';
6
7
  import '@yamada-ui/utils';
package/dist/index.d.ts CHANGED
@@ -3,4 +3,5 @@ export { Motion, MotionProps } from './motion.js';
3
3
  export { MotionDelayProps, MotionDurationProps, MotionTransitionEndProps, MotionTransitionProperties, MotionTransitionProps, MotionTransitionVariants, WithTransitionProps } from './motion.types.js';
4
4
  export { MOTION_TRANSITION_DEFAULTS, MOTION_TRANSITION_EASINGS, MOTION_TRANSITION_VARIANTS, transitionEnter, transitionExit } from './utils.js';
5
5
  import '@yamada-ui/core';
6
+ import 'react';
6
7
  import '@yamada-ui/utils';
package/dist/motion.d.mts CHANGED
@@ -1,11 +1,12 @@
1
1
  import * as _yamada_ui_core from '@yamada-ui/core';
2
- import { HTMLUIProps } from '@yamada-ui/core';
2
+ import { OmitProps, HTMLUIProps } from '@yamada-ui/core';
3
3
  import { HTMLMotionProps, motion } from 'framer-motion';
4
+ import { ReactHTML } from 'react';
4
5
 
5
6
  type MotionOptions = {
6
7
  as?: keyof typeof motion;
7
8
  };
8
- type MotionProps = Omit<HTMLUIProps<'div'>, 'as' | 'style' | 'onDrag' | 'onDragStart' | 'onDragEnd'> & HTMLMotionProps<'div'> & MotionOptions;
9
- declare const Motion: _yamada_ui_core.Component<"div", MotionProps>;
9
+ type MotionProps<Y extends keyof ReactHTML = "div"> = OmitProps<HTMLUIProps<Y>, keyof HTMLMotionProps<Y>> & HTMLMotionProps<Y> & MotionOptions;
10
+ declare const Motion: _yamada_ui_core.Component<"div", MotionProps<"div">>;
10
11
 
11
12
  export { Motion, MotionProps };
package/dist/motion.d.ts CHANGED
@@ -1,11 +1,12 @@
1
1
  import * as _yamada_ui_core from '@yamada-ui/core';
2
- import { HTMLUIProps } from '@yamada-ui/core';
2
+ import { OmitProps, HTMLUIProps } from '@yamada-ui/core';
3
3
  import { HTMLMotionProps, motion } from 'framer-motion';
4
+ import { ReactHTML } from 'react';
4
5
 
5
6
  type MotionOptions = {
6
7
  as?: keyof typeof motion;
7
8
  };
8
- type MotionProps = Omit<HTMLUIProps<'div'>, 'as' | 'style' | 'onDrag' | 'onDragStart' | 'onDragEnd'> & HTMLMotionProps<'div'> & MotionOptions;
9
- declare const Motion: _yamada_ui_core.Component<"div", MotionProps>;
9
+ type MotionProps<Y extends keyof ReactHTML = "div"> = OmitProps<HTMLUIProps<Y>, keyof HTMLMotionProps<Y>> & HTMLMotionProps<Y> & MotionOptions;
10
+ declare const Motion: _yamada_ui_core.Component<"div", MotionProps<"div">>;
10
11
 
11
12
  export { Motion, MotionProps };
@@ -39,12 +39,12 @@ type MotionTransitionProperties = {
39
39
  */
40
40
  initial?: any;
41
41
  };
42
- type WithMotionProps<Y> = Partial<Record<'enter' | 'exit', Y>>;
42
+ type WithMotionProps<Y> = Partial<Record<"enter" | "exit", Y>>;
43
43
  type MotionTransitionProps = WithMotionProps<Transition>;
44
44
  type MotionTransitionEndProps = WithMotionProps<Target>;
45
45
  type MotionDelayProps = WithMotionProps<number>;
46
46
  type MotionDurationProps = WithMotionProps<number>;
47
- type WithTransitionProps<Y extends object> = Omit<Y, 'transition'> & MotionTransitionProperties & {
47
+ type WithTransitionProps<Y extends object> = Omit<Y, "transition"> & MotionTransitionProperties & {
48
48
  /**
49
49
  * If `true`, the element will unmount when `isOpen={false}` and animation is done.
50
50
  */
@@ -39,12 +39,12 @@ type MotionTransitionProperties = {
39
39
  */
40
40
  initial?: any;
41
41
  };
42
- type WithMotionProps<Y> = Partial<Record<'enter' | 'exit', Y>>;
42
+ type WithMotionProps<Y> = Partial<Record<"enter" | "exit", Y>>;
43
43
  type MotionTransitionProps = WithMotionProps<Transition>;
44
44
  type MotionTransitionEndProps = WithMotionProps<Target>;
45
45
  type MotionDelayProps = WithMotionProps<number>;
46
46
  type MotionDurationProps = WithMotionProps<number>;
47
- type WithTransitionProps<Y extends object> = Omit<Y, 'transition'> & MotionTransitionProperties & {
47
+ type WithTransitionProps<Y extends object> = Omit<Y, "transition"> & MotionTransitionProperties & {
48
48
  /**
49
49
  * If `true`, the element will unmount when `isOpen={false}` and animation is done.
50
50
  */
package/dist/utils.d.mts CHANGED
@@ -132,7 +132,7 @@ declare const MOTION_TRANSITION_DEFAULTS: {
132
132
  readonly ease: readonly [0.4, 0, 1, 1];
133
133
  };
134
134
  };
135
- declare const transitionEnter: (transition?: Transition) => (delay?: MotionTransitionProperties['delay'], duration?: MotionTransitionProperties['duration']) => Transition;
136
- declare const transitionExit: (transition?: Transition) => (delay?: MotionTransitionProperties['delay'], duration?: MotionTransitionProperties['duration']) => Transition;
135
+ declare const transitionEnter: (transition?: Transition) => (delay?: MotionTransitionProperties["delay"], duration?: MotionTransitionProperties["duration"]) => Transition;
136
+ declare const transitionExit: (transition?: Transition) => (delay?: MotionTransitionProperties["delay"], duration?: MotionTransitionProperties["duration"]) => Transition;
137
137
 
138
138
  export { MOTION_TRANSITION_DEFAULTS, MOTION_TRANSITION_EASINGS, MOTION_TRANSITION_VARIANTS, transitionEnter, transitionExit };
package/dist/utils.d.ts CHANGED
@@ -132,7 +132,7 @@ declare const MOTION_TRANSITION_DEFAULTS: {
132
132
  readonly ease: readonly [0.4, 0, 1, 1];
133
133
  };
134
134
  };
135
- declare const transitionEnter: (transition?: Transition) => (delay?: MotionTransitionProperties['delay'], duration?: MotionTransitionProperties['duration']) => Transition;
136
- declare const transitionExit: (transition?: Transition) => (delay?: MotionTransitionProperties['delay'], duration?: MotionTransitionProperties['duration']) => Transition;
135
+ declare const transitionEnter: (transition?: Transition) => (delay?: MotionTransitionProperties["delay"], duration?: MotionTransitionProperties["duration"]) => Transition;
136
+ declare const transitionExit: (transition?: Transition) => (delay?: MotionTransitionProperties["delay"], duration?: MotionTransitionProperties["duration"]) => Transition;
137
137
 
138
138
  export { MOTION_TRANSITION_DEFAULTS, MOTION_TRANSITION_EASINGS, MOTION_TRANSITION_VARIANTS, transitionEnter, transitionExit };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/motion",
3
- "version": "0.4.15",
3
+ "version": "0.4.17",
4
4
  "description": "Yamada UI motion components",
5
5
  "keywords": [
6
6
  "yamada",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "framer-motion": "^9.1.7",
39
- "@yamada-ui/core": "0.12.5",
39
+ "@yamada-ui/core": "0.12.7",
40
40
  "@yamada-ui/utils": "0.3.3"
41
41
  },
42
42
  "devDependencies": {