@mobileaction/action-kit 0.0.15 → 0.0.17

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,24 @@
1
+ import { openBlock as e, createElementBlock as o, createElementVNode as t } from "vue";
2
+ const n = {
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ fill: "none",
5
+ class: "p-s",
6
+ viewBox: "0 0 20 20"
7
+ }, r = /* @__PURE__ */ t("path", {
8
+ stroke: "#292D32",
9
+ "stroke-linecap": "round",
10
+ "stroke-linejoin": "round",
11
+ "stroke-width": "1.667",
12
+ d: "m16.667 5-9.166 9.167L3.334 10"
13
+ }, null, -1), s = [
14
+ r
15
+ ];
16
+ function c(l, d) {
17
+ return e(), o("svg", n, s);
18
+ }
19
+ const a = { render: c };
20
+ export {
21
+ a as default,
22
+ c as render
23
+ };
24
+ //# sourceMappingURL=check-eb9fb8f0.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-eb9fb8f0.mjs","sources":["../src/components/icon/icons/check.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 fill: \"none\",\n class: \"p-s\",\n viewBox: \"0 0 20 20\"\n}\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"path\", {\n stroke: \"#292D32\",\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n \"stroke-width\": \"1.667\",\n d: \"m16.667 5-9.166 9.167L3.334 10\"\n}, null, -1)\nconst _hoisted_3 = [\n _hoisted_2\n]\n\nexport function render(_ctx, _cache) {\n return (_openBlock(), _createElementBlock(\"svg\", _hoisted_1, _hoisted_3))\n}\nexport default { render: render }"],"names":["_hoisted_1","_hoisted_2","_createElementVNode","_hoisted_3","render","_ctx","_cache","_openBlock","_createElementBlock","check"],"mappings":";AAEA,MAAMA,IAAa;AAAA,EACjB,OAAO;AAAA,EACP,MAAM;AAAA,EACN,OAAO;AAAA,EACP,SAAS;AACX,GACMC,IAA0BC,gBAAAA,EAAoB,QAAQ;AAAA,EAC1D,QAAQ;AAAA,EACR,kBAAkB;AAAA,EAClB,mBAAmB;AAAA,EACnB,gBAAgB;AAAA,EAChB,GAAG;AACL,GAAG,MAAM,EAAE,GACLC,IAAa;AAAA,EACjBF;AACF;AAEO,SAASG,EAAOC,GAAMC,GAAQ;AACnC,SAAQC,EAAY,GAAEC,EAAoB,OAAOR,GAAYG,CAAU;AACzE;AACA,MAAeM,IAAA,EAAE,QAAQL,EAAM;"}
@@ -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,25 @@
1
+ import { VNode } from "vue";
2
+ declare const _default: import("vue").DefineComponent<{
3
+ menu: {
4
+ type: () => VNode;
5
+ required: true;
6
+ };
7
+ filter: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:filter"[], "update:filter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
+ menu: {
13
+ type: () => VNode;
14
+ required: true;
15
+ };
16
+ filter: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ }>> & {
21
+ "onUpdate:filter"?: ((...args: any[]) => any) | undefined;
22
+ }, {
23
+ filter: string;
24
+ }>;
25
+ export default _default;
@@ -1,5 +1,66 @@
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>>;
1
+ import { DefaultOptionType } from "ant-design-vue/lib/select";
2
+ import { SelectSize, SelectMode } from "./types";
3
+ export interface MaSelectProps {
4
+ allowClear?: boolean;
5
+ autoClearSearchValue?: boolean;
6
+ autofocus?: boolean;
7
+ clearIcon?: string;
8
+ defaultOpen?: boolean;
9
+ disabled?: boolean;
10
+ loading?: boolean;
11
+ menuItemSelectedIcon?: string;
12
+ mode?: SelectMode;
13
+ optionFilterProp?: string;
14
+ optionLabelProp?: string;
15
+ options?: DefaultOptionType[] | undefined;
16
+ placeholder?: string;
17
+ removeIcon?: string;
18
+ searchValue?: string;
19
+ showSearch?: boolean;
20
+ size?: SelectSize;
21
+ suffixIcon?: string;
22
+ prefixIcon?: string;
23
+ open?: boolean;
24
+ value?: string | number | string[] | number[];
25
+ }
26
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaSelectProps>, {
27
+ autoClearSearchValue: boolean;
28
+ open: boolean;
29
+ size: string;
30
+ value: string;
31
+ menuItemSelectedIcon: string;
32
+ }>, {}, 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<MaSelectProps>, {
33
+ autoClearSearchValue: boolean;
34
+ open: boolean;
35
+ size: string;
36
+ value: string;
37
+ menuItemSelectedIcon: string;
38
+ }>>> & {
39
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
40
+ }, {
41
+ size: string;
42
+ value: string | number | string[] | number[];
43
+ autoClearSearchValue: boolean;
44
+ menuItemSelectedIcon: string;
45
+ open: boolean;
46
+ }>, Record<NonNullable<string | number>, (_: {}) => any> & {
47
+ prefixIcon: (_: {}) => any;
48
+ }>;
2
49
  export default _default;
50
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
51
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
52
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
53
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
54
+ } : {
55
+ type: import('vue').PropType<T[K]>;
56
+ required: true;
57
+ };
58
+ };
59
+ declare type __VLS_WithDefaults<P, D> = {
60
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
61
+ default: D[K];
62
+ } : P[K];
63
+ };
3
64
  declare type __VLS_WithTemplateSlots<T, S> = T & {
4
65
  new (): {
5
66
  $slots: S;
@@ -0,0 +1,4 @@
1
+ import type { Meta, StoryFn } from '@storybook/vue3';
2
+ import MaSelect from '../index.vue';
3
+ export declare const baseConfig: Meta<typeof MaSelect>;
4
+ export declare const Template: StoryFn;
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryFn, StoryObj } from '@storybook/vue3';
2
+ import MaSelect from '../index.vue';
3
+ declare const meta: Meta<typeof MaSelect>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaSelect>;
6
+ export declare const Default: Story;
7
+ export declare const WithImage: StoryFn;
8
+ export declare const Disabled: Story;
9
+ export declare const Loading: Story;
@@ -0,0 +1,5 @@
1
+ import type { Meta, StoryFn } from '@storybook/vue3';
2
+ import MaSelect from '../index.vue';
3
+ declare const meta: Meta<typeof MaSelect>;
4
+ export default meta;
5
+ export declare const Group: StoryFn;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import MaSelect from '../index.vue';
3
+ declare const meta: Meta<typeof MaSelect>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaSelect>;
6
+ export declare const Multiple: Story;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import MaSelect from '../index.vue';
3
+ declare const meta: Meta<typeof MaSelect>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaSelect>;
6
+ export declare const Single: Story;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import MaSelect from '../index.vue';
3
+ declare const meta: Meta<typeof MaSelect>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaSelect>;
6
+ export declare const Tags: Story;
@@ -0,0 +1,4 @@
1
+ export declare const SelectSizes: string[];
2
+ export declare const SelectModes: string[];
3
+ export declare type SelectSize = (typeof SelectSizes)[number];
4
+ export declare type SelectMode = (typeof SelectModes)[number];
package/dist/index.d.ts CHANGED
@@ -4,4 +4,8 @@ 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
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';
7
10
  export { default as MaIcon } from './components/icon/index.vue';
11
+ export { default as MaSelect } from './components/select/index.vue';