@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
35 lines • 2.89 kB
JavaScript
/*
* 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.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.PageBreak = void 0;
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var iconTypes_1 = require("../../iconTypes");
var svgIconContainer_1 = require("../../svgIconContainer");
exports.PageBreak = React.forwardRef(function (props, ref) {
var isLarge = props.size >= iconTypes_1.IconSize.LARGE;
var pixelGridSize = isLarge ? iconTypes_1.IconSize.LARGE : iconTypes_1.IconSize.STANDARD;
var translation = "".concat(-1 * pixelGridSize / 0.05 / 2);
var style = { transformOrigin: "center" };
return (React.createElement(svgIconContainer_1.SVGIconContainer, tslib_1.__assign({ iconName: "page-break", ref: ref }, props),
React.createElement("path", { d: isLarge ? "M0 180V220H40C51.0456 220 60 211.0456 60 200C60 188.954 51.0456 180 40 180H0zM400 220V180H340C328.954 180 320 188.954 320 200C320 211.0456 328.954 220 340 220H400zM100 220C88.9544 220 80 211.0456 80 200C80 188.954 88.9544 180 100 180H160C171.0456 180 180 188.954 180 200C180 211.0456 171.0456 220 160 220H100zM200 200C200 211.0456 208.954 220 220 220H280C291.046 220 300 211.0456 300 200C300 188.954 291.046 180 280 180H220C208.954 180 200 188.954 200 200zM340 400H300V320H80V400H40V300C40 289 49 280 60 280H320C331 280 340 289 340 300V400zM40 0L80 0V80L300 80V0H340V100C340 111 331 120 320 120L60 120C49 120 40 111 40 100V0z" : "M20 180H60A20 20 0 0 0 80 160V160A20 20 0 0 0 60 140H20A20 20 0 0 0 0 160V160A20 20 0 0 0 20 180zM140 180H180A20 20 0 0 0 200 160V160A20 20 0 0 0 180 140H140A20 20 0 0 0 120 160V160A20 20 0 0 0 140 180zM260 180H300A20 20 0 0 0 320 160V160A20 20 0 0 0 300 140H260A20 20 0 0 0 240 160V160A20 20 0 0 0 260 180zM280 320H240V260H80V320H40V240C40 229 49 220 60 220H260C271 220 280 229 280 240V320zM40 0H80V60L240 60V0H280V80C280 91 271 100 260 100L60 100C49 100 40 91 40 80V0z", fillRule: "evenodd", transform: "scale(0.05, -0.05) translate(".concat(translation, ", ").concat(translation, ")"), style: style })));
});
exports.PageBreak.defaultProps = {
size: iconTypes_1.IconSize.STANDARD,
};
exports.PageBreak.displayName = "Blueprint5.Icon.PageBreak";
exports.default = exports.PageBreak;
//# sourceMappingURL=page-break.js.map
;