@semcore/widget-empty 4.44.0-prerelease.0 → 4.44.0-prerelease.4

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 (45) hide show
  1. package/CHANGELOG.md +20 -2
  2. package/lib/cjs/WidgetEmpty.js +8 -6
  3. package/lib/cjs/WidgetEmpty.js.map +1 -1
  4. package/lib/cjs/style/widget-empty.shadow.css +2 -2
  5. package/lib/es6/WidgetEmpty.js +8 -6
  6. package/lib/es6/WidgetEmpty.js.map +1 -1
  7. package/lib/es6/style/widget-empty.shadow.css +2 -2
  8. package/lib/esm/Error/index.mjs +32 -29
  9. package/lib/esm/Error/translations/__intergalactic-dynamic-locales.mjs +32 -32
  10. package/lib/esm/Error/translations/de.json.mjs +8 -6
  11. package/lib/esm/Error/translations/en.json.mjs +8 -6
  12. package/lib/esm/Error/translations/es.json.mjs +8 -6
  13. package/lib/esm/Error/translations/fr.json.mjs +8 -6
  14. package/lib/esm/Error/translations/it.json.mjs +8 -6
  15. package/lib/esm/Error/translations/ja.json.mjs +8 -6
  16. package/lib/esm/Error/translations/ko.json.mjs +8 -6
  17. package/lib/esm/Error/translations/nl.json.mjs +8 -6
  18. package/lib/esm/Error/translations/pl.json.mjs +8 -6
  19. package/lib/esm/Error/translations/pt.json.mjs +8 -6
  20. package/lib/esm/Error/translations/ru.json.mjs +8 -6
  21. package/lib/esm/Error/translations/sv.json.mjs +8 -6
  22. package/lib/esm/Error/translations/tr.json.mjs +8 -6
  23. package/lib/esm/Error/translations/vi.json.mjs +8 -6
  24. package/lib/esm/Error/translations/zh.json.mjs +8 -6
  25. package/lib/esm/NoData/index.mjs +32 -29
  26. package/lib/esm/NoData/translations/__intergalactic-dynamic-locales.mjs +32 -32
  27. package/lib/esm/NoData/translations/de.json.mjs +8 -6
  28. package/lib/esm/NoData/translations/en.json.mjs +8 -6
  29. package/lib/esm/NoData/translations/es.json.mjs +8 -6
  30. package/lib/esm/NoData/translations/fr.json.mjs +8 -6
  31. package/lib/esm/NoData/translations/it.json.mjs +8 -6
  32. package/lib/esm/NoData/translations/ja.json.mjs +8 -6
  33. package/lib/esm/NoData/translations/ko.json.mjs +8 -6
  34. package/lib/esm/NoData/translations/nl.json.mjs +8 -6
  35. package/lib/esm/NoData/translations/pl.json.mjs +8 -6
  36. package/lib/esm/NoData/translations/pt.json.mjs +8 -6
  37. package/lib/esm/NoData/translations/ru.json.mjs +8 -6
  38. package/lib/esm/NoData/translations/sv.json.mjs +8 -6
  39. package/lib/esm/NoData/translations/tr.json.mjs +8 -6
  40. package/lib/esm/NoData/translations/vi.json.mjs +8 -6
  41. package/lib/esm/NoData/translations/zh.json.mjs +8 -6
  42. package/lib/esm/WidgetEmpty.mjs +68 -53
  43. package/lib/esm/index.mjs +7 -7
  44. package/lib/esm/style/widget-empty.shadow.css +39 -0
  45. package/package.json +5 -5
@@ -1,37 +1,40 @@
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);
1
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
3
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
4
+ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
5
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
6
+ import createComponent, { assignProps, Component } from "@semcore/core";
7
+ import React from "react";
8
+ import WidgetEmpty, { getIconPath } from "../WidgetEmpty.mjs";
9
+ import i18nEnhance from "@semcore/utils/lib/enhances/i18nEnhance";
10
+ import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
11
+ var NoData = /* @__PURE__ */ function(_Component) {
12
+ _inherits(NoData2, _Component);
13
+ var _super = _createSuper(NoData2);
14
+ function NoData2() {
15
+ _classCallCheck(this, NoData2);
16
+ return _super.apply(this, arguments);
16
17
  }
17
- return h(e, [{
18
+ _createClass(NoData2, [{
18
19
  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));
20
+ value: function render() {
21
+ var _ref = this.asProps;
22
+ var _this$asProps = this.asProps, Children = _this$asProps.Children, type = _this$asProps.type, description = _this$asProps.description, getI18nText = _this$asProps.getI18nText;
23
+ return /* @__PURE__ */ React.createElement(WidgetEmpty, assignProps({
24
+ "icon": getIconPath(type)
25
+ }, _ref), /* @__PURE__ */ React.createElement(WidgetEmpty.Title, null, getI18nText("title")), /* @__PURE__ */ React.createElement(WidgetEmpty.Description, null, description || getI18nText("description")), /* @__PURE__ */ React.createElement(Children, null));
24
26
  }
25
- }]), e;
26
- }(P);
27
- i(o, "displayName", "WidgetNoData");
28
- i(o, "enhance", [v(p)]);
29
- i(o, "defaultProps", {
30
- i18n: p,
27
+ }]);
28
+ return NoData2;
29
+ }(Component);
30
+ _defineProperty(NoData, "displayName", "WidgetNoData");
31
+ _defineProperty(NoData, "enhance", [i18nEnhance(localizedMessages)]);
32
+ _defineProperty(NoData, "defaultProps", {
33
+ i18n: localizedMessages,
31
34
  locale: "en",
32
35
  type: "other-data"
33
36
  });
34
- const $ = _(o);
37
+ const index = createComponent(NoData);
35
38
  export {
36
- $ as default
39
+ index as default
37
40
  };
@@ -1,35 +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
1
+ import de from "./de.json.mjs";
2
+ import en from "./en.json.mjs";
3
+ import es from "./es.json.mjs";
4
+ import fr from "./fr.json.mjs";
5
+ import it from "./it.json.mjs";
6
+ import ja from "./ja.json.mjs";
7
+ import ko from "./ko.json.mjs";
8
+ import nl from "./nl.json.mjs";
9
+ import pt from "./pt.json.mjs";
10
+ import ru from "./ru.json.mjs";
11
+ import tr from "./tr.json.mjs";
12
+ import vi from "./vi.json.mjs";
13
+ import zh from "./zh.json.mjs";
14
+ import pl from "./pl.json.mjs";
15
+ import sv from "./sv.json.mjs";
16
+ var localizedMessages = {
17
+ de,
18
+ en,
19
+ es,
20
+ fr,
21
+ it,
22
+ ja,
23
+ ko,
24
+ nl,
25
+ pt,
26
+ ru,
27
+ tr,
28
+ vi,
29
+ zh,
30
+ pl,
31
+ sv
32
32
  };
33
33
  export {
34
- D as localizedMessages
34
+ localizedMessages
35
35
  };
@@ -1,9 +1,11 @@
1
- const e = "Nichts gefunden", t = "Ändern Sie Ihre Filter.", i = {
2
- title: e,
3
- description: t
1
+ const title = "Nichts gefunden";
2
+ const description = "Ändern Sie Ihre Filter.";
3
+ const de = {
4
+ title,
5
+ description
4
6
  };
5
7
  export {
6
- i as default,
7
- t as description,
8
- e as title
8
+ de as default,
9
+ description,
10
+ title
9
11
  };
@@ -1,9 +1,11 @@
1
- const t = "Nothing found", n = "Try changing your filters.", i = {
2
- title: t,
3
- description: n
1
+ const title = "Nothing found";
2
+ const description = "Try changing your filters.";
3
+ const en = {
4
+ title,
5
+ description
4
6
  };
5
7
  export {
6
- i as default,
7
- n as description,
8
- t as title
8
+ en as default,
9
+ description,
10
+ title
9
11
  };
@@ -1,9 +1,11 @@
1
- const t = "Ningún resultado", s = "Prueba a cambiar los filtros.", e = {
2
- title: t,
3
- description: s
1
+ const title = "Ningún resultado";
2
+ const description = "Prueba a cambiar los filtros.";
3
+ const es = {
4
+ title,
5
+ description
4
6
  };
5
7
  export {
6
- e as default,
7
- s as description,
8
- t as title
8
+ es as default,
9
+ description,
10
+ title
9
11
  };
@@ -1,9 +1,11 @@
1
- const t = "Rien n’a été trouvé", e = "Essayez de changer vos filtres.", s = {
2
- title: t,
3
- description: e
1
+ const title = "Rien n’a été trouvé";
2
+ const description = "Essayez de changer vos filtres.";
3
+ const fr = {
4
+ title,
5
+ description
4
6
  };
5
7
  export {
6
- s as default,
7
- e as description,
8
- t as title
8
+ fr as default,
9
+ description,
10
+ title
9
11
  };
@@ -1,9 +1,11 @@
1
- const t = "Nessun risultato trovato", i = "Prova a modificare i filtri.", o = {
2
- title: t,
3
- description: i
1
+ const title = "Nessun risultato trovato";
2
+ const description = "Prova a modificare i filtri.";
3
+ const it = {
4
+ title,
5
+ description
4
6
  };
5
7
  export {
6
- o as default,
7
- i as description,
8
- t as title
8
+ it as default,
9
+ description,
10
+ title
9
11
  };
@@ -1,9 +1,11 @@
1
- const t = "検索結果なし", e = "フィルターを変更します。", i = {
2
- title: t,
3
- description: e
1
+ const title = "検索結果なし";
2
+ const description = "フィルターを変更します。";
3
+ const ja = {
4
+ title,
5
+ description
4
6
  };
5
7
  export {
6
- i as default,
7
- e as description,
8
- t as title
8
+ ja as default,
9
+ description,
10
+ title
9
11
  };
@@ -1,9 +1,11 @@
1
- const t = "결과가 없습니다", o = "필터를 변경해 보세요.", e = {
2
- title: t,
3
- description: o
1
+ const title = "결과가 없습니다";
2
+ const description = "필터를 변경해 보세요.";
3
+ const ko = {
4
+ title,
5
+ description
4
6
  };
5
7
  export {
6
- e as default,
7
- o as description,
8
- t as title
8
+ ko as default,
9
+ description,
10
+ title
9
11
  };
@@ -1,9 +1,11 @@
1
- const e = "Niets gevonden", t = "Probeer het nog eens met andere filters.", n = {
2
- title: e,
3
- description: t
1
+ const title = "Niets gevonden";
2
+ const description = "Probeer het nog eens met andere filters.";
3
+ const nl = {
4
+ title,
5
+ description
4
6
  };
5
7
  export {
6
- n as default,
7
- t as description,
8
- e as title
8
+ nl as default,
9
+ description,
10
+ title
9
11
  };
@@ -1,9 +1,11 @@
1
- const i = "Niczego nie znaleziono", t = "Spróbuj zmienić filtry.", e = {
2
- title: i,
3
- description: t
1
+ const title = "Niczego nie znaleziono";
2
+ const description = "Spróbuj zmienić filtry.";
3
+ const pl = {
4
+ title,
5
+ description
4
6
  };
5
7
  export {
6
- e as default,
7
- t as description,
8
- i as title
8
+ pl as default,
9
+ description,
10
+ title
9
11
  };
@@ -1,9 +1,11 @@
1
- const t = "Nada encontrado", e = "Tente alterar seus filtros.", o = {
2
- title: t,
3
- description: e
1
+ const title = "Nada encontrado";
2
+ const description = "Tente alterar seus filtros.";
3
+ const pt = {
4
+ title,
5
+ description
4
6
  };
5
7
  export {
6
- o as default,
7
- e as description,
8
- t as title
8
+ pt as default,
9
+ description,
10
+ title
9
11
  };
@@ -1,9 +1,11 @@
1
- const t = "Данные отсутствуют", e = "Попробуйте изменить дату или настройки фильтров.", i = {
2
- title: t,
3
- description: e
1
+ const title = "Данные отсутствуют";
2
+ const description = "Попробуйте изменить дату или настройки фильтров.";
3
+ const ru = {
4
+ title,
5
+ description
4
6
  };
5
7
  export {
6
- i as default,
7
- e as description,
8
- t as title
8
+ ru as default,
9
+ description,
10
+ title
9
11
  };
@@ -1,9 +1,11 @@
1
- const t = "Inget hittades", e = "Prova att ändra dina filter.", i = {
2
- title: t,
3
- description: e
1
+ const title = "Inget hittades";
2
+ const description = "Prova att ändra dina filter.";
3
+ const sv = {
4
+ title,
5
+ description
4
6
  };
5
7
  export {
6
- i as default,
7
- e as description,
8
- t as title
8
+ sv as default,
9
+ description,
10
+ title
9
11
  };
@@ -1,9 +1,11 @@
1
- const i = "Hiçbir şey bulunamadı", t = "Filtrelerinizi değiştirmeyi deneyin.", e = {
2
- title: i,
3
- description: t
1
+ const title = "Hiçbir şey bulunamadı";
2
+ const description = "Filtrelerinizi değiştirmeyi deneyin.";
3
+ const tr = {
4
+ title,
5
+ description
4
6
  };
5
7
  export {
6
- e as default,
7
- t as description,
8
- i as title
8
+ tr as default,
9
+ description,
10
+ title
9
11
  };
@@ -1,9 +1,11 @@
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
1
+ const title = "Không tìm thấy gì";
2
+ const description = "Thử thay đổi bộ lọc của bạn.";
3
+ const vi = {
4
+ title,
5
+ description
4
6
  };
5
7
  export {
6
- c as default,
7
- i as description,
8
- t as title
8
+ vi as default,
9
+ description,
10
+ title
9
11
  };
@@ -1,9 +1,11 @@
1
- const t = "未找到任何数据", e = "尝试更改筛选器。", i = {
2
- title: t,
3
- description: e
1
+ const title = "未找到任何数据";
2
+ const description = "尝试更改筛选器。";
3
+ const zh = {
4
+ title,
5
+ description
4
6
  };
5
7
  export {
6
- i as default,
7
- e as description,
8
- t as title
8
+ zh as default,
9
+ description,
10
+ title
9
11
  };
@@ -1,64 +1,79 @@
1
- import g 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 E from "@babel/runtime/helpers/esm/createSuper";
6
- import m from "@babel/runtime/helpers/esm/defineProperty";
7
- import { sstyled as D } from "@semcore/utils/lib/core/index";
8
- import T, { sstyled as s, assignProps as c, Component as W } from "@semcore/core";
9
- import _ from "react";
10
- import { getIllustrationPath as C } from "@semcore/illustration";
11
- import { Flex as I, Box as f } from "@semcore/flex-box";
12
- import P from "@semcore/utils/lib/isNode";
13
- var b = (
1
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
4
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
5
+ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
6
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
7
+ import { sstyled } from "@semcore/utils/lib/core/index";
8
+ import createComponent, { sstyled as sstyled$1, assignProps, Component } from "@semcore/core";
9
+ import React from "react";
10
+ import { getIllustrationPath } from "@semcore/illustration";
11
+ import { Flex, Box } from "@semcore/flex-box";
12
+ import isNode from "@semcore/utils/lib/isNode";
13
+ /*!__reshadow-styles__:"./style/widget-empty.shadow.css"*/
14
+ var style = (
14
15
  /*__reshadow_css_start__*/
15
- (D.insert(
16
+ (sstyled.insert(
16
17
  /*__inner_css_start__*/
17
- ".___SWidgetEmpty_12olr_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SImage_12olr_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px);width:80px;height:80px}.___SDescription_12olr_gg_,.___STitle_12olr_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___STitle_12olr_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}.___SDescription_12olr_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_12olr_gg_+.___SDescription_12olr_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_12olr_gg_+.___SDescription_12olr_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}",
18
- "12olr_gg_"
19
- ), {
20
- __SWidgetEmpty: "___SWidgetEmpty_12olr_gg_",
21
- __SImage: "___SImage_12olr_gg_",
22
- __STitle: "___STitle_12olr_gg_",
23
- __SDescription: "___SDescription_12olr_gg_"
18
+ ".___SWidgetEmpty_v8it2_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SImage_v8it2_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px);width:80px;height:80px}.___STitle_v8it2_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}@supports (color:color(display-p3 0 0 0)){.___STitle_v8it2_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___STitle_v8it2_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SDescription_v8it2_gg_{text-align:center;text-wrap:balance;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));max-width:400px}@supports (color:color(display-p3 0 0 0)){.___SDescription_v8it2_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SDescription_v8it2_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___STitle_v8it2_gg_+.___SDescription_v8it2_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_v8it2_gg_+.___SDescription_v8it2_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}",
19
+ /*__inner_css_end__*/
20
+ "v8it2_gg_"
21
+ ), /*__reshadow_css_end__*/
22
+ {
23
+ "__SWidgetEmpty": "___SWidgetEmpty_v8it2_gg_",
24
+ "__SImage": "___SImage_v8it2_gg_",
25
+ "__STitle": "___STitle_v8it2_gg_",
26
+ "__SDescription": "___SDescription_v8it2_gg_"
24
27
  })
25
- ), K = function(r) {
26
- return C(r);
27
- }, p = /* @__PURE__ */ function(n) {
28
- x(t, n);
29
- var r = E(t);
30
- function t() {
31
- return h(this, t), r.apply(this, arguments);
28
+ );
29
+ var getIconPath = function getIconPath2(name) {
30
+ return getIllustrationPath(name);
31
+ };
32
+ var WidgetEmpty = /* @__PURE__ */ function(_Component) {
33
+ _inherits(WidgetEmpty2, _Component);
34
+ var _super = _createSuper(WidgetEmpty2);
35
+ function WidgetEmpty2() {
36
+ _classCallCheck(this, WidgetEmpty2);
37
+ return _super.apply(this, arguments);
32
38
  }
33
- return u(t, [{
39
+ _createClass(WidgetEmpty2, [{
34
40
  key: "render",
35
- value: function() {
36
- var a = this.asProps, e, d = I, l = this.asProps, y = l.Children, o = l.icon, v = l.styles, S = "div";
37
- return e = s(v), /* @__PURE__ */ _.createElement(d, e.cn("SWidgetEmpty", g({}, c({
38
- role: "status"
39
- }, a))), P(o) && /* @__PURE__ */ _.createElement(S, e.cn("SImage", {
41
+ value: function render() {
42
+ var _ref = this.asProps, _ref4;
43
+ var SWidgetEmpty = Flex;
44
+ var _this$asProps = this.asProps, Children = _this$asProps.Children, icon = _this$asProps.icon, styles = _this$asProps.styles;
45
+ var SImage = "div";
46
+ return _ref4 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SWidgetEmpty, _ref4.cn("SWidgetEmpty", _objectSpread({}, assignProps({
47
+ "role": "status"
48
+ }, _ref))), isNode(icon) && /* @__PURE__ */ React.createElement(SImage, _ref4.cn("SImage", {
40
49
  "aria-hidden": "true"
41
- }), typeof o == "string" ? /* @__PURE__ */ _.createElement("img", e.cn("img", {
42
- src: o,
43
- alt: ""
44
- })) : o), /* @__PURE__ */ _.createElement(y, e.cn("Children", {})));
50
+ }), typeof icon === "string" ? /* @__PURE__ */ React.createElement("img", _ref4.cn("img", {
51
+ "src": icon,
52
+ "alt": ""
53
+ })) : icon), /* @__PURE__ */ React.createElement(Children, _ref4.cn("Children", {})));
45
54
  }
46
- }]), t;
47
- }(W);
48
- m(p, "displayName", "WidgetEmpty");
49
- m(p, "style", b);
50
- var w = function(r) {
51
- var t = arguments[0], i, a = f, e = r.styles;
52
- return i = s(e), /* @__PURE__ */ _.createElement(a, i.cn("STitle", g({}, c({}, t))));
53
- }, j = function(r) {
54
- var t = arguments[0], i, a = f, e = r.styles;
55
- return i = s(e), /* @__PURE__ */ _.createElement(a, i.cn("SDescription", g({}, c({}, t))));
55
+ }]);
56
+ return WidgetEmpty2;
57
+ }(Component);
58
+ _defineProperty(WidgetEmpty, "displayName", "WidgetEmpty");
59
+ _defineProperty(WidgetEmpty, "style", style);
60
+ var Title = function Title2(props) {
61
+ var _ref2 = arguments[0], _ref5;
62
+ var STitle = Box;
63
+ var styles = props.styles;
64
+ return _ref5 = sstyled$1(styles), /* @__PURE__ */ React.createElement(STitle, _ref5.cn("STitle", _objectSpread({}, assignProps({}, _ref2))));
65
+ };
66
+ var Description = function Description2(props) {
67
+ var _ref3 = arguments[0], _ref6;
68
+ var SDescription = Box;
69
+ var styles = props.styles;
70
+ return _ref6 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SDescription, _ref6.cn("SDescription", _objectSpread({}, assignProps({}, _ref3))));
56
71
  };
57
- const L = T(p, {
58
- Title: w,
59
- Description: j
72
+ const WidgetEmpty$1 = createComponent(WidgetEmpty, {
73
+ Title,
74
+ Description
60
75
  });
61
76
  export {
62
- L as default,
63
- K as getIconPath
77
+ WidgetEmpty$1 as default,
78
+ getIconPath
64
79
  };
package/lib/esm/index.mjs CHANGED
@@ -1,9 +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";
1
+ import { default as default2, getIconPath } from "./WidgetEmpty.mjs";
2
+ import { default as default3 } from "./NoData/index.mjs";
3
+ import { default as default4 } from "./Error/index.mjs";
4
4
  export {
5
- l as Error,
6
- f as NoData,
7
- t as default,
8
- a as getIconPath
5
+ default4 as Error,
6
+ default3 as NoData,
7
+ default2 as default,
8
+ getIconPath
9
9
  };
@@ -0,0 +1,39 @@
1
+ SWidgetEmpty {
2
+ flex-direction: column;
3
+ justify-content: center;
4
+ align-items: center;
5
+ margin-bottom: var(--intergalactic-spacing-4x, 16px);
6
+ }
7
+
8
+ SImage {
9
+ display: flex;
10
+ align-items: flex-end;
11
+ justify-content: center;
12
+ margin-bottom: var(--intergalactic-spacing-3x, 12px);
13
+ width: 80px;
14
+ height: 80px;
15
+ }
16
+
17
+ STitle {
18
+ color: var(--intergalactic-text-secondary, oklch(0.088 0.026 147.7 / 0.583));
19
+ font-size: var(--intergalactic-fs-300, 16px);
20
+ line-height: var(--intergalactic-lh-300, 150%);
21
+ font-weight: var(--intergalactic-bold, 700);
22
+ }
23
+
24
+ SDescription {
25
+ text-align: center;
26
+ text-wrap: balance;
27
+ font-size: var(--intergalactic-fs-200, 14px);
28
+ line-height: var(--intergalactic-lh-200, 142%);
29
+ color: var(--intergalactic-text-secondary, oklch(0.088 0.026 147.7 / 0.583));
30
+ max-width: 400px;
31
+ }
32
+
33
+ STitle+SDescription {
34
+ margin-top: var(--intergalactic-spacing-1x, 4px);
35
+ }
36
+
37
+ SDescription+SDescription {
38
+ margin-top: var(--intergalactic-spacing-2x, 8px);
39
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/widget-empty",
3
3
  "description": "Semrush WidgetEmpty Component",
4
- "version": "4.44.0-prerelease.0",
4
+ "version": "4.44.0-prerelease.4",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -14,12 +14,12 @@
14
14
  "types": "./lib/types/index.d.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@semcore/flex-box": "5.41.1",
18
- "@semcore/illustration": "2.44.0-prerelease.0",
19
- "@semcore/utils": "4.48.1"
17
+ "@semcore/flex-box": "5.42.0-prerelease.4",
18
+ "@semcore/illustration": "2.45.0-prerelease.4",
19
+ "@semcore/utils": "4.49.0-prerelease.4"
20
20
  },
21
21
  "peerDependencies": {
22
- "@semcore/core": "^2.17.5",
22
+ "@semcore/core": "^2.40.0-prerelease.4",
23
23
  "react": "16.8 - 18",
24
24
  "react-dom": "16.8 - 18"
25
25
  },