@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
31 lines • 5 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.
*/
import * as React from "react";
import { IconSize } from "../../iconTypes";
import { SVGIconContainer } from "../../svgIconContainer";
export const Superscript = React.forwardRef((props, ref) => {
const isLarge = props.size >= IconSize.LARGE;
const pixelGridSize = isLarge ? IconSize.LARGE : IconSize.STANDARD;
const translation = `${-1 * pixelGridSize / 0.05 / 2}`;
const style = { transformOrigin: "center" };
return (React.createElement(SVGIconContainer, { iconName: "superscript", ref: ref, ...props },
React.createElement("path", { d: isLarge ? "M320.48 240.8C323.6760000000001 244.6 327.2720000000001 248.4 331.668 251.8C335.864 255.4 340.6600000000001 259 345.854 262.4C350.85 266 355.8440000000001 269.6 360.8400000000001 273.6C365.834 277.6 370.63 281.8 375.424 286.2C380.0200000000001 290.6 384.216 295.6 388.012 301C391.608 306.4 394.606 312.2 396.804 318.6C399.002 325 400 332 400 340C400 346.4 399.002 353 397.202 360C395.404 367 392.208 373.6 387.812 379.4C383.416 385.4 377.622 390.4 370.43 394.2C363.236 398.2 354.246 400 343.456 400C333.666 400 324.876 398 317.4820000000001 394.2C310.0900000000001 390.6 303.696 385.4 298.502 378.6C293.306 372 289.51 364 286.914 354.6C284.316 345.4 282.918 335.4 282.918 324.6H311.488C311.688 331.6 312.288 338 313.286 344C314.286 350 316.084 355.2 318.282 359.6C320.48 364 323.476 367.4 327.2720000000001 370C331.07 372.6 335.864 373.8 341.4580000000001 373.8C347.652 373.8 352.648 372.6 356.444 370.2C360.24 367.8 363.236 365 365.434 361.6C367.632 358.2 369.032 354.4 369.83 350.4C370.63 346.4 371.0300000000001 342.6 371.0300000000001 339C370.83 331.4 369.032 324.6 365.834 318.6C362.838 312.6 358.442 307.2 353.246 302C348.052 297 342.4580000000001 292.2 336.264 287.8C330.07 283.4 324.076 278.8 318.482 274.2C306.4940000000001 265.2 297.302 254.6 290.31 242.6C283.3160000000001 230.4 279.92 216.2 279.7200000000001 200H399.4V228.6H313.886C315.086 232.8 317.2820000000001 237 320.48 240.8zM4.4819 267.382C1.67985 270.8238 0 275.2158 0 280C0 291.0456 8.9543 300 20 300C26.385 300 32.0712 297.0078 35.733 292.3494L100 212.0156L164.2676 292.3502C167.9294 297.0082 173.6154 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.6148 60 167.9284 62.992 164.2668 67.65L100 147.984L35.7332 67.65C32.0714 62.992 26.3852 60 20 60C8.9543 60 0 68.954 0 80C0 84.784 1.680234 89.178 4.48286 92.62L74.3876 180L4.4819 267.382z" : "M263.08 201.1188L263.4 201.4C267 204.2 270.6 207 274.8 209.8L287.4 218.8C291.6 222 295.6 225.4 299.6 229C303.6 232.6 307 236.6 310 240.8C313 245 315.6 249.8 317.4 254.8C319.2000000000001 259.8 320 265.6 320 271.8C320 276.8 319.2000000000001 282 317.6 287.6C316.2 293.4 313.6 298.6 309.8 303.4C306.2 308.2 301.2 312.2 295.2 315.4C289.4000000000001 318.4 282 320 273 320C265 320 257.8 318.4 251.6 315.4C245.4 312.2 240 308 235.8 303C231.4 297.6 228.2 291.2 226 283.8C223.8 276.4 222.8 268.4 222.8 259.8H246.6C246.8 265.2 247.2 270.4 248.2 275.2C249 280 250.4 284.2 252.4 287.6C254.2 291.2 256.8 294 260 296C263.2 298 267 299 271.8 299C277 299 281.2 298 284.4000000000001 296.2C287.4 294.4 290 292 291.8 289.2C293.6 286.4 294.8 283.4 295.4 280.2C296 277 296.4 274 296.4 271.2C296.2 265 294.8 259.6 292 254.8C289.2000000000001 250.2 285.6 245.8 281.4 241.8C277 237.6 272.2 234 267.2 230.4C262 226.8 257 223.2 252.2 219.6C242.2 212.4 234.4 204 228.8 194.2C223.2 184.4 220.2 173 220 160H319.8V182.8H248.8C249.8 186.2 251.6 189.4 254.2 192.6C256.718 195.506 259.8 198.2244 263.08 201.1188zM123.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.88882 221.1848 3.51884 240 19.99964 240C26.2948 240 32.2226 237.0362 35.9996 232L79.9996 173.3334L123.9996 232z", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style })));
});
Superscript.defaultProps = {
size: IconSize.STANDARD,
};
Superscript.displayName = `Blueprint5.Icon.Superscript`;
export default Superscript;
//# sourceMappingURL=superscript.js.map