UNPKG

freighter-react-brand-kit

Version:
12 lines 16.9 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.FreighterReactBrandKit=e(require("react")):t.FreighterReactBrandKit=e(t.React)}(window,function(t){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=3)}([function(e,r){e.exports=t},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},C=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var a=C(r(0)),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(){return a.createElement("svg",i({width:"201",height:"76"},this.props,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 201 76"}),a.createElement("g",{transform:"translate(1, 0)"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M121.013 27.0214C122.715 26.635 124.452 28.2596 122.954 29.4476C117.915 33.4439 108.15 55.0542 108.15 55.0542C108.15 55.0542 97.1448 79.7321 82.0106 74.6632C66.8764 69.5944 45.3699 62.6428 18.2153 68.3633C18.2153 68.3633 22.4876 59.8187 16.9119 56.0532C16.9119 56.0532 49.2562 57.4291 78.8004 69.4982C78.8004 69.4982 88.5518 74.0364 95.6966 63.609C102.841 53.1817 105.351 48.6248 105.351 48.6248C105.351 48.6248 90.285 52.6964 93.5399 41.2264C89.8361 45.7551 86.4085 47.0605 86.4085 47.0605C79.3388 49.7039 76.5709 48.72 76.077 46.1541C75.9944 45.9216 75.9115 45.675 75.8276 45.4251C75.2781 43.7894 74.6816 42.0137 73.7802 43.1368C70.4699 47.2648 67.082 49.3289 63.6163 49.3289C60.3454 49.3297 58.7099 47.7719 58.7099 44.6556C58.7099 44.5859 58.7124 44.516 58.7149 44.4461L58.7159 44.4187C58.7171 44.3858 58.7183 44.3528 58.7191 44.3199C57.7863 45.4554 56.6776 46.4341 55.4353 47.2189C52.0446 49.4537 39.4321 54.6774 45.3699 40.6294C45.3699 40.6294 47.5423 36.3571 48.4113 35.2709C48.4686 35.1992 48.5268 35.1276 48.5847 35.0564C49.404 34.049 50.1419 33.1415 46.963 33.7502C45.7372 34.0171 44.4945 34.199 43.2436 34.2948L43.2386 34.2956C40.1086 34.662 35.7649 32.0205 41.7697 24.6288C41.7697 24.6288 43.2024 22.9602 37.9089 24.8133L37.477 25.64C30.3806 39.688 22.1256 54.2429 5.76039 49.4637C-10.6049 44.6845 12.6395 19.2677 17.1291 39.0363C17.1291 39.0363 17.636 42.0776 14.7395 38.6743C11.843 35.2709 -2.59558 47.9465 14.0878 47.8706C14.0878 47.8706 16.8155 48.3586 21.4014 42.0052C24.4429 37.7915 28.0976 30.8877 30.3786 26.4015C27.5056 26.6962 25.1216 26.8705 23.8635 26.9434C18.867 27.2331 21.5463 26.0021 21.5463 26.0021C21.5463 26.0021 26.0395 25.6627 31.1072 24.9578C32.0022 23.1701 32.5529 22.0194 32.5529 22.0194C34.6829 18.0465 37.2869 14.3466 40.3078 11.0008C39.4054 11.1932 38.5051 11.4226 37.6116 11.6829C27.2796 14.6927 17.8473 21.8333 16.2602 23.6849C14.0878 26.2193 13.4361 21.6573 13.4361 21.6573C13.4361 21.6573 23.5294 12.4649 42.3872 8.84036C46.6211 4.70773 52.1057 0.966027 58.6214 0.00603558C58.6214 0.00603558 61.7352 -0.211219 57.318 1.96117C55.4265 2.89123 52.8171 4.79427 49.8954 7.76547C52.4166 7.52673 55.0588 7.39208 57.8249 7.39208C86.5726 7.39208 63.1834 21.3677 58.8387 22.4539C54.4939 23.5401 57.6076 19.3401 57.6076 19.3401C57.6076 19.3401 62.8213 12.3161 49.063 10.5058C48.5479 10.4379 48.0271 10.3966 47.5041 10.3672C44.0374 14.453 41.0255 18.9039 38.5215 23.6412C40.5837 23.2702 44.4471 22.2204 46.7651 19.3717C50.0407 15.3461 55.0155 20.3817 49.4654 22.541C47.5913 23.1931 45.881 24.2443 44.4528 25.622C45.0038 25.3974 45.6074 25.3343 46.193 25.4401C46.7786 25.5458 47.3219 25.8161 47.7596 26.2193C49.0808 27.3157 49.1361 28.3029 49.171 28.9268C49.2261 29.9099 49.2306 29.9908 54.0594 28.1745C61.9524 25.2056 62.9662 27.6676 59.0559 32.5192C55.1456 37.3708 48.5561 50.7671 55.6525 44.6121C56.5103 43.868 58.8084 41.8041 59.5882 39.8071C59.5899 39.8028 59.5919 39.7995 59.5938 39.7961C59.5947 39.7946 59.596 39.7923 59.5969 39.7907C59.5976 39.7894 59.5983 39.788 59.5989 39.7866C60.5588 37.264 61.9368 34.9211 63.6749 32.8561C67.1793 28.5337 70.7619 26.3724 74.4227 26.3724C76.7981 26.3735 77.9858 27.7364 77.9858 30.4612C77.9852 33.1881 76.5639 35.5637 73.7219 37.588C71.3072 39.2909 68.5604 40.4652 65.661 41.0342C65.1704 42.1232 64.8739 43.2894 64.7847 44.4805C64.7848 45.4152 65.1353 45.8826 65.8361 45.8826C67.4714 45.8826 69.1264 45.1815 70.8011 43.7794C72.1262 42.5526 73.3747 41.2456 74.5396 39.8658C75.0955 39.2404 75.8433 40.5564 76.5266 42.1719C78.3794 36.0907 84.4002 27.9052 84.4002 27.9052C85.4694 26.3857 86.2375 26.2864 90.5907 25.7237L90.5918 25.7235L90.7341 25.7051C95.214 25.1258 93.5533 27.0181 93.5533 27.0181C93.5533 27.0181 90.6568 32.2698 87.6444 37.1355C84.6319 42.0013 82.2762 46.0954 87.4899 43.0835C89.6858 41.8149 92.263 39.5279 94.1837 37.8234C94.6099 37.4451 95.0038 37.0956 95.3541 36.7922C95.8271 35.8658 96.3773 34.8772 97.0223 33.8142C97.0223 33.8142 103.864 23.3234 112.36 25.5948C113.126 25.8499 113.806 26.3129 114.324 26.9322C114.843 27.5515 115.179 28.3026 115.295 29.1017C115.594 31.458 115.899 31.0054 116.697 29.8201L116.698 29.8186C116.828 29.6249 116.972 29.4118 117.131 29.1882C117.596 28.5815 118.181 28.0764 118.848 27.7038C119.516 27.3312 120.253 27.099 121.013 27.0214ZM74.7146 28.4171C73.429 28.4174 71.774 29.9944 69.7498 33.1484C68.3529 35.2595 67.1412 37.4873 66.128 39.8071C68.4852 39.1594 70.6242 37.8882 72.3198 36.1273C74.4616 34.0641 75.5325 32.0003 75.5325 29.9359C75.5542 29.4514 75.4538 28.9693 75.2406 28.5337C75.0768 28.4543 74.8967 28.4144 74.7146 28.4171ZM105.062 34.7397C95.6001 47.8706 104.869 47.7739 107.09 45.7463L114.524 33.4153C114.524 33.4153 114.524 21.6087 105.062 34.7397Z"}),a.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M81.5679 40.584C74.0679 46.2406 78.7519 33.3794 82.6619 28.5277C86.5719 23.6761 88.5709 20.8168 80.8339 24.1708C79.3639 24.808 78.8239 25.139 78.5039 25.3353C78.0609 25.6069 78.0389 25.6203 76.5539 25.8299C74.7109 26.1764 72.8049 25.8125 71.2189 24.8114C70.8239 24.5014 70.6209 24.0712 70.4769 23.7649C70.2999 23.3903 70.2109 23.2011 69.9639 23.6467C67.8529 27.4933 65.4799 31.1913 62.8619 34.7126C61.7609 36.2024 60.4659 37.5383 59.0109 38.6847C57.3369 40.0869 55.6819 40.788 54.0469 40.788C53.3459 40.788 52.9949 40.3206 52.9949 39.3858C53.0839 38.1948 53.3809 37.0285 53.8709 35.9396C56.7709 35.3706 59.5179 34.1963 61.9319 32.4934C64.7739 30.469 66.1959 28.0934 66.1959 25.3666C66.1959 22.6418 65.0079 21.2789 62.6329 21.2779C58.9719 21.2779 55.3899 23.4391 51.8849 27.7615C50.1199 29.8556 48.7289 32.2375 47.7709 34.8032C47.7669 34.8134 47.7629 34.823 47.7589 34.8325C47.7559 34.8418 47.7519 34.8509 47.7479 34.8605C47.7459 34.8658 47.7439 34.8712 47.7419 34.8768L47.7389 34.8838C46.1939 38.8758 36.4119 47.8347 38.4389 38.7107C38.4389 38.7107 40.1769 32.1936 48.8659 18.4352C49.7839 16.9825 50.6279 15.653 51.4119 14.426C53.3389 14.3717 54.7789 14.3298 55.0219 14.3077C55.2099 14.2906 55.3939 14.33 55.5879 14.3716C56.2159 14.5062 56.9519 14.6638 58.2799 13.0043C60.0179 10.8319 57.8459 11.5561 57.8459 11.5561L53.1609 11.6952C58.3999 3.56015 60.0179 1.4183 60.0179 1.4183C60.0179 1.4183 61.9729 -0.826482 56.4699 0.332118C55.0099 0.639428 53.9189 0.848968 53.0939 1.00741C50.8079 1.44629 50.5619 1.49362 50.1699 2.14242L44.2279 11.9611L38.3669 12.1354C35.4699 14.9594 37.4249 15.1043 38.9459 14.887C39.3739 14.8259 40.7699 14.7592 42.5749 14.693L33.2979 30.0212C32.6289 31.1408 32.0389 32.3054 31.5319 33.5066L31.5239 33.5208C25.1459 45.8525 20.3359 38.4935 29.1699 28.8626C38.0049 19.2318 30.1119 19.6662 27.2149 20.1731C25.2069 20.5244 19.7909 23.3106 16.6559 24.988C19.9949 19.4529 23.6839 13.8908 26.7079 10.7595C30.2069 7.1373 31.3189 7.8671 32.2529 8.4799C32.9609 8.9452 33.5669 9.343 35.0359 7.7182C38.4389 3.95273 33.0809 4.74926 33.0809 4.74926C19.7569 6.7044 12.3709 20.2455 12.3709 20.2455L0.204888 41.8969C-0.905112 43.8734 2.77089 43.5022 4.61389 43.3162C4.72089 43.3052 4.82389 43.2949 4.91789 43.2857C4.96689 43.281 5.01289 43.2767 5.05689 43.2727C6.64989 43.1279 8.53289 39.3624 8.53289 39.3624C9.98289 36.6639 12.6909 31.6544 15.7929 26.4295C16.7699 26.1616 17.7309 25.8377 18.6699 25.4592C23.8529 23.421 23.2759 24.2396 21.9849 26.0695C21.6699 26.515 21.3139 27.0205 20.9879 27.5592C20.7249 27.9919 20.2879 28.6073 19.7629 29.3463L19.7429 29.3742C16.9189 33.3412 11.5979 40.8176 17.0769 42.7658C23.0409 44.8863 27.7829 40.3231 29.9879 38.201C30.0379 38.1528 30.0869 38.1058 30.1339 38.0602L30.2239 37.9742C29.7969 41.2369 30.8989 44.242 36.4839 44.1416C36.4839 44.1416 41.9099 44.7132 46.9379 38.9098C46.9269 39.1273 46.9199 39.3444 46.9199 39.5609C46.9199 42.6773 48.5559 44.235 51.8269 44.2342C55.2919 44.2342 59.9779 40.5568 63.9109 36.1981C64.4879 35.5583 65.0129 34.9659 65.4979 34.4196L65.6189 34.283C68.3489 31.2009 69.7429 29.6278 71.6459 29.3487C72.0749 29.2871 72.5199 29.2075 72.9619 29.1282C73.1719 29.0906 73.3819 29.053 73.5899 29.0175C76.1499 28.5791 75.8119 29.1076 75.1929 30.0746C75.1649 30.1173 75.1379 30.1609 75.1089 30.2054C75.0629 30.2787 75.0149 30.3543 74.9679 30.4317C72.5229 34.4333 71.8669 35.5614 71.8669 35.5614C64.7789 48.2513 78.3199 45.3248 81.3909 43.5673C84.6409 41.7077 85.4669 37.6427 81.5679 40.584ZM57.9599 28.0538C59.9839 24.8998 61.6389 23.3227 62.9249 23.3225C63.1069 23.3197 63.2869 23.3597 63.4509 23.4391C63.6639 23.8746 63.7649 24.3568 63.7429 24.8412C63.7429 26.9056 62.6719 28.9694 60.5299 31.0326C58.8349 32.7935 56.6959 34.0648 54.3379 34.7126C55.3519 32.3928 56.5629 30.1649 57.9599 28.0538Z",transform:"translate(113.884 4.8876)"}),a.createElement("path",{d:"M8.7667 3.7654C8.7667 5.845 6.8042 7.5308 4.3834 7.5308C1.9625 7.5308 0 5.845 0 3.7654C0 1.6858 1.9625 0 4.3834 0C6.8042 0 8.7667 1.6858 8.7667 3.7654Z",transform:"translate(88.4551 15.7026)"})))},e}(a.Component);e.FreighterLogo=u},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},C=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var a=C(r(0)),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(){return a.createElement("svg",i({width:"247",height:"204"},this.props,{fill:"none",viewBox:"0 0 255 212",xmlns:"http://www.w3.org/2000/svg"}),a.createElement("g",{transform:"translate(4 4)"},a.createElement("path",{d:"M211.634 105.355C231.16 85.8291 231.16 54.1709 211.634 34.6447C192.108 15.1184 160.449 15.1184 140.923 34.6447L122.995 52.5732L105.355 34.934C85.8291 15.4078 54.1709 15.4078 34.6447 34.934C15.1184 54.4602 15.1184 86.1184 34.6447 105.645L87.6776 158.678C120.289 191.289 125.789 191.277 158.388 158.678L211.634 105.355Z",fill:"#FF4242"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M47.1275 52.4527C52.4003 54.0957 55.3429 59.702 53.7 64.9748C52.0396 70.3035 53.3313 76.312 57.5239 80.5026L84.5187 107.485C88.4248 111.39 88.4263 117.721 84.5219 121.627C80.6175 125.534 74.2859 125.535 70.3798 121.631L43.3849 94.6479C33.7297 84.9971 30.8203 71.1731 34.6054 59.0252C36.2483 53.7524 41.8547 50.8098 47.1275 52.4527Z",fill:"white",fillOpacity:"0.2"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M105.355 34.9338L122.994 52.573L140.923 34.6445C160.449 15.1183 192.107 15.1183 211.634 34.6445C231.16 54.1707 231.16 85.8289 211.634 105.355L158.388 158.677C125.789 191.276 120.289 191.289 87.6776 158.677L34.6447 105.644C15.1184 86.1182 15.1184 54.46 34.6447 34.9338C54.1709 15.4076 85.8291 15.4076 105.355 34.9338ZM20.5026 20.7917C-6.83418 48.1284 -6.8342 92.4499 20.5026 119.787L73.5354 172.819C81.6172 180.901 89.0963 188.081 96.1464 193.201C103.289 198.39 112.204 203.133 123.041 203.131C133.878 203.129 142.79 198.383 149.93 193.196C156.977 188.075 164.453 180.897 172.53 172.819L225.777 119.497C225.78 119.494 225.783 119.491 225.787 119.487M225.787 119.487C253.113 92.1497 253.11 47.8358 225.777 20.5025C198.439 -6.83363 154.118 -6.83459 126.781 20.5022L122.995 24.2888L119.498 20.7918C92.1609 -6.54485 47.8393 -6.54506 20.5026 20.7917",fill:"#101010"})))},e}(a.Component);e.Heart=u},function(t,e,r){"use strict";function n(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0}),n(r(1)),n(r(2)),n(r(4))},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},C=this&&this.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&(r[n[o]]=t[n[o]])}return r},a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var l=a(r(0)),c=a(r(5)),s=u(r(6)),f=r(1),p=r(2),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(){var t,e=this.props,r=e.className,n=C(e,["className"]);return l.createElement("p",i({},n,{className:s.default((t={},t[c.madeWithLove]=!0,t[r]=!!r,t))}),"Made with ",l.createElement(p.Heart,{className:c.heart})," by ",l.createElement("a",{target:"_blank",href:"https://freighter.studio"},l.createElement(f.FreighterLogo,{className:c.logo})))},e}(l.Component);e.MadeWithLove=h},function(t,e,r){t.exports={madeWithLove:"MadeWithLove__madeWithLove___2MEl4",heart:"MadeWithLove__heart___39Rhn",logo:"MadeWithLove__logo___3b62e"}},function(t,e,r){var n; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ !function(){"use strict";var r={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var i=typeof n;if("string"===i||"number"===i)t.push(n);else if(Array.isArray(n)&&n.length){var C=o.apply(null,n);C&&t.push(C)}else if("object"===i)for(var a in n)r.call(n,a)&&n[a]&&t.push(a)}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(n=function(){return o}.apply(e,[]))||(t.exports=n)}()}])});