@mobileaction/action-kit 0.0.4 → 0.0.6
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.
- package/dist/index.es.js +1472 -17178
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/src/components/alert/index.vue.d.ts +38 -26
- package/dist/src/components/alert/stories/blue.stories.d.ts +8 -0
- package/dist/src/components/alert/stories/constants.d.ts +4 -0
- package/dist/src/components/alert/stories/dark.stories.d.ts +9 -0
- package/dist/src/components/alert/stories/green.stories.d.ts +8 -0
- package/dist/src/components/alert/stories/orange.stories.d.ts +8 -0
- package/dist/src/components/alert/stories/red.stories.d.ts +8 -0
- package/dist/src/components/alert/types.d.ts +11 -0
- package/dist/src/components/avatar/index.vue.d.ts +3 -0
- package/dist/src/components/badge/index.vue.d.ts +37 -40
- package/dist/src/components/badge/stories/blue.stories.d.ts +11 -0
- package/dist/src/components/badge/stories/constants.d.ts +4 -0
- package/dist/src/components/badge/stories/dark.stories.d.ts +11 -0
- package/dist/src/components/badge/stories/green.stories.d.ts +11 -0
- package/dist/src/components/badge/stories/orange.stories.d.ts +11 -0
- package/dist/src/components/badge/stories/purple.stories.d.ts +11 -0
- package/dist/src/components/badge/stories/red.stories.d.ts +11 -0
- package/dist/src/components/badge/types.d.ts +20 -0
- package/dist/src/components/base-button/index.vue.d.ts +9 -0
- package/dist/src/components/button/index.test.d.ts +1 -0
- package/dist/src/components/button/index.vue.d.ts +34 -53
- package/dist/src/components/button/stories/constants.d.ts +4 -0
- package/dist/src/components/button/stories/danger.stories.d.ts +8 -0
- package/dist/src/components/button/stories/dark.stories.d.ts +8 -0
- package/dist/src/components/button/stories/icon.stories.d.ts +7 -0
- package/dist/src/components/button/stories/info.stories.d.ts +8 -0
- package/dist/src/components/button/stories/link.stories.d.ts +7 -0
- package/dist/src/components/button/stories/plain.stories.d.ts +8 -0
- package/dist/src/components/button/stories/success.stories.d.ts +8 -0
- package/dist/src/components/button/stories/warning.stories.d.ts +8 -0
- package/dist/src/components/button/types.d.ts +21 -3
- package/dist/src/components/checkbox/group.vue.d.ts +20 -0
- package/dist/src/components/checkbox/index.vue.d.ts +23 -0
- package/dist/src/components/checkbox/stories/constants.d.ts +5 -0
- package/dist/src/components/checkbox/stories/default.stories.d.ts +9 -0
- package/dist/src/components/icon/index.vue.d.ts +9 -11
- package/dist/src/components/icon/types.d.ts +1 -1
- package/dist/src/components/input/constants.d.ts +2 -0
- package/dist/src/components/input/index.vue.d.ts +37 -118
- package/dist/src/components/input/stories/amount.stories.d.ts +11 -0
- package/dist/src/components/input/stories/constants.d.ts +4 -0
- package/dist/src/components/input/stories/credit-card.stories.d.ts +11 -0
- package/dist/src/components/input/stories/default.stories.d.ts +11 -0
- package/dist/src/components/input/stories/email.stories.d.ts +11 -0
- package/dist/src/components/input/stories/textarea.stories.d.ts +11 -0
- package/dist/src/components/input/stories/url.stories.d.ts +11 -0
- package/dist/src/components/input/stories/user-info.stories.d.ts +11 -0
- package/dist/src/components/input/types.d.ts +29 -0
- package/dist/src/components/radio/group.vue.d.ts +17 -2
- package/dist/src/components/radio/index.vue.d.ts +29 -24
- package/dist/src/components/radio/stories/constants.d.ts +4 -0
- package/dist/src/components/radio/stories/default.stories.d.ts +9 -0
- package/dist/src/components/radio/types.d.ts +4 -0
- package/dist/src/components/select/index.vue.d.ts +8 -0
- package/dist/src/components/social-button/constants.d.ts +5 -0
- package/dist/src/components/social-button/index.vue.d.ts +34 -0
- package/dist/src/components/social-button/stories/apple.stories.d.ts +8 -0
- package/dist/src/components/social-button/stories/constants.d.ts +4 -0
- package/dist/src/components/social-button/stories/google.stories.d.ts +8 -0
- package/dist/src/components/social-button/stories/linkedin.stories.d.ts +8 -0
- package/dist/src/components/social-button/types.d.ts +5 -0
- package/dist/src/index.d.ts +2 -11
- package/dist/style.css +1 -1
- package/dist/vite.config.d.ts +2 -0
- package/package.json +29 -24
- package/dist/apple-logo-884566a5.js +0 -2
- package/dist/apple-logo-884566a5.js.map +0 -1
- package/dist/apple-logo-ff0ba2f9.mjs +0 -21
- package/dist/apple-logo-ff0ba2f9.mjs.map +0 -1
- package/dist/chevron-down-a5f20f24.mjs +0 -23
- package/dist/chevron-down-a5f20f24.mjs.map +0 -1
- package/dist/chevron-down-e1811368.js +0 -2
- package/dist/chevron-down-e1811368.js.map +0 -1
- package/dist/close-9ab883c5.js +0 -2
- package/dist/close-9ab883c5.js.map +0 -1
- package/dist/close-e94671b3.mjs +0 -23
- package/dist/close-e94671b3.mjs.map +0 -1
- package/dist/google-logo-5b2d4f3f.mjs +0 -18
- package/dist/google-logo-5b2d4f3f.mjs.map +0 -1
- package/dist/google-logo-b5d2152e.js +0 -2
- package/dist/google-logo-b5d2152e.js.map +0 -1
- package/dist/index.cjs.js +0 -104
- package/dist/index.cjs.js.map +0 -1
- package/dist/linkedin-logo-37aa9e19.js +0 -2
- package/dist/linkedin-logo-37aa9e19.js.map +0 -1
- package/dist/linkedin-logo-60afbdbd.mjs +0 -31
- package/dist/linkedin-logo-60afbdbd.mjs.map +0 -1
- package/dist/master-card-d3ac8324.mjs +0 -18
- package/dist/master-card-d3ac8324.mjs.map +0 -1
- package/dist/master-card-e2dfc289.js +0 -2
- package/dist/master-card-e2dfc289.js.map +0 -1
- package/dist/message-text-6c2c83cb.mjs +0 -31
- package/dist/message-text-6c2c83cb.mjs.map +0 -1
- package/dist/message-text-dc61de4f.js +0 -2
- package/dist/message-text-dc61de4f.js.map +0 -1
- package/dist/plus-6df1eee8.js +0 -2
- package/dist/plus-6df1eee8.js.map +0 -1
- package/dist/plus-f1ab5630.mjs +0 -37
- package/dist/plus-f1ab5630.mjs.map +0 -1
|
@@ -1,30 +1,42 @@
|
|
|
1
|
-
import type { PropType as __PropType } from 'vue';
|
|
2
1
|
import { type AlertProps } from 'ant-design-vue/lib/alert';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { MaAlertPropVariant, MaAlertPropType } from "./types";
|
|
3
|
+
import 'ant-design-vue/lib/alert/style/css';
|
|
4
|
+
export interface MaAlertProps extends Omit<AlertProps, 'type' | 'message' | 'closable' | 'showIcon'> {
|
|
5
|
+
variant?: MaAlertPropVariant;
|
|
6
|
+
type?: MaAlertPropType;
|
|
7
|
+
message?: string;
|
|
8
|
+
closable?: boolean;
|
|
9
|
+
showIcon?: boolean;
|
|
6
10
|
}
|
|
7
|
-
declare const
|
|
8
|
-
variant:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaAlertProps>, {
|
|
12
|
+
variant: MaAlertPropVariant;
|
|
13
|
+
type: MaAlertPropType;
|
|
14
|
+
}>, {}, 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<MaAlertProps>, {
|
|
15
|
+
variant: MaAlertPropVariant;
|
|
16
|
+
type: MaAlertPropType;
|
|
17
|
+
}>>>, {
|
|
18
|
+
type: MaAlertPropType;
|
|
19
|
+
variant: MaAlertPropVariant;
|
|
20
|
+
}>, Record<NonNullable<string | number>, (_: {}) => any> & {
|
|
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;
|
|
22
31
|
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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;
|
|
26
41
|
};
|
|
27
|
-
}
|
|
28
|
-
variant: "dark" | "blue" | "green" | "orange" | "red";
|
|
29
|
-
}>;
|
|
30
|
-
export default _sfc_main;
|
|
42
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import MaAlert from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaAlert>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaAlert>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Primary: Story;
|
|
8
|
+
export declare const Secondary: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaAlert from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaAlert>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaAlert>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Primary: Story;
|
|
8
|
+
export declare const Secondary: Story;
|
|
9
|
+
export declare const WithIcon: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaAlert from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaAlert>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaAlert>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Primary: Story;
|
|
8
|
+
export declare const Secondary: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaAlert from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaAlert>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaAlert>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Primary: Story;
|
|
8
|
+
export declare const Secondary: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaAlert from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaAlert>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaAlert>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Primary: Story;
|
|
8
|
+
export declare const Secondary: Story;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import 'ant-design-vue/lib/avatar/style/css';
|
|
2
|
+
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<{}>>, {}>;
|
|
3
|
+
export default _default;
|
|
@@ -1,44 +1,41 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { MaBadgePropVariant, MaBadgePropType, MaBadgePropSize } from "./types";
|
|
2
2
|
export interface MaBadgeProps {
|
|
3
|
-
type?:
|
|
4
|
-
variant?:
|
|
5
|
-
size?:
|
|
3
|
+
type?: MaBadgePropType;
|
|
4
|
+
variant?: MaBadgePropVariant;
|
|
5
|
+
size?: MaBadgePropSize;
|
|
6
6
|
}
|
|
7
|
-
declare const
|
|
8
|
-
type:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
variant:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
size:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
type: __PropType<"dark" | "blue" | "green" | "orange" | "red" | "purple">;
|
|
31
|
-
required: false;
|
|
32
|
-
default: string;
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaBadgeProps>, {
|
|
8
|
+
type: MaBadgePropType;
|
|
9
|
+
variant: MaBadgePropVariant;
|
|
10
|
+
size: MaBadgePropSize;
|
|
11
|
+
}>, {}, 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<MaBadgeProps>, {
|
|
12
|
+
type: MaBadgePropType;
|
|
13
|
+
variant: MaBadgePropVariant;
|
|
14
|
+
size: MaBadgePropSize;
|
|
15
|
+
}>>>, {
|
|
16
|
+
type: MaBadgePropType;
|
|
17
|
+
variant: MaBadgePropVariant;
|
|
18
|
+
size: MaBadgePropSize;
|
|
19
|
+
}>, {
|
|
20
|
+
default: (_: {}) => any;
|
|
21
|
+
}>;
|
|
22
|
+
export default _default;
|
|
23
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
25
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
+
} : {
|
|
28
|
+
type: import('vue').PropType<T[K]>;
|
|
29
|
+
required: true;
|
|
33
30
|
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
default:
|
|
31
|
+
};
|
|
32
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
33
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
34
|
+
default: D[K];
|
|
35
|
+
} : P[K];
|
|
36
|
+
};
|
|
37
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
38
40
|
};
|
|
39
|
-
}
|
|
40
|
-
type: "primary" | "secondary" | "line" | "dashed";
|
|
41
|
-
variant: "dark" | "blue" | "green" | "orange" | "red" | "purple";
|
|
42
|
-
size: "large" | "small" | "medium";
|
|
43
|
-
}>;
|
|
44
|
-
export default _sfc_main;
|
|
41
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryFn, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import MaBadge from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaBadge>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaBadge>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Primary: Story;
|
|
8
|
+
export declare const Secondary: Story;
|
|
9
|
+
export declare const Line: Story;
|
|
10
|
+
export declare const Dashed: Story;
|
|
11
|
+
export declare const Icon: StoryFn;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryFn, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import MaBadge from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaBadge>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaBadge>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Primary: Story;
|
|
8
|
+
export declare const Secondary: Story;
|
|
9
|
+
export declare const Line: Story;
|
|
10
|
+
export declare const Dashed: Story;
|
|
11
|
+
export declare const Icon: StoryFn;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryFn, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import MaBadge from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaBadge>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaBadge>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Primary: Story;
|
|
8
|
+
export declare const Secondary: Story;
|
|
9
|
+
export declare const Line: Story;
|
|
10
|
+
export declare const Dashed: Story;
|
|
11
|
+
export declare const Icon: StoryFn;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryFn, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import MaBadge from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaBadge>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaBadge>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Primary: Story;
|
|
8
|
+
export declare const Secondary: Story;
|
|
9
|
+
export declare const Line: Story;
|
|
10
|
+
export declare const Dashed: Story;
|
|
11
|
+
export declare const Icon: StoryFn;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryFn, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import MaBadge from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaBadge>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaBadge>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Primary: Story;
|
|
8
|
+
export declare const Secondary: Story;
|
|
9
|
+
export declare const Line: Story;
|
|
10
|
+
export declare const Dashed: Story;
|
|
11
|
+
export declare const Icon: StoryFn;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryFn, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import MaBadge from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaBadge>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaBadge>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Primary: Story;
|
|
8
|
+
export declare const Secondary: Story;
|
|
9
|
+
export declare const Line: Story;
|
|
10
|
+
export declare const Dashed: Story;
|
|
11
|
+
export declare const Icon: StoryFn;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare enum MaBadgePropVariant {
|
|
2
|
+
dark = "dark",
|
|
3
|
+
blue = "blue",
|
|
4
|
+
green = "green",
|
|
5
|
+
orange = "orange",
|
|
6
|
+
red = "red",
|
|
7
|
+
purple = "purple"
|
|
8
|
+
}
|
|
9
|
+
export declare enum MaBadgePropType {
|
|
10
|
+
primary = "primary",
|
|
11
|
+
secondary = "secondary",
|
|
12
|
+
line = "line",
|
|
13
|
+
dashed = "dashed",
|
|
14
|
+
icon = "icon"
|
|
15
|
+
}
|
|
16
|
+
export declare enum MaBadgePropSize {
|
|
17
|
+
small = "small",
|
|
18
|
+
medium = "medium",
|
|
19
|
+
large = "large"
|
|
20
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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<{}>>, {}>, {
|
|
2
|
+
default: (_: {}) => any;
|
|
3
|
+
}>;
|
|
4
|
+
export default _default;
|
|
5
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
6
|
+
new (): {
|
|
7
|
+
$slots: S;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,63 +1,44 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import 'ant-design-vue/lib/button/style/css';
|
|
2
|
+
import { ButtonType, ButtonSize, ButtonVariant } from './types';
|
|
3
3
|
export interface MaButtonProps {
|
|
4
4
|
type?: ButtonType;
|
|
5
5
|
variant?: ButtonVariant;
|
|
6
6
|
size?: ButtonSize;
|
|
7
7
|
rounded?: boolean;
|
|
8
8
|
href?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
loading?: boolean;
|
|
9
11
|
}
|
|
10
|
-
declare const
|
|
11
|
-
type:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
variant:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
default: string;
|
|
20
|
-
};
|
|
21
|
-
size: {
|
|
22
|
-
type: __PropType<ButtonSize>;
|
|
23
|
-
required: false;
|
|
24
|
-
default: string;
|
|
25
|
-
};
|
|
26
|
-
rounded: {
|
|
27
|
-
type: __PropType<boolean>;
|
|
28
|
-
required: false;
|
|
29
|
-
};
|
|
30
|
-
href: {
|
|
31
|
-
type: __PropType<string>;
|
|
32
|
-
required: false;
|
|
33
|
-
};
|
|
34
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
-
type: {
|
|
36
|
-
type: __PropType<ButtonType>;
|
|
37
|
-
required: false;
|
|
38
|
-
default: string;
|
|
39
|
-
};
|
|
40
|
-
variant: {
|
|
41
|
-
type: __PropType<ButtonVariant>;
|
|
42
|
-
required: false;
|
|
43
|
-
default: string;
|
|
44
|
-
};
|
|
45
|
-
size: {
|
|
46
|
-
type: __PropType<ButtonSize>;
|
|
47
|
-
required: false;
|
|
48
|
-
default: string;
|
|
49
|
-
};
|
|
50
|
-
rounded: {
|
|
51
|
-
type: __PropType<boolean>;
|
|
52
|
-
required: false;
|
|
53
|
-
};
|
|
54
|
-
href: {
|
|
55
|
-
type: __PropType<string>;
|
|
56
|
-
required: false;
|
|
57
|
-
};
|
|
58
|
-
}>>, {
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaButtonProps>, {
|
|
13
|
+
type: ButtonType;
|
|
14
|
+
variant: ButtonVariant;
|
|
15
|
+
size: ButtonSize;
|
|
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<MaButtonProps>, {
|
|
17
|
+
type: ButtonType;
|
|
18
|
+
variant: ButtonVariant;
|
|
19
|
+
size: ButtonSize;
|
|
20
|
+
}>>>, {
|
|
59
21
|
type: ButtonType;
|
|
60
22
|
variant: ButtonVariant;
|
|
61
23
|
size: ButtonSize;
|
|
62
|
-
}
|
|
63
|
-
export default
|
|
24
|
+
}>, Record<NonNullable<string | number>, (_: {}) => any>>;
|
|
25
|
+
export default _default;
|
|
26
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
28
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
+
} : {
|
|
31
|
+
type: import('vue').PropType<T[K]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
36
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
37
|
+
default: D[K];
|
|
38
|
+
} : P[K];
|
|
39
|
+
};
|
|
40
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaButton from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaButton>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Primary: Story;
|
|
8
|
+
export declare const Secondary: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaButton from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaButton>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Primary: Story;
|
|
8
|
+
export declare const Secondary: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import MaButton from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
export declare const LeftIcon: StoryFn;
|
|
6
|
+
export declare const RightIcon: StoryFn;
|
|
7
|
+
export declare const IconOnly: StoryFn;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaButton from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaButton>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Primary: Story;
|
|
8
|
+
export declare const Secondary: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaButton from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaButton>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Grey: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaButton from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaButton>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Primary: Story;
|
|
8
|
+
export declare const Secondary: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaButton from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaButton>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Primary: Story;
|
|
8
|
+
export declare const Secondary: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaButton from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaButton>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Primary: Story;
|
|
8
|
+
export declare const Secondary: Story;
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare enum ButtonType {
|
|
2
|
+
primary = "primary",
|
|
3
|
+
secondary = "secondary",
|
|
4
|
+
link = "link",
|
|
5
|
+
greylink = "grey-link"
|
|
6
|
+
}
|
|
7
|
+
export declare enum ButtonVariant {
|
|
8
|
+
dark = "dark",
|
|
9
|
+
plain = "plain",
|
|
10
|
+
info = "info",
|
|
11
|
+
success = "success",
|
|
12
|
+
warning = "warning",
|
|
13
|
+
danger = "danger"
|
|
14
|
+
}
|
|
15
|
+
export declare enum ButtonSize {
|
|
16
|
+
xsmall = "x-small",
|
|
17
|
+
small = "small",
|
|
18
|
+
medium = "medium",
|
|
19
|
+
large = "large",
|
|
20
|
+
xlarge = "x-large"
|
|
21
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { CheckboxGroupProps } from 'ant-design-vue/lib/checkbox';
|
|
2
|
+
import 'ant-design-vue/lib/radio/style/css';
|
|
3
|
+
export interface MaCheckboxGroupProps extends CheckboxGroupProps {
|
|
4
|
+
}
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<MaCheckboxGroupProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MaCheckboxGroupProps>>>, {}>, Record<NonNullable<string | number>, (_: {}) => any>>;
|
|
6
|
+
export default _default;
|
|
7
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
9
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
+
} : {
|
|
12
|
+
type: import('vue').PropType<T[K]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type CheckboxProps } from 'ant-design-vue/lib/checkbox';
|
|
2
|
+
import 'ant-design-vue/lib/checkbox/style/css';
|
|
3
|
+
export interface MaCheckboxProps extends CheckboxProps {
|
|
4
|
+
hint?: string;
|
|
5
|
+
indeterminate?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<MaCheckboxProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MaCheckboxProps>>>, {}>, Record<NonNullable<string | number>, (_: {}) => any>>;
|
|
9
|
+
export default _default;
|
|
10
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
+
} : {
|
|
15
|
+
type: import('vue').PropType<T[K]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaCheckbox from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaCheckbox>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaCheckbox>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Indeterminate: Story;
|
|
8
|
+
export declare const ChekboxGroup: Story;
|
|
9
|
+
export declare const Disabled: Story;
|