@cruk/cruk-react-components 1.1.5 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/lib/cjs/node_modules/@fortawesome/free-solid-svg-icons/index.es.js +1 -1
  2. package/lib/cjs/node_modules/@fortawesome/free-solid-svg-icons/index.es.js.map +1 -1
  3. package/lib/cjs/src/components/Button/styles.js +1 -1
  4. package/lib/cjs/src/components/Carousel/Dots.js +1 -1
  5. package/lib/cjs/src/components/Carousel/index.js +1 -1
  6. package/lib/cjs/src/components/Carousel/styles.js +1 -1
  7. package/lib/cjs/src/components/Footer/index.js +1 -1
  8. package/lib/cjs/src/components/Modal/README.md.js +1 -1
  9. package/lib/cjs/src/components/Modal/README.md.js.map +1 -1
  10. package/lib/cjs/src/components/Modal/index.js +1 -1
  11. package/lib/cjs/src/components/Modal/styles.js +1 -1
  12. package/lib/components/AddressLookup/index.d.ts +1 -26
  13. package/lib/components/Button/index.d.ts +1 -19
  14. package/lib/components/Carousel/Dots.d.ts +4 -4
  15. package/lib/components/Carousel/index.d.ts +10 -3
  16. package/lib/components/Carousel/styles.d.ts +6 -3
  17. package/lib/components/Checkbox/index.d.ts +3 -2
  18. package/lib/components/Collapse/styles.d.ts +1 -11
  19. package/lib/components/Divider.d.ts +5 -2
  20. package/lib/components/Footer/index.d.ts +3 -2
  21. package/lib/components/Icon/index.d.ts +0 -1
  22. package/lib/components/IconFa/index.d.ts +0 -1
  23. package/lib/components/LabelWrapper/index.d.ts +1 -0
  24. package/lib/components/LegendWrapper/index.d.ts +2 -2
  25. package/lib/components/Link/index.d.ts +1 -21
  26. package/lib/components/Loader/index.d.ts +1 -2
  27. package/lib/components/Modal/index.d.ts +8 -3
  28. package/lib/components/Modal/styles.d.ts +11 -15
  29. package/lib/components/Pagination/index.d.ts +2 -1
  30. package/lib/components/PopOver/index.d.ts +3 -2
  31. package/lib/components/ProgressBar/index.d.ts +3 -2
  32. package/lib/components/Radio/index.d.ts +3 -2
  33. package/lib/components/RadioConsent/styles.d.ts +1 -1
  34. package/lib/components/Step/index.d.ts +2 -1
  35. package/lib/components/TestWrapper.d.ts +7 -3
  36. package/lib/components/ThemeCheatSheet.d.ts +1 -3
  37. package/lib/components/Totaliser/styles.d.ts +1 -2
  38. package/lib/docs/Docs.d.ts +2 -0
  39. package/lib/docs/index.d.ts +1 -0
  40. package/lib/es/node_modules/@fortawesome/free-solid-svg-icons/index.es.js +1 -1
  41. package/lib/es/node_modules/@fortawesome/free-solid-svg-icons/index.es.js.map +1 -1
  42. package/lib/es/src/components/Button/styles.js +1 -1
  43. package/lib/es/src/components/Carousel/Dots.js +1 -1
  44. package/lib/es/src/components/Carousel/index.js +1 -1
  45. package/lib/es/src/components/Carousel/styles.js +1 -1
  46. package/lib/es/src/components/Footer/index.js +1 -1
  47. package/lib/es/src/components/Modal/README.md.js +1 -1
  48. package/lib/es/src/components/Modal/README.md.js.map +1 -1
  49. package/lib/es/src/components/Modal/index.js +1 -1
  50. package/lib/es/src/components/Modal/styles.js +1 -1
  51. package/lib/hocs/MdxProvider.d.ts +5 -2
  52. package/package.json +7 -5
  53. package/CHANGELOG.md +0 -227
@@ -1,2 +1,2 @@
1
- import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import o,{css as r}from"styled-components";var t,e,c,i,a,l,d,u,s=o.span(t||(t=n(["\n margin-left: ",";\n &:first-of-type {\n margin-left: 0;\n }\n"],["\n margin-left: ",";\n &:first-of-type {\n margin-left: 0;\n }\n"])),(function(n){return n.theme.spacing.xxs})),b=o.button(u||(u=n(["\n box-sizing: border-box;\n min-height: ",';\n height: "min-content";\n display: inline-block;\n vertical-align: middle;\n padding: ',";\n width: ",";\n min-width: ",";\n\n border-radius: ",";\n border-style: solid;\n border-width: ",";\n\n transition: color 0.2s ease, background-color 0.2s ease,\n border-color 0.2s ease;\n\n cursor: pointer;\n font-size: ",";\n font-family: ",";\n font-weight: ",";\n text-align: center;\n text-transform: ",";\n text-decoration: ",";\n\n &:focus-visible {\n outline: auto;\n }\n\n ","\n\n ","\n\n ","\n \n ","\n\n ","\n\n ","\n"],["\n box-sizing: border-box;\n min-height: ",';\n height: "min-content";\n display: inline-block;\n vertical-align: middle;\n padding: ',";\n width: ",";\n min-width: ",";\n\n border-radius: ",";\n border-style: solid;\n border-width: ",";\n\n transition: color 0.2s ease, background-color 0.2s ease,\n border-color 0.2s ease;\n\n cursor: pointer;\n font-size: ",";\n font-family: ",";\n font-weight: ",";\n text-align: center;\n text-transform: ",";\n text-decoration: ",";\n\n &:focus-visible {\n outline: auto;\n }\n\n ","\n\n ","\n\n ","\n \n ","\n\n ","\n\n ","\n"])),"3rem",(function(n){var o=n.theme;return n.isIconButton?"0":"calc( (".concat("3rem"," - ( ").concat(o.button.buttonBorderThickness," * 2) - ").concat(o.typography.lineHeight," ) / 2) ").concat(o.spacing.m)}),(function(n){return n.isIconButton?"".concat("3rem"):"auto"}),(function(n){return n.isIconButton?"".concat("3rem"):"auto"}),(function(n){return n.theme.button.borderRadius}),(function(n){return n.theme.button.buttonBorderThickness}),(function(n){return n.theme.fontSizes.m}),(function(n){return n.theme.typography.fontFamilyHeadings}),(function(n){return n.theme.typography.fontWeightMedium}),(function(n){return n.theme.button.textTransform}),(function(n){return n.theme.button.textDecoration}),(function(o){return"primary"===o.appearance&&r(e||(e=n(["\n background-color: ",";\n border-color: ",";\n color: "," !important;\n :focus,\n :hover {\n background-color: ",";\n border-color: ",";\n color: "," !important;\n }\n :disabled {\n cursor: not-allowed;\n background-color: ",";\n color: "," !important;\n border-color: ",";\n }\n "],["\n background-color: ",";\n border-color: ",";\n color: "," !important;\n :focus,\n :hover {\n background-color: ",";\n border-color: ",";\n color: "," !important;\n }\n :disabled {\n cursor: not-allowed;\n background-color: ",";\n color: "," !important;\n border-color: ",";\n }\n "])),o.theme.colors.buttonPrimaryBackground,o.theme.colors.buttonPrimaryBorder,o.theme.colors.buttonPrimaryText,o.theme.colors.buttonPrimaryBackgroundHover,o.theme.colors.buttonPrimaryBorderHover,o.theme.colors.buttonPrimaryTextHover,o.theme.colors.buttonPrimaryDisabledBackground,o.theme.colors.buttonPrimaryDisabledText,o.theme.colors.buttonPrimaryDisabledBorder)}),(function(o){return"secondary"===o.appearance&&r(c||(c=n(["\n background-color: ",";\n border-color: ",";\n color: "," !important;\n :focus,\n :hover {\n background-color: ",";\n border-color: ",";\n color: "," !important;\n }\n :disabled {\n cursor: not-allowed;\n background-color: ",";\n color: "," !important;\n border-color: ",";\n }\n "],["\n background-color: ",";\n border-color: ",";\n color: "," !important;\n :focus,\n :hover {\n background-color: ",";\n border-color: ",";\n color: "," !important;\n }\n :disabled {\n cursor: not-allowed;\n background-color: ",";\n color: "," !important;\n border-color: ",";\n }\n "])),o.theme.colors.buttonSecondaryBackground,o.theme.colors.buttonSecondaryBorder,o.theme.colors.buttonSecondaryText,o.theme.colors.buttonSecondaryBackgroundHover,o.theme.colors.buttonSecondaryBorderHover,o.theme.colors.buttonSecondaryTextHover,o.theme.colors.buttonSecondaryDisabledBackground,o.theme.colors.buttonSecondaryDisabledText,o.theme.colors.buttonSecondaryDisabledBorder)}),(function(o){return"tertiary"===o.appearance&&r(i||(i=n(["\n display: inline-block;\n padding: 0;\n border: 0px;\n background-color: rgba(255, 255, 255, 0);\n transition: color 0.2s ease;\n color: ",";\n :focus,\n :hover {\n color: ",";\n }\n :disabled {\n cursor: not-allowed;\n background-color: transparent;\n color: "," !important;\n border-color: transparent;\n }\n "],["\n display: inline-block;\n padding: 0;\n border: 0px;\n background-color: rgba(255, 255, 255, 0);\n transition: color 0.2s ease;\n color: ",";\n :focus,\n :hover {\n color: ",";\n }\n :disabled {\n cursor: not-allowed;\n background-color: transparent;\n color: "," !important;\n border-color: transparent;\n }\n "])),o.theme.colors.buttonTertiaryText,o.theme.colors.buttonTertiaryTextHover,o.theme.colors.buttonTertiaryDisabledText)}),(function(o){return"l"===o.size&&r(a||(a=n(["\n min-height: ",";\n border-radius: ",";\n padding: ",";\n min-width: ",";\n height: ",";\n "],["\n min-height: ",";\n border-radius: ",";\n padding: ",";\n min-width: ",";\n height: ",";\n "])),"4rem",(function(n){return n.theme.button.borderRadiusLarge}),(function(n){var o=n.theme;return n.isIconButton?"0":"calc( (".concat("4rem"," - ( ").concat(o.button.buttonBorderThickness," * 2) - ").concat(o.typography.lineHeight," ) / 2) ").concat(o.spacing.m)}),(function(n){return n.isIconButton?"".concat("4rem"):"auto"}),(function(n){return n.isIconButton?"".concat("4rem"):"min-content"}))}),(function(o){return o.full&&r(l||(l=n(["\n width: 100%;\n "],["\n width: 100%;\n "])))}),(function(o){return o.css&&r(d||(d=n(["\n ","\n "],["\n ","\n "])),o.css)}));export{s as Spacer,b as StyledButton};
1
+ import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import o,{css as r}from"styled-components";var t,e,c,i,a,l,d,u,s=o.span(t||(t=n(["\n margin-left: ",";\n &:first-of-type {\n margin-left: 0;\n }\n"],["\n margin-left: ",";\n &:first-of-type {\n margin-left: 0;\n }\n"])),(function(n){return n.theme.spacing.xxs})),b=o.button(u||(u=n(["\n box-sizing: border-box;\n min-height: ",";\n height: min-content;\n display: inline-block;\n vertical-align: middle;\n padding: ",";\n width: ",";\n min-width: ",";\n\n border-radius: ",";\n border-style: solid;\n border-width: ",";\n\n transition: color 0.2s ease, background-color 0.2s ease,\n border-color 0.2s ease;\n\n cursor: pointer;\n font-size: ",";\n font-family: ",";\n font-weight: ",";\n text-align: center;\n text-transform: ",";\n text-decoration: ",";\n\n &:focus-visible {\n outline: auto;\n }\n\n ","\n\n ","\n\n ","\n \n ","\n\n ","\n\n ","\n"],["\n box-sizing: border-box;\n min-height: ",";\n height: min-content;\n display: inline-block;\n vertical-align: middle;\n padding: ",";\n width: ",";\n min-width: ",";\n\n border-radius: ",";\n border-style: solid;\n border-width: ",";\n\n transition: color 0.2s ease, background-color 0.2s ease,\n border-color 0.2s ease;\n\n cursor: pointer;\n font-size: ",";\n font-family: ",";\n font-weight: ",";\n text-align: center;\n text-transform: ",";\n text-decoration: ",";\n\n &:focus-visible {\n outline: auto;\n }\n\n ","\n\n ","\n\n ","\n \n ","\n\n ","\n\n ","\n"])),"3rem",(function(n){var o=n.theme;return n.isIconButton?"0":"calc( (".concat("3rem"," - ( ").concat(o.button.buttonBorderThickness," * 2) - ").concat(o.typography.lineHeight," ) / 2) ").concat(o.spacing.m)}),(function(n){return n.isIconButton?"".concat("3rem"):"auto"}),(function(n){return n.isIconButton?"".concat("3rem"):"auto"}),(function(n){return n.theme.button.borderRadius}),(function(n){return n.theme.button.buttonBorderThickness}),(function(n){return n.theme.fontSizes.m}),(function(n){return n.theme.typography.fontFamilyHeadings}),(function(n){return n.theme.typography.fontWeightMedium}),(function(n){return n.theme.button.textTransform}),(function(n){return n.theme.button.textDecoration}),(function(o){return"primary"===o.appearance&&r(e||(e=n(["\n background-color: ",";\n border-color: ",";\n color: "," !important;\n :focus,\n :hover {\n background-color: ",";\n border-color: ",";\n color: "," !important;\n }\n :disabled {\n cursor: not-allowed;\n background-color: ",";\n color: "," !important;\n border-color: ",";\n }\n "],["\n background-color: ",";\n border-color: ",";\n color: "," !important;\n :focus,\n :hover {\n background-color: ",";\n border-color: ",";\n color: "," !important;\n }\n :disabled {\n cursor: not-allowed;\n background-color: ",";\n color: "," !important;\n border-color: ",";\n }\n "])),o.theme.colors.buttonPrimaryBackground,o.theme.colors.buttonPrimaryBorder,o.theme.colors.buttonPrimaryText,o.theme.colors.buttonPrimaryBackgroundHover,o.theme.colors.buttonPrimaryBorderHover,o.theme.colors.buttonPrimaryTextHover,o.theme.colors.buttonPrimaryDisabledBackground,o.theme.colors.buttonPrimaryDisabledText,o.theme.colors.buttonPrimaryDisabledBorder)}),(function(o){return"secondary"===o.appearance&&r(c||(c=n(["\n background-color: ",";\n border-color: ",";\n color: "," !important;\n :focus,\n :hover {\n background-color: ",";\n border-color: ",";\n color: "," !important;\n }\n :disabled {\n cursor: not-allowed;\n background-color: ",";\n color: "," !important;\n border-color: ",";\n }\n "],["\n background-color: ",";\n border-color: ",";\n color: "," !important;\n :focus,\n :hover {\n background-color: ",";\n border-color: ",";\n color: "," !important;\n }\n :disabled {\n cursor: not-allowed;\n background-color: ",";\n color: "," !important;\n border-color: ",";\n }\n "])),o.theme.colors.buttonSecondaryBackground,o.theme.colors.buttonSecondaryBorder,o.theme.colors.buttonSecondaryText,o.theme.colors.buttonSecondaryBackgroundHover,o.theme.colors.buttonSecondaryBorderHover,o.theme.colors.buttonSecondaryTextHover,o.theme.colors.buttonSecondaryDisabledBackground,o.theme.colors.buttonSecondaryDisabledText,o.theme.colors.buttonSecondaryDisabledBorder)}),(function(o){return"tertiary"===o.appearance&&r(i||(i=n(["\n display: inline-block;\n padding: 0;\n border: 0px;\n background-color: rgba(255, 255, 255, 0);\n transition: color 0.2s ease;\n color: ",";\n :focus,\n :hover {\n color: ",";\n }\n :disabled {\n cursor: not-allowed;\n background-color: transparent;\n color: "," !important;\n border-color: transparent;\n }\n "],["\n display: inline-block;\n padding: 0;\n border: 0px;\n background-color: rgba(255, 255, 255, 0);\n transition: color 0.2s ease;\n color: ",";\n :focus,\n :hover {\n color: ",";\n }\n :disabled {\n cursor: not-allowed;\n background-color: transparent;\n color: "," !important;\n border-color: transparent;\n }\n "])),o.theme.colors.buttonTertiaryText,o.theme.colors.buttonTertiaryTextHover,o.theme.colors.buttonTertiaryDisabledText)}),(function(o){return"l"===o.size&&r(a||(a=n(["\n min-height: ",";\n border-radius: ",";\n padding: ",";\n min-width: ",";\n height: ",";\n "],["\n min-height: ",";\n border-radius: ",";\n padding: ",";\n min-width: ",";\n height: ",";\n "])),"4rem",(function(n){return n.theme.button.borderRadiusLarge}),(function(n){var o=n.theme;return n.isIconButton?"0":"calc( (".concat("4rem"," - ( ").concat(o.button.buttonBorderThickness," * 2) - ").concat(o.typography.lineHeight," ) / 2) ").concat(o.spacing.m)}),(function(n){return n.isIconButton?"".concat("4rem"):"auto"}),(function(n){return n.isIconButton?"".concat("4rem"):"min-content"}))}),(function(o){return o.full&&r(l||(l=n(["\n width: 100%;\n "],["\n width: 100%;\n "])))}),(function(o){return o.css&&r(d||(d=n(["\n ","\n "],["\n ","\n "])),o.css)}));export{s as Spacer,b as StyledButton};
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{ButtonWrapper as l,DotContainer as n,Dot as r,ScreenReaderOnly as o,CarouselButton as c,VerticalAlign as a}from"./styles.js";var i=function(l){return t.createElement("div",null,t.createElement(c,e({},l,{"aria-label":"previous"}),t.createElement(a,null,"",t.createElement(o,null,"Scroll carousel to previous index"))))},u=function(l){return t.createElement("div",null,t.createElement(c,e({},l,{"aria-label":"next"}),t.createElement(a,null,"",t.createElement(o,null,"Scroll carousel to previous index"))))},m=function(e){var c=e.count,a=e.currentPosition,m=void 0===a?0:a,s=e.scrollToPosition,d=e.next,E=e.previous,f=m!==c-1,v=0!==m,p=Array.from({length:c},(function(e,t){return"arrayIndex".concat(t)}));return t.createElement(l,null,t.createElement(i,{disabled:!v,onClick:E}),t.createElement(n,{count:c},p.map((function(e,l){var n=l===m;return t.createElement(r,{key:e,selected:n,role:"switch","aria-checked":n,onClick:function(){s(l)}},t.createElement(o,null,"Scroll carousel to index ".concat(l)))}))),t.createElement(u,{disabled:!f,onClick:d}))};export{i as CarouselLeftButton,u as CarouselRightButton,m as Dots,m as default};
1
+ import{__assign as e}from"../../../node_modules/tslib/tslib.es6.js";import t from"react";import{faCaretLeft as n,faCaretRight as r}from"../../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js";import l from"../IconFa/index.js";import{ButtonWrapper as o,DotContainer as c,Dot as a,ScreenReaderOnly as i,CarouselButton as m,VerticalAlign as s}from"./styles.js";var u=function(r){return t.createElement("div",null,t.createElement(m,e({},r,{"aria-label":"previous"}),t.createElement(s,null,t.createElement(l,{faIcon:n,size:"1.25em"}),t.createElement(i,null,"Scroll carousel to previous index"))))},d=function(n){return t.createElement("div",null,t.createElement(m,e({},n,{"aria-label":"next"}),t.createElement(s,null,t.createElement(l,{faIcon:r,size:"1.25em"}),t.createElement(i,null,"Scroll carousel to previous index"))))},f=function(e){var n=e.count,r=e.currentPosition,l=void 0===r?0:r,m=e.scrollToPosition,s=e.next,f=e.previous,E=l!==n-1,p=0!==l,v=Array.from({length:n},(function(e,t){return"arrayIndex".concat(t)}));return t.createElement(o,null,t.createElement(u,{disabled:!p,onClick:f}),t.createElement(c,{count:n},v.map((function(e,n){var r=n===l;return t.createElement(a,{key:e,selected:r,role:"switch","aria-checked":r,onClick:function(){m(n)}},t.createElement(i,null,"Scroll carousel to index ".concat(n)))}))),t.createElement(d,{disabled:!E,onClick:s}))};export{u as CarouselLeftButton,d as CarouselRightButton,f as Dots,f as default};
2
2
  //# sourceMappingURL=Dots.js.map
@@ -1,2 +1,2 @@
1
- import e,{memo as r,useState as t,useRef as n,useEffect as o}from"react";import{InView as l}from"../../../node_modules/react-intersection-observer/react-intersection-observer.modern.mjs.js";import i from"../Box/index.js";import{Dots as c}from"./Dots.js";import{CarouselWrapper as s,CarouselScrollArea as a,CarouselCard as u,CarouselCardInner as m}from"./styles.js";var d=function(r){var d=r.startPosition,f=void 0===d?0:d,h=r.children,v=r.onPositionChanged,g=r.shrinkUnselectedPages,E=void 0!==g&&g,p=t(f),P=p[0],j=p[1],x=t(!0),y=x[0],C=x[1],T=n(null),b=e.Children.toArray(h).filter(Boolean),k=function(e){if(T&&T.current){var r=T.current.scrollWidth,t=0===e,n=e===T.current.children.length-1,o=T.current.children[e];if(!o)return;var l=o.offsetLeft;t?T.current.scrollTo(0,0):n?T.current.scrollTo(r,0):T.current.scrollTo(l,0),y||C(!0)}};o((function(){0!==f&&C(!1)}),[f]),o((function(){!1===y&&k(f)}),[y]);var B=1===b.length;return e.createElement(e.Fragment,null,e.createElement(i,null,e.createElement(s,null,e.createElement(a,{ref:T,"aria-live":"assertive",smoothScrolling:y,tabIndex:0},b.map((function(r,t){var n=t===P;return e.createElement(u,{key:t,onlyChild:B},e.createElement(l,{threshold:.5,as:"div",onChange:function(e){var r;e&&P!==(r=t)&&(j(r),v&&v(r))}},e.createElement(m,{onlyChild:B,isSelected:n,shrinkUnselectedPages:E},r)))}))))),b.length>1?e.createElement(i,null,e.createElement(c,{count:b.length,currentPosition:P,scrollToPosition:k,next:function(){k(P+1)},previous:function(){k(P-1)}})):null)},f=r(d);export{d as Carousel,f as default};
1
+ import e,{memo as r,useState as t,useRef as n,useEffect as l}from"react";import{InView as o}from"../../../node_modules/react-intersection-observer/react-intersection-observer.modern.mjs.js";import i from"../Box/index.js";import{Dots as c}from"./Dots.js";import{CarouselWrapper as s,CarouselScrollArea as a,CarouselCard as u,CarouselCardInner as d}from"./styles.js";var m=function(r){var m=r.startPosition,f=void 0===m?0:m,h=r.children,v=r.onPositionChanged,g=r.shrinkUnselectedPages,E=void 0!==g&&g,p=r.fullWidthChild,C=void 0!==p&&p,P=t(f),j=P[0],x=P[1],y=t(!0),T=y[0],W=y[1],b=n(null),k=e.Children.toArray(h).filter(Boolean),B=function(e){if(b&&b.current){var r=b.current.scrollWidth,t=0===e,n=e===b.current.children.length-1,l=b.current.children[e];if(!l)return;var o=l.offsetLeft;t?b.current.scrollTo(0,0):n?b.current.scrollTo(r,0):b.current.scrollTo(o,0),T||W(!0)}};l((function(){0!==f&&W(!1)}),[f]),l((function(){!1===T&&B(f)}),[T]);var S=1===k.length;return e.createElement(e.Fragment,null,e.createElement(i,null,e.createElement(s,null,e.createElement(a,{ref:b,"aria-live":"assertive",smoothScrolling:T,tabIndex:0},k.map((function(r,t){var n=t===j;return e.createElement(u,{key:"card".concat(t),onlyChild:S,fullWidthChild:C},e.createElement(o,{threshold:.5,as:"div",onChange:function(e){var r;e&&j!==(r=t)&&(x(r),v&&v(r))}},e.createElement(d,{onlyChild:S,isSelected:n,shrinkUnselectedPages:E,fullWidthChild:C},r)))}))))),k.length>1?e.createElement(i,null,e.createElement(c,{count:k.length,currentPosition:j,scrollToPosition:B,next:function(){B(j+1)},previous:function(){B(j-1)}})):null)},f=r(m);export{m as Carousel,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 e from"styled-components";var o,t,r,i,a,s,l,c,d,p,h=e.div(o||(o=n(["\n position: relative;\n width: 100%;\n overflow-y: hidden;\n"],["\n position: relative;\n width: 100%;\n overflow-y: hidden;\n"]))),m=e.ul(t||(t=n(["\n position: relative;\n overflow-x: scroll;\n scroll-snap-type: x mandatory;\n scroll-behavior: ",";\n -webkit-overflow-scrolling: touch;\n white-space: nowrap;\n padding-left: 0;\n padding-right: 0;\n padding-bottom: 20px;\n margin-bottom: -20px;\n height: 100%;\n"],["\n position: relative;\n overflow-x: scroll;\n scroll-snap-type: x mandatory;\n scroll-behavior: ",";\n -webkit-overflow-scrolling: touch;\n white-space: nowrap;\n padding-left: 0;\n padding-right: 0;\n padding-bottom: 20px;\n margin-bottom: -20px;\n height: 100%;\n"])),(function(n){return n.smoothScrolling?"smooth":"auto"})),u=e.li(r||(r=n(["\n scroll-snap-align: center;\n display: inline-block;\n width: ",";\n"],["\n scroll-snap-align: center;\n display: inline-block;\n width: ",";\n"])),(function(n){return n.onlyChild?"100%":"80%"})),f=e.div(i||(i=n(["\n transition: transform 0.2s linear;\n transform: ",";\n"],["\n transition: transform 0.2s linear;\n transform: ",";\n"])),(function(n){var e=n.isSelected,o=n.shrinkUnselectedPages;return n.onlyChild||e&&o?"scale(1)":"scale(0.9)"})),g=e.div(a||(a=n(["\n display: flex;\n justify-content: center;\n"],["\n display: flex;\n justify-content: center;\n"]))),b=e.span(s||(s=n(["\n display: block;\n margin: auto;\n height: 2rem;\n line-height: 1.75rem;\n"],["\n display: block;\n margin: auto;\n height: 2rem;\n line-height: 1.75rem;\n"]))),x=e.button(l||(l=n(["\n height: 100%;\n cursor: pointer;\n background-color: rgba(255, 255, 255, 0);\n border: none;\n /* TODO if this makes it into the component library carouselButtonColor should be a theme prop */\n color: ",";\n font-size: ",";\n font-weight: 600;\n transition: color 0.3s ease, transform 0.3s ease;\n max-width: 3rem;\n padding: 0;\n vertical-align: middle;\n user-select: none;\n\n transform: scale(0.8);\n &:hover {\n transform: ",";\n }\n"],["\n height: 100%;\n cursor: pointer;\n background-color: rgba(255, 255, 255, 0);\n border: none;\n /* TODO if this makes it into the component library carouselButtonColor should be a theme prop */\n color: ",";\n font-size: ",";\n font-weight: 600;\n transition: color 0.3s ease, transform 0.3s ease;\n max-width: 3rem;\n padding: 0;\n vertical-align: middle;\n user-select: none;\n\n transform: scale(0.8);\n &:hover {\n transform: ",";\n }\n"])),(function(n){var e=n.disabled,o=n.theme;return e?o.colors.disabled:"su2c"===o.name?o.colors.textDark:o.colors.primary}),(function(n){return n.theme.fontSizes.xxxl}),(function(n){return n.disabled?"scale(0.8)":"scale(1)"})),w=e.div(c||(c=n(["\n display: flex;\n flex-direction: row;\n justify-content: center;\n display: ",";\n\n @media (min-width: ",") {\n display: ",";\n }\n\n @media (min-width: ",") {\n display: ",";\n }\n"],["\n display: flex;\n flex-direction: row;\n justify-content: center;\n display: ",";\n\n @media (min-width: ",") {\n display: ",";\n }\n\n @media (min-width: ",") {\n display: ",";\n }\n"])),(function(n){return n.count>6?"none":"flex"}),(function(n){return n.theme.breakpoint.tablet}),(function(n){return n.count>10?"none":"flex"}),(function(n){return n.theme.breakpoint.desktop}),(function(n){return n.count>20?"none":"flex"})),y=e.button(d||(d=n(["\n border: none;\n outline-offset: ",";\n padding: 0;\n margin: ",";\n width: ",";\n height: ",";\n border-radius: 50%;\n /* TODO if this makes it into the component library carouselButtonColor should be a theme prop */\n border: ",";\n background-color: ",";\n user-select: none;\n transition: background-color 0.3s ease, transform 0.3s ease;\n transform: scale(0.8);\n &:hover {\n transform: scale(1);\n }\n"],["\n border: none;\n outline-offset: ",";\n padding: 0;\n margin: ",";\n width: ",";\n height: ",";\n border-radius: 50%;\n /* TODO if this makes it into the component library carouselButtonColor should be a theme prop */\n border: ",";\n background-color: ",";\n user-select: none;\n transition: background-color 0.3s ease, transform 0.3s ease;\n transform: scale(0.8);\n &:hover {\n transform: scale(1);\n }\n"])),(function(n){return n.theme.spacing.xxs}),(function(n){var e=n.theme;return"auto ".concat(e.spacing.xxs)}),(function(n){return n.theme.fontSizes.l}),(function(n){return n.theme.fontSizes.l}),(function(n){var e=n.theme;return"solid 1px ".concat("su2c"===e.name?e.colors.textDark:e.colors.primary)}),(function(n){var e=n.theme;return n.selected?"".concat("su2c"===e.name?e.colors.textDark:e.colors.primary):e.colors.backgroundLight})),v=e.span(p||(p=n(["\n border: 0px;\n clip: rect(0px, 0px, 0px, 0px);\n height: 1px;\n margin-bottom: -1px;\n margin-right: -1px;\n overflow: hidden;\n padding: 0px;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n"],["\n border: 0px;\n clip: rect(0px, 0px, 0px, 0px);\n height: 1px;\n margin-bottom: -1px;\n margin-right: -1px;\n overflow: hidden;\n padding: 0px;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n"])));export{g as ButtonWrapper,x as CarouselButton,u as CarouselCard,f as CarouselCardInner,m as CarouselScrollArea,h as CarouselWrapper,y as Dot,w as DotContainer,v as ScreenReaderOnly,b as VerticalAlign};
1
+ import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import e from"styled-components";var o,t,r,i,a,s,l,c,d,p,h=e.div(o||(o=n(["\n position: relative;\n width: 100%;\n overflow-y: hidden;\n"],["\n position: relative;\n width: 100%;\n overflow-y: hidden;\n"]))),m=e.ul(t||(t=n(["\n position: relative;\n overflow-x: scroll;\n scroll-snap-type: x mandatory;\n scroll-behavior: ",";\n -webkit-overflow-scrolling: touch;\n white-space: nowrap;\n padding-left: 0;\n padding-right: 0;\n padding-bottom: 20px;\n margin-bottom: -20px;\n height: 100%;\n"],["\n position: relative;\n overflow-x: scroll;\n scroll-snap-type: x mandatory;\n scroll-behavior: ",";\n -webkit-overflow-scrolling: touch;\n white-space: nowrap;\n padding-left: 0;\n padding-right: 0;\n padding-bottom: 20px;\n margin-bottom: -20px;\n height: 100%;\n"])),(function(n){return n.smoothScrolling?"smooth":"auto"})),u=e.li(r||(r=n(["\n scroll-snap-align: center;\n display: inline-block;\n width: ",";\n"],["\n scroll-snap-align: center;\n display: inline-block;\n width: ",";\n"])),(function(n){var e=n.onlyChild,o=n.fullWidthChild;return e||o?"100%":"80%"})),f=e.div(i||(i=n(["\n transition: transform 0.2s linear;\n transform: ",";\n"],["\n transition: transform 0.2s linear;\n transform: ",";\n"])),(function(n){var e=n.isSelected,o=n.shrinkUnselectedPages,t=n.onlyChild,r=n.fullWidthChild;return t||e&&o||r?"scale(1)":"scale(0.9)"})),g=e.div(a||(a=n(["\n display: flex;\n justify-content: center;\n"],["\n display: flex;\n justify-content: center;\n"]))),b=e.span(s||(s=n(["\n display: block;\n margin: auto;\n height: 2rem;\n line-height: 1.75rem;\n"],["\n display: block;\n margin: auto;\n height: 2rem;\n line-height: 1.75rem;\n"]))),x=e.button(l||(l=n(["\n height: 100%;\n cursor: pointer;\n background-color: rgba(255, 255, 255, 0);\n border: none;\n /* TODO if this makes it into the component library carouselButtonColor should be a theme prop */\n color: ",";\n font-size: ",";\n font-weight: 600;\n transition: color 0.3s ease, transform 0.3s ease;\n max-width: 3rem;\n padding: 0;\n vertical-align: middle;\n user-select: none;\n\n transform: scale(0.8);\n &:hover {\n transform: ",";\n }\n"],["\n height: 100%;\n cursor: pointer;\n background-color: rgba(255, 255, 255, 0);\n border: none;\n /* TODO if this makes it into the component library carouselButtonColor should be a theme prop */\n color: ",";\n font-size: ",";\n font-weight: 600;\n transition: color 0.3s ease, transform 0.3s ease;\n max-width: 3rem;\n padding: 0;\n vertical-align: middle;\n user-select: none;\n\n transform: scale(0.8);\n &:hover {\n transform: ",";\n }\n"])),(function(n){var e=n.disabled,o=n.theme;return e?o.colors.disabled:"su2c"===o.name?o.colors.textDark:o.colors.primary}),(function(n){return n.theme.fontSizes.xxxl}),(function(n){return n.disabled?"scale(0.8)":"scale(1)"})),w=e.div(c||(c=n(["\n display: flex;\n flex-direction: row;\n justify-content: center;\n display: ",";\n\n @media (min-width: ",") {\n display: ",";\n }\n\n @media (min-width: ",") {\n display: ",";\n }\n"],["\n display: flex;\n flex-direction: row;\n justify-content: center;\n display: ",";\n\n @media (min-width: ",") {\n display: ",";\n }\n\n @media (min-width: ",") {\n display: ",";\n }\n"])),(function(n){return n.count>6?"none":"flex"}),(function(n){return n.theme.breakpoint.tablet}),(function(n){return n.count>10?"none":"flex"}),(function(n){return n.theme.breakpoint.desktop}),(function(n){return n.count>20?"none":"flex"})),y=e.button(d||(d=n(["\n border: none;\n outline-offset: ",";\n padding: 0;\n margin: ",";\n width: ",";\n height: ",";\n border-radius: 50%;\n /* TODO if this makes it into the component library carouselButtonColor should be a theme prop */\n border: ",";\n background-color: ",";\n user-select: none;\n transition: background-color 0.3s ease, transform 0.3s ease;\n transform: scale(0.8);\n &:hover {\n transform: scale(1);\n }\n"],["\n border: none;\n outline-offset: ",";\n padding: 0;\n margin: ",";\n width: ",";\n height: ",";\n border-radius: 50%;\n /* TODO if this makes it into the component library carouselButtonColor should be a theme prop */\n border: ",";\n background-color: ",";\n user-select: none;\n transition: background-color 0.3s ease, transform 0.3s ease;\n transform: scale(0.8);\n &:hover {\n transform: scale(1);\n }\n"])),(function(n){return n.theme.spacing.xxs}),(function(n){var e=n.theme;return"auto ".concat(e.spacing.xxs)}),(function(n){return n.theme.fontSizes.l}),(function(n){return n.theme.fontSizes.l}),(function(n){var e=n.theme;return"solid 1px ".concat("su2c"===e.name?e.colors.textDark:e.colors.primary)}),(function(n){var e=n.theme;return n.selected?"".concat("su2c"===e.name?e.colors.textDark:e.colors.primary):e.colors.backgroundLight})),v=e.span(p||(p=n(["\n border: 0px;\n clip: rect(0px, 0px, 0px, 0px);\n height: 1px;\n margin-bottom: -1px;\n margin-right: -1px;\n overflow: hidden;\n padding: 0px;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n"],["\n border: 0px;\n clip: rect(0px, 0px, 0px, 0px);\n height: 1px;\n margin-bottom: -1px;\n margin-right: -1px;\n overflow: hidden;\n padding: 0px;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n"])));export{g as ButtonWrapper,x as CarouselButton,u as CarouselCard,f as CarouselCardInner,m as CarouselScrollArea,h as CarouselWrapper,y as Dot,w as DotContainer,v as ScreenReaderOnly,b as VerticalAlign};
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 l,ThemeProvider as n}from"styled-components";import r from"../../themes/cruk.js";import{Text as o}from"../Text/index.js";import{StyledFooter as a,FooterContentWrapper as m,FooterSectionLogo as s,StyledRegulatorLogo as i,FooterSectionLinks as c,StyledNav as E,StyledUL as f,StyledLI as u,FooterSection as p,FooterSectionAddress as d,StyledAddress as x}from"./styles.js";var g=function(g){var S=g.children,y=g.middleSection,h=t.Children.toArray(S),z=l(),C=e(e({},r),z);return t.createElement(n,{theme:C},t.createElement(a,null,t.createElement(m,null,t.createElement(s,null,t.createElement(i,{alt:C.siteConfig.footerLogoAlt||"",src:C.siteConfig.footerLogoSrc||""})),t.createElement(c,null,t.createElement(E,{"aria-label":"footer links"},t.createElement(f,null,h.length?h.map((function(e,l){return t.createElement(u,{key:l},e)})):null))),t.createElement(p,null,y?"string"==typeof y?t.createElement(o,{textSize:"s"},y):t.createElement(t.Fragment,null,y):t.createElement(o,{textSize:"s"},C.siteConfig.footerCopyText)),t.createElement(d,null,t.createElement(x,null,t.createElement(o,{as:"span",textSize:"s"},"2 Redman Place"),t.createElement(o,{as:"span",textSize:"s"},"London"),t.createElement(o,{as:"span",textSize:"s"},"E20 1JQ"))))))};export{g as Footer,g as default};
1
+ import{__assign as e}from"../../../node_modules/tslib/tslib.es6.js";import t from"react";import{useTheme as n,ThemeProvider as l}from"styled-components";import r from"../../themes/cruk.js";import{Text as o}from"../Text/index.js";import{StyledFooter as a,FooterContentWrapper as m,FooterSectionLogo as s,StyledRegulatorLogo as c,FooterSectionLinks as i,StyledNav as E,StyledUL as f,StyledLI as u,FooterSection as p,FooterSectionAddress as d,StyledAddress as x}from"./styles.js";var g=function(g){var S=g.children,y=g.middleSection,h=t.Children.toArray(S),z=n(),C=e(e({},r),z);return t.createElement(l,{theme:C},t.createElement(a,null,t.createElement(m,null,t.createElement(s,null,t.createElement(c,{alt:C.siteConfig.footerLogoAlt||"",src:C.siteConfig.footerLogoSrc||""})),t.createElement(i,null,t.createElement(E,{"aria-label":"footer links"},t.createElement(f,null,h.length?h.map((function(e,n){return t.createElement(u,{key:"footerLink".concat(n)},e)})):null))),t.createElement(p,null,y?"string"==typeof y?t.createElement(o,{textSize:"s"},y):t.createElement(t.Fragment,null,y):t.createElement(o,{textSize:"s"},C.siteConfig.footerCopyText)),t.createElement(d,null,t.createElement(x,null,t.createElement(o,{as:"span",textSize:"s"},"2 Redman Place"),t.createElement(o,{as:"span",textSize:"s"},"London"),t.createElement(o,{as:"span",textSize:"s"},"E20 1JQ"))))))};export{g as Footer,g as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- var g="IyBNb2RhbAoKVXNlIGEgbW9kYWwgdG8gZGlzcGxheSBjb250ZW50IG92ZXIgdG9wIG9mIHRoZSByZXN0IG9mIHRoZSBzaXRlIHdoaWNoIG11c3QgYmUgaW50ZXJhY3RlZCB3aXRoIGJlZm9yZSB0aGUgdXNlciBjYW4gY29udGludWUuCgojIyBIb3cgbW9kYWxzIHdvcmsKCi0gTW9kYWxzIGFyZSBwb3NpdGlvbmVkIG92ZXIgZXZlcnl0aGluZyBlbHNlIGluIHRoZSBkb2N1bWVudCBhbmQgcmVtb3ZlIHNjcm9sbCBmcm9tIHRoZSAiYm9keSIgdGFnIHNvIHRoYXQgbW9kYWwgY29udGVudCBzY3JvbGxzIGluc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byBjbG9zZSB0aGUgbW9kYWwgb24gZXNjYXBlIGtleSBwcmVzcyBhbmQgY2xvc2Ugb3IgY2xvc2UgYnV0dG9uIHByZXNzIHwKfCBtYXhXaWR0aCAgICAgICAgfCBzdHJpbmcgICB8ICAgICAgICAgICAgfCA1MDBweCAgIHwgTWF4IHdpZHRoIG9mIG1vZGFsICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHRvcCAgICAgICAgICAgICB8IHN0cmluZyAgIHwgICAgICAgICAgICB8IDFyZW0gICAgfCBIZWlnaHQgZnJvbSB0b3Agb2YgY29udGFpbmVyICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgY2hpbGRyZW4gICAgICAgIHwgQW55ICAgICAgfCAgICAgICAgICAgIHwgICAgICAgICB8IEFueSBjb250ZW50IHRvIGJlIGRpc3BsYXllZCBpbiBtb2RhbCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBzaG93Q2xvc2VCdXR0b24gfCBCb29sZWFuICB8IHRydWUvZmFsc2UgfCB0cnVlICAgIHwKCiMjIEFjY2Vzc2liaWxpdHkKCldoZW4gaXQgY29tZXMgdG8gbW9kYWwgZGlhbG9ncywgY29uc2lkZXIgdGhpczogbm8gb25lIGxpa2VzIHRvIGJlIGludGVycnVwdGVkLCBidXQgaWYgeW91IG11c3QsIG1ha2Ugc3VyZSBpdOKAmXMgd29ydGggdGhlIGNvc3QuCgpVc2UgbW9kYWwgZGlhbG9ncyBmb3IgaW1wb3J0YW50IHdhcm5pbmdzLCBhcyBhIHdheSB0byBwcmV2ZW50IG9yIGNvcnJlY3QgY3JpdGljYWwgZXJyb3JzLgpVc2UgbW9kYWwgZGlhbG9ncyB0byByZXF1ZXN0IHRoZSB1c2VyIHRvIGVud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Rpbmc+CiAgICAgICAgICA8cD5Tb21lIHJlYWxseSBpbXBvcnRhbnQgaW5mb3JtYXRpb248L3A+CiAgICAgICAgICA8QnV0dG9uIGFwcGVhcmFuY2U9InByaW1hcnkiIG9uQ2xpY2s9e3RvZ2dsZVNob3dNb2RhbH0+T0s8L0J1dHRvbj4KICAgICAgICA8L01vZGFsPgogICAgICB9CiAgICA8Lz4KICApOwp9CmBgYAoKfCBOYW1lICAgICAgICAgICAgICB8IFR5cGUgICAgICB8IERlZmF1bHQgfCBEZXNjcmlwdGlvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgOi0tLS0tLS0tLS0tLS0tLS0gfCA6LS0tLS0tLS0gfCA6LS0tLS0tIHwgOi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0gfAp8IGNsb3NlRnVuY3Rpb24gICAgIHwgZnVuY3Rpb24gIHwgbnVsbCAgICB8IChSZXF1aXJlZCkgZnVuY3Rpb24gdXNlZCB0byBjbG9zZSB0aGUgbW9kYWwgb24gZXNjYXBlIGtleSBwcmVzcyBhbmQgY2xvc2Ugb3IgY2xvc2UgYnV0dG9uIHByZXNzIHwKfCBtYXhXaWR0aCAgICAgICAgICB8IHN0cmluZyAgICB8IDUwMHB4ICAgfCBNYXggd2lkdGggb2YgbW9kYWwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cnwgd2lkdGggICAgICAgICAgICAgfCBzdHJpbmcgICAgfCA1MDBweCAgIHwgd2lkdGggb2YgbW9kYWwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHRvcCAgICAgICAgICAgICAgIHwgc3RyaW5nICAgIHwgMXJlbSAgICB8IEhlaWdodCBmcm9tIHRvcCBvZiBjb250YWluZXIgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBjaGlsZHJlbiAgICAgICAgICB8IEFueSAgICAgICB8ICAgICAgICAgfCBBbnkgY29udGVudCB0byBiZSBkaXNwbGF5ZWQgaW4gbW9kYWwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cnwgc2hvd0Nsb3NlQnV0dG9uICAgfCBCb29sZWFuICAgfCB0cnVlICAgIHwgVG9nZ2xlcyB2aXNpYmlsaXR5IG9mIG1vZGFsIGNsb3NlIGJ1dHRvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG1hcmdpbiAgICAgICAgICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IG1hcmdpbiB0b3AsIGJvdHRvbSwgbGVmdCBhbmQgcmlnaHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBtYXJnaW5WZXJ0aWNhbCAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBtYXJnaW4gdG9wIGFuZCBib3R0b20gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgbWFyZ2luSG9yaXpvbnRhbCAgfCBTcGFjZVR5cGUgfCB1bnNldCAgIHwgbWFyZ2luIGxlZnQgYW5kIHJpZ2h0ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG1hcmdpblRvcCAgICAgICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IG1hcmdpbiB0b3AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBtYXJnaW5SaWdodCAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBtYXJnaW4gcmlnaHQgcmlnaHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgbWFyZ2luQm90dG9tICAgICAgfCBTcGFjZVR5cGUgfCAneHMnICAgIHwgbWFyZ2luIGJvdHRvbSBib3R0b20gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG1hcmdpbkxlZnQgICAgICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IG1hcmdpbiBsZWZ0IGxlZnQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBwYWRkaW5nICAgICAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBwYWRkaW5nIHRvcCwgYm90dG9tLCBsZWZ0IGFuZCByaWdodCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgcGFkZGluZ1ZlcnRpY2FsICAgfCBTcGFjZVR5cGUgfCB1bnNldCAgIHwgcGFkZGluZyB0b3AgYW5kIGJvdHRvbSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHBhZGRpbmdIb3Jpem9udGFsIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IHBhZGRpbmcgbGVmdCBhbmQgcmlnaHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBwYWRkaW5nVG9wICAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBwYWRkaW5nIHRvcCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgcGFkZGluZ1JpZ2h0ICAgICAgfCBTcGFjZVR5cGUgfCB1bnNldCAgIHwgcGFkZGluZyByaWdodCByaWdodCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHBhZGRpbmdCb3R0b20gICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IHBhZGRpbmcgYm90dG9tIGJvdHRvbSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBwYWRkaW5nTGVmdCAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBwYWRkaW5nIGxlZnQgbGVmdCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CgojIyBBY2Nlc3NpYmlsaXR5CgpXaGVuIGl0IGNvbWVzIHRvIG1vZGFsIGRpYWxvZ3MsIGNvbnNpZGVyIHRoaXM6IG5vIG9uZSBsaWtlcyB0byBiZSBpbnRlcnJ1cHRlZCwgYnV0IGlmIHlvdSBtdXN0LCBtYWtlIHN1cmUgaXTigJlzIHdvcnRoIHRoZSBjb3N0LgoKVXNlIG1vZGFsIGRpYWxvZ3MgZm9yIGltcG9ydGFudCB3YXJuaW5ncywgYXMgYSB3YXkgdG8gcHJldmVudCBvciBjb3JyZWN0IGNyaXRpY2FsIGVycm9ycy4KVXNlIG1vZGFsIGRpYWxvZ3MgdG8gcmVxdWVzdCB0aGUgdXNlciB0byBlbnRlciBpbmZvcm1hdGlvbiBjcml0aWNhbCB0byBjb250aW51aW5nIHRoZSBjdXJyZW50IHByb2Nlc3MuCk1vZGFsIGRpYWxvZ3MgY2FuIGJlIHVzZWQgdG8gZnJhZ21lbnQgYSBjb21wbGV4IHdvcmtmbG93IGludG8gc2ltcGxlciBzdGVwcy4KRG8gbm90IHVzZSBtb2RhbCBkaWFsb2dzIGZvciBub25lc3NlbnRpYWwgaW5mb3JtYXRpb24gdGhhdCBpcyBub3QgcmVsYXRlZCB0byB0aGUgY3VycmVudCB1c2VyIGZsb3cuCg==";export{g as default};
2
2
  //# sourceMappingURL=README.md.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"README.md.js","sources":["../../../../../src/components/Modal/README.md"],"sourcesContent":["export default \"IyBNb2RhbAoKVXNlIGEgbW9kYWwgdG8gZGlzcGxheSBjb250ZW50IG92ZXIgdG9wIG9mIHRoZSByZXN0IG9mIHRoZSBzaXRlIHdoaWNoIG11c3QgYmUgaW50ZXJhY3RlZCB3aXRoIGJlZm9yZSB0aGUgdXNlciBjYW4gY29udGludWUuCgojIyBIb3cgbW9kYWxzIHdvcmsKCi0gTW9kYWxzIGFyZSBwb3NpdGlvbmVkIG92ZXIgZXZlcnl0aGluZyBlbHNlIGluIHRoZSBkb2N1bWVudCBhbmQgcmVtb3ZlIHNjcm9sbCBmcm9tIHRoZSAiYm9keSIgdGFnIHNvIHRoYXQgbW9kYWwgY29udGVudCBzY3JvbGxzIGluc3RlYWQuCi0gTW9kYWxzIGFyZSB1bm1vdW50ZWQgd2hlbiBjbG9zZWQuCi0gTW9kYWwncyAidHJhcCIgZm9jdXMgaW4gdGhlbSwgZW5zdXJpbmcgdGhlIGtleWJvYXJkIG5hdmlnYXRpb24gY3ljbGVzIHRocm91Z2ggdGhlIG1vZGFsLCBhbmQgbm90IHRoZSByZX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gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHRvcCAgICAgICAgICAgICB8IHN0cmluZyAgIHwgICAgICAgICAgICB8IDFyZW0gICAgfCBIZWlnaHQgZnJvbSB0b3Agb2YgY29udGFpbmVyICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgY2hpbGRyZW4gICAgICAgIHwgQW55ICAgICAgfCAgICAgICAgICAgIHwgICAgICAgICB8IEFueSBjb250ZW50IHRvIGJlIGRpc3BsYXllZCBpbiBtb2RhbCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBzaG93Q2xvc2VCdXR0b24gfCBCb29sZWFuICB8IHRydWUvZmFsc2UgfCB0cnVlICAgIHwKCiMjIEFjY2Vzc2liaWxpdHkKCldoZW4gaXQgY29tZXMgdG8gbW9kYWwgZGlhbG9ncywgY29uc2lkZXIgdGhpczogbm8gb25lIGxpa2VzIHRvIGJlIGludGVycnVwdGVkLCBidXQgaWYgeW91IG11c3QsIG1ha2Ugc3VyZSBpdOKAmXMgd29ydGggdGhlIGNvc3QuCgpVc2UgbW9kYWwgZGlhbG9ncyBmb3IgaW1wb3J0YW50IHdhcm5pbmdzLCBhcyBhIHdheSB0byBwcmV2ZW50IG9yIGNvcnJlY3QgY3JpdGljYWwgZXJyb3JzLgpVc2UgbW9kYWwgZGlhbG9ncyB0byByZXF1ZXN0IHRoZSB1c2VyIHRvIGVudGVyIGluZm9ybWF0aW9uIGNyaXRpY2FsIHRvIGNvbnRpbnVpbmcgdGhlIGN1cnJlbnQgcHJvY2Vzcy4KTW9kYWwgZGlhbG9ncyBjYW4gYmUgdXNlZCB0byBmcmFnbWVudCBhIGNvbXBsZXggd29ya2Zsb3cgaW50byBzaW1wbGVyIHN0ZXBzLgpEbyBub3QgdXNlIG1vZGFsIGRpYWxvZ3MgZm9yIG5vbmVzc2VudGlhbCBpbmZvcm1hdGlvbiB0aGF0IGlzIG5vdCByZWxhdGVkIHRvIHRoZSBjdXJyZW50IHVzZXIgZmxvdy4K\""],"names":["README"],"mappings":"AAAA,IAAeA,EAAA"}
1
+ {"version":3,"file":"README.md.js","sources":["../../../../../src/components/Modal/README.md"],"sourcesContent":["export default \"IyBNb2RhbAoKVXNlIGEgbW9kYWwgdG8gZGlzcGxheSBjb250ZW50IG92ZXIgdG9wIG9mIHRoZSByZXN0IG9mIHRoZSBzaXRlIHdoaWNoIG11c3QgYmUgaW50ZXJhY3RlZCB3aXRoIGJlZm9yZSB0aGUgdXNlciBjYW4gY29udGludWUuCgojIyBIb3cgbW9kYWxzIHdvcmsKCi0gTW9kYWxzIGFyZSBwb3NpdGlvbmVkIG92ZXIgZXZlcnl0aGluZyBlbHNlIGluIHRoZSBkb2N1bWVudCBhbmQgcmVtb3ZlIHNjcm9sbCBmcm9tIHRoZSAiYm9keSIgdGFnIHNvIHRoYXQgbW9kYWwgY29udGVudCBzY3JvbGxzIGluc3RlYWQuCi0gTW9kYWxzIGFyZSB1bm1vdW50ZWQgd2hlbiBjbG9zZWQuCi0gTW9kYWwncyAidHJhcCIgZm9jdXMgaW4gdGhlbSwgZW5zdXJpbmcgdGhlIGtleWJvYXJkIG5hdmlnYXRpb24gY3ljbGVzIHRocm91Z2ggdGhlIG1vZGFsLCBhbmQgbm90IHRoZSByZXN0IG9mIHRoZSBwYWdlLgoKIyMgQWNjZXNzaWJpbGl0eQoKLSBPbmNlIHRoZSBNb2RhbCBpcyBhcHBlYXJlZCBvbiB0aGUgc2NyZWVuLCB0aGUgZm9jdXMgbXVzdCBiZSB3aXRoaW4gdGhlIE1vZGFsIGNvbnRhaW5lciB3aGljaCB3aWxsIGVuYWJsZSB0aGUgc2NyZWVuIHJlYWRlcnMgdG8gYmUgYWJsZSB0byBuYXZpZ2F0ZSB3aXRoaW4gdGhlIE1vZGF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G9uQ2xpY2s9e3RvZ2dsZVNob3dNb2RhbH0+T0s8L0J1dHRvbj4KICAgICAgICA8L01vZGFsPgogICAgICB9CiAgICA8Lz4KICApOwp9CmBgYAoKfCBOYW1lICAgICAgICAgICAgICB8IFR5cGUgICAgICB8IERlZmF1bHQgfCBEZXNjcmlwdGlvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgOi0tLS0tLS0tLS0tLS0tLS0gfCA6LS0tLS0tLS0gfCA6LS0tLS0tIHwgOi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0gfAp8IGNsb3NlRnVuY3Rpb24gICAgIHwgZnVuY3Rpb24gIHwgbnVsbCAgICB8IChSZXF1aXJlZCkgZnVuY3Rpb24gdXNlZCB0byBjbG9zZSB0aGUgbW9kYWwgb24gZXNjYXBlIGtleSBwcmVzcyBhbmQgY2xvc2Ugb3IgY2xvc2UgYnV0dG9uIHByZXNzIHwKfCBtYXhXaWR0aCAgICAgICAgICB8IHN0cmluZyAgICB8IDUwMHB4ICAgfCBNYXggd2lkdGggb2YgbW9kYWwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cnwgd2lkdGggICAgICAgICAgICAgfCBzdHJpbmcgICAgfCA1MDBweCAgIHwgd2lkdGggb2YgbW9kYWwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHRvcCAgICAgICAgICAgICAgIHwgc3RyaW5nICAgIHwgMXJlbSAgICB8IEhlaWdodCBmcm9tIHRvcCBvZiBjb250YWluZXIgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBjaGlsZHJlbiAgICAgICAgICB8IEFueSAgICAgICB8ICAgICAgICAgfCBBbnkgY29udGVudCB0byBiZSBkaXNwbGF5ZWQgaW4gbW9kYWwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cnwgc2hvd0Nsb3NlQnV0dG9uICAgfCBCb29sZWFuICAgfCB0cnVlICAgIHwgVG9nZ2xlcyB2aXNpYmlsaXR5IG9mIG1vZGFsIGNsb3NlIGJ1dHRvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG1hcmdpbiAgICAgICAgICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IG1hcmdpbiB0b3AsIGJvdHRvbSwgbGVmdCBhbmQgcmlnaHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBtYXJnaW5WZXJ0aWNhbCAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBtYXJnaW4gdG9wIGFuZCBib3R0b20gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgbWFyZ2luSG9yaXpvbnRhbCAgfCBTcGFjZVR5cGUgfCB1bnNldCAgIHwgbWFyZ2luIGxlZnQgYW5kIHJpZ2h0ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG1hcmdpblRvcCAgICAgICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IG1hcmdpbiB0b3AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBtYXJnaW5SaWdodCAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBtYXJnaW4gcmlnaHQgcmlnaHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgbWFyZ2luQm90dG9tICAgICAgfCBTcGFjZVR5cGUgfCAneHMnICAgIHwgbWFyZ2luIGJvdHRvbSBib3R0b20gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG1hcmdpbkxlZnQgICAgICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IG1hcmdpbiBsZWZ0IGxlZnQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBwYWRkaW5nICAgICAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBwYWRkaW5nIHRvcCwgYm90dG9tLCBsZWZ0IGFuZCByaWdodCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgcGFkZGluZ1ZlcnRpY2FsICAgfCBTcGFjZVR5cGUgfCB1bnNldCAgIHwgcGFkZGluZyB0b3AgYW5kIGJvdHRvbSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHBhZGRpbmdIb3Jpem9udGFsIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IHBhZGRpbmcgbGVmdCBhbmQgcmlnaHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBwYWRkaW5nVG9wICAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBwYWRkaW5nIHRvcCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgcGFkZGluZ1JpZ2h0ICAgICAgfCBTcGFjZVR5cGUgfCB1bnNldCAgIHwgcGFkZGluZyByaWdodCByaWdodCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHBhZGRpbmdCb3R0b20gICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IHBhZGRpbmcgYm90dG9tIGJvdHRvbSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBwYWRkaW5nTGVmdCAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBwYWRkaW5nIGxlZnQgbGVmdCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CgojIyBBY2Nlc3NpYmlsaXR5CgpXaGVuIGl0IGNvbWVzIHRvIG1vZGFsIGRpYWxvZ3MsIGNvbnNpZGVyIHRoaXM6IG5vIG9uZSBsaWtlcyB0byBiZSBpbnRlcnJ1cHRlZCwgYnV0IGlmIHlvdSBtdXN0LCBtYWtlIHN1cmUgaXTigJlzIHdvcnRoIHRoZSBjb3N0LgoKVXNlIG1vZGFsIGRpYWxvZ3MgZm9yIGltcG9ydGFudCB3YXJuaW5ncywgYXMgYSB3YXkgdG8gcHJldmVudCBvciBjb3JyZWN0IGNyaXRpY2FsIGVycm9ycy4KVXNlIG1vZGFsIGRpYWxvZ3MgdG8gcmVxdWVzdCB0aGUgdXNlciB0byBlbnRlciBpbmZvcm1hdGlvbiBjcml0aWNhbCB0byBjb250aW51aW5nIHRoZSBjdXJyZW50IHByb2Nlc3MuCk1vZGFsIGRpYWxvZ3MgY2FuIGJlIHVzZWQgdG8gZnJhZ21lbnQgYSBjb21wbGV4IHdvcmtmbG93IGludG8gc2ltcGxlciBzdGVwcy4KRG8gbm90IHVzZSBtb2RhbCBkaWFsb2dzIGZvciBub25lc3NlbnRpYWwgaW5mb3JtYXRpb24gdGhhdCBpcyBub3QgcmVsYXRlZCB0byB0aGUgY3VycmVudCB1c2VyIGZsb3cuCg==\""],"names":["README"],"mappings":"AAAA,IAAeA,EAAA"}
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"../../../node_modules/tslib/tslib.es6.js";import o,{useEffect as t}from"react";import{createPortal as n}from"react-dom";import{useTheme as r,ThemeProvider as m}from"styled-components";import d from"../../../node_modules/react-focus-lock/dist/es2015/Combination.js";import{faClose as i}from"../../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js";import l from"../IconFa/index.js";import a from"../../themes/cruk.js";import{Wrapper as c,Content as s,CloseButton as u,Background as f}from"./styles.js";var p=function(p){var y=p.modalName,w=p.closeFunction,E=p.showCloseButton,b=p.maxWidth,v=void 0===b?"500px":b,k=p.top,h=void 0===k?"1rem":k,g=p.backgroundColor,j=void 0===g?"backgroundLight":g,x=p.children,C=r(),F=e(e({},a),C),L=function(e){"Escape"===e.key&&w&&w()};return t((function(){if("undefined"!=typeof window)return document.body.style.overflow="hidden",document.addEventListener("keydown",L),function(){"undefined"!=typeof window&&(document.body.style.overflow="unset",document.removeEventListener("keydown",L))}}),[]),o.createElement(o.Fragment,null,"undefined"!=typeof window?n(o.createElement("section",null,o.createElement(d,{returnFocus:!0},o.createElement(m,{theme:F},o.createElement(c,{role:"dialog","aria-modal":"true","aria-label":y},o.createElement(s,{backgroundColor:j,maxWidth:v,top:h},E&&w?o.createElement(u,{"aria-label":"close",appearance:"tertiary",onClick:function(){w()}},o.createElement(l,{faIcon:i})):null,x),o.createElement(f,null))))),document.body):null)};export{p as default};
1
+ import{__assign as e}from"../../../node_modules/tslib/tslib.es6.js";import o,{useEffect as n}from"react";import{createPortal as t}from"react-dom";import{useTheme as i,ThemeProvider as r}from"styled-components";import d from"../../../node_modules/react-focus-lock/dist/es2015/Combination.js";import{faClose as a}from"../../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js";import m from"../IconFa/index.js";import l from"../../themes/cruk.js";import{Wrapper as c,Content as g,CloseButton as s,Background as p}from"./styles.js";var u=function(u){var f=u.modalName,h=u.closeFunction,v=u.showCloseButton,w=u.maxWidth,y=void 0===w?"500px":w,E=u.top,b=void 0===E?"1rem":E,k=u.backgroundColor,x=void 0===k?"backgroundLight":k,L=u.children,j=u.width,B=void 0===j?"90%":j,C=u.margin,z=u.marginHorizontal,F=u.marginVertical,H=u.marginTop,R=u.marginRight,T=u.marginBottom,V=void 0===T?"xxl":T,_=u.marginLeft,I=u.padding,W=void 0===I?"xs":I,N=u.paddingHorizontal,q=u.paddingVertical,A=u.paddingTop,D=u.paddingRight,G=u.paddingBottom,J=u.paddingLeft,K=i(),M=e(e({},l),K),O=function(e){"Escape"===e.key&&h&&h()};return n((function(){if("undefined"!=typeof window)return document.body.style.overflow="hidden",document.addEventListener("keydown",O),function(){"undefined"!=typeof window&&(document.body.style.overflow="unset",document.removeEventListener("keydown",O))}}),[]),o.createElement(o.Fragment,null,"undefined"!=typeof window?t(o.createElement("section",null,o.createElement(d,{returnFocus:!0},o.createElement(r,{theme:M},o.createElement(c,{role:"dialog","aria-modal":"true","aria-label":f},o.createElement(g,{backgroundColor:x,maxWidth:y,width:B,top:b,margin:C,marginHorizontal:z,marginVertical:F,marginTop:H,marginRight:R,marginBottom:V,marginLeft:_,padding:W,paddingHorizontal:N,paddingVertical:q,paddingTop:A,paddingRight:D,paddingBottom:G,paddingLeft:J},v&&h?o.createElement(s,{"aria-label":"close",appearance:"tertiary",onClick:function(){h()}},o.createElement(m,{faIcon:a})):null,L),o.createElement(p,null))))),document.body):null)};export{u 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})),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};
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,s=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"]))),m=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: ",";\n min-height: 10rem;\n max-width: ",";\n z-index: 9999;\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: ",";\n min-height: 10rem;\n max-width: ",";\n z-index: 9999;\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.width}),(function(n){return n.maxWidth})),h=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{s as Background,h as CloseButton,m as Content,p as Wrapper};
2
2
  //# sourceMappingURL=styles.js.map
@@ -1,3 +1,6 @@
1
- import { FunctionComponent } from "react";
2
- declare const MdxProvider: FunctionComponent;
1
+ import { ReactNode } from "@mdx-js/react/lib";
2
+ declare type MdxProviderProps = {
3
+ children?: ReactNode;
4
+ };
5
+ declare const MdxProvider: ({ children }: MdxProviderProps) => JSX.Element;
3
6
  export default MdxProvider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cruk/cruk-react-components",
3
- "version": "1.1.5",
3
+ "version": "1.1.8",
4
4
  "description": "React components implementing CRUK and SU2C designs",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {
@@ -99,9 +99,11 @@
99
99
  "@types/assert": "^1.5.1",
100
100
  "@types/cypress-image-snapshot": "^3.1.6",
101
101
  "@types/jest": "^27.4.0",
102
+ "@types/mdx": "^2.0.2",
102
103
  "@types/mdx-js__react": "^1.5.1",
103
104
  "@types/node": "^17.0.25",
104
- "@types/react": "^17.0.47",
105
+ "@types/reach__router": "^1.3.10",
106
+ "@types/react": "^18.0.17",
105
107
  "@types/react-dom": "^17.0.17",
106
108
  "@types/styled-components": "^5.1.22",
107
109
  "@typescript-eslint/eslint-plugin": "^5.29.0",
@@ -137,7 +139,7 @@
137
139
  "react-live": "^2.2.3",
138
140
  "rollup": "^2.7.2",
139
141
  "rollup-plugin-terser": "^7.0.0",
140
- "rollup-plugin-typescript2": "^0.31.2",
142
+ "rollup-plugin-typescript2": "^0.33.0",
141
143
  "source-map-explorer": "^2.2.2",
142
144
  "styled-components": "^5.3.5",
143
145
  "ts-loader": "9.2.8",
@@ -147,8 +149,8 @@
147
149
  "webpack-dev-server": "^4.7.3"
148
150
  },
149
151
  "peerDependencies": {
150
- "react": "^16.12.0 || ^17.0.1 ",
151
- "react-dom": "^16.12.0 || ^17.0.1 ",
152
+ "react": "^16.12.0 || ^17.0.1 || ^18.0.1 ",
153
+ "react-dom": "^16.12.0 || ^17.0.1 || ^18.0.1 ",
152
154
  "styled-components": "^5.3.5"
153
155
  },
154
156
  "dependencies": {
package/CHANGELOG.md DELETED
@@ -1,227 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [1.1.5] - 2022-08-12
9
-
10
- ### Fixed
11
-
12
- Buttons cast as anchor tags look bloated on iOS safari [#531](https://github.com/CRUKorg/cruk-react-components/issues/#531))
13
-
14
- ## [1.1.4] - 2022-08-12
15
-
16
- ### Fixed
17
-
18
- Using new fork of cypress-image-snapshots original repo is no longer maintianed :(
19
-
20
- ## [1.1.3] - 2022-07-16
21
-
22
- ### Fixed
23
-
24
- Removed arbitrary spacing on user block [#513](https://github.com/CRUKorg/cruk-react-components/issues/#513)
25
- Removed arbitrary z-indexes on totaliser [#514](https://github.com/CRUKorg/cruk-react-components/issues/#514)
26
-
27
- ## [1.1.2] - 2022-07-11
28
-
29
- ### Changed
30
-
31
- Changed asset path to to be https://rcl.assets.cancerresearchuk.org/ fixes [#505](https://github.com/CRUKorg/cruk-react-components/issues/#505)
32
-
33
- ### Fixed
34
-
35
- Error appearing on SU2C theme pages where only .woff file exists not .woff2 [#506](https://github.com/CRUKorg/cruk-react-components/issues/#506)
36
-
37
- ## [1.1.1] - 2022-05-23
38
-
39
- ### Fixed
40
-
41
- Moving Avatar assets path for different themes into the themes and out of the component. Also removing explicit mentions of assets paths in tests where possiblee.
42
-
43
- ## [1.1.0] - 2022-05-22
44
-
45
- ### Added
46
-
47
- Added IconFa component for a tree-shakable Icon component, removed Icon component from other components [#490](https://github.com/CRUKorg/cruk-react-components/issues/#490)
48
-
49
- ### Fixed
50
-
51
- Fix missing images form Avatar, Header and Footer using placeholder cloudfront distribution
52
-
53
- ## [1.0.11] - 2022-05-11
54
-
55
- ### Fixed
56
-
57
- Fix text expanding on ios landscape [#469](https://github.com/CRUKorg/cruk-react-components/issues/#469)
58
- Fix support for overflow-wrap on heading and text components [#470](https://github.com/CRUKorg/cruk-react-components/issues/#470)
59
-
60
- ## [1.0.10] - 2022-04-1
61
-
62
- ### Fixed
63
-
64
- Change all body font weight from 500 to 400 to match design system spec [#454](https://github.com/CRUKorg/cruk-react-components/issues/#454)
65
-
66
- ## [1.0.9] - 2022-04-06
67
-
68
- ### Changed
69
-
70
- CRUK magenta_500 from #e40074 to #e40087 to match design system
71
-
72
- ### Fixed
73
-
74
- - Text size s is incorrect should be 0.875 em not 0.857 em [#452](https://github.com/CRUKorg/cruk-react-components/issues/#452)
75
-
76
- ## [1.0.8] - 2022-03-29
77
-
78
- ### Fixed
79
-
80
- - TextField with extra on left or right looks wonkey on iOS [#445](https://github.com/CRUKorg/cruk-react-components/issues/445)
81
-
82
- ## [1.0.7] - 2022-03-24
83
-
84
- ### Fixed
85
-
86
- - Focus rect visible on mouse click and touch events for some items [#438](https://github.com/CRUKorg/cruk-react-components/issues/438)
87
-
88
- ## [1.0.6] - 2022-03-23
89
-
90
- ### Fixed
91
-
92
- - Links, Pagination button/links and Buttons that have been cast as an anchor tag all show default focus outline on focus. This wasn't happening in Firefox. [#428](https://github.com/CRUKorg/cruk-react-components/issues/428)
93
-
94
- ### Added
95
-
96
- - Carousel component
97
- - secondaryPercentage prop for Progress Bar and Totaliser
98
-
99
- ## [1.0.5] - 2022-02-09
100
-
101
- ### Changed
102
-
103
- - Using node 16 and cypress 9.4.1
104
-
105
- ## [1.0.4] - 2022-02-02
106
-
107
- ### Fixed
108
-
109
- - Collapse focus rect SU2C needs reduced border radius [#403](https://github.com/CRUKorg/cruk-react-components/issues/403)
110
- - Totaliser with custom summary has a speech bubble arrow artifact [#404](https://github.com/CRUKorg/cruk-react-components/issues/404)
111
-
112
- ## [1.0.3] - 2022-01-21
113
-
114
- ### Changed
115
-
116
- - Moving storybook/react into dev dependencies
117
-
118
- ## [1.0.2] - 2022-01-21
119
-
120
- ### Changed
121
-
122
- - Bumping storybook dependencies to 6.4.14
123
-
124
- ## [1.0.1] - 2021-12-01
125
-
126
- ### Removed
127
-
128
- - "@react-theming/storybook-addon", because it was breaking storybook post 6.4
129
-
130
- ### Changed
131
-
132
- - Replaced all absolute paths with relative paths, not out of choice but because rollup + typescript + absolute paths leads to broken typescript definition files with absolute paths, this broke intellisense.
133
- - Footer logo src and alt text configurable from theme
134
-
135
- ### Added
136
-
137
- - New theme selector bar in storybook top bar to replace the react-theming addon
138
-
139
- ## [1.0.0] - 2021-10-18
140
-
141
- ### Changed
142
-
143
- (BREAKING CHANGES)
144
-
145
- - Renamed RadioGroup to RadioConsent to discorage people to use this pattern in other scenarios
146
- - The old Button variant 'tertiary' has been removed and old Button variant 'text' is now Button variant 'teriary'
147
- - Changed avatar name prop type from ReactNode to string
148
-
149
- ### Added
150
-
151
- - Added aria-described by support for controlls with error messages for TextField, TextAreaField, Select, Checkbox, Radio
152
- - Added isIconButton prop to Button sets the button into a round or square shape when it only contains and icon, is happening in order to deprecate Icon and use another tree shakeable icon library in its stead.
153
- - Added hideRequiredInLabel prop to select to hide required in label when it is used to filter lists etc.
154
-
155
- ## [0.1.7] - 2021-10-06
156
-
157
- ### Fixed
158
-
159
- - CRUK secondary button hover colours solution causes cypress to think something is covering/obscuring text inputs when it isn't
160
-
161
- ## [0.1.6] - 2021-10-05
162
-
163
- ### Fixed
164
-
165
- - CRUK secondary button hover colours not accessible [#299](https://github.com/CRUKorg/cruk-react-components/issues/299)
166
- - CRUK totaliser colours not accessible [#324](https://github.com/CRUKorg/cruk-react-components/issues/324)
167
-
168
- ## [0.1.5] - 2021-09-23
169
-
170
- ### Added
171
-
172
- - Test for TextField with extra left and extra right props
173
-
174
- ### Changed
175
-
176
- - Heading H6 tags are always 1em
177
-
178
- ### Fixed
179
-
180
- - TextField isValid and isInvalid checks and crosses disappear when focused because of Chrome browser default styling [#298](https://github.com/CRUKorg/cruk-react-components/issues/298)
181
- - Missing attributes on AddressDataType [#306](https://github.com/CRUKorg/cruk-react-components/issues/306)
182
-
183
- ## [0.1.4] - 2021-08-27
184
-
185
- ### Changed
186
-
187
- - improved select cypress tests
188
- - Checkbox and Radio focus rect box shaddow is now inset for visual fix where it appears cropped in some scenarios
189
-
190
- ### Added
191
-
192
- - Added onPopOverIsOpenChange prop to PopOver component
193
- - Added backgroundColor prop to Modal component
194
-
195
- ## [0.1.3] - 2021-08-09
196
-
197
- ### Changed
198
-
199
- - Added Hotjar recording suppression attribute to TextField, TextAreaField and AddressLookup components
200
-
201
- ## [0.1.2] - 2021-07-20
202
-
203
- ### Added
204
-
205
- - LegendWrapper component
206
-
207
- ### Changed
208
-
209
- - Added hasError and errorMessage prop to Radio and Checkbox components
210
- - Updated styles for the Radio and Checkbox components to reflect hasError
211
- - Updated JS doc comment for Text, Link, TextField and TextAreaField components
212
- - Updated ErrorText colour, font weight and spacing inside form controlls
213
- - Updated AddressLookup, tab away from component and search results disappear, address results are focusable and input will no longer blur when clicking though lists of address
214
-
215
- ### Removed
216
-
217
- ### Fixed
218
-
219
- ## [0.1.1] - 2021-06-11
220
-
221
- ### Added
222
-
223
- ### Changed
224
-
225
- ### Removed
226
-
227
- ### Fixed