vanilla-framework 4.21.1 → 4.22.0

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": "vanilla-framework",
3
- "version": "4.21.1",
3
+ "version": "4.22.0",
4
4
  "author": {
5
5
  "email": "webteam@canonical.com",
6
6
  "name": "Canonical Webteam"
@@ -1486,3 +1486,30 @@
1486
1486
  @mixin vf-icon-credit-card-themed {
1487
1487
  @include vf-themed-icon($light-value: vf-icon-credit-card-url($colors--light-theme--icon), $dark-value: vf-icon-credit-card-url($colors--dark-theme--icon));
1488
1488
  }
1489
+
1490
+ // ICONS ADDED IN MARCH 2025 v4.22.0
1491
+ // heading
1492
+ @function vf-icon-heading-url($color) {
1493
+ @return url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath fill='#{vf-url-friendly-color($color)}' d='M3.704 13.544V2.456h1.648v4.592h5.296V2.456h1.648v11.088h-1.648V8.456H5.352v5.088z'/%3E%3C/svg%3E");
1494
+ }
1495
+
1496
+ @mixin vf-icon-heading($color: $colors--light-theme--icon) {
1497
+ background-image: vf-icon-heading-url($color);
1498
+ }
1499
+
1500
+ @mixin vf-icon-heading-themed {
1501
+ @include vf-themed-icon($light-value: vf-icon-heading-url($colors--light-theme--icon), $dark-value: vf-icon-heading-url($colors--dark-theme--icon));
1502
+ }
1503
+
1504
+ // quote
1505
+ @function vf-icon-quote-url($color) {
1506
+ @return url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath fill='#{vf-url-friendly-color($color)}' d='m3.623 12.782-2.026-.856q1.17-2.206 1.576-4.008.45-1.846.45-3.378v-.766q0-.36-.045-.765h3.018v.495q0 2.522-.72 4.82-.721 2.25-2.253 4.458m7.477 0-2.027-.856q1.125-2.206 1.531-4.008.45-1.846.45-3.378v-.766q0-.36-.045-.765h3.018q.045.135.045.27v.225q0 2.522-.766 4.82-.72 2.25-2.206 4.458'/%3E%3C/svg%3E");
1507
+ }
1508
+
1509
+ @mixin vf-icon-quote($color: $colors--light-theme--icon) {
1510
+ background-image: vf-icon-quote-url($color);
1511
+ }
1512
+
1513
+ @mixin vf-icon-quote-themed {
1514
+ @include vf-themed-icon($light-value: vf-icon-quote-url($colors--light-theme--icon), $dark-value: vf-icon-quote-url($colors--dark-theme--icon));
1515
+ }
@@ -2051,4 +2051,20 @@
2051
2051
  }
2052
2052
  }
2053
2053
 
2054
- // **Base and Pattern mixins accurate as of October 2024**
2054
+ // ICONS ADDED IN MARCH 2025
2055
+
2056
+ @mixin vf-p-icon-heading {
2057
+ .p-icon--heading {
2058
+ @extend %icon;
2059
+ @include vf-icon-heading-themed;
2060
+ }
2061
+ }
2062
+
2063
+ @mixin vf-p-icon-quote {
2064
+ .p-icon--quote {
2065
+ @extend %icon;
2066
+ @include vf-icon-quote-themed;
2067
+ }
2068
+ }
2069
+
2070
+ // **Base and Pattern mixins accurate as of March 2025**
@@ -36,9 +36,8 @@ $knob-size: $sp-unit * 2;
36
36
  }
37
37
 
38
38
  .p-switch__slider {
39
- background: $colors--theme--background-neutral-default;
39
+ background: $colors--theme--border-high-contrast;
40
40
  border-radius: $knob-size;
41
- box-shadow: inset 0 2px 5px 0 color.scale($color-x-dark, $alpha: -80%);
42
41
  display: inline-block;
43
42
  height: $knob-size;
44
43
  margin: 0;
@@ -46,11 +45,10 @@ $knob-size: $sp-unit * 2;
46
45
  width: $knob-size * 2;
47
46
 
48
47
  &::before {
49
- @extend %vf-has-box-shadow;
50
48
  @include vf-transition($duration: slow);
51
49
 
52
50
  background: $colors--theme--background-default;
53
- border: $input-border-thickness solid $colors--theme--background-neutral-default;
51
+ border: $input-border-thickness solid $colors--theme--border-high-contrast;
54
52
  border-radius: 50%;
55
53
  content: '';
56
54
  height: $knob-size;
@@ -128,7 +128,7 @@ $colors--light-theme--background-hover: adjust-color($color-x-dark, $lightness:
128
128
  $colors--light-theme--background-overlay: color.scale($color-dark, $alpha: -15%) !default;
129
129
 
130
130
  $colors--light-theme--border-default: rgba($color-x-dark, 0.2) !default;
131
- $colors--light-theme--border-high-contrast: rgba($color-x-dark, 0.56) !default;
131
+ $colors--light-theme--border-high-contrast: #707070 !default;
132
132
  $colors--light-theme--border-low-contrast: rgba($color-x-dark, 0.1) !default;
133
133
 
134
134
  $colors--light-theme--icon: $colors--light-theme--text-default !default;
@@ -188,7 +188,7 @@ $colors--dark-theme--background-hover: #313131 !default;
188
188
  $colors--dark-theme--background-overlay: color.scale($color-dark, $alpha: -15%) !default;
189
189
 
190
190
  $colors--dark-theme--border-default: rgba($colors--dark-theme--text-default, 0.2) !default;
191
- $colors--dark-theme--border-high-contrast: rgba($colors--dark-theme--text-default, 0.5) !default;
191
+ $colors--dark-theme--border-high-contrast: #939393 !default;
192
192
  $colors--dark-theme--border-low-contrast: rgba($colors--dark-theme--text-default, 0.1) !default;
193
193
 
194
194
  $colors--dark-theme--icon: $colors--dark-theme--text-default !default;