@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
31 lines • 3.59 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.
*/
import * as React from "react";
import { IconSize } from "../../iconTypes";
import { SVGIconContainer } from "../../svgIconContainer";
export const Random = React.forwardRef((props, ref) => {
const isLarge = props.size >= IconSize.LARGE;
const pixelGridSize = isLarge ? IconSize.LARGE : IconSize.STANDARD;
const translation = `${-1 * pixelGridSize / 0.05 / 2}`;
const style = { transformOrigin: "center" };
return (React.createElement(SVGIconContainer, { iconName: "random", ref: ref, ...props },
React.createElement("path", { d: isLarge ? "M289.4000000000001 300H331.8L306 274.2C302.2 270.6 300 265.6 300 260C300 249 309 240 320 240C325.6 240 330.6 242.2 334.2000000000001 245.8L394.2000000000001 305.8C397.8 309.4 400 314.4 400 320C400 325.6 397.8 330.6 394.2000000000001 334.2L334.2000000000001 394.2C330.6 397.8 325.6 400 320 400C309 400 300 391 300 380C300 374.4 302.2 369.4 305.8 365.8L331.8 340H280C273.8 340 268.6 337 264.8 332.6L264.6 332.8L206 262.4L232.0000000000001 231.2L289.4000000000001 300zM334.2000000000001 154.2C330.6 157.8 325.6 160 320 160C309 160 300 151 300 140C300 134.4 302.2 129.4 305.8 125.8L331.8 100H289.4L95.4 332.8L95.2 332.6C91.4 337 86.2 340 80 340H20C9 340 0 331 0 320C0 309 9 300 20 300H70.6L264.6 67.2L264.8 67.4C268.6 63 273.8 60 280 60H331.8L306 34.2C302.2 30.6 300 25.6 300 20C300 9 309 0 320 0C325.6 0 330.6 2.2 334.2000000000001 5.8L394.2000000000001 65.8C397.8 69.4 400 74.4 400 80C400 85.6 397.8 90.6 394.2000000000001 94.2000000000001L334.2000000000001 154.2zM70.6 100H20C9 100 0 91 0 80C0 69 9 60 20 60H80C86.2 60 91.4 63 95.2 67.4L95.4 67.2L154 137.6L128 168.8L70.6 100z" : "M229.6 240H251.8L246 234.2C242.2 230.6 240 225.6 240 220C240 209 249 200 260 200C265.6 200 270.6 202.2 274.2000000000001 205.8L314.2000000000001 245.8C317.8 249.4 320 254.4 320 260C320 265.6 317.8 270.6 314.2000000000001 274.2L274.2000000000001 314.2C270.6 317.8 265.6 320 260 320C249 320 240 311 240 300C240 294.4 242.2 289.4 245.8 285.8L251.8 280H220C213.6 280 208.2 276.8 204.6 272.4L204.4 272.6L165.6 224L191.2 192L229.6 240zM274.2000000000001 114.2C270.6 117.8 265.6 120 260 120C249 120 240 111 240 100C240 94.4 242.2 89.4 245.8 85.8L251.8 80H229.6L75.6 272.4L75.4 272.4C71.8 276.8 66.4 280 60 280H20C9 280 0 271 0 260C0 249 9 240 20 240H50.4L204.4 47.6L204.6 47.8C208.2 43.2 213.6 40 220 40H251.8L246 34.2C242.2 30.6 240 25.6 240 20C240 9 249 0 260 0C265.6 0 270.6 2.2 274.2000000000001 5.8L314.2000000000001 45.8C317.8 49.4 320 54.4 320 60C320 65.6 317.8 70.6 314.2000000000001 74.2L274.2000000000001 114.2zM50.4 80H20C9 80 0 71 0 60C0 49 9 40 20 40H60C66.4 40 71.8 43.2 75.4 47.6L75.6 47.4L114.4 95.8L88.8 128L50.4 80z", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style })));
});
Random.defaultProps = {
size: IconSize.STANDARD,
};
Random.displayName = `Blueprint5.Icon.Random`;
export default Random;
//# sourceMappingURL=random.js.map