@mobileaction/action-kit 1.1.27 → 1.1.28

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.
@@ -2,7 +2,7 @@ import type { PropType as __PropType } from 'vue';
2
2
  import { type AnimationName } from "./types";
3
3
  import { SVGRendererConfig } from 'lottie-web/build/player/lottie_light';
4
4
  export interface MaAnimationProps {
5
- name: AnimationName;
5
+ name?: AnimationName;
6
6
  loop?: boolean;
7
7
  autoplay?: boolean;
8
8
  width?: number;
@@ -12,7 +12,8 @@ export interface MaAnimationProps {
12
12
  declare const _sfc_main: import("vue").DefineComponent<{
13
13
  name: {
14
14
  type: __PropType<"rocket" | "success-confetti" | "rounded-loading" | "fly-waiting" | "no-data-found" | "sad-not-found">;
15
- required: true;
15
+ required: false;
16
+ default: string;
16
17
  };
17
18
  loop: {
18
19
  type: __PropType<boolean>;
@@ -41,7 +42,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
41
42
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onLoaded" | "onComplete" | "onError")[], "onLoaded" | "onComplete" | "onError", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
42
43
  name: {
43
44
  type: __PropType<"rocket" | "success-confetti" | "rounded-loading" | "fly-waiting" | "no-data-found" | "sad-not-found">;
44
- required: true;
45
+ required: false;
46
+ default: string;
45
47
  };
46
48
  loop: {
47
49
  type: __PropType<boolean>;
@@ -70,6 +72,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
70
72
  onOnComplete?: (...args: any[]) => any;
71
73
  onOnError?: (...args: any[]) => any;
72
74
  }, {
75
+ name: "rocket" | "success-confetti" | "rounded-loading" | "fly-waiting" | "no-data-found" | "sad-not-found";
73
76
  loop: boolean;
74
77
  autoplay: boolean;
75
78
  }>;
@@ -1,8 +1,12 @@
1
1
  import type { PropType as __PropType } from 'vue';
2
2
  import { MaEmptySize, MaEmptyVariant } from './types';
3
+ import { AnimationName } from "../animation/types";
4
+ import { MaAnimationProps } from "../animation/index.vue";
3
5
  export interface MaRateProps {
4
6
  size?: MaEmptySize;
5
7
  variant?: MaEmptyVariant;
8
+ animation?: AnimationName;
9
+ animationProps?: MaAnimationProps;
6
10
  title?: string;
7
11
  description?: string;
8
12
  }
@@ -17,6 +21,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
17
21
  required: false;
18
22
  default: string;
19
23
  };
24
+ animation: {
25
+ type: __PropType<"rocket" | "success-confetti" | "rounded-loading" | "fly-waiting" | "no-data-found" | "sad-not-found">;
26
+ required: false;
27
+ };
28
+ animationProps: {
29
+ type: __PropType<MaAnimationProps>;
30
+ required: false;
31
+ };
20
32
  title: {
21
33
  type: __PropType<string>;
22
34
  required: false;
@@ -36,6 +48,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
36
48
  required: false;
37
49
  default: string;
38
50
  };
51
+ animation: {
52
+ type: __PropType<"rocket" | "success-confetti" | "rounded-loading" | "fly-waiting" | "no-data-found" | "sad-not-found">;
53
+ required: false;
54
+ };
55
+ animationProps: {
56
+ type: __PropType<MaAnimationProps>;
57
+ required: false;
58
+ };
39
59
  title: {
40
60
  type: __PropType<string>;
41
61
  required: false;
@@ -1,7 +1,7 @@
1
1
  import { type AnimationName } from "./types";
2
2
  import { SVGRendererConfig } from 'lottie-web/build/player/lottie_light';
3
3
  export interface MaAnimationProps {
4
- name: AnimationName;
4
+ name?: AnimationName;
5
5
  loop?: boolean;
6
6
  autoplay?: boolean;
7
7
  width?: number;
@@ -11,16 +11,19 @@ export interface MaAnimationProps {
11
11
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaAnimationProps>, {
12
12
  loop: boolean;
13
13
  autoplay: boolean;
14
+ name: string;
14
15
  }>, {
15
16
  animation: any;
16
17
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onLoaded" | "onComplete" | "onError")[], "onError" | "onLoaded" | "onComplete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaAnimationProps>, {
17
18
  loop: boolean;
18
19
  autoplay: boolean;
20
+ name: string;
19
21
  }>>> & {
20
22
  onOnLoaded?: (...args: any[]) => any;
21
23
  onOnComplete?: (...args: any[]) => any;
22
24
  onOnError?: (...args: any[]) => any;
23
25
  }, {
26
+ name: "rocket" | "success-confetti" | "rounded-loading" | "fly-waiting" | "no-data-found" | "sad-not-found";
24
27
  loop: boolean;
25
28
  autoplay: boolean;
26
29
  }>;
@@ -1,7 +1,11 @@
1
1
  import { MaEmptySize, MaEmptyVariant } from './types';
2
+ import { AnimationName } from "../animation/types";
3
+ import { MaAnimationProps } from "../animation/index.vue";
2
4
  export interface MaRateProps {
3
5
  size?: MaEmptySize;
4
6
  variant?: MaEmptyVariant;
7
+ animation?: AnimationName;
8
+ animationProps?: MaAnimationProps;
5
9
  title?: string;
6
10
  description?: string;
7
11
  }
@@ -15,6 +19,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
15
19
  size: "small" | "medium" | "large";
16
20
  variant: "table" | "general" | "add-app" | "selection";
17
21
  }>, {
22
+ icon: (_: {}) => any;
23
+ title: (_: {}) => any;
24
+ description: (_: {}) => any;
18
25
  default: (_: {}) => any;
19
26
  }>;
20
27
  export default _default;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaEmpty from '../index.vue';
3
+ declare const meta: Meta<typeof MaEmpty>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaEmpty>;
6
+ export declare const Animation: Story;
7
+ export declare const AnimationProps: Story;