@semcore/typography 5.52.0-prerelease.11 → 5.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 +3 -3
- package/lib/esm/Blockquote.mjs +30 -0
- package/lib/esm/Hint.mjs +69 -0
- package/lib/esm/List.mjs +89 -0
- package/lib/esm/Text.mjs +69 -0
- package/lib/esm/index.mjs +10 -0
- package/package.json +11 -6
- package/vite.config.ts +24 -0
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.52.0] - 2025-03-
|
|
5
|
+
## [5.52.0] - 2025-03-14
|
|
6
6
|
|
|
7
|
-
###
|
|
7
|
+
### Added
|
|
8
8
|
|
|
9
|
-
-
|
|
9
|
+
- Build for ESM.
|
|
10
10
|
|
|
11
11
|
## [5.51.1] - 2025-02-05
|
|
12
12
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import g from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import { sstyled as u } from "@semcore/utils/lib/core/index";
|
|
3
|
+
import { createBaseComponent as m, sstyled as p, assignProps as f } from "@semcore/core";
|
|
4
|
+
import e from "react";
|
|
5
|
+
import b from "@semcore/utils/lib/isNode";
|
|
6
|
+
import { Box as h } from "@semcore/flex-box";
|
|
7
|
+
var v = (
|
|
8
|
+
/*__reshadow_css_start__*/
|
|
9
|
+
(u.insert(
|
|
10
|
+
/*__inner_css_start__*/
|
|
11
|
+
'.___SBlockquote_1qib0_gg_{position:relative;display:flex;font-style:italic;font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%);color:var(--intergalactic-text-primary, #191b23)}.___SDoubleQuotation_1qib0_gg_{position:relative;margin-right:var(--intergalactic-spacing-5x, 20px);font-family:"Times New Roman",serif;font-style:normal;font-size:68px;line-height:52px;color:var(--intergalactic-text-large-secondary, #a9abb6)}.___SAuthor_1qib0_gg_{display:block;margin-top:var(--intergalactic-spacing-4x, 16px);color:var(--intergalactic-text-secondary, #6c6e79);font-style:normal;font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}',
|
|
12
|
+
"1qib0_gg_"
|
|
13
|
+
), {
|
|
14
|
+
__SBlockquote: "___SBlockquote_1qib0_gg_",
|
|
15
|
+
__SDoubleQuotation: "___SDoubleQuotation_1qib0_gg_",
|
|
16
|
+
__SAuthor: "___SAuthor_1qib0_gg_"
|
|
17
|
+
})
|
|
18
|
+
);
|
|
19
|
+
function r(o, i) {
|
|
20
|
+
var l = arguments[0], t, n = h, c = "span", _ = "cite", s = o.children, a = o.author;
|
|
21
|
+
return t = p(v), /* @__PURE__ */ e.createElement(n, t.cn("SBlockquote", g({}, f({
|
|
22
|
+
tag: "blockquote",
|
|
23
|
+
ref: i
|
|
24
|
+
}, l))), /* @__PURE__ */ e.createElement(c, t.cn("SDoubleQuotation", {}), "“"), /* @__PURE__ */ e.createElement("span", t.cn("span", {}), s, b(a) && /* @__PURE__ */ e.createElement(_, t.cn("SAuthor", {}), a)));
|
|
25
|
+
}
|
|
26
|
+
r.displayName = "Blockquote";
|
|
27
|
+
const B = m(r);
|
|
28
|
+
export {
|
|
29
|
+
B as default
|
|
30
|
+
};
|
package/lib/esm/Hint.mjs
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import s from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import y from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
|
+
import S from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
+
import b from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
+
import H from "@babel/runtime/helpers/esm/createSuper";
|
|
6
|
+
import g from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
+
import { sstyled as A } from "@semcore/utils/lib/core/index";
|
|
8
|
+
import T, { sstyled as c, assignProps as l, Component as k } from "@semcore/core";
|
|
9
|
+
import n from "react";
|
|
10
|
+
import { Box as f } from "@semcore/flex-box";
|
|
11
|
+
import C from "@semcore/utils/lib/enhances/keyboardFocusEnhance";
|
|
12
|
+
import E from "@semcore/utils/lib/addonTextChildren";
|
|
13
|
+
import P from "./Text.mjs";
|
|
14
|
+
var R = (
|
|
15
|
+
/*__reshadow_css_start__*/
|
|
16
|
+
(A.insert(
|
|
17
|
+
/*__inner_css_start__*/
|
|
18
|
+
".___SHint_pu28t_gg_{display:inline-block;transition:all .15s ease-in-out;-webkit-text-decoration:none;text-decoration:none;outline:0;cursor:pointer;color:var(--intergalactic-text-secondary, #6c6e79)}.___SHint_pu28t_gg_.__active_pu28t_gg_,.___SHint_pu28t_gg_:active{color:var(--intergalactic-text-hint-hover-active, #484a54)}@media (hover:hover){.___SHint_pu28t_gg_:hover{color:var(--intergalactic-text-hint-hover-active, #484a54)}}.___SHint_pu28t_gg_.__keyboardFocused_pu28t_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SHint_pu28t_gg_.__disabled_pu28t_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___SAddon_pu28t_gg_{vertical-align:middle;display:inline-flex}.___SHint_pu28t_gg_ .___SAddon_pu28t_gg_:not(:only-child):first-child{margin-right:var(--intergalactic-spacing-1x, 4px)}.___SHint_pu28t_gg_ .___SAddon_pu28t_gg_:not(:only-child):last-child{margin-left:var(--intergalactic-spacing-1x, 4px)}.___SText_pu28t_gg_{border-bottom-width:1px;border-bottom-style:dashed;border-color:currentColor}@media (prefers-reduced-motion){.___SHint_pu28t_gg_{transition:none}}",
|
|
19
|
+
"pu28t_gg_"
|
|
20
|
+
), {
|
|
21
|
+
__SHint: "___SHint_pu28t_gg_",
|
|
22
|
+
_keyboardFocused: "__keyboardFocused_pu28t_gg_",
|
|
23
|
+
_disabled: "__disabled_pu28t_gg_",
|
|
24
|
+
__SAddon: "___SAddon_pu28t_gg_",
|
|
25
|
+
__SText: "___SText_pu28t_gg_",
|
|
26
|
+
_active: "__active_pu28t_gg_"
|
|
27
|
+
})
|
|
28
|
+
), d = /* @__PURE__ */ function(e) {
|
|
29
|
+
b(t, e);
|
|
30
|
+
var _ = H(t);
|
|
31
|
+
function t() {
|
|
32
|
+
return y(this, t), _.apply(this, arguments);
|
|
33
|
+
}
|
|
34
|
+
return S(t, [{
|
|
35
|
+
key: "render",
|
|
36
|
+
value: function() {
|
|
37
|
+
var r = this.asProps, p, v = P, a = this.asProps, h = a.styles, x = a.Children, u = a.addonLeft, m = a.addonRight;
|
|
38
|
+
return p = c(h), /* @__PURE__ */ n.createElement(v, p.cn("SHint", s({}, l({
|
|
39
|
+
tag: "abbr"
|
|
40
|
+
}, r))), u ? /* @__PURE__ */ n.createElement(i.Addon, {
|
|
41
|
+
tag: u
|
|
42
|
+
}) : null, E(x, i.Text, i.Addon), m ? /* @__PURE__ */ n.createElement(i.Addon, {
|
|
43
|
+
tag: m
|
|
44
|
+
}) : null);
|
|
45
|
+
}
|
|
46
|
+
}]), t;
|
|
47
|
+
}(k);
|
|
48
|
+
g(d, "displayName", "Hint");
|
|
49
|
+
g(d, "style", R);
|
|
50
|
+
g(d, "enhance", [C()]);
|
|
51
|
+
function F(e) {
|
|
52
|
+
var _ = arguments[0], t, o = f, r = e.styles;
|
|
53
|
+
return t = c(r), /* @__PURE__ */ n.createElement(o, t.cn("SAddon", s({}, l({
|
|
54
|
+
tag: "span"
|
|
55
|
+
}, _))));
|
|
56
|
+
}
|
|
57
|
+
function w(e) {
|
|
58
|
+
var _ = arguments[0], t, o = f, r = e.styles;
|
|
59
|
+
return t = c(r), /* @__PURE__ */ n.createElement(o, t.cn("SText", s({}, l({
|
|
60
|
+
tag: "span"
|
|
61
|
+
}, _))));
|
|
62
|
+
}
|
|
63
|
+
var i = T(d, {
|
|
64
|
+
Text: w,
|
|
65
|
+
Addon: F
|
|
66
|
+
});
|
|
67
|
+
export {
|
|
68
|
+
i as default
|
|
69
|
+
};
|
package/lib/esm/List.mjs
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import p from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import u from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
|
+
import S from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
+
import y from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
+
import h from "@babel/runtime/helpers/esm/createSuper";
|
|
6
|
+
import s from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
+
import { sstyled as R } from "@semcore/utils/lib/core/index";
|
|
8
|
+
import C, { sstyled as g, assignProps as c, Component as k } from "@semcore/core";
|
|
9
|
+
import a from "react";
|
|
10
|
+
import { Flex as w } from "@semcore/flex-box";
|
|
11
|
+
import A from "@semcore/utils/lib/isNode";
|
|
12
|
+
import { isAdvanceMode as $ } from "@semcore/utils/lib/findComponent";
|
|
13
|
+
import I from "./Text.mjs";
|
|
14
|
+
var q = (
|
|
15
|
+
/*__reshadow_css_start__*/
|
|
16
|
+
(R.insert(
|
|
17
|
+
/*__inner_css_start__*/
|
|
18
|
+
".___SList_1q6nn_gg_{padding:0;margin:0;list-style-type:none}.___SContent_1q6nn_gg_{overflow:inherit;text-overflow:inherit}.___SItem_1q6nn_gg_+.___SItem_1q6nn_gg_,.___SList_1q6nn_gg_ .___SList_1q6nn_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}.___SItem_1q6nn_gg_{display:flex}.___SMarker_1q6nn_gg_{margin-right:var(--intergalactic-spacing-2x, 8px);color:var(--intergalactic-text-secondary, #6c6e79);line-height:normal}",
|
|
19
|
+
"1q6nn_gg_"
|
|
20
|
+
), {
|
|
21
|
+
__SList: "___SList_1q6nn_gg_",
|
|
22
|
+
__SContent: "___SContent_1q6nn_gg_",
|
|
23
|
+
__SItem: "___SItem_1q6nn_gg_",
|
|
24
|
+
__SMarker: "___SMarker_1q6nn_gg_"
|
|
25
|
+
})
|
|
26
|
+
), m = /* @__PURE__ */ function(n) {
|
|
27
|
+
y(e, n);
|
|
28
|
+
var i = h(e);
|
|
29
|
+
function e() {
|
|
30
|
+
return u(this, e), i.apply(this, arguments);
|
|
31
|
+
}
|
|
32
|
+
return S(e, [{
|
|
33
|
+
key: "getItemProps",
|
|
34
|
+
value: function() {
|
|
35
|
+
var r = this.asProps.marker;
|
|
36
|
+
return {
|
|
37
|
+
marker: r
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
}, {
|
|
41
|
+
key: "render",
|
|
42
|
+
value: function() {
|
|
43
|
+
var r = this.asProps, t, l = I, _ = this.asProps.styles;
|
|
44
|
+
return t = g(_), /* @__PURE__ */ a.createElement(l, t.cn("SList", p({}, c({
|
|
45
|
+
tag: "ul",
|
|
46
|
+
role: "list"
|
|
47
|
+
}, r))));
|
|
48
|
+
}
|
|
49
|
+
}]), e;
|
|
50
|
+
}(k);
|
|
51
|
+
s(m, "displayName", "List");
|
|
52
|
+
s(m, "style", q);
|
|
53
|
+
s(m, "defaultProps", {
|
|
54
|
+
marker: "•"
|
|
55
|
+
});
|
|
56
|
+
var d = /* @__PURE__ */ function(n) {
|
|
57
|
+
y(e, n);
|
|
58
|
+
var i = h(e);
|
|
59
|
+
function e() {
|
|
60
|
+
return u(this, e), i.apply(this, arguments);
|
|
61
|
+
}
|
|
62
|
+
return S(e, [{
|
|
63
|
+
key: "render",
|
|
64
|
+
value: function() {
|
|
65
|
+
var r = this.asProps, t, l = I, _ = this.asProps, P = _.styles, x = _.children, f = _.marker, v = _.Children, M = "span", E = "div", N = $(v, [j.Item.Content.displayName]);
|
|
66
|
+
return t = g(P), /* @__PURE__ */ a.createElement(l, t.cn("SItem", p({}, c({
|
|
67
|
+
tag: "li",
|
|
68
|
+
role: "listitem"
|
|
69
|
+
}, r))), A(f) && /* @__PURE__ */ a.createElement(M, t.cn("SMarker", {
|
|
70
|
+
"aria-hidden": "true"
|
|
71
|
+
}), f), N ? /* @__PURE__ */ a.createElement(v, t.cn("Children", {})) : /* @__PURE__ */ a.createElement(E, t.cn("SContent", {}), x));
|
|
72
|
+
}
|
|
73
|
+
}]), e;
|
|
74
|
+
}(k);
|
|
75
|
+
s(d, "style", q);
|
|
76
|
+
s(d, "displayName", "Item");
|
|
77
|
+
function L(n) {
|
|
78
|
+
var i = arguments[0], e, o = n.styles, r = n.children, t = w;
|
|
79
|
+
return e = g(o), /* @__PURE__ */ a.createElement(t, e.cn("SContent", p({}, c({}, i))), r);
|
|
80
|
+
}
|
|
81
|
+
L.displayName = "Content";
|
|
82
|
+
var b = C(d, {
|
|
83
|
+
Content: L
|
|
84
|
+
}), j = C(m, {
|
|
85
|
+
Item: b
|
|
86
|
+
});
|
|
87
|
+
export {
|
|
88
|
+
j as default
|
|
89
|
+
};
|
package/lib/esm/Text.mjs
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import l from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import { sstyled as w } from "@semcore/utils/lib/core/index";
|
|
3
|
+
import { createBaseComponent as c, sstyled as x, assignProps as f } from "@semcore/core";
|
|
4
|
+
import h from "react";
|
|
5
|
+
import { Box as d } from "@semcore/flex-box";
|
|
6
|
+
import { useColorResolver as p } from "@semcore/utils/lib/use/useColorResolver";
|
|
7
|
+
var z = (
|
|
8
|
+
/*__reshadow_css_start__*/
|
|
9
|
+
(w.insert(
|
|
10
|
+
/*__inner_css_start__*/
|
|
11
|
+
'.___SText_owus2_gg_{padding:0;margin:0}.___SText_owus2_gg_._size_100_owus2_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%)}.___SText_owus2_gg_._size_200_owus2_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_owus2_gg_._size_300_owus2_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SText_owus2_gg_._size_400_owus2_gg_{font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%)}.___SText_owus2_gg_._size_500_owus2_gg_{font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%)}.___SText_owus2_gg_._size_600_owus2_gg_{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%)}.___SText_owus2_gg_._size_700_owus2_gg_{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%)}.___SText_owus2_gg_._size_800_owus2_gg_{font-size:var(--intergalactic-fs-800, 48px);line-height:var(--intergalactic-lh-800, 117%)}.___SText_owus2_gg_.__noWrap_owus2_gg_{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.___SText_owus2_gg_.__medium_owus2_gg_{font-weight:var(--intergalactic-medium, 500)}.___SText_owus2_gg_.__semibold_owus2_gg_{font-weight:var(--intergalactic-semi-bold, 600)}.___SText_owus2_gg_.__bold_owus2_gg_{font-weight:var(--intergalactic-bold, 700)}.___SText_owus2_gg_.__italic_owus2_gg_{font-style:italic}.___SText_owus2_gg_.__monospace_owus2_gg_{font-family:Consolas,"Roboto Mono",Menlo,Courier,monospace}.___SText_owus2_gg_.__uppercase_owus2_gg_{text-transform:uppercase}.___SText_owus2_gg_.__lowercase_owus2_gg_{text-transform:lowercase}.___SText_owus2_gg_.__capitalize_owus2_gg_{text-transform:capitalize}.___SText_owus2_gg_.__decoration_owus2_gg_{-webkit-text-decoration:var(--decoration_owus2);text-decoration:var(--decoration_owus2)}.___SText_owus2_gg_.__color_owus2_gg_{color:var(--color_owus2)}.___SText_owus2_gg_.__fontSize_owus2_gg_{font-size:var(--fontSize_owus2)}.___SText_owus2_gg_.__lineHeight_owus2_gg_{line-height:var(--lineHeight_owus2)}.___SText_owus2_gg_.__fontWeight_owus2_gg_{font-weight:var(--fontWeight_owus2)}.___SText_owus2_gg_.__textAlign_owus2_gg_{text-align:var(--textAlign_owus2)}.___SText_owus2_gg_._use_primary_owus2_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SText_owus2_gg_._use_secondary_owus2_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SText_owus2_gg_.__disabled_owus2_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3)}',
|
|
12
|
+
"owus2_gg_"
|
|
13
|
+
), {
|
|
14
|
+
__SText: "___SText_owus2_gg_",
|
|
15
|
+
_size_100: "_size_100_owus2_gg_",
|
|
16
|
+
_size_200: "_size_200_owus2_gg_",
|
|
17
|
+
_size_300: "_size_300_owus2_gg_",
|
|
18
|
+
_size_400: "_size_400_owus2_gg_",
|
|
19
|
+
_size_500: "_size_500_owus2_gg_",
|
|
20
|
+
_size_600: "_size_600_owus2_gg_",
|
|
21
|
+
_size_700: "_size_700_owus2_gg_",
|
|
22
|
+
_size_800: "_size_800_owus2_gg_",
|
|
23
|
+
_noWrap: "__noWrap_owus2_gg_",
|
|
24
|
+
_medium: "__medium_owus2_gg_",
|
|
25
|
+
_semibold: "__semibold_owus2_gg_",
|
|
26
|
+
_bold: "__bold_owus2_gg_",
|
|
27
|
+
_italic: "__italic_owus2_gg_",
|
|
28
|
+
_monospace: "__monospace_owus2_gg_",
|
|
29
|
+
_uppercase: "__uppercase_owus2_gg_",
|
|
30
|
+
_lowercase: "__lowercase_owus2_gg_",
|
|
31
|
+
_capitalize: "__capitalize_owus2_gg_",
|
|
32
|
+
_decoration: "__decoration_owus2_gg_",
|
|
33
|
+
"--decoration": "--decoration_owus2",
|
|
34
|
+
_color: "__color_owus2_gg_",
|
|
35
|
+
"--color": "--color_owus2",
|
|
36
|
+
_fontSize: "__fontSize_owus2_gg_",
|
|
37
|
+
"--fontSize": "--fontSize_owus2",
|
|
38
|
+
_lineHeight: "__lineHeight_owus2_gg_",
|
|
39
|
+
"--lineHeight": "--lineHeight_owus2",
|
|
40
|
+
_fontWeight: "__fontWeight_owus2_gg_",
|
|
41
|
+
"--fontWeight": "--fontWeight_owus2",
|
|
42
|
+
_textAlign: "__textAlign_owus2_gg_",
|
|
43
|
+
"--textAlign": "--textAlign_owus2",
|
|
44
|
+
_use_primary: "_use_primary_owus2_gg_",
|
|
45
|
+
_use_secondary: "_use_secondary_owus2_gg_",
|
|
46
|
+
_disabled: "__disabled_owus2_gg_"
|
|
47
|
+
})
|
|
48
|
+
);
|
|
49
|
+
function m(_, e) {
|
|
50
|
+
if (_)
|
|
51
|
+
return "underline";
|
|
52
|
+
if (e)
|
|
53
|
+
return "line-through";
|
|
54
|
+
}
|
|
55
|
+
function g(_, e) {
|
|
56
|
+
var t = arguments[0], o, i = d, s = _.color, a = _.underline, r = _.lineThrough, n = m(a, r), u = p();
|
|
57
|
+
return o = x(z), /* @__PURE__ */ h.createElement(i, o.cn("SText", l({}, f({
|
|
58
|
+
tag: "span",
|
|
59
|
+
"data-ui-name": "Text",
|
|
60
|
+
ref: e,
|
|
61
|
+
"use:decoration": n,
|
|
62
|
+
"use:color": u(s)
|
|
63
|
+
}, t))));
|
|
64
|
+
}
|
|
65
|
+
g.displayName = "Text";
|
|
66
|
+
const A = c(g);
|
|
67
|
+
export {
|
|
68
|
+
A as default
|
|
69
|
+
};
|
package/package.json
CHANGED
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/typography",
|
|
3
3
|
"description": "Semrush Typography Component",
|
|
4
|
-
"version": "5.52.0-prerelease.
|
|
4
|
+
"version": "5.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.
|
|
13
|
-
"@semcore/flex-box": "5.41.0-prerelease.
|
|
14
|
-
"@semcore/icon": "4.
|
|
17
|
+
"@semcore/utils": "4.48.0-prerelease.12",
|
|
18
|
+
"@semcore/flex-box": "5.41.0-prerelease.12",
|
|
19
|
+
"@semcore/icon": "4.61.0-prerelease.12",
|
|
15
20
|
"csstype": "3.0.8"
|
|
16
21
|
},
|
|
17
22
|
"peerDependencies": {
|
|
18
|
-
"@semcore/core": "^2.39.0-prerelease.
|
|
23
|
+
"@semcore/core": "^2.39.0-prerelease.12",
|
|
19
24
|
"react": "16.8 - 18",
|
|
20
25
|
"react-dom": "16.8 - 18"
|
|
21
26
|
},
|
|
@@ -29,6 +34,6 @@
|
|
|
29
34
|
"@semcore/testing-utils": "1.0.0"
|
|
30
35
|
},
|
|
31
36
|
"scripts": {
|
|
32
|
-
"build": "pnpm semcore-builder --source=js"
|
|
37
|
+
"build": "pnpm semcore-builder --source=js && pnpm vite build"
|
|
33
38
|
}
|
|
34
39
|
}
|
package/vite.config.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
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: [
|
|
14
|
+
'react',
|
|
15
|
+
'react-dom',
|
|
16
|
+
'react/jsx-runtime',
|
|
17
|
+
/@babel\/runtime\/*/,
|
|
18
|
+
/@semcore\/*/,
|
|
19
|
+
'csstype',
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
}),
|
|
24
|
+
);
|