@mobileaction/action-kit 0.0.18 → 0.0.20
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/components/badge/index.vue.d.ts +1 -1
- package/dist/components/checkbox/index.vue.d.ts +2 -2
- package/dist/components/input/index.vue.d.ts +11 -8
- package/dist/components/input/stories/constants.d.ts +1 -0
- package/dist/components/input/stories/password.stories.d.ts +11 -0
- package/dist/components/input/types.d.ts +3 -6
- package/dist/components/numeric-input/components/singleNumericInput.vue.d.ts +31 -0
- package/dist/components/numeric-input/index.vue.d.ts +42 -0
- package/dist/components/numeric-input/stories/constants.d.ts +4 -0
- package/dist/components/numeric-input/stories/default.stories.d.ts +12 -0
- package/dist/components/numeric-input/types.d.ts +2 -0
- package/dist/components/radio/index.vue.d.ts +1 -1
- package/dist/components/select/components/dropdownRender.vue.d.ts +1 -1
- package/dist/components/select/index.vue.d.ts +4 -3
- package/dist/components/switch/index.vue.d.ts +2 -2
- package/dist/components/toggle/index.vue.d.ts +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +470 -337
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/components/input/constants.d.ts +0 -2
|
@@ -13,7 +13,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
13
13
|
variant: MaBadgePropVariant;
|
|
14
14
|
size: MaBadgePropSize;
|
|
15
15
|
}>>> & {
|
|
16
|
-
onClick?: (
|
|
16
|
+
onClick?: (...args: any[]) => any;
|
|
17
17
|
}, {
|
|
18
18
|
size: MaBadgePropSize;
|
|
19
19
|
type: MaBadgePropType;
|
|
@@ -5,9 +5,9 @@ export interface MaCheckboxProps extends CheckboxProps {
|
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
}
|
|
7
7
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaCheckboxProps>, {
|
|
8
|
-
indeterminate:
|
|
8
|
+
indeterminate: any;
|
|
9
9
|
}>, {}, 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<MaCheckboxProps>, {
|
|
10
|
-
indeterminate:
|
|
10
|
+
indeterminate: any;
|
|
11
11
|
}>>>, {
|
|
12
12
|
indeterminate: boolean;
|
|
13
13
|
}>, Record<NonNullable<string | number>, (_: {}) => any>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { MaInputType, MaInputSize, MaInputCurrency
|
|
1
|
+
import { MaInputType, MaInputSize, MaInputCurrency } from './types';
|
|
2
2
|
export interface MaInputProps {
|
|
3
|
+
allowClear?: boolean;
|
|
3
4
|
type?: MaInputType;
|
|
4
5
|
size?: MaInputSize;
|
|
5
6
|
title?: string;
|
|
@@ -10,25 +11,27 @@ export interface MaInputProps {
|
|
|
10
11
|
addonBefore?: string;
|
|
11
12
|
addonAfter?: string;
|
|
12
13
|
avatarUrl?: string;
|
|
13
|
-
|
|
14
|
+
value?: string;
|
|
14
15
|
amountCurrency?: MaInputCurrency;
|
|
15
|
-
amountCurrencySymbol?: MaInputCurrencySymbol;
|
|
16
16
|
hint?: string;
|
|
17
|
+
prefixIcon?: string;
|
|
18
|
+
suffixIcon?: string;
|
|
17
19
|
}
|
|
18
20
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaInputProps>, {
|
|
19
21
|
type: MaInputType;
|
|
20
22
|
size: MaInputSize;
|
|
21
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "currency-change" | "update:value")[], "change" | "currency-change" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaInputProps>, {
|
|
23
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "currency-change" | "update:value" | "update:amountCurrency")[], "change" | "currency-change" | "update:value" | "update:amountCurrency", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaInputProps>, {
|
|
22
24
|
type: MaInputType;
|
|
23
25
|
size: MaInputSize;
|
|
24
26
|
}>>> & {
|
|
25
|
-
onChange?: (
|
|
26
|
-
"onUpdate:value"?: (
|
|
27
|
-
"onCurrency-change"?: (
|
|
27
|
+
onChange?: (...args: any[]) => any;
|
|
28
|
+
"onUpdate:value"?: (...args: any[]) => any;
|
|
29
|
+
"onCurrency-change"?: (...args: any[]) => any;
|
|
30
|
+
"onUpdate:amountCurrency"?: (...args: any[]) => any;
|
|
28
31
|
}, {
|
|
29
32
|
size: MaInputSize;
|
|
30
33
|
type: MaInputType;
|
|
31
|
-
}>, {
|
|
34
|
+
}>, Record<NonNullable<string | number>, (_: {}) => any> & Record<NonNullable<string | number>, (_: {}) => any> & {
|
|
32
35
|
title: (_: {}) => any;
|
|
33
36
|
hint: (_: {}) => any;
|
|
34
37
|
}>;
|
|
@@ -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;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { SelectProps } from 'ant-design-vue';
|
|
1
2
|
export declare enum MaInputType {
|
|
2
3
|
text = "text",
|
|
3
4
|
password = "password",
|
|
@@ -21,9 +22,5 @@ export declare enum MaInputCurrency {
|
|
|
21
22
|
gbp = "GBP",
|
|
22
23
|
jpy = "JPY"
|
|
23
24
|
}
|
|
24
|
-
export declare
|
|
25
|
-
|
|
26
|
-
eur = "\u20AC",
|
|
27
|
-
gbp = "\u00A3",
|
|
28
|
-
jpy = "\u00A5"
|
|
29
|
-
}
|
|
25
|
+
export declare const currencySymbols: any;
|
|
26
|
+
export declare const currencyOptions: SelectProps['options'];
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface SingleNumericInputProps {
|
|
2
|
+
value?: string;
|
|
3
|
+
focus: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SingleNumericInputProps>, {
|
|
6
|
+
value: string;
|
|
7
|
+
focus: boolean;
|
|
8
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SingleNumericInputProps>, {
|
|
9
|
+
value: string;
|
|
10
|
+
focus: boolean;
|
|
11
|
+
}>>> & {
|
|
12
|
+
"onUpdate:value"?: (...args: any[]) => any;
|
|
13
|
+
}, {
|
|
14
|
+
value: string;
|
|
15
|
+
focus: boolean;
|
|
16
|
+
}>;
|
|
17
|
+
export default _default;
|
|
18
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
20
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
+
} : {
|
|
23
|
+
type: import('vue').PropType<T[K]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
28
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
29
|
+
default: D[K];
|
|
30
|
+
} : P[K];
|
|
31
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { NumericInputSize } from "./types";
|
|
2
|
+
export interface MaNumericInputProps {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
length?: number;
|
|
5
|
+
hasError?: boolean;
|
|
6
|
+
value?: string;
|
|
7
|
+
placeholderStatus?: boolean;
|
|
8
|
+
size?: NumericInputSize;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaNumericInputProps>, {
|
|
11
|
+
length: number;
|
|
12
|
+
value: string;
|
|
13
|
+
placeholderStatus: boolean;
|
|
14
|
+
size: string;
|
|
15
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaNumericInputProps>, {
|
|
16
|
+
length: number;
|
|
17
|
+
value: string;
|
|
18
|
+
placeholderStatus: boolean;
|
|
19
|
+
size: string;
|
|
20
|
+
}>>> & {
|
|
21
|
+
"onUpdate:value"?: (...args: any[]) => any;
|
|
22
|
+
}, {
|
|
23
|
+
size: string;
|
|
24
|
+
length: number;
|
|
25
|
+
value: string;
|
|
26
|
+
placeholderStatus: boolean;
|
|
27
|
+
}>;
|
|
28
|
+
export default _default;
|
|
29
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
30
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
31
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
32
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
33
|
+
} : {
|
|
34
|
+
type: import('vue').PropType<T[K]>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
39
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
40
|
+
default: D[K];
|
|
41
|
+
} : P[K];
|
|
42
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import MaNumericInput from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaNumericInput>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaNumericInput>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Disabled: Story;
|
|
8
|
+
export declare const Error: Story;
|
|
9
|
+
export declare const NoPlaceholder: Story;
|
|
10
|
+
export declare const Small: Story;
|
|
11
|
+
export declare const Medium: Story;
|
|
12
|
+
export declare const Large: Story;
|
|
@@ -10,7 +10,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
10
10
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaRadioProps>, {
|
|
11
11
|
type: MaRadioType;
|
|
12
12
|
}>>> & {
|
|
13
|
-
onClick?: (
|
|
13
|
+
onClick?: (...args: any[]) => any;
|
|
14
14
|
}, {
|
|
15
15
|
type: MaRadioType;
|
|
16
16
|
}>, Record<NonNullable<string | number>, (_: {}) => any>>;
|
|
@@ -6,6 +6,7 @@ export interface MaSelectProps {
|
|
|
6
6
|
autofocus?: boolean;
|
|
7
7
|
clearIcon?: string;
|
|
8
8
|
defaultOpen?: boolean;
|
|
9
|
+
dropdownClassName?: string;
|
|
9
10
|
disabled?: boolean;
|
|
10
11
|
loading?: boolean;
|
|
11
12
|
menuItemSelectedIcon?: string;
|
|
@@ -36,13 +37,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
36
37
|
value: string;
|
|
37
38
|
menuItemSelectedIcon: string;
|
|
38
39
|
}>>> & {
|
|
39
|
-
"onUpdate:value"?: (
|
|
40
|
+
"onUpdate:value"?: (...args: any[]) => any;
|
|
40
41
|
}, {
|
|
41
42
|
size: string;
|
|
42
43
|
value: string | number | string[] | number[];
|
|
43
|
-
autoClearSearchValue: boolean;
|
|
44
|
-
menuItemSelectedIcon: string;
|
|
45
44
|
open: boolean;
|
|
45
|
+
menuItemSelectedIcon: string;
|
|
46
|
+
autoClearSearchValue: boolean;
|
|
46
47
|
}>, Record<NonNullable<string | number>, (_: {}) => any> & {
|
|
47
48
|
prefixIcon: (_: {}) => any;
|
|
48
49
|
}>;
|
|
@@ -13,8 +13,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
13
13
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "change")[], "click" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaSwitchProps>, {
|
|
14
14
|
type: string;
|
|
15
15
|
}>>> & {
|
|
16
|
-
onChange?: (
|
|
17
|
-
onClick?: (
|
|
16
|
+
onChange?: (...args: any[]) => any;
|
|
17
|
+
onClick?: (...args: any[]) => any;
|
|
18
18
|
}, {
|
|
19
19
|
type: string;
|
|
20
20
|
}>;
|
|
@@ -14,8 +14,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
14
14
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "change")[], "click" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaSwitchProps>, {
|
|
15
15
|
size: string;
|
|
16
16
|
}>>> & {
|
|
17
|
-
onChange?: (
|
|
18
|
-
onClick?: (
|
|
17
|
+
onChange?: (...args: any[]) => any;
|
|
18
|
+
onClick?: (...args: any[]) => any;
|
|
19
19
|
}, {
|
|
20
20
|
size: string;
|
|
21
21
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -11,3 +11,4 @@ export { default as MaIcon } from './components/icon/index.vue';
|
|
|
11
11
|
export { default as MaSelect } from './components/select/index.vue';
|
|
12
12
|
export { default as MaCheckbox } from './components/checkbox/index.vue';
|
|
13
13
|
export { default as MaCheckboxGroup } from './components/checkbox/group.vue';
|
|
14
|
+
export { default as MaNumericInput } from './components/numeric-input/index.vue';
|