@avyn/initials-avatar-vue 1.0.0
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/index.cjs +97 -0
- package/dist/index.d.cts +147 -0
- package/dist/index.d.ts +147 -0
- package/dist/index.js +71 -0
- package/package.json +36 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
InitialsAvatar: () => InitialsAvatar,
|
|
24
|
+
InitialsAvatarPlugin: () => InitialsAvatarPlugin,
|
|
25
|
+
default: () => index_default
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(index_exports);
|
|
28
|
+
var import_vue = require("vue");
|
|
29
|
+
var import_initials_avatar = require("@avyn/initials-avatar");
|
|
30
|
+
var DEFAULT_SIZE = 96;
|
|
31
|
+
var InitialsAvatar = (0, import_vue.defineComponent)({
|
|
32
|
+
name: "InitialsAvatar",
|
|
33
|
+
props: {
|
|
34
|
+
name: { type: String, required: true },
|
|
35
|
+
alt: { type: String, default: void 0 },
|
|
36
|
+
as: { type: String, default: "img" },
|
|
37
|
+
title: { type: String, default: void 0 },
|
|
38
|
+
size: { type: Number, default: void 0 },
|
|
39
|
+
backgroundColor: { type: String, default: void 0 },
|
|
40
|
+
fontColor: { type: String, default: void 0 },
|
|
41
|
+
fontSize: { type: Number, default: void 0 },
|
|
42
|
+
fontFamily: { type: String, default: void 0 },
|
|
43
|
+
borderWidth: { type: Number, default: void 0 },
|
|
44
|
+
borderColor: { type: String, default: void 0 },
|
|
45
|
+
borderRadius: { type: Number, default: void 0 },
|
|
46
|
+
bold: { type: Boolean, default: void 0 },
|
|
47
|
+
initialsOverride: { type: String, default: void 0 }
|
|
48
|
+
},
|
|
49
|
+
setup(props, { attrs }) {
|
|
50
|
+
const avatarOptions = (0, import_vue.computed)(() => ({
|
|
51
|
+
size: props.size,
|
|
52
|
+
backgroundColor: props.backgroundColor,
|
|
53
|
+
fontColor: props.fontColor,
|
|
54
|
+
fontSize: props.fontSize,
|
|
55
|
+
fontFamily: props.fontFamily,
|
|
56
|
+
borderWidth: props.borderWidth,
|
|
57
|
+
borderColor: props.borderColor,
|
|
58
|
+
borderRadius: props.borderRadius,
|
|
59
|
+
bold: props.bold,
|
|
60
|
+
initialsOverride: props.initialsOverride
|
|
61
|
+
}));
|
|
62
|
+
const dataUri = (0, import_vue.computed)(() => (0, import_initials_avatar.createAvatarDataUri)(props.name, avatarOptions.value));
|
|
63
|
+
const svgMarkup = (0, import_vue.computed)(() => (0, import_initials_avatar.createAvatarSvg)(props.name, avatarOptions.value));
|
|
64
|
+
const sizeValue = (0, import_vue.computed)(() => props.size ?? DEFAULT_SIZE);
|
|
65
|
+
const altText = (0, import_vue.computed)(() => props.alt ?? `Avatar for ${props.name || (0, import_initials_avatar.getInitials)(props.name)}`);
|
|
66
|
+
return () => {
|
|
67
|
+
if (props.as === "svg") {
|
|
68
|
+
return (0, import_vue.h)("span", {
|
|
69
|
+
...attrs,
|
|
70
|
+
innerHTML: svgMarkup.value,
|
|
71
|
+
role: "img",
|
|
72
|
+
"aria-label": altText.value,
|
|
73
|
+
title: props.title
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
return (0, import_vue.h)("img", {
|
|
77
|
+
...attrs,
|
|
78
|
+
src: dataUri.value,
|
|
79
|
+
width: sizeValue.value,
|
|
80
|
+
height: sizeValue.value,
|
|
81
|
+
alt: altText.value,
|
|
82
|
+
title: props.title
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
var InitialsAvatarPlugin = {
|
|
88
|
+
install(app) {
|
|
89
|
+
app.component("InitialsAvatar", InitialsAvatar);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
var index_default = InitialsAvatar;
|
|
93
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
94
|
+
0 && (module.exports = {
|
|
95
|
+
InitialsAvatar,
|
|
96
|
+
InitialsAvatarPlugin
|
|
97
|
+
});
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { PropType, App } from 'vue';
|
|
3
|
+
import { AvatarOptions } from '@avyn/initials-avatar';
|
|
4
|
+
export { AvatarOptions } from '@avyn/initials-avatar';
|
|
5
|
+
|
|
6
|
+
type InitialsAvatarProps = AvatarOptions & {
|
|
7
|
+
name: string;
|
|
8
|
+
alt?: string;
|
|
9
|
+
as?: 'img' | 'svg';
|
|
10
|
+
title?: string;
|
|
11
|
+
};
|
|
12
|
+
declare const InitialsAvatar: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
13
|
+
name: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
alt: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: undefined;
|
|
20
|
+
};
|
|
21
|
+
as: {
|
|
22
|
+
type: PropType<"img" | "svg">;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
title: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: undefined;
|
|
28
|
+
};
|
|
29
|
+
size: {
|
|
30
|
+
type: NumberConstructor;
|
|
31
|
+
default: undefined;
|
|
32
|
+
};
|
|
33
|
+
backgroundColor: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: undefined;
|
|
36
|
+
};
|
|
37
|
+
fontColor: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: undefined;
|
|
40
|
+
};
|
|
41
|
+
fontSize: {
|
|
42
|
+
type: NumberConstructor;
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
45
|
+
fontFamily: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: undefined;
|
|
48
|
+
};
|
|
49
|
+
borderWidth: {
|
|
50
|
+
type: NumberConstructor;
|
|
51
|
+
default: undefined;
|
|
52
|
+
};
|
|
53
|
+
borderColor: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: undefined;
|
|
56
|
+
};
|
|
57
|
+
borderRadius: {
|
|
58
|
+
type: NumberConstructor;
|
|
59
|
+
default: undefined;
|
|
60
|
+
};
|
|
61
|
+
bold: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: undefined;
|
|
64
|
+
};
|
|
65
|
+
initialsOverride: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: undefined;
|
|
68
|
+
};
|
|
69
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
72
|
+
name: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
required: true;
|
|
75
|
+
};
|
|
76
|
+
alt: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: undefined;
|
|
79
|
+
};
|
|
80
|
+
as: {
|
|
81
|
+
type: PropType<"img" | "svg">;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
title: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
default: undefined;
|
|
87
|
+
};
|
|
88
|
+
size: {
|
|
89
|
+
type: NumberConstructor;
|
|
90
|
+
default: undefined;
|
|
91
|
+
};
|
|
92
|
+
backgroundColor: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
default: undefined;
|
|
95
|
+
};
|
|
96
|
+
fontColor: {
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
default: undefined;
|
|
99
|
+
};
|
|
100
|
+
fontSize: {
|
|
101
|
+
type: NumberConstructor;
|
|
102
|
+
default: undefined;
|
|
103
|
+
};
|
|
104
|
+
fontFamily: {
|
|
105
|
+
type: StringConstructor;
|
|
106
|
+
default: undefined;
|
|
107
|
+
};
|
|
108
|
+
borderWidth: {
|
|
109
|
+
type: NumberConstructor;
|
|
110
|
+
default: undefined;
|
|
111
|
+
};
|
|
112
|
+
borderColor: {
|
|
113
|
+
type: StringConstructor;
|
|
114
|
+
default: undefined;
|
|
115
|
+
};
|
|
116
|
+
borderRadius: {
|
|
117
|
+
type: NumberConstructor;
|
|
118
|
+
default: undefined;
|
|
119
|
+
};
|
|
120
|
+
bold: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: undefined;
|
|
123
|
+
};
|
|
124
|
+
initialsOverride: {
|
|
125
|
+
type: StringConstructor;
|
|
126
|
+
default: undefined;
|
|
127
|
+
};
|
|
128
|
+
}>> & Readonly<{}>, {
|
|
129
|
+
alt: string;
|
|
130
|
+
as: "img" | "svg";
|
|
131
|
+
title: string;
|
|
132
|
+
size: number;
|
|
133
|
+
backgroundColor: string;
|
|
134
|
+
fontColor: string;
|
|
135
|
+
fontSize: number;
|
|
136
|
+
fontFamily: string;
|
|
137
|
+
borderWidth: number;
|
|
138
|
+
borderColor: string;
|
|
139
|
+
borderRadius: number;
|
|
140
|
+
bold: boolean;
|
|
141
|
+
initialsOverride: string;
|
|
142
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
143
|
+
declare const InitialsAvatarPlugin: {
|
|
144
|
+
install(app: App): void;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
export { InitialsAvatar, InitialsAvatarPlugin, type InitialsAvatarProps, InitialsAvatar as default };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { PropType, App } from 'vue';
|
|
3
|
+
import { AvatarOptions } from '@avyn/initials-avatar';
|
|
4
|
+
export { AvatarOptions } from '@avyn/initials-avatar';
|
|
5
|
+
|
|
6
|
+
type InitialsAvatarProps = AvatarOptions & {
|
|
7
|
+
name: string;
|
|
8
|
+
alt?: string;
|
|
9
|
+
as?: 'img' | 'svg';
|
|
10
|
+
title?: string;
|
|
11
|
+
};
|
|
12
|
+
declare const InitialsAvatar: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
13
|
+
name: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
alt: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: undefined;
|
|
20
|
+
};
|
|
21
|
+
as: {
|
|
22
|
+
type: PropType<"img" | "svg">;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
title: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: undefined;
|
|
28
|
+
};
|
|
29
|
+
size: {
|
|
30
|
+
type: NumberConstructor;
|
|
31
|
+
default: undefined;
|
|
32
|
+
};
|
|
33
|
+
backgroundColor: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: undefined;
|
|
36
|
+
};
|
|
37
|
+
fontColor: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: undefined;
|
|
40
|
+
};
|
|
41
|
+
fontSize: {
|
|
42
|
+
type: NumberConstructor;
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
45
|
+
fontFamily: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: undefined;
|
|
48
|
+
};
|
|
49
|
+
borderWidth: {
|
|
50
|
+
type: NumberConstructor;
|
|
51
|
+
default: undefined;
|
|
52
|
+
};
|
|
53
|
+
borderColor: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: undefined;
|
|
56
|
+
};
|
|
57
|
+
borderRadius: {
|
|
58
|
+
type: NumberConstructor;
|
|
59
|
+
default: undefined;
|
|
60
|
+
};
|
|
61
|
+
bold: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: undefined;
|
|
64
|
+
};
|
|
65
|
+
initialsOverride: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: undefined;
|
|
68
|
+
};
|
|
69
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
72
|
+
name: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
required: true;
|
|
75
|
+
};
|
|
76
|
+
alt: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: undefined;
|
|
79
|
+
};
|
|
80
|
+
as: {
|
|
81
|
+
type: PropType<"img" | "svg">;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
title: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
default: undefined;
|
|
87
|
+
};
|
|
88
|
+
size: {
|
|
89
|
+
type: NumberConstructor;
|
|
90
|
+
default: undefined;
|
|
91
|
+
};
|
|
92
|
+
backgroundColor: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
default: undefined;
|
|
95
|
+
};
|
|
96
|
+
fontColor: {
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
default: undefined;
|
|
99
|
+
};
|
|
100
|
+
fontSize: {
|
|
101
|
+
type: NumberConstructor;
|
|
102
|
+
default: undefined;
|
|
103
|
+
};
|
|
104
|
+
fontFamily: {
|
|
105
|
+
type: StringConstructor;
|
|
106
|
+
default: undefined;
|
|
107
|
+
};
|
|
108
|
+
borderWidth: {
|
|
109
|
+
type: NumberConstructor;
|
|
110
|
+
default: undefined;
|
|
111
|
+
};
|
|
112
|
+
borderColor: {
|
|
113
|
+
type: StringConstructor;
|
|
114
|
+
default: undefined;
|
|
115
|
+
};
|
|
116
|
+
borderRadius: {
|
|
117
|
+
type: NumberConstructor;
|
|
118
|
+
default: undefined;
|
|
119
|
+
};
|
|
120
|
+
bold: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: undefined;
|
|
123
|
+
};
|
|
124
|
+
initialsOverride: {
|
|
125
|
+
type: StringConstructor;
|
|
126
|
+
default: undefined;
|
|
127
|
+
};
|
|
128
|
+
}>> & Readonly<{}>, {
|
|
129
|
+
alt: string;
|
|
130
|
+
as: "img" | "svg";
|
|
131
|
+
title: string;
|
|
132
|
+
size: number;
|
|
133
|
+
backgroundColor: string;
|
|
134
|
+
fontColor: string;
|
|
135
|
+
fontSize: number;
|
|
136
|
+
fontFamily: string;
|
|
137
|
+
borderWidth: number;
|
|
138
|
+
borderColor: string;
|
|
139
|
+
borderRadius: number;
|
|
140
|
+
bold: boolean;
|
|
141
|
+
initialsOverride: string;
|
|
142
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
143
|
+
declare const InitialsAvatarPlugin: {
|
|
144
|
+
install(app: App): void;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
export { InitialsAvatar, InitialsAvatarPlugin, type InitialsAvatarProps, InitialsAvatar as default };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import { computed, defineComponent, h } from "vue";
|
|
3
|
+
import { createAvatarDataUri, createAvatarSvg, getInitials } from "@avyn/initials-avatar";
|
|
4
|
+
var DEFAULT_SIZE = 96;
|
|
5
|
+
var InitialsAvatar = defineComponent({
|
|
6
|
+
name: "InitialsAvatar",
|
|
7
|
+
props: {
|
|
8
|
+
name: { type: String, required: true },
|
|
9
|
+
alt: { type: String, default: void 0 },
|
|
10
|
+
as: { type: String, default: "img" },
|
|
11
|
+
title: { type: String, default: void 0 },
|
|
12
|
+
size: { type: Number, default: void 0 },
|
|
13
|
+
backgroundColor: { type: String, default: void 0 },
|
|
14
|
+
fontColor: { type: String, default: void 0 },
|
|
15
|
+
fontSize: { type: Number, default: void 0 },
|
|
16
|
+
fontFamily: { type: String, default: void 0 },
|
|
17
|
+
borderWidth: { type: Number, default: void 0 },
|
|
18
|
+
borderColor: { type: String, default: void 0 },
|
|
19
|
+
borderRadius: { type: Number, default: void 0 },
|
|
20
|
+
bold: { type: Boolean, default: void 0 },
|
|
21
|
+
initialsOverride: { type: String, default: void 0 }
|
|
22
|
+
},
|
|
23
|
+
setup(props, { attrs }) {
|
|
24
|
+
const avatarOptions = computed(() => ({
|
|
25
|
+
size: props.size,
|
|
26
|
+
backgroundColor: props.backgroundColor,
|
|
27
|
+
fontColor: props.fontColor,
|
|
28
|
+
fontSize: props.fontSize,
|
|
29
|
+
fontFamily: props.fontFamily,
|
|
30
|
+
borderWidth: props.borderWidth,
|
|
31
|
+
borderColor: props.borderColor,
|
|
32
|
+
borderRadius: props.borderRadius,
|
|
33
|
+
bold: props.bold,
|
|
34
|
+
initialsOverride: props.initialsOverride
|
|
35
|
+
}));
|
|
36
|
+
const dataUri = computed(() => createAvatarDataUri(props.name, avatarOptions.value));
|
|
37
|
+
const svgMarkup = computed(() => createAvatarSvg(props.name, avatarOptions.value));
|
|
38
|
+
const sizeValue = computed(() => props.size ?? DEFAULT_SIZE);
|
|
39
|
+
const altText = computed(() => props.alt ?? `Avatar for ${props.name || getInitials(props.name)}`);
|
|
40
|
+
return () => {
|
|
41
|
+
if (props.as === "svg") {
|
|
42
|
+
return h("span", {
|
|
43
|
+
...attrs,
|
|
44
|
+
innerHTML: svgMarkup.value,
|
|
45
|
+
role: "img",
|
|
46
|
+
"aria-label": altText.value,
|
|
47
|
+
title: props.title
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
return h("img", {
|
|
51
|
+
...attrs,
|
|
52
|
+
src: dataUri.value,
|
|
53
|
+
width: sizeValue.value,
|
|
54
|
+
height: sizeValue.value,
|
|
55
|
+
alt: altText.value,
|
|
56
|
+
title: props.title
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
var InitialsAvatarPlugin = {
|
|
62
|
+
install(app) {
|
|
63
|
+
app.component("InitialsAvatar", InitialsAvatar);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
var index_default = InitialsAvatar;
|
|
67
|
+
export {
|
|
68
|
+
InitialsAvatar,
|
|
69
|
+
InitialsAvatarPlugin,
|
|
70
|
+
index_default as default
|
|
71
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@avyn/initials-avatar-vue",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Vue 3 component wrapper for @avyn/initials-avatar",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.cjs",
|
|
7
|
+
"module": "dist/index.mjs",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
|
+
"require": "./dist/index.cjs",
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
14
|
+
},
|
|
15
|
+
"./package.json": "./package.json"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsup src/index.ts --format esm,cjs --dts --clean"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"vue": "^3.3.0"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@avyn/initials-avatar": "1.0.0"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"tsup": "^8.2.4",
|
|
31
|
+
"typescript": "^5.6.3"
|
|
32
|
+
},
|
|
33
|
+
"sideEffects": false,
|
|
34
|
+
"author": "@avyn",
|
|
35
|
+
"license": "MIT"
|
|
36
|
+
}
|