@getflip/swirl-components 0.130.0 → 0.131.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/components.json +6 -2
- package/dist/cjs/swirl-avatar-group.cjs.entry.js +2 -2
- package/dist/cjs/swirl-avatar.cjs.entry.js +3 -2
- package/dist/cjs/swirl-badge.cjs.entry.js +1 -1
- package/dist/collection/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/collection/components/swirl-avatar/swirl-avatar.css +18 -1
- package/dist/collection/components/swirl-avatar/swirl-avatar.js +3 -2
- package/dist/collection/components/swirl-avatar/swirl-avatar.stories.js +0 -1
- package/dist/collection/components/swirl-avatar-group/swirl-avatar-group.css +1 -1
- package/dist/collection/components/swirl-avatar-group/swirl-avatar-group.js +1 -1
- package/dist/collection/components/swirl-avatar-group/swirl-avatar-group.spec.js +5 -5
- package/dist/collection/components/swirl-avatar-group/swirl-avatar-group.stories.js +2 -2
- package/dist/collection/components/swirl-badge/swirl-badge.css +3 -3
- package/dist/collection/components/swirl-resource-list-item/swirl-resource-list-item.stories.js +1 -1
- package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/components/swirl-avatar-group.js +2 -2
- package/dist/components/swirl-avatar.js +3 -2
- package/dist/components/swirl-badge2.js +1 -1
- package/dist/esm/swirl-avatar-group.entry.js +2 -2
- package/dist/esm/swirl-avatar.entry.js +3 -2
- package/dist/esm/swirl-badge.entry.js +1 -1
- package/dist/swirl-components/p-0c10bed4.entry.js +1 -0
- package/dist/swirl-components/{p-610b58d1.entry.js → p-26719601.entry.js} +1 -1
- package/dist/swirl-components/p-b4c0ac86.entry.js +1 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-avatar/swirl-avatar.d.ts +1 -1
- package/package.json +1 -1
- package/vscode-data.json +3 -0
- package/dist/swirl-components/p-a4349271.entry.js +0 -1
- package/dist/swirl-components/p-de200f09.entry.js +0 -1
|
@@ -40,12 +40,29 @@
|
|
|
40
40
|
outline-color: var(--s-focus-default);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
.avatar--size-
|
|
43
|
+
.avatar--size-3xs {
|
|
44
44
|
width: 1.25rem;
|
|
45
45
|
height: 1.25rem;
|
|
46
46
|
font-size: 0.625rem;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
.avatar--size-3xs.avatar--has-icon {
|
|
50
|
+
padding-right: 0.125rem;
|
|
51
|
+
padding-left: 0.125rem;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.avatar--size-3xs.avatar--variant-square,
|
|
55
|
+
.avatar--size-3xs.avatar--variant-square .avatar__image,
|
|
56
|
+
.avatar--size-3xs.avatar--variant-square .avatar__initials {
|
|
57
|
+
border-radius: 0.25rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.avatar--size-2xs {
|
|
61
|
+
width: 1.5rem;
|
|
62
|
+
height: 1.5rem;
|
|
63
|
+
font-size: 0.625rem;
|
|
64
|
+
}
|
|
65
|
+
|
|
49
66
|
.avatar--size-2xs.avatar--has-icon {
|
|
50
67
|
padding-right: 0.125rem;
|
|
51
68
|
padding-left: 0.125rem;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import classnames from "classnames";
|
|
3
3
|
const swirlAvatarSizeMappings = {
|
|
4
|
-
"
|
|
4
|
+
"3xs": 20,
|
|
5
|
+
"2xs": 24,
|
|
5
6
|
xs: 28,
|
|
6
7
|
s: 32,
|
|
7
8
|
m: 40,
|
|
@@ -242,7 +243,7 @@ export class SwirlAvatar {
|
|
|
242
243
|
"mutable": false,
|
|
243
244
|
"complexType": {
|
|
244
245
|
"original": "SwirlAvatarSize",
|
|
245
|
-
"resolved": "\"2xl\" | \"2xs\" | \"l\" | \"m\" | \"s\" | \"xl\" | \"xs\"",
|
|
246
|
+
"resolved": "\"2xl\" | \"2xs\" | \"3xs\" | \"l\" | \"m\" | \"s\" | \"xl\" | \"xs\"",
|
|
246
247
|
"references": {
|
|
247
248
|
"SwirlAvatarSize": {
|
|
248
249
|
"location": "local",
|
|
@@ -6,8 +6,8 @@ describe("swirl-avatar-group", () => {
|
|
|
6
6
|
components: [SwirlAvatarGroup],
|
|
7
7
|
html: `
|
|
8
8
|
<swirl-avatar-group badge="<swirl-badge aria-label="3 new messages" label="3"></swirl-badge>">
|
|
9
|
-
<swirl-avatar label="Jane Doe" src="https://
|
|
10
|
-
<swirl-avatar label="John Doe" src="https://
|
|
9
|
+
<swirl-avatar label="Jane Doe" src="https://api.dicebear.com/7.x/bottts-neutral/svg?size=144&seed=a" size="s"></swirl-avatar>
|
|
10
|
+
<swirl-avatar label="John Doe" src="https://api.dicebear.com/7.x/bottts-neutral/svg?size=144&seed=b" size="s"></swirl-avatar>
|
|
11
11
|
</swirl-avatar-group>
|
|
12
12
|
`,
|
|
13
13
|
});
|
|
@@ -17,12 +17,12 @@ describe("swirl-avatar-group", () => {
|
|
|
17
17
|
<div class="avatar-group avatar-group--has-badge" role="group">
|
|
18
18
|
<slot></slot>
|
|
19
19
|
<span class="avatar-group__badge">
|
|
20
|
-
<swirl-badge aria-label="3 new messages" label="3" size="
|
|
20
|
+
<swirl-badge aria-label="3 new messages" label="3" size="s"></swirl-badge>
|
|
21
21
|
</span>
|
|
22
22
|
</div>
|
|
23
23
|
</mock:shadow-root>
|
|
24
|
-
<swirl-avatar label="Jane Doe" size="s" src="https://
|
|
25
|
-
<swirl-avatar label="John Doe" size="s" src="https://
|
|
24
|
+
<swirl-avatar label="Jane Doe" size="s" src="https://api.dicebear.com/7.x/bottts-neutral/svg?size=144&seed=a"></swirl-avatar>
|
|
25
|
+
<swirl-avatar label="John Doe" size="s" src="https://api.dicebear.com/7.x/bottts-neutral/svg?size=144&seed=b"></swirl-avatar>
|
|
26
26
|
</swirl-avatar-group>
|
|
27
27
|
`);
|
|
28
28
|
});
|
|
@@ -23,8 +23,8 @@ export default {
|
|
|
23
23
|
const Template = (args) => {
|
|
24
24
|
const element = generateStoryElement("swirl-avatar-group", args);
|
|
25
25
|
element.innerHTML = `
|
|
26
|
-
<swirl-avatar label="Jane Doe" src="https://
|
|
27
|
-
<swirl-avatar label="John Doe" src="https://
|
|
26
|
+
<swirl-avatar label="Jane Doe" src="https://api.dicebear.com/7.x/bottts-neutral/svg?size=144&seed=a" size="xs"></swirl-avatar>
|
|
27
|
+
<swirl-avatar label="John Doe" src="https://api.dicebear.com/7.x/bottts-neutral/svg?size=144&seed=b" size="xs"></swirl-avatar>
|
|
28
28
|
`;
|
|
29
29
|
return element;
|
|
30
30
|
};
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
max-width: 100%;
|
|
16
16
|
justify-content: center;
|
|
17
17
|
align-items: center;
|
|
18
|
-
|
|
18
|
+
box-shadow: 0 0 0 0.125rem var(--swirl-badge-border-color);
|
|
19
19
|
border-radius: 2rem;
|
|
20
20
|
color: var(--s-text-on-status);
|
|
21
21
|
font-size: var(--s-font-size-sm);
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
|
|
53
53
|
.badge--size-s .badge__icon > swirl-icon,
|
|
54
54
|
.badge--size-s .badge__icon > *::part(icon) {
|
|
55
|
-
width:
|
|
56
|
-
height:
|
|
55
|
+
width: 1rem;
|
|
56
|
+
height: 1rem;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.badge--size-m {
|
package/dist/collection/components/swirl-resource-list-item/swirl-resource-list-item.stories.js
CHANGED
|
@@ -28,7 +28,7 @@ const Template = (args) => {
|
|
|
28
28
|
<swirl-avatar
|
|
29
29
|
slot="media"
|
|
30
30
|
label="Jane Doe"
|
|
31
|
-
src="https://
|
|
31
|
+
src="https://api.dicebear.com/7.x/bottts-neutral/svg?size=144"></swirl-avatar>
|
|
32
32
|
|
|
33
33
|
<swirl-stack slot="badges" align="center" orientation="horizontal" spacing="8">
|
|
34
34
|
<swirl-icon-notifications-off size="16"></swirl-icon-notifications-off>
|