@cruk/cruk-react-components 1.1.0 → 1.1.3
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/src/components/Avatar/index.js +1 -1
- package/lib/cjs/src/components/GlobalStyle.js +1 -1
- package/lib/cjs/src/components/Link/README.md.js +1 -1
- package/lib/cjs/src/components/Link/README.md.js.map +1 -1
- package/lib/cjs/src/components/Totaliser/styles.js +1 -1
- package/lib/cjs/src/components/UserBlock/styles.js +1 -1
- package/lib/cjs/src/themes/cruk.js +1 -1
- package/lib/cjs/src/themes/su2c.js +1 -1
- package/lib/components/AddressLookup/index.d.ts +27 -2
- package/lib/components/Avatar/index.d.ts +2 -2
- package/lib/components/Badge/index.d.ts +2 -2
- package/lib/components/Box/index.d.ts +4 -1
- package/lib/components/Button/index.d.ts +24 -3
- package/lib/components/Collapse/styles.d.ts +11 -1
- package/lib/components/Header/index.d.ts +3 -2
- package/lib/components/Heading/index.d.ts +3 -3
- package/lib/components/Icon/index.d.ts +2 -2
- package/lib/components/Link/index.d.ts +27 -3
- package/lib/components/Modal/styles.d.ts +11 -1
- package/lib/components/Totaliser/index.d.ts +4 -2
- package/lib/components/UserBlock/index.d.ts +2 -2
- package/lib/es/src/components/Avatar/index.js +1 -1
- package/lib/es/src/components/GlobalStyle.js +1 -1
- package/lib/es/src/components/Link/README.md.js +1 -1
- package/lib/es/src/components/Link/README.md.js.map +1 -1
- package/lib/es/src/components/Totaliser/styles.js +1 -1
- package/lib/es/src/components/UserBlock/styles.js +1 -1
- package/lib/es/src/themes/cruk.js +1 -1
- package/lib/es/src/themes/su2c.js +1 -1
- package/lib/types.d.ts +2 -1
- package/package.json +12 -10
|
@@ -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"),r=require("styled-components"),a=require("../../themes/cruk.js"),n=require("./styles.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=s(t);exports.default=function(t){var s=t.url,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../node_modules/tslib/tslib.es6.js"),t=require("react"),r=require("styled-components"),a=require("../../themes/cruk.js"),n=require("./styles.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=s(t);exports.default=function(t){var s=t.url,u=t.name,o=t.size,c=void 0===o?"m":o,l=t.alt,d=void 0===l?"":l,m=e.__rest(t,["url","name","size","alt"]),f=r.useTheme(),v=e.__assign(e.__assign({},a.default),f);return i.default.createElement(n.StyledAvatar,e.__assign({},m,{size:v.avatar[c||"m"],src:function(){if(s)return s;var e=u&&"string"==typeof u&&"Anonymous"!==u&&/[a-z]/i.exec(u[0].trim())?"icon-avatar-".concat(u[0].trim().toUpperCase(),".png"):"icon-avatar-Anonymous.png";return"".concat(v.avatar.path).concat(e)}(),alt:d}))};
|
|
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"),o=require("styled-components"),t=require("../themes/cruk.js"),e=o.createGlobalStyle(i||(i=n.__makeTemplateObject(["\n ","\n *, *:after, *:before {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n }\n \n @media (prefers-reduced-motion: reduce) {\n *, *:after, *:before {\n animation-play-state: paused !important;\n animation-direction: reverse !important;\n transition: none !important;\n scroll-behavior: auto !important;\n }\n }\n\n table, td, th {\n border-spacing: 0;\n border: 1px solid #ccc;\n padding: 10px;\n }\n .no-focus-outline a:focus,\n .no-focus-outline button:focus {\n outline: none;\n }\n img {\n width: 100%;\n height: auto;\n }\n section {\n width: 100%;\n }\n button {\n font-size: 1em;\n }\n"],["\n ","\n *, *:after, *:before {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n }\n \n @media (prefers-reduced-motion: reduce) {\n *, *:after, *:before {\n animation-play-state: paused !important;\n animation-direction: reverse !important;\n transition: none !important;\n scroll-behavior: auto !important;\n }\n }\n\n table, td, th {\n border-spacing: 0;\n border: 1px solid #ccc;\n padding: 10px;\n }\n .no-focus-outline a:focus,\n .no-focus-outline button:focus {\n outline: none;\n }\n img {\n width: 100%;\n height: auto;\n }\n section {\n width: 100%;\n }\n button {\n font-size: 1em;\n }\n"])),(function(o){var e,i=n.__assign(n.__assign({},t.default),o.theme);return"\n ".concat((e=i.typography.customFonts,e.map((function(n){return"\n @font-face {\n font-family: ".concat(n.family,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("../../node_modules/tslib/tslib.es6.js"),o=require("styled-components"),t=require("../themes/cruk.js"),e=o.createGlobalStyle(i||(i=n.__makeTemplateObject(["\n ","\n *, *:after, *:before {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n }\n \n @media (prefers-reduced-motion: reduce) {\n *, *:after, *:before {\n animation-play-state: paused !important;\n animation-direction: reverse !important;\n transition: none !important;\n scroll-behavior: auto !important;\n }\n }\n\n table, td, th {\n border-spacing: 0;\n border: 1px solid #ccc;\n padding: 10px;\n }\n .no-focus-outline a:focus,\n .no-focus-outline button:focus {\n outline: none;\n }\n img {\n width: 100%;\n height: auto;\n }\n section {\n width: 100%;\n }\n button {\n font-size: 1em;\n }\n"],["\n ","\n *, *:after, *:before {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n }\n \n @media (prefers-reduced-motion: reduce) {\n *, *:after, *:before {\n animation-play-state: paused !important;\n animation-direction: reverse !important;\n transition: none !important;\n scroll-behavior: auto !important;\n }\n }\n\n table, td, th {\n border-spacing: 0;\n border: 1px solid #ccc;\n padding: 10px;\n }\n .no-focus-outline a:focus,\n .no-focus-outline button:focus {\n outline: none;\n }\n img {\n width: 100%;\n height: auto;\n }\n section {\n width: 100%;\n }\n button {\n font-size: 1em;\n }\n"])),(function(o){var e,i=n.__assign(n.__assign({},t.default),o.theme);return"\n ".concat((e=i.typography.customFonts,e.map((function(n){return"\n @font-face {\n font-family: ".concat(n.family,";\n src: ").concat((null==n?void 0:n.urlWoff2)?'url("'.concat(n.urlWoff2,"\") format('woff2')"):"").concat(n.urlWoff&&(null==n?void 0:n.urlWoff2)?", ":"","\n ").concat((null==n?void 0:n.urlWoff)?'url("'.concat(n.urlWoff,"\") format('woff')"):"",";\n font-weight: normal;\n font-style: normal;\n font-display: fallback;\n }\n ")})).join("")),"\n html {\n font-size: ").concat(i.typography.fontSizeBase,";\n font-family: ").concat(i.typography.fontFamilyBase,";\n line-height: ").concat(i.typography.lineHeight,";\n }\n body {\n background-color: ").concat(i.colors.backgroundMid,";\n color: ").concat(i.colors.textDark,";\n margin: 0;\n padding: 0;\n overflow-x: hidden;\n -webkit-text-size-adjust: 100%;\n -moz-text-size-adjust: none;\n -ms-text-size-adjust: 100%;\n }\n ")}));e.defaultProps={theme:t.default};var i,r=o.withTheme(e);exports.default=r;
|
|
2
2
|
//# sourceMappingURL=GlobalStyle.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default="IyBMaW5rCgpMaW5rcyBhcmUgZm9yIHdyYXBwaW5nIHBsYWluIHRleHQgb3IgZWxlbWVudHMgdG8gY3JlYXRlIGNsaWNrYWJsZSBsaW5rLiBUaGlzIGlzIHRvIGJlIHRyZWF0ZWQgYXMgYW4gYW5jaG9yIHRhZyB3aXRoIHRoZSBhZGRpdGlvbiBvZiB0aGUgVGV4dCBjb21wb25lbnQgQVBJLiBUaGlzIGNvbXBvbmVudCBjb250YWlucyBzdGFuZGFyZCBBbmNob3IgdGFnIHByb3BzIGxpa2UgJ2hyZWYnIGFuZCAndGFyZ2V0JywgYnV0IGl0IGFsc28gY29udGFpbnMgVGV4dCBjb21wb25lbnQgcHJvcHMgbGlrZSAndGV4dENvbG9yJyBhbmQgJ3RleHRBbGlnbicuIEEgbGluayBzaG91bGQgcmVhbGx5IG9ubHkgYmUgdXNlZCBmb3IgbmF2aWdhdGlvbiB0byB0YWtlIGEgdXNlciB0byBhcyBuZXcgbG9jYXRpb24uIFRoZSBvbkNsaWNrIGhhbmRsZXIgY2FuIGJlIHVzZSBmb3IgbW9yZSBjb21wbGljYXRlZCBzY2VuYXJpb3MuIElmIHlvdSB3YW50IHNvbWV0aGluZyB0aGF0IGxvb2tzIGxpa2UgYSBsaW5rIGJ1dCBiZWhhdmVzIGxpa2UgYSBidXR0b24gaWUuIG5vdGhpbmcgdG8gZG8gd2l0aCBuYXZpZ2F0aW9uLCBwbGVhc2UgY29uc2lkZXIgdXNpbmcgYSBidXR0b24gd2l0aCBhcHBlYXJhbmNlIHNldCB0byAnbGluaycKCiMjIyBUcnkgaXQgb3V0CgpgYGAuanN4CiAgPD4KICAgIDxkaXY+CiAgICAgIDxMaW5rIGhyZWY9Imh0dHA6Ly93d3cuZ29vZ2xlLmNvbSI+RGVmYXVsdCBsaW5rPC9MaW5rPgogICAgPC9kaXY+CiAgICA8ZGl2PgogICAgICA8TGluayBocmVmPSJodHRwOi8vd3d3Lmdvb2dsZS5jb20iIGFwcGVhcmFuY2U9InByaW1hcnkiPlByaW1hcnkgbGluazwvTGluaz4KICAgIDwvZGl2PgogICAgPGRpdj4KICAgICAgPExpbmsgaHJlZj0iaHR0cDovL3d3dy5nb29nbGUuY29tIiBhcHBlYXJhbmNlPSJzZWNvbmRhcnkiPnNlY29uZGFyeSBsaW5rPC9MaW5rPgogICAgPC9kaXY+
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default="IyBMaW5rCgpMaW5rcyBhcmUgZm9yIHdyYXBwaW5nIHBsYWluIHRleHQgb3IgZWxlbWVudHMgdG8gY3JlYXRlIGNsaWNrYWJsZSBsaW5rLiBUaGlzIGlzIHRvIGJlIHRyZWF0ZWQgYXMgYW4gYW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ZGFyeSBsaW5rPC9MaW5rPgogICAgPC9kaXY+CiAgICA8ZGl2PgogICAgPExpbmsgaHJlZj0iaHR0cDovL3d3dy5nb29nbGUuY29tIiBhcmlhLWxhYmVsPSJnb29nbGUgaG9tZXBhZ2UiPjxpbWcgc3R5bGU9e3t3aWR0aDogJzgwcHgnLCBoZWlnaHQ6ICczMHB4J319IGFsdD0iIiBzcmM9J2h0dHBzOi8vcmNsLmFzc2V0cy5jYW5jZXJyZXNlYXJjaHVrLm9yZy9pbWFnZXMvbG9nb3MvY3J1ay0xNjAucG5nJy8+PC9MaW5rPgogICAgPC9kaXY+CiAgPC8+CmBgYAoKIyMgUHJvcHMKCnwgTmFtZSAgICAgICAgICAgfCBUeXBlICAgICAgICAgICAgICAgICAgICAgICB8IE9wdGlvbnMgfCBEZWZhdWx0ICAgICAgICAgICAgICAgfCBEZXNjcmlwdGlvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgOi0tLS0tLS0tLS0tLS0gfCA6LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSB8IDotLS0tLTogfCA6LS0tLS0tLS0tLS0tLS0tLS0tLS0gfCA6LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSB8CnwgaHJlZiAgICAgICAgICAgfCBzdHJpbmcgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgfCBVUkwgb2YgbGluayAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgdGFyZ2V0ICAgICAgICAgfCBzdHJpbmcgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAnXF9zZWxmJyAgICAgICAgICAgICAgfCBIb3cgdGhlIGxpbmsgb3BlbnMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgYXJpYS1sYWJlbCAgICAgfCBzdHJpbmcgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgfCBUaGlzIHNob3VsZCBiZSB1c2VkIHdoZW4gdGhlcmUgaXMgbm8gdGV4dCBpbiB0aGUgbGluayB0byBkZXNjcmliZSB3aGVyZSBpdCBpcyBnb2luZyB8CnwgcmVsICAgICAgICAgICAgfCBzdHJpbmcgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAibm9vcGVuZXIgbm9yZWZlcnJlciIgfCBSZWxhdGlvbnNoaXAgd2l0aCB0aGUgbGluayBhbmQgdGhlIGN1cnJlbnQgcGFnZSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgYXBwZWFyYW5jZSAgICAgfCBudWxsIC8gcHJpbWFyeSAvIHNlY29uZGFyeSB8ICAgICAgICAgfCBudWxsICAgICAgICAgICAgICAgICAgfCBEZWZhdWx0LCBwcmltYXJ5IG9yIHNlY29uZGFyeSBsaW5rIGFwcGVhcmFuY2UgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cnwgb25DbGljayAgICAgICAgfCBmdW5jdGlvbiAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgfCBPbiBjbGljayBoYW5kbGVyIGZ1bmN0aW9uICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgdGV4dENvbG9yICAgICAgfCBzdHJpbmcgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAnY3VycmVudENvbG9yJyAgICAgICAgfCBDb2xvciBvZiB0ZXh0LCB3aWxsIHdvcmsgd2l0aCB0aGVtZSBjb2xvdXIgbmFtZXMgYW5kIGhleCBzdHJpbmdzICAgICAgICAgICAgICAgICAgICB8CnwgdGV4dEhvdmVyQ29sb3IgfCBzdHJpbmcgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAnY3VycmVudENvbG9yJyAgICAgICAgfCBIb3ZlciBjb2xvciBvZiB0ZXh0ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgdGV4dEFsaWduICAgICAgfCAnbGVmdCcgLydyaWdodCcgLyAnY2VudGVyJyB8ICAgICAgICAgfCAnbGVmdCcgICAgICAgICAgICAgICAgfCBIb3Jpem9udGFsIHRleHQgYWxpZ25tZW50ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgdGV4dFNpemUgICAgICAgfCBGb250U2l6ZVR5cGUgICAgICAgICAgICAgICB8ICAgICAgICAgfCAnbScgICAgICAgICAgICAgICAgICAgfCBGb250IHNpemUgdXNlcyB0LXNoaXJ0IHNpemVzIG9mIHMvbS9sIGV0YyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgdGV4dFdlaWdodCAgICAgfCBudW1iZXIgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAnNTAwJyAgICAgICAgICAgICAgICAgfCBGb250IHdlaWdodCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cg==";
|
|
2
2
|
//# sourceMappingURL=README.md.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"README.md.js","sources":["../../../../../src/components/Link/README.md"],"sourcesContent":["export default \"IyBMaW5rCgpMaW5rcyBhcmUgZm9yIHdyYXBwaW5nIHBsYWluIHRleHQgb3IgZWxlbWVudHMgdG8gY3JlYXRlIGNsaWNrYWJsZSBsaW5rLiBUaGlzIGlzIH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JhbmNlPSJzZWNvbmRhcnkiPnNlY29uZGFyeSBsaW5rPC9MaW5rPgogICAgPC9kaXY+
|
|
1
|
+
{"version":3,"file":"README.md.js","sources":["../../../../../src/components/Link/README.md"],"sourcesContent":["export default \"IyBMaW5rCgpMaW5rcyBhcmUgZm9yIHdyYXBwaW5nIHBsYWluIHRleHQgb3IgZWxlbWVudHMgdG8gY3JlYXRlIGNsaWNrYWJsZSBsaW5rLiBUaGlzIGlzIHRvIGJlIHRyZWF0ZWQgYXMgYW4gYW5jaG9yIHRhZyB3aXRoIHRoZSBhZGRpdGlvbiBvZiB0aGUgVGV4dCBjb21wb25lbnQgQVBJLiBUaGlzIGNvbXBvbmVudCBjb250YWlucyBzdGFuZGFyZCBBbmNob3IgdGFnIHByb3BzIGxpa2UgJ2hyZWYnIGFuZCAndGFyZ2V0JywgYnV0IGl0IGFsc28gY29udGFpbnMgVGV4dCBjb21wb25lbnQgcHJvcHMgbGlrZSAndGV4dENvbG9yJyBhbmQgJ3RleHRBbGlnbicuIEEgbGluayBzaG91bGQgcmVhbGx5IG9ubHkgYmUgdXNlZCBmb3IgbmF2aWdhdGlvbiB0byB0YWtlIGEgdXNlciB0byBhcyBuZXcgbG9jYXRpb24uIFRoZSBvbkNsaWNrIGhhbmRsZXIgY2FuIGJlIHVzZSBmb3IgbW9yZSBjb21wbGljYXRlZCBzY2VuYXJpb3MuIElmIHlvdSB3YW50IHNvbWV0aGluZyB0aGF0IGxvb2tzIGxpa2UgYSBsaW5rIGJ1dCBiZWhhdmVzIGxpa2UgYSBidXR0b24gaWUuIG5vdGhpbmcgdG8gZG8gd2l0aCBuYXZpZ2F0aW9uLCBwbGVhc2UgY29uc2lkZXIgdXNpbmcgYSBidXR0b24gd2l0aCBhcHBlYXJhbmNlIHNldCB0byAnbGluaycKCiMjIyBUcnkgaXQgb3V0CgpgYGAuanN4CiAgPD4KICAgIDxkaXY+CiAgICAgIDxMaW5rIGhyZWY9Imh0dHA6Ly93d3cuZ29vZ2x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gaHJlZiAgICAgICAgICAgfCBzdHJpbmcgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgfCBVUkwgb2YgbGluayAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgdGFyZ2V0ICAgICAgICAgfCBzdHJpbmcgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAnXF9zZWxmJyAgICAgICAgICAgICAgfCBIb3cgdGhlIGxpbmsgb3BlbnMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgYXJpYS1sYWJlbCAgICAgfCBzdHJpbmcgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgfCBUaGlzIHNob3VsZCBiZSB1c2VkIHdoZW4gdGhlcmUgaXMgbm8gdGV4dCBpbiB0aGUgbGluayB0byBkZXNjcmliZSB3aGVyZSBpdCBpcyBnb2luZyB8CnwgcmVsICAgICAgICAgICAgfCBzdHJpbmcgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAibm9vcGVuZXIgbm9yZWZlcnJlciIgfCBSZWxhdGlvbnNoaXAgd2l0aCB0aGUgbGluayBhbmQgdGhlIGN1cnJlbnQgcGFnZSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgYXBwZWFyYW5jZSAgICAgfCBudWxsIC8gcHJpbWFyeSAvIHNlY29uZGFyeSB8ICAgICAgICAgfCBudWxsICAgICAgICAgICAgICAgICAgfCBEZWZhdWx0LCBwcmltYXJ5IG9yIHNlY29uZGFyeSBsaW5rIGFwcGVhcmFuY2UgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cnwgb25DbGljayAgICAgICAgfCBmdW5jdGlvbiAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgfCBPbiBjbGljayBoYW5kbGVyIGZ1bmN0aW9uICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgdGV4dENvbG9yICAgICAgfCBzdHJpbmcgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAnY3VycmVudENvbG9yJyAgICAgICAgfCBDb2xvciBvZiB0ZXh0LCB3aWxsIHdvcmsgd2l0aCB0aGVtZSBjb2xvdXIgbmFtZXMgYW5kIGhleCBzdHJpbmdzICAgICAgICAgICAgICAgICAgICB8CnwgdGV4dEhvdmVyQ29sb3IgfCBzdHJpbmcgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAnY3VycmVudENvbG9yJyAgICAgICAgfCBIb3ZlciBjb2xvciBvZiB0ZXh0ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgdGV4dEFsaWduICAgICAgfCAnbGVmdCcgLydyaWdodCcgLyAnY2VudGVyJyB8ICAgICAgICAgfCAnbGVmdCcgICAgICAgICAgICAgICAgfCBIb3Jpem9udGFsIHRleHQgYWxpZ25tZW50ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgdGV4dFNpemUgICAgICAgfCBGb250U2l6ZVR5cGUgICAgICAgICAgICAgICB8ICAgICAgICAgfCAnbScgICAgICAgICAgICAgICAgICAgfCBGb250IHNpemUgdXNlcyB0LXNoaXJ0IHNpemVzIG9mIHMvbS9sIGV0YyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgdGV4dFdlaWdodCAgICAgfCBudW1iZXIgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAnNTAwJyAgICAgICAgICAgICAgICAgfCBGb250IHdlaWdodCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cg==\""],"names":[],"mappings":"oFAAe"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("../../../node_modules/tslib/tslib.es6.js"),e=require("styled-components"),t=require("../ProgressBar/index.js");function r(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var o,a,i,l,p,m,s,f,c,u,d,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("../../../node_modules/tslib/tslib.es6.js"),e=require("styled-components"),t=require("../ProgressBar/index.js");function r(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var o,a,i,l,p,m,s,f,c,u,d,b=r(e),g=b.default.div(o||(o=n.__makeTemplateObject(["\n text-align: center;\n background-color: ",";\n border-radius: 3.2rem;\n padding: 5px;\n position: relative;\n p {\n margin: 0;\n }\n"],["\n text-align: center;\n background-color: ",";\n border-radius: 3.2rem;\n padding: 5px;\n position: relative;\n p {\n margin: 0;\n }\n"])),(function(n){return n.theme.colors.totaliserBubbleColor})),x=b.default.div(i||(i=n.__makeTemplateObject(["\n padding: 0 46px 12px;\n margin-top: ",";\n position: relative;\n\n ",";\n"],["\n padding: 0 46px 12px;\n margin-top: ",";\n position: relative;\n\n ",";\n"])),(function(n){return n.theme.spacing.s}),(function(t){return!0!=!!t.isCompact&&e.css(a||(a=n.__makeTemplateObject(['\n div > div > div:not(:first-child) {\n &:after {\n content: "\\25bc";\n color: ',";\n position: absolute;\n top: -30px;\n right: -15px;\n font-size: 32px;\n }\n }\n "],['\n div > div > div:not(:first-child) {\n &:after {\n content: "\\\\25bc";\n color: ',";\n position: absolute;\n top: -30px;\n right: -15px;\n font-size: 32px;\n }\n }\n "])),(function(n){return n.theme.colors.totaliserBubbleColor}))})),y=b.default.p(l||(l=n.__makeTemplateObject(["\n color: ",";\n font-size: 2.625rem;\n line-height: 3rem;\n font-family: ",";\n text-transform: ",";\n"],["\n color: ",";\n font-size: 2.625rem;\n line-height: 3rem;\n font-family: ",";\n text-transform: ",";\n"])),(function(n){return n.theme.colors.totaliserBubbleTotalColor}),(function(n){return n.theme.typography.fontFamilyHeadings}),(function(n){return n.theme.typography.headerTextTransform})),h=b.default.p(p||(p=n.__makeTemplateObject(["\n color: ",";\n font-family: ",";\n text-transform: ",";\n"],["\n color: ",";\n font-family: ",";\n text-transform: ",";\n"])),(function(n){return n.theme.colors.totaliserBubbleTextColor}),(function(n){return n.theme.typography.fontFamilyHeadings}),(function(n){return n.theme.typography.headerTextTransform})),_=b.default.p(m||(m=n.__makeTemplateObject(["\n color: ",";\n font-family: ",";\n text-transform: ",";\n"],["\n color: ",";\n font-family: ",";\n text-transform: ",";\n"])),(function(n){return n.theme.colors.totaliserBubbleTotalColor}),(function(n){return n.theme.typography.fontFamilyHeadings}),(function(n){return n.theme.typography.headerTextTransform})),T=b.default.span(s||(s=n.__makeTemplateObject(["\n display: block;\n text-align: right;\n margin-top: 12px;\n margin-bottom: 0;\n font-family: ",";\n"],["\n display: block;\n text-align: right;\n margin-top: 12px;\n margin-bottom: 0;\n font-family: ",";\n"])),(function(n){return n.theme.typography.fontFamilyBase})),j=b.default.div(c||(c=n.__makeTemplateObject(["\n font-family: ",";\n margin: 0;\n ","\n"],["\n font-family: ",";\n margin: 0;\n ","\n"])),(function(n){return n.theme.typography.fontFamilyHeadings}),(function(t){return t.isCompact&&e.css(f||(f=n.__makeTemplateObject(["\n "," {\n border: none;\n padding: 0;\n }\n "],["\n "," {\n border: none;\n padding: 0;\n }\n "])),x)})),v=b.default.div(u||(u=n.__makeTemplateObject(["\n justify-content: space-between;\n display: flex;\n"],["\n justify-content: space-between;\n display: flex;\n"]))),k=b.default(t.default)(d||(d=n.__makeTemplateObject([""],[""])));exports.BubbleText=h,exports.BubbleWrapper=g,exports.CompactWrapper=v,exports.GiftAid=_,exports.ProgressBarWrapper=x,exports.StyledProgressBar=k,exports.Summary=T,exports.Total=y,exports.TotaliserWrapper=j;
|
|
2
2
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../node_modules/tslib/tslib.es6.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t,r,a,o,i=n(require("styled-components")),l=i.default.div(t||(t=e.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: start;\n
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../node_modules/tslib/tslib.es6.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t,r,a,o,i=n(require("styled-components")),l=i.default.div(t||(t=e.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: start;\n flex: 1;\n"],["\n display: flex;\n align-items: center;\n justify-content: start;\n flex: 1;\n"]))),s=i.default.div(r||(r=e.__makeTemplateObject(["\n flex: 1;\n margin-left: ",";\n text-align: left;\n min-width: 0;\n"],["\n flex: 1;\n margin-left: ",";\n text-align: left;\n min-width: 0;\n"])),(function(e){return e.theme.spacing.xs})),f=i.default.div(a||(a=e.__makeTemplateObject(["\n font-family: ",";\n font-size: ",";\n white-space: normal;\n word-break: break-word;\n"],["\n font-family: ",";\n font-size: ",";\n white-space: normal;\n word-break: break-word;\n"])),(function(e){return e.theme.typography.fontFamilyHeadings}),(function(e){return e.theme.fontSizes.l})),m=i.default.div(o||(o=e.__makeTemplateObject(["\n color: ",";\n margin-top: 4px;\n white-space: normal;\n word-break: break-word;\n"],["\n color: ",";\n margin-top: 4px;\n white-space: normal;\n word-break: break-word;\n"])),(function(e){return e.theme.colors.userBlockExtraText}));exports.Details=s,exports.Extra=m,exports.Name=f,exports.StyledUserBlock=l;
|
|
2
2
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={contentMaxWidth:"1020px",useDefaultFocusRect:!0,useDefaultFromControls:!1,useBackgroundStyleLinks:!1,inputBorderWidth:"1px"},r={assetPath:"https://
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={contentMaxWidth:"1020px",useDefaultFocusRect:!0,useDefaultFromControls:!1,useBackgroundStyleLinks:!1,inputBorderWidth:"1px"},r={assetPath:"https://rcl.assets.cancerresearchuk.org/",logoUrl:"/",logoAlt:"Cancer Research UK Giving Page",logoSrc:"https://rcl.assets.cancerresearchuk.org/images/logos/cruk-160.png",footerCopyText:"Cancer Research UK is a registered charity in England and Wales (1089464), Scotland (SC041666), the Isle of Man (1103) and Jersey (247). A company limited by guarantee. Registered company in England and Wales(4325234) and the Isle of Man (5713F).",footerLogoAlt:"Registered with Fundraising Regulator",footerLogoSrc:"https://rcl.assets.cancerresearchuk.org/images/logos/fundreg.png"},a={s:"35px",m:"50px",l:"60px",xl:"90px",path:"".concat(r.assetPath,"images/avatar/cruk/")},t={borderRadius:"4px",borderRadiusLarge:"4px",buttonBorderThickness:"2px",textDecoration:"none",textTransform:"none"},o={mobile:"576px",tablet:"768px",desktop:"992px",desktopLarge:"1200px"},n={darkBlue_100:"#edeaf5",darkBlue_200:"#dad2ea",darkBlue_300:"#a896cf",darkBlue_500:"#2e008b",magenta_100:"#fdeaf5",magenta_500:"#e40087",magenta_800:"#BB0071",magenta_900:"#710044",cyan_500:"#00b6ed",cyan_900:"#005870",grey_100:"#f5f5f5",grey_200:"#ededed",grey_300:"#c6c6c6",grey_500:"#9A9A9A",grey_800:"#575757",grey_900:"#2e2d2c",white:"#fff",black:"#000",red:"#D51311",yellow:"#fdc02f",green:"#3d854d"},s={primary:n.darkBlue_500,secondary:n.magenta_500,tertiary:n.cyan_500,textOnPrimary:n.white,textOnSecondary:n.white,textOnTertiary:n.white,disabled:n.grey_300,danger:n.red,warning:n.yellow,success:n.green,info:n.cyan_500,textError:n.red,linkColor:n.darkBlue_500,linkColorHover:n.magenta_800,textDark:n.grey_900,textLight:n.white,progressBar:n.darkBlue_500,progressBarSecondary:n.magenta_500,progressBarBackground:n.grey_200,circularProgress:n.cyan_500,circularProgressSecondary:n.magenta_500,circularProgressBackground:n.grey_300,buttonPrimaryBackground:n.magenta_500,buttonPrimaryText:n.white,buttonPrimaryBorder:n.magenta_500,buttonPrimaryBackgroundHover:n.magenta_800,buttonPrimaryTextHover:n.white,buttonPrimaryBorderHover:n.magenta_800,buttonPrimaryDisabledBackground:n.grey_100,buttonPrimaryDisabledText:n.grey_500,buttonPrimaryDisabledBorder:n.grey_100,buttonSecondaryBackground:n.white,buttonSecondaryText:n.magenta_500,buttonSecondaryBorder:n.magenta_500,buttonSecondaryBackgroundHover:n.magenta_100,buttonSecondaryTextHover:n.magenta_800,buttonSecondaryBorderHover:n.magenta_800,buttonSecondaryDisabledBackground:n.grey_100,buttonSecondaryDisabledText:n.grey_500,buttonSecondaryDisabledBorder:n.grey_100,buttonTertiaryText:n.magenta_500,buttonTertiaryTextHover:n.magenta_800,buttonTertiaryDisabledText:n.grey_500,selectionBorder:n.grey_500,textInputBorder:n.grey_900,inputBorder:n.grey_900,headerBackground:n.white,backgroundLight:n.white,backgroundLightColor:n.darkBlue_200,backgroundMid:n.grey_100,loaderColor1:n.darkBlue_500,loaderColor2:n.magenta_500,loaderColor3:n.cyan_500,paginationText:n.darkBlue_500,paginationActive:n.grey_300,paginationBackground:n.darkBlue_500,footerBackground:n.grey_200,headerBorder:n.grey_300,stepBorder:n.grey_300,stepBackground:n.white,popoverBackground:n.white,textInputExtraInfo:n.grey_200,totaliserBubbleColor:n.grey_200,totaliserBubbleTextColor:n.grey_900,totaliserBubbleTotalColor:n.darkBlue_500,selectBackground:n.grey_900,modalBackdrop:n.grey_900,userBlockExtraText:n.grey_800},g={none:"0",auto:"auto",xxs:"0.5rem",xs:"1rem",s:"1.5rem",m:"2rem",l:"2.5rem",xl:"3rem",xxl:"3.5rem"},i={xs:"0.75rem",s:"0.875rem",m:"1rem",l:"1.25rem",xl:"1.5625rem",xxl:"2rem",xxxl:"2.5rem",xxxxl:"3.125rem"},d={customFonts:[{family:"MuseoSans-500",urlWoff:"".concat(r.assetPath,"fonts/MuseoSansRounded-500.woff"),urlWoff2:"".concat(r.assetPath,"fonts/MuseoSansRounded-500.woff2")}],fontFamilyBase:"Arial, Calibri, nimbussansl, liberationsans, freesans, clean, sans-serif",fontFamilyHeadings:"MuseoSans-500,Calibri,Arial,sans-serif",fontSizeBase:"16px",fontWeightHeavy:"700",fontWeightMedium:"500",fontWeightNormal:"400",fontWeightLight:"300",fontWeightVLight:"100",linkTextDecoration:"underline",lineHeight:"1.5em",headerLineHeight:"1.25em",headerTextTransform:"none"},l={name:"cruk",avatar:a,breakpoint:o,button:t,tokenColors:n,colors:s,spacing:g,fontSizes:i,siteConfig:r,typography:d,utilities:e};exports.AVATAR=a,exports.BREAKPOINT=o,exports.BUTTON=t,exports.COLORS=s,exports.FONT_SIZES=i,exports.SITE_CONFIG=r,exports.SPACING=g,exports.TOKEN_COLORS=n,exports.TYPOGRAPHY=d,exports.UTILITIES=e,exports.default=l;
|
|
2
2
|
//# sourceMappingURL=cruk.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/tslib/tslib.es6.js"),r=require("./cruk.js"),a=e.__assign(e.__assign({},r.default.utilities),{useBackgroundStyleLinks:!0}),t=e.__assign(e.__assign({},r.default.siteConfig),{logoSrc:"https://
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/tslib/tslib.es6.js"),r=require("./cruk.js"),a=e.__assign(e.__assign({},r.default.utilities),{useBackgroundStyleLinks:!0}),t=e.__assign(e.__assign({},r.default.siteConfig),{logoSrc:"https://rcl.assets.cancerresearchuk.org/images/logos/su2c-160.png",footerCopyText:"Stand Up To Cancer and Stand Up To Cancer Brand Marks are registered trademarks of the Entertainment Industry Foundation. Cancer Research UK is a registered charity in England and Wales (1089464), Scotland(SC041666), the Isle of Man (1103) and Jersey (247). A company limited by guarantee. Registered company in England and Wales (4325234) and the Isle of Man (5713F). Registered address: 2 Redman Place, London, E20 1JQ. Donations will be made to Cancer Research UK in support of the Stand Up To Cancer campaign."}),s=e.__assign(e.__assign({},r.default.avatar),{path:"".concat(t.assetPath,"images/avatar/su2c/")}),o=e.__assign(e.__assign({},r.default.button),{borderRadius:"1.5rem",borderRadiusLarge:"2rem",textTransform:"uppercase"}),n=e.__assign({},r.default.breakpoint),c=e.__assign(e.__assign({},r.default.tokenColors),{su2cOrange5:"#FF8E00",su2cOrange3:"#FFB04D",su2cOrange2:"#FFDAAD",su2cOrange1:"#FFF6EB",su2cBlack:"#231F20",su2cGrey1:"#555759",su2cGrey2:"#A5A5A9",su2cRed:"#EF4135",su2cYellow:"#FFC325"}),i=e.__assign(e.__assign({},r.default.colors),{primary:c.su2cOrange5,secondary:c.su2cOrange5,tertiary:c.su2cBlack,textOnPrimary:c.su2cBlack,progressBar:c.su2cOrange5,progressBarSecondary:c.su2cRed,circularProgress:c.su2cOrange3,circularProgressSecondary:c.su2cRed,linkColor:c.su2cOrange5,linkColorHover:c.su2cRed,backgroundLightColor:c.su2cOrange2,loaderColor1:c.su2cOrange5,loaderColor2:c.su2cRed,loaderColor3:c.su2cBlack,paginationText:c.su2cBlack,paginationBackground:c.su2cBlack,totaliserBubbleColor:c.su2cBlack,totaliserBubbleTextColor:c.white,totaliserBubbleTotalColor:c.white,buttonPrimaryBackground:c.su2cOrange5,buttonPrimaryText:c.su2cBlack,buttonPrimaryBorder:c.su2cOrange5,buttonPrimaryBackgroundHover:c.su2cOrange3,buttonPrimaryTextHover:c.su2cBlack,buttonPrimaryBorderHover:c.su2cOrange3,buttonPrimaryDisabledBackground:c.grey_300,buttonPrimaryDisabledText:c.white,buttonPrimaryDisabledBorder:c.grey_300,buttonSecondaryBackground:c.white,buttonSecondaryText:c.su2cOrange5,buttonSecondaryBorder:c.su2cOrange5,buttonSecondaryBackgroundHover:c.su2cOrange1,buttonSecondaryTextHover:c.su2cOrange5,buttonSecondaryBorderHover:c.su2cOrange5,buttonSecondaryDisabledBackground:c.white,buttonSecondaryDisabledText:c.grey_300,buttonSecondaryDisabledBorder:c.grey_300,buttonTertiaryText:c.su2cOrange5,buttonTertiaryTextHover:c.su2cOrange5,buttonTertiaryDisabledText:c.grey_300}),u=e.__assign({},r.default.spacing),d=e.__assign({},r.default.fontSizes),g=e.__assign(e.__assign({},r.default.typography),{customFonts:[{family:"itc_avant_garde_pro_mdbold",urlWoff:"".concat(t.assetPath,"fonts/itc_-_itcavantgardepro-bold-webfont.woff")}],fontFamilyHeadings:"itc_avant_garde_pro_mdbold,Arial,sans-serif",linkTextDecoration:"none",headerLineHeight:"1.5em",headerTextTransform:"uppercase"}),l={name:"su2c",avatar:s,breakpoint:n,button:o,tokenColors:c,colors:i,spacing:u,fontSizes:d,siteConfig:t,typography:g,utilities:a};exports.AVATAR=s,exports.BREAKPOINT=n,exports.BUTTON=o,exports.COLORS=i,exports.FONT_SIZES=d,exports.SITE_CONFIG=t,exports.SPACING=u,exports.TOKEN_COLORS=c,exports.TYPOGRAPHY=g,exports.UTILITIES=a,exports.default=l;
|
|
2
2
|
//# sourceMappingURL=su2c.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import React, { InputHTMLAttributes, Ref, FocusEvent } from "react";
|
|
2
2
|
import { AddressDataType } from "../../types";
|
|
3
3
|
export declare type AddressLookupProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
4
4
|
/** api key for loqate */
|
|
@@ -32,5 +32,30 @@ export declare type AddressLookupProps = InputHTMLAttributes<HTMLInputElement> &
|
|
|
32
32
|
* You will need a Loqate api key, the examples below use "MG17-ZD93-FF33-KF13" our development key.
|
|
33
33
|
* This component is generally only used for country codes including "GBR", "GGY", "IMN", "JEY". An example of this behavior is included bellow.
|
|
34
34
|
*/
|
|
35
|
-
declare const AddressLookup:
|
|
35
|
+
declare const AddressLookup: React.ForwardRefExoticComponent<Pick<React.InputHTMLAttributes<HTMLInputElement> & {
|
|
36
|
+
/** api key for loqate */
|
|
37
|
+
apiKey: string;
|
|
38
|
+
/** list of countries codes you want the address look up to search within */
|
|
39
|
+
countries?: string[] | undefined;
|
|
40
|
+
/** callback function which is passed the selected address data */
|
|
41
|
+
onAddressSelected: (address: AddressDataType) => void;
|
|
42
|
+
/** error message */
|
|
43
|
+
errorMessage?: string | undefined;
|
|
44
|
+
/** when true a input has a red border */
|
|
45
|
+
hasError?: boolean | undefined;
|
|
46
|
+
/** flag which effects the check or cross icons to the right of the input */
|
|
47
|
+
isValid?: boolean | undefined;
|
|
48
|
+
/** flag to hide or show the check icon when valid */
|
|
49
|
+
isValidVisible?: boolean | undefined;
|
|
50
|
+
/** flag to hide or show the cross icon when invalid */
|
|
51
|
+
isInvalidVisible?: boolean | undefined;
|
|
52
|
+
/** label text */
|
|
53
|
+
label?: string | undefined;
|
|
54
|
+
/** callback function which is passed the error */
|
|
55
|
+
onAddressError?: ((error: Error) => void) | undefined;
|
|
56
|
+
/** onBlur handler */
|
|
57
|
+
onBlur?: ((e: FocusEvent<HTMLInputElement>) => void) | undefined;
|
|
58
|
+
/** attach a DOM reference variable to your component */
|
|
59
|
+
ref?: React.Ref<HTMLInputElement> | undefined;
|
|
60
|
+
}, "apiKey" | "countries" | "errorMessage" | "hasError" | "isValid" | "isValidVisible" | "isInvalidVisible" | "label" | "onAddressError" | "onAddressSelected" | keyof React.InputHTMLAttributes<HTMLInputElement>> & React.RefAttributes<HTMLInputElement>>;
|
|
36
61
|
export default AddressLookup;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ImgHTMLAttributes } from "react";
|
|
2
2
|
export declare type AvatarProps = ImgHTMLAttributes<HTMLElement> & {
|
|
3
3
|
/** name of user/entity */
|
|
4
4
|
name?: string;
|
|
@@ -11,5 +11,5 @@ export declare type AvatarProps = ImgHTMLAttributes<HTMLElement> & {
|
|
|
11
11
|
*
|
|
12
12
|
* You can use an avatar to display ownership of an item of content. If you pass a URL of an image that will be displayed otherwise the first letter of the name will be used to display a branded avatar.
|
|
13
13
|
*/
|
|
14
|
-
declare const Avatar:
|
|
14
|
+
declare const Avatar: ({ url, name, size, alt, ...rest }: AvatarProps) => JSX.Element;
|
|
15
15
|
export default Avatar;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
2
|
import { SpaceType } from "../../types";
|
|
3
3
|
export declare type BadgeProps = {
|
|
4
4
|
/** background colour of badge */
|
|
@@ -25,5 +25,5 @@ at the end of a sentence, link, or button. Unless the context is clear,
|
|
|
25
25
|
consider including additional context with a visually hidden piece of
|
|
26
26
|
additional text.
|
|
27
27
|
*/
|
|
28
|
-
declare const Badge:
|
|
28
|
+
declare const Badge: ({ children, ...rest }: BadgeProps) => JSX.Element;
|
|
29
29
|
export default Badge;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { FunctionComponent, HTMLAttributes, Ref } from "react";
|
|
1
|
+
import { FunctionComponent, HTMLAttributes, Ref, ReactNode, ElementType } from "react";
|
|
2
2
|
import { SpacingProps } from "../Spacing";
|
|
3
3
|
export declare type BoxProps = SpacingProps & HTMLAttributes<HTMLElement> & {
|
|
4
4
|
/** background color of box, this will add default padding */
|
|
5
5
|
backgroundColor?: string;
|
|
6
6
|
css?: string;
|
|
7
7
|
ref?: Ref<HTMLDivElement>;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
/** styled-component polymorphic feature so you take the styling of a box and cast the component to be a "span" for example */
|
|
10
|
+
as?: ElementType;
|
|
8
11
|
};
|
|
9
12
|
/**
|
|
10
13
|
* Box is used to wrap other components to add margin and padding. The values will be in the t-shirt sizes specified in the theme sizes.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import React, { ReactNode, ButtonHTMLAttributes, Ref, ElementType } from "react";
|
|
2
2
|
import { ButtonAppearanceType } from "../../types";
|
|
3
3
|
export declare type Props = ButtonHTMLAttributes<HTMLElement> & {
|
|
4
4
|
/** the look and feel of the button */
|
|
@@ -11,15 +11,36 @@ export declare type Props = ButtonHTMLAttributes<HTMLElement> & {
|
|
|
11
11
|
size?: "m" | "l";
|
|
12
12
|
css?: any;
|
|
13
13
|
/** styled-components polymorphism where you can use the styling of a button but convert to another element like an anchor tag */
|
|
14
|
-
as?:
|
|
14
|
+
as?: ElementType;
|
|
15
15
|
/** flag to force button into an icon button shape which is square or round */
|
|
16
16
|
isIconButton?: boolean;
|
|
17
|
+
/** Element reference */
|
|
17
18
|
ref?: Ref<HTMLElement>;
|
|
19
|
+
/** Component reference */
|
|
20
|
+
children?: ReactNode;
|
|
18
21
|
};
|
|
19
22
|
/**
|
|
20
23
|
* Design system documentation CRUK https://zeroheight.com/23de8a59a/p/180ef6-buttons/b/32e1a2
|
|
21
24
|
*
|
|
22
25
|
* Design system documentation SU2C https://zeroheight.com/79db39f7e/p/22ff0e-button/b/32e1a2
|
|
23
26
|
*/
|
|
24
|
-
export declare const Button:
|
|
27
|
+
export declare const Button: React.ForwardRefExoticComponent<Pick<React.ButtonHTMLAttributes<HTMLElement> & {
|
|
28
|
+
/** the look and feel of the button */
|
|
29
|
+
appearance?: ButtonAppearanceType | undefined;
|
|
30
|
+
/** flag to streatch but to 100% width */
|
|
31
|
+
full?: boolean | undefined;
|
|
32
|
+
/** this is a url which will convert the button to an anchor tag */
|
|
33
|
+
href?: string | undefined;
|
|
34
|
+
/** the height of the button, this will add padding not increase text size */
|
|
35
|
+
size?: "m" | "l" | undefined;
|
|
36
|
+
css?: any;
|
|
37
|
+
/** styled-components polymorphism where you can use the styling of a button but convert to another element like an anchor tag */
|
|
38
|
+
as?: React.ElementType<any> | undefined;
|
|
39
|
+
/** flag to force button into an icon button shape which is square or round */
|
|
40
|
+
isIconButton?: boolean | undefined;
|
|
41
|
+
/** Element reference */
|
|
42
|
+
ref?: React.Ref<HTMLElement> | undefined;
|
|
43
|
+
/** Component reference */
|
|
44
|
+
children?: ReactNode;
|
|
45
|
+
}, keyof React.ButtonHTMLAttributes<HTMLElement> | "appearance" | "full" | "href" | "size" | "css" | "as" | "isIconButton"> & React.RefAttributes<HTMLElement>>;
|
|
25
46
|
export default Button;
|
|
@@ -4,7 +4,17 @@ export declare const transitionDurationSeconds = 0.5;
|
|
|
4
4
|
export declare const FlippingIcon: import("styled-components").StyledComponent<({ faIcon, color, size, ...rest }: import("../IconFa").IconFaProps) => JSX.Element, any, {
|
|
5
5
|
open: boolean;
|
|
6
6
|
}, never>;
|
|
7
|
-
export declare const DefaultHeader: import("styled-components").StyledComponent<import("react").
|
|
7
|
+
export declare const DefaultHeader: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("react").ButtonHTMLAttributes<HTMLElement> & {
|
|
8
|
+
appearance?: import("../../types").ButtonAppearanceType | undefined;
|
|
9
|
+
full?: boolean | undefined;
|
|
10
|
+
href?: string | undefined;
|
|
11
|
+
size?: "m" | "l" | undefined;
|
|
12
|
+
css?: any;
|
|
13
|
+
as?: import("react").ElementType<any> | undefined;
|
|
14
|
+
isIconButton?: boolean | undefined;
|
|
15
|
+
ref?: import("react").Ref<HTMLElement> | undefined;
|
|
16
|
+
children?: import("react").ReactNode;
|
|
17
|
+
}, "size" | keyof import("react").ButtonHTMLAttributes<HTMLElement> | "appearance" | "full" | "href" | "css" | "as" | "isIconButton"> & import("react").RefAttributes<HTMLElement>>, any, {
|
|
8
18
|
textColor?: string | undefined;
|
|
9
19
|
textSize?: FontSizeType | undefined;
|
|
10
20
|
textFontFamily?: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes, ReactNode } from "react";
|
|
2
2
|
export declare type HeaderProps = HTMLAttributes<HTMLElement> & {
|
|
3
3
|
/** flag which make header fixed to the top even when scrolling */
|
|
4
4
|
isSticky?: boolean;
|
|
@@ -14,6 +14,7 @@ export declare type HeaderProps = HTMLAttributes<HTMLElement> & {
|
|
|
14
14
|
logoLinkUrl?: string;
|
|
15
15
|
/** instead of the contents of the header being centered to max width as defined in theme it is 100% width fo viewport */
|
|
16
16
|
fullWidth?: boolean;
|
|
17
|
+
children?: ReactNode;
|
|
17
18
|
};
|
|
18
19
|
/**
|
|
19
20
|
* There should be only one header component near or at the top of the body of each page.
|
|
@@ -32,5 +33,5 @@ export declare type HeaderProps = HTMLAttributes<HTMLElement> & {
|
|
|
32
33
|
* There is a hidden skip link in the header which will only reveals itself on the first tab and to screen readers. This link helps users skip to the main page content, however this will only work with there is an element with an id of 'main' which the developer should create for every page.
|
|
33
34
|
*
|
|
34
35
|
*/
|
|
35
|
-
export declare const Header:
|
|
36
|
+
export declare const Header: ({ isSticky, siteSlogan, logoAltText, logoImageSrc, logoLinkTitle, logoLinkUrl, fullWidth, children, }: HeaderProps) => JSX.Element;
|
|
36
37
|
export default Header;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes, ElementType } from "react";
|
|
2
2
|
import { SpacingProps } from "../Spacing";
|
|
3
3
|
import { FontSizeType, WordBreakType, OverflowWrapType } from "../../types";
|
|
4
4
|
export declare type HeadingProps = SpacingProps & HTMLAttributes<HTMLElement> & {
|
|
@@ -15,7 +15,7 @@ export declare type HeadingProps = SpacingProps & HTMLAttributes<HTMLElement> &
|
|
|
15
15
|
/** color of text */
|
|
16
16
|
textColor?: string;
|
|
17
17
|
/** styled-component polymorphic feature so you take the styling of a header and cast the component to be a "span" for example */
|
|
18
|
-
as?:
|
|
18
|
+
as?: ElementType;
|
|
19
19
|
/** word-break behavior */
|
|
20
20
|
wordBreak?: WordBreakType;
|
|
21
21
|
/** overflow-wrap behavior */
|
|
@@ -28,5 +28,5 @@ Markup headings semantically using the appropriate <h#> level HTML element and
|
|
|
28
28
|
use the corresponding heading class (h1, h2, h3, ....). Write all headings in sentence case. Heading differs from the Text component by using a different font-family and it changes the font size according to the screen width breakpoints.
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
|
-
declare const Heading:
|
|
31
|
+
declare const Heading: ({ h1, h2, h3, h4, h5, h6, ...props }: HeadingProps) => JSX.Element;
|
|
32
32
|
export default Heading;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { ICONS } from "./iconList";
|
|
3
3
|
export declare const ICON_NAMES: {
|
|
4
4
|
[key: string]: string;
|
|
@@ -19,5 +19,5 @@ export declare type IconProps = {
|
|
|
19
19
|
*
|
|
20
20
|
* This component has been deprecated in favour of IconFa which is more tree-shakable
|
|
21
21
|
* */
|
|
22
|
-
declare const Icon:
|
|
22
|
+
declare const Icon: ({ name, color, size, ...rest }: IconProps) => JSX.Element;
|
|
23
23
|
export default Icon;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import React, { AnchorHTMLAttributes, Ref, ElementType, ReactNode } from "react";
|
|
2
2
|
import { TextProps } from "../Text";
|
|
3
3
|
export declare type LinkProps = AnchorHTMLAttributes<HTMLElement> & TextProps & {
|
|
4
4
|
/** link text hover colour */
|
|
5
5
|
textHoverColor?: string;
|
|
6
|
-
/** link appearance
|
|
6
|
+
/** link appearance variant, undefined is a standarding link withing a text block */
|
|
7
7
|
appearance?: "primary" | "secondary";
|
|
8
8
|
/** styled-components polymorphism where you can use the styling of a link but convert to another element like a button */
|
|
9
9
|
ref?: Ref<HTMLElement>;
|
|
10
|
+
/** styled-component polymorphic feature so you take the styling of a link and cast the component to be a "span" for example */
|
|
11
|
+
as?: ElementType;
|
|
12
|
+
/** Component children */
|
|
13
|
+
children?: ReactNode;
|
|
10
14
|
};
|
|
11
15
|
/** Links are for wrapping plain text or elements to create clickable link.
|
|
12
16
|
* This is to be treated as an anchor tag with the addition of the Text component API.
|
|
@@ -18,5 +22,25 @@ export declare type LinkProps = AnchorHTMLAttributes<HTMLElement> & TextProps &
|
|
|
18
22
|
* If you want something that looks like a link but behaves like a button ie. nothing to do with navigation, please consider using Link with as='button'
|
|
19
23
|
*
|
|
20
24
|
* If you want something that looks like a button but behaves like a link ie. it takes the user to a new location, please consider using Button and simply passing it an href, it will automatically turn into a link. */
|
|
21
|
-
export declare const Link:
|
|
25
|
+
export declare const Link: React.ForwardRefExoticComponent<Pick<React.AnchorHTMLAttributes<HTMLElement> & import("../Spacing").SpacingProps & React.HTMLAttributes<HTMLElement> & {
|
|
26
|
+
textColor?: string | undefined;
|
|
27
|
+
textAlign?: "left" | "right" | "center" | "justify" | undefined;
|
|
28
|
+
textSize?: import("..").FontSizeType | undefined;
|
|
29
|
+
textWeight?: number | undefined;
|
|
30
|
+
as?: any;
|
|
31
|
+
wordBreak?: import("..").WordBreakType | undefined;
|
|
32
|
+
overflowWrap?: import("..").OverflowWrapType | undefined;
|
|
33
|
+
ref?: React.Ref<HTMLElement> | undefined;
|
|
34
|
+
} & {
|
|
35
|
+
/** link text hover colour */
|
|
36
|
+
textHoverColor?: string | undefined;
|
|
37
|
+
/** link appearance variant, undefined is a standarding link withing a text block */
|
|
38
|
+
appearance?: "primary" | "secondary" | undefined;
|
|
39
|
+
/** styled-components polymorphism where you can use the styling of a link but convert to another element like a button */
|
|
40
|
+
ref?: React.Ref<HTMLElement> | undefined;
|
|
41
|
+
/** styled-component polymorphic feature so you take the styling of a link and cast the component to be a "span" for example */
|
|
42
|
+
as?: React.ElementType<any> | undefined;
|
|
43
|
+
/** Component children */
|
|
44
|
+
children?: ReactNode;
|
|
45
|
+
}, "slot" | "style" | "title" | "download" | "href" | "hrefLang" | "media" | "ping" | "rel" | "target" | "type" | "referrerPolicy" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginVertical" | "marginHorizontal" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingVertical" | "paddingHorizontal" | "textColor" | "textAlign" | "textSize" | "textWeight" | "as" | "wordBreak" | "overflowWrap" | "textHoverColor" | "appearance"> & React.RefAttributes<HTMLElement>>;
|
|
22
46
|
export default Link;
|
|
@@ -5,4 +5,14 @@ export declare const Content: import("styled-components").StyledComponent<import
|
|
|
5
5
|
maxWidth: string;
|
|
6
6
|
top: string;
|
|
7
7
|
}, never>;
|
|
8
|
-
export declare const CloseButton: import("styled-components").StyledComponent<import("react").
|
|
8
|
+
export declare const CloseButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("react").ButtonHTMLAttributes<HTMLElement> & {
|
|
9
|
+
appearance?: import("../../types").ButtonAppearanceType | undefined;
|
|
10
|
+
full?: boolean | undefined;
|
|
11
|
+
href?: string | undefined;
|
|
12
|
+
size?: "m" | "l" | undefined;
|
|
13
|
+
css?: any;
|
|
14
|
+
as?: import("react").ElementType<any> | undefined;
|
|
15
|
+
isIconButton?: boolean | undefined;
|
|
16
|
+
ref?: import("react").Ref<HTMLElement> | undefined;
|
|
17
|
+
children?: import("react").ReactNode;
|
|
18
|
+
}, "css" | "as" | keyof import("react").ButtonHTMLAttributes<HTMLElement> | "appearance" | "full" | "href" | "size" | "isIconButton"> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactChild, ReactNode } from "react";
|
|
2
2
|
export declare type TotaliserProps = {
|
|
3
3
|
/** financial total as a number */
|
|
4
4
|
total: number;
|
|
@@ -12,9 +12,11 @@ export declare type TotaliserProps = {
|
|
|
12
12
|
isCompact?: boolean;
|
|
13
13
|
/** component for custom summary message underneath total graph only visible if there is a target */
|
|
14
14
|
summaryMessage?: ReactChild;
|
|
15
|
+
/** component children */
|
|
16
|
+
children?: ReactNode;
|
|
15
17
|
};
|
|
16
18
|
/**
|
|
17
19
|
* Think Blue Peter, used to display total raised and if target prop is passed will display tercentage of target reached.
|
|
18
20
|
* */
|
|
19
|
-
declare const Totaliser:
|
|
21
|
+
declare const Totaliser: ({ total, additionalAmount, giftAid, target, isCompact, summaryMessage, children, }: TotaliserProps) => JSX.Element;
|
|
20
22
|
export default Totaliser;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode, HTMLAttributes } from "react";
|
|
2
2
|
export declare type UserBlockProps = HTMLAttributes<HTMLElement> & {
|
|
3
3
|
/** name component or text */
|
|
4
4
|
name?: ReactNode;
|
|
@@ -14,5 +14,5 @@ export declare type UserBlockProps = HTMLAttributes<HTMLElement> & {
|
|
|
14
14
|
/**
|
|
15
15
|
* Display an avatar with title and subtitle
|
|
16
16
|
*/
|
|
17
|
-
declare const UserBlock:
|
|
17
|
+
declare const UserBlock: ({ name, avatarName, avatarUrl, extra, size, }: UserBlockProps) => JSX.Element;
|
|
18
18
|
export default UserBlock;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as t,__assign as r}from"../../../node_modules/tslib/tslib.es6.js";import a from"react";import{useTheme as o}from"styled-components";import e from"../../themes/cruk.js";import{StyledAvatar as n}from"./styles.js";var m=function(m){var i=m.url,s=m.name,c=m.size,p=void 0===c?"m":c,l=m.alt,u=void 0===l?"":l,f=t(m,["url","name","size","alt"]),v=o(),d=r(r({},e),v);return a.createElement(n,r({},f,{size:d.avatar[p||"m"],src:function(){if(i)return i;var t=s&&"string"==typeof s&&"Anonymous"!==s&&/[a-z]/i.exec(s[0].trim())?"icon-avatar-".concat(s[0].trim().toUpperCase(),".png"):"icon-avatar-Anonymous.png";return"".concat(d.avatar.path).concat(
|
|
1
|
+
import{__rest as t,__assign as r}from"../../../node_modules/tslib/tslib.es6.js";import a from"react";import{useTheme as o}from"styled-components";import e from"../../themes/cruk.js";import{StyledAvatar as n}from"./styles.js";var m=function(m){var i=m.url,s=m.name,c=m.size,p=void 0===c?"m":c,l=m.alt,u=void 0===l?"":l,f=t(m,["url","name","size","alt"]),v=o(),d=r(r({},e),v);return a.createElement(n,r({},f,{size:d.avatar[p||"m"],src:function(){if(i)return i;var t=s&&"string"==typeof s&&"Anonymous"!==s&&/[a-z]/i.exec(s[0].trim())?"icon-avatar-".concat(s[0].trim().toUpperCase(),".png"):"icon-avatar-Anonymous.png";return"".concat(d.avatar.path).concat(t)}(),alt:u}))};export{m as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__makeTemplateObject as n,__assign as o}from"../../node_modules/tslib/tslib.es6.js";import{createGlobalStyle as t,withTheme as e}from"styled-components";import i from"../themes/cruk.js";var r=t(a||(a=n(["\n ","\n *, *:after, *:before {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n }\n \n @media (prefers-reduced-motion: reduce) {\n *, *:after, *:before {\n animation-play-state: paused !important;\n animation-direction: reverse !important;\n transition: none !important;\n scroll-behavior: auto !important;\n }\n }\n\n table, td, th {\n border-spacing: 0;\n border: 1px solid #ccc;\n padding: 10px;\n }\n .no-focus-outline a:focus,\n .no-focus-outline button:focus {\n outline: none;\n }\n img {\n width: 100%;\n height: auto;\n }\n section {\n width: 100%;\n }\n button {\n font-size: 1em;\n }\n"],["\n ","\n *, *:after, *:before {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n }\n \n @media (prefers-reduced-motion: reduce) {\n *, *:after, *:before {\n animation-play-state: paused !important;\n animation-direction: reverse !important;\n transition: none !important;\n scroll-behavior: auto !important;\n }\n }\n\n table, td, th {\n border-spacing: 0;\n border: 1px solid #ccc;\n padding: 10px;\n }\n .no-focus-outline a:focus,\n .no-focus-outline button:focus {\n outline: none;\n }\n img {\n width: 100%;\n height: auto;\n }\n section {\n width: 100%;\n }\n button {\n font-size: 1em;\n }\n"])),(function(n){var t,e=o(o({},i),n.theme);return"\n ".concat((t=e.typography.customFonts,t.map((function(n){return"\n @font-face {\n font-family: ".concat(n.family,
|
|
1
|
+
import{__makeTemplateObject as n,__assign as o}from"../../node_modules/tslib/tslib.es6.js";import{createGlobalStyle as t,withTheme as e}from"styled-components";import i from"../themes/cruk.js";var r=t(a||(a=n(["\n ","\n *, *:after, *:before {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n }\n \n @media (prefers-reduced-motion: reduce) {\n *, *:after, *:before {\n animation-play-state: paused !important;\n animation-direction: reverse !important;\n transition: none !important;\n scroll-behavior: auto !important;\n }\n }\n\n table, td, th {\n border-spacing: 0;\n border: 1px solid #ccc;\n padding: 10px;\n }\n .no-focus-outline a:focus,\n .no-focus-outline button:focus {\n outline: none;\n }\n img {\n width: 100%;\n height: auto;\n }\n section {\n width: 100%;\n }\n button {\n font-size: 1em;\n }\n"],["\n ","\n *, *:after, *:before {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n }\n \n @media (prefers-reduced-motion: reduce) {\n *, *:after, *:before {\n animation-play-state: paused !important;\n animation-direction: reverse !important;\n transition: none !important;\n scroll-behavior: auto !important;\n }\n }\n\n table, td, th {\n border-spacing: 0;\n border: 1px solid #ccc;\n padding: 10px;\n }\n .no-focus-outline a:focus,\n .no-focus-outline button:focus {\n outline: none;\n }\n img {\n width: 100%;\n height: auto;\n }\n section {\n width: 100%;\n }\n button {\n font-size: 1em;\n }\n"])),(function(n){var t,e=o(o({},i),n.theme);return"\n ".concat((t=e.typography.customFonts,t.map((function(n){return"\n @font-face {\n font-family: ".concat(n.family,";\n src: ").concat((null==n?void 0:n.urlWoff2)?'url("'.concat(n.urlWoff2,"\") format('woff2')"):"").concat(n.urlWoff&&(null==n?void 0:n.urlWoff2)?", ":"","\n ").concat((null==n?void 0:n.urlWoff)?'url("'.concat(n.urlWoff,"\") format('woff')"):"",";\n font-weight: normal;\n font-style: normal;\n font-display: fallback;\n }\n ")})).join("")),"\n html {\n font-size: ").concat(e.typography.fontSizeBase,";\n font-family: ").concat(e.typography.fontFamilyBase,";\n line-height: ").concat(e.typography.lineHeight,";\n }\n body {\n background-color: ").concat(e.colors.backgroundMid,";\n color: ").concat(e.colors.textDark,";\n margin: 0;\n padding: 0;\n overflow-x: hidden;\n -webkit-text-size-adjust: 100%;\n -moz-text-size-adjust: none;\n -ms-text-size-adjust: 100%;\n }\n ")}));r.defaultProps={theme:i};var a,c=e(r);export{c as default};
|
|
2
2
|
//# sourceMappingURL=GlobalStyle.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var g="IyBMaW5rCgpMaW5rcyBhcmUgZm9yIHdyYXBwaW5nIHBsYWluIHRleHQgb3IgZWxlbWVudHMgdG8gY3JlYXRlIGNsaWNrYWJsZSBsaW5rLiBUaGlzIGlzIHRvIGJlIHRyZWF0ZWQgYXMgYW4gYW5jaG9yIHRhZyB3aXRoIHRoZSBhZGRpdGlvbiBvZiB0aGUgVGV4dCBjb21wb25lbnQgQVBJLiBUaGlzIGNvbXBvbmVudCBjb250YWlucyBzdGFuZGFyZCBBbmNob3IgdGFnIHByb3BzIGxpa2UgJ2hyZWYnIGFuZCAndGFyZ2V0JywgYnV0IGl0IGFsc28gY29udGFpbnMgVGV4dCBjb21wb25lbnQgcHJvcHMgbGlrZSAndGV4dENvbG9yJyBhbmQgJ3RleHRBbGlnbicuIEEgbGluayBzaG91bGQgcmVhbGx5IG9ubHkgYmUgdXNlZCBmb3IgbmF2aWdhdGlvbiB0byB0YWtlIGEgdXNlciB0byBhcyBuZXcgbG9jYXRpb24uIFRoZSBvbkNsaWNrIGh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GFsdD0iIiBzcmM9J2h0dHBzOi8vcmNsLmFzc2V0cy5jYW5jZXJyZXNlYXJjaHVrLm9yZy9pbWFnZXMvbG9nb3MvY3J1ay0xNjAucG5nJy8+PC9MaW5rPgogICAgPC9kaXY+CiAgPC8+CmBgYAoKIyMgUHJvcHMKCnwgTmFtZSAgICAgICAgICAgfCBUeXBlICAgICAgICAgICAgICAgICAgICAgICB8IE9wdGlvbnMgfCBEZWZhdWx0ICAgICAgICAgICAgICAgfCBEZXNjcmlwdGlvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgOi0tLS0tLS0tLS0tLS0gfCA6LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSB8IDotLS0tLTogfCA6LS0tLS0tLS0tLS0tLS0tLS0tLS0gfCA6LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSB8CnwgaHJlZiAgICAgICAgICAgfCBzdHJpbmcgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgfCBVUkwgb2YgbGluayAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgdGFyZ2V0ICAgICAgICAgfCBzdHJpbmcgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAnXF9zZWxmJyAgICAgICAgICAgICAgfCBIb3cgdGhlIGxpbmsgb3BlbnMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgYXJpYS1sYWJlbCAgICAgfCBzdHJpbmcgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgfCBUaGlzIHNob3VsZCBiZSB1c2VkIHdoZW4gdGhlcmUgaXMgbm8gdGV4dCBpbiB0aGUgbGluayB0byBkZXNjcmliZSB3aGVyZSBpdCBpcyBnb2luZyB8CnwgcmVsICAgICAgICAgICAgfCBzdHJpbmcgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAibm9vcGVuZXIgbm9yZWZlcnJlciIgfCBSZWxhdGlvbnNoaXAgd2l0aCB0aGUgbGluayBhbmQgdGhlIGN1cnJlbnQgcGFnZSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgYXBwZWFyYW5jZSAgICAgfCBudWxsIC8gcHJpbWFyeSAvIHNlY29uZGFyeSB8ICAgICAgICAgfCBudWxsICAgICAgICAgICAgICAgICAgfCBEZWZhdWx0LCBwcmltYXJ5IG9yIHNlY29uZGFyeSBsaW5rIGFwcGVhcmFuY2UgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cnwgb25DbGljayAgICAgICAgfCBmdW5jdGlvbiAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgfCBPbiBjbGljayBoYW5kbGVyIGZ1bmN0aW9uICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgdGV4dENvbG9yICAgICAgfCBzdHJpbmcgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAnY3VycmVudENvbG9yJyAgICAgICAgfCBDb2xvciBvZiB0ZXh0LCB3aWxsIHdvcmsgd2l0aCB0aGVtZSBjb2xvdXIgbmFtZXMgYW5kIGhleCBzdHJpbmdzICAgICAgICAgICAgICAgICAgICB8CnwgdGV4dEhvdmVyQ29sb3IgfCBzdHJpbmcgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAnY3VycmVudENvbG9yJyAgICAgICAgfCBIb3ZlciBjb2xvciBvZiB0ZXh0ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgdGV4dEFsaWduICAgICAgfCAnbGVmdCcgLydyaWdodCcgLyAnY2VudGVyJyB8ICAgICAgICAgfCAnbGVmdCcgICAgICAgICAgICAgICAgfCBIb3Jpem9udGFsIHRleHQgYWxpZ25tZW50ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgdGV4dFNpemUgICAgICAgfCBGb250U2l6ZVR5cGUgICAgICAgICAgICAgICB8ICAgICAgICAgfCAnbScgICAgICAgICAgICAgICAgICAgfCBGb250IHNpemUgdXNlcyB0LXNoaXJ0IHNpemVzIG9mIHMvbS9sIGV0YyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgdGV4dFdlaWdodCAgICAgfCBudW1iZXIgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAnNTAwJyAgICAgICAgICAgICAgICAgfCBGb250IHdlaWdodCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cg==";export{g as default};
|
|
2
2
|
//# sourceMappingURL=README.md.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"README.md.js","sources":["../../../../../src/components/Link/README.md"],"sourcesContent":["export default \"IyBMaW5rCgpMaW5rcyBhcmUgZm9yIHdyYXBwaW5nIHBsYWluIHRleHQgb3IgZWxlbWVudHMgdG8gY3JlYXRlIGNsaWNrYWJsZSBsaW5rLiBUaGlzIGlzIHRvIGJlIHRyZWF0ZWQgYXMgYW4gYW5jaG9yIHRhZyB3aXRoIHRoZSBhZGRpdGlvbiBvZiB0aGUgVGV4dCBjb21wb25lbnQgQVBJLiBUaGlzIGNvbXBvbmVudCBjb250YWlucyBzdGFuZGFyZCBBbmNob3IgdGFnIHByb3BzIGxpa2UgJ2hyZWYnIGFuZCAndGFyZ2V0JywgYnV0IGl0IGFsc28gY29udGFpbnMgVGV4dCBjb21wb25lbnQgcHJvcHMgbGlrZSAndGV4dENvbG9yJyBhbmQgJ3RleHRBbGlnbicuIEEgbGluayBzaG91bGQgcmVhbGx5IG9ubHkgYmUgdXNlZCBmb3IgbmF2aWdhdGlvbiB0byB0YWtlIGEgdXNlciB0byBhcyBuZXcgbG9jYXRpb24uIFRoZSBvbkNsaWNrIGhhbmRsZXIgY2FuIGJlIHVzZSBmb3IgbW9yZSBjb21wbGljYXRlZCBzY2VuYXJpb3MuIElmIHlvdSB3YW50IHNvbWV0aGluZyB0aGF0IGxvb2tzIGxpa2UgYSBsaW5rIGJ1dCBiZWhhdmVzIGxpa2UgYSBidXR0b24gaWUuIG5vdGhpbmcgdG8gZG8gd2l0aCBuYXZpZ2F0aW9uLCBwbGVhc2UgY29uc2lkZXIgdXNpbmcgYSBidXR0b24gd2l0aCBhcHBlYXJhbmNlIHNldCB0byAnbGluaycKCiMjIyBUcnkgaXQgb3V0CgpgYGAuanN4CiAgPD4KICAgIDxkaXY+CiAgICAgIDxMaW5rIGhyZWY9Imh0dHA6Ly93d3cuZ29vZ2xlLmNvbSI+RGVmYXVsdCBsaW5rPC9MaW5rPgogICAgPC9kaXY+CiAgICA8ZGl2PgogICAgICA8TGluayBocmVmPSJodHRwOi8vd3d3Lmdvb2dsZS5jb20iIGFwcGVhcmFuY2U9InByaW1hcnkiPlByaW1hcnkgbGluazwvTGluaz4KICAgIDwvZGl2PgogICAgPGRpdj4KICAgICAgPExpbmsgaHJlZj0iaHR0cDovL3d3dy5nb29nbGUuY29tIiBhcHBlYXJhbmNlPSJzZWNvbmRhcnkiPnNlY29uZGFyeSBsaW5rPC9MaW5rPgogICAgPC9kaXY+
|
|
1
|
+
{"version":3,"file":"README.md.js","sources":["../../../../../src/components/Link/README.md"],"sourcesContent":["export default \"IyBMaW5rCgpMaW5rcyBhcmUgZm9yIHdyYXBwaW5nIHBsYWluIHRleHQgb3IgZW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AgICAgPExpbmsgaHJlZj0iaHR0cDovL3d3dy5nb29nbGUuY29tIiBhcHBlYXJhbmNlPSJzZWNvbmRhcnkiPnNlY29uZGFyeSBsaW5rPC9MaW5rPgogICAgPC9kaXY+CiAgICA8ZGl2PgogICAgPExpbmsgaHJlZj0iaHR0cDovL3d3dy5nb29nbGUuY29tIiBhcmlhLWxhYmVsPSJnb29nbGUgaG9tZXBhZ2UiPjxpbWcgc3R5bGU9e3t3aWR0aDogJzgwcHgnLCBoZWlnaHQ6ICczMHB4J319IGFsdD0iIiBzcmM9J2h0dHBzOi8vcmNsLmFzc2V0cy5jYW5jZXJyZXNlYXJjaHVrLm9yZy9pbWFnZXMvbG9nb3MvY3J1ay0xNjAucG5nJy8+PC9MaW5rPgogICAgPC9kaXY+CiAgPC8+CmBgYAoKIyMgUHJvcHMKCnwgTmFtZSAgICAgICAgICAgfCBUeXBlICAgICAgICAgICAgICAgICAgICAgICB8IE9wdGlvbnMgfCBEZWZhdWx0ICAgICAgICAgICAgICAgfCBEZXNjcmlwdGlvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgOi0tLS0tLS0tLS0tLS0gfCA6LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSB8IDotLS0tLTogfCA6LS0tLS0tLS0tLS0tLS0tLS0tLS0gfCA6LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSB8CnwgaHJlZiAgICAgICAgICAgfCBzdHJpbmcgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgfCBVUkwgb2YgbGluayAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgdGFyZ2V0ICAgICAgICAgfCBzdHJpbmcgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAnXF9zZWxmJyAgICAgICAgICAgICAgfCBIb3cgdGhlIGxpbmsgb3BlbnMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgYXJpYS1sYWJlbCAgICAgfCBzdHJpbmcgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgfCBUaGlzIHNob3VsZCBiZSB1c2VkIHdoZW4gdGhlcmUgaXMgbm8gdGV4dCBpbiB0aGUgbGluayB0byBkZXNjcmliZSB3aGVyZSBpdCBpcyBnb2luZyB8CnwgcmVsICAgICAgICAgICAgfCBzdHJpbmcgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAibm9vcGVuZXIgbm9yZWZlcnJlciIgfCBSZWxhdGlvbnNoaXAgd2l0aCB0aGUgbGluayBhbmQgdGhlIGN1cnJlbnQgcGFnZSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgYXBwZWFyYW5jZSAgICAgfCBudWxsIC8gcHJpbWFyeSAvIHNlY29uZGFyeSB8ICAgICAgICAgfCBudWxsICAgICAgICAgICAgICAgICAgfCBEZWZhdWx0LCBwcmltYXJ5IG9yIHNlY29uZGFyeSBsaW5rIGFwcGVhcmFuY2UgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cnwgb25DbGljayAgICAgICAgfCBmdW5jdGlvbiAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgfCBPbiBjbGljayBoYW5kbGVyIGZ1bmN0aW9uICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgdGV4dENvbG9yICAgICAgfCBzdHJpbmcgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAnY3VycmVudENvbG9yJyAgICAgICAgfCBDb2xvciBvZiB0ZXh0LCB3aWxsIHdvcmsgd2l0aCB0aGVtZSBjb2xvdXIgbmFtZXMgYW5kIGhleCBzdHJpbmdzICAgICAgICAgICAgICAgICAgICB8CnwgdGV4dEhvdmVyQ29sb3IgfCBzdHJpbmcgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAnY3VycmVudENvbG9yJyAgICAgICAgfCBIb3ZlciBjb2xvciBvZiB0ZXh0ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgdGV4dEFsaWduICAgICAgfCAnbGVmdCcgLydyaWdodCcgLyAnY2VudGVyJyB8ICAgICAgICAgfCAnbGVmdCcgICAgICAgICAgICAgICAgfCBIb3Jpem9udGFsIHRleHQgYWxpZ25tZW50ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgdGV4dFNpemUgICAgICAgfCBGb250U2l6ZVR5cGUgICAgICAgICAgICAgICB8ICAgICAgICAgfCAnbScgICAgICAgICAgICAgICAgICAgfCBGb250IHNpemUgdXNlcyB0LXNoaXJ0IHNpemVzIG9mIHMvbS9sIGV0YyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgdGV4dFdlaWdodCAgICAgfCBudW1iZXIgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgfCAnNTAwJyAgICAgICAgICAgICAgICAgfCBGb250IHdlaWdodCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cg==\""],"names":["README"],"mappings":"AAAA,IAAeA,EAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import t,{css as o}from"styled-components";import
|
|
1
|
+
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import t,{css as o}from"styled-components";import r from"../ProgressBar/index.js";var e,i,a,l,p,m,f,s,c,d,u,g=t.div(e||(e=n(["\n text-align: center;\n background-color: ",";\n border-radius: 3.2rem;\n padding: 5px;\n position: relative;\n p {\n margin: 0;\n }\n"],["\n text-align: center;\n background-color: ",";\n border-radius: 3.2rem;\n padding: 5px;\n position: relative;\n p {\n margin: 0;\n }\n"])),(function(n){return n.theme.colors.totaliserBubbleColor})),y=t.div(a||(a=n(["\n padding: 0 46px 12px;\n margin-top: ",";\n position: relative;\n\n ",";\n"],["\n padding: 0 46px 12px;\n margin-top: ",";\n position: relative;\n\n ",";\n"])),(function(n){return n.theme.spacing.s}),(function(t){return!0!=!!t.isCompact&&o(i||(i=n(['\n div > div > div:not(:first-child) {\n &:after {\n content: "\\25bc";\n color: ',";\n position: absolute;\n top: -30px;\n right: -15px;\n font-size: 32px;\n }\n }\n "],['\n div > div > div:not(:first-child) {\n &:after {\n content: "\\\\25bc";\n color: ',";\n position: absolute;\n top: -30px;\n right: -15px;\n font-size: 32px;\n }\n }\n "])),(function(n){return n.theme.colors.totaliserBubbleColor}))})),h=t.p(l||(l=n(["\n color: ",";\n font-size: 2.625rem;\n line-height: 3rem;\n font-family: ",";\n text-transform: ",";\n"],["\n color: ",";\n font-size: 2.625rem;\n line-height: 3rem;\n font-family: ",";\n text-transform: ",";\n"])),(function(n){return n.theme.colors.totaliserBubbleTotalColor}),(function(n){return n.theme.typography.fontFamilyHeadings}),(function(n){return n.theme.typography.headerTextTransform})),x=t.p(p||(p=n(["\n color: ",";\n font-family: ",";\n text-transform: ",";\n"],["\n color: ",";\n font-family: ",";\n text-transform: ",";\n"])),(function(n){return n.theme.colors.totaliserBubbleTextColor}),(function(n){return n.theme.typography.fontFamilyHeadings}),(function(n){return n.theme.typography.headerTextTransform})),b=t.p(m||(m=n(["\n color: ",";\n font-family: ",";\n text-transform: ",";\n"],["\n color: ",";\n font-family: ",";\n text-transform: ",";\n"])),(function(n){return n.theme.colors.totaliserBubbleTotalColor}),(function(n){return n.theme.typography.fontFamilyHeadings}),(function(n){return n.theme.typography.headerTextTransform})),v=t.span(f||(f=n(["\n display: block;\n text-align: right;\n margin-top: 12px;\n margin-bottom: 0;\n font-family: ",";\n"],["\n display: block;\n text-align: right;\n margin-top: 12px;\n margin-bottom: 0;\n font-family: ",";\n"])),(function(n){return n.theme.typography.fontFamilyBase})),T=t.div(c||(c=n(["\n font-family: ",";\n margin: 0;\n ","\n"],["\n font-family: ",";\n margin: 0;\n ","\n"])),(function(n){return n.theme.typography.fontFamilyHeadings}),(function(t){return t.isCompact&&o(s||(s=n(["\n "," {\n border: none;\n padding: 0;\n }\n "],["\n "," {\n border: none;\n padding: 0;\n }\n "])),y)})),B=t.div(d||(d=n(["\n justify-content: space-between;\n display: flex;\n"],["\n justify-content: space-between;\n display: flex;\n"]))),C=t(r)(u||(u=n([""],[""])));export{x as BubbleText,g as BubbleWrapper,B as CompactWrapper,b as GiftAid,y as ProgressBarWrapper,C as StyledProgressBar,v as Summary,h as Total,T as TotaliserWrapper};
|
|
2
2
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import
|
|
1
|
+
import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import e from"styled-components";var t,r,o,i,a=e.div(t||(t=n(["\n display: flex;\n align-items: center;\n justify-content: start;\n flex: 1;\n"],["\n display: flex;\n align-items: center;\n justify-content: start;\n flex: 1;\n"]))),l=e.div(r||(r=n(["\n flex: 1;\n margin-left: ",";\n text-align: left;\n min-width: 0;\n"],["\n flex: 1;\n margin-left: ",";\n text-align: left;\n min-width: 0;\n"])),(function(n){return n.theme.spacing.xs})),s=e.div(o||(o=n(["\n font-family: ",";\n font-size: ",";\n white-space: normal;\n word-break: break-word;\n"],["\n font-family: ",";\n font-size: ",";\n white-space: normal;\n word-break: break-word;\n"])),(function(n){return n.theme.typography.fontFamilyHeadings}),(function(n){return n.theme.fontSizes.l})),f=e.div(i||(i=n(["\n color: ",";\n margin-top: 4px;\n white-space: normal;\n word-break: break-word;\n"],["\n color: ",";\n margin-top: 4px;\n white-space: normal;\n word-break: break-word;\n"])),(function(n){return n.theme.colors.userBlockExtraText}));export{l as Details,f as Extra,s as Name,a as StyledUserBlock};
|
|
2
2
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={contentMaxWidth:"1020px",useDefaultFocusRect:!0,useDefaultFromControls:!1,useBackgroundStyleLinks:!1,inputBorderWidth:"1px"},r={assetPath:"https://
|
|
1
|
+
var e={contentMaxWidth:"1020px",useDefaultFocusRect:!0,useDefaultFromControls:!1,useBackgroundStyleLinks:!1,inputBorderWidth:"1px"},r={assetPath:"https://rcl.assets.cancerresearchuk.org/",logoUrl:"/",logoAlt:"Cancer Research UK Giving Page",logoSrc:"https://rcl.assets.cancerresearchuk.org/images/logos/cruk-160.png",footerCopyText:"Cancer Research UK is a registered charity in England and Wales (1089464), Scotland (SC041666), the Isle of Man (1103) and Jersey (247). A company limited by guarantee. Registered company in England and Wales(4325234) and the Isle of Man (5713F).",footerLogoAlt:"Registered with Fundraising Regulator",footerLogoSrc:"https://rcl.assets.cancerresearchuk.org/images/logos/fundreg.png"},a={s:"35px",m:"50px",l:"60px",xl:"90px",path:"".concat(r.assetPath,"images/avatar/cruk/")},t={borderRadius:"4px",borderRadiusLarge:"4px",buttonBorderThickness:"2px",textDecoration:"none",textTransform:"none"},o={mobile:"576px",tablet:"768px",desktop:"992px",desktopLarge:"1200px"},n={darkBlue_100:"#edeaf5",darkBlue_200:"#dad2ea",darkBlue_300:"#a896cf",darkBlue_500:"#2e008b",magenta_100:"#fdeaf5",magenta_500:"#e40087",magenta_800:"#BB0071",magenta_900:"#710044",cyan_500:"#00b6ed",cyan_900:"#005870",grey_100:"#f5f5f5",grey_200:"#ededed",grey_300:"#c6c6c6",grey_500:"#9A9A9A",grey_800:"#575757",grey_900:"#2e2d2c",white:"#fff",black:"#000",red:"#D51311",yellow:"#fdc02f",green:"#3d854d"},s={primary:n.darkBlue_500,secondary:n.magenta_500,tertiary:n.cyan_500,textOnPrimary:n.white,textOnSecondary:n.white,textOnTertiary:n.white,disabled:n.grey_300,danger:n.red,warning:n.yellow,success:n.green,info:n.cyan_500,textError:n.red,linkColor:n.darkBlue_500,linkColorHover:n.magenta_800,textDark:n.grey_900,textLight:n.white,progressBar:n.darkBlue_500,progressBarSecondary:n.magenta_500,progressBarBackground:n.grey_200,circularProgress:n.cyan_500,circularProgressSecondary:n.magenta_500,circularProgressBackground:n.grey_300,buttonPrimaryBackground:n.magenta_500,buttonPrimaryText:n.white,buttonPrimaryBorder:n.magenta_500,buttonPrimaryBackgroundHover:n.magenta_800,buttonPrimaryTextHover:n.white,buttonPrimaryBorderHover:n.magenta_800,buttonPrimaryDisabledBackground:n.grey_100,buttonPrimaryDisabledText:n.grey_500,buttonPrimaryDisabledBorder:n.grey_100,buttonSecondaryBackground:n.white,buttonSecondaryText:n.magenta_500,buttonSecondaryBorder:n.magenta_500,buttonSecondaryBackgroundHover:n.magenta_100,buttonSecondaryTextHover:n.magenta_800,buttonSecondaryBorderHover:n.magenta_800,buttonSecondaryDisabledBackground:n.grey_100,buttonSecondaryDisabledText:n.grey_500,buttonSecondaryDisabledBorder:n.grey_100,buttonTertiaryText:n.magenta_500,buttonTertiaryTextHover:n.magenta_800,buttonTertiaryDisabledText:n.grey_500,selectionBorder:n.grey_500,textInputBorder:n.grey_900,inputBorder:n.grey_900,headerBackground:n.white,backgroundLight:n.white,backgroundLightColor:n.darkBlue_200,backgroundMid:n.grey_100,loaderColor1:n.darkBlue_500,loaderColor2:n.magenta_500,loaderColor3:n.cyan_500,paginationText:n.darkBlue_500,paginationActive:n.grey_300,paginationBackground:n.darkBlue_500,footerBackground:n.grey_200,headerBorder:n.grey_300,stepBorder:n.grey_300,stepBackground:n.white,popoverBackground:n.white,textInputExtraInfo:n.grey_200,totaliserBubbleColor:n.grey_200,totaliserBubbleTextColor:n.grey_900,totaliserBubbleTotalColor:n.darkBlue_500,selectBackground:n.grey_900,modalBackdrop:n.grey_900,userBlockExtraText:n.grey_800},g={none:"0",auto:"auto",xxs:"0.5rem",xs:"1rem",s:"1.5rem",m:"2rem",l:"2.5rem",xl:"3rem",xxl:"3.5rem"},i={xs:"0.75rem",s:"0.875rem",m:"1rem",l:"1.25rem",xl:"1.5625rem",xxl:"2rem",xxxl:"2.5rem",xxxxl:"3.125rem"},d={customFonts:[{family:"MuseoSans-500",urlWoff:"".concat(r.assetPath,"fonts/MuseoSansRounded-500.woff"),urlWoff2:"".concat(r.assetPath,"fonts/MuseoSansRounded-500.woff2")}],fontFamilyBase:"Arial, Calibri, nimbussansl, liberationsans, freesans, clean, sans-serif",fontFamilyHeadings:"MuseoSans-500,Calibri,Arial,sans-serif",fontSizeBase:"16px",fontWeightHeavy:"700",fontWeightMedium:"500",fontWeightNormal:"400",fontWeightLight:"300",fontWeightVLight:"100",linkTextDecoration:"underline",lineHeight:"1.5em",headerLineHeight:"1.25em",headerTextTransform:"none"},l={name:"cruk",avatar:a,breakpoint:o,button:t,tokenColors:n,colors:s,spacing:g,fontSizes:i,siteConfig:r,typography:d,utilities:e};export{a as AVATAR,o as BREAKPOINT,t as BUTTON,s as COLORS,i as FONT_SIZES,r as SITE_CONFIG,g as SPACING,n as TOKEN_COLORS,d as TYPOGRAPHY,e as UTILITIES,l as default};
|
|
2
2
|
//# sourceMappingURL=cruk.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as r}from"../../node_modules/tslib/tslib.es6.js";import e from"./cruk.js";var a=r(r({},e.utilities),{useBackgroundStyleLinks:!0}),o=r(r({},e.siteConfig),{logoSrc:"https://
|
|
1
|
+
import{__assign as r}from"../../node_modules/tslib/tslib.es6.js";import e from"./cruk.js";var a=r(r({},e.utilities),{useBackgroundStyleLinks:!0}),o=r(r({},e.siteConfig),{logoSrc:"https://rcl.assets.cancerresearchuk.org/images/logos/su2c-160.png",footerCopyText:"Stand Up To Cancer and Stand Up To Cancer Brand Marks are registered trademarks of the Entertainment Industry Foundation. Cancer Research UK is a registered charity in England and Wales (1089464), Scotland(SC041666), the Isle of Man (1103) and Jersey (247). A company limited by guarantee. Registered company in England and Wales (4325234) and the Isle of Man (5713F). Registered address: 2 Redman Place, London, E20 1JQ. Donations will be made to Cancer Research UK in support of the Stand Up To Cancer campaign."}),t=r(r({},e.avatar),{path:"".concat(o.assetPath,"images/avatar/su2c/")}),n=r(r({},e.button),{borderRadius:"1.5rem",borderRadiusLarge:"2rem",textTransform:"uppercase"}),s=r({},e.breakpoint),c=r(r({},e.tokenColors),{su2cOrange5:"#FF8E00",su2cOrange3:"#FFB04D",su2cOrange2:"#FFDAAD",su2cOrange1:"#FFF6EB",su2cBlack:"#231F20",su2cGrey1:"#555759",su2cGrey2:"#A5A5A9",su2cRed:"#EF4135",su2cYellow:"#FFC325"}),u=r(r({},e.colors),{primary:c.su2cOrange5,secondary:c.su2cOrange5,tertiary:c.su2cBlack,textOnPrimary:c.su2cBlack,progressBar:c.su2cOrange5,progressBarSecondary:c.su2cRed,circularProgress:c.su2cOrange3,circularProgressSecondary:c.su2cRed,linkColor:c.su2cOrange5,linkColorHover:c.su2cRed,backgroundLightColor:c.su2cOrange2,loaderColor1:c.su2cOrange5,loaderColor2:c.su2cRed,loaderColor3:c.su2cBlack,paginationText:c.su2cBlack,paginationBackground:c.su2cBlack,totaliserBubbleColor:c.su2cBlack,totaliserBubbleTextColor:c.white,totaliserBubbleTotalColor:c.white,buttonPrimaryBackground:c.su2cOrange5,buttonPrimaryText:c.su2cBlack,buttonPrimaryBorder:c.su2cOrange5,buttonPrimaryBackgroundHover:c.su2cOrange3,buttonPrimaryTextHover:c.su2cBlack,buttonPrimaryBorderHover:c.su2cOrange3,buttonPrimaryDisabledBackground:c.grey_300,buttonPrimaryDisabledText:c.white,buttonPrimaryDisabledBorder:c.grey_300,buttonSecondaryBackground:c.white,buttonSecondaryText:c.su2cOrange5,buttonSecondaryBorder:c.su2cOrange5,buttonSecondaryBackgroundHover:c.su2cOrange1,buttonSecondaryTextHover:c.su2cOrange5,buttonSecondaryBorderHover:c.su2cOrange5,buttonSecondaryDisabledBackground:c.white,buttonSecondaryDisabledText:c.grey_300,buttonSecondaryDisabledBorder:c.grey_300,buttonTertiaryText:c.su2cOrange5,buttonTertiaryTextHover:c.su2cOrange5,buttonTertiaryDisabledText:c.grey_300}),i=r({},e.spacing),d=r({},e.fontSizes),l=r(r({},e.typography),{customFonts:[{family:"itc_avant_garde_pro_mdbold",urlWoff:"".concat(o.assetPath,"fonts/itc_-_itcavantgardepro-bold-webfont.woff")}],fontFamilyHeadings:"itc_avant_garde_pro_mdbold,Arial,sans-serif",linkTextDecoration:"none",headerLineHeight:"1.5em",headerTextTransform:"uppercase"}),g={name:"su2c",avatar:t,breakpoint:s,button:n,tokenColors:c,colors:u,spacing:i,fontSizes:d,siteConfig:o,typography:l,utilities:a};export{t as AVATAR,s as BREAKPOINT,n as BUTTON,u as COLORS,d as FONT_SIZES,o as SITE_CONFIG,i as SPACING,c as TOKEN_COLORS,l as TYPOGRAPHY,a as UTILITIES,g as default};
|
|
2
2
|
//# sourceMappingURL=su2c.js.map
|
package/lib/types.d.ts
CHANGED
|
@@ -128,7 +128,8 @@ export declare type SpacingType = {
|
|
|
128
128
|
};
|
|
129
129
|
export declare type CustomFontType = {
|
|
130
130
|
family: string;
|
|
131
|
-
|
|
131
|
+
urlWoff?: string;
|
|
132
|
+
urlWoff2?: string;
|
|
132
133
|
};
|
|
133
134
|
export declare type TypographyType = {
|
|
134
135
|
customFonts: [CustomFontType];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cruk/cruk-react-components",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "React components implementing CRUK and SU2C designs",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"publishConfig": {
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"cypress-axe": "1.0.0",
|
|
113
113
|
"cypress-image-snapshot": "^4.0.1",
|
|
114
114
|
"cypress-plugin-tab": "^1.0.5",
|
|
115
|
-
"eslint": "^
|
|
115
|
+
"eslint": "^8.19.0",
|
|
116
116
|
"eslint-config-airbnb": "^19.0.4",
|
|
117
117
|
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
118
118
|
"eslint-config-prettier": "^8.3.0",
|
|
@@ -124,12 +124,12 @@
|
|
|
124
124
|
"eslint-plugin-promise": "^6.0.0",
|
|
125
125
|
"eslint-plugin-react": "^7.26.1",
|
|
126
126
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
127
|
-
"eslint-plugin-storybook": "^0.
|
|
128
|
-
"html-loader": "^
|
|
127
|
+
"eslint-plugin-storybook": "^0.6.1",
|
|
128
|
+
"html-loader": "^4.1.0",
|
|
129
129
|
"html-webpack-plugin": "^5.3.2",
|
|
130
|
-
"husky": "^
|
|
130
|
+
"husky": "^8.0.1",
|
|
131
131
|
"jest": "^27.5.1",
|
|
132
|
-
"lint-staged": "^
|
|
132
|
+
"lint-staged": "^13.0.3",
|
|
133
133
|
"prettier": "^2.4.1",
|
|
134
134
|
"pretty-quick": "^3.1.1",
|
|
135
135
|
"react": "^16.12.0",
|
|
@@ -139,22 +139,24 @@
|
|
|
139
139
|
"rollup-plugin-terser": "^7.0.0",
|
|
140
140
|
"rollup-plugin-typescript2": "^0.31.2",
|
|
141
141
|
"source-map-explorer": "^2.2.2",
|
|
142
|
-
"styled-components": "^5.
|
|
142
|
+
"styled-components": "^5.3.5",
|
|
143
143
|
"ts-loader": "9.2.8",
|
|
144
144
|
"typescript": "^4.4.4",
|
|
145
145
|
"webpack": "^5.53.0",
|
|
146
|
-
"webpack-cli": "4.
|
|
146
|
+
"webpack-cli": "4.10.0",
|
|
147
147
|
"webpack-dev-server": "^4.7.3"
|
|
148
148
|
},
|
|
149
149
|
"peerDependencies": {
|
|
150
150
|
"react": "^16.12.0 || ^17.0.1 ",
|
|
151
151
|
"react-dom": "^16.12.0 || ^17.0.1 ",
|
|
152
|
-
"styled-components": "^5.
|
|
152
|
+
"styled-components": "^5.3.5"
|
|
153
153
|
},
|
|
154
154
|
"dependencies": {
|
|
155
155
|
"@fortawesome/free-brands-svg-icons": "^6.1.1",
|
|
156
156
|
"@fortawesome/free-solid-svg-icons": "^6.1.1",
|
|
157
157
|
"react-focus-lock": "^2.5.2",
|
|
158
|
-
"react-intersection-observer": "^9.1.0"
|
|
158
|
+
"react-intersection-observer": "^9.1.0",
|
|
159
|
+
"react-is": "^18.2.0",
|
|
160
|
+
"styled-components": "^5.3.5"
|
|
159
161
|
}
|
|
160
162
|
}
|