@mobileaction/action-kit 1.42.12 → 1.43.0-beta.7
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.
- package/CHANGELOG.md +7 -0
- package/dist/3square-bold-Dx1--kR9.js +27 -0
- package/dist/action-kit.mjs +3579 -3450
- package/dist/src/components/popconfirm-2/index.vue.d.ts +62 -0
- package/dist/src/components/popconfirm-2/popconfirm2.test.d.ts +1 -0
- package/dist/src/components/popconfirm-2/stories/default.stories.d.ts +10 -0
- package/dist/src/components/popconfirm-2/types.d.ts +6 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Popconfirm2Variants, Popconfirm2Placements, Popconfirm2ButtonVariants } from './types';
|
|
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?: Popconfirm2Placements;
|
|
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
|
+
buttonsType?: Popconfirm2ButtonVariants;
|
|
22
|
+
}
|
|
23
|
+
declare function __VLS_template(): {
|
|
24
|
+
attrs: Partial<{}>;
|
|
25
|
+
slots: {
|
|
26
|
+
default?(_: {}): any;
|
|
27
|
+
icon?(_: {}): any;
|
|
28
|
+
cancelButton?(_: {}): any;
|
|
29
|
+
confirmButton?(_: {}): any;
|
|
30
|
+
};
|
|
31
|
+
refs: {};
|
|
32
|
+
rootEl: any;
|
|
33
|
+
};
|
|
34
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
35
|
+
declare const __VLS_component: import("vue").DefineComponent<Popconfirm2Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
+
cancel: (...args: any[]) => void;
|
|
37
|
+
"update:visible": (...args: any[]) => void;
|
|
38
|
+
visibleChange: (...args: any[]) => void;
|
|
39
|
+
confirm: (...args: any[]) => void;
|
|
40
|
+
}, string, import("vue").PublicProps, Readonly<Popconfirm2Props> & Readonly<{
|
|
41
|
+
onCancel?: (...args: any[]) => any;
|
|
42
|
+
"onUpdate:visible"?: (...args: any[]) => any;
|
|
43
|
+
onVisibleChange?: (...args: any[]) => any;
|
|
44
|
+
onConfirm?: (...args: any[]) => any;
|
|
45
|
+
}>, {
|
|
46
|
+
title: string;
|
|
47
|
+
placement: Popconfirm2Placements;
|
|
48
|
+
description: string;
|
|
49
|
+
visible: boolean;
|
|
50
|
+
showArrow: boolean;
|
|
51
|
+
showIcon: boolean;
|
|
52
|
+
confirmButtonText: string;
|
|
53
|
+
cancelButtonText: string;
|
|
54
|
+
buttonsType: Popconfirm2ButtonVariants;
|
|
55
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
56
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
57
|
+
export default _default;
|
|
58
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
59
|
+
new (): {
|
|
60
|
+
$slots: S;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
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 SingleButton: Story;
|
|
9
|
+
export declare const WithCustomIcon: Story;
|
|
10
|
+
export declare const WithNoIconAndTitle: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const Popconfirm2Variants: readonly ["success", "error", "info", "warning"];
|
|
2
|
+
export declare const Popconfirm2Placements: readonly ["auto", "auto-start", "auto-end", "top", "top-start", "top-end", "right", "right-start", "right-end", "bottom", "bottom-start", "bottom-end", "left", "left-start", "left-end"];
|
|
3
|
+
export declare const Popconfirm2ButtonVariants: readonly ["defaultButtons", "fullWidthButtons", "singleButton"];
|
|
4
|
+
export type Popconfirm2Variants = (typeof Popconfirm2Variants)[number];
|
|
5
|
+
export type Popconfirm2Placements = (typeof Popconfirm2Placements)[number];
|
|
6
|
+
export type Popconfirm2ButtonVariants = (typeof Popconfirm2ButtonVariants)[number];
|
package/dist/src/index.d.ts
CHANGED
|
@@ -100,6 +100,7 @@ export { default as MaImageGroup2 } from './components/image-2/group.vue';
|
|
|
100
100
|
export { default as MaImagePreview } from './components/image-2/preview.vue';
|
|
101
101
|
export { default as MaResult } from './components/result/index.vue';
|
|
102
102
|
export { default as MaPopconfirm } from './components/popconfirm/index.vue';
|
|
103
|
+
export { default as MaPopconfirm2 } from './components/popconfirm-2/index.vue';
|
|
103
104
|
export { default as MaStepItems } from './components/step-items/index.vue';
|
|
104
105
|
export { default as MaStepItem } from './components/step-items/components/index.vue';
|
|
105
106
|
export { default as MaRadioCard } from './components/radio-card/index.vue';
|