UNPKG

phx-react

Version:

PHX REACT

14 lines 4.24 kB
"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: 'M6.65039 2.48047H13.3574C14.7188 2.48047 15.7476 2.88385 16.4346 3.57129C17.1214 4.25864 17.5232 5.28641 17.5195 6.64648V13.3516C17.5195 14.712 17.1158 15.741 16.4277 16.4287C15.7396 17.1163 14.7108 17.5195 13.3496 17.5195H6.65039C5.28911 17.5195 4.26031 17.1163 3.57227 16.4277C2.88418 15.7391 2.48047 14.7086 2.48047 13.3438V6.64844C2.48047 5.28796 2.88419 4.25902 3.57227 3.57129C4.26037 2.88369 5.28923 2.48047 6.65039 2.48047ZM12.5371 4.3291C11.7701 4.32521 11.0596 4.71431 10.4014 5.37207L9.65625 6.11621L9.65723 6.11719C9.50976 6.25863 9.44389 6.44577 9.44336 6.62598L9.36426 6.41699L8.83984 6.94043L5.27637 10.5029C5.10707 10.6665 4.96389 10.8813 4.85742 11.0918C4.75085 11.3025 4.66426 11.5424 4.63086 11.7705L4.62988 11.7725L4.35059 13.7363C4.26761 14.2859 4.40911 14.8311 4.79785 15.2197C5.11718 15.5389 5.55087 15.6885 5.98633 15.6885C6.0892 15.6885 6.18749 15.6764 6.25488 15.6689L6.2627 15.668L6.26953 15.667L8.23828 15.3877L8.24219 15.3867C8.46868 15.3528 8.70934 15.2632 8.91797 15.1572C9.12643 15.0513 9.33906 14.9095 9.50098 14.748L9.50195 14.749L13.0879 11.1885L13.6406 10.6387L13.4199 10.5645C13.593 10.5573 13.7693 10.4914 13.9053 10.3555L13.9072 10.3535L14.6436 9.60938L14.6426 9.6084C15.2965 8.95416 15.6839 8.26725 15.6943 7.51855V7.51172C15.6942 6.73001 15.3084 6.03074 14.6494 5.37207C14.005 4.72808 13.3028 4.33313 12.5371 4.3291Z', fill: isBoldIcon ? (0, helper_1.getBoldIconColor)(isActive) : activeColor, stroke: isBoldIcon ? (0, helper_1.getBoldIconColor)(isActive) : activeColor, strokeWidth: '0.96' }))) : (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: 'M12.1136 18H7.70041C3.70645 18 2 16.2935 2 12.2994V7.88596C2 3.89184 3.70645 2.18533 7.70041 2.18533H9.17149C9.47306 2.18533 9.72314 2.43542 9.72314 2.737C9.72314 3.03858 9.47306 3.28868 9.17149 3.28868H7.70041C4.30959 3.28868 3.10331 4.49501 3.10331 7.88596V12.2994C3.10331 15.6903 4.30959 16.8967 7.70041 16.8967H12.1136C15.5045 16.8967 16.7107 15.6903 16.7107 12.2994V10.8282C16.7107 10.5266 16.9608 10.2766 17.2624 10.2766C17.564 10.2766 17.8141 10.5266 17.8141 10.8282V12.2994C17.8141 16.2935 16.1076 18 12.1136 18Z', fill: 'currentColor' }), react_1.default.createElement("path", { d: 'M7.3327 14.2784C6.88403 14.2784 6.47213 14.1166 6.17056 13.8224C5.81014 13.4619 5.65568 12.9397 5.73659 12.388L6.05287 10.1739C6.11171 9.74732 6.39122 9.19564 6.69279 8.89406L12.4888 3.09783C13.9526 1.63406 15.4383 1.63406 16.9021 3.09783C17.7038 3.8996 18.0642 4.71608 17.9907 5.53256C17.9245 6.19457 17.5714 6.84187 16.9021 7.50388L11.106 13.3001C10.8045 13.6017 10.2528 13.8812 9.82619 13.94L7.61221 14.2563C7.51659 14.2784 7.42097 14.2784 7.3327 14.2784ZM13.2685 3.87753L7.47246 9.67376C7.3327 9.81352 7.17089 10.1372 7.14146 10.3284L6.82518 12.5425C6.79576 12.7558 6.83989 12.9323 6.95022 13.0427C7.06056 13.153 7.23708 13.1971 7.45039 13.1677L9.66437 12.8514C9.85561 12.822 10.1866 12.6602 10.319 12.5204L16.115 6.72417C16.5931 6.24606 16.8432 5.81943 16.88 5.42222C16.9241 4.9441 16.674 4.43656 16.115 3.87018C14.9382 2.69327 14.1291 3.02428 13.2685 3.87753Z', fill: 'currentColor' }), react_1.default.createElement("path", { d: 'M15.6811 8.49668C15.6296 8.49668 15.5781 8.48933 15.534 8.47462C13.5995 7.9303 12.0622 6.39296 11.5179 4.45843C11.437 4.1642 11.6062 3.86262 11.9004 3.77435C12.1946 3.69344 12.4962 3.86262 12.5771 4.15684C13.0184 5.7236 14.2615 6.96671 15.8282 7.40805C16.1224 7.48896 16.2916 7.7979 16.2107 8.09212C16.1445 8.34221 15.9238 8.49668 15.6811 8.49668Z', fill: 'currentColor' }))); } //# sourceMappingURL=cham-tiet.js.map