@mobileaction/action-kit 0.0.19 → 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 +4 -4
- 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 +1 -1
- 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 +424 -317
- 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
|
@@ -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>>;
|
|
@@ -24,10 +24,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
24
24
|
type: MaInputType;
|
|
25
25
|
size: MaInputSize;
|
|
26
26
|
}>>> & {
|
|
27
|
-
onChange?: (
|
|
28
|
-
"onUpdate:value"?: (
|
|
29
|
-
"onCurrency-change"?: (
|
|
30
|
-
"onUpdate:amountCurrency"?: (
|
|
27
|
+
onChange?: (...args: any[]) => any;
|
|
28
|
+
"onUpdate:value"?: (...args: any[]) => any;
|
|
29
|
+
"onCurrency-change"?: (...args: any[]) => any;
|
|
30
|
+
"onUpdate:amountCurrency"?: (...args: any[]) => any;
|
|
31
31
|
}, {
|
|
32
32
|
size: MaInputSize;
|
|
33
33
|
type: MaInputType;
|
|
@@ -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>>;
|
|
@@ -37,7 +37,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
37
37
|
value: string;
|
|
38
38
|
menuItemSelectedIcon: string;
|
|
39
39
|
}>>> & {
|
|
40
|
-
"onUpdate:value"?: (
|
|
40
|
+
"onUpdate:value"?: (...args: any[]) => any;
|
|
41
41
|
}, {
|
|
42
42
|
size: string;
|
|
43
43
|
value: string | number | string[] | number[];
|
|
@@ -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';
|