UNPKG

@blueprintjs/icons

Version:

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

35 lines 3.54 kB
"use strict"; /* * 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.Emoji = 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.Emoji = 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: "emoji", ref: ref }, props), React.createElement("path", { d: isLarge ? "M200 400C310.45695 400 400 310.45695 400 200C400 89.54305 310.45695 0 200 0C89.54305 0 0 89.54305 0 200C0 310.45695 89.54305 400 200 400zM200 360C111.63444 360 40 288.36556 40 200C40 111.63444 111.63444 40 200 40C288.36556 40 360 111.63444 360 200C360 288.36556 288.36556 360 200 360zM120 200L120.2995578 195.695118C124.3722088 151.607298 158.4949642 120 200 120C242.843908 120 277.821578 153.67937 279.9020940000001 196.007194L280 200L320 200L319.7479840000001 195.2364C315.089908 128.952668 263.261708 80 200 80C135.2320612 80 82.4485648 131.311498 80.0827694 195.501234L80 200L120 200zM150 280C166.5685424 280 180 266.5685424 180 250C180 233.4314576 166.5685424 220 150 220C133.4314576 220 120 233.4314576 120 250C120 266.5685424 133.4314576 280 150 280zM250 280C266.5685420000001 280 280 266.5685424 280 250C280 233.4314576 266.5685420000001 220 250 220C233.431458 220 220 233.4314576 220 250C220 266.5685424 233.431458 280 250 280z" : "M160 320C248.36556 320 320 248.36556 320 160C320 71.63444 248.36556 0 160 0C71.63444 0 0 71.63444 0 160C0 248.36556 71.63444 320 160 320zM160 300C82.680135 300 20 237.319865 20 160C20 82.680136 82.680135 20 160 20C237.319864 20 300 82.680136 300 160C300 237.319865 237.319864 300 160 300zM80 160C84.5527456 114.761724 120 80 160 80C198.75 80 235.414496 114.765414 239.688518 155.991191L240 160L260 160C257.43309 102.2497 213.650518 60 160 60C106.224906 60 62.3636378 102.446134 60.0923902 155.6622076L60 160L80 160zM120 220C131.045695 220 140 211.045695 140 200C140 188.954305 131.045695 180 120 180C108.954305 180 100 188.954305 100 200C100 211.045695 108.954305 220 120 220zM200 220C211.045694 220 220 211.045695 220 200C220 188.954305 211.045694 180 200 180C188.954305 180 180 188.954305 180 200C180 211.045695 188.954305 220 200 220z", fillRule: "evenodd", transform: "scale(0.05, -0.05) translate(".concat(translation, ", ").concat(translation, ")"), style: style }))); }); exports.Emoji.defaultProps = { size: iconTypes_1.IconSize.STANDARD, }; exports.Emoji.displayName = "Blueprint5.Icon.Emoji"; exports.default = exports.Emoji; //# sourceMappingURL=emoji.js.map