@synerise/ds-alert 1.1.13 → 1.1.15
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/CHANGELOG.md +16 -0
- package/dist/BroadcastBar/BroadcastBar.d.ts +2 -3
- package/dist/BroadcastBar/BroadcastBar.js +4 -72
- package/dist/IconAlert/IconAlert.d.ts +3 -4
- package/dist/IconAlert/IconAlert.js +4 -36
- package/dist/index.d.ts +2 -3
- package/dist/index.js +4 -3
- package/package.json +6 -6
- package/dist/BroadcastBar/BroadcastBar.styles.d.ts +0 -49
- package/dist/BroadcastBar/BroadcastBar.styles.js +0 -112
- package/dist/BroadcastBar/BroadcastBar.types.d.ts +0 -15
- package/dist/BroadcastBar/BroadcastBar.types.js +0 -1
- package/dist/IconAlert/IconAlert.styles.d.ts +0 -9
- package/dist/IconAlert/IconAlert.styles.js +0 -47
- package/dist/IconAlert/IconAlert.types.d.ts +0 -12
- package/dist/IconAlert/IconAlert.types.js +0 -1
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,22 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [1.1.15](https://github.com/Synerise/synerise-design/compare/@synerise/ds-alert@1.1.14...@synerise/ds-alert@1.1.15) (2025-09-05)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @synerise/ds-alert
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## [1.1.14](https://github.com/Synerise/synerise-design/compare/@synerise/ds-alert@1.1.13...@synerise/ds-alert@1.1.14) (2025-08-28)
|
15
|
+
|
16
|
+
**Note:** Version bump only for package @synerise/ds-alert
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
6
22
|
## [1.1.13](https://github.com/Synerise/synerise-design/compare/@synerise/ds-alert@1.1.12...@synerise/ds-alert@1.1.13) (2025-08-20)
|
7
23
|
|
8
24
|
**Note:** Version bump only for package @synerise/ds-alert
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
declare const BroadcastBar: ({ icon, type, description, button, withEmphasis, withLink, color, withClose, textButton, onCloseClick, text, }: Props) => React.JSX.Element;
|
1
|
+
import BroadcastBar from '@synerise/ds-broadcast-bar';
|
2
|
+
/** @deprecated use `@synerise/ds-broadcast-bar` instead */
|
4
3
|
export default BroadcastBar;
|
@@ -1,73 +1,5 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
success: /*#__PURE__*/React.createElement(Check3M, null),
|
6
|
-
warning: /*#__PURE__*/React.createElement(WarningFillM, null),
|
7
|
-
negative: /*#__PURE__*/React.createElement(ErrorFillM, null)
|
8
|
-
};
|
9
|
-
var DEFAULT_ICON = /*#__PURE__*/React.createElement(WarningFillM, null);
|
10
|
-
var BroadcastBar = function BroadcastBar(_ref) {
|
11
|
-
var icon = _ref.icon,
|
12
|
-
type = _ref.type,
|
13
|
-
description = _ref.description,
|
14
|
-
button = _ref.button,
|
15
|
-
withEmphasis = _ref.withEmphasis,
|
16
|
-
withLink = _ref.withLink,
|
17
|
-
color = _ref.color,
|
18
|
-
withClose = _ref.withClose,
|
19
|
-
textButton = _ref.textButton,
|
20
|
-
onCloseClick = _ref.onCloseClick,
|
21
|
-
text = _ref.text;
|
22
|
-
var renderMessage = useMemo(function () {
|
23
|
-
return /*#__PURE__*/React.createElement(S.AlertContent, {
|
24
|
-
color: color,
|
25
|
-
withLink: withLink
|
26
|
-
}, /*#__PURE__*/React.createElement(S.Text, {
|
27
|
-
color: color
|
28
|
-
}, description && !withEmphasis && /*#__PURE__*/React.createElement(S.AlertDescription, {
|
29
|
-
color: color
|
30
|
-
}, description), withLink && !withEmphasis && !description && /*#__PURE__*/React.createElement(S.LinkWrapper, {
|
31
|
-
color: color
|
32
|
-
}, /*#__PURE__*/React.createElement(S.WrapperText, null, text), /*#__PURE__*/React.createElement(S.Link, null, withLink)), withEmphasis && /*#__PURE__*/React.createElement(S.EmphasisWrapper, {
|
33
|
-
color: color
|
34
|
-
}, /*#__PURE__*/React.createElement(S.WrapperText, {
|
35
|
-
emphasis: withEmphasis
|
36
|
-
}, text), withEmphasis)));
|
37
|
-
}, [description, withEmphasis, withLink, text, color]);
|
38
|
-
var renderIcon = useMemo(function () {
|
39
|
-
if (icon) {
|
40
|
-
return icon;
|
41
|
-
}
|
42
|
-
if (ICONS[type]) {
|
43
|
-
return ICONS[type];
|
44
|
-
}
|
45
|
-
return DEFAULT_ICON;
|
46
|
-
}, [icon, type]);
|
47
|
-
return /*#__PURE__*/React.createElement(S.Container, {
|
48
|
-
color: color
|
49
|
-
}, /*#__PURE__*/React.createElement(S.WrapperSectionMessage, {
|
50
|
-
color: color
|
51
|
-
}, /*#__PURE__*/React.createElement("div", null), /*#__PURE__*/React.createElement(S.AllContent, {
|
52
|
-
close: withClose,
|
53
|
-
color: color
|
54
|
-
}, /*#__PURE__*/React.createElement(S.IconWrapper, {
|
55
|
-
color: color
|
56
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
57
|
-
component: renderIcon
|
58
|
-
})), renderMessage, /*#__PURE__*/React.createElement(S.ButtonWrapper, {
|
59
|
-
color: color
|
60
|
-
}, button && /*#__PURE__*/React.createElement(S.BroadcastButton, {
|
61
|
-
color: color,
|
62
|
-
type: color === 'yellow' ? 'tertiary' : 'tertiary-white',
|
63
|
-
mode: "label"
|
64
|
-
}, textButton))), /*#__PURE__*/React.createElement(S.ButtonCloseWrapper, {
|
65
|
-
color: color
|
66
|
-
}, withClose && /*#__PURE__*/React.createElement(S.IconCloseWrapper, {
|
67
|
-
onClick: onCloseClick,
|
68
|
-
color: color
|
69
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
70
|
-
component: /*#__PURE__*/React.createElement(CloseM, null)
|
71
|
-
})))));
|
72
|
-
};
|
1
|
+
import BroadcastBar from '@synerise/ds-broadcast-bar';
|
2
|
+
|
3
|
+
/** @deprecated use `@synerise/ds-broadcast-bar` instead */
|
4
|
+
|
73
5
|
export default BroadcastBar;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
|
4
|
-
export default IconAlert;
|
1
|
+
import InlineAlert from '@synerise/ds-inline-alert';
|
2
|
+
/** @deprecated use `@synerise/ds-inline-alert` instead */
|
3
|
+
export default InlineAlert;
|
@@ -1,36 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
import Icon, { Check3M, InfoFillM, WarningFillM } from '@synerise/ds-icon';
|
6
|
-
import * as S from './IconAlert.styles';
|
7
|
-
var ICONS = {
|
8
|
-
success: /*#__PURE__*/React.createElement(Check3M, null),
|
9
|
-
alert: /*#__PURE__*/React.createElement(WarningFillM, null),
|
10
|
-
warning: /*#__PURE__*/React.createElement(WarningFillM, null),
|
11
|
-
info: /*#__PURE__*/React.createElement(InfoFillM, null)
|
12
|
-
};
|
13
|
-
var IconAlert = function IconAlert(_ref) {
|
14
|
-
var _ref$type = _ref.type,
|
15
|
-
type = _ref$type === void 0 ? 'warning' : _ref$type,
|
16
|
-
iconAlert = _ref.iconAlert,
|
17
|
-
message = _ref.message,
|
18
|
-
withLink = _ref.withLink,
|
19
|
-
withEmphasis = _ref.withEmphasis,
|
20
|
-
hoverButton = _ref.hoverButton,
|
21
|
-
disabled = _ref.disabled,
|
22
|
-
customIcon = _ref.customIcon,
|
23
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
24
|
-
var icon = useMemo(function () {
|
25
|
-
return ICONS[type];
|
26
|
-
}, [type]);
|
27
|
-
return /*#__PURE__*/React.createElement(S.IconAlertWrapper, _extends({}, rest, {
|
28
|
-
type: type,
|
29
|
-
disabled: disabled,
|
30
|
-
hoverButton: hoverButton,
|
31
|
-
className: "ds-inline-alert"
|
32
|
-
}), iconAlert && (customIcon || /*#__PURE__*/React.createElement(Icon, {
|
33
|
-
component: icon
|
34
|
-
})), message && /*#__PURE__*/React.createElement(S.Message, null, message, withLink && /*#__PURE__*/React.createElement(S.LinkWrapper, null, withLink), withEmphasis && !withLink && /*#__PURE__*/React.createElement(S.EmphasisWrapper, null, withEmphasis)));
|
35
|
-
};
|
36
|
-
export default IconAlert;
|
1
|
+
import InlineAlert from '@synerise/ds-inline-alert';
|
2
|
+
|
3
|
+
/** @deprecated use `@synerise/ds-inline-alert` instead */
|
4
|
+
export default InlineAlert;
|
package/dist/index.d.ts
CHANGED
@@ -1,18 +1,17 @@
|
|
1
1
|
import * as MainAlertStyles from './Alert.styles';
|
2
|
-
import * as IconAlertStyles from './IconAlert/IconAlert.styles';
|
3
2
|
import * as ToastStyles from './Toast/Toast.styles';
|
4
3
|
export { default } from './Alert';
|
5
4
|
export declare const AlertStyles: {
|
6
5
|
Alert: typeof MainAlertStyles;
|
7
6
|
Toast: typeof ToastStyles;
|
8
|
-
IconAlert: typeof IconAlertStyles;
|
9
7
|
};
|
10
8
|
/** @deprecated use `@synerise/ds-section-message` instead */
|
11
9
|
export { default as SectionMessage } from './SectionMessage/SectionMessage';
|
12
10
|
export { default as Toast } from './Toast/Toast';
|
11
|
+
/** @deprecated - use Broadcast-Bar instead */
|
13
12
|
export { default as BroadcastBar } from './BroadcastBar/BroadcastBar';
|
13
|
+
/** @deprecated use `@synerise/ds-inline-alert` instead */
|
14
14
|
export { default as IconAlert } from './IconAlert/IconAlert';
|
15
|
-
export type { IconAlertType } from './IconAlert/IconAlert.types';
|
16
15
|
export { default as InlineAlert } from './InlineAlert/InlineAlert';
|
17
16
|
export { default as AlertInfo } from './AlertInfo/AlertInfo';
|
18
17
|
export type { AlertSize } from './AlertInfo/AlertInfo.types';
|
package/dist/index.js
CHANGED
@@ -1,17 +1,18 @@
|
|
1
1
|
import * as MainAlertStyles from './Alert.styles';
|
2
|
-
import * as IconAlertStyles from './IconAlert/IconAlert.styles';
|
3
2
|
import * as ToastStyles from './Toast/Toast.styles';
|
4
3
|
export { default } from './Alert';
|
5
4
|
export var AlertStyles = {
|
6
5
|
Alert: MainAlertStyles,
|
7
|
-
Toast: ToastStyles
|
8
|
-
IconAlert: IconAlertStyles
|
6
|
+
Toast: ToastStyles
|
9
7
|
};
|
10
8
|
|
11
9
|
/** @deprecated use `@synerise/ds-section-message` instead */
|
12
10
|
export { default as SectionMessage } from './SectionMessage/SectionMessage';
|
13
11
|
export { default as Toast } from './Toast/Toast';
|
12
|
+
/** @deprecated - use Broadcast-Bar instead */
|
14
13
|
export { default as BroadcastBar } from './BroadcastBar/BroadcastBar';
|
14
|
+
|
15
|
+
/** @deprecated use `@synerise/ds-inline-alert` instead */
|
15
16
|
export { default as IconAlert } from './IconAlert/IconAlert';
|
16
17
|
export { default as InlineAlert } from './InlineAlert/InlineAlert';
|
17
18
|
export { default as AlertInfo } from './AlertInfo/AlertInfo';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@synerise/ds-alert",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.15",
|
4
4
|
"description": "Alert UI Component for the Synerise Design System",
|
5
5
|
"license": "ISC",
|
6
6
|
"repository": "Synerise/synerise-design",
|
@@ -34,10 +34,10 @@
|
|
34
34
|
],
|
35
35
|
"types": "dist/index.d.ts",
|
36
36
|
"dependencies": {
|
37
|
-
"@synerise/ds-button": "^1.4.
|
38
|
-
"@synerise/ds-icon": "^1.7.
|
39
|
-
"@synerise/ds-unordered-list": "^1.1.
|
40
|
-
"@synerise/ds-utils": "^1.4.
|
37
|
+
"@synerise/ds-button": "^1.4.9",
|
38
|
+
"@synerise/ds-icon": "^1.7.1",
|
39
|
+
"@synerise/ds-unordered-list": "^1.1.14",
|
40
|
+
"@synerise/ds-utils": "^1.4.1",
|
41
41
|
"animate.css": "^4.1.1"
|
42
42
|
},
|
43
43
|
"peerDependencies": {
|
@@ -46,5 +46,5 @@
|
|
46
46
|
"react": ">=16.9.0 <= 18.3.1",
|
47
47
|
"styled-components": "^5.3.3"
|
48
48
|
},
|
49
|
-
"gitHead": "
|
49
|
+
"gitHead": "7f119fa17e645f1d800aea95c313fe22f348439c"
|
50
50
|
}
|
@@ -1,49 +0,0 @@
|
|
1
|
-
import type React from 'react';
|
2
|
-
import Button from '@synerise/ds-button';
|
3
|
-
import { type ColorType } from './BroadcastBar.types';
|
4
|
-
export declare const AlertContent: import("styled-components").StyledComponent<"div", any, {
|
5
|
-
withLink?: React.ReactNode;
|
6
|
-
color?: ColorType;
|
7
|
-
}, never>;
|
8
|
-
export declare const AllContent: import("styled-components").StyledComponent<"div", any, {
|
9
|
-
color?: ColorType;
|
10
|
-
close?: boolean | React.ReactNode;
|
11
|
-
}, never>;
|
12
|
-
export declare const Text: import("styled-components").StyledComponent<"div", any, {
|
13
|
-
color?: ColorType;
|
14
|
-
}, never>;
|
15
|
-
export declare const IconWrapper: import("styled-components").StyledComponent<"div", any, {
|
16
|
-
color?: ColorType;
|
17
|
-
}, never>;
|
18
|
-
export declare const IconCloseWrapper: import("styled-components").StyledComponent<"div", any, {
|
19
|
-
color?: ColorType;
|
20
|
-
}, never>;
|
21
|
-
export declare const ButtonWrapper: import("styled-components").StyledComponent<"div", any, {
|
22
|
-
color?: ColorType;
|
23
|
-
}, never>;
|
24
|
-
export declare const BroadcastButton: import("styled-components").StyledComponent<typeof Button, any, {
|
25
|
-
color?: ColorType;
|
26
|
-
}, never>;
|
27
|
-
export declare const ButtonCloseWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
28
|
-
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {
|
29
|
-
color?: ColorType;
|
30
|
-
}, never>;
|
31
|
-
export declare const Container: import("styled-components").StyledComponent<"div", any, {
|
32
|
-
color?: ColorType;
|
33
|
-
}, never>;
|
34
|
-
export declare const WrapperSectionMessage: import("styled-components").StyledComponent<"div", any, {
|
35
|
-
color?: ColorType;
|
36
|
-
}, never>;
|
37
|
-
export declare const AlertDescription: import("styled-components").StyledComponent<"span", any, {
|
38
|
-
color?: ColorType;
|
39
|
-
}, never>;
|
40
|
-
export declare const EmphasisWrapper: import("styled-components").StyledComponent<"span", any, {
|
41
|
-
color?: ColorType;
|
42
|
-
}, never>;
|
43
|
-
export declare const WrapperText: import("styled-components").StyledComponent<"span", any, {
|
44
|
-
emphasis?: boolean | React.ReactNode;
|
45
|
-
}, never>;
|
46
|
-
export declare const LinkWrapper: import("styled-components").StyledComponent<"span", any, {
|
47
|
-
color?: ColorType;
|
48
|
-
}, never>;
|
49
|
-
export declare const Link: import("styled-components").StyledComponent<"span", any, {}, never>;
|
@@ -1,112 +0,0 @@
|
|
1
|
-
import styled from 'styled-components';
|
2
|
-
import Button from '@synerise/ds-button';
|
3
|
-
var getColorBackground = function getColorBackground(props) {
|
4
|
-
if (props.color === 'red') {
|
5
|
-
return props.theme.palette['red-500'];
|
6
|
-
}
|
7
|
-
return props.theme.palette[props.color + "-600"];
|
8
|
-
};
|
9
|
-
var getColorIcon = function getColorIcon(props) {
|
10
|
-
if (props.color === 'yellow') {
|
11
|
-
return props.theme.palette['grey-800'];
|
12
|
-
}
|
13
|
-
return props.theme.palette.white;
|
14
|
-
};
|
15
|
-
export var AlertContent = styled.div.withConfig({
|
16
|
-
displayName: "BroadcastBarstyles__AlertContent",
|
17
|
-
componentId: "sc-1xh5805-0"
|
18
|
-
})(["display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px 0;color:", ";"], function (props) {
|
19
|
-
return props.color === 'yellow' ? props.theme.palette['grey-800'] : props.theme.palette.white;
|
20
|
-
});
|
21
|
-
export var AllContent = styled.div.withConfig({
|
22
|
-
displayName: "BroadcastBarstyles__AllContent",
|
23
|
-
componentId: "sc-1xh5805-1"
|
24
|
-
})(["display:flex;margin-left:", ";color:", ";"], function (props) {
|
25
|
-
return props.close ? '34px' : '0';
|
26
|
-
}, function (props) {
|
27
|
-
return props.color === 'yellow' ? props.theme.palette['grey-800'] : props.theme.palette.white;
|
28
|
-
});
|
29
|
-
export var Text = styled.div.withConfig({
|
30
|
-
displayName: "BroadcastBarstyles__Text",
|
31
|
-
componentId: "sc-1xh5805-2"
|
32
|
-
})(["display:flex;color:", ";"], function (props) {
|
33
|
-
return props.color === 'yellow' ? props.theme.palette['grey-800'] : props.theme.palette.white;
|
34
|
-
});
|
35
|
-
export var IconWrapper = styled.div.withConfig({
|
36
|
-
displayName: "BroadcastBarstyles__IconWrapper",
|
37
|
-
componentId: "sc-1xh5805-3"
|
38
|
-
})(["margin:10px 12px;color:", ";fill:", ";}"], function (props) {
|
39
|
-
return getColorIcon(props);
|
40
|
-
}, function (props) {
|
41
|
-
return getColorIcon(props);
|
42
|
-
});
|
43
|
-
export var IconCloseWrapper = styled.div.withConfig({
|
44
|
-
displayName: "BroadcastBarstyles__IconCloseWrapper",
|
45
|
-
componentId: "sc-1xh5805-4"
|
46
|
-
})(["margin:3px 5px 2px;cursor:pointer;svg{color:", ";fill:", ";}"], function (props) {
|
47
|
-
return getColorIcon(props);
|
48
|
-
}, function (props) {
|
49
|
-
return getColorIcon(props);
|
50
|
-
});
|
51
|
-
export var ButtonWrapper = styled.div.withConfig({
|
52
|
-
displayName: "BroadcastBarstyles__ButtonWrapper",
|
53
|
-
componentId: "sc-1xh5805-5"
|
54
|
-
})(["margin:6px 8px;border-radius:3px;display:flex;background-color:rgba(255,255,255,0.2);"]);
|
55
|
-
export var BroadcastButton = styled(Button).withConfig({
|
56
|
-
displayName: "BroadcastBarstyles__BroadcastButton",
|
57
|
-
componentId: "sc-1xh5805-6"
|
58
|
-
})(["color:", ";&&& :hover{color:", " !important;}"], function (props) {
|
59
|
-
return props.color === 'yellow' ? props.theme.palette['grey-800'] : props.theme.palette.white;
|
60
|
-
}, function (props) {
|
61
|
-
return props.color === 'yellow' ? props.theme.palette['grey-800'] : props.theme.palette.white;
|
62
|
-
});
|
63
|
-
export var ButtonCloseWrapper = styled.div.withConfig({
|
64
|
-
displayName: "BroadcastBarstyles__ButtonCloseWrapper",
|
65
|
-
componentId: "sc-1xh5805-7"
|
66
|
-
})(["margin:6px 8px;display:flex;"]);
|
67
|
-
export var Wrapper = styled.div.withConfig({
|
68
|
-
displayName: "BroadcastBarstyles__Wrapper",
|
69
|
-
componentId: "sc-1xh5805-8"
|
70
|
-
})(["margin-top:10px;color:", ";"], function (props) {
|
71
|
-
return props.color === 'yellow' ? props.theme.palette['grey-800'] : props.theme.palette.white;
|
72
|
-
});
|
73
|
-
export var Container = styled.div.withConfig({
|
74
|
-
displayName: "BroadcastBarstyles__Container",
|
75
|
-
componentId: "sc-1xh5805-9"
|
76
|
-
})(["width:100%;background-color:", ";"], function (props) {
|
77
|
-
return getColorBackground(props);
|
78
|
-
});
|
79
|
-
export var WrapperSectionMessage = styled.div.withConfig({
|
80
|
-
displayName: "BroadcastBarstyles__WrapperSectionMessage",
|
81
|
-
componentId: "sc-1xh5805-10"
|
82
|
-
})(["font-size:13px;display:flex;color:", ";justify-content:space-between;"], function (props) {
|
83
|
-
return props.color === 'yellow' ? props.theme.palette['grey-800'] : props.theme.palette.white;
|
84
|
-
});
|
85
|
-
export var AlertDescription = styled.span.withConfig({
|
86
|
-
displayName: "BroadcastBarstyles__AlertDescription",
|
87
|
-
componentId: "sc-1xh5805-11"
|
88
|
-
})(["display:flex;max-width:800px;white-space:normal;font-size:13px;line-height:1.39;font-weight:500;margin-top:1px;color:", ";"], function (props) {
|
89
|
-
return props.color === 'yellow' ? props.theme.palette['grey-800'] : props.theme.palette.white;
|
90
|
-
});
|
91
|
-
export var EmphasisWrapper = styled.span.withConfig({
|
92
|
-
displayName: "BroadcastBarstyles__EmphasisWrapper",
|
93
|
-
componentId: "sc-1xh5805-12"
|
94
|
-
})(["font-size:13px;max-width:800px;line-height:1.39;font-weight:500;margin-top:1px;color:", ";"], function (props) {
|
95
|
-
return props.color === 'yellow' ? props.theme.palette['grey-800'] : props.theme.palette.white;
|
96
|
-
});
|
97
|
-
export var WrapperText = styled.span.withConfig({
|
98
|
-
displayName: "BroadcastBarstyles__WrapperText",
|
99
|
-
componentId: "sc-1xh5805-13"
|
100
|
-
})(["font-weight:", ";margin-right:3px;max-width:800px;"], function (props) {
|
101
|
-
return props.emphasis ? '400' : '500';
|
102
|
-
});
|
103
|
-
export var LinkWrapper = styled.span.withConfig({
|
104
|
-
displayName: "BroadcastBarstyles__LinkWrapper",
|
105
|
-
componentId: "sc-1xh5805-14"
|
106
|
-
})(["font-size:13px;line-height:1.5;max-width:800px;font-weight:500;margin-top:1px;color:", ";"], function (props) {
|
107
|
-
return props.color === 'yellow' ? props.theme.palette['grey-800'] : props.theme.palette.white;
|
108
|
-
});
|
109
|
-
export var Link = styled.span.withConfig({
|
110
|
-
displayName: "BroadcastBarstyles__Link",
|
111
|
-
componentId: "sc-1xh5805-15"
|
112
|
-
})(["text-decoration:underline;cursor:pointer;max-width:800px;"]);
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { type AlertProps } from 'antd/lib/alert';
|
2
|
-
import { type ReactNode } from 'react';
|
3
|
-
export type BroadcastBarTypes = 'success' | 'warning' | 'negative';
|
4
|
-
export type ColorType = 'red' | 'green' | 'yellow';
|
5
|
-
export interface Props extends Omit<AlertProps, 'type' | 'message'> {
|
6
|
-
type: BroadcastBarTypes;
|
7
|
-
color?: ColorType;
|
8
|
-
button?: boolean | ReactNode;
|
9
|
-
withEmphasis?: ReactNode;
|
10
|
-
withLink?: ReactNode;
|
11
|
-
withClose?: ReactNode;
|
12
|
-
onCloseClick?: () => void;
|
13
|
-
textButton?: string;
|
14
|
-
text?: ReactNode;
|
15
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { type IconAlertType } from './IconAlert.types';
|
2
|
-
export declare const Message: import("styled-components").StyledComponent<"span", any, {}, never>;
|
3
|
-
export declare const IconAlertWrapper: import("styled-components").StyledComponent<"span", any, {
|
4
|
-
type: IconAlertType;
|
5
|
-
hoverButton?: boolean;
|
6
|
-
disabled?: boolean;
|
7
|
-
}, never>;
|
8
|
-
export declare const EmphasisWrapper: import("styled-components").StyledComponent<"span", any, {}, never>;
|
9
|
-
export declare const LinkWrapper: import("styled-components").StyledComponent<"span", any, {}, never>;
|
@@ -1,47 +0,0 @@
|
|
1
|
-
import styled, { css } from 'styled-components';
|
2
|
-
var COLORS = {
|
3
|
-
success: 'green-600',
|
4
|
-
warning: 'yellow-600',
|
5
|
-
alert: 'red-600',
|
6
|
-
info: 'grey-600'
|
7
|
-
};
|
8
|
-
var COLORS_HOVER = {
|
9
|
-
success: 'green-700',
|
10
|
-
warning: 'yellow-700',
|
11
|
-
alert: 'red-700',
|
12
|
-
info: 'grey-700'
|
13
|
-
};
|
14
|
-
export var Message = styled.span.withConfig({
|
15
|
-
displayName: "IconAlertstyles__Message",
|
16
|
-
componentId: "sc-1ty06sp-0"
|
17
|
-
})(["display:flex;font-size:13px;line-height:18px;font-weight:400;color:inherit;margin-left:4px;"]);
|
18
|
-
export var IconAlertWrapper = styled.span.withConfig({
|
19
|
-
displayName: "IconAlertstyles__IconAlertWrapper",
|
20
|
-
componentId: "sc-1ty06sp-1"
|
21
|
-
})(["display:flex;align-items:center;justify-content:flex-start;flex-direction:row;&:hover{cursor:", ";svg{color:", ";fill:", ";}}&:active{svg{color:", ";fill:", ";}}svg{color:", ";fill:", ";}", ";", "{color:", ";}"], function (props) {
|
22
|
-
return props.hoverButton ? 'pointer' : 'auto';
|
23
|
-
}, function (props) {
|
24
|
-
return props.hoverButton ? props.theme.palette[COLORS_HOVER[props.type]] : props.theme.palette[COLORS[props.type]];
|
25
|
-
}, function (props) {
|
26
|
-
return props.hoverButton ? props.theme.palette[COLORS_HOVER[props.type]] : props.theme.palette[COLORS[props.type]];
|
27
|
-
}, function (props) {
|
28
|
-
return props.theme.palette[COLORS[props.type]];
|
29
|
-
}, function (props) {
|
30
|
-
return props.theme.palette[COLORS[props.type]];
|
31
|
-
}, function (props) {
|
32
|
-
return props.theme.palette[COLORS[props.type]];
|
33
|
-
}, function (props) {
|
34
|
-
return props.theme.palette[COLORS[props.type]];
|
35
|
-
}, function (props) {
|
36
|
-
return !!props.disabled && css(["pointer-events:none;opacity:0.4;"]);
|
37
|
-
}, Message, function (props) {
|
38
|
-
return props.theme.palette['grey-600'];
|
39
|
-
});
|
40
|
-
export var EmphasisWrapper = styled.span.withConfig({
|
41
|
-
displayName: "IconAlertstyles__EmphasisWrapper",
|
42
|
-
componentId: "sc-1ty06sp-2"
|
43
|
-
})(["display:flex;padding-bottom:1px;font-size:13px;line-height:1.39;padding-left:3px;font-weight:500;color:inherit;"]);
|
44
|
-
export var LinkWrapper = styled.span.withConfig({
|
45
|
-
displayName: "IconAlertstyles__LinkWrapper",
|
46
|
-
componentId: "sc-1ty06sp-3"
|
47
|
-
})(["display:flex;font-size:13px;line-height:1.39;font-weight:400;margin-left:3px;color:inherit;text-decoration:underline;cursor:pointer;"]);
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import type React from 'react';
|
2
|
-
export type IconAlertType = 'success' | 'alert' | 'warning' | 'info';
|
3
|
-
export type IconAlertProps = {
|
4
|
-
type: IconAlertType;
|
5
|
-
message?: React.ReactNode;
|
6
|
-
withEmphasis?: React.ReactNode;
|
7
|
-
withLink?: React.ReactNode;
|
8
|
-
iconAlert?: boolean;
|
9
|
-
hoverButton?: boolean;
|
10
|
-
disabled?: boolean;
|
11
|
-
customIcon?: React.ReactNode;
|
12
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|