@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
32 lines • 2.81 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RotateDocument = void 0;
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("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.
*/
const React = tslib_1.__importStar(require("react"));
const iconTypes_1 = require("../../iconTypes");
const svgIconContainer_1 = require("../../svgIconContainer");
exports.RotateDocument = React.forwardRef((props, ref) => {
const isLarge = (props.size ?? iconTypes_1.IconSize.STANDARD) >= iconTypes_1.IconSize.LARGE;
const pixelGridSize = isLarge ? iconTypes_1.IconSize.LARGE : iconTypes_1.IconSize.STANDARD;
const translation = `${-1 * pixelGridSize / 0.05 / 2}`;
const style = { transformOrigin: "center" };
return ((0, jsx_runtime_1.jsx)(svgIconContainer_1.SVGIconContainer, { iconName: "rotate-document", ref: ref, ...props, children: (0, jsx_runtime_1.jsx)("path", { d: isLarge ? "M174.2 274.2A20 20 0 0 1 160 280H60C49 280 40 271 40 260V20C40 9 49 0 60 0H240C251 0 260 9 260 20V180C260 185.6 257.8 190.6 254.2 194.2zM220 40H80V240H140V180C140 169 149 160 160 160H220zM280 360H248.2L254 365.8C257.8 369.4 260 374.4 260 380A20.06 20.06 0 0 1 225.8 394.2L185.8 354.2C182.2 350.6 180 345.6 180 340S182.2 329.4 185.8 325.8L225.8 285.8A20.06 20.06 0 0 1 254.2 314.2L248.2 320H280C302 320 320 302 320 280V220C320 209 329 200 340 200S360 209 360 220V280C360 324.2 324.2000000000001 360 280 360" : "M240 280H208.2L214 285.8C217.8 289.4 220 294.4 220 300A20.06 20.06 0 0 1 185.8 314.2L145.8 274.2C142.2 270.6 140 265.6 140 260S142.2 249.4 145.8 245.8L185.8 205.8A20.06 20.06 0 0 1 214.2 234.2L208.2 240H240C251 240 260 231 260 220V160C260 149 269 140 280 140S300 149 300 160V220C300 253.2 273.2 280 240 280M114.2 214.2A20 20 0 0 1 100 220H20C9 220 0 211 0 200V20C0 9 9 0 20 0H160C171 0 180 9 180 20V140C180 145.6 177.8 150.6 174.2 154.2zM140 40H40V180H80V140C80 129 89 120 100 120H140z", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style }) }));
});
exports.RotateDocument.displayName = `Blueprint6.Icon.RotateDocument`;
exports.default = exports.RotateDocument;
//# sourceMappingURL=rotate-document.js.map