@semcore/notice 16.1.6 → 16.1.7-prerelease.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 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
+ ## [16.1.7] - 2025-08-29
6
+
7
+ ### Changed
8
+
9
+ - Type description for `NoticeProps`.
10
+
5
11
  ## [16.1.6] - 2025-08-07
6
12
 
7
13
  ### Changed
package/lib/cjs/Notice.js CHANGED
@@ -28,24 +28,24 @@ var _react = _interopRequireDefault(require("react"));
28
28
  var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynamic-locales");
29
29
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, (0, _isNativeReflectConstruct2["default"])() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
30
30
  /*!__reshadow-styles__:"./style/notice.shadow.css"*/
31
- var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SNotice_1mgvt_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_1mgvt_gg_._theme_info_1mgvt_gg_{background-color:var(--intergalactic-bg-secondary-info, #e9f7ff);border-color:var(--intergalactic-border-info, #8ecdff)}.___SNotice_1mgvt_gg_._theme_info_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_1mgvt_gg_._theme_info_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SNotice_1mgvt_gg_._theme_danger_1mgvt_gg_{background-color:var(--intergalactic-bg-secondary-critical, #fff0f7);border-color:var(--intergalactic-border-critical, #ffaeb5)}.___SNotice_1mgvt_gg_._theme_danger_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}@media (hover:hover){.___SNotice_1mgvt_gg_._theme_danger_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_:hover{color:var(--intergalactic-icon-primary-critical-hover-active, #CC3A42)}}.___SNotice_1mgvt_gg_._theme_warning_1mgvt_gg_{background-color:var(--intergalactic-bg-secondary-warning, #fff3d9);border-color:var(--intergalactic-border-warning, #ffb26e)}.___SNotice_1mgvt_gg_._theme_warning_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}@media (hover:hover){.___SNotice_1mgvt_gg_._theme_warning_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_:hover{color:var(--intergalactic-icon-primary-warning-hover-active, #CC5024)}}.___SNotice_1mgvt_gg_._theme_success_1mgvt_gg_{background-color:var(--intergalactic-bg-secondary-success, #dbfee8);border-color:var(--intergalactic-border-success, #59ddaa)}.___SNotice_1mgvt_gg_._theme_success_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}@media (hover:hover){.___SNotice_1mgvt_gg_._theme_success_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_:hover{color:var(--intergalactic-icon-primary-success-hover-active, #037E68)}}.___SNotice_1mgvt_gg_._theme_muted_1mgvt_gg_{background-color:var(--intergalactic-bg-secondary-neutral, #f4f5f9);border-color:var(--intergalactic-border-secondary, #e0e1e9)}.___SLabel_1mgvt_gg_._theme_info_1mgvt_gg_,.___SNotice_1mgvt_gg_._theme_muted_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_1mgvt_gg_._theme_muted_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SContent_1mgvt_gg_{flex:1 1 auto;width:100%}.___SActions_1mgvt_gg_{flex-shrink:0;margin-top:var(--intergalactic-spacing-3x, 12px)}.___SLabel_1mgvt_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_1mgvt_gg_._theme_danger_1mgvt_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}.___SLabel_1mgvt_gg_._theme_warning_1mgvt_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}.___SLabel_1mgvt_gg_._theme_success_1mgvt_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}.___SLabel_1mgvt_gg_._theme_muted_1mgvt_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SLabel_1mgvt_gg_._theme_custom_1mgvt_gg_{color:var(--color_1mgvt)}.___SCloseIcon_1mgvt_gg_{flex-shrink:0;margin-left:var(--intergalactic-spacing-4x, 16px)}.___SNotice_1mgvt_gg_._theme_custom_1mgvt_gg_{background-color:var(--backgroundColor_1mgvt);border-color:var(--backgroundColor_1mgvt)}.___STitle_1mgvt_gg_{margin-top:var(--intergalactic-spacing-05x, 2px);margin-bottom:var(--intergalactic-spacing-05x, 2px)}.___SText_1mgvt_gg_{margin-top:var(--intergalactic-spacing-1x, 4px);margin-bottom:var(--intergalactic-spacing-1x, 4px)}", /*__inner_css_end__*/"1mgvt_gg_"),
31
+ var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SNotice_15wdv_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_15wdv_gg_._theme_info_15wdv_gg_{background-color:var(--intergalactic-bg-secondary-info, #e9f7ff);border-color:var(--intergalactic-border-info, #8ecdff)}.___SNotice_15wdv_gg_._theme_info_15wdv_gg_ .___SCloseIcon_15wdv_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_15wdv_gg_._theme_info_15wdv_gg_ .___SCloseIcon_15wdv_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SNotice_15wdv_gg_._theme_danger_15wdv_gg_{background-color:var(--intergalactic-bg-secondary-critical, #fff0f7);border-color:var(--intergalactic-border-critical, #ffaeb5)}.___SNotice_15wdv_gg_._theme_danger_15wdv_gg_ .___SCloseIcon_15wdv_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}@media (hover:hover){.___SNotice_15wdv_gg_._theme_danger_15wdv_gg_ .___SCloseIcon_15wdv_gg_:hover{color:var(--intergalactic-icon-primary-critical-hover-active, #CC3A42)}}.___SNotice_15wdv_gg_._theme_warning_15wdv_gg_{background-color:var(--intergalactic-bg-secondary-warning, #fff3d9);border-color:var(--intergalactic-border-warning, #ffb26e)}.___SNotice_15wdv_gg_._theme_warning_15wdv_gg_ .___SCloseIcon_15wdv_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}@media (hover:hover){.___SNotice_15wdv_gg_._theme_warning_15wdv_gg_ .___SCloseIcon_15wdv_gg_:hover{color:var(--intergalactic-icon-primary-warning-hover-active, #CC5024)}}.___SNotice_15wdv_gg_._theme_success_15wdv_gg_{background-color:var(--intergalactic-bg-secondary-success, #dbfee8);border-color:var(--intergalactic-border-success, #59ddaa)}.___SNotice_15wdv_gg_._theme_success_15wdv_gg_ .___SCloseIcon_15wdv_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}@media (hover:hover){.___SNotice_15wdv_gg_._theme_success_15wdv_gg_ .___SCloseIcon_15wdv_gg_:hover{color:var(--intergalactic-icon-primary-success-hover-active, #037E68)}}.___SNotice_15wdv_gg_._theme_muted_15wdv_gg_{background-color:var(--intergalactic-bg-secondary-neutral, #f4f5f9);border-color:var(--intergalactic-border-secondary, #e0e1e9)}.___SLabel_15wdv_gg_._theme_info_15wdv_gg_,.___SNotice_15wdv_gg_._theme_muted_15wdv_gg_ .___SCloseIcon_15wdv_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_15wdv_gg_._theme_muted_15wdv_gg_ .___SCloseIcon_15wdv_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SContent_15wdv_gg_{flex:1 1 auto;width:100%}.___SActions_15wdv_gg_{flex-shrink:0;margin-top:var(--intergalactic-spacing-3x, 12px)}.___SLabel_15wdv_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_15wdv_gg_._theme_danger_15wdv_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}.___SLabel_15wdv_gg_._theme_warning_15wdv_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}.___SLabel_15wdv_gg_._theme_success_15wdv_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}.___SLabel_15wdv_gg_._theme_muted_15wdv_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SLabel_15wdv_gg_._theme_custom_15wdv_gg_{color:var(--color_15wdv)}.___SCloseIcon_15wdv_gg_{flex-shrink:0;margin-left:var(--intergalactic-spacing-4x, 16px)}.___SNotice_15wdv_gg_._theme_custom_15wdv_gg_{background-color:var(--backgroundColor_15wdv);border-color:var(--backgroundColor_15wdv)}.___STitle_15wdv_gg_{margin-top:var(--intergalactic-spacing-05x, 2px);margin-bottom:var(--intergalactic-spacing-05x, 2px)}.___SText_15wdv_gg_{margin-top:var(--intergalactic-spacing-1x, 4px);margin-bottom:var(--intergalactic-spacing-1x, 4px)}", /*__inner_css_end__*/"15wdv_gg_"),
32
32
  /*__reshadow_css_end__*/
33
33
  {
34
- "__SNotice": "___SNotice_1mgvt_gg_",
35
- "__SContent": "___SContent_1mgvt_gg_",
36
- "__SActions": "___SActions_1mgvt_gg_",
37
- "__SLabel": "___SLabel_1mgvt_gg_",
38
- "_theme_info": "_theme_info_1mgvt_gg_",
39
- "_theme_danger": "_theme_danger_1mgvt_gg_",
40
- "_theme_warning": "_theme_warning_1mgvt_gg_",
41
- "_theme_success": "_theme_success_1mgvt_gg_",
42
- "_theme_muted": "_theme_muted_1mgvt_gg_",
43
- "_theme_custom": "_theme_custom_1mgvt_gg_",
44
- "--color": "--color_1mgvt",
45
- "__SCloseIcon": "___SCloseIcon_1mgvt_gg_",
46
- "--backgroundColor": "--backgroundColor_1mgvt",
47
- "__STitle": "___STitle_1mgvt_gg_",
48
- "__SText": "___SText_1mgvt_gg_"
34
+ "__SNotice": "___SNotice_15wdv_gg_",
35
+ "__SContent": "___SContent_15wdv_gg_",
36
+ "__SActions": "___SActions_15wdv_gg_",
37
+ "__SLabel": "___SLabel_15wdv_gg_",
38
+ "_theme_info": "_theme_info_15wdv_gg_",
39
+ "_theme_danger": "_theme_danger_15wdv_gg_",
40
+ "_theme_warning": "_theme_warning_15wdv_gg_",
41
+ "_theme_success": "_theme_success_15wdv_gg_",
42
+ "_theme_muted": "_theme_muted_15wdv_gg_",
43
+ "_theme_custom": "_theme_custom_15wdv_gg_",
44
+ "--color": "--color_15wdv",
45
+ "__SCloseIcon": "___SCloseIcon_15wdv_gg_",
46
+ "--backgroundColor": "--backgroundColor_15wdv",
47
+ "__STitle": "___STitle_15wdv_gg_",
48
+ "__SText": "___SText_15wdv_gg_"
49
49
  });
50
50
  function isCustomTheme(theme) {
51
51
  return !['danger', 'warning', 'success', 'info', 'muted'].includes(theme);
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import type { FadeInOutProps } from '@semcore/animation';\nimport type Button from '@semcore/button';\nimport type { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport type { Box, BoxProps } from '@semcore/flex-box';\nimport type { IconProps } from '@semcore/icon';\nimport type { Text } from '@semcore/typography';\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 /**\n * A custom element for title\n */\n title?: React.ReactNode;\n\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 Title: typeof Text;\n Text: typeof Text;\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":"","ignoreList":[]}
1
+ {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import type { FadeInOutProps } from '@semcore/animation';\nimport type Button from '@semcore/button';\nimport type { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport type { Box, BoxProps } from '@semcore/flex-box';\nimport type { IconProps } from '@semcore/icon';\nimport type { Text } from '@semcore/typography';\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 /** Specifies the locale for i18n support */\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 /**\n * A custom element for title\n */\n title?: React.ReactNode;\n\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 Title: typeof Text;\n Text: typeof Text;\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":"","ignoreList":[]}
package/lib/es6/Notice.js CHANGED
@@ -29,24 +29,24 @@ import NoticeGlobal from '@semcore/notice-global';
29
29
  import { Text } from '@semcore/typography';
30
30
  import React from 'react';
31
31
  /*!__reshadow-styles__:"./style/notice.shadow.css"*/
32
- var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SNotice_1mgvt_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_1mgvt_gg_._theme_info_1mgvt_gg_{background-color:var(--intergalactic-bg-secondary-info, #e9f7ff);border-color:var(--intergalactic-border-info, #8ecdff)}.___SNotice_1mgvt_gg_._theme_info_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_1mgvt_gg_._theme_info_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SNotice_1mgvt_gg_._theme_danger_1mgvt_gg_{background-color:var(--intergalactic-bg-secondary-critical, #fff0f7);border-color:var(--intergalactic-border-critical, #ffaeb5)}.___SNotice_1mgvt_gg_._theme_danger_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}@media (hover:hover){.___SNotice_1mgvt_gg_._theme_danger_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_:hover{color:var(--intergalactic-icon-primary-critical-hover-active, #CC3A42)}}.___SNotice_1mgvt_gg_._theme_warning_1mgvt_gg_{background-color:var(--intergalactic-bg-secondary-warning, #fff3d9);border-color:var(--intergalactic-border-warning, #ffb26e)}.___SNotice_1mgvt_gg_._theme_warning_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}@media (hover:hover){.___SNotice_1mgvt_gg_._theme_warning_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_:hover{color:var(--intergalactic-icon-primary-warning-hover-active, #CC5024)}}.___SNotice_1mgvt_gg_._theme_success_1mgvt_gg_{background-color:var(--intergalactic-bg-secondary-success, #dbfee8);border-color:var(--intergalactic-border-success, #59ddaa)}.___SNotice_1mgvt_gg_._theme_success_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}@media (hover:hover){.___SNotice_1mgvt_gg_._theme_success_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_:hover{color:var(--intergalactic-icon-primary-success-hover-active, #037E68)}}.___SNotice_1mgvt_gg_._theme_muted_1mgvt_gg_{background-color:var(--intergalactic-bg-secondary-neutral, #f4f5f9);border-color:var(--intergalactic-border-secondary, #e0e1e9)}.___SLabel_1mgvt_gg_._theme_info_1mgvt_gg_,.___SNotice_1mgvt_gg_._theme_muted_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_1mgvt_gg_._theme_muted_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SContent_1mgvt_gg_{flex:1 1 auto;width:100%}.___SActions_1mgvt_gg_{flex-shrink:0;margin-top:var(--intergalactic-spacing-3x, 12px)}.___SLabel_1mgvt_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_1mgvt_gg_._theme_danger_1mgvt_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}.___SLabel_1mgvt_gg_._theme_warning_1mgvt_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}.___SLabel_1mgvt_gg_._theme_success_1mgvt_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}.___SLabel_1mgvt_gg_._theme_muted_1mgvt_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SLabel_1mgvt_gg_._theme_custom_1mgvt_gg_{color:var(--color_1mgvt)}.___SCloseIcon_1mgvt_gg_{flex-shrink:0;margin-left:var(--intergalactic-spacing-4x, 16px)}.___SNotice_1mgvt_gg_._theme_custom_1mgvt_gg_{background-color:var(--backgroundColor_1mgvt);border-color:var(--backgroundColor_1mgvt)}.___STitle_1mgvt_gg_{margin-top:var(--intergalactic-spacing-05x, 2px);margin-bottom:var(--intergalactic-spacing-05x, 2px)}.___SText_1mgvt_gg_{margin-top:var(--intergalactic-spacing-1x, 4px);margin-bottom:var(--intergalactic-spacing-1x, 4px)}", /*__inner_css_end__*/"1mgvt_gg_"),
32
+ var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SNotice_15wdv_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_15wdv_gg_._theme_info_15wdv_gg_{background-color:var(--intergalactic-bg-secondary-info, #e9f7ff);border-color:var(--intergalactic-border-info, #8ecdff)}.___SNotice_15wdv_gg_._theme_info_15wdv_gg_ .___SCloseIcon_15wdv_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_15wdv_gg_._theme_info_15wdv_gg_ .___SCloseIcon_15wdv_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SNotice_15wdv_gg_._theme_danger_15wdv_gg_{background-color:var(--intergalactic-bg-secondary-critical, #fff0f7);border-color:var(--intergalactic-border-critical, #ffaeb5)}.___SNotice_15wdv_gg_._theme_danger_15wdv_gg_ .___SCloseIcon_15wdv_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}@media (hover:hover){.___SNotice_15wdv_gg_._theme_danger_15wdv_gg_ .___SCloseIcon_15wdv_gg_:hover{color:var(--intergalactic-icon-primary-critical-hover-active, #CC3A42)}}.___SNotice_15wdv_gg_._theme_warning_15wdv_gg_{background-color:var(--intergalactic-bg-secondary-warning, #fff3d9);border-color:var(--intergalactic-border-warning, #ffb26e)}.___SNotice_15wdv_gg_._theme_warning_15wdv_gg_ .___SCloseIcon_15wdv_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}@media (hover:hover){.___SNotice_15wdv_gg_._theme_warning_15wdv_gg_ .___SCloseIcon_15wdv_gg_:hover{color:var(--intergalactic-icon-primary-warning-hover-active, #CC5024)}}.___SNotice_15wdv_gg_._theme_success_15wdv_gg_{background-color:var(--intergalactic-bg-secondary-success, #dbfee8);border-color:var(--intergalactic-border-success, #59ddaa)}.___SNotice_15wdv_gg_._theme_success_15wdv_gg_ .___SCloseIcon_15wdv_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}@media (hover:hover){.___SNotice_15wdv_gg_._theme_success_15wdv_gg_ .___SCloseIcon_15wdv_gg_:hover{color:var(--intergalactic-icon-primary-success-hover-active, #037E68)}}.___SNotice_15wdv_gg_._theme_muted_15wdv_gg_{background-color:var(--intergalactic-bg-secondary-neutral, #f4f5f9);border-color:var(--intergalactic-border-secondary, #e0e1e9)}.___SLabel_15wdv_gg_._theme_info_15wdv_gg_,.___SNotice_15wdv_gg_._theme_muted_15wdv_gg_ .___SCloseIcon_15wdv_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_15wdv_gg_._theme_muted_15wdv_gg_ .___SCloseIcon_15wdv_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SContent_15wdv_gg_{flex:1 1 auto;width:100%}.___SActions_15wdv_gg_{flex-shrink:0;margin-top:var(--intergalactic-spacing-3x, 12px)}.___SLabel_15wdv_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_15wdv_gg_._theme_danger_15wdv_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}.___SLabel_15wdv_gg_._theme_warning_15wdv_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}.___SLabel_15wdv_gg_._theme_success_15wdv_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}.___SLabel_15wdv_gg_._theme_muted_15wdv_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SLabel_15wdv_gg_._theme_custom_15wdv_gg_{color:var(--color_15wdv)}.___SCloseIcon_15wdv_gg_{flex-shrink:0;margin-left:var(--intergalactic-spacing-4x, 16px)}.___SNotice_15wdv_gg_._theme_custom_15wdv_gg_{background-color:var(--backgroundColor_15wdv);border-color:var(--backgroundColor_15wdv)}.___STitle_15wdv_gg_{margin-top:var(--intergalactic-spacing-05x, 2px);margin-bottom:var(--intergalactic-spacing-05x, 2px)}.___SText_15wdv_gg_{margin-top:var(--intergalactic-spacing-1x, 4px);margin-bottom:var(--intergalactic-spacing-1x, 4px)}", /*__inner_css_end__*/"15wdv_gg_"),
33
33
  /*__reshadow_css_end__*/
34
34
  {
35
- "__SNotice": "___SNotice_1mgvt_gg_",
36
- "__SContent": "___SContent_1mgvt_gg_",
37
- "__SActions": "___SActions_1mgvt_gg_",
38
- "__SLabel": "___SLabel_1mgvt_gg_",
39
- "_theme_info": "_theme_info_1mgvt_gg_",
40
- "_theme_danger": "_theme_danger_1mgvt_gg_",
41
- "_theme_warning": "_theme_warning_1mgvt_gg_",
42
- "_theme_success": "_theme_success_1mgvt_gg_",
43
- "_theme_muted": "_theme_muted_1mgvt_gg_",
44
- "_theme_custom": "_theme_custom_1mgvt_gg_",
45
- "--color": "--color_1mgvt",
46
- "__SCloseIcon": "___SCloseIcon_1mgvt_gg_",
47
- "--backgroundColor": "--backgroundColor_1mgvt",
48
- "__STitle": "___STitle_1mgvt_gg_",
49
- "__SText": "___SText_1mgvt_gg_"
35
+ "__SNotice": "___SNotice_15wdv_gg_",
36
+ "__SContent": "___SContent_15wdv_gg_",
37
+ "__SActions": "___SActions_15wdv_gg_",
38
+ "__SLabel": "___SLabel_15wdv_gg_",
39
+ "_theme_info": "_theme_info_15wdv_gg_",
40
+ "_theme_danger": "_theme_danger_15wdv_gg_",
41
+ "_theme_warning": "_theme_warning_15wdv_gg_",
42
+ "_theme_success": "_theme_success_15wdv_gg_",
43
+ "_theme_muted": "_theme_muted_15wdv_gg_",
44
+ "_theme_custom": "_theme_custom_15wdv_gg_",
45
+ "--color": "--color_15wdv",
46
+ "__SCloseIcon": "___SCloseIcon_15wdv_gg_",
47
+ "--backgroundColor": "--backgroundColor_15wdv",
48
+ "__STitle": "___STitle_15wdv_gg_",
49
+ "__SText": "___SText_15wdv_gg_"
50
50
  });
51
51
  import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
52
52
  function isCustomTheme(theme) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import type { FadeInOutProps } from '@semcore/animation';\nimport type Button from '@semcore/button';\nimport type { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport type { Box, BoxProps } from '@semcore/flex-box';\nimport type { IconProps } from '@semcore/icon';\nimport type { Text } from '@semcore/typography';\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 /**\n * A custom element for title\n */\n title?: React.ReactNode;\n\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 Title: typeof Text;\n Text: typeof Text;\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":"","ignoreList":[]}
1
+ {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import type { FadeInOutProps } from '@semcore/animation';\nimport type Button from '@semcore/button';\nimport type { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport type { Box, BoxProps } from '@semcore/flex-box';\nimport type { IconProps } from '@semcore/icon';\nimport type { Text } from '@semcore/typography';\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 /** Specifies the locale for i18n support */\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 /**\n * A custom element for title\n */\n title?: React.ReactNode;\n\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 Title: typeof Text;\n Text: typeof Text;\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":"","ignoreList":[]}
@@ -27,26 +27,26 @@ var style = (
27
27
  /*__reshadow_css_start__*/
28
28
  (sstyled.insert(
29
29
  /*__inner_css_start__*/
30
- ".___SNotice_1mgvt_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_1mgvt_gg_._theme_info_1mgvt_gg_{background-color:var(--intergalactic-bg-secondary-info, #e9f7ff);border-color:var(--intergalactic-border-info, #8ecdff)}.___SNotice_1mgvt_gg_._theme_info_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_1mgvt_gg_._theme_info_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SNotice_1mgvt_gg_._theme_danger_1mgvt_gg_{background-color:var(--intergalactic-bg-secondary-critical, #fff0f7);border-color:var(--intergalactic-border-critical, #ffaeb5)}.___SNotice_1mgvt_gg_._theme_danger_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}@media (hover:hover){.___SNotice_1mgvt_gg_._theme_danger_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_:hover{color:var(--intergalactic-icon-primary-critical-hover-active, #CC3A42)}}.___SNotice_1mgvt_gg_._theme_warning_1mgvt_gg_{background-color:var(--intergalactic-bg-secondary-warning, #fff3d9);border-color:var(--intergalactic-border-warning, #ffb26e)}.___SNotice_1mgvt_gg_._theme_warning_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}@media (hover:hover){.___SNotice_1mgvt_gg_._theme_warning_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_:hover{color:var(--intergalactic-icon-primary-warning-hover-active, #CC5024)}}.___SNotice_1mgvt_gg_._theme_success_1mgvt_gg_{background-color:var(--intergalactic-bg-secondary-success, #dbfee8);border-color:var(--intergalactic-border-success, #59ddaa)}.___SNotice_1mgvt_gg_._theme_success_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}@media (hover:hover){.___SNotice_1mgvt_gg_._theme_success_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_:hover{color:var(--intergalactic-icon-primary-success-hover-active, #037E68)}}.___SNotice_1mgvt_gg_._theme_muted_1mgvt_gg_{background-color:var(--intergalactic-bg-secondary-neutral, #f4f5f9);border-color:var(--intergalactic-border-secondary, #e0e1e9)}.___SLabel_1mgvt_gg_._theme_info_1mgvt_gg_,.___SNotice_1mgvt_gg_._theme_muted_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_1mgvt_gg_._theme_muted_1mgvt_gg_ .___SCloseIcon_1mgvt_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SContent_1mgvt_gg_{flex:1 1 auto;width:100%}.___SActions_1mgvt_gg_{flex-shrink:0;margin-top:var(--intergalactic-spacing-3x, 12px)}.___SLabel_1mgvt_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_1mgvt_gg_._theme_danger_1mgvt_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}.___SLabel_1mgvt_gg_._theme_warning_1mgvt_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}.___SLabel_1mgvt_gg_._theme_success_1mgvt_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}.___SLabel_1mgvt_gg_._theme_muted_1mgvt_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SLabel_1mgvt_gg_._theme_custom_1mgvt_gg_{color:var(--color_1mgvt)}.___SCloseIcon_1mgvt_gg_{flex-shrink:0;margin-left:var(--intergalactic-spacing-4x, 16px)}.___SNotice_1mgvt_gg_._theme_custom_1mgvt_gg_{background-color:var(--backgroundColor_1mgvt);border-color:var(--backgroundColor_1mgvt)}.___STitle_1mgvt_gg_{margin-top:var(--intergalactic-spacing-05x, 2px);margin-bottom:var(--intergalactic-spacing-05x, 2px)}.___SText_1mgvt_gg_{margin-top:var(--intergalactic-spacing-1x, 4px);margin-bottom:var(--intergalactic-spacing-1x, 4px)}",
30
+ ".___SNotice_15wdv_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_15wdv_gg_._theme_info_15wdv_gg_{background-color:var(--intergalactic-bg-secondary-info, #e9f7ff);border-color:var(--intergalactic-border-info, #8ecdff)}.___SNotice_15wdv_gg_._theme_info_15wdv_gg_ .___SCloseIcon_15wdv_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_15wdv_gg_._theme_info_15wdv_gg_ .___SCloseIcon_15wdv_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SNotice_15wdv_gg_._theme_danger_15wdv_gg_{background-color:var(--intergalactic-bg-secondary-critical, #fff0f7);border-color:var(--intergalactic-border-critical, #ffaeb5)}.___SNotice_15wdv_gg_._theme_danger_15wdv_gg_ .___SCloseIcon_15wdv_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}@media (hover:hover){.___SNotice_15wdv_gg_._theme_danger_15wdv_gg_ .___SCloseIcon_15wdv_gg_:hover{color:var(--intergalactic-icon-primary-critical-hover-active, #CC3A42)}}.___SNotice_15wdv_gg_._theme_warning_15wdv_gg_{background-color:var(--intergalactic-bg-secondary-warning, #fff3d9);border-color:var(--intergalactic-border-warning, #ffb26e)}.___SNotice_15wdv_gg_._theme_warning_15wdv_gg_ .___SCloseIcon_15wdv_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}@media (hover:hover){.___SNotice_15wdv_gg_._theme_warning_15wdv_gg_ .___SCloseIcon_15wdv_gg_:hover{color:var(--intergalactic-icon-primary-warning-hover-active, #CC5024)}}.___SNotice_15wdv_gg_._theme_success_15wdv_gg_{background-color:var(--intergalactic-bg-secondary-success, #dbfee8);border-color:var(--intergalactic-border-success, #59ddaa)}.___SNotice_15wdv_gg_._theme_success_15wdv_gg_ .___SCloseIcon_15wdv_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}@media (hover:hover){.___SNotice_15wdv_gg_._theme_success_15wdv_gg_ .___SCloseIcon_15wdv_gg_:hover{color:var(--intergalactic-icon-primary-success-hover-active, #037E68)}}.___SNotice_15wdv_gg_._theme_muted_15wdv_gg_{background-color:var(--intergalactic-bg-secondary-neutral, #f4f5f9);border-color:var(--intergalactic-border-secondary, #e0e1e9)}.___SLabel_15wdv_gg_._theme_info_15wdv_gg_,.___SNotice_15wdv_gg_._theme_muted_15wdv_gg_ .___SCloseIcon_15wdv_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_15wdv_gg_._theme_muted_15wdv_gg_ .___SCloseIcon_15wdv_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SContent_15wdv_gg_{flex:1 1 auto;width:100%}.___SActions_15wdv_gg_{flex-shrink:0;margin-top:var(--intergalactic-spacing-3x, 12px)}.___SLabel_15wdv_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_15wdv_gg_._theme_danger_15wdv_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}.___SLabel_15wdv_gg_._theme_warning_15wdv_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}.___SLabel_15wdv_gg_._theme_success_15wdv_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}.___SLabel_15wdv_gg_._theme_muted_15wdv_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SLabel_15wdv_gg_._theme_custom_15wdv_gg_{color:var(--color_15wdv)}.___SCloseIcon_15wdv_gg_{flex-shrink:0;margin-left:var(--intergalactic-spacing-4x, 16px)}.___SNotice_15wdv_gg_._theme_custom_15wdv_gg_{background-color:var(--backgroundColor_15wdv);border-color:var(--backgroundColor_15wdv)}.___STitle_15wdv_gg_{margin-top:var(--intergalactic-spacing-05x, 2px);margin-bottom:var(--intergalactic-spacing-05x, 2px)}.___SText_15wdv_gg_{margin-top:var(--intergalactic-spacing-1x, 4px);margin-bottom:var(--intergalactic-spacing-1x, 4px)}",
31
31
  /*__inner_css_end__*/
32
- "1mgvt_gg_"
32
+ "15wdv_gg_"
33
33
  ), /*__reshadow_css_end__*/
34
34
  {
35
- "__SNotice": "___SNotice_1mgvt_gg_",
36
- "__SContent": "___SContent_1mgvt_gg_",
37
- "__SActions": "___SActions_1mgvt_gg_",
38
- "__SLabel": "___SLabel_1mgvt_gg_",
39
- "_theme_info": "_theme_info_1mgvt_gg_",
40
- "_theme_danger": "_theme_danger_1mgvt_gg_",
41
- "_theme_warning": "_theme_warning_1mgvt_gg_",
42
- "_theme_success": "_theme_success_1mgvt_gg_",
43
- "_theme_muted": "_theme_muted_1mgvt_gg_",
44
- "_theme_custom": "_theme_custom_1mgvt_gg_",
45
- "--color": "--color_1mgvt",
46
- "__SCloseIcon": "___SCloseIcon_1mgvt_gg_",
47
- "--backgroundColor": "--backgroundColor_1mgvt",
48
- "__STitle": "___STitle_1mgvt_gg_",
49
- "__SText": "___SText_1mgvt_gg_"
35
+ "__SNotice": "___SNotice_15wdv_gg_",
36
+ "__SContent": "___SContent_15wdv_gg_",
37
+ "__SActions": "___SActions_15wdv_gg_",
38
+ "__SLabel": "___SLabel_15wdv_gg_",
39
+ "_theme_info": "_theme_info_15wdv_gg_",
40
+ "_theme_danger": "_theme_danger_15wdv_gg_",
41
+ "_theme_warning": "_theme_warning_15wdv_gg_",
42
+ "_theme_success": "_theme_success_15wdv_gg_",
43
+ "_theme_muted": "_theme_muted_15wdv_gg_",
44
+ "_theme_custom": "_theme_custom_15wdv_gg_",
45
+ "--color": "--color_15wdv",
46
+ "__SCloseIcon": "___SCloseIcon_15wdv_gg_",
47
+ "--backgroundColor": "--backgroundColor_15wdv",
48
+ "__STitle": "___STitle_15wdv_gg_",
49
+ "__SText": "___SText_15wdv_gg_"
50
50
  })
51
51
  );
52
52
  function isCustomTheme(theme) {
@@ -27,6 +27,7 @@ export type NoticeProps = BoxProps &
27
27
  * @default 250
28
28
  */
29
29
  duration?: number;
30
+ /** Specifies the locale for i18n support */
30
31
  locale?: string;
31
32
  };
32
33
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/notice",
3
3
  "description": "Semrush Notice Component",
4
- "version": "16.1.6",
4
+ "version": "16.1.7-prerelease.2",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -14,15 +14,15 @@
14
14
  "types": "./lib/types/index.d.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@semcore/button": "16.0.6",
18
- "@semcore/icon": "16.5.0",
19
- "@semcore/notice-global": "16.1.6",
20
- "@semcore/animation": "16.0.4",
21
- "@semcore/flex-box": "16.0.6",
22
- "@semcore/typography": "16.2.0"
17
+ "@semcore/button": "16.0.7-prerelease.2",
18
+ "@semcore/icon": "16.6.0-prerelease.2",
19
+ "@semcore/notice-global": "16.1.7-prerelease.2",
20
+ "@semcore/animation": "16.0.5-prerelease.2",
21
+ "@semcore/flex-box": "16.0.7-prerelease.2",
22
+ "@semcore/typography": "16.2.1-prerelease.2"
23
23
  },
24
24
  "peerDependencies": {
25
- "@semcore/base-components": "^16.0.0"
25
+ "@semcore/base-components": "^16.2.1-prerelease.2"
26
26
  },
27
27
  "repository": {
28
28
  "type": "git",
@@ -30,8 +30,8 @@
30
30
  "directory": "semcore/notice"
31
31
  },
32
32
  "devDependencies": {
33
- "@semcore/core": "16.0.4",
34
- "@semcore/testing-utils": "1.0.0"
33
+ "@semcore/testing-utils": "1.0.0",
34
+ "@semcore/core": "16.1.1-prerelease.2"
35
35
  },
36
36
  "scripts": {
37
37
  "build": "pnpm semcore-builder --source=js && pnpm vite build"