superdesk-ui-framework 6.1.0 → 6.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "superdesk-ui-framework",
3
- "version": "6.1.0",
3
+ "version": "6.1.2",
4
4
  "license": "AGPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- interface IProps {
2
+ export interface IIconProps {
3
3
  name?: string;
4
4
  size?: 'small' | 'big';
5
5
  type?: 'default' | 'primary' | 'success' | 'warning' | 'alert' | 'highlight' | 'light' | 'white';
@@ -8,7 +8,6 @@ interface IProps {
8
8
  ariaHidden?: boolean;
9
9
  color?: string;
10
10
  }
11
- export declare class Icon extends React.PureComponent<IProps> {
11
+ export declare class Icon extends React.PureComponent<IIconProps> {
12
12
  render(): JSX.Element;
13
13
  }
14
- export {};
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import { IIconProps } from '../Icon';
2
3
  interface IProps {
3
4
  activeTab: string | null;
4
5
  onActiveTabChange(val: string | null): void;
@@ -10,6 +11,7 @@ interface IProps {
10
11
  export interface ISideBarTab {
11
12
  id: string;
12
13
  icon: string;
14
+ type?: IIconProps['type'];
13
15
  size: 'small' | 'big';
14
16
  tooltip?: string;
15
17
  badgeValue?: string;
@@ -92,7 +92,7 @@ var SideBarTabs = /** @class */ (function (_super) {
92
92
  }), onClick: function () { return _this.handleClick(item); }, "data-test-id": "widget-icon", "data-test-value": item.id },
93
93
  item.badgeValue != null && React.createElement(Badge_1.Badge, { text: item['badgeValue'], type: "primary" }),
94
94
  React.createElement("span", { className: "sd-sidetab-menu__main-icon " },
95
- React.createElement(Icon_1.Icon, { size: item['size'], name: item['icon'] })),
95
+ React.createElement(Icon_1.Icon, { size: item.size, name: item.icon, type: item.type })),
96
96
  React.createElement("i", { className: "sd-sidetab-menu__helper-icon icon-close-small" }))));
97
97
  }
98
98
  }))));
@@ -73,7 +73,7 @@ var DEFAULT_STATE_COLOR_MAP = {
73
73
  spiked: { type: 'alert', style: 'hollow' },
74
74
  recalled: { type: 'alert', style: 'hollow' },
75
75
  killed: { type: 'alert', style: 'hollow' },
76
- scheduled: { type: 'highlight', style: 'hollow' },
76
+ scheduled: { type: 'warning', style: 'hollow' },
77
77
  corrected: { type: 'sd-green', style: 'hollow' },
78
78
  correction: { color: 'pink--500', style: 'filled' },
79
79
  being_corrected: { color: 'pink--500', style: 'hollow' },
@@ -530,4 +530,4 @@
530
530
 
531
531
  import './965.ce6f2d72.iframe.bundle.js';
532
532
 
533
- import './main.60c35036.iframe.bundle.js';</script></body></html>
533
+ import './main.114175b0.iframe.bundle.js';</script></body></html>