@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
35 lines • 7.74 kB
JavaScript
/*
* Copyright 2024 Palantir Technologies, Inc. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.CurlyBraces = void 0;
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var iconTypes_1 = require("../../iconTypes");
var svgIconContainer_1 = require("../../svgIconContainer");
exports.CurlyBraces = React.forwardRef(function (props, ref) {
var isLarge = props.size >= iconTypes_1.IconSize.LARGE;
var pixelGridSize = isLarge ? iconTypes_1.IconSize.LARGE : iconTypes_1.IconSize.STANDARD;
var translation = "".concat(-1 * pixelGridSize / 0.05 / 2);
var style = { transformOrigin: "center" };
return (React.createElement(svgIconContainer_1.SVGIconContainer, tslib_1.__assign({ iconName: "curly-braces", ref: ref }, props),
React.createElement("path", { d: isLarge ? "M160 340C134.1502 340 113.941 332.6296 103.3648 313.8944C98.6776 305.5916 96.958 296.722 96.3022 288.9968C95.6502 281.3178 95.9622 273.3792 96.2706 266.5918C96.9598 251.4318 97.3804 241.4906 94.694 233.7298C93.5832 230.5204 92.0114 228.0852 89.6268 226.0212C87.1322 223.8624 82.827 221.3222 75.1492 219.4028C66.246 217.177 60 209.1774 60 200C60 190.822 66.246 182.822 75.1492 180.598C82.827 178.678 87.1322 176.138 89.6268 173.978C92.0114 171.914 93.5832 169.48 94.694 166.27C97.3804 158.51 96.9598 148.568 96.2706 133.408C95.9622 126.62 95.6502 118.682 96.3022 111.004C96.958 103.278 98.6776 94.408 103.3648 86.106C113.941 67.37 134.1502 60 160 60C171.0456 60 180 68.954 180 80C180 91.046 171.0456 100 160 100C141.3372 100 138.6864 104.872 138.2294 105.712L138.1978 105.77C137.416 107.154 136.5576 109.69 136.1588 114.388C135.756 119.13 135.9128 124.63 136.2294 131.592C136.2716 132.518 136.3188 133.482 136.3674 134.48C136.9682 146.746 137.8124 163.988 132.4934 179.354C129.97 186.644 126.0508 193.724 120.1924 200C126.0508 206.2764 129.97 213.3554 132.4934 220.6452C137.8124 236.0112000000001 136.9682 253.2542 136.3674 265.5208C136.3188 266.5168 136.2714 267.4814 136.2294 268.4082C135.9128 275.3708000000001 135.756 280.8698 136.1588 285.6126000000001C136.5576 290.3092000000001 137.416 292.846 138.1978 294.2306L138.2294 294.288C138.6864 295.1282 141.3372 300 160 300C171.0456 300 180 308.9544 180 320C180 331.0456000000001 171.0456 340 160 340zM240 340C265.85 340 286.058 332.6296 296.636 313.8944C301.322 305.5916 303.0420000000001 296.722 303.6980000000001 288.9968C304.35 281.3178 304.038 273.3792 303.73 266.5918C303.04 251.4318 302.62 241.4906 305.306 233.7298C306.416 230.5204 307.988 228.0852 310.374 226.0212C312.868 223.8624 317.1740000000001 221.3222 324.85 219.4028C333.754 217.177 340 209.1774 340 200C340 190.822 333.754 182.822 324.85 180.598C317.1740000000001 178.678 312.868 176.138 310.374 173.978C307.988 171.914 306.416 169.48 305.306 166.27C302.62 158.51 303.04 148.568 303.73 133.408C304.038 126.62 304.35 118.682 303.6980000000001 111.004C303.0420000000001 103.278 301.322 94.408 296.636 86.106C286.058 67.37 265.85 60 240 60C228.954 60 220 68.954 220 80C220 91.046 228.954 100 240 100C258.662 100 261.314 104.872 261.77 105.712L261.802 105.77C262.584 107.154 263.442 109.69 263.842 114.388C264.244 119.13 264.088 124.63 263.77 131.592C263.728 132.518 263.682 133.48 263.632 134.474C263.032 146.74 262.188 163.988 267.506 179.354C270.03 186.644 273.95 193.724 279.808 200C273.95 206.2764 270.03 213.3554 267.506 220.6452C262.188 236.0112000000001 263.032 253.2542 263.632 265.5208C263.682 266.5174 263.728 267.481 263.77 268.4082C264.088 275.3708000000001 264.244 280.8698 263.842 285.6126000000001C263.442 290.3092000000001 262.584 292.846 261.802 294.2306L261.77 294.288C261.314 295.1282 258.662 300 240 300C228.954 300 220 308.9544 220 320C220 331.0456000000001 228.954 340 240 340z" : "M72.3814 258.8836C82.055 275.0062 100.0022 280 120 280C131.0456 280 140 271.0456 140 260C140 248.9544 131.0456 240 120 240C111.1896 240 107.7076 238.7046 106.5844 238.0524C106.436 237.6204 106.1658 236.6122 106.0102 234.6712C105.7646 231.6068 105.8978 227.8258 106.2154 222.4244C106.2598 221.6696 106.3094 220.879 106.361 220.0554C106.9614 210.4744 107.8396 196.4576 104.126 182.9716C101.857 174.7312 98.0152 166.96 92.2094 160C98.0152 153.04 101.857 145.2688 104.126 137.0284C107.8396 123.5424 106.9614 109.526 106.361 99.944C106.3094 99.122 106.2598 98.33 106.2154 97.576C105.8978 92.174 105.7646 88.394 106.0102 85.328C106.1658 83.388 106.436 82.38 106.5844 81.948C107.7076 81.296 111.1896 80 120 80C131.0456 80 140 71.046 140 60C140 48.954 131.0456 40 120 40C100.0022 40 82.055 44.994 72.3814 61.116C68.0816 68.282 66.6404 75.866 66.1382 82.132C65.6416 88.326 65.9772 94.7 66.2846 99.924L66.3112 100.378C66.986 111.842 67.4414 119.582 65.5614 126.4092C64.1296 131.609 61.0864 137.096 51.0558 142.1114C44.28 145.4992 40 152.4246 40 160C40 167.5754 44.28 174.5008 51.0558 177.8886C61.0864 182.904 64.1296 188.391 65.5614 193.5908C67.4414 200.4184 66.986 208.1586 66.3112 219.6216L66.2846 220.0756C65.9772 225.2992 65.6416 231.6744 66.1382 237.8678C66.6404 244.1334 68.0816 251.7172 72.3814 258.8836zM106.133 82.312C106.133 82.312 106.281 82.244 106.4538 82.028C106.199 82.19 106.133 82.312 106.133 82.312zM106.133 237.688C106.133 237.688 106.1988 237.8098 106.4538 237.973C106.281 237.7562 106.133 237.688 106.133 237.688zM247.618 258.8836C237.946 275.0062 219.998 280 200 280C188.9544 280 180 271.0456 180 260C180 248.9544 188.9544 240 200 240C208.81 240 212.292 238.7046 213.416 238.0524C213.564 237.6204 213.834 236.6122 213.99 234.6712C214.236 231.6068 214.102 227.8258 213.784 222.4244C213.74 221.6696 213.69 220.879 213.638 220.0554C213.038 210.4744 212.16 196.4576 215.874 182.9716C218.144 174.7312 221.984 166.96 227.79 160C221.984 153.04 218.144 145.2688 215.874 137.0284C212.16 123.5424 213.038 109.526 213.638 99.944C213.69 99.122 213.74 98.33 213.784 97.576C214.102 92.174 214.236 88.394 213.99 85.328C213.834 83.388 213.564 82.38 213.416 81.948C212.292 81.296 208.81 80 200 80C188.9544 80 180 71.046 180 60C180 48.954 188.9544 40 200 40C219.998 40 237.946 44.994 247.618 61.116C251.918 68.282 253.36 75.866 253.862 82.132C254.358 88.326 254.022 94.7 253.716 99.924L253.688 100.378C253.014 111.842 252.558 119.582 254.438 126.4092C255.87 131.609 258.914 137.096 268.944 142.1114C275.72 145.4992 280 152.4246 280 160C280 167.5754 275.72 174.5008 268.944 177.8886C258.914 182.904 255.87 188.391 254.438 193.5908C252.558 200.4184 253.014 208.1586 253.688 219.6216L253.716 220.0756C254.022 225.2992 254.358 231.6744 253.862 237.8678C253.36 244.1334 251.918 251.7172 247.618 258.8836zM213.866 82.312C213.866 82.312 213.718 82.244 213.546 82.028C213.802 82.19 213.866 82.312 213.866 82.312zM213.866 237.688C213.866 237.688 213.802 237.8098 213.546 237.973C213.718 237.7562 213.866 237.688 213.866 237.688z", fillRule: "evenodd", transform: "scale(0.05, -0.05) translate(".concat(translation, ", ").concat(translation, ")"), style: style })));
});
exports.CurlyBraces.defaultProps = {
size: iconTypes_1.IconSize.STANDARD,
};
exports.CurlyBraces.displayName = "Blueprint5.Icon.CurlyBraces";
exports.default = exports.CurlyBraces;
//# sourceMappingURL=curly-braces.js.map
;