UNPKG

@blueprintjs/icons

Version:

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

31 lines 7.18 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 ArrayString = 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: "array-string", ref: ref, ...props }, React.createElement("path", { d: isLarge ? "M380 400C390.2567160000001 400 398.710144 392.2791962 399.865446 382.3324225L400 380L400 20C400 9.743284 392.279196 1.289856 382.332422 0.134554L380 0L300 0C288.9543060000001 0 280 8.954306 280 20C280 30.256716 287.720804 38.710144 297.667578 39.865446L300 40L360 40L360 360L300 360C289.743284 360 281.289856 367.7208038 280.1345540000001 377.6675774000001L280 380C280 390.25671678 287.720804 398.7101432140001 297.667578 399.8654453736L300 400L380 400zM100 400C111.045695 400 120 391.045695 120 380C120 369.7432832 112.2791962 361.2898568 102.3324226 360.1345546L100 360L40 360L40 40L100 40C110.2567168 40 118.7101432 32.279196 119.8654454 22.332422L120 20C120 9.743284 112.2791962 1.289856 102.3324226 0.134554L100 0L20 0C9.74328322 0 1.289856786 7.720804 0.1345546266 17.667578L0 20L0 380C0 390.25671678 7.7208038 398.7101432140001 17.6675775 399.8654453734L20 400L100 400zM140.2325582 280C153.1007752 280 164.3023256 274.6899224 173.8372094 264.0697674C183.372093 253.4496124 188.1395348 239.1472868 188.1395348 221.1627906C188.1395348 200.2325582 181.7054264 181.472868 168.8372094 164.88372C155.9689922 148.294574 135.6589148 134.88372 107.9069768 124.651162L107.9069768 124.651162L107.9069768 136.27907L113.1036462 138.367786C126.6245574 144.270744 137.4504738 152.83807 145.5813954 164.069768C154.7286822 176.705426 159.3023256 189.844962 159.3023256 203.488372C159.3023256 206.4341086 158.8372094 208.6046512 157.9069768 210C157.4418604 210.9302326 156.8217054 211.3953488 156.0465116 211.3953488C155.2713178 211.3953488 154.0310078 210.7751938 152.3255814 209.5348838C147.364341 205.9689922 141.1627906 204.1860466 133.7209302 204.1860466C124.7286822 204.1860466 116.8604652 207.7906976 110.116279 215C103.372093 222.2093024 100 230.7751938 100 240.6976744C100 251.24031 103.875969 260.4263566 111.627907 268.255814C119.379845 276.0852714 128.9147286 280 140.2325582 280zM252.093024 280C264.96124 280 276.16279 274.6899224 285.697674 264.0697674C295.2325580000001 253.4496124 300 239.1472868 300 221.1627906C300 200.2325582 293.565892 181.472868 280.697674 164.88372C267.829458 148.294574 247.51938 134.88372 219.767442 124.651162L219.767442 124.651162L219.767442 136.27907L224.964112 138.367786C238.485022 144.270744 249.310938 152.83807 257.44186 164.069768C266.589148 176.705426 271.16279 189.844962 271.16279 203.488372C271.16279 206.4341086 270.697674 208.6046512 269.767442 210C269.302326 210.9302326 268.6821700000001 211.3953488 267.906976 211.3953488C267.1317820000001 211.3953488 265.891472 210.7751938 264.186046 209.5348838C259.224806 205.9689922 253.023256 204.1860466 245.581396 204.1860466C236.589148 204.1860466 228.72093 207.7906976 221.976744 215C215.232558 222.2093024 211.860466 230.7751938 211.860466 240.6976744C211.860466 251.24031 215.736434 260.4263566 223.488372 268.255814C231.24031 276.0852714 240.775194 280 252.093024 280z" : "M300 320C310.256716 320 318.710144 312.2791962 319.865446 302.3324225L320 300L320 20C320 9.743284 312.279196 1.289856 302.332422 0.134554L300 0L240 0C228.954306 0 220 8.954306 220 20C220 30.256716 227.720804 38.710144 237.667578 39.865446L240 40L280 40L280 280L240 280C229.743284 280 221.289856 287.7208038 220.134554 297.6675774000001L220 300C220 310.25671678 227.720804 318.7101432140001 237.667578 319.8654453734L240 320L300 320zM80 320C91.045695 320 100 311.045695 100 300C100 289.7432832 92.2791962 281.2898568 82.3324226 280.1345546L80 280L40 280L40 40L80 40C90.2567168 40 98.7101432 32.279196 99.8654454 22.332422L100 20C100 9.743284 92.2791962 1.289856 82.3324226 0.134554L80 0L20 0C9.74328322 0 1.289856786 7.720804 0.1345546266 17.667578L0 20L0 300C0 310.25671678 7.7208038 318.7101432140001 17.6675775 319.8654453734L20 320L80 320zM112.1860466 220C122.4806202 220 131.4418604 215.751938 139.0697674 207.255814C146.6976744 198.75969 150.511628 187.3178294 150.511628 172.9302326C150.511628 156.1860466 145.364341 141.1782946 135.0697674 127.9069768C124.7751938 114.635658 108.5271318 103.906976 86.3255814 95.72093L86.3255814 95.72093L86.3255814 105.023256L90.988372 106.917152C101.5697674 111.631298 110.0620156 118.410852 116.4651162 127.255814C123.7829458 137.364341 127.4418604 147.875969 127.4418604 158.7906976C127.4418604 161.1472868 127.0697674 162.883721 126.3255814 164C125.9534884 164.744186 125.4573644 165.116279 124.8372094 165.116279C124.2170542 165.116279 123.2248062 164.620155 121.8604652 163.627907C117.8914728 160.7751938 112.9302326 159.3488372 106.9767442 159.3488372C99.7829458 159.3488372 93.488372 162.2325582 88.0930232 168C82.6976744 173.7674418 80 180.620155 80 188.5581396C80 196.992248 83.1007752 204.3410852 89.3023256 210.6046512C95.503876 216.868217 103.131783 220 112.1860466 220zM201.674418 220C211.968992 220 220.930232 215.751938 228.55814 207.255814C236.186046 198.75969 240 187.3178294 240 172.9302326C240 156.1860466 234.852714 141.1782946 224.55814 127.9069768C214.263566 114.635658 198.0155038 103.906976 175.8139534 95.72093L175.8139534 95.72093L175.8139534 105.023256L180.4767442 106.917152C191.0581396 111.631298 199.5503876 118.410852 205.953488 127.255814C213.271318 137.364341 216.930232 147.875969 216.930232 158.7906976C216.930232 161.1472868 216.55814 162.883721 215.813954 164C215.44186 164.744186 214.945736 165.116279 214.325582 165.116279C213.705426 165.116279 212.713178 164.620155 211.348838 163.627907C207.379844 160.7751938 202.418604 159.3488372 196.4651162 159.3488372C189.2713178 159.3488372 182.9767442 162.2325582 177.5813954 168C172.1860466 173.7674418 169.488372 180.620155 169.488372 188.5581396C169.488372 196.992248 172.5891472 204.3410852 178.7906976 210.6046512C184.992248 216.868217 192.620155 220 201.674418 220z", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style }))); }); ArrayString.defaultProps = { size: IconSize.STANDARD, }; ArrayString.displayName = `Blueprint5.Icon.ArrayString`; export default ArrayString; //# sourceMappingURL=array-string.js.map