@volverjs/style 0.1.12-beta.20 → 0.1.12-beta.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/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.12-beta.20",
27
+ "version": "0.1.12-beta.21",
28
28
  "engines": {
29
29
  "node": ">= 12.x"
30
30
  },
@@ -37,18 +37,18 @@
37
37
  ],
38
38
  "devDependencies": {
39
39
  "@iconify/vue": "^4.1.2",
40
- "@vitejs/plugin-vue": "^5.1.3",
41
- "@vueuse/core": "^11.0.3",
40
+ "@vitejs/plugin-vue": "^5.1.4",
41
+ "@vueuse/core": "^11.1.0",
42
42
  "@vueuse/head": "^2.0.0",
43
43
  "eslint-config-prettier": "^9.1.0",
44
- "eslint-plugin-vue": "^9.27.0",
44
+ "eslint-plugin-vue": "^9.28.0",
45
45
  "glob": "^11.0.0",
46
46
  "icss-utils": "^5.1.0",
47
- "markdown-it-anchor": "^9.1.0",
47
+ "markdown-it-anchor": "^9.2.0",
48
48
  "markdown-it-prism": "^2.3.0",
49
- "postcss": "^8.4.41",
49
+ "postcss": "^8.4.47",
50
50
  "postcss-html": "^1.7.0",
51
- "postcss-preset-env": "^10.0.2",
51
+ "postcss-preset-env": "^10.0.5",
52
52
  "prettier": "^3.3.3",
53
53
  "prism-themes": "^1.9.0",
54
54
  "prismjs": "^1.29.0",
@@ -57,14 +57,14 @@
57
57
  "remark-frontmatter": "^5.0.0",
58
58
  "remark-gfm": "^4.0.0",
59
59
  "remark-lint": "^10.0.0",
60
- "sass": "^1.77.8",
60
+ "sass": "^1.79.4",
61
61
  "stylelint": "^16.9.0",
62
62
  "stylelint-config-recommended-scss": "^14.1.0",
63
63
  "stylelint-config-recommended-vue": "^1.5.0",
64
64
  "stylelint-config-standard-scss": "^13.1.0",
65
- "unplugin-auto-import": "^0.18.2",
65
+ "unplugin-auto-import": "^0.18.3",
66
66
  "unplugin-vue-components": "^0.27.4",
67
- "vite": "^5.4.2",
67
+ "vite": "^5.4.8",
68
68
  "vite-plugin-css-export": "^3.0.0",
69
69
  "vite-plugin-eslint": "^1.8.1",
70
70
  "vite-plugin-handlebars": "^2.0.0",
@@ -74,9 +74,9 @@
74
74
  "vite-plugin-vue-layouts": "^0.11.0",
75
75
  "vite-ssg": "^0.23.8",
76
76
  "vite-ssg-sitemap": "^0.8.1",
77
- "vue": "^3.4.38",
77
+ "vue": "^3.5.11",
78
78
  "vue-live": "^2.5.4",
79
- "vue-router": "^4.4.3"
79
+ "vue-router": "^4.4.5"
80
80
  },
81
81
  "exports": {
82
82
  ".": "./dist/volver.css",
@@ -13,9 +13,9 @@ $color-success: #178230 !default;
13
13
  $color-danger: #af2323 !default;
14
14
  $color-info: #31ccec !default;
15
15
  $color-warning: #e7b735 !default;
16
- $color-gray: hsl(color.hue($color-brand) 15% 50%) !default;
17
- $color-word: hsl(color.hue($color-brand) 15% 10%) !default;
18
- $color-surface: hsl(color.hue($color-brand) 10% 100%) !default;
16
+ $color-gray: hsl(color-hue($color-brand) 15% 50%) !default;
17
+ $color-word: hsl(color-hue($color-brand) 15% 10%) !default;
18
+ $color-surface: hsl(color-hue($color-brand) 10% 100%) !default;
19
19
  $color-surface-palette: (
20
20
  brand: hsl(var(--color-brand-hue) var(--color-brand-saturation) 90%),
21
21
  accent: hsl(var(--color-accent-hue) var(--color-accent-saturation) 90%),
@@ -25,15 +25,15 @@ $color-surface-palette: (
25
25
  warning: hsl(var(--color-warning-hue) var(--color-warning-saturation) 90%),
26
26
  ) !default;
27
27
  $color-surface-palette-no-vars: (
28
- brand: hsl(color.hue($color-brand) color.saturation($color-brand) 90%),
29
- accent: hsl(color.hue($color-accent) color.saturation($color-accent) 90%),
30
- success: hsl(color.hue($color-success) color.saturation($color-success) 90%),
31
- danger: hsl(color.hue($color-danger) color.saturation($color-danger) 90%),
32
- info: hsl(color.hue($color-info) color.saturation($color-info) 90%),
33
- warning: hsl(color.hue($color-warning) color.saturation($color-warning) 90%),
28
+ brand: hsl(color-hue($color-brand) color-saturation($color-brand) 90%),
29
+ accent: hsl(color-hue($color-accent) color-saturation($color-accent) 90%),
30
+ success: hsl(color-hue($color-success) color-saturation($color-success) 90%),
31
+ danger: hsl(color-hue($color-danger) color-saturation($color-danger) 90%),
32
+ info: hsl(color-hue($color-info) color-saturation($color-info) 90%),
33
+ warning: hsl(color-hue($color-warning) color-saturation($color-warning) 90%),
34
34
  ) !default;
35
- $color-shadow: hsl(color.hue($color-brand) 50% 20%) !default;
36
- $color-backdrop: hsla(color.hue($color-brand) 50% 20% / 20%) !default;
35
+ $color-shadow: hsl(color-hue($color-brand) 50% 20%) !default;
36
+ $color-backdrop: hsla(color-hue($color-brand) 50% 20% / 20%) !default;
37
37
  $color-alpha: hsl(0deg 0% 0% / 0%) !default;
38
38
 
39
39
  // colors map
@@ -22,9 +22,9 @@ $box-shadow: (
22
22
  ) !default;
23
23
 
24
24
  // box-shadow without css vars
25
- $color-shadow-hue: color.hue(colors.$color-shadow);
26
- $color-shadow-saturation: color.saturation(colors.$color-shadow);
27
- $color-shadow-lightness: color.lightness(colors.$color-shadow);
25
+ $color-shadow-hue: color-hue(colors.$color-shadow);
26
+ $color-shadow-saturation: color-saturation(colors.$color-shadow);
27
+ $color-shadow-lightness: color-lightness(colors.$color-shadow);
28
28
 
29
29
  // opacity
30
30
  $opacity: (
@@ -13,6 +13,11 @@ $vv-checkbox: (
13
13
  disabled: (
14
14
  opacity: var(--opacity-30),
15
15
  cursor: not-allowed,
16
+ element: (
17
+ input: (
18
+ cursor: not-allowed,
19
+ ),
20
+ ),
16
21
  ),
17
22
  ),
18
23
  element: (
@@ -4,8 +4,8 @@
4
4
  @use '../../../settings/colors' as *;
5
5
 
6
6
  $dark-color-scheme: dark !default;
7
- $dark-color-word: hsl(color.hue($color-brand) 15% 85%) !default;
8
- $dark-color-surface: hsl(color.hue($color-brand) 10% 5%) !default;
7
+ $dark-color-word: hsl(color-hue($color-brand) 15% 85%) !default;
8
+ $dark-color-surface: hsl(color-hue($color-brand) 10% 5%) !default;
9
9
  $dark-color-surface-palette: (
10
10
  brand: hsl(var(--color-brand-hue) var(--color-brand-saturation) 10%),
11
11
  accent: hsl(var(--color-accent-hue) var(--color-accent-saturation) 10%),
@@ -15,12 +15,12 @@ $dark-color-surface-palette: (
15
15
  warning: hsl(var(--color-warning-hue) var(--color-warning-saturation) 10%),
16
16
  ) !default;
17
17
  $dark-color-surface-palette-no-vars: (
18
- brand: hsl(color.hue($color-brand) color.saturation($color-brand) 10%),
19
- accent: hsl(color.hue($color-accent) color.saturation($color-accent) 10%),
20
- success: hsl(color.hue($color-success) color.saturation($color-success) 10%),
21
- danger: hsl(color.hue($color-danger) color.saturation($color-danger) 10%),
22
- info: hsl(color.hue($color-info) color.saturation($color-info) 10%),
23
- warning: hsl(color.hue($color-warning) color.saturation($color-warning) 10%),
18
+ brand: hsl(color-hue($color-brand) color-saturation($color-brand) 10%),
19
+ accent: hsl(color-hue($color-accent) color-saturation($color-accent) 10%),
20
+ success: hsl(color-hue($color-success) color-saturation($color-success) 10%),
21
+ danger: hsl(color-hue($color-danger) color-saturation($color-danger) 10%),
22
+ info: hsl(color-hue($color-info) color-saturation($color-info) 10%),
23
+ warning: hsl(color-hue($color-warning) color-saturation($color-warning) 10%),
24
24
  ) !default;
25
25
 
26
26
  // color map
@@ -5,17 +5,55 @@
5
5
  @use 'sass:list';
6
6
  @use 'sass:math';
7
7
 
8
+ @function color-hue($color) {
9
+ @return color.channel($color, 'hue', $space: hsl);
10
+ }
11
+
12
+ @function color-saturation($color) {
13
+ @return color.channel($color, 'saturation', $space: hsl);
14
+ }
15
+
16
+ @function color-lightness($color) {
17
+ @return color.channel($color, 'lightness', $space: hsl);
18
+ }
19
+
20
+ @function color-alpha($color) {
21
+ @return color.channel($color, 'alpha');
22
+ }
23
+
24
+ @function color-hsla($color) {
25
+ @return hsla(
26
+ color-hue($color),
27
+ color.channel($color, 'saturation', $space: hsl),
28
+ color.channel($color, 'lightness', $space: hsl),
29
+ color.channel($color, 'alpha')
30
+ );
31
+ }
32
+
33
+ @function color-red($color) {
34
+ @return color.channel($color, 'red', $space: rgb);
35
+ }
36
+
37
+ @function color-green($color) {
38
+ @return color.channel($color, 'green', $space: rgb);
39
+ }
40
+
41
+ @function color-blue($color) {
42
+ @return color.channel($color, 'blue', $space: rgb);
43
+ }
44
+
8
45
  @function hsla-map($color, $name, $noVarExport: false) {
9
46
  @if $noVarExport {
10
47
  @return (
11
- #{$name}: hsla(color.hue($color), color.saturation($color), color.lightness($color), color.alpha($color))
48
+ #{$name}: hsla(color-hue($color), color.channel($color, 'saturation', $space:
49
+ hsl), color.channel($color, 'lightness', $space: hsl), color.channel($color, 'alpha'))
12
50
  );
13
51
  } @else {
14
52
  @return (
15
- hue: color.hue($color),
16
- saturation: color.saturation($color),
17
- lightness: color.lightness($color),
18
- #{$name}: hsla(var(--color-#{$name}-hue), var(--color-#{$name}-saturation), var(--color-#{$name}-lightness), color.alpha($color))
53
+ hue: color-hue($color),
54
+ saturation: color.channel($color, 'saturation', $space: hsl),
55
+ lightness: color.channel($color, 'lightness', $space: hsl),
56
+ #{$name}: hsla(var(--color-#{$name}-hue), var(--color-#{$name}-saturation), var(--color-#{$name}-lightness), color.channel($color, 'alpha'))
19
57
  );
20
58
  }
21
59
  }
@@ -24,9 +62,9 @@
24
62
  @if $noVarExport {
25
63
  @return (
26
64
  hsla(
27
- color.hue($color),
28
- color.saturation($color),
29
- color.lightness($color),
65
+ color-hue($color),
66
+ color.channel($color, 'saturation', $space: hsl),
67
+ color.channel($color, 'lightness', $space: hsl),
30
68
  $alpha
31
69
  )
32
70
  );
@@ -41,7 +79,9 @@
41
79
  }
42
80
 
43
81
  @function hex-to-rgb($hex) {
44
- @return red($hex), green($hex), blue($hex);
82
+ @return color.channel($hex, 'red', $space: rgb),
83
+ color.channel($hex, 'green', $space: rgb),
84
+ color.channel($hex, 'blue', $space: rgb);
45
85
  }
46
86
 
47
87
  @function color-alpha-map(
@@ -52,6 +92,7 @@
52
92
  $noVarExport: false
53
93
  ) {
54
94
  $result: hsla-map($color, $name, $noVarExport);
95
+
55
96
  @for $index from 1 to ($steps + 1) {
56
97
  $result: map.merge(
57
98
  $result,
@@ -61,6 +102,7 @@
61
102
  )
62
103
  );
63
104
  }
105
+
64
106
  @return $result;
65
107
  }
66
108
 
@@ -96,6 +138,7 @@
96
138
  $noVarExport
97
139
  )
98
140
  );
141
+
99
142
  @return $result;
100
143
  }
101
144
 
@@ -110,29 +153,38 @@
110
153
  $inverted: true
111
154
  ) {
112
155
  $result: hsla-map($color, $name, $noVarExport);
156
+
113
157
  @for $counter from 1 to ($steps + 1) {
114
158
  $index: $counter;
159
+
115
160
  @if $inverted {
116
161
  $index: $steps + 1 - $counter;
117
162
  }
118
163
 
119
164
  $key: $index;
165
+
120
166
  @if $prefix != '' {
121
167
  $key: $prefix + '-' + $index;
122
168
  }
123
169
 
124
170
  @if $fixed {
125
171
  $increment: $scale * $index;
172
+
126
173
  @if $noVarExport {
127
- $alpha: color.lightness($color) + $increment;
174
+ $alpha: color.channel($color, 'lightness', $space: hsl) +
175
+ $increment;
128
176
  $result: map.merge(
129
177
  $result,
130
178
  (
131
179
  #{$key}:
132
180
  hsla(
133
- color.hue($color),
134
- color.saturation($color),
135
- color.lightness($color),
181
+ color-hue($color),
182
+ color.channel(
183
+ $color,
184
+ 'saturation',
185
+ $space: hsl
186
+ ),
187
+ color.channel($color, 'lightness', $space: hsl),
136
188
  $alpha
137
189
  )
138
190
  )
@@ -157,16 +209,22 @@
157
209
  $increment: math.div($scale * $index, 100);
158
210
  $increment: math.div($increment, ($increment * 0 + 1));
159
211
  $increment: $increment + 1;
212
+
160
213
  @if $noVarExport {
161
- $alpha: color.lightness($color) * $increment;
214
+ $alpha: color.channel($color, 'lightness', $space: hsl) *
215
+ $increment;
162
216
  $result: map.merge(
163
217
  $result,
164
218
  (
165
219
  #{$key}:
166
220
  hsla(
167
- color.hue($color),
168
- color.saturation($color),
169
- color.lightness($color),
221
+ color-hue($color),
222
+ color.channel(
223
+ $color,
224
+ 'saturation',
225
+ $space: hsl
226
+ ),
227
+ color.channel($color, 'lightness', $space: hsl),
170
228
  $alpha
171
229
  )
172
230
  )
@@ -189,6 +247,7 @@
189
247
  }
190
248
  }
191
249
  }
250
+
192
251
  @return $result;
193
252
  }
194
253
 
@@ -206,27 +265,35 @@
206
265
 
207
266
  @for $counter from 1 to ($steps + 1) {
208
267
  $index: $counter;
268
+
209
269
  @if $inverted {
210
270
  $index: $steps + 1 - $counter;
211
271
  }
212
272
 
213
273
  $key: $index;
274
+
214
275
  @if $prefix != '' {
215
276
  $key: $prefix + '-' + $index;
216
277
  }
217
278
 
218
279
  @if $fixed {
219
280
  $decrement: $scale * $index;
281
+
220
282
  @if $noVarExport {
221
- $alpha: color.lightness($color) - $decrement;
283
+ $alpha: color.channel($color, 'lightness', $space: hsl) -
284
+ $decrement;
222
285
  $result: map.merge(
223
286
  $result,
224
287
  (
225
288
  #{$key}:
226
289
  hsla(
227
- color.hue($color),
228
- color.saturation($color),
229
- color.lightness($color),
290
+ color-hue($color),
291
+ color.channel(
292
+ $color,
293
+ 'saturation',
294
+ $space: hsl
295
+ ),
296
+ color.channel($color, 'lightness', $space: hsl),
230
297
  $alpha
231
298
  )
232
299
  )
@@ -251,16 +318,22 @@
251
318
  $decrement: math.div($scale * $index, 100);
252
319
  $decrement: math.div($decrement, ($decrement * 0 + 1));
253
320
  $decrement: 1 - $decrement;
321
+
254
322
  @if $noVarExport {
255
- $alpha: color.lightness($color) * $decrement;
323
+ $alpha: color.channel($color, 'lightness', $space: hsl) *
324
+ $decrement;
256
325
  $result: map.merge(
257
326
  $result,
258
327
  (
259
328
  #{$key}:
260
329
  hsla(
261
- color.hue($color),
262
- color.saturation($color),
263
- color.lightness($color),
330
+ color-hue($color),
331
+ color.channel(
332
+ $color,
333
+ 'saturation',
334
+ $space: hsl
335
+ ),
336
+ color.channel($color, 'lightness', $space: hsl),
264
337
  $alpha
265
338
  )
266
339
  )
@@ -283,6 +356,7 @@
283
356
  }
284
357
  }
285
358
  }
359
+
286
360
  @return $result;
287
361
  }
288
362
 
@@ -320,7 +394,7 @@
320
394
  @function list-to-string($list, $glue: ', ') {
321
395
  $result: null;
322
396
 
323
- @for $i from 1 through length($list) {
397
+ @for $i from 1 through list.length($list) {
324
398
  $e: list.nth($list, $i);
325
399
 
326
400
  @if $result and $e {