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/app/styles/design-tokens/_new-colors.scss +37 -37
- package/app-typescript/components/Icon.tsx +3 -2
- package/app-typescript/components/Navigation/SideBarTabs.tsx +3 -2
- package/app-typescript/components/StateLabel.tsx +1 -1
- package/dist/examples.bundle.js +1 -1
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/{main.60c35036.iframe.bundle.js → main.114175b0.iframe.bundle.js} +1 -1
- package/dist/storybook/project.json +1 -1
- package/dist/superdesk-ui.bundle.js +1 -1
- package/package.json +1 -1
- package/react/components/Icon.d.ts +2 -3
- package/react/components/Navigation/SideBarTabs.d.ts +2 -0
- package/react/components/Navigation/SideBarTabs.js +1 -1
- package/react/components/StateLabel.js +1 -1
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/{main.60c35036.iframe.bundle.js → main.114175b0.iframe.bundle.js} +1 -1
- package/storybook-static/project.json +1 -1
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
interface
|
|
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<
|
|
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
|
|
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: '
|
|
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' },
|