UNPKG

@blueprintjs/icons

Version:

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

31 lines 5.03 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 Strikethrough = 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: "strikethrough", ref: ref, ...props }, React.createElement("path", { d: isLarge ? "M360 220H270.8C268.2 221 265.6 222 262.8 222.8C259 223.8 252.6 225.6 243.6 227.8C234.6 230 225.6 232.4000000000001 216.2 234.8C206.8 237.2 198.4 239.4 190.8 241.4S178.8 244.6 177.8 244.8C167.2 247.8 158.8 252.2 152.4 258C146 263.6 142.6 271.6 142.6 281.8C142.6 289 144.4 295 147.8 299.8C151.2 304.6 155.6 308.4 160.8 311.2000000000001C166 314 171.8 316 178.2 317.2S190.8 319 196.8 319C214.6 319 229.4 315.2 241 307.6C250 301.6 256 292.4 258.8 280H311.4C310.2 290.4 307.4000000000001 299.6 303 308C297 319.4 288.8 329 278.4 336.6C268 344.4 256.2 350.2 242.6 354C228.6 358 214.2 360 198.8 360C185.6 360 172.6 358.4 159.6 355S135.2 346.4 125 339.6S106.6 323.8 100.4 313.2C94.2 302.8 91.2 290.2 91.2 275.8C91.2 268.4 92.2 261 94.2 253.8C96.2 246.6 99.8 239.8 104.8 233.4C108.4 228.6 113 224 118.6 220H40C29 220 20 211 20 200C20 189 29 180 40 180H242.8C243.2 179.8 243.8 179.6 244.2 179.6C250.2000000000001 177.4 255.8 173.8 261 168.6C266 163.4 268.6 155.2 268.6 144.4C268.6 139 267.4000000000001 133.8 265.2000000000001 128.6C263.0000000000001 123.4 259.4000000000001 118.8 254.4000000000001 114.8C249.4000000000001 110.8 243.0000000000001 107.6 235.0000000000001 105C227.0000000000001 102.4 217.4 101.2 206.2000000000001 101.2C195.8000000000001 101.2 186.0000000000001 102.4 177.2000000000001 104.6C168.2000000000001 106.8 160.4000000000001 110.4 153.4000000000001 115.4S141.2000000000001 126.6 137.4000000000001 134.4C136.4 136 135.6 138 135 140H82.2C84 131.4 86.6 123.6 90.2 116.4C96.8 103.4 105.6 92.8 116.6 84.6C127.6 76.4 140.6 70.2000000000001 155.4 66.2C170.2000000000001 62.2 186 60.1999999999999 202.8 60.1999999999999C217.4 60.1999999999999 231.6 61.8 245.6 65.1999999999999C259.6 68.6 272.2000000000001 73.8 283.2 80.9999999999999C294.2000000000001 88.1999999999999 303 97.6 309.8 108.8C316.6 120 320 133.8 320 149.8C320 157.2 318.8 164.8 316.4 172.2C315.6 174.8 314.6 177.4 313.4 180H360C371 180 380 189 380 200C380 211 371 220 360 220z" : "M280 180H173C165.4 181.8 158.4 183.6 152.2 185.2C146 186.8 142.4 187.8 141.4 188C132.8 190.2 125.6 193.8 120.4 198.4C115 203 112.4 209.4 112.4 217.4C112.4 223.2 113.8 228 116.6 231.8S123 238.6 127.4 241C131.8 243.2 136.6 244.8 141.8 245.8C147 246.8 152.2 247.2 157.2 247.2C172 247.2 184.4 244.2 194 238C200.4 234 205 228 207.6 220H252.0000000000001C250.8 226.6 248.6 232.8 245.6 238.4C240.6 247.4 233.8 255.2 225.2000000000001 261.4C216.6 267.6 206.6 272.2 195.4 275.4S171.8 280 159 280C148 280 137 278.6 126.4 276C115.6 273.4 106 269.2 97.4 263.6C89 258 82.2 251 77 242.6C71.8 234.2 69.2 224.2 69.2 212.6C69.2 206.6 70 200.8 71.8 195C73.4 189.8 76 184.8 79.6 180H40C29 180 20 171 20 160C20 149 29 140 40 140H182.6C187.6 138.6 192.4 137.2 196.8 135.6C201.8 133.8 206.4 131 210.8 126.8C215 122.6 217.2 116.2 217.2 107.4C217.2 103.2 216.2 98.8 214.4 94.8C212.6 90.6 209.6 86.9999999999999 205.4 83.8C201.2 80.6 195.8 78 189.2 75.9999999999999C182.6 73.9999999999999 174.6 72.9999999999999 165.2 72.9999999999999C156.4 72.9999999999999 148.4 73.9999999999999 141 75.8C133.6 77.5999999999999 127 80.6 121.2 84.4C115.4 88.3999999999999 111 93.3999999999999 107.8 99.5999999999999C107.6 99.6 107.6 99.8 107.4 100H62.8C64.2 94.6 66.2 89.6 68.6 85C74 74.6 81.4 66.2 90.6 59.4S110.6 47.8 123 44.6C135.2 41.6 148.4 40 162.4 40C174.6 40 186.4 41.4 198.2 44C209.8 46.6 220.4 50.8 229.4 56.6C238.6 62.4 246 69.8 251.6 78.8C257.2 87.8 260 98.8 260 111.6C260 117.6 259 123.6 257 129.6C256 133.4 254.4 136.8 252.6 140H280C291 140 300 149 300 160C300 171 291 180 280 180z", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style }))); }); Strikethrough.defaultProps = { size: IconSize.STANDARD, }; Strikethrough.displayName = `Blueprint5.Icon.Strikethrough`; export default Strikethrough; //# sourceMappingURL=strikethrough.js.map