@volverjs/style 0.1.2-beta.11 → 0.1.2-beta.16
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/dist/components/vv-alert.css +1 -1
- package/dist/components/vv-badge.css +1 -1
- package/dist/components/vv-card.css +1 -1
- package/dist/components/vv-dialog.css +1 -1
- package/dist/components/vv-input-checkbox.css +1 -1
- package/dist/components/vv-input-text.css +1 -1
- package/dist/components/vv-nav.css +1 -1
- package/dist/components/vv-textarea.css +1 -1
- package/dist/components/vv-toast.css +1 -0
- package/dist/components/vv-tooltip.css +1 -0
- package/dist/components.css +1 -1
- package/dist/export.css +1 -1
- package/dist/props/background.css +1 -1
- package/dist/props/colors.css +1 -1
- package/dist/props.css +1 -1
- package/dist/themes/dark/components.css +1 -1
- package/dist/themes/dark/props.css +1 -1
- package/dist/themes/dark/volver.css +1 -1
- package/dist/utilities/backgrounds.css +1 -1
- package/dist/utilities/colors.css +1 -1
- package/dist/utilities.css +1 -1
- package/dist/volver.css +1 -1
- package/package.json +6 -2
- package/src/_config.scss +2 -0
- package/src/_preflight.scss +251 -248
- package/src/components/index.scss +3 -1
- package/src/components/vv-toast.scss +12 -0
- package/src/components/vv-tooltip.scss +12 -0
- package/src/settings/_background.scss +3 -1
- package/src/settings/_colors.scss +14 -1
- package/src/settings/_index.scss +3 -1
- package/src/settings/components/_vv-alert.scss +73 -72
- package/src/settings/components/_vv-badge.scss +6 -0
- package/src/settings/components/_vv-card.scss +2 -1
- package/src/settings/components/_vv-dialog.scss +9 -3
- package/src/settings/components/_vv-input-checkbox.scss +8 -0
- package/src/settings/components/_vv-input-text.scss +16 -0
- package/src/settings/components/_vv-nav.scss +27 -1
- package/src/settings/components/_vv-textarea.scss +21 -0
- package/src/settings/components/_vv-toast.scss +128 -0
- package/src/settings/components/_vv-tooltip.scss +135 -0
- package/src/themes/dark/_context.scss +4 -1
- package/src/themes/dark/components/index.scss +0 -1
- package/src/themes/dark/settings/_background.scss +2 -0
- package/src/themes/dark/settings/_colors.scss +14 -1
- package/src/themes/dark/settings/_index.scss +0 -1
- package/src/themes/dark/components/_vv-alert.scss +0 -22
- package/src/themes/dark/settings/components/_vv-alert.scss +0 -80
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
$vv-tooltip: (
|
|
2
|
+
position: relative,
|
|
3
|
+
display: inline-flex,
|
|
4
|
+
align-items: center,
|
|
5
|
+
element: (
|
|
6
|
+
content: (
|
|
7
|
+
opacity: 0,
|
|
8
|
+
position: absolute,
|
|
9
|
+
z-index: var(--z-tooltip),
|
|
10
|
+
display: block,
|
|
11
|
+
min-width: var(--spacing-160),
|
|
12
|
+
border-radius: var(--rounded-md),
|
|
13
|
+
border-width: 2px,
|
|
14
|
+
border-style: solid,
|
|
15
|
+
border-color: var(--color-gray-darken-4),
|
|
16
|
+
padding: var(--spacing-4) var(--spacing-sm),
|
|
17
|
+
margin: 0 0 0 var(--spacing-xs),
|
|
18
|
+
background: var(--color-gray-darken-4),
|
|
19
|
+
font-size: var(--text-12),
|
|
20
|
+
font-weight: var(--font-normal),
|
|
21
|
+
color: var(--color-gray-lighten-5),
|
|
22
|
+
text-align: center,
|
|
23
|
+
inset-inline: 100% auto,
|
|
24
|
+
inset-block: auto,
|
|
25
|
+
box-shadow: var(--shadow-md),
|
|
26
|
+
pseudo: (
|
|
27
|
+
after: (
|
|
28
|
+
position: absolute,
|
|
29
|
+
z-index: -1,
|
|
30
|
+
inset-inline: -10% auto,
|
|
31
|
+
inset-block: 50% auto,
|
|
32
|
+
transform: translateY(-50%),
|
|
33
|
+
border: 10px solid var(--color-gray-darken-4),
|
|
34
|
+
border-color: transparent var(--color-gray-darken-4)
|
|
35
|
+
transparent transparent,
|
|
36
|
+
),
|
|
37
|
+
),
|
|
38
|
+
),
|
|
39
|
+
),
|
|
40
|
+
modifier: (
|
|
41
|
+
top: (
|
|
42
|
+
element: (
|
|
43
|
+
content: (
|
|
44
|
+
margin: 0 0 var(--spacing-xs) 0,
|
|
45
|
+
inset-inline: auto,
|
|
46
|
+
inset-block: auto 100%,
|
|
47
|
+
pseudo: (
|
|
48
|
+
after: (
|
|
49
|
+
position: absolute,
|
|
50
|
+
z-index: -1,
|
|
51
|
+
inset-inline: 45% auto,
|
|
52
|
+
inset-block: 130% auto,
|
|
53
|
+
border: 10px solid var(--color-gray-darken-4),
|
|
54
|
+
border-color: var(--color-gray-darken-4) transparent
|
|
55
|
+
transparent,
|
|
56
|
+
),
|
|
57
|
+
),
|
|
58
|
+
),
|
|
59
|
+
),
|
|
60
|
+
),
|
|
61
|
+
right: (
|
|
62
|
+
element: (
|
|
63
|
+
content: (
|
|
64
|
+
margin: 0 0 0 var(--spacing-xs),
|
|
65
|
+
inset-inline: 100% auto,
|
|
66
|
+
inset-block: auto,
|
|
67
|
+
pseudo: (
|
|
68
|
+
after: (
|
|
69
|
+
position: absolute,
|
|
70
|
+
z-index: -1,
|
|
71
|
+
inset-inline: -10% auto,
|
|
72
|
+
inset-block: 50% auto,
|
|
73
|
+
transform: translateY(-50%),
|
|
74
|
+
border: 10px solid var(--color-gray-darken-4),
|
|
75
|
+
border-color: transparent var(--color-gray-darken-4)
|
|
76
|
+
transparent transparent,
|
|
77
|
+
),
|
|
78
|
+
),
|
|
79
|
+
),
|
|
80
|
+
),
|
|
81
|
+
),
|
|
82
|
+
bottom: (
|
|
83
|
+
element: (
|
|
84
|
+
content: (
|
|
85
|
+
margin: var(--spacing-xs) 0 0 0,
|
|
86
|
+
inset-inline: auto,
|
|
87
|
+
inset-block: 100% auto,
|
|
88
|
+
pseudo: (
|
|
89
|
+
after: (
|
|
90
|
+
position: absolute,
|
|
91
|
+
z-index: -1,
|
|
92
|
+
inset-inline: 45% auto,
|
|
93
|
+
inset-block: auto 50%,
|
|
94
|
+
border: 10px solid var(--color-gray-darken-4),
|
|
95
|
+
border-color: transparent transparent
|
|
96
|
+
var(--color-gray-darken-4) transparent,
|
|
97
|
+
),
|
|
98
|
+
),
|
|
99
|
+
),
|
|
100
|
+
),
|
|
101
|
+
),
|
|
102
|
+
left: (
|
|
103
|
+
element: (
|
|
104
|
+
content: (
|
|
105
|
+
margin: 0 var(--spacing-xs) 0 0,
|
|
106
|
+
inset-inline: auto 100%,
|
|
107
|
+
inset-block: auto,
|
|
108
|
+
pseudo: (
|
|
109
|
+
after: (
|
|
110
|
+
position: absolute,
|
|
111
|
+
z-index: -1,
|
|
112
|
+
inset-inline: auto -10%,
|
|
113
|
+
inset-block: 50% auto,
|
|
114
|
+
transform: translateY(-50%),
|
|
115
|
+
border: 10px solid var(--color-gray-darken-4),
|
|
116
|
+
border-color: transparent transparent transparent
|
|
117
|
+
var(--color-gray-darken-4),
|
|
118
|
+
),
|
|
119
|
+
),
|
|
120
|
+
),
|
|
121
|
+
),
|
|
122
|
+
),
|
|
123
|
+
),
|
|
124
|
+
state: (
|
|
125
|
+
hover: (
|
|
126
|
+
element: (
|
|
127
|
+
content: (
|
|
128
|
+
opacity: 1,
|
|
129
|
+
will-change: opacity,
|
|
130
|
+
transition: opacity 0.3s ease-in-out,
|
|
131
|
+
),
|
|
132
|
+
),
|
|
133
|
+
),
|
|
134
|
+
),
|
|
135
|
+
) !default;
|
|
@@ -9,4 +9,6 @@ $dark-background-image: (
|
|
|
9
9
|
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(#{hex-to-rgb($dark-color-word)})' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E"),
|
|
10
10
|
minus:
|
|
11
11
|
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(#{hex-to-rgb($dark-color-word)})' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E"),
|
|
12
|
+
close:
|
|
13
|
+
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(#{hex-to-rgb($dark-color-word)})' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20L4 4m16 0L4 20'/%3E%3C/svg%3E"),
|
|
12
14
|
) !default;
|
|
@@ -1,15 +1,28 @@
|
|
|
1
1
|
@use 'sass:color';
|
|
2
|
+
@use 'sass:map';
|
|
2
3
|
|
|
3
4
|
$dark-color-scheme: dark !default;
|
|
4
5
|
$dark-color-brand: #1976d2 !default;
|
|
5
6
|
$dark-color-word: hsl(color.hue($dark-color-brand) 15% 85%) !default;
|
|
6
7
|
$dark-color-surface: hsl(color.hue($dark-color-brand) 10% 5%) !default;
|
|
7
8
|
$dark-color-alpha: hsla(0deg 0% 100% / 0%) !default;
|
|
9
|
+
$dark-color-surface-palette: (
|
|
10
|
+
brand: hsl(color.hue($color-brand) color.saturation($color-brand) 10%),
|
|
11
|
+
accent: hsl(color.hue($color-accent) color.saturation($color-accent) 10%),
|
|
12
|
+
success: hsl(color.hue($color-success) color.saturation($color-success) 10%),
|
|
13
|
+
danger: hsl(color.hue($color-danger) color.saturation($color-danger) 10%),
|
|
14
|
+
info: hsl(color.hue($color-info) color.saturation($color-info) 10%),
|
|
15
|
+
warning: hsl(color.hue($color-warning) color.saturation($color-warning) 10%),
|
|
16
|
+
) !default;
|
|
8
17
|
|
|
9
18
|
// color map
|
|
10
19
|
$dark-colors: (
|
|
11
20
|
scheme: $dark-color-scheme,
|
|
12
21
|
word: color-darken-map($dark-color-word, 'word', $scale: 15%),
|
|
13
|
-
surface:
|
|
22
|
+
surface:
|
|
23
|
+
map.merge(
|
|
24
|
+
color-lighten-map($dark-color-surface, 'surface', $scale: 5%),
|
|
25
|
+
$dark-color-surface-palette
|
|
26
|
+
),
|
|
14
27
|
alpha: color-alpha-map($dark-color-alpha, 'alpha', $steps: 5, $scale: 5%),
|
|
15
28
|
) !default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@import '../context';
|
|
3
|
-
|
|
4
|
-
$component-name: map.get($components-names, vv-alert);
|
|
5
|
-
$component-map: $dark-vv-alert;
|
|
6
|
-
|
|
7
|
-
@mixin theme-dark-vv-alert {
|
|
8
|
-
@include spread-map-into-props(
|
|
9
|
-
$map: $component-map,
|
|
10
|
-
$prefix: $component-name
|
|
11
|
-
);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:where(:host, :root, .theme):not(.theme--light) {
|
|
15
|
-
@media (prefers-color-scheme: dark) {
|
|
16
|
-
@include theme-dark-vv-alert;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
:where(.theme.theme--dark) {
|
|
21
|
-
@include theme-dark-vv-alert;
|
|
22
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
$dark-vv-alert: (
|
|
2
|
-
modifier: (
|
|
3
|
-
success: (
|
|
4
|
-
background-color:
|
|
5
|
-
hsl(
|
|
6
|
-
var(--color-success-hue) var(--color-success-saturation) 10%
|
|
7
|
-
),
|
|
8
|
-
element: (
|
|
9
|
-
icon: (
|
|
10
|
-
color: var(--color-success),
|
|
11
|
-
),
|
|
12
|
-
title: (
|
|
13
|
-
color: var(--color-success),
|
|
14
|
-
),
|
|
15
|
-
),
|
|
16
|
-
),
|
|
17
|
-
danger: (
|
|
18
|
-
background-color:
|
|
19
|
-
hsl(var(--color-danger-hue) var(--color-danger-saturation) 10%),
|
|
20
|
-
element: (
|
|
21
|
-
icon: (
|
|
22
|
-
color: var(--color-danger),
|
|
23
|
-
),
|
|
24
|
-
title: (
|
|
25
|
-
color: var(--color-danger),
|
|
26
|
-
),
|
|
27
|
-
),
|
|
28
|
-
),
|
|
29
|
-
warning: (
|
|
30
|
-
background-color:
|
|
31
|
-
hsl(
|
|
32
|
-
var(--color-warning-hue) var(--color-warning-saturation) 10%
|
|
33
|
-
),
|
|
34
|
-
element: (
|
|
35
|
-
icon: (
|
|
36
|
-
color: var(--color-warning),
|
|
37
|
-
),
|
|
38
|
-
title: (
|
|
39
|
-
color: var(--color-warning),
|
|
40
|
-
),
|
|
41
|
-
),
|
|
42
|
-
),
|
|
43
|
-
info: (
|
|
44
|
-
background-color:
|
|
45
|
-
hsl(var(--color-info-hue) var(--color-info-saturation) 10%),
|
|
46
|
-
element: (
|
|
47
|
-
icon: (
|
|
48
|
-
color: var(--color-info),
|
|
49
|
-
),
|
|
50
|
-
title: (
|
|
51
|
-
color: var(--color-info),
|
|
52
|
-
),
|
|
53
|
-
),
|
|
54
|
-
),
|
|
55
|
-
accent: (
|
|
56
|
-
background-color:
|
|
57
|
-
hsl(var(--color-accent-hue) var(--color-accent-saturation) 10%),
|
|
58
|
-
element: (
|
|
59
|
-
icon: (
|
|
60
|
-
color: var(--color-accent),
|
|
61
|
-
),
|
|
62
|
-
title: (
|
|
63
|
-
color: var(--color-accent),
|
|
64
|
-
),
|
|
65
|
-
),
|
|
66
|
-
),
|
|
67
|
-
brand: (
|
|
68
|
-
background-color:
|
|
69
|
-
hsl(var(--color-brand-hue) var(--color-brand-saturation) 10%),
|
|
70
|
-
element: (
|
|
71
|
-
icon: (
|
|
72
|
-
color: var(--color-brand),
|
|
73
|
-
),
|
|
74
|
-
title: (
|
|
75
|
-
color: var(--color-brand),
|
|
76
|
-
),
|
|
77
|
-
),
|
|
78
|
-
),
|
|
79
|
-
),
|
|
80
|
-
) !default;
|