@semcore/notice 5.9.3 → 5.9.4-prerelease.0
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 +7 -1
- package/lib/cjs/Notice.js +13 -13
- package/lib/es6/Notice.js +13 -13
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
-
## [5.9.
|
|
5
|
+
## [5.9.4-prerelease.0] - 2023-10-03
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version prepatch update due to children dependencies update (`@semcore/animation` [2.7.3 ~> 2.7.4], `@semcore/utils` [4.8.0 ~> 4.8.1], `@semcore/flex-box` [5.7.3 ~> 5.7.4], `@semcore/icon` [4.10.0 ~> 4.10.1], `@semcore/core` [2.7.3 ~> 2.7.4]).
|
|
10
|
+
|
|
11
|
+
## [5.9.3] - 2023-10-02
|
|
6
12
|
|
|
7
13
|
### Changed
|
|
8
14
|
|
package/lib/cjs/Notice.js
CHANGED
|
@@ -24,19 +24,19 @@ var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynam
|
|
|
24
24
|
var _i18nEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/i18nEnhance"));
|
|
25
25
|
var _useCssVariable = require("@semcore/utils/lib/useCssVariable");
|
|
26
26
|
/*__reshadow-styles__:"./style/notice.shadow.css"*/
|
|
27
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
28
|
-
"__SNotice": "
|
|
29
|
-
"_theme_info": "
|
|
30
|
-
"__SCloseIcon": "
|
|
31
|
-
"_theme_danger": "
|
|
32
|
-
"_theme_warning": "
|
|
33
|
-
"_theme_success": "
|
|
34
|
-
"__SContent": "
|
|
35
|
-
"__SActions": "
|
|
36
|
-
"__SLabel": "
|
|
37
|
-
"_theme_custom": "
|
|
38
|
-
"--color": "--
|
|
39
|
-
"--backgroundColor": "--
|
|
27
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SNotice_1tf6y_gg_{display:flex;padding:var(--intergalactic-spacing-4x, 16px);font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);box-sizing:border-box;border-style:solid;border-width:1px;border-radius:var(--intergalactic-surface-rounded, 6px);color:var(--intergalactic-text-primary, #191b23)}.___SNotice_1tf6y_gg_._theme_info_1tf6y_gg_{background-color:var(--intergalactic-bg-secondary-info, #e9f7ff);border-color:var(--intergalactic-border-info, #8ecdff)}.___SNotice_1tf6y_gg_._theme_info_1tf6y_gg_ .___SCloseIcon_1tf6y_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_1tf6y_gg_._theme_info_1tf6y_gg_ .___SCloseIcon_1tf6y_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #484a54)}}.___SNotice_1tf6y_gg_._theme_danger_1tf6y_gg_{background-color:var(--intergalactic-bg-secondary-critical, #fff0f7);border-color:var(--intergalactic-border-critical, #ffaeb5)}.___SNotice_1tf6y_gg_._theme_danger_1tf6y_gg_ .___SCloseIcon_1tf6y_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}@media (hover:hover){.___SNotice_1tf6y_gg_._theme_danger_1tf6y_gg_ .___SCloseIcon_1tf6y_gg_:hover{color:var(--intergalactic-icon-primary-critical-hover-active, #d1002f)}}.___SNotice_1tf6y_gg_._theme_warning_1tf6y_gg_{background-color:var(--intergalactic-bg-secondary-warning, #fff3d9);border-color:var(--intergalactic-border-warning, #ffb26e)}.___SNotice_1tf6y_gg_._theme_warning_1tf6y_gg_ .___SCloseIcon_1tf6y_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}@media (hover:hover){.___SNotice_1tf6y_gg_._theme_warning_1tf6y_gg_ .___SCloseIcon_1tf6y_gg_:hover{color:var(--intergalactic-icon-primary-warning-hover-active, #c33909)}}.___SNotice_1tf6y_gg_._theme_success_1tf6y_gg_{background-color:var(--intergalactic-bg-secondary-success, #dbfee8);border-color:var(--intergalactic-border-success, #59ddaa)}.___SNotice_1tf6y_gg_._theme_success_1tf6y_gg_ .___SCloseIcon_1tf6y_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}@media (hover:hover){.___SNotice_1tf6y_gg_._theme_success_1tf6y_gg_ .___SCloseIcon_1tf6y_gg_:hover{color:var(--intergalactic-icon-primary-success-hover-active, #007c65)}}.___SContent_1tf6y_gg_{flex:1 1 auto;width:100%}.___SActions_1tf6y_gg_{flex-shrink:0;margin-top:var(--intergalactic-spacing-3x, 12px)}.___SLabel_1tf6y_gg_{margin-top:var(--intergalactic-spacing-05x, 2px);margin-right:var(--intergalactic-spacing-2x, 8px);display:inline-flex}.___SLabel_1tf6y_gg_._theme_info_1tf6y_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SLabel_1tf6y_gg_._theme_danger_1tf6y_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}.___SLabel_1tf6y_gg_._theme_warning_1tf6y_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}.___SLabel_1tf6y_gg_._theme_success_1tf6y_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}.___SLabel_1tf6y_gg_._theme_custom_1tf6y_gg_{color:var(--color_1tf6y)}.___SCloseIcon_1tf6y_gg_{flex-shrink:0;margin-left:var(--intergalactic-spacing-4x, 16px)}.___SNotice_1tf6y_gg_._theme_custom_1tf6y_gg_{background-color:var(--backgroundColor_1tf6y);border-color:var(--backgroundColor_1tf6y)}" /*__inner_css_end__*/, "1tf6y_gg_") /*__reshadow_css_end__*/, {
|
|
28
|
+
"__SNotice": "___SNotice_1tf6y_gg_",
|
|
29
|
+
"_theme_info": "_theme_info_1tf6y_gg_",
|
|
30
|
+
"__SCloseIcon": "___SCloseIcon_1tf6y_gg_",
|
|
31
|
+
"_theme_danger": "_theme_danger_1tf6y_gg_",
|
|
32
|
+
"_theme_warning": "_theme_warning_1tf6y_gg_",
|
|
33
|
+
"_theme_success": "_theme_success_1tf6y_gg_",
|
|
34
|
+
"__SContent": "___SContent_1tf6y_gg_",
|
|
35
|
+
"__SActions": "___SActions_1tf6y_gg_",
|
|
36
|
+
"__SLabel": "___SLabel_1tf6y_gg_",
|
|
37
|
+
"_theme_custom": "_theme_custom_1tf6y_gg_",
|
|
38
|
+
"--color": "--color_1tf6y",
|
|
39
|
+
"--backgroundColor": "--backgroundColor_1tf6y"
|
|
40
40
|
});
|
|
41
41
|
function isCustomTheme(theme) {
|
|
42
42
|
return !['danger', 'warning', 'success', 'info'].includes(theme);
|
package/lib/es6/Notice.js
CHANGED
|
@@ -22,19 +22,19 @@ import { localizedMessages } from './translations/__intergalactic-dynamic-locale
|
|
|
22
22
|
import i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';
|
|
23
23
|
import { cssVariableEnhance } from '@semcore/utils/lib/useCssVariable';
|
|
24
24
|
/*__reshadow-styles__:"./style/notice.shadow.css"*/
|
|
25
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
26
|
-
"__SNotice": "
|
|
27
|
-
"_theme_info": "
|
|
28
|
-
"__SCloseIcon": "
|
|
29
|
-
"_theme_danger": "
|
|
30
|
-
"_theme_warning": "
|
|
31
|
-
"_theme_success": "
|
|
32
|
-
"__SContent": "
|
|
33
|
-
"__SActions": "
|
|
34
|
-
"__SLabel": "
|
|
35
|
-
"_theme_custom": "
|
|
36
|
-
"--color": "--
|
|
37
|
-
"--backgroundColor": "--
|
|
25
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SNotice_1tf6y_gg_{display:flex;padding:var(--intergalactic-spacing-4x, 16px);font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);box-sizing:border-box;border-style:solid;border-width:1px;border-radius:var(--intergalactic-surface-rounded, 6px);color:var(--intergalactic-text-primary, #191b23)}.___SNotice_1tf6y_gg_._theme_info_1tf6y_gg_{background-color:var(--intergalactic-bg-secondary-info, #e9f7ff);border-color:var(--intergalactic-border-info, #8ecdff)}.___SNotice_1tf6y_gg_._theme_info_1tf6y_gg_ .___SCloseIcon_1tf6y_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_1tf6y_gg_._theme_info_1tf6y_gg_ .___SCloseIcon_1tf6y_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #484a54)}}.___SNotice_1tf6y_gg_._theme_danger_1tf6y_gg_{background-color:var(--intergalactic-bg-secondary-critical, #fff0f7);border-color:var(--intergalactic-border-critical, #ffaeb5)}.___SNotice_1tf6y_gg_._theme_danger_1tf6y_gg_ .___SCloseIcon_1tf6y_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}@media (hover:hover){.___SNotice_1tf6y_gg_._theme_danger_1tf6y_gg_ .___SCloseIcon_1tf6y_gg_:hover{color:var(--intergalactic-icon-primary-critical-hover-active, #d1002f)}}.___SNotice_1tf6y_gg_._theme_warning_1tf6y_gg_{background-color:var(--intergalactic-bg-secondary-warning, #fff3d9);border-color:var(--intergalactic-border-warning, #ffb26e)}.___SNotice_1tf6y_gg_._theme_warning_1tf6y_gg_ .___SCloseIcon_1tf6y_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}@media (hover:hover){.___SNotice_1tf6y_gg_._theme_warning_1tf6y_gg_ .___SCloseIcon_1tf6y_gg_:hover{color:var(--intergalactic-icon-primary-warning-hover-active, #c33909)}}.___SNotice_1tf6y_gg_._theme_success_1tf6y_gg_{background-color:var(--intergalactic-bg-secondary-success, #dbfee8);border-color:var(--intergalactic-border-success, #59ddaa)}.___SNotice_1tf6y_gg_._theme_success_1tf6y_gg_ .___SCloseIcon_1tf6y_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}@media (hover:hover){.___SNotice_1tf6y_gg_._theme_success_1tf6y_gg_ .___SCloseIcon_1tf6y_gg_:hover{color:var(--intergalactic-icon-primary-success-hover-active, #007c65)}}.___SContent_1tf6y_gg_{flex:1 1 auto;width:100%}.___SActions_1tf6y_gg_{flex-shrink:0;margin-top:var(--intergalactic-spacing-3x, 12px)}.___SLabel_1tf6y_gg_{margin-top:var(--intergalactic-spacing-05x, 2px);margin-right:var(--intergalactic-spacing-2x, 8px);display:inline-flex}.___SLabel_1tf6y_gg_._theme_info_1tf6y_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SLabel_1tf6y_gg_._theme_danger_1tf6y_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}.___SLabel_1tf6y_gg_._theme_warning_1tf6y_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}.___SLabel_1tf6y_gg_._theme_success_1tf6y_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}.___SLabel_1tf6y_gg_._theme_custom_1tf6y_gg_{color:var(--color_1tf6y)}.___SCloseIcon_1tf6y_gg_{flex-shrink:0;margin-left:var(--intergalactic-spacing-4x, 16px)}.___SNotice_1tf6y_gg_._theme_custom_1tf6y_gg_{background-color:var(--backgroundColor_1tf6y);border-color:var(--backgroundColor_1tf6y)}" /*__inner_css_end__*/, "1tf6y_gg_") /*__reshadow_css_end__*/, {
|
|
26
|
+
"__SNotice": "___SNotice_1tf6y_gg_",
|
|
27
|
+
"_theme_info": "_theme_info_1tf6y_gg_",
|
|
28
|
+
"__SCloseIcon": "___SCloseIcon_1tf6y_gg_",
|
|
29
|
+
"_theme_danger": "_theme_danger_1tf6y_gg_",
|
|
30
|
+
"_theme_warning": "_theme_warning_1tf6y_gg_",
|
|
31
|
+
"_theme_success": "_theme_success_1tf6y_gg_",
|
|
32
|
+
"__SContent": "___SContent_1tf6y_gg_",
|
|
33
|
+
"__SActions": "___SActions_1tf6y_gg_",
|
|
34
|
+
"__SLabel": "___SLabel_1tf6y_gg_",
|
|
35
|
+
"_theme_custom": "_theme_custom_1tf6y_gg_",
|
|
36
|
+
"--color": "--color_1tf6y",
|
|
37
|
+
"--backgroundColor": "--backgroundColor_1tf6y"
|
|
38
38
|
});
|
|
39
39
|
function isCustomTheme(theme) {
|
|
40
40
|
return !['danger', 'warning', 'success', 'info'].includes(theme);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/notice",
|
|
3
3
|
"description": "Semrush Notice Component",
|
|
4
|
-
"version": "5.9.
|
|
4
|
+
"version": "5.9.4-prerelease.0",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
"author": "UI-kit team <ui-kit-team@semrush.com>",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@semcore/animation": "2.7.
|
|
13
|
-
"@semcore/utils": "4.8.0",
|
|
14
|
-
"@semcore/flex-box": "5.7.
|
|
15
|
-
"@semcore/icon": "4.10.0",
|
|
16
|
-
"@semcore/notice-global": "2.9.
|
|
12
|
+
"@semcore/animation": "2.7.4-prerelease.0",
|
|
13
|
+
"@semcore/utils": "4.8.1-prerelease.0",
|
|
14
|
+
"@semcore/flex-box": "5.7.4-prerelease.0",
|
|
15
|
+
"@semcore/icon": "4.10.1-prerelease.0",
|
|
16
|
+
"@semcore/notice-global": "2.9.4-prerelease.0"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@semcore/core": "^2.7.
|
|
19
|
+
"@semcore/core": "^2.7.4-prerelease.0",
|
|
20
20
|
"react": "16.8 - 18",
|
|
21
21
|
"react-dom": "16.8 - 18"
|
|
22
22
|
},
|