@semcore/widget-empty 16.0.11 → 17.0.0-prerelease.17

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 (36) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +4 -4
  3. package/lib/cjs/Error/index.js +19 -30
  4. package/lib/cjs/Error/index.js.map +1 -1
  5. package/lib/cjs/Error/translations/__intergalactic-dynamic-locales.js +17 -17
  6. package/lib/cjs/Error/translations/__intergalactic-dynamic-locales.js.map +1 -1
  7. package/lib/cjs/NoData/index.js +20 -31
  8. package/lib/cjs/NoData/index.js.map +1 -1
  9. package/lib/cjs/NoData/translations/__intergalactic-dynamic-locales.js +17 -17
  10. package/lib/cjs/NoData/translations/__intergalactic-dynamic-locales.js.map +1 -1
  11. package/lib/cjs/WidgetEmpty.js +55 -58
  12. package/lib/cjs/WidgetEmpty.js.map +1 -1
  13. package/lib/cjs/index.d.js.map +1 -1
  14. package/lib/cjs/index.js +9 -9
  15. package/lib/cjs/index.js.map +1 -1
  16. package/lib/cjs/style/widget-empty.shadow.css +1 -2
  17. package/lib/es6/Error/index.js +12 -23
  18. package/lib/es6/Error/index.js.map +1 -1
  19. package/lib/es6/Error/translations/__intergalactic-dynamic-locales.js +16 -16
  20. package/lib/es6/Error/translations/__intergalactic-dynamic-locales.js.map +1 -1
  21. package/lib/es6/NoData/index.js +13 -24
  22. package/lib/es6/NoData/index.js.map +1 -1
  23. package/lib/es6/NoData/translations/__intergalactic-dynamic-locales.js +16 -16
  24. package/lib/es6/NoData/translations/__intergalactic-dynamic-locales.js.map +1 -1
  25. package/lib/es6/WidgetEmpty.js +49 -53
  26. package/lib/es6/WidgetEmpty.js.map +1 -1
  27. package/lib/es6/index.d.js.map +1 -1
  28. package/lib/es6/style/widget-empty.shadow.css +1 -2
  29. package/lib/esm/Error/index.mjs +13 -21
  30. package/lib/esm/Error/translations/__intergalactic-dynamic-locales.mjs +1 -1
  31. package/lib/esm/NoData/index.mjs +14 -21
  32. package/lib/esm/NoData/translations/__intergalactic-dynamic-locales.mjs +1 -1
  33. package/lib/esm/WidgetEmpty.mjs +49 -50
  34. package/lib/esm/style/widget-empty.shadow.css +1 -2
  35. package/lib/types/index.d.ts +2 -8
  36. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
+ ## [17.0.0] - 2026-02-18
6
+
7
+ ### BREAK
8
+
9
+ - New major version.
10
+ - Removed unnecessary `margin-bottom` for the widget container.
11
+
5
12
  ## [16.0.11] - 2025-10-29
6
13
 
7
14
  ### Changed
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![version](https://img.shields.io/npm/v/@semcore/widget-empty.svg)](https://www.npmjs.com/@semcore/widget-empty)
4
4
  [![downloads](https://img.shields.io/npm/dt/@semcore/widget-empty.svg)](https://www.npmjs.com/package/@semcore/widget-empty)
5
- [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://github.com/semrush/intergalactic/blob/master/LICENSE)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://github.com/semrush/intergalactic/blob/HEAD/LICENSE)
6
6
 
7
7
  > This component is part of the Intergalactic Design System
8
8
 
@@ -20,13 +20,13 @@ npm install @semcore/widget-empty
20
20
 
21
21
  ## 👤 Author
22
22
 
23
- [UI-kit team](https://github.com/semrush/intergalactic/blob/master/MAINTAINERS) and [others ❤️](https://github.com/semrush/intergalactic/graphs/contributors)
23
+ [UI-kit team](https://github.com/semrush/intergalactic/blob/HEAD/MAINTAINERS) and [others ❤️](https://github.com/semrush/intergalactic/graphs/contributors)
24
24
 
25
25
  ## 🤝 Contributing
26
26
 
27
27
  Contributions, issues and feature requests are welcome!
28
28
 
29
- Feel free to check [issues page](https://github.com/semrush/intergalactic/issues). You can also take a look at the [contributing guide](https://github.com/semrush/intergalactic/blob/master/CONTRIBUTING.md).
29
+ Feel free to check [issues page](https://github.com/semrush/intergalactic/issues). You can also take a look at the [contributing guide](https://github.com/semrush/intergalactic/blob/HEAD/CONTRIBUTING.md).
30
30
 
31
31
  ## Show your support
32
32
 
@@ -34,4 +34,4 @@ Give a ⭐️ if this project helped you!
34
34
 
35
35
  ## 📝 License
36
36
 
37
- This project is [MIT](https://github.com/semrush/intergalactic/blob/master/LICENSE) licensed.
37
+ This project is [MIT](https://github.com/semrush/intergalactic/blob/HEAD/LICENSE) licensed.
@@ -1,46 +1,35 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard")["default"];
4
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports["default"] = void 0;
9
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
- var _callSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/callSuper"));
12
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
8
+ exports.default = void 0;
13
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
10
  var _core = require("@semcore/core");
15
11
  var _i18nEnhance = _interopRequireDefault(require("@semcore/core/lib/utils/enhances/i18nEnhance"));
16
12
  var _react = _interopRequireDefault(require("react"));
17
13
  var _WidgetEmpty = _interopRequireWildcard(require("../WidgetEmpty"));
18
14
  var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynamic-locales");
19
- var Error = /*#__PURE__*/function (_Component) {
20
- function Error() {
21
- (0, _classCallCheck2["default"])(this, Error);
22
- return (0, _callSuper2["default"])(this, Error, arguments);
15
+ class Error extends _core.Component {
16
+ render() {
17
+ var _ref = this.asProps;
18
+ const {
19
+ Children,
20
+ description,
21
+ getI18nText
22
+ } = this.asProps;
23
+ return /*#__PURE__*/_react.default.createElement(_WidgetEmpty.default, (0, _core.assignProps)({
24
+ "icon": (0, _WidgetEmpty.getIconPath)('warning')
25
+ }, _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));
23
26
  }
24
- (0, _inherits2["default"])(Error, _Component);
25
- return (0, _createClass2["default"])(Error, [{
26
- key: "render",
27
- value: function render() {
28
- var _ref = this.asProps;
29
- var _this$asProps = this.asProps,
30
- Children = _this$asProps.Children,
31
- description = _this$asProps.description,
32
- getI18nText = _this$asProps.getI18nText;
33
- return /*#__PURE__*/_react["default"].createElement(_WidgetEmpty["default"], (0, _core.assignProps)({
34
- "icon": (0, _WidgetEmpty.getIconPath)('warning')
35
- }, _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));
36
- }
37
- }]);
38
- }(_core.Component);
39
- (0, _defineProperty2["default"])(Error, "displayName", 'WidgetError');
40
- (0, _defineProperty2["default"])(Error, "defaultProps", {
27
+ }
28
+ (0, _defineProperty2.default)(Error, "displayName", 'WidgetError');
29
+ (0, _defineProperty2.default)(Error, "defaultProps", {
41
30
  i18n: _intergalacticDynamicLocales.localizedMessages,
42
31
  locale: 'en'
43
32
  });
44
- (0, _defineProperty2["default"])(Error, "enhance", [(0, _i18nEnhance["default"])(_intergalacticDynamicLocales.localizedMessages)]);
45
- var _default = exports["default"] = (0, _core.createComponent)(Error);
33
+ (0, _defineProperty2.default)(Error, "enhance", [(0, _i18nEnhance.default)(_intergalacticDynamicLocales.localizedMessages)]);
34
+ var _default = exports.default = (0, _core.createComponent)(Error);
46
35
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_core","require","_i18nEnhance","_interopRequireDefault","_react","_WidgetEmpty","_interopRequireWildcard","_intergalacticDynamicLocales","Error","_Component","_classCallCheck2","_callSuper2","arguments","_inherits2","_createClass2","key","value","render","_ref","asProps","_this$asProps","Children","description","getI18nText","createElement","WidgetEmpty","assignProps","getIconPath","Title","Description","Component","_defineProperty2","i18n","localizedMessages","locale","i18nEnhance","_default","exports","createComponent"],"sources":["../../../src/Error/index.jsx"],"sourcesContent":["import { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport WidgetEmpty, { getIconPath } from '../WidgetEmpty';\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\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,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,YAAA,GAAAC,uBAAA,CAAAL,OAAA;AACA,IAAAM,4BAAA,GAAAN,OAAA;AAAmF,IAE7EO,KAAK,0BAAAC,UAAA;EAAA,SAAAD,MAAA;IAAA,IAAAE,gBAAA,mBAAAF,KAAA;IAAA,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ildcard","_intergalacticDynamicLocales","Error","Component","render","_ref","asProps","Children","description","getI18nText","default","createElement","WidgetEmpty","assignProps","getIconPath","Title","Description","_defineProperty2","i18n","localizedMessages","locale","i18nEnhance","_default","exports","createComponent"],"sources":["../../../src/Error/index.jsx"],"sourcesContent":["import { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport WidgetEmpty, { getIconPath } from '../WidgetEmpty';\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\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,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,YAAA,GAAAC,uBAAA,CAAAL,OAAA;AACA,IAAAM,4BAAA,GAAAN,OAAA;AAEA,MAAMO,KAAK,SAASC,eAAS,CAAC;EAS5BC,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,WAAW;MAAEC;IAAY,CAAC,GAAG,IAAI,CAACH,OAAO;IAE3D,oBACER,MAAA,CAAAY,OAAA,CAAAC,aAAA,CAAcC,oBAAW,MAAAlB,KAAA,CAAAmB,WAAA;MAAA,QAAQ,IAAAC,wBAAW,EAAC,SAAS;IAAC,GAAAT,IAAA,gBACrDP,MAAA,CAAAY,OAAA,CAAAC,aAAA,CAACZ,YAAA,CAAAW,OAAW,CAACK,KAAK,QAAEN,WAAW,CAAC,OAAO,CAAqB,CAAC,eAC7DX,MAAA,CAAAY,OAAA,CAAAC,aAAA,CAACZ,YAAA,CAAAW,OAAW,CAACM,WAAW,QACrBR,WAAW,IAAIC,WAAW,CAAC,aAAa,CAClB,CAAC,eAC1BX,MAAA,CAAAY,OAAA,CAAAC,aAAA,CAACJ,QAAQ,MAAE,CACP,CAAC;EAEX;AACF;AAAC,IAAAU,gBAAA,CAAAP,OAAA,EAtBKR,KAAK,iBACY,aAAa;AAAA,IAAAe,gBAAA,CAAAP,OAAA,EAD9BR,KAAK,kBAEa;EACpBgB,IAAI,EAAEC,8CAAiB;EACvBC,MAAM,EAAE;AACV,CAAC;AAAA,IAAAH,gBAAA,CAAAP,OAAA,EALGR,KAAK,aAOQ,CAAC,IAAAmB,oBAAW,EAACF,8CAAiB,CAAC,CAAC;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAb,OAAA,GAiBpC,IAAAc,qBAAe,EAACtB,KAAK,CAAC","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -20,21 +20,21 @@ var _sv = _interopRequireDefault(require("./sv.json"));
20
20
  var _tr = _interopRequireDefault(require("./tr.json"));
21
21
  var _vi = _interopRequireDefault(require("./vi.json"));
22
22
  var _zh = _interopRequireDefault(require("./zh.json"));
23
- var localizedMessages = exports.localizedMessages = {
24
- de: _de["default"],
25
- en: _en["default"],
26
- es: _es["default"],
27
- fr: _fr["default"],
28
- it: _it["default"],
29
- ja: _ja["default"],
30
- ko: _ko["default"],
31
- nl: _nl["default"],
32
- pt: _pt["default"],
33
- ru: _ru["default"],
34
- tr: _tr["default"],
35
- vi: _vi["default"],
36
- zh: _zh["default"],
37
- pl: _pl["default"],
38
- sv: _sv["default"]
23
+ const localizedMessages = exports.localizedMessages = {
24
+ de: _de.default,
25
+ en: _en.default,
26
+ es: _es.default,
27
+ fr: _fr.default,
28
+ it: _it.default,
29
+ ja: _ja.default,
30
+ ko: _ko.default,
31
+ nl: _nl.default,
32
+ pt: _pt.default,
33
+ ru: _ru.default,
34
+ tr: _tr.default,
35
+ vi: _vi.default,
36
+ zh: _zh.default,
37
+ pl: _pl.default,
38
+ sv: _sv.default
39
39
  };
40
40
  //# sourceMappingURL=__intergalactic-dynamic-locales.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["_de","_interopRequireDefault","require","_en","_es","_fr","_it","_ja","_ko","_nl","_pl","_pt","_ru","_sv","_tr","_vi","_zh","localizedMessages","exports","de","en","es","fr","it","ja","ko","nl","pt","ru","tr","vi","zh","pl","sv"],"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 nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.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 nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\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;AACA,IAAAY,GAAA,GAAAb,sBAAA,CAAAC,OAAA;AACA,IAAAa,GAAA,GAAAd,sBAAA,CAAAC,OAAA;AACA,IAAAc,GAAA,GAAAf,sBAAA,CAAAC,OAAA;AAEO,IAAMe,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/BE,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,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["_de","_interopRequireDefault","require","_en","_es","_fr","_it","_ja","_ko","_nl","_pl","_pt","_ru","_sv","_tr","_vi","_zh","localizedMessages","exports","de","en","es","fr","it","ja","ko","nl","pt","ru","tr","vi","zh","pl","sv"],"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 nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.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 nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\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;AACA,IAAAY,GAAA,GAAAb,sBAAA,CAAAC,OAAA;AACA,IAAAa,GAAA,GAAAd,sBAAA,CAAAC,OAAA;AACA,IAAAc,GAAA,GAAAf,sBAAA,CAAAC,OAAA;AAEO,MAAMe,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/BE,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA;AACF,CAAC","ignoreList":[]}
@@ -1,48 +1,37 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard")["default"];
4
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports["default"] = void 0;
9
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
- var _callSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/callSuper"));
12
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
8
+ exports.default = void 0;
13
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
10
  var _core = require("@semcore/core");
15
11
  var _i18nEnhance = _interopRequireDefault(require("@semcore/core/lib/utils/enhances/i18nEnhance"));
16
12
  var _react = _interopRequireDefault(require("react"));
17
13
  var _WidgetEmpty = _interopRequireWildcard(require("../WidgetEmpty"));
18
14
  var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynamic-locales");
19
- var NoData = /*#__PURE__*/function (_Component) {
20
- function NoData() {
21
- (0, _classCallCheck2["default"])(this, NoData);
22
- return (0, _callSuper2["default"])(this, NoData, arguments);
15
+ class NoData extends _core.Component {
16
+ render() {
17
+ var _ref = this.asProps;
18
+ const {
19
+ Children,
20
+ type,
21
+ description,
22
+ getI18nText
23
+ } = this.asProps;
24
+ return /*#__PURE__*/_react.default.createElement(_WidgetEmpty.default, (0, _core.assignProps)({
25
+ "icon": (0, _WidgetEmpty.getIconPath)(type)
26
+ }, _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));
23
27
  }
24
- (0, _inherits2["default"])(NoData, _Component);
25
- return (0, _createClass2["default"])(NoData, [{
26
- key: "render",
27
- value: function render() {
28
- var _ref = this.asProps;
29
- var _this$asProps = this.asProps,
30
- Children = _this$asProps.Children,
31
- type = _this$asProps.type,
32
- description = _this$asProps.description,
33
- getI18nText = _this$asProps.getI18nText;
34
- return /*#__PURE__*/_react["default"].createElement(_WidgetEmpty["default"], (0, _core.assignProps)({
35
- "icon": (0, _WidgetEmpty.getIconPath)(type)
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));
37
- }
38
- }]);
39
- }(_core.Component);
40
- (0, _defineProperty2["default"])(NoData, "displayName", 'WidgetNoData');
41
- (0, _defineProperty2["default"])(NoData, "enhance", [(0, _i18nEnhance["default"])(_intergalacticDynamicLocales.localizedMessages)]);
42
- (0, _defineProperty2["default"])(NoData, "defaultProps", {
28
+ }
29
+ (0, _defineProperty2.default)(NoData, "displayName", 'WidgetNoData');
30
+ (0, _defineProperty2.default)(NoData, "enhance", [(0, _i18nEnhance.default)(_intergalacticDynamicLocales.localizedMessages)]);
31
+ (0, _defineProperty2.default)(NoData, "defaultProps", {
43
32
  i18n: _intergalacticDynamicLocales.localizedMessages,
44
33
  locale: 'en',
45
34
  type: 'other-data'
46
35
  });
47
- var _default = exports["default"] = (0, _core.createComponent)(NoData);
36
+ var _default = exports.default = (0, _core.createComponent)(NoData);
48
37
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_core","require","_i18nEnhance","_interopRequireDefault","_react","_WidgetEmpty","_interopRequireWildcard","_intergalacticDynamicLocales","NoData","_Component","_classCallCheck2","_callSuper2","arguments","_inherits2","_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","exports","createComponent"],"sources":["../../../src/NoData/index.jsx"],"sourcesContent":["import { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport WidgetEmpty, { getIconPath } from '../WidgetEmpty';\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,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,YAAA,GAAAC,uBAAA,CAAAL,OAAA;AACA,IAAAM,4BAAA,GAAAN,OAAA;AAAmF,IAE7EO,MAAM,0BAAAC,UAAA;EAAA,SAAAD,OAAA;IAAA,IAAAE,gBAAA,mBAAAF,MAAA;IAAA,WAAAG,WAAA,mBAAAH,MAAA,EAAAI,SAAA;EAAA;EAAA,IAAAC,U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RequireWildcard","_intergalacticDynamicLocales","NoData","Component","render","_ref","asProps","Children","type","description","getI18nText","default","createElement","WidgetEmpty","assignProps","getIconPath","Title","Description","_defineProperty2","i18nEnhance","localizedMessages","i18n","locale","_default","exports","createComponent"],"sources":["../../../src/NoData/index.jsx"],"sourcesContent":["import { createComponent, Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport React from 'react';\n\nimport WidgetEmpty, { getIconPath } from '../WidgetEmpty';\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,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,YAAA,GAAAC,uBAAA,CAAAL,OAAA;AACA,IAAAM,4BAAA,GAAAN,OAAA;AAEA,MAAMO,MAAM,SAASC,eAAS,CAAC;EAS7BC,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,MAAM;MAAEC,QAAQ;MAAEC,IAAI;MAAEC,WAAW;MAAEC;IAAY,CAAC,GAAG,IAAI,CAACJ,OAAO;IAEjE,oBACER,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAAcC,oBAAW,MAAAnB,KAAA,CAAAoB,WAAA;MAAA,QAAQ,IAAAC,wBAAW,EAACP,IAAI;IAAC,GAAAH,IAAA,gBAChDP,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACb,YAAA,CAAAY,OAAW,CAACK,KAAK,QAAEN,WAAW,CAAC,OAAO,CAAqB,CAAC,eAC7DZ,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACb,YAAA,CAAAY,OAAW,CAACM,WAAW,QACrBR,WAAW,IAAIC,WAAW,CAAC,aAAa,CAClB,CAAC,eAC1BZ,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACL,QAAQ,MAAE,CACP,CAAC;EAEX;AACF;AAAC,IAAAW,gBAAA,CAAAP,OAAA,EAtBKT,MAAM,iBACW,cAAc;AAAA,IAAAgB,gBAAA,CAAAP,OAAA,EAD/BT,MAAM,aAEO,CAAC,IAAAiB,oBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAF,gBAAA,CAAAP,OAAA,EAF7CT,MAAM,kBAGY;EACpBmB,IAAI,EAAED,8CAAiB;EACvBE,MAAM,EAAE,IAAI;EACZd,IAAI,EAAE;AACR,CAAC;AAAA,IAAAe,QAAA,GAAAC,OAAA,CAAAb,OAAA,GAiBY,IAAAc,qBAAe,EAACvB,MAAM,CAAC","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -20,21 +20,21 @@ var _sv = _interopRequireDefault(require("./sv.json"));
20
20
  var _tr = _interopRequireDefault(require("./tr.json"));
21
21
  var _vi = _interopRequireDefault(require("./vi.json"));
22
22
  var _zh = _interopRequireDefault(require("./zh.json"));
23
- var localizedMessages = exports.localizedMessages = {
24
- de: _de["default"],
25
- en: _en["default"],
26
- es: _es["default"],
27
- fr: _fr["default"],
28
- it: _it["default"],
29
- ja: _ja["default"],
30
- ko: _ko["default"],
31
- nl: _nl["default"],
32
- pt: _pt["default"],
33
- ru: _ru["default"],
34
- tr: _tr["default"],
35
- vi: _vi["default"],
36
- zh: _zh["default"],
37
- pl: _pl["default"],
38
- sv: _sv["default"]
23
+ const localizedMessages = exports.localizedMessages = {
24
+ de: _de.default,
25
+ en: _en.default,
26
+ es: _es.default,
27
+ fr: _fr.default,
28
+ it: _it.default,
29
+ ja: _ja.default,
30
+ ko: _ko.default,
31
+ nl: _nl.default,
32
+ pt: _pt.default,
33
+ ru: _ru.default,
34
+ tr: _tr.default,
35
+ vi: _vi.default,
36
+ zh: _zh.default,
37
+ pl: _pl.default,
38
+ sv: _sv.default
39
39
  };
40
40
  //# sourceMappingURL=__intergalactic-dynamic-locales.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["_de","_interopRequireDefault","require","_en","_es","_fr","_it","_ja","_ko","_nl","_pl","_pt","_ru","_sv","_tr","_vi","_zh","localizedMessages","exports","de","en","es","fr","it","ja","ko","nl","pt","ru","tr","vi","zh","pl","sv"],"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 nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.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 nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\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;AACA,IAAAY,GAAA,GAAAb,sBAAA,CAAAC,OAAA;AACA,IAAAa,GAAA,GAAAd,sBAAA,CAAAC,OAAA;AACA,IAAAc,GAAA,GAAAf,sBAAA,CAAAC,OAAA;AAEO,IAAMe,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/BE,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,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA,cAAE;EACFC,EAAE,EAAFA;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["_de","_interopRequireDefault","require","_en","_es","_fr","_it","_ja","_ko","_nl","_pl","_pt","_ru","_sv","_tr","_vi","_zh","localizedMessages","exports","de","en","es","fr","it","ja","ko","nl","pt","ru","tr","vi","zh","pl","sv"],"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 nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.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 nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\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;AACA,IAAAY,GAAA,GAAAb,sBAAA,CAAAC,OAAA;AACA,IAAAa,GAAA,GAAAd,sBAAA,CAAAC,OAAA;AACA,IAAAc,GAAA,GAAAf,sBAAA,CAAAC,OAAA;AAEO,MAAMe,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/BE,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA,WAAE;EACFC,EAAE,EAAFA;AACF,CAAC","ignoreList":[]}
@@ -1,79 +1,76 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.getIconPath = exports["default"] = void 0;
8
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
9
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
- var _callSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/callSuper"));
12
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
7
+ exports.getIconPath = exports.default = void 0;
13
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
9
  var _core = require("@semcore/core");
10
+ var _baseComponents = require("@semcore/base-components");
15
11
  var _isNode = _interopRequireDefault(require("@semcore/core/lib/utils/isNode"));
16
- var _flexBox = require("@semcore/flex-box");
17
12
  var _illustration = require("@semcore/illustration");
18
13
  var _react = _interopRequireDefault(require("react"));
19
14
  /*!__reshadow-styles__:"./style/widget-empty.shadow.css"*/
20
- var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SWidgetEmpty_171y9_gg_{flex-direction:column;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SImage_171y9_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px);width:80px;height:80px}.___SDescription_171y9_gg_,.___STitle_171y9_gg_{text-align:center;color:var(--intergalactic-text-secondary, #6c6e79)}.___STitle_171y9_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}.___SDescription_171y9_gg_{text-wrap:balance;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);max-width:400px}.___STitle_171y9_gg_+.___SDescription_171y9_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_171y9_gg_+.___SDescription_171y9_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}", /*__inner_css_end__*/"171y9_gg_"),
15
+ const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SWidgetEmpty_8oyu7_gg_{flex-direction:column;justify-content:center;align-items:center}.___SImage_8oyu7_gg_{display:flex;align-items:flex-end;justify-content:center;margin-bottom:var(--intergalactic-spacing-3x, 12px);width:80px;height:80px}.___SDescription_8oyu7_gg_,.___STitle_8oyu7_gg_{text-align:center;color:var(--intergalactic-text-secondary, #6c6e79)}.___STitle_8oyu7_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}.___SDescription_8oyu7_gg_{text-wrap:balance;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);max-width:400px}.___STitle_8oyu7_gg_+.___SDescription_8oyu7_gg_{margin-top:var(--intergalactic-spacing-1x, 4px)}.___SDescription_8oyu7_gg_+.___SDescription_8oyu7_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}", /*__inner_css_end__*/"8oyu7_gg_"),
21
16
  /*__reshadow_css_end__*/
22
17
  {
23
- "__SWidgetEmpty": "___SWidgetEmpty_171y9_gg_",
24
- "__SImage": "___SImage_171y9_gg_",
25
- "__STitle": "___STitle_171y9_gg_",
26
- "__SDescription": "___SDescription_171y9_gg_"
18
+ "__SWidgetEmpty": "___SWidgetEmpty_8oyu7_gg_",
19
+ "__SImage": "___SImage_8oyu7_gg_",
20
+ "__STitle": "___STitle_8oyu7_gg_",
21
+ "__SDescription": "___SDescription_8oyu7_gg_"
27
22
  });
28
- var getIconPath = exports.getIconPath = function getIconPath(name) {
29
- return (0, _illustration.getIllustrationPath)(name);
30
- };
31
- var WidgetEmpty = /*#__PURE__*/function (_Component) {
32
- function WidgetEmpty() {
33
- (0, _classCallCheck2["default"])(this, WidgetEmpty);
34
- return (0, _callSuper2["default"])(this, WidgetEmpty, arguments);
35
- }
36
- (0, _inherits2["default"])(WidgetEmpty, _Component);
37
- return (0, _createClass2["default"])(WidgetEmpty, [{
38
- key: "render",
39
- value: function render() {
40
- var _ref = this.asProps,
41
- _ref4;
42
- var SWidgetEmpty = _flexBox.Flex;
43
- var _this$asProps = this.asProps,
44
- Children = _this$asProps.Children,
45
- icon = _this$asProps.icon,
46
- styles = _this$asProps.styles;
47
- var SImage = 'div';
48
- return _ref4 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SWidgetEmpty, _ref4.cn("SWidgetEmpty", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
23
+ const getIconPath = name => (0, _illustration.getIllustrationPath)(name);
24
+ exports.getIconPath = getIconPath;
25
+ class WidgetEmpty extends _core.Component {
26
+ render() {
27
+ var _ref = this.asProps,
28
+ _ref4;
29
+ const SWidgetEmpty = _baseComponents.Flex;
30
+ const {
31
+ Children,
32
+ icon,
33
+ styles
34
+ } = this.asProps;
35
+ const SImage = 'div';
36
+ return _ref4 = (0, _core.sstyled)(styles), /*#__PURE__*/_react.default.createElement(SWidgetEmpty, _ref4.cn("SWidgetEmpty", {
37
+ ...(0, _core.assignProps)({
49
38
  "role": 'status'
50
- }, _ref))), (0, _isNode["default"])(icon) && /*#__PURE__*/_react["default"].createElement(SImage, _ref4.cn("SImage", {
51
- "aria-hidden": 'true'
52
- }), typeof icon === 'string' ? /*#__PURE__*/_react["default"].createElement("img", _ref4.cn("img", {
53
- "src": icon,
54
- "alt": ''
55
- })) : icon), /*#__PURE__*/_react["default"].createElement(Children, _ref4.cn("Children", {})));
56
- }
57
- }]);
58
- }(_core.Component);
59
- (0, _defineProperty2["default"])(WidgetEmpty, "displayName", 'WidgetEmpty');
60
- (0, _defineProperty2["default"])(WidgetEmpty, "style", style);
61
- var Title = function Title(props) {
39
+ }, _ref)
40
+ }), (0, _isNode.default)(icon) && /*#__PURE__*/_react.default.createElement(SImage, _ref4.cn("SImage", {
41
+ "aria-hidden": 'true'
42
+ }), typeof icon === 'string' ? /*#__PURE__*/_react.default.createElement("img", _ref4.cn("img", {
43
+ "src": icon,
44
+ "alt": ''
45
+ })) : icon), /*#__PURE__*/_react.default.createElement(Children, _ref4.cn("Children", {})));
46
+ }
47
+ }
48
+ (0, _defineProperty2.default)(WidgetEmpty, "displayName", 'WidgetEmpty');
49
+ (0, _defineProperty2.default)(WidgetEmpty, "style", style);
50
+ function Title(props) {
62
51
  var _ref2 = arguments[0],
63
52
  _ref5;
64
- var STitle = _flexBox.Box;
65
- var styles = props.styles;
66
- return _ref5 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(STitle, _ref5.cn("STitle", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({}, _ref2))));
67
- };
68
- var Description = function Description(props) {
53
+ const STitle = _baseComponents.Box;
54
+ const {
55
+ styles
56
+ } = props;
57
+ return _ref5 = (0, _core.sstyled)(styles), /*#__PURE__*/_react.default.createElement(STitle, _ref5.cn("STitle", {
58
+ ...(0, _core.assignProps)({}, _ref2)
59
+ }));
60
+ }
61
+ function Description(props) {
69
62
  var _ref3 = arguments[0],
70
63
  _ref6;
71
- var SDescription = _flexBox.Box;
72
- var styles = props.styles;
73
- return _ref6 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SDescription, _ref6.cn("SDescription", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({}, _ref3))));
74
- };
75
- var _default = exports["default"] = (0, _core.createComponent)(WidgetEmpty, {
76
- Title: Title,
77
- Description: Description
64
+ const SDescription = _baseComponents.Box;
65
+ const {
66
+ styles
67
+ } = props;
68
+ return _ref6 = (0, _core.sstyled)(styles), /*#__PURE__*/_react.default.createElement(SDescription, _ref6.cn("SDescription", {
69
+ ...(0, _core.assignProps)({}, _ref3)
70
+ }));
71
+ }
72
+ var _default = exports.default = (0, _core.createComponent)(WidgetEmpty, {
73
+ Title,
74
+ Description
78
75
  });
79
76
  //# sourceMappingURL=WidgetEmpty.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"WidgetEmpty.js","names":["_core","require","_isNode","_interopRequireDefault","_flexBox","_illustration","_react","style","sstyled","insert","getIconPath","exports","name","getIllustrationPath","WidgetEmpty","_Component","_classCallCheck2","_callSuper2","arguments","_inherits2","_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 { createComponent, Component, sstyled, Root } from '@semcore/core';\nimport isNode from '@semcore/core/lib/utils/isNode';\nimport { Box, Flex } from '@semcore/flex-box';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport React from 'react';\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} role='status'>\n {isNode(icon) && (\n <SImage aria-hidden='true'>\n {typeof icon === 'string' ? <img src={icon} alt='' /> : 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,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAH,sBAAA,CAAAF,OAAA;AAA0B;AAAA,IAAAM,KAAA,8BAAAP,KAAA,CAAAQ,OAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAInB,IAAMC,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,SAAdA,WAAWA,CAAIE,IAAI;EAAA,OAAK,IAAAC,iCAAmB,EAACD,IAAI,CAAC;AAAA;AAAC,IAEzDE,WAAW,0BAAAC,UAAA;EAAA,SAAAD,YAAA;IAAA,IAAAE,gBAAA,mBAAAF,WAAA;IAAA,WAAAG,WAAA,mBAAAH,WAAA,EAAAI,SAAA;EAAA;EAAA,IAAAC,UAAA,aAAAL,WAAA,EAAAC,UAAA;EAAA,WAAAK,aAAA,aAAAN,WAAA;IAAAO,GAAA;IAAAC,KAAA,EAIf,SAAAC,MAAMA,CAAA,EAAG;MAAA,IAAAC,IAAA,QAAAC,OAAA;QAAAC,KAAA;MACP,IAAMC,YAAY,GAKMC,aAAI;MAJ5B,IAAAC,aAAA,GAAmC,IAAI,CAACJ,OAAO;QAAvCK,QAAQ,GAAAD,aAAA,CAARC,QAAQ;QAAEC,IAAI,GAAAF,aAAA,CAAJE,IAAI;QAAEC,MAAM,GAAAH,aAAA,CAANG,MAAM;MAC9B,IAAMC,MAAM,GAAG,KAAK;MAEpB,OAAAP,KAAA,GAA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AM,GAAKU,KAAK,CAAhBV,MAAM;EACd,OAAAkB,KAAA,GAAO,IAAA1C,aAAO,EAACwB,MAAM,CAAC,eAAC1B,MAAA,YAAA4B,aAAA,CAACiB,YAAY,EAAAD,KAAA,CAAAf,EAAA,qBAAAC,cAAA,qBAAApC,KAAA,CAAAqC,WAAA,MAAAY,KAAA,GAAe,CAAC;AACtD,CAAC;AAAC,IAAAG,QAAA,GAAAzC,OAAA,cAEa,IAAA0C,qBAAe,EAACvC,WAAW,EAAE;EAC1C2B,KAAK,EAALA,KAAK;EACLO,WAAW,EAAXA;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"WidgetEmpty.js","names":["_core","require","_baseComponents","_isNode","_interopRequireDefault","_illustration","_react","style","sstyled","insert","getIconPath","name","getIllustrationPath","exports","WidgetEmpty","Component","render","_ref","asProps","_ref4","SWidgetEmpty","Flex","Children","icon","styles","SImage","default","createElement","cn","assignProps","isNode","_defineProperty2","Title","props","_ref2","arguments[0]","_ref5","STitle","Box","Description","_ref3","_ref6","SDescription","_default","createComponent"],"sources":["../../src/WidgetEmpty.jsx"],"sourcesContent":["import { Box, Flex } from '@semcore/base-components';\nimport { createComponent, Component, sstyled, Root } from '@semcore/core';\nimport isNode from '@semcore/core/lib/utils/isNode';\nimport { getIllustrationPath } from '@semcore/illustration';\nimport React from 'react';\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} role='status'>\n {isNode(icon) && (\n <SImage aria-hidden='true'>\n {typeof icon === 'string' ? <img src={icon} alt='' /> : icon}\n </SImage>\n )}\n <Children />\n </SWidgetEmpty>,\n );\n }\n}\n\nfunction Title(props) {\n const STitle = Root;\n const { styles } = props;\n return sstyled(styles)(<STitle render={Box} />);\n}\n\nfunction 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,OAAA;AADA,IAAAC,eAAA,GAAAD,OAAA;AAEA,IAAAE,OAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAF,sBAAA,CAAAH,OAAA;AAA0B;AAAA,MAAAM,KAAA,8BAAAP,KAAA,CAAAQ,OAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAInB,MAAMC,WAAW,GAAIC,IAAI,IAAK,IAAAC,iCAAmB,EAACD,IAAI,CAAC;AAACE,OAAA,CAAAH,WAAA,GAAAA,WAAA;AAE/D,MAAMI,WAAW,SAASC,eAAS,CAAC;EAIlCC,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;MAAAC,KAAA;IACP,MAAMC,YAAY,GAKMC,oBAAI;IAJ5B,MAAM;MAAEC,QAAQ;MAAEC,IAAI;MAAEC;IAAO,CAAC,GAAG,IAAI,CAACN,OAAO;IAC/C,MAAMO,MAAM,GAAG,KAAK;IAEpB,OAAAN,KAAA,GAAO,IAAAX,aAAO,EAACgB,MAAM,CAAC,eACpBlB,MAAA,CAAAoB,OAAA,CAAAC,aAAA,CAACP,YAAY,EAAAD,KAAA,CAAAS,EAAA;MAAA,OAAA5B,KAAA,CAAA6B,WAAA;QAAA,QAAoB;MAAQ,GAAAZ,IAAA;IAAA,IACtC,IAAAa,eAAM,EAACP,IAAI,CAAC,iBACXjB,MAAA,CAAAoB,OAAA,CAAAC,aAAA,CAACF,MAAM,EAAAN,KAAA,CAAAS,EAAA;MAAA,eAAa;IAAM,IACvB,OAAOL,IAAI,KAAK,QAAQ,gBAAGjB,MAAA,CAAA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","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import type { Intergalactic, UnknownProperties } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport type { Box, FlexProps } from '@semcore/flex-box';\nimport type { TIllustrationNamesWidgetEmpty } from '@semcore/illustration';\n\nexport type iconNamesWidgetEmpty = TIllustrationNamesWidgetEmpty;\n\n/** @deprecated */\nexport interface IWidgetEmptyProps extends WidgetEmptyProps, UnknownProperties {}\nexport type WidgetEmptyProps = FlexProps & {\n /**\n * URL before the icon or the whole component\n */\n icon?: React.ReactNode;\n};\n\n/** @deprecated */\nexport interface IWidgetErrorProps extends WidgetErrorProps, UnknownProperties {}\nexport type WidgetErrorProps = WidgetEmptyProps &\n WithI18nEnhanceProps & {\n /** Error description. If it is absent, use the local default one */\n description?: React.ReactNode;\n };\n\n/** @deprecated */\nexport interface IWidgetNoDataProps extends WidgetNoDataProps, UnknownProperties {}\nexport type WidgetNoDataProps = WidgetEmptyProps &\n WithI18nEnhanceProps & {\n /** Error description. If it is absent, use the local default one */\n description?: React.ReactNode;\n /** Data types */\n type?: iconNamesWidgetEmpty;\n };\n\ndeclare const WidgetEmpty: Intergalactic.Component<'div', WidgetEmptyProps> & {\n Title: typeof Box;\n Description: typeof Box;\n};\n\nexport declare const NoData: Intergalactic.Component<'div', WidgetNoDataProps>;\nexport declare const Error: Intergalactic.Component<'div', WidgetErrorProps>;\nexport declare const getIconPath: (name: string) => string;\n\nexport default WidgetEmpty;\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import type { Box, FlexProps } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport type { TIllustrationNamesWidgetEmpty } from '@semcore/illustration';\n\nexport type iconNamesWidgetEmpty = TIllustrationNamesWidgetEmpty;\n\nexport type WidgetEmptyProps = FlexProps & {\n /**\n * URL before the icon or the whole component\n */\n icon?: React.ReactNode;\n};\n\nexport type WidgetErrorProps = WidgetEmptyProps &\n WithI18nEnhanceProps & {\n /** Error description. If it is absent, use the local default one */\n description?: React.ReactNode;\n };\n\nexport type WidgetNoDataProps = WidgetEmptyProps &\n WithI18nEnhanceProps & {\n /** Error description. If it is absent, use the local default one */\n description?: React.ReactNode;\n /** Data types */\n type?: iconNamesWidgetEmpty;\n };\n\ndeclare const WidgetEmpty: Intergalactic.Component<'div', WidgetEmptyProps> & {\n Title: typeof Box;\n Description: typeof Box;\n};\n\nexport declare const NoData: Intergalactic.Component<'div', WidgetNoDataProps>;\nexport declare const Error: Intergalactic.Component<'div', WidgetErrorProps>;\nexport declare const getIconPath: (name: string) => string;\n\nexport default WidgetEmpty;\n"],"mappings":"","ignoreList":[]}
package/lib/cjs/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
4
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard")["default"];
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
@@ -11,20 +11,20 @@ var _exportNames = {
11
11
  };
12
12
  Object.defineProperty(exports, "Error", {
13
13
  enumerable: true,
14
- get: function get() {
15
- return _Error["default"];
14
+ get: function () {
15
+ return _Error.default;
16
16
  }
17
17
  });
18
18
  Object.defineProperty(exports, "NoData", {
19
19
  enumerable: true,
20
- get: function get() {
21
- return _NoData["default"];
20
+ get: function () {
21
+ return _NoData.default;
22
22
  }
23
23
  });
24
24
  Object.defineProperty(exports, "default", {
25
25
  enumerable: true,
26
- get: function get() {
27
- return _WidgetEmpty["default"];
26
+ get: function () {
27
+ return _WidgetEmpty.default;
28
28
  }
29
29
  });
30
30
  var _WidgetEmpty = _interopRequireWildcard(require("./WidgetEmpty"));
@@ -34,7 +34,7 @@ Object.keys(_WidgetEmpty).forEach(function (key) {
34
34
  if (key in exports && exports[key] === _WidgetEmpty[key]) return;
35
35
  Object.defineProperty(exports, key, {
36
36
  enumerable: true,
37
- get: function get() {
37
+ get: function () {
38
38
  return _WidgetEmpty[key];
39
39
  }
40
40
  });
@@ -1 +1 @@
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","ignoreList":[]}
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,CAAA;MAAA,OAAAd,YAAA,CAAAM,GAAA;IAAA;EAAA;AAAA;AAEA,IAAAS,OAAA,GAAAC,sBAAA,CAAAd,OAAA;AAEA,IAAAe,MAAA,GAAAD,sBAAA,CAAAd,OAAA","ignoreList":[]}
@@ -2,7 +2,6 @@ SWidgetEmpty {
2
2
  flex-direction: column;
3
3
  justify-content: center;
4
4
  align-items: center;
5
- margin-bottom: var(--intergalactic-spacing-4x, 16px);
6
5
  }
7
6
 
8
7
  SImage {
@@ -37,4 +36,4 @@ STitle+SDescription {
37
36
 
38
37
  SDescription+SDescription {
39
38
  margin-top: var(--intergalactic-spacing-2x, 8px);
40
- }
39
+ }