UNPKG

@blueprintjs/icons

Version:

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

31 lines 4.39 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 Playbook = 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: "playbook", ref: ref, ...props }, React.createElement("path", { d: isLarge ? "M34.1422 394.14214C26.3316 401.952622 13.66834 401.952622 5.85786 394.14214C-1.952622 386.33166 -1.952622 373.6684 5.85786 365.8578L41.7158 330L5.85786 294.1422C-1.95262 286.3316 -1.95262 273.6684 5.85786 265.8578C13.66834 258.0474000000001 26.3316 258.0474000000001 34.1422 265.8578L70 301.7158L105.8578 265.8578C113.6684 258.0474000000001 126.3316 258.0474000000001 134.1422 265.8578C141.9526 273.6684 141.9526 286.3316 134.1422 294.1422L98.2842 330L134.1422 365.8578C141.9526 373.6684 141.9526 386.33166 134.1422 394.14214C126.3316 401.952622 113.6684 401.952622 105.8578 394.14214L70 358.2842L34.1422 394.14214zM320 0C364.182 0 400 35.818 400 80C400 124.182 364.182 160 320 160C275.818 160 240 124.182 240 80C240 35.818 275.818 0 320 0zM320 40C342.0920000000001 40 360 57.908 360 80C360 102.092 342.0920000000001 120 320 120C297.908 120 280 102.092 280 80C280 57.908 297.908 40 320 40zM365.8 286L320 331.8V240C320 206.863 293.1380000000001 180 260 180H80C68.9544 180 60 171.046 60 160V20C60 8.954 51.0456 0 40 0C28.9544 0 20 8.954 20 20V160C20 193.138 46.863 220 80 220H260C271.046 220 280 228.9544 280 240V331.8L234.2 285.8C230.6 282.2 225.6 280 220 280C209 280 200 289 200 300C200 305.6 202.2 310.6 205.8 314.2L285.8 394.2C289.4000000000001 397.8 294.4000000000001 399.999999701976 300 399.999999701976C305.6 399.999999701976 310.6 397.8 314.2000000000001 394.2L394.2000000000001 314.2C397.8 310.6 400 305.6 400 300C400 289 391 280 380 280C374.4 280 369.4 282.2 365.8 286z" : "M85.8578 314.14214C93.6684 321.952622 106.3316 321.952622 114.1422 314.14214C121.9526 306.33166 121.9526 293.6684 114.1422 285.8578L88.2842 260L114.1422 234.1422C121.9526 226.3316 121.9526 213.6684 114.1422 205.8578C106.3316 198.0474 93.6684 198.0474 85.8578 205.8578L60 231.7158L34.1422 205.8578C26.3316 198.0474 13.66836 198.0474 5.85786 205.8578C-1.952622 213.6684 -1.952622 226.3316 5.85786 234.1422L31.7158 260L5.85788 285.8578C-1.952614 293.6684 -1.952614 306.33166 5.85788 314.14214C13.66836 321.952622 26.3316 321.952622 34.1422 314.14214L60 288.2842L85.8578 314.14214zM285.8 225.8L260 251.8V200C260 166.863 233.138 140 200 140H80C68.9544 140 60 131.0456 60 120V20C60 8.954 51.0456 0 40 0C28.9544 0 20 8.954 20 20V120C20 153.137 46.863 180 80 180H200C211.046 180 220 188.9544 220 200V251.8L194.2 226C190.6 222.2 185.6 220 180 220C169 220 160 229 160 240C160 245.6 162.2 250.6 165.8 254.2L225.8 314.2C229.4 317.8 234.4 319.999999701976 240 319.999999701976C245.6 319.999999701976 250.6 317.8 254.2 314.2L314.2000000000001 254.2C317.8 250.6 320 245.6 320 240C320 229 311 220 300 220C294.4000000000001 220 289.4000000000001 222.2 285.8 225.8zM320 60C320 26.862 293.1380000000001 0 260 0C226.862 0 200 26.862 200 60C200 93.138 226.862 120 260 120C293.1380000000001 120 320 93.138 320 60zM280 60C280 48.954 271.046 40 260 40C248.954 40 240 48.954 240 60C240 71.046 248.954 80 260 80C271.046 80 280 71.046 280 60z", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style }))); }); Playbook.defaultProps = { size: IconSize.STANDARD, }; Playbook.displayName = `Blueprint5.Icon.Playbook`; export default Playbook; //# sourceMappingURL=playbook.js.map