@mekari/pixel3-avatar 0.0.16-dev.0 → 0.0.17-dev.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/avatar-group.mjs +3 -4
- package/dist/avatar.js +30 -26
- package/dist/avatar.mjs +4 -4
- package/dist/{chunk-FPZ3IFAW.mjs → chunk-5GCWM6MN.mjs} +1 -1
- package/dist/chunk-BERKRG3D.mjs +49 -0
- package/dist/{chunk-7XAF53OT.mjs → chunk-HGS2OTWQ.mjs} +1 -10
- package/dist/{chunk-ZK47OSEJ.mjs → chunk-VD5A4EA5.mjs} +2 -2
- package/dist/{chunk-G4FNYLV7.mjs → chunk-YULMVSHH.mjs} +1 -1
- package/dist/index.js +33 -29
- package/dist/index.mjs +5 -5
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/modules/avatar.connects.js +1 -18
- package/dist/modules/avatar.connects.mjs +1 -2
- package/dist/modules/avatar.hooks.js +1 -18
- package/dist/modules/avatar.hooks.mjs +2 -3
- package/dist/modules/avatar.utils.d.mts +1 -1
- package/dist/modules/avatar.utils.d.ts +1 -1
- package/dist/modules/avatar.utils.js +2 -2
- package/dist/modules/avatar.utils.mjs +1 -1
- package/package.json +4 -4
- package/dist/chunk-GRS6D3IB.mjs +0 -36
package/dist/avatar-group.mjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MpAvatarGroup
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5GCWM6MN.mjs";
|
|
4
4
|
import "./chunk-CY2Z6I23.mjs";
|
|
5
5
|
import "./chunk-3MO4HQYF.mjs";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-ZK47OSEJ.mjs";
|
|
6
|
+
import "./chunk-YULMVSHH.mjs";
|
|
7
|
+
import "./chunk-HGS2OTWQ.mjs";
|
|
9
8
|
import "./chunk-QZ7VFGWC.mjs";
|
|
10
9
|
export {
|
|
11
10
|
MpAvatarGroup
|
package/dist/avatar.js
CHANGED
|
@@ -83,32 +83,11 @@ var import_recipes = require("@mekari/pixel3-styled-system/recipes");
|
|
|
83
83
|
var import_vue = require("vue");
|
|
84
84
|
var import_pixel3_utils2 = require("@mekari/pixel3-utils");
|
|
85
85
|
var import_tokens = require("@mekari/pixel3-styled-system/tokens");
|
|
86
|
-
|
|
87
|
-
// src/modules/avatar.utils.ts
|
|
88
|
-
var getInitial = /* @__PURE__ */ __name((value) => {
|
|
89
|
-
const [first, last] = value.split(" ");
|
|
90
|
-
if (first && last)
|
|
91
|
-
return `${first.charAt(0)}${last.charAt(0)}`;
|
|
92
|
-
else
|
|
93
|
-
return first.charAt(0);
|
|
94
|
-
}, "getInitial");
|
|
95
|
-
var background = ["gray", "sky", "teal", "violet", "amber", "rose", "stone", "lime", "pink"];
|
|
96
|
-
var getColor = /* @__PURE__ */ __name(() => {
|
|
97
|
-
const order = Math.floor(Math.random() * background.length);
|
|
98
|
-
return `${background[order]}.400`;
|
|
99
|
-
}, "getColor");
|
|
100
|
-
var isColorInList = /* @__PURE__ */ __name((value) => {
|
|
101
|
-
return background.includes(value);
|
|
102
|
-
}, "isColorInList");
|
|
103
|
-
|
|
104
|
-
// src/modules/avatar.connects.ts
|
|
105
86
|
function avatarConnect(state, emit, classes) {
|
|
106
87
|
const {
|
|
107
88
|
id,
|
|
108
89
|
name,
|
|
109
|
-
borderColor,
|
|
110
90
|
hasBorder,
|
|
111
|
-
variantColor,
|
|
112
91
|
src,
|
|
113
92
|
icon,
|
|
114
93
|
iconVariant,
|
|
@@ -121,7 +100,6 @@ function avatarConnect(state, emit, classes) {
|
|
|
121
100
|
var _a, _b;
|
|
122
101
|
return !!((_b = (_a = (0, import_vue.getCurrentInstance)()) == null ? void 0 : _a.vnode.props) == null ? void 0 : _b.onClick);
|
|
123
102
|
}).value;
|
|
124
|
-
const isRandomColor = isColorInList(variantColor);
|
|
125
103
|
return {
|
|
126
104
|
name,
|
|
127
105
|
src,
|
|
@@ -133,9 +111,7 @@ function avatarConnect(state, emit, classes) {
|
|
|
133
111
|
class: classes.root,
|
|
134
112
|
style: {
|
|
135
113
|
"--mp-avatar--cursor": isClickable ? "pointer" : void 0,
|
|
136
|
-
"--mp-avatar--margin-left": `calc(${import_tokens.token.var(`spacing.${spacing}`)} * -1)
|
|
137
|
-
"--mp-avatar--border-color": import_tokens.token.var(`colors.${hasBorder ? borderColor != null ? borderColor : "white" : "white"}`),
|
|
138
|
-
"--mp-avatar--background-color": import_tokens.token.var(`colors.${isRandomColor ? variantColor : getColor()}`)
|
|
114
|
+
"--mp-avatar--margin-left": `calc(${import_tokens.token.var(`spacing.${spacing}`)} * -1)`
|
|
139
115
|
},
|
|
140
116
|
"data-has-border": hasBorder,
|
|
141
117
|
"data-pixel-component": "MpAvatar"
|
|
@@ -188,7 +164,26 @@ var useAvatar = /* @__PURE__ */ __name((props, emit) => {
|
|
|
188
164
|
return (0, import_vue2.computed)(() => avatarConnect(context.value, emit, classes));
|
|
189
165
|
}, "useAvatar");
|
|
190
166
|
|
|
167
|
+
// src/modules/avatar.utils.ts
|
|
168
|
+
var getInitial = /* @__PURE__ */ __name((value) => {
|
|
169
|
+
const [first, last] = value.split(" ");
|
|
170
|
+
if (first && last)
|
|
171
|
+
return `${first.charAt(0)}${last.charAt(0)}`;
|
|
172
|
+
else
|
|
173
|
+
return first.charAt(0);
|
|
174
|
+
}, "getInitial");
|
|
175
|
+
var background = ["gray", "sky", "teal", "violet", "amber", "rose", "stone", "lime", "pink"];
|
|
176
|
+
var getColor = /* @__PURE__ */ __name((isNextTheme) => {
|
|
177
|
+
const order = Math.floor(Math.random() * background.length);
|
|
178
|
+
return isNextTheme ? `chart.cat0${order + 1}` : `${background[order]}.400`;
|
|
179
|
+
}, "getColor");
|
|
180
|
+
var isColorInList = /* @__PURE__ */ __name((value) => {
|
|
181
|
+
return background.includes(value);
|
|
182
|
+
}, "isColorInList");
|
|
183
|
+
|
|
191
184
|
// src/avatar.tsx
|
|
185
|
+
var import_pixel3_utils3 = require("@mekari/pixel3-utils");
|
|
186
|
+
var import_tokens2 = require("@mekari/pixel3-styled-system/tokens");
|
|
192
187
|
var import_pixel3_icon = require("@mekari/pixel3-icon");
|
|
193
188
|
|
|
194
189
|
// src/avatar-fallback.tsx
|
|
@@ -228,7 +223,16 @@ var MpAvatar = (0, import_vue8.defineComponent)({
|
|
|
228
223
|
emit
|
|
229
224
|
}) {
|
|
230
225
|
const api = useAvatar(props, emit);
|
|
231
|
-
|
|
226
|
+
const {
|
|
227
|
+
isNextTheme
|
|
228
|
+
} = (0, import_pixel3_utils3.usePixelTheme)();
|
|
229
|
+
const isRandomColor = isColorInList(props.variantColor);
|
|
230
|
+
return () => (0, import_vue7.createVNode)("div", (0, import_vue7.mergeProps)(api.value.rootProps, {
|
|
231
|
+
"style": {
|
|
232
|
+
"--mp-avatar--border-color": import_tokens2.token.var(`colors.${props.hasBorder ? props.borderColor ? props.borderColor : isNextTheme.value ? "border.inverse" : "white" : isNextTheme.value ? "border.inverse" : "white"}`),
|
|
233
|
+
"--mp-avatar--background-color": import_tokens2.token.var(`colors.${isRandomColor ? props.variantColor : getColor(isNextTheme.value)}`)
|
|
234
|
+
}
|
|
235
|
+
}), [api.value.src ? (0, import_vue7.createVNode)(MpAvatarImage, api.value.imageProps, null) : void 0, !api.value.icon && !api.value.src || api.value.src && !api.value.isLoaded ? api.value.name ? getInitial(api.value.name) : (0, import_vue7.createVNode)(MpAvatarFallback, api.value.fallbackProps, null) : void 0, api.value.icon && (0, import_vue7.createVNode)(import_pixel3_icon.MpIcon, api.value.iconProps, null)]);
|
|
232
236
|
}
|
|
233
237
|
});
|
|
234
238
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/avatar.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MpAvatar
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BERKRG3D.mjs";
|
|
4
|
+
import "./chunk-VD5A4EA5.mjs";
|
|
4
5
|
import "./chunk-NKXS73IR.mjs";
|
|
5
6
|
import "./chunk-3MO4HQYF.mjs";
|
|
6
7
|
import "./chunk-4VNSI4PL.mjs";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-ZK47OSEJ.mjs";
|
|
8
|
+
import "./chunk-YULMVSHH.mjs";
|
|
9
|
+
import "./chunk-HGS2OTWQ.mjs";
|
|
10
10
|
import "./chunk-QZ7VFGWC.mjs";
|
|
11
11
|
export {
|
|
12
12
|
MpAvatar
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getColor,
|
|
3
|
+
getInitial,
|
|
4
|
+
isColorInList
|
|
5
|
+
} from "./chunk-VD5A4EA5.mjs";
|
|
6
|
+
import {
|
|
7
|
+
MpAvatarFallback
|
|
8
|
+
} from "./chunk-NKXS73IR.mjs";
|
|
9
|
+
import {
|
|
10
|
+
avatarEmits,
|
|
11
|
+
avatarProps
|
|
12
|
+
} from "./chunk-3MO4HQYF.mjs";
|
|
13
|
+
import {
|
|
14
|
+
MpAvatarImage
|
|
15
|
+
} from "./chunk-4VNSI4PL.mjs";
|
|
16
|
+
import {
|
|
17
|
+
useAvatar
|
|
18
|
+
} from "./chunk-YULMVSHH.mjs";
|
|
19
|
+
|
|
20
|
+
// src/avatar.tsx
|
|
21
|
+
import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
|
22
|
+
import { defineComponent } from "vue";
|
|
23
|
+
import { usePixelTheme } from "@mekari/pixel3-utils";
|
|
24
|
+
import { token } from "@mekari/pixel3-styled-system/tokens";
|
|
25
|
+
import { MpIcon } from "@mekari/pixel3-icon";
|
|
26
|
+
var MpAvatar = defineComponent({
|
|
27
|
+
name: "MpAvatar",
|
|
28
|
+
props: avatarProps,
|
|
29
|
+
emits: avatarEmits,
|
|
30
|
+
setup(props, {
|
|
31
|
+
emit
|
|
32
|
+
}) {
|
|
33
|
+
const api = useAvatar(props, emit);
|
|
34
|
+
const {
|
|
35
|
+
isNextTheme
|
|
36
|
+
} = usePixelTheme();
|
|
37
|
+
const isRandomColor = isColorInList(props.variantColor);
|
|
38
|
+
return () => _createVNode("div", _mergeProps(api.value.rootProps, {
|
|
39
|
+
"style": {
|
|
40
|
+
"--mp-avatar--border-color": token.var(`colors.${props.hasBorder ? props.borderColor ? props.borderColor : isNextTheme.value ? "border.inverse" : "white" : isNextTheme.value ? "border.inverse" : "white"}`),
|
|
41
|
+
"--mp-avatar--background-color": token.var(`colors.${isRandomColor ? props.variantColor : getColor(isNextTheme.value)}`)
|
|
42
|
+
}
|
|
43
|
+
}), [api.value.src ? _createVNode(MpAvatarImage, api.value.imageProps, null) : void 0, !api.value.icon && !api.value.src || api.value.src && !api.value.isLoaded ? api.value.name ? getInitial(api.value.name) : _createVNode(MpAvatarFallback, api.value.fallbackProps, null) : void 0, api.value.icon && _createVNode(MpIcon, api.value.iconProps, null)]);
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export {
|
|
48
|
+
MpAvatar
|
|
49
|
+
};
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getColor,
|
|
3
|
-
isColorInList
|
|
4
|
-
} from "./chunk-ZK47OSEJ.mjs";
|
|
5
1
|
import {
|
|
6
2
|
__name
|
|
7
3
|
} from "./chunk-QZ7VFGWC.mjs";
|
|
@@ -14,9 +10,7 @@ function avatarConnect(state, emit, classes) {
|
|
|
14
10
|
const {
|
|
15
11
|
id,
|
|
16
12
|
name,
|
|
17
|
-
borderColor,
|
|
18
13
|
hasBorder,
|
|
19
|
-
variantColor,
|
|
20
14
|
src,
|
|
21
15
|
icon,
|
|
22
16
|
iconVariant,
|
|
@@ -29,7 +23,6 @@ function avatarConnect(state, emit, classes) {
|
|
|
29
23
|
var _a, _b;
|
|
30
24
|
return !!((_b = (_a = getCurrentInstance()) == null ? void 0 : _a.vnode.props) == null ? void 0 : _b.onClick);
|
|
31
25
|
}).value;
|
|
32
|
-
const isRandomColor = isColorInList(variantColor);
|
|
33
26
|
return {
|
|
34
27
|
name,
|
|
35
28
|
src,
|
|
@@ -41,9 +34,7 @@ function avatarConnect(state, emit, classes) {
|
|
|
41
34
|
class: classes.root,
|
|
42
35
|
style: {
|
|
43
36
|
"--mp-avatar--cursor": isClickable ? "pointer" : void 0,
|
|
44
|
-
"--mp-avatar--margin-left": `calc(${token.var(`spacing.${spacing}`)} * -1)
|
|
45
|
-
"--mp-avatar--border-color": token.var(`colors.${hasBorder ? borderColor != null ? borderColor : "white" : "white"}`),
|
|
46
|
-
"--mp-avatar--background-color": token.var(`colors.${isRandomColor ? variantColor : getColor()}`)
|
|
37
|
+
"--mp-avatar--margin-left": `calc(${token.var(`spacing.${spacing}`)} * -1)`
|
|
47
38
|
},
|
|
48
39
|
"data-has-border": hasBorder,
|
|
49
40
|
"data-pixel-component": "MpAvatar"
|
|
@@ -11,9 +11,9 @@ var getInitial = /* @__PURE__ */ __name((value) => {
|
|
|
11
11
|
return first.charAt(0);
|
|
12
12
|
}, "getInitial");
|
|
13
13
|
var background = ["gray", "sky", "teal", "violet", "amber", "rose", "stone", "lime", "pink"];
|
|
14
|
-
var getColor = /* @__PURE__ */ __name(() => {
|
|
14
|
+
var getColor = /* @__PURE__ */ __name((isNextTheme) => {
|
|
15
15
|
const order = Math.floor(Math.random() * background.length);
|
|
16
|
-
return `${background[order]}.400`;
|
|
16
|
+
return isNextTheme ? `chart.cat0${order + 1}` : `${background[order]}.400`;
|
|
17
17
|
}, "getColor");
|
|
18
18
|
var isColorInList = /* @__PURE__ */ __name((value) => {
|
|
19
19
|
return background.includes(value);
|
package/dist/index.js
CHANGED
|
@@ -106,32 +106,11 @@ var import_recipes = require("@mekari/pixel3-styled-system/recipes");
|
|
|
106
106
|
var import_vue = require("vue");
|
|
107
107
|
var import_pixel3_utils2 = require("@mekari/pixel3-utils");
|
|
108
108
|
var import_tokens = require("@mekari/pixel3-styled-system/tokens");
|
|
109
|
-
|
|
110
|
-
// src/modules/avatar.utils.ts
|
|
111
|
-
var getInitial = /* @__PURE__ */ __name((value) => {
|
|
112
|
-
const [first, last] = value.split(" ");
|
|
113
|
-
if (first && last)
|
|
114
|
-
return `${first.charAt(0)}${last.charAt(0)}`;
|
|
115
|
-
else
|
|
116
|
-
return first.charAt(0);
|
|
117
|
-
}, "getInitial");
|
|
118
|
-
var background = ["gray", "sky", "teal", "violet", "amber", "rose", "stone", "lime", "pink"];
|
|
119
|
-
var getColor = /* @__PURE__ */ __name(() => {
|
|
120
|
-
const order = Math.floor(Math.random() * background.length);
|
|
121
|
-
return `${background[order]}.400`;
|
|
122
|
-
}, "getColor");
|
|
123
|
-
var isColorInList = /* @__PURE__ */ __name((value) => {
|
|
124
|
-
return background.includes(value);
|
|
125
|
-
}, "isColorInList");
|
|
126
|
-
|
|
127
|
-
// src/modules/avatar.connects.ts
|
|
128
109
|
function avatarConnect(state, emit, classes) {
|
|
129
110
|
const {
|
|
130
111
|
id,
|
|
131
112
|
name,
|
|
132
|
-
borderColor,
|
|
133
113
|
hasBorder,
|
|
134
|
-
variantColor,
|
|
135
114
|
src,
|
|
136
115
|
icon,
|
|
137
116
|
iconVariant,
|
|
@@ -144,7 +123,6 @@ function avatarConnect(state, emit, classes) {
|
|
|
144
123
|
var _a, _b;
|
|
145
124
|
return !!((_b = (_a = (0, import_vue.getCurrentInstance)()) == null ? void 0 : _a.vnode.props) == null ? void 0 : _b.onClick);
|
|
146
125
|
}).value;
|
|
147
|
-
const isRandomColor = isColorInList(variantColor);
|
|
148
126
|
return {
|
|
149
127
|
name,
|
|
150
128
|
src,
|
|
@@ -156,9 +134,7 @@ function avatarConnect(state, emit, classes) {
|
|
|
156
134
|
class: classes.root,
|
|
157
135
|
style: {
|
|
158
136
|
"--mp-avatar--cursor": isClickable ? "pointer" : void 0,
|
|
159
|
-
"--mp-avatar--margin-left": `calc(${import_tokens.token.var(`spacing.${spacing}`)} * -1)
|
|
160
|
-
"--mp-avatar--border-color": import_tokens.token.var(`colors.${hasBorder ? borderColor != null ? borderColor : "white" : "white"}`),
|
|
161
|
-
"--mp-avatar--background-color": import_tokens.token.var(`colors.${isRandomColor ? variantColor : getColor()}`)
|
|
137
|
+
"--mp-avatar--margin-left": `calc(${import_tokens.token.var(`spacing.${spacing}`)} * -1)`
|
|
162
138
|
},
|
|
163
139
|
"data-has-border": hasBorder,
|
|
164
140
|
"data-pixel-component": "MpAvatar"
|
|
@@ -244,7 +220,26 @@ var useAvatarGroup = /* @__PURE__ */ __name((props, emit) => {
|
|
|
244
220
|
return (0, import_vue2.computed)(() => avatarGroupConnect(context.value, emit, classes));
|
|
245
221
|
}, "useAvatarGroup");
|
|
246
222
|
|
|
223
|
+
// src/modules/avatar.utils.ts
|
|
224
|
+
var getInitial = /* @__PURE__ */ __name((value) => {
|
|
225
|
+
const [first, last] = value.split(" ");
|
|
226
|
+
if (first && last)
|
|
227
|
+
return `${first.charAt(0)}${last.charAt(0)}`;
|
|
228
|
+
else
|
|
229
|
+
return first.charAt(0);
|
|
230
|
+
}, "getInitial");
|
|
231
|
+
var background = ["gray", "sky", "teal", "violet", "amber", "rose", "stone", "lime", "pink"];
|
|
232
|
+
var getColor = /* @__PURE__ */ __name((isNextTheme) => {
|
|
233
|
+
const order = Math.floor(Math.random() * background.length);
|
|
234
|
+
return isNextTheme ? `chart.cat0${order + 1}` : `${background[order]}.400`;
|
|
235
|
+
}, "getColor");
|
|
236
|
+
var isColorInList = /* @__PURE__ */ __name((value) => {
|
|
237
|
+
return background.includes(value);
|
|
238
|
+
}, "isColorInList");
|
|
239
|
+
|
|
247
240
|
// src/avatar.tsx
|
|
241
|
+
var import_pixel3_utils3 = require("@mekari/pixel3-utils");
|
|
242
|
+
var import_tokens2 = require("@mekari/pixel3-styled-system/tokens");
|
|
248
243
|
var import_pixel3_icon = require("@mekari/pixel3-icon");
|
|
249
244
|
|
|
250
245
|
// src/avatar-fallback.tsx
|
|
@@ -284,14 +279,23 @@ var MpAvatar = (0, import_vue8.defineComponent)({
|
|
|
284
279
|
emit
|
|
285
280
|
}) {
|
|
286
281
|
const api = useAvatar(props, emit);
|
|
287
|
-
|
|
282
|
+
const {
|
|
283
|
+
isNextTheme
|
|
284
|
+
} = (0, import_pixel3_utils3.usePixelTheme)();
|
|
285
|
+
const isRandomColor = isColorInList(props.variantColor);
|
|
286
|
+
return () => (0, import_vue7.createVNode)("div", (0, import_vue7.mergeProps)(api.value.rootProps, {
|
|
287
|
+
"style": {
|
|
288
|
+
"--mp-avatar--border-color": import_tokens2.token.var(`colors.${props.hasBorder ? props.borderColor ? props.borderColor : isNextTheme.value ? "border.inverse" : "white" : isNextTheme.value ? "border.inverse" : "white"}`),
|
|
289
|
+
"--mp-avatar--background-color": import_tokens2.token.var(`colors.${isRandomColor ? props.variantColor : getColor(isNextTheme.value)}`)
|
|
290
|
+
}
|
|
291
|
+
}), [api.value.src ? (0, import_vue7.createVNode)(MpAvatarImage, api.value.imageProps, null) : void 0, !api.value.icon && !api.value.src || api.value.src && !api.value.isLoaded ? api.value.name ? getInitial(api.value.name) : (0, import_vue7.createVNode)(MpAvatarFallback, api.value.fallbackProps, null) : void 0, api.value.icon && (0, import_vue7.createVNode)(import_pixel3_icon.MpIcon, api.value.iconProps, null)]);
|
|
288
292
|
}
|
|
289
293
|
});
|
|
290
294
|
|
|
291
295
|
// src/avatar-group.tsx
|
|
292
296
|
var import_vue11 = require("vue");
|
|
293
297
|
var import_vue12 = require("vue");
|
|
294
|
-
var
|
|
298
|
+
var import_pixel3_utils4 = require("@mekari/pixel3-utils");
|
|
295
299
|
|
|
296
300
|
// src/avatar-excess.tsx
|
|
297
301
|
var import_vue9 = require("vue");
|
|
@@ -318,10 +322,10 @@ var MpAvatarGroup = (0, import_vue12.defineComponent)({
|
|
|
318
322
|
emit
|
|
319
323
|
}) {
|
|
320
324
|
const api = useAvatarGroup(props, emit);
|
|
321
|
-
const children = (0, import_vue12.computed)(() => (0,
|
|
325
|
+
const children = (0, import_vue12.computed)(() => (0, import_pixel3_utils4.getChildren)(slots));
|
|
322
326
|
const count = (0, import_vue12.computed)(() => children.value.length - (props.max || 0));
|
|
323
327
|
const cloneChildren = (0, import_vue12.computed)(() => (0, import_vue12.computed)(() => children.value.slice(0, props.max)).value.map((vnode, index) => {
|
|
324
|
-
const overrideProps = (0,
|
|
328
|
+
const overrideProps = (0, import_pixel3_utils4.objectFilterUndefined)({
|
|
325
329
|
size: props.size,
|
|
326
330
|
spacing: index === 0 ? 0 : props.spacing,
|
|
327
331
|
hasBorder: true,
|
package/dist/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MpAvatarGroup
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5GCWM6MN.mjs";
|
|
4
4
|
import "./chunk-CY2Z6I23.mjs";
|
|
5
5
|
import {
|
|
6
6
|
MpAvatar
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BERKRG3D.mjs";
|
|
8
|
+
import "./chunk-VD5A4EA5.mjs";
|
|
8
9
|
import "./chunk-NKXS73IR.mjs";
|
|
9
10
|
import "./chunk-3MO4HQYF.mjs";
|
|
10
11
|
import "./chunk-4VNSI4PL.mjs";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-ZK47OSEJ.mjs";
|
|
12
|
+
import "./chunk-YULMVSHH.mjs";
|
|
13
|
+
import "./chunk-HGS2OTWQ.mjs";
|
|
14
14
|
import "./chunk-QZ7VFGWC.mjs";
|
|
15
15
|
export {
|
|
16
16
|
MpAvatar,
|
package/dist/metafile-cjs.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/avatar-excess.tsx":{"bytes":424,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"format":"esm"},"src/avatar-fallback.tsx":{"bytes":974,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"format":"esm"},"src/modules/avatar.props.ts":{"bytes":1879,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"./avatar.types","kind":"import-statement","external":true}],"format":"esm"},"src/modules/avatar.utils.ts":{"bytes":627,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/avatar.connects.ts":{"bytes":3249,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true},{"path":"src/modules/avatar.utils.ts","kind":"import-statement","original":"./avatar.utils"},{"path":"./avatar.types","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/avatar.hooks.ts":{"bytes":1141,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"src/modules/avatar.connects.ts","kind":"import-statement","original":"./avatar.connects"},{"path":"./avatar.types","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/avatar-group.tsx":{"bytes":1488,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"src/modules/avatar.props.ts","kind":"import-statement","original":"./modules/avatar.props"},{"path":"src/modules/avatar.hooks.ts","kind":"import-statement","original":"./modules/avatar.hooks"},{"path":"src/avatar-excess.tsx","kind":"import-statement","original":"./avatar-excess"}],"format":"esm"},"src/avatar-image.tsx":{"bytes":383,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"format":"esm"},"src/avatar.tsx":{"bytes":1179,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/avatar.props.ts","kind":"import-statement","original":"./modules/avatar.props"},{"path":"src/modules/avatar.hooks.ts","kind":"import-statement","original":"./modules/avatar.hooks"},{"path":"src/modules/avatar.utils.ts","kind":"import-statement","original":"./modules/avatar.utils"},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true},{"path":"src/avatar-fallback.tsx","kind":"import-statement","original":"./avatar-fallback"},{"path":"src/avatar-image.tsx","kind":"import-statement","original":"./avatar-image"}],"format":"esm"},"src/index.ts":{"bytes":359,"imports":[{"path":"src/avatar.tsx","kind":"import-statement","original":"./avatar"},{"path":"src/avatar-group.tsx","kind":"import-statement","original":"./avatar-group"}],"format":"esm"},"src/modules/avatar.types.ts":{"bytes":1699,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/avatar-excess.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/avatar-excess.tsx","inputs":{"src/avatar-excess.tsx":{"bytesInOutput":503}},"bytes":1436},"dist/avatar-fallback.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/avatar-fallback.tsx","inputs":{"src/avatar-fallback.tsx":{"bytesInOutput":1038}},"bytes":1975},"dist/avatar-group.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/avatar-group.tsx","inputs":{"src/avatar-group.tsx":{"bytesInOutput":1422},"src/modules/avatar.props.ts":{"bytesInOutput":461},"src/modules/avatar.hooks.ts":{"bytesInOutput":485},"src/modules/avatar.connects.ts":{"bytesInOutput":991},"src/avatar-excess.tsx":{"bytesInOutput":342}},"bytes":4904},"dist/avatar-image.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/avatar-image.tsx","inputs":{"src/avatar-image.tsx":{"bytesInOutput":390}},"bytes":1321},"dist/avatar.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"require-call","external":true},{"path":"@mekari/pixel3-icon","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/avatar.tsx","inputs":{"src/avatar.tsx":{"bytesInOutput":937},"src/modules/avatar.props.ts":{"bytesInOutput":752},"src/modules/avatar.hooks.ts":{"bytesInOutput":568},"src/modules/avatar.connects.ts":{"bytesInOutput":2335},"src/modules/avatar.utils.ts":{"bytesInOutput":589},"src/avatar-fallback.tsx":{"bytesInOutput":870},"src/avatar-image.tsx":{"bytesInOutput":234}},"bytes":7584},"dist/index.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"require-call","external":true},{"path":"@mekari/pixel3-icon","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":159},"src/avatar.tsx":{"bytesInOutput":807},"src/modules/avatar.props.ts":{"bytesInOutput":998},"src/modules/avatar.hooks.ts":{"bytesInOutput":949},"src/modules/avatar.connects.ts":{"bytesInOutput":3165},"src/modules/avatar.utils.ts":{"bytesInOutput":589},"src/avatar-fallback.tsx":{"bytesInOutput":870},"src/avatar-image.tsx":{"bytesInOutput":234},"src/avatar-group.tsx":{"bytesInOutput":1274},"src/avatar-excess.tsx":{"bytesInOutput":344}},"bytes":10798},"dist/modules/avatar.connects.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/modules/avatar.connects.ts","inputs":{"src/modules/avatar.connects.ts":{"bytesInOutput":3377},"src/modules/avatar.utils.ts":{"bytesInOutput":370}},"bytes":4867},"dist/modules/avatar.hooks.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/modules/avatar.hooks.ts","inputs":{"src/modules/avatar.hooks.ts":{"bytesInOutput":1139},"src/modules/avatar.connects.ts":{"bytesInOutput":3162},"src/modules/avatar.utils.ts":{"bytesInOutput":370}},"bytes":5847},"dist/modules/avatar.props.js":{"imports":[{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/modules/avatar.props.ts","inputs":{"src/modules/avatar.props.ts":{"bytesInOutput":1274}},"bytes":2265},"dist/modules/avatar.types.js":{"imports":[],"exports":[],"entryPoint":"src/modules/avatar.types.ts","inputs":{"src/modules/avatar.types.ts":{"bytesInOutput":84}},"bytes":787},"dist/modules/avatar.utils.js":{"imports":[],"exports":[],"entryPoint":"src/modules/avatar.utils.ts","inputs":{"src/modules/avatar.utils.ts":{"bytesInOutput":807}},"bytes":1861}}}
|
|
1
|
+
{"inputs":{"src/avatar-excess.tsx":{"bytes":424,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"format":"esm"},"src/avatar-fallback.tsx":{"bytes":974,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"format":"esm"},"src/modules/avatar.props.ts":{"bytes":1879,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"./avatar.types","kind":"import-statement","external":true}],"format":"esm"},"src/modules/avatar.connects.ts":{"bytes":2836,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true},{"path":"./avatar.types","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/avatar.hooks.ts":{"bytes":1141,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"src/modules/avatar.connects.ts","kind":"import-statement","original":"./avatar.connects"},{"path":"./avatar.types","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/avatar-group.tsx":{"bytes":1488,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"src/modules/avatar.props.ts","kind":"import-statement","original":"./modules/avatar.props"},{"path":"src/modules/avatar.hooks.ts","kind":"import-statement","original":"./modules/avatar.hooks"},{"path":"src/avatar-excess.tsx","kind":"import-statement","original":"./avatar-excess"}],"format":"esm"},"src/avatar-image.tsx":{"bytes":383,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"format":"esm"},"src/modules/avatar.utils.ts":{"bytes":688,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/avatar.tsx":{"bytes":1919,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/avatar.props.ts","kind":"import-statement","original":"./modules/avatar.props"},{"path":"src/modules/avatar.hooks.ts","kind":"import-statement","original":"./modules/avatar.hooks"},{"path":"src/modules/avatar.utils.ts","kind":"import-statement","original":"./modules/avatar.utils"},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true},{"path":"src/avatar-fallback.tsx","kind":"import-statement","original":"./avatar-fallback"},{"path":"src/avatar-image.tsx","kind":"import-statement","original":"./avatar-image"}],"format":"esm"},"src/index.ts":{"bytes":359,"imports":[{"path":"src/avatar.tsx","kind":"import-statement","original":"./avatar"},{"path":"src/avatar-group.tsx","kind":"import-statement","original":"./avatar-group"}],"format":"esm"},"src/modules/avatar.types.ts":{"bytes":1699,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/avatar-excess.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/avatar-excess.tsx","inputs":{"src/avatar-excess.tsx":{"bytesInOutput":503}},"bytes":1436},"dist/avatar-fallback.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/avatar-fallback.tsx","inputs":{"src/avatar-fallback.tsx":{"bytesInOutput":1038}},"bytes":1975},"dist/avatar-group.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/avatar-group.tsx","inputs":{"src/avatar-group.tsx":{"bytesInOutput":1422},"src/modules/avatar.props.ts":{"bytesInOutput":461},"src/modules/avatar.hooks.ts":{"bytesInOutput":485},"src/modules/avatar.connects.ts":{"bytesInOutput":991},"src/avatar-excess.tsx":{"bytesInOutput":342}},"bytes":4904},"dist/avatar-image.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/avatar-image.tsx","inputs":{"src/avatar-image.tsx":{"bytesInOutput":390}},"bytes":1321},"dist/avatar.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"require-call","external":true},{"path":"@mekari/pixel3-icon","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/avatar.tsx","inputs":{"src/avatar.tsx":{"bytesInOutput":1645},"src/modules/avatar.props.ts":{"bytesInOutput":752},"src/modules/avatar.hooks.ts":{"bytesInOutput":568},"src/modules/avatar.connects.ts":{"bytesInOutput":1985},"src/modules/avatar.utils.ts":{"bytesInOutput":641},"src/avatar-fallback.tsx":{"bytesInOutput":870},"src/avatar-image.tsx":{"bytesInOutput":234}},"bytes":7959},"dist/index.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"require-call","external":true},{"path":"@mekari/pixel3-icon","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":159},"src/avatar.tsx":{"bytesInOutput":1515},"src/modules/avatar.props.ts":{"bytesInOutput":998},"src/modules/avatar.hooks.ts":{"bytesInOutput":949},"src/modules/avatar.connects.ts":{"bytesInOutput":2815},"src/modules/avatar.utils.ts":{"bytesInOutput":641},"src/avatar-fallback.tsx":{"bytesInOutput":870},"src/avatar-image.tsx":{"bytesInOutput":234},"src/avatar-group.tsx":{"bytesInOutput":1274},"src/avatar-excess.tsx":{"bytesInOutput":344}},"bytes":11173},"dist/modules/avatar.connects.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/modules/avatar.connects.ts","inputs":{"src/modules/avatar.connects.ts":{"bytesInOutput":3027}},"bytes":4080},"dist/modules/avatar.hooks.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/modules/avatar.hooks.ts","inputs":{"src/modules/avatar.hooks.ts":{"bytesInOutput":1139},"src/modules/avatar.connects.ts":{"bytesInOutput":2812}},"bytes":5060},"dist/modules/avatar.props.js":{"imports":[{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/modules/avatar.props.ts","inputs":{"src/modules/avatar.props.ts":{"bytesInOutput":1274}},"bytes":2265},"dist/modules/avatar.types.js":{"imports":[],"exports":[],"entryPoint":"src/modules/avatar.types.ts","inputs":{"src/modules/avatar.types.ts":{"bytesInOutput":84}},"bytes":787},"dist/modules/avatar.utils.js":{"imports":[],"exports":[],"entryPoint":"src/modules/avatar.utils.ts","inputs":{"src/modules/avatar.utils.ts":{"bytesInOutput":859}},"bytes":1913}}}
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/avatar-excess.tsx":{"bytes":424,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"format":"esm"},"src/avatar-fallback.tsx":{"bytes":974,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"format":"esm"},"src/modules/avatar.props.ts":{"bytes":1879,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"./avatar.types","kind":"import-statement","external":true}],"format":"esm"},"src/modules/avatar.utils.ts":{"bytes":627,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/avatar.connects.ts":{"bytes":3249,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true},{"path":"src/modules/avatar.utils.ts","kind":"import-statement","original":"./avatar.utils"},{"path":"./avatar.types","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/avatar.hooks.ts":{"bytes":1141,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"src/modules/avatar.connects.ts","kind":"import-statement","original":"./avatar.connects"},{"path":"./avatar.types","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/avatar-group.tsx":{"bytes":1488,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"src/modules/avatar.props.ts","kind":"import-statement","original":"./modules/avatar.props"},{"path":"src/modules/avatar.hooks.ts","kind":"import-statement","original":"./modules/avatar.hooks"},{"path":"src/avatar-excess.tsx","kind":"import-statement","original":"./avatar-excess"}],"format":"esm"},"src/avatar-image.tsx":{"bytes":383,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"format":"esm"},"src/avatar.tsx":{"bytes":1179,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/avatar.props.ts","kind":"import-statement","original":"./modules/avatar.props"},{"path":"src/modules/avatar.hooks.ts","kind":"import-statement","original":"./modules/avatar.hooks"},{"path":"src/modules/avatar.utils.ts","kind":"import-statement","original":"./modules/avatar.utils"},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true},{"path":"src/avatar-fallback.tsx","kind":"import-statement","original":"./avatar-fallback"},{"path":"src/avatar-image.tsx","kind":"import-statement","original":"./avatar-image"}],"format":"esm"},"src/index.ts":{"bytes":359,"imports":[{"path":"src/avatar.tsx","kind":"import-statement","original":"./avatar"},{"path":"src/avatar-group.tsx","kind":"import-statement","original":"./avatar-group"}],"format":"esm"},"src/modules/avatar.types.ts":{"bytes":1699,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/modules/avatar.props.mjs":{"imports":[{"path":"dist/chunk-3MO4HQYF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["avatarEmits","avatarGroupEmits","avatarGroupProps","avatarProps"],"entryPoint":"src/modules/avatar.props.ts","inputs":{},"bytes":223},"dist/modules/avatar.types.mjs":{"imports":[],"exports":[],"entryPoint":"src/modules/avatar.types.ts","inputs":{"src/modules/avatar.types.ts":{"bytesInOutput":0}},"bytes":0},"dist/modules/avatar.utils.mjs":{"imports":[{"path":"dist/chunk-ZK47OSEJ.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["getColor","getInitial","isColorInList"],"entryPoint":"src/modules/avatar.utils.ts","inputs":{},"bytes":169},"dist/avatar-excess.mjs":{"imports":[{"path":"dist/chunk-CY2Z6I23.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpAvatarExcess"],"entryPoint":"src/avatar-excess.tsx","inputs":{},"bytes":117},"dist/avatar-fallback.mjs":{"imports":[{"path":"dist/chunk-NKXS73IR.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpAvatarFallback"],"entryPoint":"src/avatar-fallback.tsx","inputs":{},"bytes":121},"dist/avatar-group.mjs":{"imports":[{"path":"dist/chunk-FPZ3IFAW.mjs","kind":"import-statement"},{"path":"dist/chunk-CY2Z6I23.mjs","kind":"import-statement"},{"path":"dist/chunk-3MO4HQYF.mjs","kind":"import-statement"},{"path":"dist/chunk-G4FNYLV7.mjs","kind":"import-statement"},{"path":"dist/chunk-7XAF53OT.mjs","kind":"import-statement"},{"path":"dist/chunk-ZK47OSEJ.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpAvatarGroup"],"entryPoint":"src/avatar-group.tsx","inputs":{},"bytes":270},"dist/avatar-image.mjs":{"imports":[{"path":"dist/chunk-4VNSI4PL.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpAvatarImage"],"entryPoint":"src/avatar-image.tsx","inputs":{},"bytes":115},"dist/avatar.mjs":{"imports":[{"path":"dist/chunk-GRS6D3IB.mjs","kind":"import-statement"},{"path":"dist/chunk-NKXS73IR.mjs","kind":"import-statement"},{"path":"dist/chunk-3MO4HQYF.mjs","kind":"import-statement"},{"path":"dist/chunk-4VNSI4PL.mjs","kind":"import-statement"},{"path":"dist/chunk-G4FNYLV7.mjs","kind":"import-statement"},{"path":"dist/chunk-7XAF53OT.mjs","kind":"import-statement"},{"path":"dist/chunk-ZK47OSEJ.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpAvatar"],"entryPoint":"src/avatar.tsx","inputs":{},"bytes":291},"dist/index.mjs":{"imports":[{"path":"dist/chunk-FPZ3IFAW.mjs","kind":"import-statement"},{"path":"dist/chunk-CY2Z6I23.mjs","kind":"import-statement"},{"path":"dist/chunk-GRS6D3IB.mjs","kind":"import-statement"},{"path":"dist/chunk-NKXS73IR.mjs","kind":"import-statement"},{"path":"dist/chunk-3MO4HQYF.mjs","kind":"import-statement"},{"path":"dist/chunk-4VNSI4PL.mjs","kind":"import-statement"},{"path":"dist/chunk-G4FNYLV7.mjs","kind":"import-statement"},{"path":"dist/chunk-7XAF53OT.mjs","kind":"import-statement"},{"path":"dist/chunk-ZK47OSEJ.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpAvatar","MpAvatarGroup"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":395},"dist/chunk-FPZ3IFAW.mjs":{"imports":[{"path":"dist/chunk-CY2Z6I23.mjs","kind":"import-statement"},{"path":"dist/chunk-3MO4HQYF.mjs","kind":"import-statement"},{"path":"dist/chunk-G4FNYLV7.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"exports":["MpAvatarGroup"],"inputs":{"src/avatar-group.tsx":{"bytesInOutput":1137}},"bytes":1384},"dist/chunk-CY2Z6I23.mjs":{"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["MpAvatarExcess"],"inputs":{"src/avatar-excess.tsx":{"bytesInOutput":331}},"bytes":386},"dist/chunk-GRS6D3IB.mjs":{"imports":[{"path":"dist/chunk-NKXS73IR.mjs","kind":"import-statement"},{"path":"dist/chunk-3MO4HQYF.mjs","kind":"import-statement"},{"path":"dist/chunk-4VNSI4PL.mjs","kind":"import-statement"},{"path":"dist/chunk-G4FNYLV7.mjs","kind":"import-statement"},{"path":"dist/chunk-ZK47OSEJ.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true}],"exports":["MpAvatar"],"inputs":{"src/avatar.tsx":{"bytesInOutput":718}},"bytes":1050},"dist/chunk-NKXS73IR.mjs":{"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["MpAvatarFallback"],"inputs":{"src/avatar-fallback.tsx":{"bytesInOutput":811}},"bytes":870},"dist/chunk-3MO4HQYF.mjs":{"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"exports":["avatarEmits","avatarGroupEmits","avatarGroupProps","avatarProps"],"inputs":{"src/modules/avatar.props.ts":{"bytesInOutput":941}},"bytes":1054},"dist/chunk-4VNSI4PL.mjs":{"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["MpAvatarImage"],"inputs":{"src/avatar-image.tsx":{"bytesInOutput":223}},"bytes":276},"dist/modules/avatar.connects.mjs":{"imports":[{"path":"dist/chunk-7XAF53OT.mjs","kind":"import-statement"},{"path":"dist/chunk-ZK47OSEJ.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["avatarConnect","avatarGroupConnect"],"entryPoint":"src/modules/avatar.connects.ts","inputs":{},"bytes":193},"dist/modules/avatar.hooks.mjs":{"imports":[{"path":"dist/chunk-G4FNYLV7.mjs","kind":"import-statement"},{"path":"dist/chunk-7XAF53OT.mjs","kind":"import-statement"},{"path":"dist/chunk-ZK47OSEJ.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["useAvatar","useAvatarGroup"],"entryPoint":"src/modules/avatar.hooks.ts","inputs":{},"bytes":209},"dist/chunk-G4FNYLV7.mjs":{"imports":[{"path":"dist/chunk-7XAF53OT.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true}],"exports":["useAvatar","useAvatarGroup"],"inputs":{"src/modules/avatar.hooks.ts":{"bytesInOutput":840}},"bytes":1042},"dist/chunk-7XAF53OT.mjs":{"imports":[{"path":"dist/chunk-ZK47OSEJ.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true}],"exports":["avatarConnect","avatarGroupConnect"],"inputs":{"src/modules/avatar.connects.ts":{"bytesInOutput":2994}},"bytes":3197},"dist/chunk-ZK47OSEJ.mjs":{"imports":[{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["getColor","getInitial","isColorInList"],"inputs":{"src/modules/avatar.utils.ts":{"bytesInOutput":589}},"bytes":725},"dist/chunk-QZ7VFGWC.mjs":{"imports":[],"exports":["__name"],"inputs":{},"bytes":151}}}
|
|
1
|
+
{"inputs":{"src/avatar-excess.tsx":{"bytes":424,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"format":"esm"},"src/avatar-fallback.tsx":{"bytes":974,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"format":"esm"},"src/modules/avatar.props.ts":{"bytes":1879,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"./avatar.types","kind":"import-statement","external":true}],"format":"esm"},"src/modules/avatar.connects.ts":{"bytes":2836,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true},{"path":"./avatar.types","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/avatar.hooks.ts":{"bytes":1141,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"src/modules/avatar.connects.ts","kind":"import-statement","original":"./avatar.connects"},{"path":"./avatar.types","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/avatar-group.tsx":{"bytes":1488,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"src/modules/avatar.props.ts","kind":"import-statement","original":"./modules/avatar.props"},{"path":"src/modules/avatar.hooks.ts","kind":"import-statement","original":"./modules/avatar.hooks"},{"path":"src/avatar-excess.tsx","kind":"import-statement","original":"./avatar-excess"}],"format":"esm"},"src/avatar-image.tsx":{"bytes":383,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"format":"esm"},"src/modules/avatar.utils.ts":{"bytes":688,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/avatar.tsx":{"bytes":1919,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/avatar.props.ts","kind":"import-statement","original":"./modules/avatar.props"},{"path":"src/modules/avatar.hooks.ts","kind":"import-statement","original":"./modules/avatar.hooks"},{"path":"src/modules/avatar.utils.ts","kind":"import-statement","original":"./modules/avatar.utils"},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true},{"path":"src/avatar-fallback.tsx","kind":"import-statement","original":"./avatar-fallback"},{"path":"src/avatar-image.tsx","kind":"import-statement","original":"./avatar-image"}],"format":"esm"},"src/index.ts":{"bytes":359,"imports":[{"path":"src/avatar.tsx","kind":"import-statement","original":"./avatar"},{"path":"src/avatar-group.tsx","kind":"import-statement","original":"./avatar-group"}],"format":"esm"},"src/modules/avatar.types.ts":{"bytes":1699,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/modules/avatar.props.mjs":{"imports":[{"path":"dist/chunk-3MO4HQYF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["avatarEmits","avatarGroupEmits","avatarGroupProps","avatarProps"],"entryPoint":"src/modules/avatar.props.ts","inputs":{},"bytes":223},"dist/modules/avatar.types.mjs":{"imports":[],"exports":[],"entryPoint":"src/modules/avatar.types.ts","inputs":{"src/modules/avatar.types.ts":{"bytesInOutput":0}},"bytes":0},"dist/modules/avatar.utils.mjs":{"imports":[{"path":"dist/chunk-VD5A4EA5.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["getColor","getInitial","isColorInList"],"entryPoint":"src/modules/avatar.utils.ts","inputs":{},"bytes":169},"dist/avatar-excess.mjs":{"imports":[{"path":"dist/chunk-CY2Z6I23.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpAvatarExcess"],"entryPoint":"src/avatar-excess.tsx","inputs":{},"bytes":117},"dist/avatar-fallback.mjs":{"imports":[{"path":"dist/chunk-NKXS73IR.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpAvatarFallback"],"entryPoint":"src/avatar-fallback.tsx","inputs":{},"bytes":121},"dist/avatar-group.mjs":{"imports":[{"path":"dist/chunk-5GCWM6MN.mjs","kind":"import-statement"},{"path":"dist/chunk-CY2Z6I23.mjs","kind":"import-statement"},{"path":"dist/chunk-3MO4HQYF.mjs","kind":"import-statement"},{"path":"dist/chunk-YULMVSHH.mjs","kind":"import-statement"},{"path":"dist/chunk-HGS2OTWQ.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpAvatarGroup"],"entryPoint":"src/avatar-group.tsx","inputs":{},"bytes":239},"dist/avatar-image.mjs":{"imports":[{"path":"dist/chunk-4VNSI4PL.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpAvatarImage"],"entryPoint":"src/avatar-image.tsx","inputs":{},"bytes":115},"dist/avatar.mjs":{"imports":[{"path":"dist/chunk-BERKRG3D.mjs","kind":"import-statement"},{"path":"dist/chunk-VD5A4EA5.mjs","kind":"import-statement"},{"path":"dist/chunk-NKXS73IR.mjs","kind":"import-statement"},{"path":"dist/chunk-3MO4HQYF.mjs","kind":"import-statement"},{"path":"dist/chunk-4VNSI4PL.mjs","kind":"import-statement"},{"path":"dist/chunk-YULMVSHH.mjs","kind":"import-statement"},{"path":"dist/chunk-HGS2OTWQ.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpAvatar"],"entryPoint":"src/avatar.tsx","inputs":{},"bytes":291},"dist/index.mjs":{"imports":[{"path":"dist/chunk-5GCWM6MN.mjs","kind":"import-statement"},{"path":"dist/chunk-CY2Z6I23.mjs","kind":"import-statement"},{"path":"dist/chunk-BERKRG3D.mjs","kind":"import-statement"},{"path":"dist/chunk-VD5A4EA5.mjs","kind":"import-statement"},{"path":"dist/chunk-NKXS73IR.mjs","kind":"import-statement"},{"path":"dist/chunk-3MO4HQYF.mjs","kind":"import-statement"},{"path":"dist/chunk-4VNSI4PL.mjs","kind":"import-statement"},{"path":"dist/chunk-YULMVSHH.mjs","kind":"import-statement"},{"path":"dist/chunk-HGS2OTWQ.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpAvatar","MpAvatarGroup"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":395},"dist/chunk-5GCWM6MN.mjs":{"imports":[{"path":"dist/chunk-CY2Z6I23.mjs","kind":"import-statement"},{"path":"dist/chunk-3MO4HQYF.mjs","kind":"import-statement"},{"path":"dist/chunk-YULMVSHH.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"exports":["MpAvatarGroup"],"inputs":{"src/avatar-group.tsx":{"bytesInOutput":1137}},"bytes":1384},"dist/chunk-CY2Z6I23.mjs":{"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["MpAvatarExcess"],"inputs":{"src/avatar-excess.tsx":{"bytesInOutput":331}},"bytes":386},"dist/chunk-BERKRG3D.mjs":{"imports":[{"path":"dist/chunk-VD5A4EA5.mjs","kind":"import-statement"},{"path":"dist/chunk-NKXS73IR.mjs","kind":"import-statement"},{"path":"dist/chunk-3MO4HQYF.mjs","kind":"import-statement"},{"path":"dist/chunk-4VNSI4PL.mjs","kind":"import-statement"},{"path":"dist/chunk-YULMVSHH.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true}],"exports":["MpAvatar"],"inputs":{"src/avatar.tsx":{"bytesInOutput":1367}},"bytes":1728},"dist/chunk-VD5A4EA5.mjs":{"imports":[{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["getColor","getInitial","isColorInList"],"inputs":{"src/modules/avatar.utils.ts":{"bytesInOutput":641}},"bytes":777},"dist/chunk-NKXS73IR.mjs":{"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["MpAvatarFallback"],"inputs":{"src/avatar-fallback.tsx":{"bytesInOutput":811}},"bytes":870},"dist/chunk-3MO4HQYF.mjs":{"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"exports":["avatarEmits","avatarGroupEmits","avatarGroupProps","avatarProps"],"inputs":{"src/modules/avatar.props.ts":{"bytesInOutput":941}},"bytes":1054},"dist/chunk-4VNSI4PL.mjs":{"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["MpAvatarImage"],"inputs":{"src/avatar-image.tsx":{"bytesInOutput":223}},"bytes":276},"dist/modules/avatar.connects.mjs":{"imports":[{"path":"dist/chunk-HGS2OTWQ.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["avatarConnect","avatarGroupConnect"],"entryPoint":"src/modules/avatar.connects.ts","inputs":{},"bytes":161},"dist/modules/avatar.hooks.mjs":{"imports":[{"path":"dist/chunk-YULMVSHH.mjs","kind":"import-statement"},{"path":"dist/chunk-HGS2OTWQ.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["useAvatar","useAvatarGroup"],"entryPoint":"src/modules/avatar.hooks.ts","inputs":{},"bytes":177},"dist/chunk-YULMVSHH.mjs":{"imports":[{"path":"dist/chunk-HGS2OTWQ.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true}],"exports":["useAvatar","useAvatarGroup"],"inputs":{"src/modules/avatar.hooks.ts":{"bytesInOutput":840}},"bytes":1042},"dist/chunk-HGS2OTWQ.mjs":{"imports":[{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true}],"exports":["avatarConnect","avatarGroupConnect"],"inputs":{"src/modules/avatar.connects.ts":{"bytesInOutput":2672}},"bytes":2807},"dist/chunk-QZ7VFGWC.mjs":{"imports":[],"exports":["__name"],"inputs":{},"bytes":151}}}
|
|
@@ -28,25 +28,11 @@ module.exports = __toCommonJS(avatar_connects_exports);
|
|
|
28
28
|
var import_vue = require("vue");
|
|
29
29
|
var import_pixel3_utils = require("@mekari/pixel3-utils");
|
|
30
30
|
var import_tokens = require("@mekari/pixel3-styled-system/tokens");
|
|
31
|
-
|
|
32
|
-
// src/modules/avatar.utils.ts
|
|
33
|
-
var background = ["gray", "sky", "teal", "violet", "amber", "rose", "stone", "lime", "pink"];
|
|
34
|
-
var getColor = /* @__PURE__ */ __name(() => {
|
|
35
|
-
const order = Math.floor(Math.random() * background.length);
|
|
36
|
-
return `${background[order]}.400`;
|
|
37
|
-
}, "getColor");
|
|
38
|
-
var isColorInList = /* @__PURE__ */ __name((value) => {
|
|
39
|
-
return background.includes(value);
|
|
40
|
-
}, "isColorInList");
|
|
41
|
-
|
|
42
|
-
// src/modules/avatar.connects.ts
|
|
43
31
|
function avatarConnect(state, emit, classes) {
|
|
44
32
|
const {
|
|
45
33
|
id,
|
|
46
34
|
name,
|
|
47
|
-
borderColor,
|
|
48
35
|
hasBorder,
|
|
49
|
-
variantColor,
|
|
50
36
|
src,
|
|
51
37
|
icon,
|
|
52
38
|
iconVariant,
|
|
@@ -59,7 +45,6 @@ function avatarConnect(state, emit, classes) {
|
|
|
59
45
|
var _a, _b;
|
|
60
46
|
return !!((_b = (_a = (0, import_vue.getCurrentInstance)()) == null ? void 0 : _a.vnode.props) == null ? void 0 : _b.onClick);
|
|
61
47
|
}).value;
|
|
62
|
-
const isRandomColor = isColorInList(variantColor);
|
|
63
48
|
return {
|
|
64
49
|
name,
|
|
65
50
|
src,
|
|
@@ -71,9 +56,7 @@ function avatarConnect(state, emit, classes) {
|
|
|
71
56
|
class: classes.root,
|
|
72
57
|
style: {
|
|
73
58
|
"--mp-avatar--cursor": isClickable ? "pointer" : void 0,
|
|
74
|
-
"--mp-avatar--margin-left": `calc(${import_tokens.token.var(`spacing.${spacing}`)} * -1)
|
|
75
|
-
"--mp-avatar--border-color": import_tokens.token.var(`colors.${hasBorder ? borderColor != null ? borderColor : "white" : "white"}`),
|
|
76
|
-
"--mp-avatar--background-color": import_tokens.token.var(`colors.${isRandomColor ? variantColor : getColor()}`)
|
|
59
|
+
"--mp-avatar--margin-left": `calc(${import_tokens.token.var(`spacing.${spacing}`)} * -1)`
|
|
77
60
|
},
|
|
78
61
|
"data-has-border": hasBorder,
|
|
79
62
|
"data-pixel-component": "MpAvatar"
|
|
@@ -32,25 +32,11 @@ var import_recipes = require("@mekari/pixel3-styled-system/recipes");
|
|
|
32
32
|
var import_vue = require("vue");
|
|
33
33
|
var import_pixel3_utils = require("@mekari/pixel3-utils");
|
|
34
34
|
var import_tokens = require("@mekari/pixel3-styled-system/tokens");
|
|
35
|
-
|
|
36
|
-
// src/modules/avatar.utils.ts
|
|
37
|
-
var background = ["gray", "sky", "teal", "violet", "amber", "rose", "stone", "lime", "pink"];
|
|
38
|
-
var getColor = /* @__PURE__ */ __name(() => {
|
|
39
|
-
const order = Math.floor(Math.random() * background.length);
|
|
40
|
-
return `${background[order]}.400`;
|
|
41
|
-
}, "getColor");
|
|
42
|
-
var isColorInList = /* @__PURE__ */ __name((value) => {
|
|
43
|
-
return background.includes(value);
|
|
44
|
-
}, "isColorInList");
|
|
45
|
-
|
|
46
|
-
// src/modules/avatar.connects.ts
|
|
47
35
|
function avatarConnect(state, emit, classes) {
|
|
48
36
|
const {
|
|
49
37
|
id,
|
|
50
38
|
name,
|
|
51
|
-
borderColor,
|
|
52
39
|
hasBorder,
|
|
53
|
-
variantColor,
|
|
54
40
|
src,
|
|
55
41
|
icon,
|
|
56
42
|
iconVariant,
|
|
@@ -63,7 +49,6 @@ function avatarConnect(state, emit, classes) {
|
|
|
63
49
|
var _a, _b;
|
|
64
50
|
return !!((_b = (_a = (0, import_vue.getCurrentInstance)()) == null ? void 0 : _a.vnode.props) == null ? void 0 : _b.onClick);
|
|
65
51
|
}).value;
|
|
66
|
-
const isRandomColor = isColorInList(variantColor);
|
|
67
52
|
return {
|
|
68
53
|
name,
|
|
69
54
|
src,
|
|
@@ -75,9 +60,7 @@ function avatarConnect(state, emit, classes) {
|
|
|
75
60
|
class: classes.root,
|
|
76
61
|
style: {
|
|
77
62
|
"--mp-avatar--cursor": isClickable ? "pointer" : void 0,
|
|
78
|
-
"--mp-avatar--margin-left": `calc(${import_tokens.token.var(`spacing.${spacing}`)} * -1)
|
|
79
|
-
"--mp-avatar--border-color": import_tokens.token.var(`colors.${hasBorder ? borderColor != null ? borderColor : "white" : "white"}`),
|
|
80
|
-
"--mp-avatar--background-color": import_tokens.token.var(`colors.${isRandomColor ? variantColor : getColor()}`)
|
|
63
|
+
"--mp-avatar--margin-left": `calc(${import_tokens.token.var(`spacing.${spacing}`)} * -1)`
|
|
81
64
|
},
|
|
82
65
|
"data-has-border": hasBorder,
|
|
83
66
|
"data-pixel-component": "MpAvatar"
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAvatar,
|
|
3
3
|
useAvatarGroup
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-ZK47OSEJ.mjs";
|
|
4
|
+
} from "../chunk-YULMVSHH.mjs";
|
|
5
|
+
import "../chunk-HGS2OTWQ.mjs";
|
|
7
6
|
import "../chunk-QZ7VFGWC.mjs";
|
|
8
7
|
export {
|
|
9
8
|
useAvatar,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Exported avatar utils.
|
|
3
3
|
*/
|
|
4
4
|
declare const getInitial: (value: string) => string;
|
|
5
|
-
declare const getColor: () => string;
|
|
5
|
+
declare const getColor: (isNextTheme: boolean) => string;
|
|
6
6
|
declare const isColorInList: (value: string) => boolean;
|
|
7
7
|
|
|
8
8
|
export { getColor, getInitial, isColorInList };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Exported avatar utils.
|
|
3
3
|
*/
|
|
4
4
|
declare const getInitial: (value: string) => string;
|
|
5
|
-
declare const getColor: () => string;
|
|
5
|
+
declare const getColor: (isNextTheme: boolean) => string;
|
|
6
6
|
declare const isColorInList: (value: string) => boolean;
|
|
7
7
|
|
|
8
8
|
export { getColor, getInitial, isColorInList };
|
|
@@ -34,9 +34,9 @@ var getInitial = /* @__PURE__ */ __name((value) => {
|
|
|
34
34
|
return first.charAt(0);
|
|
35
35
|
}, "getInitial");
|
|
36
36
|
var background = ["gray", "sky", "teal", "violet", "amber", "rose", "stone", "lime", "pink"];
|
|
37
|
-
var getColor = /* @__PURE__ */ __name(() => {
|
|
37
|
+
var getColor = /* @__PURE__ */ __name((isNextTheme) => {
|
|
38
38
|
const order = Math.floor(Math.random() * background.length);
|
|
39
|
-
return `${background[order]}.400`;
|
|
39
|
+
return isNextTheme ? `chart.cat0${order + 1}` : `${background[order]}.400`;
|
|
40
40
|
}, "getColor");
|
|
41
41
|
var isColorInList = /* @__PURE__ */ __name((value) => {
|
|
42
42
|
return background.includes(value);
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mekari/pixel3-avatar",
|
|
3
3
|
"description": "Mekari Pixel 3 | Avatar component is used to display profile image, initial or fallback icon",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.17-dev.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@mekari/pixel3-icon": "0.0.
|
|
12
|
-
"@mekari/pixel3-styled-system": "0.1.
|
|
13
|
-
"@mekari/pixel3-utils": "0.0.
|
|
11
|
+
"@mekari/pixel3-icon": "0.0.17-dev.0",
|
|
12
|
+
"@mekari/pixel3-styled-system": "0.1.2-dev.0",
|
|
13
|
+
"@mekari/pixel3-utils": "0.0.7-dev.0"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"vue": "^3.4.9"
|
package/dist/chunk-GRS6D3IB.mjs
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
MpAvatarFallback
|
|
3
|
-
} from "./chunk-NKXS73IR.mjs";
|
|
4
|
-
import {
|
|
5
|
-
avatarEmits,
|
|
6
|
-
avatarProps
|
|
7
|
-
} from "./chunk-3MO4HQYF.mjs";
|
|
8
|
-
import {
|
|
9
|
-
MpAvatarImage
|
|
10
|
-
} from "./chunk-4VNSI4PL.mjs";
|
|
11
|
-
import {
|
|
12
|
-
useAvatar
|
|
13
|
-
} from "./chunk-G4FNYLV7.mjs";
|
|
14
|
-
import {
|
|
15
|
-
getInitial
|
|
16
|
-
} from "./chunk-ZK47OSEJ.mjs";
|
|
17
|
-
|
|
18
|
-
// src/avatar.tsx
|
|
19
|
-
import { createVNode as _createVNode } from "vue";
|
|
20
|
-
import { defineComponent } from "vue";
|
|
21
|
-
import { MpIcon } from "@mekari/pixel3-icon";
|
|
22
|
-
var MpAvatar = defineComponent({
|
|
23
|
-
name: "MpAvatar",
|
|
24
|
-
props: avatarProps,
|
|
25
|
-
emits: avatarEmits,
|
|
26
|
-
setup(props, {
|
|
27
|
-
emit
|
|
28
|
-
}) {
|
|
29
|
-
const api = useAvatar(props, emit);
|
|
30
|
-
return () => _createVNode("div", api.value.rootProps, [api.value.src ? _createVNode(MpAvatarImage, api.value.imageProps, null) : void 0, !api.value.icon && !api.value.src || api.value.src && !api.value.isLoaded ? api.value.name ? getInitial(api.value.name) : _createVNode(MpAvatarFallback, api.value.fallbackProps, null) : void 0, api.value.icon && _createVNode(MpIcon, api.value.iconProps, null)]);
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
export {
|
|
35
|
-
MpAvatar
|
|
36
|
-
};
|