@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
35 lines • 5.2 kB
JavaScript
/*
* 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.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.EyeOn = void 0;
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var iconTypes_1 = require("../../iconTypes");
var svgIconContainer_1 = require("../../svgIconContainer");
exports.EyeOn = React.forwardRef(function (props, ref) {
var isLarge = props.size >= iconTypes_1.IconSize.LARGE;
var pixelGridSize = isLarge ? iconTypes_1.IconSize.LARGE : iconTypes_1.IconSize.STANDARD;
var translation = "".concat(-1 * pixelGridSize / 0.05 / 2);
var style = { transformOrigin: "center" };
return (React.createElement(svgIconContainer_1.SVGIconContainer, tslib_1.__assign({ iconName: "eye-on", ref: ref }, props),
React.createElement("path", { d: isLarge ? "M266 225.8C269.6 222.2 274.6 220 280.2 220S290.8 222.2 294.4 225.8L394.2000000000001 325.8C397.6 329.4 400 334.4 400 340C400 351 391 360 380 360C374.4 360 369.4 357.8 365.8 354.2L280 268.4L234.2 314.2C230.8 317.8 225.8 320 220.2 320C209.2 320 200.2 311 200.2 300C200.2 294.4 202.4 289.4 206 285.8L266 225.8zM400 200.8C400 201 400 201.2 400 201.4C400 201.4 400 201.6 400 201.6C400 201.8 400 201.8 400 202C400 202.2 400 202.2 400 202.4C400 202.4 400 202.4 400 202.4C399.6 205.6 398 208.8 395.8 211.1999999999999C387 222.2 377 232.2 366.6 241.6L322.6 197.5999999999999C311.6 186.8 296.6 180 280.2 180C279.2 180 278.4 180.2 277.4 180.2C268.6 145.4 237.6 119.8 200.2 119.8C156 119.8 120.2 155.8 120.2 200C120.2 232.4000000000001 139.4 260.2 167 272.8C162.8 281 160.4 290.2 160.4 300C160.4 305.6 161.4 310.8 162.8 316C141.8 311.6 121.4 303.2 102.4 293C71 276 42.4 252.6 17.6 226.4C13 221.4 8.4 216.4 4.2 211.2C-1.4 204.2 -1.4 195.8 4.2 188.8C17 172.8 32.2 158.4 47.6 145.4C80.8 117.2000000000001 118.8 93.8 160.8 84.2000000000001C185 78.8 209.4 78.4 233.8 83.2C256 87.4 277.4 96.2 297.4 107C328.8 124 357.4 147.4 382.2 173.6C386.8 178.4 391.4 183.4 395.6 188.8C397.8 191.2 399.2000000000001 194.2 399.8000000000001 197.6C399.8000000000001 197.6 399.8000000000001 197.6 399.8000000000001 197.6C399.8000000000001 197.8 399.8000000000001 197.8 399.8000000000001 198C399.8000000000001 198.2 399.8000000000001 198.2 399.8000000000001 198.4C399.8000000000001 198.4 399.8000000000001 198.6 399.8000000000001 198.6C399.8000000000001 198.8 399.8000000000001 199 399.8000000000001 199.1999999999999C399.8000000000001 199.4 399.8000000000001 199.7999999999999 399.8000000000001 200C400 200.2 400 200.6 400 200.8zM200.2 159.8C220.8 159.8 237.6 175.6 239.8 195.8C239.2 196.4 238.6 197 238 197.6L237.8 197.4L195.8 239.6C175.8 237.4000000000001 160.4 220.6 160.4 200C160.2 177.8 178.2 159.8 200.2 159.8z" : "M205.8 186C209.4 182.4 214.4 180.2 220 180.2S230.6 182.4 234.2 186L314.2000000000001 266C317.6 269.6 320 274.6 320 280C320 291 311 300 300 300C294.4000000000001 300 289.4000000000001 297.8 285.8 294.2L220 228.4L194.2 254.2C190.6 257.8 185.6 260 180 260C169 260 160 251.2 160 240C160 234.6 162.4 229.6 166 226L205.8 186zM320 160.8C320 161 320 161 320 161.2C320 161.2 320 161.4 320 161.4C320 161.6 320 161.6 320 161.8C320 162 320 162 320 162.2C320 162.2 320 162.2 320 162.2C319.6 165 318.4 167.6 316.6 169.4C310.6 177.4 303.6 184.6 296.6 191.8L262.6 157.8C251.6 146.8 236.6 140.2 220 140.2C218.8 140.2 217.8 140.4 216.6 140.6C208.4 117 186.4 100 160.2 100C127 100 100.2 127 100.2 160.2C100.2 181.6 111.4 200.2 128 210.8C123.2 219.4 120.2 229.4 120.2 240C120.2 245.2 121 250 122.2 254.8C108.2 250.8 94.8 244.8 82 237.6C56.8 223.6 34 204 14 182.2C10.4 178 6.8 174 3.4 169.6C-1 163.8 -1 156.8 3.4 151C13.6 137.6 25.8 125.6 38 114.8C64.6 91.4 95 71.8 128.6 63.8C148 59.2000000000001 167.6 59 187 62.8C204.8 66.4 221.8 73.6 237.8 82.6C262.8 96.8 285.8 116.4 305.6 138.2C309.2000000000001 142.2 313 146.4 316.4 150.8C318.2 152.8 319.4000000000001 155.4 319.8 158.2C319.8 158.2 319.8 158.2 319.8 158.2C319.8 158.4 319.8 158.4 319.8 158.6C319.8 158.8 319.8 158.8 319.8 159C319.8 159 319.8 159.2 319.8 159.2C319.8 159.4 319.8 159.4 319.8 159.6C319.8 159.8 319.8 160 319.8 160.2C320 160.4 320 160.6 320 160.8zM160.2 140C169.8 140 177.6 147 179.4 156.2C178.8 156.8 178.4 157.4 178 158L177.6 157.8L156 179.4C147 177.4 140.2 169.8 140.2 160.2C140.2 149 149.2 140 160.2 140z", fillRule: "evenodd", transform: "scale(0.05, -0.05) translate(".concat(translation, ", ").concat(translation, ")"), style: style })));
});
exports.EyeOn.defaultProps = {
size: iconTypes_1.IconSize.STANDARD,
};
exports.EyeOn.displayName = "Blueprint5.Icon.EyeOn";
exports.default = exports.EyeOn;
//# sourceMappingURL=eye-on.js.map
;