@mobileaction/action-kit 1.1.53 → 1.1.54

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,79 @@
1
+ import type { PropType as __PropType } from 'vue';
2
+ export interface MaDrawerProps {
3
+ placement?: string;
4
+ visible?: boolean;
5
+ header?: string;
6
+ content?: string;
7
+ footer?: string;
8
+ title?: string;
9
+ description?: string;
10
+ }
11
+ declare const _sfc_main: import("vue").DefineComponent<{
12
+ placement: {
13
+ type: __PropType<string>;
14
+ required: false;
15
+ default: string;
16
+ };
17
+ visible: {
18
+ type: __PropType<boolean>;
19
+ required: false;
20
+ default: boolean;
21
+ };
22
+ header: {
23
+ type: __PropType<string>;
24
+ required: false;
25
+ };
26
+ content: {
27
+ type: __PropType<string>;
28
+ required: false;
29
+ };
30
+ footer: {
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
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
43
+ placement: {
44
+ type: __PropType<string>;
45
+ required: false;
46
+ default: string;
47
+ };
48
+ visible: {
49
+ type: __PropType<boolean>;
50
+ required: false;
51
+ default: boolean;
52
+ };
53
+ header: {
54
+ type: __PropType<string>;
55
+ required: false;
56
+ };
57
+ content: {
58
+ type: __PropType<string>;
59
+ required: false;
60
+ };
61
+ footer: {
62
+ type: __PropType<string>;
63
+ required: false;
64
+ };
65
+ title: {
66
+ type: __PropType<string>;
67
+ required: false;
68
+ };
69
+ description: {
70
+ type: __PropType<string>;
71
+ required: false;
72
+ };
73
+ }>> & {
74
+ "onUpdate:visible"?: (...args: any[]) => any;
75
+ }, {
76
+ placement: string;
77
+ visible: boolean;
78
+ }>;
79
+ export default _sfc_main;
package/dist/index.d.ts CHANGED
@@ -63,5 +63,6 @@ export { default as MaCountrySelect } from './components/country-select/index.vu
63
63
  export { default as MaCard } from './components/card/index.vue';
64
64
  export * from './components/card/types';
65
65
  export { default as MaInputNumber } from './components/input-number/index.vue';
66
+ export { default as MaDrawer } from './components/drawer/index.vue';
66
67
  export { ActionKitConfig } from './services/config';
67
68
  export { useActionKitConfig } from './composables/config';
@@ -0,0 +1,45 @@
1
+ export interface MaDrawerProps {
2
+ placement?: string;
3
+ visible?: boolean;
4
+ header?: string;
5
+ content?: string;
6
+ footer?: string;
7
+ title?: string;
8
+ description?: string;
9
+ }
10
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaDrawerProps>, {
11
+ placement: string;
12
+ visible: boolean;
13
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaDrawerProps>, {
14
+ placement: string;
15
+ visible: boolean;
16
+ }>>> & {
17
+ "onUpdate:visible"?: (...args: any[]) => any;
18
+ }, {
19
+ placement: string;
20
+ visible: boolean;
21
+ }>, {
22
+ header: (_: {}) => any;
23
+ content: (_: {}) => any;
24
+ footer: (_: {}) => any;
25
+ }>;
26
+ export default _default;
27
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
29
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
30
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
31
+ } : {
32
+ type: import('vue').PropType<T[K]>;
33
+ required: true;
34
+ };
35
+ };
36
+ declare type __VLS_WithDefaults<P, D> = {
37
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
38
+ default: D[K];
39
+ } : P[K];
40
+ };
41
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryFn } from "@storybook/vue3";
2
+ import MaDrawer from "@/components/drawer/index.vue";
3
+ 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<{}>>, {}>;
4
+ export default _default;
5
+ export declare const baseConfig: Meta<typeof MaDrawer>;
6
+ export declare const Template: StoryFn;
7
+ export declare const TemplateWithScroll: StoryFn;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaDrawer from '../index.vue';
3
+ declare const meta: Meta<typeof MaDrawer>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaDrawer>;
6
+ export declare const Default: Story;
7
+ export declare const WithScroll: Story;
@@ -0,0 +1 @@
1
+ export declare const MaDrawerPlacements: readonly ["left", "right"];
@@ -64,5 +64,6 @@ export { default as MaCountrySelect } from './components/country-select/index.vu
64
64
  export { default as MaCard } from './components/card/index.vue';
65
65
  export * from './components/card/types';
66
66
  export { default as MaInputNumber } from './components/input-number/index.vue';
67
+ export { default as MaDrawer } from './components/drawer/index.vue';
67
68
  export { ActionKitConfig } from './services/config';
68
69
  export { useActionKitConfig } from './composables/config';