@semcore/widget-empty 3.10.5 → 3.10.7

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
- ## [3.10.5] - 2023-03-28
5
+ ## [3.10.7] - 2023-04-14
6
6
 
7
7
  ### Changed
8
8
 
9
- - Version patch update due to children dependencies update (`@semcore/flex-box` [4.7.16 ~> 4.7.17], `@semcore/illustration` [1.4.11 ~> 1.4.12], `@semcore/utils` [3.49.0 ~> 3.49.1]).
9
+ - Version patch update due to children dependencies update (`@semcore/flex-box` [4.7.18 ~> 4.7.19], `@semcore/illustration` [1.4.13 ~> 1.4.14], `@semcore/utils` [3.50.0 ~> 3.50.2]).
10
10
 
11
11
  ## [3.10.0] - 2023-03-21
12
12
 
@@ -1,52 +1,36 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
-
5
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
-
7
5
  Object.defineProperty(exports, "__esModule", {
8
6
  value: true
9
7
  });
10
8
  exports["default"] = void 0;
11
-
12
9
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
13
-
14
10
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
15
-
16
11
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
17
-
18
12
  var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
19
-
20
13
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
21
-
22
14
  var _core = _interopRequireWildcard(require("@semcore/core"));
23
-
24
15
  var _react = _interopRequireDefault(require("react"));
25
-
26
16
  var _WidgetEmpty = _interopRequireWildcard(require("../WidgetEmpty"));
27
-
28
17
  var _i18nEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/i18nEnhance"));
29
-
30
18
  var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynamic-locales");
31
-
32
19
  var Error = /*#__PURE__*/function (_Component) {
33
20
  (0, _inherits2["default"])(Error, _Component);
34
-
35
21
  var _super = (0, _createSuper2["default"])(Error);
36
-
37
22
  function Error() {
38
23
  (0, _classCallCheck2["default"])(this, Error);
39
24
  return _super.apply(this, arguments);
40
25
  }
41
-
42
26
  (0, _createClass2["default"])(Error, [{
43
27
  key: "render",
44
28
  value: function render() {
45
29
  var _ref = this.asProps;
46
30
  var _this$asProps = this.asProps,
47
- Children = _this$asProps.Children,
48
- description = _this$asProps.description,
49
- getI18nText = _this$asProps.getI18nText;
31
+ Children = _this$asProps.Children,
32
+ description = _this$asProps.description,
33
+ getI18nText = _this$asProps.getI18nText;
50
34
  return /*#__PURE__*/_react["default"].createElement(_WidgetEmpty["default"], (0, _core.assignProps)({
51
35
  "icon": (0, _WidgetEmpty.getIconPath)('warning')
52
36
  }, _ref), /*#__PURE__*/_react["default"].createElement(_WidgetEmpty["default"].Title, null, getI18nText('title')), /*#__PURE__*/_react["default"].createElement(_WidgetEmpty["default"].Description, null, description || getI18nText('description')), /*#__PURE__*/_react["default"].createElement(Children, null));
@@ -54,15 +38,12 @@ var Error = /*#__PURE__*/function (_Component) {
54
38
  }]);
55
39
  return Error;
56
40
  }(_core.Component);
57
-
58
41
  (0, _defineProperty2["default"])(Error, "displayName", 'WidgetError');
59
42
  (0, _defineProperty2["default"])(Error, "defaultProps", {
60
43
  i18n: _intergalacticDynamicLocales.localizedMessages,
61
44
  locale: 'en'
62
45
  });
63
46
  (0, _defineProperty2["default"])(Error, "enhance", [(0, _i18nEnhance["default"])(_intergalacticDynamicLocales.localizedMessages)]);
64
-
65
47
  var _default = (0, _core["default"])(Error);
66
-
67
48
  exports["default"] = _default;
68
49
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Error","asProps","Children","description","getI18nText","WidgetEmpty","getIconPath","Component","i18n","localizedMessages","locale","i18nEnhance","createComponent"],"sources":["../../../src/Error/index.jsx"],"sourcesContent":["import React from 'react';\nimport WidgetEmpty, { getIconPath } from '../WidgetEmpty';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass Error extends Component {\n static displayName = 'WidgetError';\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n };\n static enhance = [i18nEnhance(localizedMessages)];\n\n render() {\n const { Children, description, getI18nText } = this.asProps;\n\n return (\n <Root render={WidgetEmpty} icon={getIconPath('warning')}>\n <WidgetEmpty.Title>{getI18nText('title')}</WidgetEmpty.Title>\n <WidgetEmpty.Description>\n {description || getI18nText('description')}\n </WidgetEmpty.Description>\n <Children />\n </Root>\n );\n }\n}\n\nexport default createComponent(Error);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAEA;;AAFA;;AACA;;AAEA;;AACA;;IAEMA,K;;;;;;;;;;;;WAQJ,kBAAS;MAAA;MACP,oBAA+C,KAAKC,OAApD;MAAA,IAAQC,QAAR,iBAAQA,QAAR;MAAA,IAAkBC,WAAlB,iBAAkBA,WAAlB;MAAA,IAA+BC,WAA/B,iBAA+BA,WAA/B;MAEA,oBACE,gCAAcC,uBAAd;QAAA,QAAiC,IAAAC,wBAAA,EAAY,SAAZ;MAAjC,uBACE,gCAAC,uBAAD,CAAa,KAAb,QAAoBF,WAAW,CAAC,OAAD,CAA/B,CADF,eAEE,gCAAC,uBAAD,CAAa,WAAb,QACGD,WAAW,IAAIC,WAAW,CAAC,aAAD,CAD7B,CAFF,eAKE,gCAAC,QAAD,OALF,CADF;IASD;;;EApBiBG,e;;iCAAdP,K,iBACiB,a;iCADjBA,K,kBAEkB;EACpBQ,IAAI,EAAEC,8CADc;EAEpBC,MAAM,EAAE;AAFY,C;iCAFlBV,K,aAMa,CAAC,IAAAW,uBAAA,EAAYF,8CAAZ,CAAD,C;;eAiBJ,IAAAG,gBAAA,EAAgBZ,KAAhB,C"}
1
+ {"version":3,"file":"index.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_WidgetEmpty","_i18nEnhance","_intergalacticDynamicLocales","Error","_Component","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","value","render","_ref","asProps","_this$asProps","Children","description","getI18nText","createElement","WidgetEmpty","assignProps","getIconPath","Title","Description","Component","_defineProperty2","i18n","localizedMessages","locale","i18nEnhance","_default","createComponent","exports"],"sources":["../../../src/Error/index.jsx"],"sourcesContent":["import React from 'react';\nimport WidgetEmpty, { getIconPath } from '../WidgetEmpty';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass Error extends Component {\n static displayName = 'WidgetError';\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n };\n static enhance = [i18nEnhance(localizedMessages)];\n\n render() {\n const { Children, description, getI18nText } = this.asProps;\n\n return (\n <Root render={WidgetEmpty} icon={getIconPath('warning')}>\n <WidgetEmpty.Title>{getI18nText('title')}</WidgetEmpty.Title>\n <WidgetEmpty.Description>\n {description || getI18nText('description')}\n </WidgetEmpty.Description>\n <Children />\n </Root>\n );\n }\n}\n\nexport default createComponent(Error);\n"],"mappings":";;;;;;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAFA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAJ,uBAAA,CAAAC,OAAA;AAEA,IAAAI,YAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,4BAAA,GAAAL,OAAA;AAAmF,IAE7EM,KAAK,0BAAAC,UAAA;EAAA,IAAAC,UAAA,a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,OAAA,cAAAF,QAAA"}
@@ -1,36 +1,22 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.localizedMessages = void 0;
9
-
10
8
  var _de = _interopRequireDefault(require("./de.json"));
11
-
12
9
  var _en = _interopRequireDefault(require("./en.json"));
13
-
14
10
  var _es = _interopRequireDefault(require("./es.json"));
15
-
16
11
  var _fr = _interopRequireDefault(require("./fr.json"));
17
-
18
12
  var _it = _interopRequireDefault(require("./it.json"));
19
-
20
13
  var _ja = _interopRequireDefault(require("./ja.json"));
21
-
22
14
  var _ko = _interopRequireDefault(require("./ko.json"));
23
-
24
15
  var _pt = _interopRequireDefault(require("./pt.json"));
25
-
26
16
  var _ru = _interopRequireDefault(require("./ru.json"));
27
-
28
17
  var _tr = _interopRequireDefault(require("./tr.json"));
29
-
30
18
  var _vi = _interopRequireDefault(require("./vi.json"));
31
-
32
19
  var _zh = _interopRequireDefault(require("./zh.json"));
33
-
34
20
  var localizedMessages = {
35
21
  de: _de["default"],
36
22
  en: _en["default"],
@@ -1 +1 @@
1
- {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["localizedMessages","de","en","es","fr","it","ja","ko","pt","ru","tr","vi","zh"],"sources":["../../../../src/Error/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n pt,\n ru,\n tr,\n vi,\n zh,\n};\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEO,IAAMA,iBAAiB,GAAG;EAC/BC,EAAE,EAAFA,cAD+B;EAE/BC,EAAE,EAAFA,cAF+B;EAG/BC,EAAE,EAAFA,cAH+B;EAI/BC,EAAE,EAAFA,cAJ+B;EAK/BC,EAAE,EAAFA,cAL+B;EAM/BC,EAAE,EAAFA,cAN+B;EAO/BC,EAAE,EAAFA,cAP+B;EAQ/BC,EAAE,EAAFA,cAR+B;EAS/BC,EAAE,EAAFA,cAT+B;EAU/BC,EAAE,EAAFA,cAV+B;EAW/BC,EAAE,EAAFA,cAX+B;EAY/BC,EAAE,EAAFA;AAZ+B,CAA1B"}
1
+ {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["_de","_interopRequireDefault","require","_en","_es","_fr","_it","_ja","_ko","_pt","_ru","_tr","_vi","_zh","localizedMessages","de","en","es","fr","it","ja","ko","pt","ru","tr","vi","zh","exports"],"sources":["../../../../src/Error/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n pt,\n ru,\n tr,\n vi,\n zh,\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,GAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,GAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,GAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,GAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,GAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,GAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,GAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,GAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,GAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,GAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,GAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,GAAA,GAAAZ,sBAAA,CAAAC,OAAA;AAEO,IAAMY,iBAAiB,GAAG;EAC/BC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA;AACF,CAAC;AAACC,OAAA,CAAAb,iBAAA,GAAAA,iBAAA"}
@@ -1,53 +1,37 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
-
5
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
-
7
5
  Object.defineProperty(exports, "__esModule", {
8
6
  value: true
9
7
  });
10
8
  exports["default"] = void 0;
11
-
12
9
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
13
-
14
10
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
15
-
16
11
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
17
-
18
12
  var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
19
-
20
13
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
21
-
22
14
  var _core = _interopRequireWildcard(require("@semcore/core"));
23
-
24
15
  var _react = _interopRequireDefault(require("react"));
25
-
26
16
  var _WidgetEmpty = _interopRequireWildcard(require("../WidgetEmpty"));
27
-
28
17
  var _i18nEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/i18nEnhance"));
29
-
30
18
  var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynamic-locales");
31
-
32
19
  var NoData = /*#__PURE__*/function (_Component) {
33
20
  (0, _inherits2["default"])(NoData, _Component);
34
-
35
21
  var _super = (0, _createSuper2["default"])(NoData);
36
-
37
22
  function NoData() {
38
23
  (0, _classCallCheck2["default"])(this, NoData);
39
24
  return _super.apply(this, arguments);
40
25
  }
41
-
42
26
  (0, _createClass2["default"])(NoData, [{
43
27
  key: "render",
44
28
  value: function render() {
45
29
  var _ref = this.asProps;
46
30
  var _this$asProps = this.asProps,
47
- Children = _this$asProps.Children,
48
- type = _this$asProps.type,
49
- description = _this$asProps.description,
50
- getI18nText = _this$asProps.getI18nText;
31
+ Children = _this$asProps.Children,
32
+ type = _this$asProps.type,
33
+ description = _this$asProps.description,
34
+ getI18nText = _this$asProps.getI18nText;
51
35
  return /*#__PURE__*/_react["default"].createElement(_WidgetEmpty["default"], (0, _core.assignProps)({
52
36
  "icon": (0, _WidgetEmpty.getIconPath)(type)
53
37
  }, _ref), /*#__PURE__*/_react["default"].createElement(_WidgetEmpty["default"].Title, null, getI18nText('title')), /*#__PURE__*/_react["default"].createElement(_WidgetEmpty["default"].Description, null, description || getI18nText('description')), /*#__PURE__*/_react["default"].createElement(Children, null));
@@ -55,7 +39,6 @@ var NoData = /*#__PURE__*/function (_Component) {
55
39
  }]);
56
40
  return NoData;
57
41
  }(_core.Component);
58
-
59
42
  (0, _defineProperty2["default"])(NoData, "displayName", 'WidgetNoData');
60
43
  (0, _defineProperty2["default"])(NoData, "enhance", [(0, _i18nEnhance["default"])(_intergalacticDynamicLocales.localizedMessages)]);
61
44
  (0, _defineProperty2["default"])(NoData, "defaultProps", {
@@ -63,8 +46,6 @@ var NoData = /*#__PURE__*/function (_Component) {
63
46
  locale: 'en',
64
47
  type: 'other-data'
65
48
  });
66
-
67
49
  var _default = (0, _core["default"])(NoData);
68
-
69
50
  exports["default"] = _default;
70
51
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["NoData","asProps","Children","type","description","getI18nText","WidgetEmpty","getIconPath","Component","i18nEnhance","localizedMessages","i18n","locale","createComponent"],"sources":["../../../src/NoData/index.jsx"],"sourcesContent":["import React from 'react';\nimport WidgetEmpty, { getIconPath } from '../WidgetEmpty';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass NoData extends Component {\n static displayName = 'WidgetNoData';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n type: 'other-data',\n };\n\n render() {\n const { Children, type, description, getI18nText } = this.asProps;\n\n return (\n <Root render={WidgetEmpty} icon={getIconPath(type)}>\n <WidgetEmpty.Title>{getI18nText('title')}</WidgetEmpty.Title>\n <WidgetEmpty.Description>\n {description || getI18nText('description')}\n </WidgetEmpty.Description>\n <Children />\n </Root>\n );\n }\n}\n\nexport default createComponent(NoData);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAEA;;AAFA;;AACA;;AAEA;;AACA;;IAEMA,M;;;;;;;;;;;;WASJ,kBAAS;MAAA;MACP,oBAAqD,KAAKC,OAA1D;MAAA,IAAQC,QAAR,iBAAQA,QAAR;MAAA,IAAkBC,IAAlB,iBAAkBA,IAAlB;MAAA,IAAwBC,WAAxB,iBAAwBA,WAAxB;MAAA,IAAqCC,WAArC,iBAAqCA,WAArC;MAEA,oBACE,gCAAcC,uBAAd;QAAA,QAAiC,IAAAC,wBAAA,EAAYJ,IAAZ;MAAjC,uBACE,gCAAC,uBAAD,CAAa,KAAb,QAAoBE,WAAW,CAAC,OAAD,CAA/B,CADF,eAEE,gCAAC,uBAAD,CAAa,WAAb,QACGD,WAAW,IAAIC,WAAW,CAAC,aAAD,CAD7B,CAFF,eAKE,gCAAC,QAAD,OALF,CADF;IASD;;;EArBkBG,e;;iCAAfR,M,iBACiB,c;iCADjBA,M,aAEa,CAAC,IAAAS,uBAAA,EAAYC,8CAAZ,CAAD,C;iCAFbV,M,kBAGkB;EACpBW,IAAI,EAAED,8CADc;EAEpBE,MAAM,EAAE,IAFY;EAGpBT,IAAI,EAAE;AAHc,C;;eAqBT,IAAAU,gBAAA,EAAgBb,MAAhB,C"}
1
+ {"version":3,"file":"index.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_WidgetEmpty","_i18nEnhance","_intergalacticDynamicLocales","NoData","_Component","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","value","render","_ref","asProps","_this$asProps","Children","type","description","getI18nText","createElement","WidgetEmpty","assignProps","getIconPath","Title","Description","Component","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","_default","createComponent","exports"],"sources":["../../../src/NoData/index.jsx"],"sourcesContent":["import React from 'react';\nimport WidgetEmpty, { getIconPath } from '../WidgetEmpty';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass NoData extends Component {\n static displayName = 'WidgetNoData';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n type: 'other-data',\n };\n\n render() {\n const { Children, type, description, getI18nText } = this.asProps;\n\n return (\n <Root render={WidgetEmpty} icon={getIconPath(type)}>\n <WidgetEmpty.Title>{getI18nText('title')}</WidgetEmpty.Title>\n <WidgetEmpty.Description>\n {description || getI18nText('description')}\n </WidgetEmpty.Description>\n <Children />\n </Root>\n );\n }\n}\n\nexport default createComponent(NoData);\n"],"mappings":";;;;;;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAFA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAA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,aAEO,CAAC,IAAA2B,uBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAF,gBAAA,aAF7C1B,MAAM,kBAGY;EACpB6B,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZd,IAAI,EAAE;AACR,CAAC;AAAA,IAAAe,QAAA,GAiBY,IAAAC,gBAAe,EAAChC,MAAM,CAAC;AAAAiC,OAAA,cAAAF,QAAA"}
@@ -1,36 +1,22 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.localizedMessages = void 0;
9
-
10
8
  var _de = _interopRequireDefault(require("./de.json"));
11
-
12
9
  var _en = _interopRequireDefault(require("./en.json"));
13
-
14
10
  var _es = _interopRequireDefault(require("./es.json"));
15
-
16
11
  var _fr = _interopRequireDefault(require("./fr.json"));
17
-
18
12
  var _it = _interopRequireDefault(require("./it.json"));
19
-
20
13
  var _ja = _interopRequireDefault(require("./ja.json"));
21
-
22
14
  var _ko = _interopRequireDefault(require("./ko.json"));
23
-
24
15
  var _pt = _interopRequireDefault(require("./pt.json"));
25
-
26
16
  var _ru = _interopRequireDefault(require("./ru.json"));
27
-
28
17
  var _tr = _interopRequireDefault(require("./tr.json"));
29
-
30
18
  var _vi = _interopRequireDefault(require("./vi.json"));
31
-
32
19
  var _zh = _interopRequireDefault(require("./zh.json"));
33
-
34
20
  var localizedMessages = {
35
21
  de: _de["default"],
36
22
  en: _en["default"],
@@ -1 +1 @@
1
- {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["localizedMessages","de","en","es","fr","it","ja","ko","pt","ru","tr","vi","zh"],"sources":["../../../../src/NoData/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n pt,\n ru,\n tr,\n vi,\n zh,\n};\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEO,IAAMA,iBAAiB,GAAG;EAC/BC,EAAE,EAAFA,cAD+B;EAE/BC,EAAE,EAAFA,cAF+B;EAG/BC,EAAE,EAAFA,cAH+B;EAI/BC,EAAE,EAAFA,cAJ+B;EAK/BC,EAAE,EAAFA,cAL+B;EAM/BC,EAAE,EAAFA,cAN+B;EAO/BC,EAAE,EAAFA,cAP+B;EAQ/BC,EAAE,EAAFA,cAR+B;EAS/BC,EAAE,EAAFA,cAT+B;EAU/BC,EAAE,EAAFA,cAV+B;EAW/BC,EAAE,EAAFA,cAX+B;EAY/BC,EAAE,EAAFA;AAZ+B,CAA1B"}
1
+ {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["_de","_interopRequireDefault","require","_en","_es","_fr","_it","_ja","_ko","_pt","_ru","_tr","_vi","_zh","localizedMessages","de","en","es","fr","it","ja","ko","pt","ru","tr","vi","zh","exports"],"sources":["../../../../src/NoData/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n pt,\n ru,\n tr,\n vi,\n zh,\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,GAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,GAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,GAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,GAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,GAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,GAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,GAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,GAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,GAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,GAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,GAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,GAAA,GAAAZ,sBAAA,CAAAC,OAAA;AAEO,IAAMY,iBAAiB,GAAG;EAC/BC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA;AACF,CAAC;AAACC,OAAA,CAAAb,iBAAA,GAAAA,iBAAA"}
@@ -1,79 +1,50 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
-
5
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
-
7
5
  Object.defineProperty(exports, "__esModule", {
8
6
  value: true
9
7
  });
10
8
  exports.getIconPath = exports["default"] = void 0;
11
-
12
9
  var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
13
-
14
10
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
15
-
16
11
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
17
-
18
12
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
19
-
20
13
  var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
21
-
22
14
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
23
-
24
15
  var _core = _interopRequireWildcard(require("@semcore/core"));
25
-
26
16
  var _react = _interopRequireDefault(require("react"));
27
-
28
17
  var _illustration = require("@semcore/illustration");
29
-
30
18
  var _flexBox = require("@semcore/flex-box");
31
-
32
19
  var _isNode = _interopRequireDefault(require("@semcore/utils/lib/isNode"));
33
-
34
20
  /*__reshadow-styles__:"./style/widget-empty.shadow.css"*/
35
- var style = (
36
- /*__reshadow_css_start__*/
37
- _core.sstyled.insert(
38
- /*__inner_css_start__*/
39
- ".___SWidgetEmpty_16vjk_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SImage_16vjk_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px)}.___SDescription_16vjk_gg_,.___STitle_16vjk_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___STitle_16vjk_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}.___SDescription_16vjk_gg_{text-align:center;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);max-width:400px}.___STitle_16vjk_gg_+.___SDescription_16vjk_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_16vjk_gg_+.___SDescription_16vjk_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}"
40
- /*__inner_css_end__*/
41
- , "16vjk_gg_")
42
- /*__reshadow_css_end__*/
43
- , {
44
- "__SWidgetEmpty": "___SWidgetEmpty_16vjk_gg_",
45
- "__SImage": "___SImage_16vjk_gg_",
46
- "__STitle": "___STitle_16vjk_gg_",
47
- "__SDescription": "___SDescription_16vjk_gg_"
21
+ var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SWidgetEmpty_xlgib_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SImage_xlgib_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px)}.___SDescription_xlgib_gg_,.___STitle_xlgib_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___STitle_xlgib_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}.___SDescription_xlgib_gg_{text-align:center;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);max-width:400px}.___STitle_xlgib_gg_+.___SDescription_xlgib_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_xlgib_gg_+.___SDescription_xlgib_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}" /*__inner_css_end__*/, "xlgib_gg_") /*__reshadow_css_end__*/, {
22
+ "__SWidgetEmpty": "___SWidgetEmpty_xlgib_gg_",
23
+ "__SImage": "___SImage_xlgib_gg_",
24
+ "__STitle": "___STitle_xlgib_gg_",
25
+ "__SDescription": "___SDescription_xlgib_gg_"
48
26
  });
49
-
50
27
  var getIconPath = function getIconPath(name) {
51
28
  return (0, _illustration.getIllustrationPath)(name);
52
29
  };
53
-
54
30
  exports.getIconPath = getIconPath;
55
-
56
31
  var WidgetEmpty = /*#__PURE__*/function (_Component) {
57
32
  (0, _inherits2["default"])(WidgetEmpty, _Component);
58
-
59
33
  var _super = (0, _createSuper2["default"])(WidgetEmpty);
60
-
61
34
  function WidgetEmpty() {
62
35
  (0, _classCallCheck2["default"])(this, WidgetEmpty);
63
36
  return _super.apply(this, arguments);
64
37
  }
65
-
66
38
  (0, _createClass2["default"])(WidgetEmpty, [{
67
39
  key: "render",
68
40
  value: function render() {
69
41
  var _ref = this.asProps,
70
- _ref4;
71
-
42
+ _ref4;
72
43
  var SWidgetEmpty = _flexBox.Flex;
73
44
  var _this$asProps = this.asProps,
74
- Children = _this$asProps.Children,
75
- icon = _this$asProps.icon,
76
- styles = _this$asProps.styles;
45
+ Children = _this$asProps.Children,
46
+ icon = _this$asProps.icon,
47
+ styles = _this$asProps.styles;
77
48
  var SImage = 'div';
78
49
  return _ref4 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SWidgetEmpty, _ref4.cn("SWidgetEmpty", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({}, _ref))), (0, _isNode["default"])(icon) && /*#__PURE__*/_react["default"].createElement(SImage, _ref4.cn("SImage", {
79
50
  "aria-hidden": "true"
@@ -85,32 +56,25 @@ var WidgetEmpty = /*#__PURE__*/function (_Component) {
85
56
  }]);
86
57
  return WidgetEmpty;
87
58
  }(_core.Component);
88
-
89
59
  (0, _defineProperty2["default"])(WidgetEmpty, "displayName", 'WidgetEmpty');
90
60
  (0, _defineProperty2["default"])(WidgetEmpty, "style", style);
91
-
92
61
  var Title = function Title(props) {
93
62
  var _ref2 = arguments[0],
94
- _ref5;
95
-
63
+ _ref5;
96
64
  var STitle = _flexBox.Box;
97
65
  var styles = props.styles;
98
66
  return _ref5 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(STitle, _ref5.cn("STitle", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({}, _ref2))));
99
67
  };
100
-
101
68
  var Description = function Description(props) {
102
69
  var _ref3 = arguments[0],
103
- _ref6;
104
-
70
+ _ref6;
105
71
  var SDescription = _flexBox.Box;
106
72
  var styles = props.styles;
107
73
  return _ref6 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SDescription, _ref6.cn("SDescription", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({}, _ref3))));
108
74
  };
109
-
110
75
  var _default = (0, _core["default"])(WidgetEmpty, {
111
76
  Title: Title,
112
77
  Description: Description
113
78
  });
114
-
115
79
  exports["default"] = _default;
116
80
  //# sourceMappingURL=WidgetEmpty.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"WidgetEmpty.js","names":["getIconPath","name","getIllustrationPath","WidgetEmpty","SWidgetEmpty","Flex","asProps","Children","icon","styles","SImage","sstyled","isNode","Component","style","Title","props","STitle","Box","Description","SDescription","createComponent"],"sources":["../../src/WidgetEmpty.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport { Box, Flex } from '@semcore/flex-box';\nimport isNode from '@semcore/utils/lib/isNode';\n\nimport style from './style/widget-empty.shadow.css';\n\nexport const getIconPath = (name) => getIllustrationPath(name);\n\nclass WidgetEmpty extends Component {\n static displayName = 'WidgetEmpty';\n static style = style;\n\n render() {\n const SWidgetEmpty = Root;\n const { Children, icon, styles } = this.asProps;\n const SImage = 'div';\n\n return sstyled(styles)(\n <SWidgetEmpty render={Flex}>\n {isNode(icon) && (\n <SImage aria-hidden=\"true\">\n {typeof icon === 'string' ? <img src={icon} alt=\"widget empty icon\" /> : icon}\n </SImage>\n )}\n <Children />\n </SWidgetEmpty>,\n );\n }\n}\n\nconst Title = (props) => {\n const STitle = Root;\n const { styles } = props;\n return sstyled(styles)(<STitle render={Box} />);\n};\n\nconst Description = (props) => {\n const SDescription = Root;\n const { styles } = props;\n return sstyled(styles)(<SDescription render={Box} />);\n};\n\nexport default createComponent(WidgetEmpty, {\n Title,\n Description,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA;;AADA;;AAEA;;AACA;;AACA;;;;;;;;;;;;;;;;;;AAIO,IAAMA,WAAW,GAAG,SAAdA,WAAc,CAACC,IAAD;EAAA,OAAU,IAAAC,iCAAA,EAAoBD,IAApB,CAAV;AAAA,CAApB;;;;IAEDE,W;;;;;;;;;;;;WAIJ,kBAAS;MAAA;MAAA;;MACP,IAAMC,YAAY,GAKMC,aALxB;MACA,oBAAmC,KAAKC,OAAxC;MAAA,IAAQC,QAAR,iBAAQA,QAAR;MAAA,IAAkBC,IAAlB,iBAAkBA,IAAlB;MAAA,IAAwBC,MAAxB,iBAAwBA,MAAxB;MACA,IAAMC,MAAM,GAAG,KAAf;MAEA,eAAO,IAAAC,aAAA,EAAQF,MAAR,CAAP,eACE,gCAAC,YAAD,kGACG,IAAAG,kBAAA,EAAOJ,IAAP,kBACC,gCAAC,MAAD;QAAA,eAAoB;MAApB,IACG,OAAOA,IAAP,KAAgB,QAAhB,gBAA2B;QAAA,OAAUA,IAAV;QAAA,OAAoB;MAApB,GAA3B,GAAwEA,IAD3E,CAFJ,eAME,gCAAC,QAAD,2BANF,CADF;IAUD;;;EAnBuBK,e;;iCAApBV,W,iBACiB,a;iCADjBA,W,WAEWW,K;;AAoBjB,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD,EAAW;EAAA;EAAA;;EACvB,IAAMC,MAAM,GAE2BC,YAFvC;EACA,IAAQT,MAAR,GAAmBO,KAAnB,CAAQP,MAAR;EACA,eAAO,IAAAE,aAAA,EAAQF,MAAR,CAAP,eAAuB,gCAAC,MAAD,4FAAvB;AACD,CAJD;;AAMA,IAAMU,WAAW,GAAG,SAAdA,WAAc,CAACH,KAAD,EAAW;EAAA;EAAA;;EAC7B,IAAMI,YAAY,GAE2BF,YAF7C;EACA,IAAQT,MAAR,GAAmBO,KAAnB,CAAQP,MAAR;EACA,eAAO,IAAAE,aAAA,EAAQF,MAAR,CAAP,eAAuB,gCAAC,YAAD,kGAAvB;AACD,CAJD;;eAMe,IAAAY,gBAAA,EAAgBlB,WAAhB,EAA6B;EAC1CY,KAAK,EAALA,KAD0C;EAE1CI,WAAW,EAAXA;AAF0C,CAA7B,C"}
1
+ {"version":3,"file":"WidgetEmpty.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_illustration","_flexBox","_isNode","style","sstyled","insert","getIconPath","name","getIllustrationPath","exports","WidgetEmpty","_Component","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","value","render","_ref","asProps","_ref4","SWidgetEmpty","Flex","_this$asProps","Children","icon","styles","SImage","createElement","cn","_objectSpread2","assignProps","isNode","Component","_defineProperty2","Title","props","_ref2","arguments[0]","_ref5","STitle","Box","Description","_ref3","_ref6","SDescription","_default","createComponent"],"sources":["../../src/WidgetEmpty.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport { Box, Flex } from '@semcore/flex-box';\nimport isNode from '@semcore/utils/lib/isNode';\n\nimport style from './style/widget-empty.shadow.css';\n\nexport const getIconPath = (name) => getIllustrationPath(name);\n\nclass WidgetEmpty extends Component {\n static displayName = 'WidgetEmpty';\n static style = style;\n\n render() {\n const SWidgetEmpty = Root;\n const { Children, icon, styles } = this.asProps;\n const SImage = 'div';\n\n return sstyled(styles)(\n <SWidgetEmpty render={Flex}>\n {isNode(icon) && (\n <SImage aria-hidden=\"true\">\n {typeof icon === 'string' ? <img src={icon} alt=\"widget empty icon\" /> : icon}\n </SImage>\n )}\n <Children />\n </SWidgetEmpty>,\n );\n }\n}\n\nconst Title = (props) => {\n const STitle = Root;\n const { styles } = props;\n return sstyled(styles)(<STitle render={Box} />);\n};\n\nconst Description = (props) => {\n const SDescription = Root;\n const { styles } = props;\n return sstyled(styles)(<SDescription render={Box} />);\n};\n\nexport default createComponent(WidgetEmpty, {\n Title,\n Description,\n});\n"],"mappings":";;;;;;;;;;;;;;AACA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AADA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAH,sBAAA,CAAAF,OAAA;AAA+C;AAAA,IAAAM,KAAA,+BAAAR,KAAA,CAAAS,O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1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
6
-
7
5
  Object.defineProperty(exports, "__esModule", {
8
6
  value: true
9
7
  });
@@ -29,9 +27,7 @@ Object.defineProperty(exports, "default", {
29
27
  return _WidgetEmpty["default"];
30
28
  }
31
29
  });
32
-
33
30
  var _WidgetEmpty = _interopRequireWildcard(require("./WidgetEmpty"));
34
-
35
31
  Object.keys(_WidgetEmpty).forEach(function (key) {
36
32
  if (key === "default" || key === "__esModule") return;
37
33
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -43,8 +39,6 @@ Object.keys(_WidgetEmpty).forEach(function (key) {
43
39
  }
44
40
  });
45
41
  });
46
-
47
42
  var _NoData = _interopRequireDefault(require("./NoData"));
48
-
49
43
  var _Error = _interopRequireDefault(require("./Error"));
50
44
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/index.js"],"sourcesContent":["export { default } from './WidgetEmpty';\nexport * from './WidgetEmpty';\n\nexport { default as NoData } from './NoData';\n\nexport { default as Error } from './Error';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAEA;;AAEA"}
1
+ {"version":3,"file":"index.js","names":["_WidgetEmpty","_interopRequireWildcard","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_NoData","_interopRequireDefault","_Error"],"sources":["../../src/index.js"],"sourcesContent":["export { default } from './WidgetEmpty';\nexport * from './WidgetEmpty';\n\nexport { default as NoData } from './NoData';\n\nexport { default as Error } from './Error';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,uBAAA,CAAAC,OAAA;AACAC,MAAA,CAAAC,IAAA,CAAAJ,YAAA,EAAAK,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAN,YAAA,CAAAM,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAd,YAAA,CAAAM,GAAA;IAAA;EAAA;AAAA;AAEA,IAAAS,OAAA,GAAAC,sBAAA,CAAAd,OAAA;AAEA,IAAAe,MAAA,GAAAD,sBAAA,CAAAd,OAAA"}
@@ -9,43 +9,33 @@ import WidgetEmpty, { getIconPath } from '../WidgetEmpty';
9
9
  import createComponent, { Component, Root } from '@semcore/core';
10
10
  import i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';
11
11
  import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
12
-
13
12
  var Error = /*#__PURE__*/function (_Component) {
14
13
  _inherits(Error, _Component);
15
-
16
14
  var _super = _createSuper(Error);
17
-
18
15
  function Error() {
19
16
  _classCallCheck(this, Error);
20
-
21
17
  return _super.apply(this, arguments);
22
18
  }
23
-
24
19
  _createClass(Error, [{
25
20
  key: "render",
26
21
  value: function render() {
27
22
  var _ref = this.asProps;
28
23
  var _this$asProps = this.asProps,
29
- Children = _this$asProps.Children,
30
- description = _this$asProps.description,
31
- getI18nText = _this$asProps.getI18nText;
24
+ Children = _this$asProps.Children,
25
+ description = _this$asProps.description,
26
+ getI18nText = _this$asProps.getI18nText;
32
27
  return /*#__PURE__*/React.createElement(WidgetEmpty, _assignProps({
33
28
  "icon": getIconPath('warning')
34
29
  }, _ref), /*#__PURE__*/React.createElement(WidgetEmpty.Title, null, getI18nText('title')), /*#__PURE__*/React.createElement(WidgetEmpty.Description, null, description || getI18nText('description')), /*#__PURE__*/React.createElement(Children, null));
35
30
  }
36
31
  }]);
37
-
38
32
  return Error;
39
33
  }(Component);
40
-
41
34
  _defineProperty(Error, "displayName", 'WidgetError');
42
-
43
35
  _defineProperty(Error, "defaultProps", {
44
36
  i18n: localizedMessages,
45
37
  locale: 'en'
46
38
  });
47
-
48
39
  _defineProperty(Error, "enhance", [i18nEnhance(localizedMessages)]);
49
-
50
40
  export default createComponent(Error);
51
41
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","WidgetEmpty","getIconPath","createComponent","Component","Root","i18nEnhance","localizedMessages","Error","asProps","Children","description","getI18nText","i18n","locale"],"sources":["../../../src/Error/index.jsx"],"sourcesContent":["import React from 'react';\nimport WidgetEmpty, { getIconPath } from '../WidgetEmpty';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass Error extends Component {\n static displayName = 'WidgetError';\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n };\n static enhance = [i18nEnhance(localizedMessages)];\n\n render() {\n const { Children, description, getI18nText } = this.asProps;\n\n return (\n <Root render={WidgetEmpty} icon={getIconPath('warning')}>\n <WidgetEmpty.Title>{getI18nText('title')}</WidgetEmpty.Title>\n <WidgetEmpty.Description>\n {description || getI18nText('description')}\n </WidgetEmpty.Description>\n <Children />\n </Root>\n );\n }\n}\n\nexport default createComponent(Error);\n"],"mappings":";;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,WAAP,IAAsBC,WAAtB,QAAyC,gBAAzC;AACA,OAAOC,eAAP,IAA0BC,SAA1B,EAAqCC,IAArC,QAAiD,eAAjD;AACA,OAAOC,WAAP,MAAwB,yCAAxB;AACA,SAASC,iBAAT,QAAkC,gDAAlC;;IAEMC,K;;;;;;;;;;;;;WAQJ,kBAAS;MAAA;MACP,oBAA+C,KAAKC,OAApD;MAAA,IAAQC,QAAR,iBAAQA,QAAR;MAAA,IAAkBC,WAAlB,iBAAkBA,WAAlB;MAAA,IAA+BC,WAA/B,iBAA+BA,WAA/B;MAEA,oBACE,oBAAcX,WAAd;QAAA,QAAiCC,WAAW,CAAC,SAAD;MAA5C,uBACE,oBAAC,WAAD,CAAa,KAAb,QAAoBU,WAAW,CAAC,OAAD,CAA/B,CADF,eAEE,oBAAC,WAAD,CAAa,WAAb,QACGD,WAAW,IAAIC,WAAW,CAAC,aAAD,CAD7B,CAFF,eAKE,oBAAC,QAAD,OALF,CADF;IASD;;;;EApBiBR,S;;gBAAdI,K,iBACiB,a;;gBADjBA,K,kBAEkB;EACpBK,IAAI,EAAEN,iBADc;EAEpBO,MAAM,EAAE;AAFY,C;;gBAFlBN,K,aAMa,CAACF,WAAW,CAACC,iBAAD,CAAZ,C;;AAiBnB,eAAeJ,eAAe,CAACK,KAAD,CAA9B"}
1
+ {"version":3,"file":"index.js","names":["React","WidgetEmpty","getIconPath","createComponent","Component","Root","i18nEnhance","localizedMessages","Error","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","render","_ref","asProps","_this$asProps","Children","description","getI18nText","createElement","_assignProps","Title","Description","_defineProperty","i18n","locale"],"sources":["../../../src/Error/index.jsx"],"sourcesContent":["import React from 'react';\nimport WidgetEmpty, { getIconPath } from '../WidgetEmpty';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass Error extends Component {\n static displayName = 'WidgetError';\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n };\n static enhance = [i18nEnhance(localizedMessages)];\n\n render() {\n const { Children, description, getI18nText } = this.asProps;\n\n return (\n <Root render={WidgetEmpty} icon={getIconPath('warning')}>\n <WidgetEmpty.Title>{getI18nText('title')}</WidgetEmpty.Title>\n <WidgetEmpty.Description>\n {description || getI18nText('description')}\n </WidgetEmpty.Description>\n <Children />\n </Root>\n );\n }\n}\n\nexport default createComponent(Error);\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,WAAW,IAAIC,WAAW,QAAQ,gBAAgB;AACzD,OAAOC,eAAe,IAAIC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OAAOC,WAAW,MAAM,yCAAyC;AACjE,SAASC,iBAAiB,QAAQ,gDAAgD;AAAC,IAE7EC,KAAK,0BAAAC,UAAA;EAAAC,SAAA,CAAAF,KAAA,EAAAC,UAAA;EAAA,IAAAE,MAAA,GAAAC,YAAA,CAAAJ,KAAA;EAAA,SAAAA,MAAA;IAAAK,eAAA,OAAAL,KAAA;IAAA,OAAAG,MAAA,CAAAG,KAAA,OAAAC,SAAA;EAAA;EAAAC,YAAA,CAAAR,KAAA;IAAAS,GAAA;IAAAC,KAAA,EAQT,SAAAC,OAAA,EAAS;MAAA,IAAAC,IAAA,QAAAC,OAAA;MACP,IAAAC,aAAA,GAA+C,IAAI,CAACD,OAAO;QAAnDE,QAAQ,GAAAD,aAAA,CAARC,QAAQ;QAAEC,WAAW,GAAAF,aAAA,CAAXE,WAAW;QAAEC,WAAW,GAAAH,aAAA,CAAXG,WAAW;MAE1C,oBACEzB,KAAA,CAAA0B,aAAA,CAAczB,WAAW,EAAA0B,YAAA;QAAA,QAAQzB,WAAW,CAAC,SAAS;MAAC,GAAAkB,IAAA,gBACrDpB,KAAA,CAAA0B,aAAA,CAACzB,WAAW,CAAC2B,KAAK,QAAEH,WAAW,CAAC,OAAO,CAAC,CAAqB,eAC7DzB,KAAA,CAAA0B,aAAA,CAACzB,WAAW,CAAC4B,WAAW,QACrBL,WAAW,IAAIC,WAAW,CAAC,aAAa,CAAC,CAClB,eAC1BzB,KAAA,CAAA0B,aAAA,CAACH,QAAQ,OAAG,CACP;IAEX;EAAC;EAAA,OAAAf,KAAA;AAAA,EApBiBJ,SAAS;AAAA0B,eAAA,CAAvBtB,KAAK,iBACY,aAAa;AAAAsB,eAAA,CAD9BtB,KAAK,kBAEa;EACpBuB,IAAI,EAAExB,iBAAiB;EACvByB,MAAM,EAAE;AACV,CAAC;AAAAF,eAAA,CALGtB,KAAK,aAMQ,CAACF,WAAW,CAACC,iBAAiB,CAAC,CAAC;AAiBnD,eAAeJ,eAAe,CAACK,KAAK,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["de","en","es","fr","it","ja","ko","pt","ru","tr","vi","zh","localizedMessages"],"sources":["../../../../src/Error/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n pt,\n ru,\n tr,\n vi,\n zh,\n};\n"],"mappings":"AAAA,OAAOA,EAAP,MAAe,WAAf;AACA,OAAOC,EAAP,MAAe,WAAf;AACA,OAAOC,EAAP,MAAe,WAAf;AACA,OAAOC,EAAP,MAAe,WAAf;AACA,OAAOC,EAAP,MAAe,WAAf;AACA,OAAOC,EAAP,MAAe,WAAf;AACA,OAAOC,EAAP,MAAe,WAAf;AACA,OAAOC,EAAP,MAAe,WAAf;AACA,OAAOC,EAAP,MAAe,WAAf;AACA,OAAOC,EAAP,MAAe,WAAf;AACA,OAAOC,EAAP,MAAe,WAAf;AACA,OAAOC,EAAP,MAAe,WAAf;AAEA,OAAO,IAAMC,iBAAiB,GAAG;EAC/BZ,EAAE,EAAFA,EAD+B;EAE/BC,EAAE,EAAFA,EAF+B;EAG/BC,EAAE,EAAFA,EAH+B;EAI/BC,EAAE,EAAFA,EAJ+B;EAK/BC,EAAE,EAAFA,EAL+B;EAM/BC,EAAE,EAAFA,EAN+B;EAO/BC,EAAE,EAAFA,EAP+B;EAQ/BC,EAAE,EAAFA,EAR+B;EAS/BC,EAAE,EAAFA,EAT+B;EAU/BC,EAAE,EAAFA,EAV+B;EAW/BC,EAAE,EAAFA,EAX+B;EAY/BC,EAAE,EAAFA;AAZ+B,CAA1B"}
1
+ {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["de","en","es","fr","it","ja","ko","pt","ru","tr","vi","zh","localizedMessages"],"sources":["../../../../src/Error/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n pt,\n ru,\n tr,\n vi,\n zh,\n};\n"],"mappings":"AAAA,OAAOA,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAE1B,OAAO,IAAMC,iBAAiB,GAAG;EAC/BZ,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA;AACF,CAAC"}
@@ -9,45 +9,35 @@ import WidgetEmpty, { getIconPath } from '../WidgetEmpty';
9
9
  import createComponent, { Component, Root } from '@semcore/core';
10
10
  import i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';
11
11
  import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
12
-
13
12
  var NoData = /*#__PURE__*/function (_Component) {
14
13
  _inherits(NoData, _Component);
15
-
16
14
  var _super = _createSuper(NoData);
17
-
18
15
  function NoData() {
19
16
  _classCallCheck(this, NoData);
20
-
21
17
  return _super.apply(this, arguments);
22
18
  }
23
-
24
19
  _createClass(NoData, [{
25
20
  key: "render",
26
21
  value: function render() {
27
22
  var _ref = this.asProps;
28
23
  var _this$asProps = this.asProps,
29
- Children = _this$asProps.Children,
30
- type = _this$asProps.type,
31
- description = _this$asProps.description,
32
- getI18nText = _this$asProps.getI18nText;
24
+ Children = _this$asProps.Children,
25
+ type = _this$asProps.type,
26
+ description = _this$asProps.description,
27
+ getI18nText = _this$asProps.getI18nText;
33
28
  return /*#__PURE__*/React.createElement(WidgetEmpty, _assignProps({
34
29
  "icon": getIconPath(type)
35
30
  }, _ref), /*#__PURE__*/React.createElement(WidgetEmpty.Title, null, getI18nText('title')), /*#__PURE__*/React.createElement(WidgetEmpty.Description, null, description || getI18nText('description')), /*#__PURE__*/React.createElement(Children, null));
36
31
  }
37
32
  }]);
38
-
39
33
  return NoData;
40
34
  }(Component);
41
-
42
35
  _defineProperty(NoData, "displayName", 'WidgetNoData');
43
-
44
36
  _defineProperty(NoData, "enhance", [i18nEnhance(localizedMessages)]);
45
-
46
37
  _defineProperty(NoData, "defaultProps", {
47
38
  i18n: localizedMessages,
48
39
  locale: 'en',
49
40
  type: 'other-data'
50
41
  });
51
-
52
42
  export default createComponent(NoData);
53
43
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","WidgetEmpty","getIconPath","createComponent","Component","Root","i18nEnhance","localizedMessages","NoData","asProps","Children","type","description","getI18nText","i18n","locale"],"sources":["../../../src/NoData/index.jsx"],"sourcesContent":["import React from 'react';\nimport WidgetEmpty, { getIconPath } from '../WidgetEmpty';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass NoData extends Component {\n static displayName = 'WidgetNoData';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n type: 'other-data',\n };\n\n render() {\n const { Children, type, description, getI18nText } = this.asProps;\n\n return (\n <Root render={WidgetEmpty} icon={getIconPath(type)}>\n <WidgetEmpty.Title>{getI18nText('title')}</WidgetEmpty.Title>\n <WidgetEmpty.Description>\n {description || getI18nText('description')}\n </WidgetEmpty.Description>\n <Children />\n </Root>\n );\n }\n}\n\nexport default createComponent(NoData);\n"],"mappings":";;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,WAAP,IAAsBC,WAAtB,QAAyC,gBAAzC;AACA,OAAOC,eAAP,IAA0BC,SAA1B,EAAqCC,IAArC,QAAiD,eAAjD;AACA,OAAOC,WAAP,MAAwB,yCAAxB;AACA,SAASC,iBAAT,QAAkC,gDAAlC;;IAEMC,M;;;;;;;;;;;;;WASJ,kBAAS;MAAA;MACP,oBAAqD,KAAKC,OAA1D;MAAA,IAAQC,QAAR,iBAAQA,QAAR;MAAA,IAAkBC,IAAlB,iBAAkBA,IAAlB;MAAA,IAAwBC,WAAxB,iBAAwBA,WAAxB;MAAA,IAAqCC,WAArC,iBAAqCA,WAArC;MAEA,oBACE,oBAAcZ,WAAd;QAAA,QAAiCC,WAAW,CAACS,IAAD;MAA5C,uBACE,oBAAC,WAAD,CAAa,KAAb,QAAoBE,WAAW,CAAC,OAAD,CAA/B,CADF,eAEE,oBAAC,WAAD,CAAa,WAAb,QACGD,WAAW,IAAIC,WAAW,CAAC,aAAD,CAD7B,CAFF,eAKE,oBAAC,QAAD,OALF,CADF;IASD;;;;EArBkBT,S;;gBAAfI,M,iBACiB,c;;gBADjBA,M,aAEa,CAACF,WAAW,CAACC,iBAAD,CAAZ,C;;gBAFbC,M,kBAGkB;EACpBM,IAAI,EAAEP,iBADc;EAEpBQ,MAAM,EAAE,IAFY;EAGpBJ,IAAI,EAAE;AAHc,C;;AAqBxB,eAAeR,eAAe,CAACK,MAAD,CAA9B"}
1
+ {"version":3,"file":"index.js","names":["React","WidgetEmpty","getIconPath","createComponent","Component","Root","i18nEnhance","localizedMessages","NoData","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","render","_ref","asProps","_this$asProps","Children","type","description","getI18nText","createElement","_assignProps","Title","Description","_defineProperty","i18n","locale"],"sources":["../../../src/NoData/index.jsx"],"sourcesContent":["import React from 'react';\nimport WidgetEmpty, { getIconPath } from '../WidgetEmpty';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nclass NoData extends Component {\n static displayName = 'WidgetNoData';\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n i18n: localizedMessages,\n locale: 'en',\n type: 'other-data',\n };\n\n render() {\n const { Children, type, description, getI18nText } = this.asProps;\n\n return (\n <Root render={WidgetEmpty} icon={getIconPath(type)}>\n <WidgetEmpty.Title>{getI18nText('title')}</WidgetEmpty.Title>\n <WidgetEmpty.Description>\n {description || getI18nText('description')}\n </WidgetEmpty.Description>\n <Children />\n </Root>\n );\n }\n}\n\nexport default createComponent(NoData);\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,WAAW,IAAIC,WAA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;AAAAwB,eAAA,CAF7CvB,MAAM,kBAGY;EACpBwB,IAAI,EAAEzB,iBAAiB;EACvB0B,MAAM,EAAE,IAAI;EACZT,IAAI,EAAE;AACR,CAAC;AAiBH,eAAerB,eAAe,CAACK,MAAM,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["de","en","es","fr","it","ja","ko","pt","ru","tr","vi","zh","localizedMessages"],"sources":["../../../../src/NoData/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n pt,\n ru,\n tr,\n vi,\n zh,\n};\n"],"mappings":"AAAA,OAAOA,EAAP,MAAe,WAAf;AACA,OAAOC,EAAP,MAAe,WAAf;AACA,OAAOC,EAAP,MAAe,WAAf;AACA,OAAOC,EAAP,MAAe,WAAf;AACA,OAAOC,EAAP,MAAe,WAAf;AACA,OAAOC,EAAP,MAAe,WAAf;AACA,OAAOC,EAAP,MAAe,WAAf;AACA,OAAOC,EAAP,MAAe,WAAf;AACA,OAAOC,EAAP,MAAe,WAAf;AACA,OAAOC,EAAP,MAAe,WAAf;AACA,OAAOC,EAAP,MAAe,WAAf;AACA,OAAOC,EAAP,MAAe,WAAf;AAEA,OAAO,IAAMC,iBAAiB,GAAG;EAC/BZ,EAAE,EAAFA,EAD+B;EAE/BC,EAAE,EAAFA,EAF+B;EAG/BC,EAAE,EAAFA,EAH+B;EAI/BC,EAAE,EAAFA,EAJ+B;EAK/BC,EAAE,EAAFA,EAL+B;EAM/BC,EAAE,EAAFA,EAN+B;EAO/BC,EAAE,EAAFA,EAP+B;EAQ/BC,EAAE,EAAFA,EAR+B;EAS/BC,EAAE,EAAFA,EAT+B;EAU/BC,EAAE,EAAFA,EAV+B;EAW/BC,EAAE,EAAFA,EAX+B;EAY/BC,EAAE,EAAFA;AAZ+B,CAA1B"}
1
+ {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["de","en","es","fr","it","ja","ko","pt","ru","tr","vi","zh","localizedMessages"],"sources":["../../../../src/NoData/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n pt,\n ru,\n tr,\n vi,\n zh,\n};\n"],"mappings":"AAAA,OAAOA,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAE1B,OAAO,IAAMC,iBAAiB,GAAG;EAC/BZ,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA;AACF,CAAC"}
@@ -13,48 +13,33 @@ import createComponent, { Component, sstyled, Root } from '@semcore/core';
13
13
  import { getIllustrationPath } from '@semcore/illustration';
14
14
  import { Box, Flex } from '@semcore/flex-box';
15
15
  import isNode from '@semcore/utils/lib/isNode';
16
-
17
16
  /*__reshadow-styles__:"./style/widget-empty.shadow.css"*/
18
- var style = (
19
- /*__reshadow_css_start__*/
20
- _sstyled.insert(
21
- /*__inner_css_start__*/
22
- ".___SWidgetEmpty_16vjk_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SImage_16vjk_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px)}.___SDescription_16vjk_gg_,.___STitle_16vjk_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___STitle_16vjk_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}.___SDescription_16vjk_gg_{text-align:center;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);max-width:400px}.___STitle_16vjk_gg_+.___SDescription_16vjk_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_16vjk_gg_+.___SDescription_16vjk_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}"
23
- /*__inner_css_end__*/
24
- , "16vjk_gg_")
25
- /*__reshadow_css_end__*/
26
- , {
27
- "__SWidgetEmpty": "___SWidgetEmpty_16vjk_gg_",
28
- "__SImage": "___SImage_16vjk_gg_",
29
- "__STitle": "___STitle_16vjk_gg_",
30
- "__SDescription": "___SDescription_16vjk_gg_"
17
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SWidgetEmpty_xlgib_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SImage_xlgib_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px)}.___SDescription_xlgib_gg_,.___STitle_xlgib_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___STitle_xlgib_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}.___SDescription_xlgib_gg_{text-align:center;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);max-width:400px}.___STitle_xlgib_gg_+.___SDescription_xlgib_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_xlgib_gg_+.___SDescription_xlgib_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}" /*__inner_css_end__*/, "xlgib_gg_") /*__reshadow_css_end__*/, {
18
+ "__SWidgetEmpty": "___SWidgetEmpty_xlgib_gg_",
19
+ "__SImage": "___SImage_xlgib_gg_",
20
+ "__STitle": "___STitle_xlgib_gg_",
21
+ "__SDescription": "___SDescription_xlgib_gg_"
31
22
  });
32
23
  export var getIconPath = function getIconPath(name) {
33
24
  return getIllustrationPath(name);
34
25
  };
35
-
36
26
  var WidgetEmpty = /*#__PURE__*/function (_Component) {
37
27
  _inherits(WidgetEmpty, _Component);
38
-
39
28
  var _super = _createSuper(WidgetEmpty);
40
-
41
29
  function WidgetEmpty() {
42
30
  _classCallCheck(this, WidgetEmpty);
43
-
44
31
  return _super.apply(this, arguments);
45
32
  }
46
-
47
33
  _createClass(WidgetEmpty, [{
48
34
  key: "render",
49
35
  value: function render() {
50
36
  var _ref = this.asProps,
51
- _ref4;
52
-
37
+ _ref4;
53
38
  var SWidgetEmpty = Flex;
54
39
  var _this$asProps = this.asProps,
55
- Children = _this$asProps.Children,
56
- icon = _this$asProps.icon,
57
- styles = _this$asProps.styles;
40
+ Children = _this$asProps.Children,
41
+ icon = _this$asProps.icon,
42
+ styles = _this$asProps.styles;
58
43
  var SImage = 'div';
59
44
  return _ref4 = sstyled(styles), /*#__PURE__*/React.createElement(SWidgetEmpty, _ref4.cn("SWidgetEmpty", _objectSpread({}, _assignProps({}, _ref))), isNode(icon) && /*#__PURE__*/React.createElement(SImage, _ref4.cn("SImage", {
60
45
  "aria-hidden": "true"
@@ -64,32 +49,24 @@ var WidgetEmpty = /*#__PURE__*/function (_Component) {
64
49
  })) : icon), /*#__PURE__*/React.createElement(Children, _ref4.cn("Children", {})));
65
50
  }
66
51
  }]);
67
-
68
52
  return WidgetEmpty;
69
53
  }(Component);
70
-
71
54
  _defineProperty(WidgetEmpty, "displayName", 'WidgetEmpty');
72
-
73
55
  _defineProperty(WidgetEmpty, "style", style);
74
-
75
56
  var Title = function Title(props) {
76
57
  var _ref2 = arguments[0],
77
- _ref5;
78
-
58
+ _ref5;
79
59
  var STitle = Box;
80
60
  var styles = props.styles;
81
61
  return _ref5 = sstyled(styles), /*#__PURE__*/React.createElement(STitle, _ref5.cn("STitle", _objectSpread({}, _assignProps2({}, _ref2))));
82
62
  };
83
-
84
63
  var Description = function Description(props) {
85
64
  var _ref3 = arguments[0],
86
- _ref6;
87
-
65
+ _ref6;
88
66
  var SDescription = Box;
89
67
  var styles = props.styles;
90
68
  return _ref6 = sstyled(styles), /*#__PURE__*/React.createElement(SDescription, _ref6.cn("SDescription", _objectSpread({}, _assignProps3({}, _ref3))));
91
69
  };
92
-
93
70
  export default createComponent(WidgetEmpty, {
94
71
  Title: Title,
95
72
  Description: Description
@@ -1 +1 @@
1
- {"version":3,"file":"WidgetEmpty.js","names":["React","createComponent","Component","sstyled","Root","getIllustrationPath","Box","Flex","isNode","getIconPath","name","WidgetEmpty","SWidgetEmpty","asProps","Children","icon","styles","SImage","style","Title","props","STitle","Description","SDescription"],"sources":["../../src/WidgetEmpty.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport { Box, Flex } from '@semcore/flex-box';\nimport isNode from '@semcore/utils/lib/isNode';\n\nimport style from './style/widget-empty.shadow.css';\n\nexport const getIconPath = (name) => getIllustrationPath(name);\n\nclass WidgetEmpty extends Component {\n static displayName = 'WidgetEmpty';\n static style = style;\n\n render() {\n const SWidgetEmpty = Root;\n const { Children, icon, styles } = this.asProps;\n const SImage = 'div';\n\n return sstyled(styles)(\n <SWidgetEmpty render={Flex}>\n {isNode(icon) && (\n <SImage aria-hidden=\"true\">\n {typeof icon === 'string' ? <img src={icon} alt=\"widget empty icon\" /> : icon}\n </SImage>\n )}\n <Children />\n </SWidgetEmpty>,\n );\n }\n}\n\nconst Title = (props) => {\n const STitle = Root;\n const { styles } = props;\n return sstyled(styles)(<STitle render={Box} />);\n};\n\nconst Description = (props) => {\n const SDescription = Root;\n const { styles } = props;\n return sstyled(styles)(<SDescription render={Box} />);\n};\n\nexport default createComponent(WidgetEmpty, {\n Title,\n Description,\n});\n"],"mappings":";;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,eAAP,IAA0BC,SAA1B,EAAqCC,OAArC,EAA8CC,IAA9C,QAA0D,eAA1D;AACA,SAASC,mBAAT,QAAoC,uBAApC;AACA,SAASC,GAAT,EAAcC,IAAd,QAA0B,mBAA1B;AACA,OAAOC,MAAP,MAAmB,2BAAnB;;;;;;;;;;;;;;;;;AAIA,OAAO,IAAMC,WAAW,GAAG,SAAdA,WAAc,CAACC,IAAD;EAAA,OAAUL,mBAAmB,CAACK,IAAD,CAA7B;AAAA,CAApB;;IAEDC,W;;;;;;;;;;;;;WAIJ,kBAAS;MAAA;MAAA;;MACP,IAAMC,YAAY,GAKML,IALxB;MACA,oBAAmC,KAAKM,OAAxC;MAAA,IAAQC,QAAR,iBAAQA,QAAR;MAAA,IAAkBC,IAAlB,iBAAkBA,IAAlB;MAAA,IAAwBC,MAAxB,iBAAwBA,MAAxB;MACA,IAAMC,MAAM,GAAG,KAAf;MAEA,eAAOd,OAAO,CAACa,MAAD,CAAd,eACE,oBAAC,YAAD,uEACGR,MAAM,CAACO,IAAD,CAAN,iBACC,oBAAC,MAAD;QAAA,eAAoB;MAApB,IACG,OAAOA,IAAP,KAAgB,QAAhB,gBAA2B;QAAA,OAAUA,IAAV;QAAA,OAAoB;MAApB,GAA3B,GAAwEA,IAD3E,CAFJ,eAME,oBAAC,QAAD,2BANF,CADF;IAUD;;;;EAnBuBb,S;;gBAApBS,W,iBACiB,a;;gBADjBA,W,WAEWO,K;;AAoBjB,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD,EAAW;EAAA;EAAA;;EACvB,IAAMC,MAAM,GAE2Bf,GAFvC;EACA,IAAQU,MAAR,GAAmBI,KAAnB,CAAQJ,MAAR;EACA,eAAOb,OAAO,CAACa,MAAD,CAAd,eAAuB,oBAAC,MAAD,kEAAvB;AACD,CAJD;;AAMA,IAAMM,WAAW,GAAG,SAAdA,WAAc,CAACF,KAAD,EAAW;EAAA;EAAA;;EAC7B,IAAMG,YAAY,GAE2BjB,GAF7C;EACA,IAAQU,MAAR,GAAmBI,KAAnB,CAAQJ,MAAR;EACA,eAAOb,OAAO,CAACa,MAAD,CAAd,eAAuB,oBAAC,YAAD,wEAAvB;AACD,CAJD;;AAMA,eAAef,eAAe,CAACU,WAAD,EAAc;EAC1CQ,KAAK,EAALA,KAD0C;EAE1CG,WAAW,EAAXA;AAF0C,CAAd,CAA9B"}
1
+ {"version":3,"file":"WidgetEmpty.js","names":["React","createComponent","Component","sstyled","Root","getIllustrationPath","Box","Flex","isNode","style","_sstyled","insert","getIconPath","name","WidgetEmpty","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","render","_ref","asProps","_ref4","SWidgetEmpty","_this$asProps","Children","icon","styles","SImage","createElement","cn","_objectSpread","_assignProps","_defineProperty","Title","props","_ref2","arguments[0]","_ref5","STitle","_assignProps2","Description","_ref3","_ref6","SDescription","_assignProps3"],"sources":["../../src/WidgetEmpty.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport { Box, Flex } from '@semcore/flex-box';\nimport isNode from '@semcore/utils/lib/isNode';\n\nimport style from './style/widget-empty.shadow.css';\n\nexport const getIconPath = (name) => getIllustrationPath(name);\n\nclass WidgetEmpty extends Component {\n static displayName = 'WidgetEmpty';\n static style = style;\n\n render() {\n const SWidgetEmpty = Root;\n const { Children, icon, styles } = this.asProps;\n const SImage = 'div';\n\n return sstyled(styles)(\n <SWidgetEmpty render={Flex}>\n {isNode(icon) && (\n <SImage aria-hidden=\"true\">\n {typeof icon === 'string' ? <img src={icon} alt=\"widget empty icon\" /> : icon}\n </SImage>\n )}\n <Children />\n </SWidgetEmpty>,\n );\n }\n}\n\nconst Title = (props) => {\n const STitle = Root;\n const { styles } = props;\n return sstyled(styles)(<STitle render={Box} />);\n};\n\nconst Description = (props) => {\n const SDescription = Root;\n const { styles } = props;\n return sstyled(styles)(<SDescription render={Box} />);\n};\n\nexport default createComponent(WidgetEmpty, {\n Title,\n Description,\n});\n"],"mappings":";;;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,eAAe,IAAIC,SAAS,EAAEC,OAAO,EAAEC,IAAI,QAAQ,eAAe;AACzE,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,SAASC,GAAG,EAAEC,IAAI,QAAQ,mBAAmB;AAC7C,OAAOC,MAAM,MAAM,2BAA2B;AAAC;AAAA,IAAAC,KAAA,+BAAAC,QAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAI/C,OAAO,IAAMC,WAAW,GAAG,SAAdA,WAAWA,CAAIC,IAAI;EAAA,OAAKR,mBAAmB,CAACQ,IAAI,CAAC;AAAA;AAAC,IAEzDC,WAAW,0BAAAC,UAAA;EAAAC,SAAA,CAAAF,WAAA,EAAAC,UAAA;EAAA,IAAAE,MAAA,GAAAC,YAAA,CAAAJ,WAAA;EAAA,SAAAA,YAAA;IAAAK,eAAA,OA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IAAQ2B,MAAM,GAAKQ,KAAK,CAAhBR,MAAM;EACd,OAAAW,KAAA,GAAOzC,OAAO,CAAC8B,MAAM,CAAC,eAACjC,KAAA,CAAAmC,aAAA,CAACU,MAAM,EAAAD,KAAA,CAAAR,EAAA,WAAAC,aAAA,KAAAS,aAAA,KAAAJ,KAAA,IAAgB;AAChD,CAAC;AAED,IAAMK,WAAW,GAAG,SAAdA,WAAWA,CAAIN,KAAK,EAAK;EAAA,IAAAO,KAAA,GAAAL,YAAA;IAAAM,KAAA;EAC7B,IAAMC,YAAY,GAE2B5C,GAFpB;EACzB,IAAQ2B,MAAM,GAAKQ,KAAK,CAAhBR,MAAM;EACd,OAAAgB,KAAA,GAAO9C,OAAO,CAAC8B,MAAM,CAAC,eAACjC,KAAA,CAAAmC,aAAA,CAACe,YAAY,EAAAD,KAAA,CAAAb,EAAA,iBAAAC,aAAA,KAAAc,aAAA,KAAAH,KAAA,IAAgB;AACtD,CAAC;AAED,eAAe/C,eAAe,CAACa,WAAW,EAAE;EAC1C0B,KAAK,EAALA,KAAK;EACLO,WAAW,EAAXA;AACF,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["default","NoData","Error"],"sources":["../../src/index.js"],"sourcesContent":["export { default } from './WidgetEmpty';\nexport * from './WidgetEmpty';\n\nexport { default as NoData } from './NoData';\n\nexport { default as Error } from './Error';\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,eAAxB;AACA,cAAc,eAAd;AAEA,SAASA,OAAO,IAAIC,MAApB,QAAkC,UAAlC;AAEA,SAASD,OAAO,IAAIE,KAApB,QAAiC,SAAjC"}
1
+ {"version":3,"file":"index.js","names":["default","NoData","Error"],"sources":["../../src/index.js"],"sourcesContent":["export { default } from './WidgetEmpty';\nexport * from './WidgetEmpty';\n\nexport { default as NoData } from './NoData';\n\nexport { default as Error } from './Error';\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,eAAe;AACvC,cAAc,eAAe;AAE7B,SAASA,OAAO,IAAIC,MAAM,QAAQ,UAAU;AAE5C,SAASD,OAAO,IAAIE,KAAK,QAAQ,SAAS"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/widget-empty",
3
3
  "description": "Semrush WidgetEmpty Component",
4
- "version": "3.10.5",
4
+ "version": "3.10.7",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@semcore/flex-box": "^4",
13
- "@semcore/illustration": "1.4.12",
13
+ "@semcore/illustration": "1.4.14",
14
14
  "@semcore/utils": "^3.27"
15
15
  },
16
16
  "peerDependencies": {