@semcore/notice 4.1.3 → 4.1.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.
- package/CHANGELOG.md +6 -0
- package/README.md +2 -2
- package/lib/cjs/Notice.js +14 -14
- package/lib/es6/Notice.js +14 -14
- package/package.json +1 -1
- package/src/Notice.jsx +0 -89
- package/src/NoticeSmart.jsx +0 -29
- package/src/index.d.ts +0 -63
- package/src/index.js +0 -4
- package/src/style/notice.shadow.css +0 -110
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [4.1.4] - 2022-07-21
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version patch update due to children dependencies update (`@semcore/icon` [2.28.0 ~> 2.29.0]).
|
|
10
|
+
|
|
5
11
|
## [4.1.3] - 2022-07-07
|
|
6
12
|
|
|
7
13
|
### Changed
|
package/README.md
CHANGED
|
@@ -42,12 +42,12 @@ of the components that is discussed below. There should only be one version of t
|
|
|
42
42
|
|
|
43
43
|
You can use the package the same way but without `/ui/` in the import path.
|
|
44
44
|
|
|
45
|
-
</details>
|
|
46
|
-
|
|
47
45
|
```jsx
|
|
48
46
|
import Notice, { NoticeSmart } from '@semcore/notice';
|
|
49
47
|
```
|
|
50
48
|
|
|
49
|
+
</details>
|
|
50
|
+
|
|
51
51
|
## 👤 Author
|
|
52
52
|
|
|
53
53
|
[UI-kit team](https://github.com/semrush/intergalactic/blob/master/MAINTAINERS) and [others ❤️](https://github.com/semrush/intergalactic/graphs/contributors)
|
package/lib/cjs/Notice.js
CHANGED
|
@@ -54,23 +54,23 @@ var style = (
|
|
|
54
54
|
/*__reshadow_css_start__*/
|
|
55
55
|
_core.sstyled.insert(
|
|
56
56
|
/*__inner_css_start__*/
|
|
57
|
-
".
|
|
57
|
+
".___SNotice_2qcs9_gg_{display:flex;padding:16px;font-size:14px;line-height:1.42;box-sizing:border-box;border-style:solid;border-width:1px;border-radius:6px}.___SNotice_2qcs9_gg_._theme_info_2qcs9_gg_{background-color:#e9f7ff;border-color:#8ecdff}.___SNotice_2qcs9_gg_._theme_info_2qcs9_gg_ .___SCloseIcon_2qcs9_gg_{color:#008ff8}.___SNotice_2qcs9_gg_._theme_info_2qcs9_gg_ .___SCloseIcon_2qcs9_gg_:hover{color:#006dca}.___SNotice_2qcs9_gg_._theme_danger_2qcs9_gg_{background-color:#fff0f7;border-color:#ffaeb5}.___SNotice_2qcs9_gg_._theme_danger_2qcs9_gg_ .___SCloseIcon_2qcs9_gg_{color:#ff4953}.___SNotice_2qcs9_gg_._theme_danger_2qcs9_gg_ .___SCloseIcon_2qcs9_gg_:hover{color:#d1002f}.___SNotice_2qcs9_gg_._theme_warning_2qcs9_gg_{background-color:#fff3d9;border-color:#ffb26e}.___SNotice_2qcs9_gg_._theme_warning_2qcs9_gg_ .___SCloseIcon_2qcs9_gg_{color:#ff642d}.___SNotice_2qcs9_gg_._theme_warning_2qcs9_gg_ .___SCloseIcon_2qcs9_gg_:hover{color:#c33909}.___SNotice_2qcs9_gg_._theme_success_2qcs9_gg_{background-color:#dbfee8;border-color:#59ddaa}.___SNotice_2qcs9_gg_._theme_success_2qcs9_gg_ .___SCloseIcon_2qcs9_gg_{color:#009f81}.___SNotice_2qcs9_gg_._theme_success_2qcs9_gg_ .___SCloseIcon_2qcs9_gg_:hover{color:#007c65}.___SContent_2qcs9_gg_{flex:1 1 auto;width:100%}.___SActions_2qcs9_gg_{flex-shrink:0;margin-top:12px}.___SLabel_2qcs9_gg_{margin-top:2px;margin-right:8px;display:inline-flex}.___SLabel_2qcs9_gg_._theme_info_2qcs9_gg_{color:#8a8e9b}.___SLabel_2qcs9_gg_._theme_danger_2qcs9_gg_{color:#ff4953}.___SLabel_2qcs9_gg_._theme_warning_2qcs9_gg_{color:#ff642d}.___SLabel_2qcs9_gg_._theme_success_2qcs9_gg_{color:#009f81}.___SLabel_2qcs9_gg_._theme_custom_2qcs9_gg_{color:var(--color_2qcs9)}.___SCloseIcon_2qcs9_gg_{flex-shrink:0;margin-left:16px}.___SNotice_2qcs9_gg_._theme_custom_2qcs9_gg_{background-color:var(--backgroundColor_2qcs9);border-color:var(--backgroundColor_2qcs9)}"
|
|
58
58
|
/*__inner_css_end__*/
|
|
59
|
-
, "
|
|
59
|
+
, "2qcs9_gg_")
|
|
60
60
|
/*__reshadow_css_end__*/
|
|
61
61
|
, {
|
|
62
|
-
"__SNotice": "
|
|
63
|
-
"_theme_info": "
|
|
64
|
-
"__SCloseIcon": "
|
|
65
|
-
"_theme_danger": "
|
|
66
|
-
"_theme_warning": "
|
|
67
|
-
"_theme_success": "
|
|
68
|
-
"__SContent": "
|
|
69
|
-
"__SActions": "
|
|
70
|
-
"__SLabel": "
|
|
71
|
-
"_theme_custom": "
|
|
72
|
-
"--color": "--
|
|
73
|
-
"--backgroundColor": "--
|
|
62
|
+
"__SNotice": "___SNotice_2qcs9_gg_",
|
|
63
|
+
"_theme_info": "_theme_info_2qcs9_gg_",
|
|
64
|
+
"__SCloseIcon": "___SCloseIcon_2qcs9_gg_",
|
|
65
|
+
"_theme_danger": "_theme_danger_2qcs9_gg_",
|
|
66
|
+
"_theme_warning": "_theme_warning_2qcs9_gg_",
|
|
67
|
+
"_theme_success": "_theme_success_2qcs9_gg_",
|
|
68
|
+
"__SContent": "___SContent_2qcs9_gg_",
|
|
69
|
+
"__SActions": "___SActions_2qcs9_gg_",
|
|
70
|
+
"__SLabel": "___SLabel_2qcs9_gg_",
|
|
71
|
+
"_theme_custom": "_theme_custom_2qcs9_gg_",
|
|
72
|
+
"--color": "--color_2qcs9",
|
|
73
|
+
"--backgroundColor": "--backgroundColor_2qcs9"
|
|
74
74
|
});
|
|
75
75
|
|
|
76
76
|
function isCustomTheme(theme) {
|
package/lib/es6/Notice.js
CHANGED
|
@@ -33,23 +33,23 @@ var style = (
|
|
|
33
33
|
/*__reshadow_css_start__*/
|
|
34
34
|
_sstyled.insert(
|
|
35
35
|
/*__inner_css_start__*/
|
|
36
|
-
".
|
|
36
|
+
".___SNotice_2qcs9_gg_{display:flex;padding:16px;font-size:14px;line-height:1.42;box-sizing:border-box;border-style:solid;border-width:1px;border-radius:6px}.___SNotice_2qcs9_gg_._theme_info_2qcs9_gg_{background-color:#e9f7ff;border-color:#8ecdff}.___SNotice_2qcs9_gg_._theme_info_2qcs9_gg_ .___SCloseIcon_2qcs9_gg_{color:#008ff8}.___SNotice_2qcs9_gg_._theme_info_2qcs9_gg_ .___SCloseIcon_2qcs9_gg_:hover{color:#006dca}.___SNotice_2qcs9_gg_._theme_danger_2qcs9_gg_{background-color:#fff0f7;border-color:#ffaeb5}.___SNotice_2qcs9_gg_._theme_danger_2qcs9_gg_ .___SCloseIcon_2qcs9_gg_{color:#ff4953}.___SNotice_2qcs9_gg_._theme_danger_2qcs9_gg_ .___SCloseIcon_2qcs9_gg_:hover{color:#d1002f}.___SNotice_2qcs9_gg_._theme_warning_2qcs9_gg_{background-color:#fff3d9;border-color:#ffb26e}.___SNotice_2qcs9_gg_._theme_warning_2qcs9_gg_ .___SCloseIcon_2qcs9_gg_{color:#ff642d}.___SNotice_2qcs9_gg_._theme_warning_2qcs9_gg_ .___SCloseIcon_2qcs9_gg_:hover{color:#c33909}.___SNotice_2qcs9_gg_._theme_success_2qcs9_gg_{background-color:#dbfee8;border-color:#59ddaa}.___SNotice_2qcs9_gg_._theme_success_2qcs9_gg_ .___SCloseIcon_2qcs9_gg_{color:#009f81}.___SNotice_2qcs9_gg_._theme_success_2qcs9_gg_ .___SCloseIcon_2qcs9_gg_:hover{color:#007c65}.___SContent_2qcs9_gg_{flex:1 1 auto;width:100%}.___SActions_2qcs9_gg_{flex-shrink:0;margin-top:12px}.___SLabel_2qcs9_gg_{margin-top:2px;margin-right:8px;display:inline-flex}.___SLabel_2qcs9_gg_._theme_info_2qcs9_gg_{color:#8a8e9b}.___SLabel_2qcs9_gg_._theme_danger_2qcs9_gg_{color:#ff4953}.___SLabel_2qcs9_gg_._theme_warning_2qcs9_gg_{color:#ff642d}.___SLabel_2qcs9_gg_._theme_success_2qcs9_gg_{color:#009f81}.___SLabel_2qcs9_gg_._theme_custom_2qcs9_gg_{color:var(--color_2qcs9)}.___SCloseIcon_2qcs9_gg_{flex-shrink:0;margin-left:16px}.___SNotice_2qcs9_gg_._theme_custom_2qcs9_gg_{background-color:var(--backgroundColor_2qcs9);border-color:var(--backgroundColor_2qcs9)}"
|
|
37
37
|
/*__inner_css_end__*/
|
|
38
|
-
, "
|
|
38
|
+
, "2qcs9_gg_")
|
|
39
39
|
/*__reshadow_css_end__*/
|
|
40
40
|
, {
|
|
41
|
-
"__SNotice": "
|
|
42
|
-
"_theme_info": "
|
|
43
|
-
"__SCloseIcon": "
|
|
44
|
-
"_theme_danger": "
|
|
45
|
-
"_theme_warning": "
|
|
46
|
-
"_theme_success": "
|
|
47
|
-
"__SContent": "
|
|
48
|
-
"__SActions": "
|
|
49
|
-
"__SLabel": "
|
|
50
|
-
"_theme_custom": "
|
|
51
|
-
"--color": "--
|
|
52
|
-
"--backgroundColor": "--
|
|
41
|
+
"__SNotice": "___SNotice_2qcs9_gg_",
|
|
42
|
+
"_theme_info": "_theme_info_2qcs9_gg_",
|
|
43
|
+
"__SCloseIcon": "___SCloseIcon_2qcs9_gg_",
|
|
44
|
+
"_theme_danger": "_theme_danger_2qcs9_gg_",
|
|
45
|
+
"_theme_warning": "_theme_warning_2qcs9_gg_",
|
|
46
|
+
"_theme_success": "_theme_success_2qcs9_gg_",
|
|
47
|
+
"__SContent": "___SContent_2qcs9_gg_",
|
|
48
|
+
"__SActions": "___SActions_2qcs9_gg_",
|
|
49
|
+
"__SLabel": "___SLabel_2qcs9_gg_",
|
|
50
|
+
"_theme_custom": "_theme_custom_2qcs9_gg_",
|
|
51
|
+
"--color": "--color_2qcs9",
|
|
52
|
+
"--backgroundColor": "--backgroundColor_2qcs9"
|
|
53
53
|
});
|
|
54
54
|
|
|
55
55
|
function isCustomTheme(theme) {
|
package/package.json
CHANGED
package/src/Notice.jsx
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import createComponent, { Component, sstyled, Root } from '@semcore/core';
|
|
3
|
-
import { Box } from '@semcore/flex-box';
|
|
4
|
-
import Close from '@semcore/icon/Close/m';
|
|
5
|
-
import resolveColor from '@semcore/utils/lib/color';
|
|
6
|
-
import { FadeInOut } from '@semcore/animation';
|
|
7
|
-
import logger from '@semcore/utils/lib/logger';
|
|
8
|
-
import NoticeGlobal from '@semcore/notice-global';
|
|
9
|
-
|
|
10
|
-
import style from './style/notice.shadow.css';
|
|
11
|
-
|
|
12
|
-
function isCustomTheme(theme) {
|
|
13
|
-
return !['danger', 'warning', 'success', 'info'].includes(theme);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
class RootNotice extends Component {
|
|
17
|
-
static displayName = 'Notice';
|
|
18
|
-
static style = style;
|
|
19
|
-
static defaultProps = {
|
|
20
|
-
theme: 'info',
|
|
21
|
-
duration: 250,
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
getLabelProps() {
|
|
25
|
-
const { theme } = this.asProps;
|
|
26
|
-
return {
|
|
27
|
-
theme,
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
render() {
|
|
32
|
-
const SNotice = Root;
|
|
33
|
-
const { Children, styles, hidden, theme, use } = this.asProps;
|
|
34
|
-
const color = resolveColor(theme);
|
|
35
|
-
const useTheme = isCustomTheme(theme) ? 'custom' : theme;
|
|
36
|
-
|
|
37
|
-
if (use === 'primary') {
|
|
38
|
-
logger.warn(
|
|
39
|
-
true,
|
|
40
|
-
`This deprecated property, you should use component <NoticeGlobal/>`,
|
|
41
|
-
RootNotice.displayName,
|
|
42
|
-
);
|
|
43
|
-
return <NoticeGlobal {...this.asProps} />;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
return sstyled(styles)(
|
|
47
|
-
<SNotice
|
|
48
|
-
render={FadeInOut}
|
|
49
|
-
visible={!hidden}
|
|
50
|
-
use:theme={useTheme}
|
|
51
|
-
backgroundColor={color}
|
|
52
|
-
role="alert"
|
|
53
|
-
>
|
|
54
|
-
<Children />
|
|
55
|
-
</SNotice>,
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
function Label({ styles, theme }) {
|
|
61
|
-
const SLabel = Root;
|
|
62
|
-
const useTheme = isCustomTheme(theme) ? 'custom' : theme;
|
|
63
|
-
const color = resolveColor(theme);
|
|
64
|
-
return sstyled(styles)(<SLabel render={Box} use:theme={useTheme} color={color} />);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
function Actions({ styles }) {
|
|
68
|
-
const SActions = Root;
|
|
69
|
-
return sstyled(styles)(<SActions render={Box} />);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
function Content({ styles }) {
|
|
73
|
-
const SContent = Root;
|
|
74
|
-
return sstyled(styles)(<SContent render={Box} />);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
function CloseIcon({ styles }) {
|
|
78
|
-
const SCloseIcon = Root;
|
|
79
|
-
return sstyled(styles)(
|
|
80
|
-
<SCloseIcon render={Box} tag={Close} interactive aria-label="Close alert" />,
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export default createComponent(RootNotice, {
|
|
85
|
-
Label,
|
|
86
|
-
Actions,
|
|
87
|
-
Content,
|
|
88
|
-
CloseIcon,
|
|
89
|
-
});
|
package/src/NoticeSmart.jsx
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import createComponent, { Component, Root } from '@semcore/core';
|
|
3
|
-
import isNode from '@semcore/utils/lib/isNode';
|
|
4
|
-
import Notice from './Notice';
|
|
5
|
-
|
|
6
|
-
class NoticeSmart extends Component {
|
|
7
|
-
static displayName = 'NoticeSmart';
|
|
8
|
-
|
|
9
|
-
static defaultProps = {
|
|
10
|
-
theme: 'info',
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
render() {
|
|
14
|
-
const SNoticeSmart = Root;
|
|
15
|
-
const { Children, label, actions, closable, onClose } = this.asProps;
|
|
16
|
-
return (
|
|
17
|
-
<SNoticeSmart render={Notice}>
|
|
18
|
-
{isNode(label) && <Notice.Label>{label}</Notice.Label>}
|
|
19
|
-
<Notice.Content>
|
|
20
|
-
<Children />
|
|
21
|
-
{isNode(actions) && <Notice.Actions>{actions}</Notice.Actions>}
|
|
22
|
-
</Notice.Content>
|
|
23
|
-
{closable && <Notice.CloseIcon onClick={onClose} />}
|
|
24
|
-
</SNoticeSmart>
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export default createComponent(NoticeSmart);
|
package/src/index.d.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { CProps, PropGetterFn, ReturnEl } from '@semcore/core';
|
|
2
|
-
import { Box, IBoxProps } from '@semcore/flex-box';
|
|
3
|
-
import { IIconProps } from '@semcore/icon';
|
|
4
|
-
|
|
5
|
-
export type NoticeTheme = 'danger' | 'warning' | 'success' | 'info' | string;
|
|
6
|
-
export type NoticeUse = 'primary' | 'secondary';
|
|
7
|
-
|
|
8
|
-
export interface INoticeProps extends IBoxProps {
|
|
9
|
-
/** Property for managing visibility of Notice */
|
|
10
|
-
hidden?: boolean;
|
|
11
|
-
/** Notice type
|
|
12
|
-
* @deprecated since version ^4.1.0
|
|
13
|
-
*/
|
|
14
|
-
use?: NoticeUse;
|
|
15
|
-
/**
|
|
16
|
-
* Notice theme
|
|
17
|
-
* @default info
|
|
18
|
-
*/
|
|
19
|
-
theme?: NoticeTheme;
|
|
20
|
-
/** Duration of animation, ms
|
|
21
|
-
* @default 250
|
|
22
|
-
*/
|
|
23
|
-
duration?: number;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface INoticeLabelProps extends IBoxProps {
|
|
27
|
-
theme?: NoticeTheme;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface INoticeContext {
|
|
31
|
-
getLabelProps: PropGetterFn;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface INoticeSmartProps extends INoticeProps {
|
|
35
|
-
/**
|
|
36
|
-
* A custom element for additional information
|
|
37
|
-
*/
|
|
38
|
-
label?: React.ReactNode;
|
|
39
|
-
/**
|
|
40
|
-
* Custom action element
|
|
41
|
-
*/
|
|
42
|
-
actions?: React.ReactNode;
|
|
43
|
-
/**
|
|
44
|
-
* Adds a Close icon
|
|
45
|
-
*/
|
|
46
|
-
closable?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Callback on a click on the close button
|
|
49
|
-
*/
|
|
50
|
-
onClose?: (event: React.SyntheticEvent) => void;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
declare const Notice: (<T>(props: CProps<INoticeProps & T, INoticeContext>) => ReturnEl) & {
|
|
54
|
-
Label: <T>(props: INoticeLabelProps & T) => ReturnEl;
|
|
55
|
-
Actions: typeof Box;
|
|
56
|
-
Content: typeof Box;
|
|
57
|
-
CloseIcon: <T>(props: IIconProps & T) => ReturnEl;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
declare const NoticeSmart: <T>(props: CProps<INoticeSmartProps & T>) => ReturnEl;
|
|
61
|
-
|
|
62
|
-
export { NoticeSmart };
|
|
63
|
-
export default Notice;
|
package/src/index.js
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
@import '@semcore/utils/style/var.css';
|
|
2
|
-
|
|
3
|
-
SNotice {
|
|
4
|
-
display: flex;
|
|
5
|
-
padding: 16px;
|
|
6
|
-
font-size: var(--fs-200);
|
|
7
|
-
line-height: var(--lh-200);
|
|
8
|
-
box-sizing: border-box;
|
|
9
|
-
border-style: solid;
|
|
10
|
-
border-width: 1px;
|
|
11
|
-
border-radius: var(--rounded-m);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
SNotice[theme='info'] {
|
|
15
|
-
background-color: var(--blue-50);
|
|
16
|
-
border-color: var(--blue-200);
|
|
17
|
-
|
|
18
|
-
& SCloseIcon {
|
|
19
|
-
color: var(--blue-400);
|
|
20
|
-
|
|
21
|
-
&:hover {
|
|
22
|
-
color: var(--blue-500);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
SNotice[theme='danger'] {
|
|
28
|
-
background-color: var(--red-50);
|
|
29
|
-
border-color: var(--red-200);
|
|
30
|
-
|
|
31
|
-
& SCloseIcon {
|
|
32
|
-
color: var(--red-400);
|
|
33
|
-
|
|
34
|
-
&:hover {
|
|
35
|
-
color: var(--red-500);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
SNotice[theme='warning'] {
|
|
41
|
-
background-color: var(--orange-50);
|
|
42
|
-
border-color: var(--orange-200);
|
|
43
|
-
|
|
44
|
-
& SCloseIcon {
|
|
45
|
-
color: var(--orange-400);
|
|
46
|
-
|
|
47
|
-
&:hover {
|
|
48
|
-
color: var(--orange-500);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
SNotice[theme='success'] {
|
|
54
|
-
background-color: var(--green-50);
|
|
55
|
-
border-color: var(--green-200);
|
|
56
|
-
|
|
57
|
-
& SCloseIcon {
|
|
58
|
-
color: var(--green-400);
|
|
59
|
-
|
|
60
|
-
&:hover {
|
|
61
|
-
color: var(--green-500);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
SContent {
|
|
67
|
-
flex: 1 1 auto;
|
|
68
|
-
width: 100%;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
SActions {
|
|
72
|
-
flex-shrink: 0;
|
|
73
|
-
margin-top: 12px;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
SLabel {
|
|
77
|
-
margin-top: 2px;
|
|
78
|
-
margin-right: 8px;
|
|
79
|
-
display: inline-flex;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
SLabel[theme='info'] {
|
|
83
|
-
color: var(--gray-400);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
SLabel[theme='danger'] {
|
|
87
|
-
color: var(--red-400);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
SLabel[theme='warning'] {
|
|
91
|
-
color: var(--orange-400);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
SLabel[theme='success'] {
|
|
95
|
-
color: var(--green-400);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
SLabel[theme='custom'] {
|
|
99
|
-
color: var(--color);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
SCloseIcon {
|
|
103
|
-
flex-shrink: 0;
|
|
104
|
-
margin-left: 16px;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
SNotice[theme='custom'] {
|
|
108
|
-
background-color: var(--backgroundColor);
|
|
109
|
-
border-color: var(--backgroundColor);
|
|
110
|
-
}
|