UNPKG

@blueprintjs/icons

Version:

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

31 lines 3.96 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 DeleteClip = 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: "delete-clip", ref: ref, ...props }, React.createElement("path", { d: isLarge ? "M394.142 394.14214C386.332 401.952622 373.668 401.952622 365.858 394.14214L310 338.2842L254.142 394.14214C246.332 401.952622 233.668 401.952622 225.858 394.14214C218.048 386.33164 218.048 373.6684 225.858 365.8578L281.716 310L225.858 254.1422C218.048 246.3316 218.048 233.6684 225.858 225.8578C233.668 218.0474 246.332 218.0474 254.142 225.8578L310 281.7158L365.858 225.8578C373.668 218.0474 386.332 218.0474 394.142 225.8578C401.952 233.6684 401.952 246.3316 394.142 254.1422L338.284 310L394.142 365.8578C401.952 373.6684 401.952 386.33164 394.142 394.14214zM0 300C0 311.0456 8.9543 320 20 320H100C111.0456 320 120 311.0456 120 300C120 288.9544 111.0456 280 100 280H40V220C40 208.9544 31.0456 200 20 200C8.9543 200 0 208.9544 0 220V300zM20 0C8.9543 0 0 8.954 0 20V100C0 111.046 8.9543 120 20 120C31.0456 120 40 111.046 40 100V40H100C111.0456 40 120 31.046 120 20C120 8.954 111.0456 0 100 0H20zM220 0L300 0C311.046 0 320 8.954 320 20V100C320 111.046 311.046 120 300 120C288.954 120 280 111.046 280 100V40L220 40C208.954 40 200 31.046 200 20C200 8.954 208.954 0 220 0zM220 160C220 126.862 193.137 100 160 100C126.863 100 100 126.862 100 160C100 193.138 126.863 220 160 220C193.137 220 220 193.138 220 160z" : "M314.142 314.14204C321.952 306.3315 321.952 293.6682 314.142 285.8578L278.284 250L314.142 214.1422C321.952 206.3318 321.952 193.6684 314.142 185.858C306.332 178.0474 293.668 178.0474 285.858 185.8578L250 221.716L214.142 185.8584C206.33 178.048 193.6676 178.048 185.8572 185.8586C178.0466 193.6692 178.0468 206.3324 185.8574 214.1428L221.714 250L185.8574 285.8572C178.0468 293.6676 178.0468 306.33098 185.8572 314.1415C193.6676 321.952038 206.33 321.952112 214.142 314.14166L250 278.2842L285.858 314.14222C293.668 321.9526640000001 306.332 321.95258 314.142 314.14204zM0 240C0 251.0456 8.9543 260 20 260H90C101.0456 260 110 251.0456 110 240C110 228.9544 101.0456 220 90 220H40V180C40 168.9544 31.0456 160 20 160C8.9543 160 0 168.9544 0 180V240zM20 0C8.9543 0 0 8.954 0 20V80C0 91.046 8.9543 100 20 100C31.0456 100 40 91.046 40 80V40H90C101.0456 40 110 31.046 110 20C110 8.954 101.0456 0 90 0H20zM240 0C245.304 0 250.392 2.108 254.142 5.858C257.892 9.608 260 14.696 260 20V80C260 91.046 251.046 100 240 100C228.954 100 220 91.046 220 80V40L180 40C168.9544 40 160 31.046 160 20C160 8.954 168.9542 0 180 0L240 0zM180 130C180 102.386 157.6142 80 130 80C102.3858 80 80 102.386 80 130C80 157.6142 102.3858 180 130 180C157.6142 180 180 157.6142 180 130z", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style }))); }); DeleteClip.defaultProps = { size: IconSize.STANDARD, }; DeleteClip.displayName = `Blueprint5.Icon.DeleteClip`; export default DeleteClip; //# sourceMappingURL=delete-clip.js.map