@semcore/notice 4.4.12 → 4.4.14
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 +4 -2
- package/lib/cjs/Notice.js +22 -16
- package/lib/cjs/Notice.js.map +1 -1
- package/lib/cjs/index.d.js.map +1 -1
- package/lib/es6/Notice.js +21 -16
- package/lib/es6/Notice.js.map +1 -1
- package/lib/es6/index.d.js.map +1 -1
- package/lib/types/index.d.ts +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
-
## [4.4.
|
|
5
|
+
## [4.4.14] - 2023-02-20
|
|
6
6
|
|
|
7
7
|
### Changed
|
|
8
8
|
|
|
9
|
-
- Version patch update due to children dependencies update (`@semcore/
|
|
9
|
+
- Version patch update due to children dependencies update (`@semcore/animation` [1.8.11 ~> 1.9.0], `@semcore/utils` [3.46.1 ~> 3.47.0], `@semcore/flex-box` [4.7.8 ~> 4.7.9], `@semcore/icon` [3.10.0 ~> 3.10.1], `@semcore/notice-global` [1.4.13 ~> 1.5.0]).
|
|
10
|
+
|
|
11
|
+
## [4.4.12] - 2023-02-13
|
|
10
12
|
|
|
11
13
|
## [4.4.11] - 2023-02-09
|
|
12
14
|
|
package/lib/cjs/Notice.js
CHANGED
|
@@ -41,6 +41,8 @@ var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynam
|
|
|
41
41
|
|
|
42
42
|
var _i18nEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/i18nEnhance"));
|
|
43
43
|
|
|
44
|
+
var _useCssVariable = require("@semcore/utils/lib/useCssVariable");
|
|
45
|
+
|
|
44
46
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
45
47
|
|
|
46
48
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -58,23 +60,23 @@ var style = (
|
|
|
58
60
|
/*__reshadow_css_start__*/
|
|
59
61
|
_core.sstyled.insert(
|
|
60
62
|
/*__inner_css_start__*/
|
|
61
|
-
".
|
|
63
|
+
".___SNotice_c2473_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)}.___SNotice_c2473_gg_._theme_info_c2473_gg_{background-color:var(--intergalactic-bg-secondary-info, #e9f7ff);border-color:var(--intergalactic-border-info, #8ecdff)}.___SNotice_c2473_gg_._theme_info_c2473_gg_ .___SCloseIcon_c2473_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_c2473_gg_._theme_info_c2473_gg_ .___SCloseIcon_c2473_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #484a54)}}.___SNotice_c2473_gg_._theme_danger_c2473_gg_{background-color:var(--intergalactic-bg-secondary-critical, #fff0f7);border-color:var(--intergalactic-border-critical, #ffaeb5)}.___SNotice_c2473_gg_._theme_danger_c2473_gg_ .___SCloseIcon_c2473_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}@media (hover:hover){.___SNotice_c2473_gg_._theme_danger_c2473_gg_ .___SCloseIcon_c2473_gg_:hover{color:var(--intergalactic-icon-primary-critical-hover-active, #d1002f)}}.___SNotice_c2473_gg_._theme_warning_c2473_gg_{background-color:var(--intergalactic-bg-secondary-warning, #fff3d9);border-color:var(--intergalactic-border-warning, #ffb26e)}.___SNotice_c2473_gg_._theme_warning_c2473_gg_ .___SCloseIcon_c2473_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}@media (hover:hover){.___SNotice_c2473_gg_._theme_warning_c2473_gg_ .___SCloseIcon_c2473_gg_:hover{color:var(--intergalactic-icon-primary-warning-hover-active, #c33909)}}.___SNotice_c2473_gg_._theme_success_c2473_gg_{background-color:var(--intergalactic-bg-secondary-success, #dbfee8);border-color:var(--intergalactic-border-success, #59ddaa)}.___SNotice_c2473_gg_._theme_success_c2473_gg_ .___SCloseIcon_c2473_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}@media (hover:hover){.___SNotice_c2473_gg_._theme_success_c2473_gg_ .___SCloseIcon_c2473_gg_:hover{color:var(--intergalactic-icon-primary-success-hover-active, #007c65)}}.___SContent_c2473_gg_{flex:1 1 auto;width:100%}.___SActions_c2473_gg_{flex-shrink:0;margin-top:var(--intergalactic-spacing-3x, 12px)}.___SLabel_c2473_gg_{margin-top:var(--intergalactic-spacing-05x, 2px);margin-right:var(--intergalactic-spacing-2x, 8px);display:inline-flex}.___SLabel_c2473_gg_._theme_info_c2473_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SLabel_c2473_gg_._theme_danger_c2473_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}.___SLabel_c2473_gg_._theme_warning_c2473_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}.___SLabel_c2473_gg_._theme_success_c2473_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}.___SLabel_c2473_gg_._theme_custom_c2473_gg_{color:var(--color_c2473)}.___SCloseIcon_c2473_gg_{flex-shrink:0;margin-left:var(--intergalactic-spacing-4x, 16px)}.___SNotice_c2473_gg_._theme_custom_c2473_gg_{background-color:var(--backgroundColor_c2473);border-color:var(--backgroundColor_c2473)}"
|
|
62
64
|
/*__inner_css_end__*/
|
|
63
|
-
, "
|
|
65
|
+
, "c2473_gg_")
|
|
64
66
|
/*__reshadow_css_end__*/
|
|
65
67
|
, {
|
|
66
|
-
"__SNotice": "
|
|
67
|
-
"_theme_info": "
|
|
68
|
-
"__SCloseIcon": "
|
|
69
|
-
"_theme_danger": "
|
|
70
|
-
"_theme_warning": "
|
|
71
|
-
"_theme_success": "
|
|
72
|
-
"__SContent": "
|
|
73
|
-
"__SActions": "
|
|
74
|
-
"__SLabel": "
|
|
75
|
-
"_theme_custom": "
|
|
76
|
-
"--color": "--
|
|
77
|
-
"--backgroundColor": "--
|
|
68
|
+
"__SNotice": "___SNotice_c2473_gg_",
|
|
69
|
+
"_theme_info": "_theme_info_c2473_gg_",
|
|
70
|
+
"__SCloseIcon": "___SCloseIcon_c2473_gg_",
|
|
71
|
+
"_theme_danger": "_theme_danger_c2473_gg_",
|
|
72
|
+
"_theme_warning": "_theme_warning_c2473_gg_",
|
|
73
|
+
"_theme_success": "_theme_success_c2473_gg_",
|
|
74
|
+
"__SContent": "___SContent_c2473_gg_",
|
|
75
|
+
"__SActions": "___SActions_c2473_gg_",
|
|
76
|
+
"__SLabel": "___SLabel_c2473_gg_",
|
|
77
|
+
"_theme_custom": "_theme_custom_c2473_gg_",
|
|
78
|
+
"--color": "--color_c2473",
|
|
79
|
+
"--backgroundColor": "--backgroundColor_c2473"
|
|
78
80
|
});
|
|
79
81
|
|
|
80
82
|
function isCustomTheme(theme) {
|
|
@@ -144,10 +146,14 @@ var RootNotice = /*#__PURE__*/function (_Component) {
|
|
|
144
146
|
|
|
145
147
|
(0, _defineProperty2["default"])(RootNotice, "displayName", 'Notice');
|
|
146
148
|
(0, _defineProperty2["default"])(RootNotice, "style", style);
|
|
147
|
-
(0, _defineProperty2["default"])(RootNotice, "enhance", [(0, _i18nEnhance["default"])(_intergalacticDynamicLocales.localizedMessages)
|
|
149
|
+
(0, _defineProperty2["default"])(RootNotice, "enhance", [(0, _i18nEnhance["default"])(_intergalacticDynamicLocales.localizedMessages), (0, _useCssVariable.cssVariableEnhance)({
|
|
150
|
+
variable: '--intergalactic-duration-popper',
|
|
151
|
+
fallback: '200',
|
|
152
|
+
map: Number.parseInt,
|
|
153
|
+
prop: 'duration'
|
|
154
|
+
})]);
|
|
148
155
|
(0, _defineProperty2["default"])(RootNotice, "defaultProps", {
|
|
149
156
|
theme: 'info',
|
|
150
|
-
duration: 250,
|
|
151
157
|
i18n: _intergalacticDynamicLocales.localizedMessages,
|
|
152
158
|
locale: 'en'
|
|
153
159
|
});
|
package/lib/cjs/Notice.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notice.js","names":["isCustomTheme","theme","includes","RootNotice","asProps","getI18nText","SNotice","FadeInOut","Children","styles","hidden","use","isAssertive","color","resolveColor","useTheme","logger","warn","displayName","sstyled","Component","style","i18nEnhance","localizedMessages","
|
|
1
|
+
{"version":3,"file":"Notice.js","names":["isCustomTheme","theme","includes","RootNotice","asProps","getI18nText","SNotice","FadeInOut","Children","styles","hidden","use","isAssertive","color","resolveColor","useTheme","logger","warn","displayName","sstyled","Component","style","i18nEnhance","localizedMessages","cssVariableEnhance","variable","fallback","map","Number","parseInt","prop","i18n","locale","Label","SLabel","Box","Actions","SActions","Content","SContent","CloseIcon","SCloseIcon","Close","createComponent"],"sources":["../../src/Notice.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport Close from '@semcore/icon/Close/m';\nimport resolveColor from '@semcore/utils/lib/color';\nimport { FadeInOut } from '@semcore/animation';\nimport logger from '@semcore/utils/lib/logger';\nimport NoticeGlobal from '@semcore/notice-global';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport { cssVariableEnhance } from '@semcore/utils/lib/useCssVariable';\n\nimport style from './style/notice.shadow.css';\n\nfunction isCustomTheme(theme) {\n return !['danger', 'warning', 'success', 'info'].includes(theme);\n}\n\nclass RootNotice extends Component {\n static displayName = 'Notice';\n static style = style;\n static enhance = [\n i18nEnhance(localizedMessages),\n cssVariableEnhance({\n variable: '--intergalactic-duration-popper',\n fallback: '200',\n map: Number.parseInt,\n prop: 'duration',\n }),\n ];\n static defaultProps = {\n theme: 'info',\n i18n: localizedMessages,\n locale: 'en',\n };\n\n getLabelProps() {\n const { theme } = this.asProps;\n\n return { theme };\n }\n\n getCloseIconProps() {\n const { getI18nText } = this.asProps;\n\n return { getI18nText };\n }\n\n render() {\n const SNotice = Root;\n const { Children, styles, hidden, theme, use } = this.asProps;\n const isAssertive = theme === 'danger' || theme === 'warning';\n const color = resolveColor(theme);\n const useTheme = isCustomTheme(theme) ? 'custom' : theme;\n\n if (use === 'primary') {\n logger.warn(\n true,\n `Deprecated property-value pair \"use=primary\", use component <NoticeGlobal/> instead`,\n RootNotice.displayName,\n );\n return <NoticeGlobal {...this.asProps} />;\n }\n\n return sstyled(styles)(\n <SNotice\n render={FadeInOut}\n visible={!hidden}\n use:theme={useTheme}\n backgroundColor={color}\n role=\"status\"\n aria-live={isAssertive ? 'assertive' : 'polite'}\n >\n <Children />\n </SNotice>,\n );\n }\n}\n\nfunction Label({ styles, theme }) {\n const SLabel = Root;\n const useTheme = isCustomTheme(theme) ? 'custom' : theme;\n const color = resolveColor(theme);\n return sstyled(styles)(<SLabel render={Box} use:theme={useTheme} color={color} />);\n}\n\nfunction Actions({ styles }) {\n const SActions = Root;\n return sstyled(styles)(<SActions render={Box} />);\n}\n\nfunction Content({ styles }) {\n const SContent = Root;\n return sstyled(styles)(<SContent render={Box} />);\n}\n\nfunction CloseIcon({ styles, getI18nText }) {\n const SCloseIcon = Root;\n return sstyled(styles)(\n <SCloseIcon render={Box} tag={Close} interactive aria-label={getI18nText('close')} />,\n );\n}\n\nexport default createComponent(RootNotice, {\n Label,\n Actions,\n Content,\n CloseIcon,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA;;AADA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,aAAT,CAAuBC,KAAvB,EAA8B;EAC5B,OAAO,CAAC,CAAC,QAAD,EAAW,SAAX,EAAsB,SAAtB,EAAiC,MAAjC,EAAyCC,QAAzC,CAAkDD,KAAlD,CAAR;AACD;;IAEKE,U;;;;;;;;;;;;WAkBJ,yBAAgB;MACd,IAAQF,KAAR,GAAkB,KAAKG,OAAvB,CAAQH,KAAR;MAEA,OAAO;QAAEA,KAAK,EAALA;MAAF,CAAP;IACD;;;WAED,6BAAoB;MAClB,IAAQI,WAAR,GAAwB,KAAKD,OAA7B,CAAQC,WAAR;MAEA,OAAO;QAAEA,WAAW,EAAXA;MAAF,CAAP;IACD;;;WAED,kBAAS;MAAA;MAAA;;MACP,IAAMC,OAAO,GAiBDC,oBAjBZ;MACA,oBAAiD,KAAKH,OAAtD;MAAA,IAAQI,QAAR,iBAAQA,QAAR;MAAA,IAAkBC,MAAlB,iBAAkBA,MAAlB;MAAA,IAA0BC,MAA1B,iBAA0BA,MAA1B;MAAA,IAAkCT,KAAlC,iBAAkCA,KAAlC;MAAA,IAAyCU,GAAzC,iBAAyCA,GAAzC;MACA,IAAMC,WAAW,GAAGX,KAAK,KAAK,QAAV,IAAsBA,KAAK,KAAK,SAApD;MACA,IAAMY,KAAK,GAAG,IAAAC,iBAAA,EAAab,KAAb,CAAd;MACA,IAAMc,QAAQ,GAAGf,aAA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AACD;;AAED,SAASuB,OAAT,SAA6B;EAAA;EAAA;;EAAA,IAAV3B,MAAU,UAAVA,MAAU;EAC3B,IAAM4B,QAAQ,GAC2BF,YADzC;EACA,eAAO,IAAAhB,aAAA,EAAQV,MAAR,CAAP,eAAuB,gCAAC,QAAD,6EAAvB;AACD;;AAED,SAAS6B,OAAT,SAA6B;EAAA;EAAA;;EAAA,IAAV7B,MAAU,UAAVA,MAAU;EAC3B,IAAM8B,QAAQ,GAC2BJ,YADzC;EACA,eAAO,IAAAhB,aAAA,EAAQV,MAAR,CAAP,eAAuB,gCAAC,QAAD,6EAAvB;AACD;;AAED,SAAS+B,SAAT,SAA4C;EAAA;EAAA;;EAAA,IAAvB/B,MAAuB,UAAvBA,MAAuB;EAAA,IAAfJ,WAAe,UAAfA,WAAe;EAC1C,IAAMoC,UAAU,GAEMN,YAFtB;EACA,gBAAO,IAAAhB,aAAA,EAAQV,MAAR,CAAP,eACE,gCAAC,UAAD;IAAA,OAA8BiC,aAA9B;IAAA;IAAA,cAA6DrC,WAAW,CAAC,OAAD;EAAxE,YADF;AAGD;;eAEc,IAAAsC,gBAAA,EAAgBxC,UAAhB,EAA4B;EACzC8B,KAAK,EAALA,KADyC;EAEzCG,OAAO,EAAPA,OAFyC;EAGzCE,OAAO,EAAPA,OAHyC;EAIzCE,SAAS,EAATA;AAJyC,CAA5B,C"}
|
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 { CProps, PropGetterFn, ReturnEl } from '@semcore/core';\nimport { Box, IBoxProps } from '@semcore/flex-box';\nimport { IIconProps } from '@semcore/icon';\n\nexport type NoticeTheme = 'danger' | 'warning' | 'success' | 'info' | string;\nexport type NoticeUse = 'primary' | 'secondary';\n\nexport interface INoticeProps extends IBoxProps {\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\nexport interface INoticeLabelProps extends IBoxProps {\n theme?: NoticeTheme;\n}\n\nexport interface INoticeContext {\n getLabelProps: PropGetterFn;\n}\n\nexport interface INoticeSmartProps extends INoticeProps {\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 icon\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: (<T>(props: CProps<INoticeProps & T, INoticeContext>) => ReturnEl) & {\n Label: <T>(props: INoticeLabelProps & T) => ReturnEl;\n Actions: typeof Box;\n Content: typeof Box;\n CloseIcon: <T>(props: IIconProps & T) => ReturnEl;\n};\n\ndeclare const NoticeSmart: <T>(props: CProps<INoticeSmartProps & T>) => ReturnEl;\n\nexport { NoticeSmart };\nexport default Notice;\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { CProps, PropGetterFn, ReturnEl } from '@semcore/core';\nimport { Box, IBoxProps } from '@semcore/flex-box';\nimport { IIconProps } from '@semcore/icon';\nimport { IFadeInOutProps } from '@semcore/animation';\n\nexport type NoticeTheme = 'danger' | 'warning' | 'success' | 'info' | string;\nexport type NoticeUse = 'primary' | 'secondary';\n\nexport interface INoticeProps extends IBoxProps, IFadeInOutProps {\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\nexport interface INoticeLabelProps extends IBoxProps {\n theme?: NoticeTheme;\n}\n\nexport interface INoticeContext {\n getLabelProps: PropGetterFn;\n}\n\nexport interface INoticeSmartProps extends INoticeProps {\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 icon\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: (<T>(props: CProps<INoticeProps & T, INoticeContext>) => ReturnEl) & {\n Label: <T>(props: INoticeLabelProps & T) => ReturnEl;\n Actions: typeof Box;\n Content: typeof Box;\n CloseIcon: <T>(props: IIconProps & T) => ReturnEl;\n};\n\ndeclare const NoticeSmart: <T>(props: CProps<INoticeSmartProps & T>) => ReturnEl;\n\nexport { NoticeSmart };\nexport default Notice;\n"],"mappings":""}
|
package/lib/es6/Notice.js
CHANGED
|
@@ -29,29 +29,30 @@ import logger from '@semcore/utils/lib/logger';
|
|
|
29
29
|
import NoticeGlobal from '@semcore/notice-global';
|
|
30
30
|
import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
|
|
31
31
|
import i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';
|
|
32
|
+
import { cssVariableEnhance } from '@semcore/utils/lib/useCssVariable';
|
|
32
33
|
|
|
33
34
|
/*__reshadow-styles__:"./style/notice.shadow.css"*/
|
|
34
35
|
var style = (
|
|
35
36
|
/*__reshadow_css_start__*/
|
|
36
37
|
_sstyled.insert(
|
|
37
38
|
/*__inner_css_start__*/
|
|
38
|
-
".
|
|
39
|
+
".___SNotice_c2473_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)}.___SNotice_c2473_gg_._theme_info_c2473_gg_{background-color:var(--intergalactic-bg-secondary-info, #e9f7ff);border-color:var(--intergalactic-border-info, #8ecdff)}.___SNotice_c2473_gg_._theme_info_c2473_gg_ .___SCloseIcon_c2473_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_c2473_gg_._theme_info_c2473_gg_ .___SCloseIcon_c2473_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #484a54)}}.___SNotice_c2473_gg_._theme_danger_c2473_gg_{background-color:var(--intergalactic-bg-secondary-critical, #fff0f7);border-color:var(--intergalactic-border-critical, #ffaeb5)}.___SNotice_c2473_gg_._theme_danger_c2473_gg_ .___SCloseIcon_c2473_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}@media (hover:hover){.___SNotice_c2473_gg_._theme_danger_c2473_gg_ .___SCloseIcon_c2473_gg_:hover{color:var(--intergalactic-icon-primary-critical-hover-active, #d1002f)}}.___SNotice_c2473_gg_._theme_warning_c2473_gg_{background-color:var(--intergalactic-bg-secondary-warning, #fff3d9);border-color:var(--intergalactic-border-warning, #ffb26e)}.___SNotice_c2473_gg_._theme_warning_c2473_gg_ .___SCloseIcon_c2473_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}@media (hover:hover){.___SNotice_c2473_gg_._theme_warning_c2473_gg_ .___SCloseIcon_c2473_gg_:hover{color:var(--intergalactic-icon-primary-warning-hover-active, #c33909)}}.___SNotice_c2473_gg_._theme_success_c2473_gg_{background-color:var(--intergalactic-bg-secondary-success, #dbfee8);border-color:var(--intergalactic-border-success, #59ddaa)}.___SNotice_c2473_gg_._theme_success_c2473_gg_ .___SCloseIcon_c2473_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}@media (hover:hover){.___SNotice_c2473_gg_._theme_success_c2473_gg_ .___SCloseIcon_c2473_gg_:hover{color:var(--intergalactic-icon-primary-success-hover-active, #007c65)}}.___SContent_c2473_gg_{flex:1 1 auto;width:100%}.___SActions_c2473_gg_{flex-shrink:0;margin-top:var(--intergalactic-spacing-3x, 12px)}.___SLabel_c2473_gg_{margin-top:var(--intergalactic-spacing-05x, 2px);margin-right:var(--intergalactic-spacing-2x, 8px);display:inline-flex}.___SLabel_c2473_gg_._theme_info_c2473_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SLabel_c2473_gg_._theme_danger_c2473_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}.___SLabel_c2473_gg_._theme_warning_c2473_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}.___SLabel_c2473_gg_._theme_success_c2473_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}.___SLabel_c2473_gg_._theme_custom_c2473_gg_{color:var(--color_c2473)}.___SCloseIcon_c2473_gg_{flex-shrink:0;margin-left:var(--intergalactic-spacing-4x, 16px)}.___SNotice_c2473_gg_._theme_custom_c2473_gg_{background-color:var(--backgroundColor_c2473);border-color:var(--backgroundColor_c2473)}"
|
|
39
40
|
/*__inner_css_end__*/
|
|
40
|
-
, "
|
|
41
|
+
, "c2473_gg_")
|
|
41
42
|
/*__reshadow_css_end__*/
|
|
42
43
|
, {
|
|
43
|
-
"__SNotice": "
|
|
44
|
-
"_theme_info": "
|
|
45
|
-
"__SCloseIcon": "
|
|
46
|
-
"_theme_danger": "
|
|
47
|
-
"_theme_warning": "
|
|
48
|
-
"_theme_success": "
|
|
49
|
-
"__SContent": "
|
|
50
|
-
"__SActions": "
|
|
51
|
-
"__SLabel": "
|
|
52
|
-
"_theme_custom": "
|
|
53
|
-
"--color": "--
|
|
54
|
-
"--backgroundColor": "--
|
|
44
|
+
"__SNotice": "___SNotice_c2473_gg_",
|
|
45
|
+
"_theme_info": "_theme_info_c2473_gg_",
|
|
46
|
+
"__SCloseIcon": "___SCloseIcon_c2473_gg_",
|
|
47
|
+
"_theme_danger": "_theme_danger_c2473_gg_",
|
|
48
|
+
"_theme_warning": "_theme_warning_c2473_gg_",
|
|
49
|
+
"_theme_success": "_theme_success_c2473_gg_",
|
|
50
|
+
"__SContent": "___SContent_c2473_gg_",
|
|
51
|
+
"__SActions": "___SActions_c2473_gg_",
|
|
52
|
+
"__SLabel": "___SLabel_c2473_gg_",
|
|
53
|
+
"_theme_custom": "_theme_custom_c2473_gg_",
|
|
54
|
+
"--color": "--color_c2473",
|
|
55
|
+
"--backgroundColor": "--backgroundColor_c2473"
|
|
55
56
|
});
|
|
56
57
|
|
|
57
58
|
function isCustomTheme(theme) {
|
|
@@ -124,11 +125,15 @@ _defineProperty(RootNotice, "displayName", 'Notice');
|
|
|
124
125
|
|
|
125
126
|
_defineProperty(RootNotice, "style", style);
|
|
126
127
|
|
|
127
|
-
_defineProperty(RootNotice, "enhance", [i18nEnhance(localizedMessages)
|
|
128
|
+
_defineProperty(RootNotice, "enhance", [i18nEnhance(localizedMessages), cssVariableEnhance({
|
|
129
|
+
variable: '--intergalactic-duration-popper',
|
|
130
|
+
fallback: '200',
|
|
131
|
+
map: Number.parseInt,
|
|
132
|
+
prop: 'duration'
|
|
133
|
+
})]);
|
|
128
134
|
|
|
129
135
|
_defineProperty(RootNotice, "defaultProps", {
|
|
130
136
|
theme: 'info',
|
|
131
|
-
duration: 250,
|
|
132
137
|
i18n: localizedMessages,
|
|
133
138
|
locale: 'en'
|
|
134
139
|
});
|
package/lib/es6/Notice.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notice.js","names":["React","createComponent","Component","sstyled","Root","Box","Close","resolveColor","FadeInOut","logger","NoticeGlobal","localizedMessages","i18nEnhance","isCustomTheme","theme","includes","RootNotice","asProps","getI18nText","SNotice","Children","styles","hidden","use","isAssertive","color","useTheme","warn","displayName","style","
|
|
1
|
+
{"version":3,"file":"Notice.js","names":["React","createComponent","Component","sstyled","Root","Box","Close","resolveColor","FadeInOut","logger","NoticeGlobal","localizedMessages","i18nEnhance","cssVariableEnhance","isCustomTheme","theme","includes","RootNotice","asProps","getI18nText","SNotice","Children","styles","hidden","use","isAssertive","color","useTheme","warn","displayName","style","variable","fallback","map","Number","parseInt","prop","i18n","locale","Label","SLabel","Actions","SActions","Content","SContent","CloseIcon","SCloseIcon"],"sources":["../../src/Notice.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport Close from '@semcore/icon/Close/m';\nimport resolveColor from '@semcore/utils/lib/color';\nimport { FadeInOut } from '@semcore/animation';\nimport logger from '@semcore/utils/lib/logger';\nimport NoticeGlobal from '@semcore/notice-global';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport { cssVariableEnhance } from '@semcore/utils/lib/useCssVariable';\n\nimport style from './style/notice.shadow.css';\n\nfunction isCustomTheme(theme) {\n return !['danger', 'warning', 'success', 'info'].includes(theme);\n}\n\nclass RootNotice extends Component {\n static displayName = 'Notice';\n static style = style;\n static enhance = [\n i18nEnhance(localizedMessages),\n cssVariableEnhance({\n variable: '--intergalactic-duration-popper',\n fallback: '200',\n map: Number.parseInt,\n prop: 'duration',\n }),\n ];\n static defaultProps = {\n theme: 'info',\n i18n: localizedMessages,\n locale: 'en',\n };\n\n getLabelProps() {\n const { theme } = this.asProps;\n\n return { theme };\n }\n\n getCloseIconProps() {\n const { getI18nText } = this.asProps;\n\n return { getI18nText };\n }\n\n render() {\n const SNotice = Root;\n const { Children, styles, hidden, theme, use } = this.asProps;\n const isAssertive = theme === 'danger' || theme === 'warning';\n const color = resolveColor(theme);\n const useTheme = isCustomTheme(theme) ? 'custom' : theme;\n\n if (use === 'primary') {\n logger.warn(\n true,\n `Deprecated property-value pair \"use=primary\", use component <NoticeGlobal/> instead`,\n RootNotice.displayName,\n );\n return <NoticeGlobal {...this.asProps} />;\n }\n\n return sstyled(styles)(\n <SNotice\n render={FadeInOut}\n visible={!hidden}\n use:theme={useTheme}\n backgroundColor={color}\n role=\"status\"\n aria-live={isAssertive ? 'assertive' : 'polite'}\n >\n <Children />\n </SNotice>,\n );\n }\n}\n\nfunction Label({ styles, theme }) {\n const SLabel = Root;\n const useTheme = isCustomTheme(theme) ? 'custom' : theme;\n const color = resolveColor(theme);\n return sstyled(styles)(<SLabel render={Box} use:theme={useTheme} color={color} />);\n}\n\nfunction Actions({ styles }) {\n const SActions = Root;\n return sstyled(styles)(<SActions render={Box} />);\n}\n\nfunction Content({ styles }) {\n const SContent = Root;\n return sstyled(styles)(<SContent render={Box} />);\n}\n\nfunction CloseIcon({ styles, getI18nText }) {\n const SCloseIcon = Root;\n return sstyled(styles)(\n <SCloseIcon render={Box} tag={Close} interactive aria-label={getI18nText('close')} />,\n );\n}\n\nexport default createComponent(RootNotice, {\n Label,\n Actions,\n Content,\n CloseIcon,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,eAAP,IAA0BC,SAA1B,EAAqCC,OAArC,EAA8CC,IAA9C,QAA0D,eAA1D;AACA,SAASC,GAAT,QAAoB,mBAApB;AACA,OAAOC,KAAP,MAAkB,uBAAlB;AACA,OAAOC,YAAP,MAAyB,0BAAzB;AACA,SAASC,SAAT,QAA0B,oBAA1B;AACA,OAAOC,MAAP,MAAmB,2BAAnB;AACA,OAAOC,YAAP,MAAyB,wBAAzB;AACA,SAASC,iBAAT,QAAkC,gDAAlC;AACA,OAAOC,WAAP,MAAwB,yCAAxB;AACA,SAASC,kBAAT,QAAmC,mCAAnC;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,SAASC,aAAT,CAAuBC,KAAvB,EAA8B;EAC5B,OAAO,CAAC,CAAC,QAAD,EAAW,SAAX,EAAsB,SAAtB,EAAiC,MAAjC,EAAyCC,QAAzC,CAAkDD,KAAlD,CAAR;AACD;;IAEKE,U;;;;;;;;;;;;;WAkBJ,yBAAgB;MACd,IAAQF,KAAR,GAAkB,KAAKG,OAAvB,CAAQH,KAAR;MAEA,OAAO;QAAEA,KAAK,EAALA;MAAF,CAAP;IACD;;;WAED,6BAAoB;MAClB,IAAQI,WAAR,GAAwB,KAAKD,OAA7B,CAAQC,WAAR;MAEA,OAAO;QAAEA,WAAW,EAAXA;MAAF,CAAP;IACD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6/index.d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { CProps, PropGetterFn, ReturnEl } from '@semcore/core';\nimport { Box, IBoxProps } from '@semcore/flex-box';\nimport { IIconProps } from '@semcore/icon';\n\nexport type NoticeTheme = 'danger' | 'warning' | 'success' | 'info' | string;\nexport type NoticeUse = 'primary' | 'secondary';\n\nexport interface INoticeProps extends IBoxProps {\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\nexport interface INoticeLabelProps extends IBoxProps {\n theme?: NoticeTheme;\n}\n\nexport interface INoticeContext {\n getLabelProps: PropGetterFn;\n}\n\nexport interface INoticeSmartProps extends INoticeProps {\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 icon\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: (<T>(props: CProps<INoticeProps & T, INoticeContext>) => ReturnEl) & {\n Label: <T>(props: INoticeLabelProps & T) => ReturnEl;\n Actions: typeof Box;\n Content: typeof Box;\n CloseIcon: <T>(props: IIconProps & T) => ReturnEl;\n};\n\ndeclare const NoticeSmart: <T>(props: CProps<INoticeSmartProps & T>) => ReturnEl;\n\nexport { NoticeSmart };\nexport default Notice;\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { CProps, PropGetterFn, ReturnEl } from '@semcore/core';\nimport { Box, IBoxProps } from '@semcore/flex-box';\nimport { IIconProps } from '@semcore/icon';\nimport { IFadeInOutProps } from '@semcore/animation';\n\nexport type NoticeTheme = 'danger' | 'warning' | 'success' | 'info' | string;\nexport type NoticeUse = 'primary' | 'secondary';\n\nexport interface INoticeProps extends IBoxProps, IFadeInOutProps {\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\nexport interface INoticeLabelProps extends IBoxProps {\n theme?: NoticeTheme;\n}\n\nexport interface INoticeContext {\n getLabelProps: PropGetterFn;\n}\n\nexport interface INoticeSmartProps extends INoticeProps {\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 icon\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: (<T>(props: CProps<INoticeProps & T, INoticeContext>) => ReturnEl) & {\n Label: <T>(props: INoticeLabelProps & T) => ReturnEl;\n Actions: typeof Box;\n Content: typeof Box;\n CloseIcon: <T>(props: IIconProps & T) => ReturnEl;\n};\n\ndeclare const NoticeSmart: <T>(props: CProps<INoticeSmartProps & T>) => ReturnEl;\n\nexport { NoticeSmart };\nexport default Notice;\n"],"mappings":""}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { CProps, PropGetterFn, ReturnEl } from '@semcore/core';
|
|
2
2
|
import { Box, IBoxProps } from '@semcore/flex-box';
|
|
3
3
|
import { IIconProps } from '@semcore/icon';
|
|
4
|
+
import { IFadeInOutProps } from '@semcore/animation';
|
|
4
5
|
|
|
5
6
|
export type NoticeTheme = 'danger' | 'warning' | 'success' | 'info' | string;
|
|
6
7
|
export type NoticeUse = 'primary' | 'secondary';
|
|
7
8
|
|
|
8
|
-
export interface INoticeProps extends IBoxProps {
|
|
9
|
+
export interface INoticeProps extends IBoxProps, IFadeInOutProps {
|
|
9
10
|
/** Property for managing visibility of Notice */
|
|
10
11
|
hidden?: boolean;
|
|
11
12
|
/** Notice type
|