@semcore/notice 5.45.0-prerelease.1 → 5.45.0-prerelease.12

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,11 +2,11 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
- ## [5.45.0] - 2025-02-27
5
+ ## [5.45.0] - 2025-03-14
6
6
 
7
- ### Changed
7
+ ### Added
8
8
 
9
- - Version minor update due to children dependencies update (`@semcore/animation` [2.40.1 ~> 2.41.0], `@semcore/utils` [4.45.1 ~> 4.47.0], `@semcore/button` [5.41.2 ~> 5.42.0], `@semcore/flex-box` [5.40.1 ~> 5.41.0], `@semcore/icon` [4.57.1 ~> 4.58.0], `@semcore/core` [2.38.1 ~> 2.39.0]).
9
+ - Build for ESM.
10
10
 
11
11
  ## [5.44.2] - 2025-02-05
12
12
 
@@ -0,0 +1,182 @@
1
+ import f from "@babel/runtime/helpers/esm/objectSpread2";
2
+ import E from "@babel/runtime/helpers/esm/classCallCheck";
3
+ import L from "@babel/runtime/helpers/esm/createClass";
4
+ import A from "@babel/runtime/helpers/esm/assertThisInitialized";
5
+ import z from "@babel/runtime/helpers/esm/inherits";
6
+ import D from "@babel/runtime/helpers/esm/createSuper";
7
+ import m from "@babel/runtime/helpers/esm/defineProperty";
8
+ import { sstyled as M } from "@semcore/utils/lib/core/index";
9
+ import R, { sstyled as g, assignProps as l, Component as $ } from "@semcore/core";
10
+ import n from "react";
11
+ import { Box as u } from "@semcore/flex-box";
12
+ import B from "@semcore/button";
13
+ import d from "@semcore/icon/Close/m";
14
+ import G from "@semcore/utils/lib/enhances/resolveColorEnhance";
15
+ import { FadeInOut as O } from "@semcore/animation";
16
+ import p from "@semcore/utils/lib/logger";
17
+ import V from "@semcore/notice-global";
18
+ import { localizedMessages as b } from "./translations/__intergalactic-dynamic-locales.mjs";
19
+ import j from "@semcore/utils/lib/enhances/i18nEnhance";
20
+ import { cssVariableEnhance as q } from "@semcore/utils/lib/useCssVariable";
21
+ import { Text as S } from "@semcore/typography";
22
+ var F = (
23
+ /*__reshadow_css_start__*/
24
+ (M.insert(
25
+ /*__inner_css_start__*/
26
+ ".___SNotice_9f4fy_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_9f4fy_gg_._theme_info_9f4fy_gg_{background-color:var(--intergalactic-bg-secondary-info, #e9f7ff);border-color:var(--intergalactic-border-info, #8ecdff)}.___SNotice_9f4fy_gg_._theme_info_9f4fy_gg_ .___SCloseIcon_9f4fy_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_9f4fy_gg_._theme_info_9f4fy_gg_ .___SCloseIcon_9f4fy_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SNotice_9f4fy_gg_._theme_danger_9f4fy_gg_{background-color:var(--intergalactic-bg-secondary-critical, #fff0f7);border-color:var(--intergalactic-border-critical, #ffaeb5)}.___SNotice_9f4fy_gg_._theme_danger_9f4fy_gg_ .___SCloseIcon_9f4fy_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}@media (hover:hover){.___SNotice_9f4fy_gg_._theme_danger_9f4fy_gg_ .___SCloseIcon_9f4fy_gg_:hover{color:var(--intergalactic-icon-primary-critical-hover-active, #CC3A42)}}.___SNotice_9f4fy_gg_._theme_warning_9f4fy_gg_{background-color:var(--intergalactic-bg-secondary-warning, #fff3d9);border-color:var(--intergalactic-border-warning, #ffb26e)}.___SNotice_9f4fy_gg_._theme_warning_9f4fy_gg_ .___SCloseIcon_9f4fy_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}@media (hover:hover){.___SNotice_9f4fy_gg_._theme_warning_9f4fy_gg_ .___SCloseIcon_9f4fy_gg_:hover{color:var(--intergalactic-icon-primary-warning-hover-active, #CC5024)}}.___SNotice_9f4fy_gg_._theme_success_9f4fy_gg_{background-color:var(--intergalactic-bg-secondary-success, #dbfee8);border-color:var(--intergalactic-border-success, #59ddaa)}.___SNotice_9f4fy_gg_._theme_success_9f4fy_gg_ .___SCloseIcon_9f4fy_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}@media (hover:hover){.___SNotice_9f4fy_gg_._theme_success_9f4fy_gg_ .___SCloseIcon_9f4fy_gg_:hover{color:var(--intergalactic-icon-primary-success-hover-active, #037E68)}}.___SNotice_9f4fy_gg_._theme_muted_9f4fy_gg_{background-color:var(--intergalactic-bg-secondary-neutral, #f4f5f9);border-color:var(--intergalactic-border-secondary, #e0e1e9)}.___SLabel_9f4fy_gg_._theme_info_9f4fy_gg_,.___SNotice_9f4fy_gg_._theme_muted_9f4fy_gg_ .___SCloseIcon_9f4fy_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}@media (hover:hover){.___SNotice_9f4fy_gg_._theme_muted_9f4fy_gg_ .___SCloseIcon_9f4fy_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SContent_9f4fy_gg_{flex:1 1 auto;width:100%}.___SActions_9f4fy_gg_{flex-shrink:0;margin-top:var(--intergalactic-spacing-3x, 12px)}.___SLabel_9f4fy_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_9f4fy_gg_._theme_danger_9f4fy_gg_{color:var(--intergalactic-icon-primary-critical, #ff4953)}.___SLabel_9f4fy_gg_._theme_warning_9f4fy_gg_{color:var(--intergalactic-icon-primary-warning, #ff642d)}.___SLabel_9f4fy_gg_._theme_success_9f4fy_gg_{color:var(--intergalactic-icon-primary-success, #009f81)}.___SLabel_9f4fy_gg_._theme_muted_9f4fy_gg_{color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SLabel_9f4fy_gg_._theme_custom_9f4fy_gg_{color:var(--color_9f4fy)}.___SCloseIcon_9f4fy_gg_{flex-shrink:0;margin-left:var(--intergalactic-spacing-4x, 16px)}.___SNotice_9f4fy_gg_._theme_custom_9f4fy_gg_{background-color:var(--backgroundColor_9f4fy);border-color:var(--backgroundColor_9f4fy)}.___STitle_9f4fy_gg_{margin-top:var(--intergalactic-spacing-05x, 2px);margin-bottom:var(--intergalactic-spacing-05x, 2px)}.___SText_9f4fy_gg_{margin-top:var(--intergalactic-spacing-1x, 4px);margin-bottom:var(--intergalactic-spacing-1x, 4px)}",
27
+ "9f4fy_gg_"
28
+ ), {
29
+ __SNotice: "___SNotice_9f4fy_gg_",
30
+ __SContent: "___SContent_9f4fy_gg_",
31
+ __SActions: "___SActions_9f4fy_gg_",
32
+ __SLabel: "___SLabel_9f4fy_gg_",
33
+ _theme_info: "_theme_info_9f4fy_gg_",
34
+ _theme_danger: "_theme_danger_9f4fy_gg_",
35
+ _theme_warning: "_theme_warning_9f4fy_gg_",
36
+ _theme_success: "_theme_success_9f4fy_gg_",
37
+ _theme_muted: "_theme_muted_9f4fy_gg_",
38
+ _theme_custom: "_theme_custom_9f4fy_gg_",
39
+ "--color": "--color_9f4fy",
40
+ __SCloseIcon: "___SCloseIcon_9f4fy_gg_",
41
+ "--backgroundColor": "--backgroundColor_9f4fy",
42
+ __STitle: "___STitle_9f4fy_gg_",
43
+ __SText: "___SText_9f4fy_gg_"
44
+ })
45
+ );
46
+ function C(_) {
47
+ return !["danger", "warning", "success", "info", "muted"].includes(_);
48
+ }
49
+ var y = /* @__PURE__ */ function(_) {
50
+ z(r, _);
51
+ var o = D(r);
52
+ function r() {
53
+ var t;
54
+ E(this, r);
55
+ for (var e = arguments.length, a = new Array(e), i = 0; i < e; i++)
56
+ a[i] = arguments[i];
57
+ return t = o.call.apply(o, [this].concat(a)), m(A(t), "ref", /* @__PURE__ */ n.createRef()), t;
58
+ }
59
+ return L(r, [{
60
+ key: "componentDidMount",
61
+ value: function() {
62
+ if (this.ref.current && process.env.NODE_ENV !== "production" && !["muted", "danger"].includes(this.props.theme)) {
63
+ var e = function(i) {
64
+ return !!(i.hasAttribute("aria-label") || i.hasAttribute("aria-labelledby") || i.hasAttribute("title"));
65
+ };
66
+ p.warn(!e(this.ref.current), "Provide unique 'title' or 'aria-label' or 'aria-labelledby' to help identify the type and importance of notification", this.props["data-ui-name"] || r.displayName);
67
+ }
68
+ }
69
+ }, {
70
+ key: "getLabelProps",
71
+ value: function() {
72
+ var e = this.asProps, a = e.theme, i = e.resolveColor;
73
+ return {
74
+ theme: a,
75
+ resolveColor: i
76
+ };
77
+ }
78
+ }, {
79
+ key: "getCloseIconProps",
80
+ value: function() {
81
+ var e = this.asProps.getI18nText;
82
+ return {
83
+ getI18nText: e
84
+ };
85
+ }
86
+ }, {
87
+ key: "getCloseProps",
88
+ value: function() {
89
+ var e = this.asProps.getI18nText;
90
+ return {
91
+ getI18nText: e
92
+ };
93
+ }
94
+ }, {
95
+ key: "render",
96
+ value: function() {
97
+ var e = this.asProps, a, i = O, c = this.asProps, v = c.Children, x = c.styles, N = c.hidden, s = c.theme, I = c.use, T = c.resolveColor, P = c.getI18nText, k = T(s), w = C(s) ? "custom" : s;
98
+ if (I === "primary")
99
+ return p.warn(!0, 'Deprecated property-value pair "use=primary", use component <NoticeGlobal/> instead', r.displayName), /* @__PURE__ */ n.createElement(V, this.asProps);
100
+ var h = P(s === "danger" ? "criticalNotification" : "notification");
101
+ return s === "muted" && (h = void 0), a = g(x), /* @__PURE__ */ n.createElement(i, a.cn("SNotice", f({}, l({
102
+ visible: !N,
103
+ "use:theme": w,
104
+ backgroundColor: k,
105
+ role: "region",
106
+ "aria-label": h,
107
+ ref: this.ref
108
+ }, e))), /* @__PURE__ */ n.createElement(v, a.cn("Children", {})));
109
+ }
110
+ }]), r;
111
+ }($);
112
+ m(y, "displayName", "Notice");
113
+ m(y, "style", F);
114
+ m(y, "enhance", [j(b), q({
115
+ variable: "--intergalactic-duration-popper",
116
+ fallback: "200",
117
+ map: Number.parseInt,
118
+ prop: "duration"
119
+ }), G()]);
120
+ m(y, "defaultProps", {
121
+ theme: "info",
122
+ i18n: b,
123
+ locale: "en"
124
+ });
125
+ function W(_) {
126
+ var o = arguments[0], r, t = _.styles, e = _.theme, a = _.resolveColor, i = u, c = C(e) ? "custom" : e, v = a(e);
127
+ return r = g(t), /* @__PURE__ */ n.createElement(i, r.cn("SLabel", f({}, l({
128
+ "use:theme": c,
129
+ color: v
130
+ }, o))));
131
+ }
132
+ function H(_) {
133
+ var o = arguments[0], r, t = _.styles, e = S;
134
+ return r = g(t), /* @__PURE__ */ n.createElement(e, r.cn("STitle", f({}, l({
135
+ tag: "div",
136
+ size: 300,
137
+ fontWeight: "bold"
138
+ }, o))));
139
+ }
140
+ function J(_) {
141
+ var o = arguments[0], r, t = _.styles, e = S;
142
+ return r = g(t), /* @__PURE__ */ n.createElement(e, r.cn("SText", f({}, l({
143
+ tag: "div"
144
+ }, o))));
145
+ }
146
+ function K(_) {
147
+ var o = arguments[0], r, t = _.styles, e = u;
148
+ return r = g(t), /* @__PURE__ */ n.createElement(e, r.cn("SActions", f({}, l({}, o))));
149
+ }
150
+ function Q(_) {
151
+ var o = arguments[0], r, t = _.styles, e = u;
152
+ return r = g(t), /* @__PURE__ */ n.createElement(e, r.cn("SContent", f({}, l({}, o))));
153
+ }
154
+ function U(_) {
155
+ var o = arguments[0], r, t = _.styles, e = _.getI18nText, a = u;
156
+ return r = g(t), /* @__PURE__ */ n.createElement(a, r.cn("SCloseIcon", f({}, l({
157
+ tag: d,
158
+ interactive: !0,
159
+ "aria-label": e("close")
160
+ }, o))));
161
+ }
162
+ function X(_) {
163
+ var o = arguments[0], r, t = _.styles, e = _.getI18nText, a = B;
164
+ return r = g(t), /* @__PURE__ */ n.createElement(a, r.cn("SCloseIcon", f({}, l({
165
+ addonLeft: d,
166
+ use: "tertiary",
167
+ theme: "muted",
168
+ "aria-label": e("close")
169
+ }, o))));
170
+ }
171
+ var de = R(y, {
172
+ Label: W,
173
+ Title: H,
174
+ Text: J,
175
+ Actions: K,
176
+ Content: Q,
177
+ CloseIcon: U,
178
+ Close: X
179
+ });
180
+ export {
181
+ de as default
182
+ };
@@ -0,0 +1,35 @@
1
+ import _ from "@babel/runtime/helpers/esm/classCallCheck";
2
+ import N from "@babel/runtime/helpers/esm/createClass";
3
+ import v from "@babel/runtime/helpers/esm/inherits";
4
+ import P from "@babel/runtime/helpers/esm/createSuper";
5
+ import u from "@babel/runtime/helpers/esm/defineProperty";
6
+ import S, { assignProps as b, Component as y } from "@semcore/core";
7
+ import e from "react";
8
+ import l from "@semcore/utils/lib/isNode";
9
+ import t from "./Notice.mjs";
10
+ var m = /* @__PURE__ */ function(f) {
11
+ v(o, f);
12
+ var C = P(o);
13
+ function o() {
14
+ return _(this, o), C.apply(this, arguments);
15
+ }
16
+ return N(o, [{
17
+ key: "render",
18
+ value: function() {
19
+ var d = this.asProps, h = t, r = this.asProps, n = r.Children, a = r.label, i = r.title, s = r.actions, c = r.closable, E = r.onClose, p = /* @__PURE__ */ e.createElement(n, null);
20
+ return typeof n.origin == "string" && (p = l(i) || l(a) || c ? /* @__PURE__ */ e.createElement(t.Text, null, /* @__PURE__ */ e.createElement(n, null)) : /* @__PURE__ */ e.createElement(n, null)), /* @__PURE__ */ e.createElement(h, b({
21
+ __excludeProps: ["title"]
22
+ }, d), l(a) && /* @__PURE__ */ e.createElement(t.Label, null, a), /* @__PURE__ */ e.createElement(t.Content, null, l(i) && /* @__PURE__ */ e.createElement(t.Title, null, i), p, l(s) && /* @__PURE__ */ e.createElement(t.Actions, null, s)), c && /* @__PURE__ */ e.createElement(t.Close, {
23
+ onClick: E
24
+ }));
25
+ }
26
+ }]), o;
27
+ }(y);
28
+ u(m, "displayName", "NoticeSmart");
29
+ u(m, "defaultProps", {
30
+ theme: "info"
31
+ });
32
+ const w = S(m);
33
+ export {
34
+ w as default
35
+ };
@@ -0,0 +1,6 @@
1
+ import o from "./Notice.mjs";
2
+ import { default as a } from "./NoticeSmart.mjs";
3
+ export {
4
+ a as NoticeSmart,
5
+ o as default
6
+ };
@@ -0,0 +1,33 @@
1
+ import r from "./de.json.mjs";
2
+ import o from "./en.json.mjs";
3
+ import m from "./es.json.mjs";
4
+ import t from "./fr.json.mjs";
5
+ import i from "./it.json.mjs";
6
+ import p from "./ja.json.mjs";
7
+ import f from "./ko.json.mjs";
8
+ import e from "./nl.json.mjs";
9
+ import s from "./pt.json.mjs";
10
+ import a from "./tr.json.mjs";
11
+ import l from "./vi.json.mjs";
12
+ import v from "./zh.json.mjs";
13
+ import d from "./pl.json.mjs";
14
+ import n from "./sv.json.mjs";
15
+ var B = {
16
+ de: r,
17
+ en: o,
18
+ es: m,
19
+ fr: t,
20
+ it: i,
21
+ ja: p,
22
+ ko: f,
23
+ nl: e,
24
+ pt: s,
25
+ tr: a,
26
+ vi: l,
27
+ zh: v,
28
+ pl: d,
29
+ sv: n
30
+ };
31
+ export {
32
+ B as localizedMessages
33
+ };
@@ -0,0 +1,11 @@
1
+ const i = "Benachrichtigung", c = "Kritische Benachrichtigung", t = "Benachrichtigung schließen", n = {
2
+ notification: i,
3
+ criticalNotification: c,
4
+ close: t
5
+ };
6
+ export {
7
+ t as close,
8
+ c as criticalNotification,
9
+ n as default,
10
+ i as notification
11
+ };
@@ -0,0 +1,11 @@
1
+ const i = "Notification", t = "Critical notification", o = "Close notification", c = {
2
+ notification: i,
3
+ criticalNotification: t,
4
+ close: o
5
+ };
6
+ export {
7
+ o as close,
8
+ t as criticalNotification,
9
+ c as default,
10
+ i as notification
11
+ };
@@ -0,0 +1,11 @@
1
+ const i = "Notificación", c = "Notificación crítica", t = "Cerrar notificación", o = {
2
+ notification: i,
3
+ criticalNotification: c,
4
+ close: t
5
+ };
6
+ export {
7
+ t as close,
8
+ c as criticalNotification,
9
+ o as default,
10
+ i as notification
11
+ };
@@ -0,0 +1,11 @@
1
+ const i = "Notification", t = "Notification critique", o = "Fermer la notification", c = {
2
+ notification: i,
3
+ criticalNotification: t,
4
+ close: o
5
+ };
6
+ export {
7
+ o as close,
8
+ t as criticalNotification,
9
+ c as default,
10
+ i as notification
11
+ };
@@ -0,0 +1,11 @@
1
+ const i = "Notifica", t = "Notifica critica", c = "Chiudi la notifica", o = {
2
+ notification: i,
3
+ criticalNotification: t,
4
+ close: c
5
+ };
6
+ export {
7
+ c as close,
8
+ t as criticalNotification,
9
+ o as default,
10
+ i as notification
11
+ };
@@ -0,0 +1,11 @@
1
+ const i = "通知", t = "重要な通知", o = "通知を閉じる", c = {
2
+ notification: i,
3
+ criticalNotification: t,
4
+ close: o
5
+ };
6
+ export {
7
+ o as close,
8
+ t as criticalNotification,
9
+ c as default,
10
+ i as notification
11
+ };
@@ -0,0 +1,11 @@
1
+ const i = "알림", o = "중요 알림", t = "알림 닫기", c = {
2
+ notification: i,
3
+ criticalNotification: o,
4
+ close: t
5
+ };
6
+ export {
7
+ t as close,
8
+ o as criticalNotification,
9
+ c as default,
10
+ i as notification
11
+ };
@@ -0,0 +1,11 @@
1
+ const i = "Melding", n = "Belangrijke melding", t = "Kennisgeving sluiten", o = {
2
+ notification: i,
3
+ criticalNotification: n,
4
+ close: t
5
+ };
6
+ export {
7
+ t as close,
8
+ n as criticalNotification,
9
+ o as default,
10
+ i as notification
11
+ };
@@ -0,0 +1,11 @@
1
+ const i = "Powiadomienie", o = "Powiadomienie krytyczne", t = "Zamknij powiadomienie", c = {
2
+ notification: i,
3
+ criticalNotification: o,
4
+ close: t
5
+ };
6
+ export {
7
+ t as close,
8
+ o as criticalNotification,
9
+ c as default,
10
+ i as notification
11
+ };
@@ -0,0 +1,11 @@
1
+ const i = "Notificação", o = "Notificação urgente", t = "Fechar notificação", c = {
2
+ notification: i,
3
+ criticalNotification: o,
4
+ close: t
5
+ };
6
+ export {
7
+ t as close,
8
+ o as criticalNotification,
9
+ c as default,
10
+ i as notification
11
+ };
@@ -0,0 +1,11 @@
1
+ const i = "Avisering", t = "Kritisk avisering", o = "Stäng meddelande", c = {
2
+ notification: i,
3
+ criticalNotification: t,
4
+ close: o
5
+ };
6
+ export {
7
+ o as close,
8
+ t as criticalNotification,
9
+ c as default,
10
+ i as notification
11
+ };
@@ -0,0 +1,11 @@
1
+ const i = "Bildirim", t = "Kritik bildirim", o = "Bildirimi kapat", c = {
2
+ notification: i,
3
+ criticalNotification: t,
4
+ close: o
5
+ };
6
+ export {
7
+ o as close,
8
+ t as criticalNotification,
9
+ c as default,
10
+ i as notification
11
+ };
@@ -0,0 +1,11 @@
1
+ const o = "Thông báo", t = "Thông báo quan trọng", i = "Đóng thông báo", n = {
2
+ notification: o,
3
+ criticalNotification: t,
4
+ close: i
5
+ };
6
+ export {
7
+ i as close,
8
+ t as criticalNotification,
9
+ n as default,
10
+ o as notification
11
+ };
@@ -0,0 +1,11 @@
1
+ const i = "通知", t = "重要通知", o = "关闭通知", c = {
2
+ notification: i,
3
+ criticalNotification: t,
4
+ close: o
5
+ };
6
+ export {
7
+ o as close,
8
+ t as criticalNotification,
9
+ c as default,
10
+ i as notification
11
+ };
package/package.json CHANGED
@@ -1,24 +1,29 @@
1
1
  {
2
2
  "name": "@semcore/notice",
3
3
  "description": "Semrush Notice Component",
4
- "version": "5.45.0-prerelease.1",
4
+ "version": "5.45.0-prerelease.12",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
8
8
  "sideEffects": false,
9
9
  "author": "UI-kit team <ui-kit-team@semrush.com>",
10
10
  "license": "MIT",
11
+ "exports": {
12
+ "require": "./lib/cjs/index.js",
13
+ "import": "./lib/esm/index.mjs",
14
+ "types": "./lib/types/index.d.ts"
15
+ },
11
16
  "dependencies": {
12
- "@semcore/animation": "2.41.0-prerelease.1",
13
- "@semcore/utils": "4.47.0-prerelease.1",
14
- "@semcore/button": "5.42.0-prerelease.1",
15
- "@semcore/flex-box": "5.41.0-prerelease.1",
16
- "@semcore/icon": "4.58.0-prerelease.1",
17
- "@semcore/notice-global": "2.60.0-prerelease.1",
18
- "@semcore/typography": "5.52.0-prerelease.1"
17
+ "@semcore/animation": "2.41.0-prerelease.12",
18
+ "@semcore/utils": "4.48.0-prerelease.12",
19
+ "@semcore/button": "5.42.0-prerelease.12",
20
+ "@semcore/flex-box": "5.41.0-prerelease.12",
21
+ "@semcore/icon": "4.61.0-prerelease.12",
22
+ "@semcore/notice-global": "2.60.0-prerelease.12",
23
+ "@semcore/typography": "5.52.0-prerelease.12"
19
24
  },
20
25
  "peerDependencies": {
21
- "@semcore/core": "^2.39.0-prerelease.1",
26
+ "@semcore/core": "^2.39.0-prerelease.12",
22
27
  "react": "16.8 - 18",
23
28
  "react-dom": "16.8 - 18"
24
29
  },
@@ -32,6 +37,6 @@
32
37
  "@semcore/testing-utils": "1.0.0"
33
38
  },
34
39
  "scripts": {
35
- "build": "pnpm semcore-builder --source=js"
40
+ "build": "pnpm semcore-builder --source=js && pnpm vite build"
36
41
  }
37
42
  }
package/vite.config.ts ADDED
@@ -0,0 +1,17 @@
1
+ import { defineConfig, mergeConfig } from 'vite';
2
+
3
+ import viteConfig from '../../commonVite.config';
4
+
5
+ export default mergeConfig(
6
+ viteConfig,
7
+ defineConfig({
8
+ build: {
9
+ lib: {
10
+ entry: './src/index.js',
11
+ },
12
+ rollupOptions: {
13
+ external: ['react', 'react-dom', 'react/jsx-runtime', /@babel\/runtime\/*/, /@semcore\/*/],
14
+ },
15
+ },
16
+ }),
17
+ );