UNPKG

@blueprintjs/icons

Version:

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

31 lines 3.8 kB
/* * 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 GiftBox = 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: "gift-box", ref: ref, ...props }, React.createElement("path", { d: isLarge ? "M175.765 381.7054C145.6354 411.83502 94.8426 403.59246 75.787 365.4812C66.7516 347.4108 67.1728 326.5176 76.0144 309.186H20C8.9543 309.186 0 300.2316 0 289.1858V209.1858C0 198.14 8.95432 189.186 20 189.186H380C391.046 189.186 400 198.14 400 209.1858V289.1858C400 300.2316 391.046 309.186 380 309.186H323.986C332.8280000000001 326.5176 333.2480000000001 347.4108 324.214 365.4812C305.158 403.59246 254.364 411.83502 224.236 381.7054L204.25 361.7208C202.772 360.2418 201.354 358.7122 200 357.1366C198.646 358.7122 197.2286 360.2416 195.7494 361.7208L175.765 381.7054zM284.236 321.7052L271.716 309.186H220.424C221.72 318.3146 225.94 326.8412 232.534 333.4366L252.52 353.421C263.344 364.245 281.59 361.284 288.436 347.5926C292.752 338.9586 291.06 328.531 284.236 321.7052zM179.576 309.186C178.281 318.3146 174.0606 326.8412 167.4652 333.4366L147.4806 353.421C136.6568 364.245 118.4096 361.284 111.564 347.5926C107.247 338.9586 108.9392 328.531 115.765 321.7052L128.2842 309.186H179.576zM140 169.184H20V29.184C20 18.138 28.9544 9.184 40 9.184H140V169.184zM380 169.184H260V9.184H360C371.046 9.184 380 18.138 380 29.184V169.184zM160 169.184H240V9.184H160V169.184z" : "M135.765 301.70544C105.6354 331.835 54.8426 323.59246 35.787 285.4812C26.7516 267.4108 27.1728 246.5178 36.0144 229.186H20C8.9543 229.186 0 220.2318 0 209.186V169.186C0 158.1404 8.9543 149.186 20 149.186H300C311.046 149.186 320 158.1404 320 169.186V209.186C320 220.2318 311.046 229.186 300 229.186H283.986C292.8280000000001 246.5178 293.248 267.4108 284.214 285.4812C265.158 323.59246 214.364 331.835 184.235 301.70544L164.2506 281.721C162.7714 280.2418 161.354 278.7124 160 277.1368C158.646 278.7124 157.2286 280.2418 155.7494 281.721L135.765 301.70544zM244.236 241.7054L231.716 229.186H180.424C181.719 238.3148 185.9394 246.8412 192.5348 253.4366L212.52 273.4212C223.344 284.245 241.59 281.284 248.436 267.5926C252.752 258.9588 251.06 248.5312 244.236 241.7054zM139.576 229.186C138.281 238.3148 134.0606 246.8412 127.4652 253.4366L107.4806 273.4212C96.6568 284.245 78.4096 281.284 71.564 267.5926C67.247 258.9588 68.9392 248.5312 75.765 241.7054L88.2842 229.186H139.576zM120 129.1846H20V29.184C20 18.138 28.9544 9.184 40 9.184H120V129.1846zM300 129.1846H200V9.184H280C291.046 9.184 300 18.138 300 29.184V129.1846zM140 129.1846H180V9.184H140V129.1846z", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style }))); }); GiftBox.defaultProps = { size: IconSize.STANDARD, }; GiftBox.displayName = `Blueprint5.Icon.GiftBox`; export default GiftBox; //# sourceMappingURL=gift-box.js.map