@mobileaction/action-kit 0.0.3 → 0.0.5
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/apple-logo-884566a5.js +2 -0
- package/dist/apple-logo-884566a5.js.map +1 -0
- package/dist/apple-logo-ff0ba2f9.mjs +21 -0
- package/dist/apple-logo-ff0ba2f9.mjs.map +1 -0
- package/dist/close-9ab883c5.js +2 -0
- package/dist/close-9ab883c5.js.map +1 -0
- package/dist/close-e94671b3.mjs +23 -0
- package/dist/close-e94671b3.mjs.map +1 -0
- package/dist/google-logo-5b2d4f3f.mjs +18 -0
- package/dist/google-logo-5b2d4f3f.mjs.map +1 -0
- package/dist/google-logo-b5d2152e.js +2 -0
- package/dist/google-logo-b5d2152e.js.map +1 -0
- package/dist/index.cjs.js +21 -21
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6992 -6380
- package/dist/index.es.js.map +1 -1
- package/dist/linkedin-logo-37aa9e19.js +2 -0
- package/dist/linkedin-logo-37aa9e19.js.map +1 -0
- package/dist/linkedin-logo-60afbdbd.mjs +31 -0
- package/dist/linkedin-logo-60afbdbd.mjs.map +1 -0
- package/dist/src/components/alert/index.vue.d.ts +42 -0
- 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 -2
- package/dist/src/components/badge/index.vue.d.ts +41 -0
- 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/button/index.vue.d.ts +44 -0
- 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 -0
- 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 +15 -0
- package/dist/src/components/icon/types.d.ts +1 -0
- package/dist/src/components/input/index.vue.d.ts +54 -0
- 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 -4
- package/dist/src/components/radio/group.vue.d.ts +20 -0
- package/dist/src/components/radio/index.vue.d.ts +35 -0
- 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 -2
- 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 +12 -0
- package/dist/style.css +1 -1
- package/dist/vite.config.d.ts +2 -0
- package/package.json +26 -19
|
@@ -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;
|
|
@@ -1,4 +1,29 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { RadioGroupProps } from 'ant-design-vue/lib/radio';
|
|
2
|
+
import 'ant-design-vue/lib/radio/style/css';
|
|
3
|
+
export interface MaRadioGroupProps extends RadioGroupProps {
|
|
4
|
+
}
|
|
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
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type RadioProps } from 'ant-design-vue/lib/radio';
|
|
2
|
+
import { MaRadioType } from "./types";
|
|
3
|
+
import 'ant-design-vue/lib/radio/style/css';
|
|
4
|
+
export interface MaRadioProps extends RadioProps {
|
|
5
|
+
type?: MaRadioType;
|
|
6
|
+
hint?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
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;
|
|
24
|
+
};
|
|
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;
|
|
34
|
+
};
|
|
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;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import 'tailwindcss/tailwind.css';
|
|
2
|
+
export { default as MaButton } from './components/button/index.vue';
|
|
3
|
+
export { default as MaInput } from './components/input/index.vue';
|
|
4
|
+
export { default as MaIcon } from './components/icon/index.vue';
|
|
5
|
+
export { default as MaAvatar } from './components/avatar/index.vue';
|
|
6
|
+
export { default as MaSelect } from './components/select/index.vue';
|
|
7
|
+
export { default as MaRadio } from './components/radio/index.vue';
|
|
8
|
+
export { default as MaRadioGroup } from './components/radio/group.vue';
|
|
9
|
+
export { default as MaCheckbox } from './components/radio/index.vue';
|
|
10
|
+
export { default as MaCheckboxGroup } from './components/radio/group.vue';
|
|
11
|
+
export { default as MaBadge } from './components/badge/index.vue';
|
|
12
|
+
export { default as MaAlert } from './components/alert/index.vue';
|