northants-design-system 0.3.14 → 0.3.15
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/build/index.esm.js +22 -1
- package/build/index.esm.js.map +1 -1
- package/build/index.js +22 -1
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +16661 -21481
- package/build/index.mjs.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -21319,9 +21319,30 @@ const Container$D = styled.figure`
|
|
|
21319
21319
|
}
|
|
21320
21320
|
`;
|
|
21321
21321
|
|
|
21322
|
+
const imageRatio = (props) => {
|
|
21323
|
+
switch (props.ratio) {
|
|
21324
|
+
case '4by3':
|
|
21325
|
+
return css`
|
|
21326
|
+
padding-top: 75%;
|
|
21327
|
+
`;
|
|
21328
|
+
case '4by1':
|
|
21329
|
+
return css`
|
|
21330
|
+
padding-top: 25%;
|
|
21331
|
+
`;
|
|
21332
|
+
case '16by9':
|
|
21333
|
+
return css`
|
|
21334
|
+
padding-top: 56.25%;
|
|
21335
|
+
`;
|
|
21336
|
+
default:
|
|
21337
|
+
return css`
|
|
21338
|
+
padding-top: 56.25%;
|
|
21339
|
+
`;
|
|
21340
|
+
}
|
|
21341
|
+
};
|
|
21342
|
+
|
|
21322
21343
|
const ImageContainer$4 = styled.div`
|
|
21323
21344
|
position: relative;
|
|
21324
|
-
|
|
21345
|
+
${imageRatio}
|
|
21325
21346
|
`;
|
|
21326
21347
|
|
|
21327
21348
|
const Image$3 = styled.img`
|