@elliemae/ds-accessibility 1.61.12 → 1.61.13
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSSkipTo.js","sources":["../../../src/skip-to/DSSkipTo.tsx"],"sourcesContent":["import React, { useCallback } from 'react';\nimport { describe } from 'react-desc';\nimport { propTypes } from './propTypes';\nimport type { DSSkipToPropsT as Props } from './index.d';\nimport { StyledButton } from './styles';\n\nconst DSSkipTo = (props: Props): JSX.Element => {\n const { goTo, message = 'Skip to main content' } = props;\n const handleOnClick = useCallback(() => {\n (document.getElementById(goTo) as HTMLElement).focus();\n }, [goTo]);\n return <StyledButton onClick={handleOnClick}>{message}</StyledButton>;\n};\n\nDSSkipTo.propTypes = propTypes;\nconst DSSkipToWithSchema = describe(DSSkipTo);\nDSSkipToWithSchema.propTypes = propTypes;\n\nexport { DSSkipTo, DSSkipToWithSchema };\n"],"names":["DSSkipTo","props","goTo","message","handleOnClick","useCallback","document","getElementById","focus","React","StyledButton","propTypes","DSSkipToWithSchema","describe"],"mappings":";;;;;;;;;;;;;;IAMMA,QAAQ,GAAG,SAAXA,QAAW,CAACC,KAAD,EAA+B;
|
|
1
|
+
{"version":3,"file":"DSSkipTo.js","sources":["../../../src/skip-to/DSSkipTo.tsx"],"sourcesContent":["import React, { useCallback } from 'react';\nimport { describe } from 'react-desc';\nimport { propTypes } from './propTypes';\nimport type { DSSkipToPropsT as Props } from './index.d';\nimport { StyledButton } from './styles';\n\nconst DSSkipTo = (props: Props): JSX.Element => {\n const { goTo, message = 'Skip to main content' } = props;\n const handleOnClick = useCallback(() => {\n (document.getElementById(goTo) as HTMLElement).focus();\n }, [goTo]);\n return <StyledButton onClick={handleOnClick}>{message}</StyledButton>;\n};\n\nDSSkipTo.propTypes = propTypes;\nconst DSSkipToWithSchema = describe(DSSkipTo);\nDSSkipToWithSchema.propTypes = propTypes;\n\nexport { DSSkipTo, DSSkipToWithSchema };\n"],"names":["DSSkipTo","props","goTo","message","handleOnClick","useCallback","document","getElementById","focus","React","StyledButton","propTypes","DSSkipToWithSchema","describe"],"mappings":";;;;;;;;;;;;;;IAMMA,QAAQ,GAAG,SAAXA,QAAW,CAACC,KAAD,EAA+B;EAC9C,IAAQC,IAAR,GAAmDD,KAAnD,CAAQC,IAAR;uBAAmDD,KAAnD,CAAcE,OAAd;MAAcA,OAAd,+BAAwB,sBAAxB;EACA,IAAMC,aAAa,GAAGC,iBAAW,CAAC,YAAM;IACrCC,QAAQ,CAACC,cAAT,CAAwBL,IAAxB,CAAD,CAA+CM,KAA/C;GAD+B,EAE9B,CAACN,IAAD,CAF8B,CAAjC;EAGA,oBAAOO,wCAACC,0BAAD;IAAc,OAAO,EAAEN;KAAgBD,OAAvC,CAAP;AACD;;AAEDH,QAAQ,CAACW,SAAT,GAAqBA,0BAArB;IACMC,kBAAkB,GAAGC,kBAAQ,CAACb,QAAD;AACnCY,kBAAkB,CAACD,SAAnB,GAA+BA,0BAA/B;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propTypes.js","sources":["../../../src/skip-to/propTypes.tsx"],"sourcesContent":["import { PropTypes } from 'react-desc';\n\nexport const propTypes = {\n goTo: PropTypes.string.isRequired.description(\"String containing content's id that you want to go.\"),\n message: PropTypes.string.description(\"Message for the Skip To component, default is 'Skip to main content'.\"),\n};\n"],"names":["propTypes","goTo","PropTypes","string","isRequired","description","message"],"mappings":";;;;;;IAEaA,SAAS,GAAG;
|
|
1
|
+
{"version":3,"file":"propTypes.js","sources":["../../../src/skip-to/propTypes.tsx"],"sourcesContent":["import { PropTypes } from 'react-desc';\n\nexport const propTypes = {\n goTo: PropTypes.string.isRequired.description(\"String containing content's id that you want to go.\"),\n message: PropTypes.string.description(\"Message for the Skip To component, default is 'Skip to main content'.\"),\n};\n"],"names":["propTypes","goTo","PropTypes","string","isRequired","description","message"],"mappings":";;;;;;IAEaA,SAAS,GAAG;EACvBC,IAAI,EAAEC,mBAAS,CAACC,MAAV,CAAiBC,UAAjB,CAA4BC,WAA5B,CAAwC,qDAAxC,CADiB;EAEvBC,OAAO,EAAEJ,mBAAS,CAACC,MAAV,CAAiBE,WAAjB,CAA6B,uEAA7B;AAFc;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../src/skip-to/styles.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nexport const StyledButton = styled.button`\n left: -999px;\n outline: none;\n position: absolute;\n top: auto;\n width: 1px;\n height: 1px;\n overflow: hidden;\n z-index: -999;\n &:focus,\n &:active {\n color: ${({ theme }) => theme.colors.brand[600]};\n background-color: ${({ theme }) => theme.colors.neutral['000']};\n text-decoration: underline;\n left: 0;\n top: 0;\n height: auto;\n cursor: pointer;\n width: fit-content;\n padding: ${({ theme }) => `${theme.space.xxxs} ${theme.space.xxs}`};\n border-radius: 2px;\n border: 2px solid ${({ theme }) => theme.colors.brand[700]};\n text-align: center;\n z-index: 999;\n overflow: auto;\n }\n`;\n"],"names":["StyledButton","styled","button","theme","colors","brand","neutral","space","xxxs","xxs"],"mappings":";;;;;;;;;;IAEaA,YAAY,gBAAGC,0BAAM,CAACC,MAAV;
|
|
1
|
+
{"version":3,"file":"styles.js","sources":["../../../src/skip-to/styles.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nexport const StyledButton = styled.button`\n left: -999px;\n outline: none;\n position: absolute;\n top: auto;\n width: 1px;\n height: 1px;\n overflow: hidden;\n z-index: -999;\n &:focus,\n &:active {\n color: ${({ theme }) => theme.colors.brand[600]};\n background-color: ${({ theme }) => theme.colors.neutral['000']};\n text-decoration: underline;\n left: 0;\n top: 0;\n height: auto;\n cursor: pointer;\n width: fit-content;\n padding: ${({ theme }) => `${theme.space.xxxs} ${theme.space.xxs}`};\n border-radius: 2px;\n border: 2px solid ${({ theme }) => theme.colors.brand[700]};\n text-align: center;\n z-index: 999;\n overflow: auto;\n }\n`;\n"],"names":["StyledButton","styled","button","theme","colors","brand","neutral","space","xxxs","xxs"],"mappings":";;;;;;;;;;IAEaA,YAAY,gBAAGC,0BAAM,CAACC,MAAV;EAAA;AAAA,uVAWZ;EAAA,IAAGC,KAAH,QAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,MAAN,CAAaC,KAAb,CAAmB,GAAnB,CAAf;AAAA,CAXY,EAYD;EAAA,IAAGF,KAAH,SAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,MAAN,CAAaE,OAAb,CAAqB,KAArB,CAAf;AAAA,CAZC,EAmBV;EAAA,IAAGH,KAAH,SAAGA,KAAH;EAAA,iBAAkBA,KAAK,CAACI,KAAN,CAAYC,IAA9B,cAAsCL,KAAK,CAACI,KAAN,CAAYE,GAAlD;AAAA,CAnBU,EAqBD;EAAA,IAAGN,KAAH,SAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,MAAN,CAAaC,KAAb,CAAmB,GAAnB,CAAf;AAAA,CArBC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSSkipTo.js","sources":["../../../src/skip-to/DSSkipTo.tsx"],"sourcesContent":["import React, { useCallback } from 'react';\nimport { describe } from 'react-desc';\nimport { propTypes } from './propTypes';\nimport type { DSSkipToPropsT as Props } from './index.d';\nimport { StyledButton } from './styles';\n\nconst DSSkipTo = (props: Props): JSX.Element => {\n const { goTo, message = 'Skip to main content' } = props;\n const handleOnClick = useCallback(() => {\n (document.getElementById(goTo) as HTMLElement).focus();\n }, [goTo]);\n return <StyledButton onClick={handleOnClick}>{message}</StyledButton>;\n};\n\nDSSkipTo.propTypes = propTypes;\nconst DSSkipToWithSchema = describe(DSSkipTo);\nDSSkipToWithSchema.propTypes = propTypes;\n\nexport { DSSkipTo, DSSkipToWithSchema };\n"],"names":["DSSkipTo","props","goTo","message","handleOnClick","useCallback","document","getElementById","focus","propTypes","DSSkipToWithSchema","describe"],"mappings":";;;;;;IAMMA,QAAQ,GAAG,SAAXA,QAAW,CAACC,KAAD,EAA+B;
|
|
1
|
+
{"version":3,"file":"DSSkipTo.js","sources":["../../../src/skip-to/DSSkipTo.tsx"],"sourcesContent":["import React, { useCallback } from 'react';\nimport { describe } from 'react-desc';\nimport { propTypes } from './propTypes';\nimport type { DSSkipToPropsT as Props } from './index.d';\nimport { StyledButton } from './styles';\n\nconst DSSkipTo = (props: Props): JSX.Element => {\n const { goTo, message = 'Skip to main content' } = props;\n const handleOnClick = useCallback(() => {\n (document.getElementById(goTo) as HTMLElement).focus();\n }, [goTo]);\n return <StyledButton onClick={handleOnClick}>{message}</StyledButton>;\n};\n\nDSSkipTo.propTypes = propTypes;\nconst DSSkipToWithSchema = describe(DSSkipTo);\nDSSkipToWithSchema.propTypes = propTypes;\n\nexport { DSSkipTo, DSSkipToWithSchema };\n"],"names":["DSSkipTo","props","goTo","message","handleOnClick","useCallback","document","getElementById","focus","propTypes","DSSkipToWithSchema","describe"],"mappings":";;;;;;IAMMA,QAAQ,GAAG,SAAXA,QAAW,CAACC,KAAD,EAA+B;EAC9C,IAAQC,IAAR,GAAmDD,KAAnD,CAAQC,IAAR;uBAAmDD,KAAnD,CAAcE,OAAd;MAAcA,OAAd,+BAAwB,sBAAxB;EACA,IAAMC,aAAa,GAAGC,WAAW,CAAC,YAAM;IACrCC,QAAQ,CAACC,cAAT,CAAwBL,IAAxB,CAAD,CAA+CM,KAA/C;GAD+B,EAE9B,CAACN,IAAD,CAF8B,CAAjC;EAGA,oBAAO,oBAAC,YAAD;IAAc,OAAO,EAAEE;KAAgBD,OAAvC,CAAP;AACD;;AAEDH,QAAQ,CAACS,SAAT,GAAqBA,SAArB;IACMC,kBAAkB,GAAGC,QAAQ,CAACX,QAAD;AACnCU,kBAAkB,CAACD,SAAnB,GAA+BA,SAA/B;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propTypes.js","sources":["../../../src/skip-to/propTypes.tsx"],"sourcesContent":["import { PropTypes } from 'react-desc';\n\nexport const propTypes = {\n goTo: PropTypes.string.isRequired.description(\"String containing content's id that you want to go.\"),\n message: PropTypes.string.description(\"Message for the Skip To component, default is 'Skip to main content'.\"),\n};\n"],"names":["propTypes","goTo","PropTypes","string","isRequired","description","message"],"mappings":";;IAEaA,SAAS,GAAG;
|
|
1
|
+
{"version":3,"file":"propTypes.js","sources":["../../../src/skip-to/propTypes.tsx"],"sourcesContent":["import { PropTypes } from 'react-desc';\n\nexport const propTypes = {\n goTo: PropTypes.string.isRequired.description(\"String containing content's id that you want to go.\"),\n message: PropTypes.string.description(\"Message for the Skip To component, default is 'Skip to main content'.\"),\n};\n"],"names":["propTypes","goTo","PropTypes","string","isRequired","description","message"],"mappings":";;IAEaA,SAAS,GAAG;EACvBC,IAAI,EAAEC,SAAS,CAACC,MAAV,CAAiBC,UAAjB,CAA4BC,WAA5B,CAAwC,qDAAxC,CADiB;EAEvBC,OAAO,EAAEJ,SAAS,CAACC,MAAV,CAAiBE,WAAjB,CAA6B,uEAA7B;AAFc;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../src/skip-to/styles.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nexport const StyledButton = styled.button`\n left: -999px;\n outline: none;\n position: absolute;\n top: auto;\n width: 1px;\n height: 1px;\n overflow: hidden;\n z-index: -999;\n &:focus,\n &:active {\n color: ${({ theme }) => theme.colors.brand[600]};\n background-color: ${({ theme }) => theme.colors.neutral['000']};\n text-decoration: underline;\n left: 0;\n top: 0;\n height: auto;\n cursor: pointer;\n width: fit-content;\n padding: ${({ theme }) => `${theme.space.xxxs} ${theme.space.xxs}`};\n border-radius: 2px;\n border: 2px solid ${({ theme }) => theme.colors.brand[700]};\n text-align: center;\n z-index: 999;\n overflow: auto;\n }\n`;\n"],"names":["StyledButton","styled","button","theme","colors","brand","neutral","space","xxxs","xxs"],"mappings":";;IAEaA,YAAY,gBAAGC,MAAM,CAACC,MAAV;
|
|
1
|
+
{"version":3,"file":"styles.js","sources":["../../../src/skip-to/styles.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nexport const StyledButton = styled.button`\n left: -999px;\n outline: none;\n position: absolute;\n top: auto;\n width: 1px;\n height: 1px;\n overflow: hidden;\n z-index: -999;\n &:focus,\n &:active {\n color: ${({ theme }) => theme.colors.brand[600]};\n background-color: ${({ theme }) => theme.colors.neutral['000']};\n text-decoration: underline;\n left: 0;\n top: 0;\n height: auto;\n cursor: pointer;\n width: fit-content;\n padding: ${({ theme }) => `${theme.space.xxxs} ${theme.space.xxs}`};\n border-radius: 2px;\n border: 2px solid ${({ theme }) => theme.colors.brand[700]};\n text-align: center;\n z-index: 999;\n overflow: auto;\n }\n`;\n"],"names":["StyledButton","styled","button","theme","colors","brand","neutral","space","xxxs","xxs"],"mappings":";;IAEaA,YAAY,gBAAGC,MAAM,CAACC,MAAV;EAAA;AAAA,uVAWZ;EAAA,IAAGC,KAAH,QAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,MAAN,CAAaC,KAAb,CAAmB,GAAnB,CAAf;AAAA,CAXY,EAYD;EAAA,IAAGF,KAAH,SAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,MAAN,CAAaE,OAAb,CAAqB,KAArB,CAAf;AAAA,CAZC,EAmBV;EAAA,IAAGH,KAAH,SAAGA,KAAH;EAAA,iBAAkBA,KAAK,CAACI,KAAN,CAAYC,IAA9B,cAAsCL,KAAK,CAACI,KAAN,CAAYE,GAAlD;AAAA,CAnBU,EAqBD;EAAA,IAAGN,KAAH,SAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,MAAN,CAAaC,KAAb,CAAmB,GAAnB,CAAf;AAAA,CArBC;;;;"}
|