@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.
Files changed (82) hide show
  1. package/dist/apple-logo-884566a5.js +2 -0
  2. package/dist/apple-logo-884566a5.js.map +1 -0
  3. package/dist/apple-logo-ff0ba2f9.mjs +21 -0
  4. package/dist/apple-logo-ff0ba2f9.mjs.map +1 -0
  5. package/dist/close-9ab883c5.js +2 -0
  6. package/dist/close-9ab883c5.js.map +1 -0
  7. package/dist/close-e94671b3.mjs +23 -0
  8. package/dist/close-e94671b3.mjs.map +1 -0
  9. package/dist/google-logo-5b2d4f3f.mjs +18 -0
  10. package/dist/google-logo-5b2d4f3f.mjs.map +1 -0
  11. package/dist/google-logo-b5d2152e.js +2 -0
  12. package/dist/google-logo-b5d2152e.js.map +1 -0
  13. package/dist/index.cjs.js +21 -21
  14. package/dist/index.cjs.js.map +1 -1
  15. package/dist/index.es.js +6992 -6380
  16. package/dist/index.es.js.map +1 -1
  17. package/dist/linkedin-logo-37aa9e19.js +2 -0
  18. package/dist/linkedin-logo-37aa9e19.js.map +1 -0
  19. package/dist/linkedin-logo-60afbdbd.mjs +31 -0
  20. package/dist/linkedin-logo-60afbdbd.mjs.map +1 -0
  21. package/dist/src/components/alert/index.vue.d.ts +42 -0
  22. package/dist/src/components/alert/stories/blue.stories.d.ts +8 -0
  23. package/dist/src/components/alert/stories/constants.d.ts +4 -0
  24. package/dist/src/components/alert/stories/dark.stories.d.ts +9 -0
  25. package/dist/src/components/alert/stories/green.stories.d.ts +8 -0
  26. package/dist/src/components/alert/stories/orange.stories.d.ts +8 -0
  27. package/dist/src/components/alert/stories/red.stories.d.ts +8 -0
  28. package/dist/src/components/alert/types.d.ts +11 -0
  29. package/dist/src/components/avatar/index.vue.d.ts +3 -2
  30. package/dist/src/components/badge/index.vue.d.ts +41 -0
  31. package/dist/src/components/badge/stories/blue.stories.d.ts +11 -0
  32. package/dist/src/components/badge/stories/constants.d.ts +4 -0
  33. package/dist/src/components/badge/stories/dark.stories.d.ts +11 -0
  34. package/dist/src/components/badge/stories/green.stories.d.ts +11 -0
  35. package/dist/src/components/badge/stories/orange.stories.d.ts +11 -0
  36. package/dist/src/components/badge/stories/purple.stories.d.ts +11 -0
  37. package/dist/src/components/badge/stories/red.stories.d.ts +11 -0
  38. package/dist/src/components/badge/types.d.ts +20 -0
  39. package/dist/src/components/button/index.vue.d.ts +44 -0
  40. package/dist/src/components/button/stories/constants.d.ts +4 -0
  41. package/dist/src/components/button/stories/danger.stories.d.ts +8 -0
  42. package/dist/src/components/button/stories/dark.stories.d.ts +8 -0
  43. package/dist/src/components/button/stories/icon.stories.d.ts +7 -0
  44. package/dist/src/components/button/stories/info.stories.d.ts +8 -0
  45. package/dist/src/components/button/stories/link.stories.d.ts +7 -0
  46. package/dist/src/components/button/stories/plain.stories.d.ts +8 -0
  47. package/dist/src/components/button/stories/success.stories.d.ts +8 -0
  48. package/dist/src/components/button/stories/warning.stories.d.ts +8 -0
  49. package/dist/src/components/button/types.d.ts +21 -0
  50. package/dist/src/components/checkbox/group.vue.d.ts +20 -0
  51. package/dist/src/components/checkbox/index.vue.d.ts +23 -0
  52. package/dist/src/components/checkbox/stories/constants.d.ts +5 -0
  53. package/dist/src/components/checkbox/stories/default.stories.d.ts +9 -0
  54. package/dist/src/components/icon/index.vue.d.ts +15 -0
  55. package/dist/src/components/icon/types.d.ts +1 -0
  56. package/dist/src/components/input/index.vue.d.ts +54 -0
  57. package/dist/src/components/input/stories/amount.stories.d.ts +11 -0
  58. package/dist/src/components/input/stories/constants.d.ts +4 -0
  59. package/dist/src/components/input/stories/credit-card.stories.d.ts +11 -0
  60. package/dist/src/components/input/stories/default.stories.d.ts +11 -0
  61. package/dist/src/components/input/stories/email.stories.d.ts +11 -0
  62. package/dist/src/components/input/stories/textarea.stories.d.ts +11 -0
  63. package/dist/src/components/input/stories/url.stories.d.ts +11 -0
  64. package/dist/src/components/input/stories/user-info.stories.d.ts +11 -0
  65. package/dist/src/components/input/types.d.ts +29 -4
  66. package/dist/src/components/radio/group.vue.d.ts +20 -0
  67. package/dist/src/components/radio/index.vue.d.ts +35 -0
  68. package/dist/src/components/radio/stories/constants.d.ts +4 -0
  69. package/dist/src/components/radio/stories/default.stories.d.ts +9 -0
  70. package/dist/src/components/radio/types.d.ts +4 -0
  71. package/dist/src/components/select/index.vue.d.ts +8 -2
  72. package/dist/src/components/social-button/constants.d.ts +5 -0
  73. package/dist/src/components/social-button/index.vue.d.ts +34 -0
  74. package/dist/src/components/social-button/stories/apple.stories.d.ts +8 -0
  75. package/dist/src/components/social-button/stories/constants.d.ts +4 -0
  76. package/dist/src/components/social-button/stories/google.stories.d.ts +8 -0
  77. package/dist/src/components/social-button/stories/linkedin.stories.d.ts +8 -0
  78. package/dist/src/components/social-button/types.d.ts +5 -0
  79. package/dist/src/index.d.ts +12 -0
  80. package/dist/style.css +1 -1
  81. package/dist/vite.config.d.ts +2 -0
  82. package/package.json +26 -19
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},o=e.createElementVNode("g",{"clip-path":"url(#a)"},[e.createElementVNode("path",{fill:"#0A66C2",d:"M22.228 0H1.772A1.772 1.772 0 0 0 0 1.772v20.456A1.772 1.772 0 0 0 1.772 24h20.456A1.772 1.772 0 0 0 24 22.228V1.772A1.772 1.772 0 0 0 22.228 0ZM7.153 20.445H3.545V8.983h3.608v11.462ZM5.347 7.395a2.072 2.072 0 1 1 2.083-2.07 2.042 2.042 0 0 1-2.083 2.07Zm15.106 13.06h-3.606v-6.262c0-1.846-.785-2.416-1.799-2.416-1.07 0-2.12.806-2.12 2.463v6.215H9.32V8.992h3.47v1.588h.047c.348-.705 1.568-1.91 3.43-1.91 2.013 0 4.188 1.195 4.188 4.695l-.002 7.09Z"})],-1),l=e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:"a"},[e.createElementVNode("path",{fill:"#fff",d:"M0 0h24v24H0z"})])],-1),c=[o,l];function t(d,i){return e.openBlock(),e.createElementBlock("svg",n,c)}const r={render:t};exports.default=r;exports.render=t;
2
+ //# sourceMappingURL=linkedin-logo-37aa9e19.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkedin-logo-37aa9e19.js","sources":["../src/components/icon/assets/linkedin-logo.svg"],"sourcesContent":["import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"24\",\n height: \"24\",\n fill: \"none\"\n}\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"g\", { \"clip-path\": \"url(#a)\" }, [\n /*#__PURE__*/_createElementVNode(\"path\", {\n fill: \"#0A66C2\",\n d: \"M22.228 0H1.772A1.772 1.772 0 0 0 0 1.772v20.456A1.772 1.772 0 0 0 1.772 24h20.456A1.772 1.772 0 0 0 24 22.228V1.772A1.772 1.772 0 0 0 22.228 0ZM7.153 20.445H3.545V8.983h3.608v11.462ZM5.347 7.395a2.072 2.072 0 1 1 2.083-2.07 2.042 2.042 0 0 1-2.083 2.07Zm15.106 13.06h-3.606v-6.262c0-1.846-.785-2.416-1.799-2.416-1.07 0-2.12.806-2.12 2.463v6.215H9.32V8.992h3.47v1.588h.047c.348-.705 1.568-1.91 3.43-1.91 2.013 0 4.188 1.195 4.188 4.695l-.002 7.09Z\"\n })\n], -1)\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"defs\", null, [\n /*#__PURE__*/_createElementVNode(\"clipPath\", { id: \"a\" }, [\n /*#__PURE__*/_createElementVNode(\"path\", {\n fill: \"#fff\",\n d: \"M0 0h24v24H0z\"\n })\n ])\n], -1)\nconst _hoisted_4 = [\n _hoisted_2,\n _hoisted_3\n]\n\nexport function render(_ctx, _cache) {\n return (_openBlock(), _createElementBlock(\"svg\", _hoisted_1, _hoisted_4))\n}\nexport default { render: render }"],"names":["_hoisted_1","_hoisted_2","_createElementVNode","_hoisted_3","_hoisted_4","render","_ctx","_cache","_openBlock","_createElementBlock","linkedinLogo"],"mappings":"uGAEMA,EAAa,CACjB,MAAO,6BACP,MAAO,KACP,OAAQ,KACR,KAAM,MACR,EACMC,EAA0BC,EAAAA,mBAAoB,IAAK,CAAE,YAAa,SAAS,EAAI,CACtEA,EAAAA,mBAAoB,OAAQ,CACvC,KAAM,UACN,EAAG,icACP,CAAG,CACH,EAAG,EAAE,EACCC,EAA0BD,EAAAA,mBAAoB,OAAQ,KAAM,CACnDA,EAAAA,mBAAoB,WAAY,CAAE,GAAI,GAAG,EAAI,CAC3CA,EAAAA,mBAAoB,OAAQ,CACvC,KAAM,OACN,EAAG,eACT,CAAK,CACL,CAAG,CACH,EAAG,EAAE,EACCE,EAAa,CACjBH,EACAE,CACF,EAEO,SAASE,EAAOC,EAAMC,EAAQ,CACnC,OAAQC,EAAAA,UAAY,EAAEC,EAAmB,mBAAC,MAAOT,EAAYI,CAAU,CACzE,CACA,MAAeM,EAAA,CAAE,OAAQL,CAAM"}
@@ -0,0 +1,31 @@
1
+ import { openBlock as e, createElementBlock as o, createElementVNode as t } from "vue";
2
+ const h = {
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ width: "24",
5
+ height: "24",
6
+ fill: "none"
7
+ }, l = /* @__PURE__ */ t("g", { "clip-path": "url(#a)" }, [
8
+ /* @__PURE__ */ t("path", {
9
+ fill: "#0A66C2",
10
+ d: "M22.228 0H1.772A1.772 1.772 0 0 0 0 1.772v20.456A1.772 1.772 0 0 0 1.772 24h20.456A1.772 1.772 0 0 0 24 22.228V1.772A1.772 1.772 0 0 0 22.228 0ZM7.153 20.445H3.545V8.983h3.608v11.462ZM5.347 7.395a2.072 2.072 0 1 1 2.083-2.07 2.042 2.042 0 0 1-2.083 2.07Zm15.106 13.06h-3.606v-6.262c0-1.846-.785-2.416-1.799-2.416-1.07 0-2.12.806-2.12 2.463v6.215H9.32V8.992h3.47v1.588h.047c.348-.705 1.568-1.91 3.43-1.91 2.013 0 4.188 1.195 4.188 4.695l-.002 7.09Z"
11
+ })
12
+ ], -1), n = /* @__PURE__ */ t("defs", null, [
13
+ /* @__PURE__ */ t("clipPath", { id: "a" }, [
14
+ /* @__PURE__ */ t("path", {
15
+ fill: "#fff",
16
+ d: "M0 0h24v24H0z"
17
+ })
18
+ ])
19
+ ], -1), c = [
20
+ l,
21
+ n
22
+ ];
23
+ function i(d, s) {
24
+ return e(), o("svg", h, c);
25
+ }
26
+ const a = { render: i };
27
+ export {
28
+ a as default,
29
+ i as render
30
+ };
31
+ //# sourceMappingURL=linkedin-logo-60afbdbd.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkedin-logo-60afbdbd.mjs","sources":["../src/components/icon/assets/linkedin-logo.svg"],"sourcesContent":["import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"24\",\n height: \"24\",\n fill: \"none\"\n}\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"g\", { \"clip-path\": \"url(#a)\" }, [\n /*#__PURE__*/_createElementVNode(\"path\", {\n fill: \"#0A66C2\",\n d: \"M22.228 0H1.772A1.772 1.772 0 0 0 0 1.772v20.456A1.772 1.772 0 0 0 1.772 24h20.456A1.772 1.772 0 0 0 24 22.228V1.772A1.772 1.772 0 0 0 22.228 0ZM7.153 20.445H3.545V8.983h3.608v11.462ZM5.347 7.395a2.072 2.072 0 1 1 2.083-2.07 2.042 2.042 0 0 1-2.083 2.07Zm15.106 13.06h-3.606v-6.262c0-1.846-.785-2.416-1.799-2.416-1.07 0-2.12.806-2.12 2.463v6.215H9.32V8.992h3.47v1.588h.047c.348-.705 1.568-1.91 3.43-1.91 2.013 0 4.188 1.195 4.188 4.695l-.002 7.09Z\"\n })\n], -1)\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"defs\", null, [\n /*#__PURE__*/_createElementVNode(\"clipPath\", { id: \"a\" }, [\n /*#__PURE__*/_createElementVNode(\"path\", {\n fill: \"#fff\",\n d: \"M0 0h24v24H0z\"\n })\n ])\n], -1)\nconst _hoisted_4 = [\n _hoisted_2,\n _hoisted_3\n]\n\nexport function render(_ctx, _cache) {\n return (_openBlock(), _createElementBlock(\"svg\", _hoisted_1, _hoisted_4))\n}\nexport default { render: render }"],"names":["_hoisted_1","_hoisted_2","_createElementVNode","_hoisted_3","_hoisted_4","render","_ctx","_cache","_openBlock","_createElementBlock","linkedinLogo"],"mappings":";AAEA,MAAMA,IAAa;AAAA,EACjB,OAAO;AAAA,EACP,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,MAAM;AACR,GACMC,IAA0BC,gBAAAA,EAAoB,KAAK,EAAE,aAAa,UAAS,GAAI;AAAA,EACtEA,gBAAAA,EAAoB,QAAQ;AAAA,IACvC,MAAM;AAAA,IACN,GAAG;AAAA,EACP,CAAG;AACH,GAAG,EAAE,GACCC,IAA0BD,gBAAAA,EAAoB,QAAQ,MAAM;AAAA,EACnDA,gBAAAA,EAAoB,YAAY,EAAE,IAAI,IAAG,GAAI;AAAA,IAC3CA,gBAAAA,EAAoB,QAAQ;AAAA,MACvC,MAAM;AAAA,MACN,GAAG;AAAA,IACT,CAAK;AAAA,EACL,CAAG;AACH,GAAG,EAAE,GACCE,IAAa;AAAA,EACjBH;AAAA,EACAE;AACF;AAEO,SAASE,EAAOC,GAAMC,GAAQ;AACnC,SAAQC,EAAY,GAAEC,EAAoB,OAAOT,GAAYI,CAAU;AACzE;AACA,MAAeM,IAAA,EAAE,QAAQL,EAAM;"}
@@ -0,0 +1,42 @@
1
+ import { type AlertProps } from 'ant-design-vue/lib/alert';
2
+ import { MaAlertPropVariant, MaAlertPropType } from "./types";
3
+ import 'ant-design-vue/lib/alert/style/css';
4
+ export interface MaAlertProps extends Omit<AlertProps, 'type' | 'message' | 'closable' | 'showIcon'> {
5
+ variant?: MaAlertPropVariant;
6
+ type?: MaAlertPropType;
7
+ message?: string;
8
+ closable?: boolean;
9
+ showIcon?: boolean;
10
+ }
11
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaAlertProps>, {
12
+ variant: MaAlertPropVariant;
13
+ type: MaAlertPropType;
14
+ }>, {}, 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<MaAlertProps>, {
15
+ variant: MaAlertPropVariant;
16
+ type: MaAlertPropType;
17
+ }>>>, {
18
+ type: MaAlertPropType;
19
+ variant: MaAlertPropVariant;
20
+ }>, Record<NonNullable<string | number>, (_: {}) => any> & {
21
+ default: (_: {}) => any;
22
+ }>;
23
+ export default _default;
24
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
26
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
27
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
28
+ } : {
29
+ type: import('vue').PropType<T[K]>;
30
+ required: true;
31
+ };
32
+ };
33
+ declare type __VLS_WithDefaults<P, D> = {
34
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
35
+ default: D[K];
36
+ } : P[K];
37
+ };
38
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import MaAlert from '../index.vue';
3
+ declare const meta: Meta<typeof MaAlert>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaAlert>;
6
+ export declare const Default: Story;
7
+ export declare const Primary: Story;
8
+ export declare const Secondary: Story;
@@ -0,0 +1,4 @@
1
+ import type { Meta, StoryFn } from '@storybook/vue3';
2
+ import MaAlert from '../index.vue';
3
+ export declare const baseConfig: Meta<typeof MaAlert>;
4
+ export declare const Template: StoryFn;
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaAlert from '../index.vue';
3
+ declare const meta: Meta<typeof MaAlert>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaAlert>;
6
+ export declare const Default: Story;
7
+ export declare const Primary: Story;
8
+ export declare const Secondary: Story;
9
+ export declare const WithIcon: Story;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaAlert from '../index.vue';
3
+ declare const meta: Meta<typeof MaAlert>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaAlert>;
6
+ export declare const Default: Story;
7
+ export declare const Primary: Story;
8
+ export declare const Secondary: Story;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaAlert from '../index.vue';
3
+ declare const meta: Meta<typeof MaAlert>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaAlert>;
6
+ export declare const Default: Story;
7
+ export declare const Primary: Story;
8
+ export declare const Secondary: Story;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaAlert from '../index.vue';
3
+ declare const meta: Meta<typeof MaAlert>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaAlert>;
6
+ export declare const Default: Story;
7
+ export declare const Primary: Story;
8
+ export declare const Secondary: Story;
@@ -0,0 +1,11 @@
1
+ export declare enum MaAlertPropVariant {
2
+ dark = "dark",
3
+ blue = "blue",
4
+ green = "green",
5
+ orange = "orange",
6
+ red = "red"
7
+ }
8
+ export declare enum MaAlertPropType {
9
+ primary = "primary",
10
+ secondary = "secondary"
11
+ }
@@ -1,2 +1,3 @@
1
- declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
- export default _sfc_main;
1
+ import 'ant-design-vue/lib/avatar/style/css';
2
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
3
+ export default _default;
@@ -0,0 +1,41 @@
1
+ import { MaBadgePropVariant, MaBadgePropType, MaBadgePropSize } from "./types";
2
+ export interface MaBadgeProps {
3
+ type?: MaBadgePropType;
4
+ variant?: MaBadgePropVariant;
5
+ size?: MaBadgePropSize;
6
+ }
7
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaBadgeProps>, {
8
+ type: MaBadgePropType;
9
+ variant: MaBadgePropVariant;
10
+ size: MaBadgePropSize;
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<MaBadgeProps>, {
12
+ type: MaBadgePropType;
13
+ variant: MaBadgePropVariant;
14
+ size: MaBadgePropSize;
15
+ }>>>, {
16
+ type: MaBadgePropType;
17
+ variant: MaBadgePropVariant;
18
+ size: MaBadgePropSize;
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,11 @@
1
+ import type { Meta, StoryFn, StoryObj } from '@storybook/vue3';
2
+ import MaBadge from '../index.vue';
3
+ declare const meta: Meta<typeof MaBadge>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaBadge>;
6
+ export declare const Default: Story;
7
+ export declare const Primary: Story;
8
+ export declare const Secondary: Story;
9
+ export declare const Line: Story;
10
+ export declare const Dashed: Story;
11
+ export declare const Icon: StoryFn;
@@ -0,0 +1,4 @@
1
+ import type { Meta, StoryFn } from '@storybook/vue3';
2
+ import MaBadge from '../index.vue';
3
+ export declare const baseConfig: Meta<typeof MaBadge>;
4
+ export declare const Template: StoryFn;
@@ -0,0 +1,11 @@
1
+ import type { Meta, StoryFn, StoryObj } from '@storybook/vue3';
2
+ import MaBadge from '../index.vue';
3
+ declare const meta: Meta<typeof MaBadge>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaBadge>;
6
+ export declare const Default: Story;
7
+ export declare const Primary: Story;
8
+ export declare const Secondary: Story;
9
+ export declare const Line: Story;
10
+ export declare const Dashed: Story;
11
+ export declare const Icon: StoryFn;
@@ -0,0 +1,11 @@
1
+ import type { Meta, StoryFn, StoryObj } from '@storybook/vue3';
2
+ import MaBadge from '../index.vue';
3
+ declare const meta: Meta<typeof MaBadge>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaBadge>;
6
+ export declare const Default: Story;
7
+ export declare const Primary: Story;
8
+ export declare const Secondary: Story;
9
+ export declare const Line: Story;
10
+ export declare const Dashed: Story;
11
+ export declare const Icon: StoryFn;
@@ -0,0 +1,11 @@
1
+ import type { Meta, StoryFn, StoryObj } from '@storybook/vue3';
2
+ import MaBadge from '../index.vue';
3
+ declare const meta: Meta<typeof MaBadge>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaBadge>;
6
+ export declare const Default: Story;
7
+ export declare const Primary: Story;
8
+ export declare const Secondary: Story;
9
+ export declare const Line: Story;
10
+ export declare const Dashed: Story;
11
+ export declare const Icon: StoryFn;
@@ -0,0 +1,11 @@
1
+ import type { Meta, StoryFn, StoryObj } from '@storybook/vue3';
2
+ import MaBadge from '../index.vue';
3
+ declare const meta: Meta<typeof MaBadge>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaBadge>;
6
+ export declare const Default: Story;
7
+ export declare const Primary: Story;
8
+ export declare const Secondary: Story;
9
+ export declare const Line: Story;
10
+ export declare const Dashed: Story;
11
+ export declare const Icon: StoryFn;
@@ -0,0 +1,11 @@
1
+ import type { Meta, StoryFn, StoryObj } from '@storybook/vue3';
2
+ import MaBadge from '../index.vue';
3
+ declare const meta: Meta<typeof MaBadge>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaBadge>;
6
+ export declare const Default: Story;
7
+ export declare const Primary: Story;
8
+ export declare const Secondary: Story;
9
+ export declare const Line: Story;
10
+ export declare const Dashed: Story;
11
+ export declare const Icon: StoryFn;
@@ -0,0 +1,20 @@
1
+ export declare enum MaBadgePropVariant {
2
+ dark = "dark",
3
+ blue = "blue",
4
+ green = "green",
5
+ orange = "orange",
6
+ red = "red",
7
+ purple = "purple"
8
+ }
9
+ export declare enum MaBadgePropType {
10
+ primary = "primary",
11
+ secondary = "secondary",
12
+ line = "line",
13
+ dashed = "dashed",
14
+ icon = "icon"
15
+ }
16
+ export declare enum MaBadgePropSize {
17
+ small = "small",
18
+ medium = "medium",
19
+ large = "large"
20
+ }
@@ -0,0 +1,44 @@
1
+ import 'ant-design-vue/lib/button/style/css';
2
+ import { ButtonType, ButtonSize, ButtonVariant } from './types';
3
+ export interface MaButtonProps {
4
+ type?: ButtonType;
5
+ variant?: ButtonVariant;
6
+ size?: ButtonSize;
7
+ rounded?: boolean;
8
+ href?: string;
9
+ disabled?: boolean;
10
+ loading?: boolean;
11
+ }
12
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaButtonProps>, {
13
+ type: ButtonType;
14
+ variant: ButtonVariant;
15
+ size: ButtonSize;
16
+ }>, {}, 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>, {
17
+ type: ButtonType;
18
+ variant: ButtonVariant;
19
+ size: ButtonSize;
20
+ }>>>, {
21
+ type: ButtonType;
22
+ variant: ButtonVariant;
23
+ size: ButtonSize;
24
+ }>, Record<NonNullable<string | number>, (_: {}) => any>>;
25
+ export default _default;
26
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
27
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
28
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
29
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
30
+ } : {
31
+ type: import('vue').PropType<T[K]>;
32
+ required: true;
33
+ };
34
+ };
35
+ declare type __VLS_WithDefaults<P, D> = {
36
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
37
+ default: D[K];
38
+ } : P[K];
39
+ };
40
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
41
+ new (): {
42
+ $slots: S;
43
+ };
44
+ };
@@ -0,0 +1,4 @@
1
+ import type { Meta, StoryFn } from '@storybook/vue3';
2
+ import MaButton from '../index.vue';
3
+ export declare const baseConfig: Meta<typeof MaButton>;
4
+ export declare const Template: StoryFn;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaButton from '../index.vue';
3
+ declare const meta: Meta<typeof MaButton>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaButton>;
6
+ export declare const Default: Story;
7
+ export declare const Primary: Story;
8
+ export declare const Secondary: Story;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaButton from '../index.vue';
3
+ declare const meta: Meta<typeof MaButton>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaButton>;
6
+ export declare const Default: Story;
7
+ export declare const Primary: Story;
8
+ export declare const Secondary: Story;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryFn } from '@storybook/vue3';
2
+ import MaButton from '../index.vue';
3
+ declare const meta: Meta<typeof MaButton>;
4
+ export default meta;
5
+ export declare const LeftIcon: StoryFn;
6
+ export declare const RightIcon: StoryFn;
7
+ export declare const IconOnly: StoryFn;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaButton from '../index.vue';
3
+ declare const meta: Meta<typeof MaButton>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaButton>;
6
+ export declare const Default: Story;
7
+ export declare const Primary: Story;
8
+ export declare const Secondary: Story;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaButton from '../index.vue';
3
+ declare const meta: Meta<typeof MaButton>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaButton>;
6
+ export declare const Default: Story;
7
+ export declare const Grey: Story;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaButton from '../index.vue';
3
+ declare const meta: Meta<typeof MaButton>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaButton>;
6
+ export declare const Default: Story;
7
+ export declare const Primary: Story;
8
+ export declare const Secondary: Story;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaButton from '../index.vue';
3
+ declare const meta: Meta<typeof MaButton>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaButton>;
6
+ export declare const Default: Story;
7
+ export declare const Primary: Story;
8
+ export declare const Secondary: Story;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaButton from '../index.vue';
3
+ declare const meta: Meta<typeof MaButton>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaButton>;
6
+ export declare const Default: Story;
7
+ export declare const Primary: Story;
8
+ export declare const Secondary: Story;
@@ -0,0 +1,21 @@
1
+ export declare enum ButtonType {
2
+ primary = "primary",
3
+ secondary = "secondary",
4
+ link = "link",
5
+ greylink = "grey-link"
6
+ }
7
+ export declare enum ButtonVariant {
8
+ dark = "dark",
9
+ plain = "plain",
10
+ info = "info",
11
+ success = "success",
12
+ warning = "warning",
13
+ danger = "danger"
14
+ }
15
+ export declare enum ButtonSize {
16
+ xsmall = "x-small",
17
+ small = "small",
18
+ medium = "medium",
19
+ large = "large",
20
+ xlarge = "x-large"
21
+ }
@@ -0,0 +1,20 @@
1
+ import type { CheckboxGroupProps } from 'ant-design-vue/lib/checkbox';
2
+ import 'ant-design-vue/lib/radio/style/css';
3
+ export interface MaCheckboxGroupProps extends CheckboxGroupProps {
4
+ }
5
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<MaCheckboxGroupProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MaCheckboxGroupProps>>>, {}>, 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,23 @@
1
+ import { type CheckboxProps } from 'ant-design-vue/lib/checkbox';
2
+ import 'ant-design-vue/lib/checkbox/style/css';
3
+ export interface MaCheckboxProps extends CheckboxProps {
4
+ hint?: string;
5
+ indeterminate?: boolean;
6
+ disabled?: boolean;
7
+ }
8
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<MaCheckboxProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MaCheckboxProps>>>, {}>, Record<NonNullable<string | number>, (_: {}) => any>>;
9
+ export default _default;
10
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
12
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
13
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
14
+ } : {
15
+ type: import('vue').PropType<T[K]>;
16
+ required: true;
17
+ };
18
+ };
19
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,5 @@
1
+ import type { Meta, StoryFn } from '@storybook/vue3';
2
+ import MaCheckbox from '../index.vue';
3
+ export declare const baseConfig: Meta<typeof MaCheckbox>;
4
+ export declare const Template: StoryFn;
5
+ export declare const GroupTemplate: StoryFn;
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaCheckbox from '../index.vue';
3
+ declare const meta: Meta<typeof MaCheckbox>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaCheckbox>;
6
+ export declare const Default: Story;
7
+ export declare const Indeterminate: Story;
8
+ export declare const ChekboxGroup: Story;
9
+ export declare const Disabled: Story;
@@ -0,0 +1,15 @@
1
+ import type { IconName } from './types';
2
+ export interface IconProps {
3
+ name: IconName;
4
+ }
5
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<IconProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IconProps>>>, {}>;
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
+ };
@@ -0,0 +1 @@
1
+ export declare type IconName = 'plus' | 'message-text' | 'master-card' | 'chevron-down' | 'apple-logo' | 'google-logo' | 'linkedin-logo' | 'close';
@@ -0,0 +1,54 @@
1
+ import 'ant-design-vue/lib/input/style/css';
2
+ import { MaInputType, MaInputSize, MaInputCurrency, MaInputCurrencySymbol } from './types';
3
+ export interface MaInputProps {
4
+ type?: MaInputType;
5
+ size?: MaInputSize;
6
+ title?: string;
7
+ hintText?: string;
8
+ hasError?: boolean;
9
+ placeholder?: string;
10
+ disabled?: boolean;
11
+ addonBefore?: string;
12
+ addonAfter?: string;
13
+ avatarUrl?: string;
14
+ modelValue?: string;
15
+ amountCurrency?: MaInputCurrency;
16
+ amountCurrencySymbol?: MaInputCurrencySymbol;
17
+ hint?: string;
18
+ }
19
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaInputProps>, {
20
+ type: MaInputType;
21
+ size: MaInputSize;
22
+ }>, {}, 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>, {
23
+ type: MaInputType;
24
+ size: MaInputSize;
25
+ }>>> & {
26
+ onChange?: ((...args: any[]) => any) | undefined;
27
+ "onCurrency-change"?: ((...args: any[]) => any) | undefined;
28
+ }, {
29
+ type: MaInputType;
30
+ size: MaInputSize;
31
+ }>, {
32
+ title: (_: {}) => any;
33
+ hint: (_: {}) => 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,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,4 @@
1
+ import type { Meta, StoryFn } from '@storybook/vue3';
2
+ import MaInput from '../index.vue';
3
+ export declare const baseConfig: Meta<typeof MaInput>;
4
+ export declare const Template: StoryFn;