@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.
- package/lib/cjs/node_modules/@fortawesome/free-solid-svg-icons/index.es.js +1 -1
- package/lib/cjs/node_modules/@fortawesome/free-solid-svg-icons/index.es.js.map +1 -1
- package/lib/cjs/src/components/Carousel/Dots.js +1 -1
- package/lib/cjs/src/components/Carousel/index.js +1 -1
- package/lib/cjs/src/components/Carousel/styles.js +1 -1
- package/lib/cjs/src/components/Modal/README.md.js +1 -1
- package/lib/cjs/src/components/Modal/README.md.js.map +1 -1
- package/lib/cjs/src/components/Modal/index.js +1 -1
- package/lib/cjs/src/components/Modal/styles.js +1 -1
- package/lib/components/Carousel/index.d.ts +4 -2
- package/lib/components/Carousel/styles.d.ts +6 -3
- package/lib/components/Modal/index.d.ts +5 -2
- package/lib/components/Modal/styles.d.ts +10 -4
- package/lib/es/node_modules/@fortawesome/free-solid-svg-icons/index.es.js +1 -1
- package/lib/es/node_modules/@fortawesome/free-solid-svg-icons/index.es.js.map +1 -1
- package/lib/es/src/components/Carousel/Dots.js +1 -1
- package/lib/es/src/components/Carousel/index.js +1 -1
- package/lib/es/src/components/Carousel/styles.js +1 -1
- package/lib/es/src/components/Modal/README.md.js +1 -1
- package/lib/es/src/components/Modal/README.md.js.map +1 -1
- package/lib/es/src/components/Modal/index.js +1 -1
- package/lib/es/src/components/Modal/styles.js +1 -1
- package/package.json +2 -2
- package/CHANGELOG.md +0 -239
|
@@ -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
|
|
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"),
|
|
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){
|
|
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="IyBNb2RhbAoKVXNlIGEgbW9kYWwgdG8gZGlzcGxheSBjb250ZW50IG92ZXIgdG9wIG9mIHRoZSByZXN0IG9mIHRoZSBzaXRlIHdoaWNoIG11c3QgYmUgaW50ZXJhY3RlZCB3aXRoIGJlZm9yZSB0aGUgdXNlciBjYW4gY29udGludWUuCgojIyBIb3cgbW9kYWxzIHdvcmsKCi0gTW9kYWxzIGFyZSBwb3NpdGlvbmVkIG92ZXIgZXZlcnl0aGluZyBlbHNlIGluIHRoZSBkb2N1bWVudCBhbmQgcmVtb3ZlIHNjcm9sbCBmcm9tIHRoZSAiYm9keSIgdGFnIHNvIHRoYXQgbW9kYWwgY29udGVudCBzY3JvbGxzIGluc3RlYWQuCi0gTW9kYWxzIGFyZSB1bm1vdW50ZWQgd2hlbiBjbG9zZWQuCi0gTW9kYWwncyAidHJhcCIgZm9jdXMgaW4gdGhlbSwgZW5zdXJpbmcgdGhlIGtleWJvYXJkIG5hdmlnYXRpb24gY3ljbGVzIHRocm91Z2ggdGhlIG1vZGFsLCBhbmQgbm90IHRoZSByZXN0IG9mIHRoZSBwYWdlLgoKIyMgQWNjZXNzaWJpbGl0eQoKLSBPbmNlIHRoZSBNb2RhbCBpcyBhcHBlYXJlZCBvbiB0aGUgc2NyZWVuLCB0aGUgZm9jdX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GVhcmFuY2U9InByaW1hcnkiIG9uQ2xpY2s9e3RvZ2dsZVNob3dNb2RhbH0+T0s8L0J1dHRvbj4KICAgICAgICA8L01vZGFsPgogICAgICB9CiAgICA8Lz4KICApOwp9CmBgYAoKfCBOYW1lICAgICAgICAgICAgICB8IFR5cGUgICAgICB8IERlZmF1bHQgfCBEZXNjcmlwdGlvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgOi0tLS0tLS0tLS0tLS0tLS0gfCA6LS0tLS0tLS0gfCA6LS0tLS0tIHwgOi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0gfAp8IGNsb3NlRnVuY3Rpb24gICAgIHwgZnVuY3Rpb24gIHwgbnVsbCAgICB8IChSZXF1aXJlZCkgZnVuY3Rpb24gdXNlZCB0byBjbG9zZSB0aGUgbW9kYWwgb24gZXNjYXBlIGtleSBwcmVzcyBhbmQgY2xvc2Ugb3IgY2xvc2UgYnV0dG9uIHByZXNzIHwKfCBtYXhXaWR0aCAgICAgICAgICB8IHN0cmluZyAgICB8IDUwMHB4ICAgfCBNYXggd2lkdGggb2YgbW9kYWwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cnwgd2lkdGggICAgICAgICAgICAgfCBzdHJpbmcgICAgfCA1MDBweCAgIHwgd2lkdGggb2YgbW9kYWwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHRvcCAgICAgICAgICAgICAgIHwgc3RyaW5nICAgIHwgMXJlbSAgICB8IEhlaWdodCBmcm9tIHRvcCBvZiBjb250YWluZXIgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBjaGlsZHJlbiAgICAgICAgICB8IEFueSAgICAgICB8ICAgICAgICAgfCBBbnkgY29udGVudCB0byBiZSBkaXNwbGF5ZWQgaW4gbW9kYWwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cnwgc2hvd0Nsb3NlQnV0dG9uICAgfCBCb29sZWFuICAgfCB0cnVlICAgIHwgVG9nZ2xlcyB2aXNpYmlsaXR5IG9mIG1vZGFsIGNsb3NlIGJ1dHRvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG1hcmdpbiAgICAgICAgICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IG1hcmdpbiB0b3AsIGJvdHRvbSwgbGVmdCBhbmQgcmlnaHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBtYXJnaW5WZXJ0aWNhbCAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBtYXJnaW4gdG9wIGFuZCBib3R0b20gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgbWFyZ2luSG9yaXpvbnRhbCAgfCBTcGFjZVR5cGUgfCB1bnNldCAgIHwgbWFyZ2luIGxlZnQgYW5kIHJpZ2h0ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG1hcmdpblRvcCAgICAgICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IG1hcmdpbiB0b3AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBtYXJnaW5SaWdodCAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBtYXJnaW4gcmlnaHQgcmlnaHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgbWFyZ2luQm90dG9tICAgICAgfCBTcGFjZVR5cGUgfCAneHMnICAgIHwgbWFyZ2luIGJvdHRvbSBib3R0b20gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG1hcmdpbkxlZnQgICAgICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IG1hcmdpbiBsZWZ0IGxlZnQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBwYWRkaW5nICAgICAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBwYWRkaW5nIHRvcCwgYm90dG9tLCBsZWZ0IGFuZCByaWdodCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgcGFkZGluZ1ZlcnRpY2FsICAgfCBTcGFjZVR5cGUgfCB1bnNldCAgIHwgcGFkZGluZyB0b3AgYW5kIGJvdHRvbSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHBhZGRpbmdIb3Jpem9udGFsIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IHBhZGRpbmcgbGVmdCBhbmQgcmlnaHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBwYWRkaW5nVG9wICAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBwYWRkaW5nIHRvcCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgcGFkZGluZ1JpZ2h0ICAgICAgfCBTcGFjZVR5cGUgfCB1bnNldCAgIHwgcGFkZGluZyByaWdodCByaWdodCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHBhZGRpbmdCb3R0b20gICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IHBhZGRpbmcgYm90dG9tIGJvdHRvbSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBwYWRkaW5nTGVmdCAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBwYWRkaW5nIGxlZnQgbGVmdCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CgojIyBBY2Nlc3NpYmlsaXR5CgpXaGVuIGl0IGNvbWVzIHRvIG1vZGFsIGRpYWxvZ3MsIGNvbnNpZGVyIHRoaXM6IG5vIG9uZSBsaWtlcyB0byBiZSBpbnRlcnJ1cHRlZCwgYnV0IGlmIHlvdSBtdXN0LCBtYWtlIHN1cmUgaXTigJlzIHdvcnRoIHRoZSBjb3N0LgoKVXNlIG1vZGFsIGRpYWxvZ3MgZm9yIGltcG9ydGFudCB3YXJuaW5ncywgYXMgYSB3YXkgdG8gcHJldmVudCBvciBjb3JyZWN0IGNyaXRpY2FsIGVycm9ycy4KVXNlIG1vZGFsIGRpYWxvZ3MgdG8gcmVxdWVzdCB0aGUgdXNlciB0byBlbnRlciBpbmZvcm1hdGlvbiBjcml0aWNhbCB0byBjb250aW51aW5nIHRoZSBjdXJyZW50IHByb2Nlc3MuCk1vZGFsIGRpYWxvZ3MgY2FuIGJlIHVzZWQgdG8gZnJhZ21lbnQgYSBjb21wbGV4IHdvcmtmbG93IGludG8gc2ltcGxlciBzdGVwcy4KRG8gbm90IHVzZSBtb2RhbCBkaWFsb2dzIGZvciBub25lc3NlbnRpYWwgaW5mb3JtYXRpb24gdGhhdCBpcyBub3QgcmVsYXRlZCB0byB0aGUgY3VycmVudCB1c2VyIGZsb3cuCg==";
|
|
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 \"IyBNb2RhbAoKVXNlIGEgbW9kYWwgdG8gZGlzcGxheSBjb250ZW50IG92ZXIgdG9wIG9mIHRoZSByZXN0IG9mIHRoZSBzaXRlIHdoaWNoIG11c3QgYmUgaW50ZXJhY3RlZCB3aXRoIGJlZm9yZSB0aGUgdXNlciBjYW4gY29udGludWUuCgojIyBIb3cgbW9kYWxzIHdvcmsKCi0gTW9kYWxzIGFyZSBwb3NpdGlvbmVkIG92ZXIgZXZlcnl0aGluZyBlbHNlIGluIHRoZSBkb2N1bWVudCBhbmQgcmVtb3ZlIHNjcm9sbCBmcm9tIHRoZSAiYm9keSIgdGFnIHNvIHRoYXQgbW9kYWwgY29udGVudCBzY3JvbGxzIGluc3RlYWQuCi0gTW9kYWxzIGFyZSB1bm1vdW50ZWQgd2hlbiBjbG9zZWQuCi0gTW9kYWwncyAidHJhcCIgZm9jdXMgaW4gdGhlbSwgZW5zdXJpbmcgdGhlIGtleWJvYXJkIG5hdmlnYXRpb24gY3ljbGVzIHRocm91Z2ggdGhlIG1vZGFsLCBhbmQgbm90IHRoZSByZXN0IG9mIHRoZSBwYWdlLgoKIyMgQWNjZXNzaWJpbGl0eQoKLSBPbmNlIHRoZSBNb2RhbCBpcyBhcHBlYXJl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oMiBtYXJnaW5Ub3A9J25vbmUnIHRleHRTaXplPSJ4bCI+TW9kYWwgdGl0bGU8L0hlYWRpbmc+CiAgICAgICAgICA8cD5Tb21lIHJlYWxseSBpbXBvcnRhbnQgaW5mb3JtYXRpb248L3A+CiAgICAgICAgICA8QnV0dG9uIGFwcGVhcmFuY2U9InByaW1hcnkiIG9uQ2xpY2s9e3RvZ2dsZVNob3dNb2RhbH0+
|
|
1
|
+
{"version":3,"file":"README.md.js","sources":["../../../../../src/components/Modal/README.md"],"sourcesContent":["export default \"IyBNb2RhbAoKVXNlIGEgbW9kYWwgdG8gZGlzcGxheSBjb250ZW50IG92ZXIgdG9wIG9mIHRoZSByZXN0IG9mIHRoZSBzaXRlIHdoaWNoIG11c3QgYmUgaW50ZXJhY3RlZCB3aXRoIGJlZm9yZSB0aGUgdXNlciBjYW4gY29udGludWUuCgojIyBIb3cgbW9kYWxzIHdvcmsKCi0gTW9kYWxzIGFyZSBwb3NpdGlvbmVkIG92ZXIgZXZlcnl0aGluZyBlbHNlIGluIHRoZSBkb2N1bWVudCBhbmQgcmVtb3ZlIHNjcm9sbCBmcm9tIHRoZSAiYm9keSIgdGFnIHNvIHRoYXQgbW9kYWwgY29udGVudCBzY3JvbGxzIGluc3RlYWQuCi0gTW9kYWxzIGFyZSB1bm1vdW50ZWQgd2hlbiBjbG9zZWQuCi0gTW9kYWwncyAidHJhcCIgZm9jdXMgaW4gdGhlbSwgZW5zdXJpbmcgdGhlIGtleWJvYXJkIG5hdmlnYXRpb24gY3ljbGVzIHRocm91Z2ggdGhlIG1vZGFsLCBhbmQgbm90IHRoZSByZXN0IG9mIHRoZSBwYWdlLgoKIyMgQWNjZXNzaWJpbGl0eQoKLSBPbmNlIHRoZSBNb2RhbCBpcyBhcHBlYXJlZCBvbiB0aGUgc2NyZWVuLCB0aGUgZm9jdXMgbXVzdCBiZSB3aXRoaW4gdGhlIE1vZGFsIGNvbnRhaW5lciB3aGljaCB3aWxsIGVuYWJsZSB0aGU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nRhbnQgaW5mb3JtYXRpb248L3A+CiAgICAgICAgICA8QnV0dG9uIGFwcGVhcmFuY2U9InByaW1hcnkiIG9uQ2xpY2s9e3RvZ2dsZVNob3dNb2RhbH0+T0s8L0J1dHRvbj4KICAgICAgICA8L01vZGFsPgogICAgICB9CiAgICA8Lz4KICApOwp9CmBgYAoKfCBOYW1lICAgICAgICAgICAgICB8IFR5cGUgICAgICB8IERlZmF1bHQgfCBEZXNjcmlwdGlvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgOi0tLS0tLS0tLS0tLS0tLS0gfCA6LS0tLS0tLS0gfCA6LS0tLS0tIHwgOi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0gfAp8IGNsb3NlRnVuY3Rpb24gICAgIHwgZnVuY3Rpb24gIHwgbnVsbCAgICB8IChSZXF1aXJlZCkgZnVuY3Rpb24gdXNlZCB0byBjbG9zZSB0aGUgbW9kYWwgb24gZXNjYXBlIGtleSBwcmVzcyBhbmQgY2xvc2Ugb3IgY2xvc2UgYnV0dG9uIHByZXNzIHwKfCBtYXhXaWR0aCAgICAgICAgICB8IHN0cmluZyAgICB8IDUwMHB4ICAgfCBNYXggd2lkdGggb2YgbW9kYWwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cnwgd2lkdGggICAgICAgICAgICAgfCBzdHJpbmcgICAgfCA1MDBweCAgIHwgd2lkdGggb2YgbW9kYWwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHRvcCAgICAgICAgICAgICAgIHwgc3RyaW5nICAgIHwgMXJlbSAgICB8IEhlaWdodCBmcm9tIHRvcCBvZiBjb250YWluZXIgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBjaGlsZHJlbiAgICAgICAgICB8IEFueSAgICAgICB8ICAgICAgICAgfCBBbnkgY29udGVudCB0byBiZSBkaXNwbGF5ZWQgaW4gbW9kYWwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cnwgc2hvd0Nsb3NlQnV0dG9uICAgfCBCb29sZWFuICAgfCB0cnVlICAgIHwgVG9nZ2xlcyB2aXNpYmlsaXR5IG9mIG1vZGFsIGNsb3NlIGJ1dHRvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG1hcmdpbiAgICAgICAgICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IG1hcmdpbiB0b3AsIGJvdHRvbSwgbGVmdCBhbmQgcmlnaHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBtYXJnaW5WZXJ0aWNhbCAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBtYXJnaW4gdG9wIGFuZCBib3R0b20gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgbWFyZ2luSG9yaXpvbnRhbCAgfCBTcGFjZVR5cGUgfCB1bnNldCAgIHwgbWFyZ2luIGxlZnQgYW5kIHJpZ2h0ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG1hcmdpblRvcCAgICAgICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IG1hcmdpbiB0b3AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBtYXJnaW5SaWdodCAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBtYXJnaW4gcmlnaHQgcmlnaHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgbWFyZ2luQm90dG9tICAgICAgfCBTcGFjZVR5cGUgfCAneHMnICAgIHwgbWFyZ2luIGJvdHRvbSBib3R0b20gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG1hcmdpbkxlZnQgICAgICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IG1hcmdpbiBsZWZ0IGxlZnQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBwYWRkaW5nICAgICAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBwYWRkaW5nIHRvcCwgYm90dG9tLCBsZWZ0IGFuZCByaWdodCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgcGFkZGluZ1ZlcnRpY2FsICAgfCBTcGFjZVR5cGUgfCB1bnNldCAgIHwgcGFkZGluZyB0b3AgYW5kIGJvdHRvbSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHBhZGRpbmdIb3Jpem9udGFsIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IHBhZGRpbmcgbGVmdCBhbmQgcmlnaHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBwYWRkaW5nVG9wICAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBwYWRkaW5nIHRvcCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgcGFkZGluZ1JpZ2h0ICAgICAgfCBTcGFjZVR5cGUgfCB1bnNldCAgIHwgcGFkZGluZyByaWdodCByaWdodCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHBhZGRpbmdCb3R0b20gICAgIHwgU3BhY2VUeXBlIHwgdW5zZXQgICB8IHBhZGRpbmcgYm90dG9tIGJvdHRvbSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBwYWRkaW5nTGVmdCAgICAgICB8IFNwYWNlVHlwZSB8IHVuc2V0ICAgfCBwYWRkaW5nIGxlZnQgbGVmdCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CgojIyBBY2Nlc3NpYmlsaXR5CgpXaGVuIGl0IGNvbWVzIHRvIG1vZGFsIGRpYWxvZ3MsIGNvbnNpZGVyIHRoaXM6IG5vIG9uZSBsaWtlcyB0byBiZSBpbnRlcnJ1cHRlZCwgYnV0IGlmIHlvdSBtdXN0LCBtYWtlIHN1cmUgaXTigJlzIHdvcnRoIHRoZSBjb3N0LgoKVXNlIG1vZGFsIGRpYWxvZ3MgZm9yIGltcG9ydGFudCB3YXJuaW5ncywgYXMgYSB3YXkgdG8gcHJldmVudCBvciBjb3JyZWN0IGNyaXRpY2FsIGVycm9ycy4KVXNlIG1vZGFsIGRpYWxvZ3MgdG8gcmVxdWVzdCB0aGUgdXNlciB0byBlbnRlciBpbmZvcm1hdGlvbiBjcml0aWNhbCB0byBjb250aW51aW5nIHRoZSBjdXJyZW50IHByb2Nlc3MuCk1vZGFsIGRpYWxvZ3MgY2FuIGJlIHVzZWQgdG8gZnJhZ21lbnQgYSBjb21wbGV4IHdvcmtmbG93IGludG8gc2ltcGxlciBzdGVwcy4KRG8gbm90IHVzZSBtb2RhbCBkaWFsb2dzIGZvciBub25lc3NlbnRpYWwgaW5mb3JtYXRpb24gdGhhdCBpcyBub3QgcmVsYXRlZCB0byB0aGUgY3VycmVudCB1c2VyIGZsb3cuCg==\""],"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"),
|
|
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})),
|
|
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
|
-
|
|
10
|
-
export declare const CarouselCard: import("styled-components").StyledComponent<"li", any, {
|
|
9
|
+
declare type CarouselCardProps = {
|
|
11
10
|
onlyChild: boolean;
|
|
12
|
-
|
|
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
|
-
|
|
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"]},
|
|
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
|