@semcore/widget-empty 4.43.0-prerelease.1 → 4.43.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/Error/index.mjs +36 -0
- package/lib/esm/Error/translations/__intergalactic-dynamic-locales.mjs +35 -0
- package/lib/esm/Error/translations/de.json.mjs +9 -0
- package/lib/esm/Error/translations/en.json.mjs +9 -0
- package/lib/esm/Error/translations/es.json.mjs +9 -0
- package/lib/esm/Error/translations/fr.json.mjs +9 -0
- package/lib/esm/Error/translations/it.json.mjs +9 -0
- package/lib/esm/Error/translations/ja.json.mjs +9 -0
- package/lib/esm/Error/translations/ko.json.mjs +9 -0
- package/lib/esm/Error/translations/nl.json.mjs +9 -0
- package/lib/esm/Error/translations/pl.json.mjs +9 -0
- package/lib/esm/Error/translations/pt.json.mjs +9 -0
- package/lib/esm/Error/translations/ru.json.mjs +9 -0
- package/lib/esm/Error/translations/sv.json.mjs +9 -0
- package/lib/esm/Error/translations/tr.json.mjs +9 -0
- package/lib/esm/Error/translations/vi.json.mjs +9 -0
- package/lib/esm/Error/translations/zh.json.mjs +9 -0
- package/lib/esm/NoData/index.mjs +37 -0
- package/lib/esm/NoData/translations/__intergalactic-dynamic-locales.mjs +35 -0
- package/lib/esm/NoData/translations/de.json.mjs +9 -0
- package/lib/esm/NoData/translations/en.json.mjs +9 -0
- package/lib/esm/NoData/translations/es.json.mjs +9 -0
- package/lib/esm/NoData/translations/fr.json.mjs +9 -0
- package/lib/esm/NoData/translations/it.json.mjs +9 -0
- package/lib/esm/NoData/translations/ja.json.mjs +9 -0
- package/lib/esm/NoData/translations/ko.json.mjs +9 -0
- package/lib/esm/NoData/translations/nl.json.mjs +9 -0
- package/lib/esm/NoData/translations/pl.json.mjs +9 -0
- package/lib/esm/NoData/translations/pt.json.mjs +9 -0
- package/lib/esm/NoData/translations/ru.json.mjs +9 -0
- package/lib/esm/NoData/translations/sv.json.mjs +9 -0
- package/lib/esm/NoData/translations/tr.json.mjs +9 -0
- package/lib/esm/NoData/translations/vi.json.mjs +9 -0
- package/lib/esm/NoData/translations/zh.json.mjs +9 -0
- package/lib/esm/WidgetEmpty.mjs +64 -0
- package/lib/esm/index.mjs +9 -0
- package/package.json +11 -6
- package/vite.config.ts +17 -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
|
-
## [4.43.0] - 2025-
|
|
5
|
+
## [4.43.0] - 2025-03-14
|
|
6
6
|
|
|
7
|
-
###
|
|
7
|
+
### Added
|
|
8
8
|
|
|
9
|
-
-
|
|
9
|
+
- Build for ESM.
|
|
10
10
|
|
|
11
11
|
## [4.42.1] - 2025-02-05
|
|
12
12
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import d from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
|
+
import u from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import h from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
+
import g from "@babel/runtime/helpers/esm/createSuper";
|
|
5
|
+
import i from "@babel/runtime/helpers/esm/defineProperty";
|
|
6
|
+
import E, { assignProps as _, Component as C } from "@semcore/core";
|
|
7
|
+
import r from "react";
|
|
8
|
+
import o, { getIconPath as P } from "../WidgetEmpty.mjs";
|
|
9
|
+
import v from "@semcore/utils/lib/enhances/i18nEnhance";
|
|
10
|
+
import { localizedMessages as s } from "./translations/__intergalactic-dynamic-locales.mjs";
|
|
11
|
+
var t = /* @__PURE__ */ function(m) {
|
|
12
|
+
h(e, m);
|
|
13
|
+
var p = g(e);
|
|
14
|
+
function e() {
|
|
15
|
+
return d(this, e), p.apply(this, arguments);
|
|
16
|
+
}
|
|
17
|
+
return u(e, [{
|
|
18
|
+
key: "render",
|
|
19
|
+
value: function() {
|
|
20
|
+
var l = this.asProps, n = this.asProps, c = n.Children, f = n.description, a = n.getI18nText;
|
|
21
|
+
return /* @__PURE__ */ r.createElement(o, _({
|
|
22
|
+
icon: P("warning")
|
|
23
|
+
}, l), /* @__PURE__ */ r.createElement(o.Title, null, a("title")), /* @__PURE__ */ r.createElement(o.Description, null, f || a("description")), /* @__PURE__ */ r.createElement(c, null));
|
|
24
|
+
}
|
|
25
|
+
}]), e;
|
|
26
|
+
}(C);
|
|
27
|
+
i(t, "displayName", "WidgetError");
|
|
28
|
+
i(t, "defaultProps", {
|
|
29
|
+
i18n: s,
|
|
30
|
+
locale: "en"
|
|
31
|
+
});
|
|
32
|
+
i(t, "enhance", [v(s)]);
|
|
33
|
+
const R = E(t);
|
|
34
|
+
export {
|
|
35
|
+
R as default
|
|
36
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
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 "./ru.json.mjs";
|
|
11
|
+
import l from "./tr.json.mjs";
|
|
12
|
+
import v from "./vi.json.mjs";
|
|
13
|
+
import d from "./zh.json.mjs";
|
|
14
|
+
import n from "./pl.json.mjs";
|
|
15
|
+
import z from "./sv.json.mjs";
|
|
16
|
+
var D = {
|
|
17
|
+
de: r,
|
|
18
|
+
en: o,
|
|
19
|
+
es: m,
|
|
20
|
+
fr: t,
|
|
21
|
+
it: i,
|
|
22
|
+
ja: p,
|
|
23
|
+
ko: f,
|
|
24
|
+
nl: e,
|
|
25
|
+
pt: s,
|
|
26
|
+
ru: a,
|
|
27
|
+
tr: l,
|
|
28
|
+
vi: v,
|
|
29
|
+
zh: d,
|
|
30
|
+
pl: n,
|
|
31
|
+
sv: z
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
D as localizedMessages
|
|
35
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import u from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
|
+
import h from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import g from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
+
import y from "@babel/runtime/helpers/esm/createSuper";
|
|
5
|
+
import i from "@babel/runtime/helpers/esm/defineProperty";
|
|
6
|
+
import _, { assignProps as C, Component as P } from "@semcore/core";
|
|
7
|
+
import r from "react";
|
|
8
|
+
import n, { getIconPath as E } from "../WidgetEmpty.mjs";
|
|
9
|
+
import v from "@semcore/utils/lib/enhances/i18nEnhance";
|
|
10
|
+
import { localizedMessages as p } from "./translations/__intergalactic-dynamic-locales.mjs";
|
|
11
|
+
var o = /* @__PURE__ */ function(s) {
|
|
12
|
+
g(e, s);
|
|
13
|
+
var m = y(e);
|
|
14
|
+
function e() {
|
|
15
|
+
return u(this, e), m.apply(this, arguments);
|
|
16
|
+
}
|
|
17
|
+
return h(e, [{
|
|
18
|
+
key: "render",
|
|
19
|
+
value: function() {
|
|
20
|
+
var l = this.asProps, t = this.asProps, c = t.Children, f = t.type, d = t.description, a = t.getI18nText;
|
|
21
|
+
return /* @__PURE__ */ r.createElement(n, C({
|
|
22
|
+
icon: E(f)
|
|
23
|
+
}, l), /* @__PURE__ */ r.createElement(n.Title, null, a("title")), /* @__PURE__ */ r.createElement(n.Description, null, d || a("description")), /* @__PURE__ */ r.createElement(c, null));
|
|
24
|
+
}
|
|
25
|
+
}]), e;
|
|
26
|
+
}(P);
|
|
27
|
+
i(o, "displayName", "WidgetNoData");
|
|
28
|
+
i(o, "enhance", [v(p)]);
|
|
29
|
+
i(o, "defaultProps", {
|
|
30
|
+
i18n: p,
|
|
31
|
+
locale: "en",
|
|
32
|
+
type: "other-data"
|
|
33
|
+
});
|
|
34
|
+
const $ = _(o);
|
|
35
|
+
export {
|
|
36
|
+
$ as default
|
|
37
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
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 "./ru.json.mjs";
|
|
11
|
+
import l from "./tr.json.mjs";
|
|
12
|
+
import v from "./vi.json.mjs";
|
|
13
|
+
import d from "./zh.json.mjs";
|
|
14
|
+
import n from "./pl.json.mjs";
|
|
15
|
+
import z from "./sv.json.mjs";
|
|
16
|
+
var D = {
|
|
17
|
+
de: r,
|
|
18
|
+
en: o,
|
|
19
|
+
es: m,
|
|
20
|
+
fr: t,
|
|
21
|
+
it: i,
|
|
22
|
+
ja: p,
|
|
23
|
+
ko: f,
|
|
24
|
+
nl: e,
|
|
25
|
+
pt: s,
|
|
26
|
+
ru: a,
|
|
27
|
+
tr: l,
|
|
28
|
+
vi: v,
|
|
29
|
+
zh: d,
|
|
30
|
+
pl: n,
|
|
31
|
+
sv: z
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
D as localizedMessages
|
|
35
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import o from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import h from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
|
+
import u from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
+
import x from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
+
import k from "@babel/runtime/helpers/esm/createSuper";
|
|
6
|
+
import m from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
+
import { sstyled as E } from "@semcore/utils/lib/core/index";
|
|
8
|
+
import D, { sstyled as c, assignProps as l, Component as T } from "@semcore/core";
|
|
9
|
+
import _ from "react";
|
|
10
|
+
import { getIllustrationPath as W } from "@semcore/illustration";
|
|
11
|
+
import { Flex as C, Box as f } from "@semcore/flex-box";
|
|
12
|
+
import I from "@semcore/utils/lib/isNode";
|
|
13
|
+
var P = (
|
|
14
|
+
/*__reshadow_css_start__*/
|
|
15
|
+
(E.insert(
|
|
16
|
+
/*__inner_css_start__*/
|
|
17
|
+
".___SWidgetEmpty_6f1sk_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SImage_6f1sk_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px);width:80px;height:80px}.___SDescription_6f1sk_gg_,.___STitle_6f1sk_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___STitle_6f1sk_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}.___SDescription_6f1sk_gg_{text-align:center;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);max-width:400px}.___STitle_6f1sk_gg_+.___SDescription_6f1sk_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_6f1sk_gg_+.___SDescription_6f1sk_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}",
|
|
18
|
+
"6f1sk_gg_"
|
|
19
|
+
), {
|
|
20
|
+
__SWidgetEmpty: "___SWidgetEmpty_6f1sk_gg_",
|
|
21
|
+
__SImage: "___SImage_6f1sk_gg_",
|
|
22
|
+
__STitle: "___STitle_6f1sk_gg_",
|
|
23
|
+
__SDescription: "___SDescription_6f1sk_gg_"
|
|
24
|
+
})
|
|
25
|
+
), K = function(r) {
|
|
26
|
+
return W(r);
|
|
27
|
+
}, p = /* @__PURE__ */ function(a) {
|
|
28
|
+
x(t, a);
|
|
29
|
+
var r = k(t);
|
|
30
|
+
function t() {
|
|
31
|
+
return h(this, t), r.apply(this, arguments);
|
|
32
|
+
}
|
|
33
|
+
return u(t, [{
|
|
34
|
+
key: "render",
|
|
35
|
+
value: function() {
|
|
36
|
+
var n = this.asProps, e, d = C, g = this.asProps, y = g.Children, s = g.icon, v = g.styles, S = "div";
|
|
37
|
+
return e = c(v), /* @__PURE__ */ _.createElement(d, e.cn("SWidgetEmpty", o({}, l({
|
|
38
|
+
role: "status"
|
|
39
|
+
}, n))), I(s) && /* @__PURE__ */ _.createElement(S, e.cn("SImage", {
|
|
40
|
+
"aria-hidden": "true"
|
|
41
|
+
}), typeof s == "string" ? /* @__PURE__ */ _.createElement("img", e.cn("img", {
|
|
42
|
+
src: s,
|
|
43
|
+
alt: ""
|
|
44
|
+
})) : s), /* @__PURE__ */ _.createElement(y, e.cn("Children", {})));
|
|
45
|
+
}
|
|
46
|
+
}]), t;
|
|
47
|
+
}(T);
|
|
48
|
+
m(p, "displayName", "WidgetEmpty");
|
|
49
|
+
m(p, "style", P);
|
|
50
|
+
var b = function(r) {
|
|
51
|
+
var t = arguments[0], i, n = f, e = r.styles;
|
|
52
|
+
return i = c(e), /* @__PURE__ */ _.createElement(n, i.cn("STitle", o({}, l({}, t))));
|
|
53
|
+
}, j = function(r) {
|
|
54
|
+
var t = arguments[0], i, n = f, e = r.styles;
|
|
55
|
+
return i = c(e), /* @__PURE__ */ _.createElement(n, i.cn("SDescription", o({}, l({}, t))));
|
|
56
|
+
};
|
|
57
|
+
const L = D(p, {
|
|
58
|
+
Title: b,
|
|
59
|
+
Description: j
|
|
60
|
+
});
|
|
61
|
+
export {
|
|
62
|
+
L as default,
|
|
63
|
+
K as getIconPath
|
|
64
|
+
};
|
package/package.json
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/widget-empty",
|
|
3
3
|
"description": "Semrush WidgetEmpty Component",
|
|
4
|
-
"version": "4.43.0-prerelease.
|
|
4
|
+
"version": "4.43.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/flex-box": "5.41.0-prerelease.
|
|
13
|
-
"@semcore/illustration": "2.43.0-prerelease.
|
|
14
|
-
"@semcore/utils": "4.
|
|
17
|
+
"@semcore/flex-box": "5.41.0-prerelease.12",
|
|
18
|
+
"@semcore/illustration": "2.43.0-prerelease.12",
|
|
19
|
+
"@semcore/utils": "4.48.0-prerelease.12"
|
|
15
20
|
},
|
|
16
21
|
"peerDependencies": {
|
|
17
|
-
"@semcore/core": "^2.39.0-prerelease.
|
|
22
|
+
"@semcore/core": "^2.39.0-prerelease.12",
|
|
18
23
|
"react": "16.8 - 18",
|
|
19
24
|
"react-dom": "16.8 - 18"
|
|
20
25
|
},
|
|
@@ -28,6 +33,6 @@
|
|
|
28
33
|
"@semcore/testing-utils": "1.0.0"
|
|
29
34
|
},
|
|
30
35
|
"scripts": {
|
|
31
|
-
"build": "pnpm semcore-builder --source=js"
|
|
36
|
+
"build": "pnpm semcore-builder --source=js && pnpm vite build"
|
|
32
37
|
}
|
|
33
38
|
}
|
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
|
+
);
|