@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
30 lines • 2.14 kB
JavaScript
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 = ["M13 0a1 1 0 0 1 1 1v1h1a1 1 0 1 1 0 2h-1v1a1 1 0 1 1-2 0V4h-1a1 1 0 1 1 0-2h1V1a1 1 0 0 1 1-1m-3 5.83a3 3 0 0 1-1-.594V7H2V5h6.764A3 3 0 0 1 8 3c0-.768.289-1.47.764-2H.909C.364 1 0 1.5 0 2v12c0 .6.364 1 .91 1H9v1h5a1 1 0 0 0 1-1V7.236A3 3 0 0 1 13 8h-3zM2 13v-2h7v2zm7-3H2V8h7zm4-1v2h-3V9zm-3 3h3v2h-3z"];
/** Path data for the 20px grid; matches {@link generate-icon-paths.mjs} / `<Icon />` from core. */
const PATHS_20 = ["M12 0H1C.4 0 0 .5 0 1v16c0 .5.4 1 1 1h10v2h7c.5 0 1-.5 1-1V7c0 1.306-.835 2.588-2 3h-5V6.83a3 3 0 0 1-1-.594V8H2V5h8.17A3 3 0 0 1 12 1.17zm0 11h5v3h-5zm5 4v3h-5v-3zm-6 1H2v-3h9zm0-7v3H2V9zm4-8a1 1 0 0 1 2 0v2h2a1 1 0 0 1 0 2h-2v2a1 1 0 0 1-2 0V5h-2a1 1 0 0 1 0-2h2z"];
export const AddDerivedColumn = React.forwardRef((props, ref) => {
const isLarge = (props.size ?? IconSize.STANDARD) >= IconSize.LARGE;
const paths = isLarge ? PATHS_20 : PATHS_16;
return (_jsx(SVGIconContainer, { iconName: "add-derived-column", ref: ref, ...props, children: paths.map((d, i) => (_jsx("path", { d: d, fillRule: "evenodd" }, i))) }));
});
AddDerivedColumn.displayName = `Blueprint6.Icon.AddDerivedColumn`;
export default AddDerivedColumn;
//# sourceMappingURL=add-derived-column.js.map