@semcore/notice 5.39.1 → 5.39.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/CHANGELOG.md +6 -0
- package/lib/cjs/Notice.js +14 -14
- package/lib/cjs/index.d.js.map +1 -1
- package/lib/es6/Notice.js +14 -14
- package/lib/es6/index.d.js.map +1 -1
- package/lib/types/index.d.ts +1 -1
- package/package.json +7 -7
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
|
+
## [5.39.2] - 2024-09-06
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version patch update due to children dependencies update (`@semcore/animation` [2.31.2 ~> 2.32.0], `@semcore/utils` [4.32.2 ~> 4.35.0], `@semcore/button` [5.35.2 ~> 5.36.0], `@semcore/flex-box` [5.31.2 ~> 5.32.0], `@semcore/icon` [4.44.0 ~> 4.44.1], `@semcore/core` [2.29.2 ~> 2.30.0]).
|
|
10
|
+
|
|
5
11
|
## [5.39.1] - 2024-08-23
|
|
6
12
|
|
|
7
13
|
### Changed
|
package/lib/cjs/Notice.js
CHANGED
|
@@ -26,20 +26,20 @@ var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynam
|
|
|
26
26
|
var _i18nEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/i18nEnhance"));
|
|
27
27
|
var _useCssVariable = require("@semcore/utils/lib/useCssVariable");
|
|
28
28
|
/*__reshadow-styles__:"./style/notice.shadow.css"*/
|
|
29
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".
|
|
30
|
-
"__SNotice": "
|
|
31
|
-
"__SContent": "
|
|
32
|
-
"__SActions": "
|
|
33
|
-
"__SLabel": "
|
|
34
|
-
"_theme_info": "
|
|
35
|
-
"_theme_danger": "
|
|
36
|
-
"_theme_warning": "
|
|
37
|
-
"_theme_success": "
|
|
38
|
-
"_theme_muted": "
|
|
39
|
-
"_theme_custom": "
|
|
40
|
-
"--color": "--
|
|
41
|
-
"__SCloseIcon": "
|
|
42
|
-
"--backgroundColor": "--
|
|
29
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SNotice_wkccx_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_wkccx_gg_._theme_info_wkccx_gg_{background-color:var(--intergalactic-bg-secondary-info, #e9f7ff);border-color:var(--intergalactic-border-info, #8ecdff)}.___SNotice_wkccx_gg_._theme_info_wkccx_gg_ .___SCloseIcon_wkccx_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_wkccx_gg_._theme_info_wkccx_gg_ .___SCloseIcon_wkccx_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SNotice_wkccx_gg_._theme_danger_wkccx_gg_{background-color:var(--intergalactic-bg-secondary-critical, #fff0f7);border-color:var(--intergalactic-border-critical, #ffaeb5)}.___SNotice_wkccx_gg_._theme_danger_wkccx_gg_ .___SCloseIcon_wkccx_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}@media (hover:hover){.___SNotice_wkccx_gg_._theme_danger_wkccx_gg_ .___SCloseIcon_wkccx_gg_:hover{color:var(--intergalactic-icon-primary-critical-hover-active, #CC3A42)}}.___SNotice_wkccx_gg_._theme_warning_wkccx_gg_{background-color:var(--intergalactic-bg-secondary-warning, #fff3d9);border-color:var(--intergalactic-border-warning, #ffb26e)}.___SNotice_wkccx_gg_._theme_warning_wkccx_gg_ .___SCloseIcon_wkccx_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}@media (hover:hover){.___SNotice_wkccx_gg_._theme_warning_wkccx_gg_ .___SCloseIcon_wkccx_gg_:hover{color:var(--intergalactic-icon-primary-warning-hover-active, #CC5024)}}.___SNotice_wkccx_gg_._theme_success_wkccx_gg_{background-color:var(--intergalactic-bg-secondary-success, #dbfee8);border-color:var(--intergalactic-border-success, #59ddaa)}.___SNotice_wkccx_gg_._theme_success_wkccx_gg_ .___SCloseIcon_wkccx_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}@media (hover:hover){.___SNotice_wkccx_gg_._theme_success_wkccx_gg_ .___SCloseIcon_wkccx_gg_:hover{color:var(--intergalactic-icon-primary-success-hover-active, #037E68)}}.___SNotice_wkccx_gg_._theme_muted_wkccx_gg_{background-color:var(--intergalactic-bg-secondary-neutral, #f4f5f9);border-color:var(--intergalactic-border-secondary, #e0e1e9)}.___SLabel_wkccx_gg_._theme_info_wkccx_gg_,.___SNotice_wkccx_gg_._theme_muted_wkccx_gg_ .___SCloseIcon_wkccx_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_wkccx_gg_._theme_muted_wkccx_gg_ .___SCloseIcon_wkccx_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SContent_wkccx_gg_{flex:1 1 auto;width:100%}.___SActions_wkccx_gg_{flex-shrink:0;margin-top:var(--intergalactic-spacing-3x, 12px)}.___SLabel_wkccx_gg_{min-height:var(--intergalactic-form-control-m, 28px);height:-moz-fit-content;height:fit-content;margin-right:var(--intergalactic-spacing-2x, 8px);display:inline-flex;align-items:center}.___SLabel_wkccx_gg_._theme_danger_wkccx_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}.___SLabel_wkccx_gg_._theme_warning_wkccx_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}.___SLabel_wkccx_gg_._theme_success_wkccx_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}.___SLabel_wkccx_gg_._theme_muted_wkccx_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SLabel_wkccx_gg_._theme_custom_wkccx_gg_{color:var(--color_wkccx)}.___SCloseIcon_wkccx_gg_{flex-shrink:0;margin-left:var(--intergalactic-spacing-4x, 16px)}.___SNotice_wkccx_gg_._theme_custom_wkccx_gg_{background-color:var(--backgroundColor_wkccx);border-color:var(--backgroundColor_wkccx)}" /*__inner_css_end__*/, "wkccx_gg_") /*__reshadow_css_end__*/, {
|
|
30
|
+
"__SNotice": "___SNotice_wkccx_gg_",
|
|
31
|
+
"__SContent": "___SContent_wkccx_gg_",
|
|
32
|
+
"__SActions": "___SActions_wkccx_gg_",
|
|
33
|
+
"__SLabel": "___SLabel_wkccx_gg_",
|
|
34
|
+
"_theme_info": "_theme_info_wkccx_gg_",
|
|
35
|
+
"_theme_danger": "_theme_danger_wkccx_gg_",
|
|
36
|
+
"_theme_warning": "_theme_warning_wkccx_gg_",
|
|
37
|
+
"_theme_success": "_theme_success_wkccx_gg_",
|
|
38
|
+
"_theme_muted": "_theme_muted_wkccx_gg_",
|
|
39
|
+
"_theme_custom": "_theme_custom_wkccx_gg_",
|
|
40
|
+
"--color": "--color_wkccx",
|
|
41
|
+
"__SCloseIcon": "___SCloseIcon_wkccx_gg_",
|
|
42
|
+
"--backgroundColor": "--backgroundColor_wkccx"
|
|
43
43
|
});
|
|
44
44
|
function isCustomTheme(theme) {
|
|
45
45
|
return !['danger', 'warning', 'success', 'info', 'muted'].includes(theme);
|
package/lib/cjs/index.d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { Box, BoxProps } from '@semcore/flex-box';\nimport Button from '@semcore/button';\nimport { IconProps } from '@semcore/icon';\nimport { FadeInOutProps } from '@semcore/animation';\n\nexport type NoticeTheme = 'danger' | 'warning' | 'success' | 'info' | 'muted';\nexport type NoticeUse = 'primary' | 'secondary';\n\n/** @deprecated */\nexport interface INoticeProps extends NoticeProps, UnknownProperties {}\nexport type NoticeProps = BoxProps &\n FadeInOutProps & {\n /** Property for managing visibility of Notice */\n hidden?: boolean;\n /** Notice type\n * @deprecated since version ^4.1.0\n */\n use?: NoticeUse;\n /**\n * Notice theme\n * @default info\n */\n theme?: NoticeTheme;\n /** Duration of animation, ms\n * @default 250\n */\n duration?: number;\n locale?: string;\n };\n\n/** @deprecated */\nexport interface INoticeLabelProps extends NoticeLabelProps, UnknownProperties {}\nexport type NoticeLabelProps = BoxProps & {\n theme?: NoticeTheme;\n};\n\n/** @deprecated */\nexport interface INoticeContext extends NoticeContext, UnknownProperties {}\nexport type NoticeContext = {\n getLabelProps: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface INoticeSmartProps extends NoticeSmartProps, UnknownProperties {}\nexport type NoticeSmartProps = NoticeProps & {\n /**\n * A custom element for additional information\n */\n label?: React.ReactNode;\n /**\n * Custom action element\n */\n actions?: React.ReactNode;\n /**\n * Adds a Close
|
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { Box, BoxProps } from '@semcore/flex-box';\nimport Button from '@semcore/button';\nimport { IconProps } from '@semcore/icon';\nimport { FadeInOutProps } from '@semcore/animation';\n\nexport type NoticeTheme = 'danger' | 'warning' | 'success' | 'info' | 'muted';\nexport type NoticeUse = 'primary' | 'secondary';\n\n/** @deprecated */\nexport interface INoticeProps extends NoticeProps, UnknownProperties {}\nexport type NoticeProps = BoxProps &\n FadeInOutProps & {\n /** Property for managing visibility of Notice */\n hidden?: boolean;\n /** Notice type\n * @deprecated since version ^4.1.0\n */\n use?: NoticeUse;\n /**\n * Notice theme\n * @default info\n */\n theme?: NoticeTheme;\n /** Duration of animation, ms\n * @default 250\n */\n duration?: number;\n locale?: string;\n };\n\n/** @deprecated */\nexport interface INoticeLabelProps extends NoticeLabelProps, UnknownProperties {}\nexport type NoticeLabelProps = BoxProps & {\n theme?: NoticeTheme;\n};\n\n/** @deprecated */\nexport interface INoticeContext extends NoticeContext, UnknownProperties {}\nexport type NoticeContext = {\n getLabelProps: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface INoticeSmartProps extends NoticeSmartProps, UnknownProperties {}\nexport type NoticeSmartProps = NoticeProps & {\n /**\n * A custom element for additional information\n */\n label?: React.ReactNode;\n /**\n * Custom action element\n */\n actions?: React.ReactNode;\n /**\n * Adds a Close button\n */\n closable?: boolean;\n /**\n * Callback on a click on the close button\n */\n onClose?: (event: React.SyntheticEvent) => void;\n};\n\ndeclare const Notice: Intergalactic.Component<'div', NoticeProps, NoticeContext> & {\n Label: Intergalactic.Component<'div', NoticeLabelProps>;\n Actions: typeof Box;\n Content: typeof Box;\n /**\n * @deprecated Use Notice.Close instead of Notice.CloseIcon\n */\n CloseIcon: Intergalactic.Component<'div', IconProps>;\n Close: typeof Button;\n};\n\ndeclare const NoticeSmart: Intergalactic.Component<'div', NoticeSmartProps>;\n\nexport { NoticeSmart };\nexport default Notice;\n"],"mappings":""}
|
package/lib/es6/Notice.js
CHANGED
|
@@ -24,20 +24,20 @@ import { localizedMessages } from './translations/__intergalactic-dynamic-locale
|
|
|
24
24
|
import i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';
|
|
25
25
|
import { cssVariableEnhance } from '@semcore/utils/lib/useCssVariable';
|
|
26
26
|
/*__reshadow-styles__:"./style/notice.shadow.css"*/
|
|
27
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
28
|
-
"__SNotice": "
|
|
29
|
-
"__SContent": "
|
|
30
|
-
"__SActions": "
|
|
31
|
-
"__SLabel": "
|
|
32
|
-
"_theme_info": "
|
|
33
|
-
"_theme_danger": "
|
|
34
|
-
"_theme_warning": "
|
|
35
|
-
"_theme_success": "
|
|
36
|
-
"_theme_muted": "
|
|
37
|
-
"_theme_custom": "
|
|
38
|
-
"--color": "--
|
|
39
|
-
"__SCloseIcon": "
|
|
40
|
-
"--backgroundColor": "--
|
|
27
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SNotice_wkccx_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_wkccx_gg_._theme_info_wkccx_gg_{background-color:var(--intergalactic-bg-secondary-info, #e9f7ff);border-color:var(--intergalactic-border-info, #8ecdff)}.___SNotice_wkccx_gg_._theme_info_wkccx_gg_ .___SCloseIcon_wkccx_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_wkccx_gg_._theme_info_wkccx_gg_ .___SCloseIcon_wkccx_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SNotice_wkccx_gg_._theme_danger_wkccx_gg_{background-color:var(--intergalactic-bg-secondary-critical, #fff0f7);border-color:var(--intergalactic-border-critical, #ffaeb5)}.___SNotice_wkccx_gg_._theme_danger_wkccx_gg_ .___SCloseIcon_wkccx_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}@media (hover:hover){.___SNotice_wkccx_gg_._theme_danger_wkccx_gg_ .___SCloseIcon_wkccx_gg_:hover{color:var(--intergalactic-icon-primary-critical-hover-active, #CC3A42)}}.___SNotice_wkccx_gg_._theme_warning_wkccx_gg_{background-color:var(--intergalactic-bg-secondary-warning, #fff3d9);border-color:var(--intergalactic-border-warning, #ffb26e)}.___SNotice_wkccx_gg_._theme_warning_wkccx_gg_ .___SCloseIcon_wkccx_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}@media (hover:hover){.___SNotice_wkccx_gg_._theme_warning_wkccx_gg_ .___SCloseIcon_wkccx_gg_:hover{color:var(--intergalactic-icon-primary-warning-hover-active, #CC5024)}}.___SNotice_wkccx_gg_._theme_success_wkccx_gg_{background-color:var(--intergalactic-bg-secondary-success, #dbfee8);border-color:var(--intergalactic-border-success, #59ddaa)}.___SNotice_wkccx_gg_._theme_success_wkccx_gg_ .___SCloseIcon_wkccx_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}@media (hover:hover){.___SNotice_wkccx_gg_._theme_success_wkccx_gg_ .___SCloseIcon_wkccx_gg_:hover{color:var(--intergalactic-icon-primary-success-hover-active, #037E68)}}.___SNotice_wkccx_gg_._theme_muted_wkccx_gg_{background-color:var(--intergalactic-bg-secondary-neutral, #f4f5f9);border-color:var(--intergalactic-border-secondary, #e0e1e9)}.___SLabel_wkccx_gg_._theme_info_wkccx_gg_,.___SNotice_wkccx_gg_._theme_muted_wkccx_gg_ .___SCloseIcon_wkccx_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_wkccx_gg_._theme_muted_wkccx_gg_ .___SCloseIcon_wkccx_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SContent_wkccx_gg_{flex:1 1 auto;width:100%}.___SActions_wkccx_gg_{flex-shrink:0;margin-top:var(--intergalactic-spacing-3x, 12px)}.___SLabel_wkccx_gg_{min-height:var(--intergalactic-form-control-m, 28px);height:-moz-fit-content;height:fit-content;margin-right:var(--intergalactic-spacing-2x, 8px);display:inline-flex;align-items:center}.___SLabel_wkccx_gg_._theme_danger_wkccx_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}.___SLabel_wkccx_gg_._theme_warning_wkccx_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}.___SLabel_wkccx_gg_._theme_success_wkccx_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}.___SLabel_wkccx_gg_._theme_muted_wkccx_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SLabel_wkccx_gg_._theme_custom_wkccx_gg_{color:var(--color_wkccx)}.___SCloseIcon_wkccx_gg_{flex-shrink:0;margin-left:var(--intergalactic-spacing-4x, 16px)}.___SNotice_wkccx_gg_._theme_custom_wkccx_gg_{background-color:var(--backgroundColor_wkccx);border-color:var(--backgroundColor_wkccx)}" /*__inner_css_end__*/, "wkccx_gg_") /*__reshadow_css_end__*/, {
|
|
28
|
+
"__SNotice": "___SNotice_wkccx_gg_",
|
|
29
|
+
"__SContent": "___SContent_wkccx_gg_",
|
|
30
|
+
"__SActions": "___SActions_wkccx_gg_",
|
|
31
|
+
"__SLabel": "___SLabel_wkccx_gg_",
|
|
32
|
+
"_theme_info": "_theme_info_wkccx_gg_",
|
|
33
|
+
"_theme_danger": "_theme_danger_wkccx_gg_",
|
|
34
|
+
"_theme_warning": "_theme_warning_wkccx_gg_",
|
|
35
|
+
"_theme_success": "_theme_success_wkccx_gg_",
|
|
36
|
+
"_theme_muted": "_theme_muted_wkccx_gg_",
|
|
37
|
+
"_theme_custom": "_theme_custom_wkccx_gg_",
|
|
38
|
+
"--color": "--color_wkccx",
|
|
39
|
+
"__SCloseIcon": "___SCloseIcon_wkccx_gg_",
|
|
40
|
+
"--backgroundColor": "--backgroundColor_wkccx"
|
|
41
41
|
});
|
|
42
42
|
function isCustomTheme(theme) {
|
|
43
43
|
return !['danger', 'warning', 'success', 'info', 'muted'].includes(theme);
|
package/lib/es6/index.d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { Box, BoxProps } from '@semcore/flex-box';\nimport Button from '@semcore/button';\nimport { IconProps } from '@semcore/icon';\nimport { FadeInOutProps } from '@semcore/animation';\n\nexport type NoticeTheme = 'danger' | 'warning' | 'success' | 'info' | 'muted';\nexport type NoticeUse = 'primary' | 'secondary';\n\n/** @deprecated */\nexport interface INoticeProps extends NoticeProps, UnknownProperties {}\nexport type NoticeProps = BoxProps &\n FadeInOutProps & {\n /** Property for managing visibility of Notice */\n hidden?: boolean;\n /** Notice type\n * @deprecated since version ^4.1.0\n */\n use?: NoticeUse;\n /**\n * Notice theme\n * @default info\n */\n theme?: NoticeTheme;\n /** Duration of animation, ms\n * @default 250\n */\n duration?: number;\n locale?: string;\n };\n\n/** @deprecated */\nexport interface INoticeLabelProps extends NoticeLabelProps, UnknownProperties {}\nexport type NoticeLabelProps = BoxProps & {\n theme?: NoticeTheme;\n};\n\n/** @deprecated */\nexport interface INoticeContext extends NoticeContext, UnknownProperties {}\nexport type NoticeContext = {\n getLabelProps: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface INoticeSmartProps extends NoticeSmartProps, UnknownProperties {}\nexport type NoticeSmartProps = NoticeProps & {\n /**\n * A custom element for additional information\n */\n label?: React.ReactNode;\n /**\n * Custom action element\n */\n actions?: React.ReactNode;\n /**\n * Adds a Close
|
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { Box, BoxProps } from '@semcore/flex-box';\nimport Button from '@semcore/button';\nimport { IconProps } from '@semcore/icon';\nimport { FadeInOutProps } from '@semcore/animation';\n\nexport type NoticeTheme = 'danger' | 'warning' | 'success' | 'info' | 'muted';\nexport type NoticeUse = 'primary' | 'secondary';\n\n/** @deprecated */\nexport interface INoticeProps extends NoticeProps, UnknownProperties {}\nexport type NoticeProps = BoxProps &\n FadeInOutProps & {\n /** Property for managing visibility of Notice */\n hidden?: boolean;\n /** Notice type\n * @deprecated since version ^4.1.0\n */\n use?: NoticeUse;\n /**\n * Notice theme\n * @default info\n */\n theme?: NoticeTheme;\n /** Duration of animation, ms\n * @default 250\n */\n duration?: number;\n locale?: string;\n };\n\n/** @deprecated */\nexport interface INoticeLabelProps extends NoticeLabelProps, UnknownProperties {}\nexport type NoticeLabelProps = BoxProps & {\n theme?: NoticeTheme;\n};\n\n/** @deprecated */\nexport interface INoticeContext extends NoticeContext, UnknownProperties {}\nexport type NoticeContext = {\n getLabelProps: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface INoticeSmartProps extends NoticeSmartProps, UnknownProperties {}\nexport type NoticeSmartProps = NoticeProps & {\n /**\n * A custom element for additional information\n */\n label?: React.ReactNode;\n /**\n * Custom action element\n */\n actions?: React.ReactNode;\n /**\n * Adds a Close button\n */\n closable?: boolean;\n /**\n * Callback on a click on the close button\n */\n onClose?: (event: React.SyntheticEvent) => void;\n};\n\ndeclare const Notice: Intergalactic.Component<'div', NoticeProps, NoticeContext> & {\n Label: Intergalactic.Component<'div', NoticeLabelProps>;\n Actions: typeof Box;\n Content: typeof Box;\n /**\n * @deprecated Use Notice.Close instead of Notice.CloseIcon\n */\n CloseIcon: Intergalactic.Component<'div', IconProps>;\n Close: typeof Button;\n};\n\ndeclare const NoticeSmart: Intergalactic.Component<'div', NoticeSmartProps>;\n\nexport { NoticeSmart };\nexport default Notice;\n"],"mappings":""}
|
package/lib/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/notice",
|
|
3
3
|
"description": "Semrush Notice Component",
|
|
4
|
-
"version": "5.39.
|
|
4
|
+
"version": "5.39.2",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"author": "UI-kit team <ui-kit-team@semrush.com>",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@semcore/animation": "2.
|
|
13
|
-
"@semcore/utils": "4.
|
|
14
|
-
"@semcore/button": "5.
|
|
15
|
-
"@semcore/flex-box": "5.
|
|
16
|
-
"@semcore/icon": "4.44.
|
|
17
|
-
"@semcore/notice-global": "2.49.
|
|
12
|
+
"@semcore/animation": "2.32.0",
|
|
13
|
+
"@semcore/utils": "4.35.0",
|
|
14
|
+
"@semcore/button": "5.36.0",
|
|
15
|
+
"@semcore/flex-box": "5.32.0",
|
|
16
|
+
"@semcore/icon": "4.44.1",
|
|
17
|
+
"@semcore/notice-global": "2.49.1"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@semcore/core": "^2.17.5",
|