@volverjs/style 0.1.2-beta.26 → 0.1.2-beta.27

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.26",
3
+ "version": "0.1.2-beta.27",
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",
@@ -157,21 +157,21 @@
157
157
  "devDependencies": {
158
158
  "@iconify/vue": "^4.0.2",
159
159
  "@vitejs/plugin-vue": "^4.0.0",
160
- "@vueuse/core": "^9.6.0",
160
+ "@vueuse/core": "^9.8.2",
161
161
  "@vueuse/head": "^1.0.22",
162
- "eslint": "^8.29.0",
162
+ "eslint": "^8.30.0",
163
163
  "eslint-config-prettier": "^8.5.0",
164
164
  "eslint-plugin-vue": "^9.8.0",
165
165
  "glob": "^8.0.3",
166
166
  "icss-utils": "^5.1.0",
167
- "markdown-it-anchor": "^8.6.5",
167
+ "markdown-it-anchor": "^8.6.6",
168
168
  "markdown-it-prism": "^2.3.0",
169
169
  "postcss": "^8.4.20",
170
170
  "postcss-html": "^1.5.0",
171
171
  "postcss-preset-env": "^7.8.3",
172
172
  "prism-themes": "^1.9.0",
173
173
  "prismjs": "1.29.0",
174
- "sass": "^1.56.2",
174
+ "sass": "^1.57.1",
175
175
  "stylelint": "^14.16.0",
176
176
  "stylelint-config-prettier": "^9.0.4",
177
177
  "stylelint-config-recommended-scss": "^8.0.0",
@@ -179,7 +179,7 @@
179
179
  "stylelint-config-standard-scss": "^6.1.0",
180
180
  "unplugin-auto-import": "^0.12.1",
181
181
  "unplugin-vue-components": "^0.22.12",
182
- "vite": "^4.0.1",
182
+ "vite": "^4.0.3",
183
183
  "vite-plugin-css-export": "^1.2.1",
184
184
  "vite-plugin-eslint": "^1.8.1",
185
185
  "vite-plugin-handlebars": "^1.6.0",
@@ -1,7 +1,7 @@
1
1
  @use 'sass:map';
2
2
  @use 'context' as *;
3
3
 
4
- :where(:host, :root, [class*='theme']) {
4
+ :where(:host, :root, .theme) {
5
5
  accent-color: var(--color-brand);
6
6
  background: var(--color-surface);
7
7
  caret-color: var(--color-brand);
@@ -169,7 +169,12 @@
169
169
  }
170
170
 
171
171
  // buttons
172
- &:where(button, input[type='button'], input[type='submit'], input[type='reset']) {
172
+ &:where(
173
+ button,
174
+ input[type='button'],
175
+ input[type='submit'],
176
+ input[type='reset']
177
+ ) {
173
178
  @extend %vv-button !optional;
174
179
 
175
180
  &:where([type='button']) {
@@ -205,7 +210,12 @@
205
210
  }
206
211
 
207
212
  &
208
- + :where(button, input[type='button'], input[type='submit'], input[type='reset']) {
213
+ + :where(
214
+ button,
215
+ input[type='button'],
216
+ input[type='submit'],
217
+ input[type='reset']
218
+ ) {
209
219
  @extend %ml-sm !optional;
210
220
  }
211
221
  }
@@ -365,11 +375,29 @@
365
375
  }
366
376
 
367
377
  // input text
368
- &:where(label:has(+ input:not([type='radio'], [type='checkbox'], [type='button'], [type='submit'], [type='reset']))) {
378
+ &:where(
379
+ label:has(
380
+ + input:not(
381
+ [type='radio'],
382
+ [type='checkbox'],
383
+ [type='button'],
384
+ [type='submit'],
385
+ [type='reset']
386
+ )
387
+ )
388
+ ) {
369
389
  @extend %vv-input-text__label !optional;
370
390
  }
371
391
 
372
- &:where(input:not([type='radio'], [type='checkbox'], [type='button'], [type='submit'], [type='reset'])) {
392
+ &:where(
393
+ input:not(
394
+ [type='radio'],
395
+ [type='checkbox'],
396
+ [type='button'],
397
+ [type='submit'],
398
+ [type='reset']
399
+ )
400
+ ) {
373
401
  @extend %w-full !optional;
374
402
  @extend %vv-input-text !optional;
375
403
  @extend %vv-input-text__wrapper !optional;
package/src/export.scss CHANGED
@@ -424,6 +424,25 @@
424
424
 
425
425
  // #endregion
426
426
 
427
+ // ============================================================== */
428
+ // #region FILTERS
429
+ // blur
430
+ @each $key, $value in $blur {
431
+ #{'blur__' + $key}: $value;
432
+ }
433
+
434
+ // brightness
435
+ @each $key, $value in $brightness {
436
+ #{'brightness__' + $key}: $value;
437
+ }
438
+
439
+ // saturation
440
+ @each $key, $value in $saturation {
441
+ #{'saturation__' + $key}: $value;
442
+ }
443
+
444
+ // #endregion
445
+
427
446
  // ============================================================== */
428
447
  // #region TRANSITIONS & ANIMATIONS
429
448
  // transition property
@@ -3,4 +3,5 @@
3
3
  :where(:host, :root, .theme) {
4
4
  @include spread-map-into-props($blur, $prefix: blur);
5
5
  @include spread-map-into-props($brightness, $prefix: brightness);
6
+ @include spread-map-into-props($saturation, $prefix: saturate);
6
7
  }
@@ -24,3 +24,12 @@ $brightness: (
24
24
  150: brightness(1.5),
25
25
  200: brightness(2),
26
26
  ) !default;
27
+
28
+ // saturation
29
+ $saturation: (
30
+ 0: saturate(0),
31
+ 50: saturate(0.5),
32
+ 100: saturate(1),
33
+ 150: saturate(1.5),
34
+ 200: saturate(2),
35
+ ) !default;
@@ -12,6 +12,7 @@ $vv-skeleton: (
12
12
  var(--skeleton-shine-color) 18%,
13
13
  var(--skeleton-background) 33%
14
14
  ),
15
+ [color]: transparent,
15
16
  background-size: 200% 100%,
16
17
  height: 1em,
17
18
  border-radius: var(--rounded),
@@ -16,6 +16,14 @@
16
16
  $zero-specificity: $zero-specificity-for-utilities
17
17
  );
18
18
 
19
+ // saturation
20
+ @include spread-map-into-utilities(
21
+ $map: $saturation,
22
+ $class: saturate,
23
+ $attribute: filter,
24
+ $zero-specificity: $zero-specificity-for-utilities
25
+ );
26
+
19
27
  // backdrop blur
20
28
  @include spread-map-into-utilities(
21
29
  $map: $blur,
@@ -1,4 +1,5 @@
1
1
  @use 'sass:map';
2
+ @use 'sass:string';
2
3
  @use '../context' as *;
3
4
 
4
5
  // transition property
@@ -29,14 +30,14 @@
29
30
  $zero-specificity: $zero-specificity-for-utilities
30
31
  );
31
32
 
32
- @each $property in $transition-property {
33
+ @each $property, $value in $transition-property {
33
34
  @include wrap-with-where(
34
35
  $selector: '.transition-#{$property}',
35
36
  $enabled: $zero-specificity-for-utilities
36
37
  ) {
37
- transition-property: $property;
38
+ transition-property: string.unquote($value);
38
39
  @if $property != 'none' {
39
- transition-duration: map.get($transition-duration-delay, '300');
40
+ transition-duration: map.get($transition-duration-delay, 300);
40
41
  transition-timing-function: map.get(
41
42
  $transition-timing-function,
42
43
  'in-out'