UNPKG

@blueprintjs/icons

Version:

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

30 lines 2.41 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.586 6a1 1 0 0 1 .707.293l1.414 1.414a1 1 0 0 1 .293.707V15a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zM8 9a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1zm0 2a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1zm0 2a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1zM8.09.91c.5 0 .91.408.91.908V2.5H5v-.682c0-.5.41-.909.91-.909h-.2C6.017.364 6.326 0 7 0s.982.364 1.29.91zM10 2h1.09c.5 0 .91.41.91.91V5H6a1 1 0 0 0-1 1v8H2.91c-.5 0-.91-.409-.91-.909V2.91c0-.5.41-.909.91-.909H4v1.5h6z"]; /** Path data for the 20px grid; matches {@link generate-icon-paths.mjs} / `<Icon />` from core. */ const PATHS_20 = ["M7 9a1 1 0 0 1 1-1h6.586a1 1 0 0 1 .707.293l1.414 1.414a1 1 0 0 1 .293.707V19a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1zm2.5 2a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1zm0 3a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1zm0 3a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1zM12 1.943c0-.534-.45-.972-1-.972h-.78A1.99 1.99 0 0 0 8.5 0c-.74 0-1.38.389-1.72.971H6c-.55 0-1 .438-1 .972V3h7zM13 4H4.04V2H3a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h3V8a1 1 0 0 1 1-1h8V3a1 1 0 0 0-1-1h-1z"]; export const ClipboardFile = React.forwardRef((props, ref) => { const isLarge = (props.size ?? IconSize.STANDARD) >= IconSize.LARGE; const paths = isLarge ? PATHS_20 : PATHS_16; return (_jsx(SVGIconContainer, { iconName: "clipboard-file", ref: ref, ...props, children: paths.map((d, i) => (_jsx("path", { d: d, fillRule: "evenodd" }, i))) })); }); ClipboardFile.displayName = `Blueprint6.Icon.ClipboardFile`; export default ClipboardFile; //# sourceMappingURL=clipboard-file.js.map