@mobileaction/action-kit 1.40.2 → 1.40.3

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,27 @@
1
+ import { openBlock as n, createElementBlock as t, createElementVNode as e } from "vue";
2
+ const l = {
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ viewBox: "0 0 24 24",
5
+ fill: "none",
6
+ stroke: "currentColor",
7
+ "stroke-width": "2",
8
+ "stroke-linecap": "round",
9
+ "stroke-linejoin": "round",
10
+ class: "icon icon-tabler icons-tabler-outline icon-tabler-x"
11
+ };
12
+ function r(s, o) {
13
+ return n(), t("svg", l, o[0] || (o[0] = [
14
+ e("path", {
15
+ stroke: "none",
16
+ d: "M0 0h24v24H0z",
17
+ fill: "none"
18
+ }, null, -1),
19
+ e("path", { d: "M18 6l-12 12" }, null, -1),
20
+ e("path", { d: "M6 6l12 12" }, null, -1)
21
+ ]));
22
+ }
23
+ const c = { render: r };
24
+ export {
25
+ c as default,
26
+ r as render
27
+ };
@@ -1,28 +1,28 @@
1
- import { openBlock as t, createElementBlock as n, createElementVNode as e } from "vue";
2
- const r = {
1
+ import { openBlock as r, createElementBlock as t, createElementVNode as o } from "vue";
2
+ const n = {
3
3
  viewBox: "0 0 24 24",
4
4
  fill: "none",
5
5
  xmlns: "http://www.w3.org/2000/svg"
6
6
  };
7
- function l(s, o) {
8
- return t(), n("svg", r, o[0] || (o[0] = [
9
- e("path", {
7
+ function l(s, e) {
8
+ return r(), t("svg", n, e[0] || (e[0] = [
9
+ o("path", {
10
10
  d: "M14.8901 5.08002C14.0201 4.82002 13.0601 4.65002 12.0001 4.65002C7.21008 4.65002 3.33008 8.53002 3.33008 13.32C3.33008 18.12 7.21008 22 12.0001 22C16.7901 22 20.6701 18.12 20.6701 13.33C20.6701 11.55 20.1301 9.89002 19.2101 8.51002",
11
- stroke: "#292D32",
11
+ stroke: "currentColor",
12
12
  "stroke-width": "1.5",
13
13
  "stroke-linecap": "round",
14
14
  "stroke-linejoin": "round"
15
15
  }, null, -1),
16
- e("path", {
16
+ o("path", {
17
17
  d: "M16.13 5.32L13.24 2",
18
- stroke: "#292D32",
18
+ stroke: "currentColor",
19
19
  "stroke-width": "1.5",
20
20
  "stroke-linecap": "round",
21
21
  "stroke-linejoin": "round"
22
22
  }, null, -1),
23
- e("path", {
23
+ o("path", {
24
24
  d: "M16.13 5.31995L12.76 7.77995",
25
- stroke: "#292D32",
25
+ stroke: "currentColor",
26
26
  "stroke-width": "1.5",
27
27
  "stroke-linecap": "round",
28
28
  "stroke-linejoin": "round"
@@ -0,0 +1,26 @@
1
+ import { MaImage2Props } from './index.vue';
2
+ interface MaImageGroup2Props {
3
+ images?: MaImage2Props[];
4
+ zIndex?: number;
5
+ }
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {
12
+ "image-ref": HTMLDivElement;
13
+ };
14
+ rootEl: HTMLDivElement;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import("vue").DefineComponent<MaImageGroup2Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MaImageGroup2Props> & Readonly<{}>, {
18
+ images: MaImage2Props[];
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,33 @@
1
+ export interface MaImage2Props {
2
+ src: string;
3
+ width?: number | string;
4
+ height?: number | string;
5
+ fallback?: string;
6
+ alt?: string;
7
+ zIndex?: number;
8
+ fit?: 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
9
+ }
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: {
13
+ "preview-overlay"?(_: {}): any;
14
+ };
15
+ refs: {};
16
+ rootEl: HTMLDivElement;
17
+ };
18
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
+ declare const __VLS_component: import("vue").DefineComponent<MaImage2Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ error: (...args: any[]) => void;
21
+ }, string, import("vue").PublicProps, Readonly<MaImage2Props> & Readonly<{
22
+ onError?: (...args: any[]) => any;
23
+ }>, {
24
+ fallback: string;
25
+ fit: "cover" | "contain" | "fill" | "none" | "scale-down";
26
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
+ export default _default;
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1,24 @@
1
+ export interface MaImagePreviewProps {
2
+ visible: boolean;
3
+ isGroup?: boolean;
4
+ src?: string;
5
+ alt?: string;
6
+ multiSrc?: string[];
7
+ multiAlt?: string[];
8
+ currentIndex?: number;
9
+ zIndex?: number;
10
+ }
11
+ declare const _default: import("vue").DefineComponent<MaImagePreviewProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
12
+ closePreview: () => any;
13
+ navigateLeft: () => any;
14
+ navigateRight: () => any;
15
+ }, string, import("vue").PublicProps, Readonly<MaImagePreviewProps> & Readonly<{
16
+ onClosePreview?: () => any;
17
+ onNavigateLeft?: () => any;
18
+ onNavigateRight?: () => any;
19
+ }>, {
20
+ isGroup: boolean;
21
+ zIndex: number;
22
+ currentIndex: number;
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryFn } from '@storybook/vue3';
2
+ import { MaImage2 } from '@/index';
3
+ export declare const baseConfig: Meta<typeof MaImage2>;
4
+ export declare const Template: StoryFn;
5
+ export declare const GroupSlotTemplate: StoryFn;
6
+ export declare const GroupImagesTemplate: StoryFn;
7
+ export declare const CustomPreviewOverlaySlotTemplate: StoryFn;
8
+ export declare const FallbackPreviewTemplate: StoryFn;
@@ -0,0 +1,9 @@
1
+ import type { Meta } from '@storybook/vue3';
2
+ import { MaImage2 } from '@/index';
3
+ declare const meta: Meta<typeof MaImage2>;
4
+ export default meta;
5
+ export declare const Default: import("@storybook/vue3").StoryFn;
6
+ export declare const GroupSlot: import("@storybook/vue3").StoryFn;
7
+ export declare const GroupImages: import("@storybook/vue3").StoryFn;
8
+ export declare const Fallback: import("@storybook/vue3").StoryFn;
9
+ export declare const CustomPreviewOverlaySlot: import("@storybook/vue3").StoryFn;
@@ -90,6 +90,9 @@ export { default as MaStep } from './components/steps/components/index.vue';
90
90
  export { default as MaPagination } from './components/pagination/index.vue';
91
91
  export { default as MaImage } from './components/image/index.vue';
92
92
  export { default as MaImageGroup } from './components/image/group.vue';
93
+ export { default as MaImage2 } from './components/image-2/index.vue';
94
+ export { default as MaImageGroup2 } from './components/image-2/group.vue';
95
+ export { default as MaImagePreview } from './components/image-2/preview.vue';
93
96
  export { default as MaResult } from './components/result/index.vue';
94
97
  export { default as MaPopconfirm } from './components/popconfirm/index.vue';
95
98
  export { default as MaStepItems } from './components/step-items/index.vue';