@mobileaction/action-kit 1.1.27 → 1.1.29

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;
@@ -0,0 +1,24 @@
1
+ import { openBlock as o, createElementBlock as t, createElementVNode as e } from "vue";
2
+ const l = {
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ fill: "none",
5
+ viewBox: "0 0 24 24"
6
+ }, n = /* @__PURE__ */ e("path", {
7
+ fill: "currentColor",
8
+ d: "M16.24 2H7.76C5 2 4 3 4 5.81v12.38C4 21 5 22 7.76 22h8.47C19 22 20 21 20 18.19V5.81C20 3 19 2 16.24 2Z",
9
+ opacity: ".4"
10
+ }, null, -1), c = /* @__PURE__ */ e("path", {
11
+ fill: "currentColor",
12
+ d: "M14 6.25h-4c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h4c.41 0 .75.34.75.75s-.34.75-.75.75ZM12 19.3a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5Z"
13
+ }, null, -1), r = [
14
+ n,
15
+ c
16
+ ];
17
+ function s(i, h) {
18
+ return o(), t("svg", l, r);
19
+ }
20
+ const _ = { render: s };
21
+ export {
22
+ _ as default,
23
+ s as render
24
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},n=e.createElementVNode("path",{fill:"currentColor",d:"M16.24 2H7.76C5 2 4 3 4 5.81v12.38C4 21 5 22 7.76 22h8.47C19 22 20 21 20 18.19V5.81C20 3 19 2 16.24 2Z",opacity:".4"},null,-1),l=e.createElementVNode("path",{fill:"currentColor",d:"M14 6.25h-4c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h4c.41 0 .75.34.75.75s-.34.75-.75.75ZM12 19.3a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5Z"},null,-1),r=[n,l];function t(s,i){return e.openBlock(),e.createElementBlock("svg",o,r)}const c={render:t};exports.default=c;exports.render=t;
@@ -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;
@@ -0,0 +1,32 @@
1
+ import { ButtonTarget } from '@/components/button/types';
2
+ export interface MaSideMenuButtonProps {
3
+ icon?: string;
4
+ activeIcon?: string;
5
+ text?: string;
6
+ href?: string;
7
+ target?: ButtonTarget;
8
+ }
9
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaSideMenuButtonProps>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaSideMenuButtonProps>, {}>>>, {}>, {
10
+ icon: (_: {}) => any;
11
+ default: (_: {}) => any;
12
+ }>;
13
+ export default _default;
14
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
16
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
17
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
+ } : {
19
+ type: import('vue').PropType<T[K]>;
20
+ required: true;
21
+ };
22
+ };
23
+ declare type __VLS_WithDefaults<P, D> = {
24
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
25
+ default: D[K];
26
+ } : P[K];
27
+ };
28
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,4 @@
1
+ import type { Meta, StoryFn } from '@storybook/vue3';
2
+ import MaSideMenuButton from '../index.vue';
3
+ export declare const baseConfig: Meta<typeof MaSideMenuButton>;
4
+ export declare const Template: StoryFn;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaSideMenuButton from '../index.vue';
3
+ declare const meta: Meta<typeof MaSideMenuButton>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaSideMenuButton>;
6
+ export declare const Default: Story;