motion-v 0.13.0-beta.4 → 0.13.1-alpha.0

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.
@@ -1,6 +1,6 @@
1
1
  import { MotionProps } from '../motion';
2
- import { ElementType } from '../../types';
3
- export interface GroupProps<T extends ElementType, K = unknown, V = unknown> extends MotionProps<T, K> {
2
+ import { AsTag } from '../../types';
3
+ export interface GroupProps<T extends AsTag, K, V> extends MotionProps<T, K> {
4
4
  /**
5
5
  * The axis to reorder along. By default, items will be draggable on this axis.
6
6
  * To make draggable on both axes, set `<Reorder.Item drag />`
@@ -34,38 +34,20 @@ export interface GroupProps<T extends ElementType, K = unknown, V = unknown> ext
34
34
  */
35
35
  'values': V[];
36
36
  }
37
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<GroupProps<keyof import('vue').IntrinsicElementAttributes, unknown, unknown>>, {
38
- as: string;
39
- axis: string;
40
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GroupProps<keyof import('vue').IntrinsicElementAttributes, unknown, unknown>>, {
41
- as: string;
42
- axis: string;
43
- }>>>, {
44
- as: keyof import('vue').IntrinsicElementAttributes;
45
- axis: "x" | "y";
46
- }, {}>, {
47
- default?(_: {}): any;
48
- }>;
49
- export default _default;
50
- type __VLS_WithDefaults<P, D> = {
51
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
52
- default: D[K];
53
- }> : P[K];
54
- };
55
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
56
- type __VLS_TypePropsToOption<T> = {
57
- [K in keyof T]-?: {} extends Pick<T, K> ? {
58
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
59
- } : {
60
- type: import('vue').PropType<T[K]>;
61
- required: true;
62
- };
63
- };
64
- type __VLS_WithTemplateSlots<T, S> = T & {
65
- new (): {
66
- $slots: S;
37
+ declare const _default: <T, K, V>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
38
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{}>>, never>, never> & GroupProps<AsTag, K, V>> & import('vue').PublicProps;
39
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
40
+ attrs: any;
41
+ slots: {
42
+ default?(_: {}): any;
67
43
  };
44
+ emit: {};
45
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
46
+ [key: string]: any;
47
+ }> & {
48
+ __ctx?: Awaited<typeof __VLS_setup>;
68
49
  };
50
+ export default _default;
69
51
  type __VLS_PrettifyLocal<T> = {
70
52
  [K in keyof T]: T[K];
71
53
  } & {};
@@ -24,11 +24,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
24
  whilePress: {},
25
25
  whileInView: {},
26
26
  whileFocus: {},
27
+ forwardMotionProps: { type: Boolean },
27
28
  custom: {},
28
29
  initial: { type: [String, Array, Object, Boolean] },
29
30
  animate: {},
30
31
  exit: {},
31
32
  variants: {},
33
+ inherit: { type: Boolean },
32
34
  style: {},
33
35
  transformTemplate: {},
34
36
  transition: {},
@@ -42,6 +44,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42
44
  layoutRoot: { type: Boolean },
43
45
  "data-framer-portal-id": {},
44
46
  crossfade: { type: Boolean },
47
+ layoutDependency: {},
45
48
  onBeforeLayoutMeasure: {},
46
49
  onLayoutMeasure: {},
47
50
  onLayoutAnimationStart: {},
@@ -116,9 +119,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
116
119
  });
117
120
  const attrs = useAttrs();
118
121
  function bindProps() {
122
+ const { axis: axis2, values, "onUpdate:values": onUpdateValues, ...rest } = props;
119
123
  return {
120
124
  ...attrs,
121
- ...props
125
+ ...rest
122
126
  };
123
127
  }
124
128
  return (_ctx, _cache) => {
@@ -24,11 +24,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
24
  whilePress: {},
25
25
  whileInView: {},
26
26
  whileFocus: {},
27
+ forwardMotionProps: { type: Boolean },
27
28
  custom: {},
28
29
  initial: { type: [String, Array, Object, Boolean], default: void 0 },
29
30
  animate: { default: void 0 },
30
31
  exit: {},
31
32
  variants: {},
33
+ inherit: { type: Boolean },
32
34
  style: {},
33
35
  transformTemplate: {},
34
36
  transition: {},
@@ -41,6 +43,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
43
  layoutRoot: { type: Boolean, default: false },
42
44
  "data-framer-portal-id": {},
43
45
  crossfade: { type: Boolean, default: true },
46
+ layoutDependency: {},
44
47
  onBeforeLayoutMeasure: {},
45
48
  onLayoutMeasure: {},
46
49
  onLayoutAnimationStart: {},
@@ -93,9 +96,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
93
96
  const { axis, registerItem, updateOrder } = context || {};
94
97
  const attrs = useAttrs();
95
98
  function bindProps() {
99
+ const { value, ...rest } = props;
96
100
  return {
97
101
  ...attrs,
98
- ...props,
102
+ ...rest,
99
103
  style: {
100
104
  ...style.value,
101
105
  x: point.x,