@semcore/wizard 2.52.0-prerelease.11 → 2.52.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
- ## [2.52.0] - 2025-03-03
5
+ ## [2.52.0] - 2025-03-14
6
6
 
7
- ### Changed
7
+ ### Added
8
8
 
9
- - Version minor update due to children dependencies update (`@semcore/utils` [4.45.1 ~> 4.47.1], `@semcore/flex-box` [5.40.1 ~> 5.41.0], `@semcore/icon` [4.57.1 ~> 4.58.0], `@semcore/modal` [4.53.1 ~> 4.54.0], `@semcore/core` [2.38.1 ~> 2.39.0]).
9
+ - Build for ESM.
10
10
 
11
11
  ## [2.51.1] - 2025-02-05
12
12
 
@@ -0,0 +1,258 @@
1
+ import v from "@babel/runtime/helpers/esm/objectSpread2";
2
+ import I from "@babel/runtime/helpers/esm/classCallCheck";
3
+ import D from "@babel/runtime/helpers/esm/createClass";
4
+ import g from "@babel/runtime/helpers/esm/assertThisInitialized";
5
+ import W from "@babel/runtime/helpers/esm/inherits";
6
+ import B from "@babel/runtime/helpers/esm/createSuper";
7
+ import p from "@babel/runtime/helpers/esm/defineProperty";
8
+ import { sstyled as M } from "@semcore/utils/lib/core/index";
9
+ import F, { sstyled as h, Component as H, assignProps as S } from "@semcore/core";
10
+ import a from "react";
11
+ import { ScreenReaderOnly as $, Box as y } from "@semcore/flex-box";
12
+ import U from "@semcore/modal";
13
+ import K from "@semcore/icon/Check/m";
14
+ import L from "@semcore/utils/lib/enhances/keyboardFocusEnhance";
15
+ import O from "@semcore/utils/lib/enhances/i18nEnhance";
16
+ import { localizedMessages as k } from "./translations/__intergalactic-dynamic-locales.mjs";
17
+ import { setFocus as j } from "@semcore/utils/lib/use/useFocusLock";
18
+ import q from "@semcore/utils/lib/uniqueID";
19
+ import m from "@semcore/button";
20
+ import G from "@semcore/icon/ArrowRight/m";
21
+ import J from "@semcore/icon/ArrowLeft/m";
22
+ var Q = (
23
+ /*__reshadow_css_start__*/
24
+ (M.insert(
25
+ /*__inner_css_start__*/
26
+ ".___SWizard_1ubsy_gg_{max-width:980px;max-height:700px;display:flex;padding:0;background:0 0}.___SSidebar_1ubsy_gg_{background:var(--intergalactic-control-primary-advertising, #5925ab);color:var(--intergalactic-text-primary-invert, #ffffff);font-weight:var(--intergalactic-bold, 700);font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);padding:var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-2x, 8px) calc(var(--intergalactic-spacing-8x, 32px) + var(--intergalactic-spacing-05x, 2px));max-width:220px;flex-shrink:0;box-sizing:border-box;border-radius:var(--intergalactic-modal-rounded, 12px)0 0 var(--intergalactic-modal-rounded, 12px)}@media (max-width:1060px){.___SSidebar_1ubsy_gg_{width:44px}}.___SSidebarHeader_1ubsy_gg_{font-size:var(--intergalactic-fs-300, 16px);margin:0 var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-4x, 16px)}@media (max-width:1060px){.___SSidebarHeader_1ubsy_gg_{display:none}}.___SStepper_1ubsy_gg_{display:flex;font-size:var(--intergalactic-fs-200, 14px);border-radius:var(--intergalactic-control-rounded, 6px);padding:var(--intergalactic-spacing-2x, 8px) var(--intergalactic-spacing-3x, 12px);cursor:pointer;position:relative;overflow:auto;line-height:var(--intergalactic-lh-200, 142%)}@media (hover:hover){.___SStepper_1ubsy_gg_:hover{background:var(--intergalactic-control-primary-advertising-hover, #421983);z-index:1}}.___SStepper_1ubsy_gg_.__active_1ubsy_gg_{background:var(--intergalactic-control-primary-advertising-active, #8649e1)}.___SStepper_1ubsy_gg_.__disabled_1ubsy_gg_,.___SStepper_1ubsy_gg_:disabled{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}@media (max-width:1060px){.___SStepper_1ubsy_gg_{padding:var(--intergalactic-spacing-2x, 8px) var(--intergalactic-spacing-1x, 4px)}@media (hover:hover){.___SStepper_1ubsy_gg_:hover{width:-moz-fit-content;width:fit-content;max-width:220px}.___SStepper_1ubsy_gg_:hover .___SStepDescription_1ubsy_gg_{display:block;border-radius:var(--intergalactic-control-rounded, 6px);white-space:nowrap;overflow:auto}.___SStepper_1ubsy_gg_.__active_1ubsy_gg_:hover .___SStepDescription_1ubsy_gg_{background:var(--intergalactic-control-primary-advertising-active, #8649e1)}}}.___SStepNumber_1ubsy_gg_{display:inline-block;min-width:20px}.___SCompleted_1ubsy_gg_{margin-top:1px}@media (max-width:1060px){.___SStepDescription_1ubsy_gg_{display:none}}.___SContent_1ubsy_gg_{padding:var(--intergalactic-spacing-10x, 40px);width:100%;border-radius:0 var(--intergalactic-modal-rounded, 12px) var(--intergalactic-modal-rounded, 12px)0;background:var(--intergalactic-bg-primary-neutral, #ffffff)}.___SSidebarMenu_1ubsy_gg_{display:contents}",
27
+ "1ubsy_gg_"
28
+ ), {
29
+ __SWizard: "___SWizard_1ubsy_gg_",
30
+ __SStepNumber: "___SStepNumber_1ubsy_gg_",
31
+ __SCompleted: "___SCompleted_1ubsy_gg_",
32
+ __SContent: "___SContent_1ubsy_gg_",
33
+ __SSidebarMenu: "___SSidebarMenu_1ubsy_gg_",
34
+ __SSidebar: "___SSidebar_1ubsy_gg_",
35
+ __SSidebarHeader: "___SSidebarHeader_1ubsy_gg_",
36
+ __SStepper: "___SStepper_1ubsy_gg_",
37
+ _active: "__active_1ubsy_gg_",
38
+ _disabled: "__disabled_1ubsy_gg_",
39
+ __SStepDescription: "___SStepDescription_1ubsy_gg_"
40
+ })
41
+ ), f = /* @__PURE__ */ function(e) {
42
+ W(t, e);
43
+ var _ = B(t);
44
+ function t() {
45
+ var r;
46
+ I(this, t);
47
+ for (var i = arguments.length, n = new Array(i), c = 0; c < i; c++)
48
+ n[c] = arguments[c];
49
+ return r = _.call.apply(_, [this].concat(n)), p(g(r), "_steps", /* @__PURE__ */ new Map()), p(g(r), "modalRef", /* @__PURE__ */ a.createRef()), p(g(r), "contentRef", /* @__PURE__ */ a.createRef()), p(g(r), "state", {
50
+ highlighted: null
51
+ }), p(g(r), "stepperRefs", []), p(g(r), "stepperFocusPrev", function(s) {
52
+ return function() {
53
+ var o = r._steps.get(s);
54
+ o && (r.setState({
55
+ highlighted: o == null ? void 0 : o.step
56
+ }), setTimeout(function() {
57
+ var l;
58
+ (l = r.stepperRefs[s - 1]) === null || l === void 0 || l.focus();
59
+ }, 0));
60
+ };
61
+ }), p(g(r), "stepperFocusNext", function(s) {
62
+ return function() {
63
+ var o = r._steps.get(s + 2);
64
+ o && (r.setState({
65
+ highlighted: o == null ? void 0 : o.step
66
+ }), setTimeout(function() {
67
+ var l;
68
+ (l = r.stepperRefs[s + 1]) === null || l === void 0 || l.focus();
69
+ }, 0));
70
+ };
71
+ }), r;
72
+ }
73
+ return D(t, [{
74
+ key: "getStepProps",
75
+ value: function(i) {
76
+ return {
77
+ steps: this._steps,
78
+ active: i.step === this.asProps.step,
79
+ id: "".concat(this.asProps.uid, "-step-").concat(i.step)
80
+ };
81
+ }
82
+ }, {
83
+ key: "getSidebarProps",
84
+ value: function() {
85
+ return {
86
+ uid: this.asProps.uid
87
+ };
88
+ }
89
+ }, {
90
+ key: "getContentProps",
91
+ value: function() {
92
+ return {
93
+ uid: this.asProps.uid,
94
+ step: this.asProps.step,
95
+ ref: this.contentRef
96
+ };
97
+ }
98
+ }, {
99
+ key: "getStepBackProps",
100
+ value: function() {
101
+ return {
102
+ getI18nText: this.asProps.getI18nText,
103
+ step: this.asProps.step
104
+ };
105
+ }
106
+ }, {
107
+ key: "getStepNextProps",
108
+ value: function() {
109
+ return {
110
+ getI18nText: this.asProps.getI18nText,
111
+ step: this.asProps.step
112
+ };
113
+ }
114
+ }, {
115
+ key: "getStepperProps",
116
+ value: function(i, n) {
117
+ var c = this, s = n + 1;
118
+ if (this._steps.has(i.step)) {
119
+ var o = this._steps.get(i.step);
120
+ s = o.number;
121
+ } else
122
+ this._steps.set(i.step, v({
123
+ number: s
124
+ }, i));
125
+ var l = i.step === this.asProps.step, d = this.state.highlighted === i.step || this.state.highlighted === null && n === 0;
126
+ return {
127
+ active: l,
128
+ tabIndex: d ? 0 : -1,
129
+ number: s,
130
+ getI18nText: this.asProps.getI18nText,
131
+ uid: this.asProps.uid,
132
+ ref: function(b) {
133
+ c.stepperRefs[n] = b;
134
+ },
135
+ focusNext: this.stepperFocusNext(n),
136
+ focusPrev: this.stepperFocusPrev(n)
137
+ };
138
+ }
139
+ }, {
140
+ key: "componentDidUpdate",
141
+ value: function(i) {
142
+ var n = this;
143
+ i.step !== this.asProps.step && (this.setState({
144
+ highlighted: this.asProps.step || null
145
+ }), setTimeout(function() {
146
+ i.step !== n.asProps.step && j(n.contentRef.current);
147
+ }, 1));
148
+ }
149
+ }, {
150
+ key: "render",
151
+ value: function() {
152
+ var i, n = this.Root, c = this.asProps, s = c.Children, o = c.styles, l = c.uid;
153
+ return this._steps.clear(), i = h(o), /* @__PURE__ */ a.createElement(n, i.cn("SWizard", {
154
+ render: U,
155
+ "aria-label": void 0,
156
+ ref: this.modalRef,
157
+ "aria-labelledby": "".concat(l, "-title")
158
+ }), /* @__PURE__ */ a.createElement(s, i.cn("Children", {})));
159
+ }
160
+ }]), t;
161
+ }(H);
162
+ p(f, "displayName", "Wizard");
163
+ p(f, "style", Q);
164
+ p(f, "enhance", [O(k), q()]);
165
+ p(f, "defaultProps", {
166
+ step: null,
167
+ i18n: k,
168
+ locale: "en"
169
+ });
170
+ function V(e) {
171
+ var _ = arguments[0], t, r = e.Children, i = e.styles, n = e.title, c = e.uid, s = y, o = "h2", l = "div";
172
+ return a.useCallback(function(d) {
173
+ }, []), t = h(i), /* @__PURE__ */ a.createElement(s, t.cn("SSidebar", v({}, S({
174
+ __excludeProps: ["title"]
175
+ }, _))), n && /* @__PURE__ */ a.createElement(o, t.cn("SSidebarHeader", {
176
+ id: "".concat(c, "-title")
177
+ }), n), /* @__PURE__ */ a.createElement(l, t.cn("SSidebarMenu", {
178
+ role: "tablist",
179
+ "aria-orientation": "vertical"
180
+ }), /* @__PURE__ */ a.createElement(r, t.cn("Children", {}))));
181
+ }
182
+ function X(e) {
183
+ var _ = arguments[0], t = y, r = e.Children, i = e.styles, n = e.active;
184
+ if (n) {
185
+ var c;
186
+ return c = h(i), /* @__PURE__ */ a.createElement(t, c.cn("SStep", v({}, S({}, _))), /* @__PURE__ */ a.createElement(r, c.cn("Children", {})));
187
+ }
188
+ return null;
189
+ }
190
+ function w(e) {
191
+ var _ = arguments[0], t, r = e.Children, i = e.styles, n = e.step, c = e.active, s = e.onActive, o = e.completed, l = e.disabled, d = e.number, x = e.getI18nText, b = e.uid, C = e.focusNext, P = e.focusPrev, E = y, N = "span", z = "span", R = K, T = a.useCallback(function(u) {
192
+ s && s(n, u);
193
+ }, [n, s]), A = a.useCallback(function(u) {
194
+ s && (u.key === "Enter" || u.key === " ") && (u.preventDefault(), s(n, u)), u.key === "ArrowUp" && (P(), u.stopPropagation()), u.key === "ArrowDown" && (C(), u.stopPropagation());
195
+ }, [n, s, P, C]);
196
+ return t = h(i), /* @__PURE__ */ a.createElement(E, t.cn("SStepper", v({}, S({
197
+ role: "tab",
198
+ id: "".concat(b, "-stepper-").concat(n),
199
+ "aria-controls": c ? "".concat(b, "-content-").concat(n) : void 0,
200
+ "aria-disabled": l,
201
+ "aria-selected": c,
202
+ onClick: T,
203
+ onKeyDown: A
204
+ }, _))), o && /* @__PURE__ */ a.createElement($, t.cn("ScreenReaderOnly", {}), x("completedStep")), /* @__PURE__ */ a.createElement(N, t.cn("SStepNumber", {
205
+ "aria-hidden": "true"
206
+ }), o ? /* @__PURE__ */ a.createElement(R, t.cn("SCompleted", {})) : d), /* @__PURE__ */ a.createElement(z, t.cn("SStepDescription", {}), /* @__PURE__ */ a.createElement(r, t.cn("Children", {}))));
207
+ }
208
+ w.enhance = [L()];
209
+ function Y(e) {
210
+ var _ = arguments[0], t, r = e.Children, i = e.children, n = e.styles, c = e.uid, s = e.step, o = y;
211
+ return t = h(n), /* @__PURE__ */ a.createElement(o, t.cn("SContent", v({}, S({
212
+ role: "tabpanel",
213
+ "aria-labelledby": "".concat(c, "-stepper-").concat(s),
214
+ id: "".concat(c, "-content-").concat(s)
215
+ }, _))), i ? /* @__PURE__ */ a.createElement(r, t.cn("Children", {})) : stepName);
216
+ }
217
+ function Z(e) {
218
+ var _ = arguments[0], t, r = m, i = e.Children, n = e.children, c = e.styles, s = e.getI18nText, o = e.stepName, l = a.useCallback(function() {
219
+ var d;
220
+ (d = e.onActive) === null || d === void 0 || d.call(e, e.step - 1);
221
+ }, [e.step]);
222
+ return t = h(c), /* @__PURE__ */ a.createElement(r, t.cn("SStepBack", v({}, S({
223
+ use: "tertiary",
224
+ size: "l",
225
+ onClick: l,
226
+ "aria-label": s("backButton", {
227
+ buttonName: o
228
+ })
229
+ }, _))), /* @__PURE__ */ a.createElement(m.Addon, null, /* @__PURE__ */ a.createElement(J, t.cn("ArrowLeft", {}))), /* @__PURE__ */ a.createElement(m.Text, null, n ? /* @__PURE__ */ a.createElement(i, t.cn("Children", {})) : o));
230
+ }
231
+ function ee(e) {
232
+ var _ = arguments[0], t, r = m, i = e.Children, n = e.children, c = e.styles, s = e.getI18nText, o = e.stepName, l = a.useCallback(function() {
233
+ var d;
234
+ (d = e.onActive) === null || d === void 0 || d.call(e, e.step + 1);
235
+ }, [e.step]);
236
+ return t = h(c), /* @__PURE__ */ a.createElement(r, t.cn("SStepNext", v({}, S({
237
+ use: "tertiary",
238
+ size: "l",
239
+ onClick: l,
240
+ "aria-label": s("nextButton", {
241
+ buttonName: o
242
+ })
243
+ }, _))), /* @__PURE__ */ a.createElement(m.Text, null, n ? /* @__PURE__ */ a.createElement(i, t.cn("Children", {})) : o), /* @__PURE__ */ a.createElement(m.Addon, null, /* @__PURE__ */ a.createElement(G, t.cn("ArrowRight", {}))));
244
+ }
245
+ var xe = F(f, {
246
+ Sidebar: V,
247
+ Content: Y,
248
+ Step: X,
249
+ Stepper: w,
250
+ StepBack: Z,
251
+ StepNext: ee
252
+ }), Ce = function(_) {
253
+ return _;
254
+ };
255
+ export {
256
+ xe as default,
257
+ Ce as wrapWizardStepper
258
+ };
@@ -0,0 +1,5 @@
1
+ import { default as p, wrapWizardStepper as a } from "./Wizard.mjs";
2
+ export {
3
+ p as default,
4
+ a as wrapWizardStepper
5
+ };
@@ -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 t = "Abgeschlossener Schritt", e = "Zurück zu {buttonName}", o = "Weiter zu {buttonName}", n = {
2
+ completedStep: t,
3
+ backButton: e,
4
+ nextButton: o
5
+ };
6
+ export {
7
+ e as backButton,
8
+ t as completedStep,
9
+ n as default,
10
+ o as nextButton
11
+ };
@@ -0,0 +1,11 @@
1
+ const t = "Completed step", o = "Back to {buttonName}", e = "Go to {buttonName}", n = {
2
+ completedStep: t,
3
+ backButton: o,
4
+ nextButton: e
5
+ };
6
+ export {
7
+ o as backButton,
8
+ t as completedStep,
9
+ n as default,
10
+ e as nextButton
11
+ };
@@ -0,0 +1,11 @@
1
+ const t = "Paso completado", o = "Volver a {buttonName}", e = "Continuar a {buttonName}", n = {
2
+ completedStep: t,
3
+ backButton: o,
4
+ nextButton: e
5
+ };
6
+ export {
7
+ o as backButton,
8
+ t as completedStep,
9
+ n as default,
10
+ e as nextButton
11
+ };
@@ -0,0 +1,11 @@
1
+ const t = "Étape terminée", e = "Retour à {buttonName}", n = "Continuer vers {buttonName}", o = {
2
+ completedStep: t,
3
+ backButton: e,
4
+ nextButton: n
5
+ };
6
+ export {
7
+ e as backButton,
8
+ t as completedStep,
9
+ o as default,
10
+ n as nextButton
11
+ };
@@ -0,0 +1,11 @@
1
+ const t = "Fase completata", o = "Torna a {buttonName}", n = "Continua a {buttonName}", e = {
2
+ completedStep: t,
3
+ backButton: o,
4
+ nextButton: n
5
+ };
6
+ export {
7
+ o as backButton,
8
+ t as completedStep,
9
+ e as default,
10
+ n as nextButton
11
+ };
@@ -0,0 +1,11 @@
1
+ const t = "完成したステップ", o = "{buttonName}に戻る", e = "{buttonName} に移動", n = {
2
+ completedStep: t,
3
+ backButton: o,
4
+ nextButton: e
5
+ };
6
+ export {
7
+ o as backButton,
8
+ t as completedStep,
9
+ n as default,
10
+ e as nextButton
11
+ };
@@ -0,0 +1,11 @@
1
+ const t = "단계 완료됨", o = "{buttonName} 단계로 돌아가기", e = "{buttonName}로 계속", n = {
2
+ completedStep: t,
3
+ backButton: o,
4
+ nextButton: e
5
+ };
6
+ export {
7
+ o as backButton,
8
+ t as completedStep,
9
+ n as default,
10
+ e as nextButton
11
+ };
@@ -0,0 +1,11 @@
1
+ const t = "Voltooide stap", o = "Terug naar {buttonName}", n = "Door naar {buttonName}", e = {
2
+ completedStep: t,
3
+ backButton: o,
4
+ nextButton: n
5
+ };
6
+ export {
7
+ o as backButton,
8
+ t as completedStep,
9
+ e as default,
10
+ n as nextButton
11
+ };
@@ -0,0 +1,11 @@
1
+ const t = "Ukończony krok", o = "Wróć do: {buttonName}", e = "Dalej do: {buttonName}", n = {
2
+ completedStep: t,
3
+ backButton: o,
4
+ nextButton: e
5
+ };
6
+ export {
7
+ o as backButton,
8
+ t as completedStep,
9
+ n as default,
10
+ e as nextButton
11
+ };
@@ -0,0 +1,11 @@
1
+ const t = "Etapa concluída", o = "Voltar para {buttonName}", a = "Continuar para {buttonName}", n = {
2
+ completedStep: t,
3
+ backButton: o,
4
+ nextButton: a
5
+ };
6
+ export {
7
+ o as backButton,
8
+ t as completedStep,
9
+ n as default,
10
+ a as nextButton
11
+ };
@@ -0,0 +1,11 @@
1
+ const t = "Genomfört steg", o = "Tillbaka till {buttonName}", e = "Fortsätt till {buttonName}", n = {
2
+ completedStep: t,
3
+ backButton: o,
4
+ nextButton: e
5
+ };
6
+ export {
7
+ o as backButton,
8
+ t as completedStep,
9
+ n as default,
10
+ e as nextButton
11
+ };
@@ -0,0 +1,11 @@
1
+ const t = "Tamamlanan adım", e = "Geri dön{buttonName}", n = "{buttonName} adresine devam edin", a = {
2
+ completedStep: t,
3
+ backButton: e,
4
+ nextButton: n
5
+ };
6
+ export {
7
+ e as backButton,
8
+ t as completedStep,
9
+ a as default,
10
+ n as nextButton
11
+ };
@@ -0,0 +1,11 @@
1
+ const t = "Bước đã hoàn thành", n = "Quay lại {buttonName}", o = "Tiếp tục đến {buttonName}", e = {
2
+ completedStep: t,
3
+ backButton: n,
4
+ nextButton: o
5
+ };
6
+ export {
7
+ n as backButton,
8
+ t as completedStep,
9
+ e as default,
10
+ o as nextButton
11
+ };
@@ -0,0 +1,11 @@
1
+ const t = "已完成的步骤", o = "返回到{buttonName}", e = "继续到 {buttonName}", n = {
2
+ completedStep: t,
3
+ backButton: o,
4
+ nextButton: e
5
+ };
6
+ export {
7
+ o as backButton,
8
+ t as completedStep,
9
+ n as default,
10
+ e as nextButton
11
+ };
package/package.json CHANGED
@@ -1,21 +1,27 @@
1
1
  {
2
2
  "name": "@semcore/wizard",
3
3
  "description": "Semrush Wizard Component",
4
- "version": "2.52.0-prerelease.11",
4
+ "version": "2.52.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/utils": "4.47.1-prerelease.11",
13
- "@semcore/flex-box": "5.41.0-prerelease.11",
14
- "@semcore/icon": "4.58.0-prerelease.11",
15
- "@semcore/modal": "4.54.0-prerelease.11"
17
+ "@semcore/button": "5.42.0-prerelease.12",
18
+ "@semcore/utils": "4.48.0-prerelease.12",
19
+ "@semcore/flex-box": "5.41.0-prerelease.12",
20
+ "@semcore/icon": "4.61.0-prerelease.12",
21
+ "@semcore/modal": "4.54.0-prerelease.12"
16
22
  },
17
23
  "peerDependencies": {
18
- "@semcore/core": "^2.39.0-prerelease.11",
24
+ "@semcore/core": "^2.39.0-prerelease.12",
19
25
  "react": "16.8 - 18",
20
26
  "react-dom": "16.8 - 18"
21
27
  },
@@ -29,6 +35,6 @@
29
35
  "@semcore/testing-utils": "1.0.0"
30
36
  },
31
37
  "scripts": {
32
- "build": "pnpm semcore-builder --source=js"
38
+ "build": "pnpm semcore-builder --source=js && pnpm vite build"
33
39
  }
34
40
  }
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
+ );