UNPKG

@blueprintjs/icons

Version:

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

31 lines 3.73 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 GroupItem = 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: "group-item", ref: ref, ...props }, React.createElement("path", { d: isLarge ? "M315.144 385.9439C307.332 393.7543800000001 294.67 393.7543800000001 286.858 385.9439L216.148 315.2332C208.338 307.4228 208.338 294.7594000000001 216.148 286.949L286.858 216.2382C294.67 208.4278 307.332 208.4278 315.144 216.2382L385.854 286.949C393.664 294.7594000000001 393.664 307.4228 385.854 315.2332L315.144 385.9439zM19.99512 360.086C19.99512 371.1318 28.9494 380.08602 39.9952 380.08602H159.9952C171.0408 380.08602 179.9952 371.1318 179.9952 360.086V240.086C179.9952 229.0404 171.0408 220.086 159.9952 220.086H39.9952C28.9494 220.086 19.99512 229.0404 19.99512 240.086V360.086zM59.9952 260.086V340.086H139.9952V260.086H59.9952zM39.9952 180.086C28.9494 180.086 19.99512 171.132 19.99512 160.086V40.086C19.99512 29.04 28.9494 20.086 39.9952 20.086H159.9952C171.0408 20.086 179.9952 29.04 179.9952 40.086V160.086C179.9952 171.132 171.0408 180.086 159.9952 180.086H39.9952zM59.9952 140.086V60.086H139.9952V140.086H59.9952zM219.996 160.086C219.996 171.132 228.95 180.086 239.996 180.086H359.996C371.04 180.086 379.996 171.132 379.996 160.086V40.086C379.996 29.04 371.04 20.086 359.996 20.086H239.996C228.95 20.086 219.996 29.04 219.996 40.086V160.086zM259.996 60.086V140.086H339.996V60.086H259.996z" : "M172.0396 257.5728000000001C164.2292 249.7622 164.2292 237.0988 172.0396 229.2884L228.608 172.7198C236.418 164.9094 249.082 164.9094 256.892 172.7198L313.462 229.2884C321.2720000000001 237.0988 321.2720000000001 249.7622 313.462 257.5728000000001L256.892 314.14122C249.082 321.951706 236.418 321.951706 228.608 314.14122L172.0396 257.5728000000001zM0 299.903C0 310.94872 8.9543 319.903028 20 319.903028H120C131.0456 319.903028 140 310.94872 140 299.903V199.903C140 188.8574 131.0456 179.903 120 179.903H20C8.9543 179.903 0 188.8574 0 199.903V299.903zM40 219.903V279.903H100V219.903H40zM200 139.903C188.9544 139.903 180 130.9488 180 119.904V19.904C180 8.858 188.9542 -0.096 200 -0.096H300C311.046 -0.096 320 8.858 320 19.904V119.904C320 130.9488 311.046 139.903 300 139.903H200zM220 99.904V39.904H280V99.904H220zM0 119.904C0 130.9488 8.9543 139.903 20 139.903H120C131.0456 139.903 140 130.9488 140 119.904V19.904C140 8.858 131.0456 -0.096 120 -0.096H20C8.9543 -0.096 0 8.858 0 19.904V119.904zM40 39.904V99.904H100V39.904H40z", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style }))); }); GroupItem.defaultProps = { size: IconSize.STANDARD, }; GroupItem.displayName = `Blueprint5.Icon.GroupItem`; export default GroupItem; //# sourceMappingURL=group-item.js.map