@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
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../node_modules/tslib/tslib.es6.js"),t=require("react"),l=require("./styles.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=r(t),a=function(t){return n.default.createElement("div",null,n.default.createElement(l.CarouselButton,e.__assign({},t,{"aria-label":"previous"}),n.default.createElement(l.VerticalAlign,null,"",n.default.createElement(l.ScreenReaderOnly,null,"Scroll carousel to previous index"))))},u=function(t){return n.default.createElement("div",null,n.default.createElement(l.CarouselButton,e.__assign({},t,{"aria-label":"next"}),n.default.createElement(l.VerticalAlign,null,"",n.default.createElement(l.ScreenReaderOnly,null,"Scroll carousel to previous index"))))},o=function(e){var t=e.count,r=e.currentPosition,o=void 0===r?0:r,c=e.scrollToPosition,i=e.next,s=e.previous,d=o!==t-1,f=0!==o,m=Array.from({length:t},(function(e,t){return"arrayIndex".concat(t)}));return n.default.createElement(l.ButtonWrapper,null,n.default.createElement(a,{disabled:!f,onClick:s}),n.default.createElement(l.DotContainer,{count:t},m.map((function(e,t){var r=t===o;return n.default.createElement(l.Dot,{key:e,selected:r,role:"switch","aria-checked":r,onClick:function(){c(t)}},n.default.createElement(l.ScreenReaderOnly,null,"Scroll carousel to index ".concat(t)))}))),n.default.createElement(u,{disabled:!d,onClick:i}))};exports.CarouselLeftButton=a,exports.CarouselRightButton=u,exports.Dots=o,exports.default=o;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../node_modules/tslib/tslib.es6.js"),t=require("react"),l=require("../../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js"),r=require("../IconFa/index.js"),n=require("./styles.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=a(t),o=function(t){return u.default.createElement("div",null,u.default.createElement(n.CarouselButton,e.__assign({},t,{"aria-label":"previous"}),u.default.createElement(n.VerticalAlign,null,u.default.createElement(r.default,{faIcon:l.faCaretLeft,size:"1.25em"}),u.default.createElement(n.ScreenReaderOnly,null,"Scroll carousel to previous index"))))},c=function(t){return u.default.createElement("div",null,u.default.createElement(n.CarouselButton,e.__assign({},t,{"aria-label":"next"}),u.default.createElement(n.VerticalAlign,null,u.default.createElement(r.default,{faIcon:l.faCaretRight,size:"1.25em"}),u.default.createElement(n.ScreenReaderOnly,null,"Scroll carousel to previous index"))))},i=function(e){var t=e.count,l=e.currentPosition,r=void 0===l?0:l,a=e.scrollToPosition,i=e.next,s=e.previous,d=r!==t-1,f=0!==r,m=Array.from({length:t},(function(e,t){return"arrayIndex".concat(t)}));return u.default.createElement(n.ButtonWrapper,null,u.default.createElement(o,{disabled:!f,onClick:s}),u.default.createElement(n.DotContainer,{count:t},m.map((function(e,t){var l=t===r;return u.default.createElement(n.Dot,{key:e,selected:l,role:"switch","aria-checked":l,onClick:function(){a(t)}},u.default.createElement(n.ScreenReaderOnly,null,"Scroll carousel to index ".concat(t)))}))),u.default.createElement(c,{disabled:!d,onClick:i}))};exports.CarouselLeftButton=o,exports.CarouselRightButton=c,exports.Dots=i,exports.default=i;
2
2
  //# sourceMappingURL=Dots.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("../../../node_modules/react-intersection-observer/react-intersection-observer.modern.mjs.js"),r=require("../Box/index.js"),n=require("./Dots.js"),l=require("./styles.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=o(e),u=function(o){var u=o.startPosition,s=void 0===u?0:u,c=o.children,i=o.onPositionChanged,d=o.shrinkUnselectedPages,f=void 0!==d&&d,h=e.useState(s),m=h[0],v=h[1],C=e.useState(!0),E=C[0],g=C[1],p=e.useRef(null),j=a.default.Children.toArray(c).filter(Boolean),x=function(e){if(p&&p.current){var t=p.current.scrollWidth,r=0===e,n=e===p.current.children.length-1,l=p.current.children[e];if(!l)return;var o=l.offsetLeft;r?p.current.scrollTo(0,0):n?p.current.scrollTo(t,0):p.current.scrollTo(o,0),E||g(!0)}};e.useEffect((function(){0!==s&&g(!1)}),[s]),e.useEffect((function(){!1===E&&x(s)}),[E]);var y=1===j.length;return a.default.createElement(a.default.Fragment,null,a.default.createElement(r.default,null,a.default.createElement(l.CarouselWrapper,null,a.default.createElement(l.CarouselScrollArea,{ref:p,"aria-live":"assertive",smoothScrolling:E,tabIndex:0},j.map((function(e,r){var n=r===m;return a.default.createElement(l.CarouselCard,{key:"card".concat(r),onlyChild:y},a.default.createElement(t.InView,{threshold:.5,as:"div",onChange:function(e){var t;e&&m!==(t=r)&&(v(t),i&&i(t))}},a.default.createElement(l.CarouselCardInner,{onlyChild:y,isSelected:n,shrinkUnselectedPages:f},e)))}))))),j.length>1?a.default.createElement(r.default,null,a.default.createElement(n.Dots,{count:j.length,currentPosition:m,scrollToPosition:x,next:function(){x(m+1)},previous:function(){x(m-1)}})):null)},s=e.memo(u);exports.Carousel=u,exports.default=s;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("../../../node_modules/react-intersection-observer/react-intersection-observer.modern.mjs.js"),r=require("../Box/index.js"),l=require("./Dots.js"),n=require("./styles.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=o(e),a=function(o){var a=o.startPosition,i=void 0===a?0:a,s=o.children,c=o.onPositionChanged,d=o.shrinkUnselectedPages,f=void 0!==d&&d,h=o.fullWidthChild,v=void 0!==h&&h,m=e.useState(i),C=m[0],E=m[1],g=e.useState(!0),p=g[0],j=g[1],x=e.useRef(null),y=u.default.Children.toArray(s).filter(Boolean),P=function(e){if(x&&x.current){var t=x.current.scrollWidth,r=0===e,l=e===x.current.children.length-1,n=x.current.children[e];if(!n)return;var o=n.offsetLeft;r?x.current.scrollTo(0,0):l?x.current.scrollTo(t,0):x.current.scrollTo(o,0),p||j(!0)}};e.useEffect((function(){0!==i&&j(!1)}),[i]),e.useEffect((function(){!1===p&&P(i)}),[p]);var b=1===y.length;return u.default.createElement(u.default.Fragment,null,u.default.createElement(r.default,null,u.default.createElement(n.CarouselWrapper,null,u.default.createElement(n.CarouselScrollArea,{ref:x,"aria-live":"assertive",smoothScrolling:p,tabIndex:0},y.map((function(e,r){var l=r===C;return u.default.createElement(n.CarouselCard,{key:"card".concat(r),onlyChild:b,fullWidthChild:v},u.default.createElement(t.InView,{threshold:.5,as:"div",onChange:function(e){var t;e&&C!==(t=r)&&(E(t),c&&c(t))}},u.default.createElement(n.CarouselCardInner,{onlyChild:b,isSelected:l,shrinkUnselectedPages:f,fullWidthChild:v},e)))}))))),y.length>1?u.default.createElement(r.default,null,u.default.createElement(l.Dots,{count:y.length,currentPosition:C,scrollToPosition:P,next:function(){P(C+1)},previous:function(){P(C-1)}})):null)},i=e.memo(a);exports.Carousel=a,exports.default=i;
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("../../../node_modules/tslib/tslib.es6.js");function e(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var t,o,r,i,a,l,s,c,d,p,u=e(require("styled-components")),m=u.default.div(t||(t=n.__makeTemplateObject(["\n position: relative;\n width: 100%;\n overflow-y: hidden;\n"],["\n position: relative;\n width: 100%;\n overflow-y: hidden;\n"]))),h=u.default.ul(o||(o=n.__makeTemplateObject(["\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"})),f=u.default.li(r||(r=n.__makeTemplateObject(["\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%"})),b=u.default.div(i||(i=n.__makeTemplateObject(["\n transition: transform 0.2s linear;\n transform: ",";\n"],["\n transition: transform 0.2s linear;\n transform: ",";\n"])),(function(n){var e=n.isSelected,t=n.shrinkUnselectedPages;return n.onlyChild||e&&t?"scale(1)":"scale(0.9)"})),g=u.default.div(a||(a=n.__makeTemplateObject(["\n display: flex;\n justify-content: center;\n"],["\n display: flex;\n justify-content: center;\n"]))),x=u.default.span(l||(l=n.__makeTemplateObject(["\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"]))),y=u.default.button(s||(s=n.__makeTemplateObject(["\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,t=n.theme;return e?t.colors.disabled:"su2c"===t.name?t.colors.textDark:t.colors.primary}),(function(n){return n.theme.fontSizes.xxxl}),(function(n){return n.disabled?"scale(0.8)":"scale(1)"})),w=u.default.div(c||(c=n.__makeTemplateObject(["\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"})),k=u.default.button(d||(d=n.__makeTemplateObject(["\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=u.default.span(p||(p=n.__makeTemplateObject(["\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"])));exports.ButtonWrapper=g,exports.CarouselButton=y,exports.CarouselCard=f,exports.CarouselCardInner=b,exports.CarouselScrollArea=h,exports.CarouselWrapper=m,exports.Dot=k,exports.DotContainer=w,exports.ScreenReaderOnly=v,exports.VerticalAlign=x;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("../../../node_modules/tslib/tslib.es6.js");function e(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var t,o,r,i,a,l,s,c,d,p,u=e(require("styled-components")),m=u.default.div(t||(t=n.__makeTemplateObject(["\n position: relative;\n width: 100%;\n overflow-y: hidden;\n"],["\n position: relative;\n width: 100%;\n overflow-y: hidden;\n"]))),h=u.default.ul(o||(o=n.__makeTemplateObject(["\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"})),f=u.default.li(r||(r=n.__makeTemplateObject(["\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,t=n.fullWidthChild;return e||t?"100%":"80%"})),b=u.default.div(i||(i=n.__makeTemplateObject(["\n transition: transform 0.2s linear;\n transform: ",";\n"],["\n transition: transform 0.2s linear;\n transform: ",";\n"])),(function(n){var e=n.isSelected,t=n.shrinkUnselectedPages,o=n.onlyChild,r=n.fullWidthChild;return o||e&&t||r?"scale(1)":"scale(0.9)"})),g=u.default.div(a||(a=n.__makeTemplateObject(["\n display: flex;\n justify-content: center;\n"],["\n display: flex;\n justify-content: center;\n"]))),x=u.default.span(l||(l=n.__makeTemplateObject(["\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"]))),y=u.default.button(s||(s=n.__makeTemplateObject(["\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,t=n.theme;return e?t.colors.disabled:"su2c"===t.name?t.colors.textDark:t.colors.primary}),(function(n){return n.theme.fontSizes.xxxl}),(function(n){return n.disabled?"scale(0.8)":"scale(1)"})),w=u.default.div(c||(c=n.__makeTemplateObject(["\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"})),k=u.default.button(d||(d=n.__makeTemplateObject(["\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=u.default.span(p||(p=n.__makeTemplateObject(["\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"])));exports.ButtonWrapper=g,exports.CarouselButton=y,exports.CarouselCard=f,exports.CarouselCardInner=b,exports.CarouselScrollArea=h,exports.CarouselWrapper=m,exports.Dot=k,exports.DotContainer=w,exports.ScreenReaderOnly=v,exports.VerticalAlign=x;
2
2
  //# sourceMappingURL=styles.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default="IyBNb2RhbAoKVXNlIGEgbW9kYWwgdG8gZGlzcGxheSBjb250ZW50IG92ZXIgdG9wIG9mIHRoZSByZXN0IG9mIHRoZSBzaXRlIHdoaWNoIG11c3QgYmUgaW50ZXJhY3RlZCB3aXRoIGJlZm9yZSB0aGUgdXNlciBjYW4gY29udGludWUuCgojIyBIb3cgbW9kYWxzIHdvcmsKCi0gTW9kYWxzIGFyZSBwb3NpdGlvbmVkIG92ZXIgZXZlcnl0aGluZyBlbHNlIGluIHRoZSBkb2N1bWVudCBhbmQgcmVtb3ZlIHNjcm9sbCBmcm9tIHRoZSAiYm9keSIgdGFnIHNvIHRoYXQgbW9kYWwgY29udGVudCBzY3JvbGxzIGluc3RlYWQuCi0gTW9kYWxzIGFyZSB1bm1vdW50ZWQgd2hlbiBjbG9zZWQuCi0gTW9kYWwncyAidHJhcCIgZm9jdXMgaW4gdGhlbSwgZW5zdXJpbmcgdGhlIGtleWJvYXJkIG5hdmlnYXRpb24gY3ljbGVzIHRocm91Z2ggdGhlIG1vZGFsLCBhbmQgbm90IHRoZSByZXN0IG9mIHRoZSBwYWdlLgoKIyMgQWNjZXNzaWJpbGl0eQoKLSBPbmNlIHRoZSBNb2RhbCBpcyBhcHBlYXJlZCBvbiB0aGUgc2NyZWVuLCB0aGUgZm9jdXMgbXVzdCBiZSB3aXRoaW4gdGhlIE1vZGFsIGNvbnRhaW5lciB3aGljaCB3aWxsIGVuYWJsZSB0aGUgc2NyZWVuIHJlYWRlcnMgdG8gYmUgYWJsZSB0byBuYXZpZ2F0ZSB3aXRoaW4gdGhlIE1vZGFsLiBZb3UgbWF5IHdpc2ggdG8gaGlkZSB0aGUgY2xvc2UgYnV0dG9uIHNvIHRoYXQgYSB1c2VyIG11c3QgY2xpY2sgb24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ApOwp9CmBgYAoKfCBOYW1lICAgICAgICAgICAgfCBUeXBlICAgICB8ICBPcHRpb25zICAgfCBEZWZhdWx0IHwgRGVzY3JpcHRpb24gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IDotLS0tLS0tLS0tLS0tLSB8IDotLS0tLS0tIHwgOi0tLS0tLS0tOiB8IDotLS0tLS0gfCA6LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSB8CnwgY2xvc2VGdW5jdGlvbiAgIHwgZnVuY3Rpb24gfCAgICAgICAgICAgIHwgbnVsbCAgICB8IChSZXF1aXJlZCkgZnVuY3Rpb24gdXNlZCB0byBjbG9zZSB0aGUgbW9kYWwgb24gZXNjYXBlIGtleSBwcmVzcyBhbmQgY2xvc2Ugb3IgY2xvc2UgYnV0dG9uIHByZXNzIHwKfCBtYXhXaWR0aCAgICAgICAgfCBzdHJpbmcgICB8ICAgICAgICAgICAgfCA1MDBweCAgIHwgTWF4IHdpZHRoIG9mIG1vZGFsICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHRvcCAgICAgICAgICAgICB8IHN0cmluZyAgIHwgICAgICAgICAgICB8IDFyZW0gICAgfCBIZWlnaHQgZnJvbSB0b3Agb2YgY29udGFpbmVyICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgY2hpbGRyZW4gICAgICAgIHwgQW55ICAgICAgfCAgICAgICAgICAgIHwgICAgICAgICB8IEFueSBjb250ZW50IHRvIGJlIGRpc3BsYXllZCBpbiBtb2RhbCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBzaG93Q2xvc2VCdXR0b24gfCBCb29sZWFuICB8IHRydWUvZmFsc2UgfCB0cnVlICAgIHwKCiMjIEFjY2Vzc2liaWxpdHkKCldoZW4gaXQgY29tZXMgdG8gbW9kYWwgZGlhbG9ncywgY29uc2lkZXIgdGhpczogbm8gb25lIGxpa2VzIHRvIGJlIGludGVycnVwdGVkLCBidXQgaWYgeW91IG11c3QsIG1ha2Ugc3VyZSBpdOKAmXMgd29ydGggdGhlIGNvc3QuCgpVc2UgbW9kYWwgZGlhbG9ncyBmb3IgaW1wb3J0YW50IHdhcm5pbmdzLCBhcyBhIHdheSB0byBwcmV2ZW50IG9yIGNvcnJlY3QgY3JpdGljYWwgZXJyb3JzLgpVc2UgbW9kYWwgZGlhbG9ncyB0byByZXF1ZXN0IHRoZSB1c2VyIHRvIGVudGVyIGluZm9ybWF0aW9uIGNyaXRpY2FsIHRvIGNvbnRpbnVpbmcgdGhlIGN1cnJlbnQgcHJvY2Vzcy4KTW9kYWwgZGlhbG9ncyBjYW4gYmUgdXNlZCB0byBmcmFnbWVudCBhIGNvbXBsZXggd29ya2Zsb3cgaW50byBzaW1wbGVyIHN0ZXBzLgpEbyBub3QgdXNlIG1vZGFsIGRpYWxvZ3MgZm9yIG5vbmVzc2VudGlhbCBpbmZvcm1hdGlvbiB0aGF0IGlzIG5vdCByZWxhdGVkIHRvIHRoZSBjdXJyZW50IHVzZXIgZmxvdy4K";
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default="IyBNb2RhbAoKVXNlIGEgbW9kYWwgdG8gZGlzcGxheSBjb250ZW50IG92ZXIgdG9wIG9mIHRoZSByZXN0IG9mIHRoZSBzaXRlIHdoaWNoIG11c3QgYmUgaW50ZXJhY3RlZCB3aXRoIGJlZm9yZSB0aGUgdXNlciBjYW4gY29udGludWUuCgojIyBIb3cgbW9kYWxzIHdvcmsKCi0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LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0gfAp8IGNsb3NlRnVuY3Rpb24gICAgIHwgZnVuY3Rpb24gIHwgbnVsbCAgICB8IChSZXF1aXJlZCkgZnVuY3Rpb24gdXNlZCB0byBjbG9zZSB0aGUgbW9kYWwgb24gZXNjYXBlIGtleSBwcmVzcyBhbmQgY2xvc2Ugb3IgY2xvc2UgYnV0dG9uIHByZXNzIHwKfCBtYXhXaWR0aCAgICAgICAgICB8IHN0cmluZyAgICB8IDUwMHB4ICAgfCBNYXggd2lkdGggb2YgbW9kYWwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cnwgd2lkdGggICAgICAgICAgICAgfCBzdHJpbmcgICAgfCA1MDBweCAgIHwgd2lkdGggb2YgbW9kYWwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHRvcCAgICAgICAgICAgICAgIHwgc3RyaW5nICAgIHwgMXJlbSAgICB8IEhlaWdodCBmcm9tIHRvcCBvZiBjb250YWluZXIgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBjaGlsZHJlbiAgICAgICAgICB8IEFueSAgICAgICB8ICAgICAgICAgfCBBbnkgY29udGVudCB0byBiZSBkaXNwbGF5ZWQgaW4gbW9kYWwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cnwgc2hvd0Nsb3NlQnV0dG9uICAgfCBCb29sZWFuICAgfCB0cnVlICAgIHwgVG9nZ2xlcyB2aXNpYmlsaXR5IG9mIG1vZGFsIGNsb3NlIGJ1dHRvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG1hcmdpbiAgICAgICAgICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IG1hcmdpbiB0b3AsIGJvdHRvbSwgbGVmdCBhbmQgcmlnaHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBtYXJnaW5WZXJ0aWNhbCAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBtYXJnaW4gdG9wIGFuZCBib3R0b20gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgbWFyZ2luSG9yaXpvbnRhbCAgfCBTcGFjZVR5cGUgfCB1bnNldCAgIHwgbWFyZ2luIGxlZnQgYW5kIHJpZ2h0ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG1hcmdpblRvcCAgICAgICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IG1hcmdpbiB0b3AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBtYXJnaW5SaWdodCAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBtYXJnaW4gcmlnaHQgcmlnaHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgbWFyZ2luQm90dG9tICAgICAgfCBTcGFjZVR5cGUgfCAneHMnICAgIHwgbWFyZ2luIGJvdHRvbSBib3R0b20gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG1hcmdpbkxlZnQgICAgICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IG1hcmdpbiBsZWZ0IGxlZnQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBwYWRkaW5nICAgICAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBwYWRkaW5nIHRvcCwgYm90dG9tLCBsZWZ0IGFuZCByaWdodCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgcGFkZGluZ1ZlcnRpY2FsICAgfCBTcGFjZVR5cGUgfCB1bnNldCAgIHwgcGFkZGluZyB0b3AgYW5kIGJvdHRvbSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHBhZGRpbmdIb3Jpem9udGFsIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IHBhZGRpbmcgbGVmdCBhbmQgcmlnaHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBwYWRkaW5nVG9wICAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBwYWRkaW5nIHRvcCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgcGFkZGluZ1JpZ2h0ICAgICAgfCBTcGFjZVR5cGUgfCB1bnNldCAgIHwgcGFkZGluZyByaWdodCByaWdodCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHBhZGRpbmdCb3R0b20gICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IHBhZGRpbmcgYm90dG9tIGJvdHRvbSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBwYWRkaW5nTGVmdCAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBwYWRkaW5nIGxlZnQgbGVmdCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CgojIyBBY2Nlc3NpYmlsaXR5CgpXaGVuIGl0IGNvbWVzIHRvIG1vZGFsIGRpYWxvZ3MsIGNvbnNpZGVyIHRoaXM6IG5vIG9uZSBsaWtlcyB0byBiZSBpbnRlcnJ1cHRlZCwgYnV0IGlmIHlvdSBtdXN0LCBtYWtlIHN1cmUgaXTigJlzIHdvcnRoIHRoZSBjb3N0LgoKVXNlIG1vZGFsIGRpYWxvZ3MgZm9yIGltcG9ydGFudCB3YXJuaW5ncywgYXMgYSB3YXkgdG8gcHJldmVudCBvciBjb3JyZWN0IGNyaXRpY2FsIGVycm9ycy4KVXNlIG1vZGFsIGRpYWxvZ3MgdG8gcmVxdWVzdCB0aGUgdXNlciB0byBlbnRlciBpbmZvcm1hdGlvbiBjcml0aWNhbCB0byBjb250aW51aW5nIHRoZSBjdXJyZW50IHByb2Nlc3MuCk1vZGFsIGRpYWxvZ3MgY2FuIGJlIHVzZWQgdG8gZnJhZ21lbnQgYSBjb21wbGV4IHdvcmtmbG93IGludG8gc2ltcGxlciBzdGVwcy4KRG8gbm90IHVzZSBtb2RhbCBkaWFsb2dzIGZvciBub25lc3NlbnRpYWwgaW5mb3JtYXRpb24gdGhhdCBpcyBub3QgcmVsYXRlZCB0byB0aGUgY3VycmVudCB1c2VyIGZsb3cuCg==";
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 \"IyBNb2RhbAoKVXNlIGEgbW9kYWwgdG8gZGlzcGxheSBjb250ZW50IG92Z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AgICAgfAp8IDotLS0tLS0tLS0tLS0tLSB8IDotLS0tLS0tIHwgOi0tLS0tLS0tOiB8IDotLS0tLS0gfCA6LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSB8CnwgY2xvc2VGdW5jdGlvbiAgIHwgZnVuY3Rpb24gfCAgICAgICAgICAgIHwgbnVsbCAgICB8IChSZXF1aXJlZCkgZnVuY3Rpb24gdXNlZCB0byBjbG9zZSB0aGUgbW9kYWwgb24gZXNjYXBlIGtleSBwcmVzcyBhbmQgY2xvc2Ugb3IgY2xvc2UgYnV0dG9uIHByZXNzIHwKfCBtYXhXaWR0aCAgICAgICAgfCBzdHJpbmcgICB8ICAgICAgICAgICAgfCA1MDBweCAgIHwgTWF4IHdpZHRoIG9mIG1vZGFsICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHRvcCAgICAgICAgICAgICB8IHN0cmluZyAgIHwgICAgICAgICAgICB8IDFyZW0gICAgfCBIZWlnaHQgZnJvbSB0b3Agb2YgY29udGFpbmVyICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgY2hpbGRyZW4gICAgICAgIHwgQW55ICAgICAgfCAgICAgICAgICAgIHwgICAgICAgICB8IEFueSBjb250ZW50IHRvIGJlIGRpc3BsYXllZCBpbiBtb2RhbCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBzaG93Q2xvc2VCdXR0b24gfCBCb29sZWFuICB8IHRydWUvZmFsc2UgfCB0cnVlICAgIHwKCiMjIEFjY2Vzc2liaWxpdHkKCldoZW4gaXQgY29tZXMgdG8gbW9kYWwgZGlhbG9ncywgY29uc2lkZXIgdGhpczogbm8gb25lIGxpa2VzIHRvIGJlIGludGVycnVwdGVkLCBidXQgaWYgeW91IG11c3QsIG1ha2Ugc3VyZSBpdOKAmXMgd29ydGggdGhlIGNvc3QuCgpVc2UgbW9kYWwgZGlhbG9ncyBmb3IgaW1wb3J0YW50IHdhcm5pbmdzLCBhcyBhIHdheSB0byBwcmV2ZW50IG9yIGNvcnJlY3QgY3JpdGljYWwgZXJyb3JzLgpVc2UgbW9kYWwgZGlhbG9ncyB0byByZXF1ZXN0IHRoZSB1c2VyIHRvIGVudGVyIGluZm9ybWF0aW9uIGNyaXRpY2FsIHRvIGNvbnRpbnVpbmcgdGhlIGN1cnJlbnQgcHJvY2Vzcy4KTW9kYWwgZGlhbG9ncyBjYW4gYmUgdXNlZCB0byBmcmFnbWVudCBhIGNvbXBsZXggd29ya2Zsb3cgaW50byBzaW1wbGVyIHN0ZXBzLgpEbyBub3QgdXNlIG1vZGFsIGRpYWxvZ3MgZm9yIG5vbmVzc2VudGlhbCBpbmZvcm1hdGlvbiB0aGF0IGlzIG5vdCByZWxhdGVkIHRvIHRoZSBjdXJyZW50IHVzZXIgZmxvdy4K\""],"names":[],"mappings":"oFAAe"}
1
+ {"version":3,"file":"README.md.js","sources":["../../../../../src/components/Modal/README.md"],"sourcesContent":["export default \"IyBNb2RhbAoKVXNlIGEgbW9kYWwgdG8gZGlzcGxheSBjb250ZW50IG92ZXIgdG9wIG9mIHRoZSByZXN0IG9mIHRoZSBzaXRlIHdoaWNoIG11c3QgYmUgaW50ZXJhY3RlZCB3aXRoIGJlZm9yZSB0aGUgdXNlciBjYW4gY29udGludWUuCgojIyBIb3cgbW9kYWxzIHdvcmsKCi0gTW9kYWxzIGFyZSBwb3NpdGlvbmVkIG92ZXIgZXZlcnl0aGluZyBlbHNlIGluIHRoZSBkb2N1bWVudCBhbmQgcmVtb3ZlIHNjcm9sbCBmcm9tIHRoZSAiYm9keSIgdGFnIHNvIHRo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BjbG9zZSB0aGUgbW9kYWwgb24gZXNjYXBlIGtleSBwcmVzcyBhbmQgY2xvc2Ugb3IgY2xvc2UgYnV0dG9uIHByZXNzIHwKfCBtYXhXaWR0aCAgICAgICAgICB8IHN0cmluZyAgICB8IDUwMHB4ICAgfCBNYXggd2lkdGggb2YgbW9kYWwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cnwgd2lkdGggICAgICAgICAgICAgfCBzdHJpbmcgICAgfCA1MDBweCAgIHwgd2lkdGggb2YgbW9kYWwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHRvcCAgICAgICAgICAgICAgIHwgc3RyaW5nICAgIHwgMXJlbSAgICB8IEhlaWdodCBmcm9tIHRvcCBvZiBjb250YWluZXIgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBjaGlsZHJlbiAgICAgICAgICB8IEFueSAgICAgICB8ICAgICAgICAgfCBBbnkgY29udGVudCB0byBiZSBkaXNwbGF5ZWQgaW4gbW9kYWwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cnwgc2hvd0Nsb3NlQnV0dG9uICAgfCBCb29sZWFuICAgfCB0cnVlICAgIHwgVG9nZ2xlcyB2aXNpYmlsaXR5IG9mIG1vZGFsIGNsb3NlIGJ1dHRvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG1hcmdpbiAgICAgICAgICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IG1hcmdpbiB0b3AsIGJvdHRvbSwgbGVmdCBhbmQgcmlnaHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBtYXJnaW5WZXJ0aWNhbCAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBtYXJnaW4gdG9wIGFuZCBib3R0b20gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgbWFyZ2luSG9yaXpvbnRhbCAgfCBTcGFjZVR5cGUgfCB1bnNldCAgIHwgbWFyZ2luIGxlZnQgYW5kIHJpZ2h0ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG1hcmdpblRvcCAgICAgICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IG1hcmdpbiB0b3AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBtYXJnaW5SaWdodCAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBtYXJnaW4gcmlnaHQgcmlnaHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgbWFyZ2luQm90dG9tICAgICAgfCBTcGFjZVR5cGUgfCAneHMnICAgIHwgbWFyZ2luIGJvdHRvbSBib3R0b20gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG1hcmdpbkxlZnQgICAgICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IG1hcmdpbiBsZWZ0IGxlZnQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBwYWRkaW5nICAgICAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBwYWRkaW5nIHRvcCwgYm90dG9tLCBsZWZ0IGFuZCByaWdodCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgcGFkZGluZ1ZlcnRpY2FsICAgfCBTcGFjZVR5cGUgfCB1bnNldCAgIHwgcGFkZGluZyB0b3AgYW5kIGJvdHRvbSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHBhZGRpbmdIb3Jpem9udGFsIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IHBhZGRpbmcgbGVmdCBhbmQgcmlnaHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBwYWRkaW5nVG9wICAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBwYWRkaW5nIHRvcCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgcGFkZGluZ1JpZ2h0ICAgICAgfCBTcGFjZVR5cGUgfCB1bnNldCAgIHwgcGFkZGluZyByaWdodCByaWdodCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHBhZGRpbmdCb3R0b20gICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IHBhZGRpbmcgYm90dG9tIGJvdHRvbSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBwYWRkaW5nTGVmdCAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBwYWRkaW5nIGxlZnQgbGVmdCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CgojIyBBY2Nlc3NpYmlsaXR5CgpXaGVuIGl0IGNvbWVzIHRvIG1vZGFsIGRpYWxvZ3MsIGNvbnNpZGVyIHRoaXM6IG5vIG9uZSBsaWtlcyB0byBiZSBpbnRlcnJ1cHRlZCwgYnV0IGlmIHlvdSBtdXN0LCBtYWtlIHN1cmUgaXTigJlzIHdvcnRoIHRoZSBjb3N0LgoKVXNlIG1vZGFsIGRpYWxvZ3MgZm9yIGltcG9ydGFudCB3YXJuaW5ncywgYXMgYSB3YXkgdG8gcHJldmVudCBvciBjb3JyZWN0IGNyaXRpY2FsIGVycm9ycy4KVXNlIG1vZGFsIGRpYWxvZ3MgdG8gcmVxdWVzdCB0aGUgdXNlciB0byBlbnRlciBpbmZvcm1hdGlvbiBjcml0aWNhbCB0byBjb250aW51aW5nIHRoZSBjdXJyZW50IHByb2Nlc3MuCk1vZGFsIGRpYWxvZ3MgY2FuIGJlIHVzZWQgdG8gZnJhZ21lbnQgYSBjb21wbGV4IHdvcmtmbG93IGludG8gc2ltcGxlciBzdGVwcy4KRG8gbm90IHVzZSBtb2RhbCBkaWFsb2dzIGZvciBub25lc3NlbnRpYWwgaW5mb3JtYXRpb24gdGhhdCBpcyBub3QgcmVsYXRlZCB0byB0aGUgY3VycmVudCB1c2VyIGZsb3cuCg==\""],"names":[],"mappings":"oFAAe"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../node_modules/tslib/tslib.es6.js"),t=require("react"),o=require("react-dom"),n=require("styled-components"),r=require("../../../node_modules/react-focus-lock/dist/es2015/Combination.js"),l=require("../../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js"),u=require("../IconFa/index.js"),a=require("../../themes/cruk.js"),d=require("./styles.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=i(t);exports.default=function(i){var c=i.modalName,f=i.closeFunction,m=i.showCloseButton,p=i.maxWidth,y=void 0===p?"500px":p,v=i.top,b=void 0===v?"1rem":v,E=i.backgroundColor,w=void 0===E?"backgroundLight":E,g=i.children,h=n.useTheme(),k=e.__assign(e.__assign({},a.default),h),q=function(e){"Escape"===e.key&&f&&f()};return t.useEffect((function(){if("undefined"!=typeof window)return document.body.style.overflow="hidden",document.addEventListener("keydown",q),function(){"undefined"!=typeof window&&(document.body.style.overflow="unset",document.removeEventListener("keydown",q))}}),[]),s.default.createElement(s.default.Fragment,null,"undefined"!=typeof window?o.createPortal(s.default.createElement("section",null,s.default.createElement(r.default,{returnFocus:!0},s.default.createElement(n.ThemeProvider,{theme:k},s.default.createElement(d.Wrapper,{role:"dialog","aria-modal":"true","aria-label":c},s.default.createElement(d.Content,{backgroundColor:w,maxWidth:y,top:b},m&&f?s.default.createElement(d.CloseButton,{"aria-label":"close",appearance:"tertiary",onClick:function(){f()}},s.default.createElement(u.default,{faIcon:l.faClose})):null,g),s.default.createElement(d.Background,null))))),document.body):null)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../node_modules/tslib/tslib.es6.js"),t=require("react"),n=require("react-dom"),o=require("styled-components"),a=require("../../../node_modules/react-focus-lock/dist/es2015/Combination.js"),d=require("../../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js"),i=require("../IconFa/index.js"),r=require("../../themes/cruk.js"),l=require("./styles.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=u(t);exports.default=function(u){var m=u.modalName,s=u.closeFunction,f=u.showCloseButton,g=u.maxWidth,p=void 0===g?"500px":g,v=u.top,h=void 0===v?"1rem":v,y=u.backgroundColor,w=void 0===y?"backgroundLight":y,b=u.children,E=u.width,k=void 0===E?"90%":E,x=u.margin,q=u.marginHorizontal,_=u.marginVertical,j=u.marginTop,C=u.marginRight,B=u.marginBottom,L=void 0===B?"xxl":B,T=u.marginLeft,z=u.padding,F=void 0===z?"xs":z,H=u.paddingHorizontal,R=u.paddingVertical,V=u.paddingTop,P=u.paddingRight,W=u.paddingBottom,I=u.paddingLeft,M=o.useTheme(),N=e.__assign(e.__assign({},r.default),M),O=function(e){"Escape"===e.key&&s&&s()};return t.useEffect((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))}}),[]),c.default.createElement(c.default.Fragment,null,"undefined"!=typeof window?n.createPortal(c.default.createElement("section",null,c.default.createElement(a.default,{returnFocus:!0},c.default.createElement(o.ThemeProvider,{theme:N},c.default.createElement(l.Wrapper,{role:"dialog","aria-modal":"true","aria-label":m},c.default.createElement(l.Content,{backgroundColor:w,maxWidth:p,width:k,top:h,margin:x,marginHorizontal:q,marginVertical:_,marginTop:j,marginRight:C,marginBottom:L,marginLeft:T,padding:F,paddingHorizontal:H,paddingVertical:R,paddingTop:V,paddingRight:P,paddingBottom:W,paddingLeft:I},f&&s?c.default.createElement(l.CloseButton,{"aria-label":"close",appearance:"tertiary",onClick:function(){s()}},c.default.createElement(i.default,{faIcon:d.faClose})):null,b),c.default.createElement(l.Background,null))))),document.body):null)};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("../../../node_modules/tslib/tslib.es6.js"),t=require("styled-components"),e=require("../Box/index.js"),o=require("../Button/index.js");function i(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var r,a,d,u,s=i(t),p=s.default.div(r||(r=n.__makeTemplateObject(["\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})),c=s.default.div(a||(a=n.__makeTemplateObject(["\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"]))),l=s.default(e.default)(d||(d=n.__makeTemplateObject(["\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 t=n.theme.colors,e=n.backgroundColor;return void 0!==e&&void 0!==typeof e?void 0!==t[e]?t[e]:e:t.backgroundLight}),(function(n){var t=n.top;return"".concat(t," auto auto auto")}),(function(n){return n.theme.spacing.xs}),(function(n){return n.maxWidth}),(function(n){return n.theme.spacing.xxl})),m=s.default(o.Button)(u||(u=n.__makeTemplateObject(["\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}));exports.Background=p,exports.CloseButton=m,exports.Content=l,exports.Wrapper=c;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("../../../node_modules/tslib/tslib.es6.js"),t=require("styled-components"),e=require("../Box/index.js"),o=require("../Button/index.js");function i(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var r,a,d,u,s=i(t),p=s.default.div(r||(r=n.__makeTemplateObject(["\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})),l=s.default.div(a||(a=n.__makeTemplateObject(["\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"]))),c=s.default(e.default)(d||(d=n.__makeTemplateObject(["\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 t=n.theme.colors,e=n.backgroundColor;return void 0!==e&&void 0!==typeof e?void 0!==t[e]?t[e]:e:t.backgroundLight}),(function(n){var t=n.top;return"".concat(t," auto auto auto")}),(function(n){return n.width}),(function(n){return n.maxWidth})),f=s.default(o.Button)(u||(u=n.__makeTemplateObject(["\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}));exports.Background=p,exports.CloseButton=f,exports.Content=c,exports.Wrapper=l;
2
2
  //# sourceMappingURL=styles.js.map
@@ -8,11 +8,13 @@ export declare type CarouselProps = {
8
8
  shrinkUnselectedPages?: boolean;
9
9
  /** childrent item of the carousel */
10
10
  children?: ReactNode;
11
+ /** set carousel image to full width of parent */
12
+ fullWidthChild?: boolean;
11
13
  };
12
14
  /**
13
15
  *
14
16
  * Light weight carousel component that works with mouse and touch events, will work with divs and much anything you chuck in children
15
17
  */
16
- export declare const Carousel: ({ startPosition, children, onPositionChanged, shrinkUnselectedPages, }: CarouselProps) => JSX.Element;
17
- declare const _default: React.MemoExoticComponent<({ startPosition, children, onPositionChanged, shrinkUnselectedPages, }: CarouselProps) => JSX.Element>;
18
+ export declare const Carousel: ({ startPosition, children, onPositionChanged, shrinkUnselectedPages, fullWidthChild, }: CarouselProps) => JSX.Element;
19
+ declare const _default: React.MemoExoticComponent<({ startPosition, children, onPositionChanged, shrinkUnselectedPages, fullWidthChild, }: CarouselProps) => JSX.Element>;
18
20
  export default _default;
@@ -6,15 +6,18 @@ declare type ThemeProps = {
6
6
  declare type CarouselScrollAreaProps = {
7
7
  smoothScrolling: boolean;
8
8
  };
9
- export declare const CarouselScrollArea: import("styled-components").StyledComponent<"ul", any, CarouselScrollAreaProps, never>;
10
- export declare const CarouselCard: import("styled-components").StyledComponent<"li", any, {
9
+ declare type CarouselCardProps = {
11
10
  onlyChild: boolean;
12
- }, never>;
11
+ fullWidthChild: boolean;
12
+ };
13
13
  declare type CarouselCardInnerProps = {
14
14
  isSelected: boolean;
15
15
  shrinkUnselectedPages: boolean;
16
16
  onlyChild: boolean;
17
+ fullWidthChild: boolean;
17
18
  };
19
+ export declare const CarouselScrollArea: import("styled-components").StyledComponent<"ul", any, CarouselScrollAreaProps, never>;
20
+ export declare const CarouselCard: import("styled-components").StyledComponent<"li", any, CarouselCardProps, never>;
18
21
  export declare const CarouselCardInner: import("styled-components").StyledComponent<"div", any, CarouselCardInnerProps, never>;
19
22
  export declare const ButtonWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
20
23
  export declare const VerticalAlign: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -1,5 +1,6 @@
1
1
  import { ReactNode } from "react";
2
- export declare type ModalProps = {
2
+ import { SpacingProps } from "../Spacing";
3
+ export declare type ModalProps = SpacingProps & {
3
4
  /** modal name used for aria-label */
4
5
  modalName: string;
5
6
  /** callback function called on modal close */
@@ -14,6 +15,8 @@ export declare type ModalProps = {
14
15
  backgroundColor?: string;
15
16
  /** children components */
16
17
  children?: ReactNode;
18
+ /** width of modal */
19
+ width?: string;
17
20
  };
18
21
  /**
19
22
  *
@@ -25,5 +28,5 @@ export declare type ModalProps = {
25
28
  * ## Accessibility
26
29
  * - Once the Modal is appeared on the screen, the focus must be within the Modal container which will enable the screen readers to be able to navigate within the Modal. You may wish to hide the close button so that a user must click on another button to confirm a choice before the modal is closed. However closing with the 'ESC' key must always work, so the props which contains the function that allows the modal to close itself 'closeFunction' is always required.
27
30
  */
28
- declare const Modal: ({ modalName, closeFunction, showCloseButton, maxWidth, top, backgroundColor, children, }: ModalProps) => JSX.Element;
31
+ declare const Modal: ({ modalName, closeFunction, showCloseButton, maxWidth, top, backgroundColor, children, width, margin, marginHorizontal, marginVertical, marginTop, marginRight, marginBottom, marginLeft, padding, paddingHorizontal, paddingVertical, paddingTop, paddingRight, paddingBottom, paddingLeft, }: ModalProps) => JSX.Element;
29
32
  export default Modal;
@@ -1,8 +1,14 @@
1
1
  /// <reference types="react" />
2
+ import { ThemeType } from "../../types";
3
+ declare type ContentProps = {
4
+ backgroundColor?: string;
5
+ theme: ThemeType;
6
+ top: string;
7
+ width: string;
8
+ maxWidth: string;
9
+ };
2
10
  export declare const Background: import("styled-components").StyledComponent<"div", any, {}, never>;
3
11
  export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
4
- export declare const Content: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../Box").BoxProps>, any, {
5
- maxWidth: string;
6
- top: string;
7
- }, never>;
12
+ export declare const Content: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../Box").BoxProps>, any, ContentProps, never>;
8
13
  export declare const CloseButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("../Button").Props, "css" | "as" | keyof import("react").ButtonHTMLAttributes<HTMLElement> | "appearance" | "full" | "href" | "size" | "isIconButton"> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
14
+ export {};
@@ -3,5 +3,5 @@
3
3
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
4
4
  * Copyright 2022 Fonticons, Inc.
5
5
  */
6
- var c={prefix:"fas",iconName:"check",icon:[448,512,[10004,10003],"f00c","M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z"]},e={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z"]},i={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"]},o={prefix:"fas",iconName:"xmark",icon:[320,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"]},f=o;export{c as faCheck,e as faChevronDown,i as faChevronRight,f as faClose,o as faXmark};
6
+ var c={prefix:"fas",iconName:"caret-left",icon:[256,512,[],"f0d9","M137.4 406.6l-128-127.1C3.125 272.4 0 264.2 0 255.1s3.125-16.38 9.375-22.63l128-127.1c9.156-9.156 22.91-11.9 34.88-6.943S192 115.1 192 128v255.1c0 12.94-7.781 24.62-19.75 29.58S146.5 415.8 137.4 406.6z"]},e={prefix:"fas",iconName:"caret-right",icon:[256,512,[],"f0da","M118.6 105.4l128 127.1C252.9 239.6 256 247.8 256 255.1s-3.125 16.38-9.375 22.63l-128 127.1c-9.156 9.156-22.91 11.9-34.88 6.943S64 396.9 64 383.1V128c0-12.94 7.781-24.62 19.75-29.58S109.5 96.23 118.6 105.4z"]},i={prefix:"fas",iconName:"check",icon:[448,512,[10004,10003],"f00c","M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z"]},f={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z"]},o={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"]},a={prefix:"fas",iconName:"xmark",icon:[320,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"]},l=a;export{c as faCaretLeft,e as faCaretRight,i as faCheck,f as faChevronDown,o as faChevronRight,l as faClose,a as faXmark};
7
7
  //# sourceMappingURL=index.es.js.map