@volverjs/style 0.1.19 → 0.1.21
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.css +1 -1
- package/dist/themes/dark/components.css +1 -1
- package/dist/themes/dark/volver.css +1 -1
- package/dist/utilities/layout.css +1 -1
- package/dist/utilities.css +1 -1
- package/dist/volver.css +1 -1
- package/package.json +21 -21
- package/src/_context.scss +3 -2
- package/src/props/spacing.scss +3 -1
- package/src/props/typography.scss +3 -1
- package/src/settings/_breakpoints.scss +1 -1
- package/src/settings/components/_vv-alert.scss +2 -2
- package/src/themes/dark/settings/components/_vv-alert.scss +1 -5
- package/src/tools/_breakpoints.scss +10 -25
- package/src/tools/_index.scss +1 -0
- package/src/tools/_mixins.scss +0 -31
- package/src/tools/_validators.scss +35 -0
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"bugs": {
|
|
25
25
|
"url": "https://github.com/volverjs/style/issues"
|
|
26
26
|
},
|
|
27
|
-
"version": "0.1.
|
|
27
|
+
"version": "0.1.21",
|
|
28
28
|
"engines": {
|
|
29
29
|
"node": ">= 12.x"
|
|
30
30
|
},
|
|
@@ -37,20 +37,20 @@
|
|
|
37
37
|
],
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@iconify/vue": "^5.0.0",
|
|
40
|
-
"@vitejs/plugin-vue": "^
|
|
41
|
-
"@vueuse/core": "^13.
|
|
40
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
41
|
+
"@vueuse/core": "^13.6.0",
|
|
42
42
|
"@vueuse/head": "^2.0.0",
|
|
43
|
-
"eslint-config-prettier": "^10.1.
|
|
44
|
-
"eslint-plugin-prettier": "^5.
|
|
45
|
-
"eslint-plugin-vue": "^10.
|
|
46
|
-
"glob": "^11.0.
|
|
43
|
+
"eslint-config-prettier": "^10.1.8",
|
|
44
|
+
"eslint-plugin-prettier": "^5.5.3",
|
|
45
|
+
"eslint-plugin-vue": "^10.3.0",
|
|
46
|
+
"glob": "^11.0.3",
|
|
47
47
|
"icss-utils": "^5.1.0",
|
|
48
48
|
"markdown-it-anchor": "^9.2.0",
|
|
49
49
|
"markdown-it-prism": "^3.0.0",
|
|
50
|
-
"postcss": "^8.5.
|
|
50
|
+
"postcss": "^8.5.6",
|
|
51
51
|
"postcss-html": "^1.8.0",
|
|
52
|
-
"postcss-preset-env": "^10.
|
|
53
|
-
"prettier": "^3.
|
|
52
|
+
"postcss-preset-env": "^10.2.4",
|
|
53
|
+
"prettier": "^3.6.2",
|
|
54
54
|
"prism-themes": "^1.9.0",
|
|
55
55
|
"prismjs": "^1.30.0",
|
|
56
56
|
"reduce-css-calc": "^2.1.8",
|
|
@@ -58,24 +58,24 @@
|
|
|
58
58
|
"remark-frontmatter": "^5.0.0",
|
|
59
59
|
"remark-gfm": "^4.0.1",
|
|
60
60
|
"remark-lint": "^10.0.1",
|
|
61
|
-
"sass": "
|
|
62
|
-
"stylelint": "^16.
|
|
61
|
+
"sass-embedded": "1.89.2",
|
|
62
|
+
"stylelint": "^16.22.0",
|
|
63
63
|
"stylelint-config-recommended-scss": "^15.0.1",
|
|
64
|
-
"stylelint-config-recommended-vue": "^1.6.
|
|
64
|
+
"stylelint-config-recommended-vue": "^1.6.1",
|
|
65
65
|
"stylelint-config-standard-scss": "^15.0.1",
|
|
66
|
-
"unplugin-auto-import": "^19.
|
|
67
|
-
"unplugin-vue-components": "^28.
|
|
68
|
-
"vite": "^
|
|
66
|
+
"unplugin-auto-import": "^19.3.0",
|
|
67
|
+
"unplugin-vue-components": "^28.8.0",
|
|
68
|
+
"vite": "^7.0.6",
|
|
69
69
|
"vite-plugin-css-export": "^3.0.2",
|
|
70
70
|
"vite-plugin-eslint": "^1.8.1",
|
|
71
71
|
"vite-plugin-handlebars": "^2.0.0",
|
|
72
72
|
"vite-plugin-markdown": "^2.2.0",
|
|
73
|
-
"vite-plugin-pages": "^0.33.
|
|
74
|
-
"vite-plugin-stylelint": "^6.0.
|
|
73
|
+
"vite-plugin-pages": "^0.33.1",
|
|
74
|
+
"vite-plugin-stylelint": "^6.0.2",
|
|
75
75
|
"vite-plugin-vue-layouts": "^0.11.0",
|
|
76
|
-
"vite-ssg": "^
|
|
77
|
-
"vite-ssg-sitemap": "^0.
|
|
78
|
-
"vue": "^3.5.
|
|
76
|
+
"vite-ssg": "^28.0.0",
|
|
77
|
+
"vite-ssg-sitemap": "^0.10.0",
|
|
78
|
+
"vue": "^3.5.18",
|
|
79
79
|
"vue-live": "^2.5.4",
|
|
80
80
|
"vue-router": "^4.5.1"
|
|
81
81
|
},
|
package/src/_context.scss
CHANGED
package/src/props/spacing.scss
CHANGED
|
@@ -157,7 +157,7 @@ $vv-alert: (
|
|
|
157
157
|
width: clamp(15dvw, 20rem, 80dvw),
|
|
158
158
|
border-color: var(--color-gray),
|
|
159
159
|
flex-direction: column,
|
|
160
|
-
align-items:
|
|
160
|
+
align-items: normal,
|
|
161
161
|
gap: var(--spacing-0),
|
|
162
162
|
element: (
|
|
163
163
|
header: (
|
|
@@ -253,7 +253,7 @@ $vv-alert: (
|
|
|
253
253
|
border-radius: var(--rounded-none),
|
|
254
254
|
border-width: 0 0 0 var(--spacing-4),
|
|
255
255
|
flex-direction: column,
|
|
256
|
-
align-items:
|
|
256
|
+
align-items: normal,
|
|
257
257
|
element: (
|
|
258
258
|
title: (
|
|
259
259
|
text-transform: uppercase,
|
|
@@ -55,11 +55,7 @@ $dark-vv-alert: (
|
|
|
55
55
|
),
|
|
56
56
|
),
|
|
57
57
|
notification: (
|
|
58
|
-
|
|
59
|
-
header: (
|
|
60
|
-
background-color: var(--color-gray-darken-2),
|
|
61
|
-
),
|
|
62
|
-
),
|
|
58
|
+
border-color: var(--color-gray-lighten-3),
|
|
63
59
|
modifier: (
|
|
64
60
|
danger: (
|
|
65
61
|
border-color: var(--color-danger-lighten-3),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
@use
|
|
2
|
-
@use
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "sass:list";
|
|
3
|
+
@use "../settings/breakpoints" as *;
|
|
3
4
|
|
|
4
5
|
// Breakpoint viewport sizes and media queries.
|
|
5
6
|
// Breakpoints are defined as a map of (name: minimum width), order from small to large:
|
|
@@ -13,18 +14,10 @@
|
|
|
13
14
|
// md
|
|
14
15
|
// >> breakpoint-next(sm, $bps-names: (xs sm md lg xl))
|
|
15
16
|
// md
|
|
16
|
-
@function breakpoint-next(
|
|
17
|
-
$name,
|
|
18
|
-
$bps: $breakpoints,
|
|
19
|
-
$bps-names: map.keys($bps)
|
|
20
|
-
) {
|
|
17
|
+
@function breakpoint-next($name, $bps: $breakpoints, $bps-names: map.keys($bps)) {
|
|
21
18
|
$n: list.index($bps-names, $name);
|
|
22
19
|
|
|
23
|
-
@return if(
|
|
24
|
-
$n != null and $n < list.length($bps-names),
|
|
25
|
-
list.nth($bps-names, $n + 1),
|
|
26
|
-
null
|
|
27
|
-
);
|
|
20
|
+
@return if($n != null and $n < list.length($bps-names), list.nth($bps-names, $n + 1), null);
|
|
28
21
|
}
|
|
29
22
|
|
|
30
23
|
@function bp-next($name, $bps: $breakpoints, $bps-names: map.keys($bps)) {
|
|
@@ -69,7 +62,7 @@
|
|
|
69
62
|
// >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
|
70
63
|
// "-sm"
|
|
71
64
|
@function breakpoint-infix($name, $bps: $breakpoints) {
|
|
72
|
-
@return if(breakpoint-min($name, $bps) == null,
|
|
65
|
+
@return if(breakpoint-min($name, $bps) == null, "", "-#{$name}");
|
|
73
66
|
}
|
|
74
67
|
|
|
75
68
|
@function bp-infix($name, $bps: $breakpoints) {
|
|
@@ -83,14 +76,10 @@
|
|
|
83
76
|
|
|
84
77
|
@if $min {
|
|
85
78
|
@media (min-width: $min) {
|
|
86
|
-
& {
|
|
87
|
-
@content;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
} @else {
|
|
91
|
-
& {
|
|
92
79
|
@content;
|
|
93
80
|
}
|
|
81
|
+
} @else {
|
|
82
|
+
@content;
|
|
94
83
|
}
|
|
95
84
|
}
|
|
96
85
|
|
|
@@ -107,14 +96,10 @@
|
|
|
107
96
|
|
|
108
97
|
@if $max {
|
|
109
98
|
@media (max-width: $max) {
|
|
110
|
-
& {
|
|
111
|
-
@content;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
} @else {
|
|
115
|
-
& {
|
|
116
99
|
@content;
|
|
117
100
|
}
|
|
101
|
+
} @else {
|
|
102
|
+
@content;
|
|
118
103
|
}
|
|
119
104
|
}
|
|
120
105
|
|
package/src/tools/_index.scss
CHANGED
package/src/tools/_mixins.scss
CHANGED
|
@@ -7,37 +7,6 @@
|
|
|
7
7
|
@use 'functions' as *;
|
|
8
8
|
@use 'breakpoints' as *;
|
|
9
9
|
|
|
10
|
-
// Check ascending order
|
|
11
|
-
// Used to ensure the breakpoints are ordered ascending.
|
|
12
|
-
@mixin assert-ascending($map, $map-name) {
|
|
13
|
-
$prev-key: null;
|
|
14
|
-
$prev-num: null;
|
|
15
|
-
|
|
16
|
-
@each $key, $num in $map {
|
|
17
|
-
@if not $prev-num or math.unit($num) == '%' {
|
|
18
|
-
// Do nothing
|
|
19
|
-
} @else if not compatible($prev-num, $num) {
|
|
20
|
-
@warn "Potentially invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} whose unit makes it incomparable to #{$prev-num}, the value of the previous key '#{$prev-key}' !";
|
|
21
|
-
} @else if $prev-num >= $num {
|
|
22
|
-
@warn "Invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} which isn't greater than #{$prev-num}, the value of the previous key '#{$prev-key}' !";
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
$prev-key: $key;
|
|
26
|
-
$prev-num: $num;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// Starts at zero
|
|
31
|
-
// Used to ensure the min-width of the lowest breakpoint starts at 0.
|
|
32
|
-
@mixin assert-starts-at-zero($map, $map-name: '$grid-breakpoints') {
|
|
33
|
-
$values: map.values($map);
|
|
34
|
-
$first-value: list.nth($values, 1);
|
|
35
|
-
|
|
36
|
-
@if $first-value != 0 {
|
|
37
|
-
@warn "First breakpoint in #{$map-name} must start at 0, but starts at #{$first-value}.";
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
10
|
// Transform a map into a list of custom props
|
|
42
11
|
@mixin spread-map-into-props($map: (), $prefix: '', $old-key: '', $deep: true) {
|
|
43
12
|
@each $key, $value in $map {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'sass:list';
|
|
3
|
+
@use 'sass:math';
|
|
4
|
+
@use 'functions' as *;
|
|
5
|
+
|
|
6
|
+
// Check ascending order
|
|
7
|
+
// Used to ensure the breakpoints are ordered ascending.
|
|
8
|
+
@mixin assert-ascending($map, $map-name) {
|
|
9
|
+
$prev-key: null;
|
|
10
|
+
$prev-num: null;
|
|
11
|
+
|
|
12
|
+
@each $key, $num in $map {
|
|
13
|
+
@if not $prev-num or math.unit($num) == '%' {
|
|
14
|
+
// Do nothing
|
|
15
|
+
} @else if not compatible($prev-num, $num) {
|
|
16
|
+
@warn "Potentially invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} whose unit makes it incomparable to #{$prev-num}, the value of the previous key '#{$prev-key}' !";
|
|
17
|
+
} @else if $prev-num >= $num {
|
|
18
|
+
@warn "Invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} which isn't greater than #{$prev-num}, the value of the previous key '#{$prev-key}' !";
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
$prev-key: $key;
|
|
22
|
+
$prev-num: $num;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Starts at zero
|
|
27
|
+
// Used to ensure the min-width of the lowest breakpoint starts at 0.
|
|
28
|
+
@mixin assert-starts-at-zero($map, $map-name: '$grid-breakpoints') {
|
|
29
|
+
$values: map.values($map);
|
|
30
|
+
$first-value: list.nth($values, 1);
|
|
31
|
+
|
|
32
|
+
@if $first-value != 0 {
|
|
33
|
+
@warn "First breakpoint in #{$map-name} must start at 0, but starts at #{$first-value}.";
|
|
34
|
+
}
|
|
35
|
+
}
|