@laerdal/life-react-components 1.6.0-dev.3 → 1.6.0-dev.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -29,7 +29,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
29
29
|
|
|
30
30
|
var SkipToContentLink = _styledComponents.default.a(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n ", "\n\n text-decoration: underline;\n"])), (0, _typography.ComponentSStyling)(_styles.ComponentTextStyle.Bold, _styles.COLORS.black));
|
|
31
31
|
|
|
32
|
-
var SkipToContentWrapper = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n text-decoration: none;\n z-index: -1000;\n height: 0px;\n overflow-x: hidden;\n\n &:focus-within {\n height: auto;\n padding: 16px;\n z-index: 100000;\n flex: 1
|
|
32
|
+
var SkipToContentWrapper = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n text-decoration: none;\n z-index: -1000;\n height: 0px;\n overflow-x: hidden;\n\n &:focus-within {\n height: auto;\n padding: 16px;\n z-index: 100000;\n flex: 1 0 auto;\n background: ", ";\n }\n\n @media print {\n display: none;\n }\n"])), _styles.COLORS.accent2_200);
|
|
33
33
|
|
|
34
34
|
var SkipToContent = function SkipToContent(_ref) {
|
|
35
35
|
var children = _ref.children;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/SkipToContent/SkipToContent.tsx"],"names":["SkipToContentLink","styled","a","ComponentTextStyle","Bold","COLORS","black","SkipToContentWrapper","div","accent2_200","SkipToContent","children"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;;;;;AAIA,IAAMA,iBAAiB,GAAGC,0BAAOC,CAAV,+HACnB,mCAAkBC,2BAAmBC,IAArC,EAA2CC,eAAOC,KAAlD,CADmB,CAAvB;;AAMA,IAAMC,oBAAoB,GAAGN,0BAAOO,GAAV,6VAWRH,eAAOI,WAXC,CAA1B;;AAmBA,IAAMC,aAA0D,GAAG,SAA7DA,aAA6D,OAAkB;AAAA,MAAfC,QAAe,QAAfA,QAAe;AACnF,sBACE,qBAAC,oBAAD;AAAA,2BACE,qBAAC,iBAAD;AAAmB,MAAA,IAAI,EAAC,OAAxB;AAAA,gBAAiCA;AAAjC;AADF,IADF;AAKD,CAND;;eAQeD,a","sourcesContent":["import * as React from 'react';\nimport styled from 'styled-components';\n\nimport { COLORS, ComponentTextStyle, TYPOGRAPHY } from '../styles';\nimport { ComponentSStyling } from '../styles/typography';\n\ntype SkipToContentProps = {};\n\nconst SkipToContentLink = styled.a`\n ${ComponentSStyling(ComponentTextStyle.Bold, COLORS.black)}\n\n text-decoration: underline;\n`;\n\nconst SkipToContentWrapper = styled.div`\n text-decoration: none;\n z-index: -1000;\n height: 0px;\n overflow-x: hidden;\n\n &:focus-within {\n height: auto;\n padding: 16px;\n z-index: 100000;\n flex: 1
|
|
1
|
+
{"version":3,"sources":["../../src/SkipToContent/SkipToContent.tsx"],"names":["SkipToContentLink","styled","a","ComponentTextStyle","Bold","COLORS","black","SkipToContentWrapper","div","accent2_200","SkipToContent","children"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;;;;;AAIA,IAAMA,iBAAiB,GAAGC,0BAAOC,CAAV,+HACnB,mCAAkBC,2BAAmBC,IAArC,EAA2CC,eAAOC,KAAlD,CADmB,CAAvB;;AAMA,IAAMC,oBAAoB,GAAGN,0BAAOO,GAAV,6VAWRH,eAAOI,WAXC,CAA1B;;AAmBA,IAAMC,aAA0D,GAAG,SAA7DA,aAA6D,OAAkB;AAAA,MAAfC,QAAe,QAAfA,QAAe;AACnF,sBACE,qBAAC,oBAAD;AAAA,2BACE,qBAAC,iBAAD;AAAmB,MAAA,IAAI,EAAC,OAAxB;AAAA,gBAAiCA;AAAjC;AADF,IADF;AAKD,CAND;;eAQeD,a","sourcesContent":["import * as React from 'react';\nimport styled from 'styled-components';\n\nimport { COLORS, ComponentTextStyle, TYPOGRAPHY } from '../styles';\nimport { ComponentSStyling } from '../styles/typography';\n\ntype SkipToContentProps = {};\n\nconst SkipToContentLink = styled.a`\n ${ComponentSStyling(ComponentTextStyle.Bold, COLORS.black)}\n\n text-decoration: underline;\n`;\n\nconst SkipToContentWrapper = styled.div`\n text-decoration: none;\n z-index: -1000;\n height: 0px;\n overflow-x: hidden;\n\n &:focus-within {\n height: auto;\n padding: 16px;\n z-index: 100000;\n flex: 1 0 auto;\n background: ${COLORS.accent2_200};\n }\n\n @media print {\n display: none;\n }\n`;\n\nconst SkipToContent: React.FunctionComponent<SkipToContentProps> = ({ children }) => {\n return (\n <SkipToContentWrapper>\n <SkipToContentLink href=\"#main\">{children}</SkipToContentLink>\n </SkipToContentWrapper>\n );\n};\n\nexport default SkipToContent;\n"],"file":"SkipToContent.cjs"}
|
|
@@ -8,7 +8,7 @@ import { COLORS, ComponentTextStyle } from '../styles';
|
|
|
8
8
|
import { ComponentSStyling } from '../styles/typography';
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
var SkipToContentLink = styled.a(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n text-decoration: underline;\n"])), ComponentSStyling(ComponentTextStyle.Bold, COLORS.black));
|
|
11
|
-
var SkipToContentWrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n text-decoration: none;\n z-index: -1000;\n height: 0px;\n overflow-x: hidden;\n\n &:focus-within {\n height: auto;\n padding: 16px;\n z-index: 100000;\n flex: 1
|
|
11
|
+
var SkipToContentWrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n text-decoration: none;\n z-index: -1000;\n height: 0px;\n overflow-x: hidden;\n\n &:focus-within {\n height: auto;\n padding: 16px;\n z-index: 100000;\n flex: 1 0 auto;\n background: ", ";\n }\n\n @media print {\n display: none;\n }\n"])), COLORS.accent2_200);
|
|
12
12
|
|
|
13
13
|
var SkipToContent = function SkipToContent(_ref) {
|
|
14
14
|
var children = _ref.children;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/SkipToContent/SkipToContent.tsx"],"names":["React","styled","COLORS","ComponentTextStyle","ComponentSStyling","SkipToContentLink","a","Bold","black","SkipToContentWrapper","div","accent2_200","SkipToContent","children"],"mappings":";;;;AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AAEA,SAASC,MAAT,EAAiBC,kBAAjB,QAAuD,WAAvD;AACA,SAASC,iBAAT,QAAkC,sBAAlC;;AAIA,IAAMC,iBAAiB,GAAGJ,MAAM,CAACK,CAAV,iHACnBF,iBAAiB,CAACD,kBAAkB,CAACI,IAApB,EAA0BL,MAAM,CAACM,KAAjC,CADE,CAAvB;AAMA,IAAMC,oBAAoB,GAAGR,MAAM,CAACS,GAAV,+UAWRR,MAAM,CAACS,WAXC,CAA1B;;AAmBA,IAAMC,aAA0D,GAAG,SAA7DA,aAA6D,OAAkB;AAAA,MAAfC,QAAe,QAAfA,QAAe;AACnF,sBACE,KAAC,oBAAD;AAAA,2BACE,KAAC,iBAAD;AAAmB,MAAA,IAAI,EAAC,OAAxB;AAAA,gBAAiCA;AAAjC;AADF,IADF;AAKD,CAND;;AAQA,eAAeD,aAAf","sourcesContent":["import * as React from 'react';\nimport styled from 'styled-components';\n\nimport { COLORS, ComponentTextStyle, TYPOGRAPHY } from '../styles';\nimport { ComponentSStyling } from '../styles/typography';\n\ntype SkipToContentProps = {};\n\nconst SkipToContentLink = styled.a`\n ${ComponentSStyling(ComponentTextStyle.Bold, COLORS.black)}\n\n text-decoration: underline;\n`;\n\nconst SkipToContentWrapper = styled.div`\n text-decoration: none;\n z-index: -1000;\n height: 0px;\n overflow-x: hidden;\n\n &:focus-within {\n height: auto;\n padding: 16px;\n z-index: 100000;\n flex: 1
|
|
1
|
+
{"version":3,"sources":["../../src/SkipToContent/SkipToContent.tsx"],"names":["React","styled","COLORS","ComponentTextStyle","ComponentSStyling","SkipToContentLink","a","Bold","black","SkipToContentWrapper","div","accent2_200","SkipToContent","children"],"mappings":";;;;AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AAEA,SAASC,MAAT,EAAiBC,kBAAjB,QAAuD,WAAvD;AACA,SAASC,iBAAT,QAAkC,sBAAlC;;AAIA,IAAMC,iBAAiB,GAAGJ,MAAM,CAACK,CAAV,iHACnBF,iBAAiB,CAACD,kBAAkB,CAACI,IAApB,EAA0BL,MAAM,CAACM,KAAjC,CADE,CAAvB;AAMA,IAAMC,oBAAoB,GAAGR,MAAM,CAACS,GAAV,+UAWRR,MAAM,CAACS,WAXC,CAA1B;;AAmBA,IAAMC,aAA0D,GAAG,SAA7DA,aAA6D,OAAkB;AAAA,MAAfC,QAAe,QAAfA,QAAe;AACnF,sBACE,KAAC,oBAAD;AAAA,2BACE,KAAC,iBAAD;AAAmB,MAAA,IAAI,EAAC,OAAxB;AAAA,gBAAiCA;AAAjC;AADF,IADF;AAKD,CAND;;AAQA,eAAeD,aAAf","sourcesContent":["import * as React from 'react';\nimport styled from 'styled-components';\n\nimport { COLORS, ComponentTextStyle, TYPOGRAPHY } from '../styles';\nimport { ComponentSStyling } from '../styles/typography';\n\ntype SkipToContentProps = {};\n\nconst SkipToContentLink = styled.a`\n ${ComponentSStyling(ComponentTextStyle.Bold, COLORS.black)}\n\n text-decoration: underline;\n`;\n\nconst SkipToContentWrapper = styled.div`\n text-decoration: none;\n z-index: -1000;\n height: 0px;\n overflow-x: hidden;\n\n &:focus-within {\n height: auto;\n padding: 16px;\n z-index: 100000;\n flex: 1 0 auto;\n background: ${COLORS.accent2_200};\n }\n\n @media print {\n display: none;\n }\n`;\n\nconst SkipToContent: React.FunctionComponent<SkipToContentProps> = ({ children }) => {\n return (\n <SkipToContentWrapper>\n <SkipToContentLink href=\"#main\">{children}</SkipToContentLink>\n </SkipToContentWrapper>\n );\n};\n\nexport default SkipToContent;\n"],"file":"SkipToContent.js"}
|