@laerdal/life-react-components 0.0.280-dev.3 → 0.0.280-dev.7

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 (33) hide show
  1. package/dist/esm/Banners/Banner.js +107 -52
  2. package/dist/esm/Banners/Banner.js.map +1 -1
  3. package/dist/esm/Banners/styles.js +122 -0
  4. package/dist/esm/Banners/styles.js.map +1 -0
  5. package/dist/esm/Footer/Components/FooterNewsletterAndSocialSection.js +36 -15
  6. package/dist/esm/Footer/Components/FooterNewsletterAndSocialSection.js.map +1 -1
  7. package/dist/esm/InputFields/styling.js +7 -1
  8. package/dist/esm/InputFields/styling.js.map +1 -1
  9. package/dist/esm/styles/typography.js +61 -22
  10. package/dist/esm/styles/typography.js.map +1 -1
  11. package/dist/js/Banners/Banner.d.ts +2 -0
  12. package/dist/js/Banners/Banner.js +74 -41
  13. package/dist/js/Banners/Banner.js.map +1 -1
  14. package/dist/js/Banners/styles.d.ts +1 -0
  15. package/dist/js/Banners/styles.js +33 -0
  16. package/dist/js/Banners/styles.js.map +1 -0
  17. package/dist/js/Footer/Components/FooterNewsletterAndSocialSection.js +18 -4
  18. package/dist/js/Footer/Components/FooterNewsletterAndSocialSection.js.map +1 -1
  19. package/dist/js/InputFields/styling.js +2 -2
  20. package/dist/js/InputFields/styling.js.map +1 -1
  21. package/dist/js/styles/typography.js +75 -67
  22. package/dist/js/styles/typography.js.map +1 -1
  23. package/dist/umd/Banners/Banner.js +109 -55
  24. package/dist/umd/Banners/Banner.js.map +1 -1
  25. package/dist/umd/Banners/styles.js +141 -0
  26. package/dist/umd/Banners/styles.js.map +1 -0
  27. package/dist/umd/Footer/Components/FooterNewsletterAndSocialSection.js +39 -19
  28. package/dist/umd/Footer/Components/FooterNewsletterAndSocialSection.js.map +1 -1
  29. package/dist/umd/InputFields/styling.js +7 -1
  30. package/dist/umd/InputFields/styling.js.map +1 -1
  31. package/dist/umd/styles/typography.js +64 -25
  32. package/dist/umd/styles/typography.js.map +1 -1
  33. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/Banners/styles.tsx"],"names":["getButtonStyle","type","css","COLORS","warning_500","warning_200","warning_700","warning_300","warning_800","critical_600","critical_200","critical_700","critical_300","critical_800","correct_500","correct_200","correct_700","correct_300","correct_800","primary_500","primary_200","primary_700","primary_300","primary_800"],"mappings":";;;;;;;AAAA;;AACA;;;;;;AAEO,IAAMA,cAAc,GAAG,SAAjBA,cAAiB,CAACC,IAAD,EAAkB;AAC9C,UAAQA,IAAR;AACE,SAAK,SAAL;AACE,iBAAOC,qBAAP,kmBAMYC,eAAOC,WANnB,EAU0BD,eAAOE,WAVjC,EAccF,eAAOG,WAdrB,EAmBoBH,eAAOI,WAnB3B,EAuBcJ,eAAOK,WAvBrB;;AA2BF,SAAK,UAAL;AACE,iBAAON,qBAAP,omBAMYC,eAAOM,YANnB,EAU0BN,eAAOO,YAVjC,EAccP,eAAOQ,YAdrB,EAmBoBR,eAAOS,YAnB3B,EAuBcT,eAAOU,YAvBrB;;AA2BF,SAAK,UAAL;AACE,iBAAOX,qBAAP,omBAMYC,eAAOW,WANnB,EAU0BX,eAAOY,WAVjC,EAccZ,eAAOa,WAdrB,EAmBoBb,eAAOc,WAnB3B,EAuBcd,eAAOe,WAvBrB;;AA2BF;AACE,iBAAOhB,qBAAP,omBAMYC,eAAOgB,WANnB,EAU0BhB,eAAOiB,WAVjC,EAccjB,eAAOkB,WAdrB,EAmBoBlB,eAAOmB,WAnB3B,EAuBcnB,eAAOoB,WAvBrB;AAtFJ;AAkHD,CAnHM","sourcesContent":["import { css } from 'styled-components';\nimport { COLORS } from '../styles';\n\nexport const getButtonStyle = (type: string) => {\n switch (type) {\n case 'warning':\n return css`\n div {\n background-color: transparent;\n }\n div svg path,\n div svg {\n fill: ${COLORS.warning_500};\n }\n &:hover:not(:disabled) {\n div {\n background-color: ${COLORS.warning_200};\n }\n div svg path,\n div svg {\n fill: ${COLORS.warning_700};\n }\n }\n &:active:not(:disabled) {\n div {\n background: ${COLORS.warning_300};\n }\n div svg path,\n div svg {\n fill: ${COLORS.warning_800};\n }\n }\n `;\n case 'critical':\n return css`\n div {\n background-color: transparent;\n }\n div svg path,\n div svg {\n fill: ${COLORS.critical_600};\n }\n &:hover:not(:disabled) {\n div {\n background-color: ${COLORS.critical_200};\n }\n div svg path,\n div svg {\n fill: ${COLORS.critical_700};\n }\n }\n &:active:not(:disabled) {\n div {\n background: ${COLORS.critical_300};\n }\n div svg path,\n div svg {\n fill: ${COLORS.critical_800};\n }\n }\n `;\n case 'positive':\n return css`\n div {\n background-color: transparent;\n }\n div svg path,\n div svg {\n fill: ${COLORS.correct_500};\n }\n &:hover:not(:disabled) {\n div {\n background-color: ${COLORS.correct_200};\n }\n div svg path,\n div svg {\n fill: ${COLORS.correct_700};\n }\n }\n &:active:not(:disabled) {\n div {\n background: ${COLORS.correct_300};\n }\n div svg path,\n div svg {\n fill: ${COLORS.correct_800};\n }\n }\n `;\n default:\n return css`\n div {\n background-color: transparent;\n }\n div svg path,\n div svg {\n fill: ${COLORS.primary_500};\n }\n &:hover:not(:disabled) {\n div {\n background-color: ${COLORS.primary_200};\n }\n div svg path,\n div svg {\n fill: ${COLORS.primary_700};\n }\n }\n &:active:not(:disabled) {\n div {\n background: ${COLORS.primary_300};\n }\n div svg path,\n div svg {\n fill: ${COLORS.primary_800};\n }\n }\n `;\n }\n};\n"],"file":"styles.js"}
@@ -19,6 +19,8 @@ var _InputFields = require("../../InputFields");
19
19
 
20
20
  var _SystemIcons = require("../../icons/systemicons/SystemIcons");
21
21
 
22
+ var _Button = require("../../Button");
23
+
22
24
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
23
25
 
24
26
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -51,7 +53,7 @@ var NewsletterButton = _styledComponents.default.button(_templateObject4 || (_te
51
53
 
52
54
  var SocialMedia = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n color: ", ";\n margin: 0 auto;\n\n button div {\n box-sizing: border-box;\n border-radius: 4px;\n }\n\n h4 {\n margin-top: 16px;\n margin-bottom: 8px;\n font-weight: normal;\n font-size: 16px;\n }\n\n ", " {\n margin: 0 0 0 auto;\n button {\n margin: 0 0 0 12px;\n }\n }\n"])), _styles.COLORS.white, _styles.BREAKPOINTS.MEDIUM);
53
55
 
54
- var SocialMediaButtons = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n\n a {\n display: flex;\n width: 32px;\n height: 32px;\n background-color: transparent;\n color: ", ";\n margin: 0 0 0 20px;\n border-radius: 4px;\n\n &:first-child {\n margin: 0;\n }\n svg {\n margin: auto;\n }\n &:hover {\n background-color: ", ";\n color: ", ";\n cursor: pointer;\n }\n &:active {\n background-color: ", ";\n color: ", ";\n cursor: pointer;\n }\n &:focus {\n background-color: ", ";\n color: ", ";\n box-shadow: 0px 4px 12px rgba(46, 127, 161, 0.25), 0px 0px 8px #2e7fa1;\n outline: none;\n }\n }\n\n ", " {\n justify-content: flex-end;\n }\n"])), _styles.COLORS.white, _styles.COLORS.white, _styles.COLORS.neutral_600, _styles.COLORS.primary_800, _styles.COLORS.primary_100, _styles.COLORS.white, _styles.COLORS.neutral_600, _styles.BREAKPOINTS.MEDIUM);
56
+ var SocialMediaButtons = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n\n button div {\n display: flex;\n background-color: transparent;\n color: ", ";\n margin: 0 0 0 20px;\n\n svg {\n fill: ", ";\n path {\n fill: ", ";\n }\n }\n\n &:first-child {\n margin: 0;\n }\n &:hover {\n background-color: ", ";\n color: ", ";\n }\n &:active {\n background-color: ", ";\n color: ", ";\n }\n }\n a {\n &:focus {\n outline: none;\n div {\n background-color: ", ";\n color: ", ";\n outline: none;\n box-shadow: 0px 0px 8px ", ", 0px 4px 12px rgba(46, 127, 161, 0.25);\n }\n div svg path,\n div svg {\n fill: ", ";\n }\n }\n }\n\n ", " {\n justify-content: flex-end;\n }\n"])), _styles.COLORS.white, _styles.COLORS.white, _styles.COLORS.white, _styles.COLORS.white, _styles.COLORS.neutral_600, _styles.COLORS.primary_800, _styles.COLORS.primary_100, _styles.COLORS.white, _styles.COLORS.neutral_600, _styles.COLORS.primary_500, _styles.COLORS.neutral_600, _styles.BREAKPOINTS.MEDIUM);
55
57
 
56
58
  var FooterNewsletterAndSocialSection = function FooterNewsletterAndSocialSection(_ref) {
57
59
  var actionOnNewsletterSignup = _ref.actionOnNewsletterSignup,
@@ -80,17 +82,29 @@ var FooterNewsletterAndSocialSection = function FooterNewsletterAndSocialSection
80
82
  href: "https://www.facebook.com/LaerdalMedical/",
81
83
  target: "_blank",
82
84
  rel: "noreferrer noopener"
83
- }, /*#__PURE__*/React.createElement(_SystemIcons.Facebook, null)), /*#__PURE__*/React.createElement("a", {
85
+ }, /*#__PURE__*/React.createElement(_Button.IconButton, {
86
+ variant: "secondary",
87
+ action: function action() {},
88
+ tabIndex: -1
89
+ }, /*#__PURE__*/React.createElement(_SystemIcons.Facebook, null))), /*#__PURE__*/React.createElement("a", {
84
90
  key: "socialmedia_".concat(Math.floor(Math.random() * 999999999999)),
85
91
  href: "https://twitter.com/laerdalmedical",
86
92
  target: "_blank",
87
93
  rel: "noreferrer noopener"
88
- }, /*#__PURE__*/React.createElement(_SystemIcons.Twitter, null)), /*#__PURE__*/React.createElement("a", {
94
+ }, /*#__PURE__*/React.createElement(_Button.IconButton, {
95
+ variant: "secondary",
96
+ action: function action() {},
97
+ tabIndex: -1
98
+ }, /*#__PURE__*/React.createElement(_SystemIcons.Twitter, null))), /*#__PURE__*/React.createElement("a", {
89
99
  key: "socialmedia_".concat(Math.floor(Math.random() * 999999999999)),
90
100
  href: "https://www.youtube.com/user/LaerdalMedical",
91
101
  target: "_blank",
92
102
  rel: "noreferrer noopener"
93
- }, /*#__PURE__*/React.createElement(_SystemIcons.Youtube, null)))));
103
+ }, /*#__PURE__*/React.createElement(_Button.IconButton, {
104
+ variant: "secondary",
105
+ action: function action() {},
106
+ tabIndex: -1
107
+ }, /*#__PURE__*/React.createElement(_SystemIcons.Youtube, null))))));
94
108
  };
95
109
 
96
110
  FooterNewsletterAndSocialSection.propTypes = {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/Footer/Components/FooterNewsletterAndSocialSection.tsx"],"names":["NewsletterAndSocial","styled","section","BREAKPOINTS","MEDIUM","NewsletterEmailSection","div","COLORS","white","NewsletterEmail","NewsletterButton","button","SocialMedia","SocialMediaButtons","neutral_600","primary_800","primary_100","FooterNewsletterAndSocialSection","actionOnNewsletterSignup","newsletterLabel","placeholderEmail","React","useState","emailInput","setEmailInput","value","e","target","Math","floor","random"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,mBAAmB,GAAGC,0BAAOC,OAAV,wLAKrBC,oBAAYC,MALS,CAAzB;;AAUA,IAAMC,sBAAsB,GAAGJ,0BAAOK,GAAV,wfAIxBH,oBAAYC,MAJY,EAUfG,eAAOC,KAVQ,EAoBtBL,oBAAYC,MApBU,CAA5B;;AA8BA,IAAMK,eAAe,GAAGR,0BAAOK,GAAV,0OAMjBH,oBAAYC,MANK,CAArB;;AAYA,IAAMM,gBAAgB,GAAGT,0BAAOU,MAAV,mdAEXJ,eAAOC,KAFI,EAKAD,eAAOC,KALP,EAelBL,oBAAYC,MAfM,CAAtB;;AAyBA,IAAMQ,WAAW,GAAGX,0BAAOK,GAAV,mYACNC,eAAOC,KADD,EAgBbL,oBAAYC,MAhBC,CAAjB;;AAwBA,IAAMS,kBAA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,GAAG,EAAC;AAAvI,kBACE,oBAAC,qBAAD,OADF,CADF,eAIE;AAAG,IAAA,GAAG,wBAAiBF,IAAI,CAACC,KAAL,CAAWD,IAAI,CAACE,MAAL,KAAgB,YAA3B,CAAjB,CAAN;AAAmE,IAAA,IAAI,EAAC,oCAAxE;AAA6G,IAAA,MAAM,EAAC,QAApH;AAA6H,IAAA,GAAG,EAAC;AAAjI,kBACE,oBAAC,oBAAD,OADF,CAJF,eAOE;AAAG,IAAA,GAAG,wBAAiBF,IAAI,CAACC,KAAL,CAAWD,IAAI,CAACE,MAAL,KAAgB,YAA3B,CAAjB,CAAN;AAAmE,IAAA,IAAI,EAAC,6CAAxE;AAAsH,IAAA,MAAM,EAAC,QAA7H;AAAsI,IAAA,GAAG,EAAC;AAA1I,kBACE,oBAAC,oBAAD,OADF,CAPF,CAFF,CARF,CADF;AAyBD,CA3BD;;;AALEZ,EAAAA,wB;AACAC,EAAAA,e;AACAC,EAAAA,gB;;eAgCaH,gC","sourcesContent":["import * as React from 'react';\nimport styled from 'styled-components';\n\nimport { BREAKPOINTS, COLORS } from '../../styles';\nimport { TextField } from '../../InputFields';\nimport { Facebook, Twitter, Youtube } from '../../icons/systemicons/SystemIcons';\n\nconst NewsletterAndSocial = styled.section`\n display: flex;\n flex-direction: column;\n margin-bottom: 16px;\n\n ${BREAKPOINTS.MEDIUM} {\n flex-direction: row;\n }\n`;\n\nconst NewsletterEmailSection = styled.div`\n width: 100%;\n margin: 16px auto 0 auto;\n\n ${BREAKPOINTS.MEDIUM} {\n width: 60%;\n margin: 16px 0 0 0;\n }\n\n label {\n color: ${COLORS.white};\n font-family: Lato;\n font-style: normal;\n font-weight: normal;\n font-size: 16px;\n line-height: 120%;\n margin-bottom: 2px;\n }\n div div {\n width: 100%;\n ${BREAKPOINTS.MEDIUM} {\n width: calc(100% - 82px);\n width: 288px;\n }\n }\n input {\n height: 48px;\n }\n`;\n\nconst NewsletterEmail = styled.div`\n display: flex;\n flex-direction: column;\n margin-top: 2px;\n margin: 2px auto 0 auto;\n\n ${BREAKPOINTS.MEDIUM} {\n margin: 2px 0 0 0;\n flex-direction: row;\n }\n`;\n\nconst NewsletterButton = styled.button`\n background: transparent;\n color: ${COLORS.white};\n width: 100%;\n height: 40px;\n border: 2px solid ${COLORS.white};\n box-sizing: border-box;\n border-radius: 8px;\n margin: 8px 0 4px 0;\n font-family: Lato;\n font-style: normal;\n font-weight: bold;\n font-size: 19px;\n line-height: 23px;\n\n ${BREAKPOINTS.MEDIUM} {\n width: 94px;\n margin: auto 0 4px 8px;\n }\n\n &:hover {\n cursor: pointer;\n }\n`;\n\nconst SocialMedia = styled.div`\n color: ${COLORS.white};\n margin: 0 auto;\n\n button div {\n box-sizing: border-box;\n border-radius: 4px;\n }\n\n h4 {\n margin-top: 16px;\n margin-bottom: 8px;\n font-weight: normal;\n font-size: 16px;\n }\n\n ${BREAKPOINTS.MEDIUM} {\n margin: 0 0 0 auto;\n button {\n margin: 0 0 0 12px;\n }\n }\n`;\n\nconst SocialMediaButtons = styled.div`\n display: flex;\n justify-content: center;\n\n a {\n display: flex;\n width: 32px;\n height: 32px;\n background-color: transparent;\n color: ${COLORS.white};\n margin: 0 0 0 20px;\n border-radius: 4px;\n\n &:first-child {\n margin: 0;\n }\n svg {\n margin: auto;\n }\n &:hover {\n background-color: ${COLORS.white};\n color: ${COLORS.neutral_600};\n cursor: pointer;\n }\n &:active {\n background-color: ${COLORS.primary_800};\n color: ${COLORS.primary_100};\n cursor: pointer;\n }\n &:focus {\n background-color: ${COLORS.white};\n color: ${COLORS.neutral_600};\n box-shadow: 0px 4px 12px rgba(46, 127, 161, 0.25), 0px 0px 8px #2e7fa1;\n outline: none;\n }\n }\n\n ${BREAKPOINTS.MEDIUM} {\n justify-content: flex-end;\n }\n`;\n\ninterface FooterNewsletterAndSocialSection {\n actionOnNewsletterSignup?: (email: string) => void;\n newsletterLabel: string;\n placeholderEmail?: string;\n}\n\nconst FooterNewsletterAndSocialSection = ({ actionOnNewsletterSignup, newsletterLabel, placeholderEmail }: FooterNewsletterAndSocialSection) => {\n const [emailInput, setEmailInput] = React.useState<string>('');\n return (\n <NewsletterAndSocial>\n <NewsletterEmailSection>\n <label>{newsletterLabel}</label>\n <NewsletterEmail>\n <TextField id=\"NewsletterEmail\" withoutBorder={true} placeholder={placeholderEmail} value={emailInput} onChange={(value: string) => setEmailInput(value)} />\n <NewsletterButton onClick={(e: any) => actionOnNewsletterSignup && actionOnNewsletterSignup(e.target.value)}>Sign up</NewsletterButton>\n </NewsletterEmail>\n </NewsletterEmailSection>\n <SocialMedia>\n <h4>Follow us on social media</h4>\n <SocialMediaButtons>\n <a key={`socialmedia_${Math.floor(Math.random() * 999999999999)}`} href=\"https://www.facebook.com/LaerdalMedical/\" target=\"_blank\" rel=\"noreferrer noopener\">\n <Facebook />\n </a>\n <a key={`socialmedia_${Math.floor(Math.random() * 999999999999)}`} href=\"https://twitter.com/laerdalmedical\" target=\"_blank\" rel=\"noreferrer noopener\">\n <Twitter />\n </a>\n <a key={`socialmedia_${Math.floor(Math.random() * 999999999999)}`} href=\"https://www.youtube.com/user/LaerdalMedical\" target=\"_blank\" rel=\"noreferrer noopener\">\n <Youtube />\n </a>\n </SocialMediaButtons>\n </SocialMedia>\n </NewsletterAndSocial>\n );\n};\n\nexport default FooterNewsletterAndSocialSection;\n"],"file":"FooterNewsletterAndSocialSection.js"}
1
+ {"version":3,"sources":["../../../../src/Footer/Components/FooterNewsletterAndSocialSection.tsx"],"names":["NewsletterAndSocial","styled","section","BREAKPOINTS","MEDIUM","NewsletterEmailSection","div","COLORS","white","NewsletterEmail","NewsletterButton","button","SocialMedia","SocialMediaButtons","neutral_600","primary_800","primary_100","primary_500","FooterNewsletterAndSocialSection","actionOnNewsletterSignup","newsletterLabel","placeholderEmail","React","useState","emailInput","setEmailInput","value","e","target","Math","floor","random"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;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,KAAgB,YAA3B,CAAjB,CAAN;AAAmE,IAAA,IAAI,EAAC,6CAAxE;AAAsH,IAAA,MAAM,EAAC,QAA7H;AAAsI,IAAA,GAAG,EAAC;AAA1I,kBACE,oBAAC,kBAAD;AAAY,IAAA,OAAO,EAAC,WAApB;AAAgC,IAAA,MAAM,EAAE,kBAAM,CAAE,CAAhD;AAAkD,IAAA,QAAQ,EAAE,CAAC;AAA7D,kBACE,oBAAC,oBAAD,OADF,CADF,CAXF,CAFF,CARF,CADF;AA+BD,CAjCD;;;AALEZ,EAAAA,wB;AACAC,EAAAA,e;AACAC,EAAAA,gB;;eAsCaH,gC","sourcesContent":["import * as React from 'react';\nimport styled from 'styled-components';\n\nimport { BREAKPOINTS, COLORS } from '../../styles';\nimport { TextField } from '../../InputFields';\nimport { Facebook, Twitter, Youtube } from '../../icons/systemicons/SystemIcons';\nimport { IconButton } from '../../Button';\n\nconst NewsletterAndSocial = styled.section`\n display: flex;\n flex-direction: column;\n margin-bottom: 16px;\n\n ${BREAKPOINTS.MEDIUM} {\n flex-direction: row;\n }\n`;\n\nconst NewsletterEmailSection = styled.div`\n width: 100%;\n margin: 16px auto 0 auto;\n\n ${BREAKPOINTS.MEDIUM} {\n width: 60%;\n margin: 16px 0 0 0;\n }\n\n label {\n color: ${COLORS.white};\n font-family: Lato;\n font-style: normal;\n font-weight: normal;\n font-size: 16px;\n line-height: 120%;\n margin-bottom: 2px;\n }\n div div {\n width: 100%;\n ${BREAKPOINTS.MEDIUM} {\n width: calc(100% - 82px);\n width: 288px;\n }\n }\n input {\n height: 48px;\n }\n`;\n\nconst NewsletterEmail = styled.div`\n display: flex;\n flex-direction: column;\n margin-top: 2px;\n margin: 2px auto 0 auto;\n\n ${BREAKPOINTS.MEDIUM} {\n margin: 2px 0 0 0;\n flex-direction: row;\n }\n`;\n\nconst NewsletterButton = styled.button`\n background: transparent;\n color: ${COLORS.white};\n width: 100%;\n height: 40px;\n border: 2px solid ${COLORS.white};\n box-sizing: border-box;\n border-radius: 8px;\n margin: 8px 0 4px 0;\n font-family: Lato;\n font-style: normal;\n font-weight: bold;\n font-size: 19px;\n line-height: 23px;\n\n ${BREAKPOINTS.MEDIUM} {\n width: 94px;\n margin: auto 0 4px 8px;\n }\n\n &:hover {\n cursor: pointer;\n }\n`;\n\nconst SocialMedia = styled.div`\n color: ${COLORS.white};\n margin: 0 auto;\n\n button div {\n box-sizing: border-box;\n border-radius: 4px;\n }\n\n h4 {\n margin-top: 16px;\n margin-bottom: 8px;\n font-weight: normal;\n font-size: 16px;\n }\n\n ${BREAKPOINTS.MEDIUM} {\n margin: 0 0 0 auto;\n button {\n margin: 0 0 0 12px;\n }\n }\n`;\n\nconst SocialMediaButtons = styled.div`\n display: flex;\n justify-content: center;\n\n button div {\n display: flex;\n background-color: transparent;\n color: ${COLORS.white};\n margin: 0 0 0 20px;\n\n svg {\n fill: ${COLORS.white};\n path {\n fill: ${COLORS.white};\n }\n }\n\n &:first-child {\n margin: 0;\n }\n &:hover {\n background-color: ${COLORS.white};\n color: ${COLORS.neutral_600};\n }\n &:active {\n background-color: ${COLORS.primary_800};\n color: ${COLORS.primary_100};\n }\n }\n a {\n &:focus {\n outline: none;\n div {\n background-color: ${COLORS.white};\n color: ${COLORS.neutral_600};\n outline: none;\n box-shadow: 0px 0px 8px ${COLORS.primary_500}, 0px 4px 12px rgba(46, 127, 161, 0.25);\n }\n div svg path,\n div svg {\n fill: ${COLORS.neutral_600};\n }\n }\n }\n\n ${BREAKPOINTS.MEDIUM} {\n justify-content: flex-end;\n }\n`;\n\ninterface FooterNewsletterAndSocialSection {\n actionOnNewsletterSignup?: (email: string) => void;\n newsletterLabel: string;\n placeholderEmail?: string;\n}\n\nconst FooterNewsletterAndSocialSection = ({ actionOnNewsletterSignup, newsletterLabel, placeholderEmail }: FooterNewsletterAndSocialSection) => {\n const [emailInput, setEmailInput] = React.useState<string>('');\n return (\n <NewsletterAndSocial>\n <NewsletterEmailSection>\n <label>{newsletterLabel}</label>\n <NewsletterEmail>\n <TextField id=\"NewsletterEmail\" withoutBorder={true} placeholder={placeholderEmail} value={emailInput} onChange={(value: string) => setEmailInput(value)} />\n <NewsletterButton onClick={(e: any) => actionOnNewsletterSignup && actionOnNewsletterSignup(e.target.value)}>Sign up</NewsletterButton>\n </NewsletterEmail>\n </NewsletterEmailSection>\n <SocialMedia>\n <h4>Follow us on social media</h4>\n <SocialMediaButtons>\n <a key={`socialmedia_${Math.floor(Math.random() * 999999999999)}`} href=\"https://www.facebook.com/LaerdalMedical/\" target=\"_blank\" rel=\"noreferrer noopener\">\n <IconButton variant=\"secondary\" action={() => {}} tabIndex={-1}>\n <Facebook />\n </IconButton>\n </a>\n <a key={`socialmedia_${Math.floor(Math.random() * 999999999999)}`} href=\"https://twitter.com/laerdalmedical\" target=\"_blank\" rel=\"noreferrer noopener\">\n <IconButton variant=\"secondary\" action={() => {}} tabIndex={-1}>\n <Twitter />\n </IconButton>\n </a>\n <a key={`socialmedia_${Math.floor(Math.random() * 999999999999)}`} href=\"https://www.youtube.com/user/LaerdalMedical\" target=\"_blank\" rel=\"noreferrer noopener\">\n <IconButton variant=\"secondary\" action={() => {}} tabIndex={-1}>\n <Youtube />\n </IconButton>\n </a>\n </SocialMediaButtons>\n </SocialMedia>\n </NewsletterAndSocial>\n );\n};\n\nexport default FooterNewsletterAndSocialSection;\n"],"file":"FooterNewsletterAndSocialSection.js"}
@@ -34,8 +34,8 @@ var activeCorrectInput = (0, _styledComponents.css)(_templateObject5 || (_templa
34
34
  var tabbedHereStyle = (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n outline: none;\n box-shadow: 0px 4px 12px rgba(46, 127, 161, 0.25), 0px 0px 8px #2e7fa1 !important;\n"])));
35
35
  exports.tabbedHereStyle = tabbedHereStyle;
36
36
 
37
- var InputFieldStyling = _styledComponents.default.input(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n height: 48px;\n width: 100%;\n border-radius: 4px;\n border: 2px solid transparent;\n box-shadow: ", ";\n background-color: #fff;\n box-sizing: border-box;\n padding: 0 16px !important;\n\n box-sizing: border-box;\n width: 100%;\n outline: none;\n border-radius: 4.5px;\n\n font-size: 16px;\n\n &::placeholder {\n font-family: 'Lato', sans-serif;\n font-style: italic;\n font-weight: normal;\n font-size: 16px;\n color: ", ";\n }\n\n ", "{ \n font-size: 18px;\n line-height: 18px;\n height: 56px;\n padding: 0 16px !important;\n\n &::placeholder {\n font-size: 18px;\n }\n }\n\n &.small {\n font-size: 16px;\n height: 48px; \n &::placeholder {\n font-size: 16px;\n }\n }\n &.medium {\n font-size: 18px;\n height: 56px; \n &::placeholder {\n font-size: 18px;\n }\n }\n\n\n color: ", " !important;\n\n ", "\n ", "\n ", "\n ", "\n ", "\n\n &:disabled {\n border: 1px solid ", ";\n pointer-events: none;\n box-shadow: none !important;\n outline: none;\n cursor: not-allowed;\n color: ", " !important;\n }\n &:focus {\n -webkit-box-shadow: inset 0px 0px 0px 2px ", ";\n -moz-box-shadow: inset 0px 0px 0px 2px ", ";\n box-shadow: inset 0px 0px 0px 2px ", ";\n }\n\n &.error {\n border-radius: 4px;\n border-style: solid;\n border-width: 2px;\n border-color: #e97116;\n padding: 0 15px !important;\n }\n\n &:not(.placeholder) {\n line-height: 40px;\n }\n\n &.error {\n margin-bottom: 0 !important;\n }\n\n &:hover {\n -webkit-box-shadow: inset 0px 0px 0px 2px ", ";\n -moz-box-shadow: inset 0px 0px 0px 2px ", ";\n box-shadow: inset 0px 0px 0px 2px ", ";\n }\n\n &.active {\n -webkit-box-shadow: inset 0px 0px 0px 2px ", ";\n -moz-box-shadow: inset 0px 0px 0px 2px ", ";\n box-shadow: inset 0px 0px 0px 2px ", ";\n }\n\n &.show-checkmark.valid {\n background-image: none;\n }\n\n &.show-checkmark.pending {\n background-image: none;\n }\n"])), function (props) {
38
- return props.withoutBorder ? 'none' : "inset 0px 0px 0px 1px ".concat(_styles.COLORS.neutral_300);
37
+ var InputFieldStyling = _styledComponents.default.input(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n height: 48px;\n width: 100%;\n border-radius: 4px;\n border: 2px solid transparent;\n -webkit-appearance: none;\n ", "\n background-color: #fff;\n box-sizing: border-box;\n padding: 0 16px !important;\n\n box-sizing: border-box;\n width: 100%;\n outline: none;\n border-radius: 4.5px;\n\n font-size: 16px;\n\n &::placeholder {\n font-family: 'Lato', sans-serif;\n font-style: italic;\n font-weight: normal;\n font-size: 16px;\n color: ", ";\n }\n\n ", "{ \n font-size: 18px;\n line-height: 18px;\n height: 56px;\n padding: 0 16px !important;\n\n &::placeholder {\n font-size: 18px;\n }\n }\n\n &.small {\n font-size: 16px;\n height: 48px; \n &::placeholder {\n font-size: 16px;\n }\n }\n &.medium {\n font-size: 18px;\n height: 56px; \n &::placeholder {\n font-size: 18px;\n }\n }\n\n\n color: ", " !important;\n\n ", "\n ", "\n ", "\n ", "\n ", "\n\n &:disabled {\n border: 1px solid ", ";\n pointer-events: none;\n box-shadow: none !important;\n outline: none;\n cursor: not-allowed;\n color: ", " !important;\n }\n &:focus {\n -webkit-box-shadow: inset 0px 0px 0px 2px ", ";\n -moz-box-shadow: inset 0px 0px 0px 2px ", ";\n box-shadow: inset 0px 0px 0px 2px ", ";\n }\n\n &.error {\n border-radius: 4px;\n border-style: solid;\n border-width: 2px;\n border-color: #e97116;\n padding: 0 15px !important;\n }\n\n &:not(.placeholder) {\n line-height: 40px;\n }\n\n &.error {\n margin-bottom: 0 !important;\n }\n\n &:hover {\n -webkit-box-shadow: inset 0px 0px 0px 2px ", ";\n -moz-box-shadow: inset 0px 0px 0px 2px ", ";\n box-shadow: inset 0px 0px 0px 2px ", ";\n }\n\n &.active {\n -webkit-box-shadow: inset 0px 0px 0px 2px ", ";\n -moz-box-shadow: inset 0px 0px 0px 2px ", ";\n box-shadow: inset 0px 0px 0px 2px ", ";\n }\n\n &.show-checkmark.valid {\n background-image: none;\n }\n\n &.show-checkmark.pending {\n background-image: none;\n }\n"])), function (props) {
38
+ return props.withoutBorder ? "-webkit-box-shadow: none;\n -moz-box-shadow: none;\n box-shadow: none;\n " : "-webkit-box-shadow: inset 0px 0px 0px 1px ".concat(_styles.COLORS.neutral_300, ";\n -moz-box-shadow: inset 0px 0px 0px 1px ").concat(_styles.COLORS.neutral_300, ";\n box-shadow: inset 0px 0px 0px 1px ").concat(_styles.COLORS.neutral_300, ";");
39
39
  }, _styles.COLORS.neutral_600, _styles.BREAKPOINTS.MEDIUM, _styles.COLORS.black, function (props) {
40
40
  return props.locked ? lockedState : '';
41
41
  }, function (props) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/InputFields/styling.ts"],"names":["InputWrapper","styled","div","props","locked","disabled","margin","lockedState","css","COLORS","neutral_100","neutral_300","neutral_600","activeValidationMessageState","warning_400","activeErrorMessageState","critical_400","activeCorrectInput","correct_500","tabbedHereStyle","InputFieldStyling","input","withoutBorder","BREAKPOINTS","MEDIUM","black","activeValidationMessage","activeErrorMessage","correctInput","tabbedHere","primary_800","primary_700","ValidationStyling","RequiredStar","span","critical_500","Warning","WarningMessage","warning_500","ErrorMessage","AutofilledMessage"],"mappings":";;;;;;;;;AAAA;;AACA;;;;;;;;;;AAEO,IAAMA,YAAY,GAAGC,0BAAOC,GAAV,2GAErB,UAAAC,KAAK;AAAA,SAAKA,KAAK,CAACC,MAAN,IAAgBD,KAAK,CAACE,QAAtB,GAAiC,sBAAjC,GAA0D,EAA/D;AAAA,CAFgB,EAGrB,UAAAF,KAAK;AAAA,SAAKA,KAAK,CAACG,MAAN,qBAA0BH,KAAK,CAACG,MAAhC,SAA4C,EAAjD;AAAA,CAHgB,CAAlB;;;AAMP,IAAMC,WAAW,OAAGC,qBAAH,0PACKC,eAAOC,WADZ,EAEqBD,eAAOE,WAF5B,EAGNF,eAAOG,WAHD,CAAjB;AAQO,IAAMC,4BAA4B,OAAGL,qBAAH,yNACKC,eAAOK,WADZ,EAEEL,eAAOK,WAFT,EAGHL,eAAOK,WAHJ,CAAlC;;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AAOqB,WA3G7B,EA4GiBrB,eAAOqB,WA5GxB,CAAvB;;;AAwHA,IAAME,iBAAiB,OAAGxB,qBAAH,4XAAvB;;;AAmBO,IAAMyB,YAAY,GAAGhC,0BAAOiC,IAAV,8LACdzB,eAAO0B,YADO,CAAlB;;;;AAQA,IAAMC,OAAO,GAAGnC,0BAAOC,GAAV,iWAIhBqB,oBAAYC,MAJI,CAAb;;;AAwBA,IAAMa,cAAc,GAAG,+BAAOD,OAAP,CAAH,4FAChB3B,eAAO6B,WADS,CAApB;;AAGA,IAAMC,YAAY,GAAG,+BAAOH,OAAP,CAAH,4FACd3B,eAAO0B,YADO,CAAlB;;AAGA,IAAMK,iBAAiB,GAAG,+BAAOJ,OAAP,CAAH,4FACnB3B,eAAOG,WADY,CAAvB","sourcesContent":["import styled, { css } from 'styled-components';\nimport { BREAKPOINTS, COLORS } from '../styles';\n\nexport const InputWrapper = styled.div<{ locked?: boolean; disabled?: boolean; margin?: string }>`\n outline: none;\n ${props => (props.locked || props.disabled ? 'cursor: not-allowed;' : '')};\n ${props => (props.margin ? `margin: ${props.margin};` : '')}\n`;\n\nconst lockedState = css`\n background-color: ${COLORS.neutral_100};\n box-shadow: inset 0px 0px 0px 1px ${COLORS.neutral_300} !important;\n color: ${COLORS.neutral_600} !important;\n pointer-events: none;\n outline: none;\n cursor: not-allowed;\n`;\nexport const activeValidationMessageState = css`\n -webkit-box-shadow: inset 0px 0px 0px 2px ${COLORS.warning_400};\n -moz-box-shadow: inset 0px 0px 0px 2px ${COLORS.warning_400};\n box-shadow: inset 0px 0px 0px 2px ${COLORS.warning_400};\n`;\nconst activeErrorMessageState = css`\n -webkit-box-shadow: inset 0px 0px 0px 2px ${COLORS.critical_400};\n -moz-box-shadow: inset 0px 0px 0px 2px ${COLORS.critical_400};\n box-shadow: inset 0px 0px 0px 2px ${COLORS.critical_400};\n`;\nconst activeCorrectInput = css`\n -webkit-box-shadow: inset 0px 0px 0px 2px ${COLORS.correct_500};\n -moz-box-shadow: inset 0px 0px 0px 2px ${COLORS.correct_500};\n box-shadow: inset 0px 0px 0px 2px ${COLORS.correct_500};\n`;\nexport const tabbedHereStyle = css`\n outline: none;\n box-shadow: 0px 4px 12px rgba(46, 127, 161, 0.25), 0px 0px 8px #2e7fa1 !important;\n`;\n\nconst InputFieldStyling = styled.input<{\n locked?: boolean;\n activeValidationMessage?: boolean;\n activeErrorMessage?: boolean;\n correctInput?: boolean;\n active?: boolean;\n tabbedHere?: boolean;\n withoutBorder?: boolean;\n size?: string;\n}>`\n height: 48px;\n width: 100%;\n border-radius: 4px;\n border: 2px solid transparent;\n box-shadow: ${props => (props.withoutBorder ? 'none' : `inset 0px 0px 0px 1px ${COLORS.neutral_300}`)};\n background-color: #fff;\n box-sizing: border-box;\n padding: 0 16px !important;\n\n box-sizing: border-box;\n width: 100%;\n outline: none;\n border-radius: 4.5px;\n\n font-size: 16px;\n\n &::placeholder {\n font-family: 'Lato', sans-serif;\n font-style: italic;\n font-weight: normal;\n font-size: 16px;\n color: ${COLORS.neutral_600};\n }\n\n ${BREAKPOINTS.MEDIUM}{ \n font-size: 18px;\n line-height: 18px;\n height: 56px;\n padding: 0 16px !important;\n\n &::placeholder {\n font-size: 18px;\n }\n }\n\n &.small {\n font-size: 16px;\n height: 48px; \n &::placeholder {\n font-size: 16px;\n }\n }\n &.medium {\n font-size: 18px;\n height: 56px; \n &::placeholder {\n font-size: 18px;\n }\n }\n\n\n color: ${COLORS.black} !important;\n\n ${props => (props.locked ? lockedState : '')}\n ${props => (props.activeValidationMessage ? activeValidationMessageState : '')}\n ${props => (props.activeErrorMessage ? activeErrorMessageState : '')}\n ${props => (props.correctInput ? activeCorrectInput : '')}\n ${props => (props.tabbedHere ? tabbedHereStyle : '')}\n\n &:disabled {\n border: 1px solid ${COLORS.neutral_100};\n pointer-events: none;\n box-shadow: none !important;\n outline: none;\n cursor: not-allowed;\n color: ${COLORS.neutral_300} !important;\n }\n &:focus {\n -webkit-box-shadow: inset 0px 0px 0px 2px ${COLORS.primary_800};\n -moz-box-shadow: inset 0px 0px 0px 2px ${COLORS.primary_800};\n box-shadow: inset 0px 0px 0px 2px ${COLORS.primary_800};\n }\n\n &.error {\n border-radius: 4px;\n border-style: solid;\n border-width: 2px;\n border-color: #e97116;\n padding: 0 15px !important;\n }\n\n &:not(.placeholder) {\n line-height: 40px;\n }\n\n &.error {\n margin-bottom: 0 !important;\n }\n\n &:hover {\n -webkit-box-shadow: inset 0px 0px 0px 2px ${COLORS.primary_700};\n -moz-box-shadow: inset 0px 0px 0px 2px ${COLORS.primary_700};\n box-shadow: inset 0px 0px 0px 2px ${COLORS.primary_700};\n }\n\n &.active {\n -webkit-box-shadow: inset 0px 0px 0px 2px ${COLORS.primary_800};\n -moz-box-shadow: inset 0px 0px 0px 2px ${COLORS.primary_800};\n box-shadow: inset 0px 0px 0px 2px ${COLORS.primary_800};\n }\n\n &.show-checkmark.valid {\n background-image: none;\n }\n\n &.show-checkmark.pending {\n background-image: none;\n }\n`;\n\nconst ValidationStyling = css`\n &.error-msg {\n line-height: 14px;\n font-size: 13px;\n text-align: center;\n font-weight: 400;\n box-sizing: border-box;\n }\n\n &.error-msg {\n padding-top: 8px;\n padding-bottom: 0;\n color: #e76468;\n font-weight: 700;\n font-size: 13px;\n line-height: 15px;\n }\n`;\n\nexport const RequiredStar = styled.span`\n color: ${COLORS.critical_500};\n font-size: 28px;\n line-height: 12px;\n font-weight: 700;\n position: relative;\n top: 10px;\n`;\nexport const Warning = styled.div`\n font-size: 12px;\n line-height: 140%;\n\n ${BREAKPOINTS.MEDIUM} {\n font-size: 14px;\n }\n\n &.small {\n font-size: 12px;\n }\n &.medium {\n font-size: 14px;\n }\n\n & * {\n vertical-align: middle;\n display: inline-block;\n }\n\n svg {\n margin-right: 5px;\n }\n`;\nexport const WarningMessage = styled(Warning)`\n color: ${COLORS.warning_500};\n`;\nexport const ErrorMessage = styled(Warning)`\n color: ${COLORS.critical_500};\n`;\nexport const AutofilledMessage = styled(Warning)`\n color: ${COLORS.neutral_600};\n`;\n\nexport { ValidationStyling, InputFieldStyling };\n"],"file":"styling.js"}
1
+ {"version":3,"sources":["../../../src/InputFields/styling.ts"],"names":["InputWrapper","styled","div","props","locked","disabled","margin","lockedState","css","COLORS","neutral_100","neutral_300","neutral_600","activeValidationMessageState","warning_400","activeErrorMessageState","critical_400","activeCorrectInput","correct_500","tabbedHereStyle","InputFieldStyling","input","withoutBorder","BREAKPOINTS","MEDIUM","black","activeValidationMessage","activeErrorMessage","correctInput","tabbedHere","primary_800","primary_700","ValidationStyling","RequiredStar","span","critical_500","Warning","WarningMessage","warning_500","ErrorMessage","AutofilledMessage"],"mappings":";;;;;;;;;AAAA;;AACA;;;;;;;;;;AAEO,IAAMA,YAAY,GAAGC,0BAAOC,GAAV,2GAErB,UAAAC,KAAK;AAAA,SAAKA,KAAK,CAACC,MAAN,IAAgBD,KAAK,CAACE,QAAtB,GAAiC,sBAAjC,GAA0D,EAA/D;AAAA,CAFgB,EAGrB,UAAAF,KAAK;AAAA,SAAKA,KAAK,CAACG,MAAN,qBAA0BH,KAAK,CAACG,MAAhC,SAA4C,EAAjD;AAAA,CAHgB,CAAlB;;;AAMP,IAAMC,WAAW,OAAGC,qBAAH,0PACKC,eAAOC,WADZ,EAEqBD,eAAOE,WAF5B,EAGNF,eAAOG,WAHD,CAAjB;AAQO,IAAMC,4BAA4B,OAAGL,qBAAH,yNACKC,eAAOK,WADZ,EAEEL,eAAOK,WAFT,EAGHL,eAAOK,WAHJ,CAAlC;;AAKP,IAAMC,uBAAuB,OAAGP,qBAAH,yNACiBC,eAAOO,YADxB,EAEcP,eAAOO,YAFrB,EAGSP,eAAOO,YAHhB,CAA7B;AAKA,IAAMC,kBAAkB,OAAGT,qBAAH,yNACsBC,eAAOS,WAD7B,EAEmBT,eAAOS,WAF1B,EAGcT,eAAOS,WAHrB,CAAxB;AAKO,IAAMC,eAAe,OAAGX,qBAAH,kLAArB;;;AAKP,IAAMY,iBAAiB,GAAGnB,0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,IAAMa,cAAc,GAAG,+BAAOD,OAAP,CAAH,4FAChB3B,eAAO6B,WADS,CAApB;;AAGA,IAAMC,YAAY,GAAG,+BAAOH,OAAP,CAAH,4FACd3B,eAAO0B,YADO,CAAlB;;AAGA,IAAMK,iBAAiB,GAAG,+BAAOJ,OAAP,CAAH,4FACnB3B,eAAOG,WADY,CAAvB","sourcesContent":["import styled, { css } from 'styled-components';\nimport { BREAKPOINTS, COLORS } from '../styles';\n\nexport const InputWrapper = styled.div<{ locked?: boolean; disabled?: boolean; margin?: string }>`\n outline: none;\n ${props => (props.locked || props.disabled ? 'cursor: not-allowed;' : '')};\n ${props => (props.margin ? `margin: ${props.margin};` : '')}\n`;\n\nconst lockedState = css`\n background-color: ${COLORS.neutral_100};\n box-shadow: inset 0px 0px 0px 1px ${COLORS.neutral_300} !important;\n color: ${COLORS.neutral_600} !important;\n pointer-events: none;\n outline: none;\n cursor: not-allowed;\n`;\nexport const activeValidationMessageState = css`\n -webkit-box-shadow: inset 0px 0px 0px 2px ${COLORS.warning_400};\n -moz-box-shadow: inset 0px 0px 0px 2px ${COLORS.warning_400};\n box-shadow: inset 0px 0px 0px 2px ${COLORS.warning_400};\n`;\nconst activeErrorMessageState = css`\n -webkit-box-shadow: inset 0px 0px 0px 2px ${COLORS.critical_400};\n -moz-box-shadow: inset 0px 0px 0px 2px ${COLORS.critical_400};\n box-shadow: inset 0px 0px 0px 2px ${COLORS.critical_400};\n`;\nconst activeCorrectInput = css`\n -webkit-box-shadow: inset 0px 0px 0px 2px ${COLORS.correct_500};\n -moz-box-shadow: inset 0px 0px 0px 2px ${COLORS.correct_500};\n box-shadow: inset 0px 0px 0px 2px ${COLORS.correct_500};\n`;\nexport const tabbedHereStyle = css`\n outline: none;\n box-shadow: 0px 4px 12px rgba(46, 127, 161, 0.25), 0px 0px 8px #2e7fa1 !important;\n`;\n\nconst InputFieldStyling = styled.input<{\n locked?: boolean;\n activeValidationMessage?: boolean;\n activeErrorMessage?: boolean;\n correctInput?: boolean;\n active?: boolean;\n tabbedHere?: boolean;\n withoutBorder?: boolean;\n size?: string;\n}>`\n height: 48px;\n width: 100%;\n border-radius: 4px;\n border: 2px solid transparent;\n -webkit-appearance: none;\n ${(props) =>\n props.withoutBorder\n ? `-webkit-box-shadow: none;\n -moz-box-shadow: none;\n box-shadow: none;\n `\n : `-webkit-box-shadow: inset 0px 0px 0px 1px ${COLORS.neutral_300};\n -moz-box-shadow: inset 0px 0px 0px 1px ${COLORS.neutral_300};\n box-shadow: inset 0px 0px 0px 1px ${COLORS.neutral_300};`}\n background-color: #fff;\n box-sizing: border-box;\n padding: 0 16px !important;\n\n box-sizing: border-box;\n width: 100%;\n outline: none;\n border-radius: 4.5px;\n\n font-size: 16px;\n\n &::placeholder {\n font-family: 'Lato', sans-serif;\n font-style: italic;\n font-weight: normal;\n font-size: 16px;\n color: ${COLORS.neutral_600};\n }\n\n ${BREAKPOINTS.MEDIUM}{ \n font-size: 18px;\n line-height: 18px;\n height: 56px;\n padding: 0 16px !important;\n\n &::placeholder {\n font-size: 18px;\n }\n }\n\n &.small {\n font-size: 16px;\n height: 48px; \n &::placeholder {\n font-size: 16px;\n }\n }\n &.medium {\n font-size: 18px;\n height: 56px; \n &::placeholder {\n font-size: 18px;\n }\n }\n\n\n color: ${COLORS.black} !important;\n\n ${props => (props.locked ? lockedState : '')}\n ${props => (props.activeValidationMessage ? activeValidationMessageState : '')}\n ${props => (props.activeErrorMessage ? activeErrorMessageState : '')}\n ${props => (props.correctInput ? activeCorrectInput : '')}\n ${props => (props.tabbedHere ? tabbedHereStyle : '')}\n\n &:disabled {\n border: 1px solid ${COLORS.neutral_100};\n pointer-events: none;\n box-shadow: none !important;\n outline: none;\n cursor: not-allowed;\n color: ${COLORS.neutral_300} !important;\n }\n &:focus {\n -webkit-box-shadow: inset 0px 0px 0px 2px ${COLORS.primary_800};\n -moz-box-shadow: inset 0px 0px 0px 2px ${COLORS.primary_800};\n box-shadow: inset 0px 0px 0px 2px ${COLORS.primary_800};\n }\n\n &.error {\n border-radius: 4px;\n border-style: solid;\n border-width: 2px;\n border-color: #e97116;\n padding: 0 15px !important;\n }\n\n &:not(.placeholder) {\n line-height: 40px;\n }\n\n &.error {\n margin-bottom: 0 !important;\n }\n\n &:hover {\n -webkit-box-shadow: inset 0px 0px 0px 2px ${COLORS.primary_700};\n -moz-box-shadow: inset 0px 0px 0px 2px ${COLORS.primary_700};\n box-shadow: inset 0px 0px 0px 2px ${COLORS.primary_700};\n }\n\n &.active {\n -webkit-box-shadow: inset 0px 0px 0px 2px ${COLORS.primary_800};\n -moz-box-shadow: inset 0px 0px 0px 2px ${COLORS.primary_800};\n box-shadow: inset 0px 0px 0px 2px ${COLORS.primary_800};\n }\n\n &.show-checkmark.valid {\n background-image: none;\n }\n\n &.show-checkmark.pending {\n background-image: none;\n }\n`;\n\nconst ValidationStyling = css`\n &.error-msg {\n line-height: 14px;\n font-size: 13px;\n text-align: center;\n font-weight: 400;\n box-sizing: border-box;\n }\n\n &.error-msg {\n padding-top: 8px;\n padding-bottom: 0;\n color: #e76468;\n font-weight: 700;\n font-size: 13px;\n line-height: 15px;\n }\n`;\n\nexport const RequiredStar = styled.span`\n color: ${COLORS.critical_500};\n font-size: 28px;\n line-height: 12px;\n font-weight: 700;\n position: relative;\n top: 10px;\n`;\nexport const Warning = styled.div`\n font-size: 12px;\n line-height: 140%;\n\n ${BREAKPOINTS.MEDIUM} {\n font-size: 14px;\n }\n\n &.small {\n font-size: 12px;\n }\n &.medium {\n font-size: 14px;\n }\n\n & * {\n vertical-align: middle;\n display: inline-block;\n }\n\n svg {\n margin-right: 5px;\n }\n`;\nexport const WarningMessage = styled(Warning)`\n color: ${COLORS.warning_500};\n`;\nexport const ErrorMessage = styled(Warning)`\n color: ${COLORS.critical_500};\n`;\nexport const AutofilledMessage = styled(Warning)`\n color: ${COLORS.neutral_600};\n`;\n\nexport { ValidationStyling, InputFieldStyling };\n"],"file":"styling.js"}
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
@@ -9,17 +11,25 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
9
11
 
10
12
  var _react = _interopRequireDefault(require("react"));
11
13
 
14
+ var _styledComponents = _interopRequireWildcard(require("styled-components"));
15
+
12
16
  var _ = require(".");
13
17
 
14
- var _styledComponents = _interopRequireDefault(require("styled-components"));
18
+ var _templateObject, _templateObject2;
19
+
20
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
+
22
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
23
 
16
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
25
 
26
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
27
+
18
28
  var TYPOGRAPHY = {
19
29
  fontFamily: 'Lato, sans-serif'
20
30
  };
21
31
  exports.TYPOGRAPHY = TYPOGRAPHY;
22
- var TypographyBase = (0, _styledComponents.default)("div")(function (_ref) {
32
+ var TypographyBase = (0, _styledComponents.default)('div')(function (_ref) {
23
33
  var color = _ref.color,
24
34
  lineHeight = _ref.lineHeight,
25
35
  fontSize = _ref.fontSize,
@@ -103,17 +113,10 @@ var HeadlineXXS = (0, _styledComponents.default)(HeadlineBase)(function (_ref8)
103
113
  };
104
114
  });
105
115
  exports.HeadlineXXS = HeadlineXXS;
106
- var ParagraphBase = (0, _styledComponents.default)(TypographyBase)(function (_ref9) {
107
- var color = _ref9.color,
108
- lineHeight = _ref9.lineHeight,
109
- fontSize = _ref9.fontSize;
110
- return {
111
- fontSize: fontSize,
112
- fontWeight: 400,
113
- lineHeight: lineHeight,
114
- color: color
115
- };
116
- });
116
+ var ParagraphStyling = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n :lang(ja-jp) > h1,\n h2,\n h3,\n h4,\n p,\n span {\n max-width: 30em;\n }\n :lang(ko-kr) > h1,\n h2,\n h3,\n h4,\n p,\n span {\n max-width: 30em;\n }\n :lang(zh-CN) > h1,\n h2,\n h3,\n h4,\n p,\n span {\n max-width: 30em;\n }\n h1,\n h2,\n h3,\n h4,\n p,\n span {\n max-width: 34em;\n }\n"])));
117
+ var ParagraphBase = (0, _styledComponents.default)(TypographyBase)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n p {\n margin-block-start: 0;\n margin-block-end: 0;\n }\n p:not(:only-of-type) {\n margin-bottom: ", ";\n }\n ", "\n"])), function (props) {
118
+ return props.marginBetweenParagraphs || '0';
119
+ }, ParagraphStyling);
117
120
  var ParagraphTextStyle;
118
121
  exports.ParagraphTextStyle = ParagraphTextStyle;
119
122
 
@@ -144,20 +147,21 @@ var paragraphTextDecorationLine = function paragraphTextDecorationLine(textStyle
144
147
  return textDecoration;
145
148
  };
146
149
 
147
- var ParagraphXL = function ParagraphXL(_ref10) {
148
- var color = _ref10.color,
149
- textStyle = _ref10.textStyle,
150
- children = _ref10.children;
150
+ var ParagraphXL = function ParagraphXL(_ref9) {
151
+ var color = _ref9.color,
152
+ textStyle = _ref9.textStyle,
153
+ children = _ref9.children;
151
154
  var fontWeight = paragraphFontWeight(textStyle);
152
155
  var fontStyle = paragraphFontStyle(textStyle);
153
156
  var textDecorationLine = paragraphTextDecorationLine(textStyle);
154
- return /*#__PURE__*/_react.default.createElement(TypographyBase, {
157
+ return /*#__PURE__*/_react.default.createElement(ParagraphBase, {
155
158
  color: color,
156
159
  lineHeight: 36,
157
160
  fontSize: 24,
158
161
  fontWeight: fontWeight,
159
162
  fontStyle: fontStyle,
160
- textDecorationLine: textDecorationLine
163
+ textDecorationLine: textDecorationLine,
164
+ marginBetweenParagraphs: "18px"
161
165
  }, children);
162
166
  };
163
167
 
@@ -167,20 +171,21 @@ ParagraphXL.propTypes = {
167
171
  textStyle: _propTypes.default.oneOf([1, 2, 3, 4])
168
172
  };
169
173
 
170
- var ParagraphL = function ParagraphL(_ref11) {
171
- var color = _ref11.color,
172
- textStyle = _ref11.textStyle,
173
- children = _ref11.children;
174
+ var ParagraphL = function ParagraphL(_ref10) {
175
+ var color = _ref10.color,
176
+ textStyle = _ref10.textStyle,
177
+ children = _ref10.children;
174
178
  var fontWeight = paragraphFontWeight(textStyle);
175
179
  var fontStyle = paragraphFontStyle(textStyle);
176
180
  var textDecorationLine = paragraphTextDecorationLine(textStyle);
177
- return /*#__PURE__*/_react.default.createElement(TypographyBase, {
181
+ return /*#__PURE__*/_react.default.createElement(ParagraphBase, {
178
182
  color: color,
179
183
  lineHeight: 32,
180
184
  fontSize: 20,
181
185
  fontWeight: fontWeight,
182
186
  fontStyle: fontStyle,
183
- textDecorationLine: textDecorationLine
187
+ textDecorationLine: textDecorationLine,
188
+ marginBetweenParagraphs: "16px"
184
189
  }, children);
185
190
  };
186
191
 
@@ -190,20 +195,21 @@ ParagraphL.propTypes = {
190
195
  textStyle: _propTypes.default.oneOf([1, 2, 3, 4])
191
196
  };
192
197
 
193
- var ParagraphM = function ParagraphM(_ref12) {
194
- var color = _ref12.color,
195
- textStyle = _ref12.textStyle,
196
- children = _ref12.children;
198
+ var ParagraphM = function ParagraphM(_ref11) {
199
+ var color = _ref11.color,
200
+ textStyle = _ref11.textStyle,
201
+ children = _ref11.children;
197
202
  var fontWeight = paragraphFontWeight(textStyle);
198
203
  var fontStyle = paragraphFontStyle(textStyle);
199
204
  var textDecorationLine = paragraphTextDecorationLine(textStyle);
200
- return /*#__PURE__*/_react.default.createElement(TypographyBase, {
205
+ return /*#__PURE__*/_react.default.createElement(ParagraphBase, {
201
206
  color: color,
202
207
  lineHeight: 28,
203
208
  fontSize: 18,
204
209
  fontWeight: fontWeight,
205
210
  fontStyle: fontStyle,
206
- textDecorationLine: textDecorationLine
211
+ textDecorationLine: textDecorationLine,
212
+ marginBetweenParagraphs: "14px"
207
213
  }, children);
208
214
  };
209
215
 
@@ -213,20 +219,21 @@ ParagraphM.propTypes = {
213
219
  textStyle: _propTypes.default.oneOf([1, 2, 3, 4])
214
220
  };
215
221
 
216
- var ParagraphS = function ParagraphS(_ref13) {
217
- var color = _ref13.color,
218
- textStyle = _ref13.textStyle,
219
- children = _ref13.children;
222
+ var ParagraphS = function ParagraphS(_ref12) {
223
+ var color = _ref12.color,
224
+ textStyle = _ref12.textStyle,
225
+ children = _ref12.children;
220
226
  var fontWeight = paragraphFontWeight(textStyle);
221
227
  var fontStyle = paragraphFontStyle(textStyle);
222
228
  var textDecorationLine = paragraphTextDecorationLine(textStyle);
223
- return /*#__PURE__*/_react.default.createElement(TypographyBase, {
229
+ return /*#__PURE__*/_react.default.createElement(ParagraphBase, {
224
230
  color: color,
225
231
  lineHeight: 24,
226
232
  fontSize: 16,
227
233
  fontWeight: fontWeight,
228
234
  fontStyle: fontStyle,
229
- textDecorationLine: textDecorationLine
235
+ textDecorationLine: textDecorationLine,
236
+ marginBetweenParagraphs: "12px"
230
237
  }, children);
231
238
  };
232
239
 
@@ -236,20 +243,21 @@ ParagraphS.propTypes = {
236
243
  textStyle: _propTypes.default.oneOf([1, 2, 3, 4])
237
244
  };
238
245
 
239
- var ParagraphXS = function ParagraphXS(_ref14) {
240
- var color = _ref14.color,
241
- textStyle = _ref14.textStyle,
242
- children = _ref14.children;
246
+ var ParagraphXS = function ParagraphXS(_ref13) {
247
+ var color = _ref13.color,
248
+ textStyle = _ref13.textStyle,
249
+ children = _ref13.children;
243
250
  var fontWeight = paragraphFontWeight(textStyle);
244
251
  var fontStyle = paragraphFontStyle(textStyle);
245
252
  var textDecorationLine = paragraphTextDecorationLine(textStyle);
246
- return /*#__PURE__*/_react.default.createElement(TypographyBase, {
253
+ return /*#__PURE__*/_react.default.createElement(ParagraphBase, {
247
254
  color: color,
248
255
  lineHeight: 20,
249
256
  fontSize: 14,
250
257
  fontWeight: fontWeight,
251
258
  fontStyle: fontStyle,
252
- textDecorationLine: textDecorationLine
259
+ textDecorationLine: textDecorationLine,
260
+ marginBetweenParagraphs: "10px"
253
261
  }, children);
254
262
  };
255
263
 
@@ -288,10 +296,10 @@ var componentTextTransformation = function componentTextTransformation(textStyle
288
296
  return fontStyle;
289
297
  };
290
298
 
291
- var ComponentXL = function ComponentXL(_ref15) {
292
- var color = _ref15.color,
293
- textStyle = _ref15.textStyle,
294
- children = _ref15.children;
299
+ var ComponentXL = function ComponentXL(_ref14) {
300
+ var color = _ref14.color,
301
+ textStyle = _ref14.textStyle,
302
+ children = _ref14.children;
295
303
  var fontWeight = componentFontWeight(textStyle);
296
304
  var fontStyle = componentFontStyle(textStyle);
297
305
  return /*#__PURE__*/_react.default.createElement(TypographyBase, {
@@ -309,10 +317,10 @@ ComponentXL.propTypes = {
309
317
  textStyle: _propTypes.default.oneOf([1, 2, 3, 4])
310
318
  };
311
319
 
312
- var ComponentL = function ComponentL(_ref16) {
313
- var color = _ref16.color,
314
- textStyle = _ref16.textStyle,
315
- children = _ref16.children;
320
+ var ComponentL = function ComponentL(_ref15) {
321
+ var color = _ref15.color,
322
+ textStyle = _ref15.textStyle,
323
+ children = _ref15.children;
316
324
  var fontWeight = componentFontWeight(textStyle);
317
325
  var fontStyle = componentFontStyle(textStyle);
318
326
  return /*#__PURE__*/_react.default.createElement(TypographyBase, {
@@ -330,10 +338,10 @@ ComponentL.propTypes = {
330
338
  textStyle: _propTypes.default.oneOf([1, 2, 3, 4])
331
339
  };
332
340
 
333
- var ComponentM = function ComponentM(_ref17) {
334
- var color = _ref17.color,
335
- textStyle = _ref17.textStyle,
336
- children = _ref17.children;
341
+ var ComponentM = function ComponentM(_ref16) {
342
+ var color = _ref16.color,
343
+ textStyle = _ref16.textStyle,
344
+ children = _ref16.children;
337
345
  var fontWeight = componentFontWeight(textStyle);
338
346
  var fontStyle = componentFontStyle(textStyle);
339
347
  return /*#__PURE__*/_react.default.createElement(TypographyBase, {
@@ -351,10 +359,10 @@ ComponentM.propTypes = {
351
359
  textStyle: _propTypes.default.oneOf([1, 2, 3, 4])
352
360
  };
353
361
 
354
- var ComponentS = function ComponentS(_ref18) {
355
- var color = _ref18.color,
356
- textStyle = _ref18.textStyle,
357
- children = _ref18.children;
362
+ var ComponentS = function ComponentS(_ref17) {
363
+ var color = _ref17.color,
364
+ textStyle = _ref17.textStyle,
365
+ children = _ref17.children;
358
366
  var fontWeight = componentFontWeight(textStyle);
359
367
  var fontStyle = componentFontStyle(textStyle);
360
368
  return /*#__PURE__*/_react.default.createElement(TypographyBase, {
@@ -372,10 +380,10 @@ ComponentS.propTypes = {
372
380
  textStyle: _propTypes.default.oneOf([1, 2, 3, 4])
373
381
  };
374
382
 
375
- var ComponentXS = function ComponentXS(_ref19) {
376
- var color = _ref19.color,
377
- textStyle = _ref19.textStyle,
378
- children = _ref19.children;
383
+ var ComponentXS = function ComponentXS(_ref18) {
384
+ var color = _ref18.color,
385
+ textStyle = _ref18.textStyle,
386
+ children = _ref18.children;
379
387
  var fontWeight = componentFontWeight(textStyle);
380
388
  var fontStyle = componentFontStyle(textStyle);
381
389
  var textTransform = componentTextTransformation(textStyle);
@@ -395,10 +403,10 @@ ComponentXS.propTypes = {
395
403
  textStyle: _propTypes.default.oneOf([1, 2, 3, 4])
396
404
  };
397
405
 
398
- var ComponentXXS = function ComponentXXS(_ref20) {
399
- var color = _ref20.color,
400
- textStyle = _ref20.textStyle,
401
- children = _ref20.children;
406
+ var ComponentXXS = function ComponentXXS(_ref19) {
407
+ var color = _ref19.color,
408
+ textStyle = _ref19.textStyle,
409
+ children = _ref19.children;
402
410
  var fontWeight = componentFontWeight(textStyle);
403
411
  var fontStyle = componentFontStyle(textStyle);
404
412
  var textTransform = componentTextTransformation(textStyle);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/styles/typography.tsx"],"names":["TYPOGRAPHY","fontFamily","TypographyBase","color","lineHeight","fontSize","fontWeight","fontStyle","textTransform","textDecorationLine","COLORS","black","HeadlineBase","HeadlineXL","HeadlineL","HeadlineM","HeadlineS","HeadlineXS","HeadlineXXS","ParagraphBase","ParagraphTextStyle","paragraphFontWeight","textStyle","Bold","paragraphFontStyle","Italic","paragraphTextDecorationLine","textDecoration","Underline","ParagraphXL","children","ParagraphL","ParagraphM","ParagraphS","ParagraphXS","ComponentTextStyle","componentFontWeight","UppercaseBold","componentFontStyle","componentTextTransformation","ComponentXL","ComponentL","ComponentM","ComponentS","ComponentXS","ComponentXXS"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;;;AAGA,IAAMA,UAAU,GAAG;AACjBC,EAAAA,UAAU,EAAE;AADK,CAAnB;;AAcA,IAAMC,cAAc,GAAG,+BAAO,KAAP,EAA+B;AAAA,MAAEC,KAAF,QAAEA,KAAF;AAAA,MAASC,UAAT,QAASA,UAAT;AAAA,MAAqBC,QAArB,QAAqBA,QAArB;AAAA,MAA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AGnB,KAAxB;AAA+B,IAAA,UAAU,EAAE,EAA3C;AAA+C,IAAA,QAAQ,EAAE,EAAzD;AAA6D,IAAA,UAAU,EAAEG,UAAzE;AAAqF,IAAA,SAAS,EAAEC,SAAhG;AAA2G,IAAA,aAAa,EAAEC;AAA1H,KACGsB,QADH,CADF;AAKD,CATD;;;;AA9DE3B,EAAAA,K;AACAmB,EAAAA,S;;;AAwEF,IAAMuB,YAA+C,GAAG,SAAlDA,YAAkD,SAAkC;AAAA,MAAhC1C,KAAgC,UAAhCA,KAAgC;AAAA,MAAzBmB,SAAyB,UAAzBA,SAAyB;AAAA,MAAdQ,QAAc,UAAdA,QAAc;AACxF,MAAIxB,UAAU,GAAG8B,mBAAmB,CAACd,SAAD,CAApC;AACA,MAAIf,SAAS,GAAG+B,kBAAkB,CAAChB,SAAD,CAAlC;AACA,MAAId,aAAa,GAAG+B,2BAA2B,CAACjB,SAAD,CAA/C;AACA,sBACE,6BAAC,cAAD;AAAgB,IAAA,KAAK,EAAGnB,KAAxB;AAA+B,IAAA,UAAU,EAAE,EAA3C;AAA+C,IAAA,QAAQ,EAAE,EAAzD;AAA6D,IAAA,UAAU,EAAEG,UAAzE;AAAqF,IAAA,SAAS,EAAEC,SAAhG;AAA2G,IAAA,aAAa,EAAEC;AAA1H,KACGsB,QADH,CADF;AAKD,CATD;;;;AAzEE3B,EAAAA,K;AACAmB,EAAAA,S","sourcesContent":["import React, { FunctionComponent } from 'react';\nimport { COLORS } from '.';\nimport styled from 'styled-components';\nimport {Property} from 'csstype'\n\nconst TYPOGRAPHY = {\n fontFamily: 'Lato, sans-serif',\n};\n\ninterface ITypographyBase {\n color?: string,\n lineHeight: number,\n fontSize: number,\n fontWeight: number,\n fontStyle?: string,\n textTransform?: Property.TextTransform\n textDecorationLine?: Property.TextDecorationLine\n}\n\nconst TypographyBase = styled(\"div\")<ITypographyBase>(({color, lineHeight, fontSize, fontWeight, fontStyle, textTransform, textDecorationLine}) => ({ \n fontFamily: TYPOGRAPHY.fontFamily,\n fontSize: fontSize,\n fontWeight: fontWeight,\n lineHeight: lineHeight + 'px',\n textTransform: (textTransform? textTransform : 'none'),\n textDecorationLine: (textDecorationLine? textDecorationLine : 'none'),\n fontStyle: (fontStyle ? fontStyle : 'normal'),\n color: (color ? color : COLORS.black)\n}));\n\n\ninterface IHeadline {\n color?: string\n}\n\ninterface IHeadlineBase {\n color?: string,\n lineHeight: number,\n fontSize: number\n}\nconst HeadlineBase = styled(TypographyBase)<IHeadlineBase>(({color, lineHeight, fontSize}) => ({ \n fontSize: fontSize,\n fontWeight: 700,\n lineHeight: lineHeight,\n color: color\n}));\n\nconst HeadlineXL = styled(HeadlineBase)<IHeadline>(({color}) => ({ \n fontSize: '48px',\n lineHeight: '64px',\n color: color\n}));\n\nconst HeadlineL = styled(HeadlineBase)<IHeadline>(({color}) => ({ \n fontSize: '40px',\n lineHeight: '52px',\n color: color\n}));\n\nconst HeadlineM = styled(HeadlineBase)<IHeadline>(({color}) => ({ \n fontSize: '32px',\n lineHeight: '40px',\n color: color\n}));\n\nconst HeadlineS = styled(HeadlineBase)<IHeadline>(({color}) => ({ \n fontSize: '28px',\n lineHeight: '36px',\n color: color\n}));\n\nconst HeadlineXS = styled(HeadlineBase)<IHeadline>(({color}) => ({ \n fontSize: '24px',\n lineHeight: '32px',\n color: color\n}));\n\nconst HeadlineXXS = styled(HeadlineBase)<IHeadline>(({color}) => ({ \n fontSize: '20px',\n lineHeight: '24px',\n color: color\n}));\n\ninterface IParagraphBase {\n color?: string,\n lineHeight: number,\n fontSize: number\n}\n\nconst ParagraphBase = styled(TypographyBase)<IParagraphBase>(({color, lineHeight, fontSize}) => ({ \n fontSize: fontSize,\n fontWeight: 400,\n lineHeight: lineHeight,\n color: color\n}));\n\ninterface IParagraph {\n color?: string\n}\n\nenum ParagraphTextStyle {\n Regular = 1,\n Bold,\n Italic,\n Underline\n}\n\n\ntype ParagraphProps = {\n color?: string, \n textStyle?: ParagraphTextStyle\n};\n\n\nconst paragraphFontWeight = (textStyle?: ParagraphTextStyle) => {\n let fontWeight = 400;\n if (textStyle === ParagraphTextStyle.Bold) {\n fontWeight = 700;\n }\n return fontWeight;\n};\n\nconst paragraphFontStyle = (textStyle?: ParagraphTextStyle) => {\n let fontStyle = (textStyle && textStyle === ParagraphTextStyle.Italic) ? 'italic' : '';\n return fontStyle;\n};\n\nconst paragraphTextDecorationLine = (textStyle?: ParagraphTextStyle) : Property.TextDecorationLine => {\n let textDecoration : Property.TextDecorationLine = (textStyle && textStyle === ParagraphTextStyle.Underline) ? 'underline' : 'none';\n return textDecoration;\n};\n\n\nconst ParagraphXL: FunctionComponent<ParagraphProps> = ({color, textStyle, children}) => { \n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={36} fontSize={24} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine}>\n {children}\n </TypographyBase>\n )\n};\n\nconst ParagraphL: FunctionComponent<ParagraphProps> = ({color, textStyle, children}) => { \n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={32} fontSize={20} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine}>\n {children}\n </TypographyBase>\n )\n};\n\nconst ParagraphM: FunctionComponent<ParagraphProps> = ({color, textStyle, children}) => { \n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={28} fontSize={18} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine}>\n {children}\n </TypographyBase>\n )\n};\n\nconst ParagraphS: FunctionComponent<ParagraphProps> = ({color, textStyle, children}) => { \n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={24} fontSize={16} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine}>\n {children}\n </TypographyBase>\n )\n};\n\nconst ParagraphXS: FunctionComponent<ParagraphProps> = ({color, textStyle, children}) => { \n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={20} fontSize={14} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine}>\n {children}\n </TypographyBase>\n )\n};\n\n\nenum ComponentTextStyle {\n Regular = 1,\n Bold,\n Italic,\n UppercaseBold\n}\n\ntype ComponentProps = {\n color?: string, \n textStyle?: ComponentTextStyle\n};\n\nconst componentFontWeight = (textStyle?: ComponentTextStyle) => {\n let fontWeight = 400;\n if (textStyle === ComponentTextStyle.Bold || textStyle === ComponentTextStyle.UppercaseBold) {\n fontWeight = 700;\n }\n return fontWeight;\n};\n\nconst componentFontStyle = (textStyle?: ComponentTextStyle) => {\n let fontStyle = (textStyle && textStyle === ComponentTextStyle.Italic) ? 'italic' : '';\n return fontStyle;\n};\n\nconst componentTextTransformation = (textStyle?: ComponentTextStyle) : Property.TextTransform => {\n let fontStyle : Property.TextTransform = (textStyle && textStyle === ComponentTextStyle.UppercaseBold) ? 'uppercase' : 'none';\n return fontStyle;\n};\n\nconst ComponentXL: FunctionComponent<ComponentProps> = ({color, textStyle, children}) => { \n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={28} fontSize={24} fontWeight={fontWeight} fontStyle={fontStyle} >\n {children}\n </TypographyBase>\n )\n};\n\nconst ComponentL: FunctionComponent<ComponentProps> = ({color, textStyle, children}) => { \n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={24} fontSize={20} fontWeight={fontWeight} fontStyle={fontStyle} >\n {children}\n </TypographyBase>\n )\n};\n\nconst ComponentM: FunctionComponent<ComponentProps> = ({color, textStyle, children}) => { \n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={24} fontSize={18} fontWeight={fontWeight} fontStyle={fontStyle} >\n {children}\n </TypographyBase>\n )\n};\n\nconst ComponentS: FunctionComponent<ComponentProps> = ({color, textStyle, children}) => { \n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={20} fontSize={16} fontWeight={fontWeight} fontStyle={fontStyle} >\n {children}\n </TypographyBase>\n )\n};\n\nconst ComponentXS: FunctionComponent<ComponentProps> = ({color, textStyle, children}) => { \n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n let textTransform = componentTextTransformation(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={16} fontSize={14} fontWeight={fontWeight} fontStyle={fontStyle} textTransform={textTransform}>\n {children}\n </TypographyBase>\n )\n};\n\nconst ComponentXXS: FunctionComponent<ComponentProps> = ({color, textStyle, children}) => { \n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n let textTransform = componentTextTransformation(textStyle);\n return (\n <TypographyBase color= {color} lineHeight={16} fontSize={12} fontWeight={fontWeight} fontStyle={fontStyle} textTransform={textTransform} >\n {children}\n </TypographyBase>\n )\n};\n\n\nexport {TYPOGRAPHY}\nexport {HeadlineXL, HeadlineL, HeadlineM, HeadlineS, HeadlineXS, HeadlineXXS}\nexport {ParagraphTextStyle, ParagraphXL, ParagraphL, ParagraphM, ParagraphS, ParagraphXS}\nexport {ComponentTextStyle, ComponentXL, ComponentL, ComponentM, ComponentS, ComponentXS, ComponentXXS}"],"file":"typography.js"}
1
+ {"version":3,"sources":["../../../src/styles/typography.tsx"],"names":["TYPOGRAPHY","fontFamily","TypographyBase","color","lineHeight","fontSize","fontWeight","fontStyle","textTransform","textDecorationLine","COLORS","black","HeadlineBase","HeadlineXL","HeadlineL","HeadlineM","HeadlineS","HeadlineXS","HeadlineXXS","ParagraphStyling","css","ParagraphBase","props","marginBetweenParagraphs","ParagraphTextStyle","paragraphFontWeight","textStyle","Bold","paragraphFontStyle","Italic","paragraphTextDecorationLine","textDecoration","Underline","ParagraphXL","children","ParagraphL","ParagraphM","ParagraphS","ParagraphXS","ComponentTextStyle","componentFontWeight","UppercaseBold","componentFontStyle","componentTextTransformation","ComponentXL","ComponentL","ComponentM","ComponentS","ComponentXS","ComponentXXS"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AACA;;;;;;;;;;;;AAGA,IAAMA,UAAU,GAAG;AACjBC,EAAAA,UAAU,EAAE;AADK,CAAnB;;AAcA,IAAMC,cAAc,GAAG,+BAAO,KAAP,EAA+B;AAAA,MAAGC,KAAH,QAAGA,KAAH;AAAA,MAAUC,UAAV,QAAUA,UAAV;AAAA,MAAsBC,QAAtB,QAAsBA,QAAtB;AAAA,MAAgCC,UAAhC,QAAgCA,UAAhC;AAAA,MAA4CC,SAA5C,QAA4CA,SAA5C;AAAA,MAAuDC,aAAvD,QAAuDA,aAAvD;AAAA,MAAsEC,kBAAtE,QAAsEA,kBAAtE;AAAA,SAAgG;AACpJR,IAAAA,UAAU,EAAED,UAAU,CAACC,UAD6H;AAEpJI,IAAAA,QAAQ,EAAEA,QAF0I;AAGpJC,IAAAA,UAAU,EAAEA,UAHwI;AAIpJF,IAAAA,UAAU,EAAEA,UAAU,GAAG,IAJ2H;AAKpJI,IAAAA,aAAa,EAAEA,aAAa,GAAGA,aAAH,GAAmB,MALqG;AAMpJC,IAAAA,kBAAkB,EAAEA,kBAAkB,GAAGA,kBAAH,GAAwB,MANsF;AAOpJF,IAAAA,SAAS,EAAEA,SAAS,GAAGA,SAAH,GAAe,QAPiH;AAQ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BAAmB,CAACd,SAAD,CAApC;AACA,MAAInB,SAAS,GAAGmC,kBAAkB,CAAChB,SAAD,CAAlC;AACA,MAAIlB,aAAa,GAAGmC,2BAA2B,CAACjB,SAAD,CAA/C;AACA,sBACE,6BAAC,cAAD;AAAgB,IAAA,KAAK,EAAEvB,KAAvB;AAA8B,IAAA,UAAU,EAAE,EAA1C;AAA8C,IAAA,QAAQ,EAAE,EAAxD;AAA4D,IAAA,UAAU,EAAEG,UAAxE;AAAoF,IAAA,SAAS,EAAEC,SAA/F;AAA0G,IAAA,aAAa,EAAEC;AAAzH,KACG0B,QADH,CADF;AAKD,CATD;;;;AAzEE/B,EAAAA,K;AACAuB,EAAAA,S","sourcesContent":["import React, { FunctionComponent } from 'react';\nimport styled, { css } from 'styled-components';\nimport { COLORS } from '.';\nimport { Property } from 'csstype';\n\nconst TYPOGRAPHY = {\n fontFamily: 'Lato, sans-serif',\n};\n\ninterface ITypographyBase {\n color?: string;\n lineHeight: number;\n fontSize: number;\n fontWeight: number;\n fontStyle?: string;\n textTransform?: Property.TextTransform;\n textDecorationLine?: Property.TextDecorationLine;\n}\n\nconst TypographyBase = styled('div')<ITypographyBase>(({ color, lineHeight, fontSize, fontWeight, fontStyle, textTransform, textDecorationLine }) => ({\n fontFamily: TYPOGRAPHY.fontFamily,\n fontSize: fontSize,\n fontWeight: fontWeight,\n lineHeight: lineHeight + 'px',\n textTransform: textTransform ? textTransform : 'none',\n textDecorationLine: textDecorationLine ? textDecorationLine : 'none',\n fontStyle: fontStyle ? fontStyle : 'normal',\n color: color ? color : COLORS.black,\n}));\n\ninterface IHeadline {\n color?: string;\n}\n\ninterface IHeadlineBase {\n color?: string;\n lineHeight: number;\n fontSize: number;\n}\nconst HeadlineBase = styled(TypographyBase)<IHeadlineBase>(({ color, lineHeight, fontSize }) => ({\n fontSize: fontSize,\n fontWeight: 700,\n lineHeight: lineHeight,\n color: color,\n}));\n\nconst HeadlineXL = styled(HeadlineBase)<IHeadline>(({ color }) => ({\n fontSize: '48px',\n lineHeight: '64px',\n color: color,\n}));\n\nconst HeadlineL = styled(HeadlineBase)<IHeadline>(({ color }) => ({\n fontSize: '40px',\n lineHeight: '52px',\n color: color,\n}));\n\nconst HeadlineM = styled(HeadlineBase)<IHeadline>(({ color }) => ({\n fontSize: '32px',\n lineHeight: '40px',\n color: color,\n}));\n\nconst HeadlineS = styled(HeadlineBase)<IHeadline>(({ color }) => ({\n fontSize: '28px',\n lineHeight: '36px',\n color: color,\n}));\n\nconst HeadlineXS = styled(HeadlineBase)<IHeadline>(({ color }) => ({\n fontSize: '24px',\n lineHeight: '32px',\n color: color,\n}));\n\nconst HeadlineXXS = styled(HeadlineBase)<IHeadline>(({ color }) => ({\n fontSize: '20px',\n lineHeight: '24px',\n color: color,\n}));\n\nconst ParagraphStyling = css`\n :lang(ja-jp) > h1,\n h2,\n h3,\n h4,\n p,\n span {\n max-width: 30em;\n }\n :lang(ko-kr) > h1,\n h2,\n h3,\n h4,\n p,\n span {\n max-width: 30em;\n }\n :lang(zh-CN) > h1,\n h2,\n h3,\n h4,\n p,\n span {\n max-width: 30em;\n }\n h1,\n h2,\n h3,\n h4,\n p,\n span {\n max-width: 34em;\n }\n`;\n\ninterface IParagraphBase {\n color?: string;\n lineHeight: number;\n fontSize: number;\n marginBetweenParagraphs?: string;\n}\n\nconst ParagraphBase = styled(TypographyBase)<IParagraphBase>`\n p {\n margin-block-start: 0;\n margin-block-end: 0;\n }\n p:not(:only-of-type) {\n margin-bottom: ${(props) => props.marginBetweenParagraphs || '0'};\n }\n ${ParagraphStyling}\n`;\n\ninterface IParagraph {\n color?: string;\n}\n\nenum ParagraphTextStyle {\n Regular = 1,\n Bold,\n Italic,\n Underline,\n}\n\ntype ParagraphProps = {\n color?: string;\n textStyle?: ParagraphTextStyle;\n};\n\nconst paragraphFontWeight = (textStyle?: ParagraphTextStyle) => {\n let fontWeight = 400;\n if (textStyle === ParagraphTextStyle.Bold) {\n fontWeight = 700;\n }\n return fontWeight;\n};\n\nconst paragraphFontStyle = (textStyle?: ParagraphTextStyle) => {\n let fontStyle = textStyle && textStyle === ParagraphTextStyle.Italic ? 'italic' : '';\n return fontStyle;\n};\n\nconst paragraphTextDecorationLine = (textStyle?: ParagraphTextStyle): Property.TextDecorationLine => {\n let textDecoration: Property.TextDecorationLine = textStyle && textStyle === ParagraphTextStyle.Underline ? 'underline' : 'none';\n return textDecoration;\n};\n\nconst ParagraphXL: FunctionComponent<ParagraphProps> = ({ color, textStyle, children }) => {\n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <ParagraphBase color={color} lineHeight={36} fontSize={24} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine} marginBetweenParagraphs=\"18px\">\n {children}\n </ParagraphBase>\n );\n};\n\nconst ParagraphL: FunctionComponent<ParagraphProps> = ({ color, textStyle, children }) => {\n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <ParagraphBase color={color} lineHeight={32} fontSize={20} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine} marginBetweenParagraphs=\"16px\">\n {children}\n </ParagraphBase>\n );\n};\n\nconst ParagraphM: FunctionComponent<ParagraphProps> = ({ color, textStyle, children }) => {\n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <ParagraphBase color={color} lineHeight={28} fontSize={18} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine} marginBetweenParagraphs=\"14px\">\n {children}\n </ParagraphBase>\n );\n};\n\nconst ParagraphS: FunctionComponent<ParagraphProps> = ({ color, textStyle, children }) => {\n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <ParagraphBase color={color} lineHeight={24} fontSize={16} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine} marginBetweenParagraphs=\"12px\">\n {children}\n </ParagraphBase>\n );\n};\n\nconst ParagraphXS: FunctionComponent<ParagraphProps> = ({ color, textStyle, children }) => {\n let fontWeight = paragraphFontWeight(textStyle);\n let fontStyle = paragraphFontStyle(textStyle);\n let textDecorationLine = paragraphTextDecorationLine(textStyle);\n return (\n <ParagraphBase color={color} lineHeight={20} fontSize={14} fontWeight={fontWeight} fontStyle={fontStyle} textDecorationLine={textDecorationLine} marginBetweenParagraphs=\"10px\">\n {children}\n </ParagraphBase>\n );\n};\n\nenum ComponentTextStyle {\n Regular = 1,\n Bold,\n Italic,\n UppercaseBold,\n}\n\ntype ComponentProps = {\n color?: string;\n textStyle?: ComponentTextStyle;\n};\n\nconst componentFontWeight = (textStyle?: ComponentTextStyle) => {\n let fontWeight = 400;\n if (textStyle === ComponentTextStyle.Bold || textStyle === ComponentTextStyle.UppercaseBold) {\n fontWeight = 700;\n }\n return fontWeight;\n};\n\nconst componentFontStyle = (textStyle?: ComponentTextStyle) => {\n let fontStyle = textStyle && textStyle === ComponentTextStyle.Italic ? 'italic' : '';\n return fontStyle;\n};\n\nconst componentTextTransformation = (textStyle?: ComponentTextStyle): Property.TextTransform => {\n let fontStyle: Property.TextTransform = textStyle && textStyle === ComponentTextStyle.UppercaseBold ? 'uppercase' : 'none';\n return fontStyle;\n};\n\nconst ComponentXL: FunctionComponent<ComponentProps> = ({ color, textStyle, children }) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color={color} lineHeight={28} fontSize={24} fontWeight={fontWeight} fontStyle={fontStyle}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentL: FunctionComponent<ComponentProps> = ({ color, textStyle, children }) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color={color} lineHeight={24} fontSize={20} fontWeight={fontWeight} fontStyle={fontStyle}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentM: FunctionComponent<ComponentProps> = ({ color, textStyle, children }) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color={color} lineHeight={24} fontSize={18} fontWeight={fontWeight} fontStyle={fontStyle}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentS: FunctionComponent<ComponentProps> = ({ color, textStyle, children }) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase color={color} lineHeight={20} fontSize={16} fontWeight={fontWeight} fontStyle={fontStyle}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentXS: FunctionComponent<ComponentProps> = ({ color, textStyle, children }) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n let textTransform = componentTextTransformation(textStyle);\n return (\n <TypographyBase color={color} lineHeight={16} fontSize={14} fontWeight={fontWeight} fontStyle={fontStyle} textTransform={textTransform}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentXXS: FunctionComponent<ComponentProps> = ({ color, textStyle, children }) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n let textTransform = componentTextTransformation(textStyle);\n return (\n <TypographyBase color={color} lineHeight={16} fontSize={12} fontWeight={fontWeight} fontStyle={fontStyle} textTransform={textTransform}>\n {children}\n </TypographyBase>\n );\n};\n\nexport { TYPOGRAPHY };\nexport { HeadlineXL, HeadlineL, HeadlineM, HeadlineS, HeadlineXS, HeadlineXXS };\nexport { ParagraphTextStyle, ParagraphXL, ParagraphL, ParagraphM, ParagraphS, ParagraphXS };\nexport { ComponentTextStyle, ComponentXL, ComponentL, ComponentM, ComponentS, ComponentXS, ComponentXXS };\n"],"file":"typography.js"}
@@ -1,16 +1,16 @@
1
1
  (function (global, factory) {
2
2
  if (typeof define === "function" && define.amd) {
3
- define(["exports", "prop-types", "react", "styled-components", "../styles", "../icons/systemicons/SystemIcons", "../Button"], factory);
3
+ define(["exports", "prop-types", "react", "styled-components", "../styles", "../icons/systemicons/SystemIcons", "../Button", "./styles"], factory);
4
4
  } else if (typeof exports !== "undefined") {
5
- factory(exports, require("prop-types"), require("react"), require("styled-components"), require("../styles"), require("../icons/systemicons/SystemIcons"), require("../Button"));
5
+ factory(exports, require("prop-types"), require("react"), require("styled-components"), require("../styles"), require("../icons/systemicons/SystemIcons"), require("../Button"), require("./styles"));
6
6
  } else {
7
7
  var mod = {
8
8
  exports: {}
9
9
  };
10
- factory(mod.exports, global.propTypes, global.react, global.styledComponents, global.styles, global.SystemIcons, global.Button);
10
+ factory(mod.exports, global.propTypes, global.react, global.styledComponents, global.styles, global.SystemIcons, global.Button, global.styles);
11
11
  global.undefined = mod.exports;
12
12
  }
13
- })(this, function (exports, _propTypes, _react, _styledComponents, _styles, _SystemIcons, _Button) {
13
+ })(this, function (exports, _propTypes, _react, _styledComponents, _styles, _SystemIcons, _Button, _styles2) {
14
14
  "use strict";
15
15
 
16
16
  Object.defineProperty(exports, "__esModule", {
@@ -90,20 +90,30 @@
90
90
  margin-top: ${props => props.bottom ? 'auto' : '0'};
91
91
 
92
92
  button:last-child {
93
- margin: 0 0 0 auto;
94
93
  line-height: 0;
95
- cursor: pointer;
96
- }
97
- button:last-child:hover {
98
- margin: 0 0 0 auto;
99
- background: ${props => props.hover ? props.hover : _styles.COLORS.primary_20};
94
+ margin: 0 0 0 8px;
95
+ ${_styles.BREAKPOINTS.MEDIUM} {
96
+ margin: 0 0 0 16px;
97
+ }
98
+ ${_styles.BREAKPOINTS.LARGE} {
99
+ margin: 0 0 0 32px;
100
+ }
101
+ &.small {
102
+ margin: 0 0 0 8px;
103
+ }
104
+ &.medium {
105
+ margin: 0 0 0 16px;
106
+ }
107
+ &.large {
108
+ margin: 0 0 0 32px;
109
+ }
100
110
  }
101
111
 
102
112
  a {
103
113
  color: ${props => props.link};
104
114
  font-weight: bold;
105
115
  text-decoration: none;
106
-
116
+
107
117
  &:hover {
108
118
  text-decoration: underline;
109
119
  }
@@ -113,32 +123,50 @@
113
123
  font-style: normal;
114
124
  font-weight: normal;
115
125
  font-size: 16px;
116
- line-height: 140%;
126
+ line-height: 20px;
117
127
  `;
118
128
  const BannerCenter = _styledComponents2.default.div`
119
129
  color: ${props => props.color};
120
130
  font-size: 18px;
121
131
  display: flex;
122
- justify-content: flex-start;
123
- align-items: center;
124
132
  width: 100%;
125
- margin: 0 8px;
133
+ margin: 0 6px 0 16px;
126
134
  ${_styles.BREAKPOINTS.MEDIUM} {
127
- margin: 0 32px;
135
+ margin: 0 22px 0 32px;
128
136
  }
129
137
  ${_styles.BREAKPOINTS.LARGE} {
130
- margin: 0 56px;
138
+ margin: 0 46px 0 56px;
139
+ }
140
+ &.small {
141
+ margin: 0 6px 0 16px;
131
142
  }
132
- ${_styles.BREAKPOINTS.XLARGE} {
133
- width: 1120px;
134
- margin: 0 auto;
143
+ &.medium {
144
+ margin: 0 22px 0 32px;
135
145
  }
136
- >svg {
137
- margin-right:8px;
146
+ &.large {
147
+ margin: 0 46px 0 56px;
148
+ }
149
+
150
+ > svg {
151
+ flex-shrink: 0;
152
+ margin: 12px 0;
153
+ }
154
+ `;
155
+ const ButtonWrapper = _styledComponents2.default.div`
156
+ margin: 0 0 0 auto;
157
+ ${props => props.type ? (0, _styles2.getButtonStyle)(props.type) : null};
158
+ `;
159
+ const BannerContentWrapper = _styledComponents2.default.div`
160
+ display: flex;
161
+ align-items: center;
162
+ margin: 12px 0;
163
+ &:not(:first-child) {
164
+ margin-left: 8px;
138
165
  }
139
166
  `;
140
167
 
141
168
  const Banner = ({
169
+ size,
142
170
  type,
143
171
  children,
144
172
  bottom,
@@ -146,7 +174,8 @@
146
174
  linkText,
147
175
  link,
148
176
  onClose,
149
- icon
177
+ icon,
178
+ noIcon
150
179
  }) => {
151
180
  const formatTypeToLowerCase = type?.toLowerCase();
152
181
 
@@ -159,20 +188,25 @@
159
188
  hover: _styles.COLORS.warning_20,
160
189
  bottom: bottom
161
190
  }, /*#__PURE__*/React.createElement(BannerCenter, {
162
- color: _styles.COLORS.warning_700
163
- }, icon ? icon : /*#__PURE__*/React.createElement(_SystemIcons.Help, {
191
+ color: _styles.COLORS.warning_700,
192
+ className: size
193
+ }, icon ? icon : noIcon ? null : /*#__PURE__*/React.createElement(_SystemIcons.Help, {
164
194
  color: _styles.COLORS.warning_700,
165
195
  size: "24px"
166
- }), children, "\xA0\xA0", link && linkText && /*#__PURE__*/React.createElement("a", {
196
+ }), /*#__PURE__*/React.createElement(BannerContentWrapper, null, children, "\xA0\xA0", link && linkText && /*#__PURE__*/React.createElement("a", {
167
197
  href: link,
168
198
  target: "_blank"
169
- }, linkText), onClose && /*#__PURE__*/React.createElement(_Button.Button, {
170
- variant: "text",
171
- onClick: () => onClose()
199
+ }, linkText)), onClose && /*#__PURE__*/React.createElement(ButtonWrapper, {
200
+ type: formatTypeToLowerCase
201
+ }, /*#__PURE__*/React.createElement(_Button.IconButton, {
202
+ variant: "secondary",
203
+ shape: "circular",
204
+ useTransparentBackground: true,
205
+ action: () => onClose()
172
206
  }, /*#__PURE__*/React.createElement(_SystemIcons.Close, {
173
207
  color: _styles.COLORS.warning_500,
174
208
  size: "24px"
175
- }))));
209
+ })))));
176
210
 
177
211
  case 'critical':
178
212
  return /*#__PURE__*/React.createElement(BannerContainer, {
@@ -180,22 +214,28 @@
180
214
  type: _styles.COLORS.critical_100,
181
215
  link: _styles.COLORS.critical_700,
182
216
  hover: _styles.COLORS.critical_20,
183
- bottom: bottom
217
+ bottom: bottom,
218
+ className: size
184
219
  }, /*#__PURE__*/React.createElement(BannerCenter, {
185
- color: _styles.COLORS.critical_700
186
- }, icon ? icon : /*#__PURE__*/React.createElement(_SystemIcons.Attention, {
220
+ color: _styles.COLORS.critical_700,
221
+ className: size
222
+ }, icon ? icon : noIcon ? null : /*#__PURE__*/React.createElement(_SystemIcons.Attention, {
187
223
  color: _styles.COLORS.critical_700,
188
224
  size: "24px"
189
- }), children, "\xA0\xA0", link && linkText && /*#__PURE__*/React.createElement("a", {
225
+ }), /*#__PURE__*/React.createElement(BannerContentWrapper, null, children, "\xA0\xA0", link && linkText && /*#__PURE__*/React.createElement("a", {
190
226
  href: link,
191
227
  target: "_blank"
192
- }, linkText), onClose && /*#__PURE__*/React.createElement(_Button.Button, {
193
- variant: "text",
194
- onClick: () => onClose()
228
+ }, linkText)), onClose && /*#__PURE__*/React.createElement(ButtonWrapper, {
229
+ type: formatTypeToLowerCase
230
+ }, /*#__PURE__*/React.createElement(_Button.IconButton, {
231
+ variant: "secondary",
232
+ shape: "circular",
233
+ useTransparentBackground: true,
234
+ action: () => onClose()
195
235
  }, /*#__PURE__*/React.createElement(_SystemIcons.Close, {
196
236
  color: _styles.COLORS.critical_500,
197
237
  size: "24px"
198
- }))));
238
+ })))));
199
239
 
200
240
  case 'positive':
201
241
  return /*#__PURE__*/React.createElement(BannerContainer, {
@@ -203,22 +243,28 @@
203
243
  type: _styles.COLORS.correct_100,
204
244
  link: _styles.COLORS.correct_700,
205
245
  hover: _styles.COLORS.correct_20,
206
- bottom: bottom
246
+ bottom: bottom,
247
+ className: size
207
248
  }, /*#__PURE__*/React.createElement(BannerCenter, {
208
- color: _styles.COLORS.correct_700
209
- }, icon ? icon : /*#__PURE__*/React.createElement(_SystemIcons.ThumbsUp, {
249
+ color: _styles.COLORS.correct_700,
250
+ className: size
251
+ }, icon ? icon : noIcon ? null : /*#__PURE__*/React.createElement(_SystemIcons.ThumbsUp, {
210
252
  color: _styles.COLORS.correct_700,
211
253
  size: "24px"
212
- }), children, "\xA0\xA0", link && linkText && /*#__PURE__*/React.createElement("a", {
254
+ }), /*#__PURE__*/React.createElement(BannerContentWrapper, null, children, "\xA0\xA0", link && linkText && /*#__PURE__*/React.createElement("a", {
213
255
  href: link,
214
256
  target: "_blank"
215
- }, linkText), onClose && /*#__PURE__*/React.createElement(_Button.Button, {
216
- variant: "text",
217
- onClick: () => onClose()
257
+ }, linkText)), onClose && /*#__PURE__*/React.createElement(ButtonWrapper, {
258
+ type: formatTypeToLowerCase
259
+ }, /*#__PURE__*/React.createElement(_Button.IconButton, {
260
+ variant: "secondary",
261
+ shape: "circular",
262
+ useTransparentBackground: true,
263
+ action: () => onClose()
218
264
  }, /*#__PURE__*/React.createElement(_SystemIcons.Close, {
219
265
  color: _styles.COLORS.correct_500,
220
266
  size: "24px"
221
- }))));
267
+ })))));
222
268
 
223
269
  default:
224
270
  return /*#__PURE__*/React.createElement(BannerContainer, {
@@ -226,26 +272,33 @@
226
272
  type: _styles.COLORS.primary_100,
227
273
  link: _styles.COLORS.primary_700,
228
274
  hover: _styles.COLORS.primary_20,
229
- bottom: bottom
275
+ bottom: bottom,
276
+ className: size
230
277
  }, /*#__PURE__*/React.createElement(BannerCenter, {
231
- color: _styles.COLORS.primary_700
232
- }, icon ? icon : /*#__PURE__*/React.createElement(_SystemIcons.Tip, {
278
+ color: _styles.COLORS.primary_700,
279
+ className: size
280
+ }, icon ? icon : noIcon ? null : /*#__PURE__*/React.createElement(_SystemIcons.Tip, {
233
281
  color: _styles.COLORS.primary_700,
234
282
  size: "24px"
235
- }), children, "\xA0\xA0", link && linkText && /*#__PURE__*/React.createElement("a", {
283
+ }), /*#__PURE__*/React.createElement(BannerContentWrapper, null, children, "\xA0\xA0", link && linkText && /*#__PURE__*/React.createElement("a", {
236
284
  href: link,
237
285
  target: "_blank"
238
- }, linkText), onClose && /*#__PURE__*/React.createElement(_Button.Button, {
239
- variant: "text",
240
- onClick: () => onClose()
286
+ }, linkText)), onClose && /*#__PURE__*/React.createElement(ButtonWrapper, {
287
+ type: "neutral"
288
+ }, /*#__PURE__*/React.createElement(_Button.IconButton, {
289
+ variant: "secondary",
290
+ shape: "circular",
291
+ useTransparentBackground: true,
292
+ action: () => onClose()
241
293
  }, /*#__PURE__*/React.createElement(_SystemIcons.Close, {
242
294
  color: _styles.COLORS.primary_500,
243
295
  size: "24px"
244
- }))));
296
+ })))));
245
297
  }
246
298
  };
247
299
 
248
300
  Banner.propTypes = {
301
+ size: _propTypes2.default.oneOf(['small', 'medium', 'large']),
249
302
  type: _propTypes2.default.string,
250
303
  link: _propTypes2.default.string,
251
304
  linkText: _propTypes2.default.string,
@@ -253,7 +306,8 @@
253
306
  bottom: _propTypes2.default.bool,
254
307
  testId: _propTypes2.default.string,
255
308
  icon: _propTypes2.default.node,
256
- onClose: _propTypes2.default.func
309
+ onClose: _propTypes2.default.func,
310
+ noIcon: _propTypes2.default.bool
257
311
  };
258
312
  exports.default = Banner;
259
313
  });