@semcore/notice 16.1.1-prerelease.4 → 16.1.2-prerelease.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +1 -31
- package/lib/cjs/Notice.js +65 -66
- package/lib/cjs/Notice.js.map +1 -1
- package/lib/cjs/NoticeSmart.js +10 -10
- package/lib/cjs/NoticeSmart.js.map +1 -1
- package/lib/cjs/index.d.js.map +1 -1
- package/lib/cjs/index.js +2 -3
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/Notice.js +64 -64
- package/lib/es6/Notice.js.map +1 -1
- package/lib/es6/NoticeSmart.js +8 -7
- package/lib/es6/NoticeSmart.js.map +1 -1
- package/lib/es6/index.d.js.map +1 -1
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/esm/Notice.mjs +63 -61
- package/lib/esm/NoticeSmart.mjs +10 -7
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/types/index.d.ts +6 -6
- package/package.json +9 -9
package/lib/esm/Notice.mjs
CHANGED
|
@@ -1,67 +1,70 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
-
import
|
|
4
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
5
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
6
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
5
7
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
6
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
7
8
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import { Box } from "@semcore/flex-box";
|
|
9
|
+
import { createComponent, sstyled, assignProps, Component } from "@semcore/core";
|
|
10
|
+
import { FadeInOut } from "@semcore/animation";
|
|
11
11
|
import Button from "@semcore/button";
|
|
12
|
-
import
|
|
12
|
+
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
13
13
|
import resolveColorEnhance from "@semcore/core/lib/utils/enhances/resolveColorEnhance";
|
|
14
|
-
import { FadeInOut } from "@semcore/animation";
|
|
15
14
|
import logger from "@semcore/core/lib/utils/logger";
|
|
16
|
-
import NoticeGlobal from "@semcore/notice-global";
|
|
17
|
-
import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
|
|
18
|
-
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
19
15
|
import { cssVariableEnhance } from "@semcore/core/lib/utils/useCssVariable";
|
|
16
|
+
import { Box } from "@semcore/flex-box";
|
|
17
|
+
import CloseIconM from "@semcore/icon/Close/m";
|
|
18
|
+
import NoticeGlobal from "@semcore/notice-global";
|
|
20
19
|
import { Text } from "@semcore/typography";
|
|
20
|
+
import React from "react";
|
|
21
|
+
import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
|
|
22
|
+
function _callSuper(t, o, e) {
|
|
23
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
24
|
+
}
|
|
21
25
|
/*!__reshadow-styles__:"./style/notice.shadow.css"*/
|
|
22
26
|
var style = (
|
|
23
27
|
/*__reshadow_css_start__*/
|
|
24
28
|
(sstyled.insert(
|
|
25
29
|
/*__inner_css_start__*/
|
|
26
|
-
".
|
|
30
|
+
".___SNotice_1hf9b_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_1hf9b_gg_._theme_info_1hf9b_gg_{background-color:var(--intergalactic-bg-secondary-info, #e9f7ff);border-color:var(--intergalactic-border-info, #8ecdff)}.___SNotice_1hf9b_gg_._theme_info_1hf9b_gg_ .___SCloseIcon_1hf9b_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_1hf9b_gg_._theme_info_1hf9b_gg_ .___SCloseIcon_1hf9b_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SNotice_1hf9b_gg_._theme_danger_1hf9b_gg_{background-color:var(--intergalactic-bg-secondary-critical, #fff0f7);border-color:var(--intergalactic-border-critical, #ffaeb5)}.___SNotice_1hf9b_gg_._theme_danger_1hf9b_gg_ .___SCloseIcon_1hf9b_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}@media (hover:hover){.___SNotice_1hf9b_gg_._theme_danger_1hf9b_gg_ .___SCloseIcon_1hf9b_gg_:hover{color:var(--intergalactic-icon-primary-critical-hover-active, #CC3A42)}}.___SNotice_1hf9b_gg_._theme_warning_1hf9b_gg_{background-color:var(--intergalactic-bg-secondary-warning, #fff3d9);border-color:var(--intergalactic-border-warning, #ffb26e)}.___SNotice_1hf9b_gg_._theme_warning_1hf9b_gg_ .___SCloseIcon_1hf9b_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}@media (hover:hover){.___SNotice_1hf9b_gg_._theme_warning_1hf9b_gg_ .___SCloseIcon_1hf9b_gg_:hover{color:var(--intergalactic-icon-primary-warning-hover-active, #CC5024)}}.___SNotice_1hf9b_gg_._theme_success_1hf9b_gg_{background-color:var(--intergalactic-bg-secondary-success, #dbfee8);border-color:var(--intergalactic-border-success, #59ddaa)}.___SNotice_1hf9b_gg_._theme_success_1hf9b_gg_ .___SCloseIcon_1hf9b_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}@media (hover:hover){.___SNotice_1hf9b_gg_._theme_success_1hf9b_gg_ .___SCloseIcon_1hf9b_gg_:hover{color:var(--intergalactic-icon-primary-success-hover-active, #037E68)}}.___SNotice_1hf9b_gg_._theme_muted_1hf9b_gg_{background-color:var(--intergalactic-bg-secondary-neutral, #f4f5f9);border-color:var(--intergalactic-border-secondary, #e0e1e9)}.___SLabel_1hf9b_gg_._theme_info_1hf9b_gg_,.___SNotice_1hf9b_gg_._theme_muted_1hf9b_gg_ .___SCloseIcon_1hf9b_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_1hf9b_gg_._theme_muted_1hf9b_gg_ .___SCloseIcon_1hf9b_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SContent_1hf9b_gg_{flex:1 1 auto;width:100%}.___SActions_1hf9b_gg_{flex-shrink:0;margin-top:var(--intergalactic-spacing-3x, 12px)}.___SLabel_1hf9b_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_1hf9b_gg_._theme_danger_1hf9b_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}.___SLabel_1hf9b_gg_._theme_warning_1hf9b_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}.___SLabel_1hf9b_gg_._theme_success_1hf9b_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}.___SLabel_1hf9b_gg_._theme_muted_1hf9b_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SLabel_1hf9b_gg_._theme_custom_1hf9b_gg_{color:var(--color_1hf9b)}.___SCloseIcon_1hf9b_gg_{flex-shrink:0;margin-left:var(--intergalactic-spacing-4x, 16px)}.___SNotice_1hf9b_gg_._theme_custom_1hf9b_gg_{background-color:var(--backgroundColor_1hf9b);border-color:var(--backgroundColor_1hf9b)}.___STitle_1hf9b_gg_{margin-top:var(--intergalactic-spacing-05x, 2px);margin-bottom:var(--intergalactic-spacing-05x, 2px)}.___SText_1hf9b_gg_{margin-top:var(--intergalactic-spacing-1x, 4px);margin-bottom:var(--intergalactic-spacing-1x, 4px)}",
|
|
27
31
|
/*__inner_css_end__*/
|
|
28
|
-
"
|
|
32
|
+
"1hf9b_gg_"
|
|
29
33
|
), /*__reshadow_css_end__*/
|
|
30
34
|
{
|
|
31
|
-
"__SNotice": "
|
|
32
|
-
"__SContent": "
|
|
33
|
-
"__SActions": "
|
|
34
|
-
"__SLabel": "
|
|
35
|
-
"_theme_info": "
|
|
36
|
-
"_theme_danger": "
|
|
37
|
-
"_theme_warning": "
|
|
38
|
-
"_theme_success": "
|
|
39
|
-
"_theme_muted": "
|
|
40
|
-
"_theme_custom": "
|
|
41
|
-
"--color": "--
|
|
42
|
-
"__SCloseIcon": "
|
|
43
|
-
"--backgroundColor": "--
|
|
44
|
-
"__STitle": "
|
|
45
|
-
"__SText": "
|
|
35
|
+
"__SNotice": "___SNotice_1hf9b_gg_",
|
|
36
|
+
"__SContent": "___SContent_1hf9b_gg_",
|
|
37
|
+
"__SActions": "___SActions_1hf9b_gg_",
|
|
38
|
+
"__SLabel": "___SLabel_1hf9b_gg_",
|
|
39
|
+
"_theme_info": "_theme_info_1hf9b_gg_",
|
|
40
|
+
"_theme_danger": "_theme_danger_1hf9b_gg_",
|
|
41
|
+
"_theme_warning": "_theme_warning_1hf9b_gg_",
|
|
42
|
+
"_theme_success": "_theme_success_1hf9b_gg_",
|
|
43
|
+
"_theme_muted": "_theme_muted_1hf9b_gg_",
|
|
44
|
+
"_theme_custom": "_theme_custom_1hf9b_gg_",
|
|
45
|
+
"--color": "--color_1hf9b",
|
|
46
|
+
"__SCloseIcon": "___SCloseIcon_1hf9b_gg_",
|
|
47
|
+
"--backgroundColor": "--backgroundColor_1hf9b",
|
|
48
|
+
"__STitle": "___STitle_1hf9b_gg_",
|
|
49
|
+
"__SText": "___SText_1hf9b_gg_"
|
|
46
50
|
})
|
|
47
51
|
);
|
|
48
52
|
function isCustomTheme(theme) {
|
|
49
53
|
return !["danger", "warning", "success", "info", "muted"].includes(theme);
|
|
50
54
|
}
|
|
51
55
|
var RootNotice = /* @__PURE__ */ function(_Component) {
|
|
52
|
-
_inherits(RootNotice2, _Component);
|
|
53
|
-
var _super = _createSuper(RootNotice2);
|
|
54
56
|
function RootNotice2() {
|
|
55
57
|
var _this;
|
|
56
58
|
_classCallCheck(this, RootNotice2);
|
|
57
59
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
58
60
|
args[_key] = arguments[_key];
|
|
59
61
|
}
|
|
60
|
-
_this =
|
|
61
|
-
_defineProperty(
|
|
62
|
+
_this = _callSuper(this, RootNotice2, [].concat(args));
|
|
63
|
+
_defineProperty(_this, "ref", /* @__PURE__ */ React.createRef());
|
|
62
64
|
return _this;
|
|
63
65
|
}
|
|
64
|
-
|
|
66
|
+
_inherits(RootNotice2, _Component);
|
|
67
|
+
return _createClass(RootNotice2, [{
|
|
65
68
|
key: "componentDidMount",
|
|
66
69
|
value: function componentDidMount() {
|
|
67
70
|
if (this.ref.current && process.env.NODE_ENV !== "production" && !["muted", "danger"].includes(this.props.theme)) {
|
|
@@ -126,7 +129,6 @@ var RootNotice = /* @__PURE__ */ function(_Component) {
|
|
|
126
129
|
}, _ref))), /* @__PURE__ */ React.createElement(Children, _ref9.cn("Children", {})));
|
|
127
130
|
}
|
|
128
131
|
}]);
|
|
129
|
-
return RootNotice2;
|
|
130
132
|
}(Component);
|
|
131
133
|
_defineProperty(RootNotice, "displayName", "Notice");
|
|
132
134
|
_defineProperty(RootNotice, "style", style);
|
|
@@ -141,62 +143,62 @@ _defineProperty(RootNotice, "defaultProps", {
|
|
|
141
143
|
i18n: localizedMessages,
|
|
142
144
|
locale: "en"
|
|
143
145
|
});
|
|
144
|
-
function Label(
|
|
145
|
-
var _ref2 = arguments[0],
|
|
146
|
-
var styles =
|
|
146
|
+
function Label(_ref15) {
|
|
147
|
+
var _ref2 = arguments[0], _ref0;
|
|
148
|
+
var styles = _ref15.styles, theme = _ref15.theme, resolveColor = _ref15.resolveColor;
|
|
147
149
|
var SLabel = Box;
|
|
148
150
|
var useTheme = isCustomTheme(theme) ? "custom" : theme;
|
|
149
151
|
var color = resolveColor(theme);
|
|
150
|
-
return
|
|
152
|
+
return _ref0 = sstyled(styles), /* @__PURE__ */ React.createElement(SLabel, _ref0.cn("SLabel", _objectSpread({}, assignProps({
|
|
151
153
|
"use:theme": useTheme,
|
|
152
154
|
"color": color
|
|
153
155
|
}, _ref2))));
|
|
154
156
|
}
|
|
155
|
-
function Title(
|
|
156
|
-
var _ref3 = arguments[0],
|
|
157
|
-
var styles =
|
|
157
|
+
function Title(_ref16) {
|
|
158
|
+
var _ref3 = arguments[0], _ref1;
|
|
159
|
+
var styles = _ref16.styles;
|
|
158
160
|
var STitle = Text;
|
|
159
|
-
return
|
|
161
|
+
return _ref1 = sstyled(styles), /* @__PURE__ */ React.createElement(STitle, _ref1.cn("STitle", _objectSpread({}, assignProps({
|
|
160
162
|
"tag": "div",
|
|
161
163
|
"size": 300,
|
|
162
164
|
"fontWeight": "bold"
|
|
163
165
|
}, _ref3))));
|
|
164
166
|
}
|
|
165
|
-
function NoticeText(
|
|
166
|
-
var _ref4 = arguments[0],
|
|
167
|
-
var styles =
|
|
167
|
+
function NoticeText(_ref17) {
|
|
168
|
+
var _ref4 = arguments[0], _ref10;
|
|
169
|
+
var styles = _ref17.styles;
|
|
168
170
|
var SText = Text;
|
|
169
|
-
return
|
|
171
|
+
return _ref10 = sstyled(styles), /* @__PURE__ */ React.createElement(SText, _ref10.cn("SText", _objectSpread({}, assignProps({
|
|
170
172
|
"tag": "div"
|
|
171
173
|
}, _ref4))));
|
|
172
174
|
}
|
|
173
|
-
function Actions(
|
|
174
|
-
var _ref5 = arguments[0],
|
|
175
|
-
var styles =
|
|
175
|
+
function Actions(_ref18) {
|
|
176
|
+
var _ref5 = arguments[0], _ref11;
|
|
177
|
+
var styles = _ref18.styles;
|
|
176
178
|
var SActions = Box;
|
|
177
|
-
return
|
|
179
|
+
return _ref11 = sstyled(styles), /* @__PURE__ */ React.createElement(SActions, _ref11.cn("SActions", _objectSpread({}, assignProps({}, _ref5))));
|
|
178
180
|
}
|
|
179
|
-
function Content(
|
|
180
|
-
var _ref6 = arguments[0],
|
|
181
|
-
var styles =
|
|
181
|
+
function Content(_ref19) {
|
|
182
|
+
var _ref6 = arguments[0], _ref12;
|
|
183
|
+
var styles = _ref19.styles;
|
|
182
184
|
var SContent = Box;
|
|
183
|
-
return
|
|
185
|
+
return _ref12 = sstyled(styles), /* @__PURE__ */ React.createElement(SContent, _ref12.cn("SContent", _objectSpread({}, assignProps({}, _ref6))));
|
|
184
186
|
}
|
|
185
|
-
function CloseIcon(
|
|
186
|
-
var _ref7 = arguments[0],
|
|
187
|
-
var styles =
|
|
187
|
+
function CloseIcon(_ref20) {
|
|
188
|
+
var _ref7 = arguments[0], _ref13;
|
|
189
|
+
var styles = _ref20.styles, getI18nText = _ref20.getI18nText;
|
|
188
190
|
var SCloseIcon = Box;
|
|
189
|
-
return
|
|
191
|
+
return _ref13 = sstyled(styles), /* @__PURE__ */ React.createElement(SCloseIcon, _ref13.cn("SCloseIcon", _objectSpread({}, assignProps({
|
|
190
192
|
"tag": CloseIconM,
|
|
191
193
|
"interactive": true,
|
|
192
194
|
"aria-label": getI18nText("close")
|
|
193
195
|
}, _ref7))));
|
|
194
196
|
}
|
|
195
|
-
function Close(
|
|
196
|
-
var _ref8 = arguments[0],
|
|
197
|
-
var styles =
|
|
197
|
+
function Close(_ref21) {
|
|
198
|
+
var _ref8 = arguments[0], _ref14;
|
|
199
|
+
var styles = _ref21.styles, getI18nText = _ref21.getI18nText;
|
|
198
200
|
var SCloseIcon = Button;
|
|
199
|
-
return
|
|
201
|
+
return _ref14 = sstyled(styles), /* @__PURE__ */ React.createElement(SCloseIcon, _ref14.cn("SCloseIcon", _objectSpread({}, assignProps({
|
|
200
202
|
"addonLeft": CloseIconM,
|
|
201
203
|
"use": "tertiary",
|
|
202
204
|
"theme": "muted",
|
package/lib/esm/NoticeSmart.mjs
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
4
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
5
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
3
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
7
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
6
8
|
import { createComponent, assignProps, Component } from "@semcore/core";
|
|
7
|
-
import React from "react";
|
|
8
9
|
import isNode from "@semcore/core/lib/utils/isNode";
|
|
10
|
+
import React from "react";
|
|
9
11
|
import Notice from "./Notice.mjs";
|
|
12
|
+
function _callSuper(t, o, e) {
|
|
13
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
14
|
+
}
|
|
10
15
|
var NoticeSmart = /* @__PURE__ */ function(_Component) {
|
|
11
|
-
_inherits(NoticeSmart2, _Component);
|
|
12
|
-
var _super = _createSuper(NoticeSmart2);
|
|
13
16
|
function NoticeSmart2() {
|
|
14
17
|
_classCallCheck(this, NoticeSmart2);
|
|
15
|
-
return
|
|
18
|
+
return _callSuper(this, NoticeSmart2, arguments);
|
|
16
19
|
}
|
|
17
|
-
|
|
20
|
+
_inherits(NoticeSmart2, _Component);
|
|
21
|
+
return _createClass(NoticeSmart2, [{
|
|
18
22
|
key: "render",
|
|
19
23
|
value: function render() {
|
|
20
24
|
var _ref = this.asProps;
|
|
@@ -31,7 +35,6 @@ var NoticeSmart = /* @__PURE__ */ function(_Component) {
|
|
|
31
35
|
}));
|
|
32
36
|
}
|
|
33
37
|
}]);
|
|
34
|
-
return NoticeSmart2;
|
|
35
38
|
}(Component);
|
|
36
39
|
_defineProperty(NoticeSmart, "displayName", "NoticeSmart");
|
|
37
40
|
_defineProperty(NoticeSmart, "defaultProps", {
|
|
@@ -6,12 +6,12 @@ import it from "./it.json.mjs";
|
|
|
6
6
|
import ja from "./ja.json.mjs";
|
|
7
7
|
import ko from "./ko.json.mjs";
|
|
8
8
|
import nl from "./nl.json.mjs";
|
|
9
|
+
import pl from "./pl.json.mjs";
|
|
9
10
|
import pt from "./pt.json.mjs";
|
|
11
|
+
import sv from "./sv.json.mjs";
|
|
10
12
|
import tr from "./tr.json.mjs";
|
|
11
13
|
import vi from "./vi.json.mjs";
|
|
12
14
|
import zh from "./zh.json.mjs";
|
|
13
|
-
import pl from "./pl.json.mjs";
|
|
14
|
-
import sv from "./sv.json.mjs";
|
|
15
15
|
var localizedMessages = {
|
|
16
16
|
de,
|
|
17
17
|
en,
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { Text } from '@semcore/typography';
|
|
1
|
+
import type { FadeInOutProps } from '@semcore/animation';
|
|
2
|
+
import type Button from '@semcore/button';
|
|
3
|
+
import type { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';
|
|
4
|
+
import type { Box, BoxProps } from '@semcore/flex-box';
|
|
5
|
+
import type { IconProps } from '@semcore/icon';
|
|
6
|
+
import type { Text } from '@semcore/typography';
|
|
7
7
|
|
|
8
8
|
export type NoticeTheme = 'danger' | 'warning' | 'success' | 'info' | 'muted';
|
|
9
9
|
export type NoticeUse = 'primary' | 'secondary';
|
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.
|
|
4
|
+
"version": "16.1.2-prerelease.1",
|
|
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.
|
|
18
|
-
"@semcore/icon": "16.2.
|
|
19
|
-
"@semcore/notice-global": "16.1.
|
|
20
|
-
"@semcore/animation": "16.0.
|
|
21
|
-
"@semcore/flex-box": "16.0.
|
|
22
|
-
"@semcore/typography": "16.1.
|
|
17
|
+
"@semcore/button": "16.0.2-prerelease.1",
|
|
18
|
+
"@semcore/icon": "16.2.1-prerelease.1",
|
|
19
|
+
"@semcore/notice-global": "16.1.2-prerelease.1",
|
|
20
|
+
"@semcore/animation": "16.0.2-prerelease.1",
|
|
21
|
+
"@semcore/flex-box": "16.0.2-prerelease.1",
|
|
22
|
+
"@semcore/typography": "16.1.2-prerelease.1"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@semcore/base-components": "^16.0.
|
|
25
|
+
"@semcore/base-components": "^16.0.2-prerelease.1"
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|
|
28
28
|
"type": "git",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"directory": "semcore/notice"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@
|
|
33
|
+
"@semcore/core": "16.0.0",
|
|
34
34
|
"@semcore/testing-utils": "1.0.0"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|