@mobileaction/action-kit 1.11.1 → 1.13.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.
@@ -0,0 +1,4 @@
1
+ declare const _sfc_main: {
2
+ name: string;
3
+ };
4
+ export default _sfc_main;
@@ -0,0 +1,43 @@
1
+ import type { PropType as __PropType } from 'vue';
2
+ export interface ListItemMetaProps {
3
+ avatar?: string;
4
+ icon?: string;
5
+ title?: string;
6
+ description?: string;
7
+ }
8
+ declare const _sfc_main: import("vue").DefineComponent<{
9
+ avatar: {
10
+ type: __PropType<string>;
11
+ required: false;
12
+ };
13
+ icon: {
14
+ type: __PropType<string>;
15
+ required: false;
16
+ };
17
+ title: {
18
+ type: __PropType<string>;
19
+ required: false;
20
+ };
21
+ description: {
22
+ type: __PropType<string>;
23
+ required: false;
24
+ };
25
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
26
+ avatar: {
27
+ type: __PropType<string>;
28
+ required: false;
29
+ };
30
+ icon: {
31
+ type: __PropType<string>;
32
+ required: false;
33
+ };
34
+ title: {
35
+ type: __PropType<string>;
36
+ required: false;
37
+ };
38
+ description: {
39
+ type: __PropType<string>;
40
+ required: false;
41
+ };
42
+ }>>, {}>;
43
+ export default _sfc_main;
@@ -0,0 +1,30 @@
1
+ import type { PropType as __PropType } from 'vue';
2
+ export interface MAListData {
3
+ avatar: string;
4
+ icon: string;
5
+ title: string;
6
+ description: string;
7
+ actions: {
8
+ label: string;
9
+ onClick: () => void;
10
+ }[];
11
+ }
12
+ export interface MaListProps {
13
+ listData?: MAListData[];
14
+ }
15
+ declare const _sfc_main: import("vue").DefineComponent<{
16
+ listData: {
17
+ type: __PropType<MAListData[]>;
18
+ required: false;
19
+ default: () => MAListData[];
20
+ };
21
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
+ listData: {
23
+ type: __PropType<MAListData[]>;
24
+ required: false;
25
+ default: () => MAListData[];
26
+ };
27
+ }>>, {
28
+ listData: MAListData[];
29
+ }>;
30
+ export default _sfc_main;
@@ -0,0 +1,38 @@
1
+ import type { PropType as __PropType } from 'vue';
2
+ export interface MaStepsProps {
3
+ title?: string;
4
+ description?: string;
5
+ disabled?: boolean;
6
+ }
7
+ declare const _sfc_main: import("vue").DefineComponent<{
8
+ title: {
9
+ type: __PropType<string>;
10
+ required: false;
11
+ };
12
+ description: {
13
+ type: __PropType<string>;
14
+ required: false;
15
+ };
16
+ disabled: {
17
+ type: __PropType<boolean>;
18
+ required: false;
19
+ default: boolean;
20
+ };
21
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
+ title: {
23
+ type: __PropType<string>;
24
+ required: false;
25
+ };
26
+ description: {
27
+ type: __PropType<string>;
28
+ required: false;
29
+ };
30
+ disabled: {
31
+ type: __PropType<boolean>;
32
+ required: false;
33
+ default: boolean;
34
+ };
35
+ }>>, {
36
+ disabled: boolean;
37
+ }>;
38
+ export default _sfc_main;
@@ -0,0 +1,36 @@
1
+ import type { PropType as __PropType } from 'vue';
2
+ import { MaStepsDirection } from "./types";
3
+ export interface MaStepsProps {
4
+ current?: number;
5
+ direction?: MaStepsDirection;
6
+ }
7
+ declare const _sfc_main: import("vue").DefineComponent<{
8
+ current: {
9
+ type: __PropType<number>;
10
+ required: false;
11
+ default: number;
12
+ };
13
+ direction: {
14
+ type: __PropType<"horizontal" | "vertical">;
15
+ required: false;
16
+ default: string;
17
+ };
18
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:current")[], "change" | "update:current", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
+ current: {
20
+ type: __PropType<number>;
21
+ required: false;
22
+ default: number;
23
+ };
24
+ direction: {
25
+ type: __PropType<"horizontal" | "vertical">;
26
+ required: false;
27
+ default: string;
28
+ };
29
+ }>> & {
30
+ onChange?: (...args: any[]) => any;
31
+ "onUpdate:current"?: (...args: any[]) => any;
32
+ }, {
33
+ direction: "horizontal" | "vertical";
34
+ current: number;
35
+ }>;
36
+ export default _sfc_main;
@@ -0,0 +1,2 @@
1
+ export declare const MaStepsDirections: readonly ["horizontal", "vertical"];
2
+ export type MaStepsDirection = (typeof MaStepsDirections)[number];
package/dist/index.d.ts CHANGED
@@ -72,5 +72,10 @@ export { default as MaPopover } from './components/popover/index.vue';
72
72
  export { default as MaAppCheckbox } from './components/app-checkbox/index.vue';
73
73
  export { default as MaAvatar } from './components/avatar/index.vue';
74
74
  export { default as MaTagInput } from './components/tag-input/index.vue';
75
+ export { default as MaList } from './components/list/index.vue';
76
+ export { default as MaListItem } from './components/list/components/ListItem.vue';
77
+ export { default as MaListItemMeta } from './components/list/components/ListItemMeta.vue';
78
+ export { default as MaSteps } from './components/steps/index.vue';
79
+ export { default as MaStep } from './components/steps/components/index.vue';
75
80
  export { ActionKitConfig } from './services/config';
76
81
  export { useActionKitConfig } from './composables/config';
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,31 @@
1
+ export interface ListItemMetaProps {
2
+ avatar?: string;
3
+ icon?: string;
4
+ title?: string;
5
+ description?: string;
6
+ }
7
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ListItemMetaProps>, {}>, {}, 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<ListItemMetaProps>, {}>>>, {}>, {
8
+ avatar: (_: {}) => any;
9
+ title: (_: {}) => any;
10
+ description: (_: {}) => any;
11
+ }>;
12
+ export default _default;
13
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
15
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
16
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
+ } : {
18
+ type: import('vue').PropType<T[K]>;
19
+ required: true;
20
+ };
21
+ };
22
+ declare type __VLS_WithDefaults<P, D> = {
23
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
24
+ default: D[K];
25
+ } : P[K];
26
+ };
27
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,42 @@
1
+ export interface MAListData {
2
+ avatar: string;
3
+ icon: string;
4
+ title: string;
5
+ description: string;
6
+ actions: {
7
+ label: string;
8
+ onClick: () => void;
9
+ }[];
10
+ }
11
+ export interface MaListProps {
12
+ listData?: MAListData[];
13
+ }
14
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaListProps>, {
15
+ listData: () => MAListData[];
16
+ }>, {}, 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<MaListProps>, {
17
+ listData: () => MAListData[];
18
+ }>>>, {
19
+ listData: MAListData[];
20
+ }>, {
21
+ default: (_: {}) => any;
22
+ }>;
23
+ export default _default;
24
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
26
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
27
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
28
+ } : {
29
+ type: import('vue').PropType<T[K]>;
30
+ required: true;
31
+ };
32
+ };
33
+ declare type __VLS_WithDefaults<P, D> = {
34
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
35
+ default: D[K];
36
+ } : P[K];
37
+ };
38
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryFn } from "@storybook/vue3";
2
+ import MaList from "../index.vue";
3
+ export declare const baseConfig: Meta<typeof MaList>;
4
+ export declare const Template: StoryFn;
5
+ export declare const TemplateActions: StoryFn;
6
+ export declare const TemplateCustomElement: StoryFn;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import MaList from '../index.vue';
3
+ declare const meta: Meta<typeof MaList>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaList>;
6
+ export declare const Default: Story;
7
+ export declare const WithActions: Story;
8
+ export declare const WithCustom: Story;
@@ -0,0 +1,35 @@
1
+ export interface MaStepsProps {
2
+ title?: string;
3
+ description?: string;
4
+ disabled?: boolean;
5
+ }
6
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaStepsProps>, {
7
+ disabled: boolean;
8
+ }>, {}, 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<MaStepsProps>, {
9
+ disabled: boolean;
10
+ }>>>, {
11
+ disabled: boolean;
12
+ }>, {
13
+ title: (_: {}) => any;
14
+ description: (_: {}) => any;
15
+ }>;
16
+ export default _default;
17
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
19
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
20
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
21
+ } : {
22
+ type: import('vue').PropType<T[K]>;
23
+ required: true;
24
+ };
25
+ };
26
+ declare type __VLS_WithDefaults<P, D> = {
27
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
28
+ default: D[K];
29
+ } : P[K];
30
+ };
31
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -0,0 +1,40 @@
1
+ import { MaStepsDirection } from "./types";
2
+ export interface MaStepsProps {
3
+ current?: number;
4
+ direction?: MaStepsDirection;
5
+ }
6
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaStepsProps>, {
7
+ current: number;
8
+ direction: string;
9
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:current")[], "change" | "update:current", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaStepsProps>, {
10
+ current: number;
11
+ direction: string;
12
+ }>>> & {
13
+ onChange?: (...args: any[]) => any;
14
+ "onUpdate:current"?: (...args: any[]) => any;
15
+ }, {
16
+ direction: "horizontal" | "vertical";
17
+ current: number;
18
+ }>, {
19
+ default: (_: {}) => any;
20
+ }>;
21
+ export default _default;
22
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
24
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
25
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
26
+ } : {
27
+ type: import('vue').PropType<T[K]>;
28
+ required: true;
29
+ };
30
+ };
31
+ declare type __VLS_WithDefaults<P, D> = {
32
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
33
+ default: D[K];
34
+ } : P[K];
35
+ };
36
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryFn } from '@storybook/vue3';
2
+ import { MaSteps, MaStep } from '@/index';
3
+ export declare const baseConfig: Meta<typeof MaSteps>;
4
+ export declare const stepConfig: Meta<typeof MaStep>;
5
+ export declare const Template: StoryFn;
6
+ export declare const TemplateWithoutTitle: StoryFn;
7
+ export declare const TemplateWithDescription: StoryFn;
8
+ export declare const TemplateStep: StoryFn;
@@ -0,0 +1,11 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaSteps from '../index.vue';
3
+ declare const meta: Meta<typeof MaSteps>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaSteps>;
6
+ export declare const Default: Story;
7
+ export declare const Vertical: Story;
8
+ export declare const WithoutTitleHorizontal: Story;
9
+ export declare const WithoutTitleVertical: Story;
10
+ export declare const WithDescriptionHorizontal: Story;
11
+ export declare const WithDescriptionVertical: Story;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaStep from '../components/index.vue';
3
+ declare const meta: Meta<typeof MaStep>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaStep>;
6
+ export declare const Default: Story;
@@ -0,0 +1,2 @@
1
+ export declare const MaStepsDirections: readonly ["horizontal", "vertical"];
2
+ export declare type MaStepsDirection = (typeof MaStepsDirections)[number];
@@ -73,5 +73,10 @@ export { default as MaPopover } from './components/popover/index.vue';
73
73
  export { default as MaAppCheckbox } from './components/app-checkbox/index.vue';
74
74
  export { default as MaAvatar } from './components/avatar/index.vue';
75
75
  export { default as MaTagInput } from './components/tag-input/index.vue';
76
+ export { default as MaList } from './components/list/index.vue';
77
+ export { default as MaListItem } from './components/list/components/ListItem.vue';
78
+ export { default as MaListItemMeta } from './components/list/components/ListItemMeta.vue';
79
+ export { default as MaSteps } from './components/steps/index.vue';
80
+ export { default as MaStep } from './components/steps/components/index.vue';
76
81
  export { ActionKitConfig } from './services/config';
77
82
  export { useActionKitConfig } from './composables/config';