mimir-ui-kit 1.34.10 → 1.34.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- ._avatar_58dyx_2{position:relative;display:flex;align-items:center;justify-content:center;width:var(--avatar-width);height:var(--avatar-height);-o-object-fit:cover;object-fit:cover;border-radius:50%}._avatar_58dyx_2 image{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;border-radius:50%}._s_58dyx_19{--avatar-width: 32px;--avatar-height: 32px}._m_58dyx_24{--avatar-width: 40px;--avatar-height: 40px}._l_58dyx_29{--avatar-width: 48px;--avatar-height: 48px}._default_58dyx_34{background-color:var(--black-5)}
1
+ ._avatar_e6abi_2{position:relative;display:flex;align-items:center;justify-content:center;width:var(--avatar-width);height:var(--avatar-height)}._avatar_e6abi_2 ._image_e6abi_10{-o-object-fit:cover;object-fit:cover;border-radius:50%;aspect-ratio:1/1}._s_e6abi_16{--avatar-width: 32px;--avatar-height: 32px}._m_e6abi_21{--avatar-width: 40px;--avatar-height: 40px}._l_e6abi_26{--avatar-width: 48px;--avatar-height: 48px}._default_e6abi_31{background-color:var(--black-5)}
@@ -1,46 +1,47 @@
1
- import { jsxs as c, jsx as m } from "react/jsx-runtime";
2
- import { c as d } from "../../index-DIxK0V-G.js";
1
+ import { jsxs as _, jsx as i } from "react/jsx-runtime";
2
+ import { c } from "../../index-DIxK0V-G.js";
3
3
  import { memo as n } from "react";
4
4
  import { EAvatarSize as t } from "./constants.js";
5
5
  import { Icon as l } from "../../icons/Icon.js";
6
- import { AppImage as _ } from "../Image/Image.js";
7
- import { NotificationBadge as f } from "../NotificationBadge/NotificationBadge.js";
8
- import '../../assets/Avatar.css';const x = "_avatar_58dyx_2", v = "_s_58dyx_19", u = "_m_58dyx_24", y = "_l_58dyx_29", o = {
9
- avatar: x,
10
- s: v,
11
- m: u,
12
- l: y,
13
- default: "_default_58dyx_34"
6
+ import { AppImage as f } from "../Image/Image.js";
7
+ import { NotificationBadge as d } from "../NotificationBadge/NotificationBadge.js";
8
+ import '../../assets/Avatar.css';const v = "_avatar_e6abi_2", x = "_image_e6abi_10", b = "_s_e6abi_16", g = "_m_e6abi_21", u = "_l_e6abi_26", o = {
9
+ avatar: v,
10
+ image: x,
11
+ s: b,
12
+ m: g,
13
+ l: u,
14
+ default: "_default_e6abi_31"
14
15
  }, N = n(
15
16
  ({
16
17
  size: a = t.M,
17
- className: e,
18
- notificationsCount: s = 0,
19
- src: r,
20
- alt: i = "User avatar"
18
+ className: r,
19
+ notificationsCount: m = 0,
20
+ src: e,
21
+ alt: s = "User avatar"
21
22
  }) => {
22
23
  const p = a === t.S || a === t.M ? { top: "8px", left: "-8px" } : { top: "12px", left: "-12px" };
23
- return /* @__PURE__ */ c(
24
+ return /* @__PURE__ */ _(
24
25
  "div",
25
26
  {
26
- className: d(o.avatar, o[a], e, {
27
- [o.default]: !r
27
+ className: c(o.avatar, o[a], r, {
28
+ [o.default]: !e
28
29
  }),
29
30
  "data-testid": "avatar-container",
30
31
  children: [
31
- r ? /* @__PURE__ */ m(
32
- _,
32
+ e ? /* @__PURE__ */ i(
33
+ f,
33
34
  {
34
- src: r,
35
- alt: i,
35
+ src: e,
36
+ alt: s,
36
37
  className: o.image,
37
38
  "data-testid": "avatar-image"
38
39
  }
39
- ) : /* @__PURE__ */ m(l, { iconName: "User16px" }),
40
- !!s && /* @__PURE__ */ m(
41
- f,
40
+ ) : /* @__PURE__ */ i(l, { iconName: "User16px" }),
41
+ !!m && /* @__PURE__ */ i(
42
+ d,
42
43
  {
43
- count: s,
44
+ count: m,
44
45
  position: p,
45
46
  size: a === t.S ? "s" : "m",
46
47
  absolute: !0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mimir-ui-kit",
3
3
  "private": false,
4
- "version": "1.34.10",
4
+ "version": "1.34.12",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {