@semcore/widget-empty 4.43.0-prerelease.11 → 4.43.0-prerelease.15

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +9 -3
  2. package/lib/cjs/WidgetEmpty.js +5 -5
  3. package/lib/cjs/style/widget-empty.shadow.css +1 -0
  4. package/lib/es6/WidgetEmpty.js +5 -5
  5. package/lib/es6/style/widget-empty.shadow.css +1 -0
  6. package/lib/esm/Error/index.mjs +36 -0
  7. package/lib/esm/Error/translations/__intergalactic-dynamic-locales.mjs +35 -0
  8. package/lib/esm/Error/translations/de.json.mjs +9 -0
  9. package/lib/esm/Error/translations/en.json.mjs +9 -0
  10. package/lib/esm/Error/translations/es.json.mjs +9 -0
  11. package/lib/esm/Error/translations/fr.json.mjs +9 -0
  12. package/lib/esm/Error/translations/it.json.mjs +9 -0
  13. package/lib/esm/Error/translations/ja.json.mjs +9 -0
  14. package/lib/esm/Error/translations/ko.json.mjs +9 -0
  15. package/lib/esm/Error/translations/nl.json.mjs +9 -0
  16. package/lib/esm/Error/translations/pl.json.mjs +9 -0
  17. package/lib/esm/Error/translations/pt.json.mjs +9 -0
  18. package/lib/esm/Error/translations/ru.json.mjs +9 -0
  19. package/lib/esm/Error/translations/sv.json.mjs +9 -0
  20. package/lib/esm/Error/translations/tr.json.mjs +9 -0
  21. package/lib/esm/Error/translations/vi.json.mjs +9 -0
  22. package/lib/esm/Error/translations/zh.json.mjs +9 -0
  23. package/lib/esm/NoData/index.mjs +37 -0
  24. package/lib/esm/NoData/translations/__intergalactic-dynamic-locales.mjs +35 -0
  25. package/lib/esm/NoData/translations/de.json.mjs +9 -0
  26. package/lib/esm/NoData/translations/en.json.mjs +9 -0
  27. package/lib/esm/NoData/translations/es.json.mjs +9 -0
  28. package/lib/esm/NoData/translations/fr.json.mjs +9 -0
  29. package/lib/esm/NoData/translations/it.json.mjs +9 -0
  30. package/lib/esm/NoData/translations/ja.json.mjs +9 -0
  31. package/lib/esm/NoData/translations/ko.json.mjs +9 -0
  32. package/lib/esm/NoData/translations/nl.json.mjs +9 -0
  33. package/lib/esm/NoData/translations/pl.json.mjs +9 -0
  34. package/lib/esm/NoData/translations/pt.json.mjs +9 -0
  35. package/lib/esm/NoData/translations/ru.json.mjs +9 -0
  36. package/lib/esm/NoData/translations/sv.json.mjs +9 -0
  37. package/lib/esm/NoData/translations/tr.json.mjs +9 -0
  38. package/lib/esm/NoData/translations/vi.json.mjs +9 -0
  39. package/lib/esm/NoData/translations/zh.json.mjs +9 -0
  40. package/lib/esm/WidgetEmpty.mjs +64 -0
  41. package/lib/esm/index.mjs +9 -0
  42. package/package.json +11 -6
  43. package/vite.config.ts +17 -0
package/CHANGELOG.md CHANGED
@@ -2,11 +2,17 @@
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-03-03
5
+ ## [4.43.0] - 2025-03-14
6
6
 
7
- ### Changed
7
+ ### Added
8
+
9
+ - Build for ESM.
10
+
11
+ ## [4.42.2] - 2025-03-11
12
+
13
+ ### Added
8
14
 
9
- - Version minor update due to children dependencies update (`@semcore/flex-box` [5.40.1 ~> 5.41.0], `@semcore/illustration` [2.42.1 ~> 2.43.0], `@semcore/utils` [4.45.1 ~> 4.47.1], `@semcore/core` [2.38.1 ~> 2.39.0]).
15
+ - `text-wrap: balance` for Description, to display long descriptions in a better, trendy, and modern way. No orphans left hanging.
10
16
 
11
17
  ## [4.42.1] - 2025-02-05
12
18
 
@@ -19,11 +19,11 @@ var _illustration = require("@semcore/illustration");
19
19
  var _flexBox = require("@semcore/flex-box");
20
20
  var _isNode = _interopRequireDefault(require("@semcore/utils/lib/isNode"));
21
21
  /*__reshadow-styles__:"./style/widget-empty.shadow.css"*/
22
- var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___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)}" /*__inner_css_end__*/, "6f1sk_gg_") /*__reshadow_css_end__*/, {
23
- "__SWidgetEmpty": "___SWidgetEmpty_6f1sk_gg_",
24
- "__SImage": "___SImage_6f1sk_gg_",
25
- "__STitle": "___STitle_6f1sk_gg_",
26
- "__SDescription": "___SDescription_6f1sk_gg_"
22
+ var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SWidgetEmpty_1kzmq_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SImage_1kzmq_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px);width:80px;height:80px}.___SDescription_1kzmq_gg_,.___STitle_1kzmq_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___STitle_1kzmq_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}.___SDescription_1kzmq_gg_{text-align:center;text-wrap:balance;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);max-width:400px}.___STitle_1kzmq_gg_+.___SDescription_1kzmq_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_1kzmq_gg_+.___SDescription_1kzmq_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}" /*__inner_css_end__*/, "1kzmq_gg_") /*__reshadow_css_end__*/, {
23
+ "__SWidgetEmpty": "___SWidgetEmpty_1kzmq_gg_",
24
+ "__SImage": "___SImage_1kzmq_gg_",
25
+ "__STitle": "___STitle_1kzmq_gg_",
26
+ "__SDescription": "___SDescription_1kzmq_gg_"
27
27
  });
28
28
  var getIconPath = function getIconPath(name) {
29
29
  return (0, _illustration.getIllustrationPath)(name);
@@ -23,6 +23,7 @@ STitle {
23
23
 
24
24
  SDescription {
25
25
  text-align: center;
26
+ text-wrap: balance;
26
27
  font-size: var(--intergalactic-fs-200, 14px);
27
28
  line-height: var(--intergalactic-lh-200, 142%);
28
29
  color: var(--intergalactic-text-secondary, #6c6e79);
@@ -14,11 +14,11 @@ import { getIllustrationPath } from '@semcore/illustration';
14
14
  import { Box, Flex } from '@semcore/flex-box';
15
15
  import isNode from '@semcore/utils/lib/isNode';
16
16
  /*__reshadow-styles__:"./style/widget-empty.shadow.css"*/
17
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___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)}" /*__inner_css_end__*/, "6f1sk_gg_") /*__reshadow_css_end__*/, {
18
- "__SWidgetEmpty": "___SWidgetEmpty_6f1sk_gg_",
19
- "__SImage": "___SImage_6f1sk_gg_",
20
- "__STitle": "___STitle_6f1sk_gg_",
21
- "__SDescription": "___SDescription_6f1sk_gg_"
17
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SWidgetEmpty_1kzmq_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SImage_1kzmq_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px);width:80px;height:80px}.___SDescription_1kzmq_gg_,.___STitle_1kzmq_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___STitle_1kzmq_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}.___SDescription_1kzmq_gg_{text-align:center;text-wrap:balance;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);max-width:400px}.___STitle_1kzmq_gg_+.___SDescription_1kzmq_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_1kzmq_gg_+.___SDescription_1kzmq_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}" /*__inner_css_end__*/, "1kzmq_gg_") /*__reshadow_css_end__*/, {
18
+ "__SWidgetEmpty": "___SWidgetEmpty_1kzmq_gg_",
19
+ "__SImage": "___SImage_1kzmq_gg_",
20
+ "__STitle": "___STitle_1kzmq_gg_",
21
+ "__SDescription": "___SDescription_1kzmq_gg_"
22
22
  });
23
23
  export var getIconPath = function getIconPath(name) {
24
24
  return getIllustrationPath(name);
@@ -23,6 +23,7 @@ STitle {
23
23
 
24
24
  SDescription {
25
25
  text-align: center;
26
+ text-wrap: balance;
26
27
  font-size: var(--intergalactic-fs-200, 14px);
27
28
  line-height: var(--intergalactic-lh-200, 142%);
28
29
  color: var(--intergalactic-text-secondary, #6c6e79);
@@ -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,9 @@
1
+ const e = "Es ist ein Fehler aufgetreten", t = "Dieses Problem ist uns bekannt und wir arbeiten an seiner Behebung. Bitte versuchen Sie es später erneut.", n = {
2
+ title: e,
3
+ description: t
4
+ };
5
+ export {
6
+ n as default,
7
+ t as description,
8
+ e as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const e = "Something went wrong", t = "We are aware of the issue and are working to fix it. Please try again later.", i = {
2
+ title: e,
3
+ description: t
4
+ };
5
+ export {
6
+ i as default,
7
+ t as description,
8
+ e as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const o = "Algo salió mal", t = "Somos conscientes del problema y estamos trabajando para solucionarlo. Inténtalo de nuevo más tarde.", e = {
2
+ title: o,
3
+ description: t
4
+ };
5
+ export {
6
+ e as default,
7
+ t as description,
8
+ o as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const e = "Une erreur est survenue", s = "Nous avons conscience de ce problème et nous nous efforçons de le résoudre. Veuillez réessayer plus tard.", o = {
2
+ title: e,
3
+ description: s
4
+ };
5
+ export {
6
+ o as default,
7
+ s as description,
8
+ e as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const o = "Si è verificato un errore", i = "Siamo a conoscenza del problema e stiamo lavorando per risolverlo. Riprova più tardi.", e = {
2
+ title: o,
3
+ description: i
4
+ };
5
+ export {
6
+ e as default,
7
+ i as description,
8
+ o as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const t = "エラーが発生しました", e = "心配はありません。私たちは問題を把握し、解決に向けて動いています。あとで再試行してください。", i = {
2
+ title: t,
3
+ description: e
4
+ };
5
+ export {
6
+ i as default,
7
+ e as description,
8
+ t as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const t = "오류가 발생했습니다", o = "문제를 파악했으며 해결 중입니다. 나중에 다시 시도해 주세요.", e = {
2
+ title: t,
3
+ description: o
4
+ };
5
+ export {
6
+ e as default,
7
+ o as description,
8
+ t as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const e = "Er is iets fout gegaan", t = "We zijn op de hoogte van het probleem en werken aan een oplossing. Probeer het later nog eens.", n = {
2
+ title: e,
3
+ description: t
4
+ };
5
+ export {
6
+ n as default,
7
+ t as description,
8
+ e as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const e = "Coś poszło nie tak", o = "Wiemy o tym problemie i pracujemy nad jego rozwiązaniem. Spróbuj ponownie później.", i = {
2
+ title: e,
3
+ description: o
4
+ };
5
+ export {
6
+ i as default,
7
+ o as description,
8
+ e as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const e = "Algo deu errado", t = "Estamos cientes do problema e estamos trabalhando para resolvê-lo. Tente novamente mais tarde.", o = {
2
+ title: e,
3
+ description: t
4
+ };
5
+ export {
6
+ o as default,
7
+ t as description,
8
+ e as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const t = "Произошла ошибка", e = "Мы уже знаем об этой проблеме и в настоящий момент устраняем ее. Повторите попытку позже.", i = {
2
+ title: t,
3
+ description: e
4
+ };
5
+ export {
6
+ i as default,
7
+ e as description,
8
+ t as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const t = "Något gick fel", e = "Vi är medvetna om problemet och arbetar på att åtgärda det. Försök igen senare.", o = {
2
+ title: t,
3
+ description: e
4
+ };
5
+ export {
6
+ o as default,
7
+ e as description,
8
+ t as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const t = "Bir şeyler ters gitti", e = "Sorunun farkındayız ve düzeltmek için çalışıyoruz. Lütfen daha sonra tekrar deneyin.", n = {
2
+ title: t,
3
+ description: e
4
+ };
5
+ export {
6
+ n as default,
7
+ e as description,
8
+ t as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const t = "Đã xảy ra lỗi", i = "Chúng tôi đã biết sự cố và đang nỗ lực khắc phục sự cố. Vui lòng thử lại sau.", c = {
2
+ title: t,
3
+ description: i
4
+ };
5
+ export {
6
+ c as default,
7
+ i as description,
8
+ t as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const t = "出错了", e = "我们已发现问题,正在努力解决。请稍后重试。", i = {
2
+ title: t,
3
+ description: e
4
+ };
5
+ export {
6
+ i as default,
7
+ e as description,
8
+ t as title
9
+ };
@@ -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,9 @@
1
+ const e = "Nichts gefunden", t = "Ändern Sie Ihre Filter.", i = {
2
+ title: e,
3
+ description: t
4
+ };
5
+ export {
6
+ i as default,
7
+ t as description,
8
+ e as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const t = "Nothing found", n = "Try changing your filters.", i = {
2
+ title: t,
3
+ description: n
4
+ };
5
+ export {
6
+ i as default,
7
+ n as description,
8
+ t as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const t = "Ningún resultado", s = "Prueba a cambiar los filtros.", e = {
2
+ title: t,
3
+ description: s
4
+ };
5
+ export {
6
+ e as default,
7
+ s as description,
8
+ t as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const t = "Rien n’a été trouvé", e = "Essayez de changer vos filtres.", s = {
2
+ title: t,
3
+ description: e
4
+ };
5
+ export {
6
+ s as default,
7
+ e as description,
8
+ t as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const t = "Nessun risultato trovato", i = "Prova a modificare i filtri.", o = {
2
+ title: t,
3
+ description: i
4
+ };
5
+ export {
6
+ o as default,
7
+ i as description,
8
+ t as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const t = "検索結果なし", e = "フィルターを変更します。", i = {
2
+ title: t,
3
+ description: e
4
+ };
5
+ export {
6
+ i as default,
7
+ e as description,
8
+ t as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const t = "결과가 없습니다", o = "필터를 변경해 보세요.", e = {
2
+ title: t,
3
+ description: o
4
+ };
5
+ export {
6
+ e as default,
7
+ o as description,
8
+ t as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const e = "Niets gevonden", t = "Probeer het nog eens met andere filters.", n = {
2
+ title: e,
3
+ description: t
4
+ };
5
+ export {
6
+ n as default,
7
+ t as description,
8
+ e as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const i = "Niczego nie znaleziono", t = "Spróbuj zmienić filtry.", e = {
2
+ title: i,
3
+ description: t
4
+ };
5
+ export {
6
+ e as default,
7
+ t as description,
8
+ i as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const t = "Nada encontrado", e = "Tente alterar seus filtros.", o = {
2
+ title: t,
3
+ description: e
4
+ };
5
+ export {
6
+ o as default,
7
+ e as description,
8
+ t as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const t = "Данные отсутствуют", e = "Попробуйте изменить дату или настройки фильтров.", i = {
2
+ title: t,
3
+ description: e
4
+ };
5
+ export {
6
+ i as default,
7
+ e as description,
8
+ t as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const t = "Inget hittades", e = "Prova att ändra dina filter.", i = {
2
+ title: t,
3
+ description: e
4
+ };
5
+ export {
6
+ i as default,
7
+ e as description,
8
+ t as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const i = "Hiçbir şey bulunamadı", t = "Filtrelerinizi değiştirmeyi deneyin.", e = {
2
+ title: i,
3
+ description: t
4
+ };
5
+ export {
6
+ e as default,
7
+ t as description,
8
+ i as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const t = "Không tìm thấy gì", i = "Thử thay đổi bộ lọc của bạn.", c = {
2
+ title: t,
3
+ description: i
4
+ };
5
+ export {
6
+ c as default,
7
+ i as description,
8
+ t as title
9
+ };
@@ -0,0 +1,9 @@
1
+ const t = "未找到任何数据", e = "尝试更改筛选器。", i = {
2
+ title: t,
3
+ description: e
4
+ };
5
+ export {
6
+ i as default,
7
+ e as description,
8
+ t as title
9
+ };
@@ -0,0 +1,64 @@
1
+ import s 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 p from "@babel/runtime/helpers/esm/defineProperty";
7
+ import { sstyled as z } from "@semcore/utils/lib/core/index";
8
+ import q, { sstyled as c, assignProps as m, Component as E } from "@semcore/core";
9
+ import _ from "react";
10
+ import { getIllustrationPath as D } from "@semcore/illustration";
11
+ import { Flex as T, Box as f } from "@semcore/flex-box";
12
+ import W from "@semcore/utils/lib/isNode";
13
+ var C = (
14
+ /*__reshadow_css_start__*/
15
+ (z.insert(
16
+ /*__inner_css_start__*/
17
+ ".___SWidgetEmpty_1kzmq_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SImage_1kzmq_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px);width:80px;height:80px}.___SDescription_1kzmq_gg_,.___STitle_1kzmq_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___STitle_1kzmq_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}.___SDescription_1kzmq_gg_{text-align:center;text-wrap:balance;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);max-width:400px}.___STitle_1kzmq_gg_+.___SDescription_1kzmq_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_1kzmq_gg_+.___SDescription_1kzmq_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}",
18
+ "1kzmq_gg_"
19
+ ), {
20
+ __SWidgetEmpty: "___SWidgetEmpty_1kzmq_gg_",
21
+ __SImage: "___SImage_1kzmq_gg_",
22
+ __STitle: "___STitle_1kzmq_gg_",
23
+ __SDescription: "___SDescription_1kzmq_gg_"
24
+ })
25
+ ), K = function(r) {
26
+ return D(r);
27
+ }, l = /* @__PURE__ */ function(n) {
28
+ x(t, n);
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 a = this.asProps, e, d = T, o = this.asProps, y = o.Children, g = o.icon, v = o.styles, S = "div";
37
+ return e = c(v), /* @__PURE__ */ _.createElement(d, e.cn("SWidgetEmpty", s({}, m({
38
+ role: "status"
39
+ }, a))), W(g) && /* @__PURE__ */ _.createElement(S, e.cn("SImage", {
40
+ "aria-hidden": "true"
41
+ }), typeof g == "string" ? /* @__PURE__ */ _.createElement("img", e.cn("img", {
42
+ src: g,
43
+ alt: ""
44
+ })) : g), /* @__PURE__ */ _.createElement(y, e.cn("Children", {})));
45
+ }
46
+ }]), t;
47
+ }(E);
48
+ p(l, "displayName", "WidgetEmpty");
49
+ p(l, "style", C);
50
+ var I = function(r) {
51
+ var t = arguments[0], i, a = f, e = r.styles;
52
+ return i = c(e), /* @__PURE__ */ _.createElement(a, i.cn("STitle", s({}, m({}, t))));
53
+ }, P = function(r) {
54
+ var t = arguments[0], i, a = f, e = r.styles;
55
+ return i = c(e), /* @__PURE__ */ _.createElement(a, i.cn("SDescription", s({}, m({}, t))));
56
+ };
57
+ const L = q(l, {
58
+ Title: I,
59
+ Description: P
60
+ });
61
+ export {
62
+ L as default,
63
+ K as getIconPath
64
+ };
@@ -0,0 +1,9 @@
1
+ import { default as t, getIconPath as a } from "./WidgetEmpty.mjs";
2
+ import { default as f } from "./NoData/index.mjs";
3
+ import { default as l } from "./Error/index.mjs";
4
+ export {
5
+ l as Error,
6
+ f as NoData,
7
+ t as default,
8
+ a as getIconPath
9
+ };
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.11",
4
+ "version": "4.43.0-prerelease.15",
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.11",
13
- "@semcore/illustration": "2.43.0-prerelease.11",
14
- "@semcore/utils": "4.47.1-prerelease.11"
17
+ "@semcore/flex-box": "5.41.0-prerelease.15",
18
+ "@semcore/illustration": "2.43.0-prerelease.15",
19
+ "@semcore/utils": "4.48.0-prerelease.15"
15
20
  },
16
21
  "peerDependencies": {
17
- "@semcore/core": "^2.39.0-prerelease.11",
22
+ "@semcore/core": "^2.39.0-prerelease.15",
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
+ );