@penskemediacorp/larva-patterns 1.3.0 → 1.4.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/article-timestamp/article-timestamp.prototype.js +13 -0
- package/modules/article-timestamp/article-timestamp.twig +5 -0
- package/modules/paragraph/paragraph.narrow.js +8 -0
- package/modules/paragraph/paragraph.prototype.js +1 -1
- package/modules/story-featured-quote/story-featured-quote.prototype.js +2 -6
- package/modules/story-featured-quote/story-featured-quote.twig +4 -2
- package/modules/top-stories/top-stories.xl.js +14 -0
- package/package.json +5 -5
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const clonedeep = require('lodash.clonedeep');
|
|
2
|
+
|
|
3
|
+
const c_timestamp_prototype = require('@penskemediacorp/larva-patterns/components/c-timestamp/c-timestamp.prototype');
|
|
4
|
+
|
|
5
|
+
const c_timestamp = clonedeep(c_timestamp_prototype);
|
|
6
|
+
c_timestamp.c_timestamp_classes = 'lrv-u-font-size-14 lrv-u-text-transform-uppercase lrv-u-color-black lrv-u-display-inline-block';
|
|
7
|
+
c_timestamp.c_timestamp_text = 'September 3, 2019 7:51pm';
|
|
8
|
+
c_timestamp.c_timestamp_datetime_attr = '2019-09-03';
|
|
9
|
+
|
|
10
|
+
module.exports = {
|
|
11
|
+
article_timestamp_classes: 'lrv-u-display-block lrv-u-margin-t-050@mobile-max',
|
|
12
|
+
c_timestamp: c_timestamp,
|
|
13
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const clonedeep = require('lodash.clonedeep');
|
|
2
|
+
|
|
3
|
+
const paragraph_prototype = require( './paragraph.prototype' );
|
|
4
|
+
const paragraph_narrow = clonedeep( paragraph_prototype );
|
|
5
|
+
|
|
6
|
+
paragraph_narrow.paragraph_classes += ' lrv-u-width-75p';
|
|
7
|
+
|
|
8
|
+
module.exports = paragraph_narrow;
|
|
@@ -3,18 +3,13 @@ const clonedeep = require( 'lodash.clonedeep' );
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
const c_title = __experimentalCloneWithFallback( 'components/c-title/c-title.prototype' );
|
|
6
|
-
const c_dek = __experimentalCloneWithFallback( 'components/c-dek/c-dek.prototype' );
|
|
7
6
|
const c_tagline = __experimentalCloneWithFallback( 'components/c-tagline/c-tagline.prototype' );
|
|
8
|
-
|
|
9
7
|
const c_tagline_author = clonedeep( c_tagline );
|
|
10
8
|
|
|
11
9
|
c_title.c_title_text = '‘A Momentous Weekend’: LACMA’s High-Stakes Collectors Committee Event Raises $2.4 M.';
|
|
12
10
|
c_title.c_title_classes = 'lrv-u-font-size-14 lrv-u-font-family-primary lrv-u-display-block lrv-u-font-weight-normal lrv-u-line-height-small';
|
|
13
11
|
c_title.c_title_link_classes = 'lrv-a-unstyle-link lrv-u-color-brand-primary:hover';
|
|
14
12
|
|
|
15
|
-
c_dek.c_dek_text = false;
|
|
16
|
-
c_dek.c_dek_markup = 'Lorem ipsum <i>dolor</i> sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.';
|
|
17
|
-
c_dek.c_dek_classes = 'lrv-a-font-primary-l';
|
|
18
13
|
|
|
19
14
|
c_tagline_author.c_tagline_classes = 'lrv-u-margin-l-050';
|
|
20
15
|
c_tagline_author.c_tagline_markup = "<a href='#'>Staff Writer</a>";
|
|
@@ -22,10 +17,11 @@ c_tagline_author.c_tagline_text = false;
|
|
|
22
17
|
|
|
23
18
|
module.exports = {
|
|
24
19
|
story_featured_quote_classes: 'lrv-u-text-align-center',
|
|
20
|
+
story_quote_markup: 'Lorem ipsum <i>dolor</i> sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.',
|
|
21
|
+
story_quote_markup_classes: 'lrv-a-font-primary-l',
|
|
25
22
|
story_nav_classes: 'lrv-u-font-size-12 lrv-u-font-family-primary lrv-u-text-transform-uppercase lrv-u-font-weight-bold lrv-u-color-black ',
|
|
26
23
|
story_nav_layout_classes: 'lrv-u-flex lrv-u-align-items-center lrv-a-space-children-horizontal lrv-a-space-children--2 lrv-a-hidden@mobile-max lrv-u-margin-t-050 lrv-u-justify-content-center',
|
|
27
24
|
c_title: c_title,
|
|
28
|
-
c_dek: c_dek,
|
|
29
25
|
c_dek_url:'#',
|
|
30
26
|
c_dek_url_classes:'lrv-u-color-black lrv-a-unstyle-link',
|
|
31
27
|
c_tagline_author,
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
{% if c_dek_url %}
|
|
4
4
|
<a href="{{ c_dek_url }}" class="c-dek__link ">
|
|
5
5
|
{% endif %}
|
|
6
|
-
{% if
|
|
7
|
-
|
|
6
|
+
{% if story_quote_markup %}
|
|
7
|
+
<p class="story-quote-markup {{ story_quote_markup_classes }}">
|
|
8
|
+
{{ story_quote_markup|raw }}
|
|
9
|
+
</p>
|
|
8
10
|
{% endif %}
|
|
9
11
|
{% if c_dek_url %}
|
|
10
12
|
</a>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const clonedeep = require( 'lodash.clonedeep' );
|
|
2
|
+
|
|
3
|
+
const top_stories = clonedeep( require( './top-stories.prototype' ) );
|
|
4
|
+
|
|
5
|
+
top_stories.o_story_featured.c_title.c_title_classes = 'lrv-a-font-primary-xl c-title lrv-u-display-block lrv-u-margin-b-050';
|
|
6
|
+
top_stories.o_story_featured.c_link_bottom = false;
|
|
7
|
+
|
|
8
|
+
top_stories.stories.map( ( o_story ) => {
|
|
9
|
+
o_story.c_span = false;
|
|
10
|
+
o_story.c_link_bottom = false;
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
module.exports = top_stories;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@penskemediacorp/larva-patterns",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.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.4.0",
|
|
24
|
+
"@penskemediacorp/larva-js": "^1.4.0",
|
|
25
|
+
"@penskemediacorp/larva-svg": "^1.4.0",
|
|
26
26
|
"lodash.clonedeep": "^4.5.0"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "112fe16c862df9ccd4d562d60a12a421f7780d34"
|
|
29
29
|
}
|