UNPKG

@blueprintjs/icons

Version:

Components, fonts, icons, and css files for creating and displaying icons.

35 lines 5.24 kB
"use strict"; /* * 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.Subscript = 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.Subscript = 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: "subscript", ref: ref }, props), React.createElement("path", { d: isLarge ? "M4.4819 267.382C1.67985 270.8238 0 275.2158 0 280C0 291.0456 8.9543 300 20 300C26.385 300 32.0714 297.0078 35.733 292.3494L100 212.0156L164.2676 292.3502C167.9294 297.0082 173.6152 300 180 300C191.0458 300 200 291.0456 200 280C200 275.2154 198.32 270.8234 195.5176 267.3814L125.6124 180L195.517 92.62C198.3198 89.178 200 84.784 200 80C200 68.954 191.0458 60 180 60C173.6146 60 167.928 62.992 164.2664 67.652L100 147.984L35.7334 67.652C32.0718 62.992 26.3854 60 20 60C8.9543 60 0 68.954 0 80C0 84.784 1.680234 89.178 4.48286 92.62L74.3876 180L4.4819 267.382zM320.48 40.8C323.6760000000001 44.6 327.2720000000001 48.4 331.668 51.8C335.864 55.4 340.6600000000001 59 345.854 62.4L345.856 62.4C350.85 66 355.8440000000001 69.6 360.8400000000001 73.6C365.834 77.6 370.63 81.8 375.424 86.2C380.0200000000001 90.6 384.216 95.6 388.012 101C391.608 106.4 394.606 112.2 396.804 118.6C399.002 125 400 132 400 140C400 146.4 399.002 153 397.202 160C395.404 167 392.208 173.6 387.812 179.4C383.416 185.4 377.622 190.4 370.43 194.2C363.236 198.2 354.246 200 343.456 200C333.666 200 324.876 198 317.4820000000001 194.2C310.0900000000001 190.6 303.696 185.4 298.502 178.6C293.306 172 289.51 164 286.914 154.6C284.316 145.4 282.918 135.4 282.918 124.6H311.488C311.688 131.6 312.288 138 313.286 144C314.286 150 316.084 155.2 318.282 159.6C320.48 164 323.476 167.4 327.2720000000001 170C331.07 172.6 335.864 173.8 341.4580000000001 173.8C347.652 173.8 352.648 172.6 356.444 170.2C360.24 167.8 363.236 165 365.434 161.6C367.632 158.2 369.032 154.4 369.83 150.4C370.63 146.4 371.0300000000001 142.6 371.0300000000001 139C370.83 131.4 369.032 124.6 365.834 118.6C362.838 112.6 358.442 107.2 353.246 102C348.052 97 342.4580000000001 92.2 336.264 87.8C330.07 83.4 324.076 78.8 318.482 74.2000000000001C306.4940000000001 65.2000000000001 297.302 54.6 290.31 42.6C283.3160000000001 30.4 279.92 16.2 279.7200000000001 0H399.4V28.6H313.886C315.086 32.8 317.2820000000001 37 320.48 40.8z" : "M123.9996 232C127.7768 237.0362 133.7046 240 139.9996 240C156.4806 240 165.8882 221.1848 155.9996 208L104.9996 140L155.9996 72C165.8882 58.816 156.4806 40 139.9996 40C133.7046 40 127.7768 42.964 123.9996 48L79.9996 106.666L35.9996 48C32.2226 42.964 26.2948 40 19.99964 40C3.51884 40 -5.88882 58.816 3.99964 72L54.9996 140L3.99964 208C-5.8888 221.1848 3.51884 240 19.99964 240C26.2948 240 32.2226 237.0362 35.9996 232L79.9996 173.3334L123.9996 232zM263.082 41.118L263.4 41.4C267 44.2 270.6 47 274.8 49.8L287.4 58.8C291.6 62 295.6 65.4 299.6 69C303.6 72.6 307 76.6 310 80.8C313 85 315.6 89.8 317.4 94.8C319.2000000000001 99.8 320 105.6 320 111.8C320 116.8 319.2000000000001 122 317.6 127.6C316.2 133.4 313.6 138.6 309.8 143.4C306.2 148.2 301.2 152.2 295.2 155.4C289.4000000000001 158.4 282 160 273 160C265 160 257.8 158.4 251.6 155.4C245.4 152.2 240 148 235.8 143C231.4 137.6 228.2 131.2 226 123.8C223.8 116.4 222.8 108.4 222.8 99.8H246.6C246.8 105.2 247.2 110.4 248.2 115.2C249 120 250.4 124.2 252.4 127.6C254.2 131.2 256.8 134 260 136C263.2 138 267 139 271.8 139C277 139 281.2 138 284.4000000000001 136.2C287.4 134.4 290 132 291.8 129.2C293.6 126.4 294.8 123.4 295.4 120.2C296 117 296.4 114 296.4 111.2C296.2 105 294.8 99.6 292 94.8C289.2000000000001 90.2 285.6 85.8 281.4 81.8C277 77.6 272.2 74 267.2 70.4C262 66.8 257 63.2 252.2 59.6C242.2 52.4 234.4 44 228.8 34.2C223.2 24.4 220.2 13 220 0H319.8V22.8H248.8C249.8 26.2 251.6 29.4 254.2 32.6C256.718 35.506 259.8 38.224 263.082 41.118z", fillRule: "evenodd", transform: "scale(0.05, -0.05) translate(".concat(translation, ", ").concat(translation, ")"), style: style }))); }); exports.Subscript.defaultProps = { size: iconTypes_1.IconSize.STANDARD, }; exports.Subscript.displayName = "Blueprint5.Icon.Subscript"; exports.default = exports.Subscript; //# sourceMappingURL=subscript.js.map