@codacy/ui-components 0.64.2 → 0.64.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,7 +28,9 @@ export var Banner = function Banner(_ref) {
28
28
  }), /*#__PURE__*/React.createElement(Box, {
29
29
  mr: 4
30
30
  }, /*#__PURE__*/React.createElement(Icon, {
31
- icon: icon || RocketIcon
31
+ icon: icon || RocketIcon,
32
+ size: "lg",
33
+ color: "text-secondary"
32
34
  })), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Subheader, {
33
35
  size: "lg",
34
36
  mb: 1
@@ -73,7 +73,7 @@ var Checkbox = function Checkbox(_ref) {
73
73
  })), children && /*#__PURE__*/React.createElement(Caption, {
74
74
  size: size,
75
75
  ml: size === 'md' ? 3 : 2,
76
- as: "div"
76
+ as: "span"
77
77
  }, children));
78
78
  };
79
79
 
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const CodacyIcon: () => JSX.Element;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ export var CodacyIcon = function CodacyIcon() {
3
+ return /*#__PURE__*/React.createElement("svg", {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ className: "codacy-icon",
6
+ viewBox: "0 0 512 512"
7
+ }, /*#__PURE__*/React.createElement("path", {
8
+ className: "stroke-none",
9
+ d: "M82.781 209.455a179.596 179.596 0 0 1 83.549-108.73l-38.516-66.56A254.767 254.767 0 0 0 8.727 189.487l74.054 19.968ZM209.524 82.921a180.596 180.596 0 0 1 46.103-6.191V0c-22.132 0-44.66 2.909-66.095 8.727l19.991 74.193ZM302.476 82.921a180.41 180.41 0 0 1 108.567 83.619L477.51 128A254.511 254.511 0 0 0 322.444 8.727L302.476 82.92ZM0 256c0 22.179 2.909 44.73 8.704 66.188l74.077-20.015A181.341 181.341 0 0 1 76.614 256H0ZM34.141 384a249.135 249.135 0 0 0 40.657 52.736l54.458-54.179a176.012 176.012 0 0 1-28.3-37.097L34.141 384ZM127.814 477.812A254.022 254.022 0 0 0 255.628 512v-76.73a179.735 179.735 0 0 1-89.321-23.994l-38.493 66.56ZM410.694 345.833a179.852 179.852 0 0 1-108.567 83.27l19.968 74.17A256.233 256.233 0 0 0 477.51 384l-66.816-38.167ZM502.924 324.724c11.985-43.287 11.985-89.088.721-132.724l-74.426 20.015a179.898 179.898 0 0 1-.372 93.091l74.077 19.619Z"
10
+ }));
11
+ };
@@ -3,6 +3,4 @@ export declare const CheckIcon: () => JSX.Element;
3
3
  export declare const MinusIcon: () => JSX.Element;
4
4
  export declare const CloseIcon: () => JSX.Element;
5
5
  export declare const DangerIcon: () => JSX.Element;
6
- export declare const RocketIcon: ({ color }: {
7
- color?: string | undefined;
8
- }) => JSX.Element;
6
+ export declare const RocketIcon: () => JSX.Element;
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import { useTheme } from 'emotion-theming';
3
2
  export var CheckIcon = function CheckIcon() {
4
3
  return /*#__PURE__*/React.createElement("svg", {
5
4
  xmlns: "http://www.w3.org/2000/svg",
@@ -54,19 +53,20 @@ export var DangerIcon = function DangerIcon() {
54
53
  d: "M256 397.25a20 20 0 1120-20 20 20 0 01-20 20z"
55
54
  }));
56
55
  };
57
- export var RocketIcon = function RocketIcon(_ref) {
58
- var color = _ref.color;
59
- var theme = useTheme();
56
+ export var RocketIcon = function RocketIcon() {
60
57
  return /*#__PURE__*/React.createElement("svg", {
61
- width: "20",
62
- height: "20",
63
- viewBox: "0 0 20 20",
64
- fill: "none",
65
- xmlns: "http://www.w3.org/2000/svg"
66
- }, /*#__PURE__*/React.createElement("path", {
67
- fillRule: "evenodd",
68
- clipRule: "evenodd",
69
- d: "M16.3372 0.522217C17.2594 0.35855 18.1421 0.32254 18.8587 0.497352C19.0198 0.536027 19.1666 0.61954 19.2822 0.73825C19.3964 0.855587 19.4754 1.00252 19.5104 1.16236C19.6786 1.90022 19.6437 2.7904 19.4796 3.71963C19.3133 4.66065 19.0061 5.68816 18.5904 6.71958C17.762 8.77492 16.4762 10.91 14.9267 12.4515C14.4712 12.9097 13.9832 13.334 13.4664 13.7211C13.5003 14.5648 13.404 15.4377 13.0602 16.2267L13.0599 16.2275C12.5028 17.5017 11.4991 18.3017 10.5325 18.7985C9.56859 19.2939 8.59981 19.5105 8.0249 19.6029C7.86232 19.6292 7.69587 19.6177 7.53842 19.5694C7.38097 19.5211 7.23674 19.4372 7.11687 19.3243C6.997 19.2113 6.90471 19.0723 6.84713 18.918C6.78954 18.7637 6.76821 18.5982 6.78478 18.4344C6.78497 18.4324 6.78518 18.4305 6.78539 18.4285L7.08824 15.6691C7.05757 15.6661 7.02692 15.6628 6.99628 15.6594C6.65883 15.6246 6.34384 15.474 6.10493 15.233C6.10439 15.2325 6.10384 15.2319 6.10329 15.2314L4.76016 13.8883C4.7596 13.8877 4.75905 13.8872 4.75849 13.8866C4.51767 13.6478 4.36701 13.333 4.33208 12.9957C4.32851 12.9635 4.32512 12.9313 4.32191 12.899L1.55999 13.2022L1.55715 13.2026L1.55501 13.2028C1.39094 13.2196 1.22521 13.1984 1.07065 13.1408C0.916083 13.0833 0.776856 12.9909 0.663752 12.8708C0.550647 12.7508 0.466694 12.6064 0.418407 12.4486C0.37012 12.2909 0.358796 12.1242 0.38531 11.9615L0.38551 11.9602C0.479913 11.3871 0.6975 10.4198 1.1936 9.4565C1.69099 8.49069 2.49077 7.48774 3.76402 6.9279L3.76585 6.9271C4.55521 6.58275 5.43282 6.48666 6.28166 6.52372C6.66884 6.00884 7.09287 5.52251 7.55046 5.06858C9.09634 3.52417 11.2638 2.23899 13.3326 1.41112C14.371 0.995602 15.4019 0.688216 16.3372 0.522217ZM13.8434 2.6877C11.8978 3.46628 9.90303 4.66157 8.52151 6.04208L8.51968 6.0439C8.02624 6.53328 7.57632 7.06465 7.17498 7.63201C7.0334 7.83217 6.79594 7.94178 6.55176 7.91969C5.7149 7.84397 4.94074 7.91499 4.31663 8.18697C3.42085 8.58112 2.82053 9.30058 2.41602 10.086C2.10441 10.6911 1.92234 11.3108 1.81757 11.7907L4.89341 11.453C5.08655 11.4318 5.27964 11.4933 5.42493 11.6224C5.57022 11.7514 5.65413 11.9358 5.65591 12.1301C5.65811 12.3695 5.67248 12.6087 5.69898 12.8467C5.69925 12.8491 5.6995 12.8515 5.69974 12.8539C5.7019 12.8752 5.71144 12.8952 5.72672 12.9103L5.72957 12.9131L7.07836 14.2619L7.08116 14.2647C7.09628 14.28 7.11626 14.2896 7.13766 14.2917C7.14023 14.292 7.14281 14.2923 7.14538 14.2925C7.38187 14.3189 7.61953 14.3333 7.85747 14.3356C8.05169 14.3375 8.23605 14.4214 8.36498 14.5667C8.4939 14.712 8.55537 14.905 8.53418 15.0981L8.19682 18.1718C8.67664 18.0685 9.29782 17.8871 9.90394 17.5756C10.6899 17.1717 11.4085 16.5717 11.7998 15.6772C12.0725 15.0512 12.1434 14.2806 12.0716 13.4462C12.0506 13.2026 12.1606 12.9661 12.3605 12.8253C12.9294 12.4244 13.4622 11.9745 13.9528 11.4808L13.9557 11.4779C15.3437 10.0976 16.5382 8.13289 17.3151 6.20555C17.7021 5.24532 17.9789 4.31048 18.1255 3.48042C18.2444 2.80758 18.2726 2.23235 18.2216 1.77938C17.7949 1.73126 17.2393 1.75861 16.5775 1.87606C15.7521 2.02255 14.8125 2.29992 13.8434 2.6877ZM7.80639 18.2454C7.80611 18.2454 7.80584 18.2455 7.80557 18.2455L7.80619 18.2454C7.80626 18.2454 7.80632 18.2454 7.80639 18.2454ZM13.1261 5.73551C12.8991 5.73551 12.6773 5.8028 12.4886 5.92887C12.3 6.05495 12.1529 6.23414 12.0661 6.4438C11.9793 6.65345 11.9566 6.88414 12.0009 7.10669C12.0451 7.32925 12.1544 7.53367 12.3149 7.69411L12.3155 7.69468C12.4218 7.80127 12.5482 7.88583 12.6873 7.94353C12.8264 8.00123 12.9755 8.03093 13.1261 8.03093C13.2766 8.03093 13.4257 8.00123 13.5648 7.94353C13.7039 7.88583 13.8303 7.80127 13.9366 7.69468L13.9372 7.69411C14.0977 7.53367 14.207 7.32925 14.2513 7.10669C14.2955 6.88414 14.2728 6.65345 14.186 6.4438C14.0992 6.23415 13.9521 6.05495 13.7635 5.92887C13.5748 5.8028 13.353 5.73551 13.1261 5.73551ZM11.7247 4.78563C12.1395 4.50845 12.6272 4.36051 13.1261 4.36051C13.6249 4.36051 14.1126 4.50845 14.5274 4.78563C14.9422 5.0628 15.2655 5.45676 15.4564 5.91768C15.6473 6.3786 15.6972 6.88577 15.5998 7.37506C15.5025 7.86408 15.2624 8.31328 14.9099 8.66592C14.6758 8.9005 14.3978 9.08661 14.0917 9.21359C13.7856 9.34057 13.4575 9.40593 13.1261 9.40593C12.7947 9.40593 12.4665 9.34057 12.1604 9.21359C11.8545 9.08667 11.5765 8.90068 11.3425 8.66627C10.9898 8.31358 10.7496 7.86424 10.6523 7.37506C10.5549 6.88577 10.6048 6.3786 10.7957 5.91768C10.9866 5.45676 11.3099 5.0628 11.7247 4.78563ZM4.38925 14.0404C4.43552 14.4173 4.16751 14.7603 3.79064 14.8065C3.51474 14.8404 3.25803 14.9654 3.06119 15.1616C2.99515 15.2282 2.88851 15.4109 2.78325 15.7555C2.68462 16.0784 2.61079 16.4624 2.55706 16.8434C2.52356 17.081 2.49879 17.3108 2.48058 17.5144C2.68435 17.4961 2.91428 17.4713 3.15206 17.4378C3.53313 17.384 3.91704 17.3101 4.23969 17.2114C4.58496 17.1058 4.76687 16.999 4.83236 16.9334L4.83353 16.9323C5.03019 16.7364 5.15513 16.4801 5.18817 16.2045C5.23338 15.8275 5.57564 15.5585 5.95264 15.6037C6.32963 15.649 6.5986 15.9912 6.55339 16.3682C6.48357 16.9505 6.21965 17.4922 5.80422 17.9061C5.49097 18.2192 5.03726 18.4053 4.64188 18.5263C4.22361 18.6542 3.76165 18.7404 3.3442 18.7993C2.9236 18.8586 2.53052 18.8927 2.2437 18.9121C2.09981 18.9217 1.98148 18.9278 1.89837 18.9314C1.85679 18.9333 1.82395 18.9345 1.80105 18.9353C1.7896 18.9357 1.78063 18.9359 1.77429 18.9361L1.76677 18.9363L1.76378 18.9364L1.76351 18.9364C1.7634 18.9364 1.7633 18.9364 1.74578 18.2492C1.05851 18.2316 1.05851 18.2315 1.05851 18.2314L1.0586 18.2282L1.05881 18.2206C1.059 18.2143 1.05928 18.2053 1.05967 18.1939C1.06046 18.171 1.06168 18.1382 1.0635 18.0966C1.06715 18.0136 1.07319 17.8953 1.08288 17.7515C1.10218 17.4648 1.13624 17.0719 1.19553 16.6514C1.25439 16.2341 1.34045 15.7722 1.46822 15.3539C1.58912 14.958 1.77514 14.5042 2.08769 14.1906L2.08885 14.1894C2.50266 13.7762 3.04266 13.513 3.62311 13.4418C3.99998 13.3955 4.34299 13.6635 4.38925 14.0404ZM1.74578 18.2492L1.05851 18.2316C1.0537 18.42 1.12641 18.6021 1.25964 18.7353C1.39287 18.8685 1.57494 18.9412 1.7633 18.9364L1.74578 18.2492Z",
70
- fill: color || theme.colors['black-400']
58
+ xmlns: "http://www.w3.org/2000/svg",
59
+ className: "ionicon",
60
+ viewBox: "0 0 512 512"
61
+ }, /*#__PURE__*/React.createElement("title", null, "Rocket"), /*#__PURE__*/React.createElement("path", {
62
+ d: "M461.81 53.81a4.4 4.4 0 00-3.3-3.39c-54.38-13.3-180 34.09-248.13 102.17a294.9 294.9 0 00-33.09 39.08c-21-1.9-42-.3-59.88 7.5-50.49 22.2-65.18 80.18-69.28 105.07a9 9 0 009.8 10.4l81.07-8.9a180.29 180.29 0 001.1 18.3 18.15 18.15 0 005.3 11.09l31.39 31.39a18.15 18.15 0 0011.1 5.3 179.91 179.91 0 0018.19 1.1l-8.89 81a9 9 0 0010.39 9.79c24.9-4 83-18.69 105.07-69.17 7.8-17.9 9.4-38.79 7.6-59.69a293.91 293.91 0 0039.19-33.09c68.38-68 115.47-190.86 102.37-247.95zM298.66 213.67a42.7 42.7 0 1160.38 0 42.65 42.65 0 01-60.38 0z",
63
+ strokeLinecap: "round",
64
+ strokeLinejoin: "round",
65
+ className: "ionicon-fill-none ionicon-stroke-width"
66
+ }), /*#__PURE__*/React.createElement("path", {
67
+ d: "M109.64 352a45.06 45.06 0 00-26.35 12.84C65.67 382.52 64 448 64 448s65.52-1.67 83.15-19.31A44.73 44.73 0 00160 402.32",
68
+ strokeLinecap: "round",
69
+ strokeLinejoin: "round",
70
+ className: "ionicon-fill-none ionicon-stroke-width"
71
71
  }));
72
72
  };
@@ -5,3 +5,4 @@ export * from './Sorting';
5
5
  export * from './Symbols';
6
6
  export * from './Messages';
7
7
  export * from './Severities';
8
+ export * from './CodacyIcon';
@@ -4,4 +4,5 @@ export * from './Chevrons';
4
4
  export * from './Sorting';
5
5
  export * from './Symbols';
6
6
  export * from './Messages';
7
- export * from './Severities';
7
+ export * from './Severities';
8
+ export * from './CodacyIcon';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/ui-components",
3
- "version": "0.64.2",
3
+ "version": "0.64.4",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",