ubie-oss / ubie-icons

https://ubie-oss.github.io/ubie-icons/storybook-static/
MIT License
27 stars 3 forks source link

Compile Target を esnext に設定 #19

Closed yukukotani closed 2 years ago

yukukotani commented 2 years ago

polyfill が全アイコンに含まれてしまっていた。

downpile はアプリケーション側が環境に応じて行うべきなので、ここでは esnext に設定する。

Before

var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
function SvgAccountSettingIcon(props) {
    return (_jsxs("svg", __assign({ width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { children: [_jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.5 7.5C15.5 9.98528 13.4853 12 11 12C8.51472 12 6.5 9.98528 6.5 7.5C6.5 5.01472 8.51472 3 11 3C13.4853 3 15.5 5.01472 15.5 7.5ZM13.5 7.5C13.5 8.88071 12.3807 10 11 10C9.61929 10 8.5 8.88071 8.5 7.5C8.5 6.11929 9.61929 5 11 5C12.3807 5 13.5 6.11929 13.5 7.5Z", fill: "currentColor" }, void 0), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M16.3301 11.5C16.1006 11.5 15.9007 11.6561 15.845 11.8787L15.5089 13.2233C15.0319 13.3902 14.5961 13.6449 14.2209 13.968L12.8874 13.5865C12.6668 13.5234 12.4316 13.6186 12.3169 13.8173L11.8169 14.6833C11.7022 14.882 11.7374 15.1333 11.9024 15.2927L12.8991 16.2565C12.8538 16.4974 12.8301 16.7459 12.8301 17C12.8301 17.2544 12.8538 17.5032 12.8992 17.7444L11.9028 18.7078C11.7379 18.8673 11.7027 19.1186 11.8174 19.3173L12.3174 20.1833C12.4321 20.382 12.6673 20.4771 12.8879 20.414L14.2215 20.0325C14.5965 20.3554 15.0321 20.6099 15.5088 20.7766L15.845 22.1213C15.9006 22.3439 16.1006 22.5 16.3301 22.5H17.3301C17.5595 22.5 17.7595 22.3439 17.8151 22.1213L18.1513 20.7767C18.6284 20.6098 19.0642 20.3551 19.4393 20.0319L20.7732 20.4135C20.9938 20.4766 21.229 20.3814 21.3437 20.1827L21.8437 19.3167C21.9585 19.118 21.9232 18.8667 21.7583 18.7073L20.7612 17.7431C20.8064 17.5023 20.8301 17.2539 20.8301 17C20.8301 16.7458 20.8064 16.4971 20.761 16.256L21.7578 15.2922C21.9227 15.1327 21.958 14.8814 21.8433 14.6827L21.3433 13.8167C21.2285 13.618 20.9933 13.5229 20.7727 13.586L19.4387 13.9676C19.0637 13.6447 18.6281 13.3901 18.1513 13.2234L17.8152 11.8787C17.7595 11.6561 17.5595 11.5 17.3301 11.5H16.3301ZM18.8301 17C18.8301 18.1046 17.9346 19 16.8301 19C15.7255 19 14.8301 18.1046 14.8301 17C14.8301 15.8954 15.7255 15 16.8301 15C17.9346 15 18.8301 15.8954 18.8301 17Z", fill: "currentColor" }, void 0), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.2899 18.9999C8.38666 18.9996 6.94811 18.9965 5.84624 18.9693C4.98604 18.9481 4.40358 18.9127 4.00824 18.8679C4.04997 18.5195 4.26781 17.9373 5.05134 17.3674C5.88023 16.7646 7.40964 16.1396 10.068 16.0203C10.1678 15.3076 10.375 14.6292 10.6726 14.0022C3.93742 14.0943 2 17.0315 2 19C2 19.5368 2 19.9295 2.17403 20.2168C2.64838 21 4.41567 21 11 21L11.2547 21C10.8334 20.396 10.5049 19.7224 10.2899 18.9999ZM4.0107 19.4916C4.0115 19.4962 4.01179 19.4987 4.01174 19.4988C4.01173 19.4988 4.01183 19.4993 4.01174 19.4988L4.0107 19.4916Z", fill: "currentColor" }, void 0)] }), void 0));
}
export default SvgAccountSettingIcon;

After

import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
function SvgAccountSettingIcon(props) {
    return (_jsxs("svg", Object.assign({ width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { children: [_jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.5 7.5C15.5 9.98528 13.4853 12 11 12C8.51472 12 6.5 9.98528 6.5 7.5C6.5 5.01472 8.51472 3 11 3C13.4853 3 15.5 5.01472 15.5 7.5ZM13.5 7.5C13.5 8.88071 12.3807 10 11 10C9.61929 10 8.5 8.88071 8.5 7.5C8.5 6.11929 9.61929 5 11 5C12.3807 5 13.5 6.11929 13.5 7.5Z", fill: "currentColor" }, void 0), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M16.3301 11.5C16.1006 11.5 15.9007 11.6561 15.845 11.8787L15.5089 13.2233C15.0319 13.3902 14.5961 13.6449 14.2209 13.968L12.8874 13.5865C12.6668 13.5234 12.4316 13.6186 12.3169 13.8173L11.8169 14.6833C11.7022 14.882 11.7374 15.1333 11.9024 15.2927L12.8991 16.2565C12.8538 16.4974 12.8301 16.7459 12.8301 17C12.8301 17.2544 12.8538 17.5032 12.8992 17.7444L11.9028 18.7078C11.7379 18.8673 11.7027 19.1186 11.8174 19.3173L12.3174 20.1833C12.4321 20.382 12.6673 20.4771 12.8879 20.414L14.2215 20.0325C14.5965 20.3554 15.0321 20.6099 15.5088 20.7766L15.845 22.1213C15.9006 22.3439 16.1006 22.5 16.3301 22.5H17.3301C17.5595 22.5 17.7595 22.3439 17.8151 22.1213L18.1513 20.7767C18.6284 20.6098 19.0642 20.3551 19.4393 20.0319L20.7732 20.4135C20.9938 20.4766 21.229 20.3814 21.3437 20.1827L21.8437 19.3167C21.9585 19.118 21.9232 18.8667 21.7583 18.7073L20.7612 17.7431C20.8064 17.5023 20.8301 17.2539 20.8301 17C20.8301 16.7458 20.8064 16.4971 20.761 16.256L21.7578 15.2922C21.9227 15.1327 21.958 14.8814 21.8433 14.6827L21.3433 13.8167C21.2285 13.618 20.9933 13.5229 20.7727 13.586L19.4387 13.9676C19.0637 13.6447 18.6281 13.3901 18.1513 13.2234L17.8152 11.8787C17.7595 11.6561 17.5595 11.5 17.3301 11.5H16.3301ZM18.8301 17C18.8301 18.1046 17.9346 19 16.8301 19C15.7255 19 14.8301 18.1046 14.8301 17C14.8301 15.8954 15.7255 15 16.8301 15C17.9346 15 18.8301 15.8954 18.8301 17Z", fill: "currentColor" }, void 0), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.2899 18.9999C8.38666 18.9996 6.94811 18.9965 5.84624 18.9693C4.98604 18.9481 4.40358 18.9127 4.00824 18.8679C4.04997 18.5195 4.26781 17.9373 5.05134 17.3674C5.88023 16.7646 7.40964 16.1396 10.068 16.0203C10.1678 15.3076 10.375 14.6292 10.6726 14.0022C3.93742 14.0943 2 17.0315 2 19C2 19.5368 2 19.9295 2.17403 20.2168C2.64838 21 4.41567 21 11 21L11.2547 21C10.8334 20.396 10.5049 19.7224 10.2899 18.9999ZM4.0107 19.4916C4.0115 19.4962 4.01179 19.4987 4.01174 19.4988C4.01173 19.4988 4.01183 19.4993 4.01174 19.4988L4.0107 19.4916Z", fill: "currentColor" }, void 0)] }), void 0));
}
export default SvgAccountSettingIcon;