dt-shared-front 1.0.6 → 1.0.7

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/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- this["shared-front"]=function(n){var o={};function t(e){if(o[e])return o[e].exports;var r=o[e]={i:e,l:!1,exports:{}};return n[e].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=n,t.c=o,t.d=function(n,o,e){t.o(n,o)||Object.defineProperty(n,o,{enumerable:!0,get:e})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,o){if(1&o&&(n=t(n)),8&o)return n;if(4&o&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(t.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&o&&"string"!=typeof n)for(var r in n)t.d(e,r,function(o){return n[o]}.bind(null,r));return e},t.n=function(n){var o=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(o,"a",o),o},t.o=function(n,o){return Object.prototype.hasOwnProperty.call(n,o)},t.p="",t(t.s=7)}([function(n,o){n.exports=require("react")},function(n,o,t){var e=t(5),r=t(6),a="string"==typeof e?[[n.i,e,""]]:e;(o=n.exports=e.locals||{})._getContent=function(){return a},o._getCss=function(){return""+e},o._insertCss=function(n){return r(a,n)}},function(n,o){n.exports=require("classnames")},function(n,o,t){"use strict";function e(n,o){return function(n){if(Array.isArray(n))return n}(n)||function(n,o){var t=n&&("undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"]);if(null==t)return;var e,r,a=[],c=!0,l=!1;try{for(t=t.call(n);!(c=(e=t.next()).done)&&(a.push(e.value),!o||a.length!==o);c=!0);}catch(n){l=!0,r=n}finally{try{c||null==t.return||t.return()}finally{if(l)throw r}}return a}(n,o)||function(n,o){if(!n)return;if("string"==typeof n)return r(n,o);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(n);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(n,o)}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(n,o){(null==o||o>n.length)&&(o=n.length);for(var t=0,e=new Array(o);t<o;t++)e[t]=n[t];return e}n.exports=function(n){var o=e(n,4),t=o[1],r=o[3];if(!r)return t;if("function"==typeof btoa){var a=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),l="/*# ".concat(c," */"),i=r.sources.map((function(n){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(n," */")}));return[t].concat(i).concat([l]).join("\n")}return[t].join("\n")}},function(n,o,t){"use strict";n.exports=function(n){var o=[];return o.toString=function(){return this.map((function(o){var t=n(o);return o[2]?"@media ".concat(o[2]," {").concat(t,"}"):t})).join("")},o.i=function(n,t,e){"string"==typeof n&&(n=[[null,n,""]]);var r={};if(e)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<n.length;l++){var i=[].concat(n[l]);e&&r[i[0]]||(t&&(i[2]?i[2]="".concat(t," and ").concat(i[2]):i[2]=t),o.push(i))}},o}},function(n,o,t){"use strict";t.r(o);var e=t(3),r=t.n(e),a=t(4),c=t.n(a)()(r.a);c.push([n.i,".X-qXAjOlRK-MvEYzf\\+vJhw\\=\\={border-radius:12px;border:none;white-space:nowrap;cursor:pointer;box-shadow:none;position:relative;display:inline-flex;align-items:center;justify-content:center}.eulj795QGDKOUqnlkwRcjg\\=\\={font-weight:400;padding:4px 8px;font-size:12px;gap:4px;height:32px}.kA9VI1\\+kphZMg\\+k4vwaA0A\\=\\={font-weight:400;padding:8px 12px;font-size:14px;line-height:14px;gap:4px}.kA9VI1\\+kphZMg\\+k4vwaA0A\\=\\=.J7ifRezUPIpp0n8u5ey6eA\\=\\={padding:8px}.E71L1YsDYOk9r7JoN8iRtA\\=\\={font-weight:450;padding:14px 20px;font-size:16px;line-height:16px;gap:8px}.E71L1YsDYOk9r7JoN8iRtA\\=\\=.J7ifRezUPIpp0n8u5ey6eA\\=\\={padding:12px}.PG1dRW1\\+2uEbSJL4AczvWA\\=\\={font-weight:600;padding:15px 24px;gap:12px;font-size:16px;line-height:22px}.PG1dRW1\\+2uEbSJL4AczvWA\\=\\=.J7ifRezUPIpp0n8u5ey6eA\\=\\={padding:18px}.mYOHniHZN\\+wzW6HIbZsnIg\\=\\={background-color:var(--button-default-color);color:var(--button-default-color-text);border:2px solid var(--button-default-color)}.mYOHniHZN\\+wzW6HIbZsnIg\\=\\=>svg{color:var(--button-default-color-text)}@media(hover: hover){.mYOHniHZN\\+wzW6HIbZsnIg\\=\\=:hover{background-color:var(--button-default-color--hover);border-color:var(--button-default-color--hover)}}.mYOHniHZN\\+wzW6HIbZsnIg\\=\\=:active{background-color:var(--button-default-color--active);border-color:var(--button-default-color--active)}.bPOB9hdxMHyvlNMblpaD2w\\=\\={background-color:var(--button-secondary-color);color:var(--button-secondary-color-text);border:2px solid var(--button-secondary-color)}.bPOB9hdxMHyvlNMblpaD2w\\=\\=>svg{color:var(--button-secondary-color-text)}@media(hover: hover){.bPOB9hdxMHyvlNMblpaD2w\\=\\=:hover{background-color:var(--button-secondary-color--hover);border-color:var(--button-secondary-color--hover);color:var(--button-secondary-color-text--hover)}.bPOB9hdxMHyvlNMblpaD2w\\=\\=:hover>svg{color:var(--button-secondary-color-text--hover)}}.bPOB9hdxMHyvlNMblpaD2w\\=\\=:active{background-color:var(--button-secondary-color--active);border-color:var(--button-secondary-color--active);color:var(--button-secondary-color-text--active)}.EzgVgoT-fH3ME93vMPlWkQ\\=\\={flex-direction:row-reverse}.uPFlSZFrv33G6Syy-kE8BQ\\=\\={flex-direction:row}.X-qXAjOlRK-MvEYzf\\+vJhw\\=\\=:disabled{background-color:var(--button-default-color--disabled);border-color:var(--button-default-color--disabled);cursor:not-allowed}.X-qXAjOlRK-MvEYzf\\+vJhw\\=\\=:disabled:hover,.X-qXAjOlRK-MvEYzf\\+vJhw\\=\\=:disabled:active{background-color:var(--button-default-color--disabled)}.IZ3gtInjJxgFyjTmoON\\+MA\\=\\={color:rgba(0,0,0,0) !important;cursor:wait}.IZ3gtInjJxgFyjTmoON\\+MA\\=\\= .Gso9o47aQw7gpIb6flgPow\\=\\={visibility:hidden}.Gso9o47aQw7gpIb6flgPow\\=\\={vertical-align:bottom}.BQwBbNv\\+45pKaoDXKLrnZQ\\=\\={width:16px;height:16px}.SgRrCfWD7dbhNcWRDLF41w\\=\\={width:16px;height:16px}._3L-IQ9YS\\+6jmHw0pc6ZnCQ\\=\\={width:20px;height:20px}.WSggmWymdxGEd6uWzS8iPA\\=\\={width:24px;height:24px}.MzXx8SzLHp6qmfyu-p4HIA\\=\\={color:var(--button-default-color-text)}.MzXx8SzLHp6qmfyu-p4HIA\\=\\=>*{fill:currentColor}.n0RQniAXmk-2hu5UTGAkCA\\=\\={color:var(--button-secondary-color-text)}.n0RQniAXmk-2hu5UTGAkCA\\=\\=>*{fill:currentColor}.fpWXxEzExVJNFtiBu-YVhA\\=\\={margin:0}.v14UEAGpVOAxK8oK9tZ32g\\=\\={position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}._7pr9vlHwvaNj0kihq3zwcQ\\=\\={width:24px;height:24px}.S4tzpabhSuMX6nxSoa3cxQ\\=\\={width:28px;height:28px}._5X5UT-TFHZe-BiWWUwq7og\\=\\={color:var(--button-default-color-text)}","",{version:3,sources:["webpack://./src/components/button/button.module.scss"],names:[],mappings:"AAcA,6BACE,kBAAA,CACA,WAAA,CACA,kBAAA,CACA,cAAA,CACA,eAAA,CACA,iBAAA,CACA,mBAAA,CACA,kBAAA,CACA,sBAAA,CAEA,4BACE,eAAA,CACA,eAAA,CACA,cAAA,C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-default: var(--button-default-color);\n$color-button-default-text: var(--button-default-color-text);\n$color-button-default--hover: var(--button-default-color--hover);\n$color-button-default--active: var(--button-default-color--active);\n$color-button-default--disabled: var(--button-default-color--disabled);\n\n$color-button-secondary: var(--button-secondary-color);\n$color-button-secondary-text: var(--button-secondary-color-text);\n$color-button-secondary--hover: var(--button-secondary-color--hover);\n$color-button-secondary--active: var(--button-secondary-color--active);\n$color-button-secondary--disabled: var(--button-secondary-color--disabled);\n\n$font-size-button-large: var(--size-text-l);\n\n.button {\n border-radius: 12px;\n border: none;\n white-space: nowrap;\n cursor: pointer;\n box-shadow: none;\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n\n &__smallS {\n font-weight: 400;\n padding: 4px 8px;\n font-size: 12px;\n // line-height: 16px;\n gap: 4px;\n height: 32px;\n }\n\n &__small {\n font-weight: 400;\n padding: 8px 12px;\n font-size: 14px;\n line-height: 14px;\n gap: 4px;\n\n\n &.withIcon {\n padding: 8px;\n }\n }\n\n &__medium {\n font-weight: 450;\n padding: 14px 20px;\n font-size: 16px;\n line-height: 16px;\n gap: 8px;\n\n &.withIcon {\n padding: 12px;\n }\n }\n\n &__large {\n font-weight: 600;\n padding: 15px 24px;\n gap: 12px;\n font-size: 16px;\n line-height: 22px;\n\n &.withIcon {\n padding: 18px;\n }\n }\n\n &__default {\n background-color: $color-button-default;\n color: $color-button-default-text;\n border: 2px solid $color-button-default;\n\n & > svg {\n color: $color-button-default-text;\n }\n\n @media(hover: hover) {\n &:hover {\n background-color: $color-button-default--hover;\n border-color: $color-button-default--hover;\n }\n }\n\n &:active {\n background-color: $color-button-default--active;\n border-color: $color-button-default--active;\n }\n }\n\n &__secondary {\n background-color: $color-button-secondary;\n color: $color-button-secondary-text;\n border: 2px solid $color-button-secondary;\n\n & > svg {\n color: $color-button-secondary-text;\n }\n\n @media(hover: hover) {\n &:hover {\n background-color: $color-button-secondary--hover;\n border-color: $color-button-secondary--hover;\n color: var(--button-secondary-color-text--hover);\n\n & > svg {\n color: var(--button-secondary-color-text--hover);\n }\n }\n }\n\n &:active {\n background-color: $color-button-secondary--active;\n border-color: $color-button-secondary--active;\n color: var(--button-secondary-color-text--active);\n }\n }\n\n // &__fourth {\n // background-color: $color-button-fourth;\n // color: $color-button-fourth-text;\n // border: 2px solid $color-button-fourth-text;\n\n // & > svg {\n // color: $color-button-default-text;\n // }\n\n // &:hover {\n // background-color: $color-button-fourth--hover;\n // border-color: $color-button-fourth--hover;\n\n // color: $color-button-fourth;\n // }\n\n // &:active {\n // background-color: $color-button-fourth--hover;\n // border-color: $color-button-fourth--hover;\n\n // color: $color-button-fourth;\n // }\n // }\n\n &__icon_left {\n flex-direction: row-reverse;\n }\n\n &__icon_right {\n flex-direction: row;\n }\n\n &:disabled {\n background-color: $color-button-default--disabled;\n border-color: $color-button-default--disabled;\n cursor: not-allowed;\n\n &:hover,\n &:active {\n background-color: $color-button-default--disabled;\n }\n }\n}\n\n// @media (max-width: 1023px) {\n// .button {\n// &__small {\n// padding: 8px;\n// }\n\n// &__medium {\n// padding: 10px;\n// font-size: 16px;\n// }\n\n// &__large {\n// padding: 12px;\n// }\n// }\n// }\n\n.loading {\n color: transparent !important;\n\n cursor: wait;\n & .icon {\n visibility: hidden;\n }\n}\n\n.icon {\n vertical-align: bottom;\n\n &__smallS {\n width: 16px;\n height: 16px;\n }\n\n &__small {\n width: 16px;\n height: 16px;\n }\n\n &__medium {\n width: 20px;\n height: 20px;\n }\n\n &__large {\n width: 24px;\n height: 24px;\n }\n\n &__default {\n color: $color-button-default-text;\n & > * {\n fill: currentColor;\n }\n }\n\n &__secondary {\n color: $color-button-secondary-text;\n & > * {\n fill: currentColor;\n }\n }\n\n &__only {\n margin: 0;\n }\n}\n\n.loader {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n\n &__medium {\n width: 24px;\n height: 24px;\n }\n\n &__large {\n width: 28px;\n height: 28px;\n }\n\n &__default {\n color: $color-button-default-text;\n }\n}\n"],sourceRoot:""}]),c.locals={button:"X-qXAjOlRK-MvEYzf+vJhw==",button__smallS:"eulj795QGDKOUqnlkwRcjg==",button__small:"kA9VI1+kphZMg+k4vwaA0A==",withIcon:"J7ifRezUPIpp0n8u5ey6eA==",button__medium:"E71L1YsDYOk9r7JoN8iRtA==",button__large:"PG1dRW1+2uEbSJL4AczvWA==",button__default:"mYOHniHZN+wzW6HIbZsnIg==",button__secondary:"bPOB9hdxMHyvlNMblpaD2w==",button__icon_left:"EzgVgoT-fH3ME93vMPlWkQ==",button__icon_right:"uPFlSZFrv33G6Syy-kE8BQ==",loading:"IZ3gtInjJxgFyjTmoON+MA==",icon:"Gso9o47aQw7gpIb6flgPow==",icon__smallS:"BQwBbNv+45pKaoDXKLrnZQ==",icon__small:"SgRrCfWD7dbhNcWRDLF41w==",icon__medium:"_3L-IQ9YS+6jmHw0pc6ZnCQ==",icon__large:"WSggmWymdxGEd6uWzS8iPA==",icon__default:"MzXx8SzLHp6qmfyu-p4HIA==",icon__secondary:"n0RQniAXmk-2hu5UTGAkCA==",icon__only:"fpWXxEzExVJNFtiBu-YVhA==",loader:"v14UEAGpVOAxK8oK9tZ32g==",loader__medium:"_7pr9vlHwvaNj0kihq3zwcQ==",loader__large:"S4tzpabhSuMX6nxSoa3cxQ==",loader__default:"_5X5UT-TFHZe-BiWWUwq7og=="},o.default=c},function(n,o,t){"use strict";
1
+ exports["shared-front"]=function(n){var o={};function t(e){if(o[e])return o[e].exports;var r=o[e]={i:e,l:!1,exports:{}};return n[e].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=n,t.c=o,t.d=function(n,o,e){t.o(n,o)||Object.defineProperty(n,o,{enumerable:!0,get:e})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,o){if(1&o&&(n=t(n)),8&o)return n;if(4&o&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(t.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&o&&"string"!=typeof n)for(var r in n)t.d(e,r,function(o){return n[o]}.bind(null,r));return e},t.n=function(n){var o=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(o,"a",o),o},t.o=function(n,o){return Object.prototype.hasOwnProperty.call(n,o)},t.p="",t(t.s=7)}([function(n,o){n.exports=require("react")},function(n,o,t){var e=t(5),r=t(6),a="string"==typeof e?[[n.i,e,""]]:e;(o=n.exports=e.locals||{})._getContent=function(){return a},o._getCss=function(){return""+e},o._insertCss=function(n){return r(a,n)}},function(n,o){n.exports=require("classnames")},function(n,o,t){"use strict";function e(n,o){return function(n){if(Array.isArray(n))return n}(n)||function(n,o){var t=n&&("undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"]);if(null==t)return;var e,r,a=[],c=!0,l=!1;try{for(t=t.call(n);!(c=(e=t.next()).done)&&(a.push(e.value),!o||a.length!==o);c=!0);}catch(n){l=!0,r=n}finally{try{c||null==t.return||t.return()}finally{if(l)throw r}}return a}(n,o)||function(n,o){if(!n)return;if("string"==typeof n)return r(n,o);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(n);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(n,o)}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(n,o){(null==o||o>n.length)&&(o=n.length);for(var t=0,e=new Array(o);t<o;t++)e[t]=n[t];return e}n.exports=function(n){var o=e(n,4),t=o[1],r=o[3];if(!r)return t;if("function"==typeof btoa){var a=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),l="/*# ".concat(c," */"),i=r.sources.map((function(n){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(n," */")}));return[t].concat(i).concat([l]).join("\n")}return[t].join("\n")}},function(n,o,t){"use strict";n.exports=function(n){var o=[];return o.toString=function(){return this.map((function(o){var t=n(o);return o[2]?"@media ".concat(o[2]," {").concat(t,"}"):t})).join("")},o.i=function(n,t,e){"string"==typeof n&&(n=[[null,n,""]]);var r={};if(e)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<n.length;l++){var i=[].concat(n[l]);e&&r[i[0]]||(t&&(i[2]?i[2]="".concat(t," and ").concat(i[2]):i[2]=t),o.push(i))}},o}},function(n,o,t){"use strict";t.r(o);var e=t(3),r=t.n(e),a=t(4),c=t.n(a)()(r.a);c.push([n.i,".X-qXAjOlRK-MvEYzf\\+vJhw\\=\\={border-radius:12px;border:none;white-space:nowrap;cursor:pointer;box-shadow:none;position:relative;display:inline-flex;align-items:center;justify-content:center}.eulj795QGDKOUqnlkwRcjg\\=\\={font-weight:400;padding:4px 8px;font-size:12px;gap:4px;height:32px}.kA9VI1\\+kphZMg\\+k4vwaA0A\\=\\={font-weight:400;padding:8px 12px;font-size:14px;line-height:14px;gap:4px}.kA9VI1\\+kphZMg\\+k4vwaA0A\\=\\=.J7ifRezUPIpp0n8u5ey6eA\\=\\={padding:8px}.E71L1YsDYOk9r7JoN8iRtA\\=\\={font-weight:450;padding:14px 20px;font-size:16px;line-height:16px;gap:8px}.E71L1YsDYOk9r7JoN8iRtA\\=\\=.J7ifRezUPIpp0n8u5ey6eA\\=\\={padding:12px}.PG1dRW1\\+2uEbSJL4AczvWA\\=\\={font-weight:600;padding:15px 24px;gap:12px;font-size:16px;line-height:22px}.PG1dRW1\\+2uEbSJL4AczvWA\\=\\=.J7ifRezUPIpp0n8u5ey6eA\\=\\={padding:18px}.mYOHniHZN\\+wzW6HIbZsnIg\\=\\={background-color:var(--button-default-color);color:var(--button-default-color-text);border:2px solid var(--button-default-color)}.mYOHniHZN\\+wzW6HIbZsnIg\\=\\=>svg{color:var(--button-default-color-text)}@media(hover: hover){.mYOHniHZN\\+wzW6HIbZsnIg\\=\\=:hover{background-color:var(--button-default-color--hover);border-color:var(--button-default-color--hover)}}.mYOHniHZN\\+wzW6HIbZsnIg\\=\\=:active{background-color:var(--button-default-color--active);border-color:var(--button-default-color--active)}.bPOB9hdxMHyvlNMblpaD2w\\=\\={background-color:var(--button-secondary-color);color:var(--button-secondary-color-text);border:2px solid var(--button-secondary-color)}.bPOB9hdxMHyvlNMblpaD2w\\=\\=>svg{color:var(--button-secondary-color-text)}@media(hover: hover){.bPOB9hdxMHyvlNMblpaD2w\\=\\=:hover{background-color:var(--button-secondary-color--hover);border-color:var(--button-secondary-color--hover);color:var(--button-secondary-color-text--hover)}.bPOB9hdxMHyvlNMblpaD2w\\=\\=:hover>svg{color:var(--button-secondary-color-text--hover)}}.bPOB9hdxMHyvlNMblpaD2w\\=\\=:active{background-color:var(--button-secondary-color--active);border-color:var(--button-secondary-color--active);color:var(--button-secondary-color-text--active)}.EzgVgoT-fH3ME93vMPlWkQ\\=\\={flex-direction:row-reverse}.uPFlSZFrv33G6Syy-kE8BQ\\=\\={flex-direction:row}.X-qXAjOlRK-MvEYzf\\+vJhw\\=\\=:disabled{background-color:var(--button-default-color--disabled);border-color:var(--button-default-color--disabled);cursor:not-allowed}.X-qXAjOlRK-MvEYzf\\+vJhw\\=\\=:disabled:hover,.X-qXAjOlRK-MvEYzf\\+vJhw\\=\\=:disabled:active{background-color:var(--button-default-color--disabled)}.IZ3gtInjJxgFyjTmoON\\+MA\\=\\={color:rgba(0,0,0,0) !important;cursor:wait}.IZ3gtInjJxgFyjTmoON\\+MA\\=\\= .Gso9o47aQw7gpIb6flgPow\\=\\={visibility:hidden}.Gso9o47aQw7gpIb6flgPow\\=\\={vertical-align:bottom}.BQwBbNv\\+45pKaoDXKLrnZQ\\=\\={width:16px;height:16px}.SgRrCfWD7dbhNcWRDLF41w\\=\\={width:16px;height:16px}._3L-IQ9YS\\+6jmHw0pc6ZnCQ\\=\\={width:20px;height:20px}.WSggmWymdxGEd6uWzS8iPA\\=\\={width:24px;height:24px}.MzXx8SzLHp6qmfyu-p4HIA\\=\\={color:var(--button-default-color-text)}.MzXx8SzLHp6qmfyu-p4HIA\\=\\=>*{fill:currentColor}.n0RQniAXmk-2hu5UTGAkCA\\=\\={color:var(--button-secondary-color-text)}.n0RQniAXmk-2hu5UTGAkCA\\=\\=>*{fill:currentColor}.fpWXxEzExVJNFtiBu-YVhA\\=\\={margin:0}.v14UEAGpVOAxK8oK9tZ32g\\=\\={position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}._7pr9vlHwvaNj0kihq3zwcQ\\=\\={width:24px;height:24px}.S4tzpabhSuMX6nxSoa3cxQ\\=\\={width:28px;height:28px}._5X5UT-TFHZe-BiWWUwq7og\\=\\={color:var(--button-default-color-text)}","",{version:3,sources:["webpack://./src/components/button/button.module.scss"],names:[],mappings:"AAcA,6BACE,kBAAA,CACA,WAAA,CACA,kBAAA,CACA,cAAA,CACA,eAAA,CACA,iBAAA,CACA,mBAAA,CACA,kBAAA,CACA,sBAAA,CAEA,4BACE,eAAA,CACA,eAAA,CACA,cAAA,CAEA,OAAA,CACA,WAAA,CAGF,8BACE,eAAA,CACA,gBAAA,CACA,cAAA,CACA,gBAAA,CACA,OAAA,CAGA,yDACE,WAAA,CAIJ,4BACE,eAAA,CACA,iBAAA,CACA,cAAA,CACA,gBAAA,CACA,OAAA,CAEA,uDACE,YAAA,CAIJ,6BACE,eAAA,CACA,iBAAA,CACA,QAAA,CACA,cAAA,CACA,gBAAA,CAEA,wDACE,YAAA,CAIJ,6BACE,4CAxEmB,CAyEnB,sCAxEwB,CAyExB,4CAAA,CAEA,iCACE,sCA5EsB,CA+ExB,qBACE,mCACE,mDAhFsB,CAiFtB,+CAjFsB,CAAA,CAqF1B,oCACE,oDArFyB,CAsFzB,gDAtFyB,CA0F7B,4BACE,8CAxFqB,CAyFrB,wCAxF0B,CAyF1B,8CAAA,CAEA,gCACE,wCA5FwB,CA+F1B,qBACE,kCACE,qDAhGwB,CAiGxB,iDAjGwB,CAkGxB,+CAAA,CAEA,sCACE,+CAAA,CAAA,CAKN,mCACE,sDA1G2B,CA2G3B,kDA3G2B,CA4G3B,gDAAA,CA4BJ,4BACE,0BAAA,CAGF,4BACE,kBAAA,CAGF,sCACE,sDAtJ6B,CAuJ7B,kDAvJ6B,CAwJ7B,kBAAA,CAEA,yFAEE,sDA5J2B,CAkLjC,6BACE,8BAAA,CAEA,WAAA,CACA,yDACE,iBAAA,CAIJ,4BACE,qBAAA,CAEA,6BACE,UAAA,CACA,WAAA,CAGF,4BACE,UAAA,CACA,WAAA,CAGF,8BACE,UAAA,CACA,WAAA,CAGF,4BACE,UAAA,CACA,WAAA,CAGF,4BACE,sCAtNwB,CAuNxB,8BACE,iBAAA,CAIJ,4BACE,wCAvN0B,CAwN1B,8BACE,iBAAA,CAIJ,4BACE,QAAA,CAIJ,4BACE,iBAAA,CACA,OAAA,CACA,QAAA,CACA,+BAAA,CAEA,6BACE,UAAA,CACA,WAAA,CAGF,4BACE,UAAA,CACA,WAAA,CAGF,6BACE,sCAzPwB",sourcesContent:["$color-button-default: var(--button-default-color);\n$color-button-default-text: var(--button-default-color-text);\n$color-button-default--hover: var(--button-default-color--hover);\n$color-button-default--active: var(--button-default-color--active);\n$color-button-default--disabled: var(--button-default-color--disabled);\n\n$color-button-secondary: var(--button-secondary-color);\n$color-button-secondary-text: var(--button-secondary-color-text);\n$color-button-secondary--hover: var(--button-secondary-color--hover);\n$color-button-secondary--active: var(--button-secondary-color--active);\n$color-button-secondary--disabled: var(--button-secondary-color--disabled);\n\n$font-size-button-large: var(--size-text-l);\n\n.button {\n border-radius: 12px;\n border: none;\n white-space: nowrap;\n cursor: pointer;\n box-shadow: none;\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n\n &__smallS {\n font-weight: 400;\n padding: 4px 8px;\n font-size: 12px;\n // line-height: 16px;\n gap: 4px;\n height: 32px;\n }\n\n &__small {\n font-weight: 400;\n padding: 8px 12px;\n font-size: 14px;\n line-height: 14px;\n gap: 4px;\n\n\n &.withIcon {\n padding: 8px;\n }\n }\n\n &__medium {\n font-weight: 450;\n padding: 14px 20px;\n font-size: 16px;\n line-height: 16px;\n gap: 8px;\n\n &.withIcon {\n padding: 12px;\n }\n }\n\n &__large {\n font-weight: 600;\n padding: 15px 24px;\n gap: 12px;\n font-size: 16px;\n line-height: 22px;\n\n &.withIcon {\n padding: 18px;\n }\n }\n\n &__default {\n background-color: $color-button-default;\n color: $color-button-default-text;\n border: 2px solid $color-button-default;\n\n & > svg {\n color: $color-button-default-text;\n }\n\n @media(hover: hover) {\n &:hover {\n background-color: $color-button-default--hover;\n border-color: $color-button-default--hover;\n }\n }\n\n &:active {\n background-color: $color-button-default--active;\n border-color: $color-button-default--active;\n }\n }\n\n &__secondary {\n background-color: $color-button-secondary;\n color: $color-button-secondary-text;\n border: 2px solid $color-button-secondary;\n\n & > svg {\n color: $color-button-secondary-text;\n }\n\n @media(hover: hover) {\n &:hover {\n background-color: $color-button-secondary--hover;\n border-color: $color-button-secondary--hover;\n color: var(--button-secondary-color-text--hover);\n\n & > svg {\n color: var(--button-secondary-color-text--hover);\n }\n }\n }\n\n &:active {\n background-color: $color-button-secondary--active;\n border-color: $color-button-secondary--active;\n color: var(--button-secondary-color-text--active);\n }\n }\n\n // &__fourth {\n // background-color: $color-button-fourth;\n // color: $color-button-fourth-text;\n // border: 2px solid $color-button-fourth-text;\n\n // & > svg {\n // color: $color-button-default-text;\n // }\n\n // &:hover {\n // background-color: $color-button-fourth--hover;\n // border-color: $color-button-fourth--hover;\n\n // color: $color-button-fourth;\n // }\n\n // &:active {\n // background-color: $color-button-fourth--hover;\n // border-color: $color-button-fourth--hover;\n\n // color: $color-button-fourth;\n // }\n // }\n\n &__icon_left {\n flex-direction: row-reverse;\n }\n\n &__icon_right {\n flex-direction: row;\n }\n\n &:disabled {\n background-color: $color-button-default--disabled;\n border-color: $color-button-default--disabled;\n cursor: not-allowed;\n\n &:hover,\n &:active {\n background-color: $color-button-default--disabled;\n }\n }\n}\n\n// @media (max-width: 1023px) {\n// .button {\n// &__small {\n// padding: 8px;\n// }\n\n// &__medium {\n// padding: 10px;\n// font-size: 16px;\n// }\n\n// &__large {\n// padding: 12px;\n// }\n// }\n// }\n\n.loading {\n color: transparent !important;\n\n cursor: wait;\n & .icon {\n visibility: hidden;\n }\n}\n\n.icon {\n vertical-align: bottom;\n\n &__smallS {\n width: 16px;\n height: 16px;\n }\n\n &__small {\n width: 16px;\n height: 16px;\n }\n\n &__medium {\n width: 20px;\n height: 20px;\n }\n\n &__large {\n width: 24px;\n height: 24px;\n }\n\n &__default {\n color: $color-button-default-text;\n & > * {\n fill: currentColor;\n }\n }\n\n &__secondary {\n color: $color-button-secondary-text;\n & > * {\n fill: currentColor;\n }\n }\n\n &__only {\n margin: 0;\n }\n}\n\n.loader {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n\n &__medium {\n width: 24px;\n height: 24px;\n }\n\n &__large {\n width: 28px;\n height: 28px;\n }\n\n &__default {\n color: $color-button-default-text;\n }\n}\n"],sourceRoot:""}]),c.locals={button:"X-qXAjOlRK-MvEYzf+vJhw==",button__smallS:"eulj795QGDKOUqnlkwRcjg==",button__small:"kA9VI1+kphZMg+k4vwaA0A==",withIcon:"J7ifRezUPIpp0n8u5ey6eA==",button__medium:"E71L1YsDYOk9r7JoN8iRtA==",button__large:"PG1dRW1+2uEbSJL4AczvWA==",button__default:"mYOHniHZN+wzW6HIbZsnIg==",button__secondary:"bPOB9hdxMHyvlNMblpaD2w==",button__icon_left:"EzgVgoT-fH3ME93vMPlWkQ==",button__icon_right:"uPFlSZFrv33G6Syy-kE8BQ==",loading:"IZ3gtInjJxgFyjTmoON+MA==",icon:"Gso9o47aQw7gpIb6flgPow==",icon__smallS:"BQwBbNv+45pKaoDXKLrnZQ==",icon__small:"SgRrCfWD7dbhNcWRDLF41w==",icon__medium:"_3L-IQ9YS+6jmHw0pc6ZnCQ==",icon__large:"WSggmWymdxGEd6uWzS8iPA==",icon__default:"MzXx8SzLHp6qmfyu-p4HIA==",icon__secondary:"n0RQniAXmk-2hu5UTGAkCA==",icon__only:"fpWXxEzExVJNFtiBu-YVhA==",loader:"v14UEAGpVOAxK8oK9tZ32g==",loader__medium:"_7pr9vlHwvaNj0kihq3zwcQ==",loader__large:"S4tzpabhSuMX6nxSoa3cxQ==",loader__default:"_5X5UT-TFHZe-BiWWUwq7og=="},o.default=c},function(n,o,t){"use strict";
2
2
  /*! Isomorphic Style Loader | MIT License | https://github.com/kriasoft/isomorphic-style-loader */var e={};function r(n){n.forEach((function(n){if(--e[n]<=0){var o=document.getElementById(n);o&&o.parentNode.removeChild(o)}}))}n.exports=function(n,o){for(var t,a=void 0===o?{}:o,c=a.replace,l=void 0!==c&&c,i=a.prepend,A=void 0!==i&&i,u=a.prefix,d=void 0===u?"s":u,s=[],p=0;p<n.length;p++){var b=n[p],f=b[0],C=b[1],v=b[2],h=b[3],g=""+d+f+"-"+p;if(s.push(g),!e[g]||l){e[g]=1;var x=document.getElementById(g),m=!1;x||(m=!0,(x=document.createElement("style")).setAttribute("type","text/css"),x.id=g,v&&x.setAttribute("media",v));var y=C;h&&"function"==typeof btoa&&(y+="\n/*# sourceMappingURL=data:application/json;base64,"+(t=JSON.stringify(h),btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(n,o){return String.fromCharCode("0x"+o)})))+"*/"),y+="\n/*# sourceURL="+h.file+"?"+g+"*/"),"textContent"in x?x.textContent=y:x.styleSheet.cssText=y,m&&(A?document.head.insertBefore(x,document.head.childNodes[0]):document.head.appendChild(x))}else e[g]++}return r.bind(null,s)}},function(n,o,t){"use strict";t.r(o);var e,r,a,c=t(0),l=t.n(c),i=t(2),A=t.n(i);function u(){return(u=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var t=arguments[o];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n}).apply(this,arguments)}var d,s,p,b=function(n){return c.createElement("svg",u({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),e||(e=c.createElement("path",{d:"M17 10a7 7 0 11-2.706-5.528c.382.296.379.855.037 1.197-.342.342-.892.335-1.286.054A5.25 5.25 0 1015.25 10H17z",fill:"url(#button-loader_svg__paint0_linear)"},c.createElement("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 10 10",to:"360 10 10",dur:"0.75s",repeatCount:"indefinite"}))),r||(r=c.createElement("path",{d:"M17 10a7 7 0 11-2.706-5.528c.382.296.379.855.037 1.197-.342.342-.892.335-1.286.054A5.25 5.25 0 1015.25 10H17z",fill:"url(#button-loader_svg__paint1_linear)"},c.createElement("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 10 10",to:"360 10 10",dur:"0.75s",repeatCount:"indefinite"}))),a||(a=c.createElement("defs",null,c.createElement("linearGradient",{id:"button-loader_svg__paint0_linear",x1:14.5,y1:5.5,x2:16.5,y2:10,gradientUnits:"userSpaceOnUse"},c.createElement("stop",{stopColor:"currentColor"}),c.createElement("stop",{offset:1,stopColor:"currentColor",stopOpacity:0})),c.createElement("linearGradient",{id:"button-loader_svg__paint1_linear",x1:10,y1:16,x2:17,y2:9.5,gradientUnits:"userSpaceOnUse"},c.createElement("stop",{stopColor:"currentColor"}),c.createElement("stop",{offset:1,stopColor:"currentColor",stopOpacity:0})))))},f=t(1),C=t.n(f);!function(n){n.smallS="smallS",n.small="small",n.medium="medium",n.large="large"}(d||(d={})),function(n){n.default="default",n.secondary="secondary"}(s||(s={})),function(n){n.left="left",n.right="right"}(p||(p={}));var v=function(n){var o=n.variant,t=void 0===o?s.default:o,e=n.size,r=void 0===e?d.medium:e,a=n.iconPosition,i=void 0===a?p.right:a,u=n.width,f=n.icon,v=n.loading,h=n.disabled,g=n.children,x=n.className,m=n.onClick,y=n.type,_=void 0===y?"button":y,B=Object(c.useMemo)((function(){var n;return A()(C.a.button,x,C.a["button__".concat(t)],C.a["button__".concat(r)],C.a["button__icon_".concat(i)],((n={})[C.a.loading]=v,n[C.a.withIcon]=f,n))}),[t,r,v,f,h,x]),w=Object(c.useMemo)((function(){return A()(C.a.loader,C.a["loader__".concat(t)],C.a["loader__".concat(r)])}),[t,r]),E=Object(c.useMemo)((function(){var n;return A()(C.a.icon,C.a["icon__".concat(t)],C.a["icon__".concat(r)],((n={})[C.a.icon__only]=!g,n))}),[t,r,g]),k=Object(c.useCallback)((function(n){h||v||m&&m(n)}),[m,h,v]);return l.a.createElement("button",{type:_,className:B,disabled:h,onClick:k,style:{width:u}},g,f&&l.a.createElement(f,{className:E}),v&&l.a.createElement(b,{className:w}))};t.d(o,"Button",(function(){return v}))}]);
3
3
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://shared-front/webpack/bootstrap","webpack://shared-front/external \"react\"","webpack://shared-front/./src/components/button/button.module.scss?88a7","webpack://shared-front/external \"classnames\"","webpack://shared-front/./node_modules/css-loader/dist/runtime/cssWithMappingToString.js","webpack://shared-front/./node_modules/css-loader/dist/runtime/api.js","webpack://shared-front/./src/components/button/button.module.scss","webpack://shared-front/./node_modules/isomorphic-style-loader/insertCss.js","webpack://shared-front/./src/components/icon/icons/button-loader.svg","webpack://shared-front/./src/components/button/button.tsx","webpack://shared-front/./src/index.ts"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","require","css","insertCss","content","locals","_getContent","_getCss","_insertCss","options","_slicedToArray","arr","Array","isArray","_arrayWithHoles","_i","iterator","_s","_e","_arr","_n","_d","next","done","push","length","err","_iterableToArrayLimit","minLen","_arrayLikeToArray","toString","slice","constructor","from","test","_unsupportedIterableToArray","TypeError","_nonIterableRest","len","arr2","item","_item","cssMapping","btoa","base64","unescape","encodeURIComponent","JSON","stringify","data","concat","sourceMapping","sourceURLs","sources","map","source","sourceRoot","join","cssWithMappingToString","list","this","mediaQuery","dedupe","alreadyImportedModules","id","___CSS_LOADER_EXPORT___","inserted","removeCss","ids","forEach","elem","document","getElementById","parentNode","removeChild","styles","_temp","str","_ref","_ref$replace","replace","_ref$prepend","prepend","_ref$prefix","prefix","_styles$i","media","sourceMap","createElement","setAttribute","cssText","match","p1","String","fromCharCode","file","textContent","styleSheet","head","insertBefore","childNodes","appendChild","_path","_path2","_defs","_extends","assign","target","arguments","apply","EButtonSize","EButtonVariant","EButtonIconPosition","props","width","height","fill","xmlns","attributeType","attributeName","type","to","dur","repeatCount","x1","y1","x2","y2","gradientUnits","stopColor","offset","stopOpacity","Button","variant","size","medium","iconPosition","right","Icon","loading","disabled","children","className","onClick","classNames","button","withIcon","loaderClassNames","loader","iconClassNames","icon","icon__only","_onClick","e","style"],"mappings":"iCACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QA0Df,OArDAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAA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AAO,UACPC,EAAQ,WACRC,EAAQ,WACRC,EAAS,YACTC,EAAO,UACP,IAAAvB,YAAI,IAAG,WAAQ,EAETwB,EAAa,mBACjB,W,MACE,WACE,IAAOC,OACPH,EACA,IAAO,kBAAWT,IAClB,IAAO,kBAAWC,IAClB,IAAO,uBAAgBE,MAAe,MAEnC,IAAOG,SAAUA,EAClB,EAAC,IAAOO,UAAWR,E,MAGzB,CAACL,EAASC,EAAMK,EAASD,EAAME,EAAUE,IAGrCK,EAAmB,mBACvB,WAAM,WAAW,IAAOC,OAAQ,IAAO,kBAAWf,IAAY,IAAO,kBAAWC,OAChF,CAACD,EAASC,IAGNe,EAAiB,mBACrB,W,MACE,WAAW,IAAOC,KAAM,IAAO,gBAASjB,IAAY,IAAO,gBAASC,MAAO,MAAK,IAAOiB,aAAcV,EAAQ,MAC/G,CAACR,EAASC,EAAMO,IAGZW,EAAW,uBACf,SAACC,GACKb,GAAYD,GAEhBI,GAAWA,EAAQU,KAErB,CAACV,EAASH,EAAUD,IAGtB,OACE,4BAAQnB,KAAMA,EAAMsB,UAAWE,EAAYJ,SAAUA,EAAUG,QAASS,EAAUE,MAAO,CAAExC,MAAK,IAC7F2B,EACAH,GAAQ,kBAACA,EAAI,CAACI,UAAWO,IACzBV,GAAW,kBAAC,EAAM,CAACG,UAAWK,MCzFrC","file":"index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 7);\n","module.exports = require(\"react\");","\n var refs = 0;\n var css = require(\"!!../../../node_modules/css-loader/dist/cjs.js??ref--6-1!../../../node_modules/sass-loader/dist/cjs.js!./button.module.scss\");\n var insertCss = require(\"!../../../node_modules/isomorphic-style-loader/insertCss.js\");\n var content = typeof css === 'string' ? [[module.id, css, '']] : css;\n\n exports = module.exports = css.locals || {};\n exports._getContent = function() { return content; };\n exports._getCss = function() { return '' + css; };\n exports._insertCss = function(options) { return insertCss(content, options) };\n\n // Hot Module Replacement\n // https://webpack.github.io/docs/hot-module-replacement\n // Only activated in browser context\n if (module.hot && typeof window !== 'undefined' && window.document) {\n var removeCss = function() {};\n module.hot.accept(\"!!../../../node_modules/css-loader/dist/cjs.js??ref--6-1!../../../node_modules/sass-loader/dist/cjs.js!./button.module.scss\", function() {\n css = require(\"!!../../../node_modules/css-loader/dist/cjs.js??ref--6-1!../../../node_modules/sass-loader/dist/cjs.js!./button.module.scss\");\n content = typeof css === 'string' ? [[module.id, css, '']] : css;\n removeCss = insertCss(content, { replace: true });\n });\n module.hot.dispose(function() { removeCss(); });\n }\n ","module.exports = require(\"classnames\");","\"use strict\";\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nmodule.exports = function cssWithMappingToString(item) {\n var _item = _slicedToArray(item, 4),\n content = _item[1],\n cssMapping = _item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (typeof btoa === \"function\") {\n // eslint-disable-next-line no-undef\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n var sourceURLs = cssMapping.sources.map(function (source) {\n return \"/*# sourceURL=\".concat(cssMapping.sourceRoot || \"\").concat(source, \" */\");\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join(\"\\n\");\n }\n\n return [content].join(\"\\n\");\n};","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\n// eslint-disable-next-line func-names\nmodule.exports = function (cssWithMappingToString) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item);\n\n if (item[2]) {\n return \"@media \".concat(item[2], \" {\").concat(content, \"}\");\n }\n\n return content;\n }).join(\"\");\n }; // import a list of modules into the list\n // eslint-disable-next-line func-names\n\n\n list.i = function (modules, mediaQuery, dedupe) {\n if (typeof modules === \"string\") {\n // eslint-disable-next-line no-param-reassign\n modules = [[null, modules, \"\"]];\n }\n\n var alreadyImportedModules = {};\n\n if (dedupe) {\n for (var i = 0; i < this.length; i++) {\n // eslint-disable-next-line prefer-destructuring\n var id = this[i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n\n for (var _i = 0; _i < modules.length; _i++) {\n var item = [].concat(modules[_i]);\n\n if (dedupe && alreadyImportedModules[item[0]]) {\n // eslint-disable-next-line no-continue\n continue;\n }\n\n if (mediaQuery) {\n if (!item[2]) {\n item[2] = mediaQuery;\n } else {\n item[2] = \"\".concat(mediaQuery, \" and \").concat(item[2]);\n }\n }\n\n list.push(item);\n }\n };\n\n return list;\n};","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".X-qXAjOlRK-MvEYzf\\\\+vJhw\\\\=\\\\={border-radius:12px;border:none;white-space:nowrap;cursor:pointer;box-shadow:none;position:relative;display:inline-flex;align-items:center;justify-content:center}.eulj795QGDKOUqnlkwRcjg\\\\=\\\\={font-weight:400;padding:4px 8px;font-size:12px;gap:4px;height:32px}.kA9VI1\\\\+kphZMg\\\\+k4vwaA0A\\\\=\\\\={font-weight:400;padding:8px 12px;font-size:14px;line-height:14px;gap:4px}.kA9VI1\\\\+kphZMg\\\\+k4vwaA0A\\\\=\\\\=.J7ifRezUPIpp0n8u5ey6eA\\\\=\\\\={padding:8px}.E71L1YsDYOk9r7JoN8iRtA\\\\=\\\\={font-weight:450;padding:14px 20px;font-size:16px;line-height:16px;gap:8px}.E71L1YsDYOk9r7JoN8iRtA\\\\=\\\\=.J7ifRezUPIpp0n8u5ey6eA\\\\=\\\\={padding:12px}.PG1dRW1\\\\+2uEbSJL4AczvWA\\\\=\\\\={font-weight:600;padding:15px 24px;gap:12px;font-size:16px;line-height:22px}.PG1dRW1\\\\+2uEbSJL4AczvWA\\\\=\\\\=.J7ifRezUPIpp0n8u5ey6eA\\\\=\\\\={padding:18px}.mYOHniHZN\\\\+wzW6HIbZsnIg\\\\=\\\\={background-color:var(--button-default-color);color:var(--button-default-color-text);border:2px solid var(--button-default-color)}.mYOHniHZN\\\\+wzW6HIbZsnIg\\\\=\\\\=>svg{color:var(--button-default-color-text)}@media(hover: hover){.mYOHniHZN\\\\+wzW6HIbZsnIg\\\\=\\\\=:hover{background-color:var(--button-default-color--hover);border-color:var(--button-default-color--hover)}}.mYOHniHZN\\\\+wzW6HIbZsnIg\\\\=\\\\=:active{background-color:var(--button-default-color--active);border-color:var(--button-default-color--active)}.bPOB9hdxMHyvlNMblpaD2w\\\\=\\\\={background-color:var(--button-secondary-color);color:var(--button-secondary-color-text);border:2px solid var(--button-secondary-color)}.bPOB9hdxMHyvlNMblpaD2w\\\\=\\\\=>svg{color:var(--button-secondary-color-text)}@media(hover: hover){.bPOB9hdxMHyvlNMblpaD2w\\\\=\\\\=:hover{background-color:var(--button-secondary-color--hover);border-color:var(--button-secondary-color--hover);color:var(--button-secondary-color-text--hover)}.bPOB9hdxMHyvlNMblpaD2w\\\\=\\\\=:hover>svg{color:var(--button-secondary-color-text--hover)}}.bPOB9hdxMHyvlNMblpaD2w\\\\=\\\\=:active{background-color:var(--button-secondary-color--active);border-color:var(--button-secondary-color--active);color:var(--button-secondary-color-text--active)}.EzgVgoT-fH3ME93vMPlWkQ\\\\=\\\\={flex-direction:row-reverse}.uPFlSZFrv33G6Syy-kE8BQ\\\\=\\\\={flex-direction:row}.X-qXAjOlRK-MvEYzf\\\\+vJhw\\\\=\\\\=:disabled{background-color:var(--button-default-color--disabled);border-color:var(--button-default-color--disabled);cursor:not-allowed}.X-qXAjOlRK-MvEYzf\\\\+vJhw\\\\=\\\\=:disabled:hover,.X-qXAjOlRK-MvEYzf\\\\+vJhw\\\\=\\\\=:disabled:active{background-color:var(--button-default-color--disabled)}.IZ3gtInjJxgFyjTmoON\\\\+MA\\\\=\\\\={color:rgba(0,0,0,0) !important;cursor:wait}.IZ3gtInjJxgFyjTmoON\\\\+MA\\\\=\\\\= .Gso9o47aQw7gpIb6flgPow\\\\=\\\\={visibility:hidden}.Gso9o47aQw7gpIb6flgPow\\\\=\\\\={vertical-align:bottom}.BQwBbNv\\\\+45pKaoDXKLrnZQ\\\\=\\\\={width:16px;height:16px}.SgRrCfWD7dbhNcWRDLF41w\\\\=\\\\={width:16px;height:16px}._3L-IQ9YS\\\\+6jmHw0pc6ZnCQ\\\\=\\\\={width:20px;height:20px}.WSggmWymdxGEd6uWzS8iPA\\\\=\\\\={width:24px;height:24px}.MzXx8SzLHp6qmfyu-p4HIA\\\\=\\\\={color:var(--button-default-color-text)}.MzXx8SzLHp6qmfyu-p4HIA\\\\=\\\\=>*{fill:currentColor}.n0RQniAXmk-2hu5UTGAkCA\\\\=\\\\={color:var(--button-secondary-color-text)}.n0RQniAXmk-2hu5UTGAkCA\\\\=\\\\=>*{fill:currentColor}.fpWXxEzExVJNFtiBu-YVhA\\\\=\\\\={margin:0}.v14UEAGpVOAxK8oK9tZ32g\\\\=\\\\={position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}._7pr9vlHwvaNj0kihq3zwcQ\\\\=\\\\={width:24px;height:24px}.S4tzpabhSuMX6nxSoa3cxQ\\\\=\\\\={width:28px;height:28px}._5X5UT-TFHZe-BiWWUwq7og\\\\=\\\\={color:var(--button-default-color-text)}\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/button/button.module.scss\"],\"names\":[],\"mappings\":\"AAcA,6BACE,kBAAA,CACA,WAAA,CACA,kBAAA,CACA,cAAA,CACA,eAAA,CACA,iBAAA,CACA,mBAAA,CACA,kBAAA,CACA,sBAAA,CAEA,4BACE,eAAA,CACA,eAAA,CACA,cAAA,CAEA,OAAA,CACA,WAAA,CAGF,8BACE,eAAA,CACA,gBAAA,CACA,cAAA,CACA,gBAAA,CACA,OAAA,CAGA,yDACE,WAAA,CAIJ,4BACE,eAAA,CACA,iBAAA,CACA,cAAA,CACA,gBAAA,CACA,OAAA,CAEA,uDACE,YAAA,CAIJ,6BACE,eAAA,CACA,iBAAA,CACA,QAAA,CACA,cAAA,CACA,gBAAA,CAEA,wDACE,YAAA,CAIJ,6BACE,4CAxEmB,CAyEnB,sCAxEwB,CAyExB,4CAAA,CAEA,iCACE,sCA5EsB,CA+ExB,qBACE,mCACE,mDAhFsB,CAiFtB,+CAjFsB,CAAA,CAqF1B,oCACE,oDArFyB,CAsFzB,gDAtFyB,CA0F7B,4BACE,8CAxFqB,CAyFrB,wCAxF0B,CAyF1B,8CAAA,CAEA,gCACE,wCA5FwB,CA+F1B,qBACE,kCACE,qDAhGwB,CAiGxB,iDAjGwB,CAkGxB,+CAAA,CAEA,sCACE,+CAAA,CAAA,CAKN,mCACE,sDA1G2B,CA2G3B,kDA3G2B,CA4G3B,gDAAA,CA4BJ,4BACE,0BAAA,CAGF,4BACE,kBAAA,CAGF,sCACE,sDAtJ6B,CAuJ7B,kDAvJ6B,CAwJ7B,kBAAA,CAEA,yFAEE,sDA5J2B,CAkLjC,6BACE,8BAAA,CAEA,WAAA,CACA,yDACE,iBAAA,CAIJ,4BACE,qBAAA,CAEA,6BACE,UAAA,CACA,WAAA,CAGF,4BACE,UAAA,CACA,WAAA,CAGF,8BACE,UAAA,CACA,WAAA,CAGF,4BACE,UAAA,CACA,WAAA,CAGF,4BACE,sCAtNwB,CAuNxB,8BACE,iBAAA,CAIJ,4BACE,wCAvN0B,CAwN1B,8BACE,iBAAA,CAIJ,4BACE,QAAA,CAIJ,4BACE,iBAAA,CACA,OAAA,CACA,QAAA,CACA,+BAAA,CAEA,6BACE,UAAA,CACA,WAAA,CAGF,4BACE,UAAA,CACA,WAAA,CAGF,6BACE,sCAzPwB\",\"sourcesContent\":[\"$color-button-default: var(--button-default-color);\\n$color-button-default-text: var(--button-default-color-text);\\n$color-button-default--hover: var(--button-default-color--hover);\\n$color-button-default--active: var(--button-default-color--active);\\n$color-button-default--disabled: var(--button-default-color--disabled);\\n\\n$color-button-secondary: var(--button-secondary-color);\\n$color-button-secondary-text: var(--button-secondary-color-text);\\n$color-button-secondary--hover: var(--button-secondary-color--hover);\\n$color-button-secondary--active: var(--button-secondary-color--active);\\n$color-button-secondary--disabled: var(--button-secondary-color--disabled);\\n\\n$font-size-button-large: var(--size-text-l);\\n\\n.button {\\n border-radius: 12px;\\n border: none;\\n white-space: nowrap;\\n cursor: pointer;\\n box-shadow: none;\\n position: relative;\\n display: inline-flex;\\n align-items: center;\\n justify-content: center;\\n\\n &__smallS {\\n font-weight: 400;\\n padding: 4px 8px;\\n font-size: 12px;\\n // line-height: 16px;\\n gap: 4px;\\n height: 32px;\\n }\\n\\n &__small {\\n font-weight: 400;\\n padding: 8px 12px;\\n font-size: 14px;\\n line-height: 14px;\\n gap: 4px;\\n\\n\\n &.withIcon {\\n padding: 8px;\\n }\\n }\\n\\n &__medium {\\n font-weight: 450;\\n padding: 14px 20px;\\n font-size: 16px;\\n line-height: 16px;\\n gap: 8px;\\n\\n &.withIcon {\\n padding: 12px;\\n }\\n }\\n\\n &__large {\\n font-weight: 600;\\n padding: 15px 24px;\\n gap: 12px;\\n font-size: 16px;\\n line-height: 22px;\\n\\n &.withIcon {\\n padding: 18px;\\n }\\n }\\n\\n &__default {\\n background-color: $color-button-default;\\n color: $color-button-default-text;\\n border: 2px solid $color-button-default;\\n\\n & > svg {\\n color: $color-button-default-text;\\n }\\n\\n @media(hover: hover) {\\n &:hover {\\n background-color: $color-button-default--hover;\\n border-color: $color-button-default--hover;\\n }\\n }\\n\\n &:active {\\n background-color: $color-button-default--active;\\n border-color: $color-button-default--active;\\n }\\n }\\n\\n &__secondary {\\n background-color: $color-button-secondary;\\n color: $color-button-secondary-text;\\n border: 2px solid $color-button-secondary;\\n\\n & > svg {\\n color: $color-button-secondary-text;\\n }\\n\\n @media(hover: hover) {\\n &:hover {\\n background-color: $color-button-secondary--hover;\\n border-color: $color-button-secondary--hover;\\n color: var(--button-secondary-color-text--hover);\\n\\n & > svg {\\n color: var(--button-secondary-color-text--hover);\\n }\\n }\\n }\\n\\n &:active {\\n background-color: $color-button-secondary--active;\\n border-color: $color-button-secondary--active;\\n color: var(--button-secondary-color-text--active);\\n }\\n }\\n\\n // &__fourth {\\n // background-color: $color-button-fourth;\\n // color: $color-button-fourth-text;\\n // border: 2px solid $color-button-fourth-text;\\n\\n // & > svg {\\n // color: $color-button-default-text;\\n // }\\n\\n // &:hover {\\n // background-color: $color-button-fourth--hover;\\n // border-color: $color-button-fourth--hover;\\n\\n // color: $color-button-fourth;\\n // }\\n\\n // &:active {\\n // background-color: $color-button-fourth--hover;\\n // border-color: $color-button-fourth--hover;\\n\\n // color: $color-button-fourth;\\n // }\\n // }\\n\\n &__icon_left {\\n flex-direction: row-reverse;\\n }\\n\\n &__icon_right {\\n flex-direction: row;\\n }\\n\\n &:disabled {\\n background-color: $color-button-default--disabled;\\n border-color: $color-button-default--disabled;\\n cursor: not-allowed;\\n\\n &:hover,\\n &:active {\\n background-color: $color-button-default--disabled;\\n }\\n }\\n}\\n\\n// @media (max-width: 1023px) {\\n// .button {\\n// &__small {\\n// padding: 8px;\\n// }\\n\\n// &__medium {\\n// padding: 10px;\\n// font-size: 16px;\\n// }\\n\\n// &__large {\\n// padding: 12px;\\n// }\\n// }\\n// }\\n\\n.loading {\\n color: transparent !important;\\n\\n cursor: wait;\\n & .icon {\\n visibility: hidden;\\n }\\n}\\n\\n.icon {\\n vertical-align: bottom;\\n\\n &__smallS {\\n width: 16px;\\n height: 16px;\\n }\\n\\n &__small {\\n width: 16px;\\n height: 16px;\\n }\\n\\n &__medium {\\n width: 20px;\\n height: 20px;\\n }\\n\\n &__large {\\n width: 24px;\\n height: 24px;\\n }\\n\\n &__default {\\n color: $color-button-default-text;\\n & > * {\\n fill: currentColor;\\n }\\n }\\n\\n &__secondary {\\n color: $color-button-secondary-text;\\n & > * {\\n fill: currentColor;\\n }\\n }\\n\\n &__only {\\n margin: 0;\\n }\\n}\\n\\n.loader {\\n position: absolute;\\n top: 50%;\\n left: 50%;\\n transform: translate(-50%, -50%);\\n\\n &__medium {\\n width: 24px;\\n height: 24px;\\n }\\n\\n &__large {\\n width: 28px;\\n height: 28px;\\n }\\n\\n &__default {\\n color: $color-button-default-text;\\n }\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"button\": \"X-qXAjOlRK-MvEYzf+vJhw==\",\n\t\"button__smallS\": \"eulj795QGDKOUqnlkwRcjg==\",\n\t\"button__small\": \"kA9VI1+kphZMg+k4vwaA0A==\",\n\t\"withIcon\": \"J7ifRezUPIpp0n8u5ey6eA==\",\n\t\"button__medium\": \"E71L1YsDYOk9r7JoN8iRtA==\",\n\t\"button__large\": \"PG1dRW1+2uEbSJL4AczvWA==\",\n\t\"button__default\": \"mYOHniHZN+wzW6HIbZsnIg==\",\n\t\"button__secondary\": \"bPOB9hdxMHyvlNMblpaD2w==\",\n\t\"button__icon_left\": \"EzgVgoT-fH3ME93vMPlWkQ==\",\n\t\"button__icon_right\": \"uPFlSZFrv33G6Syy-kE8BQ==\",\n\t\"loading\": \"IZ3gtInjJxgFyjTmoON+MA==\",\n\t\"icon\": \"Gso9o47aQw7gpIb6flgPow==\",\n\t\"icon__smallS\": \"BQwBbNv+45pKaoDXKLrnZQ==\",\n\t\"icon__small\": \"SgRrCfWD7dbhNcWRDLF41w==\",\n\t\"icon__medium\": \"_3L-IQ9YS+6jmHw0pc6ZnCQ==\",\n\t\"icon__large\": \"WSggmWymdxGEd6uWzS8iPA==\",\n\t\"icon__default\": \"MzXx8SzLHp6qmfyu-p4HIA==\",\n\t\"icon__secondary\": \"n0RQniAXmk-2hu5UTGAkCA==\",\n\t\"icon__only\": \"fpWXxEzExVJNFtiBu-YVhA==\",\n\t\"loader\": \"v14UEAGpVOAxK8oK9tZ32g==\",\n\t\"loader__medium\": \"_7pr9vlHwvaNj0kihq3zwcQ==\",\n\t\"loader__large\": \"S4tzpabhSuMX6nxSoa3cxQ==\",\n\t\"loader__default\": \"_5X5UT-TFHZe-BiWWUwq7og==\"\n};\nexport default ___CSS_LOADER_EXPORT___;\n","/*! Isomorphic Style Loader | MIT License | https://github.com/kriasoft/isomorphic-style-loader */\n\n'use strict';\n\nvar inserted = {};\n\nfunction b64EncodeUnicode(str) {\n return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function (match, p1) {\n return String.fromCharCode(\"0x\" + p1);\n }));\n}\n\nfunction removeCss(ids) {\n ids.forEach(function (id) {\n if (--inserted[id] <= 0) {\n var elem = document.getElementById(id);\n\n if (elem) {\n elem.parentNode.removeChild(elem);\n }\n }\n });\n}\n\nfunction insertCss(styles, _temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n _ref$replace = _ref.replace,\n replace = _ref$replace === void 0 ? false : _ref$replace,\n _ref$prepend = _ref.prepend,\n prepend = _ref$prepend === void 0 ? false : _ref$prepend,\n _ref$prefix = _ref.prefix,\n prefix = _ref$prefix === void 0 ? 's' : _ref$prefix;\n\n var ids = [];\n\n for (var i = 0; i < styles.length; i++) {\n var _styles$i = styles[i],\n moduleId = _styles$i[0],\n css = _styles$i[1],\n media = _styles$i[2],\n sourceMap = _styles$i[3];\n var id = \"\" + prefix + moduleId + \"-\" + i;\n ids.push(id);\n\n if (inserted[id]) {\n if (!replace) {\n inserted[id]++;\n continue;\n }\n }\n\n inserted[id] = 1;\n var elem = document.getElementById(id);\n var create = false;\n\n if (!elem) {\n create = true;\n elem = document.createElement('style');\n elem.setAttribute('type', 'text/css');\n elem.id = id;\n\n if (media) {\n elem.setAttribute('media', media);\n }\n }\n\n var cssText = css;\n\n if (sourceMap && typeof btoa === 'function') {\n cssText += \"\\n/*# sourceMappingURL=data:application/json;base64,\" + b64EncodeUnicode(JSON.stringify(sourceMap)) + \"*/\";\n cssText += \"\\n/*# sourceURL=\" + sourceMap.file + \"?\" + id + \"*/\";\n }\n\n if ('textContent' in elem) {\n elem.textContent = cssText;\n } else {\n elem.styleSheet.cssText = cssText;\n }\n\n if (create) {\n if (prepend) {\n document.head.insertBefore(elem, document.head.childNodes[0]);\n } else {\n document.head.appendChild(elem);\n }\n }\n }\n\n return removeCss.bind(null, ids);\n}\n\nmodule.exports = insertCss;\n//# sourceMappingURL=insertCss.js.map\n","var _path, _path2, _defs;\n\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport * as React from \"react\";\n\nfunction SvgButtonLoader(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 20,\n height: 20,\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 10a7 7 0 11-2.706-5.528c.382.296.379.855.037 1.197-.342.342-.892.335-1.286.054A5.25 5.25 0 1015.25 10H17z\",\n fill: \"url(#button-loader_svg__paint0_linear)\"\n }, /*#__PURE__*/React.createElement(\"animateTransform\", {\n attributeType: \"xml\",\n attributeName: \"transform\",\n type: \"rotate\",\n from: \"0 10 10\",\n to: \"360 10 10\",\n dur: \"0.75s\",\n repeatCount: \"indefinite\"\n }))), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 10a7 7 0 11-2.706-5.528c.382.296.379.855.037 1.197-.342.342-.892.335-1.286.054A5.25 5.25 0 1015.25 10H17z\",\n fill: \"url(#button-loader_svg__paint1_linear)\"\n }, /*#__PURE__*/React.createElement(\"animateTransform\", {\n attributeType: \"xml\",\n attributeName: \"transform\",\n type: \"rotate\",\n from: \"0 10 10\",\n to: \"360 10 10\",\n dur: \"0.75s\",\n repeatCount: \"indefinite\"\n }))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"button-loader_svg__paint0_linear\",\n x1: 14.5,\n y1: 5.5,\n x2: 16.5,\n y2: 10,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"currentColor\"\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"currentColor\",\n stopOpacity: 0\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"button-loader_svg__paint1_linear\",\n x1: 10,\n y1: 16,\n x2: 17,\n y2: 9.5,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"currentColor\"\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"currentColor\",\n stopOpacity: 0\n })))));\n}\n\nexport default SvgButtonLoader;","import React, { PropsWithChildren, useMemo, MouseEvent, useCallback } from 'react';\nimport classnames from 'classnames';\nimport Loader from '../icon/icons/button-loader.svg';\n\nimport styles from './button.module.scss';\n\nexport enum EButtonSize {\n smallS = 'smallS',\n small = 'small',\n medium = 'medium',\n large = 'large',\n}\n\nexport enum EButtonVariant {\n default = 'default',\n secondary = 'secondary',\n}\n\nexport enum EButtonIconPosition {\n left = 'left',\n right = 'right',\n}\n\ninterface IButtonProps {\n variant?: keyof typeof EButtonVariant;\n size?: keyof typeof EButtonSize;\n icon?: any;\n width?: string;\n iconPosition?: EButtonIconPosition;\n loading?: boolean;\n disabled?: boolean;\n className?: string;\n type?: 'button' | 'submit' | 'reset';\n onClick?: (e?: MouseEvent<HTMLButtonElement>) => void;\n}\n\nexport const Button = ({\n variant = EButtonVariant.default,\n size = EButtonSize.medium,\n iconPosition = EButtonIconPosition.right,\n width,\n icon: Icon,\n loading,\n disabled,\n children,\n className,\n onClick,\n type = 'button',\n}: PropsWithChildren<IButtonProps>) => {\n const classNames = useMemo(\n () =>\n classnames(\n styles.button,\n className,\n styles[`button__${variant}`],\n styles[`button__${size}`],\n styles[`button__icon_${iconPosition}`],\n {\n [styles.loading]: loading,\n [styles.withIcon]: Icon,\n }\n ),\n [variant, size, loading, Icon, disabled, className]\n );\n\n const loaderClassNames = useMemo(\n () => classnames(styles.loader, styles[`loader__${variant}`], styles[`loader__${size}`]),\n [variant, size]\n );\n\n const iconClassNames = useMemo(\n () =>\n classnames(styles.icon, styles[`icon__${variant}`], styles[`icon__${size}`], { [styles.icon__only]: !children }),\n [variant, size, children]\n );\n\n const _onClick = useCallback(\n (e?: MouseEvent<HTMLButtonElement>) => {\n if (disabled || loading) return;\n\n onClick && onClick(e);\n },\n [onClick, disabled, loading]\n );\n\n return (\n <button type={type} className={classNames} disabled={disabled} onClick={_onClick} style={{ width }}>\n {children}\n {Icon && <Icon className={iconClassNames} />}\n {loading && <Loader className={loaderClassNames} />}\n </button>\n );\n};\n","export { Button } from './components/button';\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://shared-front/webpack/bootstrap","webpack://shared-front/external \"react\"","webpack://shared-front/./src/components/button/button.module.scss?88a7","webpack://shared-front/external \"classnames\"","webpack://shared-front/./node_modules/css-loader/dist/runtime/cssWithMappingToString.js","webpack://shared-front/./node_modules/css-loader/dist/runtime/api.js","webpack://shared-front/./src/components/button/button.module.scss","webpack://shared-front/./node_modules/isomorphic-style-loader/insertCss.js","webpack://shared-front/./src/components/icon/icons/button-loader.svg","webpack://shared-front/./src/components/button/button.tsx","webpack://shared-front/./src/index.ts"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","require","css","insertCss","content","locals","_getContent","_getCss","_insertCss","options","_slicedToArray","arr","Array","isArray","_arrayWithHoles","_i","iterator","_s","_e","_arr","_n","_d","next","done","push","length","err","_iterableToArrayLimit","minLen","_arrayLikeToArray","toString","slice","constructor","from","test","_unsupportedIterableToArray","TypeError","_nonIterableRest","len","arr2","item","_item","cssMapping","btoa","base64","unescape","encodeURIComponent","JSON","stringify","data","concat","sourceMapping","sourceURLs","sources","map","source","sourceRoot","join","cssWithMappingToString","list","this","mediaQuery","dedupe","alreadyImportedModules","id","___CSS_LOADER_EXPORT___","inserted","removeCss","ids","forEach","elem","document","getElementById","parentNode","removeChild","styles","_temp","str","_ref","_ref$replace","replace","_ref$prepend","prepend","_ref$prefix","prefix","_styles$i","media","sourceMap","createElement","setAttribute","cssText","match","p1","String","fromCharCode","file","textContent","styleSheet","head","insertBefore","childNodes","appendChild","_path","_path2","_defs","_extends","assign","target","arguments","apply","EButtonSize","EButtonVariant","EButtonIconPosition","props","width","height","fill","xmlns","attributeType","attributeName","type","to","dur","repeatCount","x1","y1","x2","y2","gradientUnits","stopColor","offset","stopOpacity","Button","variant","size","medium","iconPosition","right","Icon","loading","disabled","children","className","onClick","classNames","button","withIcon","loaderClassNames","loader","iconClassNames","icon","icon__only","_onClick","e","style"],"mappings":"oCACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QA0Df,OArDAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YA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IAAG,EAAAxB,EAAoByB,MAAK,EACxCvB,EAAK,QACCwB,EAAI,OACVC,EAAO,UACPC,EAAQ,WACRC,EAAQ,WACRC,EAAS,YACTC,EAAO,UACP,IAAAvB,YAAI,IAAG,WAAQ,EAETwB,EAAa,mBACjB,W,MACE,WACE,IAAOC,OACPH,EACA,IAAO,kBAAWT,IAClB,IAAO,kBAAWC,IAClB,IAAO,uBAAgBE,MAAe,MAEnC,IAAOG,SAAUA,EAClB,EAAC,IAAOO,UAAWR,E,MAGzB,CAACL,EAASC,EAAMK,EAASD,EAAME,EAAUE,IAGrCK,EAAmB,mBACvB,WAAM,WAAW,IAAOC,OAAQ,IAAO,kBAAWf,IAAY,IAAO,kBAAWC,OAChF,CAACD,EAASC,IAGNe,EAAiB,mBACrB,W,MACE,WAAW,IAAOC,KAAM,IAAO,gBAASjB,IAAY,IAAO,gBAASC,MAAO,MAAK,IAAOiB,aAAcV,EAAQ,MAC/G,CAACR,EAASC,EAAMO,IAGZW,EAAW,uBACf,SAACC,GACKb,GAAYD,GAEhBI,GAAWA,EAAQU,KAErB,CAACV,EAASH,EAAUD,IAGtB,OACE,4BAAQnB,KAAMA,EAAMsB,UAAWE,EAAYJ,SAAUA,EAAUG,QAASS,EAAUE,MAAO,CAAExC,MAAK,IAC7F2B,EACAH,GAAQ,kBAACA,EAAI,CAACI,UAAWO,IACzBV,GAAW,kBAAC,EAAM,CAACG,UAAWK,MCzFrC","file":"index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 7);\n","module.exports = require(\"react\");","\n var refs = 0;\n var css = require(\"!!../../../node_modules/css-loader/dist/cjs.js??ref--6-1!../../../node_modules/sass-loader/dist/cjs.js!./button.module.scss\");\n var insertCss = require(\"!../../../node_modules/isomorphic-style-loader/insertCss.js\");\n var content = typeof css === 'string' ? [[module.id, css, '']] : css;\n\n exports = module.exports = css.locals || {};\n exports._getContent = function() { return content; };\n exports._getCss = function() { return '' + css; };\n exports._insertCss = function(options) { return insertCss(content, options) };\n\n // Hot Module Replacement\n // https://webpack.github.io/docs/hot-module-replacement\n // Only activated in browser context\n if (module.hot && typeof window !== 'undefined' && window.document) {\n var removeCss = function() {};\n module.hot.accept(\"!!../../../node_modules/css-loader/dist/cjs.js??ref--6-1!../../../node_modules/sass-loader/dist/cjs.js!./button.module.scss\", function() {\n css = require(\"!!../../../node_modules/css-loader/dist/cjs.js??ref--6-1!../../../node_modules/sass-loader/dist/cjs.js!./button.module.scss\");\n content = typeof css === 'string' ? [[module.id, css, '']] : css;\n removeCss = insertCss(content, { replace: true });\n });\n module.hot.dispose(function() { removeCss(); });\n }\n ","module.exports = require(\"classnames\");","\"use strict\";\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nmodule.exports = function cssWithMappingToString(item) {\n var _item = _slicedToArray(item, 4),\n content = _item[1],\n cssMapping = _item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (typeof btoa === \"function\") {\n // eslint-disable-next-line no-undef\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n var sourceURLs = cssMapping.sources.map(function (source) {\n return \"/*# sourceURL=\".concat(cssMapping.sourceRoot || \"\").concat(source, \" */\");\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join(\"\\n\");\n }\n\n return [content].join(\"\\n\");\n};","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\n// eslint-disable-next-line func-names\nmodule.exports = function (cssWithMappingToString) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item);\n\n if (item[2]) {\n return \"@media \".concat(item[2], \" {\").concat(content, \"}\");\n }\n\n return content;\n }).join(\"\");\n }; // import a list of modules into the list\n // eslint-disable-next-line func-names\n\n\n list.i = function (modules, mediaQuery, dedupe) {\n if (typeof modules === \"string\") {\n // eslint-disable-next-line no-param-reassign\n modules = [[null, modules, \"\"]];\n }\n\n var alreadyImportedModules = {};\n\n if (dedupe) {\n for (var i = 0; i < this.length; i++) {\n // eslint-disable-next-line prefer-destructuring\n var id = this[i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n\n for (var _i = 0; _i < modules.length; _i++) {\n var item = [].concat(modules[_i]);\n\n if (dedupe && alreadyImportedModules[item[0]]) {\n // eslint-disable-next-line no-continue\n continue;\n }\n\n if (mediaQuery) {\n if (!item[2]) {\n item[2] = mediaQuery;\n } else {\n item[2] = \"\".concat(mediaQuery, \" and \").concat(item[2]);\n }\n }\n\n list.push(item);\n }\n };\n\n return list;\n};","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".X-qXAjOlRK-MvEYzf\\\\+vJhw\\\\=\\\\={border-radius:12px;border:none;white-space:nowrap;cursor:pointer;box-shadow:none;position:relative;display:inline-flex;align-items:center;justify-content:center}.eulj795QGDKOUqnlkwRcjg\\\\=\\\\={font-weight:400;padding:4px 8px;font-size:12px;gap:4px;height:32px}.kA9VI1\\\\+kphZMg\\\\+k4vwaA0A\\\\=\\\\={font-weight:400;padding:8px 12px;font-size:14px;line-height:14px;gap:4px}.kA9VI1\\\\+kphZMg\\\\+k4vwaA0A\\\\=\\\\=.J7ifRezUPIpp0n8u5ey6eA\\\\=\\\\={padding:8px}.E71L1YsDYOk9r7JoN8iRtA\\\\=\\\\={font-weight:450;padding:14px 20px;font-size:16px;line-height:16px;gap:8px}.E71L1YsDYOk9r7JoN8iRtA\\\\=\\\\=.J7ifRezUPIpp0n8u5ey6eA\\\\=\\\\={padding:12px}.PG1dRW1\\\\+2uEbSJL4AczvWA\\\\=\\\\={font-weight:600;padding:15px 24px;gap:12px;font-size:16px;line-height:22px}.PG1dRW1\\\\+2uEbSJL4AczvWA\\\\=\\\\=.J7ifRezUPIpp0n8u5ey6eA\\\\=\\\\={padding:18px}.mYOHniHZN\\\\+wzW6HIbZsnIg\\\\=\\\\={background-color:var(--button-default-color);color:var(--button-default-color-text);border:2px solid var(--button-default-color)}.mYOHniHZN\\\\+wzW6HIbZsnIg\\\\=\\\\=>svg{color:var(--button-default-color-text)}@media(hover: hover){.mYOHniHZN\\\\+wzW6HIbZsnIg\\\\=\\\\=:hover{background-color:var(--button-default-color--hover);border-color:var(--button-default-color--hover)}}.mYOHniHZN\\\\+wzW6HIbZsnIg\\\\=\\\\=:active{background-color:var(--button-default-color--active);border-color:var(--button-default-color--active)}.bPOB9hdxMHyvlNMblpaD2w\\\\=\\\\={background-color:var(--button-secondary-color);color:var(--button-secondary-color-text);border:2px solid var(--button-secondary-color)}.bPOB9hdxMHyvlNMblpaD2w\\\\=\\\\=>svg{color:var(--button-secondary-color-text)}@media(hover: hover){.bPOB9hdxMHyvlNMblpaD2w\\\\=\\\\=:hover{background-color:var(--button-secondary-color--hover);border-color:var(--button-secondary-color--hover);color:var(--button-secondary-color-text--hover)}.bPOB9hdxMHyvlNMblpaD2w\\\\=\\\\=:hover>svg{color:var(--button-secondary-color-text--hover)}}.bPOB9hdxMHyvlNMblpaD2w\\\\=\\\\=:active{background-color:var(--button-secondary-color--active);border-color:var(--button-secondary-color--active);color:var(--button-secondary-color-text--active)}.EzgVgoT-fH3ME93vMPlWkQ\\\\=\\\\={flex-direction:row-reverse}.uPFlSZFrv33G6Syy-kE8BQ\\\\=\\\\={flex-direction:row}.X-qXAjOlRK-MvEYzf\\\\+vJhw\\\\=\\\\=:disabled{background-color:var(--button-default-color--disabled);border-color:var(--button-default-color--disabled);cursor:not-allowed}.X-qXAjOlRK-MvEYzf\\\\+vJhw\\\\=\\\\=:disabled:hover,.X-qXAjOlRK-MvEYzf\\\\+vJhw\\\\=\\\\=:disabled:active{background-color:var(--button-default-color--disabled)}.IZ3gtInjJxgFyjTmoON\\\\+MA\\\\=\\\\={color:rgba(0,0,0,0) !important;cursor:wait}.IZ3gtInjJxgFyjTmoON\\\\+MA\\\\=\\\\= .Gso9o47aQw7gpIb6flgPow\\\\=\\\\={visibility:hidden}.Gso9o47aQw7gpIb6flgPow\\\\=\\\\={vertical-align:bottom}.BQwBbNv\\\\+45pKaoDXKLrnZQ\\\\=\\\\={width:16px;height:16px}.SgRrCfWD7dbhNcWRDLF41w\\\\=\\\\={width:16px;height:16px}._3L-IQ9YS\\\\+6jmHw0pc6ZnCQ\\\\=\\\\={width:20px;height:20px}.WSggmWymdxGEd6uWzS8iPA\\\\=\\\\={width:24px;height:24px}.MzXx8SzLHp6qmfyu-p4HIA\\\\=\\\\={color:var(--button-default-color-text)}.MzXx8SzLHp6qmfyu-p4HIA\\\\=\\\\=>*{fill:currentColor}.n0RQniAXmk-2hu5UTGAkCA\\\\=\\\\={color:var(--button-secondary-color-text)}.n0RQniAXmk-2hu5UTGAkCA\\\\=\\\\=>*{fill:currentColor}.fpWXxEzExVJNFtiBu-YVhA\\\\=\\\\={margin:0}.v14UEAGpVOAxK8oK9tZ32g\\\\=\\\\={position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}._7pr9vlHwvaNj0kihq3zwcQ\\\\=\\\\={width:24px;height:24px}.S4tzpabhSuMX6nxSoa3cxQ\\\\=\\\\={width:28px;height:28px}._5X5UT-TFHZe-BiWWUwq7og\\\\=\\\\={color:var(--button-default-color-text)}\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/button/button.module.scss\"],\"names\":[],\"mappings\":\"AAcA,6BACE,kBAAA,CACA,WAAA,CACA,kBAAA,CACA,cAAA,CACA,eAAA,CACA,iBAAA,CACA,mBAAA,CACA,kBAAA,CACA,sBAAA,CAEA,4BACE,eAA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,sCAzPwB\",\"sourcesContent\":[\"$color-button-default: var(--button-default-color);\\n$color-button-default-text: var(--button-default-color-text);\\n$color-button-default--hover: var(--button-default-color--hover);\\n$color-button-default--active: var(--button-default-color--active);\\n$color-button-default--disabled: var(--button-default-color--disabled);\\n\\n$color-button-secondary: var(--button-secondary-color);\\n$color-button-secondary-text: var(--button-secondary-color-text);\\n$color-button-secondary--hover: var(--button-secondary-color--hover);\\n$color-button-secondary--active: var(--button-secondary-color--active);\\n$color-button-secondary--disabled: var(--button-secondary-color--disabled);\\n\\n$font-size-button-large: var(--size-text-l);\\n\\n.button {\\n border-radius: 12px;\\n border: none;\\n white-space: nowrap;\\n cursor: pointer;\\n box-shadow: none;\\n position: relative;\\n display: inline-flex;\\n align-items: center;\\n justify-content: center;\\n\\n &__smallS {\\n font-weight: 400;\\n padding: 4px 8px;\\n font-size: 12px;\\n // line-height: 16px;\\n gap: 4px;\\n height: 32px;\\n }\\n\\n &__small {\\n font-weight: 400;\\n padding: 8px 12px;\\n font-size: 14px;\\n line-height: 14px;\\n gap: 4px;\\n\\n\\n &.withIcon {\\n padding: 8px;\\n }\\n }\\n\\n &__medium {\\n font-weight: 450;\\n padding: 14px 20px;\\n font-size: 16px;\\n line-height: 16px;\\n gap: 8px;\\n\\n &.withIcon {\\n padding: 12px;\\n }\\n }\\n\\n &__large {\\n font-weight: 600;\\n padding: 15px 24px;\\n gap: 12px;\\n font-size: 16px;\\n line-height: 22px;\\n\\n &.withIcon {\\n padding: 18px;\\n }\\n }\\n\\n &__default {\\n background-color: $color-button-default;\\n color: $color-button-default-text;\\n border: 2px solid $color-button-default;\\n\\n & > svg {\\n color: $color-button-default-text;\\n }\\n\\n @media(hover: hover) {\\n &:hover {\\n background-color: $color-button-default--hover;\\n border-color: $color-button-default--hover;\\n }\\n }\\n\\n &:active {\\n background-color: $color-button-default--active;\\n border-color: $color-button-default--active;\\n }\\n }\\n\\n &__secondary {\\n background-color: $color-button-secondary;\\n color: $color-button-secondary-text;\\n border: 2px solid $color-button-secondary;\\n\\n & > svg {\\n color: $color-button-secondary-text;\\n }\\n\\n @media(hover: hover) {\\n &:hover {\\n background-color: $color-button-secondary--hover;\\n border-color: $color-button-secondary--hover;\\n color: var(--button-secondary-color-text--hover);\\n\\n & > svg {\\n color: var(--button-secondary-color-text--hover);\\n }\\n }\\n }\\n\\n &:active {\\n background-color: $color-button-secondary--active;\\n border-color: $color-button-secondary--active;\\n color: var(--button-secondary-color-text--active);\\n }\\n }\\n\\n // &__fourth {\\n // background-color: $color-button-fourth;\\n // color: $color-button-fourth-text;\\n // border: 2px solid $color-button-fourth-text;\\n\\n // & > svg {\\n // color: $color-button-default-text;\\n // }\\n\\n // &:hover {\\n // background-color: $color-button-fourth--hover;\\n // border-color: $color-button-fourth--hover;\\n\\n // color: $color-button-fourth;\\n // }\\n\\n // &:active {\\n // background-color: $color-button-fourth--hover;\\n // border-color: $color-button-fourth--hover;\\n\\n // color: $color-button-fourth;\\n // }\\n // }\\n\\n &__icon_left {\\n flex-direction: row-reverse;\\n }\\n\\n &__icon_right {\\n flex-direction: row;\\n }\\n\\n &:disabled {\\n background-color: $color-button-default--disabled;\\n border-color: $color-button-default--disabled;\\n cursor: not-allowed;\\n\\n &:hover,\\n &:active {\\n background-color: $color-button-default--disabled;\\n }\\n }\\n}\\n\\n// @media (max-width: 1023px) {\\n// .button {\\n// &__small {\\n// padding: 8px;\\n// }\\n\\n// &__medium {\\n// padding: 10px;\\n// font-size: 16px;\\n// }\\n\\n// &__large {\\n// padding: 12px;\\n// }\\n// }\\n// }\\n\\n.loading {\\n color: transparent !important;\\n\\n cursor: wait;\\n & .icon {\\n visibility: hidden;\\n }\\n}\\n\\n.icon {\\n vertical-align: bottom;\\n\\n &__smallS {\\n width: 16px;\\n height: 16px;\\n }\\n\\n &__small {\\n width: 16px;\\n height: 16px;\\n }\\n\\n &__medium {\\n width: 20px;\\n height: 20px;\\n }\\n\\n &__large {\\n width: 24px;\\n height: 24px;\\n }\\n\\n &__default {\\n color: $color-button-default-text;\\n & > * {\\n fill: currentColor;\\n }\\n }\\n\\n &__secondary {\\n color: $color-button-secondary-text;\\n & > * {\\n fill: currentColor;\\n }\\n }\\n\\n &__only {\\n margin: 0;\\n }\\n}\\n\\n.loader {\\n position: absolute;\\n top: 50%;\\n left: 50%;\\n transform: translate(-50%, -50%);\\n\\n &__medium {\\n width: 24px;\\n height: 24px;\\n }\\n\\n &__large {\\n width: 28px;\\n height: 28px;\\n }\\n\\n &__default {\\n color: $color-button-default-text;\\n }\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"button\": \"X-qXAjOlRK-MvEYzf+vJhw==\",\n\t\"button__smallS\": \"eulj795QGDKOUqnlkwRcjg==\",\n\t\"button__small\": \"kA9VI1+kphZMg+k4vwaA0A==\",\n\t\"withIcon\": \"J7ifRezUPIpp0n8u5ey6eA==\",\n\t\"button__medium\": \"E71L1YsDYOk9r7JoN8iRtA==\",\n\t\"button__large\": \"PG1dRW1+2uEbSJL4AczvWA==\",\n\t\"button__default\": \"mYOHniHZN+wzW6HIbZsnIg==\",\n\t\"button__secondary\": \"bPOB9hdxMHyvlNMblpaD2w==\",\n\t\"button__icon_left\": \"EzgVgoT-fH3ME93vMPlWkQ==\",\n\t\"button__icon_right\": \"uPFlSZFrv33G6Syy-kE8BQ==\",\n\t\"loading\": \"IZ3gtInjJxgFyjTmoON+MA==\",\n\t\"icon\": \"Gso9o47aQw7gpIb6flgPow==\",\n\t\"icon__smallS\": \"BQwBbNv+45pKaoDXKLrnZQ==\",\n\t\"icon__small\": \"SgRrCfWD7dbhNcWRDLF41w==\",\n\t\"icon__medium\": \"_3L-IQ9YS+6jmHw0pc6ZnCQ==\",\n\t\"icon__large\": \"WSggmWymdxGEd6uWzS8iPA==\",\n\t\"icon__default\": \"MzXx8SzLHp6qmfyu-p4HIA==\",\n\t\"icon__secondary\": \"n0RQniAXmk-2hu5UTGAkCA==\",\n\t\"icon__only\": \"fpWXxEzExVJNFtiBu-YVhA==\",\n\t\"loader\": \"v14UEAGpVOAxK8oK9tZ32g==\",\n\t\"loader__medium\": \"_7pr9vlHwvaNj0kihq3zwcQ==\",\n\t\"loader__large\": \"S4tzpabhSuMX6nxSoa3cxQ==\",\n\t\"loader__default\": \"_5X5UT-TFHZe-BiWWUwq7og==\"\n};\nexport default ___CSS_LOADER_EXPORT___;\n","/*! Isomorphic Style Loader | MIT License | https://github.com/kriasoft/isomorphic-style-loader */\n\n'use strict';\n\nvar inserted = {};\n\nfunction b64EncodeUnicode(str) {\n return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function (match, p1) {\n return String.fromCharCode(\"0x\" + p1);\n }));\n}\n\nfunction removeCss(ids) {\n ids.forEach(function (id) {\n if (--inserted[id] <= 0) {\n var elem = document.getElementById(id);\n\n if (elem) {\n elem.parentNode.removeChild(elem);\n }\n }\n });\n}\n\nfunction insertCss(styles, _temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n _ref$replace = _ref.replace,\n replace = _ref$replace === void 0 ? false : _ref$replace,\n _ref$prepend = _ref.prepend,\n prepend = _ref$prepend === void 0 ? false : _ref$prepend,\n _ref$prefix = _ref.prefix,\n prefix = _ref$prefix === void 0 ? 's' : _ref$prefix;\n\n var ids = [];\n\n for (var i = 0; i < styles.length; i++) {\n var _styles$i = styles[i],\n moduleId = _styles$i[0],\n css = _styles$i[1],\n media = _styles$i[2],\n sourceMap = _styles$i[3];\n var id = \"\" + prefix + moduleId + \"-\" + i;\n ids.push(id);\n\n if (inserted[id]) {\n if (!replace) {\n inserted[id]++;\n continue;\n }\n }\n\n inserted[id] = 1;\n var elem = document.getElementById(id);\n var create = false;\n\n if (!elem) {\n create = true;\n elem = document.createElement('style');\n elem.setAttribute('type', 'text/css');\n elem.id = id;\n\n if (media) {\n elem.setAttribute('media', media);\n }\n }\n\n var cssText = css;\n\n if (sourceMap && typeof btoa === 'function') {\n cssText += \"\\n/*# sourceMappingURL=data:application/json;base64,\" + b64EncodeUnicode(JSON.stringify(sourceMap)) + \"*/\";\n cssText += \"\\n/*# sourceURL=\" + sourceMap.file + \"?\" + id + \"*/\";\n }\n\n if ('textContent' in elem) {\n elem.textContent = cssText;\n } else {\n elem.styleSheet.cssText = cssText;\n }\n\n if (create) {\n if (prepend) {\n document.head.insertBefore(elem, document.head.childNodes[0]);\n } else {\n document.head.appendChild(elem);\n }\n }\n }\n\n return removeCss.bind(null, ids);\n}\n\nmodule.exports = insertCss;\n//# sourceMappingURL=insertCss.js.map\n","var _path, _path2, _defs;\n\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport * as React from \"react\";\n\nfunction SvgButtonLoader(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 20,\n height: 20,\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 10a7 7 0 11-2.706-5.528c.382.296.379.855.037 1.197-.342.342-.892.335-1.286.054A5.25 5.25 0 1015.25 10H17z\",\n fill: \"url(#button-loader_svg__paint0_linear)\"\n }, /*#__PURE__*/React.createElement(\"animateTransform\", {\n attributeType: \"xml\",\n attributeName: \"transform\",\n type: \"rotate\",\n from: \"0 10 10\",\n to: \"360 10 10\",\n dur: \"0.75s\",\n repeatCount: \"indefinite\"\n }))), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 10a7 7 0 11-2.706-5.528c.382.296.379.855.037 1.197-.342.342-.892.335-1.286.054A5.25 5.25 0 1015.25 10H17z\",\n fill: \"url(#button-loader_svg__paint1_linear)\"\n }, /*#__PURE__*/React.createElement(\"animateTransform\", {\n attributeType: \"xml\",\n attributeName: \"transform\",\n type: \"rotate\",\n from: \"0 10 10\",\n to: \"360 10 10\",\n dur: \"0.75s\",\n repeatCount: \"indefinite\"\n }))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"button-loader_svg__paint0_linear\",\n x1: 14.5,\n y1: 5.5,\n x2: 16.5,\n y2: 10,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"currentColor\"\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"currentColor\",\n stopOpacity: 0\n })), /*#__PURE__*/React.createElement(\"linearGradient\", {\n id: \"button-loader_svg__paint1_linear\",\n x1: 10,\n y1: 16,\n x2: 17,\n y2: 9.5,\n gradientUnits: \"userSpaceOnUse\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"currentColor\"\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"currentColor\",\n stopOpacity: 0\n })))));\n}\n\nexport default SvgButtonLoader;","import React, { PropsWithChildren, useMemo, MouseEvent, useCallback } from 'react';\nimport classnames from 'classnames';\nimport Loader from '../icon/icons/button-loader.svg';\n\nimport styles from './button.module.scss';\n\nexport enum EButtonSize {\n smallS = 'smallS',\n small = 'small',\n medium = 'medium',\n large = 'large',\n}\n\nexport enum EButtonVariant {\n default = 'default',\n secondary = 'secondary',\n}\n\nexport enum EButtonIconPosition {\n left = 'left',\n right = 'right',\n}\n\ninterface IButtonProps {\n variant?: keyof typeof EButtonVariant;\n size?: keyof typeof EButtonSize;\n icon?: any;\n width?: string;\n iconPosition?: EButtonIconPosition;\n loading?: boolean;\n disabled?: boolean;\n className?: string;\n type?: 'button' | 'submit' | 'reset';\n onClick?: (e?: MouseEvent<HTMLButtonElement>) => void;\n}\n\nexport const Button = ({\n variant = EButtonVariant.default,\n size = EButtonSize.medium,\n iconPosition = EButtonIconPosition.right,\n width,\n icon: Icon,\n loading,\n disabled,\n children,\n className,\n onClick,\n type = 'button',\n}: PropsWithChildren<IButtonProps>) => {\n const classNames = useMemo(\n () =>\n classnames(\n styles.button,\n className,\n styles[`button__${variant}`],\n styles[`button__${size}`],\n styles[`button__icon_${iconPosition}`],\n {\n [styles.loading]: loading,\n [styles.withIcon]: Icon,\n }\n ),\n [variant, size, loading, Icon, disabled, className]\n );\n\n const loaderClassNames = useMemo(\n () => classnames(styles.loader, styles[`loader__${variant}`], styles[`loader__${size}`]),\n [variant, size]\n );\n\n const iconClassNames = useMemo(\n () =>\n classnames(styles.icon, styles[`icon__${variant}`], styles[`icon__${size}`], { [styles.icon__only]: !children }),\n [variant, size, children]\n );\n\n const _onClick = useCallback(\n (e?: MouseEvent<HTMLButtonElement>) => {\n if (disabled || loading) return;\n\n onClick && onClick(e);\n },\n [onClick, disabled, loading]\n );\n\n return (\n <button type={type} className={classNames} disabled={disabled} onClick={_onClick} style={{ width }}>\n {children}\n {Icon && <Icon className={iconClassNames} />}\n {loading && <Loader className={loaderClassNames} />}\n </button>\n );\n};\n","export { Button } from './components/button';\n"],"sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dt-shared-front",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Shared components",
5
5
  "main": "dist/index.js",
6
6
  "files": [