@penskemediacorp/larva-patterns 1.9.0 → 1.11.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/modules/section-heading/section-heading.h2.js +9 -0
- package/modules/section-heading/section-heading.h3.js +10 -0
- package/modules/section-heading/section-heading.prototype.js +14 -0
- package/modules/section-heading/section-heading.twig +8 -0
- package/objects/o-author/o-author.prototype.js +2 -1
- package/objects/o-author/o-author.twig +4 -0
- package/package.json +5 -5
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const clonedeep = require( 'lodash.clonedeep' );
|
|
2
|
+
|
|
3
|
+
const section_heading = clonedeep( require( './section-heading.prototype' ) );
|
|
4
|
+
|
|
5
|
+
section_heading.section_heading_class = 'lrv-u-margin-lr-auto lrv-u-width-75p lrv-u-border-t-3 lrv-u-padding-t-1';
|
|
6
|
+
section_heading.c_dek = false;
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
module.exports = section_heading;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const clonedeep = require( 'lodash.clonedeep' );
|
|
2
|
+
|
|
3
|
+
const section_heading = clonedeep( require( './section-heading.prototype' ) );
|
|
4
|
+
|
|
5
|
+
section_heading.section_heading_class = 'lrv-u-margin-lr-auto lrv-u-width-75p lrv-u-border-t-3 lrv-u-padding-t-1';
|
|
6
|
+
section_heading.section_heading_level_text = '3';
|
|
7
|
+
section_heading.section_heading_typography_class = 'lrv-a-font-secondary-xl';
|
|
8
|
+
section_heading.c_dek = false;
|
|
9
|
+
|
|
10
|
+
module.exports = section_heading;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const clonedeep = require('lodash.clonedeep');
|
|
2
|
+
const c_dek = clonedeep(require('@penskemediacorp/larva-patterns/components/c-dek/c-dek.prototype'));
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
section_heading_class: 'lrv-u-width-50p@desktop lrv-u-text-align-center lrv-u-margin-lr-auto',
|
|
6
|
+
section_heading_level_text: '2',
|
|
7
|
+
section_heading_classes: '',
|
|
8
|
+
section_heading_color_class: '',
|
|
9
|
+
section_heading_text_align_class: '',
|
|
10
|
+
section_heading_typography_class: 'lrv-a-font-accent-m',
|
|
11
|
+
section_heading_background_color_class: '',
|
|
12
|
+
section_heading_markup: 'Section Heading',
|
|
13
|
+
c_dek
|
|
14
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<div class="section-heading // {{ section_heading_class }}">
|
|
2
|
+
{% if section_heading_markup %}
|
|
3
|
+
<h{{ section_heading_level_text }} class="{{ section_heading_classes }} {{ section_heading_typography_class }} {{ section_heading_color_class }} {{ section_heading_background_color_class }} {{ section_heading_text_align_class }}">{{ section_heading_markup }}</h{{ section_heading_level_text }}>
|
|
4
|
+
{% endif %}
|
|
5
|
+
{% if c_dek %}
|
|
6
|
+
{% include "@larva/components/c-dek/c-dek.twig" with c_dek %}
|
|
7
|
+
{% endif %}
|
|
8
|
+
</div>
|
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
{% include "@larva/components/c-span/c-span.twig" with c_span %}
|
|
7
7
|
{% endif %}
|
|
8
8
|
|
|
9
|
+
{% if c_tagline_author %}
|
|
10
|
+
{% include "@larva/components/c-tagline/c-tagline.twig" with c_tagline_author %}
|
|
11
|
+
{% endif %}
|
|
12
|
+
|
|
9
13
|
{% if c_timestamp %}
|
|
10
14
|
{% include "@larva/components/c-timestamp/c-timestamp.twig" with c_timestamp %}
|
|
11
15
|
{% endif %}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@penskemediacorp/larva-patterns",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "Larva markup patterns.",
|
|
5
5
|
"author": "laras126 <laras126@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/Penske-Media-Corp/pmc-larva/tree/master/packages/patterns#readme",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"url": "https://github.com/Penske-Media-Corp/pmc-larva/issues"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@penskemediacorp/larva-css": "^1.
|
|
24
|
-
"@penskemediacorp/larva-js": "^1.
|
|
25
|
-
"@penskemediacorp/larva-svg": "^1.
|
|
23
|
+
"@penskemediacorp/larva-css": "^1.11.0",
|
|
24
|
+
"@penskemediacorp/larva-js": "^1.10.0",
|
|
25
|
+
"@penskemediacorp/larva-svg": "^1.10.0",
|
|
26
26
|
"lodash.clonedeep": "^4.5.0"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "404c13201d3eadae789daab9d759ca7824b360bb"
|
|
29
29
|
}
|