@cruk/cruk-react-components 1.0.0 → 1.0.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.
- package/CHANGELOG.md +36 -2
- package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Lock.js +1 -1
- package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Lock.js.map +1 -1
- package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Trap.js +1 -1
- package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Trap.js.map +1 -1
- package/lib/cjs/src/components/AddressLookup/index.js +1 -1
- package/lib/cjs/src/components/Avatar/index.js +1 -1
- package/lib/cjs/src/components/Avatar/styles.js +1 -1
- package/lib/cjs/src/components/Badge/styles.js +1 -1
- package/lib/cjs/src/components/Box/styles.js +1 -1
- package/lib/cjs/src/components/Button/index.js +1 -1
- package/lib/cjs/src/components/Button/styles.js +1 -1
- package/lib/cjs/src/components/Checkbox/index.js +1 -1
- package/lib/cjs/src/components/Checkbox/styles.js +1 -1
- package/lib/cjs/src/components/Collapse/index.js +1 -1
- package/lib/cjs/src/components/Collapse/styles.js +1 -1
- package/lib/cjs/src/components/Divider.js +1 -1
- package/lib/cjs/src/components/ErrorText/index.js +1 -1
- package/lib/cjs/src/components/ErrorText/styles.js +1 -1
- package/lib/cjs/src/components/Flex.js +1 -1
- package/lib/cjs/src/components/Footer/index.js +1 -1
- package/lib/cjs/src/components/GlobalStyle.js +1 -1
- package/lib/cjs/src/components/Header/index.js +1 -1
- package/lib/cjs/src/components/Header/styles.js +1 -1
- package/lib/cjs/src/components/Heading/styles.js +1 -1
- package/lib/cjs/src/components/Icon/index.js +1 -1
- package/lib/cjs/src/components/Icon/styles.js +1 -1
- package/lib/cjs/src/components/Link/styles.js +1 -1
- package/lib/cjs/src/components/Modal/index.js +1 -1
- package/lib/cjs/src/components/Modal/styles.js +1 -1
- package/lib/cjs/src/components/Pagination/index.js +1 -1
- package/lib/cjs/src/components/Pagination/styles.js +1 -1
- package/lib/cjs/src/components/PopOver/index.js +1 -1
- package/lib/cjs/src/components/PopOver/styles.js +1 -1
- package/lib/cjs/src/components/ProgressBar/index.js +1 -1
- package/lib/cjs/src/components/ProgressBar/styles.js +1 -1
- package/lib/cjs/src/components/Radio/index.js +1 -1
- package/lib/cjs/src/components/Radio/styles.js +1 -1
- package/lib/cjs/src/components/RadioConsent/styles.js +1 -1
- package/lib/cjs/src/components/Select/index.js +1 -1
- package/lib/cjs/src/components/Select/styles.js +1 -1
- package/lib/cjs/src/components/Spacing/index.js +1 -1
- package/lib/cjs/src/components/Step/index.js +1 -1
- package/lib/cjs/src/components/Step/styles.js +1 -1
- package/lib/cjs/src/components/Text/styles.js +1 -1
- package/lib/cjs/src/components/TextAreaField/index.js +1 -1
- package/lib/cjs/src/components/TextAreaField/styles.js +1 -1
- package/lib/cjs/src/components/TextField/index.js +1 -1
- package/lib/cjs/src/components/TextField/styles.js +1 -1
- package/lib/cjs/src/components/Totaliser/index.js +1 -1
- package/lib/cjs/src/components/Totaliser/styles.js +1 -1
- package/lib/cjs/src/components/UserBlock/index.js +1 -1
- package/lib/cjs/src/hooks/useLayoutEffectBrowser.js +1 -1
- package/lib/cjs/src/hooks/useScrollPosition.js +1 -1
- package/lib/cjs/src/themes/cruk.js +1 -1
- package/lib/cjs/src/themes/su2c.js +1 -1
- package/lib/cjs/src/utils/Helper.js +1 -1
- package/lib/components/AddressLookup/index.d.ts +2 -2
- package/lib/components/Avatar/styles.d.ts +3 -1
- package/lib/components/Badge/index.d.ts +1 -1
- package/lib/components/Badge/styles.d.ts +2 -2
- package/lib/components/Box/index.d.ts +2 -2
- package/lib/components/Box/styles.d.ts +5 -2
- package/lib/components/Button/Button.stories.d.ts +1 -1
- package/lib/components/Button/index.d.ts +1 -1
- package/lib/components/Button/styles.d.ts +2 -2
- package/lib/components/Checkbox/styles.d.ts +2 -0
- package/lib/components/Collapse/index.d.ts +1 -1
- package/lib/components/Collapse/styles.d.ts +3 -3
- package/lib/components/DateField/index.d.ts +1 -1
- package/lib/components/ErrorText/index.d.ts +4 -4
- package/lib/components/ErrorText/styles.d.ts +2 -1
- package/lib/components/Flex.d.ts +2 -4
- package/lib/components/Header/index.d.ts +1 -1
- package/lib/components/Heading/index.d.ts +2 -2
- package/lib/components/Heading/styles.d.ts +2 -2
- package/lib/components/Icon/styles.d.ts +1 -0
- package/lib/components/LabelWrapper/styles.d.ts +1 -1
- package/lib/components/LegendWrapper/styles.d.ts +3 -3
- package/lib/components/Link/index.d.ts +2 -2
- package/lib/components/Link/styles.d.ts +6 -6
- package/lib/components/Loader/index.d.ts +1 -1
- package/lib/components/Modal/index.d.ts +2 -2
- package/lib/components/Pagination/index.d.ts +3 -3
- package/lib/components/PopOver/index.d.ts +1 -1
- package/lib/components/PopOver/styles.d.ts +1 -1
- package/lib/components/ProgressBar/styles.d.ts +2 -2
- package/lib/components/Radio/styles.d.ts +10 -3
- package/lib/components/RadioConsent/styles.d.ts +7 -4
- package/lib/components/Select/styles.d.ts +4 -3
- package/lib/components/Spacing/index.d.ts +1 -1
- package/lib/components/Text/index.d.ts +2 -2
- package/lib/components/Text/styles.d.ts +4 -4
- package/lib/components/TextAreaField/index.d.ts +1 -1
- package/lib/components/TextAreaField/styles.d.ts +4 -3
- package/lib/components/TextField/styles.d.ts +1 -1
- package/lib/components/Totaliser/styles.d.ts +5 -8
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Lock.js +1 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Lock.js.map +1 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Trap.js +1 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Trap.js.map +1 -1
- package/lib/es/src/components/AddressLookup/index.js +1 -1
- package/lib/es/src/components/Avatar/index.js +1 -1
- package/lib/es/src/components/Avatar/styles.js +1 -1
- package/lib/es/src/components/Badge/styles.js +1 -1
- package/lib/es/src/components/Box/styles.js +1 -1
- package/lib/es/src/components/Button/index.js +1 -1
- package/lib/es/src/components/Button/styles.js +1 -1
- package/lib/es/src/components/Checkbox/index.js +1 -1
- package/lib/es/src/components/Checkbox/styles.js +1 -1
- package/lib/es/src/components/Collapse/index.js +1 -1
- package/lib/es/src/components/Collapse/styles.js +1 -1
- package/lib/es/src/components/Divider.js +1 -1
- package/lib/es/src/components/ErrorText/index.js +1 -1
- package/lib/es/src/components/ErrorText/styles.js +1 -1
- package/lib/es/src/components/Flex.js +1 -1
- package/lib/es/src/components/Footer/index.js +1 -1
- package/lib/es/src/components/GlobalStyle.js +1 -1
- package/lib/es/src/components/Header/index.js +1 -1
- package/lib/es/src/components/Header/styles.js +1 -1
- package/lib/es/src/components/Heading/styles.js +1 -1
- package/lib/es/src/components/Icon/index.js +1 -1
- package/lib/es/src/components/Icon/styles.js +1 -1
- package/lib/es/src/components/Link/styles.js +1 -1
- package/lib/es/src/components/Modal/index.js +1 -1
- package/lib/es/src/components/Modal/styles.js +1 -1
- package/lib/es/src/components/Pagination/index.js +1 -1
- package/lib/es/src/components/Pagination/styles.js +1 -1
- package/lib/es/src/components/PopOver/index.js +1 -1
- package/lib/es/src/components/PopOver/styles.js +1 -1
- package/lib/es/src/components/ProgressBar/index.js +1 -1
- package/lib/es/src/components/ProgressBar/styles.js +1 -1
- package/lib/es/src/components/Radio/index.js +1 -1
- package/lib/es/src/components/Radio/styles.js +1 -1
- package/lib/es/src/components/RadioConsent/styles.js +1 -1
- package/lib/es/src/components/Select/index.js +1 -1
- package/lib/es/src/components/Select/styles.js +1 -1
- package/lib/es/src/components/Spacing/index.js +1 -1
- package/lib/es/src/components/Step/index.js +1 -1
- package/lib/es/src/components/Step/styles.js +1 -1
- package/lib/es/src/components/Text/styles.js +1 -1
- package/lib/es/src/components/TextAreaField/index.js +1 -1
- package/lib/es/src/components/TextAreaField/styles.js +1 -1
- package/lib/es/src/components/TextField/index.js +1 -1
- package/lib/es/src/components/TextField/styles.js +1 -1
- package/lib/es/src/components/Totaliser/index.js +1 -1
- package/lib/es/src/components/Totaliser/styles.js +1 -1
- package/lib/es/src/components/UserBlock/index.js +1 -1
- package/lib/es/src/hooks/useLayoutEffectBrowser.js +1 -1
- package/lib/es/src/hooks/useScrollPosition.js +1 -1
- package/lib/es/src/themes/cruk.js +1 -1
- package/lib/es/src/themes/su2c.js +1 -1
- package/lib/es/src/utils/Helper.js +1 -1
- package/lib/hooks/useKey.d.ts +2 -2
- package/lib/hooks/useLayoutEffectBrowser.d.ts +2 -1
- package/lib/hooks/useScrollPosition.d.ts +12 -1
- package/lib/types.d.ts +6 -2
- package/package.json +35 -21
- package/lib/stories/Button.d.ts +0 -28
- package/lib/stories/Header.d.ts +0 -9
- package/lib/stories/Header.stories.d.ts +0 -6
- package/lib/stories/Page.d.ts +0 -9
- package/lib/stories/Page.stories.d.ts +0 -6
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import t from"styled-components";import i from"../../themes/cruk.js";var e,o,r,d,
|
|
1
|
+
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import t from"styled-components";import i from"../../themes/cruk.js";var e,o,r,a,d,h,l,s,u,p=i.spacing.s,c=t.header(e||(e=n(["\n box-sizing: border-box;\n position: relative;\n width: 100%;\n background-color: ",";\n z-index: 9998;\n"],["\n box-sizing: border-box;\n position: relative;\n width: 100%;\n background-color: ",";\n z-index: 9998;\n"])),(function(n){return n.theme.colors.headerBackground})),m=t.div(o||(o=n(["\n box-sizing: border-box;\n width: 100%;\n height: ",";\n\n @media (min-width: ",") {\n height: ",";\n }\n"],["\n box-sizing: border-box;\n width: 100%;\n height: ",";\n\n @media (min-width: ",") {\n height: ",";\n }\n"])),"72px",(function(n){return n.theme.breakpoint.desktop}),"120px"),f=t.div(r||(r=n(["\n width: 100%;\n padding: 0;\n background-color: ",";\n position: relative;\n border-bottom: ",";\n padding: 0 ",";\n height: ",";\n\n top: ",";\n position: ",";\n\n @media (min-width: ",") {\n position: ",";\n height: ",";\n }\n"],["\n width: 100%;\n padding: 0;\n background-color: ",";\n position: relative;\n border-bottom: ",";\n padding: 0 ",";\n height: ",";\n\n top: ",";\n position: ",";\n\n @media (min-width: ",") {\n position: ",";\n height: ",";\n }\n"])),(function(n){return n.theme.colors.headerBackground}),(function(n){var t=n.theme.colors.headerBorder;return"solid 1px ".concat(t)}),p,"72px",(function(n){return n.isSticky?0:"auto"}),(function(n){return n.isSticky?"fixed":"relative"}),(function(n){return n.theme.breakpoint.desktop}),(function(n){var t=n.isSticky,i=n.isSmall;return t&&i?"fixed":"relative"}),(function(n){var t=n.isSmall,i=n.isSticky;return t&&i?"72px":"120px"})),x=t.div(a||(a=n(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n height: 100%;\n max-width: ",";\n margin: 0 auto;\n"],["\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n height: 100%;\n max-width: ",";\n margin: 0 auto;\n"])),(function(n){var t=n.fullWidth,i=n.theme.utilities.contentMaxWidth;return t?"100%":i})),g=t.img(d||(d=n(["\n height: 100%;\n width: auto;\n max-width: 100%;\n max-height: 100%;\n"],["\n height: 100%;\n width: auto;\n max-width: 100%;\n max-height: 100%;\n"]))),w=t.div(h||(h=n(["\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n width: auto;\n\n height: ",";\n\n @media (min-width: ",") {\n height: ",";\n }\n"],["\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n width: auto;\n\n height: ",";\n\n @media (min-width: ",") {\n height: ",";\n }\n"])),"40px",(function(n){return n.theme.breakpoint.desktop}),(function(n){var t=n.isSmall,i=n.isSticky;return t&&i?"40px":"80px"})),b=t.a(l||(l=n(["\n display: inline-block;\n"],["\n display: inline-block;\n"]))),y=t.a(s||(s=n(["\n left: -999px;\n position: absolute;\n top: auto;\n width: 1px;\n height: 1px;\n overflow: hidden;\n z-index: -999;\n &:focus,\n &:active,\n &:focus-within {\n left: auto;\n top: auto;\n width: 30%;\n height: auto;\n overflow: auto;\n margin: 10px 35%;\n padding: ",";\n border-radius: 15px;\n border: 4px solid yellow;\n text-align: center;\n font-size: 1.2em;\n z-index: 999;\n }\n"],["\n left: -999px;\n position: absolute;\n top: auto;\n width: 1px;\n height: 1px;\n overflow: hidden;\n z-index: -999;\n &:focus,\n &:active,\n &:focus-within {\n left: auto;\n top: auto;\n width: 30%;\n height: auto;\n overflow: auto;\n margin: 10px 35%;\n padding: ",";\n border-radius: 15px;\n border: 4px solid yellow;\n text-align: center;\n font-size: 1.2em;\n z-index: 999;\n }\n"])),(function(n){return n.theme.spacing.xs})),k=t.p(u||(u=n(["\n flex: 1 1 auto;\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n color: ",";\n text-align: center;\n\n display: none;\n\n @media (min-width: ",") {\n display: ",";\n }\n"],["\n flex: 1 1 auto;\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n color: ",";\n text-align: center;\n\n display: none;\n\n @media (min-width: ",") {\n display: ",";\n }\n"])),(function(n){return n.theme.typography.fontFamilyHeadings}),(function(n){return n.theme.typography.fontWeightLight}),(function(n){return n.theme.fontSizes.xl}),(function(n){return n.theme.colors.primary}),(function(n){return n.theme.breakpoint.desktop}),(function(n){var t=n.isSmall,i=n.isSticky;return t&&i?"none":"block"}));export{x as HeaderMainContent,f as HeaderStickyContainer,m as HeaderStickyPlaceHolder,g as Logo,w as LogoWrapper,y as SkipToMain,c as StyledHeader,b as StyledLink,k as Tagline};
|
|
2
2
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__makeTemplateObject as n,__rest as t}from"../../../node_modules/tslib/tslib.es6.js";import e,{css as i}from"styled-components";import{Spacing as r}from"../Spacing/index.js";var o,f,u,m,a,s,l,x=function(e){return i(o||(o=n(["\n font-family: ",";\n word-break: ",";\n font-weight: ",";\n color: ",";\n line-height: ",";\n text-transform: ",";\n margin-top: ",";\n margin-bottom: ",";\n max-width: 100%;\n text-align: ",";\n\n &:first-child {\n margin-top: 0;\n }\n\n ","\n"],["\n font-family: ",";\n word-break: ",";\n font-weight: ",";\n color: ",";\n line-height: ",";\n text-transform: ",";\n margin-top: ",";\n margin-bottom: ",";\n max-width: 100%;\n text-align: ",";\n\n &:first-child {\n margin-top: 0;\n }\n\n ","\n"])),(function(n){return n.theme.typography.fontFamilyHeadings}),(function(){return e.wordBreak||"normal"}),(function(n){return n.theme.typography.fontWeightMedium}),(function(n){var t=n.theme.colors,e=n.textColor;return e&&void 0!==t[e]?t[e]:e||t.textDark}),(function(n){return n.theme.typography.headerLineHeight}),(function(n){return n.theme.typography.headerTextTransform}),(function(n){return n.theme.spacing.m}),(function(n){return n.theme.spacing.s}),(function(n){
|
|
1
|
+
import{__makeTemplateObject as n,__rest as t}from"../../../node_modules/tslib/tslib.es6.js";import e,{css as i}from"styled-components";import{Spacing as r}from"../Spacing/index.js";var o,f,u,m,a,s,l,x=function(e){return i(o||(o=n(["\n font-family: ",";\n word-break: ",";\n font-weight: ",";\n color: ",";\n line-height: ",";\n text-transform: ",";\n margin-top: ",";\n margin-bottom: ",";\n max-width: 100%;\n text-align: ",";\n\n &:first-child {\n margin-top: 0;\n }\n\n ","\n"],["\n font-family: ",";\n word-break: ",";\n font-weight: ",";\n color: ",";\n line-height: ",";\n text-transform: ",";\n margin-top: ",";\n margin-bottom: ",";\n max-width: 100%;\n text-align: ",";\n\n &:first-child {\n margin-top: 0;\n }\n\n ","\n"])),(function(n){return n.theme.typography.fontFamilyHeadings}),(function(){return e.wordBreak||"normal"}),(function(n){return n.theme.typography.fontWeightMedium}),(function(n){var t=n.theme.colors,e=n.textColor;return e&&void 0!==t[e]?t[e]:e||t.textDark}),(function(n){return n.theme.typography.headerLineHeight}),(function(n){return n.theme.typography.headerTextTransform}),(function(n){return n.theme.spacing.m}),(function(n){return n.theme.spacing.s}),(function(n){return n.textAlign||"left"}),(function(){e.theme;var n=t(e,["theme"]);return r(n,e.theme)}))},h=function(n,t,e){switch(n){case"m":return e.fontSizes.m;case"l":return e.fontSizes.l;case"xl":return e.fontSizes.xl;case"xxl":return e.fontSizes.xxl;case"xxxl":return e.fontSizes.xxxl;case"xxxxl":return e.fontSizes.xxxxl;default:return t}},z=function(n,t,e){switch(n){case"m":return e.fontSizes.m;case"l":case"xl":return e.fontSizes.l;case"xxl":return e.fontSizes.xl;case"xxxl":return e.fontSizes.xxl;case"xxxxl":return e.fontSizes.xxxl;default:return t}},c=function(n,t,e){switch(n){case"m":return e.fontSizes.m;case"l":case"xl":case"xxl":return e.fontSizes.l;case"xxxl":return e.fontSizes.xl;case"xxxxl":return e.fontSizes.xxl;default:return t}},d=e.h1(f||(f=n(["\n ","\n font-size: ",";\n @media (min-width: ",") {\n font-size: ",";\n }\n @media (min-width: ",") {\n font-size: ",";\n } ;\n"],["\n ","\n font-size: ",";\n @media (min-width: ",") {\n font-size: ",";\n }\n @media (min-width: ",") {\n font-size: ",";\n } ;\n"])),(function(n){return x(n)}),(function(n){var t=n.theme,e=n.textSize;return c(e||null,t.fontSizes.xxl,t)}),(function(n){return n.theme.breakpoint.tablet}),(function(n){var t=n.theme,e=n.textSize;return z(e||null,t.fontSizes.xxxl,t)}),(function(n){return n.theme.breakpoint.desktop}),(function(n){var t=n.theme,e=n.textSize;return h(e||null,t.fontSizes.xxxxl,t)})),S=e.h2(u||(u=n(["\n ","\n font-size: ",";\n @media (min-width: ",") {\n font-size: ",";\n }\n @media (min-width: ",") {\n font-size: ",";\n }\n"],["\n ","\n font-size: ",";\n @media (min-width: ",") {\n font-size: ",";\n }\n @media (min-width: ",") {\n font-size: ",";\n }\n"])),(function(n){return x(n)}),(function(n){var t=n.theme,e=n.textSize;return c(e||null,t.fontSizes.xl,t)}),(function(n){return n.theme.breakpoint.tablet}),(function(n){var t=n.theme,e=n.textSize;return z(e||null,t.fontSizes.xxl,t)}),(function(n){return n.theme.breakpoint.desktop}),(function(n){var t=n.theme,e=n.textSize;return h(e||null,t.fontSizes.xxxl,t)})),p=e.h3(m||(m=n(["\n ","\n font-size: ",";\n @media (min-width: ",") {\n font-size: ",";\n }\n @media (min-width: ",") {\n font-size: ",";\n }\n"],["\n ","\n font-size: ",";\n @media (min-width: ",") {\n font-size: ",";\n }\n @media (min-width: ",") {\n font-size: ",";\n }\n"])),(function(n){return x(n)}),(function(n){var t=n.theme,e=n.textSize;return c(e||null,t.fontSizes.l,t)}),(function(n){return n.theme.breakpoint.tablet}),(function(n){var t=n.theme,e=n.textSize;return z(e||null,t.fontSizes.xl,t)}),(function(n){return n.theme.breakpoint.desktop}),(function(n){var t=n.theme,e=n.textSize;return h(e||null,t.fontSizes.xxl,t)})),w=e.h4(a||(a=n(["\n ","\n font-size: ",";\n @media (min-width: ",") {\n font-size: ",";\n }\n @media (min-width: ",") {\n font-size: ",";\n }\n"],["\n ","\n font-size: ",";\n @media (min-width: ",") {\n font-size: ",";\n }\n @media (min-width: ",") {\n font-size: ",";\n }\n"])),(function(n){return x(n)}),(function(n){var t=n.theme,e=n.textSize;return c(e||null,t.fontSizes.l,t)}),(function(n){return n.theme.breakpoint.tablet}),(function(n){var t=n.theme,e=n.textSize;return z(e||null,t.fontSizes.l,t)}),(function(n){return n.theme.breakpoint.desktop}),(function(n){var t=n.theme,e=n.textSize;return h(e||null,t.fontSizes.xl,t)})),b=e.h5(s||(s=n(["\n ","\n\n font-size: ",";\n @media (min-width: ",") {\n font-size: ",";\n }\n @media (min-width: ",") {\n font-size: ",";\n }\n"],["\n ","\n\n font-size: ",";\n @media (min-width: ",") {\n font-size: ",";\n }\n @media (min-width: ",") {\n font-size: ",";\n }\n"])),(function(n){return x(n)}),(function(n){var t=n.theme,e=n.textSize;return c(e||null,t.fontSizes.l,t)}),(function(n){return n.theme.breakpoint.tablet}),(function(n){var t=n.theme,e=n.textSize;return z(e||null,t.fontSizes.l,t)}),(function(n){return n.theme.breakpoint.desktop}),(function(n){var t=n.theme,e=n.textSize;return h(e||null,t.fontSizes.l,t)})),g=e.h6(l||(l=n(["\n ","\n\n font-size: ",";\n @media (min-width: ",") {\n font-size: ",";\n }\n @media (min-width: ",") {\n font-size: ",";\n }\n"],["\n ","\n\n font-size: ",";\n @media (min-width: ",") {\n font-size: ",";\n }\n @media (min-width: ",") {\n font-size: ",";\n }\n"])),(function(n){return x(n)}),(function(n){var t=n.theme,e=n.textSize;return c(e||null,t.fontSizes.m,t)}),(function(n){return n.theme.breakpoint.tablet}),(function(n){var t=n.theme,e=n.textSize;return z(e||null,t.fontSizes.m,t)}),(function(n){return n.theme.breakpoint.desktop}),(function(n){var t=n.theme,e=n.textSize;return h(e||null,t.fontSizes.m,t)}));export{d as H1,S as H2,p as H3,w as H4,b as H5,g as H6};
|
|
2
2
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__rest as e,__assign as t}from"../../../node_modules/tslib/tslib.es6.js";import o from"react";import{useTheme as r}from"styled-components";import m from"../../themes/cruk.js";import{ICONS as i}from"./iconList.js";import{StyledIcon as n}from"./styles.js";Object.keys(i).reduce((function(e,t){return e[t]=t,e}),{});var s=function(s){var c=s.name,a=s.color,l=s.size,p=void 0===l?"1.1rem":l,f=e(s,["name","color","size"]),u=r(),d=t(t({},m),u),h=i[c];return o.createElement(n,t({theme:d,"alt-text":"",role:"presentation",viewBox:"0 0 ".concat(h.width," ").concat(h.height),size:p||"1.1rem",color:a},f),h.paths.map((function(e,t){return o.createElement("path",{key:t,d:e})})))};export{s as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import i from"styled-components";var t,e=i.svg(t||(t=n(["\n display: inline-block;\n height: ",";\n margin-top: -0.2em;\n vertical-align: middle;\n width: ",";\n path {\n fill: ",";\n }\n"],["\n display: inline-block;\n height: ",";\n margin-top: -0.2em;\n vertical-align: middle;\n width: ",";\n path {\n fill: ",";\n }\n"])),(function(n){return n.size}),(function(n){return n.size}),(function(n){var i=n.theme.colors,t=n.color;return t&&void 0!==i[t]?i[t]:t||"currentColor"}));export{e as StyledIcon};
|
|
1
|
+
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import i from"styled-components";var t,e=i.svg(t||(t=n(["\n display: inline-block;\n height: ",";\n margin-top: -0.2em;\n vertical-align: middle;\n width: ",";\n path {\n fill: ",";\n }\n"],["\n display: inline-block;\n height: ",";\n margin-top: -0.2em;\n vertical-align: middle;\n width: ",";\n path {\n fill: ",";\n }\n"])),(function(n){return n.size}),(function(n){return n.size}),(function(n){var i=n.theme.colors,t=n.color;return t&&void 0!==i[t]?i[t]:t||"currentColor"}));export{e as StyledIcon,e as default};
|
|
2
2
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import r,{css as o}from"styled-components";import{Text as e}from"../Text/index.js";import t from"../Icon/index.js";var i,
|
|
1
|
+
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import r,{css as o}from"styled-components";import{Text as e}from"../Text/index.js";import t from"../Icon/index.js";var a,i,c,s=r(t)(a||(a=n(["\n margin-right: ",";\n"],["\n margin-right: ",";\n"])),(function(n){return n.theme.spacing.xxs})),u=r(e)(c||(c=n(["\n transition: color 0.2s ease, background-size 0.3s ease;\n background-color: rgba(255, 255, 255, 0);\n border: none;\n padding: 0;\n color: ",";\n text-decoration: ",";\n font-weight: ",";\n background: ",";\n background-repeat: no-repeat;\n background-position-y: calc(100%);\n background-size: 100% 2px;\n\n ","\n\n &:hover {\n cursor: pointer;\n background-size: 100% 100%;\n color: ",";\n }\n"],["\n transition: color 0.2s ease, background-size 0.3s ease;\n background-color: rgba(255, 255, 255, 0);\n border: none;\n padding: 0;\n color: ",";\n text-decoration: ",";\n font-weight: ",";\n background: ",";\n background-repeat: no-repeat;\n background-position-y: calc(100%);\n background-size: 100% 2px;\n\n ","\n\n &:hover {\n cursor: pointer;\n background-size: 100% 100%;\n color: ",";\n }\n"])),(function(n){var r=n.theme,o=r.colors,e=r.utilities.useBackgroundStyleLinks,t=n.textColor,a=n.appearance;return t&&void 0!==o[t]?o[t]:t||(!a&&e?"currentColor":a&&"primary"===a?o.secondary:o.linkColor)}),(function(n){var r=n.appearance,o=n.theme.typography.linkTextDecoration;return"primary"===r||"secondary"===r?"none":o}),(function(n){var r=n.theme;return r.utilities.useBackgroundStyleLinks?r.typography.fontWeightHeavy:r.typography.fontWeightMedium}),(function(n){var r=n.appearance,o=n.theme;return n.theme.utilities.useBackgroundStyleLinks&&!r?"linear-gradient(180deg, rgba(255, 255, 255, 0) 0px, ".concat(o.colors.primary," -4px);"):void 0}),(function(r){var e=r.appearance,t=r.theme.typography.fontWeightHeavy;return("primary"===e||"secondary"===e)&&o(i||(i=n(["\n font-weight: ",";\n "],["\n font-weight: ",";\n "])),t)}),(function(n){var r=n.theme,o=r.colors,e=r.utilities.useBackgroundStyleLinks,t=n.textHoverColor;return!t&&e?o.textDark:t&&void 0!==o[t]?o[t]:t||o.linkColorHover}));export{s as ChevyWithLevee,u as StyledLink};
|
|
2
2
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"../../../node_modules/tslib/tslib.es6.js";import o,{useEffect as t}from"react";import n from"react-dom";import{useTheme as r,ThemeProvider as l}from"styled-components";import
|
|
1
|
+
import{__assign as e}from"../../../node_modules/tslib/tslib.es6.js";import o,{useEffect as t}from"react";import n from"react-dom";import{useTheme as r,ThemeProvider as l}from"styled-components";import m from"../../../node_modules/react-focus-lock/dist/es2015/Combination.js";import a from"../Icon/index.js";import d from"../../themes/cruk.js";import{Wrapper as i,Content as c,CloseButton as u,Background as s}from"./styles.js";var f=function(f){var p=f.modalName,y=f.closeFunction,E=f.showCloseButton,b=f.maxWidth,w=void 0===b?"500px":b,v=f.top,k=void 0===v?"1rem":v,h=f.backgroundColor,g=void 0===h?"backgroundLight":h,j=f.children,x=r(),C=e(e({},d),x),F=function(e){"Escape"===e.key&&y&&y()};return t((function(){if("undefined"!=typeof window)return document.body.style.overflow="hidden",document.addEventListener("keydown",F),function(){"undefined"!=typeof window&&(document.body.style.overflow="unset",document.removeEventListener("keydown",F))}}),[]),o.createElement(o.Fragment,null,"undefined"!=typeof window?n.createPortal(o.createElement("section",null,o.createElement(m,{returnFocus:!0},o.createElement(l,{theme:C},o.createElement(i,{role:"dialog","aria-modal":"true","aria-label":p},o.createElement(c,{backgroundColor:g,maxWidth:w,top:k},E&&y?o.createElement(u,{"aria-label":"close",appearance:"tertiary",onClick:function(){y()}},o.createElement(a,{name:"close"})):null,j),o.createElement(s,null))))),document.body):null)};export{f as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import o from"styled-components";import t from"../Box/index.js";import{Button as i}from"../Button/index.js";var r,e,d,a,m=o.div(r||(r=n(["\n background: ",";\n bottom: 0;\n left: 0;\n opacity: 0.5;\n position: fixed;\n right: 0;\n top: 0;\n transition: opacity 0.3s, bottom 0s 0.3s;\n z-index: 100;\n"],["\n background: ",";\n bottom: 0;\n left: 0;\n opacity: 0.5;\n position: fixed;\n right: 0;\n top: 0;\n transition: opacity 0.3s, bottom 0s 0.3s;\n z-index: 100;\n"])),(function(n){return n.theme.colors.modalBackdrop})),
|
|
1
|
+
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import o from"styled-components";import t from"../Box/index.js";import{Button as i}from"../Button/index.js";var r,e,d,a,m=o.div(r||(r=n(["\n background: ",";\n bottom: 0;\n left: 0;\n opacity: 0.5;\n position: fixed;\n right: 0;\n top: 0;\n transition: opacity 0.3s, bottom 0s 0.3s;\n z-index: 100;\n"],["\n background: ",";\n bottom: 0;\n left: 0;\n opacity: 0.5;\n position: fixed;\n right: 0;\n top: 0;\n transition: opacity 0.3s, bottom 0s 0.3s;\n z-index: 100;\n"])),(function(n){return n.theme.colors.modalBackdrop})),p=o.div(e||(e=n(["\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n position: fixed;\n top: 0;\n width: 100%;\n z-index: 9999;\n"],["\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n position: fixed;\n top: 0;\n width: 100%;\n z-index: 9999;\n"]))),s=o(t)(d||(d=n(["\n background-color: ",";\n position: relative;\n border-radius: 4px;\n box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);\n margin: ",";\n width: 90%;\n min-height: 10rem;\n padding: ",";\n max-width: ",";\n z-index: 9999;\n margin-bottom: ",";\n"],["\n background-color: ",";\n position: relative;\n border-radius: 4px;\n box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);\n margin: ",";\n width: 90%;\n min-height: 10rem;\n padding: ",";\n max-width: ",";\n z-index: 9999;\n margin-bottom: ",";\n"])),(function(n){var o=n.theme.colors,t=n.backgroundColor;return void 0!==t&&void 0!==typeof t?void 0!==o[t]?o[t]:t:o.backgroundLight}),(function(n){var o=n.top;return"".concat(o," auto auto auto")}),(function(n){return n.theme.spacing.xs}),(function(n){return n.maxWidth}),(function(n){return n.theme.spacing.xxl})),x=o(i)(a||(a=n(["\n float: right;\n margin-left: ",";\n font-size: 1.2rem;\n padding: 0;\n"],["\n float: right;\n margin-left: ",";\n font-size: 1.2rem;\n padding: 0;\n"])),(function(n){return n.theme.spacing.xs}));export{m as Background,x as CloseButton,s as Content,p as Wrapper};
|
|
2
2
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"../../../node_modules/tslib/tslib.es6.js";import t from"react";import{useTheme as
|
|
1
|
+
import{__assign as e}from"../../../node_modules/tslib/tslib.es6.js";import t from"react";import{useTheme as c,ThemeProvider as a}from"styled-components";import n from"../../themes/cruk.js";import{PagerWrapper as r,PagerList as l,PagerItem as o,PagerLink as i}from"./styles.js";var m=function(m){var s=m.current,u=m.items,f=m.hideLast,p=m.pagerCallback,d=m.perPage,E=m.searchParam,v=void 0===E?"page":E,h=m.children,k=c(),y=e(e({},n),k),b=d>0?d:1,g=Math.ceil(u/b)||1,P=function(e){return{href:"".concat("undefined"!=typeof window?window.location.pathname:"","?").concat(v?"".concat(v,"=").concat(e):""),onClick:function(t){t.preventDefault(),p(e)}}};return t.createElement(a,{theme:y},u>d&&t.createElement(r,null,t.createElement(l,null,t.createElement(o,{key:"Prev"},t.createElement(i,e({name:"Prev",disabled:1===s},1!==s&&P(s-1)),"Prev")),function(c,a){for(var n=[],r=[],l=1;l<=a;l+=1)n.push(t.createElement(o,{key:l},t.createElement(i,e({active:l===c},P(l),{"aria-label":"page ".concat(l," of ").concat(a)}),l)));var m=n.slice(0,1).concat(t.createElement(o,{key:"first"},t.createElement("span",null,"..."))),s=n.slice(n.length-1).concat(t.createElement(o,{key:"last"},t.createElement("span",null,"..."))).reverse();return r=n.slice(0,a),a>7&&(r=c<=4?f?n.slice(0,7):n.slice(0,5).concat(s):c>a-4?m.concat(n.slice(-5)):f?m.concat(n.slice(c-3,c+2)):m.concat(n.slice(c-2,c+1)).concat(s)),r}(s,g),t.createElement(o,{key:"Next"},t.createElement(i,e({name:"Next",disabled:s===g},s!==g&&P(s+1)),"Next"))),h))};export{m as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import o,{css as e}from"styled-components";var t,r,i,a,c,d,l,s=o.div(t||(t=n(["\n display: table;\n width: 100%;\n clear: both;\n text-align: center;\n"],["\n display: table;\n width: 100%;\n clear: both;\n text-align: center;\n"]))),u=o.ul(r||(r=n(["\n display: inline-block;\n padding-left: 0;\n margin: 20px 0;\n"],["\n display: inline-block;\n padding-left: 0;\n margin: 20px 0;\n"]))),p=o.a(d||(d=n(["\n font-weight: normal;\n font-family: ",";\n font-size: ",";\n color: ",";\n background-color: ",";\n cursor: pointer;\n border-radius: 0;\n margin: ",";\n padding: 7px 11px;\n text-decoration: none;\n &:hover {\n opacity: 0.88;\n text-decoration: underline;\n }\n &:focus,\n &:active,\n &:visited {\n text-decoration: none;\n }\n\n ","\n\n ","\n\n ","\n"],["\n font-weight: normal;\n font-family: ",";\n font-size: ",";\n color: ",";\n background-color: ",";\n cursor: pointer;\n border-radius: 0;\n margin: ",";\n padding: 7px 11px;\n text-decoration: none;\n &:hover {\n opacity: 0.88;\n text-decoration: underline;\n }\n &:focus,\n &:active,\n &:visited {\n text-decoration: none;\n }\n\n ","\n\n ","\n\n ","\n"])),(function(n){return n.theme.typography.fontFamilyBase}),(function(n){return n.theme.fontSizes.s}),(function(n){return n.theme.colors.textLight}),(function(n){return n.theme.colors.paginationBackground}),(function(n){return n.theme.spacing.xxs}),(function(o){return o.active&&e(i||(i=n(["\n color: ",";\n background-color: ",";\n cursor: default;\n &:hover {\n background-color: ",";\n text-decoration: none;\n }\n "],["\n color: ",";\n background-color: ",";\n cursor: default;\n &:hover {\n background-color: ",";\n text-decoration: none;\n }\n "])),(function(n){return n.theme.colors.textDark}),(function(n){return n.theme.colors.paginationActive}),(function(n){return n.theme.colors.paginationActive}))}),(function(o){return("Prev"===o.name||"Next"===o.name)&&e(a||(a=n(["\n color: ",";\n background-color: transparent;\n font-weight: bold;\n padding: 8px 6px;\n background-color: transparent;\n &:hover {\n background-color: transparent;\n text-decoration: underline;\n }\n &:focus,\n &:active,\n &:visited {\n text-decoration: none;\n }\n "],["\n color: ",";\n background-color: transparent;\n font-weight: bold;\n padding: 8px 6px;\n background-color: transparent;\n &:hover {\n background-color: transparent;\n text-decoration: underline;\n }\n &:focus,\n &:active,\n &:visited {\n text-decoration: none;\n }\n "])),(function(n){
|
|
1
|
+
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import o,{css as e}from"styled-components";var t,r,i,a,c,d,l,s=o.div(t||(t=n(["\n display: table;\n width: 100%;\n clear: both;\n text-align: center;\n"],["\n display: table;\n width: 100%;\n clear: both;\n text-align: center;\n"]))),u=o.ul(r||(r=n(["\n display: inline-block;\n padding-left: 0;\n margin: 20px 0;\n"],["\n display: inline-block;\n padding-left: 0;\n margin: 20px 0;\n"]))),p=o.a(d||(d=n(["\n font-weight: normal;\n font-family: ",";\n font-size: ",";\n color: ",";\n background-color: ",";\n cursor: pointer;\n border-radius: 0;\n margin: ",";\n padding: 7px 11px;\n text-decoration: none;\n &:hover {\n opacity: 0.88;\n text-decoration: underline;\n }\n &:focus,\n &:active,\n &:visited {\n text-decoration: none;\n }\n\n ","\n\n ","\n\n ","\n"],["\n font-weight: normal;\n font-family: ",";\n font-size: ",";\n color: ",";\n background-color: ",";\n cursor: pointer;\n border-radius: 0;\n margin: ",";\n padding: 7px 11px;\n text-decoration: none;\n &:hover {\n opacity: 0.88;\n text-decoration: underline;\n }\n &:focus,\n &:active,\n &:visited {\n text-decoration: none;\n }\n\n ","\n\n ","\n\n ","\n"])),(function(n){return n.theme.typography.fontFamilyBase}),(function(n){return n.theme.fontSizes.s}),(function(n){return n.theme.colors.textLight}),(function(n){return n.theme.colors.paginationBackground}),(function(n){return n.theme.spacing.xxs}),(function(o){return o.active&&e(i||(i=n(["\n color: ",";\n background-color: ",";\n cursor: default;\n &:hover {\n background-color: ",";\n text-decoration: none;\n }\n "],["\n color: ",";\n background-color: ",";\n cursor: default;\n &:hover {\n background-color: ",";\n text-decoration: none;\n }\n "])),(function(n){return n.theme.colors.textDark}),(function(n){return n.theme.colors.paginationActive}),(function(n){return n.theme.colors.paginationActive}))}),(function(o){return("Prev"===o.name||"Next"===o.name)&&e(a||(a=n(["\n color: ",";\n background-color: transparent;\n font-weight: bold;\n padding: 8px 6px;\n background-color: transparent;\n &:hover {\n background-color: transparent;\n text-decoration: underline;\n }\n &:focus,\n &:active,\n &:visited {\n text-decoration: none;\n }\n "],["\n color: ",";\n background-color: transparent;\n font-weight: bold;\n padding: 8px 6px;\n background-color: transparent;\n &:hover {\n background-color: transparent;\n text-decoration: underline;\n }\n &:focus,\n &:active,\n &:visited {\n text-decoration: none;\n }\n "])),(function(n){var o=n.theme;return n.disabled?o.colors.disabled:o.colors.paginationText}))}),(function(o){return o.disabled&&e(c||(c=n(["\n color: $ ",";\n cursor: not-allowed;\n text-decoration: none;\n &:hover,\n &:focus,\n &:active,\n &:visited {\n color: ",";\n text-decoration: none;\n }\n "],["\n color: $ ",";\n cursor: not-allowed;\n text-decoration: none;\n &:hover,\n &:focus,\n &:active,\n &:visited {\n color: ",";\n text-decoration: none;\n }\n "])),(function(n){return n.theme.colors.disabled}),(function(n){return n.theme.colors.disabled}))})),f=o.li(l||(l=n(["\n display: none;\n &:first-child,\n &:last-child {\n display: inline;\n }\n @media (min-width: ",") {\n display: inline;\n }\n span {\n border: none;\n min-width: 30px;\n padding: 5px;\n margin: 1px;\n border-radius: 0;\n }\n"],["\n display: none;\n &:first-child,\n &:last-child {\n display: inline;\n }\n @media (min-width: ",") {\n display: inline;\n }\n span {\n border: none;\n min-width: 30px;\n padding: 5px;\n margin: 1px;\n border-radius: 0;\n }\n"])),(function(n){return n.theme.breakpoint.mobile}));export{f as PagerItem,p as PagerLink,u as PagerList,s as PagerWrapper};
|
|
2
2
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"../../../node_modules/tslib/tslib.es6.js";import t,{useRef as n,useState as o,useCallback as r,useEffect as i}from"react";import{useTheme as a,ThemeProvider as m}from"styled-components";import{useKey as
|
|
1
|
+
import{__assign as e}from"../../../node_modules/tslib/tslib.es6.js";import t,{useRef as n,useState as o,useCallback as r,useEffect as i}from"react";import{useTheme as a,ThemeProvider as m}from"styled-components";import{useKey as c}from"../../hooks/useKey.js";import s from"../../themes/cruk.js";import{useEffectBrowser as l}from"../../hooks/useEffectBrowser.js";import{PopOverWrapper as u,PopOverModal as d}from"./styles.js";var f=function(f){var p=f.onPopOverIsOpenChange,h=f.children,E=f.minWidth,k=f.maxWidth,v=f.position,j=f.modalLabel,b=f.modalContent,g=f.css,x=n(null),y=o(!1),C=y[0],W=y[1],L=a(),K=e(e({},s),L),O=function(){return W(!C)},w=function(){return W(!1)},B=r((function(e){x.current&&!x.current.contains(e.target)&&w()}),[x.current]);return c((function(){w()}),{detectKeys:["Escape"]},[]),i((function(){p&&p(C)}),[C]),l((function(){return document.addEventListener("click",B,!0),function(){document.removeEventListener("click",B,!0)}}),[]),t.createElement(m,{theme:K},t.createElement(u,{css:g,ref:x},t.Children.map(h,(function(e){return t.cloneElement(e,{onClick:O,"aria-expanded":C,"aria-haspopup":"dialog"})})),C?t.createElement(d,{maxWidth:k||"none",minWidth:E||"auto",position:v||"top",theme:K,role:"dialog","aria-label":j,"aria-modal":C},b):null))};export{f as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__makeTemplateObject as t}from"../../../node_modules/tslib/tslib.es6.js";import n,{css as e}from"styled-components";var r,
|
|
1
|
+
import{__makeTemplateObject as t}from"../../../node_modules/tslib/tslib.es6.js";import n,{css as e}from"styled-components";var o,r,a,s=n.div(r||(r=t(["\n position: relative;\n display: inline-block;\n\n ","\n"],["\n position: relative;\n display: inline-block;\n\n ","\n"])),(function(n){return n.css&&e(o||(o=t(["\n ","\n "],["\n ","\n "])),n.css)})),c=n.div(a||(a=t(["\n position: absolute;\n display: flex;\n justify-content: center;\n word-wrap: break-word;\n z-index: 9999;\n max-width: ",";\n min-width: ",";\n font-size: ",";\n background-color: ",";\n background-clip: padding-box;\n border: 1px solid rgba(0, 0, 0, 0.25);\n box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n\n margin-bottom: ",";\n\n margin-top: ",";\n top: ",";\n\n bottom: ",";\n\n left: ",";\n right: ",';\n\n &:after,\n &:before {\n content: "";\n border-style: solid;\n border-width: 10px;\n width: 0;\n height: 0;\n position: absolute;\n top: ',";\n bottom: ",";\n\n left: ",";\n right: ",";\n }\n &:before {\n border-color: ",";\n }\n &:after {\n margin: ",";\n border-color: ",";\n }\n\n @media (min-width: ",") {\n margin-top: ",";\n\n margin-left: ",";\n margin-right: ",";\n\n top: ",";\n\n left: ",";\n right: ",';\n\n &:after,\n &:before {\n content: "";\n top: ',";\n bottom: ",";\n\n left: ",";\n right: ",";\n }\n &:before {\n border-color: ",";\n }\n &:after {\n margin: ",";\n border-color: ",";\n }\n }\n"],["\n position: absolute;\n display: flex;\n justify-content: center;\n word-wrap: break-word;\n z-index: 9999;\n max-width: ",";\n min-width: ",";\n font-size: ",";\n background-color: ",";\n background-clip: padding-box;\n border: 1px solid rgba(0, 0, 0, 0.25);\n box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n\n margin-bottom: ",";\n\n margin-top: ",";\n top: ",";\n\n bottom: ",";\n\n left: ",";\n right: ",';\n\n &:after,\n &:before {\n content: "";\n border-style: solid;\n border-width: 10px;\n width: 0;\n height: 0;\n position: absolute;\n top: ',";\n bottom: ",";\n\n left: ",";\n right: ",";\n }\n &:before {\n border-color: ",";\n }\n &:after {\n margin: ",";\n border-color: ",";\n }\n\n @media (min-width: ",") {\n margin-top: ",";\n\n margin-left: ",";\n margin-right: ",";\n\n top: ",";\n\n left: ",";\n right: ",';\n\n &:after,\n &:before {\n content: "";\n top: ',";\n bottom: ",";\n\n left: ",";\n right: ",";\n }\n &:before {\n border-color: ",";\n }\n &:after {\n margin: ",";\n border-color: ",";\n }\n }\n"])),(function(t){return t.maxWidth}),(function(t){return t.minWidth}),(function(t){return t.theme.fontSizes.s}),(function(t){return t.theme.colors.popoverBackground}),(function(t){switch(t.position){case"top":case"topLeft":case"bottomLeft":default:return"10px";case"left":case"right":case"bottom":return 0}}),(function(t){switch(t.position){case"bottom":case"bottomLeft":case"left":case"right":return"10px";default:return 0}}),(function(t){switch(t.position){case"top":case"topLeft":default:return"auto";case"left":case"right":case"bottom":case"bottomLeft":return"100%"}}),(function(t){switch(t.position){case"top":case"topLeft":default:return"100%";case"left":case"right":case"bottom":case"bottomLeft":return"auto"}}),(function(t){return"top"===t.position?0:"auto"}),(function(t){switch(t.position){case"top":case"left":case"bottom":default:return"auto";case"topLeft":case"bottomLeft":return 0;case"right":return"0"}}),(function(t){switch(t.position){case"top":case"topLeft":default:return"100%";case"left":case"right":case"bottom":case"bottomLeft":return"auto"}}),(function(t){switch(t.position){case"top":case"topLeft":default:return"auto";case"left":case"right":case"bottom":case"bottomLeft":return"100%"}}),(function(t){var n=t.position,e=t.theme;switch(n){case"top":case"left":case"bottom":default:return"".concat(e.spacing.s);case"topLeft":case"right":case"bottomLeft":return"auto"}}),(function(t){var n=t.position,e=t.theme;switch(n){case"top":case"left":case"bottom":default:return"auto";case"topLeft":case"right":case"bottomLeft":return"".concat(e.spacing.s)}}),(function(t){switch(t.position){case"top":case"topLeft":default:return"rgba(0, 0, 0, 0.25) transparent transparent";case"left":case"right":case"bottom":case"bottomLeft":return"transparent transparent rgba(0, 0, 0, 0.25)"}}),(function(t){switch(t.position){case"top":case"topLeft":default:return"-1px 0 0 0";case"left":case"right":case"bottom":case"bottomLeft":return"0 0 -1px 0"}}),(function(t){var n=t.theme;switch(t.position){case"top":case"topLeft":default:return"".concat(n.colors.popoverBackground," transparent transparent");case"left":case"right":case"bottom":case"bottomLeft":return"transparent transparent ".concat(n.colors.popoverBackground)}}),(function(t){return t.theme.breakpoint.desktop}),(function(t){switch(t.position){case"bottom":case"bottomLeft":return"10px";default:return 0}}),(function(t){return"right"===t.position?"10px":0}),(function(t){return"left"===t.position?"10px":0}),(function(t){switch(t.position){case"top":case"topLeft":default:return"auto";case"left":case"right":return 0;case"bottom":case"bottomLeft":return"100%"}}),(function(t){switch(t.position){case"top":return 0;case"topLeft":case"left":case"bottom":case"bottomLeft":default:return"auto";case"right":return"100%"}}),(function(t){switch(t.position){case"top":case"right":case"bottom":default:return"auto";case"topLeft":case"bottomLeft":return 0;case"left":return"100%"}}),(function(t){var n=t.position,e=t.theme;switch(n){case"top":case"topLeft":default:return"100%";case"left":case"right":return"".concat(e.spacing.xs);case"bottom":case"bottomLeft":return"auto"}}),(function(t){switch(t.position){case"top":case"topLeft":case"left":case"right":default:return"auto";case"bottom":case"bottomLeft":return"100%"}}),(function(t){var n=t.position,e=t.theme;switch(n){case"top":case"bottom":default:return"".concat(e.spacing.s);case"topLeft":case"bottomLeft":return"auto";case"left":return"100%";case"right":return"-20px"}}),(function(t){var n=t.position,e=t.theme;switch(n){case"top":case"left":case"bottom":default:return"auto";case"topLeft":case"bottomLeft":return"".concat(e.spacing.s);case"right":return"0"}}),(function(t){switch(t.position){case"top":case"topLeft":default:return"rgba(0, 0, 0, 0.25) transparent transparent";case"left":return"transparent transparent transparent rgba(0, 0, 0, 0.25)";case"right":return"transparent rgba(0, 0, 0, 0.25) transparent transparent";case"bottom":case"bottomLeft":return"transparent transparent rgba(0, 0, 0, 0.25)"}}),(function(t){switch(t.position){case"top":case"topLeft":default:return"-1px 0 0 0";case"left":return"0 0 0 -1px";case"right":return"0 0 0 1px";case"bottom":case"bottomLeft":return"0 0 -1px 0"}}),(function(t){var n=t.theme;switch(t.position){case"top":case"topLeft":default:return"".concat(n.colors.popoverBackground," transparent transparent");case"left":return"transparent transparent transparent ".concat(n.colors.popoverBackground);case"right":return"transparent ".concat(n.colors.popoverBackground," transparent transparent");case"bottom":case"bottomLeft":return"transparent transparent ".concat(n.colors.popoverBackground)}}));export{c as PopOverModal,s as PopOverWrapper};
|
|
2
2
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"../../../node_modules/tslib/tslib.es6.js";import
|
|
1
|
+
import{__assign as e}from"../../../node_modules/tslib/tslib.es6.js";import t from"react";import{useTheme as r,ThemeProvider as l}from"styled-components";import c from"../../themes/cruk.js";import{ProgressBarWrapper as a,CircularWrapper as n,CircularLeft as o,CircularColorFill as m,CircularRight as s,CircularValue as i,LineProgressBarWrapper as p,LineProgressBar as u,ScreenReaderOnly as E}from"./styles.js";var f=function(f){var b=f.percentage,C=void 0===b?0:b,d=f.isCircular,g=f.circleContents,N=f.circleSize,h=f.barColor,j=f.children,v=r(),y=e(e({},c),v),x=C,z="".concat(Number.isNaN(x)?"0":x,"%"),S="".concat("string"==typeof g?g:""," ").concat(z,"% Complete"),k=g||z;return t.createElement(l,{theme:y},t.createElement(a,null,d?t.createElement(n,{percentage:x,circleSize:N||"90px"},t.createElement(o,{className:"Left"},t.createElement(m,{barColor:h})),t.createElement(s,{className:"Right"},t.createElement(m,{barColor:h})),t.createElement(i,null,k)):t.createElement(p,null,t.createElement(u,{percentage:x>100?100:x,barColor:h}),t.createElement(E,null,S)),j))};export{f as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import t,{css as r,keyframes as e}from"styled-components";var o,i,a,s,d,l,h,g,f,
|
|
1
|
+
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import t,{css as r,keyframes as e}from"styled-components";var o,i,a,s,d,l,h,g,c,f,u,p,b,m,w,x,v=t.div(o||(o=n(["\n margin-top: 15px;\n"],["\n margin-top: 15px;\n"]))),k=r(i||(i=n(["\n height: 15px;\n margin-bottom: 0;\n background-color: ",";\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);\n"],["\n height: 15px;\n margin-bottom: 0;\n background-color: ",";\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);\n"])),(function(n){return n.theme.colors.progressBarBackground})),z=t.div(a||(a=n(["\n ",";\n"],["\n ",";\n"])),k),y=t.div(d||(d=n(["\n float: left;\n width: 1%;\n height: 100%;\n font-size: ",";\n line-height: ",";\n color: ",";\n text-align: center;\n background-color: ",";\n box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);\n transition: width 0.6s ease;\n position: relative;\n\n ","\n"],["\n float: left;\n width: 1%;\n height: 100%;\n font-size: ",";\n line-height: ",";\n color: ",";\n text-align: center;\n background-color: ",";\n box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);\n transition: width 0.6s ease;\n position: relative;\n\n ","\n"])),(function(n){return n.theme.fontSizes.s}),(function(n){return n.theme.typography.lineHeight}),(function(n){return n.theme.colors.textLight}),(function(n){var t=n.barColor,r=n.theme.colors.progressBar;return t||r}),(function(t){return t.percentage&&r(s||(s=n(["\n width: ","%;\n "],["\n width: ","%;\n "])),t.percentage)})),S=t.span(l||(l=n(["\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n"],["\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n"]))),B=t.span(h||(h=n(["\n width: 100%;\n height: 100%;\n background: none;\n border-width: ",";\n border-style: solid;\n position: absolute;\n top: 0;\n border-color: ",";\n"],["\n width: 100%;\n height: 100%;\n background: none;\n border-width: ",";\n border-style: solid;\n position: absolute;\n top: 0;\n border-color: ",";\n"])),"4px",(function(n){var t=n.barColor,r=n.theme.colors.circularProgress;return t||r})),j=t.span(g||(g=n(["\n left: 0;\n\n "," {\n left: 100%;\n border-top-right-radius: 100vw;\n border-bottom-right-radius: 100vw;\n border-left: 0;\n -webkit-transform-origin: center left;\n transform-origin: center left;\n }\n"],["\n left: 0;\n\n "," {\n left: 100%;\n border-top-right-radius: 100vw;\n border-bottom-right-radius: 100vw;\n border-left: 0;\n -webkit-transform-origin: center left;\n transform-origin: center left;\n }\n"])),B),C=t.span(c||(c=n(["\n right: 0;\n\n "," {\n left: -100%;\n border-top-left-radius: 100vw;\n border-bottom-left-radius: 100vw;\n border-right: 0;\n -webkit-transform-origin: center right;\n transform-origin: center right;\n }\n"],["\n right: 0;\n\n "," {\n left: -100%;\n border-top-left-radius: 100vw;\n border-bottom-left-radius: 100vw;\n border-right: 0;\n -webkit-transform-origin: center right;\n transform-origin: center right;\n }\n"])),B),P=function(t){var r=t.percentage;return e(f||(f=n(["\n 0% { transform: rotate(0deg); }\n 100% {\n transform: rotate(","deg);\n }\n"],["\n 0% { transform: rotate(0deg); }\n 100% {\n transform: rotate(","deg);\n }\n"])),r>50?"180":3.6*r)},D=function(t){var r=t.percentage;return e(u||(u=n(["\n 0% { transform: rotate(0deg); }\n 100% {\n transform: rotate(","deg);\n }\n"],["\n 0% { transform: rotate(0deg); }\n 100% {\n transform: rotate(","deg);\n }\n"])),r>100?"180":3.6*r-180)},H=t.div(w||(w=n(["\n ",";\n\n width: ",";\n height: ",';\n background: none;\n margin: 0 auto;\n box-shadow: none;\n position: relative;\n\n &:after {\n content: "";\n width: 100%;\n height: 100%;\n border-radius: 50%;\n border: ',";\n position: absolute;\n top: 0;\n left: 0;\n z-index: 0;\n }\n > span {\n width: 50%;\n height: 100%;\n overflow: hidden;\n position: absolute;\n top: 0;\n z-index: 1;\n }\n\n ",";\n ",";\n ",";\n"],["\n ",";\n\n width: ",";\n height: ",';\n background: none;\n margin: 0 auto;\n box-shadow: none;\n position: relative;\n\n &:after {\n content: "";\n width: 100%;\n height: 100%;\n border-radius: 50%;\n border: ',";\n position: absolute;\n top: 0;\n left: 0;\n z-index: 0;\n }\n > span {\n width: 50%;\n height: 100%;\n overflow: hidden;\n position: absolute;\n top: 0;\n z-index: 1;\n }\n\n ",";\n ",";\n ",";\n"])),k,(function(n){return n.circleSize}),(function(n){return n.circleSize}),(function(n){var t=n.theme.colors.circularProgressBackground;return"".concat("4px"," solid ").concat(t)}),(function(t){return t.percentage<51&&r(p||(p=n(["\n "," "," {\n animation: "," 0.5s linear forwards;\n }\n "],["\n "," "," {\n animation: "," 0.5s linear forwards;\n }\n "])),C,B,P)}),(function(t){return t.percentage>50&&r(b||(b=n(["\n "," "," {\n animation: "," 0.5s linear forwards;\n }\n "," "," {\n animation: "," 0.5s linear forwards 0.5s;\n }\n "],["\n "," "," {\n animation: "," 0.5s linear forwards;\n }\n "," "," {\n animation: "," 0.5s linear forwards 0.5s;\n }\n "])),C,B,P,j,B,D)}),(function(t){return t.percentage>=100&&r(m||(m=n(["\n "," "," {\n animation: "," 0.5s linear forwards;\n }\n "," "," {\n animation: "," 0.5s linear forwards 0.5s;\n }\n "],["\n "," "," {\n animation: "," 0.5s linear forwards;\n }\n "," "," {\n animation: "," 0.5s linear forwards 0.5s;\n }\n "])),C,B,P,j,B,D)})),L=t.div(x||(x=n(["\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n z-index: 2;\n font-size: ",";\n line-height: ",";\n text-align: center;\n height: 100%;\n color: ",";\n"],["\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n z-index: 2;\n font-size: ",";\n line-height: ",";\n text-align: center;\n height: 100%;\n color: ",";\n"])),(function(n){return n.theme.fontSizes.l}),(function(n){return n.theme.fontSizes.l}),(function(n){return n.theme.colors.textDark}));export{B as CircularColorFill,j as CircularLeft,C as CircularRight,L as CircularValue,H as CircularWrapper,y as LineProgressBar,z as LineProgressBarWrapper,v as ProgressBarWrapper,S as ScreenReaderOnly};
|
|
2
2
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__rest as r}from"../../../node_modules/tslib/tslib.es6.js";import t,{forwardRef as
|
|
1
|
+
import{__assign as e,__rest as r}from"../../../node_modules/tslib/tslib.es6.js";import t,{forwardRef as o}from"react";import{useTheme as l,ThemeProvider as s}from"styled-components";import a from"../../themes/cruk.js";import i from"../ErrorText/index.js";import{StyledLabel as m,StyledInput as n,SelectedBorder as c,CheckWrapper as d,Check as u,VerticalAlign as E}from"./styles.js";var f=o((function(o,f){var p=l(),h=e(e({},a),p);o.children;var b=r(o,["children"]);return t.createElement(s,{theme:h},t.createElement(m,{hasError:o.hasError||!!o.errorMessage||!1,className:o.className,checked:o.checked||!1,disabled:o.disabled||!1},t.createElement(n,e({},b,{type:"radio",ref:f,"aria-describedby":o.id&&o.errorMessage?"".concat(o.id,"-error"):void 0})),t.createElement(c,null),h.utilities.useDefaultFromControls?null:t.createElement(d,null,t.createElement(u,null)),t.createElement(E,null,o.children||o.value)),!!o.errorMessage&&t.createElement(i,{marginTop:"xxs",id:o.id?"".concat(o.id,"-error"):void 0},o.errorMessage))}));export{f as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import o,{css as
|
|
1
|
+
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import o,{css as t}from"styled-components";var i,e,r,l,a,c,s,d,u,p=o.div(i||(i=n(["\n display: inline-block;\n height: ",";\n width: ",";\n position: absolute;\n top: calc(50% - ("," / 2));\n left: ",";\n"],["\n display: inline-block;\n height: ",";\n width: ",";\n position: absolute;\n top: calc(50% - ("," / 2));\n left: ",";\n"])),"1.5rem","1.5rem","1.5rem",(function(n){return n.theme.spacing.xs})),h=o.span(e||(e=n(["\n display: block;\n position: relative;\n border: 2px solid ",";\n border-radius: 100%;\n height: ",";\n width: ",';\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 5;\n transition: border 0.25s linear, box-shadow 0.25s linear;\n\n ::before {\n display: block;\n position: absolute;\n content: "";\n border-radius: 100%;\n height: ',";\n width: ",";\n top: calc(50% - ("," / 2));\n left: calc(50% - ("," / 2));\n margin: auto;\n transition: background-color 0.25s linear;\n }\n"],["\n display: block;\n position: relative;\n border: 2px solid ",";\n border-radius: 100%;\n height: ",";\n width: ",';\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 5;\n transition: border 0.25s linear, box-shadow 0.25s linear;\n\n ::before {\n display: block;\n position: absolute;\n content: "";\n border-radius: 100%;\n height: ',";\n width: ",";\n top: calc(50% - ("," / 2));\n left: calc(50% - ("," / 2));\n margin: auto;\n transition: background-color 0.25s linear;\n }\n"])),(function(n){return n.theme.colors.selectionBorder}),"1.5rem","1.5rem","1rem","1rem","1rem","1rem"),b=o.label(l||(l=n(["\n background-color: ",";\n width: 100%;\n position: relative;\n border-width: ",";\n border-style: solid;\n border-color: ",";\n cursor: pointer;\n display: inline-block;\n font-weight: ",";\n color: ",";\n padding: ",";\n vertical-align: middle;\n\n &:focus ~ "," "," {\n outline: 2px solid #7aacfe; /* for non-webkit browsers */\n outline: 5px auto -webkit-focus-ring-color;\n }\n\n ","\n"],["\n background-color: ",";\n width: 100%;\n position: relative;\n border-width: ",";\n border-style: solid;\n border-color: ",";\n cursor: pointer;\n display: inline-block;\n font-weight: ",";\n color: ",";\n padding: ",";\n vertical-align: middle;\n\n &:focus ~ "," "," {\n outline: 2px solid #7aacfe; /* for non-webkit browsers */\n outline: 5px auto -webkit-focus-ring-color;\n }\n\n ","\n"])),(function(n){return n.theme.colors.backgroundLight}),(function(n){return n.theme.utilities.inputBorderWidth}),(function(n){var o=n.hasError,t=n.theme,i=n.checked;return o?t.colors.textError:i&&!t.utilities.useDefaultFocusRect?t.colors.primary:t.colors.inputBorder}),(function(n){return n.checked?"bold":"normal"}),(function(n){var o=n.theme;return n.disabled?o.colors.disabled:o.colors.textDark}),(function(n){var o=n.theme;return"calc( (".concat("3em"," - ( ").concat(o.utilities.inputBorderWidth," * 2) - ").concat(o.typography.lineHeight," ) / 2) ").concat(o.spacing.m," calc( (").concat("3em"," - ( ").concat(o.utilities.inputBorderWidth," * 2) - ").concat(o.typography.lineHeight," ) / 2) ").concat(o.spacing.xl)}),p,h,(function(o){return o.theme.utilities.useDefaultFromControls?null:t(r||(r=n(["\n min-height: 2rem;\n\n &:hover "," "," {\n border: solid 2px\n ",";\n }\n "],["\n min-height: 2rem;\n\n &:hover "," "," {\n border: solid 2px\n ",";\n }\n "])),p,h,(function(n){return n.theme.colors.primary}))})),g=o.span(a||(a=n(["\n vertical-align: middle;\n line-height: 100%;\n background-color: ",";\n z-index: 1;\n"],["\n vertical-align: middle;\n line-height: 100%;\n background-color: ",";\n z-index: 1;\n"])),(function(n){return n.theme.colors.backgroundLight})),m=o.div(c||(c=n(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(255, 255, 255, 0);\n z-index: 0;\n"],["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(255, 255, 255, 0);\n z-index: 0;\n"]))),f=o.input(u||(u=n(["\n margin-right: ",";\n\n ","\n"],["\n margin-right: ",";\n\n ","\n"])),(function(n){return n.theme.spacing.xxs}),(function(o){var i=o.theme;return i.utilities.useDefaultFromControls?t(s||(s=n(["\n position: absolute;\n display: inline-block;\n transform: translate(-50%, -50%);\n top: 50%;\n margin: 0;\n padding: 0;\n left: ",";\n "],["\n position: absolute;\n display: inline-block;\n transform: translate(-50%, -50%);\n top: 50%;\n margin: 0;\n padding: 0;\n left: ",";\n "])),(function(n){return n.theme.spacing.s})):t(d||(d=n(["\n position: absolute;\n left: ",";\n opacity: 0;\n\n &:focus ~ "," {\n outline: none !important;\n box-shadow: inset 0 0 0 2px ",";\n box-shadow: inset 0 0 0 2px -webkit-focus-ring-color;\n }\n\n &:checked ~ "," ","::before {\n background: ",";\n }\n "],["\n position: absolute;\n left: ",";\n opacity: 0;\n\n &:focus ~ "," {\n outline: none !important;\n box-shadow: inset 0 0 0 2px ",";\n box-shadow: inset 0 0 0 2px -webkit-focus-ring-color;\n }\n\n &:checked ~ "," ","::before {\n background: ",";\n }\n "])),(function(n){return n.theme.spacing.xxs}),m,i.colors.inputBorder,p,h,i.colors.primary)}));export{h as Check,p as CheckWrapper,m as SelectedBorder,f as StyledInput,b as StyledLabel,g as VerticalAlign};
|
|
2
2
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import t from"styled-components";import e from"../Radio/index.js";var i,l,
|
|
1
|
+
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import t from"styled-components";import e from"../Radio/index.js";var i,o,l,a=t(e)(i||(i=n(["\n display: block;\n float: left;\n text-align: center;\n margin-left: ",";\n width: ",";\n"],["\n display: block;\n float: left;\n text-align: center;\n margin-left: ",";\n width: ",";\n"])),(function(n){return n.theme.spacing.s}),(function(n){var t=n.numberOfAttributes,e=n.theme;return"calc(((100% - ".concat("20%",") / ").concat(t,") - ").concat(e.spacing.s,")")})),r=t.legend(o||(o=n(["\n width: ",";\n display: block;\n float: left;\n"],["\n width: ",";\n display: block;\n float: left;\n"])),"20%"),d=t.fieldset(l||(l=n(["\n display: block;\n position: relative;\n border: none;\n padding: 0;\n margin: 0 0 "," 0;\n width: 100%;\n"],["\n display: block;\n position: relative;\n border: none;\n padding: 0;\n margin: 0 0 "," 0;\n width: 100%;\n"])),(function(n){return n.theme.spacing.s}));export{d as StyledFieldSet,r as StyledLegend,a as StyledRadio};
|
|
2
2
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as r,__assign as e}from"../../../node_modules/tslib/tslib.es6.js";import i,{forwardRef as t}from"react";import{useTheme as o}from"styled-components";import a from"../../themes/cruk.js";import d
|
|
1
|
+
import{__rest as r,__assign as e}from"../../../node_modules/tslib/tslib.es6.js";import i,{forwardRef as t}from"react";import{useTheme as o}from"styled-components";import a from"../../themes/cruk.js";import{LabelWrapper as d}from"../LabelWrapper/index.js";import s from"../ErrorText/index.js";import m from"./styles.js";var n=t((function(t,n){var l=t.errorMessage,c=t.hasError,p=t.required,u=t.label,b=t.hintText,f=t.hideRequiredInLabel,h=r(t,["errorMessage","hasError","required","label","hintText","hideRequiredInLabel"]),x=o(),E=e(e({},a),x);return i.createElement(d,{label:u,hintText:b,required:!f&&p||!1},i.createElement(m,e({},h,{ref:n,theme:E,required:p,"aria-invalid":c||!!l||!1,"aria-describedby":h.id&&l?"".concat(h.id,"-error"):void 0,hasError:c||!!l||!1})),!!l&&i.createElement(s,{marginTop:"xxs",id:h.id?"".concat(h.id,"-error"):void 0},l))}));export{n as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import
|
|
1
|
+
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import o,{css as r}from"styled-components";var e,t,c=o.select(t||(t=n(["\n appearance: none;\n background: linear-gradient(\n 45deg,\n "," 50%,\n "," 50%\n ),\n linear-gradient(\n 135deg,\n "," 50%,\n "," 50%\n );\n background-color: ",";\n background-position: calc(100% - 16px) 50%, calc(100% - 10px) 50%;\n background-size: 6px 6px;\n background-repeat: no-repeat;\n border: ",";\n color: ",";\n display: block;\n font-size: ",";\n min-height: ",";\n padding: ",";\n width: 100%;\n transition: border-color 150ms linear;\n &:disabled {\n border-color: ",";\n color: ",";\n }\n\n ",";\n"],["\n appearance: none;\n background: linear-gradient(\n 45deg,\n "," 50%,\n "," 50%\n ),\n linear-gradient(\n 135deg,\n "," 50%,\n "," 50%\n );\n background-color: ",";\n background-position: calc(100% - 16px) 50%, calc(100% - 10px) 50%;\n background-size: 6px 6px;\n background-repeat: no-repeat;\n border: ",";\n color: ",";\n display: block;\n font-size: ",";\n min-height: ",";\n padding: ",";\n width: 100%;\n transition: border-color 150ms linear;\n &:disabled {\n border-color: ",";\n color: ",";\n }\n\n ",";\n"])),(function(n){return n.theme.colors.backgroundLight}),(function(n){return n.theme.colors.selectBackground}),(function(n){return n.theme.colors.selectBackground}),(function(n){return n.theme.colors.backgroundLight}),(function(n){return n.theme.colors.backgroundLight}),(function(n){var o=n.theme,r=n.hasError,e=n.errorMessage;return"solid ".concat(o.utilities.inputBorderWidth," ").concat(r||e?o.colors.textError:o.colors.textInputBorder)}),(function(n){return n.theme.colors.textDark}),(function(n){return n.theme.fontSizes.m}),"3rem",(function(n){var o=n.theme;return"calc( (".concat("3rem"," - ( ").concat(o.utilities.inputBorderWidth," * 2) - ").concat(o.typography.lineHeight," ) / 2) ").concat(o.spacing.m," calc( (").concat("3rem"," - ( ").concat(o.utilities.inputBorderWidth," * 2) - ").concat(o.typography.lineHeight," ) / 2) ").concat(o.spacing.xs)}),(function(n){return n.theme.colors.disabled}),(function(n){return n.theme.colors.disabled}),(function(o){var t=o.theme;return t.utilities.useDefaultFocusRect?null:r(e||(e=n(["\n &:focus {\n outline: 0;\n border-color: ",";\n }\n "],["\n &:focus {\n outline: 0;\n border-color: ",";\n }\n "])),t.colors.tertiary)}));export{c as StyledSelect,c as default};
|
|
2
2
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var n=function(n,
|
|
1
|
+
var n=function(n,a){var t=n.margin,i=n.marginHorizontal,c=n.marginVertical,o=n.marginTop,p=n.marginRight,g=n.marginBottom,r=n.marginLeft,m=n.padding,l=n.paddingHorizontal,d=n.paddingVertical,u=n.paddingTop,s=n.paddingRight,e=n.paddingBottom,f=n.paddingLeft,h=t?a.spacing[t]:null,b=c?a.spacing[c]:null,v=i?a.spacing[i]:null,z=o?a.spacing[o]:null,B=p?a.spacing[p]:null,H=g?a.spacing[g]:null,L=r?a.spacing[r]:null,R=h?"margin: ".concat(h," !important;"):"",T=z?"margin-top: ".concat(z," !important;"):b?"margin-top: ".concat(b," !important;"):"",V=B?"margin-right: ".concat(B," !important;"):v?"margin-right: ".concat(v," !important;"):"",x=H?"margin-bottom: ".concat(H," !important;"):b?"margin-bottom: ".concat(b," !important;"):"",j=L?"margin-left: ".concat(L," !important;"):v?"margin-left: ".concat(v," !important;"):"",k=m?a.spacing[m]:null,q=d?a.spacing[d]:null,w=l?a.spacing[l]:null,y=u?a.spacing[u]:null,A=s?a.spacing[s]:null,C=e?a.spacing[e]:null,D=f?a.spacing[f]:null,E=k?"padding: ".concat(k," !important;"):"",F=y?"padding-top: ".concat(y," !important;"):q?"padding-top: ".concat(q," !important;"):"",G=A?"padding-right: ".concat(A," !important;"):w?"padding-right: ".concat(w," !important;"):"",I=C?"padding-bottom: ".concat(C," !important;"):q?"padding-bottom: ".concat(q," !important;"):"",J=D?"padding-left: ".concat(D," !important;"):w?"padding-left: ".concat(w," !important;"):"";return"\n ".concat(R,"\n ").concat(T,"\n ").concat(V,"\n ").concat(x,"\n ").concat(j,"\n ").concat(E,"\n ").concat(F,"\n ").concat(G,"\n ").concat(I,"\n ").concat(J,"\n ")};export{n as Spacing,n as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"../../../node_modules/tslib/tslib.es6.js";import t from"react";import{useTheme as r,ThemeProvider as n}from"styled-components";import
|
|
1
|
+
import{__assign as e}from"../../../node_modules/tslib/tslib.es6.js";import t from"react";import{useTheme as r,ThemeProvider as n}from"styled-components";import l from"../../themes/cruk.js";import{StepWrapper as m,StepList as o,StepItem as a,StepBar as s,StepTick as c}from"./styles.js";var i=function(i){var u=i.steps,p=void 0===u?[]:u,d=i.current,f=void 0===d?1:d,y=i.children,E=r(),v=e(e({},l),E),h=Array.isArray(p)?Object.keys(p).length:0;return t.createElement(n,{theme:v},t.createElement(m,null,t.createElement(o,{total:h},Array.isArray(p)&&p.map((function(e,r){return t.createElement(a,{key:r,active:r+1===f,done:r+1<f},t.createElement(s,null,r+1<f&&t.createElement(c,null)),e)}))),y))};export{i as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import t,{css as o}from"styled-components";var r,e,i,l,
|
|
1
|
+
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import t,{css as o}from"styled-components";var r,e,i,a,l,d,p,c,s=t.div(r||(r=n(["\n text-align: center;\n text-transform: capitalize;\n"],["\n text-align: center;\n text-transform: capitalize;\n"]))),u=t.ul(i||(i=n(["\n list-style: none;\n padding: 0;\n margin: 0;\n display: flex;\n justify-content: space-between;\n width: 100%;\n\n ","\n"],["\n list-style: none;\n padding: 0;\n margin: 0;\n display: flex;\n justify-content: space-between;\n width: 100%;\n\n ","\n"])),(function(t){return t.total&&o(e||(e=n(["\n li {\n width: ","%;\n }\n li:last-child span:after {\n display: none;\n }\n "],["\n li {\n width: ","%;\n }\n li:last-child span:after {\n display: none;\n }\n "])),100/t.total)})),x=t.span(a||(a=n(["\n border-radius: 50%;\n background-clip: padding-box;\n width: 24px;\n height: 24px;\n background-color: ",";\n display: block;\n margin: 0 auto 0.5em auto;\n border: 2px solid ",';\n text-indent: -999px;\n\n &:after {\n display: block;\n position: absolute;\n width: 100%;\n height: 2px;\n content: "";\n background-color: transparent;\n border-bottom: 2px solid\n ',";\n left: 50%;\n top: 11px;\n margin-left: 12px;\n }\n"],["\n border-radius: 50%;\n background-clip: padding-box;\n width: 24px;\n height: 24px;\n background-color: ",";\n display: block;\n margin: 0 auto 0.5em auto;\n border: 2px solid ",';\n text-indent: -999px;\n\n &:after {\n display: block;\n position: absolute;\n width: 100%;\n height: 2px;\n content: "";\n background-color: transparent;\n border-bottom: 2px solid\n ',";\n left: 50%;\n top: 11px;\n margin-left: 12px;\n }\n"])),(function(n){return n.theme.colors.stepBackground}),(function(n){return n.theme.colors.stepBorder}),(function(n){return n.theme.colors.stepBorder})),b=t.span(l||(l=n(["\n display: block;\n transform: rotate(45deg);\n transform-origin: center center;\n height: 14px;\n width: 8px;\n border-bottom: ",";\n border-right: ",";\n margin-top: 4px;\n margin-left: 8px;\n"],["\n display: block;\n transform: rotate(45deg);\n transform-origin: center center;\n height: 14px;\n width: 8px;\n border-bottom: ",";\n border-right: ",";\n margin-top: 4px;\n margin-left: 8px;\n"])),(function(n){var t=n.theme.colors.textLight;return"2px solid ".concat(t)}),(function(n){var t=n.theme.colors.textLight;return"2px solid ".concat(t)})),m=t.li(c||(c=n(["\n display: flex;\n flex-direction: column;\n position: relative;\n\n ","\n ","\n"],["\n display: flex;\n flex-direction: column;\n position: relative;\n\n ","\n ","\n"])),(function(t){return t.active&&o(d||(d=n(["\n "," {\n border-color: ",";\n }\n "],["\n "," {\n border-color: ",";\n }\n "])),x,(function(n){return n.theme.colors.tertiary}))}),(function(t){return t.done&&o(p||(p=n(["\n "," {\n border: none;\n background-color: ",";\n &:after {\n border-bottom: 2px solid\n ",";\n }\n }\n "],["\n "," {\n border: none;\n background-color: ",";\n &:after {\n border-bottom: 2px solid\n ",";\n }\n }\n "])),x,(function(n){return n.theme.colors.tertiary}),(function(n){return n.theme.colors.tertiary}))}));export{x as StepBar,m as StepItem,u as StepList,b as StepTick,s as StepWrapper};
|
|
2
2
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import t from"styled-components";import{Spacing as e}from"../Spacing/index.js";var o,
|
|
1
|
+
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import t from"styled-components";import{Spacing as e}from"../Spacing/index.js";var o,i=t.p(o||(o=n(["\n font-family: ",";\n word-break: ",";\n color: ",";\n text-align: ",";\n font-size: ",";\n line-height: ",";\n font-weight: ",";\n padding: 0;\n margin: 0;\n margin-bottom: ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n\n ","\n"],["\n font-family: ",";\n word-break: ",";\n color: ",";\n text-align: ",";\n font-size: ",";\n line-height: ",";\n font-weight: ",";\n padding: 0;\n margin: 0;\n margin-bottom: ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n\n ","\n"])),(function(n){return n.theme.typography.fontFamilyBase}),(function(n){return n.wordBreak||"normal"}),(function(n){var t=n.theme.colors,e=n.textColor;return e&&void 0!==t[e]?t[e]:e||t.textDark}),(function(n){return n.textAlign||"left"}),(function(n){var t=n.theme,e=t.fontSizes,o=t.fontSizes.m,i=n.textSize;return i?e[i]:o}),(function(n){return n.theme.typography.lineHeight}),(function(n){var t=n.textWeight,e=n.theme;return t||e.typography.fontWeightMedium}),(function(n){var t=n.as,e=n.theme.spacing.xs;return void 0===t||"p"===t?"".concat(e):0}),(function(n){return e(n,n.theme)}));export{i as TextStyled};
|
|
2
2
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as e,__assign as r}from"../../../node_modules/tslib/tslib.es6.js";import i,{forwardRef as t}from"react";import{useTheme as o}from"styled-components";import s from"../../themes/cruk.js";import a from"../ErrorText/index.js";import{LabelWrapper as
|
|
1
|
+
import{__rest as e,__assign as r}from"../../../node_modules/tslib/tslib.es6.js";import i,{forwardRef as t}from"react";import{useTheme as o}from"styled-components";import s from"../../themes/cruk.js";import a from"../ErrorText/index.js";import{LabelWrapper as n}from"../LabelWrapper/index.js";import l from"./styles.js";var d=t((function(t,d){var m=t.errorMessage,p=t.hasError,c=t.hintText,u=t.label,f=t.resize,h=void 0===f?"vertical":f,v=t.lineCount,x=void 0===v?3:v,b=e(t,["errorMessage","hasError","hintText","label","resize","lineCount"]),E=o(),j=r(r({},s),E);return i.createElement(n,{label:u,hintText:c,required:b.required||!1},i.createElement(l,r({},b,{"aria-invalid":p||!!m||!1,"aria-describedby":b.id&&m?"".concat(b.id,"-error"):void 0,hasError:p||!!m||!1,resize:h,lineCount:x,theme:j,ref:d,"data-hj-suppress":!0})),!!m&&i.createElement(a,{marginTop:"xxs",id:b.id?"".concat(b.id,"-error"):void 0},m))}));d.defaultProps={lineCount:3,resize:"vertical"};export{d as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import
|
|
1
|
+
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import o,{css as r}from"styled-components";var e,t,i=o.textarea(t||(t=n(["\n resize: ",";\n background-color: ",";\n background-image: none;\n border: ",";\n color: ",";\n display: block;\n font-family: ",";\n font-size: ",";\n padding: 6px 8px;\n width: 100%;\n height: ",";\n\n transition: border-color 150ms linear;\n &:disabled {\n border-color: ",";\n color: ",";\n }\n\n ",";\n"],["\n resize: ",";\n background-color: ",";\n background-image: none;\n border: ",";\n color: ",";\n display: block;\n font-family: ",";\n font-size: ",";\n padding: 6px 8px;\n width: 100%;\n height: ",";\n\n transition: border-color 150ms linear;\n &:disabled {\n border-color: ",";\n color: ",";\n }\n\n ",";\n"])),(function(n){return n.resize}),(function(n){return n.theme.colors.backgroundLight}),(function(n){var o=n.theme,r=n.hasError;return"solid ".concat(o.utilities.inputBorderWidth,"\n ").concat(r?o.colors.textError:o.colors.textInputBorder)}),(function(n){return n.theme.colors.textDark}),(function(n){return n.theme.typography.fontFamilyBase}),(function(n){return n.theme.fontSizes.m}),(function(n){var o=n.lineCount,r=n.theme;return"calc(".concat(r.typography.lineHeight," * ").concat(o,")")}),(function(n){return n.theme.colors.disabled}),(function(n){return n.theme.colors.disabled}),(function(o){var t=o.theme;return t.utilities.useDefaultFocusRect?null:r(e||(e=n(["\n &:focus {\n outline: 0;\n border-color: ",";\n }\n "],["\n &:focus {\n outline: 0;\n border-color: ",";\n }\n "])),t.colors.tertiary)}));export{i as StyledTextArea,i as default};
|
|
2
2
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as e,__assign as i}from"../../../node_modules/tslib/tslib.es6.js";import r,{forwardRef as t}from"react";import{useTheme as a}from"styled-components";import l from"../../themes/cruk.js";import s from"../ErrorText/index.js";import{LabelWrapper as
|
|
1
|
+
import{__rest as e,__assign as i}from"../../../node_modules/tslib/tslib.es6.js";import r,{forwardRef as t}from"react";import{useTheme as a}from"styled-components";import l from"../../themes/cruk.js";import s from"../ErrorText/index.js";import{LabelWrapper as o}from"../LabelWrapper/index.js";import{ExtraLeft as d,StyledInputWrapper as m,StyledInput as n,ExtraRight as h,Extra as b,ExtraWrapper as c}from"./styles.js";var x=t((function(t,x){var p=t.errorMessage,V=t.extraBottom,E=t.extraLeft,u=t.extraRight,f=t.extraTop,v=t.hasError,I=t.hintText,T=t.isValid,g=t.isValidVisible,j=t.isInvalidVisible,L=t.label,q=t.hideRequiredInLabel,R=e(t,["errorMessage","extraBottom","extraLeft","extraRight","extraTop","hasError","hintText","isValid","isValidVisible","isInvalidVisible","label","hideRequiredInLabel"]),y=a(),B=i(i({},l),y),M=r.createElement(r.Fragment,null,!!E&&r.createElement(d,{theme:B},E),r.createElement(m,{hasError:v||!!p||!1,isValid:void 0!==T?T:!v&&!p,"aria-invalid":v||!!p||!1,isValidVisible:g||!1,isInvalidVisible:j||!1,theme:B},r.createElement(n,i({hasError:v||!!p||!1,isValid:void 0!==T?T:!v&&!p,"aria-invalid":v||!!p||!1,"aria-describedby":R.id&&p?"".concat(R.id,"-error"):void 0,isValidVisible:g||!1,isInvalidVisible:j||!1},R,{theme:B,"data-hj-suppress":!0,ref:x}))),!!u&&r.createElement(h,{theme:B},u));return r.createElement(o,{label:L,hintText:I,required:R.required||!1,hideRequiredInLabel:q},!!f&&r.createElement(b,{theme:B},f),u||E?r.createElement(c,null,M):M,!!V&&r.createElement(b,{theme:B},V),!!p&&r.createElement(s,{marginTop:"xxs",id:R.id?"".concat(R.id,"-error"):void 0},p))}));export{x as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|