@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
30 lines • 2.66 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 = ["M8.74 9.203 6.8 7.263l5.022-5.021 1.94 1.94zM5 11.008l1.093-3.033 1.942 1.941zM13.657.4c.251-.243.597-.4.975-.4.763 0 1.376.62 1.368 1.367 0 .385-.15.723-.401.974l-1.132 1.132-1.942-1.94zM8.496.284 10.96 1.69 6.301 6.349l-4.495-2.81L7.504.284a1 1 0 0 1 .992 0M1.056 4.25l4.52 2.824-.193.193a1 1 0 0 0-.256.44L4.059 10.67a1 1 0 0 0 1.28 1.28l2.161-.777v4.542l-5.996-3.426A1 1 0 0 1 1 11.42V4.58a1 1 0 0 1 .056-.33M8.5 15.714v-4.912a1 1 0 0 0 .314-.258l5.655-5.655.05-.054.46-.46q.021.101.021.205v6.84a1 1 0 0 1-.504.868z"];
/** Path data for the 20px grid; matches {@link generate-icon-paths.mjs} / `<Icon />` from core. */
const PATHS_20 = ["M13.809 2.2 10.638.48a1.35 1.35 0 0 0-1.276 0L1.953 4.5l6.014 3.542zM7.237 8.773 1.136 5.18A1.2 1.2 0 0 0 1 5.726v8.35c0 .438.247.843.648 1.06l7.714 4.186q.068.037.138.065v-5.543l-3.168 1.101a1 1 0 0 1-1.274-1.27l1.345-3.893a1 1 0 0 1 .254-.43zm3.263 4.69v5.924q.07-.028.138-.065l7.714-4.186c.4-.217.648-.622.648-1.06v-8.35c0-.193-.048-.38-.136-.546l-.154.09-.58.58a1 1 0 0 1-.068.077l-7.415 7.415a1 1 0 0 1-.147.121M8.067 9.355l2.575 2.575 6.709-6.709-2.576-2.575zM6 14.002l3.935-1.367-2.573-2.574zM18.221-.004c-.49 0-.969.161-1.29.491l-1.45 1.454 2.57 2.574L19.5 3.06c.32-.33.499-.792.499-1.282 0-.98-.8-1.783-1.779-1.783"];
export const CubeEdit = React.forwardRef((props, ref) => {
const isLarge = (props.size ?? IconSize.STANDARD) >= IconSize.LARGE;
const paths = isLarge ? PATHS_20 : PATHS_16;
return (_jsx(SVGIconContainer, { iconName: "cube-edit", ref: ref, ...props, children: paths.map((d, i) => (_jsx("path", { d: d, fillRule: "evenodd" }, i))) }));
});
CubeEdit.displayName = `Blueprint6.Icon.CubeEdit`;
export default CubeEdit;
//# sourceMappingURL=cube-edit.js.map