@mobileaction/action-kit 1.11.0 → 1.12.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;
@@ -3,7 +3,7 @@ import { MaTagInputSize } from "./types";
3
3
  export interface MaTagInputProps {
4
4
  tags: string[];
5
5
  placeholder?: string;
6
- seperator?: string;
6
+ separator?: string[];
7
7
  size?: MaTagInputSize;
8
8
  disabled?: boolean;
9
9
  prefixIcon?: string;
@@ -19,10 +19,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
19
19
  required: false;
20
20
  default: string;
21
21
  };
22
- seperator: {
23
- type: __PropType<string>;
22
+ separator: {
23
+ type: __PropType<string[]>;
24
24
  required: false;
25
- default: string;
25
+ default: () => string[];
26
26
  };
27
27
  size: {
28
28
  type: __PropType<"sm" | "md" | "lg">;
@@ -52,10 +52,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
52
52
  required: false;
53
53
  default: string;
54
54
  };
55
- seperator: {
56
- type: __PropType<string>;
55
+ separator: {
56
+ type: __PropType<string[]>;
57
57
  required: false;
58
- default: string;
58
+ default: () => string[];
59
59
  };
60
60
  size: {
61
61
  type: __PropType<"sm" | "md" | "lg">;
@@ -84,6 +84,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
84
84
  size: "sm" | "md" | "lg";
85
85
  disabled: boolean;
86
86
  placeholder: string;
87
- seperator: string;
87
+ separator: string[];
88
88
  }>;
89
89
  export default _sfc_main;
package/dist/index.d.ts CHANGED
@@ -72,5 +72,8 @@ 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';
75
78
  export { ActionKitConfig } from './services/config';
76
79
  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;
@@ -2,19 +2,19 @@ import { MaTagInputSize } from "./types";
2
2
  export interface MaTagInputProps {
3
3
  tags: string[];
4
4
  placeholder?: string;
5
- seperator?: string;
5
+ separator?: string[];
6
6
  size?: MaTagInputSize;
7
7
  disabled?: boolean;
8
8
  prefixIcon?: string;
9
9
  suffixIcon?: string;
10
10
  }
11
11
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaTagInputProps>, {
12
- seperator: string;
12
+ separator: () => string[];
13
13
  size: string;
14
14
  disabled: boolean;
15
15
  placeholder: string;
16
16
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:tags" | "added" | "removed")[], "change" | "update:tags" | "added" | "removed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaTagInputProps>, {
17
- seperator: string;
17
+ separator: () => string[];
18
18
  size: string;
19
19
  disabled: boolean;
20
20
  placeholder: string;
@@ -27,7 +27,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
27
27
  size: "sm" | "md" | "lg";
28
28
  disabled: boolean;
29
29
  placeholder: string;
30
- seperator: string;
30
+ separator: string[];
31
31
  }>, {
32
32
  prefix: (_: {}) => any;
33
33
  suffix: (_: {}) => any;
@@ -4,7 +4,7 @@ declare const meta: Meta<typeof MaTagInput>;
4
4
  export default meta;
5
5
  declare type Story = StoryObj<typeof MaTagInput>;
6
6
  export declare const Default: Story;
7
- export declare const CustomSeperatorComma: Story;
7
+ export declare const CustomSeparatorHyphen: Story;
8
8
  export declare const Disabled: Story;
9
9
  export declare const Small: Story;
10
10
  export declare const Medium: Story;
@@ -73,5 +73,8 @@ 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';
76
79
  export { ActionKitConfig } from './services/config';
77
80
  export { useActionKitConfig } from './composables/config';