UNPKG

@blueprintjs/icons

Version:

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

30 lines 2.68 kB
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"; /** Path data for the 16px grid; matches {@link generate-icon-paths.mjs} / `<Icon />` from core. */ const PATHS_16 = ["M11 0a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1zm-1 2.667C10 2.3 9.7 2 9.333 2h-.666C8.3 2 8 2.3 8 2.667v.666C8 3.7 8.3 4 8.667 4h.666C9.7 4 10 3.7 10 3.333zm0 3.666v-.666C10 5.3 9.7 5 9.333 5h-.666C8.3 5 8 5.3 8 5.667v.666C8 6.7 8.3 7 8.667 7h.666C9.7 7 10 6.7 10 6.333m0 2.334C10 8.3 9.7 8 9.333 8h-.666C8.3 8 8 8.3 8 8.667v.666c0 .367.3.667.667.667h.666C9.7 10 10 9.7 10 9.333zM.446 10.359 3 8.659V11a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V8.66l2.554 1.698a1 1 0 0 1 .189 1.502l-3.436 3.809c-.19.21-.46.331-.745.331H4.438c-.284 0-.555-.12-.745-.331l-3.436-3.81a1 1 0 0 1 .19-1.5"]; /** Path data for the 20px grid; matches {@link generate-icon-paths.mjs} / `<Icon />` from core. */ const PATHS_20 = ["M13.75 0C14.44 0 15 .56 15 1.25v12.5c0 .69-.56 1.25-1.25 1.25h-7.5C5.56 15 5 14.44 5 13.75V1.25C5 .56 5.56 0 6.25 0zM11.5 2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM11 6.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5m.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm-7.5.726v3.024A2.25 2.25 0 0 0 6.25 16h7.5A2.25 2.25 0 0 0 16 13.75v-3.024l3.607 2.618a.97.97 0 0 1 .131 1.443l-4.5 4.875a1.07 1.07 0 0 1-.786.338H5.548c-.3 0-.586-.123-.785-.338L.262 14.787a.97.97 0 0 1 .13-1.443z"]; export const Server = React.forwardRef((props, ref) => { const isLarge = (props.size ?? IconSize.STANDARD) >= IconSize.LARGE; const paths = isLarge ? PATHS_20 : PATHS_16; return (_jsx(SVGIconContainer, { iconName: "server", ref: ref, ...props, children: paths.map((d, i) => (_jsx("path", { d: d, fillRule: "evenodd" }, i))) })); }); Server.displayName = `Blueprint6.Icon.Server`; export default Server; //# sourceMappingURL=server.js.map