phx-react
Version:
PHX REACT
12 lines • 5.57 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: 'M4.66667 7.28932V4.11186C4.66667 3.31166 5.08933 2 7.11533 2C7.37935 2.00273 7.64286 2.02368 7.904 2.06268C8.31534 2.18237 8.67688 2.43207 8.93454 2.7744C9.19219 3.11674 9.3321 3.53332 9.33333 3.96182V9.24648C9.77061 9.35941 10.2294 9.35941 10.6667 9.24648V3.96182C10.6679 3.53332 10.8078 3.11674 11.0655 2.7744C11.3231 2.43207 11.6847 2.18237 12.096 2.06268C12.3572 2.02457 12.6207 2.00452 12.8847 2.00267C14.9107 2 15.3333 3.31166 15.3333 4.11186V7.28932C15.3317 7.86836 15.1424 8.43125 14.7938 8.89355C14.4452 9.35584 13.9562 9.6926 13.4 9.8533L11.0993 10.5115C10.3803 10.7165 9.61835 10.7165 8.89933 10.5115L6.6 9.8533C6.04384 9.6926 5.55478 9.35584 5.2062 8.89355C4.85761 8.43125 4.6683 7.86836 4.66667 7.28932ZM16.6667 4.68067V7.28932C16.6641 8.15817 16.3798 9.00273 15.8565 9.69624C15.3333 10.3898 14.5993 10.8948 13.7647 11.1356L11.4653 11.7931C10.508 12.0666 9.49331 12.0666 8.536 11.7931L6.23467 11.135C5.40035 10.894 4.66663 10.3889 4.14353 9.69558C3.62043 9.00223 3.33616 8.15794 3.33333 7.28932V4.68067C2.92081 4.98865 2.58558 5.38842 2.35416 5.84836C2.12275 6.30829 2.0015 6.81577 2 7.33067V11.9985C2.00106 12.8825 2.35259 13.7299 2.97748 14.3549C3.60237 14.98 4.4496 15.3316 5.33333 15.3327H9.33333V16.6663H7.33333C7.15652 16.6663 6.98695 16.7366 6.86193 16.8616C6.7369 16.9867 6.66667 17.1563 6.66667 17.3332C6.66667 17.51 6.7369 17.6796 6.86193 17.8047C6.98695 17.9297 7.15652 18 7.33333 18H12.6667C12.8435 18 13.013 17.9297 13.1381 17.8047C13.2631 17.6796 13.3333 17.51 13.3333 17.3332C13.3333 17.1563 13.2631 16.9867 13.1381 16.8616C13.013 16.7366 12.8435 16.6663 12.6667 16.6663H10.6667V15.3327H14.6667C15.5504 15.3316 16.3976 14.98 17.0225 14.3549C17.6474 13.7299 17.9989 12.8825 18 11.9985V7.33067C17.9985 6.81577 17.8772 6.30829 17.6458 5.84836C17.4144 5.38842 17.0792 4.98865 16.6667 4.68067Z', 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: 'M15.2667 4.06206C15.1847 3.70986 15.0319 3.37802 14.8177 3.0867C14.6034 2.79539 14.3322 2.5507 14.0204 2.3675C13.7086 2.18431 13.3628 2.06644 13.004 2.02107C12.6452 1.9757 12.2809 2.00378 11.9333 2.10359L10.784 2.43222C10.4929 2.51589 10.2247 2.66501 10 2.86818C9.77531 2.66501 9.50715 2.51589 9.216 2.43222L8.06667 2.10359C7.71929 2.0043 7.35536 1.97662 6.99696 2.02224C6.63856 2.06787 6.29317 2.18583 5.98175 2.36899C5.67034 2.55214 5.39939 2.79666 5.18536 3.0877C4.97133 3.37874 4.81868 3.71023 4.73667 4.06206C3.96987 4.20155 3.27619 4.60531 2.77622 5.20314C2.27625 5.80098 2.0016 6.55509 2 7.3344L2 12.0006C2.00106 12.8842 2.35259 13.7314 2.97748 14.3562C3.60237 14.981 4.4496 15.3325 5.33333 15.3336H9.33333V16.6668H7.33333C7.15652 16.6668 6.98695 16.737 6.86193 16.862C6.7369 16.9871 6.66667 17.1566 6.66667 17.3334C6.66667 17.5102 6.7369 17.6797 6.86193 17.8048C6.98695 17.9298 7.15652 18 7.33333 18H12.6667C12.8435 18 13.013 17.9298 13.1381 17.8048C13.2631 17.6797 13.3333 17.5102 13.3333 17.3334C13.3333 17.1566 13.2631 16.9871 13.1381 16.862C13.013 16.737 12.8435 16.6668 12.6667 16.6668H10.6667V15.3336H14.6667C15.5504 15.3325 16.3976 14.981 17.0225 14.3562C17.6474 13.7314 17.9989 12.8842 18 12.0006V7.3344C17.9985 6.55557 17.7244 5.80184 17.2251 5.20407C16.7258 4.6063 16.0329 4.20225 15.2667 4.06206ZM10.6667 4.35536C10.6667 4.21059 10.7139 4.06977 10.8011 3.95419C10.8883 3.83862 11.0108 3.75457 11.15 3.71476L12.3 3.38613C12.4985 3.32937 12.7074 3.31946 12.9103 3.35717C13.1133 3.39489 13.3047 3.4792 13.4695 3.60347C13.6343 3.72774 13.768 3.88857 13.86 4.0733C13.9521 4.25803 14 4.46161 14 4.668V7.29307C13.9991 7.58234 13.9044 7.86352 13.7301 8.0944C13.5558 8.32529 13.3113 8.49343 13.0333 8.57361L10.6667 9.24954V4.35536ZM6.53333 3.60144C6.69782 3.47762 6.88883 3.39372 7.0913 3.35635C7.29377 3.31899 7.50215 3.32918 7.7 3.38613L8.85 3.71476C8.98921 3.75457 9.11167 3.83862 9.19887 3.95419C9.28607 4.06977 9.33327 4.21059 9.33333 4.35536V9.24954L6.96667 8.57361C6.6887 8.49343 6.44423 8.32529 6.26993 8.0944C6.09564 7.86352 6.00092 7.58234 6 7.29307V4.668C5.99932 4.46091 6.04722 4.25654 6.13984 4.07131C6.23247 3.88608 6.36724 3.72515 6.53333 3.60144ZM16.6667 12.0006C16.6667 12.531 16.456 13.0396 16.0809 13.4147C15.7058 13.7897 15.1971 14.0004 14.6667 14.0004H5.33333C4.8029 14.0004 4.29419 13.7897 3.91912 13.4147C3.54405 13.0396 3.33333 12.531 3.33333 12.0006V7.3344C3.33504 6.92227 3.46406 6.52073 3.70273 6.18471C3.94139 5.8487 4.27806 5.59463 4.66667 5.45725V7.29307C4.6683 7.8719 4.85761 8.4346 5.2062 8.89673C5.55478 9.35886 6.04384 9.69551 6.6 9.85615L8.90067 10.5141C9.61968 10.719 10.3817 10.719 11.1007 10.5141L13.4013 9.85615C13.9572 9.69526 14.446 9.35852 14.7943 8.89641C15.1427 8.4343 15.3318 7.87173 15.3333 7.29307V5.45725C15.7219 5.59463 16.0586 5.8487 16.2973 6.18471C16.5359 6.52073 16.665 6.92227 16.6667 7.3344V12.0006Z', fill: 'currentColor' })));
}
//# sourceMappingURL=lms.js.map