vanilla-framework 4.36.0 → 4.37.1
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
|
@@ -1526,3 +1526,45 @@
|
|
|
1526
1526
|
@mixin vf-icon-history-themed {
|
|
1527
1527
|
@include vf-themed-icon($light-value: vf-icon-history-url($colors--light-theme--icon), $dark-value: vf-icon-history-url($colors--dark-theme--icon));
|
|
1528
1528
|
}
|
|
1529
|
+
|
|
1530
|
+
// generative-ai
|
|
1531
|
+
@function vf-icon-generative-ai-url($color) {
|
|
1532
|
+
@return url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='#{vf-url-friendly-color($color)}' d='m7.75 3 .007.27a5.25 5.25 0 0 0 4.973 4.973l.27.007v1.5a5.25 5.25 0 0 0-5.243 4.98L7.75 15h-1.5c0-2.9-2.35-5.25-5.25-5.25v-1.5C3.9 8.25 6.25 5.9 6.25 3zM7 6.09A6.78 6.78 0 0 1 4.09 9 6.78 6.78 0 0 1 7 11.908 6.78 6.78 0 0 1 9.908 9 6.78 6.78 0 0 1 7 6.09M15.5 3.103A2.704 2.704 0 0 1 12.898.5h-.796A2.704 2.704 0 0 1 9.5 3.103v.794A2.704 2.704 0 0 1 12.102 6.5h.796A2.704 2.704 0 0 1 15.5 3.897z'/%3E%3C/svg%3E");
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
@mixin vf-icon-generative-ai($color: $colors--light-theme--icon) {
|
|
1536
|
+
background-image: vf-icon-generative-ai-url($color);
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
@mixin vf-icon-generative-ai-themed {
|
|
1540
|
+
@include vf-themed-icon($light-value: vf-icon-generative-ai-url($colors--light-theme--icon), $dark-value: vf-icon-generative-ai-url($colors--dark-theme--icon));
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
// ignored
|
|
1544
|
+
@function vf-icon-ignored-url($color) {
|
|
1545
|
+
@return url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='#{vf-url-friendly-color($color)}' d='m10.47 4.47 1.06 1.06-6 6-1.06-1.06z'/%3E%3Cpath fill='#{vf-url-friendly-color($color)}' d='M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1m0 1.5a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11'/%3E%3C/svg%3E");
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
@mixin vf-icon-ignored($color: $colors--light-theme--icon) {
|
|
1549
|
+
background-image: vf-icon-ignored-url($color);
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
@mixin vf-icon-ignored-themed {
|
|
1553
|
+
@include vf-themed-icon($light-value: vf-icon-ignored-url($colors--light-theme--icon), $dark-value: vf-icon-ignored-url($colors--dark-theme--icon));
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
// vulnerable
|
|
1557
|
+
@function vf-icon-vulnerable-url($color: $color-negative, $color-symbol: $color-x-light) {
|
|
1558
|
+
@return url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='#{vf-url-friendly-color($color)}' fill-rule='evenodd' d='M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8' clip-rule='evenodd'/%3E%3Cpath fill='#{vf-url-friendly-color($color-symbol)}' fill-rule='evenodd' d='M9 8.5V4H7v4.5zm-.008 1.91A.5.5 0 0 0 8.5 10h-1l-.09.008A.5.5 0 0 0 7 10.5v1l.008.09A.5.5 0 0 0 7.5 12h1l.09-.008A.5.5 0 0 0 9 11.5v-1z' clip-rule='evenodd'/%3E%3C/svg%3E");
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
@mixin vf-icon-vulnerable($color: $color-negative, $color-symbol: $color-x-light) {
|
|
1562
|
+
background-image: vf-icon-vulnerable-url($color, $color-symbol);
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
@mixin vf-icon-vulnerable-themed {
|
|
1566
|
+
@include vf-themed-icon(
|
|
1567
|
+
$light-value: vf-icon-vulnerable-url($color: map-get($colors-light-theme--tinted-borders, negative), $color-symbol: $colors--light-theme--background-default),
|
|
1568
|
+
$dark-value: vf-icon-vulnerable-url($color: map-get($colors-dark-theme--tinted-borders, negative), $color-symbol: $colors--dark-theme--background-default)
|
|
1569
|
+
);
|
|
1570
|
+
}
|
|
@@ -156,4 +156,14 @@
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
+
|
|
160
|
+
.row--50-50-on-large > .col,
|
|
161
|
+
.row > .col-6 {
|
|
162
|
+
& .p-equal-height-row,
|
|
163
|
+
& .p-equal-height-row--wrap {
|
|
164
|
+
@media screen and (width >= $breakpoint-large) {
|
|
165
|
+
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
159
169
|
}
|
|
@@ -2074,4 +2074,25 @@
|
|
|
2074
2074
|
}
|
|
2075
2075
|
}
|
|
2076
2076
|
|
|
2077
|
-
|
|
2077
|
+
@mixin vf-p-icon-generative-ai {
|
|
2078
|
+
.p-icon--generative-ai {
|
|
2079
|
+
@extend %icon;
|
|
2080
|
+
@include vf-icon-generative-ai-themed;
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
2083
|
+
|
|
2084
|
+
@mixin vf-p-icon-ignored {
|
|
2085
|
+
.p-icon--ignored {
|
|
2086
|
+
@extend %icon;
|
|
2087
|
+
@include vf-icon-ignored-themed;
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
|
|
2091
|
+
@mixin vf-p-icon-vulnerable {
|
|
2092
|
+
.p-icon--vulnerable {
|
|
2093
|
+
@extend %icon;
|
|
2094
|
+
@include vf-icon-vulnerable-themed;
|
|
2095
|
+
}
|
|
2096
|
+
}
|
|
2097
|
+
|
|
2098
|
+
// **Base and Pattern mixins accurate as of October 2025**
|
|
@@ -58,26 +58,30 @@
|
|
|
58
58
|
</div>
|
|
59
59
|
|
|
60
60
|
<div class="row">
|
|
61
|
-
<div class="{%- if items | length % 3 == 0 and items | length % 4 != 0 -%}col-9 col-start-large-4{%- else -%}col{%- endif -%}">
|
|
61
|
+
<div class="{%- if items | length == 2 -%}col-6 col-start-large-7{%- elif items | length % 3 == 0 and items | length % 4 != 0 -%}col-9 col-start-large-4{%- else -%}col{%- endif -%}">
|
|
62
62
|
<div class="p-equal-height-row--wrap">
|
|
63
63
|
{%- for item in items -%}
|
|
64
|
-
{% set image = item.get("image_html") | trim %}
|
|
65
|
-
{% set title = item.get("title_text") | trim %}
|
|
66
|
-
{% set description = item.get("description_html"
|
|
67
|
-
{% set cta = item.get("cta_html"
|
|
64
|
+
{% set image = item.get("image_html", "") | trim %}
|
|
65
|
+
{% set title = item.get("title_text", "") | trim %}
|
|
66
|
+
{% set description = item.get("description_html", "") | trim %}
|
|
67
|
+
{% set cta = item.get("cta_html", "") | trim %}
|
|
68
68
|
<div class="p-equal-height-row__col is-borderless">
|
|
69
|
-
{#- Image item
|
|
69
|
+
{#- Image item -#}
|
|
70
70
|
<div class="p-equal-height-row__item">
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
{%- if image | length > 0 %}
|
|
72
|
+
<div
|
|
73
|
+
class="p-image-container {% if image_aspect_ratio_small != 'auto' %} p-image-container--{{ image_aspect_ratio_small }}-on-small{% endif %}{% if image_aspect_ratio_medium != 'auto' %} p-image-container--{{ image_aspect_ratio_medium }}-on-medium{% endif %}{% if image_aspect_ratio_large != 'auto' %} p-image-container--{{ image_aspect_ratio_large }}-on-large{% endif %} is-cover{% if highlight_images %} is-highlighted{% endif %}" >
|
|
74
|
+
{#- The consumer must pass in an img.p-image-container__image for the image to be properly formatted -#}
|
|
75
|
+
{{- image | safe -}}
|
|
76
|
+
</div>
|
|
77
|
+
<hr class="p-rule--highlight"/>
|
|
78
|
+
{%- endif -%}
|
|
76
79
|
</div>
|
|
77
|
-
{#- Title item
|
|
80
|
+
{#- Title item -#}
|
|
78
81
|
<div class="p-equal-height-row__item">
|
|
79
|
-
|
|
80
|
-
|
|
82
|
+
{%- if title | length > 0 -%}
|
|
83
|
+
<p class="p-heading--{{ subtitle_heading_level }}">{{- title -}}</p>
|
|
84
|
+
{%- endif -%}
|
|
81
85
|
</div>
|
|
82
86
|
{#- Description item (optional) -#}
|
|
83
87
|
<div class="p-equal-height-row__item">
|
|
@@ -45,10 +45,11 @@
|
|
|
45
45
|
{% set item_class = "is-ticked" -%}
|
|
46
46
|
{% elif item_style == 'crossed' -%}
|
|
47
47
|
{% set item_class = "is-crossed u-text--muted" -%}
|
|
48
|
+
{% set sr_prefix = '<span class="u-off-screen">Does not include</span>' -%}
|
|
48
49
|
{% else -%}
|
|
49
50
|
{% set item_class = "has-bullet" -%}
|
|
50
51
|
{%- endif -%}
|
|
51
|
-
<li class="p-list__item {{ item_class }}">{{ offering.list_item_content_html }}</li>
|
|
52
|
+
<li class="p-list__item {{ item_class }}">{{ sr_prefix }}{{ offering.list_item_content_html }}</li>
|
|
52
53
|
{% endfor -%}
|
|
53
54
|
</ul>
|
|
54
55
|
{%- endmacro -%}
|