@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,17 +1,15 @@
|
|
|
1
|
-
import type { PropType as __PropType } from 'vue';
|
|
2
1
|
import type { IconName } from './types';
|
|
3
2
|
export interface IconProps {
|
|
4
3
|
name: IconName;
|
|
5
4
|
}
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<IconProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IconProps>>>, {}>;
|
|
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]>;
|
|
9
13
|
required: true;
|
|
10
14
|
};
|
|
11
|
-
}
|
|
12
|
-
name: {
|
|
13
|
-
type: __PropType<IconName>;
|
|
14
|
-
required: true;
|
|
15
|
-
};
|
|
16
|
-
}>>, {}>;
|
|
17
|
-
export default _sfc_main;
|
|
15
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type IconName = 'plus' | 'message-text' | 'master-card' | 'chevron-down' | 'apple-logo' | 'google-logo' | 'linkedin-logo' | 'close';
|
|
1
|
+
export declare type IconName = 'plus' | 'message-text' | 'master-card' | 'chevron-down' | 'apple-logo' | 'google-logo' | 'linkedin-logo' | 'close';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import 'ant-design-vue/lib/input/style/css';
|
|
2
|
+
import { MaInputType, MaInputSize, MaInputCurrency, MaInputCurrencySymbol } from './types';
|
|
3
3
|
export interface MaInputProps {
|
|
4
4
|
type?: MaInputType;
|
|
5
5
|
size?: MaInputSize;
|
|
@@ -12,124 +12,43 @@ export interface MaInputProps {
|
|
|
12
12
|
addonAfter?: string;
|
|
13
13
|
avatarUrl?: string;
|
|
14
14
|
modelValue?: string;
|
|
15
|
-
amountCurrency?:
|
|
16
|
-
amountCurrencySymbol?:
|
|
15
|
+
amountCurrency?: MaInputCurrency;
|
|
16
|
+
amountCurrencySymbol?: MaInputCurrencySymbol;
|
|
17
|
+
hint?: string;
|
|
17
18
|
}
|
|
18
|
-
declare const
|
|
19
|
-
type:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
default: string;
|
|
28
|
-
};
|
|
29
|
-
title: {
|
|
30
|
-
type: __PropType<string>;
|
|
31
|
-
required: false;
|
|
32
|
-
};
|
|
33
|
-
hintText: {
|
|
34
|
-
type: __PropType<string>;
|
|
35
|
-
required: false;
|
|
36
|
-
};
|
|
37
|
-
hasError: {
|
|
38
|
-
type: __PropType<boolean>;
|
|
39
|
-
required: false;
|
|
40
|
-
};
|
|
41
|
-
placeholder: {
|
|
42
|
-
type: __PropType<string>;
|
|
43
|
-
required: false;
|
|
44
|
-
};
|
|
45
|
-
disabled: {
|
|
46
|
-
type: __PropType<boolean>;
|
|
47
|
-
required: false;
|
|
48
|
-
};
|
|
49
|
-
addonBefore: {
|
|
50
|
-
type: __PropType<string>;
|
|
51
|
-
required: false;
|
|
52
|
-
};
|
|
53
|
-
addonAfter: {
|
|
54
|
-
type: __PropType<string>;
|
|
55
|
-
required: false;
|
|
56
|
-
};
|
|
57
|
-
avatarUrl: {
|
|
58
|
-
type: __PropType<string>;
|
|
59
|
-
required: false;
|
|
60
|
-
};
|
|
61
|
-
modelValue: {
|
|
62
|
-
type: __PropType<string>;
|
|
63
|
-
required: false;
|
|
64
|
-
};
|
|
65
|
-
amountCurrency: {
|
|
66
|
-
type: __PropType<Currency>;
|
|
67
|
-
required: false;
|
|
68
|
-
};
|
|
69
|
-
amountCurrencySymbol: {
|
|
70
|
-
type: __PropType<CurrencySymbol>;
|
|
71
|
-
required: false;
|
|
72
|
-
};
|
|
73
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "currency-change")[], "change" | "currency-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
74
|
-
type: {
|
|
75
|
-
type: __PropType<MaInputType>;
|
|
76
|
-
required: false;
|
|
77
|
-
default: string;
|
|
78
|
-
};
|
|
79
|
-
size: {
|
|
80
|
-
type: __PropType<MaInputSize>;
|
|
81
|
-
required: false;
|
|
82
|
-
default: string;
|
|
83
|
-
};
|
|
84
|
-
title: {
|
|
85
|
-
type: __PropType<string>;
|
|
86
|
-
required: false;
|
|
87
|
-
};
|
|
88
|
-
hintText: {
|
|
89
|
-
type: __PropType<string>;
|
|
90
|
-
required: false;
|
|
91
|
-
};
|
|
92
|
-
hasError: {
|
|
93
|
-
type: __PropType<boolean>;
|
|
94
|
-
required: false;
|
|
95
|
-
};
|
|
96
|
-
placeholder: {
|
|
97
|
-
type: __PropType<string>;
|
|
98
|
-
required: false;
|
|
99
|
-
};
|
|
100
|
-
disabled: {
|
|
101
|
-
type: __PropType<boolean>;
|
|
102
|
-
required: false;
|
|
103
|
-
};
|
|
104
|
-
addonBefore: {
|
|
105
|
-
type: __PropType<string>;
|
|
106
|
-
required: false;
|
|
107
|
-
};
|
|
108
|
-
addonAfter: {
|
|
109
|
-
type: __PropType<string>;
|
|
110
|
-
required: false;
|
|
111
|
-
};
|
|
112
|
-
avatarUrl: {
|
|
113
|
-
type: __PropType<string>;
|
|
114
|
-
required: false;
|
|
115
|
-
};
|
|
116
|
-
modelValue: {
|
|
117
|
-
type: __PropType<string>;
|
|
118
|
-
required: false;
|
|
119
|
-
};
|
|
120
|
-
amountCurrency: {
|
|
121
|
-
type: __PropType<Currency>;
|
|
122
|
-
required: false;
|
|
123
|
-
};
|
|
124
|
-
amountCurrencySymbol: {
|
|
125
|
-
type: __PropType<CurrencySymbol>;
|
|
126
|
-
required: false;
|
|
127
|
-
};
|
|
128
|
-
}>> & {
|
|
129
|
-
onChange?: (...args: any[]) => any;
|
|
130
|
-
"onCurrency-change"?: (...args: any[]) => any;
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaInputProps>, {
|
|
20
|
+
type: MaInputType;
|
|
21
|
+
size: MaInputSize;
|
|
22
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "currency-change")[], "change" | "currency-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaInputProps>, {
|
|
23
|
+
type: MaInputType;
|
|
24
|
+
size: MaInputSize;
|
|
25
|
+
}>>> & {
|
|
26
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
"onCurrency-change"?: ((...args: any[]) => any) | undefined;
|
|
131
28
|
}, {
|
|
132
29
|
type: MaInputType;
|
|
133
30
|
size: MaInputSize;
|
|
31
|
+
}>, {
|
|
32
|
+
title: (_: {}) => any;
|
|
33
|
+
hint: (_: {}) => any;
|
|
134
34
|
}>;
|
|
135
|
-
export default
|
|
35
|
+
export default _default;
|
|
36
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
37
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
38
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
39
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
40
|
+
} : {
|
|
41
|
+
type: import('vue').PropType<T[K]>;
|
|
42
|
+
required: true;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
46
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
47
|
+
default: D[K];
|
|
48
|
+
} : P[K];
|
|
49
|
+
};
|
|
50
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
51
|
+
new (): {
|
|
52
|
+
$slots: S;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaInput from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaInput>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaInput>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Small: Story;
|
|
8
|
+
export declare const Medium: Story;
|
|
9
|
+
export declare const Large: Story;
|
|
10
|
+
export declare const Error: Story;
|
|
11
|
+
export declare const Disabled: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaInput from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaInput>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaInput>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Small: Story;
|
|
8
|
+
export declare const Medium: Story;
|
|
9
|
+
export declare const Large: Story;
|
|
10
|
+
export declare const Error: Story;
|
|
11
|
+
export declare const Disabled: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaInput from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaInput>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaInput>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Small: Story;
|
|
8
|
+
export declare const Medium: Story;
|
|
9
|
+
export declare const Large: Story;
|
|
10
|
+
export declare const Error: Story;
|
|
11
|
+
export declare const Disabled: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaInput from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaInput>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaInput>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Small: Story;
|
|
8
|
+
export declare const Medium: Story;
|
|
9
|
+
export declare const Large: Story;
|
|
10
|
+
export declare const Error: Story;
|
|
11
|
+
export declare const Disabled: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaInput from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaInput>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaInput>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Small: Story;
|
|
8
|
+
export declare const Medium: Story;
|
|
9
|
+
export declare const Large: Story;
|
|
10
|
+
export declare const Error: Story;
|
|
11
|
+
export declare const Disabled: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaInput from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaInput>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaInput>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Small: Story;
|
|
8
|
+
export declare const Medium: Story;
|
|
9
|
+
export declare const Large: Story;
|
|
10
|
+
export declare const Error: Story;
|
|
11
|
+
export declare const Disabled: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaInput from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaInput>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaInput>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Small: any;
|
|
8
|
+
export declare const Medium: any;
|
|
9
|
+
export declare const Large: any;
|
|
10
|
+
export declare const Error: any;
|
|
11
|
+
export declare const Disabled: any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare enum MaInputType {
|
|
2
|
+
text = "text",
|
|
3
|
+
password = "password",
|
|
4
|
+
textarea = "textarea",
|
|
5
|
+
number = "number",
|
|
6
|
+
email = "email",
|
|
7
|
+
url = "url",
|
|
8
|
+
tel = "tel",
|
|
9
|
+
amount = "amount",
|
|
10
|
+
creditCard = "creditCard",
|
|
11
|
+
userInfo = "userInfo"
|
|
12
|
+
}
|
|
13
|
+
export declare enum MaInputSize {
|
|
14
|
+
small = "small",
|
|
15
|
+
medium = "medium",
|
|
16
|
+
large = "large"
|
|
17
|
+
}
|
|
18
|
+
export declare enum MaInputCurrency {
|
|
19
|
+
usd = "USD",
|
|
20
|
+
eur = "EUR",
|
|
21
|
+
gbp = "GBP",
|
|
22
|
+
jpy = "JPY"
|
|
23
|
+
}
|
|
24
|
+
export declare enum MaInputCurrencySymbol {
|
|
25
|
+
usd = "$",
|
|
26
|
+
eur = "\u20AC",
|
|
27
|
+
gbp = "\u00A3",
|
|
28
|
+
jpy = "\u00A5"
|
|
29
|
+
}
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
import type { RadioGroupProps } from 'ant-design-vue/lib/radio';
|
|
2
|
+
import 'ant-design-vue/lib/radio/style/css';
|
|
2
3
|
export interface MaRadioGroupProps extends RadioGroupProps {
|
|
3
4
|
}
|
|
4
|
-
declare const
|
|
5
|
-
export default
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<MaRadioGroupProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MaRadioGroupProps>>>, {}>, 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
|
+
};
|
|
@@ -1,30 +1,35 @@
|
|
|
1
|
-
import type { PropType as __PropType } from 'vue';
|
|
2
1
|
import { type RadioProps } from 'ant-design-vue/lib/radio';
|
|
2
|
+
import { MaRadioType } from "./types";
|
|
3
|
+
import 'ant-design-vue/lib/radio/style/css';
|
|
3
4
|
export interface MaRadioProps extends RadioProps {
|
|
4
|
-
type?:
|
|
5
|
+
type?: MaRadioType;
|
|
5
6
|
hint?: string;
|
|
7
|
+
disabled?: boolean;
|
|
6
8
|
}
|
|
7
|
-
declare const
|
|
8
|
-
type:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaRadioProps>, {
|
|
10
|
+
type: MaRadioType;
|
|
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<MaRadioProps>, {
|
|
12
|
+
type: MaRadioType;
|
|
13
|
+
}>>>, {
|
|
14
|
+
type: MaRadioType;
|
|
15
|
+
}>, Record<NonNullable<string | number>, (_: {}) => any>>;
|
|
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;
|
|
12
24
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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;
|
|
16
34
|
};
|
|
17
|
-
}
|
|
18
|
-
type: {
|
|
19
|
-
type: __PropType<"button" | "check">;
|
|
20
|
-
required: false;
|
|
21
|
-
default: string;
|
|
22
|
-
};
|
|
23
|
-
hint: {
|
|
24
|
-
type: __PropType<string>;
|
|
25
|
-
required: false;
|
|
26
|
-
};
|
|
27
|
-
}>>, {
|
|
28
|
-
type: "button" | "check";
|
|
29
|
-
}>;
|
|
30
|
-
export default _sfc_main;
|
|
35
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaRadio from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaRadio>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaRadio>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Button: Story;
|
|
8
|
+
export declare const Check: Story;
|
|
9
|
+
export declare const Disabled: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import 'ant-design-vue/lib/select/style/css';
|
|
2
|
+
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>>;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
5
|
+
new (): {
|
|
6
|
+
$slots: S;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import 'ant-design-vue/lib/button/style/css';
|
|
2
|
+
import { MaSocialButtonType } from './types';
|
|
3
|
+
export interface MaButtonProps {
|
|
4
|
+
type?: MaSocialButtonType;
|
|
5
|
+
iconOnly?: boolean;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaButtonProps>, {
|
|
9
|
+
type: MaSocialButtonType;
|
|
10
|
+
}>, {}, 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>, {
|
|
11
|
+
type: MaSocialButtonType;
|
|
12
|
+
}>>>, {
|
|
13
|
+
type: MaSocialButtonType;
|
|
14
|
+
}>, Record<NonNullable<string | number>, (_: {}) => any>>;
|
|
15
|
+
export default _default;
|
|
16
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
17
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
18
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
19
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
20
|
+
} : {
|
|
21
|
+
type: import('vue').PropType<T[K]>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
26
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
27
|
+
default: D[K];
|
|
28
|
+
} : P[K];
|
|
29
|
+
};
|
|
30
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaSocialButton from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaSocialButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaSocialButton>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithLabel: Story;
|
|
8
|
+
export declare const IconOnly: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaSocialButton from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaSocialButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaSocialButton>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithLabel: Story;
|
|
8
|
+
export declare const IconOnly: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaSocialButton from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaSocialButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaSocialButton>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithLabel: Story;
|
|
8
|
+
export declare const IconOnly: Story;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export { default as
|
|
3
|
-
export { default as MaIcon } from './components/icon/index.vue';
|
|
4
|
-
export { default as MaAvatar } from './components/avatar/index.vue';
|
|
5
|
-
export { default as MaSelect } from './components/select/index.vue';
|
|
6
|
-
export { default as MaRadio } from './components/radio/index.vue';
|
|
7
|
-
export { default as MaRadioGroup } from './components/radio/group.vue';
|
|
8
|
-
export { default as MaCheckbox } from './components/radio/index.vue';
|
|
9
|
-
export { default as MaCheckboxGroup } from './components/radio/group.vue';
|
|
10
|
-
export { default as MaBadge } from './components/badge/index.vue';
|
|
11
|
-
export { default as MaAlert } from './components/alert/index.vue';
|
|
1
|
+
import 'tailwindcss/tailwind.css';
|
|
2
|
+
export { default as MaBaseButton } from './components/base-button/index.vue';
|