@globalbrain/sefirot 2.10.0 → 2.11.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/lib/components/SAvatar.vue +15 -8
- package/lib/components/SButton.vue +363 -576
- package/lib/components/SInputBase.vue +4 -4
- package/lib/components/SInputCheckboxes.vue +0 -1
- package/lib/components/SInputDate.vue +1 -1
- package/lib/components/SInputDropdown.vue +2 -2
- package/lib/components/SInputSelect.vue +92 -106
- package/lib/components/SPill.vue +199 -0
- package/lib/components/SSnackbar.vue +0 -1
- package/lib/components/STable.vue +5 -2
- package/lib/components/STableCellDay.vue +2 -2
- package/lib/components/STableCellPill.vue +13 -45
- package/lib/components/STableCellText.vue +2 -2
- package/lib/composables/Table.ts +1 -1
- package/lib/composables/Utils.ts +9 -0
- package/lib/styles/variables.css +433 -160
- package/lib/support/Time.ts +3 -1
- package/package.json +8 -8
|
@@ -9,7 +9,10 @@ const props = defineProps<{
|
|
|
9
9
|
name?: string | null
|
|
10
10
|
}>()
|
|
11
11
|
|
|
12
|
-
const classes = computed(() => [
|
|
12
|
+
const classes = computed(() => [
|
|
13
|
+
props.size ?? 'medium',
|
|
14
|
+
{ 'no-image': !props.avatar }
|
|
15
|
+
])
|
|
13
16
|
|
|
14
17
|
const initial = computed(() => props.name?.charAt(0).toUpperCase())
|
|
15
18
|
</script>
|
|
@@ -17,7 +20,7 @@ const initial = computed(() => props.name?.charAt(0).toUpperCase())
|
|
|
17
20
|
<template>
|
|
18
21
|
<div class="SAvatar" :class="classes">
|
|
19
22
|
<img v-if="avatar" class="img" :src="avatar">
|
|
20
|
-
<p v-else class="initial">{{ initial }}</p>
|
|
23
|
+
<p v-else-if="initial" class="initial">{{ initial }}</p>
|
|
21
24
|
</div>
|
|
22
25
|
</template>
|
|
23
26
|
|
|
@@ -27,14 +30,10 @@ const initial = computed(() => props.name?.charAt(0).toUpperCase())
|
|
|
27
30
|
justify-content: center;
|
|
28
31
|
align-items: center;
|
|
29
32
|
border-radius: 50%;
|
|
30
|
-
background-color: var(--c-bg-elv-
|
|
33
|
+
background-color: var(--c-bg-elv-1);
|
|
31
34
|
overflow: hidden;
|
|
32
35
|
}
|
|
33
36
|
|
|
34
|
-
.img {
|
|
35
|
-
object-fit: cover;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
37
|
.SAvatar.nano {
|
|
39
38
|
width: 20px;
|
|
40
39
|
height: 20px;
|
|
@@ -62,7 +61,15 @@ const initial = computed(() => props.name?.charAt(0).toUpperCase())
|
|
|
62
61
|
.SAvatar.large {
|
|
63
62
|
width: 40px;
|
|
64
63
|
height: 40px;
|
|
65
|
-
.initial { font-size:
|
|
64
|
+
.initial { font-size: 16px; }
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.SAvatar.no-image {
|
|
68
|
+
border: 1px solid var(--c-divider-2);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.img {
|
|
72
|
+
object-fit: cover;
|
|
66
73
|
}
|
|
67
74
|
|
|
68
75
|
.initial {
|