@penskemediacorp/larva-patterns 0.6.0 → 0.6.4-develop.17

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.
Files changed (70) hide show
  1. package/__tests__/vlanding/vlanding.html +1 -0
  2. package/__tests__/vlanding/vlanding.prototype.js +3 -1
  3. package/components/c-input/c-input.prototype.js +8 -0
  4. package/components/c-input/c-input.twig +14 -0
  5. package/components/c-lazy-image/c-lazy-image.prototype.js +4 -2
  6. package/components/c-lazy-image/c-lazy-image.twig +10 -2
  7. package/components/c-svg/c-svg.prototype.js +4 -0
  8. package/components/c-svg/c-svg.twig +3 -0
  9. package/modules/age-gate/README.md +3 -0
  10. package/modules/age-gate/age-gate.prototype.js +68 -0
  11. package/modules/age-gate/age-gate.twig +37 -0
  12. package/modules/banner/banner.prototype.js +10 -0
  13. package/modules/banner/banner.twig +10 -0
  14. package/modules/brands-most-popular/brands-most-popular.prototype.js +40 -0
  15. package/modules/brands-most-popular/brands-most-popular.twig +11 -0
  16. package/modules/expandable-search/expandable-search.prototype.js +19 -0
  17. package/modules/expandable-search/expandable-search.twig +9 -0
  18. package/modules/featured-stories/featured-stories.prototype.js +23 -0
  19. package/modules/featured-stories/featured-stories.twig +18 -0
  20. package/modules/footer-button-list/footer-button-list.prototype.js +43 -0
  21. package/modules/footer-button-list/footer-button-list.twig +13 -0
  22. package/modules/footer-magazine-image/footer-magazine-image.prototype.js +15 -0
  23. package/modules/footer-magazine-image/footer-magazine-image.twig +3 -0
  24. package/modules/header/header.article.js +39 -0
  25. package/modules/header/header.prototype.js +90 -0
  26. package/modules/header/header.twig +74 -0
  27. package/modules/header-menu/header-menu.prototype.js +26 -0
  28. package/modules/header-menu/header-menu.twig +3 -0
  29. package/modules/header-sticky/header-sticky.article.js +43 -0
  30. package/modules/header-sticky/header-sticky.prototype.js +39 -0
  31. package/modules/header-sticky/header-sticky.twig +30 -0
  32. package/modules/heading/heading.twig +3 -1
  33. package/modules/injected-related-content/injected-related-content.prototype.js +3 -1
  34. package/modules/mega-menu/mega-menu.prototype.js +16 -0
  35. package/modules/mega-menu/mega-menu.twig +10 -0
  36. package/modules/mega-menu-content/mega-menu-content.prototype.js +10 -0
  37. package/modules/mega-menu-content/mega-menu-content.twig +5 -0
  38. package/modules/mega-menu-footer/mega-menu-footer.prototype.js +41 -0
  39. package/modules/mega-menu-footer/mega-menu-footer.twig +19 -0
  40. package/modules/mega-menu-footer-subscribe/mega-menu-footer-subscribe.prototype.js +20 -0
  41. package/modules/mega-menu-footer-subscribe/mega-menu-footer-subscribe.twig +4 -0
  42. package/modules/mega-menu-item/mega-menu-item.prototype.js +23 -0
  43. package/modules/mega-menu-item/mega-menu-item.twig +13 -0
  44. package/modules/newswire/newswire.prototype.js +7 -1
  45. package/modules/newswire/newswire.twig +3 -3
  46. package/modules/read-next/read-next.prototype.js +20 -0
  47. package/modules/read-next/read-next.twig +4 -0
  48. package/modules/search-form/search-form.prototype.js +8 -0
  49. package/modules/search-form/search-form.twig +11 -0
  50. package/modules/story/story.twig +11 -0
  51. package/modules/story-featured-quote/story-featured-quote.prototype.js +32 -0
  52. package/modules/story-featured-quote/story-featured-quote.twig +25 -0
  53. package/modules/story-grid/story-grid.river.js +4 -0
  54. package/modules/story-grid/story-grid.twig +10 -2
  55. package/modules/sub-header/sub-header.prototype.js +8 -0
  56. package/modules/sub-header/sub-header.twig +7 -0
  57. package/objects/o-account-menu/o-account-menu.prototype.js +35 -0
  58. package/objects/o-account-menu/o-account-menu.twig +25 -0
  59. package/objects/o-card/o-card.prototype.js +1 -0
  60. package/objects/o-card/o-card.twig +4 -0
  61. package/objects/o-header/o-header.twig +4 -0
  62. package/objects/o-header-buttons/o-header-buttons.column.js +10 -0
  63. package/objects/o-header-buttons/o-header-buttons.prototype.js +41 -0
  64. package/objects/o-header-buttons/o-header-buttons.twig +42 -0
  65. package/objects/o-input-group/o-input-group.prototype.js +11 -0
  66. package/objects/o-input-group/o-input-group.twig +5 -0
  67. package/objects/o-nav/o-nav.twig +10 -4
  68. package/objects/o-sub-header/o-sub-header.prototype.js +39 -0
  69. package/objects/o-sub-header/o-sub-header.twig +9 -0
  70. package/package.json +5 -5
@@ -3,9 +3,13 @@ const clonedeep = require( 'lodash.clonedeep' );
3
3
 
4
4
  const story_grid = __experimentalCloneWithFallback( 'modules/story-grid/story-grid.prototype' );
5
5
  const story_prototype = __experimentalCloneWithFallback( 'modules/story/story.prototype' );
6
+ const c_span = __experimentalCloneWithFallback( 'components/c-span/c-span.prototype' );
6
7
 
7
8
  story_grid.story_grid_story_cards = story_grid.story_grid_story_cards.map( () => clonedeep( story_prototype ) );
8
9
 
9
10
  story_grid.story_grid_grid_classes = '';
10
11
 
12
+ c_span.c_span_text = 'Read more';
13
+ story_grid.c_span = c_span;
14
+
11
15
  module.exports = story_grid;
@@ -1,9 +1,17 @@
1
1
  <div class="story-grid lrv-u-padding-tb-1 lrv-u-padding-tb-2@desktop // {{ story_grid_classes }}">
2
- <ul class="{{ story_grid_grid_classes }} // lrv-a-unstyle-list lrv-a-space-children-horizontal lrv-a-space-children--050 lrv-u-margin-b-050">
2
+
3
+ {% if o_header %}
4
+ {% include "@larva/objects/o-header/o-header.twig" with o_header %}
5
+ {% endif %}
6
+
7
+ <ul class="{{ story_grid_grid_classes }} // lrv-a-unstyle-list lrv-u-margin-b-050">
3
8
  {% for item in story_grid_story_cards %}
4
- <li>
9
+ <li class="{{ story_grid_grid_item_classes }}">
5
10
  {% include "@larva/modules/story/story.twig" with item %}
6
11
  </li>
7
12
  {% endfor %}
8
13
  </ul>
14
+ {% if c_span %}
15
+ {% include "@larva/components/c-span/c-span.twig" with c_span %}
16
+ {% endif %}
9
17
  </div>
@@ -0,0 +1,8 @@
1
+ const { __experimentalCloneWithFallback } = require( '@penskemediacorp/larva' );
2
+
3
+ const o_sub_header = __experimentalCloneWithFallback( 'objects/o-sub-header/o-sub-header.prototype' );
4
+
5
+ module.exports = {
6
+ sub_header_classes: '',
7
+ o_sub_header: o_sub_header,
8
+ };
@@ -0,0 +1,7 @@
1
+ {% if o_sub_header %}
2
+ <div class="sub-header // {{ sub_header_classes }} lrv-u-padding-t-1 lrv-u-padding-t-2@desktop-xl lrv-u-padding-b-1@mobile-max">
3
+ <div class="lrv-a-wrapper">
4
+ {% include "@larva/objects/o-sub-header/o-sub-header.twig" with o_sub_header %}
5
+ </div>
6
+ </div>
7
+ {% endif %}
@@ -0,0 +1,35 @@
1
+ const clonedeep = require('lodash.clonedeep');
2
+
3
+ const c_link_prototype = require('../../components/c-link/c-link.prototype');
4
+ const c_span_prototype = require('../../components/c-span/c-span.prototype');
5
+
6
+ const c_welcome_span = clonedeep(c_span_prototype);
7
+ c_welcome_span.c_span_classes = 'subscriber-name lrv-a-font-body lrv-u-color-black lrv-u-font-size-12 lrv-u-text-transform-uppercase';
8
+ c_welcome_span.c_span_text = 'Welcome Name';
9
+ c_welcome_span.c_span_link_classes = 'lrv-u-color-black lrv-u-color-brand-primary:hover';
10
+ c_welcome_span.c_span_url = '#';
11
+
12
+ const c_account_link = clonedeep(c_link_prototype);
13
+ c_account_link.c_link_text = 'Account';
14
+ c_account_link.c_link_classes = 'subscriber-account-link lrv-u-font-family-body lrv-u-font-size-12 lrv-u-font-size-8@mobile-max lrv-a-icon-after lrv-a-icon-arrow-down lrv-a-unstyle-link lrv-u-border-b-1 lrv-u-border-color-brand-primary:hover lrv-u-border-color-white lrv-u-color-brand-primary:hover lrv-u-text-transform-uppercase';
15
+
16
+ const c_manage_account = clonedeep(c_link_prototype);
17
+ c_manage_account.c_link_text = 'Manage Account';
18
+ c_manage_account.c_link_classes = 'subscriber-self-care-link lrv-u-text-transform-uppercase lrv-a-font-secondary lrv-u-color-black lrv-u-font-size-12 lrv-u-width-100 lrv-u-text-align-center lrv-u-color-brand-primary:hover';
19
+
20
+ const c_log_out = clonedeep(c_link_prototype);
21
+ c_log_out.c_link_text = 'Sign Out';
22
+ c_log_out.c_link_classes = 'subscriber-logout-link lrv-a-font-secondary lrv-u-color-black lrv-u-color-brand-primary:hover lrv-u-font-size-12 lrv-u-text-transform-uppercase';
23
+
24
+ module.exports = {
25
+ o_account_menu_classes: 'js-Tooltip-parent lrv-a-glue-parent lrv-u-flex',
26
+ o_account_content_classes: 'js-Tooltip lrv-a-glue lrv-a-glue--t-100p lrv-u-box-shadow-medium',
27
+ o_account_content_inner_classes: 'lrv-a-glue-parent lrv-a-icon-after-arrow-top-left lrv-u-background-color-white lrv-u-border-a-2 lrv-u-flex lrv-u-flex-direction-column lrv-u-text-align-left lrv-u-flex-wrap-wrap lrv-u-margin-t-1 lrv-u-padding-tb-050 lrv-u-padding-lr-150 lrv-u-width-200',
28
+ o_account_welcome_span_classes: 'lrv-u-border-b-1 lrv-u-padding-tb-050',
29
+ o_account_manage_account_classes: 'lrv-u-border-b-1 lrv-u-padding-tb-050',
30
+ o_account_logout_classes: 'lrv-u-padding-tb-050',
31
+ c_welcome_span,
32
+ c_account_link,
33
+ c_manage_account,
34
+ c_log_out,
35
+ };
@@ -0,0 +1,25 @@
1
+ <div class="o-account-menu // {{ o_account_menu_classes }}">
2
+ {% include "@larva/components/c-link/c-link.twig" with c_account_link %}
3
+ <div class="o-account-content // {{ o_account_content_classes }}">
4
+ <div class="o-account-content-inner // {{ o_account_content_inner_classes }}">
5
+
6
+ {% if c_welcome_span %}
7
+ <div class="o-account-welcome-span-link // {{ o_account_welcome_span_classes }} ">
8
+ {% include "@larva/components/c-span/c-span.twig" with c_welcome_span %}
9
+ </div>
10
+ {% endif %}
11
+
12
+ {% if c_manage_account %}
13
+ <div class="o-account-manage-account-link // {{ o_account_manage_account_classes }} ">
14
+ {% include "@larva/components/c-link/c-link.twig" with c_manage_account %}
15
+ </div>
16
+ {% endif %}
17
+
18
+ {% if c_log_out %}
19
+ <div class="o-account-logout-link // {{ o_account_logout_classes }} ">
20
+ {% include "@larva/components/c-link/c-link.twig" with c_log_out %}
21
+ </div>
22
+ {% endif %}
23
+ </div>
24
+ </div>
25
+ </div>
@@ -14,6 +14,7 @@ module.exports = {
14
14
  o_card_image_wrap_classes: '',
15
15
  o_card_content_classes: '',
16
16
  c_lazy_image: c_lazy_image,
17
+ c_svg: false,
17
18
  c_span: c_span,
18
19
  c_tagline: false,
19
20
  c_title: c_title,
@@ -29,6 +29,10 @@
29
29
  {% include "@larva/objects/o-span-group/o-span-group.twig" with o_span_group %}
30
30
  {% endif %}
31
31
 
32
+ {% if c_svg %}
33
+ {% include "@larva/components/c-svg/c-svg.twig" with c_svg %}
34
+ {% endif %}
35
+
32
36
  {% if c_span %}
33
37
  {% include "@larva/components/c-span/c-span.twig" with c_span %}
34
38
  {% endif %}
@@ -11,6 +11,10 @@
11
11
  {% include "@larva/components/c-button/c-button.twig" with c_button %}
12
12
  {% endif %}
13
13
 
14
+ {% if c_svg %}
15
+ {% include "@larva/components/c-svg/c-svg.twig" with c_svg %}
16
+ {% endif %}
17
+
14
18
  {% if o_sponsored_by %}
15
19
  {% include "@larva/objects/o-sponsored-by/o-sponsored-by.twig" with o_sponsored_by %}
16
20
  {% endif %}
@@ -0,0 +1,10 @@
1
+ const clonedeep = require( 'lodash.clonedeep' );
2
+
3
+ const header_buttons_prototype = require( './o-header-buttons.prototype' );
4
+ const header_buttons = clonedeep( header_buttons_prototype );
5
+
6
+ header_buttons.button_wrap = true;
7
+ header_buttons.c_subscribe_link.c_link_classes = 'lrv-a-unstyle-link lrv-u-text-transform-uppercase lrv-u-font-family-body lrv-u-font-size-12 lrv-u-font-size-8@mobile-max lrv-u-color-brand-primary:hover lrv-u-border-b-1 lrv-u-border-color-white lrv-u-border-color-brand-primary:hover lrv-u-border-b-1 lrv-u-border-color-currentColor lrv-u-margin-b-025';
8
+ header_buttons.c_got_a_tip.c_link_classes = 'lrv-a-unstyle-link lrv-u-text-transform-uppercase lrv-u-font-family-body lrv-u-font-size-12 lrv-u-font-size-8@mobile-max lrv-u-color-brand-primary:hover lrv-u-border-b-1 lrv-u-border-color-white lrv-u-border-color-brand-primary:hover lrv-u-margin-tb-025';
9
+ header_buttons.o_header_button_classes = 'lrv-u-align-items-stretch lrv-a-space-children-horizontal lrv-a-space-children--1';
10
+ module.exports = header_buttons;
@@ -0,0 +1,41 @@
1
+ const clonedeep = require( 'lodash.clonedeep' );
2
+
3
+ const c_link_prototype = require( '../../components/c-link/c-link.prototype' );
4
+ const o_account_menu_prototype = require( '../../objects/o-account-menu/o-account-menu.prototype');
5
+
6
+ const c_login_link = clonedeep( c_link_prototype );
7
+ c_login_link.c_link_text = 'Log In';
8
+ c_login_link.c_link_classes = ' lrv-a-unstyle-link lrv-u-text-transform-uppercase lrv-u-font-family-body lrv-u-font-size-12 lrv-u-font-size-8@mobile-max lrv-u-color-brand-primary:hover lrv-u-border-b-1 lrv-u-border-color-white lrv-u-border-color-brand-primary:hover';
9
+
10
+ const c_subscribe_link = clonedeep( c_link_prototype );
11
+ c_subscribe_link.c_link_text = 'Subscribe';
12
+ c_subscribe_link.c_link_classes = 'lrv-a-unstyle-button lrv-a-unstyle-link lrv-u-text-transform-uppercase lrv-u-font-family-body lrv-u-font-size-12 lrv-u-font-size-8@mobile-max lrv-u-color-brand-primary:hover lrv-u-border-b-1 lrv-u-border-color-white lrv-u-border-color-brand-primary:hover';
13
+
14
+ const c_account_link = clonedeep( c_link_prototype );
15
+ c_account_link.c_link_text = 'Account';
16
+ c_account_link.c_link_classes = 'lrv-u-text-transform-uppercase lrv-u-font-family-body lrv-u-font-size-12 lrv-u-font-size-8@mobile-max lrv-u-color-brand-primary:hover lrv-u-border-color-white lrv-u-border-color-brand-primary:hover';
17
+
18
+ const c_got_a_tip = clonedeep( c_link_prototype );
19
+ c_got_a_tip.c_link_text = 'Got A Tip?';
20
+ c_got_a_tip.c_link_classes = 'lrv-a-unstyle-link lrv-u-text-transform-uppercase lrv-u-font-family-body lrv-u-font-size-12 lrv-u-font-size-8@mobile-max lrv-u-color-brand-primary:hover lrv-u-border-b-1 lrv-u-border-color-white lrv-u-border-color-brand-primary:hover';
21
+
22
+ const o_account_menu = clonedeep( o_account_menu_prototype );
23
+
24
+ o_account_menu.c_account_link.c_link_classes = ' lrv-a-unstyle-link lrv-u-text-transform-uppercase lrv-u-font-family-body lrv-u-font-size-12 lrv-u-font-size-8@mobile-max lrv-u-color-brand-primary:hover lrv-u-border-b-1 lrv-u-border-color-white lrv-u-border-color-brand-primary:hover lrv-u-margin-tb-025';
25
+
26
+ module.exports = {
27
+ c_login_link,
28
+ c_subscribe_link,
29
+ o_account_menu,
30
+ c_got_a_tip,
31
+ c_account_link,
32
+ button_wrap: false,
33
+ show_flyout: true,
34
+ o_header_button_classes: 'lrv-a-space-children-horizontal lrv-a-space-children--1',
35
+ got_tip_wrapper_classes: 'lrv-u-border-l-00@mobile-max lrv-u-border-l-1 lrv-u-padding-l-1 lrv-u-padding-tb-025 lrv-u-flex lrv-u-align-items-center lrv-u-margin-tb-025',
36
+ account_menu_classes: 'lrv-u-flex lrv-u-align-items-center lrv-u-border-l-00@mobile-max lrv-u-border-l-1 lrv-u-padding-l-1 lrv-u-padding-tb-025 lrv-u-margin-tb-025',
37
+ hide_flyout_classes: ' ',
38
+ subscribe_wrapper_classes: 'subscribe-link cx-dynamic-link lrv-u-border-l-00@mobile-max lrv-u-border-l-1 lrv-u-padding-l-1 lrv-u-padding-tb-025 lrv-u-margin-tb-025',
39
+ login_wrapper_classes: 'subscriber-login-link lrv-u-border-l-00@mobile-max lrv-u-border-l-1 lrv-u-padding-l-1 lrv-u-padding-tb-025 lrv-u-margin-tb-025',
40
+ button_wrap_classes: 'lrv-u-flex lrv-u-flex-direction-column lrv-u-align-items-center lrv-u-border-l-00@mobile-max lrv-u-border-l-1 lrv-u-padding-l-1 lrv-u-margin-tb-025',
41
+ };
@@ -0,0 +1,42 @@
1
+ <div class="lrv-u-flex {{o_header_button_classes}}">
2
+ <div class="item-wrap // {{ got_tip_wrapper_classes }}">
3
+ {% include "@larva/components/c-link/c-link.twig" with c_got_a_tip %}
4
+ </div>
5
+
6
+ {% if show_flyout %}
7
+
8
+ <div class="item-wrap // {{ account_menu_classes }} ">
9
+ {% include "@larva/objects/o-account-menu/o-account-menu.twig" with o_account_menu %}
10
+ </div>
11
+
12
+ {% else %}
13
+
14
+ <div class="item-wrap // {{ account_menu_classes }} {{ hide_flyout_classes}}">
15
+ {% include "@larva/components/c-link/c-link.twig" with c_account_link %}
16
+ </div>
17
+
18
+ {% endif %}
19
+
20
+ {% if button_wrap %}
21
+
22
+ <div class="items-wrap // {{ button_wrap_classes }}">
23
+ {% if c_subscribe_link %}
24
+ {% include "@larva/components/c-link/c-link.twig" with c_subscribe_link %}
25
+ {% endif %}
26
+
27
+ {% include "@larva/components/c-link/c-link.twig" with c_login_link %}
28
+ </div>
29
+
30
+ {% else %}
31
+
32
+ <div class="item-wrap // {{ subscribe_wrapper_classes }}">
33
+ {% if c_subscribe_link %}
34
+ {% include "@larva/components/c-link/c-link.twig" with c_subscribe_link %}
35
+ {% endif %}
36
+ </div>
37
+ <div class="item-wrap // {{ login_wrapper_classes }} ">
38
+ {% include "@larva/components/c-link/c-link.twig" with c_login_link %}
39
+ </div>
40
+
41
+ {% endif %}
42
+ </div>
@@ -0,0 +1,11 @@
1
+ const clonedeep = require( 'lodash.clonedeep' );
2
+ const c_input = clonedeep(require('@penskemediacorp/larva-patterns/components/c-input/c-input.prototype'));
3
+
4
+ module.exports = {
5
+ o_input_group_class: '',
6
+ o_input_group_items: [
7
+ c_input,
8
+ c_input,
9
+ c_input
10
+ ]
11
+ };
@@ -0,0 +1,5 @@
1
+ <div class="o-input-group {{ o_input_group_class }}">
2
+ {% for item in o_input_group_items %}
3
+ {% include "@larva/components/c-input/c-input.twig" with item %}
4
+ {% endfor %}
5
+ </div>
@@ -13,10 +13,16 @@
13
13
  >
14
14
 
15
15
  {% if o_nav_title_text %}
16
- {% if o_nav_tag_text %}
17
- <{{ o_nav_tag_text }} id="{{ o_nav_title_id_attr }}" class="o-nav__title {{ o_nav_title_classes }}">{{ o_nav_title_text }}</{{ o_nav_tag_text }}>
18
- {% else %}
19
- <h4 id="{{ o_nav_title_id_attr }}" class="o-nav__title {{ o_nav_title_classes }}">{{ o_nav_title_text }}</h4>
16
+ {% if o_nav_title_outer %}
17
+ <div class="o-nav__title-outer {{ o_nav_title_outer_classes }}">
18
+ {% endif %}
19
+ {% if o_nav_tag_text %}
20
+ <{{ o_nav_tag_text }} id="{{ o_nav_title_id_attr }}" class="o-nav__title {{ o_nav_title_classes }}">{{ o_nav_title_text }}</{{ o_nav_tag_text }}>
21
+ {% else %}
22
+ <h4 id="{{ o_nav_title_id_attr }}" class="o-nav__title {{ o_nav_title_classes }}">{{ o_nav_title_text }}</h4>
23
+ {% endif %}
24
+ {% if o_nav_title_outer %}
25
+ </div>
20
26
  {% endif %}
21
27
  {% endif %}
22
28
 
@@ -0,0 +1,39 @@
1
+ const clonedeep = require( 'lodash.clonedeep' );
2
+
3
+ const c_heading_prototype = require( '@penskemediacorp/larva-patterns/components/c-heading/c-heading.prototype.js' );
4
+ const c_heading = clonedeep( c_heading_prototype );
5
+
6
+ const o_nav_prototype = require( '@penskemediacorp/larva-patterns/objects/o-nav/o-nav.prototype' );
7
+ const o_nav = clonedeep( o_nav_prototype );
8
+
9
+ const o_nav_items_c_links__prototype = require( '@penskemediacorp/larva-patterns/components/c-link/c-link.prototype.js' );
10
+
11
+ c_heading.c_heading_text = 'Market';
12
+ c_heading.c_heading_classes = 'lrv-u-font-family-secondary lrv-u-font-size-56@desktop-xl lrv-u-font-size-50 lrv-u-margin-b-050@mobile-max lrv-u-line-height-small lrv-u-text-align-center@mobile-max lrv-u-margin-r-2@desktop';
13
+ c_heading.c_heading_is_primary_heading = true;
14
+
15
+ o_nav.o_nav_list_items = [];
16
+ const menuLinks = [ 'View All', 'Tag Title', 'Tag Title', 'Tag Title', 'Tag Title', 'Tag Title' ];
17
+
18
+ for (let i = 0; i < menuLinks.length; i++) {
19
+ let c_link = clonedeep( o_nav_items_c_links__prototype );
20
+
21
+ c_link.c_link_text = menuLinks[i];
22
+ c_link.c_link_classes += ' c_link_classes lrv-u-font-family-primary lrv-u-color-grey-dark:hover';
23
+
24
+ o_nav.o_nav_list_items.push( c_link );
25
+ }
26
+
27
+ const mobileDropdownUtilities = ' lrv-u-border-a-1@mobile-max lrv-u-justify-content-center lrv-u-margin-b-050@mobile-max lrv-u-border-color-grey-light';
28
+
29
+ o_nav.o_nav_classes = 'lrv-u-flex@desktop lrv-u-align-items-center lrv-u-text-align-center lrv-js-MobileHeightToggle';
30
+ o_nav.o_nav_title_text = 'View Categories';
31
+ o_nav.o_nav_title_classes = 'lrv-a-hidden@desktop lrv-js-MobileHeightToggle-trigger lrv-a-icon-after lrv-a-icon-arrow-down lrv-u-font-size-16 lrv-u-font-family-primary lrv-u-font-weight-normal lrv-u-padding-tb-050 lrv-u-width-100p@mobile-max ' + mobileDropdownUtilities;
32
+ o_nav.o_nav_list_classes += ' lrv-js-MobileHeightToggle-target lrv-u-flex lrv-u-flex-direction-column@mobile-max lrv-u-line-height-large lrv-u-flex-wrap-wrap lrv-a-space-children--1 lrv-a-space-children-horizontal@tablet';
33
+ o_nav.o_nav_list_item_classes = mobileDropdownUtilities;
34
+
35
+ module.exports = {
36
+ o_sub_header_classes: 'lrv-u-flex u-align-items-flex-end@tablet lrv-u-flex-direction-column@mobile-max',
37
+ c_heading: c_heading,
38
+ o_nav: o_nav,
39
+ };
@@ -0,0 +1,9 @@
1
+ <header class="o-sub-header // {{ o_sub_header_classes }}">
2
+ {% if c_heading %}
3
+ {% include "@larva/components/c-heading/c-heading.twig" with c_heading %}
4
+ {% endif %}
5
+
6
+ {% if o_nav %}
7
+ {% include "@larva/objects/o-nav/o-nav.twig" with o_nav %}
8
+ {% endif %}
9
+ </header>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@penskemediacorp/larva-patterns",
3
- "version": "0.6.0",
3
+ "version": "0.6.4-develop.17+854eedf7",
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": "^0.6.0",
24
- "@penskemediacorp/larva-js": "^0.6.0",
25
- "@penskemediacorp/larva-svg": "^0.6.0",
23
+ "@penskemediacorp/larva-css": "^0.6.4-develop.17+854eedf7",
24
+ "@penskemediacorp/larva-js": "^0.6.4-develop.17+854eedf7",
25
+ "@penskemediacorp/larva-svg": "^0.6.4-develop.17+854eedf7",
26
26
  "lodash.clonedeep": "^4.5.0"
27
27
  },
28
- "gitHead": "a1bb1fceaf6aa39eb3a0f2730f11821f02dcca00"
28
+ "gitHead": "854eedf76f31c2ed8f5300329cc2242f936e69b8"
29
29
  }