@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
30 lines • 2.25 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 = ["M1 0a1 1 0 0 0-1 1v3h2V2h2V0zM0 15v-3h2v2h2v2H1a1 1 0 0 1-1-1m15 1h-3v-2h2v-2h2v3a1 1 0 0 1-1 1m1-15v3h-2V2h-2V0h3a1 1 0 0 1 1 1M8 7l4.5-2.5-4.108-2.407a.82.82 0 0 0-.76 0L3.57 4.394zm4.955-2q.04.112.04.234v4.834a.71.71 0 0 1-.357.614L8.4 13V7.847zM7.594 7.743 3.04 5a1.2 1.2 0 0 0-.04.308v4.656c0 .254.136.488.356.614L7.594 13z"];
/** Path data for the 20px grid; matches {@link generate-icon-paths.mjs} / `<Icon />` from core. */
const PATHS_20 = ["M5 0H1a1 1 0 0 0-1 1v4h2V2h3zm13 15v3h-3v2h4a1 1 0 0 0 1-1v-4zM0 15h2v3h3v2H1a1 1 0 0 1-1-1zM15 0h4a1 1 0 0 1 1 1v4h-2V2h-3zM9.55 2.125 3.742 5.252 10 9l6.259-3.748L10.5 2.125a.96.96 0 0 0-.95 0M9.5 10 3.106 5.996A.9.9 0 0 0 3 6.421V12.7c0 .34.192.655.504.824l5.889 3.426q.052.028.107.05zm7.394-4.004a.9.9 0 0 1 .106.425V12.7c0 .34-.192.655-.504.824l-5.889 3.426q-.052.028-.107.05v-7z"];
export const ObjectView = React.forwardRef((props, ref) => {
const isLarge = (props.size ?? IconSize.STANDARD) >= IconSize.LARGE;
const paths = isLarge ? PATHS_20 : PATHS_16;
return (_jsx(SVGIconContainer, { iconName: "object-view", ref: ref, ...props, children: paths.map((d, i) => (_jsx("path", { d: d, fillRule: "evenodd" }, i))) }));
});
ObjectView.displayName = `Blueprint6.Icon.ObjectView`;
export default ObjectView;
//# sourceMappingURL=object-view.js.map