@volverjs/style 0.0.0 → 0.1.2-beta.11
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/README.md +2 -2
- package/dist/components/vv-accordion.css +1 -0
- package/dist/components/vv-alert.css +1 -0
- package/dist/components/vv-badge.css +1 -0
- package/dist/components/vv-breadcrumb.css +1 -0
- package/dist/components/vv-button-group.css +1 -0
- package/dist/components/vv-button.css +1 -0
- package/dist/components/vv-card.css +1 -0
- package/dist/components/vv-dialog.css +1 -0
- package/dist/components/vv-dropdown.css +1 -0
- package/dist/components/vv-input-checkbox-group.css +1 -0
- package/dist/components/vv-input-checkbox.css +1 -0
- package/dist/components/vv-input-radio-group.css +1 -0
- package/dist/components/vv-input-radio.css +1 -0
- package/dist/components/vv-input-text.css +1 -0
- package/dist/components/vv-nav.css +1 -0
- package/dist/components/vv-progress.css +1 -0
- package/dist/components/vv-select.css +1 -0
- package/dist/components/vv-table.css +1 -0
- package/dist/components/vv-text.css +1 -0
- package/dist/components/vv-textarea.css +1 -0
- package/dist/components.css +1 -0
- package/dist/export.css +1 -0
- package/dist/props/animation.css +1 -0
- package/dist/props/background.css +1 -0
- package/dist/props/borders.css +1 -0
- package/dist/props/colors.css +1 -0
- package/dist/props/effects.css +1 -0
- package/dist/props/filters.css +1 -0
- package/dist/props/input.css +1 -0
- package/dist/props/layout.css +1 -0
- package/dist/props/media.css +0 -0
- package/dist/props/sizing.css +1 -0
- package/dist/props/spacing.css +1 -0
- package/dist/props/typography.css +1 -0
- package/dist/props.css +1 -0
- package/dist/reset.css +1 -0
- package/dist/themes/dark/components.css +1 -0
- package/dist/themes/dark/props.css +1 -0
- package/dist/themes/dark/volver.css +1 -0
- package/dist/utilities/animation.css +1 -0
- package/dist/utilities/backgrounds.css +1 -0
- package/dist/utilities/borders.css +1 -0
- package/dist/utilities/colors.css +1 -0
- package/dist/utilities/effects.css +1 -0
- package/dist/utilities/filters.css +1 -0
- package/dist/utilities/flexbox.css +1 -0
- package/dist/utilities/grid.css +1 -0
- package/dist/utilities/layout.css +1 -0
- package/dist/utilities/sizing.css +1 -0
- package/dist/utilities/spacing.css +1 -0
- package/dist/utilities/typography.css +1 -0
- package/dist/utilities.css +1 -0
- package/dist/volver.css +1 -0
- package/package.json +147 -116
- package/src/_config.scss +10 -7
- package/src/{preflight.scss → _preflight.scss} +71 -1
- package/src/components/index.scss +10 -7
- package/src/components/vv-accordion.scss +12 -0
- package/src/components/{vv-collapse.scss → vv-alert.scss} +2 -2
- package/src/components/vv-breadcrumb.scss +12 -0
- package/src/components/vv-button-group.scss +4 -8
- package/src/components/vv-nav.scss +12 -0
- package/src/reset.scss +1 -1
- package/src/settings/_index.scss +10 -7
- package/src/settings/components/_vv-accordion.scss +128 -0
- package/src/settings/components/_vv-alert.scss +148 -0
- package/src/settings/components/_vv-badge.scss +21 -9
- package/src/settings/components/_vv-breadcrumb.scss +87 -0
- package/src/settings/components/_vv-button.scss +106 -6
- package/src/settings/components/_vv-card.scss +2 -1
- package/src/settings/components/_vv-dialog.scss +2 -2
- package/src/settings/components/_vv-input-checkbox.scss +3 -2
- package/src/settings/components/_vv-input-radio.scss +2 -1
- package/src/settings/components/_vv-input-text.scss +3 -3
- package/src/settings/components/_vv-nav.scss +57 -0
- package/src/settings/components/_vv-select.scss +77 -3
- package/src/settings/components/_vv-table.scss +16 -3
- package/src/settings/components/_vv-text.scss +0 -1
- package/src/settings/components/_vv-textarea.scss +3 -3
- package/src/themes/dark/components/_vv-alert.scss +22 -0
- package/src/themes/dark/components/_vv-button.scss +2 -4
- package/src/themes/dark/components/_vv-input-checkbox.scss +2 -4
- package/src/themes/dark/components/index.scss +1 -0
- package/src/themes/dark/props/_background.scss +1 -1
- package/src/themes/dark/props/_colors.scss +1 -1
- package/src/themes/dark/settings/_background.scss +4 -4
- package/src/themes/dark/settings/_colors.scss +10 -10
- package/src/themes/dark/settings/_index.scss +1 -0
- package/src/themes/dark/settings/components/_vv-alert.scss +80 -0
- package/src/themes/dark/settings/components/_vv-button.scss +1 -1
- package/src/themes/dark/settings/components/_vv-input-checkbox.scss +3 -3
- package/src/themes/dark/{style.scss → volver.scss} +0 -0
- package/src/tools/_mixins.scss +49 -14
- package/src/utilities/flexbox.scss +18 -7
- package/src/utilities/grid.scss +16 -8
- package/src/utilities/layout.scss +2 -1
- package/src/{style.scss → volver.scss} +4 -4
- package/src/assets/24consulting.svg +0 -63
- package/src/assets/volverjs.svg +0 -15
- package/src/settings/components/_vv-collapse.scss +0 -111
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
$vv-nav: (
|
|
2
|
+
--nav-item-padding: var(--spacing-xs) var(--spacing-sm),
|
|
3
|
+
element: (
|
|
4
|
+
menu: (
|
|
5
|
+
_alias: 'ul',
|
|
6
|
+
flex: 1,
|
|
7
|
+
display: flex,
|
|
8
|
+
flex-direction: column,
|
|
9
|
+
gap: var(--spacing-2),
|
|
10
|
+
),
|
|
11
|
+
item: (
|
|
12
|
+
_alias: 'li',
|
|
13
|
+
),
|
|
14
|
+
heading-label: (
|
|
15
|
+
_alias: '[aria-hidden="true"]',
|
|
16
|
+
display: block,
|
|
17
|
+
font-weight: var(--font-semibold),
|
|
18
|
+
[padding]: var(--nav-item-padding),
|
|
19
|
+
),
|
|
20
|
+
item-label: (
|
|
21
|
+
_alias: 'li > a',
|
|
22
|
+
display: block,
|
|
23
|
+
will-change: background-color color,
|
|
24
|
+
transition: all 0.3s ease-in-out,
|
|
25
|
+
border-radius: var(--rounded-md),
|
|
26
|
+
color: var(--color-word-3),
|
|
27
|
+
[padding]: var(--nav-item-padding),
|
|
28
|
+
state: (
|
|
29
|
+
hover: (
|
|
30
|
+
background-color: var(--color-surface-2),
|
|
31
|
+
color: var(--color-word-1),
|
|
32
|
+
),
|
|
33
|
+
active: (
|
|
34
|
+
background-color: var(--color-surface-3),
|
|
35
|
+
),
|
|
36
|
+
current: (
|
|
37
|
+
background-color: var(--color-surface-2),
|
|
38
|
+
color: var(--color-word-1),
|
|
39
|
+
),
|
|
40
|
+
),
|
|
41
|
+
),
|
|
42
|
+
divider: (
|
|
43
|
+
_alias: 'li[role="separator"]',
|
|
44
|
+
display: block,
|
|
45
|
+
margin-block: var(--spacing-16),
|
|
46
|
+
height: var(--spacing-px),
|
|
47
|
+
background-color: var(--color-surface-3),
|
|
48
|
+
),
|
|
49
|
+
),
|
|
50
|
+
modifier: (
|
|
51
|
+
menu: (
|
|
52
|
+
font-size: 0.9em,
|
|
53
|
+
display: flex,
|
|
54
|
+
flex-direction: column,
|
|
55
|
+
),
|
|
56
|
+
),
|
|
57
|
+
) !default;
|
|
@@ -25,7 +25,7 @@ $vv-select: (
|
|
|
25
25
|
flex: 1,
|
|
26
26
|
background-color: var(--input-background-color),
|
|
27
27
|
will-change: background-color,
|
|
28
|
-
transition: background-color 0.
|
|
28
|
+
transition: background-color 0.3s ease-in-out,
|
|
29
29
|
pseudo: (
|
|
30
30
|
before: (
|
|
31
31
|
position: absolute,
|
|
@@ -41,7 +41,7 @@ $vv-select: (
|
|
|
41
41
|
transform: scaleX(0),
|
|
42
42
|
transform-origin: left,
|
|
43
43
|
will-change: transform,
|
|
44
|
-
transition: transform 0.
|
|
44
|
+
transition: transform 0.3s ease-in-out,
|
|
45
45
|
),
|
|
46
46
|
),
|
|
47
47
|
state: (
|
|
@@ -170,7 +170,81 @@ $vv-select: (
|
|
|
170
170
|
background: var(--color-brand-lighten-5),
|
|
171
171
|
),
|
|
172
172
|
after: (
|
|
173
|
-
animation:
|
|
173
|
+
animation: var(--animate-indeterminate),
|
|
174
|
+
),
|
|
175
|
+
),
|
|
176
|
+
),
|
|
177
|
+
),
|
|
178
|
+
),
|
|
179
|
+
floating: (
|
|
180
|
+
[margin-left]: var(--input-padding-left),
|
|
181
|
+
[margin-right]: var(--input-padding-right),
|
|
182
|
+
element: (
|
|
183
|
+
wrapper: (
|
|
184
|
+
[margin-left]: calc(var(--input-padding-left) * -1),
|
|
185
|
+
[margin-right]: calc(var(--input-padding-right) * -1),
|
|
186
|
+
),
|
|
187
|
+
hint: (
|
|
188
|
+
[margin-left]: calc(var(--input-padding-left) * -1),
|
|
189
|
+
[margin-right]: calc(var(--input-padding-right) * -1),
|
|
190
|
+
),
|
|
191
|
+
label: (
|
|
192
|
+
position: absolute,
|
|
193
|
+
z-index: 1,
|
|
194
|
+
pointer-events: none,
|
|
195
|
+
font-size: inherit,
|
|
196
|
+
[padding-top]: var(--input-padding-top),
|
|
197
|
+
[padding-bottom]: var(--input-padding-bottom),
|
|
198
|
+
padding-inline: 0,
|
|
199
|
+
margin: 0,
|
|
200
|
+
will-change: 'transform',
|
|
201
|
+
transform-origin: left,
|
|
202
|
+
transition: all 0.3s ease-in-out,
|
|
203
|
+
),
|
|
204
|
+
input: (
|
|
205
|
+
pseudo: (
|
|
206
|
+
placeholder: (
|
|
207
|
+
opacity: 0,
|
|
208
|
+
),
|
|
209
|
+
),
|
|
210
|
+
),
|
|
211
|
+
),
|
|
212
|
+
state: (
|
|
213
|
+
focus-within: (
|
|
214
|
+
element: (
|
|
215
|
+
label: (
|
|
216
|
+
transform: translateY(-1.2ch),
|
|
217
|
+
font-size: var(--text-12),
|
|
218
|
+
),
|
|
219
|
+
input: (
|
|
220
|
+
[padding-top]:
|
|
221
|
+
calc(var(--input-padding-top) + 0.85ch),
|
|
222
|
+
[padding-bottom]:
|
|
223
|
+
calc(var(--input-padding-bottom) - 0.85ch),
|
|
224
|
+
pseudo: (
|
|
225
|
+
placeholder: (
|
|
226
|
+
opacity: 1,
|
|
227
|
+
),
|
|
228
|
+
),
|
|
229
|
+
),
|
|
230
|
+
),
|
|
231
|
+
),
|
|
232
|
+
dirty: (
|
|
233
|
+
element: (
|
|
234
|
+
label: (
|
|
235
|
+
transform: translateY(-1.2ch),
|
|
236
|
+
font-size: var(--text-12),
|
|
237
|
+
),
|
|
238
|
+
input: (
|
|
239
|
+
[padding-top]:
|
|
240
|
+
calc(var(--input-padding-top) + 0.85ch),
|
|
241
|
+
[padding-bottom]:
|
|
242
|
+
calc(var(--input-padding-bottom) - 0.85ch),
|
|
243
|
+
pseudo: (
|
|
244
|
+
placeholder: (
|
|
245
|
+
opacity: 1,
|
|
246
|
+
),
|
|
247
|
+
),
|
|
174
248
|
),
|
|
175
249
|
),
|
|
176
250
|
),
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
$vv-table: (
|
|
2
|
+
--table-cell-padding: var(--spacing-md) 0,
|
|
2
3
|
width: 100%,
|
|
4
|
+
border-collapse: collapse,
|
|
5
|
+
border-color: var(--color-surface-5),
|
|
3
6
|
element: (
|
|
4
7
|
tr: (
|
|
5
8
|
_alias: 'tr',
|
|
6
9
|
border-width: 0 0 1px 0,
|
|
7
10
|
border-style: solid,
|
|
8
|
-
border-color: var(--color-
|
|
11
|
+
border-color: var(--color-surface-5),
|
|
12
|
+
),
|
|
13
|
+
tbody-tr: (
|
|
14
|
+
_alias: 'tbody > tr',
|
|
15
|
+
border-color: var(--color-surface-3),
|
|
9
16
|
state: (
|
|
10
17
|
last-child: (
|
|
11
18
|
border-width: 0,
|
|
@@ -15,15 +22,21 @@ $vv-table: (
|
|
|
15
22
|
th: (
|
|
16
23
|
_alias: 'th',
|
|
17
24
|
font-weight: semibold,
|
|
18
|
-
padding-block: var(--spacing-md),
|
|
19
25
|
font-size: var(--text-sm),
|
|
20
26
|
color: var(--color-word-2),
|
|
27
|
+
[padding]: var(--table-cell-padding),
|
|
21
28
|
),
|
|
22
29
|
td: (
|
|
23
30
|
_alias: 'td',
|
|
24
|
-
padding-block: var(--spacing-md),
|
|
25
31
|
border-style: solid,
|
|
26
32
|
font-size: var(--text-xs),
|
|
33
|
+
[padding]: var(--table-cell-padding),
|
|
34
|
+
),
|
|
35
|
+
),
|
|
36
|
+
modifier: (
|
|
37
|
+
inline-spacing: (
|
|
38
|
+
--table-cell-padding: var(--spacing-md),
|
|
39
|
+
border-width: 0,
|
|
27
40
|
),
|
|
28
41
|
),
|
|
29
42
|
) !default;
|
|
@@ -25,7 +25,7 @@ $vv-textarea: (
|
|
|
25
25
|
overflow: hidden,
|
|
26
26
|
background-color: var(--input-background-color),
|
|
27
27
|
will-change: background-color,
|
|
28
|
-
transition: background-color 0.
|
|
28
|
+
transition: background-color 0.3s ease-in-out,
|
|
29
29
|
pseudo: (
|
|
30
30
|
before: (
|
|
31
31
|
position: absolute,
|
|
@@ -41,7 +41,7 @@ $vv-textarea: (
|
|
|
41
41
|
transform: scaleX(0),
|
|
42
42
|
transform-origin: left,
|
|
43
43
|
will-change: transform,
|
|
44
|
-
transition: transform 0.
|
|
44
|
+
transition: transform 0.3s ease-in-out,
|
|
45
45
|
),
|
|
46
46
|
),
|
|
47
47
|
state: (
|
|
@@ -196,7 +196,7 @@ $vv-textarea: (
|
|
|
196
196
|
margin: 0,
|
|
197
197
|
will-change: 'transform',
|
|
198
198
|
transform-origin: left,
|
|
199
|
-
transition: all 0.
|
|
199
|
+
transition: all 0.3s ease-in-out,
|
|
200
200
|
),
|
|
201
201
|
input: (
|
|
202
202
|
pseudo: (
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
}
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
@import '../context';
|
|
3
3
|
|
|
4
4
|
$component-name: map.get($components-names, vv-button);
|
|
5
|
-
$component-map: $vv-button;
|
|
6
|
-
$props: true;
|
|
5
|
+
$component-map: $dark-vv-button;
|
|
7
6
|
|
|
8
7
|
@mixin theme-dark-vv-button {
|
|
9
8
|
@include spread-map-into-props(
|
|
10
9
|
$map: $component-map,
|
|
11
|
-
$prefix: $component-name
|
|
12
|
-
$deep: $props
|
|
10
|
+
$prefix: $component-name
|
|
13
11
|
);
|
|
14
12
|
}
|
|
15
13
|
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
@import '../context';
|
|
3
3
|
|
|
4
4
|
$component-name: map.get($components-names, vv-input-checkbox);
|
|
5
|
-
$component-map: $vv-input-checkbox;
|
|
6
|
-
$props: true;
|
|
5
|
+
$component-map: $dark-vv-input-checkbox;
|
|
7
6
|
|
|
8
7
|
@mixin theme-dark-vv-input-checkbox {
|
|
9
8
|
@include spread-map-into-props(
|
|
10
9
|
$map: $component-map,
|
|
11
|
-
$prefix: $component-name
|
|
12
|
-
$deep: $props
|
|
10
|
+
$prefix: $component-name
|
|
13
11
|
);
|
|
14
12
|
}
|
|
15
13
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// background-image
|
|
2
|
-
$background-image: (
|
|
2
|
+
$dark-background-image: (
|
|
3
3
|
none: none,
|
|
4
4
|
chevron:
|
|
5
|
-
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($color-word)})' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"),
|
|
5
|
+
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%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"),
|
|
6
6
|
grid:
|
|
7
7
|
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='rgb(51 65 85 / 0.25)'%3E%3Cpath d='M0 .5H31.5V32'/%3E%3C/svg%3E"),
|
|
8
8
|
check:
|
|
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($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"),
|
|
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
|
-
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($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"),
|
|
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
12
|
) !default;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
@use 'sass:color';
|
|
2
2
|
|
|
3
|
-
$color-scheme: dark !default;
|
|
4
|
-
$color-brand: #1976d2 !default;
|
|
5
|
-
$color-word: hsl(color.hue($color-brand) 15% 85%) !default;
|
|
6
|
-
$color-surface: hsl(color.hue($color-brand) 10% 5%) !default;
|
|
7
|
-
$color-alpha: hsla(0deg 0% 100% / 0%) !default;
|
|
3
|
+
$dark-color-scheme: dark !default;
|
|
4
|
+
$dark-color-brand: #1976d2 !default;
|
|
5
|
+
$dark-color-word: hsl(color.hue($dark-color-brand) 15% 85%) !default;
|
|
6
|
+
$dark-color-surface: hsl(color.hue($dark-color-brand) 10% 5%) !default;
|
|
7
|
+
$dark-color-alpha: hsla(0deg 0% 100% / 0%) !default;
|
|
8
8
|
|
|
9
9
|
// color map
|
|
10
|
-
$colors: (
|
|
11
|
-
scheme: $color-scheme,
|
|
12
|
-
word: color-darken-map($color-word, 'word', $scale: 15%),
|
|
13
|
-
surface: color-lighten-map($color-surface, 'surface', $scale: 5%),
|
|
14
|
-
alpha: color-alpha-map($color-alpha, 'alpha', $steps: 5, $scale: 5%),
|
|
10
|
+
$dark-colors: (
|
|
11
|
+
scheme: $dark-color-scheme,
|
|
12
|
+
word: color-darken-map($dark-color-word, 'word', $scale: 15%),
|
|
13
|
+
surface: color-lighten-map($dark-color-surface, 'surface', $scale: 5%),
|
|
14
|
+
alpha: color-alpha-map($dark-color-alpha, 'alpha', $steps: 5, $scale: 5%),
|
|
15
15
|
) !default;
|
|
@@ -0,0 +1,80 @@
|
|
|
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;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
$vv-input-checkbox: (
|
|
1
|
+
$dark-vv-input-checkbox: (
|
|
2
2
|
element: (
|
|
3
3
|
input: (
|
|
4
4
|
state: (
|
|
5
5
|
checked: (
|
|
6
6
|
background-image:
|
|
7
|
-
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($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"),
|
|
7
|
+
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"),
|
|
8
8
|
),
|
|
9
9
|
),
|
|
10
10
|
),
|
|
@@ -16,7 +16,7 @@ $vv-input-checkbox: (
|
|
|
16
16
|
state: (
|
|
17
17
|
checked: (
|
|
18
18
|
background-image:
|
|
19
|
-
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($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"),
|
|
19
|
+
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"),
|
|
20
20
|
),
|
|
21
21
|
),
|
|
22
22
|
),
|
|
File without changes
|
package/src/tools/_mixins.scss
CHANGED
|
@@ -396,7 +396,9 @@
|
|
|
396
396
|
open,
|
|
397
397
|
close,
|
|
398
398
|
determinate,
|
|
399
|
-
indeterminate
|
|
399
|
+
indeterminate,
|
|
400
|
+
selected,
|
|
401
|
+
current
|
|
400
402
|
),
|
|
401
403
|
$state
|
|
402
404
|
)
|
|
@@ -479,16 +481,30 @@
|
|
|
479
481
|
'#{$modifier}#{$alias}[#{$state}]'
|
|
480
482
|
);
|
|
481
483
|
}
|
|
484
|
+
|
|
485
|
+
@if $state == 'disabled' {
|
|
486
|
+
$selectors: list.join(
|
|
487
|
+
$selectors,
|
|
488
|
+
'#{$modifier}#{$block-item}[aria-disabled="true"]'
|
|
489
|
+
);
|
|
490
|
+
|
|
491
|
+
@if $alias {
|
|
492
|
+
$selectors: list.join(
|
|
493
|
+
$selectors,
|
|
494
|
+
'#{$modifier}#{$alias}[aria-disabled="true"]'
|
|
495
|
+
);
|
|
496
|
+
}
|
|
497
|
+
}
|
|
482
498
|
} @else if $state == 'focus-visible' {
|
|
483
499
|
$selectors: list.join(
|
|
484
500
|
$selectors,
|
|
485
|
-
'#{$modifier}#{$block-item}:not(:active):not([disabled]):not([tabindex="-1"]):#{$state}'
|
|
501
|
+
'#{$modifier}#{$block-item}:not(:active):not([disabled]):not([tabindex="-1"]:not([aria-disabled="true"])):#{$state}'
|
|
486
502
|
);
|
|
487
503
|
|
|
488
504
|
@if $alias {
|
|
489
505
|
$selectors: list.join(
|
|
490
506
|
$selectors,
|
|
491
|
-
'#{$modifier}#{$alias}:not(:active):not([disabled]):not([tabindex="-1"]):#{$state}'
|
|
507
|
+
'#{$modifier}#{$alias}:not(:active):not([disabled]):not([tabindex="-1"]:not([aria-disabled="true"])):#{$state}'
|
|
492
508
|
);
|
|
493
509
|
}
|
|
494
510
|
} @else if $state == 'checked' {
|
|
@@ -503,7 +519,19 @@
|
|
|
503
519
|
'#{$modifier}#{$alias}:#{$state}'
|
|
504
520
|
);
|
|
505
521
|
}
|
|
506
|
-
} @else {
|
|
522
|
+
} @else if $state == 'selected' {
|
|
523
|
+
$selectors: list.join(
|
|
524
|
+
$selectors,
|
|
525
|
+
'#{$modifier}#{$block-item}[aria-selected="true"]'
|
|
526
|
+
);
|
|
527
|
+
|
|
528
|
+
@if $alias {
|
|
529
|
+
$selectors: list.join(
|
|
530
|
+
$selectors,
|
|
531
|
+
'#{$modifier}#{$alias}[aria-selected="true"]'
|
|
532
|
+
);
|
|
533
|
+
}
|
|
534
|
+
} @else if $state != 'current' {
|
|
507
535
|
$selectors: list.join(
|
|
508
536
|
$selectors,
|
|
509
537
|
'#{$modifier}#{$block-item}:not([disabled]):#{$state}'
|
|
@@ -664,12 +692,14 @@
|
|
|
664
692
|
progress-bar,
|
|
665
693
|
progress-value,
|
|
666
694
|
inner-element,
|
|
695
|
+
marker,
|
|
667
696
|
-webkit-progress-bar,
|
|
668
697
|
-webkit-progress-value,
|
|
669
698
|
-webkit-inner-element,
|
|
670
699
|
-moz-progress-bar,
|
|
671
700
|
-moz-progress-value,
|
|
672
|
-
-moz-inner-element
|
|
701
|
+
-moz-inner-element,
|
|
702
|
+
-webkit-details-marker
|
|
673
703
|
),
|
|
674
704
|
$pseudo-element
|
|
675
705
|
)
|
|
@@ -684,11 +714,12 @@
|
|
|
684
714
|
$pseudo-element
|
|
685
715
|
) {
|
|
686
716
|
@if not $original {
|
|
687
|
-
@if not
|
|
717
|
+
@if not(
|
|
688
718
|
map.has-key(
|
|
689
719
|
$pseudo-map,
|
|
690
720
|
'content'
|
|
691
721
|
)
|
|
722
|
+
)
|
|
692
723
|
{
|
|
693
724
|
content: '';
|
|
694
725
|
}
|
|
@@ -763,7 +794,7 @@
|
|
|
763
794
|
);
|
|
764
795
|
}
|
|
765
796
|
|
|
766
|
-
#{$key}:
|
|
797
|
+
#{$key}: $value;
|
|
767
798
|
}
|
|
768
799
|
}
|
|
769
800
|
}
|
|
@@ -785,6 +816,7 @@
|
|
|
785
816
|
} @else if $enabled {
|
|
786
817
|
$selector: ':where(#{$selector})';
|
|
787
818
|
}
|
|
819
|
+
|
|
788
820
|
#{$selector} {
|
|
789
821
|
@content;
|
|
790
822
|
}
|
|
@@ -800,6 +832,7 @@
|
|
|
800
832
|
$breakpoints-key: 'breakpoint',
|
|
801
833
|
$props: true,
|
|
802
834
|
$zero-specificity: true,
|
|
835
|
+
$custom-props: false,
|
|
803
836
|
$custom-block: false,
|
|
804
837
|
$custom-elements: false,
|
|
805
838
|
$custom-modifiers: false,
|
|
@@ -810,13 +843,15 @@
|
|
|
810
843
|
$selector: '.' + $block;
|
|
811
844
|
|
|
812
845
|
// custom props
|
|
813
|
-
@if $props {
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
846
|
+
@if not $custom-props {
|
|
847
|
+
@if $props {
|
|
848
|
+
:where(:host, :root, .theme) {
|
|
849
|
+
@include spread-map-into-props(
|
|
850
|
+
$map: $map,
|
|
851
|
+
$prefix: $block,
|
|
852
|
+
$deep: true
|
|
853
|
+
);
|
|
854
|
+
}
|
|
820
855
|
}
|
|
821
856
|
}
|
|
822
857
|
|