@mobileaction/action-kit 0.0.18 → 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,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
  }>;