UNPKG

@blueprintjs/icons

Version:

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

31 lines 4.44 kB
/* * 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 Flash = 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: "flash", ref: ref, ...props }, React.createElement("path", { d: isLarge ? "M99.2 272.6C102.8 269 107.8 266.8 113.4 266.8C124.4 266.8 133.4 275.8 133.4 286.8C133.4 292.4 131.2 297.4 127.6 301L87.6 341C83.8 344.4 78.8 346.6 73.4 346.6C62.4 346.6 53.4 337.6 53.4 326.6C53.4 321 55.6 316 59.2 312.4L99.2 272.6zM286.6 266.6C292.2 266.6 297.2 268.8 300.8 272.4L340.8 312.4C344.4 316 346.6 321 346.6 326.6C346.6 337.6 337.6 346.6 326.6 346.6C321 346.6 316 344.4 312.4 340.8L272.4 300.8C268.8 297.2 266.6 292.2 266.6 286.6C266.6 275.6 275.6 266.6 286.6 266.6zM200 300C211 300 220 309 220 320V380C220 391 211 400 200 400S180 391 180 380V320C180 309 189 300 200 300zM100 200C100 211 91 220 80 220H20C9 220 0 211 0 200C0 189 9 180 20 180H80C91 180 100 189 100 200zM380 220H320C309 220 300 211 300 200C300 189 309 180 320 180H380C391 180 400 189 400 200C400 211 391 220 380 220zM200 280C155.8 280 120 244.2 120 200C120 155.8 155.8 120 200 120S280 155.8 280 200C280 244.2 244.2 280 200 280zM200 160C178 160 160 178 160 200C160 222 178 240 200 240S240 222 240 200C240 178 222 160 200 160zM300.8 127.4C297.2 131 292.2 133.2 286.6 133.2C275.6 133.2 266.6 124.2 266.6 113.2C266.6 107.6 268.8 102.6 272.4 99L312.4 59C316 55.4 321 53.2 326.6 53.2C337.6 53.2 346.6 62.2 346.6 73.2C346.6 78.8 344.4 83.8 340.8 87.4L300.8 127.4zM200 100C189 100 180 91 180 80V20C180 9 189 0 200 0S220 9 220 20V80C220 91 211 100 200 100zM113.4 133.4C107.8 133.4 102.8 131.2 99.2 127.6L59.2 87.6C55.6 84 53.4 79 53.4 73.4C53.4 62.4 62.4 53.4 73.4 53.4C79 53.4 84 55.6 87.6 59.2000000000001L127.6 99.2000000000001C131.2 102.8 133.4 107.8 133.4 113.4C133.4 124.4 124.4 133.4 113.4 133.4z" : "M80 160C80 171 71 180 60 180H20C9 180 0 171 0 160C0 149 9 140 20 140H60C71 140 80 149 80 160zM160 240C171 240 180 249 180 260V300C180 311 171 320 160 320S140 311 140 300V260C140 249 149 240 160 240zM75.8 215.8C79.4 212.2 84.4 210 90 210C101 210 110 219 110 230C110 235.6 107.8 240.6 104.2 244.2L74.2 274.2C70.6 277.8 65.6 280 60 280C49 280 40 271 40 260C40 254.4 42.2 249.4 45.8 245.8L75.8 215.8zM90 110C84.4 110 79.4 107.8 75.8 104.2L45.8 74.2C42.2 70.6 40 65.6 40 60C40 49 49 40 60 40C65.6 40 70.6 42.2 74.2 45.8L104.2 75.8C107.8 79.4 110 84.4 110 90C110 101 101 110 90 110zM230 210C235.6 210 240.6 212.2 244.2 215.8L274.2000000000001 245.8C277.8 249.4 280 254.4 280 260C280 271 271 280 260 280C254.4 280 249.4 277.8 245.8 274.2L215.8 244.2C212.2 240.6 210 235.6 210 230C210 219 219 210 230 210zM244.2 104.2C240.6 107.8 235.6 110 230 110C219 110 210 101 210 90C210 84.4 212.2 79.4 215.8 75.8L245.8 45.8C249.4 42.2 254.4 40 260 40C271 40 280 49 280 60C280 65.6 277.8 70.6 274.2000000000001 74.2L244.2 104.2zM300 180H260C249 180 240 171 240 160C240 149 249 140 260 140H300C311 140 320 149 320 160C320 171 311 180 300 180zM160 220C126.8 220 100 193.2 100 160S126.8 100 160 100S220 126.8 220 160S193.2 220 160 220zM160 140C149 140 140 149 140 160C140 171 149 180 160 180S180 171 180 160C180 149 171 140 160 140zM160 80C149 80 140 71 140 60V20C140 9 149 0 160 0S180 9 180 20V60C180 71 171 80 160 80z", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style }))); }); Flash.defaultProps = { size: IconSize.STANDARD, }; Flash.displayName = `Blueprint5.Icon.Flash`; export default Flash; //# sourceMappingURL=flash.js.map