vanilla-framework 4.37.2 → 4.38.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.
|
|
3
|
+
"version": "4.38.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"email": "webteam@canonical.com",
|
|
6
6
|
"name": "Canonical Webteam"
|
|
@@ -95,5 +95,9 @@
|
|
|
95
95
|
},
|
|
96
96
|
"peerDependencies": {
|
|
97
97
|
"sass": "^1.79.0"
|
|
98
|
+
},
|
|
99
|
+
"publishConfig": {
|
|
100
|
+
"access": "public",
|
|
101
|
+
"provenance": true
|
|
98
102
|
}
|
|
99
103
|
}
|
|
@@ -300,6 +300,7 @@
|
|
|
300
300
|
# padding: Type of padding to apply to the pattern - "deep", "shallow", "default" (default is "default").
|
|
301
301
|
# is_split_on_medium: Boolean to indicate if the section should be split on medium screens (default is false).
|
|
302
302
|
# top_rule_variant: Type of HR to render at the top of the pattern. "default" | "muted" (default is "default").
|
|
303
|
+
# attrs: A dictionary of attributes to apply to the section element.
|
|
303
304
|
{% macro vf_basic_section(
|
|
304
305
|
title={},
|
|
305
306
|
label_text="",
|
|
@@ -307,7 +308,8 @@
|
|
|
307
308
|
items=[],
|
|
308
309
|
padding="default",
|
|
309
310
|
is_split_on_medium=false,
|
|
310
|
-
top_rule_variant="default"
|
|
311
|
+
top_rule_variant="default",
|
|
312
|
+
attrs={}
|
|
311
313
|
) -%}
|
|
312
314
|
|
|
313
315
|
{%- set padding = padding | trim -%}
|
|
@@ -330,7 +332,13 @@
|
|
|
330
332
|
{%- set has_label = label_text|length > 0 -%}
|
|
331
333
|
{%- set has_subtitle = subtitle_text|length > 0 -%}
|
|
332
334
|
|
|
333
|
-
<section class="{{ padding_classes }}"
|
|
335
|
+
<section class="{{ padding_classes }} {{ attrs.get("class", "") -}}"
|
|
336
|
+
{%- for attr, value in attrs.items() -%}
|
|
337
|
+
{% if attr != "class" %}
|
|
338
|
+
{{ attr }}="{{ value }}"
|
|
339
|
+
{%- endif -%}
|
|
340
|
+
{%- endfor -%}
|
|
341
|
+
>
|
|
334
342
|
<div class="grid-row--50-50{%- if not is_split_on_medium -%}-on-large{%- endif -%}">
|
|
335
343
|
{{ vf_section_top_rule(top_rule_variant) }}
|
|
336
344
|
<div class="grid-col">
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{#-
|
|
2
2
|
Params
|
|
3
3
|
- title_text (string) (required): The text to be displayed as the heading
|
|
4
|
+
- attrs (dictionary) (optional): A dictionary of attributes to apply to the equal heights pattern.
|
|
4
5
|
- subtitle_text (string) (optional): The text to be displayed as the subtitle
|
|
5
6
|
- subtitle_heading_level (int) (optional): The heading level for the subtitle. Can be 4 or 5. Defaults to 5.
|
|
6
7
|
- highlight_images (boolean) (optional): If the images need to be highlighted, which means adding a subtle grey background. Not added by default.
|
|
@@ -11,6 +12,7 @@
|
|
|
11
12
|
-#}
|
|
12
13
|
{%- macro vf_equal_heights(
|
|
13
14
|
title_text,
|
|
15
|
+
attrs={},
|
|
14
16
|
subtitle_text="",
|
|
15
17
|
subtitle_heading_level=5,
|
|
16
18
|
highlight_images=false,
|
|
@@ -31,7 +33,13 @@
|
|
|
31
33
|
{% set subtitle_heading_level=5 %}
|
|
32
34
|
{%- endif -%}
|
|
33
35
|
|
|
34
|
-
<div class="p-section"
|
|
36
|
+
<div class="p-section {{ attrs.get("class", "") -}}"
|
|
37
|
+
{%- for attr, value in attrs.items() -%}
|
|
38
|
+
{% if attr != "class" %}
|
|
39
|
+
{{ attr }}="{{ value }}"
|
|
40
|
+
{%- endif -%}
|
|
41
|
+
{%- endfor -%}
|
|
42
|
+
>
|
|
35
43
|
<hr class="p-rule is-fixed-width"/>
|
|
36
44
|
<div class="p-section--shallow">
|
|
37
45
|
{%- if has_two_top_cols -%}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Params
|
|
3
3
|
- title_text (string) (required): The text to be displayed as the heading
|
|
4
4
|
- top_rule_variant (string) (optional): Variant of the top rule, default is "default". Options are "muted", "highlighted", "default", "none".
|
|
5
|
+
- attrs (dictionary) (optional): A dictionary of attributes to apply to the Pricing block section.
|
|
5
6
|
- tiers (Array<{
|
|
6
7
|
tier_name_text: String (optional),
|
|
7
8
|
tier_price_text: String,
|
|
@@ -20,6 +21,7 @@
|
|
|
20
21
|
{%- macro vf_pricing_block(
|
|
21
22
|
top_rule_variant="default",
|
|
22
23
|
title_text="",
|
|
24
|
+
attrs={},
|
|
23
25
|
tiers=[]
|
|
24
26
|
) -%}
|
|
25
27
|
{% set top_rule_variant = top_rule_variant | trim %}
|
|
@@ -86,7 +88,13 @@
|
|
|
86
88
|
<hr class="p-rule{% if top_rule_variant != 'default' %}--{{ rule_class }}{% endif %} is-fixed-width" />
|
|
87
89
|
{% endif %}
|
|
88
90
|
{%- endmacro -%}
|
|
89
|
-
<div class="p-section"
|
|
91
|
+
<div class="p-section {{ attrs.get("class", "") -}}"
|
|
92
|
+
{%- for attr, value in attrs.items() -%}
|
|
93
|
+
{% if attr != "class" %}
|
|
94
|
+
{{ attr }}="{{ value }}"
|
|
95
|
+
{%- endif -%}
|
|
96
|
+
{%- endfor -%}
|
|
97
|
+
>
|
|
90
98
|
{{ _top_rule() }}
|
|
91
99
|
<div class="grid-row">
|
|
92
100
|
<div class="grid-col-4 grid-col-medium-4 grid-col-small-4">
|