@cruk/cruk-react-components 1.1.7 → 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.
@@ -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:"card".concat(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
- var g="IyBNb2RhbAoKVXNlIGEgbW9kYWwgdG8gZGlzcGxheSBjb250ZW50IG92ZXIgdG9wIG9mIHRoZSByZXN0IG9mIHRoZSBzaXRlIHdoaWNoIG11c3QgYmUgaW50ZXJhY3RlZCB3aXRoIGJlZm9yZSB0aGUgdXNlciBjYW4gY29udGludWUuCgojIyBIb3cgbW9kYWxzIHdvcmsKCi0gTW9kYWxzIGFyZSBwb3NpdGlvbmVkIG92ZXIgZXZlcnl0aGluZyBlbHNlIGluIHRoZSBkb2N1bWVudCBhbmQgcmVtb3ZlIHNjcm9sbCBmcm9tIHRoZSAiYm9keSIgdGFnIHNvIHRoYXQgbW9kYWwgY29udGVudCBzY3JvbGxzIGluc3RlYWQuCi0gTW9kYWxzIGFyZSB1bm1vdW50ZWQgd2hlbiBjbG9zZWQuCi0gTW9kYWwncyAidHJhcCIgZm9jdXMgaW4gdGhlbSwgZW5zdXJpbmcgdGhlIGtleWJvYXJkIG5hdmlnYXRpb24gY3ljbGVzIHRocm91Z2ggdGhlIG1vZGFsLCBhbmQgbm90IHRoZSByZXN0IG9mIHRoZSBwYWdlLgoKIyMgQWNjZXNzaWJpbGl0eQoKLSBPbmNlIHRoZSBNb2RhbCBpcyBhcHBlYXJlZCBvbiB0aGUgc2NyZWVuLCB0aGUgZm9jdXMgbXVzdCBiZSB3aXRoaW4gdGhlIE1vZGFsIGNvbnRhaW5lciB3aGljaCB3aWxsIGVuYWJsZSB0aGUgc2NyZWVuIHJlYWRlcnMgdG8gYmUgY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AgICAgICA8QnV0dG9uIGFwcGVhcmFuY2U9InByaW1hcnkiIG9uQ2xpY2s9e3RvZ2dsZVNob3dNb2RhbH0+T0s8L0J1dHRvbj4KICAgICAgICA8L01vZGFsPgogICAgICB9CiAgICA8Lz4KICApOwp9CmBgYAoKfCBOYW1lICAgICAgICAgICAgfCBUeXBlICAgICB8ICBPcHRpb25zICAgfCBEZWZhdWx0IHwgRGVzY3JpcHRpb24gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IDotLS0tLS0tLS0tLS0tLSB8IDotLS0tLS0tIHwgOi0tLS0tLS0tOiB8IDotLS0tLS0gfCA6LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSB8CnwgY2xvc2VGdW5jdGlvbiAgIHwgZnVuY3Rpb24gfCAgICAgICAgICAgIHwgbnVsbCAgICB8IChSZXF1aXJlZCkgZnVuY3Rpb24gdXNlZCB0byBjbG9zZSB0aGUgbW9kYWwgb24gZXNjYXBlIGtleSBwcmVzcyBhbmQgY2xvc2Ugb3IgY2xvc2UgYnV0dG9uIHByZXNzIHwKfCBtYXhXaWR0aCAgICAgICAgfCBzdHJpbmcgICB8ICAgICAgICAgICAgfCA1MDBweCAgIHwgTWF4IHdpZHRoIG9mIG1vZGFsICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHRvcCAgICAgICAgICAgICB8IHN0cmluZyAgIHwgICAgICAgICAgICB8IDFyZW0gICAgfCBIZWlnaHQgZnJvbSB0b3Agb2YgY29udGFpbmVyICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg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LS0gfCA6LS0tLS0tIHwgOi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0gfAp8IGNsb3NlRnVuY3Rpb24gICAgIHwgZnVuY3Rpb24gIHwgbnVsbCAgICB8IChSZXF1aXJlZCkgZnVuY3Rpb24gdXNlZCB0byBjbG9zZSB0aGUgbW9kYWwgb24gZXNjYXBlIGtleSBwcmVzcyBhbmQgY2xvc2Ugb3IgY2xvc2UgYnV0dG9uIHByZXNzIHwKfCBtYXhXaWR0aCAgICAgICAgICB8IHN0cmluZyAgICB8IDUwMHB4ICAgfCBNYXggd2lkdGggb2YgbW9kYWwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cnwgd2lkdGggICAgICAgICAgICAgfCBzdHJpbmcgICAgfCA1MDBweCAgIHwgd2lkdGggb2YgbW9kYWwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHRvcCAgICAgICAgICAgICAgIHwgc3RyaW5nICAgIHwgMXJlbSAgICB8IEhlaWdodCBmcm9tIHRvcCBvZiBjb250YWluZXIgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBjaGlsZHJlbiAgICAgICAgICB8IEFueSAgICAgICB8ICAgICAgICAgfCBBbnkgY29udGVudCB0byBiZSBkaXNwbGF5ZWQgaW4gbW9kYWwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cnwgc2hvd0Nsb3NlQnV0dG9uICAgfCBCb29sZWFuICAgfCB0cnVlICAgIHwgVG9nZ2xlcyB2aXNpYmlsaXR5IG9mIG1vZGFsIGNsb3NlIGJ1dHRvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG1hcmdpbiAgICAgICAgICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IG1hcmdpbiB0b3AsIGJvdHRvbSwgbGVmdCBhbmQgcmlnaHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBtYXJnaW5WZXJ0aWNhbCAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBtYXJnaW4gdG9wIGFuZCBib3R0b20gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgbWFyZ2luSG9yaXpvbnRhbCAgfCBTcGFjZVR5cGUgfCB1bnNldCAgIHwgbWFyZ2luIGxlZnQgYW5kIHJpZ2h0ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG1hcmdpblRvcCAgICAgICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IG1hcmdpbiB0b3AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBtYXJnaW5SaWdodCAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBtYXJnaW4gcmlnaHQgcmlnaHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgbWFyZ2luQm90dG9tICAgICAgfCBTcGFjZVR5cGUgfCAneHMnICAgIHwgbWFyZ2luIGJvdHRvbSBib3R0b20gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG1hcmdpbkxlZnQgICAgICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IG1hcmdpbiBsZWZ0IGxlZnQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBwYWRkaW5nICAgICAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBwYWRkaW5nIHRvcCwgYm90dG9tLCBsZWZ0IGFuZCByaWdodCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgcGFkZGluZ1ZlcnRpY2FsICAgfCBTcGFjZVR5cGUgfCB1bnNldCAgIHwgcGFkZGluZyB0b3AgYW5kIGJvdHRvbSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHBhZGRpbmdIb3Jpem9udGFsIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IHBhZGRpbmcgbGVmdCBhbmQgcmlnaHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBwYWRkaW5nVG9wICAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBwYWRkaW5nIHRvcCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgcGFkZGluZ1JpZ2h0ICAgICAgfCBTcGFjZVR5cGUgfCB1bnNldCAgIHwgcGFkZGluZyByaWdodCByaWdodCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHBhZGRpbmdCb3R0b20gICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IHBhZGRpbmcgYm90dG9tIGJvdHRvbSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBwYWRkaW5nTGVmdCAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBwYWRkaW5nIGxlZnQgbGVmdCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CgojIyBBY2Nlc3NpYmlsaXR5CgpXaGVuIGl0IGNvbWVzIHRvIG1vZGFsIGRpYWxvZ3MsIGNvbnNpZGVyIHRoaXM6IG5vIG9uZSBsaWtlcyB0byBiZSBpbnRlcnJ1cHRlZCwgYnV0IGlmIHlvdSBtdXN0LCBtYWtlIHN1cmUgaXTigJlzIHdvcnRoIHRoZSBjb3N0LgoKVXNlIG1vZGFsIGRpYWxvZ3MgZm9yIGltcG9ydGFudCB3YXJuaW5ncywgYXMgYSB3YXkgdG8gcHJldmVudCBvciBjb3JyZWN0IGNyaXRpY2FsIGVycm9ycy4KVXNlIG1vZGFsIGRpYWxvZ3MgdG8gcmVxdWVzdCB0aGUgdXNlciB0byBlbnRlciBpbmZvcm1hdGlvbiBjcml0aWNhbCB0byBjb250aW51aW5nIHRoZSBjdXJyZW50IHByb2Nlc3MuCk1vZGFsIGRpYWxvZ3MgY2FuIGJlIHVzZWQgdG8gZnJhZ21lbnQgYSBjb21wbGV4IHdvcmtmbG93IGludG8gc2ltcGxlciBzdGVwcy4KRG8gbm90IHVzZSBtb2RhbCBkaWFsb2dzIGZvciBub25lc3NlbnRpYWwgaW5mb3JtYXRpb24gdGhhdCBpcyBub3QgcmVsYXRlZCB0byB0aGUgY3VycmVudCB1c2VyIGZsb3cuCg==";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 \"IyBNb2RhbAoKVXNlIGEgbW9kYWwgdG8gZGlzcGxheSBjb250ZW50IG92ZXIgdG9wIG9mIHRoZSByZXN0IG9mIHRoZSBzaXRlIHdoaWNoIG11c3QgYmUgaW50ZXJhY3RlZCB3aXRoIGJlZm9yZSB0aGUgdXNlciBjYW4gY29udGludWUuCgojIyBIb3cgbW9kYWxzIHdvcmsKCi0gTW9kYWxzIGFyZSBwb3NpdGlvbmVkIG92ZXIgZXZlcnl0aGluZyBlbHNlIGluIHRoZSBkb2N1bWVudCBhbmQgcmVtb3ZlIHNjcm9sbCBmcm9tIHRoZSAiYm9keSIgdGFnIHNvIHRoYXQgbW9kYWwgY29udGVudCBzY3JvbGxzIGluc3RlYWQuCi0gTW9kYWxzIGFyZSB1bm1vdW50ZWQgd2hlbiBjbG9zZWQuCi0gTW9kYWwncyAidHJhcCIgZm9jdXMgaW4gdGhlbSwgZW5zdXJpbmcgdGhlIGtleWJvYXJkIG5hdmlnYXRpb24gY3ljbGVzIHRocm91Z2ggdGhlIG1vZGFsLCBhbmQgbm90IHRoZSByZXN0IG9mIHRoZSBwYWdlLgoKIyMgQWNjZXNzaWJpbGl0eQoKLSBPbmNlIHRoZSBNb2RhbCBpcyBhcHBlYXJlZCBvbiB0aGUgc2NyZWVuLCB0aGUgZm9jdXMgbXVzdCBiZSB3aXRoaW4gdGhlIE1vZGFsIGNvbnRhaW5lciB3aGljaCB3aWxsIGVuYWJsZSB0aGUgc2NyZWVuIHJlYWRlcnMgdG8gYmUgYWJsZSB0byBuYXZpZ2F0ZSB3aXRoaW4gdGhlIE1vZGFsLiBZb3UgbWF5IHdpc2ggdG8gaGlkZSB0aGUgY2xvc2UgYnV0dG9uIHNvIHRoYXQgYSB1c2VyIG11c3QgY2xpY2sgb24gYW5vdGhlciBidXR0b24gdG8gY29uZmlybSBhIGNob2ljZSBiZWZvcmUgdGhlIG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zICAgfCBEZWZhdWx0IHwgRGVzY3JpcHRpb24gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IDotLS0tLS0tLS0tLS0tLSB8IDotLS0tLS0tIHwgOi0tLS0tLS0tOiB8IDotLS0tLS0gfCA6LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSB8CnwgY2xvc2VGdW5jdGlvbiAgIHwgZnVuY3Rpb24gfCAgICAgICAgICAgIHwgbnVsbCAgICB8IChSZXF1aXJlZCkgZnVuY3Rpb24gdXNlZCB0byBjbG9zZSB0aGUgbW9kYWwgb24gZXNjYXBlIGtleSBwcmVzcyBhbmQgY2xvc2Ugb3IgY2xvc2UgYnV0dG9uIHByZXNzIHwKfCBtYXhXaWR0aCAgICAgICAgfCBzdHJpbmcgICB8ICAgICAgICAgICAgfCA1MDBweCAgIHwgTWF4IHdpZHRoIG9mIG1vZGFsICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHRvcCAgICAgICAgICAgICB8IHN0cmluZyAgIHwgICAgICAgICAgICB8IDFyZW0gICAgfCBIZWlnaHQgZnJvbSB0b3Agb2YgY29udGFpbmVyICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgY2hpbGRyZW4gICAgICAgIHwgQW55ICAgICAgfCAgICAgICAgICAgIHwgICAgICAgICB8IEFueSBjb250ZW50IHRvIGJlIGRpc3BsYXllZCBpbiBtb2RhbCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBzaG93Q2xvc2VCdXR0b24gfCBCb29sZWFuICB8IHRydWUvZmFsc2UgfCB0cnVlICAgIHwKCiMjIEFjY2Vzc2liaWxpdHkKCldoZW4gaXQgY29tZXMgdG8gbW9kYWwgZGlhbG9ncywgY29uc2lkZXIgdGhpczogbm8gb25lIGxpa2VzIHRvIGJlIGludGVycnVwdGVkLCBidXQgaWYgeW91IG11c3QsIG1ha2Ugc3VyZSBpdOKAmXMgd29ydGggdGhlIGNvc3QuCgpVc2UgbW9kYWwgZGlhbG9ncyBmb3IgaW1wb3J0YW50IHdhcm5pbmdzLCBhcyBhIHdheSB0byBwcmV2ZW50IG9yIGNvcnJlY3QgY3JpdGljYWwgZXJyb3JzLgpVc2UgbW9kYWwgZGlhbG9ncyB0byByZXF1ZXN0IHRoZSB1c2VyIHRvIGVudGVyIGluZm9ybWF0aW9uIGNyaXRpY2FsIHRvIGNvbnRpbnVpbmcgdGhlIGN1cnJlbnQgcHJvY2Vzcy4KTW9kYWwgZGlhbG9ncyBjYW4gYmUgdXNlZCB0byBmcmFnbWVudCBhIGNvbXBsZXggd29ya2Zsb3cgaW50byBzaW1wbGVyIHN0ZXBzLgpEbyBub3QgdXNlIG1vZGFsIGRpYWxvZ3MgZm9yIG5vbmVzc2VudGlhbCBpbmZvcm1hdGlvbiB0aGF0IGlzIG5vdCByZWxhdGVkIHRvIHRoZSBjdXJyZW50IHVzZXIgZmxvdy4K\""],"names":["README"],"mappings":"AAAA,IAAeA,EAAA"}
1
+ {"version":3,"file":"README.md.js","sources":["../../../../../src/components/Modal/README.md"],"sourcesContent":["export default \"IyBNb2RhbAoKVXNlIGEgbW9kYWwgdG8gZGlzcGxheSBjb250ZW50IG92ZXIgdG9wIG9mIHRoZSByZXN0IG9mIHRoZSBzaXRlIHdoaWNoIG11c3QgYmUgaW50ZXJhY3RlZCB3aXRoIGJlZm9yZSB0aGUgdXNlciBjYW4gY29udGludWUuCgojIyBIb3cgbW9kYWxzIHdvcmsKCi0gTW9kYWx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LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0gfAp8IGNsb3NlRnVuY3Rpb24gICAgIHwgZnVuY3Rpb24gIHwgbnVsbCAgICB8IChSZXF1aXJlZCkgZnVuY3Rpb24gdXNlZCB0byBjbG9zZSB0aGUgbW9kYWwgb24gZXNjYXBlIGtleSBwcmVzcyBhbmQgY2xvc2Ugb3IgY2xvc2UgYnV0dG9uIHByZXNzIHwKfCBtYXhXaWR0aCAgICAgICAgICB8IHN0cmluZyAgICB8IDUwMHB4ICAgfCBNYXggd2lkdGggb2YgbW9kYWwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cnwgd2lkdGggICAgICAgICAgICAgfCBzdHJpbmcgICAgfCA1MDBweCAgIHwgd2lkdGggb2YgbW9kYWwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHRvcCAgICAgICAgICAgICAgIHwgc3RyaW5nICAgIHwgMXJlbSAgICB8IEhlaWdodCBmcm9tIHRvcCBvZiBjb250YWluZXIgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBjaGlsZHJlbiAgICAgICAgICB8IEFueSAgICAgICB8ICAgICAgICAgfCBBbnkgY29udGVudCB0byBiZSBkaXNwbGF5ZWQgaW4gbW9kYWwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cnwgc2hvd0Nsb3NlQnV0dG9uICAgfCBCb29sZWFuICAgfCB0cnVlICAgIHwgVG9nZ2xlcyB2aXNpYmlsaXR5IG9mIG1vZGFsIGNsb3NlIGJ1dHRvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG1hcmdpbiAgICAgICAgICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IG1hcmdpbiB0b3AsIGJvdHRvbSwgbGVmdCBhbmQgcmlnaHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBtYXJnaW5WZXJ0aWNhbCAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBtYXJnaW4gdG9wIGFuZCBib3R0b20gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgbWFyZ2luSG9yaXpvbnRhbCAgfCBTcGFjZVR5cGUgfCB1bnNldCAgIHwgbWFyZ2luIGxlZnQgYW5kIHJpZ2h0ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG1hcmdpblRvcCAgICAgICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IG1hcmdpbiB0b3AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBtYXJnaW5SaWdodCAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBtYXJnaW4gcmlnaHQgcmlnaHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgbWFyZ2luQm90dG9tICAgICAgfCBTcGFjZVR5cGUgfCAneHMnICAgIHwgbWFyZ2luIGJvdHRvbSBib3R0b20gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG1hcmdpbkxlZnQgICAgICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IG1hcmdpbiBsZWZ0IGxlZnQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBwYWRkaW5nICAgICAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBwYWRkaW5nIHRvcCwgYm90dG9tLCBsZWZ0IGFuZCByaWdodCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgcGFkZGluZ1ZlcnRpY2FsICAgfCBTcGFjZVR5cGUgfCB1bnNldCAgIHwgcGFkZGluZyB0b3AgYW5kIGJvdHRvbSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHBhZGRpbmdIb3Jpem9udGFsIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IHBhZGRpbmcgbGVmdCBhbmQgcmlnaHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBwYWRkaW5nVG9wICAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBwYWRkaW5nIHRvcCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgcGFkZGluZ1JpZ2h0ICAgICAgfCBTcGFjZVR5cGUgfCB1bnNldCAgIHwgcGFkZGluZyByaWdodCByaWdodCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHBhZGRpbmdCb3R0b20gICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IHBhZGRpbmcgYm90dG9tIGJvdHRvbSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBwYWRkaW5nTGVmdCAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBwYWRkaW5nIGxlZnQgbGVmdCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CgojIyBBY2Nlc3NpYmlsaXR5CgpXaGVuIGl0IGNvbWVzIHRvIG1vZGFsIGRpYWxvZ3MsIGNvbnNpZGVyIHRoaXM6IG5vIG9uZSBsaWtlcyB0byBiZSBpbnRlcnJ1cHRlZCwgYnV0IGlmIHlvdSBtdXN0LCBtYWtlIHN1cmUgaXTigJlzIHdvcnRoIHRoZSBjb3N0LgoKVXNlIG1vZGFsIGRpYWxvZ3MgZm9yIGltcG9ydGFudCB3YXJuaW5ncywgYXMgYSB3YXkgdG8gcHJldmVudCBvciBjb3JyZWN0IGNyaXRpY2FsIGVycm9ycy4KVXNlIG1vZGFsIGRpYWxvZ3MgdG8gcmVxdWVzdCB0aGUgdXNlciB0byBlbnRlciBpbmZvcm1hdGlvbiBjcml0aWNhbCB0byBjb250aW51aW5nIHRoZSBjdXJyZW50IHByb2Nlc3MuCk1vZGFsIGRpYWxvZ3MgY2FuIGJlIHVzZWQgdG8gZnJhZ21lbnQgYSBjb21wbGV4IHdvcmtmbG93IGludG8gc2ltcGxlciBzdGVwcy4KRG8gbm90IHVzZSBtb2RhbCBkaWFsb2dzIGZvciBub25lc3NlbnRpYWwgaW5mb3JtYXRpb24gdGhhdCBpcyBub3QgcmVsYXRlZCB0byB0aGUgY3VycmVudCB1c2VyIGZsb3cuCg==\""],"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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cruk/cruk-react-components",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "React components implementing CRUK and SU2C designs",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {
@@ -139,7 +139,7 @@
139
139
  "react-live": "^2.2.3",
140
140
  "rollup": "^2.7.2",
141
141
  "rollup-plugin-terser": "^7.0.0",
142
- "rollup-plugin-typescript2": "^0.31.2",
142
+ "rollup-plugin-typescript2": "^0.33.0",
143
143
  "source-map-explorer": "^2.2.2",
144
144
  "styled-components": "^5.3.5",
145
145
  "ts-loader": "9.2.8",
package/CHANGELOG.md DELETED
@@ -1,239 +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.7] - 2022-08-19
9
-
10
- ### Changed
11
-
12
- Adding react and react-dom 18 as peer dependency option and removeing a types that use FC or FunctionComponent [#540](https://github.com/CRUKorg/cruk-react-components/issues/#540))
13
-
14
- ## [1.1.6] - 2022-08-15
15
-
16
- ### Fixed
17
-
18
- Fix typo in the fix for safari button styling [#531](https://github.com/CRUKorg/cruk-react-components/issues/#531))
19
-
20
- ## [1.1.5] - 2022-08-15
21
-
22
- ### Fixed
23
-
24
- Buttons cast as anchor tags look bloated on iOS safari [#531](https://github.com/CRUKorg/cruk-react-components/issues/#531))
25
-
26
- ## [1.1.4] - 2022-08-12
27
-
28
- ### Fixed
29
-
30
- Using new fork of cypress-image-snapshots original repo is no longer maintianed :(
31
-
32
- ## [1.1.3] - 2022-07-16
33
-
34
- ### Fixed
35
-
36
- Removed arbitrary spacing on user block [#513](https://github.com/CRUKorg/cruk-react-components/issues/#513)
37
- Removed arbitrary z-indexes on totaliser [#514](https://github.com/CRUKorg/cruk-react-components/issues/#514)
38
-
39
- ## [1.1.2] - 2022-07-11
40
-
41
- ### Changed
42
-
43
- Changed asset path to to be https://rcl.assets.cancerresearchuk.org/ fixes [#505](https://github.com/CRUKorg/cruk-react-components/issues/#505)
44
-
45
- ### Fixed
46
-
47
- Error appearing on SU2C theme pages where only .woff file exists not .woff2 [#506](https://github.com/CRUKorg/cruk-react-components/issues/#506)
48
-
49
- ## [1.1.1] - 2022-05-23
50
-
51
- ### Fixed
52
-
53
- 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.
54
-
55
- ## [1.1.0] - 2022-05-22
56
-
57
- ### Added
58
-
59
- 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)
60
-
61
- ### Fixed
62
-
63
- Fix missing images form Avatar, Header and Footer using placeholder cloudfront distribution
64
-
65
- ## [1.0.11] - 2022-05-11
66
-
67
- ### Fixed
68
-
69
- Fix text expanding on ios landscape [#469](https://github.com/CRUKorg/cruk-react-components/issues/#469)
70
- Fix support for overflow-wrap on heading and text components [#470](https://github.com/CRUKorg/cruk-react-components/issues/#470)
71
-
72
- ## [1.0.10] - 2022-04-1
73
-
74
- ### Fixed
75
-
76
- Change all body font weight from 500 to 400 to match design system spec [#454](https://github.com/CRUKorg/cruk-react-components/issues/#454)
77
-
78
- ## [1.0.9] - 2022-04-06
79
-
80
- ### Changed
81
-
82
- CRUK magenta_500 from #e40074 to #e40087 to match design system
83
-
84
- ### Fixed
85
-
86
- - Text size s is incorrect should be 0.875 em not 0.857 em [#452](https://github.com/CRUKorg/cruk-react-components/issues/#452)
87
-
88
- ## [1.0.8] - 2022-03-29
89
-
90
- ### Fixed
91
-
92
- - TextField with extra on left or right looks wonkey on iOS [#445](https://github.com/CRUKorg/cruk-react-components/issues/445)
93
-
94
- ## [1.0.7] - 2022-03-24
95
-
96
- ### Fixed
97
-
98
- - Focus rect visible on mouse click and touch events for some items [#438](https://github.com/CRUKorg/cruk-react-components/issues/438)
99
-
100
- ## [1.0.6] - 2022-03-23
101
-
102
- ### Fixed
103
-
104
- - 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)
105
-
106
- ### Added
107
-
108
- - Carousel component
109
- - secondaryPercentage prop for Progress Bar and Totaliser
110
-
111
- ## [1.0.5] - 2022-02-09
112
-
113
- ### Changed
114
-
115
- - Using node 16 and cypress 9.4.1
116
-
117
- ## [1.0.4] - 2022-02-02
118
-
119
- ### Fixed
120
-
121
- - Collapse focus rect SU2C needs reduced border radius [#403](https://github.com/CRUKorg/cruk-react-components/issues/403)
122
- - Totaliser with custom summary has a speech bubble arrow artifact [#404](https://github.com/CRUKorg/cruk-react-components/issues/404)
123
-
124
- ## [1.0.3] - 2022-01-21
125
-
126
- ### Changed
127
-
128
- - Moving storybook/react into dev dependencies
129
-
130
- ## [1.0.2] - 2022-01-21
131
-
132
- ### Changed
133
-
134
- - Bumping storybook dependencies to 6.4.14
135
-
136
- ## [1.0.1] - 2021-12-01
137
-
138
- ### Removed
139
-
140
- - "@react-theming/storybook-addon", because it was breaking storybook post 6.4
141
-
142
- ### Changed
143
-
144
- - 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.
145
- - Footer logo src and alt text configurable from theme
146
-
147
- ### Added
148
-
149
- - New theme selector bar in storybook top bar to replace the react-theming addon
150
-
151
- ## [1.0.0] - 2021-10-18
152
-
153
- ### Changed
154
-
155
- (BREAKING CHANGES)
156
-
157
- - Renamed RadioGroup to RadioConsent to discorage people to use this pattern in other scenarios
158
- - The old Button variant 'tertiary' has been removed and old Button variant 'text' is now Button variant 'teriary'
159
- - Changed avatar name prop type from ReactNode to string
160
-
161
- ### Added
162
-
163
- - Added aria-described by support for controlls with error messages for TextField, TextAreaField, Select, Checkbox, Radio
164
- - 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.
165
- - Added hideRequiredInLabel prop to select to hide required in label when it is used to filter lists etc.
166
-
167
- ## [0.1.7] - 2021-10-06
168
-
169
- ### Fixed
170
-
171
- - CRUK secondary button hover colours solution causes cypress to think something is covering/obscuring text inputs when it isn't
172
-
173
- ## [0.1.6] - 2021-10-05
174
-
175
- ### Fixed
176
-
177
- - CRUK secondary button hover colours not accessible [#299](https://github.com/CRUKorg/cruk-react-components/issues/299)
178
- - CRUK totaliser colours not accessible [#324](https://github.com/CRUKorg/cruk-react-components/issues/324)
179
-
180
- ## [0.1.5] - 2021-09-23
181
-
182
- ### Added
183
-
184
- - Test for TextField with extra left and extra right props
185
-
186
- ### Changed
187
-
188
- - Heading H6 tags are always 1em
189
-
190
- ### Fixed
191
-
192
- - 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)
193
- - Missing attributes on AddressDataType [#306](https://github.com/CRUKorg/cruk-react-components/issues/306)
194
-
195
- ## [0.1.4] - 2021-08-27
196
-
197
- ### Changed
198
-
199
- - improved select cypress tests
200
- - Checkbox and Radio focus rect box shaddow is now inset for visual fix where it appears cropped in some scenarios
201
-
202
- ### Added
203
-
204
- - Added onPopOverIsOpenChange prop to PopOver component
205
- - Added backgroundColor prop to Modal component
206
-
207
- ## [0.1.3] - 2021-08-09
208
-
209
- ### Changed
210
-
211
- - Added Hotjar recording suppression attribute to TextField, TextAreaField and AddressLookup components
212
-
213
- ## [0.1.2] - 2021-07-20
214
-
215
- ### Added
216
-
217
- - LegendWrapper component
218
-
219
- ### Changed
220
-
221
- - Added hasError and errorMessage prop to Radio and Checkbox components
222
- - Updated styles for the Radio and Checkbox components to reflect hasError
223
- - Updated JS doc comment for Text, Link, TextField and TextAreaField components
224
- - Updated ErrorText colour, font weight and spacing inside form controlls
225
- - 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
226
-
227
- ### Removed
228
-
229
- ### Fixed
230
-
231
- ## [0.1.1] - 2021-06-11
232
-
233
- ### Added
234
-
235
- ### Changed
236
-
237
- ### Removed
238
-
239
- ### Fixed