@mobileaction/action-kit 1.1.54 → 1.1.55
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/dist/action-kit.js +7 -7
- package/dist/action-kit.mjs +1282 -1156
- package/dist/components/icon-button/components/button.vue.d.ts +97 -0
- package/dist/components/icon-button/index.vue.d.ts +112 -0
- package/dist/components/icon-button/types.d.ts +6 -0
- package/dist/direct-normal-2fb67893.mjs +29 -0
- package/dist/direct-normal-bulk-42301f08.js +1 -0
- package/dist/direct-normal-bulk-4cc25be5.mjs +24 -0
- package/dist/direct-normal-f7fd0a9b.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/src/components/icon-button/components/button.vue.d.ts +45 -0
- package/dist/src/components/icon-button/index.vue.d.ts +53 -0
- package/dist/src/components/icon-button/stories/constants.d.ts +4 -0
- package/dist/src/components/icon-button/stories/primary.stories.d.ts +16 -0
- package/dist/src/components/icon-button/stories/secondary.stories.d.ts +16 -0
- package/dist/src/components/icon-button/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,97 @@
|
|
|
1
|
+
import type { PropType as __PropType } from 'vue';
|
|
2
|
+
import { MaIconButtonType, MaIconButtonSize, MaIconButtonVariant } from "../types";
|
|
3
|
+
import { ButtonTarget } from '../../../components/button/types';
|
|
4
|
+
export interface MaIconButtonProps {
|
|
5
|
+
type?: MaIconButtonType;
|
|
6
|
+
icon: string;
|
|
7
|
+
href?: string;
|
|
8
|
+
target?: ButtonTarget;
|
|
9
|
+
size: MaIconButtonSize;
|
|
10
|
+
active?: boolean;
|
|
11
|
+
activeIcon?: string;
|
|
12
|
+
rounded?: boolean;
|
|
13
|
+
variant?: MaIconButtonVariant;
|
|
14
|
+
}
|
|
15
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
16
|
+
type: {
|
|
17
|
+
type: __PropType<"primary" | "secondary">;
|
|
18
|
+
required: false;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
icon: {
|
|
22
|
+
type: __PropType<string>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
href: {
|
|
26
|
+
type: __PropType<string>;
|
|
27
|
+
required: false;
|
|
28
|
+
};
|
|
29
|
+
target: {
|
|
30
|
+
type: __PropType<"_blank" | "_self" | "_top" | "_parent">;
|
|
31
|
+
required: false;
|
|
32
|
+
};
|
|
33
|
+
size: {
|
|
34
|
+
type: __PropType<"xs" | "sm" | "md" | "lg">;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
active: {
|
|
38
|
+
type: __PropType<boolean>;
|
|
39
|
+
required: false;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
activeIcon: {
|
|
43
|
+
type: __PropType<string>;
|
|
44
|
+
required: false;
|
|
45
|
+
};
|
|
46
|
+
rounded: {
|
|
47
|
+
type: __PropType<boolean>;
|
|
48
|
+
required: false;
|
|
49
|
+
};
|
|
50
|
+
variant: {
|
|
51
|
+
type: __PropType<"default" | "border" | "withBg">;
|
|
52
|
+
required: false;
|
|
53
|
+
};
|
|
54
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
|
+
type: {
|
|
56
|
+
type: __PropType<"primary" | "secondary">;
|
|
57
|
+
required: false;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
icon: {
|
|
61
|
+
type: __PropType<string>;
|
|
62
|
+
required: true;
|
|
63
|
+
};
|
|
64
|
+
href: {
|
|
65
|
+
type: __PropType<string>;
|
|
66
|
+
required: false;
|
|
67
|
+
};
|
|
68
|
+
target: {
|
|
69
|
+
type: __PropType<"_blank" | "_self" | "_top" | "_parent">;
|
|
70
|
+
required: false;
|
|
71
|
+
};
|
|
72
|
+
size: {
|
|
73
|
+
type: __PropType<"xs" | "sm" | "md" | "lg">;
|
|
74
|
+
required: true;
|
|
75
|
+
};
|
|
76
|
+
active: {
|
|
77
|
+
type: __PropType<boolean>;
|
|
78
|
+
required: false;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
activeIcon: {
|
|
82
|
+
type: __PropType<string>;
|
|
83
|
+
required: false;
|
|
84
|
+
};
|
|
85
|
+
rounded: {
|
|
86
|
+
type: __PropType<boolean>;
|
|
87
|
+
required: false;
|
|
88
|
+
};
|
|
89
|
+
variant: {
|
|
90
|
+
type: __PropType<"default" | "border" | "withBg">;
|
|
91
|
+
required: false;
|
|
92
|
+
};
|
|
93
|
+
}>>, {
|
|
94
|
+
type: "primary" | "secondary";
|
|
95
|
+
active: boolean;
|
|
96
|
+
}>;
|
|
97
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import type { PropType as __PropType } from 'vue';
|
|
2
|
+
import { MaIconButtonType, MaIconButtonSize, MaIconButtonVariant } from "./types";
|
|
3
|
+
import { ButtonTarget } from '../../components/button/types';
|
|
4
|
+
export interface MaIconButtonProps {
|
|
5
|
+
type?: MaIconButtonType;
|
|
6
|
+
icon: string;
|
|
7
|
+
activeIcon?: string;
|
|
8
|
+
tooltipText?: string;
|
|
9
|
+
href?: string;
|
|
10
|
+
target?: ButtonTarget;
|
|
11
|
+
size?: MaIconButtonSize;
|
|
12
|
+
active?: boolean;
|
|
13
|
+
rounded?: boolean;
|
|
14
|
+
variant?: MaIconButtonVariant;
|
|
15
|
+
}
|
|
16
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
17
|
+
type: {
|
|
18
|
+
type: __PropType<"primary" | "secondary">;
|
|
19
|
+
required: false;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
icon: {
|
|
23
|
+
type: __PropType<string>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
activeIcon: {
|
|
27
|
+
type: __PropType<string>;
|
|
28
|
+
required: false;
|
|
29
|
+
};
|
|
30
|
+
tooltipText: {
|
|
31
|
+
type: __PropType<string>;
|
|
32
|
+
required: false;
|
|
33
|
+
};
|
|
34
|
+
href: {
|
|
35
|
+
type: __PropType<string>;
|
|
36
|
+
required: false;
|
|
37
|
+
};
|
|
38
|
+
target: {
|
|
39
|
+
type: __PropType<"_blank" | "_self" | "_top" | "_parent">;
|
|
40
|
+
required: false;
|
|
41
|
+
};
|
|
42
|
+
size: {
|
|
43
|
+
type: __PropType<"xs" | "sm" | "md" | "lg">;
|
|
44
|
+
required: false;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
active: {
|
|
48
|
+
type: __PropType<boolean>;
|
|
49
|
+
required: false;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
rounded: {
|
|
53
|
+
type: __PropType<boolean>;
|
|
54
|
+
required: false;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
variant: {
|
|
58
|
+
type: __PropType<"default" | "border" | "withBg">;
|
|
59
|
+
required: false;
|
|
60
|
+
};
|
|
61
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
62
|
+
type: {
|
|
63
|
+
type: __PropType<"primary" | "secondary">;
|
|
64
|
+
required: false;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
icon: {
|
|
68
|
+
type: __PropType<string>;
|
|
69
|
+
required: true;
|
|
70
|
+
};
|
|
71
|
+
activeIcon: {
|
|
72
|
+
type: __PropType<string>;
|
|
73
|
+
required: false;
|
|
74
|
+
};
|
|
75
|
+
tooltipText: {
|
|
76
|
+
type: __PropType<string>;
|
|
77
|
+
required: false;
|
|
78
|
+
};
|
|
79
|
+
href: {
|
|
80
|
+
type: __PropType<string>;
|
|
81
|
+
required: false;
|
|
82
|
+
};
|
|
83
|
+
target: {
|
|
84
|
+
type: __PropType<"_blank" | "_self" | "_top" | "_parent">;
|
|
85
|
+
required: false;
|
|
86
|
+
};
|
|
87
|
+
size: {
|
|
88
|
+
type: __PropType<"xs" | "sm" | "md" | "lg">;
|
|
89
|
+
required: false;
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
92
|
+
active: {
|
|
93
|
+
type: __PropType<boolean>;
|
|
94
|
+
required: false;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
rounded: {
|
|
98
|
+
type: __PropType<boolean>;
|
|
99
|
+
required: false;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
102
|
+
variant: {
|
|
103
|
+
type: __PropType<"default" | "border" | "withBg">;
|
|
104
|
+
required: false;
|
|
105
|
+
};
|
|
106
|
+
}>>, {
|
|
107
|
+
type: "primary" | "secondary";
|
|
108
|
+
size: "xs" | "sm" | "md" | "lg";
|
|
109
|
+
rounded: boolean;
|
|
110
|
+
active: boolean;
|
|
111
|
+
}>;
|
|
112
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const MaIconButtonTypes: readonly ["primary", "secondary"];
|
|
2
|
+
export declare const MaIconButtonVariants: readonly ["default", "border", "withBg"];
|
|
3
|
+
export declare const MaIconButtonSizes: readonly ["xs", "sm", "md", "lg"];
|
|
4
|
+
export type MaIconButtonType = (typeof MaIconButtonTypes)[number];
|
|
5
|
+
export type MaIconButtonSize = (typeof MaIconButtonSizes)[number];
|
|
6
|
+
export type MaIconButtonVariant = (typeof MaIconButtonVariants)[number];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { openBlock as o, createElementBlock as t, createElementVNode as e } from "vue";
|
|
2
|
+
const r = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
fill: "none",
|
|
5
|
+
viewBox: "0 0 24 24"
|
|
6
|
+
}, n = /* @__PURE__ */ e("path", {
|
|
7
|
+
stroke: "currentColor",
|
|
8
|
+
"stroke-linecap": "round",
|
|
9
|
+
"stroke-linejoin": "round",
|
|
10
|
+
"stroke-width": "1.5",
|
|
11
|
+
d: "M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z"
|
|
12
|
+
}, null, -1), c = /* @__PURE__ */ e("path", {
|
|
13
|
+
stroke: "currentColor",
|
|
14
|
+
"stroke-linecap": "round",
|
|
15
|
+
"stroke-linejoin": "round",
|
|
16
|
+
"stroke-width": "1.5",
|
|
17
|
+
d: "M2 13h3.76a2 2 0 0 1 1.79 1.11l.89 1.79C9 17 10 17 10.24 17h3.53a2 2 0 0 0 1.79-1.11l.89-1.79a2 2 0 0 1 1.79-1.11h3.74"
|
|
18
|
+
}, null, -1), l = [
|
|
19
|
+
n,
|
|
20
|
+
c
|
|
21
|
+
];
|
|
22
|
+
function s(d, i) {
|
|
23
|
+
return o(), t("svg", r, l);
|
|
24
|
+
}
|
|
25
|
+
const a = { render: s };
|
|
26
|
+
export {
|
|
27
|
+
a as default,
|
|
28
|
+
s as render
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},c=e.createElementVNode("path",{fill:"currentColor",d:"M16.19 2H7.81C4.17 2 2 4.17 2 7.81v8.37C2 19.83 4.17 22 7.81 22h8.37c3.64 0 5.81-2.17 5.81-5.81V7.81C22 4.17 19.83 2 16.19 2Z",opacity:".4"},null,-1),l=e.createElementVNode("path",{fill:"currentColor",d:"M21.3 12.23h-3.48c-.98 0-1.85.54-2.29 1.42l-.84 1.66c-.2.4-.6.65-1.04.65h-3.28c-.31 0-.75-.07-1.04-.65l-.84-1.65a2.567 2.567 0 0 0-2.29-1.42H2.7c-.39 0-.7.31-.7.7v3.26C2 19.83 4.18 22 7.82 22h8.38c3.43 0 5.54-1.88 5.8-5.22v-3.85c0-.38-.31-.7-.7-.7Z"},null,-1),r=[c,l];function t(d,i){return e.openBlock(),e.createElementBlock("svg",o,r)}const n={render:t};exports.default=n;exports.render=t;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { openBlock as t, createElementBlock as o, createElementVNode as e } from "vue";
|
|
2
|
+
const c = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
fill: "none",
|
|
5
|
+
viewBox: "0 0 24 24"
|
|
6
|
+
}, l = /* @__PURE__ */ e("path", {
|
|
7
|
+
fill: "currentColor",
|
|
8
|
+
d: "M16.19 2H7.81C4.17 2 2 4.17 2 7.81v8.37C2 19.83 4.17 22 7.81 22h8.37c3.64 0 5.81-2.17 5.81-5.81V7.81C22 4.17 19.83 2 16.19 2Z",
|
|
9
|
+
opacity: ".4"
|
|
10
|
+
}, null, -1), n = /* @__PURE__ */ e("path", {
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
d: "M21.3 12.23h-3.48c-.98 0-1.85.54-2.29 1.42l-.84 1.66c-.2.4-.6.65-1.04.65h-3.28c-.31 0-.75-.07-1.04-.65l-.84-1.65a2.567 2.567 0 0 0-2.29-1.42H2.7c-.39 0-.7.31-.7.7v3.26C2 19.83 4.18 22 7.82 22h8.38c3.43 0 5.54-1.88 5.8-5.22v-3.85c0-.38-.31-.7-.7-.7Z"
|
|
13
|
+
}, null, -1), r = [
|
|
14
|
+
l,
|
|
15
|
+
n
|
|
16
|
+
];
|
|
17
|
+
function s(h, i) {
|
|
18
|
+
return t(), o("svg", c, r);
|
|
19
|
+
}
|
|
20
|
+
const a = { render: s };
|
|
21
|
+
export {
|
|
22
|
+
a as default,
|
|
23
|
+
s as render
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},r=e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z"},null,-1),n=e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M2 13h3.76a2 2 0 0 1 1.79 1.11l.89 1.79C9 17 10 17 10.24 17h3.53a2 2 0 0 0 1.79-1.11l.89-1.79a2 2 0 0 1 1.79-1.11h3.74"},null,-1),c=[r,n];function t(s,d){return e.openBlock(),e.createElementBlock("svg",o,c)}const l={render:t};exports.default=l;exports.render=t;
|
package/dist/index.d.ts
CHANGED
|
@@ -64,5 +64,6 @@ export { default as MaCard } from './components/card/index.vue';
|
|
|
64
64
|
export * from './components/card/types';
|
|
65
65
|
export { default as MaInputNumber } from './components/input-number/index.vue';
|
|
66
66
|
export { default as MaDrawer } from './components/drawer/index.vue';
|
|
67
|
+
export { default as MaIconButton } from './components/icon-button/index.vue';
|
|
67
68
|
export { ActionKitConfig } from './services/config';
|
|
68
69
|
export { useActionKitConfig } from './composables/config';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { MaIconButtonType, MaIconButtonSize, MaIconButtonVariant } from "../types";
|
|
2
|
+
import { ButtonTarget } from '@/components/button/types';
|
|
3
|
+
export interface MaIconButtonProps {
|
|
4
|
+
type?: MaIconButtonType;
|
|
5
|
+
icon: string;
|
|
6
|
+
href?: string;
|
|
7
|
+
target?: ButtonTarget;
|
|
8
|
+
size: MaIconButtonSize;
|
|
9
|
+
active?: boolean;
|
|
10
|
+
activeIcon?: string;
|
|
11
|
+
rounded?: boolean;
|
|
12
|
+
variant?: MaIconButtonVariant;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaIconButtonProps>, {
|
|
15
|
+
type: string;
|
|
16
|
+
active: boolean;
|
|
17
|
+
}>, {}, 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<MaIconButtonProps>, {
|
|
18
|
+
type: string;
|
|
19
|
+
active: boolean;
|
|
20
|
+
}>>>, {
|
|
21
|
+
type: "primary" | "secondary";
|
|
22
|
+
active: boolean;
|
|
23
|
+
}>, {
|
|
24
|
+
default: (_: {}) => any;
|
|
25
|
+
}>;
|
|
26
|
+
export default _default;
|
|
27
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
28
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
29
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
30
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
31
|
+
} : {
|
|
32
|
+
type: import('vue').PropType<T[K]>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
37
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
38
|
+
default: D[K];
|
|
39
|
+
} : P[K];
|
|
40
|
+
};
|
|
41
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { MaIconButtonType, MaIconButtonSize, MaIconButtonVariant } from "./types";
|
|
2
|
+
import { ButtonTarget } from '@/components/button/types';
|
|
3
|
+
export interface MaIconButtonProps {
|
|
4
|
+
type?: MaIconButtonType;
|
|
5
|
+
icon: string;
|
|
6
|
+
activeIcon?: string;
|
|
7
|
+
tooltipText?: string;
|
|
8
|
+
href?: string;
|
|
9
|
+
target?: ButtonTarget;
|
|
10
|
+
size?: MaIconButtonSize;
|
|
11
|
+
active?: boolean;
|
|
12
|
+
rounded?: boolean;
|
|
13
|
+
variant?: MaIconButtonVariant;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaIconButtonProps>, {
|
|
16
|
+
type: string;
|
|
17
|
+
size: string;
|
|
18
|
+
active: boolean;
|
|
19
|
+
rounded: boolean;
|
|
20
|
+
}>, {}, 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<MaIconButtonProps>, {
|
|
21
|
+
type: string;
|
|
22
|
+
size: string;
|
|
23
|
+
active: boolean;
|
|
24
|
+
rounded: boolean;
|
|
25
|
+
}>>>, {
|
|
26
|
+
size: "xs" | "sm" | "md" | "lg";
|
|
27
|
+
type: "primary" | "secondary";
|
|
28
|
+
rounded: boolean;
|
|
29
|
+
active: boolean;
|
|
30
|
+
}>, {
|
|
31
|
+
tooltip: (_: {}) => any;
|
|
32
|
+
default: (_: {}) => any;
|
|
33
|
+
}>;
|
|
34
|
+
export default _default;
|
|
35
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
36
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
37
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
38
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
39
|
+
} : {
|
|
40
|
+
type: import('vue').PropType<T[K]>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
45
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
46
|
+
default: D[K];
|
|
47
|
+
} : P[K];
|
|
48
|
+
};
|
|
49
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
50
|
+
new (): {
|
|
51
|
+
$slots: S;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaIconButton from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaIconButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaIconButton>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithBg: Story;
|
|
8
|
+
export declare const WithBorder: Story;
|
|
9
|
+
export declare const Rounded: Story;
|
|
10
|
+
export declare const WithoutTooltip: Story;
|
|
11
|
+
export declare const LinkButton: Story;
|
|
12
|
+
export declare const XSmall: Story;
|
|
13
|
+
export declare const Small: Story;
|
|
14
|
+
export declare const Medium: Story;
|
|
15
|
+
export declare const Large: Story;
|
|
16
|
+
export declare const Active: Story;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaIconButton from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaIconButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaIconButton>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Border: Story;
|
|
8
|
+
export declare const WithBg: Story;
|
|
9
|
+
export declare const Rounded: Story;
|
|
10
|
+
export declare const WithoutTooltip: Story;
|
|
11
|
+
export declare const LinkButton: Story;
|
|
12
|
+
export declare const XSmall: Story;
|
|
13
|
+
export declare const Small: Story;
|
|
14
|
+
export declare const Medium: Story;
|
|
15
|
+
export declare const Large: Story;
|
|
16
|
+
export declare const Active: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const MaIconButtonTypes: readonly ["primary", "secondary"];
|
|
2
|
+
export declare const MaIconButtonVariants: readonly ["default", "border", "withBg"];
|
|
3
|
+
export declare const MaIconButtonSizes: readonly ["xs", "sm", "md", "lg"];
|
|
4
|
+
export declare type MaIconButtonType = (typeof MaIconButtonTypes)[number];
|
|
5
|
+
export declare type MaIconButtonSize = (typeof MaIconButtonSizes)[number];
|
|
6
|
+
export declare type MaIconButtonVariant = (typeof MaIconButtonVariants)[number];
|
package/dist/src/index.d.ts
CHANGED
|
@@ -65,5 +65,6 @@ export { default as MaCard } from './components/card/index.vue';
|
|
|
65
65
|
export * from './components/card/types';
|
|
66
66
|
export { default as MaInputNumber } from './components/input-number/index.vue';
|
|
67
67
|
export { default as MaDrawer } from './components/drawer/index.vue';
|
|
68
|
+
export { default as MaIconButton } from './components/icon-button/index.vue';
|
|
68
69
|
export { ActionKitConfig } from './services/config';
|
|
69
70
|
export { useActionKitConfig } from './composables/config';
|