@ndla/primitives 0.0.21 → 0.0.22

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.
@@ -327,7 +327,7 @@
327
327
  "backgroundColor]___[value:surface.brand.2.subtle",
328
328
  "height]___[value:350px",
329
329
  "zIndex]___[value:hide",
330
- "clipPath]___[value:polygon(0 0, 100% 0, 100% 65%, 0 100%)",
330
+ "clipPath]___[value:polygon(0 0, 100% 0, 100% calc(100% - 5vw), 0 100%)",
331
331
  "position]___[value:absolute",
332
332
  "background]___[value:primary",
333
333
  "background]___[value:blue.800",
package/dist/styles.css CHANGED
@@ -552,9 +552,9 @@
552
552
  z-index: var(--z-index-hide);
553
553
  }
554
554
 
555
- .cp-path_polygon\(0_0\,_100\%_0\,_100\%_65\%\,_0_100\%\) {
556
- clip-path: polygon(0 0, 100% 0, 100% 65%, 0 100%);
557
- -webkit-clip-path: polygon(0 0, 100% 0, 100% 65%, 0 100%);
555
+ .cp-path_polygon\(0_0\,_100\%_0\,_100\%_calc\(100\%_-_5vw\)\,_0_100\%\) {
556
+ clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5vw), 0 100%);
557
+ -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5vw), 0 100%);
558
558
  }
559
559
 
560
560
  .pos_absolute {
@@ -47,6 +47,7 @@ export const FramedContent = /*#__PURE__*/forwardRef((_ref, ref) => {
47
47
  ...props
48
48
  } = _ref;
49
49
  return /*#__PURE__*/_jsx(StyledFramedContent, {
50
+ "data-embed-type": "framed-content",
50
51
  css: css.raw(framedContentRecipe.raw({
51
52
  colorTheme
52
53
  }), cssProp),
package/es/Hero.js CHANGED
@@ -22,7 +22,7 @@ const heroRecipe = sva({
22
22
  width: "100%",
23
23
  zIndex: "hide",
24
24
  overflow: "hidden",
25
- clipPath: "polygon(0 0, 100% 0, 100% 65%, 0 100%)"
25
+ clipPath: "polygon(0 0, 100% 0, 100% calc(100% - 5vw), 0 100%)"
26
26
  },
27
27
  content: {
28
28
  display: "flex",
@@ -53,6 +53,7 @@ const FramedContent = exports.FramedContent = /*#__PURE__*/(0, _react.forwardRef
53
53
  ...props
54
54
  } = _ref;
55
55
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledFramedContent, {
56
+ "data-embed-type": "framed-content",
56
57
  css: _css.css.raw(framedContentRecipe.raw({
57
58
  colorTheme
58
59
  }), cssProp),
package/lib/Hero.js CHANGED
@@ -28,7 +28,7 @@ const heroRecipe = (0, _css.sva)({
28
28
  width: "100%",
29
29
  zIndex: "hide",
30
30
  overflow: "hidden",
31
- clipPath: "polygon(0 0, 100% 0, 100% 65%, 0 100%)"
31
+ clipPath: "polygon(0 0, 100% 0, 100% calc(100% - 5vw), 0 100%)"
32
32
  },
33
33
  content: {
34
34
  display: "flex",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/primitives",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "description": "Primitive components for NDLA.",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -43,5 +43,5 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "gitHead": "a5f4f60d7a65d6f0aa91e357e080584cda8a70f3"
46
+ "gitHead": "cbe8d6b48a44da4dd99d66bd5cda517622da2859"
47
47
  }