phx-react
Version:
PHX REACT
14 lines • 5.45 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = Icon;
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const helper_1 = require("../../helper");
function Icon({ activeColor = 'currentColor', isActive = false, isBoldIcon }) {
return isActive || isBoldIcon ? (react_1.default.createElement("svg", { fill: 'none', height: '20', viewBox: '0 0 20 20', width: '20', xmlns: 'http://www.w3.org/2000/svg' },
react_1.default.createElement("path", { d: 'M17.9843 7.31562L17.7614 5.21814C17.4384 2.93137 16.3851 2 14.1323 2H5.85923C3.59874 2 2.55308 2.93137 2.22246 5.24086L2.01487 7.32319C1.93798 8.1334 2.16095 8.9209 2.64534 9.53424C3.22969 10.2839 4.12926 10.7079 5.1288 10.7079C6.09758 10.7079 7.02791 10.2309 7.61225 9.46609C8.13509 10.2309 9.02698 10.7079 10.0188 10.7079C11.0107 10.7079 11.8795 10.2536 12.41 9.49638C13.0021 10.246 13.917 10.7079 14.8704 10.7079C15.893 10.7079 16.8157 10.2612 17.3923 9.47366C17.8536 8.86789 18.0612 8.10311 17.9843 7.31562Z', fill: isBoldIcon ? (0, helper_1.getBoldIconColor)(isActive) : activeColor }),
react_1.default.createElement("path", { d: 'M9.51922 13.6688C8.54275 13.7672 7.80465 14.585 7.80465 15.5542V17.629C7.80465 17.8334 7.9738 18 8.1814 18H11.8489C12.0565 18 12.2256 17.8334 12.2256 17.629V15.8192C12.2333 14.2367 11.2876 13.487 9.51922 13.6688Z', fill: isBoldIcon ? (0, helper_1.getBoldIconColor)(isActive) : activeColor }),
react_1.default.createElement("path", { d: 'M17.2232 11.9574V14.2139C17.2232 16.3038 15.5009 17.9999 13.3788 17.9999C13.1712 17.9999 13.0021 17.8333 13.0021 17.6289V15.8192C13.0021 14.8499 12.7022 14.0927 12.1178 13.5778C11.6027 13.1159 10.903 12.8888 10.0342 12.8888C9.84199 12.8888 9.64977 12.8963 9.44217 12.919C8.07357 13.0553 7.03559 14.1912 7.03559 15.5541V17.6289C7.03559 17.8333 6.86644 17.9999 6.65884 17.9999C4.53676 17.9999 2.81449 16.3038 2.81449 14.2139V11.9725C2.81449 11.4425 3.34501 11.0866 3.84477 11.2608C4.05237 11.3289 4.25997 11.3819 4.47525 11.4122C4.56751 11.4273 4.66747 11.4425 4.75973 11.4425C4.88275 11.4576 5.00577 11.4652 5.12879 11.4652C6.02068 11.4652 6.89719 11.1396 7.58918 10.5793C8.25041 11.1396 9.11156 11.4652 10.0188 11.4652C10.9338 11.4652 11.7795 11.1547 12.4408 10.5944C13.1328 11.1472 13.9939 11.4652 14.8704 11.4652C15.0088 11.4652 15.1472 11.4576 15.2779 11.4425C15.3702 11.4349 15.4547 11.4273 15.5393 11.4122C15.7777 11.3819 15.993 11.3138 16.2082 11.2456C16.708 11.079 17.2232 11.4425 17.2232 11.9574Z', fill: isBoldIcon ? (0, helper_1.getBoldIconColor)(isActive) : activeColor }))) : (react_1.default.createElement("svg", { fill: 'none', height: '20', viewBox: '0 0 20 20', width: '20', xmlns: 'http://www.w3.org/2000/svg' },
react_1.default.createElement("path", { d: 'M10.989 15.0389C10.9889 14.5029 10.8513 14.2055 10.6781 14.0377C10.5047 13.87 10.1973 13.7369 9.64348 13.7369C9.08938 13.7369 8.78136 13.87 8.60801 14.0377C8.43472 14.2055 8.29715 14.5029 8.29709 15.0389V16.3417H10.989V15.0389ZM5.48356 2.57427C4.53533 2.57428 4.01532 2.75176 3.69288 3.03996C3.36374 3.33416 3.12812 3.84244 2.99535 4.76405L2.78898 6.79599C2.66885 7.9643 3.54175 8.89923 4.75269 8.89944C5.72674 8.89944 6.62222 8.11862 6.71639 7.17883L6.7173 7.17709L7.19223 2.57427H5.48356ZM7.90958 7.04105C7.80439 8.0759 8.57834 8.89944 9.64348 8.89944C10.6122 8.8993 11.3366 8.21851 11.381 7.31662C11.38 7.30774 11.3783 7.29849 11.3774 7.28959V7.28784L10.8907 2.57427H8.37279L7.90958 7.04105ZM12.5246 6.93204C12.5359 7.04329 12.5393 7.15417 12.5381 7.26255C12.6826 8.16612 13.5533 8.89931 14.4964 8.89944C15.7076 8.89944 16.5803 7.9653 16.4601 6.79686L16.2474 4.7719L16.1934 4.44313C16.0549 3.72096 15.8378 3.29806 15.549 3.03996C15.2266 2.75181 14.7065 2.57427 13.7583 2.57427H12.0794L12.5246 6.93204ZM12.1425 16.333C13.5593 16.2803 14.4556 15.9618 15.0173 15.4182C15.634 14.8214 15.9717 13.8347 15.9717 12.2194V9.67559C15.5368 9.89278 15.0367 10.0157 14.4964 10.0157C13.5234 10.0156 12.617 9.54597 12.0317 8.82706C11.5175 9.54795 10.6559 10.0156 9.64348 10.0157C8.61886 10.0157 7.74733 9.53743 7.23548 8.80177C6.65241 9.53507 5.73614 10.0157 4.75269 10.0157C4.22436 10.0156 3.73433 9.89875 3.30627 9.69042V12.2194C3.30629 13.8346 3.64398 14.8214 4.26063 15.4182C4.82344 15.9628 5.72215 16.2812 7.14356 16.333V15.0389C7.14361 14.3325 7.32568 13.7002 7.79242 13.2485C8.25928 12.7967 8.91332 12.6206 9.64348 12.6206C10.3735 12.6207 11.0269 12.7968 11.4936 13.2485C11.9604 13.7002 12.1424 14.3325 12.1425 15.0389V16.333ZM17.1252 12.2194C17.1252 13.9454 16.7715 15.2992 15.8329 16.2074C14.8943 17.1157 13.4953 17.458 11.7117 17.458H7.56622C5.78272 17.458 4.38362 17.1157 3.44505 16.2074C2.50651 15.2992 2.15275 13.9453 2.15274 12.2194V8.87764C2.15277 8.82865 2.16118 8.78163 2.17346 8.73636C1.76791 8.169 1.56259 7.45604 1.64176 6.68611L1.84903 4.64022C1.84977 4.633 1.85071 4.6256 1.85174 4.61842C1.99603 3.61011 2.2833 2.78095 2.91064 2.2202C3.54559 1.65276 4.4172 1.45802 5.48356 1.45801H7.82937C7.83269 1.45801 7.83597 1.4597 7.83929 1.45975C7.84319 1.45967 7.84708 1.45801 7.851 1.45801H13.7583C14.8248 1.45801 15.6972 1.65263 16.3322 2.2202C16.9593 2.78094 17.2459 3.61024 17.3902 4.61842C17.3911 4.62502 17.3922 4.63185 17.3929 4.63847L17.6083 6.68524C17.6862 7.44296 17.4883 8.14642 17.0955 8.70933C17.113 8.76269 17.1252 8.81865 17.1252 8.87764V12.2194Z', fill: 'currentColor' })));
}
//# sourceMappingURL=cua-hang.js.map