hr-design-system-handlebars 0.42.3 → 0.42.4

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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v0.42.4 (Tue Apr 12 2022)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - responsiveImage 2.1 [#213](https://github.com/mumprod/hr-design-system-handlebars/pull/213) ([@vascoeduardo](https://github.com/vascoeduardo))
6
+
7
+ #### Authors: 1
8
+
9
+ - Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
10
+
11
+ ---
12
+
1
13
  # v0.42.3 (Tue Apr 12 2022)
2
14
 
3
15
  #### 🐛 Bug Fix
@@ -1411,7 +1411,7 @@ Ensure the default browser behavior of the `hidden` attribute.
1411
1411
  padding-top: 0.75rem;
1412
1412
  padding-bottom: 0.75rem;
1413
1413
  font-size: 1.125rem;
1414
- line-height: 1.75rem;
1414
+ line-height: 1.5rem;
1415
1415
  }
1416
1416
  .sr-only {
1417
1417
  position: absolute;
@@ -1689,13 +1689,13 @@ Ensure the default browser behavior of the `hidden` attribute.
1689
1689
  -ms-flex-negative: 0;
1690
1690
  flex-shrink: 0;
1691
1691
  }
1692
- .basis-1\/3 {
1693
- -ms-flex-preferred-size: 33.333333%;
1694
- flex-basis: 33.333333%;
1692
+ .basis-2\/5 {
1693
+ -ms-flex-preferred-size: 40%;
1694
+ flex-basis: 40%;
1695
1695
  }
1696
- .basis-2\/3 {
1697
- -ms-flex-preferred-size: 66.666667%;
1698
- flex-basis: 66.666667%;
1696
+ .basis-3\/5 {
1697
+ -ms-flex-preferred-size: 60%;
1698
+ flex-basis: 60%;
1699
1699
  }
1700
1700
  .-translate-x-1\/2 {
1701
1701
  --tw-translate-x: -50%;
@@ -2154,7 +2154,7 @@ Ensure the default browser behavior of the `hidden` attribute.
2154
2154
  }
2155
2155
  .text-lg {
2156
2156
  font-size: 1.125rem;
2157
- line-height: 1.75rem;
2157
+ line-height: 1.5rem;
2158
2158
  }
2159
2159
  .text-xl {
2160
2160
  font-size: 1.25rem;
@@ -1,15 +1,15 @@
1
1
  <article class="col-span-12 flex gap-y-4 gap-x-5 {{inline-switch teasersize '["sm","md","lg"]' '["px-5 md:px-0 md:col-span-3 flex-row md:flex-col","md:col-span-4 flex-col","md:col-span-6 flex-col","flex-col"]'}} ">
2
- <figure class="{{inline-switch teasersize '["sm"]' '["basis-1/3 md:flex-full"]'}} ">
2
+ <figure class="{{inline-switch teasersize '["sm"]' '["basis-2/5 md:flex-full"]'}} ">
3
3
  {{#>components/base/link _cssClasses="" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="mediaLink" }}
4
4
  {{~> components/base/image/responsiveImage this.content.teaserImage _type=this.content.teasertype _variant=this.content.imageVariant _noDelay=../_noDelay _addClassImg="ar__content mediaPlayerLoader__mediaplayerArea" ~}}
5
5
  {{/components/base/link}}
6
6
  </figure>
7
- <div class="{{inline-switch teasersize '["sm"]' '["basis-2/3 md:flex-full"]'}} ">
7
+ <div class="{{inline-switch teasersize '["sm"]' '["basis-3/5 md:flex-full"]'}} ">
8
8
  <header class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
9
9
  {{> components/Teaser/Teaser-Heading headlineTag="h2" size=teasersize font=(inline-switch serifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]') headline=title topline=topline}}
10
10
  </header>
11
11
  <section class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
12
- <div class="hidden mt-2 text-base font-copy md:block">{{shorttext}}</div>
12
+ <div class="{{inline-switch teasersize '["xxl"]' '["","hidden md:block"]'}} mt-2 text-base font-copy">{{shorttext}}</div>
13
13
  {{#if profiles}}
14
14
  {{> components/Teaser/Byline text=profiles}}
15
15
  {{/if}}
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
8
8
  "repository": "https://github.com/szuelch/hr-design-system-handlebars",
9
- "version": "0.42.3",
9
+ "version": "0.42.4",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "start-storybook -p 6006 public",
@@ -1,15 +1,15 @@
1
1
  <article class="col-span-12 flex gap-y-4 gap-x-5 {{inline-switch teasersize '["sm","md","lg"]' '["px-5 md:px-0 md:col-span-3 flex-row md:flex-col","md:col-span-4 flex-col","md:col-span-6 flex-col","flex-col"]'}} ">
2
- <figure class="{{inline-switch teasersize '["sm"]' '["basis-1/3 md:flex-full"]'}} ">
2
+ <figure class="{{inline-switch teasersize '["sm"]' '["basis-2/5 md:flex-full"]'}} ">
3
3
  {{#>components/base/link _cssClasses="" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="mediaLink" }}
4
4
  {{~> components/base/image/responsiveImage this.content.teaserImage _type=this.content.teasertype _variant=this.content.imageVariant _noDelay=../_noDelay _addClassImg="ar__content mediaPlayerLoader__mediaplayerArea" ~}}
5
5
  {{/components/base/link}}
6
6
  </figure>
7
- <div class="{{inline-switch teasersize '["sm"]' '["basis-2/3 md:flex-full"]'}} ">
7
+ <div class="{{inline-switch teasersize '["sm"]' '["basis-3/5 md:flex-full"]'}} ">
8
8
  <header class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
9
9
  {{> components/Teaser/Teaser-Heading headlineTag="h2" size=teasersize font=(inline-switch serifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]') headline=title topline=topline}}
10
10
  </header>
11
11
  <section class="md:px-0 {{inline-switch teasersize '["sm"]' '["","px-5"]'}}">
12
- <div class="hidden mt-2 text-base font-copy md:block">{{shorttext}}</div>
12
+ <div class="{{inline-switch teasersize '["xxl"]' '["","hidden md:block"]'}} mt-2 text-base font-copy">{{shorttext}}</div>
13
13
  {{#if profiles}}
14
14
  {{> components/Teaser/Byline text=profiles}}
15
15
  {{/if}}
@@ -116,12 +116,12 @@
116
116
  {
117
117
  "media": "all and (min-width: 43.750em) and (max-width: 63.938em)",
118
118
  "sizes": "100vw",
119
- "srcset": "https://picsum.photos/id/188/320/140 320w, https://picsum.photos/id/188/480/210 480w, https://picsum.photos/id/188/992/434 992w, https://picsum.photos/id/188/1920/840 1920w"
119
+ "srcset": "https://picsum.photos/id/188/320/180 320w, https://picsum.photos/id/188/480/270 480w, https://picsum.photos/id/188/640/360 640w, https://picsum.photos/id/188/960/540 960w"
120
120
  },
121
121
  {
122
122
  "media": "all and (min-width: 64em)",
123
123
  "sizes": "960px",
124
- "srcset": "https://picsum.photos/id/188/320/140 320w, https://picsum.photos/id/188/480/210 480w, https://picsum.photos/id/188/992/434 992w, https://picsum.photos/id/188/1920/840 1920w"
124
+ "srcset": "https://picsum.photos/id/188/320/180 320w, https://picsum.photos/id/188/480/270 480w, https://picsum.photos/id/188/640/360 640w, https://picsum.photos/id/188/960/540 960w"
125
125
  }
126
126
  ]
127
127
  }
@@ -37,7 +37,8 @@ module.exports = {
37
37
  },
38
38
 
39
39
  extend: {
40
- fontSize: {
40
+ fontSize: {
41
+ 'lg':['1.125rem', '1.5rem'],
41
42
  '2xl':['1.375rem', '2rem'],
42
43
  '4xl':['2.125rem', '2.25rem'],
43
44
  },