@mobileaction/action-kit 1.1.44 → 1.1.45

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,2 @@
1
+ declare const _sfc_main: 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 _sfc_main;
@@ -0,0 +1,68 @@
1
+ import type { PropType as __PropType } from 'vue';
2
+ import { MaTabPosition, MaTabType } from "./types";
3
+ export interface MaTabsProps {
4
+ activeKey?: string;
5
+ animated?: boolean;
6
+ destroyInactiveTabPane?: boolean;
7
+ tabPosition?: MaTabPosition;
8
+ type?: MaTabType;
9
+ }
10
+ declare const _sfc_main: import("vue").DefineComponent<{
11
+ activeKey: {
12
+ type: __PropType<string>;
13
+ required: false;
14
+ };
15
+ animated: {
16
+ type: __PropType<boolean>;
17
+ required: false;
18
+ default: boolean;
19
+ };
20
+ destroyInactiveTabPane: {
21
+ type: __PropType<boolean>;
22
+ required: false;
23
+ default: boolean;
24
+ };
25
+ tabPosition: {
26
+ type: __PropType<"bottom" | "top" | "left" | "right">;
27
+ required: false;
28
+ default: string;
29
+ };
30
+ type: {
31
+ type: __PropType<"line" | "card">;
32
+ required: false;
33
+ default: string;
34
+ };
35
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:activeKey"[], "update:activeKey", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
36
+ activeKey: {
37
+ type: __PropType<string>;
38
+ required: false;
39
+ };
40
+ animated: {
41
+ type: __PropType<boolean>;
42
+ required: false;
43
+ default: boolean;
44
+ };
45
+ destroyInactiveTabPane: {
46
+ type: __PropType<boolean>;
47
+ required: false;
48
+ default: boolean;
49
+ };
50
+ tabPosition: {
51
+ type: __PropType<"bottom" | "top" | "left" | "right">;
52
+ required: false;
53
+ default: string;
54
+ };
55
+ type: {
56
+ type: __PropType<"line" | "card">;
57
+ required: false;
58
+ default: string;
59
+ };
60
+ }>> & {
61
+ "onUpdate:activeKey"?: (...args: any[]) => any;
62
+ }, {
63
+ type: "line" | "card";
64
+ animated: boolean;
65
+ destroyInactiveTabPane: boolean;
66
+ tabPosition: "bottom" | "top" | "left" | "right";
67
+ }>;
68
+ export default _sfc_main;
@@ -0,0 +1,6 @@
1
+ export declare const MaTabPositions: readonly ["left", "right", "top", "bottom"];
2
+ export declare const MaTabTypes: readonly ["card", "line"];
3
+ export declare const MaTabIconAlignMents: readonly ["left", "right"];
4
+ export type MaTabPosition = (typeof MaTabPositions)[number];
5
+ export type MaTabType = (typeof MaTabTypes)[number];
6
+ export type MaTabIconAlignMent = (typeof MaTabIconAlignMents)[number];
package/dist/index.d.ts CHANGED
@@ -56,5 +56,8 @@ export { default as MaSideMenuAddNewAppButton } from './components/side-menu/add
56
56
  export { default as MaProgress } from './components/progress/index.vue';
57
57
  export * from './components/progress/types';
58
58
  export { default as MaAutoComplete } from './components/autocomplete/index.vue';
59
+ export { default as MaTabs } from './components/tabs/index.vue';
60
+ export * from './components/tabs/types';
61
+ export { default as MaTabPane } from './components/tabs/components/tabPane.vue';
59
62
  export { ActionKitConfig } from './services/config';
60
63
  export { useActionKitConfig } from './composables/config';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, Record<NonNullable<string | number>, (_: {}) => any>>;
2
+ export default _default;
3
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
4
+ new (): {
5
+ $slots: S;
6
+ };
7
+ };
@@ -0,0 +1,46 @@
1
+ import { MaTabPosition, MaTabType } from "./types";
2
+ export interface MaTabsProps {
3
+ activeKey?: string;
4
+ animated?: boolean;
5
+ destroyInactiveTabPane?: boolean;
6
+ tabPosition?: MaTabPosition;
7
+ type?: MaTabType;
8
+ }
9
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaTabsProps>, {
10
+ animated: boolean;
11
+ destroyInactiveTabPane: boolean;
12
+ tabPosition: string;
13
+ type: string;
14
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:activeKey"[], "update:activeKey", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaTabsProps>, {
15
+ animated: boolean;
16
+ destroyInactiveTabPane: boolean;
17
+ tabPosition: string;
18
+ type: string;
19
+ }>>> & {
20
+ "onUpdate:activeKey"?: (...args: any[]) => any;
21
+ }, {
22
+ type: "line" | "card";
23
+ animated: boolean;
24
+ destroyInactiveTabPane: boolean;
25
+ tabPosition: "left" | "right" | "bottom" | "top";
26
+ }>, Record<NonNullable<string | number>, (_: {}) => any>>;
27
+ export default _default;
28
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
29
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
30
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
31
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
32
+ } : {
33
+ type: import('vue').PropType<T[K]>;
34
+ required: true;
35
+ };
36
+ };
37
+ declare type __VLS_WithDefaults<P, D> = {
38
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
39
+ default: D[K];
40
+ } : P[K];
41
+ };
42
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
43
+ new (): {
44
+ $slots: S;
45
+ };
46
+ };
@@ -0,0 +1,15 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaTabs from '../index.vue';
3
+ declare const meta: Meta<typeof MaTabs>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaTabs>;
6
+ export declare const Top: Story;
7
+ export declare const Bottom: Story;
8
+ export declare const Left: Story;
9
+ export declare const Right: Story;
10
+ export declare const WithIcon: Story;
11
+ export declare const WithBadge: Story;
12
+ export declare const OverflowTop: Story;
13
+ export declare const OverflowBottom: Story;
14
+ export declare const OverflowLeft: Story;
15
+ export declare const OverflowRight: Story;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryFn } from '@storybook/vue3';
2
+ import MaTabs from '../index.vue';
3
+ export declare const baseConfig: Meta<typeof MaTabs>;
4
+ export declare const Template: StoryFn;
5
+ export declare const TemplateOverflow: StoryFn;
6
+ export declare const TemplateWithIcon: StoryFn;
7
+ export declare const TemplateWithBadge: StoryFn;
@@ -0,0 +1,15 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaTabs from '../index.vue';
3
+ declare const meta: Meta<typeof MaTabs>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaTabs>;
6
+ export declare const Top: Story;
7
+ export declare const Bottom: Story;
8
+ export declare const Left: Story;
9
+ export declare const Right: Story;
10
+ export declare const WithIcon: Story;
11
+ export declare const WithBadge: Story;
12
+ export declare const OverflowTop: Story;
13
+ export declare const OverflowBottom: Story;
14
+ export declare const OverflowLeft: Story;
15
+ export declare const OverflowRight: Story;
@@ -0,0 +1,6 @@
1
+ export declare const MaTabPositions: readonly ["left", "right", "top", "bottom"];
2
+ export declare const MaTabTypes: readonly ["card", "line"];
3
+ export declare const MaTabIconAlignMents: readonly ["left", "right"];
4
+ export declare type MaTabPosition = (typeof MaTabPositions)[number];
5
+ export declare type MaTabType = (typeof MaTabTypes)[number];
6
+ export declare type MaTabIconAlignMent = (typeof MaTabIconAlignMents)[number];
@@ -57,5 +57,8 @@ export { default as MaSideMenuAddNewAppButton } from './components/side-menu/add
57
57
  export { default as MaProgress } from './components/progress/index.vue';
58
58
  export * from './components/progress/types';
59
59
  export { default as MaAutoComplete } from './components/autocomplete/index.vue';
60
+ export { default as MaTabs } from './components/tabs/index.vue';
61
+ export * from './components/tabs/types';
62
+ export { default as MaTabPane } from './components/tabs/components/tabPane.vue';
60
63
  export { ActionKitConfig } from './services/config';
61
64
  export { useActionKitConfig } from './composables/config';