@inglorious/ui 7.8.0 → 7.8.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inglorious/ui",
3
- "version": "7.8.0",
3
+ "version": "7.8.1",
4
4
  "description": "A design system for Inglorious Web with render-function components and customizable themes",
5
5
  "author": "Matteo Antony Mistretta <antony.mistretta@gmail.com> (https://ingloriouscoderz.it)",
6
6
  "license": "MIT",
@@ -1,13 +1,10 @@
1
1
  .iw-avatar {
2
2
  display: inline-grid;
3
3
  place-items: center;
4
- width: 2rem;
5
- height: 2rem;
6
4
  flex: 0 0 auto;
7
5
  border-radius: 999px;
8
6
  background: var(--iw-color-bg-secondary);
9
7
  color: var(--iw-color-text);
10
- font-size: var(--iw-font-size-sm);
11
8
  font-weight: var(--iw-font-weight-medium);
12
9
  line-height: 1;
13
10
  overflow: hidden;
@@ -21,11 +18,19 @@
21
18
  &.iw-avatar-sm {
22
19
  width: 1.5rem;
23
20
  height: 1.5rem;
21
+ font-size: var(--iw-font-size-xs);
22
+ }
23
+
24
+ &.iw-avatar-md {
25
+ width: 2rem;
26
+ height: 2rem;
27
+ font-size: var(--iw-font-size-sm);
24
28
  }
25
29
 
26
30
  &.iw-avatar-lg {
27
31
  width: 3rem;
28
32
  height: 3rem;
33
+ font-size: var(--iw-font-size-base);
29
34
  }
30
35
 
31
36
  &.iw-avatar-square {
@@ -32,7 +32,7 @@ export function render(props) {
32
32
  color === "auto" && !hasCustomBackground ? "default" : color
33
33
  const classes = {
34
34
  "iw-avatar": true,
35
- [`iw-avatar-${size}`]: size !== "md",
35
+ [`iw-avatar-${size}`]: true,
36
36
  [`iw-avatar-${shape}`]: shape !== "circle",
37
37
  [`iw-avatar-color-${resolvedColor}`]:
38
38
  resolvedColor !== "default" && !hasCustomBackground,