@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
28 lines • 2.32 kB
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
/*
* 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 Redo = React.forwardRef((props, ref) => {
const isLarge = (props.size ?? IconSize.STANDARD) >= IconSize.LARGE;
const pixelGridSize = isLarge ? IconSize.LARGE : IconSize.STANDARD;
const translation = `${-1 * pixelGridSize / 0.05 / 2}`;
const style = { transformOrigin: "center" };
return (_jsx(SVGIconContainer, { iconName: "redo", ref: ref, ...props, children: _jsx("path", { d: isLarge ? "M394.2000000000001 294.2L314.2000000000001 374.2A20.06 20.06 0 0 1 285.8 345.8L331.8 300H120C53.8 300 0 246.2 0 180S53.8 60 120 60H220V100H120C75.8 100 40 135.8 40 180S75.8 260 120 260H331.8L286 214.2C282.2000000000001 210.6 280 205.6 280 200A20.06 20.06 0 0 1 314.2000000000001 185.8L394.2000000000001 265.8C397.8 269.4 400 274.4 400 280S397.8 290.6 394.2000000000001 294.2M300 120C278 120 260 102 260 80S278 40 300 40S340 58 340 80S322 120 300 120" : "M240 100C218 100 200 82 200 60S218 20 240 20S280 38 280 60S262 100 240 100M314.2000000000001 234.2L254.2 294.2A20.06 20.06 0 0 1 225.8 265.8L251.8 240H100C44.8 240 0 195.2 0 140S44.8 40 100 40H180V80H100C66.8 80 40 106.8 40 140S66.8 200 100 200H251.8L226 174.2C222.2 170.6 220 165.6 220 160A20.06 20.06 0 0 1 254.2 145.8L314.2000000000001 205.8C317.8 209.4 320 214.4 320 220S317.8 230.6 314.2000000000001 234.2", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style }) }));
});
Redo.displayName = `Blueprint6.Icon.Redo`;
export default Redo;
//# sourceMappingURL=redo.js.map