@volverjs/style 0.1.2-beta.16 → 0.1.2-beta.17

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": "@volverjs/style",
3
- "version": "0.1.2-beta.16",
3
+ "version": "0.1.2-beta.17",
4
4
  "description": "@volverjs/style is a lightweight responsive CSS utility library to accompany @volverjs/ui and static webpages as well.",
5
5
  "main": "dist/style.css",
6
6
  "style": "dist/style.css",
@@ -27,6 +27,8 @@
27
27
  "./scss/components/vv-accordion": "./src/components/vv-accordion.scss",
28
28
  "./components/vv-alert": "./dist/components/vv-alert.css",
29
29
  "./scss/components/vv-alert": "./src/components/vv-alert.scss",
30
+ "./components/vv-avatar": "./dist/components/vv-avatar.css",
31
+ "./scss/components/vv-avatar": "./src/components/vv-avatar.scss",
30
32
  "./components/vv-badge": "./dist/components/vv-badge.css",
31
33
  "./scss/components/vv-badge": "./src/components/vv-badge.scss",
32
34
  "./components/vv-breadcrumb": "./dist/components/vv-breadcrumb.css",
package/src/_config.scss CHANGED
@@ -25,6 +25,7 @@ $components-names: (
25
25
  vv-input-checkbox: $components-prefix + -input-checkbox,
26
26
  vv-input-radio-group: $components-prefix + -input-radio-group,
27
27
  vv-input-radio: $components-prefix + -input-radio,
28
+ vv-avatar: $components-prefix + -avatar,
28
29
  vv-input-text: $components-prefix + -input-text,
29
30
  vv-nav: $components-prefix + -nav,
30
31
  vv-progress: $components-prefix + -progress,
@@ -11,6 +11,7 @@
11
11
  @import 'vv-input-checkbox';
12
12
  @import 'vv-input-radio-group';
13
13
  @import 'vv-input-radio';
14
+ @import 'vv-avatar';
14
15
  @import 'vv-input-text';
15
16
  @import 'vv-nav';
16
17
  @import 'vv-progress';
@@ -0,0 +1,12 @@
1
+ @use 'sass:map';
2
+ @import '../context';
3
+
4
+ $component-name: map.get($components-names, vv-avatar);
5
+ $component-map: $vv-avatar;
6
+
7
+ @include spread-map-into-bem(
8
+ $map: $component-map,
9
+ $block: $component-name,
10
+ $props: $use-custom-props-for-components,
11
+ $zero-specificity: $zero-specificity-for-compoenents
12
+ );
@@ -28,6 +28,7 @@
28
28
  @import 'components/vv-input-checkbox';
29
29
  @import 'components/vv-input-radio-group';
30
30
  @import 'components/vv-input-radio';
31
+ @import 'components/vv-avatar';
31
32
  @import 'components/vv-input-text';
32
33
  @import 'components/vv-nav';
33
34
  @import 'components/vv-progress';
@@ -0,0 +1,34 @@
1
+ $vv-avatar: (
2
+ display: inline-flex,
3
+ justify-content: center,
4
+ align-items: center,
5
+ width: var(--spacing-40),
6
+ height: var(--spacing-40),
7
+ border-radius: 50%,
8
+ border-width: var(--spacing-2),
9
+ border-style: solid,
10
+ border-color: var(--color-surface-4),
11
+ background-color: var(--color-word),
12
+ background-position: center,
13
+ background-size: contain,
14
+ background-repeat: no-repeat,
15
+ color: var(--color-surface),
16
+ object-fit: contain,
17
+ overflow: hidden,
18
+ modifier: (
19
+ small: (
20
+ width: var(--spacing-40),
21
+ height: var(--spacing-40),
22
+ ),
23
+ medium: (
24
+ width: var(--spacing-50),
25
+ height: var(--spacing-50),
26
+ font-size: 1.3em,
27
+ ),
28
+ large: (
29
+ width: var(--spacing-64),
30
+ height: var(--spacing-64),
31
+ font-size: 1.7em,
32
+ ),
33
+ ),
34
+ ) !default;
@@ -30,7 +30,8 @@ $vv-tooltip: (
30
30
  inset-inline: -10% auto,
31
31
  inset-block: 50% auto,
32
32
  transform: translateY(-50%),
33
- border: 10px solid var(--color-gray-darken-4),
33
+ border-width: 10px,
34
+ border-style: solid,
34
35
  border-color: transparent var(--color-gray-darken-4)
35
36
  transparent transparent,
36
37
  ),
@@ -50,7 +51,8 @@ $vv-tooltip: (
50
51
  z-index: -1,
51
52
  inset-inline: 45% auto,
52
53
  inset-block: 130% auto,
53
- border: 10px solid var(--color-gray-darken-4),
54
+ border-width: 10px,
55
+ border-style: solid,
54
56
  border-color: var(--color-gray-darken-4) transparent
55
57
  transparent,
56
58
  ),
@@ -71,7 +73,8 @@ $vv-tooltip: (
71
73
  inset-inline: -10% auto,
72
74
  inset-block: 50% auto,
73
75
  transform: translateY(-50%),
74
- border: 10px solid var(--color-gray-darken-4),
76
+ border-width: 10px,
77
+ border-style: solid,
75
78
  border-color: transparent var(--color-gray-darken-4)
76
79
  transparent transparent,
77
80
  ),
@@ -91,7 +94,8 @@ $vv-tooltip: (
91
94
  z-index: -1,
92
95
  inset-inline: 45% auto,
93
96
  inset-block: auto 50%,
94
- border: 10px solid var(--color-gray-darken-4),
97
+ border-width: 10px,
98
+ border-style: solid,
95
99
  border-color: transparent transparent
96
100
  var(--color-gray-darken-4) transparent,
97
101
  ),
@@ -112,7 +116,8 @@ $vv-tooltip: (
112
116
  inset-inline: auto -10%,
113
117
  inset-block: 50% auto,
114
118
  transform: translateY(-50%),
115
- border: 10px solid var(--color-gray-darken-4),
119
+ border-width: 10px,
120
+ border-style: solid,
116
121
  border-color: transparent transparent transparent
117
122
  var(--color-gray-darken-4),
118
123
  ),