@mobileaction/action-kit 1.1.21 → 1.1.23

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.
Files changed (108) hide show
  1. package/dist/action-kit.js +3 -3
  2. package/dist/action-kit.mjs +970 -618
  3. package/dist/add-app-c6cfc484.mjs +16 -0
  4. package/dist/add-app-ca2d1245.js +1 -0
  5. package/dist/box-empty-2e81a600.js +1 -0
  6. package/dist/box-empty-c7e5e478.mjs +39 -0
  7. package/dist/components/alert/index.vue.d.ts +6 -6
  8. package/dist/components/alert/types.d.ts +2 -2
  9. package/dist/components/animation/index.vue.d.ts +2 -2
  10. package/dist/components/animation/types.d.ts +1 -1
  11. package/dist/components/app-icon/index.vue.d.ts +7 -7
  12. package/dist/components/app-icon/types.d.ts +3 -1
  13. package/dist/components/badge/index.vue.d.ts +9 -9
  14. package/dist/components/badge/types.d.ts +4 -4
  15. package/dist/components/button/index.vue.d.ts +19 -19
  16. package/dist/components/button/types.d.ts +6 -6
  17. package/dist/components/dropdown/index.vue.d.ts +81 -0
  18. package/dist/components/dropdown/types.d.ts +4 -0
  19. package/dist/components/empty/index.vue.d.ts +51 -0
  20. package/dist/components/empty/types.d.ts +7 -0
  21. package/dist/components/form/types.d.ts +2 -0
  22. package/dist/components/icon/index.vue.d.ts +3 -3
  23. package/dist/components/icon/types.d.ts +5 -4
  24. package/dist/components/input/index.vue.d.ts +4 -4
  25. package/dist/components/input/types.d.ts +32 -24
  26. package/dist/components/modal/index.vue.d.ts +3 -3
  27. package/dist/components/modal/types.d.ts +1 -1
  28. package/dist/components/numeric-input/index.vue.d.ts +3 -3
  29. package/dist/components/numeric-input/types.d.ts +1 -1
  30. package/dist/components/radio/index.vue.d.ts +3 -3
  31. package/dist/components/radio/types.d.ts +1 -1
  32. package/dist/components/rate/components/star.vue.d.ts +4 -4
  33. package/dist/components/rate/index.vue.d.ts +6 -6
  34. package/dist/components/rate/types.d.ts +2 -2
  35. package/dist/components/select/index.vue.d.ts +5 -5
  36. package/dist/components/select/types.d.ts +2 -2
  37. package/dist/components/spin/index.vue.d.ts +45 -0
  38. package/dist/components/spin/types.d.ts +4 -0
  39. package/dist/components/switch/index.vue.d.ts +3 -3
  40. package/dist/components/switch/types.d.ts +1 -1
  41. package/dist/components/toggle/index.vue.d.ts +3 -3
  42. package/dist/components/toggle/types.d.ts +1 -1
  43. package/dist/components/tooltip/index.vue.d.ts +7 -7
  44. package/dist/components/tooltip/types.d.ts +3 -3
  45. package/dist/components/track-button/index.vue.d.ts +6 -6
  46. package/dist/components/track-button/types.d.ts +2 -2
  47. package/dist/empty-table-41155dd6.mjs +16 -0
  48. package/dist/empty-table-855edce8.js +1 -0
  49. package/dist/index.d.ts +23 -0
  50. package/dist/selection-08a9c952.mjs +16 -0
  51. package/dist/selection-f5ae8ebf.js +1 -0
  52. package/dist/spin-dots-25d015b7.mjs +16 -0
  53. package/dist/spin-dots-388f853c.js +1 -0
  54. package/dist/spin-round-23788f05.js +1 -0
  55. package/dist/spin-round-9db617b7.mjs +26 -0
  56. package/dist/spin-three-circles-00b10e29.js +1 -0
  57. package/dist/spin-three-circles-13ae8650.mjs +33 -0
  58. package/dist/spin-three-dots-7cdf047c.js +1 -0
  59. package/dist/spin-three-dots-c116245e.mjs +36 -0
  60. package/dist/src/components/alert/index.vue.d.ts +2 -2
  61. package/dist/src/components/alert/types.d.ts +2 -2
  62. package/dist/src/components/animation/types.d.ts +1 -1
  63. package/dist/src/components/app-icon/index.vue.d.ts +3 -3
  64. package/dist/src/components/app-icon/types.d.ts +3 -1
  65. package/dist/src/components/badge/index.vue.d.ts +3 -3
  66. package/dist/src/components/badge/types.d.ts +4 -4
  67. package/dist/src/components/button/index.vue.d.ts +5 -5
  68. package/dist/src/components/button/types.d.ts +6 -6
  69. package/dist/src/components/dropdown/index.vue.d.ts +54 -0
  70. package/dist/src/components/dropdown/stories/constants.d.ts +4 -0
  71. package/dist/src/components/dropdown/stories/default.stories.d.ts +6 -0
  72. package/dist/src/components/dropdown/types.d.ts +4 -0
  73. package/dist/src/components/empty/index.vue.d.ts +39 -0
  74. package/dist/src/components/empty/stories/constants.d.ts +4 -0
  75. package/dist/src/components/empty/stories/default.stories.d.ts +6 -0
  76. package/dist/src/components/empty/types.d.ts +7 -0
  77. package/dist/src/components/form/types.d.ts +1 -1
  78. package/dist/src/components/icon/index.vue.d.ts +1 -1
  79. package/dist/src/components/icon/types.d.ts +5 -4
  80. package/dist/src/components/input/index.vue.d.ts +4 -4
  81. package/dist/src/components/input/types.d.ts +32 -24
  82. package/dist/src/components/modal/index.vue.d.ts +1 -1
  83. package/dist/src/components/modal/types.d.ts +1 -1
  84. package/dist/src/components/numeric-input/index.vue.d.ts +1 -1
  85. package/dist/src/components/numeric-input/types.d.ts +1 -1
  86. package/dist/src/components/radio/index.vue.d.ts +1 -1
  87. package/dist/src/components/radio/types.d.ts +1 -1
  88. package/dist/src/components/rate/components/star.vue.d.ts +2 -2
  89. package/dist/src/components/rate/index.vue.d.ts +2 -2
  90. package/dist/src/components/rate/types.d.ts +2 -2
  91. package/dist/src/components/select/index.vue.d.ts +1 -1
  92. package/dist/src/components/select/types.d.ts +2 -2
  93. package/dist/src/components/spin/index.vue.d.ts +41 -0
  94. package/dist/src/components/spin/stories/constants.d.ts +5 -0
  95. package/dist/src/components/spin/stories/container.stories.d.ts +6 -0
  96. package/dist/src/components/spin/stories/default.stories.d.ts +6 -0
  97. package/dist/src/components/spin/types.d.ts +4 -0
  98. package/dist/src/components/switch/index.vue.d.ts +1 -1
  99. package/dist/src/components/switch/types.d.ts +1 -1
  100. package/dist/src/components/toggle/index.vue.d.ts +1 -1
  101. package/dist/src/components/toggle/types.d.ts +1 -1
  102. package/dist/src/components/tooltip/index.vue.d.ts +3 -3
  103. package/dist/src/components/tooltip/types.d.ts +3 -3
  104. package/dist/src/components/track-button/index.vue.d.ts +2 -2
  105. package/dist/src/components/track-button/types.d.ts +2 -2
  106. package/dist/src/index.d.ts +23 -0
  107. package/dist/style.css +1 -1
  108. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
- import { AppIconSize } from "@/components/app-icon/types";
1
+ import { AppIconPlatform, AppIconSize } from "@/components/app-icon/types";
2
2
  export interface MaAppIconProps {
3
3
  appIcon: string;
4
4
  appName?: string;
5
5
  appDescription?: string;
6
6
  closable?: boolean;
7
- platform?: string;
7
+ platform?: AppIconPlatform;
8
8
  rounded?: boolean;
9
9
  size?: AppIconSize;
10
10
  }
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
19
19
  }>>> & {
20
20
  onClose?: (...args: any[]) => any;
21
21
  }, {
22
- size: string;
22
+ size: "small" | "x-small" | "medium" | "large" | "x-large";
23
23
  closable: boolean;
24
24
  rounded: boolean;
25
25
  }>;
@@ -1,2 +1,4 @@
1
- export declare const AppIconSizes: string[];
1
+ export declare const AppIconSizes: readonly ["x-small", "small", "medium", "large", "x-large"];
2
+ export declare const AppIconPlatforms: readonly ["play", "ios"];
2
3
  export declare type AppIconSize = (typeof AppIconSizes)[number];
4
+ export declare type AppIconPlatform = (typeof AppIconPlatforms)[number];
@@ -17,9 +17,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
17
17
  size: string;
18
18
  iconAlignment: string;
19
19
  }>>>, {
20
- size: string;
21
- type: string;
22
- variant: string;
20
+ size: "small" | "medium" | "large";
21
+ type: "primary" | "secondary" | "icon" | "line" | "dashed";
22
+ variant: "dark" | "blue" | "green" | "orange" | "red" | "purple";
23
23
  iconAlignment: string;
24
24
  }>, {
25
25
  default: (_: {}) => any;
@@ -1,7 +1,7 @@
1
- export declare const MaBadgePropVariants: string[];
2
- export declare const MaBadgePropTypes: string[];
3
- export declare const MaBadgePropSizes: string[];
4
- export declare const MaBadgePropIconAlignments: string[];
1
+ export declare const MaBadgePropVariants: readonly ["dark", "blue", "green", "orange", "red", "purple"];
2
+ export declare const MaBadgePropTypes: readonly ["primary", "secondary", "line", "dashed", "icon"];
3
+ export declare const MaBadgePropSizes: readonly ["small", "medium", "large"];
4
+ export declare const MaBadgePropIconAlignments: readonly ["left", "right"];
5
5
  export declare type MaBadgePropVariant = (typeof MaBadgePropVariants)[number];
6
6
  export declare type MaBadgePropType = (typeof MaBadgePropTypes)[number];
7
7
  export declare type MaBadgePropSize = (typeof MaBadgePropSizes)[number];
@@ -9,7 +9,7 @@ export interface MaButtonProps {
9
9
  loading?: boolean;
10
10
  shape?: ButtonShape;
11
11
  icon?: string;
12
- IconAlignment?: IconAlignment;
12
+ iconAlignment?: IconAlignment;
13
13
  }
14
14
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaButtonProps>, {
15
15
  type: string;
@@ -22,10 +22,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
22
22
  size: string;
23
23
  shape: string;
24
24
  }>>>, {
25
- size: string;
26
- type: string;
27
- variant: string;
28
- shape: string;
25
+ size: "small" | "large" | "x-large" | "middle" | "2x-large";
26
+ type: "primary" | "secondary" | "link" | "grey-link" | "social";
27
+ variant: "dark" | "success" | "warning" | "info" | "plain" | "danger";
28
+ shape: "default" | "round";
29
29
  }>, Record<NonNullable<string | number>, (_: {}) => any>>;
30
30
  export default _default;
31
31
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,9 +1,9 @@
1
- export declare const ButtonTypes: string[];
2
- export declare const ButtonVariants: string[];
3
- export declare const ButtonSizes: string[];
4
- export declare const ButtonShapes: string[];
5
- export declare const ButtonTargets: string[];
6
- export declare const ButtonIconAlignMents: string[];
1
+ export declare const ButtonTypes: readonly ["primary", "secondary", "link", "grey-link", "social"];
2
+ export declare const ButtonVariants: readonly ["dark", "plain", "info", "success", "warning", "danger"];
3
+ export declare const ButtonSizes: readonly ["small", "middle", "large", "x-large", "2x-large"];
4
+ export declare const ButtonShapes: readonly ["default", "round"];
5
+ export declare const ButtonTargets: readonly ["_blank", "_self", "_top", "_parent"];
6
+ export declare const ButtonIconAlignMents: readonly ["left", "right"];
7
7
  export declare type ButtonTarget = (typeof ButtonTargets)[number];
8
8
  export declare type ButtonVariant = (typeof ButtonVariants)[number];
9
9
  export declare type ButtonType = (typeof ButtonTypes)[number];
@@ -0,0 +1,54 @@
1
+ import { MaDropdownPlacement, MaDropdownTrigger } from "./types";
2
+ export interface MaDropdownProps {
3
+ destroyPopupOnHide?: boolean;
4
+ disabled?: boolean;
5
+ placement?: MaDropdownPlacement;
6
+ trigger?: MaDropdownTrigger[];
7
+ visible?: boolean;
8
+ overlayClassName?: string;
9
+ }
10
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaDropdownProps>, {
11
+ destroyPopupOnHide: boolean;
12
+ disabled: boolean;
13
+ placement: string;
14
+ trigger: () => string[];
15
+ visible: boolean;
16
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "visibleChange")[], "update:visible" | "visibleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaDropdownProps>, {
17
+ destroyPopupOnHide: boolean;
18
+ disabled: boolean;
19
+ placement: string;
20
+ trigger: () => string[];
21
+ visible: boolean;
22
+ }>>> & {
23
+ "onUpdate:visible"?: (...args: any[]) => any;
24
+ onVisibleChange?: (...args: any[]) => any;
25
+ }, {
26
+ disabled: boolean;
27
+ destroyPopupOnHide: boolean;
28
+ placement: "bottomLeft" | "bottom" | "bottomRight" | "topLeft" | "top" | "topRight";
29
+ trigger: ("click" | "hover" | "contextmenu")[];
30
+ visible: boolean;
31
+ }>, {
32
+ default: (_: {}) => any;
33
+ overlay: (_: {}) => any;
34
+ }>;
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,4 @@
1
+ import type { Meta, StoryFn } from '@storybook/vue3';
2
+ import MaDropdown from '../index.vue';
3
+ export declare const baseConfig: Meta<typeof MaDropdown>;
4
+ export declare const Template: StoryFn;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaDropdown from '../index.vue';
3
+ declare const meta: Meta<typeof MaDropdown>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaDropdown>;
6
+ export declare const Default: Story;
@@ -0,0 +1,4 @@
1
+ export declare const MaDropdownPlacements: readonly ["bottomLeft", "bottom", "bottomRight", "topLeft", "top", "topRight"];
2
+ export declare const MaDropdownTriggers: readonly ["click", "hover", "contextmenu"];
3
+ export declare type MaDropdownPlacement = (typeof MaDropdownPlacements)[number];
4
+ export declare type MaDropdownTrigger = (typeof MaDropdownTriggers)[number];
@@ -0,0 +1,39 @@
1
+ import { MaEmptySize, MaEmptyVariant } from './types';
2
+ export interface MaRateProps {
3
+ size?: MaEmptySize;
4
+ variant?: MaEmptyVariant;
5
+ title?: string;
6
+ description?: string;
7
+ }
8
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaRateProps>, {
9
+ size: string;
10
+ variant: string;
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<MaRateProps>, {
12
+ size: string;
13
+ variant: string;
14
+ }>>>, {
15
+ size: "small" | "medium" | "large";
16
+ variant: "table" | "general" | "add-app" | "selection";
17
+ }>, {
18
+ default: (_: {}) => any;
19
+ }>;
20
+ export default _default;
21
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
23
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
24
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
25
+ } : {
26
+ type: import('vue').PropType<T[K]>;
27
+ required: true;
28
+ };
29
+ };
30
+ declare type __VLS_WithDefaults<P, D> = {
31
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
32
+ default: D[K];
33
+ } : P[K];
34
+ };
35
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
36
+ new (): {
37
+ $slots: S;
38
+ };
39
+ };
@@ -0,0 +1,4 @@
1
+ import type { Meta, StoryFn } from '@storybook/vue3';
2
+ import MaEmpty from '../index.vue';
3
+ export declare const baseConfig: Meta<typeof MaEmpty>;
4
+ export declare const Template: StoryFn;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaEmpty from '../index.vue';
3
+ declare const meta: Meta<typeof MaEmpty>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaEmpty>;
6
+ export declare const Default: Story;
@@ -0,0 +1,7 @@
1
+ export declare const MaEmptySizes: readonly ["small", "medium", "large"];
2
+ export declare const MaEmptyVariants: readonly ["general", "add-app", "table", "selection"];
3
+ export declare const MaEmptyIcons: {
4
+ [K in MaEmptyVariant]: string;
5
+ };
6
+ export declare type MaEmptySize = (typeof MaEmptySizes)[number];
7
+ export declare type MaEmptyVariant = (typeof MaEmptyVariants)[number];
@@ -1,2 +1,2 @@
1
- export declare const MaFormLayouts: string[];
1
+ export declare const MaFormLayouts: readonly ["horizontal", "vertical", "inline"];
2
2
  export declare type MaFormLayout = (typeof MaFormLayouts)[number];
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
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<MaIconProps>, {
10
10
  size: string;
11
11
  }>>>, {
12
- size: string;
12
+ size: "xs" | "sm" | "md" | "lg" | "xl";
13
13
  }>;
14
14
  export default _default;
15
15
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,5 +1,6 @@
1
- export declare const MaIconSizes: string[];
2
- export declare type IconSize = (typeof MaIconSizes)[number];
3
- export declare const MaIconSizeClassNames: {
4
- [key: IconSize]: string;
1
+ export declare const MaIconSizes: readonly ["xs", "sm", "md", "lg", "xl"];
2
+ export declare type IconSize = typeof MaIconSizes[number];
3
+ export declare type IconSizeClassNames = {
4
+ [K in IconSize]: string;
5
5
  };
6
+ export declare const MaIconSizeClassNames: IconSizeClassNames;
@@ -19,11 +19,11 @@ export interface MaInputProps {
19
19
  inputClass?: string;
20
20
  }
21
21
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaInputProps>, {
22
- type: MaInputType;
23
- size: MaInputSize;
22
+ type: "text";
23
+ size: "small";
24
24
  }>, {}, 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>, {
25
- type: MaInputType;
26
- size: MaInputSize;
25
+ type: "text";
26
+ size: "small";
27
27
  }>>> & {
28
28
  onChange?: (...args: any[]) => any;
29
29
  "onUpdate:value"?: (...args: any[]) => any;
@@ -1,26 +1,34 @@
1
1
  import type { SelectProps } from 'ant-design-vue';
2
- export declare enum MaInputType {
3
- text = "text",
4
- password = "password",
5
- textarea = "textarea",
6
- number = "number",
7
- email = "email",
8
- url = "url",
9
- tel = "tel",
10
- amount = "amount",
11
- creditCard = "creditCard",
12
- userInfo = "userInfo"
13
- }
14
- export declare enum MaInputSize {
15
- small = "small",
16
- medium = "medium",
17
- large = "large"
18
- }
19
- export declare enum MaInputCurrency {
20
- usd = "USD",
21
- eur = "EUR",
22
- gbp = "GBP",
23
- jpy = "JPY"
24
- }
25
- export declare const currencySymbols: any;
2
+ export declare const MaInputType: {
3
+ readonly text: "text";
4
+ readonly password: "password";
5
+ readonly textarea: "textarea";
6
+ readonly number: "number";
7
+ readonly email: "email";
8
+ readonly url: "url";
9
+ readonly tel: "tel";
10
+ readonly amount: "amount";
11
+ readonly creditCard: "creditCard";
12
+ readonly userInfo: "userInfo";
13
+ };
14
+ export declare type MaInputType = typeof MaInputType[keyof typeof MaInputType];
15
+ export declare const MaInputSize: {
16
+ readonly small: "small";
17
+ readonly medium: "medium";
18
+ readonly large: "large";
19
+ };
20
+ export declare type MaInputSize = typeof MaInputSize[keyof typeof MaInputSize];
21
+ export declare const MaInputCurrency: {
22
+ readonly usd: "USD";
23
+ readonly eur: "EUR";
24
+ readonly gbp: "GBP";
25
+ readonly jpy: "JPY";
26
+ };
27
+ export declare type MaInputCurrency = typeof MaInputCurrency[keyof typeof MaInputCurrency];
28
+ export declare const currencySymbols: {
29
+ readonly USD: "$";
30
+ readonly EUR: "€";
31
+ readonly GBP: "£";
32
+ readonly JPY: "¥";
33
+ };
26
34
  export declare const currencyOptions: SelectProps['options'];
@@ -29,9 +29,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
29
29
  maskClosable: boolean;
30
30
  width: number;
31
31
  }>>> & {
32
+ "onUpdate:visible"?: (...args: any[]) => any;
32
33
  onOk?: (...args: any[]) => any;
33
34
  onCancel?: (...args: any[]) => any;
34
- "onUpdate:visible"?: (...args: any[]) => any;
35
35
  }, {
36
36
  mask: boolean;
37
37
  closable: boolean;
@@ -1,4 +1,4 @@
1
- export declare const MaModalTypes: string[];
1
+ export declare const MaModalTypes: readonly ["info", "success", "confirm", "warning", "error"];
2
2
  export declare const MaModalTypeIcon: {
3
3
  [K in MaModalPropType]: string;
4
4
  };
@@ -20,7 +20,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
20
20
  }>>> & {
21
21
  "onUpdate:value"?: (...args: any[]) => any;
22
22
  }, {
23
- size: string;
23
+ size: "small" | "medium" | "large";
24
24
  length: number;
25
25
  value: string;
26
26
  placeholderStatus: boolean;
@@ -1,2 +1,2 @@
1
- export declare const NumericInputSizes: string[];
1
+ export declare const NumericInputSizes: readonly ["small", "medium", "large"];
2
2
  export declare type NumericInputSize = (typeof NumericInputSizes)[number];
@@ -10,7 +10,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
10
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<MaRadioProps>, {
11
11
  type: string;
12
12
  }>>>, {
13
- type: string;
13
+ type: "button" | "check";
14
14
  }>, Record<NonNullable<string | number>, (_: {}) => any>>;
15
15
  export default _default;
16
16
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,2 +1,2 @@
1
- export declare const MaRadioTypes: string[];
1
+ export declare const MaRadioTypes: readonly ["button", "check"];
2
2
  export declare type MaRadioType = (typeof MaRadioTypes)[number];
@@ -1,8 +1,8 @@
1
- import { MaRateSize } from "../types";
1
+ import { IconSize } from "@/components/icon/types";
2
2
  export interface MaRateStarProps {
3
3
  value: number;
4
4
  starRate: number;
5
- iconSize: MaRateSize;
5
+ iconSize: IconSize;
6
6
  }
7
7
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<MaRateStarProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MaRateStarProps>>>, {}>;
8
8
  export default _default;
@@ -20,8 +20,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
20
20
  onChange?: (...args: any[]) => any;
21
21
  "onUpdate:value"?: (...args: any[]) => any;
22
22
  }, {
23
- size: string;
24
- color: string;
23
+ size: "small" | "medium" | "large";
24
+ color: "green" | "orange" | "red";
25
25
  tabIndex: number;
26
26
  }>;
27
27
  export default _default;
@@ -1,4 +1,4 @@
1
- export declare const MaRateSizes: string[];
2
- export declare const MaRateColors: string[];
1
+ export declare const MaRateSizes: readonly ["small", "medium", "large"];
2
+ export declare const MaRateColors: readonly ["orange", "green", "red"];
3
3
  export declare type MaRateSize = (typeof MaRateSizes)[number];
4
4
  export declare type MaRateColor = (typeof MaRateColors)[number];
@@ -43,7 +43,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
43
43
  }>>> & {
44
44
  "onUpdate:value"?: (...args: any[]) => any;
45
45
  }, {
46
- size: string;
46
+ size: "default" | "small" | "large";
47
47
  value: string | number | string[] | number[];
48
48
  open: boolean;
49
49
  menuItemSelectedIcon: string;
@@ -1,4 +1,4 @@
1
- export declare const SelectSizes: string[];
2
- export declare const SelectModes: string[];
1
+ export declare const SelectSizes: readonly ["default", "large", "small"];
2
+ export declare const SelectModes: readonly ["multiple", "tags"];
3
3
  export declare type SelectSize = (typeof SelectSizes)[number];
4
4
  export declare type SelectMode = (typeof SelectModes)[number];
@@ -0,0 +1,41 @@
1
+ import { MaSpinColor, MaSpinType } from './types';
2
+ export interface MaSpinProps {
3
+ type?: MaSpinType;
4
+ color?: MaSpinColor;
5
+ spinning?: boolean;
6
+ }
7
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaSpinProps>, {
8
+ type: string;
9
+ color: string;
10
+ spinning: boolean;
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<MaSpinProps>, {
12
+ type: string;
13
+ color: string;
14
+ spinning: boolean;
15
+ }>>>, {
16
+ type: "round" | "dots" | "three-circles" | "three-dots";
17
+ color: "dark" | "blue" | "orange" | "jordy" | "grey";
18
+ spinning: boolean;
19
+ }>, {
20
+ default: (_: {}) => any;
21
+ }>;
22
+ export default _default;
23
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
24
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
25
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
26
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
27
+ } : {
28
+ type: import('vue').PropType<T[K]>;
29
+ required: true;
30
+ };
31
+ };
32
+ declare type __VLS_WithDefaults<P, D> = {
33
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
34
+ default: D[K];
35
+ } : P[K];
36
+ };
37
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -0,0 +1,5 @@
1
+ import type { Meta, StoryFn } from '@storybook/vue3';
2
+ import MaSpin from '../index.vue';
3
+ export declare const baseConfig: Meta<typeof MaSpin>;
4
+ export declare const Template: StoryFn;
5
+ export declare const TemplateContainer: StoryFn;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaSpin from '../index.vue';
3
+ declare const meta: Meta<typeof MaSpin>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaSpin>;
6
+ export declare const Container: Story;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaSpin from '../index.vue';
3
+ declare const meta: Meta<typeof MaSpin>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaSpin>;
6
+ export declare const Default: Story;
@@ -0,0 +1,4 @@
1
+ export declare const MaSpinTypes: readonly ["round", "dots", "three-circles", "three-dots"];
2
+ export declare const MaSpinColors: readonly ["dark", "jordy", "blue", "orange", "grey"];
3
+ export declare type MaSpinType = (typeof MaSpinTypes)[number];
4
+ export declare type MaSpinColor = (typeof MaSpinColors)[number];
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
16
16
  onChange?: (...args: any[]) => any;
17
17
  onClick?: (...args: any[]) => any;
18
18
  }, {
19
- type: string;
19
+ type: "primary" | "secondary";
20
20
  }>;
21
21
  export default _default;
22
22
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,2 +1,2 @@
1
- export declare const SwitchTypes: string[];
1
+ export declare const SwitchTypes: readonly ["primary", "secondary"];
2
2
  export declare type SwitchType = (typeof SwitchTypes)[number];
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
17
17
  onChange?: (...args: any[]) => any;
18
18
  onClick?: (...args: any[]) => any;
19
19
  }, {
20
- size: string;
20
+ size: "default" | "small" | "large";
21
21
  }>;
22
22
  export default _default;
23
23
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,2 +1,2 @@
1
- export declare const ToggleSizes: string[];
1
+ export declare const ToggleSizes: readonly ["small", "default", "large"];
2
2
  export declare type ToggleSize = (typeof ToggleSizes)[number];
@@ -3,7 +3,7 @@ import { type TooltipPlacement } from "ant-design-vue/lib/tooltip/index";
3
3
  export interface MaTooltipProps {
4
4
  placement?: TooltipPlacement;
5
5
  type?: TooltipType;
6
- icon?: TooltipType;
6
+ icon?: string;
7
7
  title?: string;
8
8
  description?: string;
9
9
  trigger?: TooltipTriggerType;
@@ -21,9 +21,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
21
21
  trigger: string;
22
22
  defaultVisible: boolean;
23
23
  }>>>, {
24
- type: string;
24
+ type: "primary" | "secondary";
25
25
  placement: TooltipPlacement;
26
- trigger: string;
26
+ trigger: "click" | "hover" | "contextmenu" | "focus";
27
27
  defaultVisible: boolean;
28
28
  }>, {
29
29
  default: (_: {}) => any;
@@ -1,5 +1,5 @@
1
- export declare const TooltipPlacements: string[];
2
- export declare const TooltipTypes: string[];
3
- export declare const TooltipTriggerTypes: string[];
1
+ export declare const TooltipPlacements: readonly ["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"];
2
+ export declare const TooltipTypes: readonly ["primary", "secondary"];
3
+ export declare const TooltipTriggerTypes: readonly ["hover", "focus", "click", "contextmenu"];
4
4
  export declare type TooltipType = (typeof TooltipTypes)[number];
5
5
  export declare type TooltipTriggerType = (typeof TooltipTriggerTypes)[number];
@@ -15,8 +15,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
15
15
  variant: string;
16
16
  size: string;
17
17
  }>>>, {
18
- size: string;
19
- variant: string;
18
+ size: "sm" | "md" | "lg";
19
+ variant: "default";
20
20
  }>, Record<NonNullable<string | number>, (_: {}) => any>>;
21
21
  export default _default;
22
22
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,4 +1,4 @@
1
- export declare const TrackButtonVariants: string[];
2
- export declare const TrackButtonSizes: string[];
1
+ export declare const TrackButtonVariants: readonly ["default"];
2
+ export declare const TrackButtonSizes: readonly ["sm", "md", "lg"];
3
3
  export declare type TrackButtonVariant = (typeof TrackButtonVariants)[number];
4
4
  export declare type TrackButtonSize = (typeof TrackButtonSizes)[number];