@mobileaction/action-kit 1.43.0 → 1.44.2

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 (39) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/action-kit.mjs +5987 -5770
  3. package/dist/src/components/alert/index.vue.d.ts +20 -18
  4. package/dist/src/components/alert/stories/alert.stories.d.ts +19 -0
  5. package/dist/src/components/alert/types.d.ts +85 -4
  6. package/dist/src/components/app-icon/index.vue.d.ts +1 -1
  7. package/dist/src/components/badge/index.vue.d.ts +1 -1
  8. package/dist/src/components/cascader/stories/default.stories.d.ts +48 -48
  9. package/dist/src/components/collapse/index.vue.d.ts +1 -1
  10. package/dist/src/components/date-picker-2/index.vue.d.ts +4 -4
  11. package/dist/src/components/drawer/index.vue.d.ts +3 -3
  12. package/dist/src/components/icon/components/flagIcon.vue.d.ts +1 -1
  13. package/dist/src/components/icon/index.vue.d.ts +1 -1
  14. package/dist/src/components/icon-button/components/button.vue.d.ts +1 -1
  15. package/dist/src/components/icon-button/index.vue.d.ts +2 -2
  16. package/dist/src/components/image/group.vue.d.ts +2 -2
  17. package/dist/src/components/modal/index.vue.d.ts +2 -2
  18. package/dist/src/components/pagination/index.vue.d.ts +2 -2
  19. package/dist/src/components/popconfirm/index.vue.d.ts +1 -1
  20. package/dist/src/components/popconfirm-2/index.vue.d.ts +66 -0
  21. package/dist/src/components/popconfirm-2/popconfirm2.test.d.ts +1 -0
  22. package/dist/src/components/popconfirm-2/stories/default.stories.d.ts +13 -0
  23. package/dist/src/components/popconfirm-2/types.d.ts +2 -0
  24. package/dist/src/components/progress/index.vue.d.ts +1 -1
  25. package/dist/src/components/spin/index.vue.d.ts +1 -1
  26. package/dist/src/components/switch/index.vue.d.ts +1 -1
  27. package/dist/src/components/tree/index.vue.d.ts +2 -2
  28. package/dist/src/components/upload/index.vue.d.ts +2 -2
  29. package/dist/src/components/watchlist-button/components/button.vue.d.ts +1 -1
  30. package/dist/src/components/watchlist-button/index.vue.d.ts +1 -1
  31. package/dist/src/index.d.ts +5 -2
  32. package/dist/style.css +1 -1
  33. package/package.json +1 -1
  34. package/dist/src/components/alert/stories/blue.stories.d.ts +0 -9
  35. package/dist/src/components/alert/stories/constants.d.ts +0 -4
  36. package/dist/src/components/alert/stories/dark.stories.d.ts +0 -10
  37. package/dist/src/components/alert/stories/green.stories.d.ts +0 -8
  38. package/dist/src/components/alert/stories/orange.stories.d.ts +0 -8
  39. package/dist/src/components/alert/stories/red.stories.d.ts +0 -8
@@ -164,9 +164,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
164
164
  "onUpdate:perPage"?: (...args: any[]) => any;
165
165
  onPerPageChange?: (...args: any[]) => any;
166
166
  }>, {
167
- rounded: boolean;
167
+ size: "medium" | "large" | "small";
168
168
  mode: "simple" | "advanced";
169
- size: "small" | "medium" | "large";
169
+ rounded: boolean;
170
170
  disabled: boolean;
171
171
  current: number;
172
172
  perPage: number;
@@ -30,10 +30,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Ma
30
30
  onConfirm?: (...args: any[]) => any;
31
31
  }>, {
32
32
  icon: string;
33
+ showIcon: boolean;
33
34
  placement: PopconfirmPlacement;
34
35
  visible: boolean;
35
36
  showArrow: boolean;
36
- showIcon: boolean;
37
37
  okText: string;
38
38
  cancelText: string;
39
39
  showCancel: boolean;
@@ -0,0 +1,66 @@
1
+ import { Popconfirm2Variants, Popover2Placement } from '@/index';
2
+ import { MaPopover2Props } from '../popover-2/index.vue';
3
+ import { MaButtonProps } from '@/components/button/index.vue';
4
+ export interface Popconfirm2Props {
5
+ title?: string;
6
+ description?: string;
7
+ variant?: Popconfirm2Variants;
8
+ visible?: boolean;
9
+ placement?: Popover2Placement;
10
+ showArrow?: boolean;
11
+ confirmButtonText?: string;
12
+ cancelButtonText?: string;
13
+ confirmButtonProps?: MaButtonProps;
14
+ cancelButtonProps?: MaButtonProps;
15
+ confirmButtonLoading?: boolean;
16
+ cancelButtonLoading?: boolean;
17
+ confirmButtonDisabled?: boolean;
18
+ cancelButtonDisabled?: boolean;
19
+ showIcon?: boolean;
20
+ popoverProps?: MaPopover2Props;
21
+ showConfirmButton?: boolean;
22
+ showCancelButton?: boolean;
23
+ fullWidthButton?: boolean;
24
+ }
25
+ declare function __VLS_template(): {
26
+ attrs: Partial<{}>;
27
+ slots: {
28
+ default?(_: {}): any;
29
+ icon?(_: {}): any;
30
+ description?(_: {}): any;
31
+ footer?(_: {}): any;
32
+ };
33
+ refs: {};
34
+ rootEl: any;
35
+ };
36
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
37
+ declare const __VLS_component: import("vue").DefineComponent<Popconfirm2Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
38
+ cancel: (...args: any[]) => void;
39
+ "update:visible": (...args: any[]) => void;
40
+ visibleChange: (...args: any[]) => void;
41
+ confirm: (...args: any[]) => void;
42
+ }, string, import("vue").PublicProps, Readonly<Popconfirm2Props> & Readonly<{
43
+ onCancel?: (...args: any[]) => any;
44
+ "onUpdate:visible"?: (...args: any[]) => any;
45
+ onVisibleChange?: (...args: any[]) => any;
46
+ onConfirm?: (...args: any[]) => any;
47
+ }>, {
48
+ title: string;
49
+ showIcon: boolean;
50
+ placement: Popover2Placement;
51
+ description: string;
52
+ visible: boolean;
53
+ showArrow: boolean;
54
+ confirmButtonText: string;
55
+ cancelButtonText: string;
56
+ showConfirmButton: boolean;
57
+ showCancelButton: boolean;
58
+ fullWidthButton: boolean;
59
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
60
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
61
+ export default _default;
62
+ type __VLS_WithTemplateSlots<T, S> = T & {
63
+ new (): {
64
+ $slots: S;
65
+ };
66
+ };
@@ -0,0 +1,13 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import { MaPopconfirm2 } from '@/index';
3
+ declare const meta: Meta<typeof MaPopconfirm2>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MaPopconfirm2>;
6
+ export declare const Default: Story;
7
+ export declare const FullWidthButtons: Story;
8
+ export declare const SingleFullWidthButton: Story;
9
+ export declare const SingleButton: Story;
10
+ export declare const WithCustomIcon: Story;
11
+ export declare const WithNoIconAndTitle: Story;
12
+ export declare const WithCustomFooter: Story;
13
+ export declare const CustomPopconfirm: Story;
@@ -0,0 +1,2 @@
1
+ export declare const Popconfirm2Variants: readonly ["success", "danger", "info", "warning"];
2
+ export type Popconfirm2Variants = (typeof Popconfirm2Variants)[number];
@@ -13,8 +13,8 @@ export interface MaProgressProps {
13
13
  circleSize?: MaProgressCircleSize;
14
14
  }
15
15
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<MaProgressProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MaProgressProps> & Readonly<{}>, {
16
- color: MaProgressColor;
17
16
  type: MaProgressType;
17
+ color: MaProgressColor;
18
18
  showPercent: boolean;
19
19
  circleSize: MaProgressCircleSize;
20
20
  percentAlignment: MaProgressPercentAlignment;
@@ -6,8 +6,8 @@ export interface MaSpinProps {
6
6
  tip?: string;
7
7
  }
8
8
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<MaSpinProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MaSpinProps> & Readonly<{}>, {
9
- color: MaSpinColor;
10
9
  type: MaSpinType;
10
+ color: MaSpinColor;
11
11
  spinning: boolean;
12
12
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>, {
13
13
  indicator?(_: {}): any;
@@ -15,9 +15,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Ma
15
15
  onClick?: (...args: any[]) => any;
16
16
  "onUpdate:active"?: (...args: any[]) => any;
17
17
  }>, {
18
+ type: SwitchType;
18
19
  disabled: boolean;
19
20
  loading: boolean;
20
- type: SwitchType;
21
21
  options: MaSwitchOption[];
22
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLButtonElement>, {
23
23
  optionLabel?(_: {
@@ -36,9 +36,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Ma
36
36
  "onUpdate:selectedValues"?: (...args: any[]) => any;
37
37
  "onUpdate:expandedValues"?: (...args: any[]) => any;
38
38
  }>, {
39
- mode: TreeMode;
40
- size: MaEmptySize;
41
39
  search: MaSearchType;
40
+ size: MaEmptySize;
41
+ mode: TreeMode;
42
42
  emptySize: MaEmptySize;
43
43
  emptyTitle: string;
44
44
  emptyDescription: string;
@@ -44,10 +44,10 @@ declare const __VLS_component: import("vue").DefineComponent<MaUploadProps, {},
44
44
  onRemove?: (...args: any[]) => any;
45
45
  "onUpdate:fileList"?: (...args: any[]) => any;
46
46
  }>, {
47
+ name: string;
47
48
  size: MaUploadSize;
48
- disabled: boolean;
49
49
  type: MaUploadType;
50
- name: string;
50
+ disabled: boolean;
51
51
  multiple: boolean;
52
52
  headers: Record<string, string>;
53
53
  ordered: boolean;
@@ -22,9 +22,9 @@ declare function __VLS_template(): {
22
22
  };
23
23
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
24
  declare const __VLS_component: import("vue").DefineComponent<MaIconButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MaIconButtonProps> & Readonly<{}>, {
25
+ type: MaWatchlistButtonType;
25
26
  disabled: boolean;
26
27
  loading: boolean;
27
- type: MaWatchlistButtonType;
28
28
  active: boolean;
29
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
30
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -16,9 +16,9 @@ export interface MaWatchlistButtonProps {
16
16
  }
17
17
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<MaWatchlistButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MaWatchlistButtonProps> & Readonly<{}>, {
18
18
  size: MaWatchlistButtonSize;
19
+ type: MaWatchlistButtonType;
19
20
  disabled: boolean;
20
21
  loading: boolean;
21
- type: MaWatchlistButtonType;
22
22
  active: boolean;
23
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
24
24
  tooltip?(_: {}): any;
@@ -1,4 +1,6 @@
1
1
  import './tailwind.scss';
2
+ export { default as MaAlert } from './components/alert/index.vue';
3
+ export * from './components/alert/types';
2
4
  export { default as MaButton } from './components/button/index.vue';
3
5
  export * from './components/button/types';
4
6
  export { default as MaLinkButton } from './components/button/link-button/index.vue';
@@ -40,8 +42,6 @@ export { default as MaRadioGroup } from './components/radio/group.vue';
40
42
  export * from './components/radio/types';
41
43
  export { default as MaBadge } from './components/badge/index.vue';
42
44
  export * from './components/badge/types';
43
- export { default as MaAlert } from './components/alert/index.vue';
44
- export * from './components/alert/types';
45
45
  export { default as MaAnimation } from './components/animation/index.vue';
46
46
  export * from './components/animation/types';
47
47
  export { default as MaModal } from './components/modal/index';
@@ -85,6 +85,7 @@ export { default as MaSlider } from './components/slider/index.vue';
85
85
  export { default as MaCountryRadio } from './components/country-radio/index.vue';
86
86
  export { default as MaPopover } from './components/popover/index.vue';
87
87
  export { default as MaPopover2 } from './components/popover-2/index.vue';
88
+ export * from './components/popover-2/types';
88
89
  export { default as MaAvatar } from './components/avatar/index.vue';
89
90
  export { default as MaTagInput } from './components/tag-input/index.vue';
90
91
  export { default as MaWatchlistButton } from './components/watchlist-button/index.vue';
@@ -100,6 +101,8 @@ export { default as MaImageGroup2 } from './components/image-2/group.vue';
100
101
  export { default as MaImagePreview } from './components/image-2/preview.vue';
101
102
  export { default as MaResult } from './components/result/index.vue';
102
103
  export { default as MaPopconfirm } from './components/popconfirm/index.vue';
104
+ export { default as MaPopconfirm2 } from './components/popconfirm-2/index.vue';
105
+ export * from './components/popconfirm-2/types';
103
106
  export { default as MaStepItems } from './components/step-items/index.vue';
104
107
  export { default as MaStepItem } from './components/step-items/components/index.vue';
105
108
  export { default as MaRadioCard } from './components/radio-card/index.vue';