@codacy/ui-components 0.66.46 → 0.66.47

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.
package/lib/Orb/Orb.js CHANGED
@@ -7,6 +7,7 @@ import { OrbWrapper } from './styles';
7
7
  export const Orb = ({
8
8
  type,
9
9
  icon,
10
+ iconSize,
10
11
  dataPointValue,
11
12
  dataPointColor,
12
13
  dataPointSize,
@@ -16,6 +17,7 @@ export const Orb = ({
16
17
  const OrbContent = () => {
17
18
  return /*#__PURE__*/React.createElement(React.Fragment, null, icon && /*#__PURE__*/React.createElement(Icon, {
18
19
  icon: icon,
20
+ size: iconSize,
19
21
  color: type === 'default' ? 'icon-enabled' : `icon-${type}`
20
22
  }), dataPointValue && /*#__PURE__*/React.createElement(DataPoint, {
21
23
  value: dataPointValue,
@@ -1,5 +1,5 @@
1
1
  import { ReactChild } from 'react';
2
- import { IconFile } from '../Icon';
2
+ import { IconFile, IconProps } from '../Icon';
3
3
  import { DataPointProps } from '../Typography';
4
4
  export declare type OrbType = 'info' | 'success' | 'danger' | 'warning' | 'default';
5
5
  export interface OrbWrapperProps {
@@ -8,6 +8,7 @@ export interface OrbWrapperProps {
8
8
  export interface OrbProps {
9
9
  type: OrbType;
10
10
  icon?: IconFile;
11
+ iconSize?: IconProps['size'];
11
12
  dataPointValue?: DataPointProps['value'];
12
13
  dataPointColor?: DataPointProps['color'];
13
14
  dataPointSize?: DataPointProps['size'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/ui-components",
3
- "version": "0.66.46",
3
+ "version": "0.66.47",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",