@mobileaction/action-kit 0.0.14 → 0.0.16

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.
@@ -0,0 +1,7 @@
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<{}>>, {}>, Record<NonNullable<string | number>, (_: {}) => any>>;
2
+ export default _default;
3
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
4
+ new (): {
5
+ $slots: S;
6
+ };
7
+ };
@@ -0,0 +1,3 @@
1
+ import type { Meta } from '@storybook/vue3';
2
+ import MaForm from '../index.vue';
3
+ export declare const baseConfig: Meta<typeof MaForm>;
@@ -0,0 +1,5 @@
1
+ import type { Meta, StoryFn } from '@storybook/vue3';
2
+ import MaForm from '../index.vue';
3
+ declare const meta: Meta<typeof MaForm>;
4
+ export default meta;
5
+ export declare const Default: StoryFn;
@@ -0,0 +1,2 @@
1
+ export declare const MaFormLayouts: string[];
2
+ export declare type MaFormLayout = (typeof MaFormLayouts)[number];
@@ -0,0 +1,7 @@
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<{}>>, {}>, Record<NonNullable<string | number>, (_: {}) => any>>;
2
+ export default _default;
3
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
4
+ new (): {
5
+ $slots: S;
6
+ };
7
+ };
@@ -18,11 +18,12 @@ export interface MaInputProps {
18
18
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaInputProps>, {
19
19
  type: MaInputType;
20
20
  size: MaInputSize;
21
- }>, {}, 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>, {
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>, {
22
22
  type: MaInputType;
23
23
  size: MaInputSize;
24
24
  }>>> & {
25
25
  onChange?: ((...args: any[]) => any) | undefined;
26
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
26
27
  "onCurrency-change"?: ((...args: any[]) => any) | undefined;
27
28
  }, {
28
29
  size: MaInputSize;
@@ -0,0 +1,48 @@
1
+ import { type TooltipType, TooltipTriggerType } from "./types";
2
+ import { type TooltipPlacement } from "ant-design-vue/lib/tooltip/index";
3
+ export interface MaTooltipProps {
4
+ placement?: TooltipPlacement;
5
+ type?: TooltipType;
6
+ icon?: TooltipType;
7
+ title: string;
8
+ description?: string;
9
+ trigger?: TooltipTriggerType;
10
+ closable?: boolean;
11
+ defaultVisible?: boolean;
12
+ }
13
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaTooltipProps>, {
14
+ placement: string;
15
+ type: string;
16
+ trigger: string;
17
+ defaultVisible: boolean;
18
+ }>, {}, 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<MaTooltipProps>, {
19
+ placement: string;
20
+ type: string;
21
+ trigger: string;
22
+ defaultVisible: boolean;
23
+ }>>>, {
24
+ type: string;
25
+ placement: TooltipPlacement;
26
+ trigger: string;
27
+ defaultVisible: boolean;
28
+ }>, Record<NonNullable<string | number>, (_: {}) => any>>;
29
+ export default _default;
30
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
31
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
32
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
33
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
34
+ } : {
35
+ type: import('vue').PropType<T[K]>;
36
+ required: true;
37
+ };
38
+ };
39
+ declare type __VLS_WithDefaults<P, D> = {
40
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
41
+ default: D[K];
42
+ } : P[K];
43
+ };
44
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
45
+ new (): {
46
+ $slots: S;
47
+ };
48
+ };
@@ -0,0 +1,4 @@
1
+ import type { Meta, StoryFn } from '@storybook/vue3';
2
+ import MaTooltip from '../index.vue';
3
+ export declare const baseConfig: Meta<typeof MaTooltip>;
4
+ export declare const Template: StoryFn;
@@ -0,0 +1,13 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import MaTooltip from '../index.vue';
3
+ declare const meta: Meta<typeof MaTooltip>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaTooltip>;
6
+ export declare const Default: Story;
7
+ export declare const Primary: Story;
8
+ export declare const Secondary: Story;
9
+ export declare const WithIcon: Story;
10
+ export declare const OnlyTitle: Story;
11
+ export declare const Closable: Story;
12
+ export declare const ClickTrigger: Story;
13
+ export declare const DefaultVisible: Story;
@@ -0,0 +1,5 @@
1
+ export declare const TooltipPlacements: string[];
2
+ export declare const TooltipTypes: string[];
3
+ export declare const TooltipTriggerTypes: string[];
4
+ export declare type TooltipType = (typeof TooltipTypes)[number];
5
+ export declare type TooltipTriggerType = (typeof TooltipTriggerTypes)[number];
package/dist/index.d.ts CHANGED
@@ -3,4 +3,8 @@ export { default as MaButton } from './components/button/index.vue';
3
3
  export { default as MaTrackButton } from './components/track-button/index.vue';
4
4
  export { default as MaToggle } from './components/toggle/index.vue';
5
5
  export { default as MaSwitch } from './components/switch/index.vue';
6
+ export { default as MaTooltip } from './components/tooltip/index.vue';
7
+ export { default as MaForm } from './components/form/index.vue';
8
+ export { default as MaFormItem } from './components/form-item/index.vue';
9
+ export { default as MaInput } from './components/input/index.vue';
6
10
  export { default as MaIcon } from './components/icon/index.vue';