@mobileaction/action-kit 0.0.17 → 0.0.19

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.
@@ -1,9 +1,9 @@
1
1
  import { type CheckboxGroupProps } from 'ant-design-vue';
2
2
  export interface MaCheckboxGroupProps extends CheckboxGroupProps {
3
+ hint?: string;
4
+ disabled?: boolean;
3
5
  }
4
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<MaCheckboxGroupProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MaCheckboxGroupProps>>> & {
5
- onClick?: ((...args: any[]) => any) | undefined;
6
- }, {}>, Record<NonNullable<string | number>, (_: {}) => any>>;
6
+ 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>>;
7
7
  export default _default;
8
8
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
9
  declare type __VLS_TypePropsToRuntimeProps<T> = {
@@ -4,9 +4,13 @@ export interface MaCheckboxProps extends CheckboxProps {
4
4
  indeterminate?: boolean;
5
5
  disabled?: boolean;
6
6
  }
7
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<MaCheckboxProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MaCheckboxProps>>> & {
8
- onClick?: ((...args: any[]) => any) | undefined;
9
- }, {}>, Record<NonNullable<string | number>, (_: {}) => any>>;
7
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaCheckboxProps>, {
8
+ indeterminate: undefined;
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: undefined;
11
+ }>>>, {
12
+ indeterminate: boolean;
13
+ }>, Record<NonNullable<string | number>, (_: {}) => any>>;
10
14
  export default _default;
11
15
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
16
  declare type __VLS_TypePropsToRuntimeProps<T> = {
@@ -17,6 +21,11 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
17
21
  required: true;
18
22
  };
19
23
  };
24
+ declare type __VLS_WithDefaults<P, D> = {
25
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
26
+ default: D[K];
27
+ } : P[K];
28
+ };
20
29
  declare type __VLS_WithTemplateSlots<T, S> = T & {
21
30
  new (): {
22
31
  $slots: S;
@@ -3,3 +3,4 @@ import MaCheckbox from '../index.vue';
3
3
  export declare const baseConfig: Meta<typeof MaCheckbox>;
4
4
  export declare const Template: StoryFn;
5
5
  export declare const GroupTemplate: StoryFn;
6
+ export declare const IndeterminedTemplate: StoryFn;
@@ -4,6 +4,4 @@ declare const meta: Meta<typeof MaCheckbox>;
4
4
  export default meta;
5
5
  declare type Story = StoryObj<typeof MaCheckbox>;
6
6
  export declare const Default: Story;
7
- export declare const Indeterminate: Story;
8
- export declare const ChekboxGroup: Story;
9
7
  export declare const Disabled: Story;
@@ -0,0 +1,6 @@
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 ChekboxGroup: Story;
@@ -0,0 +1,7 @@
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 Indeterminate: Story;
7
+ export declare const Disabled: Story;
@@ -1,5 +1,6 @@
1
- import { MaInputType, MaInputSize, MaInputCurrency, MaInputCurrencySymbol } from './types';
1
+ import { MaInputType, MaInputSize, MaInputCurrency } from './types';
2
2
  export interface MaInputProps {
3
+ allowClear?: boolean;
3
4
  type?: MaInputType;
4
5
  size?: MaInputSize;
5
6
  title?: string;
@@ -10,25 +11,27 @@ export interface MaInputProps {
10
11
  addonBefore?: string;
11
12
  addonAfter?: string;
12
13
  avatarUrl?: string;
13
- modelValue?: string;
14
+ value?: string;
14
15
  amountCurrency?: MaInputCurrency;
15
- amountCurrencySymbol?: MaInputCurrencySymbol;
16
16
  hint?: string;
17
+ prefixIcon?: string;
18
+ suffixIcon?: string;
17
19
  }
18
20
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaInputProps>, {
19
21
  type: MaInputType;
20
22
  size: MaInputSize;
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>, {
23
+ }>, {}, 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>, {
22
24
  type: MaInputType;
23
25
  size: MaInputSize;
24
26
  }>>> & {
25
27
  onChange?: ((...args: any[]) => any) | undefined;
26
28
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
27
29
  "onCurrency-change"?: ((...args: any[]) => any) | undefined;
30
+ "onUpdate:amountCurrency"?: ((...args: any[]) => any) | undefined;
28
31
  }, {
29
32
  size: MaInputSize;
30
33
  type: MaInputType;
31
- }>, {
34
+ }>, Record<NonNullable<string | number>, (_: {}) => any> & Record<NonNullable<string | number>, (_: {}) => any> & {
32
35
  title: (_: {}) => any;
33
36
  hint: (_: {}) => any;
34
37
  }>;
@@ -2,3 +2,4 @@ import type { Meta, StoryFn } from '@storybook/vue3';
2
2
  import MaInput from '../index.vue';
3
3
  export declare const baseConfig: Meta<typeof MaInput>;
4
4
  export declare const Template: StoryFn;
5
+ export declare const TemplateAmount: StoryFn;
@@ -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;
@@ -1,3 +1,4 @@
1
+ import type { SelectProps } from 'ant-design-vue';
1
2
  export declare enum MaInputType {
2
3
  text = "text",
3
4
  password = "password",
@@ -21,9 +22,5 @@ export declare enum MaInputCurrency {
21
22
  gbp = "GBP",
22
23
  jpy = "JPY"
23
24
  }
24
- export declare enum MaInputCurrencySymbol {
25
- usd = "$",
26
- eur = "\u20AC",
27
- gbp = "\u00A3",
28
- jpy = "\u00A5"
29
- }
25
+ export declare const currencySymbols: any;
26
+ export declare const currencyOptions: SelectProps['options'];
@@ -6,6 +6,7 @@ export interface MaSelectProps {
6
6
  autofocus?: boolean;
7
7
  clearIcon?: string;
8
8
  defaultOpen?: boolean;
9
+ dropdownClassName?: string;
9
10
  disabled?: boolean;
10
11
  loading?: boolean;
11
12
  menuItemSelectedIcon?: string;
@@ -40,9 +41,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
40
41
  }, {
41
42
  size: string;
42
43
  value: string | number | string[] | number[];
43
- autoClearSearchValue: boolean;
44
- menuItemSelectedIcon: string;
45
44
  open: boolean;
45
+ menuItemSelectedIcon: string;
46
+ autoClearSearchValue: boolean;
46
47
  }>, Record<NonNullable<string | number>, (_: {}) => any> & {
47
48
  prefixIcon: (_: {}) => any;
48
49
  }>;
package/dist/index.d.ts CHANGED
@@ -9,3 +9,5 @@ export { default as MaFormItem } from './components/form-item/index.vue';
9
9
  export { default as MaInput } from './components/input/index.vue';
10
10
  export { default as MaIcon } from './components/icon/index.vue';
11
11
  export { default as MaSelect } from './components/select/index.vue';
12
+ export { default as MaCheckbox } from './components/checkbox/index.vue';
13
+ export { default as MaCheckboxGroup } from './components/checkbox/group.vue';